From 33b7b6b85a1dc8eece116053cef7ee48683ce528 Mon Sep 17 00:00:00 2001 From: Stephan Behnke Date: Fri, 23 Jan 2026 20:09:46 -0800 Subject: [PATCH 1/3] Enable Hybrid API for gradual migration to Opaque API Add default_api_level=API_HYBRID to protoc-gen-go options to enable the Hybrid API. This generates both Open struct and Opaque API files, allowing gradual migration of code to use accessor methods (Set*, Get*, Has*, Clear*) instead of direct field access. The Hybrid API: - Adds accessor methods to existing Open struct messages - Generates *_protoopaque.pb.go files with hidden fields - Enables lazy decoding and memory optimizations when fully migrated See: https://go.dev/blog/protobuf-opaque Co-Authored-By: Claude Opus 4.5 --- activity/v1/message.pb.go | 955 +- activity/v1/message_protoopaque.pb.go | 1679 + batch/v1/message.pb.go | 996 +- batch/v1/message_protoopaque.pb.go | 1890 + cmd/protogen/main.go | 3 + command/v1/message.pb.go | 2174 +- command/v1/message_protoopaque.pb.go | 3829 ++ common/v1/message.pb.go | 1519 +- common/v1/message_protoopaque.pb.go | 2875 ++ deployment/v1/message.pb.go | 1237 +- deployment/v1/message_protoopaque.pb.go | 2456 ++ enums/v1/activity.pb.go | 30 +- enums/v1/activity_protoopaque.pb.go | 317 + enums/v1/batch_operation.pb.go | 26 +- enums/v1/batch_operation_protoopaque.pb.go | 233 + enums/v1/command_type.pb.go | 21 +- enums/v1/command_type_protoopaque.pb.go | 218 + enums/v1/common.pb.go | 64 +- enums/v1/common_protoopaque.pb.go | 723 + enums/v1/deployment.pb.go | 35 +- enums/v1/deployment_protoopaque.pb.go | 394 + enums/v1/event_type.pb.go | 25 +- enums/v1/event_type_protoopaque.pb.go | 574 + enums/v1/failed_cause.pb.go | 67 +- enums/v1/failed_cause_protoopaque.pb.go | 740 + enums/v1/namespace.pb.go | 30 +- enums/v1/namespace_protoopaque.pb.go | 250 + enums/v1/nexus.pb.go | 20 +- enums/v1/nexus_protoopaque.pb.go | 132 + enums/v1/query.pb.go | 25 +- enums/v1/query_protoopaque.pb.go | 195 + enums/v1/reset.pb.go | 30 +- enums/v1/reset_protoopaque.pb.go | 279 + enums/v1/schedule.pb.go | 20 +- enums/v1/schedule_protoopaque.pb.go | 167 + enums/v1/task_queue.pb.go | 50 +- enums/v1/task_queue_protoopaque.pb.go | 565 + enums/v1/update.pb.go | 25 +- enums/v1/update_protoopaque.pb.go | 208 + enums/v1/workflow.pb.go | 85 +- enums/v1/workflow_protoopaque.pb.go | 1065 + errordetails/v1/message.pb.go | 579 +- errordetails/v1/message_protoopaque.pb.go | 1444 + export/v1/message.pb.go | 76 +- export/v1/message_protoopaque.pb.go | 205 + failure/v1/message.pb.go | 938 +- failure/v1/message_protoopaque.pb.go | 1847 + filter/v1/message.pb.go | 149 +- filter/v1/message_protoopaque.pb.go | 367 + history/v1/message.pb.go | 13739 +++++-- history/v1/message_protoopaque.pb.go | 13602 +++++++ namespace/v1/message.pb.go | 458 +- namespace/v1/message_protoopaque.pb.go | 1065 + nexus/v1/message.pb.go | 1181 +- nexus/v1/message_protoopaque.pb.go | 2308 ++ operatorservice/v1/request_response.pb.go | 853 +- .../v1/request_response_protoopaque.pb.go | 2013 + operatorservice/v1/service.pb.go | 2 + operatorservice/v1/service_protoopaque.pb.go | 127 + protocol/v1/message.pb.go | 164 +- protocol/v1/message_protoopaque.pb.go | 316 + query/v1/message.pb.go | 176 +- query/v1/message_protoopaque.pb.go | 396 + replication/v1/message.pb.go | 120 +- replication/v1/message_protoopaque.pb.go | 313 + rules/v1/message.pb.go | 373 +- rules/v1/message_protoopaque.pb.go | 702 + schedule/v1/message.pb.go | 1302 +- schedule/v1/message_protoopaque.pb.go | 2660 ++ sdk/v1/enhanced_stack_trace.pb.go | 220 +- sdk/v1/enhanced_stack_trace_protoopaque.pb.go | 542 + sdk/v1/task_complete_metadata.pb.go | 95 +- .../task_complete_metadata_protoopaque.pb.go | 209 + sdk/v1/user_metadata.pb.go | 75 +- sdk/v1/user_metadata_protoopaque.pb.go | 175 + sdk/v1/worker_config.pb.go | 208 +- sdk/v1/worker_config_protoopaque.pb.go | 429 + sdk/v1/workflow_metadata.pb.go | 145 +- sdk/v1/workflow_metadata_protoopaque.pb.go | 365 + taskqueue/v1/message.pb.go | 1287 +- taskqueue/v1/message_protoopaque.pb.go | 2689 ++ update/v1/message.pb.go | 521 +- update/v1/message_protoopaque.pb.go | 1052 + version/v1/message.pb.go | 176 +- version/v1/message_protoopaque.pb.go | 410 + worker/v1/message.pb.go | 582 +- worker/v1/message_protoopaque.pb.go | 1198 + workflow/v1/message.pb.go | 3622 +- workflow/v1/message_protoopaque.pb.go | 6262 ++++ workflowservice/v1/request_response.pb.go | 15753 +++++++- .../v1/request_response_protoopaque.pb.go | 30357 ++++++++++++++++ workflowservice/v1/service.pb.go | 2 + workflowservice/v1/service_protoopaque.pb.go | 587 + 93 files changed, 132741 insertions(+), 7921 deletions(-) create mode 100644 activity/v1/message_protoopaque.pb.go create mode 100644 batch/v1/message_protoopaque.pb.go create mode 100644 command/v1/message_protoopaque.pb.go create mode 100644 common/v1/message_protoopaque.pb.go create mode 100644 deployment/v1/message_protoopaque.pb.go create mode 100644 enums/v1/activity_protoopaque.pb.go create mode 100644 enums/v1/batch_operation_protoopaque.pb.go create mode 100644 enums/v1/command_type_protoopaque.pb.go create mode 100644 enums/v1/common_protoopaque.pb.go create mode 100644 enums/v1/deployment_protoopaque.pb.go create mode 100644 enums/v1/event_type_protoopaque.pb.go create mode 100644 enums/v1/failed_cause_protoopaque.pb.go create mode 100644 enums/v1/namespace_protoopaque.pb.go create mode 100644 enums/v1/nexus_protoopaque.pb.go create mode 100644 enums/v1/query_protoopaque.pb.go create mode 100644 enums/v1/reset_protoopaque.pb.go create mode 100644 enums/v1/schedule_protoopaque.pb.go create mode 100644 enums/v1/task_queue_protoopaque.pb.go create mode 100644 enums/v1/update_protoopaque.pb.go create mode 100644 enums/v1/workflow_protoopaque.pb.go create mode 100644 errordetails/v1/message_protoopaque.pb.go create mode 100644 export/v1/message_protoopaque.pb.go create mode 100644 failure/v1/message_protoopaque.pb.go create mode 100644 filter/v1/message_protoopaque.pb.go create mode 100644 history/v1/message_protoopaque.pb.go create mode 100644 namespace/v1/message_protoopaque.pb.go create mode 100644 nexus/v1/message_protoopaque.pb.go create mode 100644 operatorservice/v1/request_response_protoopaque.pb.go create mode 100644 operatorservice/v1/service_protoopaque.pb.go create mode 100644 protocol/v1/message_protoopaque.pb.go create mode 100644 query/v1/message_protoopaque.pb.go create mode 100644 replication/v1/message_protoopaque.pb.go create mode 100644 rules/v1/message_protoopaque.pb.go create mode 100644 schedule/v1/message_protoopaque.pb.go create mode 100644 sdk/v1/enhanced_stack_trace_protoopaque.pb.go create mode 100644 sdk/v1/task_complete_metadata_protoopaque.pb.go create mode 100644 sdk/v1/user_metadata_protoopaque.pb.go create mode 100644 sdk/v1/worker_config_protoopaque.pb.go create mode 100644 sdk/v1/workflow_metadata_protoopaque.pb.go create mode 100644 taskqueue/v1/message_protoopaque.pb.go create mode 100644 update/v1/message_protoopaque.pb.go create mode 100644 version/v1/message_protoopaque.pb.go create mode 100644 worker/v1/message_protoopaque.pb.go create mode 100644 workflow/v1/message_protoopaque.pb.go create mode 100644 workflowservice/v1/request_response_protoopaque.pb.go create mode 100644 workflowservice/v1/service_protoopaque.pb.go diff --git a/activity/v1/message.pb.go b/activity/v1/message.pb.go index 388dda99..269ba866 100644 --- a/activity/v1/message.pb.go +++ b/activity/v1/message.pb.go @@ -4,11 +4,13 @@ // protoc // source: temporal/api/activity/v1/message.proto +//go:build !protoopaque + package activity import ( reflect "reflect" - sync "sync" + "strconv" unsafe "unsafe" v1 "go.temporal.io/api/common/v1" @@ -32,7 +34,7 @@ const ( // The outcome of a completed activity execution: either a successful result or a failure. type ActivityExecutionOutcome struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Types that are valid to be assigned to Value: // // *ActivityExecutionOutcome_Result @@ -67,11 +69,6 @@ func (x *ActivityExecutionOutcome) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ActivityExecutionOutcome.ProtoReflect.Descriptor instead. -func (*ActivityExecutionOutcome) Descriptor() ([]byte, []int) { - return file_temporal_api_activity_v1_message_proto_rawDescGZIP(), []int{0} -} - func (x *ActivityExecutionOutcome) GetValue() isActivityExecutionOutcome_Value { if x != nil { return x.Value @@ -97,6 +94,119 @@ func (x *ActivityExecutionOutcome) GetFailure() *v11.Failure { return nil } +func (x *ActivityExecutionOutcome) SetResult(v *v1.Payloads) { + if v == nil { + x.Value = nil + return + } + x.Value = &ActivityExecutionOutcome_Result{v} +} + +func (x *ActivityExecutionOutcome) SetFailure(v *v11.Failure) { + if v == nil { + x.Value = nil + return + } + x.Value = &ActivityExecutionOutcome_Failure{v} +} + +func (x *ActivityExecutionOutcome) HasValue() bool { + if x == nil { + return false + } + return x.Value != nil +} + +func (x *ActivityExecutionOutcome) HasResult() bool { + if x == nil { + return false + } + _, ok := x.Value.(*ActivityExecutionOutcome_Result) + return ok +} + +func (x *ActivityExecutionOutcome) HasFailure() bool { + if x == nil { + return false + } + _, ok := x.Value.(*ActivityExecutionOutcome_Failure) + return ok +} + +func (x *ActivityExecutionOutcome) ClearValue() { + x.Value = nil +} + +func (x *ActivityExecutionOutcome) ClearResult() { + if _, ok := x.Value.(*ActivityExecutionOutcome_Result); ok { + x.Value = nil + } +} + +func (x *ActivityExecutionOutcome) ClearFailure() { + if _, ok := x.Value.(*ActivityExecutionOutcome_Failure); ok { + x.Value = nil + } +} + +const ActivityExecutionOutcome_Value_not_set_case case_ActivityExecutionOutcome_Value = 0 +const ActivityExecutionOutcome_Result_case case_ActivityExecutionOutcome_Value = 1 +const ActivityExecutionOutcome_Failure_case case_ActivityExecutionOutcome_Value = 2 + +func (x *ActivityExecutionOutcome) WhichValue() case_ActivityExecutionOutcome_Value { + if x == nil { + return ActivityExecutionOutcome_Value_not_set_case + } + switch x.Value.(type) { + case *ActivityExecutionOutcome_Result: + return ActivityExecutionOutcome_Result_case + case *ActivityExecutionOutcome_Failure: + return ActivityExecutionOutcome_Failure_case + default: + return ActivityExecutionOutcome_Value_not_set_case + } +} + +type ActivityExecutionOutcome_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Fields of oneof Value: + // The result if the activity completed successfully. + Result *v1.Payloads + // The failure if the activity completed unsuccessfully. + Failure *v11.Failure + // -- end of Value +} + +func (b0 ActivityExecutionOutcome_builder) Build() *ActivityExecutionOutcome { + m0 := &ActivityExecutionOutcome{} + b, x := &b0, m0 + _, _ = b, x + if b.Result != nil { + x.Value = &ActivityExecutionOutcome_Result{b.Result} + } + if b.Failure != nil { + x.Value = &ActivityExecutionOutcome_Failure{b.Failure} + } + return m0 +} + +type case_ActivityExecutionOutcome_Value protoreflect.FieldNumber + +func (x case_ActivityExecutionOutcome_Value) String() string { + switch x { + case ActivityExecutionOutcome_Value_not_set_case: + return "ActivityExecutionOutcomeValueNotSetCase" + case ActivityExecutionOutcome_Result_case: + return "ActivityExecutionOutcomeResultCase" + case ActivityExecutionOutcome_Failure_case: + return "ActivityExecutionOutcomeFailureCase" + default: + return strconv.Itoa(int(x)) + } + +} + type isActivityExecutionOutcome_Value interface { isActivityExecutionOutcome_Value() } @@ -116,7 +226,7 @@ func (*ActivityExecutionOutcome_Result) isActivityExecutionOutcome_Value() {} func (*ActivityExecutionOutcome_Failure) isActivityExecutionOutcome_Value() {} type ActivityOptions struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` TaskQueue *v12.TaskQueue `protobuf:"bytes,1,opt,name=task_queue,json=taskQueue,proto3" json:"task_queue,omitempty"` // Indicates how long the caller is willing to wait for an activity completion. Limits how long // retries will be attempted. Either this or `start_to_close_timeout` must be specified. @@ -178,11 +288,6 @@ func (x *ActivityOptions) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ActivityOptions.ProtoReflect.Descriptor instead. -func (*ActivityOptions) Descriptor() ([]byte, []int) { - return file_temporal_api_activity_v1_message_proto_rawDescGZIP(), []int{1} -} - func (x *ActivityOptions) GetTaskQueue() *v12.TaskQueue { if x != nil { return x.TaskQueue @@ -232,9 +337,165 @@ func (x *ActivityOptions) GetPriority() *v1.Priority { return nil } +func (x *ActivityOptions) SetTaskQueue(v *v12.TaskQueue) { + x.TaskQueue = v +} + +func (x *ActivityOptions) SetScheduleToCloseTimeout(v *durationpb.Duration) { + x.ScheduleToCloseTimeout = v +} + +func (x *ActivityOptions) SetScheduleToStartTimeout(v *durationpb.Duration) { + x.ScheduleToStartTimeout = v +} + +func (x *ActivityOptions) SetStartToCloseTimeout(v *durationpb.Duration) { + x.StartToCloseTimeout = v +} + +func (x *ActivityOptions) SetHeartbeatTimeout(v *durationpb.Duration) { + x.HeartbeatTimeout = v +} + +func (x *ActivityOptions) SetRetryPolicy(v *v1.RetryPolicy) { + x.RetryPolicy = v +} + +func (x *ActivityOptions) SetPriority(v *v1.Priority) { + x.Priority = v +} + +func (x *ActivityOptions) HasTaskQueue() bool { + if x == nil { + return false + } + return x.TaskQueue != nil +} + +func (x *ActivityOptions) HasScheduleToCloseTimeout() bool { + if x == nil { + return false + } + return x.ScheduleToCloseTimeout != nil +} + +func (x *ActivityOptions) HasScheduleToStartTimeout() bool { + if x == nil { + return false + } + return x.ScheduleToStartTimeout != nil +} + +func (x *ActivityOptions) HasStartToCloseTimeout() bool { + if x == nil { + return false + } + return x.StartToCloseTimeout != nil +} + +func (x *ActivityOptions) HasHeartbeatTimeout() bool { + if x == nil { + return false + } + return x.HeartbeatTimeout != nil +} + +func (x *ActivityOptions) HasRetryPolicy() bool { + if x == nil { + return false + } + return x.RetryPolicy != nil +} + +func (x *ActivityOptions) HasPriority() bool { + if x == nil { + return false + } + return x.Priority != nil +} + +func (x *ActivityOptions) ClearTaskQueue() { + x.TaskQueue = nil +} + +func (x *ActivityOptions) ClearScheduleToCloseTimeout() { + x.ScheduleToCloseTimeout = nil +} + +func (x *ActivityOptions) ClearScheduleToStartTimeout() { + x.ScheduleToStartTimeout = nil +} + +func (x *ActivityOptions) ClearStartToCloseTimeout() { + x.StartToCloseTimeout = nil +} + +func (x *ActivityOptions) ClearHeartbeatTimeout() { + x.HeartbeatTimeout = nil +} + +func (x *ActivityOptions) ClearRetryPolicy() { + x.RetryPolicy = nil +} + +func (x *ActivityOptions) ClearPriority() { + x.Priority = nil +} + +type ActivityOptions_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + TaskQueue *v12.TaskQueue + // Indicates how long the caller is willing to wait for an activity completion. Limits how long + // retries will be attempted. Either this or `start_to_close_timeout` must be specified. + // + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + ScheduleToCloseTimeout *durationpb.Duration + // Limits time an activity task can stay in a task queue before a worker picks it up. This + // timeout is always non retryable, as all a retry would achieve is to put it back into the same + // queue. Defaults to `schedule_to_close_timeout` or workflow execution timeout if not + // specified. + // + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + ScheduleToStartTimeout *durationpb.Duration + // Maximum time an activity is allowed to execute after being picked up by a worker. This + // timeout is always retryable. Either this or `schedule_to_close_timeout` must be + // specified. + // + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + StartToCloseTimeout *durationpb.Duration + // Maximum permitted time between successful worker heartbeats. + HeartbeatTimeout *durationpb.Duration + // The retry policy for the activity. Will never exceed `schedule_to_close_timeout`. + RetryPolicy *v1.RetryPolicy + // Priority metadata. If this message is not present, or any fields are not + // present, they inherit the values from the workflow. + Priority *v1.Priority +} + +func (b0 ActivityOptions_builder) Build() *ActivityOptions { + m0 := &ActivityOptions{} + b, x := &b0, m0 + _, _ = b, x + x.TaskQueue = b.TaskQueue + x.ScheduleToCloseTimeout = b.ScheduleToCloseTimeout + x.ScheduleToStartTimeout = b.ScheduleToStartTimeout + x.StartToCloseTimeout = b.StartToCloseTimeout + x.HeartbeatTimeout = b.HeartbeatTimeout + x.RetryPolicy = b.RetryPolicy + x.Priority = b.Priority + return m0 +} + // Information about a standalone activity. type ActivityExecutionInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Unique identifier of this activity within its namespace along with run ID (below). ActivityId string `protobuf:"bytes,1,opt,name=activity_id,json=activityId,proto3" json:"activity_id,omitempty"` RunId string `protobuf:"bytes,2,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"` @@ -346,11 +607,6 @@ func (x *ActivityExecutionInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ActivityExecutionInfo.ProtoReflect.Descriptor instead. -func (*ActivityExecutionInfo) Descriptor() ([]byte, []int) { - return file_temporal_api_activity_v1_message_proto_rawDescGZIP(), []int{2} -} - func (x *ActivityExecutionInfo) GetActivityId() string { if x != nil { return x.ActivityId @@ -575,11 +831,507 @@ func (x *ActivityExecutionInfo) GetCanceledReason() string { return "" } +func (x *ActivityExecutionInfo) SetActivityId(v string) { + x.ActivityId = v +} + +func (x *ActivityExecutionInfo) SetRunId(v string) { + x.RunId = v +} + +func (x *ActivityExecutionInfo) SetActivityType(v *v1.ActivityType) { + x.ActivityType = v +} + +func (x *ActivityExecutionInfo) SetStatus(v v13.ActivityExecutionStatus) { + x.Status = v +} + +func (x *ActivityExecutionInfo) SetRunState(v v13.PendingActivityState) { + x.RunState = v +} + +func (x *ActivityExecutionInfo) SetTaskQueue(v string) { + x.TaskQueue = v +} + +func (x *ActivityExecutionInfo) SetScheduleToCloseTimeout(v *durationpb.Duration) { + x.ScheduleToCloseTimeout = v +} + +func (x *ActivityExecutionInfo) SetScheduleToStartTimeout(v *durationpb.Duration) { + x.ScheduleToStartTimeout = v +} + +func (x *ActivityExecutionInfo) SetStartToCloseTimeout(v *durationpb.Duration) { + x.StartToCloseTimeout = v +} + +func (x *ActivityExecutionInfo) SetHeartbeatTimeout(v *durationpb.Duration) { + x.HeartbeatTimeout = v +} + +func (x *ActivityExecutionInfo) SetRetryPolicy(v *v1.RetryPolicy) { + x.RetryPolicy = v +} + +func (x *ActivityExecutionInfo) SetHeartbeatDetails(v *v1.Payloads) { + x.HeartbeatDetails = v +} + +func (x *ActivityExecutionInfo) SetLastHeartbeatTime(v *timestamppb.Timestamp) { + x.LastHeartbeatTime = v +} + +func (x *ActivityExecutionInfo) SetLastStartedTime(v *timestamppb.Timestamp) { + x.LastStartedTime = v +} + +func (x *ActivityExecutionInfo) SetAttempt(v int32) { + x.Attempt = v +} + +func (x *ActivityExecutionInfo) SetExecutionDuration(v *durationpb.Duration) { + x.ExecutionDuration = v +} + +func (x *ActivityExecutionInfo) SetScheduleTime(v *timestamppb.Timestamp) { + x.ScheduleTime = v +} + +func (x *ActivityExecutionInfo) SetExpirationTime(v *timestamppb.Timestamp) { + x.ExpirationTime = v +} + +func (x *ActivityExecutionInfo) SetCloseTime(v *timestamppb.Timestamp) { + x.CloseTime = v +} + +func (x *ActivityExecutionInfo) SetLastFailure(v *v11.Failure) { + x.LastFailure = v +} + +func (x *ActivityExecutionInfo) SetLastWorkerIdentity(v string) { + x.LastWorkerIdentity = v +} + +func (x *ActivityExecutionInfo) SetCurrentRetryInterval(v *durationpb.Duration) { + x.CurrentRetryInterval = v +} + +func (x *ActivityExecutionInfo) SetLastAttemptCompleteTime(v *timestamppb.Timestamp) { + x.LastAttemptCompleteTime = v +} + +func (x *ActivityExecutionInfo) SetNextAttemptScheduleTime(v *timestamppb.Timestamp) { + x.NextAttemptScheduleTime = v +} + +func (x *ActivityExecutionInfo) SetLastDeploymentVersion(v *v14.WorkerDeploymentVersion) { + x.LastDeploymentVersion = v +} + +func (x *ActivityExecutionInfo) SetPriority(v *v1.Priority) { + x.Priority = v +} + +func (x *ActivityExecutionInfo) SetStateTransitionCount(v int64) { + x.StateTransitionCount = v +} + +func (x *ActivityExecutionInfo) SetStateSizeBytes(v int64) { + x.StateSizeBytes = v +} + +func (x *ActivityExecutionInfo) SetSearchAttributes(v *v1.SearchAttributes) { + x.SearchAttributes = v +} + +func (x *ActivityExecutionInfo) SetHeader(v *v1.Header) { + x.Header = v +} + +func (x *ActivityExecutionInfo) SetUserMetadata(v *v15.UserMetadata) { + x.UserMetadata = v +} + +func (x *ActivityExecutionInfo) SetCanceledReason(v string) { + x.CanceledReason = v +} + +func (x *ActivityExecutionInfo) HasActivityType() bool { + if x == nil { + return false + } + return x.ActivityType != nil +} + +func (x *ActivityExecutionInfo) HasScheduleToCloseTimeout() bool { + if x == nil { + return false + } + return x.ScheduleToCloseTimeout != nil +} + +func (x *ActivityExecutionInfo) HasScheduleToStartTimeout() bool { + if x == nil { + return false + } + return x.ScheduleToStartTimeout != nil +} + +func (x *ActivityExecutionInfo) HasStartToCloseTimeout() bool { + if x == nil { + return false + } + return x.StartToCloseTimeout != nil +} + +func (x *ActivityExecutionInfo) HasHeartbeatTimeout() bool { + if x == nil { + return false + } + return x.HeartbeatTimeout != nil +} + +func (x *ActivityExecutionInfo) HasRetryPolicy() bool { + if x == nil { + return false + } + return x.RetryPolicy != nil +} + +func (x *ActivityExecutionInfo) HasHeartbeatDetails() bool { + if x == nil { + return false + } + return x.HeartbeatDetails != nil +} + +func (x *ActivityExecutionInfo) HasLastHeartbeatTime() bool { + if x == nil { + return false + } + return x.LastHeartbeatTime != nil +} + +func (x *ActivityExecutionInfo) HasLastStartedTime() bool { + if x == nil { + return false + } + return x.LastStartedTime != nil +} + +func (x *ActivityExecutionInfo) HasExecutionDuration() bool { + if x == nil { + return false + } + return x.ExecutionDuration != nil +} + +func (x *ActivityExecutionInfo) HasScheduleTime() bool { + if x == nil { + return false + } + return x.ScheduleTime != nil +} + +func (x *ActivityExecutionInfo) HasExpirationTime() bool { + if x == nil { + return false + } + return x.ExpirationTime != nil +} + +func (x *ActivityExecutionInfo) HasCloseTime() bool { + if x == nil { + return false + } + return x.CloseTime != nil +} + +func (x *ActivityExecutionInfo) HasLastFailure() bool { + if x == nil { + return false + } + return x.LastFailure != nil +} + +func (x *ActivityExecutionInfo) HasCurrentRetryInterval() bool { + if x == nil { + return false + } + return x.CurrentRetryInterval != nil +} + +func (x *ActivityExecutionInfo) HasLastAttemptCompleteTime() bool { + if x == nil { + return false + } + return x.LastAttemptCompleteTime != nil +} + +func (x *ActivityExecutionInfo) HasNextAttemptScheduleTime() bool { + if x == nil { + return false + } + return x.NextAttemptScheduleTime != nil +} + +func (x *ActivityExecutionInfo) HasLastDeploymentVersion() bool { + if x == nil { + return false + } + return x.LastDeploymentVersion != nil +} + +func (x *ActivityExecutionInfo) HasPriority() bool { + if x == nil { + return false + } + return x.Priority != nil +} + +func (x *ActivityExecutionInfo) HasSearchAttributes() bool { + if x == nil { + return false + } + return x.SearchAttributes != nil +} + +func (x *ActivityExecutionInfo) HasHeader() bool { + if x == nil { + return false + } + return x.Header != nil +} + +func (x *ActivityExecutionInfo) HasUserMetadata() bool { + if x == nil { + return false + } + return x.UserMetadata != nil +} + +func (x *ActivityExecutionInfo) ClearActivityType() { + x.ActivityType = nil +} + +func (x *ActivityExecutionInfo) ClearScheduleToCloseTimeout() { + x.ScheduleToCloseTimeout = nil +} + +func (x *ActivityExecutionInfo) ClearScheduleToStartTimeout() { + x.ScheduleToStartTimeout = nil +} + +func (x *ActivityExecutionInfo) ClearStartToCloseTimeout() { + x.StartToCloseTimeout = nil +} + +func (x *ActivityExecutionInfo) ClearHeartbeatTimeout() { + x.HeartbeatTimeout = nil +} + +func (x *ActivityExecutionInfo) ClearRetryPolicy() { + x.RetryPolicy = nil +} + +func (x *ActivityExecutionInfo) ClearHeartbeatDetails() { + x.HeartbeatDetails = nil +} + +func (x *ActivityExecutionInfo) ClearLastHeartbeatTime() { + x.LastHeartbeatTime = nil +} + +func (x *ActivityExecutionInfo) ClearLastStartedTime() { + x.LastStartedTime = nil +} + +func (x *ActivityExecutionInfo) ClearExecutionDuration() { + x.ExecutionDuration = nil +} + +func (x *ActivityExecutionInfo) ClearScheduleTime() { + x.ScheduleTime = nil +} + +func (x *ActivityExecutionInfo) ClearExpirationTime() { + x.ExpirationTime = nil +} + +func (x *ActivityExecutionInfo) ClearCloseTime() { + x.CloseTime = nil +} + +func (x *ActivityExecutionInfo) ClearLastFailure() { + x.LastFailure = nil +} + +func (x *ActivityExecutionInfo) ClearCurrentRetryInterval() { + x.CurrentRetryInterval = nil +} + +func (x *ActivityExecutionInfo) ClearLastAttemptCompleteTime() { + x.LastAttemptCompleteTime = nil +} + +func (x *ActivityExecutionInfo) ClearNextAttemptScheduleTime() { + x.NextAttemptScheduleTime = nil +} + +func (x *ActivityExecutionInfo) ClearLastDeploymentVersion() { + x.LastDeploymentVersion = nil +} + +func (x *ActivityExecutionInfo) ClearPriority() { + x.Priority = nil +} + +func (x *ActivityExecutionInfo) ClearSearchAttributes() { + x.SearchAttributes = nil +} + +func (x *ActivityExecutionInfo) ClearHeader() { + x.Header = nil +} + +func (x *ActivityExecutionInfo) ClearUserMetadata() { + x.UserMetadata = nil +} + +type ActivityExecutionInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Unique identifier of this activity within its namespace along with run ID (below). + ActivityId string + RunId string + // The type of the activity, a string that maps to a registered activity on a worker. + ActivityType *v1.ActivityType + // A general status for this activity, indicates whether it is currently running or in one of the terminal statuses. + Status v13.ActivityExecutionStatus + // More detailed breakdown of ACTIVITY_EXECUTION_STATUS_RUNNING. + RunState v13.PendingActivityState + TaskQueue string + // Indicates how long the caller is willing to wait for an activity completion. Limits how long + // retries will be attempted. + // + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + ScheduleToCloseTimeout *durationpb.Duration + // Limits time an activity task can stay in a task queue before a worker picks it up. This + // timeout is always non retryable, as all a retry would achieve is to put it back into the same + // queue. Defaults to `schedule_to_close_timeout`. + // + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + ScheduleToStartTimeout *durationpb.Duration + // Maximum time a single activity attempt is allowed to execute after being picked up by a worker. This + // timeout is always retryable. + // + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + StartToCloseTimeout *durationpb.Duration + // Maximum permitted time between successful worker heartbeats. + HeartbeatTimeout *durationpb.Duration + // The retry policy for the activity. Will never exceed `schedule_to_close_timeout`. + RetryPolicy *v1.RetryPolicy + // Details provided in the last recorded activity heartbeat. + HeartbeatDetails *v1.Payloads + // Time the last heartbeat was recorded. + LastHeartbeatTime *timestamppb.Timestamp + // Time the last attempt was started. + LastStartedTime *timestamppb.Timestamp + // The attempt this activity is currently on. Incremented each time a new attempt is scheduled. + Attempt int32 + // How long this activity has been running for, including all attempts and backoff between attempts. + ExecutionDuration *durationpb.Duration + // Time the activity was originally scheduled via a StartActivityExecution request. + ScheduleTime *timestamppb.Timestamp + // Scheduled time + schedule to close timeout. + ExpirationTime *timestamppb.Timestamp + // Time when the activity transitioned to a closed state. + CloseTime *timestamppb.Timestamp + // Failure details from the last failed attempt. + LastFailure *v11.Failure + LastWorkerIdentity string + // Time from the last attempt failure to the next activity retry. + // If the activity is currently running, this represents the next retry interval in case the attempt fails. + // If activity is currently backing off between attempt, this represents the current retry interval. + // If there is no next retry allowed, this field will be null. + // This interval is typically calculated from the specified retry policy, but may be modified if an activity fails + // with a retryable application failure specifying a retry delay. + CurrentRetryInterval *durationpb.Duration + // The time when the last activity attempt completed. If activity has not been completed yet, it will be null. + LastAttemptCompleteTime *timestamppb.Timestamp + // The time when the next activity attempt will be scheduled. + // If activity is currently scheduled or started, this field will be null. + NextAttemptScheduleTime *timestamppb.Timestamp + // The Worker Deployment Version this activity was dispatched to most recently. + // If nil, the activity has not yet been dispatched or was last dispatched to an unversioned worker. + LastDeploymentVersion *v14.WorkerDeploymentVersion + // Priority metadata. + Priority *v1.Priority + // Incremented each time the activity's state is mutated in persistence. + StateTransitionCount int64 + // Updated once on scheduled and once on terminal status. + StateSizeBytes int64 + SearchAttributes *v1.SearchAttributes + Header *v1.Header + // Metadata for use by user interfaces to display the fixed as-of-start summary and details of the activity. + UserMetadata *v15.UserMetadata + // Set if activity cancelation was requested. + CanceledReason string +} + +func (b0 ActivityExecutionInfo_builder) Build() *ActivityExecutionInfo { + m0 := &ActivityExecutionInfo{} + b, x := &b0, m0 + _, _ = b, x + x.ActivityId = b.ActivityId + x.RunId = b.RunId + x.ActivityType = b.ActivityType + x.Status = b.Status + x.RunState = b.RunState + x.TaskQueue = b.TaskQueue + x.ScheduleToCloseTimeout = b.ScheduleToCloseTimeout + x.ScheduleToStartTimeout = b.ScheduleToStartTimeout + x.StartToCloseTimeout = b.StartToCloseTimeout + x.HeartbeatTimeout = b.HeartbeatTimeout + x.RetryPolicy = b.RetryPolicy + x.HeartbeatDetails = b.HeartbeatDetails + x.LastHeartbeatTime = b.LastHeartbeatTime + x.LastStartedTime = b.LastStartedTime + x.Attempt = b.Attempt + x.ExecutionDuration = b.ExecutionDuration + x.ScheduleTime = b.ScheduleTime + x.ExpirationTime = b.ExpirationTime + x.CloseTime = b.CloseTime + x.LastFailure = b.LastFailure + x.LastWorkerIdentity = b.LastWorkerIdentity + x.CurrentRetryInterval = b.CurrentRetryInterval + x.LastAttemptCompleteTime = b.LastAttemptCompleteTime + x.NextAttemptScheduleTime = b.NextAttemptScheduleTime + x.LastDeploymentVersion = b.LastDeploymentVersion + x.Priority = b.Priority + x.StateTransitionCount = b.StateTransitionCount + x.StateSizeBytes = b.StateSizeBytes + x.SearchAttributes = b.SearchAttributes + x.Header = b.Header + x.UserMetadata = b.UserMetadata + x.CanceledReason = b.CanceledReason + return m0 +} + // Limited activity information returned in the list response. // When adding fields here, ensure that it is also present in ActivityExecutionInfo (note that it // may already be present in ActivityExecutionInfo but not at the top-level). type ActivityExecutionListInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // A unique identifier of this activity within its namespace along with run ID (below). ActivityId string `protobuf:"bytes,1,opt,name=activity_id,json=activityId,proto3" json:"activity_id,omitempty"` // The run ID of the standalone activity. @@ -633,11 +1385,6 @@ func (x *ActivityExecutionListInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ActivityExecutionListInfo.ProtoReflect.Descriptor instead. -func (*ActivityExecutionListInfo) Descriptor() ([]byte, []int) { - return file_temporal_api_activity_v1_message_proto_rawDescGZIP(), []int{3} -} - func (x *ActivityExecutionListInfo) GetActivityId() string { if x != nil { return x.ActivityId @@ -715,6 +1462,152 @@ func (x *ActivityExecutionListInfo) GetExecutionDuration() *durationpb.Duration return nil } +func (x *ActivityExecutionListInfo) SetActivityId(v string) { + x.ActivityId = v +} + +func (x *ActivityExecutionListInfo) SetRunId(v string) { + x.RunId = v +} + +func (x *ActivityExecutionListInfo) SetActivityType(v *v1.ActivityType) { + x.ActivityType = v +} + +func (x *ActivityExecutionListInfo) SetScheduleTime(v *timestamppb.Timestamp) { + x.ScheduleTime = v +} + +func (x *ActivityExecutionListInfo) SetCloseTime(v *timestamppb.Timestamp) { + x.CloseTime = v +} + +func (x *ActivityExecutionListInfo) SetStatus(v v13.ActivityExecutionStatus) { + x.Status = v +} + +func (x *ActivityExecutionListInfo) SetSearchAttributes(v *v1.SearchAttributes) { + x.SearchAttributes = v +} + +func (x *ActivityExecutionListInfo) SetTaskQueue(v string) { + x.TaskQueue = v +} + +func (x *ActivityExecutionListInfo) SetStateTransitionCount(v int64) { + x.StateTransitionCount = v +} + +func (x *ActivityExecutionListInfo) SetStateSizeBytes(v int64) { + x.StateSizeBytes = v +} + +func (x *ActivityExecutionListInfo) SetExecutionDuration(v *durationpb.Duration) { + x.ExecutionDuration = v +} + +func (x *ActivityExecutionListInfo) HasActivityType() bool { + if x == nil { + return false + } + return x.ActivityType != nil +} + +func (x *ActivityExecutionListInfo) HasScheduleTime() bool { + if x == nil { + return false + } + return x.ScheduleTime != nil +} + +func (x *ActivityExecutionListInfo) HasCloseTime() bool { + if x == nil { + return false + } + return x.CloseTime != nil +} + +func (x *ActivityExecutionListInfo) HasSearchAttributes() bool { + if x == nil { + return false + } + return x.SearchAttributes != nil +} + +func (x *ActivityExecutionListInfo) HasExecutionDuration() bool { + if x == nil { + return false + } + return x.ExecutionDuration != nil +} + +func (x *ActivityExecutionListInfo) ClearActivityType() { + x.ActivityType = nil +} + +func (x *ActivityExecutionListInfo) ClearScheduleTime() { + x.ScheduleTime = nil +} + +func (x *ActivityExecutionListInfo) ClearCloseTime() { + x.CloseTime = nil +} + +func (x *ActivityExecutionListInfo) ClearSearchAttributes() { + x.SearchAttributes = nil +} + +func (x *ActivityExecutionListInfo) ClearExecutionDuration() { + x.ExecutionDuration = nil +} + +type ActivityExecutionListInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // A unique identifier of this activity within its namespace along with run ID (below). + ActivityId string + // The run ID of the standalone activity. + RunId string + // The type of the activity, a string that maps to a registered activity on a worker. + ActivityType *v1.ActivityType + // Time the activity was originally scheduled via a StartActivityExecution request. + ScheduleTime *timestamppb.Timestamp + // If the activity is in a terminal status, this field represents the time the activity transitioned to that status. + CloseTime *timestamppb.Timestamp + // Only scheduled and terminal statuses appear here. More detailed information in PendingActivityInfo but not + // available in the list response. + Status v13.ActivityExecutionStatus + // Search attributes from the start request. + SearchAttributes *v1.SearchAttributes + // The task queue this activity was scheduled on when it was originally started, updated on activity options update. + TaskQueue string + // Updated on terminal status. + StateTransitionCount int64 + // Updated once on scheduled and once on terminal status. + StateSizeBytes int64 + // The difference between close time and scheduled time. + // This field is only populated if the activity is closed. + ExecutionDuration *durationpb.Duration +} + +func (b0 ActivityExecutionListInfo_builder) Build() *ActivityExecutionListInfo { + m0 := &ActivityExecutionListInfo{} + b, x := &b0, m0 + _, _ = b, x + x.ActivityId = b.ActivityId + x.RunId = b.RunId + x.ActivityType = b.ActivityType + x.ScheduleTime = b.ScheduleTime + x.CloseTime = b.CloseTime + x.Status = b.Status + x.SearchAttributes = b.SearchAttributes + x.TaskQueue = b.TaskQueue + x.StateTransitionCount = b.StateTransitionCount + x.StateSizeBytes = b.StateSizeBytes + x.ExecutionDuration = b.ExecutionDuration + return m0 +} + var File_temporal_api_activity_v1_message_proto protoreflect.FileDescriptor const file_temporal_api_activity_v1_message_proto_rawDesc = "" + @@ -788,18 +1681,6 @@ const file_temporal_api_activity_v1_message_proto_rawDesc = "" + "\x12execution_duration\x18\v \x01(\v2\x19.google.protobuf.DurationR\x11executionDurationB\x93\x01\n" + "\x1bio.temporal.api.activity.v1B\fMessageProtoP\x01Z'go.temporal.io/api/activity/v1;activity\xaa\x02\x1aTemporalio.Api.Activity.V1\xea\x02\x1dTemporalio::Api::Activity::V1b\x06proto3" -var ( - file_temporal_api_activity_v1_message_proto_rawDescOnce sync.Once - file_temporal_api_activity_v1_message_proto_rawDescData []byte -) - -func file_temporal_api_activity_v1_message_proto_rawDescGZIP() []byte { - file_temporal_api_activity_v1_message_proto_rawDescOnce.Do(func() { - file_temporal_api_activity_v1_message_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_api_activity_v1_message_proto_rawDesc), len(file_temporal_api_activity_v1_message_proto_rawDesc))) - }) - return file_temporal_api_activity_v1_message_proto_rawDescData -} - var file_temporal_api_activity_v1_message_proto_msgTypes = make([]protoimpl.MessageInfo, 4) var file_temporal_api_activity_v1_message_proto_goTypes = []any{ (*ActivityExecutionOutcome)(nil), // 0: temporal.api.activity.v1.ActivityExecutionOutcome diff --git a/activity/v1/message_protoopaque.pb.go b/activity/v1/message_protoopaque.pb.go new file mode 100644 index 00000000..f2167a85 --- /dev/null +++ b/activity/v1/message_protoopaque.pb.go @@ -0,0 +1,1679 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// plugins: +// protoc-gen-go +// protoc +// source: temporal/api/activity/v1/message.proto + +//go:build protoopaque + +package activity + +import ( + reflect "reflect" + "strconv" + unsafe "unsafe" + + v1 "go.temporal.io/api/common/v1" + v14 "go.temporal.io/api/deployment/v1" + v13 "go.temporal.io/api/enums/v1" + v11 "go.temporal.io/api/failure/v1" + v15 "go.temporal.io/api/sdk/v1" + v12 "go.temporal.io/api/taskqueue/v1" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + durationpb "google.golang.org/protobuf/types/known/durationpb" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// The outcome of a completed activity execution: either a successful result or a failure. +type ActivityExecutionOutcome struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Value isActivityExecutionOutcome_Value `protobuf_oneof:"value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ActivityExecutionOutcome) Reset() { + *x = ActivityExecutionOutcome{} + mi := &file_temporal_api_activity_v1_message_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ActivityExecutionOutcome) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ActivityExecutionOutcome) ProtoMessage() {} + +func (x *ActivityExecutionOutcome) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_activity_v1_message_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ActivityExecutionOutcome) GetResult() *v1.Payloads { + if x != nil { + if x, ok := x.xxx_hidden_Value.(*activityExecutionOutcome_Result); ok { + return x.Result + } + } + return nil +} + +func (x *ActivityExecutionOutcome) GetFailure() *v11.Failure { + if x != nil { + if x, ok := x.xxx_hidden_Value.(*activityExecutionOutcome_Failure); ok { + return x.Failure + } + } + return nil +} + +func (x *ActivityExecutionOutcome) SetResult(v *v1.Payloads) { + if v == nil { + x.xxx_hidden_Value = nil + return + } + x.xxx_hidden_Value = &activityExecutionOutcome_Result{v} +} + +func (x *ActivityExecutionOutcome) SetFailure(v *v11.Failure) { + if v == nil { + x.xxx_hidden_Value = nil + return + } + x.xxx_hidden_Value = &activityExecutionOutcome_Failure{v} +} + +func (x *ActivityExecutionOutcome) HasValue() bool { + if x == nil { + return false + } + return x.xxx_hidden_Value != nil +} + +func (x *ActivityExecutionOutcome) HasResult() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Value.(*activityExecutionOutcome_Result) + return ok +} + +func (x *ActivityExecutionOutcome) HasFailure() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Value.(*activityExecutionOutcome_Failure) + return ok +} + +func (x *ActivityExecutionOutcome) ClearValue() { + x.xxx_hidden_Value = nil +} + +func (x *ActivityExecutionOutcome) ClearResult() { + if _, ok := x.xxx_hidden_Value.(*activityExecutionOutcome_Result); ok { + x.xxx_hidden_Value = nil + } +} + +func (x *ActivityExecutionOutcome) ClearFailure() { + if _, ok := x.xxx_hidden_Value.(*activityExecutionOutcome_Failure); ok { + x.xxx_hidden_Value = nil + } +} + +const ActivityExecutionOutcome_Value_not_set_case case_ActivityExecutionOutcome_Value = 0 +const ActivityExecutionOutcome_Result_case case_ActivityExecutionOutcome_Value = 1 +const ActivityExecutionOutcome_Failure_case case_ActivityExecutionOutcome_Value = 2 + +func (x *ActivityExecutionOutcome) WhichValue() case_ActivityExecutionOutcome_Value { + if x == nil { + return ActivityExecutionOutcome_Value_not_set_case + } + switch x.xxx_hidden_Value.(type) { + case *activityExecutionOutcome_Result: + return ActivityExecutionOutcome_Result_case + case *activityExecutionOutcome_Failure: + return ActivityExecutionOutcome_Failure_case + default: + return ActivityExecutionOutcome_Value_not_set_case + } +} + +type ActivityExecutionOutcome_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Fields of oneof xxx_hidden_Value: + // The result if the activity completed successfully. + Result *v1.Payloads + // The failure if the activity completed unsuccessfully. + Failure *v11.Failure + // -- end of xxx_hidden_Value +} + +func (b0 ActivityExecutionOutcome_builder) Build() *ActivityExecutionOutcome { + m0 := &ActivityExecutionOutcome{} + b, x := &b0, m0 + _, _ = b, x + if b.Result != nil { + x.xxx_hidden_Value = &activityExecutionOutcome_Result{b.Result} + } + if b.Failure != nil { + x.xxx_hidden_Value = &activityExecutionOutcome_Failure{b.Failure} + } + return m0 +} + +type case_ActivityExecutionOutcome_Value protoreflect.FieldNumber + +func (x case_ActivityExecutionOutcome_Value) String() string { + switch x { + case ActivityExecutionOutcome_Value_not_set_case: + return "ActivityExecutionOutcomeValueNotSetCase" + case ActivityExecutionOutcome_Result_case: + return "ActivityExecutionOutcomeResultCase" + case ActivityExecutionOutcome_Failure_case: + return "ActivityExecutionOutcomeFailureCase" + default: + return strconv.Itoa(int(x)) + } + +} + +type isActivityExecutionOutcome_Value interface { + isActivityExecutionOutcome_Value() +} + +type activityExecutionOutcome_Result struct { + // The result if the activity completed successfully. + Result *v1.Payloads `protobuf:"bytes,1,opt,name=result,proto3,oneof"` +} + +type activityExecutionOutcome_Failure struct { + // The failure if the activity completed unsuccessfully. + Failure *v11.Failure `protobuf:"bytes,2,opt,name=failure,proto3,oneof"` +} + +func (*activityExecutionOutcome_Result) isActivityExecutionOutcome_Value() {} + +func (*activityExecutionOutcome_Failure) isActivityExecutionOutcome_Value() {} + +type ActivityOptions struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_TaskQueue *v12.TaskQueue `protobuf:"bytes,1,opt,name=task_queue,json=taskQueue,proto3"` + xxx_hidden_ScheduleToCloseTimeout *durationpb.Duration `protobuf:"bytes,2,opt,name=schedule_to_close_timeout,json=scheduleToCloseTimeout,proto3"` + xxx_hidden_ScheduleToStartTimeout *durationpb.Duration `protobuf:"bytes,3,opt,name=schedule_to_start_timeout,json=scheduleToStartTimeout,proto3"` + xxx_hidden_StartToCloseTimeout *durationpb.Duration `protobuf:"bytes,4,opt,name=start_to_close_timeout,json=startToCloseTimeout,proto3"` + xxx_hidden_HeartbeatTimeout *durationpb.Duration `protobuf:"bytes,5,opt,name=heartbeat_timeout,json=heartbeatTimeout,proto3"` + xxx_hidden_RetryPolicy *v1.RetryPolicy `protobuf:"bytes,6,opt,name=retry_policy,json=retryPolicy,proto3"` + xxx_hidden_Priority *v1.Priority `protobuf:"bytes,7,opt,name=priority,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ActivityOptions) Reset() { + *x = ActivityOptions{} + mi := &file_temporal_api_activity_v1_message_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ActivityOptions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ActivityOptions) ProtoMessage() {} + +func (x *ActivityOptions) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_activity_v1_message_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ActivityOptions) GetTaskQueue() *v12.TaskQueue { + if x != nil { + return x.xxx_hidden_TaskQueue + } + return nil +} + +func (x *ActivityOptions) GetScheduleToCloseTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_ScheduleToCloseTimeout + } + return nil +} + +func (x *ActivityOptions) GetScheduleToStartTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_ScheduleToStartTimeout + } + return nil +} + +func (x *ActivityOptions) GetStartToCloseTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_StartToCloseTimeout + } + return nil +} + +func (x *ActivityOptions) GetHeartbeatTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_HeartbeatTimeout + } + return nil +} + +func (x *ActivityOptions) GetRetryPolicy() *v1.RetryPolicy { + if x != nil { + return x.xxx_hidden_RetryPolicy + } + return nil +} + +func (x *ActivityOptions) GetPriority() *v1.Priority { + if x != nil { + return x.xxx_hidden_Priority + } + return nil +} + +func (x *ActivityOptions) SetTaskQueue(v *v12.TaskQueue) { + x.xxx_hidden_TaskQueue = v +} + +func (x *ActivityOptions) SetScheduleToCloseTimeout(v *durationpb.Duration) { + x.xxx_hidden_ScheduleToCloseTimeout = v +} + +func (x *ActivityOptions) SetScheduleToStartTimeout(v *durationpb.Duration) { + x.xxx_hidden_ScheduleToStartTimeout = v +} + +func (x *ActivityOptions) SetStartToCloseTimeout(v *durationpb.Duration) { + x.xxx_hidden_StartToCloseTimeout = v +} + +func (x *ActivityOptions) SetHeartbeatTimeout(v *durationpb.Duration) { + x.xxx_hidden_HeartbeatTimeout = v +} + +func (x *ActivityOptions) SetRetryPolicy(v *v1.RetryPolicy) { + x.xxx_hidden_RetryPolicy = v +} + +func (x *ActivityOptions) SetPriority(v *v1.Priority) { + x.xxx_hidden_Priority = v +} + +func (x *ActivityOptions) HasTaskQueue() bool { + if x == nil { + return false + } + return x.xxx_hidden_TaskQueue != nil +} + +func (x *ActivityOptions) HasScheduleToCloseTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_ScheduleToCloseTimeout != nil +} + +func (x *ActivityOptions) HasScheduleToStartTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_ScheduleToStartTimeout != nil +} + +func (x *ActivityOptions) HasStartToCloseTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_StartToCloseTimeout != nil +} + +func (x *ActivityOptions) HasHeartbeatTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_HeartbeatTimeout != nil +} + +func (x *ActivityOptions) HasRetryPolicy() bool { + if x == nil { + return false + } + return x.xxx_hidden_RetryPolicy != nil +} + +func (x *ActivityOptions) HasPriority() bool { + if x == nil { + return false + } + return x.xxx_hidden_Priority != nil +} + +func (x *ActivityOptions) ClearTaskQueue() { + x.xxx_hidden_TaskQueue = nil +} + +func (x *ActivityOptions) ClearScheduleToCloseTimeout() { + x.xxx_hidden_ScheduleToCloseTimeout = nil +} + +func (x *ActivityOptions) ClearScheduleToStartTimeout() { + x.xxx_hidden_ScheduleToStartTimeout = nil +} + +func (x *ActivityOptions) ClearStartToCloseTimeout() { + x.xxx_hidden_StartToCloseTimeout = nil +} + +func (x *ActivityOptions) ClearHeartbeatTimeout() { + x.xxx_hidden_HeartbeatTimeout = nil +} + +func (x *ActivityOptions) ClearRetryPolicy() { + x.xxx_hidden_RetryPolicy = nil +} + +func (x *ActivityOptions) ClearPriority() { + x.xxx_hidden_Priority = nil +} + +type ActivityOptions_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + TaskQueue *v12.TaskQueue + // Indicates how long the caller is willing to wait for an activity completion. Limits how long + // retries will be attempted. Either this or `start_to_close_timeout` must be specified. + // + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + ScheduleToCloseTimeout *durationpb.Duration + // Limits time an activity task can stay in a task queue before a worker picks it up. This + // timeout is always non retryable, as all a retry would achieve is to put it back into the same + // queue. Defaults to `schedule_to_close_timeout` or workflow execution timeout if not + // specified. + // + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + ScheduleToStartTimeout *durationpb.Duration + // Maximum time an activity is allowed to execute after being picked up by a worker. This + // timeout is always retryable. Either this or `schedule_to_close_timeout` must be + // specified. + // + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + StartToCloseTimeout *durationpb.Duration + // Maximum permitted time between successful worker heartbeats. + HeartbeatTimeout *durationpb.Duration + // The retry policy for the activity. Will never exceed `schedule_to_close_timeout`. + RetryPolicy *v1.RetryPolicy + // Priority metadata. If this message is not present, or any fields are not + // present, they inherit the values from the workflow. + Priority *v1.Priority +} + +func (b0 ActivityOptions_builder) Build() *ActivityOptions { + m0 := &ActivityOptions{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_TaskQueue = b.TaskQueue + x.xxx_hidden_ScheduleToCloseTimeout = b.ScheduleToCloseTimeout + x.xxx_hidden_ScheduleToStartTimeout = b.ScheduleToStartTimeout + x.xxx_hidden_StartToCloseTimeout = b.StartToCloseTimeout + x.xxx_hidden_HeartbeatTimeout = b.HeartbeatTimeout + x.xxx_hidden_RetryPolicy = b.RetryPolicy + x.xxx_hidden_Priority = b.Priority + return m0 +} + +// Information about a standalone activity. +type ActivityExecutionInfo struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ActivityId string `protobuf:"bytes,1,opt,name=activity_id,json=activityId,proto3"` + xxx_hidden_RunId string `protobuf:"bytes,2,opt,name=run_id,json=runId,proto3"` + xxx_hidden_ActivityType *v1.ActivityType `protobuf:"bytes,3,opt,name=activity_type,json=activityType,proto3"` + xxx_hidden_Status v13.ActivityExecutionStatus `protobuf:"varint,4,opt,name=status,proto3,enum=temporal.api.enums.v1.ActivityExecutionStatus"` + xxx_hidden_RunState v13.PendingActivityState `protobuf:"varint,5,opt,name=run_state,json=runState,proto3,enum=temporal.api.enums.v1.PendingActivityState"` + xxx_hidden_TaskQueue string `protobuf:"bytes,6,opt,name=task_queue,json=taskQueue,proto3"` + xxx_hidden_ScheduleToCloseTimeout *durationpb.Duration `protobuf:"bytes,7,opt,name=schedule_to_close_timeout,json=scheduleToCloseTimeout,proto3"` + xxx_hidden_ScheduleToStartTimeout *durationpb.Duration `protobuf:"bytes,8,opt,name=schedule_to_start_timeout,json=scheduleToStartTimeout,proto3"` + xxx_hidden_StartToCloseTimeout *durationpb.Duration `protobuf:"bytes,9,opt,name=start_to_close_timeout,json=startToCloseTimeout,proto3"` + xxx_hidden_HeartbeatTimeout *durationpb.Duration `protobuf:"bytes,10,opt,name=heartbeat_timeout,json=heartbeatTimeout,proto3"` + xxx_hidden_RetryPolicy *v1.RetryPolicy `protobuf:"bytes,11,opt,name=retry_policy,json=retryPolicy,proto3"` + xxx_hidden_HeartbeatDetails *v1.Payloads `protobuf:"bytes,12,opt,name=heartbeat_details,json=heartbeatDetails,proto3"` + xxx_hidden_LastHeartbeatTime *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=last_heartbeat_time,json=lastHeartbeatTime,proto3"` + xxx_hidden_LastStartedTime *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=last_started_time,json=lastStartedTime,proto3"` + xxx_hidden_Attempt int32 `protobuf:"varint,15,opt,name=attempt,proto3"` + xxx_hidden_ExecutionDuration *durationpb.Duration `protobuf:"bytes,16,opt,name=execution_duration,json=executionDuration,proto3"` + xxx_hidden_ScheduleTime *timestamppb.Timestamp `protobuf:"bytes,17,opt,name=schedule_time,json=scheduleTime,proto3"` + xxx_hidden_ExpirationTime *timestamppb.Timestamp `protobuf:"bytes,18,opt,name=expiration_time,json=expirationTime,proto3"` + xxx_hidden_CloseTime *timestamppb.Timestamp `protobuf:"bytes,19,opt,name=close_time,json=closeTime,proto3"` + xxx_hidden_LastFailure *v11.Failure `protobuf:"bytes,20,opt,name=last_failure,json=lastFailure,proto3"` + xxx_hidden_LastWorkerIdentity string `protobuf:"bytes,21,opt,name=last_worker_identity,json=lastWorkerIdentity,proto3"` + xxx_hidden_CurrentRetryInterval *durationpb.Duration `protobuf:"bytes,22,opt,name=current_retry_interval,json=currentRetryInterval,proto3"` + xxx_hidden_LastAttemptCompleteTime *timestamppb.Timestamp `protobuf:"bytes,23,opt,name=last_attempt_complete_time,json=lastAttemptCompleteTime,proto3"` + xxx_hidden_NextAttemptScheduleTime *timestamppb.Timestamp `protobuf:"bytes,24,opt,name=next_attempt_schedule_time,json=nextAttemptScheduleTime,proto3"` + xxx_hidden_LastDeploymentVersion *v14.WorkerDeploymentVersion `protobuf:"bytes,25,opt,name=last_deployment_version,json=lastDeploymentVersion,proto3"` + xxx_hidden_Priority *v1.Priority `protobuf:"bytes,26,opt,name=priority,proto3"` + xxx_hidden_StateTransitionCount int64 `protobuf:"varint,27,opt,name=state_transition_count,json=stateTransitionCount,proto3"` + xxx_hidden_StateSizeBytes int64 `protobuf:"varint,28,opt,name=state_size_bytes,json=stateSizeBytes,proto3"` + xxx_hidden_SearchAttributes *v1.SearchAttributes `protobuf:"bytes,29,opt,name=search_attributes,json=searchAttributes,proto3"` + xxx_hidden_Header *v1.Header `protobuf:"bytes,30,opt,name=header,proto3"` + xxx_hidden_UserMetadata *v15.UserMetadata `protobuf:"bytes,31,opt,name=user_metadata,json=userMetadata,proto3"` + xxx_hidden_CanceledReason string `protobuf:"bytes,32,opt,name=canceled_reason,json=canceledReason,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ActivityExecutionInfo) Reset() { + *x = ActivityExecutionInfo{} + mi := &file_temporal_api_activity_v1_message_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ActivityExecutionInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ActivityExecutionInfo) ProtoMessage() {} + +func (x *ActivityExecutionInfo) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_activity_v1_message_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ActivityExecutionInfo) GetActivityId() string { + if x != nil { + return x.xxx_hidden_ActivityId + } + return "" +} + +func (x *ActivityExecutionInfo) GetRunId() string { + if x != nil { + return x.xxx_hidden_RunId + } + return "" +} + +func (x *ActivityExecutionInfo) GetActivityType() *v1.ActivityType { + if x != nil { + return x.xxx_hidden_ActivityType + } + return nil +} + +func (x *ActivityExecutionInfo) GetStatus() v13.ActivityExecutionStatus { + if x != nil { + return x.xxx_hidden_Status + } + return v13.ActivityExecutionStatus(0) +} + +func (x *ActivityExecutionInfo) GetRunState() v13.PendingActivityState { + if x != nil { + return x.xxx_hidden_RunState + } + return v13.PendingActivityState(0) +} + +func (x *ActivityExecutionInfo) GetTaskQueue() string { + if x != nil { + return x.xxx_hidden_TaskQueue + } + return "" +} + +func (x *ActivityExecutionInfo) GetScheduleToCloseTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_ScheduleToCloseTimeout + } + return nil +} + +func (x *ActivityExecutionInfo) GetScheduleToStartTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_ScheduleToStartTimeout + } + return nil +} + +func (x *ActivityExecutionInfo) GetStartToCloseTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_StartToCloseTimeout + } + return nil +} + +func (x *ActivityExecutionInfo) GetHeartbeatTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_HeartbeatTimeout + } + return nil +} + +func (x *ActivityExecutionInfo) GetRetryPolicy() *v1.RetryPolicy { + if x != nil { + return x.xxx_hidden_RetryPolicy + } + return nil +} + +func (x *ActivityExecutionInfo) GetHeartbeatDetails() *v1.Payloads { + if x != nil { + return x.xxx_hidden_HeartbeatDetails + } + return nil +} + +func (x *ActivityExecutionInfo) GetLastHeartbeatTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_LastHeartbeatTime + } + return nil +} + +func (x *ActivityExecutionInfo) GetLastStartedTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_LastStartedTime + } + return nil +} + +func (x *ActivityExecutionInfo) GetAttempt() int32 { + if x != nil { + return x.xxx_hidden_Attempt + } + return 0 +} + +func (x *ActivityExecutionInfo) GetExecutionDuration() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_ExecutionDuration + } + return nil +} + +func (x *ActivityExecutionInfo) GetScheduleTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_ScheduleTime + } + return nil +} + +func (x *ActivityExecutionInfo) GetExpirationTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_ExpirationTime + } + return nil +} + +func (x *ActivityExecutionInfo) GetCloseTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_CloseTime + } + return nil +} + +func (x *ActivityExecutionInfo) GetLastFailure() *v11.Failure { + if x != nil { + return x.xxx_hidden_LastFailure + } + return nil +} + +func (x *ActivityExecutionInfo) GetLastWorkerIdentity() string { + if x != nil { + return x.xxx_hidden_LastWorkerIdentity + } + return "" +} + +func (x *ActivityExecutionInfo) GetCurrentRetryInterval() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_CurrentRetryInterval + } + return nil +} + +func (x *ActivityExecutionInfo) GetLastAttemptCompleteTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_LastAttemptCompleteTime + } + return nil +} + +func (x *ActivityExecutionInfo) GetNextAttemptScheduleTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_NextAttemptScheduleTime + } + return nil +} + +func (x *ActivityExecutionInfo) GetLastDeploymentVersion() *v14.WorkerDeploymentVersion { + if x != nil { + return x.xxx_hidden_LastDeploymentVersion + } + return nil +} + +func (x *ActivityExecutionInfo) GetPriority() *v1.Priority { + if x != nil { + return x.xxx_hidden_Priority + } + return nil +} + +func (x *ActivityExecutionInfo) GetStateTransitionCount() int64 { + if x != nil { + return x.xxx_hidden_StateTransitionCount + } + return 0 +} + +func (x *ActivityExecutionInfo) GetStateSizeBytes() int64 { + if x != nil { + return x.xxx_hidden_StateSizeBytes + } + return 0 +} + +func (x *ActivityExecutionInfo) GetSearchAttributes() *v1.SearchAttributes { + if x != nil { + return x.xxx_hidden_SearchAttributes + } + return nil +} + +func (x *ActivityExecutionInfo) GetHeader() *v1.Header { + if x != nil { + return x.xxx_hidden_Header + } + return nil +} + +func (x *ActivityExecutionInfo) GetUserMetadata() *v15.UserMetadata { + if x != nil { + return x.xxx_hidden_UserMetadata + } + return nil +} + +func (x *ActivityExecutionInfo) GetCanceledReason() string { + if x != nil { + return x.xxx_hidden_CanceledReason + } + return "" +} + +func (x *ActivityExecutionInfo) SetActivityId(v string) { + x.xxx_hidden_ActivityId = v +} + +func (x *ActivityExecutionInfo) SetRunId(v string) { + x.xxx_hidden_RunId = v +} + +func (x *ActivityExecutionInfo) SetActivityType(v *v1.ActivityType) { + x.xxx_hidden_ActivityType = v +} + +func (x *ActivityExecutionInfo) SetStatus(v v13.ActivityExecutionStatus) { + x.xxx_hidden_Status = v +} + +func (x *ActivityExecutionInfo) SetRunState(v v13.PendingActivityState) { + x.xxx_hidden_RunState = v +} + +func (x *ActivityExecutionInfo) SetTaskQueue(v string) { + x.xxx_hidden_TaskQueue = v +} + +func (x *ActivityExecutionInfo) SetScheduleToCloseTimeout(v *durationpb.Duration) { + x.xxx_hidden_ScheduleToCloseTimeout = v +} + +func (x *ActivityExecutionInfo) SetScheduleToStartTimeout(v *durationpb.Duration) { + x.xxx_hidden_ScheduleToStartTimeout = v +} + +func (x *ActivityExecutionInfo) SetStartToCloseTimeout(v *durationpb.Duration) { + x.xxx_hidden_StartToCloseTimeout = v +} + +func (x *ActivityExecutionInfo) SetHeartbeatTimeout(v *durationpb.Duration) { + x.xxx_hidden_HeartbeatTimeout = v +} + +func (x *ActivityExecutionInfo) SetRetryPolicy(v *v1.RetryPolicy) { + x.xxx_hidden_RetryPolicy = v +} + +func (x *ActivityExecutionInfo) SetHeartbeatDetails(v *v1.Payloads) { + x.xxx_hidden_HeartbeatDetails = v +} + +func (x *ActivityExecutionInfo) SetLastHeartbeatTime(v *timestamppb.Timestamp) { + x.xxx_hidden_LastHeartbeatTime = v +} + +func (x *ActivityExecutionInfo) SetLastStartedTime(v *timestamppb.Timestamp) { + x.xxx_hidden_LastStartedTime = v +} + +func (x *ActivityExecutionInfo) SetAttempt(v int32) { + x.xxx_hidden_Attempt = v +} + +func (x *ActivityExecutionInfo) SetExecutionDuration(v *durationpb.Duration) { + x.xxx_hidden_ExecutionDuration = v +} + +func (x *ActivityExecutionInfo) SetScheduleTime(v *timestamppb.Timestamp) { + x.xxx_hidden_ScheduleTime = v +} + +func (x *ActivityExecutionInfo) SetExpirationTime(v *timestamppb.Timestamp) { + x.xxx_hidden_ExpirationTime = v +} + +func (x *ActivityExecutionInfo) SetCloseTime(v *timestamppb.Timestamp) { + x.xxx_hidden_CloseTime = v +} + +func (x *ActivityExecutionInfo) SetLastFailure(v *v11.Failure) { + x.xxx_hidden_LastFailure = v +} + +func (x *ActivityExecutionInfo) SetLastWorkerIdentity(v string) { + x.xxx_hidden_LastWorkerIdentity = v +} + +func (x *ActivityExecutionInfo) SetCurrentRetryInterval(v *durationpb.Duration) { + x.xxx_hidden_CurrentRetryInterval = v +} + +func (x *ActivityExecutionInfo) SetLastAttemptCompleteTime(v *timestamppb.Timestamp) { + x.xxx_hidden_LastAttemptCompleteTime = v +} + +func (x *ActivityExecutionInfo) SetNextAttemptScheduleTime(v *timestamppb.Timestamp) { + x.xxx_hidden_NextAttemptScheduleTime = v +} + +func (x *ActivityExecutionInfo) SetLastDeploymentVersion(v *v14.WorkerDeploymentVersion) { + x.xxx_hidden_LastDeploymentVersion = v +} + +func (x *ActivityExecutionInfo) SetPriority(v *v1.Priority) { + x.xxx_hidden_Priority = v +} + +func (x *ActivityExecutionInfo) SetStateTransitionCount(v int64) { + x.xxx_hidden_StateTransitionCount = v +} + +func (x *ActivityExecutionInfo) SetStateSizeBytes(v int64) { + x.xxx_hidden_StateSizeBytes = v +} + +func (x *ActivityExecutionInfo) SetSearchAttributes(v *v1.SearchAttributes) { + x.xxx_hidden_SearchAttributes = v +} + +func (x *ActivityExecutionInfo) SetHeader(v *v1.Header) { + x.xxx_hidden_Header = v +} + +func (x *ActivityExecutionInfo) SetUserMetadata(v *v15.UserMetadata) { + x.xxx_hidden_UserMetadata = v +} + +func (x *ActivityExecutionInfo) SetCanceledReason(v string) { + x.xxx_hidden_CanceledReason = v +} + +func (x *ActivityExecutionInfo) HasActivityType() bool { + if x == nil { + return false + } + return x.xxx_hidden_ActivityType != nil +} + +func (x *ActivityExecutionInfo) HasScheduleToCloseTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_ScheduleToCloseTimeout != nil +} + +func (x *ActivityExecutionInfo) HasScheduleToStartTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_ScheduleToStartTimeout != nil +} + +func (x *ActivityExecutionInfo) HasStartToCloseTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_StartToCloseTimeout != nil +} + +func (x *ActivityExecutionInfo) HasHeartbeatTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_HeartbeatTimeout != nil +} + +func (x *ActivityExecutionInfo) HasRetryPolicy() bool { + if x == nil { + return false + } + return x.xxx_hidden_RetryPolicy != nil +} + +func (x *ActivityExecutionInfo) HasHeartbeatDetails() bool { + if x == nil { + return false + } + return x.xxx_hidden_HeartbeatDetails != nil +} + +func (x *ActivityExecutionInfo) HasLastHeartbeatTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_LastHeartbeatTime != nil +} + +func (x *ActivityExecutionInfo) HasLastStartedTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_LastStartedTime != nil +} + +func (x *ActivityExecutionInfo) HasExecutionDuration() bool { + if x == nil { + return false + } + return x.xxx_hidden_ExecutionDuration != nil +} + +func (x *ActivityExecutionInfo) HasScheduleTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_ScheduleTime != nil +} + +func (x *ActivityExecutionInfo) HasExpirationTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_ExpirationTime != nil +} + +func (x *ActivityExecutionInfo) HasCloseTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_CloseTime != nil +} + +func (x *ActivityExecutionInfo) HasLastFailure() bool { + if x == nil { + return false + } + return x.xxx_hidden_LastFailure != nil +} + +func (x *ActivityExecutionInfo) HasCurrentRetryInterval() bool { + if x == nil { + return false + } + return x.xxx_hidden_CurrentRetryInterval != nil +} + +func (x *ActivityExecutionInfo) HasLastAttemptCompleteTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_LastAttemptCompleteTime != nil +} + +func (x *ActivityExecutionInfo) HasNextAttemptScheduleTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_NextAttemptScheduleTime != nil +} + +func (x *ActivityExecutionInfo) HasLastDeploymentVersion() bool { + if x == nil { + return false + } + return x.xxx_hidden_LastDeploymentVersion != nil +} + +func (x *ActivityExecutionInfo) HasPriority() bool { + if x == nil { + return false + } + return x.xxx_hidden_Priority != nil +} + +func (x *ActivityExecutionInfo) HasSearchAttributes() bool { + if x == nil { + return false + } + return x.xxx_hidden_SearchAttributes != nil +} + +func (x *ActivityExecutionInfo) HasHeader() bool { + if x == nil { + return false + } + return x.xxx_hidden_Header != nil +} + +func (x *ActivityExecutionInfo) HasUserMetadata() bool { + if x == nil { + return false + } + return x.xxx_hidden_UserMetadata != nil +} + +func (x *ActivityExecutionInfo) ClearActivityType() { + x.xxx_hidden_ActivityType = nil +} + +func (x *ActivityExecutionInfo) ClearScheduleToCloseTimeout() { + x.xxx_hidden_ScheduleToCloseTimeout = nil +} + +func (x *ActivityExecutionInfo) ClearScheduleToStartTimeout() { + x.xxx_hidden_ScheduleToStartTimeout = nil +} + +func (x *ActivityExecutionInfo) ClearStartToCloseTimeout() { + x.xxx_hidden_StartToCloseTimeout = nil +} + +func (x *ActivityExecutionInfo) ClearHeartbeatTimeout() { + x.xxx_hidden_HeartbeatTimeout = nil +} + +func (x *ActivityExecutionInfo) ClearRetryPolicy() { + x.xxx_hidden_RetryPolicy = nil +} + +func (x *ActivityExecutionInfo) ClearHeartbeatDetails() { + x.xxx_hidden_HeartbeatDetails = nil +} + +func (x *ActivityExecutionInfo) ClearLastHeartbeatTime() { + x.xxx_hidden_LastHeartbeatTime = nil +} + +func (x *ActivityExecutionInfo) ClearLastStartedTime() { + x.xxx_hidden_LastStartedTime = nil +} + +func (x *ActivityExecutionInfo) ClearExecutionDuration() { + x.xxx_hidden_ExecutionDuration = nil +} + +func (x *ActivityExecutionInfo) ClearScheduleTime() { + x.xxx_hidden_ScheduleTime = nil +} + +func (x *ActivityExecutionInfo) ClearExpirationTime() { + x.xxx_hidden_ExpirationTime = nil +} + +func (x *ActivityExecutionInfo) ClearCloseTime() { + x.xxx_hidden_CloseTime = nil +} + +func (x *ActivityExecutionInfo) ClearLastFailure() { + x.xxx_hidden_LastFailure = nil +} + +func (x *ActivityExecutionInfo) ClearCurrentRetryInterval() { + x.xxx_hidden_CurrentRetryInterval = nil +} + +func (x *ActivityExecutionInfo) ClearLastAttemptCompleteTime() { + x.xxx_hidden_LastAttemptCompleteTime = nil +} + +func (x *ActivityExecutionInfo) ClearNextAttemptScheduleTime() { + x.xxx_hidden_NextAttemptScheduleTime = nil +} + +func (x *ActivityExecutionInfo) ClearLastDeploymentVersion() { + x.xxx_hidden_LastDeploymentVersion = nil +} + +func (x *ActivityExecutionInfo) ClearPriority() { + x.xxx_hidden_Priority = nil +} + +func (x *ActivityExecutionInfo) ClearSearchAttributes() { + x.xxx_hidden_SearchAttributes = nil +} + +func (x *ActivityExecutionInfo) ClearHeader() { + x.xxx_hidden_Header = nil +} + +func (x *ActivityExecutionInfo) ClearUserMetadata() { + x.xxx_hidden_UserMetadata = nil +} + +type ActivityExecutionInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Unique identifier of this activity within its namespace along with run ID (below). + ActivityId string + RunId string + // The type of the activity, a string that maps to a registered activity on a worker. + ActivityType *v1.ActivityType + // A general status for this activity, indicates whether it is currently running or in one of the terminal statuses. + Status v13.ActivityExecutionStatus + // More detailed breakdown of ACTIVITY_EXECUTION_STATUS_RUNNING. + RunState v13.PendingActivityState + TaskQueue string + // Indicates how long the caller is willing to wait for an activity completion. Limits how long + // retries will be attempted. + // + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + ScheduleToCloseTimeout *durationpb.Duration + // Limits time an activity task can stay in a task queue before a worker picks it up. This + // timeout is always non retryable, as all a retry would achieve is to put it back into the same + // queue. Defaults to `schedule_to_close_timeout`. + // + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + ScheduleToStartTimeout *durationpb.Duration + // Maximum time a single activity attempt is allowed to execute after being picked up by a worker. This + // timeout is always retryable. + // + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + StartToCloseTimeout *durationpb.Duration + // Maximum permitted time between successful worker heartbeats. + HeartbeatTimeout *durationpb.Duration + // The retry policy for the activity. Will never exceed `schedule_to_close_timeout`. + RetryPolicy *v1.RetryPolicy + // Details provided in the last recorded activity heartbeat. + HeartbeatDetails *v1.Payloads + // Time the last heartbeat was recorded. + LastHeartbeatTime *timestamppb.Timestamp + // Time the last attempt was started. + LastStartedTime *timestamppb.Timestamp + // The attempt this activity is currently on. Incremented each time a new attempt is scheduled. + Attempt int32 + // How long this activity has been running for, including all attempts and backoff between attempts. + ExecutionDuration *durationpb.Duration + // Time the activity was originally scheduled via a StartActivityExecution request. + ScheduleTime *timestamppb.Timestamp + // Scheduled time + schedule to close timeout. + ExpirationTime *timestamppb.Timestamp + // Time when the activity transitioned to a closed state. + CloseTime *timestamppb.Timestamp + // Failure details from the last failed attempt. + LastFailure *v11.Failure + LastWorkerIdentity string + // Time from the last attempt failure to the next activity retry. + // If the activity is currently running, this represents the next retry interval in case the attempt fails. + // If activity is currently backing off between attempt, this represents the current retry interval. + // If there is no next retry allowed, this field will be null. + // This interval is typically calculated from the specified retry policy, but may be modified if an activity fails + // with a retryable application failure specifying a retry delay. + CurrentRetryInterval *durationpb.Duration + // The time when the last activity attempt completed. If activity has not been completed yet, it will be null. + LastAttemptCompleteTime *timestamppb.Timestamp + // The time when the next activity attempt will be scheduled. + // If activity is currently scheduled or started, this field will be null. + NextAttemptScheduleTime *timestamppb.Timestamp + // The Worker Deployment Version this activity was dispatched to most recently. + // If nil, the activity has not yet been dispatched or was last dispatched to an unversioned worker. + LastDeploymentVersion *v14.WorkerDeploymentVersion + // Priority metadata. + Priority *v1.Priority + // Incremented each time the activity's state is mutated in persistence. + StateTransitionCount int64 + // Updated once on scheduled and once on terminal status. + StateSizeBytes int64 + SearchAttributes *v1.SearchAttributes + Header *v1.Header + // Metadata for use by user interfaces to display the fixed as-of-start summary and details of the activity. + UserMetadata *v15.UserMetadata + // Set if activity cancelation was requested. + CanceledReason string +} + +func (b0 ActivityExecutionInfo_builder) Build() *ActivityExecutionInfo { + m0 := &ActivityExecutionInfo{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ActivityId = b.ActivityId + x.xxx_hidden_RunId = b.RunId + x.xxx_hidden_ActivityType = b.ActivityType + x.xxx_hidden_Status = b.Status + x.xxx_hidden_RunState = b.RunState + x.xxx_hidden_TaskQueue = b.TaskQueue + x.xxx_hidden_ScheduleToCloseTimeout = b.ScheduleToCloseTimeout + x.xxx_hidden_ScheduleToStartTimeout = b.ScheduleToStartTimeout + x.xxx_hidden_StartToCloseTimeout = b.StartToCloseTimeout + x.xxx_hidden_HeartbeatTimeout = b.HeartbeatTimeout + x.xxx_hidden_RetryPolicy = b.RetryPolicy + x.xxx_hidden_HeartbeatDetails = b.HeartbeatDetails + x.xxx_hidden_LastHeartbeatTime = b.LastHeartbeatTime + x.xxx_hidden_LastStartedTime = b.LastStartedTime + x.xxx_hidden_Attempt = b.Attempt + x.xxx_hidden_ExecutionDuration = b.ExecutionDuration + x.xxx_hidden_ScheduleTime = b.ScheduleTime + x.xxx_hidden_ExpirationTime = b.ExpirationTime + x.xxx_hidden_CloseTime = b.CloseTime + x.xxx_hidden_LastFailure = b.LastFailure + x.xxx_hidden_LastWorkerIdentity = b.LastWorkerIdentity + x.xxx_hidden_CurrentRetryInterval = b.CurrentRetryInterval + x.xxx_hidden_LastAttemptCompleteTime = b.LastAttemptCompleteTime + x.xxx_hidden_NextAttemptScheduleTime = b.NextAttemptScheduleTime + x.xxx_hidden_LastDeploymentVersion = b.LastDeploymentVersion + x.xxx_hidden_Priority = b.Priority + x.xxx_hidden_StateTransitionCount = b.StateTransitionCount + x.xxx_hidden_StateSizeBytes = b.StateSizeBytes + x.xxx_hidden_SearchAttributes = b.SearchAttributes + x.xxx_hidden_Header = b.Header + x.xxx_hidden_UserMetadata = b.UserMetadata + x.xxx_hidden_CanceledReason = b.CanceledReason + return m0 +} + +// Limited activity information returned in the list response. +// When adding fields here, ensure that it is also present in ActivityExecutionInfo (note that it +// may already be present in ActivityExecutionInfo but not at the top-level). +type ActivityExecutionListInfo struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ActivityId string `protobuf:"bytes,1,opt,name=activity_id,json=activityId,proto3"` + xxx_hidden_RunId string `protobuf:"bytes,2,opt,name=run_id,json=runId,proto3"` + xxx_hidden_ActivityType *v1.ActivityType `protobuf:"bytes,3,opt,name=activity_type,json=activityType,proto3"` + xxx_hidden_ScheduleTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=schedule_time,json=scheduleTime,proto3"` + xxx_hidden_CloseTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=close_time,json=closeTime,proto3"` + xxx_hidden_Status v13.ActivityExecutionStatus `protobuf:"varint,6,opt,name=status,proto3,enum=temporal.api.enums.v1.ActivityExecutionStatus"` + xxx_hidden_SearchAttributes *v1.SearchAttributes `protobuf:"bytes,7,opt,name=search_attributes,json=searchAttributes,proto3"` + xxx_hidden_TaskQueue string `protobuf:"bytes,8,opt,name=task_queue,json=taskQueue,proto3"` + xxx_hidden_StateTransitionCount int64 `protobuf:"varint,9,opt,name=state_transition_count,json=stateTransitionCount,proto3"` + xxx_hidden_StateSizeBytes int64 `protobuf:"varint,10,opt,name=state_size_bytes,json=stateSizeBytes,proto3"` + xxx_hidden_ExecutionDuration *durationpb.Duration `protobuf:"bytes,11,opt,name=execution_duration,json=executionDuration,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ActivityExecutionListInfo) Reset() { + *x = ActivityExecutionListInfo{} + mi := &file_temporal_api_activity_v1_message_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ActivityExecutionListInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ActivityExecutionListInfo) ProtoMessage() {} + +func (x *ActivityExecutionListInfo) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_activity_v1_message_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ActivityExecutionListInfo) GetActivityId() string { + if x != nil { + return x.xxx_hidden_ActivityId + } + return "" +} + +func (x *ActivityExecutionListInfo) GetRunId() string { + if x != nil { + return x.xxx_hidden_RunId + } + return "" +} + +func (x *ActivityExecutionListInfo) GetActivityType() *v1.ActivityType { + if x != nil { + return x.xxx_hidden_ActivityType + } + return nil +} + +func (x *ActivityExecutionListInfo) GetScheduleTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_ScheduleTime + } + return nil +} + +func (x *ActivityExecutionListInfo) GetCloseTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_CloseTime + } + return nil +} + +func (x *ActivityExecutionListInfo) GetStatus() v13.ActivityExecutionStatus { + if x != nil { + return x.xxx_hidden_Status + } + return v13.ActivityExecutionStatus(0) +} + +func (x *ActivityExecutionListInfo) GetSearchAttributes() *v1.SearchAttributes { + if x != nil { + return x.xxx_hidden_SearchAttributes + } + return nil +} + +func (x *ActivityExecutionListInfo) GetTaskQueue() string { + if x != nil { + return x.xxx_hidden_TaskQueue + } + return "" +} + +func (x *ActivityExecutionListInfo) GetStateTransitionCount() int64 { + if x != nil { + return x.xxx_hidden_StateTransitionCount + } + return 0 +} + +func (x *ActivityExecutionListInfo) GetStateSizeBytes() int64 { + if x != nil { + return x.xxx_hidden_StateSizeBytes + } + return 0 +} + +func (x *ActivityExecutionListInfo) GetExecutionDuration() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_ExecutionDuration + } + return nil +} + +func (x *ActivityExecutionListInfo) SetActivityId(v string) { + x.xxx_hidden_ActivityId = v +} + +func (x *ActivityExecutionListInfo) SetRunId(v string) { + x.xxx_hidden_RunId = v +} + +func (x *ActivityExecutionListInfo) SetActivityType(v *v1.ActivityType) { + x.xxx_hidden_ActivityType = v +} + +func (x *ActivityExecutionListInfo) SetScheduleTime(v *timestamppb.Timestamp) { + x.xxx_hidden_ScheduleTime = v +} + +func (x *ActivityExecutionListInfo) SetCloseTime(v *timestamppb.Timestamp) { + x.xxx_hidden_CloseTime = v +} + +func (x *ActivityExecutionListInfo) SetStatus(v v13.ActivityExecutionStatus) { + x.xxx_hidden_Status = v +} + +func (x *ActivityExecutionListInfo) SetSearchAttributes(v *v1.SearchAttributes) { + x.xxx_hidden_SearchAttributes = v +} + +func (x *ActivityExecutionListInfo) SetTaskQueue(v string) { + x.xxx_hidden_TaskQueue = v +} + +func (x *ActivityExecutionListInfo) SetStateTransitionCount(v int64) { + x.xxx_hidden_StateTransitionCount = v +} + +func (x *ActivityExecutionListInfo) SetStateSizeBytes(v int64) { + x.xxx_hidden_StateSizeBytes = v +} + +func (x *ActivityExecutionListInfo) SetExecutionDuration(v *durationpb.Duration) { + x.xxx_hidden_ExecutionDuration = v +} + +func (x *ActivityExecutionListInfo) HasActivityType() bool { + if x == nil { + return false + } + return x.xxx_hidden_ActivityType != nil +} + +func (x *ActivityExecutionListInfo) HasScheduleTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_ScheduleTime != nil +} + +func (x *ActivityExecutionListInfo) HasCloseTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_CloseTime != nil +} + +func (x *ActivityExecutionListInfo) HasSearchAttributes() bool { + if x == nil { + return false + } + return x.xxx_hidden_SearchAttributes != nil +} + +func (x *ActivityExecutionListInfo) HasExecutionDuration() bool { + if x == nil { + return false + } + return x.xxx_hidden_ExecutionDuration != nil +} + +func (x *ActivityExecutionListInfo) ClearActivityType() { + x.xxx_hidden_ActivityType = nil +} + +func (x *ActivityExecutionListInfo) ClearScheduleTime() { + x.xxx_hidden_ScheduleTime = nil +} + +func (x *ActivityExecutionListInfo) ClearCloseTime() { + x.xxx_hidden_CloseTime = nil +} + +func (x *ActivityExecutionListInfo) ClearSearchAttributes() { + x.xxx_hidden_SearchAttributes = nil +} + +func (x *ActivityExecutionListInfo) ClearExecutionDuration() { + x.xxx_hidden_ExecutionDuration = nil +} + +type ActivityExecutionListInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // A unique identifier of this activity within its namespace along with run ID (below). + ActivityId string + // The run ID of the standalone activity. + RunId string + // The type of the activity, a string that maps to a registered activity on a worker. + ActivityType *v1.ActivityType + // Time the activity was originally scheduled via a StartActivityExecution request. + ScheduleTime *timestamppb.Timestamp + // If the activity is in a terminal status, this field represents the time the activity transitioned to that status. + CloseTime *timestamppb.Timestamp + // Only scheduled and terminal statuses appear here. More detailed information in PendingActivityInfo but not + // available in the list response. + Status v13.ActivityExecutionStatus + // Search attributes from the start request. + SearchAttributes *v1.SearchAttributes + // The task queue this activity was scheduled on when it was originally started, updated on activity options update. + TaskQueue string + // Updated on terminal status. + StateTransitionCount int64 + // Updated once on scheduled and once on terminal status. + StateSizeBytes int64 + // The difference between close time and scheduled time. + // This field is only populated if the activity is closed. + ExecutionDuration *durationpb.Duration +} + +func (b0 ActivityExecutionListInfo_builder) Build() *ActivityExecutionListInfo { + m0 := &ActivityExecutionListInfo{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ActivityId = b.ActivityId + x.xxx_hidden_RunId = b.RunId + x.xxx_hidden_ActivityType = b.ActivityType + x.xxx_hidden_ScheduleTime = b.ScheduleTime + x.xxx_hidden_CloseTime = b.CloseTime + x.xxx_hidden_Status = b.Status + x.xxx_hidden_SearchAttributes = b.SearchAttributes + x.xxx_hidden_TaskQueue = b.TaskQueue + x.xxx_hidden_StateTransitionCount = b.StateTransitionCount + x.xxx_hidden_StateSizeBytes = b.StateSizeBytes + x.xxx_hidden_ExecutionDuration = b.ExecutionDuration + return m0 +} + +var File_temporal_api_activity_v1_message_proto protoreflect.FileDescriptor + +const file_temporal_api_activity_v1_message_proto_rawDesc = "" + + "\n" + + "&temporal/api/activity/v1/message.proto\x12\x18temporal.api.activity.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a$temporal/api/common/v1/message.proto\x1a(temporal/api/deployment/v1/message.proto\x1a$temporal/api/enums/v1/activity.proto\x1a$temporal/api/enums/v1/workflow.proto\x1a%temporal/api/failure/v1/message.proto\x1a'temporal/api/taskqueue/v1/message.proto\x1a'temporal/api/sdk/v1/user_metadata.proto\"\x9d\x01\n" + + "\x18ActivityExecutionOutcome\x12:\n" + + "\x06result\x18\x01 \x01(\v2 .temporal.api.common.v1.PayloadsH\x00R\x06result\x12<\n" + + "\afailure\x18\x02 \x01(\v2 .temporal.api.failure.v1.FailureH\x00R\afailureB\a\n" + + "\x05value\"\xa0\x04\n" + + "\x0fActivityOptions\x12C\n" + + "\n" + + "task_queue\x18\x01 \x01(\v2$.temporal.api.taskqueue.v1.TaskQueueR\ttaskQueue\x12T\n" + + "\x19schedule_to_close_timeout\x18\x02 \x01(\v2\x19.google.protobuf.DurationR\x16scheduleToCloseTimeout\x12T\n" + + "\x19schedule_to_start_timeout\x18\x03 \x01(\v2\x19.google.protobuf.DurationR\x16scheduleToStartTimeout\x12N\n" + + "\x16start_to_close_timeout\x18\x04 \x01(\v2\x19.google.protobuf.DurationR\x13startToCloseTimeout\x12F\n" + + "\x11heartbeat_timeout\x18\x05 \x01(\v2\x19.google.protobuf.DurationR\x10heartbeatTimeout\x12F\n" + + "\fretry_policy\x18\x06 \x01(\v2#.temporal.api.common.v1.RetryPolicyR\vretryPolicy\x12<\n" + + "\bpriority\x18\a \x01(\v2 .temporal.api.common.v1.PriorityR\bpriority\"\xe4\x10\n" + + "\x15ActivityExecutionInfo\x12\x1f\n" + + "\vactivity_id\x18\x01 \x01(\tR\n" + + "activityId\x12\x15\n" + + "\x06run_id\x18\x02 \x01(\tR\x05runId\x12I\n" + + "\ractivity_type\x18\x03 \x01(\v2$.temporal.api.common.v1.ActivityTypeR\factivityType\x12F\n" + + "\x06status\x18\x04 \x01(\x0e2..temporal.api.enums.v1.ActivityExecutionStatusR\x06status\x12H\n" + + "\trun_state\x18\x05 \x01(\x0e2+.temporal.api.enums.v1.PendingActivityStateR\brunState\x12\x1d\n" + + "\n" + + "task_queue\x18\x06 \x01(\tR\ttaskQueue\x12T\n" + + "\x19schedule_to_close_timeout\x18\a \x01(\v2\x19.google.protobuf.DurationR\x16scheduleToCloseTimeout\x12T\n" + + "\x19schedule_to_start_timeout\x18\b \x01(\v2\x19.google.protobuf.DurationR\x16scheduleToStartTimeout\x12N\n" + + "\x16start_to_close_timeout\x18\t \x01(\v2\x19.google.protobuf.DurationR\x13startToCloseTimeout\x12F\n" + + "\x11heartbeat_timeout\x18\n" + + " \x01(\v2\x19.google.protobuf.DurationR\x10heartbeatTimeout\x12F\n" + + "\fretry_policy\x18\v \x01(\v2#.temporal.api.common.v1.RetryPolicyR\vretryPolicy\x12M\n" + + "\x11heartbeat_details\x18\f \x01(\v2 .temporal.api.common.v1.PayloadsR\x10heartbeatDetails\x12J\n" + + "\x13last_heartbeat_time\x18\r \x01(\v2\x1a.google.protobuf.TimestampR\x11lastHeartbeatTime\x12F\n" + + "\x11last_started_time\x18\x0e \x01(\v2\x1a.google.protobuf.TimestampR\x0flastStartedTime\x12\x18\n" + + "\aattempt\x18\x0f \x01(\x05R\aattempt\x12H\n" + + "\x12execution_duration\x18\x10 \x01(\v2\x19.google.protobuf.DurationR\x11executionDuration\x12?\n" + + "\rschedule_time\x18\x11 \x01(\v2\x1a.google.protobuf.TimestampR\fscheduleTime\x12C\n" + + "\x0fexpiration_time\x18\x12 \x01(\v2\x1a.google.protobuf.TimestampR\x0eexpirationTime\x129\n" + + "\n" + + "close_time\x18\x13 \x01(\v2\x1a.google.protobuf.TimestampR\tcloseTime\x12C\n" + + "\flast_failure\x18\x14 \x01(\v2 .temporal.api.failure.v1.FailureR\vlastFailure\x120\n" + + "\x14last_worker_identity\x18\x15 \x01(\tR\x12lastWorkerIdentity\x12O\n" + + "\x16current_retry_interval\x18\x16 \x01(\v2\x19.google.protobuf.DurationR\x14currentRetryInterval\x12W\n" + + "\x1alast_attempt_complete_time\x18\x17 \x01(\v2\x1a.google.protobuf.TimestampR\x17lastAttemptCompleteTime\x12W\n" + + "\x1anext_attempt_schedule_time\x18\x18 \x01(\v2\x1a.google.protobuf.TimestampR\x17nextAttemptScheduleTime\x12k\n" + + "\x17last_deployment_version\x18\x19 \x01(\v23.temporal.api.deployment.v1.WorkerDeploymentVersionR\x15lastDeploymentVersion\x12<\n" + + "\bpriority\x18\x1a \x01(\v2 .temporal.api.common.v1.PriorityR\bpriority\x124\n" + + "\x16state_transition_count\x18\x1b \x01(\x03R\x14stateTransitionCount\x12(\n" + + "\x10state_size_bytes\x18\x1c \x01(\x03R\x0estateSizeBytes\x12U\n" + + "\x11search_attributes\x18\x1d \x01(\v2(.temporal.api.common.v1.SearchAttributesR\x10searchAttributes\x126\n" + + "\x06header\x18\x1e \x01(\v2\x1e.temporal.api.common.v1.HeaderR\x06header\x12F\n" + + "\ruser_metadata\x18\x1f \x01(\v2!.temporal.api.sdk.v1.UserMetadataR\fuserMetadata\x12'\n" + + "\x0fcanceled_reason\x18 \x01(\tR\x0ecanceledReason\"\x82\x05\n" + + "\x19ActivityExecutionListInfo\x12\x1f\n" + + "\vactivity_id\x18\x01 \x01(\tR\n" + + "activityId\x12\x15\n" + + "\x06run_id\x18\x02 \x01(\tR\x05runId\x12I\n" + + "\ractivity_type\x18\x03 \x01(\v2$.temporal.api.common.v1.ActivityTypeR\factivityType\x12?\n" + + "\rschedule_time\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\fscheduleTime\x129\n" + + "\n" + + "close_time\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\tcloseTime\x12F\n" + + "\x06status\x18\x06 \x01(\x0e2..temporal.api.enums.v1.ActivityExecutionStatusR\x06status\x12U\n" + + "\x11search_attributes\x18\a \x01(\v2(.temporal.api.common.v1.SearchAttributesR\x10searchAttributes\x12\x1d\n" + + "\n" + + "task_queue\x18\b \x01(\tR\ttaskQueue\x124\n" + + "\x16state_transition_count\x18\t \x01(\x03R\x14stateTransitionCount\x12(\n" + + "\x10state_size_bytes\x18\n" + + " \x01(\x03R\x0estateSizeBytes\x12H\n" + + "\x12execution_duration\x18\v \x01(\v2\x19.google.protobuf.DurationR\x11executionDurationB\x93\x01\n" + + "\x1bio.temporal.api.activity.v1B\fMessageProtoP\x01Z'go.temporal.io/api/activity/v1;activity\xaa\x02\x1aTemporalio.Api.Activity.V1\xea\x02\x1dTemporalio::Api::Activity::V1b\x06proto3" + +var file_temporal_api_activity_v1_message_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_temporal_api_activity_v1_message_proto_goTypes = []any{ + (*ActivityExecutionOutcome)(nil), // 0: temporal.api.activity.v1.ActivityExecutionOutcome + (*ActivityOptions)(nil), // 1: temporal.api.activity.v1.ActivityOptions + (*ActivityExecutionInfo)(nil), // 2: temporal.api.activity.v1.ActivityExecutionInfo + (*ActivityExecutionListInfo)(nil), // 3: temporal.api.activity.v1.ActivityExecutionListInfo + (*v1.Payloads)(nil), // 4: temporal.api.common.v1.Payloads + (*v11.Failure)(nil), // 5: temporal.api.failure.v1.Failure + (*v12.TaskQueue)(nil), // 6: temporal.api.taskqueue.v1.TaskQueue + (*durationpb.Duration)(nil), // 7: google.protobuf.Duration + (*v1.RetryPolicy)(nil), // 8: temporal.api.common.v1.RetryPolicy + (*v1.Priority)(nil), // 9: temporal.api.common.v1.Priority + (*v1.ActivityType)(nil), // 10: temporal.api.common.v1.ActivityType + (v13.ActivityExecutionStatus)(0), // 11: temporal.api.enums.v1.ActivityExecutionStatus + (v13.PendingActivityState)(0), // 12: temporal.api.enums.v1.PendingActivityState + (*timestamppb.Timestamp)(nil), // 13: google.protobuf.Timestamp + (*v14.WorkerDeploymentVersion)(nil), // 14: temporal.api.deployment.v1.WorkerDeploymentVersion + (*v1.SearchAttributes)(nil), // 15: temporal.api.common.v1.SearchAttributes + (*v1.Header)(nil), // 16: temporal.api.common.v1.Header + (*v15.UserMetadata)(nil), // 17: temporal.api.sdk.v1.UserMetadata +} +var file_temporal_api_activity_v1_message_proto_depIdxs = []int32{ + 4, // 0: temporal.api.activity.v1.ActivityExecutionOutcome.result:type_name -> temporal.api.common.v1.Payloads + 5, // 1: temporal.api.activity.v1.ActivityExecutionOutcome.failure:type_name -> temporal.api.failure.v1.Failure + 6, // 2: temporal.api.activity.v1.ActivityOptions.task_queue:type_name -> temporal.api.taskqueue.v1.TaskQueue + 7, // 3: temporal.api.activity.v1.ActivityOptions.schedule_to_close_timeout:type_name -> google.protobuf.Duration + 7, // 4: temporal.api.activity.v1.ActivityOptions.schedule_to_start_timeout:type_name -> google.protobuf.Duration + 7, // 5: temporal.api.activity.v1.ActivityOptions.start_to_close_timeout:type_name -> google.protobuf.Duration + 7, // 6: temporal.api.activity.v1.ActivityOptions.heartbeat_timeout:type_name -> google.protobuf.Duration + 8, // 7: temporal.api.activity.v1.ActivityOptions.retry_policy:type_name -> temporal.api.common.v1.RetryPolicy + 9, // 8: temporal.api.activity.v1.ActivityOptions.priority:type_name -> temporal.api.common.v1.Priority + 10, // 9: temporal.api.activity.v1.ActivityExecutionInfo.activity_type:type_name -> temporal.api.common.v1.ActivityType + 11, // 10: temporal.api.activity.v1.ActivityExecutionInfo.status:type_name -> temporal.api.enums.v1.ActivityExecutionStatus + 12, // 11: temporal.api.activity.v1.ActivityExecutionInfo.run_state:type_name -> temporal.api.enums.v1.PendingActivityState + 7, // 12: temporal.api.activity.v1.ActivityExecutionInfo.schedule_to_close_timeout:type_name -> google.protobuf.Duration + 7, // 13: temporal.api.activity.v1.ActivityExecutionInfo.schedule_to_start_timeout:type_name -> google.protobuf.Duration + 7, // 14: temporal.api.activity.v1.ActivityExecutionInfo.start_to_close_timeout:type_name -> google.protobuf.Duration + 7, // 15: temporal.api.activity.v1.ActivityExecutionInfo.heartbeat_timeout:type_name -> google.protobuf.Duration + 8, // 16: temporal.api.activity.v1.ActivityExecutionInfo.retry_policy:type_name -> temporal.api.common.v1.RetryPolicy + 4, // 17: temporal.api.activity.v1.ActivityExecutionInfo.heartbeat_details:type_name -> temporal.api.common.v1.Payloads + 13, // 18: temporal.api.activity.v1.ActivityExecutionInfo.last_heartbeat_time:type_name -> google.protobuf.Timestamp + 13, // 19: temporal.api.activity.v1.ActivityExecutionInfo.last_started_time:type_name -> google.protobuf.Timestamp + 7, // 20: temporal.api.activity.v1.ActivityExecutionInfo.execution_duration:type_name -> google.protobuf.Duration + 13, // 21: temporal.api.activity.v1.ActivityExecutionInfo.schedule_time:type_name -> google.protobuf.Timestamp + 13, // 22: temporal.api.activity.v1.ActivityExecutionInfo.expiration_time:type_name -> google.protobuf.Timestamp + 13, // 23: temporal.api.activity.v1.ActivityExecutionInfo.close_time:type_name -> google.protobuf.Timestamp + 5, // 24: temporal.api.activity.v1.ActivityExecutionInfo.last_failure:type_name -> temporal.api.failure.v1.Failure + 7, // 25: temporal.api.activity.v1.ActivityExecutionInfo.current_retry_interval:type_name -> google.protobuf.Duration + 13, // 26: temporal.api.activity.v1.ActivityExecutionInfo.last_attempt_complete_time:type_name -> google.protobuf.Timestamp + 13, // 27: temporal.api.activity.v1.ActivityExecutionInfo.next_attempt_schedule_time:type_name -> google.protobuf.Timestamp + 14, // 28: temporal.api.activity.v1.ActivityExecutionInfo.last_deployment_version:type_name -> temporal.api.deployment.v1.WorkerDeploymentVersion + 9, // 29: temporal.api.activity.v1.ActivityExecutionInfo.priority:type_name -> temporal.api.common.v1.Priority + 15, // 30: temporal.api.activity.v1.ActivityExecutionInfo.search_attributes:type_name -> temporal.api.common.v1.SearchAttributes + 16, // 31: temporal.api.activity.v1.ActivityExecutionInfo.header:type_name -> temporal.api.common.v1.Header + 17, // 32: temporal.api.activity.v1.ActivityExecutionInfo.user_metadata:type_name -> temporal.api.sdk.v1.UserMetadata + 10, // 33: temporal.api.activity.v1.ActivityExecutionListInfo.activity_type:type_name -> temporal.api.common.v1.ActivityType + 13, // 34: temporal.api.activity.v1.ActivityExecutionListInfo.schedule_time:type_name -> google.protobuf.Timestamp + 13, // 35: temporal.api.activity.v1.ActivityExecutionListInfo.close_time:type_name -> google.protobuf.Timestamp + 11, // 36: temporal.api.activity.v1.ActivityExecutionListInfo.status:type_name -> temporal.api.enums.v1.ActivityExecutionStatus + 15, // 37: temporal.api.activity.v1.ActivityExecutionListInfo.search_attributes:type_name -> temporal.api.common.v1.SearchAttributes + 7, // 38: temporal.api.activity.v1.ActivityExecutionListInfo.execution_duration:type_name -> google.protobuf.Duration + 39, // [39:39] is the sub-list for method output_type + 39, // [39:39] is the sub-list for method input_type + 39, // [39:39] is the sub-list for extension type_name + 39, // [39:39] is the sub-list for extension extendee + 0, // [0:39] is the sub-list for field type_name +} + +func init() { file_temporal_api_activity_v1_message_proto_init() } +func file_temporal_api_activity_v1_message_proto_init() { + if File_temporal_api_activity_v1_message_proto != nil { + return + } + file_temporal_api_activity_v1_message_proto_msgTypes[0].OneofWrappers = []any{ + (*activityExecutionOutcome_Result)(nil), + (*activityExecutionOutcome_Failure)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_api_activity_v1_message_proto_rawDesc), len(file_temporal_api_activity_v1_message_proto_rawDesc)), + NumEnums: 0, + NumMessages: 4, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_temporal_api_activity_v1_message_proto_goTypes, + DependencyIndexes: file_temporal_api_activity_v1_message_proto_depIdxs, + MessageInfos: file_temporal_api_activity_v1_message_proto_msgTypes, + }.Build() + File_temporal_api_activity_v1_message_proto = out.File + file_temporal_api_activity_v1_message_proto_goTypes = nil + file_temporal_api_activity_v1_message_proto_depIdxs = nil +} diff --git a/batch/v1/message.pb.go b/batch/v1/message.pb.go index 56558b04..e69fd76a 100644 --- a/batch/v1/message.pb.go +++ b/batch/v1/message.pb.go @@ -4,11 +4,13 @@ // protoc // source: temporal/api/batch/v1/message.proto +//go:build !protoopaque + package batch import ( reflect "reflect" - sync "sync" + "strconv" unsafe "unsafe" v14 "go.temporal.io/api/activity/v1" @@ -31,7 +33,7 @@ const ( ) type BatchOperationInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Batch job ID JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` // Batch operation state @@ -69,11 +71,6 @@ func (x *BatchOperationInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use BatchOperationInfo.ProtoReflect.Descriptor instead. -func (*BatchOperationInfo) Descriptor() ([]byte, []int) { - return file_temporal_api_batch_v1_message_proto_rawDescGZIP(), []int{0} -} - func (x *BatchOperationInfo) GetJobId() string { if x != nil { return x.JobId @@ -102,11 +99,73 @@ func (x *BatchOperationInfo) GetCloseTime() *timestamppb.Timestamp { return nil } +func (x *BatchOperationInfo) SetJobId(v string) { + x.JobId = v +} + +func (x *BatchOperationInfo) SetState(v v1.BatchOperationState) { + x.State = v +} + +func (x *BatchOperationInfo) SetStartTime(v *timestamppb.Timestamp) { + x.StartTime = v +} + +func (x *BatchOperationInfo) SetCloseTime(v *timestamppb.Timestamp) { + x.CloseTime = v +} + +func (x *BatchOperationInfo) HasStartTime() bool { + if x == nil { + return false + } + return x.StartTime != nil +} + +func (x *BatchOperationInfo) HasCloseTime() bool { + if x == nil { + return false + } + return x.CloseTime != nil +} + +func (x *BatchOperationInfo) ClearStartTime() { + x.StartTime = nil +} + +func (x *BatchOperationInfo) ClearCloseTime() { + x.CloseTime = nil +} + +type BatchOperationInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Batch job ID + JobId string + // Batch operation state + State v1.BatchOperationState + // Batch operation start time + StartTime *timestamppb.Timestamp + // Batch operation close time + CloseTime *timestamppb.Timestamp +} + +func (b0 BatchOperationInfo_builder) Build() *BatchOperationInfo { + m0 := &BatchOperationInfo{} + b, x := &b0, m0 + _, _ = b, x + x.JobId = b.JobId + x.State = b.State + x.StartTime = b.StartTime + x.CloseTime = b.CloseTime + return m0 +} + // BatchOperationTermination sends terminate requests to batch workflows. // Keep the parameter in sync with temporal.api.workflowservice.v1.TerminateWorkflowExecutionRequest. // Ignore first_execution_run_id because this is used for single workflow operation. type BatchOperationTermination struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Serialized value(s) to provide to the termination event Details *v11.Payloads `protobuf:"bytes,1,opt,name=details,proto3" json:"details,omitempty"` // The identity of the worker/client @@ -140,11 +199,6 @@ func (x *BatchOperationTermination) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use BatchOperationTermination.ProtoReflect.Descriptor instead. -func (*BatchOperationTermination) Descriptor() ([]byte, []int) { - return file_temporal_api_batch_v1_message_proto_rawDescGZIP(), []int{1} -} - func (x *BatchOperationTermination) GetDetails() *v11.Payloads { if x != nil { return x.Details @@ -159,10 +213,47 @@ func (x *BatchOperationTermination) GetIdentity() string { return "" } +func (x *BatchOperationTermination) SetDetails(v *v11.Payloads) { + x.Details = v +} + +func (x *BatchOperationTermination) SetIdentity(v string) { + x.Identity = v +} + +func (x *BatchOperationTermination) HasDetails() bool { + if x == nil { + return false + } + return x.Details != nil +} + +func (x *BatchOperationTermination) ClearDetails() { + x.Details = nil +} + +type BatchOperationTermination_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Serialized value(s) to provide to the termination event + Details *v11.Payloads + // The identity of the worker/client + Identity string +} + +func (b0 BatchOperationTermination_builder) Build() *BatchOperationTermination { + m0 := &BatchOperationTermination{} + b, x := &b0, m0 + _, _ = b, x + x.Details = b.Details + x.Identity = b.Identity + return m0 +} + // BatchOperationSignal sends signals to batch workflows. // Keep the parameter in sync with temporal.api.workflowservice.v1.SignalWorkflowExecutionRequest. type BatchOperationSignal struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The workflow author-defined name of the signal to send to the workflow Signal string `protobuf:"bytes,1,opt,name=signal,proto3" json:"signal,omitempty"` // Serialized value(s) to provide with the signal @@ -201,11 +292,6 @@ func (x *BatchOperationSignal) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use BatchOperationSignal.ProtoReflect.Descriptor instead. -func (*BatchOperationSignal) Descriptor() ([]byte, []int) { - return file_temporal_api_batch_v1_message_proto_rawDescGZIP(), []int{2} -} - func (x *BatchOperationSignal) GetSignal() string { if x != nil { return x.Signal @@ -234,11 +320,74 @@ func (x *BatchOperationSignal) GetIdentity() string { return "" } +func (x *BatchOperationSignal) SetSignal(v string) { + x.Signal = v +} + +func (x *BatchOperationSignal) SetInput(v *v11.Payloads) { + x.Input = v +} + +func (x *BatchOperationSignal) SetHeader(v *v11.Header) { + x.Header = v +} + +func (x *BatchOperationSignal) SetIdentity(v string) { + x.Identity = v +} + +func (x *BatchOperationSignal) HasInput() bool { + if x == nil { + return false + } + return x.Input != nil +} + +func (x *BatchOperationSignal) HasHeader() bool { + if x == nil { + return false + } + return x.Header != nil +} + +func (x *BatchOperationSignal) ClearInput() { + x.Input = nil +} + +func (x *BatchOperationSignal) ClearHeader() { + x.Header = nil +} + +type BatchOperationSignal_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The workflow author-defined name of the signal to send to the workflow + Signal string + // Serialized value(s) to provide with the signal + Input *v11.Payloads + // Headers that are passed with the signal to the processing workflow. + // These can include things like auth or tracing tokens. + Header *v11.Header + // The identity of the worker/client + Identity string +} + +func (b0 BatchOperationSignal_builder) Build() *BatchOperationSignal { + m0 := &BatchOperationSignal{} + b, x := &b0, m0 + _, _ = b, x + x.Signal = b.Signal + x.Input = b.Input + x.Header = b.Header + x.Identity = b.Identity + return m0 +} + // BatchOperationCancellation sends cancel requests to batch workflows. // Keep the parameter in sync with temporal.api.workflowservice.v1.RequestCancelWorkflowExecutionRequest. // Ignore first_execution_run_id because this is used for single workflow operation. type BatchOperationCancellation struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The identity of the worker/client Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` unknownFields protoimpl.UnknownFields @@ -270,11 +419,6 @@ func (x *BatchOperationCancellation) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use BatchOperationCancellation.ProtoReflect.Descriptor instead. -func (*BatchOperationCancellation) Descriptor() ([]byte, []int) { - return file_temporal_api_batch_v1_message_proto_rawDescGZIP(), []int{3} -} - func (x *BatchOperationCancellation) GetIdentity() string { if x != nil { return x.Identity @@ -282,10 +426,29 @@ func (x *BatchOperationCancellation) GetIdentity() string { return "" } +func (x *BatchOperationCancellation) SetIdentity(v string) { + x.Identity = v +} + +type BatchOperationCancellation_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The identity of the worker/client + Identity string +} + +func (b0 BatchOperationCancellation_builder) Build() *BatchOperationCancellation { + m0 := &BatchOperationCancellation{} + b, x := &b0, m0 + _, _ = b, x + x.Identity = b.Identity + return m0 +} + // BatchOperationDeletion sends deletion requests to batch workflows. // Keep the parameter in sync with temporal.api.workflowservice.v1.DeleteWorkflowExecutionRequest. type BatchOperationDeletion struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The identity of the worker/client Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` unknownFields protoimpl.UnknownFields @@ -317,11 +480,6 @@ func (x *BatchOperationDeletion) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use BatchOperationDeletion.ProtoReflect.Descriptor instead. -func (*BatchOperationDeletion) Descriptor() ([]byte, []int) { - return file_temporal_api_batch_v1_message_proto_rawDescGZIP(), []int{4} -} - func (x *BatchOperationDeletion) GetIdentity() string { if x != nil { return x.Identity @@ -329,10 +487,29 @@ func (x *BatchOperationDeletion) GetIdentity() string { return "" } +func (x *BatchOperationDeletion) SetIdentity(v string) { + x.Identity = v +} + +type BatchOperationDeletion_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The identity of the worker/client + Identity string +} + +func (b0 BatchOperationDeletion_builder) Build() *BatchOperationDeletion { + m0 := &BatchOperationDeletion{} + b, x := &b0, m0 + _, _ = b, x + x.Identity = b.Identity + return m0 +} + // BatchOperationReset sends reset requests to batch workflows. // Keep the parameter in sync with temporal.api.workflowservice.v1.ResetWorkflowExecutionRequest. type BatchOperationReset struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The identity of the worker/client. Identity string `protobuf:"bytes,3,opt,name=identity,proto3" json:"identity,omitempty"` // Describes what to reset to and how. If set, `reset_type` and `reset_reapply_type` are ignored. @@ -378,11 +555,6 @@ func (x *BatchOperationReset) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use BatchOperationReset.ProtoReflect.Descriptor instead. -func (*BatchOperationReset) Descriptor() ([]byte, []int) { - return file_temporal_api_batch_v1_message_proto_rawDescGZIP(), []int{5} -} - func (x *BatchOperationReset) GetIdentity() string { if x != nil { return x.Identity @@ -420,10 +592,76 @@ func (x *BatchOperationReset) GetPostResetOperations() []*v12.PostResetOperation return nil } +func (x *BatchOperationReset) SetIdentity(v string) { + x.Identity = v +} + +func (x *BatchOperationReset) SetOptions(v *v11.ResetOptions) { + x.Options = v +} + +// Deprecated: Marked as deprecated in temporal/api/batch/v1/message.proto. +func (x *BatchOperationReset) SetResetType(v v1.ResetType) { + x.ResetType = v +} + +// Deprecated: Marked as deprecated in temporal/api/batch/v1/message.proto. +func (x *BatchOperationReset) SetResetReapplyType(v v1.ResetReapplyType) { + x.ResetReapplyType = v +} + +func (x *BatchOperationReset) SetPostResetOperations(v []*v12.PostResetOperation) { + x.PostResetOperations = v +} + +func (x *BatchOperationReset) HasOptions() bool { + if x == nil { + return false + } + return x.Options != nil +} + +func (x *BatchOperationReset) ClearOptions() { + x.Options = nil +} + +type BatchOperationReset_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The identity of the worker/client. + Identity string + // Describes what to reset to and how. If set, `reset_type` and `reset_reapply_type` are ignored. + Options *v11.ResetOptions + // Deprecated. Use `options`. + // + // Deprecated: Marked as deprecated in temporal/api/batch/v1/message.proto. + ResetType v1.ResetType + // Deprecated. Use `options`. + // + // Deprecated: Marked as deprecated in temporal/api/batch/v1/message.proto. + ResetReapplyType v1.ResetReapplyType + // Operations to perform after the workflow has been reset. These operations will be applied + // to the *new* run of the workflow execution in the order they are provided. + // All operations are applied to the workflow before the first new workflow task is generated + PostResetOperations []*v12.PostResetOperation +} + +func (b0 BatchOperationReset_builder) Build() *BatchOperationReset { + m0 := &BatchOperationReset{} + b, x := &b0, m0 + _, _ = b, x + x.Identity = b.Identity + x.Options = b.Options + x.ResetType = b.ResetType + x.ResetReapplyType = b.ResetReapplyType + x.PostResetOperations = b.PostResetOperations + return m0 +} + // BatchOperationUpdateWorkflowExecutionOptions sends UpdateWorkflowExecutionOptions requests to batch workflows. // Keep the parameters in sync with temporal.api.workflowservice.v1.UpdateWorkflowExecutionOptionsRequest. type BatchOperationUpdateWorkflowExecutionOptions struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The identity of the worker/client. Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` // Update Workflow options that were originally specified via StartWorkflowExecution. Partial updates are accepted and controlled by update_mask. @@ -460,11 +698,6 @@ func (x *BatchOperationUpdateWorkflowExecutionOptions) ProtoReflect() protorefle return mi.MessageOf(x) } -// Deprecated: Use BatchOperationUpdateWorkflowExecutionOptions.ProtoReflect.Descriptor instead. -func (*BatchOperationUpdateWorkflowExecutionOptions) Descriptor() ([]byte, []int) { - return file_temporal_api_batch_v1_message_proto_rawDescGZIP(), []int{6} -} - func (x *BatchOperationUpdateWorkflowExecutionOptions) GetIdentity() string { if x != nil { return x.Identity @@ -486,9 +719,65 @@ func (x *BatchOperationUpdateWorkflowExecutionOptions) GetUpdateMask() *fieldmas return nil } +func (x *BatchOperationUpdateWorkflowExecutionOptions) SetIdentity(v string) { + x.Identity = v +} + +func (x *BatchOperationUpdateWorkflowExecutionOptions) SetWorkflowExecutionOptions(v *v12.WorkflowExecutionOptions) { + x.WorkflowExecutionOptions = v +} + +func (x *BatchOperationUpdateWorkflowExecutionOptions) SetUpdateMask(v *fieldmaskpb.FieldMask) { + x.UpdateMask = v +} + +func (x *BatchOperationUpdateWorkflowExecutionOptions) HasWorkflowExecutionOptions() bool { + if x == nil { + return false + } + return x.WorkflowExecutionOptions != nil +} + +func (x *BatchOperationUpdateWorkflowExecutionOptions) HasUpdateMask() bool { + if x == nil { + return false + } + return x.UpdateMask != nil +} + +func (x *BatchOperationUpdateWorkflowExecutionOptions) ClearWorkflowExecutionOptions() { + x.WorkflowExecutionOptions = nil +} + +func (x *BatchOperationUpdateWorkflowExecutionOptions) ClearUpdateMask() { + x.UpdateMask = nil +} + +type BatchOperationUpdateWorkflowExecutionOptions_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The identity of the worker/client. + Identity string + // Update Workflow options that were originally specified via StartWorkflowExecution. Partial updates are accepted and controlled by update_mask. + WorkflowExecutionOptions *v12.WorkflowExecutionOptions + // Controls which fields from `workflow_execution_options` will be applied. + // To unset a field, set it to null and use the update mask to indicate that it should be mutated. + UpdateMask *fieldmaskpb.FieldMask +} + +func (b0 BatchOperationUpdateWorkflowExecutionOptions_builder) Build() *BatchOperationUpdateWorkflowExecutionOptions { + m0 := &BatchOperationUpdateWorkflowExecutionOptions{} + b, x := &b0, m0 + _, _ = b, x + x.Identity = b.Identity + x.WorkflowExecutionOptions = b.WorkflowExecutionOptions + x.UpdateMask = b.UpdateMask + return m0 +} + // BatchOperationUnpauseActivities sends unpause requests to batch workflows. type BatchOperationUnpauseActivities struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The identity of the worker/client. Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` // The activity to unpause. If match_all is set to true, all activities will be unpaused. @@ -534,11 +823,6 @@ func (x *BatchOperationUnpauseActivities) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use BatchOperationUnpauseActivities.ProtoReflect.Descriptor instead. -func (*BatchOperationUnpauseActivities) Descriptor() ([]byte, []int) { - return file_temporal_api_batch_v1_message_proto_rawDescGZIP(), []int{7} -} - func (x *BatchOperationUnpauseActivities) GetIdentity() string { if x != nil { return x.Identity @@ -592,6 +876,151 @@ func (x *BatchOperationUnpauseActivities) GetJitter() *durationpb.Duration { return nil } +func (x *BatchOperationUnpauseActivities) SetIdentity(v string) { + x.Identity = v +} + +func (x *BatchOperationUnpauseActivities) SetType(v string) { + x.Activity = &BatchOperationUnpauseActivities_Type{v} +} + +func (x *BatchOperationUnpauseActivities) SetMatchAll(v bool) { + x.Activity = &BatchOperationUnpauseActivities_MatchAll{v} +} + +func (x *BatchOperationUnpauseActivities) SetResetAttempts(v bool) { + x.ResetAttempts = v +} + +func (x *BatchOperationUnpauseActivities) SetResetHeartbeat(v bool) { + x.ResetHeartbeat = v +} + +func (x *BatchOperationUnpauseActivities) SetJitter(v *durationpb.Duration) { + x.Jitter = v +} + +func (x *BatchOperationUnpauseActivities) HasActivity() bool { + if x == nil { + return false + } + return x.Activity != nil +} + +func (x *BatchOperationUnpauseActivities) HasType() bool { + if x == nil { + return false + } + _, ok := x.Activity.(*BatchOperationUnpauseActivities_Type) + return ok +} + +func (x *BatchOperationUnpauseActivities) HasMatchAll() bool { + if x == nil { + return false + } + _, ok := x.Activity.(*BatchOperationUnpauseActivities_MatchAll) + return ok +} + +func (x *BatchOperationUnpauseActivities) HasJitter() bool { + if x == nil { + return false + } + return x.Jitter != nil +} + +func (x *BatchOperationUnpauseActivities) ClearActivity() { + x.Activity = nil +} + +func (x *BatchOperationUnpauseActivities) ClearType() { + if _, ok := x.Activity.(*BatchOperationUnpauseActivities_Type); ok { + x.Activity = nil + } +} + +func (x *BatchOperationUnpauseActivities) ClearMatchAll() { + if _, ok := x.Activity.(*BatchOperationUnpauseActivities_MatchAll); ok { + x.Activity = nil + } +} + +func (x *BatchOperationUnpauseActivities) ClearJitter() { + x.Jitter = nil +} + +const BatchOperationUnpauseActivities_Activity_not_set_case case_BatchOperationUnpauseActivities_Activity = 0 +const BatchOperationUnpauseActivities_Type_case case_BatchOperationUnpauseActivities_Activity = 2 +const BatchOperationUnpauseActivities_MatchAll_case case_BatchOperationUnpauseActivities_Activity = 3 + +func (x *BatchOperationUnpauseActivities) WhichActivity() case_BatchOperationUnpauseActivities_Activity { + if x == nil { + return BatchOperationUnpauseActivities_Activity_not_set_case + } + switch x.Activity.(type) { + case *BatchOperationUnpauseActivities_Type: + return BatchOperationUnpauseActivities_Type_case + case *BatchOperationUnpauseActivities_MatchAll: + return BatchOperationUnpauseActivities_MatchAll_case + default: + return BatchOperationUnpauseActivities_Activity_not_set_case + } +} + +type BatchOperationUnpauseActivities_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The identity of the worker/client. + Identity string + // The activity to unpause. If match_all is set to true, all activities will be unpaused. + + // Fields of oneof Activity: + Type *string + MatchAll *bool + // -- end of Activity + // Setting this flag will also reset the number of attempts. + ResetAttempts bool + // Setting this flag will also reset the heartbeat details. + ResetHeartbeat bool + // If set, the activity will start at a random time within the specified jitter + // duration, introducing variability to the start time. + Jitter *durationpb.Duration +} + +func (b0 BatchOperationUnpauseActivities_builder) Build() *BatchOperationUnpauseActivities { + m0 := &BatchOperationUnpauseActivities{} + b, x := &b0, m0 + _, _ = b, x + x.Identity = b.Identity + if b.Type != nil { + x.Activity = &BatchOperationUnpauseActivities_Type{*b.Type} + } + if b.MatchAll != nil { + x.Activity = &BatchOperationUnpauseActivities_MatchAll{*b.MatchAll} + } + x.ResetAttempts = b.ResetAttempts + x.ResetHeartbeat = b.ResetHeartbeat + x.Jitter = b.Jitter + return m0 +} + +type case_BatchOperationUnpauseActivities_Activity protoreflect.FieldNumber + +func (x case_BatchOperationUnpauseActivities_Activity) String() string { + switch x { + case BatchOperationUnpauseActivities_Activity_not_set_case: + return "BatchOperationUnpauseActivitiesActivityNotSetCase" + case BatchOperationUnpauseActivities_Type_case: + return "BatchOperationUnpauseActivitiesTypeCase" + case BatchOperationUnpauseActivities_MatchAll_case: + return "BatchOperationUnpauseActivitiesMatchAllCase" + default: + return strconv.Itoa(int(x)) + } + +} + type isBatchOperationUnpauseActivities_Activity interface { isBatchOperationUnpauseActivities_Activity() } @@ -610,7 +1039,7 @@ func (*BatchOperationUnpauseActivities_MatchAll) isBatchOperationUnpauseActiviti // BatchOperationTriggerWorkflowRule sends TriggerWorkflowRule requests to batch workflows. type BatchOperationTriggerWorkflowRule struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The identity of the worker/client. Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` // Types that are valid to be assigned to Rule: @@ -647,11 +1076,6 @@ func (x *BatchOperationTriggerWorkflowRule) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use BatchOperationTriggerWorkflowRule.ProtoReflect.Descriptor instead. -func (*BatchOperationTriggerWorkflowRule) Descriptor() ([]byte, []int) { - return file_temporal_api_batch_v1_message_proto_rawDescGZIP(), []int{8} -} - func (x *BatchOperationTriggerWorkflowRule) GetIdentity() string { if x != nil { return x.Identity @@ -684,6 +1108,122 @@ func (x *BatchOperationTriggerWorkflowRule) GetSpec() *v13.WorkflowRuleSpec { return nil } +func (x *BatchOperationTriggerWorkflowRule) SetIdentity(v string) { + x.Identity = v +} + +func (x *BatchOperationTriggerWorkflowRule) SetId(v string) { + x.Rule = &BatchOperationTriggerWorkflowRule_Id{v} +} + +func (x *BatchOperationTriggerWorkflowRule) SetSpec(v *v13.WorkflowRuleSpec) { + if v == nil { + x.Rule = nil + return + } + x.Rule = &BatchOperationTriggerWorkflowRule_Spec{v} +} + +func (x *BatchOperationTriggerWorkflowRule) HasRule() bool { + if x == nil { + return false + } + return x.Rule != nil +} + +func (x *BatchOperationTriggerWorkflowRule) HasId() bool { + if x == nil { + return false + } + _, ok := x.Rule.(*BatchOperationTriggerWorkflowRule_Id) + return ok +} + +func (x *BatchOperationTriggerWorkflowRule) HasSpec() bool { + if x == nil { + return false + } + _, ok := x.Rule.(*BatchOperationTriggerWorkflowRule_Spec) + return ok +} + +func (x *BatchOperationTriggerWorkflowRule) ClearRule() { + x.Rule = nil +} + +func (x *BatchOperationTriggerWorkflowRule) ClearId() { + if _, ok := x.Rule.(*BatchOperationTriggerWorkflowRule_Id); ok { + x.Rule = nil + } +} + +func (x *BatchOperationTriggerWorkflowRule) ClearSpec() { + if _, ok := x.Rule.(*BatchOperationTriggerWorkflowRule_Spec); ok { + x.Rule = nil + } +} + +const BatchOperationTriggerWorkflowRule_Rule_not_set_case case_BatchOperationTriggerWorkflowRule_Rule = 0 +const BatchOperationTriggerWorkflowRule_Id_case case_BatchOperationTriggerWorkflowRule_Rule = 2 +const BatchOperationTriggerWorkflowRule_Spec_case case_BatchOperationTriggerWorkflowRule_Rule = 3 + +func (x *BatchOperationTriggerWorkflowRule) WhichRule() case_BatchOperationTriggerWorkflowRule_Rule { + if x == nil { + return BatchOperationTriggerWorkflowRule_Rule_not_set_case + } + switch x.Rule.(type) { + case *BatchOperationTriggerWorkflowRule_Id: + return BatchOperationTriggerWorkflowRule_Id_case + case *BatchOperationTriggerWorkflowRule_Spec: + return BatchOperationTriggerWorkflowRule_Spec_case + default: + return BatchOperationTriggerWorkflowRule_Rule_not_set_case + } +} + +type BatchOperationTriggerWorkflowRule_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The identity of the worker/client. + Identity string + // Fields of oneof Rule: + // ID of existing rule. + Id *string + // Rule specification to be applied to the workflow without creating a new rule. + Spec *v13.WorkflowRuleSpec + // -- end of Rule +} + +func (b0 BatchOperationTriggerWorkflowRule_builder) Build() *BatchOperationTriggerWorkflowRule { + m0 := &BatchOperationTriggerWorkflowRule{} + b, x := &b0, m0 + _, _ = b, x + x.Identity = b.Identity + if b.Id != nil { + x.Rule = &BatchOperationTriggerWorkflowRule_Id{*b.Id} + } + if b.Spec != nil { + x.Rule = &BatchOperationTriggerWorkflowRule_Spec{b.Spec} + } + return m0 +} + +type case_BatchOperationTriggerWorkflowRule_Rule protoreflect.FieldNumber + +func (x case_BatchOperationTriggerWorkflowRule_Rule) String() string { + switch x { + case BatchOperationTriggerWorkflowRule_Rule_not_set_case: + return "BatchOperationTriggerWorkflowRuleRuleNotSetCase" + case BatchOperationTriggerWorkflowRule_Id_case: + return "BatchOperationTriggerWorkflowRuleIdCase" + case BatchOperationTriggerWorkflowRule_Spec_case: + return "BatchOperationTriggerWorkflowRuleSpecCase" + default: + return strconv.Itoa(int(x)) + } + +} + type isBatchOperationTriggerWorkflowRule_Rule interface { isBatchOperationTriggerWorkflowRule_Rule() } @@ -705,7 +1245,7 @@ func (*BatchOperationTriggerWorkflowRule_Spec) isBatchOperationTriggerWorkflowRu // BatchOperationResetActivities sends activity reset requests in a batch. // NOTE: keep in sync with temporal.api.workflowservice.v1.ResetActivityRequest type BatchOperationResetActivities struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The identity of the worker/client. Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` // The activities to reset. If match_all is set to true, all activities will be reset. @@ -757,11 +1297,6 @@ func (x *BatchOperationResetActivities) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use BatchOperationResetActivities.ProtoReflect.Descriptor instead. -func (*BatchOperationResetActivities) Descriptor() ([]byte, []int) { - return file_temporal_api_batch_v1_message_proto_rawDescGZIP(), []int{9} -} - func (x *BatchOperationResetActivities) GetIdentity() string { if x != nil { return x.Identity @@ -829,6 +1364,167 @@ func (x *BatchOperationResetActivities) GetRestoreOriginalOptions() bool { return false } +func (x *BatchOperationResetActivities) SetIdentity(v string) { + x.Identity = v +} + +func (x *BatchOperationResetActivities) SetType(v string) { + x.Activity = &BatchOperationResetActivities_Type{v} +} + +func (x *BatchOperationResetActivities) SetMatchAll(v bool) { + x.Activity = &BatchOperationResetActivities_MatchAll{v} +} + +func (x *BatchOperationResetActivities) SetResetAttempts(v bool) { + x.ResetAttempts = v +} + +func (x *BatchOperationResetActivities) SetResetHeartbeat(v bool) { + x.ResetHeartbeat = v +} + +func (x *BatchOperationResetActivities) SetKeepPaused(v bool) { + x.KeepPaused = v +} + +func (x *BatchOperationResetActivities) SetJitter(v *durationpb.Duration) { + x.Jitter = v +} + +func (x *BatchOperationResetActivities) SetRestoreOriginalOptions(v bool) { + x.RestoreOriginalOptions = v +} + +func (x *BatchOperationResetActivities) HasActivity() bool { + if x == nil { + return false + } + return x.Activity != nil +} + +func (x *BatchOperationResetActivities) HasType() bool { + if x == nil { + return false + } + _, ok := x.Activity.(*BatchOperationResetActivities_Type) + return ok +} + +func (x *BatchOperationResetActivities) HasMatchAll() bool { + if x == nil { + return false + } + _, ok := x.Activity.(*BatchOperationResetActivities_MatchAll) + return ok +} + +func (x *BatchOperationResetActivities) HasJitter() bool { + if x == nil { + return false + } + return x.Jitter != nil +} + +func (x *BatchOperationResetActivities) ClearActivity() { + x.Activity = nil +} + +func (x *BatchOperationResetActivities) ClearType() { + if _, ok := x.Activity.(*BatchOperationResetActivities_Type); ok { + x.Activity = nil + } +} + +func (x *BatchOperationResetActivities) ClearMatchAll() { + if _, ok := x.Activity.(*BatchOperationResetActivities_MatchAll); ok { + x.Activity = nil + } +} + +func (x *BatchOperationResetActivities) ClearJitter() { + x.Jitter = nil +} + +const BatchOperationResetActivities_Activity_not_set_case case_BatchOperationResetActivities_Activity = 0 +const BatchOperationResetActivities_Type_case case_BatchOperationResetActivities_Activity = 2 +const BatchOperationResetActivities_MatchAll_case case_BatchOperationResetActivities_Activity = 3 + +func (x *BatchOperationResetActivities) WhichActivity() case_BatchOperationResetActivities_Activity { + if x == nil { + return BatchOperationResetActivities_Activity_not_set_case + } + switch x.Activity.(type) { + case *BatchOperationResetActivities_Type: + return BatchOperationResetActivities_Type_case + case *BatchOperationResetActivities_MatchAll: + return BatchOperationResetActivities_MatchAll_case + default: + return BatchOperationResetActivities_Activity_not_set_case + } +} + +type BatchOperationResetActivities_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The identity of the worker/client. + Identity string + // The activities to reset. If match_all is set to true, all activities will be reset. + + // Fields of oneof Activity: + Type *string + MatchAll *bool + // -- end of Activity + // Setting this flag will also reset the number of attempts. + ResetAttempts bool + // Setting this flag will also reset the heartbeat details. + ResetHeartbeat bool + // If activity is paused, it will remain paused after reset + KeepPaused bool + // If set, the activity will start at a random time within the specified jitter + // duration, introducing variability to the start time. + Jitter *durationpb.Duration + // If set, the activity options will be restored to the defaults. + // Default options are then options activity was created with. + // They are part of the first ActivityTaskScheduled event. + RestoreOriginalOptions bool +} + +func (b0 BatchOperationResetActivities_builder) Build() *BatchOperationResetActivities { + m0 := &BatchOperationResetActivities{} + b, x := &b0, m0 + _, _ = b, x + x.Identity = b.Identity + if b.Type != nil { + x.Activity = &BatchOperationResetActivities_Type{*b.Type} + } + if b.MatchAll != nil { + x.Activity = &BatchOperationResetActivities_MatchAll{*b.MatchAll} + } + x.ResetAttempts = b.ResetAttempts + x.ResetHeartbeat = b.ResetHeartbeat + x.KeepPaused = b.KeepPaused + x.Jitter = b.Jitter + x.RestoreOriginalOptions = b.RestoreOriginalOptions + return m0 +} + +type case_BatchOperationResetActivities_Activity protoreflect.FieldNumber + +func (x case_BatchOperationResetActivities_Activity) String() string { + switch x { + case BatchOperationResetActivities_Activity_not_set_case: + return "BatchOperationResetActivitiesActivityNotSetCase" + case BatchOperationResetActivities_Type_case: + return "BatchOperationResetActivitiesTypeCase" + case BatchOperationResetActivities_MatchAll_case: + return "BatchOperationResetActivitiesMatchAllCase" + default: + return strconv.Itoa(int(x)) + } + +} + type isBatchOperationResetActivities_Activity interface { isBatchOperationResetActivities_Activity() } @@ -848,7 +1544,7 @@ func (*BatchOperationResetActivities_MatchAll) isBatchOperationResetActivities_A // BatchOperationUpdateActivityOptions sends an update-activity-options requests in a batch. // NOTE: keep in sync with temporal.api.workflowservice.v1.UpdateActivityRequest type BatchOperationUpdateActivityOptions struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The identity of the worker/client. Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` // The activity to update. If match_all is set to true, all activities will be updated. @@ -897,11 +1593,6 @@ func (x *BatchOperationUpdateActivityOptions) ProtoReflect() protoreflect.Messag return mi.MessageOf(x) } -// Deprecated: Use BatchOperationUpdateActivityOptions.ProtoReflect.Descriptor instead. -func (*BatchOperationUpdateActivityOptions) Descriptor() ([]byte, []int) { - return file_temporal_api_batch_v1_message_proto_rawDescGZIP(), []int{10} -} - func (x *BatchOperationUpdateActivityOptions) GetIdentity() string { if x != nil { return x.Identity @@ -955,6 +1646,165 @@ func (x *BatchOperationUpdateActivityOptions) GetRestoreOriginal() bool { return false } +func (x *BatchOperationUpdateActivityOptions) SetIdentity(v string) { + x.Identity = v +} + +func (x *BatchOperationUpdateActivityOptions) SetType(v string) { + x.Activity = &BatchOperationUpdateActivityOptions_Type{v} +} + +func (x *BatchOperationUpdateActivityOptions) SetMatchAll(v bool) { + x.Activity = &BatchOperationUpdateActivityOptions_MatchAll{v} +} + +func (x *BatchOperationUpdateActivityOptions) SetActivityOptions(v *v14.ActivityOptions) { + x.ActivityOptions = v +} + +func (x *BatchOperationUpdateActivityOptions) SetUpdateMask(v *fieldmaskpb.FieldMask) { + x.UpdateMask = v +} + +func (x *BatchOperationUpdateActivityOptions) SetRestoreOriginal(v bool) { + x.RestoreOriginal = v +} + +func (x *BatchOperationUpdateActivityOptions) HasActivity() bool { + if x == nil { + return false + } + return x.Activity != nil +} + +func (x *BatchOperationUpdateActivityOptions) HasType() bool { + if x == nil { + return false + } + _, ok := x.Activity.(*BatchOperationUpdateActivityOptions_Type) + return ok +} + +func (x *BatchOperationUpdateActivityOptions) HasMatchAll() bool { + if x == nil { + return false + } + _, ok := x.Activity.(*BatchOperationUpdateActivityOptions_MatchAll) + return ok +} + +func (x *BatchOperationUpdateActivityOptions) HasActivityOptions() bool { + if x == nil { + return false + } + return x.ActivityOptions != nil +} + +func (x *BatchOperationUpdateActivityOptions) HasUpdateMask() bool { + if x == nil { + return false + } + return x.UpdateMask != nil +} + +func (x *BatchOperationUpdateActivityOptions) ClearActivity() { + x.Activity = nil +} + +func (x *BatchOperationUpdateActivityOptions) ClearType() { + if _, ok := x.Activity.(*BatchOperationUpdateActivityOptions_Type); ok { + x.Activity = nil + } +} + +func (x *BatchOperationUpdateActivityOptions) ClearMatchAll() { + if _, ok := x.Activity.(*BatchOperationUpdateActivityOptions_MatchAll); ok { + x.Activity = nil + } +} + +func (x *BatchOperationUpdateActivityOptions) ClearActivityOptions() { + x.ActivityOptions = nil +} + +func (x *BatchOperationUpdateActivityOptions) ClearUpdateMask() { + x.UpdateMask = nil +} + +const BatchOperationUpdateActivityOptions_Activity_not_set_case case_BatchOperationUpdateActivityOptions_Activity = 0 +const BatchOperationUpdateActivityOptions_Type_case case_BatchOperationUpdateActivityOptions_Activity = 2 +const BatchOperationUpdateActivityOptions_MatchAll_case case_BatchOperationUpdateActivityOptions_Activity = 3 + +func (x *BatchOperationUpdateActivityOptions) WhichActivity() case_BatchOperationUpdateActivityOptions_Activity { + if x == nil { + return BatchOperationUpdateActivityOptions_Activity_not_set_case + } + switch x.Activity.(type) { + case *BatchOperationUpdateActivityOptions_Type: + return BatchOperationUpdateActivityOptions_Type_case + case *BatchOperationUpdateActivityOptions_MatchAll: + return BatchOperationUpdateActivityOptions_MatchAll_case + default: + return BatchOperationUpdateActivityOptions_Activity_not_set_case + } +} + +type BatchOperationUpdateActivityOptions_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The identity of the worker/client. + Identity string + // The activity to update. If match_all is set to true, all activities will be updated. + + // Fields of oneof Activity: + Type *string + MatchAll *bool + // -- end of Activity + // Update Activity options. Partial updates are accepted and controlled by update_mask. + ActivityOptions *v14.ActivityOptions + // Controls which fields from `activity_options` will be applied + UpdateMask *fieldmaskpb.FieldMask + // If set, the activity options will be restored to the default. + // Default options are then options activity was created with. + // They are part of the first ActivityTaskScheduled event. + // This flag cannot be combined with any other option; if you supply + // restore_original together with other options, the request will be rejected. + RestoreOriginal bool +} + +func (b0 BatchOperationUpdateActivityOptions_builder) Build() *BatchOperationUpdateActivityOptions { + m0 := &BatchOperationUpdateActivityOptions{} + b, x := &b0, m0 + _, _ = b, x + x.Identity = b.Identity + if b.Type != nil { + x.Activity = &BatchOperationUpdateActivityOptions_Type{*b.Type} + } + if b.MatchAll != nil { + x.Activity = &BatchOperationUpdateActivityOptions_MatchAll{*b.MatchAll} + } + x.ActivityOptions = b.ActivityOptions + x.UpdateMask = b.UpdateMask + x.RestoreOriginal = b.RestoreOriginal + return m0 +} + +type case_BatchOperationUpdateActivityOptions_Activity protoreflect.FieldNumber + +func (x case_BatchOperationUpdateActivityOptions_Activity) String() string { + switch x { + case BatchOperationUpdateActivityOptions_Activity_not_set_case: + return "BatchOperationUpdateActivityOptionsActivityNotSetCase" + case BatchOperationUpdateActivityOptions_Type_case: + return "BatchOperationUpdateActivityOptionsTypeCase" + case BatchOperationUpdateActivityOptions_MatchAll_case: + return "BatchOperationUpdateActivityOptionsMatchAllCase" + default: + return strconv.Itoa(int(x)) + } + +} + type isBatchOperationUpdateActivityOptions_Activity interface { isBatchOperationUpdateActivityOptions_Activity() } @@ -1046,18 +1896,6 @@ const file_temporal_api_batch_v1_message_proto_rawDesc = "" + "\bactivityB\x84\x01\n" + "\x18io.temporal.api.batch.v1B\fMessageProtoP\x01Z!go.temporal.io/api/batch/v1;batch\xaa\x02\x17Temporalio.Api.Batch.V1\xea\x02\x1aTemporalio::Api::Batch::V1b\x06proto3" -var ( - file_temporal_api_batch_v1_message_proto_rawDescOnce sync.Once - file_temporal_api_batch_v1_message_proto_rawDescData []byte -) - -func file_temporal_api_batch_v1_message_proto_rawDescGZIP() []byte { - file_temporal_api_batch_v1_message_proto_rawDescOnce.Do(func() { - file_temporal_api_batch_v1_message_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_api_batch_v1_message_proto_rawDesc), len(file_temporal_api_batch_v1_message_proto_rawDesc))) - }) - return file_temporal_api_batch_v1_message_proto_rawDescData -} - var file_temporal_api_batch_v1_message_proto_msgTypes = make([]protoimpl.MessageInfo, 11) var file_temporal_api_batch_v1_message_proto_goTypes = []any{ (*BatchOperationInfo)(nil), // 0: temporal.api.batch.v1.BatchOperationInfo diff --git a/batch/v1/message_protoopaque.pb.go b/batch/v1/message_protoopaque.pb.go new file mode 100644 index 00000000..59d58f82 --- /dev/null +++ b/batch/v1/message_protoopaque.pb.go @@ -0,0 +1,1890 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// plugins: +// protoc-gen-go +// protoc +// source: temporal/api/batch/v1/message.proto + +//go:build protoopaque + +package batch + +import ( + reflect "reflect" + "strconv" + unsafe "unsafe" + + v14 "go.temporal.io/api/activity/v1" + v11 "go.temporal.io/api/common/v1" + v1 "go.temporal.io/api/enums/v1" + v13 "go.temporal.io/api/rules/v1" + v12 "go.temporal.io/api/workflow/v1" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + durationpb "google.golang.org/protobuf/types/known/durationpb" + fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type BatchOperationInfo struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3"` + xxx_hidden_State v1.BatchOperationState `protobuf:"varint,2,opt,name=state,proto3,enum=temporal.api.enums.v1.BatchOperationState"` + xxx_hidden_StartTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=start_time,json=startTime,proto3"` + xxx_hidden_CloseTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=close_time,json=closeTime,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *BatchOperationInfo) Reset() { + *x = BatchOperationInfo{} + mi := &file_temporal_api_batch_v1_message_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *BatchOperationInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BatchOperationInfo) ProtoMessage() {} + +func (x *BatchOperationInfo) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_batch_v1_message_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *BatchOperationInfo) GetJobId() string { + if x != nil { + return x.xxx_hidden_JobId + } + return "" +} + +func (x *BatchOperationInfo) GetState() v1.BatchOperationState { + if x != nil { + return x.xxx_hidden_State + } + return v1.BatchOperationState(0) +} + +func (x *BatchOperationInfo) GetStartTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_StartTime + } + return nil +} + +func (x *BatchOperationInfo) GetCloseTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_CloseTime + } + return nil +} + +func (x *BatchOperationInfo) SetJobId(v string) { + x.xxx_hidden_JobId = v +} + +func (x *BatchOperationInfo) SetState(v v1.BatchOperationState) { + x.xxx_hidden_State = v +} + +func (x *BatchOperationInfo) SetStartTime(v *timestamppb.Timestamp) { + x.xxx_hidden_StartTime = v +} + +func (x *BatchOperationInfo) SetCloseTime(v *timestamppb.Timestamp) { + x.xxx_hidden_CloseTime = v +} + +func (x *BatchOperationInfo) HasStartTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_StartTime != nil +} + +func (x *BatchOperationInfo) HasCloseTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_CloseTime != nil +} + +func (x *BatchOperationInfo) ClearStartTime() { + x.xxx_hidden_StartTime = nil +} + +func (x *BatchOperationInfo) ClearCloseTime() { + x.xxx_hidden_CloseTime = nil +} + +type BatchOperationInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Batch job ID + JobId string + // Batch operation state + State v1.BatchOperationState + // Batch operation start time + StartTime *timestamppb.Timestamp + // Batch operation close time + CloseTime *timestamppb.Timestamp +} + +func (b0 BatchOperationInfo_builder) Build() *BatchOperationInfo { + m0 := &BatchOperationInfo{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_JobId = b.JobId + x.xxx_hidden_State = b.State + x.xxx_hidden_StartTime = b.StartTime + x.xxx_hidden_CloseTime = b.CloseTime + return m0 +} + +// BatchOperationTermination sends terminate requests to batch workflows. +// Keep the parameter in sync with temporal.api.workflowservice.v1.TerminateWorkflowExecutionRequest. +// Ignore first_execution_run_id because this is used for single workflow operation. +type BatchOperationTermination struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Details *v11.Payloads `protobuf:"bytes,1,opt,name=details,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,2,opt,name=identity,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *BatchOperationTermination) Reset() { + *x = BatchOperationTermination{} + mi := &file_temporal_api_batch_v1_message_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *BatchOperationTermination) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BatchOperationTermination) ProtoMessage() {} + +func (x *BatchOperationTermination) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_batch_v1_message_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *BatchOperationTermination) GetDetails() *v11.Payloads { + if x != nil { + return x.xxx_hidden_Details + } + return nil +} + +func (x *BatchOperationTermination) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *BatchOperationTermination) SetDetails(v *v11.Payloads) { + x.xxx_hidden_Details = v +} + +func (x *BatchOperationTermination) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *BatchOperationTermination) HasDetails() bool { + if x == nil { + return false + } + return x.xxx_hidden_Details != nil +} + +func (x *BatchOperationTermination) ClearDetails() { + x.xxx_hidden_Details = nil +} + +type BatchOperationTermination_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Serialized value(s) to provide to the termination event + Details *v11.Payloads + // The identity of the worker/client + Identity string +} + +func (b0 BatchOperationTermination_builder) Build() *BatchOperationTermination { + m0 := &BatchOperationTermination{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Details = b.Details + x.xxx_hidden_Identity = b.Identity + return m0 +} + +// BatchOperationSignal sends signals to batch workflows. +// Keep the parameter in sync with temporal.api.workflowservice.v1.SignalWorkflowExecutionRequest. +type BatchOperationSignal struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Signal string `protobuf:"bytes,1,opt,name=signal,proto3"` + xxx_hidden_Input *v11.Payloads `protobuf:"bytes,2,opt,name=input,proto3"` + xxx_hidden_Header *v11.Header `protobuf:"bytes,3,opt,name=header,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,4,opt,name=identity,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *BatchOperationSignal) Reset() { + *x = BatchOperationSignal{} + mi := &file_temporal_api_batch_v1_message_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *BatchOperationSignal) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BatchOperationSignal) ProtoMessage() {} + +func (x *BatchOperationSignal) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_batch_v1_message_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *BatchOperationSignal) GetSignal() string { + if x != nil { + return x.xxx_hidden_Signal + } + return "" +} + +func (x *BatchOperationSignal) GetInput() *v11.Payloads { + if x != nil { + return x.xxx_hidden_Input + } + return nil +} + +func (x *BatchOperationSignal) GetHeader() *v11.Header { + if x != nil { + return x.xxx_hidden_Header + } + return nil +} + +func (x *BatchOperationSignal) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *BatchOperationSignal) SetSignal(v string) { + x.xxx_hidden_Signal = v +} + +func (x *BatchOperationSignal) SetInput(v *v11.Payloads) { + x.xxx_hidden_Input = v +} + +func (x *BatchOperationSignal) SetHeader(v *v11.Header) { + x.xxx_hidden_Header = v +} + +func (x *BatchOperationSignal) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *BatchOperationSignal) HasInput() bool { + if x == nil { + return false + } + return x.xxx_hidden_Input != nil +} + +func (x *BatchOperationSignal) HasHeader() bool { + if x == nil { + return false + } + return x.xxx_hidden_Header != nil +} + +func (x *BatchOperationSignal) ClearInput() { + x.xxx_hidden_Input = nil +} + +func (x *BatchOperationSignal) ClearHeader() { + x.xxx_hidden_Header = nil +} + +type BatchOperationSignal_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The workflow author-defined name of the signal to send to the workflow + Signal string + // Serialized value(s) to provide with the signal + Input *v11.Payloads + // Headers that are passed with the signal to the processing workflow. + // These can include things like auth or tracing tokens. + Header *v11.Header + // The identity of the worker/client + Identity string +} + +func (b0 BatchOperationSignal_builder) Build() *BatchOperationSignal { + m0 := &BatchOperationSignal{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Signal = b.Signal + x.xxx_hidden_Input = b.Input + x.xxx_hidden_Header = b.Header + x.xxx_hidden_Identity = b.Identity + return m0 +} + +// BatchOperationCancellation sends cancel requests to batch workflows. +// Keep the parameter in sync with temporal.api.workflowservice.v1.RequestCancelWorkflowExecutionRequest. +// Ignore first_execution_run_id because this is used for single workflow operation. +type BatchOperationCancellation struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Identity string `protobuf:"bytes,1,opt,name=identity,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *BatchOperationCancellation) Reset() { + *x = BatchOperationCancellation{} + mi := &file_temporal_api_batch_v1_message_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *BatchOperationCancellation) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BatchOperationCancellation) ProtoMessage() {} + +func (x *BatchOperationCancellation) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_batch_v1_message_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *BatchOperationCancellation) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *BatchOperationCancellation) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +type BatchOperationCancellation_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The identity of the worker/client + Identity string +} + +func (b0 BatchOperationCancellation_builder) Build() *BatchOperationCancellation { + m0 := &BatchOperationCancellation{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Identity = b.Identity + return m0 +} + +// BatchOperationDeletion sends deletion requests to batch workflows. +// Keep the parameter in sync with temporal.api.workflowservice.v1.DeleteWorkflowExecutionRequest. +type BatchOperationDeletion struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Identity string `protobuf:"bytes,1,opt,name=identity,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *BatchOperationDeletion) Reset() { + *x = BatchOperationDeletion{} + mi := &file_temporal_api_batch_v1_message_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *BatchOperationDeletion) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BatchOperationDeletion) ProtoMessage() {} + +func (x *BatchOperationDeletion) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_batch_v1_message_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *BatchOperationDeletion) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *BatchOperationDeletion) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +type BatchOperationDeletion_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The identity of the worker/client + Identity string +} + +func (b0 BatchOperationDeletion_builder) Build() *BatchOperationDeletion { + m0 := &BatchOperationDeletion{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Identity = b.Identity + return m0 +} + +// BatchOperationReset sends reset requests to batch workflows. +// Keep the parameter in sync with temporal.api.workflowservice.v1.ResetWorkflowExecutionRequest. +type BatchOperationReset struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Identity string `protobuf:"bytes,3,opt,name=identity,proto3"` + xxx_hidden_Options *v11.ResetOptions `protobuf:"bytes,4,opt,name=options,proto3"` + xxx_hidden_ResetType v1.ResetType `protobuf:"varint,1,opt,name=reset_type,json=resetType,proto3,enum=temporal.api.enums.v1.ResetType"` + xxx_hidden_ResetReapplyType v1.ResetReapplyType `protobuf:"varint,2,opt,name=reset_reapply_type,json=resetReapplyType,proto3,enum=temporal.api.enums.v1.ResetReapplyType"` + xxx_hidden_PostResetOperations *[]*v12.PostResetOperation `protobuf:"bytes,5,rep,name=post_reset_operations,json=postResetOperations,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *BatchOperationReset) Reset() { + *x = BatchOperationReset{} + mi := &file_temporal_api_batch_v1_message_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *BatchOperationReset) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BatchOperationReset) ProtoMessage() {} + +func (x *BatchOperationReset) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_batch_v1_message_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *BatchOperationReset) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *BatchOperationReset) GetOptions() *v11.ResetOptions { + if x != nil { + return x.xxx_hidden_Options + } + return nil +} + +// Deprecated: Marked as deprecated in temporal/api/batch/v1/message.proto. +func (x *BatchOperationReset) GetResetType() v1.ResetType { + if x != nil { + return x.xxx_hidden_ResetType + } + return v1.ResetType(0) +} + +// Deprecated: Marked as deprecated in temporal/api/batch/v1/message.proto. +func (x *BatchOperationReset) GetResetReapplyType() v1.ResetReapplyType { + if x != nil { + return x.xxx_hidden_ResetReapplyType + } + return v1.ResetReapplyType(0) +} + +func (x *BatchOperationReset) GetPostResetOperations() []*v12.PostResetOperation { + if x != nil { + if x.xxx_hidden_PostResetOperations != nil { + return *x.xxx_hidden_PostResetOperations + } + } + return nil +} + +func (x *BatchOperationReset) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *BatchOperationReset) SetOptions(v *v11.ResetOptions) { + x.xxx_hidden_Options = v +} + +// Deprecated: Marked as deprecated in temporal/api/batch/v1/message.proto. +func (x *BatchOperationReset) SetResetType(v v1.ResetType) { + x.xxx_hidden_ResetType = v +} + +// Deprecated: Marked as deprecated in temporal/api/batch/v1/message.proto. +func (x *BatchOperationReset) SetResetReapplyType(v v1.ResetReapplyType) { + x.xxx_hidden_ResetReapplyType = v +} + +func (x *BatchOperationReset) SetPostResetOperations(v []*v12.PostResetOperation) { + x.xxx_hidden_PostResetOperations = &v +} + +func (x *BatchOperationReset) HasOptions() bool { + if x == nil { + return false + } + return x.xxx_hidden_Options != nil +} + +func (x *BatchOperationReset) ClearOptions() { + x.xxx_hidden_Options = nil +} + +type BatchOperationReset_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The identity of the worker/client. + Identity string + // Describes what to reset to and how. If set, `reset_type` and `reset_reapply_type` are ignored. + Options *v11.ResetOptions + // Deprecated. Use `options`. + // + // Deprecated: Marked as deprecated in temporal/api/batch/v1/message.proto. + ResetType v1.ResetType + // Deprecated. Use `options`. + // + // Deprecated: Marked as deprecated in temporal/api/batch/v1/message.proto. + ResetReapplyType v1.ResetReapplyType + // Operations to perform after the workflow has been reset. These operations will be applied + // to the *new* run of the workflow execution in the order they are provided. + // All operations are applied to the workflow before the first new workflow task is generated + PostResetOperations []*v12.PostResetOperation +} + +func (b0 BatchOperationReset_builder) Build() *BatchOperationReset { + m0 := &BatchOperationReset{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Identity = b.Identity + x.xxx_hidden_Options = b.Options + x.xxx_hidden_ResetType = b.ResetType + x.xxx_hidden_ResetReapplyType = b.ResetReapplyType + x.xxx_hidden_PostResetOperations = &b.PostResetOperations + return m0 +} + +// BatchOperationUpdateWorkflowExecutionOptions sends UpdateWorkflowExecutionOptions requests to batch workflows. +// Keep the parameters in sync with temporal.api.workflowservice.v1.UpdateWorkflowExecutionOptionsRequest. +type BatchOperationUpdateWorkflowExecutionOptions struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Identity string `protobuf:"bytes,1,opt,name=identity,proto3"` + xxx_hidden_WorkflowExecutionOptions *v12.WorkflowExecutionOptions `protobuf:"bytes,2,opt,name=workflow_execution_options,json=workflowExecutionOptions,proto3"` + xxx_hidden_UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *BatchOperationUpdateWorkflowExecutionOptions) Reset() { + *x = BatchOperationUpdateWorkflowExecutionOptions{} + mi := &file_temporal_api_batch_v1_message_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *BatchOperationUpdateWorkflowExecutionOptions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BatchOperationUpdateWorkflowExecutionOptions) ProtoMessage() {} + +func (x *BatchOperationUpdateWorkflowExecutionOptions) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_batch_v1_message_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *BatchOperationUpdateWorkflowExecutionOptions) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *BatchOperationUpdateWorkflowExecutionOptions) GetWorkflowExecutionOptions() *v12.WorkflowExecutionOptions { + if x != nil { + return x.xxx_hidden_WorkflowExecutionOptions + } + return nil +} + +func (x *BatchOperationUpdateWorkflowExecutionOptions) GetUpdateMask() *fieldmaskpb.FieldMask { + if x != nil { + return x.xxx_hidden_UpdateMask + } + return nil +} + +func (x *BatchOperationUpdateWorkflowExecutionOptions) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *BatchOperationUpdateWorkflowExecutionOptions) SetWorkflowExecutionOptions(v *v12.WorkflowExecutionOptions) { + x.xxx_hidden_WorkflowExecutionOptions = v +} + +func (x *BatchOperationUpdateWorkflowExecutionOptions) SetUpdateMask(v *fieldmaskpb.FieldMask) { + x.xxx_hidden_UpdateMask = v +} + +func (x *BatchOperationUpdateWorkflowExecutionOptions) HasWorkflowExecutionOptions() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowExecutionOptions != nil +} + +func (x *BatchOperationUpdateWorkflowExecutionOptions) HasUpdateMask() bool { + if x == nil { + return false + } + return x.xxx_hidden_UpdateMask != nil +} + +func (x *BatchOperationUpdateWorkflowExecutionOptions) ClearWorkflowExecutionOptions() { + x.xxx_hidden_WorkflowExecutionOptions = nil +} + +func (x *BatchOperationUpdateWorkflowExecutionOptions) ClearUpdateMask() { + x.xxx_hidden_UpdateMask = nil +} + +type BatchOperationUpdateWorkflowExecutionOptions_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The identity of the worker/client. + Identity string + // Update Workflow options that were originally specified via StartWorkflowExecution. Partial updates are accepted and controlled by update_mask. + WorkflowExecutionOptions *v12.WorkflowExecutionOptions + // Controls which fields from `workflow_execution_options` will be applied. + // To unset a field, set it to null and use the update mask to indicate that it should be mutated. + UpdateMask *fieldmaskpb.FieldMask +} + +func (b0 BatchOperationUpdateWorkflowExecutionOptions_builder) Build() *BatchOperationUpdateWorkflowExecutionOptions { + m0 := &BatchOperationUpdateWorkflowExecutionOptions{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Identity = b.Identity + x.xxx_hidden_WorkflowExecutionOptions = b.WorkflowExecutionOptions + x.xxx_hidden_UpdateMask = b.UpdateMask + return m0 +} + +// BatchOperationUnpauseActivities sends unpause requests to batch workflows. +type BatchOperationUnpauseActivities struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Identity string `protobuf:"bytes,1,opt,name=identity,proto3"` + xxx_hidden_Activity isBatchOperationUnpauseActivities_Activity `protobuf_oneof:"activity"` + xxx_hidden_ResetAttempts bool `protobuf:"varint,4,opt,name=reset_attempts,json=resetAttempts,proto3"` + xxx_hidden_ResetHeartbeat bool `protobuf:"varint,5,opt,name=reset_heartbeat,json=resetHeartbeat,proto3"` + xxx_hidden_Jitter *durationpb.Duration `protobuf:"bytes,6,opt,name=jitter,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *BatchOperationUnpauseActivities) Reset() { + *x = BatchOperationUnpauseActivities{} + mi := &file_temporal_api_batch_v1_message_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *BatchOperationUnpauseActivities) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BatchOperationUnpauseActivities) ProtoMessage() {} + +func (x *BatchOperationUnpauseActivities) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_batch_v1_message_proto_msgTypes[7] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *BatchOperationUnpauseActivities) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *BatchOperationUnpauseActivities) GetType() string { + if x != nil { + if x, ok := x.xxx_hidden_Activity.(*batchOperationUnpauseActivities_Type); ok { + return x.Type + } + } + return "" +} + +func (x *BatchOperationUnpauseActivities) GetMatchAll() bool { + if x != nil { + if x, ok := x.xxx_hidden_Activity.(*batchOperationUnpauseActivities_MatchAll); ok { + return x.MatchAll + } + } + return false +} + +func (x *BatchOperationUnpauseActivities) GetResetAttempts() bool { + if x != nil { + return x.xxx_hidden_ResetAttempts + } + return false +} + +func (x *BatchOperationUnpauseActivities) GetResetHeartbeat() bool { + if x != nil { + return x.xxx_hidden_ResetHeartbeat + } + return false +} + +func (x *BatchOperationUnpauseActivities) GetJitter() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_Jitter + } + return nil +} + +func (x *BatchOperationUnpauseActivities) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *BatchOperationUnpauseActivities) SetType(v string) { + x.xxx_hidden_Activity = &batchOperationUnpauseActivities_Type{v} +} + +func (x *BatchOperationUnpauseActivities) SetMatchAll(v bool) { + x.xxx_hidden_Activity = &batchOperationUnpauseActivities_MatchAll{v} +} + +func (x *BatchOperationUnpauseActivities) SetResetAttempts(v bool) { + x.xxx_hidden_ResetAttempts = v +} + +func (x *BatchOperationUnpauseActivities) SetResetHeartbeat(v bool) { + x.xxx_hidden_ResetHeartbeat = v +} + +func (x *BatchOperationUnpauseActivities) SetJitter(v *durationpb.Duration) { + x.xxx_hidden_Jitter = v +} + +func (x *BatchOperationUnpauseActivities) HasActivity() bool { + if x == nil { + return false + } + return x.xxx_hidden_Activity != nil +} + +func (x *BatchOperationUnpauseActivities) HasType() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Activity.(*batchOperationUnpauseActivities_Type) + return ok +} + +func (x *BatchOperationUnpauseActivities) HasMatchAll() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Activity.(*batchOperationUnpauseActivities_MatchAll) + return ok +} + +func (x *BatchOperationUnpauseActivities) HasJitter() bool { + if x == nil { + return false + } + return x.xxx_hidden_Jitter != nil +} + +func (x *BatchOperationUnpauseActivities) ClearActivity() { + x.xxx_hidden_Activity = nil +} + +func (x *BatchOperationUnpauseActivities) ClearType() { + if _, ok := x.xxx_hidden_Activity.(*batchOperationUnpauseActivities_Type); ok { + x.xxx_hidden_Activity = nil + } +} + +func (x *BatchOperationUnpauseActivities) ClearMatchAll() { + if _, ok := x.xxx_hidden_Activity.(*batchOperationUnpauseActivities_MatchAll); ok { + x.xxx_hidden_Activity = nil + } +} + +func (x *BatchOperationUnpauseActivities) ClearJitter() { + x.xxx_hidden_Jitter = nil +} + +const BatchOperationUnpauseActivities_Activity_not_set_case case_BatchOperationUnpauseActivities_Activity = 0 +const BatchOperationUnpauseActivities_Type_case case_BatchOperationUnpauseActivities_Activity = 2 +const BatchOperationUnpauseActivities_MatchAll_case case_BatchOperationUnpauseActivities_Activity = 3 + +func (x *BatchOperationUnpauseActivities) WhichActivity() case_BatchOperationUnpauseActivities_Activity { + if x == nil { + return BatchOperationUnpauseActivities_Activity_not_set_case + } + switch x.xxx_hidden_Activity.(type) { + case *batchOperationUnpauseActivities_Type: + return BatchOperationUnpauseActivities_Type_case + case *batchOperationUnpauseActivities_MatchAll: + return BatchOperationUnpauseActivities_MatchAll_case + default: + return BatchOperationUnpauseActivities_Activity_not_set_case + } +} + +type BatchOperationUnpauseActivities_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The identity of the worker/client. + Identity string + // The activity to unpause. If match_all is set to true, all activities will be unpaused. + + // Fields of oneof xxx_hidden_Activity: + Type *string + MatchAll *bool + // -- end of xxx_hidden_Activity + // Setting this flag will also reset the number of attempts. + ResetAttempts bool + // Setting this flag will also reset the heartbeat details. + ResetHeartbeat bool + // If set, the activity will start at a random time within the specified jitter + // duration, introducing variability to the start time. + Jitter *durationpb.Duration +} + +func (b0 BatchOperationUnpauseActivities_builder) Build() *BatchOperationUnpauseActivities { + m0 := &BatchOperationUnpauseActivities{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Identity = b.Identity + if b.Type != nil { + x.xxx_hidden_Activity = &batchOperationUnpauseActivities_Type{*b.Type} + } + if b.MatchAll != nil { + x.xxx_hidden_Activity = &batchOperationUnpauseActivities_MatchAll{*b.MatchAll} + } + x.xxx_hidden_ResetAttempts = b.ResetAttempts + x.xxx_hidden_ResetHeartbeat = b.ResetHeartbeat + x.xxx_hidden_Jitter = b.Jitter + return m0 +} + +type case_BatchOperationUnpauseActivities_Activity protoreflect.FieldNumber + +func (x case_BatchOperationUnpauseActivities_Activity) String() string { + switch x { + case BatchOperationUnpauseActivities_Activity_not_set_case: + return "BatchOperationUnpauseActivitiesActivityNotSetCase" + case BatchOperationUnpauseActivities_Type_case: + return "BatchOperationUnpauseActivitiesTypeCase" + case BatchOperationUnpauseActivities_MatchAll_case: + return "BatchOperationUnpauseActivitiesMatchAllCase" + default: + return strconv.Itoa(int(x)) + } + +} + +type isBatchOperationUnpauseActivities_Activity interface { + isBatchOperationUnpauseActivities_Activity() +} + +type batchOperationUnpauseActivities_Type struct { + Type string `protobuf:"bytes,2,opt,name=type,proto3,oneof"` +} + +type batchOperationUnpauseActivities_MatchAll struct { + MatchAll bool `protobuf:"varint,3,opt,name=match_all,json=matchAll,proto3,oneof"` +} + +func (*batchOperationUnpauseActivities_Type) isBatchOperationUnpauseActivities_Activity() {} + +func (*batchOperationUnpauseActivities_MatchAll) isBatchOperationUnpauseActivities_Activity() {} + +// BatchOperationTriggerWorkflowRule sends TriggerWorkflowRule requests to batch workflows. +type BatchOperationTriggerWorkflowRule struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Identity string `protobuf:"bytes,1,opt,name=identity,proto3"` + xxx_hidden_Rule isBatchOperationTriggerWorkflowRule_Rule `protobuf_oneof:"rule"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *BatchOperationTriggerWorkflowRule) Reset() { + *x = BatchOperationTriggerWorkflowRule{} + mi := &file_temporal_api_batch_v1_message_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *BatchOperationTriggerWorkflowRule) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BatchOperationTriggerWorkflowRule) ProtoMessage() {} + +func (x *BatchOperationTriggerWorkflowRule) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_batch_v1_message_proto_msgTypes[8] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *BatchOperationTriggerWorkflowRule) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *BatchOperationTriggerWorkflowRule) GetId() string { + if x != nil { + if x, ok := x.xxx_hidden_Rule.(*batchOperationTriggerWorkflowRule_Id); ok { + return x.Id + } + } + return "" +} + +func (x *BatchOperationTriggerWorkflowRule) GetSpec() *v13.WorkflowRuleSpec { + if x != nil { + if x, ok := x.xxx_hidden_Rule.(*batchOperationTriggerWorkflowRule_Spec); ok { + return x.Spec + } + } + return nil +} + +func (x *BatchOperationTriggerWorkflowRule) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *BatchOperationTriggerWorkflowRule) SetId(v string) { + x.xxx_hidden_Rule = &batchOperationTriggerWorkflowRule_Id{v} +} + +func (x *BatchOperationTriggerWorkflowRule) SetSpec(v *v13.WorkflowRuleSpec) { + if v == nil { + x.xxx_hidden_Rule = nil + return + } + x.xxx_hidden_Rule = &batchOperationTriggerWorkflowRule_Spec{v} +} + +func (x *BatchOperationTriggerWorkflowRule) HasRule() bool { + if x == nil { + return false + } + return x.xxx_hidden_Rule != nil +} + +func (x *BatchOperationTriggerWorkflowRule) HasId() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Rule.(*batchOperationTriggerWorkflowRule_Id) + return ok +} + +func (x *BatchOperationTriggerWorkflowRule) HasSpec() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Rule.(*batchOperationTriggerWorkflowRule_Spec) + return ok +} + +func (x *BatchOperationTriggerWorkflowRule) ClearRule() { + x.xxx_hidden_Rule = nil +} + +func (x *BatchOperationTriggerWorkflowRule) ClearId() { + if _, ok := x.xxx_hidden_Rule.(*batchOperationTriggerWorkflowRule_Id); ok { + x.xxx_hidden_Rule = nil + } +} + +func (x *BatchOperationTriggerWorkflowRule) ClearSpec() { + if _, ok := x.xxx_hidden_Rule.(*batchOperationTriggerWorkflowRule_Spec); ok { + x.xxx_hidden_Rule = nil + } +} + +const BatchOperationTriggerWorkflowRule_Rule_not_set_case case_BatchOperationTriggerWorkflowRule_Rule = 0 +const BatchOperationTriggerWorkflowRule_Id_case case_BatchOperationTriggerWorkflowRule_Rule = 2 +const BatchOperationTriggerWorkflowRule_Spec_case case_BatchOperationTriggerWorkflowRule_Rule = 3 + +func (x *BatchOperationTriggerWorkflowRule) WhichRule() case_BatchOperationTriggerWorkflowRule_Rule { + if x == nil { + return BatchOperationTriggerWorkflowRule_Rule_not_set_case + } + switch x.xxx_hidden_Rule.(type) { + case *batchOperationTriggerWorkflowRule_Id: + return BatchOperationTriggerWorkflowRule_Id_case + case *batchOperationTriggerWorkflowRule_Spec: + return BatchOperationTriggerWorkflowRule_Spec_case + default: + return BatchOperationTriggerWorkflowRule_Rule_not_set_case + } +} + +type BatchOperationTriggerWorkflowRule_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The identity of the worker/client. + Identity string + // Fields of oneof xxx_hidden_Rule: + // ID of existing rule. + Id *string + // Rule specification to be applied to the workflow without creating a new rule. + Spec *v13.WorkflowRuleSpec + // -- end of xxx_hidden_Rule +} + +func (b0 BatchOperationTriggerWorkflowRule_builder) Build() *BatchOperationTriggerWorkflowRule { + m0 := &BatchOperationTriggerWorkflowRule{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Identity = b.Identity + if b.Id != nil { + x.xxx_hidden_Rule = &batchOperationTriggerWorkflowRule_Id{*b.Id} + } + if b.Spec != nil { + x.xxx_hidden_Rule = &batchOperationTriggerWorkflowRule_Spec{b.Spec} + } + return m0 +} + +type case_BatchOperationTriggerWorkflowRule_Rule protoreflect.FieldNumber + +func (x case_BatchOperationTriggerWorkflowRule_Rule) String() string { + switch x { + case BatchOperationTriggerWorkflowRule_Rule_not_set_case: + return "BatchOperationTriggerWorkflowRuleRuleNotSetCase" + case BatchOperationTriggerWorkflowRule_Id_case: + return "BatchOperationTriggerWorkflowRuleIdCase" + case BatchOperationTriggerWorkflowRule_Spec_case: + return "BatchOperationTriggerWorkflowRuleSpecCase" + default: + return strconv.Itoa(int(x)) + } + +} + +type isBatchOperationTriggerWorkflowRule_Rule interface { + isBatchOperationTriggerWorkflowRule_Rule() +} + +type batchOperationTriggerWorkflowRule_Id struct { + // ID of existing rule. + Id string `protobuf:"bytes,2,opt,name=id,proto3,oneof"` +} + +type batchOperationTriggerWorkflowRule_Spec struct { + // Rule specification to be applied to the workflow without creating a new rule. + Spec *v13.WorkflowRuleSpec `protobuf:"bytes,3,opt,name=spec,proto3,oneof"` +} + +func (*batchOperationTriggerWorkflowRule_Id) isBatchOperationTriggerWorkflowRule_Rule() {} + +func (*batchOperationTriggerWorkflowRule_Spec) isBatchOperationTriggerWorkflowRule_Rule() {} + +// BatchOperationResetActivities sends activity reset requests in a batch. +// NOTE: keep in sync with temporal.api.workflowservice.v1.ResetActivityRequest +type BatchOperationResetActivities struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Identity string `protobuf:"bytes,1,opt,name=identity,proto3"` + xxx_hidden_Activity isBatchOperationResetActivities_Activity `protobuf_oneof:"activity"` + xxx_hidden_ResetAttempts bool `protobuf:"varint,4,opt,name=reset_attempts,json=resetAttempts,proto3"` + xxx_hidden_ResetHeartbeat bool `protobuf:"varint,5,opt,name=reset_heartbeat,json=resetHeartbeat,proto3"` + xxx_hidden_KeepPaused bool `protobuf:"varint,6,opt,name=keep_paused,json=keepPaused,proto3"` + xxx_hidden_Jitter *durationpb.Duration `protobuf:"bytes,7,opt,name=jitter,proto3"` + xxx_hidden_RestoreOriginalOptions bool `protobuf:"varint,8,opt,name=restore_original_options,json=restoreOriginalOptions,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *BatchOperationResetActivities) Reset() { + *x = BatchOperationResetActivities{} + mi := &file_temporal_api_batch_v1_message_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *BatchOperationResetActivities) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BatchOperationResetActivities) ProtoMessage() {} + +func (x *BatchOperationResetActivities) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_batch_v1_message_proto_msgTypes[9] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *BatchOperationResetActivities) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *BatchOperationResetActivities) GetType() string { + if x != nil { + if x, ok := x.xxx_hidden_Activity.(*batchOperationResetActivities_Type); ok { + return x.Type + } + } + return "" +} + +func (x *BatchOperationResetActivities) GetMatchAll() bool { + if x != nil { + if x, ok := x.xxx_hidden_Activity.(*batchOperationResetActivities_MatchAll); ok { + return x.MatchAll + } + } + return false +} + +func (x *BatchOperationResetActivities) GetResetAttempts() bool { + if x != nil { + return x.xxx_hidden_ResetAttempts + } + return false +} + +func (x *BatchOperationResetActivities) GetResetHeartbeat() bool { + if x != nil { + return x.xxx_hidden_ResetHeartbeat + } + return false +} + +func (x *BatchOperationResetActivities) GetKeepPaused() bool { + if x != nil { + return x.xxx_hidden_KeepPaused + } + return false +} + +func (x *BatchOperationResetActivities) GetJitter() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_Jitter + } + return nil +} + +func (x *BatchOperationResetActivities) GetRestoreOriginalOptions() bool { + if x != nil { + return x.xxx_hidden_RestoreOriginalOptions + } + return false +} + +func (x *BatchOperationResetActivities) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *BatchOperationResetActivities) SetType(v string) { + x.xxx_hidden_Activity = &batchOperationResetActivities_Type{v} +} + +func (x *BatchOperationResetActivities) SetMatchAll(v bool) { + x.xxx_hidden_Activity = &batchOperationResetActivities_MatchAll{v} +} + +func (x *BatchOperationResetActivities) SetResetAttempts(v bool) { + x.xxx_hidden_ResetAttempts = v +} + +func (x *BatchOperationResetActivities) SetResetHeartbeat(v bool) { + x.xxx_hidden_ResetHeartbeat = v +} + +func (x *BatchOperationResetActivities) SetKeepPaused(v bool) { + x.xxx_hidden_KeepPaused = v +} + +func (x *BatchOperationResetActivities) SetJitter(v *durationpb.Duration) { + x.xxx_hidden_Jitter = v +} + +func (x *BatchOperationResetActivities) SetRestoreOriginalOptions(v bool) { + x.xxx_hidden_RestoreOriginalOptions = v +} + +func (x *BatchOperationResetActivities) HasActivity() bool { + if x == nil { + return false + } + return x.xxx_hidden_Activity != nil +} + +func (x *BatchOperationResetActivities) HasType() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Activity.(*batchOperationResetActivities_Type) + return ok +} + +func (x *BatchOperationResetActivities) HasMatchAll() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Activity.(*batchOperationResetActivities_MatchAll) + return ok +} + +func (x *BatchOperationResetActivities) HasJitter() bool { + if x == nil { + return false + } + return x.xxx_hidden_Jitter != nil +} + +func (x *BatchOperationResetActivities) ClearActivity() { + x.xxx_hidden_Activity = nil +} + +func (x *BatchOperationResetActivities) ClearType() { + if _, ok := x.xxx_hidden_Activity.(*batchOperationResetActivities_Type); ok { + x.xxx_hidden_Activity = nil + } +} + +func (x *BatchOperationResetActivities) ClearMatchAll() { + if _, ok := x.xxx_hidden_Activity.(*batchOperationResetActivities_MatchAll); ok { + x.xxx_hidden_Activity = nil + } +} + +func (x *BatchOperationResetActivities) ClearJitter() { + x.xxx_hidden_Jitter = nil +} + +const BatchOperationResetActivities_Activity_not_set_case case_BatchOperationResetActivities_Activity = 0 +const BatchOperationResetActivities_Type_case case_BatchOperationResetActivities_Activity = 2 +const BatchOperationResetActivities_MatchAll_case case_BatchOperationResetActivities_Activity = 3 + +func (x *BatchOperationResetActivities) WhichActivity() case_BatchOperationResetActivities_Activity { + if x == nil { + return BatchOperationResetActivities_Activity_not_set_case + } + switch x.xxx_hidden_Activity.(type) { + case *batchOperationResetActivities_Type: + return BatchOperationResetActivities_Type_case + case *batchOperationResetActivities_MatchAll: + return BatchOperationResetActivities_MatchAll_case + default: + return BatchOperationResetActivities_Activity_not_set_case + } +} + +type BatchOperationResetActivities_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The identity of the worker/client. + Identity string + // The activities to reset. If match_all is set to true, all activities will be reset. + + // Fields of oneof xxx_hidden_Activity: + Type *string + MatchAll *bool + // -- end of xxx_hidden_Activity + // Setting this flag will also reset the number of attempts. + ResetAttempts bool + // Setting this flag will also reset the heartbeat details. + ResetHeartbeat bool + // If activity is paused, it will remain paused after reset + KeepPaused bool + // If set, the activity will start at a random time within the specified jitter + // duration, introducing variability to the start time. + Jitter *durationpb.Duration + // If set, the activity options will be restored to the defaults. + // Default options are then options activity was created with. + // They are part of the first ActivityTaskScheduled event. + RestoreOriginalOptions bool +} + +func (b0 BatchOperationResetActivities_builder) Build() *BatchOperationResetActivities { + m0 := &BatchOperationResetActivities{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Identity = b.Identity + if b.Type != nil { + x.xxx_hidden_Activity = &batchOperationResetActivities_Type{*b.Type} + } + if b.MatchAll != nil { + x.xxx_hidden_Activity = &batchOperationResetActivities_MatchAll{*b.MatchAll} + } + x.xxx_hidden_ResetAttempts = b.ResetAttempts + x.xxx_hidden_ResetHeartbeat = b.ResetHeartbeat + x.xxx_hidden_KeepPaused = b.KeepPaused + x.xxx_hidden_Jitter = b.Jitter + x.xxx_hidden_RestoreOriginalOptions = b.RestoreOriginalOptions + return m0 +} + +type case_BatchOperationResetActivities_Activity protoreflect.FieldNumber + +func (x case_BatchOperationResetActivities_Activity) String() string { + switch x { + case BatchOperationResetActivities_Activity_not_set_case: + return "BatchOperationResetActivitiesActivityNotSetCase" + case BatchOperationResetActivities_Type_case: + return "BatchOperationResetActivitiesTypeCase" + case BatchOperationResetActivities_MatchAll_case: + return "BatchOperationResetActivitiesMatchAllCase" + default: + return strconv.Itoa(int(x)) + } + +} + +type isBatchOperationResetActivities_Activity interface { + isBatchOperationResetActivities_Activity() +} + +type batchOperationResetActivities_Type struct { + Type string `protobuf:"bytes,2,opt,name=type,proto3,oneof"` +} + +type batchOperationResetActivities_MatchAll struct { + MatchAll bool `protobuf:"varint,3,opt,name=match_all,json=matchAll,proto3,oneof"` +} + +func (*batchOperationResetActivities_Type) isBatchOperationResetActivities_Activity() {} + +func (*batchOperationResetActivities_MatchAll) isBatchOperationResetActivities_Activity() {} + +// BatchOperationUpdateActivityOptions sends an update-activity-options requests in a batch. +// NOTE: keep in sync with temporal.api.workflowservice.v1.UpdateActivityRequest +type BatchOperationUpdateActivityOptions struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Identity string `protobuf:"bytes,1,opt,name=identity,proto3"` + xxx_hidden_Activity isBatchOperationUpdateActivityOptions_Activity `protobuf_oneof:"activity"` + xxx_hidden_ActivityOptions *v14.ActivityOptions `protobuf:"bytes,4,opt,name=activity_options,json=activityOptions,proto3"` + xxx_hidden_UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,5,opt,name=update_mask,json=updateMask,proto3"` + xxx_hidden_RestoreOriginal bool `protobuf:"varint,6,opt,name=restore_original,json=restoreOriginal,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *BatchOperationUpdateActivityOptions) Reset() { + *x = BatchOperationUpdateActivityOptions{} + mi := &file_temporal_api_batch_v1_message_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *BatchOperationUpdateActivityOptions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BatchOperationUpdateActivityOptions) ProtoMessage() {} + +func (x *BatchOperationUpdateActivityOptions) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_batch_v1_message_proto_msgTypes[10] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *BatchOperationUpdateActivityOptions) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *BatchOperationUpdateActivityOptions) GetType() string { + if x != nil { + if x, ok := x.xxx_hidden_Activity.(*batchOperationUpdateActivityOptions_Type); ok { + return x.Type + } + } + return "" +} + +func (x *BatchOperationUpdateActivityOptions) GetMatchAll() bool { + if x != nil { + if x, ok := x.xxx_hidden_Activity.(*batchOperationUpdateActivityOptions_MatchAll); ok { + return x.MatchAll + } + } + return false +} + +func (x *BatchOperationUpdateActivityOptions) GetActivityOptions() *v14.ActivityOptions { + if x != nil { + return x.xxx_hidden_ActivityOptions + } + return nil +} + +func (x *BatchOperationUpdateActivityOptions) GetUpdateMask() *fieldmaskpb.FieldMask { + if x != nil { + return x.xxx_hidden_UpdateMask + } + return nil +} + +func (x *BatchOperationUpdateActivityOptions) GetRestoreOriginal() bool { + if x != nil { + return x.xxx_hidden_RestoreOriginal + } + return false +} + +func (x *BatchOperationUpdateActivityOptions) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *BatchOperationUpdateActivityOptions) SetType(v string) { + x.xxx_hidden_Activity = &batchOperationUpdateActivityOptions_Type{v} +} + +func (x *BatchOperationUpdateActivityOptions) SetMatchAll(v bool) { + x.xxx_hidden_Activity = &batchOperationUpdateActivityOptions_MatchAll{v} +} + +func (x *BatchOperationUpdateActivityOptions) SetActivityOptions(v *v14.ActivityOptions) { + x.xxx_hidden_ActivityOptions = v +} + +func (x *BatchOperationUpdateActivityOptions) SetUpdateMask(v *fieldmaskpb.FieldMask) { + x.xxx_hidden_UpdateMask = v +} + +func (x *BatchOperationUpdateActivityOptions) SetRestoreOriginal(v bool) { + x.xxx_hidden_RestoreOriginal = v +} + +func (x *BatchOperationUpdateActivityOptions) HasActivity() bool { + if x == nil { + return false + } + return x.xxx_hidden_Activity != nil +} + +func (x *BatchOperationUpdateActivityOptions) HasType() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Activity.(*batchOperationUpdateActivityOptions_Type) + return ok +} + +func (x *BatchOperationUpdateActivityOptions) HasMatchAll() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Activity.(*batchOperationUpdateActivityOptions_MatchAll) + return ok +} + +func (x *BatchOperationUpdateActivityOptions) HasActivityOptions() bool { + if x == nil { + return false + } + return x.xxx_hidden_ActivityOptions != nil +} + +func (x *BatchOperationUpdateActivityOptions) HasUpdateMask() bool { + if x == nil { + return false + } + return x.xxx_hidden_UpdateMask != nil +} + +func (x *BatchOperationUpdateActivityOptions) ClearActivity() { + x.xxx_hidden_Activity = nil +} + +func (x *BatchOperationUpdateActivityOptions) ClearType() { + if _, ok := x.xxx_hidden_Activity.(*batchOperationUpdateActivityOptions_Type); ok { + x.xxx_hidden_Activity = nil + } +} + +func (x *BatchOperationUpdateActivityOptions) ClearMatchAll() { + if _, ok := x.xxx_hidden_Activity.(*batchOperationUpdateActivityOptions_MatchAll); ok { + x.xxx_hidden_Activity = nil + } +} + +func (x *BatchOperationUpdateActivityOptions) ClearActivityOptions() { + x.xxx_hidden_ActivityOptions = nil +} + +func (x *BatchOperationUpdateActivityOptions) ClearUpdateMask() { + x.xxx_hidden_UpdateMask = nil +} + +const BatchOperationUpdateActivityOptions_Activity_not_set_case case_BatchOperationUpdateActivityOptions_Activity = 0 +const BatchOperationUpdateActivityOptions_Type_case case_BatchOperationUpdateActivityOptions_Activity = 2 +const BatchOperationUpdateActivityOptions_MatchAll_case case_BatchOperationUpdateActivityOptions_Activity = 3 + +func (x *BatchOperationUpdateActivityOptions) WhichActivity() case_BatchOperationUpdateActivityOptions_Activity { + if x == nil { + return BatchOperationUpdateActivityOptions_Activity_not_set_case + } + switch x.xxx_hidden_Activity.(type) { + case *batchOperationUpdateActivityOptions_Type: + return BatchOperationUpdateActivityOptions_Type_case + case *batchOperationUpdateActivityOptions_MatchAll: + return BatchOperationUpdateActivityOptions_MatchAll_case + default: + return BatchOperationUpdateActivityOptions_Activity_not_set_case + } +} + +type BatchOperationUpdateActivityOptions_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The identity of the worker/client. + Identity string + // The activity to update. If match_all is set to true, all activities will be updated. + + // Fields of oneof xxx_hidden_Activity: + Type *string + MatchAll *bool + // -- end of xxx_hidden_Activity + // Update Activity options. Partial updates are accepted and controlled by update_mask. + ActivityOptions *v14.ActivityOptions + // Controls which fields from `activity_options` will be applied + UpdateMask *fieldmaskpb.FieldMask + // If set, the activity options will be restored to the default. + // Default options are then options activity was created with. + // They are part of the first ActivityTaskScheduled event. + // This flag cannot be combined with any other option; if you supply + // restore_original together with other options, the request will be rejected. + RestoreOriginal bool +} + +func (b0 BatchOperationUpdateActivityOptions_builder) Build() *BatchOperationUpdateActivityOptions { + m0 := &BatchOperationUpdateActivityOptions{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Identity = b.Identity + if b.Type != nil { + x.xxx_hidden_Activity = &batchOperationUpdateActivityOptions_Type{*b.Type} + } + if b.MatchAll != nil { + x.xxx_hidden_Activity = &batchOperationUpdateActivityOptions_MatchAll{*b.MatchAll} + } + x.xxx_hidden_ActivityOptions = b.ActivityOptions + x.xxx_hidden_UpdateMask = b.UpdateMask + x.xxx_hidden_RestoreOriginal = b.RestoreOriginal + return m0 +} + +type case_BatchOperationUpdateActivityOptions_Activity protoreflect.FieldNumber + +func (x case_BatchOperationUpdateActivityOptions_Activity) String() string { + switch x { + case BatchOperationUpdateActivityOptions_Activity_not_set_case: + return "BatchOperationUpdateActivityOptionsActivityNotSetCase" + case BatchOperationUpdateActivityOptions_Type_case: + return "BatchOperationUpdateActivityOptionsTypeCase" + case BatchOperationUpdateActivityOptions_MatchAll_case: + return "BatchOperationUpdateActivityOptionsMatchAllCase" + default: + return strconv.Itoa(int(x)) + } + +} + +type isBatchOperationUpdateActivityOptions_Activity interface { + isBatchOperationUpdateActivityOptions_Activity() +} + +type batchOperationUpdateActivityOptions_Type struct { + Type string `protobuf:"bytes,2,opt,name=type,proto3,oneof"` +} + +type batchOperationUpdateActivityOptions_MatchAll struct { + MatchAll bool `protobuf:"varint,3,opt,name=match_all,json=matchAll,proto3,oneof"` +} + +func (*batchOperationUpdateActivityOptions_Type) isBatchOperationUpdateActivityOptions_Activity() {} + +func (*batchOperationUpdateActivityOptions_MatchAll) isBatchOperationUpdateActivityOptions_Activity() { +} + +var File_temporal_api_batch_v1_message_proto protoreflect.FileDescriptor + +const file_temporal_api_batch_v1_message_proto_rawDesc = "" + + "\n" + + "#temporal/api/batch/v1/message.proto\x12\x15temporal.api.batch.v1\x1a\x1egoogle/protobuf/duration.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a&temporal/api/activity/v1/message.proto\x1a$temporal/api/common/v1/message.proto\x1a+temporal/api/enums/v1/batch_operation.proto\x1a!temporal/api/enums/v1/reset.proto\x1a#temporal/api/rules/v1/message.proto\x1a&temporal/api/workflow/v1/message.proto\"\xe3\x01\n" + + "\x12BatchOperationInfo\x12\x15\n" + + "\x06job_id\x18\x01 \x01(\tR\x05jobId\x12@\n" + + "\x05state\x18\x02 \x01(\x0e2*.temporal.api.enums.v1.BatchOperationStateR\x05state\x129\n" + + "\n" + + "start_time\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\tstartTime\x129\n" + + "\n" + + "close_time\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\tcloseTime\"s\n" + + "\x19BatchOperationTermination\x12:\n" + + "\adetails\x18\x01 \x01(\v2 .temporal.api.common.v1.PayloadsR\adetails\x12\x1a\n" + + "\bidentity\x18\x02 \x01(\tR\bidentity\"\xba\x01\n" + + "\x14BatchOperationSignal\x12\x16\n" + + "\x06signal\x18\x01 \x01(\tR\x06signal\x126\n" + + "\x05input\x18\x02 \x01(\v2 .temporal.api.common.v1.PayloadsR\x05input\x126\n" + + "\x06header\x18\x03 \x01(\v2\x1e.temporal.api.common.v1.HeaderR\x06header\x12\x1a\n" + + "\bidentity\x18\x04 \x01(\tR\bidentity\"8\n" + + "\x1aBatchOperationCancellation\x12\x1a\n" + + "\bidentity\x18\x01 \x01(\tR\bidentity\"4\n" + + "\x16BatchOperationDeletion\x12\x1a\n" + + "\bidentity\x18\x01 \x01(\tR\bidentity\"\xf3\x02\n" + + "\x13BatchOperationReset\x12\x1a\n" + + "\bidentity\x18\x03 \x01(\tR\bidentity\x12>\n" + + "\aoptions\x18\x04 \x01(\v2$.temporal.api.common.v1.ResetOptionsR\aoptions\x12C\n" + + "\n" + + "reset_type\x18\x01 \x01(\x0e2 .temporal.api.enums.v1.ResetTypeB\x02\x18\x01R\tresetType\x12Y\n" + + "\x12reset_reapply_type\x18\x02 \x01(\x0e2'.temporal.api.enums.v1.ResetReapplyTypeB\x02\x18\x01R\x10resetReapplyType\x12`\n" + + "\x15post_reset_operations\x18\x05 \x03(\v2,.temporal.api.workflow.v1.PostResetOperationR\x13postResetOperations\"\xf9\x01\n" + + ",BatchOperationUpdateWorkflowExecutionOptions\x12\x1a\n" + + "\bidentity\x18\x01 \x01(\tR\bidentity\x12p\n" + + "\x1aworkflow_execution_options\x18\x02 \x01(\v22.temporal.api.workflow.v1.WorkflowExecutionOptionsR\x18workflowExecutionOptions\x12;\n" + + "\vupdate_mask\x18\x03 \x01(\v2\x1a.google.protobuf.FieldMaskR\n" + + "updateMask\"\x81\x02\n" + + "\x1fBatchOperationUnpauseActivities\x12\x1a\n" + + "\bidentity\x18\x01 \x01(\tR\bidentity\x12\x14\n" + + "\x04type\x18\x02 \x01(\tH\x00R\x04type\x12\x1d\n" + + "\tmatch_all\x18\x03 \x01(\bH\x00R\bmatchAll\x12%\n" + + "\x0ereset_attempts\x18\x04 \x01(\bR\rresetAttempts\x12'\n" + + "\x0freset_heartbeat\x18\x05 \x01(\bR\x0eresetHeartbeat\x121\n" + + "\x06jitter\x18\x06 \x01(\v2\x19.google.protobuf.DurationR\x06jitterB\n" + + "\n" + + "\bactivity\"\x98\x01\n" + + "!BatchOperationTriggerWorkflowRule\x12\x1a\n" + + "\bidentity\x18\x01 \x01(\tR\bidentity\x12\x10\n" + + "\x02id\x18\x02 \x01(\tH\x00R\x02id\x12=\n" + + "\x04spec\x18\x03 \x01(\v2'.temporal.api.rules.v1.WorkflowRuleSpecH\x00R\x04specB\x06\n" + + "\x04rule\"\xda\x02\n" + + "\x1dBatchOperationResetActivities\x12\x1a\n" + + "\bidentity\x18\x01 \x01(\tR\bidentity\x12\x14\n" + + "\x04type\x18\x02 \x01(\tH\x00R\x04type\x12\x1d\n" + + "\tmatch_all\x18\x03 \x01(\bH\x00R\bmatchAll\x12%\n" + + "\x0ereset_attempts\x18\x04 \x01(\bR\rresetAttempts\x12'\n" + + "\x0freset_heartbeat\x18\x05 \x01(\bR\x0eresetHeartbeat\x12\x1f\n" + + "\vkeep_paused\x18\x06 \x01(\bR\n" + + "keepPaused\x121\n" + + "\x06jitter\x18\a \x01(\v2\x19.google.protobuf.DurationR\x06jitter\x128\n" + + "\x18restore_original_options\x18\b \x01(\bR\x16restoreOriginalOptionsB\n" + + "\n" + + "\bactivity\"\xc0\x02\n" + + "#BatchOperationUpdateActivityOptions\x12\x1a\n" + + "\bidentity\x18\x01 \x01(\tR\bidentity\x12\x14\n" + + "\x04type\x18\x02 \x01(\tH\x00R\x04type\x12\x1d\n" + + "\tmatch_all\x18\x03 \x01(\bH\x00R\bmatchAll\x12T\n" + + "\x10activity_options\x18\x04 \x01(\v2).temporal.api.activity.v1.ActivityOptionsR\x0factivityOptions\x12;\n" + + "\vupdate_mask\x18\x05 \x01(\v2\x1a.google.protobuf.FieldMaskR\n" + + "updateMask\x12)\n" + + "\x10restore_original\x18\x06 \x01(\bR\x0frestoreOriginalB\n" + + "\n" + + "\bactivityB\x84\x01\n" + + "\x18io.temporal.api.batch.v1B\fMessageProtoP\x01Z!go.temporal.io/api/batch/v1;batch\xaa\x02\x17Temporalio.Api.Batch.V1\xea\x02\x1aTemporalio::Api::Batch::V1b\x06proto3" + +var file_temporal_api_batch_v1_message_proto_msgTypes = make([]protoimpl.MessageInfo, 11) +var file_temporal_api_batch_v1_message_proto_goTypes = []any{ + (*BatchOperationInfo)(nil), // 0: temporal.api.batch.v1.BatchOperationInfo + (*BatchOperationTermination)(nil), // 1: temporal.api.batch.v1.BatchOperationTermination + (*BatchOperationSignal)(nil), // 2: temporal.api.batch.v1.BatchOperationSignal + (*BatchOperationCancellation)(nil), // 3: temporal.api.batch.v1.BatchOperationCancellation + (*BatchOperationDeletion)(nil), // 4: temporal.api.batch.v1.BatchOperationDeletion + (*BatchOperationReset)(nil), // 5: temporal.api.batch.v1.BatchOperationReset + (*BatchOperationUpdateWorkflowExecutionOptions)(nil), // 6: temporal.api.batch.v1.BatchOperationUpdateWorkflowExecutionOptions + (*BatchOperationUnpauseActivities)(nil), // 7: temporal.api.batch.v1.BatchOperationUnpauseActivities + (*BatchOperationTriggerWorkflowRule)(nil), // 8: temporal.api.batch.v1.BatchOperationTriggerWorkflowRule + (*BatchOperationResetActivities)(nil), // 9: temporal.api.batch.v1.BatchOperationResetActivities + (*BatchOperationUpdateActivityOptions)(nil), // 10: temporal.api.batch.v1.BatchOperationUpdateActivityOptions + (v1.BatchOperationState)(0), // 11: temporal.api.enums.v1.BatchOperationState + (*timestamppb.Timestamp)(nil), // 12: google.protobuf.Timestamp + (*v11.Payloads)(nil), // 13: temporal.api.common.v1.Payloads + (*v11.Header)(nil), // 14: temporal.api.common.v1.Header + (*v11.ResetOptions)(nil), // 15: temporal.api.common.v1.ResetOptions + (v1.ResetType)(0), // 16: temporal.api.enums.v1.ResetType + (v1.ResetReapplyType)(0), // 17: temporal.api.enums.v1.ResetReapplyType + (*v12.PostResetOperation)(nil), // 18: temporal.api.workflow.v1.PostResetOperation + (*v12.WorkflowExecutionOptions)(nil), // 19: temporal.api.workflow.v1.WorkflowExecutionOptions + (*fieldmaskpb.FieldMask)(nil), // 20: google.protobuf.FieldMask + (*durationpb.Duration)(nil), // 21: google.protobuf.Duration + (*v13.WorkflowRuleSpec)(nil), // 22: temporal.api.rules.v1.WorkflowRuleSpec + (*v14.ActivityOptions)(nil), // 23: temporal.api.activity.v1.ActivityOptions +} +var file_temporal_api_batch_v1_message_proto_depIdxs = []int32{ + 11, // 0: temporal.api.batch.v1.BatchOperationInfo.state:type_name -> temporal.api.enums.v1.BatchOperationState + 12, // 1: temporal.api.batch.v1.BatchOperationInfo.start_time:type_name -> google.protobuf.Timestamp + 12, // 2: temporal.api.batch.v1.BatchOperationInfo.close_time:type_name -> google.protobuf.Timestamp + 13, // 3: temporal.api.batch.v1.BatchOperationTermination.details:type_name -> temporal.api.common.v1.Payloads + 13, // 4: temporal.api.batch.v1.BatchOperationSignal.input:type_name -> temporal.api.common.v1.Payloads + 14, // 5: temporal.api.batch.v1.BatchOperationSignal.header:type_name -> temporal.api.common.v1.Header + 15, // 6: temporal.api.batch.v1.BatchOperationReset.options:type_name -> temporal.api.common.v1.ResetOptions + 16, // 7: temporal.api.batch.v1.BatchOperationReset.reset_type:type_name -> temporal.api.enums.v1.ResetType + 17, // 8: temporal.api.batch.v1.BatchOperationReset.reset_reapply_type:type_name -> temporal.api.enums.v1.ResetReapplyType + 18, // 9: temporal.api.batch.v1.BatchOperationReset.post_reset_operations:type_name -> temporal.api.workflow.v1.PostResetOperation + 19, // 10: temporal.api.batch.v1.BatchOperationUpdateWorkflowExecutionOptions.workflow_execution_options:type_name -> temporal.api.workflow.v1.WorkflowExecutionOptions + 20, // 11: temporal.api.batch.v1.BatchOperationUpdateWorkflowExecutionOptions.update_mask:type_name -> google.protobuf.FieldMask + 21, // 12: temporal.api.batch.v1.BatchOperationUnpauseActivities.jitter:type_name -> google.protobuf.Duration + 22, // 13: temporal.api.batch.v1.BatchOperationTriggerWorkflowRule.spec:type_name -> temporal.api.rules.v1.WorkflowRuleSpec + 21, // 14: temporal.api.batch.v1.BatchOperationResetActivities.jitter:type_name -> google.protobuf.Duration + 23, // 15: temporal.api.batch.v1.BatchOperationUpdateActivityOptions.activity_options:type_name -> temporal.api.activity.v1.ActivityOptions + 20, // 16: temporal.api.batch.v1.BatchOperationUpdateActivityOptions.update_mask:type_name -> google.protobuf.FieldMask + 17, // [17:17] is the sub-list for method output_type + 17, // [17:17] is the sub-list for method input_type + 17, // [17:17] is the sub-list for extension type_name + 17, // [17:17] is the sub-list for extension extendee + 0, // [0:17] is the sub-list for field type_name +} + +func init() { file_temporal_api_batch_v1_message_proto_init() } +func file_temporal_api_batch_v1_message_proto_init() { + if File_temporal_api_batch_v1_message_proto != nil { + return + } + file_temporal_api_batch_v1_message_proto_msgTypes[7].OneofWrappers = []any{ + (*batchOperationUnpauseActivities_Type)(nil), + (*batchOperationUnpauseActivities_MatchAll)(nil), + } + file_temporal_api_batch_v1_message_proto_msgTypes[8].OneofWrappers = []any{ + (*batchOperationTriggerWorkflowRule_Id)(nil), + (*batchOperationTriggerWorkflowRule_Spec)(nil), + } + file_temporal_api_batch_v1_message_proto_msgTypes[9].OneofWrappers = []any{ + (*batchOperationResetActivities_Type)(nil), + (*batchOperationResetActivities_MatchAll)(nil), + } + file_temporal_api_batch_v1_message_proto_msgTypes[10].OneofWrappers = []any{ + (*batchOperationUpdateActivityOptions_Type)(nil), + (*batchOperationUpdateActivityOptions_MatchAll)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_api_batch_v1_message_proto_rawDesc), len(file_temporal_api_batch_v1_message_proto_rawDesc)), + NumEnums: 0, + NumMessages: 11, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_temporal_api_batch_v1_message_proto_goTypes, + DependencyIndexes: file_temporal_api_batch_v1_message_proto_depIdxs, + MessageInfos: file_temporal_api_batch_v1_message_proto_msgTypes, + }.Build() + File_temporal_api_batch_v1_message_proto = out.File + file_temporal_api_batch_v1_message_proto_goTypes = nil + file_temporal_api_batch_v1_message_proto_depIdxs = nil +} diff --git a/cmd/protogen/main.go b/cmd/protogen/main.go index 08babfdc..567bde04 100644 --- a/cmd/protogen/main.go +++ b/cmd/protogen/main.go @@ -119,6 +119,9 @@ func runProtoc(ctx context.Context, cfg genConfig, protoDirs []string) error { } if cfg.outputDescriptorPath == "" { args = append(args, fmt.Sprintf("--go_out=paths=source_relative:%s", cfg.outputDir)) + // Enable Hybrid API for gradual migration to Opaque API + // See: https://go.dev/blog/protobuf-opaque + args = append(args, "--go_opt=default_api_level=API_HYBRID") } else { args = append(args, "--include_imports") args = append(args, "--include_source_info") diff --git a/command/v1/message.pb.go b/command/v1/message.pb.go index 31b3d2c3..1fcf124c 100644 --- a/command/v1/message.pb.go +++ b/command/v1/message.pb.go @@ -4,11 +4,13 @@ // protoc // source: temporal/api/command/v1/message.proto +//go:build !protoopaque + package command import ( reflect "reflect" - sync "sync" + "strconv" unsafe "unsafe" v1 "go.temporal.io/api/common/v1" @@ -29,7 +31,7 @@ const ( ) type ScheduleActivityTaskCommandAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` ActivityId string `protobuf:"bytes,1,opt,name=activity_id,json=activityId,proto3" json:"activity_id,omitempty"` ActivityType *v1.ActivityType `protobuf:"bytes,2,opt,name=activity_type,json=activityType,proto3" json:"activity_type,omitempty"` TaskQueue *v11.TaskQueue `protobuf:"bytes,4,opt,name=task_queue,json=taskQueue,proto3" json:"task_queue,omitempty"` @@ -107,11 +109,6 @@ func (x *ScheduleActivityTaskCommandAttributes) ProtoReflect() protoreflect.Mess return mi.MessageOf(x) } -// Deprecated: Use ScheduleActivityTaskCommandAttributes.ProtoReflect.Descriptor instead. -func (*ScheduleActivityTaskCommandAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_command_v1_message_proto_rawDescGZIP(), []int{0} -} - func (x *ScheduleActivityTaskCommandAttributes) GetActivityId() string { if x != nil { return x.ActivityId @@ -203,8 +200,243 @@ func (x *ScheduleActivityTaskCommandAttributes) GetPriority() *v1.Priority { return nil } +func (x *ScheduleActivityTaskCommandAttributes) SetActivityId(v string) { + x.ActivityId = v +} + +func (x *ScheduleActivityTaskCommandAttributes) SetActivityType(v *v1.ActivityType) { + x.ActivityType = v +} + +func (x *ScheduleActivityTaskCommandAttributes) SetTaskQueue(v *v11.TaskQueue) { + x.TaskQueue = v +} + +func (x *ScheduleActivityTaskCommandAttributes) SetHeader(v *v1.Header) { + x.Header = v +} + +func (x *ScheduleActivityTaskCommandAttributes) SetInput(v *v1.Payloads) { + x.Input = v +} + +func (x *ScheduleActivityTaskCommandAttributes) SetScheduleToCloseTimeout(v *durationpb.Duration) { + x.ScheduleToCloseTimeout = v +} + +func (x *ScheduleActivityTaskCommandAttributes) SetScheduleToStartTimeout(v *durationpb.Duration) { + x.ScheduleToStartTimeout = v +} + +func (x *ScheduleActivityTaskCommandAttributes) SetStartToCloseTimeout(v *durationpb.Duration) { + x.StartToCloseTimeout = v +} + +func (x *ScheduleActivityTaskCommandAttributes) SetHeartbeatTimeout(v *durationpb.Duration) { + x.HeartbeatTimeout = v +} + +func (x *ScheduleActivityTaskCommandAttributes) SetRetryPolicy(v *v1.RetryPolicy) { + x.RetryPolicy = v +} + +func (x *ScheduleActivityTaskCommandAttributes) SetRequestEagerExecution(v bool) { + x.RequestEagerExecution = v +} + +func (x *ScheduleActivityTaskCommandAttributes) SetUseWorkflowBuildId(v bool) { + x.UseWorkflowBuildId = v +} + +func (x *ScheduleActivityTaskCommandAttributes) SetPriority(v *v1.Priority) { + x.Priority = v +} + +func (x *ScheduleActivityTaskCommandAttributes) HasActivityType() bool { + if x == nil { + return false + } + return x.ActivityType != nil +} + +func (x *ScheduleActivityTaskCommandAttributes) HasTaskQueue() bool { + if x == nil { + return false + } + return x.TaskQueue != nil +} + +func (x *ScheduleActivityTaskCommandAttributes) HasHeader() bool { + if x == nil { + return false + } + return x.Header != nil +} + +func (x *ScheduleActivityTaskCommandAttributes) HasInput() bool { + if x == nil { + return false + } + return x.Input != nil +} + +func (x *ScheduleActivityTaskCommandAttributes) HasScheduleToCloseTimeout() bool { + if x == nil { + return false + } + return x.ScheduleToCloseTimeout != nil +} + +func (x *ScheduleActivityTaskCommandAttributes) HasScheduleToStartTimeout() bool { + if x == nil { + return false + } + return x.ScheduleToStartTimeout != nil +} + +func (x *ScheduleActivityTaskCommandAttributes) HasStartToCloseTimeout() bool { + if x == nil { + return false + } + return x.StartToCloseTimeout != nil +} + +func (x *ScheduleActivityTaskCommandAttributes) HasHeartbeatTimeout() bool { + if x == nil { + return false + } + return x.HeartbeatTimeout != nil +} + +func (x *ScheduleActivityTaskCommandAttributes) HasRetryPolicy() bool { + if x == nil { + return false + } + return x.RetryPolicy != nil +} + +func (x *ScheduleActivityTaskCommandAttributes) HasPriority() bool { + if x == nil { + return false + } + return x.Priority != nil +} + +func (x *ScheduleActivityTaskCommandAttributes) ClearActivityType() { + x.ActivityType = nil +} + +func (x *ScheduleActivityTaskCommandAttributes) ClearTaskQueue() { + x.TaskQueue = nil +} + +func (x *ScheduleActivityTaskCommandAttributes) ClearHeader() { + x.Header = nil +} + +func (x *ScheduleActivityTaskCommandAttributes) ClearInput() { + x.Input = nil +} + +func (x *ScheduleActivityTaskCommandAttributes) ClearScheduleToCloseTimeout() { + x.ScheduleToCloseTimeout = nil +} + +func (x *ScheduleActivityTaskCommandAttributes) ClearScheduleToStartTimeout() { + x.ScheduleToStartTimeout = nil +} + +func (x *ScheduleActivityTaskCommandAttributes) ClearStartToCloseTimeout() { + x.StartToCloseTimeout = nil +} + +func (x *ScheduleActivityTaskCommandAttributes) ClearHeartbeatTimeout() { + x.HeartbeatTimeout = nil +} + +func (x *ScheduleActivityTaskCommandAttributes) ClearRetryPolicy() { + x.RetryPolicy = nil +} + +func (x *ScheduleActivityTaskCommandAttributes) ClearPriority() { + x.Priority = nil +} + +type ScheduleActivityTaskCommandAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ActivityId string + ActivityType *v1.ActivityType + TaskQueue *v11.TaskQueue + Header *v1.Header + Input *v1.Payloads + // Indicates how long the caller is willing to wait for activity completion. The "schedule" time + // is when the activity is initially scheduled, not when the most recent retry is scheduled. + // Limits how long retries will be attempted. Either this or `start_to_close_timeout` must be + // specified. When not specified, defaults to the workflow execution timeout. + // + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + ScheduleToCloseTimeout *durationpb.Duration + // Limits the time an activity task can stay in a task queue before a worker picks it up. The + // "schedule" time is when the most recent retry is scheduled. This timeout should usually not + // be set: it's useful in specific scenarios like worker-specific task queues. This timeout is + // always non retryable, as all a retry would achieve is to put it back into the same queue. + // Defaults to `schedule_to_close_timeout` or workflow execution timeout if that is not + // specified. More info: + // https://docs.temporal.io/docs/content/what-is-a-schedule-to-start-timeout/ + // + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + ScheduleToStartTimeout *durationpb.Duration + // Maximum time an activity is allowed to execute after being picked up by a worker. This + // timeout is always retryable. Either this or `schedule_to_close_timeout` must be specified. + // + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + StartToCloseTimeout *durationpb.Duration + // Maximum permitted time between successful worker heartbeats. + HeartbeatTimeout *durationpb.Duration + // Activities are provided by a default retry policy which is controlled through the service's + // dynamic configuration. Retries will be attempted until `schedule_to_close_timeout` has + // elapsed. To disable retries set retry_policy.maximum_attempts to 1. + RetryPolicy *v1.RetryPolicy + // Request to start the activity directly bypassing matching service and worker polling + // The slot for executing the activity should be reserved when setting this field to true. + RequestEagerExecution bool + // If this is set, the activity would be assigned to the Build ID of the workflow. Otherwise, + // Assignment rules of the activity's Task Queue will be used to determine the Build ID. + UseWorkflowBuildId bool + // Priority metadata. If this message is not present, or any fields are not + // present, they inherit the values from the workflow. + Priority *v1.Priority +} + +func (b0 ScheduleActivityTaskCommandAttributes_builder) Build() *ScheduleActivityTaskCommandAttributes { + m0 := &ScheduleActivityTaskCommandAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.ActivityId = b.ActivityId + x.ActivityType = b.ActivityType + x.TaskQueue = b.TaskQueue + x.Header = b.Header + x.Input = b.Input + x.ScheduleToCloseTimeout = b.ScheduleToCloseTimeout + x.ScheduleToStartTimeout = b.ScheduleToStartTimeout + x.StartToCloseTimeout = b.StartToCloseTimeout + x.HeartbeatTimeout = b.HeartbeatTimeout + x.RetryPolicy = b.RetryPolicy + x.RequestEagerExecution = b.RequestEagerExecution + x.UseWorkflowBuildId = b.UseWorkflowBuildId + x.Priority = b.Priority + return m0 +} + type RequestCancelActivityTaskCommandAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The `ACTIVITY_TASK_SCHEDULED` event id for the activity being cancelled. ScheduledEventId int64 `protobuf:"varint,1,opt,name=scheduled_event_id,json=scheduledEventId,proto3" json:"scheduled_event_id,omitempty"` unknownFields protoimpl.UnknownFields @@ -236,11 +468,6 @@ func (x *RequestCancelActivityTaskCommandAttributes) ProtoReflect() protoreflect return mi.MessageOf(x) } -// Deprecated: Use RequestCancelActivityTaskCommandAttributes.ProtoReflect.Descriptor instead. -func (*RequestCancelActivityTaskCommandAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_command_v1_message_proto_rawDescGZIP(), []int{1} -} - func (x *RequestCancelActivityTaskCommandAttributes) GetScheduledEventId() int64 { if x != nil { return x.ScheduledEventId @@ -248,8 +475,27 @@ func (x *RequestCancelActivityTaskCommandAttributes) GetScheduledEventId() int64 return 0 } +func (x *RequestCancelActivityTaskCommandAttributes) SetScheduledEventId(v int64) { + x.ScheduledEventId = v +} + +type RequestCancelActivityTaskCommandAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The `ACTIVITY_TASK_SCHEDULED` event id for the activity being cancelled. + ScheduledEventId int64 +} + +func (b0 RequestCancelActivityTaskCommandAttributes_builder) Build() *RequestCancelActivityTaskCommandAttributes { + m0 := &RequestCancelActivityTaskCommandAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.ScheduledEventId = b.ScheduledEventId + return m0 +} + type StartTimerCommandAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // An id for the timer, currently live timers must have different ids. Typically autogenerated // by the SDK. TimerId string `protobuf:"bytes,1,opt,name=timer_id,json=timerId,proto3" json:"timer_id,omitempty"` @@ -288,11 +534,6 @@ func (x *StartTimerCommandAttributes) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use StartTimerCommandAttributes.ProtoReflect.Descriptor instead. -func (*StartTimerCommandAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_command_v1_message_proto_rawDescGZIP(), []int{2} -} - func (x *StartTimerCommandAttributes) GetTimerId() string { if x != nil { return x.TimerId @@ -307,8 +548,50 @@ func (x *StartTimerCommandAttributes) GetStartToFireTimeout() *durationpb.Durati return nil } +func (x *StartTimerCommandAttributes) SetTimerId(v string) { + x.TimerId = v +} + +func (x *StartTimerCommandAttributes) SetStartToFireTimeout(v *durationpb.Duration) { + x.StartToFireTimeout = v +} + +func (x *StartTimerCommandAttributes) HasStartToFireTimeout() bool { + if x == nil { + return false + } + return x.StartToFireTimeout != nil +} + +func (x *StartTimerCommandAttributes) ClearStartToFireTimeout() { + x.StartToFireTimeout = nil +} + +type StartTimerCommandAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // An id for the timer, currently live timers must have different ids. Typically autogenerated + // by the SDK. + TimerId string + // How long until the timer fires, producing a `TIMER_FIRED` event. + // + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + StartToFireTimeout *durationpb.Duration +} + +func (b0 StartTimerCommandAttributes_builder) Build() *StartTimerCommandAttributes { + m0 := &StartTimerCommandAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.TimerId = b.TimerId + x.StartToFireTimeout = b.StartToFireTimeout + return m0 +} + type CompleteWorkflowExecutionCommandAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Result *v1.Payloads `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -339,11 +622,6 @@ func (x *CompleteWorkflowExecutionCommandAttributes) ProtoReflect() protoreflect return mi.MessageOf(x) } -// Deprecated: Use CompleteWorkflowExecutionCommandAttributes.ProtoReflect.Descriptor instead. -func (*CompleteWorkflowExecutionCommandAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_command_v1_message_proto_rawDescGZIP(), []int{3} -} - func (x *CompleteWorkflowExecutionCommandAttributes) GetResult() *v1.Payloads { if x != nil { return x.Result @@ -351,8 +629,37 @@ func (x *CompleteWorkflowExecutionCommandAttributes) GetResult() *v1.Payloads { return nil } +func (x *CompleteWorkflowExecutionCommandAttributes) SetResult(v *v1.Payloads) { + x.Result = v +} + +func (x *CompleteWorkflowExecutionCommandAttributes) HasResult() bool { + if x == nil { + return false + } + return x.Result != nil +} + +func (x *CompleteWorkflowExecutionCommandAttributes) ClearResult() { + x.Result = nil +} + +type CompleteWorkflowExecutionCommandAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Result *v1.Payloads +} + +func (b0 CompleteWorkflowExecutionCommandAttributes_builder) Build() *CompleteWorkflowExecutionCommandAttributes { + m0 := &CompleteWorkflowExecutionCommandAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.Result = b.Result + return m0 +} + type FailWorkflowExecutionCommandAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Failure *v12.Failure `protobuf:"bytes,1,opt,name=failure,proto3" json:"failure,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -383,11 +690,6 @@ func (x *FailWorkflowExecutionCommandAttributes) ProtoReflect() protoreflect.Mes return mi.MessageOf(x) } -// Deprecated: Use FailWorkflowExecutionCommandAttributes.ProtoReflect.Descriptor instead. -func (*FailWorkflowExecutionCommandAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_command_v1_message_proto_rawDescGZIP(), []int{4} -} - func (x *FailWorkflowExecutionCommandAttributes) GetFailure() *v12.Failure { if x != nil { return x.Failure @@ -395,8 +697,37 @@ func (x *FailWorkflowExecutionCommandAttributes) GetFailure() *v12.Failure { return nil } +func (x *FailWorkflowExecutionCommandAttributes) SetFailure(v *v12.Failure) { + x.Failure = v +} + +func (x *FailWorkflowExecutionCommandAttributes) HasFailure() bool { + if x == nil { + return false + } + return x.Failure != nil +} + +func (x *FailWorkflowExecutionCommandAttributes) ClearFailure() { + x.Failure = nil +} + +type FailWorkflowExecutionCommandAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Failure *v12.Failure +} + +func (b0 FailWorkflowExecutionCommandAttributes_builder) Build() *FailWorkflowExecutionCommandAttributes { + m0 := &FailWorkflowExecutionCommandAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.Failure = b.Failure + return m0 +} + type CancelTimerCommandAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The same timer id from the start timer command TimerId string `protobuf:"bytes,1,opt,name=timer_id,json=timerId,proto3" json:"timer_id,omitempty"` unknownFields protoimpl.UnknownFields @@ -428,11 +759,6 @@ func (x *CancelTimerCommandAttributes) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CancelTimerCommandAttributes.ProtoReflect.Descriptor instead. -func (*CancelTimerCommandAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_command_v1_message_proto_rawDescGZIP(), []int{5} -} - func (x *CancelTimerCommandAttributes) GetTimerId() string { if x != nil { return x.TimerId @@ -440,8 +766,27 @@ func (x *CancelTimerCommandAttributes) GetTimerId() string { return "" } +func (x *CancelTimerCommandAttributes) SetTimerId(v string) { + x.TimerId = v +} + +type CancelTimerCommandAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The same timer id from the start timer command + TimerId string +} + +func (b0 CancelTimerCommandAttributes_builder) Build() *CancelTimerCommandAttributes { + m0 := &CancelTimerCommandAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.TimerId = b.TimerId + return m0 +} + type CancelWorkflowExecutionCommandAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Details *v1.Payloads `protobuf:"bytes,1,opt,name=details,proto3" json:"details,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -472,11 +817,6 @@ func (x *CancelWorkflowExecutionCommandAttributes) ProtoReflect() protoreflect.M return mi.MessageOf(x) } -// Deprecated: Use CancelWorkflowExecutionCommandAttributes.ProtoReflect.Descriptor instead. -func (*CancelWorkflowExecutionCommandAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_command_v1_message_proto_rawDescGZIP(), []int{6} -} - func (x *CancelWorkflowExecutionCommandAttributes) GetDetails() *v1.Payloads { if x != nil { return x.Details @@ -484,8 +824,37 @@ func (x *CancelWorkflowExecutionCommandAttributes) GetDetails() *v1.Payloads { return nil } +func (x *CancelWorkflowExecutionCommandAttributes) SetDetails(v *v1.Payloads) { + x.Details = v +} + +func (x *CancelWorkflowExecutionCommandAttributes) HasDetails() bool { + if x == nil { + return false + } + return x.Details != nil +} + +func (x *CancelWorkflowExecutionCommandAttributes) ClearDetails() { + x.Details = nil +} + +type CancelWorkflowExecutionCommandAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Details *v1.Payloads +} + +func (b0 CancelWorkflowExecutionCommandAttributes_builder) Build() *CancelWorkflowExecutionCommandAttributes { + m0 := &CancelWorkflowExecutionCommandAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.Details = b.Details + return m0 +} + type RequestCancelExternalWorkflowExecutionCommandAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` WorkflowId string `protobuf:"bytes,2,opt,name=workflow_id,json=workflowId,proto3" json:"workflow_id,omitempty"` RunId string `protobuf:"bytes,3,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"` @@ -528,11 +897,6 @@ func (x *RequestCancelExternalWorkflowExecutionCommandAttributes) ProtoReflect() return mi.MessageOf(x) } -// Deprecated: Use RequestCancelExternalWorkflowExecutionCommandAttributes.ProtoReflect.Descriptor instead. -func (*RequestCancelExternalWorkflowExecutionCommandAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_command_v1_message_proto_rawDescGZIP(), []int{7} -} - func (x *RequestCancelExternalWorkflowExecutionCommandAttributes) GetNamespace() string { if x != nil { return x.Namespace @@ -576,8 +940,64 @@ func (x *RequestCancelExternalWorkflowExecutionCommandAttributes) GetReason() st return "" } +func (x *RequestCancelExternalWorkflowExecutionCommandAttributes) SetNamespace(v string) { + x.Namespace = v +} + +func (x *RequestCancelExternalWorkflowExecutionCommandAttributes) SetWorkflowId(v string) { + x.WorkflowId = v +} + +func (x *RequestCancelExternalWorkflowExecutionCommandAttributes) SetRunId(v string) { + x.RunId = v +} + +// Deprecated: Marked as deprecated in temporal/api/command/v1/message.proto. +func (x *RequestCancelExternalWorkflowExecutionCommandAttributes) SetControl(v string) { + x.Control = v +} + +func (x *RequestCancelExternalWorkflowExecutionCommandAttributes) SetChildWorkflowOnly(v bool) { + x.ChildWorkflowOnly = v +} + +func (x *RequestCancelExternalWorkflowExecutionCommandAttributes) SetReason(v string) { + x.Reason = v +} + +type RequestCancelExternalWorkflowExecutionCommandAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + WorkflowId string + RunId string + // Deprecated. + // + // Deprecated: Marked as deprecated in temporal/api/command/v1/message.proto. + Control string + // Set this to true if the workflow being cancelled is a child of the workflow originating this + // command. The request will be rejected if it is set to true and the target workflow is *not* + // a child of the requesting workflow. + ChildWorkflowOnly bool + // Reason for requesting the cancellation + Reason string +} + +func (b0 RequestCancelExternalWorkflowExecutionCommandAttributes_builder) Build() *RequestCancelExternalWorkflowExecutionCommandAttributes { + m0 := &RequestCancelExternalWorkflowExecutionCommandAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.WorkflowId = b.WorkflowId + x.RunId = b.RunId + x.Control = b.Control + x.ChildWorkflowOnly = b.ChildWorkflowOnly + x.Reason = b.Reason + return m0 +} + type SignalExternalWorkflowExecutionCommandAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` Execution *v1.WorkflowExecution `protobuf:"bytes,2,opt,name=execution,proto3" json:"execution,omitempty"` // The workflow author-defined name of the signal to send to the workflow. @@ -624,11 +1044,6 @@ func (x *SignalExternalWorkflowExecutionCommandAttributes) ProtoReflect() protor return mi.MessageOf(x) } -// Deprecated: Use SignalExternalWorkflowExecutionCommandAttributes.ProtoReflect.Descriptor instead. -func (*SignalExternalWorkflowExecutionCommandAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_command_v1_message_proto_rawDescGZIP(), []int{8} -} - func (x *SignalExternalWorkflowExecutionCommandAttributes) GetNamespace() string { if x != nil { return x.Namespace @@ -679,52 +1094,174 @@ func (x *SignalExternalWorkflowExecutionCommandAttributes) GetHeader() *v1.Heade return nil } -type UpsertWorkflowSearchAttributesCommandAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` - SearchAttributes *v1.SearchAttributes `protobuf:"bytes,1,opt,name=search_attributes,json=searchAttributes,proto3" json:"search_attributes,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache +func (x *SignalExternalWorkflowExecutionCommandAttributes) SetNamespace(v string) { + x.Namespace = v } -func (x *UpsertWorkflowSearchAttributesCommandAttributes) Reset() { - *x = UpsertWorkflowSearchAttributesCommandAttributes{} - mi := &file_temporal_api_command_v1_message_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *SignalExternalWorkflowExecutionCommandAttributes) SetExecution(v *v1.WorkflowExecution) { + x.Execution = v } -func (x *UpsertWorkflowSearchAttributesCommandAttributes) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *SignalExternalWorkflowExecutionCommandAttributes) SetSignalName(v string) { + x.SignalName = v } -func (*UpsertWorkflowSearchAttributesCommandAttributes) ProtoMessage() {} +func (x *SignalExternalWorkflowExecutionCommandAttributes) SetInput(v *v1.Payloads) { + x.Input = v +} -func (x *UpsertWorkflowSearchAttributesCommandAttributes) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_command_v1_message_proto_msgTypes[9] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +// Deprecated: Marked as deprecated in temporal/api/command/v1/message.proto. +func (x *SignalExternalWorkflowExecutionCommandAttributes) SetControl(v string) { + x.Control = v } -// Deprecated: Use UpsertWorkflowSearchAttributesCommandAttributes.ProtoReflect.Descriptor instead. -func (*UpsertWorkflowSearchAttributesCommandAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_command_v1_message_proto_rawDescGZIP(), []int{9} +func (x *SignalExternalWorkflowExecutionCommandAttributes) SetChildWorkflowOnly(v bool) { + x.ChildWorkflowOnly = v } -func (x *UpsertWorkflowSearchAttributesCommandAttributes) GetSearchAttributes() *v1.SearchAttributes { +func (x *SignalExternalWorkflowExecutionCommandAttributes) SetHeader(v *v1.Header) { + x.Header = v +} + +func (x *SignalExternalWorkflowExecutionCommandAttributes) HasExecution() bool { + if x == nil { + return false + } + return x.Execution != nil +} + +func (x *SignalExternalWorkflowExecutionCommandAttributes) HasInput() bool { + if x == nil { + return false + } + return x.Input != nil +} + +func (x *SignalExternalWorkflowExecutionCommandAttributes) HasHeader() bool { + if x == nil { + return false + } + return x.Header != nil +} + +func (x *SignalExternalWorkflowExecutionCommandAttributes) ClearExecution() { + x.Execution = nil +} + +func (x *SignalExternalWorkflowExecutionCommandAttributes) ClearInput() { + x.Input = nil +} + +func (x *SignalExternalWorkflowExecutionCommandAttributes) ClearHeader() { + x.Header = nil +} + +type SignalExternalWorkflowExecutionCommandAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + Execution *v1.WorkflowExecution + // The workflow author-defined name of the signal to send to the workflow. + SignalName string + // Serialized value(s) to provide with the signal. + Input *v1.Payloads + // Deprecated + // + // Deprecated: Marked as deprecated in temporal/api/command/v1/message.proto. + Control string + // Set this to true if the workflow being cancelled is a child of the workflow originating this + // command. The request will be rejected if it is set to true and the target workflow is *not* + // a child of the requesting workflow. + ChildWorkflowOnly bool + // Headers that are passed by the workflow that is sending a signal to the external + // workflow that is receiving this signal. + Header *v1.Header +} + +func (b0 SignalExternalWorkflowExecutionCommandAttributes_builder) Build() *SignalExternalWorkflowExecutionCommandAttributes { + m0 := &SignalExternalWorkflowExecutionCommandAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.Execution = b.Execution + x.SignalName = b.SignalName + x.Input = b.Input + x.Control = b.Control + x.ChildWorkflowOnly = b.ChildWorkflowOnly + x.Header = b.Header + return m0 +} + +type UpsertWorkflowSearchAttributesCommandAttributes struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + SearchAttributes *v1.SearchAttributes `protobuf:"bytes,1,opt,name=search_attributes,json=searchAttributes,proto3" json:"search_attributes,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpsertWorkflowSearchAttributesCommandAttributes) Reset() { + *x = UpsertWorkflowSearchAttributesCommandAttributes{} + mi := &file_temporal_api_command_v1_message_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpsertWorkflowSearchAttributesCommandAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpsertWorkflowSearchAttributesCommandAttributes) ProtoMessage() {} + +func (x *UpsertWorkflowSearchAttributesCommandAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_command_v1_message_proto_msgTypes[9] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UpsertWorkflowSearchAttributesCommandAttributes) GetSearchAttributes() *v1.SearchAttributes { if x != nil { return x.SearchAttributes } return nil } +func (x *UpsertWorkflowSearchAttributesCommandAttributes) SetSearchAttributes(v *v1.SearchAttributes) { + x.SearchAttributes = v +} + +func (x *UpsertWorkflowSearchAttributesCommandAttributes) HasSearchAttributes() bool { + if x == nil { + return false + } + return x.SearchAttributes != nil +} + +func (x *UpsertWorkflowSearchAttributesCommandAttributes) ClearSearchAttributes() { + x.SearchAttributes = nil +} + +type UpsertWorkflowSearchAttributesCommandAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + SearchAttributes *v1.SearchAttributes +} + +func (b0 UpsertWorkflowSearchAttributesCommandAttributes_builder) Build() *UpsertWorkflowSearchAttributesCommandAttributes { + m0 := &UpsertWorkflowSearchAttributesCommandAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.SearchAttributes = b.SearchAttributes + return m0 +} + type ModifyWorkflowPropertiesCommandAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // If set, update the workflow memo with the provided values. The values will be merged with // the existing memo. If the user wants to delete values, a default/empty Payload should be // used as the value for the key being deleted. @@ -758,11 +1295,6 @@ func (x *ModifyWorkflowPropertiesCommandAttributes) ProtoReflect() protoreflect. return mi.MessageOf(x) } -// Deprecated: Use ModifyWorkflowPropertiesCommandAttributes.ProtoReflect.Descriptor instead. -func (*ModifyWorkflowPropertiesCommandAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_command_v1_message_proto_rawDescGZIP(), []int{10} -} - func (x *ModifyWorkflowPropertiesCommandAttributes) GetUpsertedMemo() *v1.Memo { if x != nil { return x.UpsertedMemo @@ -770,8 +1302,40 @@ func (x *ModifyWorkflowPropertiesCommandAttributes) GetUpsertedMemo() *v1.Memo { return nil } +func (x *ModifyWorkflowPropertiesCommandAttributes) SetUpsertedMemo(v *v1.Memo) { + x.UpsertedMemo = v +} + +func (x *ModifyWorkflowPropertiesCommandAttributes) HasUpsertedMemo() bool { + if x == nil { + return false + } + return x.UpsertedMemo != nil +} + +func (x *ModifyWorkflowPropertiesCommandAttributes) ClearUpsertedMemo() { + x.UpsertedMemo = nil +} + +type ModifyWorkflowPropertiesCommandAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // If set, update the workflow memo with the provided values. The values will be merged with + // the existing memo. If the user wants to delete values, a default/empty Payload should be + // used as the value for the key being deleted. + UpsertedMemo *v1.Memo +} + +func (b0 ModifyWorkflowPropertiesCommandAttributes_builder) Build() *ModifyWorkflowPropertiesCommandAttributes { + m0 := &ModifyWorkflowPropertiesCommandAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.UpsertedMemo = b.UpsertedMemo + return m0 +} + type RecordMarkerCommandAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` MarkerName string `protobuf:"bytes,1,opt,name=marker_name,json=markerName,proto3" json:"marker_name,omitempty"` Details map[string]*v1.Payloads `protobuf:"bytes,2,rep,name=details,proto3" json:"details,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` Header *v1.Header `protobuf:"bytes,3,opt,name=header,proto3" json:"header,omitempty"` @@ -805,11 +1369,6 @@ func (x *RecordMarkerCommandAttributes) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RecordMarkerCommandAttributes.ProtoReflect.Descriptor instead. -func (*RecordMarkerCommandAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_command_v1_message_proto_rawDescGZIP(), []int{11} -} - func (x *RecordMarkerCommandAttributes) GetMarkerName() string { if x != nil { return x.MarkerName @@ -838,8 +1397,66 @@ func (x *RecordMarkerCommandAttributes) GetFailure() *v12.Failure { return nil } +func (x *RecordMarkerCommandAttributes) SetMarkerName(v string) { + x.MarkerName = v +} + +func (x *RecordMarkerCommandAttributes) SetDetails(v map[string]*v1.Payloads) { + x.Details = v +} + +func (x *RecordMarkerCommandAttributes) SetHeader(v *v1.Header) { + x.Header = v +} + +func (x *RecordMarkerCommandAttributes) SetFailure(v *v12.Failure) { + x.Failure = v +} + +func (x *RecordMarkerCommandAttributes) HasHeader() bool { + if x == nil { + return false + } + return x.Header != nil +} + +func (x *RecordMarkerCommandAttributes) HasFailure() bool { + if x == nil { + return false + } + return x.Failure != nil +} + +func (x *RecordMarkerCommandAttributes) ClearHeader() { + x.Header = nil +} + +func (x *RecordMarkerCommandAttributes) ClearFailure() { + x.Failure = nil +} + +type RecordMarkerCommandAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + MarkerName string + Details map[string]*v1.Payloads + Header *v1.Header + Failure *v12.Failure +} + +func (b0 RecordMarkerCommandAttributes_builder) Build() *RecordMarkerCommandAttributes { + m0 := &RecordMarkerCommandAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.MarkerName = b.MarkerName + x.Details = b.Details + x.Header = b.Header + x.Failure = b.Failure + return m0 +} + type ContinueAsNewWorkflowExecutionCommandAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` WorkflowType *v1.WorkflowType `protobuf:"bytes,1,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type,omitempty"` TaskQueue *v11.TaskQueue `protobuf:"bytes,2,opt,name=task_queue,json=taskQueue,proto3" json:"task_queue,omitempty"` Input *v1.Payloads `protobuf:"bytes,3,opt,name=input,proto3" json:"input,omitempty"` @@ -900,11 +1517,6 @@ func (x *ContinueAsNewWorkflowExecutionCommandAttributes) ProtoReflect() protore return mi.MessageOf(x) } -// Deprecated: Use ContinueAsNewWorkflowExecutionCommandAttributes.ProtoReflect.Descriptor instead. -func (*ContinueAsNewWorkflowExecutionCommandAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_command_v1_message_proto_rawDescGZIP(), []int{12} -} - func (x *ContinueAsNewWorkflowExecutionCommandAttributes) GetWorkflowType() *v1.WorkflowType { if x != nil { return x.WorkflowType @@ -1018,8 +1630,264 @@ func (x *ContinueAsNewWorkflowExecutionCommandAttributes) GetInitialVersioningBe return v13.ContinueAsNewVersioningBehavior(0) } +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) SetWorkflowType(v *v1.WorkflowType) { + x.WorkflowType = v +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) SetTaskQueue(v *v11.TaskQueue) { + x.TaskQueue = v +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) SetInput(v *v1.Payloads) { + x.Input = v +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) SetWorkflowRunTimeout(v *durationpb.Duration) { + x.WorkflowRunTimeout = v +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) SetWorkflowTaskTimeout(v *durationpb.Duration) { + x.WorkflowTaskTimeout = v +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) SetBackoffStartInterval(v *durationpb.Duration) { + x.BackoffStartInterval = v +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) SetRetryPolicy(v *v1.RetryPolicy) { + x.RetryPolicy = v +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) SetInitiator(v v13.ContinueAsNewInitiator) { + x.Initiator = v +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) SetFailure(v *v12.Failure) { + x.Failure = v +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) SetLastCompletionResult(v *v1.Payloads) { + x.LastCompletionResult = v +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) SetCronSchedule(v string) { + x.CronSchedule = v +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) SetHeader(v *v1.Header) { + x.Header = v +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) SetMemo(v *v1.Memo) { + x.Memo = v +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) SetSearchAttributes(v *v1.SearchAttributes) { + x.SearchAttributes = v +} + +// Deprecated: Marked as deprecated in temporal/api/command/v1/message.proto. +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) SetInheritBuildId(v bool) { + x.InheritBuildId = v +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) SetInitialVersioningBehavior(v v13.ContinueAsNewVersioningBehavior) { + x.InitialVersioningBehavior = v +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) HasWorkflowType() bool { + if x == nil { + return false + } + return x.WorkflowType != nil +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) HasTaskQueue() bool { + if x == nil { + return false + } + return x.TaskQueue != nil +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) HasInput() bool { + if x == nil { + return false + } + return x.Input != nil +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) HasWorkflowRunTimeout() bool { + if x == nil { + return false + } + return x.WorkflowRunTimeout != nil +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) HasWorkflowTaskTimeout() bool { + if x == nil { + return false + } + return x.WorkflowTaskTimeout != nil +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) HasBackoffStartInterval() bool { + if x == nil { + return false + } + return x.BackoffStartInterval != nil +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) HasRetryPolicy() bool { + if x == nil { + return false + } + return x.RetryPolicy != nil +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) HasFailure() bool { + if x == nil { + return false + } + return x.Failure != nil +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) HasLastCompletionResult() bool { + if x == nil { + return false + } + return x.LastCompletionResult != nil +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) HasHeader() bool { + if x == nil { + return false + } + return x.Header != nil +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) HasMemo() bool { + if x == nil { + return false + } + return x.Memo != nil +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) HasSearchAttributes() bool { + if x == nil { + return false + } + return x.SearchAttributes != nil +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) ClearWorkflowType() { + x.WorkflowType = nil +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) ClearTaskQueue() { + x.TaskQueue = nil +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) ClearInput() { + x.Input = nil +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) ClearWorkflowRunTimeout() { + x.WorkflowRunTimeout = nil +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) ClearWorkflowTaskTimeout() { + x.WorkflowTaskTimeout = nil +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) ClearBackoffStartInterval() { + x.BackoffStartInterval = nil +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) ClearRetryPolicy() { + x.RetryPolicy = nil +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) ClearFailure() { + x.Failure = nil +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) ClearLastCompletionResult() { + x.LastCompletionResult = nil +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) ClearHeader() { + x.Header = nil +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) ClearMemo() { + x.Memo = nil +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) ClearSearchAttributes() { + x.SearchAttributes = nil +} + +type ContinueAsNewWorkflowExecutionCommandAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + WorkflowType *v1.WorkflowType + TaskQueue *v11.TaskQueue + Input *v1.Payloads + // Timeout of a single workflow run. + WorkflowRunTimeout *durationpb.Duration + // Timeout of a single workflow task. + WorkflowTaskTimeout *durationpb.Duration + // How long the workflow start will be delayed - not really a "backoff" in the traditional sense. + BackoffStartInterval *durationpb.Duration + RetryPolicy *v1.RetryPolicy + // Should be removed + Initiator v13.ContinueAsNewInitiator + // Should be removed + Failure *v12.Failure + // Should be removed + LastCompletionResult *v1.Payloads + // Should be removed. Not necessarily unused but unclear and not exposed by SDKs. + CronSchedule string + Header *v1.Header + Memo *v1.Memo + SearchAttributes *v1.SearchAttributes + // If this is set, the new execution inherits the Build ID of the current execution. Otherwise, + // the assignment rules will be used to independently assign a Build ID to the new execution. + // Deprecated. Only considered for versioning v0.2. + // + // Deprecated: Marked as deprecated in temporal/api/command/v1/message.proto. + InheritBuildId bool + // Experimental. Optionally decide the versioning behavior that the first task of the new run should use. + // For example, choose to AutoUpgrade on continue-as-new instead of inheriting the pinned version + // of the previous run. + InitialVersioningBehavior v13.ContinueAsNewVersioningBehavior +} + +func (b0 ContinueAsNewWorkflowExecutionCommandAttributes_builder) Build() *ContinueAsNewWorkflowExecutionCommandAttributes { + m0 := &ContinueAsNewWorkflowExecutionCommandAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.WorkflowType = b.WorkflowType + x.TaskQueue = b.TaskQueue + x.Input = b.Input + x.WorkflowRunTimeout = b.WorkflowRunTimeout + x.WorkflowTaskTimeout = b.WorkflowTaskTimeout + x.BackoffStartInterval = b.BackoffStartInterval + x.RetryPolicy = b.RetryPolicy + x.Initiator = b.Initiator + x.Failure = b.Failure + x.LastCompletionResult = b.LastCompletionResult + x.CronSchedule = b.CronSchedule + x.Header = b.Header + x.Memo = b.Memo + x.SearchAttributes = b.SearchAttributes + x.InheritBuildId = b.InheritBuildId + x.InitialVersioningBehavior = b.InitialVersioningBehavior + return m0 +} + type StartChildWorkflowExecutionCommandAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` WorkflowId string `protobuf:"bytes,2,opt,name=workflow_id,json=workflowId,proto3" json:"workflow_id,omitempty"` WorkflowType *v1.WorkflowType `protobuf:"bytes,3,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type,omitempty"` @@ -1080,11 +1948,6 @@ func (x *StartChildWorkflowExecutionCommandAttributes) ProtoReflect() protorefle return mi.MessageOf(x) } -// Deprecated: Use StartChildWorkflowExecutionCommandAttributes.ProtoReflect.Descriptor instead. -func (*StartChildWorkflowExecutionCommandAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_command_v1_message_proto_rawDescGZIP(), []int{13} -} - func (x *StartChildWorkflowExecutionCommandAttributes) GetNamespace() string { if x != nil { return x.Namespace @@ -1212,8 +2075,263 @@ func (x *StartChildWorkflowExecutionCommandAttributes) GetPriority() *v1.Priorit return nil } +func (x *StartChildWorkflowExecutionCommandAttributes) SetNamespace(v string) { + x.Namespace = v +} + +func (x *StartChildWorkflowExecutionCommandAttributes) SetWorkflowId(v string) { + x.WorkflowId = v +} + +func (x *StartChildWorkflowExecutionCommandAttributes) SetWorkflowType(v *v1.WorkflowType) { + x.WorkflowType = v +} + +func (x *StartChildWorkflowExecutionCommandAttributes) SetTaskQueue(v *v11.TaskQueue) { + x.TaskQueue = v +} + +func (x *StartChildWorkflowExecutionCommandAttributes) SetInput(v *v1.Payloads) { + x.Input = v +} + +func (x *StartChildWorkflowExecutionCommandAttributes) SetWorkflowExecutionTimeout(v *durationpb.Duration) { + x.WorkflowExecutionTimeout = v +} + +func (x *StartChildWorkflowExecutionCommandAttributes) SetWorkflowRunTimeout(v *durationpb.Duration) { + x.WorkflowRunTimeout = v +} + +func (x *StartChildWorkflowExecutionCommandAttributes) SetWorkflowTaskTimeout(v *durationpb.Duration) { + x.WorkflowTaskTimeout = v +} + +func (x *StartChildWorkflowExecutionCommandAttributes) SetParentClosePolicy(v v13.ParentClosePolicy) { + x.ParentClosePolicy = v +} + +func (x *StartChildWorkflowExecutionCommandAttributes) SetControl(v string) { + x.Control = v +} + +func (x *StartChildWorkflowExecutionCommandAttributes) SetWorkflowIdReusePolicy(v v13.WorkflowIdReusePolicy) { + x.WorkflowIdReusePolicy = v +} + +func (x *StartChildWorkflowExecutionCommandAttributes) SetRetryPolicy(v *v1.RetryPolicy) { + x.RetryPolicy = v +} + +func (x *StartChildWorkflowExecutionCommandAttributes) SetCronSchedule(v string) { + x.CronSchedule = v +} + +func (x *StartChildWorkflowExecutionCommandAttributes) SetHeader(v *v1.Header) { + x.Header = v +} + +func (x *StartChildWorkflowExecutionCommandAttributes) SetMemo(v *v1.Memo) { + x.Memo = v +} + +func (x *StartChildWorkflowExecutionCommandAttributes) SetSearchAttributes(v *v1.SearchAttributes) { + x.SearchAttributes = v +} + +// Deprecated: Marked as deprecated in temporal/api/command/v1/message.proto. +func (x *StartChildWorkflowExecutionCommandAttributes) SetInheritBuildId(v bool) { + x.InheritBuildId = v +} + +func (x *StartChildWorkflowExecutionCommandAttributes) SetPriority(v *v1.Priority) { + x.Priority = v +} + +func (x *StartChildWorkflowExecutionCommandAttributes) HasWorkflowType() bool { + if x == nil { + return false + } + return x.WorkflowType != nil +} + +func (x *StartChildWorkflowExecutionCommandAttributes) HasTaskQueue() bool { + if x == nil { + return false + } + return x.TaskQueue != nil +} + +func (x *StartChildWorkflowExecutionCommandAttributes) HasInput() bool { + if x == nil { + return false + } + return x.Input != nil +} + +func (x *StartChildWorkflowExecutionCommandAttributes) HasWorkflowExecutionTimeout() bool { + if x == nil { + return false + } + return x.WorkflowExecutionTimeout != nil +} + +func (x *StartChildWorkflowExecutionCommandAttributes) HasWorkflowRunTimeout() bool { + if x == nil { + return false + } + return x.WorkflowRunTimeout != nil +} + +func (x *StartChildWorkflowExecutionCommandAttributes) HasWorkflowTaskTimeout() bool { + if x == nil { + return false + } + return x.WorkflowTaskTimeout != nil +} + +func (x *StartChildWorkflowExecutionCommandAttributes) HasRetryPolicy() bool { + if x == nil { + return false + } + return x.RetryPolicy != nil +} + +func (x *StartChildWorkflowExecutionCommandAttributes) HasHeader() bool { + if x == nil { + return false + } + return x.Header != nil +} + +func (x *StartChildWorkflowExecutionCommandAttributes) HasMemo() bool { + if x == nil { + return false + } + return x.Memo != nil +} + +func (x *StartChildWorkflowExecutionCommandAttributes) HasSearchAttributes() bool { + if x == nil { + return false + } + return x.SearchAttributes != nil +} + +func (x *StartChildWorkflowExecutionCommandAttributes) HasPriority() bool { + if x == nil { + return false + } + return x.Priority != nil +} + +func (x *StartChildWorkflowExecutionCommandAttributes) ClearWorkflowType() { + x.WorkflowType = nil +} + +func (x *StartChildWorkflowExecutionCommandAttributes) ClearTaskQueue() { + x.TaskQueue = nil +} + +func (x *StartChildWorkflowExecutionCommandAttributes) ClearInput() { + x.Input = nil +} + +func (x *StartChildWorkflowExecutionCommandAttributes) ClearWorkflowExecutionTimeout() { + x.WorkflowExecutionTimeout = nil +} + +func (x *StartChildWorkflowExecutionCommandAttributes) ClearWorkflowRunTimeout() { + x.WorkflowRunTimeout = nil +} + +func (x *StartChildWorkflowExecutionCommandAttributes) ClearWorkflowTaskTimeout() { + x.WorkflowTaskTimeout = nil +} + +func (x *StartChildWorkflowExecutionCommandAttributes) ClearRetryPolicy() { + x.RetryPolicy = nil +} + +func (x *StartChildWorkflowExecutionCommandAttributes) ClearHeader() { + x.Header = nil +} + +func (x *StartChildWorkflowExecutionCommandAttributes) ClearMemo() { + x.Memo = nil +} + +func (x *StartChildWorkflowExecutionCommandAttributes) ClearSearchAttributes() { + x.SearchAttributes = nil +} + +func (x *StartChildWorkflowExecutionCommandAttributes) ClearPriority() { + x.Priority = nil +} + +type StartChildWorkflowExecutionCommandAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + WorkflowId string + WorkflowType *v1.WorkflowType + TaskQueue *v11.TaskQueue + Input *v1.Payloads + // Total workflow execution timeout including retries and continue as new. + WorkflowExecutionTimeout *durationpb.Duration + // Timeout of a single workflow run. + WorkflowRunTimeout *durationpb.Duration + // Timeout of a single workflow task. + WorkflowTaskTimeout *durationpb.Duration + // Default: PARENT_CLOSE_POLICY_TERMINATE. + ParentClosePolicy v13.ParentClosePolicy + Control string + // Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE. + WorkflowIdReusePolicy v13.WorkflowIdReusePolicy + RetryPolicy *v1.RetryPolicy + // Establish a cron schedule for the child workflow. + CronSchedule string + Header *v1.Header + Memo *v1.Memo + SearchAttributes *v1.SearchAttributes + // If this is set, the child workflow inherits the Build ID of the parent. Otherwise, the assignment + // rules of the child's Task Queue will be used to independently assign a Build ID to it. + // Deprecated. Only considered for versioning v0.2. + // + // Deprecated: Marked as deprecated in temporal/api/command/v1/message.proto. + InheritBuildId bool + // Priority metadata. If this message is not present, or any fields are not + // present, they inherit the values from the workflow. + Priority *v1.Priority +} + +func (b0 StartChildWorkflowExecutionCommandAttributes_builder) Build() *StartChildWorkflowExecutionCommandAttributes { + m0 := &StartChildWorkflowExecutionCommandAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.WorkflowId = b.WorkflowId + x.WorkflowType = b.WorkflowType + x.TaskQueue = b.TaskQueue + x.Input = b.Input + x.WorkflowExecutionTimeout = b.WorkflowExecutionTimeout + x.WorkflowRunTimeout = b.WorkflowRunTimeout + x.WorkflowTaskTimeout = b.WorkflowTaskTimeout + x.ParentClosePolicy = b.ParentClosePolicy + x.Control = b.Control + x.WorkflowIdReusePolicy = b.WorkflowIdReusePolicy + x.RetryPolicy = b.RetryPolicy + x.CronSchedule = b.CronSchedule + x.Header = b.Header + x.Memo = b.Memo + x.SearchAttributes = b.SearchAttributes + x.InheritBuildId = b.InheritBuildId + x.Priority = b.Priority + return m0 +} + type ProtocolMessageCommandAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The message ID of the message to which this command is a pointer. MessageId string `protobuf:"bytes,1,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"` unknownFields protoimpl.UnknownFields @@ -1245,11 +2363,6 @@ func (x *ProtocolMessageCommandAttributes) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ProtocolMessageCommandAttributes.ProtoReflect.Descriptor instead. -func (*ProtocolMessageCommandAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_command_v1_message_proto_rawDescGZIP(), []int{14} -} - func (x *ProtocolMessageCommandAttributes) GetMessageId() string { if x != nil { return x.MessageId @@ -1257,8 +2370,27 @@ func (x *ProtocolMessageCommandAttributes) GetMessageId() string { return "" } +func (x *ProtocolMessageCommandAttributes) SetMessageId(v string) { + x.MessageId = v +} + +type ProtocolMessageCommandAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The message ID of the message to which this command is a pointer. + MessageId string +} + +func (b0 ProtocolMessageCommandAttributes_builder) Build() *ProtocolMessageCommandAttributes { + m0 := &ProtocolMessageCommandAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.MessageId = b.MessageId + return m0 +} + type ScheduleNexusOperationCommandAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Endpoint name, must exist in the endpoint registry or this command will fail. Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` // Service name. @@ -1335,11 +2467,6 @@ func (x *ScheduleNexusOperationCommandAttributes) ProtoReflect() protoreflect.Me return mi.MessageOf(x) } -// Deprecated: Use ScheduleNexusOperationCommandAttributes.ProtoReflect.Descriptor instead. -func (*ScheduleNexusOperationCommandAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_command_v1_message_proto_rawDescGZIP(), []int{15} -} - func (x *ScheduleNexusOperationCommandAttributes) GetEndpoint() string { if x != nil { return x.Endpoint @@ -1389,15 +2516,158 @@ func (x *ScheduleNexusOperationCommandAttributes) GetScheduleToStartTimeout() *d return nil } -func (x *ScheduleNexusOperationCommandAttributes) GetStartToCloseTimeout() *durationpb.Duration { - if x != nil { - return x.StartToCloseTimeout - } - return nil +func (x *ScheduleNexusOperationCommandAttributes) GetStartToCloseTimeout() *durationpb.Duration { + if x != nil { + return x.StartToCloseTimeout + } + return nil +} + +func (x *ScheduleNexusOperationCommandAttributes) SetEndpoint(v string) { + x.Endpoint = v +} + +func (x *ScheduleNexusOperationCommandAttributes) SetService(v string) { + x.Service = v +} + +func (x *ScheduleNexusOperationCommandAttributes) SetOperation(v string) { + x.Operation = v +} + +func (x *ScheduleNexusOperationCommandAttributes) SetInput(v *v1.Payload) { + x.Input = v +} + +func (x *ScheduleNexusOperationCommandAttributes) SetScheduleToCloseTimeout(v *durationpb.Duration) { + x.ScheduleToCloseTimeout = v +} + +func (x *ScheduleNexusOperationCommandAttributes) SetNexusHeader(v map[string]string) { + x.NexusHeader = v +} + +func (x *ScheduleNexusOperationCommandAttributes) SetScheduleToStartTimeout(v *durationpb.Duration) { + x.ScheduleToStartTimeout = v +} + +func (x *ScheduleNexusOperationCommandAttributes) SetStartToCloseTimeout(v *durationpb.Duration) { + x.StartToCloseTimeout = v +} + +func (x *ScheduleNexusOperationCommandAttributes) HasInput() bool { + if x == nil { + return false + } + return x.Input != nil +} + +func (x *ScheduleNexusOperationCommandAttributes) HasScheduleToCloseTimeout() bool { + if x == nil { + return false + } + return x.ScheduleToCloseTimeout != nil +} + +func (x *ScheduleNexusOperationCommandAttributes) HasScheduleToStartTimeout() bool { + if x == nil { + return false + } + return x.ScheduleToStartTimeout != nil +} + +func (x *ScheduleNexusOperationCommandAttributes) HasStartToCloseTimeout() bool { + if x == nil { + return false + } + return x.StartToCloseTimeout != nil +} + +func (x *ScheduleNexusOperationCommandAttributes) ClearInput() { + x.Input = nil +} + +func (x *ScheduleNexusOperationCommandAttributes) ClearScheduleToCloseTimeout() { + x.ScheduleToCloseTimeout = nil +} + +func (x *ScheduleNexusOperationCommandAttributes) ClearScheduleToStartTimeout() { + x.ScheduleToStartTimeout = nil +} + +func (x *ScheduleNexusOperationCommandAttributes) ClearStartToCloseTimeout() { + x.StartToCloseTimeout = nil +} + +type ScheduleNexusOperationCommandAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Endpoint name, must exist in the endpoint registry or this command will fail. + Endpoint string + // Service name. + Service string + // Operation name. + Operation string + // Input for the operation. The server converts this into Nexus request content and the appropriate content headers + // internally when sending the StartOperation request. On the handler side, if it is also backed by Temporal, the + // content is transformed back to the original Payload sent in this command. + Input *v1.Payload + // Schedule-to-close timeout for this operation. + // Indicates how long the caller is willing to wait for operation completion. + // Calls are retried internally by the server. + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + ScheduleToCloseTimeout *durationpb.Duration + // Header to attach to the Nexus request. + // Users are responsible for encrypting sensitive data in this header as it is stored in workflow history and + // transmitted to external services as-is. + // This is useful for propagating tracing information. + // Note these headers are not the same as Temporal headers on internal activities and child workflows, these are + // transmitted to Nexus operations that may be external and are not traditional payloads. + NexusHeader map[string]string + // Schedule-to-start timeout for this operation. + // Indicates how long the caller is willing to wait for the operation to be started (or completed if synchronous) + // by the handler. If the operation is not started within this timeout, it will fail with + // TIMEOUT_TYPE_SCHEDULE_TO_START. + // If not set or zero, no schedule-to-start timeout is enforced. + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + // + // Requires server version 1.31.0 or later. + ScheduleToStartTimeout *durationpb.Duration + // Start-to-close timeout for this operation. + // Indicates how long the caller is willing to wait for an asynchronous operation to complete after it has been + // started. If the operation does not complete within this timeout after starting, it will fail with + // TIMEOUT_TYPE_START_TO_CLOSE. + // Only applies to asynchronous operations. Synchronous operations ignore this timeout. + // If not set or zero, no start-to-close timeout is enforced. + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + // + // Requires server version 1.31.0 or later. + StartToCloseTimeout *durationpb.Duration +} + +func (b0 ScheduleNexusOperationCommandAttributes_builder) Build() *ScheduleNexusOperationCommandAttributes { + m0 := &ScheduleNexusOperationCommandAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.Endpoint = b.Endpoint + x.Service = b.Service + x.Operation = b.Operation + x.Input = b.Input + x.ScheduleToCloseTimeout = b.ScheduleToCloseTimeout + x.NexusHeader = b.NexusHeader + x.ScheduleToStartTimeout = b.ScheduleToStartTimeout + x.StartToCloseTimeout = b.StartToCloseTimeout + return m0 } type RequestCancelNexusOperationCommandAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The `NEXUS_OPERATION_SCHEDULED` event ID (a unique identifier) for the operation to be canceled. // The operation may ignore cancellation and end up with any completion state. ScheduledEventId int64 `protobuf:"varint,1,opt,name=scheduled_event_id,json=scheduledEventId,proto3" json:"scheduled_event_id,omitempty"` @@ -1430,11 +2700,6 @@ func (x *RequestCancelNexusOperationCommandAttributes) ProtoReflect() protorefle return mi.MessageOf(x) } -// Deprecated: Use RequestCancelNexusOperationCommandAttributes.ProtoReflect.Descriptor instead. -func (*RequestCancelNexusOperationCommandAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_command_v1_message_proto_rawDescGZIP(), []int{16} -} - func (x *RequestCancelNexusOperationCommandAttributes) GetScheduledEventId() int64 { if x != nil { return x.ScheduledEventId @@ -1442,8 +2707,28 @@ func (x *RequestCancelNexusOperationCommandAttributes) GetScheduledEventId() int return 0 } +func (x *RequestCancelNexusOperationCommandAttributes) SetScheduledEventId(v int64) { + x.ScheduledEventId = v +} + +type RequestCancelNexusOperationCommandAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The `NEXUS_OPERATION_SCHEDULED` event ID (a unique identifier) for the operation to be canceled. + // The operation may ignore cancellation and end up with any completion state. + ScheduledEventId int64 +} + +func (b0 RequestCancelNexusOperationCommandAttributes_builder) Build() *RequestCancelNexusOperationCommandAttributes { + m0 := &RequestCancelNexusOperationCommandAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.ScheduledEventId = b.ScheduledEventId + return m0 +} + type Command struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` CommandType v13.CommandType `protobuf:"varint,1,opt,name=command_type,json=commandType,proto3,enum=temporal.api.enums.v1.CommandType" json:"command_type,omitempty"` // Metadata on the command. This is sometimes carried over to the history event if one is // created as a result of the command. Most commands won't have this information, and how this @@ -1507,11 +2792,6 @@ func (x *Command) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Command.ProtoReflect.Descriptor instead. -func (*Command) Descriptor() ([]byte, []int) { - return file_temporal_api_command_v1_message_proto_rawDescGZIP(), []int{17} -} - func (x *Command) GetCommandType() v13.CommandType { if x != nil { return x.CommandType @@ -1686,6 +2966,618 @@ func (x *Command) GetRequestCancelNexusOperationCommandAttributes() *RequestCanc return nil } +func (x *Command) SetCommandType(v v13.CommandType) { + x.CommandType = v +} + +func (x *Command) SetUserMetadata(v *v14.UserMetadata) { + x.UserMetadata = v +} + +func (x *Command) SetScheduleActivityTaskCommandAttributes(v *ScheduleActivityTaskCommandAttributes) { + if v == nil { + x.Attributes = nil + return + } + x.Attributes = &Command_ScheduleActivityTaskCommandAttributes{v} +} + +func (x *Command) SetStartTimerCommandAttributes(v *StartTimerCommandAttributes) { + if v == nil { + x.Attributes = nil + return + } + x.Attributes = &Command_StartTimerCommandAttributes{v} +} + +func (x *Command) SetCompleteWorkflowExecutionCommandAttributes(v *CompleteWorkflowExecutionCommandAttributes) { + if v == nil { + x.Attributes = nil + return + } + x.Attributes = &Command_CompleteWorkflowExecutionCommandAttributes{v} +} + +func (x *Command) SetFailWorkflowExecutionCommandAttributes(v *FailWorkflowExecutionCommandAttributes) { + if v == nil { + x.Attributes = nil + return + } + x.Attributes = &Command_FailWorkflowExecutionCommandAttributes{v} +} + +func (x *Command) SetRequestCancelActivityTaskCommandAttributes(v *RequestCancelActivityTaskCommandAttributes) { + if v == nil { + x.Attributes = nil + return + } + x.Attributes = &Command_RequestCancelActivityTaskCommandAttributes{v} +} + +func (x *Command) SetCancelTimerCommandAttributes(v *CancelTimerCommandAttributes) { + if v == nil { + x.Attributes = nil + return + } + x.Attributes = &Command_CancelTimerCommandAttributes{v} +} + +func (x *Command) SetCancelWorkflowExecutionCommandAttributes(v *CancelWorkflowExecutionCommandAttributes) { + if v == nil { + x.Attributes = nil + return + } + x.Attributes = &Command_CancelWorkflowExecutionCommandAttributes{v} +} + +func (x *Command) SetRequestCancelExternalWorkflowExecutionCommandAttributes(v *RequestCancelExternalWorkflowExecutionCommandAttributes) { + if v == nil { + x.Attributes = nil + return + } + x.Attributes = &Command_RequestCancelExternalWorkflowExecutionCommandAttributes{v} +} + +func (x *Command) SetRecordMarkerCommandAttributes(v *RecordMarkerCommandAttributes) { + if v == nil { + x.Attributes = nil + return + } + x.Attributes = &Command_RecordMarkerCommandAttributes{v} +} + +func (x *Command) SetContinueAsNewWorkflowExecutionCommandAttributes(v *ContinueAsNewWorkflowExecutionCommandAttributes) { + if v == nil { + x.Attributes = nil + return + } + x.Attributes = &Command_ContinueAsNewWorkflowExecutionCommandAttributes{v} +} + +func (x *Command) SetStartChildWorkflowExecutionCommandAttributes(v *StartChildWorkflowExecutionCommandAttributes) { + if v == nil { + x.Attributes = nil + return + } + x.Attributes = &Command_StartChildWorkflowExecutionCommandAttributes{v} +} + +func (x *Command) SetSignalExternalWorkflowExecutionCommandAttributes(v *SignalExternalWorkflowExecutionCommandAttributes) { + if v == nil { + x.Attributes = nil + return + } + x.Attributes = &Command_SignalExternalWorkflowExecutionCommandAttributes{v} +} + +func (x *Command) SetUpsertWorkflowSearchAttributesCommandAttributes(v *UpsertWorkflowSearchAttributesCommandAttributes) { + if v == nil { + x.Attributes = nil + return + } + x.Attributes = &Command_UpsertWorkflowSearchAttributesCommandAttributes{v} +} + +func (x *Command) SetProtocolMessageCommandAttributes(v *ProtocolMessageCommandAttributes) { + if v == nil { + x.Attributes = nil + return + } + x.Attributes = &Command_ProtocolMessageCommandAttributes{v} +} + +func (x *Command) SetModifyWorkflowPropertiesCommandAttributes(v *ModifyWorkflowPropertiesCommandAttributes) { + if v == nil { + x.Attributes = nil + return + } + x.Attributes = &Command_ModifyWorkflowPropertiesCommandAttributes{v} +} + +func (x *Command) SetScheduleNexusOperationCommandAttributes(v *ScheduleNexusOperationCommandAttributes) { + if v == nil { + x.Attributes = nil + return + } + x.Attributes = &Command_ScheduleNexusOperationCommandAttributes{v} +} + +func (x *Command) SetRequestCancelNexusOperationCommandAttributes(v *RequestCancelNexusOperationCommandAttributes) { + if v == nil { + x.Attributes = nil + return + } + x.Attributes = &Command_RequestCancelNexusOperationCommandAttributes{v} +} + +func (x *Command) HasUserMetadata() bool { + if x == nil { + return false + } + return x.UserMetadata != nil +} + +func (x *Command) HasAttributes() bool { + if x == nil { + return false + } + return x.Attributes != nil +} + +func (x *Command) HasScheduleActivityTaskCommandAttributes() bool { + if x == nil { + return false + } + _, ok := x.Attributes.(*Command_ScheduleActivityTaskCommandAttributes) + return ok +} + +func (x *Command) HasStartTimerCommandAttributes() bool { + if x == nil { + return false + } + _, ok := x.Attributes.(*Command_StartTimerCommandAttributes) + return ok +} + +func (x *Command) HasCompleteWorkflowExecutionCommandAttributes() bool { + if x == nil { + return false + } + _, ok := x.Attributes.(*Command_CompleteWorkflowExecutionCommandAttributes) + return ok +} + +func (x *Command) HasFailWorkflowExecutionCommandAttributes() bool { + if x == nil { + return false + } + _, ok := x.Attributes.(*Command_FailWorkflowExecutionCommandAttributes) + return ok +} + +func (x *Command) HasRequestCancelActivityTaskCommandAttributes() bool { + if x == nil { + return false + } + _, ok := x.Attributes.(*Command_RequestCancelActivityTaskCommandAttributes) + return ok +} + +func (x *Command) HasCancelTimerCommandAttributes() bool { + if x == nil { + return false + } + _, ok := x.Attributes.(*Command_CancelTimerCommandAttributes) + return ok +} + +func (x *Command) HasCancelWorkflowExecutionCommandAttributes() bool { + if x == nil { + return false + } + _, ok := x.Attributes.(*Command_CancelWorkflowExecutionCommandAttributes) + return ok +} + +func (x *Command) HasRequestCancelExternalWorkflowExecutionCommandAttributes() bool { + if x == nil { + return false + } + _, ok := x.Attributes.(*Command_RequestCancelExternalWorkflowExecutionCommandAttributes) + return ok +} + +func (x *Command) HasRecordMarkerCommandAttributes() bool { + if x == nil { + return false + } + _, ok := x.Attributes.(*Command_RecordMarkerCommandAttributes) + return ok +} + +func (x *Command) HasContinueAsNewWorkflowExecutionCommandAttributes() bool { + if x == nil { + return false + } + _, ok := x.Attributes.(*Command_ContinueAsNewWorkflowExecutionCommandAttributes) + return ok +} + +func (x *Command) HasStartChildWorkflowExecutionCommandAttributes() bool { + if x == nil { + return false + } + _, ok := x.Attributes.(*Command_StartChildWorkflowExecutionCommandAttributes) + return ok +} + +func (x *Command) HasSignalExternalWorkflowExecutionCommandAttributes() bool { + if x == nil { + return false + } + _, ok := x.Attributes.(*Command_SignalExternalWorkflowExecutionCommandAttributes) + return ok +} + +func (x *Command) HasUpsertWorkflowSearchAttributesCommandAttributes() bool { + if x == nil { + return false + } + _, ok := x.Attributes.(*Command_UpsertWorkflowSearchAttributesCommandAttributes) + return ok +} + +func (x *Command) HasProtocolMessageCommandAttributes() bool { + if x == nil { + return false + } + _, ok := x.Attributes.(*Command_ProtocolMessageCommandAttributes) + return ok +} + +func (x *Command) HasModifyWorkflowPropertiesCommandAttributes() bool { + if x == nil { + return false + } + _, ok := x.Attributes.(*Command_ModifyWorkflowPropertiesCommandAttributes) + return ok +} + +func (x *Command) HasScheduleNexusOperationCommandAttributes() bool { + if x == nil { + return false + } + _, ok := x.Attributes.(*Command_ScheduleNexusOperationCommandAttributes) + return ok +} + +func (x *Command) HasRequestCancelNexusOperationCommandAttributes() bool { + if x == nil { + return false + } + _, ok := x.Attributes.(*Command_RequestCancelNexusOperationCommandAttributes) + return ok +} + +func (x *Command) ClearUserMetadata() { + x.UserMetadata = nil +} + +func (x *Command) ClearAttributes() { + x.Attributes = nil +} + +func (x *Command) ClearScheduleActivityTaskCommandAttributes() { + if _, ok := x.Attributes.(*Command_ScheduleActivityTaskCommandAttributes); ok { + x.Attributes = nil + } +} + +func (x *Command) ClearStartTimerCommandAttributes() { + if _, ok := x.Attributes.(*Command_StartTimerCommandAttributes); ok { + x.Attributes = nil + } +} + +func (x *Command) ClearCompleteWorkflowExecutionCommandAttributes() { + if _, ok := x.Attributes.(*Command_CompleteWorkflowExecutionCommandAttributes); ok { + x.Attributes = nil + } +} + +func (x *Command) ClearFailWorkflowExecutionCommandAttributes() { + if _, ok := x.Attributes.(*Command_FailWorkflowExecutionCommandAttributes); ok { + x.Attributes = nil + } +} + +func (x *Command) ClearRequestCancelActivityTaskCommandAttributes() { + if _, ok := x.Attributes.(*Command_RequestCancelActivityTaskCommandAttributes); ok { + x.Attributes = nil + } +} + +func (x *Command) ClearCancelTimerCommandAttributes() { + if _, ok := x.Attributes.(*Command_CancelTimerCommandAttributes); ok { + x.Attributes = nil + } +} + +func (x *Command) ClearCancelWorkflowExecutionCommandAttributes() { + if _, ok := x.Attributes.(*Command_CancelWorkflowExecutionCommandAttributes); ok { + x.Attributes = nil + } +} + +func (x *Command) ClearRequestCancelExternalWorkflowExecutionCommandAttributes() { + if _, ok := x.Attributes.(*Command_RequestCancelExternalWorkflowExecutionCommandAttributes); ok { + x.Attributes = nil + } +} + +func (x *Command) ClearRecordMarkerCommandAttributes() { + if _, ok := x.Attributes.(*Command_RecordMarkerCommandAttributes); ok { + x.Attributes = nil + } +} + +func (x *Command) ClearContinueAsNewWorkflowExecutionCommandAttributes() { + if _, ok := x.Attributes.(*Command_ContinueAsNewWorkflowExecutionCommandAttributes); ok { + x.Attributes = nil + } +} + +func (x *Command) ClearStartChildWorkflowExecutionCommandAttributes() { + if _, ok := x.Attributes.(*Command_StartChildWorkflowExecutionCommandAttributes); ok { + x.Attributes = nil + } +} + +func (x *Command) ClearSignalExternalWorkflowExecutionCommandAttributes() { + if _, ok := x.Attributes.(*Command_SignalExternalWorkflowExecutionCommandAttributes); ok { + x.Attributes = nil + } +} + +func (x *Command) ClearUpsertWorkflowSearchAttributesCommandAttributes() { + if _, ok := x.Attributes.(*Command_UpsertWorkflowSearchAttributesCommandAttributes); ok { + x.Attributes = nil + } +} + +func (x *Command) ClearProtocolMessageCommandAttributes() { + if _, ok := x.Attributes.(*Command_ProtocolMessageCommandAttributes); ok { + x.Attributes = nil + } +} + +func (x *Command) ClearModifyWorkflowPropertiesCommandAttributes() { + if _, ok := x.Attributes.(*Command_ModifyWorkflowPropertiesCommandAttributes); ok { + x.Attributes = nil + } +} + +func (x *Command) ClearScheduleNexusOperationCommandAttributes() { + if _, ok := x.Attributes.(*Command_ScheduleNexusOperationCommandAttributes); ok { + x.Attributes = nil + } +} + +func (x *Command) ClearRequestCancelNexusOperationCommandAttributes() { + if _, ok := x.Attributes.(*Command_RequestCancelNexusOperationCommandAttributes); ok { + x.Attributes = nil + } +} + +const Command_Attributes_not_set_case case_Command_Attributes = 0 +const Command_ScheduleActivityTaskCommandAttributes_case case_Command_Attributes = 2 +const Command_StartTimerCommandAttributes_case case_Command_Attributes = 3 +const Command_CompleteWorkflowExecutionCommandAttributes_case case_Command_Attributes = 4 +const Command_FailWorkflowExecutionCommandAttributes_case case_Command_Attributes = 5 +const Command_RequestCancelActivityTaskCommandAttributes_case case_Command_Attributes = 6 +const Command_CancelTimerCommandAttributes_case case_Command_Attributes = 7 +const Command_CancelWorkflowExecutionCommandAttributes_case case_Command_Attributes = 8 +const Command_RequestCancelExternalWorkflowExecutionCommandAttributes_case case_Command_Attributes = 9 +const Command_RecordMarkerCommandAttributes_case case_Command_Attributes = 10 +const Command_ContinueAsNewWorkflowExecutionCommandAttributes_case case_Command_Attributes = 11 +const Command_StartChildWorkflowExecutionCommandAttributes_case case_Command_Attributes = 12 +const Command_SignalExternalWorkflowExecutionCommandAttributes_case case_Command_Attributes = 13 +const Command_UpsertWorkflowSearchAttributesCommandAttributes_case case_Command_Attributes = 14 +const Command_ProtocolMessageCommandAttributes_case case_Command_Attributes = 15 +const Command_ModifyWorkflowPropertiesCommandAttributes_case case_Command_Attributes = 17 +const Command_ScheduleNexusOperationCommandAttributes_case case_Command_Attributes = 18 +const Command_RequestCancelNexusOperationCommandAttributes_case case_Command_Attributes = 19 + +func (x *Command) WhichAttributes() case_Command_Attributes { + if x == nil { + return Command_Attributes_not_set_case + } + switch x.Attributes.(type) { + case *Command_ScheduleActivityTaskCommandAttributes: + return Command_ScheduleActivityTaskCommandAttributes_case + case *Command_StartTimerCommandAttributes: + return Command_StartTimerCommandAttributes_case + case *Command_CompleteWorkflowExecutionCommandAttributes: + return Command_CompleteWorkflowExecutionCommandAttributes_case + case *Command_FailWorkflowExecutionCommandAttributes: + return Command_FailWorkflowExecutionCommandAttributes_case + case *Command_RequestCancelActivityTaskCommandAttributes: + return Command_RequestCancelActivityTaskCommandAttributes_case + case *Command_CancelTimerCommandAttributes: + return Command_CancelTimerCommandAttributes_case + case *Command_CancelWorkflowExecutionCommandAttributes: + return Command_CancelWorkflowExecutionCommandAttributes_case + case *Command_RequestCancelExternalWorkflowExecutionCommandAttributes: + return Command_RequestCancelExternalWorkflowExecutionCommandAttributes_case + case *Command_RecordMarkerCommandAttributes: + return Command_RecordMarkerCommandAttributes_case + case *Command_ContinueAsNewWorkflowExecutionCommandAttributes: + return Command_ContinueAsNewWorkflowExecutionCommandAttributes_case + case *Command_StartChildWorkflowExecutionCommandAttributes: + return Command_StartChildWorkflowExecutionCommandAttributes_case + case *Command_SignalExternalWorkflowExecutionCommandAttributes: + return Command_SignalExternalWorkflowExecutionCommandAttributes_case + case *Command_UpsertWorkflowSearchAttributesCommandAttributes: + return Command_UpsertWorkflowSearchAttributesCommandAttributes_case + case *Command_ProtocolMessageCommandAttributes: + return Command_ProtocolMessageCommandAttributes_case + case *Command_ModifyWorkflowPropertiesCommandAttributes: + return Command_ModifyWorkflowPropertiesCommandAttributes_case + case *Command_ScheduleNexusOperationCommandAttributes: + return Command_ScheduleNexusOperationCommandAttributes_case + case *Command_RequestCancelNexusOperationCommandAttributes: + return Command_RequestCancelNexusOperationCommandAttributes_case + default: + return Command_Attributes_not_set_case + } +} + +type Command_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + CommandType v13.CommandType + // Metadata on the command. This is sometimes carried over to the history event if one is + // created as a result of the command. Most commands won't have this information, and how this + // information is used is dependent upon the interface that reads it. + // + // Current well-known uses: + // - start_child_workflow_execution_command_attributes - populates + // temporal.api.workflow.v1.WorkflowExecutionInfo.user_metadata where the summary and details + // are used by user interfaces to show fixed as-of-start workflow summary and details. + // - start_timer_command_attributes - populates temporal.api.history.v1.HistoryEvent for timer + // started where the summary is used to identify the timer. + UserMetadata *v14.UserMetadata + // The command details. The type must match that in `command_type`. + + // Fields of oneof Attributes: + ScheduleActivityTaskCommandAttributes *ScheduleActivityTaskCommandAttributes + StartTimerCommandAttributes *StartTimerCommandAttributes + CompleteWorkflowExecutionCommandAttributes *CompleteWorkflowExecutionCommandAttributes + FailWorkflowExecutionCommandAttributes *FailWorkflowExecutionCommandAttributes + RequestCancelActivityTaskCommandAttributes *RequestCancelActivityTaskCommandAttributes + CancelTimerCommandAttributes *CancelTimerCommandAttributes + CancelWorkflowExecutionCommandAttributes *CancelWorkflowExecutionCommandAttributes + RequestCancelExternalWorkflowExecutionCommandAttributes *RequestCancelExternalWorkflowExecutionCommandAttributes + RecordMarkerCommandAttributes *RecordMarkerCommandAttributes + ContinueAsNewWorkflowExecutionCommandAttributes *ContinueAsNewWorkflowExecutionCommandAttributes + StartChildWorkflowExecutionCommandAttributes *StartChildWorkflowExecutionCommandAttributes + SignalExternalWorkflowExecutionCommandAttributes *SignalExternalWorkflowExecutionCommandAttributes + UpsertWorkflowSearchAttributesCommandAttributes *UpsertWorkflowSearchAttributesCommandAttributes + ProtocolMessageCommandAttributes *ProtocolMessageCommandAttributes + // 16 is available for use - it was used as part of a prototype that never made it into a release + ModifyWorkflowPropertiesCommandAttributes *ModifyWorkflowPropertiesCommandAttributes + ScheduleNexusOperationCommandAttributes *ScheduleNexusOperationCommandAttributes + RequestCancelNexusOperationCommandAttributes *RequestCancelNexusOperationCommandAttributes + // -- end of Attributes +} + +func (b0 Command_builder) Build() *Command { + m0 := &Command{} + b, x := &b0, m0 + _, _ = b, x + x.CommandType = b.CommandType + x.UserMetadata = b.UserMetadata + if b.ScheduleActivityTaskCommandAttributes != nil { + x.Attributes = &Command_ScheduleActivityTaskCommandAttributes{b.ScheduleActivityTaskCommandAttributes} + } + if b.StartTimerCommandAttributes != nil { + x.Attributes = &Command_StartTimerCommandAttributes{b.StartTimerCommandAttributes} + } + if b.CompleteWorkflowExecutionCommandAttributes != nil { + x.Attributes = &Command_CompleteWorkflowExecutionCommandAttributes{b.CompleteWorkflowExecutionCommandAttributes} + } + if b.FailWorkflowExecutionCommandAttributes != nil { + x.Attributes = &Command_FailWorkflowExecutionCommandAttributes{b.FailWorkflowExecutionCommandAttributes} + } + if b.RequestCancelActivityTaskCommandAttributes != nil { + x.Attributes = &Command_RequestCancelActivityTaskCommandAttributes{b.RequestCancelActivityTaskCommandAttributes} + } + if b.CancelTimerCommandAttributes != nil { + x.Attributes = &Command_CancelTimerCommandAttributes{b.CancelTimerCommandAttributes} + } + if b.CancelWorkflowExecutionCommandAttributes != nil { + x.Attributes = &Command_CancelWorkflowExecutionCommandAttributes{b.CancelWorkflowExecutionCommandAttributes} + } + if b.RequestCancelExternalWorkflowExecutionCommandAttributes != nil { + x.Attributes = &Command_RequestCancelExternalWorkflowExecutionCommandAttributes{b.RequestCancelExternalWorkflowExecutionCommandAttributes} + } + if b.RecordMarkerCommandAttributes != nil { + x.Attributes = &Command_RecordMarkerCommandAttributes{b.RecordMarkerCommandAttributes} + } + if b.ContinueAsNewWorkflowExecutionCommandAttributes != nil { + x.Attributes = &Command_ContinueAsNewWorkflowExecutionCommandAttributes{b.ContinueAsNewWorkflowExecutionCommandAttributes} + } + if b.StartChildWorkflowExecutionCommandAttributes != nil { + x.Attributes = &Command_StartChildWorkflowExecutionCommandAttributes{b.StartChildWorkflowExecutionCommandAttributes} + } + if b.SignalExternalWorkflowExecutionCommandAttributes != nil { + x.Attributes = &Command_SignalExternalWorkflowExecutionCommandAttributes{b.SignalExternalWorkflowExecutionCommandAttributes} + } + if b.UpsertWorkflowSearchAttributesCommandAttributes != nil { + x.Attributes = &Command_UpsertWorkflowSearchAttributesCommandAttributes{b.UpsertWorkflowSearchAttributesCommandAttributes} + } + if b.ProtocolMessageCommandAttributes != nil { + x.Attributes = &Command_ProtocolMessageCommandAttributes{b.ProtocolMessageCommandAttributes} + } + if b.ModifyWorkflowPropertiesCommandAttributes != nil { + x.Attributes = &Command_ModifyWorkflowPropertiesCommandAttributes{b.ModifyWorkflowPropertiesCommandAttributes} + } + if b.ScheduleNexusOperationCommandAttributes != nil { + x.Attributes = &Command_ScheduleNexusOperationCommandAttributes{b.ScheduleNexusOperationCommandAttributes} + } + if b.RequestCancelNexusOperationCommandAttributes != nil { + x.Attributes = &Command_RequestCancelNexusOperationCommandAttributes{b.RequestCancelNexusOperationCommandAttributes} + } + return m0 +} + +type case_Command_Attributes protoreflect.FieldNumber + +func (x case_Command_Attributes) String() string { + switch x { + case Command_Attributes_not_set_case: + return "CommandAttributesNotSetCase" + case Command_ScheduleActivityTaskCommandAttributes_case: + return "CommandScheduleActivityTaskCommandAttributesCase" + case Command_StartTimerCommandAttributes_case: + return "CommandStartTimerCommandAttributesCase" + case Command_CompleteWorkflowExecutionCommandAttributes_case: + return "CommandCompleteWorkflowExecutionCommandAttributesCase" + case Command_FailWorkflowExecutionCommandAttributes_case: + return "CommandFailWorkflowExecutionCommandAttributesCase" + case Command_RequestCancelActivityTaskCommandAttributes_case: + return "CommandRequestCancelActivityTaskCommandAttributesCase" + case Command_CancelTimerCommandAttributes_case: + return "CommandCancelTimerCommandAttributesCase" + case Command_CancelWorkflowExecutionCommandAttributes_case: + return "CommandCancelWorkflowExecutionCommandAttributesCase" + case Command_RequestCancelExternalWorkflowExecutionCommandAttributes_case: + return "CommandRequestCancelExternalWorkflowExecutionCommandAttributesCase" + case Command_RecordMarkerCommandAttributes_case: + return "CommandRecordMarkerCommandAttributesCase" + case Command_ContinueAsNewWorkflowExecutionCommandAttributes_case: + return "CommandContinueAsNewWorkflowExecutionCommandAttributesCase" + case Command_StartChildWorkflowExecutionCommandAttributes_case: + return "CommandStartChildWorkflowExecutionCommandAttributesCase" + case Command_SignalExternalWorkflowExecutionCommandAttributes_case: + return "CommandSignalExternalWorkflowExecutionCommandAttributesCase" + case Command_UpsertWorkflowSearchAttributesCommandAttributes_case: + return "CommandUpsertWorkflowSearchAttributesCommandAttributesCase" + case Command_ProtocolMessageCommandAttributes_case: + return "CommandProtocolMessageCommandAttributesCase" + case Command_ModifyWorkflowPropertiesCommandAttributes_case: + return "CommandModifyWorkflowPropertiesCommandAttributesCase" + case Command_ScheduleNexusOperationCommandAttributes_case: + return "CommandScheduleNexusOperationCommandAttributesCase" + case Command_RequestCancelNexusOperationCommandAttributes_case: + return "CommandRequestCancelNexusOperationCommandAttributesCase" + default: + return strconv.Itoa(int(x)) + } + +} + type isCommand_Attributes interface { isCommand_Attributes() } @@ -1941,18 +3833,6 @@ const file_temporal_api_command_v1_message_proto_rawDesc = "" + "attributesB\x8e\x01\n" + "\x1aio.temporal.api.command.v1B\fMessageProtoP\x01Z%go.temporal.io/api/command/v1;command\xaa\x02\x19Temporalio.Api.Command.V1\xea\x02\x1cTemporalio::Api::Command::V1b\x06proto3" -var ( - file_temporal_api_command_v1_message_proto_rawDescOnce sync.Once - file_temporal_api_command_v1_message_proto_rawDescData []byte -) - -func file_temporal_api_command_v1_message_proto_rawDescGZIP() []byte { - file_temporal_api_command_v1_message_proto_rawDescOnce.Do(func() { - file_temporal_api_command_v1_message_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_api_command_v1_message_proto_rawDesc), len(file_temporal_api_command_v1_message_proto_rawDesc))) - }) - return file_temporal_api_command_v1_message_proto_rawDescData -} - var file_temporal_api_command_v1_message_proto_msgTypes = make([]protoimpl.MessageInfo, 20) var file_temporal_api_command_v1_message_proto_goTypes = []any{ (*ScheduleActivityTaskCommandAttributes)(nil), // 0: temporal.api.command.v1.ScheduleActivityTaskCommandAttributes diff --git a/command/v1/message_protoopaque.pb.go b/command/v1/message_protoopaque.pb.go new file mode 100644 index 00000000..202804ee --- /dev/null +++ b/command/v1/message_protoopaque.pb.go @@ -0,0 +1,3829 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// plugins: +// protoc-gen-go +// protoc +// source: temporal/api/command/v1/message.proto + +//go:build protoopaque + +package command + +import ( + reflect "reflect" + "strconv" + unsafe "unsafe" + + v1 "go.temporal.io/api/common/v1" + v13 "go.temporal.io/api/enums/v1" + v12 "go.temporal.io/api/failure/v1" + v14 "go.temporal.io/api/sdk/v1" + v11 "go.temporal.io/api/taskqueue/v1" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + durationpb "google.golang.org/protobuf/types/known/durationpb" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type ScheduleActivityTaskCommandAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ActivityId string `protobuf:"bytes,1,opt,name=activity_id,json=activityId,proto3"` + xxx_hidden_ActivityType *v1.ActivityType `protobuf:"bytes,2,opt,name=activity_type,json=activityType,proto3"` + xxx_hidden_TaskQueue *v11.TaskQueue `protobuf:"bytes,4,opt,name=task_queue,json=taskQueue,proto3"` + xxx_hidden_Header *v1.Header `protobuf:"bytes,5,opt,name=header,proto3"` + xxx_hidden_Input *v1.Payloads `protobuf:"bytes,6,opt,name=input,proto3"` + xxx_hidden_ScheduleToCloseTimeout *durationpb.Duration `protobuf:"bytes,7,opt,name=schedule_to_close_timeout,json=scheduleToCloseTimeout,proto3"` + xxx_hidden_ScheduleToStartTimeout *durationpb.Duration `protobuf:"bytes,8,opt,name=schedule_to_start_timeout,json=scheduleToStartTimeout,proto3"` + xxx_hidden_StartToCloseTimeout *durationpb.Duration `protobuf:"bytes,9,opt,name=start_to_close_timeout,json=startToCloseTimeout,proto3"` + xxx_hidden_HeartbeatTimeout *durationpb.Duration `protobuf:"bytes,10,opt,name=heartbeat_timeout,json=heartbeatTimeout,proto3"` + xxx_hidden_RetryPolicy *v1.RetryPolicy `protobuf:"bytes,11,opt,name=retry_policy,json=retryPolicy,proto3"` + xxx_hidden_RequestEagerExecution bool `protobuf:"varint,12,opt,name=request_eager_execution,json=requestEagerExecution,proto3"` + xxx_hidden_UseWorkflowBuildId bool `protobuf:"varint,13,opt,name=use_workflow_build_id,json=useWorkflowBuildId,proto3"` + xxx_hidden_Priority *v1.Priority `protobuf:"bytes,14,opt,name=priority,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ScheduleActivityTaskCommandAttributes) Reset() { + *x = ScheduleActivityTaskCommandAttributes{} + mi := &file_temporal_api_command_v1_message_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ScheduleActivityTaskCommandAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ScheduleActivityTaskCommandAttributes) ProtoMessage() {} + +func (x *ScheduleActivityTaskCommandAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_command_v1_message_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ScheduleActivityTaskCommandAttributes) GetActivityId() string { + if x != nil { + return x.xxx_hidden_ActivityId + } + return "" +} + +func (x *ScheduleActivityTaskCommandAttributes) GetActivityType() *v1.ActivityType { + if x != nil { + return x.xxx_hidden_ActivityType + } + return nil +} + +func (x *ScheduleActivityTaskCommandAttributes) GetTaskQueue() *v11.TaskQueue { + if x != nil { + return x.xxx_hidden_TaskQueue + } + return nil +} + +func (x *ScheduleActivityTaskCommandAttributes) GetHeader() *v1.Header { + if x != nil { + return x.xxx_hidden_Header + } + return nil +} + +func (x *ScheduleActivityTaskCommandAttributes) GetInput() *v1.Payloads { + if x != nil { + return x.xxx_hidden_Input + } + return nil +} + +func (x *ScheduleActivityTaskCommandAttributes) GetScheduleToCloseTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_ScheduleToCloseTimeout + } + return nil +} + +func (x *ScheduleActivityTaskCommandAttributes) GetScheduleToStartTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_ScheduleToStartTimeout + } + return nil +} + +func (x *ScheduleActivityTaskCommandAttributes) GetStartToCloseTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_StartToCloseTimeout + } + return nil +} + +func (x *ScheduleActivityTaskCommandAttributes) GetHeartbeatTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_HeartbeatTimeout + } + return nil +} + +func (x *ScheduleActivityTaskCommandAttributes) GetRetryPolicy() *v1.RetryPolicy { + if x != nil { + return x.xxx_hidden_RetryPolicy + } + return nil +} + +func (x *ScheduleActivityTaskCommandAttributes) GetRequestEagerExecution() bool { + if x != nil { + return x.xxx_hidden_RequestEagerExecution + } + return false +} + +func (x *ScheduleActivityTaskCommandAttributes) GetUseWorkflowBuildId() bool { + if x != nil { + return x.xxx_hidden_UseWorkflowBuildId + } + return false +} + +func (x *ScheduleActivityTaskCommandAttributes) GetPriority() *v1.Priority { + if x != nil { + return x.xxx_hidden_Priority + } + return nil +} + +func (x *ScheduleActivityTaskCommandAttributes) SetActivityId(v string) { + x.xxx_hidden_ActivityId = v +} + +func (x *ScheduleActivityTaskCommandAttributes) SetActivityType(v *v1.ActivityType) { + x.xxx_hidden_ActivityType = v +} + +func (x *ScheduleActivityTaskCommandAttributes) SetTaskQueue(v *v11.TaskQueue) { + x.xxx_hidden_TaskQueue = v +} + +func (x *ScheduleActivityTaskCommandAttributes) SetHeader(v *v1.Header) { + x.xxx_hidden_Header = v +} + +func (x *ScheduleActivityTaskCommandAttributes) SetInput(v *v1.Payloads) { + x.xxx_hidden_Input = v +} + +func (x *ScheduleActivityTaskCommandAttributes) SetScheduleToCloseTimeout(v *durationpb.Duration) { + x.xxx_hidden_ScheduleToCloseTimeout = v +} + +func (x *ScheduleActivityTaskCommandAttributes) SetScheduleToStartTimeout(v *durationpb.Duration) { + x.xxx_hidden_ScheduleToStartTimeout = v +} + +func (x *ScheduleActivityTaskCommandAttributes) SetStartToCloseTimeout(v *durationpb.Duration) { + x.xxx_hidden_StartToCloseTimeout = v +} + +func (x *ScheduleActivityTaskCommandAttributes) SetHeartbeatTimeout(v *durationpb.Duration) { + x.xxx_hidden_HeartbeatTimeout = v +} + +func (x *ScheduleActivityTaskCommandAttributes) SetRetryPolicy(v *v1.RetryPolicy) { + x.xxx_hidden_RetryPolicy = v +} + +func (x *ScheduleActivityTaskCommandAttributes) SetRequestEagerExecution(v bool) { + x.xxx_hidden_RequestEagerExecution = v +} + +func (x *ScheduleActivityTaskCommandAttributes) SetUseWorkflowBuildId(v bool) { + x.xxx_hidden_UseWorkflowBuildId = v +} + +func (x *ScheduleActivityTaskCommandAttributes) SetPriority(v *v1.Priority) { + x.xxx_hidden_Priority = v +} + +func (x *ScheduleActivityTaskCommandAttributes) HasActivityType() bool { + if x == nil { + return false + } + return x.xxx_hidden_ActivityType != nil +} + +func (x *ScheduleActivityTaskCommandAttributes) HasTaskQueue() bool { + if x == nil { + return false + } + return x.xxx_hidden_TaskQueue != nil +} + +func (x *ScheduleActivityTaskCommandAttributes) HasHeader() bool { + if x == nil { + return false + } + return x.xxx_hidden_Header != nil +} + +func (x *ScheduleActivityTaskCommandAttributes) HasInput() bool { + if x == nil { + return false + } + return x.xxx_hidden_Input != nil +} + +func (x *ScheduleActivityTaskCommandAttributes) HasScheduleToCloseTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_ScheduleToCloseTimeout != nil +} + +func (x *ScheduleActivityTaskCommandAttributes) HasScheduleToStartTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_ScheduleToStartTimeout != nil +} + +func (x *ScheduleActivityTaskCommandAttributes) HasStartToCloseTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_StartToCloseTimeout != nil +} + +func (x *ScheduleActivityTaskCommandAttributes) HasHeartbeatTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_HeartbeatTimeout != nil +} + +func (x *ScheduleActivityTaskCommandAttributes) HasRetryPolicy() bool { + if x == nil { + return false + } + return x.xxx_hidden_RetryPolicy != nil +} + +func (x *ScheduleActivityTaskCommandAttributes) HasPriority() bool { + if x == nil { + return false + } + return x.xxx_hidden_Priority != nil +} + +func (x *ScheduleActivityTaskCommandAttributes) ClearActivityType() { + x.xxx_hidden_ActivityType = nil +} + +func (x *ScheduleActivityTaskCommandAttributes) ClearTaskQueue() { + x.xxx_hidden_TaskQueue = nil +} + +func (x *ScheduleActivityTaskCommandAttributes) ClearHeader() { + x.xxx_hidden_Header = nil +} + +func (x *ScheduleActivityTaskCommandAttributes) ClearInput() { + x.xxx_hidden_Input = nil +} + +func (x *ScheduleActivityTaskCommandAttributes) ClearScheduleToCloseTimeout() { + x.xxx_hidden_ScheduleToCloseTimeout = nil +} + +func (x *ScheduleActivityTaskCommandAttributes) ClearScheduleToStartTimeout() { + x.xxx_hidden_ScheduleToStartTimeout = nil +} + +func (x *ScheduleActivityTaskCommandAttributes) ClearStartToCloseTimeout() { + x.xxx_hidden_StartToCloseTimeout = nil +} + +func (x *ScheduleActivityTaskCommandAttributes) ClearHeartbeatTimeout() { + x.xxx_hidden_HeartbeatTimeout = nil +} + +func (x *ScheduleActivityTaskCommandAttributes) ClearRetryPolicy() { + x.xxx_hidden_RetryPolicy = nil +} + +func (x *ScheduleActivityTaskCommandAttributes) ClearPriority() { + x.xxx_hidden_Priority = nil +} + +type ScheduleActivityTaskCommandAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ActivityId string + ActivityType *v1.ActivityType + TaskQueue *v11.TaskQueue + Header *v1.Header + Input *v1.Payloads + // Indicates how long the caller is willing to wait for activity completion. The "schedule" time + // is when the activity is initially scheduled, not when the most recent retry is scheduled. + // Limits how long retries will be attempted. Either this or `start_to_close_timeout` must be + // specified. When not specified, defaults to the workflow execution timeout. + // + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + ScheduleToCloseTimeout *durationpb.Duration + // Limits the time an activity task can stay in a task queue before a worker picks it up. The + // "schedule" time is when the most recent retry is scheduled. This timeout should usually not + // be set: it's useful in specific scenarios like worker-specific task queues. This timeout is + // always non retryable, as all a retry would achieve is to put it back into the same queue. + // Defaults to `schedule_to_close_timeout` or workflow execution timeout if that is not + // specified. More info: + // https://docs.temporal.io/docs/content/what-is-a-schedule-to-start-timeout/ + // + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + ScheduleToStartTimeout *durationpb.Duration + // Maximum time an activity is allowed to execute after being picked up by a worker. This + // timeout is always retryable. Either this or `schedule_to_close_timeout` must be specified. + // + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + StartToCloseTimeout *durationpb.Duration + // Maximum permitted time between successful worker heartbeats. + HeartbeatTimeout *durationpb.Duration + // Activities are provided by a default retry policy which is controlled through the service's + // dynamic configuration. Retries will be attempted until `schedule_to_close_timeout` has + // elapsed. To disable retries set retry_policy.maximum_attempts to 1. + RetryPolicy *v1.RetryPolicy + // Request to start the activity directly bypassing matching service and worker polling + // The slot for executing the activity should be reserved when setting this field to true. + RequestEagerExecution bool + // If this is set, the activity would be assigned to the Build ID of the workflow. Otherwise, + // Assignment rules of the activity's Task Queue will be used to determine the Build ID. + UseWorkflowBuildId bool + // Priority metadata. If this message is not present, or any fields are not + // present, they inherit the values from the workflow. + Priority *v1.Priority +} + +func (b0 ScheduleActivityTaskCommandAttributes_builder) Build() *ScheduleActivityTaskCommandAttributes { + m0 := &ScheduleActivityTaskCommandAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ActivityId = b.ActivityId + x.xxx_hidden_ActivityType = b.ActivityType + x.xxx_hidden_TaskQueue = b.TaskQueue + x.xxx_hidden_Header = b.Header + x.xxx_hidden_Input = b.Input + x.xxx_hidden_ScheduleToCloseTimeout = b.ScheduleToCloseTimeout + x.xxx_hidden_ScheduleToStartTimeout = b.ScheduleToStartTimeout + x.xxx_hidden_StartToCloseTimeout = b.StartToCloseTimeout + x.xxx_hidden_HeartbeatTimeout = b.HeartbeatTimeout + x.xxx_hidden_RetryPolicy = b.RetryPolicy + x.xxx_hidden_RequestEagerExecution = b.RequestEagerExecution + x.xxx_hidden_UseWorkflowBuildId = b.UseWorkflowBuildId + x.xxx_hidden_Priority = b.Priority + return m0 +} + +type RequestCancelActivityTaskCommandAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ScheduledEventId int64 `protobuf:"varint,1,opt,name=scheduled_event_id,json=scheduledEventId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RequestCancelActivityTaskCommandAttributes) Reset() { + *x = RequestCancelActivityTaskCommandAttributes{} + mi := &file_temporal_api_command_v1_message_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RequestCancelActivityTaskCommandAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RequestCancelActivityTaskCommandAttributes) ProtoMessage() {} + +func (x *RequestCancelActivityTaskCommandAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_command_v1_message_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *RequestCancelActivityTaskCommandAttributes) GetScheduledEventId() int64 { + if x != nil { + return x.xxx_hidden_ScheduledEventId + } + return 0 +} + +func (x *RequestCancelActivityTaskCommandAttributes) SetScheduledEventId(v int64) { + x.xxx_hidden_ScheduledEventId = v +} + +type RequestCancelActivityTaskCommandAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The `ACTIVITY_TASK_SCHEDULED` event id for the activity being cancelled. + ScheduledEventId int64 +} + +func (b0 RequestCancelActivityTaskCommandAttributes_builder) Build() *RequestCancelActivityTaskCommandAttributes { + m0 := &RequestCancelActivityTaskCommandAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ScheduledEventId = b.ScheduledEventId + return m0 +} + +type StartTimerCommandAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_TimerId string `protobuf:"bytes,1,opt,name=timer_id,json=timerId,proto3"` + xxx_hidden_StartToFireTimeout *durationpb.Duration `protobuf:"bytes,2,opt,name=start_to_fire_timeout,json=startToFireTimeout,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *StartTimerCommandAttributes) Reset() { + *x = StartTimerCommandAttributes{} + mi := &file_temporal_api_command_v1_message_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *StartTimerCommandAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StartTimerCommandAttributes) ProtoMessage() {} + +func (x *StartTimerCommandAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_command_v1_message_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *StartTimerCommandAttributes) GetTimerId() string { + if x != nil { + return x.xxx_hidden_TimerId + } + return "" +} + +func (x *StartTimerCommandAttributes) GetStartToFireTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_StartToFireTimeout + } + return nil +} + +func (x *StartTimerCommandAttributes) SetTimerId(v string) { + x.xxx_hidden_TimerId = v +} + +func (x *StartTimerCommandAttributes) SetStartToFireTimeout(v *durationpb.Duration) { + x.xxx_hidden_StartToFireTimeout = v +} + +func (x *StartTimerCommandAttributes) HasStartToFireTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_StartToFireTimeout != nil +} + +func (x *StartTimerCommandAttributes) ClearStartToFireTimeout() { + x.xxx_hidden_StartToFireTimeout = nil +} + +type StartTimerCommandAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // An id for the timer, currently live timers must have different ids. Typically autogenerated + // by the SDK. + TimerId string + // How long until the timer fires, producing a `TIMER_FIRED` event. + // + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + StartToFireTimeout *durationpb.Duration +} + +func (b0 StartTimerCommandAttributes_builder) Build() *StartTimerCommandAttributes { + m0 := &StartTimerCommandAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_TimerId = b.TimerId + x.xxx_hidden_StartToFireTimeout = b.StartToFireTimeout + return m0 +} + +type CompleteWorkflowExecutionCommandAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Result *v1.Payloads `protobuf:"bytes,1,opt,name=result,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CompleteWorkflowExecutionCommandAttributes) Reset() { + *x = CompleteWorkflowExecutionCommandAttributes{} + mi := &file_temporal_api_command_v1_message_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CompleteWorkflowExecutionCommandAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CompleteWorkflowExecutionCommandAttributes) ProtoMessage() {} + +func (x *CompleteWorkflowExecutionCommandAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_command_v1_message_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *CompleteWorkflowExecutionCommandAttributes) GetResult() *v1.Payloads { + if x != nil { + return x.xxx_hidden_Result + } + return nil +} + +func (x *CompleteWorkflowExecutionCommandAttributes) SetResult(v *v1.Payloads) { + x.xxx_hidden_Result = v +} + +func (x *CompleteWorkflowExecutionCommandAttributes) HasResult() bool { + if x == nil { + return false + } + return x.xxx_hidden_Result != nil +} + +func (x *CompleteWorkflowExecutionCommandAttributes) ClearResult() { + x.xxx_hidden_Result = nil +} + +type CompleteWorkflowExecutionCommandAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Result *v1.Payloads +} + +func (b0 CompleteWorkflowExecutionCommandAttributes_builder) Build() *CompleteWorkflowExecutionCommandAttributes { + m0 := &CompleteWorkflowExecutionCommandAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Result = b.Result + return m0 +} + +type FailWorkflowExecutionCommandAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Failure *v12.Failure `protobuf:"bytes,1,opt,name=failure,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *FailWorkflowExecutionCommandAttributes) Reset() { + *x = FailWorkflowExecutionCommandAttributes{} + mi := &file_temporal_api_command_v1_message_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *FailWorkflowExecutionCommandAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FailWorkflowExecutionCommandAttributes) ProtoMessage() {} + +func (x *FailWorkflowExecutionCommandAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_command_v1_message_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *FailWorkflowExecutionCommandAttributes) GetFailure() *v12.Failure { + if x != nil { + return x.xxx_hidden_Failure + } + return nil +} + +func (x *FailWorkflowExecutionCommandAttributes) SetFailure(v *v12.Failure) { + x.xxx_hidden_Failure = v +} + +func (x *FailWorkflowExecutionCommandAttributes) HasFailure() bool { + if x == nil { + return false + } + return x.xxx_hidden_Failure != nil +} + +func (x *FailWorkflowExecutionCommandAttributes) ClearFailure() { + x.xxx_hidden_Failure = nil +} + +type FailWorkflowExecutionCommandAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Failure *v12.Failure +} + +func (b0 FailWorkflowExecutionCommandAttributes_builder) Build() *FailWorkflowExecutionCommandAttributes { + m0 := &FailWorkflowExecutionCommandAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Failure = b.Failure + return m0 +} + +type CancelTimerCommandAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_TimerId string `protobuf:"bytes,1,opt,name=timer_id,json=timerId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CancelTimerCommandAttributes) Reset() { + *x = CancelTimerCommandAttributes{} + mi := &file_temporal_api_command_v1_message_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CancelTimerCommandAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CancelTimerCommandAttributes) ProtoMessage() {} + +func (x *CancelTimerCommandAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_command_v1_message_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *CancelTimerCommandAttributes) GetTimerId() string { + if x != nil { + return x.xxx_hidden_TimerId + } + return "" +} + +func (x *CancelTimerCommandAttributes) SetTimerId(v string) { + x.xxx_hidden_TimerId = v +} + +type CancelTimerCommandAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The same timer id from the start timer command + TimerId string +} + +func (b0 CancelTimerCommandAttributes_builder) Build() *CancelTimerCommandAttributes { + m0 := &CancelTimerCommandAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_TimerId = b.TimerId + return m0 +} + +type CancelWorkflowExecutionCommandAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Details *v1.Payloads `protobuf:"bytes,1,opt,name=details,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CancelWorkflowExecutionCommandAttributes) Reset() { + *x = CancelWorkflowExecutionCommandAttributes{} + mi := &file_temporal_api_command_v1_message_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CancelWorkflowExecutionCommandAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CancelWorkflowExecutionCommandAttributes) ProtoMessage() {} + +func (x *CancelWorkflowExecutionCommandAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_command_v1_message_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *CancelWorkflowExecutionCommandAttributes) GetDetails() *v1.Payloads { + if x != nil { + return x.xxx_hidden_Details + } + return nil +} + +func (x *CancelWorkflowExecutionCommandAttributes) SetDetails(v *v1.Payloads) { + x.xxx_hidden_Details = v +} + +func (x *CancelWorkflowExecutionCommandAttributes) HasDetails() bool { + if x == nil { + return false + } + return x.xxx_hidden_Details != nil +} + +func (x *CancelWorkflowExecutionCommandAttributes) ClearDetails() { + x.xxx_hidden_Details = nil +} + +type CancelWorkflowExecutionCommandAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Details *v1.Payloads +} + +func (b0 CancelWorkflowExecutionCommandAttributes_builder) Build() *CancelWorkflowExecutionCommandAttributes { + m0 := &CancelWorkflowExecutionCommandAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Details = b.Details + return m0 +} + +type RequestCancelExternalWorkflowExecutionCommandAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_WorkflowId string `protobuf:"bytes,2,opt,name=workflow_id,json=workflowId,proto3"` + xxx_hidden_RunId string `protobuf:"bytes,3,opt,name=run_id,json=runId,proto3"` + xxx_hidden_Control string `protobuf:"bytes,4,opt,name=control,proto3"` + xxx_hidden_ChildWorkflowOnly bool `protobuf:"varint,5,opt,name=child_workflow_only,json=childWorkflowOnly,proto3"` + xxx_hidden_Reason string `protobuf:"bytes,6,opt,name=reason,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RequestCancelExternalWorkflowExecutionCommandAttributes) Reset() { + *x = RequestCancelExternalWorkflowExecutionCommandAttributes{} + mi := &file_temporal_api_command_v1_message_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RequestCancelExternalWorkflowExecutionCommandAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RequestCancelExternalWorkflowExecutionCommandAttributes) ProtoMessage() {} + +func (x *RequestCancelExternalWorkflowExecutionCommandAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_command_v1_message_proto_msgTypes[7] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *RequestCancelExternalWorkflowExecutionCommandAttributes) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *RequestCancelExternalWorkflowExecutionCommandAttributes) GetWorkflowId() string { + if x != nil { + return x.xxx_hidden_WorkflowId + } + return "" +} + +func (x *RequestCancelExternalWorkflowExecutionCommandAttributes) GetRunId() string { + if x != nil { + return x.xxx_hidden_RunId + } + return "" +} + +// Deprecated: Marked as deprecated in temporal/api/command/v1/message.proto. +func (x *RequestCancelExternalWorkflowExecutionCommandAttributes) GetControl() string { + if x != nil { + return x.xxx_hidden_Control + } + return "" +} + +func (x *RequestCancelExternalWorkflowExecutionCommandAttributes) GetChildWorkflowOnly() bool { + if x != nil { + return x.xxx_hidden_ChildWorkflowOnly + } + return false +} + +func (x *RequestCancelExternalWorkflowExecutionCommandAttributes) GetReason() string { + if x != nil { + return x.xxx_hidden_Reason + } + return "" +} + +func (x *RequestCancelExternalWorkflowExecutionCommandAttributes) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *RequestCancelExternalWorkflowExecutionCommandAttributes) SetWorkflowId(v string) { + x.xxx_hidden_WorkflowId = v +} + +func (x *RequestCancelExternalWorkflowExecutionCommandAttributes) SetRunId(v string) { + x.xxx_hidden_RunId = v +} + +// Deprecated: Marked as deprecated in temporal/api/command/v1/message.proto. +func (x *RequestCancelExternalWorkflowExecutionCommandAttributes) SetControl(v string) { + x.xxx_hidden_Control = v +} + +func (x *RequestCancelExternalWorkflowExecutionCommandAttributes) SetChildWorkflowOnly(v bool) { + x.xxx_hidden_ChildWorkflowOnly = v +} + +func (x *RequestCancelExternalWorkflowExecutionCommandAttributes) SetReason(v string) { + x.xxx_hidden_Reason = v +} + +type RequestCancelExternalWorkflowExecutionCommandAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + WorkflowId string + RunId string + // Deprecated. + // + // Deprecated: Marked as deprecated in temporal/api/command/v1/message.proto. + Control string + // Set this to true if the workflow being cancelled is a child of the workflow originating this + // command. The request will be rejected if it is set to true and the target workflow is *not* + // a child of the requesting workflow. + ChildWorkflowOnly bool + // Reason for requesting the cancellation + Reason string +} + +func (b0 RequestCancelExternalWorkflowExecutionCommandAttributes_builder) Build() *RequestCancelExternalWorkflowExecutionCommandAttributes { + m0 := &RequestCancelExternalWorkflowExecutionCommandAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_WorkflowId = b.WorkflowId + x.xxx_hidden_RunId = b.RunId + x.xxx_hidden_Control = b.Control + x.xxx_hidden_ChildWorkflowOnly = b.ChildWorkflowOnly + x.xxx_hidden_Reason = b.Reason + return m0 +} + +type SignalExternalWorkflowExecutionCommandAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_Execution *v1.WorkflowExecution `protobuf:"bytes,2,opt,name=execution,proto3"` + xxx_hidden_SignalName string `protobuf:"bytes,3,opt,name=signal_name,json=signalName,proto3"` + xxx_hidden_Input *v1.Payloads `protobuf:"bytes,4,opt,name=input,proto3"` + xxx_hidden_Control string `protobuf:"bytes,5,opt,name=control,proto3"` + xxx_hidden_ChildWorkflowOnly bool `protobuf:"varint,6,opt,name=child_workflow_only,json=childWorkflowOnly,proto3"` + xxx_hidden_Header *v1.Header `protobuf:"bytes,7,opt,name=header,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SignalExternalWorkflowExecutionCommandAttributes) Reset() { + *x = SignalExternalWorkflowExecutionCommandAttributes{} + mi := &file_temporal_api_command_v1_message_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SignalExternalWorkflowExecutionCommandAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SignalExternalWorkflowExecutionCommandAttributes) ProtoMessage() {} + +func (x *SignalExternalWorkflowExecutionCommandAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_command_v1_message_proto_msgTypes[8] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *SignalExternalWorkflowExecutionCommandAttributes) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *SignalExternalWorkflowExecutionCommandAttributes) GetExecution() *v1.WorkflowExecution { + if x != nil { + return x.xxx_hidden_Execution + } + return nil +} + +func (x *SignalExternalWorkflowExecutionCommandAttributes) GetSignalName() string { + if x != nil { + return x.xxx_hidden_SignalName + } + return "" +} + +func (x *SignalExternalWorkflowExecutionCommandAttributes) GetInput() *v1.Payloads { + if x != nil { + return x.xxx_hidden_Input + } + return nil +} + +// Deprecated: Marked as deprecated in temporal/api/command/v1/message.proto. +func (x *SignalExternalWorkflowExecutionCommandAttributes) GetControl() string { + if x != nil { + return x.xxx_hidden_Control + } + return "" +} + +func (x *SignalExternalWorkflowExecutionCommandAttributes) GetChildWorkflowOnly() bool { + if x != nil { + return x.xxx_hidden_ChildWorkflowOnly + } + return false +} + +func (x *SignalExternalWorkflowExecutionCommandAttributes) GetHeader() *v1.Header { + if x != nil { + return x.xxx_hidden_Header + } + return nil +} + +func (x *SignalExternalWorkflowExecutionCommandAttributes) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *SignalExternalWorkflowExecutionCommandAttributes) SetExecution(v *v1.WorkflowExecution) { + x.xxx_hidden_Execution = v +} + +func (x *SignalExternalWorkflowExecutionCommandAttributes) SetSignalName(v string) { + x.xxx_hidden_SignalName = v +} + +func (x *SignalExternalWorkflowExecutionCommandAttributes) SetInput(v *v1.Payloads) { + x.xxx_hidden_Input = v +} + +// Deprecated: Marked as deprecated in temporal/api/command/v1/message.proto. +func (x *SignalExternalWorkflowExecutionCommandAttributes) SetControl(v string) { + x.xxx_hidden_Control = v +} + +func (x *SignalExternalWorkflowExecutionCommandAttributes) SetChildWorkflowOnly(v bool) { + x.xxx_hidden_ChildWorkflowOnly = v +} + +func (x *SignalExternalWorkflowExecutionCommandAttributes) SetHeader(v *v1.Header) { + x.xxx_hidden_Header = v +} + +func (x *SignalExternalWorkflowExecutionCommandAttributes) HasExecution() bool { + if x == nil { + return false + } + return x.xxx_hidden_Execution != nil +} + +func (x *SignalExternalWorkflowExecutionCommandAttributes) HasInput() bool { + if x == nil { + return false + } + return x.xxx_hidden_Input != nil +} + +func (x *SignalExternalWorkflowExecutionCommandAttributes) HasHeader() bool { + if x == nil { + return false + } + return x.xxx_hidden_Header != nil +} + +func (x *SignalExternalWorkflowExecutionCommandAttributes) ClearExecution() { + x.xxx_hidden_Execution = nil +} + +func (x *SignalExternalWorkflowExecutionCommandAttributes) ClearInput() { + x.xxx_hidden_Input = nil +} + +func (x *SignalExternalWorkflowExecutionCommandAttributes) ClearHeader() { + x.xxx_hidden_Header = nil +} + +type SignalExternalWorkflowExecutionCommandAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + Execution *v1.WorkflowExecution + // The workflow author-defined name of the signal to send to the workflow. + SignalName string + // Serialized value(s) to provide with the signal. + Input *v1.Payloads + // Deprecated + // + // Deprecated: Marked as deprecated in temporal/api/command/v1/message.proto. + Control string + // Set this to true if the workflow being cancelled is a child of the workflow originating this + // command. The request will be rejected if it is set to true and the target workflow is *not* + // a child of the requesting workflow. + ChildWorkflowOnly bool + // Headers that are passed by the workflow that is sending a signal to the external + // workflow that is receiving this signal. + Header *v1.Header +} + +func (b0 SignalExternalWorkflowExecutionCommandAttributes_builder) Build() *SignalExternalWorkflowExecutionCommandAttributes { + m0 := &SignalExternalWorkflowExecutionCommandAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_Execution = b.Execution + x.xxx_hidden_SignalName = b.SignalName + x.xxx_hidden_Input = b.Input + x.xxx_hidden_Control = b.Control + x.xxx_hidden_ChildWorkflowOnly = b.ChildWorkflowOnly + x.xxx_hidden_Header = b.Header + return m0 +} + +type UpsertWorkflowSearchAttributesCommandAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_SearchAttributes *v1.SearchAttributes `protobuf:"bytes,1,opt,name=search_attributes,json=searchAttributes,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpsertWorkflowSearchAttributesCommandAttributes) Reset() { + *x = UpsertWorkflowSearchAttributesCommandAttributes{} + mi := &file_temporal_api_command_v1_message_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpsertWorkflowSearchAttributesCommandAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpsertWorkflowSearchAttributesCommandAttributes) ProtoMessage() {} + +func (x *UpsertWorkflowSearchAttributesCommandAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_command_v1_message_proto_msgTypes[9] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UpsertWorkflowSearchAttributesCommandAttributes) GetSearchAttributes() *v1.SearchAttributes { + if x != nil { + return x.xxx_hidden_SearchAttributes + } + return nil +} + +func (x *UpsertWorkflowSearchAttributesCommandAttributes) SetSearchAttributes(v *v1.SearchAttributes) { + x.xxx_hidden_SearchAttributes = v +} + +func (x *UpsertWorkflowSearchAttributesCommandAttributes) HasSearchAttributes() bool { + if x == nil { + return false + } + return x.xxx_hidden_SearchAttributes != nil +} + +func (x *UpsertWorkflowSearchAttributesCommandAttributes) ClearSearchAttributes() { + x.xxx_hidden_SearchAttributes = nil +} + +type UpsertWorkflowSearchAttributesCommandAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + SearchAttributes *v1.SearchAttributes +} + +func (b0 UpsertWorkflowSearchAttributesCommandAttributes_builder) Build() *UpsertWorkflowSearchAttributesCommandAttributes { + m0 := &UpsertWorkflowSearchAttributesCommandAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_SearchAttributes = b.SearchAttributes + return m0 +} + +type ModifyWorkflowPropertiesCommandAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_UpsertedMemo *v1.Memo `protobuf:"bytes,1,opt,name=upserted_memo,json=upsertedMemo,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ModifyWorkflowPropertiesCommandAttributes) Reset() { + *x = ModifyWorkflowPropertiesCommandAttributes{} + mi := &file_temporal_api_command_v1_message_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ModifyWorkflowPropertiesCommandAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ModifyWorkflowPropertiesCommandAttributes) ProtoMessage() {} + +func (x *ModifyWorkflowPropertiesCommandAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_command_v1_message_proto_msgTypes[10] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ModifyWorkflowPropertiesCommandAttributes) GetUpsertedMemo() *v1.Memo { + if x != nil { + return x.xxx_hidden_UpsertedMemo + } + return nil +} + +func (x *ModifyWorkflowPropertiesCommandAttributes) SetUpsertedMemo(v *v1.Memo) { + x.xxx_hidden_UpsertedMemo = v +} + +func (x *ModifyWorkflowPropertiesCommandAttributes) HasUpsertedMemo() bool { + if x == nil { + return false + } + return x.xxx_hidden_UpsertedMemo != nil +} + +func (x *ModifyWorkflowPropertiesCommandAttributes) ClearUpsertedMemo() { + x.xxx_hidden_UpsertedMemo = nil +} + +type ModifyWorkflowPropertiesCommandAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // If set, update the workflow memo with the provided values. The values will be merged with + // the existing memo. If the user wants to delete values, a default/empty Payload should be + // used as the value for the key being deleted. + UpsertedMemo *v1.Memo +} + +func (b0 ModifyWorkflowPropertiesCommandAttributes_builder) Build() *ModifyWorkflowPropertiesCommandAttributes { + m0 := &ModifyWorkflowPropertiesCommandAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_UpsertedMemo = b.UpsertedMemo + return m0 +} + +type RecordMarkerCommandAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_MarkerName string `protobuf:"bytes,1,opt,name=marker_name,json=markerName,proto3"` + xxx_hidden_Details map[string]*v1.Payloads `protobuf:"bytes,2,rep,name=details,proto3" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + xxx_hidden_Header *v1.Header `protobuf:"bytes,3,opt,name=header,proto3"` + xxx_hidden_Failure *v12.Failure `protobuf:"bytes,4,opt,name=failure,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RecordMarkerCommandAttributes) Reset() { + *x = RecordMarkerCommandAttributes{} + mi := &file_temporal_api_command_v1_message_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RecordMarkerCommandAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RecordMarkerCommandAttributes) ProtoMessage() {} + +func (x *RecordMarkerCommandAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_command_v1_message_proto_msgTypes[11] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *RecordMarkerCommandAttributes) GetMarkerName() string { + if x != nil { + return x.xxx_hidden_MarkerName + } + return "" +} + +func (x *RecordMarkerCommandAttributes) GetDetails() map[string]*v1.Payloads { + if x != nil { + return x.xxx_hidden_Details + } + return nil +} + +func (x *RecordMarkerCommandAttributes) GetHeader() *v1.Header { + if x != nil { + return x.xxx_hidden_Header + } + return nil +} + +func (x *RecordMarkerCommandAttributes) GetFailure() *v12.Failure { + if x != nil { + return x.xxx_hidden_Failure + } + return nil +} + +func (x *RecordMarkerCommandAttributes) SetMarkerName(v string) { + x.xxx_hidden_MarkerName = v +} + +func (x *RecordMarkerCommandAttributes) SetDetails(v map[string]*v1.Payloads) { + x.xxx_hidden_Details = v +} + +func (x *RecordMarkerCommandAttributes) SetHeader(v *v1.Header) { + x.xxx_hidden_Header = v +} + +func (x *RecordMarkerCommandAttributes) SetFailure(v *v12.Failure) { + x.xxx_hidden_Failure = v +} + +func (x *RecordMarkerCommandAttributes) HasHeader() bool { + if x == nil { + return false + } + return x.xxx_hidden_Header != nil +} + +func (x *RecordMarkerCommandAttributes) HasFailure() bool { + if x == nil { + return false + } + return x.xxx_hidden_Failure != nil +} + +func (x *RecordMarkerCommandAttributes) ClearHeader() { + x.xxx_hidden_Header = nil +} + +func (x *RecordMarkerCommandAttributes) ClearFailure() { + x.xxx_hidden_Failure = nil +} + +type RecordMarkerCommandAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + MarkerName string + Details map[string]*v1.Payloads + Header *v1.Header + Failure *v12.Failure +} + +func (b0 RecordMarkerCommandAttributes_builder) Build() *RecordMarkerCommandAttributes { + m0 := &RecordMarkerCommandAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_MarkerName = b.MarkerName + x.xxx_hidden_Details = b.Details + x.xxx_hidden_Header = b.Header + x.xxx_hidden_Failure = b.Failure + return m0 +} + +type ContinueAsNewWorkflowExecutionCommandAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_WorkflowType *v1.WorkflowType `protobuf:"bytes,1,opt,name=workflow_type,json=workflowType,proto3"` + xxx_hidden_TaskQueue *v11.TaskQueue `protobuf:"bytes,2,opt,name=task_queue,json=taskQueue,proto3"` + xxx_hidden_Input *v1.Payloads `protobuf:"bytes,3,opt,name=input,proto3"` + xxx_hidden_WorkflowRunTimeout *durationpb.Duration `protobuf:"bytes,4,opt,name=workflow_run_timeout,json=workflowRunTimeout,proto3"` + xxx_hidden_WorkflowTaskTimeout *durationpb.Duration `protobuf:"bytes,5,opt,name=workflow_task_timeout,json=workflowTaskTimeout,proto3"` + xxx_hidden_BackoffStartInterval *durationpb.Duration `protobuf:"bytes,6,opt,name=backoff_start_interval,json=backoffStartInterval,proto3"` + xxx_hidden_RetryPolicy *v1.RetryPolicy `protobuf:"bytes,7,opt,name=retry_policy,json=retryPolicy,proto3"` + xxx_hidden_Initiator v13.ContinueAsNewInitiator `protobuf:"varint,8,opt,name=initiator,proto3,enum=temporal.api.enums.v1.ContinueAsNewInitiator"` + xxx_hidden_Failure *v12.Failure `protobuf:"bytes,9,opt,name=failure,proto3"` + xxx_hidden_LastCompletionResult *v1.Payloads `protobuf:"bytes,10,opt,name=last_completion_result,json=lastCompletionResult,proto3"` + xxx_hidden_CronSchedule string `protobuf:"bytes,11,opt,name=cron_schedule,json=cronSchedule,proto3"` + xxx_hidden_Header *v1.Header `protobuf:"bytes,12,opt,name=header,proto3"` + xxx_hidden_Memo *v1.Memo `protobuf:"bytes,13,opt,name=memo,proto3"` + xxx_hidden_SearchAttributes *v1.SearchAttributes `protobuf:"bytes,14,opt,name=search_attributes,json=searchAttributes,proto3"` + xxx_hidden_InheritBuildId bool `protobuf:"varint,15,opt,name=inherit_build_id,json=inheritBuildId,proto3"` + xxx_hidden_InitialVersioningBehavior v13.ContinueAsNewVersioningBehavior `protobuf:"varint,16,opt,name=initial_versioning_behavior,json=initialVersioningBehavior,proto3,enum=temporal.api.enums.v1.ContinueAsNewVersioningBehavior"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) Reset() { + *x = ContinueAsNewWorkflowExecutionCommandAttributes{} + mi := &file_temporal_api_command_v1_message_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ContinueAsNewWorkflowExecutionCommandAttributes) ProtoMessage() {} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_command_v1_message_proto_msgTypes[12] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) GetWorkflowType() *v1.WorkflowType { + if x != nil { + return x.xxx_hidden_WorkflowType + } + return nil +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) GetTaskQueue() *v11.TaskQueue { + if x != nil { + return x.xxx_hidden_TaskQueue + } + return nil +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) GetInput() *v1.Payloads { + if x != nil { + return x.xxx_hidden_Input + } + return nil +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) GetWorkflowRunTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_WorkflowRunTimeout + } + return nil +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) GetWorkflowTaskTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_WorkflowTaskTimeout + } + return nil +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) GetBackoffStartInterval() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_BackoffStartInterval + } + return nil +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) GetRetryPolicy() *v1.RetryPolicy { + if x != nil { + return x.xxx_hidden_RetryPolicy + } + return nil +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) GetInitiator() v13.ContinueAsNewInitiator { + if x != nil { + return x.xxx_hidden_Initiator + } + return v13.ContinueAsNewInitiator(0) +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) GetFailure() *v12.Failure { + if x != nil { + return x.xxx_hidden_Failure + } + return nil +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) GetLastCompletionResult() *v1.Payloads { + if x != nil { + return x.xxx_hidden_LastCompletionResult + } + return nil +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) GetCronSchedule() string { + if x != nil { + return x.xxx_hidden_CronSchedule + } + return "" +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) GetHeader() *v1.Header { + if x != nil { + return x.xxx_hidden_Header + } + return nil +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) GetMemo() *v1.Memo { + if x != nil { + return x.xxx_hidden_Memo + } + return nil +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) GetSearchAttributes() *v1.SearchAttributes { + if x != nil { + return x.xxx_hidden_SearchAttributes + } + return nil +} + +// Deprecated: Marked as deprecated in temporal/api/command/v1/message.proto. +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) GetInheritBuildId() bool { + if x != nil { + return x.xxx_hidden_InheritBuildId + } + return false +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) GetInitialVersioningBehavior() v13.ContinueAsNewVersioningBehavior { + if x != nil { + return x.xxx_hidden_InitialVersioningBehavior + } + return v13.ContinueAsNewVersioningBehavior(0) +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) SetWorkflowType(v *v1.WorkflowType) { + x.xxx_hidden_WorkflowType = v +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) SetTaskQueue(v *v11.TaskQueue) { + x.xxx_hidden_TaskQueue = v +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) SetInput(v *v1.Payloads) { + x.xxx_hidden_Input = v +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) SetWorkflowRunTimeout(v *durationpb.Duration) { + x.xxx_hidden_WorkflowRunTimeout = v +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) SetWorkflowTaskTimeout(v *durationpb.Duration) { + x.xxx_hidden_WorkflowTaskTimeout = v +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) SetBackoffStartInterval(v *durationpb.Duration) { + x.xxx_hidden_BackoffStartInterval = v +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) SetRetryPolicy(v *v1.RetryPolicy) { + x.xxx_hidden_RetryPolicy = v +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) SetInitiator(v v13.ContinueAsNewInitiator) { + x.xxx_hidden_Initiator = v +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) SetFailure(v *v12.Failure) { + x.xxx_hidden_Failure = v +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) SetLastCompletionResult(v *v1.Payloads) { + x.xxx_hidden_LastCompletionResult = v +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) SetCronSchedule(v string) { + x.xxx_hidden_CronSchedule = v +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) SetHeader(v *v1.Header) { + x.xxx_hidden_Header = v +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) SetMemo(v *v1.Memo) { + x.xxx_hidden_Memo = v +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) SetSearchAttributes(v *v1.SearchAttributes) { + x.xxx_hidden_SearchAttributes = v +} + +// Deprecated: Marked as deprecated in temporal/api/command/v1/message.proto. +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) SetInheritBuildId(v bool) { + x.xxx_hidden_InheritBuildId = v +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) SetInitialVersioningBehavior(v v13.ContinueAsNewVersioningBehavior) { + x.xxx_hidden_InitialVersioningBehavior = v +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) HasWorkflowType() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowType != nil +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) HasTaskQueue() bool { + if x == nil { + return false + } + return x.xxx_hidden_TaskQueue != nil +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) HasInput() bool { + if x == nil { + return false + } + return x.xxx_hidden_Input != nil +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) HasWorkflowRunTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowRunTimeout != nil +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) HasWorkflowTaskTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowTaskTimeout != nil +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) HasBackoffStartInterval() bool { + if x == nil { + return false + } + return x.xxx_hidden_BackoffStartInterval != nil +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) HasRetryPolicy() bool { + if x == nil { + return false + } + return x.xxx_hidden_RetryPolicy != nil +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) HasFailure() bool { + if x == nil { + return false + } + return x.xxx_hidden_Failure != nil +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) HasLastCompletionResult() bool { + if x == nil { + return false + } + return x.xxx_hidden_LastCompletionResult != nil +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) HasHeader() bool { + if x == nil { + return false + } + return x.xxx_hidden_Header != nil +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) HasMemo() bool { + if x == nil { + return false + } + return x.xxx_hidden_Memo != nil +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) HasSearchAttributes() bool { + if x == nil { + return false + } + return x.xxx_hidden_SearchAttributes != nil +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) ClearWorkflowType() { + x.xxx_hidden_WorkflowType = nil +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) ClearTaskQueue() { + x.xxx_hidden_TaskQueue = nil +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) ClearInput() { + x.xxx_hidden_Input = nil +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) ClearWorkflowRunTimeout() { + x.xxx_hidden_WorkflowRunTimeout = nil +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) ClearWorkflowTaskTimeout() { + x.xxx_hidden_WorkflowTaskTimeout = nil +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) ClearBackoffStartInterval() { + x.xxx_hidden_BackoffStartInterval = nil +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) ClearRetryPolicy() { + x.xxx_hidden_RetryPolicy = nil +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) ClearFailure() { + x.xxx_hidden_Failure = nil +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) ClearLastCompletionResult() { + x.xxx_hidden_LastCompletionResult = nil +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) ClearHeader() { + x.xxx_hidden_Header = nil +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) ClearMemo() { + x.xxx_hidden_Memo = nil +} + +func (x *ContinueAsNewWorkflowExecutionCommandAttributes) ClearSearchAttributes() { + x.xxx_hidden_SearchAttributes = nil +} + +type ContinueAsNewWorkflowExecutionCommandAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + WorkflowType *v1.WorkflowType + TaskQueue *v11.TaskQueue + Input *v1.Payloads + // Timeout of a single workflow run. + WorkflowRunTimeout *durationpb.Duration + // Timeout of a single workflow task. + WorkflowTaskTimeout *durationpb.Duration + // How long the workflow start will be delayed - not really a "backoff" in the traditional sense. + BackoffStartInterval *durationpb.Duration + RetryPolicy *v1.RetryPolicy + // Should be removed + Initiator v13.ContinueAsNewInitiator + // Should be removed + Failure *v12.Failure + // Should be removed + LastCompletionResult *v1.Payloads + // Should be removed. Not necessarily unused but unclear and not exposed by SDKs. + CronSchedule string + Header *v1.Header + Memo *v1.Memo + SearchAttributes *v1.SearchAttributes + // If this is set, the new execution inherits the Build ID of the current execution. Otherwise, + // the assignment rules will be used to independently assign a Build ID to the new execution. + // Deprecated. Only considered for versioning v0.2. + // + // Deprecated: Marked as deprecated in temporal/api/command/v1/message.proto. + InheritBuildId bool + // Experimental. Optionally decide the versioning behavior that the first task of the new run should use. + // For example, choose to AutoUpgrade on continue-as-new instead of inheriting the pinned version + // of the previous run. + InitialVersioningBehavior v13.ContinueAsNewVersioningBehavior +} + +func (b0 ContinueAsNewWorkflowExecutionCommandAttributes_builder) Build() *ContinueAsNewWorkflowExecutionCommandAttributes { + m0 := &ContinueAsNewWorkflowExecutionCommandAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_WorkflowType = b.WorkflowType + x.xxx_hidden_TaskQueue = b.TaskQueue + x.xxx_hidden_Input = b.Input + x.xxx_hidden_WorkflowRunTimeout = b.WorkflowRunTimeout + x.xxx_hidden_WorkflowTaskTimeout = b.WorkflowTaskTimeout + x.xxx_hidden_BackoffStartInterval = b.BackoffStartInterval + x.xxx_hidden_RetryPolicy = b.RetryPolicy + x.xxx_hidden_Initiator = b.Initiator + x.xxx_hidden_Failure = b.Failure + x.xxx_hidden_LastCompletionResult = b.LastCompletionResult + x.xxx_hidden_CronSchedule = b.CronSchedule + x.xxx_hidden_Header = b.Header + x.xxx_hidden_Memo = b.Memo + x.xxx_hidden_SearchAttributes = b.SearchAttributes + x.xxx_hidden_InheritBuildId = b.InheritBuildId + x.xxx_hidden_InitialVersioningBehavior = b.InitialVersioningBehavior + return m0 +} + +type StartChildWorkflowExecutionCommandAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_WorkflowId string `protobuf:"bytes,2,opt,name=workflow_id,json=workflowId,proto3"` + xxx_hidden_WorkflowType *v1.WorkflowType `protobuf:"bytes,3,opt,name=workflow_type,json=workflowType,proto3"` + xxx_hidden_TaskQueue *v11.TaskQueue `protobuf:"bytes,4,opt,name=task_queue,json=taskQueue,proto3"` + xxx_hidden_Input *v1.Payloads `protobuf:"bytes,5,opt,name=input,proto3"` + xxx_hidden_WorkflowExecutionTimeout *durationpb.Duration `protobuf:"bytes,6,opt,name=workflow_execution_timeout,json=workflowExecutionTimeout,proto3"` + xxx_hidden_WorkflowRunTimeout *durationpb.Duration `protobuf:"bytes,7,opt,name=workflow_run_timeout,json=workflowRunTimeout,proto3"` + xxx_hidden_WorkflowTaskTimeout *durationpb.Duration `protobuf:"bytes,8,opt,name=workflow_task_timeout,json=workflowTaskTimeout,proto3"` + xxx_hidden_ParentClosePolicy v13.ParentClosePolicy `protobuf:"varint,9,opt,name=parent_close_policy,json=parentClosePolicy,proto3,enum=temporal.api.enums.v1.ParentClosePolicy"` + xxx_hidden_Control string `protobuf:"bytes,10,opt,name=control,proto3"` + xxx_hidden_WorkflowIdReusePolicy v13.WorkflowIdReusePolicy `protobuf:"varint,11,opt,name=workflow_id_reuse_policy,json=workflowIdReusePolicy,proto3,enum=temporal.api.enums.v1.WorkflowIdReusePolicy"` + xxx_hidden_RetryPolicy *v1.RetryPolicy `protobuf:"bytes,12,opt,name=retry_policy,json=retryPolicy,proto3"` + xxx_hidden_CronSchedule string `protobuf:"bytes,13,opt,name=cron_schedule,json=cronSchedule,proto3"` + xxx_hidden_Header *v1.Header `protobuf:"bytes,14,opt,name=header,proto3"` + xxx_hidden_Memo *v1.Memo `protobuf:"bytes,15,opt,name=memo,proto3"` + xxx_hidden_SearchAttributes *v1.SearchAttributes `protobuf:"bytes,16,opt,name=search_attributes,json=searchAttributes,proto3"` + xxx_hidden_InheritBuildId bool `protobuf:"varint,17,opt,name=inherit_build_id,json=inheritBuildId,proto3"` + xxx_hidden_Priority *v1.Priority `protobuf:"bytes,18,opt,name=priority,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *StartChildWorkflowExecutionCommandAttributes) Reset() { + *x = StartChildWorkflowExecutionCommandAttributes{} + mi := &file_temporal_api_command_v1_message_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *StartChildWorkflowExecutionCommandAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StartChildWorkflowExecutionCommandAttributes) ProtoMessage() {} + +func (x *StartChildWorkflowExecutionCommandAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_command_v1_message_proto_msgTypes[13] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *StartChildWorkflowExecutionCommandAttributes) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *StartChildWorkflowExecutionCommandAttributes) GetWorkflowId() string { + if x != nil { + return x.xxx_hidden_WorkflowId + } + return "" +} + +func (x *StartChildWorkflowExecutionCommandAttributes) GetWorkflowType() *v1.WorkflowType { + if x != nil { + return x.xxx_hidden_WorkflowType + } + return nil +} + +func (x *StartChildWorkflowExecutionCommandAttributes) GetTaskQueue() *v11.TaskQueue { + if x != nil { + return x.xxx_hidden_TaskQueue + } + return nil +} + +func (x *StartChildWorkflowExecutionCommandAttributes) GetInput() *v1.Payloads { + if x != nil { + return x.xxx_hidden_Input + } + return nil +} + +func (x *StartChildWorkflowExecutionCommandAttributes) GetWorkflowExecutionTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_WorkflowExecutionTimeout + } + return nil +} + +func (x *StartChildWorkflowExecutionCommandAttributes) GetWorkflowRunTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_WorkflowRunTimeout + } + return nil +} + +func (x *StartChildWorkflowExecutionCommandAttributes) GetWorkflowTaskTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_WorkflowTaskTimeout + } + return nil +} + +func (x *StartChildWorkflowExecutionCommandAttributes) GetParentClosePolicy() v13.ParentClosePolicy { + if x != nil { + return x.xxx_hidden_ParentClosePolicy + } + return v13.ParentClosePolicy(0) +} + +func (x *StartChildWorkflowExecutionCommandAttributes) GetControl() string { + if x != nil { + return x.xxx_hidden_Control + } + return "" +} + +func (x *StartChildWorkflowExecutionCommandAttributes) GetWorkflowIdReusePolicy() v13.WorkflowIdReusePolicy { + if x != nil { + return x.xxx_hidden_WorkflowIdReusePolicy + } + return v13.WorkflowIdReusePolicy(0) +} + +func (x *StartChildWorkflowExecutionCommandAttributes) GetRetryPolicy() *v1.RetryPolicy { + if x != nil { + return x.xxx_hidden_RetryPolicy + } + return nil +} + +func (x *StartChildWorkflowExecutionCommandAttributes) GetCronSchedule() string { + if x != nil { + return x.xxx_hidden_CronSchedule + } + return "" +} + +func (x *StartChildWorkflowExecutionCommandAttributes) GetHeader() *v1.Header { + if x != nil { + return x.xxx_hidden_Header + } + return nil +} + +func (x *StartChildWorkflowExecutionCommandAttributes) GetMemo() *v1.Memo { + if x != nil { + return x.xxx_hidden_Memo + } + return nil +} + +func (x *StartChildWorkflowExecutionCommandAttributes) GetSearchAttributes() *v1.SearchAttributes { + if x != nil { + return x.xxx_hidden_SearchAttributes + } + return nil +} + +// Deprecated: Marked as deprecated in temporal/api/command/v1/message.proto. +func (x *StartChildWorkflowExecutionCommandAttributes) GetInheritBuildId() bool { + if x != nil { + return x.xxx_hidden_InheritBuildId + } + return false +} + +func (x *StartChildWorkflowExecutionCommandAttributes) GetPriority() *v1.Priority { + if x != nil { + return x.xxx_hidden_Priority + } + return nil +} + +func (x *StartChildWorkflowExecutionCommandAttributes) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *StartChildWorkflowExecutionCommandAttributes) SetWorkflowId(v string) { + x.xxx_hidden_WorkflowId = v +} + +func (x *StartChildWorkflowExecutionCommandAttributes) SetWorkflowType(v *v1.WorkflowType) { + x.xxx_hidden_WorkflowType = v +} + +func (x *StartChildWorkflowExecutionCommandAttributes) SetTaskQueue(v *v11.TaskQueue) { + x.xxx_hidden_TaskQueue = v +} + +func (x *StartChildWorkflowExecutionCommandAttributes) SetInput(v *v1.Payloads) { + x.xxx_hidden_Input = v +} + +func (x *StartChildWorkflowExecutionCommandAttributes) SetWorkflowExecutionTimeout(v *durationpb.Duration) { + x.xxx_hidden_WorkflowExecutionTimeout = v +} + +func (x *StartChildWorkflowExecutionCommandAttributes) SetWorkflowRunTimeout(v *durationpb.Duration) { + x.xxx_hidden_WorkflowRunTimeout = v +} + +func (x *StartChildWorkflowExecutionCommandAttributes) SetWorkflowTaskTimeout(v *durationpb.Duration) { + x.xxx_hidden_WorkflowTaskTimeout = v +} + +func (x *StartChildWorkflowExecutionCommandAttributes) SetParentClosePolicy(v v13.ParentClosePolicy) { + x.xxx_hidden_ParentClosePolicy = v +} + +func (x *StartChildWorkflowExecutionCommandAttributes) SetControl(v string) { + x.xxx_hidden_Control = v +} + +func (x *StartChildWorkflowExecutionCommandAttributes) SetWorkflowIdReusePolicy(v v13.WorkflowIdReusePolicy) { + x.xxx_hidden_WorkflowIdReusePolicy = v +} + +func (x *StartChildWorkflowExecutionCommandAttributes) SetRetryPolicy(v *v1.RetryPolicy) { + x.xxx_hidden_RetryPolicy = v +} + +func (x *StartChildWorkflowExecutionCommandAttributes) SetCronSchedule(v string) { + x.xxx_hidden_CronSchedule = v +} + +func (x *StartChildWorkflowExecutionCommandAttributes) SetHeader(v *v1.Header) { + x.xxx_hidden_Header = v +} + +func (x *StartChildWorkflowExecutionCommandAttributes) SetMemo(v *v1.Memo) { + x.xxx_hidden_Memo = v +} + +func (x *StartChildWorkflowExecutionCommandAttributes) SetSearchAttributes(v *v1.SearchAttributes) { + x.xxx_hidden_SearchAttributes = v +} + +// Deprecated: Marked as deprecated in temporal/api/command/v1/message.proto. +func (x *StartChildWorkflowExecutionCommandAttributes) SetInheritBuildId(v bool) { + x.xxx_hidden_InheritBuildId = v +} + +func (x *StartChildWorkflowExecutionCommandAttributes) SetPriority(v *v1.Priority) { + x.xxx_hidden_Priority = v +} + +func (x *StartChildWorkflowExecutionCommandAttributes) HasWorkflowType() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowType != nil +} + +func (x *StartChildWorkflowExecutionCommandAttributes) HasTaskQueue() bool { + if x == nil { + return false + } + return x.xxx_hidden_TaskQueue != nil +} + +func (x *StartChildWorkflowExecutionCommandAttributes) HasInput() bool { + if x == nil { + return false + } + return x.xxx_hidden_Input != nil +} + +func (x *StartChildWorkflowExecutionCommandAttributes) HasWorkflowExecutionTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowExecutionTimeout != nil +} + +func (x *StartChildWorkflowExecutionCommandAttributes) HasWorkflowRunTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowRunTimeout != nil +} + +func (x *StartChildWorkflowExecutionCommandAttributes) HasWorkflowTaskTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowTaskTimeout != nil +} + +func (x *StartChildWorkflowExecutionCommandAttributes) HasRetryPolicy() bool { + if x == nil { + return false + } + return x.xxx_hidden_RetryPolicy != nil +} + +func (x *StartChildWorkflowExecutionCommandAttributes) HasHeader() bool { + if x == nil { + return false + } + return x.xxx_hidden_Header != nil +} + +func (x *StartChildWorkflowExecutionCommandAttributes) HasMemo() bool { + if x == nil { + return false + } + return x.xxx_hidden_Memo != nil +} + +func (x *StartChildWorkflowExecutionCommandAttributes) HasSearchAttributes() bool { + if x == nil { + return false + } + return x.xxx_hidden_SearchAttributes != nil +} + +func (x *StartChildWorkflowExecutionCommandAttributes) HasPriority() bool { + if x == nil { + return false + } + return x.xxx_hidden_Priority != nil +} + +func (x *StartChildWorkflowExecutionCommandAttributes) ClearWorkflowType() { + x.xxx_hidden_WorkflowType = nil +} + +func (x *StartChildWorkflowExecutionCommandAttributes) ClearTaskQueue() { + x.xxx_hidden_TaskQueue = nil +} + +func (x *StartChildWorkflowExecutionCommandAttributes) ClearInput() { + x.xxx_hidden_Input = nil +} + +func (x *StartChildWorkflowExecutionCommandAttributes) ClearWorkflowExecutionTimeout() { + x.xxx_hidden_WorkflowExecutionTimeout = nil +} + +func (x *StartChildWorkflowExecutionCommandAttributes) ClearWorkflowRunTimeout() { + x.xxx_hidden_WorkflowRunTimeout = nil +} + +func (x *StartChildWorkflowExecutionCommandAttributes) ClearWorkflowTaskTimeout() { + x.xxx_hidden_WorkflowTaskTimeout = nil +} + +func (x *StartChildWorkflowExecutionCommandAttributes) ClearRetryPolicy() { + x.xxx_hidden_RetryPolicy = nil +} + +func (x *StartChildWorkflowExecutionCommandAttributes) ClearHeader() { + x.xxx_hidden_Header = nil +} + +func (x *StartChildWorkflowExecutionCommandAttributes) ClearMemo() { + x.xxx_hidden_Memo = nil +} + +func (x *StartChildWorkflowExecutionCommandAttributes) ClearSearchAttributes() { + x.xxx_hidden_SearchAttributes = nil +} + +func (x *StartChildWorkflowExecutionCommandAttributes) ClearPriority() { + x.xxx_hidden_Priority = nil +} + +type StartChildWorkflowExecutionCommandAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + WorkflowId string + WorkflowType *v1.WorkflowType + TaskQueue *v11.TaskQueue + Input *v1.Payloads + // Total workflow execution timeout including retries and continue as new. + WorkflowExecutionTimeout *durationpb.Duration + // Timeout of a single workflow run. + WorkflowRunTimeout *durationpb.Duration + // Timeout of a single workflow task. + WorkflowTaskTimeout *durationpb.Duration + // Default: PARENT_CLOSE_POLICY_TERMINATE. + ParentClosePolicy v13.ParentClosePolicy + Control string + // Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE. + WorkflowIdReusePolicy v13.WorkflowIdReusePolicy + RetryPolicy *v1.RetryPolicy + // Establish a cron schedule for the child workflow. + CronSchedule string + Header *v1.Header + Memo *v1.Memo + SearchAttributes *v1.SearchAttributes + // If this is set, the child workflow inherits the Build ID of the parent. Otherwise, the assignment + // rules of the child's Task Queue will be used to independently assign a Build ID to it. + // Deprecated. Only considered for versioning v0.2. + // + // Deprecated: Marked as deprecated in temporal/api/command/v1/message.proto. + InheritBuildId bool + // Priority metadata. If this message is not present, or any fields are not + // present, they inherit the values from the workflow. + Priority *v1.Priority +} + +func (b0 StartChildWorkflowExecutionCommandAttributes_builder) Build() *StartChildWorkflowExecutionCommandAttributes { + m0 := &StartChildWorkflowExecutionCommandAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_WorkflowId = b.WorkflowId + x.xxx_hidden_WorkflowType = b.WorkflowType + x.xxx_hidden_TaskQueue = b.TaskQueue + x.xxx_hidden_Input = b.Input + x.xxx_hidden_WorkflowExecutionTimeout = b.WorkflowExecutionTimeout + x.xxx_hidden_WorkflowRunTimeout = b.WorkflowRunTimeout + x.xxx_hidden_WorkflowTaskTimeout = b.WorkflowTaskTimeout + x.xxx_hidden_ParentClosePolicy = b.ParentClosePolicy + x.xxx_hidden_Control = b.Control + x.xxx_hidden_WorkflowIdReusePolicy = b.WorkflowIdReusePolicy + x.xxx_hidden_RetryPolicy = b.RetryPolicy + x.xxx_hidden_CronSchedule = b.CronSchedule + x.xxx_hidden_Header = b.Header + x.xxx_hidden_Memo = b.Memo + x.xxx_hidden_SearchAttributes = b.SearchAttributes + x.xxx_hidden_InheritBuildId = b.InheritBuildId + x.xxx_hidden_Priority = b.Priority + return m0 +} + +type ProtocolMessageCommandAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_MessageId string `protobuf:"bytes,1,opt,name=message_id,json=messageId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ProtocolMessageCommandAttributes) Reset() { + *x = ProtocolMessageCommandAttributes{} + mi := &file_temporal_api_command_v1_message_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ProtocolMessageCommandAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProtocolMessageCommandAttributes) ProtoMessage() {} + +func (x *ProtocolMessageCommandAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_command_v1_message_proto_msgTypes[14] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ProtocolMessageCommandAttributes) GetMessageId() string { + if x != nil { + return x.xxx_hidden_MessageId + } + return "" +} + +func (x *ProtocolMessageCommandAttributes) SetMessageId(v string) { + x.xxx_hidden_MessageId = v +} + +type ProtocolMessageCommandAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The message ID of the message to which this command is a pointer. + MessageId string +} + +func (b0 ProtocolMessageCommandAttributes_builder) Build() *ProtocolMessageCommandAttributes { + m0 := &ProtocolMessageCommandAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_MessageId = b.MessageId + return m0 +} + +type ScheduleNexusOperationCommandAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3"` + xxx_hidden_Service string `protobuf:"bytes,2,opt,name=service,proto3"` + xxx_hidden_Operation string `protobuf:"bytes,3,opt,name=operation,proto3"` + xxx_hidden_Input *v1.Payload `protobuf:"bytes,4,opt,name=input,proto3"` + xxx_hidden_ScheduleToCloseTimeout *durationpb.Duration `protobuf:"bytes,5,opt,name=schedule_to_close_timeout,json=scheduleToCloseTimeout,proto3"` + xxx_hidden_NexusHeader map[string]string `protobuf:"bytes,6,rep,name=nexus_header,json=nexusHeader,proto3" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + xxx_hidden_ScheduleToStartTimeout *durationpb.Duration `protobuf:"bytes,7,opt,name=schedule_to_start_timeout,json=scheduleToStartTimeout,proto3"` + xxx_hidden_StartToCloseTimeout *durationpb.Duration `protobuf:"bytes,8,opt,name=start_to_close_timeout,json=startToCloseTimeout,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ScheduleNexusOperationCommandAttributes) Reset() { + *x = ScheduleNexusOperationCommandAttributes{} + mi := &file_temporal_api_command_v1_message_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ScheduleNexusOperationCommandAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ScheduleNexusOperationCommandAttributes) ProtoMessage() {} + +func (x *ScheduleNexusOperationCommandAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_command_v1_message_proto_msgTypes[15] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ScheduleNexusOperationCommandAttributes) GetEndpoint() string { + if x != nil { + return x.xxx_hidden_Endpoint + } + return "" +} + +func (x *ScheduleNexusOperationCommandAttributes) GetService() string { + if x != nil { + return x.xxx_hidden_Service + } + return "" +} + +func (x *ScheduleNexusOperationCommandAttributes) GetOperation() string { + if x != nil { + return x.xxx_hidden_Operation + } + return "" +} + +func (x *ScheduleNexusOperationCommandAttributes) GetInput() *v1.Payload { + if x != nil { + return x.xxx_hidden_Input + } + return nil +} + +func (x *ScheduleNexusOperationCommandAttributes) GetScheduleToCloseTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_ScheduleToCloseTimeout + } + return nil +} + +func (x *ScheduleNexusOperationCommandAttributes) GetNexusHeader() map[string]string { + if x != nil { + return x.xxx_hidden_NexusHeader + } + return nil +} + +func (x *ScheduleNexusOperationCommandAttributes) GetScheduleToStartTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_ScheduleToStartTimeout + } + return nil +} + +func (x *ScheduleNexusOperationCommandAttributes) GetStartToCloseTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_StartToCloseTimeout + } + return nil +} + +func (x *ScheduleNexusOperationCommandAttributes) SetEndpoint(v string) { + x.xxx_hidden_Endpoint = v +} + +func (x *ScheduleNexusOperationCommandAttributes) SetService(v string) { + x.xxx_hidden_Service = v +} + +func (x *ScheduleNexusOperationCommandAttributes) SetOperation(v string) { + x.xxx_hidden_Operation = v +} + +func (x *ScheduleNexusOperationCommandAttributes) SetInput(v *v1.Payload) { + x.xxx_hidden_Input = v +} + +func (x *ScheduleNexusOperationCommandAttributes) SetScheduleToCloseTimeout(v *durationpb.Duration) { + x.xxx_hidden_ScheduleToCloseTimeout = v +} + +func (x *ScheduleNexusOperationCommandAttributes) SetNexusHeader(v map[string]string) { + x.xxx_hidden_NexusHeader = v +} + +func (x *ScheduleNexusOperationCommandAttributes) SetScheduleToStartTimeout(v *durationpb.Duration) { + x.xxx_hidden_ScheduleToStartTimeout = v +} + +func (x *ScheduleNexusOperationCommandAttributes) SetStartToCloseTimeout(v *durationpb.Duration) { + x.xxx_hidden_StartToCloseTimeout = v +} + +func (x *ScheduleNexusOperationCommandAttributes) HasInput() bool { + if x == nil { + return false + } + return x.xxx_hidden_Input != nil +} + +func (x *ScheduleNexusOperationCommandAttributes) HasScheduleToCloseTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_ScheduleToCloseTimeout != nil +} + +func (x *ScheduleNexusOperationCommandAttributes) HasScheduleToStartTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_ScheduleToStartTimeout != nil +} + +func (x *ScheduleNexusOperationCommandAttributes) HasStartToCloseTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_StartToCloseTimeout != nil +} + +func (x *ScheduleNexusOperationCommandAttributes) ClearInput() { + x.xxx_hidden_Input = nil +} + +func (x *ScheduleNexusOperationCommandAttributes) ClearScheduleToCloseTimeout() { + x.xxx_hidden_ScheduleToCloseTimeout = nil +} + +func (x *ScheduleNexusOperationCommandAttributes) ClearScheduleToStartTimeout() { + x.xxx_hidden_ScheduleToStartTimeout = nil +} + +func (x *ScheduleNexusOperationCommandAttributes) ClearStartToCloseTimeout() { + x.xxx_hidden_StartToCloseTimeout = nil +} + +type ScheduleNexusOperationCommandAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Endpoint name, must exist in the endpoint registry or this command will fail. + Endpoint string + // Service name. + Service string + // Operation name. + Operation string + // Input for the operation. The server converts this into Nexus request content and the appropriate content headers + // internally when sending the StartOperation request. On the handler side, if it is also backed by Temporal, the + // content is transformed back to the original Payload sent in this command. + Input *v1.Payload + // Schedule-to-close timeout for this operation. + // Indicates how long the caller is willing to wait for operation completion. + // Calls are retried internally by the server. + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + ScheduleToCloseTimeout *durationpb.Duration + // Header to attach to the Nexus request. + // Users are responsible for encrypting sensitive data in this header as it is stored in workflow history and + // transmitted to external services as-is. + // This is useful for propagating tracing information. + // Note these headers are not the same as Temporal headers on internal activities and child workflows, these are + // transmitted to Nexus operations that may be external and are not traditional payloads. + NexusHeader map[string]string + // Schedule-to-start timeout for this operation. + // Indicates how long the caller is willing to wait for the operation to be started (or completed if synchronous) + // by the handler. If the operation is not started within this timeout, it will fail with + // TIMEOUT_TYPE_SCHEDULE_TO_START. + // If not set or zero, no schedule-to-start timeout is enforced. + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + // + // Requires server version 1.31.0 or later. + ScheduleToStartTimeout *durationpb.Duration + // Start-to-close timeout for this operation. + // Indicates how long the caller is willing to wait for an asynchronous operation to complete after it has been + // started. If the operation does not complete within this timeout after starting, it will fail with + // TIMEOUT_TYPE_START_TO_CLOSE. + // Only applies to asynchronous operations. Synchronous operations ignore this timeout. + // If not set or zero, no start-to-close timeout is enforced. + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + // + // Requires server version 1.31.0 or later. + StartToCloseTimeout *durationpb.Duration +} + +func (b0 ScheduleNexusOperationCommandAttributes_builder) Build() *ScheduleNexusOperationCommandAttributes { + m0 := &ScheduleNexusOperationCommandAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Endpoint = b.Endpoint + x.xxx_hidden_Service = b.Service + x.xxx_hidden_Operation = b.Operation + x.xxx_hidden_Input = b.Input + x.xxx_hidden_ScheduleToCloseTimeout = b.ScheduleToCloseTimeout + x.xxx_hidden_NexusHeader = b.NexusHeader + x.xxx_hidden_ScheduleToStartTimeout = b.ScheduleToStartTimeout + x.xxx_hidden_StartToCloseTimeout = b.StartToCloseTimeout + return m0 +} + +type RequestCancelNexusOperationCommandAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ScheduledEventId int64 `protobuf:"varint,1,opt,name=scheduled_event_id,json=scheduledEventId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RequestCancelNexusOperationCommandAttributes) Reset() { + *x = RequestCancelNexusOperationCommandAttributes{} + mi := &file_temporal_api_command_v1_message_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RequestCancelNexusOperationCommandAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RequestCancelNexusOperationCommandAttributes) ProtoMessage() {} + +func (x *RequestCancelNexusOperationCommandAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_command_v1_message_proto_msgTypes[16] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *RequestCancelNexusOperationCommandAttributes) GetScheduledEventId() int64 { + if x != nil { + return x.xxx_hidden_ScheduledEventId + } + return 0 +} + +func (x *RequestCancelNexusOperationCommandAttributes) SetScheduledEventId(v int64) { + x.xxx_hidden_ScheduledEventId = v +} + +type RequestCancelNexusOperationCommandAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The `NEXUS_OPERATION_SCHEDULED` event ID (a unique identifier) for the operation to be canceled. + // The operation may ignore cancellation and end up with any completion state. + ScheduledEventId int64 +} + +func (b0 RequestCancelNexusOperationCommandAttributes_builder) Build() *RequestCancelNexusOperationCommandAttributes { + m0 := &RequestCancelNexusOperationCommandAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ScheduledEventId = b.ScheduledEventId + return m0 +} + +type Command struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_CommandType v13.CommandType `protobuf:"varint,1,opt,name=command_type,json=commandType,proto3,enum=temporal.api.enums.v1.CommandType"` + xxx_hidden_UserMetadata *v14.UserMetadata `protobuf:"bytes,301,opt,name=user_metadata,json=userMetadata,proto3"` + xxx_hidden_Attributes isCommand_Attributes `protobuf_oneof:"attributes"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Command) Reset() { + *x = Command{} + mi := &file_temporal_api_command_v1_message_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Command) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Command) ProtoMessage() {} + +func (x *Command) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_command_v1_message_proto_msgTypes[17] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *Command) GetCommandType() v13.CommandType { + if x != nil { + return x.xxx_hidden_CommandType + } + return v13.CommandType(0) +} + +func (x *Command) GetUserMetadata() *v14.UserMetadata { + if x != nil { + return x.xxx_hidden_UserMetadata + } + return nil +} + +func (x *Command) GetScheduleActivityTaskCommandAttributes() *ScheduleActivityTaskCommandAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*command_ScheduleActivityTaskCommandAttributes); ok { + return x.ScheduleActivityTaskCommandAttributes + } + } + return nil +} + +func (x *Command) GetStartTimerCommandAttributes() *StartTimerCommandAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*command_StartTimerCommandAttributes); ok { + return x.StartTimerCommandAttributes + } + } + return nil +} + +func (x *Command) GetCompleteWorkflowExecutionCommandAttributes() *CompleteWorkflowExecutionCommandAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*command_CompleteWorkflowExecutionCommandAttributes); ok { + return x.CompleteWorkflowExecutionCommandAttributes + } + } + return nil +} + +func (x *Command) GetFailWorkflowExecutionCommandAttributes() *FailWorkflowExecutionCommandAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*command_FailWorkflowExecutionCommandAttributes); ok { + return x.FailWorkflowExecutionCommandAttributes + } + } + return nil +} + +func (x *Command) GetRequestCancelActivityTaskCommandAttributes() *RequestCancelActivityTaskCommandAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*command_RequestCancelActivityTaskCommandAttributes); ok { + return x.RequestCancelActivityTaskCommandAttributes + } + } + return nil +} + +func (x *Command) GetCancelTimerCommandAttributes() *CancelTimerCommandAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*command_CancelTimerCommandAttributes); ok { + return x.CancelTimerCommandAttributes + } + } + return nil +} + +func (x *Command) GetCancelWorkflowExecutionCommandAttributes() *CancelWorkflowExecutionCommandAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*command_CancelWorkflowExecutionCommandAttributes); ok { + return x.CancelWorkflowExecutionCommandAttributes + } + } + return nil +} + +func (x *Command) GetRequestCancelExternalWorkflowExecutionCommandAttributes() *RequestCancelExternalWorkflowExecutionCommandAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*command_RequestCancelExternalWorkflowExecutionCommandAttributes); ok { + return x.RequestCancelExternalWorkflowExecutionCommandAttributes + } + } + return nil +} + +func (x *Command) GetRecordMarkerCommandAttributes() *RecordMarkerCommandAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*command_RecordMarkerCommandAttributes); ok { + return x.RecordMarkerCommandAttributes + } + } + return nil +} + +func (x *Command) GetContinueAsNewWorkflowExecutionCommandAttributes() *ContinueAsNewWorkflowExecutionCommandAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*command_ContinueAsNewWorkflowExecutionCommandAttributes); ok { + return x.ContinueAsNewWorkflowExecutionCommandAttributes + } + } + return nil +} + +func (x *Command) GetStartChildWorkflowExecutionCommandAttributes() *StartChildWorkflowExecutionCommandAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*command_StartChildWorkflowExecutionCommandAttributes); ok { + return x.StartChildWorkflowExecutionCommandAttributes + } + } + return nil +} + +func (x *Command) GetSignalExternalWorkflowExecutionCommandAttributes() *SignalExternalWorkflowExecutionCommandAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*command_SignalExternalWorkflowExecutionCommandAttributes); ok { + return x.SignalExternalWorkflowExecutionCommandAttributes + } + } + return nil +} + +func (x *Command) GetUpsertWorkflowSearchAttributesCommandAttributes() *UpsertWorkflowSearchAttributesCommandAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*command_UpsertWorkflowSearchAttributesCommandAttributes); ok { + return x.UpsertWorkflowSearchAttributesCommandAttributes + } + } + return nil +} + +func (x *Command) GetProtocolMessageCommandAttributes() *ProtocolMessageCommandAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*command_ProtocolMessageCommandAttributes); ok { + return x.ProtocolMessageCommandAttributes + } + } + return nil +} + +func (x *Command) GetModifyWorkflowPropertiesCommandAttributes() *ModifyWorkflowPropertiesCommandAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*command_ModifyWorkflowPropertiesCommandAttributes); ok { + return x.ModifyWorkflowPropertiesCommandAttributes + } + } + return nil +} + +func (x *Command) GetScheduleNexusOperationCommandAttributes() *ScheduleNexusOperationCommandAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*command_ScheduleNexusOperationCommandAttributes); ok { + return x.ScheduleNexusOperationCommandAttributes + } + } + return nil +} + +func (x *Command) GetRequestCancelNexusOperationCommandAttributes() *RequestCancelNexusOperationCommandAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*command_RequestCancelNexusOperationCommandAttributes); ok { + return x.RequestCancelNexusOperationCommandAttributes + } + } + return nil +} + +func (x *Command) SetCommandType(v v13.CommandType) { + x.xxx_hidden_CommandType = v +} + +func (x *Command) SetUserMetadata(v *v14.UserMetadata) { + x.xxx_hidden_UserMetadata = v +} + +func (x *Command) SetScheduleActivityTaskCommandAttributes(v *ScheduleActivityTaskCommandAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &command_ScheduleActivityTaskCommandAttributes{v} +} + +func (x *Command) SetStartTimerCommandAttributes(v *StartTimerCommandAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &command_StartTimerCommandAttributes{v} +} + +func (x *Command) SetCompleteWorkflowExecutionCommandAttributes(v *CompleteWorkflowExecutionCommandAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &command_CompleteWorkflowExecutionCommandAttributes{v} +} + +func (x *Command) SetFailWorkflowExecutionCommandAttributes(v *FailWorkflowExecutionCommandAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &command_FailWorkflowExecutionCommandAttributes{v} +} + +func (x *Command) SetRequestCancelActivityTaskCommandAttributes(v *RequestCancelActivityTaskCommandAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &command_RequestCancelActivityTaskCommandAttributes{v} +} + +func (x *Command) SetCancelTimerCommandAttributes(v *CancelTimerCommandAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &command_CancelTimerCommandAttributes{v} +} + +func (x *Command) SetCancelWorkflowExecutionCommandAttributes(v *CancelWorkflowExecutionCommandAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &command_CancelWorkflowExecutionCommandAttributes{v} +} + +func (x *Command) SetRequestCancelExternalWorkflowExecutionCommandAttributes(v *RequestCancelExternalWorkflowExecutionCommandAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &command_RequestCancelExternalWorkflowExecutionCommandAttributes{v} +} + +func (x *Command) SetRecordMarkerCommandAttributes(v *RecordMarkerCommandAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &command_RecordMarkerCommandAttributes{v} +} + +func (x *Command) SetContinueAsNewWorkflowExecutionCommandAttributes(v *ContinueAsNewWorkflowExecutionCommandAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &command_ContinueAsNewWorkflowExecutionCommandAttributes{v} +} + +func (x *Command) SetStartChildWorkflowExecutionCommandAttributes(v *StartChildWorkflowExecutionCommandAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &command_StartChildWorkflowExecutionCommandAttributes{v} +} + +func (x *Command) SetSignalExternalWorkflowExecutionCommandAttributes(v *SignalExternalWorkflowExecutionCommandAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &command_SignalExternalWorkflowExecutionCommandAttributes{v} +} + +func (x *Command) SetUpsertWorkflowSearchAttributesCommandAttributes(v *UpsertWorkflowSearchAttributesCommandAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &command_UpsertWorkflowSearchAttributesCommandAttributes{v} +} + +func (x *Command) SetProtocolMessageCommandAttributes(v *ProtocolMessageCommandAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &command_ProtocolMessageCommandAttributes{v} +} + +func (x *Command) SetModifyWorkflowPropertiesCommandAttributes(v *ModifyWorkflowPropertiesCommandAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &command_ModifyWorkflowPropertiesCommandAttributes{v} +} + +func (x *Command) SetScheduleNexusOperationCommandAttributes(v *ScheduleNexusOperationCommandAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &command_ScheduleNexusOperationCommandAttributes{v} +} + +func (x *Command) SetRequestCancelNexusOperationCommandAttributes(v *RequestCancelNexusOperationCommandAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &command_RequestCancelNexusOperationCommandAttributes{v} +} + +func (x *Command) HasUserMetadata() bool { + if x == nil { + return false + } + return x.xxx_hidden_UserMetadata != nil +} + +func (x *Command) HasAttributes() bool { + if x == nil { + return false + } + return x.xxx_hidden_Attributes != nil +} + +func (x *Command) HasScheduleActivityTaskCommandAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*command_ScheduleActivityTaskCommandAttributes) + return ok +} + +func (x *Command) HasStartTimerCommandAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*command_StartTimerCommandAttributes) + return ok +} + +func (x *Command) HasCompleteWorkflowExecutionCommandAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*command_CompleteWorkflowExecutionCommandAttributes) + return ok +} + +func (x *Command) HasFailWorkflowExecutionCommandAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*command_FailWorkflowExecutionCommandAttributes) + return ok +} + +func (x *Command) HasRequestCancelActivityTaskCommandAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*command_RequestCancelActivityTaskCommandAttributes) + return ok +} + +func (x *Command) HasCancelTimerCommandAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*command_CancelTimerCommandAttributes) + return ok +} + +func (x *Command) HasCancelWorkflowExecutionCommandAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*command_CancelWorkflowExecutionCommandAttributes) + return ok +} + +func (x *Command) HasRequestCancelExternalWorkflowExecutionCommandAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*command_RequestCancelExternalWorkflowExecutionCommandAttributes) + return ok +} + +func (x *Command) HasRecordMarkerCommandAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*command_RecordMarkerCommandAttributes) + return ok +} + +func (x *Command) HasContinueAsNewWorkflowExecutionCommandAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*command_ContinueAsNewWorkflowExecutionCommandAttributes) + return ok +} + +func (x *Command) HasStartChildWorkflowExecutionCommandAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*command_StartChildWorkflowExecutionCommandAttributes) + return ok +} + +func (x *Command) HasSignalExternalWorkflowExecutionCommandAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*command_SignalExternalWorkflowExecutionCommandAttributes) + return ok +} + +func (x *Command) HasUpsertWorkflowSearchAttributesCommandAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*command_UpsertWorkflowSearchAttributesCommandAttributes) + return ok +} + +func (x *Command) HasProtocolMessageCommandAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*command_ProtocolMessageCommandAttributes) + return ok +} + +func (x *Command) HasModifyWorkflowPropertiesCommandAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*command_ModifyWorkflowPropertiesCommandAttributes) + return ok +} + +func (x *Command) HasScheduleNexusOperationCommandAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*command_ScheduleNexusOperationCommandAttributes) + return ok +} + +func (x *Command) HasRequestCancelNexusOperationCommandAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*command_RequestCancelNexusOperationCommandAttributes) + return ok +} + +func (x *Command) ClearUserMetadata() { + x.xxx_hidden_UserMetadata = nil +} + +func (x *Command) ClearAttributes() { + x.xxx_hidden_Attributes = nil +} + +func (x *Command) ClearScheduleActivityTaskCommandAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*command_ScheduleActivityTaskCommandAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *Command) ClearStartTimerCommandAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*command_StartTimerCommandAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *Command) ClearCompleteWorkflowExecutionCommandAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*command_CompleteWorkflowExecutionCommandAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *Command) ClearFailWorkflowExecutionCommandAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*command_FailWorkflowExecutionCommandAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *Command) ClearRequestCancelActivityTaskCommandAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*command_RequestCancelActivityTaskCommandAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *Command) ClearCancelTimerCommandAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*command_CancelTimerCommandAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *Command) ClearCancelWorkflowExecutionCommandAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*command_CancelWorkflowExecutionCommandAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *Command) ClearRequestCancelExternalWorkflowExecutionCommandAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*command_RequestCancelExternalWorkflowExecutionCommandAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *Command) ClearRecordMarkerCommandAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*command_RecordMarkerCommandAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *Command) ClearContinueAsNewWorkflowExecutionCommandAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*command_ContinueAsNewWorkflowExecutionCommandAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *Command) ClearStartChildWorkflowExecutionCommandAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*command_StartChildWorkflowExecutionCommandAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *Command) ClearSignalExternalWorkflowExecutionCommandAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*command_SignalExternalWorkflowExecutionCommandAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *Command) ClearUpsertWorkflowSearchAttributesCommandAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*command_UpsertWorkflowSearchAttributesCommandAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *Command) ClearProtocolMessageCommandAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*command_ProtocolMessageCommandAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *Command) ClearModifyWorkflowPropertiesCommandAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*command_ModifyWorkflowPropertiesCommandAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *Command) ClearScheduleNexusOperationCommandAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*command_ScheduleNexusOperationCommandAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *Command) ClearRequestCancelNexusOperationCommandAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*command_RequestCancelNexusOperationCommandAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +const Command_Attributes_not_set_case case_Command_Attributes = 0 +const Command_ScheduleActivityTaskCommandAttributes_case case_Command_Attributes = 2 +const Command_StartTimerCommandAttributes_case case_Command_Attributes = 3 +const Command_CompleteWorkflowExecutionCommandAttributes_case case_Command_Attributes = 4 +const Command_FailWorkflowExecutionCommandAttributes_case case_Command_Attributes = 5 +const Command_RequestCancelActivityTaskCommandAttributes_case case_Command_Attributes = 6 +const Command_CancelTimerCommandAttributes_case case_Command_Attributes = 7 +const Command_CancelWorkflowExecutionCommandAttributes_case case_Command_Attributes = 8 +const Command_RequestCancelExternalWorkflowExecutionCommandAttributes_case case_Command_Attributes = 9 +const Command_RecordMarkerCommandAttributes_case case_Command_Attributes = 10 +const Command_ContinueAsNewWorkflowExecutionCommandAttributes_case case_Command_Attributes = 11 +const Command_StartChildWorkflowExecutionCommandAttributes_case case_Command_Attributes = 12 +const Command_SignalExternalWorkflowExecutionCommandAttributes_case case_Command_Attributes = 13 +const Command_UpsertWorkflowSearchAttributesCommandAttributes_case case_Command_Attributes = 14 +const Command_ProtocolMessageCommandAttributes_case case_Command_Attributes = 15 +const Command_ModifyWorkflowPropertiesCommandAttributes_case case_Command_Attributes = 17 +const Command_ScheduleNexusOperationCommandAttributes_case case_Command_Attributes = 18 +const Command_RequestCancelNexusOperationCommandAttributes_case case_Command_Attributes = 19 + +func (x *Command) WhichAttributes() case_Command_Attributes { + if x == nil { + return Command_Attributes_not_set_case + } + switch x.xxx_hidden_Attributes.(type) { + case *command_ScheduleActivityTaskCommandAttributes: + return Command_ScheduleActivityTaskCommandAttributes_case + case *command_StartTimerCommandAttributes: + return Command_StartTimerCommandAttributes_case + case *command_CompleteWorkflowExecutionCommandAttributes: + return Command_CompleteWorkflowExecutionCommandAttributes_case + case *command_FailWorkflowExecutionCommandAttributes: + return Command_FailWorkflowExecutionCommandAttributes_case + case *command_RequestCancelActivityTaskCommandAttributes: + return Command_RequestCancelActivityTaskCommandAttributes_case + case *command_CancelTimerCommandAttributes: + return Command_CancelTimerCommandAttributes_case + case *command_CancelWorkflowExecutionCommandAttributes: + return Command_CancelWorkflowExecutionCommandAttributes_case + case *command_RequestCancelExternalWorkflowExecutionCommandAttributes: + return Command_RequestCancelExternalWorkflowExecutionCommandAttributes_case + case *command_RecordMarkerCommandAttributes: + return Command_RecordMarkerCommandAttributes_case + case *command_ContinueAsNewWorkflowExecutionCommandAttributes: + return Command_ContinueAsNewWorkflowExecutionCommandAttributes_case + case *command_StartChildWorkflowExecutionCommandAttributes: + return Command_StartChildWorkflowExecutionCommandAttributes_case + case *command_SignalExternalWorkflowExecutionCommandAttributes: + return Command_SignalExternalWorkflowExecutionCommandAttributes_case + case *command_UpsertWorkflowSearchAttributesCommandAttributes: + return Command_UpsertWorkflowSearchAttributesCommandAttributes_case + case *command_ProtocolMessageCommandAttributes: + return Command_ProtocolMessageCommandAttributes_case + case *command_ModifyWorkflowPropertiesCommandAttributes: + return Command_ModifyWorkflowPropertiesCommandAttributes_case + case *command_ScheduleNexusOperationCommandAttributes: + return Command_ScheduleNexusOperationCommandAttributes_case + case *command_RequestCancelNexusOperationCommandAttributes: + return Command_RequestCancelNexusOperationCommandAttributes_case + default: + return Command_Attributes_not_set_case + } +} + +type Command_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + CommandType v13.CommandType + // Metadata on the command. This is sometimes carried over to the history event if one is + // created as a result of the command. Most commands won't have this information, and how this + // information is used is dependent upon the interface that reads it. + // + // Current well-known uses: + // - start_child_workflow_execution_command_attributes - populates + // temporal.api.workflow.v1.WorkflowExecutionInfo.user_metadata where the summary and details + // are used by user interfaces to show fixed as-of-start workflow summary and details. + // - start_timer_command_attributes - populates temporal.api.history.v1.HistoryEvent for timer + // started where the summary is used to identify the timer. + UserMetadata *v14.UserMetadata + // The command details. The type must match that in `command_type`. + + // Fields of oneof xxx_hidden_Attributes: + ScheduleActivityTaskCommandAttributes *ScheduleActivityTaskCommandAttributes + StartTimerCommandAttributes *StartTimerCommandAttributes + CompleteWorkflowExecutionCommandAttributes *CompleteWorkflowExecutionCommandAttributes + FailWorkflowExecutionCommandAttributes *FailWorkflowExecutionCommandAttributes + RequestCancelActivityTaskCommandAttributes *RequestCancelActivityTaskCommandAttributes + CancelTimerCommandAttributes *CancelTimerCommandAttributes + CancelWorkflowExecutionCommandAttributes *CancelWorkflowExecutionCommandAttributes + RequestCancelExternalWorkflowExecutionCommandAttributes *RequestCancelExternalWorkflowExecutionCommandAttributes + RecordMarkerCommandAttributes *RecordMarkerCommandAttributes + ContinueAsNewWorkflowExecutionCommandAttributes *ContinueAsNewWorkflowExecutionCommandAttributes + StartChildWorkflowExecutionCommandAttributes *StartChildWorkflowExecutionCommandAttributes + SignalExternalWorkflowExecutionCommandAttributes *SignalExternalWorkflowExecutionCommandAttributes + UpsertWorkflowSearchAttributesCommandAttributes *UpsertWorkflowSearchAttributesCommandAttributes + ProtocolMessageCommandAttributes *ProtocolMessageCommandAttributes + // 16 is available for use - it was used as part of a prototype that never made it into a release + ModifyWorkflowPropertiesCommandAttributes *ModifyWorkflowPropertiesCommandAttributes + ScheduleNexusOperationCommandAttributes *ScheduleNexusOperationCommandAttributes + RequestCancelNexusOperationCommandAttributes *RequestCancelNexusOperationCommandAttributes + // -- end of xxx_hidden_Attributes +} + +func (b0 Command_builder) Build() *Command { + m0 := &Command{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_CommandType = b.CommandType + x.xxx_hidden_UserMetadata = b.UserMetadata + if b.ScheduleActivityTaskCommandAttributes != nil { + x.xxx_hidden_Attributes = &command_ScheduleActivityTaskCommandAttributes{b.ScheduleActivityTaskCommandAttributes} + } + if b.StartTimerCommandAttributes != nil { + x.xxx_hidden_Attributes = &command_StartTimerCommandAttributes{b.StartTimerCommandAttributes} + } + if b.CompleteWorkflowExecutionCommandAttributes != nil { + x.xxx_hidden_Attributes = &command_CompleteWorkflowExecutionCommandAttributes{b.CompleteWorkflowExecutionCommandAttributes} + } + if b.FailWorkflowExecutionCommandAttributes != nil { + x.xxx_hidden_Attributes = &command_FailWorkflowExecutionCommandAttributes{b.FailWorkflowExecutionCommandAttributes} + } + if b.RequestCancelActivityTaskCommandAttributes != nil { + x.xxx_hidden_Attributes = &command_RequestCancelActivityTaskCommandAttributes{b.RequestCancelActivityTaskCommandAttributes} + } + if b.CancelTimerCommandAttributes != nil { + x.xxx_hidden_Attributes = &command_CancelTimerCommandAttributes{b.CancelTimerCommandAttributes} + } + if b.CancelWorkflowExecutionCommandAttributes != nil { + x.xxx_hidden_Attributes = &command_CancelWorkflowExecutionCommandAttributes{b.CancelWorkflowExecutionCommandAttributes} + } + if b.RequestCancelExternalWorkflowExecutionCommandAttributes != nil { + x.xxx_hidden_Attributes = &command_RequestCancelExternalWorkflowExecutionCommandAttributes{b.RequestCancelExternalWorkflowExecutionCommandAttributes} + } + if b.RecordMarkerCommandAttributes != nil { + x.xxx_hidden_Attributes = &command_RecordMarkerCommandAttributes{b.RecordMarkerCommandAttributes} + } + if b.ContinueAsNewWorkflowExecutionCommandAttributes != nil { + x.xxx_hidden_Attributes = &command_ContinueAsNewWorkflowExecutionCommandAttributes{b.ContinueAsNewWorkflowExecutionCommandAttributes} + } + if b.StartChildWorkflowExecutionCommandAttributes != nil { + x.xxx_hidden_Attributes = &command_StartChildWorkflowExecutionCommandAttributes{b.StartChildWorkflowExecutionCommandAttributes} + } + if b.SignalExternalWorkflowExecutionCommandAttributes != nil { + x.xxx_hidden_Attributes = &command_SignalExternalWorkflowExecutionCommandAttributes{b.SignalExternalWorkflowExecutionCommandAttributes} + } + if b.UpsertWorkflowSearchAttributesCommandAttributes != nil { + x.xxx_hidden_Attributes = &command_UpsertWorkflowSearchAttributesCommandAttributes{b.UpsertWorkflowSearchAttributesCommandAttributes} + } + if b.ProtocolMessageCommandAttributes != nil { + x.xxx_hidden_Attributes = &command_ProtocolMessageCommandAttributes{b.ProtocolMessageCommandAttributes} + } + if b.ModifyWorkflowPropertiesCommandAttributes != nil { + x.xxx_hidden_Attributes = &command_ModifyWorkflowPropertiesCommandAttributes{b.ModifyWorkflowPropertiesCommandAttributes} + } + if b.ScheduleNexusOperationCommandAttributes != nil { + x.xxx_hidden_Attributes = &command_ScheduleNexusOperationCommandAttributes{b.ScheduleNexusOperationCommandAttributes} + } + if b.RequestCancelNexusOperationCommandAttributes != nil { + x.xxx_hidden_Attributes = &command_RequestCancelNexusOperationCommandAttributes{b.RequestCancelNexusOperationCommandAttributes} + } + return m0 +} + +type case_Command_Attributes protoreflect.FieldNumber + +func (x case_Command_Attributes) String() string { + switch x { + case Command_Attributes_not_set_case: + return "CommandAttributesNotSetCase" + case Command_ScheduleActivityTaskCommandAttributes_case: + return "CommandScheduleActivityTaskCommandAttributesCase" + case Command_StartTimerCommandAttributes_case: + return "CommandStartTimerCommandAttributesCase" + case Command_CompleteWorkflowExecutionCommandAttributes_case: + return "CommandCompleteWorkflowExecutionCommandAttributesCase" + case Command_FailWorkflowExecutionCommandAttributes_case: + return "CommandFailWorkflowExecutionCommandAttributesCase" + case Command_RequestCancelActivityTaskCommandAttributes_case: + return "CommandRequestCancelActivityTaskCommandAttributesCase" + case Command_CancelTimerCommandAttributes_case: + return "CommandCancelTimerCommandAttributesCase" + case Command_CancelWorkflowExecutionCommandAttributes_case: + return "CommandCancelWorkflowExecutionCommandAttributesCase" + case Command_RequestCancelExternalWorkflowExecutionCommandAttributes_case: + return "CommandRequestCancelExternalWorkflowExecutionCommandAttributesCase" + case Command_RecordMarkerCommandAttributes_case: + return "CommandRecordMarkerCommandAttributesCase" + case Command_ContinueAsNewWorkflowExecutionCommandAttributes_case: + return "CommandContinueAsNewWorkflowExecutionCommandAttributesCase" + case Command_StartChildWorkflowExecutionCommandAttributes_case: + return "CommandStartChildWorkflowExecutionCommandAttributesCase" + case Command_SignalExternalWorkflowExecutionCommandAttributes_case: + return "CommandSignalExternalWorkflowExecutionCommandAttributesCase" + case Command_UpsertWorkflowSearchAttributesCommandAttributes_case: + return "CommandUpsertWorkflowSearchAttributesCommandAttributesCase" + case Command_ProtocolMessageCommandAttributes_case: + return "CommandProtocolMessageCommandAttributesCase" + case Command_ModifyWorkflowPropertiesCommandAttributes_case: + return "CommandModifyWorkflowPropertiesCommandAttributesCase" + case Command_ScheduleNexusOperationCommandAttributes_case: + return "CommandScheduleNexusOperationCommandAttributesCase" + case Command_RequestCancelNexusOperationCommandAttributes_case: + return "CommandRequestCancelNexusOperationCommandAttributesCase" + default: + return strconv.Itoa(int(x)) + } + +} + +type isCommand_Attributes interface { + isCommand_Attributes() +} + +type command_ScheduleActivityTaskCommandAttributes struct { + ScheduleActivityTaskCommandAttributes *ScheduleActivityTaskCommandAttributes `protobuf:"bytes,2,opt,name=schedule_activity_task_command_attributes,json=scheduleActivityTaskCommandAttributes,proto3,oneof"` +} + +type command_StartTimerCommandAttributes struct { + StartTimerCommandAttributes *StartTimerCommandAttributes `protobuf:"bytes,3,opt,name=start_timer_command_attributes,json=startTimerCommandAttributes,proto3,oneof"` +} + +type command_CompleteWorkflowExecutionCommandAttributes struct { + CompleteWorkflowExecutionCommandAttributes *CompleteWorkflowExecutionCommandAttributes `protobuf:"bytes,4,opt,name=complete_workflow_execution_command_attributes,json=completeWorkflowExecutionCommandAttributes,proto3,oneof"` +} + +type command_FailWorkflowExecutionCommandAttributes struct { + FailWorkflowExecutionCommandAttributes *FailWorkflowExecutionCommandAttributes `protobuf:"bytes,5,opt,name=fail_workflow_execution_command_attributes,json=failWorkflowExecutionCommandAttributes,proto3,oneof"` +} + +type command_RequestCancelActivityTaskCommandAttributes struct { + RequestCancelActivityTaskCommandAttributes *RequestCancelActivityTaskCommandAttributes `protobuf:"bytes,6,opt,name=request_cancel_activity_task_command_attributes,json=requestCancelActivityTaskCommandAttributes,proto3,oneof"` +} + +type command_CancelTimerCommandAttributes struct { + CancelTimerCommandAttributes *CancelTimerCommandAttributes `protobuf:"bytes,7,opt,name=cancel_timer_command_attributes,json=cancelTimerCommandAttributes,proto3,oneof"` +} + +type command_CancelWorkflowExecutionCommandAttributes struct { + CancelWorkflowExecutionCommandAttributes *CancelWorkflowExecutionCommandAttributes `protobuf:"bytes,8,opt,name=cancel_workflow_execution_command_attributes,json=cancelWorkflowExecutionCommandAttributes,proto3,oneof"` +} + +type command_RequestCancelExternalWorkflowExecutionCommandAttributes struct { + RequestCancelExternalWorkflowExecutionCommandAttributes *RequestCancelExternalWorkflowExecutionCommandAttributes `protobuf:"bytes,9,opt,name=request_cancel_external_workflow_execution_command_attributes,json=requestCancelExternalWorkflowExecutionCommandAttributes,proto3,oneof"` +} + +type command_RecordMarkerCommandAttributes struct { + RecordMarkerCommandAttributes *RecordMarkerCommandAttributes `protobuf:"bytes,10,opt,name=record_marker_command_attributes,json=recordMarkerCommandAttributes,proto3,oneof"` +} + +type command_ContinueAsNewWorkflowExecutionCommandAttributes struct { + ContinueAsNewWorkflowExecutionCommandAttributes *ContinueAsNewWorkflowExecutionCommandAttributes `protobuf:"bytes,11,opt,name=continue_as_new_workflow_execution_command_attributes,json=continueAsNewWorkflowExecutionCommandAttributes,proto3,oneof"` +} + +type command_StartChildWorkflowExecutionCommandAttributes struct { + StartChildWorkflowExecutionCommandAttributes *StartChildWorkflowExecutionCommandAttributes `protobuf:"bytes,12,opt,name=start_child_workflow_execution_command_attributes,json=startChildWorkflowExecutionCommandAttributes,proto3,oneof"` +} + +type command_SignalExternalWorkflowExecutionCommandAttributes struct { + SignalExternalWorkflowExecutionCommandAttributes *SignalExternalWorkflowExecutionCommandAttributes `protobuf:"bytes,13,opt,name=signal_external_workflow_execution_command_attributes,json=signalExternalWorkflowExecutionCommandAttributes,proto3,oneof"` +} + +type command_UpsertWorkflowSearchAttributesCommandAttributes struct { + UpsertWorkflowSearchAttributesCommandAttributes *UpsertWorkflowSearchAttributesCommandAttributes `protobuf:"bytes,14,opt,name=upsert_workflow_search_attributes_command_attributes,json=upsertWorkflowSearchAttributesCommandAttributes,proto3,oneof"` +} + +type command_ProtocolMessageCommandAttributes struct { + ProtocolMessageCommandAttributes *ProtocolMessageCommandAttributes `protobuf:"bytes,15,opt,name=protocol_message_command_attributes,json=protocolMessageCommandAttributes,proto3,oneof"` +} + +type command_ModifyWorkflowPropertiesCommandAttributes struct { + // 16 is available for use - it was used as part of a prototype that never made it into a release + ModifyWorkflowPropertiesCommandAttributes *ModifyWorkflowPropertiesCommandAttributes `protobuf:"bytes,17,opt,name=modify_workflow_properties_command_attributes,json=modifyWorkflowPropertiesCommandAttributes,proto3,oneof"` +} + +type command_ScheduleNexusOperationCommandAttributes struct { + ScheduleNexusOperationCommandAttributes *ScheduleNexusOperationCommandAttributes `protobuf:"bytes,18,opt,name=schedule_nexus_operation_command_attributes,json=scheduleNexusOperationCommandAttributes,proto3,oneof"` +} + +type command_RequestCancelNexusOperationCommandAttributes struct { + RequestCancelNexusOperationCommandAttributes *RequestCancelNexusOperationCommandAttributes `protobuf:"bytes,19,opt,name=request_cancel_nexus_operation_command_attributes,json=requestCancelNexusOperationCommandAttributes,proto3,oneof"` +} + +func (*command_ScheduleActivityTaskCommandAttributes) isCommand_Attributes() {} + +func (*command_StartTimerCommandAttributes) isCommand_Attributes() {} + +func (*command_CompleteWorkflowExecutionCommandAttributes) isCommand_Attributes() {} + +func (*command_FailWorkflowExecutionCommandAttributes) isCommand_Attributes() {} + +func (*command_RequestCancelActivityTaskCommandAttributes) isCommand_Attributes() {} + +func (*command_CancelTimerCommandAttributes) isCommand_Attributes() {} + +func (*command_CancelWorkflowExecutionCommandAttributes) isCommand_Attributes() {} + +func (*command_RequestCancelExternalWorkflowExecutionCommandAttributes) isCommand_Attributes() {} + +func (*command_RecordMarkerCommandAttributes) isCommand_Attributes() {} + +func (*command_ContinueAsNewWorkflowExecutionCommandAttributes) isCommand_Attributes() {} + +func (*command_StartChildWorkflowExecutionCommandAttributes) isCommand_Attributes() {} + +func (*command_SignalExternalWorkflowExecutionCommandAttributes) isCommand_Attributes() {} + +func (*command_UpsertWorkflowSearchAttributesCommandAttributes) isCommand_Attributes() {} + +func (*command_ProtocolMessageCommandAttributes) isCommand_Attributes() {} + +func (*command_ModifyWorkflowPropertiesCommandAttributes) isCommand_Attributes() {} + +func (*command_ScheduleNexusOperationCommandAttributes) isCommand_Attributes() {} + +func (*command_RequestCancelNexusOperationCommandAttributes) isCommand_Attributes() {} + +var File_temporal_api_command_v1_message_proto protoreflect.FileDescriptor + +const file_temporal_api_command_v1_message_proto_rawDesc = "" + + "\n" + + "%temporal/api/command/v1/message.proto\x12\x17temporal.api.command.v1\x1a\x1egoogle/protobuf/duration.proto\x1a$temporal/api/enums/v1/workflow.proto\x1a(temporal/api/enums/v1/command_type.proto\x1a$temporal/api/common/v1/message.proto\x1a%temporal/api/failure/v1/message.proto\x1a'temporal/api/taskqueue/v1/message.proto\x1a'temporal/api/sdk/v1/user_metadata.proto\"\x83\a\n" + + "%ScheduleActivityTaskCommandAttributes\x12\x1f\n" + + "\vactivity_id\x18\x01 \x01(\tR\n" + + "activityId\x12I\n" + + "\ractivity_type\x18\x02 \x01(\v2$.temporal.api.common.v1.ActivityTypeR\factivityType\x12C\n" + + "\n" + + "task_queue\x18\x04 \x01(\v2$.temporal.api.taskqueue.v1.TaskQueueR\ttaskQueue\x126\n" + + "\x06header\x18\x05 \x01(\v2\x1e.temporal.api.common.v1.HeaderR\x06header\x126\n" + + "\x05input\x18\x06 \x01(\v2 .temporal.api.common.v1.PayloadsR\x05input\x12T\n" + + "\x19schedule_to_close_timeout\x18\a \x01(\v2\x19.google.protobuf.DurationR\x16scheduleToCloseTimeout\x12T\n" + + "\x19schedule_to_start_timeout\x18\b \x01(\v2\x19.google.protobuf.DurationR\x16scheduleToStartTimeout\x12N\n" + + "\x16start_to_close_timeout\x18\t \x01(\v2\x19.google.protobuf.DurationR\x13startToCloseTimeout\x12F\n" + + "\x11heartbeat_timeout\x18\n" + + " \x01(\v2\x19.google.protobuf.DurationR\x10heartbeatTimeout\x12F\n" + + "\fretry_policy\x18\v \x01(\v2#.temporal.api.common.v1.RetryPolicyR\vretryPolicy\x126\n" + + "\x17request_eager_execution\x18\f \x01(\bR\x15requestEagerExecution\x121\n" + + "\x15use_workflow_build_id\x18\r \x01(\bR\x12useWorkflowBuildId\x12<\n" + + "\bpriority\x18\x0e \x01(\v2 .temporal.api.common.v1.PriorityR\bpriorityJ\x04\b\x03\x10\x04\"Z\n" + + "*RequestCancelActivityTaskCommandAttributes\x12,\n" + + "\x12scheduled_event_id\x18\x01 \x01(\x03R\x10scheduledEventId\"\x86\x01\n" + + "\x1bStartTimerCommandAttributes\x12\x19\n" + + "\btimer_id\x18\x01 \x01(\tR\atimerId\x12L\n" + + "\x15start_to_fire_timeout\x18\x02 \x01(\v2\x19.google.protobuf.DurationR\x12startToFireTimeout\"f\n" + + "*CompleteWorkflowExecutionCommandAttributes\x128\n" + + "\x06result\x18\x01 \x01(\v2 .temporal.api.common.v1.PayloadsR\x06result\"d\n" + + "&FailWorkflowExecutionCommandAttributes\x12:\n" + + "\afailure\x18\x01 \x01(\v2 .temporal.api.failure.v1.FailureR\afailure\"9\n" + + "\x1cCancelTimerCommandAttributes\x12\x19\n" + + "\btimer_id\x18\x01 \x01(\tR\atimerId\"f\n" + + "(CancelWorkflowExecutionCommandAttributes\x12:\n" + + "\adetails\x18\x01 \x01(\v2 .temporal.api.common.v1.PayloadsR\adetails\"\xf5\x01\n" + + "7RequestCancelExternalWorkflowExecutionCommandAttributes\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x1f\n" + + "\vworkflow_id\x18\x02 \x01(\tR\n" + + "workflowId\x12\x15\n" + + "\x06run_id\x18\x03 \x01(\tR\x05runId\x12\x1c\n" + + "\acontrol\x18\x04 \x01(\tB\x02\x18\x01R\acontrol\x12.\n" + + "\x13child_workflow_only\x18\x05 \x01(\bR\x11childWorkflowOnly\x12\x16\n" + + "\x06reason\x18\x06 \x01(\tR\x06reason\"\xf8\x02\n" + + "0SignalExternalWorkflowExecutionCommandAttributes\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12G\n" + + "\texecution\x18\x02 \x01(\v2).temporal.api.common.v1.WorkflowExecutionR\texecution\x12\x1f\n" + + "\vsignal_name\x18\x03 \x01(\tR\n" + + "signalName\x126\n" + + "\x05input\x18\x04 \x01(\v2 .temporal.api.common.v1.PayloadsR\x05input\x12\x1c\n" + + "\acontrol\x18\x05 \x01(\tB\x02\x18\x01R\acontrol\x12.\n" + + "\x13child_workflow_only\x18\x06 \x01(\bR\x11childWorkflowOnly\x126\n" + + "\x06header\x18\a \x01(\v2\x1e.temporal.api.common.v1.HeaderR\x06header\"\x88\x01\n" + + "/UpsertWorkflowSearchAttributesCommandAttributes\x12U\n" + + "\x11search_attributes\x18\x01 \x01(\v2(.temporal.api.common.v1.SearchAttributesR\x10searchAttributes\"n\n" + + ")ModifyWorkflowPropertiesCommandAttributes\x12A\n" + + "\rupserted_memo\x18\x01 \x01(\v2\x1c.temporal.api.common.v1.MemoR\fupsertedMemo\"\xf1\x02\n" + + "\x1dRecordMarkerCommandAttributes\x12\x1f\n" + + "\vmarker_name\x18\x01 \x01(\tR\n" + + "markerName\x12]\n" + + "\adetails\x18\x02 \x03(\v2C.temporal.api.command.v1.RecordMarkerCommandAttributes.DetailsEntryR\adetails\x126\n" + + "\x06header\x18\x03 \x01(\v2\x1e.temporal.api.common.v1.HeaderR\x06header\x12:\n" + + "\afailure\x18\x04 \x01(\v2 .temporal.api.failure.v1.FailureR\afailure\x1a\\\n" + + "\fDetailsEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x126\n" + + "\x05value\x18\x02 \x01(\v2 .temporal.api.common.v1.PayloadsR\x05value:\x028\x01\"\x9b\t\n" + + "/ContinueAsNewWorkflowExecutionCommandAttributes\x12I\n" + + "\rworkflow_type\x18\x01 \x01(\v2$.temporal.api.common.v1.WorkflowTypeR\fworkflowType\x12C\n" + + "\n" + + "task_queue\x18\x02 \x01(\v2$.temporal.api.taskqueue.v1.TaskQueueR\ttaskQueue\x126\n" + + "\x05input\x18\x03 \x01(\v2 .temporal.api.common.v1.PayloadsR\x05input\x12K\n" + + "\x14workflow_run_timeout\x18\x04 \x01(\v2\x19.google.protobuf.DurationR\x12workflowRunTimeout\x12M\n" + + "\x15workflow_task_timeout\x18\x05 \x01(\v2\x19.google.protobuf.DurationR\x13workflowTaskTimeout\x12O\n" + + "\x16backoff_start_interval\x18\x06 \x01(\v2\x19.google.protobuf.DurationR\x14backoffStartInterval\x12F\n" + + "\fretry_policy\x18\a \x01(\v2#.temporal.api.common.v1.RetryPolicyR\vretryPolicy\x12K\n" + + "\tinitiator\x18\b \x01(\x0e2-.temporal.api.enums.v1.ContinueAsNewInitiatorR\tinitiator\x12:\n" + + "\afailure\x18\t \x01(\v2 .temporal.api.failure.v1.FailureR\afailure\x12V\n" + + "\x16last_completion_result\x18\n" + + " \x01(\v2 .temporal.api.common.v1.PayloadsR\x14lastCompletionResult\x12#\n" + + "\rcron_schedule\x18\v \x01(\tR\fcronSchedule\x126\n" + + "\x06header\x18\f \x01(\v2\x1e.temporal.api.common.v1.HeaderR\x06header\x120\n" + + "\x04memo\x18\r \x01(\v2\x1c.temporal.api.common.v1.MemoR\x04memo\x12U\n" + + "\x11search_attributes\x18\x0e \x01(\v2(.temporal.api.common.v1.SearchAttributesR\x10searchAttributes\x12,\n" + + "\x10inherit_build_id\x18\x0f \x01(\bB\x02\x18\x01R\x0einheritBuildId\x12v\n" + + "\x1binitial_versioning_behavior\x18\x10 \x01(\x0e26.temporal.api.enums.v1.ContinueAsNewVersioningBehaviorR\x19initialVersioningBehavior\"\x9f\t\n" + + ",StartChildWorkflowExecutionCommandAttributes\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x1f\n" + + "\vworkflow_id\x18\x02 \x01(\tR\n" + + "workflowId\x12I\n" + + "\rworkflow_type\x18\x03 \x01(\v2$.temporal.api.common.v1.WorkflowTypeR\fworkflowType\x12C\n" + + "\n" + + "task_queue\x18\x04 \x01(\v2$.temporal.api.taskqueue.v1.TaskQueueR\ttaskQueue\x126\n" + + "\x05input\x18\x05 \x01(\v2 .temporal.api.common.v1.PayloadsR\x05input\x12W\n" + + "\x1aworkflow_execution_timeout\x18\x06 \x01(\v2\x19.google.protobuf.DurationR\x18workflowExecutionTimeout\x12K\n" + + "\x14workflow_run_timeout\x18\a \x01(\v2\x19.google.protobuf.DurationR\x12workflowRunTimeout\x12M\n" + + "\x15workflow_task_timeout\x18\b \x01(\v2\x19.google.protobuf.DurationR\x13workflowTaskTimeout\x12X\n" + + "\x13parent_close_policy\x18\t \x01(\x0e2(.temporal.api.enums.v1.ParentClosePolicyR\x11parentClosePolicy\x12\x18\n" + + "\acontrol\x18\n" + + " \x01(\tR\acontrol\x12e\n" + + "\x18workflow_id_reuse_policy\x18\v \x01(\x0e2,.temporal.api.enums.v1.WorkflowIdReusePolicyR\x15workflowIdReusePolicy\x12F\n" + + "\fretry_policy\x18\f \x01(\v2#.temporal.api.common.v1.RetryPolicyR\vretryPolicy\x12#\n" + + "\rcron_schedule\x18\r \x01(\tR\fcronSchedule\x126\n" + + "\x06header\x18\x0e \x01(\v2\x1e.temporal.api.common.v1.HeaderR\x06header\x120\n" + + "\x04memo\x18\x0f \x01(\v2\x1c.temporal.api.common.v1.MemoR\x04memo\x12U\n" + + "\x11search_attributes\x18\x10 \x01(\v2(.temporal.api.common.v1.SearchAttributesR\x10searchAttributes\x12,\n" + + "\x10inherit_build_id\x18\x11 \x01(\bB\x02\x18\x01R\x0einheritBuildId\x12<\n" + + "\bpriority\x18\x12 \x01(\v2 .temporal.api.common.v1.PriorityR\bpriority\"A\n" + + " ProtocolMessageCommandAttributes\x12\x1d\n" + + "\n" + + "message_id\x18\x01 \x01(\tR\tmessageId\"\xe6\x04\n" + + "'ScheduleNexusOperationCommandAttributes\x12\x1a\n" + + "\bendpoint\x18\x01 \x01(\tR\bendpoint\x12\x18\n" + + "\aservice\x18\x02 \x01(\tR\aservice\x12\x1c\n" + + "\toperation\x18\x03 \x01(\tR\toperation\x125\n" + + "\x05input\x18\x04 \x01(\v2\x1f.temporal.api.common.v1.PayloadR\x05input\x12T\n" + + "\x19schedule_to_close_timeout\x18\x05 \x01(\v2\x19.google.protobuf.DurationR\x16scheduleToCloseTimeout\x12t\n" + + "\fnexus_header\x18\x06 \x03(\v2Q.temporal.api.command.v1.ScheduleNexusOperationCommandAttributes.NexusHeaderEntryR\vnexusHeader\x12T\n" + + "\x19schedule_to_start_timeout\x18\a \x01(\v2\x19.google.protobuf.DurationR\x16scheduleToStartTimeout\x12N\n" + + "\x16start_to_close_timeout\x18\b \x01(\v2\x19.google.protobuf.DurationR\x13startToCloseTimeout\x1a>\n" + + "\x10NexusHeaderEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\\\n" + + ",RequestCancelNexusOperationCommandAttributes\x12,\n" + + "\x12scheduled_event_id\x18\x01 \x01(\x03R\x10scheduledEventId\"\xb0\x17\n" + + "\aCommand\x12E\n" + + "\fcommand_type\x18\x01 \x01(\x0e2\".temporal.api.enums.v1.CommandTypeR\vcommandType\x12G\n" + + "\ruser_metadata\x18\xad\x02 \x01(\v2!.temporal.api.sdk.v1.UserMetadataR\fuserMetadata\x12\x9a\x01\n" + + ")schedule_activity_task_command_attributes\x18\x02 \x01(\v2>.temporal.api.command.v1.ScheduleActivityTaskCommandAttributesH\x00R%scheduleActivityTaskCommandAttributes\x12{\n" + + "\x1estart_timer_command_attributes\x18\x03 \x01(\v24.temporal.api.command.v1.StartTimerCommandAttributesH\x00R\x1bstartTimerCommandAttributes\x12\xa9\x01\n" + + ".complete_workflow_execution_command_attributes\x18\x04 \x01(\v2C.temporal.api.command.v1.CompleteWorkflowExecutionCommandAttributesH\x00R*completeWorkflowExecutionCommandAttributes\x12\x9d\x01\n" + + "*fail_workflow_execution_command_attributes\x18\x05 \x01(\v2?.temporal.api.command.v1.FailWorkflowExecutionCommandAttributesH\x00R&failWorkflowExecutionCommandAttributes\x12\xaa\x01\n" + + "/request_cancel_activity_task_command_attributes\x18\x06 \x01(\v2C.temporal.api.command.v1.RequestCancelActivityTaskCommandAttributesH\x00R*requestCancelActivityTaskCommandAttributes\x12~\n" + + "\x1fcancel_timer_command_attributes\x18\a \x01(\v25.temporal.api.command.v1.CancelTimerCommandAttributesH\x00R\x1ccancelTimerCommandAttributes\x12\xa3\x01\n" + + ",cancel_workflow_execution_command_attributes\x18\b \x01(\v2A.temporal.api.command.v1.CancelWorkflowExecutionCommandAttributesH\x00R(cancelWorkflowExecutionCommandAttributes\x12\xd2\x01\n" + + "=request_cancel_external_workflow_execution_command_attributes\x18\t \x01(\v2P.temporal.api.command.v1.RequestCancelExternalWorkflowExecutionCommandAttributesH\x00R7requestCancelExternalWorkflowExecutionCommandAttributes\x12\x81\x01\n" + + " record_marker_command_attributes\x18\n" + + " \x01(\v26.temporal.api.command.v1.RecordMarkerCommandAttributesH\x00R\x1drecordMarkerCommandAttributes\x12\xba\x01\n" + + "5continue_as_new_workflow_execution_command_attributes\x18\v \x01(\v2H.temporal.api.command.v1.ContinueAsNewWorkflowExecutionCommandAttributesH\x00R/continueAsNewWorkflowExecutionCommandAttributes\x12\xb0\x01\n" + + "1start_child_workflow_execution_command_attributes\x18\f \x01(\v2E.temporal.api.command.v1.StartChildWorkflowExecutionCommandAttributesH\x00R,startChildWorkflowExecutionCommandAttributes\x12\xbc\x01\n" + + "5signal_external_workflow_execution_command_attributes\x18\r \x01(\v2I.temporal.api.command.v1.SignalExternalWorkflowExecutionCommandAttributesH\x00R0signalExternalWorkflowExecutionCommandAttributes\x12\xb9\x01\n" + + "4upsert_workflow_search_attributes_command_attributes\x18\x0e \x01(\v2H.temporal.api.command.v1.UpsertWorkflowSearchAttributesCommandAttributesH\x00R/upsertWorkflowSearchAttributesCommandAttributes\x12\x8a\x01\n" + + "#protocol_message_command_attributes\x18\x0f \x01(\v29.temporal.api.command.v1.ProtocolMessageCommandAttributesH\x00R protocolMessageCommandAttributes\x12\xa6\x01\n" + + "-modify_workflow_properties_command_attributes\x18\x11 \x01(\v2B.temporal.api.command.v1.ModifyWorkflowPropertiesCommandAttributesH\x00R)modifyWorkflowPropertiesCommandAttributes\x12\xa0\x01\n" + + "+schedule_nexus_operation_command_attributes\x18\x12 \x01(\v2@.temporal.api.command.v1.ScheduleNexusOperationCommandAttributesH\x00R'scheduleNexusOperationCommandAttributes\x12\xb0\x01\n" + + "1request_cancel_nexus_operation_command_attributes\x18\x13 \x01(\v2E.temporal.api.command.v1.RequestCancelNexusOperationCommandAttributesH\x00R,requestCancelNexusOperationCommandAttributesB\f\n" + + "\n" + + "attributesB\x8e\x01\n" + + "\x1aio.temporal.api.command.v1B\fMessageProtoP\x01Z%go.temporal.io/api/command/v1;command\xaa\x02\x19Temporalio.Api.Command.V1\xea\x02\x1cTemporalio::Api::Command::V1b\x06proto3" + +var file_temporal_api_command_v1_message_proto_msgTypes = make([]protoimpl.MessageInfo, 20) +var file_temporal_api_command_v1_message_proto_goTypes = []any{ + (*ScheduleActivityTaskCommandAttributes)(nil), // 0: temporal.api.command.v1.ScheduleActivityTaskCommandAttributes + (*RequestCancelActivityTaskCommandAttributes)(nil), // 1: temporal.api.command.v1.RequestCancelActivityTaskCommandAttributes + (*StartTimerCommandAttributes)(nil), // 2: temporal.api.command.v1.StartTimerCommandAttributes + (*CompleteWorkflowExecutionCommandAttributes)(nil), // 3: temporal.api.command.v1.CompleteWorkflowExecutionCommandAttributes + (*FailWorkflowExecutionCommandAttributes)(nil), // 4: temporal.api.command.v1.FailWorkflowExecutionCommandAttributes + (*CancelTimerCommandAttributes)(nil), // 5: temporal.api.command.v1.CancelTimerCommandAttributes + (*CancelWorkflowExecutionCommandAttributes)(nil), // 6: temporal.api.command.v1.CancelWorkflowExecutionCommandAttributes + (*RequestCancelExternalWorkflowExecutionCommandAttributes)(nil), // 7: temporal.api.command.v1.RequestCancelExternalWorkflowExecutionCommandAttributes + (*SignalExternalWorkflowExecutionCommandAttributes)(nil), // 8: temporal.api.command.v1.SignalExternalWorkflowExecutionCommandAttributes + (*UpsertWorkflowSearchAttributesCommandAttributes)(nil), // 9: temporal.api.command.v1.UpsertWorkflowSearchAttributesCommandAttributes + (*ModifyWorkflowPropertiesCommandAttributes)(nil), // 10: temporal.api.command.v1.ModifyWorkflowPropertiesCommandAttributes + (*RecordMarkerCommandAttributes)(nil), // 11: temporal.api.command.v1.RecordMarkerCommandAttributes + (*ContinueAsNewWorkflowExecutionCommandAttributes)(nil), // 12: temporal.api.command.v1.ContinueAsNewWorkflowExecutionCommandAttributes + (*StartChildWorkflowExecutionCommandAttributes)(nil), // 13: temporal.api.command.v1.StartChildWorkflowExecutionCommandAttributes + (*ProtocolMessageCommandAttributes)(nil), // 14: temporal.api.command.v1.ProtocolMessageCommandAttributes + (*ScheduleNexusOperationCommandAttributes)(nil), // 15: temporal.api.command.v1.ScheduleNexusOperationCommandAttributes + (*RequestCancelNexusOperationCommandAttributes)(nil), // 16: temporal.api.command.v1.RequestCancelNexusOperationCommandAttributes + (*Command)(nil), // 17: temporal.api.command.v1.Command + nil, // 18: temporal.api.command.v1.RecordMarkerCommandAttributes.DetailsEntry + nil, // 19: temporal.api.command.v1.ScheduleNexusOperationCommandAttributes.NexusHeaderEntry + (*v1.ActivityType)(nil), // 20: temporal.api.common.v1.ActivityType + (*v11.TaskQueue)(nil), // 21: temporal.api.taskqueue.v1.TaskQueue + (*v1.Header)(nil), // 22: temporal.api.common.v1.Header + (*v1.Payloads)(nil), // 23: temporal.api.common.v1.Payloads + (*durationpb.Duration)(nil), // 24: google.protobuf.Duration + (*v1.RetryPolicy)(nil), // 25: temporal.api.common.v1.RetryPolicy + (*v1.Priority)(nil), // 26: temporal.api.common.v1.Priority + (*v12.Failure)(nil), // 27: temporal.api.failure.v1.Failure + (*v1.WorkflowExecution)(nil), // 28: temporal.api.common.v1.WorkflowExecution + (*v1.SearchAttributes)(nil), // 29: temporal.api.common.v1.SearchAttributes + (*v1.Memo)(nil), // 30: temporal.api.common.v1.Memo + (*v1.WorkflowType)(nil), // 31: temporal.api.common.v1.WorkflowType + (v13.ContinueAsNewInitiator)(0), // 32: temporal.api.enums.v1.ContinueAsNewInitiator + (v13.ContinueAsNewVersioningBehavior)(0), // 33: temporal.api.enums.v1.ContinueAsNewVersioningBehavior + (v13.ParentClosePolicy)(0), // 34: temporal.api.enums.v1.ParentClosePolicy + (v13.WorkflowIdReusePolicy)(0), // 35: temporal.api.enums.v1.WorkflowIdReusePolicy + (*v1.Payload)(nil), // 36: temporal.api.common.v1.Payload + (v13.CommandType)(0), // 37: temporal.api.enums.v1.CommandType + (*v14.UserMetadata)(nil), // 38: temporal.api.sdk.v1.UserMetadata +} +var file_temporal_api_command_v1_message_proto_depIdxs = []int32{ + 20, // 0: temporal.api.command.v1.ScheduleActivityTaskCommandAttributes.activity_type:type_name -> temporal.api.common.v1.ActivityType + 21, // 1: temporal.api.command.v1.ScheduleActivityTaskCommandAttributes.task_queue:type_name -> temporal.api.taskqueue.v1.TaskQueue + 22, // 2: temporal.api.command.v1.ScheduleActivityTaskCommandAttributes.header:type_name -> temporal.api.common.v1.Header + 23, // 3: temporal.api.command.v1.ScheduleActivityTaskCommandAttributes.input:type_name -> temporal.api.common.v1.Payloads + 24, // 4: temporal.api.command.v1.ScheduleActivityTaskCommandAttributes.schedule_to_close_timeout:type_name -> google.protobuf.Duration + 24, // 5: temporal.api.command.v1.ScheduleActivityTaskCommandAttributes.schedule_to_start_timeout:type_name -> google.protobuf.Duration + 24, // 6: temporal.api.command.v1.ScheduleActivityTaskCommandAttributes.start_to_close_timeout:type_name -> google.protobuf.Duration + 24, // 7: temporal.api.command.v1.ScheduleActivityTaskCommandAttributes.heartbeat_timeout:type_name -> google.protobuf.Duration + 25, // 8: temporal.api.command.v1.ScheduleActivityTaskCommandAttributes.retry_policy:type_name -> temporal.api.common.v1.RetryPolicy + 26, // 9: temporal.api.command.v1.ScheduleActivityTaskCommandAttributes.priority:type_name -> temporal.api.common.v1.Priority + 24, // 10: temporal.api.command.v1.StartTimerCommandAttributes.start_to_fire_timeout:type_name -> google.protobuf.Duration + 23, // 11: temporal.api.command.v1.CompleteWorkflowExecutionCommandAttributes.result:type_name -> temporal.api.common.v1.Payloads + 27, // 12: temporal.api.command.v1.FailWorkflowExecutionCommandAttributes.failure:type_name -> temporal.api.failure.v1.Failure + 23, // 13: temporal.api.command.v1.CancelWorkflowExecutionCommandAttributes.details:type_name -> temporal.api.common.v1.Payloads + 28, // 14: temporal.api.command.v1.SignalExternalWorkflowExecutionCommandAttributes.execution:type_name -> temporal.api.common.v1.WorkflowExecution + 23, // 15: temporal.api.command.v1.SignalExternalWorkflowExecutionCommandAttributes.input:type_name -> temporal.api.common.v1.Payloads + 22, // 16: temporal.api.command.v1.SignalExternalWorkflowExecutionCommandAttributes.header:type_name -> temporal.api.common.v1.Header + 29, // 17: temporal.api.command.v1.UpsertWorkflowSearchAttributesCommandAttributes.search_attributes:type_name -> temporal.api.common.v1.SearchAttributes + 30, // 18: temporal.api.command.v1.ModifyWorkflowPropertiesCommandAttributes.upserted_memo:type_name -> temporal.api.common.v1.Memo + 18, // 19: temporal.api.command.v1.RecordMarkerCommandAttributes.details:type_name -> temporal.api.command.v1.RecordMarkerCommandAttributes.DetailsEntry + 22, // 20: temporal.api.command.v1.RecordMarkerCommandAttributes.header:type_name -> temporal.api.common.v1.Header + 27, // 21: temporal.api.command.v1.RecordMarkerCommandAttributes.failure:type_name -> temporal.api.failure.v1.Failure + 31, // 22: temporal.api.command.v1.ContinueAsNewWorkflowExecutionCommandAttributes.workflow_type:type_name -> temporal.api.common.v1.WorkflowType + 21, // 23: temporal.api.command.v1.ContinueAsNewWorkflowExecutionCommandAttributes.task_queue:type_name -> temporal.api.taskqueue.v1.TaskQueue + 23, // 24: temporal.api.command.v1.ContinueAsNewWorkflowExecutionCommandAttributes.input:type_name -> temporal.api.common.v1.Payloads + 24, // 25: temporal.api.command.v1.ContinueAsNewWorkflowExecutionCommandAttributes.workflow_run_timeout:type_name -> google.protobuf.Duration + 24, // 26: temporal.api.command.v1.ContinueAsNewWorkflowExecutionCommandAttributes.workflow_task_timeout:type_name -> google.protobuf.Duration + 24, // 27: temporal.api.command.v1.ContinueAsNewWorkflowExecutionCommandAttributes.backoff_start_interval:type_name -> google.protobuf.Duration + 25, // 28: temporal.api.command.v1.ContinueAsNewWorkflowExecutionCommandAttributes.retry_policy:type_name -> temporal.api.common.v1.RetryPolicy + 32, // 29: temporal.api.command.v1.ContinueAsNewWorkflowExecutionCommandAttributes.initiator:type_name -> temporal.api.enums.v1.ContinueAsNewInitiator + 27, // 30: temporal.api.command.v1.ContinueAsNewWorkflowExecutionCommandAttributes.failure:type_name -> temporal.api.failure.v1.Failure + 23, // 31: temporal.api.command.v1.ContinueAsNewWorkflowExecutionCommandAttributes.last_completion_result:type_name -> temporal.api.common.v1.Payloads + 22, // 32: temporal.api.command.v1.ContinueAsNewWorkflowExecutionCommandAttributes.header:type_name -> temporal.api.common.v1.Header + 30, // 33: temporal.api.command.v1.ContinueAsNewWorkflowExecutionCommandAttributes.memo:type_name -> temporal.api.common.v1.Memo + 29, // 34: temporal.api.command.v1.ContinueAsNewWorkflowExecutionCommandAttributes.search_attributes:type_name -> temporal.api.common.v1.SearchAttributes + 33, // 35: temporal.api.command.v1.ContinueAsNewWorkflowExecutionCommandAttributes.initial_versioning_behavior:type_name -> temporal.api.enums.v1.ContinueAsNewVersioningBehavior + 31, // 36: temporal.api.command.v1.StartChildWorkflowExecutionCommandAttributes.workflow_type:type_name -> temporal.api.common.v1.WorkflowType + 21, // 37: temporal.api.command.v1.StartChildWorkflowExecutionCommandAttributes.task_queue:type_name -> temporal.api.taskqueue.v1.TaskQueue + 23, // 38: temporal.api.command.v1.StartChildWorkflowExecutionCommandAttributes.input:type_name -> temporal.api.common.v1.Payloads + 24, // 39: temporal.api.command.v1.StartChildWorkflowExecutionCommandAttributes.workflow_execution_timeout:type_name -> google.protobuf.Duration + 24, // 40: temporal.api.command.v1.StartChildWorkflowExecutionCommandAttributes.workflow_run_timeout:type_name -> google.protobuf.Duration + 24, // 41: temporal.api.command.v1.StartChildWorkflowExecutionCommandAttributes.workflow_task_timeout:type_name -> google.protobuf.Duration + 34, // 42: temporal.api.command.v1.StartChildWorkflowExecutionCommandAttributes.parent_close_policy:type_name -> temporal.api.enums.v1.ParentClosePolicy + 35, // 43: temporal.api.command.v1.StartChildWorkflowExecutionCommandAttributes.workflow_id_reuse_policy:type_name -> temporal.api.enums.v1.WorkflowIdReusePolicy + 25, // 44: temporal.api.command.v1.StartChildWorkflowExecutionCommandAttributes.retry_policy:type_name -> temporal.api.common.v1.RetryPolicy + 22, // 45: temporal.api.command.v1.StartChildWorkflowExecutionCommandAttributes.header:type_name -> temporal.api.common.v1.Header + 30, // 46: temporal.api.command.v1.StartChildWorkflowExecutionCommandAttributes.memo:type_name -> temporal.api.common.v1.Memo + 29, // 47: temporal.api.command.v1.StartChildWorkflowExecutionCommandAttributes.search_attributes:type_name -> temporal.api.common.v1.SearchAttributes + 26, // 48: temporal.api.command.v1.StartChildWorkflowExecutionCommandAttributes.priority:type_name -> temporal.api.common.v1.Priority + 36, // 49: temporal.api.command.v1.ScheduleNexusOperationCommandAttributes.input:type_name -> temporal.api.common.v1.Payload + 24, // 50: temporal.api.command.v1.ScheduleNexusOperationCommandAttributes.schedule_to_close_timeout:type_name -> google.protobuf.Duration + 19, // 51: temporal.api.command.v1.ScheduleNexusOperationCommandAttributes.nexus_header:type_name -> temporal.api.command.v1.ScheduleNexusOperationCommandAttributes.NexusHeaderEntry + 24, // 52: temporal.api.command.v1.ScheduleNexusOperationCommandAttributes.schedule_to_start_timeout:type_name -> google.protobuf.Duration + 24, // 53: temporal.api.command.v1.ScheduleNexusOperationCommandAttributes.start_to_close_timeout:type_name -> google.protobuf.Duration + 37, // 54: temporal.api.command.v1.Command.command_type:type_name -> temporal.api.enums.v1.CommandType + 38, // 55: temporal.api.command.v1.Command.user_metadata:type_name -> temporal.api.sdk.v1.UserMetadata + 0, // 56: temporal.api.command.v1.Command.schedule_activity_task_command_attributes:type_name -> temporal.api.command.v1.ScheduleActivityTaskCommandAttributes + 2, // 57: temporal.api.command.v1.Command.start_timer_command_attributes:type_name -> temporal.api.command.v1.StartTimerCommandAttributes + 3, // 58: temporal.api.command.v1.Command.complete_workflow_execution_command_attributes:type_name -> temporal.api.command.v1.CompleteWorkflowExecutionCommandAttributes + 4, // 59: temporal.api.command.v1.Command.fail_workflow_execution_command_attributes:type_name -> temporal.api.command.v1.FailWorkflowExecutionCommandAttributes + 1, // 60: temporal.api.command.v1.Command.request_cancel_activity_task_command_attributes:type_name -> temporal.api.command.v1.RequestCancelActivityTaskCommandAttributes + 5, // 61: temporal.api.command.v1.Command.cancel_timer_command_attributes:type_name -> temporal.api.command.v1.CancelTimerCommandAttributes + 6, // 62: temporal.api.command.v1.Command.cancel_workflow_execution_command_attributes:type_name -> temporal.api.command.v1.CancelWorkflowExecutionCommandAttributes + 7, // 63: temporal.api.command.v1.Command.request_cancel_external_workflow_execution_command_attributes:type_name -> temporal.api.command.v1.RequestCancelExternalWorkflowExecutionCommandAttributes + 11, // 64: temporal.api.command.v1.Command.record_marker_command_attributes:type_name -> temporal.api.command.v1.RecordMarkerCommandAttributes + 12, // 65: temporal.api.command.v1.Command.continue_as_new_workflow_execution_command_attributes:type_name -> temporal.api.command.v1.ContinueAsNewWorkflowExecutionCommandAttributes + 13, // 66: temporal.api.command.v1.Command.start_child_workflow_execution_command_attributes:type_name -> temporal.api.command.v1.StartChildWorkflowExecutionCommandAttributes + 8, // 67: temporal.api.command.v1.Command.signal_external_workflow_execution_command_attributes:type_name -> temporal.api.command.v1.SignalExternalWorkflowExecutionCommandAttributes + 9, // 68: temporal.api.command.v1.Command.upsert_workflow_search_attributes_command_attributes:type_name -> temporal.api.command.v1.UpsertWorkflowSearchAttributesCommandAttributes + 14, // 69: temporal.api.command.v1.Command.protocol_message_command_attributes:type_name -> temporal.api.command.v1.ProtocolMessageCommandAttributes + 10, // 70: temporal.api.command.v1.Command.modify_workflow_properties_command_attributes:type_name -> temporal.api.command.v1.ModifyWorkflowPropertiesCommandAttributes + 15, // 71: temporal.api.command.v1.Command.schedule_nexus_operation_command_attributes:type_name -> temporal.api.command.v1.ScheduleNexusOperationCommandAttributes + 16, // 72: temporal.api.command.v1.Command.request_cancel_nexus_operation_command_attributes:type_name -> temporal.api.command.v1.RequestCancelNexusOperationCommandAttributes + 23, // 73: temporal.api.command.v1.RecordMarkerCommandAttributes.DetailsEntry.value:type_name -> temporal.api.common.v1.Payloads + 74, // [74:74] is the sub-list for method output_type + 74, // [74:74] is the sub-list for method input_type + 74, // [74:74] is the sub-list for extension type_name + 74, // [74:74] is the sub-list for extension extendee + 0, // [0:74] is the sub-list for field type_name +} + +func init() { file_temporal_api_command_v1_message_proto_init() } +func file_temporal_api_command_v1_message_proto_init() { + if File_temporal_api_command_v1_message_proto != nil { + return + } + file_temporal_api_command_v1_message_proto_msgTypes[17].OneofWrappers = []any{ + (*command_ScheduleActivityTaskCommandAttributes)(nil), + (*command_StartTimerCommandAttributes)(nil), + (*command_CompleteWorkflowExecutionCommandAttributes)(nil), + (*command_FailWorkflowExecutionCommandAttributes)(nil), + (*command_RequestCancelActivityTaskCommandAttributes)(nil), + (*command_CancelTimerCommandAttributes)(nil), + (*command_CancelWorkflowExecutionCommandAttributes)(nil), + (*command_RequestCancelExternalWorkflowExecutionCommandAttributes)(nil), + (*command_RecordMarkerCommandAttributes)(nil), + (*command_ContinueAsNewWorkflowExecutionCommandAttributes)(nil), + (*command_StartChildWorkflowExecutionCommandAttributes)(nil), + (*command_SignalExternalWorkflowExecutionCommandAttributes)(nil), + (*command_UpsertWorkflowSearchAttributesCommandAttributes)(nil), + (*command_ProtocolMessageCommandAttributes)(nil), + (*command_ModifyWorkflowPropertiesCommandAttributes)(nil), + (*command_ScheduleNexusOperationCommandAttributes)(nil), + (*command_RequestCancelNexusOperationCommandAttributes)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_api_command_v1_message_proto_rawDesc), len(file_temporal_api_command_v1_message_proto_rawDesc)), + NumEnums: 0, + NumMessages: 20, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_temporal_api_command_v1_message_proto_goTypes, + DependencyIndexes: file_temporal_api_command_v1_message_proto_depIdxs, + MessageInfos: file_temporal_api_command_v1_message_proto_msgTypes, + }.Build() + File_temporal_api_command_v1_message_proto = out.File + file_temporal_api_command_v1_message_proto_goTypes = nil + file_temporal_api_command_v1_message_proto_depIdxs = nil +} diff --git a/common/v1/message.pb.go b/common/v1/message.pb.go index a7d527d2..f63c0200 100644 --- a/common/v1/message.pb.go +++ b/common/v1/message.pb.go @@ -4,11 +4,13 @@ // protoc // source: temporal/api/common/v1/message.proto +//go:build !protoopaque + package common import ( reflect "reflect" - sync "sync" + "strconv" unsafe "unsafe" v1 "go.temporal.io/api/enums/v1" @@ -26,7 +28,7 @@ const ( ) type DataBlob struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` EncodingType v1.EncodingType `protobuf:"varint,1,opt,name=encoding_type,json=encodingType,proto3,enum=temporal.api.enums.v1.EncodingType" json:"encoding_type,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` unknownFields protoimpl.UnknownFields @@ -58,11 +60,6 @@ func (x *DataBlob) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DataBlob.ProtoReflect.Descriptor instead. -func (*DataBlob) Descriptor() ([]byte, []int) { - return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{0} -} - func (x *DataBlob) GetEncodingType() v1.EncodingType { if x != nil { return x.EncodingType @@ -77,9 +74,36 @@ func (x *DataBlob) GetData() []byte { return nil } +func (x *DataBlob) SetEncodingType(v v1.EncodingType) { + x.EncodingType = v +} + +func (x *DataBlob) SetData(v []byte) { + if v == nil { + v = []byte{} + } + x.Data = v +} + +type DataBlob_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + EncodingType v1.EncodingType + Data []byte +} + +func (b0 DataBlob_builder) Build() *DataBlob { + m0 := &DataBlob{} + b, x := &b0, m0 + _, _ = b, x + x.EncodingType = b.EncodingType + x.Data = b.Data + return m0 +} + // See `Payload` type Payloads struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Payloads []*Payload `protobuf:"bytes,1,rep,name=payloads,proto3" json:"payloads,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -110,11 +134,6 @@ func (x *Payloads) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Payloads.ProtoReflect.Descriptor instead. -func (*Payloads) Descriptor() ([]byte, []int) { - return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{1} -} - func (x *Payloads) GetPayloads() []*Payload { if x != nil { return x.Payloads @@ -122,11 +141,29 @@ func (x *Payloads) GetPayloads() []*Payload { return nil } +func (x *Payloads) SetPayloads(v []*Payload) { + x.Payloads = v +} + +type Payloads_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Payloads []*Payload +} + +func (b0 Payloads_builder) Build() *Payloads { + m0 := &Payloads{} + b, x := &b0, m0 + _, _ = b, x + x.Payloads = b.Payloads + return m0 +} + // Represents some binary (byte array) data (ex: activity input parameters or workflow result) with // metadata which describes this binary data (format, encoding, encryption, etc). Serialization // of the data may be user-defined. type Payload struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Metadata map[string][]byte `protobuf:"bytes,1,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // Details about externally stored payloads associated with this payload. @@ -160,11 +197,6 @@ func (x *Payload) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Payload.ProtoReflect.Descriptor instead. -func (*Payload) Descriptor() ([]byte, []int) { - return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{2} -} - func (x *Payload) GetMetadata() map[string][]byte { if x != nil { return x.Metadata @@ -186,10 +218,44 @@ func (x *Payload) GetExternalPayloads() []*Payload_ExternalPayloadDetails { return nil } +func (x *Payload) SetMetadata(v map[string][]byte) { + x.Metadata = v +} + +func (x *Payload) SetData(v []byte) { + if v == nil { + v = []byte{} + } + x.Data = v +} + +func (x *Payload) SetExternalPayloads(v []*Payload_ExternalPayloadDetails) { + x.ExternalPayloads = v +} + +type Payload_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Metadata map[string][]byte + Data []byte + // Details about externally stored payloads associated with this payload. + ExternalPayloads []*Payload_ExternalPayloadDetails +} + +func (b0 Payload_builder) Build() *Payload { + m0 := &Payload{} + b, x := &b0, m0 + _, _ = b, x + x.Metadata = b.Metadata + x.Data = b.Data + x.ExternalPayloads = b.ExternalPayloads + return m0 +} + // A user-defined set of *indexed* fields that are used/exposed when listing/searching workflows. // The payload is not serialized in a user-defined way. type SearchAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` IndexedFields map[string]*Payload `protobuf:"bytes,1,rep,name=indexed_fields,json=indexedFields,proto3" json:"indexed_fields,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -220,11 +286,6 @@ func (x *SearchAttributes) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SearchAttributes.ProtoReflect.Descriptor instead. -func (*SearchAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{3} -} - func (x *SearchAttributes) GetIndexedFields() map[string]*Payload { if x != nil { return x.IndexedFields @@ -232,9 +293,27 @@ func (x *SearchAttributes) GetIndexedFields() map[string]*Payload { return nil } +func (x *SearchAttributes) SetIndexedFields(v map[string]*Payload) { + x.IndexedFields = v +} + +type SearchAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + IndexedFields map[string]*Payload +} + +func (b0 SearchAttributes_builder) Build() *SearchAttributes { + m0 := &SearchAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.IndexedFields = b.IndexedFields + return m0 +} + // A user-defined set of *unindexed* fields that are exposed when listing/searching workflows type Memo struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Fields map[string]*Payload `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -265,11 +344,6 @@ func (x *Memo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Memo.ProtoReflect.Descriptor instead. -func (*Memo) Descriptor() ([]byte, []int) { - return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{4} -} - func (x *Memo) GetFields() map[string]*Payload { if x != nil { return x.Fields @@ -277,10 +351,28 @@ func (x *Memo) GetFields() map[string]*Payload { return nil } +func (x *Memo) SetFields(v map[string]*Payload) { + x.Fields = v +} + +type Memo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Fields map[string]*Payload +} + +func (b0 Memo_builder) Build() *Memo { + m0 := &Memo{} + b, x := &b0, m0 + _, _ = b, x + x.Fields = b.Fields + return m0 +} + // Contains metadata that can be attached to a variety of requests, like starting a workflow, and // can be propagated between, for example, workflows and activities. type Header struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Fields map[string]*Payload `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -311,11 +403,6 @@ func (x *Header) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Header.ProtoReflect.Descriptor instead. -func (*Header) Descriptor() ([]byte, []int) { - return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{5} -} - func (x *Header) GetFields() map[string]*Payload { if x != nil { return x.Fields @@ -323,11 +410,29 @@ func (x *Header) GetFields() map[string]*Payload { return nil } +func (x *Header) SetFields(v map[string]*Payload) { + x.Fields = v +} + +type Header_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Fields map[string]*Payload +} + +func (b0 Header_builder) Build() *Header { + m0 := &Header{} + b, x := &b0, m0 + _, _ = b, x + x.Fields = b.Fields + return m0 +} + // Identifies a specific workflow within a namespace. Practically speaking, because run_id is a // uuid, a workflow execution is globally unique. Note that many commands allow specifying an empty // run id as a way of saying "target the latest run of the workflow". type WorkflowExecution struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` WorkflowId string `protobuf:"bytes,1,opt,name=workflow_id,json=workflowId,proto3" json:"workflow_id,omitempty"` RunId string `protobuf:"bytes,2,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"` unknownFields protoimpl.UnknownFields @@ -359,11 +464,6 @@ func (x *WorkflowExecution) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use WorkflowExecution.ProtoReflect.Descriptor instead. -func (*WorkflowExecution) Descriptor() ([]byte, []int) { - return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{6} -} - func (x *WorkflowExecution) GetWorkflowId() string { if x != nil { return x.WorkflowId @@ -378,10 +478,34 @@ func (x *WorkflowExecution) GetRunId() string { return "" } +func (x *WorkflowExecution) SetWorkflowId(v string) { + x.WorkflowId = v +} + +func (x *WorkflowExecution) SetRunId(v string) { + x.RunId = v +} + +type WorkflowExecution_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + WorkflowId string + RunId string +} + +func (b0 WorkflowExecution_builder) Build() *WorkflowExecution { + m0 := &WorkflowExecution{} + b, x := &b0, m0 + _, _ = b, x + x.WorkflowId = b.WorkflowId + x.RunId = b.RunId + return m0 +} + // Represents the identifier used by a workflow author to define the workflow. Typically, the // name of a function. This is sometimes referred to as the workflow's "name" type WorkflowType struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -412,11 +536,6 @@ func (x *WorkflowType) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use WorkflowType.ProtoReflect.Descriptor instead. -func (*WorkflowType) Descriptor() ([]byte, []int) { - return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{7} -} - func (x *WorkflowType) GetName() string { if x != nil { return x.Name @@ -424,10 +543,28 @@ func (x *WorkflowType) GetName() string { return "" } +func (x *WorkflowType) SetName(v string) { + x.Name = v +} + +type WorkflowType_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string +} + +func (b0 WorkflowType_builder) Build() *WorkflowType { + m0 := &WorkflowType{} + b, x := &b0, m0 + _, _ = b, x + x.Name = b.Name + return m0 +} + // Represents the identifier used by a activity author to define the activity. Typically, the // name of a function. This is sometimes referred to as the activity's "name" type ActivityType struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -458,11 +595,6 @@ func (x *ActivityType) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ActivityType.ProtoReflect.Descriptor instead. -func (*ActivityType) Descriptor() ([]byte, []int) { - return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{8} -} - func (x *ActivityType) GetName() string { if x != nil { return x.Name @@ -470,9 +602,27 @@ func (x *ActivityType) GetName() string { return "" } +func (x *ActivityType) SetName(v string) { + x.Name = v +} + +type ActivityType_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string +} + +func (b0 ActivityType_builder) Build() *ActivityType { + m0 := &ActivityType{} + b, x := &b0, m0 + _, _ = b, x + x.Name = b.Name + return m0 +} + // How retries ought to be handled, usable by both workflows and activities type RetryPolicy struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Interval of the first retry. If retryBackoffCoefficient is 1.0 then it is used for all retries. InitialInterval *durationpb.Duration `protobuf:"bytes,1,opt,name=initial_interval,json=initialInterval,proto3" json:"initial_interval,omitempty"` // Coefficient used to calculate the next retry interval. @@ -517,11 +667,6 @@ func (x *RetryPolicy) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RetryPolicy.ProtoReflect.Descriptor instead. -func (*RetryPolicy) Descriptor() ([]byte, []int) { - return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{9} -} - func (x *RetryPolicy) GetInitialInterval() *durationpb.Duration { if x != nil { return x.InitialInterval @@ -557,9 +702,83 @@ func (x *RetryPolicy) GetNonRetryableErrorTypes() []string { return nil } +func (x *RetryPolicy) SetInitialInterval(v *durationpb.Duration) { + x.InitialInterval = v +} + +func (x *RetryPolicy) SetBackoffCoefficient(v float64) { + x.BackoffCoefficient = v +} + +func (x *RetryPolicy) SetMaximumInterval(v *durationpb.Duration) { + x.MaximumInterval = v +} + +func (x *RetryPolicy) SetMaximumAttempts(v int32) { + x.MaximumAttempts = v +} + +func (x *RetryPolicy) SetNonRetryableErrorTypes(v []string) { + x.NonRetryableErrorTypes = v +} + +func (x *RetryPolicy) HasInitialInterval() bool { + if x == nil { + return false + } + return x.InitialInterval != nil +} + +func (x *RetryPolicy) HasMaximumInterval() bool { + if x == nil { + return false + } + return x.MaximumInterval != nil +} + +func (x *RetryPolicy) ClearInitialInterval() { + x.InitialInterval = nil +} + +func (x *RetryPolicy) ClearMaximumInterval() { + x.MaximumInterval = nil +} + +type RetryPolicy_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Interval of the first retry. If retryBackoffCoefficient is 1.0 then it is used for all retries. + InitialInterval *durationpb.Duration + // Coefficient used to calculate the next retry interval. + // The next retry interval is previous interval multiplied by the coefficient. + // Must be 1 or larger. + BackoffCoefficient float64 + // Maximum interval between retries. Exponential backoff leads to interval increase. + // This value is the cap of the increase. Default is 100x of the initial interval. + MaximumInterval *durationpb.Duration + // Maximum number of attempts. When exceeded the retries stop even if not expired yet. + // 1 disables retries. 0 means unlimited (up to the timeouts) + MaximumAttempts int32 + // Non-Retryable errors types. Will stop retrying if the error type matches this list. Note that + // this is not a substring match, the error *type* (not message) must match exactly. + NonRetryableErrorTypes []string +} + +func (b0 RetryPolicy_builder) Build() *RetryPolicy { + m0 := &RetryPolicy{} + b, x := &b0, m0 + _, _ = b, x + x.InitialInterval = b.InitialInterval + x.BackoffCoefficient = b.BackoffCoefficient + x.MaximumInterval = b.MaximumInterval + x.MaximumAttempts = b.MaximumAttempts + x.NonRetryableErrorTypes = b.NonRetryableErrorTypes + return m0 +} + // Metadata relevant for metering purposes type MeteringMetadata struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Count of local activities which have begun an execution attempt during this workflow task, // and whose first attempt occurred in some previous task. This is used for metering // purposes, and does not affect workflow state. @@ -597,11 +816,6 @@ func (x *MeteringMetadata) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use MeteringMetadata.ProtoReflect.Descriptor instead. -func (*MeteringMetadata) Descriptor() ([]byte, []int) { - return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{10} -} - func (x *MeteringMetadata) GetNonfirstLocalActivityExecutionAttempts() uint32 { if x != nil { return x.NonfirstLocalActivityExecutionAttempts @@ -609,10 +823,35 @@ func (x *MeteringMetadata) GetNonfirstLocalActivityExecutionAttempts() uint32 { return 0 } +func (x *MeteringMetadata) SetNonfirstLocalActivityExecutionAttempts(v uint32) { + x.NonfirstLocalActivityExecutionAttempts = v +} + +type MeteringMetadata_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Count of local activities which have begun an execution attempt during this workflow task, + // and whose first attempt occurred in some previous task. This is used for metering + // purposes, and does not affect workflow state. + // + // (-- api-linter: core::0141::forbidden-types=disabled + // + // aip.dev/not-precedent: Negative values make no sense to represent. --) + NonfirstLocalActivityExecutionAttempts uint32 +} + +func (b0 MeteringMetadata_builder) Build() *MeteringMetadata { + m0 := &MeteringMetadata{} + b, x := &b0, m0 + _, _ = b, x + x.NonfirstLocalActivityExecutionAttempts = b.NonfirstLocalActivityExecutionAttempts + return m0 +} + // Deprecated. This message is replaced with `Deployment` and `VersioningBehavior`. // Identifies the version(s) of a worker that processed a task type WorkerVersionStamp struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // An opaque whole-worker identifier. Replaces the deprecated `binary_checksum` field when this // message is included in requests which previously used that. BuildId string `protobuf:"bytes,1,opt,name=build_id,json=buildId,proto3" json:"build_id,omitempty"` @@ -648,11 +887,6 @@ func (x *WorkerVersionStamp) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use WorkerVersionStamp.ProtoReflect.Descriptor instead. -func (*WorkerVersionStamp) Descriptor() ([]byte, []int) { - return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{11} -} - func (x *WorkerVersionStamp) GetBuildId() string { if x != nil { return x.BuildId @@ -667,12 +901,40 @@ func (x *WorkerVersionStamp) GetUseVersioning() bool { return false } +func (x *WorkerVersionStamp) SetBuildId(v string) { + x.BuildId = v +} + +func (x *WorkerVersionStamp) SetUseVersioning(v bool) { + x.UseVersioning = v +} + +type WorkerVersionStamp_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // An opaque whole-worker identifier. Replaces the deprecated `binary_checksum` field when this + // message is included in requests which previously used that. + BuildId string + // If set, the worker is opting in to worker versioning. Otherwise, this is used only as a + // marker for workflow reset points and the BuildIDs search attribute. + UseVersioning bool +} + +func (b0 WorkerVersionStamp_builder) Build() *WorkerVersionStamp { + m0 := &WorkerVersionStamp{} + b, x := &b0, m0 + _, _ = b, x + x.BuildId = b.BuildId + x.UseVersioning = b.UseVersioning + return m0 +} + // Identifies the version that a worker is compatible with when polling or identifying itself, // and whether or not this worker is opting into the build-id based versioning feature. This is // used by matching to determine which workers ought to receive what tasks. // Deprecated. Use WorkerDeploymentOptions instead. type WorkerVersionCapabilities struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // An opaque whole-worker identifier BuildId string `protobuf:"bytes,1,opt,name=build_id,json=buildId,proto3" json:"build_id,omitempty"` // If set, the worker is opting in to worker versioning, and wishes to only receive appropriate @@ -709,11 +971,6 @@ func (x *WorkerVersionCapabilities) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use WorkerVersionCapabilities.ProtoReflect.Descriptor instead. -func (*WorkerVersionCapabilities) Descriptor() ([]byte, []int) { - return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{12} -} - func (x *WorkerVersionCapabilities) GetBuildId() string { if x != nil { return x.BuildId @@ -735,10 +992,44 @@ func (x *WorkerVersionCapabilities) GetDeploymentSeriesName() string { return "" } +func (x *WorkerVersionCapabilities) SetBuildId(v string) { + x.BuildId = v +} + +func (x *WorkerVersionCapabilities) SetUseVersioning(v bool) { + x.UseVersioning = v +} + +func (x *WorkerVersionCapabilities) SetDeploymentSeriesName(v string) { + x.DeploymentSeriesName = v +} + +type WorkerVersionCapabilities_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // An opaque whole-worker identifier + BuildId string + // If set, the worker is opting in to worker versioning, and wishes to only receive appropriate + // tasks. + UseVersioning bool + // Must be sent if user has set a deployment series name (versioning-3). + DeploymentSeriesName string +} + +func (b0 WorkerVersionCapabilities_builder) Build() *WorkerVersionCapabilities { + m0 := &WorkerVersionCapabilities{} + b, x := &b0, m0 + _, _ = b, x + x.BuildId = b.BuildId + x.UseVersioning = b.UseVersioning + x.DeploymentSeriesName = b.DeploymentSeriesName + return m0 +} + // Describes where and how to reset a workflow, used for batch reset currently // and may be used for single-workflow reset later. type ResetOptions struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Which workflow task to reset to. // // Types that are valid to be assigned to Target: @@ -787,11 +1078,6 @@ func (x *ResetOptions) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ResetOptions.ProtoReflect.Descriptor instead. -func (*ResetOptions) Descriptor() ([]byte, []int) { - return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{13} -} - func (x *ResetOptions) GetTarget() isResetOptions_Target { if x != nil { return x.Target @@ -857,99 +1143,298 @@ func (x *ResetOptions) GetResetReapplyExcludeTypes() []v1.ResetReapplyExcludeTyp return nil } -type isResetOptions_Target interface { - isResetOptions_Target() +func (x *ResetOptions) SetFirstWorkflowTask(v *emptypb.Empty) { + if v == nil { + x.Target = nil + return + } + x.Target = &ResetOptions_FirstWorkflowTask{v} } -type ResetOptions_FirstWorkflowTask struct { - // Resets to the first workflow task completed or started event. - FirstWorkflowTask *emptypb.Empty `protobuf:"bytes,1,opt,name=first_workflow_task,json=firstWorkflowTask,proto3,oneof"` +func (x *ResetOptions) SetLastWorkflowTask(v *emptypb.Empty) { + if v == nil { + x.Target = nil + return + } + x.Target = &ResetOptions_LastWorkflowTask{v} } -type ResetOptions_LastWorkflowTask struct { - // Resets to the last workflow task completed or started event. - LastWorkflowTask *emptypb.Empty `protobuf:"bytes,2,opt,name=last_workflow_task,json=lastWorkflowTask,proto3,oneof"` +func (x *ResetOptions) SetWorkflowTaskId(v int64) { + x.Target = &ResetOptions_WorkflowTaskId{v} } -type ResetOptions_WorkflowTaskId struct { - // The id of a specific `WORKFLOW_TASK_COMPLETED`,`WORKFLOW_TASK_TIMED_OUT`, `WORKFLOW_TASK_FAILED`, or - // `WORKFLOW_TASK_STARTED` event to reset to. - // Note that this option doesn't make sense when used as part of a batch request. - WorkflowTaskId int64 `protobuf:"varint,3,opt,name=workflow_task_id,json=workflowTaskId,proto3,oneof"` +func (x *ResetOptions) SetBuildId(v string) { + x.Target = &ResetOptions_BuildId{v} } -type ResetOptions_BuildId struct { - // Resets to the first workflow task processed by this build id. - // If the workflow was not processed by the build id, or the workflow task can't be - // determined, no reset will be performed. - // Note that by default, this reset is allowed to be to a prior run in a chain of - // continue-as-new. - BuildId string `protobuf:"bytes,4,opt,name=build_id,json=buildId,proto3,oneof"` +// Deprecated: Marked as deprecated in temporal/api/common/v1/message.proto. +func (x *ResetOptions) SetResetReapplyType(v v1.ResetReapplyType) { + x.ResetReapplyType = v } -func (*ResetOptions_FirstWorkflowTask) isResetOptions_Target() {} +func (x *ResetOptions) SetCurrentRunOnly(v bool) { + x.CurrentRunOnly = v +} -func (*ResetOptions_LastWorkflowTask) isResetOptions_Target() {} +func (x *ResetOptions) SetResetReapplyExcludeTypes(v []v1.ResetReapplyExcludeType) { + x.ResetReapplyExcludeTypes = v +} -func (*ResetOptions_WorkflowTaskId) isResetOptions_Target() {} +func (x *ResetOptions) HasTarget() bool { + if x == nil { + return false + } + return x.Target != nil +} -func (*ResetOptions_BuildId) isResetOptions_Target() {} +func (x *ResetOptions) HasFirstWorkflowTask() bool { + if x == nil { + return false + } + _, ok := x.Target.(*ResetOptions_FirstWorkflowTask) + return ok +} -// Callback to attach to various events in the system, e.g. workflow run completion. -type Callback struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Types that are valid to be assigned to Variant: - // - // *Callback_Nexus_ - // *Callback_Internal_ - Variant isCallback_Variant `protobuf_oneof:"variant"` - // Links associated with the callback. It can be used to link to underlying resources of the - // callback. - Links []*Link `protobuf:"bytes,100,rep,name=links,proto3" json:"links,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache +func (x *ResetOptions) HasLastWorkflowTask() bool { + if x == nil { + return false + } + _, ok := x.Target.(*ResetOptions_LastWorkflowTask) + return ok } -func (x *Callback) Reset() { - *x = Callback{} - mi := &file_temporal_api_common_v1_message_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *ResetOptions) HasWorkflowTaskId() bool { + if x == nil { + return false + } + _, ok := x.Target.(*ResetOptions_WorkflowTaskId) + return ok } -func (x *Callback) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *ResetOptions) HasBuildId() bool { + if x == nil { + return false + } + _, ok := x.Target.(*ResetOptions_BuildId) + return ok } -func (*Callback) ProtoMessage() {} +func (x *ResetOptions) ClearTarget() { + x.Target = nil +} -func (x *Callback) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_common_v1_message_proto_msgTypes[14] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *ResetOptions) ClearFirstWorkflowTask() { + if _, ok := x.Target.(*ResetOptions_FirstWorkflowTask); ok { + x.Target = nil } - return mi.MessageOf(x) } -// Deprecated: Use Callback.ProtoReflect.Descriptor instead. -func (*Callback) Descriptor() ([]byte, []int) { - return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{14} +func (x *ResetOptions) ClearLastWorkflowTask() { + if _, ok := x.Target.(*ResetOptions_LastWorkflowTask); ok { + x.Target = nil + } } -func (x *Callback) GetVariant() isCallback_Variant { - if x != nil { - return x.Variant +func (x *ResetOptions) ClearWorkflowTaskId() { + if _, ok := x.Target.(*ResetOptions_WorkflowTaskId); ok { + x.Target = nil } - return nil } -func (x *Callback) GetNexus() *Callback_Nexus { - if x != nil { - if x, ok := x.Variant.(*Callback_Nexus_); ok { +func (x *ResetOptions) ClearBuildId() { + if _, ok := x.Target.(*ResetOptions_BuildId); ok { + x.Target = nil + } +} + +const ResetOptions_Target_not_set_case case_ResetOptions_Target = 0 +const ResetOptions_FirstWorkflowTask_case case_ResetOptions_Target = 1 +const ResetOptions_LastWorkflowTask_case case_ResetOptions_Target = 2 +const ResetOptions_WorkflowTaskId_case case_ResetOptions_Target = 3 +const ResetOptions_BuildId_case case_ResetOptions_Target = 4 + +func (x *ResetOptions) WhichTarget() case_ResetOptions_Target { + if x == nil { + return ResetOptions_Target_not_set_case + } + switch x.Target.(type) { + case *ResetOptions_FirstWorkflowTask: + return ResetOptions_FirstWorkflowTask_case + case *ResetOptions_LastWorkflowTask: + return ResetOptions_LastWorkflowTask_case + case *ResetOptions_WorkflowTaskId: + return ResetOptions_WorkflowTaskId_case + case *ResetOptions_BuildId: + return ResetOptions_BuildId_case + default: + return ResetOptions_Target_not_set_case + } +} + +type ResetOptions_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Which workflow task to reset to. + + // Fields of oneof Target: + // Resets to the first workflow task completed or started event. + FirstWorkflowTask *emptypb.Empty + // Resets to the last workflow task completed or started event. + LastWorkflowTask *emptypb.Empty + // The id of a specific `WORKFLOW_TASK_COMPLETED`,`WORKFLOW_TASK_TIMED_OUT`, `WORKFLOW_TASK_FAILED`, or + // `WORKFLOW_TASK_STARTED` event to reset to. + // Note that this option doesn't make sense when used as part of a batch request. + WorkflowTaskId *int64 + // Resets to the first workflow task processed by this build id. + // If the workflow was not processed by the build id, or the workflow task can't be + // determined, no reset will be performed. + // Note that by default, this reset is allowed to be to a prior run in a chain of + // continue-as-new. + BuildId *string + // -- end of Target + // Deprecated. Use `options`. + // Default: RESET_REAPPLY_TYPE_SIGNAL + // + // Deprecated: Marked as deprecated in temporal/api/common/v1/message.proto. + ResetReapplyType v1.ResetReapplyType + // If true, limit the reset to only within the current run. (Applies to build_id targets and + // possibly others in the future.) + CurrentRunOnly bool + // Event types not to be reapplied + ResetReapplyExcludeTypes []v1.ResetReapplyExcludeType +} + +func (b0 ResetOptions_builder) Build() *ResetOptions { + m0 := &ResetOptions{} + b, x := &b0, m0 + _, _ = b, x + if b.FirstWorkflowTask != nil { + x.Target = &ResetOptions_FirstWorkflowTask{b.FirstWorkflowTask} + } + if b.LastWorkflowTask != nil { + x.Target = &ResetOptions_LastWorkflowTask{b.LastWorkflowTask} + } + if b.WorkflowTaskId != nil { + x.Target = &ResetOptions_WorkflowTaskId{*b.WorkflowTaskId} + } + if b.BuildId != nil { + x.Target = &ResetOptions_BuildId{*b.BuildId} + } + x.ResetReapplyType = b.ResetReapplyType + x.CurrentRunOnly = b.CurrentRunOnly + x.ResetReapplyExcludeTypes = b.ResetReapplyExcludeTypes + return m0 +} + +type case_ResetOptions_Target protoreflect.FieldNumber + +func (x case_ResetOptions_Target) String() string { + switch x { + case ResetOptions_Target_not_set_case: + return "ResetOptionsTargetNotSetCase" + case ResetOptions_FirstWorkflowTask_case: + return "ResetOptionsFirstWorkflowTaskCase" + case ResetOptions_LastWorkflowTask_case: + return "ResetOptionsLastWorkflowTaskCase" + case ResetOptions_WorkflowTaskId_case: + return "ResetOptionsWorkflowTaskIdCase" + + // Resets to the first workflow task completed or started event. + case ResetOptions_BuildId_case: + return "ResetOptionsBuildIdCase" + default: + return strconv.Itoa(int(x)) + } + +} + +type isResetOptions_Target interface { + isResetOptions_Target() +} + +type ResetOptions_FirstWorkflowTask struct { + FirstWorkflowTask *emptypb.Empty `protobuf:"bytes,1,opt,name=first_workflow_task,json=firstWorkflowTask,proto3,oneof"` +} + +type ResetOptions_LastWorkflowTask struct { + // Resets to the last workflow task completed or started event. + LastWorkflowTask *emptypb.Empty `protobuf:"bytes,2,opt,name=last_workflow_task,json=lastWorkflowTask,proto3,oneof"` +} + +type ResetOptions_WorkflowTaskId struct { + // The id of a specific `WORKFLOW_TASK_COMPLETED`,`WORKFLOW_TASK_TIMED_OUT`, `WORKFLOW_TASK_FAILED`, or + // `WORKFLOW_TASK_STARTED` event to reset to. + // Note that this option doesn't make sense when used as part of a batch request. + WorkflowTaskId int64 `protobuf:"varint,3,opt,name=workflow_task_id,json=workflowTaskId,proto3,oneof"` +} + +type ResetOptions_BuildId struct { + // Resets to the first workflow task processed by this build id. + // If the workflow was not processed by the build id, or the workflow task can't be + // determined, no reset will be performed. + // Note that by default, this reset is allowed to be to a prior run in a chain of + // continue-as-new. + BuildId string `protobuf:"bytes,4,opt,name=build_id,json=buildId,proto3,oneof"` +} + +func (*ResetOptions_FirstWorkflowTask) isResetOptions_Target() {} + +func (*ResetOptions_LastWorkflowTask) isResetOptions_Target() {} + +func (*ResetOptions_WorkflowTaskId) isResetOptions_Target() {} + +func (*ResetOptions_BuildId) isResetOptions_Target() {} + +// Callback to attach to various events in the system, e.g. workflow run completion. +type Callback struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // Types that are valid to be assigned to Variant: + // + // *Callback_Nexus_ + // *Callback_Internal_ + Variant isCallback_Variant `protobuf_oneof:"variant"` + // Links associated with the callback. It can be used to link to underlying resources of the + // callback. + Links []*Link `protobuf:"bytes,100,rep,name=links,proto3" json:"links,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Callback) Reset() { + *x = Callback{} + mi := &file_temporal_api_common_v1_message_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Callback) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Callback) ProtoMessage() {} + +func (x *Callback) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_common_v1_message_proto_msgTypes[14] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *Callback) GetVariant() isCallback_Variant { + if x != nil { + return x.Variant + } + return nil +} + +func (x *Callback) GetNexus() *Callback_Nexus { + if x != nil { + if x, ok := x.Variant.(*Callback_Nexus_); ok { return x.Nexus } } @@ -972,6 +1457,125 @@ func (x *Callback) GetLinks() []*Link { return nil } +func (x *Callback) SetNexus(v *Callback_Nexus) { + if v == nil { + x.Variant = nil + return + } + x.Variant = &Callback_Nexus_{v} +} + +func (x *Callback) SetInternal(v *Callback_Internal) { + if v == nil { + x.Variant = nil + return + } + x.Variant = &Callback_Internal_{v} +} + +func (x *Callback) SetLinks(v []*Link) { + x.Links = v +} + +func (x *Callback) HasVariant() bool { + if x == nil { + return false + } + return x.Variant != nil +} + +func (x *Callback) HasNexus() bool { + if x == nil { + return false + } + _, ok := x.Variant.(*Callback_Nexus_) + return ok +} + +func (x *Callback) HasInternal() bool { + if x == nil { + return false + } + _, ok := x.Variant.(*Callback_Internal_) + return ok +} + +func (x *Callback) ClearVariant() { + x.Variant = nil +} + +func (x *Callback) ClearNexus() { + if _, ok := x.Variant.(*Callback_Nexus_); ok { + x.Variant = nil + } +} + +func (x *Callback) ClearInternal() { + if _, ok := x.Variant.(*Callback_Internal_); ok { + x.Variant = nil + } +} + +const Callback_Variant_not_set_case case_Callback_Variant = 0 +const Callback_Nexus_case case_Callback_Variant = 2 +const Callback_Internal_case case_Callback_Variant = 3 + +func (x *Callback) WhichVariant() case_Callback_Variant { + if x == nil { + return Callback_Variant_not_set_case + } + switch x.Variant.(type) { + case *Callback_Nexus_: + return Callback_Nexus_case + case *Callback_Internal_: + return Callback_Internal_case + default: + return Callback_Variant_not_set_case + } +} + +type Callback_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Fields of oneof Variant: + Nexus *Callback_Nexus + Internal *Callback_Internal + // -- end of Variant + // Links associated with the callback. It can be used to link to underlying resources of the + // callback. + Links []*Link +} + +func (b0 Callback_builder) Build() *Callback { + m0 := &Callback{} + b, x := &b0, m0 + _, _ = b, x + if b.Nexus != nil { + x.Variant = &Callback_Nexus_{b.Nexus} + } + if b.Internal != nil { + x.Variant = &Callback_Internal_{b.Internal} + } + x.Links = b.Links + return m0 +} + +type case_Callback_Variant protoreflect.FieldNumber + +func (x case_Callback_Variant) String() string { + switch x { + case Callback_Variant_not_set_case: + return "CallbackVariantNotSetCase" + case Callback_Nexus_case: + return "CallbackNexusCase" + case Callback_Internal_case: + return "CallbackInternalCase" + default: + return strconv.Itoa(int(x)) + } + +} + type isCallback_Variant interface { isCallback_Variant() } @@ -993,7 +1597,7 @@ func (*Callback_Internal_) isCallback_Variant() {} // in this case, a history event in workflow A could contain a Link to the workflow started event in // workflow B, and vice-versa. type Link struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Types that are valid to be assigned to Variant: // // *Link_WorkflowEvent_ @@ -1028,11 +1632,6 @@ func (x *Link) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Link.ProtoReflect.Descriptor instead. -func (*Link) Descriptor() ([]byte, []int) { - return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{15} -} - func (x *Link) GetVariant() isLink_Variant { if x != nil { return x.Variant @@ -1058,6 +1657,117 @@ func (x *Link) GetBatchJob() *Link_BatchJob { return nil } +func (x *Link) SetWorkflowEvent(v *Link_WorkflowEvent) { + if v == nil { + x.Variant = nil + return + } + x.Variant = &Link_WorkflowEvent_{v} +} + +func (x *Link) SetBatchJob(v *Link_BatchJob) { + if v == nil { + x.Variant = nil + return + } + x.Variant = &Link_BatchJob_{v} +} + +func (x *Link) HasVariant() bool { + if x == nil { + return false + } + return x.Variant != nil +} + +func (x *Link) HasWorkflowEvent() bool { + if x == nil { + return false + } + _, ok := x.Variant.(*Link_WorkflowEvent_) + return ok +} + +func (x *Link) HasBatchJob() bool { + if x == nil { + return false + } + _, ok := x.Variant.(*Link_BatchJob_) + return ok +} + +func (x *Link) ClearVariant() { + x.Variant = nil +} + +func (x *Link) ClearWorkflowEvent() { + if _, ok := x.Variant.(*Link_WorkflowEvent_); ok { + x.Variant = nil + } +} + +func (x *Link) ClearBatchJob() { + if _, ok := x.Variant.(*Link_BatchJob_); ok { + x.Variant = nil + } +} + +const Link_Variant_not_set_case case_Link_Variant = 0 +const Link_WorkflowEvent_case case_Link_Variant = 1 +const Link_BatchJob_case case_Link_Variant = 2 + +func (x *Link) WhichVariant() case_Link_Variant { + if x == nil { + return Link_Variant_not_set_case + } + switch x.Variant.(type) { + case *Link_WorkflowEvent_: + return Link_WorkflowEvent_case + case *Link_BatchJob_: + return Link_BatchJob_case + default: + return Link_Variant_not_set_case + } +} + +type Link_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Fields of oneof Variant: + WorkflowEvent *Link_WorkflowEvent + BatchJob *Link_BatchJob + // -- end of Variant +} + +func (b0 Link_builder) Build() *Link { + m0 := &Link{} + b, x := &b0, m0 + _, _ = b, x + if b.WorkflowEvent != nil { + x.Variant = &Link_WorkflowEvent_{b.WorkflowEvent} + } + if b.BatchJob != nil { + x.Variant = &Link_BatchJob_{b.BatchJob} + } + return m0 +} + +type case_Link_Variant protoreflect.FieldNumber + +func (x case_Link_Variant) String() string { + switch x { + case Link_Variant_not_set_case: + return "LinkVariantNotSetCase" + case Link_WorkflowEvent_case: + return "LinkWorkflowEventCase" + case Link_BatchJob_case: + return "LinkBatchJobCase" + default: + return strconv.Itoa(int(x)) + } + +} + type isLink_Variant interface { isLink_Variant() } @@ -1107,7 +1817,7 @@ func (*Link_BatchJob_) isLink_Variant() {} // Not all queues in the system may support the "full" semantics of all priority // fields. (Currently only support in matching task queues is planned.) type Priority struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Priority key is a positive integer from 1 to n, where smaller integers // correspond to higher priorities (tasks run sooner). In general, tasks in // a queue should be processed in close to priority order, although small @@ -1183,11 +1893,6 @@ func (x *Priority) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Priority.ProtoReflect.Descriptor instead. -func (*Priority) Descriptor() ([]byte, []int) { - return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{16} -} - func (x *Priority) GetPriorityKey() int32 { if x != nil { return x.PriorityKey @@ -1209,11 +1914,84 @@ func (x *Priority) GetFairnessWeight() float32 { return 0 } +func (x *Priority) SetPriorityKey(v int32) { + x.PriorityKey = v +} + +func (x *Priority) SetFairnessKey(v string) { + x.FairnessKey = v +} + +func (x *Priority) SetFairnessWeight(v float32) { + x.FairnessWeight = v +} + +type Priority_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Priority key is a positive integer from 1 to n, where smaller integers + // correspond to higher priorities (tasks run sooner). In general, tasks in + // a queue should be processed in close to priority order, although small + // deviations are possible. + // + // The maximum priority value (minimum priority) is determined by server + // configuration, and defaults to 5. + // + // If priority is not present (or zero), then the effective priority will be + // the default priority, which is calculated by (min+max)/2. With the + // default max of 5, and min of 1, that comes out to 3. + PriorityKey int32 + // Fairness key is a short string that's used as a key for a fairness + // balancing mechanism. It may correspond to a tenant id, or to a fixed + // string like "high" or "low". The default is the empty string. + // + // The fairness mechanism attempts to dispatch tasks for a given key in + // proportion to its weight. For example, using a thousand distinct tenant + // ids, each with a weight of 1.0 (the default) will result in each tenant + // getting a roughly equal share of task dispatch throughput. + // + // (Note: this does not imply equal share of worker capacity! Fairness + // decisions are made based on queue statistics, not + // current worker load.) + // + // As another example, using keys "high" and "low" with weight 9.0 and 1.0 + // respectively will prefer dispatching "high" tasks over "low" tasks at a + // 9:1 ratio, while allowing either key to use all worker capacity if the + // other is not present. + // + // All fairness mechanisms, including rate limits, are best-effort and + // probabilistic. The results may not match what a "perfect" algorithm with + // infinite resources would produce. The more unique keys are used, the less + // accurate the results will be. + // + // Fairness keys are limited to 64 bytes. + FairnessKey string + // Fairness weight for a task can come from multiple sources for + // flexibility. From highest to lowest precedence: + // 1. Weights for a small set of keys can be overridden in task queue + // configuration with an API. + // 2. It can be attached to the workflow/activity in this field. + // 3. The default weight of 1.0 will be used. + // + // Weight values are clamped to the range [0.001, 1000]. + FairnessWeight float32 +} + +func (b0 Priority_builder) Build() *Priority { + m0 := &Priority{} + b, x := &b0, m0 + _, _ = b, x + x.PriorityKey = b.PriorityKey + x.FairnessKey = b.FairnessKey + x.FairnessWeight = b.FairnessWeight + return m0 +} + // This is used to send commands to a specific worker or a group of workers. // Right now, it is used to send commands to a specific worker instance. // Will be extended to be able to send command to multiple workers. type WorkerSelector struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Options are: // - query (will be used as query to ListWorkers, same format as in ListWorkersRequest.query) // - task queue (just a shortcut. Same as query=' "TaskQueue"="my-task-queue" ') @@ -1257,11 +2035,6 @@ func (x *WorkerSelector) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use WorkerSelector.ProtoReflect.Descriptor instead. -func (*WorkerSelector) Descriptor() ([]byte, []int) { - return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{17} -} - func (x *WorkerSelector) GetSelector() isWorkerSelector_Selector { if x != nil { return x.Selector @@ -1278,6 +2051,92 @@ func (x *WorkerSelector) GetWorkerInstanceKey() string { return "" } +func (x *WorkerSelector) SetWorkerInstanceKey(v string) { + x.Selector = &WorkerSelector_WorkerInstanceKey{v} +} + +func (x *WorkerSelector) HasSelector() bool { + if x == nil { + return false + } + return x.Selector != nil +} + +func (x *WorkerSelector) HasWorkerInstanceKey() bool { + if x == nil { + return false + } + _, ok := x.Selector.(*WorkerSelector_WorkerInstanceKey) + return ok +} + +func (x *WorkerSelector) ClearSelector() { + x.Selector = nil +} + +func (x *WorkerSelector) ClearWorkerInstanceKey() { + if _, ok := x.Selector.(*WorkerSelector_WorkerInstanceKey); ok { + x.Selector = nil + } +} + +const WorkerSelector_Selector_not_set_case case_WorkerSelector_Selector = 0 +const WorkerSelector_WorkerInstanceKey_case case_WorkerSelector_Selector = 1 + +func (x *WorkerSelector) WhichSelector() case_WorkerSelector_Selector { + if x == nil { + return WorkerSelector_Selector_not_set_case + } + switch x.Selector.(type) { + case *WorkerSelector_WorkerInstanceKey: + return WorkerSelector_WorkerInstanceKey_case + default: + return WorkerSelector_Selector_not_set_case + } +} + +type WorkerSelector_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Options are: + // - query (will be used as query to ListWorkers, same format as in ListWorkersRequest.query) + // - task queue (just a shortcut. Same as query=' "TaskQueue"="my-task-queue" ') + // - etc. + // All but 'query' are shortcuts, can be replaced with a query, but it is not convenient. + // string query = 5; + // string task_queue = 6; + // ... + + // Fields of oneof Selector: + // Worker instance key to which the command should be sent. + WorkerInstanceKey *string + // -- end of Selector +} + +func (b0 WorkerSelector_builder) Build() *WorkerSelector { + m0 := &WorkerSelector{} + b, x := &b0, m0 + _, _ = b, x + if b.WorkerInstanceKey != nil { + x.Selector = &WorkerSelector_WorkerInstanceKey{*b.WorkerInstanceKey} + } + return m0 +} + +type case_WorkerSelector_Selector protoreflect.FieldNumber + +func (x case_WorkerSelector_Selector) String() string { + switch x { + case WorkerSelector_Selector_not_set_case: + return "WorkerSelectorSelectorNotSetCase" + case WorkerSelector_WorkerInstanceKey_case: + return "WorkerSelectorWorkerInstanceKeyCase" + default: + return strconv.Itoa(int(x)) + } + +} + type isWorkerSelector_Selector interface { isWorkerSelector_Selector() } @@ -1291,7 +2150,7 @@ func (*WorkerSelector_WorkerInstanceKey) isWorkerSelector_Selector() {} // Describes an externally stored object referenced by this payload. type Payload_ExternalPayloadDetails struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Size in bytes of the externally stored payload SizeBytes int64 `protobuf:"varint,1,opt,name=size_bytes,json=sizeBytes,proto3" json:"size_bytes,omitempty"` unknownFields protoimpl.UnknownFields @@ -1323,11 +2182,6 @@ func (x *Payload_ExternalPayloadDetails) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Payload_ExternalPayloadDetails.ProtoReflect.Descriptor instead. -func (*Payload_ExternalPayloadDetails) Descriptor() ([]byte, []int) { - return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{2, 1} -} - func (x *Payload_ExternalPayloadDetails) GetSizeBytes() int64 { if x != nil { return x.SizeBytes @@ -1335,8 +2189,27 @@ func (x *Payload_ExternalPayloadDetails) GetSizeBytes() int64 { return 0 } +func (x *Payload_ExternalPayloadDetails) SetSizeBytes(v int64) { + x.SizeBytes = v +} + +type Payload_ExternalPayloadDetails_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Size in bytes of the externally stored payload + SizeBytes int64 +} + +func (b0 Payload_ExternalPayloadDetails_builder) Build() *Payload_ExternalPayloadDetails { + m0 := &Payload_ExternalPayloadDetails{} + b, x := &b0, m0 + _, _ = b, x + x.SizeBytes = b.SizeBytes + return m0 +} + type Callback_Nexus struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Callback URL. Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` // Header to attach to callback request. @@ -1370,11 +2243,6 @@ func (x *Callback_Nexus) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Callback_Nexus.ProtoReflect.Descriptor instead. -func (*Callback_Nexus) Descriptor() ([]byte, []int) { - return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{14, 0} -} - func (x *Callback_Nexus) GetUrl() string { if x != nil { return x.Url @@ -1389,12 +2257,38 @@ func (x *Callback_Nexus) GetHeader() map[string]string { return nil } +func (x *Callback_Nexus) SetUrl(v string) { + x.Url = v +} + +func (x *Callback_Nexus) SetHeader(v map[string]string) { + x.Header = v +} + +type Callback_Nexus_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Callback URL. + Url string + // Header to attach to callback request. + Header map[string]string +} + +func (b0 Callback_Nexus_builder) Build() *Callback_Nexus { + m0 := &Callback_Nexus{} + b, x := &b0, m0 + _, _ = b, x + x.Url = b.Url + x.Header = b.Header + return m0 +} + // Callbacks to be delivered internally within the system. // This variant is not settable in the API and will be rejected by the service with an INVALID_ARGUMENT error. // The only reason that this is exposed is because callbacks are replicated across clusters via the // WorkflowExecutionStarted event, which is defined in the public API. type Callback_Internal struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Opaque internal data. Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` unknownFields protoimpl.UnknownFields @@ -1426,11 +2320,6 @@ func (x *Callback_Internal) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Callback_Internal.ProtoReflect.Descriptor instead. -func (*Callback_Internal) Descriptor() ([]byte, []int) { - return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{14, 1} -} - func (x *Callback_Internal) GetData() []byte { if x != nil { return x.Data @@ -1438,8 +2327,30 @@ func (x *Callback_Internal) GetData() []byte { return nil } +func (x *Callback_Internal) SetData(v []byte) { + if v == nil { + v = []byte{} + } + x.Data = v +} + +type Callback_Internal_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Opaque internal data. + Data []byte +} + +func (b0 Callback_Internal_builder) Build() *Callback_Internal { + m0 := &Callback_Internal{} + b, x := &b0, m0 + _, _ = b, x + x.Data = b.Data + return m0 +} + type Link_WorkflowEvent struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` WorkflowId string `protobuf:"bytes,2,opt,name=workflow_id,json=workflowId,proto3" json:"workflow_id,omitempty"` RunId string `protobuf:"bytes,3,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"` @@ -1480,11 +2391,6 @@ func (x *Link_WorkflowEvent) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Link_WorkflowEvent.ProtoReflect.Descriptor instead. -func (*Link_WorkflowEvent) Descriptor() ([]byte, []int) { - return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{15, 0} -} - func (x *Link_WorkflowEvent) GetNamespace() string { if x != nil { return x.Namespace @@ -1531,6 +2437,138 @@ func (x *Link_WorkflowEvent) GetRequestIdRef() *Link_WorkflowEvent_RequestIdRefe return nil } +func (x *Link_WorkflowEvent) SetNamespace(v string) { + x.Namespace = v +} + +func (x *Link_WorkflowEvent) SetWorkflowId(v string) { + x.WorkflowId = v +} + +func (x *Link_WorkflowEvent) SetRunId(v string) { + x.RunId = v +} + +func (x *Link_WorkflowEvent) SetEventRef(v *Link_WorkflowEvent_EventReference) { + if v == nil { + x.Reference = nil + return + } + x.Reference = &Link_WorkflowEvent_EventRef{v} +} + +func (x *Link_WorkflowEvent) SetRequestIdRef(v *Link_WorkflowEvent_RequestIdReference) { + if v == nil { + x.Reference = nil + return + } + x.Reference = &Link_WorkflowEvent_RequestIdRef{v} +} + +func (x *Link_WorkflowEvent) HasReference() bool { + if x == nil { + return false + } + return x.Reference != nil +} + +func (x *Link_WorkflowEvent) HasEventRef() bool { + if x == nil { + return false + } + _, ok := x.Reference.(*Link_WorkflowEvent_EventRef) + return ok +} + +func (x *Link_WorkflowEvent) HasRequestIdRef() bool { + if x == nil { + return false + } + _, ok := x.Reference.(*Link_WorkflowEvent_RequestIdRef) + return ok +} + +func (x *Link_WorkflowEvent) ClearReference() { + x.Reference = nil +} + +func (x *Link_WorkflowEvent) ClearEventRef() { + if _, ok := x.Reference.(*Link_WorkflowEvent_EventRef); ok { + x.Reference = nil + } +} + +func (x *Link_WorkflowEvent) ClearRequestIdRef() { + if _, ok := x.Reference.(*Link_WorkflowEvent_RequestIdRef); ok { + x.Reference = nil + } +} + +const Link_WorkflowEvent_Reference_not_set_case case_Link_WorkflowEvent_Reference = 0 +const Link_WorkflowEvent_EventRef_case case_Link_WorkflowEvent_Reference = 100 +const Link_WorkflowEvent_RequestIdRef_case case_Link_WorkflowEvent_Reference = 101 + +func (x *Link_WorkflowEvent) WhichReference() case_Link_WorkflowEvent_Reference { + if x == nil { + return Link_WorkflowEvent_Reference_not_set_case + } + switch x.Reference.(type) { + case *Link_WorkflowEvent_EventRef: + return Link_WorkflowEvent_EventRef_case + case *Link_WorkflowEvent_RequestIdRef: + return Link_WorkflowEvent_RequestIdRef_case + default: + return Link_WorkflowEvent_Reference_not_set_case + } +} + +type Link_WorkflowEvent_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + WorkflowId string + RunId string + // Additional information about the workflow event. + // Eg: the caller workflow can send the history event details that made the Nexus call. + + // Fields of oneof Reference: + EventRef *Link_WorkflowEvent_EventReference + RequestIdRef *Link_WorkflowEvent_RequestIdReference + // -- end of Reference +} + +func (b0 Link_WorkflowEvent_builder) Build() *Link_WorkflowEvent { + m0 := &Link_WorkflowEvent{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.WorkflowId = b.WorkflowId + x.RunId = b.RunId + if b.EventRef != nil { + x.Reference = &Link_WorkflowEvent_EventRef{b.EventRef} + } + if b.RequestIdRef != nil { + x.Reference = &Link_WorkflowEvent_RequestIdRef{b.RequestIdRef} + } + return m0 +} + +type case_Link_WorkflowEvent_Reference protoreflect.FieldNumber + +func (x case_Link_WorkflowEvent_Reference) String() string { + switch x { + case Link_WorkflowEvent_Reference_not_set_case: + return "LinkWorkflowEventReferenceNotSetCase" + case Link_WorkflowEvent_EventRef_case: + return "LinkWorkflowEventEventRefCase" + case Link_WorkflowEvent_RequestIdRef_case: + return "LinkWorkflowEventRequestIdRefCase" + default: + return strconv.Itoa(int(x)) + } + +} + type isLink_WorkflowEvent_Reference interface { isLink_WorkflowEvent_Reference() } @@ -1551,7 +2589,7 @@ func (*Link_WorkflowEvent_RequestIdRef) isLink_WorkflowEvent_Reference() {} // Batch jobs can be used to perform operations on a set of workflows (e.g. terminate, signal, cancel, etc). // This link can be put on workflow history events generated by actions taken by a batch job. type Link_BatchJob struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -1582,11 +2620,6 @@ func (x *Link_BatchJob) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Link_BatchJob.ProtoReflect.Descriptor instead. -func (*Link_BatchJob) Descriptor() ([]byte, []int) { - return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{15, 1} -} - func (x *Link_BatchJob) GetJobId() string { if x != nil { return x.JobId @@ -1594,9 +2627,27 @@ func (x *Link_BatchJob) GetJobId() string { return "" } +func (x *Link_BatchJob) SetJobId(v string) { + x.JobId = v +} + +type Link_BatchJob_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + JobId string +} + +func (b0 Link_BatchJob_builder) Build() *Link_BatchJob { + m0 := &Link_BatchJob{} + b, x := &b0, m0 + _, _ = b, x + x.JobId = b.JobId + return m0 +} + // EventReference is a direct reference to a history event through the event ID. type Link_WorkflowEvent_EventReference struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` EventId int64 `protobuf:"varint,1,opt,name=event_id,json=eventId,proto3" json:"event_id,omitempty"` EventType v1.EventType `protobuf:"varint,2,opt,name=event_type,json=eventType,proto3,enum=temporal.api.enums.v1.EventType" json:"event_type,omitempty"` unknownFields protoimpl.UnknownFields @@ -1628,11 +2679,6 @@ func (x *Link_WorkflowEvent_EventReference) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use Link_WorkflowEvent_EventReference.ProtoReflect.Descriptor instead. -func (*Link_WorkflowEvent_EventReference) Descriptor() ([]byte, []int) { - return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{15, 0, 0} -} - func (x *Link_WorkflowEvent_EventReference) GetEventId() int64 { if x != nil { return x.EventId @@ -1647,9 +2693,33 @@ func (x *Link_WorkflowEvent_EventReference) GetEventType() v1.EventType { return v1.EventType(0) } +func (x *Link_WorkflowEvent_EventReference) SetEventId(v int64) { + x.EventId = v +} + +func (x *Link_WorkflowEvent_EventReference) SetEventType(v v1.EventType) { + x.EventType = v +} + +type Link_WorkflowEvent_EventReference_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + EventId int64 + EventType v1.EventType +} + +func (b0 Link_WorkflowEvent_EventReference_builder) Build() *Link_WorkflowEvent_EventReference { + m0 := &Link_WorkflowEvent_EventReference{} + b, x := &b0, m0 + _, _ = b, x + x.EventId = b.EventId + x.EventType = b.EventType + return m0 +} + // RequestIdReference is a indirect reference to a history event through the request ID. type Link_WorkflowEvent_RequestIdReference struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` EventType v1.EventType `protobuf:"varint,2,opt,name=event_type,json=eventType,proto3,enum=temporal.api.enums.v1.EventType" json:"event_type,omitempty"` unknownFields protoimpl.UnknownFields @@ -1681,11 +2751,6 @@ func (x *Link_WorkflowEvent_RequestIdReference) ProtoReflect() protoreflect.Mess return mi.MessageOf(x) } -// Deprecated: Use Link_WorkflowEvent_RequestIdReference.ProtoReflect.Descriptor instead. -func (*Link_WorkflowEvent_RequestIdReference) Descriptor() ([]byte, []int) { - return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{15, 0, 1} -} - func (x *Link_WorkflowEvent_RequestIdReference) GetRequestId() string { if x != nil { return x.RequestId @@ -1700,6 +2765,30 @@ func (x *Link_WorkflowEvent_RequestIdReference) GetEventType() v1.EventType { return v1.EventType(0) } +func (x *Link_WorkflowEvent_RequestIdReference) SetRequestId(v string) { + x.RequestId = v +} + +func (x *Link_WorkflowEvent_RequestIdReference) SetEventType(v v1.EventType) { + x.EventType = v +} + +type Link_WorkflowEvent_RequestIdReference_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + RequestId string + EventType v1.EventType +} + +func (b0 Link_WorkflowEvent_RequestIdReference_builder) Build() *Link_WorkflowEvent_RequestIdReference { + m0 := &Link_WorkflowEvent_RequestIdReference{} + b, x := &b0, m0 + _, _ = b, x + x.RequestId = b.RequestId + x.EventType = b.EventType + return m0 +} + var File_temporal_api_common_v1_message_proto protoreflect.FileDescriptor const file_temporal_api_common_v1_message_proto_rawDesc = "" + @@ -1814,18 +2903,6 @@ const file_temporal_api_common_v1_message_proto_rawDesc = "" + "\bselectorB\x89\x01\n" + "\x19io.temporal.api.common.v1B\fMessageProtoP\x01Z#go.temporal.io/api/common/v1;common\xaa\x02\x18Temporalio.Api.Common.V1\xea\x02\x1bTemporalio::Api::Common::V1b\x06proto3" -var ( - file_temporal_api_common_v1_message_proto_rawDescOnce sync.Once - file_temporal_api_common_v1_message_proto_rawDescData []byte -) - -func file_temporal_api_common_v1_message_proto_rawDescGZIP() []byte { - file_temporal_api_common_v1_message_proto_rawDescOnce.Do(func() { - file_temporal_api_common_v1_message_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_api_common_v1_message_proto_rawDesc), len(file_temporal_api_common_v1_message_proto_rawDesc))) - }) - return file_temporal_api_common_v1_message_proto_rawDescData -} - var file_temporal_api_common_v1_message_proto_msgTypes = make([]protoimpl.MessageInfo, 30) var file_temporal_api_common_v1_message_proto_goTypes = []any{ (*DataBlob)(nil), // 0: temporal.api.common.v1.DataBlob diff --git a/common/v1/message_protoopaque.pb.go b/common/v1/message_protoopaque.pb.go new file mode 100644 index 00000000..fa66028c --- /dev/null +++ b/common/v1/message_protoopaque.pb.go @@ -0,0 +1,2875 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// plugins: +// protoc-gen-go +// protoc +// source: temporal/api/common/v1/message.proto + +//go:build protoopaque + +package common + +import ( + reflect "reflect" + "strconv" + unsafe "unsafe" + + v1 "go.temporal.io/api/enums/v1" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + durationpb "google.golang.org/protobuf/types/known/durationpb" + emptypb "google.golang.org/protobuf/types/known/emptypb" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type DataBlob struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_EncodingType v1.EncodingType `protobuf:"varint,1,opt,name=encoding_type,json=encodingType,proto3,enum=temporal.api.enums.v1.EncodingType"` + xxx_hidden_Data []byte `protobuf:"bytes,2,opt,name=data,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DataBlob) Reset() { + *x = DataBlob{} + mi := &file_temporal_api_common_v1_message_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DataBlob) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DataBlob) ProtoMessage() {} + +func (x *DataBlob) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_common_v1_message_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DataBlob) GetEncodingType() v1.EncodingType { + if x != nil { + return x.xxx_hidden_EncodingType + } + return v1.EncodingType(0) +} + +func (x *DataBlob) GetData() []byte { + if x != nil { + return x.xxx_hidden_Data + } + return nil +} + +func (x *DataBlob) SetEncodingType(v v1.EncodingType) { + x.xxx_hidden_EncodingType = v +} + +func (x *DataBlob) SetData(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_Data = v +} + +type DataBlob_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + EncodingType v1.EncodingType + Data []byte +} + +func (b0 DataBlob_builder) Build() *DataBlob { + m0 := &DataBlob{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_EncodingType = b.EncodingType + x.xxx_hidden_Data = b.Data + return m0 +} + +// See `Payload` +type Payloads struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Payloads *[]*Payload `protobuf:"bytes,1,rep,name=payloads,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Payloads) Reset() { + *x = Payloads{} + mi := &file_temporal_api_common_v1_message_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Payloads) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Payloads) ProtoMessage() {} + +func (x *Payloads) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_common_v1_message_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *Payloads) GetPayloads() []*Payload { + if x != nil { + if x.xxx_hidden_Payloads != nil { + return *x.xxx_hidden_Payloads + } + } + return nil +} + +func (x *Payloads) SetPayloads(v []*Payload) { + x.xxx_hidden_Payloads = &v +} + +type Payloads_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Payloads []*Payload +} + +func (b0 Payloads_builder) Build() *Payloads { + m0 := &Payloads{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Payloads = &b.Payloads + return m0 +} + +// Represents some binary (byte array) data (ex: activity input parameters or workflow result) with +// metadata which describes this binary data (format, encoding, encryption, etc). Serialization +// of the data may be user-defined. +type Payload struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Metadata map[string][]byte `protobuf:"bytes,1,rep,name=metadata,proto3" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + xxx_hidden_Data []byte `protobuf:"bytes,2,opt,name=data,proto3"` + xxx_hidden_ExternalPayloads *[]*Payload_ExternalPayloadDetails `protobuf:"bytes,3,rep,name=external_payloads,json=externalPayloads,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Payload) Reset() { + *x = Payload{} + mi := &file_temporal_api_common_v1_message_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Payload) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Payload) ProtoMessage() {} + +func (x *Payload) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_common_v1_message_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *Payload) GetMetadata() map[string][]byte { + if x != nil { + return x.xxx_hidden_Metadata + } + return nil +} + +func (x *Payload) GetData() []byte { + if x != nil { + return x.xxx_hidden_Data + } + return nil +} + +func (x *Payload) GetExternalPayloads() []*Payload_ExternalPayloadDetails { + if x != nil { + if x.xxx_hidden_ExternalPayloads != nil { + return *x.xxx_hidden_ExternalPayloads + } + } + return nil +} + +func (x *Payload) SetMetadata(v map[string][]byte) { + x.xxx_hidden_Metadata = v +} + +func (x *Payload) SetData(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_Data = v +} + +func (x *Payload) SetExternalPayloads(v []*Payload_ExternalPayloadDetails) { + x.xxx_hidden_ExternalPayloads = &v +} + +type Payload_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Metadata map[string][]byte + Data []byte + // Details about externally stored payloads associated with this payload. + ExternalPayloads []*Payload_ExternalPayloadDetails +} + +func (b0 Payload_builder) Build() *Payload { + m0 := &Payload{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Metadata = b.Metadata + x.xxx_hidden_Data = b.Data + x.xxx_hidden_ExternalPayloads = &b.ExternalPayloads + return m0 +} + +// A user-defined set of *indexed* fields that are used/exposed when listing/searching workflows. +// The payload is not serialized in a user-defined way. +type SearchAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_IndexedFields map[string]*Payload `protobuf:"bytes,1,rep,name=indexed_fields,json=indexedFields,proto3" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SearchAttributes) Reset() { + *x = SearchAttributes{} + mi := &file_temporal_api_common_v1_message_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SearchAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SearchAttributes) ProtoMessage() {} + +func (x *SearchAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_common_v1_message_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *SearchAttributes) GetIndexedFields() map[string]*Payload { + if x != nil { + return x.xxx_hidden_IndexedFields + } + return nil +} + +func (x *SearchAttributes) SetIndexedFields(v map[string]*Payload) { + x.xxx_hidden_IndexedFields = v +} + +type SearchAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + IndexedFields map[string]*Payload +} + +func (b0 SearchAttributes_builder) Build() *SearchAttributes { + m0 := &SearchAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_IndexedFields = b.IndexedFields + return m0 +} + +// A user-defined set of *unindexed* fields that are exposed when listing/searching workflows +type Memo struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Fields map[string]*Payload `protobuf:"bytes,1,rep,name=fields,proto3" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Memo) Reset() { + *x = Memo{} + mi := &file_temporal_api_common_v1_message_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Memo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Memo) ProtoMessage() {} + +func (x *Memo) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_common_v1_message_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *Memo) GetFields() map[string]*Payload { + if x != nil { + return x.xxx_hidden_Fields + } + return nil +} + +func (x *Memo) SetFields(v map[string]*Payload) { + x.xxx_hidden_Fields = v +} + +type Memo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Fields map[string]*Payload +} + +func (b0 Memo_builder) Build() *Memo { + m0 := &Memo{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Fields = b.Fields + return m0 +} + +// Contains metadata that can be attached to a variety of requests, like starting a workflow, and +// can be propagated between, for example, workflows and activities. +type Header struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Fields map[string]*Payload `protobuf:"bytes,1,rep,name=fields,proto3" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Header) Reset() { + *x = Header{} + mi := &file_temporal_api_common_v1_message_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Header) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Header) ProtoMessage() {} + +func (x *Header) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_common_v1_message_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *Header) GetFields() map[string]*Payload { + if x != nil { + return x.xxx_hidden_Fields + } + return nil +} + +func (x *Header) SetFields(v map[string]*Payload) { + x.xxx_hidden_Fields = v +} + +type Header_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Fields map[string]*Payload +} + +func (b0 Header_builder) Build() *Header { + m0 := &Header{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Fields = b.Fields + return m0 +} + +// Identifies a specific workflow within a namespace. Practically speaking, because run_id is a +// uuid, a workflow execution is globally unique. Note that many commands allow specifying an empty +// run id as a way of saying "target the latest run of the workflow". +type WorkflowExecution struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_WorkflowId string `protobuf:"bytes,1,opt,name=workflow_id,json=workflowId,proto3"` + xxx_hidden_RunId string `protobuf:"bytes,2,opt,name=run_id,json=runId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowExecution) Reset() { + *x = WorkflowExecution{} + mi := &file_temporal_api_common_v1_message_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkflowExecution) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowExecution) ProtoMessage() {} + +func (x *WorkflowExecution) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_common_v1_message_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkflowExecution) GetWorkflowId() string { + if x != nil { + return x.xxx_hidden_WorkflowId + } + return "" +} + +func (x *WorkflowExecution) GetRunId() string { + if x != nil { + return x.xxx_hidden_RunId + } + return "" +} + +func (x *WorkflowExecution) SetWorkflowId(v string) { + x.xxx_hidden_WorkflowId = v +} + +func (x *WorkflowExecution) SetRunId(v string) { + x.xxx_hidden_RunId = v +} + +type WorkflowExecution_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + WorkflowId string + RunId string +} + +func (b0 WorkflowExecution_builder) Build() *WorkflowExecution { + m0 := &WorkflowExecution{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_WorkflowId = b.WorkflowId + x.xxx_hidden_RunId = b.RunId + return m0 +} + +// Represents the identifier used by a workflow author to define the workflow. Typically, the +// name of a function. This is sometimes referred to as the workflow's "name" +type WorkflowType struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Name string `protobuf:"bytes,1,opt,name=name,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowType) Reset() { + *x = WorkflowType{} + mi := &file_temporal_api_common_v1_message_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkflowType) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowType) ProtoMessage() {} + +func (x *WorkflowType) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_common_v1_message_proto_msgTypes[7] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkflowType) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *WorkflowType) SetName(v string) { + x.xxx_hidden_Name = v +} + +type WorkflowType_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string +} + +func (b0 WorkflowType_builder) Build() *WorkflowType { + m0 := &WorkflowType{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Name = b.Name + return m0 +} + +// Represents the identifier used by a activity author to define the activity. Typically, the +// name of a function. This is sometimes referred to as the activity's "name" +type ActivityType struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Name string `protobuf:"bytes,1,opt,name=name,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ActivityType) Reset() { + *x = ActivityType{} + mi := &file_temporal_api_common_v1_message_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ActivityType) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ActivityType) ProtoMessage() {} + +func (x *ActivityType) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_common_v1_message_proto_msgTypes[8] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ActivityType) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *ActivityType) SetName(v string) { + x.xxx_hidden_Name = v +} + +type ActivityType_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string +} + +func (b0 ActivityType_builder) Build() *ActivityType { + m0 := &ActivityType{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Name = b.Name + return m0 +} + +// How retries ought to be handled, usable by both workflows and activities +type RetryPolicy struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_InitialInterval *durationpb.Duration `protobuf:"bytes,1,opt,name=initial_interval,json=initialInterval,proto3"` + xxx_hidden_BackoffCoefficient float64 `protobuf:"fixed64,2,opt,name=backoff_coefficient,json=backoffCoefficient,proto3"` + xxx_hidden_MaximumInterval *durationpb.Duration `protobuf:"bytes,3,opt,name=maximum_interval,json=maximumInterval,proto3"` + xxx_hidden_MaximumAttempts int32 `protobuf:"varint,4,opt,name=maximum_attempts,json=maximumAttempts,proto3"` + xxx_hidden_NonRetryableErrorTypes []string `protobuf:"bytes,5,rep,name=non_retryable_error_types,json=nonRetryableErrorTypes,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RetryPolicy) Reset() { + *x = RetryPolicy{} + mi := &file_temporal_api_common_v1_message_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RetryPolicy) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RetryPolicy) ProtoMessage() {} + +func (x *RetryPolicy) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_common_v1_message_proto_msgTypes[9] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *RetryPolicy) GetInitialInterval() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_InitialInterval + } + return nil +} + +func (x *RetryPolicy) GetBackoffCoefficient() float64 { + if x != nil { + return x.xxx_hidden_BackoffCoefficient + } + return 0 +} + +func (x *RetryPolicy) GetMaximumInterval() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_MaximumInterval + } + return nil +} + +func (x *RetryPolicy) GetMaximumAttempts() int32 { + if x != nil { + return x.xxx_hidden_MaximumAttempts + } + return 0 +} + +func (x *RetryPolicy) GetNonRetryableErrorTypes() []string { + if x != nil { + return x.xxx_hidden_NonRetryableErrorTypes + } + return nil +} + +func (x *RetryPolicy) SetInitialInterval(v *durationpb.Duration) { + x.xxx_hidden_InitialInterval = v +} + +func (x *RetryPolicy) SetBackoffCoefficient(v float64) { + x.xxx_hidden_BackoffCoefficient = v +} + +func (x *RetryPolicy) SetMaximumInterval(v *durationpb.Duration) { + x.xxx_hidden_MaximumInterval = v +} + +func (x *RetryPolicy) SetMaximumAttempts(v int32) { + x.xxx_hidden_MaximumAttempts = v +} + +func (x *RetryPolicy) SetNonRetryableErrorTypes(v []string) { + x.xxx_hidden_NonRetryableErrorTypes = v +} + +func (x *RetryPolicy) HasInitialInterval() bool { + if x == nil { + return false + } + return x.xxx_hidden_InitialInterval != nil +} + +func (x *RetryPolicy) HasMaximumInterval() bool { + if x == nil { + return false + } + return x.xxx_hidden_MaximumInterval != nil +} + +func (x *RetryPolicy) ClearInitialInterval() { + x.xxx_hidden_InitialInterval = nil +} + +func (x *RetryPolicy) ClearMaximumInterval() { + x.xxx_hidden_MaximumInterval = nil +} + +type RetryPolicy_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Interval of the first retry. If retryBackoffCoefficient is 1.0 then it is used for all retries. + InitialInterval *durationpb.Duration + // Coefficient used to calculate the next retry interval. + // The next retry interval is previous interval multiplied by the coefficient. + // Must be 1 or larger. + BackoffCoefficient float64 + // Maximum interval between retries. Exponential backoff leads to interval increase. + // This value is the cap of the increase. Default is 100x of the initial interval. + MaximumInterval *durationpb.Duration + // Maximum number of attempts. When exceeded the retries stop even if not expired yet. + // 1 disables retries. 0 means unlimited (up to the timeouts) + MaximumAttempts int32 + // Non-Retryable errors types. Will stop retrying if the error type matches this list. Note that + // this is not a substring match, the error *type* (not message) must match exactly. + NonRetryableErrorTypes []string +} + +func (b0 RetryPolicy_builder) Build() *RetryPolicy { + m0 := &RetryPolicy{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_InitialInterval = b.InitialInterval + x.xxx_hidden_BackoffCoefficient = b.BackoffCoefficient + x.xxx_hidden_MaximumInterval = b.MaximumInterval + x.xxx_hidden_MaximumAttempts = b.MaximumAttempts + x.xxx_hidden_NonRetryableErrorTypes = b.NonRetryableErrorTypes + return m0 +} + +// Metadata relevant for metering purposes +type MeteringMetadata struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_NonfirstLocalActivityExecutionAttempts uint32 `protobuf:"varint,13,opt,name=nonfirst_local_activity_execution_attempts,json=nonfirstLocalActivityExecutionAttempts,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *MeteringMetadata) Reset() { + *x = MeteringMetadata{} + mi := &file_temporal_api_common_v1_message_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *MeteringMetadata) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MeteringMetadata) ProtoMessage() {} + +func (x *MeteringMetadata) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_common_v1_message_proto_msgTypes[10] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *MeteringMetadata) GetNonfirstLocalActivityExecutionAttempts() uint32 { + if x != nil { + return x.xxx_hidden_NonfirstLocalActivityExecutionAttempts + } + return 0 +} + +func (x *MeteringMetadata) SetNonfirstLocalActivityExecutionAttempts(v uint32) { + x.xxx_hidden_NonfirstLocalActivityExecutionAttempts = v +} + +type MeteringMetadata_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Count of local activities which have begun an execution attempt during this workflow task, + // and whose first attempt occurred in some previous task. This is used for metering + // purposes, and does not affect workflow state. + // + // (-- api-linter: core::0141::forbidden-types=disabled + // + // aip.dev/not-precedent: Negative values make no sense to represent. --) + NonfirstLocalActivityExecutionAttempts uint32 +} + +func (b0 MeteringMetadata_builder) Build() *MeteringMetadata { + m0 := &MeteringMetadata{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_NonfirstLocalActivityExecutionAttempts = b.NonfirstLocalActivityExecutionAttempts + return m0 +} + +// Deprecated. This message is replaced with `Deployment` and `VersioningBehavior`. +// Identifies the version(s) of a worker that processed a task +type WorkerVersionStamp struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_BuildId string `protobuf:"bytes,1,opt,name=build_id,json=buildId,proto3"` + xxx_hidden_UseVersioning bool `protobuf:"varint,3,opt,name=use_versioning,json=useVersioning,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkerVersionStamp) Reset() { + *x = WorkerVersionStamp{} + mi := &file_temporal_api_common_v1_message_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkerVersionStamp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkerVersionStamp) ProtoMessage() {} + +func (x *WorkerVersionStamp) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_common_v1_message_proto_msgTypes[11] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkerVersionStamp) GetBuildId() string { + if x != nil { + return x.xxx_hidden_BuildId + } + return "" +} + +func (x *WorkerVersionStamp) GetUseVersioning() bool { + if x != nil { + return x.xxx_hidden_UseVersioning + } + return false +} + +func (x *WorkerVersionStamp) SetBuildId(v string) { + x.xxx_hidden_BuildId = v +} + +func (x *WorkerVersionStamp) SetUseVersioning(v bool) { + x.xxx_hidden_UseVersioning = v +} + +type WorkerVersionStamp_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // An opaque whole-worker identifier. Replaces the deprecated `binary_checksum` field when this + // message is included in requests which previously used that. + BuildId string + // If set, the worker is opting in to worker versioning. Otherwise, this is used only as a + // marker for workflow reset points and the BuildIDs search attribute. + UseVersioning bool +} + +func (b0 WorkerVersionStamp_builder) Build() *WorkerVersionStamp { + m0 := &WorkerVersionStamp{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_BuildId = b.BuildId + x.xxx_hidden_UseVersioning = b.UseVersioning + return m0 +} + +// Identifies the version that a worker is compatible with when polling or identifying itself, +// and whether or not this worker is opting into the build-id based versioning feature. This is +// used by matching to determine which workers ought to receive what tasks. +// Deprecated. Use WorkerDeploymentOptions instead. +type WorkerVersionCapabilities struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_BuildId string `protobuf:"bytes,1,opt,name=build_id,json=buildId,proto3"` + xxx_hidden_UseVersioning bool `protobuf:"varint,2,opt,name=use_versioning,json=useVersioning,proto3"` + xxx_hidden_DeploymentSeriesName string `protobuf:"bytes,4,opt,name=deployment_series_name,json=deploymentSeriesName,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkerVersionCapabilities) Reset() { + *x = WorkerVersionCapabilities{} + mi := &file_temporal_api_common_v1_message_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkerVersionCapabilities) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkerVersionCapabilities) ProtoMessage() {} + +func (x *WorkerVersionCapabilities) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_common_v1_message_proto_msgTypes[12] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkerVersionCapabilities) GetBuildId() string { + if x != nil { + return x.xxx_hidden_BuildId + } + return "" +} + +func (x *WorkerVersionCapabilities) GetUseVersioning() bool { + if x != nil { + return x.xxx_hidden_UseVersioning + } + return false +} + +func (x *WorkerVersionCapabilities) GetDeploymentSeriesName() string { + if x != nil { + return x.xxx_hidden_DeploymentSeriesName + } + return "" +} + +func (x *WorkerVersionCapabilities) SetBuildId(v string) { + x.xxx_hidden_BuildId = v +} + +func (x *WorkerVersionCapabilities) SetUseVersioning(v bool) { + x.xxx_hidden_UseVersioning = v +} + +func (x *WorkerVersionCapabilities) SetDeploymentSeriesName(v string) { + x.xxx_hidden_DeploymentSeriesName = v +} + +type WorkerVersionCapabilities_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // An opaque whole-worker identifier + BuildId string + // If set, the worker is opting in to worker versioning, and wishes to only receive appropriate + // tasks. + UseVersioning bool + // Must be sent if user has set a deployment series name (versioning-3). + DeploymentSeriesName string +} + +func (b0 WorkerVersionCapabilities_builder) Build() *WorkerVersionCapabilities { + m0 := &WorkerVersionCapabilities{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_BuildId = b.BuildId + x.xxx_hidden_UseVersioning = b.UseVersioning + x.xxx_hidden_DeploymentSeriesName = b.DeploymentSeriesName + return m0 +} + +// Describes where and how to reset a workflow, used for batch reset currently +// and may be used for single-workflow reset later. +type ResetOptions struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Target isResetOptions_Target `protobuf_oneof:"target"` + xxx_hidden_ResetReapplyType v1.ResetReapplyType `protobuf:"varint,10,opt,name=reset_reapply_type,json=resetReapplyType,proto3,enum=temporal.api.enums.v1.ResetReapplyType"` + xxx_hidden_CurrentRunOnly bool `protobuf:"varint,11,opt,name=current_run_only,json=currentRunOnly,proto3"` + xxx_hidden_ResetReapplyExcludeTypes []v1.ResetReapplyExcludeType `protobuf:"varint,12,rep,packed,name=reset_reapply_exclude_types,json=resetReapplyExcludeTypes,proto3,enum=temporal.api.enums.v1.ResetReapplyExcludeType"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ResetOptions) Reset() { + *x = ResetOptions{} + mi := &file_temporal_api_common_v1_message_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ResetOptions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResetOptions) ProtoMessage() {} + +func (x *ResetOptions) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_common_v1_message_proto_msgTypes[13] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ResetOptions) GetFirstWorkflowTask() *emptypb.Empty { + if x != nil { + if x, ok := x.xxx_hidden_Target.(*resetOptions_FirstWorkflowTask); ok { + return x.FirstWorkflowTask + } + } + return nil +} + +func (x *ResetOptions) GetLastWorkflowTask() *emptypb.Empty { + if x != nil { + if x, ok := x.xxx_hidden_Target.(*resetOptions_LastWorkflowTask); ok { + return x.LastWorkflowTask + } + } + return nil +} + +func (x *ResetOptions) GetWorkflowTaskId() int64 { + if x != nil { + if x, ok := x.xxx_hidden_Target.(*resetOptions_WorkflowTaskId); ok { + return x.WorkflowTaskId + } + } + return 0 +} + +func (x *ResetOptions) GetBuildId() string { + if x != nil { + if x, ok := x.xxx_hidden_Target.(*resetOptions_BuildId); ok { + return x.BuildId + } + } + return "" +} + +// Deprecated: Marked as deprecated in temporal/api/common/v1/message.proto. +func (x *ResetOptions) GetResetReapplyType() v1.ResetReapplyType { + if x != nil { + return x.xxx_hidden_ResetReapplyType + } + return v1.ResetReapplyType(0) +} + +func (x *ResetOptions) GetCurrentRunOnly() bool { + if x != nil { + return x.xxx_hidden_CurrentRunOnly + } + return false +} + +func (x *ResetOptions) GetResetReapplyExcludeTypes() []v1.ResetReapplyExcludeType { + if x != nil { + return x.xxx_hidden_ResetReapplyExcludeTypes + } + return nil +} + +func (x *ResetOptions) SetFirstWorkflowTask(v *emptypb.Empty) { + if v == nil { + x.xxx_hidden_Target = nil + return + } + x.xxx_hidden_Target = &resetOptions_FirstWorkflowTask{v} +} + +func (x *ResetOptions) SetLastWorkflowTask(v *emptypb.Empty) { + if v == nil { + x.xxx_hidden_Target = nil + return + } + x.xxx_hidden_Target = &resetOptions_LastWorkflowTask{v} +} + +func (x *ResetOptions) SetWorkflowTaskId(v int64) { + x.xxx_hidden_Target = &resetOptions_WorkflowTaskId{v} +} + +func (x *ResetOptions) SetBuildId(v string) { + x.xxx_hidden_Target = &resetOptions_BuildId{v} +} + +// Deprecated: Marked as deprecated in temporal/api/common/v1/message.proto. +func (x *ResetOptions) SetResetReapplyType(v v1.ResetReapplyType) { + x.xxx_hidden_ResetReapplyType = v +} + +func (x *ResetOptions) SetCurrentRunOnly(v bool) { + x.xxx_hidden_CurrentRunOnly = v +} + +func (x *ResetOptions) SetResetReapplyExcludeTypes(v []v1.ResetReapplyExcludeType) { + x.xxx_hidden_ResetReapplyExcludeTypes = v +} + +func (x *ResetOptions) HasTarget() bool { + if x == nil { + return false + } + return x.xxx_hidden_Target != nil +} + +func (x *ResetOptions) HasFirstWorkflowTask() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Target.(*resetOptions_FirstWorkflowTask) + return ok +} + +func (x *ResetOptions) HasLastWorkflowTask() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Target.(*resetOptions_LastWorkflowTask) + return ok +} + +func (x *ResetOptions) HasWorkflowTaskId() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Target.(*resetOptions_WorkflowTaskId) + return ok +} + +func (x *ResetOptions) HasBuildId() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Target.(*resetOptions_BuildId) + return ok +} + +func (x *ResetOptions) ClearTarget() { + x.xxx_hidden_Target = nil +} + +func (x *ResetOptions) ClearFirstWorkflowTask() { + if _, ok := x.xxx_hidden_Target.(*resetOptions_FirstWorkflowTask); ok { + x.xxx_hidden_Target = nil + } +} + +func (x *ResetOptions) ClearLastWorkflowTask() { + if _, ok := x.xxx_hidden_Target.(*resetOptions_LastWorkflowTask); ok { + x.xxx_hidden_Target = nil + } +} + +func (x *ResetOptions) ClearWorkflowTaskId() { + if _, ok := x.xxx_hidden_Target.(*resetOptions_WorkflowTaskId); ok { + x.xxx_hidden_Target = nil + } +} + +func (x *ResetOptions) ClearBuildId() { + if _, ok := x.xxx_hidden_Target.(*resetOptions_BuildId); ok { + x.xxx_hidden_Target = nil + } +} + +const ResetOptions_Target_not_set_case case_ResetOptions_Target = 0 +const ResetOptions_FirstWorkflowTask_case case_ResetOptions_Target = 1 +const ResetOptions_LastWorkflowTask_case case_ResetOptions_Target = 2 +const ResetOptions_WorkflowTaskId_case case_ResetOptions_Target = 3 +const ResetOptions_BuildId_case case_ResetOptions_Target = 4 + +func (x *ResetOptions) WhichTarget() case_ResetOptions_Target { + if x == nil { + return ResetOptions_Target_not_set_case + } + switch x.xxx_hidden_Target.(type) { + case *resetOptions_FirstWorkflowTask: + return ResetOptions_FirstWorkflowTask_case + case *resetOptions_LastWorkflowTask: + return ResetOptions_LastWorkflowTask_case + case *resetOptions_WorkflowTaskId: + return ResetOptions_WorkflowTaskId_case + case *resetOptions_BuildId: + return ResetOptions_BuildId_case + default: + return ResetOptions_Target_not_set_case + } +} + +type ResetOptions_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Which workflow task to reset to. + + // Fields of oneof xxx_hidden_Target: + // Resets to the first workflow task completed or started event. + FirstWorkflowTask *emptypb.Empty + // Resets to the last workflow task completed or started event. + LastWorkflowTask *emptypb.Empty + // The id of a specific `WORKFLOW_TASK_COMPLETED`,`WORKFLOW_TASK_TIMED_OUT`, `WORKFLOW_TASK_FAILED`, or + // `WORKFLOW_TASK_STARTED` event to reset to. + // Note that this option doesn't make sense when used as part of a batch request. + WorkflowTaskId *int64 + // Resets to the first workflow task processed by this build id. + // If the workflow was not processed by the build id, or the workflow task can't be + // determined, no reset will be performed. + // Note that by default, this reset is allowed to be to a prior run in a chain of + // continue-as-new. + BuildId *string + // -- end of xxx_hidden_Target + // Deprecated. Use `options`. + // Default: RESET_REAPPLY_TYPE_SIGNAL + // + // Deprecated: Marked as deprecated in temporal/api/common/v1/message.proto. + ResetReapplyType v1.ResetReapplyType + // If true, limit the reset to only within the current run. (Applies to build_id targets and + // possibly others in the future.) + CurrentRunOnly bool + // Event types not to be reapplied + ResetReapplyExcludeTypes []v1.ResetReapplyExcludeType +} + +func (b0 ResetOptions_builder) Build() *ResetOptions { + m0 := &ResetOptions{} + b, x := &b0, m0 + _, _ = b, x + if b.FirstWorkflowTask != nil { + x.xxx_hidden_Target = &resetOptions_FirstWorkflowTask{b.FirstWorkflowTask} + } + if b.LastWorkflowTask != nil { + x.xxx_hidden_Target = &resetOptions_LastWorkflowTask{b.LastWorkflowTask} + } + if b.WorkflowTaskId != nil { + x.xxx_hidden_Target = &resetOptions_WorkflowTaskId{*b.WorkflowTaskId} + } + if b.BuildId != nil { + x.xxx_hidden_Target = &resetOptions_BuildId{*b.BuildId} + } + x.xxx_hidden_ResetReapplyType = b.ResetReapplyType + x.xxx_hidden_CurrentRunOnly = b.CurrentRunOnly + x.xxx_hidden_ResetReapplyExcludeTypes = b.ResetReapplyExcludeTypes + return m0 +} + +type case_ResetOptions_Target protoreflect.FieldNumber + +func (x case_ResetOptions_Target) String() string { + switch x { + case ResetOptions_Target_not_set_case: + return "ResetOptionsTargetNotSetCase" + case ResetOptions_FirstWorkflowTask_case: + return "ResetOptionsFirstWorkflowTaskCase" + case ResetOptions_LastWorkflowTask_case: + return "ResetOptionsLastWorkflowTaskCase" + case ResetOptions_WorkflowTaskId_case: + return "ResetOptionsWorkflowTaskIdCase" + + // Resets to the first workflow task completed or started event. + case ResetOptions_BuildId_case: + return "ResetOptionsBuildIdCase" + default: + return strconv.Itoa(int(x)) + } + +} + +type isResetOptions_Target interface { + isResetOptions_Target() +} + +type resetOptions_FirstWorkflowTask struct { + FirstWorkflowTask *emptypb.Empty `protobuf:"bytes,1,opt,name=first_workflow_task,json=firstWorkflowTask,proto3,oneof"` +} + +type resetOptions_LastWorkflowTask struct { + // Resets to the last workflow task completed or started event. + LastWorkflowTask *emptypb.Empty `protobuf:"bytes,2,opt,name=last_workflow_task,json=lastWorkflowTask,proto3,oneof"` +} + +type resetOptions_WorkflowTaskId struct { + // The id of a specific `WORKFLOW_TASK_COMPLETED`,`WORKFLOW_TASK_TIMED_OUT`, `WORKFLOW_TASK_FAILED`, or + // `WORKFLOW_TASK_STARTED` event to reset to. + // Note that this option doesn't make sense when used as part of a batch request. + WorkflowTaskId int64 `protobuf:"varint,3,opt,name=workflow_task_id,json=workflowTaskId,proto3,oneof"` +} + +type resetOptions_BuildId struct { + // Resets to the first workflow task processed by this build id. + // If the workflow was not processed by the build id, or the workflow task can't be + // determined, no reset will be performed. + // Note that by default, this reset is allowed to be to a prior run in a chain of + // continue-as-new. + BuildId string `protobuf:"bytes,4,opt,name=build_id,json=buildId,proto3,oneof"` +} + +func (*resetOptions_FirstWorkflowTask) isResetOptions_Target() {} + +func (*resetOptions_LastWorkflowTask) isResetOptions_Target() {} + +func (*resetOptions_WorkflowTaskId) isResetOptions_Target() {} + +func (*resetOptions_BuildId) isResetOptions_Target() {} + +// Callback to attach to various events in the system, e.g. workflow run completion. +type Callback struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Variant isCallback_Variant `protobuf_oneof:"variant"` + xxx_hidden_Links *[]*Link `protobuf:"bytes,100,rep,name=links,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Callback) Reset() { + *x = Callback{} + mi := &file_temporal_api_common_v1_message_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Callback) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Callback) ProtoMessage() {} + +func (x *Callback) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_common_v1_message_proto_msgTypes[14] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *Callback) GetNexus() *Callback_Nexus { + if x != nil { + if x, ok := x.xxx_hidden_Variant.(*callback_Nexus_); ok { + return x.Nexus + } + } + return nil +} + +func (x *Callback) GetInternal() *Callback_Internal { + if x != nil { + if x, ok := x.xxx_hidden_Variant.(*callback_Internal_); ok { + return x.Internal + } + } + return nil +} + +func (x *Callback) GetLinks() []*Link { + if x != nil { + if x.xxx_hidden_Links != nil { + return *x.xxx_hidden_Links + } + } + return nil +} + +func (x *Callback) SetNexus(v *Callback_Nexus) { + if v == nil { + x.xxx_hidden_Variant = nil + return + } + x.xxx_hidden_Variant = &callback_Nexus_{v} +} + +func (x *Callback) SetInternal(v *Callback_Internal) { + if v == nil { + x.xxx_hidden_Variant = nil + return + } + x.xxx_hidden_Variant = &callback_Internal_{v} +} + +func (x *Callback) SetLinks(v []*Link) { + x.xxx_hidden_Links = &v +} + +func (x *Callback) HasVariant() bool { + if x == nil { + return false + } + return x.xxx_hidden_Variant != nil +} + +func (x *Callback) HasNexus() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Variant.(*callback_Nexus_) + return ok +} + +func (x *Callback) HasInternal() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Variant.(*callback_Internal_) + return ok +} + +func (x *Callback) ClearVariant() { + x.xxx_hidden_Variant = nil +} + +func (x *Callback) ClearNexus() { + if _, ok := x.xxx_hidden_Variant.(*callback_Nexus_); ok { + x.xxx_hidden_Variant = nil + } +} + +func (x *Callback) ClearInternal() { + if _, ok := x.xxx_hidden_Variant.(*callback_Internal_); ok { + x.xxx_hidden_Variant = nil + } +} + +const Callback_Variant_not_set_case case_Callback_Variant = 0 +const Callback_Nexus_case case_Callback_Variant = 2 +const Callback_Internal_case case_Callback_Variant = 3 + +func (x *Callback) WhichVariant() case_Callback_Variant { + if x == nil { + return Callback_Variant_not_set_case + } + switch x.xxx_hidden_Variant.(type) { + case *callback_Nexus_: + return Callback_Nexus_case + case *callback_Internal_: + return Callback_Internal_case + default: + return Callback_Variant_not_set_case + } +} + +type Callback_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Fields of oneof xxx_hidden_Variant: + Nexus *Callback_Nexus + Internal *Callback_Internal + // -- end of xxx_hidden_Variant + // Links associated with the callback. It can be used to link to underlying resources of the + // callback. + Links []*Link +} + +func (b0 Callback_builder) Build() *Callback { + m0 := &Callback{} + b, x := &b0, m0 + _, _ = b, x + if b.Nexus != nil { + x.xxx_hidden_Variant = &callback_Nexus_{b.Nexus} + } + if b.Internal != nil { + x.xxx_hidden_Variant = &callback_Internal_{b.Internal} + } + x.xxx_hidden_Links = &b.Links + return m0 +} + +type case_Callback_Variant protoreflect.FieldNumber + +func (x case_Callback_Variant) String() string { + switch x { + case Callback_Variant_not_set_case: + return "CallbackVariantNotSetCase" + case Callback_Nexus_case: + return "CallbackNexusCase" + case Callback_Internal_case: + return "CallbackInternalCase" + default: + return strconv.Itoa(int(x)) + } + +} + +type isCallback_Variant interface { + isCallback_Variant() +} + +type callback_Nexus_ struct { + Nexus *Callback_Nexus `protobuf:"bytes,2,opt,name=nexus,proto3,oneof"` +} + +type callback_Internal_ struct { + Internal *Callback_Internal `protobuf:"bytes,3,opt,name=internal,proto3,oneof"` +} + +func (*callback_Nexus_) isCallback_Variant() {} + +func (*callback_Internal_) isCallback_Variant() {} + +// Link can be associated with history events. It might contain information about an external entity +// related to the history event. For example, workflow A makes a Nexus call that starts workflow B: +// in this case, a history event in workflow A could contain a Link to the workflow started event in +// workflow B, and vice-versa. +type Link struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Variant isLink_Variant `protobuf_oneof:"variant"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Link) Reset() { + *x = Link{} + mi := &file_temporal_api_common_v1_message_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Link) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Link) ProtoMessage() {} + +func (x *Link) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_common_v1_message_proto_msgTypes[15] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *Link) GetWorkflowEvent() *Link_WorkflowEvent { + if x != nil { + if x, ok := x.xxx_hidden_Variant.(*link_WorkflowEvent_); ok { + return x.WorkflowEvent + } + } + return nil +} + +func (x *Link) GetBatchJob() *Link_BatchJob { + if x != nil { + if x, ok := x.xxx_hidden_Variant.(*link_BatchJob_); ok { + return x.BatchJob + } + } + return nil +} + +func (x *Link) SetWorkflowEvent(v *Link_WorkflowEvent) { + if v == nil { + x.xxx_hidden_Variant = nil + return + } + x.xxx_hidden_Variant = &link_WorkflowEvent_{v} +} + +func (x *Link) SetBatchJob(v *Link_BatchJob) { + if v == nil { + x.xxx_hidden_Variant = nil + return + } + x.xxx_hidden_Variant = &link_BatchJob_{v} +} + +func (x *Link) HasVariant() bool { + if x == nil { + return false + } + return x.xxx_hidden_Variant != nil +} + +func (x *Link) HasWorkflowEvent() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Variant.(*link_WorkflowEvent_) + return ok +} + +func (x *Link) HasBatchJob() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Variant.(*link_BatchJob_) + return ok +} + +func (x *Link) ClearVariant() { + x.xxx_hidden_Variant = nil +} + +func (x *Link) ClearWorkflowEvent() { + if _, ok := x.xxx_hidden_Variant.(*link_WorkflowEvent_); ok { + x.xxx_hidden_Variant = nil + } +} + +func (x *Link) ClearBatchJob() { + if _, ok := x.xxx_hidden_Variant.(*link_BatchJob_); ok { + x.xxx_hidden_Variant = nil + } +} + +const Link_Variant_not_set_case case_Link_Variant = 0 +const Link_WorkflowEvent_case case_Link_Variant = 1 +const Link_BatchJob_case case_Link_Variant = 2 + +func (x *Link) WhichVariant() case_Link_Variant { + if x == nil { + return Link_Variant_not_set_case + } + switch x.xxx_hidden_Variant.(type) { + case *link_WorkflowEvent_: + return Link_WorkflowEvent_case + case *link_BatchJob_: + return Link_BatchJob_case + default: + return Link_Variant_not_set_case + } +} + +type Link_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Fields of oneof xxx_hidden_Variant: + WorkflowEvent *Link_WorkflowEvent + BatchJob *Link_BatchJob + // -- end of xxx_hidden_Variant +} + +func (b0 Link_builder) Build() *Link { + m0 := &Link{} + b, x := &b0, m0 + _, _ = b, x + if b.WorkflowEvent != nil { + x.xxx_hidden_Variant = &link_WorkflowEvent_{b.WorkflowEvent} + } + if b.BatchJob != nil { + x.xxx_hidden_Variant = &link_BatchJob_{b.BatchJob} + } + return m0 +} + +type case_Link_Variant protoreflect.FieldNumber + +func (x case_Link_Variant) String() string { + switch x { + case Link_Variant_not_set_case: + return "LinkVariantNotSetCase" + case Link_WorkflowEvent_case: + return "LinkWorkflowEventCase" + case Link_BatchJob_case: + return "LinkBatchJobCase" + default: + return strconv.Itoa(int(x)) + } + +} + +type isLink_Variant interface { + isLink_Variant() +} + +type link_WorkflowEvent_ struct { + WorkflowEvent *Link_WorkflowEvent `protobuf:"bytes,1,opt,name=workflow_event,json=workflowEvent,proto3,oneof"` +} + +type link_BatchJob_ struct { + BatchJob *Link_BatchJob `protobuf:"bytes,2,opt,name=batch_job,json=batchJob,proto3,oneof"` +} + +func (*link_WorkflowEvent_) isLink_Variant() {} + +func (*link_BatchJob_) isLink_Variant() {} + +// Priority contains metadata that controls relative ordering of task processing +// when tasks are backed up in a queue. Initially, Priority will be used in +// matching (workflow and activity) task queues. Later it may be used in history +// task queues and in rate limiting decisions. +// +// Priority is attached to workflows and activities. By default, activities +// inherit Priority from the workflow that created them, but may override fields +// when an activity is started or modified. +// +// Despite being named "Priority", this message also contains fields that +// control "fairness" mechanisms. +// +// For all fields, the field not present or equal to zero/empty string means to +// inherit the value from the calling workflow, or if there is no calling +// workflow, then use the default value. +// +// For all fields other than fairness_key, the zero value isn't meaningful so +// there's no confusion between inherit/default and a meaningful value. For +// fairness_key, the empty string will be interpreted as "inherit". This means +// that if a workflow has a non-empty fairness key, you can't override the +// fairness key of its activity to the empty string. +// +// The overall semantics of Priority are: +// 1. First, consider "priority": higher priority (lower number) goes first. +// 2. Then, consider fairness: try to dispatch tasks for different fairness keys +// in proportion to their weight. +// +// Applications may use any subset of mechanisms that are useful to them and +// leave the other fields to use default values. +// +// Not all queues in the system may support the "full" semantics of all priority +// fields. (Currently only support in matching task queues is planned.) +type Priority struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_PriorityKey int32 `protobuf:"varint,1,opt,name=priority_key,json=priorityKey,proto3"` + xxx_hidden_FairnessKey string `protobuf:"bytes,2,opt,name=fairness_key,json=fairnessKey,proto3"` + xxx_hidden_FairnessWeight float32 `protobuf:"fixed32,3,opt,name=fairness_weight,json=fairnessWeight,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Priority) Reset() { + *x = Priority{} + mi := &file_temporal_api_common_v1_message_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Priority) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Priority) ProtoMessage() {} + +func (x *Priority) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_common_v1_message_proto_msgTypes[16] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *Priority) GetPriorityKey() int32 { + if x != nil { + return x.xxx_hidden_PriorityKey + } + return 0 +} + +func (x *Priority) GetFairnessKey() string { + if x != nil { + return x.xxx_hidden_FairnessKey + } + return "" +} + +func (x *Priority) GetFairnessWeight() float32 { + if x != nil { + return x.xxx_hidden_FairnessWeight + } + return 0 +} + +func (x *Priority) SetPriorityKey(v int32) { + x.xxx_hidden_PriorityKey = v +} + +func (x *Priority) SetFairnessKey(v string) { + x.xxx_hidden_FairnessKey = v +} + +func (x *Priority) SetFairnessWeight(v float32) { + x.xxx_hidden_FairnessWeight = v +} + +type Priority_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Priority key is a positive integer from 1 to n, where smaller integers + // correspond to higher priorities (tasks run sooner). In general, tasks in + // a queue should be processed in close to priority order, although small + // deviations are possible. + // + // The maximum priority value (minimum priority) is determined by server + // configuration, and defaults to 5. + // + // If priority is not present (or zero), then the effective priority will be + // the default priority, which is calculated by (min+max)/2. With the + // default max of 5, and min of 1, that comes out to 3. + PriorityKey int32 + // Fairness key is a short string that's used as a key for a fairness + // balancing mechanism. It may correspond to a tenant id, or to a fixed + // string like "high" or "low". The default is the empty string. + // + // The fairness mechanism attempts to dispatch tasks for a given key in + // proportion to its weight. For example, using a thousand distinct tenant + // ids, each with a weight of 1.0 (the default) will result in each tenant + // getting a roughly equal share of task dispatch throughput. + // + // (Note: this does not imply equal share of worker capacity! Fairness + // decisions are made based on queue statistics, not + // current worker load.) + // + // As another example, using keys "high" and "low" with weight 9.0 and 1.0 + // respectively will prefer dispatching "high" tasks over "low" tasks at a + // 9:1 ratio, while allowing either key to use all worker capacity if the + // other is not present. + // + // All fairness mechanisms, including rate limits, are best-effort and + // probabilistic. The results may not match what a "perfect" algorithm with + // infinite resources would produce. The more unique keys are used, the less + // accurate the results will be. + // + // Fairness keys are limited to 64 bytes. + FairnessKey string + // Fairness weight for a task can come from multiple sources for + // flexibility. From highest to lowest precedence: + // 1. Weights for a small set of keys can be overridden in task queue + // configuration with an API. + // 2. It can be attached to the workflow/activity in this field. + // 3. The default weight of 1.0 will be used. + // + // Weight values are clamped to the range [0.001, 1000]. + FairnessWeight float32 +} + +func (b0 Priority_builder) Build() *Priority { + m0 := &Priority{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_PriorityKey = b.PriorityKey + x.xxx_hidden_FairnessKey = b.FairnessKey + x.xxx_hidden_FairnessWeight = b.FairnessWeight + return m0 +} + +// This is used to send commands to a specific worker or a group of workers. +// Right now, it is used to send commands to a specific worker instance. +// Will be extended to be able to send command to multiple workers. +type WorkerSelector struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Selector isWorkerSelector_Selector `protobuf_oneof:"selector"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkerSelector) Reset() { + *x = WorkerSelector{} + mi := &file_temporal_api_common_v1_message_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkerSelector) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkerSelector) ProtoMessage() {} + +func (x *WorkerSelector) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_common_v1_message_proto_msgTypes[17] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkerSelector) GetWorkerInstanceKey() string { + if x != nil { + if x, ok := x.xxx_hidden_Selector.(*workerSelector_WorkerInstanceKey); ok { + return x.WorkerInstanceKey + } + } + return "" +} + +func (x *WorkerSelector) SetWorkerInstanceKey(v string) { + x.xxx_hidden_Selector = &workerSelector_WorkerInstanceKey{v} +} + +func (x *WorkerSelector) HasSelector() bool { + if x == nil { + return false + } + return x.xxx_hidden_Selector != nil +} + +func (x *WorkerSelector) HasWorkerInstanceKey() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Selector.(*workerSelector_WorkerInstanceKey) + return ok +} + +func (x *WorkerSelector) ClearSelector() { + x.xxx_hidden_Selector = nil +} + +func (x *WorkerSelector) ClearWorkerInstanceKey() { + if _, ok := x.xxx_hidden_Selector.(*workerSelector_WorkerInstanceKey); ok { + x.xxx_hidden_Selector = nil + } +} + +const WorkerSelector_Selector_not_set_case case_WorkerSelector_Selector = 0 +const WorkerSelector_WorkerInstanceKey_case case_WorkerSelector_Selector = 1 + +func (x *WorkerSelector) WhichSelector() case_WorkerSelector_Selector { + if x == nil { + return WorkerSelector_Selector_not_set_case + } + switch x.xxx_hidden_Selector.(type) { + case *workerSelector_WorkerInstanceKey: + return WorkerSelector_WorkerInstanceKey_case + default: + return WorkerSelector_Selector_not_set_case + } +} + +type WorkerSelector_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Options are: + // - query (will be used as query to ListWorkers, same format as in ListWorkersRequest.query) + // - task queue (just a shortcut. Same as query=' "TaskQueue"="my-task-queue" ') + // - etc. + // All but 'query' are shortcuts, can be replaced with a query, but it is not convenient. + // string query = 5; + // string task_queue = 6; + // ... + + // Fields of oneof xxx_hidden_Selector: + // Worker instance key to which the command should be sent. + WorkerInstanceKey *string + // -- end of xxx_hidden_Selector +} + +func (b0 WorkerSelector_builder) Build() *WorkerSelector { + m0 := &WorkerSelector{} + b, x := &b0, m0 + _, _ = b, x + if b.WorkerInstanceKey != nil { + x.xxx_hidden_Selector = &workerSelector_WorkerInstanceKey{*b.WorkerInstanceKey} + } + return m0 +} + +type case_WorkerSelector_Selector protoreflect.FieldNumber + +func (x case_WorkerSelector_Selector) String() string { + switch x { + case WorkerSelector_Selector_not_set_case: + return "WorkerSelectorSelectorNotSetCase" + case WorkerSelector_WorkerInstanceKey_case: + return "WorkerSelectorWorkerInstanceKeyCase" + default: + return strconv.Itoa(int(x)) + } + +} + +type isWorkerSelector_Selector interface { + isWorkerSelector_Selector() +} + +type workerSelector_WorkerInstanceKey struct { + // Worker instance key to which the command should be sent. + WorkerInstanceKey string `protobuf:"bytes,1,opt,name=worker_instance_key,json=workerInstanceKey,proto3,oneof"` +} + +func (*workerSelector_WorkerInstanceKey) isWorkerSelector_Selector() {} + +// Describes an externally stored object referenced by this payload. +type Payload_ExternalPayloadDetails struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_SizeBytes int64 `protobuf:"varint,1,opt,name=size_bytes,json=sizeBytes,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Payload_ExternalPayloadDetails) Reset() { + *x = Payload_ExternalPayloadDetails{} + mi := &file_temporal_api_common_v1_message_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Payload_ExternalPayloadDetails) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Payload_ExternalPayloadDetails) ProtoMessage() {} + +func (x *Payload_ExternalPayloadDetails) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_common_v1_message_proto_msgTypes[19] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *Payload_ExternalPayloadDetails) GetSizeBytes() int64 { + if x != nil { + return x.xxx_hidden_SizeBytes + } + return 0 +} + +func (x *Payload_ExternalPayloadDetails) SetSizeBytes(v int64) { + x.xxx_hidden_SizeBytes = v +} + +type Payload_ExternalPayloadDetails_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Size in bytes of the externally stored payload + SizeBytes int64 +} + +func (b0 Payload_ExternalPayloadDetails_builder) Build() *Payload_ExternalPayloadDetails { + m0 := &Payload_ExternalPayloadDetails{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_SizeBytes = b.SizeBytes + return m0 +} + +type Callback_Nexus struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Url string `protobuf:"bytes,1,opt,name=url,proto3"` + xxx_hidden_Header map[string]string `protobuf:"bytes,2,rep,name=header,proto3" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Callback_Nexus) Reset() { + *x = Callback_Nexus{} + mi := &file_temporal_api_common_v1_message_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Callback_Nexus) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Callback_Nexus) ProtoMessage() {} + +func (x *Callback_Nexus) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_common_v1_message_proto_msgTypes[23] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *Callback_Nexus) GetUrl() string { + if x != nil { + return x.xxx_hidden_Url + } + return "" +} + +func (x *Callback_Nexus) GetHeader() map[string]string { + if x != nil { + return x.xxx_hidden_Header + } + return nil +} + +func (x *Callback_Nexus) SetUrl(v string) { + x.xxx_hidden_Url = v +} + +func (x *Callback_Nexus) SetHeader(v map[string]string) { + x.xxx_hidden_Header = v +} + +type Callback_Nexus_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Callback URL. + Url string + // Header to attach to callback request. + Header map[string]string +} + +func (b0 Callback_Nexus_builder) Build() *Callback_Nexus { + m0 := &Callback_Nexus{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Url = b.Url + x.xxx_hidden_Header = b.Header + return m0 +} + +// Callbacks to be delivered internally within the system. +// This variant is not settable in the API and will be rejected by the service with an INVALID_ARGUMENT error. +// The only reason that this is exposed is because callbacks are replicated across clusters via the +// WorkflowExecutionStarted event, which is defined in the public API. +type Callback_Internal struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Data []byte `protobuf:"bytes,1,opt,name=data,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Callback_Internal) Reset() { + *x = Callback_Internal{} + mi := &file_temporal_api_common_v1_message_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Callback_Internal) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Callback_Internal) ProtoMessage() {} + +func (x *Callback_Internal) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_common_v1_message_proto_msgTypes[24] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *Callback_Internal) GetData() []byte { + if x != nil { + return x.xxx_hidden_Data + } + return nil +} + +func (x *Callback_Internal) SetData(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_Data = v +} + +type Callback_Internal_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Opaque internal data. + Data []byte +} + +func (b0 Callback_Internal_builder) Build() *Callback_Internal { + m0 := &Callback_Internal{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Data = b.Data + return m0 +} + +type Link_WorkflowEvent struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_WorkflowId string `protobuf:"bytes,2,opt,name=workflow_id,json=workflowId,proto3"` + xxx_hidden_RunId string `protobuf:"bytes,3,opt,name=run_id,json=runId,proto3"` + xxx_hidden_Reference isLink_WorkflowEvent_Reference `protobuf_oneof:"reference"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Link_WorkflowEvent) Reset() { + *x = Link_WorkflowEvent{} + mi := &file_temporal_api_common_v1_message_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Link_WorkflowEvent) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Link_WorkflowEvent) ProtoMessage() {} + +func (x *Link_WorkflowEvent) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_common_v1_message_proto_msgTypes[26] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *Link_WorkflowEvent) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *Link_WorkflowEvent) GetWorkflowId() string { + if x != nil { + return x.xxx_hidden_WorkflowId + } + return "" +} + +func (x *Link_WorkflowEvent) GetRunId() string { + if x != nil { + return x.xxx_hidden_RunId + } + return "" +} + +func (x *Link_WorkflowEvent) GetEventRef() *Link_WorkflowEvent_EventReference { + if x != nil { + if x, ok := x.xxx_hidden_Reference.(*link_WorkflowEvent_EventRef); ok { + return x.EventRef + } + } + return nil +} + +func (x *Link_WorkflowEvent) GetRequestIdRef() *Link_WorkflowEvent_RequestIdReference { + if x != nil { + if x, ok := x.xxx_hidden_Reference.(*link_WorkflowEvent_RequestIdRef); ok { + return x.RequestIdRef + } + } + return nil +} + +func (x *Link_WorkflowEvent) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *Link_WorkflowEvent) SetWorkflowId(v string) { + x.xxx_hidden_WorkflowId = v +} + +func (x *Link_WorkflowEvent) SetRunId(v string) { + x.xxx_hidden_RunId = v +} + +func (x *Link_WorkflowEvent) SetEventRef(v *Link_WorkflowEvent_EventReference) { + if v == nil { + x.xxx_hidden_Reference = nil + return + } + x.xxx_hidden_Reference = &link_WorkflowEvent_EventRef{v} +} + +func (x *Link_WorkflowEvent) SetRequestIdRef(v *Link_WorkflowEvent_RequestIdReference) { + if v == nil { + x.xxx_hidden_Reference = nil + return + } + x.xxx_hidden_Reference = &link_WorkflowEvent_RequestIdRef{v} +} + +func (x *Link_WorkflowEvent) HasReference() bool { + if x == nil { + return false + } + return x.xxx_hidden_Reference != nil +} + +func (x *Link_WorkflowEvent) HasEventRef() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Reference.(*link_WorkflowEvent_EventRef) + return ok +} + +func (x *Link_WorkflowEvent) HasRequestIdRef() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Reference.(*link_WorkflowEvent_RequestIdRef) + return ok +} + +func (x *Link_WorkflowEvent) ClearReference() { + x.xxx_hidden_Reference = nil +} + +func (x *Link_WorkflowEvent) ClearEventRef() { + if _, ok := x.xxx_hidden_Reference.(*link_WorkflowEvent_EventRef); ok { + x.xxx_hidden_Reference = nil + } +} + +func (x *Link_WorkflowEvent) ClearRequestIdRef() { + if _, ok := x.xxx_hidden_Reference.(*link_WorkflowEvent_RequestIdRef); ok { + x.xxx_hidden_Reference = nil + } +} + +const Link_WorkflowEvent_Reference_not_set_case case_Link_WorkflowEvent_Reference = 0 +const Link_WorkflowEvent_EventRef_case case_Link_WorkflowEvent_Reference = 100 +const Link_WorkflowEvent_RequestIdRef_case case_Link_WorkflowEvent_Reference = 101 + +func (x *Link_WorkflowEvent) WhichReference() case_Link_WorkflowEvent_Reference { + if x == nil { + return Link_WorkflowEvent_Reference_not_set_case + } + switch x.xxx_hidden_Reference.(type) { + case *link_WorkflowEvent_EventRef: + return Link_WorkflowEvent_EventRef_case + case *link_WorkflowEvent_RequestIdRef: + return Link_WorkflowEvent_RequestIdRef_case + default: + return Link_WorkflowEvent_Reference_not_set_case + } +} + +type Link_WorkflowEvent_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + WorkflowId string + RunId string + // Additional information about the workflow event. + // Eg: the caller workflow can send the history event details that made the Nexus call. + + // Fields of oneof xxx_hidden_Reference: + EventRef *Link_WorkflowEvent_EventReference + RequestIdRef *Link_WorkflowEvent_RequestIdReference + // -- end of xxx_hidden_Reference +} + +func (b0 Link_WorkflowEvent_builder) Build() *Link_WorkflowEvent { + m0 := &Link_WorkflowEvent{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_WorkflowId = b.WorkflowId + x.xxx_hidden_RunId = b.RunId + if b.EventRef != nil { + x.xxx_hidden_Reference = &link_WorkflowEvent_EventRef{b.EventRef} + } + if b.RequestIdRef != nil { + x.xxx_hidden_Reference = &link_WorkflowEvent_RequestIdRef{b.RequestIdRef} + } + return m0 +} + +type case_Link_WorkflowEvent_Reference protoreflect.FieldNumber + +func (x case_Link_WorkflowEvent_Reference) String() string { + switch x { + case Link_WorkflowEvent_Reference_not_set_case: + return "LinkWorkflowEventReferenceNotSetCase" + case Link_WorkflowEvent_EventRef_case: + return "LinkWorkflowEventEventRefCase" + case Link_WorkflowEvent_RequestIdRef_case: + return "LinkWorkflowEventRequestIdRefCase" + default: + return strconv.Itoa(int(x)) + } + +} + +type isLink_WorkflowEvent_Reference interface { + isLink_WorkflowEvent_Reference() +} + +type link_WorkflowEvent_EventRef struct { + EventRef *Link_WorkflowEvent_EventReference `protobuf:"bytes,100,opt,name=event_ref,json=eventRef,proto3,oneof"` +} + +type link_WorkflowEvent_RequestIdRef struct { + RequestIdRef *Link_WorkflowEvent_RequestIdReference `protobuf:"bytes,101,opt,name=request_id_ref,json=requestIdRef,proto3,oneof"` +} + +func (*link_WorkflowEvent_EventRef) isLink_WorkflowEvent_Reference() {} + +func (*link_WorkflowEvent_RequestIdRef) isLink_WorkflowEvent_Reference() {} + +// A link to a built-in batch job. +// Batch jobs can be used to perform operations on a set of workflows (e.g. terminate, signal, cancel, etc). +// This link can be put on workflow history events generated by actions taken by a batch job. +type Link_BatchJob struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Link_BatchJob) Reset() { + *x = Link_BatchJob{} + mi := &file_temporal_api_common_v1_message_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Link_BatchJob) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Link_BatchJob) ProtoMessage() {} + +func (x *Link_BatchJob) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_common_v1_message_proto_msgTypes[27] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *Link_BatchJob) GetJobId() string { + if x != nil { + return x.xxx_hidden_JobId + } + return "" +} + +func (x *Link_BatchJob) SetJobId(v string) { + x.xxx_hidden_JobId = v +} + +type Link_BatchJob_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + JobId string +} + +func (b0 Link_BatchJob_builder) Build() *Link_BatchJob { + m0 := &Link_BatchJob{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_JobId = b.JobId + return m0 +} + +// EventReference is a direct reference to a history event through the event ID. +type Link_WorkflowEvent_EventReference struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_EventId int64 `protobuf:"varint,1,opt,name=event_id,json=eventId,proto3"` + xxx_hidden_EventType v1.EventType `protobuf:"varint,2,opt,name=event_type,json=eventType,proto3,enum=temporal.api.enums.v1.EventType"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Link_WorkflowEvent_EventReference) Reset() { + *x = Link_WorkflowEvent_EventReference{} + mi := &file_temporal_api_common_v1_message_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Link_WorkflowEvent_EventReference) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Link_WorkflowEvent_EventReference) ProtoMessage() {} + +func (x *Link_WorkflowEvent_EventReference) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_common_v1_message_proto_msgTypes[28] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *Link_WorkflowEvent_EventReference) GetEventId() int64 { + if x != nil { + return x.xxx_hidden_EventId + } + return 0 +} + +func (x *Link_WorkflowEvent_EventReference) GetEventType() v1.EventType { + if x != nil { + return x.xxx_hidden_EventType + } + return v1.EventType(0) +} + +func (x *Link_WorkflowEvent_EventReference) SetEventId(v int64) { + x.xxx_hidden_EventId = v +} + +func (x *Link_WorkflowEvent_EventReference) SetEventType(v v1.EventType) { + x.xxx_hidden_EventType = v +} + +type Link_WorkflowEvent_EventReference_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + EventId int64 + EventType v1.EventType +} + +func (b0 Link_WorkflowEvent_EventReference_builder) Build() *Link_WorkflowEvent_EventReference { + m0 := &Link_WorkflowEvent_EventReference{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_EventId = b.EventId + x.xxx_hidden_EventType = b.EventType + return m0 +} + +// RequestIdReference is a indirect reference to a history event through the request ID. +type Link_WorkflowEvent_RequestIdReference struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3"` + xxx_hidden_EventType v1.EventType `protobuf:"varint,2,opt,name=event_type,json=eventType,proto3,enum=temporal.api.enums.v1.EventType"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Link_WorkflowEvent_RequestIdReference) Reset() { + *x = Link_WorkflowEvent_RequestIdReference{} + mi := &file_temporal_api_common_v1_message_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Link_WorkflowEvent_RequestIdReference) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Link_WorkflowEvent_RequestIdReference) ProtoMessage() {} + +func (x *Link_WorkflowEvent_RequestIdReference) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_common_v1_message_proto_msgTypes[29] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *Link_WorkflowEvent_RequestIdReference) GetRequestId() string { + if x != nil { + return x.xxx_hidden_RequestId + } + return "" +} + +func (x *Link_WorkflowEvent_RequestIdReference) GetEventType() v1.EventType { + if x != nil { + return x.xxx_hidden_EventType + } + return v1.EventType(0) +} + +func (x *Link_WorkflowEvent_RequestIdReference) SetRequestId(v string) { + x.xxx_hidden_RequestId = v +} + +func (x *Link_WorkflowEvent_RequestIdReference) SetEventType(v v1.EventType) { + x.xxx_hidden_EventType = v +} + +type Link_WorkflowEvent_RequestIdReference_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + RequestId string + EventType v1.EventType +} + +func (b0 Link_WorkflowEvent_RequestIdReference_builder) Build() *Link_WorkflowEvent_RequestIdReference { + m0 := &Link_WorkflowEvent_RequestIdReference{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RequestId = b.RequestId + x.xxx_hidden_EventType = b.EventType + return m0 +} + +var File_temporal_api_common_v1_message_proto protoreflect.FileDescriptor + +const file_temporal_api_common_v1_message_proto_rawDesc = "" + + "\n" + + "$temporal/api/common/v1/message.proto\x12\x16temporal.api.common.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\"temporal/api/enums/v1/common.proto\x1a&temporal/api/enums/v1/event_type.proto\x1a!temporal/api/enums/v1/reset.proto\"h\n" + + "\bDataBlob\x12H\n" + + "\rencoding_type\x18\x01 \x01(\x0e2#.temporal.api.enums.v1.EncodingTypeR\fencodingType\x12\x12\n" + + "\x04data\x18\x02 \x01(\fR\x04data\"G\n" + + "\bPayloads\x12;\n" + + "\bpayloads\x18\x01 \x03(\v2\x1f.temporal.api.common.v1.PayloadR\bpayloads\"\xc3\x02\n" + + "\aPayload\x12I\n" + + "\bmetadata\x18\x01 \x03(\v2-.temporal.api.common.v1.Payload.MetadataEntryR\bmetadata\x12\x12\n" + + "\x04data\x18\x02 \x01(\fR\x04data\x12c\n" + + "\x11external_payloads\x18\x03 \x03(\v26.temporal.api.common.v1.Payload.ExternalPayloadDetailsR\x10externalPayloads\x1a;\n" + + "\rMetadataEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\fR\x05value:\x028\x01\x1a7\n" + + "\x16ExternalPayloadDetails\x12\x1d\n" + + "\n" + + "size_bytes\x18\x01 \x01(\x03R\tsizeBytes\"\xd9\x01\n" + + "\x10SearchAttributes\x12b\n" + + "\x0eindexed_fields\x18\x01 \x03(\v2;.temporal.api.common.v1.SearchAttributes.IndexedFieldsEntryR\rindexedFields\x1aa\n" + + "\x12IndexedFieldsEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x125\n" + + "\x05value\x18\x02 \x01(\v2\x1f.temporal.api.common.v1.PayloadR\x05value:\x028\x01\"\xa4\x01\n" + + "\x04Memo\x12@\n" + + "\x06fields\x18\x01 \x03(\v2(.temporal.api.common.v1.Memo.FieldsEntryR\x06fields\x1aZ\n" + + "\vFieldsEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x125\n" + + "\x05value\x18\x02 \x01(\v2\x1f.temporal.api.common.v1.PayloadR\x05value:\x028\x01\"\xa8\x01\n" + + "\x06Header\x12B\n" + + "\x06fields\x18\x01 \x03(\v2*.temporal.api.common.v1.Header.FieldsEntryR\x06fields\x1aZ\n" + + "\vFieldsEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x125\n" + + "\x05value\x18\x02 \x01(\v2\x1f.temporal.api.common.v1.PayloadR\x05value:\x028\x01\"K\n" + + "\x11WorkflowExecution\x12\x1f\n" + + "\vworkflow_id\x18\x01 \x01(\tR\n" + + "workflowId\x12\x15\n" + + "\x06run_id\x18\x02 \x01(\tR\x05runId\"\"\n" + + "\fWorkflowType\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\"\"\n" + + "\fActivityType\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\"\xb0\x02\n" + + "\vRetryPolicy\x12D\n" + + "\x10initial_interval\x18\x01 \x01(\v2\x19.google.protobuf.DurationR\x0finitialInterval\x12/\n" + + "\x13backoff_coefficient\x18\x02 \x01(\x01R\x12backoffCoefficient\x12D\n" + + "\x10maximum_interval\x18\x03 \x01(\v2\x19.google.protobuf.DurationR\x0fmaximumInterval\x12)\n" + + "\x10maximum_attempts\x18\x04 \x01(\x05R\x0fmaximumAttempts\x129\n" + + "\x19non_retryable_error_types\x18\x05 \x03(\tR\x16nonRetryableErrorTypes\"n\n" + + "\x10MeteringMetadata\x12Z\n" + + "*nonfirst_local_activity_execution_attempts\x18\r \x01(\rR&nonfirstLocalActivityExecutionAttempts\"V\n" + + "\x12WorkerVersionStamp\x12\x19\n" + + "\bbuild_id\x18\x01 \x01(\tR\abuildId\x12%\n" + + "\x0euse_versioning\x18\x03 \x01(\bR\ruseVersioning\"\x93\x01\n" + + "\x19WorkerVersionCapabilities\x12\x19\n" + + "\bbuild_id\x18\x01 \x01(\tR\abuildId\x12%\n" + + "\x0euse_versioning\x18\x02 \x01(\bR\ruseVersioning\x124\n" + + "\x16deployment_series_name\x18\x04 \x01(\tR\x14deploymentSeriesName\"\xe7\x03\n" + + "\fResetOptions\x12H\n" + + "\x13first_workflow_task\x18\x01 \x01(\v2\x16.google.protobuf.EmptyH\x00R\x11firstWorkflowTask\x12F\n" + + "\x12last_workflow_task\x18\x02 \x01(\v2\x16.google.protobuf.EmptyH\x00R\x10lastWorkflowTask\x12*\n" + + "\x10workflow_task_id\x18\x03 \x01(\x03H\x00R\x0eworkflowTaskId\x12\x1b\n" + + "\bbuild_id\x18\x04 \x01(\tH\x00R\abuildId\x12Y\n" + + "\x12reset_reapply_type\x18\n" + + " \x01(\x0e2'.temporal.api.enums.v1.ResetReapplyTypeB\x02\x18\x01R\x10resetReapplyType\x12(\n" + + "\x10current_run_only\x18\v \x01(\bR\x0ecurrentRunOnly\x12m\n" + + "\x1breset_reapply_exclude_types\x18\f \x03(\x0e2..temporal.api.enums.v1.ResetReapplyExcludeTypeR\x18resetReapplyExcludeTypesB\b\n" + + "\x06target\"\x9b\x03\n" + + "\bCallback\x12>\n" + + "\x05nexus\x18\x02 \x01(\v2&.temporal.api.common.v1.Callback.NexusH\x00R\x05nexus\x12G\n" + + "\binternal\x18\x03 \x01(\v2).temporal.api.common.v1.Callback.InternalH\x00R\binternal\x122\n" + + "\x05links\x18d \x03(\v2\x1c.temporal.api.common.v1.LinkR\x05links\x1a\xa0\x01\n" + + "\x05Nexus\x12\x10\n" + + "\x03url\x18\x01 \x01(\tR\x03url\x12J\n" + + "\x06header\x18\x02 \x03(\v22.temporal.api.common.v1.Callback.Nexus.HeaderEntryR\x06header\x1a9\n" + + "\vHeaderEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\x1a\x1e\n" + + "\bInternal\x12\x12\n" + + "\x04data\x18\x01 \x01(\fR\x04dataB\t\n" + + "\avariantJ\x04\b\x01\x10\x02\"\xe9\x05\n" + + "\x04Link\x12S\n" + + "\x0eworkflow_event\x18\x01 \x01(\v2*.temporal.api.common.v1.Link.WorkflowEventH\x00R\rworkflowEvent\x12D\n" + + "\tbatch_job\x18\x02 \x01(\v2%.temporal.api.common.v1.Link.BatchJobH\x00R\bbatchJob\x1a\x97\x04\n" + + "\rWorkflowEvent\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x1f\n" + + "\vworkflow_id\x18\x02 \x01(\tR\n" + + "workflowId\x12\x15\n" + + "\x06run_id\x18\x03 \x01(\tR\x05runId\x12X\n" + + "\tevent_ref\x18d \x01(\v29.temporal.api.common.v1.Link.WorkflowEvent.EventReferenceH\x00R\beventRef\x12e\n" + + "\x0erequest_id_ref\x18e \x01(\v2=.temporal.api.common.v1.Link.WorkflowEvent.RequestIdReferenceH\x00R\frequestIdRef\x1al\n" + + "\x0eEventReference\x12\x19\n" + + "\bevent_id\x18\x01 \x01(\x03R\aeventId\x12?\n" + + "\n" + + "event_type\x18\x02 \x01(\x0e2 .temporal.api.enums.v1.EventTypeR\teventType\x1at\n" + + "\x12RequestIdReference\x12\x1d\n" + + "\n" + + "request_id\x18\x01 \x01(\tR\trequestId\x12?\n" + + "\n" + + "event_type\x18\x02 \x01(\x0e2 .temporal.api.enums.v1.EventTypeR\teventTypeB\v\n" + + "\treference\x1a!\n" + + "\bBatchJob\x12\x15\n" + + "\x06job_id\x18\x01 \x01(\tR\x05jobIdB\t\n" + + "\avariant\"y\n" + + "\bPriority\x12!\n" + + "\fpriority_key\x18\x01 \x01(\x05R\vpriorityKey\x12!\n" + + "\ffairness_key\x18\x02 \x01(\tR\vfairnessKey\x12'\n" + + "\x0ffairness_weight\x18\x03 \x01(\x02R\x0efairnessWeight\"N\n" + + "\x0eWorkerSelector\x120\n" + + "\x13worker_instance_key\x18\x01 \x01(\tH\x00R\x11workerInstanceKeyB\n" + + "\n" + + "\bselectorB\x89\x01\n" + + "\x19io.temporal.api.common.v1B\fMessageProtoP\x01Z#go.temporal.io/api/common/v1;common\xaa\x02\x18Temporalio.Api.Common.V1\xea\x02\x1bTemporalio::Api::Common::V1b\x06proto3" + +var file_temporal_api_common_v1_message_proto_msgTypes = make([]protoimpl.MessageInfo, 30) +var file_temporal_api_common_v1_message_proto_goTypes = []any{ + (*DataBlob)(nil), // 0: temporal.api.common.v1.DataBlob + (*Payloads)(nil), // 1: temporal.api.common.v1.Payloads + (*Payload)(nil), // 2: temporal.api.common.v1.Payload + (*SearchAttributes)(nil), // 3: temporal.api.common.v1.SearchAttributes + (*Memo)(nil), // 4: temporal.api.common.v1.Memo + (*Header)(nil), // 5: temporal.api.common.v1.Header + (*WorkflowExecution)(nil), // 6: temporal.api.common.v1.WorkflowExecution + (*WorkflowType)(nil), // 7: temporal.api.common.v1.WorkflowType + (*ActivityType)(nil), // 8: temporal.api.common.v1.ActivityType + (*RetryPolicy)(nil), // 9: temporal.api.common.v1.RetryPolicy + (*MeteringMetadata)(nil), // 10: temporal.api.common.v1.MeteringMetadata + (*WorkerVersionStamp)(nil), // 11: temporal.api.common.v1.WorkerVersionStamp + (*WorkerVersionCapabilities)(nil), // 12: temporal.api.common.v1.WorkerVersionCapabilities + (*ResetOptions)(nil), // 13: temporal.api.common.v1.ResetOptions + (*Callback)(nil), // 14: temporal.api.common.v1.Callback + (*Link)(nil), // 15: temporal.api.common.v1.Link + (*Priority)(nil), // 16: temporal.api.common.v1.Priority + (*WorkerSelector)(nil), // 17: temporal.api.common.v1.WorkerSelector + nil, // 18: temporal.api.common.v1.Payload.MetadataEntry + (*Payload_ExternalPayloadDetails)(nil), // 19: temporal.api.common.v1.Payload.ExternalPayloadDetails + nil, // 20: temporal.api.common.v1.SearchAttributes.IndexedFieldsEntry + nil, // 21: temporal.api.common.v1.Memo.FieldsEntry + nil, // 22: temporal.api.common.v1.Header.FieldsEntry + (*Callback_Nexus)(nil), // 23: temporal.api.common.v1.Callback.Nexus + (*Callback_Internal)(nil), // 24: temporal.api.common.v1.Callback.Internal + nil, // 25: temporal.api.common.v1.Callback.Nexus.HeaderEntry + (*Link_WorkflowEvent)(nil), // 26: temporal.api.common.v1.Link.WorkflowEvent + (*Link_BatchJob)(nil), // 27: temporal.api.common.v1.Link.BatchJob + (*Link_WorkflowEvent_EventReference)(nil), // 28: temporal.api.common.v1.Link.WorkflowEvent.EventReference + (*Link_WorkflowEvent_RequestIdReference)(nil), // 29: temporal.api.common.v1.Link.WorkflowEvent.RequestIdReference + (v1.EncodingType)(0), // 30: temporal.api.enums.v1.EncodingType + (*durationpb.Duration)(nil), // 31: google.protobuf.Duration + (*emptypb.Empty)(nil), // 32: google.protobuf.Empty + (v1.ResetReapplyType)(0), // 33: temporal.api.enums.v1.ResetReapplyType + (v1.ResetReapplyExcludeType)(0), // 34: temporal.api.enums.v1.ResetReapplyExcludeType + (v1.EventType)(0), // 35: temporal.api.enums.v1.EventType +} +var file_temporal_api_common_v1_message_proto_depIdxs = []int32{ + 30, // 0: temporal.api.common.v1.DataBlob.encoding_type:type_name -> temporal.api.enums.v1.EncodingType + 2, // 1: temporal.api.common.v1.Payloads.payloads:type_name -> temporal.api.common.v1.Payload + 18, // 2: temporal.api.common.v1.Payload.metadata:type_name -> temporal.api.common.v1.Payload.MetadataEntry + 19, // 3: temporal.api.common.v1.Payload.external_payloads:type_name -> temporal.api.common.v1.Payload.ExternalPayloadDetails + 20, // 4: temporal.api.common.v1.SearchAttributes.indexed_fields:type_name -> temporal.api.common.v1.SearchAttributes.IndexedFieldsEntry + 21, // 5: temporal.api.common.v1.Memo.fields:type_name -> temporal.api.common.v1.Memo.FieldsEntry + 22, // 6: temporal.api.common.v1.Header.fields:type_name -> temporal.api.common.v1.Header.FieldsEntry + 31, // 7: temporal.api.common.v1.RetryPolicy.initial_interval:type_name -> google.protobuf.Duration + 31, // 8: temporal.api.common.v1.RetryPolicy.maximum_interval:type_name -> google.protobuf.Duration + 32, // 9: temporal.api.common.v1.ResetOptions.first_workflow_task:type_name -> google.protobuf.Empty + 32, // 10: temporal.api.common.v1.ResetOptions.last_workflow_task:type_name -> google.protobuf.Empty + 33, // 11: temporal.api.common.v1.ResetOptions.reset_reapply_type:type_name -> temporal.api.enums.v1.ResetReapplyType + 34, // 12: temporal.api.common.v1.ResetOptions.reset_reapply_exclude_types:type_name -> temporal.api.enums.v1.ResetReapplyExcludeType + 23, // 13: temporal.api.common.v1.Callback.nexus:type_name -> temporal.api.common.v1.Callback.Nexus + 24, // 14: temporal.api.common.v1.Callback.internal:type_name -> temporal.api.common.v1.Callback.Internal + 15, // 15: temporal.api.common.v1.Callback.links:type_name -> temporal.api.common.v1.Link + 26, // 16: temporal.api.common.v1.Link.workflow_event:type_name -> temporal.api.common.v1.Link.WorkflowEvent + 27, // 17: temporal.api.common.v1.Link.batch_job:type_name -> temporal.api.common.v1.Link.BatchJob + 2, // 18: temporal.api.common.v1.SearchAttributes.IndexedFieldsEntry.value:type_name -> temporal.api.common.v1.Payload + 2, // 19: temporal.api.common.v1.Memo.FieldsEntry.value:type_name -> temporal.api.common.v1.Payload + 2, // 20: temporal.api.common.v1.Header.FieldsEntry.value:type_name -> temporal.api.common.v1.Payload + 25, // 21: temporal.api.common.v1.Callback.Nexus.header:type_name -> temporal.api.common.v1.Callback.Nexus.HeaderEntry + 28, // 22: temporal.api.common.v1.Link.WorkflowEvent.event_ref:type_name -> temporal.api.common.v1.Link.WorkflowEvent.EventReference + 29, // 23: temporal.api.common.v1.Link.WorkflowEvent.request_id_ref:type_name -> temporal.api.common.v1.Link.WorkflowEvent.RequestIdReference + 35, // 24: temporal.api.common.v1.Link.WorkflowEvent.EventReference.event_type:type_name -> temporal.api.enums.v1.EventType + 35, // 25: temporal.api.common.v1.Link.WorkflowEvent.RequestIdReference.event_type:type_name -> temporal.api.enums.v1.EventType + 26, // [26:26] is the sub-list for method output_type + 26, // [26:26] is the sub-list for method input_type + 26, // [26:26] is the sub-list for extension type_name + 26, // [26:26] is the sub-list for extension extendee + 0, // [0:26] is the sub-list for field type_name +} + +func init() { file_temporal_api_common_v1_message_proto_init() } +func file_temporal_api_common_v1_message_proto_init() { + if File_temporal_api_common_v1_message_proto != nil { + return + } + file_temporal_api_common_v1_message_proto_msgTypes[13].OneofWrappers = []any{ + (*resetOptions_FirstWorkflowTask)(nil), + (*resetOptions_LastWorkflowTask)(nil), + (*resetOptions_WorkflowTaskId)(nil), + (*resetOptions_BuildId)(nil), + } + file_temporal_api_common_v1_message_proto_msgTypes[14].OneofWrappers = []any{ + (*callback_Nexus_)(nil), + (*callback_Internal_)(nil), + } + file_temporal_api_common_v1_message_proto_msgTypes[15].OneofWrappers = []any{ + (*link_WorkflowEvent_)(nil), + (*link_BatchJob_)(nil), + } + file_temporal_api_common_v1_message_proto_msgTypes[17].OneofWrappers = []any{ + (*workerSelector_WorkerInstanceKey)(nil), + } + file_temporal_api_common_v1_message_proto_msgTypes[26].OneofWrappers = []any{ + (*link_WorkflowEvent_EventRef)(nil), + (*link_WorkflowEvent_RequestIdRef)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_api_common_v1_message_proto_rawDesc), len(file_temporal_api_common_v1_message_proto_rawDesc)), + NumEnums: 0, + NumMessages: 30, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_temporal_api_common_v1_message_proto_goTypes, + DependencyIndexes: file_temporal_api_common_v1_message_proto_depIdxs, + MessageInfos: file_temporal_api_common_v1_message_proto_msgTypes, + }.Build() + File_temporal_api_common_v1_message_proto = out.File + file_temporal_api_common_v1_message_proto_goTypes = nil + file_temporal_api_common_v1_message_proto_depIdxs = nil +} diff --git a/deployment/v1/message.pb.go b/deployment/v1/message.pb.go index 134024b5..9785c1b4 100644 --- a/deployment/v1/message.pb.go +++ b/deployment/v1/message.pb.go @@ -4,11 +4,12 @@ // protoc // source: temporal/api/deployment/v1/message.proto +//go:build !protoopaque + package deployment import ( reflect "reflect" - sync "sync" unsafe "unsafe" v11 "go.temporal.io/api/common/v1" @@ -28,7 +29,7 @@ const ( // Worker Deployment options set in SDK that need to be sent to server in every poll. // Experimental. Worker Deployments are experimental and might significantly change in the future. type WorkerDeploymentOptions struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Required when `worker_versioning_mode==VERSIONED`. DeploymentName string `protobuf:"bytes,1,opt,name=deployment_name,json=deploymentName,proto3" json:"deployment_name,omitempty"` // The Build ID of the worker. Required when `worker_versioning_mode==VERSIONED`, in which case, @@ -67,11 +68,6 @@ func (x *WorkerDeploymentOptions) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use WorkerDeploymentOptions.ProtoReflect.Descriptor instead. -func (*WorkerDeploymentOptions) Descriptor() ([]byte, []int) { - return file_temporal_api_deployment_v1_message_proto_rawDescGZIP(), []int{0} -} - func (x *WorkerDeploymentOptions) GetDeploymentName() string { if x != nil { return x.DeploymentName @@ -93,12 +89,48 @@ func (x *WorkerDeploymentOptions) GetWorkerVersioningMode() v1.WorkerVersioningM return v1.WorkerVersioningMode(0) } +func (x *WorkerDeploymentOptions) SetDeploymentName(v string) { + x.DeploymentName = v +} + +func (x *WorkerDeploymentOptions) SetBuildId(v string) { + x.BuildId = v +} + +func (x *WorkerDeploymentOptions) SetWorkerVersioningMode(v v1.WorkerVersioningMode) { + x.WorkerVersioningMode = v +} + +type WorkerDeploymentOptions_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Required when `worker_versioning_mode==VERSIONED`. + DeploymentName string + // The Build ID of the worker. Required when `worker_versioning_mode==VERSIONED`, in which case, + // the worker will be part of a Deployment Version. + BuildId string + // Required. Versioning Mode for this worker. Must be the same for all workers with the + // same `deployment_name` and `build_id` combination, across all Task Queues. + // When `worker_versioning_mode==VERSIONED`, the worker will be part of a Deployment Version. + WorkerVersioningMode v1.WorkerVersioningMode +} + +func (b0 WorkerDeploymentOptions_builder) Build() *WorkerDeploymentOptions { + m0 := &WorkerDeploymentOptions{} + b, x := &b0, m0 + _, _ = b, x + x.DeploymentName = b.DeploymentName + x.BuildId = b.BuildId + x.WorkerVersioningMode = b.WorkerVersioningMode + return m0 +} + // `Deployment` identifies a deployment of Temporal workers. The combination of deployment series // name + build ID serves as the identifier. User can use `WorkerDeploymentOptions` in their worker // programs to specify these values. // Deprecated. type Deployment struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Different versions of the same worker service/application are related together by having a // shared series name. // Out of all deployments of a series, one can be designated as the current deployment, which @@ -137,11 +169,6 @@ func (x *Deployment) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Deployment.ProtoReflect.Descriptor instead. -func (*Deployment) Descriptor() ([]byte, []int) { - return file_temporal_api_deployment_v1_message_proto_rawDescGZIP(), []int{1} -} - func (x *Deployment) GetSeriesName() string { if x != nil { return x.SeriesName @@ -156,12 +183,43 @@ func (x *Deployment) GetBuildId() string { return "" } +func (x *Deployment) SetSeriesName(v string) { + x.SeriesName = v +} + +func (x *Deployment) SetBuildId(v string) { + x.BuildId = v +} + +type Deployment_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Different versions of the same worker service/application are related together by having a + // shared series name. + // Out of all deployments of a series, one can be designated as the current deployment, which + // receives new workflow executions and new tasks of workflows with + // `VERSIONING_BEHAVIOR_AUTO_UPGRADE` versioning behavior. + SeriesName string + // Build ID changes with each version of the worker when the worker program code and/or config + // changes. + BuildId string +} + +func (b0 Deployment_builder) Build() *Deployment { + m0 := &Deployment{} + b, x := &b0, m0 + _, _ = b, x + x.SeriesName = b.SeriesName + x.BuildId = b.BuildId + return m0 +} + // `DeploymentInfo` holds information about a deployment. Deployment information is tracked // automatically by server as soon as the first poll from that deployment reaches the server. There // can be multiple task queue workers in a single deployment which are listed in this message. // Deprecated. type DeploymentInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Deployment *Deployment `protobuf:"bytes,1,opt,name=deployment,proto3" json:"deployment,omitempty"` CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` TaskQueueInfos []*DeploymentInfo_TaskQueueInfo `protobuf:"bytes,3,rep,name=task_queue_infos,json=taskQueueInfos,proto3" json:"task_queue_infos,omitempty"` @@ -199,11 +257,6 @@ func (x *DeploymentInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeploymentInfo.ProtoReflect.Descriptor instead. -func (*DeploymentInfo) Descriptor() ([]byte, []int) { - return file_temporal_api_deployment_v1_message_proto_rawDescGZIP(), []int{2} -} - func (x *DeploymentInfo) GetDeployment() *Deployment { if x != nil { return x.Deployment @@ -239,10 +292,77 @@ func (x *DeploymentInfo) GetIsCurrent() bool { return false } +func (x *DeploymentInfo) SetDeployment(v *Deployment) { + x.Deployment = v +} + +func (x *DeploymentInfo) SetCreateTime(v *timestamppb.Timestamp) { + x.CreateTime = v +} + +func (x *DeploymentInfo) SetTaskQueueInfos(v []*DeploymentInfo_TaskQueueInfo) { + x.TaskQueueInfos = v +} + +func (x *DeploymentInfo) SetMetadata(v map[string]*v11.Payload) { + x.Metadata = v +} + +func (x *DeploymentInfo) SetIsCurrent(v bool) { + x.IsCurrent = v +} + +func (x *DeploymentInfo) HasDeployment() bool { + if x == nil { + return false + } + return x.Deployment != nil +} + +func (x *DeploymentInfo) HasCreateTime() bool { + if x == nil { + return false + } + return x.CreateTime != nil +} + +func (x *DeploymentInfo) ClearDeployment() { + x.Deployment = nil +} + +func (x *DeploymentInfo) ClearCreateTime() { + x.CreateTime = nil +} + +type DeploymentInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Deployment *Deployment + CreateTime *timestamppb.Timestamp + TaskQueueInfos []*DeploymentInfo_TaskQueueInfo + // A user-defined set of key-values. Can be updated as part of write operations to the + // deployment, such as `SetCurrentDeployment`. + Metadata map[string]*v11.Payload + // If this deployment is the current deployment of its deployment series. + IsCurrent bool +} + +func (b0 DeploymentInfo_builder) Build() *DeploymentInfo { + m0 := &DeploymentInfo{} + b, x := &b0, m0 + _, _ = b, x + x.Deployment = b.Deployment + x.CreateTime = b.CreateTime + x.TaskQueueInfos = b.TaskQueueInfos + x.Metadata = b.Metadata + x.IsCurrent = b.IsCurrent + return m0 +} + // Used as part of Deployment write APIs to update metadata attached to a deployment. // Deprecated. type UpdateDeploymentMetadata struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` UpsertEntries map[string]*v11.Payload `protobuf:"bytes,1,rep,name=upsert_entries,json=upsertEntries,proto3" json:"upsert_entries,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` // List of keys to remove from the metadata. RemoveEntries []string `protobuf:"bytes,2,rep,name=remove_entries,json=removeEntries,proto3" json:"remove_entries,omitempty"` @@ -275,11 +395,6 @@ func (x *UpdateDeploymentMetadata) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UpdateDeploymentMetadata.ProtoReflect.Descriptor instead. -func (*UpdateDeploymentMetadata) Descriptor() ([]byte, []int) { - return file_temporal_api_deployment_v1_message_proto_rawDescGZIP(), []int{3} -} - func (x *UpdateDeploymentMetadata) GetUpsertEntries() map[string]*v11.Payload { if x != nil { return x.UpsertEntries @@ -294,11 +409,36 @@ func (x *UpdateDeploymentMetadata) GetRemoveEntries() []string { return nil } +func (x *UpdateDeploymentMetadata) SetUpsertEntries(v map[string]*v11.Payload) { + x.UpsertEntries = v +} + +func (x *UpdateDeploymentMetadata) SetRemoveEntries(v []string) { + x.RemoveEntries = v +} + +type UpdateDeploymentMetadata_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + UpsertEntries map[string]*v11.Payload + // List of keys to remove from the metadata. + RemoveEntries []string +} + +func (b0 UpdateDeploymentMetadata_builder) Build() *UpdateDeploymentMetadata { + m0 := &UpdateDeploymentMetadata{} + b, x := &b0, m0 + _, _ = b, x + x.UpsertEntries = b.UpsertEntries + x.RemoveEntries = b.RemoveEntries + return m0 +} + // DeploymentListInfo is an abbreviated set of fields from DeploymentInfo that's returned in // ListDeployments. // Deprecated. type DeploymentListInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Deployment *Deployment `protobuf:"bytes,1,opt,name=deployment,proto3" json:"deployment,omitempty"` CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // If this deployment is the current deployment of its deployment series. @@ -332,11 +472,6 @@ func (x *DeploymentListInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeploymentListInfo.ProtoReflect.Descriptor instead. -func (*DeploymentListInfo) Descriptor() ([]byte, []int) { - return file_temporal_api_deployment_v1_message_proto_rawDescGZIP(), []int{4} -} - func (x *DeploymentListInfo) GetDeployment() *Deployment { if x != nil { return x.Deployment @@ -358,6 +493,59 @@ func (x *DeploymentListInfo) GetIsCurrent() bool { return false } +func (x *DeploymentListInfo) SetDeployment(v *Deployment) { + x.Deployment = v +} + +func (x *DeploymentListInfo) SetCreateTime(v *timestamppb.Timestamp) { + x.CreateTime = v +} + +func (x *DeploymentListInfo) SetIsCurrent(v bool) { + x.IsCurrent = v +} + +func (x *DeploymentListInfo) HasDeployment() bool { + if x == nil { + return false + } + return x.Deployment != nil +} + +func (x *DeploymentListInfo) HasCreateTime() bool { + if x == nil { + return false + } + return x.CreateTime != nil +} + +func (x *DeploymentListInfo) ClearDeployment() { + x.Deployment = nil +} + +func (x *DeploymentListInfo) ClearCreateTime() { + x.CreateTime = nil +} + +type DeploymentListInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Deployment *Deployment + CreateTime *timestamppb.Timestamp + // If this deployment is the current deployment of its deployment series. + IsCurrent bool +} + +func (b0 DeploymentListInfo_builder) Build() *DeploymentListInfo { + m0 := &DeploymentListInfo{} + b, x := &b0, m0 + _, _ = b, x + x.Deployment = b.Deployment + x.CreateTime = b.CreateTime + x.IsCurrent = b.IsCurrent + return m0 +} + // A Worker Deployment Version (Version, for short) represents all workers of the same // code and config within a Deployment. Workers of the same Version are expected to // behave exactly the same so when executions move between them there are no @@ -366,7 +554,7 @@ func (x *DeploymentListInfo) GetIsCurrent() bool { // their first poller arrives to the server. // Experimental. Worker Deployments are experimental and might significantly change in the future. type WorkerDeploymentVersionInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Deprecated. Use `deployment_version`. // // Deprecated: Marked as deprecated in temporal/api/deployment/v1/message.proto. @@ -450,11 +638,6 @@ func (x *WorkerDeploymentVersionInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use WorkerDeploymentVersionInfo.ProtoReflect.Descriptor instead. -func (*WorkerDeploymentVersionInfo) Descriptor() ([]byte, []int) { - return file_temporal_api_deployment_v1_message_proto_rawDescGZIP(), []int{5} -} - // Deprecated: Marked as deprecated in temporal/api/deployment/v1/message.proto. func (x *WorkerDeploymentVersionInfo) GetVersion() string { if x != nil { @@ -561,11 +744,263 @@ func (x *WorkerDeploymentVersionInfo) GetMetadata() *VersionMetadata { return nil } +// Deprecated: Marked as deprecated in temporal/api/deployment/v1/message.proto. +func (x *WorkerDeploymentVersionInfo) SetVersion(v string) { + x.Version = v +} + +func (x *WorkerDeploymentVersionInfo) SetStatus(v v1.WorkerDeploymentVersionStatus) { + x.Status = v +} + +func (x *WorkerDeploymentVersionInfo) SetDeploymentVersion(v *WorkerDeploymentVersion) { + x.DeploymentVersion = v +} + +func (x *WorkerDeploymentVersionInfo) SetDeploymentName(v string) { + x.DeploymentName = v +} + +func (x *WorkerDeploymentVersionInfo) SetCreateTime(v *timestamppb.Timestamp) { + x.CreateTime = v +} + +func (x *WorkerDeploymentVersionInfo) SetRoutingChangedTime(v *timestamppb.Timestamp) { + x.RoutingChangedTime = v +} + +func (x *WorkerDeploymentVersionInfo) SetCurrentSinceTime(v *timestamppb.Timestamp) { + x.CurrentSinceTime = v +} + +func (x *WorkerDeploymentVersionInfo) SetRampingSinceTime(v *timestamppb.Timestamp) { + x.RampingSinceTime = v +} + +func (x *WorkerDeploymentVersionInfo) SetFirstActivationTime(v *timestamppb.Timestamp) { + x.FirstActivationTime = v +} + +func (x *WorkerDeploymentVersionInfo) SetLastCurrentTime(v *timestamppb.Timestamp) { + x.LastCurrentTime = v +} + +func (x *WorkerDeploymentVersionInfo) SetLastDeactivationTime(v *timestamppb.Timestamp) { + x.LastDeactivationTime = v +} + +func (x *WorkerDeploymentVersionInfo) SetRampPercentage(v float32) { + x.RampPercentage = v +} + +func (x *WorkerDeploymentVersionInfo) SetTaskQueueInfos(v []*WorkerDeploymentVersionInfo_VersionTaskQueueInfo) { + x.TaskQueueInfos = v +} + +func (x *WorkerDeploymentVersionInfo) SetDrainageInfo(v *VersionDrainageInfo) { + x.DrainageInfo = v +} + +func (x *WorkerDeploymentVersionInfo) SetMetadata(v *VersionMetadata) { + x.Metadata = v +} + +func (x *WorkerDeploymentVersionInfo) HasDeploymentVersion() bool { + if x == nil { + return false + } + return x.DeploymentVersion != nil +} + +func (x *WorkerDeploymentVersionInfo) HasCreateTime() bool { + if x == nil { + return false + } + return x.CreateTime != nil +} + +func (x *WorkerDeploymentVersionInfo) HasRoutingChangedTime() bool { + if x == nil { + return false + } + return x.RoutingChangedTime != nil +} + +func (x *WorkerDeploymentVersionInfo) HasCurrentSinceTime() bool { + if x == nil { + return false + } + return x.CurrentSinceTime != nil +} + +func (x *WorkerDeploymentVersionInfo) HasRampingSinceTime() bool { + if x == nil { + return false + } + return x.RampingSinceTime != nil +} + +func (x *WorkerDeploymentVersionInfo) HasFirstActivationTime() bool { + if x == nil { + return false + } + return x.FirstActivationTime != nil +} + +func (x *WorkerDeploymentVersionInfo) HasLastCurrentTime() bool { + if x == nil { + return false + } + return x.LastCurrentTime != nil +} + +func (x *WorkerDeploymentVersionInfo) HasLastDeactivationTime() bool { + if x == nil { + return false + } + return x.LastDeactivationTime != nil +} + +func (x *WorkerDeploymentVersionInfo) HasDrainageInfo() bool { + if x == nil { + return false + } + return x.DrainageInfo != nil +} + +func (x *WorkerDeploymentVersionInfo) HasMetadata() bool { + if x == nil { + return false + } + return x.Metadata != nil +} + +func (x *WorkerDeploymentVersionInfo) ClearDeploymentVersion() { + x.DeploymentVersion = nil +} + +func (x *WorkerDeploymentVersionInfo) ClearCreateTime() { + x.CreateTime = nil +} + +func (x *WorkerDeploymentVersionInfo) ClearRoutingChangedTime() { + x.RoutingChangedTime = nil +} + +func (x *WorkerDeploymentVersionInfo) ClearCurrentSinceTime() { + x.CurrentSinceTime = nil +} + +func (x *WorkerDeploymentVersionInfo) ClearRampingSinceTime() { + x.RampingSinceTime = nil +} + +func (x *WorkerDeploymentVersionInfo) ClearFirstActivationTime() { + x.FirstActivationTime = nil +} + +func (x *WorkerDeploymentVersionInfo) ClearLastCurrentTime() { + x.LastCurrentTime = nil +} + +func (x *WorkerDeploymentVersionInfo) ClearLastDeactivationTime() { + x.LastDeactivationTime = nil +} + +func (x *WorkerDeploymentVersionInfo) ClearDrainageInfo() { + x.DrainageInfo = nil +} + +func (x *WorkerDeploymentVersionInfo) ClearMetadata() { + x.Metadata = nil +} + +type WorkerDeploymentVersionInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Deprecated. Use `deployment_version`. + // + // Deprecated: Marked as deprecated in temporal/api/deployment/v1/message.proto. + Version string + // The status of the Worker Deployment Version. + Status v1.WorkerDeploymentVersionStatus + // Required. + DeploymentVersion *WorkerDeploymentVersion + DeploymentName string + CreateTime *timestamppb.Timestamp + // Last time `current_since_time`, `ramping_since_time, or `ramp_percentage` of this version changed. + RoutingChangedTime *timestamppb.Timestamp + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: 'Since' captures the field semantics despite being a preposition. --) + // + // Unset if not current. + CurrentSinceTime *timestamppb.Timestamp + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: 'Since' captures the field semantics despite being a preposition. --) + // + // Unset if not ramping. Updated when the version first starts ramping, not on each ramp change. + RampingSinceTime *timestamppb.Timestamp + // Timestamp when this version first became current or ramping. + FirstActivationTime *timestamppb.Timestamp + // Timestamp when this version last became current. + // Can be used to determine whether a version has ever been Current. + LastCurrentTime *timestamppb.Timestamp + // Timestamp when this version last stopped being current or ramping. + // Cleared if the version becomes current or ramping again. + LastDeactivationTime *timestamppb.Timestamp + // Range: [0, 100]. Must be zero if the version is not ramping (i.e. `ramping_since_time` is nil). + // Can be in the range [0, 100] if the version is ramping. + RampPercentage float32 + // All the Task Queues that have ever polled from this Deployment version. + // Deprecated. Use `version_task_queues` in DescribeWorkerDeploymentVersionResponse instead. + TaskQueueInfos []*WorkerDeploymentVersionInfo_VersionTaskQueueInfo + // Helps user determine when it is safe to decommission the workers of this + // Version. Not present when version is current or ramping. + // Current limitations: + // - Not supported for Unversioned mode. + // - Periodically refreshed, may have delays up to few minutes (consult the + // last_checked_time value). + // - Refreshed only when version is not current or ramping AND the status is not + // "drained" yet. + // - Once the status is changed to "drained", it is not changed until the Version + // becomes Current or Ramping again, at which time the drainage info is cleared. + // This means if the Version is "drained" but new workflows are sent to it via + // Pinned Versioning Override, the status does not account for those Pinned-override + // executions and remains "drained". + DrainageInfo *VersionDrainageInfo + // Arbitrary user-provided metadata attached to this version. + Metadata *VersionMetadata +} + +func (b0 WorkerDeploymentVersionInfo_builder) Build() *WorkerDeploymentVersionInfo { + m0 := &WorkerDeploymentVersionInfo{} + b, x := &b0, m0 + _, _ = b, x + x.Version = b.Version + x.Status = b.Status + x.DeploymentVersion = b.DeploymentVersion + x.DeploymentName = b.DeploymentName + x.CreateTime = b.CreateTime + x.RoutingChangedTime = b.RoutingChangedTime + x.CurrentSinceTime = b.CurrentSinceTime + x.RampingSinceTime = b.RampingSinceTime + x.FirstActivationTime = b.FirstActivationTime + x.LastCurrentTime = b.LastCurrentTime + x.LastDeactivationTime = b.LastDeactivationTime + x.RampPercentage = b.RampPercentage + x.TaskQueueInfos = b.TaskQueueInfos + x.DrainageInfo = b.DrainageInfo + x.Metadata = b.Metadata + return m0 +} + // Information about workflow drainage to help the user determine when it is safe // to decommission a Version. Not present while version is current or ramping. // Experimental. Worker Deployments are experimental and might significantly change in the future. type VersionDrainageInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Set to DRAINING when the version first stops accepting new executions (is no longer current or ramping). // Set to DRAINED when no more open pinned workflows exist on this version. Status v1.VersionDrainageStatus `protobuf:"varint,1,opt,name=status,proto3,enum=temporal.api.enums.v1.VersionDrainageStatus" json:"status,omitempty"` @@ -602,11 +1037,6 @@ func (x *VersionDrainageInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use VersionDrainageInfo.ProtoReflect.Descriptor instead. -func (*VersionDrainageInfo) Descriptor() ([]byte, []int) { - return file_temporal_api_deployment_v1_message_proto_rawDescGZIP(), []int{6} -} - func (x *VersionDrainageInfo) GetStatus() v1.VersionDrainageStatus { if x != nil { return x.Status @@ -628,6 +1058,62 @@ func (x *VersionDrainageInfo) GetLastCheckedTime() *timestamppb.Timestamp { return nil } +func (x *VersionDrainageInfo) SetStatus(v v1.VersionDrainageStatus) { + x.Status = v +} + +func (x *VersionDrainageInfo) SetLastChangedTime(v *timestamppb.Timestamp) { + x.LastChangedTime = v +} + +func (x *VersionDrainageInfo) SetLastCheckedTime(v *timestamppb.Timestamp) { + x.LastCheckedTime = v +} + +func (x *VersionDrainageInfo) HasLastChangedTime() bool { + if x == nil { + return false + } + return x.LastChangedTime != nil +} + +func (x *VersionDrainageInfo) HasLastCheckedTime() bool { + if x == nil { + return false + } + return x.LastCheckedTime != nil +} + +func (x *VersionDrainageInfo) ClearLastChangedTime() { + x.LastChangedTime = nil +} + +func (x *VersionDrainageInfo) ClearLastCheckedTime() { + x.LastCheckedTime = nil +} + +type VersionDrainageInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Set to DRAINING when the version first stops accepting new executions (is no longer current or ramping). + // Set to DRAINED when no more open pinned workflows exist on this version. + Status v1.VersionDrainageStatus + // Last time the drainage status changed. + LastChangedTime *timestamppb.Timestamp + // Last time the system checked for drainage of this version. + LastCheckedTime *timestamppb.Timestamp +} + +func (b0 VersionDrainageInfo_builder) Build() *VersionDrainageInfo { + m0 := &VersionDrainageInfo{} + b, x := &b0, m0 + _, _ = b, x + x.Status = b.Status + x.LastChangedTime = b.LastChangedTime + x.LastCheckedTime = b.LastCheckedTime + return m0 +} + // A Worker Deployment (Deployment, for short) represents all workers serving // a shared set of Task Queues. Typically, a Deployment represents one service or // application. @@ -637,7 +1123,7 @@ func (x *VersionDrainageInfo) GetLastCheckedTime() *timestamppb.Timestamp { // first poller arrives to the server. // Experimental. Worker Deployments are experimental and might significantly change in the future. type WorkerDeploymentInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Identifies a Worker Deployment. Must be unique within the namespace. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Deployment Versions that are currently tracked in this Deployment. A DeploymentVersion will be @@ -689,11 +1175,6 @@ func (x *WorkerDeploymentInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use WorkerDeploymentInfo.ProtoReflect.Descriptor instead. -func (*WorkerDeploymentInfo) Descriptor() ([]byte, []int) { - return file_temporal_api_deployment_v1_message_proto_rawDescGZIP(), []int{7} -} - func (x *WorkerDeploymentInfo) GetName() string { if x != nil { return x.Name @@ -743,13 +1224,104 @@ func (x *WorkerDeploymentInfo) GetRoutingConfigUpdateState() v1.RoutingConfigUpd return v1.RoutingConfigUpdateState(0) } +func (x *WorkerDeploymentInfo) SetName(v string) { + x.Name = v +} + +func (x *WorkerDeploymentInfo) SetVersionSummaries(v []*WorkerDeploymentInfo_WorkerDeploymentVersionSummary) { + x.VersionSummaries = v +} + +func (x *WorkerDeploymentInfo) SetCreateTime(v *timestamppb.Timestamp) { + x.CreateTime = v +} + +func (x *WorkerDeploymentInfo) SetRoutingConfig(v *RoutingConfig) { + x.RoutingConfig = v +} + +func (x *WorkerDeploymentInfo) SetLastModifierIdentity(v string) { + x.LastModifierIdentity = v +} + +func (x *WorkerDeploymentInfo) SetManagerIdentity(v string) { + x.ManagerIdentity = v +} + +func (x *WorkerDeploymentInfo) SetRoutingConfigUpdateState(v v1.RoutingConfigUpdateState) { + x.RoutingConfigUpdateState = v +} + +func (x *WorkerDeploymentInfo) HasCreateTime() bool { + if x == nil { + return false + } + return x.CreateTime != nil +} + +func (x *WorkerDeploymentInfo) HasRoutingConfig() bool { + if x == nil { + return false + } + return x.RoutingConfig != nil +} + +func (x *WorkerDeploymentInfo) ClearCreateTime() { + x.CreateTime = nil +} + +func (x *WorkerDeploymentInfo) ClearRoutingConfig() { + x.RoutingConfig = nil +} + +type WorkerDeploymentInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Identifies a Worker Deployment. Must be unique within the namespace. + Name string + // Deployment Versions that are currently tracked in this Deployment. A DeploymentVersion will be + // cleaned up automatically if all the following conditions meet: + // - It does not receive new executions (is not current or ramping) + // - It has no active pollers (see WorkerDeploymentVersionInfo.pollers_status) + // - It is drained (see WorkerDeploymentVersionInfo.drainage_status) + VersionSummaries []*WorkerDeploymentInfo_WorkerDeploymentVersionSummary + CreateTime *timestamppb.Timestamp + RoutingConfig *RoutingConfig + // Identity of the last client who modified the configuration of this Deployment. Set to the + // `identity` value sent by APIs such as `SetWorkerDeploymentCurrentVersion` and + // `SetWorkerDeploymentRampingVersion`. + LastModifierIdentity string + // Identity of the client that has the exclusive right to make changes to this Worker Deployment. + // Empty by default. + // If this is set, clients whose identity does not match `manager_identity` will not be able to make changes + // to this Worker Deployment. They can either set their own identity as the manager or unset the field to proceed. + ManagerIdentity string + // Indicates whether the routing_config has been fully propagated to all + // relevant task queues and their partitions. + RoutingConfigUpdateState v1.RoutingConfigUpdateState +} + +func (b0 WorkerDeploymentInfo_builder) Build() *WorkerDeploymentInfo { + m0 := &WorkerDeploymentInfo{} + b, x := &b0, m0 + _, _ = b, x + x.Name = b.Name + x.VersionSummaries = b.VersionSummaries + x.CreateTime = b.CreateTime + x.RoutingConfig = b.RoutingConfig + x.LastModifierIdentity = b.LastModifierIdentity + x.ManagerIdentity = b.ManagerIdentity + x.RoutingConfigUpdateState = b.RoutingConfigUpdateState + return m0 +} + // A Worker Deployment Version (Version, for short) represents a // version of workers within a Worker Deployment. (see documentation of WorkerDeploymentVersionInfo) // Version records are created in Temporal server automatically when their // first poller arrives to the server. // Experimental. Worker Deployment Versions are experimental and might significantly change in the future. type WorkerDeploymentVersion struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // A unique identifier for this Version within the Deployment it is a part of. // Not necessarily unique within the namespace. // The combination of `deployment_name` and `build_id` uniquely identifies this @@ -786,11 +1358,6 @@ func (x *WorkerDeploymentVersion) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use WorkerDeploymentVersion.ProtoReflect.Descriptor instead. -func (*WorkerDeploymentVersion) Descriptor() ([]byte, []int) { - return file_temporal_api_deployment_v1_message_proto_rawDescGZIP(), []int{8} -} - func (x *WorkerDeploymentVersion) GetBuildId() string { if x != nil { return x.BuildId @@ -805,8 +1372,37 @@ func (x *WorkerDeploymentVersion) GetDeploymentName() string { return "" } +func (x *WorkerDeploymentVersion) SetBuildId(v string) { + x.BuildId = v +} + +func (x *WorkerDeploymentVersion) SetDeploymentName(v string) { + x.DeploymentName = v +} + +type WorkerDeploymentVersion_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // A unique identifier for this Version within the Deployment it is a part of. + // Not necessarily unique within the namespace. + // The combination of `deployment_name` and `build_id` uniquely identifies this + // Version within the namespace, because Deployment names are unique within a namespace. + BuildId string + // Identifies the Worker Deployment this Version is part of. + DeploymentName string +} + +func (b0 WorkerDeploymentVersion_builder) Build() *WorkerDeploymentVersion { + m0 := &WorkerDeploymentVersion{} + b, x := &b0, m0 + _, _ = b, x + x.BuildId = b.BuildId + x.DeploymentName = b.DeploymentName + return m0 +} + type VersionMetadata struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Arbitrary key-values. Entries map[string]*v11.Payload `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` unknownFields protoimpl.UnknownFields @@ -838,11 +1434,6 @@ func (x *VersionMetadata) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use VersionMetadata.ProtoReflect.Descriptor instead. -func (*VersionMetadata) Descriptor() ([]byte, []int) { - return file_temporal_api_deployment_v1_message_proto_rawDescGZIP(), []int{9} -} - func (x *VersionMetadata) GetEntries() map[string]*v11.Payload { if x != nil { return x.Entries @@ -850,8 +1441,27 @@ func (x *VersionMetadata) GetEntries() map[string]*v11.Payload { return nil } +func (x *VersionMetadata) SetEntries(v map[string]*v11.Payload) { + x.Entries = v +} + +type VersionMetadata_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Arbitrary key-values. + Entries map[string]*v11.Payload +} + +func (b0 VersionMetadata_builder) Build() *VersionMetadata { + m0 := &VersionMetadata{} + b, x := &b0, m0 + _, _ = b, x + x.Entries = b.Entries + return m0 +} + type RoutingConfig struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Specifies which Deployment Version should receive new workflow executions and tasks of // existing unversioned or AutoUpgrade workflows. // Nil value means no Version in this Deployment (except Ramping Version, if present) receives traffic other than tasks of previously Pinned workflows. In absence of a Current Version, remaining traffic after any ramp (if set) goes to unversioned workers (those with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.). @@ -916,11 +1526,6 @@ func (x *RoutingConfig) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RoutingConfig.ProtoReflect.Descriptor instead. -func (*RoutingConfig) Descriptor() ([]byte, []int) { - return file_temporal_api_deployment_v1_message_proto_rawDescGZIP(), []int{10} -} - func (x *RoutingConfig) GetCurrentDeploymentVersion() *WorkerDeploymentVersion { if x != nil { return x.CurrentDeploymentVersion @@ -986,10 +1591,159 @@ func (x *RoutingConfig) GetRevisionNumber() int64 { return 0 } +func (x *RoutingConfig) SetCurrentDeploymentVersion(v *WorkerDeploymentVersion) { + x.CurrentDeploymentVersion = v +} + +// Deprecated: Marked as deprecated in temporal/api/deployment/v1/message.proto. +func (x *RoutingConfig) SetCurrentVersion(v string) { + x.CurrentVersion = v +} + +func (x *RoutingConfig) SetRampingDeploymentVersion(v *WorkerDeploymentVersion) { + x.RampingDeploymentVersion = v +} + +// Deprecated: Marked as deprecated in temporal/api/deployment/v1/message.proto. +func (x *RoutingConfig) SetRampingVersion(v string) { + x.RampingVersion = v +} + +func (x *RoutingConfig) SetRampingVersionPercentage(v float32) { + x.RampingVersionPercentage = v +} + +func (x *RoutingConfig) SetCurrentVersionChangedTime(v *timestamppb.Timestamp) { + x.CurrentVersionChangedTime = v +} + +func (x *RoutingConfig) SetRampingVersionChangedTime(v *timestamppb.Timestamp) { + x.RampingVersionChangedTime = v +} + +func (x *RoutingConfig) SetRampingVersionPercentageChangedTime(v *timestamppb.Timestamp) { + x.RampingVersionPercentageChangedTime = v +} + +func (x *RoutingConfig) SetRevisionNumber(v int64) { + x.RevisionNumber = v +} + +func (x *RoutingConfig) HasCurrentDeploymentVersion() bool { + if x == nil { + return false + } + return x.CurrentDeploymentVersion != nil +} + +func (x *RoutingConfig) HasRampingDeploymentVersion() bool { + if x == nil { + return false + } + return x.RampingDeploymentVersion != nil +} + +func (x *RoutingConfig) HasCurrentVersionChangedTime() bool { + if x == nil { + return false + } + return x.CurrentVersionChangedTime != nil +} + +func (x *RoutingConfig) HasRampingVersionChangedTime() bool { + if x == nil { + return false + } + return x.RampingVersionChangedTime != nil +} + +func (x *RoutingConfig) HasRampingVersionPercentageChangedTime() bool { + if x == nil { + return false + } + return x.RampingVersionPercentageChangedTime != nil +} + +func (x *RoutingConfig) ClearCurrentDeploymentVersion() { + x.CurrentDeploymentVersion = nil +} + +func (x *RoutingConfig) ClearRampingDeploymentVersion() { + x.RampingDeploymentVersion = nil +} + +func (x *RoutingConfig) ClearCurrentVersionChangedTime() { + x.CurrentVersionChangedTime = nil +} + +func (x *RoutingConfig) ClearRampingVersionChangedTime() { + x.RampingVersionChangedTime = nil +} + +func (x *RoutingConfig) ClearRampingVersionPercentageChangedTime() { + x.RampingVersionPercentageChangedTime = nil +} + +type RoutingConfig_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Specifies which Deployment Version should receive new workflow executions and tasks of + // existing unversioned or AutoUpgrade workflows. + // Nil value means no Version in this Deployment (except Ramping Version, if present) receives traffic other than tasks of previously Pinned workflows. In absence of a Current Version, remaining traffic after any ramp (if set) goes to unversioned workers (those with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.). + // Note: Current Version is overridden by the Ramping Version for a portion of traffic when ramp percentage + // is non-zero (see `ramping_deployment_version` and `ramping_version_percentage`). + CurrentDeploymentVersion *WorkerDeploymentVersion + // Deprecated. Use `current_deployment_version`. + // + // Deprecated: Marked as deprecated in temporal/api/deployment/v1/message.proto. + CurrentVersion string + // When ramp percentage is non-zero, that portion of traffic is shifted from the Current Version to the Ramping Version. + // Must always be different from `current_deployment_version` unless both are nil. + // Nil value represents all the unversioned workers (those with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.) + // Note that it is possible to ramp from one Version to another Version, or from unversioned + // workers to a particular Version, or from a particular Version to unversioned workers. + RampingDeploymentVersion *WorkerDeploymentVersion + // Deprecated. Use `ramping_deployment_version`. + // + // Deprecated: Marked as deprecated in temporal/api/deployment/v1/message.proto. + RampingVersion string + // Percentage of tasks that are routed to the Ramping Version instead of the Current Version. + // Valid range: [0, 100]. A 100% value means the Ramping Version is receiving full traffic but + // not yet "promoted" to be the Current Version, likely due to pending validations. + // A 0% value means the Ramping Version is receiving no traffic. + RampingVersionPercentage float32 + // Last time current version was changed. + CurrentVersionChangedTime *timestamppb.Timestamp + // Last time ramping version was changed. Not updated if only the ramp percentage changes. + RampingVersionChangedTime *timestamppb.Timestamp + // Last time ramping version percentage was changed. + // If ramping version is changed, this is also updated, even if the percentage stays the same. + RampingVersionPercentageChangedTime *timestamppb.Timestamp + // Monotonically increasing value which is incremented on every mutation + // to any field of this message to achieve eventual consistency between task queues and their partitions. + RevisionNumber int64 +} + +func (b0 RoutingConfig_builder) Build() *RoutingConfig { + m0 := &RoutingConfig{} + b, x := &b0, m0 + _, _ = b, x + x.CurrentDeploymentVersion = b.CurrentDeploymentVersion + x.CurrentVersion = b.CurrentVersion + x.RampingDeploymentVersion = b.RampingDeploymentVersion + x.RampingVersion = b.RampingVersion + x.RampingVersionPercentage = b.RampingVersionPercentage + x.CurrentVersionChangedTime = b.CurrentVersionChangedTime + x.RampingVersionChangedTime = b.RampingVersionChangedTime + x.RampingVersionPercentageChangedTime = b.RampingVersionPercentageChangedTime + x.RevisionNumber = b.RevisionNumber + return m0 +} + // Used as part of WorkflowExecutionStartedEventAttributes to pass down the AutoUpgrade behavior and source deployment version // to a workflow execution whose parent/previous workflow has an AutoUpgrade behavior. type InheritedAutoUpgradeInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The source deployment version of the parent/previous workflow. SourceDeploymentVersion *WorkerDeploymentVersion `protobuf:"bytes,1,opt,name=source_deployment_version,json=sourceDeploymentVersion,proto3" json:"source_deployment_version,omitempty"` // The revision number of the source deployment version of the parent/previous workflow. @@ -1023,11 +1777,6 @@ func (x *InheritedAutoUpgradeInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use InheritedAutoUpgradeInfo.ProtoReflect.Descriptor instead. -func (*InheritedAutoUpgradeInfo) Descriptor() ([]byte, []int) { - return file_temporal_api_deployment_v1_message_proto_rawDescGZIP(), []int{11} -} - func (x *InheritedAutoUpgradeInfo) GetSourceDeploymentVersion() *WorkerDeploymentVersion { if x != nil { return x.SourceDeploymentVersion @@ -1042,8 +1791,45 @@ func (x *InheritedAutoUpgradeInfo) GetSourceDeploymentRevisionNumber() int64 { return 0 } +func (x *InheritedAutoUpgradeInfo) SetSourceDeploymentVersion(v *WorkerDeploymentVersion) { + x.SourceDeploymentVersion = v +} + +func (x *InheritedAutoUpgradeInfo) SetSourceDeploymentRevisionNumber(v int64) { + x.SourceDeploymentRevisionNumber = v +} + +func (x *InheritedAutoUpgradeInfo) HasSourceDeploymentVersion() bool { + if x == nil { + return false + } + return x.SourceDeploymentVersion != nil +} + +func (x *InheritedAutoUpgradeInfo) ClearSourceDeploymentVersion() { + x.SourceDeploymentVersion = nil +} + +type InheritedAutoUpgradeInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The source deployment version of the parent/previous workflow. + SourceDeploymentVersion *WorkerDeploymentVersion + // The revision number of the source deployment version of the parent/previous workflow. + SourceDeploymentRevisionNumber int64 +} + +func (b0 InheritedAutoUpgradeInfo_builder) Build() *InheritedAutoUpgradeInfo { + m0 := &InheritedAutoUpgradeInfo{} + b, x := &b0, m0 + _, _ = b, x + x.SourceDeploymentVersion = b.SourceDeploymentVersion + x.SourceDeploymentRevisionNumber = b.SourceDeploymentRevisionNumber + return m0 +} + type DeploymentInfo_TaskQueueInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Type v1.TaskQueueType `protobuf:"varint,2,opt,name=type,proto3,enum=temporal.api.enums.v1.TaskQueueType" json:"type,omitempty"` // When server saw the first poller for this task queue in this deployment. @@ -1077,11 +1863,6 @@ func (x *DeploymentInfo_TaskQueueInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeploymentInfo_TaskQueueInfo.ProtoReflect.Descriptor instead. -func (*DeploymentInfo_TaskQueueInfo) Descriptor() ([]byte, []int) { - return file_temporal_api_deployment_v1_message_proto_rawDescGZIP(), []int{2, 1} -} - func (x *DeploymentInfo_TaskQueueInfo) GetName() string { if x != nil { return x.Name @@ -1103,8 +1884,50 @@ func (x *DeploymentInfo_TaskQueueInfo) GetFirstPollerTime() *timestamppb.Timesta return nil } +func (x *DeploymentInfo_TaskQueueInfo) SetName(v string) { + x.Name = v +} + +func (x *DeploymentInfo_TaskQueueInfo) SetType(v v1.TaskQueueType) { + x.Type = v +} + +func (x *DeploymentInfo_TaskQueueInfo) SetFirstPollerTime(v *timestamppb.Timestamp) { + x.FirstPollerTime = v +} + +func (x *DeploymentInfo_TaskQueueInfo) HasFirstPollerTime() bool { + if x == nil { + return false + } + return x.FirstPollerTime != nil +} + +func (x *DeploymentInfo_TaskQueueInfo) ClearFirstPollerTime() { + x.FirstPollerTime = nil +} + +type DeploymentInfo_TaskQueueInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string + Type v1.TaskQueueType + // When server saw the first poller for this task queue in this deployment. + FirstPollerTime *timestamppb.Timestamp +} + +func (b0 DeploymentInfo_TaskQueueInfo_builder) Build() *DeploymentInfo_TaskQueueInfo { + m0 := &DeploymentInfo_TaskQueueInfo{} + b, x := &b0, m0 + _, _ = b, x + x.Name = b.Name + x.Type = b.Type + x.FirstPollerTime = b.FirstPollerTime + return m0 +} + type WorkerDeploymentVersionInfo_VersionTaskQueueInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Type v1.TaskQueueType `protobuf:"varint,2,opt,name=type,proto3,enum=temporal.api.enums.v1.TaskQueueType" json:"type,omitempty"` unknownFields protoimpl.UnknownFields @@ -1136,11 +1959,6 @@ func (x *WorkerDeploymentVersionInfo_VersionTaskQueueInfo) ProtoReflect() protor return mi.MessageOf(x) } -// Deprecated: Use WorkerDeploymentVersionInfo_VersionTaskQueueInfo.ProtoReflect.Descriptor instead. -func (*WorkerDeploymentVersionInfo_VersionTaskQueueInfo) Descriptor() ([]byte, []int) { - return file_temporal_api_deployment_v1_message_proto_rawDescGZIP(), []int{5, 0} -} - func (x *WorkerDeploymentVersionInfo_VersionTaskQueueInfo) GetName() string { if x != nil { return x.Name @@ -1155,8 +1973,32 @@ func (x *WorkerDeploymentVersionInfo_VersionTaskQueueInfo) GetType() v1.TaskQueu return v1.TaskQueueType(0) } +func (x *WorkerDeploymentVersionInfo_VersionTaskQueueInfo) SetName(v string) { + x.Name = v +} + +func (x *WorkerDeploymentVersionInfo_VersionTaskQueueInfo) SetType(v v1.TaskQueueType) { + x.Type = v +} + +type WorkerDeploymentVersionInfo_VersionTaskQueueInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string + Type v1.TaskQueueType +} + +func (b0 WorkerDeploymentVersionInfo_VersionTaskQueueInfo_builder) Build() *WorkerDeploymentVersionInfo_VersionTaskQueueInfo { + m0 := &WorkerDeploymentVersionInfo_VersionTaskQueueInfo{} + b, x := &b0, m0 + _, _ = b, x + x.Name = b.Name + x.Type = b.Type + return m0 +} + type WorkerDeploymentInfo_WorkerDeploymentVersionSummary struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Deprecated. Use `deployment_version`. // // Deprecated: Marked as deprecated in temporal/api/deployment/v1/message.proto. @@ -1220,11 +2062,6 @@ func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) ProtoReflect() pro return mi.MessageOf(x) } -// Deprecated: Use WorkerDeploymentInfo_WorkerDeploymentVersionSummary.ProtoReflect.Descriptor instead. -func (*WorkerDeploymentInfo_WorkerDeploymentVersionSummary) Descriptor() ([]byte, []int) { - return file_temporal_api_deployment_v1_message_proto_rawDescGZIP(), []int{7, 0} -} - // Deprecated: Marked as deprecated in temporal/api/deployment/v1/message.proto. func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) GetVersion() string { if x != nil { @@ -1310,6 +2147,212 @@ func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) GetLastDeactivatio return nil } +// Deprecated: Marked as deprecated in temporal/api/deployment/v1/message.proto. +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) SetVersion(v string) { + x.Version = v +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) SetStatus(v v1.WorkerDeploymentVersionStatus) { + x.Status = v +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) SetDeploymentVersion(v *WorkerDeploymentVersion) { + x.DeploymentVersion = v +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) SetCreateTime(v *timestamppb.Timestamp) { + x.CreateTime = v +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) SetDrainageStatus(v v1.VersionDrainageStatus) { + x.DrainageStatus = v +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) SetDrainageInfo(v *VersionDrainageInfo) { + x.DrainageInfo = v +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) SetCurrentSinceTime(v *timestamppb.Timestamp) { + x.CurrentSinceTime = v +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) SetRampingSinceTime(v *timestamppb.Timestamp) { + x.RampingSinceTime = v +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) SetRoutingUpdateTime(v *timestamppb.Timestamp) { + x.RoutingUpdateTime = v +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) SetFirstActivationTime(v *timestamppb.Timestamp) { + x.FirstActivationTime = v +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) SetLastCurrentTime(v *timestamppb.Timestamp) { + x.LastCurrentTime = v +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) SetLastDeactivationTime(v *timestamppb.Timestamp) { + x.LastDeactivationTime = v +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) HasDeploymentVersion() bool { + if x == nil { + return false + } + return x.DeploymentVersion != nil +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) HasCreateTime() bool { + if x == nil { + return false + } + return x.CreateTime != nil +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) HasDrainageInfo() bool { + if x == nil { + return false + } + return x.DrainageInfo != nil +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) HasCurrentSinceTime() bool { + if x == nil { + return false + } + return x.CurrentSinceTime != nil +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) HasRampingSinceTime() bool { + if x == nil { + return false + } + return x.RampingSinceTime != nil +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) HasRoutingUpdateTime() bool { + if x == nil { + return false + } + return x.RoutingUpdateTime != nil +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) HasFirstActivationTime() bool { + if x == nil { + return false + } + return x.FirstActivationTime != nil +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) HasLastCurrentTime() bool { + if x == nil { + return false + } + return x.LastCurrentTime != nil +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) HasLastDeactivationTime() bool { + if x == nil { + return false + } + return x.LastDeactivationTime != nil +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) ClearDeploymentVersion() { + x.DeploymentVersion = nil +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) ClearCreateTime() { + x.CreateTime = nil +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) ClearDrainageInfo() { + x.DrainageInfo = nil +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) ClearCurrentSinceTime() { + x.CurrentSinceTime = nil +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) ClearRampingSinceTime() { + x.RampingSinceTime = nil +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) ClearRoutingUpdateTime() { + x.RoutingUpdateTime = nil +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) ClearFirstActivationTime() { + x.FirstActivationTime = nil +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) ClearLastCurrentTime() { + x.LastCurrentTime = nil +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) ClearLastDeactivationTime() { + x.LastDeactivationTime = nil +} + +type WorkerDeploymentInfo_WorkerDeploymentVersionSummary_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Deprecated. Use `deployment_version`. + // + // Deprecated: Marked as deprecated in temporal/api/deployment/v1/message.proto. + Version string + // The status of the Worker Deployment Version. + Status v1.WorkerDeploymentVersionStatus + // Required. + DeploymentVersion *WorkerDeploymentVersion + CreateTime *timestamppb.Timestamp + // Deprecated. Use `drainage_info` instead. + DrainageStatus v1.VersionDrainageStatus + // Information about workflow drainage to help the user determine when it is safe + // to decommission a Version. Not present while version is current or ramping + DrainageInfo *VersionDrainageInfo + // Unset if not current. + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: 'Since' captures the field semantics despite being a preposition. --) + CurrentSinceTime *timestamppb.Timestamp + // Unset if not ramping. Updated when the version first starts ramping, not on each ramp change. + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: 'Since' captures the field semantics despite being a preposition. --) + RampingSinceTime *timestamppb.Timestamp + // Last time `current_since_time`, `ramping_since_time, or `ramp_percentage` of this version changed. + RoutingUpdateTime *timestamppb.Timestamp + // Timestamp when this version first became current or ramping. + FirstActivationTime *timestamppb.Timestamp + // Timestamp when this version last became current. + // Can be used to determine whether a version has ever been Current. + LastCurrentTime *timestamppb.Timestamp + // Timestamp when this version last stopped being current or ramping. + // Cleared if the version becomes current or ramping again. + LastDeactivationTime *timestamppb.Timestamp +} + +func (b0 WorkerDeploymentInfo_WorkerDeploymentVersionSummary_builder) Build() *WorkerDeploymentInfo_WorkerDeploymentVersionSummary { + m0 := &WorkerDeploymentInfo_WorkerDeploymentVersionSummary{} + b, x := &b0, m0 + _, _ = b, x + x.Version = b.Version + x.Status = b.Status + x.DeploymentVersion = b.DeploymentVersion + x.CreateTime = b.CreateTime + x.DrainageStatus = b.DrainageStatus + x.DrainageInfo = b.DrainageInfo + x.CurrentSinceTime = b.CurrentSinceTime + x.RampingSinceTime = b.RampingSinceTime + x.RoutingUpdateTime = b.RoutingUpdateTime + x.FirstActivationTime = b.FirstActivationTime + x.LastCurrentTime = b.LastCurrentTime + x.LastDeactivationTime = b.LastDeactivationTime + return m0 +} + var File_temporal_api_deployment_v1_message_proto protoreflect.FileDescriptor const file_temporal_api_deployment_v1_message_proto_rawDesc = "" + @@ -1428,18 +2471,6 @@ const file_temporal_api_deployment_v1_message_proto_rawDesc = "" + "!source_deployment_revision_number\x18\x02 \x01(\x03R\x1esourceDeploymentRevisionNumberB\x9d\x01\n" + "\x1dio.temporal.api.deployment.v1B\fMessageProtoP\x01Z+go.temporal.io/api/deployment/v1;deployment\xaa\x02\x1cTemporalio.Api.Deployment.V1\xea\x02\x1fTemporalio::Api::Deployment::V1b\x06proto3" -var ( - file_temporal_api_deployment_v1_message_proto_rawDescOnce sync.Once - file_temporal_api_deployment_v1_message_proto_rawDescData []byte -) - -func file_temporal_api_deployment_v1_message_proto_rawDescGZIP() []byte { - file_temporal_api_deployment_v1_message_proto_rawDescOnce.Do(func() { - file_temporal_api_deployment_v1_message_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_api_deployment_v1_message_proto_rawDesc), len(file_temporal_api_deployment_v1_message_proto_rawDesc))) - }) - return file_temporal_api_deployment_v1_message_proto_rawDescData -} - var file_temporal_api_deployment_v1_message_proto_msgTypes = make([]protoimpl.MessageInfo, 18) var file_temporal_api_deployment_v1_message_proto_goTypes = []any{ (*WorkerDeploymentOptions)(nil), // 0: temporal.api.deployment.v1.WorkerDeploymentOptions diff --git a/deployment/v1/message_protoopaque.pb.go b/deployment/v1/message_protoopaque.pb.go new file mode 100644 index 00000000..665011d7 --- /dev/null +++ b/deployment/v1/message_protoopaque.pb.go @@ -0,0 +1,2456 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// plugins: +// protoc-gen-go +// protoc +// source: temporal/api/deployment/v1/message.proto + +//go:build protoopaque + +package deployment + +import ( + reflect "reflect" + unsafe "unsafe" + + v11 "go.temporal.io/api/common/v1" + v1 "go.temporal.io/api/enums/v1" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Worker Deployment options set in SDK that need to be sent to server in every poll. +// Experimental. Worker Deployments are experimental and might significantly change in the future. +type WorkerDeploymentOptions struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_DeploymentName string `protobuf:"bytes,1,opt,name=deployment_name,json=deploymentName,proto3"` + xxx_hidden_BuildId string `protobuf:"bytes,2,opt,name=build_id,json=buildId,proto3"` + xxx_hidden_WorkerVersioningMode v1.WorkerVersioningMode `protobuf:"varint,3,opt,name=worker_versioning_mode,json=workerVersioningMode,proto3,enum=temporal.api.enums.v1.WorkerVersioningMode"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkerDeploymentOptions) Reset() { + *x = WorkerDeploymentOptions{} + mi := &file_temporal_api_deployment_v1_message_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkerDeploymentOptions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkerDeploymentOptions) ProtoMessage() {} + +func (x *WorkerDeploymentOptions) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_deployment_v1_message_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkerDeploymentOptions) GetDeploymentName() string { + if x != nil { + return x.xxx_hidden_DeploymentName + } + return "" +} + +func (x *WorkerDeploymentOptions) GetBuildId() string { + if x != nil { + return x.xxx_hidden_BuildId + } + return "" +} + +func (x *WorkerDeploymentOptions) GetWorkerVersioningMode() v1.WorkerVersioningMode { + if x != nil { + return x.xxx_hidden_WorkerVersioningMode + } + return v1.WorkerVersioningMode(0) +} + +func (x *WorkerDeploymentOptions) SetDeploymentName(v string) { + x.xxx_hidden_DeploymentName = v +} + +func (x *WorkerDeploymentOptions) SetBuildId(v string) { + x.xxx_hidden_BuildId = v +} + +func (x *WorkerDeploymentOptions) SetWorkerVersioningMode(v v1.WorkerVersioningMode) { + x.xxx_hidden_WorkerVersioningMode = v +} + +type WorkerDeploymentOptions_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Required when `worker_versioning_mode==VERSIONED`. + DeploymentName string + // The Build ID of the worker. Required when `worker_versioning_mode==VERSIONED`, in which case, + // the worker will be part of a Deployment Version. + BuildId string + // Required. Versioning Mode for this worker. Must be the same for all workers with the + // same `deployment_name` and `build_id` combination, across all Task Queues. + // When `worker_versioning_mode==VERSIONED`, the worker will be part of a Deployment Version. + WorkerVersioningMode v1.WorkerVersioningMode +} + +func (b0 WorkerDeploymentOptions_builder) Build() *WorkerDeploymentOptions { + m0 := &WorkerDeploymentOptions{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_DeploymentName = b.DeploymentName + x.xxx_hidden_BuildId = b.BuildId + x.xxx_hidden_WorkerVersioningMode = b.WorkerVersioningMode + return m0 +} + +// `Deployment` identifies a deployment of Temporal workers. The combination of deployment series +// name + build ID serves as the identifier. User can use `WorkerDeploymentOptions` in their worker +// programs to specify these values. +// Deprecated. +type Deployment struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_SeriesName string `protobuf:"bytes,1,opt,name=series_name,json=seriesName,proto3"` + xxx_hidden_BuildId string `protobuf:"bytes,2,opt,name=build_id,json=buildId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Deployment) Reset() { + *x = Deployment{} + mi := &file_temporal_api_deployment_v1_message_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Deployment) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Deployment) ProtoMessage() {} + +func (x *Deployment) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_deployment_v1_message_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *Deployment) GetSeriesName() string { + if x != nil { + return x.xxx_hidden_SeriesName + } + return "" +} + +func (x *Deployment) GetBuildId() string { + if x != nil { + return x.xxx_hidden_BuildId + } + return "" +} + +func (x *Deployment) SetSeriesName(v string) { + x.xxx_hidden_SeriesName = v +} + +func (x *Deployment) SetBuildId(v string) { + x.xxx_hidden_BuildId = v +} + +type Deployment_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Different versions of the same worker service/application are related together by having a + // shared series name. + // Out of all deployments of a series, one can be designated as the current deployment, which + // receives new workflow executions and new tasks of workflows with + // `VERSIONING_BEHAVIOR_AUTO_UPGRADE` versioning behavior. + SeriesName string + // Build ID changes with each version of the worker when the worker program code and/or config + // changes. + BuildId string +} + +func (b0 Deployment_builder) Build() *Deployment { + m0 := &Deployment{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_SeriesName = b.SeriesName + x.xxx_hidden_BuildId = b.BuildId + return m0 +} + +// `DeploymentInfo` holds information about a deployment. Deployment information is tracked +// automatically by server as soon as the first poll from that deployment reaches the server. There +// can be multiple task queue workers in a single deployment which are listed in this message. +// Deprecated. +type DeploymentInfo struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Deployment *Deployment `protobuf:"bytes,1,opt,name=deployment,proto3"` + xxx_hidden_CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3"` + xxx_hidden_TaskQueueInfos *[]*DeploymentInfo_TaskQueueInfo `protobuf:"bytes,3,rep,name=task_queue_infos,json=taskQueueInfos,proto3"` + xxx_hidden_Metadata map[string]*v11.Payload `protobuf:"bytes,4,rep,name=metadata,proto3" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + xxx_hidden_IsCurrent bool `protobuf:"varint,5,opt,name=is_current,json=isCurrent,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeploymentInfo) Reset() { + *x = DeploymentInfo{} + mi := &file_temporal_api_deployment_v1_message_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeploymentInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeploymentInfo) ProtoMessage() {} + +func (x *DeploymentInfo) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_deployment_v1_message_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DeploymentInfo) GetDeployment() *Deployment { + if x != nil { + return x.xxx_hidden_Deployment + } + return nil +} + +func (x *DeploymentInfo) GetCreateTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_CreateTime + } + return nil +} + +func (x *DeploymentInfo) GetTaskQueueInfos() []*DeploymentInfo_TaskQueueInfo { + if x != nil { + if x.xxx_hidden_TaskQueueInfos != nil { + return *x.xxx_hidden_TaskQueueInfos + } + } + return nil +} + +func (x *DeploymentInfo) GetMetadata() map[string]*v11.Payload { + if x != nil { + return x.xxx_hidden_Metadata + } + return nil +} + +func (x *DeploymentInfo) GetIsCurrent() bool { + if x != nil { + return x.xxx_hidden_IsCurrent + } + return false +} + +func (x *DeploymentInfo) SetDeployment(v *Deployment) { + x.xxx_hidden_Deployment = v +} + +func (x *DeploymentInfo) SetCreateTime(v *timestamppb.Timestamp) { + x.xxx_hidden_CreateTime = v +} + +func (x *DeploymentInfo) SetTaskQueueInfos(v []*DeploymentInfo_TaskQueueInfo) { + x.xxx_hidden_TaskQueueInfos = &v +} + +func (x *DeploymentInfo) SetMetadata(v map[string]*v11.Payload) { + x.xxx_hidden_Metadata = v +} + +func (x *DeploymentInfo) SetIsCurrent(v bool) { + x.xxx_hidden_IsCurrent = v +} + +func (x *DeploymentInfo) HasDeployment() bool { + if x == nil { + return false + } + return x.xxx_hidden_Deployment != nil +} + +func (x *DeploymentInfo) HasCreateTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_CreateTime != nil +} + +func (x *DeploymentInfo) ClearDeployment() { + x.xxx_hidden_Deployment = nil +} + +func (x *DeploymentInfo) ClearCreateTime() { + x.xxx_hidden_CreateTime = nil +} + +type DeploymentInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Deployment *Deployment + CreateTime *timestamppb.Timestamp + TaskQueueInfos []*DeploymentInfo_TaskQueueInfo + // A user-defined set of key-values. Can be updated as part of write operations to the + // deployment, such as `SetCurrentDeployment`. + Metadata map[string]*v11.Payload + // If this deployment is the current deployment of its deployment series. + IsCurrent bool +} + +func (b0 DeploymentInfo_builder) Build() *DeploymentInfo { + m0 := &DeploymentInfo{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Deployment = b.Deployment + x.xxx_hidden_CreateTime = b.CreateTime + x.xxx_hidden_TaskQueueInfos = &b.TaskQueueInfos + x.xxx_hidden_Metadata = b.Metadata + x.xxx_hidden_IsCurrent = b.IsCurrent + return m0 +} + +// Used as part of Deployment write APIs to update metadata attached to a deployment. +// Deprecated. +type UpdateDeploymentMetadata struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_UpsertEntries map[string]*v11.Payload `protobuf:"bytes,1,rep,name=upsert_entries,json=upsertEntries,proto3" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + xxx_hidden_RemoveEntries []string `protobuf:"bytes,2,rep,name=remove_entries,json=removeEntries,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateDeploymentMetadata) Reset() { + *x = UpdateDeploymentMetadata{} + mi := &file_temporal_api_deployment_v1_message_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateDeploymentMetadata) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateDeploymentMetadata) ProtoMessage() {} + +func (x *UpdateDeploymentMetadata) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_deployment_v1_message_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UpdateDeploymentMetadata) GetUpsertEntries() map[string]*v11.Payload { + if x != nil { + return x.xxx_hidden_UpsertEntries + } + return nil +} + +func (x *UpdateDeploymentMetadata) GetRemoveEntries() []string { + if x != nil { + return x.xxx_hidden_RemoveEntries + } + return nil +} + +func (x *UpdateDeploymentMetadata) SetUpsertEntries(v map[string]*v11.Payload) { + x.xxx_hidden_UpsertEntries = v +} + +func (x *UpdateDeploymentMetadata) SetRemoveEntries(v []string) { + x.xxx_hidden_RemoveEntries = v +} + +type UpdateDeploymentMetadata_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + UpsertEntries map[string]*v11.Payload + // List of keys to remove from the metadata. + RemoveEntries []string +} + +func (b0 UpdateDeploymentMetadata_builder) Build() *UpdateDeploymentMetadata { + m0 := &UpdateDeploymentMetadata{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_UpsertEntries = b.UpsertEntries + x.xxx_hidden_RemoveEntries = b.RemoveEntries + return m0 +} + +// DeploymentListInfo is an abbreviated set of fields from DeploymentInfo that's returned in +// ListDeployments. +// Deprecated. +type DeploymentListInfo struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Deployment *Deployment `protobuf:"bytes,1,opt,name=deployment,proto3"` + xxx_hidden_CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3"` + xxx_hidden_IsCurrent bool `protobuf:"varint,3,opt,name=is_current,json=isCurrent,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeploymentListInfo) Reset() { + *x = DeploymentListInfo{} + mi := &file_temporal_api_deployment_v1_message_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeploymentListInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeploymentListInfo) ProtoMessage() {} + +func (x *DeploymentListInfo) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_deployment_v1_message_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DeploymentListInfo) GetDeployment() *Deployment { + if x != nil { + return x.xxx_hidden_Deployment + } + return nil +} + +func (x *DeploymentListInfo) GetCreateTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_CreateTime + } + return nil +} + +func (x *DeploymentListInfo) GetIsCurrent() bool { + if x != nil { + return x.xxx_hidden_IsCurrent + } + return false +} + +func (x *DeploymentListInfo) SetDeployment(v *Deployment) { + x.xxx_hidden_Deployment = v +} + +func (x *DeploymentListInfo) SetCreateTime(v *timestamppb.Timestamp) { + x.xxx_hidden_CreateTime = v +} + +func (x *DeploymentListInfo) SetIsCurrent(v bool) { + x.xxx_hidden_IsCurrent = v +} + +func (x *DeploymentListInfo) HasDeployment() bool { + if x == nil { + return false + } + return x.xxx_hidden_Deployment != nil +} + +func (x *DeploymentListInfo) HasCreateTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_CreateTime != nil +} + +func (x *DeploymentListInfo) ClearDeployment() { + x.xxx_hidden_Deployment = nil +} + +func (x *DeploymentListInfo) ClearCreateTime() { + x.xxx_hidden_CreateTime = nil +} + +type DeploymentListInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Deployment *Deployment + CreateTime *timestamppb.Timestamp + // If this deployment is the current deployment of its deployment series. + IsCurrent bool +} + +func (b0 DeploymentListInfo_builder) Build() *DeploymentListInfo { + m0 := &DeploymentListInfo{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Deployment = b.Deployment + x.xxx_hidden_CreateTime = b.CreateTime + x.xxx_hidden_IsCurrent = b.IsCurrent + return m0 +} + +// A Worker Deployment Version (Version, for short) represents all workers of the same +// code and config within a Deployment. Workers of the same Version are expected to +// behave exactly the same so when executions move between them there are no +// non-determinism issues. +// Worker Deployment Versions are created in Temporal server automatically when +// their first poller arrives to the server. +// Experimental. Worker Deployments are experimental and might significantly change in the future. +type WorkerDeploymentVersionInfo struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Version string `protobuf:"bytes,1,opt,name=version,proto3"` + xxx_hidden_Status v1.WorkerDeploymentVersionStatus `protobuf:"varint,14,opt,name=status,proto3,enum=temporal.api.enums.v1.WorkerDeploymentVersionStatus"` + xxx_hidden_DeploymentVersion *WorkerDeploymentVersion `protobuf:"bytes,11,opt,name=deployment_version,json=deploymentVersion,proto3"` + xxx_hidden_DeploymentName string `protobuf:"bytes,2,opt,name=deployment_name,json=deploymentName,proto3"` + xxx_hidden_CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3"` + xxx_hidden_RoutingChangedTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=routing_changed_time,json=routingChangedTime,proto3"` + xxx_hidden_CurrentSinceTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=current_since_time,json=currentSinceTime,proto3"` + xxx_hidden_RampingSinceTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=ramping_since_time,json=rampingSinceTime,proto3"` + xxx_hidden_FirstActivationTime *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=first_activation_time,json=firstActivationTime,proto3"` + xxx_hidden_LastCurrentTime *timestamppb.Timestamp `protobuf:"bytes,15,opt,name=last_current_time,json=lastCurrentTime,proto3"` + xxx_hidden_LastDeactivationTime *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=last_deactivation_time,json=lastDeactivationTime,proto3"` + xxx_hidden_RampPercentage float32 `protobuf:"fixed32,7,opt,name=ramp_percentage,json=rampPercentage,proto3"` + xxx_hidden_TaskQueueInfos *[]*WorkerDeploymentVersionInfo_VersionTaskQueueInfo `protobuf:"bytes,8,rep,name=task_queue_infos,json=taskQueueInfos,proto3"` + xxx_hidden_DrainageInfo *VersionDrainageInfo `protobuf:"bytes,9,opt,name=drainage_info,json=drainageInfo,proto3"` + xxx_hidden_Metadata *VersionMetadata `protobuf:"bytes,10,opt,name=metadata,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkerDeploymentVersionInfo) Reset() { + *x = WorkerDeploymentVersionInfo{} + mi := &file_temporal_api_deployment_v1_message_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkerDeploymentVersionInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkerDeploymentVersionInfo) ProtoMessage() {} + +func (x *WorkerDeploymentVersionInfo) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_deployment_v1_message_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Marked as deprecated in temporal/api/deployment/v1/message.proto. +func (x *WorkerDeploymentVersionInfo) GetVersion() string { + if x != nil { + return x.xxx_hidden_Version + } + return "" +} + +func (x *WorkerDeploymentVersionInfo) GetStatus() v1.WorkerDeploymentVersionStatus { + if x != nil { + return x.xxx_hidden_Status + } + return v1.WorkerDeploymentVersionStatus(0) +} + +func (x *WorkerDeploymentVersionInfo) GetDeploymentVersion() *WorkerDeploymentVersion { + if x != nil { + return x.xxx_hidden_DeploymentVersion + } + return nil +} + +func (x *WorkerDeploymentVersionInfo) GetDeploymentName() string { + if x != nil { + return x.xxx_hidden_DeploymentName + } + return "" +} + +func (x *WorkerDeploymentVersionInfo) GetCreateTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_CreateTime + } + return nil +} + +func (x *WorkerDeploymentVersionInfo) GetRoutingChangedTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_RoutingChangedTime + } + return nil +} + +func (x *WorkerDeploymentVersionInfo) GetCurrentSinceTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_CurrentSinceTime + } + return nil +} + +func (x *WorkerDeploymentVersionInfo) GetRampingSinceTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_RampingSinceTime + } + return nil +} + +func (x *WorkerDeploymentVersionInfo) GetFirstActivationTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_FirstActivationTime + } + return nil +} + +func (x *WorkerDeploymentVersionInfo) GetLastCurrentTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_LastCurrentTime + } + return nil +} + +func (x *WorkerDeploymentVersionInfo) GetLastDeactivationTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_LastDeactivationTime + } + return nil +} + +func (x *WorkerDeploymentVersionInfo) GetRampPercentage() float32 { + if x != nil { + return x.xxx_hidden_RampPercentage + } + return 0 +} + +func (x *WorkerDeploymentVersionInfo) GetTaskQueueInfos() []*WorkerDeploymentVersionInfo_VersionTaskQueueInfo { + if x != nil { + if x.xxx_hidden_TaskQueueInfos != nil { + return *x.xxx_hidden_TaskQueueInfos + } + } + return nil +} + +func (x *WorkerDeploymentVersionInfo) GetDrainageInfo() *VersionDrainageInfo { + if x != nil { + return x.xxx_hidden_DrainageInfo + } + return nil +} + +func (x *WorkerDeploymentVersionInfo) GetMetadata() *VersionMetadata { + if x != nil { + return x.xxx_hidden_Metadata + } + return nil +} + +// Deprecated: Marked as deprecated in temporal/api/deployment/v1/message.proto. +func (x *WorkerDeploymentVersionInfo) SetVersion(v string) { + x.xxx_hidden_Version = v +} + +func (x *WorkerDeploymentVersionInfo) SetStatus(v v1.WorkerDeploymentVersionStatus) { + x.xxx_hidden_Status = v +} + +func (x *WorkerDeploymentVersionInfo) SetDeploymentVersion(v *WorkerDeploymentVersion) { + x.xxx_hidden_DeploymentVersion = v +} + +func (x *WorkerDeploymentVersionInfo) SetDeploymentName(v string) { + x.xxx_hidden_DeploymentName = v +} + +func (x *WorkerDeploymentVersionInfo) SetCreateTime(v *timestamppb.Timestamp) { + x.xxx_hidden_CreateTime = v +} + +func (x *WorkerDeploymentVersionInfo) SetRoutingChangedTime(v *timestamppb.Timestamp) { + x.xxx_hidden_RoutingChangedTime = v +} + +func (x *WorkerDeploymentVersionInfo) SetCurrentSinceTime(v *timestamppb.Timestamp) { + x.xxx_hidden_CurrentSinceTime = v +} + +func (x *WorkerDeploymentVersionInfo) SetRampingSinceTime(v *timestamppb.Timestamp) { + x.xxx_hidden_RampingSinceTime = v +} + +func (x *WorkerDeploymentVersionInfo) SetFirstActivationTime(v *timestamppb.Timestamp) { + x.xxx_hidden_FirstActivationTime = v +} + +func (x *WorkerDeploymentVersionInfo) SetLastCurrentTime(v *timestamppb.Timestamp) { + x.xxx_hidden_LastCurrentTime = v +} + +func (x *WorkerDeploymentVersionInfo) SetLastDeactivationTime(v *timestamppb.Timestamp) { + x.xxx_hidden_LastDeactivationTime = v +} + +func (x *WorkerDeploymentVersionInfo) SetRampPercentage(v float32) { + x.xxx_hidden_RampPercentage = v +} + +func (x *WorkerDeploymentVersionInfo) SetTaskQueueInfos(v []*WorkerDeploymentVersionInfo_VersionTaskQueueInfo) { + x.xxx_hidden_TaskQueueInfos = &v +} + +func (x *WorkerDeploymentVersionInfo) SetDrainageInfo(v *VersionDrainageInfo) { + x.xxx_hidden_DrainageInfo = v +} + +func (x *WorkerDeploymentVersionInfo) SetMetadata(v *VersionMetadata) { + x.xxx_hidden_Metadata = v +} + +func (x *WorkerDeploymentVersionInfo) HasDeploymentVersion() bool { + if x == nil { + return false + } + return x.xxx_hidden_DeploymentVersion != nil +} + +func (x *WorkerDeploymentVersionInfo) HasCreateTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_CreateTime != nil +} + +func (x *WorkerDeploymentVersionInfo) HasRoutingChangedTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_RoutingChangedTime != nil +} + +func (x *WorkerDeploymentVersionInfo) HasCurrentSinceTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_CurrentSinceTime != nil +} + +func (x *WorkerDeploymentVersionInfo) HasRampingSinceTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_RampingSinceTime != nil +} + +func (x *WorkerDeploymentVersionInfo) HasFirstActivationTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_FirstActivationTime != nil +} + +func (x *WorkerDeploymentVersionInfo) HasLastCurrentTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_LastCurrentTime != nil +} + +func (x *WorkerDeploymentVersionInfo) HasLastDeactivationTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_LastDeactivationTime != nil +} + +func (x *WorkerDeploymentVersionInfo) HasDrainageInfo() bool { + if x == nil { + return false + } + return x.xxx_hidden_DrainageInfo != nil +} + +func (x *WorkerDeploymentVersionInfo) HasMetadata() bool { + if x == nil { + return false + } + return x.xxx_hidden_Metadata != nil +} + +func (x *WorkerDeploymentVersionInfo) ClearDeploymentVersion() { + x.xxx_hidden_DeploymentVersion = nil +} + +func (x *WorkerDeploymentVersionInfo) ClearCreateTime() { + x.xxx_hidden_CreateTime = nil +} + +func (x *WorkerDeploymentVersionInfo) ClearRoutingChangedTime() { + x.xxx_hidden_RoutingChangedTime = nil +} + +func (x *WorkerDeploymentVersionInfo) ClearCurrentSinceTime() { + x.xxx_hidden_CurrentSinceTime = nil +} + +func (x *WorkerDeploymentVersionInfo) ClearRampingSinceTime() { + x.xxx_hidden_RampingSinceTime = nil +} + +func (x *WorkerDeploymentVersionInfo) ClearFirstActivationTime() { + x.xxx_hidden_FirstActivationTime = nil +} + +func (x *WorkerDeploymentVersionInfo) ClearLastCurrentTime() { + x.xxx_hidden_LastCurrentTime = nil +} + +func (x *WorkerDeploymentVersionInfo) ClearLastDeactivationTime() { + x.xxx_hidden_LastDeactivationTime = nil +} + +func (x *WorkerDeploymentVersionInfo) ClearDrainageInfo() { + x.xxx_hidden_DrainageInfo = nil +} + +func (x *WorkerDeploymentVersionInfo) ClearMetadata() { + x.xxx_hidden_Metadata = nil +} + +type WorkerDeploymentVersionInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Deprecated. Use `deployment_version`. + // + // Deprecated: Marked as deprecated in temporal/api/deployment/v1/message.proto. + Version string + // The status of the Worker Deployment Version. + Status v1.WorkerDeploymentVersionStatus + // Required. + DeploymentVersion *WorkerDeploymentVersion + DeploymentName string + CreateTime *timestamppb.Timestamp + // Last time `current_since_time`, `ramping_since_time, or `ramp_percentage` of this version changed. + RoutingChangedTime *timestamppb.Timestamp + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: 'Since' captures the field semantics despite being a preposition. --) + // + // Unset if not current. + CurrentSinceTime *timestamppb.Timestamp + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: 'Since' captures the field semantics despite being a preposition. --) + // + // Unset if not ramping. Updated when the version first starts ramping, not on each ramp change. + RampingSinceTime *timestamppb.Timestamp + // Timestamp when this version first became current or ramping. + FirstActivationTime *timestamppb.Timestamp + // Timestamp when this version last became current. + // Can be used to determine whether a version has ever been Current. + LastCurrentTime *timestamppb.Timestamp + // Timestamp when this version last stopped being current or ramping. + // Cleared if the version becomes current or ramping again. + LastDeactivationTime *timestamppb.Timestamp + // Range: [0, 100]. Must be zero if the version is not ramping (i.e. `ramping_since_time` is nil). + // Can be in the range [0, 100] if the version is ramping. + RampPercentage float32 + // All the Task Queues that have ever polled from this Deployment version. + // Deprecated. Use `version_task_queues` in DescribeWorkerDeploymentVersionResponse instead. + TaskQueueInfos []*WorkerDeploymentVersionInfo_VersionTaskQueueInfo + // Helps user determine when it is safe to decommission the workers of this + // Version. Not present when version is current or ramping. + // Current limitations: + // - Not supported for Unversioned mode. + // - Periodically refreshed, may have delays up to few minutes (consult the + // last_checked_time value). + // - Refreshed only when version is not current or ramping AND the status is not + // "drained" yet. + // - Once the status is changed to "drained", it is not changed until the Version + // becomes Current or Ramping again, at which time the drainage info is cleared. + // This means if the Version is "drained" but new workflows are sent to it via + // Pinned Versioning Override, the status does not account for those Pinned-override + // executions and remains "drained". + DrainageInfo *VersionDrainageInfo + // Arbitrary user-provided metadata attached to this version. + Metadata *VersionMetadata +} + +func (b0 WorkerDeploymentVersionInfo_builder) Build() *WorkerDeploymentVersionInfo { + m0 := &WorkerDeploymentVersionInfo{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Version = b.Version + x.xxx_hidden_Status = b.Status + x.xxx_hidden_DeploymentVersion = b.DeploymentVersion + x.xxx_hidden_DeploymentName = b.DeploymentName + x.xxx_hidden_CreateTime = b.CreateTime + x.xxx_hidden_RoutingChangedTime = b.RoutingChangedTime + x.xxx_hidden_CurrentSinceTime = b.CurrentSinceTime + x.xxx_hidden_RampingSinceTime = b.RampingSinceTime + x.xxx_hidden_FirstActivationTime = b.FirstActivationTime + x.xxx_hidden_LastCurrentTime = b.LastCurrentTime + x.xxx_hidden_LastDeactivationTime = b.LastDeactivationTime + x.xxx_hidden_RampPercentage = b.RampPercentage + x.xxx_hidden_TaskQueueInfos = &b.TaskQueueInfos + x.xxx_hidden_DrainageInfo = b.DrainageInfo + x.xxx_hidden_Metadata = b.Metadata + return m0 +} + +// Information about workflow drainage to help the user determine when it is safe +// to decommission a Version. Not present while version is current or ramping. +// Experimental. Worker Deployments are experimental and might significantly change in the future. +type VersionDrainageInfo struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Status v1.VersionDrainageStatus `protobuf:"varint,1,opt,name=status,proto3,enum=temporal.api.enums.v1.VersionDrainageStatus"` + xxx_hidden_LastChangedTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=last_changed_time,json=lastChangedTime,proto3"` + xxx_hidden_LastCheckedTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=last_checked_time,json=lastCheckedTime,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *VersionDrainageInfo) Reset() { + *x = VersionDrainageInfo{} + mi := &file_temporal_api_deployment_v1_message_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *VersionDrainageInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VersionDrainageInfo) ProtoMessage() {} + +func (x *VersionDrainageInfo) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_deployment_v1_message_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *VersionDrainageInfo) GetStatus() v1.VersionDrainageStatus { + if x != nil { + return x.xxx_hidden_Status + } + return v1.VersionDrainageStatus(0) +} + +func (x *VersionDrainageInfo) GetLastChangedTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_LastChangedTime + } + return nil +} + +func (x *VersionDrainageInfo) GetLastCheckedTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_LastCheckedTime + } + return nil +} + +func (x *VersionDrainageInfo) SetStatus(v v1.VersionDrainageStatus) { + x.xxx_hidden_Status = v +} + +func (x *VersionDrainageInfo) SetLastChangedTime(v *timestamppb.Timestamp) { + x.xxx_hidden_LastChangedTime = v +} + +func (x *VersionDrainageInfo) SetLastCheckedTime(v *timestamppb.Timestamp) { + x.xxx_hidden_LastCheckedTime = v +} + +func (x *VersionDrainageInfo) HasLastChangedTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_LastChangedTime != nil +} + +func (x *VersionDrainageInfo) HasLastCheckedTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_LastCheckedTime != nil +} + +func (x *VersionDrainageInfo) ClearLastChangedTime() { + x.xxx_hidden_LastChangedTime = nil +} + +func (x *VersionDrainageInfo) ClearLastCheckedTime() { + x.xxx_hidden_LastCheckedTime = nil +} + +type VersionDrainageInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Set to DRAINING when the version first stops accepting new executions (is no longer current or ramping). + // Set to DRAINED when no more open pinned workflows exist on this version. + Status v1.VersionDrainageStatus + // Last time the drainage status changed. + LastChangedTime *timestamppb.Timestamp + // Last time the system checked for drainage of this version. + LastCheckedTime *timestamppb.Timestamp +} + +func (b0 VersionDrainageInfo_builder) Build() *VersionDrainageInfo { + m0 := &VersionDrainageInfo{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Status = b.Status + x.xxx_hidden_LastChangedTime = b.LastChangedTime + x.xxx_hidden_LastCheckedTime = b.LastCheckedTime + return m0 +} + +// A Worker Deployment (Deployment, for short) represents all workers serving +// a shared set of Task Queues. Typically, a Deployment represents one service or +// application. +// A Deployment contains multiple Deployment Versions, each representing a different +// version of workers. (see documentation of WorkerDeploymentVersionInfo) +// Deployment records are created in Temporal server automatically when their +// first poller arrives to the server. +// Experimental. Worker Deployments are experimental and might significantly change in the future. +type WorkerDeploymentInfo struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Name string `protobuf:"bytes,1,opt,name=name,proto3"` + xxx_hidden_VersionSummaries *[]*WorkerDeploymentInfo_WorkerDeploymentVersionSummary `protobuf:"bytes,2,rep,name=version_summaries,json=versionSummaries,proto3"` + xxx_hidden_CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3"` + xxx_hidden_RoutingConfig *RoutingConfig `protobuf:"bytes,4,opt,name=routing_config,json=routingConfig,proto3"` + xxx_hidden_LastModifierIdentity string `protobuf:"bytes,5,opt,name=last_modifier_identity,json=lastModifierIdentity,proto3"` + xxx_hidden_ManagerIdentity string `protobuf:"bytes,6,opt,name=manager_identity,json=managerIdentity,proto3"` + xxx_hidden_RoutingConfigUpdateState v1.RoutingConfigUpdateState `protobuf:"varint,7,opt,name=routing_config_update_state,json=routingConfigUpdateState,proto3,enum=temporal.api.enums.v1.RoutingConfigUpdateState"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkerDeploymentInfo) Reset() { + *x = WorkerDeploymentInfo{} + mi := &file_temporal_api_deployment_v1_message_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkerDeploymentInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkerDeploymentInfo) ProtoMessage() {} + +func (x *WorkerDeploymentInfo) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_deployment_v1_message_proto_msgTypes[7] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkerDeploymentInfo) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *WorkerDeploymentInfo) GetVersionSummaries() []*WorkerDeploymentInfo_WorkerDeploymentVersionSummary { + if x != nil { + if x.xxx_hidden_VersionSummaries != nil { + return *x.xxx_hidden_VersionSummaries + } + } + return nil +} + +func (x *WorkerDeploymentInfo) GetCreateTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_CreateTime + } + return nil +} + +func (x *WorkerDeploymentInfo) GetRoutingConfig() *RoutingConfig { + if x != nil { + return x.xxx_hidden_RoutingConfig + } + return nil +} + +func (x *WorkerDeploymentInfo) GetLastModifierIdentity() string { + if x != nil { + return x.xxx_hidden_LastModifierIdentity + } + return "" +} + +func (x *WorkerDeploymentInfo) GetManagerIdentity() string { + if x != nil { + return x.xxx_hidden_ManagerIdentity + } + return "" +} + +func (x *WorkerDeploymentInfo) GetRoutingConfigUpdateState() v1.RoutingConfigUpdateState { + if x != nil { + return x.xxx_hidden_RoutingConfigUpdateState + } + return v1.RoutingConfigUpdateState(0) +} + +func (x *WorkerDeploymentInfo) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *WorkerDeploymentInfo) SetVersionSummaries(v []*WorkerDeploymentInfo_WorkerDeploymentVersionSummary) { + x.xxx_hidden_VersionSummaries = &v +} + +func (x *WorkerDeploymentInfo) SetCreateTime(v *timestamppb.Timestamp) { + x.xxx_hidden_CreateTime = v +} + +func (x *WorkerDeploymentInfo) SetRoutingConfig(v *RoutingConfig) { + x.xxx_hidden_RoutingConfig = v +} + +func (x *WorkerDeploymentInfo) SetLastModifierIdentity(v string) { + x.xxx_hidden_LastModifierIdentity = v +} + +func (x *WorkerDeploymentInfo) SetManagerIdentity(v string) { + x.xxx_hidden_ManagerIdentity = v +} + +func (x *WorkerDeploymentInfo) SetRoutingConfigUpdateState(v v1.RoutingConfigUpdateState) { + x.xxx_hidden_RoutingConfigUpdateState = v +} + +func (x *WorkerDeploymentInfo) HasCreateTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_CreateTime != nil +} + +func (x *WorkerDeploymentInfo) HasRoutingConfig() bool { + if x == nil { + return false + } + return x.xxx_hidden_RoutingConfig != nil +} + +func (x *WorkerDeploymentInfo) ClearCreateTime() { + x.xxx_hidden_CreateTime = nil +} + +func (x *WorkerDeploymentInfo) ClearRoutingConfig() { + x.xxx_hidden_RoutingConfig = nil +} + +type WorkerDeploymentInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Identifies a Worker Deployment. Must be unique within the namespace. + Name string + // Deployment Versions that are currently tracked in this Deployment. A DeploymentVersion will be + // cleaned up automatically if all the following conditions meet: + // - It does not receive new executions (is not current or ramping) + // - It has no active pollers (see WorkerDeploymentVersionInfo.pollers_status) + // - It is drained (see WorkerDeploymentVersionInfo.drainage_status) + VersionSummaries []*WorkerDeploymentInfo_WorkerDeploymentVersionSummary + CreateTime *timestamppb.Timestamp + RoutingConfig *RoutingConfig + // Identity of the last client who modified the configuration of this Deployment. Set to the + // `identity` value sent by APIs such as `SetWorkerDeploymentCurrentVersion` and + // `SetWorkerDeploymentRampingVersion`. + LastModifierIdentity string + // Identity of the client that has the exclusive right to make changes to this Worker Deployment. + // Empty by default. + // If this is set, clients whose identity does not match `manager_identity` will not be able to make changes + // to this Worker Deployment. They can either set their own identity as the manager or unset the field to proceed. + ManagerIdentity string + // Indicates whether the routing_config has been fully propagated to all + // relevant task queues and their partitions. + RoutingConfigUpdateState v1.RoutingConfigUpdateState +} + +func (b0 WorkerDeploymentInfo_builder) Build() *WorkerDeploymentInfo { + m0 := &WorkerDeploymentInfo{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Name = b.Name + x.xxx_hidden_VersionSummaries = &b.VersionSummaries + x.xxx_hidden_CreateTime = b.CreateTime + x.xxx_hidden_RoutingConfig = b.RoutingConfig + x.xxx_hidden_LastModifierIdentity = b.LastModifierIdentity + x.xxx_hidden_ManagerIdentity = b.ManagerIdentity + x.xxx_hidden_RoutingConfigUpdateState = b.RoutingConfigUpdateState + return m0 +} + +// A Worker Deployment Version (Version, for short) represents a +// version of workers within a Worker Deployment. (see documentation of WorkerDeploymentVersionInfo) +// Version records are created in Temporal server automatically when their +// first poller arrives to the server. +// Experimental. Worker Deployment Versions are experimental and might significantly change in the future. +type WorkerDeploymentVersion struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_BuildId string `protobuf:"bytes,1,opt,name=build_id,json=buildId,proto3"` + xxx_hidden_DeploymentName string `protobuf:"bytes,2,opt,name=deployment_name,json=deploymentName,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkerDeploymentVersion) Reset() { + *x = WorkerDeploymentVersion{} + mi := &file_temporal_api_deployment_v1_message_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkerDeploymentVersion) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkerDeploymentVersion) ProtoMessage() {} + +func (x *WorkerDeploymentVersion) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_deployment_v1_message_proto_msgTypes[8] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkerDeploymentVersion) GetBuildId() string { + if x != nil { + return x.xxx_hidden_BuildId + } + return "" +} + +func (x *WorkerDeploymentVersion) GetDeploymentName() string { + if x != nil { + return x.xxx_hidden_DeploymentName + } + return "" +} + +func (x *WorkerDeploymentVersion) SetBuildId(v string) { + x.xxx_hidden_BuildId = v +} + +func (x *WorkerDeploymentVersion) SetDeploymentName(v string) { + x.xxx_hidden_DeploymentName = v +} + +type WorkerDeploymentVersion_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // A unique identifier for this Version within the Deployment it is a part of. + // Not necessarily unique within the namespace. + // The combination of `deployment_name` and `build_id` uniquely identifies this + // Version within the namespace, because Deployment names are unique within a namespace. + BuildId string + // Identifies the Worker Deployment this Version is part of. + DeploymentName string +} + +func (b0 WorkerDeploymentVersion_builder) Build() *WorkerDeploymentVersion { + m0 := &WorkerDeploymentVersion{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_BuildId = b.BuildId + x.xxx_hidden_DeploymentName = b.DeploymentName + return m0 +} + +type VersionMetadata struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Entries map[string]*v11.Payload `protobuf:"bytes,1,rep,name=entries,proto3" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *VersionMetadata) Reset() { + *x = VersionMetadata{} + mi := &file_temporal_api_deployment_v1_message_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *VersionMetadata) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VersionMetadata) ProtoMessage() {} + +func (x *VersionMetadata) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_deployment_v1_message_proto_msgTypes[9] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *VersionMetadata) GetEntries() map[string]*v11.Payload { + if x != nil { + return x.xxx_hidden_Entries + } + return nil +} + +func (x *VersionMetadata) SetEntries(v map[string]*v11.Payload) { + x.xxx_hidden_Entries = v +} + +type VersionMetadata_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Arbitrary key-values. + Entries map[string]*v11.Payload +} + +func (b0 VersionMetadata_builder) Build() *VersionMetadata { + m0 := &VersionMetadata{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Entries = b.Entries + return m0 +} + +type RoutingConfig struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_CurrentDeploymentVersion *WorkerDeploymentVersion `protobuf:"bytes,7,opt,name=current_deployment_version,json=currentDeploymentVersion,proto3"` + xxx_hidden_CurrentVersion string `protobuf:"bytes,1,opt,name=current_version,json=currentVersion,proto3"` + xxx_hidden_RampingDeploymentVersion *WorkerDeploymentVersion `protobuf:"bytes,9,opt,name=ramping_deployment_version,json=rampingDeploymentVersion,proto3"` + xxx_hidden_RampingVersion string `protobuf:"bytes,2,opt,name=ramping_version,json=rampingVersion,proto3"` + xxx_hidden_RampingVersionPercentage float32 `protobuf:"fixed32,3,opt,name=ramping_version_percentage,json=rampingVersionPercentage,proto3"` + xxx_hidden_CurrentVersionChangedTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=current_version_changed_time,json=currentVersionChangedTime,proto3"` + xxx_hidden_RampingVersionChangedTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=ramping_version_changed_time,json=rampingVersionChangedTime,proto3"` + xxx_hidden_RampingVersionPercentageChangedTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=ramping_version_percentage_changed_time,json=rampingVersionPercentageChangedTime,proto3"` + xxx_hidden_RevisionNumber int64 `protobuf:"varint,10,opt,name=revision_number,json=revisionNumber,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RoutingConfig) Reset() { + *x = RoutingConfig{} + mi := &file_temporal_api_deployment_v1_message_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RoutingConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RoutingConfig) ProtoMessage() {} + +func (x *RoutingConfig) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_deployment_v1_message_proto_msgTypes[10] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *RoutingConfig) GetCurrentDeploymentVersion() *WorkerDeploymentVersion { + if x != nil { + return x.xxx_hidden_CurrentDeploymentVersion + } + return nil +} + +// Deprecated: Marked as deprecated in temporal/api/deployment/v1/message.proto. +func (x *RoutingConfig) GetCurrentVersion() string { + if x != nil { + return x.xxx_hidden_CurrentVersion + } + return "" +} + +func (x *RoutingConfig) GetRampingDeploymentVersion() *WorkerDeploymentVersion { + if x != nil { + return x.xxx_hidden_RampingDeploymentVersion + } + return nil +} + +// Deprecated: Marked as deprecated in temporal/api/deployment/v1/message.proto. +func (x *RoutingConfig) GetRampingVersion() string { + if x != nil { + return x.xxx_hidden_RampingVersion + } + return "" +} + +func (x *RoutingConfig) GetRampingVersionPercentage() float32 { + if x != nil { + return x.xxx_hidden_RampingVersionPercentage + } + return 0 +} + +func (x *RoutingConfig) GetCurrentVersionChangedTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_CurrentVersionChangedTime + } + return nil +} + +func (x *RoutingConfig) GetRampingVersionChangedTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_RampingVersionChangedTime + } + return nil +} + +func (x *RoutingConfig) GetRampingVersionPercentageChangedTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_RampingVersionPercentageChangedTime + } + return nil +} + +func (x *RoutingConfig) GetRevisionNumber() int64 { + if x != nil { + return x.xxx_hidden_RevisionNumber + } + return 0 +} + +func (x *RoutingConfig) SetCurrentDeploymentVersion(v *WorkerDeploymentVersion) { + x.xxx_hidden_CurrentDeploymentVersion = v +} + +// Deprecated: Marked as deprecated in temporal/api/deployment/v1/message.proto. +func (x *RoutingConfig) SetCurrentVersion(v string) { + x.xxx_hidden_CurrentVersion = v +} + +func (x *RoutingConfig) SetRampingDeploymentVersion(v *WorkerDeploymentVersion) { + x.xxx_hidden_RampingDeploymentVersion = v +} + +// Deprecated: Marked as deprecated in temporal/api/deployment/v1/message.proto. +func (x *RoutingConfig) SetRampingVersion(v string) { + x.xxx_hidden_RampingVersion = v +} + +func (x *RoutingConfig) SetRampingVersionPercentage(v float32) { + x.xxx_hidden_RampingVersionPercentage = v +} + +func (x *RoutingConfig) SetCurrentVersionChangedTime(v *timestamppb.Timestamp) { + x.xxx_hidden_CurrentVersionChangedTime = v +} + +func (x *RoutingConfig) SetRampingVersionChangedTime(v *timestamppb.Timestamp) { + x.xxx_hidden_RampingVersionChangedTime = v +} + +func (x *RoutingConfig) SetRampingVersionPercentageChangedTime(v *timestamppb.Timestamp) { + x.xxx_hidden_RampingVersionPercentageChangedTime = v +} + +func (x *RoutingConfig) SetRevisionNumber(v int64) { + x.xxx_hidden_RevisionNumber = v +} + +func (x *RoutingConfig) HasCurrentDeploymentVersion() bool { + if x == nil { + return false + } + return x.xxx_hidden_CurrentDeploymentVersion != nil +} + +func (x *RoutingConfig) HasRampingDeploymentVersion() bool { + if x == nil { + return false + } + return x.xxx_hidden_RampingDeploymentVersion != nil +} + +func (x *RoutingConfig) HasCurrentVersionChangedTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_CurrentVersionChangedTime != nil +} + +func (x *RoutingConfig) HasRampingVersionChangedTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_RampingVersionChangedTime != nil +} + +func (x *RoutingConfig) HasRampingVersionPercentageChangedTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_RampingVersionPercentageChangedTime != nil +} + +func (x *RoutingConfig) ClearCurrentDeploymentVersion() { + x.xxx_hidden_CurrentDeploymentVersion = nil +} + +func (x *RoutingConfig) ClearRampingDeploymentVersion() { + x.xxx_hidden_RampingDeploymentVersion = nil +} + +func (x *RoutingConfig) ClearCurrentVersionChangedTime() { + x.xxx_hidden_CurrentVersionChangedTime = nil +} + +func (x *RoutingConfig) ClearRampingVersionChangedTime() { + x.xxx_hidden_RampingVersionChangedTime = nil +} + +func (x *RoutingConfig) ClearRampingVersionPercentageChangedTime() { + x.xxx_hidden_RampingVersionPercentageChangedTime = nil +} + +type RoutingConfig_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Specifies which Deployment Version should receive new workflow executions and tasks of + // existing unversioned or AutoUpgrade workflows. + // Nil value means no Version in this Deployment (except Ramping Version, if present) receives traffic other than tasks of previously Pinned workflows. In absence of a Current Version, remaining traffic after any ramp (if set) goes to unversioned workers (those with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.). + // Note: Current Version is overridden by the Ramping Version for a portion of traffic when ramp percentage + // is non-zero (see `ramping_deployment_version` and `ramping_version_percentage`). + CurrentDeploymentVersion *WorkerDeploymentVersion + // Deprecated. Use `current_deployment_version`. + // + // Deprecated: Marked as deprecated in temporal/api/deployment/v1/message.proto. + CurrentVersion string + // When ramp percentage is non-zero, that portion of traffic is shifted from the Current Version to the Ramping Version. + // Must always be different from `current_deployment_version` unless both are nil. + // Nil value represents all the unversioned workers (those with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.) + // Note that it is possible to ramp from one Version to another Version, or from unversioned + // workers to a particular Version, or from a particular Version to unversioned workers. + RampingDeploymentVersion *WorkerDeploymentVersion + // Deprecated. Use `ramping_deployment_version`. + // + // Deprecated: Marked as deprecated in temporal/api/deployment/v1/message.proto. + RampingVersion string + // Percentage of tasks that are routed to the Ramping Version instead of the Current Version. + // Valid range: [0, 100]. A 100% value means the Ramping Version is receiving full traffic but + // not yet "promoted" to be the Current Version, likely due to pending validations. + // A 0% value means the Ramping Version is receiving no traffic. + RampingVersionPercentage float32 + // Last time current version was changed. + CurrentVersionChangedTime *timestamppb.Timestamp + // Last time ramping version was changed. Not updated if only the ramp percentage changes. + RampingVersionChangedTime *timestamppb.Timestamp + // Last time ramping version percentage was changed. + // If ramping version is changed, this is also updated, even if the percentage stays the same. + RampingVersionPercentageChangedTime *timestamppb.Timestamp + // Monotonically increasing value which is incremented on every mutation + // to any field of this message to achieve eventual consistency between task queues and their partitions. + RevisionNumber int64 +} + +func (b0 RoutingConfig_builder) Build() *RoutingConfig { + m0 := &RoutingConfig{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_CurrentDeploymentVersion = b.CurrentDeploymentVersion + x.xxx_hidden_CurrentVersion = b.CurrentVersion + x.xxx_hidden_RampingDeploymentVersion = b.RampingDeploymentVersion + x.xxx_hidden_RampingVersion = b.RampingVersion + x.xxx_hidden_RampingVersionPercentage = b.RampingVersionPercentage + x.xxx_hidden_CurrentVersionChangedTime = b.CurrentVersionChangedTime + x.xxx_hidden_RampingVersionChangedTime = b.RampingVersionChangedTime + x.xxx_hidden_RampingVersionPercentageChangedTime = b.RampingVersionPercentageChangedTime + x.xxx_hidden_RevisionNumber = b.RevisionNumber + return m0 +} + +// Used as part of WorkflowExecutionStartedEventAttributes to pass down the AutoUpgrade behavior and source deployment version +// to a workflow execution whose parent/previous workflow has an AutoUpgrade behavior. +type InheritedAutoUpgradeInfo struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_SourceDeploymentVersion *WorkerDeploymentVersion `protobuf:"bytes,1,opt,name=source_deployment_version,json=sourceDeploymentVersion,proto3"` + xxx_hidden_SourceDeploymentRevisionNumber int64 `protobuf:"varint,2,opt,name=source_deployment_revision_number,json=sourceDeploymentRevisionNumber,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *InheritedAutoUpgradeInfo) Reset() { + *x = InheritedAutoUpgradeInfo{} + mi := &file_temporal_api_deployment_v1_message_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *InheritedAutoUpgradeInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*InheritedAutoUpgradeInfo) ProtoMessage() {} + +func (x *InheritedAutoUpgradeInfo) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_deployment_v1_message_proto_msgTypes[11] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *InheritedAutoUpgradeInfo) GetSourceDeploymentVersion() *WorkerDeploymentVersion { + if x != nil { + return x.xxx_hidden_SourceDeploymentVersion + } + return nil +} + +func (x *InheritedAutoUpgradeInfo) GetSourceDeploymentRevisionNumber() int64 { + if x != nil { + return x.xxx_hidden_SourceDeploymentRevisionNumber + } + return 0 +} + +func (x *InheritedAutoUpgradeInfo) SetSourceDeploymentVersion(v *WorkerDeploymentVersion) { + x.xxx_hidden_SourceDeploymentVersion = v +} + +func (x *InheritedAutoUpgradeInfo) SetSourceDeploymentRevisionNumber(v int64) { + x.xxx_hidden_SourceDeploymentRevisionNumber = v +} + +func (x *InheritedAutoUpgradeInfo) HasSourceDeploymentVersion() bool { + if x == nil { + return false + } + return x.xxx_hidden_SourceDeploymentVersion != nil +} + +func (x *InheritedAutoUpgradeInfo) ClearSourceDeploymentVersion() { + x.xxx_hidden_SourceDeploymentVersion = nil +} + +type InheritedAutoUpgradeInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The source deployment version of the parent/previous workflow. + SourceDeploymentVersion *WorkerDeploymentVersion + // The revision number of the source deployment version of the parent/previous workflow. + SourceDeploymentRevisionNumber int64 +} + +func (b0 InheritedAutoUpgradeInfo_builder) Build() *InheritedAutoUpgradeInfo { + m0 := &InheritedAutoUpgradeInfo{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_SourceDeploymentVersion = b.SourceDeploymentVersion + x.xxx_hidden_SourceDeploymentRevisionNumber = b.SourceDeploymentRevisionNumber + return m0 +} + +type DeploymentInfo_TaskQueueInfo struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Name string `protobuf:"bytes,1,opt,name=name,proto3"` + xxx_hidden_Type v1.TaskQueueType `protobuf:"varint,2,opt,name=type,proto3,enum=temporal.api.enums.v1.TaskQueueType"` + xxx_hidden_FirstPollerTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=first_poller_time,json=firstPollerTime,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeploymentInfo_TaskQueueInfo) Reset() { + *x = DeploymentInfo_TaskQueueInfo{} + mi := &file_temporal_api_deployment_v1_message_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeploymentInfo_TaskQueueInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeploymentInfo_TaskQueueInfo) ProtoMessage() {} + +func (x *DeploymentInfo_TaskQueueInfo) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_deployment_v1_message_proto_msgTypes[13] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DeploymentInfo_TaskQueueInfo) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *DeploymentInfo_TaskQueueInfo) GetType() v1.TaskQueueType { + if x != nil { + return x.xxx_hidden_Type + } + return v1.TaskQueueType(0) +} + +func (x *DeploymentInfo_TaskQueueInfo) GetFirstPollerTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_FirstPollerTime + } + return nil +} + +func (x *DeploymentInfo_TaskQueueInfo) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *DeploymentInfo_TaskQueueInfo) SetType(v v1.TaskQueueType) { + x.xxx_hidden_Type = v +} + +func (x *DeploymentInfo_TaskQueueInfo) SetFirstPollerTime(v *timestamppb.Timestamp) { + x.xxx_hidden_FirstPollerTime = v +} + +func (x *DeploymentInfo_TaskQueueInfo) HasFirstPollerTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_FirstPollerTime != nil +} + +func (x *DeploymentInfo_TaskQueueInfo) ClearFirstPollerTime() { + x.xxx_hidden_FirstPollerTime = nil +} + +type DeploymentInfo_TaskQueueInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string + Type v1.TaskQueueType + // When server saw the first poller for this task queue in this deployment. + FirstPollerTime *timestamppb.Timestamp +} + +func (b0 DeploymentInfo_TaskQueueInfo_builder) Build() *DeploymentInfo_TaskQueueInfo { + m0 := &DeploymentInfo_TaskQueueInfo{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Name = b.Name + x.xxx_hidden_Type = b.Type + x.xxx_hidden_FirstPollerTime = b.FirstPollerTime + return m0 +} + +type WorkerDeploymentVersionInfo_VersionTaskQueueInfo struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Name string `protobuf:"bytes,1,opt,name=name,proto3"` + xxx_hidden_Type v1.TaskQueueType `protobuf:"varint,2,opt,name=type,proto3,enum=temporal.api.enums.v1.TaskQueueType"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkerDeploymentVersionInfo_VersionTaskQueueInfo) Reset() { + *x = WorkerDeploymentVersionInfo_VersionTaskQueueInfo{} + mi := &file_temporal_api_deployment_v1_message_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkerDeploymentVersionInfo_VersionTaskQueueInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkerDeploymentVersionInfo_VersionTaskQueueInfo) ProtoMessage() {} + +func (x *WorkerDeploymentVersionInfo_VersionTaskQueueInfo) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_deployment_v1_message_proto_msgTypes[15] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkerDeploymentVersionInfo_VersionTaskQueueInfo) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *WorkerDeploymentVersionInfo_VersionTaskQueueInfo) GetType() v1.TaskQueueType { + if x != nil { + return x.xxx_hidden_Type + } + return v1.TaskQueueType(0) +} + +func (x *WorkerDeploymentVersionInfo_VersionTaskQueueInfo) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *WorkerDeploymentVersionInfo_VersionTaskQueueInfo) SetType(v v1.TaskQueueType) { + x.xxx_hidden_Type = v +} + +type WorkerDeploymentVersionInfo_VersionTaskQueueInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string + Type v1.TaskQueueType +} + +func (b0 WorkerDeploymentVersionInfo_VersionTaskQueueInfo_builder) Build() *WorkerDeploymentVersionInfo_VersionTaskQueueInfo { + m0 := &WorkerDeploymentVersionInfo_VersionTaskQueueInfo{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Name = b.Name + x.xxx_hidden_Type = b.Type + return m0 +} + +type WorkerDeploymentInfo_WorkerDeploymentVersionSummary struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Version string `protobuf:"bytes,1,opt,name=version,proto3"` + xxx_hidden_Status v1.WorkerDeploymentVersionStatus `protobuf:"varint,11,opt,name=status,proto3,enum=temporal.api.enums.v1.WorkerDeploymentVersionStatus"` + xxx_hidden_DeploymentVersion *WorkerDeploymentVersion `protobuf:"bytes,4,opt,name=deployment_version,json=deploymentVersion,proto3"` + xxx_hidden_CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3"` + xxx_hidden_DrainageStatus v1.VersionDrainageStatus `protobuf:"varint,3,opt,name=drainage_status,json=drainageStatus,proto3,enum=temporal.api.enums.v1.VersionDrainageStatus"` + xxx_hidden_DrainageInfo *VersionDrainageInfo `protobuf:"bytes,5,opt,name=drainage_info,json=drainageInfo,proto3"` + xxx_hidden_CurrentSinceTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=current_since_time,json=currentSinceTime,proto3"` + xxx_hidden_RampingSinceTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=ramping_since_time,json=rampingSinceTime,proto3"` + xxx_hidden_RoutingUpdateTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=routing_update_time,json=routingUpdateTime,proto3"` + xxx_hidden_FirstActivationTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=first_activation_time,json=firstActivationTime,proto3"` + xxx_hidden_LastCurrentTime *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=last_current_time,json=lastCurrentTime,proto3"` + xxx_hidden_LastDeactivationTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=last_deactivation_time,json=lastDeactivationTime,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) Reset() { + *x = WorkerDeploymentInfo_WorkerDeploymentVersionSummary{} + mi := &file_temporal_api_deployment_v1_message_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkerDeploymentInfo_WorkerDeploymentVersionSummary) ProtoMessage() {} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_deployment_v1_message_proto_msgTypes[16] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Marked as deprecated in temporal/api/deployment/v1/message.proto. +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) GetVersion() string { + if x != nil { + return x.xxx_hidden_Version + } + return "" +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) GetStatus() v1.WorkerDeploymentVersionStatus { + if x != nil { + return x.xxx_hidden_Status + } + return v1.WorkerDeploymentVersionStatus(0) +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) GetDeploymentVersion() *WorkerDeploymentVersion { + if x != nil { + return x.xxx_hidden_DeploymentVersion + } + return nil +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) GetCreateTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_CreateTime + } + return nil +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) GetDrainageStatus() v1.VersionDrainageStatus { + if x != nil { + return x.xxx_hidden_DrainageStatus + } + return v1.VersionDrainageStatus(0) +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) GetDrainageInfo() *VersionDrainageInfo { + if x != nil { + return x.xxx_hidden_DrainageInfo + } + return nil +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) GetCurrentSinceTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_CurrentSinceTime + } + return nil +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) GetRampingSinceTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_RampingSinceTime + } + return nil +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) GetRoutingUpdateTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_RoutingUpdateTime + } + return nil +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) GetFirstActivationTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_FirstActivationTime + } + return nil +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) GetLastCurrentTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_LastCurrentTime + } + return nil +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) GetLastDeactivationTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_LastDeactivationTime + } + return nil +} + +// Deprecated: Marked as deprecated in temporal/api/deployment/v1/message.proto. +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) SetVersion(v string) { + x.xxx_hidden_Version = v +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) SetStatus(v v1.WorkerDeploymentVersionStatus) { + x.xxx_hidden_Status = v +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) SetDeploymentVersion(v *WorkerDeploymentVersion) { + x.xxx_hidden_DeploymentVersion = v +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) SetCreateTime(v *timestamppb.Timestamp) { + x.xxx_hidden_CreateTime = v +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) SetDrainageStatus(v v1.VersionDrainageStatus) { + x.xxx_hidden_DrainageStatus = v +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) SetDrainageInfo(v *VersionDrainageInfo) { + x.xxx_hidden_DrainageInfo = v +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) SetCurrentSinceTime(v *timestamppb.Timestamp) { + x.xxx_hidden_CurrentSinceTime = v +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) SetRampingSinceTime(v *timestamppb.Timestamp) { + x.xxx_hidden_RampingSinceTime = v +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) SetRoutingUpdateTime(v *timestamppb.Timestamp) { + x.xxx_hidden_RoutingUpdateTime = v +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) SetFirstActivationTime(v *timestamppb.Timestamp) { + x.xxx_hidden_FirstActivationTime = v +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) SetLastCurrentTime(v *timestamppb.Timestamp) { + x.xxx_hidden_LastCurrentTime = v +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) SetLastDeactivationTime(v *timestamppb.Timestamp) { + x.xxx_hidden_LastDeactivationTime = v +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) HasDeploymentVersion() bool { + if x == nil { + return false + } + return x.xxx_hidden_DeploymentVersion != nil +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) HasCreateTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_CreateTime != nil +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) HasDrainageInfo() bool { + if x == nil { + return false + } + return x.xxx_hidden_DrainageInfo != nil +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) HasCurrentSinceTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_CurrentSinceTime != nil +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) HasRampingSinceTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_RampingSinceTime != nil +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) HasRoutingUpdateTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_RoutingUpdateTime != nil +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) HasFirstActivationTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_FirstActivationTime != nil +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) HasLastCurrentTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_LastCurrentTime != nil +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) HasLastDeactivationTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_LastDeactivationTime != nil +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) ClearDeploymentVersion() { + x.xxx_hidden_DeploymentVersion = nil +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) ClearCreateTime() { + x.xxx_hidden_CreateTime = nil +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) ClearDrainageInfo() { + x.xxx_hidden_DrainageInfo = nil +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) ClearCurrentSinceTime() { + x.xxx_hidden_CurrentSinceTime = nil +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) ClearRampingSinceTime() { + x.xxx_hidden_RampingSinceTime = nil +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) ClearRoutingUpdateTime() { + x.xxx_hidden_RoutingUpdateTime = nil +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) ClearFirstActivationTime() { + x.xxx_hidden_FirstActivationTime = nil +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) ClearLastCurrentTime() { + x.xxx_hidden_LastCurrentTime = nil +} + +func (x *WorkerDeploymentInfo_WorkerDeploymentVersionSummary) ClearLastDeactivationTime() { + x.xxx_hidden_LastDeactivationTime = nil +} + +type WorkerDeploymentInfo_WorkerDeploymentVersionSummary_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Deprecated. Use `deployment_version`. + // + // Deprecated: Marked as deprecated in temporal/api/deployment/v1/message.proto. + Version string + // The status of the Worker Deployment Version. + Status v1.WorkerDeploymentVersionStatus + // Required. + DeploymentVersion *WorkerDeploymentVersion + CreateTime *timestamppb.Timestamp + // Deprecated. Use `drainage_info` instead. + DrainageStatus v1.VersionDrainageStatus + // Information about workflow drainage to help the user determine when it is safe + // to decommission a Version. Not present while version is current or ramping + DrainageInfo *VersionDrainageInfo + // Unset if not current. + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: 'Since' captures the field semantics despite being a preposition. --) + CurrentSinceTime *timestamppb.Timestamp + // Unset if not ramping. Updated when the version first starts ramping, not on each ramp change. + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: 'Since' captures the field semantics despite being a preposition. --) + RampingSinceTime *timestamppb.Timestamp + // Last time `current_since_time`, `ramping_since_time, or `ramp_percentage` of this version changed. + RoutingUpdateTime *timestamppb.Timestamp + // Timestamp when this version first became current or ramping. + FirstActivationTime *timestamppb.Timestamp + // Timestamp when this version last became current. + // Can be used to determine whether a version has ever been Current. + LastCurrentTime *timestamppb.Timestamp + // Timestamp when this version last stopped being current or ramping. + // Cleared if the version becomes current or ramping again. + LastDeactivationTime *timestamppb.Timestamp +} + +func (b0 WorkerDeploymentInfo_WorkerDeploymentVersionSummary_builder) Build() *WorkerDeploymentInfo_WorkerDeploymentVersionSummary { + m0 := &WorkerDeploymentInfo_WorkerDeploymentVersionSummary{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Version = b.Version + x.xxx_hidden_Status = b.Status + x.xxx_hidden_DeploymentVersion = b.DeploymentVersion + x.xxx_hidden_CreateTime = b.CreateTime + x.xxx_hidden_DrainageStatus = b.DrainageStatus + x.xxx_hidden_DrainageInfo = b.DrainageInfo + x.xxx_hidden_CurrentSinceTime = b.CurrentSinceTime + x.xxx_hidden_RampingSinceTime = b.RampingSinceTime + x.xxx_hidden_RoutingUpdateTime = b.RoutingUpdateTime + x.xxx_hidden_FirstActivationTime = b.FirstActivationTime + x.xxx_hidden_LastCurrentTime = b.LastCurrentTime + x.xxx_hidden_LastDeactivationTime = b.LastDeactivationTime + return m0 +} + +var File_temporal_api_deployment_v1_message_proto protoreflect.FileDescriptor + +const file_temporal_api_deployment_v1_message_proto_rawDesc = "" + + "\n" + + "(temporal/api/deployment/v1/message.proto\x12\x1atemporal.api.deployment.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a&temporal/api/enums/v1/deployment.proto\x1a&temporal/api/enums/v1/task_queue.proto\x1a$temporal/api/common/v1/message.proto\"\xc0\x01\n" + + "\x17WorkerDeploymentOptions\x12'\n" + + "\x0fdeployment_name\x18\x01 \x01(\tR\x0edeploymentName\x12\x19\n" + + "\bbuild_id\x18\x02 \x01(\tR\abuildId\x12a\n" + + "\x16worker_versioning_mode\x18\x03 \x01(\x0e2+.temporal.api.enums.v1.WorkerVersioningModeR\x14workerVersioningMode\"H\n" + + "\n" + + "Deployment\x12\x1f\n" + + "\vseries_name\x18\x01 \x01(\tR\n" + + "seriesName\x12\x19\n" + + "\bbuild_id\x18\x02 \x01(\tR\abuildId\"\xf4\x04\n" + + "\x0eDeploymentInfo\x12F\n" + + "\n" + + "deployment\x18\x01 \x01(\v2&.temporal.api.deployment.v1.DeploymentR\n" + + "deployment\x12;\n" + + "\vcreate_time\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\n" + + "createTime\x12b\n" + + "\x10task_queue_infos\x18\x03 \x03(\v28.temporal.api.deployment.v1.DeploymentInfo.TaskQueueInfoR\x0etaskQueueInfos\x12T\n" + + "\bmetadata\x18\x04 \x03(\v28.temporal.api.deployment.v1.DeploymentInfo.MetadataEntryR\bmetadata\x12\x1d\n" + + "\n" + + "is_current\x18\x05 \x01(\bR\tisCurrent\x1a\\\n" + + "\rMetadataEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x125\n" + + "\x05value\x18\x02 \x01(\v2\x1f.temporal.api.common.v1.PayloadR\x05value:\x028\x01\x1a\xa5\x01\n" + + "\rTaskQueueInfo\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x128\n" + + "\x04type\x18\x02 \x01(\x0e2$.temporal.api.enums.v1.TaskQueueTypeR\x04type\x12F\n" + + "\x11first_poller_time\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\x0ffirstPollerTime\"\x94\x02\n" + + "\x18UpdateDeploymentMetadata\x12n\n" + + "\x0eupsert_entries\x18\x01 \x03(\v2G.temporal.api.deployment.v1.UpdateDeploymentMetadata.UpsertEntriesEntryR\rupsertEntries\x12%\n" + + "\x0eremove_entries\x18\x02 \x03(\tR\rremoveEntries\x1aa\n" + + "\x12UpsertEntriesEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x125\n" + + "\x05value\x18\x02 \x01(\v2\x1f.temporal.api.common.v1.PayloadR\x05value:\x028\x01\"\xb8\x01\n" + + "\x12DeploymentListInfo\x12F\n" + + "\n" + + "deployment\x18\x01 \x01(\v2&.temporal.api.deployment.v1.DeploymentR\n" + + "deployment\x12;\n" + + "\vcreate_time\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\n" + + "createTime\x12\x1d\n" + + "\n" + + "is_current\x18\x03 \x01(\bR\tisCurrent\"\xc5\t\n" + + "\x1bWorkerDeploymentVersionInfo\x12\x1c\n" + + "\aversion\x18\x01 \x01(\tB\x02\x18\x01R\aversion\x12L\n" + + "\x06status\x18\x0e \x01(\x0e24.temporal.api.enums.v1.WorkerDeploymentVersionStatusR\x06status\x12b\n" + + "\x12deployment_version\x18\v \x01(\v23.temporal.api.deployment.v1.WorkerDeploymentVersionR\x11deploymentVersion\x12'\n" + + "\x0fdeployment_name\x18\x02 \x01(\tR\x0edeploymentName\x12;\n" + + "\vcreate_time\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\n" + + "createTime\x12L\n" + + "\x14routing_changed_time\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\x12routingChangedTime\x12H\n" + + "\x12current_since_time\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\x10currentSinceTime\x12H\n" + + "\x12ramping_since_time\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\x10rampingSinceTime\x12N\n" + + "\x15first_activation_time\x18\f \x01(\v2\x1a.google.protobuf.TimestampR\x13firstActivationTime\x12F\n" + + "\x11last_current_time\x18\x0f \x01(\v2\x1a.google.protobuf.TimestampR\x0flastCurrentTime\x12P\n" + + "\x16last_deactivation_time\x18\r \x01(\v2\x1a.google.protobuf.TimestampR\x14lastDeactivationTime\x12'\n" + + "\x0framp_percentage\x18\a \x01(\x02R\x0erampPercentage\x12v\n" + + "\x10task_queue_infos\x18\b \x03(\v2L.temporal.api.deployment.v1.WorkerDeploymentVersionInfo.VersionTaskQueueInfoR\x0etaskQueueInfos\x12T\n" + + "\rdrainage_info\x18\t \x01(\v2/.temporal.api.deployment.v1.VersionDrainageInfoR\fdrainageInfo\x12G\n" + + "\bmetadata\x18\n" + + " \x01(\v2+.temporal.api.deployment.v1.VersionMetadataR\bmetadata\x1ad\n" + + "\x14VersionTaskQueueInfo\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x128\n" + + "\x04type\x18\x02 \x01(\x0e2$.temporal.api.enums.v1.TaskQueueTypeR\x04type\"\xeb\x01\n" + + "\x13VersionDrainageInfo\x12D\n" + + "\x06status\x18\x01 \x01(\x0e2,.temporal.api.enums.v1.VersionDrainageStatusR\x06status\x12F\n" + + "\x11last_changed_time\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\x0flastChangedTime\x12F\n" + + "\x11last_checked_time\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\x0flastCheckedTime\"\xaf\v\n" + + "\x14WorkerDeploymentInfo\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12|\n" + + "\x11version_summaries\x18\x02 \x03(\v2O.temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummaryR\x10versionSummaries\x12;\n" + + "\vcreate_time\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\n" + + "createTime\x12P\n" + + "\x0erouting_config\x18\x04 \x01(\v2).temporal.api.deployment.v1.RoutingConfigR\rroutingConfig\x124\n" + + "\x16last_modifier_identity\x18\x05 \x01(\tR\x14lastModifierIdentity\x12)\n" + + "\x10manager_identity\x18\x06 \x01(\tR\x0fmanagerIdentity\x12n\n" + + "\x1brouting_config_update_state\x18\a \x01(\x0e2/.temporal.api.enums.v1.RoutingConfigUpdateStateR\x18routingConfigUpdateState\x1a\xa4\a\n" + + "\x1eWorkerDeploymentVersionSummary\x12\x1c\n" + + "\aversion\x18\x01 \x01(\tB\x02\x18\x01R\aversion\x12L\n" + + "\x06status\x18\v \x01(\x0e24.temporal.api.enums.v1.WorkerDeploymentVersionStatusR\x06status\x12b\n" + + "\x12deployment_version\x18\x04 \x01(\v23.temporal.api.deployment.v1.WorkerDeploymentVersionR\x11deploymentVersion\x12;\n" + + "\vcreate_time\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\n" + + "createTime\x12U\n" + + "\x0fdrainage_status\x18\x03 \x01(\x0e2,.temporal.api.enums.v1.VersionDrainageStatusR\x0edrainageStatus\x12T\n" + + "\rdrainage_info\x18\x05 \x01(\v2/.temporal.api.deployment.v1.VersionDrainageInfoR\fdrainageInfo\x12H\n" + + "\x12current_since_time\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\x10currentSinceTime\x12H\n" + + "\x12ramping_since_time\x18\a \x01(\v2\x1a.google.protobuf.TimestampR\x10rampingSinceTime\x12J\n" + + "\x13routing_update_time\x18\b \x01(\v2\x1a.google.protobuf.TimestampR\x11routingUpdateTime\x12N\n" + + "\x15first_activation_time\x18\t \x01(\v2\x1a.google.protobuf.TimestampR\x13firstActivationTime\x12F\n" + + "\x11last_current_time\x18\f \x01(\v2\x1a.google.protobuf.TimestampR\x0flastCurrentTime\x12P\n" + + "\x16last_deactivation_time\x18\n" + + " \x01(\v2\x1a.google.protobuf.TimestampR\x14lastDeactivationTime\"]\n" + + "\x17WorkerDeploymentVersion\x12\x19\n" + + "\bbuild_id\x18\x01 \x01(\tR\abuildId\x12'\n" + + "\x0fdeployment_name\x18\x02 \x01(\tR\x0edeploymentName\"\xc2\x01\n" + + "\x0fVersionMetadata\x12R\n" + + "\aentries\x18\x01 \x03(\v28.temporal.api.deployment.v1.VersionMetadata.EntriesEntryR\aentries\x1a[\n" + + "\fEntriesEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x125\n" + + "\x05value\x18\x02 \x01(\v2\x1f.temporal.api.common.v1.PayloadR\x05value:\x028\x01\"\xe2\x05\n" + + "\rRoutingConfig\x12q\n" + + "\x1acurrent_deployment_version\x18\a \x01(\v23.temporal.api.deployment.v1.WorkerDeploymentVersionR\x18currentDeploymentVersion\x12+\n" + + "\x0fcurrent_version\x18\x01 \x01(\tB\x02\x18\x01R\x0ecurrentVersion\x12q\n" + + "\x1aramping_deployment_version\x18\t \x01(\v23.temporal.api.deployment.v1.WorkerDeploymentVersionR\x18rampingDeploymentVersion\x12+\n" + + "\x0framping_version\x18\x02 \x01(\tB\x02\x18\x01R\x0erampingVersion\x12<\n" + + "\x1aramping_version_percentage\x18\x03 \x01(\x02R\x18rampingVersionPercentage\x12[\n" + + "\x1ccurrent_version_changed_time\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\x19currentVersionChangedTime\x12[\n" + + "\x1cramping_version_changed_time\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\x19rampingVersionChangedTime\x12p\n" + + "'ramping_version_percentage_changed_time\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR#rampingVersionPercentageChangedTime\x12'\n" + + "\x0frevision_number\x18\n" + + " \x01(\x03R\x0erevisionNumber\"\xd6\x01\n" + + "\x18InheritedAutoUpgradeInfo\x12o\n" + + "\x19source_deployment_version\x18\x01 \x01(\v23.temporal.api.deployment.v1.WorkerDeploymentVersionR\x17sourceDeploymentVersion\x12I\n" + + "!source_deployment_revision_number\x18\x02 \x01(\x03R\x1esourceDeploymentRevisionNumberB\x9d\x01\n" + + "\x1dio.temporal.api.deployment.v1B\fMessageProtoP\x01Z+go.temporal.io/api/deployment/v1;deployment\xaa\x02\x1cTemporalio.Api.Deployment.V1\xea\x02\x1fTemporalio::Api::Deployment::V1b\x06proto3" + +var file_temporal_api_deployment_v1_message_proto_msgTypes = make([]protoimpl.MessageInfo, 18) +var file_temporal_api_deployment_v1_message_proto_goTypes = []any{ + (*WorkerDeploymentOptions)(nil), // 0: temporal.api.deployment.v1.WorkerDeploymentOptions + (*Deployment)(nil), // 1: temporal.api.deployment.v1.Deployment + (*DeploymentInfo)(nil), // 2: temporal.api.deployment.v1.DeploymentInfo + (*UpdateDeploymentMetadata)(nil), // 3: temporal.api.deployment.v1.UpdateDeploymentMetadata + (*DeploymentListInfo)(nil), // 4: temporal.api.deployment.v1.DeploymentListInfo + (*WorkerDeploymentVersionInfo)(nil), // 5: temporal.api.deployment.v1.WorkerDeploymentVersionInfo + (*VersionDrainageInfo)(nil), // 6: temporal.api.deployment.v1.VersionDrainageInfo + (*WorkerDeploymentInfo)(nil), // 7: temporal.api.deployment.v1.WorkerDeploymentInfo + (*WorkerDeploymentVersion)(nil), // 8: temporal.api.deployment.v1.WorkerDeploymentVersion + (*VersionMetadata)(nil), // 9: temporal.api.deployment.v1.VersionMetadata + (*RoutingConfig)(nil), // 10: temporal.api.deployment.v1.RoutingConfig + (*InheritedAutoUpgradeInfo)(nil), // 11: temporal.api.deployment.v1.InheritedAutoUpgradeInfo + nil, // 12: temporal.api.deployment.v1.DeploymentInfo.MetadataEntry + (*DeploymentInfo_TaskQueueInfo)(nil), // 13: temporal.api.deployment.v1.DeploymentInfo.TaskQueueInfo + nil, // 14: temporal.api.deployment.v1.UpdateDeploymentMetadata.UpsertEntriesEntry + (*WorkerDeploymentVersionInfo_VersionTaskQueueInfo)(nil), // 15: temporal.api.deployment.v1.WorkerDeploymentVersionInfo.VersionTaskQueueInfo + (*WorkerDeploymentInfo_WorkerDeploymentVersionSummary)(nil), // 16: temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummary + nil, // 17: temporal.api.deployment.v1.VersionMetadata.EntriesEntry + (v1.WorkerVersioningMode)(0), // 18: temporal.api.enums.v1.WorkerVersioningMode + (*timestamppb.Timestamp)(nil), // 19: google.protobuf.Timestamp + (v1.WorkerDeploymentVersionStatus)(0), // 20: temporal.api.enums.v1.WorkerDeploymentVersionStatus + (v1.VersionDrainageStatus)(0), // 21: temporal.api.enums.v1.VersionDrainageStatus + (v1.RoutingConfigUpdateState)(0), // 22: temporal.api.enums.v1.RoutingConfigUpdateState + (*v11.Payload)(nil), // 23: temporal.api.common.v1.Payload + (v1.TaskQueueType)(0), // 24: temporal.api.enums.v1.TaskQueueType +} +var file_temporal_api_deployment_v1_message_proto_depIdxs = []int32{ + 18, // 0: temporal.api.deployment.v1.WorkerDeploymentOptions.worker_versioning_mode:type_name -> temporal.api.enums.v1.WorkerVersioningMode + 1, // 1: temporal.api.deployment.v1.DeploymentInfo.deployment:type_name -> temporal.api.deployment.v1.Deployment + 19, // 2: temporal.api.deployment.v1.DeploymentInfo.create_time:type_name -> google.protobuf.Timestamp + 13, // 3: temporal.api.deployment.v1.DeploymentInfo.task_queue_infos:type_name -> temporal.api.deployment.v1.DeploymentInfo.TaskQueueInfo + 12, // 4: temporal.api.deployment.v1.DeploymentInfo.metadata:type_name -> temporal.api.deployment.v1.DeploymentInfo.MetadataEntry + 14, // 5: temporal.api.deployment.v1.UpdateDeploymentMetadata.upsert_entries:type_name -> temporal.api.deployment.v1.UpdateDeploymentMetadata.UpsertEntriesEntry + 1, // 6: temporal.api.deployment.v1.DeploymentListInfo.deployment:type_name -> temporal.api.deployment.v1.Deployment + 19, // 7: temporal.api.deployment.v1.DeploymentListInfo.create_time:type_name -> google.protobuf.Timestamp + 20, // 8: temporal.api.deployment.v1.WorkerDeploymentVersionInfo.status:type_name -> temporal.api.enums.v1.WorkerDeploymentVersionStatus + 8, // 9: temporal.api.deployment.v1.WorkerDeploymentVersionInfo.deployment_version:type_name -> temporal.api.deployment.v1.WorkerDeploymentVersion + 19, // 10: temporal.api.deployment.v1.WorkerDeploymentVersionInfo.create_time:type_name -> google.protobuf.Timestamp + 19, // 11: temporal.api.deployment.v1.WorkerDeploymentVersionInfo.routing_changed_time:type_name -> google.protobuf.Timestamp + 19, // 12: temporal.api.deployment.v1.WorkerDeploymentVersionInfo.current_since_time:type_name -> google.protobuf.Timestamp + 19, // 13: temporal.api.deployment.v1.WorkerDeploymentVersionInfo.ramping_since_time:type_name -> google.protobuf.Timestamp + 19, // 14: temporal.api.deployment.v1.WorkerDeploymentVersionInfo.first_activation_time:type_name -> google.protobuf.Timestamp + 19, // 15: temporal.api.deployment.v1.WorkerDeploymentVersionInfo.last_current_time:type_name -> google.protobuf.Timestamp + 19, // 16: temporal.api.deployment.v1.WorkerDeploymentVersionInfo.last_deactivation_time:type_name -> google.protobuf.Timestamp + 15, // 17: temporal.api.deployment.v1.WorkerDeploymentVersionInfo.task_queue_infos:type_name -> temporal.api.deployment.v1.WorkerDeploymentVersionInfo.VersionTaskQueueInfo + 6, // 18: temporal.api.deployment.v1.WorkerDeploymentVersionInfo.drainage_info:type_name -> temporal.api.deployment.v1.VersionDrainageInfo + 9, // 19: temporal.api.deployment.v1.WorkerDeploymentVersionInfo.metadata:type_name -> temporal.api.deployment.v1.VersionMetadata + 21, // 20: temporal.api.deployment.v1.VersionDrainageInfo.status:type_name -> temporal.api.enums.v1.VersionDrainageStatus + 19, // 21: temporal.api.deployment.v1.VersionDrainageInfo.last_changed_time:type_name -> google.protobuf.Timestamp + 19, // 22: temporal.api.deployment.v1.VersionDrainageInfo.last_checked_time:type_name -> google.protobuf.Timestamp + 16, // 23: temporal.api.deployment.v1.WorkerDeploymentInfo.version_summaries:type_name -> temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummary + 19, // 24: temporal.api.deployment.v1.WorkerDeploymentInfo.create_time:type_name -> google.protobuf.Timestamp + 10, // 25: temporal.api.deployment.v1.WorkerDeploymentInfo.routing_config:type_name -> temporal.api.deployment.v1.RoutingConfig + 22, // 26: temporal.api.deployment.v1.WorkerDeploymentInfo.routing_config_update_state:type_name -> temporal.api.enums.v1.RoutingConfigUpdateState + 17, // 27: temporal.api.deployment.v1.VersionMetadata.entries:type_name -> temporal.api.deployment.v1.VersionMetadata.EntriesEntry + 8, // 28: temporal.api.deployment.v1.RoutingConfig.current_deployment_version:type_name -> temporal.api.deployment.v1.WorkerDeploymentVersion + 8, // 29: temporal.api.deployment.v1.RoutingConfig.ramping_deployment_version:type_name -> temporal.api.deployment.v1.WorkerDeploymentVersion + 19, // 30: temporal.api.deployment.v1.RoutingConfig.current_version_changed_time:type_name -> google.protobuf.Timestamp + 19, // 31: temporal.api.deployment.v1.RoutingConfig.ramping_version_changed_time:type_name -> google.protobuf.Timestamp + 19, // 32: temporal.api.deployment.v1.RoutingConfig.ramping_version_percentage_changed_time:type_name -> google.protobuf.Timestamp + 8, // 33: temporal.api.deployment.v1.InheritedAutoUpgradeInfo.source_deployment_version:type_name -> temporal.api.deployment.v1.WorkerDeploymentVersion + 23, // 34: temporal.api.deployment.v1.DeploymentInfo.MetadataEntry.value:type_name -> temporal.api.common.v1.Payload + 24, // 35: temporal.api.deployment.v1.DeploymentInfo.TaskQueueInfo.type:type_name -> temporal.api.enums.v1.TaskQueueType + 19, // 36: temporal.api.deployment.v1.DeploymentInfo.TaskQueueInfo.first_poller_time:type_name -> google.protobuf.Timestamp + 23, // 37: temporal.api.deployment.v1.UpdateDeploymentMetadata.UpsertEntriesEntry.value:type_name -> temporal.api.common.v1.Payload + 24, // 38: temporal.api.deployment.v1.WorkerDeploymentVersionInfo.VersionTaskQueueInfo.type:type_name -> temporal.api.enums.v1.TaskQueueType + 20, // 39: temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummary.status:type_name -> temporal.api.enums.v1.WorkerDeploymentVersionStatus + 8, // 40: temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummary.deployment_version:type_name -> temporal.api.deployment.v1.WorkerDeploymentVersion + 19, // 41: temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummary.create_time:type_name -> google.protobuf.Timestamp + 21, // 42: temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummary.drainage_status:type_name -> temporal.api.enums.v1.VersionDrainageStatus + 6, // 43: temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummary.drainage_info:type_name -> temporal.api.deployment.v1.VersionDrainageInfo + 19, // 44: temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummary.current_since_time:type_name -> google.protobuf.Timestamp + 19, // 45: temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummary.ramping_since_time:type_name -> google.protobuf.Timestamp + 19, // 46: temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummary.routing_update_time:type_name -> google.protobuf.Timestamp + 19, // 47: temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummary.first_activation_time:type_name -> google.protobuf.Timestamp + 19, // 48: temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummary.last_current_time:type_name -> google.protobuf.Timestamp + 19, // 49: temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummary.last_deactivation_time:type_name -> google.protobuf.Timestamp + 23, // 50: temporal.api.deployment.v1.VersionMetadata.EntriesEntry.value:type_name -> temporal.api.common.v1.Payload + 51, // [51:51] is the sub-list for method output_type + 51, // [51:51] is the sub-list for method input_type + 51, // [51:51] is the sub-list for extension type_name + 51, // [51:51] is the sub-list for extension extendee + 0, // [0:51] is the sub-list for field type_name +} + +func init() { file_temporal_api_deployment_v1_message_proto_init() } +func file_temporal_api_deployment_v1_message_proto_init() { + if File_temporal_api_deployment_v1_message_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_api_deployment_v1_message_proto_rawDesc), len(file_temporal_api_deployment_v1_message_proto_rawDesc)), + NumEnums: 0, + NumMessages: 18, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_temporal_api_deployment_v1_message_proto_goTypes, + DependencyIndexes: file_temporal_api_deployment_v1_message_proto_depIdxs, + MessageInfos: file_temporal_api_deployment_v1_message_proto_msgTypes, + }.Build() + File_temporal_api_deployment_v1_message_proto = out.File + file_temporal_api_deployment_v1_message_proto_goTypes = nil + file_temporal_api_deployment_v1_message_proto_depIdxs = nil +} diff --git a/enums/v1/activity.pb.go b/enums/v1/activity.pb.go index 8c8e6d47..e41511f5 100644 --- a/enums/v1/activity.pb.go +++ b/enums/v1/activity.pb.go @@ -4,12 +4,13 @@ // protoc // source: temporal/api/enums/v1/activity.proto +//go:build !protoopaque + package enums import ( reflect "reflect" "strconv" - sync "sync" unsafe "unsafe" protoreflect "google.golang.org/protobuf/reflect/protoreflect" @@ -125,11 +126,6 @@ func (x ActivityExecutionStatus) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use ActivityExecutionStatus.Descriptor instead. -func (ActivityExecutionStatus) EnumDescriptor() ([]byte, []int) { - return file_temporal_api_enums_v1_activity_proto_rawDescGZIP(), []int{0} -} - // Defines whether to allow re-using an activity ID from a previously *closed* activity. // If the request is denied, the server returns an `ActivityExecutionAlreadyStarted` error. // @@ -198,11 +194,6 @@ func (x ActivityIdReusePolicy) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use ActivityIdReusePolicy.Descriptor instead. -func (ActivityIdReusePolicy) EnumDescriptor() ([]byte, []int) { - return file_temporal_api_enums_v1_activity_proto_rawDescGZIP(), []int{1} -} - // Defines what to do when trying to start an activity with the same ID as a *running* activity. // Note that it is *never* valid to have two running instances of the same activity ID. // @@ -263,11 +254,6 @@ func (x ActivityIdConflictPolicy) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use ActivityIdConflictPolicy.Descriptor instead. -func (ActivityIdConflictPolicy) EnumDescriptor() ([]byte, []int) { - return file_temporal_api_enums_v1_activity_proto_rawDescGZIP(), []int{2} -} - var File_temporal_api_enums_v1_activity_proto protoreflect.FileDescriptor const file_temporal_api_enums_v1_activity_proto_rawDesc = "" + @@ -292,18 +278,6 @@ const file_temporal_api_enums_v1_activity_proto_rawDesc = "" + "(ACTIVITY_ID_CONFLICT_POLICY_USE_EXISTING\x10\x02B\x85\x01\n" + "\x18io.temporal.api.enums.v1B\rActivityProtoP\x01Z!go.temporal.io/api/enums/v1;enums\xaa\x02\x17Temporalio.Api.Enums.V1\xea\x02\x1aTemporalio::Api::Enums::V1b\x06proto3" -var ( - file_temporal_api_enums_v1_activity_proto_rawDescOnce sync.Once - file_temporal_api_enums_v1_activity_proto_rawDescData []byte -) - -func file_temporal_api_enums_v1_activity_proto_rawDescGZIP() []byte { - file_temporal_api_enums_v1_activity_proto_rawDescOnce.Do(func() { - file_temporal_api_enums_v1_activity_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_api_enums_v1_activity_proto_rawDesc), len(file_temporal_api_enums_v1_activity_proto_rawDesc))) - }) - return file_temporal_api_enums_v1_activity_proto_rawDescData -} - var file_temporal_api_enums_v1_activity_proto_enumTypes = make([]protoimpl.EnumInfo, 3) var file_temporal_api_enums_v1_activity_proto_goTypes = []any{ (ActivityExecutionStatus)(0), // 0: temporal.api.enums.v1.ActivityExecutionStatus diff --git a/enums/v1/activity_protoopaque.pb.go b/enums/v1/activity_protoopaque.pb.go new file mode 100644 index 00000000..f794c827 --- /dev/null +++ b/enums/v1/activity_protoopaque.pb.go @@ -0,0 +1,317 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// plugins: +// protoc-gen-go +// protoc +// source: temporal/api/enums/v1/activity.proto + +//go:build protoopaque + +package enums + +import ( + reflect "reflect" + "strconv" + unsafe "unsafe" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Status of a standalone activity. +// The status is updated once, when the activity is originally scheduled, and again when the activity reaches a terminal +// status. +// (-- api-linter: core::0216::synonyms=disabled +// +// aip.dev/not-precedent: Named consistently with WorkflowExecutionStatus. --) +type ActivityExecutionStatus int32 + +const ( + ACTIVITY_EXECUTION_STATUS_UNSPECIFIED ActivityExecutionStatus = 0 + // The activity has not reached a terminal status. See PendingActivityState for the run state + // (SCHEDULED, STARTED, or CANCEL_REQUESTED). + ACTIVITY_EXECUTION_STATUS_RUNNING ActivityExecutionStatus = 1 + // The activity completed successfully. An activity can complete even after cancellation is + // requested if the worker calls RespondActivityTaskCompleted before acknowledging cancellation. + ACTIVITY_EXECUTION_STATUS_COMPLETED ActivityExecutionStatus = 2 + // The activity failed. Causes: + // - Worker returned a non-retryable failure + // - RetryPolicy.maximum_attempts exhausted + // - Attempt failed after cancellation was requested (retries blocked) + ACTIVITY_EXECUTION_STATUS_FAILED ActivityExecutionStatus = 3 + // The activity was canceled. Reached when: + // - Cancellation requested while SCHEDULED (immediate), or + // - Cancellation requested while STARTED and worker called RespondActivityTaskCanceled. + // + // Workers discover cancellation requests via heartbeat responses (cancel_requested=true). + // Activities that do not heartbeat will not learn of cancellation and may complete, fail, or + // time out normally. CANCELED requires explicit worker acknowledgment or immediate cancellation + // of a SCHEDULED activity. + ACTIVITY_EXECUTION_STATUS_CANCELED ActivityExecutionStatus = 4 + // The activity was terminated. Immediate; does not wait for worker acknowledgment. + ACTIVITY_EXECUTION_STATUS_TERMINATED ActivityExecutionStatus = 5 + // The activity timed out. See TimeoutType for the specific timeout. + // - SCHEDULE_TO_START and SCHEDULE_TO_CLOSE timeouts always result in TIMED_OUT. + // - START_TO_CLOSE and HEARTBEAT may retry if RetryPolicy permits; TIMED_OUT is + // reached when retry is blocked (RetryPolicy.maximum_attempts exhausted, + // SCHEDULE_TO_CLOSE would be exceeded, or cancellation has been requested). + ACTIVITY_EXECUTION_STATUS_TIMED_OUT ActivityExecutionStatus = 6 +) + +// Enum value maps for ActivityExecutionStatus. +var ( + ActivityExecutionStatus_name = map[int32]string{ + 0: "ACTIVITY_EXECUTION_STATUS_UNSPECIFIED", + 1: "ACTIVITY_EXECUTION_STATUS_RUNNING", + 2: "ACTIVITY_EXECUTION_STATUS_COMPLETED", + 3: "ACTIVITY_EXECUTION_STATUS_FAILED", + 4: "ACTIVITY_EXECUTION_STATUS_CANCELED", + 5: "ACTIVITY_EXECUTION_STATUS_TERMINATED", + 6: "ACTIVITY_EXECUTION_STATUS_TIMED_OUT", + } + ActivityExecutionStatus_value = map[string]int32{ + "ACTIVITY_EXECUTION_STATUS_UNSPECIFIED": 0, + "ACTIVITY_EXECUTION_STATUS_RUNNING": 1, + "ACTIVITY_EXECUTION_STATUS_COMPLETED": 2, + "ACTIVITY_EXECUTION_STATUS_FAILED": 3, + "ACTIVITY_EXECUTION_STATUS_CANCELED": 4, + "ACTIVITY_EXECUTION_STATUS_TERMINATED": 5, + "ACTIVITY_EXECUTION_STATUS_TIMED_OUT": 6, + } +) + +func (x ActivityExecutionStatus) Enum() *ActivityExecutionStatus { + p := new(ActivityExecutionStatus) + *p = x + return p +} + +func (x ActivityExecutionStatus) String() string { + switch x { + case ACTIVITY_EXECUTION_STATUS_UNSPECIFIED: + return "Unspecified" + case ACTIVITY_EXECUTION_STATUS_RUNNING: + return "Running" + case ACTIVITY_EXECUTION_STATUS_COMPLETED: + return "Completed" + case ACTIVITY_EXECUTION_STATUS_FAILED: + return "Failed" + case ACTIVITY_EXECUTION_STATUS_CANCELED: + return "Canceled" + case ACTIVITY_EXECUTION_STATUS_TERMINATED: + return "Terminated" + case ACTIVITY_EXECUTION_STATUS_TIMED_OUT: + return "TimedOut" + default: + return strconv.Itoa(int(x)) + } + +} + +func (ActivityExecutionStatus) Descriptor() protoreflect.EnumDescriptor { + return file_temporal_api_enums_v1_activity_proto_enumTypes[0].Descriptor() +} + +func (ActivityExecutionStatus) Type() protoreflect.EnumType { + return &file_temporal_api_enums_v1_activity_proto_enumTypes[0] +} + +func (x ActivityExecutionStatus) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Defines whether to allow re-using an activity ID from a previously *closed* activity. +// If the request is denied, the server returns an `ActivityExecutionAlreadyStarted` error. +// +// See `ActivityIdConflictPolicy` for handling ID duplication with a *running* activity. +type ActivityIdReusePolicy int32 + +const ( + ACTIVITY_ID_REUSE_POLICY_UNSPECIFIED ActivityIdReusePolicy = 0 + // Always allow starting an activity using the same activity ID. + ACTIVITY_ID_REUSE_POLICY_ALLOW_DUPLICATE ActivityIdReusePolicy = 1 + // Allow starting an activity using the same ID only when the last activity's final state is one + // of {failed, canceled, terminated, timed out}. + ACTIVITY_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY ActivityIdReusePolicy = 2 + // Do not permit re-use of the ID for this activity. Future start requests could potentially change the policy, + // allowing re-use of the ID. + ACTIVITY_ID_REUSE_POLICY_REJECT_DUPLICATE ActivityIdReusePolicy = 3 +) + +// Enum value maps for ActivityIdReusePolicy. +var ( + ActivityIdReusePolicy_name = map[int32]string{ + 0: "ACTIVITY_ID_REUSE_POLICY_UNSPECIFIED", + 1: "ACTIVITY_ID_REUSE_POLICY_ALLOW_DUPLICATE", + 2: "ACTIVITY_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY", + 3: "ACTIVITY_ID_REUSE_POLICY_REJECT_DUPLICATE", + } + ActivityIdReusePolicy_value = map[string]int32{ + "ACTIVITY_ID_REUSE_POLICY_UNSPECIFIED": 0, + "ACTIVITY_ID_REUSE_POLICY_ALLOW_DUPLICATE": 1, + "ACTIVITY_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY": 2, + "ACTIVITY_ID_REUSE_POLICY_REJECT_DUPLICATE": 3, + } +) + +func (x ActivityIdReusePolicy) Enum() *ActivityIdReusePolicy { + p := new(ActivityIdReusePolicy) + *p = x + return p +} + +func (x ActivityIdReusePolicy) String() string { + switch x { + case ACTIVITY_ID_REUSE_POLICY_UNSPECIFIED: + return "Unspecified" + case ACTIVITY_ID_REUSE_POLICY_ALLOW_DUPLICATE: + return "AllowDuplicate" + case ACTIVITY_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY: + return "AllowDuplicateFailedOnly" + case ACTIVITY_ID_REUSE_POLICY_REJECT_DUPLICATE: + return "RejectDuplicate" + default: + return strconv.Itoa(int(x)) + } + +} + +func (ActivityIdReusePolicy) Descriptor() protoreflect.EnumDescriptor { + return file_temporal_api_enums_v1_activity_proto_enumTypes[1].Descriptor() +} + +func (ActivityIdReusePolicy) Type() protoreflect.EnumType { + return &file_temporal_api_enums_v1_activity_proto_enumTypes[1] +} + +func (x ActivityIdReusePolicy) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Defines what to do when trying to start an activity with the same ID as a *running* activity. +// Note that it is *never* valid to have two running instances of the same activity ID. +// +// See `ActivityIdReusePolicy` for handling activity ID duplication with a *closed* activity. +type ActivityIdConflictPolicy int32 + +const ( + ACTIVITY_ID_CONFLICT_POLICY_UNSPECIFIED ActivityIdConflictPolicy = 0 + // Don't start a new activity; instead return `ActivityExecutionAlreadyStarted` error. + ACTIVITY_ID_CONFLICT_POLICY_FAIL ActivityIdConflictPolicy = 1 + // Don't start a new activity; instead return a handle for the running activity. + ACTIVITY_ID_CONFLICT_POLICY_USE_EXISTING ActivityIdConflictPolicy = 2 +) + +// Enum value maps for ActivityIdConflictPolicy. +var ( + ActivityIdConflictPolicy_name = map[int32]string{ + 0: "ACTIVITY_ID_CONFLICT_POLICY_UNSPECIFIED", + 1: "ACTIVITY_ID_CONFLICT_POLICY_FAIL", + 2: "ACTIVITY_ID_CONFLICT_POLICY_USE_EXISTING", + } + ActivityIdConflictPolicy_value = map[string]int32{ + "ACTIVITY_ID_CONFLICT_POLICY_UNSPECIFIED": 0, + "ACTIVITY_ID_CONFLICT_POLICY_FAIL": 1, + "ACTIVITY_ID_CONFLICT_POLICY_USE_EXISTING": 2, + } +) + +func (x ActivityIdConflictPolicy) Enum() *ActivityIdConflictPolicy { + p := new(ActivityIdConflictPolicy) + *p = x + return p +} + +func (x ActivityIdConflictPolicy) String() string { + switch x { + case ACTIVITY_ID_CONFLICT_POLICY_UNSPECIFIED: + return "Unspecified" + case ACTIVITY_ID_CONFLICT_POLICY_FAIL: + return "Fail" + case ACTIVITY_ID_CONFLICT_POLICY_USE_EXISTING: + return "UseExisting" + default: + return strconv.Itoa(int(x)) + } + +} + +func (ActivityIdConflictPolicy) Descriptor() protoreflect.EnumDescriptor { + return file_temporal_api_enums_v1_activity_proto_enumTypes[2].Descriptor() +} + +func (ActivityIdConflictPolicy) Type() protoreflect.EnumType { + return &file_temporal_api_enums_v1_activity_proto_enumTypes[2] +} + +func (x ActivityIdConflictPolicy) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +var File_temporal_api_enums_v1_activity_proto protoreflect.FileDescriptor + +const file_temporal_api_enums_v1_activity_proto_rawDesc = "" + + "\n" + + "$temporal/api/enums/v1/activity.proto\x12\x15temporal.api.enums.v1*\xb5\x02\n" + + "\x17ActivityExecutionStatus\x12)\n" + + "%ACTIVITY_EXECUTION_STATUS_UNSPECIFIED\x10\x00\x12%\n" + + "!ACTIVITY_EXECUTION_STATUS_RUNNING\x10\x01\x12'\n" + + "#ACTIVITY_EXECUTION_STATUS_COMPLETED\x10\x02\x12$\n" + + " ACTIVITY_EXECUTION_STATUS_FAILED\x10\x03\x12&\n" + + "\"ACTIVITY_EXECUTION_STATUS_CANCELED\x10\x04\x12(\n" + + "$ACTIVITY_EXECUTION_STATUS_TERMINATED\x10\x05\x12'\n" + + "#ACTIVITY_EXECUTION_STATUS_TIMED_OUT\x10\x06*\xd8\x01\n" + + "\x15ActivityIdReusePolicy\x12(\n" + + "$ACTIVITY_ID_REUSE_POLICY_UNSPECIFIED\x10\x00\x12,\n" + + "(ACTIVITY_ID_REUSE_POLICY_ALLOW_DUPLICATE\x10\x01\x128\n" + + "4ACTIVITY_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY\x10\x02\x12-\n" + + ")ACTIVITY_ID_REUSE_POLICY_REJECT_DUPLICATE\x10\x03*\x9b\x01\n" + + "\x18ActivityIdConflictPolicy\x12+\n" + + "'ACTIVITY_ID_CONFLICT_POLICY_UNSPECIFIED\x10\x00\x12$\n" + + " ACTIVITY_ID_CONFLICT_POLICY_FAIL\x10\x01\x12,\n" + + "(ACTIVITY_ID_CONFLICT_POLICY_USE_EXISTING\x10\x02B\x85\x01\n" + + "\x18io.temporal.api.enums.v1B\rActivityProtoP\x01Z!go.temporal.io/api/enums/v1;enums\xaa\x02\x17Temporalio.Api.Enums.V1\xea\x02\x1aTemporalio::Api::Enums::V1b\x06proto3" + +var file_temporal_api_enums_v1_activity_proto_enumTypes = make([]protoimpl.EnumInfo, 3) +var file_temporal_api_enums_v1_activity_proto_goTypes = []any{ + (ActivityExecutionStatus)(0), // 0: temporal.api.enums.v1.ActivityExecutionStatus + (ActivityIdReusePolicy)(0), // 1: temporal.api.enums.v1.ActivityIdReusePolicy + (ActivityIdConflictPolicy)(0), // 2: temporal.api.enums.v1.ActivityIdConflictPolicy +} +var file_temporal_api_enums_v1_activity_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_temporal_api_enums_v1_activity_proto_init() } +func file_temporal_api_enums_v1_activity_proto_init() { + if File_temporal_api_enums_v1_activity_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_api_enums_v1_activity_proto_rawDesc), len(file_temporal_api_enums_v1_activity_proto_rawDesc)), + NumEnums: 3, + NumMessages: 0, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_temporal_api_enums_v1_activity_proto_goTypes, + DependencyIndexes: file_temporal_api_enums_v1_activity_proto_depIdxs, + EnumInfos: file_temporal_api_enums_v1_activity_proto_enumTypes, + }.Build() + File_temporal_api_enums_v1_activity_proto = out.File + file_temporal_api_enums_v1_activity_proto_goTypes = nil + file_temporal_api_enums_v1_activity_proto_depIdxs = nil +} diff --git a/enums/v1/batch_operation.pb.go b/enums/v1/batch_operation.pb.go index d5c0ce2a..02aa81d4 100644 --- a/enums/v1/batch_operation.pb.go +++ b/enums/v1/batch_operation.pb.go @@ -4,12 +4,13 @@ // protoc // source: temporal/api/enums/v1/batch_operation.proto +//go:build !protoopaque + package enums import ( reflect "reflect" "strconv" - sync "sync" unsafe "unsafe" protoreflect "google.golang.org/protobuf/reflect/protoreflect" @@ -91,8 +92,6 @@ func (x BatchOperationType) String() string { case BATCH_OPERATION_TYPE_UNPAUSE_ACTIVITY: return "UnpauseActivity" case BATCH_OPERATION_TYPE_UPDATE_ACTIVITY_OPTIONS: - - // Deprecated: Use BatchOperationType.Descriptor instead. return "UpdateActivityOptions" case BATCH_OPERATION_TYPE_RESET_ACTIVITY: return "ResetActivity" @@ -114,10 +113,6 @@ func (x BatchOperationType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -func (BatchOperationType) EnumDescriptor() ([]byte, []int) { - return file_temporal_api_enums_v1_batch_operation_proto_rawDescGZIP(), []int{0} -} - type BatchOperationState int32 const ( @@ -177,11 +172,6 @@ func (x BatchOperationState) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use BatchOperationState.Descriptor instead. -func (BatchOperationState) EnumDescriptor() ([]byte, []int) { - return file_temporal_api_enums_v1_batch_operation_proto_rawDescGZIP(), []int{1} -} - var File_temporal_api_enums_v1_batch_operation_proto protoreflect.FileDescriptor const file_temporal_api_enums_v1_batch_operation_proto_rawDesc = "" + @@ -205,18 +195,6 @@ const file_temporal_api_enums_v1_batch_operation_proto_rawDesc = "" + "\x1cBATCH_OPERATION_STATE_FAILED\x10\x03B\x8b\x01\n" + "\x18io.temporal.api.enums.v1B\x13BatchOperationProtoP\x01Z!go.temporal.io/api/enums/v1;enums\xaa\x02\x17Temporalio.Api.Enums.V1\xea\x02\x1aTemporalio::Api::Enums::V1b\x06proto3" -var ( - file_temporal_api_enums_v1_batch_operation_proto_rawDescOnce sync.Once - file_temporal_api_enums_v1_batch_operation_proto_rawDescData []byte -) - -func file_temporal_api_enums_v1_batch_operation_proto_rawDescGZIP() []byte { - file_temporal_api_enums_v1_batch_operation_proto_rawDescOnce.Do(func() { - file_temporal_api_enums_v1_batch_operation_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_api_enums_v1_batch_operation_proto_rawDesc), len(file_temporal_api_enums_v1_batch_operation_proto_rawDesc))) - }) - return file_temporal_api_enums_v1_batch_operation_proto_rawDescData -} - var file_temporal_api_enums_v1_batch_operation_proto_enumTypes = make([]protoimpl.EnumInfo, 2) var file_temporal_api_enums_v1_batch_operation_proto_goTypes = []any{ (BatchOperationType)(0), // 0: temporal.api.enums.v1.BatchOperationType diff --git a/enums/v1/batch_operation_protoopaque.pb.go b/enums/v1/batch_operation_protoopaque.pb.go new file mode 100644 index 00000000..6acfbcf6 --- /dev/null +++ b/enums/v1/batch_operation_protoopaque.pb.go @@ -0,0 +1,233 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// plugins: +// protoc-gen-go +// protoc +// source: temporal/api/enums/v1/batch_operation.proto + +//go:build protoopaque + +package enums + +import ( + reflect "reflect" + "strconv" + unsafe "unsafe" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type BatchOperationType int32 + +const ( + BATCH_OPERATION_TYPE_UNSPECIFIED BatchOperationType = 0 + BATCH_OPERATION_TYPE_TERMINATE BatchOperationType = 1 + BATCH_OPERATION_TYPE_CANCEL BatchOperationType = 2 + BATCH_OPERATION_TYPE_SIGNAL BatchOperationType = 3 + BATCH_OPERATION_TYPE_DELETE BatchOperationType = 4 + BATCH_OPERATION_TYPE_RESET BatchOperationType = 5 + BATCH_OPERATION_TYPE_UPDATE_EXECUTION_OPTIONS BatchOperationType = 6 + BATCH_OPERATION_TYPE_UNPAUSE_ACTIVITY BatchOperationType = 7 + BATCH_OPERATION_TYPE_UPDATE_ACTIVITY_OPTIONS BatchOperationType = 8 + BATCH_OPERATION_TYPE_RESET_ACTIVITY BatchOperationType = 9 +) + +// Enum value maps for BatchOperationType. +var ( + BatchOperationType_name = map[int32]string{ + 0: "BATCH_OPERATION_TYPE_UNSPECIFIED", + 1: "BATCH_OPERATION_TYPE_TERMINATE", + 2: "BATCH_OPERATION_TYPE_CANCEL", + 3: "BATCH_OPERATION_TYPE_SIGNAL", + 4: "BATCH_OPERATION_TYPE_DELETE", + 5: "BATCH_OPERATION_TYPE_RESET", + 6: "BATCH_OPERATION_TYPE_UPDATE_EXECUTION_OPTIONS", + 7: "BATCH_OPERATION_TYPE_UNPAUSE_ACTIVITY", + 8: "BATCH_OPERATION_TYPE_UPDATE_ACTIVITY_OPTIONS", + 9: "BATCH_OPERATION_TYPE_RESET_ACTIVITY", + } + BatchOperationType_value = map[string]int32{ + "BATCH_OPERATION_TYPE_UNSPECIFIED": 0, + "BATCH_OPERATION_TYPE_TERMINATE": 1, + "BATCH_OPERATION_TYPE_CANCEL": 2, + "BATCH_OPERATION_TYPE_SIGNAL": 3, + "BATCH_OPERATION_TYPE_DELETE": 4, + "BATCH_OPERATION_TYPE_RESET": 5, + "BATCH_OPERATION_TYPE_UPDATE_EXECUTION_OPTIONS": 6, + "BATCH_OPERATION_TYPE_UNPAUSE_ACTIVITY": 7, + "BATCH_OPERATION_TYPE_UPDATE_ACTIVITY_OPTIONS": 8, + "BATCH_OPERATION_TYPE_RESET_ACTIVITY": 9, + } +) + +func (x BatchOperationType) Enum() *BatchOperationType { + p := new(BatchOperationType) + *p = x + return p +} + +func (x BatchOperationType) String() string { + switch x { + case BATCH_OPERATION_TYPE_UNSPECIFIED: + return "Unspecified" + case BATCH_OPERATION_TYPE_TERMINATE: + return "Terminate" + case BATCH_OPERATION_TYPE_CANCEL: + return "Cancel" + case BATCH_OPERATION_TYPE_SIGNAL: + return "Signal" + case BATCH_OPERATION_TYPE_DELETE: + return "Delete" + case BATCH_OPERATION_TYPE_RESET: + return "Reset" + case BATCH_OPERATION_TYPE_UPDATE_EXECUTION_OPTIONS: + return "UpdateExecutionOptions" + case BATCH_OPERATION_TYPE_UNPAUSE_ACTIVITY: + return "UnpauseActivity" + case BATCH_OPERATION_TYPE_UPDATE_ACTIVITY_OPTIONS: + return "UpdateActivityOptions" + case BATCH_OPERATION_TYPE_RESET_ACTIVITY: + return "ResetActivity" + default: + return strconv.Itoa(int(x)) + } + +} + +func (BatchOperationType) Descriptor() protoreflect.EnumDescriptor { + return file_temporal_api_enums_v1_batch_operation_proto_enumTypes[0].Descriptor() +} + +func (BatchOperationType) Type() protoreflect.EnumType { + return &file_temporal_api_enums_v1_batch_operation_proto_enumTypes[0] +} + +func (x BatchOperationType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +type BatchOperationState int32 + +const ( + BATCH_OPERATION_STATE_UNSPECIFIED BatchOperationState = 0 + BATCH_OPERATION_STATE_RUNNING BatchOperationState = 1 + BATCH_OPERATION_STATE_COMPLETED BatchOperationState = 2 + BATCH_OPERATION_STATE_FAILED BatchOperationState = 3 +) + +// Enum value maps for BatchOperationState. +var ( + BatchOperationState_name = map[int32]string{ + 0: "BATCH_OPERATION_STATE_UNSPECIFIED", + 1: "BATCH_OPERATION_STATE_RUNNING", + 2: "BATCH_OPERATION_STATE_COMPLETED", + 3: "BATCH_OPERATION_STATE_FAILED", + } + BatchOperationState_value = map[string]int32{ + "BATCH_OPERATION_STATE_UNSPECIFIED": 0, + "BATCH_OPERATION_STATE_RUNNING": 1, + "BATCH_OPERATION_STATE_COMPLETED": 2, + "BATCH_OPERATION_STATE_FAILED": 3, + } +) + +func (x BatchOperationState) Enum() *BatchOperationState { + p := new(BatchOperationState) + *p = x + return p +} + +func (x BatchOperationState) String() string { + switch x { + case BATCH_OPERATION_STATE_UNSPECIFIED: + return "Unspecified" + case BATCH_OPERATION_STATE_RUNNING: + return "Running" + case BATCH_OPERATION_STATE_COMPLETED: + return "Completed" + case BATCH_OPERATION_STATE_FAILED: + return "Failed" + default: + return strconv.Itoa(int(x)) + } + +} + +func (BatchOperationState) Descriptor() protoreflect.EnumDescriptor { + return file_temporal_api_enums_v1_batch_operation_proto_enumTypes[1].Descriptor() +} + +func (BatchOperationState) Type() protoreflect.EnumType { + return &file_temporal_api_enums_v1_batch_operation_proto_enumTypes[1] +} + +func (x BatchOperationState) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +var File_temporal_api_enums_v1_batch_operation_proto protoreflect.FileDescriptor + +const file_temporal_api_enums_v1_batch_operation_proto_rawDesc = "" + + "\n" + + "+temporal/api/enums/v1/batch_operation.proto\x12\x15temporal.api.enums.v1*\x9a\x03\n" + + "\x12BatchOperationType\x12$\n" + + " BATCH_OPERATION_TYPE_UNSPECIFIED\x10\x00\x12\"\n" + + "\x1eBATCH_OPERATION_TYPE_TERMINATE\x10\x01\x12\x1f\n" + + "\x1bBATCH_OPERATION_TYPE_CANCEL\x10\x02\x12\x1f\n" + + "\x1bBATCH_OPERATION_TYPE_SIGNAL\x10\x03\x12\x1f\n" + + "\x1bBATCH_OPERATION_TYPE_DELETE\x10\x04\x12\x1e\n" + + "\x1aBATCH_OPERATION_TYPE_RESET\x10\x05\x121\n" + + "-BATCH_OPERATION_TYPE_UPDATE_EXECUTION_OPTIONS\x10\x06\x12)\n" + + "%BATCH_OPERATION_TYPE_UNPAUSE_ACTIVITY\x10\a\x120\n" + + ",BATCH_OPERATION_TYPE_UPDATE_ACTIVITY_OPTIONS\x10\b\x12'\n" + + "#BATCH_OPERATION_TYPE_RESET_ACTIVITY\x10\t*\xa6\x01\n" + + "\x13BatchOperationState\x12%\n" + + "!BATCH_OPERATION_STATE_UNSPECIFIED\x10\x00\x12!\n" + + "\x1dBATCH_OPERATION_STATE_RUNNING\x10\x01\x12#\n" + + "\x1fBATCH_OPERATION_STATE_COMPLETED\x10\x02\x12 \n" + + "\x1cBATCH_OPERATION_STATE_FAILED\x10\x03B\x8b\x01\n" + + "\x18io.temporal.api.enums.v1B\x13BatchOperationProtoP\x01Z!go.temporal.io/api/enums/v1;enums\xaa\x02\x17Temporalio.Api.Enums.V1\xea\x02\x1aTemporalio::Api::Enums::V1b\x06proto3" + +var file_temporal_api_enums_v1_batch_operation_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_temporal_api_enums_v1_batch_operation_proto_goTypes = []any{ + (BatchOperationType)(0), // 0: temporal.api.enums.v1.BatchOperationType + (BatchOperationState)(0), // 1: temporal.api.enums.v1.BatchOperationState +} +var file_temporal_api_enums_v1_batch_operation_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_temporal_api_enums_v1_batch_operation_proto_init() } +func file_temporal_api_enums_v1_batch_operation_proto_init() { + if File_temporal_api_enums_v1_batch_operation_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_api_enums_v1_batch_operation_proto_rawDesc), len(file_temporal_api_enums_v1_batch_operation_proto_rawDesc)), + NumEnums: 2, + NumMessages: 0, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_temporal_api_enums_v1_batch_operation_proto_goTypes, + DependencyIndexes: file_temporal_api_enums_v1_batch_operation_proto_depIdxs, + EnumInfos: file_temporal_api_enums_v1_batch_operation_proto_enumTypes, + }.Build() + File_temporal_api_enums_v1_batch_operation_proto = out.File + file_temporal_api_enums_v1_batch_operation_proto_goTypes = nil + file_temporal_api_enums_v1_batch_operation_proto_depIdxs = nil +} diff --git a/enums/v1/command_type.pb.go b/enums/v1/command_type.pb.go index 5f4d2c69..a035e306 100644 --- a/enums/v1/command_type.pb.go +++ b/enums/v1/command_type.pb.go @@ -4,12 +4,13 @@ // protoc // source: temporal/api/enums/v1/command_type.proto +//go:build !protoopaque + package enums import ( reflect "reflect" "strconv" - sync "sync" unsafe "unsafe" protoreflect "google.golang.org/protobuf/reflect/protoreflect" @@ -113,8 +114,6 @@ func (x CommandType) String() string { return "FailWorkflowExecution" case COMMAND_TYPE_CANCEL_TIMER: return "CancelTimer" - - // Deprecated: Use CommandType.Descriptor instead. case COMMAND_TYPE_CANCEL_WORKFLOW_EXECUTION: return "CancelWorkflowExecution" case COMMAND_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION: @@ -155,10 +154,6 @@ func (x CommandType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -func (CommandType) EnumDescriptor() ([]byte, []int) { - return file_temporal_api_enums_v1_command_type_proto_rawDescGZIP(), []int{0} -} - var File_temporal_api_enums_v1_command_type_proto protoreflect.FileDescriptor const file_temporal_api_enums_v1_command_type_proto_rawDesc = "" + @@ -186,18 +181,6 @@ const file_temporal_api_enums_v1_command_type_proto_rawDesc = "" + "+COMMAND_TYPE_REQUEST_CANCEL_NEXUS_OPERATION\x10\x12B\x88\x01\n" + "\x18io.temporal.api.enums.v1B\x10CommandTypeProtoP\x01Z!go.temporal.io/api/enums/v1;enums\xaa\x02\x17Temporalio.Api.Enums.V1\xea\x02\x1aTemporalio::Api::Enums::V1b\x06proto3" -var ( - file_temporal_api_enums_v1_command_type_proto_rawDescOnce sync.Once - file_temporal_api_enums_v1_command_type_proto_rawDescData []byte -) - -func file_temporal_api_enums_v1_command_type_proto_rawDescGZIP() []byte { - file_temporal_api_enums_v1_command_type_proto_rawDescOnce.Do(func() { - file_temporal_api_enums_v1_command_type_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_api_enums_v1_command_type_proto_rawDesc), len(file_temporal_api_enums_v1_command_type_proto_rawDesc))) - }) - return file_temporal_api_enums_v1_command_type_proto_rawDescData -} - var file_temporal_api_enums_v1_command_type_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_temporal_api_enums_v1_command_type_proto_goTypes = []any{ (CommandType)(0), // 0: temporal.api.enums.v1.CommandType diff --git a/enums/v1/command_type_protoopaque.pb.go b/enums/v1/command_type_protoopaque.pb.go new file mode 100644 index 00000000..6cf75073 --- /dev/null +++ b/enums/v1/command_type_protoopaque.pb.go @@ -0,0 +1,218 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// plugins: +// protoc-gen-go +// protoc +// source: temporal/api/enums/v1/command_type.proto + +//go:build protoopaque + +package enums + +import ( + reflect "reflect" + "strconv" + unsafe "unsafe" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Whenever this list of command types is changed do change the function shouldBufferEvent in mutableStateBuilder.go to make sure to do the correct event ordering. +type CommandType int32 + +const ( + COMMAND_TYPE_UNSPECIFIED CommandType = 0 + COMMAND_TYPE_SCHEDULE_ACTIVITY_TASK CommandType = 1 + COMMAND_TYPE_REQUEST_CANCEL_ACTIVITY_TASK CommandType = 2 + COMMAND_TYPE_START_TIMER CommandType = 3 + COMMAND_TYPE_COMPLETE_WORKFLOW_EXECUTION CommandType = 4 + COMMAND_TYPE_FAIL_WORKFLOW_EXECUTION CommandType = 5 + COMMAND_TYPE_CANCEL_TIMER CommandType = 6 + COMMAND_TYPE_CANCEL_WORKFLOW_EXECUTION CommandType = 7 + COMMAND_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION CommandType = 8 + COMMAND_TYPE_RECORD_MARKER CommandType = 9 + COMMAND_TYPE_CONTINUE_AS_NEW_WORKFLOW_EXECUTION CommandType = 10 + COMMAND_TYPE_START_CHILD_WORKFLOW_EXECUTION CommandType = 11 + COMMAND_TYPE_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION CommandType = 12 + COMMAND_TYPE_UPSERT_WORKFLOW_SEARCH_ATTRIBUTES CommandType = 13 + COMMAND_TYPE_PROTOCOL_MESSAGE CommandType = 14 + COMMAND_TYPE_MODIFY_WORKFLOW_PROPERTIES CommandType = 16 + COMMAND_TYPE_SCHEDULE_NEXUS_OPERATION CommandType = 17 + COMMAND_TYPE_REQUEST_CANCEL_NEXUS_OPERATION CommandType = 18 +) + +// Enum value maps for CommandType. +var ( + CommandType_name = map[int32]string{ + 0: "COMMAND_TYPE_UNSPECIFIED", + 1: "COMMAND_TYPE_SCHEDULE_ACTIVITY_TASK", + 2: "COMMAND_TYPE_REQUEST_CANCEL_ACTIVITY_TASK", + 3: "COMMAND_TYPE_START_TIMER", + 4: "COMMAND_TYPE_COMPLETE_WORKFLOW_EXECUTION", + 5: "COMMAND_TYPE_FAIL_WORKFLOW_EXECUTION", + 6: "COMMAND_TYPE_CANCEL_TIMER", + 7: "COMMAND_TYPE_CANCEL_WORKFLOW_EXECUTION", + 8: "COMMAND_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION", + 9: "COMMAND_TYPE_RECORD_MARKER", + 10: "COMMAND_TYPE_CONTINUE_AS_NEW_WORKFLOW_EXECUTION", + 11: "COMMAND_TYPE_START_CHILD_WORKFLOW_EXECUTION", + 12: "COMMAND_TYPE_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION", + 13: "COMMAND_TYPE_UPSERT_WORKFLOW_SEARCH_ATTRIBUTES", + 14: "COMMAND_TYPE_PROTOCOL_MESSAGE", + 16: "COMMAND_TYPE_MODIFY_WORKFLOW_PROPERTIES", + 17: "COMMAND_TYPE_SCHEDULE_NEXUS_OPERATION", + 18: "COMMAND_TYPE_REQUEST_CANCEL_NEXUS_OPERATION", + } + CommandType_value = map[string]int32{ + "COMMAND_TYPE_UNSPECIFIED": 0, + "COMMAND_TYPE_SCHEDULE_ACTIVITY_TASK": 1, + "COMMAND_TYPE_REQUEST_CANCEL_ACTIVITY_TASK": 2, + "COMMAND_TYPE_START_TIMER": 3, + "COMMAND_TYPE_COMPLETE_WORKFLOW_EXECUTION": 4, + "COMMAND_TYPE_FAIL_WORKFLOW_EXECUTION": 5, + "COMMAND_TYPE_CANCEL_TIMER": 6, + "COMMAND_TYPE_CANCEL_WORKFLOW_EXECUTION": 7, + "COMMAND_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION": 8, + "COMMAND_TYPE_RECORD_MARKER": 9, + "COMMAND_TYPE_CONTINUE_AS_NEW_WORKFLOW_EXECUTION": 10, + "COMMAND_TYPE_START_CHILD_WORKFLOW_EXECUTION": 11, + "COMMAND_TYPE_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION": 12, + "COMMAND_TYPE_UPSERT_WORKFLOW_SEARCH_ATTRIBUTES": 13, + "COMMAND_TYPE_PROTOCOL_MESSAGE": 14, + "COMMAND_TYPE_MODIFY_WORKFLOW_PROPERTIES": 16, + "COMMAND_TYPE_SCHEDULE_NEXUS_OPERATION": 17, + "COMMAND_TYPE_REQUEST_CANCEL_NEXUS_OPERATION": 18, + } +) + +func (x CommandType) Enum() *CommandType { + p := new(CommandType) + *p = x + return p +} + +func (x CommandType) String() string { + switch x { + case COMMAND_TYPE_UNSPECIFIED: + return "Unspecified" + case COMMAND_TYPE_SCHEDULE_ACTIVITY_TASK: + return "ScheduleActivityTask" + case COMMAND_TYPE_REQUEST_CANCEL_ACTIVITY_TASK: + return "RequestCancelActivityTask" + case COMMAND_TYPE_START_TIMER: + return "StartTimer" + case COMMAND_TYPE_COMPLETE_WORKFLOW_EXECUTION: + return "CompleteWorkflowExecution" + case COMMAND_TYPE_FAIL_WORKFLOW_EXECUTION: + return "FailWorkflowExecution" + case COMMAND_TYPE_CANCEL_TIMER: + return "CancelTimer" + case COMMAND_TYPE_CANCEL_WORKFLOW_EXECUTION: + return "CancelWorkflowExecution" + case COMMAND_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION: + return "RequestCancelExternalWorkflowExecution" + case COMMAND_TYPE_RECORD_MARKER: + return "RecordMarker" + case COMMAND_TYPE_CONTINUE_AS_NEW_WORKFLOW_EXECUTION: + return "ContinueAsNewWorkflowExecution" + case COMMAND_TYPE_START_CHILD_WORKFLOW_EXECUTION: + return "StartChildWorkflowExecution" + case COMMAND_TYPE_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION: + return "SignalExternalWorkflowExecution" + case COMMAND_TYPE_UPSERT_WORKFLOW_SEARCH_ATTRIBUTES: + return "UpsertWorkflowSearchAttributes" + case COMMAND_TYPE_PROTOCOL_MESSAGE: + return "ProtocolMessage" + case COMMAND_TYPE_MODIFY_WORKFLOW_PROPERTIES: + return "ModifyWorkflowProperties" + case COMMAND_TYPE_SCHEDULE_NEXUS_OPERATION: + return "ScheduleNexusOperation" + case COMMAND_TYPE_REQUEST_CANCEL_NEXUS_OPERATION: + return "RequestCancelNexusOperation" + default: + return strconv.Itoa(int(x)) + } + +} + +func (CommandType) Descriptor() protoreflect.EnumDescriptor { + return file_temporal_api_enums_v1_command_type_proto_enumTypes[0].Descriptor() +} + +func (CommandType) Type() protoreflect.EnumType { + return &file_temporal_api_enums_v1_command_type_proto_enumTypes[0] +} + +func (x CommandType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +var File_temporal_api_enums_v1_command_type_proto protoreflect.FileDescriptor + +const file_temporal_api_enums_v1_command_type_proto_rawDesc = "" + + "\n" + + "(temporal/api/enums/v1/command_type.proto\x12\x15temporal.api.enums.v1*\x9c\x06\n" + + "\vCommandType\x12\x1c\n" + + "\x18COMMAND_TYPE_UNSPECIFIED\x10\x00\x12'\n" + + "#COMMAND_TYPE_SCHEDULE_ACTIVITY_TASK\x10\x01\x12-\n" + + ")COMMAND_TYPE_REQUEST_CANCEL_ACTIVITY_TASK\x10\x02\x12\x1c\n" + + "\x18COMMAND_TYPE_START_TIMER\x10\x03\x12,\n" + + "(COMMAND_TYPE_COMPLETE_WORKFLOW_EXECUTION\x10\x04\x12(\n" + + "$COMMAND_TYPE_FAIL_WORKFLOW_EXECUTION\x10\x05\x12\x1d\n" + + "\x19COMMAND_TYPE_CANCEL_TIMER\x10\x06\x12*\n" + + "&COMMAND_TYPE_CANCEL_WORKFLOW_EXECUTION\x10\a\x12;\n" + + "7COMMAND_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION\x10\b\x12\x1e\n" + + "\x1aCOMMAND_TYPE_RECORD_MARKER\x10\t\x123\n" + + "/COMMAND_TYPE_CONTINUE_AS_NEW_WORKFLOW_EXECUTION\x10\n" + + "\x12/\n" + + "+COMMAND_TYPE_START_CHILD_WORKFLOW_EXECUTION\x10\v\x123\n" + + "/COMMAND_TYPE_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION\x10\f\x122\n" + + ".COMMAND_TYPE_UPSERT_WORKFLOW_SEARCH_ATTRIBUTES\x10\r\x12!\n" + + "\x1dCOMMAND_TYPE_PROTOCOL_MESSAGE\x10\x0e\x12+\n" + + "'COMMAND_TYPE_MODIFY_WORKFLOW_PROPERTIES\x10\x10\x12)\n" + + "%COMMAND_TYPE_SCHEDULE_NEXUS_OPERATION\x10\x11\x12/\n" + + "+COMMAND_TYPE_REQUEST_CANCEL_NEXUS_OPERATION\x10\x12B\x88\x01\n" + + "\x18io.temporal.api.enums.v1B\x10CommandTypeProtoP\x01Z!go.temporal.io/api/enums/v1;enums\xaa\x02\x17Temporalio.Api.Enums.V1\xea\x02\x1aTemporalio::Api::Enums::V1b\x06proto3" + +var file_temporal_api_enums_v1_command_type_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_temporal_api_enums_v1_command_type_proto_goTypes = []any{ + (CommandType)(0), // 0: temporal.api.enums.v1.CommandType +} +var file_temporal_api_enums_v1_command_type_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_temporal_api_enums_v1_command_type_proto_init() } +func file_temporal_api_enums_v1_command_type_proto_init() { + if File_temporal_api_enums_v1_command_type_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_api_enums_v1_command_type_proto_rawDesc), len(file_temporal_api_enums_v1_command_type_proto_rawDesc)), + NumEnums: 1, + NumMessages: 0, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_temporal_api_enums_v1_command_type_proto_goTypes, + DependencyIndexes: file_temporal_api_enums_v1_command_type_proto_depIdxs, + EnumInfos: file_temporal_api_enums_v1_command_type_proto_enumTypes, + }.Build() + File_temporal_api_enums_v1_command_type_proto = out.File + file_temporal_api_enums_v1_command_type_proto_goTypes = nil + file_temporal_api_enums_v1_command_type_proto_depIdxs = nil +} diff --git a/enums/v1/common.pb.go b/enums/v1/common.pb.go index 42056893..aab9d620 100644 --- a/enums/v1/common.pb.go +++ b/enums/v1/common.pb.go @@ -4,12 +4,13 @@ // protoc // source: temporal/api/enums/v1/common.proto +//go:build !protoopaque + package enums import ( reflect "reflect" "strconv" - sync "sync" unsafe "unsafe" protoreflect "google.golang.org/protobuf/reflect/protoreflect" @@ -77,11 +78,6 @@ func (x EncodingType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use EncodingType.Descriptor instead. -func (EncodingType) EnumDescriptor() ([]byte, []int) { - return file_temporal_api_enums_v1_common_proto_rawDescGZIP(), []int{0} -} - type IndexedValueType int32 const ( @@ -161,11 +157,6 @@ func (x IndexedValueType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use IndexedValueType.Descriptor instead. -func (IndexedValueType) EnumDescriptor() ([]byte, []int) { - return file_temporal_api_enums_v1_common_proto_rawDescGZIP(), []int{1} -} - type Severity int32 const ( @@ -225,11 +216,6 @@ func (x Severity) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use Severity.Descriptor instead. -func (Severity) EnumDescriptor() ([]byte, []int) { - return file_temporal_api_enums_v1_common_proto_rawDescGZIP(), []int{2} -} - // State of a callback. type CallbackState int32 @@ -312,11 +298,6 @@ func (x CallbackState) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use CallbackState.Descriptor instead. -func (CallbackState) EnumDescriptor() ([]byte, []int) { - return file_temporal_api_enums_v1_common_proto_rawDescGZIP(), []int{3} -} - // State of a pending Nexus operation. type PendingNexusOperationState int32 @@ -387,11 +368,6 @@ func (x PendingNexusOperationState) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use PendingNexusOperationState.Descriptor instead. -func (PendingNexusOperationState) EnumDescriptor() ([]byte, []int) { - return file_temporal_api_enums_v1_common_proto_rawDescGZIP(), []int{4} -} - // State of a Nexus operation cancellation. type NexusOperationCancellationState int32 @@ -457,10 +433,7 @@ func (x NexusOperationCancellationState) String() string { case NEXUS_OPERATION_CANCELLATION_STATE_BLOCKED: return "Blocked" default: - return strconv.Itoa( - - // Deprecated: Use NexusOperationCancellationState.Descriptor instead. - int(x)) + return strconv.Itoa(int(x)) } } @@ -477,10 +450,6 @@ func (x NexusOperationCancellationState) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -func (NexusOperationCancellationState) EnumDescriptor() ([]byte, []int) { - return file_temporal_api_enums_v1_common_proto_rawDescGZIP(), []int{5} -} - type WorkflowRuleActionScope int32 const ( @@ -538,11 +507,6 @@ func (x WorkflowRuleActionScope) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use WorkflowRuleActionScope.Descriptor instead. -func (WorkflowRuleActionScope) EnumDescriptor() ([]byte, []int) { - return file_temporal_api_enums_v1_common_proto_rawDescGZIP(), []int{6} -} - type ApplicationErrorCategory int32 const ( @@ -593,11 +557,6 @@ func (x ApplicationErrorCategory) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use ApplicationErrorCategory.Descriptor instead. -func (ApplicationErrorCategory) EnumDescriptor() ([]byte, []int) { - return file_temporal_api_enums_v1_common_proto_rawDescGZIP(), []int{7} -} - // (-- api-linter: core::0216::synonyms=disabled // // aip.dev/not-precedent: It seems we have both state and status, and status is a better fit for workers. --) @@ -660,11 +619,6 @@ func (x WorkerStatus) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use WorkerStatus.Descriptor instead. -func (WorkerStatus) EnumDescriptor() ([]byte, []int) { - return file_temporal_api_enums_v1_common_proto_rawDescGZIP(), []int{8} -} - var File_temporal_api_enums_v1_common_proto protoreflect.FileDescriptor const file_temporal_api_enums_v1_common_proto_rawDesc = "" + @@ -724,18 +678,6 @@ const file_temporal_api_enums_v1_common_proto_rawDesc = "" + "\x16WORKER_STATUS_SHUTDOWN\x10\x03B\x83\x01\n" + "\x18io.temporal.api.enums.v1B\vCommonProtoP\x01Z!go.temporal.io/api/enums/v1;enums\xaa\x02\x17Temporalio.Api.Enums.V1\xea\x02\x1aTemporalio::Api::Enums::V1b\x06proto3" -var ( - file_temporal_api_enums_v1_common_proto_rawDescOnce sync.Once - file_temporal_api_enums_v1_common_proto_rawDescData []byte -) - -func file_temporal_api_enums_v1_common_proto_rawDescGZIP() []byte { - file_temporal_api_enums_v1_common_proto_rawDescOnce.Do(func() { - file_temporal_api_enums_v1_common_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_api_enums_v1_common_proto_rawDesc), len(file_temporal_api_enums_v1_common_proto_rawDesc))) - }) - return file_temporal_api_enums_v1_common_proto_rawDescData -} - var file_temporal_api_enums_v1_common_proto_enumTypes = make([]protoimpl.EnumInfo, 9) var file_temporal_api_enums_v1_common_proto_goTypes = []any{ (EncodingType)(0), // 0: temporal.api.enums.v1.EncodingType diff --git a/enums/v1/common_protoopaque.pb.go b/enums/v1/common_protoopaque.pb.go new file mode 100644 index 00000000..2bf57cf7 --- /dev/null +++ b/enums/v1/common_protoopaque.pb.go @@ -0,0 +1,723 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// plugins: +// protoc-gen-go +// protoc +// source: temporal/api/enums/v1/common.proto + +//go:build protoopaque + +package enums + +import ( + reflect "reflect" + "strconv" + unsafe "unsafe" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type EncodingType int32 + +const ( + ENCODING_TYPE_UNSPECIFIED EncodingType = 0 + ENCODING_TYPE_PROTO3 EncodingType = 1 + ENCODING_TYPE_JSON EncodingType = 2 +) + +// Enum value maps for EncodingType. +var ( + EncodingType_name = map[int32]string{ + 0: "ENCODING_TYPE_UNSPECIFIED", + 1: "ENCODING_TYPE_PROTO3", + 2: "ENCODING_TYPE_JSON", + } + EncodingType_value = map[string]int32{ + "ENCODING_TYPE_UNSPECIFIED": 0, + "ENCODING_TYPE_PROTO3": 1, + "ENCODING_TYPE_JSON": 2, + } +) + +func (x EncodingType) Enum() *EncodingType { + p := new(EncodingType) + *p = x + return p +} + +func (x EncodingType) String() string { + switch x { + case ENCODING_TYPE_UNSPECIFIED: + return "Unspecified" + case ENCODING_TYPE_PROTO3: + return "Proto3" + case ENCODING_TYPE_JSON: + return "Json" + default: + return strconv.Itoa(int(x)) + } + +} + +func (EncodingType) Descriptor() protoreflect.EnumDescriptor { + return file_temporal_api_enums_v1_common_proto_enumTypes[0].Descriptor() +} + +func (EncodingType) Type() protoreflect.EnumType { + return &file_temporal_api_enums_v1_common_proto_enumTypes[0] +} + +func (x EncodingType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +type IndexedValueType int32 + +const ( + INDEXED_VALUE_TYPE_UNSPECIFIED IndexedValueType = 0 + INDEXED_VALUE_TYPE_TEXT IndexedValueType = 1 + INDEXED_VALUE_TYPE_KEYWORD IndexedValueType = 2 + INDEXED_VALUE_TYPE_INT IndexedValueType = 3 + INDEXED_VALUE_TYPE_DOUBLE IndexedValueType = 4 + INDEXED_VALUE_TYPE_BOOL IndexedValueType = 5 + INDEXED_VALUE_TYPE_DATETIME IndexedValueType = 6 + INDEXED_VALUE_TYPE_KEYWORD_LIST IndexedValueType = 7 +) + +// Enum value maps for IndexedValueType. +var ( + IndexedValueType_name = map[int32]string{ + 0: "INDEXED_VALUE_TYPE_UNSPECIFIED", + 1: "INDEXED_VALUE_TYPE_TEXT", + 2: "INDEXED_VALUE_TYPE_KEYWORD", + 3: "INDEXED_VALUE_TYPE_INT", + 4: "INDEXED_VALUE_TYPE_DOUBLE", + 5: "INDEXED_VALUE_TYPE_BOOL", + 6: "INDEXED_VALUE_TYPE_DATETIME", + 7: "INDEXED_VALUE_TYPE_KEYWORD_LIST", + } + IndexedValueType_value = map[string]int32{ + "INDEXED_VALUE_TYPE_UNSPECIFIED": 0, + "INDEXED_VALUE_TYPE_TEXT": 1, + "INDEXED_VALUE_TYPE_KEYWORD": 2, + "INDEXED_VALUE_TYPE_INT": 3, + "INDEXED_VALUE_TYPE_DOUBLE": 4, + "INDEXED_VALUE_TYPE_BOOL": 5, + "INDEXED_VALUE_TYPE_DATETIME": 6, + "INDEXED_VALUE_TYPE_KEYWORD_LIST": 7, + } +) + +func (x IndexedValueType) Enum() *IndexedValueType { + p := new(IndexedValueType) + *p = x + return p +} + +func (x IndexedValueType) String() string { + switch x { + case INDEXED_VALUE_TYPE_UNSPECIFIED: + return "Unspecified" + case INDEXED_VALUE_TYPE_TEXT: + return "Text" + case INDEXED_VALUE_TYPE_KEYWORD: + return "Keyword" + case INDEXED_VALUE_TYPE_INT: + return "Int" + case INDEXED_VALUE_TYPE_DOUBLE: + return "Double" + case INDEXED_VALUE_TYPE_BOOL: + return "Bool" + case INDEXED_VALUE_TYPE_DATETIME: + return "Datetime" + case INDEXED_VALUE_TYPE_KEYWORD_LIST: + return "KeywordList" + default: + return strconv.Itoa(int(x)) + } + +} + +func (IndexedValueType) Descriptor() protoreflect.EnumDescriptor { + return file_temporal_api_enums_v1_common_proto_enumTypes[1].Descriptor() +} + +func (IndexedValueType) Type() protoreflect.EnumType { + return &file_temporal_api_enums_v1_common_proto_enumTypes[1] +} + +func (x IndexedValueType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +type Severity int32 + +const ( + SEVERITY_UNSPECIFIED Severity = 0 + SEVERITY_HIGH Severity = 1 + SEVERITY_MEDIUM Severity = 2 + SEVERITY_LOW Severity = 3 +) + +// Enum value maps for Severity. +var ( + Severity_name = map[int32]string{ + 0: "SEVERITY_UNSPECIFIED", + 1: "SEVERITY_HIGH", + 2: "SEVERITY_MEDIUM", + 3: "SEVERITY_LOW", + } + Severity_value = map[string]int32{ + "SEVERITY_UNSPECIFIED": 0, + "SEVERITY_HIGH": 1, + "SEVERITY_MEDIUM": 2, + "SEVERITY_LOW": 3, + } +) + +func (x Severity) Enum() *Severity { + p := new(Severity) + *p = x + return p +} + +func (x Severity) String() string { + switch x { + case SEVERITY_UNSPECIFIED: + return "Unspecified" + case SEVERITY_HIGH: + return "High" + case SEVERITY_MEDIUM: + return "Medium" + case SEVERITY_LOW: + return "Low" + default: + return strconv.Itoa(int(x)) + } + +} + +func (Severity) Descriptor() protoreflect.EnumDescriptor { + return file_temporal_api_enums_v1_common_proto_enumTypes[2].Descriptor() +} + +func (Severity) Type() protoreflect.EnumType { + return &file_temporal_api_enums_v1_common_proto_enumTypes[2] +} + +func (x Severity) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// State of a callback. +type CallbackState int32 + +const ( + // Default value, unspecified state. + CALLBACK_STATE_UNSPECIFIED CallbackState = 0 + // Callback is standing by, waiting to be triggered. + CALLBACK_STATE_STANDBY CallbackState = 1 + // Callback is in the queue waiting to be executed or is currently executing. + CALLBACK_STATE_SCHEDULED CallbackState = 2 + // Callback has failed with a retryable error and is backing off before the next attempt. + CALLBACK_STATE_BACKING_OFF CallbackState = 3 + // Callback has failed. + CALLBACK_STATE_FAILED CallbackState = 4 + // Callback has succeeded. + CALLBACK_STATE_SUCCEEDED CallbackState = 5 + // Callback is blocked (eg: by circuit breaker). + CALLBACK_STATE_BLOCKED CallbackState = 6 +) + +// Enum value maps for CallbackState. +var ( + CallbackState_name = map[int32]string{ + 0: "CALLBACK_STATE_UNSPECIFIED", + 1: "CALLBACK_STATE_STANDBY", + 2: "CALLBACK_STATE_SCHEDULED", + 3: "CALLBACK_STATE_BACKING_OFF", + 4: "CALLBACK_STATE_FAILED", + 5: "CALLBACK_STATE_SUCCEEDED", + 6: "CALLBACK_STATE_BLOCKED", + } + CallbackState_value = map[string]int32{ + "CALLBACK_STATE_UNSPECIFIED": 0, + "CALLBACK_STATE_STANDBY": 1, + "CALLBACK_STATE_SCHEDULED": 2, + "CALLBACK_STATE_BACKING_OFF": 3, + "CALLBACK_STATE_FAILED": 4, + "CALLBACK_STATE_SUCCEEDED": 5, + "CALLBACK_STATE_BLOCKED": 6, + } +) + +func (x CallbackState) Enum() *CallbackState { + p := new(CallbackState) + *p = x + return p +} + +func (x CallbackState) String() string { + switch x { + case CALLBACK_STATE_UNSPECIFIED: + return "Unspecified" + case CALLBACK_STATE_STANDBY: + return "Standby" + case CALLBACK_STATE_SCHEDULED: + return "Scheduled" + case CALLBACK_STATE_BACKING_OFF: + return "BackingOff" + case CALLBACK_STATE_FAILED: + return "Failed" + case CALLBACK_STATE_SUCCEEDED: + return "Succeeded" + case CALLBACK_STATE_BLOCKED: + return "Blocked" + default: + return strconv.Itoa(int(x)) + } + +} + +func (CallbackState) Descriptor() protoreflect.EnumDescriptor { + return file_temporal_api_enums_v1_common_proto_enumTypes[3].Descriptor() +} + +func (CallbackState) Type() protoreflect.EnumType { + return &file_temporal_api_enums_v1_common_proto_enumTypes[3] +} + +func (x CallbackState) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// State of a pending Nexus operation. +type PendingNexusOperationState int32 + +const ( + // Default value, unspecified state. + PENDING_NEXUS_OPERATION_STATE_UNSPECIFIED PendingNexusOperationState = 0 + // Operation is in the queue waiting to be executed or is currently executing. + PENDING_NEXUS_OPERATION_STATE_SCHEDULED PendingNexusOperationState = 1 + // Operation has failed with a retryable error and is backing off before the next attempt. + PENDING_NEXUS_OPERATION_STATE_BACKING_OFF PendingNexusOperationState = 2 + // Operation was started and will complete asynchronously. + PENDING_NEXUS_OPERATION_STATE_STARTED PendingNexusOperationState = 3 + // Operation is blocked (eg: by circuit breaker). + PENDING_NEXUS_OPERATION_STATE_BLOCKED PendingNexusOperationState = 4 +) + +// Enum value maps for PendingNexusOperationState. +var ( + PendingNexusOperationState_name = map[int32]string{ + 0: "PENDING_NEXUS_OPERATION_STATE_UNSPECIFIED", + 1: "PENDING_NEXUS_OPERATION_STATE_SCHEDULED", + 2: "PENDING_NEXUS_OPERATION_STATE_BACKING_OFF", + 3: "PENDING_NEXUS_OPERATION_STATE_STARTED", + 4: "PENDING_NEXUS_OPERATION_STATE_BLOCKED", + } + PendingNexusOperationState_value = map[string]int32{ + "PENDING_NEXUS_OPERATION_STATE_UNSPECIFIED": 0, + "PENDING_NEXUS_OPERATION_STATE_SCHEDULED": 1, + "PENDING_NEXUS_OPERATION_STATE_BACKING_OFF": 2, + "PENDING_NEXUS_OPERATION_STATE_STARTED": 3, + "PENDING_NEXUS_OPERATION_STATE_BLOCKED": 4, + } +) + +func (x PendingNexusOperationState) Enum() *PendingNexusOperationState { + p := new(PendingNexusOperationState) + *p = x + return p +} + +func (x PendingNexusOperationState) String() string { + switch x { + case PENDING_NEXUS_OPERATION_STATE_UNSPECIFIED: + return "Unspecified" + case PENDING_NEXUS_OPERATION_STATE_SCHEDULED: + return "Scheduled" + case PENDING_NEXUS_OPERATION_STATE_BACKING_OFF: + return "BackingOff" + case PENDING_NEXUS_OPERATION_STATE_STARTED: + return "Started" + case PENDING_NEXUS_OPERATION_STATE_BLOCKED: + return "Blocked" + default: + return strconv.Itoa(int(x)) + } + +} + +func (PendingNexusOperationState) Descriptor() protoreflect.EnumDescriptor { + return file_temporal_api_enums_v1_common_proto_enumTypes[4].Descriptor() +} + +func (PendingNexusOperationState) Type() protoreflect.EnumType { + return &file_temporal_api_enums_v1_common_proto_enumTypes[4] +} + +func (x PendingNexusOperationState) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// State of a Nexus operation cancellation. +type NexusOperationCancellationState int32 + +const ( + // Default value, unspecified state. + NEXUS_OPERATION_CANCELLATION_STATE_UNSPECIFIED NexusOperationCancellationState = 0 + // Cancellation request is in the queue waiting to be executed or is currently executing. + NEXUS_OPERATION_CANCELLATION_STATE_SCHEDULED NexusOperationCancellationState = 1 + // Cancellation request has failed with a retryable error and is backing off before the next attempt. + NEXUS_OPERATION_CANCELLATION_STATE_BACKING_OFF NexusOperationCancellationState = 2 + // Cancellation request succeeded. + NEXUS_OPERATION_CANCELLATION_STATE_SUCCEEDED NexusOperationCancellationState = 3 + // Cancellation request failed with a non-retryable error. + NEXUS_OPERATION_CANCELLATION_STATE_FAILED NexusOperationCancellationState = 4 + // The associated operation timed out - exceeded the user supplied schedule-to-close timeout. + NEXUS_OPERATION_CANCELLATION_STATE_TIMED_OUT NexusOperationCancellationState = 5 + // Cancellation request is blocked (eg: by circuit breaker). + NEXUS_OPERATION_CANCELLATION_STATE_BLOCKED NexusOperationCancellationState = 6 +) + +// Enum value maps for NexusOperationCancellationState. +var ( + NexusOperationCancellationState_name = map[int32]string{ + 0: "NEXUS_OPERATION_CANCELLATION_STATE_UNSPECIFIED", + 1: "NEXUS_OPERATION_CANCELLATION_STATE_SCHEDULED", + 2: "NEXUS_OPERATION_CANCELLATION_STATE_BACKING_OFF", + 3: "NEXUS_OPERATION_CANCELLATION_STATE_SUCCEEDED", + 4: "NEXUS_OPERATION_CANCELLATION_STATE_FAILED", + 5: "NEXUS_OPERATION_CANCELLATION_STATE_TIMED_OUT", + 6: "NEXUS_OPERATION_CANCELLATION_STATE_BLOCKED", + } + NexusOperationCancellationState_value = map[string]int32{ + "NEXUS_OPERATION_CANCELLATION_STATE_UNSPECIFIED": 0, + "NEXUS_OPERATION_CANCELLATION_STATE_SCHEDULED": 1, + "NEXUS_OPERATION_CANCELLATION_STATE_BACKING_OFF": 2, + "NEXUS_OPERATION_CANCELLATION_STATE_SUCCEEDED": 3, + "NEXUS_OPERATION_CANCELLATION_STATE_FAILED": 4, + "NEXUS_OPERATION_CANCELLATION_STATE_TIMED_OUT": 5, + "NEXUS_OPERATION_CANCELLATION_STATE_BLOCKED": 6, + } +) + +func (x NexusOperationCancellationState) Enum() *NexusOperationCancellationState { + p := new(NexusOperationCancellationState) + *p = x + return p +} + +func (x NexusOperationCancellationState) String() string { + switch x { + case NEXUS_OPERATION_CANCELLATION_STATE_UNSPECIFIED: + return "Unspecified" + case NEXUS_OPERATION_CANCELLATION_STATE_SCHEDULED: + return "Scheduled" + case NEXUS_OPERATION_CANCELLATION_STATE_BACKING_OFF: + return "BackingOff" + case NEXUS_OPERATION_CANCELLATION_STATE_SUCCEEDED: + return "Succeeded" + case NEXUS_OPERATION_CANCELLATION_STATE_FAILED: + return "Failed" + case NEXUS_OPERATION_CANCELLATION_STATE_TIMED_OUT: + return "TimedOut" + case NEXUS_OPERATION_CANCELLATION_STATE_BLOCKED: + return "Blocked" + default: + return strconv.Itoa(int(x)) + } + +} + +func (NexusOperationCancellationState) Descriptor() protoreflect.EnumDescriptor { + return file_temporal_api_enums_v1_common_proto_enumTypes[5].Descriptor() +} + +func (NexusOperationCancellationState) Type() protoreflect.EnumType { + return &file_temporal_api_enums_v1_common_proto_enumTypes[5] +} + +func (x NexusOperationCancellationState) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +type WorkflowRuleActionScope int32 + +const ( + // Default value, unspecified scope. + WORKFLOW_RULE_ACTION_SCOPE_UNSPECIFIED WorkflowRuleActionScope = 0 + // The action will be applied to the entire workflow. + WORKFLOW_RULE_ACTION_SCOPE_WORKFLOW WorkflowRuleActionScope = 1 + // The action will be applied to a specific activity. + WORKFLOW_RULE_ACTION_SCOPE_ACTIVITY WorkflowRuleActionScope = 2 +) + +// Enum value maps for WorkflowRuleActionScope. +var ( + WorkflowRuleActionScope_name = map[int32]string{ + 0: "WORKFLOW_RULE_ACTION_SCOPE_UNSPECIFIED", + 1: "WORKFLOW_RULE_ACTION_SCOPE_WORKFLOW", + 2: "WORKFLOW_RULE_ACTION_SCOPE_ACTIVITY", + } + WorkflowRuleActionScope_value = map[string]int32{ + "WORKFLOW_RULE_ACTION_SCOPE_UNSPECIFIED": 0, + "WORKFLOW_RULE_ACTION_SCOPE_WORKFLOW": 1, + "WORKFLOW_RULE_ACTION_SCOPE_ACTIVITY": 2, + } +) + +func (x WorkflowRuleActionScope) Enum() *WorkflowRuleActionScope { + p := new(WorkflowRuleActionScope) + *p = x + return p +} + +func (x WorkflowRuleActionScope) String() string { + switch x { + case WORKFLOW_RULE_ACTION_SCOPE_UNSPECIFIED: + return "Unspecified" + case WORKFLOW_RULE_ACTION_SCOPE_WORKFLOW: + return "Workflow" + case WORKFLOW_RULE_ACTION_SCOPE_ACTIVITY: + return "Activity" + default: + return strconv.Itoa(int(x)) + } + +} + +func (WorkflowRuleActionScope) Descriptor() protoreflect.EnumDescriptor { + return file_temporal_api_enums_v1_common_proto_enumTypes[6].Descriptor() +} + +func (WorkflowRuleActionScope) Type() protoreflect.EnumType { + return &file_temporal_api_enums_v1_common_proto_enumTypes[6] +} + +func (x WorkflowRuleActionScope) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +type ApplicationErrorCategory int32 + +const ( + APPLICATION_ERROR_CATEGORY_UNSPECIFIED ApplicationErrorCategory = 0 + // Expected application error with little/no severity. + APPLICATION_ERROR_CATEGORY_BENIGN ApplicationErrorCategory = 1 +) + +// Enum value maps for ApplicationErrorCategory. +var ( + ApplicationErrorCategory_name = map[int32]string{ + 0: "APPLICATION_ERROR_CATEGORY_UNSPECIFIED", + 1: "APPLICATION_ERROR_CATEGORY_BENIGN", + } + ApplicationErrorCategory_value = map[string]int32{ + "APPLICATION_ERROR_CATEGORY_UNSPECIFIED": 0, + "APPLICATION_ERROR_CATEGORY_BENIGN": 1, + } +) + +func (x ApplicationErrorCategory) Enum() *ApplicationErrorCategory { + p := new(ApplicationErrorCategory) + *p = x + return p +} + +func (x ApplicationErrorCategory) String() string { + switch x { + case APPLICATION_ERROR_CATEGORY_UNSPECIFIED: + return "Unspecified" + case APPLICATION_ERROR_CATEGORY_BENIGN: + return "Benign" + default: + return strconv.Itoa(int(x)) + } + +} + +func (ApplicationErrorCategory) Descriptor() protoreflect.EnumDescriptor { + return file_temporal_api_enums_v1_common_proto_enumTypes[7].Descriptor() +} + +func (ApplicationErrorCategory) Type() protoreflect.EnumType { + return &file_temporal_api_enums_v1_common_proto_enumTypes[7] +} + +func (x ApplicationErrorCategory) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// (-- api-linter: core::0216::synonyms=disabled +// +// aip.dev/not-precedent: It seems we have both state and status, and status is a better fit for workers. --) +type WorkerStatus int32 + +const ( + WORKER_STATUS_UNSPECIFIED WorkerStatus = 0 + WORKER_STATUS_RUNNING WorkerStatus = 1 + WORKER_STATUS_SHUTTING_DOWN WorkerStatus = 2 + WORKER_STATUS_SHUTDOWN WorkerStatus = 3 +) + +// Enum value maps for WorkerStatus. +var ( + WorkerStatus_name = map[int32]string{ + 0: "WORKER_STATUS_UNSPECIFIED", + 1: "WORKER_STATUS_RUNNING", + 2: "WORKER_STATUS_SHUTTING_DOWN", + 3: "WORKER_STATUS_SHUTDOWN", + } + WorkerStatus_value = map[string]int32{ + "WORKER_STATUS_UNSPECIFIED": 0, + "WORKER_STATUS_RUNNING": 1, + "WORKER_STATUS_SHUTTING_DOWN": 2, + "WORKER_STATUS_SHUTDOWN": 3, + } +) + +func (x WorkerStatus) Enum() *WorkerStatus { + p := new(WorkerStatus) + *p = x + return p +} + +func (x WorkerStatus) String() string { + switch x { + case WORKER_STATUS_UNSPECIFIED: + return "Unspecified" + case WORKER_STATUS_RUNNING: + return "Running" + case WORKER_STATUS_SHUTTING_DOWN: + return "ShuttingDown" + case WORKER_STATUS_SHUTDOWN: + return "Shutdown" + default: + return strconv.Itoa(int(x)) + } + +} + +func (WorkerStatus) Descriptor() protoreflect.EnumDescriptor { + return file_temporal_api_enums_v1_common_proto_enumTypes[8].Descriptor() +} + +func (WorkerStatus) Type() protoreflect.EnumType { + return &file_temporal_api_enums_v1_common_proto_enumTypes[8] +} + +func (x WorkerStatus) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +var File_temporal_api_enums_v1_common_proto protoreflect.FileDescriptor + +const file_temporal_api_enums_v1_common_proto_rawDesc = "" + + "\n" + + "\"temporal/api/enums/v1/common.proto\x12\x15temporal.api.enums.v1*_\n" + + "\fEncodingType\x12\x1d\n" + + "\x19ENCODING_TYPE_UNSPECIFIED\x10\x00\x12\x18\n" + + "\x14ENCODING_TYPE_PROTO3\x10\x01\x12\x16\n" + + "\x12ENCODING_TYPE_JSON\x10\x02*\x91\x02\n" + + "\x10IndexedValueType\x12\"\n" + + "\x1eINDEXED_VALUE_TYPE_UNSPECIFIED\x10\x00\x12\x1b\n" + + "\x17INDEXED_VALUE_TYPE_TEXT\x10\x01\x12\x1e\n" + + "\x1aINDEXED_VALUE_TYPE_KEYWORD\x10\x02\x12\x1a\n" + + "\x16INDEXED_VALUE_TYPE_INT\x10\x03\x12\x1d\n" + + "\x19INDEXED_VALUE_TYPE_DOUBLE\x10\x04\x12\x1b\n" + + "\x17INDEXED_VALUE_TYPE_BOOL\x10\x05\x12\x1f\n" + + "\x1bINDEXED_VALUE_TYPE_DATETIME\x10\x06\x12#\n" + + "\x1fINDEXED_VALUE_TYPE_KEYWORD_LIST\x10\a*^\n" + + "\bSeverity\x12\x18\n" + + "\x14SEVERITY_UNSPECIFIED\x10\x00\x12\x11\n" + + "\rSEVERITY_HIGH\x10\x01\x12\x13\n" + + "\x0fSEVERITY_MEDIUM\x10\x02\x12\x10\n" + + "\fSEVERITY_LOW\x10\x03*\xde\x01\n" + + "\rCallbackState\x12\x1e\n" + + "\x1aCALLBACK_STATE_UNSPECIFIED\x10\x00\x12\x1a\n" + + "\x16CALLBACK_STATE_STANDBY\x10\x01\x12\x1c\n" + + "\x18CALLBACK_STATE_SCHEDULED\x10\x02\x12\x1e\n" + + "\x1aCALLBACK_STATE_BACKING_OFF\x10\x03\x12\x19\n" + + "\x15CALLBACK_STATE_FAILED\x10\x04\x12\x1c\n" + + "\x18CALLBACK_STATE_SUCCEEDED\x10\x05\x12\x1a\n" + + "\x16CALLBACK_STATE_BLOCKED\x10\x06*\xfd\x01\n" + + "\x1aPendingNexusOperationState\x12-\n" + + ")PENDING_NEXUS_OPERATION_STATE_UNSPECIFIED\x10\x00\x12+\n" + + "'PENDING_NEXUS_OPERATION_STATE_SCHEDULED\x10\x01\x12-\n" + + ")PENDING_NEXUS_OPERATION_STATE_BACKING_OFF\x10\x02\x12)\n" + + "%PENDING_NEXUS_OPERATION_STATE_STARTED\x10\x03\x12)\n" + + "%PENDING_NEXUS_OPERATION_STATE_BLOCKED\x10\x04*\xfe\x02\n" + + "\x1fNexusOperationCancellationState\x122\n" + + ".NEXUS_OPERATION_CANCELLATION_STATE_UNSPECIFIED\x10\x00\x120\n" + + ",NEXUS_OPERATION_CANCELLATION_STATE_SCHEDULED\x10\x01\x122\n" + + ".NEXUS_OPERATION_CANCELLATION_STATE_BACKING_OFF\x10\x02\x120\n" + + ",NEXUS_OPERATION_CANCELLATION_STATE_SUCCEEDED\x10\x03\x12-\n" + + ")NEXUS_OPERATION_CANCELLATION_STATE_FAILED\x10\x04\x120\n" + + ",NEXUS_OPERATION_CANCELLATION_STATE_TIMED_OUT\x10\x05\x12.\n" + + "*NEXUS_OPERATION_CANCELLATION_STATE_BLOCKED\x10\x06*\x97\x01\n" + + "\x17WorkflowRuleActionScope\x12*\n" + + "&WORKFLOW_RULE_ACTION_SCOPE_UNSPECIFIED\x10\x00\x12'\n" + + "#WORKFLOW_RULE_ACTION_SCOPE_WORKFLOW\x10\x01\x12'\n" + + "#WORKFLOW_RULE_ACTION_SCOPE_ACTIVITY\x10\x02*m\n" + + "\x18ApplicationErrorCategory\x12*\n" + + "&APPLICATION_ERROR_CATEGORY_UNSPECIFIED\x10\x00\x12%\n" + + "!APPLICATION_ERROR_CATEGORY_BENIGN\x10\x01*\x85\x01\n" + + "\fWorkerStatus\x12\x1d\n" + + "\x19WORKER_STATUS_UNSPECIFIED\x10\x00\x12\x19\n" + + "\x15WORKER_STATUS_RUNNING\x10\x01\x12\x1f\n" + + "\x1bWORKER_STATUS_SHUTTING_DOWN\x10\x02\x12\x1a\n" + + "\x16WORKER_STATUS_SHUTDOWN\x10\x03B\x83\x01\n" + + "\x18io.temporal.api.enums.v1B\vCommonProtoP\x01Z!go.temporal.io/api/enums/v1;enums\xaa\x02\x17Temporalio.Api.Enums.V1\xea\x02\x1aTemporalio::Api::Enums::V1b\x06proto3" + +var file_temporal_api_enums_v1_common_proto_enumTypes = make([]protoimpl.EnumInfo, 9) +var file_temporal_api_enums_v1_common_proto_goTypes = []any{ + (EncodingType)(0), // 0: temporal.api.enums.v1.EncodingType + (IndexedValueType)(0), // 1: temporal.api.enums.v1.IndexedValueType + (Severity)(0), // 2: temporal.api.enums.v1.Severity + (CallbackState)(0), // 3: temporal.api.enums.v1.CallbackState + (PendingNexusOperationState)(0), // 4: temporal.api.enums.v1.PendingNexusOperationState + (NexusOperationCancellationState)(0), // 5: temporal.api.enums.v1.NexusOperationCancellationState + (WorkflowRuleActionScope)(0), // 6: temporal.api.enums.v1.WorkflowRuleActionScope + (ApplicationErrorCategory)(0), // 7: temporal.api.enums.v1.ApplicationErrorCategory + (WorkerStatus)(0), // 8: temporal.api.enums.v1.WorkerStatus +} +var file_temporal_api_enums_v1_common_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_temporal_api_enums_v1_common_proto_init() } +func file_temporal_api_enums_v1_common_proto_init() { + if File_temporal_api_enums_v1_common_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_api_enums_v1_common_proto_rawDesc), len(file_temporal_api_enums_v1_common_proto_rawDesc)), + NumEnums: 9, + NumMessages: 0, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_temporal_api_enums_v1_common_proto_goTypes, + DependencyIndexes: file_temporal_api_enums_v1_common_proto_depIdxs, + EnumInfos: file_temporal_api_enums_v1_common_proto_enumTypes, + }.Build() + File_temporal_api_enums_v1_common_proto = out.File + file_temporal_api_enums_v1_common_proto_goTypes = nil + file_temporal_api_enums_v1_common_proto_depIdxs = nil +} diff --git a/enums/v1/deployment.pb.go b/enums/v1/deployment.pb.go index 48b69609..69889e59 100644 --- a/enums/v1/deployment.pb.go +++ b/enums/v1/deployment.pb.go @@ -4,12 +4,13 @@ // protoc // source: temporal/api/enums/v1/deployment.proto +//go:build !protoopaque + package enums import ( reflect "reflect" "strconv" - sync "sync" unsafe "unsafe" protoreflect "google.golang.org/protobuf/reflect/protoreflect" @@ -92,11 +93,6 @@ func (x DeploymentReachability) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use DeploymentReachability.Descriptor instead. -func (DeploymentReachability) EnumDescriptor() ([]byte, []int) { - return file_temporal_api_enums_v1_deployment_proto_rawDescGZIP(), []int{0} -} - // (-- api-linter: core::0216::synonyms=disabled // // aip.dev/not-precedent: Call this status because it is . --) @@ -165,11 +161,6 @@ func (x VersionDrainageStatus) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use VersionDrainageStatus.Descriptor instead. -func (VersionDrainageStatus) EnumDescriptor() ([]byte, []int) { - return file_temporal_api_enums_v1_deployment_proto_rawDescGZIP(), []int{1} -} - // Versioning Mode of a worker is set by the app developer in the worker code, and specifies the // behavior of the system in the following related aspects: // - Whether or not Temporal Server considers this worker's version (Build ID) when dispatching @@ -248,11 +239,6 @@ func (x WorkerVersioningMode) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use WorkerVersioningMode.Descriptor instead. -func (WorkerVersioningMode) EnumDescriptor() ([]byte, []int) { - return file_temporal_api_enums_v1_deployment_proto_rawDescGZIP(), []int{2} -} - // (-- api-linter: core::0216::synonyms=disabled // // aip.dev/not-precedent: Call this status because it is . --) @@ -341,11 +327,6 @@ func (x WorkerDeploymentVersionStatus) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use WorkerDeploymentVersionStatus.Descriptor instead. -func (WorkerDeploymentVersionStatus) EnumDescriptor() ([]byte, []int) { - return file_temporal_api_enums_v1_deployment_proto_rawDescGZIP(), []int{3} -} - var File_temporal_api_enums_v1_deployment_proto protoreflect.FileDescriptor const file_temporal_api_enums_v1_deployment_proto_rawDesc = "" + @@ -373,18 +354,6 @@ const file_temporal_api_enums_v1_deployment_proto_rawDesc = "" + "(WORKER_DEPLOYMENT_VERSION_STATUS_DRAINED\x10\x05B\x87\x01\n" + "\x18io.temporal.api.enums.v1B\x0fDeploymentProtoP\x01Z!go.temporal.io/api/enums/v1;enums\xaa\x02\x17Temporalio.Api.Enums.V1\xea\x02\x1aTemporalio::Api::Enums::V1b\x06proto3" -var ( - file_temporal_api_enums_v1_deployment_proto_rawDescOnce sync.Once - file_temporal_api_enums_v1_deployment_proto_rawDescData []byte -) - -func file_temporal_api_enums_v1_deployment_proto_rawDescGZIP() []byte { - file_temporal_api_enums_v1_deployment_proto_rawDescOnce.Do(func() { - file_temporal_api_enums_v1_deployment_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_api_enums_v1_deployment_proto_rawDesc), len(file_temporal_api_enums_v1_deployment_proto_rawDesc))) - }) - return file_temporal_api_enums_v1_deployment_proto_rawDescData -} - var file_temporal_api_enums_v1_deployment_proto_enumTypes = make([]protoimpl.EnumInfo, 4) var file_temporal_api_enums_v1_deployment_proto_goTypes = []any{ (DeploymentReachability)(0), // 0: temporal.api.enums.v1.DeploymentReachability diff --git a/enums/v1/deployment_protoopaque.pb.go b/enums/v1/deployment_protoopaque.pb.go new file mode 100644 index 00000000..ac9b8fb0 --- /dev/null +++ b/enums/v1/deployment_protoopaque.pb.go @@ -0,0 +1,394 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// plugins: +// protoc-gen-go +// protoc +// source: temporal/api/enums/v1/deployment.proto + +//go:build protoopaque + +package enums + +import ( + reflect "reflect" + "strconv" + unsafe "unsafe" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Specify the reachability level for a deployment so users can decide if it is time to +// decommission the deployment. +type DeploymentReachability int32 + +const ( + // Reachability level is not specified. + DEPLOYMENT_REACHABILITY_UNSPECIFIED DeploymentReachability = 0 + // The deployment is reachable by new and/or open workflows. The deployment cannot be + // decommissioned safely. + DEPLOYMENT_REACHABILITY_REACHABLE DeploymentReachability = 1 + // The deployment is not reachable by new or open workflows, but might be still needed by + // Queries sent to closed workflows. The deployment can be decommissioned safely if user does + // not query closed workflows. + DEPLOYMENT_REACHABILITY_CLOSED_WORKFLOWS_ONLY DeploymentReachability = 2 + // The deployment is not reachable by any workflow because all the workflows who needed this + // deployment went out of retention period. The deployment can be decommissioned safely. + DEPLOYMENT_REACHABILITY_UNREACHABLE DeploymentReachability = 3 +) + +// Enum value maps for DeploymentReachability. +var ( + DeploymentReachability_name = map[int32]string{ + 0: "DEPLOYMENT_REACHABILITY_UNSPECIFIED", + 1: "DEPLOYMENT_REACHABILITY_REACHABLE", + 2: "DEPLOYMENT_REACHABILITY_CLOSED_WORKFLOWS_ONLY", + 3: "DEPLOYMENT_REACHABILITY_UNREACHABLE", + } + DeploymentReachability_value = map[string]int32{ + "DEPLOYMENT_REACHABILITY_UNSPECIFIED": 0, + "DEPLOYMENT_REACHABILITY_REACHABLE": 1, + "DEPLOYMENT_REACHABILITY_CLOSED_WORKFLOWS_ONLY": 2, + "DEPLOYMENT_REACHABILITY_UNREACHABLE": 3, + } +) + +func (x DeploymentReachability) Enum() *DeploymentReachability { + p := new(DeploymentReachability) + *p = x + return p +} + +func (x DeploymentReachability) String() string { + switch x { + case DEPLOYMENT_REACHABILITY_UNSPECIFIED: + return "Unspecified" + case DEPLOYMENT_REACHABILITY_REACHABLE: + return "Reachable" + case DEPLOYMENT_REACHABILITY_CLOSED_WORKFLOWS_ONLY: + return "ClosedWorkflowsOnly" + case DEPLOYMENT_REACHABILITY_UNREACHABLE: + return "Unreachable" + default: + return strconv.Itoa(int(x)) + } + +} + +func (DeploymentReachability) Descriptor() protoreflect.EnumDescriptor { + return file_temporal_api_enums_v1_deployment_proto_enumTypes[0].Descriptor() +} + +func (DeploymentReachability) Type() protoreflect.EnumType { + return &file_temporal_api_enums_v1_deployment_proto_enumTypes[0] +} + +func (x DeploymentReachability) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// (-- api-linter: core::0216::synonyms=disabled +// +// aip.dev/not-precedent: Call this status because it is . --) +// +// Specify the drainage status for a Worker Deployment Version so users can decide whether they +// can safely decommission the version. +// Experimental. Worker Deployments are experimental and might significantly change in the future. +type VersionDrainageStatus int32 + +const ( + // Drainage Status is not specified. + VERSION_DRAINAGE_STATUS_UNSPECIFIED VersionDrainageStatus = 0 + // The Worker Deployment Version is not used by new workflows but is still used by + // open pinned workflows. The version cannot be decommissioned safely. + VERSION_DRAINAGE_STATUS_DRAINING VersionDrainageStatus = 1 + // The Worker Deployment Version is not used by new or open workflows, but might be still needed by + // Queries sent to closed workflows. The version can be decommissioned safely if user does + // not query closed workflows. If the user does query closed workflows for some time x after + // workflows are closed, they should decommission the version after it has been drained for that duration. + VERSION_DRAINAGE_STATUS_DRAINED VersionDrainageStatus = 2 +) + +// Enum value maps for VersionDrainageStatus. +var ( + VersionDrainageStatus_name = map[int32]string{ + 0: "VERSION_DRAINAGE_STATUS_UNSPECIFIED", + 1: "VERSION_DRAINAGE_STATUS_DRAINING", + 2: "VERSION_DRAINAGE_STATUS_DRAINED", + } + VersionDrainageStatus_value = map[string]int32{ + "VERSION_DRAINAGE_STATUS_UNSPECIFIED": 0, + "VERSION_DRAINAGE_STATUS_DRAINING": 1, + "VERSION_DRAINAGE_STATUS_DRAINED": 2, + } +) + +func (x VersionDrainageStatus) Enum() *VersionDrainageStatus { + p := new(VersionDrainageStatus) + *p = x + return p +} + +func (x VersionDrainageStatus) String() string { + switch x { + case VERSION_DRAINAGE_STATUS_UNSPECIFIED: + return "Unspecified" + case VERSION_DRAINAGE_STATUS_DRAINING: + return "Draining" + case VERSION_DRAINAGE_STATUS_DRAINED: + return "Drained" + default: + return strconv.Itoa(int(x)) + } + +} + +func (VersionDrainageStatus) Descriptor() protoreflect.EnumDescriptor { + return file_temporal_api_enums_v1_deployment_proto_enumTypes[1].Descriptor() +} + +func (VersionDrainageStatus) Type() protoreflect.EnumType { + return &file_temporal_api_enums_v1_deployment_proto_enumTypes[1] +} + +func (x VersionDrainageStatus) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Versioning Mode of a worker is set by the app developer in the worker code, and specifies the +// behavior of the system in the following related aspects: +// - Whether or not Temporal Server considers this worker's version (Build ID) when dispatching +// tasks to it. +// - Whether or not the workflows processed by this worker are versioned using the worker's version. +// +// Experimental. Worker Deployments are experimental and might significantly change in the future. +type WorkerVersioningMode int32 + +const ( + WORKER_VERSIONING_MODE_UNSPECIFIED WorkerVersioningMode = 0 + // Workers with this mode are not distinguished from each other for task routing, even if they + // have different Build IDs. + // Workflows processed by this worker will be unversioned and user needs to use Patching to keep + // the new code compatible with prior versions. + // This mode is recommended to be used along with Rolling Upgrade deployment strategies. + // Workers with this mode are represented by the special string `__unversioned__` in the APIs. + WORKER_VERSIONING_MODE_UNVERSIONED WorkerVersioningMode = 1 + // Workers with this mode are part of a Worker Deployment Version which is identified as + // ".". Such workers are called "versioned" as opposed to + // "unversioned". + // Each Deployment Version is distinguished from other Versions for task routing and users can + // configure Temporal Server to send tasks to a particular Version (see + // `WorkerDeploymentInfo.routing_config`). This mode is the best option for Blue/Green and + // Rainbow strategies (but typically not suitable for Rolling upgrades.) + // Workflow Versioning Behaviors are enabled in this mode: each workflow type must choose + // between the Pinned and AutoUpgrade behaviors. Depending on the chosen behavior, the user may + // or may not need to use Patching to keep the new code compatible with prior versions. (see + // VersioningBehavior enum.) + WORKER_VERSIONING_MODE_VERSIONED WorkerVersioningMode = 2 +) + +// Enum value maps for WorkerVersioningMode. +var ( + WorkerVersioningMode_name = map[int32]string{ + 0: "WORKER_VERSIONING_MODE_UNSPECIFIED", + 1: "WORKER_VERSIONING_MODE_UNVERSIONED", + 2: "WORKER_VERSIONING_MODE_VERSIONED", + } + WorkerVersioningMode_value = map[string]int32{ + "WORKER_VERSIONING_MODE_UNSPECIFIED": 0, + "WORKER_VERSIONING_MODE_UNVERSIONED": 1, + "WORKER_VERSIONING_MODE_VERSIONED": 2, + } +) + +func (x WorkerVersioningMode) Enum() *WorkerVersioningMode { + p := new(WorkerVersioningMode) + *p = x + return p +} + +func (x WorkerVersioningMode) String() string { + switch x { + case WORKER_VERSIONING_MODE_UNSPECIFIED: + return "Unspecified" + case WORKER_VERSIONING_MODE_UNVERSIONED: + return "Unversioned" + case WORKER_VERSIONING_MODE_VERSIONED: + return "Versioned" + default: + return strconv.Itoa(int(x)) + } + +} + +func (WorkerVersioningMode) Descriptor() protoreflect.EnumDescriptor { + return file_temporal_api_enums_v1_deployment_proto_enumTypes[2].Descriptor() +} + +func (WorkerVersioningMode) Type() protoreflect.EnumType { + return &file_temporal_api_enums_v1_deployment_proto_enumTypes[2] +} + +func (x WorkerVersioningMode) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// (-- api-linter: core::0216::synonyms=disabled +// +// aip.dev/not-precedent: Call this status because it is . --) +// +// Specify the status of a Worker Deployment Version. +// Experimental. Worker Deployments are experimental and might significantly change in the future. +type WorkerDeploymentVersionStatus int32 + +const ( + WORKER_DEPLOYMENT_VERSION_STATUS_UNSPECIFIED WorkerDeploymentVersionStatus = 0 + // The Worker Deployment Version has been created inside the Worker Deployment but is not used by any + // workflow executions. These Versions can still have workflows if they have an explicit Versioning Override targeting + // this Version. Such Versioning Override could be set at workflow start time, or at a later time via `UpdateWorkflowExecutionOptions`. + WORKER_DEPLOYMENT_VERSION_STATUS_INACTIVE WorkerDeploymentVersionStatus = 1 + // The Worker Deployment Version is the current version of the Worker Deployment. All new workflow executions + // and tasks of existing unversioned or AutoUpgrade workflows are routed to this version. + WORKER_DEPLOYMENT_VERSION_STATUS_CURRENT WorkerDeploymentVersionStatus = 2 + // The Worker Deployment Version is the ramping version of the Worker Deployment. A subset of new Pinned workflow executions are + // routed to this version. Moreover, a portion of existing unversioned or AutoUpgrade workflow executions are also routed to this version. + WORKER_DEPLOYMENT_VERSION_STATUS_RAMPING WorkerDeploymentVersionStatus = 3 + // The Worker Deployment Version is not used by new workflows but is still used by + // open pinned workflows. The version cannot be decommissioned safely. + WORKER_DEPLOYMENT_VERSION_STATUS_DRAINING WorkerDeploymentVersionStatus = 4 + // The Worker Deployment Version is not used by new or open workflows, but might be still needed by + // Queries sent to closed workflows. The version can be decommissioned safely if user does + // not query closed workflows. If the user does query closed workflows for some time x after + // workflows are closed, they should decommission the version after it has been drained for that duration. + WORKER_DEPLOYMENT_VERSION_STATUS_DRAINED WorkerDeploymentVersionStatus = 5 +) + +// Enum value maps for WorkerDeploymentVersionStatus. +var ( + WorkerDeploymentVersionStatus_name = map[int32]string{ + 0: "WORKER_DEPLOYMENT_VERSION_STATUS_UNSPECIFIED", + 1: "WORKER_DEPLOYMENT_VERSION_STATUS_INACTIVE", + 2: "WORKER_DEPLOYMENT_VERSION_STATUS_CURRENT", + 3: "WORKER_DEPLOYMENT_VERSION_STATUS_RAMPING", + 4: "WORKER_DEPLOYMENT_VERSION_STATUS_DRAINING", + 5: "WORKER_DEPLOYMENT_VERSION_STATUS_DRAINED", + } + WorkerDeploymentVersionStatus_value = map[string]int32{ + "WORKER_DEPLOYMENT_VERSION_STATUS_UNSPECIFIED": 0, + "WORKER_DEPLOYMENT_VERSION_STATUS_INACTIVE": 1, + "WORKER_DEPLOYMENT_VERSION_STATUS_CURRENT": 2, + "WORKER_DEPLOYMENT_VERSION_STATUS_RAMPING": 3, + "WORKER_DEPLOYMENT_VERSION_STATUS_DRAINING": 4, + "WORKER_DEPLOYMENT_VERSION_STATUS_DRAINED": 5, + } +) + +func (x WorkerDeploymentVersionStatus) Enum() *WorkerDeploymentVersionStatus { + p := new(WorkerDeploymentVersionStatus) + *p = x + return p +} + +func (x WorkerDeploymentVersionStatus) String() string { + switch x { + case WORKER_DEPLOYMENT_VERSION_STATUS_UNSPECIFIED: + return "Unspecified" + case WORKER_DEPLOYMENT_VERSION_STATUS_INACTIVE: + return "Inactive" + case WORKER_DEPLOYMENT_VERSION_STATUS_CURRENT: + return "Current" + case WORKER_DEPLOYMENT_VERSION_STATUS_RAMPING: + return "Ramping" + case WORKER_DEPLOYMENT_VERSION_STATUS_DRAINING: + return "Draining" + case WORKER_DEPLOYMENT_VERSION_STATUS_DRAINED: + return "Drained" + default: + return strconv.Itoa(int(x)) + } + +} + +func (WorkerDeploymentVersionStatus) Descriptor() protoreflect.EnumDescriptor { + return file_temporal_api_enums_v1_deployment_proto_enumTypes[3].Descriptor() +} + +func (WorkerDeploymentVersionStatus) Type() protoreflect.EnumType { + return &file_temporal_api_enums_v1_deployment_proto_enumTypes[3] +} + +func (x WorkerDeploymentVersionStatus) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +var File_temporal_api_enums_v1_deployment_proto protoreflect.FileDescriptor + +const file_temporal_api_enums_v1_deployment_proto_rawDesc = "" + + "\n" + + "&temporal/api/enums/v1/deployment.proto\x12\x15temporal.api.enums.v1*\xc4\x01\n" + + "\x16DeploymentReachability\x12'\n" + + "#DEPLOYMENT_REACHABILITY_UNSPECIFIED\x10\x00\x12%\n" + + "!DEPLOYMENT_REACHABILITY_REACHABLE\x10\x01\x121\n" + + "-DEPLOYMENT_REACHABILITY_CLOSED_WORKFLOWS_ONLY\x10\x02\x12'\n" + + "#DEPLOYMENT_REACHABILITY_UNREACHABLE\x10\x03*\x8b\x01\n" + + "\x15VersionDrainageStatus\x12'\n" + + "#VERSION_DRAINAGE_STATUS_UNSPECIFIED\x10\x00\x12$\n" + + " VERSION_DRAINAGE_STATUS_DRAINING\x10\x01\x12#\n" + + "\x1fVERSION_DRAINAGE_STATUS_DRAINED\x10\x02*\x8c\x01\n" + + "\x14WorkerVersioningMode\x12&\n" + + "\"WORKER_VERSIONING_MODE_UNSPECIFIED\x10\x00\x12&\n" + + "\"WORKER_VERSIONING_MODE_UNVERSIONED\x10\x01\x12$\n" + + " WORKER_VERSIONING_MODE_VERSIONED\x10\x02*\xb9\x02\n" + + "\x1dWorkerDeploymentVersionStatus\x120\n" + + ",WORKER_DEPLOYMENT_VERSION_STATUS_UNSPECIFIED\x10\x00\x12-\n" + + ")WORKER_DEPLOYMENT_VERSION_STATUS_INACTIVE\x10\x01\x12,\n" + + "(WORKER_DEPLOYMENT_VERSION_STATUS_CURRENT\x10\x02\x12,\n" + + "(WORKER_DEPLOYMENT_VERSION_STATUS_RAMPING\x10\x03\x12-\n" + + ")WORKER_DEPLOYMENT_VERSION_STATUS_DRAINING\x10\x04\x12,\n" + + "(WORKER_DEPLOYMENT_VERSION_STATUS_DRAINED\x10\x05B\x87\x01\n" + + "\x18io.temporal.api.enums.v1B\x0fDeploymentProtoP\x01Z!go.temporal.io/api/enums/v1;enums\xaa\x02\x17Temporalio.Api.Enums.V1\xea\x02\x1aTemporalio::Api::Enums::V1b\x06proto3" + +var file_temporal_api_enums_v1_deployment_proto_enumTypes = make([]protoimpl.EnumInfo, 4) +var file_temporal_api_enums_v1_deployment_proto_goTypes = []any{ + (DeploymentReachability)(0), // 0: temporal.api.enums.v1.DeploymentReachability + (VersionDrainageStatus)(0), // 1: temporal.api.enums.v1.VersionDrainageStatus + (WorkerVersioningMode)(0), // 2: temporal.api.enums.v1.WorkerVersioningMode + (WorkerDeploymentVersionStatus)(0), // 3: temporal.api.enums.v1.WorkerDeploymentVersionStatus +} +var file_temporal_api_enums_v1_deployment_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_temporal_api_enums_v1_deployment_proto_init() } +func file_temporal_api_enums_v1_deployment_proto_init() { + if File_temporal_api_enums_v1_deployment_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_api_enums_v1_deployment_proto_rawDesc), len(file_temporal_api_enums_v1_deployment_proto_rawDesc)), + NumEnums: 4, + NumMessages: 0, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_temporal_api_enums_v1_deployment_proto_goTypes, + DependencyIndexes: file_temporal_api_enums_v1_deployment_proto_depIdxs, + EnumInfos: file_temporal_api_enums_v1_deployment_proto_enumTypes, + }.Build() + File_temporal_api_enums_v1_deployment_proto = out.File + file_temporal_api_enums_v1_deployment_proto_goTypes = nil + file_temporal_api_enums_v1_deployment_proto_depIdxs = nil +} diff --git a/enums/v1/event_type.pb.go b/enums/v1/event_type.pb.go index 3fb58d00..5befbdae 100644 --- a/enums/v1/event_type.pb.go +++ b/enums/v1/event_type.pb.go @@ -4,12 +4,13 @@ // protoc // source: temporal/api/enums/v1/event_type.proto +//go:build !protoopaque + package enums import ( reflect "reflect" "strconv" - sync "sync" unsafe "unsafe" protoreflect "google.golang.org/protobuf/reflect/protoreflect" @@ -340,8 +341,6 @@ func (x EventType) String() string { case EVENT_TYPE_WORKFLOW_TASK_SCHEDULED: return "WorkflowTaskScheduled" case EVENT_TYPE_WORKFLOW_TASK_STARTED: - - // Deprecated: Use EventType.Descriptor instead. return "WorkflowTaskStarted" case EVENT_TYPE_WORKFLOW_TASK_COMPLETED: return "WorkflowTaskCompleted" @@ -448,6 +447,8 @@ func (x EventType) String() string { case EVENT_TYPE_WORKFLOW_EXECUTION_PAUSED: return "WorkflowExecutionPaused" case EVENT_TYPE_WORKFLOW_EXECUTION_UNPAUSED: + + // 0: temporal.api.enums.v1.EventType return "WorkflowExecutionUnpaused" default: return strconv.Itoa(int(x)) @@ -467,10 +468,6 @@ func (x EventType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -func (EventType) EnumDescriptor() ([]byte, []int) { - return file_temporal_api_enums_v1_event_type_proto_rawDescGZIP(), []int{0} -} - var File_temporal_api_enums_v1_event_type_proto protoreflect.FileDescriptor const file_temporal_api_enums_v1_event_type_proto_rawDesc = "" + @@ -540,21 +537,9 @@ const file_temporal_api_enums_v1_event_type_proto_rawDesc = "" + "&EVENT_TYPE_WORKFLOW_EXECUTION_UNPAUSED\x10;B\x86\x01\n" + "\x18io.temporal.api.enums.v1B\x0eEventTypeProtoP\x01Z!go.temporal.io/api/enums/v1;enums\xaa\x02\x17Temporalio.Api.Enums.V1\xea\x02\x1aTemporalio::Api::Enums::V1b\x06proto3" -var ( - file_temporal_api_enums_v1_event_type_proto_rawDescOnce sync.Once - file_temporal_api_enums_v1_event_type_proto_rawDescData []byte -) - -func file_temporal_api_enums_v1_event_type_proto_rawDescGZIP() []byte { - file_temporal_api_enums_v1_event_type_proto_rawDescOnce.Do(func() { - file_temporal_api_enums_v1_event_type_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_api_enums_v1_event_type_proto_rawDesc), len(file_temporal_api_enums_v1_event_type_proto_rawDesc))) - }) - return file_temporal_api_enums_v1_event_type_proto_rawDescData -} - var file_temporal_api_enums_v1_event_type_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_temporal_api_enums_v1_event_type_proto_goTypes = []any{ - (EventType)(0), // 0: temporal.api.enums.v1.EventType + (EventType)(0), } var file_temporal_api_enums_v1_event_type_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for method output_type diff --git a/enums/v1/event_type_protoopaque.pb.go b/enums/v1/event_type_protoopaque.pb.go new file mode 100644 index 00000000..7670c76b --- /dev/null +++ b/enums/v1/event_type_protoopaque.pb.go @@ -0,0 +1,574 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// plugins: +// protoc-gen-go +// protoc +// source: temporal/api/enums/v1/event_type.proto + +//go:build protoopaque + +package enums + +import ( + reflect "reflect" + "strconv" + unsafe "unsafe" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Whenever this list of events is changed do change the function shouldBufferEvent in mutableStateBuilder.go to make sure to do the correct event ordering +type EventType int32 + +const ( + // Place holder and should never appear in a Workflow execution history + EVENT_TYPE_UNSPECIFIED EventType = 0 + // Workflow execution has been triggered/started + // It contains Workflow execution inputs, as well as Workflow timeout configurations + EVENT_TYPE_WORKFLOW_EXECUTION_STARTED EventType = 1 + // Workflow execution has successfully completed and contains Workflow execution results + EVENT_TYPE_WORKFLOW_EXECUTION_COMPLETED EventType = 2 + // Workflow execution has unsuccessfully completed and contains the Workflow execution error + EVENT_TYPE_WORKFLOW_EXECUTION_FAILED EventType = 3 + // Workflow execution has timed out by the Temporal Server + // Usually due to the Workflow having not been completed within timeout settings + EVENT_TYPE_WORKFLOW_EXECUTION_TIMED_OUT EventType = 4 + // Workflow Task has been scheduled and the SDK client should now be able to process any new history events + EVENT_TYPE_WORKFLOW_TASK_SCHEDULED EventType = 5 + // Workflow Task has started and the SDK client has picked up the Workflow Task and is processing new history events + EVENT_TYPE_WORKFLOW_TASK_STARTED EventType = 6 + // Workflow Task has completed + // The SDK client picked up the Workflow Task and processed new history events + // SDK client may or may not ask the Temporal Server to do additional work, such as: + // EVENT_TYPE_ACTIVITY_TASK_SCHEDULED + // EVENT_TYPE_TIMER_STARTED + // EVENT_TYPE_UPSERT_WORKFLOW_SEARCH_ATTRIBUTES + // EVENT_TYPE_MARKER_RECORDED + // EVENT_TYPE_START_CHILD_WORKFLOW_EXECUTION_INITIATED + // EVENT_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED + // EVENT_TYPE_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED + // EVENT_TYPE_WORKFLOW_EXECUTION_COMPLETED + // EVENT_TYPE_WORKFLOW_EXECUTION_FAILED + // EVENT_TYPE_WORKFLOW_EXECUTION_CANCELED + // EVENT_TYPE_WORKFLOW_EXECUTION_CONTINUED_AS_NEW + EVENT_TYPE_WORKFLOW_TASK_COMPLETED EventType = 7 + // Workflow Task encountered a timeout + // Either an SDK client with a local cache was not available at the time, or it took too long for the SDK client to process the task + EVENT_TYPE_WORKFLOW_TASK_TIMED_OUT EventType = 8 + // Workflow Task encountered a failure + // Usually this means that the Workflow was non-deterministic + // However, the Workflow reset functionality also uses this event + EVENT_TYPE_WORKFLOW_TASK_FAILED EventType = 9 + // Activity Task was scheduled + // The SDK client should pick up this activity task and execute + // This event type contains activity inputs, as well as activity timeout configurations + EVENT_TYPE_ACTIVITY_TASK_SCHEDULED EventType = 10 + // Activity Task has started executing + // The SDK client has picked up the Activity Task and is processing the Activity invocation + EVENT_TYPE_ACTIVITY_TASK_STARTED EventType = 11 + // Activity Task has finished successfully + // The SDK client has picked up and successfully completed the Activity Task + // This event type contains Activity execution results + EVENT_TYPE_ACTIVITY_TASK_COMPLETED EventType = 12 + // Activity Task has finished unsuccessfully + // The SDK picked up the Activity Task but unsuccessfully completed it + // This event type contains Activity execution errors + EVENT_TYPE_ACTIVITY_TASK_FAILED EventType = 13 + // Activity has timed out according to the Temporal Server + // Activity did not complete within the timeout settings + EVENT_TYPE_ACTIVITY_TASK_TIMED_OUT EventType = 14 + // A request to cancel the Activity has occurred + // The SDK client will be able to confirm cancellation of an Activity during an Activity heartbeat + EVENT_TYPE_ACTIVITY_TASK_CANCEL_REQUESTED EventType = 15 + // Activity has been cancelled + EVENT_TYPE_ACTIVITY_TASK_CANCELED EventType = 16 + // A timer has started + EVENT_TYPE_TIMER_STARTED EventType = 17 + // A timer has fired + EVENT_TYPE_TIMER_FIRED EventType = 18 + // A time has been cancelled + EVENT_TYPE_TIMER_CANCELED EventType = 19 + // A request has been made to cancel the Workflow execution + EVENT_TYPE_WORKFLOW_EXECUTION_CANCEL_REQUESTED EventType = 20 + // SDK client has confirmed the cancellation request and the Workflow execution has been cancelled + EVENT_TYPE_WORKFLOW_EXECUTION_CANCELED EventType = 21 + // Workflow has requested that the Temporal Server try to cancel another Workflow + EVENT_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED EventType = 22 + // Temporal Server could not cancel the targeted Workflow + // This is usually because the target Workflow could not be found + EVENT_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED EventType = 23 + // Temporal Server has successfully requested the cancellation of the target Workflow + EVENT_TYPE_EXTERNAL_WORKFLOW_EXECUTION_CANCEL_REQUESTED EventType = 24 + // A marker has been recorded. + // This event type is transparent to the Temporal Server + // The Server will only store it and will not try to understand it. + EVENT_TYPE_MARKER_RECORDED EventType = 25 + // Workflow has received a Signal event + // The event type contains the Signal name, as well as a Signal payload + EVENT_TYPE_WORKFLOW_EXECUTION_SIGNALED EventType = 26 + // Workflow execution has been forcefully terminated + // This is usually because the terminate Workflow API was called + EVENT_TYPE_WORKFLOW_EXECUTION_TERMINATED EventType = 27 + // Workflow has successfully completed and a new Workflow has been started within the same transaction + // Contains last Workflow execution results as well as new Workflow execution inputs + EVENT_TYPE_WORKFLOW_EXECUTION_CONTINUED_AS_NEW EventType = 28 + // Temporal Server will try to start a child Workflow + EVENT_TYPE_START_CHILD_WORKFLOW_EXECUTION_INITIATED EventType = 29 + // Child Workflow execution cannot be started/triggered + // Usually due to a child Workflow ID collision + EVENT_TYPE_START_CHILD_WORKFLOW_EXECUTION_FAILED EventType = 30 + // Child Workflow execution has successfully started/triggered + EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_STARTED EventType = 31 + // Child Workflow execution has successfully completed + EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_COMPLETED EventType = 32 + // Child Workflow execution has unsuccessfully completed + EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_FAILED EventType = 33 + // Child Workflow execution has been cancelled + EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_CANCELED EventType = 34 + // Child Workflow execution has timed out by the Temporal Server + EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_TIMED_OUT EventType = 35 + // Child Workflow execution has been terminated + EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_TERMINATED EventType = 36 + // Temporal Server will try to Signal the targeted Workflow + // Contains the Signal name, as well as a Signal payload + EVENT_TYPE_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED EventType = 37 + // Temporal Server cannot Signal the targeted Workflow + // Usually because the Workflow could not be found + EVENT_TYPE_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED EventType = 38 + // Temporal Server has successfully Signaled the targeted Workflow + EVENT_TYPE_EXTERNAL_WORKFLOW_EXECUTION_SIGNALED EventType = 39 + // Workflow search attributes should be updated and synchronized with the visibility store + EVENT_TYPE_UPSERT_WORKFLOW_SEARCH_ATTRIBUTES EventType = 40 + // An update was admitted. Note that not all admitted updates result in this + // event. See UpdateAdmittedEventOrigin for situations in which this event + // is created. + EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_ADMITTED EventType = 47 + // An update was accepted (i.e. passed validation, perhaps because no validator was defined) + EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_ACCEPTED EventType = 41 + // This event is never written to history. + EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_REJECTED EventType = 42 + // An update completed + EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_COMPLETED EventType = 43 + // Some property or properties of the workflow as a whole have changed by non-workflow code. + // The distinction of external vs. command-based modification is important so the SDK can + // maintain determinism when using the command-based approach. + EVENT_TYPE_WORKFLOW_PROPERTIES_MODIFIED_EXTERNALLY EventType = 44 + // Some property or properties of an already-scheduled activity have changed by non-workflow code. + // The distinction of external vs. command-based modification is important so the SDK can + // maintain determinism when using the command-based approach. + EVENT_TYPE_ACTIVITY_PROPERTIES_MODIFIED_EXTERNALLY EventType = 45 + // Workflow properties modified by user workflow code + EVENT_TYPE_WORKFLOW_PROPERTIES_MODIFIED EventType = 46 + // A Nexus operation was scheduled using a ScheduleNexusOperation command. + EVENT_TYPE_NEXUS_OPERATION_SCHEDULED EventType = 48 + // An asynchronous Nexus operation was started by a Nexus handler. + EVENT_TYPE_NEXUS_OPERATION_STARTED EventType = 49 + // A Nexus operation completed successfully. + EVENT_TYPE_NEXUS_OPERATION_COMPLETED EventType = 50 + // A Nexus operation failed. + EVENT_TYPE_NEXUS_OPERATION_FAILED EventType = 51 + // A Nexus operation completed as canceled. + EVENT_TYPE_NEXUS_OPERATION_CANCELED EventType = 52 + // A Nexus operation timed out. + EVENT_TYPE_NEXUS_OPERATION_TIMED_OUT EventType = 53 + // A Nexus operation was requested to be canceled using a RequestCancelNexusOperation command. + EVENT_TYPE_NEXUS_OPERATION_CANCEL_REQUESTED EventType = 54 + // Workflow execution options updated by user. + EVENT_TYPE_WORKFLOW_EXECUTION_OPTIONS_UPDATED EventType = 55 + // A cancellation request for a Nexus operation was successfully delivered to the Nexus handler. + EVENT_TYPE_NEXUS_OPERATION_CANCEL_REQUEST_COMPLETED EventType = 56 + // A cancellation request for a Nexus operation resulted in an error. + EVENT_TYPE_NEXUS_OPERATION_CANCEL_REQUEST_FAILED EventType = 57 + // An event that indicates that the workflow execution has been paused. + EVENT_TYPE_WORKFLOW_EXECUTION_PAUSED EventType = 58 + // An event that indicates that the previously paused workflow execution has been unpaused. + EVENT_TYPE_WORKFLOW_EXECUTION_UNPAUSED EventType = 59 +) + +// Enum value maps for EventType. +var ( + EventType_name = map[int32]string{ + 0: "EVENT_TYPE_UNSPECIFIED", + 1: "EVENT_TYPE_WORKFLOW_EXECUTION_STARTED", + 2: "EVENT_TYPE_WORKFLOW_EXECUTION_COMPLETED", + 3: "EVENT_TYPE_WORKFLOW_EXECUTION_FAILED", + 4: "EVENT_TYPE_WORKFLOW_EXECUTION_TIMED_OUT", + 5: "EVENT_TYPE_WORKFLOW_TASK_SCHEDULED", + 6: "EVENT_TYPE_WORKFLOW_TASK_STARTED", + 7: "EVENT_TYPE_WORKFLOW_TASK_COMPLETED", + 8: "EVENT_TYPE_WORKFLOW_TASK_TIMED_OUT", + 9: "EVENT_TYPE_WORKFLOW_TASK_FAILED", + 10: "EVENT_TYPE_ACTIVITY_TASK_SCHEDULED", + 11: "EVENT_TYPE_ACTIVITY_TASK_STARTED", + 12: "EVENT_TYPE_ACTIVITY_TASK_COMPLETED", + 13: "EVENT_TYPE_ACTIVITY_TASK_FAILED", + 14: "EVENT_TYPE_ACTIVITY_TASK_TIMED_OUT", + 15: "EVENT_TYPE_ACTIVITY_TASK_CANCEL_REQUESTED", + 16: "EVENT_TYPE_ACTIVITY_TASK_CANCELED", + 17: "EVENT_TYPE_TIMER_STARTED", + 18: "EVENT_TYPE_TIMER_FIRED", + 19: "EVENT_TYPE_TIMER_CANCELED", + 20: "EVENT_TYPE_WORKFLOW_EXECUTION_CANCEL_REQUESTED", + 21: "EVENT_TYPE_WORKFLOW_EXECUTION_CANCELED", + 22: "EVENT_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED", + 23: "EVENT_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED", + 24: "EVENT_TYPE_EXTERNAL_WORKFLOW_EXECUTION_CANCEL_REQUESTED", + 25: "EVENT_TYPE_MARKER_RECORDED", + 26: "EVENT_TYPE_WORKFLOW_EXECUTION_SIGNALED", + 27: "EVENT_TYPE_WORKFLOW_EXECUTION_TERMINATED", + 28: "EVENT_TYPE_WORKFLOW_EXECUTION_CONTINUED_AS_NEW", + 29: "EVENT_TYPE_START_CHILD_WORKFLOW_EXECUTION_INITIATED", + 30: "EVENT_TYPE_START_CHILD_WORKFLOW_EXECUTION_FAILED", + 31: "EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_STARTED", + 32: "EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_COMPLETED", + 33: "EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_FAILED", + 34: "EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_CANCELED", + 35: "EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_TIMED_OUT", + 36: "EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_TERMINATED", + 37: "EVENT_TYPE_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED", + 38: "EVENT_TYPE_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED", + 39: "EVENT_TYPE_EXTERNAL_WORKFLOW_EXECUTION_SIGNALED", + 40: "EVENT_TYPE_UPSERT_WORKFLOW_SEARCH_ATTRIBUTES", + 47: "EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_ADMITTED", + 41: "EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_ACCEPTED", + 42: "EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_REJECTED", + 43: "EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_COMPLETED", + 44: "EVENT_TYPE_WORKFLOW_PROPERTIES_MODIFIED_EXTERNALLY", + 45: "EVENT_TYPE_ACTIVITY_PROPERTIES_MODIFIED_EXTERNALLY", + 46: "EVENT_TYPE_WORKFLOW_PROPERTIES_MODIFIED", + 48: "EVENT_TYPE_NEXUS_OPERATION_SCHEDULED", + 49: "EVENT_TYPE_NEXUS_OPERATION_STARTED", + 50: "EVENT_TYPE_NEXUS_OPERATION_COMPLETED", + 51: "EVENT_TYPE_NEXUS_OPERATION_FAILED", + 52: "EVENT_TYPE_NEXUS_OPERATION_CANCELED", + 53: "EVENT_TYPE_NEXUS_OPERATION_TIMED_OUT", + 54: "EVENT_TYPE_NEXUS_OPERATION_CANCEL_REQUESTED", + 55: "EVENT_TYPE_WORKFLOW_EXECUTION_OPTIONS_UPDATED", + 56: "EVENT_TYPE_NEXUS_OPERATION_CANCEL_REQUEST_COMPLETED", + 57: "EVENT_TYPE_NEXUS_OPERATION_CANCEL_REQUEST_FAILED", + 58: "EVENT_TYPE_WORKFLOW_EXECUTION_PAUSED", + 59: "EVENT_TYPE_WORKFLOW_EXECUTION_UNPAUSED", + } + EventType_value = map[string]int32{ + "EVENT_TYPE_UNSPECIFIED": 0, + "EVENT_TYPE_WORKFLOW_EXECUTION_STARTED": 1, + "EVENT_TYPE_WORKFLOW_EXECUTION_COMPLETED": 2, + "EVENT_TYPE_WORKFLOW_EXECUTION_FAILED": 3, + "EVENT_TYPE_WORKFLOW_EXECUTION_TIMED_OUT": 4, + "EVENT_TYPE_WORKFLOW_TASK_SCHEDULED": 5, + "EVENT_TYPE_WORKFLOW_TASK_STARTED": 6, + "EVENT_TYPE_WORKFLOW_TASK_COMPLETED": 7, + "EVENT_TYPE_WORKFLOW_TASK_TIMED_OUT": 8, + "EVENT_TYPE_WORKFLOW_TASK_FAILED": 9, + "EVENT_TYPE_ACTIVITY_TASK_SCHEDULED": 10, + "EVENT_TYPE_ACTIVITY_TASK_STARTED": 11, + "EVENT_TYPE_ACTIVITY_TASK_COMPLETED": 12, + "EVENT_TYPE_ACTIVITY_TASK_FAILED": 13, + "EVENT_TYPE_ACTIVITY_TASK_TIMED_OUT": 14, + "EVENT_TYPE_ACTIVITY_TASK_CANCEL_REQUESTED": 15, + "EVENT_TYPE_ACTIVITY_TASK_CANCELED": 16, + "EVENT_TYPE_TIMER_STARTED": 17, + "EVENT_TYPE_TIMER_FIRED": 18, + "EVENT_TYPE_TIMER_CANCELED": 19, + "EVENT_TYPE_WORKFLOW_EXECUTION_CANCEL_REQUESTED": 20, + "EVENT_TYPE_WORKFLOW_EXECUTION_CANCELED": 21, + "EVENT_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED": 22, + "EVENT_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED": 23, + "EVENT_TYPE_EXTERNAL_WORKFLOW_EXECUTION_CANCEL_REQUESTED": 24, + "EVENT_TYPE_MARKER_RECORDED": 25, + "EVENT_TYPE_WORKFLOW_EXECUTION_SIGNALED": 26, + "EVENT_TYPE_WORKFLOW_EXECUTION_TERMINATED": 27, + "EVENT_TYPE_WORKFLOW_EXECUTION_CONTINUED_AS_NEW": 28, + "EVENT_TYPE_START_CHILD_WORKFLOW_EXECUTION_INITIATED": 29, + "EVENT_TYPE_START_CHILD_WORKFLOW_EXECUTION_FAILED": 30, + "EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_STARTED": 31, + "EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_COMPLETED": 32, + "EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_FAILED": 33, + "EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_CANCELED": 34, + "EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_TIMED_OUT": 35, + "EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_TERMINATED": 36, + "EVENT_TYPE_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED": 37, + "EVENT_TYPE_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED": 38, + "EVENT_TYPE_EXTERNAL_WORKFLOW_EXECUTION_SIGNALED": 39, + "EVENT_TYPE_UPSERT_WORKFLOW_SEARCH_ATTRIBUTES": 40, + "EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_ADMITTED": 47, + "EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_ACCEPTED": 41, + "EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_REJECTED": 42, + "EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_COMPLETED": 43, + "EVENT_TYPE_WORKFLOW_PROPERTIES_MODIFIED_EXTERNALLY": 44, + "EVENT_TYPE_ACTIVITY_PROPERTIES_MODIFIED_EXTERNALLY": 45, + "EVENT_TYPE_WORKFLOW_PROPERTIES_MODIFIED": 46, + "EVENT_TYPE_NEXUS_OPERATION_SCHEDULED": 48, + "EVENT_TYPE_NEXUS_OPERATION_STARTED": 49, + "EVENT_TYPE_NEXUS_OPERATION_COMPLETED": 50, + "EVENT_TYPE_NEXUS_OPERATION_FAILED": 51, + "EVENT_TYPE_NEXUS_OPERATION_CANCELED": 52, + "EVENT_TYPE_NEXUS_OPERATION_TIMED_OUT": 53, + "EVENT_TYPE_NEXUS_OPERATION_CANCEL_REQUESTED": 54, + "EVENT_TYPE_WORKFLOW_EXECUTION_OPTIONS_UPDATED": 55, + "EVENT_TYPE_NEXUS_OPERATION_CANCEL_REQUEST_COMPLETED": 56, + "EVENT_TYPE_NEXUS_OPERATION_CANCEL_REQUEST_FAILED": 57, + "EVENT_TYPE_WORKFLOW_EXECUTION_PAUSED": 58, + "EVENT_TYPE_WORKFLOW_EXECUTION_UNPAUSED": 59, + } +) + +func (x EventType) Enum() *EventType { + p := new(EventType) + *p = x + return p +} + +func (x EventType) String() string { + switch x { + case EVENT_TYPE_UNSPECIFIED: + return "Unspecified" + case EVENT_TYPE_WORKFLOW_EXECUTION_STARTED: + return "WorkflowExecutionStarted" + case EVENT_TYPE_WORKFLOW_EXECUTION_COMPLETED: + return "WorkflowExecutionCompleted" + case EVENT_TYPE_WORKFLOW_EXECUTION_FAILED: + return "WorkflowExecutionFailed" + case EVENT_TYPE_WORKFLOW_EXECUTION_TIMED_OUT: + return "WorkflowExecutionTimedOut" + case EVENT_TYPE_WORKFLOW_TASK_SCHEDULED: + return "WorkflowTaskScheduled" + case EVENT_TYPE_WORKFLOW_TASK_STARTED: + return "WorkflowTaskStarted" + case EVENT_TYPE_WORKFLOW_TASK_COMPLETED: + return "WorkflowTaskCompleted" + case EVENT_TYPE_WORKFLOW_TASK_TIMED_OUT: + return "WorkflowTaskTimedOut" + case EVENT_TYPE_WORKFLOW_TASK_FAILED: + return "WorkflowTaskFailed" + case EVENT_TYPE_ACTIVITY_TASK_SCHEDULED: + return "ActivityTaskScheduled" + case EVENT_TYPE_ACTIVITY_TASK_STARTED: + return "ActivityTaskStarted" + case EVENT_TYPE_ACTIVITY_TASK_COMPLETED: + return "ActivityTaskCompleted" + case EVENT_TYPE_ACTIVITY_TASK_FAILED: + return "ActivityTaskFailed" + case EVENT_TYPE_ACTIVITY_TASK_TIMED_OUT: + return "ActivityTaskTimedOut" + case EVENT_TYPE_ACTIVITY_TASK_CANCEL_REQUESTED: + return "ActivityTaskCancelRequested" + case EVENT_TYPE_ACTIVITY_TASK_CANCELED: + return "ActivityTaskCanceled" + case EVENT_TYPE_TIMER_STARTED: + return "TimerStarted" + case EVENT_TYPE_TIMER_FIRED: + return "TimerFired" + case EVENT_TYPE_TIMER_CANCELED: + return "TimerCanceled" + case EVENT_TYPE_WORKFLOW_EXECUTION_CANCEL_REQUESTED: + return "WorkflowExecutionCancelRequested" + case EVENT_TYPE_WORKFLOW_EXECUTION_CANCELED: + return "WorkflowExecutionCanceled" + case EVENT_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED: + return "RequestCancelExternalWorkflowExecutionInitiated" + case EVENT_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED: + return "RequestCancelExternalWorkflowExecutionFailed" + case EVENT_TYPE_EXTERNAL_WORKFLOW_EXECUTION_CANCEL_REQUESTED: + return "ExternalWorkflowExecutionCancelRequested" + case EVENT_TYPE_MARKER_RECORDED: + return "MarkerRecorded" + case EVENT_TYPE_WORKFLOW_EXECUTION_SIGNALED: + return "WorkflowExecutionSignaled" + case EVENT_TYPE_WORKFLOW_EXECUTION_TERMINATED: + return "WorkflowExecutionTerminated" + case EVENT_TYPE_WORKFLOW_EXECUTION_CONTINUED_AS_NEW: + return "WorkflowExecutionContinuedAsNew" + case EVENT_TYPE_START_CHILD_WORKFLOW_EXECUTION_INITIATED: + return "StartChildWorkflowExecutionInitiated" + case EVENT_TYPE_START_CHILD_WORKFLOW_EXECUTION_FAILED: + return "StartChildWorkflowExecutionFailed" + case EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_STARTED: + return "ChildWorkflowExecutionStarted" + case EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_COMPLETED: + return "ChildWorkflowExecutionCompleted" + case EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_FAILED: + return "ChildWorkflowExecutionFailed" + case EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_CANCELED: + return "ChildWorkflowExecutionCanceled" + case EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_TIMED_OUT: + return "ChildWorkflowExecutionTimedOut" + case EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_TERMINATED: + return "ChildWorkflowExecutionTerminated" + case EVENT_TYPE_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED: + return "SignalExternalWorkflowExecutionInitiated" + case EVENT_TYPE_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED: + return "SignalExternalWorkflowExecutionFailed" + case EVENT_TYPE_EXTERNAL_WORKFLOW_EXECUTION_SIGNALED: + return "ExternalWorkflowExecutionSignaled" + case EVENT_TYPE_UPSERT_WORKFLOW_SEARCH_ATTRIBUTES: + return "UpsertWorkflowSearchAttributes" + case EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_ADMITTED: + return "WorkflowExecutionUpdateAdmitted" + case EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_ACCEPTED: + return "WorkflowExecutionUpdateAccepted" + case EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_REJECTED: + return "WorkflowExecutionUpdateRejected" + case EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_COMPLETED: + return "WorkflowExecutionUpdateCompleted" + case EVENT_TYPE_WORKFLOW_PROPERTIES_MODIFIED_EXTERNALLY: + return "WorkflowPropertiesModifiedExternally" + case EVENT_TYPE_ACTIVITY_PROPERTIES_MODIFIED_EXTERNALLY: + return "ActivityPropertiesModifiedExternally" + case EVENT_TYPE_WORKFLOW_PROPERTIES_MODIFIED: + return "WorkflowPropertiesModified" + case EVENT_TYPE_NEXUS_OPERATION_SCHEDULED: + return "NexusOperationScheduled" + case EVENT_TYPE_NEXUS_OPERATION_STARTED: + return "NexusOperationStarted" + case EVENT_TYPE_NEXUS_OPERATION_COMPLETED: + return "NexusOperationCompleted" + case EVENT_TYPE_NEXUS_OPERATION_FAILED: + return "NexusOperationFailed" + case EVENT_TYPE_NEXUS_OPERATION_CANCELED: + return "NexusOperationCanceled" + case EVENT_TYPE_NEXUS_OPERATION_TIMED_OUT: + return "NexusOperationTimedOut" + case EVENT_TYPE_NEXUS_OPERATION_CANCEL_REQUESTED: + return "NexusOperationCancelRequested" + case EVENT_TYPE_WORKFLOW_EXECUTION_OPTIONS_UPDATED: + return "WorkflowExecutionOptionsUpdated" + case EVENT_TYPE_NEXUS_OPERATION_CANCEL_REQUEST_COMPLETED: + return "NexusOperationCancelRequestCompleted" + case EVENT_TYPE_NEXUS_OPERATION_CANCEL_REQUEST_FAILED: + return "NexusOperationCancelRequestFailed" + case EVENT_TYPE_WORKFLOW_EXECUTION_PAUSED: + return "WorkflowExecutionPaused" + case EVENT_TYPE_WORKFLOW_EXECUTION_UNPAUSED: + + // 0: temporal.api.enums.v1.EventType + return "WorkflowExecutionUnpaused" + default: + return strconv.Itoa(int(x)) + } + +} + +func (EventType) Descriptor() protoreflect.EnumDescriptor { + return file_temporal_api_enums_v1_event_type_proto_enumTypes[0].Descriptor() +} + +func (EventType) Type() protoreflect.EnumType { + return &file_temporal_api_enums_v1_event_type_proto_enumTypes[0] +} + +func (x EventType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +var File_temporal_api_enums_v1_event_type_proto protoreflect.FileDescriptor + +const file_temporal_api_enums_v1_event_type_proto_rawDesc = "" + + "\n" + + "&temporal/api/enums/v1/event_type.proto\x12\x15temporal.api.enums.v1*\xe0\x15\n" + + "\tEventType\x12\x1a\n" + + "\x16EVENT_TYPE_UNSPECIFIED\x10\x00\x12)\n" + + "%EVENT_TYPE_WORKFLOW_EXECUTION_STARTED\x10\x01\x12+\n" + + "'EVENT_TYPE_WORKFLOW_EXECUTION_COMPLETED\x10\x02\x12(\n" + + "$EVENT_TYPE_WORKFLOW_EXECUTION_FAILED\x10\x03\x12+\n" + + "'EVENT_TYPE_WORKFLOW_EXECUTION_TIMED_OUT\x10\x04\x12&\n" + + "\"EVENT_TYPE_WORKFLOW_TASK_SCHEDULED\x10\x05\x12$\n" + + " EVENT_TYPE_WORKFLOW_TASK_STARTED\x10\x06\x12&\n" + + "\"EVENT_TYPE_WORKFLOW_TASK_COMPLETED\x10\a\x12&\n" + + "\"EVENT_TYPE_WORKFLOW_TASK_TIMED_OUT\x10\b\x12#\n" + + "\x1fEVENT_TYPE_WORKFLOW_TASK_FAILED\x10\t\x12&\n" + + "\"EVENT_TYPE_ACTIVITY_TASK_SCHEDULED\x10\n" + + "\x12$\n" + + " EVENT_TYPE_ACTIVITY_TASK_STARTED\x10\v\x12&\n" + + "\"EVENT_TYPE_ACTIVITY_TASK_COMPLETED\x10\f\x12#\n" + + "\x1fEVENT_TYPE_ACTIVITY_TASK_FAILED\x10\r\x12&\n" + + "\"EVENT_TYPE_ACTIVITY_TASK_TIMED_OUT\x10\x0e\x12-\n" + + ")EVENT_TYPE_ACTIVITY_TASK_CANCEL_REQUESTED\x10\x0f\x12%\n" + + "!EVENT_TYPE_ACTIVITY_TASK_CANCELED\x10\x10\x12\x1c\n" + + "\x18EVENT_TYPE_TIMER_STARTED\x10\x11\x12\x1a\n" + + "\x16EVENT_TYPE_TIMER_FIRED\x10\x12\x12\x1d\n" + + "\x19EVENT_TYPE_TIMER_CANCELED\x10\x13\x122\n" + + ".EVENT_TYPE_WORKFLOW_EXECUTION_CANCEL_REQUESTED\x10\x14\x12*\n" + + "&EVENT_TYPE_WORKFLOW_EXECUTION_CANCELED\x10\x15\x12C\n" + + "?EVENT_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED\x10\x16\x12@\n" + + " temporal.api.enums.v1.NamespaceState + 19, // 1: temporal.api.errordetails.v1.NamespaceInvalidStateFailure.allowed_states:type_name -> temporal.api.enums.v1.NamespaceState + 20, // 2: temporal.api.errordetails.v1.QueryFailedFailure.failure:type_name -> temporal.api.failure.v1.Failure + 21, // 3: temporal.api.errordetails.v1.ResourceExhaustedFailure.cause:type_name -> temporal.api.enums.v1.ResourceExhaustedCause + 22, // 4: temporal.api.errordetails.v1.ResourceExhaustedFailure.scope:type_name -> temporal.api.enums.v1.ResourceExhaustedScope + 23, // 5: temporal.api.errordetails.v1.SystemWorkflowFailure.workflow_execution:type_name -> temporal.api.common.v1.WorkflowExecution + 18, // 6: temporal.api.errordetails.v1.MultiOperationExecutionFailure.statuses:type_name -> temporal.api.errordetails.v1.MultiOperationExecutionFailure.OperationStatus + 24, // 7: temporal.api.errordetails.v1.MultiOperationExecutionFailure.OperationStatus.details:type_name -> google.protobuf.Any + 8, // [8:8] is the sub-list for method output_type + 8, // [8:8] is the sub-list for method input_type + 8, // [8:8] is the sub-list for extension type_name + 8, // [8:8] is the sub-list for extension extendee + 0, // [0:8] is the sub-list for field type_name +} + +func init() { file_temporal_api_errordetails_v1_message_proto_init() } +func file_temporal_api_errordetails_v1_message_proto_init() { + if File_temporal_api_errordetails_v1_message_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_api_errordetails_v1_message_proto_rawDesc), len(file_temporal_api_errordetails_v1_message_proto_rawDesc)), + NumEnums: 0, + NumMessages: 19, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_temporal_api_errordetails_v1_message_proto_goTypes, + DependencyIndexes: file_temporal_api_errordetails_v1_message_proto_depIdxs, + MessageInfos: file_temporal_api_errordetails_v1_message_proto_msgTypes, + }.Build() + File_temporal_api_errordetails_v1_message_proto = out.File + file_temporal_api_errordetails_v1_message_proto_goTypes = nil + file_temporal_api_errordetails_v1_message_proto_depIdxs = nil +} diff --git a/export/v1/message.pb.go b/export/v1/message.pb.go index a0a671bf..995aa722 100644 --- a/export/v1/message.pb.go +++ b/export/v1/message.pb.go @@ -4,11 +4,12 @@ // protoc // source: temporal/api/export/v1/message.proto +//go:build !protoopaque + package export import ( reflect "reflect" - sync "sync" unsafe "unsafe" v1 "go.temporal.io/api/history/v1" @@ -24,7 +25,7 @@ const ( ) type WorkflowExecution struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` History *v1.History `protobuf:"bytes,1,opt,name=history,proto3" json:"history,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -55,11 +56,6 @@ func (x *WorkflowExecution) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use WorkflowExecution.ProtoReflect.Descriptor instead. -func (*WorkflowExecution) Descriptor() ([]byte, []int) { - return file_temporal_api_export_v1_message_proto_rawDescGZIP(), []int{0} -} - func (x *WorkflowExecution) GetHistory() *v1.History { if x != nil { return x.History @@ -67,10 +63,39 @@ func (x *WorkflowExecution) GetHistory() *v1.History { return nil } +func (x *WorkflowExecution) SetHistory(v *v1.History) { + x.History = v +} + +func (x *WorkflowExecution) HasHistory() bool { + if x == nil { + return false + } + return x.History != nil +} + +func (x *WorkflowExecution) ClearHistory() { + x.History = nil +} + +type WorkflowExecution_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + History *v1.History +} + +func (b0 WorkflowExecution_builder) Build() *WorkflowExecution { + m0 := &WorkflowExecution{} + b, x := &b0, m0 + _, _ = b, x + x.History = b.History + return m0 +} + // WorkflowExecutions is used by the Cloud Export feature to deserialize // the exported file. It encapsulates a collection of workflow execution information. type WorkflowExecutions struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Items []*WorkflowExecution `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -101,11 +126,6 @@ func (x *WorkflowExecutions) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use WorkflowExecutions.ProtoReflect.Descriptor instead. -func (*WorkflowExecutions) Descriptor() ([]byte, []int) { - return file_temporal_api_export_v1_message_proto_rawDescGZIP(), []int{1} -} - func (x *WorkflowExecutions) GetItems() []*WorkflowExecution { if x != nil { return x.Items @@ -113,6 +133,24 @@ func (x *WorkflowExecutions) GetItems() []*WorkflowExecution { return nil } +func (x *WorkflowExecutions) SetItems(v []*WorkflowExecution) { + x.Items = v +} + +type WorkflowExecutions_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Items []*WorkflowExecution +} + +func (b0 WorkflowExecutions_builder) Build() *WorkflowExecutions { + m0 := &WorkflowExecutions{} + b, x := &b0, m0 + _, _ = b, x + x.Items = b.Items + return m0 +} + var File_temporal_api_export_v1_message_proto protoreflect.FileDescriptor const file_temporal_api_export_v1_message_proto_rawDesc = "" + @@ -124,18 +162,6 @@ const file_temporal_api_export_v1_message_proto_rawDesc = "" + "\x05items\x18\x01 \x03(\v2).temporal.api.export.v1.WorkflowExecutionR\x05itemsB\x89\x01\n" + "\x19io.temporal.api.export.v1B\fMessageProtoP\x01Z#go.temporal.io/api/export/v1;export\xaa\x02\x18Temporalio.Api.Export.V1\xea\x02\x1bTemporalio::Api::Export::V1b\x06proto3" -var ( - file_temporal_api_export_v1_message_proto_rawDescOnce sync.Once - file_temporal_api_export_v1_message_proto_rawDescData []byte -) - -func file_temporal_api_export_v1_message_proto_rawDescGZIP() []byte { - file_temporal_api_export_v1_message_proto_rawDescOnce.Do(func() { - file_temporal_api_export_v1_message_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_api_export_v1_message_proto_rawDesc), len(file_temporal_api_export_v1_message_proto_rawDesc))) - }) - return file_temporal_api_export_v1_message_proto_rawDescData -} - var file_temporal_api_export_v1_message_proto_msgTypes = make([]protoimpl.MessageInfo, 2) var file_temporal_api_export_v1_message_proto_goTypes = []any{ (*WorkflowExecution)(nil), // 0: temporal.api.export.v1.WorkflowExecution diff --git a/export/v1/message_protoopaque.pb.go b/export/v1/message_protoopaque.pb.go new file mode 100644 index 00000000..08af789e --- /dev/null +++ b/export/v1/message_protoopaque.pb.go @@ -0,0 +1,205 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// plugins: +// protoc-gen-go +// protoc +// source: temporal/api/export/v1/message.proto + +//go:build protoopaque + +package export + +import ( + reflect "reflect" + unsafe "unsafe" + + v1 "go.temporal.io/api/history/v1" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type WorkflowExecution struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_History *v1.History `protobuf:"bytes,1,opt,name=history,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowExecution) Reset() { + *x = WorkflowExecution{} + mi := &file_temporal_api_export_v1_message_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkflowExecution) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowExecution) ProtoMessage() {} + +func (x *WorkflowExecution) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_export_v1_message_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkflowExecution) GetHistory() *v1.History { + if x != nil { + return x.xxx_hidden_History + } + return nil +} + +func (x *WorkflowExecution) SetHistory(v *v1.History) { + x.xxx_hidden_History = v +} + +func (x *WorkflowExecution) HasHistory() bool { + if x == nil { + return false + } + return x.xxx_hidden_History != nil +} + +func (x *WorkflowExecution) ClearHistory() { + x.xxx_hidden_History = nil +} + +type WorkflowExecution_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + History *v1.History +} + +func (b0 WorkflowExecution_builder) Build() *WorkflowExecution { + m0 := &WorkflowExecution{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_History = b.History + return m0 +} + +// WorkflowExecutions is used by the Cloud Export feature to deserialize +// the exported file. It encapsulates a collection of workflow execution information. +type WorkflowExecutions struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Items *[]*WorkflowExecution `protobuf:"bytes,1,rep,name=items,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowExecutions) Reset() { + *x = WorkflowExecutions{} + mi := &file_temporal_api_export_v1_message_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkflowExecutions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowExecutions) ProtoMessage() {} + +func (x *WorkflowExecutions) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_export_v1_message_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkflowExecutions) GetItems() []*WorkflowExecution { + if x != nil { + if x.xxx_hidden_Items != nil { + return *x.xxx_hidden_Items + } + } + return nil +} + +func (x *WorkflowExecutions) SetItems(v []*WorkflowExecution) { + x.xxx_hidden_Items = &v +} + +type WorkflowExecutions_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Items []*WorkflowExecution +} + +func (b0 WorkflowExecutions_builder) Build() *WorkflowExecutions { + m0 := &WorkflowExecutions{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Items = &b.Items + return m0 +} + +var File_temporal_api_export_v1_message_proto protoreflect.FileDescriptor + +const file_temporal_api_export_v1_message_proto_rawDesc = "" + + "\n" + + "$temporal/api/export/v1/message.proto\x12\x16temporal.api.export.v1\x1a%temporal/api/history/v1/message.proto\"O\n" + + "\x11WorkflowExecution\x12:\n" + + "\ahistory\x18\x01 \x01(\v2 .temporal.api.history.v1.HistoryR\ahistory\"U\n" + + "\x12WorkflowExecutions\x12?\n" + + "\x05items\x18\x01 \x03(\v2).temporal.api.export.v1.WorkflowExecutionR\x05itemsB\x89\x01\n" + + "\x19io.temporal.api.export.v1B\fMessageProtoP\x01Z#go.temporal.io/api/export/v1;export\xaa\x02\x18Temporalio.Api.Export.V1\xea\x02\x1bTemporalio::Api::Export::V1b\x06proto3" + +var file_temporal_api_export_v1_message_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_temporal_api_export_v1_message_proto_goTypes = []any{ + (*WorkflowExecution)(nil), // 0: temporal.api.export.v1.WorkflowExecution + (*WorkflowExecutions)(nil), // 1: temporal.api.export.v1.WorkflowExecutions + (*v1.History)(nil), // 2: temporal.api.history.v1.History +} +var file_temporal_api_export_v1_message_proto_depIdxs = []int32{ + 2, // 0: temporal.api.export.v1.WorkflowExecution.history:type_name -> temporal.api.history.v1.History + 0, // 1: temporal.api.export.v1.WorkflowExecutions.items:type_name -> temporal.api.export.v1.WorkflowExecution + 2, // [2:2] is the sub-list for method output_type + 2, // [2:2] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name +} + +func init() { file_temporal_api_export_v1_message_proto_init() } +func file_temporal_api_export_v1_message_proto_init() { + if File_temporal_api_export_v1_message_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_api_export_v1_message_proto_rawDesc), len(file_temporal_api_export_v1_message_proto_rawDesc)), + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_temporal_api_export_v1_message_proto_goTypes, + DependencyIndexes: file_temporal_api_export_v1_message_proto_depIdxs, + MessageInfos: file_temporal_api_export_v1_message_proto_msgTypes, + }.Build() + File_temporal_api_export_v1_message_proto = out.File + file_temporal_api_export_v1_message_proto_goTypes = nil + file_temporal_api_export_v1_message_proto_depIdxs = nil +} diff --git a/failure/v1/message.pb.go b/failure/v1/message.pb.go index 70a63148..ca2740e2 100644 --- a/failure/v1/message.pb.go +++ b/failure/v1/message.pb.go @@ -4,11 +4,13 @@ // protoc // source: temporal/api/failure/v1/message.proto +//go:build !protoopaque + package failure import ( reflect "reflect" - sync "sync" + "strconv" unsafe "unsafe" v1 "go.temporal.io/api/common/v1" @@ -26,7 +28,7 @@ const ( ) type ApplicationFailureInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` NonRetryable bool `protobuf:"varint,2,opt,name=non_retryable,json=nonRetryable,proto3" json:"non_retryable,omitempty"` Details *v1.Payloads `protobuf:"bytes,3,opt,name=details,proto3" json:"details,omitempty"` @@ -65,11 +67,6 @@ func (x *ApplicationFailureInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ApplicationFailureInfo.ProtoReflect.Descriptor instead. -func (*ApplicationFailureInfo) Descriptor() ([]byte, []int) { - return file_temporal_api_failure_v1_message_proto_rawDescGZIP(), []int{0} -} - func (x *ApplicationFailureInfo) GetType() string { if x != nil { return x.Type @@ -105,8 +102,76 @@ func (x *ApplicationFailureInfo) GetCategory() v11.ApplicationErrorCategory { return v11.ApplicationErrorCategory(0) } +func (x *ApplicationFailureInfo) SetType(v string) { + x.Type = v +} + +func (x *ApplicationFailureInfo) SetNonRetryable(v bool) { + x.NonRetryable = v +} + +func (x *ApplicationFailureInfo) SetDetails(v *v1.Payloads) { + x.Details = v +} + +func (x *ApplicationFailureInfo) SetNextRetryDelay(v *durationpb.Duration) { + x.NextRetryDelay = v +} + +func (x *ApplicationFailureInfo) SetCategory(v v11.ApplicationErrorCategory) { + x.Category = v +} + +func (x *ApplicationFailureInfo) HasDetails() bool { + if x == nil { + return false + } + return x.Details != nil +} + +func (x *ApplicationFailureInfo) HasNextRetryDelay() bool { + if x == nil { + return false + } + return x.NextRetryDelay != nil +} + +func (x *ApplicationFailureInfo) ClearDetails() { + x.Details = nil +} + +func (x *ApplicationFailureInfo) ClearNextRetryDelay() { + x.NextRetryDelay = nil +} + +type ApplicationFailureInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Type string + NonRetryable bool + Details *v1.Payloads + // next_retry_delay can be used by the client to override the activity + // retry interval calculated by the retry policy. Retry attempts will + // still be subject to the maximum retries limit and total time limit + // defined by the policy. + NextRetryDelay *durationpb.Duration + Category v11.ApplicationErrorCategory +} + +func (b0 ApplicationFailureInfo_builder) Build() *ApplicationFailureInfo { + m0 := &ApplicationFailureInfo{} + b, x := &b0, m0 + _, _ = b, x + x.Type = b.Type + x.NonRetryable = b.NonRetryable + x.Details = b.Details + x.NextRetryDelay = b.NextRetryDelay + x.Category = b.Category + return m0 +} + type TimeoutFailureInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` TimeoutType v11.TimeoutType `protobuf:"varint,1,opt,name=timeout_type,json=timeoutType,proto3,enum=temporal.api.enums.v1.TimeoutType" json:"timeout_type,omitempty"` LastHeartbeatDetails *v1.Payloads `protobuf:"bytes,2,opt,name=last_heartbeat_details,json=lastHeartbeatDetails,proto3" json:"last_heartbeat_details,omitempty"` unknownFields protoimpl.UnknownFields @@ -138,11 +203,6 @@ func (x *TimeoutFailureInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use TimeoutFailureInfo.ProtoReflect.Descriptor instead. -func (*TimeoutFailureInfo) Descriptor() ([]byte, []int) { - return file_temporal_api_failure_v1_message_proto_rawDescGZIP(), []int{1} -} - func (x *TimeoutFailureInfo) GetTimeoutType() v11.TimeoutType { if x != nil { return x.TimeoutType @@ -157,8 +217,43 @@ func (x *TimeoutFailureInfo) GetLastHeartbeatDetails() *v1.Payloads { return nil } +func (x *TimeoutFailureInfo) SetTimeoutType(v v11.TimeoutType) { + x.TimeoutType = v +} + +func (x *TimeoutFailureInfo) SetLastHeartbeatDetails(v *v1.Payloads) { + x.LastHeartbeatDetails = v +} + +func (x *TimeoutFailureInfo) HasLastHeartbeatDetails() bool { + if x == nil { + return false + } + return x.LastHeartbeatDetails != nil +} + +func (x *TimeoutFailureInfo) ClearLastHeartbeatDetails() { + x.LastHeartbeatDetails = nil +} + +type TimeoutFailureInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + TimeoutType v11.TimeoutType + LastHeartbeatDetails *v1.Payloads +} + +func (b0 TimeoutFailureInfo_builder) Build() *TimeoutFailureInfo { + m0 := &TimeoutFailureInfo{} + b, x := &b0, m0 + _, _ = b, x + x.TimeoutType = b.TimeoutType + x.LastHeartbeatDetails = b.LastHeartbeatDetails + return m0 +} + type CanceledFailureInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Details *v1.Payloads `protobuf:"bytes,1,opt,name=details,proto3" json:"details,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -189,11 +284,6 @@ func (x *CanceledFailureInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CanceledFailureInfo.ProtoReflect.Descriptor instead. -func (*CanceledFailureInfo) Descriptor() ([]byte, []int) { - return file_temporal_api_failure_v1_message_proto_rawDescGZIP(), []int{2} -} - func (x *CanceledFailureInfo) GetDetails() *v1.Payloads { if x != nil { return x.Details @@ -201,8 +291,37 @@ func (x *CanceledFailureInfo) GetDetails() *v1.Payloads { return nil } +func (x *CanceledFailureInfo) SetDetails(v *v1.Payloads) { + x.Details = v +} + +func (x *CanceledFailureInfo) HasDetails() bool { + if x == nil { + return false + } + return x.Details != nil +} + +func (x *CanceledFailureInfo) ClearDetails() { + x.Details = nil +} + +type CanceledFailureInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Details *v1.Payloads +} + +func (b0 CanceledFailureInfo_builder) Build() *CanceledFailureInfo { + m0 := &CanceledFailureInfo{} + b, x := &b0, m0 + _, _ = b, x + x.Details = b.Details + return m0 +} + type TerminatedFailureInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -232,13 +351,20 @@ func (x *TerminatedFailureInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use TerminatedFailureInfo.ProtoReflect.Descriptor instead. -func (*TerminatedFailureInfo) Descriptor() ([]byte, []int) { - return file_temporal_api_failure_v1_message_proto_rawDescGZIP(), []int{3} +type TerminatedFailureInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 TerminatedFailureInfo_builder) Build() *TerminatedFailureInfo { + m0 := &TerminatedFailureInfo{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type ServerFailureInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` NonRetryable bool `protobuf:"varint,1,opt,name=non_retryable,json=nonRetryable,proto3" json:"non_retryable,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -269,11 +395,6 @@ func (x *ServerFailureInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ServerFailureInfo.ProtoReflect.Descriptor instead. -func (*ServerFailureInfo) Descriptor() ([]byte, []int) { - return file_temporal_api_failure_v1_message_proto_rawDescGZIP(), []int{4} -} - func (x *ServerFailureInfo) GetNonRetryable() bool { if x != nil { return x.NonRetryable @@ -281,8 +402,26 @@ func (x *ServerFailureInfo) GetNonRetryable() bool { return false } +func (x *ServerFailureInfo) SetNonRetryable(v bool) { + x.NonRetryable = v +} + +type ServerFailureInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + NonRetryable bool +} + +func (b0 ServerFailureInfo_builder) Build() *ServerFailureInfo { + m0 := &ServerFailureInfo{} + b, x := &b0, m0 + _, _ = b, x + x.NonRetryable = b.NonRetryable + return m0 +} + type ResetWorkflowFailureInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` LastHeartbeatDetails *v1.Payloads `protobuf:"bytes,1,opt,name=last_heartbeat_details,json=lastHeartbeatDetails,proto3" json:"last_heartbeat_details,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -313,11 +452,6 @@ func (x *ResetWorkflowFailureInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ResetWorkflowFailureInfo.ProtoReflect.Descriptor instead. -func (*ResetWorkflowFailureInfo) Descriptor() ([]byte, []int) { - return file_temporal_api_failure_v1_message_proto_rawDescGZIP(), []int{5} -} - func (x *ResetWorkflowFailureInfo) GetLastHeartbeatDetails() *v1.Payloads { if x != nil { return x.LastHeartbeatDetails @@ -325,8 +459,37 @@ func (x *ResetWorkflowFailureInfo) GetLastHeartbeatDetails() *v1.Payloads { return nil } +func (x *ResetWorkflowFailureInfo) SetLastHeartbeatDetails(v *v1.Payloads) { + x.LastHeartbeatDetails = v +} + +func (x *ResetWorkflowFailureInfo) HasLastHeartbeatDetails() bool { + if x == nil { + return false + } + return x.LastHeartbeatDetails != nil +} + +func (x *ResetWorkflowFailureInfo) ClearLastHeartbeatDetails() { + x.LastHeartbeatDetails = nil +} + +type ResetWorkflowFailureInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + LastHeartbeatDetails *v1.Payloads +} + +func (b0 ResetWorkflowFailureInfo_builder) Build() *ResetWorkflowFailureInfo { + m0 := &ResetWorkflowFailureInfo{} + b, x := &b0, m0 + _, _ = b, x + x.LastHeartbeatDetails = b.LastHeartbeatDetails + return m0 +} + type ActivityFailureInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` ScheduledEventId int64 `protobuf:"varint,1,opt,name=scheduled_event_id,json=scheduledEventId,proto3" json:"scheduled_event_id,omitempty"` StartedEventId int64 `protobuf:"varint,2,opt,name=started_event_id,json=startedEventId,proto3" json:"started_event_id,omitempty"` Identity string `protobuf:"bytes,3,opt,name=identity,proto3" json:"identity,omitempty"` @@ -362,11 +525,6 @@ func (x *ActivityFailureInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ActivityFailureInfo.ProtoReflect.Descriptor instead. -func (*ActivityFailureInfo) Descriptor() ([]byte, []int) { - return file_temporal_api_failure_v1_message_proto_rawDescGZIP(), []int{6} -} - func (x *ActivityFailureInfo) GetScheduledEventId() int64 { if x != nil { return x.ScheduledEventId @@ -409,8 +567,67 @@ func (x *ActivityFailureInfo) GetRetryState() v11.RetryState { return v11.RetryState(0) } +func (x *ActivityFailureInfo) SetScheduledEventId(v int64) { + x.ScheduledEventId = v +} + +func (x *ActivityFailureInfo) SetStartedEventId(v int64) { + x.StartedEventId = v +} + +func (x *ActivityFailureInfo) SetIdentity(v string) { + x.Identity = v +} + +func (x *ActivityFailureInfo) SetActivityType(v *v1.ActivityType) { + x.ActivityType = v +} + +func (x *ActivityFailureInfo) SetActivityId(v string) { + x.ActivityId = v +} + +func (x *ActivityFailureInfo) SetRetryState(v v11.RetryState) { + x.RetryState = v +} + +func (x *ActivityFailureInfo) HasActivityType() bool { + if x == nil { + return false + } + return x.ActivityType != nil +} + +func (x *ActivityFailureInfo) ClearActivityType() { + x.ActivityType = nil +} + +type ActivityFailureInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ScheduledEventId int64 + StartedEventId int64 + Identity string + ActivityType *v1.ActivityType + ActivityId string + RetryState v11.RetryState +} + +func (b0 ActivityFailureInfo_builder) Build() *ActivityFailureInfo { + m0 := &ActivityFailureInfo{} + b, x := &b0, m0 + _, _ = b, x + x.ScheduledEventId = b.ScheduledEventId + x.StartedEventId = b.StartedEventId + x.Identity = b.Identity + x.ActivityType = b.ActivityType + x.ActivityId = b.ActivityId + x.RetryState = b.RetryState + return m0 +} + type ChildWorkflowExecutionFailureInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` WorkflowType *v1.WorkflowType `protobuf:"bytes,3,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type,omitempty"` @@ -446,11 +663,6 @@ func (x *ChildWorkflowExecutionFailureInfo) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use ChildWorkflowExecutionFailureInfo.ProtoReflect.Descriptor instead. -func (*ChildWorkflowExecutionFailureInfo) Descriptor() ([]byte, []int) { - return file_temporal_api_failure_v1_message_proto_rawDescGZIP(), []int{7} -} - func (x *ChildWorkflowExecutionFailureInfo) GetNamespace() string { if x != nil { return x.Namespace @@ -493,8 +705,78 @@ func (x *ChildWorkflowExecutionFailureInfo) GetRetryState() v11.RetryState { return v11.RetryState(0) } +func (x *ChildWorkflowExecutionFailureInfo) SetNamespace(v string) { + x.Namespace = v +} + +func (x *ChildWorkflowExecutionFailureInfo) SetWorkflowExecution(v *v1.WorkflowExecution) { + x.WorkflowExecution = v +} + +func (x *ChildWorkflowExecutionFailureInfo) SetWorkflowType(v *v1.WorkflowType) { + x.WorkflowType = v +} + +func (x *ChildWorkflowExecutionFailureInfo) SetInitiatedEventId(v int64) { + x.InitiatedEventId = v +} + +func (x *ChildWorkflowExecutionFailureInfo) SetStartedEventId(v int64) { + x.StartedEventId = v +} + +func (x *ChildWorkflowExecutionFailureInfo) SetRetryState(v v11.RetryState) { + x.RetryState = v +} + +func (x *ChildWorkflowExecutionFailureInfo) HasWorkflowExecution() bool { + if x == nil { + return false + } + return x.WorkflowExecution != nil +} + +func (x *ChildWorkflowExecutionFailureInfo) HasWorkflowType() bool { + if x == nil { + return false + } + return x.WorkflowType != nil +} + +func (x *ChildWorkflowExecutionFailureInfo) ClearWorkflowExecution() { + x.WorkflowExecution = nil +} + +func (x *ChildWorkflowExecutionFailureInfo) ClearWorkflowType() { + x.WorkflowType = nil +} + +type ChildWorkflowExecutionFailureInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + WorkflowExecution *v1.WorkflowExecution + WorkflowType *v1.WorkflowType + InitiatedEventId int64 + StartedEventId int64 + RetryState v11.RetryState +} + +func (b0 ChildWorkflowExecutionFailureInfo_builder) Build() *ChildWorkflowExecutionFailureInfo { + m0 := &ChildWorkflowExecutionFailureInfo{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.WorkflowExecution = b.WorkflowExecution + x.WorkflowType = b.WorkflowType + x.InitiatedEventId = b.InitiatedEventId + x.StartedEventId = b.StartedEventId + x.RetryState = b.RetryState + return m0 +} + type NexusOperationFailureInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The NexusOperationScheduled event ID. ScheduledEventId int64 `protobuf:"varint,1,opt,name=scheduled_event_id,json=scheduledEventId,proto3" json:"scheduled_event_id,omitempty"` // Endpoint name. @@ -540,11 +822,6 @@ func (x *NexusOperationFailureInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use NexusOperationFailureInfo.ProtoReflect.Descriptor instead. -func (*NexusOperationFailureInfo) Descriptor() ([]byte, []int) { - return file_temporal_api_failure_v1_message_proto_rawDescGZIP(), []int{8} -} - func (x *NexusOperationFailureInfo) GetScheduledEventId() int64 { if x != nil { return x.ScheduledEventId @@ -588,8 +865,67 @@ func (x *NexusOperationFailureInfo) GetOperationToken() string { return "" } +func (x *NexusOperationFailureInfo) SetScheduledEventId(v int64) { + x.ScheduledEventId = v +} + +func (x *NexusOperationFailureInfo) SetEndpoint(v string) { + x.Endpoint = v +} + +func (x *NexusOperationFailureInfo) SetService(v string) { + x.Service = v +} + +func (x *NexusOperationFailureInfo) SetOperation(v string) { + x.Operation = v +} + +// Deprecated: Marked as deprecated in temporal/api/failure/v1/message.proto. +func (x *NexusOperationFailureInfo) SetOperationId(v string) { + x.OperationId = v +} + +func (x *NexusOperationFailureInfo) SetOperationToken(v string) { + x.OperationToken = v +} + +type NexusOperationFailureInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The NexusOperationScheduled event ID. + ScheduledEventId int64 + // Endpoint name. + Endpoint string + // Service name. + Service string + // Operation name. + Operation string + // Operation ID - may be empty if the operation completed synchronously. + // + // Deprecated. Renamed to operation_token. + // + // Deprecated: Marked as deprecated in temporal/api/failure/v1/message.proto. + OperationId string + // Operation token - may be empty if the operation completed synchronously. + OperationToken string +} + +func (b0 NexusOperationFailureInfo_builder) Build() *NexusOperationFailureInfo { + m0 := &NexusOperationFailureInfo{} + b, x := &b0, m0 + _, _ = b, x + x.ScheduledEventId = b.ScheduledEventId + x.Endpoint = b.Endpoint + x.Service = b.Service + x.Operation = b.Operation + x.OperationId = b.OperationId + x.OperationToken = b.OperationToken + return m0 +} + type NexusHandlerFailureInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The Nexus error type as defined in the spec: // https://github.com/nexus-rpc/api/blob/main/SPEC.md#predefined-handler-errors. Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` @@ -624,11 +960,6 @@ func (x *NexusHandlerFailureInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use NexusHandlerFailureInfo.ProtoReflect.Descriptor instead. -func (*NexusHandlerFailureInfo) Descriptor() ([]byte, []int) { - return file_temporal_api_failure_v1_message_proto_rawDescGZIP(), []int{9} -} - func (x *NexusHandlerFailureInfo) GetType() string { if x != nil { return x.Type @@ -643,8 +974,35 @@ func (x *NexusHandlerFailureInfo) GetRetryBehavior() v11.NexusHandlerErrorRetryB return v11.NexusHandlerErrorRetryBehavior(0) } +func (x *NexusHandlerFailureInfo) SetType(v string) { + x.Type = v +} + +func (x *NexusHandlerFailureInfo) SetRetryBehavior(v v11.NexusHandlerErrorRetryBehavior) { + x.RetryBehavior = v +} + +type NexusHandlerFailureInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The Nexus error type as defined in the spec: + // https://github.com/nexus-rpc/api/blob/main/SPEC.md#predefined-handler-errors. + Type string + // Retry behavior, defaults to the retry behavior of the error type as defined in the spec. + RetryBehavior v11.NexusHandlerErrorRetryBehavior +} + +func (b0 NexusHandlerFailureInfo_builder) Build() *NexusHandlerFailureInfo { + m0 := &NexusHandlerFailureInfo{} + b, x := &b0, m0 + _, _ = b, x + x.Type = b.Type + x.RetryBehavior = b.RetryBehavior + return m0 +} + type Failure struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // The source this Failure originated in, e.g. TypeScriptSDK / JavaSDK // In some SDKs this is used to rehydrate the stack trace into an exception object. @@ -709,11 +1067,6 @@ func (x *Failure) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Failure.ProtoReflect.Descriptor instead. -func (*Failure) Descriptor() ([]byte, []int) { - return file_temporal_api_failure_v1_message_proto_rawDescGZIP(), []int{10} -} - func (x *Failure) GetMessage() string { if x != nil { return x.Message @@ -846,6 +1199,434 @@ func (x *Failure) GetNexusHandlerFailureInfo() *NexusHandlerFailureInfo { return nil } +func (x *Failure) SetMessage(v string) { + x.Message = v +} + +func (x *Failure) SetSource(v string) { + x.Source = v +} + +func (x *Failure) SetStackTrace(v string) { + x.StackTrace = v +} + +func (x *Failure) SetEncodedAttributes(v *v1.Payload) { + x.EncodedAttributes = v +} + +func (x *Failure) SetCause(v *Failure) { + x.Cause = v +} + +func (x *Failure) SetApplicationFailureInfo(v *ApplicationFailureInfo) { + if v == nil { + x.FailureInfo = nil + return + } + x.FailureInfo = &Failure_ApplicationFailureInfo{v} +} + +func (x *Failure) SetTimeoutFailureInfo(v *TimeoutFailureInfo) { + if v == nil { + x.FailureInfo = nil + return + } + x.FailureInfo = &Failure_TimeoutFailureInfo{v} +} + +func (x *Failure) SetCanceledFailureInfo(v *CanceledFailureInfo) { + if v == nil { + x.FailureInfo = nil + return + } + x.FailureInfo = &Failure_CanceledFailureInfo{v} +} + +func (x *Failure) SetTerminatedFailureInfo(v *TerminatedFailureInfo) { + if v == nil { + x.FailureInfo = nil + return + } + x.FailureInfo = &Failure_TerminatedFailureInfo{v} +} + +func (x *Failure) SetServerFailureInfo(v *ServerFailureInfo) { + if v == nil { + x.FailureInfo = nil + return + } + x.FailureInfo = &Failure_ServerFailureInfo{v} +} + +func (x *Failure) SetResetWorkflowFailureInfo(v *ResetWorkflowFailureInfo) { + if v == nil { + x.FailureInfo = nil + return + } + x.FailureInfo = &Failure_ResetWorkflowFailureInfo{v} +} + +func (x *Failure) SetActivityFailureInfo(v *ActivityFailureInfo) { + if v == nil { + x.FailureInfo = nil + return + } + x.FailureInfo = &Failure_ActivityFailureInfo{v} +} + +func (x *Failure) SetChildWorkflowExecutionFailureInfo(v *ChildWorkflowExecutionFailureInfo) { + if v == nil { + x.FailureInfo = nil + return + } + x.FailureInfo = &Failure_ChildWorkflowExecutionFailureInfo{v} +} + +func (x *Failure) SetNexusOperationExecutionFailureInfo(v *NexusOperationFailureInfo) { + if v == nil { + x.FailureInfo = nil + return + } + x.FailureInfo = &Failure_NexusOperationExecutionFailureInfo{v} +} + +func (x *Failure) SetNexusHandlerFailureInfo(v *NexusHandlerFailureInfo) { + if v == nil { + x.FailureInfo = nil + return + } + x.FailureInfo = &Failure_NexusHandlerFailureInfo{v} +} + +func (x *Failure) HasEncodedAttributes() bool { + if x == nil { + return false + } + return x.EncodedAttributes != nil +} + +func (x *Failure) HasCause() bool { + if x == nil { + return false + } + return x.Cause != nil +} + +func (x *Failure) HasFailureInfo() bool { + if x == nil { + return false + } + return x.FailureInfo != nil +} + +func (x *Failure) HasApplicationFailureInfo() bool { + if x == nil { + return false + } + _, ok := x.FailureInfo.(*Failure_ApplicationFailureInfo) + return ok +} + +func (x *Failure) HasTimeoutFailureInfo() bool { + if x == nil { + return false + } + _, ok := x.FailureInfo.(*Failure_TimeoutFailureInfo) + return ok +} + +func (x *Failure) HasCanceledFailureInfo() bool { + if x == nil { + return false + } + _, ok := x.FailureInfo.(*Failure_CanceledFailureInfo) + return ok +} + +func (x *Failure) HasTerminatedFailureInfo() bool { + if x == nil { + return false + } + _, ok := x.FailureInfo.(*Failure_TerminatedFailureInfo) + return ok +} + +func (x *Failure) HasServerFailureInfo() bool { + if x == nil { + return false + } + _, ok := x.FailureInfo.(*Failure_ServerFailureInfo) + return ok +} + +func (x *Failure) HasResetWorkflowFailureInfo() bool { + if x == nil { + return false + } + _, ok := x.FailureInfo.(*Failure_ResetWorkflowFailureInfo) + return ok +} + +func (x *Failure) HasActivityFailureInfo() bool { + if x == nil { + return false + } + _, ok := x.FailureInfo.(*Failure_ActivityFailureInfo) + return ok +} + +func (x *Failure) HasChildWorkflowExecutionFailureInfo() bool { + if x == nil { + return false + } + _, ok := x.FailureInfo.(*Failure_ChildWorkflowExecutionFailureInfo) + return ok +} + +func (x *Failure) HasNexusOperationExecutionFailureInfo() bool { + if x == nil { + return false + } + _, ok := x.FailureInfo.(*Failure_NexusOperationExecutionFailureInfo) + return ok +} + +func (x *Failure) HasNexusHandlerFailureInfo() bool { + if x == nil { + return false + } + _, ok := x.FailureInfo.(*Failure_NexusHandlerFailureInfo) + return ok +} + +func (x *Failure) ClearEncodedAttributes() { + x.EncodedAttributes = nil +} + +func (x *Failure) ClearCause() { + x.Cause = nil +} + +func (x *Failure) ClearFailureInfo() { + x.FailureInfo = nil +} + +func (x *Failure) ClearApplicationFailureInfo() { + if _, ok := x.FailureInfo.(*Failure_ApplicationFailureInfo); ok { + x.FailureInfo = nil + } +} + +func (x *Failure) ClearTimeoutFailureInfo() { + if _, ok := x.FailureInfo.(*Failure_TimeoutFailureInfo); ok { + x.FailureInfo = nil + } +} + +func (x *Failure) ClearCanceledFailureInfo() { + if _, ok := x.FailureInfo.(*Failure_CanceledFailureInfo); ok { + x.FailureInfo = nil + } +} + +func (x *Failure) ClearTerminatedFailureInfo() { + if _, ok := x.FailureInfo.(*Failure_TerminatedFailureInfo); ok { + x.FailureInfo = nil + } +} + +func (x *Failure) ClearServerFailureInfo() { + if _, ok := x.FailureInfo.(*Failure_ServerFailureInfo); ok { + x.FailureInfo = nil + } +} + +func (x *Failure) ClearResetWorkflowFailureInfo() { + if _, ok := x.FailureInfo.(*Failure_ResetWorkflowFailureInfo); ok { + x.FailureInfo = nil + } +} + +func (x *Failure) ClearActivityFailureInfo() { + if _, ok := x.FailureInfo.(*Failure_ActivityFailureInfo); ok { + x.FailureInfo = nil + } +} + +func (x *Failure) ClearChildWorkflowExecutionFailureInfo() { + if _, ok := x.FailureInfo.(*Failure_ChildWorkflowExecutionFailureInfo); ok { + x.FailureInfo = nil + } +} + +func (x *Failure) ClearNexusOperationExecutionFailureInfo() { + if _, ok := x.FailureInfo.(*Failure_NexusOperationExecutionFailureInfo); ok { + x.FailureInfo = nil + } +} + +func (x *Failure) ClearNexusHandlerFailureInfo() { + if _, ok := x.FailureInfo.(*Failure_NexusHandlerFailureInfo); ok { + x.FailureInfo = nil + } +} + +const Failure_FailureInfo_not_set_case case_Failure_FailureInfo = 0 +const Failure_ApplicationFailureInfo_case case_Failure_FailureInfo = 5 +const Failure_TimeoutFailureInfo_case case_Failure_FailureInfo = 6 +const Failure_CanceledFailureInfo_case case_Failure_FailureInfo = 7 +const Failure_TerminatedFailureInfo_case case_Failure_FailureInfo = 8 +const Failure_ServerFailureInfo_case case_Failure_FailureInfo = 9 +const Failure_ResetWorkflowFailureInfo_case case_Failure_FailureInfo = 10 +const Failure_ActivityFailureInfo_case case_Failure_FailureInfo = 11 +const Failure_ChildWorkflowExecutionFailureInfo_case case_Failure_FailureInfo = 12 +const Failure_NexusOperationExecutionFailureInfo_case case_Failure_FailureInfo = 13 +const Failure_NexusHandlerFailureInfo_case case_Failure_FailureInfo = 14 + +func (x *Failure) WhichFailureInfo() case_Failure_FailureInfo { + if x == nil { + return Failure_FailureInfo_not_set_case + } + switch x.FailureInfo.(type) { + case *Failure_ApplicationFailureInfo: + return Failure_ApplicationFailureInfo_case + case *Failure_TimeoutFailureInfo: + return Failure_TimeoutFailureInfo_case + case *Failure_CanceledFailureInfo: + return Failure_CanceledFailureInfo_case + case *Failure_TerminatedFailureInfo: + return Failure_TerminatedFailureInfo_case + case *Failure_ServerFailureInfo: + return Failure_ServerFailureInfo_case + case *Failure_ResetWorkflowFailureInfo: + return Failure_ResetWorkflowFailureInfo_case + case *Failure_ActivityFailureInfo: + return Failure_ActivityFailureInfo_case + case *Failure_ChildWorkflowExecutionFailureInfo: + return Failure_ChildWorkflowExecutionFailureInfo_case + case *Failure_NexusOperationExecutionFailureInfo: + return Failure_NexusOperationExecutionFailureInfo_case + case *Failure_NexusHandlerFailureInfo: + return Failure_NexusHandlerFailureInfo_case + default: + return Failure_FailureInfo_not_set_case + } +} + +type Failure_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Message string + // The source this Failure originated in, e.g. TypeScriptSDK / JavaSDK + // In some SDKs this is used to rehydrate the stack trace into an exception object. + Source string + StackTrace string + // Alternative way to supply `message` and `stack_trace` and possibly other attributes, used for encryption of + // errors originating in user code which might contain sensitive information. + // The `encoded_attributes` Payload could represent any serializable object, e.g. JSON object or a `Failure` proto + // message. + // + // SDK authors: + // - The SDK should provide a default `encodeFailureAttributes` and `decodeFailureAttributes` implementation that: + // - Uses a JSON object to represent `{ message, stack_trace }`. + // - Overwrites the original message with "Encoded failure" to indicate that more information could be extracted. + // - Overwrites the original stack_trace with an empty string. + // - The resulting JSON object is converted to Payload using the default PayloadConverter and should be processed + // by the user-provided PayloadCodec + // + // - If there's demand, we could allow overriding the default SDK implementation to encode other opaque Failure attributes. + // (-- api-linter: core::0203::optional=disabled --) + EncodedAttributes *v1.Payload + Cause *Failure + // Fields of oneof FailureInfo: + ApplicationFailureInfo *ApplicationFailureInfo + TimeoutFailureInfo *TimeoutFailureInfo + CanceledFailureInfo *CanceledFailureInfo + TerminatedFailureInfo *TerminatedFailureInfo + ServerFailureInfo *ServerFailureInfo + ResetWorkflowFailureInfo *ResetWorkflowFailureInfo + ActivityFailureInfo *ActivityFailureInfo + ChildWorkflowExecutionFailureInfo *ChildWorkflowExecutionFailureInfo + NexusOperationExecutionFailureInfo *NexusOperationFailureInfo + NexusHandlerFailureInfo *NexusHandlerFailureInfo + // -- end of FailureInfo +} + +func (b0 Failure_builder) Build() *Failure { + m0 := &Failure{} + b, x := &b0, m0 + _, _ = b, x + x.Message = b.Message + x.Source = b.Source + x.StackTrace = b.StackTrace + x.EncodedAttributes = b.EncodedAttributes + x.Cause = b.Cause + if b.ApplicationFailureInfo != nil { + x.FailureInfo = &Failure_ApplicationFailureInfo{b.ApplicationFailureInfo} + } + if b.TimeoutFailureInfo != nil { + x.FailureInfo = &Failure_TimeoutFailureInfo{b.TimeoutFailureInfo} + } + if b.CanceledFailureInfo != nil { + x.FailureInfo = &Failure_CanceledFailureInfo{b.CanceledFailureInfo} + } + if b.TerminatedFailureInfo != nil { + x.FailureInfo = &Failure_TerminatedFailureInfo{b.TerminatedFailureInfo} + } + if b.ServerFailureInfo != nil { + x.FailureInfo = &Failure_ServerFailureInfo{b.ServerFailureInfo} + } + if b.ResetWorkflowFailureInfo != nil { + x.FailureInfo = &Failure_ResetWorkflowFailureInfo{b.ResetWorkflowFailureInfo} + } + if b.ActivityFailureInfo != nil { + x.FailureInfo = &Failure_ActivityFailureInfo{b.ActivityFailureInfo} + } + if b.ChildWorkflowExecutionFailureInfo != nil { + x.FailureInfo = &Failure_ChildWorkflowExecutionFailureInfo{b.ChildWorkflowExecutionFailureInfo} + } + if b.NexusOperationExecutionFailureInfo != nil { + x.FailureInfo = &Failure_NexusOperationExecutionFailureInfo{b.NexusOperationExecutionFailureInfo} + } + if b.NexusHandlerFailureInfo != nil { + x.FailureInfo = &Failure_NexusHandlerFailureInfo{b.NexusHandlerFailureInfo} + } + return m0 +} + +type case_Failure_FailureInfo protoreflect.FieldNumber + +func (x case_Failure_FailureInfo) String() string { + switch x { + case Failure_FailureInfo_not_set_case: + return "FailureFailureInfoNotSetCase" + case Failure_ApplicationFailureInfo_case: + return "FailureApplicationFailureInfoCase" + case Failure_TimeoutFailureInfo_case: + return "FailureTimeoutFailureInfoCase" + case Failure_CanceledFailureInfo_case: + return "FailureCanceledFailureInfoCase" + case Failure_TerminatedFailureInfo_case: + return "FailureTerminatedFailureInfoCase" + case Failure_ServerFailureInfo_case: + return "FailureServerFailureInfoCase" + case Failure_ResetWorkflowFailureInfo_case: + return "FailureResetWorkflowFailureInfoCase" + case Failure_ActivityFailureInfo_case: + return "FailureActivityFailureInfoCase" + case Failure_ChildWorkflowExecutionFailureInfo_case: + return "FailureChildWorkflowExecutionFailureInfoCase" + case Failure_NexusOperationExecutionFailureInfo_case: + return "FailureNexusOperationExecutionFailureInfoCase" + case Failure_NexusHandlerFailureInfo_case: + return "FailureNexusHandlerFailureInfoCase" + default: + return strconv.Itoa(int(x)) + } + +} + type isFailure_FailureInfo interface { isFailure_FailureInfo() } @@ -911,7 +1692,7 @@ func (*Failure_NexusOperationExecutionFailureInfo) isFailure_FailureInfo() {} func (*Failure_NexusHandlerFailureInfo) isFailure_FailureInfo() {} type MultiOperationExecutionAborted struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -941,9 +1722,16 @@ func (x *MultiOperationExecutionAborted) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use MultiOperationExecutionAborted.ProtoReflect.Descriptor instead. -func (*MultiOperationExecutionAborted) Descriptor() ([]byte, []int) { - return file_temporal_api_failure_v1_message_proto_rawDescGZIP(), []int{11} +type MultiOperationExecutionAborted_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 MultiOperationExecutionAborted_builder) Build() *MultiOperationExecutionAborted { + m0 := &MultiOperationExecutionAborted{} + b, x := &b0, m0 + _, _ = b, x + return m0 } var File_temporal_api_failure_v1_message_proto protoreflect.FileDescriptor @@ -1017,18 +1805,6 @@ const file_temporal_api_failure_v1_message_proto_rawDesc = "" + "\x1eMultiOperationExecutionAbortedB\x8e\x01\n" + "\x1aio.temporal.api.failure.v1B\fMessageProtoP\x01Z%go.temporal.io/api/failure/v1;failure\xaa\x02\x19Temporalio.Api.Failure.V1\xea\x02\x1cTemporalio::Api::Failure::V1b\x06proto3" -var ( - file_temporal_api_failure_v1_message_proto_rawDescOnce sync.Once - file_temporal_api_failure_v1_message_proto_rawDescData []byte -) - -func file_temporal_api_failure_v1_message_proto_rawDescGZIP() []byte { - file_temporal_api_failure_v1_message_proto_rawDescOnce.Do(func() { - file_temporal_api_failure_v1_message_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_api_failure_v1_message_proto_rawDesc), len(file_temporal_api_failure_v1_message_proto_rawDesc))) - }) - return file_temporal_api_failure_v1_message_proto_rawDescData -} - var file_temporal_api_failure_v1_message_proto_msgTypes = make([]protoimpl.MessageInfo, 12) var file_temporal_api_failure_v1_message_proto_goTypes = []any{ (*ApplicationFailureInfo)(nil), // 0: temporal.api.failure.v1.ApplicationFailureInfo diff --git a/failure/v1/message_protoopaque.pb.go b/failure/v1/message_protoopaque.pb.go new file mode 100644 index 00000000..9462fbe6 --- /dev/null +++ b/failure/v1/message_protoopaque.pb.go @@ -0,0 +1,1847 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// plugins: +// protoc-gen-go +// protoc +// source: temporal/api/failure/v1/message.proto + +//go:build protoopaque + +package failure + +import ( + reflect "reflect" + "strconv" + unsafe "unsafe" + + v1 "go.temporal.io/api/common/v1" + v11 "go.temporal.io/api/enums/v1" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + durationpb "google.golang.org/protobuf/types/known/durationpb" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type ApplicationFailureInfo struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Type string `protobuf:"bytes,1,opt,name=type,proto3"` + xxx_hidden_NonRetryable bool `protobuf:"varint,2,opt,name=non_retryable,json=nonRetryable,proto3"` + xxx_hidden_Details *v1.Payloads `protobuf:"bytes,3,opt,name=details,proto3"` + xxx_hidden_NextRetryDelay *durationpb.Duration `protobuf:"bytes,4,opt,name=next_retry_delay,json=nextRetryDelay,proto3"` + xxx_hidden_Category v11.ApplicationErrorCategory `protobuf:"varint,5,opt,name=category,proto3,enum=temporal.api.enums.v1.ApplicationErrorCategory"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ApplicationFailureInfo) Reset() { + *x = ApplicationFailureInfo{} + mi := &file_temporal_api_failure_v1_message_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ApplicationFailureInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ApplicationFailureInfo) ProtoMessage() {} + +func (x *ApplicationFailureInfo) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_failure_v1_message_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ApplicationFailureInfo) GetType() string { + if x != nil { + return x.xxx_hidden_Type + } + return "" +} + +func (x *ApplicationFailureInfo) GetNonRetryable() bool { + if x != nil { + return x.xxx_hidden_NonRetryable + } + return false +} + +func (x *ApplicationFailureInfo) GetDetails() *v1.Payloads { + if x != nil { + return x.xxx_hidden_Details + } + return nil +} + +func (x *ApplicationFailureInfo) GetNextRetryDelay() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_NextRetryDelay + } + return nil +} + +func (x *ApplicationFailureInfo) GetCategory() v11.ApplicationErrorCategory { + if x != nil { + return x.xxx_hidden_Category + } + return v11.ApplicationErrorCategory(0) +} + +func (x *ApplicationFailureInfo) SetType(v string) { + x.xxx_hidden_Type = v +} + +func (x *ApplicationFailureInfo) SetNonRetryable(v bool) { + x.xxx_hidden_NonRetryable = v +} + +func (x *ApplicationFailureInfo) SetDetails(v *v1.Payloads) { + x.xxx_hidden_Details = v +} + +func (x *ApplicationFailureInfo) SetNextRetryDelay(v *durationpb.Duration) { + x.xxx_hidden_NextRetryDelay = v +} + +func (x *ApplicationFailureInfo) SetCategory(v v11.ApplicationErrorCategory) { + x.xxx_hidden_Category = v +} + +func (x *ApplicationFailureInfo) HasDetails() bool { + if x == nil { + return false + } + return x.xxx_hidden_Details != nil +} + +func (x *ApplicationFailureInfo) HasNextRetryDelay() bool { + if x == nil { + return false + } + return x.xxx_hidden_NextRetryDelay != nil +} + +func (x *ApplicationFailureInfo) ClearDetails() { + x.xxx_hidden_Details = nil +} + +func (x *ApplicationFailureInfo) ClearNextRetryDelay() { + x.xxx_hidden_NextRetryDelay = nil +} + +type ApplicationFailureInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Type string + NonRetryable bool + Details *v1.Payloads + // next_retry_delay can be used by the client to override the activity + // retry interval calculated by the retry policy. Retry attempts will + // still be subject to the maximum retries limit and total time limit + // defined by the policy. + NextRetryDelay *durationpb.Duration + Category v11.ApplicationErrorCategory +} + +func (b0 ApplicationFailureInfo_builder) Build() *ApplicationFailureInfo { + m0 := &ApplicationFailureInfo{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Type = b.Type + x.xxx_hidden_NonRetryable = b.NonRetryable + x.xxx_hidden_Details = b.Details + x.xxx_hidden_NextRetryDelay = b.NextRetryDelay + x.xxx_hidden_Category = b.Category + return m0 +} + +type TimeoutFailureInfo struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_TimeoutType v11.TimeoutType `protobuf:"varint,1,opt,name=timeout_type,json=timeoutType,proto3,enum=temporal.api.enums.v1.TimeoutType"` + xxx_hidden_LastHeartbeatDetails *v1.Payloads `protobuf:"bytes,2,opt,name=last_heartbeat_details,json=lastHeartbeatDetails,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TimeoutFailureInfo) Reset() { + *x = TimeoutFailureInfo{} + mi := &file_temporal_api_failure_v1_message_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TimeoutFailureInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TimeoutFailureInfo) ProtoMessage() {} + +func (x *TimeoutFailureInfo) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_failure_v1_message_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *TimeoutFailureInfo) GetTimeoutType() v11.TimeoutType { + if x != nil { + return x.xxx_hidden_TimeoutType + } + return v11.TimeoutType(0) +} + +func (x *TimeoutFailureInfo) GetLastHeartbeatDetails() *v1.Payloads { + if x != nil { + return x.xxx_hidden_LastHeartbeatDetails + } + return nil +} + +func (x *TimeoutFailureInfo) SetTimeoutType(v v11.TimeoutType) { + x.xxx_hidden_TimeoutType = v +} + +func (x *TimeoutFailureInfo) SetLastHeartbeatDetails(v *v1.Payloads) { + x.xxx_hidden_LastHeartbeatDetails = v +} + +func (x *TimeoutFailureInfo) HasLastHeartbeatDetails() bool { + if x == nil { + return false + } + return x.xxx_hidden_LastHeartbeatDetails != nil +} + +func (x *TimeoutFailureInfo) ClearLastHeartbeatDetails() { + x.xxx_hidden_LastHeartbeatDetails = nil +} + +type TimeoutFailureInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + TimeoutType v11.TimeoutType + LastHeartbeatDetails *v1.Payloads +} + +func (b0 TimeoutFailureInfo_builder) Build() *TimeoutFailureInfo { + m0 := &TimeoutFailureInfo{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_TimeoutType = b.TimeoutType + x.xxx_hidden_LastHeartbeatDetails = b.LastHeartbeatDetails + return m0 +} + +type CanceledFailureInfo struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Details *v1.Payloads `protobuf:"bytes,1,opt,name=details,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CanceledFailureInfo) Reset() { + *x = CanceledFailureInfo{} + mi := &file_temporal_api_failure_v1_message_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CanceledFailureInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CanceledFailureInfo) ProtoMessage() {} + +func (x *CanceledFailureInfo) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_failure_v1_message_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *CanceledFailureInfo) GetDetails() *v1.Payloads { + if x != nil { + return x.xxx_hidden_Details + } + return nil +} + +func (x *CanceledFailureInfo) SetDetails(v *v1.Payloads) { + x.xxx_hidden_Details = v +} + +func (x *CanceledFailureInfo) HasDetails() bool { + if x == nil { + return false + } + return x.xxx_hidden_Details != nil +} + +func (x *CanceledFailureInfo) ClearDetails() { + x.xxx_hidden_Details = nil +} + +type CanceledFailureInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Details *v1.Payloads +} + +func (b0 CanceledFailureInfo_builder) Build() *CanceledFailureInfo { + m0 := &CanceledFailureInfo{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Details = b.Details + return m0 +} + +type TerminatedFailureInfo struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TerminatedFailureInfo) Reset() { + *x = TerminatedFailureInfo{} + mi := &file_temporal_api_failure_v1_message_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TerminatedFailureInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TerminatedFailureInfo) ProtoMessage() {} + +func (x *TerminatedFailureInfo) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_failure_v1_message_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type TerminatedFailureInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 TerminatedFailureInfo_builder) Build() *TerminatedFailureInfo { + m0 := &TerminatedFailureInfo{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type ServerFailureInfo struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_NonRetryable bool `protobuf:"varint,1,opt,name=non_retryable,json=nonRetryable,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ServerFailureInfo) Reset() { + *x = ServerFailureInfo{} + mi := &file_temporal_api_failure_v1_message_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ServerFailureInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ServerFailureInfo) ProtoMessage() {} + +func (x *ServerFailureInfo) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_failure_v1_message_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ServerFailureInfo) GetNonRetryable() bool { + if x != nil { + return x.xxx_hidden_NonRetryable + } + return false +} + +func (x *ServerFailureInfo) SetNonRetryable(v bool) { + x.xxx_hidden_NonRetryable = v +} + +type ServerFailureInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + NonRetryable bool +} + +func (b0 ServerFailureInfo_builder) Build() *ServerFailureInfo { + m0 := &ServerFailureInfo{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_NonRetryable = b.NonRetryable + return m0 +} + +type ResetWorkflowFailureInfo struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_LastHeartbeatDetails *v1.Payloads `protobuf:"bytes,1,opt,name=last_heartbeat_details,json=lastHeartbeatDetails,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ResetWorkflowFailureInfo) Reset() { + *x = ResetWorkflowFailureInfo{} + mi := &file_temporal_api_failure_v1_message_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ResetWorkflowFailureInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResetWorkflowFailureInfo) ProtoMessage() {} + +func (x *ResetWorkflowFailureInfo) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_failure_v1_message_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ResetWorkflowFailureInfo) GetLastHeartbeatDetails() *v1.Payloads { + if x != nil { + return x.xxx_hidden_LastHeartbeatDetails + } + return nil +} + +func (x *ResetWorkflowFailureInfo) SetLastHeartbeatDetails(v *v1.Payloads) { + x.xxx_hidden_LastHeartbeatDetails = v +} + +func (x *ResetWorkflowFailureInfo) HasLastHeartbeatDetails() bool { + if x == nil { + return false + } + return x.xxx_hidden_LastHeartbeatDetails != nil +} + +func (x *ResetWorkflowFailureInfo) ClearLastHeartbeatDetails() { + x.xxx_hidden_LastHeartbeatDetails = nil +} + +type ResetWorkflowFailureInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + LastHeartbeatDetails *v1.Payloads +} + +func (b0 ResetWorkflowFailureInfo_builder) Build() *ResetWorkflowFailureInfo { + m0 := &ResetWorkflowFailureInfo{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_LastHeartbeatDetails = b.LastHeartbeatDetails + return m0 +} + +type ActivityFailureInfo struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ScheduledEventId int64 `protobuf:"varint,1,opt,name=scheduled_event_id,json=scheduledEventId,proto3"` + xxx_hidden_StartedEventId int64 `protobuf:"varint,2,opt,name=started_event_id,json=startedEventId,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,3,opt,name=identity,proto3"` + xxx_hidden_ActivityType *v1.ActivityType `protobuf:"bytes,4,opt,name=activity_type,json=activityType,proto3"` + xxx_hidden_ActivityId string `protobuf:"bytes,5,opt,name=activity_id,json=activityId,proto3"` + xxx_hidden_RetryState v11.RetryState `protobuf:"varint,6,opt,name=retry_state,json=retryState,proto3,enum=temporal.api.enums.v1.RetryState"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ActivityFailureInfo) Reset() { + *x = ActivityFailureInfo{} + mi := &file_temporal_api_failure_v1_message_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ActivityFailureInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ActivityFailureInfo) ProtoMessage() {} + +func (x *ActivityFailureInfo) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_failure_v1_message_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ActivityFailureInfo) GetScheduledEventId() int64 { + if x != nil { + return x.xxx_hidden_ScheduledEventId + } + return 0 +} + +func (x *ActivityFailureInfo) GetStartedEventId() int64 { + if x != nil { + return x.xxx_hidden_StartedEventId + } + return 0 +} + +func (x *ActivityFailureInfo) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *ActivityFailureInfo) GetActivityType() *v1.ActivityType { + if x != nil { + return x.xxx_hidden_ActivityType + } + return nil +} + +func (x *ActivityFailureInfo) GetActivityId() string { + if x != nil { + return x.xxx_hidden_ActivityId + } + return "" +} + +func (x *ActivityFailureInfo) GetRetryState() v11.RetryState { + if x != nil { + return x.xxx_hidden_RetryState + } + return v11.RetryState(0) +} + +func (x *ActivityFailureInfo) SetScheduledEventId(v int64) { + x.xxx_hidden_ScheduledEventId = v +} + +func (x *ActivityFailureInfo) SetStartedEventId(v int64) { + x.xxx_hidden_StartedEventId = v +} + +func (x *ActivityFailureInfo) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *ActivityFailureInfo) SetActivityType(v *v1.ActivityType) { + x.xxx_hidden_ActivityType = v +} + +func (x *ActivityFailureInfo) SetActivityId(v string) { + x.xxx_hidden_ActivityId = v +} + +func (x *ActivityFailureInfo) SetRetryState(v v11.RetryState) { + x.xxx_hidden_RetryState = v +} + +func (x *ActivityFailureInfo) HasActivityType() bool { + if x == nil { + return false + } + return x.xxx_hidden_ActivityType != nil +} + +func (x *ActivityFailureInfo) ClearActivityType() { + x.xxx_hidden_ActivityType = nil +} + +type ActivityFailureInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ScheduledEventId int64 + StartedEventId int64 + Identity string + ActivityType *v1.ActivityType + ActivityId string + RetryState v11.RetryState +} + +func (b0 ActivityFailureInfo_builder) Build() *ActivityFailureInfo { + m0 := &ActivityFailureInfo{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ScheduledEventId = b.ScheduledEventId + x.xxx_hidden_StartedEventId = b.StartedEventId + x.xxx_hidden_Identity = b.Identity + x.xxx_hidden_ActivityType = b.ActivityType + x.xxx_hidden_ActivityId = b.ActivityId + x.xxx_hidden_RetryState = b.RetryState + return m0 +} + +type ChildWorkflowExecutionFailureInfo struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3"` + xxx_hidden_WorkflowType *v1.WorkflowType `protobuf:"bytes,3,opt,name=workflow_type,json=workflowType,proto3"` + xxx_hidden_InitiatedEventId int64 `protobuf:"varint,4,opt,name=initiated_event_id,json=initiatedEventId,proto3"` + xxx_hidden_StartedEventId int64 `protobuf:"varint,5,opt,name=started_event_id,json=startedEventId,proto3"` + xxx_hidden_RetryState v11.RetryState `protobuf:"varint,6,opt,name=retry_state,json=retryState,proto3,enum=temporal.api.enums.v1.RetryState"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ChildWorkflowExecutionFailureInfo) Reset() { + *x = ChildWorkflowExecutionFailureInfo{} + mi := &file_temporal_api_failure_v1_message_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ChildWorkflowExecutionFailureInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ChildWorkflowExecutionFailureInfo) ProtoMessage() {} + +func (x *ChildWorkflowExecutionFailureInfo) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_failure_v1_message_proto_msgTypes[7] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ChildWorkflowExecutionFailureInfo) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *ChildWorkflowExecutionFailureInfo) GetWorkflowExecution() *v1.WorkflowExecution { + if x != nil { + return x.xxx_hidden_WorkflowExecution + } + return nil +} + +func (x *ChildWorkflowExecutionFailureInfo) GetWorkflowType() *v1.WorkflowType { + if x != nil { + return x.xxx_hidden_WorkflowType + } + return nil +} + +func (x *ChildWorkflowExecutionFailureInfo) GetInitiatedEventId() int64 { + if x != nil { + return x.xxx_hidden_InitiatedEventId + } + return 0 +} + +func (x *ChildWorkflowExecutionFailureInfo) GetStartedEventId() int64 { + if x != nil { + return x.xxx_hidden_StartedEventId + } + return 0 +} + +func (x *ChildWorkflowExecutionFailureInfo) GetRetryState() v11.RetryState { + if x != nil { + return x.xxx_hidden_RetryState + } + return v11.RetryState(0) +} + +func (x *ChildWorkflowExecutionFailureInfo) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *ChildWorkflowExecutionFailureInfo) SetWorkflowExecution(v *v1.WorkflowExecution) { + x.xxx_hidden_WorkflowExecution = v +} + +func (x *ChildWorkflowExecutionFailureInfo) SetWorkflowType(v *v1.WorkflowType) { + x.xxx_hidden_WorkflowType = v +} + +func (x *ChildWorkflowExecutionFailureInfo) SetInitiatedEventId(v int64) { + x.xxx_hidden_InitiatedEventId = v +} + +func (x *ChildWorkflowExecutionFailureInfo) SetStartedEventId(v int64) { + x.xxx_hidden_StartedEventId = v +} + +func (x *ChildWorkflowExecutionFailureInfo) SetRetryState(v v11.RetryState) { + x.xxx_hidden_RetryState = v +} + +func (x *ChildWorkflowExecutionFailureInfo) HasWorkflowExecution() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowExecution != nil +} + +func (x *ChildWorkflowExecutionFailureInfo) HasWorkflowType() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowType != nil +} + +func (x *ChildWorkflowExecutionFailureInfo) ClearWorkflowExecution() { + x.xxx_hidden_WorkflowExecution = nil +} + +func (x *ChildWorkflowExecutionFailureInfo) ClearWorkflowType() { + x.xxx_hidden_WorkflowType = nil +} + +type ChildWorkflowExecutionFailureInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + WorkflowExecution *v1.WorkflowExecution + WorkflowType *v1.WorkflowType + InitiatedEventId int64 + StartedEventId int64 + RetryState v11.RetryState +} + +func (b0 ChildWorkflowExecutionFailureInfo_builder) Build() *ChildWorkflowExecutionFailureInfo { + m0 := &ChildWorkflowExecutionFailureInfo{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_WorkflowExecution = b.WorkflowExecution + x.xxx_hidden_WorkflowType = b.WorkflowType + x.xxx_hidden_InitiatedEventId = b.InitiatedEventId + x.xxx_hidden_StartedEventId = b.StartedEventId + x.xxx_hidden_RetryState = b.RetryState + return m0 +} + +type NexusOperationFailureInfo struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ScheduledEventId int64 `protobuf:"varint,1,opt,name=scheduled_event_id,json=scheduledEventId,proto3"` + xxx_hidden_Endpoint string `protobuf:"bytes,2,opt,name=endpoint,proto3"` + xxx_hidden_Service string `protobuf:"bytes,3,opt,name=service,proto3"` + xxx_hidden_Operation string `protobuf:"bytes,4,opt,name=operation,proto3"` + xxx_hidden_OperationId string `protobuf:"bytes,5,opt,name=operation_id,json=operationId,proto3"` + xxx_hidden_OperationToken string `protobuf:"bytes,6,opt,name=operation_token,json=operationToken,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *NexusOperationFailureInfo) Reset() { + *x = NexusOperationFailureInfo{} + mi := &file_temporal_api_failure_v1_message_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *NexusOperationFailureInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NexusOperationFailureInfo) ProtoMessage() {} + +func (x *NexusOperationFailureInfo) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_failure_v1_message_proto_msgTypes[8] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *NexusOperationFailureInfo) GetScheduledEventId() int64 { + if x != nil { + return x.xxx_hidden_ScheduledEventId + } + return 0 +} + +func (x *NexusOperationFailureInfo) GetEndpoint() string { + if x != nil { + return x.xxx_hidden_Endpoint + } + return "" +} + +func (x *NexusOperationFailureInfo) GetService() string { + if x != nil { + return x.xxx_hidden_Service + } + return "" +} + +func (x *NexusOperationFailureInfo) GetOperation() string { + if x != nil { + return x.xxx_hidden_Operation + } + return "" +} + +// Deprecated: Marked as deprecated in temporal/api/failure/v1/message.proto. +func (x *NexusOperationFailureInfo) GetOperationId() string { + if x != nil { + return x.xxx_hidden_OperationId + } + return "" +} + +func (x *NexusOperationFailureInfo) GetOperationToken() string { + if x != nil { + return x.xxx_hidden_OperationToken + } + return "" +} + +func (x *NexusOperationFailureInfo) SetScheduledEventId(v int64) { + x.xxx_hidden_ScheduledEventId = v +} + +func (x *NexusOperationFailureInfo) SetEndpoint(v string) { + x.xxx_hidden_Endpoint = v +} + +func (x *NexusOperationFailureInfo) SetService(v string) { + x.xxx_hidden_Service = v +} + +func (x *NexusOperationFailureInfo) SetOperation(v string) { + x.xxx_hidden_Operation = v +} + +// Deprecated: Marked as deprecated in temporal/api/failure/v1/message.proto. +func (x *NexusOperationFailureInfo) SetOperationId(v string) { + x.xxx_hidden_OperationId = v +} + +func (x *NexusOperationFailureInfo) SetOperationToken(v string) { + x.xxx_hidden_OperationToken = v +} + +type NexusOperationFailureInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The NexusOperationScheduled event ID. + ScheduledEventId int64 + // Endpoint name. + Endpoint string + // Service name. + Service string + // Operation name. + Operation string + // Operation ID - may be empty if the operation completed synchronously. + // + // Deprecated. Renamed to operation_token. + // + // Deprecated: Marked as deprecated in temporal/api/failure/v1/message.proto. + OperationId string + // Operation token - may be empty if the operation completed synchronously. + OperationToken string +} + +func (b0 NexusOperationFailureInfo_builder) Build() *NexusOperationFailureInfo { + m0 := &NexusOperationFailureInfo{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ScheduledEventId = b.ScheduledEventId + x.xxx_hidden_Endpoint = b.Endpoint + x.xxx_hidden_Service = b.Service + x.xxx_hidden_Operation = b.Operation + x.xxx_hidden_OperationId = b.OperationId + x.xxx_hidden_OperationToken = b.OperationToken + return m0 +} + +type NexusHandlerFailureInfo struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Type string `protobuf:"bytes,1,opt,name=type,proto3"` + xxx_hidden_RetryBehavior v11.NexusHandlerErrorRetryBehavior `protobuf:"varint,2,opt,name=retry_behavior,json=retryBehavior,proto3,enum=temporal.api.enums.v1.NexusHandlerErrorRetryBehavior"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *NexusHandlerFailureInfo) Reset() { + *x = NexusHandlerFailureInfo{} + mi := &file_temporal_api_failure_v1_message_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *NexusHandlerFailureInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NexusHandlerFailureInfo) ProtoMessage() {} + +func (x *NexusHandlerFailureInfo) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_failure_v1_message_proto_msgTypes[9] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *NexusHandlerFailureInfo) GetType() string { + if x != nil { + return x.xxx_hidden_Type + } + return "" +} + +func (x *NexusHandlerFailureInfo) GetRetryBehavior() v11.NexusHandlerErrorRetryBehavior { + if x != nil { + return x.xxx_hidden_RetryBehavior + } + return v11.NexusHandlerErrorRetryBehavior(0) +} + +func (x *NexusHandlerFailureInfo) SetType(v string) { + x.xxx_hidden_Type = v +} + +func (x *NexusHandlerFailureInfo) SetRetryBehavior(v v11.NexusHandlerErrorRetryBehavior) { + x.xxx_hidden_RetryBehavior = v +} + +type NexusHandlerFailureInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The Nexus error type as defined in the spec: + // https://github.com/nexus-rpc/api/blob/main/SPEC.md#predefined-handler-errors. + Type string + // Retry behavior, defaults to the retry behavior of the error type as defined in the spec. + RetryBehavior v11.NexusHandlerErrorRetryBehavior +} + +func (b0 NexusHandlerFailureInfo_builder) Build() *NexusHandlerFailureInfo { + m0 := &NexusHandlerFailureInfo{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Type = b.Type + x.xxx_hidden_RetryBehavior = b.RetryBehavior + return m0 +} + +type Failure struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Message string `protobuf:"bytes,1,opt,name=message,proto3"` + xxx_hidden_Source string `protobuf:"bytes,2,opt,name=source,proto3"` + xxx_hidden_StackTrace string `protobuf:"bytes,3,opt,name=stack_trace,json=stackTrace,proto3"` + xxx_hidden_EncodedAttributes *v1.Payload `protobuf:"bytes,20,opt,name=encoded_attributes,json=encodedAttributes,proto3"` + xxx_hidden_Cause *Failure `protobuf:"bytes,4,opt,name=cause,proto3"` + xxx_hidden_FailureInfo isFailure_FailureInfo `protobuf_oneof:"failure_info"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Failure) Reset() { + *x = Failure{} + mi := &file_temporal_api_failure_v1_message_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Failure) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Failure) ProtoMessage() {} + +func (x *Failure) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_failure_v1_message_proto_msgTypes[10] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *Failure) GetMessage() string { + if x != nil { + return x.xxx_hidden_Message + } + return "" +} + +func (x *Failure) GetSource() string { + if x != nil { + return x.xxx_hidden_Source + } + return "" +} + +func (x *Failure) GetStackTrace() string { + if x != nil { + return x.xxx_hidden_StackTrace + } + return "" +} + +func (x *Failure) GetEncodedAttributes() *v1.Payload { + if x != nil { + return x.xxx_hidden_EncodedAttributes + } + return nil +} + +func (x *Failure) GetCause() *Failure { + if x != nil { + return x.xxx_hidden_Cause + } + return nil +} + +func (x *Failure) GetApplicationFailureInfo() *ApplicationFailureInfo { + if x != nil { + if x, ok := x.xxx_hidden_FailureInfo.(*failure_ApplicationFailureInfo); ok { + return x.ApplicationFailureInfo + } + } + return nil +} + +func (x *Failure) GetTimeoutFailureInfo() *TimeoutFailureInfo { + if x != nil { + if x, ok := x.xxx_hidden_FailureInfo.(*failure_TimeoutFailureInfo); ok { + return x.TimeoutFailureInfo + } + } + return nil +} + +func (x *Failure) GetCanceledFailureInfo() *CanceledFailureInfo { + if x != nil { + if x, ok := x.xxx_hidden_FailureInfo.(*failure_CanceledFailureInfo); ok { + return x.CanceledFailureInfo + } + } + return nil +} + +func (x *Failure) GetTerminatedFailureInfo() *TerminatedFailureInfo { + if x != nil { + if x, ok := x.xxx_hidden_FailureInfo.(*failure_TerminatedFailureInfo); ok { + return x.TerminatedFailureInfo + } + } + return nil +} + +func (x *Failure) GetServerFailureInfo() *ServerFailureInfo { + if x != nil { + if x, ok := x.xxx_hidden_FailureInfo.(*failure_ServerFailureInfo); ok { + return x.ServerFailureInfo + } + } + return nil +} + +func (x *Failure) GetResetWorkflowFailureInfo() *ResetWorkflowFailureInfo { + if x != nil { + if x, ok := x.xxx_hidden_FailureInfo.(*failure_ResetWorkflowFailureInfo); ok { + return x.ResetWorkflowFailureInfo + } + } + return nil +} + +func (x *Failure) GetActivityFailureInfo() *ActivityFailureInfo { + if x != nil { + if x, ok := x.xxx_hidden_FailureInfo.(*failure_ActivityFailureInfo); ok { + return x.ActivityFailureInfo + } + } + return nil +} + +func (x *Failure) GetChildWorkflowExecutionFailureInfo() *ChildWorkflowExecutionFailureInfo { + if x != nil { + if x, ok := x.xxx_hidden_FailureInfo.(*failure_ChildWorkflowExecutionFailureInfo); ok { + return x.ChildWorkflowExecutionFailureInfo + } + } + return nil +} + +func (x *Failure) GetNexusOperationExecutionFailureInfo() *NexusOperationFailureInfo { + if x != nil { + if x, ok := x.xxx_hidden_FailureInfo.(*failure_NexusOperationExecutionFailureInfo); ok { + return x.NexusOperationExecutionFailureInfo + } + } + return nil +} + +func (x *Failure) GetNexusHandlerFailureInfo() *NexusHandlerFailureInfo { + if x != nil { + if x, ok := x.xxx_hidden_FailureInfo.(*failure_NexusHandlerFailureInfo); ok { + return x.NexusHandlerFailureInfo + } + } + return nil +} + +func (x *Failure) SetMessage(v string) { + x.xxx_hidden_Message = v +} + +func (x *Failure) SetSource(v string) { + x.xxx_hidden_Source = v +} + +func (x *Failure) SetStackTrace(v string) { + x.xxx_hidden_StackTrace = v +} + +func (x *Failure) SetEncodedAttributes(v *v1.Payload) { + x.xxx_hidden_EncodedAttributes = v +} + +func (x *Failure) SetCause(v *Failure) { + x.xxx_hidden_Cause = v +} + +func (x *Failure) SetApplicationFailureInfo(v *ApplicationFailureInfo) { + if v == nil { + x.xxx_hidden_FailureInfo = nil + return + } + x.xxx_hidden_FailureInfo = &failure_ApplicationFailureInfo{v} +} + +func (x *Failure) SetTimeoutFailureInfo(v *TimeoutFailureInfo) { + if v == nil { + x.xxx_hidden_FailureInfo = nil + return + } + x.xxx_hidden_FailureInfo = &failure_TimeoutFailureInfo{v} +} + +func (x *Failure) SetCanceledFailureInfo(v *CanceledFailureInfo) { + if v == nil { + x.xxx_hidden_FailureInfo = nil + return + } + x.xxx_hidden_FailureInfo = &failure_CanceledFailureInfo{v} +} + +func (x *Failure) SetTerminatedFailureInfo(v *TerminatedFailureInfo) { + if v == nil { + x.xxx_hidden_FailureInfo = nil + return + } + x.xxx_hidden_FailureInfo = &failure_TerminatedFailureInfo{v} +} + +func (x *Failure) SetServerFailureInfo(v *ServerFailureInfo) { + if v == nil { + x.xxx_hidden_FailureInfo = nil + return + } + x.xxx_hidden_FailureInfo = &failure_ServerFailureInfo{v} +} + +func (x *Failure) SetResetWorkflowFailureInfo(v *ResetWorkflowFailureInfo) { + if v == nil { + x.xxx_hidden_FailureInfo = nil + return + } + x.xxx_hidden_FailureInfo = &failure_ResetWorkflowFailureInfo{v} +} + +func (x *Failure) SetActivityFailureInfo(v *ActivityFailureInfo) { + if v == nil { + x.xxx_hidden_FailureInfo = nil + return + } + x.xxx_hidden_FailureInfo = &failure_ActivityFailureInfo{v} +} + +func (x *Failure) SetChildWorkflowExecutionFailureInfo(v *ChildWorkflowExecutionFailureInfo) { + if v == nil { + x.xxx_hidden_FailureInfo = nil + return + } + x.xxx_hidden_FailureInfo = &failure_ChildWorkflowExecutionFailureInfo{v} +} + +func (x *Failure) SetNexusOperationExecutionFailureInfo(v *NexusOperationFailureInfo) { + if v == nil { + x.xxx_hidden_FailureInfo = nil + return + } + x.xxx_hidden_FailureInfo = &failure_NexusOperationExecutionFailureInfo{v} +} + +func (x *Failure) SetNexusHandlerFailureInfo(v *NexusHandlerFailureInfo) { + if v == nil { + x.xxx_hidden_FailureInfo = nil + return + } + x.xxx_hidden_FailureInfo = &failure_NexusHandlerFailureInfo{v} +} + +func (x *Failure) HasEncodedAttributes() bool { + if x == nil { + return false + } + return x.xxx_hidden_EncodedAttributes != nil +} + +func (x *Failure) HasCause() bool { + if x == nil { + return false + } + return x.xxx_hidden_Cause != nil +} + +func (x *Failure) HasFailureInfo() bool { + if x == nil { + return false + } + return x.xxx_hidden_FailureInfo != nil +} + +func (x *Failure) HasApplicationFailureInfo() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_FailureInfo.(*failure_ApplicationFailureInfo) + return ok +} + +func (x *Failure) HasTimeoutFailureInfo() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_FailureInfo.(*failure_TimeoutFailureInfo) + return ok +} + +func (x *Failure) HasCanceledFailureInfo() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_FailureInfo.(*failure_CanceledFailureInfo) + return ok +} + +func (x *Failure) HasTerminatedFailureInfo() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_FailureInfo.(*failure_TerminatedFailureInfo) + return ok +} + +func (x *Failure) HasServerFailureInfo() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_FailureInfo.(*failure_ServerFailureInfo) + return ok +} + +func (x *Failure) HasResetWorkflowFailureInfo() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_FailureInfo.(*failure_ResetWorkflowFailureInfo) + return ok +} + +func (x *Failure) HasActivityFailureInfo() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_FailureInfo.(*failure_ActivityFailureInfo) + return ok +} + +func (x *Failure) HasChildWorkflowExecutionFailureInfo() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_FailureInfo.(*failure_ChildWorkflowExecutionFailureInfo) + return ok +} + +func (x *Failure) HasNexusOperationExecutionFailureInfo() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_FailureInfo.(*failure_NexusOperationExecutionFailureInfo) + return ok +} + +func (x *Failure) HasNexusHandlerFailureInfo() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_FailureInfo.(*failure_NexusHandlerFailureInfo) + return ok +} + +func (x *Failure) ClearEncodedAttributes() { + x.xxx_hidden_EncodedAttributes = nil +} + +func (x *Failure) ClearCause() { + x.xxx_hidden_Cause = nil +} + +func (x *Failure) ClearFailureInfo() { + x.xxx_hidden_FailureInfo = nil +} + +func (x *Failure) ClearApplicationFailureInfo() { + if _, ok := x.xxx_hidden_FailureInfo.(*failure_ApplicationFailureInfo); ok { + x.xxx_hidden_FailureInfo = nil + } +} + +func (x *Failure) ClearTimeoutFailureInfo() { + if _, ok := x.xxx_hidden_FailureInfo.(*failure_TimeoutFailureInfo); ok { + x.xxx_hidden_FailureInfo = nil + } +} + +func (x *Failure) ClearCanceledFailureInfo() { + if _, ok := x.xxx_hidden_FailureInfo.(*failure_CanceledFailureInfo); ok { + x.xxx_hidden_FailureInfo = nil + } +} + +func (x *Failure) ClearTerminatedFailureInfo() { + if _, ok := x.xxx_hidden_FailureInfo.(*failure_TerminatedFailureInfo); ok { + x.xxx_hidden_FailureInfo = nil + } +} + +func (x *Failure) ClearServerFailureInfo() { + if _, ok := x.xxx_hidden_FailureInfo.(*failure_ServerFailureInfo); ok { + x.xxx_hidden_FailureInfo = nil + } +} + +func (x *Failure) ClearResetWorkflowFailureInfo() { + if _, ok := x.xxx_hidden_FailureInfo.(*failure_ResetWorkflowFailureInfo); ok { + x.xxx_hidden_FailureInfo = nil + } +} + +func (x *Failure) ClearActivityFailureInfo() { + if _, ok := x.xxx_hidden_FailureInfo.(*failure_ActivityFailureInfo); ok { + x.xxx_hidden_FailureInfo = nil + } +} + +func (x *Failure) ClearChildWorkflowExecutionFailureInfo() { + if _, ok := x.xxx_hidden_FailureInfo.(*failure_ChildWorkflowExecutionFailureInfo); ok { + x.xxx_hidden_FailureInfo = nil + } +} + +func (x *Failure) ClearNexusOperationExecutionFailureInfo() { + if _, ok := x.xxx_hidden_FailureInfo.(*failure_NexusOperationExecutionFailureInfo); ok { + x.xxx_hidden_FailureInfo = nil + } +} + +func (x *Failure) ClearNexusHandlerFailureInfo() { + if _, ok := x.xxx_hidden_FailureInfo.(*failure_NexusHandlerFailureInfo); ok { + x.xxx_hidden_FailureInfo = nil + } +} + +const Failure_FailureInfo_not_set_case case_Failure_FailureInfo = 0 +const Failure_ApplicationFailureInfo_case case_Failure_FailureInfo = 5 +const Failure_TimeoutFailureInfo_case case_Failure_FailureInfo = 6 +const Failure_CanceledFailureInfo_case case_Failure_FailureInfo = 7 +const Failure_TerminatedFailureInfo_case case_Failure_FailureInfo = 8 +const Failure_ServerFailureInfo_case case_Failure_FailureInfo = 9 +const Failure_ResetWorkflowFailureInfo_case case_Failure_FailureInfo = 10 +const Failure_ActivityFailureInfo_case case_Failure_FailureInfo = 11 +const Failure_ChildWorkflowExecutionFailureInfo_case case_Failure_FailureInfo = 12 +const Failure_NexusOperationExecutionFailureInfo_case case_Failure_FailureInfo = 13 +const Failure_NexusHandlerFailureInfo_case case_Failure_FailureInfo = 14 + +func (x *Failure) WhichFailureInfo() case_Failure_FailureInfo { + if x == nil { + return Failure_FailureInfo_not_set_case + } + switch x.xxx_hidden_FailureInfo.(type) { + case *failure_ApplicationFailureInfo: + return Failure_ApplicationFailureInfo_case + case *failure_TimeoutFailureInfo: + return Failure_TimeoutFailureInfo_case + case *failure_CanceledFailureInfo: + return Failure_CanceledFailureInfo_case + case *failure_TerminatedFailureInfo: + return Failure_TerminatedFailureInfo_case + case *failure_ServerFailureInfo: + return Failure_ServerFailureInfo_case + case *failure_ResetWorkflowFailureInfo: + return Failure_ResetWorkflowFailureInfo_case + case *failure_ActivityFailureInfo: + return Failure_ActivityFailureInfo_case + case *failure_ChildWorkflowExecutionFailureInfo: + return Failure_ChildWorkflowExecutionFailureInfo_case + case *failure_NexusOperationExecutionFailureInfo: + return Failure_NexusOperationExecutionFailureInfo_case + case *failure_NexusHandlerFailureInfo: + return Failure_NexusHandlerFailureInfo_case + default: + return Failure_FailureInfo_not_set_case + } +} + +type Failure_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Message string + // The source this Failure originated in, e.g. TypeScriptSDK / JavaSDK + // In some SDKs this is used to rehydrate the stack trace into an exception object. + Source string + StackTrace string + // Alternative way to supply `message` and `stack_trace` and possibly other attributes, used for encryption of + // errors originating in user code which might contain sensitive information. + // The `encoded_attributes` Payload could represent any serializable object, e.g. JSON object or a `Failure` proto + // message. + // + // SDK authors: + // - The SDK should provide a default `encodeFailureAttributes` and `decodeFailureAttributes` implementation that: + // - Uses a JSON object to represent `{ message, stack_trace }`. + // - Overwrites the original message with "Encoded failure" to indicate that more information could be extracted. + // - Overwrites the original stack_trace with an empty string. + // - The resulting JSON object is converted to Payload using the default PayloadConverter and should be processed + // by the user-provided PayloadCodec + // + // - If there's demand, we could allow overriding the default SDK implementation to encode other opaque Failure attributes. + // (-- api-linter: core::0203::optional=disabled --) + EncodedAttributes *v1.Payload + Cause *Failure + // Fields of oneof xxx_hidden_FailureInfo: + ApplicationFailureInfo *ApplicationFailureInfo + TimeoutFailureInfo *TimeoutFailureInfo + CanceledFailureInfo *CanceledFailureInfo + TerminatedFailureInfo *TerminatedFailureInfo + ServerFailureInfo *ServerFailureInfo + ResetWorkflowFailureInfo *ResetWorkflowFailureInfo + ActivityFailureInfo *ActivityFailureInfo + ChildWorkflowExecutionFailureInfo *ChildWorkflowExecutionFailureInfo + NexusOperationExecutionFailureInfo *NexusOperationFailureInfo + NexusHandlerFailureInfo *NexusHandlerFailureInfo + // -- end of xxx_hidden_FailureInfo +} + +func (b0 Failure_builder) Build() *Failure { + m0 := &Failure{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Message = b.Message + x.xxx_hidden_Source = b.Source + x.xxx_hidden_StackTrace = b.StackTrace + x.xxx_hidden_EncodedAttributes = b.EncodedAttributes + x.xxx_hidden_Cause = b.Cause + if b.ApplicationFailureInfo != nil { + x.xxx_hidden_FailureInfo = &failure_ApplicationFailureInfo{b.ApplicationFailureInfo} + } + if b.TimeoutFailureInfo != nil { + x.xxx_hidden_FailureInfo = &failure_TimeoutFailureInfo{b.TimeoutFailureInfo} + } + if b.CanceledFailureInfo != nil { + x.xxx_hidden_FailureInfo = &failure_CanceledFailureInfo{b.CanceledFailureInfo} + } + if b.TerminatedFailureInfo != nil { + x.xxx_hidden_FailureInfo = &failure_TerminatedFailureInfo{b.TerminatedFailureInfo} + } + if b.ServerFailureInfo != nil { + x.xxx_hidden_FailureInfo = &failure_ServerFailureInfo{b.ServerFailureInfo} + } + if b.ResetWorkflowFailureInfo != nil { + x.xxx_hidden_FailureInfo = &failure_ResetWorkflowFailureInfo{b.ResetWorkflowFailureInfo} + } + if b.ActivityFailureInfo != nil { + x.xxx_hidden_FailureInfo = &failure_ActivityFailureInfo{b.ActivityFailureInfo} + } + if b.ChildWorkflowExecutionFailureInfo != nil { + x.xxx_hidden_FailureInfo = &failure_ChildWorkflowExecutionFailureInfo{b.ChildWorkflowExecutionFailureInfo} + } + if b.NexusOperationExecutionFailureInfo != nil { + x.xxx_hidden_FailureInfo = &failure_NexusOperationExecutionFailureInfo{b.NexusOperationExecutionFailureInfo} + } + if b.NexusHandlerFailureInfo != nil { + x.xxx_hidden_FailureInfo = &failure_NexusHandlerFailureInfo{b.NexusHandlerFailureInfo} + } + return m0 +} + +type case_Failure_FailureInfo protoreflect.FieldNumber + +func (x case_Failure_FailureInfo) String() string { + switch x { + case Failure_FailureInfo_not_set_case: + return "FailureFailureInfoNotSetCase" + case Failure_ApplicationFailureInfo_case: + return "FailureApplicationFailureInfoCase" + case Failure_TimeoutFailureInfo_case: + return "FailureTimeoutFailureInfoCase" + case Failure_CanceledFailureInfo_case: + return "FailureCanceledFailureInfoCase" + case Failure_TerminatedFailureInfo_case: + return "FailureTerminatedFailureInfoCase" + case Failure_ServerFailureInfo_case: + return "FailureServerFailureInfoCase" + case Failure_ResetWorkflowFailureInfo_case: + return "FailureResetWorkflowFailureInfoCase" + case Failure_ActivityFailureInfo_case: + return "FailureActivityFailureInfoCase" + case Failure_ChildWorkflowExecutionFailureInfo_case: + return "FailureChildWorkflowExecutionFailureInfoCase" + case Failure_NexusOperationExecutionFailureInfo_case: + return "FailureNexusOperationExecutionFailureInfoCase" + case Failure_NexusHandlerFailureInfo_case: + return "FailureNexusHandlerFailureInfoCase" + default: + return strconv.Itoa(int(x)) + } + +} + +type isFailure_FailureInfo interface { + isFailure_FailureInfo() +} + +type failure_ApplicationFailureInfo struct { + ApplicationFailureInfo *ApplicationFailureInfo `protobuf:"bytes,5,opt,name=application_failure_info,json=applicationFailureInfo,proto3,oneof"` +} + +type failure_TimeoutFailureInfo struct { + TimeoutFailureInfo *TimeoutFailureInfo `protobuf:"bytes,6,opt,name=timeout_failure_info,json=timeoutFailureInfo,proto3,oneof"` +} + +type failure_CanceledFailureInfo struct { + CanceledFailureInfo *CanceledFailureInfo `protobuf:"bytes,7,opt,name=canceled_failure_info,json=canceledFailureInfo,proto3,oneof"` +} + +type failure_TerminatedFailureInfo struct { + TerminatedFailureInfo *TerminatedFailureInfo `protobuf:"bytes,8,opt,name=terminated_failure_info,json=terminatedFailureInfo,proto3,oneof"` +} + +type failure_ServerFailureInfo struct { + ServerFailureInfo *ServerFailureInfo `protobuf:"bytes,9,opt,name=server_failure_info,json=serverFailureInfo,proto3,oneof"` +} + +type failure_ResetWorkflowFailureInfo struct { + ResetWorkflowFailureInfo *ResetWorkflowFailureInfo `protobuf:"bytes,10,opt,name=reset_workflow_failure_info,json=resetWorkflowFailureInfo,proto3,oneof"` +} + +type failure_ActivityFailureInfo struct { + ActivityFailureInfo *ActivityFailureInfo `protobuf:"bytes,11,opt,name=activity_failure_info,json=activityFailureInfo,proto3,oneof"` +} + +type failure_ChildWorkflowExecutionFailureInfo struct { + ChildWorkflowExecutionFailureInfo *ChildWorkflowExecutionFailureInfo `protobuf:"bytes,12,opt,name=child_workflow_execution_failure_info,json=childWorkflowExecutionFailureInfo,proto3,oneof"` +} + +type failure_NexusOperationExecutionFailureInfo struct { + NexusOperationExecutionFailureInfo *NexusOperationFailureInfo `protobuf:"bytes,13,opt,name=nexus_operation_execution_failure_info,json=nexusOperationExecutionFailureInfo,proto3,oneof"` +} + +type failure_NexusHandlerFailureInfo struct { + NexusHandlerFailureInfo *NexusHandlerFailureInfo `protobuf:"bytes,14,opt,name=nexus_handler_failure_info,json=nexusHandlerFailureInfo,proto3,oneof"` +} + +func (*failure_ApplicationFailureInfo) isFailure_FailureInfo() {} + +func (*failure_TimeoutFailureInfo) isFailure_FailureInfo() {} + +func (*failure_CanceledFailureInfo) isFailure_FailureInfo() {} + +func (*failure_TerminatedFailureInfo) isFailure_FailureInfo() {} + +func (*failure_ServerFailureInfo) isFailure_FailureInfo() {} + +func (*failure_ResetWorkflowFailureInfo) isFailure_FailureInfo() {} + +func (*failure_ActivityFailureInfo) isFailure_FailureInfo() {} + +func (*failure_ChildWorkflowExecutionFailureInfo) isFailure_FailureInfo() {} + +func (*failure_NexusOperationExecutionFailureInfo) isFailure_FailureInfo() {} + +func (*failure_NexusHandlerFailureInfo) isFailure_FailureInfo() {} + +type MultiOperationExecutionAborted struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *MultiOperationExecutionAborted) Reset() { + *x = MultiOperationExecutionAborted{} + mi := &file_temporal_api_failure_v1_message_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *MultiOperationExecutionAborted) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MultiOperationExecutionAborted) ProtoMessage() {} + +func (x *MultiOperationExecutionAborted) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_failure_v1_message_proto_msgTypes[11] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type MultiOperationExecutionAborted_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 MultiOperationExecutionAborted_builder) Build() *MultiOperationExecutionAborted { + m0 := &MultiOperationExecutionAborted{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +var File_temporal_api_failure_v1_message_proto protoreflect.FileDescriptor + +const file_temporal_api_failure_v1_message_proto_rawDesc = "" + + "\n" + + "%temporal/api/failure/v1/message.proto\x12\x17temporal.api.failure.v1\x1a$temporal/api/common/v1/message.proto\x1a$temporal/api/enums/v1/workflow.proto\x1a!temporal/api/enums/v1/nexus.proto\x1a\"temporal/api/enums/v1/common.proto\x1a\x1egoogle/protobuf/duration.proto\"\x9f\x02\n" + + "\x16ApplicationFailureInfo\x12\x12\n" + + "\x04type\x18\x01 \x01(\tR\x04type\x12#\n" + + "\rnon_retryable\x18\x02 \x01(\bR\fnonRetryable\x12:\n" + + "\adetails\x18\x03 \x01(\v2 .temporal.api.common.v1.PayloadsR\adetails\x12C\n" + + "\x10next_retry_delay\x18\x04 \x01(\v2\x19.google.protobuf.DurationR\x0enextRetryDelay\x12K\n" + + "\bcategory\x18\x05 \x01(\x0e2/.temporal.api.enums.v1.ApplicationErrorCategoryR\bcategory\"\xb3\x01\n" + + "\x12TimeoutFailureInfo\x12E\n" + + "\ftimeout_type\x18\x01 \x01(\x0e2\".temporal.api.enums.v1.TimeoutTypeR\vtimeoutType\x12V\n" + + "\x16last_heartbeat_details\x18\x02 \x01(\v2 .temporal.api.common.v1.PayloadsR\x14lastHeartbeatDetails\"Q\n" + + "\x13CanceledFailureInfo\x12:\n" + + "\adetails\x18\x01 \x01(\v2 .temporal.api.common.v1.PayloadsR\adetails\"\x17\n" + + "\x15TerminatedFailureInfo\"8\n" + + "\x11ServerFailureInfo\x12#\n" + + "\rnon_retryable\x18\x01 \x01(\bR\fnonRetryable\"r\n" + + "\x18ResetWorkflowFailureInfo\x12V\n" + + "\x16last_heartbeat_details\x18\x01 \x01(\v2 .temporal.api.common.v1.PayloadsR\x14lastHeartbeatDetails\"\xb9\x02\n" + + "\x13ActivityFailureInfo\x12,\n" + + "\x12scheduled_event_id\x18\x01 \x01(\x03R\x10scheduledEventId\x12(\n" + + "\x10started_event_id\x18\x02 \x01(\x03R\x0estartedEventId\x12\x1a\n" + + "\bidentity\x18\x03 \x01(\tR\bidentity\x12I\n" + + "\ractivity_type\x18\x04 \x01(\v2$.temporal.api.common.v1.ActivityTypeR\factivityType\x12\x1f\n" + + "\vactivity_id\x18\x05 \x01(\tR\n" + + "activityId\x12B\n" + + "\vretry_state\x18\x06 \x01(\x0e2!.temporal.api.enums.v1.RetryStateR\n" + + "retryState\"\x82\x03\n" + + "!ChildWorkflowExecutionFailureInfo\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12X\n" + + "\x12workflow_execution\x18\x02 \x01(\v2).temporal.api.common.v1.WorkflowExecutionR\x11workflowExecution\x12I\n" + + "\rworkflow_type\x18\x03 \x01(\v2$.temporal.api.common.v1.WorkflowTypeR\fworkflowType\x12,\n" + + "\x12initiated_event_id\x18\x04 \x01(\x03R\x10initiatedEventId\x12(\n" + + "\x10started_event_id\x18\x05 \x01(\x03R\x0estartedEventId\x12B\n" + + "\vretry_state\x18\x06 \x01(\x0e2!.temporal.api.enums.v1.RetryStateR\n" + + "retryState\"\xed\x01\n" + + "\x19NexusOperationFailureInfo\x12,\n" + + "\x12scheduled_event_id\x18\x01 \x01(\x03R\x10scheduledEventId\x12\x1a\n" + + "\bendpoint\x18\x02 \x01(\tR\bendpoint\x12\x18\n" + + "\aservice\x18\x03 \x01(\tR\aservice\x12\x1c\n" + + "\toperation\x18\x04 \x01(\tR\toperation\x12%\n" + + "\foperation_id\x18\x05 \x01(\tB\x02\x18\x01R\voperationId\x12'\n" + + "\x0foperation_token\x18\x06 \x01(\tR\x0eoperationToken\"\x8b\x01\n" + + "\x17NexusHandlerFailureInfo\x12\x12\n" + + "\x04type\x18\x01 \x01(\tR\x04type\x12\\\n" + + "\x0eretry_behavior\x18\x02 \x01(\x0e25.temporal.api.enums.v1.NexusHandlerErrorRetryBehaviorR\rretryBehavior\"\xd3\n" + + "\n" + + "\aFailure\x12\x18\n" + + "\amessage\x18\x01 \x01(\tR\amessage\x12\x16\n" + + "\x06source\x18\x02 \x01(\tR\x06source\x12\x1f\n" + + "\vstack_trace\x18\x03 \x01(\tR\n" + + "stackTrace\x12N\n" + + "\x12encoded_attributes\x18\x14 \x01(\v2\x1f.temporal.api.common.v1.PayloadR\x11encodedAttributes\x126\n" + + "\x05cause\x18\x04 \x01(\v2 .temporal.api.failure.v1.FailureR\x05cause\x12k\n" + + "\x18application_failure_info\x18\x05 \x01(\v2/.temporal.api.failure.v1.ApplicationFailureInfoH\x00R\x16applicationFailureInfo\x12_\n" + + "\x14timeout_failure_info\x18\x06 \x01(\v2+.temporal.api.failure.v1.TimeoutFailureInfoH\x00R\x12timeoutFailureInfo\x12b\n" + + "\x15canceled_failure_info\x18\a \x01(\v2,.temporal.api.failure.v1.CanceledFailureInfoH\x00R\x13canceledFailureInfo\x12h\n" + + "\x17terminated_failure_info\x18\b \x01(\v2..temporal.api.failure.v1.TerminatedFailureInfoH\x00R\x15terminatedFailureInfo\x12\\\n" + + "\x13server_failure_info\x18\t \x01(\v2*.temporal.api.failure.v1.ServerFailureInfoH\x00R\x11serverFailureInfo\x12r\n" + + "\x1breset_workflow_failure_info\x18\n" + + " \x01(\v21.temporal.api.failure.v1.ResetWorkflowFailureInfoH\x00R\x18resetWorkflowFailureInfo\x12b\n" + + "\x15activity_failure_info\x18\v \x01(\v2,.temporal.api.failure.v1.ActivityFailureInfoH\x00R\x13activityFailureInfo\x12\x8e\x01\n" + + "%child_workflow_execution_failure_info\x18\f \x01(\v2:.temporal.api.failure.v1.ChildWorkflowExecutionFailureInfoH\x00R!childWorkflowExecutionFailureInfo\x12\x88\x01\n" + + "&nexus_operation_execution_failure_info\x18\r \x01(\v22.temporal.api.failure.v1.NexusOperationFailureInfoH\x00R\"nexusOperationExecutionFailureInfo\x12o\n" + + "\x1anexus_handler_failure_info\x18\x0e \x01(\v20.temporal.api.failure.v1.NexusHandlerFailureInfoH\x00R\x17nexusHandlerFailureInfoB\x0e\n" + + "\ffailure_info\" \n" + + "\x1eMultiOperationExecutionAbortedB\x8e\x01\n" + + "\x1aio.temporal.api.failure.v1B\fMessageProtoP\x01Z%go.temporal.io/api/failure/v1;failure\xaa\x02\x19Temporalio.Api.Failure.V1\xea\x02\x1cTemporalio::Api::Failure::V1b\x06proto3" + +var file_temporal_api_failure_v1_message_proto_msgTypes = make([]protoimpl.MessageInfo, 12) +var file_temporal_api_failure_v1_message_proto_goTypes = []any{ + (*ApplicationFailureInfo)(nil), // 0: temporal.api.failure.v1.ApplicationFailureInfo + (*TimeoutFailureInfo)(nil), // 1: temporal.api.failure.v1.TimeoutFailureInfo + (*CanceledFailureInfo)(nil), // 2: temporal.api.failure.v1.CanceledFailureInfo + (*TerminatedFailureInfo)(nil), // 3: temporal.api.failure.v1.TerminatedFailureInfo + (*ServerFailureInfo)(nil), // 4: temporal.api.failure.v1.ServerFailureInfo + (*ResetWorkflowFailureInfo)(nil), // 5: temporal.api.failure.v1.ResetWorkflowFailureInfo + (*ActivityFailureInfo)(nil), // 6: temporal.api.failure.v1.ActivityFailureInfo + (*ChildWorkflowExecutionFailureInfo)(nil), // 7: temporal.api.failure.v1.ChildWorkflowExecutionFailureInfo + (*NexusOperationFailureInfo)(nil), // 8: temporal.api.failure.v1.NexusOperationFailureInfo + (*NexusHandlerFailureInfo)(nil), // 9: temporal.api.failure.v1.NexusHandlerFailureInfo + (*Failure)(nil), // 10: temporal.api.failure.v1.Failure + (*MultiOperationExecutionAborted)(nil), // 11: temporal.api.failure.v1.MultiOperationExecutionAborted + (*v1.Payloads)(nil), // 12: temporal.api.common.v1.Payloads + (*durationpb.Duration)(nil), // 13: google.protobuf.Duration + (v11.ApplicationErrorCategory)(0), // 14: temporal.api.enums.v1.ApplicationErrorCategory + (v11.TimeoutType)(0), // 15: temporal.api.enums.v1.TimeoutType + (*v1.ActivityType)(nil), // 16: temporal.api.common.v1.ActivityType + (v11.RetryState)(0), // 17: temporal.api.enums.v1.RetryState + (*v1.WorkflowExecution)(nil), // 18: temporal.api.common.v1.WorkflowExecution + (*v1.WorkflowType)(nil), // 19: temporal.api.common.v1.WorkflowType + (v11.NexusHandlerErrorRetryBehavior)(0), // 20: temporal.api.enums.v1.NexusHandlerErrorRetryBehavior + (*v1.Payload)(nil), // 21: temporal.api.common.v1.Payload +} +var file_temporal_api_failure_v1_message_proto_depIdxs = []int32{ + 12, // 0: temporal.api.failure.v1.ApplicationFailureInfo.details:type_name -> temporal.api.common.v1.Payloads + 13, // 1: temporal.api.failure.v1.ApplicationFailureInfo.next_retry_delay:type_name -> google.protobuf.Duration + 14, // 2: temporal.api.failure.v1.ApplicationFailureInfo.category:type_name -> temporal.api.enums.v1.ApplicationErrorCategory + 15, // 3: temporal.api.failure.v1.TimeoutFailureInfo.timeout_type:type_name -> temporal.api.enums.v1.TimeoutType + 12, // 4: temporal.api.failure.v1.TimeoutFailureInfo.last_heartbeat_details:type_name -> temporal.api.common.v1.Payloads + 12, // 5: temporal.api.failure.v1.CanceledFailureInfo.details:type_name -> temporal.api.common.v1.Payloads + 12, // 6: temporal.api.failure.v1.ResetWorkflowFailureInfo.last_heartbeat_details:type_name -> temporal.api.common.v1.Payloads + 16, // 7: temporal.api.failure.v1.ActivityFailureInfo.activity_type:type_name -> temporal.api.common.v1.ActivityType + 17, // 8: temporal.api.failure.v1.ActivityFailureInfo.retry_state:type_name -> temporal.api.enums.v1.RetryState + 18, // 9: temporal.api.failure.v1.ChildWorkflowExecutionFailureInfo.workflow_execution:type_name -> temporal.api.common.v1.WorkflowExecution + 19, // 10: temporal.api.failure.v1.ChildWorkflowExecutionFailureInfo.workflow_type:type_name -> temporal.api.common.v1.WorkflowType + 17, // 11: temporal.api.failure.v1.ChildWorkflowExecutionFailureInfo.retry_state:type_name -> temporal.api.enums.v1.RetryState + 20, // 12: temporal.api.failure.v1.NexusHandlerFailureInfo.retry_behavior:type_name -> temporal.api.enums.v1.NexusHandlerErrorRetryBehavior + 21, // 13: temporal.api.failure.v1.Failure.encoded_attributes:type_name -> temporal.api.common.v1.Payload + 10, // 14: temporal.api.failure.v1.Failure.cause:type_name -> temporal.api.failure.v1.Failure + 0, // 15: temporal.api.failure.v1.Failure.application_failure_info:type_name -> temporal.api.failure.v1.ApplicationFailureInfo + 1, // 16: temporal.api.failure.v1.Failure.timeout_failure_info:type_name -> temporal.api.failure.v1.TimeoutFailureInfo + 2, // 17: temporal.api.failure.v1.Failure.canceled_failure_info:type_name -> temporal.api.failure.v1.CanceledFailureInfo + 3, // 18: temporal.api.failure.v1.Failure.terminated_failure_info:type_name -> temporal.api.failure.v1.TerminatedFailureInfo + 4, // 19: temporal.api.failure.v1.Failure.server_failure_info:type_name -> temporal.api.failure.v1.ServerFailureInfo + 5, // 20: temporal.api.failure.v1.Failure.reset_workflow_failure_info:type_name -> temporal.api.failure.v1.ResetWorkflowFailureInfo + 6, // 21: temporal.api.failure.v1.Failure.activity_failure_info:type_name -> temporal.api.failure.v1.ActivityFailureInfo + 7, // 22: temporal.api.failure.v1.Failure.child_workflow_execution_failure_info:type_name -> temporal.api.failure.v1.ChildWorkflowExecutionFailureInfo + 8, // 23: temporal.api.failure.v1.Failure.nexus_operation_execution_failure_info:type_name -> temporal.api.failure.v1.NexusOperationFailureInfo + 9, // 24: temporal.api.failure.v1.Failure.nexus_handler_failure_info:type_name -> temporal.api.failure.v1.NexusHandlerFailureInfo + 25, // [25:25] is the sub-list for method output_type + 25, // [25:25] is the sub-list for method input_type + 25, // [25:25] is the sub-list for extension type_name + 25, // [25:25] is the sub-list for extension extendee + 0, // [0:25] is the sub-list for field type_name +} + +func init() { file_temporal_api_failure_v1_message_proto_init() } +func file_temporal_api_failure_v1_message_proto_init() { + if File_temporal_api_failure_v1_message_proto != nil { + return + } + file_temporal_api_failure_v1_message_proto_msgTypes[10].OneofWrappers = []any{ + (*failure_ApplicationFailureInfo)(nil), + (*failure_TimeoutFailureInfo)(nil), + (*failure_CanceledFailureInfo)(nil), + (*failure_TerminatedFailureInfo)(nil), + (*failure_ServerFailureInfo)(nil), + (*failure_ResetWorkflowFailureInfo)(nil), + (*failure_ActivityFailureInfo)(nil), + (*failure_ChildWorkflowExecutionFailureInfo)(nil), + (*failure_NexusOperationExecutionFailureInfo)(nil), + (*failure_NexusHandlerFailureInfo)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_api_failure_v1_message_proto_rawDesc), len(file_temporal_api_failure_v1_message_proto_rawDesc)), + NumEnums: 0, + NumMessages: 12, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_temporal_api_failure_v1_message_proto_goTypes, + DependencyIndexes: file_temporal_api_failure_v1_message_proto_depIdxs, + MessageInfos: file_temporal_api_failure_v1_message_proto_msgTypes, + }.Build() + File_temporal_api_failure_v1_message_proto = out.File + file_temporal_api_failure_v1_message_proto_goTypes = nil + file_temporal_api_failure_v1_message_proto_depIdxs = nil +} diff --git a/filter/v1/message.pb.go b/filter/v1/message.pb.go index bb7fd221..5e4286fb 100644 --- a/filter/v1/message.pb.go +++ b/filter/v1/message.pb.go @@ -4,11 +4,12 @@ // protoc // source: temporal/api/filter/v1/message.proto +//go:build !protoopaque + package filter import ( reflect "reflect" - sync "sync" unsafe "unsafe" v1 "go.temporal.io/api/enums/v1" @@ -25,7 +26,7 @@ const ( ) type WorkflowExecutionFilter struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` WorkflowId string `protobuf:"bytes,1,opt,name=workflow_id,json=workflowId,proto3" json:"workflow_id,omitempty"` RunId string `protobuf:"bytes,2,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"` unknownFields protoimpl.UnknownFields @@ -57,11 +58,6 @@ func (x *WorkflowExecutionFilter) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use WorkflowExecutionFilter.ProtoReflect.Descriptor instead. -func (*WorkflowExecutionFilter) Descriptor() ([]byte, []int) { - return file_temporal_api_filter_v1_message_proto_rawDescGZIP(), []int{0} -} - func (x *WorkflowExecutionFilter) GetWorkflowId() string { if x != nil { return x.WorkflowId @@ -76,8 +72,32 @@ func (x *WorkflowExecutionFilter) GetRunId() string { return "" } +func (x *WorkflowExecutionFilter) SetWorkflowId(v string) { + x.WorkflowId = v +} + +func (x *WorkflowExecutionFilter) SetRunId(v string) { + x.RunId = v +} + +type WorkflowExecutionFilter_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + WorkflowId string + RunId string +} + +func (b0 WorkflowExecutionFilter_builder) Build() *WorkflowExecutionFilter { + m0 := &WorkflowExecutionFilter{} + b, x := &b0, m0 + _, _ = b, x + x.WorkflowId = b.WorkflowId + x.RunId = b.RunId + return m0 +} + type WorkflowTypeFilter struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -108,11 +128,6 @@ func (x *WorkflowTypeFilter) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use WorkflowTypeFilter.ProtoReflect.Descriptor instead. -func (*WorkflowTypeFilter) Descriptor() ([]byte, []int) { - return file_temporal_api_filter_v1_message_proto_rawDescGZIP(), []int{1} -} - func (x *WorkflowTypeFilter) GetName() string { if x != nil { return x.Name @@ -120,8 +135,26 @@ func (x *WorkflowTypeFilter) GetName() string { return "" } +func (x *WorkflowTypeFilter) SetName(v string) { + x.Name = v +} + +type WorkflowTypeFilter_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string +} + +func (b0 WorkflowTypeFilter_builder) Build() *WorkflowTypeFilter { + m0 := &WorkflowTypeFilter{} + b, x := &b0, m0 + _, _ = b, x + x.Name = b.Name + return m0 +} + type StartTimeFilter struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` EarliestTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=earliest_time,json=earliestTime,proto3" json:"earliest_time,omitempty"` LatestTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=latest_time,json=latestTime,proto3" json:"latest_time,omitempty"` unknownFields protoimpl.UnknownFields @@ -153,11 +186,6 @@ func (x *StartTimeFilter) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use StartTimeFilter.ProtoReflect.Descriptor instead. -func (*StartTimeFilter) Descriptor() ([]byte, []int) { - return file_temporal_api_filter_v1_message_proto_rawDescGZIP(), []int{2} -} - func (x *StartTimeFilter) GetEarliestTime() *timestamppb.Timestamp { if x != nil { return x.EarliestTime @@ -172,8 +200,54 @@ func (x *StartTimeFilter) GetLatestTime() *timestamppb.Timestamp { return nil } +func (x *StartTimeFilter) SetEarliestTime(v *timestamppb.Timestamp) { + x.EarliestTime = v +} + +func (x *StartTimeFilter) SetLatestTime(v *timestamppb.Timestamp) { + x.LatestTime = v +} + +func (x *StartTimeFilter) HasEarliestTime() bool { + if x == nil { + return false + } + return x.EarliestTime != nil +} + +func (x *StartTimeFilter) HasLatestTime() bool { + if x == nil { + return false + } + return x.LatestTime != nil +} + +func (x *StartTimeFilter) ClearEarliestTime() { + x.EarliestTime = nil +} + +func (x *StartTimeFilter) ClearLatestTime() { + x.LatestTime = nil +} + +type StartTimeFilter_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + EarliestTime *timestamppb.Timestamp + LatestTime *timestamppb.Timestamp +} + +func (b0 StartTimeFilter_builder) Build() *StartTimeFilter { + m0 := &StartTimeFilter{} + b, x := &b0, m0 + _, _ = b, x + x.EarliestTime = b.EarliestTime + x.LatestTime = b.LatestTime + return m0 +} + type StatusFilter struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Status v1.WorkflowExecutionStatus `protobuf:"varint,1,opt,name=status,proto3,enum=temporal.api.enums.v1.WorkflowExecutionStatus" json:"status,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -204,11 +278,6 @@ func (x *StatusFilter) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use StatusFilter.ProtoReflect.Descriptor instead. -func (*StatusFilter) Descriptor() ([]byte, []int) { - return file_temporal_api_filter_v1_message_proto_rawDescGZIP(), []int{3} -} - func (x *StatusFilter) GetStatus() v1.WorkflowExecutionStatus { if x != nil { return x.Status @@ -216,6 +285,24 @@ func (x *StatusFilter) GetStatus() v1.WorkflowExecutionStatus { return v1.WorkflowExecutionStatus(0) } +func (x *StatusFilter) SetStatus(v v1.WorkflowExecutionStatus) { + x.Status = v +} + +type StatusFilter_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Status v1.WorkflowExecutionStatus +} + +func (b0 StatusFilter_builder) Build() *StatusFilter { + m0 := &StatusFilter{} + b, x := &b0, m0 + _, _ = b, x + x.Status = b.Status + return m0 +} + var File_temporal_api_filter_v1_message_proto protoreflect.FileDescriptor const file_temporal_api_filter_v1_message_proto_rawDesc = "" + @@ -235,18 +322,6 @@ const file_temporal_api_filter_v1_message_proto_rawDesc = "" + "\x06status\x18\x01 \x01(\x0e2..temporal.api.enums.v1.WorkflowExecutionStatusR\x06statusB\x89\x01\n" + "\x19io.temporal.api.filter.v1B\fMessageProtoP\x01Z#go.temporal.io/api/filter/v1;filter\xaa\x02\x18Temporalio.Api.Filter.V1\xea\x02\x1bTemporalio::Api::Filter::V1b\x06proto3" -var ( - file_temporal_api_filter_v1_message_proto_rawDescOnce sync.Once - file_temporal_api_filter_v1_message_proto_rawDescData []byte -) - -func file_temporal_api_filter_v1_message_proto_rawDescGZIP() []byte { - file_temporal_api_filter_v1_message_proto_rawDescOnce.Do(func() { - file_temporal_api_filter_v1_message_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_api_filter_v1_message_proto_rawDesc), len(file_temporal_api_filter_v1_message_proto_rawDesc))) - }) - return file_temporal_api_filter_v1_message_proto_rawDescData -} - var file_temporal_api_filter_v1_message_proto_msgTypes = make([]protoimpl.MessageInfo, 4) var file_temporal_api_filter_v1_message_proto_goTypes = []any{ (*WorkflowExecutionFilter)(nil), // 0: temporal.api.filter.v1.WorkflowExecutionFilter diff --git a/filter/v1/message_protoopaque.pb.go b/filter/v1/message_protoopaque.pb.go new file mode 100644 index 00000000..4f04ea35 --- /dev/null +++ b/filter/v1/message_protoopaque.pb.go @@ -0,0 +1,367 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// plugins: +// protoc-gen-go +// protoc +// source: temporal/api/filter/v1/message.proto + +//go:build protoopaque + +package filter + +import ( + reflect "reflect" + unsafe "unsafe" + + v1 "go.temporal.io/api/enums/v1" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type WorkflowExecutionFilter struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_WorkflowId string `protobuf:"bytes,1,opt,name=workflow_id,json=workflowId,proto3"` + xxx_hidden_RunId string `protobuf:"bytes,2,opt,name=run_id,json=runId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowExecutionFilter) Reset() { + *x = WorkflowExecutionFilter{} + mi := &file_temporal_api_filter_v1_message_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkflowExecutionFilter) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowExecutionFilter) ProtoMessage() {} + +func (x *WorkflowExecutionFilter) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_filter_v1_message_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkflowExecutionFilter) GetWorkflowId() string { + if x != nil { + return x.xxx_hidden_WorkflowId + } + return "" +} + +func (x *WorkflowExecutionFilter) GetRunId() string { + if x != nil { + return x.xxx_hidden_RunId + } + return "" +} + +func (x *WorkflowExecutionFilter) SetWorkflowId(v string) { + x.xxx_hidden_WorkflowId = v +} + +func (x *WorkflowExecutionFilter) SetRunId(v string) { + x.xxx_hidden_RunId = v +} + +type WorkflowExecutionFilter_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + WorkflowId string + RunId string +} + +func (b0 WorkflowExecutionFilter_builder) Build() *WorkflowExecutionFilter { + m0 := &WorkflowExecutionFilter{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_WorkflowId = b.WorkflowId + x.xxx_hidden_RunId = b.RunId + return m0 +} + +type WorkflowTypeFilter struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Name string `protobuf:"bytes,1,opt,name=name,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowTypeFilter) Reset() { + *x = WorkflowTypeFilter{} + mi := &file_temporal_api_filter_v1_message_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkflowTypeFilter) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowTypeFilter) ProtoMessage() {} + +func (x *WorkflowTypeFilter) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_filter_v1_message_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkflowTypeFilter) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *WorkflowTypeFilter) SetName(v string) { + x.xxx_hidden_Name = v +} + +type WorkflowTypeFilter_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string +} + +func (b0 WorkflowTypeFilter_builder) Build() *WorkflowTypeFilter { + m0 := &WorkflowTypeFilter{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Name = b.Name + return m0 +} + +type StartTimeFilter struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_EarliestTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=earliest_time,json=earliestTime,proto3"` + xxx_hidden_LatestTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=latest_time,json=latestTime,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *StartTimeFilter) Reset() { + *x = StartTimeFilter{} + mi := &file_temporal_api_filter_v1_message_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *StartTimeFilter) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StartTimeFilter) ProtoMessage() {} + +func (x *StartTimeFilter) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_filter_v1_message_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *StartTimeFilter) GetEarliestTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_EarliestTime + } + return nil +} + +func (x *StartTimeFilter) GetLatestTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_LatestTime + } + return nil +} + +func (x *StartTimeFilter) SetEarliestTime(v *timestamppb.Timestamp) { + x.xxx_hidden_EarliestTime = v +} + +func (x *StartTimeFilter) SetLatestTime(v *timestamppb.Timestamp) { + x.xxx_hidden_LatestTime = v +} + +func (x *StartTimeFilter) HasEarliestTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_EarliestTime != nil +} + +func (x *StartTimeFilter) HasLatestTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_LatestTime != nil +} + +func (x *StartTimeFilter) ClearEarliestTime() { + x.xxx_hidden_EarliestTime = nil +} + +func (x *StartTimeFilter) ClearLatestTime() { + x.xxx_hidden_LatestTime = nil +} + +type StartTimeFilter_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + EarliestTime *timestamppb.Timestamp + LatestTime *timestamppb.Timestamp +} + +func (b0 StartTimeFilter_builder) Build() *StartTimeFilter { + m0 := &StartTimeFilter{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_EarliestTime = b.EarliestTime + x.xxx_hidden_LatestTime = b.LatestTime + return m0 +} + +type StatusFilter struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Status v1.WorkflowExecutionStatus `protobuf:"varint,1,opt,name=status,proto3,enum=temporal.api.enums.v1.WorkflowExecutionStatus"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *StatusFilter) Reset() { + *x = StatusFilter{} + mi := &file_temporal_api_filter_v1_message_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *StatusFilter) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StatusFilter) ProtoMessage() {} + +func (x *StatusFilter) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_filter_v1_message_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *StatusFilter) GetStatus() v1.WorkflowExecutionStatus { + if x != nil { + return x.xxx_hidden_Status + } + return v1.WorkflowExecutionStatus(0) +} + +func (x *StatusFilter) SetStatus(v v1.WorkflowExecutionStatus) { + x.xxx_hidden_Status = v +} + +type StatusFilter_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Status v1.WorkflowExecutionStatus +} + +func (b0 StatusFilter_builder) Build() *StatusFilter { + m0 := &StatusFilter{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Status = b.Status + return m0 +} + +var File_temporal_api_filter_v1_message_proto protoreflect.FileDescriptor + +const file_temporal_api_filter_v1_message_proto_rawDesc = "" + + "\n" + + "$temporal/api/filter/v1/message.proto\x12\x16temporal.api.filter.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a$temporal/api/enums/v1/workflow.proto\"Q\n" + + "\x17WorkflowExecutionFilter\x12\x1f\n" + + "\vworkflow_id\x18\x01 \x01(\tR\n" + + "workflowId\x12\x15\n" + + "\x06run_id\x18\x02 \x01(\tR\x05runId\"(\n" + + "\x12WorkflowTypeFilter\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\"\x8f\x01\n" + + "\x0fStartTimeFilter\x12?\n" + + "\rearliest_time\x18\x01 \x01(\v2\x1a.google.protobuf.TimestampR\fearliestTime\x12;\n" + + "\vlatest_time\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\n" + + "latestTime\"V\n" + + "\fStatusFilter\x12F\n" + + "\x06status\x18\x01 \x01(\x0e2..temporal.api.enums.v1.WorkflowExecutionStatusR\x06statusB\x89\x01\n" + + "\x19io.temporal.api.filter.v1B\fMessageProtoP\x01Z#go.temporal.io/api/filter/v1;filter\xaa\x02\x18Temporalio.Api.Filter.V1\xea\x02\x1bTemporalio::Api::Filter::V1b\x06proto3" + +var file_temporal_api_filter_v1_message_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_temporal_api_filter_v1_message_proto_goTypes = []any{ + (*WorkflowExecutionFilter)(nil), // 0: temporal.api.filter.v1.WorkflowExecutionFilter + (*WorkflowTypeFilter)(nil), // 1: temporal.api.filter.v1.WorkflowTypeFilter + (*StartTimeFilter)(nil), // 2: temporal.api.filter.v1.StartTimeFilter + (*StatusFilter)(nil), // 3: temporal.api.filter.v1.StatusFilter + (*timestamppb.Timestamp)(nil), // 4: google.protobuf.Timestamp + (v1.WorkflowExecutionStatus)(0), // 5: temporal.api.enums.v1.WorkflowExecutionStatus +} +var file_temporal_api_filter_v1_message_proto_depIdxs = []int32{ + 4, // 0: temporal.api.filter.v1.StartTimeFilter.earliest_time:type_name -> google.protobuf.Timestamp + 4, // 1: temporal.api.filter.v1.StartTimeFilter.latest_time:type_name -> google.protobuf.Timestamp + 5, // 2: temporal.api.filter.v1.StatusFilter.status:type_name -> temporal.api.enums.v1.WorkflowExecutionStatus + 3, // [3:3] is the sub-list for method output_type + 3, // [3:3] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name +} + +func init() { file_temporal_api_filter_v1_message_proto_init() } +func file_temporal_api_filter_v1_message_proto_init() { + if File_temporal_api_filter_v1_message_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_api_filter_v1_message_proto_rawDesc), len(file_temporal_api_filter_v1_message_proto_rawDesc)), + NumEnums: 0, + NumMessages: 4, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_temporal_api_filter_v1_message_proto_goTypes, + DependencyIndexes: file_temporal_api_filter_v1_message_proto_depIdxs, + MessageInfos: file_temporal_api_filter_v1_message_proto_msgTypes, + }.Build() + File_temporal_api_filter_v1_message_proto = out.File + file_temporal_api_filter_v1_message_proto_goTypes = nil + file_temporal_api_filter_v1_message_proto_depIdxs = nil +} diff --git a/history/v1/message.pb.go b/history/v1/message.pb.go index 1b792164..a36647ef 100644 --- a/history/v1/message.pb.go +++ b/history/v1/message.pb.go @@ -4,11 +4,13 @@ // protoc // source: temporal/api/history/v1/message.proto +//go:build !protoopaque + package history import ( reflect "reflect" - sync "sync" + "strconv" unsafe "unsafe" v1 "go.temporal.io/api/common/v1" @@ -34,7 +36,7 @@ const ( // Always the first event in workflow history type WorkflowExecutionStartedEventAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` WorkflowType *v1.WorkflowType `protobuf:"bytes,1,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type,omitempty"` // If this workflow is a child, the namespace our parent lives in. // SDKs and UI tools should use `parent_workflow_namespace` field but server must use `parent_workflow_namespace_id` only. @@ -219,11 +221,6 @@ func (x *WorkflowExecutionStartedEventAttributes) ProtoReflect() protoreflect.Me return mi.MessageOf(x) } -// Deprecated: Use WorkflowExecutionStartedEventAttributes.ProtoReflect.Descriptor instead. -func (*WorkflowExecutionStartedEventAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_history_v1_message_proto_rawDescGZIP(), []int{0} -} - func (x *WorkflowExecutionStartedEventAttributes) GetWorkflowType() *v1.WorkflowType { if x != nil { return x.WorkflowType @@ -493,412 +490,5601 @@ func (x *WorkflowExecutionStartedEventAttributes) GetEagerExecutionAccepted() bo return false } -type WorkflowExecutionCompletedEventAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Serialized result of workflow completion (ie: The return value of the workflow function) - Result *v1.Payloads `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` - // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with - WorkflowTaskCompletedEventId int64 `protobuf:"varint,2,opt,name=workflow_task_completed_event_id,json=workflowTaskCompletedEventId,proto3" json:"workflow_task_completed_event_id,omitempty"` - // If another run is started by cron, this contains the new run id. - NewExecutionRunId string `protobuf:"bytes,3,opt,name=new_execution_run_id,json=newExecutionRunId,proto3" json:"new_execution_run_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache +func (x *WorkflowExecutionStartedEventAttributes) SetWorkflowType(v *v1.WorkflowType) { + x.WorkflowType = v } -func (x *WorkflowExecutionCompletedEventAttributes) Reset() { - *x = WorkflowExecutionCompletedEventAttributes{} - mi := &file_temporal_api_history_v1_message_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *WorkflowExecutionStartedEventAttributes) SetParentWorkflowNamespace(v string) { + x.ParentWorkflowNamespace = v } -func (x *WorkflowExecutionCompletedEventAttributes) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *WorkflowExecutionStartedEventAttributes) SetParentWorkflowNamespaceId(v string) { + x.ParentWorkflowNamespaceId = v } -func (*WorkflowExecutionCompletedEventAttributes) ProtoMessage() {} +func (x *WorkflowExecutionStartedEventAttributes) SetParentWorkflowExecution(v *v1.WorkflowExecution) { + x.ParentWorkflowExecution = v +} -func (x *WorkflowExecutionCompletedEventAttributes) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_history_v1_message_proto_msgTypes[1] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (x *WorkflowExecutionStartedEventAttributes) SetParentInitiatedEventId(v int64) { + x.ParentInitiatedEventId = v } -// Deprecated: Use WorkflowExecutionCompletedEventAttributes.ProtoReflect.Descriptor instead. -func (*WorkflowExecutionCompletedEventAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_history_v1_message_proto_rawDescGZIP(), []int{1} +func (x *WorkflowExecutionStartedEventAttributes) SetTaskQueue(v *v11.TaskQueue) { + x.TaskQueue = v } -func (x *WorkflowExecutionCompletedEventAttributes) GetResult() *v1.Payloads { - if x != nil { - return x.Result - } - return nil +func (x *WorkflowExecutionStartedEventAttributes) SetInput(v *v1.Payloads) { + x.Input = v } -func (x *WorkflowExecutionCompletedEventAttributes) GetWorkflowTaskCompletedEventId() int64 { - if x != nil { - return x.WorkflowTaskCompletedEventId - } - return 0 +func (x *WorkflowExecutionStartedEventAttributes) SetWorkflowExecutionTimeout(v *durationpb.Duration) { + x.WorkflowExecutionTimeout = v } -func (x *WorkflowExecutionCompletedEventAttributes) GetNewExecutionRunId() string { - if x != nil { - return x.NewExecutionRunId - } - return "" +func (x *WorkflowExecutionStartedEventAttributes) SetWorkflowRunTimeout(v *durationpb.Duration) { + x.WorkflowRunTimeout = v } -type WorkflowExecutionFailedEventAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Serialized result of workflow failure (ex: An exception thrown, or error returned) - Failure *v13.Failure `protobuf:"bytes,1,opt,name=failure,proto3" json:"failure,omitempty"` - RetryState v12.RetryState `protobuf:"varint,2,opt,name=retry_state,json=retryState,proto3,enum=temporal.api.enums.v1.RetryState" json:"retry_state,omitempty"` - // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with - WorkflowTaskCompletedEventId int64 `protobuf:"varint,3,opt,name=workflow_task_completed_event_id,json=workflowTaskCompletedEventId,proto3" json:"workflow_task_completed_event_id,omitempty"` - // If another run is started by cron or retry, this contains the new run id. - NewExecutionRunId string `protobuf:"bytes,4,opt,name=new_execution_run_id,json=newExecutionRunId,proto3" json:"new_execution_run_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache +func (x *WorkflowExecutionStartedEventAttributes) SetWorkflowTaskTimeout(v *durationpb.Duration) { + x.WorkflowTaskTimeout = v } -func (x *WorkflowExecutionFailedEventAttributes) Reset() { - *x = WorkflowExecutionFailedEventAttributes{} - mi := &file_temporal_api_history_v1_message_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *WorkflowExecutionStartedEventAttributes) SetContinuedExecutionRunId(v string) { + x.ContinuedExecutionRunId = v } -func (x *WorkflowExecutionFailedEventAttributes) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *WorkflowExecutionStartedEventAttributes) SetInitiator(v v12.ContinueAsNewInitiator) { + x.Initiator = v } -func (*WorkflowExecutionFailedEventAttributes) ProtoMessage() {} +func (x *WorkflowExecutionStartedEventAttributes) SetContinuedFailure(v *v13.Failure) { + x.ContinuedFailure = v +} -func (x *WorkflowExecutionFailedEventAttributes) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_history_v1_message_proto_msgTypes[2] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (x *WorkflowExecutionStartedEventAttributes) SetLastCompletionResult(v *v1.Payloads) { + x.LastCompletionResult = v } -// Deprecated: Use WorkflowExecutionFailedEventAttributes.ProtoReflect.Descriptor instead. -func (*WorkflowExecutionFailedEventAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_history_v1_message_proto_rawDescGZIP(), []int{2} +func (x *WorkflowExecutionStartedEventAttributes) SetOriginalExecutionRunId(v string) { + x.OriginalExecutionRunId = v } -func (x *WorkflowExecutionFailedEventAttributes) GetFailure() *v13.Failure { - if x != nil { - return x.Failure - } - return nil +func (x *WorkflowExecutionStartedEventAttributes) SetIdentity(v string) { + x.Identity = v } -func (x *WorkflowExecutionFailedEventAttributes) GetRetryState() v12.RetryState { - if x != nil { - return x.RetryState - } - return v12.RetryState(0) +func (x *WorkflowExecutionStartedEventAttributes) SetFirstExecutionRunId(v string) { + x.FirstExecutionRunId = v } -func (x *WorkflowExecutionFailedEventAttributes) GetWorkflowTaskCompletedEventId() int64 { - if x != nil { - return x.WorkflowTaskCompletedEventId - } - return 0 +func (x *WorkflowExecutionStartedEventAttributes) SetRetryPolicy(v *v1.RetryPolicy) { + x.RetryPolicy = v } -func (x *WorkflowExecutionFailedEventAttributes) GetNewExecutionRunId() string { - if x != nil { - return x.NewExecutionRunId - } - return "" +func (x *WorkflowExecutionStartedEventAttributes) SetAttempt(v int32) { + x.Attempt = v } -type WorkflowExecutionTimedOutEventAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` - RetryState v12.RetryState `protobuf:"varint,1,opt,name=retry_state,json=retryState,proto3,enum=temporal.api.enums.v1.RetryState" json:"retry_state,omitempty"` - // If another run is started by cron or retry, this contains the new run id. - NewExecutionRunId string `protobuf:"bytes,2,opt,name=new_execution_run_id,json=newExecutionRunId,proto3" json:"new_execution_run_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache +func (x *WorkflowExecutionStartedEventAttributes) SetWorkflowExecutionExpirationTime(v *timestamppb.Timestamp) { + x.WorkflowExecutionExpirationTime = v } -func (x *WorkflowExecutionTimedOutEventAttributes) Reset() { - *x = WorkflowExecutionTimedOutEventAttributes{} - mi := &file_temporal_api_history_v1_message_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *WorkflowExecutionStartedEventAttributes) SetCronSchedule(v string) { + x.CronSchedule = v } -func (x *WorkflowExecutionTimedOutEventAttributes) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *WorkflowExecutionStartedEventAttributes) SetFirstWorkflowTaskBackoff(v *durationpb.Duration) { + x.FirstWorkflowTaskBackoff = v } -func (*WorkflowExecutionTimedOutEventAttributes) ProtoMessage() {} +func (x *WorkflowExecutionStartedEventAttributes) SetMemo(v *v1.Memo) { + x.Memo = v +} -func (x *WorkflowExecutionTimedOutEventAttributes) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_history_v1_message_proto_msgTypes[3] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (x *WorkflowExecutionStartedEventAttributes) SetSearchAttributes(v *v1.SearchAttributes) { + x.SearchAttributes = v } -// Deprecated: Use WorkflowExecutionTimedOutEventAttributes.ProtoReflect.Descriptor instead. -func (*WorkflowExecutionTimedOutEventAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_history_v1_message_proto_rawDescGZIP(), []int{3} +func (x *WorkflowExecutionStartedEventAttributes) SetPrevAutoResetPoints(v *v14.ResetPoints) { + x.PrevAutoResetPoints = v } -func (x *WorkflowExecutionTimedOutEventAttributes) GetRetryState() v12.RetryState { - if x != nil { - return x.RetryState - } - return v12.RetryState(0) +func (x *WorkflowExecutionStartedEventAttributes) SetHeader(v *v1.Header) { + x.Header = v } -func (x *WorkflowExecutionTimedOutEventAttributes) GetNewExecutionRunId() string { - if x != nil { - return x.NewExecutionRunId - } - return "" +func (x *WorkflowExecutionStartedEventAttributes) SetParentInitiatedEventVersion(v int64) { + x.ParentInitiatedEventVersion = v } -type WorkflowExecutionContinuedAsNewEventAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The run ID of the new workflow started by this continue-as-new - NewExecutionRunId string `protobuf:"bytes,1,opt,name=new_execution_run_id,json=newExecutionRunId,proto3" json:"new_execution_run_id,omitempty"` - WorkflowType *v1.WorkflowType `protobuf:"bytes,2,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type,omitempty"` - TaskQueue *v11.TaskQueue `protobuf:"bytes,3,opt,name=task_queue,json=taskQueue,proto3" json:"task_queue,omitempty"` - Input *v1.Payloads `protobuf:"bytes,4,opt,name=input,proto3" json:"input,omitempty"` - // Timeout of a single workflow run. - WorkflowRunTimeout *durationpb.Duration `protobuf:"bytes,5,opt,name=workflow_run_timeout,json=workflowRunTimeout,proto3" json:"workflow_run_timeout,omitempty"` - // Timeout of a single workflow task. - WorkflowTaskTimeout *durationpb.Duration `protobuf:"bytes,6,opt,name=workflow_task_timeout,json=workflowTaskTimeout,proto3" json:"workflow_task_timeout,omitempty"` - // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with - WorkflowTaskCompletedEventId int64 `protobuf:"varint,7,opt,name=workflow_task_completed_event_id,json=workflowTaskCompletedEventId,proto3" json:"workflow_task_completed_event_id,omitempty"` - // How long the server will wait before scheduling the first workflow task for the new run. - // Used for cron, retry, and other continue-as-new cases that server may enforce some minimal - // delay between new runs for system protection purpose. - BackoffStartInterval *durationpb.Duration `protobuf:"bytes,8,opt,name=backoff_start_interval,json=backoffStartInterval,proto3" json:"backoff_start_interval,omitempty"` - Initiator v12.ContinueAsNewInitiator `protobuf:"varint,9,opt,name=initiator,proto3,enum=temporal.api.enums.v1.ContinueAsNewInitiator" json:"initiator,omitempty"` - // Deprecated. If a workflow's retry policy would cause a new run to start when the current one - // has failed, this field would be populated with that failure. Now (when supported by server - // and sdk) the final event will be `WORKFLOW_EXECUTION_FAILED` with `new_execution_run_id` set. - // - // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. - Failure *v13.Failure `protobuf:"bytes,10,opt,name=failure,proto3" json:"failure,omitempty"` - // The result from the most recent completed run of this workflow. The SDK surfaces this to the - // new run via APIs such as `GetLastCompletionResult`. - LastCompletionResult *v1.Payloads `protobuf:"bytes,11,opt,name=last_completion_result,json=lastCompletionResult,proto3" json:"last_completion_result,omitempty"` - Header *v1.Header `protobuf:"bytes,12,opt,name=header,proto3" json:"header,omitempty"` - Memo *v1.Memo `protobuf:"bytes,13,opt,name=memo,proto3" json:"memo,omitempty"` - SearchAttributes *v1.SearchAttributes `protobuf:"bytes,14,opt,name=search_attributes,json=searchAttributes,proto3" json:"search_attributes,omitempty"` - // If this is set, the new execution inherits the Build ID of the current execution. Otherwise, - // the assignment rules will be used to independently assign a Build ID to the new execution. - // Deprecated. Only considered for versioning v0.2. - // - // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. - InheritBuildId bool `protobuf:"varint,15,opt,name=inherit_build_id,json=inheritBuildId,proto3" json:"inherit_build_id,omitempty"` - // Experimental. Optionally decide the versioning behavior that the first task of the new run should use. - // For example, choose to AutoUpgrade on continue-as-new instead of inheriting the pinned version - // of the previous run. - InitialVersioningBehavior v12.ContinueAsNewVersioningBehavior `protobuf:"varint,16,opt,name=initial_versioning_behavior,json=initialVersioningBehavior,proto3,enum=temporal.api.enums.v1.ContinueAsNewVersioningBehavior" json:"initial_versioning_behavior,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache +func (x *WorkflowExecutionStartedEventAttributes) SetWorkflowId(v string) { + x.WorkflowId = v } -func (x *WorkflowExecutionContinuedAsNewEventAttributes) Reset() { - *x = WorkflowExecutionContinuedAsNewEventAttributes{} - mi := &file_temporal_api_history_v1_message_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowExecutionStartedEventAttributes) SetSourceVersionStamp(v *v1.WorkerVersionStamp) { + x.SourceVersionStamp = v } -func (x *WorkflowExecutionContinuedAsNewEventAttributes) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *WorkflowExecutionStartedEventAttributes) SetCompletionCallbacks(v []*v1.Callback) { + x.CompletionCallbacks = v } -func (*WorkflowExecutionContinuedAsNewEventAttributes) ProtoMessage() {} +func (x *WorkflowExecutionStartedEventAttributes) SetRootWorkflowExecution(v *v1.WorkflowExecution) { + x.RootWorkflowExecution = v +} -func (x *WorkflowExecutionContinuedAsNewEventAttributes) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_history_v1_message_proto_msgTypes[4] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowExecutionStartedEventAttributes) SetInheritedBuildId(v string) { + x.InheritedBuildId = v } -// Deprecated: Use WorkflowExecutionContinuedAsNewEventAttributes.ProtoReflect.Descriptor instead. -func (*WorkflowExecutionContinuedAsNewEventAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_history_v1_message_proto_rawDescGZIP(), []int{4} +func (x *WorkflowExecutionStartedEventAttributes) SetVersioningOverride(v *v14.VersioningOverride) { + x.VersioningOverride = v } -func (x *WorkflowExecutionContinuedAsNewEventAttributes) GetNewExecutionRunId() string { - if x != nil { - return x.NewExecutionRunId +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowExecutionStartedEventAttributes) SetParentPinnedWorkerDeploymentVersion(v string) { + x.ParentPinnedWorkerDeploymentVersion = v +} + +func (x *WorkflowExecutionStartedEventAttributes) SetPriority(v *v1.Priority) { + x.Priority = v +} + +func (x *WorkflowExecutionStartedEventAttributes) SetInheritedPinnedVersion(v *v15.WorkerDeploymentVersion) { + x.InheritedPinnedVersion = v +} + +func (x *WorkflowExecutionStartedEventAttributes) SetInheritedAutoUpgradeInfo(v *v15.InheritedAutoUpgradeInfo) { + x.InheritedAutoUpgradeInfo = v +} + +func (x *WorkflowExecutionStartedEventAttributes) SetEagerExecutionAccepted(v bool) { + x.EagerExecutionAccepted = v +} + +func (x *WorkflowExecutionStartedEventAttributes) HasWorkflowType() bool { + if x == nil { + return false } - return "" + return x.WorkflowType != nil } -func (x *WorkflowExecutionContinuedAsNewEventAttributes) GetWorkflowType() *v1.WorkflowType { - if x != nil { - return x.WorkflowType +func (x *WorkflowExecutionStartedEventAttributes) HasParentWorkflowExecution() bool { + if x == nil { + return false } - return nil + return x.ParentWorkflowExecution != nil } -func (x *WorkflowExecutionContinuedAsNewEventAttributes) GetTaskQueue() *v11.TaskQueue { - if x != nil { - return x.TaskQueue +func (x *WorkflowExecutionStartedEventAttributes) HasTaskQueue() bool { + if x == nil { + return false } - return nil + return x.TaskQueue != nil } -func (x *WorkflowExecutionContinuedAsNewEventAttributes) GetInput() *v1.Payloads { - if x != nil { - return x.Input +func (x *WorkflowExecutionStartedEventAttributes) HasInput() bool { + if x == nil { + return false } - return nil + return x.Input != nil } -func (x *WorkflowExecutionContinuedAsNewEventAttributes) GetWorkflowRunTimeout() *durationpb.Duration { - if x != nil { - return x.WorkflowRunTimeout +func (x *WorkflowExecutionStartedEventAttributes) HasWorkflowExecutionTimeout() bool { + if x == nil { + return false } - return nil + return x.WorkflowExecutionTimeout != nil } -func (x *WorkflowExecutionContinuedAsNewEventAttributes) GetWorkflowTaskTimeout() *durationpb.Duration { - if x != nil { - return x.WorkflowTaskTimeout +func (x *WorkflowExecutionStartedEventAttributes) HasWorkflowRunTimeout() bool { + if x == nil { + return false } - return nil + return x.WorkflowRunTimeout != nil } -func (x *WorkflowExecutionContinuedAsNewEventAttributes) GetWorkflowTaskCompletedEventId() int64 { - if x != nil { - return x.WorkflowTaskCompletedEventId +func (x *WorkflowExecutionStartedEventAttributes) HasWorkflowTaskTimeout() bool { + if x == nil { + return false } - return 0 + return x.WorkflowTaskTimeout != nil } -func (x *WorkflowExecutionContinuedAsNewEventAttributes) GetBackoffStartInterval() *durationpb.Duration { - if x != nil { - return x.BackoffStartInterval +func (x *WorkflowExecutionStartedEventAttributes) HasContinuedFailure() bool { + if x == nil { + return false } - return nil + return x.ContinuedFailure != nil } -func (x *WorkflowExecutionContinuedAsNewEventAttributes) GetInitiator() v12.ContinueAsNewInitiator { - if x != nil { - return x.Initiator +func (x *WorkflowExecutionStartedEventAttributes) HasLastCompletionResult() bool { + if x == nil { + return false } - return v12.ContinueAsNewInitiator(0) + return x.LastCompletionResult != nil } -// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. -func (x *WorkflowExecutionContinuedAsNewEventAttributes) GetFailure() *v13.Failure { - if x != nil { - return x.Failure +func (x *WorkflowExecutionStartedEventAttributes) HasRetryPolicy() bool { + if x == nil { + return false } - return nil + return x.RetryPolicy != nil } -func (x *WorkflowExecutionContinuedAsNewEventAttributes) GetLastCompletionResult() *v1.Payloads { - if x != nil { - return x.LastCompletionResult +func (x *WorkflowExecutionStartedEventAttributes) HasWorkflowExecutionExpirationTime() bool { + if x == nil { + return false } - return nil + return x.WorkflowExecutionExpirationTime != nil } -func (x *WorkflowExecutionContinuedAsNewEventAttributes) GetHeader() *v1.Header { - if x != nil { - return x.Header +func (x *WorkflowExecutionStartedEventAttributes) HasFirstWorkflowTaskBackoff() bool { + if x == nil { + return false } - return nil + return x.FirstWorkflowTaskBackoff != nil } -func (x *WorkflowExecutionContinuedAsNewEventAttributes) GetMemo() *v1.Memo { - if x != nil { - return x.Memo +func (x *WorkflowExecutionStartedEventAttributes) HasMemo() bool { + if x == nil { + return false } - return nil + return x.Memo != nil +} + +func (x *WorkflowExecutionStartedEventAttributes) HasSearchAttributes() bool { + if x == nil { + return false + } + return x.SearchAttributes != nil +} + +func (x *WorkflowExecutionStartedEventAttributes) HasPrevAutoResetPoints() bool { + if x == nil { + return false + } + return x.PrevAutoResetPoints != nil +} + +func (x *WorkflowExecutionStartedEventAttributes) HasHeader() bool { + if x == nil { + return false + } + return x.Header != nil +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowExecutionStartedEventAttributes) HasSourceVersionStamp() bool { + if x == nil { + return false + } + return x.SourceVersionStamp != nil +} + +func (x *WorkflowExecutionStartedEventAttributes) HasRootWorkflowExecution() bool { + if x == nil { + return false + } + return x.RootWorkflowExecution != nil +} + +func (x *WorkflowExecutionStartedEventAttributes) HasVersioningOverride() bool { + if x == nil { + return false + } + return x.VersioningOverride != nil +} + +func (x *WorkflowExecutionStartedEventAttributes) HasPriority() bool { + if x == nil { + return false + } + return x.Priority != nil +} + +func (x *WorkflowExecutionStartedEventAttributes) HasInheritedPinnedVersion() bool { + if x == nil { + return false + } + return x.InheritedPinnedVersion != nil +} + +func (x *WorkflowExecutionStartedEventAttributes) HasInheritedAutoUpgradeInfo() bool { + if x == nil { + return false + } + return x.InheritedAutoUpgradeInfo != nil +} + +func (x *WorkflowExecutionStartedEventAttributes) ClearWorkflowType() { + x.WorkflowType = nil +} + +func (x *WorkflowExecutionStartedEventAttributes) ClearParentWorkflowExecution() { + x.ParentWorkflowExecution = nil +} + +func (x *WorkflowExecutionStartedEventAttributes) ClearTaskQueue() { + x.TaskQueue = nil +} + +func (x *WorkflowExecutionStartedEventAttributes) ClearInput() { + x.Input = nil +} + +func (x *WorkflowExecutionStartedEventAttributes) ClearWorkflowExecutionTimeout() { + x.WorkflowExecutionTimeout = nil +} + +func (x *WorkflowExecutionStartedEventAttributes) ClearWorkflowRunTimeout() { + x.WorkflowRunTimeout = nil +} + +func (x *WorkflowExecutionStartedEventAttributes) ClearWorkflowTaskTimeout() { + x.WorkflowTaskTimeout = nil +} + +func (x *WorkflowExecutionStartedEventAttributes) ClearContinuedFailure() { + x.ContinuedFailure = nil +} + +func (x *WorkflowExecutionStartedEventAttributes) ClearLastCompletionResult() { + x.LastCompletionResult = nil +} + +func (x *WorkflowExecutionStartedEventAttributes) ClearRetryPolicy() { + x.RetryPolicy = nil +} + +func (x *WorkflowExecutionStartedEventAttributes) ClearWorkflowExecutionExpirationTime() { + x.WorkflowExecutionExpirationTime = nil +} + +func (x *WorkflowExecutionStartedEventAttributes) ClearFirstWorkflowTaskBackoff() { + x.FirstWorkflowTaskBackoff = nil +} + +func (x *WorkflowExecutionStartedEventAttributes) ClearMemo() { + x.Memo = nil +} + +func (x *WorkflowExecutionStartedEventAttributes) ClearSearchAttributes() { + x.SearchAttributes = nil +} + +func (x *WorkflowExecutionStartedEventAttributes) ClearPrevAutoResetPoints() { + x.PrevAutoResetPoints = nil +} + +func (x *WorkflowExecutionStartedEventAttributes) ClearHeader() { + x.Header = nil +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowExecutionStartedEventAttributes) ClearSourceVersionStamp() { + x.SourceVersionStamp = nil +} + +func (x *WorkflowExecutionStartedEventAttributes) ClearRootWorkflowExecution() { + x.RootWorkflowExecution = nil +} + +func (x *WorkflowExecutionStartedEventAttributes) ClearVersioningOverride() { + x.VersioningOverride = nil +} + +func (x *WorkflowExecutionStartedEventAttributes) ClearPriority() { + x.Priority = nil +} + +func (x *WorkflowExecutionStartedEventAttributes) ClearInheritedPinnedVersion() { + x.InheritedPinnedVersion = nil +} + +func (x *WorkflowExecutionStartedEventAttributes) ClearInheritedAutoUpgradeInfo() { + x.InheritedAutoUpgradeInfo = nil +} + +type WorkflowExecutionStartedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + WorkflowType *v1.WorkflowType + // If this workflow is a child, the namespace our parent lives in. + // SDKs and UI tools should use `parent_workflow_namespace` field but server must use `parent_workflow_namespace_id` only. + ParentWorkflowNamespace string + ParentWorkflowNamespaceId string + // Contains information about parent workflow execution that initiated the child workflow these attributes belong to. + // If the workflow these attributes belong to is not a child workflow of any other execution, this field will not be populated. + ParentWorkflowExecution *v1.WorkflowExecution + // EventID of the child execution initiated event in parent workflow + ParentInitiatedEventId int64 + TaskQueue *v11.TaskQueue + // SDK will deserialize this and provide it as arguments to the workflow function + Input *v1.Payloads + // Total workflow execution timeout including retries and continue as new. + WorkflowExecutionTimeout *durationpb.Duration + // Timeout of a single workflow run. + WorkflowRunTimeout *durationpb.Duration + // Timeout of a single workflow task. + WorkflowTaskTimeout *durationpb.Duration + // Run id of the previous workflow which continued-as-new or retried or cron executed into this + // workflow. + ContinuedExecutionRunId string + Initiator v12.ContinueAsNewInitiator + ContinuedFailure *v13.Failure + LastCompletionResult *v1.Payloads + // This is the run id when the WorkflowExecutionStarted event was written. + // A workflow reset changes the execution run_id, but preserves this field. + OriginalExecutionRunId string + // Identity of the client who requested this execution + Identity string + // This is the very first runId along the chain of ContinueAsNew, Retry, Cron and Reset. + // Used to identify a chain. + FirstExecutionRunId string + RetryPolicy *v1.RetryPolicy + // Starting at 1, the number of times we have tried to execute this workflow + Attempt int32 + // The absolute time at which the workflow will be timed out. + // This is passed without change to the next run/retry of a workflow. + WorkflowExecutionExpirationTime *timestamppb.Timestamp + // If this workflow runs on a cron schedule, it will appear here + CronSchedule string + // For a cron workflow, this contains the amount of time between when this iteration of + // the cron workflow was scheduled and when it should run next per its cron_schedule. + FirstWorkflowTaskBackoff *durationpb.Duration + Memo *v1.Memo + SearchAttributes *v1.SearchAttributes + PrevAutoResetPoints *v14.ResetPoints + Header *v1.Header + // Version of the child execution initiated event in parent workflow + // It should be used together with parent_initiated_event_id to identify + // a child initiated event for global namespace + ParentInitiatedEventVersion int64 + // This field is new in 1.21. + WorkflowId string + // If this workflow intends to use anything other than the current overall default version for + // the queue, then we include it here. + // Deprecated. [cleanup-experimental-wv] + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + SourceVersionStamp *v1.WorkerVersionStamp + // Completion callbacks attached when this workflow was started. + CompletionCallbacks []*v1.Callback + // Contains information about the root workflow execution. + // The root workflow execution is defined as follows: + // 1. A workflow without parent workflow is its own root workflow. + // 2. A workflow that has a parent workflow has the same root workflow as its parent workflow. + // + // When the workflow is its own root workflow, then root_workflow_execution is nil. + // Note: workflows continued as new or reseted may or may not have parents, check examples below. + // + // Examples: + // + // Scenario 1: Workflow W1 starts child workflow W2, and W2 starts child workflow W3. + // - The root workflow of all three workflows is W1. + // - W1 has root_workflow_execution set to nil. + // - W2 and W3 have root_workflow_execution set to W1. + // Scenario 2: Workflow W1 starts child workflow W2, and W2 continued as new W3. + // - The root workflow of all three workflows is W1. + // - W1 has root_workflow_execution set to nil. + // - W2 and W3 have root_workflow_execution set to W1. + // Scenario 3: Workflow W1 continued as new W2. + // - The root workflow of W1 is W1 and the root workflow of W2 is W2. + // - W1 and W2 have root_workflow_execution set to nil. + // Scenario 4: Workflow W1 starts child workflow W2, and W2 is reseted, creating W3 + // - The root workflow of all three workflows is W1. + // - W1 has root_workflow_execution set to nil. + // - W2 and W3 have root_workflow_execution set to W1. + // Scenario 5: Workflow W1 is reseted, creating W2. + // - The root workflow of W1 is W1 and the root workflow of W2 is W2. + // - W1 and W2 have root_workflow_execution set to nil. + RootWorkflowExecution *v1.WorkflowExecution + // When present, this execution is assigned to the build ID of its parent or previous execution. + // Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + InheritedBuildId string + // Versioning override applied to this workflow when it was started. + // Children, crons, retries, and continue-as-new will inherit source run's override if pinned + // and if the new workflow's Task Queue belongs to the override version. + VersioningOverride *v14.VersioningOverride + // When present, it means this is a child workflow of a parent that is Pinned to this Worker + // Deployment Version. In this case, child workflow will start as Pinned to this Version instead + // of starting on the Current Version of its Task Queue. + // This is set only if the child workflow is starting on a Task Queue belonging to the same + // Worker Deployment Version. + // Deprecated. Use `parent_versioning_info`. + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + ParentPinnedWorkerDeploymentVersion string + // Priority metadata + Priority *v1.Priority + // If present, the new workflow should start on this version with pinned base behavior. + // Child of pinned parent will inherit the parent's version if the Child's Task Queue belongs to that version. + // + // A new run initiated by workflow ContinueAsNew of pinned run, will inherit the previous run's version if the + // new run's Task Queue belongs to that version. + // + // A new run initiated by workflow Cron will never inherit. + // + // A new run initiated by workflow Retry will only inherit if the retried run is effectively pinned at the time + // of retry, and the retried run inherited a pinned version when it started (ie. it is a child of a pinned + // parent, or a CaN of a pinned run, and is running on a Task Queue in the inherited version). + // + // Pinned override is inherited if Task Queue of new run is compatible with the override version. + // Override is inherited separately and takes precedence over inherited base version. + // + // Note: This field is mutually exclusive with inherited_auto_upgrade_info. + // Additionaly, versioning_override, if present, overrides this field during routing decisions. + InheritedPinnedVersion *v15.WorkerDeploymentVersion + // If present, the new workflow begins with AutoUpgrade behavior. Before dispatching the + // first workflow task, this field is set to the deployment version on which the parent/ + // previous run was operating. This inheritance only happens when the task queues belong to + // the same deployment version. The first workflow task will then be dispatched to either + // this inherited deployment version, or the current deployment version of the task queue's + // Deployment. After the first workflow task, the effective behavior depends on worker-sent + // values in subsequent workflow tasks. + // + // Inheritance rules: + // - ContinueAsNew and child workflows: inherit AutoUpgrade behavior and deployment version + // - Cron: never inherits + // - Retry: inherits only if the retried run is effectively AutoUpgrade at the time of + // retry, and inherited AutoUpgrade behavior when it started (i.e. it is a child of an + // AutoUpgrade parent or ContinueAsNew of an AutoUpgrade run, running on the same + // deployment as the parent/previous run) + // + // Additional notes: + // - This field is mutually exclusive with `inherited_pinned_version`. + // - `versioning_override`, if present, overrides this field during routing decisions. + // - SDK implementations do not interact with this field and is only used internally by + // the server to ensure task routing correctness. + InheritedAutoUpgradeInfo *v15.InheritedAutoUpgradeInfo + // A boolean indicating whether the SDK has asked to eagerly execute the first workflow task for this workflow and + // eager execution was accepted by the server. + // Only populated by server with version >= 1.29.0. + EagerExecutionAccepted bool +} + +func (b0 WorkflowExecutionStartedEventAttributes_builder) Build() *WorkflowExecutionStartedEventAttributes { + m0 := &WorkflowExecutionStartedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.WorkflowType = b.WorkflowType + x.ParentWorkflowNamespace = b.ParentWorkflowNamespace + x.ParentWorkflowNamespaceId = b.ParentWorkflowNamespaceId + x.ParentWorkflowExecution = b.ParentWorkflowExecution + x.ParentInitiatedEventId = b.ParentInitiatedEventId + x.TaskQueue = b.TaskQueue + x.Input = b.Input + x.WorkflowExecutionTimeout = b.WorkflowExecutionTimeout + x.WorkflowRunTimeout = b.WorkflowRunTimeout + x.WorkflowTaskTimeout = b.WorkflowTaskTimeout + x.ContinuedExecutionRunId = b.ContinuedExecutionRunId + x.Initiator = b.Initiator + x.ContinuedFailure = b.ContinuedFailure + x.LastCompletionResult = b.LastCompletionResult + x.OriginalExecutionRunId = b.OriginalExecutionRunId + x.Identity = b.Identity + x.FirstExecutionRunId = b.FirstExecutionRunId + x.RetryPolicy = b.RetryPolicy + x.Attempt = b.Attempt + x.WorkflowExecutionExpirationTime = b.WorkflowExecutionExpirationTime + x.CronSchedule = b.CronSchedule + x.FirstWorkflowTaskBackoff = b.FirstWorkflowTaskBackoff + x.Memo = b.Memo + x.SearchAttributes = b.SearchAttributes + x.PrevAutoResetPoints = b.PrevAutoResetPoints + x.Header = b.Header + x.ParentInitiatedEventVersion = b.ParentInitiatedEventVersion + x.WorkflowId = b.WorkflowId + x.SourceVersionStamp = b.SourceVersionStamp + x.CompletionCallbacks = b.CompletionCallbacks + x.RootWorkflowExecution = b.RootWorkflowExecution + x.InheritedBuildId = b.InheritedBuildId + x.VersioningOverride = b.VersioningOverride + x.ParentPinnedWorkerDeploymentVersion = b.ParentPinnedWorkerDeploymentVersion + x.Priority = b.Priority + x.InheritedPinnedVersion = b.InheritedPinnedVersion + x.InheritedAutoUpgradeInfo = b.InheritedAutoUpgradeInfo + x.EagerExecutionAccepted = b.EagerExecutionAccepted + return m0 +} + +type WorkflowExecutionCompletedEventAttributes struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // Serialized result of workflow completion (ie: The return value of the workflow function) + Result *v1.Payloads `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` + // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + WorkflowTaskCompletedEventId int64 `protobuf:"varint,2,opt,name=workflow_task_completed_event_id,json=workflowTaskCompletedEventId,proto3" json:"workflow_task_completed_event_id,omitempty"` + // If another run is started by cron, this contains the new run id. + NewExecutionRunId string `protobuf:"bytes,3,opt,name=new_execution_run_id,json=newExecutionRunId,proto3" json:"new_execution_run_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowExecutionCompletedEventAttributes) Reset() { + *x = WorkflowExecutionCompletedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkflowExecutionCompletedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowExecutionCompletedEventAttributes) ProtoMessage() {} + +func (x *WorkflowExecutionCompletedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkflowExecutionCompletedEventAttributes) GetResult() *v1.Payloads { + if x != nil { + return x.Result + } + return nil +} + +func (x *WorkflowExecutionCompletedEventAttributes) GetWorkflowTaskCompletedEventId() int64 { + if x != nil { + return x.WorkflowTaskCompletedEventId + } + return 0 +} + +func (x *WorkflowExecutionCompletedEventAttributes) GetNewExecutionRunId() string { + if x != nil { + return x.NewExecutionRunId + } + return "" +} + +func (x *WorkflowExecutionCompletedEventAttributes) SetResult(v *v1.Payloads) { + x.Result = v +} + +func (x *WorkflowExecutionCompletedEventAttributes) SetWorkflowTaskCompletedEventId(v int64) { + x.WorkflowTaskCompletedEventId = v +} + +func (x *WorkflowExecutionCompletedEventAttributes) SetNewExecutionRunId(v string) { + x.NewExecutionRunId = v +} + +func (x *WorkflowExecutionCompletedEventAttributes) HasResult() bool { + if x == nil { + return false + } + return x.Result != nil +} + +func (x *WorkflowExecutionCompletedEventAttributes) ClearResult() { + x.Result = nil +} + +type WorkflowExecutionCompletedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Serialized result of workflow completion (ie: The return value of the workflow function) + Result *v1.Payloads + // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + WorkflowTaskCompletedEventId int64 + // If another run is started by cron, this contains the new run id. + NewExecutionRunId string +} + +func (b0 WorkflowExecutionCompletedEventAttributes_builder) Build() *WorkflowExecutionCompletedEventAttributes { + m0 := &WorkflowExecutionCompletedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.Result = b.Result + x.WorkflowTaskCompletedEventId = b.WorkflowTaskCompletedEventId + x.NewExecutionRunId = b.NewExecutionRunId + return m0 +} + +type WorkflowExecutionFailedEventAttributes struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // Serialized result of workflow failure (ex: An exception thrown, or error returned) + Failure *v13.Failure `protobuf:"bytes,1,opt,name=failure,proto3" json:"failure,omitempty"` + RetryState v12.RetryState `protobuf:"varint,2,opt,name=retry_state,json=retryState,proto3,enum=temporal.api.enums.v1.RetryState" json:"retry_state,omitempty"` + // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + WorkflowTaskCompletedEventId int64 `protobuf:"varint,3,opt,name=workflow_task_completed_event_id,json=workflowTaskCompletedEventId,proto3" json:"workflow_task_completed_event_id,omitempty"` + // If another run is started by cron or retry, this contains the new run id. + NewExecutionRunId string `protobuf:"bytes,4,opt,name=new_execution_run_id,json=newExecutionRunId,proto3" json:"new_execution_run_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowExecutionFailedEventAttributes) Reset() { + *x = WorkflowExecutionFailedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkflowExecutionFailedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowExecutionFailedEventAttributes) ProtoMessage() {} + +func (x *WorkflowExecutionFailedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkflowExecutionFailedEventAttributes) GetFailure() *v13.Failure { + if x != nil { + return x.Failure + } + return nil +} + +func (x *WorkflowExecutionFailedEventAttributes) GetRetryState() v12.RetryState { + if x != nil { + return x.RetryState + } + return v12.RetryState(0) +} + +func (x *WorkflowExecutionFailedEventAttributes) GetWorkflowTaskCompletedEventId() int64 { + if x != nil { + return x.WorkflowTaskCompletedEventId + } + return 0 +} + +func (x *WorkflowExecutionFailedEventAttributes) GetNewExecutionRunId() string { + if x != nil { + return x.NewExecutionRunId + } + return "" +} + +func (x *WorkflowExecutionFailedEventAttributes) SetFailure(v *v13.Failure) { + x.Failure = v +} + +func (x *WorkflowExecutionFailedEventAttributes) SetRetryState(v v12.RetryState) { + x.RetryState = v +} + +func (x *WorkflowExecutionFailedEventAttributes) SetWorkflowTaskCompletedEventId(v int64) { + x.WorkflowTaskCompletedEventId = v +} + +func (x *WorkflowExecutionFailedEventAttributes) SetNewExecutionRunId(v string) { + x.NewExecutionRunId = v +} + +func (x *WorkflowExecutionFailedEventAttributes) HasFailure() bool { + if x == nil { + return false + } + return x.Failure != nil +} + +func (x *WorkflowExecutionFailedEventAttributes) ClearFailure() { + x.Failure = nil +} + +type WorkflowExecutionFailedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Serialized result of workflow failure (ex: An exception thrown, or error returned) + Failure *v13.Failure + RetryState v12.RetryState + // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + WorkflowTaskCompletedEventId int64 + // If another run is started by cron or retry, this contains the new run id. + NewExecutionRunId string +} + +func (b0 WorkflowExecutionFailedEventAttributes_builder) Build() *WorkflowExecutionFailedEventAttributes { + m0 := &WorkflowExecutionFailedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.Failure = b.Failure + x.RetryState = b.RetryState + x.WorkflowTaskCompletedEventId = b.WorkflowTaskCompletedEventId + x.NewExecutionRunId = b.NewExecutionRunId + return m0 +} + +type WorkflowExecutionTimedOutEventAttributes struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + RetryState v12.RetryState `protobuf:"varint,1,opt,name=retry_state,json=retryState,proto3,enum=temporal.api.enums.v1.RetryState" json:"retry_state,omitempty"` + // If another run is started by cron or retry, this contains the new run id. + NewExecutionRunId string `protobuf:"bytes,2,opt,name=new_execution_run_id,json=newExecutionRunId,proto3" json:"new_execution_run_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowExecutionTimedOutEventAttributes) Reset() { + *x = WorkflowExecutionTimedOutEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkflowExecutionTimedOutEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowExecutionTimedOutEventAttributes) ProtoMessage() {} + +func (x *WorkflowExecutionTimedOutEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkflowExecutionTimedOutEventAttributes) GetRetryState() v12.RetryState { + if x != nil { + return x.RetryState + } + return v12.RetryState(0) +} + +func (x *WorkflowExecutionTimedOutEventAttributes) GetNewExecutionRunId() string { + if x != nil { + return x.NewExecutionRunId + } + return "" +} + +func (x *WorkflowExecutionTimedOutEventAttributes) SetRetryState(v v12.RetryState) { + x.RetryState = v +} + +func (x *WorkflowExecutionTimedOutEventAttributes) SetNewExecutionRunId(v string) { + x.NewExecutionRunId = v +} + +type WorkflowExecutionTimedOutEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + RetryState v12.RetryState + // If another run is started by cron or retry, this contains the new run id. + NewExecutionRunId string +} + +func (b0 WorkflowExecutionTimedOutEventAttributes_builder) Build() *WorkflowExecutionTimedOutEventAttributes { + m0 := &WorkflowExecutionTimedOutEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.RetryState = b.RetryState + x.NewExecutionRunId = b.NewExecutionRunId + return m0 +} + +type WorkflowExecutionContinuedAsNewEventAttributes struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // The run ID of the new workflow started by this continue-as-new + NewExecutionRunId string `protobuf:"bytes,1,opt,name=new_execution_run_id,json=newExecutionRunId,proto3" json:"new_execution_run_id,omitempty"` + WorkflowType *v1.WorkflowType `protobuf:"bytes,2,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type,omitempty"` + TaskQueue *v11.TaskQueue `protobuf:"bytes,3,opt,name=task_queue,json=taskQueue,proto3" json:"task_queue,omitempty"` + Input *v1.Payloads `protobuf:"bytes,4,opt,name=input,proto3" json:"input,omitempty"` + // Timeout of a single workflow run. + WorkflowRunTimeout *durationpb.Duration `protobuf:"bytes,5,opt,name=workflow_run_timeout,json=workflowRunTimeout,proto3" json:"workflow_run_timeout,omitempty"` + // Timeout of a single workflow task. + WorkflowTaskTimeout *durationpb.Duration `protobuf:"bytes,6,opt,name=workflow_task_timeout,json=workflowTaskTimeout,proto3" json:"workflow_task_timeout,omitempty"` + // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + WorkflowTaskCompletedEventId int64 `protobuf:"varint,7,opt,name=workflow_task_completed_event_id,json=workflowTaskCompletedEventId,proto3" json:"workflow_task_completed_event_id,omitempty"` + // How long the server will wait before scheduling the first workflow task for the new run. + // Used for cron, retry, and other continue-as-new cases that server may enforce some minimal + // delay between new runs for system protection purpose. + BackoffStartInterval *durationpb.Duration `protobuf:"bytes,8,opt,name=backoff_start_interval,json=backoffStartInterval,proto3" json:"backoff_start_interval,omitempty"` + Initiator v12.ContinueAsNewInitiator `protobuf:"varint,9,opt,name=initiator,proto3,enum=temporal.api.enums.v1.ContinueAsNewInitiator" json:"initiator,omitempty"` + // Deprecated. If a workflow's retry policy would cause a new run to start when the current one + // has failed, this field would be populated with that failure. Now (when supported by server + // and sdk) the final event will be `WORKFLOW_EXECUTION_FAILED` with `new_execution_run_id` set. + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + Failure *v13.Failure `protobuf:"bytes,10,opt,name=failure,proto3" json:"failure,omitempty"` + // The result from the most recent completed run of this workflow. The SDK surfaces this to the + // new run via APIs such as `GetLastCompletionResult`. + LastCompletionResult *v1.Payloads `protobuf:"bytes,11,opt,name=last_completion_result,json=lastCompletionResult,proto3" json:"last_completion_result,omitempty"` + Header *v1.Header `protobuf:"bytes,12,opt,name=header,proto3" json:"header,omitempty"` + Memo *v1.Memo `protobuf:"bytes,13,opt,name=memo,proto3" json:"memo,omitempty"` + SearchAttributes *v1.SearchAttributes `protobuf:"bytes,14,opt,name=search_attributes,json=searchAttributes,proto3" json:"search_attributes,omitempty"` + // If this is set, the new execution inherits the Build ID of the current execution. Otherwise, + // the assignment rules will be used to independently assign a Build ID to the new execution. + // Deprecated. Only considered for versioning v0.2. + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + InheritBuildId bool `protobuf:"varint,15,opt,name=inherit_build_id,json=inheritBuildId,proto3" json:"inherit_build_id,omitempty"` + // Experimental. Optionally decide the versioning behavior that the first task of the new run should use. + // For example, choose to AutoUpgrade on continue-as-new instead of inheriting the pinned version + // of the previous run. + InitialVersioningBehavior v12.ContinueAsNewVersioningBehavior `protobuf:"varint,16,opt,name=initial_versioning_behavior,json=initialVersioningBehavior,proto3,enum=temporal.api.enums.v1.ContinueAsNewVersioningBehavior" json:"initial_versioning_behavior,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) Reset() { + *x = WorkflowExecutionContinuedAsNewEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowExecutionContinuedAsNewEventAttributes) ProtoMessage() {} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) GetNewExecutionRunId() string { + if x != nil { + return x.NewExecutionRunId + } + return "" +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) GetWorkflowType() *v1.WorkflowType { + if x != nil { + return x.WorkflowType + } + return nil +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) GetTaskQueue() *v11.TaskQueue { + if x != nil { + return x.TaskQueue + } + return nil +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) GetInput() *v1.Payloads { + if x != nil { + return x.Input + } + return nil +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) GetWorkflowRunTimeout() *durationpb.Duration { + if x != nil { + return x.WorkflowRunTimeout + } + return nil +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) GetWorkflowTaskTimeout() *durationpb.Duration { + if x != nil { + return x.WorkflowTaskTimeout + } + return nil +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) GetWorkflowTaskCompletedEventId() int64 { + if x != nil { + return x.WorkflowTaskCompletedEventId + } + return 0 +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) GetBackoffStartInterval() *durationpb.Duration { + if x != nil { + return x.BackoffStartInterval + } + return nil +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) GetInitiator() v12.ContinueAsNewInitiator { + if x != nil { + return x.Initiator + } + return v12.ContinueAsNewInitiator(0) +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowExecutionContinuedAsNewEventAttributes) GetFailure() *v13.Failure { + if x != nil { + return x.Failure + } + return nil +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) GetLastCompletionResult() *v1.Payloads { + if x != nil { + return x.LastCompletionResult + } + return nil +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) GetHeader() *v1.Header { + if x != nil { + return x.Header + } + return nil +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) GetMemo() *v1.Memo { + if x != nil { + return x.Memo + } + return nil } func (x *WorkflowExecutionContinuedAsNewEventAttributes) GetSearchAttributes() *v1.SearchAttributes { if x != nil { - return x.SearchAttributes + return x.SearchAttributes + } + return nil +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowExecutionContinuedAsNewEventAttributes) GetInheritBuildId() bool { + if x != nil { + return x.InheritBuildId + } + return false +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) GetInitialVersioningBehavior() v12.ContinueAsNewVersioningBehavior { + if x != nil { + return x.InitialVersioningBehavior + } + return v12.ContinueAsNewVersioningBehavior(0) +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) SetNewExecutionRunId(v string) { + x.NewExecutionRunId = v +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) SetWorkflowType(v *v1.WorkflowType) { + x.WorkflowType = v +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) SetTaskQueue(v *v11.TaskQueue) { + x.TaskQueue = v +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) SetInput(v *v1.Payloads) { + x.Input = v +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) SetWorkflowRunTimeout(v *durationpb.Duration) { + x.WorkflowRunTimeout = v +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) SetWorkflowTaskTimeout(v *durationpb.Duration) { + x.WorkflowTaskTimeout = v +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) SetWorkflowTaskCompletedEventId(v int64) { + x.WorkflowTaskCompletedEventId = v +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) SetBackoffStartInterval(v *durationpb.Duration) { + x.BackoffStartInterval = v +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) SetInitiator(v v12.ContinueAsNewInitiator) { + x.Initiator = v +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowExecutionContinuedAsNewEventAttributes) SetFailure(v *v13.Failure) { + x.Failure = v +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) SetLastCompletionResult(v *v1.Payloads) { + x.LastCompletionResult = v +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) SetHeader(v *v1.Header) { + x.Header = v +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) SetMemo(v *v1.Memo) { + x.Memo = v +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) SetSearchAttributes(v *v1.SearchAttributes) { + x.SearchAttributes = v +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowExecutionContinuedAsNewEventAttributes) SetInheritBuildId(v bool) { + x.InheritBuildId = v +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) SetInitialVersioningBehavior(v v12.ContinueAsNewVersioningBehavior) { + x.InitialVersioningBehavior = v +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) HasWorkflowType() bool { + if x == nil { + return false + } + return x.WorkflowType != nil +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) HasTaskQueue() bool { + if x == nil { + return false + } + return x.TaskQueue != nil +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) HasInput() bool { + if x == nil { + return false + } + return x.Input != nil +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) HasWorkflowRunTimeout() bool { + if x == nil { + return false + } + return x.WorkflowRunTimeout != nil +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) HasWorkflowTaskTimeout() bool { + if x == nil { + return false + } + return x.WorkflowTaskTimeout != nil +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) HasBackoffStartInterval() bool { + if x == nil { + return false + } + return x.BackoffStartInterval != nil +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowExecutionContinuedAsNewEventAttributes) HasFailure() bool { + if x == nil { + return false + } + return x.Failure != nil +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) HasLastCompletionResult() bool { + if x == nil { + return false + } + return x.LastCompletionResult != nil +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) HasHeader() bool { + if x == nil { + return false + } + return x.Header != nil +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) HasMemo() bool { + if x == nil { + return false + } + return x.Memo != nil +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) HasSearchAttributes() bool { + if x == nil { + return false + } + return x.SearchAttributes != nil +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) ClearWorkflowType() { + x.WorkflowType = nil +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) ClearTaskQueue() { + x.TaskQueue = nil +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) ClearInput() { + x.Input = nil +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) ClearWorkflowRunTimeout() { + x.WorkflowRunTimeout = nil +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) ClearWorkflowTaskTimeout() { + x.WorkflowTaskTimeout = nil +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) ClearBackoffStartInterval() { + x.BackoffStartInterval = nil +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowExecutionContinuedAsNewEventAttributes) ClearFailure() { + x.Failure = nil +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) ClearLastCompletionResult() { + x.LastCompletionResult = nil +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) ClearHeader() { + x.Header = nil +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) ClearMemo() { + x.Memo = nil +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) ClearSearchAttributes() { + x.SearchAttributes = nil +} + +type WorkflowExecutionContinuedAsNewEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The run ID of the new workflow started by this continue-as-new + NewExecutionRunId string + WorkflowType *v1.WorkflowType + TaskQueue *v11.TaskQueue + Input *v1.Payloads + // Timeout of a single workflow run. + WorkflowRunTimeout *durationpb.Duration + // Timeout of a single workflow task. + WorkflowTaskTimeout *durationpb.Duration + // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + WorkflowTaskCompletedEventId int64 + // How long the server will wait before scheduling the first workflow task for the new run. + // Used for cron, retry, and other continue-as-new cases that server may enforce some minimal + // delay between new runs for system protection purpose. + BackoffStartInterval *durationpb.Duration + Initiator v12.ContinueAsNewInitiator + // Deprecated. If a workflow's retry policy would cause a new run to start when the current one + // has failed, this field would be populated with that failure. Now (when supported by server + // and sdk) the final event will be `WORKFLOW_EXECUTION_FAILED` with `new_execution_run_id` set. + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + Failure *v13.Failure + // The result from the most recent completed run of this workflow. The SDK surfaces this to the + // new run via APIs such as `GetLastCompletionResult`. + LastCompletionResult *v1.Payloads + Header *v1.Header + Memo *v1.Memo + SearchAttributes *v1.SearchAttributes + // If this is set, the new execution inherits the Build ID of the current execution. Otherwise, + // the assignment rules will be used to independently assign a Build ID to the new execution. + // Deprecated. Only considered for versioning v0.2. + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + InheritBuildId bool + // Experimental. Optionally decide the versioning behavior that the first task of the new run should use. + // For example, choose to AutoUpgrade on continue-as-new instead of inheriting the pinned version + // of the previous run. + InitialVersioningBehavior v12.ContinueAsNewVersioningBehavior +} + +func (b0 WorkflowExecutionContinuedAsNewEventAttributes_builder) Build() *WorkflowExecutionContinuedAsNewEventAttributes { + m0 := &WorkflowExecutionContinuedAsNewEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.NewExecutionRunId = b.NewExecutionRunId + x.WorkflowType = b.WorkflowType + x.TaskQueue = b.TaskQueue + x.Input = b.Input + x.WorkflowRunTimeout = b.WorkflowRunTimeout + x.WorkflowTaskTimeout = b.WorkflowTaskTimeout + x.WorkflowTaskCompletedEventId = b.WorkflowTaskCompletedEventId + x.BackoffStartInterval = b.BackoffStartInterval + x.Initiator = b.Initiator + x.Failure = b.Failure + x.LastCompletionResult = b.LastCompletionResult + x.Header = b.Header + x.Memo = b.Memo + x.SearchAttributes = b.SearchAttributes + x.InheritBuildId = b.InheritBuildId + x.InitialVersioningBehavior = b.InitialVersioningBehavior + return m0 +} + +type WorkflowTaskScheduledEventAttributes struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // The task queue this workflow task was enqueued in, which could be a normal or sticky queue + TaskQueue *v11.TaskQueue `protobuf:"bytes,1,opt,name=task_queue,json=taskQueue,proto3" json:"task_queue,omitempty"` + // How long the worker has to process this task once receiving it before it times out + // + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + StartToCloseTimeout *durationpb.Duration `protobuf:"bytes,2,opt,name=start_to_close_timeout,json=startToCloseTimeout,proto3" json:"start_to_close_timeout,omitempty"` + // Starting at 1, how many attempts there have been to complete this task + Attempt int32 `protobuf:"varint,3,opt,name=attempt,proto3" json:"attempt,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowTaskScheduledEventAttributes) Reset() { + *x = WorkflowTaskScheduledEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkflowTaskScheduledEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowTaskScheduledEventAttributes) ProtoMessage() {} + +func (x *WorkflowTaskScheduledEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkflowTaskScheduledEventAttributes) GetTaskQueue() *v11.TaskQueue { + if x != nil { + return x.TaskQueue + } + return nil +} + +func (x *WorkflowTaskScheduledEventAttributes) GetStartToCloseTimeout() *durationpb.Duration { + if x != nil { + return x.StartToCloseTimeout + } + return nil +} + +func (x *WorkflowTaskScheduledEventAttributes) GetAttempt() int32 { + if x != nil { + return x.Attempt + } + return 0 +} + +func (x *WorkflowTaskScheduledEventAttributes) SetTaskQueue(v *v11.TaskQueue) { + x.TaskQueue = v +} + +func (x *WorkflowTaskScheduledEventAttributes) SetStartToCloseTimeout(v *durationpb.Duration) { + x.StartToCloseTimeout = v +} + +func (x *WorkflowTaskScheduledEventAttributes) SetAttempt(v int32) { + x.Attempt = v +} + +func (x *WorkflowTaskScheduledEventAttributes) HasTaskQueue() bool { + if x == nil { + return false + } + return x.TaskQueue != nil +} + +func (x *WorkflowTaskScheduledEventAttributes) HasStartToCloseTimeout() bool { + if x == nil { + return false + } + return x.StartToCloseTimeout != nil +} + +func (x *WorkflowTaskScheduledEventAttributes) ClearTaskQueue() { + x.TaskQueue = nil +} + +func (x *WorkflowTaskScheduledEventAttributes) ClearStartToCloseTimeout() { + x.StartToCloseTimeout = nil +} + +type WorkflowTaskScheduledEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The task queue this workflow task was enqueued in, which could be a normal or sticky queue + TaskQueue *v11.TaskQueue + // How long the worker has to process this task once receiving it before it times out + // + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + StartToCloseTimeout *durationpb.Duration + // Starting at 1, how many attempts there have been to complete this task + Attempt int32 +} + +func (b0 WorkflowTaskScheduledEventAttributes_builder) Build() *WorkflowTaskScheduledEventAttributes { + m0 := &WorkflowTaskScheduledEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.TaskQueue = b.TaskQueue + x.StartToCloseTimeout = b.StartToCloseTimeout + x.Attempt = b.Attempt + return m0 +} + +type WorkflowTaskStartedEventAttributes struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // The id of the `WORKFLOW_TASK_SCHEDULED` event this task corresponds to + ScheduledEventId int64 `protobuf:"varint,1,opt,name=scheduled_event_id,json=scheduledEventId,proto3" json:"scheduled_event_id,omitempty"` + // Identity of the worker who picked up this task + Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` + // This field is populated from the RecordWorkflowTaskStartedRequest. Matching service would + // set the request_id on the RecordWorkflowTaskStartedRequest to a new UUID. This is useful + // in case a RecordWorkflowTaskStarted call succeed but matching doesn't get that response, + // so matching could retry and history service would return success if the request_id matches. + // In that case, matching will continue to deliver the task to worker. Without this field, history + // service would return AlreadyStarted error, and matching would drop the task. + RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + // True if this workflow should continue-as-new soon. See `suggest_continue_as_new_reasons` for why. + SuggestContinueAsNew bool `protobuf:"varint,4,opt,name=suggest_continue_as_new,json=suggestContinueAsNew,proto3" json:"suggest_continue_as_new,omitempty"` + // The reason(s) that suggest_continue_as_new is true, if it is. + // Unset if suggest_continue_as_new is false. + SuggestContinueAsNewReasons []v12.SuggestContinueAsNewReason `protobuf:"varint,8,rep,packed,name=suggest_continue_as_new_reasons,json=suggestContinueAsNewReasons,proto3,enum=temporal.api.enums.v1.SuggestContinueAsNewReason" json:"suggest_continue_as_new_reasons,omitempty"` + // Total history size in bytes, which the workflow might use to decide when to + // continue-as-new regardless of the suggestion. Note that history event count is + // just the event id of this event, so we don't include it explicitly here. + HistorySizeBytes int64 `protobuf:"varint,5,opt,name=history_size_bytes,json=historySizeBytes,proto3" json:"history_size_bytes,omitempty"` + // Version info of the worker to whom this task was dispatched. + // Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + WorkerVersion *v1.WorkerVersionStamp `protobuf:"bytes,6,opt,name=worker_version,json=workerVersion,proto3" json:"worker_version,omitempty"` + // Used by server internally to properly reapply build ID redirects to an execution + // when rebuilding it from events. + // Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + BuildIdRedirectCounter int64 `protobuf:"varint,7,opt,name=build_id_redirect_counter,json=buildIdRedirectCounter,proto3" json:"build_id_redirect_counter,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowTaskStartedEventAttributes) Reset() { + *x = WorkflowTaskStartedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkflowTaskStartedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowTaskStartedEventAttributes) ProtoMessage() {} + +func (x *WorkflowTaskStartedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkflowTaskStartedEventAttributes) GetScheduledEventId() int64 { + if x != nil { + return x.ScheduledEventId + } + return 0 +} + +func (x *WorkflowTaskStartedEventAttributes) GetIdentity() string { + if x != nil { + return x.Identity + } + return "" +} + +func (x *WorkflowTaskStartedEventAttributes) GetRequestId() string { + if x != nil { + return x.RequestId + } + return "" +} + +func (x *WorkflowTaskStartedEventAttributes) GetSuggestContinueAsNew() bool { + if x != nil { + return x.SuggestContinueAsNew + } + return false +} + +func (x *WorkflowTaskStartedEventAttributes) GetSuggestContinueAsNewReasons() []v12.SuggestContinueAsNewReason { + if x != nil { + return x.SuggestContinueAsNewReasons + } + return nil +} + +func (x *WorkflowTaskStartedEventAttributes) GetHistorySizeBytes() int64 { + if x != nil { + return x.HistorySizeBytes + } + return 0 +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowTaskStartedEventAttributes) GetWorkerVersion() *v1.WorkerVersionStamp { + if x != nil { + return x.WorkerVersion + } + return nil +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowTaskStartedEventAttributes) GetBuildIdRedirectCounter() int64 { + if x != nil { + return x.BuildIdRedirectCounter + } + return 0 +} + +func (x *WorkflowTaskStartedEventAttributes) SetScheduledEventId(v int64) { + x.ScheduledEventId = v +} + +func (x *WorkflowTaskStartedEventAttributes) SetIdentity(v string) { + x.Identity = v +} + +func (x *WorkflowTaskStartedEventAttributes) SetRequestId(v string) { + x.RequestId = v +} + +func (x *WorkflowTaskStartedEventAttributes) SetSuggestContinueAsNew(v bool) { + x.SuggestContinueAsNew = v +} + +func (x *WorkflowTaskStartedEventAttributes) SetSuggestContinueAsNewReasons(v []v12.SuggestContinueAsNewReason) { + x.SuggestContinueAsNewReasons = v +} + +func (x *WorkflowTaskStartedEventAttributes) SetHistorySizeBytes(v int64) { + x.HistorySizeBytes = v +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowTaskStartedEventAttributes) SetWorkerVersion(v *v1.WorkerVersionStamp) { + x.WorkerVersion = v +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowTaskStartedEventAttributes) SetBuildIdRedirectCounter(v int64) { + x.BuildIdRedirectCounter = v +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowTaskStartedEventAttributes) HasWorkerVersion() bool { + if x == nil { + return false + } + return x.WorkerVersion != nil +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowTaskStartedEventAttributes) ClearWorkerVersion() { + x.WorkerVersion = nil +} + +type WorkflowTaskStartedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The id of the `WORKFLOW_TASK_SCHEDULED` event this task corresponds to + ScheduledEventId int64 + // Identity of the worker who picked up this task + Identity string + // This field is populated from the RecordWorkflowTaskStartedRequest. Matching service would + // set the request_id on the RecordWorkflowTaskStartedRequest to a new UUID. This is useful + // in case a RecordWorkflowTaskStarted call succeed but matching doesn't get that response, + // so matching could retry and history service would return success if the request_id matches. + // In that case, matching will continue to deliver the task to worker. Without this field, history + // service would return AlreadyStarted error, and matching would drop the task. + RequestId string + // True if this workflow should continue-as-new soon. See `suggest_continue_as_new_reasons` for why. + SuggestContinueAsNew bool + // The reason(s) that suggest_continue_as_new is true, if it is. + // Unset if suggest_continue_as_new is false. + SuggestContinueAsNewReasons []v12.SuggestContinueAsNewReason + // Total history size in bytes, which the workflow might use to decide when to + // continue-as-new regardless of the suggestion. Note that history event count is + // just the event id of this event, so we don't include it explicitly here. + HistorySizeBytes int64 + // Version info of the worker to whom this task was dispatched. + // Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + WorkerVersion *v1.WorkerVersionStamp + // Used by server internally to properly reapply build ID redirects to an execution + // when rebuilding it from events. + // Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + BuildIdRedirectCounter int64 +} + +func (b0 WorkflowTaskStartedEventAttributes_builder) Build() *WorkflowTaskStartedEventAttributes { + m0 := &WorkflowTaskStartedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.ScheduledEventId = b.ScheduledEventId + x.Identity = b.Identity + x.RequestId = b.RequestId + x.SuggestContinueAsNew = b.SuggestContinueAsNew + x.SuggestContinueAsNewReasons = b.SuggestContinueAsNewReasons + x.HistorySizeBytes = b.HistorySizeBytes + x.WorkerVersion = b.WorkerVersion + x.BuildIdRedirectCounter = b.BuildIdRedirectCounter + return m0 +} + +type WorkflowTaskCompletedEventAttributes struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // The id of the `WORKFLOW_TASK_SCHEDULED` event this task corresponds to + ScheduledEventId int64 `protobuf:"varint,1,opt,name=scheduled_event_id,json=scheduledEventId,proto3" json:"scheduled_event_id,omitempty"` + // The id of the `WORKFLOW_TASK_STARTED` event this task corresponds to + StartedEventId int64 `protobuf:"varint,2,opt,name=started_event_id,json=startedEventId,proto3" json:"started_event_id,omitempty"` + // Identity of the worker who completed this task + Identity string `protobuf:"bytes,3,opt,name=identity,proto3" json:"identity,omitempty"` + // Binary ID of the worker who completed this task + // Deprecated. Replaced with `deployment_version`. + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + BinaryChecksum string `protobuf:"bytes,4,opt,name=binary_checksum,json=binaryChecksum,proto3" json:"binary_checksum,omitempty"` + // Version info of the worker who processed this workflow task. If present, the `build_id` field + // within is also used as `binary_checksum`, which may be omitted in that case (it may also be + // populated to preserve compatibility). + // Deprecated. Use `deployment_version` and `versioning_behavior` instead. + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + WorkerVersion *v1.WorkerVersionStamp `protobuf:"bytes,5,opt,name=worker_version,json=workerVersion,proto3" json:"worker_version,omitempty"` + // Data the SDK wishes to record for itself, but server need not interpret, and does not + // directly impact workflow state. + SdkMetadata *v16.WorkflowTaskCompletedMetadata `protobuf:"bytes,6,opt,name=sdk_metadata,json=sdkMetadata,proto3" json:"sdk_metadata,omitempty"` + // Local usage data sent during workflow task completion and recorded here for posterity + MeteringMetadata *v1.MeteringMetadata `protobuf:"bytes,13,opt,name=metering_metadata,json=meteringMetadata,proto3" json:"metering_metadata,omitempty"` + // The deployment that completed this task. May or may not be set for unversioned workers, + // depending on whether a value is sent by the SDK. This value updates workflow execution's + // `versioning_info.deployment`. + // Deprecated. Replaced with `deployment_version`. + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + Deployment *v15.Deployment `protobuf:"bytes,7,opt,name=deployment,proto3" json:"deployment,omitempty"` + // Versioning behavior sent by the worker that completed this task for this particular workflow + // execution. UNSPECIFIED means the task was completed by an unversioned worker. This value + // updates workflow execution's `versioning_info.behavior`. + VersioningBehavior v12.VersioningBehavior `protobuf:"varint,8,opt,name=versioning_behavior,json=versioningBehavior,proto3,enum=temporal.api.enums.v1.VersioningBehavior" json:"versioning_behavior,omitempty"` + // The Worker Deployment Version that completed this task. Must be set if `versioning_behavior` + // is set. This value updates workflow execution's `versioning_info.version`. + // Experimental. Worker Deployments are experimental and might significantly change in the future. + // Deprecated. Replaced with `deployment_version`. + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + WorkerDeploymentVersion string `protobuf:"bytes,9,opt,name=worker_deployment_version,json=workerDeploymentVersion,proto3" json:"worker_deployment_version,omitempty"` + // The name of Worker Deployment that completed this task. Must be set if `versioning_behavior` + // is set. This value updates workflow execution's `worker_deployment_name`. + // Experimental. Worker Deployments are experimental and might significantly change in the future. + WorkerDeploymentName string `protobuf:"bytes,10,opt,name=worker_deployment_name,json=workerDeploymentName,proto3" json:"worker_deployment_name,omitempty"` + // The Worker Deployment Version that completed this task. Must be set if `versioning_behavior` + // is set. This value updates workflow execution's `versioning_info.deployment_version`. + // Experimental. Worker Deployments are experimental and might significantly change in the future. + DeploymentVersion *v15.WorkerDeploymentVersion `protobuf:"bytes,11,opt,name=deployment_version,json=deploymentVersion,proto3" json:"deployment_version,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowTaskCompletedEventAttributes) Reset() { + *x = WorkflowTaskCompletedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkflowTaskCompletedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowTaskCompletedEventAttributes) ProtoMessage() {} + +func (x *WorkflowTaskCompletedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[7] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkflowTaskCompletedEventAttributes) GetScheduledEventId() int64 { + if x != nil { + return x.ScheduledEventId + } + return 0 +} + +func (x *WorkflowTaskCompletedEventAttributes) GetStartedEventId() int64 { + if x != nil { + return x.StartedEventId + } + return 0 +} + +func (x *WorkflowTaskCompletedEventAttributes) GetIdentity() string { + if x != nil { + return x.Identity + } + return "" +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowTaskCompletedEventAttributes) GetBinaryChecksum() string { + if x != nil { + return x.BinaryChecksum + } + return "" +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowTaskCompletedEventAttributes) GetWorkerVersion() *v1.WorkerVersionStamp { + if x != nil { + return x.WorkerVersion + } + return nil +} + +func (x *WorkflowTaskCompletedEventAttributes) GetSdkMetadata() *v16.WorkflowTaskCompletedMetadata { + if x != nil { + return x.SdkMetadata + } + return nil +} + +func (x *WorkflowTaskCompletedEventAttributes) GetMeteringMetadata() *v1.MeteringMetadata { + if x != nil { + return x.MeteringMetadata + } + return nil +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowTaskCompletedEventAttributes) GetDeployment() *v15.Deployment { + if x != nil { + return x.Deployment + } + return nil +} + +func (x *WorkflowTaskCompletedEventAttributes) GetVersioningBehavior() v12.VersioningBehavior { + if x != nil { + return x.VersioningBehavior + } + return v12.VersioningBehavior(0) +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowTaskCompletedEventAttributes) GetWorkerDeploymentVersion() string { + if x != nil { + return x.WorkerDeploymentVersion + } + return "" +} + +func (x *WorkflowTaskCompletedEventAttributes) GetWorkerDeploymentName() string { + if x != nil { + return x.WorkerDeploymentName + } + return "" +} + +func (x *WorkflowTaskCompletedEventAttributes) GetDeploymentVersion() *v15.WorkerDeploymentVersion { + if x != nil { + return x.DeploymentVersion + } + return nil +} + +func (x *WorkflowTaskCompletedEventAttributes) SetScheduledEventId(v int64) { + x.ScheduledEventId = v +} + +func (x *WorkflowTaskCompletedEventAttributes) SetStartedEventId(v int64) { + x.StartedEventId = v +} + +func (x *WorkflowTaskCompletedEventAttributes) SetIdentity(v string) { + x.Identity = v +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowTaskCompletedEventAttributes) SetBinaryChecksum(v string) { + x.BinaryChecksum = v +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowTaskCompletedEventAttributes) SetWorkerVersion(v *v1.WorkerVersionStamp) { + x.WorkerVersion = v +} + +func (x *WorkflowTaskCompletedEventAttributes) SetSdkMetadata(v *v16.WorkflowTaskCompletedMetadata) { + x.SdkMetadata = v +} + +func (x *WorkflowTaskCompletedEventAttributes) SetMeteringMetadata(v *v1.MeteringMetadata) { + x.MeteringMetadata = v +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowTaskCompletedEventAttributes) SetDeployment(v *v15.Deployment) { + x.Deployment = v +} + +func (x *WorkflowTaskCompletedEventAttributes) SetVersioningBehavior(v v12.VersioningBehavior) { + x.VersioningBehavior = v +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowTaskCompletedEventAttributes) SetWorkerDeploymentVersion(v string) { + x.WorkerDeploymentVersion = v +} + +func (x *WorkflowTaskCompletedEventAttributes) SetWorkerDeploymentName(v string) { + x.WorkerDeploymentName = v +} + +func (x *WorkflowTaskCompletedEventAttributes) SetDeploymentVersion(v *v15.WorkerDeploymentVersion) { + x.DeploymentVersion = v +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowTaskCompletedEventAttributes) HasWorkerVersion() bool { + if x == nil { + return false + } + return x.WorkerVersion != nil +} + +func (x *WorkflowTaskCompletedEventAttributes) HasSdkMetadata() bool { + if x == nil { + return false + } + return x.SdkMetadata != nil +} + +func (x *WorkflowTaskCompletedEventAttributes) HasMeteringMetadata() bool { + if x == nil { + return false + } + return x.MeteringMetadata != nil +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowTaskCompletedEventAttributes) HasDeployment() bool { + if x == nil { + return false + } + return x.Deployment != nil +} + +func (x *WorkflowTaskCompletedEventAttributes) HasDeploymentVersion() bool { + if x == nil { + return false + } + return x.DeploymentVersion != nil +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowTaskCompletedEventAttributes) ClearWorkerVersion() { + x.WorkerVersion = nil +} + +func (x *WorkflowTaskCompletedEventAttributes) ClearSdkMetadata() { + x.SdkMetadata = nil +} + +func (x *WorkflowTaskCompletedEventAttributes) ClearMeteringMetadata() { + x.MeteringMetadata = nil +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowTaskCompletedEventAttributes) ClearDeployment() { + x.Deployment = nil +} + +func (x *WorkflowTaskCompletedEventAttributes) ClearDeploymentVersion() { + x.DeploymentVersion = nil +} + +type WorkflowTaskCompletedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The id of the `WORKFLOW_TASK_SCHEDULED` event this task corresponds to + ScheduledEventId int64 + // The id of the `WORKFLOW_TASK_STARTED` event this task corresponds to + StartedEventId int64 + // Identity of the worker who completed this task + Identity string + // Binary ID of the worker who completed this task + // Deprecated. Replaced with `deployment_version`. + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + BinaryChecksum string + // Version info of the worker who processed this workflow task. If present, the `build_id` field + // within is also used as `binary_checksum`, which may be omitted in that case (it may also be + // populated to preserve compatibility). + // Deprecated. Use `deployment_version` and `versioning_behavior` instead. + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + WorkerVersion *v1.WorkerVersionStamp + // Data the SDK wishes to record for itself, but server need not interpret, and does not + // directly impact workflow state. + SdkMetadata *v16.WorkflowTaskCompletedMetadata + // Local usage data sent during workflow task completion and recorded here for posterity + MeteringMetadata *v1.MeteringMetadata + // The deployment that completed this task. May or may not be set for unversioned workers, + // depending on whether a value is sent by the SDK. This value updates workflow execution's + // `versioning_info.deployment`. + // Deprecated. Replaced with `deployment_version`. + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + Deployment *v15.Deployment + // Versioning behavior sent by the worker that completed this task for this particular workflow + // execution. UNSPECIFIED means the task was completed by an unversioned worker. This value + // updates workflow execution's `versioning_info.behavior`. + VersioningBehavior v12.VersioningBehavior + // The Worker Deployment Version that completed this task. Must be set if `versioning_behavior` + // is set. This value updates workflow execution's `versioning_info.version`. + // Experimental. Worker Deployments are experimental and might significantly change in the future. + // Deprecated. Replaced with `deployment_version`. + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + WorkerDeploymentVersion string + // The name of Worker Deployment that completed this task. Must be set if `versioning_behavior` + // is set. This value updates workflow execution's `worker_deployment_name`. + // Experimental. Worker Deployments are experimental and might significantly change in the future. + WorkerDeploymentName string + // The Worker Deployment Version that completed this task. Must be set if `versioning_behavior` + // is set. This value updates workflow execution's `versioning_info.deployment_version`. + // Experimental. Worker Deployments are experimental and might significantly change in the future. + DeploymentVersion *v15.WorkerDeploymentVersion +} + +func (b0 WorkflowTaskCompletedEventAttributes_builder) Build() *WorkflowTaskCompletedEventAttributes { + m0 := &WorkflowTaskCompletedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.ScheduledEventId = b.ScheduledEventId + x.StartedEventId = b.StartedEventId + x.Identity = b.Identity + x.BinaryChecksum = b.BinaryChecksum + x.WorkerVersion = b.WorkerVersion + x.SdkMetadata = b.SdkMetadata + x.MeteringMetadata = b.MeteringMetadata + x.Deployment = b.Deployment + x.VersioningBehavior = b.VersioningBehavior + x.WorkerDeploymentVersion = b.WorkerDeploymentVersion + x.WorkerDeploymentName = b.WorkerDeploymentName + x.DeploymentVersion = b.DeploymentVersion + return m0 +} + +type WorkflowTaskTimedOutEventAttributes struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // The id of the `WORKFLOW_TASK_SCHEDULED` event this task corresponds to + ScheduledEventId int64 `protobuf:"varint,1,opt,name=scheduled_event_id,json=scheduledEventId,proto3" json:"scheduled_event_id,omitempty"` + // The id of the `WORKFLOW_TASK_STARTED` event this task corresponds to + StartedEventId int64 `protobuf:"varint,2,opt,name=started_event_id,json=startedEventId,proto3" json:"started_event_id,omitempty"` + TimeoutType v12.TimeoutType `protobuf:"varint,3,opt,name=timeout_type,json=timeoutType,proto3,enum=temporal.api.enums.v1.TimeoutType" json:"timeout_type,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowTaskTimedOutEventAttributes) Reset() { + *x = WorkflowTaskTimedOutEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkflowTaskTimedOutEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowTaskTimedOutEventAttributes) ProtoMessage() {} + +func (x *WorkflowTaskTimedOutEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[8] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkflowTaskTimedOutEventAttributes) GetScheduledEventId() int64 { + if x != nil { + return x.ScheduledEventId + } + return 0 +} + +func (x *WorkflowTaskTimedOutEventAttributes) GetStartedEventId() int64 { + if x != nil { + return x.StartedEventId + } + return 0 +} + +func (x *WorkflowTaskTimedOutEventAttributes) GetTimeoutType() v12.TimeoutType { + if x != nil { + return x.TimeoutType + } + return v12.TimeoutType(0) +} + +func (x *WorkflowTaskTimedOutEventAttributes) SetScheduledEventId(v int64) { + x.ScheduledEventId = v +} + +func (x *WorkflowTaskTimedOutEventAttributes) SetStartedEventId(v int64) { + x.StartedEventId = v +} + +func (x *WorkflowTaskTimedOutEventAttributes) SetTimeoutType(v v12.TimeoutType) { + x.TimeoutType = v +} + +type WorkflowTaskTimedOutEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The id of the `WORKFLOW_TASK_SCHEDULED` event this task corresponds to + ScheduledEventId int64 + // The id of the `WORKFLOW_TASK_STARTED` event this task corresponds to + StartedEventId int64 + TimeoutType v12.TimeoutType +} + +func (b0 WorkflowTaskTimedOutEventAttributes_builder) Build() *WorkflowTaskTimedOutEventAttributes { + m0 := &WorkflowTaskTimedOutEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.ScheduledEventId = b.ScheduledEventId + x.StartedEventId = b.StartedEventId + x.TimeoutType = b.TimeoutType + return m0 +} + +type WorkflowTaskFailedEventAttributes struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // The id of the `WORKFLOW_TASK_SCHEDULED` event this task corresponds to + ScheduledEventId int64 `protobuf:"varint,1,opt,name=scheduled_event_id,json=scheduledEventId,proto3" json:"scheduled_event_id,omitempty"` + // The id of the `WORKFLOW_TASK_STARTED` event this task corresponds to + StartedEventId int64 `protobuf:"varint,2,opt,name=started_event_id,json=startedEventId,proto3" json:"started_event_id,omitempty"` + Cause v12.WorkflowTaskFailedCause `protobuf:"varint,3,opt,name=cause,proto3,enum=temporal.api.enums.v1.WorkflowTaskFailedCause" json:"cause,omitempty"` + // The failure details + Failure *v13.Failure `protobuf:"bytes,4,opt,name=failure,proto3" json:"failure,omitempty"` + // If a worker explicitly failed this task, this field contains the worker's identity. + // When the server generates the failure internally this field is set as 'history-service'. + Identity string `protobuf:"bytes,5,opt,name=identity,proto3" json:"identity,omitempty"` + // The original run id of the workflow. For reset workflow. + BaseRunId string `protobuf:"bytes,6,opt,name=base_run_id,json=baseRunId,proto3" json:"base_run_id,omitempty"` + // If the workflow is being reset, the new run id. + NewRunId string `protobuf:"bytes,7,opt,name=new_run_id,json=newRunId,proto3" json:"new_run_id,omitempty"` + // Version of the event where the history branch was forked. Used by multi-cluster replication + // during resets to identify the correct history branch. + ForkEventVersion int64 `protobuf:"varint,8,opt,name=fork_event_version,json=forkEventVersion,proto3" json:"fork_event_version,omitempty"` + // Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] + // If a worker explicitly failed this task, its binary id + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + BinaryChecksum string `protobuf:"bytes,9,opt,name=binary_checksum,json=binaryChecksum,proto3" json:"binary_checksum,omitempty"` + // Version info of the worker who processed this workflow task. If present, the `build_id` field + // within is also used as `binary_checksum`, which may be omitted in that case (it may also be + // populated to preserve compatibility). + // Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + WorkerVersion *v1.WorkerVersionStamp `protobuf:"bytes,10,opt,name=worker_version,json=workerVersion,proto3" json:"worker_version,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowTaskFailedEventAttributes) Reset() { + *x = WorkflowTaskFailedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkflowTaskFailedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowTaskFailedEventAttributes) ProtoMessage() {} + +func (x *WorkflowTaskFailedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[9] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkflowTaskFailedEventAttributes) GetScheduledEventId() int64 { + if x != nil { + return x.ScheduledEventId + } + return 0 +} + +func (x *WorkflowTaskFailedEventAttributes) GetStartedEventId() int64 { + if x != nil { + return x.StartedEventId + } + return 0 +} + +func (x *WorkflowTaskFailedEventAttributes) GetCause() v12.WorkflowTaskFailedCause { + if x != nil { + return x.Cause + } + return v12.WorkflowTaskFailedCause(0) +} + +func (x *WorkflowTaskFailedEventAttributes) GetFailure() *v13.Failure { + if x != nil { + return x.Failure + } + return nil +} + +func (x *WorkflowTaskFailedEventAttributes) GetIdentity() string { + if x != nil { + return x.Identity + } + return "" +} + +func (x *WorkflowTaskFailedEventAttributes) GetBaseRunId() string { + if x != nil { + return x.BaseRunId + } + return "" +} + +func (x *WorkflowTaskFailedEventAttributes) GetNewRunId() string { + if x != nil { + return x.NewRunId + } + return "" +} + +func (x *WorkflowTaskFailedEventAttributes) GetForkEventVersion() int64 { + if x != nil { + return x.ForkEventVersion + } + return 0 +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowTaskFailedEventAttributes) GetBinaryChecksum() string { + if x != nil { + return x.BinaryChecksum + } + return "" +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowTaskFailedEventAttributes) GetWorkerVersion() *v1.WorkerVersionStamp { + if x != nil { + return x.WorkerVersion + } + return nil +} + +func (x *WorkflowTaskFailedEventAttributes) SetScheduledEventId(v int64) { + x.ScheduledEventId = v +} + +func (x *WorkflowTaskFailedEventAttributes) SetStartedEventId(v int64) { + x.StartedEventId = v +} + +func (x *WorkflowTaskFailedEventAttributes) SetCause(v v12.WorkflowTaskFailedCause) { + x.Cause = v +} + +func (x *WorkflowTaskFailedEventAttributes) SetFailure(v *v13.Failure) { + x.Failure = v +} + +func (x *WorkflowTaskFailedEventAttributes) SetIdentity(v string) { + x.Identity = v +} + +func (x *WorkflowTaskFailedEventAttributes) SetBaseRunId(v string) { + x.BaseRunId = v +} + +func (x *WorkflowTaskFailedEventAttributes) SetNewRunId(v string) { + x.NewRunId = v +} + +func (x *WorkflowTaskFailedEventAttributes) SetForkEventVersion(v int64) { + x.ForkEventVersion = v +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowTaskFailedEventAttributes) SetBinaryChecksum(v string) { + x.BinaryChecksum = v +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowTaskFailedEventAttributes) SetWorkerVersion(v *v1.WorkerVersionStamp) { + x.WorkerVersion = v +} + +func (x *WorkflowTaskFailedEventAttributes) HasFailure() bool { + if x == nil { + return false + } + return x.Failure != nil +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowTaskFailedEventAttributes) HasWorkerVersion() bool { + if x == nil { + return false + } + return x.WorkerVersion != nil +} + +func (x *WorkflowTaskFailedEventAttributes) ClearFailure() { + x.Failure = nil +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowTaskFailedEventAttributes) ClearWorkerVersion() { + x.WorkerVersion = nil +} + +type WorkflowTaskFailedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The id of the `WORKFLOW_TASK_SCHEDULED` event this task corresponds to + ScheduledEventId int64 + // The id of the `WORKFLOW_TASK_STARTED` event this task corresponds to + StartedEventId int64 + Cause v12.WorkflowTaskFailedCause + // The failure details + Failure *v13.Failure + // If a worker explicitly failed this task, this field contains the worker's identity. + // When the server generates the failure internally this field is set as 'history-service'. + Identity string + // The original run id of the workflow. For reset workflow. + BaseRunId string + // If the workflow is being reset, the new run id. + NewRunId string + // Version of the event where the history branch was forked. Used by multi-cluster replication + // during resets to identify the correct history branch. + ForkEventVersion int64 + // Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] + // If a worker explicitly failed this task, its binary id + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + BinaryChecksum string + // Version info of the worker who processed this workflow task. If present, the `build_id` field + // within is also used as `binary_checksum`, which may be omitted in that case (it may also be + // populated to preserve compatibility). + // Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + WorkerVersion *v1.WorkerVersionStamp +} + +func (b0 WorkflowTaskFailedEventAttributes_builder) Build() *WorkflowTaskFailedEventAttributes { + m0 := &WorkflowTaskFailedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.ScheduledEventId = b.ScheduledEventId + x.StartedEventId = b.StartedEventId + x.Cause = b.Cause + x.Failure = b.Failure + x.Identity = b.Identity + x.BaseRunId = b.BaseRunId + x.NewRunId = b.NewRunId + x.ForkEventVersion = b.ForkEventVersion + x.BinaryChecksum = b.BinaryChecksum + x.WorkerVersion = b.WorkerVersion + return m0 +} + +type ActivityTaskScheduledEventAttributes struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // The worker/user assigned identifier for the activity + ActivityId string `protobuf:"bytes,1,opt,name=activity_id,json=activityId,proto3" json:"activity_id,omitempty"` + ActivityType *v1.ActivityType `protobuf:"bytes,2,opt,name=activity_type,json=activityType,proto3" json:"activity_type,omitempty"` + TaskQueue *v11.TaskQueue `protobuf:"bytes,4,opt,name=task_queue,json=taskQueue,proto3" json:"task_queue,omitempty"` + Header *v1.Header `protobuf:"bytes,5,opt,name=header,proto3" json:"header,omitempty"` + Input *v1.Payloads `protobuf:"bytes,6,opt,name=input,proto3" json:"input,omitempty"` + // Indicates how long the caller is willing to wait for an activity completion. Limits how long + // retries will be attempted. Either this or `start_to_close_timeout` must be specified. + // + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + ScheduleToCloseTimeout *durationpb.Duration `protobuf:"bytes,7,opt,name=schedule_to_close_timeout,json=scheduleToCloseTimeout,proto3" json:"schedule_to_close_timeout,omitempty"` + // Limits time an activity task can stay in a task queue before a worker picks it up. This + // timeout is always non retryable, as all a retry would achieve is to put it back into the same + // queue. Defaults to `schedule_to_close_timeout` or workflow execution timeout if not + // specified. + // + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + ScheduleToStartTimeout *durationpb.Duration `protobuf:"bytes,8,opt,name=schedule_to_start_timeout,json=scheduleToStartTimeout,proto3" json:"schedule_to_start_timeout,omitempty"` + // Maximum time an activity is allowed to execute after being picked up by a worker. This + // timeout is always retryable. Either this or `schedule_to_close_timeout` must be + // specified. + // + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + StartToCloseTimeout *durationpb.Duration `protobuf:"bytes,9,opt,name=start_to_close_timeout,json=startToCloseTimeout,proto3" json:"start_to_close_timeout,omitempty"` + // Maximum permitted time between successful worker heartbeats. + HeartbeatTimeout *durationpb.Duration `protobuf:"bytes,10,opt,name=heartbeat_timeout,json=heartbeatTimeout,proto3" json:"heartbeat_timeout,omitempty"` + // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + WorkflowTaskCompletedEventId int64 `protobuf:"varint,11,opt,name=workflow_task_completed_event_id,json=workflowTaskCompletedEventId,proto3" json:"workflow_task_completed_event_id,omitempty"` + // Activities are assigned a default retry policy controlled by the service's dynamic + // configuration. Retries will happen up to `schedule_to_close_timeout`. To disable retries set + // retry_policy.maximum_attempts to 1. + RetryPolicy *v1.RetryPolicy `protobuf:"bytes,12,opt,name=retry_policy,json=retryPolicy,proto3" json:"retry_policy,omitempty"` + // If this is set, the activity would be assigned to the Build ID of the workflow. Otherwise, + // Assignment rules of the activity's Task Queue will be used to determine the Build ID. + // Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + UseWorkflowBuildId bool `protobuf:"varint,13,opt,name=use_workflow_build_id,json=useWorkflowBuildId,proto3" json:"use_workflow_build_id,omitempty"` + // Priority metadata. If this message is not present, or any fields are not + // present, they inherit the values from the workflow. + Priority *v1.Priority `protobuf:"bytes,14,opt,name=priority,proto3" json:"priority,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ActivityTaskScheduledEventAttributes) Reset() { + *x = ActivityTaskScheduledEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ActivityTaskScheduledEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ActivityTaskScheduledEventAttributes) ProtoMessage() {} + +func (x *ActivityTaskScheduledEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[10] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ActivityTaskScheduledEventAttributes) GetActivityId() string { + if x != nil { + return x.ActivityId + } + return "" +} + +func (x *ActivityTaskScheduledEventAttributes) GetActivityType() *v1.ActivityType { + if x != nil { + return x.ActivityType + } + return nil +} + +func (x *ActivityTaskScheduledEventAttributes) GetTaskQueue() *v11.TaskQueue { + if x != nil { + return x.TaskQueue + } + return nil +} + +func (x *ActivityTaskScheduledEventAttributes) GetHeader() *v1.Header { + if x != nil { + return x.Header + } + return nil +} + +func (x *ActivityTaskScheduledEventAttributes) GetInput() *v1.Payloads { + if x != nil { + return x.Input + } + return nil +} + +func (x *ActivityTaskScheduledEventAttributes) GetScheduleToCloseTimeout() *durationpb.Duration { + if x != nil { + return x.ScheduleToCloseTimeout + } + return nil +} + +func (x *ActivityTaskScheduledEventAttributes) GetScheduleToStartTimeout() *durationpb.Duration { + if x != nil { + return x.ScheduleToStartTimeout + } + return nil +} + +func (x *ActivityTaskScheduledEventAttributes) GetStartToCloseTimeout() *durationpb.Duration { + if x != nil { + return x.StartToCloseTimeout + } + return nil +} + +func (x *ActivityTaskScheduledEventAttributes) GetHeartbeatTimeout() *durationpb.Duration { + if x != nil { + return x.HeartbeatTimeout + } + return nil +} + +func (x *ActivityTaskScheduledEventAttributes) GetWorkflowTaskCompletedEventId() int64 { + if x != nil { + return x.WorkflowTaskCompletedEventId + } + return 0 +} + +func (x *ActivityTaskScheduledEventAttributes) GetRetryPolicy() *v1.RetryPolicy { + if x != nil { + return x.RetryPolicy + } + return nil +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *ActivityTaskScheduledEventAttributes) GetUseWorkflowBuildId() bool { + if x != nil { + return x.UseWorkflowBuildId + } + return false +} + +func (x *ActivityTaskScheduledEventAttributes) GetPriority() *v1.Priority { + if x != nil { + return x.Priority + } + return nil +} + +func (x *ActivityTaskScheduledEventAttributes) SetActivityId(v string) { + x.ActivityId = v +} + +func (x *ActivityTaskScheduledEventAttributes) SetActivityType(v *v1.ActivityType) { + x.ActivityType = v +} + +func (x *ActivityTaskScheduledEventAttributes) SetTaskQueue(v *v11.TaskQueue) { + x.TaskQueue = v +} + +func (x *ActivityTaskScheduledEventAttributes) SetHeader(v *v1.Header) { + x.Header = v +} + +func (x *ActivityTaskScheduledEventAttributes) SetInput(v *v1.Payloads) { + x.Input = v +} + +func (x *ActivityTaskScheduledEventAttributes) SetScheduleToCloseTimeout(v *durationpb.Duration) { + x.ScheduleToCloseTimeout = v +} + +func (x *ActivityTaskScheduledEventAttributes) SetScheduleToStartTimeout(v *durationpb.Duration) { + x.ScheduleToStartTimeout = v +} + +func (x *ActivityTaskScheduledEventAttributes) SetStartToCloseTimeout(v *durationpb.Duration) { + x.StartToCloseTimeout = v +} + +func (x *ActivityTaskScheduledEventAttributes) SetHeartbeatTimeout(v *durationpb.Duration) { + x.HeartbeatTimeout = v +} + +func (x *ActivityTaskScheduledEventAttributes) SetWorkflowTaskCompletedEventId(v int64) { + x.WorkflowTaskCompletedEventId = v +} + +func (x *ActivityTaskScheduledEventAttributes) SetRetryPolicy(v *v1.RetryPolicy) { + x.RetryPolicy = v +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *ActivityTaskScheduledEventAttributes) SetUseWorkflowBuildId(v bool) { + x.UseWorkflowBuildId = v +} + +func (x *ActivityTaskScheduledEventAttributes) SetPriority(v *v1.Priority) { + x.Priority = v +} + +func (x *ActivityTaskScheduledEventAttributes) HasActivityType() bool { + if x == nil { + return false + } + return x.ActivityType != nil +} + +func (x *ActivityTaskScheduledEventAttributes) HasTaskQueue() bool { + if x == nil { + return false + } + return x.TaskQueue != nil +} + +func (x *ActivityTaskScheduledEventAttributes) HasHeader() bool { + if x == nil { + return false + } + return x.Header != nil +} + +func (x *ActivityTaskScheduledEventAttributes) HasInput() bool { + if x == nil { + return false + } + return x.Input != nil +} + +func (x *ActivityTaskScheduledEventAttributes) HasScheduleToCloseTimeout() bool { + if x == nil { + return false + } + return x.ScheduleToCloseTimeout != nil +} + +func (x *ActivityTaskScheduledEventAttributes) HasScheduleToStartTimeout() bool { + if x == nil { + return false + } + return x.ScheduleToStartTimeout != nil +} + +func (x *ActivityTaskScheduledEventAttributes) HasStartToCloseTimeout() bool { + if x == nil { + return false + } + return x.StartToCloseTimeout != nil +} + +func (x *ActivityTaskScheduledEventAttributes) HasHeartbeatTimeout() bool { + if x == nil { + return false + } + return x.HeartbeatTimeout != nil +} + +func (x *ActivityTaskScheduledEventAttributes) HasRetryPolicy() bool { + if x == nil { + return false + } + return x.RetryPolicy != nil +} + +func (x *ActivityTaskScheduledEventAttributes) HasPriority() bool { + if x == nil { + return false + } + return x.Priority != nil +} + +func (x *ActivityTaskScheduledEventAttributes) ClearActivityType() { + x.ActivityType = nil +} + +func (x *ActivityTaskScheduledEventAttributes) ClearTaskQueue() { + x.TaskQueue = nil +} + +func (x *ActivityTaskScheduledEventAttributes) ClearHeader() { + x.Header = nil +} + +func (x *ActivityTaskScheduledEventAttributes) ClearInput() { + x.Input = nil +} + +func (x *ActivityTaskScheduledEventAttributes) ClearScheduleToCloseTimeout() { + x.ScheduleToCloseTimeout = nil +} + +func (x *ActivityTaskScheduledEventAttributes) ClearScheduleToStartTimeout() { + x.ScheduleToStartTimeout = nil +} + +func (x *ActivityTaskScheduledEventAttributes) ClearStartToCloseTimeout() { + x.StartToCloseTimeout = nil +} + +func (x *ActivityTaskScheduledEventAttributes) ClearHeartbeatTimeout() { + x.HeartbeatTimeout = nil +} + +func (x *ActivityTaskScheduledEventAttributes) ClearRetryPolicy() { + x.RetryPolicy = nil +} + +func (x *ActivityTaskScheduledEventAttributes) ClearPriority() { + x.Priority = nil +} + +type ActivityTaskScheduledEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The worker/user assigned identifier for the activity + ActivityId string + ActivityType *v1.ActivityType + TaskQueue *v11.TaskQueue + Header *v1.Header + Input *v1.Payloads + // Indicates how long the caller is willing to wait for an activity completion. Limits how long + // retries will be attempted. Either this or `start_to_close_timeout` must be specified. + // + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + ScheduleToCloseTimeout *durationpb.Duration + // Limits time an activity task can stay in a task queue before a worker picks it up. This + // timeout is always non retryable, as all a retry would achieve is to put it back into the same + // queue. Defaults to `schedule_to_close_timeout` or workflow execution timeout if not + // specified. + // + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + ScheduleToStartTimeout *durationpb.Duration + // Maximum time an activity is allowed to execute after being picked up by a worker. This + // timeout is always retryable. Either this or `schedule_to_close_timeout` must be + // specified. + // + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + StartToCloseTimeout *durationpb.Duration + // Maximum permitted time between successful worker heartbeats. + HeartbeatTimeout *durationpb.Duration + // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + WorkflowTaskCompletedEventId int64 + // Activities are assigned a default retry policy controlled by the service's dynamic + // configuration. Retries will happen up to `schedule_to_close_timeout`. To disable retries set + // retry_policy.maximum_attempts to 1. + RetryPolicy *v1.RetryPolicy + // If this is set, the activity would be assigned to the Build ID of the workflow. Otherwise, + // Assignment rules of the activity's Task Queue will be used to determine the Build ID. + // Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + UseWorkflowBuildId bool + // Priority metadata. If this message is not present, or any fields are not + // present, they inherit the values from the workflow. + Priority *v1.Priority +} + +func (b0 ActivityTaskScheduledEventAttributes_builder) Build() *ActivityTaskScheduledEventAttributes { + m0 := &ActivityTaskScheduledEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.ActivityId = b.ActivityId + x.ActivityType = b.ActivityType + x.TaskQueue = b.TaskQueue + x.Header = b.Header + x.Input = b.Input + x.ScheduleToCloseTimeout = b.ScheduleToCloseTimeout + x.ScheduleToStartTimeout = b.ScheduleToStartTimeout + x.StartToCloseTimeout = b.StartToCloseTimeout + x.HeartbeatTimeout = b.HeartbeatTimeout + x.WorkflowTaskCompletedEventId = b.WorkflowTaskCompletedEventId + x.RetryPolicy = b.RetryPolicy + x.UseWorkflowBuildId = b.UseWorkflowBuildId + x.Priority = b.Priority + return m0 +} + +type ActivityTaskStartedEventAttributes struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // The id of the `ACTIVITY_TASK_SCHEDULED` event this task corresponds to + ScheduledEventId int64 `protobuf:"varint,1,opt,name=scheduled_event_id,json=scheduledEventId,proto3" json:"scheduled_event_id,omitempty"` + // id of the worker that picked up this task + Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` + // This field is populated from the RecordActivityTaskStartedRequest. Matching service would + // set the request_id on the RecordActivityTaskStartedRequest to a new UUID. This is useful + // in case a RecordActivityTaskStarted call succeed but matching doesn't get that response, + // so matching could retry and history service would return success if the request_id matches. + // In that case, matching will continue to deliver the task to worker. Without this field, history + // service would return AlreadyStarted error, and matching would drop the task. + RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + // Starting at 1, the number of times this task has been attempted + Attempt int32 `protobuf:"varint,4,opt,name=attempt,proto3" json:"attempt,omitempty"` + // Will be set to the most recent failure details, if this task has previously failed and then + // been retried. + LastFailure *v13.Failure `protobuf:"bytes,5,opt,name=last_failure,json=lastFailure,proto3" json:"last_failure,omitempty"` + // Version info of the worker to whom this task was dispatched. + // Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + WorkerVersion *v1.WorkerVersionStamp `protobuf:"bytes,6,opt,name=worker_version,json=workerVersion,proto3" json:"worker_version,omitempty"` + // Used by server internally to properly reapply build ID redirects to an execution + // when rebuilding it from events. + // Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + BuildIdRedirectCounter int64 `protobuf:"varint,7,opt,name=build_id_redirect_counter,json=buildIdRedirectCounter,proto3" json:"build_id_redirect_counter,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ActivityTaskStartedEventAttributes) Reset() { + *x = ActivityTaskStartedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ActivityTaskStartedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ActivityTaskStartedEventAttributes) ProtoMessage() {} + +func (x *ActivityTaskStartedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[11] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ActivityTaskStartedEventAttributes) GetScheduledEventId() int64 { + if x != nil { + return x.ScheduledEventId + } + return 0 +} + +func (x *ActivityTaskStartedEventAttributes) GetIdentity() string { + if x != nil { + return x.Identity + } + return "" +} + +func (x *ActivityTaskStartedEventAttributes) GetRequestId() string { + if x != nil { + return x.RequestId + } + return "" +} + +func (x *ActivityTaskStartedEventAttributes) GetAttempt() int32 { + if x != nil { + return x.Attempt + } + return 0 +} + +func (x *ActivityTaskStartedEventAttributes) GetLastFailure() *v13.Failure { + if x != nil { + return x.LastFailure + } + return nil +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *ActivityTaskStartedEventAttributes) GetWorkerVersion() *v1.WorkerVersionStamp { + if x != nil { + return x.WorkerVersion + } + return nil +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *ActivityTaskStartedEventAttributes) GetBuildIdRedirectCounter() int64 { + if x != nil { + return x.BuildIdRedirectCounter + } + return 0 +} + +func (x *ActivityTaskStartedEventAttributes) SetScheduledEventId(v int64) { + x.ScheduledEventId = v +} + +func (x *ActivityTaskStartedEventAttributes) SetIdentity(v string) { + x.Identity = v +} + +func (x *ActivityTaskStartedEventAttributes) SetRequestId(v string) { + x.RequestId = v +} + +func (x *ActivityTaskStartedEventAttributes) SetAttempt(v int32) { + x.Attempt = v +} + +func (x *ActivityTaskStartedEventAttributes) SetLastFailure(v *v13.Failure) { + x.LastFailure = v +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *ActivityTaskStartedEventAttributes) SetWorkerVersion(v *v1.WorkerVersionStamp) { + x.WorkerVersion = v +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *ActivityTaskStartedEventAttributes) SetBuildIdRedirectCounter(v int64) { + x.BuildIdRedirectCounter = v +} + +func (x *ActivityTaskStartedEventAttributes) HasLastFailure() bool { + if x == nil { + return false + } + return x.LastFailure != nil +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *ActivityTaskStartedEventAttributes) HasWorkerVersion() bool { + if x == nil { + return false + } + return x.WorkerVersion != nil +} + +func (x *ActivityTaskStartedEventAttributes) ClearLastFailure() { + x.LastFailure = nil +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *ActivityTaskStartedEventAttributes) ClearWorkerVersion() { + x.WorkerVersion = nil +} + +type ActivityTaskStartedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The id of the `ACTIVITY_TASK_SCHEDULED` event this task corresponds to + ScheduledEventId int64 + // id of the worker that picked up this task + Identity string + // This field is populated from the RecordActivityTaskStartedRequest. Matching service would + // set the request_id on the RecordActivityTaskStartedRequest to a new UUID. This is useful + // in case a RecordActivityTaskStarted call succeed but matching doesn't get that response, + // so matching could retry and history service would return success if the request_id matches. + // In that case, matching will continue to deliver the task to worker. Without this field, history + // service would return AlreadyStarted error, and matching would drop the task. + RequestId string + // Starting at 1, the number of times this task has been attempted + Attempt int32 + // Will be set to the most recent failure details, if this task has previously failed and then + // been retried. + LastFailure *v13.Failure + // Version info of the worker to whom this task was dispatched. + // Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + WorkerVersion *v1.WorkerVersionStamp + // Used by server internally to properly reapply build ID redirects to an execution + // when rebuilding it from events. + // Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + BuildIdRedirectCounter int64 +} + +func (b0 ActivityTaskStartedEventAttributes_builder) Build() *ActivityTaskStartedEventAttributes { + m0 := &ActivityTaskStartedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.ScheduledEventId = b.ScheduledEventId + x.Identity = b.Identity + x.RequestId = b.RequestId + x.Attempt = b.Attempt + x.LastFailure = b.LastFailure + x.WorkerVersion = b.WorkerVersion + x.BuildIdRedirectCounter = b.BuildIdRedirectCounter + return m0 +} + +type ActivityTaskCompletedEventAttributes struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // Serialized results of the activity. IE: The return value of the activity function + Result *v1.Payloads `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` + // The id of the `ACTIVITY_TASK_SCHEDULED` event this completion corresponds to + ScheduledEventId int64 `protobuf:"varint,2,opt,name=scheduled_event_id,json=scheduledEventId,proto3" json:"scheduled_event_id,omitempty"` + // The id of the `ACTIVITY_TASK_STARTED` event this completion corresponds to + StartedEventId int64 `protobuf:"varint,3,opt,name=started_event_id,json=startedEventId,proto3" json:"started_event_id,omitempty"` + // id of the worker that completed this task + Identity string `protobuf:"bytes,4,opt,name=identity,proto3" json:"identity,omitempty"` + // Version info of the worker who processed this workflow task. + // Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + WorkerVersion *v1.WorkerVersionStamp `protobuf:"bytes,5,opt,name=worker_version,json=workerVersion,proto3" json:"worker_version,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ActivityTaskCompletedEventAttributes) Reset() { + *x = ActivityTaskCompletedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ActivityTaskCompletedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ActivityTaskCompletedEventAttributes) ProtoMessage() {} + +func (x *ActivityTaskCompletedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[12] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ActivityTaskCompletedEventAttributes) GetResult() *v1.Payloads { + if x != nil { + return x.Result + } + return nil +} + +func (x *ActivityTaskCompletedEventAttributes) GetScheduledEventId() int64 { + if x != nil { + return x.ScheduledEventId + } + return 0 +} + +func (x *ActivityTaskCompletedEventAttributes) GetStartedEventId() int64 { + if x != nil { + return x.StartedEventId + } + return 0 +} + +func (x *ActivityTaskCompletedEventAttributes) GetIdentity() string { + if x != nil { + return x.Identity + } + return "" +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *ActivityTaskCompletedEventAttributes) GetWorkerVersion() *v1.WorkerVersionStamp { + if x != nil { + return x.WorkerVersion + } + return nil +} + +func (x *ActivityTaskCompletedEventAttributes) SetResult(v *v1.Payloads) { + x.Result = v +} + +func (x *ActivityTaskCompletedEventAttributes) SetScheduledEventId(v int64) { + x.ScheduledEventId = v +} + +func (x *ActivityTaskCompletedEventAttributes) SetStartedEventId(v int64) { + x.StartedEventId = v +} + +func (x *ActivityTaskCompletedEventAttributes) SetIdentity(v string) { + x.Identity = v +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *ActivityTaskCompletedEventAttributes) SetWorkerVersion(v *v1.WorkerVersionStamp) { + x.WorkerVersion = v +} + +func (x *ActivityTaskCompletedEventAttributes) HasResult() bool { + if x == nil { + return false + } + return x.Result != nil +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *ActivityTaskCompletedEventAttributes) HasWorkerVersion() bool { + if x == nil { + return false + } + return x.WorkerVersion != nil +} + +func (x *ActivityTaskCompletedEventAttributes) ClearResult() { + x.Result = nil +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *ActivityTaskCompletedEventAttributes) ClearWorkerVersion() { + x.WorkerVersion = nil +} + +type ActivityTaskCompletedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Serialized results of the activity. IE: The return value of the activity function + Result *v1.Payloads + // The id of the `ACTIVITY_TASK_SCHEDULED` event this completion corresponds to + ScheduledEventId int64 + // The id of the `ACTIVITY_TASK_STARTED` event this completion corresponds to + StartedEventId int64 + // id of the worker that completed this task + Identity string + // Version info of the worker who processed this workflow task. + // Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + WorkerVersion *v1.WorkerVersionStamp +} + +func (b0 ActivityTaskCompletedEventAttributes_builder) Build() *ActivityTaskCompletedEventAttributes { + m0 := &ActivityTaskCompletedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.Result = b.Result + x.ScheduledEventId = b.ScheduledEventId + x.StartedEventId = b.StartedEventId + x.Identity = b.Identity + x.WorkerVersion = b.WorkerVersion + return m0 +} + +type ActivityTaskFailedEventAttributes struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // Failure details + Failure *v13.Failure `protobuf:"bytes,1,opt,name=failure,proto3" json:"failure,omitempty"` + // The id of the `ACTIVITY_TASK_SCHEDULED` event this failure corresponds to + ScheduledEventId int64 `protobuf:"varint,2,opt,name=scheduled_event_id,json=scheduledEventId,proto3" json:"scheduled_event_id,omitempty"` + // The id of the `ACTIVITY_TASK_STARTED` event this failure corresponds to + StartedEventId int64 `protobuf:"varint,3,opt,name=started_event_id,json=startedEventId,proto3" json:"started_event_id,omitempty"` + // id of the worker that failed this task + Identity string `protobuf:"bytes,4,opt,name=identity,proto3" json:"identity,omitempty"` + RetryState v12.RetryState `protobuf:"varint,5,opt,name=retry_state,json=retryState,proto3,enum=temporal.api.enums.v1.RetryState" json:"retry_state,omitempty"` + // Version info of the worker who processed this workflow task. + // Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + WorkerVersion *v1.WorkerVersionStamp `protobuf:"bytes,6,opt,name=worker_version,json=workerVersion,proto3" json:"worker_version,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ActivityTaskFailedEventAttributes) Reset() { + *x = ActivityTaskFailedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ActivityTaskFailedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ActivityTaskFailedEventAttributes) ProtoMessage() {} + +func (x *ActivityTaskFailedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[13] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ActivityTaskFailedEventAttributes) GetFailure() *v13.Failure { + if x != nil { + return x.Failure + } + return nil +} + +func (x *ActivityTaskFailedEventAttributes) GetScheduledEventId() int64 { + if x != nil { + return x.ScheduledEventId + } + return 0 +} + +func (x *ActivityTaskFailedEventAttributes) GetStartedEventId() int64 { + if x != nil { + return x.StartedEventId + } + return 0 +} + +func (x *ActivityTaskFailedEventAttributes) GetIdentity() string { + if x != nil { + return x.Identity + } + return "" +} + +func (x *ActivityTaskFailedEventAttributes) GetRetryState() v12.RetryState { + if x != nil { + return x.RetryState + } + return v12.RetryState(0) +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *ActivityTaskFailedEventAttributes) GetWorkerVersion() *v1.WorkerVersionStamp { + if x != nil { + return x.WorkerVersion + } + return nil +} + +func (x *ActivityTaskFailedEventAttributes) SetFailure(v *v13.Failure) { + x.Failure = v +} + +func (x *ActivityTaskFailedEventAttributes) SetScheduledEventId(v int64) { + x.ScheduledEventId = v +} + +func (x *ActivityTaskFailedEventAttributes) SetStartedEventId(v int64) { + x.StartedEventId = v +} + +func (x *ActivityTaskFailedEventAttributes) SetIdentity(v string) { + x.Identity = v +} + +func (x *ActivityTaskFailedEventAttributes) SetRetryState(v v12.RetryState) { + x.RetryState = v +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *ActivityTaskFailedEventAttributes) SetWorkerVersion(v *v1.WorkerVersionStamp) { + x.WorkerVersion = v +} + +func (x *ActivityTaskFailedEventAttributes) HasFailure() bool { + if x == nil { + return false + } + return x.Failure != nil +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *ActivityTaskFailedEventAttributes) HasWorkerVersion() bool { + if x == nil { + return false + } + return x.WorkerVersion != nil +} + +func (x *ActivityTaskFailedEventAttributes) ClearFailure() { + x.Failure = nil +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *ActivityTaskFailedEventAttributes) ClearWorkerVersion() { + x.WorkerVersion = nil +} + +type ActivityTaskFailedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Failure details + Failure *v13.Failure + // The id of the `ACTIVITY_TASK_SCHEDULED` event this failure corresponds to + ScheduledEventId int64 + // The id of the `ACTIVITY_TASK_STARTED` event this failure corresponds to + StartedEventId int64 + // id of the worker that failed this task + Identity string + RetryState v12.RetryState + // Version info of the worker who processed this workflow task. + // Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + WorkerVersion *v1.WorkerVersionStamp +} + +func (b0 ActivityTaskFailedEventAttributes_builder) Build() *ActivityTaskFailedEventAttributes { + m0 := &ActivityTaskFailedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.Failure = b.Failure + x.ScheduledEventId = b.ScheduledEventId + x.StartedEventId = b.StartedEventId + x.Identity = b.Identity + x.RetryState = b.RetryState + x.WorkerVersion = b.WorkerVersion + return m0 +} + +type ActivityTaskTimedOutEventAttributes struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // If this activity had failed, was retried, and then timed out, that failure is stored as the + // `cause` in here. + Failure *v13.Failure `protobuf:"bytes,1,opt,name=failure,proto3" json:"failure,omitempty"` + // The id of the `ACTIVITY_TASK_SCHEDULED` event this timeout corresponds to + ScheduledEventId int64 `protobuf:"varint,2,opt,name=scheduled_event_id,json=scheduledEventId,proto3" json:"scheduled_event_id,omitempty"` + // The id of the `ACTIVITY_TASK_STARTED` event this timeout corresponds to + StartedEventId int64 `protobuf:"varint,3,opt,name=started_event_id,json=startedEventId,proto3" json:"started_event_id,omitempty"` + RetryState v12.RetryState `protobuf:"varint,4,opt,name=retry_state,json=retryState,proto3,enum=temporal.api.enums.v1.RetryState" json:"retry_state,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ActivityTaskTimedOutEventAttributes) Reset() { + *x = ActivityTaskTimedOutEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ActivityTaskTimedOutEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ActivityTaskTimedOutEventAttributes) ProtoMessage() {} + +func (x *ActivityTaskTimedOutEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[14] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ActivityTaskTimedOutEventAttributes) GetFailure() *v13.Failure { + if x != nil { + return x.Failure + } + return nil +} + +func (x *ActivityTaskTimedOutEventAttributes) GetScheduledEventId() int64 { + if x != nil { + return x.ScheduledEventId + } + return 0 +} + +func (x *ActivityTaskTimedOutEventAttributes) GetStartedEventId() int64 { + if x != nil { + return x.StartedEventId + } + return 0 +} + +func (x *ActivityTaskTimedOutEventAttributes) GetRetryState() v12.RetryState { + if x != nil { + return x.RetryState + } + return v12.RetryState(0) +} + +func (x *ActivityTaskTimedOutEventAttributes) SetFailure(v *v13.Failure) { + x.Failure = v +} + +func (x *ActivityTaskTimedOutEventAttributes) SetScheduledEventId(v int64) { + x.ScheduledEventId = v +} + +func (x *ActivityTaskTimedOutEventAttributes) SetStartedEventId(v int64) { + x.StartedEventId = v +} + +func (x *ActivityTaskTimedOutEventAttributes) SetRetryState(v v12.RetryState) { + x.RetryState = v +} + +func (x *ActivityTaskTimedOutEventAttributes) HasFailure() bool { + if x == nil { + return false + } + return x.Failure != nil +} + +func (x *ActivityTaskTimedOutEventAttributes) ClearFailure() { + x.Failure = nil +} + +type ActivityTaskTimedOutEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // If this activity had failed, was retried, and then timed out, that failure is stored as the + // `cause` in here. + Failure *v13.Failure + // The id of the `ACTIVITY_TASK_SCHEDULED` event this timeout corresponds to + ScheduledEventId int64 + // The id of the `ACTIVITY_TASK_STARTED` event this timeout corresponds to + StartedEventId int64 + RetryState v12.RetryState +} + +func (b0 ActivityTaskTimedOutEventAttributes_builder) Build() *ActivityTaskTimedOutEventAttributes { + m0 := &ActivityTaskTimedOutEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.Failure = b.Failure + x.ScheduledEventId = b.ScheduledEventId + x.StartedEventId = b.StartedEventId + x.RetryState = b.RetryState + return m0 +} + +type ActivityTaskCancelRequestedEventAttributes struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // The id of the `ACTIVITY_TASK_SCHEDULED` event this cancel request corresponds to + ScheduledEventId int64 `protobuf:"varint,1,opt,name=scheduled_event_id,json=scheduledEventId,proto3" json:"scheduled_event_id,omitempty"` + // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + WorkflowTaskCompletedEventId int64 `protobuf:"varint,2,opt,name=workflow_task_completed_event_id,json=workflowTaskCompletedEventId,proto3" json:"workflow_task_completed_event_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ActivityTaskCancelRequestedEventAttributes) Reset() { + *x = ActivityTaskCancelRequestedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ActivityTaskCancelRequestedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ActivityTaskCancelRequestedEventAttributes) ProtoMessage() {} + +func (x *ActivityTaskCancelRequestedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[15] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ActivityTaskCancelRequestedEventAttributes) GetScheduledEventId() int64 { + if x != nil { + return x.ScheduledEventId + } + return 0 +} + +func (x *ActivityTaskCancelRequestedEventAttributes) GetWorkflowTaskCompletedEventId() int64 { + if x != nil { + return x.WorkflowTaskCompletedEventId + } + return 0 +} + +func (x *ActivityTaskCancelRequestedEventAttributes) SetScheduledEventId(v int64) { + x.ScheduledEventId = v +} + +func (x *ActivityTaskCancelRequestedEventAttributes) SetWorkflowTaskCompletedEventId(v int64) { + x.WorkflowTaskCompletedEventId = v +} + +type ActivityTaskCancelRequestedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The id of the `ACTIVITY_TASK_SCHEDULED` event this cancel request corresponds to + ScheduledEventId int64 + // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + WorkflowTaskCompletedEventId int64 +} + +func (b0 ActivityTaskCancelRequestedEventAttributes_builder) Build() *ActivityTaskCancelRequestedEventAttributes { + m0 := &ActivityTaskCancelRequestedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.ScheduledEventId = b.ScheduledEventId + x.WorkflowTaskCompletedEventId = b.WorkflowTaskCompletedEventId + return m0 +} + +type ActivityTaskCanceledEventAttributes struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // Additional information that the activity reported upon confirming cancellation + Details *v1.Payloads `protobuf:"bytes,1,opt,name=details,proto3" json:"details,omitempty"` + // id of the most recent `ACTIVITY_TASK_CANCEL_REQUESTED` event which refers to the same + // activity + LatestCancelRequestedEventId int64 `protobuf:"varint,2,opt,name=latest_cancel_requested_event_id,json=latestCancelRequestedEventId,proto3" json:"latest_cancel_requested_event_id,omitempty"` + // The id of the `ACTIVITY_TASK_SCHEDULED` event this cancel confirmation corresponds to + ScheduledEventId int64 `protobuf:"varint,3,opt,name=scheduled_event_id,json=scheduledEventId,proto3" json:"scheduled_event_id,omitempty"` + // The id of the `ACTIVITY_TASK_STARTED` event this cancel confirmation corresponds to + StartedEventId int64 `protobuf:"varint,4,opt,name=started_event_id,json=startedEventId,proto3" json:"started_event_id,omitempty"` + // id of the worker who canceled this activity + Identity string `protobuf:"bytes,5,opt,name=identity,proto3" json:"identity,omitempty"` + // Version info of the worker who processed this workflow task. + // Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + WorkerVersion *v1.WorkerVersionStamp `protobuf:"bytes,6,opt,name=worker_version,json=workerVersion,proto3" json:"worker_version,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ActivityTaskCanceledEventAttributes) Reset() { + *x = ActivityTaskCanceledEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ActivityTaskCanceledEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ActivityTaskCanceledEventAttributes) ProtoMessage() {} + +func (x *ActivityTaskCanceledEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[16] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ActivityTaskCanceledEventAttributes) GetDetails() *v1.Payloads { + if x != nil { + return x.Details + } + return nil +} + +func (x *ActivityTaskCanceledEventAttributes) GetLatestCancelRequestedEventId() int64 { + if x != nil { + return x.LatestCancelRequestedEventId + } + return 0 +} + +func (x *ActivityTaskCanceledEventAttributes) GetScheduledEventId() int64 { + if x != nil { + return x.ScheduledEventId + } + return 0 +} + +func (x *ActivityTaskCanceledEventAttributes) GetStartedEventId() int64 { + if x != nil { + return x.StartedEventId + } + return 0 +} + +func (x *ActivityTaskCanceledEventAttributes) GetIdentity() string { + if x != nil { + return x.Identity + } + return "" +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *ActivityTaskCanceledEventAttributes) GetWorkerVersion() *v1.WorkerVersionStamp { + if x != nil { + return x.WorkerVersion + } + return nil +} + +func (x *ActivityTaskCanceledEventAttributes) SetDetails(v *v1.Payloads) { + x.Details = v +} + +func (x *ActivityTaskCanceledEventAttributes) SetLatestCancelRequestedEventId(v int64) { + x.LatestCancelRequestedEventId = v +} + +func (x *ActivityTaskCanceledEventAttributes) SetScheduledEventId(v int64) { + x.ScheduledEventId = v +} + +func (x *ActivityTaskCanceledEventAttributes) SetStartedEventId(v int64) { + x.StartedEventId = v +} + +func (x *ActivityTaskCanceledEventAttributes) SetIdentity(v string) { + x.Identity = v +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *ActivityTaskCanceledEventAttributes) SetWorkerVersion(v *v1.WorkerVersionStamp) { + x.WorkerVersion = v +} + +func (x *ActivityTaskCanceledEventAttributes) HasDetails() bool { + if x == nil { + return false + } + return x.Details != nil +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *ActivityTaskCanceledEventAttributes) HasWorkerVersion() bool { + if x == nil { + return false + } + return x.WorkerVersion != nil +} + +func (x *ActivityTaskCanceledEventAttributes) ClearDetails() { + x.Details = nil +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *ActivityTaskCanceledEventAttributes) ClearWorkerVersion() { + x.WorkerVersion = nil +} + +type ActivityTaskCanceledEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Additional information that the activity reported upon confirming cancellation + Details *v1.Payloads + // id of the most recent `ACTIVITY_TASK_CANCEL_REQUESTED` event which refers to the same + // activity + LatestCancelRequestedEventId int64 + // The id of the `ACTIVITY_TASK_SCHEDULED` event this cancel confirmation corresponds to + ScheduledEventId int64 + // The id of the `ACTIVITY_TASK_STARTED` event this cancel confirmation corresponds to + StartedEventId int64 + // id of the worker who canceled this activity + Identity string + // Version info of the worker who processed this workflow task. + // Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + WorkerVersion *v1.WorkerVersionStamp +} + +func (b0 ActivityTaskCanceledEventAttributes_builder) Build() *ActivityTaskCanceledEventAttributes { + m0 := &ActivityTaskCanceledEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.Details = b.Details + x.LatestCancelRequestedEventId = b.LatestCancelRequestedEventId + x.ScheduledEventId = b.ScheduledEventId + x.StartedEventId = b.StartedEventId + x.Identity = b.Identity + x.WorkerVersion = b.WorkerVersion + return m0 +} + +type TimerStartedEventAttributes struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // The worker/user assigned id for this timer + TimerId string `protobuf:"bytes,1,opt,name=timer_id,json=timerId,proto3" json:"timer_id,omitempty"` + // How long until this timer fires + // + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + StartToFireTimeout *durationpb.Duration `protobuf:"bytes,2,opt,name=start_to_fire_timeout,json=startToFireTimeout,proto3" json:"start_to_fire_timeout,omitempty"` + // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + WorkflowTaskCompletedEventId int64 `protobuf:"varint,3,opt,name=workflow_task_completed_event_id,json=workflowTaskCompletedEventId,proto3" json:"workflow_task_completed_event_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TimerStartedEventAttributes) Reset() { + *x = TimerStartedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TimerStartedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TimerStartedEventAttributes) ProtoMessage() {} + +func (x *TimerStartedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[17] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *TimerStartedEventAttributes) GetTimerId() string { + if x != nil { + return x.TimerId + } + return "" +} + +func (x *TimerStartedEventAttributes) GetStartToFireTimeout() *durationpb.Duration { + if x != nil { + return x.StartToFireTimeout + } + return nil +} + +func (x *TimerStartedEventAttributes) GetWorkflowTaskCompletedEventId() int64 { + if x != nil { + return x.WorkflowTaskCompletedEventId + } + return 0 +} + +func (x *TimerStartedEventAttributes) SetTimerId(v string) { + x.TimerId = v +} + +func (x *TimerStartedEventAttributes) SetStartToFireTimeout(v *durationpb.Duration) { + x.StartToFireTimeout = v +} + +func (x *TimerStartedEventAttributes) SetWorkflowTaskCompletedEventId(v int64) { + x.WorkflowTaskCompletedEventId = v +} + +func (x *TimerStartedEventAttributes) HasStartToFireTimeout() bool { + if x == nil { + return false + } + return x.StartToFireTimeout != nil +} + +func (x *TimerStartedEventAttributes) ClearStartToFireTimeout() { + x.StartToFireTimeout = nil +} + +type TimerStartedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The worker/user assigned id for this timer + TimerId string + // How long until this timer fires + // + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + StartToFireTimeout *durationpb.Duration + // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + WorkflowTaskCompletedEventId int64 +} + +func (b0 TimerStartedEventAttributes_builder) Build() *TimerStartedEventAttributes { + m0 := &TimerStartedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.TimerId = b.TimerId + x.StartToFireTimeout = b.StartToFireTimeout + x.WorkflowTaskCompletedEventId = b.WorkflowTaskCompletedEventId + return m0 +} + +type TimerFiredEventAttributes struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // Will match the `timer_id` from `TIMER_STARTED` event for this timer + TimerId string `protobuf:"bytes,1,opt,name=timer_id,json=timerId,proto3" json:"timer_id,omitempty"` + // The id of the `TIMER_STARTED` event itself + StartedEventId int64 `protobuf:"varint,2,opt,name=started_event_id,json=startedEventId,proto3" json:"started_event_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TimerFiredEventAttributes) Reset() { + *x = TimerFiredEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TimerFiredEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TimerFiredEventAttributes) ProtoMessage() {} + +func (x *TimerFiredEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[18] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *TimerFiredEventAttributes) GetTimerId() string { + if x != nil { + return x.TimerId + } + return "" +} + +func (x *TimerFiredEventAttributes) GetStartedEventId() int64 { + if x != nil { + return x.StartedEventId + } + return 0 +} + +func (x *TimerFiredEventAttributes) SetTimerId(v string) { + x.TimerId = v +} + +func (x *TimerFiredEventAttributes) SetStartedEventId(v int64) { + x.StartedEventId = v +} + +type TimerFiredEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Will match the `timer_id` from `TIMER_STARTED` event for this timer + TimerId string + // The id of the `TIMER_STARTED` event itself + StartedEventId int64 +} + +func (b0 TimerFiredEventAttributes_builder) Build() *TimerFiredEventAttributes { + m0 := &TimerFiredEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.TimerId = b.TimerId + x.StartedEventId = b.StartedEventId + return m0 +} + +type TimerCanceledEventAttributes struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // Will match the `timer_id` from `TIMER_STARTED` event for this timer + TimerId string `protobuf:"bytes,1,opt,name=timer_id,json=timerId,proto3" json:"timer_id,omitempty"` + // The id of the `TIMER_STARTED` event itself + StartedEventId int64 `protobuf:"varint,2,opt,name=started_event_id,json=startedEventId,proto3" json:"started_event_id,omitempty"` + // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + WorkflowTaskCompletedEventId int64 `protobuf:"varint,3,opt,name=workflow_task_completed_event_id,json=workflowTaskCompletedEventId,proto3" json:"workflow_task_completed_event_id,omitempty"` + // The id of the worker who requested this cancel + Identity string `protobuf:"bytes,4,opt,name=identity,proto3" json:"identity,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TimerCanceledEventAttributes) Reset() { + *x = TimerCanceledEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TimerCanceledEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TimerCanceledEventAttributes) ProtoMessage() {} + +func (x *TimerCanceledEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[19] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *TimerCanceledEventAttributes) GetTimerId() string { + if x != nil { + return x.TimerId + } + return "" +} + +func (x *TimerCanceledEventAttributes) GetStartedEventId() int64 { + if x != nil { + return x.StartedEventId + } + return 0 +} + +func (x *TimerCanceledEventAttributes) GetWorkflowTaskCompletedEventId() int64 { + if x != nil { + return x.WorkflowTaskCompletedEventId + } + return 0 +} + +func (x *TimerCanceledEventAttributes) GetIdentity() string { + if x != nil { + return x.Identity + } + return "" +} + +func (x *TimerCanceledEventAttributes) SetTimerId(v string) { + x.TimerId = v +} + +func (x *TimerCanceledEventAttributes) SetStartedEventId(v int64) { + x.StartedEventId = v +} + +func (x *TimerCanceledEventAttributes) SetWorkflowTaskCompletedEventId(v int64) { + x.WorkflowTaskCompletedEventId = v +} + +func (x *TimerCanceledEventAttributes) SetIdentity(v string) { + x.Identity = v +} + +type TimerCanceledEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Will match the `timer_id` from `TIMER_STARTED` event for this timer + TimerId string + // The id of the `TIMER_STARTED` event itself + StartedEventId int64 + // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + WorkflowTaskCompletedEventId int64 + // The id of the worker who requested this cancel + Identity string +} + +func (b0 TimerCanceledEventAttributes_builder) Build() *TimerCanceledEventAttributes { + m0 := &TimerCanceledEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.TimerId = b.TimerId + x.StartedEventId = b.StartedEventId + x.WorkflowTaskCompletedEventId = b.WorkflowTaskCompletedEventId + x.Identity = b.Identity + return m0 +} + +type WorkflowExecutionCancelRequestedEventAttributes struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // User provided reason for requesting cancellation + Cause string `protobuf:"bytes,1,opt,name=cause,proto3" json:"cause,omitempty"` + // The ID of the `REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED` event in the external + // workflow history when the cancellation was requested by another workflow. + ExternalInitiatedEventId int64 `protobuf:"varint,2,opt,name=external_initiated_event_id,json=externalInitiatedEventId,proto3" json:"external_initiated_event_id,omitempty"` + ExternalWorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,3,opt,name=external_workflow_execution,json=externalWorkflowExecution,proto3" json:"external_workflow_execution,omitempty"` + // id of the worker or client who requested this cancel + Identity string `protobuf:"bytes,4,opt,name=identity,proto3" json:"identity,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowExecutionCancelRequestedEventAttributes) Reset() { + *x = WorkflowExecutionCancelRequestedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkflowExecutionCancelRequestedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowExecutionCancelRequestedEventAttributes) ProtoMessage() {} + +func (x *WorkflowExecutionCancelRequestedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[20] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkflowExecutionCancelRequestedEventAttributes) GetCause() string { + if x != nil { + return x.Cause + } + return "" +} + +func (x *WorkflowExecutionCancelRequestedEventAttributes) GetExternalInitiatedEventId() int64 { + if x != nil { + return x.ExternalInitiatedEventId + } + return 0 +} + +func (x *WorkflowExecutionCancelRequestedEventAttributes) GetExternalWorkflowExecution() *v1.WorkflowExecution { + if x != nil { + return x.ExternalWorkflowExecution + } + return nil +} + +func (x *WorkflowExecutionCancelRequestedEventAttributes) GetIdentity() string { + if x != nil { + return x.Identity + } + return "" +} + +func (x *WorkflowExecutionCancelRequestedEventAttributes) SetCause(v string) { + x.Cause = v +} + +func (x *WorkflowExecutionCancelRequestedEventAttributes) SetExternalInitiatedEventId(v int64) { + x.ExternalInitiatedEventId = v +} + +func (x *WorkflowExecutionCancelRequestedEventAttributes) SetExternalWorkflowExecution(v *v1.WorkflowExecution) { + x.ExternalWorkflowExecution = v +} + +func (x *WorkflowExecutionCancelRequestedEventAttributes) SetIdentity(v string) { + x.Identity = v +} + +func (x *WorkflowExecutionCancelRequestedEventAttributes) HasExternalWorkflowExecution() bool { + if x == nil { + return false + } + return x.ExternalWorkflowExecution != nil +} + +func (x *WorkflowExecutionCancelRequestedEventAttributes) ClearExternalWorkflowExecution() { + x.ExternalWorkflowExecution = nil +} + +type WorkflowExecutionCancelRequestedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // User provided reason for requesting cancellation + Cause string + // The ID of the `REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED` event in the external + // workflow history when the cancellation was requested by another workflow. + ExternalInitiatedEventId int64 + ExternalWorkflowExecution *v1.WorkflowExecution + // id of the worker or client who requested this cancel + Identity string +} + +func (b0 WorkflowExecutionCancelRequestedEventAttributes_builder) Build() *WorkflowExecutionCancelRequestedEventAttributes { + m0 := &WorkflowExecutionCancelRequestedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.Cause = b.Cause + x.ExternalInitiatedEventId = b.ExternalInitiatedEventId + x.ExternalWorkflowExecution = b.ExternalWorkflowExecution + x.Identity = b.Identity + return m0 +} + +type WorkflowExecutionCanceledEventAttributes struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + WorkflowTaskCompletedEventId int64 `protobuf:"varint,1,opt,name=workflow_task_completed_event_id,json=workflowTaskCompletedEventId,proto3" json:"workflow_task_completed_event_id,omitempty"` + Details *v1.Payloads `protobuf:"bytes,2,opt,name=details,proto3" json:"details,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowExecutionCanceledEventAttributes) Reset() { + *x = WorkflowExecutionCanceledEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkflowExecutionCanceledEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowExecutionCanceledEventAttributes) ProtoMessage() {} + +func (x *WorkflowExecutionCanceledEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[21] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkflowExecutionCanceledEventAttributes) GetWorkflowTaskCompletedEventId() int64 { + if x != nil { + return x.WorkflowTaskCompletedEventId + } + return 0 +} + +func (x *WorkflowExecutionCanceledEventAttributes) GetDetails() *v1.Payloads { + if x != nil { + return x.Details + } + return nil +} + +func (x *WorkflowExecutionCanceledEventAttributes) SetWorkflowTaskCompletedEventId(v int64) { + x.WorkflowTaskCompletedEventId = v +} + +func (x *WorkflowExecutionCanceledEventAttributes) SetDetails(v *v1.Payloads) { + x.Details = v +} + +func (x *WorkflowExecutionCanceledEventAttributes) HasDetails() bool { + if x == nil { + return false + } + return x.Details != nil +} + +func (x *WorkflowExecutionCanceledEventAttributes) ClearDetails() { + x.Details = nil +} + +type WorkflowExecutionCanceledEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + WorkflowTaskCompletedEventId int64 + Details *v1.Payloads +} + +func (b0 WorkflowExecutionCanceledEventAttributes_builder) Build() *WorkflowExecutionCanceledEventAttributes { + m0 := &WorkflowExecutionCanceledEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.WorkflowTaskCompletedEventId = b.WorkflowTaskCompletedEventId + x.Details = b.Details + return m0 +} + +type MarkerRecordedEventAttributes struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // Workers use this to identify the "types" of various markers. Ex: Local activity, side effect. + MarkerName string `protobuf:"bytes,1,opt,name=marker_name,json=markerName,proto3" json:"marker_name,omitempty"` + // Serialized information recorded in the marker + Details map[string]*v1.Payloads `protobuf:"bytes,2,rep,name=details,proto3" json:"details,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + WorkflowTaskCompletedEventId int64 `protobuf:"varint,3,opt,name=workflow_task_completed_event_id,json=workflowTaskCompletedEventId,proto3" json:"workflow_task_completed_event_id,omitempty"` + Header *v1.Header `protobuf:"bytes,4,opt,name=header,proto3" json:"header,omitempty"` + // Some uses of markers, like a local activity, could "fail". If they did that is recorded here. + Failure *v13.Failure `protobuf:"bytes,5,opt,name=failure,proto3" json:"failure,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *MarkerRecordedEventAttributes) Reset() { + *x = MarkerRecordedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *MarkerRecordedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MarkerRecordedEventAttributes) ProtoMessage() {} + +func (x *MarkerRecordedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[22] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *MarkerRecordedEventAttributes) GetMarkerName() string { + if x != nil { + return x.MarkerName + } + return "" +} + +func (x *MarkerRecordedEventAttributes) GetDetails() map[string]*v1.Payloads { + if x != nil { + return x.Details + } + return nil +} + +func (x *MarkerRecordedEventAttributes) GetWorkflowTaskCompletedEventId() int64 { + if x != nil { + return x.WorkflowTaskCompletedEventId + } + return 0 +} + +func (x *MarkerRecordedEventAttributes) GetHeader() *v1.Header { + if x != nil { + return x.Header + } + return nil +} + +func (x *MarkerRecordedEventAttributes) GetFailure() *v13.Failure { + if x != nil { + return x.Failure + } + return nil +} + +func (x *MarkerRecordedEventAttributes) SetMarkerName(v string) { + x.MarkerName = v +} + +func (x *MarkerRecordedEventAttributes) SetDetails(v map[string]*v1.Payloads) { + x.Details = v +} + +func (x *MarkerRecordedEventAttributes) SetWorkflowTaskCompletedEventId(v int64) { + x.WorkflowTaskCompletedEventId = v +} + +func (x *MarkerRecordedEventAttributes) SetHeader(v *v1.Header) { + x.Header = v +} + +func (x *MarkerRecordedEventAttributes) SetFailure(v *v13.Failure) { + x.Failure = v +} + +func (x *MarkerRecordedEventAttributes) HasHeader() bool { + if x == nil { + return false + } + return x.Header != nil +} + +func (x *MarkerRecordedEventAttributes) HasFailure() bool { + if x == nil { + return false + } + return x.Failure != nil +} + +func (x *MarkerRecordedEventAttributes) ClearHeader() { + x.Header = nil +} + +func (x *MarkerRecordedEventAttributes) ClearFailure() { + x.Failure = nil +} + +type MarkerRecordedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Workers use this to identify the "types" of various markers. Ex: Local activity, side effect. + MarkerName string + // Serialized information recorded in the marker + Details map[string]*v1.Payloads + // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + WorkflowTaskCompletedEventId int64 + Header *v1.Header + // Some uses of markers, like a local activity, could "fail". If they did that is recorded here. + Failure *v13.Failure +} + +func (b0 MarkerRecordedEventAttributes_builder) Build() *MarkerRecordedEventAttributes { + m0 := &MarkerRecordedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.MarkerName = b.MarkerName + x.Details = b.Details + x.WorkflowTaskCompletedEventId = b.WorkflowTaskCompletedEventId + x.Header = b.Header + x.Failure = b.Failure + return m0 +} + +type WorkflowExecutionSignaledEventAttributes struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // The name/type of the signal to fire + SignalName string `protobuf:"bytes,1,opt,name=signal_name,json=signalName,proto3" json:"signal_name,omitempty"` + // Will be deserialized and provided as argument(s) to the signal handler + Input *v1.Payloads `protobuf:"bytes,2,opt,name=input,proto3" json:"input,omitempty"` + // id of the worker/client who sent this signal + Identity string `protobuf:"bytes,3,opt,name=identity,proto3" json:"identity,omitempty"` + // Headers that were passed by the sender of the signal and copied by temporal + // server into the workflow task. + Header *v1.Header `protobuf:"bytes,4,opt,name=header,proto3" json:"header,omitempty"` + // Deprecated. This field is never respected and should always be set to false. + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + SkipGenerateWorkflowTask bool `protobuf:"varint,5,opt,name=skip_generate_workflow_task,json=skipGenerateWorkflowTask,proto3" json:"skip_generate_workflow_task,omitempty"` + // When signal origin is a workflow execution, this field is set. + ExternalWorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,6,opt,name=external_workflow_execution,json=externalWorkflowExecution,proto3" json:"external_workflow_execution,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowExecutionSignaledEventAttributes) Reset() { + *x = WorkflowExecutionSignaledEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkflowExecutionSignaledEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowExecutionSignaledEventAttributes) ProtoMessage() {} + +func (x *WorkflowExecutionSignaledEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[23] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkflowExecutionSignaledEventAttributes) GetSignalName() string { + if x != nil { + return x.SignalName + } + return "" +} + +func (x *WorkflowExecutionSignaledEventAttributes) GetInput() *v1.Payloads { + if x != nil { + return x.Input + } + return nil +} + +func (x *WorkflowExecutionSignaledEventAttributes) GetIdentity() string { + if x != nil { + return x.Identity + } + return "" +} + +func (x *WorkflowExecutionSignaledEventAttributes) GetHeader() *v1.Header { + if x != nil { + return x.Header + } + return nil +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowExecutionSignaledEventAttributes) GetSkipGenerateWorkflowTask() bool { + if x != nil { + return x.SkipGenerateWorkflowTask + } + return false +} + +func (x *WorkflowExecutionSignaledEventAttributes) GetExternalWorkflowExecution() *v1.WorkflowExecution { + if x != nil { + return x.ExternalWorkflowExecution + } + return nil +} + +func (x *WorkflowExecutionSignaledEventAttributes) SetSignalName(v string) { + x.SignalName = v +} + +func (x *WorkflowExecutionSignaledEventAttributes) SetInput(v *v1.Payloads) { + x.Input = v +} + +func (x *WorkflowExecutionSignaledEventAttributes) SetIdentity(v string) { + x.Identity = v +} + +func (x *WorkflowExecutionSignaledEventAttributes) SetHeader(v *v1.Header) { + x.Header = v +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowExecutionSignaledEventAttributes) SetSkipGenerateWorkflowTask(v bool) { + x.SkipGenerateWorkflowTask = v +} + +func (x *WorkflowExecutionSignaledEventAttributes) SetExternalWorkflowExecution(v *v1.WorkflowExecution) { + x.ExternalWorkflowExecution = v +} + +func (x *WorkflowExecutionSignaledEventAttributes) HasInput() bool { + if x == nil { + return false + } + return x.Input != nil +} + +func (x *WorkflowExecutionSignaledEventAttributes) HasHeader() bool { + if x == nil { + return false + } + return x.Header != nil +} + +func (x *WorkflowExecutionSignaledEventAttributes) HasExternalWorkflowExecution() bool { + if x == nil { + return false + } + return x.ExternalWorkflowExecution != nil +} + +func (x *WorkflowExecutionSignaledEventAttributes) ClearInput() { + x.Input = nil +} + +func (x *WorkflowExecutionSignaledEventAttributes) ClearHeader() { + x.Header = nil +} + +func (x *WorkflowExecutionSignaledEventAttributes) ClearExternalWorkflowExecution() { + x.ExternalWorkflowExecution = nil +} + +type WorkflowExecutionSignaledEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The name/type of the signal to fire + SignalName string + // Will be deserialized and provided as argument(s) to the signal handler + Input *v1.Payloads + // id of the worker/client who sent this signal + Identity string + // Headers that were passed by the sender of the signal and copied by temporal + // server into the workflow task. + Header *v1.Header + // Deprecated. This field is never respected and should always be set to false. + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + SkipGenerateWorkflowTask bool + // When signal origin is a workflow execution, this field is set. + ExternalWorkflowExecution *v1.WorkflowExecution +} + +func (b0 WorkflowExecutionSignaledEventAttributes_builder) Build() *WorkflowExecutionSignaledEventAttributes { + m0 := &WorkflowExecutionSignaledEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.SignalName = b.SignalName + x.Input = b.Input + x.Identity = b.Identity + x.Header = b.Header + x.SkipGenerateWorkflowTask = b.SkipGenerateWorkflowTask + x.ExternalWorkflowExecution = b.ExternalWorkflowExecution + return m0 +} + +type WorkflowExecutionTerminatedEventAttributes struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // User/client provided reason for termination + Reason string `protobuf:"bytes,1,opt,name=reason,proto3" json:"reason,omitempty"` + Details *v1.Payloads `protobuf:"bytes,2,opt,name=details,proto3" json:"details,omitempty"` + // id of the client who requested termination + Identity string `protobuf:"bytes,3,opt,name=identity,proto3" json:"identity,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowExecutionTerminatedEventAttributes) Reset() { + *x = WorkflowExecutionTerminatedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkflowExecutionTerminatedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowExecutionTerminatedEventAttributes) ProtoMessage() {} + +func (x *WorkflowExecutionTerminatedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[24] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkflowExecutionTerminatedEventAttributes) GetReason() string { + if x != nil { + return x.Reason + } + return "" +} + +func (x *WorkflowExecutionTerminatedEventAttributes) GetDetails() *v1.Payloads { + if x != nil { + return x.Details + } + return nil +} + +func (x *WorkflowExecutionTerminatedEventAttributes) GetIdentity() string { + if x != nil { + return x.Identity + } + return "" +} + +func (x *WorkflowExecutionTerminatedEventAttributes) SetReason(v string) { + x.Reason = v +} + +func (x *WorkflowExecutionTerminatedEventAttributes) SetDetails(v *v1.Payloads) { + x.Details = v +} + +func (x *WorkflowExecutionTerminatedEventAttributes) SetIdentity(v string) { + x.Identity = v +} + +func (x *WorkflowExecutionTerminatedEventAttributes) HasDetails() bool { + if x == nil { + return false + } + return x.Details != nil +} + +func (x *WorkflowExecutionTerminatedEventAttributes) ClearDetails() { + x.Details = nil +} + +type WorkflowExecutionTerminatedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // User/client provided reason for termination + Reason string + Details *v1.Payloads + // id of the client who requested termination + Identity string +} + +func (b0 WorkflowExecutionTerminatedEventAttributes_builder) Build() *WorkflowExecutionTerminatedEventAttributes { + m0 := &WorkflowExecutionTerminatedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.Reason = b.Reason + x.Details = b.Details + x.Identity = b.Identity + return m0 +} + +type RequestCancelExternalWorkflowExecutionInitiatedEventAttributes struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + WorkflowTaskCompletedEventId int64 `protobuf:"varint,1,opt,name=workflow_task_completed_event_id,json=workflowTaskCompletedEventId,proto3" json:"workflow_task_completed_event_id,omitempty"` + // The namespace the workflow to be cancelled lives in. + // SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. + Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` + NamespaceId string `protobuf:"bytes,7,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"` + WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,3,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` + // Deprecated. + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + Control string `protobuf:"bytes,4,opt,name=control,proto3" json:"control,omitempty"` + // Workers are expected to set this to true if the workflow they are requesting to cancel is + // a child of the workflow which issued the request + ChildWorkflowOnly bool `protobuf:"varint,5,opt,name=child_workflow_only,json=childWorkflowOnly,proto3" json:"child_workflow_only,omitempty"` + // Reason for requesting the cancellation + Reason string `protobuf:"bytes,6,opt,name=reason,proto3" json:"reason,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) Reset() { + *x = RequestCancelExternalWorkflowExecutionInitiatedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) ProtoMessage() {} + +func (x *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[25] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) GetWorkflowTaskCompletedEventId() int64 { + if x != nil { + return x.WorkflowTaskCompletedEventId + } + return 0 +} + +func (x *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) GetNamespace() string { + if x != nil { + return x.Namespace + } + return "" +} + +func (x *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) GetNamespaceId() string { + if x != nil { + return x.NamespaceId + } + return "" +} + +func (x *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) GetWorkflowExecution() *v1.WorkflowExecution { + if x != nil { + return x.WorkflowExecution + } + return nil +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) GetControl() string { + if x != nil { + return x.Control + } + return "" +} + +func (x *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) GetChildWorkflowOnly() bool { + if x != nil { + return x.ChildWorkflowOnly + } + return false +} + +func (x *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) GetReason() string { + if x != nil { + return x.Reason + } + return "" +} + +func (x *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) SetWorkflowTaskCompletedEventId(v int64) { + x.WorkflowTaskCompletedEventId = v +} + +func (x *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) SetNamespace(v string) { + x.Namespace = v +} + +func (x *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) SetNamespaceId(v string) { + x.NamespaceId = v +} + +func (x *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) SetWorkflowExecution(v *v1.WorkflowExecution) { + x.WorkflowExecution = v +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) SetControl(v string) { + x.Control = v +} + +func (x *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) SetChildWorkflowOnly(v bool) { + x.ChildWorkflowOnly = v +} + +func (x *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) SetReason(v string) { + x.Reason = v +} + +func (x *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) HasWorkflowExecution() bool { + if x == nil { + return false + } + return x.WorkflowExecution != nil +} + +func (x *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) ClearWorkflowExecution() { + x.WorkflowExecution = nil +} + +type RequestCancelExternalWorkflowExecutionInitiatedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + WorkflowTaskCompletedEventId int64 + // The namespace the workflow to be cancelled lives in. + // SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. + Namespace string + NamespaceId string + WorkflowExecution *v1.WorkflowExecution + // Deprecated. + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + Control string + // Workers are expected to set this to true if the workflow they are requesting to cancel is + // a child of the workflow which issued the request + ChildWorkflowOnly bool + // Reason for requesting the cancellation + Reason string +} + +func (b0 RequestCancelExternalWorkflowExecutionInitiatedEventAttributes_builder) Build() *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes { + m0 := &RequestCancelExternalWorkflowExecutionInitiatedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.WorkflowTaskCompletedEventId = b.WorkflowTaskCompletedEventId + x.Namespace = b.Namespace + x.NamespaceId = b.NamespaceId + x.WorkflowExecution = b.WorkflowExecution + x.Control = b.Control + x.ChildWorkflowOnly = b.ChildWorkflowOnly + x.Reason = b.Reason + return m0 +} + +type RequestCancelExternalWorkflowExecutionFailedEventAttributes struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + Cause v12.CancelExternalWorkflowExecutionFailedCause `protobuf:"varint,1,opt,name=cause,proto3,enum=temporal.api.enums.v1.CancelExternalWorkflowExecutionFailedCause" json:"cause,omitempty"` + // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + WorkflowTaskCompletedEventId int64 `protobuf:"varint,2,opt,name=workflow_task_completed_event_id,json=workflowTaskCompletedEventId,proto3" json:"workflow_task_completed_event_id,omitempty"` + // Namespace of the workflow which failed to cancel. + // SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. + Namespace string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"` + NamespaceId string `protobuf:"bytes,7,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"` + WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,4,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` + // id of the `REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED` event this failure + // corresponds to + InitiatedEventId int64 `protobuf:"varint,5,opt,name=initiated_event_id,json=initiatedEventId,proto3" json:"initiated_event_id,omitempty"` + // Deprecated. + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + Control string `protobuf:"bytes,6,opt,name=control,proto3" json:"control,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RequestCancelExternalWorkflowExecutionFailedEventAttributes) Reset() { + *x = RequestCancelExternalWorkflowExecutionFailedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RequestCancelExternalWorkflowExecutionFailedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RequestCancelExternalWorkflowExecutionFailedEventAttributes) ProtoMessage() {} + +func (x *RequestCancelExternalWorkflowExecutionFailedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[26] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *RequestCancelExternalWorkflowExecutionFailedEventAttributes) GetCause() v12.CancelExternalWorkflowExecutionFailedCause { + if x != nil { + return x.Cause + } + return v12.CancelExternalWorkflowExecutionFailedCause(0) +} + +func (x *RequestCancelExternalWorkflowExecutionFailedEventAttributes) GetWorkflowTaskCompletedEventId() int64 { + if x != nil { + return x.WorkflowTaskCompletedEventId + } + return 0 +} + +func (x *RequestCancelExternalWorkflowExecutionFailedEventAttributes) GetNamespace() string { + if x != nil { + return x.Namespace + } + return "" +} + +func (x *RequestCancelExternalWorkflowExecutionFailedEventAttributes) GetNamespaceId() string { + if x != nil { + return x.NamespaceId + } + return "" +} + +func (x *RequestCancelExternalWorkflowExecutionFailedEventAttributes) GetWorkflowExecution() *v1.WorkflowExecution { + if x != nil { + return x.WorkflowExecution + } + return nil +} + +func (x *RequestCancelExternalWorkflowExecutionFailedEventAttributes) GetInitiatedEventId() int64 { + if x != nil { + return x.InitiatedEventId + } + return 0 +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *RequestCancelExternalWorkflowExecutionFailedEventAttributes) GetControl() string { + if x != nil { + return x.Control + } + return "" +} + +func (x *RequestCancelExternalWorkflowExecutionFailedEventAttributes) SetCause(v v12.CancelExternalWorkflowExecutionFailedCause) { + x.Cause = v +} + +func (x *RequestCancelExternalWorkflowExecutionFailedEventAttributes) SetWorkflowTaskCompletedEventId(v int64) { + x.WorkflowTaskCompletedEventId = v +} + +func (x *RequestCancelExternalWorkflowExecutionFailedEventAttributes) SetNamespace(v string) { + x.Namespace = v +} + +func (x *RequestCancelExternalWorkflowExecutionFailedEventAttributes) SetNamespaceId(v string) { + x.NamespaceId = v +} + +func (x *RequestCancelExternalWorkflowExecutionFailedEventAttributes) SetWorkflowExecution(v *v1.WorkflowExecution) { + x.WorkflowExecution = v +} + +func (x *RequestCancelExternalWorkflowExecutionFailedEventAttributes) SetInitiatedEventId(v int64) { + x.InitiatedEventId = v +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *RequestCancelExternalWorkflowExecutionFailedEventAttributes) SetControl(v string) { + x.Control = v +} + +func (x *RequestCancelExternalWorkflowExecutionFailedEventAttributes) HasWorkflowExecution() bool { + if x == nil { + return false + } + return x.WorkflowExecution != nil +} + +func (x *RequestCancelExternalWorkflowExecutionFailedEventAttributes) ClearWorkflowExecution() { + x.WorkflowExecution = nil +} + +type RequestCancelExternalWorkflowExecutionFailedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Cause v12.CancelExternalWorkflowExecutionFailedCause + // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + WorkflowTaskCompletedEventId int64 + // Namespace of the workflow which failed to cancel. + // SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. + Namespace string + NamespaceId string + WorkflowExecution *v1.WorkflowExecution + // id of the `REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED` event this failure + // corresponds to + InitiatedEventId int64 + // Deprecated. + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + Control string +} + +func (b0 RequestCancelExternalWorkflowExecutionFailedEventAttributes_builder) Build() *RequestCancelExternalWorkflowExecutionFailedEventAttributes { + m0 := &RequestCancelExternalWorkflowExecutionFailedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.Cause = b.Cause + x.WorkflowTaskCompletedEventId = b.WorkflowTaskCompletedEventId + x.Namespace = b.Namespace + x.NamespaceId = b.NamespaceId + x.WorkflowExecution = b.WorkflowExecution + x.InitiatedEventId = b.InitiatedEventId + x.Control = b.Control + return m0 +} + +type ExternalWorkflowExecutionCancelRequestedEventAttributes struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // id of the `REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED` event this event corresponds + // to + InitiatedEventId int64 `protobuf:"varint,1,opt,name=initiated_event_id,json=initiatedEventId,proto3" json:"initiated_event_id,omitempty"` + // Namespace of the to-be-cancelled workflow. + // SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. + Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` + NamespaceId string `protobuf:"bytes,4,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"` + WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,3,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ExternalWorkflowExecutionCancelRequestedEventAttributes) Reset() { + *x = ExternalWorkflowExecutionCancelRequestedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ExternalWorkflowExecutionCancelRequestedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExternalWorkflowExecutionCancelRequestedEventAttributes) ProtoMessage() {} + +func (x *ExternalWorkflowExecutionCancelRequestedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[27] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ExternalWorkflowExecutionCancelRequestedEventAttributes) GetInitiatedEventId() int64 { + if x != nil { + return x.InitiatedEventId + } + return 0 +} + +func (x *ExternalWorkflowExecutionCancelRequestedEventAttributes) GetNamespace() string { + if x != nil { + return x.Namespace + } + return "" +} + +func (x *ExternalWorkflowExecutionCancelRequestedEventAttributes) GetNamespaceId() string { + if x != nil { + return x.NamespaceId + } + return "" +} + +func (x *ExternalWorkflowExecutionCancelRequestedEventAttributes) GetWorkflowExecution() *v1.WorkflowExecution { + if x != nil { + return x.WorkflowExecution + } + return nil +} + +func (x *ExternalWorkflowExecutionCancelRequestedEventAttributes) SetInitiatedEventId(v int64) { + x.InitiatedEventId = v +} + +func (x *ExternalWorkflowExecutionCancelRequestedEventAttributes) SetNamespace(v string) { + x.Namespace = v +} + +func (x *ExternalWorkflowExecutionCancelRequestedEventAttributes) SetNamespaceId(v string) { + x.NamespaceId = v +} + +func (x *ExternalWorkflowExecutionCancelRequestedEventAttributes) SetWorkflowExecution(v *v1.WorkflowExecution) { + x.WorkflowExecution = v +} + +func (x *ExternalWorkflowExecutionCancelRequestedEventAttributes) HasWorkflowExecution() bool { + if x == nil { + return false + } + return x.WorkflowExecution != nil +} + +func (x *ExternalWorkflowExecutionCancelRequestedEventAttributes) ClearWorkflowExecution() { + x.WorkflowExecution = nil +} + +type ExternalWorkflowExecutionCancelRequestedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // id of the `REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED` event this event corresponds + // to + InitiatedEventId int64 + // Namespace of the to-be-cancelled workflow. + // SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. + Namespace string + NamespaceId string + WorkflowExecution *v1.WorkflowExecution +} + +func (b0 ExternalWorkflowExecutionCancelRequestedEventAttributes_builder) Build() *ExternalWorkflowExecutionCancelRequestedEventAttributes { + m0 := &ExternalWorkflowExecutionCancelRequestedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.InitiatedEventId = b.InitiatedEventId + x.Namespace = b.Namespace + x.NamespaceId = b.NamespaceId + x.WorkflowExecution = b.WorkflowExecution + return m0 +} + +type SignalExternalWorkflowExecutionInitiatedEventAttributes struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + WorkflowTaskCompletedEventId int64 `protobuf:"varint,1,opt,name=workflow_task_completed_event_id,json=workflowTaskCompletedEventId,proto3" json:"workflow_task_completed_event_id,omitempty"` + // Namespace of the to-be-signalled workflow. + // SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. + Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` + NamespaceId string `protobuf:"bytes,9,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"` + WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,3,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` + // name/type of the signal to fire in the external workflow + SignalName string `protobuf:"bytes,4,opt,name=signal_name,json=signalName,proto3" json:"signal_name,omitempty"` + // Serialized arguments to provide to the signal handler + Input *v1.Payloads `protobuf:"bytes,5,opt,name=input,proto3" json:"input,omitempty"` + // Deprecated. + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + Control string `protobuf:"bytes,6,opt,name=control,proto3" json:"control,omitempty"` + // Workers are expected to set this to true if the workflow they are requesting to cancel is + // a child of the workflow which issued the request + ChildWorkflowOnly bool `protobuf:"varint,7,opt,name=child_workflow_only,json=childWorkflowOnly,proto3" json:"child_workflow_only,omitempty"` + Header *v1.Header `protobuf:"bytes,8,opt,name=header,proto3" json:"header,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) Reset() { + *x = SignalExternalWorkflowExecutionInitiatedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SignalExternalWorkflowExecutionInitiatedEventAttributes) ProtoMessage() {} + +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[28] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) GetWorkflowTaskCompletedEventId() int64 { + if x != nil { + return x.WorkflowTaskCompletedEventId + } + return 0 +} + +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) GetNamespace() string { + if x != nil { + return x.Namespace + } + return "" +} + +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) GetNamespaceId() string { + if x != nil { + return x.NamespaceId + } + return "" +} + +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) GetWorkflowExecution() *v1.WorkflowExecution { + if x != nil { + return x.WorkflowExecution + } + return nil +} + +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) GetSignalName() string { + if x != nil { + return x.SignalName + } + return "" +} + +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) GetInput() *v1.Payloads { + if x != nil { + return x.Input + } + return nil +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) GetControl() string { + if x != nil { + return x.Control + } + return "" +} + +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) GetChildWorkflowOnly() bool { + if x != nil { + return x.ChildWorkflowOnly + } + return false +} + +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) GetHeader() *v1.Header { + if x != nil { + return x.Header + } + return nil +} + +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) SetWorkflowTaskCompletedEventId(v int64) { + x.WorkflowTaskCompletedEventId = v +} + +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) SetNamespace(v string) { + x.Namespace = v +} + +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) SetNamespaceId(v string) { + x.NamespaceId = v +} + +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) SetWorkflowExecution(v *v1.WorkflowExecution) { + x.WorkflowExecution = v +} + +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) SetSignalName(v string) { + x.SignalName = v +} + +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) SetInput(v *v1.Payloads) { + x.Input = v +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) SetControl(v string) { + x.Control = v +} + +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) SetChildWorkflowOnly(v bool) { + x.ChildWorkflowOnly = v +} + +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) SetHeader(v *v1.Header) { + x.Header = v +} + +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) HasWorkflowExecution() bool { + if x == nil { + return false + } + return x.WorkflowExecution != nil +} + +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) HasInput() bool { + if x == nil { + return false + } + return x.Input != nil +} + +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) HasHeader() bool { + if x == nil { + return false + } + return x.Header != nil +} + +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) ClearWorkflowExecution() { + x.WorkflowExecution = nil +} + +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) ClearInput() { + x.Input = nil +} + +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) ClearHeader() { + x.Header = nil +} + +type SignalExternalWorkflowExecutionInitiatedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + WorkflowTaskCompletedEventId int64 + // Namespace of the to-be-signalled workflow. + // SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. + Namespace string + NamespaceId string + WorkflowExecution *v1.WorkflowExecution + // name/type of the signal to fire in the external workflow + SignalName string + // Serialized arguments to provide to the signal handler + Input *v1.Payloads + // Deprecated. + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + Control string + // Workers are expected to set this to true if the workflow they are requesting to cancel is + // a child of the workflow which issued the request + ChildWorkflowOnly bool + Header *v1.Header +} + +func (b0 SignalExternalWorkflowExecutionInitiatedEventAttributes_builder) Build() *SignalExternalWorkflowExecutionInitiatedEventAttributes { + m0 := &SignalExternalWorkflowExecutionInitiatedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.WorkflowTaskCompletedEventId = b.WorkflowTaskCompletedEventId + x.Namespace = b.Namespace + x.NamespaceId = b.NamespaceId + x.WorkflowExecution = b.WorkflowExecution + x.SignalName = b.SignalName + x.Input = b.Input + x.Control = b.Control + x.ChildWorkflowOnly = b.ChildWorkflowOnly + x.Header = b.Header + return m0 +} + +type SignalExternalWorkflowExecutionFailedEventAttributes struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + Cause v12.SignalExternalWorkflowExecutionFailedCause `protobuf:"varint,1,opt,name=cause,proto3,enum=temporal.api.enums.v1.SignalExternalWorkflowExecutionFailedCause" json:"cause,omitempty"` + // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + WorkflowTaskCompletedEventId int64 `protobuf:"varint,2,opt,name=workflow_task_completed_event_id,json=workflowTaskCompletedEventId,proto3" json:"workflow_task_completed_event_id,omitempty"` + // Namespace of the workflow which failed the signal. + // SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. + Namespace string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"` + NamespaceId string `protobuf:"bytes,7,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"` + WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,4,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` + InitiatedEventId int64 `protobuf:"varint,5,opt,name=initiated_event_id,json=initiatedEventId,proto3" json:"initiated_event_id,omitempty"` + // Deprecated. + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + Control string `protobuf:"bytes,6,opt,name=control,proto3" json:"control,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SignalExternalWorkflowExecutionFailedEventAttributes) Reset() { + *x = SignalExternalWorkflowExecutionFailedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SignalExternalWorkflowExecutionFailedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SignalExternalWorkflowExecutionFailedEventAttributes) ProtoMessage() {} + +func (x *SignalExternalWorkflowExecutionFailedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[29] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *SignalExternalWorkflowExecutionFailedEventAttributes) GetCause() v12.SignalExternalWorkflowExecutionFailedCause { + if x != nil { + return x.Cause + } + return v12.SignalExternalWorkflowExecutionFailedCause(0) +} + +func (x *SignalExternalWorkflowExecutionFailedEventAttributes) GetWorkflowTaskCompletedEventId() int64 { + if x != nil { + return x.WorkflowTaskCompletedEventId + } + return 0 +} + +func (x *SignalExternalWorkflowExecutionFailedEventAttributes) GetNamespace() string { + if x != nil { + return x.Namespace + } + return "" +} + +func (x *SignalExternalWorkflowExecutionFailedEventAttributes) GetNamespaceId() string { + if x != nil { + return x.NamespaceId + } + return "" +} + +func (x *SignalExternalWorkflowExecutionFailedEventAttributes) GetWorkflowExecution() *v1.WorkflowExecution { + if x != nil { + return x.WorkflowExecution } return nil } +func (x *SignalExternalWorkflowExecutionFailedEventAttributes) GetInitiatedEventId() int64 { + if x != nil { + return x.InitiatedEventId + } + return 0 +} + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. -func (x *WorkflowExecutionContinuedAsNewEventAttributes) GetInheritBuildId() bool { +func (x *SignalExternalWorkflowExecutionFailedEventAttributes) GetControl() string { if x != nil { - return x.InheritBuildId + return x.Control } - return false + return "" +} + +func (x *SignalExternalWorkflowExecutionFailedEventAttributes) SetCause(v v12.SignalExternalWorkflowExecutionFailedCause) { + x.Cause = v +} + +func (x *SignalExternalWorkflowExecutionFailedEventAttributes) SetWorkflowTaskCompletedEventId(v int64) { + x.WorkflowTaskCompletedEventId = v +} + +func (x *SignalExternalWorkflowExecutionFailedEventAttributes) SetNamespace(v string) { + x.Namespace = v +} + +func (x *SignalExternalWorkflowExecutionFailedEventAttributes) SetNamespaceId(v string) { + x.NamespaceId = v +} + +func (x *SignalExternalWorkflowExecutionFailedEventAttributes) SetWorkflowExecution(v *v1.WorkflowExecution) { + x.WorkflowExecution = v +} + +func (x *SignalExternalWorkflowExecutionFailedEventAttributes) SetInitiatedEventId(v int64) { + x.InitiatedEventId = v +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *SignalExternalWorkflowExecutionFailedEventAttributes) SetControl(v string) { + x.Control = v +} + +func (x *SignalExternalWorkflowExecutionFailedEventAttributes) HasWorkflowExecution() bool { + if x == nil { + return false + } + return x.WorkflowExecution != nil +} + +func (x *SignalExternalWorkflowExecutionFailedEventAttributes) ClearWorkflowExecution() { + x.WorkflowExecution = nil +} + +type SignalExternalWorkflowExecutionFailedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Cause v12.SignalExternalWorkflowExecutionFailedCause + // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + WorkflowTaskCompletedEventId int64 + // Namespace of the workflow which failed the signal. + // SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. + Namespace string + NamespaceId string + WorkflowExecution *v1.WorkflowExecution + InitiatedEventId int64 + // Deprecated. + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + Control string +} + +func (b0 SignalExternalWorkflowExecutionFailedEventAttributes_builder) Build() *SignalExternalWorkflowExecutionFailedEventAttributes { + m0 := &SignalExternalWorkflowExecutionFailedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.Cause = b.Cause + x.WorkflowTaskCompletedEventId = b.WorkflowTaskCompletedEventId + x.Namespace = b.Namespace + x.NamespaceId = b.NamespaceId + x.WorkflowExecution = b.WorkflowExecution + x.InitiatedEventId = b.InitiatedEventId + x.Control = b.Control + return m0 +} + +type ExternalWorkflowExecutionSignaledEventAttributes struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // id of the `SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED` event this event corresponds to + InitiatedEventId int64 `protobuf:"varint,1,opt,name=initiated_event_id,json=initiatedEventId,proto3" json:"initiated_event_id,omitempty"` + // Namespace of the workflow which was signaled. + // SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. + Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` + NamespaceId string `protobuf:"bytes,5,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"` + WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,3,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` + // Deprecated. + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + Control string `protobuf:"bytes,4,opt,name=control,proto3" json:"control,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ExternalWorkflowExecutionSignaledEventAttributes) Reset() { + *x = ExternalWorkflowExecutionSignaledEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ExternalWorkflowExecutionSignaledEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExternalWorkflowExecutionSignaledEventAttributes) ProtoMessage() {} + +func (x *ExternalWorkflowExecutionSignaledEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[30] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ExternalWorkflowExecutionSignaledEventAttributes) GetInitiatedEventId() int64 { + if x != nil { + return x.InitiatedEventId + } + return 0 +} + +func (x *ExternalWorkflowExecutionSignaledEventAttributes) GetNamespace() string { + if x != nil { + return x.Namespace + } + return "" +} + +func (x *ExternalWorkflowExecutionSignaledEventAttributes) GetNamespaceId() string { + if x != nil { + return x.NamespaceId + } + return "" +} + +func (x *ExternalWorkflowExecutionSignaledEventAttributes) GetWorkflowExecution() *v1.WorkflowExecution { + if x != nil { + return x.WorkflowExecution + } + return nil +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *ExternalWorkflowExecutionSignaledEventAttributes) GetControl() string { + if x != nil { + return x.Control + } + return "" +} + +func (x *ExternalWorkflowExecutionSignaledEventAttributes) SetInitiatedEventId(v int64) { + x.InitiatedEventId = v +} + +func (x *ExternalWorkflowExecutionSignaledEventAttributes) SetNamespace(v string) { + x.Namespace = v +} + +func (x *ExternalWorkflowExecutionSignaledEventAttributes) SetNamespaceId(v string) { + x.NamespaceId = v +} + +func (x *ExternalWorkflowExecutionSignaledEventAttributes) SetWorkflowExecution(v *v1.WorkflowExecution) { + x.WorkflowExecution = v +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *ExternalWorkflowExecutionSignaledEventAttributes) SetControl(v string) { + x.Control = v +} + +func (x *ExternalWorkflowExecutionSignaledEventAttributes) HasWorkflowExecution() bool { + if x == nil { + return false + } + return x.WorkflowExecution != nil +} + +func (x *ExternalWorkflowExecutionSignaledEventAttributes) ClearWorkflowExecution() { + x.WorkflowExecution = nil +} + +type ExternalWorkflowExecutionSignaledEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // id of the `SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED` event this event corresponds to + InitiatedEventId int64 + // Namespace of the workflow which was signaled. + // SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. + Namespace string + NamespaceId string + WorkflowExecution *v1.WorkflowExecution + // Deprecated. + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + Control string } -func (x *WorkflowExecutionContinuedAsNewEventAttributes) GetInitialVersioningBehavior() v12.ContinueAsNewVersioningBehavior { - if x != nil { - return x.InitialVersioningBehavior - } - return v12.ContinueAsNewVersioningBehavior(0) +func (b0 ExternalWorkflowExecutionSignaledEventAttributes_builder) Build() *ExternalWorkflowExecutionSignaledEventAttributes { + m0 := &ExternalWorkflowExecutionSignaledEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.InitiatedEventId = b.InitiatedEventId + x.Namespace = b.Namespace + x.NamespaceId = b.NamespaceId + x.WorkflowExecution = b.WorkflowExecution + x.Control = b.Control + return m0 } -type WorkflowTaskScheduledEventAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The task queue this workflow task was enqueued in, which could be a normal or sticky queue - TaskQueue *v11.TaskQueue `protobuf:"bytes,1,opt,name=task_queue,json=taskQueue,proto3" json:"task_queue,omitempty"` - // How long the worker has to process this task once receiving it before it times out - // - // (-- api-linter: core::0140::prepositions=disabled - // - // aip.dev/not-precedent: "to" is used to indicate interval. --) - StartToCloseTimeout *durationpb.Duration `protobuf:"bytes,2,opt,name=start_to_close_timeout,json=startToCloseTimeout,proto3" json:"start_to_close_timeout,omitempty"` - // Starting at 1, how many attempts there have been to complete this task - Attempt int32 `protobuf:"varint,3,opt,name=attempt,proto3" json:"attempt,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache +type UpsertWorkflowSearchAttributesEventAttributes struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + WorkflowTaskCompletedEventId int64 `protobuf:"varint,1,opt,name=workflow_task_completed_event_id,json=workflowTaskCompletedEventId,proto3" json:"workflow_task_completed_event_id,omitempty"` + SearchAttributes *v1.SearchAttributes `protobuf:"bytes,2,opt,name=search_attributes,json=searchAttributes,proto3" json:"search_attributes,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (x *WorkflowTaskScheduledEventAttributes) Reset() { - *x = WorkflowTaskScheduledEventAttributes{} - mi := &file_temporal_api_history_v1_message_proto_msgTypes[5] +func (x *UpsertWorkflowSearchAttributesEventAttributes) Reset() { + *x = UpsertWorkflowSearchAttributesEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[31] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } -func (x *WorkflowTaskScheduledEventAttributes) String() string { +func (x *UpsertWorkflowSearchAttributesEventAttributes) String() string { return protoimpl.X.MessageStringOf(x) } -func (*WorkflowTaskScheduledEventAttributes) ProtoMessage() {} +func (*UpsertWorkflowSearchAttributesEventAttributes) ProtoMessage() {} -func (x *WorkflowTaskScheduledEventAttributes) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_history_v1_message_proto_msgTypes[5] +func (x *UpsertWorkflowSearchAttributesEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[31] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -909,84 +6095,83 @@ func (x *WorkflowTaskScheduledEventAttributes) ProtoReflect() protoreflect.Messa return mi.MessageOf(x) } -// Deprecated: Use WorkflowTaskScheduledEventAttributes.ProtoReflect.Descriptor instead. -func (*WorkflowTaskScheduledEventAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_history_v1_message_proto_rawDescGZIP(), []int{5} -} - -func (x *WorkflowTaskScheduledEventAttributes) GetTaskQueue() *v11.TaskQueue { +func (x *UpsertWorkflowSearchAttributesEventAttributes) GetWorkflowTaskCompletedEventId() int64 { if x != nil { - return x.TaskQueue + return x.WorkflowTaskCompletedEventId } - return nil + return 0 } -func (x *WorkflowTaskScheduledEventAttributes) GetStartToCloseTimeout() *durationpb.Duration { +func (x *UpsertWorkflowSearchAttributesEventAttributes) GetSearchAttributes() *v1.SearchAttributes { if x != nil { - return x.StartToCloseTimeout + return x.SearchAttributes } return nil } -func (x *WorkflowTaskScheduledEventAttributes) GetAttempt() int32 { - if x != nil { - return x.Attempt +func (x *UpsertWorkflowSearchAttributesEventAttributes) SetWorkflowTaskCompletedEventId(v int64) { + x.WorkflowTaskCompletedEventId = v +} + +func (x *UpsertWorkflowSearchAttributesEventAttributes) SetSearchAttributes(v *v1.SearchAttributes) { + x.SearchAttributes = v +} + +func (x *UpsertWorkflowSearchAttributesEventAttributes) HasSearchAttributes() bool { + if x == nil { + return false } - return 0 + return x.SearchAttributes != nil } -type WorkflowTaskStartedEventAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The id of the `WORKFLOW_TASK_SCHEDULED` event this task corresponds to - ScheduledEventId int64 `protobuf:"varint,1,opt,name=scheduled_event_id,json=scheduledEventId,proto3" json:"scheduled_event_id,omitempty"` - // Identity of the worker who picked up this task - Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` - // This field is populated from the RecordWorkflowTaskStartedRequest. Matching service would - // set the request_id on the RecordWorkflowTaskStartedRequest to a new UUID. This is useful - // in case a RecordWorkflowTaskStarted call succeed but matching doesn't get that response, - // so matching could retry and history service would return success if the request_id matches. - // In that case, matching will continue to deliver the task to worker. Without this field, history - // service would return AlreadyStarted error, and matching would drop the task. - RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` - // True if this workflow should continue-as-new soon. See `suggest_continue_as_new_reasons` for why. - SuggestContinueAsNew bool `protobuf:"varint,4,opt,name=suggest_continue_as_new,json=suggestContinueAsNew,proto3" json:"suggest_continue_as_new,omitempty"` - // The reason(s) that suggest_continue_as_new is true, if it is. - // Unset if suggest_continue_as_new is false. - SuggestContinueAsNewReasons []v12.SuggestContinueAsNewReason `protobuf:"varint,8,rep,packed,name=suggest_continue_as_new_reasons,json=suggestContinueAsNewReasons,proto3,enum=temporal.api.enums.v1.SuggestContinueAsNewReason" json:"suggest_continue_as_new_reasons,omitempty"` - // Total history size in bytes, which the workflow might use to decide when to - // continue-as-new regardless of the suggestion. Note that history event count is - // just the event id of this event, so we don't include it explicitly here. - HistorySizeBytes int64 `protobuf:"varint,5,opt,name=history_size_bytes,json=historySizeBytes,proto3" json:"history_size_bytes,omitempty"` - // Version info of the worker to whom this task was dispatched. - // Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] - // - // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. - WorkerVersion *v1.WorkerVersionStamp `protobuf:"bytes,6,opt,name=worker_version,json=workerVersion,proto3" json:"worker_version,omitempty"` - // Used by server internally to properly reapply build ID redirects to an execution - // when rebuilding it from events. - // Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] - // - // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. - BuildIdRedirectCounter int64 `protobuf:"varint,7,opt,name=build_id_redirect_counter,json=buildIdRedirectCounter,proto3" json:"build_id_redirect_counter,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache +func (x *UpsertWorkflowSearchAttributesEventAttributes) ClearSearchAttributes() { + x.SearchAttributes = nil } -func (x *WorkflowTaskStartedEventAttributes) Reset() { - *x = WorkflowTaskStartedEventAttributes{} - mi := &file_temporal_api_history_v1_message_proto_msgTypes[6] +type UpsertWorkflowSearchAttributesEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + WorkflowTaskCompletedEventId int64 + SearchAttributes *v1.SearchAttributes +} + +func (b0 UpsertWorkflowSearchAttributesEventAttributes_builder) Build() *UpsertWorkflowSearchAttributesEventAttributes { + m0 := &UpsertWorkflowSearchAttributesEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.WorkflowTaskCompletedEventId = b.WorkflowTaskCompletedEventId + x.SearchAttributes = b.SearchAttributes + return m0 +} + +type WorkflowPropertiesModifiedEventAttributes struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + WorkflowTaskCompletedEventId int64 `protobuf:"varint,1,opt,name=workflow_task_completed_event_id,json=workflowTaskCompletedEventId,proto3" json:"workflow_task_completed_event_id,omitempty"` + // If set, update the workflow memo with the provided values. The values will be merged with + // the existing memo. If the user wants to delete values, a default/empty Payload should be + // used as the value for the key being deleted. + UpsertedMemo *v1.Memo `protobuf:"bytes,2,opt,name=upserted_memo,json=upsertedMemo,proto3" json:"upserted_memo,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowPropertiesModifiedEventAttributes) Reset() { + *x = WorkflowPropertiesModifiedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[32] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } -func (x *WorkflowTaskStartedEventAttributes) String() string { +func (x *WorkflowPropertiesModifiedEventAttributes) String() string { return protoimpl.X.MessageStringOf(x) } -func (*WorkflowTaskStartedEventAttributes) ProtoMessage() {} +func (*WorkflowPropertiesModifiedEventAttributes) ProtoMessage() {} -func (x *WorkflowTaskStartedEventAttributes) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_history_v1_message_proto_msgTypes[6] +func (x *WorkflowPropertiesModifiedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[32] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -997,139 +6182,118 @@ func (x *WorkflowTaskStartedEventAttributes) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use WorkflowTaskStartedEventAttributes.ProtoReflect.Descriptor instead. -func (*WorkflowTaskStartedEventAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_history_v1_message_proto_rawDescGZIP(), []int{6} -} - -func (x *WorkflowTaskStartedEventAttributes) GetScheduledEventId() int64 { +func (x *WorkflowPropertiesModifiedEventAttributes) GetWorkflowTaskCompletedEventId() int64 { if x != nil { - return x.ScheduledEventId + return x.WorkflowTaskCompletedEventId } return 0 } -func (x *WorkflowTaskStartedEventAttributes) GetIdentity() string { +func (x *WorkflowPropertiesModifiedEventAttributes) GetUpsertedMemo() *v1.Memo { if x != nil { - return x.Identity + return x.UpsertedMemo } - return "" + return nil } -func (x *WorkflowTaskStartedEventAttributes) GetRequestId() string { - if x != nil { - return x.RequestId - } - return "" +func (x *WorkflowPropertiesModifiedEventAttributes) SetWorkflowTaskCompletedEventId(v int64) { + x.WorkflowTaskCompletedEventId = v } -func (x *WorkflowTaskStartedEventAttributes) GetSuggestContinueAsNew() bool { - if x != nil { - return x.SuggestContinueAsNew - } - return false +func (x *WorkflowPropertiesModifiedEventAttributes) SetUpsertedMemo(v *v1.Memo) { + x.UpsertedMemo = v } -func (x *WorkflowTaskStartedEventAttributes) GetSuggestContinueAsNewReasons() []v12.SuggestContinueAsNewReason { - if x != nil { - return x.SuggestContinueAsNewReasons +func (x *WorkflowPropertiesModifiedEventAttributes) HasUpsertedMemo() bool { + if x == nil { + return false } - return nil + return x.UpsertedMemo != nil } -func (x *WorkflowTaskStartedEventAttributes) GetHistorySizeBytes() int64 { - if x != nil { - return x.HistorySizeBytes - } - return 0 +func (x *WorkflowPropertiesModifiedEventAttributes) ClearUpsertedMemo() { + x.UpsertedMemo = nil } -// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. -func (x *WorkflowTaskStartedEventAttributes) GetWorkerVersion() *v1.WorkerVersionStamp { - if x != nil { - return x.WorkerVersion - } - return nil +type WorkflowPropertiesModifiedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + WorkflowTaskCompletedEventId int64 + // If set, update the workflow memo with the provided values. The values will be merged with + // the existing memo. If the user wants to delete values, a default/empty Payload should be + // used as the value for the key being deleted. + UpsertedMemo *v1.Memo } -// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. -func (x *WorkflowTaskStartedEventAttributes) GetBuildIdRedirectCounter() int64 { - if x != nil { - return x.BuildIdRedirectCounter - } - return 0 +func (b0 WorkflowPropertiesModifiedEventAttributes_builder) Build() *WorkflowPropertiesModifiedEventAttributes { + m0 := &WorkflowPropertiesModifiedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.WorkflowTaskCompletedEventId = b.WorkflowTaskCompletedEventId + x.UpsertedMemo = b.UpsertedMemo + return m0 } -type WorkflowTaskCompletedEventAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The id of the `WORKFLOW_TASK_SCHEDULED` event this task corresponds to - ScheduledEventId int64 `protobuf:"varint,1,opt,name=scheduled_event_id,json=scheduledEventId,proto3" json:"scheduled_event_id,omitempty"` - // The id of the `WORKFLOW_TASK_STARTED` event this task corresponds to - StartedEventId int64 `protobuf:"varint,2,opt,name=started_event_id,json=startedEventId,proto3" json:"started_event_id,omitempty"` - // Identity of the worker who completed this task - Identity string `protobuf:"bytes,3,opt,name=identity,proto3" json:"identity,omitempty"` - // Binary ID of the worker who completed this task - // Deprecated. Replaced with `deployment_version`. - // - // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. - BinaryChecksum string `protobuf:"bytes,4,opt,name=binary_checksum,json=binaryChecksum,proto3" json:"binary_checksum,omitempty"` - // Version info of the worker who processed this workflow task. If present, the `build_id` field - // within is also used as `binary_checksum`, which may be omitted in that case (it may also be - // populated to preserve compatibility). - // Deprecated. Use `deployment_version` and `versioning_behavior` instead. - // - // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. - WorkerVersion *v1.WorkerVersionStamp `protobuf:"bytes,5,opt,name=worker_version,json=workerVersion,proto3" json:"worker_version,omitempty"` - // Data the SDK wishes to record for itself, but server need not interpret, and does not - // directly impact workflow state. - SdkMetadata *v16.WorkflowTaskCompletedMetadata `protobuf:"bytes,6,opt,name=sdk_metadata,json=sdkMetadata,proto3" json:"sdk_metadata,omitempty"` - // Local usage data sent during workflow task completion and recorded here for posterity - MeteringMetadata *v1.MeteringMetadata `protobuf:"bytes,13,opt,name=metering_metadata,json=meteringMetadata,proto3" json:"metering_metadata,omitempty"` - // The deployment that completed this task. May or may not be set for unversioned workers, - // depending on whether a value is sent by the SDK. This value updates workflow execution's - // `versioning_info.deployment`. - // Deprecated. Replaced with `deployment_version`. +type StartChildWorkflowExecutionInitiatedEventAttributes struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // Namespace of the child workflow. + // SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. + Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` + NamespaceId string `protobuf:"bytes,18,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"` + WorkflowId string `protobuf:"bytes,2,opt,name=workflow_id,json=workflowId,proto3" json:"workflow_id,omitempty"` + WorkflowType *v1.WorkflowType `protobuf:"bytes,3,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type,omitempty"` + TaskQueue *v11.TaskQueue `protobuf:"bytes,4,opt,name=task_queue,json=taskQueue,proto3" json:"task_queue,omitempty"` + Input *v1.Payloads `protobuf:"bytes,5,opt,name=input,proto3" json:"input,omitempty"` + // Total workflow execution timeout including retries and continue as new. + WorkflowExecutionTimeout *durationpb.Duration `protobuf:"bytes,6,opt,name=workflow_execution_timeout,json=workflowExecutionTimeout,proto3" json:"workflow_execution_timeout,omitempty"` + // Timeout of a single workflow run. + WorkflowRunTimeout *durationpb.Duration `protobuf:"bytes,7,opt,name=workflow_run_timeout,json=workflowRunTimeout,proto3" json:"workflow_run_timeout,omitempty"` + // Timeout of a single workflow task. + WorkflowTaskTimeout *durationpb.Duration `protobuf:"bytes,8,opt,name=workflow_task_timeout,json=workflowTaskTimeout,proto3" json:"workflow_task_timeout,omitempty"` + // Default: PARENT_CLOSE_POLICY_TERMINATE. + ParentClosePolicy v12.ParentClosePolicy `protobuf:"varint,9,opt,name=parent_close_policy,json=parentClosePolicy,proto3,enum=temporal.api.enums.v1.ParentClosePolicy" json:"parent_close_policy,omitempty"` + // Deprecated. // // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. - Deployment *v15.Deployment `protobuf:"bytes,7,opt,name=deployment,proto3" json:"deployment,omitempty"` - // Versioning behavior sent by the worker that completed this task for this particular workflow - // execution. UNSPECIFIED means the task was completed by an unversioned worker. This value - // updates workflow execution's `versioning_info.behavior`. - VersioningBehavior v12.VersioningBehavior `protobuf:"varint,8,opt,name=versioning_behavior,json=versioningBehavior,proto3,enum=temporal.api.enums.v1.VersioningBehavior" json:"versioning_behavior,omitempty"` - // The Worker Deployment Version that completed this task. Must be set if `versioning_behavior` - // is set. This value updates workflow execution's `versioning_info.version`. - // Experimental. Worker Deployments are experimental and might significantly change in the future. - // Deprecated. Replaced with `deployment_version`. + Control string `protobuf:"bytes,10,opt,name=control,proto3" json:"control,omitempty"` + // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + WorkflowTaskCompletedEventId int64 `protobuf:"varint,11,opt,name=workflow_task_completed_event_id,json=workflowTaskCompletedEventId,proto3" json:"workflow_task_completed_event_id,omitempty"` + // Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE. + WorkflowIdReusePolicy v12.WorkflowIdReusePolicy `protobuf:"varint,12,opt,name=workflow_id_reuse_policy,json=workflowIdReusePolicy,proto3,enum=temporal.api.enums.v1.WorkflowIdReusePolicy" json:"workflow_id_reuse_policy,omitempty"` + RetryPolicy *v1.RetryPolicy `protobuf:"bytes,13,opt,name=retry_policy,json=retryPolicy,proto3" json:"retry_policy,omitempty"` + // If this child runs on a cron schedule, it will appear here + CronSchedule string `protobuf:"bytes,14,opt,name=cron_schedule,json=cronSchedule,proto3" json:"cron_schedule,omitempty"` + Header *v1.Header `protobuf:"bytes,15,opt,name=header,proto3" json:"header,omitempty"` + Memo *v1.Memo `protobuf:"bytes,16,opt,name=memo,proto3" json:"memo,omitempty"` + SearchAttributes *v1.SearchAttributes `protobuf:"bytes,17,opt,name=search_attributes,json=searchAttributes,proto3" json:"search_attributes,omitempty"` + // If this is set, the child workflow inherits the Build ID of the parent. Otherwise, the assignment + // rules of the child's Task Queue will be used to independently assign a Build ID to it. + // Deprecated. Only considered for versioning v0.2. // // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. - WorkerDeploymentVersion string `protobuf:"bytes,9,opt,name=worker_deployment_version,json=workerDeploymentVersion,proto3" json:"worker_deployment_version,omitempty"` - // The name of Worker Deployment that completed this task. Must be set if `versioning_behavior` - // is set. This value updates workflow execution's `worker_deployment_name`. - // Experimental. Worker Deployments are experimental and might significantly change in the future. - WorkerDeploymentName string `protobuf:"bytes,10,opt,name=worker_deployment_name,json=workerDeploymentName,proto3" json:"worker_deployment_name,omitempty"` - // The Worker Deployment Version that completed this task. Must be set if `versioning_behavior` - // is set. This value updates workflow execution's `versioning_info.deployment_version`. - // Experimental. Worker Deployments are experimental and might significantly change in the future. - DeploymentVersion *v15.WorkerDeploymentVersion `protobuf:"bytes,11,opt,name=deployment_version,json=deploymentVersion,proto3" json:"deployment_version,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + InheritBuildId bool `protobuf:"varint,19,opt,name=inherit_build_id,json=inheritBuildId,proto3" json:"inherit_build_id,omitempty"` + // Priority metadata + Priority *v1.Priority `protobuf:"bytes,20,opt,name=priority,proto3" json:"priority,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (x *WorkflowTaskCompletedEventAttributes) Reset() { - *x = WorkflowTaskCompletedEventAttributes{} - mi := &file_temporal_api_history_v1_message_proto_msgTypes[7] +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) Reset() { + *x = StartChildWorkflowExecutionInitiatedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[33] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } -func (x *WorkflowTaskCompletedEventAttributes) String() string { +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) String() string { return protoimpl.X.MessageStringOf(x) } -func (*WorkflowTaskCompletedEventAttributes) ProtoMessage() {} +func (*StartChildWorkflowExecutionInitiatedEventAttributes) ProtoMessage() {} -func (x *WorkflowTaskCompletedEventAttributes) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_history_v1_message_proto_msgTypes[7] +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[33] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1140,211 +6304,457 @@ func (x *WorkflowTaskCompletedEventAttributes) ProtoReflect() protoreflect.Messa return mi.MessageOf(x) } -// Deprecated: Use WorkflowTaskCompletedEventAttributes.ProtoReflect.Descriptor instead. -func (*WorkflowTaskCompletedEventAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_history_v1_message_proto_rawDescGZIP(), []int{7} +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetNamespace() string { + if x != nil { + return x.Namespace + } + return "" } -func (x *WorkflowTaskCompletedEventAttributes) GetScheduledEventId() int64 { +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetNamespaceId() string { if x != nil { - return x.ScheduledEventId + return x.NamespaceId } - return 0 + return "" } -func (x *WorkflowTaskCompletedEventAttributes) GetStartedEventId() int64 { +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetWorkflowId() string { if x != nil { - return x.StartedEventId + return x.WorkflowId } - return 0 + return "" } -func (x *WorkflowTaskCompletedEventAttributes) GetIdentity() string { +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetWorkflowType() *v1.WorkflowType { if x != nil { - return x.Identity + return x.WorkflowType } - return "" + return nil } -// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. -func (x *WorkflowTaskCompletedEventAttributes) GetBinaryChecksum() string { +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetTaskQueue() *v11.TaskQueue { if x != nil { - return x.BinaryChecksum + return x.TaskQueue } - return "" + return nil } -// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. -func (x *WorkflowTaskCompletedEventAttributes) GetWorkerVersion() *v1.WorkerVersionStamp { +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetInput() *v1.Payloads { if x != nil { - return x.WorkerVersion + return x.Input } return nil } -func (x *WorkflowTaskCompletedEventAttributes) GetSdkMetadata() *v16.WorkflowTaskCompletedMetadata { +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetWorkflowExecutionTimeout() *durationpb.Duration { if x != nil { - return x.SdkMetadata + return x.WorkflowExecutionTimeout } return nil } -func (x *WorkflowTaskCompletedEventAttributes) GetMeteringMetadata() *v1.MeteringMetadata { +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetWorkflowRunTimeout() *durationpb.Duration { if x != nil { - return x.MeteringMetadata + return x.WorkflowRunTimeout } return nil } -// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. -func (x *WorkflowTaskCompletedEventAttributes) GetDeployment() *v15.Deployment { +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetWorkflowTaskTimeout() *durationpb.Duration { if x != nil { - return x.Deployment + return x.WorkflowTaskTimeout } return nil } -func (x *WorkflowTaskCompletedEventAttributes) GetVersioningBehavior() v12.VersioningBehavior { +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetParentClosePolicy() v12.ParentClosePolicy { if x != nil { - return x.VersioningBehavior + return x.ParentClosePolicy } - return v12.VersioningBehavior(0) + return v12.ParentClosePolicy(0) } // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. -func (x *WorkflowTaskCompletedEventAttributes) GetWorkerDeploymentVersion() string { +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetControl() string { if x != nil { - return x.WorkerDeploymentVersion + return x.Control } return "" } -func (x *WorkflowTaskCompletedEventAttributes) GetWorkerDeploymentName() string { +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetWorkflowTaskCompletedEventId() int64 { if x != nil { - return x.WorkerDeploymentName + return x.WorkflowTaskCompletedEventId } - return "" + return 0 } -func (x *WorkflowTaskCompletedEventAttributes) GetDeploymentVersion() *v15.WorkerDeploymentVersion { +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetWorkflowIdReusePolicy() v12.WorkflowIdReusePolicy { if x != nil { - return x.DeploymentVersion + return x.WorkflowIdReusePolicy } - return nil + return v12.WorkflowIdReusePolicy(0) } -type WorkflowTaskTimedOutEventAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The id of the `WORKFLOW_TASK_SCHEDULED` event this task corresponds to - ScheduledEventId int64 `protobuf:"varint,1,opt,name=scheduled_event_id,json=scheduledEventId,proto3" json:"scheduled_event_id,omitempty"` - // The id of the `WORKFLOW_TASK_STARTED` event this task corresponds to - StartedEventId int64 `protobuf:"varint,2,opt,name=started_event_id,json=startedEventId,proto3" json:"started_event_id,omitempty"` - TimeoutType v12.TimeoutType `protobuf:"varint,3,opt,name=timeout_type,json=timeoutType,proto3,enum=temporal.api.enums.v1.TimeoutType" json:"timeout_type,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetRetryPolicy() *v1.RetryPolicy { + if x != nil { + return x.RetryPolicy + } + return nil } -func (x *WorkflowTaskTimedOutEventAttributes) Reset() { - *x = WorkflowTaskTimedOutEventAttributes{} - mi := &file_temporal_api_history_v1_message_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetCronSchedule() string { + if x != nil { + return x.CronSchedule + } + return "" } -func (x *WorkflowTaskTimedOutEventAttributes) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetHeader() *v1.Header { + if x != nil { + return x.Header + } + return nil } -func (*WorkflowTaskTimedOutEventAttributes) ProtoMessage() {} - -func (x *WorkflowTaskTimedOutEventAttributes) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_history_v1_message_proto_msgTypes[8] +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetMemo() *v1.Memo { if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms + return x.Memo } - return mi.MessageOf(x) + return nil } -// Deprecated: Use WorkflowTaskTimedOutEventAttributes.ProtoReflect.Descriptor instead. -func (*WorkflowTaskTimedOutEventAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_history_v1_message_proto_rawDescGZIP(), []int{8} +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetSearchAttributes() *v1.SearchAttributes { + if x != nil { + return x.SearchAttributes + } + return nil } -func (x *WorkflowTaskTimedOutEventAttributes) GetScheduledEventId() int64 { +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetInheritBuildId() bool { if x != nil { - return x.ScheduledEventId + return x.InheritBuildId } - return 0 + return false } -func (x *WorkflowTaskTimedOutEventAttributes) GetStartedEventId() int64 { +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetPriority() *v1.Priority { if x != nil { - return x.StartedEventId + return x.Priority } - return 0 + return nil } -func (x *WorkflowTaskTimedOutEventAttributes) GetTimeoutType() v12.TimeoutType { - if x != nil { - return x.TimeoutType +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) SetNamespace(v string) { + x.Namespace = v +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) SetNamespaceId(v string) { + x.NamespaceId = v +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) SetWorkflowId(v string) { + x.WorkflowId = v +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) SetWorkflowType(v *v1.WorkflowType) { + x.WorkflowType = v +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) SetTaskQueue(v *v11.TaskQueue) { + x.TaskQueue = v +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) SetInput(v *v1.Payloads) { + x.Input = v +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) SetWorkflowExecutionTimeout(v *durationpb.Duration) { + x.WorkflowExecutionTimeout = v +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) SetWorkflowRunTimeout(v *durationpb.Duration) { + x.WorkflowRunTimeout = v +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) SetWorkflowTaskTimeout(v *durationpb.Duration) { + x.WorkflowTaskTimeout = v +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) SetParentClosePolicy(v v12.ParentClosePolicy) { + x.ParentClosePolicy = v +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) SetControl(v string) { + x.Control = v +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) SetWorkflowTaskCompletedEventId(v int64) { + x.WorkflowTaskCompletedEventId = v +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) SetWorkflowIdReusePolicy(v v12.WorkflowIdReusePolicy) { + x.WorkflowIdReusePolicy = v +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) SetRetryPolicy(v *v1.RetryPolicy) { + x.RetryPolicy = v +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) SetCronSchedule(v string) { + x.CronSchedule = v +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) SetHeader(v *v1.Header) { + x.Header = v +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) SetMemo(v *v1.Memo) { + x.Memo = v +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) SetSearchAttributes(v *v1.SearchAttributes) { + x.SearchAttributes = v +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) SetInheritBuildId(v bool) { + x.InheritBuildId = v +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) SetPriority(v *v1.Priority) { + x.Priority = v +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) HasWorkflowType() bool { + if x == nil { + return false } - return v12.TimeoutType(0) + return x.WorkflowType != nil } -type WorkflowTaskFailedEventAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The id of the `WORKFLOW_TASK_SCHEDULED` event this task corresponds to - ScheduledEventId int64 `protobuf:"varint,1,opt,name=scheduled_event_id,json=scheduledEventId,proto3" json:"scheduled_event_id,omitempty"` - // The id of the `WORKFLOW_TASK_STARTED` event this task corresponds to - StartedEventId int64 `protobuf:"varint,2,opt,name=started_event_id,json=startedEventId,proto3" json:"started_event_id,omitempty"` - Cause v12.WorkflowTaskFailedCause `protobuf:"varint,3,opt,name=cause,proto3,enum=temporal.api.enums.v1.WorkflowTaskFailedCause" json:"cause,omitempty"` - // The failure details - Failure *v13.Failure `protobuf:"bytes,4,opt,name=failure,proto3" json:"failure,omitempty"` - // If a worker explicitly failed this task, this field contains the worker's identity. - // When the server generates the failure internally this field is set as 'history-service'. - Identity string `protobuf:"bytes,5,opt,name=identity,proto3" json:"identity,omitempty"` - // The original run id of the workflow. For reset workflow. - BaseRunId string `protobuf:"bytes,6,opt,name=base_run_id,json=baseRunId,proto3" json:"base_run_id,omitempty"` - // If the workflow is being reset, the new run id. - NewRunId string `protobuf:"bytes,7,opt,name=new_run_id,json=newRunId,proto3" json:"new_run_id,omitempty"` - // Version of the event where the history branch was forked. Used by multi-cluster replication - // during resets to identify the correct history branch. - ForkEventVersion int64 `protobuf:"varint,8,opt,name=fork_event_version,json=forkEventVersion,proto3" json:"fork_event_version,omitempty"` - // Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] - // If a worker explicitly failed this task, its binary id +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) HasTaskQueue() bool { + if x == nil { + return false + } + return x.TaskQueue != nil +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) HasInput() bool { + if x == nil { + return false + } + return x.Input != nil +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) HasWorkflowExecutionTimeout() bool { + if x == nil { + return false + } + return x.WorkflowExecutionTimeout != nil +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) HasWorkflowRunTimeout() bool { + if x == nil { + return false + } + return x.WorkflowRunTimeout != nil +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) HasWorkflowTaskTimeout() bool { + if x == nil { + return false + } + return x.WorkflowTaskTimeout != nil +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) HasRetryPolicy() bool { + if x == nil { + return false + } + return x.RetryPolicy != nil +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) HasHeader() bool { + if x == nil { + return false + } + return x.Header != nil +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) HasMemo() bool { + if x == nil { + return false + } + return x.Memo != nil +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) HasSearchAttributes() bool { + if x == nil { + return false + } + return x.SearchAttributes != nil +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) HasPriority() bool { + if x == nil { + return false + } + return x.Priority != nil +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) ClearWorkflowType() { + x.WorkflowType = nil +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) ClearTaskQueue() { + x.TaskQueue = nil +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) ClearInput() { + x.Input = nil +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) ClearWorkflowExecutionTimeout() { + x.WorkflowExecutionTimeout = nil +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) ClearWorkflowRunTimeout() { + x.WorkflowRunTimeout = nil +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) ClearWorkflowTaskTimeout() { + x.WorkflowTaskTimeout = nil +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) ClearRetryPolicy() { + x.RetryPolicy = nil +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) ClearHeader() { + x.Header = nil +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) ClearMemo() { + x.Memo = nil +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) ClearSearchAttributes() { + x.SearchAttributes = nil +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) ClearPriority() { + x.Priority = nil +} + +type StartChildWorkflowExecutionInitiatedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Namespace of the child workflow. + // SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. + Namespace string + NamespaceId string + WorkflowId string + WorkflowType *v1.WorkflowType + TaskQueue *v11.TaskQueue + Input *v1.Payloads + // Total workflow execution timeout including retries and continue as new. + WorkflowExecutionTimeout *durationpb.Duration + // Timeout of a single workflow run. + WorkflowRunTimeout *durationpb.Duration + // Timeout of a single workflow task. + WorkflowTaskTimeout *durationpb.Duration + // Default: PARENT_CLOSE_POLICY_TERMINATE. + ParentClosePolicy v12.ParentClosePolicy + // Deprecated. // // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. - BinaryChecksum string `protobuf:"bytes,9,opt,name=binary_checksum,json=binaryChecksum,proto3" json:"binary_checksum,omitempty"` - // Version info of the worker who processed this workflow task. If present, the `build_id` field - // within is also used as `binary_checksum`, which may be omitted in that case (it may also be - // populated to preserve compatibility). - // Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] + Control string + // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + WorkflowTaskCompletedEventId int64 + // Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE. + WorkflowIdReusePolicy v12.WorkflowIdReusePolicy + RetryPolicy *v1.RetryPolicy + // If this child runs on a cron schedule, it will appear here + CronSchedule string + Header *v1.Header + Memo *v1.Memo + SearchAttributes *v1.SearchAttributes + // If this is set, the child workflow inherits the Build ID of the parent. Otherwise, the assignment + // rules of the child's Task Queue will be used to independently assign a Build ID to it. + // Deprecated. Only considered for versioning v0.2. // // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. - WorkerVersion *v1.WorkerVersionStamp `protobuf:"bytes,10,opt,name=worker_version,json=workerVersion,proto3" json:"worker_version,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + InheritBuildId bool + // Priority metadata + Priority *v1.Priority +} + +func (b0 StartChildWorkflowExecutionInitiatedEventAttributes_builder) Build() *StartChildWorkflowExecutionInitiatedEventAttributes { + m0 := &StartChildWorkflowExecutionInitiatedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.NamespaceId = b.NamespaceId + x.WorkflowId = b.WorkflowId + x.WorkflowType = b.WorkflowType + x.TaskQueue = b.TaskQueue + x.Input = b.Input + x.WorkflowExecutionTimeout = b.WorkflowExecutionTimeout + x.WorkflowRunTimeout = b.WorkflowRunTimeout + x.WorkflowTaskTimeout = b.WorkflowTaskTimeout + x.ParentClosePolicy = b.ParentClosePolicy + x.Control = b.Control + x.WorkflowTaskCompletedEventId = b.WorkflowTaskCompletedEventId + x.WorkflowIdReusePolicy = b.WorkflowIdReusePolicy + x.RetryPolicy = b.RetryPolicy + x.CronSchedule = b.CronSchedule + x.Header = b.Header + x.Memo = b.Memo + x.SearchAttributes = b.SearchAttributes + x.InheritBuildId = b.InheritBuildId + x.Priority = b.Priority + return m0 } -func (x *WorkflowTaskFailedEventAttributes) Reset() { - *x = WorkflowTaskFailedEventAttributes{} - mi := &file_temporal_api_history_v1_message_proto_msgTypes[9] +type StartChildWorkflowExecutionFailedEventAttributes struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // Namespace of the child workflow. + // SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. + Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` + NamespaceId string `protobuf:"bytes,8,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"` + WorkflowId string `protobuf:"bytes,2,opt,name=workflow_id,json=workflowId,proto3" json:"workflow_id,omitempty"` + WorkflowType *v1.WorkflowType `protobuf:"bytes,3,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type,omitempty"` + Cause v12.StartChildWorkflowExecutionFailedCause `protobuf:"varint,4,opt,name=cause,proto3,enum=temporal.api.enums.v1.StartChildWorkflowExecutionFailedCause" json:"cause,omitempty"` + // Deprecated. + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + Control string `protobuf:"bytes,5,opt,name=control,proto3" json:"control,omitempty"` + // Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to + InitiatedEventId int64 `protobuf:"varint,6,opt,name=initiated_event_id,json=initiatedEventId,proto3" json:"initiated_event_id,omitempty"` + // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + WorkflowTaskCompletedEventId int64 `protobuf:"varint,7,opt,name=workflow_task_completed_event_id,json=workflowTaskCompletedEventId,proto3" json:"workflow_task_completed_event_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *StartChildWorkflowExecutionFailedEventAttributes) Reset() { + *x = StartChildWorkflowExecutionFailedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[34] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } -func (x *WorkflowTaskFailedEventAttributes) String() string { +func (x *StartChildWorkflowExecutionFailedEventAttributes) String() string { return protoimpl.X.MessageStringOf(x) } -func (*WorkflowTaskFailedEventAttributes) ProtoMessage() {} +func (*StartChildWorkflowExecutionFailedEventAttributes) ProtoMessage() {} -func (x *WorkflowTaskFailedEventAttributes) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_history_v1_message_proto_msgTypes[9] +func (x *StartChildWorkflowExecutionFailedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[34] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1355,406 +6765,340 @@ func (x *WorkflowTaskFailedEventAttributes) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use WorkflowTaskFailedEventAttributes.ProtoReflect.Descriptor instead. -func (*WorkflowTaskFailedEventAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_history_v1_message_proto_rawDescGZIP(), []int{9} -} - -func (x *WorkflowTaskFailedEventAttributes) GetScheduledEventId() int64 { +func (x *StartChildWorkflowExecutionFailedEventAttributes) GetNamespace() string { if x != nil { - return x.ScheduledEventId + return x.Namespace } - return 0 + return "" } -func (x *WorkflowTaskFailedEventAttributes) GetStartedEventId() int64 { +func (x *StartChildWorkflowExecutionFailedEventAttributes) GetNamespaceId() string { if x != nil { - return x.StartedEventId + return x.NamespaceId } - return 0 + return "" } -func (x *WorkflowTaskFailedEventAttributes) GetCause() v12.WorkflowTaskFailedCause { +func (x *StartChildWorkflowExecutionFailedEventAttributes) GetWorkflowId() string { if x != nil { - return x.Cause + return x.WorkflowId } - return v12.WorkflowTaskFailedCause(0) + return "" } -func (x *WorkflowTaskFailedEventAttributes) GetFailure() *v13.Failure { +func (x *StartChildWorkflowExecutionFailedEventAttributes) GetWorkflowType() *v1.WorkflowType { if x != nil { - return x.Failure + return x.WorkflowType } return nil } -func (x *WorkflowTaskFailedEventAttributes) GetIdentity() string { +func (x *StartChildWorkflowExecutionFailedEventAttributes) GetCause() v12.StartChildWorkflowExecutionFailedCause { if x != nil { - return x.Identity + return x.Cause } - return "" + return v12.StartChildWorkflowExecutionFailedCause(0) } -func (x *WorkflowTaskFailedEventAttributes) GetBaseRunId() string { +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *StartChildWorkflowExecutionFailedEventAttributes) GetControl() string { if x != nil { - return x.BaseRunId + return x.Control } return "" } -func (x *WorkflowTaskFailedEventAttributes) GetNewRunId() string { +func (x *StartChildWorkflowExecutionFailedEventAttributes) GetInitiatedEventId() int64 { if x != nil { - return x.NewRunId + return x.InitiatedEventId } - return "" + return 0 } -func (x *WorkflowTaskFailedEventAttributes) GetForkEventVersion() int64 { +func (x *StartChildWorkflowExecutionFailedEventAttributes) GetWorkflowTaskCompletedEventId() int64 { if x != nil { - return x.ForkEventVersion + return x.WorkflowTaskCompletedEventId } return 0 } -// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. -func (x *WorkflowTaskFailedEventAttributes) GetBinaryChecksum() string { - if x != nil { - return x.BinaryChecksum - } - return "" +func (x *StartChildWorkflowExecutionFailedEventAttributes) SetNamespace(v string) { + x.Namespace = v } -// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. -func (x *WorkflowTaskFailedEventAttributes) GetWorkerVersion() *v1.WorkerVersionStamp { - if x != nil { - return x.WorkerVersion - } - return nil +func (x *StartChildWorkflowExecutionFailedEventAttributes) SetNamespaceId(v string) { + x.NamespaceId = v } -type ActivityTaskScheduledEventAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The worker/user assigned identifier for the activity - ActivityId string `protobuf:"bytes,1,opt,name=activity_id,json=activityId,proto3" json:"activity_id,omitempty"` - ActivityType *v1.ActivityType `protobuf:"bytes,2,opt,name=activity_type,json=activityType,proto3" json:"activity_type,omitempty"` - TaskQueue *v11.TaskQueue `protobuf:"bytes,4,opt,name=task_queue,json=taskQueue,proto3" json:"task_queue,omitempty"` - Header *v1.Header `protobuf:"bytes,5,opt,name=header,proto3" json:"header,omitempty"` - Input *v1.Payloads `protobuf:"bytes,6,opt,name=input,proto3" json:"input,omitempty"` - // Indicates how long the caller is willing to wait for an activity completion. Limits how long - // retries will be attempted. Either this or `start_to_close_timeout` must be specified. - // - // (-- api-linter: core::0140::prepositions=disabled - // - // aip.dev/not-precedent: "to" is used to indicate interval. --) - ScheduleToCloseTimeout *durationpb.Duration `protobuf:"bytes,7,opt,name=schedule_to_close_timeout,json=scheduleToCloseTimeout,proto3" json:"schedule_to_close_timeout,omitempty"` - // Limits time an activity task can stay in a task queue before a worker picks it up. This - // timeout is always non retryable, as all a retry would achieve is to put it back into the same - // queue. Defaults to `schedule_to_close_timeout` or workflow execution timeout if not - // specified. - // - // (-- api-linter: core::0140::prepositions=disabled - // - // aip.dev/not-precedent: "to" is used to indicate interval. --) - ScheduleToStartTimeout *durationpb.Duration `protobuf:"bytes,8,opt,name=schedule_to_start_timeout,json=scheduleToStartTimeout,proto3" json:"schedule_to_start_timeout,omitempty"` - // Maximum time an activity is allowed to execute after being picked up by a worker. This - // timeout is always retryable. Either this or `schedule_to_close_timeout` must be - // specified. - // - // (-- api-linter: core::0140::prepositions=disabled - // - // aip.dev/not-precedent: "to" is used to indicate interval. --) - StartToCloseTimeout *durationpb.Duration `protobuf:"bytes,9,opt,name=start_to_close_timeout,json=startToCloseTimeout,proto3" json:"start_to_close_timeout,omitempty"` - // Maximum permitted time between successful worker heartbeats. - HeartbeatTimeout *durationpb.Duration `protobuf:"bytes,10,opt,name=heartbeat_timeout,json=heartbeatTimeout,proto3" json:"heartbeat_timeout,omitempty"` - // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with - WorkflowTaskCompletedEventId int64 `protobuf:"varint,11,opt,name=workflow_task_completed_event_id,json=workflowTaskCompletedEventId,proto3" json:"workflow_task_completed_event_id,omitempty"` - // Activities are assigned a default retry policy controlled by the service's dynamic - // configuration. Retries will happen up to `schedule_to_close_timeout`. To disable retries set - // retry_policy.maximum_attempts to 1. - RetryPolicy *v1.RetryPolicy `protobuf:"bytes,12,opt,name=retry_policy,json=retryPolicy,proto3" json:"retry_policy,omitempty"` - // If this is set, the activity would be assigned to the Build ID of the workflow. Otherwise, - // Assignment rules of the activity's Task Queue will be used to determine the Build ID. - // Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] - // - // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. - UseWorkflowBuildId bool `protobuf:"varint,13,opt,name=use_workflow_build_id,json=useWorkflowBuildId,proto3" json:"use_workflow_build_id,omitempty"` - // Priority metadata. If this message is not present, or any fields are not - // present, they inherit the values from the workflow. - Priority *v1.Priority `protobuf:"bytes,14,opt,name=priority,proto3" json:"priority,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache +func (x *StartChildWorkflowExecutionFailedEventAttributes) SetWorkflowId(v string) { + x.WorkflowId = v } -func (x *ActivityTaskScheduledEventAttributes) Reset() { - *x = ActivityTaskScheduledEventAttributes{} - mi := &file_temporal_api_history_v1_message_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *StartChildWorkflowExecutionFailedEventAttributes) SetWorkflowType(v *v1.WorkflowType) { + x.WorkflowType = v } -func (x *ActivityTaskScheduledEventAttributes) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *StartChildWorkflowExecutionFailedEventAttributes) SetCause(v v12.StartChildWorkflowExecutionFailedCause) { + x.Cause = v } -func (*ActivityTaskScheduledEventAttributes) ProtoMessage() {} +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *StartChildWorkflowExecutionFailedEventAttributes) SetControl(v string) { + x.Control = v +} -func (x *ActivityTaskScheduledEventAttributes) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_history_v1_message_proto_msgTypes[10] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (x *StartChildWorkflowExecutionFailedEventAttributes) SetInitiatedEventId(v int64) { + x.InitiatedEventId = v } -// Deprecated: Use ActivityTaskScheduledEventAttributes.ProtoReflect.Descriptor instead. -func (*ActivityTaskScheduledEventAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_history_v1_message_proto_rawDescGZIP(), []int{10} +func (x *StartChildWorkflowExecutionFailedEventAttributes) SetWorkflowTaskCompletedEventId(v int64) { + x.WorkflowTaskCompletedEventId = v } -func (x *ActivityTaskScheduledEventAttributes) GetActivityId() string { - if x != nil { - return x.ActivityId +func (x *StartChildWorkflowExecutionFailedEventAttributes) HasWorkflowType() bool { + if x == nil { + return false } - return "" + return x.WorkflowType != nil } -func (x *ActivityTaskScheduledEventAttributes) GetActivityType() *v1.ActivityType { - if x != nil { - return x.ActivityType - } - return nil +func (x *StartChildWorkflowExecutionFailedEventAttributes) ClearWorkflowType() { + x.WorkflowType = nil } -func (x *ActivityTaskScheduledEventAttributes) GetTaskQueue() *v11.TaskQueue { - if x != nil { - return x.TaskQueue - } - return nil +type StartChildWorkflowExecutionFailedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Namespace of the child workflow. + // SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. + Namespace string + NamespaceId string + WorkflowId string + WorkflowType *v1.WorkflowType + Cause v12.StartChildWorkflowExecutionFailedCause + // Deprecated. + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + Control string + // Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to + InitiatedEventId int64 + // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + WorkflowTaskCompletedEventId int64 } -func (x *ActivityTaskScheduledEventAttributes) GetHeader() *v1.Header { - if x != nil { - return x.Header - } - return nil +func (b0 StartChildWorkflowExecutionFailedEventAttributes_builder) Build() *StartChildWorkflowExecutionFailedEventAttributes { + m0 := &StartChildWorkflowExecutionFailedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.NamespaceId = b.NamespaceId + x.WorkflowId = b.WorkflowId + x.WorkflowType = b.WorkflowType + x.Cause = b.Cause + x.Control = b.Control + x.InitiatedEventId = b.InitiatedEventId + x.WorkflowTaskCompletedEventId = b.WorkflowTaskCompletedEventId + return m0 } -func (x *ActivityTaskScheduledEventAttributes) GetInput() *v1.Payloads { - if x != nil { - return x.Input - } - return nil +type ChildWorkflowExecutionStartedEventAttributes struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // Namespace of the child workflow. + // SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. + Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` + NamespaceId string `protobuf:"bytes,6,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"` + // Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to + InitiatedEventId int64 `protobuf:"varint,2,opt,name=initiated_event_id,json=initiatedEventId,proto3" json:"initiated_event_id,omitempty"` + WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,3,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` + WorkflowType *v1.WorkflowType `protobuf:"bytes,4,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type,omitempty"` + Header *v1.Header `protobuf:"bytes,5,opt,name=header,proto3" json:"header,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (x *ActivityTaskScheduledEventAttributes) GetScheduleToCloseTimeout() *durationpb.Duration { - if x != nil { - return x.ScheduleToCloseTimeout - } - return nil +func (x *ChildWorkflowExecutionStartedEventAttributes) Reset() { + *x = ChildWorkflowExecutionStartedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (x *ActivityTaskScheduledEventAttributes) GetScheduleToStartTimeout() *durationpb.Duration { +func (x *ChildWorkflowExecutionStartedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ChildWorkflowExecutionStartedEventAttributes) ProtoMessage() {} + +func (x *ChildWorkflowExecutionStartedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[35] if x != nil { - return x.ScheduleToStartTimeout + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (x *ActivityTaskScheduledEventAttributes) GetStartToCloseTimeout() *durationpb.Duration { +func (x *ChildWorkflowExecutionStartedEventAttributes) GetNamespace() string { if x != nil { - return x.StartToCloseTimeout + return x.Namespace } - return nil + return "" } -func (x *ActivityTaskScheduledEventAttributes) GetHeartbeatTimeout() *durationpb.Duration { +func (x *ChildWorkflowExecutionStartedEventAttributes) GetNamespaceId() string { if x != nil { - return x.HeartbeatTimeout + return x.NamespaceId } - return nil + return "" } -func (x *ActivityTaskScheduledEventAttributes) GetWorkflowTaskCompletedEventId() int64 { +func (x *ChildWorkflowExecutionStartedEventAttributes) GetInitiatedEventId() int64 { if x != nil { - return x.WorkflowTaskCompletedEventId + return x.InitiatedEventId } return 0 } -func (x *ActivityTaskScheduledEventAttributes) GetRetryPolicy() *v1.RetryPolicy { +func (x *ChildWorkflowExecutionStartedEventAttributes) GetWorkflowExecution() *v1.WorkflowExecution { if x != nil { - return x.RetryPolicy + return x.WorkflowExecution } return nil } -// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. -func (x *ActivityTaskScheduledEventAttributes) GetUseWorkflowBuildId() bool { +func (x *ChildWorkflowExecutionStartedEventAttributes) GetWorkflowType() *v1.WorkflowType { if x != nil { - return x.UseWorkflowBuildId + return x.WorkflowType } - return false + return nil } -func (x *ActivityTaskScheduledEventAttributes) GetPriority() *v1.Priority { +func (x *ChildWorkflowExecutionStartedEventAttributes) GetHeader() *v1.Header { if x != nil { - return x.Priority + return x.Header } return nil } -type ActivityTaskStartedEventAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The id of the `ACTIVITY_TASK_SCHEDULED` event this task corresponds to - ScheduledEventId int64 `protobuf:"varint,1,opt,name=scheduled_event_id,json=scheduledEventId,proto3" json:"scheduled_event_id,omitempty"` - // id of the worker that picked up this task - Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` - // This field is populated from the RecordActivityTaskStartedRequest. Matching service would - // set the request_id on the RecordActivityTaskStartedRequest to a new UUID. This is useful - // in case a RecordActivityTaskStarted call succeed but matching doesn't get that response, - // so matching could retry and history service would return success if the request_id matches. - // In that case, matching will continue to deliver the task to worker. Without this field, history - // service would return AlreadyStarted error, and matching would drop the task. - RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` - // Starting at 1, the number of times this task has been attempted - Attempt int32 `protobuf:"varint,4,opt,name=attempt,proto3" json:"attempt,omitempty"` - // Will be set to the most recent failure details, if this task has previously failed and then - // been retried. - LastFailure *v13.Failure `protobuf:"bytes,5,opt,name=last_failure,json=lastFailure,proto3" json:"last_failure,omitempty"` - // Version info of the worker to whom this task was dispatched. - // Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] - // - // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. - WorkerVersion *v1.WorkerVersionStamp `protobuf:"bytes,6,opt,name=worker_version,json=workerVersion,proto3" json:"worker_version,omitempty"` - // Used by server internally to properly reapply build ID redirects to an execution - // when rebuilding it from events. - // Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] - // - // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. - BuildIdRedirectCounter int64 `protobuf:"varint,7,opt,name=build_id_redirect_counter,json=buildIdRedirectCounter,proto3" json:"build_id_redirect_counter,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache +func (x *ChildWorkflowExecutionStartedEventAttributes) SetNamespace(v string) { + x.Namespace = v } -func (x *ActivityTaskStartedEventAttributes) Reset() { - *x = ActivityTaskStartedEventAttributes{} - mi := &file_temporal_api_history_v1_message_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *ChildWorkflowExecutionStartedEventAttributes) SetNamespaceId(v string) { + x.NamespaceId = v } -func (x *ActivityTaskStartedEventAttributes) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *ChildWorkflowExecutionStartedEventAttributes) SetInitiatedEventId(v int64) { + x.InitiatedEventId = v } -func (*ActivityTaskStartedEventAttributes) ProtoMessage() {} +func (x *ChildWorkflowExecutionStartedEventAttributes) SetWorkflowExecution(v *v1.WorkflowExecution) { + x.WorkflowExecution = v +} -func (x *ActivityTaskStartedEventAttributes) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_history_v1_message_proto_msgTypes[11] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (x *ChildWorkflowExecutionStartedEventAttributes) SetWorkflowType(v *v1.WorkflowType) { + x.WorkflowType = v } -// Deprecated: Use ActivityTaskStartedEventAttributes.ProtoReflect.Descriptor instead. -func (*ActivityTaskStartedEventAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_history_v1_message_proto_rawDescGZIP(), []int{11} +func (x *ChildWorkflowExecutionStartedEventAttributes) SetHeader(v *v1.Header) { + x.Header = v } -func (x *ActivityTaskStartedEventAttributes) GetScheduledEventId() int64 { - if x != nil { - return x.ScheduledEventId +func (x *ChildWorkflowExecutionStartedEventAttributes) HasWorkflowExecution() bool { + if x == nil { + return false } - return 0 + return x.WorkflowExecution != nil } -func (x *ActivityTaskStartedEventAttributes) GetIdentity() string { - if x != nil { - return x.Identity +func (x *ChildWorkflowExecutionStartedEventAttributes) HasWorkflowType() bool { + if x == nil { + return false } - return "" + return x.WorkflowType != nil } -func (x *ActivityTaskStartedEventAttributes) GetRequestId() string { - if x != nil { - return x.RequestId +func (x *ChildWorkflowExecutionStartedEventAttributes) HasHeader() bool { + if x == nil { + return false } - return "" + return x.Header != nil } -func (x *ActivityTaskStartedEventAttributes) GetAttempt() int32 { - if x != nil { - return x.Attempt - } - return 0 +func (x *ChildWorkflowExecutionStartedEventAttributes) ClearWorkflowExecution() { + x.WorkflowExecution = nil } -func (x *ActivityTaskStartedEventAttributes) GetLastFailure() *v13.Failure { - if x != nil { - return x.LastFailure - } - return nil +func (x *ChildWorkflowExecutionStartedEventAttributes) ClearWorkflowType() { + x.WorkflowType = nil } -// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. -func (x *ActivityTaskStartedEventAttributes) GetWorkerVersion() *v1.WorkerVersionStamp { - if x != nil { - return x.WorkerVersion - } - return nil +func (x *ChildWorkflowExecutionStartedEventAttributes) ClearHeader() { + x.Header = nil } -// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. -func (x *ActivityTaskStartedEventAttributes) GetBuildIdRedirectCounter() int64 { - if x != nil { - return x.BuildIdRedirectCounter - } - return 0 +type ChildWorkflowExecutionStartedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Namespace of the child workflow. + // SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. + Namespace string + NamespaceId string + // Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to + InitiatedEventId int64 + WorkflowExecution *v1.WorkflowExecution + WorkflowType *v1.WorkflowType + Header *v1.Header } -type ActivityTaskCompletedEventAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Serialized results of the activity. IE: The return value of the activity function - Result *v1.Payloads `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` - // The id of the `ACTIVITY_TASK_SCHEDULED` event this completion corresponds to - ScheduledEventId int64 `protobuf:"varint,2,opt,name=scheduled_event_id,json=scheduledEventId,proto3" json:"scheduled_event_id,omitempty"` - // The id of the `ACTIVITY_TASK_STARTED` event this completion corresponds to - StartedEventId int64 `protobuf:"varint,3,opt,name=started_event_id,json=startedEventId,proto3" json:"started_event_id,omitempty"` - // id of the worker that completed this task - Identity string `protobuf:"bytes,4,opt,name=identity,proto3" json:"identity,omitempty"` - // Version info of the worker who processed this workflow task. - // Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] - // - // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. - WorkerVersion *v1.WorkerVersionStamp `protobuf:"bytes,5,opt,name=worker_version,json=workerVersion,proto3" json:"worker_version,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache +func (b0 ChildWorkflowExecutionStartedEventAttributes_builder) Build() *ChildWorkflowExecutionStartedEventAttributes { + m0 := &ChildWorkflowExecutionStartedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.NamespaceId = b.NamespaceId + x.InitiatedEventId = b.InitiatedEventId + x.WorkflowExecution = b.WorkflowExecution + x.WorkflowType = b.WorkflowType + x.Header = b.Header + return m0 } -func (x *ActivityTaskCompletedEventAttributes) Reset() { - *x = ActivityTaskCompletedEventAttributes{} - mi := &file_temporal_api_history_v1_message_proto_msgTypes[12] +type ChildWorkflowExecutionCompletedEventAttributes struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + Result *v1.Payloads `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` + // Namespace of the child workflow. + // SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. + Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` + NamespaceId string `protobuf:"bytes,7,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"` + WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,3,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` + WorkflowType *v1.WorkflowType `protobuf:"bytes,4,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type,omitempty"` + // Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to + InitiatedEventId int64 `protobuf:"varint,5,opt,name=initiated_event_id,json=initiatedEventId,proto3" json:"initiated_event_id,omitempty"` + // Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to + StartedEventId int64 `protobuf:"varint,6,opt,name=started_event_id,json=startedEventId,proto3" json:"started_event_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ChildWorkflowExecutionCompletedEventAttributes) Reset() { + *x = ChildWorkflowExecutionCompletedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[36] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } -func (x *ActivityTaskCompletedEventAttributes) String() string { +func (x *ChildWorkflowExecutionCompletedEventAttributes) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ActivityTaskCompletedEventAttributes) ProtoMessage() {} +func (*ChildWorkflowExecutionCompletedEventAttributes) ProtoMessage() {} -func (x *ActivityTaskCompletedEventAttributes) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_history_v1_message_proto_msgTypes[12] +func (x *ChildWorkflowExecutionCompletedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[36] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1765,169 +7109,179 @@ func (x *ActivityTaskCompletedEventAttributes) ProtoReflect() protoreflect.Messa return mi.MessageOf(x) } -// Deprecated: Use ActivityTaskCompletedEventAttributes.ProtoReflect.Descriptor instead. -func (*ActivityTaskCompletedEventAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_history_v1_message_proto_rawDescGZIP(), []int{12} -} - -func (x *ActivityTaskCompletedEventAttributes) GetResult() *v1.Payloads { +func (x *ChildWorkflowExecutionCompletedEventAttributes) GetResult() *v1.Payloads { if x != nil { return x.Result } return nil } -func (x *ActivityTaskCompletedEventAttributes) GetScheduledEventId() int64 { +func (x *ChildWorkflowExecutionCompletedEventAttributes) GetNamespace() string { if x != nil { - return x.ScheduledEventId + return x.Namespace } - return 0 + return "" } -func (x *ActivityTaskCompletedEventAttributes) GetStartedEventId() int64 { +func (x *ChildWorkflowExecutionCompletedEventAttributes) GetNamespaceId() string { if x != nil { - return x.StartedEventId + return x.NamespaceId } - return 0 + return "" } -func (x *ActivityTaskCompletedEventAttributes) GetIdentity() string { +func (x *ChildWorkflowExecutionCompletedEventAttributes) GetWorkflowExecution() *v1.WorkflowExecution { if x != nil { - return x.Identity + return x.WorkflowExecution } - return "" + return nil } -// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. -func (x *ActivityTaskCompletedEventAttributes) GetWorkerVersion() *v1.WorkerVersionStamp { +func (x *ChildWorkflowExecutionCompletedEventAttributes) GetWorkflowType() *v1.WorkflowType { if x != nil { - return x.WorkerVersion + return x.WorkflowType } return nil } -type ActivityTaskFailedEventAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Failure details - Failure *v13.Failure `protobuf:"bytes,1,opt,name=failure,proto3" json:"failure,omitempty"` - // The id of the `ACTIVITY_TASK_SCHEDULED` event this failure corresponds to - ScheduledEventId int64 `protobuf:"varint,2,opt,name=scheduled_event_id,json=scheduledEventId,proto3" json:"scheduled_event_id,omitempty"` - // The id of the `ACTIVITY_TASK_STARTED` event this failure corresponds to - StartedEventId int64 `protobuf:"varint,3,opt,name=started_event_id,json=startedEventId,proto3" json:"started_event_id,omitempty"` - // id of the worker that failed this task - Identity string `protobuf:"bytes,4,opt,name=identity,proto3" json:"identity,omitempty"` - RetryState v12.RetryState `protobuf:"varint,5,opt,name=retry_state,json=retryState,proto3,enum=temporal.api.enums.v1.RetryState" json:"retry_state,omitempty"` - // Version info of the worker who processed this workflow task. - // Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] - // - // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. - WorkerVersion *v1.WorkerVersionStamp `protobuf:"bytes,6,opt,name=worker_version,json=workerVersion,proto3" json:"worker_version,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache +func (x *ChildWorkflowExecutionCompletedEventAttributes) GetInitiatedEventId() int64 { + if x != nil { + return x.InitiatedEventId + } + return 0 } -func (x *ActivityTaskFailedEventAttributes) Reset() { - *x = ActivityTaskFailedEventAttributes{} - mi := &file_temporal_api_history_v1_message_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *ChildWorkflowExecutionCompletedEventAttributes) GetStartedEventId() int64 { + if x != nil { + return x.StartedEventId + } + return 0 } -func (x *ActivityTaskFailedEventAttributes) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *ChildWorkflowExecutionCompletedEventAttributes) SetResult(v *v1.Payloads) { + x.Result = v } -func (*ActivityTaskFailedEventAttributes) ProtoMessage() {} +func (x *ChildWorkflowExecutionCompletedEventAttributes) SetNamespace(v string) { + x.Namespace = v +} -func (x *ActivityTaskFailedEventAttributes) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_history_v1_message_proto_msgTypes[13] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (x *ChildWorkflowExecutionCompletedEventAttributes) SetNamespaceId(v string) { + x.NamespaceId = v } -// Deprecated: Use ActivityTaskFailedEventAttributes.ProtoReflect.Descriptor instead. -func (*ActivityTaskFailedEventAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_history_v1_message_proto_rawDescGZIP(), []int{13} +func (x *ChildWorkflowExecutionCompletedEventAttributes) SetWorkflowExecution(v *v1.WorkflowExecution) { + x.WorkflowExecution = v } -func (x *ActivityTaskFailedEventAttributes) GetFailure() *v13.Failure { - if x != nil { - return x.Failure - } - return nil +func (x *ChildWorkflowExecutionCompletedEventAttributes) SetWorkflowType(v *v1.WorkflowType) { + x.WorkflowType = v +} + +func (x *ChildWorkflowExecutionCompletedEventAttributes) SetInitiatedEventId(v int64) { + x.InitiatedEventId = v +} + +func (x *ChildWorkflowExecutionCompletedEventAttributes) SetStartedEventId(v int64) { + x.StartedEventId = v } -func (x *ActivityTaskFailedEventAttributes) GetScheduledEventId() int64 { - if x != nil { - return x.ScheduledEventId +func (x *ChildWorkflowExecutionCompletedEventAttributes) HasResult() bool { + if x == nil { + return false } - return 0 + return x.Result != nil } -func (x *ActivityTaskFailedEventAttributes) GetStartedEventId() int64 { - if x != nil { - return x.StartedEventId +func (x *ChildWorkflowExecutionCompletedEventAttributes) HasWorkflowExecution() bool { + if x == nil { + return false } - return 0 + return x.WorkflowExecution != nil } -func (x *ActivityTaskFailedEventAttributes) GetIdentity() string { - if x != nil { - return x.Identity +func (x *ChildWorkflowExecutionCompletedEventAttributes) HasWorkflowType() bool { + if x == nil { + return false } - return "" + return x.WorkflowType != nil } -func (x *ActivityTaskFailedEventAttributes) GetRetryState() v12.RetryState { - if x != nil { - return x.RetryState - } - return v12.RetryState(0) +func (x *ChildWorkflowExecutionCompletedEventAttributes) ClearResult() { + x.Result = nil } -// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. -func (x *ActivityTaskFailedEventAttributes) GetWorkerVersion() *v1.WorkerVersionStamp { - if x != nil { - return x.WorkerVersion - } - return nil +func (x *ChildWorkflowExecutionCompletedEventAttributes) ClearWorkflowExecution() { + x.WorkflowExecution = nil } -type ActivityTaskTimedOutEventAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` - // If this activity had failed, was retried, and then timed out, that failure is stored as the - // `cause` in here. - Failure *v13.Failure `protobuf:"bytes,1,opt,name=failure,proto3" json:"failure,omitempty"` - // The id of the `ACTIVITY_TASK_SCHEDULED` event this timeout corresponds to - ScheduledEventId int64 `protobuf:"varint,2,opt,name=scheduled_event_id,json=scheduledEventId,proto3" json:"scheduled_event_id,omitempty"` - // The id of the `ACTIVITY_TASK_STARTED` event this timeout corresponds to - StartedEventId int64 `protobuf:"varint,3,opt,name=started_event_id,json=startedEventId,proto3" json:"started_event_id,omitempty"` - RetryState v12.RetryState `protobuf:"varint,4,opt,name=retry_state,json=retryState,proto3,enum=temporal.api.enums.v1.RetryState" json:"retry_state,omitempty"` +func (x *ChildWorkflowExecutionCompletedEventAttributes) ClearWorkflowType() { + x.WorkflowType = nil +} + +type ChildWorkflowExecutionCompletedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Result *v1.Payloads + // Namespace of the child workflow. + // SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. + Namespace string + NamespaceId string + WorkflowExecution *v1.WorkflowExecution + WorkflowType *v1.WorkflowType + // Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to + InitiatedEventId int64 + // Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to + StartedEventId int64 +} + +func (b0 ChildWorkflowExecutionCompletedEventAttributes_builder) Build() *ChildWorkflowExecutionCompletedEventAttributes { + m0 := &ChildWorkflowExecutionCompletedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.Result = b.Result + x.Namespace = b.Namespace + x.NamespaceId = b.NamespaceId + x.WorkflowExecution = b.WorkflowExecution + x.WorkflowType = b.WorkflowType + x.InitiatedEventId = b.InitiatedEventId + x.StartedEventId = b.StartedEventId + return m0 +} + +type ChildWorkflowExecutionFailedEventAttributes struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + Failure *v13.Failure `protobuf:"bytes,1,opt,name=failure,proto3" json:"failure,omitempty"` + // Namespace of the child workflow. + // SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. + Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` + NamespaceId string `protobuf:"bytes,8,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"` + WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,3,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` + WorkflowType *v1.WorkflowType `protobuf:"bytes,4,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type,omitempty"` + // Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to + InitiatedEventId int64 `protobuf:"varint,5,opt,name=initiated_event_id,json=initiatedEventId,proto3" json:"initiated_event_id,omitempty"` + // Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to + StartedEventId int64 `protobuf:"varint,6,opt,name=started_event_id,json=startedEventId,proto3" json:"started_event_id,omitempty"` + RetryState v12.RetryState `protobuf:"varint,7,opt,name=retry_state,json=retryState,proto3,enum=temporal.api.enums.v1.RetryState" json:"retry_state,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } -func (x *ActivityTaskTimedOutEventAttributes) Reset() { - *x = ActivityTaskTimedOutEventAttributes{} - mi := &file_temporal_api_history_v1_message_proto_msgTypes[14] +func (x *ChildWorkflowExecutionFailedEventAttributes) Reset() { + *x = ChildWorkflowExecutionFailedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[37] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } -func (x *ActivityTaskTimedOutEventAttributes) String() string { +func (x *ChildWorkflowExecutionFailedEventAttributes) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ActivityTaskTimedOutEventAttributes) ProtoMessage() {} +func (*ChildWorkflowExecutionFailedEventAttributes) ProtoMessage() {} -func (x *ActivityTaskTimedOutEventAttributes) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_history_v1_message_proto_msgTypes[14] +func (x *ChildWorkflowExecutionFailedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[37] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1938,219 +7292,191 @@ func (x *ActivityTaskTimedOutEventAttributes) ProtoReflect() protoreflect.Messag return mi.MessageOf(x) } -// Deprecated: Use ActivityTaskTimedOutEventAttributes.ProtoReflect.Descriptor instead. -func (*ActivityTaskTimedOutEventAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_history_v1_message_proto_rawDescGZIP(), []int{14} -} - -func (x *ActivityTaskTimedOutEventAttributes) GetFailure() *v13.Failure { +func (x *ChildWorkflowExecutionFailedEventAttributes) GetFailure() *v13.Failure { if x != nil { return x.Failure } return nil } -func (x *ActivityTaskTimedOutEventAttributes) GetScheduledEventId() int64 { +func (x *ChildWorkflowExecutionFailedEventAttributes) GetNamespace() string { if x != nil { - return x.ScheduledEventId + return x.Namespace } - return 0 + return "" } -func (x *ActivityTaskTimedOutEventAttributes) GetStartedEventId() int64 { +func (x *ChildWorkflowExecutionFailedEventAttributes) GetNamespaceId() string { if x != nil { - return x.StartedEventId + return x.NamespaceId } - return 0 + return "" } -func (x *ActivityTaskTimedOutEventAttributes) GetRetryState() v12.RetryState { +func (x *ChildWorkflowExecutionFailedEventAttributes) GetWorkflowExecution() *v1.WorkflowExecution { if x != nil { - return x.RetryState + return x.WorkflowExecution } - return v12.RetryState(0) -} - -type ActivityTaskCancelRequestedEventAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The id of the `ACTIVITY_TASK_SCHEDULED` event this cancel request corresponds to - ScheduledEventId int64 `protobuf:"varint,1,opt,name=scheduled_event_id,json=scheduledEventId,proto3" json:"scheduled_event_id,omitempty"` - // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with - WorkflowTaskCompletedEventId int64 `protobuf:"varint,2,opt,name=workflow_task_completed_event_id,json=workflowTaskCompletedEventId,proto3" json:"workflow_task_completed_event_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *ActivityTaskCancelRequestedEventAttributes) Reset() { - *x = ActivityTaskCancelRequestedEventAttributes{} - mi := &file_temporal_api_history_v1_message_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *ActivityTaskCancelRequestedEventAttributes) String() string { - return protoimpl.X.MessageStringOf(x) + return nil } -func (*ActivityTaskCancelRequestedEventAttributes) ProtoMessage() {} - -func (x *ActivityTaskCancelRequestedEventAttributes) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_history_v1_message_proto_msgTypes[15] +func (x *ChildWorkflowExecutionFailedEventAttributes) GetWorkflowType() *v1.WorkflowType { if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms + return x.WorkflowType } - return mi.MessageOf(x) + return nil } -// Deprecated: Use ActivityTaskCancelRequestedEventAttributes.ProtoReflect.Descriptor instead. -func (*ActivityTaskCancelRequestedEventAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_history_v1_message_proto_rawDescGZIP(), []int{15} +func (x *ChildWorkflowExecutionFailedEventAttributes) GetInitiatedEventId() int64 { + if x != nil { + return x.InitiatedEventId + } + return 0 } -func (x *ActivityTaskCancelRequestedEventAttributes) GetScheduledEventId() int64 { +func (x *ChildWorkflowExecutionFailedEventAttributes) GetStartedEventId() int64 { if x != nil { - return x.ScheduledEventId + return x.StartedEventId } return 0 } -func (x *ActivityTaskCancelRequestedEventAttributes) GetWorkflowTaskCompletedEventId() int64 { +func (x *ChildWorkflowExecutionFailedEventAttributes) GetRetryState() v12.RetryState { if x != nil { - return x.WorkflowTaskCompletedEventId + return x.RetryState } - return 0 + return v12.RetryState(0) } -type ActivityTaskCanceledEventAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Additional information that the activity reported upon confirming cancellation - Details *v1.Payloads `protobuf:"bytes,1,opt,name=details,proto3" json:"details,omitempty"` - // id of the most recent `ACTIVITY_TASK_CANCEL_REQUESTED` event which refers to the same - // activity - LatestCancelRequestedEventId int64 `protobuf:"varint,2,opt,name=latest_cancel_requested_event_id,json=latestCancelRequestedEventId,proto3" json:"latest_cancel_requested_event_id,omitempty"` - // The id of the `ACTIVITY_TASK_SCHEDULED` event this cancel confirmation corresponds to - ScheduledEventId int64 `protobuf:"varint,3,opt,name=scheduled_event_id,json=scheduledEventId,proto3" json:"scheduled_event_id,omitempty"` - // The id of the `ACTIVITY_TASK_STARTED` event this cancel confirmation corresponds to - StartedEventId int64 `protobuf:"varint,4,opt,name=started_event_id,json=startedEventId,proto3" json:"started_event_id,omitempty"` - // id of the worker who canceled this activity - Identity string `protobuf:"bytes,5,opt,name=identity,proto3" json:"identity,omitempty"` - // Version info of the worker who processed this workflow task. - // Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] - // - // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. - WorkerVersion *v1.WorkerVersionStamp `protobuf:"bytes,6,opt,name=worker_version,json=workerVersion,proto3" json:"worker_version,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache +func (x *ChildWorkflowExecutionFailedEventAttributes) SetFailure(v *v13.Failure) { + x.Failure = v } -func (x *ActivityTaskCanceledEventAttributes) Reset() { - *x = ActivityTaskCanceledEventAttributes{} - mi := &file_temporal_api_history_v1_message_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *ChildWorkflowExecutionFailedEventAttributes) SetNamespace(v string) { + x.Namespace = v } -func (x *ActivityTaskCanceledEventAttributes) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *ChildWorkflowExecutionFailedEventAttributes) SetNamespaceId(v string) { + x.NamespaceId = v } -func (*ActivityTaskCanceledEventAttributes) ProtoMessage() {} +func (x *ChildWorkflowExecutionFailedEventAttributes) SetWorkflowExecution(v *v1.WorkflowExecution) { + x.WorkflowExecution = v +} -func (x *ActivityTaskCanceledEventAttributes) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_history_v1_message_proto_msgTypes[16] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (x *ChildWorkflowExecutionFailedEventAttributes) SetWorkflowType(v *v1.WorkflowType) { + x.WorkflowType = v } -// Deprecated: Use ActivityTaskCanceledEventAttributes.ProtoReflect.Descriptor instead. -func (*ActivityTaskCanceledEventAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_history_v1_message_proto_rawDescGZIP(), []int{16} +func (x *ChildWorkflowExecutionFailedEventAttributes) SetInitiatedEventId(v int64) { + x.InitiatedEventId = v } -func (x *ActivityTaskCanceledEventAttributes) GetDetails() *v1.Payloads { - if x != nil { - return x.Details - } - return nil +func (x *ChildWorkflowExecutionFailedEventAttributes) SetStartedEventId(v int64) { + x.StartedEventId = v } -func (x *ActivityTaskCanceledEventAttributes) GetLatestCancelRequestedEventId() int64 { - if x != nil { - return x.LatestCancelRequestedEventId - } - return 0 +func (x *ChildWorkflowExecutionFailedEventAttributes) SetRetryState(v v12.RetryState) { + x.RetryState = v } -func (x *ActivityTaskCanceledEventAttributes) GetScheduledEventId() int64 { - if x != nil { - return x.ScheduledEventId +func (x *ChildWorkflowExecutionFailedEventAttributes) HasFailure() bool { + if x == nil { + return false } - return 0 + return x.Failure != nil } -func (x *ActivityTaskCanceledEventAttributes) GetStartedEventId() int64 { - if x != nil { - return x.StartedEventId +func (x *ChildWorkflowExecutionFailedEventAttributes) HasWorkflowExecution() bool { + if x == nil { + return false } - return 0 + return x.WorkflowExecution != nil } -func (x *ActivityTaskCanceledEventAttributes) GetIdentity() string { - if x != nil { - return x.Identity +func (x *ChildWorkflowExecutionFailedEventAttributes) HasWorkflowType() bool { + if x == nil { + return false } - return "" + return x.WorkflowType != nil } -// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. -func (x *ActivityTaskCanceledEventAttributes) GetWorkerVersion() *v1.WorkerVersionStamp { - if x != nil { - return x.WorkerVersion - } - return nil +func (x *ChildWorkflowExecutionFailedEventAttributes) ClearFailure() { + x.Failure = nil } -type TimerStartedEventAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The worker/user assigned id for this timer - TimerId string `protobuf:"bytes,1,opt,name=timer_id,json=timerId,proto3" json:"timer_id,omitempty"` - // How long until this timer fires - // - // (-- api-linter: core::0140::prepositions=disabled - // - // aip.dev/not-precedent: "to" is used to indicate interval. --) - StartToFireTimeout *durationpb.Duration `protobuf:"bytes,2,opt,name=start_to_fire_timeout,json=startToFireTimeout,proto3" json:"start_to_fire_timeout,omitempty"` - // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with - WorkflowTaskCompletedEventId int64 `protobuf:"varint,3,opt,name=workflow_task_completed_event_id,json=workflowTaskCompletedEventId,proto3" json:"workflow_task_completed_event_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache +func (x *ChildWorkflowExecutionFailedEventAttributes) ClearWorkflowExecution() { + x.WorkflowExecution = nil } -func (x *TimerStartedEventAttributes) Reset() { - *x = TimerStartedEventAttributes{} - mi := &file_temporal_api_history_v1_message_proto_msgTypes[17] +func (x *ChildWorkflowExecutionFailedEventAttributes) ClearWorkflowType() { + x.WorkflowType = nil +} + +type ChildWorkflowExecutionFailedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Failure *v13.Failure + // Namespace of the child workflow. + // SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. + Namespace string + NamespaceId string + WorkflowExecution *v1.WorkflowExecution + WorkflowType *v1.WorkflowType + // Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to + InitiatedEventId int64 + // Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to + StartedEventId int64 + RetryState v12.RetryState +} + +func (b0 ChildWorkflowExecutionFailedEventAttributes_builder) Build() *ChildWorkflowExecutionFailedEventAttributes { + m0 := &ChildWorkflowExecutionFailedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.Failure = b.Failure + x.Namespace = b.Namespace + x.NamespaceId = b.NamespaceId + x.WorkflowExecution = b.WorkflowExecution + x.WorkflowType = b.WorkflowType + x.InitiatedEventId = b.InitiatedEventId + x.StartedEventId = b.StartedEventId + x.RetryState = b.RetryState + return m0 +} + +type ChildWorkflowExecutionCanceledEventAttributes struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + Details *v1.Payloads `protobuf:"bytes,1,opt,name=details,proto3" json:"details,omitempty"` + // Namespace of the child workflow. + // SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. + Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` + NamespaceId string `protobuf:"bytes,7,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"` + WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,3,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` + WorkflowType *v1.WorkflowType `protobuf:"bytes,4,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type,omitempty"` + // Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to + InitiatedEventId int64 `protobuf:"varint,5,opt,name=initiated_event_id,json=initiatedEventId,proto3" json:"initiated_event_id,omitempty"` + // Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to + StartedEventId int64 `protobuf:"varint,6,opt,name=started_event_id,json=startedEventId,proto3" json:"started_event_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ChildWorkflowExecutionCanceledEventAttributes) Reset() { + *x = ChildWorkflowExecutionCanceledEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[38] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } -func (x *TimerStartedEventAttributes) String() string { +func (x *ChildWorkflowExecutionCanceledEventAttributes) String() string { return protoimpl.X.MessageStringOf(x) } -func (*TimerStartedEventAttributes) ProtoMessage() {} +func (*ChildWorkflowExecutionCanceledEventAttributes) ProtoMessage() {} -func (x *TimerStartedEventAttributes) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_history_v1_message_proto_msgTypes[17] +func (x *ChildWorkflowExecutionCanceledEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[38] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2161,115 +7487,178 @@ func (x *TimerStartedEventAttributes) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use TimerStartedEventAttributes.ProtoReflect.Descriptor instead. -func (*TimerStartedEventAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_history_v1_message_proto_rawDescGZIP(), []int{17} +func (x *ChildWorkflowExecutionCanceledEventAttributes) GetDetails() *v1.Payloads { + if x != nil { + return x.Details + } + return nil } -func (x *TimerStartedEventAttributes) GetTimerId() string { +func (x *ChildWorkflowExecutionCanceledEventAttributes) GetNamespace() string { if x != nil { - return x.TimerId + return x.Namespace } return "" } -func (x *TimerStartedEventAttributes) GetStartToFireTimeout() *durationpb.Duration { +func (x *ChildWorkflowExecutionCanceledEventAttributes) GetNamespaceId() string { if x != nil { - return x.StartToFireTimeout + return x.NamespaceId + } + return "" +} + +func (x *ChildWorkflowExecutionCanceledEventAttributes) GetWorkflowExecution() *v1.WorkflowExecution { + if x != nil { + return x.WorkflowExecution } return nil } -func (x *TimerStartedEventAttributes) GetWorkflowTaskCompletedEventId() int64 { +func (x *ChildWorkflowExecutionCanceledEventAttributes) GetWorkflowType() *v1.WorkflowType { if x != nil { - return x.WorkflowTaskCompletedEventId + return x.WorkflowType + } + return nil +} + +func (x *ChildWorkflowExecutionCanceledEventAttributes) GetInitiatedEventId() int64 { + if x != nil { + return x.InitiatedEventId } return 0 } -type TimerFiredEventAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Will match the `timer_id` from `TIMER_STARTED` event for this timer - TimerId string `protobuf:"bytes,1,opt,name=timer_id,json=timerId,proto3" json:"timer_id,omitempty"` - // The id of the `TIMER_STARTED` event itself - StartedEventId int64 `protobuf:"varint,2,opt,name=started_event_id,json=startedEventId,proto3" json:"started_event_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache +func (x *ChildWorkflowExecutionCanceledEventAttributes) GetStartedEventId() int64 { + if x != nil { + return x.StartedEventId + } + return 0 } -func (x *TimerFiredEventAttributes) Reset() { - *x = TimerFiredEventAttributes{} - mi := &file_temporal_api_history_v1_message_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *ChildWorkflowExecutionCanceledEventAttributes) SetDetails(v *v1.Payloads) { + x.Details = v } -func (x *TimerFiredEventAttributes) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *ChildWorkflowExecutionCanceledEventAttributes) SetNamespace(v string) { + x.Namespace = v } -func (*TimerFiredEventAttributes) ProtoMessage() {} +func (x *ChildWorkflowExecutionCanceledEventAttributes) SetNamespaceId(v string) { + x.NamespaceId = v +} -func (x *TimerFiredEventAttributes) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_history_v1_message_proto_msgTypes[18] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (x *ChildWorkflowExecutionCanceledEventAttributes) SetWorkflowExecution(v *v1.WorkflowExecution) { + x.WorkflowExecution = v } -// Deprecated: Use TimerFiredEventAttributes.ProtoReflect.Descriptor instead. -func (*TimerFiredEventAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_history_v1_message_proto_rawDescGZIP(), []int{18} +func (x *ChildWorkflowExecutionCanceledEventAttributes) SetWorkflowType(v *v1.WorkflowType) { + x.WorkflowType = v } -func (x *TimerFiredEventAttributes) GetTimerId() string { - if x != nil { - return x.TimerId +func (x *ChildWorkflowExecutionCanceledEventAttributes) SetInitiatedEventId(v int64) { + x.InitiatedEventId = v +} + +func (x *ChildWorkflowExecutionCanceledEventAttributes) SetStartedEventId(v int64) { + x.StartedEventId = v +} + +func (x *ChildWorkflowExecutionCanceledEventAttributes) HasDetails() bool { + if x == nil { + return false } - return "" + return x.Details != nil } -func (x *TimerFiredEventAttributes) GetStartedEventId() int64 { - if x != nil { - return x.StartedEventId +func (x *ChildWorkflowExecutionCanceledEventAttributes) HasWorkflowExecution() bool { + if x == nil { + return false } - return 0 + return x.WorkflowExecution != nil } -type TimerCanceledEventAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Will match the `timer_id` from `TIMER_STARTED` event for this timer - TimerId string `protobuf:"bytes,1,opt,name=timer_id,json=timerId,proto3" json:"timer_id,omitempty"` - // The id of the `TIMER_STARTED` event itself - StartedEventId int64 `protobuf:"varint,2,opt,name=started_event_id,json=startedEventId,proto3" json:"started_event_id,omitempty"` - // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with - WorkflowTaskCompletedEventId int64 `protobuf:"varint,3,opt,name=workflow_task_completed_event_id,json=workflowTaskCompletedEventId,proto3" json:"workflow_task_completed_event_id,omitempty"` - // The id of the worker who requested this cancel - Identity string `protobuf:"bytes,4,opt,name=identity,proto3" json:"identity,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache +func (x *ChildWorkflowExecutionCanceledEventAttributes) HasWorkflowType() bool { + if x == nil { + return false + } + return x.WorkflowType != nil } -func (x *TimerCanceledEventAttributes) Reset() { - *x = TimerCanceledEventAttributes{} - mi := &file_temporal_api_history_v1_message_proto_msgTypes[19] +func (x *ChildWorkflowExecutionCanceledEventAttributes) ClearDetails() { + x.Details = nil +} + +func (x *ChildWorkflowExecutionCanceledEventAttributes) ClearWorkflowExecution() { + x.WorkflowExecution = nil +} + +func (x *ChildWorkflowExecutionCanceledEventAttributes) ClearWorkflowType() { + x.WorkflowType = nil +} + +type ChildWorkflowExecutionCanceledEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Details *v1.Payloads + // Namespace of the child workflow. + // SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. + Namespace string + NamespaceId string + WorkflowExecution *v1.WorkflowExecution + WorkflowType *v1.WorkflowType + // Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to + InitiatedEventId int64 + // Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to + StartedEventId int64 +} + +func (b0 ChildWorkflowExecutionCanceledEventAttributes_builder) Build() *ChildWorkflowExecutionCanceledEventAttributes { + m0 := &ChildWorkflowExecutionCanceledEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.Details = b.Details + x.Namespace = b.Namespace + x.NamespaceId = b.NamespaceId + x.WorkflowExecution = b.WorkflowExecution + x.WorkflowType = b.WorkflowType + x.InitiatedEventId = b.InitiatedEventId + x.StartedEventId = b.StartedEventId + return m0 +} + +type ChildWorkflowExecutionTimedOutEventAttributes struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // Namespace of the child workflow. + // SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. + Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` + NamespaceId string `protobuf:"bytes,7,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"` + WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` + WorkflowType *v1.WorkflowType `protobuf:"bytes,3,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type,omitempty"` + // Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to + InitiatedEventId int64 `protobuf:"varint,4,opt,name=initiated_event_id,json=initiatedEventId,proto3" json:"initiated_event_id,omitempty"` + // Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to + StartedEventId int64 `protobuf:"varint,5,opt,name=started_event_id,json=startedEventId,proto3" json:"started_event_id,omitempty"` + RetryState v12.RetryState `protobuf:"varint,6,opt,name=retry_state,json=retryState,proto3,enum=temporal.api.enums.v1.RetryState" json:"retry_state,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ChildWorkflowExecutionTimedOutEventAttributes) Reset() { + *x = ChildWorkflowExecutionTimedOutEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[39] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } -func (x *TimerCanceledEventAttributes) String() string { +func (x *ChildWorkflowExecutionTimedOutEventAttributes) String() string { return protoimpl.X.MessageStringOf(x) } -func (*TimerCanceledEventAttributes) ProtoMessage() {} +func (*ChildWorkflowExecutionTimedOutEventAttributes) ProtoMessage() {} -func (x *TimerCanceledEventAttributes) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_history_v1_message_proto_msgTypes[19] +func (x *ChildWorkflowExecutionTimedOutEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[39] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2280,135 +7669,166 @@ func (x *TimerCanceledEventAttributes) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use TimerCanceledEventAttributes.ProtoReflect.Descriptor instead. -func (*TimerCanceledEventAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_history_v1_message_proto_rawDescGZIP(), []int{19} +func (x *ChildWorkflowExecutionTimedOutEventAttributes) GetNamespace() string { + if x != nil { + return x.Namespace + } + return "" } -func (x *TimerCanceledEventAttributes) GetTimerId() string { +func (x *ChildWorkflowExecutionTimedOutEventAttributes) GetNamespaceId() string { if x != nil { - return x.TimerId + return x.NamespaceId } return "" } -func (x *TimerCanceledEventAttributes) GetStartedEventId() int64 { +func (x *ChildWorkflowExecutionTimedOutEventAttributes) GetWorkflowExecution() *v1.WorkflowExecution { if x != nil { - return x.StartedEventId + return x.WorkflowExecution + } + return nil +} + +func (x *ChildWorkflowExecutionTimedOutEventAttributes) GetWorkflowType() *v1.WorkflowType { + if x != nil { + return x.WorkflowType + } + return nil +} + +func (x *ChildWorkflowExecutionTimedOutEventAttributes) GetInitiatedEventId() int64 { + if x != nil { + return x.InitiatedEventId } return 0 } -func (x *TimerCanceledEventAttributes) GetWorkflowTaskCompletedEventId() int64 { +func (x *ChildWorkflowExecutionTimedOutEventAttributes) GetStartedEventId() int64 { if x != nil { - return x.WorkflowTaskCompletedEventId + return x.StartedEventId } return 0 } -func (x *TimerCanceledEventAttributes) GetIdentity() string { +func (x *ChildWorkflowExecutionTimedOutEventAttributes) GetRetryState() v12.RetryState { if x != nil { - return x.Identity + return x.RetryState } - return "" + return v12.RetryState(0) } -type WorkflowExecutionCancelRequestedEventAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` - // User provided reason for requesting cancellation - Cause string `protobuf:"bytes,1,opt,name=cause,proto3" json:"cause,omitempty"` - // The ID of the `REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED` event in the external - // workflow history when the cancellation was requested by another workflow. - ExternalInitiatedEventId int64 `protobuf:"varint,2,opt,name=external_initiated_event_id,json=externalInitiatedEventId,proto3" json:"external_initiated_event_id,omitempty"` - ExternalWorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,3,opt,name=external_workflow_execution,json=externalWorkflowExecution,proto3" json:"external_workflow_execution,omitempty"` - // id of the worker or client who requested this cancel - Identity string `protobuf:"bytes,4,opt,name=identity,proto3" json:"identity,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache +func (x *ChildWorkflowExecutionTimedOutEventAttributes) SetNamespace(v string) { + x.Namespace = v } -func (x *WorkflowExecutionCancelRequestedEventAttributes) Reset() { - *x = WorkflowExecutionCancelRequestedEventAttributes{} - mi := &file_temporal_api_history_v1_message_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *ChildWorkflowExecutionTimedOutEventAttributes) SetNamespaceId(v string) { + x.NamespaceId = v } -func (x *WorkflowExecutionCancelRequestedEventAttributes) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *ChildWorkflowExecutionTimedOutEventAttributes) SetWorkflowExecution(v *v1.WorkflowExecution) { + x.WorkflowExecution = v } -func (*WorkflowExecutionCancelRequestedEventAttributes) ProtoMessage() {} +func (x *ChildWorkflowExecutionTimedOutEventAttributes) SetWorkflowType(v *v1.WorkflowType) { + x.WorkflowType = v +} -func (x *WorkflowExecutionCancelRequestedEventAttributes) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_history_v1_message_proto_msgTypes[20] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (x *ChildWorkflowExecutionTimedOutEventAttributes) SetInitiatedEventId(v int64) { + x.InitiatedEventId = v } -// Deprecated: Use WorkflowExecutionCancelRequestedEventAttributes.ProtoReflect.Descriptor instead. -func (*WorkflowExecutionCancelRequestedEventAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_history_v1_message_proto_rawDescGZIP(), []int{20} +func (x *ChildWorkflowExecutionTimedOutEventAttributes) SetStartedEventId(v int64) { + x.StartedEventId = v } -func (x *WorkflowExecutionCancelRequestedEventAttributes) GetCause() string { - if x != nil { - return x.Cause - } - return "" +func (x *ChildWorkflowExecutionTimedOutEventAttributes) SetRetryState(v v12.RetryState) { + x.RetryState = v } -func (x *WorkflowExecutionCancelRequestedEventAttributes) GetExternalInitiatedEventId() int64 { - if x != nil { - return x.ExternalInitiatedEventId +func (x *ChildWorkflowExecutionTimedOutEventAttributes) HasWorkflowExecution() bool { + if x == nil { + return false } - return 0 + return x.WorkflowExecution != nil } -func (x *WorkflowExecutionCancelRequestedEventAttributes) GetExternalWorkflowExecution() *v1.WorkflowExecution { - if x != nil { - return x.ExternalWorkflowExecution +func (x *ChildWorkflowExecutionTimedOutEventAttributes) HasWorkflowType() bool { + if x == nil { + return false } - return nil + return x.WorkflowType != nil } -func (x *WorkflowExecutionCancelRequestedEventAttributes) GetIdentity() string { - if x != nil { - return x.Identity - } - return "" +func (x *ChildWorkflowExecutionTimedOutEventAttributes) ClearWorkflowExecution() { + x.WorkflowExecution = nil } -type WorkflowExecutionCanceledEventAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with - WorkflowTaskCompletedEventId int64 `protobuf:"varint,1,opt,name=workflow_task_completed_event_id,json=workflowTaskCompletedEventId,proto3" json:"workflow_task_completed_event_id,omitempty"` - Details *v1.Payloads `protobuf:"bytes,2,opt,name=details,proto3" json:"details,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache +func (x *ChildWorkflowExecutionTimedOutEventAttributes) ClearWorkflowType() { + x.WorkflowType = nil } -func (x *WorkflowExecutionCanceledEventAttributes) Reset() { - *x = WorkflowExecutionCanceledEventAttributes{} - mi := &file_temporal_api_history_v1_message_proto_msgTypes[21] +type ChildWorkflowExecutionTimedOutEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Namespace of the child workflow. + // SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. + Namespace string + NamespaceId string + WorkflowExecution *v1.WorkflowExecution + WorkflowType *v1.WorkflowType + // Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to + InitiatedEventId int64 + // Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to + StartedEventId int64 + RetryState v12.RetryState +} + +func (b0 ChildWorkflowExecutionTimedOutEventAttributes_builder) Build() *ChildWorkflowExecutionTimedOutEventAttributes { + m0 := &ChildWorkflowExecutionTimedOutEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.NamespaceId = b.NamespaceId + x.WorkflowExecution = b.WorkflowExecution + x.WorkflowType = b.WorkflowType + x.InitiatedEventId = b.InitiatedEventId + x.StartedEventId = b.StartedEventId + x.RetryState = b.RetryState + return m0 +} + +type ChildWorkflowExecutionTerminatedEventAttributes struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // Namespace of the child workflow. + // SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. + Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` + NamespaceId string `protobuf:"bytes,6,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"` + WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` + WorkflowType *v1.WorkflowType `protobuf:"bytes,3,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type,omitempty"` + // Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to + InitiatedEventId int64 `protobuf:"varint,4,opt,name=initiated_event_id,json=initiatedEventId,proto3" json:"initiated_event_id,omitempty"` + // Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to + StartedEventId int64 `protobuf:"varint,5,opt,name=started_event_id,json=startedEventId,proto3" json:"started_event_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ChildWorkflowExecutionTerminatedEventAttributes) Reset() { + *x = ChildWorkflowExecutionTerminatedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[40] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } -func (x *WorkflowExecutionCanceledEventAttributes) String() string { +func (x *ChildWorkflowExecutionTerminatedEventAttributes) String() string { return protoimpl.X.MessageStringOf(x) } -func (*WorkflowExecutionCanceledEventAttributes) ProtoMessage() {} +func (*ChildWorkflowExecutionTerminatedEventAttributes) ProtoMessage() {} -func (x *WorkflowExecutionCanceledEventAttributes) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_history_v1_message_proto_msgTypes[21] +func (x *ChildWorkflowExecutionTerminatedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[40] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2419,141 +7839,158 @@ func (x *WorkflowExecutionCanceledEventAttributes) ProtoReflect() protoreflect.M return mi.MessageOf(x) } -// Deprecated: Use WorkflowExecutionCanceledEventAttributes.ProtoReflect.Descriptor instead. -func (*WorkflowExecutionCanceledEventAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_history_v1_message_proto_rawDescGZIP(), []int{21} +func (x *ChildWorkflowExecutionTerminatedEventAttributes) GetNamespace() string { + if x != nil { + return x.Namespace + } + return "" } -func (x *WorkflowExecutionCanceledEventAttributes) GetWorkflowTaskCompletedEventId() int64 { +func (x *ChildWorkflowExecutionTerminatedEventAttributes) GetNamespaceId() string { if x != nil { - return x.WorkflowTaskCompletedEventId + return x.NamespaceId } - return 0 + return "" } -func (x *WorkflowExecutionCanceledEventAttributes) GetDetails() *v1.Payloads { +func (x *ChildWorkflowExecutionTerminatedEventAttributes) GetWorkflowExecution() *v1.WorkflowExecution { if x != nil { - return x.Details + return x.WorkflowExecution } return nil } -type MarkerRecordedEventAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Workers use this to identify the "types" of various markers. Ex: Local activity, side effect. - MarkerName string `protobuf:"bytes,1,opt,name=marker_name,json=markerName,proto3" json:"marker_name,omitempty"` - // Serialized information recorded in the marker - Details map[string]*v1.Payloads `protobuf:"bytes,2,rep,name=details,proto3" json:"details,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` - // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with - WorkflowTaskCompletedEventId int64 `protobuf:"varint,3,opt,name=workflow_task_completed_event_id,json=workflowTaskCompletedEventId,proto3" json:"workflow_task_completed_event_id,omitempty"` - Header *v1.Header `protobuf:"bytes,4,opt,name=header,proto3" json:"header,omitempty"` - // Some uses of markers, like a local activity, could "fail". If they did that is recorded here. - Failure *v13.Failure `protobuf:"bytes,5,opt,name=failure,proto3" json:"failure,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache +func (x *ChildWorkflowExecutionTerminatedEventAttributes) GetWorkflowType() *v1.WorkflowType { + if x != nil { + return x.WorkflowType + } + return nil } -func (x *MarkerRecordedEventAttributes) Reset() { - *x = MarkerRecordedEventAttributes{} - mi := &file_temporal_api_history_v1_message_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *ChildWorkflowExecutionTerminatedEventAttributes) GetInitiatedEventId() int64 { + if x != nil { + return x.InitiatedEventId + } + return 0 } -func (x *MarkerRecordedEventAttributes) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *ChildWorkflowExecutionTerminatedEventAttributes) GetStartedEventId() int64 { + if x != nil { + return x.StartedEventId + } + return 0 } -func (*MarkerRecordedEventAttributes) ProtoMessage() {} +func (x *ChildWorkflowExecutionTerminatedEventAttributes) SetNamespace(v string) { + x.Namespace = v +} -func (x *MarkerRecordedEventAttributes) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_history_v1_message_proto_msgTypes[22] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (x *ChildWorkflowExecutionTerminatedEventAttributes) SetNamespaceId(v string) { + x.NamespaceId = v } -// Deprecated: Use MarkerRecordedEventAttributes.ProtoReflect.Descriptor instead. -func (*MarkerRecordedEventAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_history_v1_message_proto_rawDescGZIP(), []int{22} +func (x *ChildWorkflowExecutionTerminatedEventAttributes) SetWorkflowExecution(v *v1.WorkflowExecution) { + x.WorkflowExecution = v } -func (x *MarkerRecordedEventAttributes) GetMarkerName() string { - if x != nil { - return x.MarkerName - } - return "" +func (x *ChildWorkflowExecutionTerminatedEventAttributes) SetWorkflowType(v *v1.WorkflowType) { + x.WorkflowType = v } -func (x *MarkerRecordedEventAttributes) GetDetails() map[string]*v1.Payloads { - if x != nil { - return x.Details - } - return nil +func (x *ChildWorkflowExecutionTerminatedEventAttributes) SetInitiatedEventId(v int64) { + x.InitiatedEventId = v } -func (x *MarkerRecordedEventAttributes) GetWorkflowTaskCompletedEventId() int64 { - if x != nil { - return x.WorkflowTaskCompletedEventId - } - return 0 +func (x *ChildWorkflowExecutionTerminatedEventAttributes) SetStartedEventId(v int64) { + x.StartedEventId = v } -func (x *MarkerRecordedEventAttributes) GetHeader() *v1.Header { - if x != nil { - return x.Header +func (x *ChildWorkflowExecutionTerminatedEventAttributes) HasWorkflowExecution() bool { + if x == nil { + return false } - return nil + return x.WorkflowExecution != nil } -func (x *MarkerRecordedEventAttributes) GetFailure() *v13.Failure { - if x != nil { - return x.Failure +func (x *ChildWorkflowExecutionTerminatedEventAttributes) HasWorkflowType() bool { + if x == nil { + return false } - return nil + return x.WorkflowType != nil } -type WorkflowExecutionSignaledEventAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The name/type of the signal to fire - SignalName string `protobuf:"bytes,1,opt,name=signal_name,json=signalName,proto3" json:"signal_name,omitempty"` - // Will be deserialized and provided as argument(s) to the signal handler - Input *v1.Payloads `protobuf:"bytes,2,opt,name=input,proto3" json:"input,omitempty"` - // id of the worker/client who sent this signal - Identity string `protobuf:"bytes,3,opt,name=identity,proto3" json:"identity,omitempty"` - // Headers that were passed by the sender of the signal and copied by temporal - // server into the workflow task. - Header *v1.Header `protobuf:"bytes,4,opt,name=header,proto3" json:"header,omitempty"` - // Deprecated. This field is never respected and should always be set to false. - // - // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. - SkipGenerateWorkflowTask bool `protobuf:"varint,5,opt,name=skip_generate_workflow_task,json=skipGenerateWorkflowTask,proto3" json:"skip_generate_workflow_task,omitempty"` - // When signal origin is a workflow execution, this field is set. - ExternalWorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,6,opt,name=external_workflow_execution,json=externalWorkflowExecution,proto3" json:"external_workflow_execution,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache +func (x *ChildWorkflowExecutionTerminatedEventAttributes) ClearWorkflowExecution() { + x.WorkflowExecution = nil } -func (x *WorkflowExecutionSignaledEventAttributes) Reset() { - *x = WorkflowExecutionSignaledEventAttributes{} - mi := &file_temporal_api_history_v1_message_proto_msgTypes[23] +func (x *ChildWorkflowExecutionTerminatedEventAttributes) ClearWorkflowType() { + x.WorkflowType = nil +} + +type ChildWorkflowExecutionTerminatedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Namespace of the child workflow. + // SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. + Namespace string + NamespaceId string + WorkflowExecution *v1.WorkflowExecution + WorkflowType *v1.WorkflowType + // Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to + InitiatedEventId int64 + // Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to + StartedEventId int64 +} + +func (b0 ChildWorkflowExecutionTerminatedEventAttributes_builder) Build() *ChildWorkflowExecutionTerminatedEventAttributes { + m0 := &ChildWorkflowExecutionTerminatedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.NamespaceId = b.NamespaceId + x.WorkflowExecution = b.WorkflowExecution + x.WorkflowType = b.WorkflowType + x.InitiatedEventId = b.InitiatedEventId + x.StartedEventId = b.StartedEventId + return m0 +} + +type WorkflowExecutionOptionsUpdatedEventAttributes struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // Versioning override upserted in this event. + // Ignored if nil or if unset_versioning_override is true. + VersioningOverride *v14.VersioningOverride `protobuf:"bytes,1,opt,name=versioning_override,json=versioningOverride,proto3" json:"versioning_override,omitempty"` + // Versioning override removed in this event. + UnsetVersioningOverride bool `protobuf:"varint,2,opt,name=unset_versioning_override,json=unsetVersioningOverride,proto3" json:"unset_versioning_override,omitempty"` + // Request ID attached to the running workflow execution so that subsequent requests with same + // request ID will be deduped. + AttachedRequestId string `protobuf:"bytes,3,opt,name=attached_request_id,json=attachedRequestId,proto3" json:"attached_request_id,omitempty"` + // Completion callbacks attached to the running workflow execution. + AttachedCompletionCallbacks []*v1.Callback `protobuf:"bytes,4,rep,name=attached_completion_callbacks,json=attachedCompletionCallbacks,proto3" json:"attached_completion_callbacks,omitempty"` + // Optional. The identity of the client who initiated the request that created this event. + Identity string `protobuf:"bytes,5,opt,name=identity,proto3" json:"identity,omitempty"` + // Priority override upserted in this event. Represents the full priority; not just partial fields. + // Ignored if nil. + Priority *v1.Priority `protobuf:"bytes,6,opt,name=priority,proto3" json:"priority,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowExecutionOptionsUpdatedEventAttributes) Reset() { + *x = WorkflowExecutionOptionsUpdatedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[41] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } -func (x *WorkflowExecutionSignaledEventAttributes) String() string { +func (x *WorkflowExecutionOptionsUpdatedEventAttributes) String() string { return protoimpl.X.MessageStringOf(x) } -func (*WorkflowExecutionSignaledEventAttributes) ProtoMessage() {} +func (*WorkflowExecutionOptionsUpdatedEventAttributes) ProtoMessage() {} -func (x *WorkflowExecutionSignaledEventAttributes) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_history_v1_message_proto_msgTypes[23] +func (x *WorkflowExecutionOptionsUpdatedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[41] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2564,153 +8001,159 @@ func (x *WorkflowExecutionSignaledEventAttributes) ProtoReflect() protoreflect.M return mi.MessageOf(x) } -// Deprecated: Use WorkflowExecutionSignaledEventAttributes.ProtoReflect.Descriptor instead. -func (*WorkflowExecutionSignaledEventAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_history_v1_message_proto_rawDescGZIP(), []int{23} -} - -func (x *WorkflowExecutionSignaledEventAttributes) GetSignalName() string { +func (x *WorkflowExecutionOptionsUpdatedEventAttributes) GetVersioningOverride() *v14.VersioningOverride { if x != nil { - return x.SignalName + return x.VersioningOverride } - return "" + return nil } -func (x *WorkflowExecutionSignaledEventAttributes) GetInput() *v1.Payloads { +func (x *WorkflowExecutionOptionsUpdatedEventAttributes) GetUnsetVersioningOverride() bool { if x != nil { - return x.Input + return x.UnsetVersioningOverride } - return nil + return false } -func (x *WorkflowExecutionSignaledEventAttributes) GetIdentity() string { +func (x *WorkflowExecutionOptionsUpdatedEventAttributes) GetAttachedRequestId() string { if x != nil { - return x.Identity + return x.AttachedRequestId } return "" } -func (x *WorkflowExecutionSignaledEventAttributes) GetHeader() *v1.Header { +func (x *WorkflowExecutionOptionsUpdatedEventAttributes) GetAttachedCompletionCallbacks() []*v1.Callback { if x != nil { - return x.Header + return x.AttachedCompletionCallbacks } return nil } -// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. -func (x *WorkflowExecutionSignaledEventAttributes) GetSkipGenerateWorkflowTask() bool { +func (x *WorkflowExecutionOptionsUpdatedEventAttributes) GetIdentity() string { if x != nil { - return x.SkipGenerateWorkflowTask + return x.Identity } - return false + return "" } -func (x *WorkflowExecutionSignaledEventAttributes) GetExternalWorkflowExecution() *v1.WorkflowExecution { +func (x *WorkflowExecutionOptionsUpdatedEventAttributes) GetPriority() *v1.Priority { if x != nil { - return x.ExternalWorkflowExecution + return x.Priority } return nil } -type WorkflowExecutionTerminatedEventAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` - // User/client provided reason for termination - Reason string `protobuf:"bytes,1,opt,name=reason,proto3" json:"reason,omitempty"` - Details *v1.Payloads `protobuf:"bytes,2,opt,name=details,proto3" json:"details,omitempty"` - // id of the client who requested termination - Identity string `protobuf:"bytes,3,opt,name=identity,proto3" json:"identity,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache +func (x *WorkflowExecutionOptionsUpdatedEventAttributes) SetVersioningOverride(v *v14.VersioningOverride) { + x.VersioningOverride = v } -func (x *WorkflowExecutionTerminatedEventAttributes) Reset() { - *x = WorkflowExecutionTerminatedEventAttributes{} - mi := &file_temporal_api_history_v1_message_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *WorkflowExecutionOptionsUpdatedEventAttributes) SetUnsetVersioningOverride(v bool) { + x.UnsetVersioningOverride = v } -func (x *WorkflowExecutionTerminatedEventAttributes) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *WorkflowExecutionOptionsUpdatedEventAttributes) SetAttachedRequestId(v string) { + x.AttachedRequestId = v } -func (*WorkflowExecutionTerminatedEventAttributes) ProtoMessage() {} +func (x *WorkflowExecutionOptionsUpdatedEventAttributes) SetAttachedCompletionCallbacks(v []*v1.Callback) { + x.AttachedCompletionCallbacks = v +} -func (x *WorkflowExecutionTerminatedEventAttributes) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_history_v1_message_proto_msgTypes[24] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (x *WorkflowExecutionOptionsUpdatedEventAttributes) SetIdentity(v string) { + x.Identity = v } -// Deprecated: Use WorkflowExecutionTerminatedEventAttributes.ProtoReflect.Descriptor instead. -func (*WorkflowExecutionTerminatedEventAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_history_v1_message_proto_rawDescGZIP(), []int{24} +func (x *WorkflowExecutionOptionsUpdatedEventAttributes) SetPriority(v *v1.Priority) { + x.Priority = v } -func (x *WorkflowExecutionTerminatedEventAttributes) GetReason() string { - if x != nil { - return x.Reason +func (x *WorkflowExecutionOptionsUpdatedEventAttributes) HasVersioningOverride() bool { + if x == nil { + return false } - return "" + return x.VersioningOverride != nil } -func (x *WorkflowExecutionTerminatedEventAttributes) GetDetails() *v1.Payloads { - if x != nil { - return x.Details +func (x *WorkflowExecutionOptionsUpdatedEventAttributes) HasPriority() bool { + if x == nil { + return false } - return nil + return x.Priority != nil } -func (x *WorkflowExecutionTerminatedEventAttributes) GetIdentity() string { - if x != nil { - return x.Identity - } - return "" +func (x *WorkflowExecutionOptionsUpdatedEventAttributes) ClearVersioningOverride() { + x.VersioningOverride = nil } -type RequestCancelExternalWorkflowExecutionInitiatedEventAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with - WorkflowTaskCompletedEventId int64 `protobuf:"varint,1,opt,name=workflow_task_completed_event_id,json=workflowTaskCompletedEventId,proto3" json:"workflow_task_completed_event_id,omitempty"` - // The namespace the workflow to be cancelled lives in. - // SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. - Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` - NamespaceId string `protobuf:"bytes,7,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"` - WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,3,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` - // Deprecated. - // - // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. - Control string `protobuf:"bytes,4,opt,name=control,proto3" json:"control,omitempty"` - // Workers are expected to set this to true if the workflow they are requesting to cancel is - // a child of the workflow which issued the request - ChildWorkflowOnly bool `protobuf:"varint,5,opt,name=child_workflow_only,json=childWorkflowOnly,proto3" json:"child_workflow_only,omitempty"` - // Reason for requesting the cancellation - Reason string `protobuf:"bytes,6,opt,name=reason,proto3" json:"reason,omitempty"` +func (x *WorkflowExecutionOptionsUpdatedEventAttributes) ClearPriority() { + x.Priority = nil +} + +type WorkflowExecutionOptionsUpdatedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Versioning override upserted in this event. + // Ignored if nil or if unset_versioning_override is true. + VersioningOverride *v14.VersioningOverride + // Versioning override removed in this event. + UnsetVersioningOverride bool + // Request ID attached to the running workflow execution so that subsequent requests with same + // request ID will be deduped. + AttachedRequestId string + // Completion callbacks attached to the running workflow execution. + AttachedCompletionCallbacks []*v1.Callback + // Optional. The identity of the client who initiated the request that created this event. + Identity string + // Priority override upserted in this event. Represents the full priority; not just partial fields. + // Ignored if nil. + Priority *v1.Priority +} + +func (b0 WorkflowExecutionOptionsUpdatedEventAttributes_builder) Build() *WorkflowExecutionOptionsUpdatedEventAttributes { + m0 := &WorkflowExecutionOptionsUpdatedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.VersioningOverride = b.VersioningOverride + x.UnsetVersioningOverride = b.UnsetVersioningOverride + x.AttachedRequestId = b.AttachedRequestId + x.AttachedCompletionCallbacks = b.AttachedCompletionCallbacks + x.Identity = b.Identity + x.Priority = b.Priority + return m0 +} + +// Not used anywhere. Use case is replaced by WorkflowExecutionOptionsUpdatedEventAttributes +type WorkflowPropertiesModifiedExternallyEventAttributes struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // Not used. + NewTaskQueue string `protobuf:"bytes,1,opt,name=new_task_queue,json=newTaskQueue,proto3" json:"new_task_queue,omitempty"` + // Not used. + NewWorkflowTaskTimeout *durationpb.Duration `protobuf:"bytes,2,opt,name=new_workflow_task_timeout,json=newWorkflowTaskTimeout,proto3" json:"new_workflow_task_timeout,omitempty"` + // Not used. + NewWorkflowRunTimeout *durationpb.Duration `protobuf:"bytes,3,opt,name=new_workflow_run_timeout,json=newWorkflowRunTimeout,proto3" json:"new_workflow_run_timeout,omitempty"` + // Not used. + NewWorkflowExecutionTimeout *durationpb.Duration `protobuf:"bytes,4,opt,name=new_workflow_execution_timeout,json=newWorkflowExecutionTimeout,proto3" json:"new_workflow_execution_timeout,omitempty"` + // Not used. + UpsertedMemo *v1.Memo `protobuf:"bytes,5,opt,name=upserted_memo,json=upsertedMemo,proto3" json:"upserted_memo,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } -func (x *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) Reset() { - *x = RequestCancelExternalWorkflowExecutionInitiatedEventAttributes{} - mi := &file_temporal_api_history_v1_message_proto_msgTypes[25] +func (x *WorkflowPropertiesModifiedExternallyEventAttributes) Reset() { + *x = WorkflowPropertiesModifiedExternallyEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[42] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } -func (x *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) String() string { +func (x *WorkflowPropertiesModifiedExternallyEventAttributes) String() string { return protoimpl.X.MessageStringOf(x) } -func (*RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) ProtoMessage() {} +func (*WorkflowPropertiesModifiedExternallyEventAttributes) ProtoMessage() {} -func (x *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_history_v1_message_proto_msgTypes[25] +func (x *WorkflowPropertiesModifiedExternallyEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[42] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2721,97 +8164,158 @@ func (x *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) ProtoRe return mi.MessageOf(x) } -// Deprecated: Use RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.ProtoReflect.Descriptor instead. -func (*RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_history_v1_message_proto_rawDescGZIP(), []int{25} +func (x *WorkflowPropertiesModifiedExternallyEventAttributes) GetNewTaskQueue() string { + if x != nil { + return x.NewTaskQueue + } + return "" } -func (x *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) GetWorkflowTaskCompletedEventId() int64 { +func (x *WorkflowPropertiesModifiedExternallyEventAttributes) GetNewWorkflowTaskTimeout() *durationpb.Duration { if x != nil { - return x.WorkflowTaskCompletedEventId + return x.NewWorkflowTaskTimeout } - return 0 + return nil } -func (x *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) GetNamespace() string { +func (x *WorkflowPropertiesModifiedExternallyEventAttributes) GetNewWorkflowRunTimeout() *durationpb.Duration { if x != nil { - return x.Namespace + return x.NewWorkflowRunTimeout } - return "" + return nil } -func (x *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) GetNamespaceId() string { +func (x *WorkflowPropertiesModifiedExternallyEventAttributes) GetNewWorkflowExecutionTimeout() *durationpb.Duration { if x != nil { - return x.NamespaceId + return x.NewWorkflowExecutionTimeout } - return "" + return nil } -func (x *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) GetWorkflowExecution() *v1.WorkflowExecution { +func (x *WorkflowPropertiesModifiedExternallyEventAttributes) GetUpsertedMemo() *v1.Memo { if x != nil { - return x.WorkflowExecution + return x.UpsertedMemo } return nil } -// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. -func (x *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) GetControl() string { - if x != nil { - return x.Control +func (x *WorkflowPropertiesModifiedExternallyEventAttributes) SetNewTaskQueue(v string) { + x.NewTaskQueue = v +} + +func (x *WorkflowPropertiesModifiedExternallyEventAttributes) SetNewWorkflowTaskTimeout(v *durationpb.Duration) { + x.NewWorkflowTaskTimeout = v +} + +func (x *WorkflowPropertiesModifiedExternallyEventAttributes) SetNewWorkflowRunTimeout(v *durationpb.Duration) { + x.NewWorkflowRunTimeout = v +} + +func (x *WorkflowPropertiesModifiedExternallyEventAttributes) SetNewWorkflowExecutionTimeout(v *durationpb.Duration) { + x.NewWorkflowExecutionTimeout = v +} + +func (x *WorkflowPropertiesModifiedExternallyEventAttributes) SetUpsertedMemo(v *v1.Memo) { + x.UpsertedMemo = v +} + +func (x *WorkflowPropertiesModifiedExternallyEventAttributes) HasNewWorkflowTaskTimeout() bool { + if x == nil { + return false } - return "" + return x.NewWorkflowTaskTimeout != nil } -func (x *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) GetChildWorkflowOnly() bool { - if x != nil { - return x.ChildWorkflowOnly +func (x *WorkflowPropertiesModifiedExternallyEventAttributes) HasNewWorkflowRunTimeout() bool { + if x == nil { + return false } - return false + return x.NewWorkflowRunTimeout != nil } -func (x *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) GetReason() string { - if x != nil { - return x.Reason +func (x *WorkflowPropertiesModifiedExternallyEventAttributes) HasNewWorkflowExecutionTimeout() bool { + if x == nil { + return false } - return "" + return x.NewWorkflowExecutionTimeout != nil } -type RequestCancelExternalWorkflowExecutionFailedEventAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` - Cause v12.CancelExternalWorkflowExecutionFailedCause `protobuf:"varint,1,opt,name=cause,proto3,enum=temporal.api.enums.v1.CancelExternalWorkflowExecutionFailedCause" json:"cause,omitempty"` - // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with - WorkflowTaskCompletedEventId int64 `protobuf:"varint,2,opt,name=workflow_task_completed_event_id,json=workflowTaskCompletedEventId,proto3" json:"workflow_task_completed_event_id,omitempty"` - // Namespace of the workflow which failed to cancel. - // SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. - Namespace string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"` - NamespaceId string `protobuf:"bytes,7,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"` - WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,4,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` - // id of the `REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED` event this failure - // corresponds to - InitiatedEventId int64 `protobuf:"varint,5,opt,name=initiated_event_id,json=initiatedEventId,proto3" json:"initiated_event_id,omitempty"` - // Deprecated. - // - // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. - Control string `protobuf:"bytes,6,opt,name=control,proto3" json:"control,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache +func (x *WorkflowPropertiesModifiedExternallyEventAttributes) HasUpsertedMemo() bool { + if x == nil { + return false + } + return x.UpsertedMemo != nil } -func (x *RequestCancelExternalWorkflowExecutionFailedEventAttributes) Reset() { - *x = RequestCancelExternalWorkflowExecutionFailedEventAttributes{} - mi := &file_temporal_api_history_v1_message_proto_msgTypes[26] +func (x *WorkflowPropertiesModifiedExternallyEventAttributes) ClearNewWorkflowTaskTimeout() { + x.NewWorkflowTaskTimeout = nil +} + +func (x *WorkflowPropertiesModifiedExternallyEventAttributes) ClearNewWorkflowRunTimeout() { + x.NewWorkflowRunTimeout = nil +} + +func (x *WorkflowPropertiesModifiedExternallyEventAttributes) ClearNewWorkflowExecutionTimeout() { + x.NewWorkflowExecutionTimeout = nil +} + +func (x *WorkflowPropertiesModifiedExternallyEventAttributes) ClearUpsertedMemo() { + x.UpsertedMemo = nil +} + +type WorkflowPropertiesModifiedExternallyEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Not used. + NewTaskQueue string + // Not used. + NewWorkflowTaskTimeout *durationpb.Duration + // Not used. + NewWorkflowRunTimeout *durationpb.Duration + // Not used. + NewWorkflowExecutionTimeout *durationpb.Duration + // Not used. + UpsertedMemo *v1.Memo +} + +func (b0 WorkflowPropertiesModifiedExternallyEventAttributes_builder) Build() *WorkflowPropertiesModifiedExternallyEventAttributes { + m0 := &WorkflowPropertiesModifiedExternallyEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.NewTaskQueue = b.NewTaskQueue + x.NewWorkflowTaskTimeout = b.NewWorkflowTaskTimeout + x.NewWorkflowRunTimeout = b.NewWorkflowRunTimeout + x.NewWorkflowExecutionTimeout = b.NewWorkflowExecutionTimeout + x.UpsertedMemo = b.UpsertedMemo + return m0 +} + +type ActivityPropertiesModifiedExternallyEventAttributes struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // The id of the `ACTIVITY_TASK_SCHEDULED` event this modification corresponds to. + ScheduledEventId int64 `protobuf:"varint,1,opt,name=scheduled_event_id,json=scheduledEventId,proto3" json:"scheduled_event_id,omitempty"` + // If set, update the retry policy of the activity, replacing it with the specified one. + // The number of attempts at the activity is preserved. + NewRetryPolicy *v1.RetryPolicy `protobuf:"bytes,2,opt,name=new_retry_policy,json=newRetryPolicy,proto3" json:"new_retry_policy,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ActivityPropertiesModifiedExternallyEventAttributes) Reset() { + *x = ActivityPropertiesModifiedExternallyEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[43] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } -func (x *RequestCancelExternalWorkflowExecutionFailedEventAttributes) String() string { +func (x *ActivityPropertiesModifiedExternallyEventAttributes) String() string { return protoimpl.X.MessageStringOf(x) } -func (*RequestCancelExternalWorkflowExecutionFailedEventAttributes) ProtoMessage() {} +func (*ActivityPropertiesModifiedExternallyEventAttributes) ProtoMessage() {} -func (x *RequestCancelExternalWorkflowExecutionFailedEventAttributes) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_history_v1_message_proto_msgTypes[26] +func (x *ActivityPropertiesModifiedExternallyEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[43] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2822,90 +8326,90 @@ func (x *RequestCancelExternalWorkflowExecutionFailedEventAttributes) ProtoRefle return mi.MessageOf(x) } -// Deprecated: Use RequestCancelExternalWorkflowExecutionFailedEventAttributes.ProtoReflect.Descriptor instead. -func (*RequestCancelExternalWorkflowExecutionFailedEventAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_history_v1_message_proto_rawDescGZIP(), []int{26} -} - -func (x *RequestCancelExternalWorkflowExecutionFailedEventAttributes) GetCause() v12.CancelExternalWorkflowExecutionFailedCause { +func (x *ActivityPropertiesModifiedExternallyEventAttributes) GetScheduledEventId() int64 { if x != nil { - return x.Cause + return x.ScheduledEventId } - return v12.CancelExternalWorkflowExecutionFailedCause(0) + return 0 } -func (x *RequestCancelExternalWorkflowExecutionFailedEventAttributes) GetWorkflowTaskCompletedEventId() int64 { +func (x *ActivityPropertiesModifiedExternallyEventAttributes) GetNewRetryPolicy() *v1.RetryPolicy { if x != nil { - return x.WorkflowTaskCompletedEventId + return x.NewRetryPolicy } - return 0 + return nil } -func (x *RequestCancelExternalWorkflowExecutionFailedEventAttributes) GetNamespace() string { - if x != nil { - return x.Namespace - } - return "" +func (x *ActivityPropertiesModifiedExternallyEventAttributes) SetScheduledEventId(v int64) { + x.ScheduledEventId = v } -func (x *RequestCancelExternalWorkflowExecutionFailedEventAttributes) GetNamespaceId() string { - if x != nil { - return x.NamespaceId - } - return "" +func (x *ActivityPropertiesModifiedExternallyEventAttributes) SetNewRetryPolicy(v *v1.RetryPolicy) { + x.NewRetryPolicy = v } -func (x *RequestCancelExternalWorkflowExecutionFailedEventAttributes) GetWorkflowExecution() *v1.WorkflowExecution { - if x != nil { - return x.WorkflowExecution +func (x *ActivityPropertiesModifiedExternallyEventAttributes) HasNewRetryPolicy() bool { + if x == nil { + return false } - return nil + return x.NewRetryPolicy != nil } -func (x *RequestCancelExternalWorkflowExecutionFailedEventAttributes) GetInitiatedEventId() int64 { - if x != nil { - return x.InitiatedEventId - } - return 0 +func (x *ActivityPropertiesModifiedExternallyEventAttributes) ClearNewRetryPolicy() { + x.NewRetryPolicy = nil } -// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. -func (x *RequestCancelExternalWorkflowExecutionFailedEventAttributes) GetControl() string { - if x != nil { - return x.Control - } - return "" +type ActivityPropertiesModifiedExternallyEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The id of the `ACTIVITY_TASK_SCHEDULED` event this modification corresponds to. + ScheduledEventId int64 + // If set, update the retry policy of the activity, replacing it with the specified one. + // The number of attempts at the activity is preserved. + NewRetryPolicy *v1.RetryPolicy } -type ExternalWorkflowExecutionCancelRequestedEventAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` - // id of the `REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED` event this event corresponds - // to - InitiatedEventId int64 `protobuf:"varint,1,opt,name=initiated_event_id,json=initiatedEventId,proto3" json:"initiated_event_id,omitempty"` - // Namespace of the to-be-cancelled workflow. - // SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. - Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` - NamespaceId string `protobuf:"bytes,4,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"` - WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,3,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache +func (b0 ActivityPropertiesModifiedExternallyEventAttributes_builder) Build() *ActivityPropertiesModifiedExternallyEventAttributes { + m0 := &ActivityPropertiesModifiedExternallyEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.ScheduledEventId = b.ScheduledEventId + x.NewRetryPolicy = b.NewRetryPolicy + return m0 } -func (x *ExternalWorkflowExecutionCancelRequestedEventAttributes) Reset() { - *x = ExternalWorkflowExecutionCancelRequestedEventAttributes{} - mi := &file_temporal_api_history_v1_message_proto_msgTypes[27] +type WorkflowExecutionUpdateAcceptedEventAttributes struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // The instance ID of the update protocol that generated this event. + ProtocolInstanceId string `protobuf:"bytes,1,opt,name=protocol_instance_id,json=protocolInstanceId,proto3" json:"protocol_instance_id,omitempty"` + // The message ID of the original request message that initiated this + // update. Needed so that the worker can recreate and deliver that same + // message as part of replay. + AcceptedRequestMessageId string `protobuf:"bytes,2,opt,name=accepted_request_message_id,json=acceptedRequestMessageId,proto3" json:"accepted_request_message_id,omitempty"` + // The event ID used to sequence the original request message. + AcceptedRequestSequencingEventId int64 `protobuf:"varint,3,opt,name=accepted_request_sequencing_event_id,json=acceptedRequestSequencingEventId,proto3" json:"accepted_request_sequencing_event_id,omitempty"` + // The message payload of the original request message that initiated this + // update. + AcceptedRequest *v17.Request `protobuf:"bytes,4,opt,name=accepted_request,json=acceptedRequest,proto3" json:"accepted_request,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowExecutionUpdateAcceptedEventAttributes) Reset() { + *x = WorkflowExecutionUpdateAcceptedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[44] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } -func (x *ExternalWorkflowExecutionCancelRequestedEventAttributes) String() string { +func (x *WorkflowExecutionUpdateAcceptedEventAttributes) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ExternalWorkflowExecutionCancelRequestedEventAttributes) ProtoMessage() {} +func (*WorkflowExecutionUpdateAcceptedEventAttributes) ProtoMessage() {} -func (x *ExternalWorkflowExecutionCancelRequestedEventAttributes) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_history_v1_message_proto_msgTypes[27] +func (x *WorkflowExecutionUpdateAcceptedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[44] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2916,79 +8420,115 @@ func (x *ExternalWorkflowExecutionCancelRequestedEventAttributes) ProtoReflect() return mi.MessageOf(x) } -// Deprecated: Use ExternalWorkflowExecutionCancelRequestedEventAttributes.ProtoReflect.Descriptor instead. -func (*ExternalWorkflowExecutionCancelRequestedEventAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_history_v1_message_proto_rawDescGZIP(), []int{27} +func (x *WorkflowExecutionUpdateAcceptedEventAttributes) GetProtocolInstanceId() string { + if x != nil { + return x.ProtocolInstanceId + } + return "" } -func (x *ExternalWorkflowExecutionCancelRequestedEventAttributes) GetInitiatedEventId() int64 { +func (x *WorkflowExecutionUpdateAcceptedEventAttributes) GetAcceptedRequestMessageId() string { if x != nil { - return x.InitiatedEventId + return x.AcceptedRequestMessageId + } + return "" +} + +func (x *WorkflowExecutionUpdateAcceptedEventAttributes) GetAcceptedRequestSequencingEventId() int64 { + if x != nil { + return x.AcceptedRequestSequencingEventId } return 0 } -func (x *ExternalWorkflowExecutionCancelRequestedEventAttributes) GetNamespace() string { - if x != nil { - return x.Namespace +func (x *WorkflowExecutionUpdateAcceptedEventAttributes) GetAcceptedRequest() *v17.Request { + if x != nil { + return x.AcceptedRequest + } + return nil +} + +func (x *WorkflowExecutionUpdateAcceptedEventAttributes) SetProtocolInstanceId(v string) { + x.ProtocolInstanceId = v +} + +func (x *WorkflowExecutionUpdateAcceptedEventAttributes) SetAcceptedRequestMessageId(v string) { + x.AcceptedRequestMessageId = v +} + +func (x *WorkflowExecutionUpdateAcceptedEventAttributes) SetAcceptedRequestSequencingEventId(v int64) { + x.AcceptedRequestSequencingEventId = v +} + +func (x *WorkflowExecutionUpdateAcceptedEventAttributes) SetAcceptedRequest(v *v17.Request) { + x.AcceptedRequest = v +} + +func (x *WorkflowExecutionUpdateAcceptedEventAttributes) HasAcceptedRequest() bool { + if x == nil { + return false } - return "" + return x.AcceptedRequest != nil } -func (x *ExternalWorkflowExecutionCancelRequestedEventAttributes) GetNamespaceId() string { - if x != nil { - return x.NamespaceId - } - return "" +func (x *WorkflowExecutionUpdateAcceptedEventAttributes) ClearAcceptedRequest() { + x.AcceptedRequest = nil } -func (x *ExternalWorkflowExecutionCancelRequestedEventAttributes) GetWorkflowExecution() *v1.WorkflowExecution { - if x != nil { - return x.WorkflowExecution - } - return nil +type WorkflowExecutionUpdateAcceptedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The instance ID of the update protocol that generated this event. + ProtocolInstanceId string + // The message ID of the original request message that initiated this + // update. Needed so that the worker can recreate and deliver that same + // message as part of replay. + AcceptedRequestMessageId string + // The event ID used to sequence the original request message. + AcceptedRequestSequencingEventId int64 + // The message payload of the original request message that initiated this + // update. + AcceptedRequest *v17.Request } -type SignalExternalWorkflowExecutionInitiatedEventAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with - WorkflowTaskCompletedEventId int64 `protobuf:"varint,1,opt,name=workflow_task_completed_event_id,json=workflowTaskCompletedEventId,proto3" json:"workflow_task_completed_event_id,omitempty"` - // Namespace of the to-be-signalled workflow. - // SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. - Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` - NamespaceId string `protobuf:"bytes,9,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"` - WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,3,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` - // name/type of the signal to fire in the external workflow - SignalName string `protobuf:"bytes,4,opt,name=signal_name,json=signalName,proto3" json:"signal_name,omitempty"` - // Serialized arguments to provide to the signal handler - Input *v1.Payloads `protobuf:"bytes,5,opt,name=input,proto3" json:"input,omitempty"` - // Deprecated. - // - // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. - Control string `protobuf:"bytes,6,opt,name=control,proto3" json:"control,omitempty"` - // Workers are expected to set this to true if the workflow they are requesting to cancel is - // a child of the workflow which issued the request - ChildWorkflowOnly bool `protobuf:"varint,7,opt,name=child_workflow_only,json=childWorkflowOnly,proto3" json:"child_workflow_only,omitempty"` - Header *v1.Header `protobuf:"bytes,8,opt,name=header,proto3" json:"header,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache +func (b0 WorkflowExecutionUpdateAcceptedEventAttributes_builder) Build() *WorkflowExecutionUpdateAcceptedEventAttributes { + m0 := &WorkflowExecutionUpdateAcceptedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.ProtocolInstanceId = b.ProtocolInstanceId + x.AcceptedRequestMessageId = b.AcceptedRequestMessageId + x.AcceptedRequestSequencingEventId = b.AcceptedRequestSequencingEventId + x.AcceptedRequest = b.AcceptedRequest + return m0 } -func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) Reset() { - *x = SignalExternalWorkflowExecutionInitiatedEventAttributes{} - mi := &file_temporal_api_history_v1_message_proto_msgTypes[28] +type WorkflowExecutionUpdateCompletedEventAttributes struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // The metadata about this update. + Meta *v17.Meta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` + // The event ID indicating the acceptance of this update. + AcceptedEventId int64 `protobuf:"varint,3,opt,name=accepted_event_id,json=acceptedEventId,proto3" json:"accepted_event_id,omitempty"` + // The outcome of executing the workflow update function. + Outcome *v17.Outcome `protobuf:"bytes,2,opt,name=outcome,proto3" json:"outcome,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowExecutionUpdateCompletedEventAttributes) Reset() { + *x = WorkflowExecutionUpdateCompletedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[45] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } -func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) String() string { +func (x *WorkflowExecutionUpdateCompletedEventAttributes) String() string { return protoimpl.X.MessageStringOf(x) } -func (*SignalExternalWorkflowExecutionInitiatedEventAttributes) ProtoMessage() {} +func (*WorkflowExecutionUpdateCompletedEventAttributes) ProtoMessage() {} -func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_history_v1_message_proto_msgTypes[28] +func (x *WorkflowExecutionUpdateCompletedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[45] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2999,109 +8539,116 @@ func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) ProtoReflect() return mi.MessageOf(x) } -// Deprecated: Use SignalExternalWorkflowExecutionInitiatedEventAttributes.ProtoReflect.Descriptor instead. -func (*SignalExternalWorkflowExecutionInitiatedEventAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_history_v1_message_proto_rawDescGZIP(), []int{28} +func (x *WorkflowExecutionUpdateCompletedEventAttributes) GetMeta() *v17.Meta { + if x != nil { + return x.Meta + } + return nil } -func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) GetWorkflowTaskCompletedEventId() int64 { +func (x *WorkflowExecutionUpdateCompletedEventAttributes) GetAcceptedEventId() int64 { if x != nil { - return x.WorkflowTaskCompletedEventId + return x.AcceptedEventId } return 0 } -func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) GetNamespace() string { +func (x *WorkflowExecutionUpdateCompletedEventAttributes) GetOutcome() *v17.Outcome { if x != nil { - return x.Namespace + return x.Outcome } - return "" + return nil } -func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) GetNamespaceId() string { - if x != nil { - return x.NamespaceId - } - return "" +func (x *WorkflowExecutionUpdateCompletedEventAttributes) SetMeta(v *v17.Meta) { + x.Meta = v } -func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) GetWorkflowExecution() *v1.WorkflowExecution { - if x != nil { - return x.WorkflowExecution - } - return nil +func (x *WorkflowExecutionUpdateCompletedEventAttributes) SetAcceptedEventId(v int64) { + x.AcceptedEventId = v } -func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) GetSignalName() string { - if x != nil { - return x.SignalName - } - return "" +func (x *WorkflowExecutionUpdateCompletedEventAttributes) SetOutcome(v *v17.Outcome) { + x.Outcome = v } -func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) GetInput() *v1.Payloads { - if x != nil { - return x.Input +func (x *WorkflowExecutionUpdateCompletedEventAttributes) HasMeta() bool { + if x == nil { + return false } - return nil + return x.Meta != nil } -// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. -func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) GetControl() string { - if x != nil { - return x.Control +func (x *WorkflowExecutionUpdateCompletedEventAttributes) HasOutcome() bool { + if x == nil { + return false } - return "" + return x.Outcome != nil } -func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) GetChildWorkflowOnly() bool { - if x != nil { - return x.ChildWorkflowOnly - } - return false +func (x *WorkflowExecutionUpdateCompletedEventAttributes) ClearMeta() { + x.Meta = nil } -func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) GetHeader() *v1.Header { - if x != nil { - return x.Header - } - return nil +func (x *WorkflowExecutionUpdateCompletedEventAttributes) ClearOutcome() { + x.Outcome = nil } -type SignalExternalWorkflowExecutionFailedEventAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` - Cause v12.SignalExternalWorkflowExecutionFailedCause `protobuf:"varint,1,opt,name=cause,proto3,enum=temporal.api.enums.v1.SignalExternalWorkflowExecutionFailedCause" json:"cause,omitempty"` - // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with - WorkflowTaskCompletedEventId int64 `protobuf:"varint,2,opt,name=workflow_task_completed_event_id,json=workflowTaskCompletedEventId,proto3" json:"workflow_task_completed_event_id,omitempty"` - // Namespace of the workflow which failed the signal. - // SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. - Namespace string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"` - NamespaceId string `protobuf:"bytes,7,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"` - WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,4,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` - InitiatedEventId int64 `protobuf:"varint,5,opt,name=initiated_event_id,json=initiatedEventId,proto3" json:"initiated_event_id,omitempty"` - // Deprecated. - // - // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. - Control string `protobuf:"bytes,6,opt,name=control,proto3" json:"control,omitempty"` +type WorkflowExecutionUpdateCompletedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The metadata about this update. + Meta *v17.Meta + // The event ID indicating the acceptance of this update. + AcceptedEventId int64 + // The outcome of executing the workflow update function. + Outcome *v17.Outcome +} + +func (b0 WorkflowExecutionUpdateCompletedEventAttributes_builder) Build() *WorkflowExecutionUpdateCompletedEventAttributes { + m0 := &WorkflowExecutionUpdateCompletedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.Meta = b.Meta + x.AcceptedEventId = b.AcceptedEventId + x.Outcome = b.Outcome + return m0 +} + +type WorkflowExecutionUpdateRejectedEventAttributes struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // The instance ID of the update protocol that generated this event. + ProtocolInstanceId string `protobuf:"bytes,1,opt,name=protocol_instance_id,json=protocolInstanceId,proto3" json:"protocol_instance_id,omitempty"` + // The message ID of the original request message that initiated this + // update. Needed so that the worker can recreate and deliver that same + // message as part of replay. + RejectedRequestMessageId string `protobuf:"bytes,2,opt,name=rejected_request_message_id,json=rejectedRequestMessageId,proto3" json:"rejected_request_message_id,omitempty"` + // The event ID used to sequence the original request message. + RejectedRequestSequencingEventId int64 `protobuf:"varint,3,opt,name=rejected_request_sequencing_event_id,json=rejectedRequestSequencingEventId,proto3" json:"rejected_request_sequencing_event_id,omitempty"` + // The message payload of the original request message that initiated this + // update. + RejectedRequest *v17.Request `protobuf:"bytes,4,opt,name=rejected_request,json=rejectedRequest,proto3" json:"rejected_request,omitempty"` + // The cause of rejection. + Failure *v13.Failure `protobuf:"bytes,5,opt,name=failure,proto3" json:"failure,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } -func (x *SignalExternalWorkflowExecutionFailedEventAttributes) Reset() { - *x = SignalExternalWorkflowExecutionFailedEventAttributes{} - mi := &file_temporal_api_history_v1_message_proto_msgTypes[29] +func (x *WorkflowExecutionUpdateRejectedEventAttributes) Reset() { + *x = WorkflowExecutionUpdateRejectedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[46] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } -func (x *SignalExternalWorkflowExecutionFailedEventAttributes) String() string { +func (x *WorkflowExecutionUpdateRejectedEventAttributes) String() string { return protoimpl.X.MessageStringOf(x) } -func (*SignalExternalWorkflowExecutionFailedEventAttributes) ProtoMessage() {} +func (*WorkflowExecutionUpdateRejectedEventAttributes) ProtoMessage() {} -func (x *SignalExternalWorkflowExecutionFailedEventAttributes) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_history_v1_message_proto_msgTypes[29] +func (x *WorkflowExecutionUpdateRejectedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[46] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3112,93 +8659,138 @@ func (x *SignalExternalWorkflowExecutionFailedEventAttributes) ProtoReflect() pr return mi.MessageOf(x) } -// Deprecated: Use SignalExternalWorkflowExecutionFailedEventAttributes.ProtoReflect.Descriptor instead. -func (*SignalExternalWorkflowExecutionFailedEventAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_history_v1_message_proto_rawDescGZIP(), []int{29} -} - -func (x *SignalExternalWorkflowExecutionFailedEventAttributes) GetCause() v12.SignalExternalWorkflowExecutionFailedCause { +func (x *WorkflowExecutionUpdateRejectedEventAttributes) GetProtocolInstanceId() string { if x != nil { - return x.Cause + return x.ProtocolInstanceId } - return v12.SignalExternalWorkflowExecutionFailedCause(0) + return "" } -func (x *SignalExternalWorkflowExecutionFailedEventAttributes) GetWorkflowTaskCompletedEventId() int64 { +func (x *WorkflowExecutionUpdateRejectedEventAttributes) GetRejectedRequestMessageId() string { if x != nil { - return x.WorkflowTaskCompletedEventId + return x.RejectedRequestMessageId } - return 0 + return "" } -func (x *SignalExternalWorkflowExecutionFailedEventAttributes) GetNamespace() string { +func (x *WorkflowExecutionUpdateRejectedEventAttributes) GetRejectedRequestSequencingEventId() int64 { if x != nil { - return x.Namespace + return x.RejectedRequestSequencingEventId } - return "" + return 0 } -func (x *SignalExternalWorkflowExecutionFailedEventAttributes) GetNamespaceId() string { +func (x *WorkflowExecutionUpdateRejectedEventAttributes) GetRejectedRequest() *v17.Request { if x != nil { - return x.NamespaceId + return x.RejectedRequest } - return "" + return nil } -func (x *SignalExternalWorkflowExecutionFailedEventAttributes) GetWorkflowExecution() *v1.WorkflowExecution { +func (x *WorkflowExecutionUpdateRejectedEventAttributes) GetFailure() *v13.Failure { if x != nil { - return x.WorkflowExecution + return x.Failure } return nil } -func (x *SignalExternalWorkflowExecutionFailedEventAttributes) GetInitiatedEventId() int64 { - if x != nil { - return x.InitiatedEventId +func (x *WorkflowExecutionUpdateRejectedEventAttributes) SetProtocolInstanceId(v string) { + x.ProtocolInstanceId = v +} + +func (x *WorkflowExecutionUpdateRejectedEventAttributes) SetRejectedRequestMessageId(v string) { + x.RejectedRequestMessageId = v +} + +func (x *WorkflowExecutionUpdateRejectedEventAttributes) SetRejectedRequestSequencingEventId(v int64) { + x.RejectedRequestSequencingEventId = v +} + +func (x *WorkflowExecutionUpdateRejectedEventAttributes) SetRejectedRequest(v *v17.Request) { + x.RejectedRequest = v +} + +func (x *WorkflowExecutionUpdateRejectedEventAttributes) SetFailure(v *v13.Failure) { + x.Failure = v +} + +func (x *WorkflowExecutionUpdateRejectedEventAttributes) HasRejectedRequest() bool { + if x == nil { + return false } - return 0 + return x.RejectedRequest != nil } -// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. -func (x *SignalExternalWorkflowExecutionFailedEventAttributes) GetControl() string { - if x != nil { - return x.Control +func (x *WorkflowExecutionUpdateRejectedEventAttributes) HasFailure() bool { + if x == nil { + return false } - return "" + return x.Failure != nil } -type ExternalWorkflowExecutionSignaledEventAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` - // id of the `SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED` event this event corresponds to - InitiatedEventId int64 `protobuf:"varint,1,opt,name=initiated_event_id,json=initiatedEventId,proto3" json:"initiated_event_id,omitempty"` - // Namespace of the workflow which was signaled. - // SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. - Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` - NamespaceId string `protobuf:"bytes,5,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"` - WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,3,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` - // Deprecated. - // - // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. - Control string `protobuf:"bytes,4,opt,name=control,proto3" json:"control,omitempty"` +func (x *WorkflowExecutionUpdateRejectedEventAttributes) ClearRejectedRequest() { + x.RejectedRequest = nil +} + +func (x *WorkflowExecutionUpdateRejectedEventAttributes) ClearFailure() { + x.Failure = nil +} + +type WorkflowExecutionUpdateRejectedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The instance ID of the update protocol that generated this event. + ProtocolInstanceId string + // The message ID of the original request message that initiated this + // update. Needed so that the worker can recreate and deliver that same + // message as part of replay. + RejectedRequestMessageId string + // The event ID used to sequence the original request message. + RejectedRequestSequencingEventId int64 + // The message payload of the original request message that initiated this + // update. + RejectedRequest *v17.Request + // The cause of rejection. + Failure *v13.Failure +} + +func (b0 WorkflowExecutionUpdateRejectedEventAttributes_builder) Build() *WorkflowExecutionUpdateRejectedEventAttributes { + m0 := &WorkflowExecutionUpdateRejectedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.ProtocolInstanceId = b.ProtocolInstanceId + x.RejectedRequestMessageId = b.RejectedRequestMessageId + x.RejectedRequestSequencingEventId = b.RejectedRequestSequencingEventId + x.RejectedRequest = b.RejectedRequest + x.Failure = b.Failure + return m0 +} + +type WorkflowExecutionUpdateAdmittedEventAttributes struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // The update request associated with this event. + Request *v17.Request `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"` + // An explanation of why this event was written to history. + Origin v12.UpdateAdmittedEventOrigin `protobuf:"varint,2,opt,name=origin,proto3,enum=temporal.api.enums.v1.UpdateAdmittedEventOrigin" json:"origin,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } -func (x *ExternalWorkflowExecutionSignaledEventAttributes) Reset() { - *x = ExternalWorkflowExecutionSignaledEventAttributes{} - mi := &file_temporal_api_history_v1_message_proto_msgTypes[30] +func (x *WorkflowExecutionUpdateAdmittedEventAttributes) Reset() { + *x = WorkflowExecutionUpdateAdmittedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[47] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } -func (x *ExternalWorkflowExecutionSignaledEventAttributes) String() string { +func (x *WorkflowExecutionUpdateAdmittedEventAttributes) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ExternalWorkflowExecutionSignaledEventAttributes) ProtoMessage() {} +func (*WorkflowExecutionUpdateAdmittedEventAttributes) ProtoMessage() {} -func (x *ExternalWorkflowExecutionSignaledEventAttributes) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_history_v1_message_proto_msgTypes[30] +func (x *WorkflowExecutionUpdateAdmittedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[47] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3209,71 +8801,85 @@ func (x *ExternalWorkflowExecutionSignaledEventAttributes) ProtoReflect() protor return mi.MessageOf(x) } -// Deprecated: Use ExternalWorkflowExecutionSignaledEventAttributes.ProtoReflect.Descriptor instead. -func (*ExternalWorkflowExecutionSignaledEventAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_history_v1_message_proto_rawDescGZIP(), []int{30} -} - -func (x *ExternalWorkflowExecutionSignaledEventAttributes) GetInitiatedEventId() int64 { +func (x *WorkflowExecutionUpdateAdmittedEventAttributes) GetRequest() *v17.Request { if x != nil { - return x.InitiatedEventId + return x.Request } - return 0 + return nil } -func (x *ExternalWorkflowExecutionSignaledEventAttributes) GetNamespace() string { +func (x *WorkflowExecutionUpdateAdmittedEventAttributes) GetOrigin() v12.UpdateAdmittedEventOrigin { if x != nil { - return x.Namespace + return x.Origin } - return "" + return v12.UpdateAdmittedEventOrigin(0) } -func (x *ExternalWorkflowExecutionSignaledEventAttributes) GetNamespaceId() string { - if x != nil { - return x.NamespaceId - } - return "" +func (x *WorkflowExecutionUpdateAdmittedEventAttributes) SetRequest(v *v17.Request) { + x.Request = v } -func (x *ExternalWorkflowExecutionSignaledEventAttributes) GetWorkflowExecution() *v1.WorkflowExecution { - if x != nil { - return x.WorkflowExecution - } - return nil +func (x *WorkflowExecutionUpdateAdmittedEventAttributes) SetOrigin(v v12.UpdateAdmittedEventOrigin) { + x.Origin = v } -// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. -func (x *ExternalWorkflowExecutionSignaledEventAttributes) GetControl() string { - if x != nil { - return x.Control +func (x *WorkflowExecutionUpdateAdmittedEventAttributes) HasRequest() bool { + if x == nil { + return false } - return "" + return x.Request != nil } -type UpsertWorkflowSearchAttributesEventAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with - WorkflowTaskCompletedEventId int64 `protobuf:"varint,1,opt,name=workflow_task_completed_event_id,json=workflowTaskCompletedEventId,proto3" json:"workflow_task_completed_event_id,omitempty"` - SearchAttributes *v1.SearchAttributes `protobuf:"bytes,2,opt,name=search_attributes,json=searchAttributes,proto3" json:"search_attributes,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache +func (x *WorkflowExecutionUpdateAdmittedEventAttributes) ClearRequest() { + x.Request = nil } -func (x *UpsertWorkflowSearchAttributesEventAttributes) Reset() { - *x = UpsertWorkflowSearchAttributesEventAttributes{} - mi := &file_temporal_api_history_v1_message_proto_msgTypes[31] +type WorkflowExecutionUpdateAdmittedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The update request associated with this event. + Request *v17.Request + // An explanation of why this event was written to history. + Origin v12.UpdateAdmittedEventOrigin +} + +func (b0 WorkflowExecutionUpdateAdmittedEventAttributes_builder) Build() *WorkflowExecutionUpdateAdmittedEventAttributes { + m0 := &WorkflowExecutionUpdateAdmittedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.Request = b.Request + x.Origin = b.Origin + return m0 +} + +// Attributes for an event marking that a workflow execution was paused. +type WorkflowExecutionPausedEventAttributes struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // The identity of the client who paused the workflow execution. + Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` + // The reason for pausing the workflow execution. + Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` + // The request ID of the request that paused the workflow execution. + RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowExecutionPausedEventAttributes) Reset() { + *x = WorkflowExecutionPausedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[48] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } -func (x *UpsertWorkflowSearchAttributesEventAttributes) String() string { +func (x *WorkflowExecutionPausedEventAttributes) String() string { return protoimpl.X.MessageStringOf(x) } -func (*UpsertWorkflowSearchAttributesEventAttributes) ProtoMessage() {} +func (*WorkflowExecutionPausedEventAttributes) ProtoMessage() {} -func (x *UpsertWorkflowSearchAttributesEventAttributes) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_history_v1_message_proto_msgTypes[31] +func (x *WorkflowExecutionPausedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[48] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3284,52 +8890,88 @@ func (x *UpsertWorkflowSearchAttributesEventAttributes) ProtoReflect() protorefl return mi.MessageOf(x) } -// Deprecated: Use UpsertWorkflowSearchAttributesEventAttributes.ProtoReflect.Descriptor instead. -func (*UpsertWorkflowSearchAttributesEventAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_history_v1_message_proto_rawDescGZIP(), []int{31} +func (x *WorkflowExecutionPausedEventAttributes) GetIdentity() string { + if x != nil { + return x.Identity + } + return "" } -func (x *UpsertWorkflowSearchAttributesEventAttributes) GetWorkflowTaskCompletedEventId() int64 { +func (x *WorkflowExecutionPausedEventAttributes) GetReason() string { if x != nil { - return x.WorkflowTaskCompletedEventId + return x.Reason } - return 0 + return "" } -func (x *UpsertWorkflowSearchAttributesEventAttributes) GetSearchAttributes() *v1.SearchAttributes { +func (x *WorkflowExecutionPausedEventAttributes) GetRequestId() string { if x != nil { - return x.SearchAttributes + return x.RequestId } - return nil + return "" } -type WorkflowPropertiesModifiedEventAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with - WorkflowTaskCompletedEventId int64 `protobuf:"varint,1,opt,name=workflow_task_completed_event_id,json=workflowTaskCompletedEventId,proto3" json:"workflow_task_completed_event_id,omitempty"` - // If set, update the workflow memo with the provided values. The values will be merged with - // the existing memo. If the user wants to delete values, a default/empty Payload should be - // used as the value for the key being deleted. - UpsertedMemo *v1.Memo `protobuf:"bytes,2,opt,name=upserted_memo,json=upsertedMemo,proto3" json:"upserted_memo,omitempty"` +func (x *WorkflowExecutionPausedEventAttributes) SetIdentity(v string) { + x.Identity = v +} + +func (x *WorkflowExecutionPausedEventAttributes) SetReason(v string) { + x.Reason = v +} + +func (x *WorkflowExecutionPausedEventAttributes) SetRequestId(v string) { + x.RequestId = v +} + +type WorkflowExecutionPausedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The identity of the client who paused the workflow execution. + Identity string + // The reason for pausing the workflow execution. + Reason string + // The request ID of the request that paused the workflow execution. + RequestId string +} + +func (b0 WorkflowExecutionPausedEventAttributes_builder) Build() *WorkflowExecutionPausedEventAttributes { + m0 := &WorkflowExecutionPausedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.Identity = b.Identity + x.Reason = b.Reason + x.RequestId = b.RequestId + return m0 +} + +// Attributes for an event marking that a workflow execution was unpaused. +type WorkflowExecutionUnpausedEventAttributes struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // The identity of the client who unpaused the workflow execution. + Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` + // The reason for unpausing the workflow execution. + Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` + // The request ID of the request that unpaused the workflow execution. + RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } -func (x *WorkflowPropertiesModifiedEventAttributes) Reset() { - *x = WorkflowPropertiesModifiedEventAttributes{} - mi := &file_temporal_api_history_v1_message_proto_msgTypes[32] +func (x *WorkflowExecutionUnpausedEventAttributes) Reset() { + *x = WorkflowExecutionUnpausedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[49] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } -func (x *WorkflowPropertiesModifiedEventAttributes) String() string { +func (x *WorkflowExecutionUnpausedEventAttributes) String() string { return protoimpl.X.MessageStringOf(x) } -func (*WorkflowPropertiesModifiedEventAttributes) ProtoMessage() {} +func (*WorkflowExecutionUnpausedEventAttributes) ProtoMessage() {} -func (x *WorkflowPropertiesModifiedEventAttributes) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_history_v1_message_proto_msgTypes[32] +func (x *WorkflowExecutionUnpausedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[49] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3340,84 +8982,124 @@ func (x *WorkflowPropertiesModifiedEventAttributes) ProtoReflect() protoreflect. return mi.MessageOf(x) } -// Deprecated: Use WorkflowPropertiesModifiedEventAttributes.ProtoReflect.Descriptor instead. -func (*WorkflowPropertiesModifiedEventAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_history_v1_message_proto_rawDescGZIP(), []int{32} +func (x *WorkflowExecutionUnpausedEventAttributes) GetIdentity() string { + if x != nil { + return x.Identity + } + return "" } -func (x *WorkflowPropertiesModifiedEventAttributes) GetWorkflowTaskCompletedEventId() int64 { +func (x *WorkflowExecutionUnpausedEventAttributes) GetReason() string { if x != nil { - return x.WorkflowTaskCompletedEventId + return x.Reason } - return 0 + return "" } -func (x *WorkflowPropertiesModifiedEventAttributes) GetUpsertedMemo() *v1.Memo { +func (x *WorkflowExecutionUnpausedEventAttributes) GetRequestId() string { if x != nil { - return x.UpsertedMemo + return x.RequestId } - return nil + return "" } -type StartChildWorkflowExecutionInitiatedEventAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Namespace of the child workflow. - // SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. - Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` - NamespaceId string `protobuf:"bytes,18,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"` - WorkflowId string `protobuf:"bytes,2,opt,name=workflow_id,json=workflowId,proto3" json:"workflow_id,omitempty"` - WorkflowType *v1.WorkflowType `protobuf:"bytes,3,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type,omitempty"` - TaskQueue *v11.TaskQueue `protobuf:"bytes,4,opt,name=task_queue,json=taskQueue,proto3" json:"task_queue,omitempty"` - Input *v1.Payloads `protobuf:"bytes,5,opt,name=input,proto3" json:"input,omitempty"` - // Total workflow execution timeout including retries and continue as new. - WorkflowExecutionTimeout *durationpb.Duration `protobuf:"bytes,6,opt,name=workflow_execution_timeout,json=workflowExecutionTimeout,proto3" json:"workflow_execution_timeout,omitempty"` - // Timeout of a single workflow run. - WorkflowRunTimeout *durationpb.Duration `protobuf:"bytes,7,opt,name=workflow_run_timeout,json=workflowRunTimeout,proto3" json:"workflow_run_timeout,omitempty"` - // Timeout of a single workflow task. - WorkflowTaskTimeout *durationpb.Duration `protobuf:"bytes,8,opt,name=workflow_task_timeout,json=workflowTaskTimeout,proto3" json:"workflow_task_timeout,omitempty"` - // Default: PARENT_CLOSE_POLICY_TERMINATE. - ParentClosePolicy v12.ParentClosePolicy `protobuf:"varint,9,opt,name=parent_close_policy,json=parentClosePolicy,proto3,enum=temporal.api.enums.v1.ParentClosePolicy" json:"parent_close_policy,omitempty"` - // Deprecated. +func (x *WorkflowExecutionUnpausedEventAttributes) SetIdentity(v string) { + x.Identity = v +} + +func (x *WorkflowExecutionUnpausedEventAttributes) SetReason(v string) { + x.Reason = v +} + +func (x *WorkflowExecutionUnpausedEventAttributes) SetRequestId(v string) { + x.RequestId = v +} + +type WorkflowExecutionUnpausedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The identity of the client who unpaused the workflow execution. + Identity string + // The reason for unpausing the workflow execution. + Reason string + // The request ID of the request that unpaused the workflow execution. + RequestId string +} + +func (b0 WorkflowExecutionUnpausedEventAttributes_builder) Build() *WorkflowExecutionUnpausedEventAttributes { + m0 := &WorkflowExecutionUnpausedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.Identity = b.Identity + x.Reason = b.Reason + x.RequestId = b.RequestId + return m0 +} + +// Event marking that an operation was scheduled by a workflow via the ScheduleNexusOperation command. +type NexusOperationScheduledEventAttributes struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // Endpoint name, must exist in the endpoint registry. + Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` + // Service name. + Service string `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"` + // Operation name. + Operation string `protobuf:"bytes,3,opt,name=operation,proto3" json:"operation,omitempty"` + // Input for the operation. The server converts this into Nexus request content and the appropriate content headers + // internally when sending the StartOperation request. On the handler side, if it is also backed by Temporal, the + // content is transformed back to the original Payload stored in this event. + Input *v1.Payload `protobuf:"bytes,4,opt,name=input,proto3" json:"input,omitempty"` + // Schedule-to-close timeout for this operation. + // Indicates how long the caller is willing to wait for operation completion. + // Calls are retried internally by the server. + // (-- api-linter: core::0140::prepositions=disabled // - // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. - Control string `protobuf:"bytes,10,opt,name=control,proto3" json:"control,omitempty"` - // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with - WorkflowTaskCompletedEventId int64 `protobuf:"varint,11,opt,name=workflow_task_completed_event_id,json=workflowTaskCompletedEventId,proto3" json:"workflow_task_completed_event_id,omitempty"` - // Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE. - WorkflowIdReusePolicy v12.WorkflowIdReusePolicy `protobuf:"varint,12,opt,name=workflow_id_reuse_policy,json=workflowIdReusePolicy,proto3,enum=temporal.api.enums.v1.WorkflowIdReusePolicy" json:"workflow_id_reuse_policy,omitempty"` - RetryPolicy *v1.RetryPolicy `protobuf:"bytes,13,opt,name=retry_policy,json=retryPolicy,proto3" json:"retry_policy,omitempty"` - // If this child runs on a cron schedule, it will appear here - CronSchedule string `protobuf:"bytes,14,opt,name=cron_schedule,json=cronSchedule,proto3" json:"cron_schedule,omitempty"` - Header *v1.Header `protobuf:"bytes,15,opt,name=header,proto3" json:"header,omitempty"` - Memo *v1.Memo `protobuf:"bytes,16,opt,name=memo,proto3" json:"memo,omitempty"` - SearchAttributes *v1.SearchAttributes `protobuf:"bytes,17,opt,name=search_attributes,json=searchAttributes,proto3" json:"search_attributes,omitempty"` - // If this is set, the child workflow inherits the Build ID of the parent. Otherwise, the assignment - // rules of the child's Task Queue will be used to independently assign a Build ID to it. - // Deprecated. Only considered for versioning v0.2. + // aip.dev/not-precedent: "to" is used to indicate interval. --) + ScheduleToCloseTimeout *durationpb.Duration `protobuf:"bytes,5,opt,name=schedule_to_close_timeout,json=scheduleToCloseTimeout,proto3" json:"schedule_to_close_timeout,omitempty"` + // Header to attach to the Nexus request. Note these headers are not the same as Temporal headers on internal + // activities and child workflows, these are transmitted to Nexus operations that may be external and are not + // traditional payloads. + NexusHeader map[string]string `protobuf:"bytes,6,rep,name=nexus_header,json=nexusHeader,proto3" json:"nexus_header,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + // The `WORKFLOW_TASK_COMPLETED` event that the corresponding ScheduleNexusOperation command was reported with. + WorkflowTaskCompletedEventId int64 `protobuf:"varint,7,opt,name=workflow_task_completed_event_id,json=workflowTaskCompletedEventId,proto3" json:"workflow_task_completed_event_id,omitempty"` + // A unique ID generated by the history service upon creation of this event. + // The ID will be transmitted with all nexus StartOperation requests and is used as an idempotentency key. + RequestId string `protobuf:"bytes,8,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + // Endpoint ID as resolved in the endpoint registry at the time this event was generated. + // This is stored on the event and used internally by the server in case the endpoint is renamed from the time the + // event was originally scheduled. + EndpointId string `protobuf:"bytes,9,opt,name=endpoint_id,json=endpointId,proto3" json:"endpoint_id,omitempty"` + // Schedule-to-start timeout for this operation. + // See ScheduleNexusOperationCommandAttributes.schedule_to_start_timeout for details. + // (-- api-linter: core::0140::prepositions=disabled // - // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. - InheritBuildId bool `protobuf:"varint,19,opt,name=inherit_build_id,json=inheritBuildId,proto3" json:"inherit_build_id,omitempty"` - // Priority metadata - Priority *v1.Priority `protobuf:"bytes,20,opt,name=priority,proto3" json:"priority,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + // aip.dev/not-precedent: "to" is used to indicate interval. --) + ScheduleToStartTimeout *durationpb.Duration `protobuf:"bytes,10,opt,name=schedule_to_start_timeout,json=scheduleToStartTimeout,proto3" json:"schedule_to_start_timeout,omitempty"` + // Start-to-close timeout for this operation. + // See ScheduleNexusOperationCommandAttributes.start_to_close_timeout for details. + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + StartToCloseTimeout *durationpb.Duration `protobuf:"bytes,11,opt,name=start_to_close_timeout,json=startToCloseTimeout,proto3" json:"start_to_close_timeout,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (x *StartChildWorkflowExecutionInitiatedEventAttributes) Reset() { - *x = StartChildWorkflowExecutionInitiatedEventAttributes{} - mi := &file_temporal_api_history_v1_message_proto_msgTypes[33] +func (x *NexusOperationScheduledEventAttributes) Reset() { + *x = NexusOperationScheduledEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[50] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } -func (x *StartChildWorkflowExecutionInitiatedEventAttributes) String() string { +func (x *NexusOperationScheduledEventAttributes) String() string { return protoimpl.X.MessageStringOf(x) } -func (*StartChildWorkflowExecutionInitiatedEventAttributes) ProtoMessage() {} +func (*NexusOperationScheduledEventAttributes) ProtoMessage() {} -func (x *StartChildWorkflowExecutionInitiatedEventAttributes) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_history_v1_message_proto_msgTypes[33] +func (x *NexusOperationScheduledEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[50] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3428,189 +9110,390 @@ func (x *StartChildWorkflowExecutionInitiatedEventAttributes) ProtoReflect() pro return mi.MessageOf(x) } -// Deprecated: Use StartChildWorkflowExecutionInitiatedEventAttributes.ProtoReflect.Descriptor instead. -func (*StartChildWorkflowExecutionInitiatedEventAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_history_v1_message_proto_rawDescGZIP(), []int{33} -} - -func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetNamespace() string { +func (x *NexusOperationScheduledEventAttributes) GetEndpoint() string { if x != nil { - return x.Namespace + return x.Endpoint } return "" } -func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetNamespaceId() string { +func (x *NexusOperationScheduledEventAttributes) GetService() string { if x != nil { - return x.NamespaceId + return x.Service } return "" } -func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetWorkflowId() string { +func (x *NexusOperationScheduledEventAttributes) GetOperation() string { if x != nil { - return x.WorkflowId + return x.Operation } return "" } -func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetWorkflowType() *v1.WorkflowType { +func (x *NexusOperationScheduledEventAttributes) GetInput() *v1.Payload { if x != nil { - return x.WorkflowType + return x.Input } return nil } -func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetTaskQueue() *v11.TaskQueue { +func (x *NexusOperationScheduledEventAttributes) GetScheduleToCloseTimeout() *durationpb.Duration { if x != nil { - return x.TaskQueue + return x.ScheduleToCloseTimeout } return nil } -func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetInput() *v1.Payloads { +func (x *NexusOperationScheduledEventAttributes) GetNexusHeader() map[string]string { if x != nil { - return x.Input + return x.NexusHeader } return nil } -func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetWorkflowExecutionTimeout() *durationpb.Duration { +func (x *NexusOperationScheduledEventAttributes) GetWorkflowTaskCompletedEventId() int64 { if x != nil { - return x.WorkflowExecutionTimeout + return x.WorkflowTaskCompletedEventId } - return nil + return 0 } -func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetWorkflowRunTimeout() *durationpb.Duration { +func (x *NexusOperationScheduledEventAttributes) GetRequestId() string { if x != nil { - return x.WorkflowRunTimeout + return x.RequestId } - return nil + return "" } -func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetWorkflowTaskTimeout() *durationpb.Duration { +func (x *NexusOperationScheduledEventAttributes) GetEndpointId() string { if x != nil { - return x.WorkflowTaskTimeout + return x.EndpointId } - return nil + return "" } -func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetParentClosePolicy() v12.ParentClosePolicy { +func (x *NexusOperationScheduledEventAttributes) GetScheduleToStartTimeout() *durationpb.Duration { if x != nil { - return x.ParentClosePolicy + return x.ScheduleToStartTimeout } - return v12.ParentClosePolicy(0) + return nil } -// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. -func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetControl() string { +func (x *NexusOperationScheduledEventAttributes) GetStartToCloseTimeout() *durationpb.Duration { if x != nil { - return x.Control + return x.StartToCloseTimeout } - return "" + return nil } -func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetWorkflowTaskCompletedEventId() int64 { - if x != nil { - return x.WorkflowTaskCompletedEventId +func (x *NexusOperationScheduledEventAttributes) SetEndpoint(v string) { + x.Endpoint = v +} + +func (x *NexusOperationScheduledEventAttributes) SetService(v string) { + x.Service = v +} + +func (x *NexusOperationScheduledEventAttributes) SetOperation(v string) { + x.Operation = v +} + +func (x *NexusOperationScheduledEventAttributes) SetInput(v *v1.Payload) { + x.Input = v +} + +func (x *NexusOperationScheduledEventAttributes) SetScheduleToCloseTimeout(v *durationpb.Duration) { + x.ScheduleToCloseTimeout = v +} + +func (x *NexusOperationScheduledEventAttributes) SetNexusHeader(v map[string]string) { + x.NexusHeader = v +} + +func (x *NexusOperationScheduledEventAttributes) SetWorkflowTaskCompletedEventId(v int64) { + x.WorkflowTaskCompletedEventId = v +} + +func (x *NexusOperationScheduledEventAttributes) SetRequestId(v string) { + x.RequestId = v +} + +func (x *NexusOperationScheduledEventAttributes) SetEndpointId(v string) { + x.EndpointId = v +} + +func (x *NexusOperationScheduledEventAttributes) SetScheduleToStartTimeout(v *durationpb.Duration) { + x.ScheduleToStartTimeout = v +} + +func (x *NexusOperationScheduledEventAttributes) SetStartToCloseTimeout(v *durationpb.Duration) { + x.StartToCloseTimeout = v +} + +func (x *NexusOperationScheduledEventAttributes) HasInput() bool { + if x == nil { + return false } - return 0 + return x.Input != nil } -func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetWorkflowIdReusePolicy() v12.WorkflowIdReusePolicy { - if x != nil { - return x.WorkflowIdReusePolicy +func (x *NexusOperationScheduledEventAttributes) HasScheduleToCloseTimeout() bool { + if x == nil { + return false } - return v12.WorkflowIdReusePolicy(0) + return x.ScheduleToCloseTimeout != nil } -func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetRetryPolicy() *v1.RetryPolicy { - if x != nil { - return x.RetryPolicy +func (x *NexusOperationScheduledEventAttributes) HasScheduleToStartTimeout() bool { + if x == nil { + return false } - return nil + return x.ScheduleToStartTimeout != nil } -func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetCronSchedule() string { - if x != nil { - return x.CronSchedule +func (x *NexusOperationScheduledEventAttributes) HasStartToCloseTimeout() bool { + if x == nil { + return false } - return "" + return x.StartToCloseTimeout != nil } -func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetHeader() *v1.Header { +func (x *NexusOperationScheduledEventAttributes) ClearInput() { + x.Input = nil +} + +func (x *NexusOperationScheduledEventAttributes) ClearScheduleToCloseTimeout() { + x.ScheduleToCloseTimeout = nil +} + +func (x *NexusOperationScheduledEventAttributes) ClearScheduleToStartTimeout() { + x.ScheduleToStartTimeout = nil +} + +func (x *NexusOperationScheduledEventAttributes) ClearStartToCloseTimeout() { + x.StartToCloseTimeout = nil +} + +type NexusOperationScheduledEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Endpoint name, must exist in the endpoint registry. + Endpoint string + // Service name. + Service string + // Operation name. + Operation string + // Input for the operation. The server converts this into Nexus request content and the appropriate content headers + // internally when sending the StartOperation request. On the handler side, if it is also backed by Temporal, the + // content is transformed back to the original Payload stored in this event. + Input *v1.Payload + // Schedule-to-close timeout for this operation. + // Indicates how long the caller is willing to wait for operation completion. + // Calls are retried internally by the server. + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + ScheduleToCloseTimeout *durationpb.Duration + // Header to attach to the Nexus request. Note these headers are not the same as Temporal headers on internal + // activities and child workflows, these are transmitted to Nexus operations that may be external and are not + // traditional payloads. + NexusHeader map[string]string + // The `WORKFLOW_TASK_COMPLETED` event that the corresponding ScheduleNexusOperation command was reported with. + WorkflowTaskCompletedEventId int64 + // A unique ID generated by the history service upon creation of this event. + // The ID will be transmitted with all nexus StartOperation requests and is used as an idempotentency key. + RequestId string + // Endpoint ID as resolved in the endpoint registry at the time this event was generated. + // This is stored on the event and used internally by the server in case the endpoint is renamed from the time the + // event was originally scheduled. + EndpointId string + // Schedule-to-start timeout for this operation. + // See ScheduleNexusOperationCommandAttributes.schedule_to_start_timeout for details. + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + ScheduleToStartTimeout *durationpb.Duration + // Start-to-close timeout for this operation. + // See ScheduleNexusOperationCommandAttributes.start_to_close_timeout for details. + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + StartToCloseTimeout *durationpb.Duration +} + +func (b0 NexusOperationScheduledEventAttributes_builder) Build() *NexusOperationScheduledEventAttributes { + m0 := &NexusOperationScheduledEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.Endpoint = b.Endpoint + x.Service = b.Service + x.Operation = b.Operation + x.Input = b.Input + x.ScheduleToCloseTimeout = b.ScheduleToCloseTimeout + x.NexusHeader = b.NexusHeader + x.WorkflowTaskCompletedEventId = b.WorkflowTaskCompletedEventId + x.RequestId = b.RequestId + x.EndpointId = b.EndpointId + x.ScheduleToStartTimeout = b.ScheduleToStartTimeout + x.StartToCloseTimeout = b.StartToCloseTimeout + return m0 +} + +// Event marking an asynchronous operation was started by the responding Nexus handler. +// If the operation completes synchronously, this event is not generated. +// In rare situations, such as request timeouts, the service may fail to record the actual start time and will fabricate +// this event upon receiving the operation completion via callback. +type NexusOperationStartedEventAttributes struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // The ID of the `NEXUS_OPERATION_SCHEDULED` event this task corresponds to. + ScheduledEventId int64 `protobuf:"varint,1,opt,name=scheduled_event_id,json=scheduledEventId,proto3" json:"scheduled_event_id,omitempty"` + // The operation ID returned by the Nexus handler in the response to the StartOperation request. + // This ID is used when canceling the operation. + // + // Deprecated: Renamed to operation_token. + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + OperationId string `protobuf:"bytes,3,opt,name=operation_id,json=operationId,proto3" json:"operation_id,omitempty"` + // The request ID allocated at schedule time. + RequestId string `protobuf:"bytes,4,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + // The operation token returned by the Nexus handler in the response to the StartOperation request. + // This token is used when canceling the operation. + OperationToken string `protobuf:"bytes,5,opt,name=operation_token,json=operationToken,proto3" json:"operation_token,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *NexusOperationStartedEventAttributes) Reset() { + *x = NexusOperationStartedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[51] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *NexusOperationStartedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NexusOperationStartedEventAttributes) ProtoMessage() {} + +func (x *NexusOperationStartedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[51] if x != nil { - return x.Header + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetMemo() *v1.Memo { +func (x *NexusOperationStartedEventAttributes) GetScheduledEventId() int64 { if x != nil { - return x.Memo + return x.ScheduledEventId } - return nil + return 0 } -func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetSearchAttributes() *v1.SearchAttributes { +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *NexusOperationStartedEventAttributes) GetOperationId() string { if x != nil { - return x.SearchAttributes + return x.OperationId } - return nil + return "" } -// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. -func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetInheritBuildId() bool { +func (x *NexusOperationStartedEventAttributes) GetRequestId() string { if x != nil { - return x.InheritBuildId + return x.RequestId } - return false + return "" } -func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetPriority() *v1.Priority { +func (x *NexusOperationStartedEventAttributes) GetOperationToken() string { if x != nil { - return x.Priority + return x.OperationToken } - return nil + return "" } -type StartChildWorkflowExecutionFailedEventAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Namespace of the child workflow. - // SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. - Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` - NamespaceId string `protobuf:"bytes,8,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"` - WorkflowId string `protobuf:"bytes,2,opt,name=workflow_id,json=workflowId,proto3" json:"workflow_id,omitempty"` - WorkflowType *v1.WorkflowType `protobuf:"bytes,3,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type,omitempty"` - Cause v12.StartChildWorkflowExecutionFailedCause `protobuf:"varint,4,opt,name=cause,proto3,enum=temporal.api.enums.v1.StartChildWorkflowExecutionFailedCause" json:"cause,omitempty"` - // Deprecated. +func (x *NexusOperationStartedEventAttributes) SetScheduledEventId(v int64) { + x.ScheduledEventId = v +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *NexusOperationStartedEventAttributes) SetOperationId(v string) { + x.OperationId = v +} + +func (x *NexusOperationStartedEventAttributes) SetRequestId(v string) { + x.RequestId = v +} + +func (x *NexusOperationStartedEventAttributes) SetOperationToken(v string) { + x.OperationToken = v +} + +type NexusOperationStartedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the `NEXUS_OPERATION_SCHEDULED` event this task corresponds to. + ScheduledEventId int64 + // The operation ID returned by the Nexus handler in the response to the StartOperation request. + // This ID is used when canceling the operation. + // + // Deprecated: Renamed to operation_token. // // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. - Control string `protobuf:"bytes,5,opt,name=control,proto3" json:"control,omitempty"` - // Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to - InitiatedEventId int64 `protobuf:"varint,6,opt,name=initiated_event_id,json=initiatedEventId,proto3" json:"initiated_event_id,omitempty"` - // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with - WorkflowTaskCompletedEventId int64 `protobuf:"varint,7,opt,name=workflow_task_completed_event_id,json=workflowTaskCompletedEventId,proto3" json:"workflow_task_completed_event_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + OperationId string + // The request ID allocated at schedule time. + RequestId string + // The operation token returned by the Nexus handler in the response to the StartOperation request. + // This token is used when canceling the operation. + OperationToken string +} + +func (b0 NexusOperationStartedEventAttributes_builder) Build() *NexusOperationStartedEventAttributes { + m0 := &NexusOperationStartedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.ScheduledEventId = b.ScheduledEventId + x.OperationId = b.OperationId + x.RequestId = b.RequestId + x.OperationToken = b.OperationToken + return m0 } -func (x *StartChildWorkflowExecutionFailedEventAttributes) Reset() { - *x = StartChildWorkflowExecutionFailedEventAttributes{} - mi := &file_temporal_api_history_v1_message_proto_msgTypes[34] +// Nexus operation completed successfully. +type NexusOperationCompletedEventAttributes struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // The ID of the `NEXUS_OPERATION_SCHEDULED` event. Uniquely identifies this operation. + ScheduledEventId int64 `protobuf:"varint,1,opt,name=scheduled_event_id,json=scheduledEventId,proto3" json:"scheduled_event_id,omitempty"` + // Serialized result of the Nexus operation. The response of the Nexus handler. + // Delivered either via a completion callback or as a response to a synchronous operation. + Result *v1.Payload `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"` + // The request ID allocated at schedule time. + RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *NexusOperationCompletedEventAttributes) Reset() { + *x = NexusOperationCompletedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[52] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } -func (x *StartChildWorkflowExecutionFailedEventAttributes) String() string { +func (x *NexusOperationCompletedEventAttributes) String() string { return protoimpl.X.MessageStringOf(x) } -func (*StartChildWorkflowExecutionFailedEventAttributes) ProtoMessage() {} +func (*NexusOperationCompletedEventAttributes) ProtoMessage() {} -func (x *StartChildWorkflowExecutionFailedEventAttributes) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_history_v1_message_proto_msgTypes[34] +func (x *NexusOperationCompletedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[52] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3621,98 +9504,100 @@ func (x *StartChildWorkflowExecutionFailedEventAttributes) ProtoReflect() protor return mi.MessageOf(x) } -// Deprecated: Use StartChildWorkflowExecutionFailedEventAttributes.ProtoReflect.Descriptor instead. -func (*StartChildWorkflowExecutionFailedEventAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_history_v1_message_proto_rawDescGZIP(), []int{34} -} - -func (x *StartChildWorkflowExecutionFailedEventAttributes) GetNamespace() string { +func (x *NexusOperationCompletedEventAttributes) GetScheduledEventId() int64 { if x != nil { - return x.Namespace + return x.ScheduledEventId } - return "" + return 0 } -func (x *StartChildWorkflowExecutionFailedEventAttributes) GetNamespaceId() string { +func (x *NexusOperationCompletedEventAttributes) GetResult() *v1.Payload { if x != nil { - return x.NamespaceId + return x.Result } - return "" + return nil } -func (x *StartChildWorkflowExecutionFailedEventAttributes) GetWorkflowId() string { +func (x *NexusOperationCompletedEventAttributes) GetRequestId() string { if x != nil { - return x.WorkflowId + return x.RequestId } return "" } -func (x *StartChildWorkflowExecutionFailedEventAttributes) GetWorkflowType() *v1.WorkflowType { - if x != nil { - return x.WorkflowType - } - return nil +func (x *NexusOperationCompletedEventAttributes) SetScheduledEventId(v int64) { + x.ScheduledEventId = v } -func (x *StartChildWorkflowExecutionFailedEventAttributes) GetCause() v12.StartChildWorkflowExecutionFailedCause { - if x != nil { - return x.Cause - } - return v12.StartChildWorkflowExecutionFailedCause(0) +func (x *NexusOperationCompletedEventAttributes) SetResult(v *v1.Payload) { + x.Result = v } -// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. -func (x *StartChildWorkflowExecutionFailedEventAttributes) GetControl() string { - if x != nil { - return x.Control - } - return "" +func (x *NexusOperationCompletedEventAttributes) SetRequestId(v string) { + x.RequestId = v } -func (x *StartChildWorkflowExecutionFailedEventAttributes) GetInitiatedEventId() int64 { - if x != nil { - return x.InitiatedEventId +func (x *NexusOperationCompletedEventAttributes) HasResult() bool { + if x == nil { + return false } - return 0 + return x.Result != nil } -func (x *StartChildWorkflowExecutionFailedEventAttributes) GetWorkflowTaskCompletedEventId() int64 { - if x != nil { - return x.WorkflowTaskCompletedEventId - } - return 0 +func (x *NexusOperationCompletedEventAttributes) ClearResult() { + x.Result = nil } -type ChildWorkflowExecutionStartedEventAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Namespace of the child workflow. - // SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. - Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` - NamespaceId string `protobuf:"bytes,6,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"` - // Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to - InitiatedEventId int64 `protobuf:"varint,2,opt,name=initiated_event_id,json=initiatedEventId,proto3" json:"initiated_event_id,omitempty"` - WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,3,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` - WorkflowType *v1.WorkflowType `protobuf:"bytes,4,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type,omitempty"` - Header *v1.Header `protobuf:"bytes,5,opt,name=header,proto3" json:"header,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache +type NexusOperationCompletedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the `NEXUS_OPERATION_SCHEDULED` event. Uniquely identifies this operation. + ScheduledEventId int64 + // Serialized result of the Nexus operation. The response of the Nexus handler. + // Delivered either via a completion callback or as a response to a synchronous operation. + Result *v1.Payload + // The request ID allocated at schedule time. + RequestId string } -func (x *ChildWorkflowExecutionStartedEventAttributes) Reset() { - *x = ChildWorkflowExecutionStartedEventAttributes{} - mi := &file_temporal_api_history_v1_message_proto_msgTypes[35] +func (b0 NexusOperationCompletedEventAttributes_builder) Build() *NexusOperationCompletedEventAttributes { + m0 := &NexusOperationCompletedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.ScheduledEventId = b.ScheduledEventId + x.Result = b.Result + x.RequestId = b.RequestId + return m0 +} + +// Nexus operation failed. +type NexusOperationFailedEventAttributes struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // The ID of the `NEXUS_OPERATION_SCHEDULED` event. Uniquely identifies this operation. + ScheduledEventId int64 `protobuf:"varint,1,opt,name=scheduled_event_id,json=scheduledEventId,proto3" json:"scheduled_event_id,omitempty"` + // Failure details. A NexusOperationFailureInfo wrapping an ApplicationFailureInfo. + Failure *v13.Failure `protobuf:"bytes,2,opt,name=failure,proto3" json:"failure,omitempty"` + // The request ID allocated at schedule time. + RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *NexusOperationFailedEventAttributes) Reset() { + *x = NexusOperationFailedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[53] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } -func (x *ChildWorkflowExecutionStartedEventAttributes) String() string { +func (x *NexusOperationFailedEventAttributes) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ChildWorkflowExecutionStartedEventAttributes) ProtoMessage() {} +func (*NexusOperationFailedEventAttributes) ProtoMessage() {} -func (x *ChildWorkflowExecutionStartedEventAttributes) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_history_v1_message_proto_msgTypes[35] +func (x *NexusOperationFailedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[53] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3723,85 +9608,99 @@ func (x *ChildWorkflowExecutionStartedEventAttributes) ProtoReflect() protorefle return mi.MessageOf(x) } -// Deprecated: Use ChildWorkflowExecutionStartedEventAttributes.ProtoReflect.Descriptor instead. -func (*ChildWorkflowExecutionStartedEventAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_history_v1_message_proto_rawDescGZIP(), []int{35} +func (x *NexusOperationFailedEventAttributes) GetScheduledEventId() int64 { + if x != nil { + return x.ScheduledEventId + } + return 0 } -func (x *ChildWorkflowExecutionStartedEventAttributes) GetNamespace() string { +func (x *NexusOperationFailedEventAttributes) GetFailure() *v13.Failure { if x != nil { - return x.Namespace + return x.Failure } - return "" + return nil } -func (x *ChildWorkflowExecutionStartedEventAttributes) GetNamespaceId() string { +func (x *NexusOperationFailedEventAttributes) GetRequestId() string { if x != nil { - return x.NamespaceId + return x.RequestId } return "" } -func (x *ChildWorkflowExecutionStartedEventAttributes) GetInitiatedEventId() int64 { - if x != nil { - return x.InitiatedEventId - } - return 0 +func (x *NexusOperationFailedEventAttributes) SetScheduledEventId(v int64) { + x.ScheduledEventId = v } -func (x *ChildWorkflowExecutionStartedEventAttributes) GetWorkflowExecution() *v1.WorkflowExecution { - if x != nil { - return x.WorkflowExecution - } - return nil +func (x *NexusOperationFailedEventAttributes) SetFailure(v *v13.Failure) { + x.Failure = v } -func (x *ChildWorkflowExecutionStartedEventAttributes) GetWorkflowType() *v1.WorkflowType { - if x != nil { - return x.WorkflowType - } - return nil +func (x *NexusOperationFailedEventAttributes) SetRequestId(v string) { + x.RequestId = v } -func (x *ChildWorkflowExecutionStartedEventAttributes) GetHeader() *v1.Header { - if x != nil { - return x.Header +func (x *NexusOperationFailedEventAttributes) HasFailure() bool { + if x == nil { + return false } - return nil + return x.Failure != nil } -type ChildWorkflowExecutionCompletedEventAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` - Result *v1.Payloads `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` - // Namespace of the child workflow. - // SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. - Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` - NamespaceId string `protobuf:"bytes,7,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"` - WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,3,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` - WorkflowType *v1.WorkflowType `protobuf:"bytes,4,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type,omitempty"` - // Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to - InitiatedEventId int64 `protobuf:"varint,5,opt,name=initiated_event_id,json=initiatedEventId,proto3" json:"initiated_event_id,omitempty"` - // Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to - StartedEventId int64 `protobuf:"varint,6,opt,name=started_event_id,json=startedEventId,proto3" json:"started_event_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache +func (x *NexusOperationFailedEventAttributes) ClearFailure() { + x.Failure = nil } -func (x *ChildWorkflowExecutionCompletedEventAttributes) Reset() { - *x = ChildWorkflowExecutionCompletedEventAttributes{} - mi := &file_temporal_api_history_v1_message_proto_msgTypes[36] +type NexusOperationFailedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the `NEXUS_OPERATION_SCHEDULED` event. Uniquely identifies this operation. + ScheduledEventId int64 + // Failure details. A NexusOperationFailureInfo wrapping an ApplicationFailureInfo. + Failure *v13.Failure + // The request ID allocated at schedule time. + RequestId string +} + +func (b0 NexusOperationFailedEventAttributes_builder) Build() *NexusOperationFailedEventAttributes { + m0 := &NexusOperationFailedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.ScheduledEventId = b.ScheduledEventId + x.Failure = b.Failure + x.RequestId = b.RequestId + return m0 +} + +// Nexus operation timed out. +type NexusOperationTimedOutEventAttributes struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // The ID of the `NEXUS_OPERATION_SCHEDULED` event. Uniquely identifies this operation. + ScheduledEventId int64 `protobuf:"varint,1,opt,name=scheduled_event_id,json=scheduledEventId,proto3" json:"scheduled_event_id,omitempty"` + // Failure details. A NexusOperationFailureInfo wrapping a CanceledFailureInfo. + Failure *v13.Failure `protobuf:"bytes,2,opt,name=failure,proto3" json:"failure,omitempty"` + // The request ID allocated at schedule time. + RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *NexusOperationTimedOutEventAttributes) Reset() { + *x = NexusOperationTimedOutEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[54] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } -func (x *ChildWorkflowExecutionCompletedEventAttributes) String() string { +func (x *NexusOperationTimedOutEventAttributes) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ChildWorkflowExecutionCompletedEventAttributes) ProtoMessage() {} +func (*NexusOperationTimedOutEventAttributes) ProtoMessage() {} -func (x *ChildWorkflowExecutionCompletedEventAttributes) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_history_v1_message_proto_msgTypes[36] +func (x *NexusOperationTimedOutEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[54] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3812,93 +9711,99 @@ func (x *ChildWorkflowExecutionCompletedEventAttributes) ProtoReflect() protoref return mi.MessageOf(x) } -// Deprecated: Use ChildWorkflowExecutionCompletedEventAttributes.ProtoReflect.Descriptor instead. -func (*ChildWorkflowExecutionCompletedEventAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_history_v1_message_proto_rawDescGZIP(), []int{36} +func (x *NexusOperationTimedOutEventAttributes) GetScheduledEventId() int64 { + if x != nil { + return x.ScheduledEventId + } + return 0 } -func (x *ChildWorkflowExecutionCompletedEventAttributes) GetResult() *v1.Payloads { +func (x *NexusOperationTimedOutEventAttributes) GetFailure() *v13.Failure { if x != nil { - return x.Result + return x.Failure } return nil } -func (x *ChildWorkflowExecutionCompletedEventAttributes) GetNamespace() string { +func (x *NexusOperationTimedOutEventAttributes) GetRequestId() string { if x != nil { - return x.Namespace + return x.RequestId } return "" } -func (x *ChildWorkflowExecutionCompletedEventAttributes) GetNamespaceId() string { - if x != nil { - return x.NamespaceId - } - return "" +func (x *NexusOperationTimedOutEventAttributes) SetScheduledEventId(v int64) { + x.ScheduledEventId = v } -func (x *ChildWorkflowExecutionCompletedEventAttributes) GetWorkflowExecution() *v1.WorkflowExecution { - if x != nil { - return x.WorkflowExecution - } - return nil +func (x *NexusOperationTimedOutEventAttributes) SetFailure(v *v13.Failure) { + x.Failure = v } -func (x *ChildWorkflowExecutionCompletedEventAttributes) GetWorkflowType() *v1.WorkflowType { - if x != nil { - return x.WorkflowType - } - return nil +func (x *NexusOperationTimedOutEventAttributes) SetRequestId(v string) { + x.RequestId = v } -func (x *ChildWorkflowExecutionCompletedEventAttributes) GetInitiatedEventId() int64 { - if x != nil { - return x.InitiatedEventId +func (x *NexusOperationTimedOutEventAttributes) HasFailure() bool { + if x == nil { + return false } - return 0 + return x.Failure != nil } -func (x *ChildWorkflowExecutionCompletedEventAttributes) GetStartedEventId() int64 { - if x != nil { - return x.StartedEventId - } - return 0 +func (x *NexusOperationTimedOutEventAttributes) ClearFailure() { + x.Failure = nil } -type ChildWorkflowExecutionFailedEventAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` - Failure *v13.Failure `protobuf:"bytes,1,opt,name=failure,proto3" json:"failure,omitempty"` - // Namespace of the child workflow. - // SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. - Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` - NamespaceId string `protobuf:"bytes,8,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"` - WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,3,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` - WorkflowType *v1.WorkflowType `protobuf:"bytes,4,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type,omitempty"` - // Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to - InitiatedEventId int64 `protobuf:"varint,5,opt,name=initiated_event_id,json=initiatedEventId,proto3" json:"initiated_event_id,omitempty"` - // Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to - StartedEventId int64 `protobuf:"varint,6,opt,name=started_event_id,json=startedEventId,proto3" json:"started_event_id,omitempty"` - RetryState v12.RetryState `protobuf:"varint,7,opt,name=retry_state,json=retryState,proto3,enum=temporal.api.enums.v1.RetryState" json:"retry_state,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache +type NexusOperationTimedOutEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the `NEXUS_OPERATION_SCHEDULED` event. Uniquely identifies this operation. + ScheduledEventId int64 + // Failure details. A NexusOperationFailureInfo wrapping a CanceledFailureInfo. + Failure *v13.Failure + // The request ID allocated at schedule time. + RequestId string +} + +func (b0 NexusOperationTimedOutEventAttributes_builder) Build() *NexusOperationTimedOutEventAttributes { + m0 := &NexusOperationTimedOutEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.ScheduledEventId = b.ScheduledEventId + x.Failure = b.Failure + x.RequestId = b.RequestId + return m0 +} + +// Nexus operation completed as canceled. May or may not have been due to a cancellation request by the workflow. +type NexusOperationCanceledEventAttributes struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // The ID of the `NEXUS_OPERATION_SCHEDULED` event. Uniquely identifies this operation. + ScheduledEventId int64 `protobuf:"varint,1,opt,name=scheduled_event_id,json=scheduledEventId,proto3" json:"scheduled_event_id,omitempty"` + // Cancellation details. + Failure *v13.Failure `protobuf:"bytes,2,opt,name=failure,proto3" json:"failure,omitempty"` + // The request ID allocated at schedule time. + RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (x *ChildWorkflowExecutionFailedEventAttributes) Reset() { - *x = ChildWorkflowExecutionFailedEventAttributes{} - mi := &file_temporal_api_history_v1_message_proto_msgTypes[37] +func (x *NexusOperationCanceledEventAttributes) Reset() { + *x = NexusOperationCanceledEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[55] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } -func (x *ChildWorkflowExecutionFailedEventAttributes) String() string { +func (x *NexusOperationCanceledEventAttributes) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ChildWorkflowExecutionFailedEventAttributes) ProtoMessage() {} +func (*NexusOperationCanceledEventAttributes) ProtoMessage() {} -func (x *ChildWorkflowExecutionFailedEventAttributes) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_history_v1_message_proto_msgTypes[37] +func (x *NexusOperationCanceledEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[55] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3909,99 +9814,97 @@ func (x *ChildWorkflowExecutionFailedEventAttributes) ProtoReflect() protoreflec return mi.MessageOf(x) } -// Deprecated: Use ChildWorkflowExecutionFailedEventAttributes.ProtoReflect.Descriptor instead. -func (*ChildWorkflowExecutionFailedEventAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_history_v1_message_proto_rawDescGZIP(), []int{37} +func (x *NexusOperationCanceledEventAttributes) GetScheduledEventId() int64 { + if x != nil { + return x.ScheduledEventId + } + return 0 } -func (x *ChildWorkflowExecutionFailedEventAttributes) GetFailure() *v13.Failure { +func (x *NexusOperationCanceledEventAttributes) GetFailure() *v13.Failure { if x != nil { return x.Failure } return nil } -func (x *ChildWorkflowExecutionFailedEventAttributes) GetNamespace() string { +func (x *NexusOperationCanceledEventAttributes) GetRequestId() string { if x != nil { - return x.Namespace + return x.RequestId } return "" } -func (x *ChildWorkflowExecutionFailedEventAttributes) GetNamespaceId() string { - if x != nil { - return x.NamespaceId - } - return "" +func (x *NexusOperationCanceledEventAttributes) SetScheduledEventId(v int64) { + x.ScheduledEventId = v } -func (x *ChildWorkflowExecutionFailedEventAttributes) GetWorkflowExecution() *v1.WorkflowExecution { - if x != nil { - return x.WorkflowExecution - } - return nil +func (x *NexusOperationCanceledEventAttributes) SetFailure(v *v13.Failure) { + x.Failure = v } -func (x *ChildWorkflowExecutionFailedEventAttributes) GetWorkflowType() *v1.WorkflowType { - if x != nil { - return x.WorkflowType - } - return nil +func (x *NexusOperationCanceledEventAttributes) SetRequestId(v string) { + x.RequestId = v } -func (x *ChildWorkflowExecutionFailedEventAttributes) GetInitiatedEventId() int64 { - if x != nil { - return x.InitiatedEventId +func (x *NexusOperationCanceledEventAttributes) HasFailure() bool { + if x == nil { + return false } - return 0 + return x.Failure != nil } -func (x *ChildWorkflowExecutionFailedEventAttributes) GetStartedEventId() int64 { - if x != nil { - return x.StartedEventId - } - return 0 +func (x *NexusOperationCanceledEventAttributes) ClearFailure() { + x.Failure = nil } -func (x *ChildWorkflowExecutionFailedEventAttributes) GetRetryState() v12.RetryState { - if x != nil { - return x.RetryState - } - return v12.RetryState(0) +type NexusOperationCanceledEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the `NEXUS_OPERATION_SCHEDULED` event. Uniquely identifies this operation. + ScheduledEventId int64 + // Cancellation details. + Failure *v13.Failure + // The request ID allocated at schedule time. + RequestId string } -type ChildWorkflowExecutionCanceledEventAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` - Details *v1.Payloads `protobuf:"bytes,1,opt,name=details,proto3" json:"details,omitempty"` - // Namespace of the child workflow. - // SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. - Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` - NamespaceId string `protobuf:"bytes,7,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"` - WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,3,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` - WorkflowType *v1.WorkflowType `protobuf:"bytes,4,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type,omitempty"` - // Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to - InitiatedEventId int64 `protobuf:"varint,5,opt,name=initiated_event_id,json=initiatedEventId,proto3" json:"initiated_event_id,omitempty"` - // Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to - StartedEventId int64 `protobuf:"varint,6,opt,name=started_event_id,json=startedEventId,proto3" json:"started_event_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache +func (b0 NexusOperationCanceledEventAttributes_builder) Build() *NexusOperationCanceledEventAttributes { + m0 := &NexusOperationCanceledEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.ScheduledEventId = b.ScheduledEventId + x.Failure = b.Failure + x.RequestId = b.RequestId + return m0 } -func (x *ChildWorkflowExecutionCanceledEventAttributes) Reset() { - *x = ChildWorkflowExecutionCanceledEventAttributes{} - mi := &file_temporal_api_history_v1_message_proto_msgTypes[38] +type NexusOperationCancelRequestedEventAttributes struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // The id of the `NEXUS_OPERATION_SCHEDULED` event this cancel request corresponds to. + ScheduledEventId int64 `protobuf:"varint,1,opt,name=scheduled_event_id,json=scheduledEventId,proto3" json:"scheduled_event_id,omitempty"` + // The `WORKFLOW_TASK_COMPLETED` event that the corresponding RequestCancelNexusOperation command was reported + // with. + WorkflowTaskCompletedEventId int64 `protobuf:"varint,2,opt,name=workflow_task_completed_event_id,json=workflowTaskCompletedEventId,proto3" json:"workflow_task_completed_event_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *NexusOperationCancelRequestedEventAttributes) Reset() { + *x = NexusOperationCancelRequestedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[56] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } -func (x *ChildWorkflowExecutionCanceledEventAttributes) String() string { +func (x *NexusOperationCancelRequestedEventAttributes) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ChildWorkflowExecutionCanceledEventAttributes) ProtoMessage() {} +func (*NexusOperationCancelRequestedEventAttributes) ProtoMessage() {} -func (x *ChildWorkflowExecutionCanceledEventAttributes) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_history_v1_message_proto_msgTypes[38] +func (x *NexusOperationCancelRequestedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[56] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4012,92 +9915,170 @@ func (x *ChildWorkflowExecutionCanceledEventAttributes) ProtoReflect() protorefl return mi.MessageOf(x) } -// Deprecated: Use ChildWorkflowExecutionCanceledEventAttributes.ProtoReflect.Descriptor instead. -func (*ChildWorkflowExecutionCanceledEventAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_history_v1_message_proto_rawDescGZIP(), []int{38} -} - -func (x *ChildWorkflowExecutionCanceledEventAttributes) GetDetails() *v1.Payloads { +func (x *NexusOperationCancelRequestedEventAttributes) GetScheduledEventId() int64 { if x != nil { - return x.Details + return x.ScheduledEventId } - return nil + return 0 } -func (x *ChildWorkflowExecutionCanceledEventAttributes) GetNamespace() string { +func (x *NexusOperationCancelRequestedEventAttributes) GetWorkflowTaskCompletedEventId() int64 { if x != nil { - return x.Namespace + return x.WorkflowTaskCompletedEventId } - return "" + return 0 } -func (x *ChildWorkflowExecutionCanceledEventAttributes) GetNamespaceId() string { - if x != nil { - return x.NamespaceId - } - return "" +func (x *NexusOperationCancelRequestedEventAttributes) SetScheduledEventId(v int64) { + x.ScheduledEventId = v } -func (x *ChildWorkflowExecutionCanceledEventAttributes) GetWorkflowExecution() *v1.WorkflowExecution { +func (x *NexusOperationCancelRequestedEventAttributes) SetWorkflowTaskCompletedEventId(v int64) { + x.WorkflowTaskCompletedEventId = v +} + +type NexusOperationCancelRequestedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The id of the `NEXUS_OPERATION_SCHEDULED` event this cancel request corresponds to. + ScheduledEventId int64 + // The `WORKFLOW_TASK_COMPLETED` event that the corresponding RequestCancelNexusOperation command was reported + // with. + WorkflowTaskCompletedEventId int64 +} + +func (b0 NexusOperationCancelRequestedEventAttributes_builder) Build() *NexusOperationCancelRequestedEventAttributes { + m0 := &NexusOperationCancelRequestedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.ScheduledEventId = b.ScheduledEventId + x.WorkflowTaskCompletedEventId = b.WorkflowTaskCompletedEventId + return m0 +} + +type NexusOperationCancelRequestCompletedEventAttributes struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // The ID of the `NEXUS_OPERATION_CANCEL_REQUESTED` event. + RequestedEventId int64 `protobuf:"varint,1,opt,name=requested_event_id,json=requestedEventId,proto3" json:"requested_event_id,omitempty"` + // The `WORKFLOW_TASK_COMPLETED` event that the corresponding RequestCancelNexusOperation command was reported + // with. + WorkflowTaskCompletedEventId int64 `protobuf:"varint,2,opt,name=workflow_task_completed_event_id,json=workflowTaskCompletedEventId,proto3" json:"workflow_task_completed_event_id,omitempty"` + // The id of the `NEXUS_OPERATION_SCHEDULED` event this cancel request corresponds to. + ScheduledEventId int64 `protobuf:"varint,3,opt,name=scheduled_event_id,json=scheduledEventId,proto3" json:"scheduled_event_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *NexusOperationCancelRequestCompletedEventAttributes) Reset() { + *x = NexusOperationCancelRequestCompletedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[57] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *NexusOperationCancelRequestCompletedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NexusOperationCancelRequestCompletedEventAttributes) ProtoMessage() {} + +func (x *NexusOperationCancelRequestCompletedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[57] if x != nil { - return x.WorkflowExecution + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (x *ChildWorkflowExecutionCanceledEventAttributes) GetWorkflowType() *v1.WorkflowType { +func (x *NexusOperationCancelRequestCompletedEventAttributes) GetRequestedEventId() int64 { if x != nil { - return x.WorkflowType + return x.RequestedEventId } - return nil + return 0 } -func (x *ChildWorkflowExecutionCanceledEventAttributes) GetInitiatedEventId() int64 { +func (x *NexusOperationCancelRequestCompletedEventAttributes) GetWorkflowTaskCompletedEventId() int64 { if x != nil { - return x.InitiatedEventId + return x.WorkflowTaskCompletedEventId } return 0 } -func (x *ChildWorkflowExecutionCanceledEventAttributes) GetStartedEventId() int64 { +func (x *NexusOperationCancelRequestCompletedEventAttributes) GetScheduledEventId() int64 { if x != nil { - return x.StartedEventId + return x.ScheduledEventId } return 0 } -type ChildWorkflowExecutionTimedOutEventAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Namespace of the child workflow. - // SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. - Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` - NamespaceId string `protobuf:"bytes,7,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"` - WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` - WorkflowType *v1.WorkflowType `protobuf:"bytes,3,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type,omitempty"` - // Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to - InitiatedEventId int64 `protobuf:"varint,4,opt,name=initiated_event_id,json=initiatedEventId,proto3" json:"initiated_event_id,omitempty"` - // Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to - StartedEventId int64 `protobuf:"varint,5,opt,name=started_event_id,json=startedEventId,proto3" json:"started_event_id,omitempty"` - RetryState v12.RetryState `protobuf:"varint,6,opt,name=retry_state,json=retryState,proto3,enum=temporal.api.enums.v1.RetryState" json:"retry_state,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache +func (x *NexusOperationCancelRequestCompletedEventAttributes) SetRequestedEventId(v int64) { + x.RequestedEventId = v } -func (x *ChildWorkflowExecutionTimedOutEventAttributes) Reset() { - *x = ChildWorkflowExecutionTimedOutEventAttributes{} - mi := &file_temporal_api_history_v1_message_proto_msgTypes[39] +func (x *NexusOperationCancelRequestCompletedEventAttributes) SetWorkflowTaskCompletedEventId(v int64) { + x.WorkflowTaskCompletedEventId = v +} + +func (x *NexusOperationCancelRequestCompletedEventAttributes) SetScheduledEventId(v int64) { + x.ScheduledEventId = v +} + +type NexusOperationCancelRequestCompletedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the `NEXUS_OPERATION_CANCEL_REQUESTED` event. + RequestedEventId int64 + // The `WORKFLOW_TASK_COMPLETED` event that the corresponding RequestCancelNexusOperation command was reported + // with. + WorkflowTaskCompletedEventId int64 + // The id of the `NEXUS_OPERATION_SCHEDULED` event this cancel request corresponds to. + ScheduledEventId int64 +} + +func (b0 NexusOperationCancelRequestCompletedEventAttributes_builder) Build() *NexusOperationCancelRequestCompletedEventAttributes { + m0 := &NexusOperationCancelRequestCompletedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.RequestedEventId = b.RequestedEventId + x.WorkflowTaskCompletedEventId = b.WorkflowTaskCompletedEventId + x.ScheduledEventId = b.ScheduledEventId + return m0 +} + +type NexusOperationCancelRequestFailedEventAttributes struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // The ID of the `NEXUS_OPERATION_CANCEL_REQUESTED` event. + RequestedEventId int64 `protobuf:"varint,1,opt,name=requested_event_id,json=requestedEventId,proto3" json:"requested_event_id,omitempty"` + // The `WORKFLOW_TASK_COMPLETED` event that the corresponding RequestCancelNexusOperation command was reported + // with. + WorkflowTaskCompletedEventId int64 `protobuf:"varint,2,opt,name=workflow_task_completed_event_id,json=workflowTaskCompletedEventId,proto3" json:"workflow_task_completed_event_id,omitempty"` + // Failure details. A NexusOperationFailureInfo wrapping a CanceledFailureInfo. + Failure *v13.Failure `protobuf:"bytes,3,opt,name=failure,proto3" json:"failure,omitempty"` + // The id of the `NEXUS_OPERATION_SCHEDULED` event this cancel request corresponds to. + ScheduledEventId int64 `protobuf:"varint,4,opt,name=scheduled_event_id,json=scheduledEventId,proto3" json:"scheduled_event_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *NexusOperationCancelRequestFailedEventAttributes) Reset() { + *x = NexusOperationCancelRequestFailedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[58] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } -func (x *ChildWorkflowExecutionTimedOutEventAttributes) String() string { +func (x *NexusOperationCancelRequestFailedEventAttributes) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ChildWorkflowExecutionTimedOutEventAttributes) ProtoMessage() {} +func (*NexusOperationCancelRequestFailedEventAttributes) ProtoMessage() {} -func (x *ChildWorkflowExecutionTimedOutEventAttributes) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_history_v1_message_proto_msgTypes[39] +func (x *NexusOperationCancelRequestFailedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[58] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4108,91 +10089,199 @@ func (x *ChildWorkflowExecutionTimedOutEventAttributes) ProtoReflect() protorefl return mi.MessageOf(x) } -// Deprecated: Use ChildWorkflowExecutionTimedOutEventAttributes.ProtoReflect.Descriptor instead. -func (*ChildWorkflowExecutionTimedOutEventAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_history_v1_message_proto_rawDescGZIP(), []int{39} -} - -func (x *ChildWorkflowExecutionTimedOutEventAttributes) GetNamespace() string { - if x != nil { - return x.Namespace - } - return "" -} - -func (x *ChildWorkflowExecutionTimedOutEventAttributes) GetNamespaceId() string { +func (x *NexusOperationCancelRequestFailedEventAttributes) GetRequestedEventId() int64 { if x != nil { - return x.NamespaceId + return x.RequestedEventId } - return "" + return 0 } -func (x *ChildWorkflowExecutionTimedOutEventAttributes) GetWorkflowExecution() *v1.WorkflowExecution { +func (x *NexusOperationCancelRequestFailedEventAttributes) GetWorkflowTaskCompletedEventId() int64 { if x != nil { - return x.WorkflowExecution + return x.WorkflowTaskCompletedEventId } - return nil + return 0 } -func (x *ChildWorkflowExecutionTimedOutEventAttributes) GetWorkflowType() *v1.WorkflowType { +func (x *NexusOperationCancelRequestFailedEventAttributes) GetFailure() *v13.Failure { if x != nil { - return x.WorkflowType + return x.Failure } return nil } -func (x *ChildWorkflowExecutionTimedOutEventAttributes) GetInitiatedEventId() int64 { +func (x *NexusOperationCancelRequestFailedEventAttributes) GetScheduledEventId() int64 { if x != nil { - return x.InitiatedEventId + return x.ScheduledEventId } return 0 } -func (x *ChildWorkflowExecutionTimedOutEventAttributes) GetStartedEventId() int64 { - if x != nil { - return x.StartedEventId - } - return 0 +func (x *NexusOperationCancelRequestFailedEventAttributes) SetRequestedEventId(v int64) { + x.RequestedEventId = v } -func (x *ChildWorkflowExecutionTimedOutEventAttributes) GetRetryState() v12.RetryState { - if x != nil { - return x.RetryState +func (x *NexusOperationCancelRequestFailedEventAttributes) SetWorkflowTaskCompletedEventId(v int64) { + x.WorkflowTaskCompletedEventId = v +} + +func (x *NexusOperationCancelRequestFailedEventAttributes) SetFailure(v *v13.Failure) { + x.Failure = v +} + +func (x *NexusOperationCancelRequestFailedEventAttributes) SetScheduledEventId(v int64) { + x.ScheduledEventId = v +} + +func (x *NexusOperationCancelRequestFailedEventAttributes) HasFailure() bool { + if x == nil { + return false } - return v12.RetryState(0) + return x.Failure != nil } -type ChildWorkflowExecutionTerminatedEventAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Namespace of the child workflow. - // SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. - Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` - NamespaceId string `protobuf:"bytes,6,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"` - WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` - WorkflowType *v1.WorkflowType `protobuf:"bytes,3,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type,omitempty"` - // Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to - InitiatedEventId int64 `protobuf:"varint,4,opt,name=initiated_event_id,json=initiatedEventId,proto3" json:"initiated_event_id,omitempty"` - // Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to - StartedEventId int64 `protobuf:"varint,5,opt,name=started_event_id,json=startedEventId,proto3" json:"started_event_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache +func (x *NexusOperationCancelRequestFailedEventAttributes) ClearFailure() { + x.Failure = nil } -func (x *ChildWorkflowExecutionTerminatedEventAttributes) Reset() { - *x = ChildWorkflowExecutionTerminatedEventAttributes{} - mi := &file_temporal_api_history_v1_message_proto_msgTypes[40] +type NexusOperationCancelRequestFailedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the `NEXUS_OPERATION_CANCEL_REQUESTED` event. + RequestedEventId int64 + // The `WORKFLOW_TASK_COMPLETED` event that the corresponding RequestCancelNexusOperation command was reported + // with. + WorkflowTaskCompletedEventId int64 + // Failure details. A NexusOperationFailureInfo wrapping a CanceledFailureInfo. + Failure *v13.Failure + // The id of the `NEXUS_OPERATION_SCHEDULED` event this cancel request corresponds to. + ScheduledEventId int64 +} + +func (b0 NexusOperationCancelRequestFailedEventAttributes_builder) Build() *NexusOperationCancelRequestFailedEventAttributes { + m0 := &NexusOperationCancelRequestFailedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.RequestedEventId = b.RequestedEventId + x.WorkflowTaskCompletedEventId = b.WorkflowTaskCompletedEventId + x.Failure = b.Failure + x.ScheduledEventId = b.ScheduledEventId + return m0 +} + +// History events are the method by which Temporal SDKs advance (or recreate) workflow state. +// See the `EventType` enum for more info about what each event is for. +type HistoryEvent struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // Monotonically increasing event number, starts at 1. + EventId int64 `protobuf:"varint,1,opt,name=event_id,json=eventId,proto3" json:"event_id,omitempty"` + EventTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=event_time,json=eventTime,proto3" json:"event_time,omitempty"` + EventType v12.EventType `protobuf:"varint,3,opt,name=event_type,json=eventType,proto3,enum=temporal.api.enums.v1.EventType" json:"event_type,omitempty"` + // Failover version of the event, used by the server for multi-cluster replication and history + // versioning. SDKs generally ignore this field. + Version int64 `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"` + // Identifier used by the service to order replication and transfer tasks associated with this + // event. SDKs generally ignore this field. + TaskId int64 `protobuf:"varint,5,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` + // Set to true when the SDK may ignore the event as it does not impact workflow state or + // information in any way that the SDK need be concerned with. If an SDK encounters an event + // type which it does not understand, it must error unless this is true. If it is true, it's + // acceptable for the event type and/or attributes to be uninterpretable. + WorkerMayIgnore bool `protobuf:"varint,300,opt,name=worker_may_ignore,json=workerMayIgnore,proto3" json:"worker_may_ignore,omitempty"` + // Metadata on the event. This is often carried over from commands and client calls. Most events + // won't have this information, and how this information is used is dependent upon the interface + // that reads it. + // + // Current well-known uses: + // - workflow_execution_started_event_attributes - summary and details from start workflow. + // - timer_started_event_attributes - summary represents an identifier for the timer for use by + // user interfaces. + UserMetadata *v16.UserMetadata `protobuf:"bytes,301,opt,name=user_metadata,json=userMetadata,proto3" json:"user_metadata,omitempty"` + // Links associated with the event. + Links []*v1.Link `protobuf:"bytes,302,rep,name=links,proto3" json:"links,omitempty"` + // The event details. The type must match that in `event_type`. + // + // Types that are valid to be assigned to Attributes: + // + // *HistoryEvent_WorkflowExecutionStartedEventAttributes + // *HistoryEvent_WorkflowExecutionCompletedEventAttributes + // *HistoryEvent_WorkflowExecutionFailedEventAttributes + // *HistoryEvent_WorkflowExecutionTimedOutEventAttributes + // *HistoryEvent_WorkflowTaskScheduledEventAttributes + // *HistoryEvent_WorkflowTaskStartedEventAttributes + // *HistoryEvent_WorkflowTaskCompletedEventAttributes + // *HistoryEvent_WorkflowTaskTimedOutEventAttributes + // *HistoryEvent_WorkflowTaskFailedEventAttributes + // *HistoryEvent_ActivityTaskScheduledEventAttributes + // *HistoryEvent_ActivityTaskStartedEventAttributes + // *HistoryEvent_ActivityTaskCompletedEventAttributes + // *HistoryEvent_ActivityTaskFailedEventAttributes + // *HistoryEvent_ActivityTaskTimedOutEventAttributes + // *HistoryEvent_TimerStartedEventAttributes + // *HistoryEvent_TimerFiredEventAttributes + // *HistoryEvent_ActivityTaskCancelRequestedEventAttributes + // *HistoryEvent_ActivityTaskCanceledEventAttributes + // *HistoryEvent_TimerCanceledEventAttributes + // *HistoryEvent_MarkerRecordedEventAttributes + // *HistoryEvent_WorkflowExecutionSignaledEventAttributes + // *HistoryEvent_WorkflowExecutionTerminatedEventAttributes + // *HistoryEvent_WorkflowExecutionCancelRequestedEventAttributes + // *HistoryEvent_WorkflowExecutionCanceledEventAttributes + // *HistoryEvent_RequestCancelExternalWorkflowExecutionInitiatedEventAttributes + // *HistoryEvent_RequestCancelExternalWorkflowExecutionFailedEventAttributes + // *HistoryEvent_ExternalWorkflowExecutionCancelRequestedEventAttributes + // *HistoryEvent_WorkflowExecutionContinuedAsNewEventAttributes + // *HistoryEvent_StartChildWorkflowExecutionInitiatedEventAttributes + // *HistoryEvent_StartChildWorkflowExecutionFailedEventAttributes + // *HistoryEvent_ChildWorkflowExecutionStartedEventAttributes + // *HistoryEvent_ChildWorkflowExecutionCompletedEventAttributes + // *HistoryEvent_ChildWorkflowExecutionFailedEventAttributes + // *HistoryEvent_ChildWorkflowExecutionCanceledEventAttributes + // *HistoryEvent_ChildWorkflowExecutionTimedOutEventAttributes + // *HistoryEvent_ChildWorkflowExecutionTerminatedEventAttributes + // *HistoryEvent_SignalExternalWorkflowExecutionInitiatedEventAttributes + // *HistoryEvent_SignalExternalWorkflowExecutionFailedEventAttributes + // *HistoryEvent_ExternalWorkflowExecutionSignaledEventAttributes + // *HistoryEvent_UpsertWorkflowSearchAttributesEventAttributes + // *HistoryEvent_WorkflowExecutionUpdateAcceptedEventAttributes + // *HistoryEvent_WorkflowExecutionUpdateRejectedEventAttributes + // *HistoryEvent_WorkflowExecutionUpdateCompletedEventAttributes + // *HistoryEvent_WorkflowPropertiesModifiedExternallyEventAttributes + // *HistoryEvent_ActivityPropertiesModifiedExternallyEventAttributes + // *HistoryEvent_WorkflowPropertiesModifiedEventAttributes + // *HistoryEvent_WorkflowExecutionUpdateAdmittedEventAttributes + // *HistoryEvent_NexusOperationScheduledEventAttributes + // *HistoryEvent_NexusOperationStartedEventAttributes + // *HistoryEvent_NexusOperationCompletedEventAttributes + // *HistoryEvent_NexusOperationFailedEventAttributes + // *HistoryEvent_NexusOperationCanceledEventAttributes + // *HistoryEvent_NexusOperationTimedOutEventAttributes + // *HistoryEvent_NexusOperationCancelRequestedEventAttributes + // *HistoryEvent_WorkflowExecutionOptionsUpdatedEventAttributes + // *HistoryEvent_NexusOperationCancelRequestCompletedEventAttributes + // *HistoryEvent_NexusOperationCancelRequestFailedEventAttributes + // *HistoryEvent_WorkflowExecutionPausedEventAttributes + // *HistoryEvent_WorkflowExecutionUnpausedEventAttributes + Attributes isHistoryEvent_Attributes `protobuf_oneof:"attributes"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *HistoryEvent) Reset() { + *x = HistoryEvent{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[59] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } -func (x *ChildWorkflowExecutionTerminatedEventAttributes) String() string { +func (x *HistoryEvent) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ChildWorkflowExecutionTerminatedEventAttributes) ProtoMessage() {} +func (*HistoryEvent) ProtoMessage() {} -func (x *ChildWorkflowExecutionTerminatedEventAttributes) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_history_v1_message_proto_msgTypes[40] +func (x *HistoryEvent) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[59] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4203,2095 +10292,2566 @@ func (x *ChildWorkflowExecutionTerminatedEventAttributes) ProtoReflect() protore return mi.MessageOf(x) } -// Deprecated: Use ChildWorkflowExecutionTerminatedEventAttributes.ProtoReflect.Descriptor instead. -func (*ChildWorkflowExecutionTerminatedEventAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_history_v1_message_proto_rawDescGZIP(), []int{40} -} - -func (x *ChildWorkflowExecutionTerminatedEventAttributes) GetNamespace() string { +func (x *HistoryEvent) GetEventId() int64 { if x != nil { - return x.Namespace + return x.EventId } - return "" + return 0 } -func (x *ChildWorkflowExecutionTerminatedEventAttributes) GetNamespaceId() string { +func (x *HistoryEvent) GetEventTime() *timestamppb.Timestamp { if x != nil { - return x.NamespaceId + return x.EventTime } - return "" + return nil } -func (x *ChildWorkflowExecutionTerminatedEventAttributes) GetWorkflowExecution() *v1.WorkflowExecution { +func (x *HistoryEvent) GetEventType() v12.EventType { if x != nil { - return x.WorkflowExecution + return x.EventType } - return nil + return v12.EventType(0) } -func (x *ChildWorkflowExecutionTerminatedEventAttributes) GetWorkflowType() *v1.WorkflowType { +func (x *HistoryEvent) GetVersion() int64 { if x != nil { - return x.WorkflowType + return x.Version } - return nil + return 0 } -func (x *ChildWorkflowExecutionTerminatedEventAttributes) GetInitiatedEventId() int64 { +func (x *HistoryEvent) GetTaskId() int64 { if x != nil { - return x.InitiatedEventId + return x.TaskId } return 0 } -func (x *ChildWorkflowExecutionTerminatedEventAttributes) GetStartedEventId() int64 { +func (x *HistoryEvent) GetWorkerMayIgnore() bool { if x != nil { - return x.StartedEventId + return x.WorkerMayIgnore } - return 0 + return false } -type WorkflowExecutionOptionsUpdatedEventAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Versioning override upserted in this event. - // Ignored if nil or if unset_versioning_override is true. - VersioningOverride *v14.VersioningOverride `protobuf:"bytes,1,opt,name=versioning_override,json=versioningOverride,proto3" json:"versioning_override,omitempty"` - // Versioning override removed in this event. - UnsetVersioningOverride bool `protobuf:"varint,2,opt,name=unset_versioning_override,json=unsetVersioningOverride,proto3" json:"unset_versioning_override,omitempty"` - // Request ID attached to the running workflow execution so that subsequent requests with same - // request ID will be deduped. - AttachedRequestId string `protobuf:"bytes,3,opt,name=attached_request_id,json=attachedRequestId,proto3" json:"attached_request_id,omitempty"` - // Completion callbacks attached to the running workflow execution. - AttachedCompletionCallbacks []*v1.Callback `protobuf:"bytes,4,rep,name=attached_completion_callbacks,json=attachedCompletionCallbacks,proto3" json:"attached_completion_callbacks,omitempty"` - // Optional. The identity of the client who initiated the request that created this event. - Identity string `protobuf:"bytes,5,opt,name=identity,proto3" json:"identity,omitempty"` - // Priority override upserted in this event. Represents the full priority; not just partial fields. - // Ignored if nil. - Priority *v1.Priority `protobuf:"bytes,6,opt,name=priority,proto3" json:"priority,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache +func (x *HistoryEvent) GetUserMetadata() *v16.UserMetadata { + if x != nil { + return x.UserMetadata + } + return nil } -func (x *WorkflowExecutionOptionsUpdatedEventAttributes) Reset() { - *x = WorkflowExecutionOptionsUpdatedEventAttributes{} - mi := &file_temporal_api_history_v1_message_proto_msgTypes[41] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *HistoryEvent) GetLinks() []*v1.Link { + if x != nil { + return x.Links + } + return nil } -func (x *WorkflowExecutionOptionsUpdatedEventAttributes) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *HistoryEvent) GetAttributes() isHistoryEvent_Attributes { + if x != nil { + return x.Attributes + } + return nil } -func (*WorkflowExecutionOptionsUpdatedEventAttributes) ProtoMessage() {} - -func (x *WorkflowExecutionOptionsUpdatedEventAttributes) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_history_v1_message_proto_msgTypes[41] +func (x *HistoryEvent) GetWorkflowExecutionStartedEventAttributes() *WorkflowExecutionStartedEventAttributes { if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) + if x, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionStartedEventAttributes); ok { + return x.WorkflowExecutionStartedEventAttributes } - return ms } - return mi.MessageOf(x) -} - -// Deprecated: Use WorkflowExecutionOptionsUpdatedEventAttributes.ProtoReflect.Descriptor instead. -func (*WorkflowExecutionOptionsUpdatedEventAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_history_v1_message_proto_rawDescGZIP(), []int{41} + return nil } -func (x *WorkflowExecutionOptionsUpdatedEventAttributes) GetVersioningOverride() *v14.VersioningOverride { +func (x *HistoryEvent) GetWorkflowExecutionCompletedEventAttributes() *WorkflowExecutionCompletedEventAttributes { if x != nil { - return x.VersioningOverride + if x, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionCompletedEventAttributes); ok { + return x.WorkflowExecutionCompletedEventAttributes + } } return nil } -func (x *WorkflowExecutionOptionsUpdatedEventAttributes) GetUnsetVersioningOverride() bool { +func (x *HistoryEvent) GetWorkflowExecutionFailedEventAttributes() *WorkflowExecutionFailedEventAttributes { if x != nil { - return x.UnsetVersioningOverride + if x, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionFailedEventAttributes); ok { + return x.WorkflowExecutionFailedEventAttributes + } } - return false + return nil } -func (x *WorkflowExecutionOptionsUpdatedEventAttributes) GetAttachedRequestId() string { +func (x *HistoryEvent) GetWorkflowExecutionTimedOutEventAttributes() *WorkflowExecutionTimedOutEventAttributes { if x != nil { - return x.AttachedRequestId + if x, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionTimedOutEventAttributes); ok { + return x.WorkflowExecutionTimedOutEventAttributes + } } - return "" + return nil } -func (x *WorkflowExecutionOptionsUpdatedEventAttributes) GetAttachedCompletionCallbacks() []*v1.Callback { +func (x *HistoryEvent) GetWorkflowTaskScheduledEventAttributes() *WorkflowTaskScheduledEventAttributes { if x != nil { - return x.AttachedCompletionCallbacks + if x, ok := x.Attributes.(*HistoryEvent_WorkflowTaskScheduledEventAttributes); ok { + return x.WorkflowTaskScheduledEventAttributes + } } return nil } -func (x *WorkflowExecutionOptionsUpdatedEventAttributes) GetIdentity() string { +func (x *HistoryEvent) GetWorkflowTaskStartedEventAttributes() *WorkflowTaskStartedEventAttributes { if x != nil { - return x.Identity + if x, ok := x.Attributes.(*HistoryEvent_WorkflowTaskStartedEventAttributes); ok { + return x.WorkflowTaskStartedEventAttributes + } } - return "" + return nil } -func (x *WorkflowExecutionOptionsUpdatedEventAttributes) GetPriority() *v1.Priority { +func (x *HistoryEvent) GetWorkflowTaskCompletedEventAttributes() *WorkflowTaskCompletedEventAttributes { if x != nil { - return x.Priority + if x, ok := x.Attributes.(*HistoryEvent_WorkflowTaskCompletedEventAttributes); ok { + return x.WorkflowTaskCompletedEventAttributes + } } return nil } -// Not used anywhere. Use case is replaced by WorkflowExecutionOptionsUpdatedEventAttributes -type WorkflowPropertiesModifiedExternallyEventAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Not used. - NewTaskQueue string `protobuf:"bytes,1,opt,name=new_task_queue,json=newTaskQueue,proto3" json:"new_task_queue,omitempty"` - // Not used. - NewWorkflowTaskTimeout *durationpb.Duration `protobuf:"bytes,2,opt,name=new_workflow_task_timeout,json=newWorkflowTaskTimeout,proto3" json:"new_workflow_task_timeout,omitempty"` - // Not used. - NewWorkflowRunTimeout *durationpb.Duration `protobuf:"bytes,3,opt,name=new_workflow_run_timeout,json=newWorkflowRunTimeout,proto3" json:"new_workflow_run_timeout,omitempty"` - // Not used. - NewWorkflowExecutionTimeout *durationpb.Duration `protobuf:"bytes,4,opt,name=new_workflow_execution_timeout,json=newWorkflowExecutionTimeout,proto3" json:"new_workflow_execution_timeout,omitempty"` - // Not used. - UpsertedMemo *v1.Memo `protobuf:"bytes,5,opt,name=upserted_memo,json=upsertedMemo,proto3" json:"upserted_memo,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache +func (x *HistoryEvent) GetWorkflowTaskTimedOutEventAttributes() *WorkflowTaskTimedOutEventAttributes { + if x != nil { + if x, ok := x.Attributes.(*HistoryEvent_WorkflowTaskTimedOutEventAttributes); ok { + return x.WorkflowTaskTimedOutEventAttributes + } + } + return nil } -func (x *WorkflowPropertiesModifiedExternallyEventAttributes) Reset() { - *x = WorkflowPropertiesModifiedExternallyEventAttributes{} - mi := &file_temporal_api_history_v1_message_proto_msgTypes[42] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *HistoryEvent) GetWorkflowTaskFailedEventAttributes() *WorkflowTaskFailedEventAttributes { + if x != nil { + if x, ok := x.Attributes.(*HistoryEvent_WorkflowTaskFailedEventAttributes); ok { + return x.WorkflowTaskFailedEventAttributes + } + } + return nil } -func (x *WorkflowPropertiesModifiedExternallyEventAttributes) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *HistoryEvent) GetActivityTaskScheduledEventAttributes() *ActivityTaskScheduledEventAttributes { + if x != nil { + if x, ok := x.Attributes.(*HistoryEvent_ActivityTaskScheduledEventAttributes); ok { + return x.ActivityTaskScheduledEventAttributes + } + } + return nil } -func (*WorkflowPropertiesModifiedExternallyEventAttributes) ProtoMessage() {} - -func (x *WorkflowPropertiesModifiedExternallyEventAttributes) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_history_v1_message_proto_msgTypes[42] +func (x *HistoryEvent) GetActivityTaskStartedEventAttributes() *ActivityTaskStartedEventAttributes { if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) + if x, ok := x.Attributes.(*HistoryEvent_ActivityTaskStartedEventAttributes); ok { + return x.ActivityTaskStartedEventAttributes } - return ms } - return mi.MessageOf(x) + return nil } -// Deprecated: Use WorkflowPropertiesModifiedExternallyEventAttributes.ProtoReflect.Descriptor instead. -func (*WorkflowPropertiesModifiedExternallyEventAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_history_v1_message_proto_rawDescGZIP(), []int{42} +func (x *HistoryEvent) GetActivityTaskCompletedEventAttributes() *ActivityTaskCompletedEventAttributes { + if x != nil { + if x, ok := x.Attributes.(*HistoryEvent_ActivityTaskCompletedEventAttributes); ok { + return x.ActivityTaskCompletedEventAttributes + } + } + return nil } -func (x *WorkflowPropertiesModifiedExternallyEventAttributes) GetNewTaskQueue() string { +func (x *HistoryEvent) GetActivityTaskFailedEventAttributes() *ActivityTaskFailedEventAttributes { if x != nil { - return x.NewTaskQueue + if x, ok := x.Attributes.(*HistoryEvent_ActivityTaskFailedEventAttributes); ok { + return x.ActivityTaskFailedEventAttributes + } } - return "" + return nil } -func (x *WorkflowPropertiesModifiedExternallyEventAttributes) GetNewWorkflowTaskTimeout() *durationpb.Duration { +func (x *HistoryEvent) GetActivityTaskTimedOutEventAttributes() *ActivityTaskTimedOutEventAttributes { if x != nil { - return x.NewWorkflowTaskTimeout + if x, ok := x.Attributes.(*HistoryEvent_ActivityTaskTimedOutEventAttributes); ok { + return x.ActivityTaskTimedOutEventAttributes + } } return nil } -func (x *WorkflowPropertiesModifiedExternallyEventAttributes) GetNewWorkflowRunTimeout() *durationpb.Duration { +func (x *HistoryEvent) GetTimerStartedEventAttributes() *TimerStartedEventAttributes { if x != nil { - return x.NewWorkflowRunTimeout + if x, ok := x.Attributes.(*HistoryEvent_TimerStartedEventAttributes); ok { + return x.TimerStartedEventAttributes + } } return nil } -func (x *WorkflowPropertiesModifiedExternallyEventAttributes) GetNewWorkflowExecutionTimeout() *durationpb.Duration { +func (x *HistoryEvent) GetTimerFiredEventAttributes() *TimerFiredEventAttributes { if x != nil { - return x.NewWorkflowExecutionTimeout + if x, ok := x.Attributes.(*HistoryEvent_TimerFiredEventAttributes); ok { + return x.TimerFiredEventAttributes + } } return nil } -func (x *WorkflowPropertiesModifiedExternallyEventAttributes) GetUpsertedMemo() *v1.Memo { +func (x *HistoryEvent) GetActivityTaskCancelRequestedEventAttributes() *ActivityTaskCancelRequestedEventAttributes { if x != nil { - return x.UpsertedMemo + if x, ok := x.Attributes.(*HistoryEvent_ActivityTaskCancelRequestedEventAttributes); ok { + return x.ActivityTaskCancelRequestedEventAttributes + } } return nil } -type ActivityPropertiesModifiedExternallyEventAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The id of the `ACTIVITY_TASK_SCHEDULED` event this modification corresponds to. - ScheduledEventId int64 `protobuf:"varint,1,opt,name=scheduled_event_id,json=scheduledEventId,proto3" json:"scheduled_event_id,omitempty"` - // If set, update the retry policy of the activity, replacing it with the specified one. - // The number of attempts at the activity is preserved. - NewRetryPolicy *v1.RetryPolicy `protobuf:"bytes,2,opt,name=new_retry_policy,json=newRetryPolicy,proto3" json:"new_retry_policy,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache +func (x *HistoryEvent) GetActivityTaskCanceledEventAttributes() *ActivityTaskCanceledEventAttributes { + if x != nil { + if x, ok := x.Attributes.(*HistoryEvent_ActivityTaskCanceledEventAttributes); ok { + return x.ActivityTaskCanceledEventAttributes + } + } + return nil } -func (x *ActivityPropertiesModifiedExternallyEventAttributes) Reset() { - *x = ActivityPropertiesModifiedExternallyEventAttributes{} - mi := &file_temporal_api_history_v1_message_proto_msgTypes[43] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *HistoryEvent) GetTimerCanceledEventAttributes() *TimerCanceledEventAttributes { + if x != nil { + if x, ok := x.Attributes.(*HistoryEvent_TimerCanceledEventAttributes); ok { + return x.TimerCanceledEventAttributes + } + } + return nil } -func (x *ActivityPropertiesModifiedExternallyEventAttributes) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *HistoryEvent) GetMarkerRecordedEventAttributes() *MarkerRecordedEventAttributes { + if x != nil { + if x, ok := x.Attributes.(*HistoryEvent_MarkerRecordedEventAttributes); ok { + return x.MarkerRecordedEventAttributes + } + } + return nil } -func (*ActivityPropertiesModifiedExternallyEventAttributes) ProtoMessage() {} - -func (x *ActivityPropertiesModifiedExternallyEventAttributes) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_history_v1_message_proto_msgTypes[43] +func (x *HistoryEvent) GetWorkflowExecutionSignaledEventAttributes() *WorkflowExecutionSignaledEventAttributes { if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) + if x, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionSignaledEventAttributes); ok { + return x.WorkflowExecutionSignaledEventAttributes } - return ms } - return mi.MessageOf(x) + return nil } -// Deprecated: Use ActivityPropertiesModifiedExternallyEventAttributes.ProtoReflect.Descriptor instead. -func (*ActivityPropertiesModifiedExternallyEventAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_history_v1_message_proto_rawDescGZIP(), []int{43} +func (x *HistoryEvent) GetWorkflowExecutionTerminatedEventAttributes() *WorkflowExecutionTerminatedEventAttributes { + if x != nil { + if x, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionTerminatedEventAttributes); ok { + return x.WorkflowExecutionTerminatedEventAttributes + } + } + return nil } -func (x *ActivityPropertiesModifiedExternallyEventAttributes) GetScheduledEventId() int64 { +func (x *HistoryEvent) GetWorkflowExecutionCancelRequestedEventAttributes() *WorkflowExecutionCancelRequestedEventAttributes { if x != nil { - return x.ScheduledEventId + if x, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionCancelRequestedEventAttributes); ok { + return x.WorkflowExecutionCancelRequestedEventAttributes + } } - return 0 + return nil } -func (x *ActivityPropertiesModifiedExternallyEventAttributes) GetNewRetryPolicy() *v1.RetryPolicy { +func (x *HistoryEvent) GetWorkflowExecutionCanceledEventAttributes() *WorkflowExecutionCanceledEventAttributes { if x != nil { - return x.NewRetryPolicy + if x, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionCanceledEventAttributes); ok { + return x.WorkflowExecutionCanceledEventAttributes + } } return nil } -type WorkflowExecutionUpdateAcceptedEventAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The instance ID of the update protocol that generated this event. - ProtocolInstanceId string `protobuf:"bytes,1,opt,name=protocol_instance_id,json=protocolInstanceId,proto3" json:"protocol_instance_id,omitempty"` - // The message ID of the original request message that initiated this - // update. Needed so that the worker can recreate and deliver that same - // message as part of replay. - AcceptedRequestMessageId string `protobuf:"bytes,2,opt,name=accepted_request_message_id,json=acceptedRequestMessageId,proto3" json:"accepted_request_message_id,omitempty"` - // The event ID used to sequence the original request message. - AcceptedRequestSequencingEventId int64 `protobuf:"varint,3,opt,name=accepted_request_sequencing_event_id,json=acceptedRequestSequencingEventId,proto3" json:"accepted_request_sequencing_event_id,omitempty"` - // The message payload of the original request message that initiated this - // update. - AcceptedRequest *v17.Request `protobuf:"bytes,4,opt,name=accepted_request,json=acceptedRequest,proto3" json:"accepted_request,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache +func (x *HistoryEvent) GetRequestCancelExternalWorkflowExecutionInitiatedEventAttributes() *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes { + if x != nil { + if x, ok := x.Attributes.(*HistoryEvent_RequestCancelExternalWorkflowExecutionInitiatedEventAttributes); ok { + return x.RequestCancelExternalWorkflowExecutionInitiatedEventAttributes + } + } + return nil } -func (x *WorkflowExecutionUpdateAcceptedEventAttributes) Reset() { - *x = WorkflowExecutionUpdateAcceptedEventAttributes{} - mi := &file_temporal_api_history_v1_message_proto_msgTypes[44] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *HistoryEvent) GetRequestCancelExternalWorkflowExecutionFailedEventAttributes() *RequestCancelExternalWorkflowExecutionFailedEventAttributes { + if x != nil { + if x, ok := x.Attributes.(*HistoryEvent_RequestCancelExternalWorkflowExecutionFailedEventAttributes); ok { + return x.RequestCancelExternalWorkflowExecutionFailedEventAttributes + } + } + return nil } -func (x *WorkflowExecutionUpdateAcceptedEventAttributes) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *HistoryEvent) GetExternalWorkflowExecutionCancelRequestedEventAttributes() *ExternalWorkflowExecutionCancelRequestedEventAttributes { + if x != nil { + if x, ok := x.Attributes.(*HistoryEvent_ExternalWorkflowExecutionCancelRequestedEventAttributes); ok { + return x.ExternalWorkflowExecutionCancelRequestedEventAttributes + } + } + return nil } -func (*WorkflowExecutionUpdateAcceptedEventAttributes) ProtoMessage() {} - -func (x *WorkflowExecutionUpdateAcceptedEventAttributes) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_history_v1_message_proto_msgTypes[44] +func (x *HistoryEvent) GetWorkflowExecutionContinuedAsNewEventAttributes() *WorkflowExecutionContinuedAsNewEventAttributes { if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) + if x, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionContinuedAsNewEventAttributes); ok { + return x.WorkflowExecutionContinuedAsNewEventAttributes } - return ms } - return mi.MessageOf(x) + return nil } -// Deprecated: Use WorkflowExecutionUpdateAcceptedEventAttributes.ProtoReflect.Descriptor instead. -func (*WorkflowExecutionUpdateAcceptedEventAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_history_v1_message_proto_rawDescGZIP(), []int{44} +func (x *HistoryEvent) GetStartChildWorkflowExecutionInitiatedEventAttributes() *StartChildWorkflowExecutionInitiatedEventAttributes { + if x != nil { + if x, ok := x.Attributes.(*HistoryEvent_StartChildWorkflowExecutionInitiatedEventAttributes); ok { + return x.StartChildWorkflowExecutionInitiatedEventAttributes + } + } + return nil } -func (x *WorkflowExecutionUpdateAcceptedEventAttributes) GetProtocolInstanceId() string { +func (x *HistoryEvent) GetStartChildWorkflowExecutionFailedEventAttributes() *StartChildWorkflowExecutionFailedEventAttributes { if x != nil { - return x.ProtocolInstanceId + if x, ok := x.Attributes.(*HistoryEvent_StartChildWorkflowExecutionFailedEventAttributes); ok { + return x.StartChildWorkflowExecutionFailedEventAttributes + } } - return "" + return nil } -func (x *WorkflowExecutionUpdateAcceptedEventAttributes) GetAcceptedRequestMessageId() string { +func (x *HistoryEvent) GetChildWorkflowExecutionStartedEventAttributes() *ChildWorkflowExecutionStartedEventAttributes { if x != nil { - return x.AcceptedRequestMessageId + if x, ok := x.Attributes.(*HistoryEvent_ChildWorkflowExecutionStartedEventAttributes); ok { + return x.ChildWorkflowExecutionStartedEventAttributes + } } - return "" + return nil } -func (x *WorkflowExecutionUpdateAcceptedEventAttributes) GetAcceptedRequestSequencingEventId() int64 { +func (x *HistoryEvent) GetChildWorkflowExecutionCompletedEventAttributes() *ChildWorkflowExecutionCompletedEventAttributes { if x != nil { - return x.AcceptedRequestSequencingEventId + if x, ok := x.Attributes.(*HistoryEvent_ChildWorkflowExecutionCompletedEventAttributes); ok { + return x.ChildWorkflowExecutionCompletedEventAttributes + } } - return 0 + return nil } -func (x *WorkflowExecutionUpdateAcceptedEventAttributes) GetAcceptedRequest() *v17.Request { +func (x *HistoryEvent) GetChildWorkflowExecutionFailedEventAttributes() *ChildWorkflowExecutionFailedEventAttributes { if x != nil { - return x.AcceptedRequest + if x, ok := x.Attributes.(*HistoryEvent_ChildWorkflowExecutionFailedEventAttributes); ok { + return x.ChildWorkflowExecutionFailedEventAttributes + } } return nil } -type WorkflowExecutionUpdateCompletedEventAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The metadata about this update. - Meta *v17.Meta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` - // The event ID indicating the acceptance of this update. - AcceptedEventId int64 `protobuf:"varint,3,opt,name=accepted_event_id,json=acceptedEventId,proto3" json:"accepted_event_id,omitempty"` - // The outcome of executing the workflow update function. - Outcome *v17.Outcome `protobuf:"bytes,2,opt,name=outcome,proto3" json:"outcome,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache +func (x *HistoryEvent) GetChildWorkflowExecutionCanceledEventAttributes() *ChildWorkflowExecutionCanceledEventAttributes { + if x != nil { + if x, ok := x.Attributes.(*HistoryEvent_ChildWorkflowExecutionCanceledEventAttributes); ok { + return x.ChildWorkflowExecutionCanceledEventAttributes + } + } + return nil } -func (x *WorkflowExecutionUpdateCompletedEventAttributes) Reset() { - *x = WorkflowExecutionUpdateCompletedEventAttributes{} - mi := &file_temporal_api_history_v1_message_proto_msgTypes[45] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *HistoryEvent) GetChildWorkflowExecutionTimedOutEventAttributes() *ChildWorkflowExecutionTimedOutEventAttributes { + if x != nil { + if x, ok := x.Attributes.(*HistoryEvent_ChildWorkflowExecutionTimedOutEventAttributes); ok { + return x.ChildWorkflowExecutionTimedOutEventAttributes + } + } + return nil } -func (x *WorkflowExecutionUpdateCompletedEventAttributes) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *HistoryEvent) GetChildWorkflowExecutionTerminatedEventAttributes() *ChildWorkflowExecutionTerminatedEventAttributes { + if x != nil { + if x, ok := x.Attributes.(*HistoryEvent_ChildWorkflowExecutionTerminatedEventAttributes); ok { + return x.ChildWorkflowExecutionTerminatedEventAttributes + } + } + return nil } -func (*WorkflowExecutionUpdateCompletedEventAttributes) ProtoMessage() {} - -func (x *WorkflowExecutionUpdateCompletedEventAttributes) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_history_v1_message_proto_msgTypes[45] +func (x *HistoryEvent) GetSignalExternalWorkflowExecutionInitiatedEventAttributes() *SignalExternalWorkflowExecutionInitiatedEventAttributes { if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) + if x, ok := x.Attributes.(*HistoryEvent_SignalExternalWorkflowExecutionInitiatedEventAttributes); ok { + return x.SignalExternalWorkflowExecutionInitiatedEventAttributes } - return ms } - return mi.MessageOf(x) + return nil } -// Deprecated: Use WorkflowExecutionUpdateCompletedEventAttributes.ProtoReflect.Descriptor instead. -func (*WorkflowExecutionUpdateCompletedEventAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_history_v1_message_proto_rawDescGZIP(), []int{45} +func (x *HistoryEvent) GetSignalExternalWorkflowExecutionFailedEventAttributes() *SignalExternalWorkflowExecutionFailedEventAttributes { + if x != nil { + if x, ok := x.Attributes.(*HistoryEvent_SignalExternalWorkflowExecutionFailedEventAttributes); ok { + return x.SignalExternalWorkflowExecutionFailedEventAttributes + } + } + return nil } -func (x *WorkflowExecutionUpdateCompletedEventAttributes) GetMeta() *v17.Meta { +func (x *HistoryEvent) GetExternalWorkflowExecutionSignaledEventAttributes() *ExternalWorkflowExecutionSignaledEventAttributes { if x != nil { - return x.Meta + if x, ok := x.Attributes.(*HistoryEvent_ExternalWorkflowExecutionSignaledEventAttributes); ok { + return x.ExternalWorkflowExecutionSignaledEventAttributes + } } return nil } -func (x *WorkflowExecutionUpdateCompletedEventAttributes) GetAcceptedEventId() int64 { +func (x *HistoryEvent) GetUpsertWorkflowSearchAttributesEventAttributes() *UpsertWorkflowSearchAttributesEventAttributes { if x != nil { - return x.AcceptedEventId + if x, ok := x.Attributes.(*HistoryEvent_UpsertWorkflowSearchAttributesEventAttributes); ok { + return x.UpsertWorkflowSearchAttributesEventAttributes + } } - return 0 + return nil } -func (x *WorkflowExecutionUpdateCompletedEventAttributes) GetOutcome() *v17.Outcome { +func (x *HistoryEvent) GetWorkflowExecutionUpdateAcceptedEventAttributes() *WorkflowExecutionUpdateAcceptedEventAttributes { if x != nil { - return x.Outcome + if x, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionUpdateAcceptedEventAttributes); ok { + return x.WorkflowExecutionUpdateAcceptedEventAttributes + } } return nil } -type WorkflowExecutionUpdateRejectedEventAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The instance ID of the update protocol that generated this event. - ProtocolInstanceId string `protobuf:"bytes,1,opt,name=protocol_instance_id,json=protocolInstanceId,proto3" json:"protocol_instance_id,omitempty"` - // The message ID of the original request message that initiated this - // update. Needed so that the worker can recreate and deliver that same - // message as part of replay. - RejectedRequestMessageId string `protobuf:"bytes,2,opt,name=rejected_request_message_id,json=rejectedRequestMessageId,proto3" json:"rejected_request_message_id,omitempty"` - // The event ID used to sequence the original request message. - RejectedRequestSequencingEventId int64 `protobuf:"varint,3,opt,name=rejected_request_sequencing_event_id,json=rejectedRequestSequencingEventId,proto3" json:"rejected_request_sequencing_event_id,omitempty"` - // The message payload of the original request message that initiated this - // update. - RejectedRequest *v17.Request `protobuf:"bytes,4,opt,name=rejected_request,json=rejectedRequest,proto3" json:"rejected_request,omitempty"` - // The cause of rejection. - Failure *v13.Failure `protobuf:"bytes,5,opt,name=failure,proto3" json:"failure,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache +func (x *HistoryEvent) GetWorkflowExecutionUpdateRejectedEventAttributes() *WorkflowExecutionUpdateRejectedEventAttributes { + if x != nil { + if x, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionUpdateRejectedEventAttributes); ok { + return x.WorkflowExecutionUpdateRejectedEventAttributes + } + } + return nil } -func (x *WorkflowExecutionUpdateRejectedEventAttributes) Reset() { - *x = WorkflowExecutionUpdateRejectedEventAttributes{} - mi := &file_temporal_api_history_v1_message_proto_msgTypes[46] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *HistoryEvent) GetWorkflowExecutionUpdateCompletedEventAttributes() *WorkflowExecutionUpdateCompletedEventAttributes { + if x != nil { + if x, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionUpdateCompletedEventAttributes); ok { + return x.WorkflowExecutionUpdateCompletedEventAttributes + } + } + return nil } -func (x *WorkflowExecutionUpdateRejectedEventAttributes) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *HistoryEvent) GetWorkflowPropertiesModifiedExternallyEventAttributes() *WorkflowPropertiesModifiedExternallyEventAttributes { + if x != nil { + if x, ok := x.Attributes.(*HistoryEvent_WorkflowPropertiesModifiedExternallyEventAttributes); ok { + return x.WorkflowPropertiesModifiedExternallyEventAttributes + } + } + return nil } -func (*WorkflowExecutionUpdateRejectedEventAttributes) ProtoMessage() {} +func (x *HistoryEvent) GetActivityPropertiesModifiedExternallyEventAttributes() *ActivityPropertiesModifiedExternallyEventAttributes { + if x != nil { + if x, ok := x.Attributes.(*HistoryEvent_ActivityPropertiesModifiedExternallyEventAttributes); ok { + return x.ActivityPropertiesModifiedExternallyEventAttributes + } + } + return nil +} -func (x *WorkflowExecutionUpdateRejectedEventAttributes) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_history_v1_message_proto_msgTypes[46] +func (x *HistoryEvent) GetWorkflowPropertiesModifiedEventAttributes() *WorkflowPropertiesModifiedEventAttributes { if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) + if x, ok := x.Attributes.(*HistoryEvent_WorkflowPropertiesModifiedEventAttributes); ok { + return x.WorkflowPropertiesModifiedEventAttributes } - return ms } - return mi.MessageOf(x) + return nil } -// Deprecated: Use WorkflowExecutionUpdateRejectedEventAttributes.ProtoReflect.Descriptor instead. -func (*WorkflowExecutionUpdateRejectedEventAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_history_v1_message_proto_rawDescGZIP(), []int{46} +func (x *HistoryEvent) GetWorkflowExecutionUpdateAdmittedEventAttributes() *WorkflowExecutionUpdateAdmittedEventAttributes { + if x != nil { + if x, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionUpdateAdmittedEventAttributes); ok { + return x.WorkflowExecutionUpdateAdmittedEventAttributes + } + } + return nil } -func (x *WorkflowExecutionUpdateRejectedEventAttributes) GetProtocolInstanceId() string { +func (x *HistoryEvent) GetNexusOperationScheduledEventAttributes() *NexusOperationScheduledEventAttributes { if x != nil { - return x.ProtocolInstanceId + if x, ok := x.Attributes.(*HistoryEvent_NexusOperationScheduledEventAttributes); ok { + return x.NexusOperationScheduledEventAttributes + } } - return "" + return nil } -func (x *WorkflowExecutionUpdateRejectedEventAttributes) GetRejectedRequestMessageId() string { +func (x *HistoryEvent) GetNexusOperationStartedEventAttributes() *NexusOperationStartedEventAttributes { if x != nil { - return x.RejectedRequestMessageId + if x, ok := x.Attributes.(*HistoryEvent_NexusOperationStartedEventAttributes); ok { + return x.NexusOperationStartedEventAttributes + } } - return "" + return nil } -func (x *WorkflowExecutionUpdateRejectedEventAttributes) GetRejectedRequestSequencingEventId() int64 { +func (x *HistoryEvent) GetNexusOperationCompletedEventAttributes() *NexusOperationCompletedEventAttributes { if x != nil { - return x.RejectedRequestSequencingEventId + if x, ok := x.Attributes.(*HistoryEvent_NexusOperationCompletedEventAttributes); ok { + return x.NexusOperationCompletedEventAttributes + } } - return 0 + return nil } -func (x *WorkflowExecutionUpdateRejectedEventAttributes) GetRejectedRequest() *v17.Request { +func (x *HistoryEvent) GetNexusOperationFailedEventAttributes() *NexusOperationFailedEventAttributes { if x != nil { - return x.RejectedRequest + if x, ok := x.Attributes.(*HistoryEvent_NexusOperationFailedEventAttributes); ok { + return x.NexusOperationFailedEventAttributes + } } return nil } -func (x *WorkflowExecutionUpdateRejectedEventAttributes) GetFailure() *v13.Failure { +func (x *HistoryEvent) GetNexusOperationCanceledEventAttributes() *NexusOperationCanceledEventAttributes { if x != nil { - return x.Failure + if x, ok := x.Attributes.(*HistoryEvent_NexusOperationCanceledEventAttributes); ok { + return x.NexusOperationCanceledEventAttributes + } } return nil } -type WorkflowExecutionUpdateAdmittedEventAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The update request associated with this event. - Request *v17.Request `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"` - // An explanation of why this event was written to history. - Origin v12.UpdateAdmittedEventOrigin `protobuf:"varint,2,opt,name=origin,proto3,enum=temporal.api.enums.v1.UpdateAdmittedEventOrigin" json:"origin,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache +func (x *HistoryEvent) GetNexusOperationTimedOutEventAttributes() *NexusOperationTimedOutEventAttributes { + if x != nil { + if x, ok := x.Attributes.(*HistoryEvent_NexusOperationTimedOutEventAttributes); ok { + return x.NexusOperationTimedOutEventAttributes + } + } + return nil } -func (x *WorkflowExecutionUpdateAdmittedEventAttributes) Reset() { - *x = WorkflowExecutionUpdateAdmittedEventAttributes{} - mi := &file_temporal_api_history_v1_message_proto_msgTypes[47] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *HistoryEvent) GetNexusOperationCancelRequestedEventAttributes() *NexusOperationCancelRequestedEventAttributes { + if x != nil { + if x, ok := x.Attributes.(*HistoryEvent_NexusOperationCancelRequestedEventAttributes); ok { + return x.NexusOperationCancelRequestedEventAttributes + } + } + return nil } -func (x *WorkflowExecutionUpdateAdmittedEventAttributes) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *HistoryEvent) GetWorkflowExecutionOptionsUpdatedEventAttributes() *WorkflowExecutionOptionsUpdatedEventAttributes { + if x != nil { + if x, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionOptionsUpdatedEventAttributes); ok { + return x.WorkflowExecutionOptionsUpdatedEventAttributes + } + } + return nil } -func (*WorkflowExecutionUpdateAdmittedEventAttributes) ProtoMessage() {} - -func (x *WorkflowExecutionUpdateAdmittedEventAttributes) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_history_v1_message_proto_msgTypes[47] +func (x *HistoryEvent) GetNexusOperationCancelRequestCompletedEventAttributes() *NexusOperationCancelRequestCompletedEventAttributes { if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) + if x, ok := x.Attributes.(*HistoryEvent_NexusOperationCancelRequestCompletedEventAttributes); ok { + return x.NexusOperationCancelRequestCompletedEventAttributes } - return ms } - return mi.MessageOf(x) + return nil } -// Deprecated: Use WorkflowExecutionUpdateAdmittedEventAttributes.ProtoReflect.Descriptor instead. -func (*WorkflowExecutionUpdateAdmittedEventAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_history_v1_message_proto_rawDescGZIP(), []int{47} +func (x *HistoryEvent) GetNexusOperationCancelRequestFailedEventAttributes() *NexusOperationCancelRequestFailedEventAttributes { + if x != nil { + if x, ok := x.Attributes.(*HistoryEvent_NexusOperationCancelRequestFailedEventAttributes); ok { + return x.NexusOperationCancelRequestFailedEventAttributes + } + } + return nil } -func (x *WorkflowExecutionUpdateAdmittedEventAttributes) GetRequest() *v17.Request { +func (x *HistoryEvent) GetWorkflowExecutionPausedEventAttributes() *WorkflowExecutionPausedEventAttributes { if x != nil { - return x.Request + if x, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionPausedEventAttributes); ok { + return x.WorkflowExecutionPausedEventAttributes + } } return nil } -func (x *WorkflowExecutionUpdateAdmittedEventAttributes) GetOrigin() v12.UpdateAdmittedEventOrigin { +func (x *HistoryEvent) GetWorkflowExecutionUnpausedEventAttributes() *WorkflowExecutionUnpausedEventAttributes { if x != nil { - return x.Origin + if x, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionUnpausedEventAttributes); ok { + return x.WorkflowExecutionUnpausedEventAttributes + } } - return v12.UpdateAdmittedEventOrigin(0) + return nil } -// Attributes for an event marking that a workflow execution was paused. -type WorkflowExecutionPausedEventAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The identity of the client who paused the workflow execution. - Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` - // The reason for pausing the workflow execution. - Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` - // The request ID of the request that paused the workflow execution. - RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache +func (x *HistoryEvent) SetEventId(v int64) { + x.EventId = v } -func (x *WorkflowExecutionPausedEventAttributes) Reset() { - *x = WorkflowExecutionPausedEventAttributes{} - mi := &file_temporal_api_history_v1_message_proto_msgTypes[48] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *HistoryEvent) SetEventTime(v *timestamppb.Timestamp) { + x.EventTime = v } -func (x *WorkflowExecutionPausedEventAttributes) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *HistoryEvent) SetEventType(v v12.EventType) { + x.EventType = v } -func (*WorkflowExecutionPausedEventAttributes) ProtoMessage() {} +func (x *HistoryEvent) SetVersion(v int64) { + x.Version = v +} -func (x *WorkflowExecutionPausedEventAttributes) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_history_v1_message_proto_msgTypes[48] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (x *HistoryEvent) SetTaskId(v int64) { + x.TaskId = v } -// Deprecated: Use WorkflowExecutionPausedEventAttributes.ProtoReflect.Descriptor instead. -func (*WorkflowExecutionPausedEventAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_history_v1_message_proto_rawDescGZIP(), []int{48} +func (x *HistoryEvent) SetWorkerMayIgnore(v bool) { + x.WorkerMayIgnore = v } -func (x *WorkflowExecutionPausedEventAttributes) GetIdentity() string { - if x != nil { - return x.Identity - } - return "" +func (x *HistoryEvent) SetUserMetadata(v *v16.UserMetadata) { + x.UserMetadata = v } -func (x *WorkflowExecutionPausedEventAttributes) GetReason() string { - if x != nil { - return x.Reason +func (x *HistoryEvent) SetLinks(v []*v1.Link) { + x.Links = v +} + +func (x *HistoryEvent) SetWorkflowExecutionStartedEventAttributes(v *WorkflowExecutionStartedEventAttributes) { + if v == nil { + x.Attributes = nil + return } - return "" + x.Attributes = &HistoryEvent_WorkflowExecutionStartedEventAttributes{v} } -func (x *WorkflowExecutionPausedEventAttributes) GetRequestId() string { - if x != nil { - return x.RequestId +func (x *HistoryEvent) SetWorkflowExecutionCompletedEventAttributes(v *WorkflowExecutionCompletedEventAttributes) { + if v == nil { + x.Attributes = nil + return } - return "" + x.Attributes = &HistoryEvent_WorkflowExecutionCompletedEventAttributes{v} } -// Attributes for an event marking that a workflow execution was unpaused. -type WorkflowExecutionUnpausedEventAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The identity of the client who unpaused the workflow execution. - Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` - // The reason for unpausing the workflow execution. - Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` - // The request ID of the request that unpaused the workflow execution. - RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache +func (x *HistoryEvent) SetWorkflowExecutionFailedEventAttributes(v *WorkflowExecutionFailedEventAttributes) { + if v == nil { + x.Attributes = nil + return + } + x.Attributes = &HistoryEvent_WorkflowExecutionFailedEventAttributes{v} } -func (x *WorkflowExecutionUnpausedEventAttributes) Reset() { - *x = WorkflowExecutionUnpausedEventAttributes{} - mi := &file_temporal_api_history_v1_message_proto_msgTypes[49] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *HistoryEvent) SetWorkflowExecutionTimedOutEventAttributes(v *WorkflowExecutionTimedOutEventAttributes) { + if v == nil { + x.Attributes = nil + return + } + x.Attributes = &HistoryEvent_WorkflowExecutionTimedOutEventAttributes{v} } -func (x *WorkflowExecutionUnpausedEventAttributes) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *HistoryEvent) SetWorkflowTaskScheduledEventAttributes(v *WorkflowTaskScheduledEventAttributes) { + if v == nil { + x.Attributes = nil + return + } + x.Attributes = &HistoryEvent_WorkflowTaskScheduledEventAttributes{v} } -func (*WorkflowExecutionUnpausedEventAttributes) ProtoMessage() {} +func (x *HistoryEvent) SetWorkflowTaskStartedEventAttributes(v *WorkflowTaskStartedEventAttributes) { + if v == nil { + x.Attributes = nil + return + } + x.Attributes = &HistoryEvent_WorkflowTaskStartedEventAttributes{v} +} -func (x *WorkflowExecutionUnpausedEventAttributes) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_history_v1_message_proto_msgTypes[49] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *HistoryEvent) SetWorkflowTaskCompletedEventAttributes(v *WorkflowTaskCompletedEventAttributes) { + if v == nil { + x.Attributes = nil + return } - return mi.MessageOf(x) + x.Attributes = &HistoryEvent_WorkflowTaskCompletedEventAttributes{v} } -// Deprecated: Use WorkflowExecutionUnpausedEventAttributes.ProtoReflect.Descriptor instead. -func (*WorkflowExecutionUnpausedEventAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_history_v1_message_proto_rawDescGZIP(), []int{49} +func (x *HistoryEvent) SetWorkflowTaskTimedOutEventAttributes(v *WorkflowTaskTimedOutEventAttributes) { + if v == nil { + x.Attributes = nil + return + } + x.Attributes = &HistoryEvent_WorkflowTaskTimedOutEventAttributes{v} } -func (x *WorkflowExecutionUnpausedEventAttributes) GetIdentity() string { - if x != nil { - return x.Identity +func (x *HistoryEvent) SetWorkflowTaskFailedEventAttributes(v *WorkflowTaskFailedEventAttributes) { + if v == nil { + x.Attributes = nil + return } - return "" + x.Attributes = &HistoryEvent_WorkflowTaskFailedEventAttributes{v} } -func (x *WorkflowExecutionUnpausedEventAttributes) GetReason() string { - if x != nil { - return x.Reason +func (x *HistoryEvent) SetActivityTaskScheduledEventAttributes(v *ActivityTaskScheduledEventAttributes) { + if v == nil { + x.Attributes = nil + return } - return "" + x.Attributes = &HistoryEvent_ActivityTaskScheduledEventAttributes{v} } -func (x *WorkflowExecutionUnpausedEventAttributes) GetRequestId() string { - if x != nil { - return x.RequestId +func (x *HistoryEvent) SetActivityTaskStartedEventAttributes(v *ActivityTaskStartedEventAttributes) { + if v == nil { + x.Attributes = nil + return } - return "" + x.Attributes = &HistoryEvent_ActivityTaskStartedEventAttributes{v} } -// Event marking that an operation was scheduled by a workflow via the ScheduleNexusOperation command. -type NexusOperationScheduledEventAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Endpoint name, must exist in the endpoint registry. - Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` - // Service name. - Service string `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"` - // Operation name. - Operation string `protobuf:"bytes,3,opt,name=operation,proto3" json:"operation,omitempty"` - // Input for the operation. The server converts this into Nexus request content and the appropriate content headers - // internally when sending the StartOperation request. On the handler side, if it is also backed by Temporal, the - // content is transformed back to the original Payload stored in this event. - Input *v1.Payload `protobuf:"bytes,4,opt,name=input,proto3" json:"input,omitempty"` - // Schedule-to-close timeout for this operation. - // Indicates how long the caller is willing to wait for operation completion. - // Calls are retried internally by the server. - // (-- api-linter: core::0140::prepositions=disabled - // - // aip.dev/not-precedent: "to" is used to indicate interval. --) - ScheduleToCloseTimeout *durationpb.Duration `protobuf:"bytes,5,opt,name=schedule_to_close_timeout,json=scheduleToCloseTimeout,proto3" json:"schedule_to_close_timeout,omitempty"` - // Header to attach to the Nexus request. Note these headers are not the same as Temporal headers on internal - // activities and child workflows, these are transmitted to Nexus operations that may be external and are not - // traditional payloads. - NexusHeader map[string]string `protobuf:"bytes,6,rep,name=nexus_header,json=nexusHeader,proto3" json:"nexus_header,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` - // The `WORKFLOW_TASK_COMPLETED` event that the corresponding ScheduleNexusOperation command was reported with. - WorkflowTaskCompletedEventId int64 `protobuf:"varint,7,opt,name=workflow_task_completed_event_id,json=workflowTaskCompletedEventId,proto3" json:"workflow_task_completed_event_id,omitempty"` - // A unique ID generated by the history service upon creation of this event. - // The ID will be transmitted with all nexus StartOperation requests and is used as an idempotentency key. - RequestId string `protobuf:"bytes,8,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` - // Endpoint ID as resolved in the endpoint registry at the time this event was generated. - // This is stored on the event and used internally by the server in case the endpoint is renamed from the time the - // event was originally scheduled. - EndpointId string `protobuf:"bytes,9,opt,name=endpoint_id,json=endpointId,proto3" json:"endpoint_id,omitempty"` - // Schedule-to-start timeout for this operation. - // See ScheduleNexusOperationCommandAttributes.schedule_to_start_timeout for details. - // (-- api-linter: core::0140::prepositions=disabled - // - // aip.dev/not-precedent: "to" is used to indicate interval. --) - ScheduleToStartTimeout *durationpb.Duration `protobuf:"bytes,10,opt,name=schedule_to_start_timeout,json=scheduleToStartTimeout,proto3" json:"schedule_to_start_timeout,omitempty"` - // Start-to-close timeout for this operation. - // See ScheduleNexusOperationCommandAttributes.start_to_close_timeout for details. - // (-- api-linter: core::0140::prepositions=disabled - // - // aip.dev/not-precedent: "to" is used to indicate interval. --) - StartToCloseTimeout *durationpb.Duration `protobuf:"bytes,11,opt,name=start_to_close_timeout,json=startToCloseTimeout,proto3" json:"start_to_close_timeout,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache +func (x *HistoryEvent) SetActivityTaskCompletedEventAttributes(v *ActivityTaskCompletedEventAttributes) { + if v == nil { + x.Attributes = nil + return + } + x.Attributes = &HistoryEvent_ActivityTaskCompletedEventAttributes{v} } -func (x *NexusOperationScheduledEventAttributes) Reset() { - *x = NexusOperationScheduledEventAttributes{} - mi := &file_temporal_api_history_v1_message_proto_msgTypes[50] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *HistoryEvent) SetActivityTaskFailedEventAttributes(v *ActivityTaskFailedEventAttributes) { + if v == nil { + x.Attributes = nil + return + } + x.Attributes = &HistoryEvent_ActivityTaskFailedEventAttributes{v} } -func (x *NexusOperationScheduledEventAttributes) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *HistoryEvent) SetActivityTaskTimedOutEventAttributes(v *ActivityTaskTimedOutEventAttributes) { + if v == nil { + x.Attributes = nil + return + } + x.Attributes = &HistoryEvent_ActivityTaskTimedOutEventAttributes{v} } -func (*NexusOperationScheduledEventAttributes) ProtoMessage() {} +func (x *HistoryEvent) SetTimerStartedEventAttributes(v *TimerStartedEventAttributes) { + if v == nil { + x.Attributes = nil + return + } + x.Attributes = &HistoryEvent_TimerStartedEventAttributes{v} +} -func (x *NexusOperationScheduledEventAttributes) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_history_v1_message_proto_msgTypes[50] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *HistoryEvent) SetTimerFiredEventAttributes(v *TimerFiredEventAttributes) { + if v == nil { + x.Attributes = nil + return } - return mi.MessageOf(x) + x.Attributes = &HistoryEvent_TimerFiredEventAttributes{v} } -// Deprecated: Use NexusOperationScheduledEventAttributes.ProtoReflect.Descriptor instead. -func (*NexusOperationScheduledEventAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_history_v1_message_proto_rawDescGZIP(), []int{50} +func (x *HistoryEvent) SetActivityTaskCancelRequestedEventAttributes(v *ActivityTaskCancelRequestedEventAttributes) { + if v == nil { + x.Attributes = nil + return + } + x.Attributes = &HistoryEvent_ActivityTaskCancelRequestedEventAttributes{v} } -func (x *NexusOperationScheduledEventAttributes) GetEndpoint() string { - if x != nil { - return x.Endpoint +func (x *HistoryEvent) SetActivityTaskCanceledEventAttributes(v *ActivityTaskCanceledEventAttributes) { + if v == nil { + x.Attributes = nil + return } - return "" + x.Attributes = &HistoryEvent_ActivityTaskCanceledEventAttributes{v} } -func (x *NexusOperationScheduledEventAttributes) GetService() string { - if x != nil { - return x.Service +func (x *HistoryEvent) SetTimerCanceledEventAttributes(v *TimerCanceledEventAttributes) { + if v == nil { + x.Attributes = nil + return } - return "" + x.Attributes = &HistoryEvent_TimerCanceledEventAttributes{v} } -func (x *NexusOperationScheduledEventAttributes) GetOperation() string { - if x != nil { - return x.Operation +func (x *HistoryEvent) SetMarkerRecordedEventAttributes(v *MarkerRecordedEventAttributes) { + if v == nil { + x.Attributes = nil + return } - return "" + x.Attributes = &HistoryEvent_MarkerRecordedEventAttributes{v} } -func (x *NexusOperationScheduledEventAttributes) GetInput() *v1.Payload { - if x != nil { - return x.Input +func (x *HistoryEvent) SetWorkflowExecutionSignaledEventAttributes(v *WorkflowExecutionSignaledEventAttributes) { + if v == nil { + x.Attributes = nil + return } - return nil + x.Attributes = &HistoryEvent_WorkflowExecutionSignaledEventAttributes{v} } -func (x *NexusOperationScheduledEventAttributes) GetScheduleToCloseTimeout() *durationpb.Duration { - if x != nil { - return x.ScheduleToCloseTimeout +func (x *HistoryEvent) SetWorkflowExecutionTerminatedEventAttributes(v *WorkflowExecutionTerminatedEventAttributes) { + if v == nil { + x.Attributes = nil + return } - return nil + x.Attributes = &HistoryEvent_WorkflowExecutionTerminatedEventAttributes{v} } -func (x *NexusOperationScheduledEventAttributes) GetNexusHeader() map[string]string { - if x != nil { - return x.NexusHeader +func (x *HistoryEvent) SetWorkflowExecutionCancelRequestedEventAttributes(v *WorkflowExecutionCancelRequestedEventAttributes) { + if v == nil { + x.Attributes = nil + return } - return nil + x.Attributes = &HistoryEvent_WorkflowExecutionCancelRequestedEventAttributes{v} } -func (x *NexusOperationScheduledEventAttributes) GetWorkflowTaskCompletedEventId() int64 { - if x != nil { - return x.WorkflowTaskCompletedEventId +func (x *HistoryEvent) SetWorkflowExecutionCanceledEventAttributes(v *WorkflowExecutionCanceledEventAttributes) { + if v == nil { + x.Attributes = nil + return } - return 0 + x.Attributes = &HistoryEvent_WorkflowExecutionCanceledEventAttributes{v} } -func (x *NexusOperationScheduledEventAttributes) GetRequestId() string { - if x != nil { - return x.RequestId +func (x *HistoryEvent) SetRequestCancelExternalWorkflowExecutionInitiatedEventAttributes(v *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) { + if v == nil { + x.Attributes = nil + return } - return "" + x.Attributes = &HistoryEvent_RequestCancelExternalWorkflowExecutionInitiatedEventAttributes{v} } -func (x *NexusOperationScheduledEventAttributes) GetEndpointId() string { - if x != nil { - return x.EndpointId +func (x *HistoryEvent) SetRequestCancelExternalWorkflowExecutionFailedEventAttributes(v *RequestCancelExternalWorkflowExecutionFailedEventAttributes) { + if v == nil { + x.Attributes = nil + return } - return "" + x.Attributes = &HistoryEvent_RequestCancelExternalWorkflowExecutionFailedEventAttributes{v} } -func (x *NexusOperationScheduledEventAttributes) GetScheduleToStartTimeout() *durationpb.Duration { - if x != nil { - return x.ScheduleToStartTimeout +func (x *HistoryEvent) SetExternalWorkflowExecutionCancelRequestedEventAttributes(v *ExternalWorkflowExecutionCancelRequestedEventAttributes) { + if v == nil { + x.Attributes = nil + return } - return nil + x.Attributes = &HistoryEvent_ExternalWorkflowExecutionCancelRequestedEventAttributes{v} } -func (x *NexusOperationScheduledEventAttributes) GetStartToCloseTimeout() *durationpb.Duration { - if x != nil { - return x.StartToCloseTimeout +func (x *HistoryEvent) SetWorkflowExecutionContinuedAsNewEventAttributes(v *WorkflowExecutionContinuedAsNewEventAttributes) { + if v == nil { + x.Attributes = nil + return } - return nil + x.Attributes = &HistoryEvent_WorkflowExecutionContinuedAsNewEventAttributes{v} } -// Event marking an asynchronous operation was started by the responding Nexus handler. -// If the operation completes synchronously, this event is not generated. -// In rare situations, such as request timeouts, the service may fail to record the actual start time and will fabricate -// this event upon receiving the operation completion via callback. -type NexusOperationStartedEventAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The ID of the `NEXUS_OPERATION_SCHEDULED` event this task corresponds to. - ScheduledEventId int64 `protobuf:"varint,1,opt,name=scheduled_event_id,json=scheduledEventId,proto3" json:"scheduled_event_id,omitempty"` - // The operation ID returned by the Nexus handler in the response to the StartOperation request. - // This ID is used when canceling the operation. - // - // Deprecated: Renamed to operation_token. - // - // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. - OperationId string `protobuf:"bytes,3,opt,name=operation_id,json=operationId,proto3" json:"operation_id,omitempty"` - // The request ID allocated at schedule time. - RequestId string `protobuf:"bytes,4,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` - // The operation token returned by the Nexus handler in the response to the StartOperation request. - // This token is used when canceling the operation. - OperationToken string `protobuf:"bytes,5,opt,name=operation_token,json=operationToken,proto3" json:"operation_token,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache +func (x *HistoryEvent) SetStartChildWorkflowExecutionInitiatedEventAttributes(v *StartChildWorkflowExecutionInitiatedEventAttributes) { + if v == nil { + x.Attributes = nil + return + } + x.Attributes = &HistoryEvent_StartChildWorkflowExecutionInitiatedEventAttributes{v} } -func (x *NexusOperationStartedEventAttributes) Reset() { - *x = NexusOperationStartedEventAttributes{} - mi := &file_temporal_api_history_v1_message_proto_msgTypes[51] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *HistoryEvent) SetStartChildWorkflowExecutionFailedEventAttributes(v *StartChildWorkflowExecutionFailedEventAttributes) { + if v == nil { + x.Attributes = nil + return + } + x.Attributes = &HistoryEvent_StartChildWorkflowExecutionFailedEventAttributes{v} } -func (x *NexusOperationStartedEventAttributes) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *HistoryEvent) SetChildWorkflowExecutionStartedEventAttributes(v *ChildWorkflowExecutionStartedEventAttributes) { + if v == nil { + x.Attributes = nil + return + } + x.Attributes = &HistoryEvent_ChildWorkflowExecutionStartedEventAttributes{v} } -func (*NexusOperationStartedEventAttributes) ProtoMessage() {} - -func (x *NexusOperationStartedEventAttributes) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_history_v1_message_proto_msgTypes[51] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *HistoryEvent) SetChildWorkflowExecutionCompletedEventAttributes(v *ChildWorkflowExecutionCompletedEventAttributes) { + if v == nil { + x.Attributes = nil + return } - return mi.MessageOf(x) + x.Attributes = &HistoryEvent_ChildWorkflowExecutionCompletedEventAttributes{v} } -// Deprecated: Use NexusOperationStartedEventAttributes.ProtoReflect.Descriptor instead. -func (*NexusOperationStartedEventAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_history_v1_message_proto_rawDescGZIP(), []int{51} +func (x *HistoryEvent) SetChildWorkflowExecutionFailedEventAttributes(v *ChildWorkflowExecutionFailedEventAttributes) { + if v == nil { + x.Attributes = nil + return + } + x.Attributes = &HistoryEvent_ChildWorkflowExecutionFailedEventAttributes{v} } -func (x *NexusOperationStartedEventAttributes) GetScheduledEventId() int64 { - if x != nil { - return x.ScheduledEventId +func (x *HistoryEvent) SetChildWorkflowExecutionCanceledEventAttributes(v *ChildWorkflowExecutionCanceledEventAttributes) { + if v == nil { + x.Attributes = nil + return } - return 0 + x.Attributes = &HistoryEvent_ChildWorkflowExecutionCanceledEventAttributes{v} } -// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. -func (x *NexusOperationStartedEventAttributes) GetOperationId() string { - if x != nil { - return x.OperationId +func (x *HistoryEvent) SetChildWorkflowExecutionTimedOutEventAttributes(v *ChildWorkflowExecutionTimedOutEventAttributes) { + if v == nil { + x.Attributes = nil + return } - return "" + x.Attributes = &HistoryEvent_ChildWorkflowExecutionTimedOutEventAttributes{v} } -func (x *NexusOperationStartedEventAttributes) GetRequestId() string { - if x != nil { - return x.RequestId +func (x *HistoryEvent) SetChildWorkflowExecutionTerminatedEventAttributes(v *ChildWorkflowExecutionTerminatedEventAttributes) { + if v == nil { + x.Attributes = nil + return } - return "" + x.Attributes = &HistoryEvent_ChildWorkflowExecutionTerminatedEventAttributes{v} } -func (x *NexusOperationStartedEventAttributes) GetOperationToken() string { - if x != nil { - return x.OperationToken +func (x *HistoryEvent) SetSignalExternalWorkflowExecutionInitiatedEventAttributes(v *SignalExternalWorkflowExecutionInitiatedEventAttributes) { + if v == nil { + x.Attributes = nil + return } - return "" + x.Attributes = &HistoryEvent_SignalExternalWorkflowExecutionInitiatedEventAttributes{v} } -// Nexus operation completed successfully. -type NexusOperationCompletedEventAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The ID of the `NEXUS_OPERATION_SCHEDULED` event. Uniquely identifies this operation. - ScheduledEventId int64 `protobuf:"varint,1,opt,name=scheduled_event_id,json=scheduledEventId,proto3" json:"scheduled_event_id,omitempty"` - // Serialized result of the Nexus operation. The response of the Nexus handler. - // Delivered either via a completion callback or as a response to a synchronous operation. - Result *v1.Payload `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"` - // The request ID allocated at schedule time. - RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache +func (x *HistoryEvent) SetSignalExternalWorkflowExecutionFailedEventAttributes(v *SignalExternalWorkflowExecutionFailedEventAttributes) { + if v == nil { + x.Attributes = nil + return + } + x.Attributes = &HistoryEvent_SignalExternalWorkflowExecutionFailedEventAttributes{v} } -func (x *NexusOperationCompletedEventAttributes) Reset() { - *x = NexusOperationCompletedEventAttributes{} - mi := &file_temporal_api_history_v1_message_proto_msgTypes[52] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *HistoryEvent) SetExternalWorkflowExecutionSignaledEventAttributes(v *ExternalWorkflowExecutionSignaledEventAttributes) { + if v == nil { + x.Attributes = nil + return + } + x.Attributes = &HistoryEvent_ExternalWorkflowExecutionSignaledEventAttributes{v} } -func (x *NexusOperationCompletedEventAttributes) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *HistoryEvent) SetUpsertWorkflowSearchAttributesEventAttributes(v *UpsertWorkflowSearchAttributesEventAttributes) { + if v == nil { + x.Attributes = nil + return + } + x.Attributes = &HistoryEvent_UpsertWorkflowSearchAttributesEventAttributes{v} } -func (*NexusOperationCompletedEventAttributes) ProtoMessage() {} - -func (x *NexusOperationCompletedEventAttributes) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_history_v1_message_proto_msgTypes[52] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *HistoryEvent) SetWorkflowExecutionUpdateAcceptedEventAttributes(v *WorkflowExecutionUpdateAcceptedEventAttributes) { + if v == nil { + x.Attributes = nil + return } - return mi.MessageOf(x) + x.Attributes = &HistoryEvent_WorkflowExecutionUpdateAcceptedEventAttributes{v} } -// Deprecated: Use NexusOperationCompletedEventAttributes.ProtoReflect.Descriptor instead. -func (*NexusOperationCompletedEventAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_history_v1_message_proto_rawDescGZIP(), []int{52} +func (x *HistoryEvent) SetWorkflowExecutionUpdateRejectedEventAttributes(v *WorkflowExecutionUpdateRejectedEventAttributes) { + if v == nil { + x.Attributes = nil + return + } + x.Attributes = &HistoryEvent_WorkflowExecutionUpdateRejectedEventAttributes{v} } -func (x *NexusOperationCompletedEventAttributes) GetScheduledEventId() int64 { - if x != nil { - return x.ScheduledEventId +func (x *HistoryEvent) SetWorkflowExecutionUpdateCompletedEventAttributes(v *WorkflowExecutionUpdateCompletedEventAttributes) { + if v == nil { + x.Attributes = nil + return } - return 0 + x.Attributes = &HistoryEvent_WorkflowExecutionUpdateCompletedEventAttributes{v} } -func (x *NexusOperationCompletedEventAttributes) GetResult() *v1.Payload { - if x != nil { - return x.Result +func (x *HistoryEvent) SetWorkflowPropertiesModifiedExternallyEventAttributes(v *WorkflowPropertiesModifiedExternallyEventAttributes) { + if v == nil { + x.Attributes = nil + return } - return nil + x.Attributes = &HistoryEvent_WorkflowPropertiesModifiedExternallyEventAttributes{v} } -func (x *NexusOperationCompletedEventAttributes) GetRequestId() string { - if x != nil { - return x.RequestId +func (x *HistoryEvent) SetActivityPropertiesModifiedExternallyEventAttributes(v *ActivityPropertiesModifiedExternallyEventAttributes) { + if v == nil { + x.Attributes = nil + return } - return "" + x.Attributes = &HistoryEvent_ActivityPropertiesModifiedExternallyEventAttributes{v} } -// Nexus operation failed. -type NexusOperationFailedEventAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The ID of the `NEXUS_OPERATION_SCHEDULED` event. Uniquely identifies this operation. - ScheduledEventId int64 `protobuf:"varint,1,opt,name=scheduled_event_id,json=scheduledEventId,proto3" json:"scheduled_event_id,omitempty"` - // Failure details. A NexusOperationFailureInfo wrapping an ApplicationFailureInfo. - Failure *v13.Failure `protobuf:"bytes,2,opt,name=failure,proto3" json:"failure,omitempty"` - // The request ID allocated at schedule time. - RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache +func (x *HistoryEvent) SetWorkflowPropertiesModifiedEventAttributes(v *WorkflowPropertiesModifiedEventAttributes) { + if v == nil { + x.Attributes = nil + return + } + x.Attributes = &HistoryEvent_WorkflowPropertiesModifiedEventAttributes{v} } -func (x *NexusOperationFailedEventAttributes) Reset() { - *x = NexusOperationFailedEventAttributes{} - mi := &file_temporal_api_history_v1_message_proto_msgTypes[53] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *HistoryEvent) SetWorkflowExecutionUpdateAdmittedEventAttributes(v *WorkflowExecutionUpdateAdmittedEventAttributes) { + if v == nil { + x.Attributes = nil + return + } + x.Attributes = &HistoryEvent_WorkflowExecutionUpdateAdmittedEventAttributes{v} } -func (x *NexusOperationFailedEventAttributes) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *HistoryEvent) SetNexusOperationScheduledEventAttributes(v *NexusOperationScheduledEventAttributes) { + if v == nil { + x.Attributes = nil + return + } + x.Attributes = &HistoryEvent_NexusOperationScheduledEventAttributes{v} } -func (*NexusOperationFailedEventAttributes) ProtoMessage() {} - -func (x *NexusOperationFailedEventAttributes) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_history_v1_message_proto_msgTypes[53] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *HistoryEvent) SetNexusOperationStartedEventAttributes(v *NexusOperationStartedEventAttributes) { + if v == nil { + x.Attributes = nil + return } - return mi.MessageOf(x) + x.Attributes = &HistoryEvent_NexusOperationStartedEventAttributes{v} } -// Deprecated: Use NexusOperationFailedEventAttributes.ProtoReflect.Descriptor instead. -func (*NexusOperationFailedEventAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_history_v1_message_proto_rawDescGZIP(), []int{53} +func (x *HistoryEvent) SetNexusOperationCompletedEventAttributes(v *NexusOperationCompletedEventAttributes) { + if v == nil { + x.Attributes = nil + return + } + x.Attributes = &HistoryEvent_NexusOperationCompletedEventAttributes{v} } -func (x *NexusOperationFailedEventAttributes) GetScheduledEventId() int64 { - if x != nil { - return x.ScheduledEventId +func (x *HistoryEvent) SetNexusOperationFailedEventAttributes(v *NexusOperationFailedEventAttributes) { + if v == nil { + x.Attributes = nil + return } - return 0 + x.Attributes = &HistoryEvent_NexusOperationFailedEventAttributes{v} } -func (x *NexusOperationFailedEventAttributes) GetFailure() *v13.Failure { - if x != nil { - return x.Failure +func (x *HistoryEvent) SetNexusOperationCanceledEventAttributes(v *NexusOperationCanceledEventAttributes) { + if v == nil { + x.Attributes = nil + return } - return nil + x.Attributes = &HistoryEvent_NexusOperationCanceledEventAttributes{v} } -func (x *NexusOperationFailedEventAttributes) GetRequestId() string { - if x != nil { - return x.RequestId +func (x *HistoryEvent) SetNexusOperationTimedOutEventAttributes(v *NexusOperationTimedOutEventAttributes) { + if v == nil { + x.Attributes = nil + return } - return "" + x.Attributes = &HistoryEvent_NexusOperationTimedOutEventAttributes{v} } -// Nexus operation timed out. -type NexusOperationTimedOutEventAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The ID of the `NEXUS_OPERATION_SCHEDULED` event. Uniquely identifies this operation. - ScheduledEventId int64 `protobuf:"varint,1,opt,name=scheduled_event_id,json=scheduledEventId,proto3" json:"scheduled_event_id,omitempty"` - // Failure details. A NexusOperationFailureInfo wrapping a CanceledFailureInfo. - Failure *v13.Failure `protobuf:"bytes,2,opt,name=failure,proto3" json:"failure,omitempty"` - // The request ID allocated at schedule time. - RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache +func (x *HistoryEvent) SetNexusOperationCancelRequestedEventAttributes(v *NexusOperationCancelRequestedEventAttributes) { + if v == nil { + x.Attributes = nil + return + } + x.Attributes = &HistoryEvent_NexusOperationCancelRequestedEventAttributes{v} } -func (x *NexusOperationTimedOutEventAttributes) Reset() { - *x = NexusOperationTimedOutEventAttributes{} - mi := &file_temporal_api_history_v1_message_proto_msgTypes[54] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *HistoryEvent) SetWorkflowExecutionOptionsUpdatedEventAttributes(v *WorkflowExecutionOptionsUpdatedEventAttributes) { + if v == nil { + x.Attributes = nil + return + } + x.Attributes = &HistoryEvent_WorkflowExecutionOptionsUpdatedEventAttributes{v} } -func (x *NexusOperationTimedOutEventAttributes) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *HistoryEvent) SetNexusOperationCancelRequestCompletedEventAttributes(v *NexusOperationCancelRequestCompletedEventAttributes) { + if v == nil { + x.Attributes = nil + return + } + x.Attributes = &HistoryEvent_NexusOperationCancelRequestCompletedEventAttributes{v} } -func (*NexusOperationTimedOutEventAttributes) ProtoMessage() {} +func (x *HistoryEvent) SetNexusOperationCancelRequestFailedEventAttributes(v *NexusOperationCancelRequestFailedEventAttributes) { + if v == nil { + x.Attributes = nil + return + } + x.Attributes = &HistoryEvent_NexusOperationCancelRequestFailedEventAttributes{v} +} -func (x *NexusOperationTimedOutEventAttributes) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_history_v1_message_proto_msgTypes[54] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *HistoryEvent) SetWorkflowExecutionPausedEventAttributes(v *WorkflowExecutionPausedEventAttributes) { + if v == nil { + x.Attributes = nil + return } - return mi.MessageOf(x) + x.Attributes = &HistoryEvent_WorkflowExecutionPausedEventAttributes{v} } -// Deprecated: Use NexusOperationTimedOutEventAttributes.ProtoReflect.Descriptor instead. -func (*NexusOperationTimedOutEventAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_history_v1_message_proto_rawDescGZIP(), []int{54} +func (x *HistoryEvent) SetWorkflowExecutionUnpausedEventAttributes(v *WorkflowExecutionUnpausedEventAttributes) { + if v == nil { + x.Attributes = nil + return + } + x.Attributes = &HistoryEvent_WorkflowExecutionUnpausedEventAttributes{v} } -func (x *NexusOperationTimedOutEventAttributes) GetScheduledEventId() int64 { - if x != nil { - return x.ScheduledEventId +func (x *HistoryEvent) HasEventTime() bool { + if x == nil { + return false } - return 0 + return x.EventTime != nil } -func (x *NexusOperationTimedOutEventAttributes) GetFailure() *v13.Failure { - if x != nil { - return x.Failure +func (x *HistoryEvent) HasUserMetadata() bool { + if x == nil { + return false } - return nil + return x.UserMetadata != nil } -func (x *NexusOperationTimedOutEventAttributes) GetRequestId() string { - if x != nil { - return x.RequestId +func (x *HistoryEvent) HasAttributes() bool { + if x == nil { + return false } - return "" + return x.Attributes != nil } -// Nexus operation completed as canceled. May or may not have been due to a cancellation request by the workflow. -type NexusOperationCanceledEventAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The ID of the `NEXUS_OPERATION_SCHEDULED` event. Uniquely identifies this operation. - ScheduledEventId int64 `protobuf:"varint,1,opt,name=scheduled_event_id,json=scheduledEventId,proto3" json:"scheduled_event_id,omitempty"` - // Cancellation details. - Failure *v13.Failure `protobuf:"bytes,2,opt,name=failure,proto3" json:"failure,omitempty"` - // The request ID allocated at schedule time. - RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache +func (x *HistoryEvent) HasWorkflowExecutionStartedEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionStartedEventAttributes) + return ok } -func (x *NexusOperationCanceledEventAttributes) Reset() { - *x = NexusOperationCanceledEventAttributes{} - mi := &file_temporal_api_history_v1_message_proto_msgTypes[55] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *HistoryEvent) HasWorkflowExecutionCompletedEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionCompletedEventAttributes) + return ok } -func (x *NexusOperationCanceledEventAttributes) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *HistoryEvent) HasWorkflowExecutionFailedEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionFailedEventAttributes) + return ok } -func (*NexusOperationCanceledEventAttributes) ProtoMessage() {} +func (x *HistoryEvent) HasWorkflowExecutionTimedOutEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionTimedOutEventAttributes) + return ok +} -func (x *NexusOperationCanceledEventAttributes) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_history_v1_message_proto_msgTypes[55] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *HistoryEvent) HasWorkflowTaskScheduledEventAttributes() bool { + if x == nil { + return false } - return mi.MessageOf(x) + _, ok := x.Attributes.(*HistoryEvent_WorkflowTaskScheduledEventAttributes) + return ok } -// Deprecated: Use NexusOperationCanceledEventAttributes.ProtoReflect.Descriptor instead. -func (*NexusOperationCanceledEventAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_history_v1_message_proto_rawDescGZIP(), []int{55} +func (x *HistoryEvent) HasWorkflowTaskStartedEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.Attributes.(*HistoryEvent_WorkflowTaskStartedEventAttributes) + return ok } -func (x *NexusOperationCanceledEventAttributes) GetScheduledEventId() int64 { - if x != nil { - return x.ScheduledEventId +func (x *HistoryEvent) HasWorkflowTaskCompletedEventAttributes() bool { + if x == nil { + return false } - return 0 + _, ok := x.Attributes.(*HistoryEvent_WorkflowTaskCompletedEventAttributes) + return ok } -func (x *NexusOperationCanceledEventAttributes) GetFailure() *v13.Failure { - if x != nil { - return x.Failure +func (x *HistoryEvent) HasWorkflowTaskTimedOutEventAttributes() bool { + if x == nil { + return false } - return nil + _, ok := x.Attributes.(*HistoryEvent_WorkflowTaskTimedOutEventAttributes) + return ok } -func (x *NexusOperationCanceledEventAttributes) GetRequestId() string { - if x != nil { - return x.RequestId +func (x *HistoryEvent) HasWorkflowTaskFailedEventAttributes() bool { + if x == nil { + return false } - return "" + _, ok := x.Attributes.(*HistoryEvent_WorkflowTaskFailedEventAttributes) + return ok } -type NexusOperationCancelRequestedEventAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The id of the `NEXUS_OPERATION_SCHEDULED` event this cancel request corresponds to. - ScheduledEventId int64 `protobuf:"varint,1,opt,name=scheduled_event_id,json=scheduledEventId,proto3" json:"scheduled_event_id,omitempty"` - // The `WORKFLOW_TASK_COMPLETED` event that the corresponding RequestCancelNexusOperation command was reported - // with. - WorkflowTaskCompletedEventId int64 `protobuf:"varint,2,opt,name=workflow_task_completed_event_id,json=workflowTaskCompletedEventId,proto3" json:"workflow_task_completed_event_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache +func (x *HistoryEvent) HasActivityTaskScheduledEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.Attributes.(*HistoryEvent_ActivityTaskScheduledEventAttributes) + return ok } -func (x *NexusOperationCancelRequestedEventAttributes) Reset() { - *x = NexusOperationCancelRequestedEventAttributes{} - mi := &file_temporal_api_history_v1_message_proto_msgTypes[56] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *HistoryEvent) HasActivityTaskStartedEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.Attributes.(*HistoryEvent_ActivityTaskStartedEventAttributes) + return ok } -func (x *NexusOperationCancelRequestedEventAttributes) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *HistoryEvent) HasActivityTaskCompletedEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.Attributes.(*HistoryEvent_ActivityTaskCompletedEventAttributes) + return ok } -func (*NexusOperationCancelRequestedEventAttributes) ProtoMessage() {} +func (x *HistoryEvent) HasActivityTaskFailedEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.Attributes.(*HistoryEvent_ActivityTaskFailedEventAttributes) + return ok +} -func (x *NexusOperationCancelRequestedEventAttributes) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_history_v1_message_proto_msgTypes[56] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *HistoryEvent) HasActivityTaskTimedOutEventAttributes() bool { + if x == nil { + return false } - return mi.MessageOf(x) + _, ok := x.Attributes.(*HistoryEvent_ActivityTaskTimedOutEventAttributes) + return ok } -// Deprecated: Use NexusOperationCancelRequestedEventAttributes.ProtoReflect.Descriptor instead. -func (*NexusOperationCancelRequestedEventAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_history_v1_message_proto_rawDescGZIP(), []int{56} +func (x *HistoryEvent) HasTimerStartedEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.Attributes.(*HistoryEvent_TimerStartedEventAttributes) + return ok } -func (x *NexusOperationCancelRequestedEventAttributes) GetScheduledEventId() int64 { - if x != nil { - return x.ScheduledEventId +func (x *HistoryEvent) HasTimerFiredEventAttributes() bool { + if x == nil { + return false } - return 0 + _, ok := x.Attributes.(*HistoryEvent_TimerFiredEventAttributes) + return ok } -func (x *NexusOperationCancelRequestedEventAttributes) GetWorkflowTaskCompletedEventId() int64 { - if x != nil { - return x.WorkflowTaskCompletedEventId +func (x *HistoryEvent) HasActivityTaskCancelRequestedEventAttributes() bool { + if x == nil { + return false } - return 0 + _, ok := x.Attributes.(*HistoryEvent_ActivityTaskCancelRequestedEventAttributes) + return ok } -type NexusOperationCancelRequestCompletedEventAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The ID of the `NEXUS_OPERATION_CANCEL_REQUESTED` event. - RequestedEventId int64 `protobuf:"varint,1,opt,name=requested_event_id,json=requestedEventId,proto3" json:"requested_event_id,omitempty"` - // The `WORKFLOW_TASK_COMPLETED` event that the corresponding RequestCancelNexusOperation command was reported - // with. - WorkflowTaskCompletedEventId int64 `protobuf:"varint,2,opt,name=workflow_task_completed_event_id,json=workflowTaskCompletedEventId,proto3" json:"workflow_task_completed_event_id,omitempty"` - // The id of the `NEXUS_OPERATION_SCHEDULED` event this cancel request corresponds to. - ScheduledEventId int64 `protobuf:"varint,3,opt,name=scheduled_event_id,json=scheduledEventId,proto3" json:"scheduled_event_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache +func (x *HistoryEvent) HasActivityTaskCanceledEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.Attributes.(*HistoryEvent_ActivityTaskCanceledEventAttributes) + return ok } -func (x *NexusOperationCancelRequestCompletedEventAttributes) Reset() { - *x = NexusOperationCancelRequestCompletedEventAttributes{} - mi := &file_temporal_api_history_v1_message_proto_msgTypes[57] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *HistoryEvent) HasTimerCanceledEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.Attributes.(*HistoryEvent_TimerCanceledEventAttributes) + return ok } -func (x *NexusOperationCancelRequestCompletedEventAttributes) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *HistoryEvent) HasMarkerRecordedEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.Attributes.(*HistoryEvent_MarkerRecordedEventAttributes) + return ok } -func (*NexusOperationCancelRequestCompletedEventAttributes) ProtoMessage() {} +func (x *HistoryEvent) HasWorkflowExecutionSignaledEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionSignaledEventAttributes) + return ok +} -func (x *NexusOperationCancelRequestCompletedEventAttributes) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_history_v1_message_proto_msgTypes[57] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *HistoryEvent) HasWorkflowExecutionTerminatedEventAttributes() bool { + if x == nil { + return false } - return mi.MessageOf(x) + _, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionTerminatedEventAttributes) + return ok } -// Deprecated: Use NexusOperationCancelRequestCompletedEventAttributes.ProtoReflect.Descriptor instead. -func (*NexusOperationCancelRequestCompletedEventAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_history_v1_message_proto_rawDescGZIP(), []int{57} +func (x *HistoryEvent) HasWorkflowExecutionCancelRequestedEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionCancelRequestedEventAttributes) + return ok } -func (x *NexusOperationCancelRequestCompletedEventAttributes) GetRequestedEventId() int64 { - if x != nil { - return x.RequestedEventId +func (x *HistoryEvent) HasWorkflowExecutionCanceledEventAttributes() bool { + if x == nil { + return false } - return 0 + _, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionCanceledEventAttributes) + return ok } -func (x *NexusOperationCancelRequestCompletedEventAttributes) GetWorkflowTaskCompletedEventId() int64 { - if x != nil { - return x.WorkflowTaskCompletedEventId +func (x *HistoryEvent) HasRequestCancelExternalWorkflowExecutionInitiatedEventAttributes() bool { + if x == nil { + return false } - return 0 + _, ok := x.Attributes.(*HistoryEvent_RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) + return ok } -func (x *NexusOperationCancelRequestCompletedEventAttributes) GetScheduledEventId() int64 { - if x != nil { - return x.ScheduledEventId +func (x *HistoryEvent) HasRequestCancelExternalWorkflowExecutionFailedEventAttributes() bool { + if x == nil { + return false } - return 0 + _, ok := x.Attributes.(*HistoryEvent_RequestCancelExternalWorkflowExecutionFailedEventAttributes) + return ok } -type NexusOperationCancelRequestFailedEventAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The ID of the `NEXUS_OPERATION_CANCEL_REQUESTED` event. - RequestedEventId int64 `protobuf:"varint,1,opt,name=requested_event_id,json=requestedEventId,proto3" json:"requested_event_id,omitempty"` - // The `WORKFLOW_TASK_COMPLETED` event that the corresponding RequestCancelNexusOperation command was reported - // with. - WorkflowTaskCompletedEventId int64 `protobuf:"varint,2,opt,name=workflow_task_completed_event_id,json=workflowTaskCompletedEventId,proto3" json:"workflow_task_completed_event_id,omitempty"` - // Failure details. A NexusOperationFailureInfo wrapping a CanceledFailureInfo. - Failure *v13.Failure `protobuf:"bytes,3,opt,name=failure,proto3" json:"failure,omitempty"` - // The id of the `NEXUS_OPERATION_SCHEDULED` event this cancel request corresponds to. - ScheduledEventId int64 `protobuf:"varint,4,opt,name=scheduled_event_id,json=scheduledEventId,proto3" json:"scheduled_event_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache +func (x *HistoryEvent) HasExternalWorkflowExecutionCancelRequestedEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.Attributes.(*HistoryEvent_ExternalWorkflowExecutionCancelRequestedEventAttributes) + return ok } -func (x *NexusOperationCancelRequestFailedEventAttributes) Reset() { - *x = NexusOperationCancelRequestFailedEventAttributes{} - mi := &file_temporal_api_history_v1_message_proto_msgTypes[58] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *HistoryEvent) HasWorkflowExecutionContinuedAsNewEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionContinuedAsNewEventAttributes) + return ok } -func (x *NexusOperationCancelRequestFailedEventAttributes) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *HistoryEvent) HasStartChildWorkflowExecutionInitiatedEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.Attributes.(*HistoryEvent_StartChildWorkflowExecutionInitiatedEventAttributes) + return ok } -func (*NexusOperationCancelRequestFailedEventAttributes) ProtoMessage() {} +func (x *HistoryEvent) HasStartChildWorkflowExecutionFailedEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.Attributes.(*HistoryEvent_StartChildWorkflowExecutionFailedEventAttributes) + return ok +} -func (x *NexusOperationCancelRequestFailedEventAttributes) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_history_v1_message_proto_msgTypes[58] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *HistoryEvent) HasChildWorkflowExecutionStartedEventAttributes() bool { + if x == nil { + return false } - return mi.MessageOf(x) + _, ok := x.Attributes.(*HistoryEvent_ChildWorkflowExecutionStartedEventAttributes) + return ok } -// Deprecated: Use NexusOperationCancelRequestFailedEventAttributes.ProtoReflect.Descriptor instead. -func (*NexusOperationCancelRequestFailedEventAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_history_v1_message_proto_rawDescGZIP(), []int{58} +func (x *HistoryEvent) HasChildWorkflowExecutionCompletedEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.Attributes.(*HistoryEvent_ChildWorkflowExecutionCompletedEventAttributes) + return ok } -func (x *NexusOperationCancelRequestFailedEventAttributes) GetRequestedEventId() int64 { - if x != nil { - return x.RequestedEventId +func (x *HistoryEvent) HasChildWorkflowExecutionFailedEventAttributes() bool { + if x == nil { + return false } - return 0 + _, ok := x.Attributes.(*HistoryEvent_ChildWorkflowExecutionFailedEventAttributes) + return ok } -func (x *NexusOperationCancelRequestFailedEventAttributes) GetWorkflowTaskCompletedEventId() int64 { - if x != nil { - return x.WorkflowTaskCompletedEventId +func (x *HistoryEvent) HasChildWorkflowExecutionCanceledEventAttributes() bool { + if x == nil { + return false } - return 0 + _, ok := x.Attributes.(*HistoryEvent_ChildWorkflowExecutionCanceledEventAttributes) + return ok } -func (x *NexusOperationCancelRequestFailedEventAttributes) GetFailure() *v13.Failure { - if x != nil { - return x.Failure +func (x *HistoryEvent) HasChildWorkflowExecutionTimedOutEventAttributes() bool { + if x == nil { + return false } - return nil + _, ok := x.Attributes.(*HistoryEvent_ChildWorkflowExecutionTimedOutEventAttributes) + return ok } -func (x *NexusOperationCancelRequestFailedEventAttributes) GetScheduledEventId() int64 { - if x != nil { - return x.ScheduledEventId +func (x *HistoryEvent) HasChildWorkflowExecutionTerminatedEventAttributes() bool { + if x == nil { + return false } - return 0 + _, ok := x.Attributes.(*HistoryEvent_ChildWorkflowExecutionTerminatedEventAttributes) + return ok } -// History events are the method by which Temporal SDKs advance (or recreate) workflow state. -// See the `EventType` enum for more info about what each event is for. -type HistoryEvent struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Monotonically increasing event number, starts at 1. - EventId int64 `protobuf:"varint,1,opt,name=event_id,json=eventId,proto3" json:"event_id,omitempty"` - EventTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=event_time,json=eventTime,proto3" json:"event_time,omitempty"` - EventType v12.EventType `protobuf:"varint,3,opt,name=event_type,json=eventType,proto3,enum=temporal.api.enums.v1.EventType" json:"event_type,omitempty"` - // Failover version of the event, used by the server for multi-cluster replication and history - // versioning. SDKs generally ignore this field. - Version int64 `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"` - // Identifier used by the service to order replication and transfer tasks associated with this - // event. SDKs generally ignore this field. - TaskId int64 `protobuf:"varint,5,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` - // Set to true when the SDK may ignore the event as it does not impact workflow state or - // information in any way that the SDK need be concerned with. If an SDK encounters an event - // type which it does not understand, it must error unless this is true. If it is true, it's - // acceptable for the event type and/or attributes to be uninterpretable. - WorkerMayIgnore bool `protobuf:"varint,300,opt,name=worker_may_ignore,json=workerMayIgnore,proto3" json:"worker_may_ignore,omitempty"` - // Metadata on the event. This is often carried over from commands and client calls. Most events - // won't have this information, and how this information is used is dependent upon the interface - // that reads it. - // - // Current well-known uses: - // - workflow_execution_started_event_attributes - summary and details from start workflow. - // - timer_started_event_attributes - summary represents an identifier for the timer for use by - // user interfaces. - UserMetadata *v16.UserMetadata `protobuf:"bytes,301,opt,name=user_metadata,json=userMetadata,proto3" json:"user_metadata,omitempty"` - // Links associated with the event. - Links []*v1.Link `protobuf:"bytes,302,rep,name=links,proto3" json:"links,omitempty"` - // The event details. The type must match that in `event_type`. - // - // Types that are valid to be assigned to Attributes: - // - // *HistoryEvent_WorkflowExecutionStartedEventAttributes - // *HistoryEvent_WorkflowExecutionCompletedEventAttributes - // *HistoryEvent_WorkflowExecutionFailedEventAttributes - // *HistoryEvent_WorkflowExecutionTimedOutEventAttributes - // *HistoryEvent_WorkflowTaskScheduledEventAttributes - // *HistoryEvent_WorkflowTaskStartedEventAttributes - // *HistoryEvent_WorkflowTaskCompletedEventAttributes - // *HistoryEvent_WorkflowTaskTimedOutEventAttributes - // *HistoryEvent_WorkflowTaskFailedEventAttributes - // *HistoryEvent_ActivityTaskScheduledEventAttributes - // *HistoryEvent_ActivityTaskStartedEventAttributes - // *HistoryEvent_ActivityTaskCompletedEventAttributes - // *HistoryEvent_ActivityTaskFailedEventAttributes - // *HistoryEvent_ActivityTaskTimedOutEventAttributes - // *HistoryEvent_TimerStartedEventAttributes - // *HistoryEvent_TimerFiredEventAttributes - // *HistoryEvent_ActivityTaskCancelRequestedEventAttributes - // *HistoryEvent_ActivityTaskCanceledEventAttributes - // *HistoryEvent_TimerCanceledEventAttributes - // *HistoryEvent_MarkerRecordedEventAttributes - // *HistoryEvent_WorkflowExecutionSignaledEventAttributes - // *HistoryEvent_WorkflowExecutionTerminatedEventAttributes - // *HistoryEvent_WorkflowExecutionCancelRequestedEventAttributes - // *HistoryEvent_WorkflowExecutionCanceledEventAttributes - // *HistoryEvent_RequestCancelExternalWorkflowExecutionInitiatedEventAttributes - // *HistoryEvent_RequestCancelExternalWorkflowExecutionFailedEventAttributes - // *HistoryEvent_ExternalWorkflowExecutionCancelRequestedEventAttributes - // *HistoryEvent_WorkflowExecutionContinuedAsNewEventAttributes - // *HistoryEvent_StartChildWorkflowExecutionInitiatedEventAttributes - // *HistoryEvent_StartChildWorkflowExecutionFailedEventAttributes - // *HistoryEvent_ChildWorkflowExecutionStartedEventAttributes - // *HistoryEvent_ChildWorkflowExecutionCompletedEventAttributes - // *HistoryEvent_ChildWorkflowExecutionFailedEventAttributes - // *HistoryEvent_ChildWorkflowExecutionCanceledEventAttributes - // *HistoryEvent_ChildWorkflowExecutionTimedOutEventAttributes - // *HistoryEvent_ChildWorkflowExecutionTerminatedEventAttributes - // *HistoryEvent_SignalExternalWorkflowExecutionInitiatedEventAttributes - // *HistoryEvent_SignalExternalWorkflowExecutionFailedEventAttributes - // *HistoryEvent_ExternalWorkflowExecutionSignaledEventAttributes - // *HistoryEvent_UpsertWorkflowSearchAttributesEventAttributes - // *HistoryEvent_WorkflowExecutionUpdateAcceptedEventAttributes - // *HistoryEvent_WorkflowExecutionUpdateRejectedEventAttributes - // *HistoryEvent_WorkflowExecutionUpdateCompletedEventAttributes - // *HistoryEvent_WorkflowPropertiesModifiedExternallyEventAttributes - // *HistoryEvent_ActivityPropertiesModifiedExternallyEventAttributes - // *HistoryEvent_WorkflowPropertiesModifiedEventAttributes - // *HistoryEvent_WorkflowExecutionUpdateAdmittedEventAttributes - // *HistoryEvent_NexusOperationScheduledEventAttributes - // *HistoryEvent_NexusOperationStartedEventAttributes - // *HistoryEvent_NexusOperationCompletedEventAttributes - // *HistoryEvent_NexusOperationFailedEventAttributes - // *HistoryEvent_NexusOperationCanceledEventAttributes - // *HistoryEvent_NexusOperationTimedOutEventAttributes - // *HistoryEvent_NexusOperationCancelRequestedEventAttributes - // *HistoryEvent_WorkflowExecutionOptionsUpdatedEventAttributes - // *HistoryEvent_NexusOperationCancelRequestCompletedEventAttributes - // *HistoryEvent_NexusOperationCancelRequestFailedEventAttributes - // *HistoryEvent_WorkflowExecutionPausedEventAttributes - // *HistoryEvent_WorkflowExecutionUnpausedEventAttributes - Attributes isHistoryEvent_Attributes `protobuf_oneof:"attributes"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache +func (x *HistoryEvent) HasSignalExternalWorkflowExecutionInitiatedEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.Attributes.(*HistoryEvent_SignalExternalWorkflowExecutionInitiatedEventAttributes) + return ok } -func (x *HistoryEvent) Reset() { - *x = HistoryEvent{} - mi := &file_temporal_api_history_v1_message_proto_msgTypes[59] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *HistoryEvent) HasSignalExternalWorkflowExecutionFailedEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.Attributes.(*HistoryEvent_SignalExternalWorkflowExecutionFailedEventAttributes) + return ok } -func (x *HistoryEvent) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *HistoryEvent) HasExternalWorkflowExecutionSignaledEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.Attributes.(*HistoryEvent_ExternalWorkflowExecutionSignaledEventAttributes) + return ok } -func (*HistoryEvent) ProtoMessage() {} +func (x *HistoryEvent) HasUpsertWorkflowSearchAttributesEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.Attributes.(*HistoryEvent_UpsertWorkflowSearchAttributesEventAttributes) + return ok +} -func (x *HistoryEvent) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_history_v1_message_proto_msgTypes[59] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *HistoryEvent) HasWorkflowExecutionUpdateAcceptedEventAttributes() bool { + if x == nil { + return false } - return mi.MessageOf(x) + _, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionUpdateAcceptedEventAttributes) + return ok } -// Deprecated: Use HistoryEvent.ProtoReflect.Descriptor instead. -func (*HistoryEvent) Descriptor() ([]byte, []int) { - return file_temporal_api_history_v1_message_proto_rawDescGZIP(), []int{59} +func (x *HistoryEvent) HasWorkflowExecutionUpdateRejectedEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionUpdateRejectedEventAttributes) + return ok } -func (x *HistoryEvent) GetEventId() int64 { - if x != nil { - return x.EventId +func (x *HistoryEvent) HasWorkflowExecutionUpdateCompletedEventAttributes() bool { + if x == nil { + return false } - return 0 + _, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionUpdateCompletedEventAttributes) + return ok } -func (x *HistoryEvent) GetEventTime() *timestamppb.Timestamp { - if x != nil { - return x.EventTime +func (x *HistoryEvent) HasWorkflowPropertiesModifiedExternallyEventAttributes() bool { + if x == nil { + return false } - return nil + _, ok := x.Attributes.(*HistoryEvent_WorkflowPropertiesModifiedExternallyEventAttributes) + return ok } -func (x *HistoryEvent) GetEventType() v12.EventType { - if x != nil { - return x.EventType +func (x *HistoryEvent) HasActivityPropertiesModifiedExternallyEventAttributes() bool { + if x == nil { + return false } - return v12.EventType(0) + _, ok := x.Attributes.(*HistoryEvent_ActivityPropertiesModifiedExternallyEventAttributes) + return ok } -func (x *HistoryEvent) GetVersion() int64 { - if x != nil { - return x.Version +func (x *HistoryEvent) HasWorkflowPropertiesModifiedEventAttributes() bool { + if x == nil { + return false } - return 0 + _, ok := x.Attributes.(*HistoryEvent_WorkflowPropertiesModifiedEventAttributes) + return ok } -func (x *HistoryEvent) GetTaskId() int64 { - if x != nil { - return x.TaskId +func (x *HistoryEvent) HasWorkflowExecutionUpdateAdmittedEventAttributes() bool { + if x == nil { + return false } - return 0 + _, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionUpdateAdmittedEventAttributes) + return ok } -func (x *HistoryEvent) GetWorkerMayIgnore() bool { - if x != nil { - return x.WorkerMayIgnore +func (x *HistoryEvent) HasNexusOperationScheduledEventAttributes() bool { + if x == nil { + return false } - return false + _, ok := x.Attributes.(*HistoryEvent_NexusOperationScheduledEventAttributes) + return ok } -func (x *HistoryEvent) GetUserMetadata() *v16.UserMetadata { - if x != nil { - return x.UserMetadata +func (x *HistoryEvent) HasNexusOperationStartedEventAttributes() bool { + if x == nil { + return false } - return nil + _, ok := x.Attributes.(*HistoryEvent_NexusOperationStartedEventAttributes) + return ok } -func (x *HistoryEvent) GetLinks() []*v1.Link { - if x != nil { - return x.Links +func (x *HistoryEvent) HasNexusOperationCompletedEventAttributes() bool { + if x == nil { + return false } - return nil + _, ok := x.Attributes.(*HistoryEvent_NexusOperationCompletedEventAttributes) + return ok } -func (x *HistoryEvent) GetAttributes() isHistoryEvent_Attributes { - if x != nil { - return x.Attributes +func (x *HistoryEvent) HasNexusOperationFailedEventAttributes() bool { + if x == nil { + return false } - return nil + _, ok := x.Attributes.(*HistoryEvent_NexusOperationFailedEventAttributes) + return ok } -func (x *HistoryEvent) GetWorkflowExecutionStartedEventAttributes() *WorkflowExecutionStartedEventAttributes { - if x != nil { - if x, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionStartedEventAttributes); ok { - return x.WorkflowExecutionStartedEventAttributes - } +func (x *HistoryEvent) HasNexusOperationCanceledEventAttributes() bool { + if x == nil { + return false } - return nil + _, ok := x.Attributes.(*HistoryEvent_NexusOperationCanceledEventAttributes) + return ok } -func (x *HistoryEvent) GetWorkflowExecutionCompletedEventAttributes() *WorkflowExecutionCompletedEventAttributes { - if x != nil { - if x, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionCompletedEventAttributes); ok { - return x.WorkflowExecutionCompletedEventAttributes - } +func (x *HistoryEvent) HasNexusOperationTimedOutEventAttributes() bool { + if x == nil { + return false } - return nil + _, ok := x.Attributes.(*HistoryEvent_NexusOperationTimedOutEventAttributes) + return ok } -func (x *HistoryEvent) GetWorkflowExecutionFailedEventAttributes() *WorkflowExecutionFailedEventAttributes { - if x != nil { - if x, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionFailedEventAttributes); ok { - return x.WorkflowExecutionFailedEventAttributes - } +func (x *HistoryEvent) HasNexusOperationCancelRequestedEventAttributes() bool { + if x == nil { + return false } - return nil + _, ok := x.Attributes.(*HistoryEvent_NexusOperationCancelRequestedEventAttributes) + return ok } -func (x *HistoryEvent) GetWorkflowExecutionTimedOutEventAttributes() *WorkflowExecutionTimedOutEventAttributes { - if x != nil { - if x, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionTimedOutEventAttributes); ok { - return x.WorkflowExecutionTimedOutEventAttributes - } +func (x *HistoryEvent) HasWorkflowExecutionOptionsUpdatedEventAttributes() bool { + if x == nil { + return false } - return nil + _, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionOptionsUpdatedEventAttributes) + return ok } -func (x *HistoryEvent) GetWorkflowTaskScheduledEventAttributes() *WorkflowTaskScheduledEventAttributes { - if x != nil { - if x, ok := x.Attributes.(*HistoryEvent_WorkflowTaskScheduledEventAttributes); ok { - return x.WorkflowTaskScheduledEventAttributes - } +func (x *HistoryEvent) HasNexusOperationCancelRequestCompletedEventAttributes() bool { + if x == nil { + return false } - return nil + _, ok := x.Attributes.(*HistoryEvent_NexusOperationCancelRequestCompletedEventAttributes) + return ok } -func (x *HistoryEvent) GetWorkflowTaskStartedEventAttributes() *WorkflowTaskStartedEventAttributes { - if x != nil { - if x, ok := x.Attributes.(*HistoryEvent_WorkflowTaskStartedEventAttributes); ok { - return x.WorkflowTaskStartedEventAttributes - } +func (x *HistoryEvent) HasNexusOperationCancelRequestFailedEventAttributes() bool { + if x == nil { + return false } - return nil + _, ok := x.Attributes.(*HistoryEvent_NexusOperationCancelRequestFailedEventAttributes) + return ok } -func (x *HistoryEvent) GetWorkflowTaskCompletedEventAttributes() *WorkflowTaskCompletedEventAttributes { - if x != nil { - if x, ok := x.Attributes.(*HistoryEvent_WorkflowTaskCompletedEventAttributes); ok { - return x.WorkflowTaskCompletedEventAttributes - } +func (x *HistoryEvent) HasWorkflowExecutionPausedEventAttributes() bool { + if x == nil { + return false } - return nil + _, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionPausedEventAttributes) + return ok } -func (x *HistoryEvent) GetWorkflowTaskTimedOutEventAttributes() *WorkflowTaskTimedOutEventAttributes { - if x != nil { - if x, ok := x.Attributes.(*HistoryEvent_WorkflowTaskTimedOutEventAttributes); ok { - return x.WorkflowTaskTimedOutEventAttributes - } +func (x *HistoryEvent) HasWorkflowExecutionUnpausedEventAttributes() bool { + if x == nil { + return false } - return nil + _, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionUnpausedEventAttributes) + return ok } -func (x *HistoryEvent) GetWorkflowTaskFailedEventAttributes() *WorkflowTaskFailedEventAttributes { - if x != nil { - if x, ok := x.Attributes.(*HistoryEvent_WorkflowTaskFailedEventAttributes); ok { - return x.WorkflowTaskFailedEventAttributes - } +func (x *HistoryEvent) ClearEventTime() { + x.EventTime = nil +} + +func (x *HistoryEvent) ClearUserMetadata() { + x.UserMetadata = nil +} + +func (x *HistoryEvent) ClearAttributes() { + x.Attributes = nil +} + +func (x *HistoryEvent) ClearWorkflowExecutionStartedEventAttributes() { + if _, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionStartedEventAttributes); ok { + x.Attributes = nil } - return nil } -func (x *HistoryEvent) GetActivityTaskScheduledEventAttributes() *ActivityTaskScheduledEventAttributes { - if x != nil { - if x, ok := x.Attributes.(*HistoryEvent_ActivityTaskScheduledEventAttributes); ok { - return x.ActivityTaskScheduledEventAttributes - } +func (x *HistoryEvent) ClearWorkflowExecutionCompletedEventAttributes() { + if _, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionCompletedEventAttributes); ok { + x.Attributes = nil } - return nil } -func (x *HistoryEvent) GetActivityTaskStartedEventAttributes() *ActivityTaskStartedEventAttributes { - if x != nil { - if x, ok := x.Attributes.(*HistoryEvent_ActivityTaskStartedEventAttributes); ok { - return x.ActivityTaskStartedEventAttributes - } +func (x *HistoryEvent) ClearWorkflowExecutionFailedEventAttributes() { + if _, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionFailedEventAttributes); ok { + x.Attributes = nil } - return nil } -func (x *HistoryEvent) GetActivityTaskCompletedEventAttributes() *ActivityTaskCompletedEventAttributes { - if x != nil { - if x, ok := x.Attributes.(*HistoryEvent_ActivityTaskCompletedEventAttributes); ok { - return x.ActivityTaskCompletedEventAttributes - } +func (x *HistoryEvent) ClearWorkflowExecutionTimedOutEventAttributes() { + if _, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionTimedOutEventAttributes); ok { + x.Attributes = nil } - return nil } -func (x *HistoryEvent) GetActivityTaskFailedEventAttributes() *ActivityTaskFailedEventAttributes { - if x != nil { - if x, ok := x.Attributes.(*HistoryEvent_ActivityTaskFailedEventAttributes); ok { - return x.ActivityTaskFailedEventAttributes - } +func (x *HistoryEvent) ClearWorkflowTaskScheduledEventAttributes() { + if _, ok := x.Attributes.(*HistoryEvent_WorkflowTaskScheduledEventAttributes); ok { + x.Attributes = nil } - return nil } -func (x *HistoryEvent) GetActivityTaskTimedOutEventAttributes() *ActivityTaskTimedOutEventAttributes { - if x != nil { - if x, ok := x.Attributes.(*HistoryEvent_ActivityTaskTimedOutEventAttributes); ok { - return x.ActivityTaskTimedOutEventAttributes - } +func (x *HistoryEvent) ClearWorkflowTaskStartedEventAttributes() { + if _, ok := x.Attributes.(*HistoryEvent_WorkflowTaskStartedEventAttributes); ok { + x.Attributes = nil } - return nil } -func (x *HistoryEvent) GetTimerStartedEventAttributes() *TimerStartedEventAttributes { - if x != nil { - if x, ok := x.Attributes.(*HistoryEvent_TimerStartedEventAttributes); ok { - return x.TimerStartedEventAttributes - } +func (x *HistoryEvent) ClearWorkflowTaskCompletedEventAttributes() { + if _, ok := x.Attributes.(*HistoryEvent_WorkflowTaskCompletedEventAttributes); ok { + x.Attributes = nil } - return nil } -func (x *HistoryEvent) GetTimerFiredEventAttributes() *TimerFiredEventAttributes { - if x != nil { - if x, ok := x.Attributes.(*HistoryEvent_TimerFiredEventAttributes); ok { - return x.TimerFiredEventAttributes - } +func (x *HistoryEvent) ClearWorkflowTaskTimedOutEventAttributes() { + if _, ok := x.Attributes.(*HistoryEvent_WorkflowTaskTimedOutEventAttributes); ok { + x.Attributes = nil } - return nil } -func (x *HistoryEvent) GetActivityTaskCancelRequestedEventAttributes() *ActivityTaskCancelRequestedEventAttributes { - if x != nil { - if x, ok := x.Attributes.(*HistoryEvent_ActivityTaskCancelRequestedEventAttributes); ok { - return x.ActivityTaskCancelRequestedEventAttributes - } +func (x *HistoryEvent) ClearWorkflowTaskFailedEventAttributes() { + if _, ok := x.Attributes.(*HistoryEvent_WorkflowTaskFailedEventAttributes); ok { + x.Attributes = nil } - return nil } -func (x *HistoryEvent) GetActivityTaskCanceledEventAttributes() *ActivityTaskCanceledEventAttributes { - if x != nil { - if x, ok := x.Attributes.(*HistoryEvent_ActivityTaskCanceledEventAttributes); ok { - return x.ActivityTaskCanceledEventAttributes - } +func (x *HistoryEvent) ClearActivityTaskScheduledEventAttributes() { + if _, ok := x.Attributes.(*HistoryEvent_ActivityTaskScheduledEventAttributes); ok { + x.Attributes = nil } - return nil } -func (x *HistoryEvent) GetTimerCanceledEventAttributes() *TimerCanceledEventAttributes { - if x != nil { - if x, ok := x.Attributes.(*HistoryEvent_TimerCanceledEventAttributes); ok { - return x.TimerCanceledEventAttributes - } +func (x *HistoryEvent) ClearActivityTaskStartedEventAttributes() { + if _, ok := x.Attributes.(*HistoryEvent_ActivityTaskStartedEventAttributes); ok { + x.Attributes = nil } - return nil } -func (x *HistoryEvent) GetMarkerRecordedEventAttributes() *MarkerRecordedEventAttributes { - if x != nil { - if x, ok := x.Attributes.(*HistoryEvent_MarkerRecordedEventAttributes); ok { - return x.MarkerRecordedEventAttributes - } +func (x *HistoryEvent) ClearActivityTaskCompletedEventAttributes() { + if _, ok := x.Attributes.(*HistoryEvent_ActivityTaskCompletedEventAttributes); ok { + x.Attributes = nil } - return nil } -func (x *HistoryEvent) GetWorkflowExecutionSignaledEventAttributes() *WorkflowExecutionSignaledEventAttributes { - if x != nil { - if x, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionSignaledEventAttributes); ok { - return x.WorkflowExecutionSignaledEventAttributes - } +func (x *HistoryEvent) ClearActivityTaskFailedEventAttributes() { + if _, ok := x.Attributes.(*HistoryEvent_ActivityTaskFailedEventAttributes); ok { + x.Attributes = nil } - return nil } -func (x *HistoryEvent) GetWorkflowExecutionTerminatedEventAttributes() *WorkflowExecutionTerminatedEventAttributes { - if x != nil { - if x, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionTerminatedEventAttributes); ok { - return x.WorkflowExecutionTerminatedEventAttributes - } +func (x *HistoryEvent) ClearActivityTaskTimedOutEventAttributes() { + if _, ok := x.Attributes.(*HistoryEvent_ActivityTaskTimedOutEventAttributes); ok { + x.Attributes = nil } - return nil } -func (x *HistoryEvent) GetWorkflowExecutionCancelRequestedEventAttributes() *WorkflowExecutionCancelRequestedEventAttributes { - if x != nil { - if x, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionCancelRequestedEventAttributes); ok { - return x.WorkflowExecutionCancelRequestedEventAttributes - } +func (x *HistoryEvent) ClearTimerStartedEventAttributes() { + if _, ok := x.Attributes.(*HistoryEvent_TimerStartedEventAttributes); ok { + x.Attributes = nil } - return nil } -func (x *HistoryEvent) GetWorkflowExecutionCanceledEventAttributes() *WorkflowExecutionCanceledEventAttributes { - if x != nil { - if x, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionCanceledEventAttributes); ok { - return x.WorkflowExecutionCanceledEventAttributes - } +func (x *HistoryEvent) ClearTimerFiredEventAttributes() { + if _, ok := x.Attributes.(*HistoryEvent_TimerFiredEventAttributes); ok { + x.Attributes = nil } - return nil } -func (x *HistoryEvent) GetRequestCancelExternalWorkflowExecutionInitiatedEventAttributes() *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes { - if x != nil { - if x, ok := x.Attributes.(*HistoryEvent_RequestCancelExternalWorkflowExecutionInitiatedEventAttributes); ok { - return x.RequestCancelExternalWorkflowExecutionInitiatedEventAttributes - } +func (x *HistoryEvent) ClearActivityTaskCancelRequestedEventAttributes() { + if _, ok := x.Attributes.(*HistoryEvent_ActivityTaskCancelRequestedEventAttributes); ok { + x.Attributes = nil } - return nil } -func (x *HistoryEvent) GetRequestCancelExternalWorkflowExecutionFailedEventAttributes() *RequestCancelExternalWorkflowExecutionFailedEventAttributes { - if x != nil { - if x, ok := x.Attributes.(*HistoryEvent_RequestCancelExternalWorkflowExecutionFailedEventAttributes); ok { - return x.RequestCancelExternalWorkflowExecutionFailedEventAttributes - } +func (x *HistoryEvent) ClearActivityTaskCanceledEventAttributes() { + if _, ok := x.Attributes.(*HistoryEvent_ActivityTaskCanceledEventAttributes); ok { + x.Attributes = nil } - return nil } -func (x *HistoryEvent) GetExternalWorkflowExecutionCancelRequestedEventAttributes() *ExternalWorkflowExecutionCancelRequestedEventAttributes { - if x != nil { - if x, ok := x.Attributes.(*HistoryEvent_ExternalWorkflowExecutionCancelRequestedEventAttributes); ok { - return x.ExternalWorkflowExecutionCancelRequestedEventAttributes - } +func (x *HistoryEvent) ClearTimerCanceledEventAttributes() { + if _, ok := x.Attributes.(*HistoryEvent_TimerCanceledEventAttributes); ok { + x.Attributes = nil } - return nil } -func (x *HistoryEvent) GetWorkflowExecutionContinuedAsNewEventAttributes() *WorkflowExecutionContinuedAsNewEventAttributes { - if x != nil { - if x, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionContinuedAsNewEventAttributes); ok { - return x.WorkflowExecutionContinuedAsNewEventAttributes - } +func (x *HistoryEvent) ClearMarkerRecordedEventAttributes() { + if _, ok := x.Attributes.(*HistoryEvent_MarkerRecordedEventAttributes); ok { + x.Attributes = nil + } +} + +func (x *HistoryEvent) ClearWorkflowExecutionSignaledEventAttributes() { + if _, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionSignaledEventAttributes); ok { + x.Attributes = nil + } +} + +func (x *HistoryEvent) ClearWorkflowExecutionTerminatedEventAttributes() { + if _, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionTerminatedEventAttributes); ok { + x.Attributes = nil + } +} + +func (x *HistoryEvent) ClearWorkflowExecutionCancelRequestedEventAttributes() { + if _, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionCancelRequestedEventAttributes); ok { + x.Attributes = nil + } +} + +func (x *HistoryEvent) ClearWorkflowExecutionCanceledEventAttributes() { + if _, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionCanceledEventAttributes); ok { + x.Attributes = nil + } +} + +func (x *HistoryEvent) ClearRequestCancelExternalWorkflowExecutionInitiatedEventAttributes() { + if _, ok := x.Attributes.(*HistoryEvent_RequestCancelExternalWorkflowExecutionInitiatedEventAttributes); ok { + x.Attributes = nil + } +} + +func (x *HistoryEvent) ClearRequestCancelExternalWorkflowExecutionFailedEventAttributes() { + if _, ok := x.Attributes.(*HistoryEvent_RequestCancelExternalWorkflowExecutionFailedEventAttributes); ok { + x.Attributes = nil + } +} + +func (x *HistoryEvent) ClearExternalWorkflowExecutionCancelRequestedEventAttributes() { + if _, ok := x.Attributes.(*HistoryEvent_ExternalWorkflowExecutionCancelRequestedEventAttributes); ok { + x.Attributes = nil + } +} + +func (x *HistoryEvent) ClearWorkflowExecutionContinuedAsNewEventAttributes() { + if _, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionContinuedAsNewEventAttributes); ok { + x.Attributes = nil + } +} + +func (x *HistoryEvent) ClearStartChildWorkflowExecutionInitiatedEventAttributes() { + if _, ok := x.Attributes.(*HistoryEvent_StartChildWorkflowExecutionInitiatedEventAttributes); ok { + x.Attributes = nil } - return nil } -func (x *HistoryEvent) GetStartChildWorkflowExecutionInitiatedEventAttributes() *StartChildWorkflowExecutionInitiatedEventAttributes { - if x != nil { - if x, ok := x.Attributes.(*HistoryEvent_StartChildWorkflowExecutionInitiatedEventAttributes); ok { - return x.StartChildWorkflowExecutionInitiatedEventAttributes - } +func (x *HistoryEvent) ClearStartChildWorkflowExecutionFailedEventAttributes() { + if _, ok := x.Attributes.(*HistoryEvent_StartChildWorkflowExecutionFailedEventAttributes); ok { + x.Attributes = nil } - return nil } -func (x *HistoryEvent) GetStartChildWorkflowExecutionFailedEventAttributes() *StartChildWorkflowExecutionFailedEventAttributes { - if x != nil { - if x, ok := x.Attributes.(*HistoryEvent_StartChildWorkflowExecutionFailedEventAttributes); ok { - return x.StartChildWorkflowExecutionFailedEventAttributes - } +func (x *HistoryEvent) ClearChildWorkflowExecutionStartedEventAttributes() { + if _, ok := x.Attributes.(*HistoryEvent_ChildWorkflowExecutionStartedEventAttributes); ok { + x.Attributes = nil } - return nil } -func (x *HistoryEvent) GetChildWorkflowExecutionStartedEventAttributes() *ChildWorkflowExecutionStartedEventAttributes { - if x != nil { - if x, ok := x.Attributes.(*HistoryEvent_ChildWorkflowExecutionStartedEventAttributes); ok { - return x.ChildWorkflowExecutionStartedEventAttributes - } +func (x *HistoryEvent) ClearChildWorkflowExecutionCompletedEventAttributes() { + if _, ok := x.Attributes.(*HistoryEvent_ChildWorkflowExecutionCompletedEventAttributes); ok { + x.Attributes = nil } - return nil } -func (x *HistoryEvent) GetChildWorkflowExecutionCompletedEventAttributes() *ChildWorkflowExecutionCompletedEventAttributes { - if x != nil { - if x, ok := x.Attributes.(*HistoryEvent_ChildWorkflowExecutionCompletedEventAttributes); ok { - return x.ChildWorkflowExecutionCompletedEventAttributes - } +func (x *HistoryEvent) ClearChildWorkflowExecutionFailedEventAttributes() { + if _, ok := x.Attributes.(*HistoryEvent_ChildWorkflowExecutionFailedEventAttributes); ok { + x.Attributes = nil } - return nil } -func (x *HistoryEvent) GetChildWorkflowExecutionFailedEventAttributes() *ChildWorkflowExecutionFailedEventAttributes { - if x != nil { - if x, ok := x.Attributes.(*HistoryEvent_ChildWorkflowExecutionFailedEventAttributes); ok { - return x.ChildWorkflowExecutionFailedEventAttributes - } +func (x *HistoryEvent) ClearChildWorkflowExecutionCanceledEventAttributes() { + if _, ok := x.Attributes.(*HistoryEvent_ChildWorkflowExecutionCanceledEventAttributes); ok { + x.Attributes = nil } - return nil } -func (x *HistoryEvent) GetChildWorkflowExecutionCanceledEventAttributes() *ChildWorkflowExecutionCanceledEventAttributes { - if x != nil { - if x, ok := x.Attributes.(*HistoryEvent_ChildWorkflowExecutionCanceledEventAttributes); ok { - return x.ChildWorkflowExecutionCanceledEventAttributes - } +func (x *HistoryEvent) ClearChildWorkflowExecutionTimedOutEventAttributes() { + if _, ok := x.Attributes.(*HistoryEvent_ChildWorkflowExecutionTimedOutEventAttributes); ok { + x.Attributes = nil } - return nil } -func (x *HistoryEvent) GetChildWorkflowExecutionTimedOutEventAttributes() *ChildWorkflowExecutionTimedOutEventAttributes { - if x != nil { - if x, ok := x.Attributes.(*HistoryEvent_ChildWorkflowExecutionTimedOutEventAttributes); ok { - return x.ChildWorkflowExecutionTimedOutEventAttributes - } +func (x *HistoryEvent) ClearChildWorkflowExecutionTerminatedEventAttributes() { + if _, ok := x.Attributes.(*HistoryEvent_ChildWorkflowExecutionTerminatedEventAttributes); ok { + x.Attributes = nil } - return nil } -func (x *HistoryEvent) GetChildWorkflowExecutionTerminatedEventAttributes() *ChildWorkflowExecutionTerminatedEventAttributes { - if x != nil { - if x, ok := x.Attributes.(*HistoryEvent_ChildWorkflowExecutionTerminatedEventAttributes); ok { - return x.ChildWorkflowExecutionTerminatedEventAttributes - } +func (x *HistoryEvent) ClearSignalExternalWorkflowExecutionInitiatedEventAttributes() { + if _, ok := x.Attributes.(*HistoryEvent_SignalExternalWorkflowExecutionInitiatedEventAttributes); ok { + x.Attributes = nil } - return nil } -func (x *HistoryEvent) GetSignalExternalWorkflowExecutionInitiatedEventAttributes() *SignalExternalWorkflowExecutionInitiatedEventAttributes { - if x != nil { - if x, ok := x.Attributes.(*HistoryEvent_SignalExternalWorkflowExecutionInitiatedEventAttributes); ok { - return x.SignalExternalWorkflowExecutionInitiatedEventAttributes - } +func (x *HistoryEvent) ClearSignalExternalWorkflowExecutionFailedEventAttributes() { + if _, ok := x.Attributes.(*HistoryEvent_SignalExternalWorkflowExecutionFailedEventAttributes); ok { + x.Attributes = nil } - return nil } -func (x *HistoryEvent) GetSignalExternalWorkflowExecutionFailedEventAttributes() *SignalExternalWorkflowExecutionFailedEventAttributes { - if x != nil { - if x, ok := x.Attributes.(*HistoryEvent_SignalExternalWorkflowExecutionFailedEventAttributes); ok { - return x.SignalExternalWorkflowExecutionFailedEventAttributes - } +func (x *HistoryEvent) ClearExternalWorkflowExecutionSignaledEventAttributes() { + if _, ok := x.Attributes.(*HistoryEvent_ExternalWorkflowExecutionSignaledEventAttributes); ok { + x.Attributes = nil } - return nil } -func (x *HistoryEvent) GetExternalWorkflowExecutionSignaledEventAttributes() *ExternalWorkflowExecutionSignaledEventAttributes { - if x != nil { - if x, ok := x.Attributes.(*HistoryEvent_ExternalWorkflowExecutionSignaledEventAttributes); ok { - return x.ExternalWorkflowExecutionSignaledEventAttributes - } +func (x *HistoryEvent) ClearUpsertWorkflowSearchAttributesEventAttributes() { + if _, ok := x.Attributes.(*HistoryEvent_UpsertWorkflowSearchAttributesEventAttributes); ok { + x.Attributes = nil } - return nil } -func (x *HistoryEvent) GetUpsertWorkflowSearchAttributesEventAttributes() *UpsertWorkflowSearchAttributesEventAttributes { - if x != nil { - if x, ok := x.Attributes.(*HistoryEvent_UpsertWorkflowSearchAttributesEventAttributes); ok { - return x.UpsertWorkflowSearchAttributesEventAttributes - } +func (x *HistoryEvent) ClearWorkflowExecutionUpdateAcceptedEventAttributes() { + if _, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionUpdateAcceptedEventAttributes); ok { + x.Attributes = nil } - return nil } -func (x *HistoryEvent) GetWorkflowExecutionUpdateAcceptedEventAttributes() *WorkflowExecutionUpdateAcceptedEventAttributes { - if x != nil { - if x, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionUpdateAcceptedEventAttributes); ok { - return x.WorkflowExecutionUpdateAcceptedEventAttributes - } +func (x *HistoryEvent) ClearWorkflowExecutionUpdateRejectedEventAttributes() { + if _, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionUpdateRejectedEventAttributes); ok { + x.Attributes = nil } - return nil } -func (x *HistoryEvent) GetWorkflowExecutionUpdateRejectedEventAttributes() *WorkflowExecutionUpdateRejectedEventAttributes { - if x != nil { - if x, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionUpdateRejectedEventAttributes); ok { - return x.WorkflowExecutionUpdateRejectedEventAttributes - } +func (x *HistoryEvent) ClearWorkflowExecutionUpdateCompletedEventAttributes() { + if _, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionUpdateCompletedEventAttributes); ok { + x.Attributes = nil } - return nil } -func (x *HistoryEvent) GetWorkflowExecutionUpdateCompletedEventAttributes() *WorkflowExecutionUpdateCompletedEventAttributes { - if x != nil { - if x, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionUpdateCompletedEventAttributes); ok { - return x.WorkflowExecutionUpdateCompletedEventAttributes - } +func (x *HistoryEvent) ClearWorkflowPropertiesModifiedExternallyEventAttributes() { + if _, ok := x.Attributes.(*HistoryEvent_WorkflowPropertiesModifiedExternallyEventAttributes); ok { + x.Attributes = nil } - return nil } -func (x *HistoryEvent) GetWorkflowPropertiesModifiedExternallyEventAttributes() *WorkflowPropertiesModifiedExternallyEventAttributes { - if x != nil { - if x, ok := x.Attributes.(*HistoryEvent_WorkflowPropertiesModifiedExternallyEventAttributes); ok { - return x.WorkflowPropertiesModifiedExternallyEventAttributes - } +func (x *HistoryEvent) ClearActivityPropertiesModifiedExternallyEventAttributes() { + if _, ok := x.Attributes.(*HistoryEvent_ActivityPropertiesModifiedExternallyEventAttributes); ok { + x.Attributes = nil } - return nil } -func (x *HistoryEvent) GetActivityPropertiesModifiedExternallyEventAttributes() *ActivityPropertiesModifiedExternallyEventAttributes { - if x != nil { - if x, ok := x.Attributes.(*HistoryEvent_ActivityPropertiesModifiedExternallyEventAttributes); ok { - return x.ActivityPropertiesModifiedExternallyEventAttributes - } +func (x *HistoryEvent) ClearWorkflowPropertiesModifiedEventAttributes() { + if _, ok := x.Attributes.(*HistoryEvent_WorkflowPropertiesModifiedEventAttributes); ok { + x.Attributes = nil } - return nil } -func (x *HistoryEvent) GetWorkflowPropertiesModifiedEventAttributes() *WorkflowPropertiesModifiedEventAttributes { - if x != nil { - if x, ok := x.Attributes.(*HistoryEvent_WorkflowPropertiesModifiedEventAttributes); ok { - return x.WorkflowPropertiesModifiedEventAttributes - } +func (x *HistoryEvent) ClearWorkflowExecutionUpdateAdmittedEventAttributes() { + if _, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionUpdateAdmittedEventAttributes); ok { + x.Attributes = nil } - return nil } -func (x *HistoryEvent) GetWorkflowExecutionUpdateAdmittedEventAttributes() *WorkflowExecutionUpdateAdmittedEventAttributes { - if x != nil { - if x, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionUpdateAdmittedEventAttributes); ok { - return x.WorkflowExecutionUpdateAdmittedEventAttributes - } +func (x *HistoryEvent) ClearNexusOperationScheduledEventAttributes() { + if _, ok := x.Attributes.(*HistoryEvent_NexusOperationScheduledEventAttributes); ok { + x.Attributes = nil } - return nil } -func (x *HistoryEvent) GetNexusOperationScheduledEventAttributes() *NexusOperationScheduledEventAttributes { - if x != nil { - if x, ok := x.Attributes.(*HistoryEvent_NexusOperationScheduledEventAttributes); ok { - return x.NexusOperationScheduledEventAttributes - } +func (x *HistoryEvent) ClearNexusOperationStartedEventAttributes() { + if _, ok := x.Attributes.(*HistoryEvent_NexusOperationStartedEventAttributes); ok { + x.Attributes = nil } - return nil } -func (x *HistoryEvent) GetNexusOperationStartedEventAttributes() *NexusOperationStartedEventAttributes { - if x != nil { - if x, ok := x.Attributes.(*HistoryEvent_NexusOperationStartedEventAttributes); ok { - return x.NexusOperationStartedEventAttributes - } +func (x *HistoryEvent) ClearNexusOperationCompletedEventAttributes() { + if _, ok := x.Attributes.(*HistoryEvent_NexusOperationCompletedEventAttributes); ok { + x.Attributes = nil } - return nil } -func (x *HistoryEvent) GetNexusOperationCompletedEventAttributes() *NexusOperationCompletedEventAttributes { - if x != nil { - if x, ok := x.Attributes.(*HistoryEvent_NexusOperationCompletedEventAttributes); ok { - return x.NexusOperationCompletedEventAttributes - } +func (x *HistoryEvent) ClearNexusOperationFailedEventAttributes() { + if _, ok := x.Attributes.(*HistoryEvent_NexusOperationFailedEventAttributes); ok { + x.Attributes = nil } - return nil } -func (x *HistoryEvent) GetNexusOperationFailedEventAttributes() *NexusOperationFailedEventAttributes { - if x != nil { - if x, ok := x.Attributes.(*HistoryEvent_NexusOperationFailedEventAttributes); ok { - return x.NexusOperationFailedEventAttributes - } +func (x *HistoryEvent) ClearNexusOperationCanceledEventAttributes() { + if _, ok := x.Attributes.(*HistoryEvent_NexusOperationCanceledEventAttributes); ok { + x.Attributes = nil } - return nil } -func (x *HistoryEvent) GetNexusOperationCanceledEventAttributes() *NexusOperationCanceledEventAttributes { - if x != nil { - if x, ok := x.Attributes.(*HistoryEvent_NexusOperationCanceledEventAttributes); ok { - return x.NexusOperationCanceledEventAttributes - } +func (x *HistoryEvent) ClearNexusOperationTimedOutEventAttributes() { + if _, ok := x.Attributes.(*HistoryEvent_NexusOperationTimedOutEventAttributes); ok { + x.Attributes = nil } - return nil } -func (x *HistoryEvent) GetNexusOperationTimedOutEventAttributes() *NexusOperationTimedOutEventAttributes { - if x != nil { - if x, ok := x.Attributes.(*HistoryEvent_NexusOperationTimedOutEventAttributes); ok { - return x.NexusOperationTimedOutEventAttributes - } +func (x *HistoryEvent) ClearNexusOperationCancelRequestedEventAttributes() { + if _, ok := x.Attributes.(*HistoryEvent_NexusOperationCancelRequestedEventAttributes); ok { + x.Attributes = nil } - return nil } -func (x *HistoryEvent) GetNexusOperationCancelRequestedEventAttributes() *NexusOperationCancelRequestedEventAttributes { - if x != nil { - if x, ok := x.Attributes.(*HistoryEvent_NexusOperationCancelRequestedEventAttributes); ok { - return x.NexusOperationCancelRequestedEventAttributes - } +func (x *HistoryEvent) ClearWorkflowExecutionOptionsUpdatedEventAttributes() { + if _, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionOptionsUpdatedEventAttributes); ok { + x.Attributes = nil } - return nil } -func (x *HistoryEvent) GetWorkflowExecutionOptionsUpdatedEventAttributes() *WorkflowExecutionOptionsUpdatedEventAttributes { - if x != nil { - if x, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionOptionsUpdatedEventAttributes); ok { - return x.WorkflowExecutionOptionsUpdatedEventAttributes - } +func (x *HistoryEvent) ClearNexusOperationCancelRequestCompletedEventAttributes() { + if _, ok := x.Attributes.(*HistoryEvent_NexusOperationCancelRequestCompletedEventAttributes); ok { + x.Attributes = nil } - return nil } -func (x *HistoryEvent) GetNexusOperationCancelRequestCompletedEventAttributes() *NexusOperationCancelRequestCompletedEventAttributes { - if x != nil { - if x, ok := x.Attributes.(*HistoryEvent_NexusOperationCancelRequestCompletedEventAttributes); ok { - return x.NexusOperationCancelRequestCompletedEventAttributes - } +func (x *HistoryEvent) ClearNexusOperationCancelRequestFailedEventAttributes() { + if _, ok := x.Attributes.(*HistoryEvent_NexusOperationCancelRequestFailedEventAttributes); ok { + x.Attributes = nil } - return nil } -func (x *HistoryEvent) GetNexusOperationCancelRequestFailedEventAttributes() *NexusOperationCancelRequestFailedEventAttributes { - if x != nil { - if x, ok := x.Attributes.(*HistoryEvent_NexusOperationCancelRequestFailedEventAttributes); ok { - return x.NexusOperationCancelRequestFailedEventAttributes - } +func (x *HistoryEvent) ClearWorkflowExecutionPausedEventAttributes() { + if _, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionPausedEventAttributes); ok { + x.Attributes = nil } - return nil } -func (x *HistoryEvent) GetWorkflowExecutionPausedEventAttributes() *WorkflowExecutionPausedEventAttributes { - if x != nil { - if x, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionPausedEventAttributes); ok { - return x.WorkflowExecutionPausedEventAttributes - } +func (x *HistoryEvent) ClearWorkflowExecutionUnpausedEventAttributes() { + if _, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionUnpausedEventAttributes); ok { + x.Attributes = nil } - return nil } -func (x *HistoryEvent) GetWorkflowExecutionUnpausedEventAttributes() *WorkflowExecutionUnpausedEventAttributes { - if x != nil { - if x, ok := x.Attributes.(*HistoryEvent_WorkflowExecutionUnpausedEventAttributes); ok { - return x.WorkflowExecutionUnpausedEventAttributes - } +const HistoryEvent_Attributes_not_set_case case_HistoryEvent_Attributes = 0 +const HistoryEvent_WorkflowExecutionStartedEventAttributes_case case_HistoryEvent_Attributes = 6 +const HistoryEvent_WorkflowExecutionCompletedEventAttributes_case case_HistoryEvent_Attributes = 7 +const HistoryEvent_WorkflowExecutionFailedEventAttributes_case case_HistoryEvent_Attributes = 8 +const HistoryEvent_WorkflowExecutionTimedOutEventAttributes_case case_HistoryEvent_Attributes = 9 +const HistoryEvent_WorkflowTaskScheduledEventAttributes_case case_HistoryEvent_Attributes = 10 +const HistoryEvent_WorkflowTaskStartedEventAttributes_case case_HistoryEvent_Attributes = 11 +const HistoryEvent_WorkflowTaskCompletedEventAttributes_case case_HistoryEvent_Attributes = 12 +const HistoryEvent_WorkflowTaskTimedOutEventAttributes_case case_HistoryEvent_Attributes = 13 +const HistoryEvent_WorkflowTaskFailedEventAttributes_case case_HistoryEvent_Attributes = 14 +const HistoryEvent_ActivityTaskScheduledEventAttributes_case case_HistoryEvent_Attributes = 15 +const HistoryEvent_ActivityTaskStartedEventAttributes_case case_HistoryEvent_Attributes = 16 +const HistoryEvent_ActivityTaskCompletedEventAttributes_case case_HistoryEvent_Attributes = 17 +const HistoryEvent_ActivityTaskFailedEventAttributes_case case_HistoryEvent_Attributes = 18 +const HistoryEvent_ActivityTaskTimedOutEventAttributes_case case_HistoryEvent_Attributes = 19 +const HistoryEvent_TimerStartedEventAttributes_case case_HistoryEvent_Attributes = 20 +const HistoryEvent_TimerFiredEventAttributes_case case_HistoryEvent_Attributes = 21 +const HistoryEvent_ActivityTaskCancelRequestedEventAttributes_case case_HistoryEvent_Attributes = 22 +const HistoryEvent_ActivityTaskCanceledEventAttributes_case case_HistoryEvent_Attributes = 23 +const HistoryEvent_TimerCanceledEventAttributes_case case_HistoryEvent_Attributes = 24 +const HistoryEvent_MarkerRecordedEventAttributes_case case_HistoryEvent_Attributes = 25 +const HistoryEvent_WorkflowExecutionSignaledEventAttributes_case case_HistoryEvent_Attributes = 26 +const HistoryEvent_WorkflowExecutionTerminatedEventAttributes_case case_HistoryEvent_Attributes = 27 +const HistoryEvent_WorkflowExecutionCancelRequestedEventAttributes_case case_HistoryEvent_Attributes = 28 +const HistoryEvent_WorkflowExecutionCanceledEventAttributes_case case_HistoryEvent_Attributes = 29 +const HistoryEvent_RequestCancelExternalWorkflowExecutionInitiatedEventAttributes_case case_HistoryEvent_Attributes = 30 +const HistoryEvent_RequestCancelExternalWorkflowExecutionFailedEventAttributes_case case_HistoryEvent_Attributes = 31 +const HistoryEvent_ExternalWorkflowExecutionCancelRequestedEventAttributes_case case_HistoryEvent_Attributes = 32 +const HistoryEvent_WorkflowExecutionContinuedAsNewEventAttributes_case case_HistoryEvent_Attributes = 33 +const HistoryEvent_StartChildWorkflowExecutionInitiatedEventAttributes_case case_HistoryEvent_Attributes = 34 +const HistoryEvent_StartChildWorkflowExecutionFailedEventAttributes_case case_HistoryEvent_Attributes = 35 +const HistoryEvent_ChildWorkflowExecutionStartedEventAttributes_case case_HistoryEvent_Attributes = 36 +const HistoryEvent_ChildWorkflowExecutionCompletedEventAttributes_case case_HistoryEvent_Attributes = 37 +const HistoryEvent_ChildWorkflowExecutionFailedEventAttributes_case case_HistoryEvent_Attributes = 38 +const HistoryEvent_ChildWorkflowExecutionCanceledEventAttributes_case case_HistoryEvent_Attributes = 39 +const HistoryEvent_ChildWorkflowExecutionTimedOutEventAttributes_case case_HistoryEvent_Attributes = 40 +const HistoryEvent_ChildWorkflowExecutionTerminatedEventAttributes_case case_HistoryEvent_Attributes = 41 +const HistoryEvent_SignalExternalWorkflowExecutionInitiatedEventAttributes_case case_HistoryEvent_Attributes = 42 +const HistoryEvent_SignalExternalWorkflowExecutionFailedEventAttributes_case case_HistoryEvent_Attributes = 43 +const HistoryEvent_ExternalWorkflowExecutionSignaledEventAttributes_case case_HistoryEvent_Attributes = 44 +const HistoryEvent_UpsertWorkflowSearchAttributesEventAttributes_case case_HistoryEvent_Attributes = 45 +const HistoryEvent_WorkflowExecutionUpdateAcceptedEventAttributes_case case_HistoryEvent_Attributes = 46 +const HistoryEvent_WorkflowExecutionUpdateRejectedEventAttributes_case case_HistoryEvent_Attributes = 47 +const HistoryEvent_WorkflowExecutionUpdateCompletedEventAttributes_case case_HistoryEvent_Attributes = 48 +const HistoryEvent_WorkflowPropertiesModifiedExternallyEventAttributes_case case_HistoryEvent_Attributes = 49 +const HistoryEvent_ActivityPropertiesModifiedExternallyEventAttributes_case case_HistoryEvent_Attributes = 50 +const HistoryEvent_WorkflowPropertiesModifiedEventAttributes_case case_HistoryEvent_Attributes = 51 +const HistoryEvent_WorkflowExecutionUpdateAdmittedEventAttributes_case case_HistoryEvent_Attributes = 52 +const HistoryEvent_NexusOperationScheduledEventAttributes_case case_HistoryEvent_Attributes = 53 +const HistoryEvent_NexusOperationStartedEventAttributes_case case_HistoryEvent_Attributes = 54 +const HistoryEvent_NexusOperationCompletedEventAttributes_case case_HistoryEvent_Attributes = 55 +const HistoryEvent_NexusOperationFailedEventAttributes_case case_HistoryEvent_Attributes = 56 +const HistoryEvent_NexusOperationCanceledEventAttributes_case case_HistoryEvent_Attributes = 57 +const HistoryEvent_NexusOperationTimedOutEventAttributes_case case_HistoryEvent_Attributes = 58 +const HistoryEvent_NexusOperationCancelRequestedEventAttributes_case case_HistoryEvent_Attributes = 59 +const HistoryEvent_WorkflowExecutionOptionsUpdatedEventAttributes_case case_HistoryEvent_Attributes = 60 +const HistoryEvent_NexusOperationCancelRequestCompletedEventAttributes_case case_HistoryEvent_Attributes = 61 +const HistoryEvent_NexusOperationCancelRequestFailedEventAttributes_case case_HistoryEvent_Attributes = 62 +const HistoryEvent_WorkflowExecutionPausedEventAttributes_case case_HistoryEvent_Attributes = 63 +const HistoryEvent_WorkflowExecutionUnpausedEventAttributes_case case_HistoryEvent_Attributes = 64 + +func (x *HistoryEvent) WhichAttributes() case_HistoryEvent_Attributes { + if x == nil { + return HistoryEvent_Attributes_not_set_case + } + switch x.Attributes.(type) { + case *HistoryEvent_WorkflowExecutionStartedEventAttributes: + return HistoryEvent_WorkflowExecutionStartedEventAttributes_case + case *HistoryEvent_WorkflowExecutionCompletedEventAttributes: + return HistoryEvent_WorkflowExecutionCompletedEventAttributes_case + case *HistoryEvent_WorkflowExecutionFailedEventAttributes: + return HistoryEvent_WorkflowExecutionFailedEventAttributes_case + case *HistoryEvent_WorkflowExecutionTimedOutEventAttributes: + return HistoryEvent_WorkflowExecutionTimedOutEventAttributes_case + case *HistoryEvent_WorkflowTaskScheduledEventAttributes: + return HistoryEvent_WorkflowTaskScheduledEventAttributes_case + case *HistoryEvent_WorkflowTaskStartedEventAttributes: + return HistoryEvent_WorkflowTaskStartedEventAttributes_case + case *HistoryEvent_WorkflowTaskCompletedEventAttributes: + return HistoryEvent_WorkflowTaskCompletedEventAttributes_case + case *HistoryEvent_WorkflowTaskTimedOutEventAttributes: + return HistoryEvent_WorkflowTaskTimedOutEventAttributes_case + case *HistoryEvent_WorkflowTaskFailedEventAttributes: + return HistoryEvent_WorkflowTaskFailedEventAttributes_case + case *HistoryEvent_ActivityTaskScheduledEventAttributes: + return HistoryEvent_ActivityTaskScheduledEventAttributes_case + case *HistoryEvent_ActivityTaskStartedEventAttributes: + return HistoryEvent_ActivityTaskStartedEventAttributes_case + case *HistoryEvent_ActivityTaskCompletedEventAttributes: + return HistoryEvent_ActivityTaskCompletedEventAttributes_case + case *HistoryEvent_ActivityTaskFailedEventAttributes: + return HistoryEvent_ActivityTaskFailedEventAttributes_case + case *HistoryEvent_ActivityTaskTimedOutEventAttributes: + return HistoryEvent_ActivityTaskTimedOutEventAttributes_case + case *HistoryEvent_TimerStartedEventAttributes: + return HistoryEvent_TimerStartedEventAttributes_case + case *HistoryEvent_TimerFiredEventAttributes: + return HistoryEvent_TimerFiredEventAttributes_case + case *HistoryEvent_ActivityTaskCancelRequestedEventAttributes: + return HistoryEvent_ActivityTaskCancelRequestedEventAttributes_case + case *HistoryEvent_ActivityTaskCanceledEventAttributes: + return HistoryEvent_ActivityTaskCanceledEventAttributes_case + case *HistoryEvent_TimerCanceledEventAttributes: + return HistoryEvent_TimerCanceledEventAttributes_case + case *HistoryEvent_MarkerRecordedEventAttributes: + return HistoryEvent_MarkerRecordedEventAttributes_case + case *HistoryEvent_WorkflowExecutionSignaledEventAttributes: + return HistoryEvent_WorkflowExecutionSignaledEventAttributes_case + case *HistoryEvent_WorkflowExecutionTerminatedEventAttributes: + return HistoryEvent_WorkflowExecutionTerminatedEventAttributes_case + case *HistoryEvent_WorkflowExecutionCancelRequestedEventAttributes: + return HistoryEvent_WorkflowExecutionCancelRequestedEventAttributes_case + case *HistoryEvent_WorkflowExecutionCanceledEventAttributes: + return HistoryEvent_WorkflowExecutionCanceledEventAttributes_case + case *HistoryEvent_RequestCancelExternalWorkflowExecutionInitiatedEventAttributes: + return HistoryEvent_RequestCancelExternalWorkflowExecutionInitiatedEventAttributes_case + case *HistoryEvent_RequestCancelExternalWorkflowExecutionFailedEventAttributes: + return HistoryEvent_RequestCancelExternalWorkflowExecutionFailedEventAttributes_case + case *HistoryEvent_ExternalWorkflowExecutionCancelRequestedEventAttributes: + return HistoryEvent_ExternalWorkflowExecutionCancelRequestedEventAttributes_case + case *HistoryEvent_WorkflowExecutionContinuedAsNewEventAttributes: + return HistoryEvent_WorkflowExecutionContinuedAsNewEventAttributes_case + case *HistoryEvent_StartChildWorkflowExecutionInitiatedEventAttributes: + return HistoryEvent_StartChildWorkflowExecutionInitiatedEventAttributes_case + case *HistoryEvent_StartChildWorkflowExecutionFailedEventAttributes: + return HistoryEvent_StartChildWorkflowExecutionFailedEventAttributes_case + case *HistoryEvent_ChildWorkflowExecutionStartedEventAttributes: + return HistoryEvent_ChildWorkflowExecutionStartedEventAttributes_case + case *HistoryEvent_ChildWorkflowExecutionCompletedEventAttributes: + return HistoryEvent_ChildWorkflowExecutionCompletedEventAttributes_case + case *HistoryEvent_ChildWorkflowExecutionFailedEventAttributes: + return HistoryEvent_ChildWorkflowExecutionFailedEventAttributes_case + case *HistoryEvent_ChildWorkflowExecutionCanceledEventAttributes: + return HistoryEvent_ChildWorkflowExecutionCanceledEventAttributes_case + case *HistoryEvent_ChildWorkflowExecutionTimedOutEventAttributes: + return HistoryEvent_ChildWorkflowExecutionTimedOutEventAttributes_case + case *HistoryEvent_ChildWorkflowExecutionTerminatedEventAttributes: + return HistoryEvent_ChildWorkflowExecutionTerminatedEventAttributes_case + case *HistoryEvent_SignalExternalWorkflowExecutionInitiatedEventAttributes: + return HistoryEvent_SignalExternalWorkflowExecutionInitiatedEventAttributes_case + case *HistoryEvent_SignalExternalWorkflowExecutionFailedEventAttributes: + return HistoryEvent_SignalExternalWorkflowExecutionFailedEventAttributes_case + case *HistoryEvent_ExternalWorkflowExecutionSignaledEventAttributes: + return HistoryEvent_ExternalWorkflowExecutionSignaledEventAttributes_case + case *HistoryEvent_UpsertWorkflowSearchAttributesEventAttributes: + return HistoryEvent_UpsertWorkflowSearchAttributesEventAttributes_case + case *HistoryEvent_WorkflowExecutionUpdateAcceptedEventAttributes: + return HistoryEvent_WorkflowExecutionUpdateAcceptedEventAttributes_case + case *HistoryEvent_WorkflowExecutionUpdateRejectedEventAttributes: + return HistoryEvent_WorkflowExecutionUpdateRejectedEventAttributes_case + case *HistoryEvent_WorkflowExecutionUpdateCompletedEventAttributes: + return HistoryEvent_WorkflowExecutionUpdateCompletedEventAttributes_case + case *HistoryEvent_WorkflowPropertiesModifiedExternallyEventAttributes: + return HistoryEvent_WorkflowPropertiesModifiedExternallyEventAttributes_case + case *HistoryEvent_ActivityPropertiesModifiedExternallyEventAttributes: + return HistoryEvent_ActivityPropertiesModifiedExternallyEventAttributes_case + case *HistoryEvent_WorkflowPropertiesModifiedEventAttributes: + return HistoryEvent_WorkflowPropertiesModifiedEventAttributes_case + case *HistoryEvent_WorkflowExecutionUpdateAdmittedEventAttributes: + return HistoryEvent_WorkflowExecutionUpdateAdmittedEventAttributes_case + case *HistoryEvent_NexusOperationScheduledEventAttributes: + return HistoryEvent_NexusOperationScheduledEventAttributes_case + case *HistoryEvent_NexusOperationStartedEventAttributes: + return HistoryEvent_NexusOperationStartedEventAttributes_case + case *HistoryEvent_NexusOperationCompletedEventAttributes: + return HistoryEvent_NexusOperationCompletedEventAttributes_case + case *HistoryEvent_NexusOperationFailedEventAttributes: + return HistoryEvent_NexusOperationFailedEventAttributes_case + case *HistoryEvent_NexusOperationCanceledEventAttributes: + return HistoryEvent_NexusOperationCanceledEventAttributes_case + case *HistoryEvent_NexusOperationTimedOutEventAttributes: + return HistoryEvent_NexusOperationTimedOutEventAttributes_case + case *HistoryEvent_NexusOperationCancelRequestedEventAttributes: + return HistoryEvent_NexusOperationCancelRequestedEventAttributes_case + case *HistoryEvent_WorkflowExecutionOptionsUpdatedEventAttributes: + return HistoryEvent_WorkflowExecutionOptionsUpdatedEventAttributes_case + case *HistoryEvent_NexusOperationCancelRequestCompletedEventAttributes: + return HistoryEvent_NexusOperationCancelRequestCompletedEventAttributes_case + case *HistoryEvent_NexusOperationCancelRequestFailedEventAttributes: + return HistoryEvent_NexusOperationCancelRequestFailedEventAttributes_case + case *HistoryEvent_WorkflowExecutionPausedEventAttributes: + return HistoryEvent_WorkflowExecutionPausedEventAttributes_case + case *HistoryEvent_WorkflowExecutionUnpausedEventAttributes: + return HistoryEvent_WorkflowExecutionUnpausedEventAttributes_case + default: + return HistoryEvent_Attributes_not_set_case + } +} + +type HistoryEvent_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Monotonically increasing event number, starts at 1. + EventId int64 + EventTime *timestamppb.Timestamp + EventType v12.EventType + // Failover version of the event, used by the server for multi-cluster replication and history + // versioning. SDKs generally ignore this field. + Version int64 + // Identifier used by the service to order replication and transfer tasks associated with this + // event. SDKs generally ignore this field. + TaskId int64 + // Set to true when the SDK may ignore the event as it does not impact workflow state or + // information in any way that the SDK need be concerned with. If an SDK encounters an event + // type which it does not understand, it must error unless this is true. If it is true, it's + // acceptable for the event type and/or attributes to be uninterpretable. + WorkerMayIgnore bool + // Metadata on the event. This is often carried over from commands and client calls. Most events + // won't have this information, and how this information is used is dependent upon the interface + // that reads it. + // + // Current well-known uses: + // - workflow_execution_started_event_attributes - summary and details from start workflow. + // - timer_started_event_attributes - summary represents an identifier for the timer for use by + // user interfaces. + UserMetadata *v16.UserMetadata + // Links associated with the event. + Links []*v1.Link + // The event details. The type must match that in `event_type`. + + // Fields of oneof Attributes: + WorkflowExecutionStartedEventAttributes *WorkflowExecutionStartedEventAttributes + WorkflowExecutionCompletedEventAttributes *WorkflowExecutionCompletedEventAttributes + WorkflowExecutionFailedEventAttributes *WorkflowExecutionFailedEventAttributes + WorkflowExecutionTimedOutEventAttributes *WorkflowExecutionTimedOutEventAttributes + WorkflowTaskScheduledEventAttributes *WorkflowTaskScheduledEventAttributes + WorkflowTaskStartedEventAttributes *WorkflowTaskStartedEventAttributes + WorkflowTaskCompletedEventAttributes *WorkflowTaskCompletedEventAttributes + WorkflowTaskTimedOutEventAttributes *WorkflowTaskTimedOutEventAttributes + WorkflowTaskFailedEventAttributes *WorkflowTaskFailedEventAttributes + ActivityTaskScheduledEventAttributes *ActivityTaskScheduledEventAttributes + ActivityTaskStartedEventAttributes *ActivityTaskStartedEventAttributes + ActivityTaskCompletedEventAttributes *ActivityTaskCompletedEventAttributes + ActivityTaskFailedEventAttributes *ActivityTaskFailedEventAttributes + ActivityTaskTimedOutEventAttributes *ActivityTaskTimedOutEventAttributes + TimerStartedEventAttributes *TimerStartedEventAttributes + TimerFiredEventAttributes *TimerFiredEventAttributes + ActivityTaskCancelRequestedEventAttributes *ActivityTaskCancelRequestedEventAttributes + ActivityTaskCanceledEventAttributes *ActivityTaskCanceledEventAttributes + TimerCanceledEventAttributes *TimerCanceledEventAttributes + MarkerRecordedEventAttributes *MarkerRecordedEventAttributes + WorkflowExecutionSignaledEventAttributes *WorkflowExecutionSignaledEventAttributes + WorkflowExecutionTerminatedEventAttributes *WorkflowExecutionTerminatedEventAttributes + WorkflowExecutionCancelRequestedEventAttributes *WorkflowExecutionCancelRequestedEventAttributes + WorkflowExecutionCanceledEventAttributes *WorkflowExecutionCanceledEventAttributes + RequestCancelExternalWorkflowExecutionInitiatedEventAttributes *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes + RequestCancelExternalWorkflowExecutionFailedEventAttributes *RequestCancelExternalWorkflowExecutionFailedEventAttributes + ExternalWorkflowExecutionCancelRequestedEventAttributes *ExternalWorkflowExecutionCancelRequestedEventAttributes + WorkflowExecutionContinuedAsNewEventAttributes *WorkflowExecutionContinuedAsNewEventAttributes + StartChildWorkflowExecutionInitiatedEventAttributes *StartChildWorkflowExecutionInitiatedEventAttributes + StartChildWorkflowExecutionFailedEventAttributes *StartChildWorkflowExecutionFailedEventAttributes + ChildWorkflowExecutionStartedEventAttributes *ChildWorkflowExecutionStartedEventAttributes + ChildWorkflowExecutionCompletedEventAttributes *ChildWorkflowExecutionCompletedEventAttributes + ChildWorkflowExecutionFailedEventAttributes *ChildWorkflowExecutionFailedEventAttributes + ChildWorkflowExecutionCanceledEventAttributes *ChildWorkflowExecutionCanceledEventAttributes + ChildWorkflowExecutionTimedOutEventAttributes *ChildWorkflowExecutionTimedOutEventAttributes + ChildWorkflowExecutionTerminatedEventAttributes *ChildWorkflowExecutionTerminatedEventAttributes + SignalExternalWorkflowExecutionInitiatedEventAttributes *SignalExternalWorkflowExecutionInitiatedEventAttributes + SignalExternalWorkflowExecutionFailedEventAttributes *SignalExternalWorkflowExecutionFailedEventAttributes + ExternalWorkflowExecutionSignaledEventAttributes *ExternalWorkflowExecutionSignaledEventAttributes + UpsertWorkflowSearchAttributesEventAttributes *UpsertWorkflowSearchAttributesEventAttributes + WorkflowExecutionUpdateAcceptedEventAttributes *WorkflowExecutionUpdateAcceptedEventAttributes + WorkflowExecutionUpdateRejectedEventAttributes *WorkflowExecutionUpdateRejectedEventAttributes + WorkflowExecutionUpdateCompletedEventAttributes *WorkflowExecutionUpdateCompletedEventAttributes + WorkflowPropertiesModifiedExternallyEventAttributes *WorkflowPropertiesModifiedExternallyEventAttributes + ActivityPropertiesModifiedExternallyEventAttributes *ActivityPropertiesModifiedExternallyEventAttributes + WorkflowPropertiesModifiedEventAttributes *WorkflowPropertiesModifiedEventAttributes + WorkflowExecutionUpdateAdmittedEventAttributes *WorkflowExecutionUpdateAdmittedEventAttributes + NexusOperationScheduledEventAttributes *NexusOperationScheduledEventAttributes + NexusOperationStartedEventAttributes *NexusOperationStartedEventAttributes + NexusOperationCompletedEventAttributes *NexusOperationCompletedEventAttributes + NexusOperationFailedEventAttributes *NexusOperationFailedEventAttributes + NexusOperationCanceledEventAttributes *NexusOperationCanceledEventAttributes + NexusOperationTimedOutEventAttributes *NexusOperationTimedOutEventAttributes + NexusOperationCancelRequestedEventAttributes *NexusOperationCancelRequestedEventAttributes + WorkflowExecutionOptionsUpdatedEventAttributes *WorkflowExecutionOptionsUpdatedEventAttributes + NexusOperationCancelRequestCompletedEventAttributes *NexusOperationCancelRequestCompletedEventAttributes + NexusOperationCancelRequestFailedEventAttributes *NexusOperationCancelRequestFailedEventAttributes + WorkflowExecutionPausedEventAttributes *WorkflowExecutionPausedEventAttributes + WorkflowExecutionUnpausedEventAttributes *WorkflowExecutionUnpausedEventAttributes + // -- end of Attributes +} + +func (b0 HistoryEvent_builder) Build() *HistoryEvent { + m0 := &HistoryEvent{} + b, x := &b0, m0 + _, _ = b, x + x.EventId = b.EventId + x.EventTime = b.EventTime + x.EventType = b.EventType + x.Version = b.Version + x.TaskId = b.TaskId + x.WorkerMayIgnore = b.WorkerMayIgnore + x.UserMetadata = b.UserMetadata + x.Links = b.Links + if b.WorkflowExecutionStartedEventAttributes != nil { + x.Attributes = &HistoryEvent_WorkflowExecutionStartedEventAttributes{b.WorkflowExecutionStartedEventAttributes} + } + if b.WorkflowExecutionCompletedEventAttributes != nil { + x.Attributes = &HistoryEvent_WorkflowExecutionCompletedEventAttributes{b.WorkflowExecutionCompletedEventAttributes} + } + if b.WorkflowExecutionFailedEventAttributes != nil { + x.Attributes = &HistoryEvent_WorkflowExecutionFailedEventAttributes{b.WorkflowExecutionFailedEventAttributes} + } + if b.WorkflowExecutionTimedOutEventAttributes != nil { + x.Attributes = &HistoryEvent_WorkflowExecutionTimedOutEventAttributes{b.WorkflowExecutionTimedOutEventAttributes} + } + if b.WorkflowTaskScheduledEventAttributes != nil { + x.Attributes = &HistoryEvent_WorkflowTaskScheduledEventAttributes{b.WorkflowTaskScheduledEventAttributes} + } + if b.WorkflowTaskStartedEventAttributes != nil { + x.Attributes = &HistoryEvent_WorkflowTaskStartedEventAttributes{b.WorkflowTaskStartedEventAttributes} + } + if b.WorkflowTaskCompletedEventAttributes != nil { + x.Attributes = &HistoryEvent_WorkflowTaskCompletedEventAttributes{b.WorkflowTaskCompletedEventAttributes} + } + if b.WorkflowTaskTimedOutEventAttributes != nil { + x.Attributes = &HistoryEvent_WorkflowTaskTimedOutEventAttributes{b.WorkflowTaskTimedOutEventAttributes} + } + if b.WorkflowTaskFailedEventAttributes != nil { + x.Attributes = &HistoryEvent_WorkflowTaskFailedEventAttributes{b.WorkflowTaskFailedEventAttributes} + } + if b.ActivityTaskScheduledEventAttributes != nil { + x.Attributes = &HistoryEvent_ActivityTaskScheduledEventAttributes{b.ActivityTaskScheduledEventAttributes} + } + if b.ActivityTaskStartedEventAttributes != nil { + x.Attributes = &HistoryEvent_ActivityTaskStartedEventAttributes{b.ActivityTaskStartedEventAttributes} + } + if b.ActivityTaskCompletedEventAttributes != nil { + x.Attributes = &HistoryEvent_ActivityTaskCompletedEventAttributes{b.ActivityTaskCompletedEventAttributes} + } + if b.ActivityTaskFailedEventAttributes != nil { + x.Attributes = &HistoryEvent_ActivityTaskFailedEventAttributes{b.ActivityTaskFailedEventAttributes} + } + if b.ActivityTaskTimedOutEventAttributes != nil { + x.Attributes = &HistoryEvent_ActivityTaskTimedOutEventAttributes{b.ActivityTaskTimedOutEventAttributes} + } + if b.TimerStartedEventAttributes != nil { + x.Attributes = &HistoryEvent_TimerStartedEventAttributes{b.TimerStartedEventAttributes} } - return nil + if b.TimerFiredEventAttributes != nil { + x.Attributes = &HistoryEvent_TimerFiredEventAttributes{b.TimerFiredEventAttributes} + } + if b.ActivityTaskCancelRequestedEventAttributes != nil { + x.Attributes = &HistoryEvent_ActivityTaskCancelRequestedEventAttributes{b.ActivityTaskCancelRequestedEventAttributes} + } + if b.ActivityTaskCanceledEventAttributes != nil { + x.Attributes = &HistoryEvent_ActivityTaskCanceledEventAttributes{b.ActivityTaskCanceledEventAttributes} + } + if b.TimerCanceledEventAttributes != nil { + x.Attributes = &HistoryEvent_TimerCanceledEventAttributes{b.TimerCanceledEventAttributes} + } + if b.MarkerRecordedEventAttributes != nil { + x.Attributes = &HistoryEvent_MarkerRecordedEventAttributes{b.MarkerRecordedEventAttributes} + } + if b.WorkflowExecutionSignaledEventAttributes != nil { + x.Attributes = &HistoryEvent_WorkflowExecutionSignaledEventAttributes{b.WorkflowExecutionSignaledEventAttributes} + } + if b.WorkflowExecutionTerminatedEventAttributes != nil { + x.Attributes = &HistoryEvent_WorkflowExecutionTerminatedEventAttributes{b.WorkflowExecutionTerminatedEventAttributes} + } + if b.WorkflowExecutionCancelRequestedEventAttributes != nil { + x.Attributes = &HistoryEvent_WorkflowExecutionCancelRequestedEventAttributes{b.WorkflowExecutionCancelRequestedEventAttributes} + } + if b.WorkflowExecutionCanceledEventAttributes != nil { + x.Attributes = &HistoryEvent_WorkflowExecutionCanceledEventAttributes{b.WorkflowExecutionCanceledEventAttributes} + } + if b.RequestCancelExternalWorkflowExecutionInitiatedEventAttributes != nil { + x.Attributes = &HistoryEvent_RequestCancelExternalWorkflowExecutionInitiatedEventAttributes{b.RequestCancelExternalWorkflowExecutionInitiatedEventAttributes} + } + if b.RequestCancelExternalWorkflowExecutionFailedEventAttributes != nil { + x.Attributes = &HistoryEvent_RequestCancelExternalWorkflowExecutionFailedEventAttributes{b.RequestCancelExternalWorkflowExecutionFailedEventAttributes} + } + if b.ExternalWorkflowExecutionCancelRequestedEventAttributes != nil { + x.Attributes = &HistoryEvent_ExternalWorkflowExecutionCancelRequestedEventAttributes{b.ExternalWorkflowExecutionCancelRequestedEventAttributes} + } + if b.WorkflowExecutionContinuedAsNewEventAttributes != nil { + x.Attributes = &HistoryEvent_WorkflowExecutionContinuedAsNewEventAttributes{b.WorkflowExecutionContinuedAsNewEventAttributes} + } + if b.StartChildWorkflowExecutionInitiatedEventAttributes != nil { + x.Attributes = &HistoryEvent_StartChildWorkflowExecutionInitiatedEventAttributes{b.StartChildWorkflowExecutionInitiatedEventAttributes} + } + if b.StartChildWorkflowExecutionFailedEventAttributes != nil { + x.Attributes = &HistoryEvent_StartChildWorkflowExecutionFailedEventAttributes{b.StartChildWorkflowExecutionFailedEventAttributes} + } + if b.ChildWorkflowExecutionStartedEventAttributes != nil { + x.Attributes = &HistoryEvent_ChildWorkflowExecutionStartedEventAttributes{b.ChildWorkflowExecutionStartedEventAttributes} + } + if b.ChildWorkflowExecutionCompletedEventAttributes != nil { + x.Attributes = &HistoryEvent_ChildWorkflowExecutionCompletedEventAttributes{b.ChildWorkflowExecutionCompletedEventAttributes} + } + if b.ChildWorkflowExecutionFailedEventAttributes != nil { + x.Attributes = &HistoryEvent_ChildWorkflowExecutionFailedEventAttributes{b.ChildWorkflowExecutionFailedEventAttributes} + } + if b.ChildWorkflowExecutionCanceledEventAttributes != nil { + x.Attributes = &HistoryEvent_ChildWorkflowExecutionCanceledEventAttributes{b.ChildWorkflowExecutionCanceledEventAttributes} + } + if b.ChildWorkflowExecutionTimedOutEventAttributes != nil { + x.Attributes = &HistoryEvent_ChildWorkflowExecutionTimedOutEventAttributes{b.ChildWorkflowExecutionTimedOutEventAttributes} + } + if b.ChildWorkflowExecutionTerminatedEventAttributes != nil { + x.Attributes = &HistoryEvent_ChildWorkflowExecutionTerminatedEventAttributes{b.ChildWorkflowExecutionTerminatedEventAttributes} + } + if b.SignalExternalWorkflowExecutionInitiatedEventAttributes != nil { + x.Attributes = &HistoryEvent_SignalExternalWorkflowExecutionInitiatedEventAttributes{b.SignalExternalWorkflowExecutionInitiatedEventAttributes} + } + if b.SignalExternalWorkflowExecutionFailedEventAttributes != nil { + x.Attributes = &HistoryEvent_SignalExternalWorkflowExecutionFailedEventAttributes{b.SignalExternalWorkflowExecutionFailedEventAttributes} + } + if b.ExternalWorkflowExecutionSignaledEventAttributes != nil { + x.Attributes = &HistoryEvent_ExternalWorkflowExecutionSignaledEventAttributes{b.ExternalWorkflowExecutionSignaledEventAttributes} + } + if b.UpsertWorkflowSearchAttributesEventAttributes != nil { + x.Attributes = &HistoryEvent_UpsertWorkflowSearchAttributesEventAttributes{b.UpsertWorkflowSearchAttributesEventAttributes} + } + if b.WorkflowExecutionUpdateAcceptedEventAttributes != nil { + x.Attributes = &HistoryEvent_WorkflowExecutionUpdateAcceptedEventAttributes{b.WorkflowExecutionUpdateAcceptedEventAttributes} + } + if b.WorkflowExecutionUpdateRejectedEventAttributes != nil { + x.Attributes = &HistoryEvent_WorkflowExecutionUpdateRejectedEventAttributes{b.WorkflowExecutionUpdateRejectedEventAttributes} + } + if b.WorkflowExecutionUpdateCompletedEventAttributes != nil { + x.Attributes = &HistoryEvent_WorkflowExecutionUpdateCompletedEventAttributes{b.WorkflowExecutionUpdateCompletedEventAttributes} + } + if b.WorkflowPropertiesModifiedExternallyEventAttributes != nil { + x.Attributes = &HistoryEvent_WorkflowPropertiesModifiedExternallyEventAttributes{b.WorkflowPropertiesModifiedExternallyEventAttributes} + } + if b.ActivityPropertiesModifiedExternallyEventAttributes != nil { + x.Attributes = &HistoryEvent_ActivityPropertiesModifiedExternallyEventAttributes{b.ActivityPropertiesModifiedExternallyEventAttributes} + } + if b.WorkflowPropertiesModifiedEventAttributes != nil { + x.Attributes = &HistoryEvent_WorkflowPropertiesModifiedEventAttributes{b.WorkflowPropertiesModifiedEventAttributes} + } + if b.WorkflowExecutionUpdateAdmittedEventAttributes != nil { + x.Attributes = &HistoryEvent_WorkflowExecutionUpdateAdmittedEventAttributes{b.WorkflowExecutionUpdateAdmittedEventAttributes} + } + if b.NexusOperationScheduledEventAttributes != nil { + x.Attributes = &HistoryEvent_NexusOperationScheduledEventAttributes{b.NexusOperationScheduledEventAttributes} + } + if b.NexusOperationStartedEventAttributes != nil { + x.Attributes = &HistoryEvent_NexusOperationStartedEventAttributes{b.NexusOperationStartedEventAttributes} + } + if b.NexusOperationCompletedEventAttributes != nil { + x.Attributes = &HistoryEvent_NexusOperationCompletedEventAttributes{b.NexusOperationCompletedEventAttributes} + } + if b.NexusOperationFailedEventAttributes != nil { + x.Attributes = &HistoryEvent_NexusOperationFailedEventAttributes{b.NexusOperationFailedEventAttributes} + } + if b.NexusOperationCanceledEventAttributes != nil { + x.Attributes = &HistoryEvent_NexusOperationCanceledEventAttributes{b.NexusOperationCanceledEventAttributes} + } + if b.NexusOperationTimedOutEventAttributes != nil { + x.Attributes = &HistoryEvent_NexusOperationTimedOutEventAttributes{b.NexusOperationTimedOutEventAttributes} + } + if b.NexusOperationCancelRequestedEventAttributes != nil { + x.Attributes = &HistoryEvent_NexusOperationCancelRequestedEventAttributes{b.NexusOperationCancelRequestedEventAttributes} + } + if b.WorkflowExecutionOptionsUpdatedEventAttributes != nil { + x.Attributes = &HistoryEvent_WorkflowExecutionOptionsUpdatedEventAttributes{b.WorkflowExecutionOptionsUpdatedEventAttributes} + } + if b.NexusOperationCancelRequestCompletedEventAttributes != nil { + x.Attributes = &HistoryEvent_NexusOperationCancelRequestCompletedEventAttributes{b.NexusOperationCancelRequestCompletedEventAttributes} + } + if b.NexusOperationCancelRequestFailedEventAttributes != nil { + x.Attributes = &HistoryEvent_NexusOperationCancelRequestFailedEventAttributes{b.NexusOperationCancelRequestFailedEventAttributes} + } + if b.WorkflowExecutionPausedEventAttributes != nil { + x.Attributes = &HistoryEvent_WorkflowExecutionPausedEventAttributes{b.WorkflowExecutionPausedEventAttributes} + } + if b.WorkflowExecutionUnpausedEventAttributes != nil { + x.Attributes = &HistoryEvent_WorkflowExecutionUnpausedEventAttributes{b.WorkflowExecutionUnpausedEventAttributes} + } + return m0 +} + +type case_HistoryEvent_Attributes protoreflect.FieldNumber + +func (x case_HistoryEvent_Attributes) String() string { + switch x { + case HistoryEvent_Attributes_not_set_case: + return "HistoryEventAttributesNotSetCase" + case HistoryEvent_WorkflowExecutionStartedEventAttributes_case: + return "HistoryEventWorkflowExecutionStartedEventAttributesCase" + case HistoryEvent_WorkflowExecutionCompletedEventAttributes_case: + return "HistoryEventWorkflowExecutionCompletedEventAttributesCase" + case HistoryEvent_WorkflowExecutionFailedEventAttributes_case: + return "HistoryEventWorkflowExecutionFailedEventAttributesCase" + case HistoryEvent_WorkflowExecutionTimedOutEventAttributes_case: + return "HistoryEventWorkflowExecutionTimedOutEventAttributesCase" + case HistoryEvent_WorkflowTaskScheduledEventAttributes_case: + return "HistoryEventWorkflowTaskScheduledEventAttributesCase" + case HistoryEvent_WorkflowTaskStartedEventAttributes_case: + return "HistoryEventWorkflowTaskStartedEventAttributesCase" + case HistoryEvent_WorkflowTaskCompletedEventAttributes_case: + return "HistoryEventWorkflowTaskCompletedEventAttributesCase" + case HistoryEvent_WorkflowTaskTimedOutEventAttributes_case: + return "HistoryEventWorkflowTaskTimedOutEventAttributesCase" + case HistoryEvent_WorkflowTaskFailedEventAttributes_case: + return "HistoryEventWorkflowTaskFailedEventAttributesCase" + case HistoryEvent_ActivityTaskScheduledEventAttributes_case: + return "HistoryEventActivityTaskScheduledEventAttributesCase" + case HistoryEvent_ActivityTaskStartedEventAttributes_case: + return "HistoryEventActivityTaskStartedEventAttributesCase" + case HistoryEvent_ActivityTaskCompletedEventAttributes_case: + return "HistoryEventActivityTaskCompletedEventAttributesCase" + case HistoryEvent_ActivityTaskFailedEventAttributes_case: + return "HistoryEventActivityTaskFailedEventAttributesCase" + case HistoryEvent_ActivityTaskTimedOutEventAttributes_case: + return "HistoryEventActivityTaskTimedOutEventAttributesCase" + case HistoryEvent_TimerStartedEventAttributes_case: + return "HistoryEventTimerStartedEventAttributesCase" + case HistoryEvent_TimerFiredEventAttributes_case: + return "HistoryEventTimerFiredEventAttributesCase" + case HistoryEvent_ActivityTaskCancelRequestedEventAttributes_case: + return "HistoryEventActivityTaskCancelRequestedEventAttributesCase" + case HistoryEvent_ActivityTaskCanceledEventAttributes_case: + return "HistoryEventActivityTaskCanceledEventAttributesCase" + case HistoryEvent_TimerCanceledEventAttributes_case: + return "HistoryEventTimerCanceledEventAttributesCase" + case HistoryEvent_MarkerRecordedEventAttributes_case: + return "HistoryEventMarkerRecordedEventAttributesCase" + case HistoryEvent_WorkflowExecutionSignaledEventAttributes_case: + return "HistoryEventWorkflowExecutionSignaledEventAttributesCase" + case HistoryEvent_WorkflowExecutionTerminatedEventAttributes_case: + return "HistoryEventWorkflowExecutionTerminatedEventAttributesCase" + case HistoryEvent_WorkflowExecutionCancelRequestedEventAttributes_case: + return "HistoryEventWorkflowExecutionCancelRequestedEventAttributesCase" + case HistoryEvent_WorkflowExecutionCanceledEventAttributes_case: + return "HistoryEventWorkflowExecutionCanceledEventAttributesCase" + case HistoryEvent_RequestCancelExternalWorkflowExecutionInitiatedEventAttributes_case: + return "HistoryEventRequestCancelExternalWorkflowExecutionInitiatedEventAttributesCase" + case HistoryEvent_RequestCancelExternalWorkflowExecutionFailedEventAttributes_case: + return "HistoryEventRequestCancelExternalWorkflowExecutionFailedEventAttributesCase" + case HistoryEvent_ExternalWorkflowExecutionCancelRequestedEventAttributes_case: + return "HistoryEventExternalWorkflowExecutionCancelRequestedEventAttributesCase" + case HistoryEvent_WorkflowExecutionContinuedAsNewEventAttributes_case: + return "HistoryEventWorkflowExecutionContinuedAsNewEventAttributesCase" + case HistoryEvent_StartChildWorkflowExecutionInitiatedEventAttributes_case: + return "HistoryEventStartChildWorkflowExecutionInitiatedEventAttributesCase" + case HistoryEvent_StartChildWorkflowExecutionFailedEventAttributes_case: + return "HistoryEventStartChildWorkflowExecutionFailedEventAttributesCase" + case HistoryEvent_ChildWorkflowExecutionStartedEventAttributes_case: + return "HistoryEventChildWorkflowExecutionStartedEventAttributesCase" + case HistoryEvent_ChildWorkflowExecutionCompletedEventAttributes_case: + return "HistoryEventChildWorkflowExecutionCompletedEventAttributesCase" + case HistoryEvent_ChildWorkflowExecutionFailedEventAttributes_case: + return "HistoryEventChildWorkflowExecutionFailedEventAttributesCase" + case HistoryEvent_ChildWorkflowExecutionCanceledEventAttributes_case: + return "HistoryEventChildWorkflowExecutionCanceledEventAttributesCase" + case HistoryEvent_ChildWorkflowExecutionTimedOutEventAttributes_case: + return "HistoryEventChildWorkflowExecutionTimedOutEventAttributesCase" + case HistoryEvent_ChildWorkflowExecutionTerminatedEventAttributes_case: + return "HistoryEventChildWorkflowExecutionTerminatedEventAttributesCase" + case HistoryEvent_SignalExternalWorkflowExecutionInitiatedEventAttributes_case: + return "HistoryEventSignalExternalWorkflowExecutionInitiatedEventAttributesCase" + case HistoryEvent_SignalExternalWorkflowExecutionFailedEventAttributes_case: + return "HistoryEventSignalExternalWorkflowExecutionFailedEventAttributesCase" + case HistoryEvent_ExternalWorkflowExecutionSignaledEventAttributes_case: + return "HistoryEventExternalWorkflowExecutionSignaledEventAttributesCase" + case HistoryEvent_UpsertWorkflowSearchAttributesEventAttributes_case: + return "HistoryEventUpsertWorkflowSearchAttributesEventAttributesCase" + case HistoryEvent_WorkflowExecutionUpdateAcceptedEventAttributes_case: + return "HistoryEventWorkflowExecutionUpdateAcceptedEventAttributesCase" + case HistoryEvent_WorkflowExecutionUpdateRejectedEventAttributes_case: + return "HistoryEventWorkflowExecutionUpdateRejectedEventAttributesCase" + case HistoryEvent_WorkflowExecutionUpdateCompletedEventAttributes_case: + return "HistoryEventWorkflowExecutionUpdateCompletedEventAttributesCase" + case HistoryEvent_WorkflowPropertiesModifiedExternallyEventAttributes_case: + return "HistoryEventWorkflowPropertiesModifiedExternallyEventAttributesCase" + case HistoryEvent_ActivityPropertiesModifiedExternallyEventAttributes_case: + return "HistoryEventActivityPropertiesModifiedExternallyEventAttributesCase" + case HistoryEvent_WorkflowPropertiesModifiedEventAttributes_case: + return "HistoryEventWorkflowPropertiesModifiedEventAttributesCase" + case HistoryEvent_WorkflowExecutionUpdateAdmittedEventAttributes_case: + return "HistoryEventWorkflowExecutionUpdateAdmittedEventAttributesCase" + case HistoryEvent_NexusOperationScheduledEventAttributes_case: + return "HistoryEventNexusOperationScheduledEventAttributesCase" + case HistoryEvent_NexusOperationStartedEventAttributes_case: + return "HistoryEventNexusOperationStartedEventAttributesCase" + case HistoryEvent_NexusOperationCompletedEventAttributes_case: + return "HistoryEventNexusOperationCompletedEventAttributesCase" + case HistoryEvent_NexusOperationFailedEventAttributes_case: + return "HistoryEventNexusOperationFailedEventAttributesCase" + case HistoryEvent_NexusOperationCanceledEventAttributes_case: + return "HistoryEventNexusOperationCanceledEventAttributesCase" + case HistoryEvent_NexusOperationTimedOutEventAttributes_case: + return "HistoryEventNexusOperationTimedOutEventAttributesCase" + case HistoryEvent_NexusOperationCancelRequestedEventAttributes_case: + return "HistoryEventNexusOperationCancelRequestedEventAttributesCase" + case HistoryEvent_WorkflowExecutionOptionsUpdatedEventAttributes_case: + return "HistoryEventWorkflowExecutionOptionsUpdatedEventAttributesCase" + case HistoryEvent_NexusOperationCancelRequestCompletedEventAttributes_case: + return "HistoryEventNexusOperationCancelRequestCompletedEventAttributesCase" + case HistoryEvent_NexusOperationCancelRequestFailedEventAttributes_case: + return "HistoryEventNexusOperationCancelRequestFailedEventAttributesCase" + case HistoryEvent_WorkflowExecutionPausedEventAttributes_case: + return "HistoryEventWorkflowExecutionPausedEventAttributesCase" + case HistoryEvent_WorkflowExecutionUnpausedEventAttributes_case: + return "HistoryEventWorkflowExecutionUnpausedEventAttributesCase" + default: + return strconv.Itoa(int(x)) + } + } type isHistoryEvent_Attributes interface { @@ -6662,7 +13222,7 @@ func (*HistoryEvent_WorkflowExecutionPausedEventAttributes) isHistoryEvent_Attri func (*HistoryEvent_WorkflowExecutionUnpausedEventAttributes) isHistoryEvent_Attributes() {} type History struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Events []*HistoryEvent `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -6693,11 +13253,6 @@ func (x *History) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use History.ProtoReflect.Descriptor instead. -func (*History) Descriptor() ([]byte, []int) { - return file_temporal_api_history_v1_message_proto_rawDescGZIP(), []int{60} -} - func (x *History) GetEvents() []*HistoryEvent { if x != nil { return x.Events @@ -6705,6 +13260,24 @@ func (x *History) GetEvents() []*HistoryEvent { return nil } +func (x *History) SetEvents(v []*HistoryEvent) { + x.Events = v +} + +type History_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Events []*HistoryEvent +} + +func (b0 History_builder) Build() *History { + m0 := &History{} + b, x := &b0, m0 + _, _ = b, x + x.Events = b.Events + return m0 +} + var File_temporal_api_history_v1_message_proto protoreflect.FileDescriptor const file_temporal_api_history_v1_message_proto_rawDesc = "" + @@ -7244,18 +13817,6 @@ const file_temporal_api_history_v1_message_proto_rawDesc = "" + "\x06events\x18\x01 \x03(\v2%.temporal.api.history.v1.HistoryEventR\x06eventsB\x8e\x01\n" + "\x1aio.temporal.api.history.v1B\fMessageProtoP\x01Z%go.temporal.io/api/history/v1;history\xaa\x02\x19Temporalio.Api.History.V1\xea\x02\x1cTemporalio::Api::History::V1b\x06proto3" -var ( - file_temporal_api_history_v1_message_proto_rawDescOnce sync.Once - file_temporal_api_history_v1_message_proto_rawDescData []byte -) - -func file_temporal_api_history_v1_message_proto_rawDescGZIP() []byte { - file_temporal_api_history_v1_message_proto_rawDescOnce.Do(func() { - file_temporal_api_history_v1_message_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_api_history_v1_message_proto_rawDesc), len(file_temporal_api_history_v1_message_proto_rawDesc))) - }) - return file_temporal_api_history_v1_message_proto_rawDescData -} - var file_temporal_api_history_v1_message_proto_msgTypes = make([]protoimpl.MessageInfo, 63) var file_temporal_api_history_v1_message_proto_goTypes = []any{ (*WorkflowExecutionStartedEventAttributes)(nil), // 0: temporal.api.history.v1.WorkflowExecutionStartedEventAttributes diff --git a/history/v1/message_protoopaque.pb.go b/history/v1/message_protoopaque.pb.go new file mode 100644 index 00000000..ff0d88c4 --- /dev/null +++ b/history/v1/message_protoopaque.pb.go @@ -0,0 +1,13602 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// plugins: +// protoc-gen-go +// protoc +// source: temporal/api/history/v1/message.proto + +//go:build protoopaque + +package history + +import ( + reflect "reflect" + "strconv" + unsafe "unsafe" + + v1 "go.temporal.io/api/common/v1" + v15 "go.temporal.io/api/deployment/v1" + v12 "go.temporal.io/api/enums/v1" + v13 "go.temporal.io/api/failure/v1" + v16 "go.temporal.io/api/sdk/v1" + v11 "go.temporal.io/api/taskqueue/v1" + v17 "go.temporal.io/api/update/v1" + v14 "go.temporal.io/api/workflow/v1" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + durationpb "google.golang.org/protobuf/types/known/durationpb" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Always the first event in workflow history +type WorkflowExecutionStartedEventAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_WorkflowType *v1.WorkflowType `protobuf:"bytes,1,opt,name=workflow_type,json=workflowType,proto3"` + xxx_hidden_ParentWorkflowNamespace string `protobuf:"bytes,2,opt,name=parent_workflow_namespace,json=parentWorkflowNamespace,proto3"` + xxx_hidden_ParentWorkflowNamespaceId string `protobuf:"bytes,27,opt,name=parent_workflow_namespace_id,json=parentWorkflowNamespaceId,proto3"` + xxx_hidden_ParentWorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,3,opt,name=parent_workflow_execution,json=parentWorkflowExecution,proto3"` + xxx_hidden_ParentInitiatedEventId int64 `protobuf:"varint,4,opt,name=parent_initiated_event_id,json=parentInitiatedEventId,proto3"` + xxx_hidden_TaskQueue *v11.TaskQueue `protobuf:"bytes,5,opt,name=task_queue,json=taskQueue,proto3"` + xxx_hidden_Input *v1.Payloads `protobuf:"bytes,6,opt,name=input,proto3"` + xxx_hidden_WorkflowExecutionTimeout *durationpb.Duration `protobuf:"bytes,7,opt,name=workflow_execution_timeout,json=workflowExecutionTimeout,proto3"` + xxx_hidden_WorkflowRunTimeout *durationpb.Duration `protobuf:"bytes,8,opt,name=workflow_run_timeout,json=workflowRunTimeout,proto3"` + xxx_hidden_WorkflowTaskTimeout *durationpb.Duration `protobuf:"bytes,9,opt,name=workflow_task_timeout,json=workflowTaskTimeout,proto3"` + xxx_hidden_ContinuedExecutionRunId string `protobuf:"bytes,10,opt,name=continued_execution_run_id,json=continuedExecutionRunId,proto3"` + xxx_hidden_Initiator v12.ContinueAsNewInitiator `protobuf:"varint,11,opt,name=initiator,proto3,enum=temporal.api.enums.v1.ContinueAsNewInitiator"` + xxx_hidden_ContinuedFailure *v13.Failure `protobuf:"bytes,12,opt,name=continued_failure,json=continuedFailure,proto3"` + xxx_hidden_LastCompletionResult *v1.Payloads `protobuf:"bytes,13,opt,name=last_completion_result,json=lastCompletionResult,proto3"` + xxx_hidden_OriginalExecutionRunId string `protobuf:"bytes,14,opt,name=original_execution_run_id,json=originalExecutionRunId,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,15,opt,name=identity,proto3"` + xxx_hidden_FirstExecutionRunId string `protobuf:"bytes,16,opt,name=first_execution_run_id,json=firstExecutionRunId,proto3"` + xxx_hidden_RetryPolicy *v1.RetryPolicy `protobuf:"bytes,17,opt,name=retry_policy,json=retryPolicy,proto3"` + xxx_hidden_Attempt int32 `protobuf:"varint,18,opt,name=attempt,proto3"` + xxx_hidden_WorkflowExecutionExpirationTime *timestamppb.Timestamp `protobuf:"bytes,19,opt,name=workflow_execution_expiration_time,json=workflowExecutionExpirationTime,proto3"` + xxx_hidden_CronSchedule string `protobuf:"bytes,20,opt,name=cron_schedule,json=cronSchedule,proto3"` + xxx_hidden_FirstWorkflowTaskBackoff *durationpb.Duration `protobuf:"bytes,21,opt,name=first_workflow_task_backoff,json=firstWorkflowTaskBackoff,proto3"` + xxx_hidden_Memo *v1.Memo `protobuf:"bytes,22,opt,name=memo,proto3"` + xxx_hidden_SearchAttributes *v1.SearchAttributes `protobuf:"bytes,23,opt,name=search_attributes,json=searchAttributes,proto3"` + xxx_hidden_PrevAutoResetPoints *v14.ResetPoints `protobuf:"bytes,24,opt,name=prev_auto_reset_points,json=prevAutoResetPoints,proto3"` + xxx_hidden_Header *v1.Header `protobuf:"bytes,25,opt,name=header,proto3"` + xxx_hidden_ParentInitiatedEventVersion int64 `protobuf:"varint,26,opt,name=parent_initiated_event_version,json=parentInitiatedEventVersion,proto3"` + xxx_hidden_WorkflowId string `protobuf:"bytes,28,opt,name=workflow_id,json=workflowId,proto3"` + xxx_hidden_SourceVersionStamp *v1.WorkerVersionStamp `protobuf:"bytes,29,opt,name=source_version_stamp,json=sourceVersionStamp,proto3"` + xxx_hidden_CompletionCallbacks *[]*v1.Callback `protobuf:"bytes,30,rep,name=completion_callbacks,json=completionCallbacks,proto3"` + xxx_hidden_RootWorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,31,opt,name=root_workflow_execution,json=rootWorkflowExecution,proto3"` + xxx_hidden_InheritedBuildId string `protobuf:"bytes,32,opt,name=inherited_build_id,json=inheritedBuildId,proto3"` + xxx_hidden_VersioningOverride *v14.VersioningOverride `protobuf:"bytes,33,opt,name=versioning_override,json=versioningOverride,proto3"` + xxx_hidden_ParentPinnedWorkerDeploymentVersion string `protobuf:"bytes,34,opt,name=parent_pinned_worker_deployment_version,json=parentPinnedWorkerDeploymentVersion,proto3"` + xxx_hidden_Priority *v1.Priority `protobuf:"bytes,35,opt,name=priority,proto3"` + xxx_hidden_InheritedPinnedVersion *v15.WorkerDeploymentVersion `protobuf:"bytes,37,opt,name=inherited_pinned_version,json=inheritedPinnedVersion,proto3"` + xxx_hidden_InheritedAutoUpgradeInfo *v15.InheritedAutoUpgradeInfo `protobuf:"bytes,39,opt,name=inherited_auto_upgrade_info,json=inheritedAutoUpgradeInfo,proto3"` + xxx_hidden_EagerExecutionAccepted bool `protobuf:"varint,38,opt,name=eager_execution_accepted,json=eagerExecutionAccepted,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowExecutionStartedEventAttributes) Reset() { + *x = WorkflowExecutionStartedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkflowExecutionStartedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowExecutionStartedEventAttributes) ProtoMessage() {} + +func (x *WorkflowExecutionStartedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkflowExecutionStartedEventAttributes) GetWorkflowType() *v1.WorkflowType { + if x != nil { + return x.xxx_hidden_WorkflowType + } + return nil +} + +func (x *WorkflowExecutionStartedEventAttributes) GetParentWorkflowNamespace() string { + if x != nil { + return x.xxx_hidden_ParentWorkflowNamespace + } + return "" +} + +func (x *WorkflowExecutionStartedEventAttributes) GetParentWorkflowNamespaceId() string { + if x != nil { + return x.xxx_hidden_ParentWorkflowNamespaceId + } + return "" +} + +func (x *WorkflowExecutionStartedEventAttributes) GetParentWorkflowExecution() *v1.WorkflowExecution { + if x != nil { + return x.xxx_hidden_ParentWorkflowExecution + } + return nil +} + +func (x *WorkflowExecutionStartedEventAttributes) GetParentInitiatedEventId() int64 { + if x != nil { + return x.xxx_hidden_ParentInitiatedEventId + } + return 0 +} + +func (x *WorkflowExecutionStartedEventAttributes) GetTaskQueue() *v11.TaskQueue { + if x != nil { + return x.xxx_hidden_TaskQueue + } + return nil +} + +func (x *WorkflowExecutionStartedEventAttributes) GetInput() *v1.Payloads { + if x != nil { + return x.xxx_hidden_Input + } + return nil +} + +func (x *WorkflowExecutionStartedEventAttributes) GetWorkflowExecutionTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_WorkflowExecutionTimeout + } + return nil +} + +func (x *WorkflowExecutionStartedEventAttributes) GetWorkflowRunTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_WorkflowRunTimeout + } + return nil +} + +func (x *WorkflowExecutionStartedEventAttributes) GetWorkflowTaskTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_WorkflowTaskTimeout + } + return nil +} + +func (x *WorkflowExecutionStartedEventAttributes) GetContinuedExecutionRunId() string { + if x != nil { + return x.xxx_hidden_ContinuedExecutionRunId + } + return "" +} + +func (x *WorkflowExecutionStartedEventAttributes) GetInitiator() v12.ContinueAsNewInitiator { + if x != nil { + return x.xxx_hidden_Initiator + } + return v12.ContinueAsNewInitiator(0) +} + +func (x *WorkflowExecutionStartedEventAttributes) GetContinuedFailure() *v13.Failure { + if x != nil { + return x.xxx_hidden_ContinuedFailure + } + return nil +} + +func (x *WorkflowExecutionStartedEventAttributes) GetLastCompletionResult() *v1.Payloads { + if x != nil { + return x.xxx_hidden_LastCompletionResult + } + return nil +} + +func (x *WorkflowExecutionStartedEventAttributes) GetOriginalExecutionRunId() string { + if x != nil { + return x.xxx_hidden_OriginalExecutionRunId + } + return "" +} + +func (x *WorkflowExecutionStartedEventAttributes) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *WorkflowExecutionStartedEventAttributes) GetFirstExecutionRunId() string { + if x != nil { + return x.xxx_hidden_FirstExecutionRunId + } + return "" +} + +func (x *WorkflowExecutionStartedEventAttributes) GetRetryPolicy() *v1.RetryPolicy { + if x != nil { + return x.xxx_hidden_RetryPolicy + } + return nil +} + +func (x *WorkflowExecutionStartedEventAttributes) GetAttempt() int32 { + if x != nil { + return x.xxx_hidden_Attempt + } + return 0 +} + +func (x *WorkflowExecutionStartedEventAttributes) GetWorkflowExecutionExpirationTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_WorkflowExecutionExpirationTime + } + return nil +} + +func (x *WorkflowExecutionStartedEventAttributes) GetCronSchedule() string { + if x != nil { + return x.xxx_hidden_CronSchedule + } + return "" +} + +func (x *WorkflowExecutionStartedEventAttributes) GetFirstWorkflowTaskBackoff() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_FirstWorkflowTaskBackoff + } + return nil +} + +func (x *WorkflowExecutionStartedEventAttributes) GetMemo() *v1.Memo { + if x != nil { + return x.xxx_hidden_Memo + } + return nil +} + +func (x *WorkflowExecutionStartedEventAttributes) GetSearchAttributes() *v1.SearchAttributes { + if x != nil { + return x.xxx_hidden_SearchAttributes + } + return nil +} + +func (x *WorkflowExecutionStartedEventAttributes) GetPrevAutoResetPoints() *v14.ResetPoints { + if x != nil { + return x.xxx_hidden_PrevAutoResetPoints + } + return nil +} + +func (x *WorkflowExecutionStartedEventAttributes) GetHeader() *v1.Header { + if x != nil { + return x.xxx_hidden_Header + } + return nil +} + +func (x *WorkflowExecutionStartedEventAttributes) GetParentInitiatedEventVersion() int64 { + if x != nil { + return x.xxx_hidden_ParentInitiatedEventVersion + } + return 0 +} + +func (x *WorkflowExecutionStartedEventAttributes) GetWorkflowId() string { + if x != nil { + return x.xxx_hidden_WorkflowId + } + return "" +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowExecutionStartedEventAttributes) GetSourceVersionStamp() *v1.WorkerVersionStamp { + if x != nil { + return x.xxx_hidden_SourceVersionStamp + } + return nil +} + +func (x *WorkflowExecutionStartedEventAttributes) GetCompletionCallbacks() []*v1.Callback { + if x != nil { + if x.xxx_hidden_CompletionCallbacks != nil { + return *x.xxx_hidden_CompletionCallbacks + } + } + return nil +} + +func (x *WorkflowExecutionStartedEventAttributes) GetRootWorkflowExecution() *v1.WorkflowExecution { + if x != nil { + return x.xxx_hidden_RootWorkflowExecution + } + return nil +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowExecutionStartedEventAttributes) GetInheritedBuildId() string { + if x != nil { + return x.xxx_hidden_InheritedBuildId + } + return "" +} + +func (x *WorkflowExecutionStartedEventAttributes) GetVersioningOverride() *v14.VersioningOverride { + if x != nil { + return x.xxx_hidden_VersioningOverride + } + return nil +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowExecutionStartedEventAttributes) GetParentPinnedWorkerDeploymentVersion() string { + if x != nil { + return x.xxx_hidden_ParentPinnedWorkerDeploymentVersion + } + return "" +} + +func (x *WorkflowExecutionStartedEventAttributes) GetPriority() *v1.Priority { + if x != nil { + return x.xxx_hidden_Priority + } + return nil +} + +func (x *WorkflowExecutionStartedEventAttributes) GetInheritedPinnedVersion() *v15.WorkerDeploymentVersion { + if x != nil { + return x.xxx_hidden_InheritedPinnedVersion + } + return nil +} + +func (x *WorkflowExecutionStartedEventAttributes) GetInheritedAutoUpgradeInfo() *v15.InheritedAutoUpgradeInfo { + if x != nil { + return x.xxx_hidden_InheritedAutoUpgradeInfo + } + return nil +} + +func (x *WorkflowExecutionStartedEventAttributes) GetEagerExecutionAccepted() bool { + if x != nil { + return x.xxx_hidden_EagerExecutionAccepted + } + return false +} + +func (x *WorkflowExecutionStartedEventAttributes) SetWorkflowType(v *v1.WorkflowType) { + x.xxx_hidden_WorkflowType = v +} + +func (x *WorkflowExecutionStartedEventAttributes) SetParentWorkflowNamespace(v string) { + x.xxx_hidden_ParentWorkflowNamespace = v +} + +func (x *WorkflowExecutionStartedEventAttributes) SetParentWorkflowNamespaceId(v string) { + x.xxx_hidden_ParentWorkflowNamespaceId = v +} + +func (x *WorkflowExecutionStartedEventAttributes) SetParentWorkflowExecution(v *v1.WorkflowExecution) { + x.xxx_hidden_ParentWorkflowExecution = v +} + +func (x *WorkflowExecutionStartedEventAttributes) SetParentInitiatedEventId(v int64) { + x.xxx_hidden_ParentInitiatedEventId = v +} + +func (x *WorkflowExecutionStartedEventAttributes) SetTaskQueue(v *v11.TaskQueue) { + x.xxx_hidden_TaskQueue = v +} + +func (x *WorkflowExecutionStartedEventAttributes) SetInput(v *v1.Payloads) { + x.xxx_hidden_Input = v +} + +func (x *WorkflowExecutionStartedEventAttributes) SetWorkflowExecutionTimeout(v *durationpb.Duration) { + x.xxx_hidden_WorkflowExecutionTimeout = v +} + +func (x *WorkflowExecutionStartedEventAttributes) SetWorkflowRunTimeout(v *durationpb.Duration) { + x.xxx_hidden_WorkflowRunTimeout = v +} + +func (x *WorkflowExecutionStartedEventAttributes) SetWorkflowTaskTimeout(v *durationpb.Duration) { + x.xxx_hidden_WorkflowTaskTimeout = v +} + +func (x *WorkflowExecutionStartedEventAttributes) SetContinuedExecutionRunId(v string) { + x.xxx_hidden_ContinuedExecutionRunId = v +} + +func (x *WorkflowExecutionStartedEventAttributes) SetInitiator(v v12.ContinueAsNewInitiator) { + x.xxx_hidden_Initiator = v +} + +func (x *WorkflowExecutionStartedEventAttributes) SetContinuedFailure(v *v13.Failure) { + x.xxx_hidden_ContinuedFailure = v +} + +func (x *WorkflowExecutionStartedEventAttributes) SetLastCompletionResult(v *v1.Payloads) { + x.xxx_hidden_LastCompletionResult = v +} + +func (x *WorkflowExecutionStartedEventAttributes) SetOriginalExecutionRunId(v string) { + x.xxx_hidden_OriginalExecutionRunId = v +} + +func (x *WorkflowExecutionStartedEventAttributes) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *WorkflowExecutionStartedEventAttributes) SetFirstExecutionRunId(v string) { + x.xxx_hidden_FirstExecutionRunId = v +} + +func (x *WorkflowExecutionStartedEventAttributes) SetRetryPolicy(v *v1.RetryPolicy) { + x.xxx_hidden_RetryPolicy = v +} + +func (x *WorkflowExecutionStartedEventAttributes) SetAttempt(v int32) { + x.xxx_hidden_Attempt = v +} + +func (x *WorkflowExecutionStartedEventAttributes) SetWorkflowExecutionExpirationTime(v *timestamppb.Timestamp) { + x.xxx_hidden_WorkflowExecutionExpirationTime = v +} + +func (x *WorkflowExecutionStartedEventAttributes) SetCronSchedule(v string) { + x.xxx_hidden_CronSchedule = v +} + +func (x *WorkflowExecutionStartedEventAttributes) SetFirstWorkflowTaskBackoff(v *durationpb.Duration) { + x.xxx_hidden_FirstWorkflowTaskBackoff = v +} + +func (x *WorkflowExecutionStartedEventAttributes) SetMemo(v *v1.Memo) { + x.xxx_hidden_Memo = v +} + +func (x *WorkflowExecutionStartedEventAttributes) SetSearchAttributes(v *v1.SearchAttributes) { + x.xxx_hidden_SearchAttributes = v +} + +func (x *WorkflowExecutionStartedEventAttributes) SetPrevAutoResetPoints(v *v14.ResetPoints) { + x.xxx_hidden_PrevAutoResetPoints = v +} + +func (x *WorkflowExecutionStartedEventAttributes) SetHeader(v *v1.Header) { + x.xxx_hidden_Header = v +} + +func (x *WorkflowExecutionStartedEventAttributes) SetParentInitiatedEventVersion(v int64) { + x.xxx_hidden_ParentInitiatedEventVersion = v +} + +func (x *WorkflowExecutionStartedEventAttributes) SetWorkflowId(v string) { + x.xxx_hidden_WorkflowId = v +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowExecutionStartedEventAttributes) SetSourceVersionStamp(v *v1.WorkerVersionStamp) { + x.xxx_hidden_SourceVersionStamp = v +} + +func (x *WorkflowExecutionStartedEventAttributes) SetCompletionCallbacks(v []*v1.Callback) { + x.xxx_hidden_CompletionCallbacks = &v +} + +func (x *WorkflowExecutionStartedEventAttributes) SetRootWorkflowExecution(v *v1.WorkflowExecution) { + x.xxx_hidden_RootWorkflowExecution = v +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowExecutionStartedEventAttributes) SetInheritedBuildId(v string) { + x.xxx_hidden_InheritedBuildId = v +} + +func (x *WorkflowExecutionStartedEventAttributes) SetVersioningOverride(v *v14.VersioningOverride) { + x.xxx_hidden_VersioningOverride = v +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowExecutionStartedEventAttributes) SetParentPinnedWorkerDeploymentVersion(v string) { + x.xxx_hidden_ParentPinnedWorkerDeploymentVersion = v +} + +func (x *WorkflowExecutionStartedEventAttributes) SetPriority(v *v1.Priority) { + x.xxx_hidden_Priority = v +} + +func (x *WorkflowExecutionStartedEventAttributes) SetInheritedPinnedVersion(v *v15.WorkerDeploymentVersion) { + x.xxx_hidden_InheritedPinnedVersion = v +} + +func (x *WorkflowExecutionStartedEventAttributes) SetInheritedAutoUpgradeInfo(v *v15.InheritedAutoUpgradeInfo) { + x.xxx_hidden_InheritedAutoUpgradeInfo = v +} + +func (x *WorkflowExecutionStartedEventAttributes) SetEagerExecutionAccepted(v bool) { + x.xxx_hidden_EagerExecutionAccepted = v +} + +func (x *WorkflowExecutionStartedEventAttributes) HasWorkflowType() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowType != nil +} + +func (x *WorkflowExecutionStartedEventAttributes) HasParentWorkflowExecution() bool { + if x == nil { + return false + } + return x.xxx_hidden_ParentWorkflowExecution != nil +} + +func (x *WorkflowExecutionStartedEventAttributes) HasTaskQueue() bool { + if x == nil { + return false + } + return x.xxx_hidden_TaskQueue != nil +} + +func (x *WorkflowExecutionStartedEventAttributes) HasInput() bool { + if x == nil { + return false + } + return x.xxx_hidden_Input != nil +} + +func (x *WorkflowExecutionStartedEventAttributes) HasWorkflowExecutionTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowExecutionTimeout != nil +} + +func (x *WorkflowExecutionStartedEventAttributes) HasWorkflowRunTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowRunTimeout != nil +} + +func (x *WorkflowExecutionStartedEventAttributes) HasWorkflowTaskTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowTaskTimeout != nil +} + +func (x *WorkflowExecutionStartedEventAttributes) HasContinuedFailure() bool { + if x == nil { + return false + } + return x.xxx_hidden_ContinuedFailure != nil +} + +func (x *WorkflowExecutionStartedEventAttributes) HasLastCompletionResult() bool { + if x == nil { + return false + } + return x.xxx_hidden_LastCompletionResult != nil +} + +func (x *WorkflowExecutionStartedEventAttributes) HasRetryPolicy() bool { + if x == nil { + return false + } + return x.xxx_hidden_RetryPolicy != nil +} + +func (x *WorkflowExecutionStartedEventAttributes) HasWorkflowExecutionExpirationTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowExecutionExpirationTime != nil +} + +func (x *WorkflowExecutionStartedEventAttributes) HasFirstWorkflowTaskBackoff() bool { + if x == nil { + return false + } + return x.xxx_hidden_FirstWorkflowTaskBackoff != nil +} + +func (x *WorkflowExecutionStartedEventAttributes) HasMemo() bool { + if x == nil { + return false + } + return x.xxx_hidden_Memo != nil +} + +func (x *WorkflowExecutionStartedEventAttributes) HasSearchAttributes() bool { + if x == nil { + return false + } + return x.xxx_hidden_SearchAttributes != nil +} + +func (x *WorkflowExecutionStartedEventAttributes) HasPrevAutoResetPoints() bool { + if x == nil { + return false + } + return x.xxx_hidden_PrevAutoResetPoints != nil +} + +func (x *WorkflowExecutionStartedEventAttributes) HasHeader() bool { + if x == nil { + return false + } + return x.xxx_hidden_Header != nil +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowExecutionStartedEventAttributes) HasSourceVersionStamp() bool { + if x == nil { + return false + } + return x.xxx_hidden_SourceVersionStamp != nil +} + +func (x *WorkflowExecutionStartedEventAttributes) HasRootWorkflowExecution() bool { + if x == nil { + return false + } + return x.xxx_hidden_RootWorkflowExecution != nil +} + +func (x *WorkflowExecutionStartedEventAttributes) HasVersioningOverride() bool { + if x == nil { + return false + } + return x.xxx_hidden_VersioningOverride != nil +} + +func (x *WorkflowExecutionStartedEventAttributes) HasPriority() bool { + if x == nil { + return false + } + return x.xxx_hidden_Priority != nil +} + +func (x *WorkflowExecutionStartedEventAttributes) HasInheritedPinnedVersion() bool { + if x == nil { + return false + } + return x.xxx_hidden_InheritedPinnedVersion != nil +} + +func (x *WorkflowExecutionStartedEventAttributes) HasInheritedAutoUpgradeInfo() bool { + if x == nil { + return false + } + return x.xxx_hidden_InheritedAutoUpgradeInfo != nil +} + +func (x *WorkflowExecutionStartedEventAttributes) ClearWorkflowType() { + x.xxx_hidden_WorkflowType = nil +} + +func (x *WorkflowExecutionStartedEventAttributes) ClearParentWorkflowExecution() { + x.xxx_hidden_ParentWorkflowExecution = nil +} + +func (x *WorkflowExecutionStartedEventAttributes) ClearTaskQueue() { + x.xxx_hidden_TaskQueue = nil +} + +func (x *WorkflowExecutionStartedEventAttributes) ClearInput() { + x.xxx_hidden_Input = nil +} + +func (x *WorkflowExecutionStartedEventAttributes) ClearWorkflowExecutionTimeout() { + x.xxx_hidden_WorkflowExecutionTimeout = nil +} + +func (x *WorkflowExecutionStartedEventAttributes) ClearWorkflowRunTimeout() { + x.xxx_hidden_WorkflowRunTimeout = nil +} + +func (x *WorkflowExecutionStartedEventAttributes) ClearWorkflowTaskTimeout() { + x.xxx_hidden_WorkflowTaskTimeout = nil +} + +func (x *WorkflowExecutionStartedEventAttributes) ClearContinuedFailure() { + x.xxx_hidden_ContinuedFailure = nil +} + +func (x *WorkflowExecutionStartedEventAttributes) ClearLastCompletionResult() { + x.xxx_hidden_LastCompletionResult = nil +} + +func (x *WorkflowExecutionStartedEventAttributes) ClearRetryPolicy() { + x.xxx_hidden_RetryPolicy = nil +} + +func (x *WorkflowExecutionStartedEventAttributes) ClearWorkflowExecutionExpirationTime() { + x.xxx_hidden_WorkflowExecutionExpirationTime = nil +} + +func (x *WorkflowExecutionStartedEventAttributes) ClearFirstWorkflowTaskBackoff() { + x.xxx_hidden_FirstWorkflowTaskBackoff = nil +} + +func (x *WorkflowExecutionStartedEventAttributes) ClearMemo() { + x.xxx_hidden_Memo = nil +} + +func (x *WorkflowExecutionStartedEventAttributes) ClearSearchAttributes() { + x.xxx_hidden_SearchAttributes = nil +} + +func (x *WorkflowExecutionStartedEventAttributes) ClearPrevAutoResetPoints() { + x.xxx_hidden_PrevAutoResetPoints = nil +} + +func (x *WorkflowExecutionStartedEventAttributes) ClearHeader() { + x.xxx_hidden_Header = nil +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowExecutionStartedEventAttributes) ClearSourceVersionStamp() { + x.xxx_hidden_SourceVersionStamp = nil +} + +func (x *WorkflowExecutionStartedEventAttributes) ClearRootWorkflowExecution() { + x.xxx_hidden_RootWorkflowExecution = nil +} + +func (x *WorkflowExecutionStartedEventAttributes) ClearVersioningOverride() { + x.xxx_hidden_VersioningOverride = nil +} + +func (x *WorkflowExecutionStartedEventAttributes) ClearPriority() { + x.xxx_hidden_Priority = nil +} + +func (x *WorkflowExecutionStartedEventAttributes) ClearInheritedPinnedVersion() { + x.xxx_hidden_InheritedPinnedVersion = nil +} + +func (x *WorkflowExecutionStartedEventAttributes) ClearInheritedAutoUpgradeInfo() { + x.xxx_hidden_InheritedAutoUpgradeInfo = nil +} + +type WorkflowExecutionStartedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + WorkflowType *v1.WorkflowType + // If this workflow is a child, the namespace our parent lives in. + // SDKs and UI tools should use `parent_workflow_namespace` field but server must use `parent_workflow_namespace_id` only. + ParentWorkflowNamespace string + ParentWorkflowNamespaceId string + // Contains information about parent workflow execution that initiated the child workflow these attributes belong to. + // If the workflow these attributes belong to is not a child workflow of any other execution, this field will not be populated. + ParentWorkflowExecution *v1.WorkflowExecution + // EventID of the child execution initiated event in parent workflow + ParentInitiatedEventId int64 + TaskQueue *v11.TaskQueue + // SDK will deserialize this and provide it as arguments to the workflow function + Input *v1.Payloads + // Total workflow execution timeout including retries and continue as new. + WorkflowExecutionTimeout *durationpb.Duration + // Timeout of a single workflow run. + WorkflowRunTimeout *durationpb.Duration + // Timeout of a single workflow task. + WorkflowTaskTimeout *durationpb.Duration + // Run id of the previous workflow which continued-as-new or retried or cron executed into this + // workflow. + ContinuedExecutionRunId string + Initiator v12.ContinueAsNewInitiator + ContinuedFailure *v13.Failure + LastCompletionResult *v1.Payloads + // This is the run id when the WorkflowExecutionStarted event was written. + // A workflow reset changes the execution run_id, but preserves this field. + OriginalExecutionRunId string + // Identity of the client who requested this execution + Identity string + // This is the very first runId along the chain of ContinueAsNew, Retry, Cron and Reset. + // Used to identify a chain. + FirstExecutionRunId string + RetryPolicy *v1.RetryPolicy + // Starting at 1, the number of times we have tried to execute this workflow + Attempt int32 + // The absolute time at which the workflow will be timed out. + // This is passed without change to the next run/retry of a workflow. + WorkflowExecutionExpirationTime *timestamppb.Timestamp + // If this workflow runs on a cron schedule, it will appear here + CronSchedule string + // For a cron workflow, this contains the amount of time between when this iteration of + // the cron workflow was scheduled and when it should run next per its cron_schedule. + FirstWorkflowTaskBackoff *durationpb.Duration + Memo *v1.Memo + SearchAttributes *v1.SearchAttributes + PrevAutoResetPoints *v14.ResetPoints + Header *v1.Header + // Version of the child execution initiated event in parent workflow + // It should be used together with parent_initiated_event_id to identify + // a child initiated event for global namespace + ParentInitiatedEventVersion int64 + // This field is new in 1.21. + WorkflowId string + // If this workflow intends to use anything other than the current overall default version for + // the queue, then we include it here. + // Deprecated. [cleanup-experimental-wv] + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + SourceVersionStamp *v1.WorkerVersionStamp + // Completion callbacks attached when this workflow was started. + CompletionCallbacks []*v1.Callback + // Contains information about the root workflow execution. + // The root workflow execution is defined as follows: + // 1. A workflow without parent workflow is its own root workflow. + // 2. A workflow that has a parent workflow has the same root workflow as its parent workflow. + // + // When the workflow is its own root workflow, then root_workflow_execution is nil. + // Note: workflows continued as new or reseted may or may not have parents, check examples below. + // + // Examples: + // + // Scenario 1: Workflow W1 starts child workflow W2, and W2 starts child workflow W3. + // - The root workflow of all three workflows is W1. + // - W1 has root_workflow_execution set to nil. + // - W2 and W3 have root_workflow_execution set to W1. + // Scenario 2: Workflow W1 starts child workflow W2, and W2 continued as new W3. + // - The root workflow of all three workflows is W1. + // - W1 has root_workflow_execution set to nil. + // - W2 and W3 have root_workflow_execution set to W1. + // Scenario 3: Workflow W1 continued as new W2. + // - The root workflow of W1 is W1 and the root workflow of W2 is W2. + // - W1 and W2 have root_workflow_execution set to nil. + // Scenario 4: Workflow W1 starts child workflow W2, and W2 is reseted, creating W3 + // - The root workflow of all three workflows is W1. + // - W1 has root_workflow_execution set to nil. + // - W2 and W3 have root_workflow_execution set to W1. + // Scenario 5: Workflow W1 is reseted, creating W2. + // - The root workflow of W1 is W1 and the root workflow of W2 is W2. + // - W1 and W2 have root_workflow_execution set to nil. + RootWorkflowExecution *v1.WorkflowExecution + // When present, this execution is assigned to the build ID of its parent or previous execution. + // Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + InheritedBuildId string + // Versioning override applied to this workflow when it was started. + // Children, crons, retries, and continue-as-new will inherit source run's override if pinned + // and if the new workflow's Task Queue belongs to the override version. + VersioningOverride *v14.VersioningOverride + // When present, it means this is a child workflow of a parent that is Pinned to this Worker + // Deployment Version. In this case, child workflow will start as Pinned to this Version instead + // of starting on the Current Version of its Task Queue. + // This is set only if the child workflow is starting on a Task Queue belonging to the same + // Worker Deployment Version. + // Deprecated. Use `parent_versioning_info`. + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + ParentPinnedWorkerDeploymentVersion string + // Priority metadata + Priority *v1.Priority + // If present, the new workflow should start on this version with pinned base behavior. + // Child of pinned parent will inherit the parent's version if the Child's Task Queue belongs to that version. + // + // A new run initiated by workflow ContinueAsNew of pinned run, will inherit the previous run's version if the + // new run's Task Queue belongs to that version. + // + // A new run initiated by workflow Cron will never inherit. + // + // A new run initiated by workflow Retry will only inherit if the retried run is effectively pinned at the time + // of retry, and the retried run inherited a pinned version when it started (ie. it is a child of a pinned + // parent, or a CaN of a pinned run, and is running on a Task Queue in the inherited version). + // + // Pinned override is inherited if Task Queue of new run is compatible with the override version. + // Override is inherited separately and takes precedence over inherited base version. + // + // Note: This field is mutually exclusive with inherited_auto_upgrade_info. + // Additionaly, versioning_override, if present, overrides this field during routing decisions. + InheritedPinnedVersion *v15.WorkerDeploymentVersion + // If present, the new workflow begins with AutoUpgrade behavior. Before dispatching the + // first workflow task, this field is set to the deployment version on which the parent/ + // previous run was operating. This inheritance only happens when the task queues belong to + // the same deployment version. The first workflow task will then be dispatched to either + // this inherited deployment version, or the current deployment version of the task queue's + // Deployment. After the first workflow task, the effective behavior depends on worker-sent + // values in subsequent workflow tasks. + // + // Inheritance rules: + // - ContinueAsNew and child workflows: inherit AutoUpgrade behavior and deployment version + // - Cron: never inherits + // - Retry: inherits only if the retried run is effectively AutoUpgrade at the time of + // retry, and inherited AutoUpgrade behavior when it started (i.e. it is a child of an + // AutoUpgrade parent or ContinueAsNew of an AutoUpgrade run, running on the same + // deployment as the parent/previous run) + // + // Additional notes: + // - This field is mutually exclusive with `inherited_pinned_version`. + // - `versioning_override`, if present, overrides this field during routing decisions. + // - SDK implementations do not interact with this field and is only used internally by + // the server to ensure task routing correctness. + InheritedAutoUpgradeInfo *v15.InheritedAutoUpgradeInfo + // A boolean indicating whether the SDK has asked to eagerly execute the first workflow task for this workflow and + // eager execution was accepted by the server. + // Only populated by server with version >= 1.29.0. + EagerExecutionAccepted bool +} + +func (b0 WorkflowExecutionStartedEventAttributes_builder) Build() *WorkflowExecutionStartedEventAttributes { + m0 := &WorkflowExecutionStartedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_WorkflowType = b.WorkflowType + x.xxx_hidden_ParentWorkflowNamespace = b.ParentWorkflowNamespace + x.xxx_hidden_ParentWorkflowNamespaceId = b.ParentWorkflowNamespaceId + x.xxx_hidden_ParentWorkflowExecution = b.ParentWorkflowExecution + x.xxx_hidden_ParentInitiatedEventId = b.ParentInitiatedEventId + x.xxx_hidden_TaskQueue = b.TaskQueue + x.xxx_hidden_Input = b.Input + x.xxx_hidden_WorkflowExecutionTimeout = b.WorkflowExecutionTimeout + x.xxx_hidden_WorkflowRunTimeout = b.WorkflowRunTimeout + x.xxx_hidden_WorkflowTaskTimeout = b.WorkflowTaskTimeout + x.xxx_hidden_ContinuedExecutionRunId = b.ContinuedExecutionRunId + x.xxx_hidden_Initiator = b.Initiator + x.xxx_hidden_ContinuedFailure = b.ContinuedFailure + x.xxx_hidden_LastCompletionResult = b.LastCompletionResult + x.xxx_hidden_OriginalExecutionRunId = b.OriginalExecutionRunId + x.xxx_hidden_Identity = b.Identity + x.xxx_hidden_FirstExecutionRunId = b.FirstExecutionRunId + x.xxx_hidden_RetryPolicy = b.RetryPolicy + x.xxx_hidden_Attempt = b.Attempt + x.xxx_hidden_WorkflowExecutionExpirationTime = b.WorkflowExecutionExpirationTime + x.xxx_hidden_CronSchedule = b.CronSchedule + x.xxx_hidden_FirstWorkflowTaskBackoff = b.FirstWorkflowTaskBackoff + x.xxx_hidden_Memo = b.Memo + x.xxx_hidden_SearchAttributes = b.SearchAttributes + x.xxx_hidden_PrevAutoResetPoints = b.PrevAutoResetPoints + x.xxx_hidden_Header = b.Header + x.xxx_hidden_ParentInitiatedEventVersion = b.ParentInitiatedEventVersion + x.xxx_hidden_WorkflowId = b.WorkflowId + x.xxx_hidden_SourceVersionStamp = b.SourceVersionStamp + x.xxx_hidden_CompletionCallbacks = &b.CompletionCallbacks + x.xxx_hidden_RootWorkflowExecution = b.RootWorkflowExecution + x.xxx_hidden_InheritedBuildId = b.InheritedBuildId + x.xxx_hidden_VersioningOverride = b.VersioningOverride + x.xxx_hidden_ParentPinnedWorkerDeploymentVersion = b.ParentPinnedWorkerDeploymentVersion + x.xxx_hidden_Priority = b.Priority + x.xxx_hidden_InheritedPinnedVersion = b.InheritedPinnedVersion + x.xxx_hidden_InheritedAutoUpgradeInfo = b.InheritedAutoUpgradeInfo + x.xxx_hidden_EagerExecutionAccepted = b.EagerExecutionAccepted + return m0 +} + +type WorkflowExecutionCompletedEventAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Result *v1.Payloads `protobuf:"bytes,1,opt,name=result,proto3"` + xxx_hidden_WorkflowTaskCompletedEventId int64 `protobuf:"varint,2,opt,name=workflow_task_completed_event_id,json=workflowTaskCompletedEventId,proto3"` + xxx_hidden_NewExecutionRunId string `protobuf:"bytes,3,opt,name=new_execution_run_id,json=newExecutionRunId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowExecutionCompletedEventAttributes) Reset() { + *x = WorkflowExecutionCompletedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkflowExecutionCompletedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowExecutionCompletedEventAttributes) ProtoMessage() {} + +func (x *WorkflowExecutionCompletedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkflowExecutionCompletedEventAttributes) GetResult() *v1.Payloads { + if x != nil { + return x.xxx_hidden_Result + } + return nil +} + +func (x *WorkflowExecutionCompletedEventAttributes) GetWorkflowTaskCompletedEventId() int64 { + if x != nil { + return x.xxx_hidden_WorkflowTaskCompletedEventId + } + return 0 +} + +func (x *WorkflowExecutionCompletedEventAttributes) GetNewExecutionRunId() string { + if x != nil { + return x.xxx_hidden_NewExecutionRunId + } + return "" +} + +func (x *WorkflowExecutionCompletedEventAttributes) SetResult(v *v1.Payloads) { + x.xxx_hidden_Result = v +} + +func (x *WorkflowExecutionCompletedEventAttributes) SetWorkflowTaskCompletedEventId(v int64) { + x.xxx_hidden_WorkflowTaskCompletedEventId = v +} + +func (x *WorkflowExecutionCompletedEventAttributes) SetNewExecutionRunId(v string) { + x.xxx_hidden_NewExecutionRunId = v +} + +func (x *WorkflowExecutionCompletedEventAttributes) HasResult() bool { + if x == nil { + return false + } + return x.xxx_hidden_Result != nil +} + +func (x *WorkflowExecutionCompletedEventAttributes) ClearResult() { + x.xxx_hidden_Result = nil +} + +type WorkflowExecutionCompletedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Serialized result of workflow completion (ie: The return value of the workflow function) + Result *v1.Payloads + // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + WorkflowTaskCompletedEventId int64 + // If another run is started by cron, this contains the new run id. + NewExecutionRunId string +} + +func (b0 WorkflowExecutionCompletedEventAttributes_builder) Build() *WorkflowExecutionCompletedEventAttributes { + m0 := &WorkflowExecutionCompletedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Result = b.Result + x.xxx_hidden_WorkflowTaskCompletedEventId = b.WorkflowTaskCompletedEventId + x.xxx_hidden_NewExecutionRunId = b.NewExecutionRunId + return m0 +} + +type WorkflowExecutionFailedEventAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Failure *v13.Failure `protobuf:"bytes,1,opt,name=failure,proto3"` + xxx_hidden_RetryState v12.RetryState `protobuf:"varint,2,opt,name=retry_state,json=retryState,proto3,enum=temporal.api.enums.v1.RetryState"` + xxx_hidden_WorkflowTaskCompletedEventId int64 `protobuf:"varint,3,opt,name=workflow_task_completed_event_id,json=workflowTaskCompletedEventId,proto3"` + xxx_hidden_NewExecutionRunId string `protobuf:"bytes,4,opt,name=new_execution_run_id,json=newExecutionRunId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowExecutionFailedEventAttributes) Reset() { + *x = WorkflowExecutionFailedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkflowExecutionFailedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowExecutionFailedEventAttributes) ProtoMessage() {} + +func (x *WorkflowExecutionFailedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkflowExecutionFailedEventAttributes) GetFailure() *v13.Failure { + if x != nil { + return x.xxx_hidden_Failure + } + return nil +} + +func (x *WorkflowExecutionFailedEventAttributes) GetRetryState() v12.RetryState { + if x != nil { + return x.xxx_hidden_RetryState + } + return v12.RetryState(0) +} + +func (x *WorkflowExecutionFailedEventAttributes) GetWorkflowTaskCompletedEventId() int64 { + if x != nil { + return x.xxx_hidden_WorkflowTaskCompletedEventId + } + return 0 +} + +func (x *WorkflowExecutionFailedEventAttributes) GetNewExecutionRunId() string { + if x != nil { + return x.xxx_hidden_NewExecutionRunId + } + return "" +} + +func (x *WorkflowExecutionFailedEventAttributes) SetFailure(v *v13.Failure) { + x.xxx_hidden_Failure = v +} + +func (x *WorkflowExecutionFailedEventAttributes) SetRetryState(v v12.RetryState) { + x.xxx_hidden_RetryState = v +} + +func (x *WorkflowExecutionFailedEventAttributes) SetWorkflowTaskCompletedEventId(v int64) { + x.xxx_hidden_WorkflowTaskCompletedEventId = v +} + +func (x *WorkflowExecutionFailedEventAttributes) SetNewExecutionRunId(v string) { + x.xxx_hidden_NewExecutionRunId = v +} + +func (x *WorkflowExecutionFailedEventAttributes) HasFailure() bool { + if x == nil { + return false + } + return x.xxx_hidden_Failure != nil +} + +func (x *WorkflowExecutionFailedEventAttributes) ClearFailure() { + x.xxx_hidden_Failure = nil +} + +type WorkflowExecutionFailedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Serialized result of workflow failure (ex: An exception thrown, or error returned) + Failure *v13.Failure + RetryState v12.RetryState + // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + WorkflowTaskCompletedEventId int64 + // If another run is started by cron or retry, this contains the new run id. + NewExecutionRunId string +} + +func (b0 WorkflowExecutionFailedEventAttributes_builder) Build() *WorkflowExecutionFailedEventAttributes { + m0 := &WorkflowExecutionFailedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Failure = b.Failure + x.xxx_hidden_RetryState = b.RetryState + x.xxx_hidden_WorkflowTaskCompletedEventId = b.WorkflowTaskCompletedEventId + x.xxx_hidden_NewExecutionRunId = b.NewExecutionRunId + return m0 +} + +type WorkflowExecutionTimedOutEventAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RetryState v12.RetryState `protobuf:"varint,1,opt,name=retry_state,json=retryState,proto3,enum=temporal.api.enums.v1.RetryState"` + xxx_hidden_NewExecutionRunId string `protobuf:"bytes,2,opt,name=new_execution_run_id,json=newExecutionRunId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowExecutionTimedOutEventAttributes) Reset() { + *x = WorkflowExecutionTimedOutEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkflowExecutionTimedOutEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowExecutionTimedOutEventAttributes) ProtoMessage() {} + +func (x *WorkflowExecutionTimedOutEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkflowExecutionTimedOutEventAttributes) GetRetryState() v12.RetryState { + if x != nil { + return x.xxx_hidden_RetryState + } + return v12.RetryState(0) +} + +func (x *WorkflowExecutionTimedOutEventAttributes) GetNewExecutionRunId() string { + if x != nil { + return x.xxx_hidden_NewExecutionRunId + } + return "" +} + +func (x *WorkflowExecutionTimedOutEventAttributes) SetRetryState(v v12.RetryState) { + x.xxx_hidden_RetryState = v +} + +func (x *WorkflowExecutionTimedOutEventAttributes) SetNewExecutionRunId(v string) { + x.xxx_hidden_NewExecutionRunId = v +} + +type WorkflowExecutionTimedOutEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + RetryState v12.RetryState + // If another run is started by cron or retry, this contains the new run id. + NewExecutionRunId string +} + +func (b0 WorkflowExecutionTimedOutEventAttributes_builder) Build() *WorkflowExecutionTimedOutEventAttributes { + m0 := &WorkflowExecutionTimedOutEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RetryState = b.RetryState + x.xxx_hidden_NewExecutionRunId = b.NewExecutionRunId + return m0 +} + +type WorkflowExecutionContinuedAsNewEventAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_NewExecutionRunId string `protobuf:"bytes,1,opt,name=new_execution_run_id,json=newExecutionRunId,proto3"` + xxx_hidden_WorkflowType *v1.WorkflowType `protobuf:"bytes,2,opt,name=workflow_type,json=workflowType,proto3"` + xxx_hidden_TaskQueue *v11.TaskQueue `protobuf:"bytes,3,opt,name=task_queue,json=taskQueue,proto3"` + xxx_hidden_Input *v1.Payloads `protobuf:"bytes,4,opt,name=input,proto3"` + xxx_hidden_WorkflowRunTimeout *durationpb.Duration `protobuf:"bytes,5,opt,name=workflow_run_timeout,json=workflowRunTimeout,proto3"` + xxx_hidden_WorkflowTaskTimeout *durationpb.Duration `protobuf:"bytes,6,opt,name=workflow_task_timeout,json=workflowTaskTimeout,proto3"` + xxx_hidden_WorkflowTaskCompletedEventId int64 `protobuf:"varint,7,opt,name=workflow_task_completed_event_id,json=workflowTaskCompletedEventId,proto3"` + xxx_hidden_BackoffStartInterval *durationpb.Duration `protobuf:"bytes,8,opt,name=backoff_start_interval,json=backoffStartInterval,proto3"` + xxx_hidden_Initiator v12.ContinueAsNewInitiator `protobuf:"varint,9,opt,name=initiator,proto3,enum=temporal.api.enums.v1.ContinueAsNewInitiator"` + xxx_hidden_Failure *v13.Failure `protobuf:"bytes,10,opt,name=failure,proto3"` + xxx_hidden_LastCompletionResult *v1.Payloads `protobuf:"bytes,11,opt,name=last_completion_result,json=lastCompletionResult,proto3"` + xxx_hidden_Header *v1.Header `protobuf:"bytes,12,opt,name=header,proto3"` + xxx_hidden_Memo *v1.Memo `protobuf:"bytes,13,opt,name=memo,proto3"` + xxx_hidden_SearchAttributes *v1.SearchAttributes `protobuf:"bytes,14,opt,name=search_attributes,json=searchAttributes,proto3"` + xxx_hidden_InheritBuildId bool `protobuf:"varint,15,opt,name=inherit_build_id,json=inheritBuildId,proto3"` + xxx_hidden_InitialVersioningBehavior v12.ContinueAsNewVersioningBehavior `protobuf:"varint,16,opt,name=initial_versioning_behavior,json=initialVersioningBehavior,proto3,enum=temporal.api.enums.v1.ContinueAsNewVersioningBehavior"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) Reset() { + *x = WorkflowExecutionContinuedAsNewEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowExecutionContinuedAsNewEventAttributes) ProtoMessage() {} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) GetNewExecutionRunId() string { + if x != nil { + return x.xxx_hidden_NewExecutionRunId + } + return "" +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) GetWorkflowType() *v1.WorkflowType { + if x != nil { + return x.xxx_hidden_WorkflowType + } + return nil +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) GetTaskQueue() *v11.TaskQueue { + if x != nil { + return x.xxx_hidden_TaskQueue + } + return nil +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) GetInput() *v1.Payloads { + if x != nil { + return x.xxx_hidden_Input + } + return nil +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) GetWorkflowRunTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_WorkflowRunTimeout + } + return nil +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) GetWorkflowTaskTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_WorkflowTaskTimeout + } + return nil +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) GetWorkflowTaskCompletedEventId() int64 { + if x != nil { + return x.xxx_hidden_WorkflowTaskCompletedEventId + } + return 0 +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) GetBackoffStartInterval() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_BackoffStartInterval + } + return nil +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) GetInitiator() v12.ContinueAsNewInitiator { + if x != nil { + return x.xxx_hidden_Initiator + } + return v12.ContinueAsNewInitiator(0) +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowExecutionContinuedAsNewEventAttributes) GetFailure() *v13.Failure { + if x != nil { + return x.xxx_hidden_Failure + } + return nil +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) GetLastCompletionResult() *v1.Payloads { + if x != nil { + return x.xxx_hidden_LastCompletionResult + } + return nil +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) GetHeader() *v1.Header { + if x != nil { + return x.xxx_hidden_Header + } + return nil +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) GetMemo() *v1.Memo { + if x != nil { + return x.xxx_hidden_Memo + } + return nil +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) GetSearchAttributes() *v1.SearchAttributes { + if x != nil { + return x.xxx_hidden_SearchAttributes + } + return nil +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowExecutionContinuedAsNewEventAttributes) GetInheritBuildId() bool { + if x != nil { + return x.xxx_hidden_InheritBuildId + } + return false +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) GetInitialVersioningBehavior() v12.ContinueAsNewVersioningBehavior { + if x != nil { + return x.xxx_hidden_InitialVersioningBehavior + } + return v12.ContinueAsNewVersioningBehavior(0) +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) SetNewExecutionRunId(v string) { + x.xxx_hidden_NewExecutionRunId = v +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) SetWorkflowType(v *v1.WorkflowType) { + x.xxx_hidden_WorkflowType = v +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) SetTaskQueue(v *v11.TaskQueue) { + x.xxx_hidden_TaskQueue = v +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) SetInput(v *v1.Payloads) { + x.xxx_hidden_Input = v +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) SetWorkflowRunTimeout(v *durationpb.Duration) { + x.xxx_hidden_WorkflowRunTimeout = v +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) SetWorkflowTaskTimeout(v *durationpb.Duration) { + x.xxx_hidden_WorkflowTaskTimeout = v +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) SetWorkflowTaskCompletedEventId(v int64) { + x.xxx_hidden_WorkflowTaskCompletedEventId = v +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) SetBackoffStartInterval(v *durationpb.Duration) { + x.xxx_hidden_BackoffStartInterval = v +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) SetInitiator(v v12.ContinueAsNewInitiator) { + x.xxx_hidden_Initiator = v +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowExecutionContinuedAsNewEventAttributes) SetFailure(v *v13.Failure) { + x.xxx_hidden_Failure = v +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) SetLastCompletionResult(v *v1.Payloads) { + x.xxx_hidden_LastCompletionResult = v +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) SetHeader(v *v1.Header) { + x.xxx_hidden_Header = v +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) SetMemo(v *v1.Memo) { + x.xxx_hidden_Memo = v +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) SetSearchAttributes(v *v1.SearchAttributes) { + x.xxx_hidden_SearchAttributes = v +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowExecutionContinuedAsNewEventAttributes) SetInheritBuildId(v bool) { + x.xxx_hidden_InheritBuildId = v +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) SetInitialVersioningBehavior(v v12.ContinueAsNewVersioningBehavior) { + x.xxx_hidden_InitialVersioningBehavior = v +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) HasWorkflowType() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowType != nil +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) HasTaskQueue() bool { + if x == nil { + return false + } + return x.xxx_hidden_TaskQueue != nil +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) HasInput() bool { + if x == nil { + return false + } + return x.xxx_hidden_Input != nil +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) HasWorkflowRunTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowRunTimeout != nil +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) HasWorkflowTaskTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowTaskTimeout != nil +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) HasBackoffStartInterval() bool { + if x == nil { + return false + } + return x.xxx_hidden_BackoffStartInterval != nil +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowExecutionContinuedAsNewEventAttributes) HasFailure() bool { + if x == nil { + return false + } + return x.xxx_hidden_Failure != nil +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) HasLastCompletionResult() bool { + if x == nil { + return false + } + return x.xxx_hidden_LastCompletionResult != nil +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) HasHeader() bool { + if x == nil { + return false + } + return x.xxx_hidden_Header != nil +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) HasMemo() bool { + if x == nil { + return false + } + return x.xxx_hidden_Memo != nil +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) HasSearchAttributes() bool { + if x == nil { + return false + } + return x.xxx_hidden_SearchAttributes != nil +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) ClearWorkflowType() { + x.xxx_hidden_WorkflowType = nil +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) ClearTaskQueue() { + x.xxx_hidden_TaskQueue = nil +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) ClearInput() { + x.xxx_hidden_Input = nil +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) ClearWorkflowRunTimeout() { + x.xxx_hidden_WorkflowRunTimeout = nil +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) ClearWorkflowTaskTimeout() { + x.xxx_hidden_WorkflowTaskTimeout = nil +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) ClearBackoffStartInterval() { + x.xxx_hidden_BackoffStartInterval = nil +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowExecutionContinuedAsNewEventAttributes) ClearFailure() { + x.xxx_hidden_Failure = nil +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) ClearLastCompletionResult() { + x.xxx_hidden_LastCompletionResult = nil +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) ClearHeader() { + x.xxx_hidden_Header = nil +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) ClearMemo() { + x.xxx_hidden_Memo = nil +} + +func (x *WorkflowExecutionContinuedAsNewEventAttributes) ClearSearchAttributes() { + x.xxx_hidden_SearchAttributes = nil +} + +type WorkflowExecutionContinuedAsNewEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The run ID of the new workflow started by this continue-as-new + NewExecutionRunId string + WorkflowType *v1.WorkflowType + TaskQueue *v11.TaskQueue + Input *v1.Payloads + // Timeout of a single workflow run. + WorkflowRunTimeout *durationpb.Duration + // Timeout of a single workflow task. + WorkflowTaskTimeout *durationpb.Duration + // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + WorkflowTaskCompletedEventId int64 + // How long the server will wait before scheduling the first workflow task for the new run. + // Used for cron, retry, and other continue-as-new cases that server may enforce some minimal + // delay between new runs for system protection purpose. + BackoffStartInterval *durationpb.Duration + Initiator v12.ContinueAsNewInitiator + // Deprecated. If a workflow's retry policy would cause a new run to start when the current one + // has failed, this field would be populated with that failure. Now (when supported by server + // and sdk) the final event will be `WORKFLOW_EXECUTION_FAILED` with `new_execution_run_id` set. + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + Failure *v13.Failure + // The result from the most recent completed run of this workflow. The SDK surfaces this to the + // new run via APIs such as `GetLastCompletionResult`. + LastCompletionResult *v1.Payloads + Header *v1.Header + Memo *v1.Memo + SearchAttributes *v1.SearchAttributes + // If this is set, the new execution inherits the Build ID of the current execution. Otherwise, + // the assignment rules will be used to independently assign a Build ID to the new execution. + // Deprecated. Only considered for versioning v0.2. + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + InheritBuildId bool + // Experimental. Optionally decide the versioning behavior that the first task of the new run should use. + // For example, choose to AutoUpgrade on continue-as-new instead of inheriting the pinned version + // of the previous run. + InitialVersioningBehavior v12.ContinueAsNewVersioningBehavior +} + +func (b0 WorkflowExecutionContinuedAsNewEventAttributes_builder) Build() *WorkflowExecutionContinuedAsNewEventAttributes { + m0 := &WorkflowExecutionContinuedAsNewEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_NewExecutionRunId = b.NewExecutionRunId + x.xxx_hidden_WorkflowType = b.WorkflowType + x.xxx_hidden_TaskQueue = b.TaskQueue + x.xxx_hidden_Input = b.Input + x.xxx_hidden_WorkflowRunTimeout = b.WorkflowRunTimeout + x.xxx_hidden_WorkflowTaskTimeout = b.WorkflowTaskTimeout + x.xxx_hidden_WorkflowTaskCompletedEventId = b.WorkflowTaskCompletedEventId + x.xxx_hidden_BackoffStartInterval = b.BackoffStartInterval + x.xxx_hidden_Initiator = b.Initiator + x.xxx_hidden_Failure = b.Failure + x.xxx_hidden_LastCompletionResult = b.LastCompletionResult + x.xxx_hidden_Header = b.Header + x.xxx_hidden_Memo = b.Memo + x.xxx_hidden_SearchAttributes = b.SearchAttributes + x.xxx_hidden_InheritBuildId = b.InheritBuildId + x.xxx_hidden_InitialVersioningBehavior = b.InitialVersioningBehavior + return m0 +} + +type WorkflowTaskScheduledEventAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_TaskQueue *v11.TaskQueue `protobuf:"bytes,1,opt,name=task_queue,json=taskQueue,proto3"` + xxx_hidden_StartToCloseTimeout *durationpb.Duration `protobuf:"bytes,2,opt,name=start_to_close_timeout,json=startToCloseTimeout,proto3"` + xxx_hidden_Attempt int32 `protobuf:"varint,3,opt,name=attempt,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowTaskScheduledEventAttributes) Reset() { + *x = WorkflowTaskScheduledEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkflowTaskScheduledEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowTaskScheduledEventAttributes) ProtoMessage() {} + +func (x *WorkflowTaskScheduledEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkflowTaskScheduledEventAttributes) GetTaskQueue() *v11.TaskQueue { + if x != nil { + return x.xxx_hidden_TaskQueue + } + return nil +} + +func (x *WorkflowTaskScheduledEventAttributes) GetStartToCloseTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_StartToCloseTimeout + } + return nil +} + +func (x *WorkflowTaskScheduledEventAttributes) GetAttempt() int32 { + if x != nil { + return x.xxx_hidden_Attempt + } + return 0 +} + +func (x *WorkflowTaskScheduledEventAttributes) SetTaskQueue(v *v11.TaskQueue) { + x.xxx_hidden_TaskQueue = v +} + +func (x *WorkflowTaskScheduledEventAttributes) SetStartToCloseTimeout(v *durationpb.Duration) { + x.xxx_hidden_StartToCloseTimeout = v +} + +func (x *WorkflowTaskScheduledEventAttributes) SetAttempt(v int32) { + x.xxx_hidden_Attempt = v +} + +func (x *WorkflowTaskScheduledEventAttributes) HasTaskQueue() bool { + if x == nil { + return false + } + return x.xxx_hidden_TaskQueue != nil +} + +func (x *WorkflowTaskScheduledEventAttributes) HasStartToCloseTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_StartToCloseTimeout != nil +} + +func (x *WorkflowTaskScheduledEventAttributes) ClearTaskQueue() { + x.xxx_hidden_TaskQueue = nil +} + +func (x *WorkflowTaskScheduledEventAttributes) ClearStartToCloseTimeout() { + x.xxx_hidden_StartToCloseTimeout = nil +} + +type WorkflowTaskScheduledEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The task queue this workflow task was enqueued in, which could be a normal or sticky queue + TaskQueue *v11.TaskQueue + // How long the worker has to process this task once receiving it before it times out + // + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + StartToCloseTimeout *durationpb.Duration + // Starting at 1, how many attempts there have been to complete this task + Attempt int32 +} + +func (b0 WorkflowTaskScheduledEventAttributes_builder) Build() *WorkflowTaskScheduledEventAttributes { + m0 := &WorkflowTaskScheduledEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_TaskQueue = b.TaskQueue + x.xxx_hidden_StartToCloseTimeout = b.StartToCloseTimeout + x.xxx_hidden_Attempt = b.Attempt + return m0 +} + +type WorkflowTaskStartedEventAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ScheduledEventId int64 `protobuf:"varint,1,opt,name=scheduled_event_id,json=scheduledEventId,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,2,opt,name=identity,proto3"` + xxx_hidden_RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3"` + xxx_hidden_SuggestContinueAsNew bool `protobuf:"varint,4,opt,name=suggest_continue_as_new,json=suggestContinueAsNew,proto3"` + xxx_hidden_SuggestContinueAsNewReasons []v12.SuggestContinueAsNewReason `protobuf:"varint,8,rep,packed,name=suggest_continue_as_new_reasons,json=suggestContinueAsNewReasons,proto3,enum=temporal.api.enums.v1.SuggestContinueAsNewReason"` + xxx_hidden_HistorySizeBytes int64 `protobuf:"varint,5,opt,name=history_size_bytes,json=historySizeBytes,proto3"` + xxx_hidden_WorkerVersion *v1.WorkerVersionStamp `protobuf:"bytes,6,opt,name=worker_version,json=workerVersion,proto3"` + xxx_hidden_BuildIdRedirectCounter int64 `protobuf:"varint,7,opt,name=build_id_redirect_counter,json=buildIdRedirectCounter,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowTaskStartedEventAttributes) Reset() { + *x = WorkflowTaskStartedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkflowTaskStartedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowTaskStartedEventAttributes) ProtoMessage() {} + +func (x *WorkflowTaskStartedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkflowTaskStartedEventAttributes) GetScheduledEventId() int64 { + if x != nil { + return x.xxx_hidden_ScheduledEventId + } + return 0 +} + +func (x *WorkflowTaskStartedEventAttributes) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *WorkflowTaskStartedEventAttributes) GetRequestId() string { + if x != nil { + return x.xxx_hidden_RequestId + } + return "" +} + +func (x *WorkflowTaskStartedEventAttributes) GetSuggestContinueAsNew() bool { + if x != nil { + return x.xxx_hidden_SuggestContinueAsNew + } + return false +} + +func (x *WorkflowTaskStartedEventAttributes) GetSuggestContinueAsNewReasons() []v12.SuggestContinueAsNewReason { + if x != nil { + return x.xxx_hidden_SuggestContinueAsNewReasons + } + return nil +} + +func (x *WorkflowTaskStartedEventAttributes) GetHistorySizeBytes() int64 { + if x != nil { + return x.xxx_hidden_HistorySizeBytes + } + return 0 +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowTaskStartedEventAttributes) GetWorkerVersion() *v1.WorkerVersionStamp { + if x != nil { + return x.xxx_hidden_WorkerVersion + } + return nil +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowTaskStartedEventAttributes) GetBuildIdRedirectCounter() int64 { + if x != nil { + return x.xxx_hidden_BuildIdRedirectCounter + } + return 0 +} + +func (x *WorkflowTaskStartedEventAttributes) SetScheduledEventId(v int64) { + x.xxx_hidden_ScheduledEventId = v +} + +func (x *WorkflowTaskStartedEventAttributes) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *WorkflowTaskStartedEventAttributes) SetRequestId(v string) { + x.xxx_hidden_RequestId = v +} + +func (x *WorkflowTaskStartedEventAttributes) SetSuggestContinueAsNew(v bool) { + x.xxx_hidden_SuggestContinueAsNew = v +} + +func (x *WorkflowTaskStartedEventAttributes) SetSuggestContinueAsNewReasons(v []v12.SuggestContinueAsNewReason) { + x.xxx_hidden_SuggestContinueAsNewReasons = v +} + +func (x *WorkflowTaskStartedEventAttributes) SetHistorySizeBytes(v int64) { + x.xxx_hidden_HistorySizeBytes = v +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowTaskStartedEventAttributes) SetWorkerVersion(v *v1.WorkerVersionStamp) { + x.xxx_hidden_WorkerVersion = v +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowTaskStartedEventAttributes) SetBuildIdRedirectCounter(v int64) { + x.xxx_hidden_BuildIdRedirectCounter = v +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowTaskStartedEventAttributes) HasWorkerVersion() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkerVersion != nil +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowTaskStartedEventAttributes) ClearWorkerVersion() { + x.xxx_hidden_WorkerVersion = nil +} + +type WorkflowTaskStartedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The id of the `WORKFLOW_TASK_SCHEDULED` event this task corresponds to + ScheduledEventId int64 + // Identity of the worker who picked up this task + Identity string + // This field is populated from the RecordWorkflowTaskStartedRequest. Matching service would + // set the request_id on the RecordWorkflowTaskStartedRequest to a new UUID. This is useful + // in case a RecordWorkflowTaskStarted call succeed but matching doesn't get that response, + // so matching could retry and history service would return success if the request_id matches. + // In that case, matching will continue to deliver the task to worker. Without this field, history + // service would return AlreadyStarted error, and matching would drop the task. + RequestId string + // True if this workflow should continue-as-new soon. See `suggest_continue_as_new_reasons` for why. + SuggestContinueAsNew bool + // The reason(s) that suggest_continue_as_new is true, if it is. + // Unset if suggest_continue_as_new is false. + SuggestContinueAsNewReasons []v12.SuggestContinueAsNewReason + // Total history size in bytes, which the workflow might use to decide when to + // continue-as-new regardless of the suggestion. Note that history event count is + // just the event id of this event, so we don't include it explicitly here. + HistorySizeBytes int64 + // Version info of the worker to whom this task was dispatched. + // Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + WorkerVersion *v1.WorkerVersionStamp + // Used by server internally to properly reapply build ID redirects to an execution + // when rebuilding it from events. + // Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + BuildIdRedirectCounter int64 +} + +func (b0 WorkflowTaskStartedEventAttributes_builder) Build() *WorkflowTaskStartedEventAttributes { + m0 := &WorkflowTaskStartedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ScheduledEventId = b.ScheduledEventId + x.xxx_hidden_Identity = b.Identity + x.xxx_hidden_RequestId = b.RequestId + x.xxx_hidden_SuggestContinueAsNew = b.SuggestContinueAsNew + x.xxx_hidden_SuggestContinueAsNewReasons = b.SuggestContinueAsNewReasons + x.xxx_hidden_HistorySizeBytes = b.HistorySizeBytes + x.xxx_hidden_WorkerVersion = b.WorkerVersion + x.xxx_hidden_BuildIdRedirectCounter = b.BuildIdRedirectCounter + return m0 +} + +type WorkflowTaskCompletedEventAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ScheduledEventId int64 `protobuf:"varint,1,opt,name=scheduled_event_id,json=scheduledEventId,proto3"` + xxx_hidden_StartedEventId int64 `protobuf:"varint,2,opt,name=started_event_id,json=startedEventId,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,3,opt,name=identity,proto3"` + xxx_hidden_BinaryChecksum string `protobuf:"bytes,4,opt,name=binary_checksum,json=binaryChecksum,proto3"` + xxx_hidden_WorkerVersion *v1.WorkerVersionStamp `protobuf:"bytes,5,opt,name=worker_version,json=workerVersion,proto3"` + xxx_hidden_SdkMetadata *v16.WorkflowTaskCompletedMetadata `protobuf:"bytes,6,opt,name=sdk_metadata,json=sdkMetadata,proto3"` + xxx_hidden_MeteringMetadata *v1.MeteringMetadata `protobuf:"bytes,13,opt,name=metering_metadata,json=meteringMetadata,proto3"` + xxx_hidden_Deployment *v15.Deployment `protobuf:"bytes,7,opt,name=deployment,proto3"` + xxx_hidden_VersioningBehavior v12.VersioningBehavior `protobuf:"varint,8,opt,name=versioning_behavior,json=versioningBehavior,proto3,enum=temporal.api.enums.v1.VersioningBehavior"` + xxx_hidden_WorkerDeploymentVersion string `protobuf:"bytes,9,opt,name=worker_deployment_version,json=workerDeploymentVersion,proto3"` + xxx_hidden_WorkerDeploymentName string `protobuf:"bytes,10,opt,name=worker_deployment_name,json=workerDeploymentName,proto3"` + xxx_hidden_DeploymentVersion *v15.WorkerDeploymentVersion `protobuf:"bytes,11,opt,name=deployment_version,json=deploymentVersion,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowTaskCompletedEventAttributes) Reset() { + *x = WorkflowTaskCompletedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkflowTaskCompletedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowTaskCompletedEventAttributes) ProtoMessage() {} + +func (x *WorkflowTaskCompletedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[7] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkflowTaskCompletedEventAttributes) GetScheduledEventId() int64 { + if x != nil { + return x.xxx_hidden_ScheduledEventId + } + return 0 +} + +func (x *WorkflowTaskCompletedEventAttributes) GetStartedEventId() int64 { + if x != nil { + return x.xxx_hidden_StartedEventId + } + return 0 +} + +func (x *WorkflowTaskCompletedEventAttributes) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowTaskCompletedEventAttributes) GetBinaryChecksum() string { + if x != nil { + return x.xxx_hidden_BinaryChecksum + } + return "" +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowTaskCompletedEventAttributes) GetWorkerVersion() *v1.WorkerVersionStamp { + if x != nil { + return x.xxx_hidden_WorkerVersion + } + return nil +} + +func (x *WorkflowTaskCompletedEventAttributes) GetSdkMetadata() *v16.WorkflowTaskCompletedMetadata { + if x != nil { + return x.xxx_hidden_SdkMetadata + } + return nil +} + +func (x *WorkflowTaskCompletedEventAttributes) GetMeteringMetadata() *v1.MeteringMetadata { + if x != nil { + return x.xxx_hidden_MeteringMetadata + } + return nil +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowTaskCompletedEventAttributes) GetDeployment() *v15.Deployment { + if x != nil { + return x.xxx_hidden_Deployment + } + return nil +} + +func (x *WorkflowTaskCompletedEventAttributes) GetVersioningBehavior() v12.VersioningBehavior { + if x != nil { + return x.xxx_hidden_VersioningBehavior + } + return v12.VersioningBehavior(0) +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowTaskCompletedEventAttributes) GetWorkerDeploymentVersion() string { + if x != nil { + return x.xxx_hidden_WorkerDeploymentVersion + } + return "" +} + +func (x *WorkflowTaskCompletedEventAttributes) GetWorkerDeploymentName() string { + if x != nil { + return x.xxx_hidden_WorkerDeploymentName + } + return "" +} + +func (x *WorkflowTaskCompletedEventAttributes) GetDeploymentVersion() *v15.WorkerDeploymentVersion { + if x != nil { + return x.xxx_hidden_DeploymentVersion + } + return nil +} + +func (x *WorkflowTaskCompletedEventAttributes) SetScheduledEventId(v int64) { + x.xxx_hidden_ScheduledEventId = v +} + +func (x *WorkflowTaskCompletedEventAttributes) SetStartedEventId(v int64) { + x.xxx_hidden_StartedEventId = v +} + +func (x *WorkflowTaskCompletedEventAttributes) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowTaskCompletedEventAttributes) SetBinaryChecksum(v string) { + x.xxx_hidden_BinaryChecksum = v +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowTaskCompletedEventAttributes) SetWorkerVersion(v *v1.WorkerVersionStamp) { + x.xxx_hidden_WorkerVersion = v +} + +func (x *WorkflowTaskCompletedEventAttributes) SetSdkMetadata(v *v16.WorkflowTaskCompletedMetadata) { + x.xxx_hidden_SdkMetadata = v +} + +func (x *WorkflowTaskCompletedEventAttributes) SetMeteringMetadata(v *v1.MeteringMetadata) { + x.xxx_hidden_MeteringMetadata = v +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowTaskCompletedEventAttributes) SetDeployment(v *v15.Deployment) { + x.xxx_hidden_Deployment = v +} + +func (x *WorkflowTaskCompletedEventAttributes) SetVersioningBehavior(v v12.VersioningBehavior) { + x.xxx_hidden_VersioningBehavior = v +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowTaskCompletedEventAttributes) SetWorkerDeploymentVersion(v string) { + x.xxx_hidden_WorkerDeploymentVersion = v +} + +func (x *WorkflowTaskCompletedEventAttributes) SetWorkerDeploymentName(v string) { + x.xxx_hidden_WorkerDeploymentName = v +} + +func (x *WorkflowTaskCompletedEventAttributes) SetDeploymentVersion(v *v15.WorkerDeploymentVersion) { + x.xxx_hidden_DeploymentVersion = v +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowTaskCompletedEventAttributes) HasWorkerVersion() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkerVersion != nil +} + +func (x *WorkflowTaskCompletedEventAttributes) HasSdkMetadata() bool { + if x == nil { + return false + } + return x.xxx_hidden_SdkMetadata != nil +} + +func (x *WorkflowTaskCompletedEventAttributes) HasMeteringMetadata() bool { + if x == nil { + return false + } + return x.xxx_hidden_MeteringMetadata != nil +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowTaskCompletedEventAttributes) HasDeployment() bool { + if x == nil { + return false + } + return x.xxx_hidden_Deployment != nil +} + +func (x *WorkflowTaskCompletedEventAttributes) HasDeploymentVersion() bool { + if x == nil { + return false + } + return x.xxx_hidden_DeploymentVersion != nil +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowTaskCompletedEventAttributes) ClearWorkerVersion() { + x.xxx_hidden_WorkerVersion = nil +} + +func (x *WorkflowTaskCompletedEventAttributes) ClearSdkMetadata() { + x.xxx_hidden_SdkMetadata = nil +} + +func (x *WorkflowTaskCompletedEventAttributes) ClearMeteringMetadata() { + x.xxx_hidden_MeteringMetadata = nil +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowTaskCompletedEventAttributes) ClearDeployment() { + x.xxx_hidden_Deployment = nil +} + +func (x *WorkflowTaskCompletedEventAttributes) ClearDeploymentVersion() { + x.xxx_hidden_DeploymentVersion = nil +} + +type WorkflowTaskCompletedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The id of the `WORKFLOW_TASK_SCHEDULED` event this task corresponds to + ScheduledEventId int64 + // The id of the `WORKFLOW_TASK_STARTED` event this task corresponds to + StartedEventId int64 + // Identity of the worker who completed this task + Identity string + // Binary ID of the worker who completed this task + // Deprecated. Replaced with `deployment_version`. + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + BinaryChecksum string + // Version info of the worker who processed this workflow task. If present, the `build_id` field + // within is also used as `binary_checksum`, which may be omitted in that case (it may also be + // populated to preserve compatibility). + // Deprecated. Use `deployment_version` and `versioning_behavior` instead. + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + WorkerVersion *v1.WorkerVersionStamp + // Data the SDK wishes to record for itself, but server need not interpret, and does not + // directly impact workflow state. + SdkMetadata *v16.WorkflowTaskCompletedMetadata + // Local usage data sent during workflow task completion and recorded here for posterity + MeteringMetadata *v1.MeteringMetadata + // The deployment that completed this task. May or may not be set for unversioned workers, + // depending on whether a value is sent by the SDK. This value updates workflow execution's + // `versioning_info.deployment`. + // Deprecated. Replaced with `deployment_version`. + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + Deployment *v15.Deployment + // Versioning behavior sent by the worker that completed this task for this particular workflow + // execution. UNSPECIFIED means the task was completed by an unversioned worker. This value + // updates workflow execution's `versioning_info.behavior`. + VersioningBehavior v12.VersioningBehavior + // The Worker Deployment Version that completed this task. Must be set if `versioning_behavior` + // is set. This value updates workflow execution's `versioning_info.version`. + // Experimental. Worker Deployments are experimental and might significantly change in the future. + // Deprecated. Replaced with `deployment_version`. + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + WorkerDeploymentVersion string + // The name of Worker Deployment that completed this task. Must be set if `versioning_behavior` + // is set. This value updates workflow execution's `worker_deployment_name`. + // Experimental. Worker Deployments are experimental and might significantly change in the future. + WorkerDeploymentName string + // The Worker Deployment Version that completed this task. Must be set if `versioning_behavior` + // is set. This value updates workflow execution's `versioning_info.deployment_version`. + // Experimental. Worker Deployments are experimental and might significantly change in the future. + DeploymentVersion *v15.WorkerDeploymentVersion +} + +func (b0 WorkflowTaskCompletedEventAttributes_builder) Build() *WorkflowTaskCompletedEventAttributes { + m0 := &WorkflowTaskCompletedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ScheduledEventId = b.ScheduledEventId + x.xxx_hidden_StartedEventId = b.StartedEventId + x.xxx_hidden_Identity = b.Identity + x.xxx_hidden_BinaryChecksum = b.BinaryChecksum + x.xxx_hidden_WorkerVersion = b.WorkerVersion + x.xxx_hidden_SdkMetadata = b.SdkMetadata + x.xxx_hidden_MeteringMetadata = b.MeteringMetadata + x.xxx_hidden_Deployment = b.Deployment + x.xxx_hidden_VersioningBehavior = b.VersioningBehavior + x.xxx_hidden_WorkerDeploymentVersion = b.WorkerDeploymentVersion + x.xxx_hidden_WorkerDeploymentName = b.WorkerDeploymentName + x.xxx_hidden_DeploymentVersion = b.DeploymentVersion + return m0 +} + +type WorkflowTaskTimedOutEventAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ScheduledEventId int64 `protobuf:"varint,1,opt,name=scheduled_event_id,json=scheduledEventId,proto3"` + xxx_hidden_StartedEventId int64 `protobuf:"varint,2,opt,name=started_event_id,json=startedEventId,proto3"` + xxx_hidden_TimeoutType v12.TimeoutType `protobuf:"varint,3,opt,name=timeout_type,json=timeoutType,proto3,enum=temporal.api.enums.v1.TimeoutType"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowTaskTimedOutEventAttributes) Reset() { + *x = WorkflowTaskTimedOutEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkflowTaskTimedOutEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowTaskTimedOutEventAttributes) ProtoMessage() {} + +func (x *WorkflowTaskTimedOutEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[8] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkflowTaskTimedOutEventAttributes) GetScheduledEventId() int64 { + if x != nil { + return x.xxx_hidden_ScheduledEventId + } + return 0 +} + +func (x *WorkflowTaskTimedOutEventAttributes) GetStartedEventId() int64 { + if x != nil { + return x.xxx_hidden_StartedEventId + } + return 0 +} + +func (x *WorkflowTaskTimedOutEventAttributes) GetTimeoutType() v12.TimeoutType { + if x != nil { + return x.xxx_hidden_TimeoutType + } + return v12.TimeoutType(0) +} + +func (x *WorkflowTaskTimedOutEventAttributes) SetScheduledEventId(v int64) { + x.xxx_hidden_ScheduledEventId = v +} + +func (x *WorkflowTaskTimedOutEventAttributes) SetStartedEventId(v int64) { + x.xxx_hidden_StartedEventId = v +} + +func (x *WorkflowTaskTimedOutEventAttributes) SetTimeoutType(v v12.TimeoutType) { + x.xxx_hidden_TimeoutType = v +} + +type WorkflowTaskTimedOutEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The id of the `WORKFLOW_TASK_SCHEDULED` event this task corresponds to + ScheduledEventId int64 + // The id of the `WORKFLOW_TASK_STARTED` event this task corresponds to + StartedEventId int64 + TimeoutType v12.TimeoutType +} + +func (b0 WorkflowTaskTimedOutEventAttributes_builder) Build() *WorkflowTaskTimedOutEventAttributes { + m0 := &WorkflowTaskTimedOutEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ScheduledEventId = b.ScheduledEventId + x.xxx_hidden_StartedEventId = b.StartedEventId + x.xxx_hidden_TimeoutType = b.TimeoutType + return m0 +} + +type WorkflowTaskFailedEventAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ScheduledEventId int64 `protobuf:"varint,1,opt,name=scheduled_event_id,json=scheduledEventId,proto3"` + xxx_hidden_StartedEventId int64 `protobuf:"varint,2,opt,name=started_event_id,json=startedEventId,proto3"` + xxx_hidden_Cause v12.WorkflowTaskFailedCause `protobuf:"varint,3,opt,name=cause,proto3,enum=temporal.api.enums.v1.WorkflowTaskFailedCause"` + xxx_hidden_Failure *v13.Failure `protobuf:"bytes,4,opt,name=failure,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,5,opt,name=identity,proto3"` + xxx_hidden_BaseRunId string `protobuf:"bytes,6,opt,name=base_run_id,json=baseRunId,proto3"` + xxx_hidden_NewRunId string `protobuf:"bytes,7,opt,name=new_run_id,json=newRunId,proto3"` + xxx_hidden_ForkEventVersion int64 `protobuf:"varint,8,opt,name=fork_event_version,json=forkEventVersion,proto3"` + xxx_hidden_BinaryChecksum string `protobuf:"bytes,9,opt,name=binary_checksum,json=binaryChecksum,proto3"` + xxx_hidden_WorkerVersion *v1.WorkerVersionStamp `protobuf:"bytes,10,opt,name=worker_version,json=workerVersion,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowTaskFailedEventAttributes) Reset() { + *x = WorkflowTaskFailedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkflowTaskFailedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowTaskFailedEventAttributes) ProtoMessage() {} + +func (x *WorkflowTaskFailedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[9] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkflowTaskFailedEventAttributes) GetScheduledEventId() int64 { + if x != nil { + return x.xxx_hidden_ScheduledEventId + } + return 0 +} + +func (x *WorkflowTaskFailedEventAttributes) GetStartedEventId() int64 { + if x != nil { + return x.xxx_hidden_StartedEventId + } + return 0 +} + +func (x *WorkflowTaskFailedEventAttributes) GetCause() v12.WorkflowTaskFailedCause { + if x != nil { + return x.xxx_hidden_Cause + } + return v12.WorkflowTaskFailedCause(0) +} + +func (x *WorkflowTaskFailedEventAttributes) GetFailure() *v13.Failure { + if x != nil { + return x.xxx_hidden_Failure + } + return nil +} + +func (x *WorkflowTaskFailedEventAttributes) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *WorkflowTaskFailedEventAttributes) GetBaseRunId() string { + if x != nil { + return x.xxx_hidden_BaseRunId + } + return "" +} + +func (x *WorkflowTaskFailedEventAttributes) GetNewRunId() string { + if x != nil { + return x.xxx_hidden_NewRunId + } + return "" +} + +func (x *WorkflowTaskFailedEventAttributes) GetForkEventVersion() int64 { + if x != nil { + return x.xxx_hidden_ForkEventVersion + } + return 0 +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowTaskFailedEventAttributes) GetBinaryChecksum() string { + if x != nil { + return x.xxx_hidden_BinaryChecksum + } + return "" +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowTaskFailedEventAttributes) GetWorkerVersion() *v1.WorkerVersionStamp { + if x != nil { + return x.xxx_hidden_WorkerVersion + } + return nil +} + +func (x *WorkflowTaskFailedEventAttributes) SetScheduledEventId(v int64) { + x.xxx_hidden_ScheduledEventId = v +} + +func (x *WorkflowTaskFailedEventAttributes) SetStartedEventId(v int64) { + x.xxx_hidden_StartedEventId = v +} + +func (x *WorkflowTaskFailedEventAttributes) SetCause(v v12.WorkflowTaskFailedCause) { + x.xxx_hidden_Cause = v +} + +func (x *WorkflowTaskFailedEventAttributes) SetFailure(v *v13.Failure) { + x.xxx_hidden_Failure = v +} + +func (x *WorkflowTaskFailedEventAttributes) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *WorkflowTaskFailedEventAttributes) SetBaseRunId(v string) { + x.xxx_hidden_BaseRunId = v +} + +func (x *WorkflowTaskFailedEventAttributes) SetNewRunId(v string) { + x.xxx_hidden_NewRunId = v +} + +func (x *WorkflowTaskFailedEventAttributes) SetForkEventVersion(v int64) { + x.xxx_hidden_ForkEventVersion = v +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowTaskFailedEventAttributes) SetBinaryChecksum(v string) { + x.xxx_hidden_BinaryChecksum = v +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowTaskFailedEventAttributes) SetWorkerVersion(v *v1.WorkerVersionStamp) { + x.xxx_hidden_WorkerVersion = v +} + +func (x *WorkflowTaskFailedEventAttributes) HasFailure() bool { + if x == nil { + return false + } + return x.xxx_hidden_Failure != nil +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowTaskFailedEventAttributes) HasWorkerVersion() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkerVersion != nil +} + +func (x *WorkflowTaskFailedEventAttributes) ClearFailure() { + x.xxx_hidden_Failure = nil +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowTaskFailedEventAttributes) ClearWorkerVersion() { + x.xxx_hidden_WorkerVersion = nil +} + +type WorkflowTaskFailedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The id of the `WORKFLOW_TASK_SCHEDULED` event this task corresponds to + ScheduledEventId int64 + // The id of the `WORKFLOW_TASK_STARTED` event this task corresponds to + StartedEventId int64 + Cause v12.WorkflowTaskFailedCause + // The failure details + Failure *v13.Failure + // If a worker explicitly failed this task, this field contains the worker's identity. + // When the server generates the failure internally this field is set as 'history-service'. + Identity string + // The original run id of the workflow. For reset workflow. + BaseRunId string + // If the workflow is being reset, the new run id. + NewRunId string + // Version of the event where the history branch was forked. Used by multi-cluster replication + // during resets to identify the correct history branch. + ForkEventVersion int64 + // Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] + // If a worker explicitly failed this task, its binary id + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + BinaryChecksum string + // Version info of the worker who processed this workflow task. If present, the `build_id` field + // within is also used as `binary_checksum`, which may be omitted in that case (it may also be + // populated to preserve compatibility). + // Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + WorkerVersion *v1.WorkerVersionStamp +} + +func (b0 WorkflowTaskFailedEventAttributes_builder) Build() *WorkflowTaskFailedEventAttributes { + m0 := &WorkflowTaskFailedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ScheduledEventId = b.ScheduledEventId + x.xxx_hidden_StartedEventId = b.StartedEventId + x.xxx_hidden_Cause = b.Cause + x.xxx_hidden_Failure = b.Failure + x.xxx_hidden_Identity = b.Identity + x.xxx_hidden_BaseRunId = b.BaseRunId + x.xxx_hidden_NewRunId = b.NewRunId + x.xxx_hidden_ForkEventVersion = b.ForkEventVersion + x.xxx_hidden_BinaryChecksum = b.BinaryChecksum + x.xxx_hidden_WorkerVersion = b.WorkerVersion + return m0 +} + +type ActivityTaskScheduledEventAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ActivityId string `protobuf:"bytes,1,opt,name=activity_id,json=activityId,proto3"` + xxx_hidden_ActivityType *v1.ActivityType `protobuf:"bytes,2,opt,name=activity_type,json=activityType,proto3"` + xxx_hidden_TaskQueue *v11.TaskQueue `protobuf:"bytes,4,opt,name=task_queue,json=taskQueue,proto3"` + xxx_hidden_Header *v1.Header `protobuf:"bytes,5,opt,name=header,proto3"` + xxx_hidden_Input *v1.Payloads `protobuf:"bytes,6,opt,name=input,proto3"` + xxx_hidden_ScheduleToCloseTimeout *durationpb.Duration `protobuf:"bytes,7,opt,name=schedule_to_close_timeout,json=scheduleToCloseTimeout,proto3"` + xxx_hidden_ScheduleToStartTimeout *durationpb.Duration `protobuf:"bytes,8,opt,name=schedule_to_start_timeout,json=scheduleToStartTimeout,proto3"` + xxx_hidden_StartToCloseTimeout *durationpb.Duration `protobuf:"bytes,9,opt,name=start_to_close_timeout,json=startToCloseTimeout,proto3"` + xxx_hidden_HeartbeatTimeout *durationpb.Duration `protobuf:"bytes,10,opt,name=heartbeat_timeout,json=heartbeatTimeout,proto3"` + xxx_hidden_WorkflowTaskCompletedEventId int64 `protobuf:"varint,11,opt,name=workflow_task_completed_event_id,json=workflowTaskCompletedEventId,proto3"` + xxx_hidden_RetryPolicy *v1.RetryPolicy `protobuf:"bytes,12,opt,name=retry_policy,json=retryPolicy,proto3"` + xxx_hidden_UseWorkflowBuildId bool `protobuf:"varint,13,opt,name=use_workflow_build_id,json=useWorkflowBuildId,proto3"` + xxx_hidden_Priority *v1.Priority `protobuf:"bytes,14,opt,name=priority,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ActivityTaskScheduledEventAttributes) Reset() { + *x = ActivityTaskScheduledEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ActivityTaskScheduledEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ActivityTaskScheduledEventAttributes) ProtoMessage() {} + +func (x *ActivityTaskScheduledEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[10] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ActivityTaskScheduledEventAttributes) GetActivityId() string { + if x != nil { + return x.xxx_hidden_ActivityId + } + return "" +} + +func (x *ActivityTaskScheduledEventAttributes) GetActivityType() *v1.ActivityType { + if x != nil { + return x.xxx_hidden_ActivityType + } + return nil +} + +func (x *ActivityTaskScheduledEventAttributes) GetTaskQueue() *v11.TaskQueue { + if x != nil { + return x.xxx_hidden_TaskQueue + } + return nil +} + +func (x *ActivityTaskScheduledEventAttributes) GetHeader() *v1.Header { + if x != nil { + return x.xxx_hidden_Header + } + return nil +} + +func (x *ActivityTaskScheduledEventAttributes) GetInput() *v1.Payloads { + if x != nil { + return x.xxx_hidden_Input + } + return nil +} + +func (x *ActivityTaskScheduledEventAttributes) GetScheduleToCloseTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_ScheduleToCloseTimeout + } + return nil +} + +func (x *ActivityTaskScheduledEventAttributes) GetScheduleToStartTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_ScheduleToStartTimeout + } + return nil +} + +func (x *ActivityTaskScheduledEventAttributes) GetStartToCloseTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_StartToCloseTimeout + } + return nil +} + +func (x *ActivityTaskScheduledEventAttributes) GetHeartbeatTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_HeartbeatTimeout + } + return nil +} + +func (x *ActivityTaskScheduledEventAttributes) GetWorkflowTaskCompletedEventId() int64 { + if x != nil { + return x.xxx_hidden_WorkflowTaskCompletedEventId + } + return 0 +} + +func (x *ActivityTaskScheduledEventAttributes) GetRetryPolicy() *v1.RetryPolicy { + if x != nil { + return x.xxx_hidden_RetryPolicy + } + return nil +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *ActivityTaskScheduledEventAttributes) GetUseWorkflowBuildId() bool { + if x != nil { + return x.xxx_hidden_UseWorkflowBuildId + } + return false +} + +func (x *ActivityTaskScheduledEventAttributes) GetPriority() *v1.Priority { + if x != nil { + return x.xxx_hidden_Priority + } + return nil +} + +func (x *ActivityTaskScheduledEventAttributes) SetActivityId(v string) { + x.xxx_hidden_ActivityId = v +} + +func (x *ActivityTaskScheduledEventAttributes) SetActivityType(v *v1.ActivityType) { + x.xxx_hidden_ActivityType = v +} + +func (x *ActivityTaskScheduledEventAttributes) SetTaskQueue(v *v11.TaskQueue) { + x.xxx_hidden_TaskQueue = v +} + +func (x *ActivityTaskScheduledEventAttributes) SetHeader(v *v1.Header) { + x.xxx_hidden_Header = v +} + +func (x *ActivityTaskScheduledEventAttributes) SetInput(v *v1.Payloads) { + x.xxx_hidden_Input = v +} + +func (x *ActivityTaskScheduledEventAttributes) SetScheduleToCloseTimeout(v *durationpb.Duration) { + x.xxx_hidden_ScheduleToCloseTimeout = v +} + +func (x *ActivityTaskScheduledEventAttributes) SetScheduleToStartTimeout(v *durationpb.Duration) { + x.xxx_hidden_ScheduleToStartTimeout = v +} + +func (x *ActivityTaskScheduledEventAttributes) SetStartToCloseTimeout(v *durationpb.Duration) { + x.xxx_hidden_StartToCloseTimeout = v +} + +func (x *ActivityTaskScheduledEventAttributes) SetHeartbeatTimeout(v *durationpb.Duration) { + x.xxx_hidden_HeartbeatTimeout = v +} + +func (x *ActivityTaskScheduledEventAttributes) SetWorkflowTaskCompletedEventId(v int64) { + x.xxx_hidden_WorkflowTaskCompletedEventId = v +} + +func (x *ActivityTaskScheduledEventAttributes) SetRetryPolicy(v *v1.RetryPolicy) { + x.xxx_hidden_RetryPolicy = v +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *ActivityTaskScheduledEventAttributes) SetUseWorkflowBuildId(v bool) { + x.xxx_hidden_UseWorkflowBuildId = v +} + +func (x *ActivityTaskScheduledEventAttributes) SetPriority(v *v1.Priority) { + x.xxx_hidden_Priority = v +} + +func (x *ActivityTaskScheduledEventAttributes) HasActivityType() bool { + if x == nil { + return false + } + return x.xxx_hidden_ActivityType != nil +} + +func (x *ActivityTaskScheduledEventAttributes) HasTaskQueue() bool { + if x == nil { + return false + } + return x.xxx_hidden_TaskQueue != nil +} + +func (x *ActivityTaskScheduledEventAttributes) HasHeader() bool { + if x == nil { + return false + } + return x.xxx_hidden_Header != nil +} + +func (x *ActivityTaskScheduledEventAttributes) HasInput() bool { + if x == nil { + return false + } + return x.xxx_hidden_Input != nil +} + +func (x *ActivityTaskScheduledEventAttributes) HasScheduleToCloseTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_ScheduleToCloseTimeout != nil +} + +func (x *ActivityTaskScheduledEventAttributes) HasScheduleToStartTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_ScheduleToStartTimeout != nil +} + +func (x *ActivityTaskScheduledEventAttributes) HasStartToCloseTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_StartToCloseTimeout != nil +} + +func (x *ActivityTaskScheduledEventAttributes) HasHeartbeatTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_HeartbeatTimeout != nil +} + +func (x *ActivityTaskScheduledEventAttributes) HasRetryPolicy() bool { + if x == nil { + return false + } + return x.xxx_hidden_RetryPolicy != nil +} + +func (x *ActivityTaskScheduledEventAttributes) HasPriority() bool { + if x == nil { + return false + } + return x.xxx_hidden_Priority != nil +} + +func (x *ActivityTaskScheduledEventAttributes) ClearActivityType() { + x.xxx_hidden_ActivityType = nil +} + +func (x *ActivityTaskScheduledEventAttributes) ClearTaskQueue() { + x.xxx_hidden_TaskQueue = nil +} + +func (x *ActivityTaskScheduledEventAttributes) ClearHeader() { + x.xxx_hidden_Header = nil +} + +func (x *ActivityTaskScheduledEventAttributes) ClearInput() { + x.xxx_hidden_Input = nil +} + +func (x *ActivityTaskScheduledEventAttributes) ClearScheduleToCloseTimeout() { + x.xxx_hidden_ScheduleToCloseTimeout = nil +} + +func (x *ActivityTaskScheduledEventAttributes) ClearScheduleToStartTimeout() { + x.xxx_hidden_ScheduleToStartTimeout = nil +} + +func (x *ActivityTaskScheduledEventAttributes) ClearStartToCloseTimeout() { + x.xxx_hidden_StartToCloseTimeout = nil +} + +func (x *ActivityTaskScheduledEventAttributes) ClearHeartbeatTimeout() { + x.xxx_hidden_HeartbeatTimeout = nil +} + +func (x *ActivityTaskScheduledEventAttributes) ClearRetryPolicy() { + x.xxx_hidden_RetryPolicy = nil +} + +func (x *ActivityTaskScheduledEventAttributes) ClearPriority() { + x.xxx_hidden_Priority = nil +} + +type ActivityTaskScheduledEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The worker/user assigned identifier for the activity + ActivityId string + ActivityType *v1.ActivityType + TaskQueue *v11.TaskQueue + Header *v1.Header + Input *v1.Payloads + // Indicates how long the caller is willing to wait for an activity completion. Limits how long + // retries will be attempted. Either this or `start_to_close_timeout` must be specified. + // + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + ScheduleToCloseTimeout *durationpb.Duration + // Limits time an activity task can stay in a task queue before a worker picks it up. This + // timeout is always non retryable, as all a retry would achieve is to put it back into the same + // queue. Defaults to `schedule_to_close_timeout` or workflow execution timeout if not + // specified. + // + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + ScheduleToStartTimeout *durationpb.Duration + // Maximum time an activity is allowed to execute after being picked up by a worker. This + // timeout is always retryable. Either this or `schedule_to_close_timeout` must be + // specified. + // + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + StartToCloseTimeout *durationpb.Duration + // Maximum permitted time between successful worker heartbeats. + HeartbeatTimeout *durationpb.Duration + // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + WorkflowTaskCompletedEventId int64 + // Activities are assigned a default retry policy controlled by the service's dynamic + // configuration. Retries will happen up to `schedule_to_close_timeout`. To disable retries set + // retry_policy.maximum_attempts to 1. + RetryPolicy *v1.RetryPolicy + // If this is set, the activity would be assigned to the Build ID of the workflow. Otherwise, + // Assignment rules of the activity's Task Queue will be used to determine the Build ID. + // Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + UseWorkflowBuildId bool + // Priority metadata. If this message is not present, or any fields are not + // present, they inherit the values from the workflow. + Priority *v1.Priority +} + +func (b0 ActivityTaskScheduledEventAttributes_builder) Build() *ActivityTaskScheduledEventAttributes { + m0 := &ActivityTaskScheduledEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ActivityId = b.ActivityId + x.xxx_hidden_ActivityType = b.ActivityType + x.xxx_hidden_TaskQueue = b.TaskQueue + x.xxx_hidden_Header = b.Header + x.xxx_hidden_Input = b.Input + x.xxx_hidden_ScheduleToCloseTimeout = b.ScheduleToCloseTimeout + x.xxx_hidden_ScheduleToStartTimeout = b.ScheduleToStartTimeout + x.xxx_hidden_StartToCloseTimeout = b.StartToCloseTimeout + x.xxx_hidden_HeartbeatTimeout = b.HeartbeatTimeout + x.xxx_hidden_WorkflowTaskCompletedEventId = b.WorkflowTaskCompletedEventId + x.xxx_hidden_RetryPolicy = b.RetryPolicy + x.xxx_hidden_UseWorkflowBuildId = b.UseWorkflowBuildId + x.xxx_hidden_Priority = b.Priority + return m0 +} + +type ActivityTaskStartedEventAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ScheduledEventId int64 `protobuf:"varint,1,opt,name=scheduled_event_id,json=scheduledEventId,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,2,opt,name=identity,proto3"` + xxx_hidden_RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3"` + xxx_hidden_Attempt int32 `protobuf:"varint,4,opt,name=attempt,proto3"` + xxx_hidden_LastFailure *v13.Failure `protobuf:"bytes,5,opt,name=last_failure,json=lastFailure,proto3"` + xxx_hidden_WorkerVersion *v1.WorkerVersionStamp `protobuf:"bytes,6,opt,name=worker_version,json=workerVersion,proto3"` + xxx_hidden_BuildIdRedirectCounter int64 `protobuf:"varint,7,opt,name=build_id_redirect_counter,json=buildIdRedirectCounter,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ActivityTaskStartedEventAttributes) Reset() { + *x = ActivityTaskStartedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ActivityTaskStartedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ActivityTaskStartedEventAttributes) ProtoMessage() {} + +func (x *ActivityTaskStartedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[11] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ActivityTaskStartedEventAttributes) GetScheduledEventId() int64 { + if x != nil { + return x.xxx_hidden_ScheduledEventId + } + return 0 +} + +func (x *ActivityTaskStartedEventAttributes) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *ActivityTaskStartedEventAttributes) GetRequestId() string { + if x != nil { + return x.xxx_hidden_RequestId + } + return "" +} + +func (x *ActivityTaskStartedEventAttributes) GetAttempt() int32 { + if x != nil { + return x.xxx_hidden_Attempt + } + return 0 +} + +func (x *ActivityTaskStartedEventAttributes) GetLastFailure() *v13.Failure { + if x != nil { + return x.xxx_hidden_LastFailure + } + return nil +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *ActivityTaskStartedEventAttributes) GetWorkerVersion() *v1.WorkerVersionStamp { + if x != nil { + return x.xxx_hidden_WorkerVersion + } + return nil +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *ActivityTaskStartedEventAttributes) GetBuildIdRedirectCounter() int64 { + if x != nil { + return x.xxx_hidden_BuildIdRedirectCounter + } + return 0 +} + +func (x *ActivityTaskStartedEventAttributes) SetScheduledEventId(v int64) { + x.xxx_hidden_ScheduledEventId = v +} + +func (x *ActivityTaskStartedEventAttributes) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *ActivityTaskStartedEventAttributes) SetRequestId(v string) { + x.xxx_hidden_RequestId = v +} + +func (x *ActivityTaskStartedEventAttributes) SetAttempt(v int32) { + x.xxx_hidden_Attempt = v +} + +func (x *ActivityTaskStartedEventAttributes) SetLastFailure(v *v13.Failure) { + x.xxx_hidden_LastFailure = v +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *ActivityTaskStartedEventAttributes) SetWorkerVersion(v *v1.WorkerVersionStamp) { + x.xxx_hidden_WorkerVersion = v +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *ActivityTaskStartedEventAttributes) SetBuildIdRedirectCounter(v int64) { + x.xxx_hidden_BuildIdRedirectCounter = v +} + +func (x *ActivityTaskStartedEventAttributes) HasLastFailure() bool { + if x == nil { + return false + } + return x.xxx_hidden_LastFailure != nil +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *ActivityTaskStartedEventAttributes) HasWorkerVersion() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkerVersion != nil +} + +func (x *ActivityTaskStartedEventAttributes) ClearLastFailure() { + x.xxx_hidden_LastFailure = nil +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *ActivityTaskStartedEventAttributes) ClearWorkerVersion() { + x.xxx_hidden_WorkerVersion = nil +} + +type ActivityTaskStartedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The id of the `ACTIVITY_TASK_SCHEDULED` event this task corresponds to + ScheduledEventId int64 + // id of the worker that picked up this task + Identity string + // This field is populated from the RecordActivityTaskStartedRequest. Matching service would + // set the request_id on the RecordActivityTaskStartedRequest to a new UUID. This is useful + // in case a RecordActivityTaskStarted call succeed but matching doesn't get that response, + // so matching could retry and history service would return success if the request_id matches. + // In that case, matching will continue to deliver the task to worker. Without this field, history + // service would return AlreadyStarted error, and matching would drop the task. + RequestId string + // Starting at 1, the number of times this task has been attempted + Attempt int32 + // Will be set to the most recent failure details, if this task has previously failed and then + // been retried. + LastFailure *v13.Failure + // Version info of the worker to whom this task was dispatched. + // Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + WorkerVersion *v1.WorkerVersionStamp + // Used by server internally to properly reapply build ID redirects to an execution + // when rebuilding it from events. + // Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + BuildIdRedirectCounter int64 +} + +func (b0 ActivityTaskStartedEventAttributes_builder) Build() *ActivityTaskStartedEventAttributes { + m0 := &ActivityTaskStartedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ScheduledEventId = b.ScheduledEventId + x.xxx_hidden_Identity = b.Identity + x.xxx_hidden_RequestId = b.RequestId + x.xxx_hidden_Attempt = b.Attempt + x.xxx_hidden_LastFailure = b.LastFailure + x.xxx_hidden_WorkerVersion = b.WorkerVersion + x.xxx_hidden_BuildIdRedirectCounter = b.BuildIdRedirectCounter + return m0 +} + +type ActivityTaskCompletedEventAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Result *v1.Payloads `protobuf:"bytes,1,opt,name=result,proto3"` + xxx_hidden_ScheduledEventId int64 `protobuf:"varint,2,opt,name=scheduled_event_id,json=scheduledEventId,proto3"` + xxx_hidden_StartedEventId int64 `protobuf:"varint,3,opt,name=started_event_id,json=startedEventId,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,4,opt,name=identity,proto3"` + xxx_hidden_WorkerVersion *v1.WorkerVersionStamp `protobuf:"bytes,5,opt,name=worker_version,json=workerVersion,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ActivityTaskCompletedEventAttributes) Reset() { + *x = ActivityTaskCompletedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ActivityTaskCompletedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ActivityTaskCompletedEventAttributes) ProtoMessage() {} + +func (x *ActivityTaskCompletedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[12] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ActivityTaskCompletedEventAttributes) GetResult() *v1.Payloads { + if x != nil { + return x.xxx_hidden_Result + } + return nil +} + +func (x *ActivityTaskCompletedEventAttributes) GetScheduledEventId() int64 { + if x != nil { + return x.xxx_hidden_ScheduledEventId + } + return 0 +} + +func (x *ActivityTaskCompletedEventAttributes) GetStartedEventId() int64 { + if x != nil { + return x.xxx_hidden_StartedEventId + } + return 0 +} + +func (x *ActivityTaskCompletedEventAttributes) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *ActivityTaskCompletedEventAttributes) GetWorkerVersion() *v1.WorkerVersionStamp { + if x != nil { + return x.xxx_hidden_WorkerVersion + } + return nil +} + +func (x *ActivityTaskCompletedEventAttributes) SetResult(v *v1.Payloads) { + x.xxx_hidden_Result = v +} + +func (x *ActivityTaskCompletedEventAttributes) SetScheduledEventId(v int64) { + x.xxx_hidden_ScheduledEventId = v +} + +func (x *ActivityTaskCompletedEventAttributes) SetStartedEventId(v int64) { + x.xxx_hidden_StartedEventId = v +} + +func (x *ActivityTaskCompletedEventAttributes) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *ActivityTaskCompletedEventAttributes) SetWorkerVersion(v *v1.WorkerVersionStamp) { + x.xxx_hidden_WorkerVersion = v +} + +func (x *ActivityTaskCompletedEventAttributes) HasResult() bool { + if x == nil { + return false + } + return x.xxx_hidden_Result != nil +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *ActivityTaskCompletedEventAttributes) HasWorkerVersion() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkerVersion != nil +} + +func (x *ActivityTaskCompletedEventAttributes) ClearResult() { + x.xxx_hidden_Result = nil +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *ActivityTaskCompletedEventAttributes) ClearWorkerVersion() { + x.xxx_hidden_WorkerVersion = nil +} + +type ActivityTaskCompletedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Serialized results of the activity. IE: The return value of the activity function + Result *v1.Payloads + // The id of the `ACTIVITY_TASK_SCHEDULED` event this completion corresponds to + ScheduledEventId int64 + // The id of the `ACTIVITY_TASK_STARTED` event this completion corresponds to + StartedEventId int64 + // id of the worker that completed this task + Identity string + // Version info of the worker who processed this workflow task. + // Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + WorkerVersion *v1.WorkerVersionStamp +} + +func (b0 ActivityTaskCompletedEventAttributes_builder) Build() *ActivityTaskCompletedEventAttributes { + m0 := &ActivityTaskCompletedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Result = b.Result + x.xxx_hidden_ScheduledEventId = b.ScheduledEventId + x.xxx_hidden_StartedEventId = b.StartedEventId + x.xxx_hidden_Identity = b.Identity + x.xxx_hidden_WorkerVersion = b.WorkerVersion + return m0 +} + +type ActivityTaskFailedEventAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Failure *v13.Failure `protobuf:"bytes,1,opt,name=failure,proto3"` + xxx_hidden_ScheduledEventId int64 `protobuf:"varint,2,opt,name=scheduled_event_id,json=scheduledEventId,proto3"` + xxx_hidden_StartedEventId int64 `protobuf:"varint,3,opt,name=started_event_id,json=startedEventId,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,4,opt,name=identity,proto3"` + xxx_hidden_RetryState v12.RetryState `protobuf:"varint,5,opt,name=retry_state,json=retryState,proto3,enum=temporal.api.enums.v1.RetryState"` + xxx_hidden_WorkerVersion *v1.WorkerVersionStamp `protobuf:"bytes,6,opt,name=worker_version,json=workerVersion,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ActivityTaskFailedEventAttributes) Reset() { + *x = ActivityTaskFailedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ActivityTaskFailedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ActivityTaskFailedEventAttributes) ProtoMessage() {} + +func (x *ActivityTaskFailedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[13] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ActivityTaskFailedEventAttributes) GetFailure() *v13.Failure { + if x != nil { + return x.xxx_hidden_Failure + } + return nil +} + +func (x *ActivityTaskFailedEventAttributes) GetScheduledEventId() int64 { + if x != nil { + return x.xxx_hidden_ScheduledEventId + } + return 0 +} + +func (x *ActivityTaskFailedEventAttributes) GetStartedEventId() int64 { + if x != nil { + return x.xxx_hidden_StartedEventId + } + return 0 +} + +func (x *ActivityTaskFailedEventAttributes) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *ActivityTaskFailedEventAttributes) GetRetryState() v12.RetryState { + if x != nil { + return x.xxx_hidden_RetryState + } + return v12.RetryState(0) +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *ActivityTaskFailedEventAttributes) GetWorkerVersion() *v1.WorkerVersionStamp { + if x != nil { + return x.xxx_hidden_WorkerVersion + } + return nil +} + +func (x *ActivityTaskFailedEventAttributes) SetFailure(v *v13.Failure) { + x.xxx_hidden_Failure = v +} + +func (x *ActivityTaskFailedEventAttributes) SetScheduledEventId(v int64) { + x.xxx_hidden_ScheduledEventId = v +} + +func (x *ActivityTaskFailedEventAttributes) SetStartedEventId(v int64) { + x.xxx_hidden_StartedEventId = v +} + +func (x *ActivityTaskFailedEventAttributes) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *ActivityTaskFailedEventAttributes) SetRetryState(v v12.RetryState) { + x.xxx_hidden_RetryState = v +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *ActivityTaskFailedEventAttributes) SetWorkerVersion(v *v1.WorkerVersionStamp) { + x.xxx_hidden_WorkerVersion = v +} + +func (x *ActivityTaskFailedEventAttributes) HasFailure() bool { + if x == nil { + return false + } + return x.xxx_hidden_Failure != nil +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *ActivityTaskFailedEventAttributes) HasWorkerVersion() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkerVersion != nil +} + +func (x *ActivityTaskFailedEventAttributes) ClearFailure() { + x.xxx_hidden_Failure = nil +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *ActivityTaskFailedEventAttributes) ClearWorkerVersion() { + x.xxx_hidden_WorkerVersion = nil +} + +type ActivityTaskFailedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Failure details + Failure *v13.Failure + // The id of the `ACTIVITY_TASK_SCHEDULED` event this failure corresponds to + ScheduledEventId int64 + // The id of the `ACTIVITY_TASK_STARTED` event this failure corresponds to + StartedEventId int64 + // id of the worker that failed this task + Identity string + RetryState v12.RetryState + // Version info of the worker who processed this workflow task. + // Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + WorkerVersion *v1.WorkerVersionStamp +} + +func (b0 ActivityTaskFailedEventAttributes_builder) Build() *ActivityTaskFailedEventAttributes { + m0 := &ActivityTaskFailedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Failure = b.Failure + x.xxx_hidden_ScheduledEventId = b.ScheduledEventId + x.xxx_hidden_StartedEventId = b.StartedEventId + x.xxx_hidden_Identity = b.Identity + x.xxx_hidden_RetryState = b.RetryState + x.xxx_hidden_WorkerVersion = b.WorkerVersion + return m0 +} + +type ActivityTaskTimedOutEventAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Failure *v13.Failure `protobuf:"bytes,1,opt,name=failure,proto3"` + xxx_hidden_ScheduledEventId int64 `protobuf:"varint,2,opt,name=scheduled_event_id,json=scheduledEventId,proto3"` + xxx_hidden_StartedEventId int64 `protobuf:"varint,3,opt,name=started_event_id,json=startedEventId,proto3"` + xxx_hidden_RetryState v12.RetryState `protobuf:"varint,4,opt,name=retry_state,json=retryState,proto3,enum=temporal.api.enums.v1.RetryState"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ActivityTaskTimedOutEventAttributes) Reset() { + *x = ActivityTaskTimedOutEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ActivityTaskTimedOutEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ActivityTaskTimedOutEventAttributes) ProtoMessage() {} + +func (x *ActivityTaskTimedOutEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[14] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ActivityTaskTimedOutEventAttributes) GetFailure() *v13.Failure { + if x != nil { + return x.xxx_hidden_Failure + } + return nil +} + +func (x *ActivityTaskTimedOutEventAttributes) GetScheduledEventId() int64 { + if x != nil { + return x.xxx_hidden_ScheduledEventId + } + return 0 +} + +func (x *ActivityTaskTimedOutEventAttributes) GetStartedEventId() int64 { + if x != nil { + return x.xxx_hidden_StartedEventId + } + return 0 +} + +func (x *ActivityTaskTimedOutEventAttributes) GetRetryState() v12.RetryState { + if x != nil { + return x.xxx_hidden_RetryState + } + return v12.RetryState(0) +} + +func (x *ActivityTaskTimedOutEventAttributes) SetFailure(v *v13.Failure) { + x.xxx_hidden_Failure = v +} + +func (x *ActivityTaskTimedOutEventAttributes) SetScheduledEventId(v int64) { + x.xxx_hidden_ScheduledEventId = v +} + +func (x *ActivityTaskTimedOutEventAttributes) SetStartedEventId(v int64) { + x.xxx_hidden_StartedEventId = v +} + +func (x *ActivityTaskTimedOutEventAttributes) SetRetryState(v v12.RetryState) { + x.xxx_hidden_RetryState = v +} + +func (x *ActivityTaskTimedOutEventAttributes) HasFailure() bool { + if x == nil { + return false + } + return x.xxx_hidden_Failure != nil +} + +func (x *ActivityTaskTimedOutEventAttributes) ClearFailure() { + x.xxx_hidden_Failure = nil +} + +type ActivityTaskTimedOutEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // If this activity had failed, was retried, and then timed out, that failure is stored as the + // `cause` in here. + Failure *v13.Failure + // The id of the `ACTIVITY_TASK_SCHEDULED` event this timeout corresponds to + ScheduledEventId int64 + // The id of the `ACTIVITY_TASK_STARTED` event this timeout corresponds to + StartedEventId int64 + RetryState v12.RetryState +} + +func (b0 ActivityTaskTimedOutEventAttributes_builder) Build() *ActivityTaskTimedOutEventAttributes { + m0 := &ActivityTaskTimedOutEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Failure = b.Failure + x.xxx_hidden_ScheduledEventId = b.ScheduledEventId + x.xxx_hidden_StartedEventId = b.StartedEventId + x.xxx_hidden_RetryState = b.RetryState + return m0 +} + +type ActivityTaskCancelRequestedEventAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ScheduledEventId int64 `protobuf:"varint,1,opt,name=scheduled_event_id,json=scheduledEventId,proto3"` + xxx_hidden_WorkflowTaskCompletedEventId int64 `protobuf:"varint,2,opt,name=workflow_task_completed_event_id,json=workflowTaskCompletedEventId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ActivityTaskCancelRequestedEventAttributes) Reset() { + *x = ActivityTaskCancelRequestedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ActivityTaskCancelRequestedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ActivityTaskCancelRequestedEventAttributes) ProtoMessage() {} + +func (x *ActivityTaskCancelRequestedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[15] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ActivityTaskCancelRequestedEventAttributes) GetScheduledEventId() int64 { + if x != nil { + return x.xxx_hidden_ScheduledEventId + } + return 0 +} + +func (x *ActivityTaskCancelRequestedEventAttributes) GetWorkflowTaskCompletedEventId() int64 { + if x != nil { + return x.xxx_hidden_WorkflowTaskCompletedEventId + } + return 0 +} + +func (x *ActivityTaskCancelRequestedEventAttributes) SetScheduledEventId(v int64) { + x.xxx_hidden_ScheduledEventId = v +} + +func (x *ActivityTaskCancelRequestedEventAttributes) SetWorkflowTaskCompletedEventId(v int64) { + x.xxx_hidden_WorkflowTaskCompletedEventId = v +} + +type ActivityTaskCancelRequestedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The id of the `ACTIVITY_TASK_SCHEDULED` event this cancel request corresponds to + ScheduledEventId int64 + // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + WorkflowTaskCompletedEventId int64 +} + +func (b0 ActivityTaskCancelRequestedEventAttributes_builder) Build() *ActivityTaskCancelRequestedEventAttributes { + m0 := &ActivityTaskCancelRequestedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ScheduledEventId = b.ScheduledEventId + x.xxx_hidden_WorkflowTaskCompletedEventId = b.WorkflowTaskCompletedEventId + return m0 +} + +type ActivityTaskCanceledEventAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Details *v1.Payloads `protobuf:"bytes,1,opt,name=details,proto3"` + xxx_hidden_LatestCancelRequestedEventId int64 `protobuf:"varint,2,opt,name=latest_cancel_requested_event_id,json=latestCancelRequestedEventId,proto3"` + xxx_hidden_ScheduledEventId int64 `protobuf:"varint,3,opt,name=scheduled_event_id,json=scheduledEventId,proto3"` + xxx_hidden_StartedEventId int64 `protobuf:"varint,4,opt,name=started_event_id,json=startedEventId,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,5,opt,name=identity,proto3"` + xxx_hidden_WorkerVersion *v1.WorkerVersionStamp `protobuf:"bytes,6,opt,name=worker_version,json=workerVersion,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ActivityTaskCanceledEventAttributes) Reset() { + *x = ActivityTaskCanceledEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ActivityTaskCanceledEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ActivityTaskCanceledEventAttributes) ProtoMessage() {} + +func (x *ActivityTaskCanceledEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[16] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ActivityTaskCanceledEventAttributes) GetDetails() *v1.Payloads { + if x != nil { + return x.xxx_hidden_Details + } + return nil +} + +func (x *ActivityTaskCanceledEventAttributes) GetLatestCancelRequestedEventId() int64 { + if x != nil { + return x.xxx_hidden_LatestCancelRequestedEventId + } + return 0 +} + +func (x *ActivityTaskCanceledEventAttributes) GetScheduledEventId() int64 { + if x != nil { + return x.xxx_hidden_ScheduledEventId + } + return 0 +} + +func (x *ActivityTaskCanceledEventAttributes) GetStartedEventId() int64 { + if x != nil { + return x.xxx_hidden_StartedEventId + } + return 0 +} + +func (x *ActivityTaskCanceledEventAttributes) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *ActivityTaskCanceledEventAttributes) GetWorkerVersion() *v1.WorkerVersionStamp { + if x != nil { + return x.xxx_hidden_WorkerVersion + } + return nil +} + +func (x *ActivityTaskCanceledEventAttributes) SetDetails(v *v1.Payloads) { + x.xxx_hidden_Details = v +} + +func (x *ActivityTaskCanceledEventAttributes) SetLatestCancelRequestedEventId(v int64) { + x.xxx_hidden_LatestCancelRequestedEventId = v +} + +func (x *ActivityTaskCanceledEventAttributes) SetScheduledEventId(v int64) { + x.xxx_hidden_ScheduledEventId = v +} + +func (x *ActivityTaskCanceledEventAttributes) SetStartedEventId(v int64) { + x.xxx_hidden_StartedEventId = v +} + +func (x *ActivityTaskCanceledEventAttributes) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *ActivityTaskCanceledEventAttributes) SetWorkerVersion(v *v1.WorkerVersionStamp) { + x.xxx_hidden_WorkerVersion = v +} + +func (x *ActivityTaskCanceledEventAttributes) HasDetails() bool { + if x == nil { + return false + } + return x.xxx_hidden_Details != nil +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *ActivityTaskCanceledEventAttributes) HasWorkerVersion() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkerVersion != nil +} + +func (x *ActivityTaskCanceledEventAttributes) ClearDetails() { + x.xxx_hidden_Details = nil +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *ActivityTaskCanceledEventAttributes) ClearWorkerVersion() { + x.xxx_hidden_WorkerVersion = nil +} + +type ActivityTaskCanceledEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Additional information that the activity reported upon confirming cancellation + Details *v1.Payloads + // id of the most recent `ACTIVITY_TASK_CANCEL_REQUESTED` event which refers to the same + // activity + LatestCancelRequestedEventId int64 + // The id of the `ACTIVITY_TASK_SCHEDULED` event this cancel confirmation corresponds to + ScheduledEventId int64 + // The id of the `ACTIVITY_TASK_STARTED` event this cancel confirmation corresponds to + StartedEventId int64 + // id of the worker who canceled this activity + Identity string + // Version info of the worker who processed this workflow task. + // Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + WorkerVersion *v1.WorkerVersionStamp +} + +func (b0 ActivityTaskCanceledEventAttributes_builder) Build() *ActivityTaskCanceledEventAttributes { + m0 := &ActivityTaskCanceledEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Details = b.Details + x.xxx_hidden_LatestCancelRequestedEventId = b.LatestCancelRequestedEventId + x.xxx_hidden_ScheduledEventId = b.ScheduledEventId + x.xxx_hidden_StartedEventId = b.StartedEventId + x.xxx_hidden_Identity = b.Identity + x.xxx_hidden_WorkerVersion = b.WorkerVersion + return m0 +} + +type TimerStartedEventAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_TimerId string `protobuf:"bytes,1,opt,name=timer_id,json=timerId,proto3"` + xxx_hidden_StartToFireTimeout *durationpb.Duration `protobuf:"bytes,2,opt,name=start_to_fire_timeout,json=startToFireTimeout,proto3"` + xxx_hidden_WorkflowTaskCompletedEventId int64 `protobuf:"varint,3,opt,name=workflow_task_completed_event_id,json=workflowTaskCompletedEventId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TimerStartedEventAttributes) Reset() { + *x = TimerStartedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TimerStartedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TimerStartedEventAttributes) ProtoMessage() {} + +func (x *TimerStartedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[17] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *TimerStartedEventAttributes) GetTimerId() string { + if x != nil { + return x.xxx_hidden_TimerId + } + return "" +} + +func (x *TimerStartedEventAttributes) GetStartToFireTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_StartToFireTimeout + } + return nil +} + +func (x *TimerStartedEventAttributes) GetWorkflowTaskCompletedEventId() int64 { + if x != nil { + return x.xxx_hidden_WorkflowTaskCompletedEventId + } + return 0 +} + +func (x *TimerStartedEventAttributes) SetTimerId(v string) { + x.xxx_hidden_TimerId = v +} + +func (x *TimerStartedEventAttributes) SetStartToFireTimeout(v *durationpb.Duration) { + x.xxx_hidden_StartToFireTimeout = v +} + +func (x *TimerStartedEventAttributes) SetWorkflowTaskCompletedEventId(v int64) { + x.xxx_hidden_WorkflowTaskCompletedEventId = v +} + +func (x *TimerStartedEventAttributes) HasStartToFireTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_StartToFireTimeout != nil +} + +func (x *TimerStartedEventAttributes) ClearStartToFireTimeout() { + x.xxx_hidden_StartToFireTimeout = nil +} + +type TimerStartedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The worker/user assigned id for this timer + TimerId string + // How long until this timer fires + // + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + StartToFireTimeout *durationpb.Duration + // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + WorkflowTaskCompletedEventId int64 +} + +func (b0 TimerStartedEventAttributes_builder) Build() *TimerStartedEventAttributes { + m0 := &TimerStartedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_TimerId = b.TimerId + x.xxx_hidden_StartToFireTimeout = b.StartToFireTimeout + x.xxx_hidden_WorkflowTaskCompletedEventId = b.WorkflowTaskCompletedEventId + return m0 +} + +type TimerFiredEventAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_TimerId string `protobuf:"bytes,1,opt,name=timer_id,json=timerId,proto3"` + xxx_hidden_StartedEventId int64 `protobuf:"varint,2,opt,name=started_event_id,json=startedEventId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TimerFiredEventAttributes) Reset() { + *x = TimerFiredEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TimerFiredEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TimerFiredEventAttributes) ProtoMessage() {} + +func (x *TimerFiredEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[18] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *TimerFiredEventAttributes) GetTimerId() string { + if x != nil { + return x.xxx_hidden_TimerId + } + return "" +} + +func (x *TimerFiredEventAttributes) GetStartedEventId() int64 { + if x != nil { + return x.xxx_hidden_StartedEventId + } + return 0 +} + +func (x *TimerFiredEventAttributes) SetTimerId(v string) { + x.xxx_hidden_TimerId = v +} + +func (x *TimerFiredEventAttributes) SetStartedEventId(v int64) { + x.xxx_hidden_StartedEventId = v +} + +type TimerFiredEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Will match the `timer_id` from `TIMER_STARTED` event for this timer + TimerId string + // The id of the `TIMER_STARTED` event itself + StartedEventId int64 +} + +func (b0 TimerFiredEventAttributes_builder) Build() *TimerFiredEventAttributes { + m0 := &TimerFiredEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_TimerId = b.TimerId + x.xxx_hidden_StartedEventId = b.StartedEventId + return m0 +} + +type TimerCanceledEventAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_TimerId string `protobuf:"bytes,1,opt,name=timer_id,json=timerId,proto3"` + xxx_hidden_StartedEventId int64 `protobuf:"varint,2,opt,name=started_event_id,json=startedEventId,proto3"` + xxx_hidden_WorkflowTaskCompletedEventId int64 `protobuf:"varint,3,opt,name=workflow_task_completed_event_id,json=workflowTaskCompletedEventId,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,4,opt,name=identity,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TimerCanceledEventAttributes) Reset() { + *x = TimerCanceledEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TimerCanceledEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TimerCanceledEventAttributes) ProtoMessage() {} + +func (x *TimerCanceledEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[19] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *TimerCanceledEventAttributes) GetTimerId() string { + if x != nil { + return x.xxx_hidden_TimerId + } + return "" +} + +func (x *TimerCanceledEventAttributes) GetStartedEventId() int64 { + if x != nil { + return x.xxx_hidden_StartedEventId + } + return 0 +} + +func (x *TimerCanceledEventAttributes) GetWorkflowTaskCompletedEventId() int64 { + if x != nil { + return x.xxx_hidden_WorkflowTaskCompletedEventId + } + return 0 +} + +func (x *TimerCanceledEventAttributes) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *TimerCanceledEventAttributes) SetTimerId(v string) { + x.xxx_hidden_TimerId = v +} + +func (x *TimerCanceledEventAttributes) SetStartedEventId(v int64) { + x.xxx_hidden_StartedEventId = v +} + +func (x *TimerCanceledEventAttributes) SetWorkflowTaskCompletedEventId(v int64) { + x.xxx_hidden_WorkflowTaskCompletedEventId = v +} + +func (x *TimerCanceledEventAttributes) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +type TimerCanceledEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Will match the `timer_id` from `TIMER_STARTED` event for this timer + TimerId string + // The id of the `TIMER_STARTED` event itself + StartedEventId int64 + // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + WorkflowTaskCompletedEventId int64 + // The id of the worker who requested this cancel + Identity string +} + +func (b0 TimerCanceledEventAttributes_builder) Build() *TimerCanceledEventAttributes { + m0 := &TimerCanceledEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_TimerId = b.TimerId + x.xxx_hidden_StartedEventId = b.StartedEventId + x.xxx_hidden_WorkflowTaskCompletedEventId = b.WorkflowTaskCompletedEventId + x.xxx_hidden_Identity = b.Identity + return m0 +} + +type WorkflowExecutionCancelRequestedEventAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Cause string `protobuf:"bytes,1,opt,name=cause,proto3"` + xxx_hidden_ExternalInitiatedEventId int64 `protobuf:"varint,2,opt,name=external_initiated_event_id,json=externalInitiatedEventId,proto3"` + xxx_hidden_ExternalWorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,3,opt,name=external_workflow_execution,json=externalWorkflowExecution,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,4,opt,name=identity,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowExecutionCancelRequestedEventAttributes) Reset() { + *x = WorkflowExecutionCancelRequestedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkflowExecutionCancelRequestedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowExecutionCancelRequestedEventAttributes) ProtoMessage() {} + +func (x *WorkflowExecutionCancelRequestedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[20] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkflowExecutionCancelRequestedEventAttributes) GetCause() string { + if x != nil { + return x.xxx_hidden_Cause + } + return "" +} + +func (x *WorkflowExecutionCancelRequestedEventAttributes) GetExternalInitiatedEventId() int64 { + if x != nil { + return x.xxx_hidden_ExternalInitiatedEventId + } + return 0 +} + +func (x *WorkflowExecutionCancelRequestedEventAttributes) GetExternalWorkflowExecution() *v1.WorkflowExecution { + if x != nil { + return x.xxx_hidden_ExternalWorkflowExecution + } + return nil +} + +func (x *WorkflowExecutionCancelRequestedEventAttributes) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *WorkflowExecutionCancelRequestedEventAttributes) SetCause(v string) { + x.xxx_hidden_Cause = v +} + +func (x *WorkflowExecutionCancelRequestedEventAttributes) SetExternalInitiatedEventId(v int64) { + x.xxx_hidden_ExternalInitiatedEventId = v +} + +func (x *WorkflowExecutionCancelRequestedEventAttributes) SetExternalWorkflowExecution(v *v1.WorkflowExecution) { + x.xxx_hidden_ExternalWorkflowExecution = v +} + +func (x *WorkflowExecutionCancelRequestedEventAttributes) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *WorkflowExecutionCancelRequestedEventAttributes) HasExternalWorkflowExecution() bool { + if x == nil { + return false + } + return x.xxx_hidden_ExternalWorkflowExecution != nil +} + +func (x *WorkflowExecutionCancelRequestedEventAttributes) ClearExternalWorkflowExecution() { + x.xxx_hidden_ExternalWorkflowExecution = nil +} + +type WorkflowExecutionCancelRequestedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // User provided reason for requesting cancellation + Cause string + // The ID of the `REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED` event in the external + // workflow history when the cancellation was requested by another workflow. + ExternalInitiatedEventId int64 + ExternalWorkflowExecution *v1.WorkflowExecution + // id of the worker or client who requested this cancel + Identity string +} + +func (b0 WorkflowExecutionCancelRequestedEventAttributes_builder) Build() *WorkflowExecutionCancelRequestedEventAttributes { + m0 := &WorkflowExecutionCancelRequestedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Cause = b.Cause + x.xxx_hidden_ExternalInitiatedEventId = b.ExternalInitiatedEventId + x.xxx_hidden_ExternalWorkflowExecution = b.ExternalWorkflowExecution + x.xxx_hidden_Identity = b.Identity + return m0 +} + +type WorkflowExecutionCanceledEventAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_WorkflowTaskCompletedEventId int64 `protobuf:"varint,1,opt,name=workflow_task_completed_event_id,json=workflowTaskCompletedEventId,proto3"` + xxx_hidden_Details *v1.Payloads `protobuf:"bytes,2,opt,name=details,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowExecutionCanceledEventAttributes) Reset() { + *x = WorkflowExecutionCanceledEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkflowExecutionCanceledEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowExecutionCanceledEventAttributes) ProtoMessage() {} + +func (x *WorkflowExecutionCanceledEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[21] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkflowExecutionCanceledEventAttributes) GetWorkflowTaskCompletedEventId() int64 { + if x != nil { + return x.xxx_hidden_WorkflowTaskCompletedEventId + } + return 0 +} + +func (x *WorkflowExecutionCanceledEventAttributes) GetDetails() *v1.Payloads { + if x != nil { + return x.xxx_hidden_Details + } + return nil +} + +func (x *WorkflowExecutionCanceledEventAttributes) SetWorkflowTaskCompletedEventId(v int64) { + x.xxx_hidden_WorkflowTaskCompletedEventId = v +} + +func (x *WorkflowExecutionCanceledEventAttributes) SetDetails(v *v1.Payloads) { + x.xxx_hidden_Details = v +} + +func (x *WorkflowExecutionCanceledEventAttributes) HasDetails() bool { + if x == nil { + return false + } + return x.xxx_hidden_Details != nil +} + +func (x *WorkflowExecutionCanceledEventAttributes) ClearDetails() { + x.xxx_hidden_Details = nil +} + +type WorkflowExecutionCanceledEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + WorkflowTaskCompletedEventId int64 + Details *v1.Payloads +} + +func (b0 WorkflowExecutionCanceledEventAttributes_builder) Build() *WorkflowExecutionCanceledEventAttributes { + m0 := &WorkflowExecutionCanceledEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_WorkflowTaskCompletedEventId = b.WorkflowTaskCompletedEventId + x.xxx_hidden_Details = b.Details + return m0 +} + +type MarkerRecordedEventAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_MarkerName string `protobuf:"bytes,1,opt,name=marker_name,json=markerName,proto3"` + xxx_hidden_Details map[string]*v1.Payloads `protobuf:"bytes,2,rep,name=details,proto3" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + xxx_hidden_WorkflowTaskCompletedEventId int64 `protobuf:"varint,3,opt,name=workflow_task_completed_event_id,json=workflowTaskCompletedEventId,proto3"` + xxx_hidden_Header *v1.Header `protobuf:"bytes,4,opt,name=header,proto3"` + xxx_hidden_Failure *v13.Failure `protobuf:"bytes,5,opt,name=failure,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *MarkerRecordedEventAttributes) Reset() { + *x = MarkerRecordedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *MarkerRecordedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MarkerRecordedEventAttributes) ProtoMessage() {} + +func (x *MarkerRecordedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[22] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *MarkerRecordedEventAttributes) GetMarkerName() string { + if x != nil { + return x.xxx_hidden_MarkerName + } + return "" +} + +func (x *MarkerRecordedEventAttributes) GetDetails() map[string]*v1.Payloads { + if x != nil { + return x.xxx_hidden_Details + } + return nil +} + +func (x *MarkerRecordedEventAttributes) GetWorkflowTaskCompletedEventId() int64 { + if x != nil { + return x.xxx_hidden_WorkflowTaskCompletedEventId + } + return 0 +} + +func (x *MarkerRecordedEventAttributes) GetHeader() *v1.Header { + if x != nil { + return x.xxx_hidden_Header + } + return nil +} + +func (x *MarkerRecordedEventAttributes) GetFailure() *v13.Failure { + if x != nil { + return x.xxx_hidden_Failure + } + return nil +} + +func (x *MarkerRecordedEventAttributes) SetMarkerName(v string) { + x.xxx_hidden_MarkerName = v +} + +func (x *MarkerRecordedEventAttributes) SetDetails(v map[string]*v1.Payloads) { + x.xxx_hidden_Details = v +} + +func (x *MarkerRecordedEventAttributes) SetWorkflowTaskCompletedEventId(v int64) { + x.xxx_hidden_WorkflowTaskCompletedEventId = v +} + +func (x *MarkerRecordedEventAttributes) SetHeader(v *v1.Header) { + x.xxx_hidden_Header = v +} + +func (x *MarkerRecordedEventAttributes) SetFailure(v *v13.Failure) { + x.xxx_hidden_Failure = v +} + +func (x *MarkerRecordedEventAttributes) HasHeader() bool { + if x == nil { + return false + } + return x.xxx_hidden_Header != nil +} + +func (x *MarkerRecordedEventAttributes) HasFailure() bool { + if x == nil { + return false + } + return x.xxx_hidden_Failure != nil +} + +func (x *MarkerRecordedEventAttributes) ClearHeader() { + x.xxx_hidden_Header = nil +} + +func (x *MarkerRecordedEventAttributes) ClearFailure() { + x.xxx_hidden_Failure = nil +} + +type MarkerRecordedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Workers use this to identify the "types" of various markers. Ex: Local activity, side effect. + MarkerName string + // Serialized information recorded in the marker + Details map[string]*v1.Payloads + // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + WorkflowTaskCompletedEventId int64 + Header *v1.Header + // Some uses of markers, like a local activity, could "fail". If they did that is recorded here. + Failure *v13.Failure +} + +func (b0 MarkerRecordedEventAttributes_builder) Build() *MarkerRecordedEventAttributes { + m0 := &MarkerRecordedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_MarkerName = b.MarkerName + x.xxx_hidden_Details = b.Details + x.xxx_hidden_WorkflowTaskCompletedEventId = b.WorkflowTaskCompletedEventId + x.xxx_hidden_Header = b.Header + x.xxx_hidden_Failure = b.Failure + return m0 +} + +type WorkflowExecutionSignaledEventAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_SignalName string `protobuf:"bytes,1,opt,name=signal_name,json=signalName,proto3"` + xxx_hidden_Input *v1.Payloads `protobuf:"bytes,2,opt,name=input,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,3,opt,name=identity,proto3"` + xxx_hidden_Header *v1.Header `protobuf:"bytes,4,opt,name=header,proto3"` + xxx_hidden_SkipGenerateWorkflowTask bool `protobuf:"varint,5,opt,name=skip_generate_workflow_task,json=skipGenerateWorkflowTask,proto3"` + xxx_hidden_ExternalWorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,6,opt,name=external_workflow_execution,json=externalWorkflowExecution,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowExecutionSignaledEventAttributes) Reset() { + *x = WorkflowExecutionSignaledEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkflowExecutionSignaledEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowExecutionSignaledEventAttributes) ProtoMessage() {} + +func (x *WorkflowExecutionSignaledEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[23] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkflowExecutionSignaledEventAttributes) GetSignalName() string { + if x != nil { + return x.xxx_hidden_SignalName + } + return "" +} + +func (x *WorkflowExecutionSignaledEventAttributes) GetInput() *v1.Payloads { + if x != nil { + return x.xxx_hidden_Input + } + return nil +} + +func (x *WorkflowExecutionSignaledEventAttributes) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *WorkflowExecutionSignaledEventAttributes) GetHeader() *v1.Header { + if x != nil { + return x.xxx_hidden_Header + } + return nil +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowExecutionSignaledEventAttributes) GetSkipGenerateWorkflowTask() bool { + if x != nil { + return x.xxx_hidden_SkipGenerateWorkflowTask + } + return false +} + +func (x *WorkflowExecutionSignaledEventAttributes) GetExternalWorkflowExecution() *v1.WorkflowExecution { + if x != nil { + return x.xxx_hidden_ExternalWorkflowExecution + } + return nil +} + +func (x *WorkflowExecutionSignaledEventAttributes) SetSignalName(v string) { + x.xxx_hidden_SignalName = v +} + +func (x *WorkflowExecutionSignaledEventAttributes) SetInput(v *v1.Payloads) { + x.xxx_hidden_Input = v +} + +func (x *WorkflowExecutionSignaledEventAttributes) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *WorkflowExecutionSignaledEventAttributes) SetHeader(v *v1.Header) { + x.xxx_hidden_Header = v +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *WorkflowExecutionSignaledEventAttributes) SetSkipGenerateWorkflowTask(v bool) { + x.xxx_hidden_SkipGenerateWorkflowTask = v +} + +func (x *WorkflowExecutionSignaledEventAttributes) SetExternalWorkflowExecution(v *v1.WorkflowExecution) { + x.xxx_hidden_ExternalWorkflowExecution = v +} + +func (x *WorkflowExecutionSignaledEventAttributes) HasInput() bool { + if x == nil { + return false + } + return x.xxx_hidden_Input != nil +} + +func (x *WorkflowExecutionSignaledEventAttributes) HasHeader() bool { + if x == nil { + return false + } + return x.xxx_hidden_Header != nil +} + +func (x *WorkflowExecutionSignaledEventAttributes) HasExternalWorkflowExecution() bool { + if x == nil { + return false + } + return x.xxx_hidden_ExternalWorkflowExecution != nil +} + +func (x *WorkflowExecutionSignaledEventAttributes) ClearInput() { + x.xxx_hidden_Input = nil +} + +func (x *WorkflowExecutionSignaledEventAttributes) ClearHeader() { + x.xxx_hidden_Header = nil +} + +func (x *WorkflowExecutionSignaledEventAttributes) ClearExternalWorkflowExecution() { + x.xxx_hidden_ExternalWorkflowExecution = nil +} + +type WorkflowExecutionSignaledEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The name/type of the signal to fire + SignalName string + // Will be deserialized and provided as argument(s) to the signal handler + Input *v1.Payloads + // id of the worker/client who sent this signal + Identity string + // Headers that were passed by the sender of the signal and copied by temporal + // server into the workflow task. + Header *v1.Header + // Deprecated. This field is never respected and should always be set to false. + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + SkipGenerateWorkflowTask bool + // When signal origin is a workflow execution, this field is set. + ExternalWorkflowExecution *v1.WorkflowExecution +} + +func (b0 WorkflowExecutionSignaledEventAttributes_builder) Build() *WorkflowExecutionSignaledEventAttributes { + m0 := &WorkflowExecutionSignaledEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_SignalName = b.SignalName + x.xxx_hidden_Input = b.Input + x.xxx_hidden_Identity = b.Identity + x.xxx_hidden_Header = b.Header + x.xxx_hidden_SkipGenerateWorkflowTask = b.SkipGenerateWorkflowTask + x.xxx_hidden_ExternalWorkflowExecution = b.ExternalWorkflowExecution + return m0 +} + +type WorkflowExecutionTerminatedEventAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Reason string `protobuf:"bytes,1,opt,name=reason,proto3"` + xxx_hidden_Details *v1.Payloads `protobuf:"bytes,2,opt,name=details,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,3,opt,name=identity,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowExecutionTerminatedEventAttributes) Reset() { + *x = WorkflowExecutionTerminatedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkflowExecutionTerminatedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowExecutionTerminatedEventAttributes) ProtoMessage() {} + +func (x *WorkflowExecutionTerminatedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[24] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkflowExecutionTerminatedEventAttributes) GetReason() string { + if x != nil { + return x.xxx_hidden_Reason + } + return "" +} + +func (x *WorkflowExecutionTerminatedEventAttributes) GetDetails() *v1.Payloads { + if x != nil { + return x.xxx_hidden_Details + } + return nil +} + +func (x *WorkflowExecutionTerminatedEventAttributes) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *WorkflowExecutionTerminatedEventAttributes) SetReason(v string) { + x.xxx_hidden_Reason = v +} + +func (x *WorkflowExecutionTerminatedEventAttributes) SetDetails(v *v1.Payloads) { + x.xxx_hidden_Details = v +} + +func (x *WorkflowExecutionTerminatedEventAttributes) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *WorkflowExecutionTerminatedEventAttributes) HasDetails() bool { + if x == nil { + return false + } + return x.xxx_hidden_Details != nil +} + +func (x *WorkflowExecutionTerminatedEventAttributes) ClearDetails() { + x.xxx_hidden_Details = nil +} + +type WorkflowExecutionTerminatedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // User/client provided reason for termination + Reason string + Details *v1.Payloads + // id of the client who requested termination + Identity string +} + +func (b0 WorkflowExecutionTerminatedEventAttributes_builder) Build() *WorkflowExecutionTerminatedEventAttributes { + m0 := &WorkflowExecutionTerminatedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Reason = b.Reason + x.xxx_hidden_Details = b.Details + x.xxx_hidden_Identity = b.Identity + return m0 +} + +type RequestCancelExternalWorkflowExecutionInitiatedEventAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_WorkflowTaskCompletedEventId int64 `protobuf:"varint,1,opt,name=workflow_task_completed_event_id,json=workflowTaskCompletedEventId,proto3"` + xxx_hidden_Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3"` + xxx_hidden_NamespaceId string `protobuf:"bytes,7,opt,name=namespace_id,json=namespaceId,proto3"` + xxx_hidden_WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,3,opt,name=workflow_execution,json=workflowExecution,proto3"` + xxx_hidden_Control string `protobuf:"bytes,4,opt,name=control,proto3"` + xxx_hidden_ChildWorkflowOnly bool `protobuf:"varint,5,opt,name=child_workflow_only,json=childWorkflowOnly,proto3"` + xxx_hidden_Reason string `protobuf:"bytes,6,opt,name=reason,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) Reset() { + *x = RequestCancelExternalWorkflowExecutionInitiatedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) ProtoMessage() {} + +func (x *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[25] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) GetWorkflowTaskCompletedEventId() int64 { + if x != nil { + return x.xxx_hidden_WorkflowTaskCompletedEventId + } + return 0 +} + +func (x *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) GetNamespaceId() string { + if x != nil { + return x.xxx_hidden_NamespaceId + } + return "" +} + +func (x *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) GetWorkflowExecution() *v1.WorkflowExecution { + if x != nil { + return x.xxx_hidden_WorkflowExecution + } + return nil +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) GetControl() string { + if x != nil { + return x.xxx_hidden_Control + } + return "" +} + +func (x *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) GetChildWorkflowOnly() bool { + if x != nil { + return x.xxx_hidden_ChildWorkflowOnly + } + return false +} + +func (x *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) GetReason() string { + if x != nil { + return x.xxx_hidden_Reason + } + return "" +} + +func (x *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) SetWorkflowTaskCompletedEventId(v int64) { + x.xxx_hidden_WorkflowTaskCompletedEventId = v +} + +func (x *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) SetNamespaceId(v string) { + x.xxx_hidden_NamespaceId = v +} + +func (x *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) SetWorkflowExecution(v *v1.WorkflowExecution) { + x.xxx_hidden_WorkflowExecution = v +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) SetControl(v string) { + x.xxx_hidden_Control = v +} + +func (x *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) SetChildWorkflowOnly(v bool) { + x.xxx_hidden_ChildWorkflowOnly = v +} + +func (x *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) SetReason(v string) { + x.xxx_hidden_Reason = v +} + +func (x *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) HasWorkflowExecution() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowExecution != nil +} + +func (x *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) ClearWorkflowExecution() { + x.xxx_hidden_WorkflowExecution = nil +} + +type RequestCancelExternalWorkflowExecutionInitiatedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + WorkflowTaskCompletedEventId int64 + // The namespace the workflow to be cancelled lives in. + // SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. + Namespace string + NamespaceId string + WorkflowExecution *v1.WorkflowExecution + // Deprecated. + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + Control string + // Workers are expected to set this to true if the workflow they are requesting to cancel is + // a child of the workflow which issued the request + ChildWorkflowOnly bool + // Reason for requesting the cancellation + Reason string +} + +func (b0 RequestCancelExternalWorkflowExecutionInitiatedEventAttributes_builder) Build() *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes { + m0 := &RequestCancelExternalWorkflowExecutionInitiatedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_WorkflowTaskCompletedEventId = b.WorkflowTaskCompletedEventId + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_NamespaceId = b.NamespaceId + x.xxx_hidden_WorkflowExecution = b.WorkflowExecution + x.xxx_hidden_Control = b.Control + x.xxx_hidden_ChildWorkflowOnly = b.ChildWorkflowOnly + x.xxx_hidden_Reason = b.Reason + return m0 +} + +type RequestCancelExternalWorkflowExecutionFailedEventAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Cause v12.CancelExternalWorkflowExecutionFailedCause `protobuf:"varint,1,opt,name=cause,proto3,enum=temporal.api.enums.v1.CancelExternalWorkflowExecutionFailedCause"` + xxx_hidden_WorkflowTaskCompletedEventId int64 `protobuf:"varint,2,opt,name=workflow_task_completed_event_id,json=workflowTaskCompletedEventId,proto3"` + xxx_hidden_Namespace string `protobuf:"bytes,3,opt,name=namespace,proto3"` + xxx_hidden_NamespaceId string `protobuf:"bytes,7,opt,name=namespace_id,json=namespaceId,proto3"` + xxx_hidden_WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,4,opt,name=workflow_execution,json=workflowExecution,proto3"` + xxx_hidden_InitiatedEventId int64 `protobuf:"varint,5,opt,name=initiated_event_id,json=initiatedEventId,proto3"` + xxx_hidden_Control string `protobuf:"bytes,6,opt,name=control,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RequestCancelExternalWorkflowExecutionFailedEventAttributes) Reset() { + *x = RequestCancelExternalWorkflowExecutionFailedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RequestCancelExternalWorkflowExecutionFailedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RequestCancelExternalWorkflowExecutionFailedEventAttributes) ProtoMessage() {} + +func (x *RequestCancelExternalWorkflowExecutionFailedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[26] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *RequestCancelExternalWorkflowExecutionFailedEventAttributes) GetCause() v12.CancelExternalWorkflowExecutionFailedCause { + if x != nil { + return x.xxx_hidden_Cause + } + return v12.CancelExternalWorkflowExecutionFailedCause(0) +} + +func (x *RequestCancelExternalWorkflowExecutionFailedEventAttributes) GetWorkflowTaskCompletedEventId() int64 { + if x != nil { + return x.xxx_hidden_WorkflowTaskCompletedEventId + } + return 0 +} + +func (x *RequestCancelExternalWorkflowExecutionFailedEventAttributes) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *RequestCancelExternalWorkflowExecutionFailedEventAttributes) GetNamespaceId() string { + if x != nil { + return x.xxx_hidden_NamespaceId + } + return "" +} + +func (x *RequestCancelExternalWorkflowExecutionFailedEventAttributes) GetWorkflowExecution() *v1.WorkflowExecution { + if x != nil { + return x.xxx_hidden_WorkflowExecution + } + return nil +} + +func (x *RequestCancelExternalWorkflowExecutionFailedEventAttributes) GetInitiatedEventId() int64 { + if x != nil { + return x.xxx_hidden_InitiatedEventId + } + return 0 +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *RequestCancelExternalWorkflowExecutionFailedEventAttributes) GetControl() string { + if x != nil { + return x.xxx_hidden_Control + } + return "" +} + +func (x *RequestCancelExternalWorkflowExecutionFailedEventAttributes) SetCause(v v12.CancelExternalWorkflowExecutionFailedCause) { + x.xxx_hidden_Cause = v +} + +func (x *RequestCancelExternalWorkflowExecutionFailedEventAttributes) SetWorkflowTaskCompletedEventId(v int64) { + x.xxx_hidden_WorkflowTaskCompletedEventId = v +} + +func (x *RequestCancelExternalWorkflowExecutionFailedEventAttributes) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *RequestCancelExternalWorkflowExecutionFailedEventAttributes) SetNamespaceId(v string) { + x.xxx_hidden_NamespaceId = v +} + +func (x *RequestCancelExternalWorkflowExecutionFailedEventAttributes) SetWorkflowExecution(v *v1.WorkflowExecution) { + x.xxx_hidden_WorkflowExecution = v +} + +func (x *RequestCancelExternalWorkflowExecutionFailedEventAttributes) SetInitiatedEventId(v int64) { + x.xxx_hidden_InitiatedEventId = v +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *RequestCancelExternalWorkflowExecutionFailedEventAttributes) SetControl(v string) { + x.xxx_hidden_Control = v +} + +func (x *RequestCancelExternalWorkflowExecutionFailedEventAttributes) HasWorkflowExecution() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowExecution != nil +} + +func (x *RequestCancelExternalWorkflowExecutionFailedEventAttributes) ClearWorkflowExecution() { + x.xxx_hidden_WorkflowExecution = nil +} + +type RequestCancelExternalWorkflowExecutionFailedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Cause v12.CancelExternalWorkflowExecutionFailedCause + // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + WorkflowTaskCompletedEventId int64 + // Namespace of the workflow which failed to cancel. + // SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. + Namespace string + NamespaceId string + WorkflowExecution *v1.WorkflowExecution + // id of the `REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED` event this failure + // corresponds to + InitiatedEventId int64 + // Deprecated. + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + Control string +} + +func (b0 RequestCancelExternalWorkflowExecutionFailedEventAttributes_builder) Build() *RequestCancelExternalWorkflowExecutionFailedEventAttributes { + m0 := &RequestCancelExternalWorkflowExecutionFailedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Cause = b.Cause + x.xxx_hidden_WorkflowTaskCompletedEventId = b.WorkflowTaskCompletedEventId + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_NamespaceId = b.NamespaceId + x.xxx_hidden_WorkflowExecution = b.WorkflowExecution + x.xxx_hidden_InitiatedEventId = b.InitiatedEventId + x.xxx_hidden_Control = b.Control + return m0 +} + +type ExternalWorkflowExecutionCancelRequestedEventAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_InitiatedEventId int64 `protobuf:"varint,1,opt,name=initiated_event_id,json=initiatedEventId,proto3"` + xxx_hidden_Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3"` + xxx_hidden_NamespaceId string `protobuf:"bytes,4,opt,name=namespace_id,json=namespaceId,proto3"` + xxx_hidden_WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,3,opt,name=workflow_execution,json=workflowExecution,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ExternalWorkflowExecutionCancelRequestedEventAttributes) Reset() { + *x = ExternalWorkflowExecutionCancelRequestedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ExternalWorkflowExecutionCancelRequestedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExternalWorkflowExecutionCancelRequestedEventAttributes) ProtoMessage() {} + +func (x *ExternalWorkflowExecutionCancelRequestedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[27] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ExternalWorkflowExecutionCancelRequestedEventAttributes) GetInitiatedEventId() int64 { + if x != nil { + return x.xxx_hidden_InitiatedEventId + } + return 0 +} + +func (x *ExternalWorkflowExecutionCancelRequestedEventAttributes) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *ExternalWorkflowExecutionCancelRequestedEventAttributes) GetNamespaceId() string { + if x != nil { + return x.xxx_hidden_NamespaceId + } + return "" +} + +func (x *ExternalWorkflowExecutionCancelRequestedEventAttributes) GetWorkflowExecution() *v1.WorkflowExecution { + if x != nil { + return x.xxx_hidden_WorkflowExecution + } + return nil +} + +func (x *ExternalWorkflowExecutionCancelRequestedEventAttributes) SetInitiatedEventId(v int64) { + x.xxx_hidden_InitiatedEventId = v +} + +func (x *ExternalWorkflowExecutionCancelRequestedEventAttributes) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *ExternalWorkflowExecutionCancelRequestedEventAttributes) SetNamespaceId(v string) { + x.xxx_hidden_NamespaceId = v +} + +func (x *ExternalWorkflowExecutionCancelRequestedEventAttributes) SetWorkflowExecution(v *v1.WorkflowExecution) { + x.xxx_hidden_WorkflowExecution = v +} + +func (x *ExternalWorkflowExecutionCancelRequestedEventAttributes) HasWorkflowExecution() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowExecution != nil +} + +func (x *ExternalWorkflowExecutionCancelRequestedEventAttributes) ClearWorkflowExecution() { + x.xxx_hidden_WorkflowExecution = nil +} + +type ExternalWorkflowExecutionCancelRequestedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // id of the `REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED` event this event corresponds + // to + InitiatedEventId int64 + // Namespace of the to-be-cancelled workflow. + // SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. + Namespace string + NamespaceId string + WorkflowExecution *v1.WorkflowExecution +} + +func (b0 ExternalWorkflowExecutionCancelRequestedEventAttributes_builder) Build() *ExternalWorkflowExecutionCancelRequestedEventAttributes { + m0 := &ExternalWorkflowExecutionCancelRequestedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_InitiatedEventId = b.InitiatedEventId + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_NamespaceId = b.NamespaceId + x.xxx_hidden_WorkflowExecution = b.WorkflowExecution + return m0 +} + +type SignalExternalWorkflowExecutionInitiatedEventAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_WorkflowTaskCompletedEventId int64 `protobuf:"varint,1,opt,name=workflow_task_completed_event_id,json=workflowTaskCompletedEventId,proto3"` + xxx_hidden_Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3"` + xxx_hidden_NamespaceId string `protobuf:"bytes,9,opt,name=namespace_id,json=namespaceId,proto3"` + xxx_hidden_WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,3,opt,name=workflow_execution,json=workflowExecution,proto3"` + xxx_hidden_SignalName string `protobuf:"bytes,4,opt,name=signal_name,json=signalName,proto3"` + xxx_hidden_Input *v1.Payloads `protobuf:"bytes,5,opt,name=input,proto3"` + xxx_hidden_Control string `protobuf:"bytes,6,opt,name=control,proto3"` + xxx_hidden_ChildWorkflowOnly bool `protobuf:"varint,7,opt,name=child_workflow_only,json=childWorkflowOnly,proto3"` + xxx_hidden_Header *v1.Header `protobuf:"bytes,8,opt,name=header,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) Reset() { + *x = SignalExternalWorkflowExecutionInitiatedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SignalExternalWorkflowExecutionInitiatedEventAttributes) ProtoMessage() {} + +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[28] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) GetWorkflowTaskCompletedEventId() int64 { + if x != nil { + return x.xxx_hidden_WorkflowTaskCompletedEventId + } + return 0 +} + +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) GetNamespaceId() string { + if x != nil { + return x.xxx_hidden_NamespaceId + } + return "" +} + +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) GetWorkflowExecution() *v1.WorkflowExecution { + if x != nil { + return x.xxx_hidden_WorkflowExecution + } + return nil +} + +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) GetSignalName() string { + if x != nil { + return x.xxx_hidden_SignalName + } + return "" +} + +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) GetInput() *v1.Payloads { + if x != nil { + return x.xxx_hidden_Input + } + return nil +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) GetControl() string { + if x != nil { + return x.xxx_hidden_Control + } + return "" +} + +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) GetChildWorkflowOnly() bool { + if x != nil { + return x.xxx_hidden_ChildWorkflowOnly + } + return false +} + +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) GetHeader() *v1.Header { + if x != nil { + return x.xxx_hidden_Header + } + return nil +} + +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) SetWorkflowTaskCompletedEventId(v int64) { + x.xxx_hidden_WorkflowTaskCompletedEventId = v +} + +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) SetNamespaceId(v string) { + x.xxx_hidden_NamespaceId = v +} + +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) SetWorkflowExecution(v *v1.WorkflowExecution) { + x.xxx_hidden_WorkflowExecution = v +} + +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) SetSignalName(v string) { + x.xxx_hidden_SignalName = v +} + +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) SetInput(v *v1.Payloads) { + x.xxx_hidden_Input = v +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) SetControl(v string) { + x.xxx_hidden_Control = v +} + +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) SetChildWorkflowOnly(v bool) { + x.xxx_hidden_ChildWorkflowOnly = v +} + +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) SetHeader(v *v1.Header) { + x.xxx_hidden_Header = v +} + +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) HasWorkflowExecution() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowExecution != nil +} + +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) HasInput() bool { + if x == nil { + return false + } + return x.xxx_hidden_Input != nil +} + +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) HasHeader() bool { + if x == nil { + return false + } + return x.xxx_hidden_Header != nil +} + +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) ClearWorkflowExecution() { + x.xxx_hidden_WorkflowExecution = nil +} + +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) ClearInput() { + x.xxx_hidden_Input = nil +} + +func (x *SignalExternalWorkflowExecutionInitiatedEventAttributes) ClearHeader() { + x.xxx_hidden_Header = nil +} + +type SignalExternalWorkflowExecutionInitiatedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + WorkflowTaskCompletedEventId int64 + // Namespace of the to-be-signalled workflow. + // SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. + Namespace string + NamespaceId string + WorkflowExecution *v1.WorkflowExecution + // name/type of the signal to fire in the external workflow + SignalName string + // Serialized arguments to provide to the signal handler + Input *v1.Payloads + // Deprecated. + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + Control string + // Workers are expected to set this to true if the workflow they are requesting to cancel is + // a child of the workflow which issued the request + ChildWorkflowOnly bool + Header *v1.Header +} + +func (b0 SignalExternalWorkflowExecutionInitiatedEventAttributes_builder) Build() *SignalExternalWorkflowExecutionInitiatedEventAttributes { + m0 := &SignalExternalWorkflowExecutionInitiatedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_WorkflowTaskCompletedEventId = b.WorkflowTaskCompletedEventId + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_NamespaceId = b.NamespaceId + x.xxx_hidden_WorkflowExecution = b.WorkflowExecution + x.xxx_hidden_SignalName = b.SignalName + x.xxx_hidden_Input = b.Input + x.xxx_hidden_Control = b.Control + x.xxx_hidden_ChildWorkflowOnly = b.ChildWorkflowOnly + x.xxx_hidden_Header = b.Header + return m0 +} + +type SignalExternalWorkflowExecutionFailedEventAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Cause v12.SignalExternalWorkflowExecutionFailedCause `protobuf:"varint,1,opt,name=cause,proto3,enum=temporal.api.enums.v1.SignalExternalWorkflowExecutionFailedCause"` + xxx_hidden_WorkflowTaskCompletedEventId int64 `protobuf:"varint,2,opt,name=workflow_task_completed_event_id,json=workflowTaskCompletedEventId,proto3"` + xxx_hidden_Namespace string `protobuf:"bytes,3,opt,name=namespace,proto3"` + xxx_hidden_NamespaceId string `protobuf:"bytes,7,opt,name=namespace_id,json=namespaceId,proto3"` + xxx_hidden_WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,4,opt,name=workflow_execution,json=workflowExecution,proto3"` + xxx_hidden_InitiatedEventId int64 `protobuf:"varint,5,opt,name=initiated_event_id,json=initiatedEventId,proto3"` + xxx_hidden_Control string `protobuf:"bytes,6,opt,name=control,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SignalExternalWorkflowExecutionFailedEventAttributes) Reset() { + *x = SignalExternalWorkflowExecutionFailedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SignalExternalWorkflowExecutionFailedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SignalExternalWorkflowExecutionFailedEventAttributes) ProtoMessage() {} + +func (x *SignalExternalWorkflowExecutionFailedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[29] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *SignalExternalWorkflowExecutionFailedEventAttributes) GetCause() v12.SignalExternalWorkflowExecutionFailedCause { + if x != nil { + return x.xxx_hidden_Cause + } + return v12.SignalExternalWorkflowExecutionFailedCause(0) +} + +func (x *SignalExternalWorkflowExecutionFailedEventAttributes) GetWorkflowTaskCompletedEventId() int64 { + if x != nil { + return x.xxx_hidden_WorkflowTaskCompletedEventId + } + return 0 +} + +func (x *SignalExternalWorkflowExecutionFailedEventAttributes) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *SignalExternalWorkflowExecutionFailedEventAttributes) GetNamespaceId() string { + if x != nil { + return x.xxx_hidden_NamespaceId + } + return "" +} + +func (x *SignalExternalWorkflowExecutionFailedEventAttributes) GetWorkflowExecution() *v1.WorkflowExecution { + if x != nil { + return x.xxx_hidden_WorkflowExecution + } + return nil +} + +func (x *SignalExternalWorkflowExecutionFailedEventAttributes) GetInitiatedEventId() int64 { + if x != nil { + return x.xxx_hidden_InitiatedEventId + } + return 0 +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *SignalExternalWorkflowExecutionFailedEventAttributes) GetControl() string { + if x != nil { + return x.xxx_hidden_Control + } + return "" +} + +func (x *SignalExternalWorkflowExecutionFailedEventAttributes) SetCause(v v12.SignalExternalWorkflowExecutionFailedCause) { + x.xxx_hidden_Cause = v +} + +func (x *SignalExternalWorkflowExecutionFailedEventAttributes) SetWorkflowTaskCompletedEventId(v int64) { + x.xxx_hidden_WorkflowTaskCompletedEventId = v +} + +func (x *SignalExternalWorkflowExecutionFailedEventAttributes) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *SignalExternalWorkflowExecutionFailedEventAttributes) SetNamespaceId(v string) { + x.xxx_hidden_NamespaceId = v +} + +func (x *SignalExternalWorkflowExecutionFailedEventAttributes) SetWorkflowExecution(v *v1.WorkflowExecution) { + x.xxx_hidden_WorkflowExecution = v +} + +func (x *SignalExternalWorkflowExecutionFailedEventAttributes) SetInitiatedEventId(v int64) { + x.xxx_hidden_InitiatedEventId = v +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *SignalExternalWorkflowExecutionFailedEventAttributes) SetControl(v string) { + x.xxx_hidden_Control = v +} + +func (x *SignalExternalWorkflowExecutionFailedEventAttributes) HasWorkflowExecution() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowExecution != nil +} + +func (x *SignalExternalWorkflowExecutionFailedEventAttributes) ClearWorkflowExecution() { + x.xxx_hidden_WorkflowExecution = nil +} + +type SignalExternalWorkflowExecutionFailedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Cause v12.SignalExternalWorkflowExecutionFailedCause + // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + WorkflowTaskCompletedEventId int64 + // Namespace of the workflow which failed the signal. + // SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. + Namespace string + NamespaceId string + WorkflowExecution *v1.WorkflowExecution + InitiatedEventId int64 + // Deprecated. + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + Control string +} + +func (b0 SignalExternalWorkflowExecutionFailedEventAttributes_builder) Build() *SignalExternalWorkflowExecutionFailedEventAttributes { + m0 := &SignalExternalWorkflowExecutionFailedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Cause = b.Cause + x.xxx_hidden_WorkflowTaskCompletedEventId = b.WorkflowTaskCompletedEventId + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_NamespaceId = b.NamespaceId + x.xxx_hidden_WorkflowExecution = b.WorkflowExecution + x.xxx_hidden_InitiatedEventId = b.InitiatedEventId + x.xxx_hidden_Control = b.Control + return m0 +} + +type ExternalWorkflowExecutionSignaledEventAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_InitiatedEventId int64 `protobuf:"varint,1,opt,name=initiated_event_id,json=initiatedEventId,proto3"` + xxx_hidden_Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3"` + xxx_hidden_NamespaceId string `protobuf:"bytes,5,opt,name=namespace_id,json=namespaceId,proto3"` + xxx_hidden_WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,3,opt,name=workflow_execution,json=workflowExecution,proto3"` + xxx_hidden_Control string `protobuf:"bytes,4,opt,name=control,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ExternalWorkflowExecutionSignaledEventAttributes) Reset() { + *x = ExternalWorkflowExecutionSignaledEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ExternalWorkflowExecutionSignaledEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExternalWorkflowExecutionSignaledEventAttributes) ProtoMessage() {} + +func (x *ExternalWorkflowExecutionSignaledEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[30] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ExternalWorkflowExecutionSignaledEventAttributes) GetInitiatedEventId() int64 { + if x != nil { + return x.xxx_hidden_InitiatedEventId + } + return 0 +} + +func (x *ExternalWorkflowExecutionSignaledEventAttributes) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *ExternalWorkflowExecutionSignaledEventAttributes) GetNamespaceId() string { + if x != nil { + return x.xxx_hidden_NamespaceId + } + return "" +} + +func (x *ExternalWorkflowExecutionSignaledEventAttributes) GetWorkflowExecution() *v1.WorkflowExecution { + if x != nil { + return x.xxx_hidden_WorkflowExecution + } + return nil +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *ExternalWorkflowExecutionSignaledEventAttributes) GetControl() string { + if x != nil { + return x.xxx_hidden_Control + } + return "" +} + +func (x *ExternalWorkflowExecutionSignaledEventAttributes) SetInitiatedEventId(v int64) { + x.xxx_hidden_InitiatedEventId = v +} + +func (x *ExternalWorkflowExecutionSignaledEventAttributes) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *ExternalWorkflowExecutionSignaledEventAttributes) SetNamespaceId(v string) { + x.xxx_hidden_NamespaceId = v +} + +func (x *ExternalWorkflowExecutionSignaledEventAttributes) SetWorkflowExecution(v *v1.WorkflowExecution) { + x.xxx_hidden_WorkflowExecution = v +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *ExternalWorkflowExecutionSignaledEventAttributes) SetControl(v string) { + x.xxx_hidden_Control = v +} + +func (x *ExternalWorkflowExecutionSignaledEventAttributes) HasWorkflowExecution() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowExecution != nil +} + +func (x *ExternalWorkflowExecutionSignaledEventAttributes) ClearWorkflowExecution() { + x.xxx_hidden_WorkflowExecution = nil +} + +type ExternalWorkflowExecutionSignaledEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // id of the `SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED` event this event corresponds to + InitiatedEventId int64 + // Namespace of the workflow which was signaled. + // SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. + Namespace string + NamespaceId string + WorkflowExecution *v1.WorkflowExecution + // Deprecated. + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + Control string +} + +func (b0 ExternalWorkflowExecutionSignaledEventAttributes_builder) Build() *ExternalWorkflowExecutionSignaledEventAttributes { + m0 := &ExternalWorkflowExecutionSignaledEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_InitiatedEventId = b.InitiatedEventId + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_NamespaceId = b.NamespaceId + x.xxx_hidden_WorkflowExecution = b.WorkflowExecution + x.xxx_hidden_Control = b.Control + return m0 +} + +type UpsertWorkflowSearchAttributesEventAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_WorkflowTaskCompletedEventId int64 `protobuf:"varint,1,opt,name=workflow_task_completed_event_id,json=workflowTaskCompletedEventId,proto3"` + xxx_hidden_SearchAttributes *v1.SearchAttributes `protobuf:"bytes,2,opt,name=search_attributes,json=searchAttributes,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpsertWorkflowSearchAttributesEventAttributes) Reset() { + *x = UpsertWorkflowSearchAttributesEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpsertWorkflowSearchAttributesEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpsertWorkflowSearchAttributesEventAttributes) ProtoMessage() {} + +func (x *UpsertWorkflowSearchAttributesEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[31] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UpsertWorkflowSearchAttributesEventAttributes) GetWorkflowTaskCompletedEventId() int64 { + if x != nil { + return x.xxx_hidden_WorkflowTaskCompletedEventId + } + return 0 +} + +func (x *UpsertWorkflowSearchAttributesEventAttributes) GetSearchAttributes() *v1.SearchAttributes { + if x != nil { + return x.xxx_hidden_SearchAttributes + } + return nil +} + +func (x *UpsertWorkflowSearchAttributesEventAttributes) SetWorkflowTaskCompletedEventId(v int64) { + x.xxx_hidden_WorkflowTaskCompletedEventId = v +} + +func (x *UpsertWorkflowSearchAttributesEventAttributes) SetSearchAttributes(v *v1.SearchAttributes) { + x.xxx_hidden_SearchAttributes = v +} + +func (x *UpsertWorkflowSearchAttributesEventAttributes) HasSearchAttributes() bool { + if x == nil { + return false + } + return x.xxx_hidden_SearchAttributes != nil +} + +func (x *UpsertWorkflowSearchAttributesEventAttributes) ClearSearchAttributes() { + x.xxx_hidden_SearchAttributes = nil +} + +type UpsertWorkflowSearchAttributesEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + WorkflowTaskCompletedEventId int64 + SearchAttributes *v1.SearchAttributes +} + +func (b0 UpsertWorkflowSearchAttributesEventAttributes_builder) Build() *UpsertWorkflowSearchAttributesEventAttributes { + m0 := &UpsertWorkflowSearchAttributesEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_WorkflowTaskCompletedEventId = b.WorkflowTaskCompletedEventId + x.xxx_hidden_SearchAttributes = b.SearchAttributes + return m0 +} + +type WorkflowPropertiesModifiedEventAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_WorkflowTaskCompletedEventId int64 `protobuf:"varint,1,opt,name=workflow_task_completed_event_id,json=workflowTaskCompletedEventId,proto3"` + xxx_hidden_UpsertedMemo *v1.Memo `protobuf:"bytes,2,opt,name=upserted_memo,json=upsertedMemo,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowPropertiesModifiedEventAttributes) Reset() { + *x = WorkflowPropertiesModifiedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkflowPropertiesModifiedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowPropertiesModifiedEventAttributes) ProtoMessage() {} + +func (x *WorkflowPropertiesModifiedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[32] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkflowPropertiesModifiedEventAttributes) GetWorkflowTaskCompletedEventId() int64 { + if x != nil { + return x.xxx_hidden_WorkflowTaskCompletedEventId + } + return 0 +} + +func (x *WorkflowPropertiesModifiedEventAttributes) GetUpsertedMemo() *v1.Memo { + if x != nil { + return x.xxx_hidden_UpsertedMemo + } + return nil +} + +func (x *WorkflowPropertiesModifiedEventAttributes) SetWorkflowTaskCompletedEventId(v int64) { + x.xxx_hidden_WorkflowTaskCompletedEventId = v +} + +func (x *WorkflowPropertiesModifiedEventAttributes) SetUpsertedMemo(v *v1.Memo) { + x.xxx_hidden_UpsertedMemo = v +} + +func (x *WorkflowPropertiesModifiedEventAttributes) HasUpsertedMemo() bool { + if x == nil { + return false + } + return x.xxx_hidden_UpsertedMemo != nil +} + +func (x *WorkflowPropertiesModifiedEventAttributes) ClearUpsertedMemo() { + x.xxx_hidden_UpsertedMemo = nil +} + +type WorkflowPropertiesModifiedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + WorkflowTaskCompletedEventId int64 + // If set, update the workflow memo with the provided values. The values will be merged with + // the existing memo. If the user wants to delete values, a default/empty Payload should be + // used as the value for the key being deleted. + UpsertedMemo *v1.Memo +} + +func (b0 WorkflowPropertiesModifiedEventAttributes_builder) Build() *WorkflowPropertiesModifiedEventAttributes { + m0 := &WorkflowPropertiesModifiedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_WorkflowTaskCompletedEventId = b.WorkflowTaskCompletedEventId + x.xxx_hidden_UpsertedMemo = b.UpsertedMemo + return m0 +} + +type StartChildWorkflowExecutionInitiatedEventAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_NamespaceId string `protobuf:"bytes,18,opt,name=namespace_id,json=namespaceId,proto3"` + xxx_hidden_WorkflowId string `protobuf:"bytes,2,opt,name=workflow_id,json=workflowId,proto3"` + xxx_hidden_WorkflowType *v1.WorkflowType `protobuf:"bytes,3,opt,name=workflow_type,json=workflowType,proto3"` + xxx_hidden_TaskQueue *v11.TaskQueue `protobuf:"bytes,4,opt,name=task_queue,json=taskQueue,proto3"` + xxx_hidden_Input *v1.Payloads `protobuf:"bytes,5,opt,name=input,proto3"` + xxx_hidden_WorkflowExecutionTimeout *durationpb.Duration `protobuf:"bytes,6,opt,name=workflow_execution_timeout,json=workflowExecutionTimeout,proto3"` + xxx_hidden_WorkflowRunTimeout *durationpb.Duration `protobuf:"bytes,7,opt,name=workflow_run_timeout,json=workflowRunTimeout,proto3"` + xxx_hidden_WorkflowTaskTimeout *durationpb.Duration `protobuf:"bytes,8,opt,name=workflow_task_timeout,json=workflowTaskTimeout,proto3"` + xxx_hidden_ParentClosePolicy v12.ParentClosePolicy `protobuf:"varint,9,opt,name=parent_close_policy,json=parentClosePolicy,proto3,enum=temporal.api.enums.v1.ParentClosePolicy"` + xxx_hidden_Control string `protobuf:"bytes,10,opt,name=control,proto3"` + xxx_hidden_WorkflowTaskCompletedEventId int64 `protobuf:"varint,11,opt,name=workflow_task_completed_event_id,json=workflowTaskCompletedEventId,proto3"` + xxx_hidden_WorkflowIdReusePolicy v12.WorkflowIdReusePolicy `protobuf:"varint,12,opt,name=workflow_id_reuse_policy,json=workflowIdReusePolicy,proto3,enum=temporal.api.enums.v1.WorkflowIdReusePolicy"` + xxx_hidden_RetryPolicy *v1.RetryPolicy `protobuf:"bytes,13,opt,name=retry_policy,json=retryPolicy,proto3"` + xxx_hidden_CronSchedule string `protobuf:"bytes,14,opt,name=cron_schedule,json=cronSchedule,proto3"` + xxx_hidden_Header *v1.Header `protobuf:"bytes,15,opt,name=header,proto3"` + xxx_hidden_Memo *v1.Memo `protobuf:"bytes,16,opt,name=memo,proto3"` + xxx_hidden_SearchAttributes *v1.SearchAttributes `protobuf:"bytes,17,opt,name=search_attributes,json=searchAttributes,proto3"` + xxx_hidden_InheritBuildId bool `protobuf:"varint,19,opt,name=inherit_build_id,json=inheritBuildId,proto3"` + xxx_hidden_Priority *v1.Priority `protobuf:"bytes,20,opt,name=priority,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) Reset() { + *x = StartChildWorkflowExecutionInitiatedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StartChildWorkflowExecutionInitiatedEventAttributes) ProtoMessage() {} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[33] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetNamespaceId() string { + if x != nil { + return x.xxx_hidden_NamespaceId + } + return "" +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetWorkflowId() string { + if x != nil { + return x.xxx_hidden_WorkflowId + } + return "" +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetWorkflowType() *v1.WorkflowType { + if x != nil { + return x.xxx_hidden_WorkflowType + } + return nil +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetTaskQueue() *v11.TaskQueue { + if x != nil { + return x.xxx_hidden_TaskQueue + } + return nil +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetInput() *v1.Payloads { + if x != nil { + return x.xxx_hidden_Input + } + return nil +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetWorkflowExecutionTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_WorkflowExecutionTimeout + } + return nil +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetWorkflowRunTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_WorkflowRunTimeout + } + return nil +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetWorkflowTaskTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_WorkflowTaskTimeout + } + return nil +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetParentClosePolicy() v12.ParentClosePolicy { + if x != nil { + return x.xxx_hidden_ParentClosePolicy + } + return v12.ParentClosePolicy(0) +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetControl() string { + if x != nil { + return x.xxx_hidden_Control + } + return "" +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetWorkflowTaskCompletedEventId() int64 { + if x != nil { + return x.xxx_hidden_WorkflowTaskCompletedEventId + } + return 0 +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetWorkflowIdReusePolicy() v12.WorkflowIdReusePolicy { + if x != nil { + return x.xxx_hidden_WorkflowIdReusePolicy + } + return v12.WorkflowIdReusePolicy(0) +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetRetryPolicy() *v1.RetryPolicy { + if x != nil { + return x.xxx_hidden_RetryPolicy + } + return nil +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetCronSchedule() string { + if x != nil { + return x.xxx_hidden_CronSchedule + } + return "" +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetHeader() *v1.Header { + if x != nil { + return x.xxx_hidden_Header + } + return nil +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetMemo() *v1.Memo { + if x != nil { + return x.xxx_hidden_Memo + } + return nil +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetSearchAttributes() *v1.SearchAttributes { + if x != nil { + return x.xxx_hidden_SearchAttributes + } + return nil +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetInheritBuildId() bool { + if x != nil { + return x.xxx_hidden_InheritBuildId + } + return false +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) GetPriority() *v1.Priority { + if x != nil { + return x.xxx_hidden_Priority + } + return nil +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) SetNamespaceId(v string) { + x.xxx_hidden_NamespaceId = v +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) SetWorkflowId(v string) { + x.xxx_hidden_WorkflowId = v +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) SetWorkflowType(v *v1.WorkflowType) { + x.xxx_hidden_WorkflowType = v +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) SetTaskQueue(v *v11.TaskQueue) { + x.xxx_hidden_TaskQueue = v +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) SetInput(v *v1.Payloads) { + x.xxx_hidden_Input = v +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) SetWorkflowExecutionTimeout(v *durationpb.Duration) { + x.xxx_hidden_WorkflowExecutionTimeout = v +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) SetWorkflowRunTimeout(v *durationpb.Duration) { + x.xxx_hidden_WorkflowRunTimeout = v +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) SetWorkflowTaskTimeout(v *durationpb.Duration) { + x.xxx_hidden_WorkflowTaskTimeout = v +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) SetParentClosePolicy(v v12.ParentClosePolicy) { + x.xxx_hidden_ParentClosePolicy = v +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) SetControl(v string) { + x.xxx_hidden_Control = v +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) SetWorkflowTaskCompletedEventId(v int64) { + x.xxx_hidden_WorkflowTaskCompletedEventId = v +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) SetWorkflowIdReusePolicy(v v12.WorkflowIdReusePolicy) { + x.xxx_hidden_WorkflowIdReusePolicy = v +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) SetRetryPolicy(v *v1.RetryPolicy) { + x.xxx_hidden_RetryPolicy = v +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) SetCronSchedule(v string) { + x.xxx_hidden_CronSchedule = v +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) SetHeader(v *v1.Header) { + x.xxx_hidden_Header = v +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) SetMemo(v *v1.Memo) { + x.xxx_hidden_Memo = v +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) SetSearchAttributes(v *v1.SearchAttributes) { + x.xxx_hidden_SearchAttributes = v +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) SetInheritBuildId(v bool) { + x.xxx_hidden_InheritBuildId = v +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) SetPriority(v *v1.Priority) { + x.xxx_hidden_Priority = v +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) HasWorkflowType() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowType != nil +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) HasTaskQueue() bool { + if x == nil { + return false + } + return x.xxx_hidden_TaskQueue != nil +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) HasInput() bool { + if x == nil { + return false + } + return x.xxx_hidden_Input != nil +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) HasWorkflowExecutionTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowExecutionTimeout != nil +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) HasWorkflowRunTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowRunTimeout != nil +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) HasWorkflowTaskTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowTaskTimeout != nil +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) HasRetryPolicy() bool { + if x == nil { + return false + } + return x.xxx_hidden_RetryPolicy != nil +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) HasHeader() bool { + if x == nil { + return false + } + return x.xxx_hidden_Header != nil +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) HasMemo() bool { + if x == nil { + return false + } + return x.xxx_hidden_Memo != nil +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) HasSearchAttributes() bool { + if x == nil { + return false + } + return x.xxx_hidden_SearchAttributes != nil +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) HasPriority() bool { + if x == nil { + return false + } + return x.xxx_hidden_Priority != nil +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) ClearWorkflowType() { + x.xxx_hidden_WorkflowType = nil +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) ClearTaskQueue() { + x.xxx_hidden_TaskQueue = nil +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) ClearInput() { + x.xxx_hidden_Input = nil +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) ClearWorkflowExecutionTimeout() { + x.xxx_hidden_WorkflowExecutionTimeout = nil +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) ClearWorkflowRunTimeout() { + x.xxx_hidden_WorkflowRunTimeout = nil +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) ClearWorkflowTaskTimeout() { + x.xxx_hidden_WorkflowTaskTimeout = nil +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) ClearRetryPolicy() { + x.xxx_hidden_RetryPolicy = nil +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) ClearHeader() { + x.xxx_hidden_Header = nil +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) ClearMemo() { + x.xxx_hidden_Memo = nil +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) ClearSearchAttributes() { + x.xxx_hidden_SearchAttributes = nil +} + +func (x *StartChildWorkflowExecutionInitiatedEventAttributes) ClearPriority() { + x.xxx_hidden_Priority = nil +} + +type StartChildWorkflowExecutionInitiatedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Namespace of the child workflow. + // SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. + Namespace string + NamespaceId string + WorkflowId string + WorkflowType *v1.WorkflowType + TaskQueue *v11.TaskQueue + Input *v1.Payloads + // Total workflow execution timeout including retries and continue as new. + WorkflowExecutionTimeout *durationpb.Duration + // Timeout of a single workflow run. + WorkflowRunTimeout *durationpb.Duration + // Timeout of a single workflow task. + WorkflowTaskTimeout *durationpb.Duration + // Default: PARENT_CLOSE_POLICY_TERMINATE. + ParentClosePolicy v12.ParentClosePolicy + // Deprecated. + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + Control string + // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + WorkflowTaskCompletedEventId int64 + // Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE. + WorkflowIdReusePolicy v12.WorkflowIdReusePolicy + RetryPolicy *v1.RetryPolicy + // If this child runs on a cron schedule, it will appear here + CronSchedule string + Header *v1.Header + Memo *v1.Memo + SearchAttributes *v1.SearchAttributes + // If this is set, the child workflow inherits the Build ID of the parent. Otherwise, the assignment + // rules of the child's Task Queue will be used to independently assign a Build ID to it. + // Deprecated. Only considered for versioning v0.2. + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + InheritBuildId bool + // Priority metadata + Priority *v1.Priority +} + +func (b0 StartChildWorkflowExecutionInitiatedEventAttributes_builder) Build() *StartChildWorkflowExecutionInitiatedEventAttributes { + m0 := &StartChildWorkflowExecutionInitiatedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_NamespaceId = b.NamespaceId + x.xxx_hidden_WorkflowId = b.WorkflowId + x.xxx_hidden_WorkflowType = b.WorkflowType + x.xxx_hidden_TaskQueue = b.TaskQueue + x.xxx_hidden_Input = b.Input + x.xxx_hidden_WorkflowExecutionTimeout = b.WorkflowExecutionTimeout + x.xxx_hidden_WorkflowRunTimeout = b.WorkflowRunTimeout + x.xxx_hidden_WorkflowTaskTimeout = b.WorkflowTaskTimeout + x.xxx_hidden_ParentClosePolicy = b.ParentClosePolicy + x.xxx_hidden_Control = b.Control + x.xxx_hidden_WorkflowTaskCompletedEventId = b.WorkflowTaskCompletedEventId + x.xxx_hidden_WorkflowIdReusePolicy = b.WorkflowIdReusePolicy + x.xxx_hidden_RetryPolicy = b.RetryPolicy + x.xxx_hidden_CronSchedule = b.CronSchedule + x.xxx_hidden_Header = b.Header + x.xxx_hidden_Memo = b.Memo + x.xxx_hidden_SearchAttributes = b.SearchAttributes + x.xxx_hidden_InheritBuildId = b.InheritBuildId + x.xxx_hidden_Priority = b.Priority + return m0 +} + +type StartChildWorkflowExecutionFailedEventAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_NamespaceId string `protobuf:"bytes,8,opt,name=namespace_id,json=namespaceId,proto3"` + xxx_hidden_WorkflowId string `protobuf:"bytes,2,opt,name=workflow_id,json=workflowId,proto3"` + xxx_hidden_WorkflowType *v1.WorkflowType `protobuf:"bytes,3,opt,name=workflow_type,json=workflowType,proto3"` + xxx_hidden_Cause v12.StartChildWorkflowExecutionFailedCause `protobuf:"varint,4,opt,name=cause,proto3,enum=temporal.api.enums.v1.StartChildWorkflowExecutionFailedCause"` + xxx_hidden_Control string `protobuf:"bytes,5,opt,name=control,proto3"` + xxx_hidden_InitiatedEventId int64 `protobuf:"varint,6,opt,name=initiated_event_id,json=initiatedEventId,proto3"` + xxx_hidden_WorkflowTaskCompletedEventId int64 `protobuf:"varint,7,opt,name=workflow_task_completed_event_id,json=workflowTaskCompletedEventId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *StartChildWorkflowExecutionFailedEventAttributes) Reset() { + *x = StartChildWorkflowExecutionFailedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *StartChildWorkflowExecutionFailedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StartChildWorkflowExecutionFailedEventAttributes) ProtoMessage() {} + +func (x *StartChildWorkflowExecutionFailedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[34] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *StartChildWorkflowExecutionFailedEventAttributes) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *StartChildWorkflowExecutionFailedEventAttributes) GetNamespaceId() string { + if x != nil { + return x.xxx_hidden_NamespaceId + } + return "" +} + +func (x *StartChildWorkflowExecutionFailedEventAttributes) GetWorkflowId() string { + if x != nil { + return x.xxx_hidden_WorkflowId + } + return "" +} + +func (x *StartChildWorkflowExecutionFailedEventAttributes) GetWorkflowType() *v1.WorkflowType { + if x != nil { + return x.xxx_hidden_WorkflowType + } + return nil +} + +func (x *StartChildWorkflowExecutionFailedEventAttributes) GetCause() v12.StartChildWorkflowExecutionFailedCause { + if x != nil { + return x.xxx_hidden_Cause + } + return v12.StartChildWorkflowExecutionFailedCause(0) +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *StartChildWorkflowExecutionFailedEventAttributes) GetControl() string { + if x != nil { + return x.xxx_hidden_Control + } + return "" +} + +func (x *StartChildWorkflowExecutionFailedEventAttributes) GetInitiatedEventId() int64 { + if x != nil { + return x.xxx_hidden_InitiatedEventId + } + return 0 +} + +func (x *StartChildWorkflowExecutionFailedEventAttributes) GetWorkflowTaskCompletedEventId() int64 { + if x != nil { + return x.xxx_hidden_WorkflowTaskCompletedEventId + } + return 0 +} + +func (x *StartChildWorkflowExecutionFailedEventAttributes) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *StartChildWorkflowExecutionFailedEventAttributes) SetNamespaceId(v string) { + x.xxx_hidden_NamespaceId = v +} + +func (x *StartChildWorkflowExecutionFailedEventAttributes) SetWorkflowId(v string) { + x.xxx_hidden_WorkflowId = v +} + +func (x *StartChildWorkflowExecutionFailedEventAttributes) SetWorkflowType(v *v1.WorkflowType) { + x.xxx_hidden_WorkflowType = v +} + +func (x *StartChildWorkflowExecutionFailedEventAttributes) SetCause(v v12.StartChildWorkflowExecutionFailedCause) { + x.xxx_hidden_Cause = v +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *StartChildWorkflowExecutionFailedEventAttributes) SetControl(v string) { + x.xxx_hidden_Control = v +} + +func (x *StartChildWorkflowExecutionFailedEventAttributes) SetInitiatedEventId(v int64) { + x.xxx_hidden_InitiatedEventId = v +} + +func (x *StartChildWorkflowExecutionFailedEventAttributes) SetWorkflowTaskCompletedEventId(v int64) { + x.xxx_hidden_WorkflowTaskCompletedEventId = v +} + +func (x *StartChildWorkflowExecutionFailedEventAttributes) HasWorkflowType() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowType != nil +} + +func (x *StartChildWorkflowExecutionFailedEventAttributes) ClearWorkflowType() { + x.xxx_hidden_WorkflowType = nil +} + +type StartChildWorkflowExecutionFailedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Namespace of the child workflow. + // SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. + Namespace string + NamespaceId string + WorkflowId string + WorkflowType *v1.WorkflowType + Cause v12.StartChildWorkflowExecutionFailedCause + // Deprecated. + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + Control string + // Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to + InitiatedEventId int64 + // The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + WorkflowTaskCompletedEventId int64 +} + +func (b0 StartChildWorkflowExecutionFailedEventAttributes_builder) Build() *StartChildWorkflowExecutionFailedEventAttributes { + m0 := &StartChildWorkflowExecutionFailedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_NamespaceId = b.NamespaceId + x.xxx_hidden_WorkflowId = b.WorkflowId + x.xxx_hidden_WorkflowType = b.WorkflowType + x.xxx_hidden_Cause = b.Cause + x.xxx_hidden_Control = b.Control + x.xxx_hidden_InitiatedEventId = b.InitiatedEventId + x.xxx_hidden_WorkflowTaskCompletedEventId = b.WorkflowTaskCompletedEventId + return m0 +} + +type ChildWorkflowExecutionStartedEventAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_NamespaceId string `protobuf:"bytes,6,opt,name=namespace_id,json=namespaceId,proto3"` + xxx_hidden_InitiatedEventId int64 `protobuf:"varint,2,opt,name=initiated_event_id,json=initiatedEventId,proto3"` + xxx_hidden_WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,3,opt,name=workflow_execution,json=workflowExecution,proto3"` + xxx_hidden_WorkflowType *v1.WorkflowType `protobuf:"bytes,4,opt,name=workflow_type,json=workflowType,proto3"` + xxx_hidden_Header *v1.Header `protobuf:"bytes,5,opt,name=header,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ChildWorkflowExecutionStartedEventAttributes) Reset() { + *x = ChildWorkflowExecutionStartedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ChildWorkflowExecutionStartedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ChildWorkflowExecutionStartedEventAttributes) ProtoMessage() {} + +func (x *ChildWorkflowExecutionStartedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[35] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ChildWorkflowExecutionStartedEventAttributes) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *ChildWorkflowExecutionStartedEventAttributes) GetNamespaceId() string { + if x != nil { + return x.xxx_hidden_NamespaceId + } + return "" +} + +func (x *ChildWorkflowExecutionStartedEventAttributes) GetInitiatedEventId() int64 { + if x != nil { + return x.xxx_hidden_InitiatedEventId + } + return 0 +} + +func (x *ChildWorkflowExecutionStartedEventAttributes) GetWorkflowExecution() *v1.WorkflowExecution { + if x != nil { + return x.xxx_hidden_WorkflowExecution + } + return nil +} + +func (x *ChildWorkflowExecutionStartedEventAttributes) GetWorkflowType() *v1.WorkflowType { + if x != nil { + return x.xxx_hidden_WorkflowType + } + return nil +} + +func (x *ChildWorkflowExecutionStartedEventAttributes) GetHeader() *v1.Header { + if x != nil { + return x.xxx_hidden_Header + } + return nil +} + +func (x *ChildWorkflowExecutionStartedEventAttributes) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *ChildWorkflowExecutionStartedEventAttributes) SetNamespaceId(v string) { + x.xxx_hidden_NamespaceId = v +} + +func (x *ChildWorkflowExecutionStartedEventAttributes) SetInitiatedEventId(v int64) { + x.xxx_hidden_InitiatedEventId = v +} + +func (x *ChildWorkflowExecutionStartedEventAttributes) SetWorkflowExecution(v *v1.WorkflowExecution) { + x.xxx_hidden_WorkflowExecution = v +} + +func (x *ChildWorkflowExecutionStartedEventAttributes) SetWorkflowType(v *v1.WorkflowType) { + x.xxx_hidden_WorkflowType = v +} + +func (x *ChildWorkflowExecutionStartedEventAttributes) SetHeader(v *v1.Header) { + x.xxx_hidden_Header = v +} + +func (x *ChildWorkflowExecutionStartedEventAttributes) HasWorkflowExecution() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowExecution != nil +} + +func (x *ChildWorkflowExecutionStartedEventAttributes) HasWorkflowType() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowType != nil +} + +func (x *ChildWorkflowExecutionStartedEventAttributes) HasHeader() bool { + if x == nil { + return false + } + return x.xxx_hidden_Header != nil +} + +func (x *ChildWorkflowExecutionStartedEventAttributes) ClearWorkflowExecution() { + x.xxx_hidden_WorkflowExecution = nil +} + +func (x *ChildWorkflowExecutionStartedEventAttributes) ClearWorkflowType() { + x.xxx_hidden_WorkflowType = nil +} + +func (x *ChildWorkflowExecutionStartedEventAttributes) ClearHeader() { + x.xxx_hidden_Header = nil +} + +type ChildWorkflowExecutionStartedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Namespace of the child workflow. + // SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. + Namespace string + NamespaceId string + // Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to + InitiatedEventId int64 + WorkflowExecution *v1.WorkflowExecution + WorkflowType *v1.WorkflowType + Header *v1.Header +} + +func (b0 ChildWorkflowExecutionStartedEventAttributes_builder) Build() *ChildWorkflowExecutionStartedEventAttributes { + m0 := &ChildWorkflowExecutionStartedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_NamespaceId = b.NamespaceId + x.xxx_hidden_InitiatedEventId = b.InitiatedEventId + x.xxx_hidden_WorkflowExecution = b.WorkflowExecution + x.xxx_hidden_WorkflowType = b.WorkflowType + x.xxx_hidden_Header = b.Header + return m0 +} + +type ChildWorkflowExecutionCompletedEventAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Result *v1.Payloads `protobuf:"bytes,1,opt,name=result,proto3"` + xxx_hidden_Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3"` + xxx_hidden_NamespaceId string `protobuf:"bytes,7,opt,name=namespace_id,json=namespaceId,proto3"` + xxx_hidden_WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,3,opt,name=workflow_execution,json=workflowExecution,proto3"` + xxx_hidden_WorkflowType *v1.WorkflowType `protobuf:"bytes,4,opt,name=workflow_type,json=workflowType,proto3"` + xxx_hidden_InitiatedEventId int64 `protobuf:"varint,5,opt,name=initiated_event_id,json=initiatedEventId,proto3"` + xxx_hidden_StartedEventId int64 `protobuf:"varint,6,opt,name=started_event_id,json=startedEventId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ChildWorkflowExecutionCompletedEventAttributes) Reset() { + *x = ChildWorkflowExecutionCompletedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ChildWorkflowExecutionCompletedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ChildWorkflowExecutionCompletedEventAttributes) ProtoMessage() {} + +func (x *ChildWorkflowExecutionCompletedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[36] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ChildWorkflowExecutionCompletedEventAttributes) GetResult() *v1.Payloads { + if x != nil { + return x.xxx_hidden_Result + } + return nil +} + +func (x *ChildWorkflowExecutionCompletedEventAttributes) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *ChildWorkflowExecutionCompletedEventAttributes) GetNamespaceId() string { + if x != nil { + return x.xxx_hidden_NamespaceId + } + return "" +} + +func (x *ChildWorkflowExecutionCompletedEventAttributes) GetWorkflowExecution() *v1.WorkflowExecution { + if x != nil { + return x.xxx_hidden_WorkflowExecution + } + return nil +} + +func (x *ChildWorkflowExecutionCompletedEventAttributes) GetWorkflowType() *v1.WorkflowType { + if x != nil { + return x.xxx_hidden_WorkflowType + } + return nil +} + +func (x *ChildWorkflowExecutionCompletedEventAttributes) GetInitiatedEventId() int64 { + if x != nil { + return x.xxx_hidden_InitiatedEventId + } + return 0 +} + +func (x *ChildWorkflowExecutionCompletedEventAttributes) GetStartedEventId() int64 { + if x != nil { + return x.xxx_hidden_StartedEventId + } + return 0 +} + +func (x *ChildWorkflowExecutionCompletedEventAttributes) SetResult(v *v1.Payloads) { + x.xxx_hidden_Result = v +} + +func (x *ChildWorkflowExecutionCompletedEventAttributes) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *ChildWorkflowExecutionCompletedEventAttributes) SetNamespaceId(v string) { + x.xxx_hidden_NamespaceId = v +} + +func (x *ChildWorkflowExecutionCompletedEventAttributes) SetWorkflowExecution(v *v1.WorkflowExecution) { + x.xxx_hidden_WorkflowExecution = v +} + +func (x *ChildWorkflowExecutionCompletedEventAttributes) SetWorkflowType(v *v1.WorkflowType) { + x.xxx_hidden_WorkflowType = v +} + +func (x *ChildWorkflowExecutionCompletedEventAttributes) SetInitiatedEventId(v int64) { + x.xxx_hidden_InitiatedEventId = v +} + +func (x *ChildWorkflowExecutionCompletedEventAttributes) SetStartedEventId(v int64) { + x.xxx_hidden_StartedEventId = v +} + +func (x *ChildWorkflowExecutionCompletedEventAttributes) HasResult() bool { + if x == nil { + return false + } + return x.xxx_hidden_Result != nil +} + +func (x *ChildWorkflowExecutionCompletedEventAttributes) HasWorkflowExecution() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowExecution != nil +} + +func (x *ChildWorkflowExecutionCompletedEventAttributes) HasWorkflowType() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowType != nil +} + +func (x *ChildWorkflowExecutionCompletedEventAttributes) ClearResult() { + x.xxx_hidden_Result = nil +} + +func (x *ChildWorkflowExecutionCompletedEventAttributes) ClearWorkflowExecution() { + x.xxx_hidden_WorkflowExecution = nil +} + +func (x *ChildWorkflowExecutionCompletedEventAttributes) ClearWorkflowType() { + x.xxx_hidden_WorkflowType = nil +} + +type ChildWorkflowExecutionCompletedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Result *v1.Payloads + // Namespace of the child workflow. + // SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. + Namespace string + NamespaceId string + WorkflowExecution *v1.WorkflowExecution + WorkflowType *v1.WorkflowType + // Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to + InitiatedEventId int64 + // Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to + StartedEventId int64 +} + +func (b0 ChildWorkflowExecutionCompletedEventAttributes_builder) Build() *ChildWorkflowExecutionCompletedEventAttributes { + m0 := &ChildWorkflowExecutionCompletedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Result = b.Result + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_NamespaceId = b.NamespaceId + x.xxx_hidden_WorkflowExecution = b.WorkflowExecution + x.xxx_hidden_WorkflowType = b.WorkflowType + x.xxx_hidden_InitiatedEventId = b.InitiatedEventId + x.xxx_hidden_StartedEventId = b.StartedEventId + return m0 +} + +type ChildWorkflowExecutionFailedEventAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Failure *v13.Failure `protobuf:"bytes,1,opt,name=failure,proto3"` + xxx_hidden_Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3"` + xxx_hidden_NamespaceId string `protobuf:"bytes,8,opt,name=namespace_id,json=namespaceId,proto3"` + xxx_hidden_WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,3,opt,name=workflow_execution,json=workflowExecution,proto3"` + xxx_hidden_WorkflowType *v1.WorkflowType `protobuf:"bytes,4,opt,name=workflow_type,json=workflowType,proto3"` + xxx_hidden_InitiatedEventId int64 `protobuf:"varint,5,opt,name=initiated_event_id,json=initiatedEventId,proto3"` + xxx_hidden_StartedEventId int64 `protobuf:"varint,6,opt,name=started_event_id,json=startedEventId,proto3"` + xxx_hidden_RetryState v12.RetryState `protobuf:"varint,7,opt,name=retry_state,json=retryState,proto3,enum=temporal.api.enums.v1.RetryState"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ChildWorkflowExecutionFailedEventAttributes) Reset() { + *x = ChildWorkflowExecutionFailedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[37] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ChildWorkflowExecutionFailedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ChildWorkflowExecutionFailedEventAttributes) ProtoMessage() {} + +func (x *ChildWorkflowExecutionFailedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[37] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ChildWorkflowExecutionFailedEventAttributes) GetFailure() *v13.Failure { + if x != nil { + return x.xxx_hidden_Failure + } + return nil +} + +func (x *ChildWorkflowExecutionFailedEventAttributes) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *ChildWorkflowExecutionFailedEventAttributes) GetNamespaceId() string { + if x != nil { + return x.xxx_hidden_NamespaceId + } + return "" +} + +func (x *ChildWorkflowExecutionFailedEventAttributes) GetWorkflowExecution() *v1.WorkflowExecution { + if x != nil { + return x.xxx_hidden_WorkflowExecution + } + return nil +} + +func (x *ChildWorkflowExecutionFailedEventAttributes) GetWorkflowType() *v1.WorkflowType { + if x != nil { + return x.xxx_hidden_WorkflowType + } + return nil +} + +func (x *ChildWorkflowExecutionFailedEventAttributes) GetInitiatedEventId() int64 { + if x != nil { + return x.xxx_hidden_InitiatedEventId + } + return 0 +} + +func (x *ChildWorkflowExecutionFailedEventAttributes) GetStartedEventId() int64 { + if x != nil { + return x.xxx_hidden_StartedEventId + } + return 0 +} + +func (x *ChildWorkflowExecutionFailedEventAttributes) GetRetryState() v12.RetryState { + if x != nil { + return x.xxx_hidden_RetryState + } + return v12.RetryState(0) +} + +func (x *ChildWorkflowExecutionFailedEventAttributes) SetFailure(v *v13.Failure) { + x.xxx_hidden_Failure = v +} + +func (x *ChildWorkflowExecutionFailedEventAttributes) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *ChildWorkflowExecutionFailedEventAttributes) SetNamespaceId(v string) { + x.xxx_hidden_NamespaceId = v +} + +func (x *ChildWorkflowExecutionFailedEventAttributes) SetWorkflowExecution(v *v1.WorkflowExecution) { + x.xxx_hidden_WorkflowExecution = v +} + +func (x *ChildWorkflowExecutionFailedEventAttributes) SetWorkflowType(v *v1.WorkflowType) { + x.xxx_hidden_WorkflowType = v +} + +func (x *ChildWorkflowExecutionFailedEventAttributes) SetInitiatedEventId(v int64) { + x.xxx_hidden_InitiatedEventId = v +} + +func (x *ChildWorkflowExecutionFailedEventAttributes) SetStartedEventId(v int64) { + x.xxx_hidden_StartedEventId = v +} + +func (x *ChildWorkflowExecutionFailedEventAttributes) SetRetryState(v v12.RetryState) { + x.xxx_hidden_RetryState = v +} + +func (x *ChildWorkflowExecutionFailedEventAttributes) HasFailure() bool { + if x == nil { + return false + } + return x.xxx_hidden_Failure != nil +} + +func (x *ChildWorkflowExecutionFailedEventAttributes) HasWorkflowExecution() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowExecution != nil +} + +func (x *ChildWorkflowExecutionFailedEventAttributes) HasWorkflowType() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowType != nil +} + +func (x *ChildWorkflowExecutionFailedEventAttributes) ClearFailure() { + x.xxx_hidden_Failure = nil +} + +func (x *ChildWorkflowExecutionFailedEventAttributes) ClearWorkflowExecution() { + x.xxx_hidden_WorkflowExecution = nil +} + +func (x *ChildWorkflowExecutionFailedEventAttributes) ClearWorkflowType() { + x.xxx_hidden_WorkflowType = nil +} + +type ChildWorkflowExecutionFailedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Failure *v13.Failure + // Namespace of the child workflow. + // SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. + Namespace string + NamespaceId string + WorkflowExecution *v1.WorkflowExecution + WorkflowType *v1.WorkflowType + // Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to + InitiatedEventId int64 + // Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to + StartedEventId int64 + RetryState v12.RetryState +} + +func (b0 ChildWorkflowExecutionFailedEventAttributes_builder) Build() *ChildWorkflowExecutionFailedEventAttributes { + m0 := &ChildWorkflowExecutionFailedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Failure = b.Failure + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_NamespaceId = b.NamespaceId + x.xxx_hidden_WorkflowExecution = b.WorkflowExecution + x.xxx_hidden_WorkflowType = b.WorkflowType + x.xxx_hidden_InitiatedEventId = b.InitiatedEventId + x.xxx_hidden_StartedEventId = b.StartedEventId + x.xxx_hidden_RetryState = b.RetryState + return m0 +} + +type ChildWorkflowExecutionCanceledEventAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Details *v1.Payloads `protobuf:"bytes,1,opt,name=details,proto3"` + xxx_hidden_Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3"` + xxx_hidden_NamespaceId string `protobuf:"bytes,7,opt,name=namespace_id,json=namespaceId,proto3"` + xxx_hidden_WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,3,opt,name=workflow_execution,json=workflowExecution,proto3"` + xxx_hidden_WorkflowType *v1.WorkflowType `protobuf:"bytes,4,opt,name=workflow_type,json=workflowType,proto3"` + xxx_hidden_InitiatedEventId int64 `protobuf:"varint,5,opt,name=initiated_event_id,json=initiatedEventId,proto3"` + xxx_hidden_StartedEventId int64 `protobuf:"varint,6,opt,name=started_event_id,json=startedEventId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ChildWorkflowExecutionCanceledEventAttributes) Reset() { + *x = ChildWorkflowExecutionCanceledEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[38] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ChildWorkflowExecutionCanceledEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ChildWorkflowExecutionCanceledEventAttributes) ProtoMessage() {} + +func (x *ChildWorkflowExecutionCanceledEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[38] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ChildWorkflowExecutionCanceledEventAttributes) GetDetails() *v1.Payloads { + if x != nil { + return x.xxx_hidden_Details + } + return nil +} + +func (x *ChildWorkflowExecutionCanceledEventAttributes) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *ChildWorkflowExecutionCanceledEventAttributes) GetNamespaceId() string { + if x != nil { + return x.xxx_hidden_NamespaceId + } + return "" +} + +func (x *ChildWorkflowExecutionCanceledEventAttributes) GetWorkflowExecution() *v1.WorkflowExecution { + if x != nil { + return x.xxx_hidden_WorkflowExecution + } + return nil +} + +func (x *ChildWorkflowExecutionCanceledEventAttributes) GetWorkflowType() *v1.WorkflowType { + if x != nil { + return x.xxx_hidden_WorkflowType + } + return nil +} + +func (x *ChildWorkflowExecutionCanceledEventAttributes) GetInitiatedEventId() int64 { + if x != nil { + return x.xxx_hidden_InitiatedEventId + } + return 0 +} + +func (x *ChildWorkflowExecutionCanceledEventAttributes) GetStartedEventId() int64 { + if x != nil { + return x.xxx_hidden_StartedEventId + } + return 0 +} + +func (x *ChildWorkflowExecutionCanceledEventAttributes) SetDetails(v *v1.Payloads) { + x.xxx_hidden_Details = v +} + +func (x *ChildWorkflowExecutionCanceledEventAttributes) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *ChildWorkflowExecutionCanceledEventAttributes) SetNamespaceId(v string) { + x.xxx_hidden_NamespaceId = v +} + +func (x *ChildWorkflowExecutionCanceledEventAttributes) SetWorkflowExecution(v *v1.WorkflowExecution) { + x.xxx_hidden_WorkflowExecution = v +} + +func (x *ChildWorkflowExecutionCanceledEventAttributes) SetWorkflowType(v *v1.WorkflowType) { + x.xxx_hidden_WorkflowType = v +} + +func (x *ChildWorkflowExecutionCanceledEventAttributes) SetInitiatedEventId(v int64) { + x.xxx_hidden_InitiatedEventId = v +} + +func (x *ChildWorkflowExecutionCanceledEventAttributes) SetStartedEventId(v int64) { + x.xxx_hidden_StartedEventId = v +} + +func (x *ChildWorkflowExecutionCanceledEventAttributes) HasDetails() bool { + if x == nil { + return false + } + return x.xxx_hidden_Details != nil +} + +func (x *ChildWorkflowExecutionCanceledEventAttributes) HasWorkflowExecution() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowExecution != nil +} + +func (x *ChildWorkflowExecutionCanceledEventAttributes) HasWorkflowType() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowType != nil +} + +func (x *ChildWorkflowExecutionCanceledEventAttributes) ClearDetails() { + x.xxx_hidden_Details = nil +} + +func (x *ChildWorkflowExecutionCanceledEventAttributes) ClearWorkflowExecution() { + x.xxx_hidden_WorkflowExecution = nil +} + +func (x *ChildWorkflowExecutionCanceledEventAttributes) ClearWorkflowType() { + x.xxx_hidden_WorkflowType = nil +} + +type ChildWorkflowExecutionCanceledEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Details *v1.Payloads + // Namespace of the child workflow. + // SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. + Namespace string + NamespaceId string + WorkflowExecution *v1.WorkflowExecution + WorkflowType *v1.WorkflowType + // Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to + InitiatedEventId int64 + // Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to + StartedEventId int64 +} + +func (b0 ChildWorkflowExecutionCanceledEventAttributes_builder) Build() *ChildWorkflowExecutionCanceledEventAttributes { + m0 := &ChildWorkflowExecutionCanceledEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Details = b.Details + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_NamespaceId = b.NamespaceId + x.xxx_hidden_WorkflowExecution = b.WorkflowExecution + x.xxx_hidden_WorkflowType = b.WorkflowType + x.xxx_hidden_InitiatedEventId = b.InitiatedEventId + x.xxx_hidden_StartedEventId = b.StartedEventId + return m0 +} + +type ChildWorkflowExecutionTimedOutEventAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_NamespaceId string `protobuf:"bytes,7,opt,name=namespace_id,json=namespaceId,proto3"` + xxx_hidden_WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3"` + xxx_hidden_WorkflowType *v1.WorkflowType `protobuf:"bytes,3,opt,name=workflow_type,json=workflowType,proto3"` + xxx_hidden_InitiatedEventId int64 `protobuf:"varint,4,opt,name=initiated_event_id,json=initiatedEventId,proto3"` + xxx_hidden_StartedEventId int64 `protobuf:"varint,5,opt,name=started_event_id,json=startedEventId,proto3"` + xxx_hidden_RetryState v12.RetryState `protobuf:"varint,6,opt,name=retry_state,json=retryState,proto3,enum=temporal.api.enums.v1.RetryState"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ChildWorkflowExecutionTimedOutEventAttributes) Reset() { + *x = ChildWorkflowExecutionTimedOutEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[39] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ChildWorkflowExecutionTimedOutEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ChildWorkflowExecutionTimedOutEventAttributes) ProtoMessage() {} + +func (x *ChildWorkflowExecutionTimedOutEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[39] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ChildWorkflowExecutionTimedOutEventAttributes) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *ChildWorkflowExecutionTimedOutEventAttributes) GetNamespaceId() string { + if x != nil { + return x.xxx_hidden_NamespaceId + } + return "" +} + +func (x *ChildWorkflowExecutionTimedOutEventAttributes) GetWorkflowExecution() *v1.WorkflowExecution { + if x != nil { + return x.xxx_hidden_WorkflowExecution + } + return nil +} + +func (x *ChildWorkflowExecutionTimedOutEventAttributes) GetWorkflowType() *v1.WorkflowType { + if x != nil { + return x.xxx_hidden_WorkflowType + } + return nil +} + +func (x *ChildWorkflowExecutionTimedOutEventAttributes) GetInitiatedEventId() int64 { + if x != nil { + return x.xxx_hidden_InitiatedEventId + } + return 0 +} + +func (x *ChildWorkflowExecutionTimedOutEventAttributes) GetStartedEventId() int64 { + if x != nil { + return x.xxx_hidden_StartedEventId + } + return 0 +} + +func (x *ChildWorkflowExecutionTimedOutEventAttributes) GetRetryState() v12.RetryState { + if x != nil { + return x.xxx_hidden_RetryState + } + return v12.RetryState(0) +} + +func (x *ChildWorkflowExecutionTimedOutEventAttributes) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *ChildWorkflowExecutionTimedOutEventAttributes) SetNamespaceId(v string) { + x.xxx_hidden_NamespaceId = v +} + +func (x *ChildWorkflowExecutionTimedOutEventAttributes) SetWorkflowExecution(v *v1.WorkflowExecution) { + x.xxx_hidden_WorkflowExecution = v +} + +func (x *ChildWorkflowExecutionTimedOutEventAttributes) SetWorkflowType(v *v1.WorkflowType) { + x.xxx_hidden_WorkflowType = v +} + +func (x *ChildWorkflowExecutionTimedOutEventAttributes) SetInitiatedEventId(v int64) { + x.xxx_hidden_InitiatedEventId = v +} + +func (x *ChildWorkflowExecutionTimedOutEventAttributes) SetStartedEventId(v int64) { + x.xxx_hidden_StartedEventId = v +} + +func (x *ChildWorkflowExecutionTimedOutEventAttributes) SetRetryState(v v12.RetryState) { + x.xxx_hidden_RetryState = v +} + +func (x *ChildWorkflowExecutionTimedOutEventAttributes) HasWorkflowExecution() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowExecution != nil +} + +func (x *ChildWorkflowExecutionTimedOutEventAttributes) HasWorkflowType() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowType != nil +} + +func (x *ChildWorkflowExecutionTimedOutEventAttributes) ClearWorkflowExecution() { + x.xxx_hidden_WorkflowExecution = nil +} + +func (x *ChildWorkflowExecutionTimedOutEventAttributes) ClearWorkflowType() { + x.xxx_hidden_WorkflowType = nil +} + +type ChildWorkflowExecutionTimedOutEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Namespace of the child workflow. + // SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. + Namespace string + NamespaceId string + WorkflowExecution *v1.WorkflowExecution + WorkflowType *v1.WorkflowType + // Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to + InitiatedEventId int64 + // Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to + StartedEventId int64 + RetryState v12.RetryState +} + +func (b0 ChildWorkflowExecutionTimedOutEventAttributes_builder) Build() *ChildWorkflowExecutionTimedOutEventAttributes { + m0 := &ChildWorkflowExecutionTimedOutEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_NamespaceId = b.NamespaceId + x.xxx_hidden_WorkflowExecution = b.WorkflowExecution + x.xxx_hidden_WorkflowType = b.WorkflowType + x.xxx_hidden_InitiatedEventId = b.InitiatedEventId + x.xxx_hidden_StartedEventId = b.StartedEventId + x.xxx_hidden_RetryState = b.RetryState + return m0 +} + +type ChildWorkflowExecutionTerminatedEventAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_NamespaceId string `protobuf:"bytes,6,opt,name=namespace_id,json=namespaceId,proto3"` + xxx_hidden_WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3"` + xxx_hidden_WorkflowType *v1.WorkflowType `protobuf:"bytes,3,opt,name=workflow_type,json=workflowType,proto3"` + xxx_hidden_InitiatedEventId int64 `protobuf:"varint,4,opt,name=initiated_event_id,json=initiatedEventId,proto3"` + xxx_hidden_StartedEventId int64 `protobuf:"varint,5,opt,name=started_event_id,json=startedEventId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ChildWorkflowExecutionTerminatedEventAttributes) Reset() { + *x = ChildWorkflowExecutionTerminatedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[40] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ChildWorkflowExecutionTerminatedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ChildWorkflowExecutionTerminatedEventAttributes) ProtoMessage() {} + +func (x *ChildWorkflowExecutionTerminatedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[40] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ChildWorkflowExecutionTerminatedEventAttributes) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *ChildWorkflowExecutionTerminatedEventAttributes) GetNamespaceId() string { + if x != nil { + return x.xxx_hidden_NamespaceId + } + return "" +} + +func (x *ChildWorkflowExecutionTerminatedEventAttributes) GetWorkflowExecution() *v1.WorkflowExecution { + if x != nil { + return x.xxx_hidden_WorkflowExecution + } + return nil +} + +func (x *ChildWorkflowExecutionTerminatedEventAttributes) GetWorkflowType() *v1.WorkflowType { + if x != nil { + return x.xxx_hidden_WorkflowType + } + return nil +} + +func (x *ChildWorkflowExecutionTerminatedEventAttributes) GetInitiatedEventId() int64 { + if x != nil { + return x.xxx_hidden_InitiatedEventId + } + return 0 +} + +func (x *ChildWorkflowExecutionTerminatedEventAttributes) GetStartedEventId() int64 { + if x != nil { + return x.xxx_hidden_StartedEventId + } + return 0 +} + +func (x *ChildWorkflowExecutionTerminatedEventAttributes) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *ChildWorkflowExecutionTerminatedEventAttributes) SetNamespaceId(v string) { + x.xxx_hidden_NamespaceId = v +} + +func (x *ChildWorkflowExecutionTerminatedEventAttributes) SetWorkflowExecution(v *v1.WorkflowExecution) { + x.xxx_hidden_WorkflowExecution = v +} + +func (x *ChildWorkflowExecutionTerminatedEventAttributes) SetWorkflowType(v *v1.WorkflowType) { + x.xxx_hidden_WorkflowType = v +} + +func (x *ChildWorkflowExecutionTerminatedEventAttributes) SetInitiatedEventId(v int64) { + x.xxx_hidden_InitiatedEventId = v +} + +func (x *ChildWorkflowExecutionTerminatedEventAttributes) SetStartedEventId(v int64) { + x.xxx_hidden_StartedEventId = v +} + +func (x *ChildWorkflowExecutionTerminatedEventAttributes) HasWorkflowExecution() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowExecution != nil +} + +func (x *ChildWorkflowExecutionTerminatedEventAttributes) HasWorkflowType() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowType != nil +} + +func (x *ChildWorkflowExecutionTerminatedEventAttributes) ClearWorkflowExecution() { + x.xxx_hidden_WorkflowExecution = nil +} + +func (x *ChildWorkflowExecutionTerminatedEventAttributes) ClearWorkflowType() { + x.xxx_hidden_WorkflowType = nil +} + +type ChildWorkflowExecutionTerminatedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Namespace of the child workflow. + // SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. + Namespace string + NamespaceId string + WorkflowExecution *v1.WorkflowExecution + WorkflowType *v1.WorkflowType + // Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to + InitiatedEventId int64 + // Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to + StartedEventId int64 +} + +func (b0 ChildWorkflowExecutionTerminatedEventAttributes_builder) Build() *ChildWorkflowExecutionTerminatedEventAttributes { + m0 := &ChildWorkflowExecutionTerminatedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_NamespaceId = b.NamespaceId + x.xxx_hidden_WorkflowExecution = b.WorkflowExecution + x.xxx_hidden_WorkflowType = b.WorkflowType + x.xxx_hidden_InitiatedEventId = b.InitiatedEventId + x.xxx_hidden_StartedEventId = b.StartedEventId + return m0 +} + +type WorkflowExecutionOptionsUpdatedEventAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_VersioningOverride *v14.VersioningOverride `protobuf:"bytes,1,opt,name=versioning_override,json=versioningOverride,proto3"` + xxx_hidden_UnsetVersioningOverride bool `protobuf:"varint,2,opt,name=unset_versioning_override,json=unsetVersioningOverride,proto3"` + xxx_hidden_AttachedRequestId string `protobuf:"bytes,3,opt,name=attached_request_id,json=attachedRequestId,proto3"` + xxx_hidden_AttachedCompletionCallbacks *[]*v1.Callback `protobuf:"bytes,4,rep,name=attached_completion_callbacks,json=attachedCompletionCallbacks,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,5,opt,name=identity,proto3"` + xxx_hidden_Priority *v1.Priority `protobuf:"bytes,6,opt,name=priority,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowExecutionOptionsUpdatedEventAttributes) Reset() { + *x = WorkflowExecutionOptionsUpdatedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[41] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkflowExecutionOptionsUpdatedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowExecutionOptionsUpdatedEventAttributes) ProtoMessage() {} + +func (x *WorkflowExecutionOptionsUpdatedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[41] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkflowExecutionOptionsUpdatedEventAttributes) GetVersioningOverride() *v14.VersioningOverride { + if x != nil { + return x.xxx_hidden_VersioningOverride + } + return nil +} + +func (x *WorkflowExecutionOptionsUpdatedEventAttributes) GetUnsetVersioningOverride() bool { + if x != nil { + return x.xxx_hidden_UnsetVersioningOverride + } + return false +} + +func (x *WorkflowExecutionOptionsUpdatedEventAttributes) GetAttachedRequestId() string { + if x != nil { + return x.xxx_hidden_AttachedRequestId + } + return "" +} + +func (x *WorkflowExecutionOptionsUpdatedEventAttributes) GetAttachedCompletionCallbacks() []*v1.Callback { + if x != nil { + if x.xxx_hidden_AttachedCompletionCallbacks != nil { + return *x.xxx_hidden_AttachedCompletionCallbacks + } + } + return nil +} + +func (x *WorkflowExecutionOptionsUpdatedEventAttributes) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *WorkflowExecutionOptionsUpdatedEventAttributes) GetPriority() *v1.Priority { + if x != nil { + return x.xxx_hidden_Priority + } + return nil +} + +func (x *WorkflowExecutionOptionsUpdatedEventAttributes) SetVersioningOverride(v *v14.VersioningOverride) { + x.xxx_hidden_VersioningOverride = v +} + +func (x *WorkflowExecutionOptionsUpdatedEventAttributes) SetUnsetVersioningOverride(v bool) { + x.xxx_hidden_UnsetVersioningOverride = v +} + +func (x *WorkflowExecutionOptionsUpdatedEventAttributes) SetAttachedRequestId(v string) { + x.xxx_hidden_AttachedRequestId = v +} + +func (x *WorkflowExecutionOptionsUpdatedEventAttributes) SetAttachedCompletionCallbacks(v []*v1.Callback) { + x.xxx_hidden_AttachedCompletionCallbacks = &v +} + +func (x *WorkflowExecutionOptionsUpdatedEventAttributes) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *WorkflowExecutionOptionsUpdatedEventAttributes) SetPriority(v *v1.Priority) { + x.xxx_hidden_Priority = v +} + +func (x *WorkflowExecutionOptionsUpdatedEventAttributes) HasVersioningOverride() bool { + if x == nil { + return false + } + return x.xxx_hidden_VersioningOverride != nil +} + +func (x *WorkflowExecutionOptionsUpdatedEventAttributes) HasPriority() bool { + if x == nil { + return false + } + return x.xxx_hidden_Priority != nil +} + +func (x *WorkflowExecutionOptionsUpdatedEventAttributes) ClearVersioningOverride() { + x.xxx_hidden_VersioningOverride = nil +} + +func (x *WorkflowExecutionOptionsUpdatedEventAttributes) ClearPriority() { + x.xxx_hidden_Priority = nil +} + +type WorkflowExecutionOptionsUpdatedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Versioning override upserted in this event. + // Ignored if nil or if unset_versioning_override is true. + VersioningOverride *v14.VersioningOverride + // Versioning override removed in this event. + UnsetVersioningOverride bool + // Request ID attached to the running workflow execution so that subsequent requests with same + // request ID will be deduped. + AttachedRequestId string + // Completion callbacks attached to the running workflow execution. + AttachedCompletionCallbacks []*v1.Callback + // Optional. The identity of the client who initiated the request that created this event. + Identity string + // Priority override upserted in this event. Represents the full priority; not just partial fields. + // Ignored if nil. + Priority *v1.Priority +} + +func (b0 WorkflowExecutionOptionsUpdatedEventAttributes_builder) Build() *WorkflowExecutionOptionsUpdatedEventAttributes { + m0 := &WorkflowExecutionOptionsUpdatedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_VersioningOverride = b.VersioningOverride + x.xxx_hidden_UnsetVersioningOverride = b.UnsetVersioningOverride + x.xxx_hidden_AttachedRequestId = b.AttachedRequestId + x.xxx_hidden_AttachedCompletionCallbacks = &b.AttachedCompletionCallbacks + x.xxx_hidden_Identity = b.Identity + x.xxx_hidden_Priority = b.Priority + return m0 +} + +// Not used anywhere. Use case is replaced by WorkflowExecutionOptionsUpdatedEventAttributes +type WorkflowPropertiesModifiedExternallyEventAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_NewTaskQueue string `protobuf:"bytes,1,opt,name=new_task_queue,json=newTaskQueue,proto3"` + xxx_hidden_NewWorkflowTaskTimeout *durationpb.Duration `protobuf:"bytes,2,opt,name=new_workflow_task_timeout,json=newWorkflowTaskTimeout,proto3"` + xxx_hidden_NewWorkflowRunTimeout *durationpb.Duration `protobuf:"bytes,3,opt,name=new_workflow_run_timeout,json=newWorkflowRunTimeout,proto3"` + xxx_hidden_NewWorkflowExecutionTimeout *durationpb.Duration `protobuf:"bytes,4,opt,name=new_workflow_execution_timeout,json=newWorkflowExecutionTimeout,proto3"` + xxx_hidden_UpsertedMemo *v1.Memo `protobuf:"bytes,5,opt,name=upserted_memo,json=upsertedMemo,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowPropertiesModifiedExternallyEventAttributes) Reset() { + *x = WorkflowPropertiesModifiedExternallyEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[42] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkflowPropertiesModifiedExternallyEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowPropertiesModifiedExternallyEventAttributes) ProtoMessage() {} + +func (x *WorkflowPropertiesModifiedExternallyEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[42] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkflowPropertiesModifiedExternallyEventAttributes) GetNewTaskQueue() string { + if x != nil { + return x.xxx_hidden_NewTaskQueue + } + return "" +} + +func (x *WorkflowPropertiesModifiedExternallyEventAttributes) GetNewWorkflowTaskTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_NewWorkflowTaskTimeout + } + return nil +} + +func (x *WorkflowPropertiesModifiedExternallyEventAttributes) GetNewWorkflowRunTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_NewWorkflowRunTimeout + } + return nil +} + +func (x *WorkflowPropertiesModifiedExternallyEventAttributes) GetNewWorkflowExecutionTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_NewWorkflowExecutionTimeout + } + return nil +} + +func (x *WorkflowPropertiesModifiedExternallyEventAttributes) GetUpsertedMemo() *v1.Memo { + if x != nil { + return x.xxx_hidden_UpsertedMemo + } + return nil +} + +func (x *WorkflowPropertiesModifiedExternallyEventAttributes) SetNewTaskQueue(v string) { + x.xxx_hidden_NewTaskQueue = v +} + +func (x *WorkflowPropertiesModifiedExternallyEventAttributes) SetNewWorkflowTaskTimeout(v *durationpb.Duration) { + x.xxx_hidden_NewWorkflowTaskTimeout = v +} + +func (x *WorkflowPropertiesModifiedExternallyEventAttributes) SetNewWorkflowRunTimeout(v *durationpb.Duration) { + x.xxx_hidden_NewWorkflowRunTimeout = v +} + +func (x *WorkflowPropertiesModifiedExternallyEventAttributes) SetNewWorkflowExecutionTimeout(v *durationpb.Duration) { + x.xxx_hidden_NewWorkflowExecutionTimeout = v +} + +func (x *WorkflowPropertiesModifiedExternallyEventAttributes) SetUpsertedMemo(v *v1.Memo) { + x.xxx_hidden_UpsertedMemo = v +} + +func (x *WorkflowPropertiesModifiedExternallyEventAttributes) HasNewWorkflowTaskTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_NewWorkflowTaskTimeout != nil +} + +func (x *WorkflowPropertiesModifiedExternallyEventAttributes) HasNewWorkflowRunTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_NewWorkflowRunTimeout != nil +} + +func (x *WorkflowPropertiesModifiedExternallyEventAttributes) HasNewWorkflowExecutionTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_NewWorkflowExecutionTimeout != nil +} + +func (x *WorkflowPropertiesModifiedExternallyEventAttributes) HasUpsertedMemo() bool { + if x == nil { + return false + } + return x.xxx_hidden_UpsertedMemo != nil +} + +func (x *WorkflowPropertiesModifiedExternallyEventAttributes) ClearNewWorkflowTaskTimeout() { + x.xxx_hidden_NewWorkflowTaskTimeout = nil +} + +func (x *WorkflowPropertiesModifiedExternallyEventAttributes) ClearNewWorkflowRunTimeout() { + x.xxx_hidden_NewWorkflowRunTimeout = nil +} + +func (x *WorkflowPropertiesModifiedExternallyEventAttributes) ClearNewWorkflowExecutionTimeout() { + x.xxx_hidden_NewWorkflowExecutionTimeout = nil +} + +func (x *WorkflowPropertiesModifiedExternallyEventAttributes) ClearUpsertedMemo() { + x.xxx_hidden_UpsertedMemo = nil +} + +type WorkflowPropertiesModifiedExternallyEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Not used. + NewTaskQueue string + // Not used. + NewWorkflowTaskTimeout *durationpb.Duration + // Not used. + NewWorkflowRunTimeout *durationpb.Duration + // Not used. + NewWorkflowExecutionTimeout *durationpb.Duration + // Not used. + UpsertedMemo *v1.Memo +} + +func (b0 WorkflowPropertiesModifiedExternallyEventAttributes_builder) Build() *WorkflowPropertiesModifiedExternallyEventAttributes { + m0 := &WorkflowPropertiesModifiedExternallyEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_NewTaskQueue = b.NewTaskQueue + x.xxx_hidden_NewWorkflowTaskTimeout = b.NewWorkflowTaskTimeout + x.xxx_hidden_NewWorkflowRunTimeout = b.NewWorkflowRunTimeout + x.xxx_hidden_NewWorkflowExecutionTimeout = b.NewWorkflowExecutionTimeout + x.xxx_hidden_UpsertedMemo = b.UpsertedMemo + return m0 +} + +type ActivityPropertiesModifiedExternallyEventAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ScheduledEventId int64 `protobuf:"varint,1,opt,name=scheduled_event_id,json=scheduledEventId,proto3"` + xxx_hidden_NewRetryPolicy *v1.RetryPolicy `protobuf:"bytes,2,opt,name=new_retry_policy,json=newRetryPolicy,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ActivityPropertiesModifiedExternallyEventAttributes) Reset() { + *x = ActivityPropertiesModifiedExternallyEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[43] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ActivityPropertiesModifiedExternallyEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ActivityPropertiesModifiedExternallyEventAttributes) ProtoMessage() {} + +func (x *ActivityPropertiesModifiedExternallyEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[43] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ActivityPropertiesModifiedExternallyEventAttributes) GetScheduledEventId() int64 { + if x != nil { + return x.xxx_hidden_ScheduledEventId + } + return 0 +} + +func (x *ActivityPropertiesModifiedExternallyEventAttributes) GetNewRetryPolicy() *v1.RetryPolicy { + if x != nil { + return x.xxx_hidden_NewRetryPolicy + } + return nil +} + +func (x *ActivityPropertiesModifiedExternallyEventAttributes) SetScheduledEventId(v int64) { + x.xxx_hidden_ScheduledEventId = v +} + +func (x *ActivityPropertiesModifiedExternallyEventAttributes) SetNewRetryPolicy(v *v1.RetryPolicy) { + x.xxx_hidden_NewRetryPolicy = v +} + +func (x *ActivityPropertiesModifiedExternallyEventAttributes) HasNewRetryPolicy() bool { + if x == nil { + return false + } + return x.xxx_hidden_NewRetryPolicy != nil +} + +func (x *ActivityPropertiesModifiedExternallyEventAttributes) ClearNewRetryPolicy() { + x.xxx_hidden_NewRetryPolicy = nil +} + +type ActivityPropertiesModifiedExternallyEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The id of the `ACTIVITY_TASK_SCHEDULED` event this modification corresponds to. + ScheduledEventId int64 + // If set, update the retry policy of the activity, replacing it with the specified one. + // The number of attempts at the activity is preserved. + NewRetryPolicy *v1.RetryPolicy +} + +func (b0 ActivityPropertiesModifiedExternallyEventAttributes_builder) Build() *ActivityPropertiesModifiedExternallyEventAttributes { + m0 := &ActivityPropertiesModifiedExternallyEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ScheduledEventId = b.ScheduledEventId + x.xxx_hidden_NewRetryPolicy = b.NewRetryPolicy + return m0 +} + +type WorkflowExecutionUpdateAcceptedEventAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ProtocolInstanceId string `protobuf:"bytes,1,opt,name=protocol_instance_id,json=protocolInstanceId,proto3"` + xxx_hidden_AcceptedRequestMessageId string `protobuf:"bytes,2,opt,name=accepted_request_message_id,json=acceptedRequestMessageId,proto3"` + xxx_hidden_AcceptedRequestSequencingEventId int64 `protobuf:"varint,3,opt,name=accepted_request_sequencing_event_id,json=acceptedRequestSequencingEventId,proto3"` + xxx_hidden_AcceptedRequest *v17.Request `protobuf:"bytes,4,opt,name=accepted_request,json=acceptedRequest,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowExecutionUpdateAcceptedEventAttributes) Reset() { + *x = WorkflowExecutionUpdateAcceptedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[44] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkflowExecutionUpdateAcceptedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowExecutionUpdateAcceptedEventAttributes) ProtoMessage() {} + +func (x *WorkflowExecutionUpdateAcceptedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[44] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkflowExecutionUpdateAcceptedEventAttributes) GetProtocolInstanceId() string { + if x != nil { + return x.xxx_hidden_ProtocolInstanceId + } + return "" +} + +func (x *WorkflowExecutionUpdateAcceptedEventAttributes) GetAcceptedRequestMessageId() string { + if x != nil { + return x.xxx_hidden_AcceptedRequestMessageId + } + return "" +} + +func (x *WorkflowExecutionUpdateAcceptedEventAttributes) GetAcceptedRequestSequencingEventId() int64 { + if x != nil { + return x.xxx_hidden_AcceptedRequestSequencingEventId + } + return 0 +} + +func (x *WorkflowExecutionUpdateAcceptedEventAttributes) GetAcceptedRequest() *v17.Request { + if x != nil { + return x.xxx_hidden_AcceptedRequest + } + return nil +} + +func (x *WorkflowExecutionUpdateAcceptedEventAttributes) SetProtocolInstanceId(v string) { + x.xxx_hidden_ProtocolInstanceId = v +} + +func (x *WorkflowExecutionUpdateAcceptedEventAttributes) SetAcceptedRequestMessageId(v string) { + x.xxx_hidden_AcceptedRequestMessageId = v +} + +func (x *WorkflowExecutionUpdateAcceptedEventAttributes) SetAcceptedRequestSequencingEventId(v int64) { + x.xxx_hidden_AcceptedRequestSequencingEventId = v +} + +func (x *WorkflowExecutionUpdateAcceptedEventAttributes) SetAcceptedRequest(v *v17.Request) { + x.xxx_hidden_AcceptedRequest = v +} + +func (x *WorkflowExecutionUpdateAcceptedEventAttributes) HasAcceptedRequest() bool { + if x == nil { + return false + } + return x.xxx_hidden_AcceptedRequest != nil +} + +func (x *WorkflowExecutionUpdateAcceptedEventAttributes) ClearAcceptedRequest() { + x.xxx_hidden_AcceptedRequest = nil +} + +type WorkflowExecutionUpdateAcceptedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The instance ID of the update protocol that generated this event. + ProtocolInstanceId string + // The message ID of the original request message that initiated this + // update. Needed so that the worker can recreate and deliver that same + // message as part of replay. + AcceptedRequestMessageId string + // The event ID used to sequence the original request message. + AcceptedRequestSequencingEventId int64 + // The message payload of the original request message that initiated this + // update. + AcceptedRequest *v17.Request +} + +func (b0 WorkflowExecutionUpdateAcceptedEventAttributes_builder) Build() *WorkflowExecutionUpdateAcceptedEventAttributes { + m0 := &WorkflowExecutionUpdateAcceptedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ProtocolInstanceId = b.ProtocolInstanceId + x.xxx_hidden_AcceptedRequestMessageId = b.AcceptedRequestMessageId + x.xxx_hidden_AcceptedRequestSequencingEventId = b.AcceptedRequestSequencingEventId + x.xxx_hidden_AcceptedRequest = b.AcceptedRequest + return m0 +} + +type WorkflowExecutionUpdateCompletedEventAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Meta *v17.Meta `protobuf:"bytes,1,opt,name=meta,proto3"` + xxx_hidden_AcceptedEventId int64 `protobuf:"varint,3,opt,name=accepted_event_id,json=acceptedEventId,proto3"` + xxx_hidden_Outcome *v17.Outcome `protobuf:"bytes,2,opt,name=outcome,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowExecutionUpdateCompletedEventAttributes) Reset() { + *x = WorkflowExecutionUpdateCompletedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[45] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkflowExecutionUpdateCompletedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowExecutionUpdateCompletedEventAttributes) ProtoMessage() {} + +func (x *WorkflowExecutionUpdateCompletedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[45] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkflowExecutionUpdateCompletedEventAttributes) GetMeta() *v17.Meta { + if x != nil { + return x.xxx_hidden_Meta + } + return nil +} + +func (x *WorkflowExecutionUpdateCompletedEventAttributes) GetAcceptedEventId() int64 { + if x != nil { + return x.xxx_hidden_AcceptedEventId + } + return 0 +} + +func (x *WorkflowExecutionUpdateCompletedEventAttributes) GetOutcome() *v17.Outcome { + if x != nil { + return x.xxx_hidden_Outcome + } + return nil +} + +func (x *WorkflowExecutionUpdateCompletedEventAttributes) SetMeta(v *v17.Meta) { + x.xxx_hidden_Meta = v +} + +func (x *WorkflowExecutionUpdateCompletedEventAttributes) SetAcceptedEventId(v int64) { + x.xxx_hidden_AcceptedEventId = v +} + +func (x *WorkflowExecutionUpdateCompletedEventAttributes) SetOutcome(v *v17.Outcome) { + x.xxx_hidden_Outcome = v +} + +func (x *WorkflowExecutionUpdateCompletedEventAttributes) HasMeta() bool { + if x == nil { + return false + } + return x.xxx_hidden_Meta != nil +} + +func (x *WorkflowExecutionUpdateCompletedEventAttributes) HasOutcome() bool { + if x == nil { + return false + } + return x.xxx_hidden_Outcome != nil +} + +func (x *WorkflowExecutionUpdateCompletedEventAttributes) ClearMeta() { + x.xxx_hidden_Meta = nil +} + +func (x *WorkflowExecutionUpdateCompletedEventAttributes) ClearOutcome() { + x.xxx_hidden_Outcome = nil +} + +type WorkflowExecutionUpdateCompletedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The metadata about this update. + Meta *v17.Meta + // The event ID indicating the acceptance of this update. + AcceptedEventId int64 + // The outcome of executing the workflow update function. + Outcome *v17.Outcome +} + +func (b0 WorkflowExecutionUpdateCompletedEventAttributes_builder) Build() *WorkflowExecutionUpdateCompletedEventAttributes { + m0 := &WorkflowExecutionUpdateCompletedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Meta = b.Meta + x.xxx_hidden_AcceptedEventId = b.AcceptedEventId + x.xxx_hidden_Outcome = b.Outcome + return m0 +} + +type WorkflowExecutionUpdateRejectedEventAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ProtocolInstanceId string `protobuf:"bytes,1,opt,name=protocol_instance_id,json=protocolInstanceId,proto3"` + xxx_hidden_RejectedRequestMessageId string `protobuf:"bytes,2,opt,name=rejected_request_message_id,json=rejectedRequestMessageId,proto3"` + xxx_hidden_RejectedRequestSequencingEventId int64 `protobuf:"varint,3,opt,name=rejected_request_sequencing_event_id,json=rejectedRequestSequencingEventId,proto3"` + xxx_hidden_RejectedRequest *v17.Request `protobuf:"bytes,4,opt,name=rejected_request,json=rejectedRequest,proto3"` + xxx_hidden_Failure *v13.Failure `protobuf:"bytes,5,opt,name=failure,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowExecutionUpdateRejectedEventAttributes) Reset() { + *x = WorkflowExecutionUpdateRejectedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[46] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkflowExecutionUpdateRejectedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowExecutionUpdateRejectedEventAttributes) ProtoMessage() {} + +func (x *WorkflowExecutionUpdateRejectedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[46] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkflowExecutionUpdateRejectedEventAttributes) GetProtocolInstanceId() string { + if x != nil { + return x.xxx_hidden_ProtocolInstanceId + } + return "" +} + +func (x *WorkflowExecutionUpdateRejectedEventAttributes) GetRejectedRequestMessageId() string { + if x != nil { + return x.xxx_hidden_RejectedRequestMessageId + } + return "" +} + +func (x *WorkflowExecutionUpdateRejectedEventAttributes) GetRejectedRequestSequencingEventId() int64 { + if x != nil { + return x.xxx_hidden_RejectedRequestSequencingEventId + } + return 0 +} + +func (x *WorkflowExecutionUpdateRejectedEventAttributes) GetRejectedRequest() *v17.Request { + if x != nil { + return x.xxx_hidden_RejectedRequest + } + return nil +} + +func (x *WorkflowExecutionUpdateRejectedEventAttributes) GetFailure() *v13.Failure { + if x != nil { + return x.xxx_hidden_Failure + } + return nil +} + +func (x *WorkflowExecutionUpdateRejectedEventAttributes) SetProtocolInstanceId(v string) { + x.xxx_hidden_ProtocolInstanceId = v +} + +func (x *WorkflowExecutionUpdateRejectedEventAttributes) SetRejectedRequestMessageId(v string) { + x.xxx_hidden_RejectedRequestMessageId = v +} + +func (x *WorkflowExecutionUpdateRejectedEventAttributes) SetRejectedRequestSequencingEventId(v int64) { + x.xxx_hidden_RejectedRequestSequencingEventId = v +} + +func (x *WorkflowExecutionUpdateRejectedEventAttributes) SetRejectedRequest(v *v17.Request) { + x.xxx_hidden_RejectedRequest = v +} + +func (x *WorkflowExecutionUpdateRejectedEventAttributes) SetFailure(v *v13.Failure) { + x.xxx_hidden_Failure = v +} + +func (x *WorkflowExecutionUpdateRejectedEventAttributes) HasRejectedRequest() bool { + if x == nil { + return false + } + return x.xxx_hidden_RejectedRequest != nil +} + +func (x *WorkflowExecutionUpdateRejectedEventAttributes) HasFailure() bool { + if x == nil { + return false + } + return x.xxx_hidden_Failure != nil +} + +func (x *WorkflowExecutionUpdateRejectedEventAttributes) ClearRejectedRequest() { + x.xxx_hidden_RejectedRequest = nil +} + +func (x *WorkflowExecutionUpdateRejectedEventAttributes) ClearFailure() { + x.xxx_hidden_Failure = nil +} + +type WorkflowExecutionUpdateRejectedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The instance ID of the update protocol that generated this event. + ProtocolInstanceId string + // The message ID of the original request message that initiated this + // update. Needed so that the worker can recreate and deliver that same + // message as part of replay. + RejectedRequestMessageId string + // The event ID used to sequence the original request message. + RejectedRequestSequencingEventId int64 + // The message payload of the original request message that initiated this + // update. + RejectedRequest *v17.Request + // The cause of rejection. + Failure *v13.Failure +} + +func (b0 WorkflowExecutionUpdateRejectedEventAttributes_builder) Build() *WorkflowExecutionUpdateRejectedEventAttributes { + m0 := &WorkflowExecutionUpdateRejectedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ProtocolInstanceId = b.ProtocolInstanceId + x.xxx_hidden_RejectedRequestMessageId = b.RejectedRequestMessageId + x.xxx_hidden_RejectedRequestSequencingEventId = b.RejectedRequestSequencingEventId + x.xxx_hidden_RejectedRequest = b.RejectedRequest + x.xxx_hidden_Failure = b.Failure + return m0 +} + +type WorkflowExecutionUpdateAdmittedEventAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Request *v17.Request `protobuf:"bytes,1,opt,name=request,proto3"` + xxx_hidden_Origin v12.UpdateAdmittedEventOrigin `protobuf:"varint,2,opt,name=origin,proto3,enum=temporal.api.enums.v1.UpdateAdmittedEventOrigin"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowExecutionUpdateAdmittedEventAttributes) Reset() { + *x = WorkflowExecutionUpdateAdmittedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[47] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkflowExecutionUpdateAdmittedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowExecutionUpdateAdmittedEventAttributes) ProtoMessage() {} + +func (x *WorkflowExecutionUpdateAdmittedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[47] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkflowExecutionUpdateAdmittedEventAttributes) GetRequest() *v17.Request { + if x != nil { + return x.xxx_hidden_Request + } + return nil +} + +func (x *WorkflowExecutionUpdateAdmittedEventAttributes) GetOrigin() v12.UpdateAdmittedEventOrigin { + if x != nil { + return x.xxx_hidden_Origin + } + return v12.UpdateAdmittedEventOrigin(0) +} + +func (x *WorkflowExecutionUpdateAdmittedEventAttributes) SetRequest(v *v17.Request) { + x.xxx_hidden_Request = v +} + +func (x *WorkflowExecutionUpdateAdmittedEventAttributes) SetOrigin(v v12.UpdateAdmittedEventOrigin) { + x.xxx_hidden_Origin = v +} + +func (x *WorkflowExecutionUpdateAdmittedEventAttributes) HasRequest() bool { + if x == nil { + return false + } + return x.xxx_hidden_Request != nil +} + +func (x *WorkflowExecutionUpdateAdmittedEventAttributes) ClearRequest() { + x.xxx_hidden_Request = nil +} + +type WorkflowExecutionUpdateAdmittedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The update request associated with this event. + Request *v17.Request + // An explanation of why this event was written to history. + Origin v12.UpdateAdmittedEventOrigin +} + +func (b0 WorkflowExecutionUpdateAdmittedEventAttributes_builder) Build() *WorkflowExecutionUpdateAdmittedEventAttributes { + m0 := &WorkflowExecutionUpdateAdmittedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Request = b.Request + x.xxx_hidden_Origin = b.Origin + return m0 +} + +// Attributes for an event marking that a workflow execution was paused. +type WorkflowExecutionPausedEventAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Identity string `protobuf:"bytes,1,opt,name=identity,proto3"` + xxx_hidden_Reason string `protobuf:"bytes,2,opt,name=reason,proto3"` + xxx_hidden_RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowExecutionPausedEventAttributes) Reset() { + *x = WorkflowExecutionPausedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[48] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkflowExecutionPausedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowExecutionPausedEventAttributes) ProtoMessage() {} + +func (x *WorkflowExecutionPausedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[48] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkflowExecutionPausedEventAttributes) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *WorkflowExecutionPausedEventAttributes) GetReason() string { + if x != nil { + return x.xxx_hidden_Reason + } + return "" +} + +func (x *WorkflowExecutionPausedEventAttributes) GetRequestId() string { + if x != nil { + return x.xxx_hidden_RequestId + } + return "" +} + +func (x *WorkflowExecutionPausedEventAttributes) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *WorkflowExecutionPausedEventAttributes) SetReason(v string) { + x.xxx_hidden_Reason = v +} + +func (x *WorkflowExecutionPausedEventAttributes) SetRequestId(v string) { + x.xxx_hidden_RequestId = v +} + +type WorkflowExecutionPausedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The identity of the client who paused the workflow execution. + Identity string + // The reason for pausing the workflow execution. + Reason string + // The request ID of the request that paused the workflow execution. + RequestId string +} + +func (b0 WorkflowExecutionPausedEventAttributes_builder) Build() *WorkflowExecutionPausedEventAttributes { + m0 := &WorkflowExecutionPausedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Identity = b.Identity + x.xxx_hidden_Reason = b.Reason + x.xxx_hidden_RequestId = b.RequestId + return m0 +} + +// Attributes for an event marking that a workflow execution was unpaused. +type WorkflowExecutionUnpausedEventAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Identity string `protobuf:"bytes,1,opt,name=identity,proto3"` + xxx_hidden_Reason string `protobuf:"bytes,2,opt,name=reason,proto3"` + xxx_hidden_RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowExecutionUnpausedEventAttributes) Reset() { + *x = WorkflowExecutionUnpausedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[49] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkflowExecutionUnpausedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowExecutionUnpausedEventAttributes) ProtoMessage() {} + +func (x *WorkflowExecutionUnpausedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[49] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkflowExecutionUnpausedEventAttributes) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *WorkflowExecutionUnpausedEventAttributes) GetReason() string { + if x != nil { + return x.xxx_hidden_Reason + } + return "" +} + +func (x *WorkflowExecutionUnpausedEventAttributes) GetRequestId() string { + if x != nil { + return x.xxx_hidden_RequestId + } + return "" +} + +func (x *WorkflowExecutionUnpausedEventAttributes) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *WorkflowExecutionUnpausedEventAttributes) SetReason(v string) { + x.xxx_hidden_Reason = v +} + +func (x *WorkflowExecutionUnpausedEventAttributes) SetRequestId(v string) { + x.xxx_hidden_RequestId = v +} + +type WorkflowExecutionUnpausedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The identity of the client who unpaused the workflow execution. + Identity string + // The reason for unpausing the workflow execution. + Reason string + // The request ID of the request that unpaused the workflow execution. + RequestId string +} + +func (b0 WorkflowExecutionUnpausedEventAttributes_builder) Build() *WorkflowExecutionUnpausedEventAttributes { + m0 := &WorkflowExecutionUnpausedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Identity = b.Identity + x.xxx_hidden_Reason = b.Reason + x.xxx_hidden_RequestId = b.RequestId + return m0 +} + +// Event marking that an operation was scheduled by a workflow via the ScheduleNexusOperation command. +type NexusOperationScheduledEventAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3"` + xxx_hidden_Service string `protobuf:"bytes,2,opt,name=service,proto3"` + xxx_hidden_Operation string `protobuf:"bytes,3,opt,name=operation,proto3"` + xxx_hidden_Input *v1.Payload `protobuf:"bytes,4,opt,name=input,proto3"` + xxx_hidden_ScheduleToCloseTimeout *durationpb.Duration `protobuf:"bytes,5,opt,name=schedule_to_close_timeout,json=scheduleToCloseTimeout,proto3"` + xxx_hidden_NexusHeader map[string]string `protobuf:"bytes,6,rep,name=nexus_header,json=nexusHeader,proto3" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + xxx_hidden_WorkflowTaskCompletedEventId int64 `protobuf:"varint,7,opt,name=workflow_task_completed_event_id,json=workflowTaskCompletedEventId,proto3"` + xxx_hidden_RequestId string `protobuf:"bytes,8,opt,name=request_id,json=requestId,proto3"` + xxx_hidden_EndpointId string `protobuf:"bytes,9,opt,name=endpoint_id,json=endpointId,proto3"` + xxx_hidden_ScheduleToStartTimeout *durationpb.Duration `protobuf:"bytes,10,opt,name=schedule_to_start_timeout,json=scheduleToStartTimeout,proto3"` + xxx_hidden_StartToCloseTimeout *durationpb.Duration `protobuf:"bytes,11,opt,name=start_to_close_timeout,json=startToCloseTimeout,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *NexusOperationScheduledEventAttributes) Reset() { + *x = NexusOperationScheduledEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[50] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *NexusOperationScheduledEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NexusOperationScheduledEventAttributes) ProtoMessage() {} + +func (x *NexusOperationScheduledEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[50] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *NexusOperationScheduledEventAttributes) GetEndpoint() string { + if x != nil { + return x.xxx_hidden_Endpoint + } + return "" +} + +func (x *NexusOperationScheduledEventAttributes) GetService() string { + if x != nil { + return x.xxx_hidden_Service + } + return "" +} + +func (x *NexusOperationScheduledEventAttributes) GetOperation() string { + if x != nil { + return x.xxx_hidden_Operation + } + return "" +} + +func (x *NexusOperationScheduledEventAttributes) GetInput() *v1.Payload { + if x != nil { + return x.xxx_hidden_Input + } + return nil +} + +func (x *NexusOperationScheduledEventAttributes) GetScheduleToCloseTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_ScheduleToCloseTimeout + } + return nil +} + +func (x *NexusOperationScheduledEventAttributes) GetNexusHeader() map[string]string { + if x != nil { + return x.xxx_hidden_NexusHeader + } + return nil +} + +func (x *NexusOperationScheduledEventAttributes) GetWorkflowTaskCompletedEventId() int64 { + if x != nil { + return x.xxx_hidden_WorkflowTaskCompletedEventId + } + return 0 +} + +func (x *NexusOperationScheduledEventAttributes) GetRequestId() string { + if x != nil { + return x.xxx_hidden_RequestId + } + return "" +} + +func (x *NexusOperationScheduledEventAttributes) GetEndpointId() string { + if x != nil { + return x.xxx_hidden_EndpointId + } + return "" +} + +func (x *NexusOperationScheduledEventAttributes) GetScheduleToStartTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_ScheduleToStartTimeout + } + return nil +} + +func (x *NexusOperationScheduledEventAttributes) GetStartToCloseTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_StartToCloseTimeout + } + return nil +} + +func (x *NexusOperationScheduledEventAttributes) SetEndpoint(v string) { + x.xxx_hidden_Endpoint = v +} + +func (x *NexusOperationScheduledEventAttributes) SetService(v string) { + x.xxx_hidden_Service = v +} + +func (x *NexusOperationScheduledEventAttributes) SetOperation(v string) { + x.xxx_hidden_Operation = v +} + +func (x *NexusOperationScheduledEventAttributes) SetInput(v *v1.Payload) { + x.xxx_hidden_Input = v +} + +func (x *NexusOperationScheduledEventAttributes) SetScheduleToCloseTimeout(v *durationpb.Duration) { + x.xxx_hidden_ScheduleToCloseTimeout = v +} + +func (x *NexusOperationScheduledEventAttributes) SetNexusHeader(v map[string]string) { + x.xxx_hidden_NexusHeader = v +} + +func (x *NexusOperationScheduledEventAttributes) SetWorkflowTaskCompletedEventId(v int64) { + x.xxx_hidden_WorkflowTaskCompletedEventId = v +} + +func (x *NexusOperationScheduledEventAttributes) SetRequestId(v string) { + x.xxx_hidden_RequestId = v +} + +func (x *NexusOperationScheduledEventAttributes) SetEndpointId(v string) { + x.xxx_hidden_EndpointId = v +} + +func (x *NexusOperationScheduledEventAttributes) SetScheduleToStartTimeout(v *durationpb.Duration) { + x.xxx_hidden_ScheduleToStartTimeout = v +} + +func (x *NexusOperationScheduledEventAttributes) SetStartToCloseTimeout(v *durationpb.Duration) { + x.xxx_hidden_StartToCloseTimeout = v +} + +func (x *NexusOperationScheduledEventAttributes) HasInput() bool { + if x == nil { + return false + } + return x.xxx_hidden_Input != nil +} + +func (x *NexusOperationScheduledEventAttributes) HasScheduleToCloseTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_ScheduleToCloseTimeout != nil +} + +func (x *NexusOperationScheduledEventAttributes) HasScheduleToStartTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_ScheduleToStartTimeout != nil +} + +func (x *NexusOperationScheduledEventAttributes) HasStartToCloseTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_StartToCloseTimeout != nil +} + +func (x *NexusOperationScheduledEventAttributes) ClearInput() { + x.xxx_hidden_Input = nil +} + +func (x *NexusOperationScheduledEventAttributes) ClearScheduleToCloseTimeout() { + x.xxx_hidden_ScheduleToCloseTimeout = nil +} + +func (x *NexusOperationScheduledEventAttributes) ClearScheduleToStartTimeout() { + x.xxx_hidden_ScheduleToStartTimeout = nil +} + +func (x *NexusOperationScheduledEventAttributes) ClearStartToCloseTimeout() { + x.xxx_hidden_StartToCloseTimeout = nil +} + +type NexusOperationScheduledEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Endpoint name, must exist in the endpoint registry. + Endpoint string + // Service name. + Service string + // Operation name. + Operation string + // Input for the operation. The server converts this into Nexus request content and the appropriate content headers + // internally when sending the StartOperation request. On the handler side, if it is also backed by Temporal, the + // content is transformed back to the original Payload stored in this event. + Input *v1.Payload + // Schedule-to-close timeout for this operation. + // Indicates how long the caller is willing to wait for operation completion. + // Calls are retried internally by the server. + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + ScheduleToCloseTimeout *durationpb.Duration + // Header to attach to the Nexus request. Note these headers are not the same as Temporal headers on internal + // activities and child workflows, these are transmitted to Nexus operations that may be external and are not + // traditional payloads. + NexusHeader map[string]string + // The `WORKFLOW_TASK_COMPLETED` event that the corresponding ScheduleNexusOperation command was reported with. + WorkflowTaskCompletedEventId int64 + // A unique ID generated by the history service upon creation of this event. + // The ID will be transmitted with all nexus StartOperation requests and is used as an idempotentency key. + RequestId string + // Endpoint ID as resolved in the endpoint registry at the time this event was generated. + // This is stored on the event and used internally by the server in case the endpoint is renamed from the time the + // event was originally scheduled. + EndpointId string + // Schedule-to-start timeout for this operation. + // See ScheduleNexusOperationCommandAttributes.schedule_to_start_timeout for details. + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + ScheduleToStartTimeout *durationpb.Duration + // Start-to-close timeout for this operation. + // See ScheduleNexusOperationCommandAttributes.start_to_close_timeout for details. + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + StartToCloseTimeout *durationpb.Duration +} + +func (b0 NexusOperationScheduledEventAttributes_builder) Build() *NexusOperationScheduledEventAttributes { + m0 := &NexusOperationScheduledEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Endpoint = b.Endpoint + x.xxx_hidden_Service = b.Service + x.xxx_hidden_Operation = b.Operation + x.xxx_hidden_Input = b.Input + x.xxx_hidden_ScheduleToCloseTimeout = b.ScheduleToCloseTimeout + x.xxx_hidden_NexusHeader = b.NexusHeader + x.xxx_hidden_WorkflowTaskCompletedEventId = b.WorkflowTaskCompletedEventId + x.xxx_hidden_RequestId = b.RequestId + x.xxx_hidden_EndpointId = b.EndpointId + x.xxx_hidden_ScheduleToStartTimeout = b.ScheduleToStartTimeout + x.xxx_hidden_StartToCloseTimeout = b.StartToCloseTimeout + return m0 +} + +// Event marking an asynchronous operation was started by the responding Nexus handler. +// If the operation completes synchronously, this event is not generated. +// In rare situations, such as request timeouts, the service may fail to record the actual start time and will fabricate +// this event upon receiving the operation completion via callback. +type NexusOperationStartedEventAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ScheduledEventId int64 `protobuf:"varint,1,opt,name=scheduled_event_id,json=scheduledEventId,proto3"` + xxx_hidden_OperationId string `protobuf:"bytes,3,opt,name=operation_id,json=operationId,proto3"` + xxx_hidden_RequestId string `protobuf:"bytes,4,opt,name=request_id,json=requestId,proto3"` + xxx_hidden_OperationToken string `protobuf:"bytes,5,opt,name=operation_token,json=operationToken,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *NexusOperationStartedEventAttributes) Reset() { + *x = NexusOperationStartedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[51] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *NexusOperationStartedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NexusOperationStartedEventAttributes) ProtoMessage() {} + +func (x *NexusOperationStartedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[51] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *NexusOperationStartedEventAttributes) GetScheduledEventId() int64 { + if x != nil { + return x.xxx_hidden_ScheduledEventId + } + return 0 +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *NexusOperationStartedEventAttributes) GetOperationId() string { + if x != nil { + return x.xxx_hidden_OperationId + } + return "" +} + +func (x *NexusOperationStartedEventAttributes) GetRequestId() string { + if x != nil { + return x.xxx_hidden_RequestId + } + return "" +} + +func (x *NexusOperationStartedEventAttributes) GetOperationToken() string { + if x != nil { + return x.xxx_hidden_OperationToken + } + return "" +} + +func (x *NexusOperationStartedEventAttributes) SetScheduledEventId(v int64) { + x.xxx_hidden_ScheduledEventId = v +} + +// Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. +func (x *NexusOperationStartedEventAttributes) SetOperationId(v string) { + x.xxx_hidden_OperationId = v +} + +func (x *NexusOperationStartedEventAttributes) SetRequestId(v string) { + x.xxx_hidden_RequestId = v +} + +func (x *NexusOperationStartedEventAttributes) SetOperationToken(v string) { + x.xxx_hidden_OperationToken = v +} + +type NexusOperationStartedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the `NEXUS_OPERATION_SCHEDULED` event this task corresponds to. + ScheduledEventId int64 + // The operation ID returned by the Nexus handler in the response to the StartOperation request. + // This ID is used when canceling the operation. + // + // Deprecated: Renamed to operation_token. + // + // Deprecated: Marked as deprecated in temporal/api/history/v1/message.proto. + OperationId string + // The request ID allocated at schedule time. + RequestId string + // The operation token returned by the Nexus handler in the response to the StartOperation request. + // This token is used when canceling the operation. + OperationToken string +} + +func (b0 NexusOperationStartedEventAttributes_builder) Build() *NexusOperationStartedEventAttributes { + m0 := &NexusOperationStartedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ScheduledEventId = b.ScheduledEventId + x.xxx_hidden_OperationId = b.OperationId + x.xxx_hidden_RequestId = b.RequestId + x.xxx_hidden_OperationToken = b.OperationToken + return m0 +} + +// Nexus operation completed successfully. +type NexusOperationCompletedEventAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ScheduledEventId int64 `protobuf:"varint,1,opt,name=scheduled_event_id,json=scheduledEventId,proto3"` + xxx_hidden_Result *v1.Payload `protobuf:"bytes,2,opt,name=result,proto3"` + xxx_hidden_RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *NexusOperationCompletedEventAttributes) Reset() { + *x = NexusOperationCompletedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[52] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *NexusOperationCompletedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NexusOperationCompletedEventAttributes) ProtoMessage() {} + +func (x *NexusOperationCompletedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[52] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *NexusOperationCompletedEventAttributes) GetScheduledEventId() int64 { + if x != nil { + return x.xxx_hidden_ScheduledEventId + } + return 0 +} + +func (x *NexusOperationCompletedEventAttributes) GetResult() *v1.Payload { + if x != nil { + return x.xxx_hidden_Result + } + return nil +} + +func (x *NexusOperationCompletedEventAttributes) GetRequestId() string { + if x != nil { + return x.xxx_hidden_RequestId + } + return "" +} + +func (x *NexusOperationCompletedEventAttributes) SetScheduledEventId(v int64) { + x.xxx_hidden_ScheduledEventId = v +} + +func (x *NexusOperationCompletedEventAttributes) SetResult(v *v1.Payload) { + x.xxx_hidden_Result = v +} + +func (x *NexusOperationCompletedEventAttributes) SetRequestId(v string) { + x.xxx_hidden_RequestId = v +} + +func (x *NexusOperationCompletedEventAttributes) HasResult() bool { + if x == nil { + return false + } + return x.xxx_hidden_Result != nil +} + +func (x *NexusOperationCompletedEventAttributes) ClearResult() { + x.xxx_hidden_Result = nil +} + +type NexusOperationCompletedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the `NEXUS_OPERATION_SCHEDULED` event. Uniquely identifies this operation. + ScheduledEventId int64 + // Serialized result of the Nexus operation. The response of the Nexus handler. + // Delivered either via a completion callback or as a response to a synchronous operation. + Result *v1.Payload + // The request ID allocated at schedule time. + RequestId string +} + +func (b0 NexusOperationCompletedEventAttributes_builder) Build() *NexusOperationCompletedEventAttributes { + m0 := &NexusOperationCompletedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ScheduledEventId = b.ScheduledEventId + x.xxx_hidden_Result = b.Result + x.xxx_hidden_RequestId = b.RequestId + return m0 +} + +// Nexus operation failed. +type NexusOperationFailedEventAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ScheduledEventId int64 `protobuf:"varint,1,opt,name=scheduled_event_id,json=scheduledEventId,proto3"` + xxx_hidden_Failure *v13.Failure `protobuf:"bytes,2,opt,name=failure,proto3"` + xxx_hidden_RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *NexusOperationFailedEventAttributes) Reset() { + *x = NexusOperationFailedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[53] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *NexusOperationFailedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NexusOperationFailedEventAttributes) ProtoMessage() {} + +func (x *NexusOperationFailedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[53] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *NexusOperationFailedEventAttributes) GetScheduledEventId() int64 { + if x != nil { + return x.xxx_hidden_ScheduledEventId + } + return 0 +} + +func (x *NexusOperationFailedEventAttributes) GetFailure() *v13.Failure { + if x != nil { + return x.xxx_hidden_Failure + } + return nil +} + +func (x *NexusOperationFailedEventAttributes) GetRequestId() string { + if x != nil { + return x.xxx_hidden_RequestId + } + return "" +} + +func (x *NexusOperationFailedEventAttributes) SetScheduledEventId(v int64) { + x.xxx_hidden_ScheduledEventId = v +} + +func (x *NexusOperationFailedEventAttributes) SetFailure(v *v13.Failure) { + x.xxx_hidden_Failure = v +} + +func (x *NexusOperationFailedEventAttributes) SetRequestId(v string) { + x.xxx_hidden_RequestId = v +} + +func (x *NexusOperationFailedEventAttributes) HasFailure() bool { + if x == nil { + return false + } + return x.xxx_hidden_Failure != nil +} + +func (x *NexusOperationFailedEventAttributes) ClearFailure() { + x.xxx_hidden_Failure = nil +} + +type NexusOperationFailedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the `NEXUS_OPERATION_SCHEDULED` event. Uniquely identifies this operation. + ScheduledEventId int64 + // Failure details. A NexusOperationFailureInfo wrapping an ApplicationFailureInfo. + Failure *v13.Failure + // The request ID allocated at schedule time. + RequestId string +} + +func (b0 NexusOperationFailedEventAttributes_builder) Build() *NexusOperationFailedEventAttributes { + m0 := &NexusOperationFailedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ScheduledEventId = b.ScheduledEventId + x.xxx_hidden_Failure = b.Failure + x.xxx_hidden_RequestId = b.RequestId + return m0 +} + +// Nexus operation timed out. +type NexusOperationTimedOutEventAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ScheduledEventId int64 `protobuf:"varint,1,opt,name=scheduled_event_id,json=scheduledEventId,proto3"` + xxx_hidden_Failure *v13.Failure `protobuf:"bytes,2,opt,name=failure,proto3"` + xxx_hidden_RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *NexusOperationTimedOutEventAttributes) Reset() { + *x = NexusOperationTimedOutEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[54] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *NexusOperationTimedOutEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NexusOperationTimedOutEventAttributes) ProtoMessage() {} + +func (x *NexusOperationTimedOutEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[54] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *NexusOperationTimedOutEventAttributes) GetScheduledEventId() int64 { + if x != nil { + return x.xxx_hidden_ScheduledEventId + } + return 0 +} + +func (x *NexusOperationTimedOutEventAttributes) GetFailure() *v13.Failure { + if x != nil { + return x.xxx_hidden_Failure + } + return nil +} + +func (x *NexusOperationTimedOutEventAttributes) GetRequestId() string { + if x != nil { + return x.xxx_hidden_RequestId + } + return "" +} + +func (x *NexusOperationTimedOutEventAttributes) SetScheduledEventId(v int64) { + x.xxx_hidden_ScheduledEventId = v +} + +func (x *NexusOperationTimedOutEventAttributes) SetFailure(v *v13.Failure) { + x.xxx_hidden_Failure = v +} + +func (x *NexusOperationTimedOutEventAttributes) SetRequestId(v string) { + x.xxx_hidden_RequestId = v +} + +func (x *NexusOperationTimedOutEventAttributes) HasFailure() bool { + if x == nil { + return false + } + return x.xxx_hidden_Failure != nil +} + +func (x *NexusOperationTimedOutEventAttributes) ClearFailure() { + x.xxx_hidden_Failure = nil +} + +type NexusOperationTimedOutEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the `NEXUS_OPERATION_SCHEDULED` event. Uniquely identifies this operation. + ScheduledEventId int64 + // Failure details. A NexusOperationFailureInfo wrapping a CanceledFailureInfo. + Failure *v13.Failure + // The request ID allocated at schedule time. + RequestId string +} + +func (b0 NexusOperationTimedOutEventAttributes_builder) Build() *NexusOperationTimedOutEventAttributes { + m0 := &NexusOperationTimedOutEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ScheduledEventId = b.ScheduledEventId + x.xxx_hidden_Failure = b.Failure + x.xxx_hidden_RequestId = b.RequestId + return m0 +} + +// Nexus operation completed as canceled. May or may not have been due to a cancellation request by the workflow. +type NexusOperationCanceledEventAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ScheduledEventId int64 `protobuf:"varint,1,opt,name=scheduled_event_id,json=scheduledEventId,proto3"` + xxx_hidden_Failure *v13.Failure `protobuf:"bytes,2,opt,name=failure,proto3"` + xxx_hidden_RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *NexusOperationCanceledEventAttributes) Reset() { + *x = NexusOperationCanceledEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[55] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *NexusOperationCanceledEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NexusOperationCanceledEventAttributes) ProtoMessage() {} + +func (x *NexusOperationCanceledEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[55] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *NexusOperationCanceledEventAttributes) GetScheduledEventId() int64 { + if x != nil { + return x.xxx_hidden_ScheduledEventId + } + return 0 +} + +func (x *NexusOperationCanceledEventAttributes) GetFailure() *v13.Failure { + if x != nil { + return x.xxx_hidden_Failure + } + return nil +} + +func (x *NexusOperationCanceledEventAttributes) GetRequestId() string { + if x != nil { + return x.xxx_hidden_RequestId + } + return "" +} + +func (x *NexusOperationCanceledEventAttributes) SetScheduledEventId(v int64) { + x.xxx_hidden_ScheduledEventId = v +} + +func (x *NexusOperationCanceledEventAttributes) SetFailure(v *v13.Failure) { + x.xxx_hidden_Failure = v +} + +func (x *NexusOperationCanceledEventAttributes) SetRequestId(v string) { + x.xxx_hidden_RequestId = v +} + +func (x *NexusOperationCanceledEventAttributes) HasFailure() bool { + if x == nil { + return false + } + return x.xxx_hidden_Failure != nil +} + +func (x *NexusOperationCanceledEventAttributes) ClearFailure() { + x.xxx_hidden_Failure = nil +} + +type NexusOperationCanceledEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the `NEXUS_OPERATION_SCHEDULED` event. Uniquely identifies this operation. + ScheduledEventId int64 + // Cancellation details. + Failure *v13.Failure + // The request ID allocated at schedule time. + RequestId string +} + +func (b0 NexusOperationCanceledEventAttributes_builder) Build() *NexusOperationCanceledEventAttributes { + m0 := &NexusOperationCanceledEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ScheduledEventId = b.ScheduledEventId + x.xxx_hidden_Failure = b.Failure + x.xxx_hidden_RequestId = b.RequestId + return m0 +} + +type NexusOperationCancelRequestedEventAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ScheduledEventId int64 `protobuf:"varint,1,opt,name=scheduled_event_id,json=scheduledEventId,proto3"` + xxx_hidden_WorkflowTaskCompletedEventId int64 `protobuf:"varint,2,opt,name=workflow_task_completed_event_id,json=workflowTaskCompletedEventId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *NexusOperationCancelRequestedEventAttributes) Reset() { + *x = NexusOperationCancelRequestedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[56] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *NexusOperationCancelRequestedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NexusOperationCancelRequestedEventAttributes) ProtoMessage() {} + +func (x *NexusOperationCancelRequestedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[56] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *NexusOperationCancelRequestedEventAttributes) GetScheduledEventId() int64 { + if x != nil { + return x.xxx_hidden_ScheduledEventId + } + return 0 +} + +func (x *NexusOperationCancelRequestedEventAttributes) GetWorkflowTaskCompletedEventId() int64 { + if x != nil { + return x.xxx_hidden_WorkflowTaskCompletedEventId + } + return 0 +} + +func (x *NexusOperationCancelRequestedEventAttributes) SetScheduledEventId(v int64) { + x.xxx_hidden_ScheduledEventId = v +} + +func (x *NexusOperationCancelRequestedEventAttributes) SetWorkflowTaskCompletedEventId(v int64) { + x.xxx_hidden_WorkflowTaskCompletedEventId = v +} + +type NexusOperationCancelRequestedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The id of the `NEXUS_OPERATION_SCHEDULED` event this cancel request corresponds to. + ScheduledEventId int64 + // The `WORKFLOW_TASK_COMPLETED` event that the corresponding RequestCancelNexusOperation command was reported + // with. + WorkflowTaskCompletedEventId int64 +} + +func (b0 NexusOperationCancelRequestedEventAttributes_builder) Build() *NexusOperationCancelRequestedEventAttributes { + m0 := &NexusOperationCancelRequestedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ScheduledEventId = b.ScheduledEventId + x.xxx_hidden_WorkflowTaskCompletedEventId = b.WorkflowTaskCompletedEventId + return m0 +} + +type NexusOperationCancelRequestCompletedEventAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RequestedEventId int64 `protobuf:"varint,1,opt,name=requested_event_id,json=requestedEventId,proto3"` + xxx_hidden_WorkflowTaskCompletedEventId int64 `protobuf:"varint,2,opt,name=workflow_task_completed_event_id,json=workflowTaskCompletedEventId,proto3"` + xxx_hidden_ScheduledEventId int64 `protobuf:"varint,3,opt,name=scheduled_event_id,json=scheduledEventId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *NexusOperationCancelRequestCompletedEventAttributes) Reset() { + *x = NexusOperationCancelRequestCompletedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[57] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *NexusOperationCancelRequestCompletedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NexusOperationCancelRequestCompletedEventAttributes) ProtoMessage() {} + +func (x *NexusOperationCancelRequestCompletedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[57] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *NexusOperationCancelRequestCompletedEventAttributes) GetRequestedEventId() int64 { + if x != nil { + return x.xxx_hidden_RequestedEventId + } + return 0 +} + +func (x *NexusOperationCancelRequestCompletedEventAttributes) GetWorkflowTaskCompletedEventId() int64 { + if x != nil { + return x.xxx_hidden_WorkflowTaskCompletedEventId + } + return 0 +} + +func (x *NexusOperationCancelRequestCompletedEventAttributes) GetScheduledEventId() int64 { + if x != nil { + return x.xxx_hidden_ScheduledEventId + } + return 0 +} + +func (x *NexusOperationCancelRequestCompletedEventAttributes) SetRequestedEventId(v int64) { + x.xxx_hidden_RequestedEventId = v +} + +func (x *NexusOperationCancelRequestCompletedEventAttributes) SetWorkflowTaskCompletedEventId(v int64) { + x.xxx_hidden_WorkflowTaskCompletedEventId = v +} + +func (x *NexusOperationCancelRequestCompletedEventAttributes) SetScheduledEventId(v int64) { + x.xxx_hidden_ScheduledEventId = v +} + +type NexusOperationCancelRequestCompletedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the `NEXUS_OPERATION_CANCEL_REQUESTED` event. + RequestedEventId int64 + // The `WORKFLOW_TASK_COMPLETED` event that the corresponding RequestCancelNexusOperation command was reported + // with. + WorkflowTaskCompletedEventId int64 + // The id of the `NEXUS_OPERATION_SCHEDULED` event this cancel request corresponds to. + ScheduledEventId int64 +} + +func (b0 NexusOperationCancelRequestCompletedEventAttributes_builder) Build() *NexusOperationCancelRequestCompletedEventAttributes { + m0 := &NexusOperationCancelRequestCompletedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RequestedEventId = b.RequestedEventId + x.xxx_hidden_WorkflowTaskCompletedEventId = b.WorkflowTaskCompletedEventId + x.xxx_hidden_ScheduledEventId = b.ScheduledEventId + return m0 +} + +type NexusOperationCancelRequestFailedEventAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RequestedEventId int64 `protobuf:"varint,1,opt,name=requested_event_id,json=requestedEventId,proto3"` + xxx_hidden_WorkflowTaskCompletedEventId int64 `protobuf:"varint,2,opt,name=workflow_task_completed_event_id,json=workflowTaskCompletedEventId,proto3"` + xxx_hidden_Failure *v13.Failure `protobuf:"bytes,3,opt,name=failure,proto3"` + xxx_hidden_ScheduledEventId int64 `protobuf:"varint,4,opt,name=scheduled_event_id,json=scheduledEventId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *NexusOperationCancelRequestFailedEventAttributes) Reset() { + *x = NexusOperationCancelRequestFailedEventAttributes{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[58] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *NexusOperationCancelRequestFailedEventAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NexusOperationCancelRequestFailedEventAttributes) ProtoMessage() {} + +func (x *NexusOperationCancelRequestFailedEventAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[58] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *NexusOperationCancelRequestFailedEventAttributes) GetRequestedEventId() int64 { + if x != nil { + return x.xxx_hidden_RequestedEventId + } + return 0 +} + +func (x *NexusOperationCancelRequestFailedEventAttributes) GetWorkflowTaskCompletedEventId() int64 { + if x != nil { + return x.xxx_hidden_WorkflowTaskCompletedEventId + } + return 0 +} + +func (x *NexusOperationCancelRequestFailedEventAttributes) GetFailure() *v13.Failure { + if x != nil { + return x.xxx_hidden_Failure + } + return nil +} + +func (x *NexusOperationCancelRequestFailedEventAttributes) GetScheduledEventId() int64 { + if x != nil { + return x.xxx_hidden_ScheduledEventId + } + return 0 +} + +func (x *NexusOperationCancelRequestFailedEventAttributes) SetRequestedEventId(v int64) { + x.xxx_hidden_RequestedEventId = v +} + +func (x *NexusOperationCancelRequestFailedEventAttributes) SetWorkflowTaskCompletedEventId(v int64) { + x.xxx_hidden_WorkflowTaskCompletedEventId = v +} + +func (x *NexusOperationCancelRequestFailedEventAttributes) SetFailure(v *v13.Failure) { + x.xxx_hidden_Failure = v +} + +func (x *NexusOperationCancelRequestFailedEventAttributes) SetScheduledEventId(v int64) { + x.xxx_hidden_ScheduledEventId = v +} + +func (x *NexusOperationCancelRequestFailedEventAttributes) HasFailure() bool { + if x == nil { + return false + } + return x.xxx_hidden_Failure != nil +} + +func (x *NexusOperationCancelRequestFailedEventAttributes) ClearFailure() { + x.xxx_hidden_Failure = nil +} + +type NexusOperationCancelRequestFailedEventAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the `NEXUS_OPERATION_CANCEL_REQUESTED` event. + RequestedEventId int64 + // The `WORKFLOW_TASK_COMPLETED` event that the corresponding RequestCancelNexusOperation command was reported + // with. + WorkflowTaskCompletedEventId int64 + // Failure details. A NexusOperationFailureInfo wrapping a CanceledFailureInfo. + Failure *v13.Failure + // The id of the `NEXUS_OPERATION_SCHEDULED` event this cancel request corresponds to. + ScheduledEventId int64 +} + +func (b0 NexusOperationCancelRequestFailedEventAttributes_builder) Build() *NexusOperationCancelRequestFailedEventAttributes { + m0 := &NexusOperationCancelRequestFailedEventAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RequestedEventId = b.RequestedEventId + x.xxx_hidden_WorkflowTaskCompletedEventId = b.WorkflowTaskCompletedEventId + x.xxx_hidden_Failure = b.Failure + x.xxx_hidden_ScheduledEventId = b.ScheduledEventId + return m0 +} + +// History events are the method by which Temporal SDKs advance (or recreate) workflow state. +// See the `EventType` enum for more info about what each event is for. +type HistoryEvent struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_EventId int64 `protobuf:"varint,1,opt,name=event_id,json=eventId,proto3"` + xxx_hidden_EventTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=event_time,json=eventTime,proto3"` + xxx_hidden_EventType v12.EventType `protobuf:"varint,3,opt,name=event_type,json=eventType,proto3,enum=temporal.api.enums.v1.EventType"` + xxx_hidden_Version int64 `protobuf:"varint,4,opt,name=version,proto3"` + xxx_hidden_TaskId int64 `protobuf:"varint,5,opt,name=task_id,json=taskId,proto3"` + xxx_hidden_WorkerMayIgnore bool `protobuf:"varint,300,opt,name=worker_may_ignore,json=workerMayIgnore,proto3"` + xxx_hidden_UserMetadata *v16.UserMetadata `protobuf:"bytes,301,opt,name=user_metadata,json=userMetadata,proto3"` + xxx_hidden_Links *[]*v1.Link `protobuf:"bytes,302,rep,name=links,proto3"` + xxx_hidden_Attributes isHistoryEvent_Attributes `protobuf_oneof:"attributes"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *HistoryEvent) Reset() { + *x = HistoryEvent{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[59] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *HistoryEvent) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*HistoryEvent) ProtoMessage() {} + +func (x *HistoryEvent) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[59] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *HistoryEvent) GetEventId() int64 { + if x != nil { + return x.xxx_hidden_EventId + } + return 0 +} + +func (x *HistoryEvent) GetEventTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_EventTime + } + return nil +} + +func (x *HistoryEvent) GetEventType() v12.EventType { + if x != nil { + return x.xxx_hidden_EventType + } + return v12.EventType(0) +} + +func (x *HistoryEvent) GetVersion() int64 { + if x != nil { + return x.xxx_hidden_Version + } + return 0 +} + +func (x *HistoryEvent) GetTaskId() int64 { + if x != nil { + return x.xxx_hidden_TaskId + } + return 0 +} + +func (x *HistoryEvent) GetWorkerMayIgnore() bool { + if x != nil { + return x.xxx_hidden_WorkerMayIgnore + } + return false +} + +func (x *HistoryEvent) GetUserMetadata() *v16.UserMetadata { + if x != nil { + return x.xxx_hidden_UserMetadata + } + return nil +} + +func (x *HistoryEvent) GetLinks() []*v1.Link { + if x != nil { + if x.xxx_hidden_Links != nil { + return *x.xxx_hidden_Links + } + } + return nil +} + +func (x *HistoryEvent) GetWorkflowExecutionStartedEventAttributes() *WorkflowExecutionStartedEventAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowExecutionStartedEventAttributes); ok { + return x.WorkflowExecutionStartedEventAttributes + } + } + return nil +} + +func (x *HistoryEvent) GetWorkflowExecutionCompletedEventAttributes() *WorkflowExecutionCompletedEventAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowExecutionCompletedEventAttributes); ok { + return x.WorkflowExecutionCompletedEventAttributes + } + } + return nil +} + +func (x *HistoryEvent) GetWorkflowExecutionFailedEventAttributes() *WorkflowExecutionFailedEventAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowExecutionFailedEventAttributes); ok { + return x.WorkflowExecutionFailedEventAttributes + } + } + return nil +} + +func (x *HistoryEvent) GetWorkflowExecutionTimedOutEventAttributes() *WorkflowExecutionTimedOutEventAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowExecutionTimedOutEventAttributes); ok { + return x.WorkflowExecutionTimedOutEventAttributes + } + } + return nil +} + +func (x *HistoryEvent) GetWorkflowTaskScheduledEventAttributes() *WorkflowTaskScheduledEventAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowTaskScheduledEventAttributes); ok { + return x.WorkflowTaskScheduledEventAttributes + } + } + return nil +} + +func (x *HistoryEvent) GetWorkflowTaskStartedEventAttributes() *WorkflowTaskStartedEventAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowTaskStartedEventAttributes); ok { + return x.WorkflowTaskStartedEventAttributes + } + } + return nil +} + +func (x *HistoryEvent) GetWorkflowTaskCompletedEventAttributes() *WorkflowTaskCompletedEventAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowTaskCompletedEventAttributes); ok { + return x.WorkflowTaskCompletedEventAttributes + } + } + return nil +} + +func (x *HistoryEvent) GetWorkflowTaskTimedOutEventAttributes() *WorkflowTaskTimedOutEventAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowTaskTimedOutEventAttributes); ok { + return x.WorkflowTaskTimedOutEventAttributes + } + } + return nil +} + +func (x *HistoryEvent) GetWorkflowTaskFailedEventAttributes() *WorkflowTaskFailedEventAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowTaskFailedEventAttributes); ok { + return x.WorkflowTaskFailedEventAttributes + } + } + return nil +} + +func (x *HistoryEvent) GetActivityTaskScheduledEventAttributes() *ActivityTaskScheduledEventAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*historyEvent_ActivityTaskScheduledEventAttributes); ok { + return x.ActivityTaskScheduledEventAttributes + } + } + return nil +} + +func (x *HistoryEvent) GetActivityTaskStartedEventAttributes() *ActivityTaskStartedEventAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*historyEvent_ActivityTaskStartedEventAttributes); ok { + return x.ActivityTaskStartedEventAttributes + } + } + return nil +} + +func (x *HistoryEvent) GetActivityTaskCompletedEventAttributes() *ActivityTaskCompletedEventAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*historyEvent_ActivityTaskCompletedEventAttributes); ok { + return x.ActivityTaskCompletedEventAttributes + } + } + return nil +} + +func (x *HistoryEvent) GetActivityTaskFailedEventAttributes() *ActivityTaskFailedEventAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*historyEvent_ActivityTaskFailedEventAttributes); ok { + return x.ActivityTaskFailedEventAttributes + } + } + return nil +} + +func (x *HistoryEvent) GetActivityTaskTimedOutEventAttributes() *ActivityTaskTimedOutEventAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*historyEvent_ActivityTaskTimedOutEventAttributes); ok { + return x.ActivityTaskTimedOutEventAttributes + } + } + return nil +} + +func (x *HistoryEvent) GetTimerStartedEventAttributes() *TimerStartedEventAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*historyEvent_TimerStartedEventAttributes); ok { + return x.TimerStartedEventAttributes + } + } + return nil +} + +func (x *HistoryEvent) GetTimerFiredEventAttributes() *TimerFiredEventAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*historyEvent_TimerFiredEventAttributes); ok { + return x.TimerFiredEventAttributes + } + } + return nil +} + +func (x *HistoryEvent) GetActivityTaskCancelRequestedEventAttributes() *ActivityTaskCancelRequestedEventAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*historyEvent_ActivityTaskCancelRequestedEventAttributes); ok { + return x.ActivityTaskCancelRequestedEventAttributes + } + } + return nil +} + +func (x *HistoryEvent) GetActivityTaskCanceledEventAttributes() *ActivityTaskCanceledEventAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*historyEvent_ActivityTaskCanceledEventAttributes); ok { + return x.ActivityTaskCanceledEventAttributes + } + } + return nil +} + +func (x *HistoryEvent) GetTimerCanceledEventAttributes() *TimerCanceledEventAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*historyEvent_TimerCanceledEventAttributes); ok { + return x.TimerCanceledEventAttributes + } + } + return nil +} + +func (x *HistoryEvent) GetMarkerRecordedEventAttributes() *MarkerRecordedEventAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*historyEvent_MarkerRecordedEventAttributes); ok { + return x.MarkerRecordedEventAttributes + } + } + return nil +} + +func (x *HistoryEvent) GetWorkflowExecutionSignaledEventAttributes() *WorkflowExecutionSignaledEventAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowExecutionSignaledEventAttributes); ok { + return x.WorkflowExecutionSignaledEventAttributes + } + } + return nil +} + +func (x *HistoryEvent) GetWorkflowExecutionTerminatedEventAttributes() *WorkflowExecutionTerminatedEventAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowExecutionTerminatedEventAttributes); ok { + return x.WorkflowExecutionTerminatedEventAttributes + } + } + return nil +} + +func (x *HistoryEvent) GetWorkflowExecutionCancelRequestedEventAttributes() *WorkflowExecutionCancelRequestedEventAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowExecutionCancelRequestedEventAttributes); ok { + return x.WorkflowExecutionCancelRequestedEventAttributes + } + } + return nil +} + +func (x *HistoryEvent) GetWorkflowExecutionCanceledEventAttributes() *WorkflowExecutionCanceledEventAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowExecutionCanceledEventAttributes); ok { + return x.WorkflowExecutionCanceledEventAttributes + } + } + return nil +} + +func (x *HistoryEvent) GetRequestCancelExternalWorkflowExecutionInitiatedEventAttributes() *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*historyEvent_RequestCancelExternalWorkflowExecutionInitiatedEventAttributes); ok { + return x.RequestCancelExternalWorkflowExecutionInitiatedEventAttributes + } + } + return nil +} + +func (x *HistoryEvent) GetRequestCancelExternalWorkflowExecutionFailedEventAttributes() *RequestCancelExternalWorkflowExecutionFailedEventAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*historyEvent_RequestCancelExternalWorkflowExecutionFailedEventAttributes); ok { + return x.RequestCancelExternalWorkflowExecutionFailedEventAttributes + } + } + return nil +} + +func (x *HistoryEvent) GetExternalWorkflowExecutionCancelRequestedEventAttributes() *ExternalWorkflowExecutionCancelRequestedEventAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*historyEvent_ExternalWorkflowExecutionCancelRequestedEventAttributes); ok { + return x.ExternalWorkflowExecutionCancelRequestedEventAttributes + } + } + return nil +} + +func (x *HistoryEvent) GetWorkflowExecutionContinuedAsNewEventAttributes() *WorkflowExecutionContinuedAsNewEventAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowExecutionContinuedAsNewEventAttributes); ok { + return x.WorkflowExecutionContinuedAsNewEventAttributes + } + } + return nil +} + +func (x *HistoryEvent) GetStartChildWorkflowExecutionInitiatedEventAttributes() *StartChildWorkflowExecutionInitiatedEventAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*historyEvent_StartChildWorkflowExecutionInitiatedEventAttributes); ok { + return x.StartChildWorkflowExecutionInitiatedEventAttributes + } + } + return nil +} + +func (x *HistoryEvent) GetStartChildWorkflowExecutionFailedEventAttributes() *StartChildWorkflowExecutionFailedEventAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*historyEvent_StartChildWorkflowExecutionFailedEventAttributes); ok { + return x.StartChildWorkflowExecutionFailedEventAttributes + } + } + return nil +} + +func (x *HistoryEvent) GetChildWorkflowExecutionStartedEventAttributes() *ChildWorkflowExecutionStartedEventAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*historyEvent_ChildWorkflowExecutionStartedEventAttributes); ok { + return x.ChildWorkflowExecutionStartedEventAttributes + } + } + return nil +} + +func (x *HistoryEvent) GetChildWorkflowExecutionCompletedEventAttributes() *ChildWorkflowExecutionCompletedEventAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*historyEvent_ChildWorkflowExecutionCompletedEventAttributes); ok { + return x.ChildWorkflowExecutionCompletedEventAttributes + } + } + return nil +} + +func (x *HistoryEvent) GetChildWorkflowExecutionFailedEventAttributes() *ChildWorkflowExecutionFailedEventAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*historyEvent_ChildWorkflowExecutionFailedEventAttributes); ok { + return x.ChildWorkflowExecutionFailedEventAttributes + } + } + return nil +} + +func (x *HistoryEvent) GetChildWorkflowExecutionCanceledEventAttributes() *ChildWorkflowExecutionCanceledEventAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*historyEvent_ChildWorkflowExecutionCanceledEventAttributes); ok { + return x.ChildWorkflowExecutionCanceledEventAttributes + } + } + return nil +} + +func (x *HistoryEvent) GetChildWorkflowExecutionTimedOutEventAttributes() *ChildWorkflowExecutionTimedOutEventAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*historyEvent_ChildWorkflowExecutionTimedOutEventAttributes); ok { + return x.ChildWorkflowExecutionTimedOutEventAttributes + } + } + return nil +} + +func (x *HistoryEvent) GetChildWorkflowExecutionTerminatedEventAttributes() *ChildWorkflowExecutionTerminatedEventAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*historyEvent_ChildWorkflowExecutionTerminatedEventAttributes); ok { + return x.ChildWorkflowExecutionTerminatedEventAttributes + } + } + return nil +} + +func (x *HistoryEvent) GetSignalExternalWorkflowExecutionInitiatedEventAttributes() *SignalExternalWorkflowExecutionInitiatedEventAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*historyEvent_SignalExternalWorkflowExecutionInitiatedEventAttributes); ok { + return x.SignalExternalWorkflowExecutionInitiatedEventAttributes + } + } + return nil +} + +func (x *HistoryEvent) GetSignalExternalWorkflowExecutionFailedEventAttributes() *SignalExternalWorkflowExecutionFailedEventAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*historyEvent_SignalExternalWorkflowExecutionFailedEventAttributes); ok { + return x.SignalExternalWorkflowExecutionFailedEventAttributes + } + } + return nil +} + +func (x *HistoryEvent) GetExternalWorkflowExecutionSignaledEventAttributes() *ExternalWorkflowExecutionSignaledEventAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*historyEvent_ExternalWorkflowExecutionSignaledEventAttributes); ok { + return x.ExternalWorkflowExecutionSignaledEventAttributes + } + } + return nil +} + +func (x *HistoryEvent) GetUpsertWorkflowSearchAttributesEventAttributes() *UpsertWorkflowSearchAttributesEventAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*historyEvent_UpsertWorkflowSearchAttributesEventAttributes); ok { + return x.UpsertWorkflowSearchAttributesEventAttributes + } + } + return nil +} + +func (x *HistoryEvent) GetWorkflowExecutionUpdateAcceptedEventAttributes() *WorkflowExecutionUpdateAcceptedEventAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowExecutionUpdateAcceptedEventAttributes); ok { + return x.WorkflowExecutionUpdateAcceptedEventAttributes + } + } + return nil +} + +func (x *HistoryEvent) GetWorkflowExecutionUpdateRejectedEventAttributes() *WorkflowExecutionUpdateRejectedEventAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowExecutionUpdateRejectedEventAttributes); ok { + return x.WorkflowExecutionUpdateRejectedEventAttributes + } + } + return nil +} + +func (x *HistoryEvent) GetWorkflowExecutionUpdateCompletedEventAttributes() *WorkflowExecutionUpdateCompletedEventAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowExecutionUpdateCompletedEventAttributes); ok { + return x.WorkflowExecutionUpdateCompletedEventAttributes + } + } + return nil +} + +func (x *HistoryEvent) GetWorkflowPropertiesModifiedExternallyEventAttributes() *WorkflowPropertiesModifiedExternallyEventAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowPropertiesModifiedExternallyEventAttributes); ok { + return x.WorkflowPropertiesModifiedExternallyEventAttributes + } + } + return nil +} + +func (x *HistoryEvent) GetActivityPropertiesModifiedExternallyEventAttributes() *ActivityPropertiesModifiedExternallyEventAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*historyEvent_ActivityPropertiesModifiedExternallyEventAttributes); ok { + return x.ActivityPropertiesModifiedExternallyEventAttributes + } + } + return nil +} + +func (x *HistoryEvent) GetWorkflowPropertiesModifiedEventAttributes() *WorkflowPropertiesModifiedEventAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowPropertiesModifiedEventAttributes); ok { + return x.WorkflowPropertiesModifiedEventAttributes + } + } + return nil +} + +func (x *HistoryEvent) GetWorkflowExecutionUpdateAdmittedEventAttributes() *WorkflowExecutionUpdateAdmittedEventAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowExecutionUpdateAdmittedEventAttributes); ok { + return x.WorkflowExecutionUpdateAdmittedEventAttributes + } + } + return nil +} + +func (x *HistoryEvent) GetNexusOperationScheduledEventAttributes() *NexusOperationScheduledEventAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*historyEvent_NexusOperationScheduledEventAttributes); ok { + return x.NexusOperationScheduledEventAttributes + } + } + return nil +} + +func (x *HistoryEvent) GetNexusOperationStartedEventAttributes() *NexusOperationStartedEventAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*historyEvent_NexusOperationStartedEventAttributes); ok { + return x.NexusOperationStartedEventAttributes + } + } + return nil +} + +func (x *HistoryEvent) GetNexusOperationCompletedEventAttributes() *NexusOperationCompletedEventAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*historyEvent_NexusOperationCompletedEventAttributes); ok { + return x.NexusOperationCompletedEventAttributes + } + } + return nil +} + +func (x *HistoryEvent) GetNexusOperationFailedEventAttributes() *NexusOperationFailedEventAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*historyEvent_NexusOperationFailedEventAttributes); ok { + return x.NexusOperationFailedEventAttributes + } + } + return nil +} + +func (x *HistoryEvent) GetNexusOperationCanceledEventAttributes() *NexusOperationCanceledEventAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*historyEvent_NexusOperationCanceledEventAttributes); ok { + return x.NexusOperationCanceledEventAttributes + } + } + return nil +} + +func (x *HistoryEvent) GetNexusOperationTimedOutEventAttributes() *NexusOperationTimedOutEventAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*historyEvent_NexusOperationTimedOutEventAttributes); ok { + return x.NexusOperationTimedOutEventAttributes + } + } + return nil +} + +func (x *HistoryEvent) GetNexusOperationCancelRequestedEventAttributes() *NexusOperationCancelRequestedEventAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*historyEvent_NexusOperationCancelRequestedEventAttributes); ok { + return x.NexusOperationCancelRequestedEventAttributes + } + } + return nil +} + +func (x *HistoryEvent) GetWorkflowExecutionOptionsUpdatedEventAttributes() *WorkflowExecutionOptionsUpdatedEventAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowExecutionOptionsUpdatedEventAttributes); ok { + return x.WorkflowExecutionOptionsUpdatedEventAttributes + } + } + return nil +} + +func (x *HistoryEvent) GetNexusOperationCancelRequestCompletedEventAttributes() *NexusOperationCancelRequestCompletedEventAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*historyEvent_NexusOperationCancelRequestCompletedEventAttributes); ok { + return x.NexusOperationCancelRequestCompletedEventAttributes + } + } + return nil +} + +func (x *HistoryEvent) GetNexusOperationCancelRequestFailedEventAttributes() *NexusOperationCancelRequestFailedEventAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*historyEvent_NexusOperationCancelRequestFailedEventAttributes); ok { + return x.NexusOperationCancelRequestFailedEventAttributes + } + } + return nil +} + +func (x *HistoryEvent) GetWorkflowExecutionPausedEventAttributes() *WorkflowExecutionPausedEventAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowExecutionPausedEventAttributes); ok { + return x.WorkflowExecutionPausedEventAttributes + } + } + return nil +} + +func (x *HistoryEvent) GetWorkflowExecutionUnpausedEventAttributes() *WorkflowExecutionUnpausedEventAttributes { + if x != nil { + if x, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowExecutionUnpausedEventAttributes); ok { + return x.WorkflowExecutionUnpausedEventAttributes + } + } + return nil +} + +func (x *HistoryEvent) SetEventId(v int64) { + x.xxx_hidden_EventId = v +} + +func (x *HistoryEvent) SetEventTime(v *timestamppb.Timestamp) { + x.xxx_hidden_EventTime = v +} + +func (x *HistoryEvent) SetEventType(v v12.EventType) { + x.xxx_hidden_EventType = v +} + +func (x *HistoryEvent) SetVersion(v int64) { + x.xxx_hidden_Version = v +} + +func (x *HistoryEvent) SetTaskId(v int64) { + x.xxx_hidden_TaskId = v +} + +func (x *HistoryEvent) SetWorkerMayIgnore(v bool) { + x.xxx_hidden_WorkerMayIgnore = v +} + +func (x *HistoryEvent) SetUserMetadata(v *v16.UserMetadata) { + x.xxx_hidden_UserMetadata = v +} + +func (x *HistoryEvent) SetLinks(v []*v1.Link) { + x.xxx_hidden_Links = &v +} + +func (x *HistoryEvent) SetWorkflowExecutionStartedEventAttributes(v *WorkflowExecutionStartedEventAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &historyEvent_WorkflowExecutionStartedEventAttributes{v} +} + +func (x *HistoryEvent) SetWorkflowExecutionCompletedEventAttributes(v *WorkflowExecutionCompletedEventAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &historyEvent_WorkflowExecutionCompletedEventAttributes{v} +} + +func (x *HistoryEvent) SetWorkflowExecutionFailedEventAttributes(v *WorkflowExecutionFailedEventAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &historyEvent_WorkflowExecutionFailedEventAttributes{v} +} + +func (x *HistoryEvent) SetWorkflowExecutionTimedOutEventAttributes(v *WorkflowExecutionTimedOutEventAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &historyEvent_WorkflowExecutionTimedOutEventAttributes{v} +} + +func (x *HistoryEvent) SetWorkflowTaskScheduledEventAttributes(v *WorkflowTaskScheduledEventAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &historyEvent_WorkflowTaskScheduledEventAttributes{v} +} + +func (x *HistoryEvent) SetWorkflowTaskStartedEventAttributes(v *WorkflowTaskStartedEventAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &historyEvent_WorkflowTaskStartedEventAttributes{v} +} + +func (x *HistoryEvent) SetWorkflowTaskCompletedEventAttributes(v *WorkflowTaskCompletedEventAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &historyEvent_WorkflowTaskCompletedEventAttributes{v} +} + +func (x *HistoryEvent) SetWorkflowTaskTimedOutEventAttributes(v *WorkflowTaskTimedOutEventAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &historyEvent_WorkflowTaskTimedOutEventAttributes{v} +} + +func (x *HistoryEvent) SetWorkflowTaskFailedEventAttributes(v *WorkflowTaskFailedEventAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &historyEvent_WorkflowTaskFailedEventAttributes{v} +} + +func (x *HistoryEvent) SetActivityTaskScheduledEventAttributes(v *ActivityTaskScheduledEventAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &historyEvent_ActivityTaskScheduledEventAttributes{v} +} + +func (x *HistoryEvent) SetActivityTaskStartedEventAttributes(v *ActivityTaskStartedEventAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &historyEvent_ActivityTaskStartedEventAttributes{v} +} + +func (x *HistoryEvent) SetActivityTaskCompletedEventAttributes(v *ActivityTaskCompletedEventAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &historyEvent_ActivityTaskCompletedEventAttributes{v} +} + +func (x *HistoryEvent) SetActivityTaskFailedEventAttributes(v *ActivityTaskFailedEventAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &historyEvent_ActivityTaskFailedEventAttributes{v} +} + +func (x *HistoryEvent) SetActivityTaskTimedOutEventAttributes(v *ActivityTaskTimedOutEventAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &historyEvent_ActivityTaskTimedOutEventAttributes{v} +} + +func (x *HistoryEvent) SetTimerStartedEventAttributes(v *TimerStartedEventAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &historyEvent_TimerStartedEventAttributes{v} +} + +func (x *HistoryEvent) SetTimerFiredEventAttributes(v *TimerFiredEventAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &historyEvent_TimerFiredEventAttributes{v} +} + +func (x *HistoryEvent) SetActivityTaskCancelRequestedEventAttributes(v *ActivityTaskCancelRequestedEventAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &historyEvent_ActivityTaskCancelRequestedEventAttributes{v} +} + +func (x *HistoryEvent) SetActivityTaskCanceledEventAttributes(v *ActivityTaskCanceledEventAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &historyEvent_ActivityTaskCanceledEventAttributes{v} +} + +func (x *HistoryEvent) SetTimerCanceledEventAttributes(v *TimerCanceledEventAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &historyEvent_TimerCanceledEventAttributes{v} +} + +func (x *HistoryEvent) SetMarkerRecordedEventAttributes(v *MarkerRecordedEventAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &historyEvent_MarkerRecordedEventAttributes{v} +} + +func (x *HistoryEvent) SetWorkflowExecutionSignaledEventAttributes(v *WorkflowExecutionSignaledEventAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &historyEvent_WorkflowExecutionSignaledEventAttributes{v} +} + +func (x *HistoryEvent) SetWorkflowExecutionTerminatedEventAttributes(v *WorkflowExecutionTerminatedEventAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &historyEvent_WorkflowExecutionTerminatedEventAttributes{v} +} + +func (x *HistoryEvent) SetWorkflowExecutionCancelRequestedEventAttributes(v *WorkflowExecutionCancelRequestedEventAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &historyEvent_WorkflowExecutionCancelRequestedEventAttributes{v} +} + +func (x *HistoryEvent) SetWorkflowExecutionCanceledEventAttributes(v *WorkflowExecutionCanceledEventAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &historyEvent_WorkflowExecutionCanceledEventAttributes{v} +} + +func (x *HistoryEvent) SetRequestCancelExternalWorkflowExecutionInitiatedEventAttributes(v *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &historyEvent_RequestCancelExternalWorkflowExecutionInitiatedEventAttributes{v} +} + +func (x *HistoryEvent) SetRequestCancelExternalWorkflowExecutionFailedEventAttributes(v *RequestCancelExternalWorkflowExecutionFailedEventAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &historyEvent_RequestCancelExternalWorkflowExecutionFailedEventAttributes{v} +} + +func (x *HistoryEvent) SetExternalWorkflowExecutionCancelRequestedEventAttributes(v *ExternalWorkflowExecutionCancelRequestedEventAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &historyEvent_ExternalWorkflowExecutionCancelRequestedEventAttributes{v} +} + +func (x *HistoryEvent) SetWorkflowExecutionContinuedAsNewEventAttributes(v *WorkflowExecutionContinuedAsNewEventAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &historyEvent_WorkflowExecutionContinuedAsNewEventAttributes{v} +} + +func (x *HistoryEvent) SetStartChildWorkflowExecutionInitiatedEventAttributes(v *StartChildWorkflowExecutionInitiatedEventAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &historyEvent_StartChildWorkflowExecutionInitiatedEventAttributes{v} +} + +func (x *HistoryEvent) SetStartChildWorkflowExecutionFailedEventAttributes(v *StartChildWorkflowExecutionFailedEventAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &historyEvent_StartChildWorkflowExecutionFailedEventAttributes{v} +} + +func (x *HistoryEvent) SetChildWorkflowExecutionStartedEventAttributes(v *ChildWorkflowExecutionStartedEventAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &historyEvent_ChildWorkflowExecutionStartedEventAttributes{v} +} + +func (x *HistoryEvent) SetChildWorkflowExecutionCompletedEventAttributes(v *ChildWorkflowExecutionCompletedEventAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &historyEvent_ChildWorkflowExecutionCompletedEventAttributes{v} +} + +func (x *HistoryEvent) SetChildWorkflowExecutionFailedEventAttributes(v *ChildWorkflowExecutionFailedEventAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &historyEvent_ChildWorkflowExecutionFailedEventAttributes{v} +} + +func (x *HistoryEvent) SetChildWorkflowExecutionCanceledEventAttributes(v *ChildWorkflowExecutionCanceledEventAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &historyEvent_ChildWorkflowExecutionCanceledEventAttributes{v} +} + +func (x *HistoryEvent) SetChildWorkflowExecutionTimedOutEventAttributes(v *ChildWorkflowExecutionTimedOutEventAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &historyEvent_ChildWorkflowExecutionTimedOutEventAttributes{v} +} + +func (x *HistoryEvent) SetChildWorkflowExecutionTerminatedEventAttributes(v *ChildWorkflowExecutionTerminatedEventAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &historyEvent_ChildWorkflowExecutionTerminatedEventAttributes{v} +} + +func (x *HistoryEvent) SetSignalExternalWorkflowExecutionInitiatedEventAttributes(v *SignalExternalWorkflowExecutionInitiatedEventAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &historyEvent_SignalExternalWorkflowExecutionInitiatedEventAttributes{v} +} + +func (x *HistoryEvent) SetSignalExternalWorkflowExecutionFailedEventAttributes(v *SignalExternalWorkflowExecutionFailedEventAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &historyEvent_SignalExternalWorkflowExecutionFailedEventAttributes{v} +} + +func (x *HistoryEvent) SetExternalWorkflowExecutionSignaledEventAttributes(v *ExternalWorkflowExecutionSignaledEventAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &historyEvent_ExternalWorkflowExecutionSignaledEventAttributes{v} +} + +func (x *HistoryEvent) SetUpsertWorkflowSearchAttributesEventAttributes(v *UpsertWorkflowSearchAttributesEventAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &historyEvent_UpsertWorkflowSearchAttributesEventAttributes{v} +} + +func (x *HistoryEvent) SetWorkflowExecutionUpdateAcceptedEventAttributes(v *WorkflowExecutionUpdateAcceptedEventAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &historyEvent_WorkflowExecutionUpdateAcceptedEventAttributes{v} +} + +func (x *HistoryEvent) SetWorkflowExecutionUpdateRejectedEventAttributes(v *WorkflowExecutionUpdateRejectedEventAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &historyEvent_WorkflowExecutionUpdateRejectedEventAttributes{v} +} + +func (x *HistoryEvent) SetWorkflowExecutionUpdateCompletedEventAttributes(v *WorkflowExecutionUpdateCompletedEventAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &historyEvent_WorkflowExecutionUpdateCompletedEventAttributes{v} +} + +func (x *HistoryEvent) SetWorkflowPropertiesModifiedExternallyEventAttributes(v *WorkflowPropertiesModifiedExternallyEventAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &historyEvent_WorkflowPropertiesModifiedExternallyEventAttributes{v} +} + +func (x *HistoryEvent) SetActivityPropertiesModifiedExternallyEventAttributes(v *ActivityPropertiesModifiedExternallyEventAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &historyEvent_ActivityPropertiesModifiedExternallyEventAttributes{v} +} + +func (x *HistoryEvent) SetWorkflowPropertiesModifiedEventAttributes(v *WorkflowPropertiesModifiedEventAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &historyEvent_WorkflowPropertiesModifiedEventAttributes{v} +} + +func (x *HistoryEvent) SetWorkflowExecutionUpdateAdmittedEventAttributes(v *WorkflowExecutionUpdateAdmittedEventAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &historyEvent_WorkflowExecutionUpdateAdmittedEventAttributes{v} +} + +func (x *HistoryEvent) SetNexusOperationScheduledEventAttributes(v *NexusOperationScheduledEventAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &historyEvent_NexusOperationScheduledEventAttributes{v} +} + +func (x *HistoryEvent) SetNexusOperationStartedEventAttributes(v *NexusOperationStartedEventAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &historyEvent_NexusOperationStartedEventAttributes{v} +} + +func (x *HistoryEvent) SetNexusOperationCompletedEventAttributes(v *NexusOperationCompletedEventAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &historyEvent_NexusOperationCompletedEventAttributes{v} +} + +func (x *HistoryEvent) SetNexusOperationFailedEventAttributes(v *NexusOperationFailedEventAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &historyEvent_NexusOperationFailedEventAttributes{v} +} + +func (x *HistoryEvent) SetNexusOperationCanceledEventAttributes(v *NexusOperationCanceledEventAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &historyEvent_NexusOperationCanceledEventAttributes{v} +} + +func (x *HistoryEvent) SetNexusOperationTimedOutEventAttributes(v *NexusOperationTimedOutEventAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &historyEvent_NexusOperationTimedOutEventAttributes{v} +} + +func (x *HistoryEvent) SetNexusOperationCancelRequestedEventAttributes(v *NexusOperationCancelRequestedEventAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &historyEvent_NexusOperationCancelRequestedEventAttributes{v} +} + +func (x *HistoryEvent) SetWorkflowExecutionOptionsUpdatedEventAttributes(v *WorkflowExecutionOptionsUpdatedEventAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &historyEvent_WorkflowExecutionOptionsUpdatedEventAttributes{v} +} + +func (x *HistoryEvent) SetNexusOperationCancelRequestCompletedEventAttributes(v *NexusOperationCancelRequestCompletedEventAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &historyEvent_NexusOperationCancelRequestCompletedEventAttributes{v} +} + +func (x *HistoryEvent) SetNexusOperationCancelRequestFailedEventAttributes(v *NexusOperationCancelRequestFailedEventAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &historyEvent_NexusOperationCancelRequestFailedEventAttributes{v} +} + +func (x *HistoryEvent) SetWorkflowExecutionPausedEventAttributes(v *WorkflowExecutionPausedEventAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &historyEvent_WorkflowExecutionPausedEventAttributes{v} +} + +func (x *HistoryEvent) SetWorkflowExecutionUnpausedEventAttributes(v *WorkflowExecutionUnpausedEventAttributes) { + if v == nil { + x.xxx_hidden_Attributes = nil + return + } + x.xxx_hidden_Attributes = &historyEvent_WorkflowExecutionUnpausedEventAttributes{v} +} + +func (x *HistoryEvent) HasEventTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_EventTime != nil +} + +func (x *HistoryEvent) HasUserMetadata() bool { + if x == nil { + return false + } + return x.xxx_hidden_UserMetadata != nil +} + +func (x *HistoryEvent) HasAttributes() bool { + if x == nil { + return false + } + return x.xxx_hidden_Attributes != nil +} + +func (x *HistoryEvent) HasWorkflowExecutionStartedEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowExecutionStartedEventAttributes) + return ok +} + +func (x *HistoryEvent) HasWorkflowExecutionCompletedEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowExecutionCompletedEventAttributes) + return ok +} + +func (x *HistoryEvent) HasWorkflowExecutionFailedEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowExecutionFailedEventAttributes) + return ok +} + +func (x *HistoryEvent) HasWorkflowExecutionTimedOutEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowExecutionTimedOutEventAttributes) + return ok +} + +func (x *HistoryEvent) HasWorkflowTaskScheduledEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowTaskScheduledEventAttributes) + return ok +} + +func (x *HistoryEvent) HasWorkflowTaskStartedEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowTaskStartedEventAttributes) + return ok +} + +func (x *HistoryEvent) HasWorkflowTaskCompletedEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowTaskCompletedEventAttributes) + return ok +} + +func (x *HistoryEvent) HasWorkflowTaskTimedOutEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowTaskTimedOutEventAttributes) + return ok +} + +func (x *HistoryEvent) HasWorkflowTaskFailedEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowTaskFailedEventAttributes) + return ok +} + +func (x *HistoryEvent) HasActivityTaskScheduledEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*historyEvent_ActivityTaskScheduledEventAttributes) + return ok +} + +func (x *HistoryEvent) HasActivityTaskStartedEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*historyEvent_ActivityTaskStartedEventAttributes) + return ok +} + +func (x *HistoryEvent) HasActivityTaskCompletedEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*historyEvent_ActivityTaskCompletedEventAttributes) + return ok +} + +func (x *HistoryEvent) HasActivityTaskFailedEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*historyEvent_ActivityTaskFailedEventAttributes) + return ok +} + +func (x *HistoryEvent) HasActivityTaskTimedOutEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*historyEvent_ActivityTaskTimedOutEventAttributes) + return ok +} + +func (x *HistoryEvent) HasTimerStartedEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*historyEvent_TimerStartedEventAttributes) + return ok +} + +func (x *HistoryEvent) HasTimerFiredEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*historyEvent_TimerFiredEventAttributes) + return ok +} + +func (x *HistoryEvent) HasActivityTaskCancelRequestedEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*historyEvent_ActivityTaskCancelRequestedEventAttributes) + return ok +} + +func (x *HistoryEvent) HasActivityTaskCanceledEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*historyEvent_ActivityTaskCanceledEventAttributes) + return ok +} + +func (x *HistoryEvent) HasTimerCanceledEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*historyEvent_TimerCanceledEventAttributes) + return ok +} + +func (x *HistoryEvent) HasMarkerRecordedEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*historyEvent_MarkerRecordedEventAttributes) + return ok +} + +func (x *HistoryEvent) HasWorkflowExecutionSignaledEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowExecutionSignaledEventAttributes) + return ok +} + +func (x *HistoryEvent) HasWorkflowExecutionTerminatedEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowExecutionTerminatedEventAttributes) + return ok +} + +func (x *HistoryEvent) HasWorkflowExecutionCancelRequestedEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowExecutionCancelRequestedEventAttributes) + return ok +} + +func (x *HistoryEvent) HasWorkflowExecutionCanceledEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowExecutionCanceledEventAttributes) + return ok +} + +func (x *HistoryEvent) HasRequestCancelExternalWorkflowExecutionInitiatedEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*historyEvent_RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) + return ok +} + +func (x *HistoryEvent) HasRequestCancelExternalWorkflowExecutionFailedEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*historyEvent_RequestCancelExternalWorkflowExecutionFailedEventAttributes) + return ok +} + +func (x *HistoryEvent) HasExternalWorkflowExecutionCancelRequestedEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*historyEvent_ExternalWorkflowExecutionCancelRequestedEventAttributes) + return ok +} + +func (x *HistoryEvent) HasWorkflowExecutionContinuedAsNewEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowExecutionContinuedAsNewEventAttributes) + return ok +} + +func (x *HistoryEvent) HasStartChildWorkflowExecutionInitiatedEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*historyEvent_StartChildWorkflowExecutionInitiatedEventAttributes) + return ok +} + +func (x *HistoryEvent) HasStartChildWorkflowExecutionFailedEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*historyEvent_StartChildWorkflowExecutionFailedEventAttributes) + return ok +} + +func (x *HistoryEvent) HasChildWorkflowExecutionStartedEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*historyEvent_ChildWorkflowExecutionStartedEventAttributes) + return ok +} + +func (x *HistoryEvent) HasChildWorkflowExecutionCompletedEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*historyEvent_ChildWorkflowExecutionCompletedEventAttributes) + return ok +} + +func (x *HistoryEvent) HasChildWorkflowExecutionFailedEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*historyEvent_ChildWorkflowExecutionFailedEventAttributes) + return ok +} + +func (x *HistoryEvent) HasChildWorkflowExecutionCanceledEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*historyEvent_ChildWorkflowExecutionCanceledEventAttributes) + return ok +} + +func (x *HistoryEvent) HasChildWorkflowExecutionTimedOutEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*historyEvent_ChildWorkflowExecutionTimedOutEventAttributes) + return ok +} + +func (x *HistoryEvent) HasChildWorkflowExecutionTerminatedEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*historyEvent_ChildWorkflowExecutionTerminatedEventAttributes) + return ok +} + +func (x *HistoryEvent) HasSignalExternalWorkflowExecutionInitiatedEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*historyEvent_SignalExternalWorkflowExecutionInitiatedEventAttributes) + return ok +} + +func (x *HistoryEvent) HasSignalExternalWorkflowExecutionFailedEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*historyEvent_SignalExternalWorkflowExecutionFailedEventAttributes) + return ok +} + +func (x *HistoryEvent) HasExternalWorkflowExecutionSignaledEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*historyEvent_ExternalWorkflowExecutionSignaledEventAttributes) + return ok +} + +func (x *HistoryEvent) HasUpsertWorkflowSearchAttributesEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*historyEvent_UpsertWorkflowSearchAttributesEventAttributes) + return ok +} + +func (x *HistoryEvent) HasWorkflowExecutionUpdateAcceptedEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowExecutionUpdateAcceptedEventAttributes) + return ok +} + +func (x *HistoryEvent) HasWorkflowExecutionUpdateRejectedEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowExecutionUpdateRejectedEventAttributes) + return ok +} + +func (x *HistoryEvent) HasWorkflowExecutionUpdateCompletedEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowExecutionUpdateCompletedEventAttributes) + return ok +} + +func (x *HistoryEvent) HasWorkflowPropertiesModifiedExternallyEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowPropertiesModifiedExternallyEventAttributes) + return ok +} + +func (x *HistoryEvent) HasActivityPropertiesModifiedExternallyEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*historyEvent_ActivityPropertiesModifiedExternallyEventAttributes) + return ok +} + +func (x *HistoryEvent) HasWorkflowPropertiesModifiedEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowPropertiesModifiedEventAttributes) + return ok +} + +func (x *HistoryEvent) HasWorkflowExecutionUpdateAdmittedEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowExecutionUpdateAdmittedEventAttributes) + return ok +} + +func (x *HistoryEvent) HasNexusOperationScheduledEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*historyEvent_NexusOperationScheduledEventAttributes) + return ok +} + +func (x *HistoryEvent) HasNexusOperationStartedEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*historyEvent_NexusOperationStartedEventAttributes) + return ok +} + +func (x *HistoryEvent) HasNexusOperationCompletedEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*historyEvent_NexusOperationCompletedEventAttributes) + return ok +} + +func (x *HistoryEvent) HasNexusOperationFailedEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*historyEvent_NexusOperationFailedEventAttributes) + return ok +} + +func (x *HistoryEvent) HasNexusOperationCanceledEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*historyEvent_NexusOperationCanceledEventAttributes) + return ok +} + +func (x *HistoryEvent) HasNexusOperationTimedOutEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*historyEvent_NexusOperationTimedOutEventAttributes) + return ok +} + +func (x *HistoryEvent) HasNexusOperationCancelRequestedEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*historyEvent_NexusOperationCancelRequestedEventAttributes) + return ok +} + +func (x *HistoryEvent) HasWorkflowExecutionOptionsUpdatedEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowExecutionOptionsUpdatedEventAttributes) + return ok +} + +func (x *HistoryEvent) HasNexusOperationCancelRequestCompletedEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*historyEvent_NexusOperationCancelRequestCompletedEventAttributes) + return ok +} + +func (x *HistoryEvent) HasNexusOperationCancelRequestFailedEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*historyEvent_NexusOperationCancelRequestFailedEventAttributes) + return ok +} + +func (x *HistoryEvent) HasWorkflowExecutionPausedEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowExecutionPausedEventAttributes) + return ok +} + +func (x *HistoryEvent) HasWorkflowExecutionUnpausedEventAttributes() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowExecutionUnpausedEventAttributes) + return ok +} + +func (x *HistoryEvent) ClearEventTime() { + x.xxx_hidden_EventTime = nil +} + +func (x *HistoryEvent) ClearUserMetadata() { + x.xxx_hidden_UserMetadata = nil +} + +func (x *HistoryEvent) ClearAttributes() { + x.xxx_hidden_Attributes = nil +} + +func (x *HistoryEvent) ClearWorkflowExecutionStartedEventAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowExecutionStartedEventAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *HistoryEvent) ClearWorkflowExecutionCompletedEventAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowExecutionCompletedEventAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *HistoryEvent) ClearWorkflowExecutionFailedEventAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowExecutionFailedEventAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *HistoryEvent) ClearWorkflowExecutionTimedOutEventAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowExecutionTimedOutEventAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *HistoryEvent) ClearWorkflowTaskScheduledEventAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowTaskScheduledEventAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *HistoryEvent) ClearWorkflowTaskStartedEventAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowTaskStartedEventAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *HistoryEvent) ClearWorkflowTaskCompletedEventAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowTaskCompletedEventAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *HistoryEvent) ClearWorkflowTaskTimedOutEventAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowTaskTimedOutEventAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *HistoryEvent) ClearWorkflowTaskFailedEventAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowTaskFailedEventAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *HistoryEvent) ClearActivityTaskScheduledEventAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*historyEvent_ActivityTaskScheduledEventAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *HistoryEvent) ClearActivityTaskStartedEventAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*historyEvent_ActivityTaskStartedEventAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *HistoryEvent) ClearActivityTaskCompletedEventAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*historyEvent_ActivityTaskCompletedEventAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *HistoryEvent) ClearActivityTaskFailedEventAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*historyEvent_ActivityTaskFailedEventAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *HistoryEvent) ClearActivityTaskTimedOutEventAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*historyEvent_ActivityTaskTimedOutEventAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *HistoryEvent) ClearTimerStartedEventAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*historyEvent_TimerStartedEventAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *HistoryEvent) ClearTimerFiredEventAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*historyEvent_TimerFiredEventAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *HistoryEvent) ClearActivityTaskCancelRequestedEventAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*historyEvent_ActivityTaskCancelRequestedEventAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *HistoryEvent) ClearActivityTaskCanceledEventAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*historyEvent_ActivityTaskCanceledEventAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *HistoryEvent) ClearTimerCanceledEventAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*historyEvent_TimerCanceledEventAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *HistoryEvent) ClearMarkerRecordedEventAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*historyEvent_MarkerRecordedEventAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *HistoryEvent) ClearWorkflowExecutionSignaledEventAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowExecutionSignaledEventAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *HistoryEvent) ClearWorkflowExecutionTerminatedEventAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowExecutionTerminatedEventAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *HistoryEvent) ClearWorkflowExecutionCancelRequestedEventAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowExecutionCancelRequestedEventAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *HistoryEvent) ClearWorkflowExecutionCanceledEventAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowExecutionCanceledEventAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *HistoryEvent) ClearRequestCancelExternalWorkflowExecutionInitiatedEventAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*historyEvent_RequestCancelExternalWorkflowExecutionInitiatedEventAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *HistoryEvent) ClearRequestCancelExternalWorkflowExecutionFailedEventAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*historyEvent_RequestCancelExternalWorkflowExecutionFailedEventAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *HistoryEvent) ClearExternalWorkflowExecutionCancelRequestedEventAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*historyEvent_ExternalWorkflowExecutionCancelRequestedEventAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *HistoryEvent) ClearWorkflowExecutionContinuedAsNewEventAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowExecutionContinuedAsNewEventAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *HistoryEvent) ClearStartChildWorkflowExecutionInitiatedEventAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*historyEvent_StartChildWorkflowExecutionInitiatedEventAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *HistoryEvent) ClearStartChildWorkflowExecutionFailedEventAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*historyEvent_StartChildWorkflowExecutionFailedEventAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *HistoryEvent) ClearChildWorkflowExecutionStartedEventAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*historyEvent_ChildWorkflowExecutionStartedEventAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *HistoryEvent) ClearChildWorkflowExecutionCompletedEventAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*historyEvent_ChildWorkflowExecutionCompletedEventAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *HistoryEvent) ClearChildWorkflowExecutionFailedEventAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*historyEvent_ChildWorkflowExecutionFailedEventAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *HistoryEvent) ClearChildWorkflowExecutionCanceledEventAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*historyEvent_ChildWorkflowExecutionCanceledEventAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *HistoryEvent) ClearChildWorkflowExecutionTimedOutEventAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*historyEvent_ChildWorkflowExecutionTimedOutEventAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *HistoryEvent) ClearChildWorkflowExecutionTerminatedEventAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*historyEvent_ChildWorkflowExecutionTerminatedEventAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *HistoryEvent) ClearSignalExternalWorkflowExecutionInitiatedEventAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*historyEvent_SignalExternalWorkflowExecutionInitiatedEventAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *HistoryEvent) ClearSignalExternalWorkflowExecutionFailedEventAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*historyEvent_SignalExternalWorkflowExecutionFailedEventAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *HistoryEvent) ClearExternalWorkflowExecutionSignaledEventAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*historyEvent_ExternalWorkflowExecutionSignaledEventAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *HistoryEvent) ClearUpsertWorkflowSearchAttributesEventAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*historyEvent_UpsertWorkflowSearchAttributesEventAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *HistoryEvent) ClearWorkflowExecutionUpdateAcceptedEventAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowExecutionUpdateAcceptedEventAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *HistoryEvent) ClearWorkflowExecutionUpdateRejectedEventAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowExecutionUpdateRejectedEventAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *HistoryEvent) ClearWorkflowExecutionUpdateCompletedEventAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowExecutionUpdateCompletedEventAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *HistoryEvent) ClearWorkflowPropertiesModifiedExternallyEventAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowPropertiesModifiedExternallyEventAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *HistoryEvent) ClearActivityPropertiesModifiedExternallyEventAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*historyEvent_ActivityPropertiesModifiedExternallyEventAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *HistoryEvent) ClearWorkflowPropertiesModifiedEventAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowPropertiesModifiedEventAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *HistoryEvent) ClearWorkflowExecutionUpdateAdmittedEventAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowExecutionUpdateAdmittedEventAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *HistoryEvent) ClearNexusOperationScheduledEventAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*historyEvent_NexusOperationScheduledEventAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *HistoryEvent) ClearNexusOperationStartedEventAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*historyEvent_NexusOperationStartedEventAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *HistoryEvent) ClearNexusOperationCompletedEventAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*historyEvent_NexusOperationCompletedEventAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *HistoryEvent) ClearNexusOperationFailedEventAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*historyEvent_NexusOperationFailedEventAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *HistoryEvent) ClearNexusOperationCanceledEventAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*historyEvent_NexusOperationCanceledEventAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *HistoryEvent) ClearNexusOperationTimedOutEventAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*historyEvent_NexusOperationTimedOutEventAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *HistoryEvent) ClearNexusOperationCancelRequestedEventAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*historyEvent_NexusOperationCancelRequestedEventAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *HistoryEvent) ClearWorkflowExecutionOptionsUpdatedEventAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowExecutionOptionsUpdatedEventAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *HistoryEvent) ClearNexusOperationCancelRequestCompletedEventAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*historyEvent_NexusOperationCancelRequestCompletedEventAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *HistoryEvent) ClearNexusOperationCancelRequestFailedEventAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*historyEvent_NexusOperationCancelRequestFailedEventAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *HistoryEvent) ClearWorkflowExecutionPausedEventAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowExecutionPausedEventAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +func (x *HistoryEvent) ClearWorkflowExecutionUnpausedEventAttributes() { + if _, ok := x.xxx_hidden_Attributes.(*historyEvent_WorkflowExecutionUnpausedEventAttributes); ok { + x.xxx_hidden_Attributes = nil + } +} + +const HistoryEvent_Attributes_not_set_case case_HistoryEvent_Attributes = 0 +const HistoryEvent_WorkflowExecutionStartedEventAttributes_case case_HistoryEvent_Attributes = 6 +const HistoryEvent_WorkflowExecutionCompletedEventAttributes_case case_HistoryEvent_Attributes = 7 +const HistoryEvent_WorkflowExecutionFailedEventAttributes_case case_HistoryEvent_Attributes = 8 +const HistoryEvent_WorkflowExecutionTimedOutEventAttributes_case case_HistoryEvent_Attributes = 9 +const HistoryEvent_WorkflowTaskScheduledEventAttributes_case case_HistoryEvent_Attributes = 10 +const HistoryEvent_WorkflowTaskStartedEventAttributes_case case_HistoryEvent_Attributes = 11 +const HistoryEvent_WorkflowTaskCompletedEventAttributes_case case_HistoryEvent_Attributes = 12 +const HistoryEvent_WorkflowTaskTimedOutEventAttributes_case case_HistoryEvent_Attributes = 13 +const HistoryEvent_WorkflowTaskFailedEventAttributes_case case_HistoryEvent_Attributes = 14 +const HistoryEvent_ActivityTaskScheduledEventAttributes_case case_HistoryEvent_Attributes = 15 +const HistoryEvent_ActivityTaskStartedEventAttributes_case case_HistoryEvent_Attributes = 16 +const HistoryEvent_ActivityTaskCompletedEventAttributes_case case_HistoryEvent_Attributes = 17 +const HistoryEvent_ActivityTaskFailedEventAttributes_case case_HistoryEvent_Attributes = 18 +const HistoryEvent_ActivityTaskTimedOutEventAttributes_case case_HistoryEvent_Attributes = 19 +const HistoryEvent_TimerStartedEventAttributes_case case_HistoryEvent_Attributes = 20 +const HistoryEvent_TimerFiredEventAttributes_case case_HistoryEvent_Attributes = 21 +const HistoryEvent_ActivityTaskCancelRequestedEventAttributes_case case_HistoryEvent_Attributes = 22 +const HistoryEvent_ActivityTaskCanceledEventAttributes_case case_HistoryEvent_Attributes = 23 +const HistoryEvent_TimerCanceledEventAttributes_case case_HistoryEvent_Attributes = 24 +const HistoryEvent_MarkerRecordedEventAttributes_case case_HistoryEvent_Attributes = 25 +const HistoryEvent_WorkflowExecutionSignaledEventAttributes_case case_HistoryEvent_Attributes = 26 +const HistoryEvent_WorkflowExecutionTerminatedEventAttributes_case case_HistoryEvent_Attributes = 27 +const HistoryEvent_WorkflowExecutionCancelRequestedEventAttributes_case case_HistoryEvent_Attributes = 28 +const HistoryEvent_WorkflowExecutionCanceledEventAttributes_case case_HistoryEvent_Attributes = 29 +const HistoryEvent_RequestCancelExternalWorkflowExecutionInitiatedEventAttributes_case case_HistoryEvent_Attributes = 30 +const HistoryEvent_RequestCancelExternalWorkflowExecutionFailedEventAttributes_case case_HistoryEvent_Attributes = 31 +const HistoryEvent_ExternalWorkflowExecutionCancelRequestedEventAttributes_case case_HistoryEvent_Attributes = 32 +const HistoryEvent_WorkflowExecutionContinuedAsNewEventAttributes_case case_HistoryEvent_Attributes = 33 +const HistoryEvent_StartChildWorkflowExecutionInitiatedEventAttributes_case case_HistoryEvent_Attributes = 34 +const HistoryEvent_StartChildWorkflowExecutionFailedEventAttributes_case case_HistoryEvent_Attributes = 35 +const HistoryEvent_ChildWorkflowExecutionStartedEventAttributes_case case_HistoryEvent_Attributes = 36 +const HistoryEvent_ChildWorkflowExecutionCompletedEventAttributes_case case_HistoryEvent_Attributes = 37 +const HistoryEvent_ChildWorkflowExecutionFailedEventAttributes_case case_HistoryEvent_Attributes = 38 +const HistoryEvent_ChildWorkflowExecutionCanceledEventAttributes_case case_HistoryEvent_Attributes = 39 +const HistoryEvent_ChildWorkflowExecutionTimedOutEventAttributes_case case_HistoryEvent_Attributes = 40 +const HistoryEvent_ChildWorkflowExecutionTerminatedEventAttributes_case case_HistoryEvent_Attributes = 41 +const HistoryEvent_SignalExternalWorkflowExecutionInitiatedEventAttributes_case case_HistoryEvent_Attributes = 42 +const HistoryEvent_SignalExternalWorkflowExecutionFailedEventAttributes_case case_HistoryEvent_Attributes = 43 +const HistoryEvent_ExternalWorkflowExecutionSignaledEventAttributes_case case_HistoryEvent_Attributes = 44 +const HistoryEvent_UpsertWorkflowSearchAttributesEventAttributes_case case_HistoryEvent_Attributes = 45 +const HistoryEvent_WorkflowExecutionUpdateAcceptedEventAttributes_case case_HistoryEvent_Attributes = 46 +const HistoryEvent_WorkflowExecutionUpdateRejectedEventAttributes_case case_HistoryEvent_Attributes = 47 +const HistoryEvent_WorkflowExecutionUpdateCompletedEventAttributes_case case_HistoryEvent_Attributes = 48 +const HistoryEvent_WorkflowPropertiesModifiedExternallyEventAttributes_case case_HistoryEvent_Attributes = 49 +const HistoryEvent_ActivityPropertiesModifiedExternallyEventAttributes_case case_HistoryEvent_Attributes = 50 +const HistoryEvent_WorkflowPropertiesModifiedEventAttributes_case case_HistoryEvent_Attributes = 51 +const HistoryEvent_WorkflowExecutionUpdateAdmittedEventAttributes_case case_HistoryEvent_Attributes = 52 +const HistoryEvent_NexusOperationScheduledEventAttributes_case case_HistoryEvent_Attributes = 53 +const HistoryEvent_NexusOperationStartedEventAttributes_case case_HistoryEvent_Attributes = 54 +const HistoryEvent_NexusOperationCompletedEventAttributes_case case_HistoryEvent_Attributes = 55 +const HistoryEvent_NexusOperationFailedEventAttributes_case case_HistoryEvent_Attributes = 56 +const HistoryEvent_NexusOperationCanceledEventAttributes_case case_HistoryEvent_Attributes = 57 +const HistoryEvent_NexusOperationTimedOutEventAttributes_case case_HistoryEvent_Attributes = 58 +const HistoryEvent_NexusOperationCancelRequestedEventAttributes_case case_HistoryEvent_Attributes = 59 +const HistoryEvent_WorkflowExecutionOptionsUpdatedEventAttributes_case case_HistoryEvent_Attributes = 60 +const HistoryEvent_NexusOperationCancelRequestCompletedEventAttributes_case case_HistoryEvent_Attributes = 61 +const HistoryEvent_NexusOperationCancelRequestFailedEventAttributes_case case_HistoryEvent_Attributes = 62 +const HistoryEvent_WorkflowExecutionPausedEventAttributes_case case_HistoryEvent_Attributes = 63 +const HistoryEvent_WorkflowExecutionUnpausedEventAttributes_case case_HistoryEvent_Attributes = 64 + +func (x *HistoryEvent) WhichAttributes() case_HistoryEvent_Attributes { + if x == nil { + return HistoryEvent_Attributes_not_set_case + } + switch x.xxx_hidden_Attributes.(type) { + case *historyEvent_WorkflowExecutionStartedEventAttributes: + return HistoryEvent_WorkflowExecutionStartedEventAttributes_case + case *historyEvent_WorkflowExecutionCompletedEventAttributes: + return HistoryEvent_WorkflowExecutionCompletedEventAttributes_case + case *historyEvent_WorkflowExecutionFailedEventAttributes: + return HistoryEvent_WorkflowExecutionFailedEventAttributes_case + case *historyEvent_WorkflowExecutionTimedOutEventAttributes: + return HistoryEvent_WorkflowExecutionTimedOutEventAttributes_case + case *historyEvent_WorkflowTaskScheduledEventAttributes: + return HistoryEvent_WorkflowTaskScheduledEventAttributes_case + case *historyEvent_WorkflowTaskStartedEventAttributes: + return HistoryEvent_WorkflowTaskStartedEventAttributes_case + case *historyEvent_WorkflowTaskCompletedEventAttributes: + return HistoryEvent_WorkflowTaskCompletedEventAttributes_case + case *historyEvent_WorkflowTaskTimedOutEventAttributes: + return HistoryEvent_WorkflowTaskTimedOutEventAttributes_case + case *historyEvent_WorkflowTaskFailedEventAttributes: + return HistoryEvent_WorkflowTaskFailedEventAttributes_case + case *historyEvent_ActivityTaskScheduledEventAttributes: + return HistoryEvent_ActivityTaskScheduledEventAttributes_case + case *historyEvent_ActivityTaskStartedEventAttributes: + return HistoryEvent_ActivityTaskStartedEventAttributes_case + case *historyEvent_ActivityTaskCompletedEventAttributes: + return HistoryEvent_ActivityTaskCompletedEventAttributes_case + case *historyEvent_ActivityTaskFailedEventAttributes: + return HistoryEvent_ActivityTaskFailedEventAttributes_case + case *historyEvent_ActivityTaskTimedOutEventAttributes: + return HistoryEvent_ActivityTaskTimedOutEventAttributes_case + case *historyEvent_TimerStartedEventAttributes: + return HistoryEvent_TimerStartedEventAttributes_case + case *historyEvent_TimerFiredEventAttributes: + return HistoryEvent_TimerFiredEventAttributes_case + case *historyEvent_ActivityTaskCancelRequestedEventAttributes: + return HistoryEvent_ActivityTaskCancelRequestedEventAttributes_case + case *historyEvent_ActivityTaskCanceledEventAttributes: + return HistoryEvent_ActivityTaskCanceledEventAttributes_case + case *historyEvent_TimerCanceledEventAttributes: + return HistoryEvent_TimerCanceledEventAttributes_case + case *historyEvent_MarkerRecordedEventAttributes: + return HistoryEvent_MarkerRecordedEventAttributes_case + case *historyEvent_WorkflowExecutionSignaledEventAttributes: + return HistoryEvent_WorkflowExecutionSignaledEventAttributes_case + case *historyEvent_WorkflowExecutionTerminatedEventAttributes: + return HistoryEvent_WorkflowExecutionTerminatedEventAttributes_case + case *historyEvent_WorkflowExecutionCancelRequestedEventAttributes: + return HistoryEvent_WorkflowExecutionCancelRequestedEventAttributes_case + case *historyEvent_WorkflowExecutionCanceledEventAttributes: + return HistoryEvent_WorkflowExecutionCanceledEventAttributes_case + case *historyEvent_RequestCancelExternalWorkflowExecutionInitiatedEventAttributes: + return HistoryEvent_RequestCancelExternalWorkflowExecutionInitiatedEventAttributes_case + case *historyEvent_RequestCancelExternalWorkflowExecutionFailedEventAttributes: + return HistoryEvent_RequestCancelExternalWorkflowExecutionFailedEventAttributes_case + case *historyEvent_ExternalWorkflowExecutionCancelRequestedEventAttributes: + return HistoryEvent_ExternalWorkflowExecutionCancelRequestedEventAttributes_case + case *historyEvent_WorkflowExecutionContinuedAsNewEventAttributes: + return HistoryEvent_WorkflowExecutionContinuedAsNewEventAttributes_case + case *historyEvent_StartChildWorkflowExecutionInitiatedEventAttributes: + return HistoryEvent_StartChildWorkflowExecutionInitiatedEventAttributes_case + case *historyEvent_StartChildWorkflowExecutionFailedEventAttributes: + return HistoryEvent_StartChildWorkflowExecutionFailedEventAttributes_case + case *historyEvent_ChildWorkflowExecutionStartedEventAttributes: + return HistoryEvent_ChildWorkflowExecutionStartedEventAttributes_case + case *historyEvent_ChildWorkflowExecutionCompletedEventAttributes: + return HistoryEvent_ChildWorkflowExecutionCompletedEventAttributes_case + case *historyEvent_ChildWorkflowExecutionFailedEventAttributes: + return HistoryEvent_ChildWorkflowExecutionFailedEventAttributes_case + case *historyEvent_ChildWorkflowExecutionCanceledEventAttributes: + return HistoryEvent_ChildWorkflowExecutionCanceledEventAttributes_case + case *historyEvent_ChildWorkflowExecutionTimedOutEventAttributes: + return HistoryEvent_ChildWorkflowExecutionTimedOutEventAttributes_case + case *historyEvent_ChildWorkflowExecutionTerminatedEventAttributes: + return HistoryEvent_ChildWorkflowExecutionTerminatedEventAttributes_case + case *historyEvent_SignalExternalWorkflowExecutionInitiatedEventAttributes: + return HistoryEvent_SignalExternalWorkflowExecutionInitiatedEventAttributes_case + case *historyEvent_SignalExternalWorkflowExecutionFailedEventAttributes: + return HistoryEvent_SignalExternalWorkflowExecutionFailedEventAttributes_case + case *historyEvent_ExternalWorkflowExecutionSignaledEventAttributes: + return HistoryEvent_ExternalWorkflowExecutionSignaledEventAttributes_case + case *historyEvent_UpsertWorkflowSearchAttributesEventAttributes: + return HistoryEvent_UpsertWorkflowSearchAttributesEventAttributes_case + case *historyEvent_WorkflowExecutionUpdateAcceptedEventAttributes: + return HistoryEvent_WorkflowExecutionUpdateAcceptedEventAttributes_case + case *historyEvent_WorkflowExecutionUpdateRejectedEventAttributes: + return HistoryEvent_WorkflowExecutionUpdateRejectedEventAttributes_case + case *historyEvent_WorkflowExecutionUpdateCompletedEventAttributes: + return HistoryEvent_WorkflowExecutionUpdateCompletedEventAttributes_case + case *historyEvent_WorkflowPropertiesModifiedExternallyEventAttributes: + return HistoryEvent_WorkflowPropertiesModifiedExternallyEventAttributes_case + case *historyEvent_ActivityPropertiesModifiedExternallyEventAttributes: + return HistoryEvent_ActivityPropertiesModifiedExternallyEventAttributes_case + case *historyEvent_WorkflowPropertiesModifiedEventAttributes: + return HistoryEvent_WorkflowPropertiesModifiedEventAttributes_case + case *historyEvent_WorkflowExecutionUpdateAdmittedEventAttributes: + return HistoryEvent_WorkflowExecutionUpdateAdmittedEventAttributes_case + case *historyEvent_NexusOperationScheduledEventAttributes: + return HistoryEvent_NexusOperationScheduledEventAttributes_case + case *historyEvent_NexusOperationStartedEventAttributes: + return HistoryEvent_NexusOperationStartedEventAttributes_case + case *historyEvent_NexusOperationCompletedEventAttributes: + return HistoryEvent_NexusOperationCompletedEventAttributes_case + case *historyEvent_NexusOperationFailedEventAttributes: + return HistoryEvent_NexusOperationFailedEventAttributes_case + case *historyEvent_NexusOperationCanceledEventAttributes: + return HistoryEvent_NexusOperationCanceledEventAttributes_case + case *historyEvent_NexusOperationTimedOutEventAttributes: + return HistoryEvent_NexusOperationTimedOutEventAttributes_case + case *historyEvent_NexusOperationCancelRequestedEventAttributes: + return HistoryEvent_NexusOperationCancelRequestedEventAttributes_case + case *historyEvent_WorkflowExecutionOptionsUpdatedEventAttributes: + return HistoryEvent_WorkflowExecutionOptionsUpdatedEventAttributes_case + case *historyEvent_NexusOperationCancelRequestCompletedEventAttributes: + return HistoryEvent_NexusOperationCancelRequestCompletedEventAttributes_case + case *historyEvent_NexusOperationCancelRequestFailedEventAttributes: + return HistoryEvent_NexusOperationCancelRequestFailedEventAttributes_case + case *historyEvent_WorkflowExecutionPausedEventAttributes: + return HistoryEvent_WorkflowExecutionPausedEventAttributes_case + case *historyEvent_WorkflowExecutionUnpausedEventAttributes: + return HistoryEvent_WorkflowExecutionUnpausedEventAttributes_case + default: + return HistoryEvent_Attributes_not_set_case + } +} + +type HistoryEvent_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Monotonically increasing event number, starts at 1. + EventId int64 + EventTime *timestamppb.Timestamp + EventType v12.EventType + // Failover version of the event, used by the server for multi-cluster replication and history + // versioning. SDKs generally ignore this field. + Version int64 + // Identifier used by the service to order replication and transfer tasks associated with this + // event. SDKs generally ignore this field. + TaskId int64 + // Set to true when the SDK may ignore the event as it does not impact workflow state or + // information in any way that the SDK need be concerned with. If an SDK encounters an event + // type which it does not understand, it must error unless this is true. If it is true, it's + // acceptable for the event type and/or attributes to be uninterpretable. + WorkerMayIgnore bool + // Metadata on the event. This is often carried over from commands and client calls. Most events + // won't have this information, and how this information is used is dependent upon the interface + // that reads it. + // + // Current well-known uses: + // - workflow_execution_started_event_attributes - summary and details from start workflow. + // - timer_started_event_attributes - summary represents an identifier for the timer for use by + // user interfaces. + UserMetadata *v16.UserMetadata + // Links associated with the event. + Links []*v1.Link + // The event details. The type must match that in `event_type`. + + // Fields of oneof xxx_hidden_Attributes: + WorkflowExecutionStartedEventAttributes *WorkflowExecutionStartedEventAttributes + WorkflowExecutionCompletedEventAttributes *WorkflowExecutionCompletedEventAttributes + WorkflowExecutionFailedEventAttributes *WorkflowExecutionFailedEventAttributes + WorkflowExecutionTimedOutEventAttributes *WorkflowExecutionTimedOutEventAttributes + WorkflowTaskScheduledEventAttributes *WorkflowTaskScheduledEventAttributes + WorkflowTaskStartedEventAttributes *WorkflowTaskStartedEventAttributes + WorkflowTaskCompletedEventAttributes *WorkflowTaskCompletedEventAttributes + WorkflowTaskTimedOutEventAttributes *WorkflowTaskTimedOutEventAttributes + WorkflowTaskFailedEventAttributes *WorkflowTaskFailedEventAttributes + ActivityTaskScheduledEventAttributes *ActivityTaskScheduledEventAttributes + ActivityTaskStartedEventAttributes *ActivityTaskStartedEventAttributes + ActivityTaskCompletedEventAttributes *ActivityTaskCompletedEventAttributes + ActivityTaskFailedEventAttributes *ActivityTaskFailedEventAttributes + ActivityTaskTimedOutEventAttributes *ActivityTaskTimedOutEventAttributes + TimerStartedEventAttributes *TimerStartedEventAttributes + TimerFiredEventAttributes *TimerFiredEventAttributes + ActivityTaskCancelRequestedEventAttributes *ActivityTaskCancelRequestedEventAttributes + ActivityTaskCanceledEventAttributes *ActivityTaskCanceledEventAttributes + TimerCanceledEventAttributes *TimerCanceledEventAttributes + MarkerRecordedEventAttributes *MarkerRecordedEventAttributes + WorkflowExecutionSignaledEventAttributes *WorkflowExecutionSignaledEventAttributes + WorkflowExecutionTerminatedEventAttributes *WorkflowExecutionTerminatedEventAttributes + WorkflowExecutionCancelRequestedEventAttributes *WorkflowExecutionCancelRequestedEventAttributes + WorkflowExecutionCanceledEventAttributes *WorkflowExecutionCanceledEventAttributes + RequestCancelExternalWorkflowExecutionInitiatedEventAttributes *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes + RequestCancelExternalWorkflowExecutionFailedEventAttributes *RequestCancelExternalWorkflowExecutionFailedEventAttributes + ExternalWorkflowExecutionCancelRequestedEventAttributes *ExternalWorkflowExecutionCancelRequestedEventAttributes + WorkflowExecutionContinuedAsNewEventAttributes *WorkflowExecutionContinuedAsNewEventAttributes + StartChildWorkflowExecutionInitiatedEventAttributes *StartChildWorkflowExecutionInitiatedEventAttributes + StartChildWorkflowExecutionFailedEventAttributes *StartChildWorkflowExecutionFailedEventAttributes + ChildWorkflowExecutionStartedEventAttributes *ChildWorkflowExecutionStartedEventAttributes + ChildWorkflowExecutionCompletedEventAttributes *ChildWorkflowExecutionCompletedEventAttributes + ChildWorkflowExecutionFailedEventAttributes *ChildWorkflowExecutionFailedEventAttributes + ChildWorkflowExecutionCanceledEventAttributes *ChildWorkflowExecutionCanceledEventAttributes + ChildWorkflowExecutionTimedOutEventAttributes *ChildWorkflowExecutionTimedOutEventAttributes + ChildWorkflowExecutionTerminatedEventAttributes *ChildWorkflowExecutionTerminatedEventAttributes + SignalExternalWorkflowExecutionInitiatedEventAttributes *SignalExternalWorkflowExecutionInitiatedEventAttributes + SignalExternalWorkflowExecutionFailedEventAttributes *SignalExternalWorkflowExecutionFailedEventAttributes + ExternalWorkflowExecutionSignaledEventAttributes *ExternalWorkflowExecutionSignaledEventAttributes + UpsertWorkflowSearchAttributesEventAttributes *UpsertWorkflowSearchAttributesEventAttributes + WorkflowExecutionUpdateAcceptedEventAttributes *WorkflowExecutionUpdateAcceptedEventAttributes + WorkflowExecutionUpdateRejectedEventAttributes *WorkflowExecutionUpdateRejectedEventAttributes + WorkflowExecutionUpdateCompletedEventAttributes *WorkflowExecutionUpdateCompletedEventAttributes + WorkflowPropertiesModifiedExternallyEventAttributes *WorkflowPropertiesModifiedExternallyEventAttributes + ActivityPropertiesModifiedExternallyEventAttributes *ActivityPropertiesModifiedExternallyEventAttributes + WorkflowPropertiesModifiedEventAttributes *WorkflowPropertiesModifiedEventAttributes + WorkflowExecutionUpdateAdmittedEventAttributes *WorkflowExecutionUpdateAdmittedEventAttributes + NexusOperationScheduledEventAttributes *NexusOperationScheduledEventAttributes + NexusOperationStartedEventAttributes *NexusOperationStartedEventAttributes + NexusOperationCompletedEventAttributes *NexusOperationCompletedEventAttributes + NexusOperationFailedEventAttributes *NexusOperationFailedEventAttributes + NexusOperationCanceledEventAttributes *NexusOperationCanceledEventAttributes + NexusOperationTimedOutEventAttributes *NexusOperationTimedOutEventAttributes + NexusOperationCancelRequestedEventAttributes *NexusOperationCancelRequestedEventAttributes + WorkflowExecutionOptionsUpdatedEventAttributes *WorkflowExecutionOptionsUpdatedEventAttributes + NexusOperationCancelRequestCompletedEventAttributes *NexusOperationCancelRequestCompletedEventAttributes + NexusOperationCancelRequestFailedEventAttributes *NexusOperationCancelRequestFailedEventAttributes + WorkflowExecutionPausedEventAttributes *WorkflowExecutionPausedEventAttributes + WorkflowExecutionUnpausedEventAttributes *WorkflowExecutionUnpausedEventAttributes + // -- end of xxx_hidden_Attributes +} + +func (b0 HistoryEvent_builder) Build() *HistoryEvent { + m0 := &HistoryEvent{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_EventId = b.EventId + x.xxx_hidden_EventTime = b.EventTime + x.xxx_hidden_EventType = b.EventType + x.xxx_hidden_Version = b.Version + x.xxx_hidden_TaskId = b.TaskId + x.xxx_hidden_WorkerMayIgnore = b.WorkerMayIgnore + x.xxx_hidden_UserMetadata = b.UserMetadata + x.xxx_hidden_Links = &b.Links + if b.WorkflowExecutionStartedEventAttributes != nil { + x.xxx_hidden_Attributes = &historyEvent_WorkflowExecutionStartedEventAttributes{b.WorkflowExecutionStartedEventAttributes} + } + if b.WorkflowExecutionCompletedEventAttributes != nil { + x.xxx_hidden_Attributes = &historyEvent_WorkflowExecutionCompletedEventAttributes{b.WorkflowExecutionCompletedEventAttributes} + } + if b.WorkflowExecutionFailedEventAttributes != nil { + x.xxx_hidden_Attributes = &historyEvent_WorkflowExecutionFailedEventAttributes{b.WorkflowExecutionFailedEventAttributes} + } + if b.WorkflowExecutionTimedOutEventAttributes != nil { + x.xxx_hidden_Attributes = &historyEvent_WorkflowExecutionTimedOutEventAttributes{b.WorkflowExecutionTimedOutEventAttributes} + } + if b.WorkflowTaskScheduledEventAttributes != nil { + x.xxx_hidden_Attributes = &historyEvent_WorkflowTaskScheduledEventAttributes{b.WorkflowTaskScheduledEventAttributes} + } + if b.WorkflowTaskStartedEventAttributes != nil { + x.xxx_hidden_Attributes = &historyEvent_WorkflowTaskStartedEventAttributes{b.WorkflowTaskStartedEventAttributes} + } + if b.WorkflowTaskCompletedEventAttributes != nil { + x.xxx_hidden_Attributes = &historyEvent_WorkflowTaskCompletedEventAttributes{b.WorkflowTaskCompletedEventAttributes} + } + if b.WorkflowTaskTimedOutEventAttributes != nil { + x.xxx_hidden_Attributes = &historyEvent_WorkflowTaskTimedOutEventAttributes{b.WorkflowTaskTimedOutEventAttributes} + } + if b.WorkflowTaskFailedEventAttributes != nil { + x.xxx_hidden_Attributes = &historyEvent_WorkflowTaskFailedEventAttributes{b.WorkflowTaskFailedEventAttributes} + } + if b.ActivityTaskScheduledEventAttributes != nil { + x.xxx_hidden_Attributes = &historyEvent_ActivityTaskScheduledEventAttributes{b.ActivityTaskScheduledEventAttributes} + } + if b.ActivityTaskStartedEventAttributes != nil { + x.xxx_hidden_Attributes = &historyEvent_ActivityTaskStartedEventAttributes{b.ActivityTaskStartedEventAttributes} + } + if b.ActivityTaskCompletedEventAttributes != nil { + x.xxx_hidden_Attributes = &historyEvent_ActivityTaskCompletedEventAttributes{b.ActivityTaskCompletedEventAttributes} + } + if b.ActivityTaskFailedEventAttributes != nil { + x.xxx_hidden_Attributes = &historyEvent_ActivityTaskFailedEventAttributes{b.ActivityTaskFailedEventAttributes} + } + if b.ActivityTaskTimedOutEventAttributes != nil { + x.xxx_hidden_Attributes = &historyEvent_ActivityTaskTimedOutEventAttributes{b.ActivityTaskTimedOutEventAttributes} + } + if b.TimerStartedEventAttributes != nil { + x.xxx_hidden_Attributes = &historyEvent_TimerStartedEventAttributes{b.TimerStartedEventAttributes} + } + if b.TimerFiredEventAttributes != nil { + x.xxx_hidden_Attributes = &historyEvent_TimerFiredEventAttributes{b.TimerFiredEventAttributes} + } + if b.ActivityTaskCancelRequestedEventAttributes != nil { + x.xxx_hidden_Attributes = &historyEvent_ActivityTaskCancelRequestedEventAttributes{b.ActivityTaskCancelRequestedEventAttributes} + } + if b.ActivityTaskCanceledEventAttributes != nil { + x.xxx_hidden_Attributes = &historyEvent_ActivityTaskCanceledEventAttributes{b.ActivityTaskCanceledEventAttributes} + } + if b.TimerCanceledEventAttributes != nil { + x.xxx_hidden_Attributes = &historyEvent_TimerCanceledEventAttributes{b.TimerCanceledEventAttributes} + } + if b.MarkerRecordedEventAttributes != nil { + x.xxx_hidden_Attributes = &historyEvent_MarkerRecordedEventAttributes{b.MarkerRecordedEventAttributes} + } + if b.WorkflowExecutionSignaledEventAttributes != nil { + x.xxx_hidden_Attributes = &historyEvent_WorkflowExecutionSignaledEventAttributes{b.WorkflowExecutionSignaledEventAttributes} + } + if b.WorkflowExecutionTerminatedEventAttributes != nil { + x.xxx_hidden_Attributes = &historyEvent_WorkflowExecutionTerminatedEventAttributes{b.WorkflowExecutionTerminatedEventAttributes} + } + if b.WorkflowExecutionCancelRequestedEventAttributes != nil { + x.xxx_hidden_Attributes = &historyEvent_WorkflowExecutionCancelRequestedEventAttributes{b.WorkflowExecutionCancelRequestedEventAttributes} + } + if b.WorkflowExecutionCanceledEventAttributes != nil { + x.xxx_hidden_Attributes = &historyEvent_WorkflowExecutionCanceledEventAttributes{b.WorkflowExecutionCanceledEventAttributes} + } + if b.RequestCancelExternalWorkflowExecutionInitiatedEventAttributes != nil { + x.xxx_hidden_Attributes = &historyEvent_RequestCancelExternalWorkflowExecutionInitiatedEventAttributes{b.RequestCancelExternalWorkflowExecutionInitiatedEventAttributes} + } + if b.RequestCancelExternalWorkflowExecutionFailedEventAttributes != nil { + x.xxx_hidden_Attributes = &historyEvent_RequestCancelExternalWorkflowExecutionFailedEventAttributes{b.RequestCancelExternalWorkflowExecutionFailedEventAttributes} + } + if b.ExternalWorkflowExecutionCancelRequestedEventAttributes != nil { + x.xxx_hidden_Attributes = &historyEvent_ExternalWorkflowExecutionCancelRequestedEventAttributes{b.ExternalWorkflowExecutionCancelRequestedEventAttributes} + } + if b.WorkflowExecutionContinuedAsNewEventAttributes != nil { + x.xxx_hidden_Attributes = &historyEvent_WorkflowExecutionContinuedAsNewEventAttributes{b.WorkflowExecutionContinuedAsNewEventAttributes} + } + if b.StartChildWorkflowExecutionInitiatedEventAttributes != nil { + x.xxx_hidden_Attributes = &historyEvent_StartChildWorkflowExecutionInitiatedEventAttributes{b.StartChildWorkflowExecutionInitiatedEventAttributes} + } + if b.StartChildWorkflowExecutionFailedEventAttributes != nil { + x.xxx_hidden_Attributes = &historyEvent_StartChildWorkflowExecutionFailedEventAttributes{b.StartChildWorkflowExecutionFailedEventAttributes} + } + if b.ChildWorkflowExecutionStartedEventAttributes != nil { + x.xxx_hidden_Attributes = &historyEvent_ChildWorkflowExecutionStartedEventAttributes{b.ChildWorkflowExecutionStartedEventAttributes} + } + if b.ChildWorkflowExecutionCompletedEventAttributes != nil { + x.xxx_hidden_Attributes = &historyEvent_ChildWorkflowExecutionCompletedEventAttributes{b.ChildWorkflowExecutionCompletedEventAttributes} + } + if b.ChildWorkflowExecutionFailedEventAttributes != nil { + x.xxx_hidden_Attributes = &historyEvent_ChildWorkflowExecutionFailedEventAttributes{b.ChildWorkflowExecutionFailedEventAttributes} + } + if b.ChildWorkflowExecutionCanceledEventAttributes != nil { + x.xxx_hidden_Attributes = &historyEvent_ChildWorkflowExecutionCanceledEventAttributes{b.ChildWorkflowExecutionCanceledEventAttributes} + } + if b.ChildWorkflowExecutionTimedOutEventAttributes != nil { + x.xxx_hidden_Attributes = &historyEvent_ChildWorkflowExecutionTimedOutEventAttributes{b.ChildWorkflowExecutionTimedOutEventAttributes} + } + if b.ChildWorkflowExecutionTerminatedEventAttributes != nil { + x.xxx_hidden_Attributes = &historyEvent_ChildWorkflowExecutionTerminatedEventAttributes{b.ChildWorkflowExecutionTerminatedEventAttributes} + } + if b.SignalExternalWorkflowExecutionInitiatedEventAttributes != nil { + x.xxx_hidden_Attributes = &historyEvent_SignalExternalWorkflowExecutionInitiatedEventAttributes{b.SignalExternalWorkflowExecutionInitiatedEventAttributes} + } + if b.SignalExternalWorkflowExecutionFailedEventAttributes != nil { + x.xxx_hidden_Attributes = &historyEvent_SignalExternalWorkflowExecutionFailedEventAttributes{b.SignalExternalWorkflowExecutionFailedEventAttributes} + } + if b.ExternalWorkflowExecutionSignaledEventAttributes != nil { + x.xxx_hidden_Attributes = &historyEvent_ExternalWorkflowExecutionSignaledEventAttributes{b.ExternalWorkflowExecutionSignaledEventAttributes} + } + if b.UpsertWorkflowSearchAttributesEventAttributes != nil { + x.xxx_hidden_Attributes = &historyEvent_UpsertWorkflowSearchAttributesEventAttributes{b.UpsertWorkflowSearchAttributesEventAttributes} + } + if b.WorkflowExecutionUpdateAcceptedEventAttributes != nil { + x.xxx_hidden_Attributes = &historyEvent_WorkflowExecutionUpdateAcceptedEventAttributes{b.WorkflowExecutionUpdateAcceptedEventAttributes} + } + if b.WorkflowExecutionUpdateRejectedEventAttributes != nil { + x.xxx_hidden_Attributes = &historyEvent_WorkflowExecutionUpdateRejectedEventAttributes{b.WorkflowExecutionUpdateRejectedEventAttributes} + } + if b.WorkflowExecutionUpdateCompletedEventAttributes != nil { + x.xxx_hidden_Attributes = &historyEvent_WorkflowExecutionUpdateCompletedEventAttributes{b.WorkflowExecutionUpdateCompletedEventAttributes} + } + if b.WorkflowPropertiesModifiedExternallyEventAttributes != nil { + x.xxx_hidden_Attributes = &historyEvent_WorkflowPropertiesModifiedExternallyEventAttributes{b.WorkflowPropertiesModifiedExternallyEventAttributes} + } + if b.ActivityPropertiesModifiedExternallyEventAttributes != nil { + x.xxx_hidden_Attributes = &historyEvent_ActivityPropertiesModifiedExternallyEventAttributes{b.ActivityPropertiesModifiedExternallyEventAttributes} + } + if b.WorkflowPropertiesModifiedEventAttributes != nil { + x.xxx_hidden_Attributes = &historyEvent_WorkflowPropertiesModifiedEventAttributes{b.WorkflowPropertiesModifiedEventAttributes} + } + if b.WorkflowExecutionUpdateAdmittedEventAttributes != nil { + x.xxx_hidden_Attributes = &historyEvent_WorkflowExecutionUpdateAdmittedEventAttributes{b.WorkflowExecutionUpdateAdmittedEventAttributes} + } + if b.NexusOperationScheduledEventAttributes != nil { + x.xxx_hidden_Attributes = &historyEvent_NexusOperationScheduledEventAttributes{b.NexusOperationScheduledEventAttributes} + } + if b.NexusOperationStartedEventAttributes != nil { + x.xxx_hidden_Attributes = &historyEvent_NexusOperationStartedEventAttributes{b.NexusOperationStartedEventAttributes} + } + if b.NexusOperationCompletedEventAttributes != nil { + x.xxx_hidden_Attributes = &historyEvent_NexusOperationCompletedEventAttributes{b.NexusOperationCompletedEventAttributes} + } + if b.NexusOperationFailedEventAttributes != nil { + x.xxx_hidden_Attributes = &historyEvent_NexusOperationFailedEventAttributes{b.NexusOperationFailedEventAttributes} + } + if b.NexusOperationCanceledEventAttributes != nil { + x.xxx_hidden_Attributes = &historyEvent_NexusOperationCanceledEventAttributes{b.NexusOperationCanceledEventAttributes} + } + if b.NexusOperationTimedOutEventAttributes != nil { + x.xxx_hidden_Attributes = &historyEvent_NexusOperationTimedOutEventAttributes{b.NexusOperationTimedOutEventAttributes} + } + if b.NexusOperationCancelRequestedEventAttributes != nil { + x.xxx_hidden_Attributes = &historyEvent_NexusOperationCancelRequestedEventAttributes{b.NexusOperationCancelRequestedEventAttributes} + } + if b.WorkflowExecutionOptionsUpdatedEventAttributes != nil { + x.xxx_hidden_Attributes = &historyEvent_WorkflowExecutionOptionsUpdatedEventAttributes{b.WorkflowExecutionOptionsUpdatedEventAttributes} + } + if b.NexusOperationCancelRequestCompletedEventAttributes != nil { + x.xxx_hidden_Attributes = &historyEvent_NexusOperationCancelRequestCompletedEventAttributes{b.NexusOperationCancelRequestCompletedEventAttributes} + } + if b.NexusOperationCancelRequestFailedEventAttributes != nil { + x.xxx_hidden_Attributes = &historyEvent_NexusOperationCancelRequestFailedEventAttributes{b.NexusOperationCancelRequestFailedEventAttributes} + } + if b.WorkflowExecutionPausedEventAttributes != nil { + x.xxx_hidden_Attributes = &historyEvent_WorkflowExecutionPausedEventAttributes{b.WorkflowExecutionPausedEventAttributes} + } + if b.WorkflowExecutionUnpausedEventAttributes != nil { + x.xxx_hidden_Attributes = &historyEvent_WorkflowExecutionUnpausedEventAttributes{b.WorkflowExecutionUnpausedEventAttributes} + } + return m0 +} + +type case_HistoryEvent_Attributes protoreflect.FieldNumber + +func (x case_HistoryEvent_Attributes) String() string { + switch x { + case HistoryEvent_Attributes_not_set_case: + return "HistoryEventAttributesNotSetCase" + case HistoryEvent_WorkflowExecutionStartedEventAttributes_case: + return "HistoryEventWorkflowExecutionStartedEventAttributesCase" + case HistoryEvent_WorkflowExecutionCompletedEventAttributes_case: + return "HistoryEventWorkflowExecutionCompletedEventAttributesCase" + case HistoryEvent_WorkflowExecutionFailedEventAttributes_case: + return "HistoryEventWorkflowExecutionFailedEventAttributesCase" + case HistoryEvent_WorkflowExecutionTimedOutEventAttributes_case: + return "HistoryEventWorkflowExecutionTimedOutEventAttributesCase" + case HistoryEvent_WorkflowTaskScheduledEventAttributes_case: + return "HistoryEventWorkflowTaskScheduledEventAttributesCase" + case HistoryEvent_WorkflowTaskStartedEventAttributes_case: + return "HistoryEventWorkflowTaskStartedEventAttributesCase" + case HistoryEvent_WorkflowTaskCompletedEventAttributes_case: + return "HistoryEventWorkflowTaskCompletedEventAttributesCase" + case HistoryEvent_WorkflowTaskTimedOutEventAttributes_case: + return "HistoryEventWorkflowTaskTimedOutEventAttributesCase" + case HistoryEvent_WorkflowTaskFailedEventAttributes_case: + return "HistoryEventWorkflowTaskFailedEventAttributesCase" + case HistoryEvent_ActivityTaskScheduledEventAttributes_case: + return "HistoryEventActivityTaskScheduledEventAttributesCase" + case HistoryEvent_ActivityTaskStartedEventAttributes_case: + return "HistoryEventActivityTaskStartedEventAttributesCase" + case HistoryEvent_ActivityTaskCompletedEventAttributes_case: + return "HistoryEventActivityTaskCompletedEventAttributesCase" + case HistoryEvent_ActivityTaskFailedEventAttributes_case: + return "HistoryEventActivityTaskFailedEventAttributesCase" + case HistoryEvent_ActivityTaskTimedOutEventAttributes_case: + return "HistoryEventActivityTaskTimedOutEventAttributesCase" + case HistoryEvent_TimerStartedEventAttributes_case: + return "HistoryEventTimerStartedEventAttributesCase" + case HistoryEvent_TimerFiredEventAttributes_case: + return "HistoryEventTimerFiredEventAttributesCase" + case HistoryEvent_ActivityTaskCancelRequestedEventAttributes_case: + return "HistoryEventActivityTaskCancelRequestedEventAttributesCase" + case HistoryEvent_ActivityTaskCanceledEventAttributes_case: + return "HistoryEventActivityTaskCanceledEventAttributesCase" + case HistoryEvent_TimerCanceledEventAttributes_case: + return "HistoryEventTimerCanceledEventAttributesCase" + case HistoryEvent_MarkerRecordedEventAttributes_case: + return "HistoryEventMarkerRecordedEventAttributesCase" + case HistoryEvent_WorkflowExecutionSignaledEventAttributes_case: + return "HistoryEventWorkflowExecutionSignaledEventAttributesCase" + case HistoryEvent_WorkflowExecutionTerminatedEventAttributes_case: + return "HistoryEventWorkflowExecutionTerminatedEventAttributesCase" + case HistoryEvent_WorkflowExecutionCancelRequestedEventAttributes_case: + return "HistoryEventWorkflowExecutionCancelRequestedEventAttributesCase" + case HistoryEvent_WorkflowExecutionCanceledEventAttributes_case: + return "HistoryEventWorkflowExecutionCanceledEventAttributesCase" + case HistoryEvent_RequestCancelExternalWorkflowExecutionInitiatedEventAttributes_case: + return "HistoryEventRequestCancelExternalWorkflowExecutionInitiatedEventAttributesCase" + case HistoryEvent_RequestCancelExternalWorkflowExecutionFailedEventAttributes_case: + return "HistoryEventRequestCancelExternalWorkflowExecutionFailedEventAttributesCase" + case HistoryEvent_ExternalWorkflowExecutionCancelRequestedEventAttributes_case: + return "HistoryEventExternalWorkflowExecutionCancelRequestedEventAttributesCase" + case HistoryEvent_WorkflowExecutionContinuedAsNewEventAttributes_case: + return "HistoryEventWorkflowExecutionContinuedAsNewEventAttributesCase" + case HistoryEvent_StartChildWorkflowExecutionInitiatedEventAttributes_case: + return "HistoryEventStartChildWorkflowExecutionInitiatedEventAttributesCase" + case HistoryEvent_StartChildWorkflowExecutionFailedEventAttributes_case: + return "HistoryEventStartChildWorkflowExecutionFailedEventAttributesCase" + case HistoryEvent_ChildWorkflowExecutionStartedEventAttributes_case: + return "HistoryEventChildWorkflowExecutionStartedEventAttributesCase" + case HistoryEvent_ChildWorkflowExecutionCompletedEventAttributes_case: + return "HistoryEventChildWorkflowExecutionCompletedEventAttributesCase" + case HistoryEvent_ChildWorkflowExecutionFailedEventAttributes_case: + return "HistoryEventChildWorkflowExecutionFailedEventAttributesCase" + case HistoryEvent_ChildWorkflowExecutionCanceledEventAttributes_case: + return "HistoryEventChildWorkflowExecutionCanceledEventAttributesCase" + case HistoryEvent_ChildWorkflowExecutionTimedOutEventAttributes_case: + return "HistoryEventChildWorkflowExecutionTimedOutEventAttributesCase" + case HistoryEvent_ChildWorkflowExecutionTerminatedEventAttributes_case: + return "HistoryEventChildWorkflowExecutionTerminatedEventAttributesCase" + case HistoryEvent_SignalExternalWorkflowExecutionInitiatedEventAttributes_case: + return "HistoryEventSignalExternalWorkflowExecutionInitiatedEventAttributesCase" + case HistoryEvent_SignalExternalWorkflowExecutionFailedEventAttributes_case: + return "HistoryEventSignalExternalWorkflowExecutionFailedEventAttributesCase" + case HistoryEvent_ExternalWorkflowExecutionSignaledEventAttributes_case: + return "HistoryEventExternalWorkflowExecutionSignaledEventAttributesCase" + case HistoryEvent_UpsertWorkflowSearchAttributesEventAttributes_case: + return "HistoryEventUpsertWorkflowSearchAttributesEventAttributesCase" + case HistoryEvent_WorkflowExecutionUpdateAcceptedEventAttributes_case: + return "HistoryEventWorkflowExecutionUpdateAcceptedEventAttributesCase" + case HistoryEvent_WorkflowExecutionUpdateRejectedEventAttributes_case: + return "HistoryEventWorkflowExecutionUpdateRejectedEventAttributesCase" + case HistoryEvent_WorkflowExecutionUpdateCompletedEventAttributes_case: + return "HistoryEventWorkflowExecutionUpdateCompletedEventAttributesCase" + case HistoryEvent_WorkflowPropertiesModifiedExternallyEventAttributes_case: + return "HistoryEventWorkflowPropertiesModifiedExternallyEventAttributesCase" + case HistoryEvent_ActivityPropertiesModifiedExternallyEventAttributes_case: + return "HistoryEventActivityPropertiesModifiedExternallyEventAttributesCase" + case HistoryEvent_WorkflowPropertiesModifiedEventAttributes_case: + return "HistoryEventWorkflowPropertiesModifiedEventAttributesCase" + case HistoryEvent_WorkflowExecutionUpdateAdmittedEventAttributes_case: + return "HistoryEventWorkflowExecutionUpdateAdmittedEventAttributesCase" + case HistoryEvent_NexusOperationScheduledEventAttributes_case: + return "HistoryEventNexusOperationScheduledEventAttributesCase" + case HistoryEvent_NexusOperationStartedEventAttributes_case: + return "HistoryEventNexusOperationStartedEventAttributesCase" + case HistoryEvent_NexusOperationCompletedEventAttributes_case: + return "HistoryEventNexusOperationCompletedEventAttributesCase" + case HistoryEvent_NexusOperationFailedEventAttributes_case: + return "HistoryEventNexusOperationFailedEventAttributesCase" + case HistoryEvent_NexusOperationCanceledEventAttributes_case: + return "HistoryEventNexusOperationCanceledEventAttributesCase" + case HistoryEvent_NexusOperationTimedOutEventAttributes_case: + return "HistoryEventNexusOperationTimedOutEventAttributesCase" + case HistoryEvent_NexusOperationCancelRequestedEventAttributes_case: + return "HistoryEventNexusOperationCancelRequestedEventAttributesCase" + case HistoryEvent_WorkflowExecutionOptionsUpdatedEventAttributes_case: + return "HistoryEventWorkflowExecutionOptionsUpdatedEventAttributesCase" + case HistoryEvent_NexusOperationCancelRequestCompletedEventAttributes_case: + return "HistoryEventNexusOperationCancelRequestCompletedEventAttributesCase" + case HistoryEvent_NexusOperationCancelRequestFailedEventAttributes_case: + return "HistoryEventNexusOperationCancelRequestFailedEventAttributesCase" + case HistoryEvent_WorkflowExecutionPausedEventAttributes_case: + return "HistoryEventWorkflowExecutionPausedEventAttributesCase" + case HistoryEvent_WorkflowExecutionUnpausedEventAttributes_case: + return "HistoryEventWorkflowExecutionUnpausedEventAttributesCase" + default: + return strconv.Itoa(int(x)) + } + +} + +type isHistoryEvent_Attributes interface { + isHistoryEvent_Attributes() +} + +type historyEvent_WorkflowExecutionStartedEventAttributes struct { + WorkflowExecutionStartedEventAttributes *WorkflowExecutionStartedEventAttributes `protobuf:"bytes,6,opt,name=workflow_execution_started_event_attributes,json=workflowExecutionStartedEventAttributes,proto3,oneof"` +} + +type historyEvent_WorkflowExecutionCompletedEventAttributes struct { + WorkflowExecutionCompletedEventAttributes *WorkflowExecutionCompletedEventAttributes `protobuf:"bytes,7,opt,name=workflow_execution_completed_event_attributes,json=workflowExecutionCompletedEventAttributes,proto3,oneof"` +} + +type historyEvent_WorkflowExecutionFailedEventAttributes struct { + WorkflowExecutionFailedEventAttributes *WorkflowExecutionFailedEventAttributes `protobuf:"bytes,8,opt,name=workflow_execution_failed_event_attributes,json=workflowExecutionFailedEventAttributes,proto3,oneof"` +} + +type historyEvent_WorkflowExecutionTimedOutEventAttributes struct { + WorkflowExecutionTimedOutEventAttributes *WorkflowExecutionTimedOutEventAttributes `protobuf:"bytes,9,opt,name=workflow_execution_timed_out_event_attributes,json=workflowExecutionTimedOutEventAttributes,proto3,oneof"` +} + +type historyEvent_WorkflowTaskScheduledEventAttributes struct { + WorkflowTaskScheduledEventAttributes *WorkflowTaskScheduledEventAttributes `protobuf:"bytes,10,opt,name=workflow_task_scheduled_event_attributes,json=workflowTaskScheduledEventAttributes,proto3,oneof"` +} + +type historyEvent_WorkflowTaskStartedEventAttributes struct { + WorkflowTaskStartedEventAttributes *WorkflowTaskStartedEventAttributes `protobuf:"bytes,11,opt,name=workflow_task_started_event_attributes,json=workflowTaskStartedEventAttributes,proto3,oneof"` +} + +type historyEvent_WorkflowTaskCompletedEventAttributes struct { + WorkflowTaskCompletedEventAttributes *WorkflowTaskCompletedEventAttributes `protobuf:"bytes,12,opt,name=workflow_task_completed_event_attributes,json=workflowTaskCompletedEventAttributes,proto3,oneof"` +} + +type historyEvent_WorkflowTaskTimedOutEventAttributes struct { + WorkflowTaskTimedOutEventAttributes *WorkflowTaskTimedOutEventAttributes `protobuf:"bytes,13,opt,name=workflow_task_timed_out_event_attributes,json=workflowTaskTimedOutEventAttributes,proto3,oneof"` +} + +type historyEvent_WorkflowTaskFailedEventAttributes struct { + WorkflowTaskFailedEventAttributes *WorkflowTaskFailedEventAttributes `protobuf:"bytes,14,opt,name=workflow_task_failed_event_attributes,json=workflowTaskFailedEventAttributes,proto3,oneof"` +} + +type historyEvent_ActivityTaskScheduledEventAttributes struct { + ActivityTaskScheduledEventAttributes *ActivityTaskScheduledEventAttributes `protobuf:"bytes,15,opt,name=activity_task_scheduled_event_attributes,json=activityTaskScheduledEventAttributes,proto3,oneof"` +} + +type historyEvent_ActivityTaskStartedEventAttributes struct { + ActivityTaskStartedEventAttributes *ActivityTaskStartedEventAttributes `protobuf:"bytes,16,opt,name=activity_task_started_event_attributes,json=activityTaskStartedEventAttributes,proto3,oneof"` +} + +type historyEvent_ActivityTaskCompletedEventAttributes struct { + ActivityTaskCompletedEventAttributes *ActivityTaskCompletedEventAttributes `protobuf:"bytes,17,opt,name=activity_task_completed_event_attributes,json=activityTaskCompletedEventAttributes,proto3,oneof"` +} + +type historyEvent_ActivityTaskFailedEventAttributes struct { + ActivityTaskFailedEventAttributes *ActivityTaskFailedEventAttributes `protobuf:"bytes,18,opt,name=activity_task_failed_event_attributes,json=activityTaskFailedEventAttributes,proto3,oneof"` +} + +type historyEvent_ActivityTaskTimedOutEventAttributes struct { + ActivityTaskTimedOutEventAttributes *ActivityTaskTimedOutEventAttributes `protobuf:"bytes,19,opt,name=activity_task_timed_out_event_attributes,json=activityTaskTimedOutEventAttributes,proto3,oneof"` +} + +type historyEvent_TimerStartedEventAttributes struct { + TimerStartedEventAttributes *TimerStartedEventAttributes `protobuf:"bytes,20,opt,name=timer_started_event_attributes,json=timerStartedEventAttributes,proto3,oneof"` +} + +type historyEvent_TimerFiredEventAttributes struct { + TimerFiredEventAttributes *TimerFiredEventAttributes `protobuf:"bytes,21,opt,name=timer_fired_event_attributes,json=timerFiredEventAttributes,proto3,oneof"` +} + +type historyEvent_ActivityTaskCancelRequestedEventAttributes struct { + ActivityTaskCancelRequestedEventAttributes *ActivityTaskCancelRequestedEventAttributes `protobuf:"bytes,22,opt,name=activity_task_cancel_requested_event_attributes,json=activityTaskCancelRequestedEventAttributes,proto3,oneof"` +} + +type historyEvent_ActivityTaskCanceledEventAttributes struct { + ActivityTaskCanceledEventAttributes *ActivityTaskCanceledEventAttributes `protobuf:"bytes,23,opt,name=activity_task_canceled_event_attributes,json=activityTaskCanceledEventAttributes,proto3,oneof"` +} + +type historyEvent_TimerCanceledEventAttributes struct { + TimerCanceledEventAttributes *TimerCanceledEventAttributes `protobuf:"bytes,24,opt,name=timer_canceled_event_attributes,json=timerCanceledEventAttributes,proto3,oneof"` +} + +type historyEvent_MarkerRecordedEventAttributes struct { + MarkerRecordedEventAttributes *MarkerRecordedEventAttributes `protobuf:"bytes,25,opt,name=marker_recorded_event_attributes,json=markerRecordedEventAttributes,proto3,oneof"` +} + +type historyEvent_WorkflowExecutionSignaledEventAttributes struct { + WorkflowExecutionSignaledEventAttributes *WorkflowExecutionSignaledEventAttributes `protobuf:"bytes,26,opt,name=workflow_execution_signaled_event_attributes,json=workflowExecutionSignaledEventAttributes,proto3,oneof"` +} + +type historyEvent_WorkflowExecutionTerminatedEventAttributes struct { + WorkflowExecutionTerminatedEventAttributes *WorkflowExecutionTerminatedEventAttributes `protobuf:"bytes,27,opt,name=workflow_execution_terminated_event_attributes,json=workflowExecutionTerminatedEventAttributes,proto3,oneof"` +} + +type historyEvent_WorkflowExecutionCancelRequestedEventAttributes struct { + WorkflowExecutionCancelRequestedEventAttributes *WorkflowExecutionCancelRequestedEventAttributes `protobuf:"bytes,28,opt,name=workflow_execution_cancel_requested_event_attributes,json=workflowExecutionCancelRequestedEventAttributes,proto3,oneof"` +} + +type historyEvent_WorkflowExecutionCanceledEventAttributes struct { + WorkflowExecutionCanceledEventAttributes *WorkflowExecutionCanceledEventAttributes `protobuf:"bytes,29,opt,name=workflow_execution_canceled_event_attributes,json=workflowExecutionCanceledEventAttributes,proto3,oneof"` +} + +type historyEvent_RequestCancelExternalWorkflowExecutionInitiatedEventAttributes struct { + RequestCancelExternalWorkflowExecutionInitiatedEventAttributes *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes `protobuf:"bytes,30,opt,name=request_cancel_external_workflow_execution_initiated_event_attributes,json=requestCancelExternalWorkflowExecutionInitiatedEventAttributes,proto3,oneof"` +} + +type historyEvent_RequestCancelExternalWorkflowExecutionFailedEventAttributes struct { + RequestCancelExternalWorkflowExecutionFailedEventAttributes *RequestCancelExternalWorkflowExecutionFailedEventAttributes `protobuf:"bytes,31,opt,name=request_cancel_external_workflow_execution_failed_event_attributes,json=requestCancelExternalWorkflowExecutionFailedEventAttributes,proto3,oneof"` +} + +type historyEvent_ExternalWorkflowExecutionCancelRequestedEventAttributes struct { + ExternalWorkflowExecutionCancelRequestedEventAttributes *ExternalWorkflowExecutionCancelRequestedEventAttributes `protobuf:"bytes,32,opt,name=external_workflow_execution_cancel_requested_event_attributes,json=externalWorkflowExecutionCancelRequestedEventAttributes,proto3,oneof"` +} + +type historyEvent_WorkflowExecutionContinuedAsNewEventAttributes struct { + WorkflowExecutionContinuedAsNewEventAttributes *WorkflowExecutionContinuedAsNewEventAttributes `protobuf:"bytes,33,opt,name=workflow_execution_continued_as_new_event_attributes,json=workflowExecutionContinuedAsNewEventAttributes,proto3,oneof"` +} + +type historyEvent_StartChildWorkflowExecutionInitiatedEventAttributes struct { + StartChildWorkflowExecutionInitiatedEventAttributes *StartChildWorkflowExecutionInitiatedEventAttributes `protobuf:"bytes,34,opt,name=start_child_workflow_execution_initiated_event_attributes,json=startChildWorkflowExecutionInitiatedEventAttributes,proto3,oneof"` +} + +type historyEvent_StartChildWorkflowExecutionFailedEventAttributes struct { + StartChildWorkflowExecutionFailedEventAttributes *StartChildWorkflowExecutionFailedEventAttributes `protobuf:"bytes,35,opt,name=start_child_workflow_execution_failed_event_attributes,json=startChildWorkflowExecutionFailedEventAttributes,proto3,oneof"` +} + +type historyEvent_ChildWorkflowExecutionStartedEventAttributes struct { + ChildWorkflowExecutionStartedEventAttributes *ChildWorkflowExecutionStartedEventAttributes `protobuf:"bytes,36,opt,name=child_workflow_execution_started_event_attributes,json=childWorkflowExecutionStartedEventAttributes,proto3,oneof"` +} + +type historyEvent_ChildWorkflowExecutionCompletedEventAttributes struct { + ChildWorkflowExecutionCompletedEventAttributes *ChildWorkflowExecutionCompletedEventAttributes `protobuf:"bytes,37,opt,name=child_workflow_execution_completed_event_attributes,json=childWorkflowExecutionCompletedEventAttributes,proto3,oneof"` +} + +type historyEvent_ChildWorkflowExecutionFailedEventAttributes struct { + ChildWorkflowExecutionFailedEventAttributes *ChildWorkflowExecutionFailedEventAttributes `protobuf:"bytes,38,opt,name=child_workflow_execution_failed_event_attributes,json=childWorkflowExecutionFailedEventAttributes,proto3,oneof"` +} + +type historyEvent_ChildWorkflowExecutionCanceledEventAttributes struct { + ChildWorkflowExecutionCanceledEventAttributes *ChildWorkflowExecutionCanceledEventAttributes `protobuf:"bytes,39,opt,name=child_workflow_execution_canceled_event_attributes,json=childWorkflowExecutionCanceledEventAttributes,proto3,oneof"` +} + +type historyEvent_ChildWorkflowExecutionTimedOutEventAttributes struct { + ChildWorkflowExecutionTimedOutEventAttributes *ChildWorkflowExecutionTimedOutEventAttributes `protobuf:"bytes,40,opt,name=child_workflow_execution_timed_out_event_attributes,json=childWorkflowExecutionTimedOutEventAttributes,proto3,oneof"` +} + +type historyEvent_ChildWorkflowExecutionTerminatedEventAttributes struct { + ChildWorkflowExecutionTerminatedEventAttributes *ChildWorkflowExecutionTerminatedEventAttributes `protobuf:"bytes,41,opt,name=child_workflow_execution_terminated_event_attributes,json=childWorkflowExecutionTerminatedEventAttributes,proto3,oneof"` +} + +type historyEvent_SignalExternalWorkflowExecutionInitiatedEventAttributes struct { + SignalExternalWorkflowExecutionInitiatedEventAttributes *SignalExternalWorkflowExecutionInitiatedEventAttributes `protobuf:"bytes,42,opt,name=signal_external_workflow_execution_initiated_event_attributes,json=signalExternalWorkflowExecutionInitiatedEventAttributes,proto3,oneof"` +} + +type historyEvent_SignalExternalWorkflowExecutionFailedEventAttributes struct { + SignalExternalWorkflowExecutionFailedEventAttributes *SignalExternalWorkflowExecutionFailedEventAttributes `protobuf:"bytes,43,opt,name=signal_external_workflow_execution_failed_event_attributes,json=signalExternalWorkflowExecutionFailedEventAttributes,proto3,oneof"` +} + +type historyEvent_ExternalWorkflowExecutionSignaledEventAttributes struct { + ExternalWorkflowExecutionSignaledEventAttributes *ExternalWorkflowExecutionSignaledEventAttributes `protobuf:"bytes,44,opt,name=external_workflow_execution_signaled_event_attributes,json=externalWorkflowExecutionSignaledEventAttributes,proto3,oneof"` +} + +type historyEvent_UpsertWorkflowSearchAttributesEventAttributes struct { + UpsertWorkflowSearchAttributesEventAttributes *UpsertWorkflowSearchAttributesEventAttributes `protobuf:"bytes,45,opt,name=upsert_workflow_search_attributes_event_attributes,json=upsertWorkflowSearchAttributesEventAttributes,proto3,oneof"` +} + +type historyEvent_WorkflowExecutionUpdateAcceptedEventAttributes struct { + WorkflowExecutionUpdateAcceptedEventAttributes *WorkflowExecutionUpdateAcceptedEventAttributes `protobuf:"bytes,46,opt,name=workflow_execution_update_accepted_event_attributes,json=workflowExecutionUpdateAcceptedEventAttributes,proto3,oneof"` +} + +type historyEvent_WorkflowExecutionUpdateRejectedEventAttributes struct { + WorkflowExecutionUpdateRejectedEventAttributes *WorkflowExecutionUpdateRejectedEventAttributes `protobuf:"bytes,47,opt,name=workflow_execution_update_rejected_event_attributes,json=workflowExecutionUpdateRejectedEventAttributes,proto3,oneof"` +} + +type historyEvent_WorkflowExecutionUpdateCompletedEventAttributes struct { + WorkflowExecutionUpdateCompletedEventAttributes *WorkflowExecutionUpdateCompletedEventAttributes `protobuf:"bytes,48,opt,name=workflow_execution_update_completed_event_attributes,json=workflowExecutionUpdateCompletedEventAttributes,proto3,oneof"` +} + +type historyEvent_WorkflowPropertiesModifiedExternallyEventAttributes struct { + WorkflowPropertiesModifiedExternallyEventAttributes *WorkflowPropertiesModifiedExternallyEventAttributes `protobuf:"bytes,49,opt,name=workflow_properties_modified_externally_event_attributes,json=workflowPropertiesModifiedExternallyEventAttributes,proto3,oneof"` +} + +type historyEvent_ActivityPropertiesModifiedExternallyEventAttributes struct { + ActivityPropertiesModifiedExternallyEventAttributes *ActivityPropertiesModifiedExternallyEventAttributes `protobuf:"bytes,50,opt,name=activity_properties_modified_externally_event_attributes,json=activityPropertiesModifiedExternallyEventAttributes,proto3,oneof"` +} + +type historyEvent_WorkflowPropertiesModifiedEventAttributes struct { + WorkflowPropertiesModifiedEventAttributes *WorkflowPropertiesModifiedEventAttributes `protobuf:"bytes,51,opt,name=workflow_properties_modified_event_attributes,json=workflowPropertiesModifiedEventAttributes,proto3,oneof"` +} + +type historyEvent_WorkflowExecutionUpdateAdmittedEventAttributes struct { + WorkflowExecutionUpdateAdmittedEventAttributes *WorkflowExecutionUpdateAdmittedEventAttributes `protobuf:"bytes,52,opt,name=workflow_execution_update_admitted_event_attributes,json=workflowExecutionUpdateAdmittedEventAttributes,proto3,oneof"` +} + +type historyEvent_NexusOperationScheduledEventAttributes struct { + NexusOperationScheduledEventAttributes *NexusOperationScheduledEventAttributes `protobuf:"bytes,53,opt,name=nexus_operation_scheduled_event_attributes,json=nexusOperationScheduledEventAttributes,proto3,oneof"` +} + +type historyEvent_NexusOperationStartedEventAttributes struct { + NexusOperationStartedEventAttributes *NexusOperationStartedEventAttributes `protobuf:"bytes,54,opt,name=nexus_operation_started_event_attributes,json=nexusOperationStartedEventAttributes,proto3,oneof"` +} + +type historyEvent_NexusOperationCompletedEventAttributes struct { + NexusOperationCompletedEventAttributes *NexusOperationCompletedEventAttributes `protobuf:"bytes,55,opt,name=nexus_operation_completed_event_attributes,json=nexusOperationCompletedEventAttributes,proto3,oneof"` +} + +type historyEvent_NexusOperationFailedEventAttributes struct { + NexusOperationFailedEventAttributes *NexusOperationFailedEventAttributes `protobuf:"bytes,56,opt,name=nexus_operation_failed_event_attributes,json=nexusOperationFailedEventAttributes,proto3,oneof"` +} + +type historyEvent_NexusOperationCanceledEventAttributes struct { + NexusOperationCanceledEventAttributes *NexusOperationCanceledEventAttributes `protobuf:"bytes,57,opt,name=nexus_operation_canceled_event_attributes,json=nexusOperationCanceledEventAttributes,proto3,oneof"` +} + +type historyEvent_NexusOperationTimedOutEventAttributes struct { + NexusOperationTimedOutEventAttributes *NexusOperationTimedOutEventAttributes `protobuf:"bytes,58,opt,name=nexus_operation_timed_out_event_attributes,json=nexusOperationTimedOutEventAttributes,proto3,oneof"` +} + +type historyEvent_NexusOperationCancelRequestedEventAttributes struct { + NexusOperationCancelRequestedEventAttributes *NexusOperationCancelRequestedEventAttributes `protobuf:"bytes,59,opt,name=nexus_operation_cancel_requested_event_attributes,json=nexusOperationCancelRequestedEventAttributes,proto3,oneof"` +} + +type historyEvent_WorkflowExecutionOptionsUpdatedEventAttributes struct { + WorkflowExecutionOptionsUpdatedEventAttributes *WorkflowExecutionOptionsUpdatedEventAttributes `protobuf:"bytes,60,opt,name=workflow_execution_options_updated_event_attributes,json=workflowExecutionOptionsUpdatedEventAttributes,proto3,oneof"` +} + +type historyEvent_NexusOperationCancelRequestCompletedEventAttributes struct { + NexusOperationCancelRequestCompletedEventAttributes *NexusOperationCancelRequestCompletedEventAttributes `protobuf:"bytes,61,opt,name=nexus_operation_cancel_request_completed_event_attributes,json=nexusOperationCancelRequestCompletedEventAttributes,proto3,oneof"` +} + +type historyEvent_NexusOperationCancelRequestFailedEventAttributes struct { + NexusOperationCancelRequestFailedEventAttributes *NexusOperationCancelRequestFailedEventAttributes `protobuf:"bytes,62,opt,name=nexus_operation_cancel_request_failed_event_attributes,json=nexusOperationCancelRequestFailedEventAttributes,proto3,oneof"` +} + +type historyEvent_WorkflowExecutionPausedEventAttributes struct { + WorkflowExecutionPausedEventAttributes *WorkflowExecutionPausedEventAttributes `protobuf:"bytes,63,opt,name=workflow_execution_paused_event_attributes,json=workflowExecutionPausedEventAttributes,proto3,oneof"` +} + +type historyEvent_WorkflowExecutionUnpausedEventAttributes struct { + WorkflowExecutionUnpausedEventAttributes *WorkflowExecutionUnpausedEventAttributes `protobuf:"bytes,64,opt,name=workflow_execution_unpaused_event_attributes,json=workflowExecutionUnpausedEventAttributes,proto3,oneof"` +} + +func (*historyEvent_WorkflowExecutionStartedEventAttributes) isHistoryEvent_Attributes() {} + +func (*historyEvent_WorkflowExecutionCompletedEventAttributes) isHistoryEvent_Attributes() {} + +func (*historyEvent_WorkflowExecutionFailedEventAttributes) isHistoryEvent_Attributes() {} + +func (*historyEvent_WorkflowExecutionTimedOutEventAttributes) isHistoryEvent_Attributes() {} + +func (*historyEvent_WorkflowTaskScheduledEventAttributes) isHistoryEvent_Attributes() {} + +func (*historyEvent_WorkflowTaskStartedEventAttributes) isHistoryEvent_Attributes() {} + +func (*historyEvent_WorkflowTaskCompletedEventAttributes) isHistoryEvent_Attributes() {} + +func (*historyEvent_WorkflowTaskTimedOutEventAttributes) isHistoryEvent_Attributes() {} + +func (*historyEvent_WorkflowTaskFailedEventAttributes) isHistoryEvent_Attributes() {} + +func (*historyEvent_ActivityTaskScheduledEventAttributes) isHistoryEvent_Attributes() {} + +func (*historyEvent_ActivityTaskStartedEventAttributes) isHistoryEvent_Attributes() {} + +func (*historyEvent_ActivityTaskCompletedEventAttributes) isHistoryEvent_Attributes() {} + +func (*historyEvent_ActivityTaskFailedEventAttributes) isHistoryEvent_Attributes() {} + +func (*historyEvent_ActivityTaskTimedOutEventAttributes) isHistoryEvent_Attributes() {} + +func (*historyEvent_TimerStartedEventAttributes) isHistoryEvent_Attributes() {} + +func (*historyEvent_TimerFiredEventAttributes) isHistoryEvent_Attributes() {} + +func (*historyEvent_ActivityTaskCancelRequestedEventAttributes) isHistoryEvent_Attributes() {} + +func (*historyEvent_ActivityTaskCanceledEventAttributes) isHistoryEvent_Attributes() {} + +func (*historyEvent_TimerCanceledEventAttributes) isHistoryEvent_Attributes() {} + +func (*historyEvent_MarkerRecordedEventAttributes) isHistoryEvent_Attributes() {} + +func (*historyEvent_WorkflowExecutionSignaledEventAttributes) isHistoryEvent_Attributes() {} + +func (*historyEvent_WorkflowExecutionTerminatedEventAttributes) isHistoryEvent_Attributes() {} + +func (*historyEvent_WorkflowExecutionCancelRequestedEventAttributes) isHistoryEvent_Attributes() {} + +func (*historyEvent_WorkflowExecutionCanceledEventAttributes) isHistoryEvent_Attributes() {} + +func (*historyEvent_RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) isHistoryEvent_Attributes() { +} + +func (*historyEvent_RequestCancelExternalWorkflowExecutionFailedEventAttributes) isHistoryEvent_Attributes() { +} + +func (*historyEvent_ExternalWorkflowExecutionCancelRequestedEventAttributes) isHistoryEvent_Attributes() { +} + +func (*historyEvent_WorkflowExecutionContinuedAsNewEventAttributes) isHistoryEvent_Attributes() {} + +func (*historyEvent_StartChildWorkflowExecutionInitiatedEventAttributes) isHistoryEvent_Attributes() { +} + +func (*historyEvent_StartChildWorkflowExecutionFailedEventAttributes) isHistoryEvent_Attributes() {} + +func (*historyEvent_ChildWorkflowExecutionStartedEventAttributes) isHistoryEvent_Attributes() {} + +func (*historyEvent_ChildWorkflowExecutionCompletedEventAttributes) isHistoryEvent_Attributes() {} + +func (*historyEvent_ChildWorkflowExecutionFailedEventAttributes) isHistoryEvent_Attributes() {} + +func (*historyEvent_ChildWorkflowExecutionCanceledEventAttributes) isHistoryEvent_Attributes() {} + +func (*historyEvent_ChildWorkflowExecutionTimedOutEventAttributes) isHistoryEvent_Attributes() {} + +func (*historyEvent_ChildWorkflowExecutionTerminatedEventAttributes) isHistoryEvent_Attributes() {} + +func (*historyEvent_SignalExternalWorkflowExecutionInitiatedEventAttributes) isHistoryEvent_Attributes() { +} + +func (*historyEvent_SignalExternalWorkflowExecutionFailedEventAttributes) isHistoryEvent_Attributes() { +} + +func (*historyEvent_ExternalWorkflowExecutionSignaledEventAttributes) isHistoryEvent_Attributes() {} + +func (*historyEvent_UpsertWorkflowSearchAttributesEventAttributes) isHistoryEvent_Attributes() {} + +func (*historyEvent_WorkflowExecutionUpdateAcceptedEventAttributes) isHistoryEvent_Attributes() {} + +func (*historyEvent_WorkflowExecutionUpdateRejectedEventAttributes) isHistoryEvent_Attributes() {} + +func (*historyEvent_WorkflowExecutionUpdateCompletedEventAttributes) isHistoryEvent_Attributes() {} + +func (*historyEvent_WorkflowPropertiesModifiedExternallyEventAttributes) isHistoryEvent_Attributes() { +} + +func (*historyEvent_ActivityPropertiesModifiedExternallyEventAttributes) isHistoryEvent_Attributes() { +} + +func (*historyEvent_WorkflowPropertiesModifiedEventAttributes) isHistoryEvent_Attributes() {} + +func (*historyEvent_WorkflowExecutionUpdateAdmittedEventAttributes) isHistoryEvent_Attributes() {} + +func (*historyEvent_NexusOperationScheduledEventAttributes) isHistoryEvent_Attributes() {} + +func (*historyEvent_NexusOperationStartedEventAttributes) isHistoryEvent_Attributes() {} + +func (*historyEvent_NexusOperationCompletedEventAttributes) isHistoryEvent_Attributes() {} + +func (*historyEvent_NexusOperationFailedEventAttributes) isHistoryEvent_Attributes() {} + +func (*historyEvent_NexusOperationCanceledEventAttributes) isHistoryEvent_Attributes() {} + +func (*historyEvent_NexusOperationTimedOutEventAttributes) isHistoryEvent_Attributes() {} + +func (*historyEvent_NexusOperationCancelRequestedEventAttributes) isHistoryEvent_Attributes() {} + +func (*historyEvent_WorkflowExecutionOptionsUpdatedEventAttributes) isHistoryEvent_Attributes() {} + +func (*historyEvent_NexusOperationCancelRequestCompletedEventAttributes) isHistoryEvent_Attributes() { +} + +func (*historyEvent_NexusOperationCancelRequestFailedEventAttributes) isHistoryEvent_Attributes() {} + +func (*historyEvent_WorkflowExecutionPausedEventAttributes) isHistoryEvent_Attributes() {} + +func (*historyEvent_WorkflowExecutionUnpausedEventAttributes) isHistoryEvent_Attributes() {} + +type History struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Events *[]*HistoryEvent `protobuf:"bytes,1,rep,name=events,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *History) Reset() { + *x = History{} + mi := &file_temporal_api_history_v1_message_proto_msgTypes[60] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *History) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*History) ProtoMessage() {} + +func (x *History) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_history_v1_message_proto_msgTypes[60] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *History) GetEvents() []*HistoryEvent { + if x != nil { + if x.xxx_hidden_Events != nil { + return *x.xxx_hidden_Events + } + } + return nil +} + +func (x *History) SetEvents(v []*HistoryEvent) { + x.xxx_hidden_Events = &v +} + +type History_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Events []*HistoryEvent +} + +func (b0 History_builder) Build() *History { + m0 := &History{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Events = &b.Events + return m0 +} + +var File_temporal_api_history_v1_message_proto protoreflect.FileDescriptor + +const file_temporal_api_history_v1_message_proto_rawDesc = "" + + "\n" + + "%temporal/api/history/v1/message.proto\x12\x17temporal.api.history.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a&temporal/api/enums/v1/event_type.proto\x1a(temporal/api/enums/v1/failed_cause.proto\x1a\"temporal/api/enums/v1/update.proto\x1a$temporal/api/enums/v1/workflow.proto\x1a$temporal/api/common/v1/message.proto\x1a(temporal/api/deployment/v1/message.proto\x1a%temporal/api/failure/v1/message.proto\x1a'temporal/api/taskqueue/v1/message.proto\x1a$temporal/api/update/v1/message.proto\x1a&temporal/api/workflow/v1/message.proto\x1a0temporal/api/sdk/v1/task_complete_metadata.proto\x1a'temporal/api/sdk/v1/user_metadata.proto\"\x98\x16\n" + + "'WorkflowExecutionStartedEventAttributes\x12I\n" + + "\rworkflow_type\x18\x01 \x01(\v2$.temporal.api.common.v1.WorkflowTypeR\fworkflowType\x12:\n" + + "\x19parent_workflow_namespace\x18\x02 \x01(\tR\x17parentWorkflowNamespace\x12?\n" + + "\x1cparent_workflow_namespace_id\x18\x1b \x01(\tR\x19parentWorkflowNamespaceId\x12e\n" + + "\x19parent_workflow_execution\x18\x03 \x01(\v2).temporal.api.common.v1.WorkflowExecutionR\x17parentWorkflowExecution\x129\n" + + "\x19parent_initiated_event_id\x18\x04 \x01(\x03R\x16parentInitiatedEventId\x12C\n" + + "\n" + + "task_queue\x18\x05 \x01(\v2$.temporal.api.taskqueue.v1.TaskQueueR\ttaskQueue\x126\n" + + "\x05input\x18\x06 \x01(\v2 .temporal.api.common.v1.PayloadsR\x05input\x12W\n" + + "\x1aworkflow_execution_timeout\x18\a \x01(\v2\x19.google.protobuf.DurationR\x18workflowExecutionTimeout\x12K\n" + + "\x14workflow_run_timeout\x18\b \x01(\v2\x19.google.protobuf.DurationR\x12workflowRunTimeout\x12M\n" + + "\x15workflow_task_timeout\x18\t \x01(\v2\x19.google.protobuf.DurationR\x13workflowTaskTimeout\x12;\n" + + "\x1acontinued_execution_run_id\x18\n" + + " \x01(\tR\x17continuedExecutionRunId\x12K\n" + + "\tinitiator\x18\v \x01(\x0e2-.temporal.api.enums.v1.ContinueAsNewInitiatorR\tinitiator\x12M\n" + + "\x11continued_failure\x18\f \x01(\v2 .temporal.api.failure.v1.FailureR\x10continuedFailure\x12V\n" + + "\x16last_completion_result\x18\r \x01(\v2 .temporal.api.common.v1.PayloadsR\x14lastCompletionResult\x129\n" + + "\x19original_execution_run_id\x18\x0e \x01(\tR\x16originalExecutionRunId\x12\x1a\n" + + "\bidentity\x18\x0f \x01(\tR\bidentity\x123\n" + + "\x16first_execution_run_id\x18\x10 \x01(\tR\x13firstExecutionRunId\x12F\n" + + "\fretry_policy\x18\x11 \x01(\v2#.temporal.api.common.v1.RetryPolicyR\vretryPolicy\x12\x18\n" + + "\aattempt\x18\x12 \x01(\x05R\aattempt\x12g\n" + + "\"workflow_execution_expiration_time\x18\x13 \x01(\v2\x1a.google.protobuf.TimestampR\x1fworkflowExecutionExpirationTime\x12#\n" + + "\rcron_schedule\x18\x14 \x01(\tR\fcronSchedule\x12X\n" + + "\x1bfirst_workflow_task_backoff\x18\x15 \x01(\v2\x19.google.protobuf.DurationR\x18firstWorkflowTaskBackoff\x120\n" + + "\x04memo\x18\x16 \x01(\v2\x1c.temporal.api.common.v1.MemoR\x04memo\x12U\n" + + "\x11search_attributes\x18\x17 \x01(\v2(.temporal.api.common.v1.SearchAttributesR\x10searchAttributes\x12Z\n" + + "\x16prev_auto_reset_points\x18\x18 \x01(\v2%.temporal.api.workflow.v1.ResetPointsR\x13prevAutoResetPoints\x126\n" + + "\x06header\x18\x19 \x01(\v2\x1e.temporal.api.common.v1.HeaderR\x06header\x12C\n" + + "\x1eparent_initiated_event_version\x18\x1a \x01(\x03R\x1bparentInitiatedEventVersion\x12\x1f\n" + + "\vworkflow_id\x18\x1c \x01(\tR\n" + + "workflowId\x12`\n" + + "\x14source_version_stamp\x18\x1d \x01(\v2*.temporal.api.common.v1.WorkerVersionStampB\x02\x18\x01R\x12sourceVersionStamp\x12S\n" + + "\x14completion_callbacks\x18\x1e \x03(\v2 .temporal.api.common.v1.CallbackR\x13completionCallbacks\x12a\n" + + "\x17root_workflow_execution\x18\x1f \x01(\v2).temporal.api.common.v1.WorkflowExecutionR\x15rootWorkflowExecution\x120\n" + + "\x12inherited_build_id\x18 \x01(\tB\x02\x18\x01R\x10inheritedBuildId\x12]\n" + + "\x13versioning_override\x18! \x01(\v2,.temporal.api.workflow.v1.VersioningOverrideR\x12versioningOverride\x12X\n" + + "'parent_pinned_worker_deployment_version\x18\" \x01(\tB\x02\x18\x01R#parentPinnedWorkerDeploymentVersion\x12<\n" + + "\bpriority\x18# \x01(\v2 .temporal.api.common.v1.PriorityR\bpriority\x12m\n" + + "\x18inherited_pinned_version\x18% \x01(\v23.temporal.api.deployment.v1.WorkerDeploymentVersionR\x16inheritedPinnedVersion\x12s\n" + + "\x1binherited_auto_upgrade_info\x18' \x01(\v24.temporal.api.deployment.v1.InheritedAutoUpgradeInfoR\x18inheritedAutoUpgradeInfo\x128\n" + + "\x18eager_execution_accepted\x18& \x01(\bR\x16eagerExecutionAcceptedJ\x04\b$\x10%R parent_pinned_deployment_version\"\xde\x01\n" + + ")WorkflowExecutionCompletedEventAttributes\x128\n" + + "\x06result\x18\x01 \x01(\v2 .temporal.api.common.v1.PayloadsR\x06result\x12F\n" + + " workflow_task_completed_event_id\x18\x02 \x01(\x03R\x1cworkflowTaskCompletedEventId\x12/\n" + + "\x14new_execution_run_id\x18\x03 \x01(\tR\x11newExecutionRunId\"\xa1\x02\n" + + "&WorkflowExecutionFailedEventAttributes\x12:\n" + + "\afailure\x18\x01 \x01(\v2 .temporal.api.failure.v1.FailureR\afailure\x12B\n" + + "\vretry_state\x18\x02 \x01(\x0e2!.temporal.api.enums.v1.RetryStateR\n" + + "retryState\x12F\n" + + " workflow_task_completed_event_id\x18\x03 \x01(\x03R\x1cworkflowTaskCompletedEventId\x12/\n" + + "\x14new_execution_run_id\x18\x04 \x01(\tR\x11newExecutionRunId\"\x9f\x01\n" + + "(WorkflowExecutionTimedOutEventAttributes\x12B\n" + + "\vretry_state\x18\x01 \x01(\x0e2!.temporal.api.enums.v1.RetryStateR\n" + + "retryState\x12/\n" + + "\x14new_execution_run_id\x18\x02 \x01(\tR\x11newExecutionRunId\"\xaa\t\n" + + ".WorkflowExecutionContinuedAsNewEventAttributes\x12/\n" + + "\x14new_execution_run_id\x18\x01 \x01(\tR\x11newExecutionRunId\x12I\n" + + "\rworkflow_type\x18\x02 \x01(\v2$.temporal.api.common.v1.WorkflowTypeR\fworkflowType\x12C\n" + + "\n" + + "task_queue\x18\x03 \x01(\v2$.temporal.api.taskqueue.v1.TaskQueueR\ttaskQueue\x126\n" + + "\x05input\x18\x04 \x01(\v2 .temporal.api.common.v1.PayloadsR\x05input\x12K\n" + + "\x14workflow_run_timeout\x18\x05 \x01(\v2\x19.google.protobuf.DurationR\x12workflowRunTimeout\x12M\n" + + "\x15workflow_task_timeout\x18\x06 \x01(\v2\x19.google.protobuf.DurationR\x13workflowTaskTimeout\x12F\n" + + " workflow_task_completed_event_id\x18\a \x01(\x03R\x1cworkflowTaskCompletedEventId\x12O\n" + + "\x16backoff_start_interval\x18\b \x01(\v2\x19.google.protobuf.DurationR\x14backoffStartInterval\x12K\n" + + "\tinitiator\x18\t \x01(\x0e2-.temporal.api.enums.v1.ContinueAsNewInitiatorR\tinitiator\x12>\n" + + "\afailure\x18\n" + + " \x01(\v2 .temporal.api.failure.v1.FailureB\x02\x18\x01R\afailure\x12V\n" + + "\x16last_completion_result\x18\v \x01(\v2 .temporal.api.common.v1.PayloadsR\x14lastCompletionResult\x126\n" + + "\x06header\x18\f \x01(\v2\x1e.temporal.api.common.v1.HeaderR\x06header\x120\n" + + "\x04memo\x18\r \x01(\v2\x1c.temporal.api.common.v1.MemoR\x04memo\x12U\n" + + "\x11search_attributes\x18\x0e \x01(\v2(.temporal.api.common.v1.SearchAttributesR\x10searchAttributes\x12,\n" + + "\x10inherit_build_id\x18\x0f \x01(\bB\x02\x18\x01R\x0einheritBuildId\x12v\n" + + "\x1binitial_versioning_behavior\x18\x10 \x01(\x0e26.temporal.api.enums.v1.ContinueAsNewVersioningBehaviorR\x19initialVersioningBehavior\"\xd5\x01\n" + + "$WorkflowTaskScheduledEventAttributes\x12C\n" + + "\n" + + "task_queue\x18\x01 \x01(\v2$.temporal.api.taskqueue.v1.TaskQueueR\ttaskQueue\x12N\n" + + "\x16start_to_close_timeout\x18\x02 \x01(\v2\x19.google.protobuf.DurationR\x13startToCloseTimeout\x12\x18\n" + + "\aattempt\x18\x03 \x01(\x05R\aattempt\"\x81\x04\n" + + "\"WorkflowTaskStartedEventAttributes\x12,\n" + + "\x12scheduled_event_id\x18\x01 \x01(\x03R\x10scheduledEventId\x12\x1a\n" + + "\bidentity\x18\x02 \x01(\tR\bidentity\x12\x1d\n" + + "\n" + + "request_id\x18\x03 \x01(\tR\trequestId\x125\n" + + "\x17suggest_continue_as_new\x18\x04 \x01(\bR\x14suggestContinueAsNew\x12w\n" + + "\x1fsuggest_continue_as_new_reasons\x18\b \x03(\x0e21.temporal.api.enums.v1.SuggestContinueAsNewReasonR\x1bsuggestContinueAsNewReasons\x12,\n" + + "\x12history_size_bytes\x18\x05 \x01(\x03R\x10historySizeBytes\x12U\n" + + "\x0eworker_version\x18\x06 \x01(\v2*.temporal.api.common.v1.WorkerVersionStampB\x02\x18\x01R\rworkerVersion\x12=\n" + + "\x19build_id_redirect_counter\x18\a \x01(\x03B\x02\x18\x01R\x16buildIdRedirectCounter\"\xce\x06\n" + + "$WorkflowTaskCompletedEventAttributes\x12,\n" + + "\x12scheduled_event_id\x18\x01 \x01(\x03R\x10scheduledEventId\x12(\n" + + "\x10started_event_id\x18\x02 \x01(\x03R\x0estartedEventId\x12\x1a\n" + + "\bidentity\x18\x03 \x01(\tR\bidentity\x12+\n" + + "\x0fbinary_checksum\x18\x04 \x01(\tB\x02\x18\x01R\x0ebinaryChecksum\x12U\n" + + "\x0eworker_version\x18\x05 \x01(\v2*.temporal.api.common.v1.WorkerVersionStampB\x02\x18\x01R\rworkerVersion\x12U\n" + + "\fsdk_metadata\x18\x06 \x01(\v22.temporal.api.sdk.v1.WorkflowTaskCompletedMetadataR\vsdkMetadata\x12U\n" + + "\x11metering_metadata\x18\r \x01(\v2(.temporal.api.common.v1.MeteringMetadataR\x10meteringMetadata\x12J\n" + + "\n" + + "deployment\x18\a \x01(\v2&.temporal.api.deployment.v1.DeploymentB\x02\x18\x01R\n" + + "deployment\x12Z\n" + + "\x13versioning_behavior\x18\b \x01(\x0e2).temporal.api.enums.v1.VersioningBehaviorR\x12versioningBehavior\x12>\n" + + "\x19worker_deployment_version\x18\t \x01(\tB\x02\x18\x01R\x17workerDeploymentVersion\x124\n" + + "\x16worker_deployment_name\x18\n" + + " \x01(\tR\x14workerDeploymentName\x12b\n" + + "\x12deployment_version\x18\v \x01(\v23.temporal.api.deployment.v1.WorkerDeploymentVersionR\x11deploymentVersion\"\xc4\x01\n" + + "#WorkflowTaskTimedOutEventAttributes\x12,\n" + + "\x12scheduled_event_id\x18\x01 \x01(\x03R\x10scheduledEventId\x12(\n" + + "\x10started_event_id\x18\x02 \x01(\x03R\x0estartedEventId\x12E\n" + + "\ftimeout_type\x18\x03 \x01(\x0e2\".temporal.api.enums.v1.TimeoutTypeR\vtimeoutType\"\x89\x04\n" + + "!WorkflowTaskFailedEventAttributes\x12,\n" + + "\x12scheduled_event_id\x18\x01 \x01(\x03R\x10scheduledEventId\x12(\n" + + "\x10started_event_id\x18\x02 \x01(\x03R\x0estartedEventId\x12D\n" + + "\x05cause\x18\x03 \x01(\x0e2..temporal.api.enums.v1.WorkflowTaskFailedCauseR\x05cause\x12:\n" + + "\afailure\x18\x04 \x01(\v2 .temporal.api.failure.v1.FailureR\afailure\x12\x1a\n" + + "\bidentity\x18\x05 \x01(\tR\bidentity\x12\x1e\n" + + "\vbase_run_id\x18\x06 \x01(\tR\tbaseRunId\x12\x1c\n" + + "\n" + + "new_run_id\x18\a \x01(\tR\bnewRunId\x12,\n" + + "\x12fork_event_version\x18\b \x01(\x03R\x10forkEventVersion\x12+\n" + + "\x0fbinary_checksum\x18\t \x01(\tB\x02\x18\x01R\x0ebinaryChecksum\x12U\n" + + "\x0eworker_version\x18\n" + + " \x01(\v2*.temporal.api.common.v1.WorkerVersionStampB\x02\x18\x01R\rworkerVersion\"\x96\a\n" + + "$ActivityTaskScheduledEventAttributes\x12\x1f\n" + + "\vactivity_id\x18\x01 \x01(\tR\n" + + "activityId\x12I\n" + + "\ractivity_type\x18\x02 \x01(\v2$.temporal.api.common.v1.ActivityTypeR\factivityType\x12C\n" + + "\n" + + "task_queue\x18\x04 \x01(\v2$.temporal.api.taskqueue.v1.TaskQueueR\ttaskQueue\x126\n" + + "\x06header\x18\x05 \x01(\v2\x1e.temporal.api.common.v1.HeaderR\x06header\x126\n" + + "\x05input\x18\x06 \x01(\v2 .temporal.api.common.v1.PayloadsR\x05input\x12T\n" + + "\x19schedule_to_close_timeout\x18\a \x01(\v2\x19.google.protobuf.DurationR\x16scheduleToCloseTimeout\x12T\n" + + "\x19schedule_to_start_timeout\x18\b \x01(\v2\x19.google.protobuf.DurationR\x16scheduleToStartTimeout\x12N\n" + + "\x16start_to_close_timeout\x18\t \x01(\v2\x19.google.protobuf.DurationR\x13startToCloseTimeout\x12F\n" + + "\x11heartbeat_timeout\x18\n" + + " \x01(\v2\x19.google.protobuf.DurationR\x10heartbeatTimeout\x12F\n" + + " workflow_task_completed_event_id\x18\v \x01(\x03R\x1cworkflowTaskCompletedEventId\x12F\n" + + "\fretry_policy\x18\f \x01(\v2#.temporal.api.common.v1.RetryPolicyR\vretryPolicy\x125\n" + + "\x15use_workflow_build_id\x18\r \x01(\bB\x02\x18\x01R\x12useWorkflowBuildId\x12<\n" + + "\bpriority\x18\x0e \x01(\v2 .temporal.api.common.v1.PriorityR\bpriorityJ\x04\b\x03\x10\x04\"\x82\x03\n" + + "\"ActivityTaskStartedEventAttributes\x12,\n" + + "\x12scheduled_event_id\x18\x01 \x01(\x03R\x10scheduledEventId\x12\x1a\n" + + "\bidentity\x18\x02 \x01(\tR\bidentity\x12\x1d\n" + + "\n" + + "request_id\x18\x03 \x01(\tR\trequestId\x12\x18\n" + + "\aattempt\x18\x04 \x01(\x05R\aattempt\x12C\n" + + "\flast_failure\x18\x05 \x01(\v2 .temporal.api.failure.v1.FailureR\vlastFailure\x12U\n" + + "\x0eworker_version\x18\x06 \x01(\v2*.temporal.api.common.v1.WorkerVersionStampB\x02\x18\x01R\rworkerVersion\x12=\n" + + "\x19build_id_redirect_counter\x18\a \x01(\x03B\x02\x18\x01R\x16buildIdRedirectCounter\"\xab\x02\n" + + "$ActivityTaskCompletedEventAttributes\x128\n" + + "\x06result\x18\x01 \x01(\v2 .temporal.api.common.v1.PayloadsR\x06result\x12,\n" + + "\x12scheduled_event_id\x18\x02 \x01(\x03R\x10scheduledEventId\x12(\n" + + "\x10started_event_id\x18\x03 \x01(\x03R\x0estartedEventId\x12\x1a\n" + + "\bidentity\x18\x04 \x01(\tR\bidentity\x12U\n" + + "\x0eworker_version\x18\x05 \x01(\v2*.temporal.api.common.v1.WorkerVersionStampB\x02\x18\x01R\rworkerVersion\"\xee\x02\n" + + "!ActivityTaskFailedEventAttributes\x12:\n" + + "\afailure\x18\x01 \x01(\v2 .temporal.api.failure.v1.FailureR\afailure\x12,\n" + + "\x12scheduled_event_id\x18\x02 \x01(\x03R\x10scheduledEventId\x12(\n" + + "\x10started_event_id\x18\x03 \x01(\x03R\x0estartedEventId\x12\x1a\n" + + "\bidentity\x18\x04 \x01(\tR\bidentity\x12B\n" + + "\vretry_state\x18\x05 \x01(\x0e2!.temporal.api.enums.v1.RetryStateR\n" + + "retryState\x12U\n" + + "\x0eworker_version\x18\x06 \x01(\v2*.temporal.api.common.v1.WorkerVersionStampB\x02\x18\x01R\rworkerVersion\"\xfd\x01\n" + + "#ActivityTaskTimedOutEventAttributes\x12:\n" + + "\afailure\x18\x01 \x01(\v2 .temporal.api.failure.v1.FailureR\afailure\x12,\n" + + "\x12scheduled_event_id\x18\x02 \x01(\x03R\x10scheduledEventId\x12(\n" + + "\x10started_event_id\x18\x03 \x01(\x03R\x0estartedEventId\x12B\n" + + "\vretry_state\x18\x04 \x01(\x0e2!.temporal.api.enums.v1.RetryStateR\n" + + "retryState\"\xa2\x01\n" + + "*ActivityTaskCancelRequestedEventAttributes\x12,\n" + + "\x12scheduled_event_id\x18\x01 \x01(\x03R\x10scheduledEventId\x12F\n" + + " workflow_task_completed_event_id\x18\x02 \x01(\x03R\x1cworkflowTaskCompletedEventId\"\xf4\x02\n" + + "#ActivityTaskCanceledEventAttributes\x12:\n" + + "\adetails\x18\x01 \x01(\v2 .temporal.api.common.v1.PayloadsR\adetails\x12F\n" + + " latest_cancel_requested_event_id\x18\x02 \x01(\x03R\x1clatestCancelRequestedEventId\x12,\n" + + "\x12scheduled_event_id\x18\x03 \x01(\x03R\x10scheduledEventId\x12(\n" + + "\x10started_event_id\x18\x04 \x01(\x03R\x0estartedEventId\x12\x1a\n" + + "\bidentity\x18\x05 \x01(\tR\bidentity\x12U\n" + + "\x0eworker_version\x18\x06 \x01(\v2*.temporal.api.common.v1.WorkerVersionStampB\x02\x18\x01R\rworkerVersion\"\xce\x01\n" + + "\x1bTimerStartedEventAttributes\x12\x19\n" + + "\btimer_id\x18\x01 \x01(\tR\atimerId\x12L\n" + + "\x15start_to_fire_timeout\x18\x02 \x01(\v2\x19.google.protobuf.DurationR\x12startToFireTimeout\x12F\n" + + " workflow_task_completed_event_id\x18\x03 \x01(\x03R\x1cworkflowTaskCompletedEventId\"`\n" + + "\x19TimerFiredEventAttributes\x12\x19\n" + + "\btimer_id\x18\x01 \x01(\tR\atimerId\x12(\n" + + "\x10started_event_id\x18\x02 \x01(\x03R\x0estartedEventId\"\xc7\x01\n" + + "\x1cTimerCanceledEventAttributes\x12\x19\n" + + "\btimer_id\x18\x01 \x01(\tR\atimerId\x12(\n" + + "\x10started_event_id\x18\x02 \x01(\x03R\x0estartedEventId\x12F\n" + + " workflow_task_completed_event_id\x18\x03 \x01(\x03R\x1cworkflowTaskCompletedEventId\x12\x1a\n" + + "\bidentity\x18\x04 \x01(\tR\bidentity\"\x8d\x02\n" + + "/WorkflowExecutionCancelRequestedEventAttributes\x12\x14\n" + + "\x05cause\x18\x01 \x01(\tR\x05cause\x12=\n" + + "\x1bexternal_initiated_event_id\x18\x02 \x01(\x03R\x18externalInitiatedEventId\x12i\n" + + "\x1bexternal_workflow_execution\x18\x03 \x01(\v2).temporal.api.common.v1.WorkflowExecutionR\x19externalWorkflowExecution\x12\x1a\n" + + "\bidentity\x18\x04 \x01(\tR\bidentity\"\xae\x01\n" + + "(WorkflowExecutionCanceledEventAttributes\x12F\n" + + " workflow_task_completed_event_id\x18\x01 \x01(\x03R\x1cworkflowTaskCompletedEventId\x12:\n" + + "\adetails\x18\x02 \x01(\v2 .temporal.api.common.v1.PayloadsR\adetails\"\xb9\x03\n" + + "\x1dMarkerRecordedEventAttributes\x12\x1f\n" + + "\vmarker_name\x18\x01 \x01(\tR\n" + + "markerName\x12]\n" + + "\adetails\x18\x02 \x03(\v2C.temporal.api.history.v1.MarkerRecordedEventAttributes.DetailsEntryR\adetails\x12F\n" + + " workflow_task_completed_event_id\x18\x03 \x01(\x03R\x1cworkflowTaskCompletedEventId\x126\n" + + "\x06header\x18\x04 \x01(\v2\x1e.temporal.api.common.v1.HeaderR\x06header\x12:\n" + + "\afailure\x18\x05 \x01(\v2 .temporal.api.failure.v1.FailureR\afailure\x1a\\\n" + + "\fDetailsEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x126\n" + + "\x05value\x18\x02 \x01(\v2 .temporal.api.common.v1.PayloadsR\x05value:\x028\x01\"\x85\x03\n" + + "(WorkflowExecutionSignaledEventAttributes\x12\x1f\n" + + "\vsignal_name\x18\x01 \x01(\tR\n" + + "signalName\x126\n" + + "\x05input\x18\x02 \x01(\v2 .temporal.api.common.v1.PayloadsR\x05input\x12\x1a\n" + + "\bidentity\x18\x03 \x01(\tR\bidentity\x126\n" + + "\x06header\x18\x04 \x01(\v2\x1e.temporal.api.common.v1.HeaderR\x06header\x12A\n" + + "\x1bskip_generate_workflow_task\x18\x05 \x01(\bB\x02\x18\x01R\x18skipGenerateWorkflowTask\x12i\n" + + "\x1bexternal_workflow_execution\x18\x06 \x01(\v2).temporal.api.common.v1.WorkflowExecutionR\x19externalWorkflowExecution\"\x9c\x01\n" + + "*WorkflowExecutionTerminatedEventAttributes\x12\x16\n" + + "\x06reason\x18\x01 \x01(\tR\x06reason\x12:\n" + + "\adetails\x18\x02 \x01(\v2 .temporal.api.common.v1.PayloadsR\adetails\x12\x1a\n" + + "\bidentity\x18\x03 \x01(\tR\bidentity\"\x89\x03\n" + + ">RequestCancelExternalWorkflowExecutionInitiatedEventAttributes\x12F\n" + + " workflow_task_completed_event_id\x18\x01 \x01(\x03R\x1cworkflowTaskCompletedEventId\x12\x1c\n" + + "\tnamespace\x18\x02 \x01(\tR\tnamespace\x12!\n" + + "\fnamespace_id\x18\a \x01(\tR\vnamespaceId\x12X\n" + + "\x12workflow_execution\x18\x03 \x01(\v2).temporal.api.common.v1.WorkflowExecutionR\x11workflowExecution\x12\x1c\n" + + "\acontrol\x18\x04 \x01(\tB\x02\x18\x01R\acontrol\x12.\n" + + "\x13child_workflow_only\x18\x05 \x01(\bR\x11childWorkflowOnly\x12\x16\n" + + "\x06reason\x18\x06 \x01(\tR\x06reason\"\xc5\x03\n" + + ";RequestCancelExternalWorkflowExecutionFailedEventAttributes\x12W\n" + + "\x05cause\x18\x01 \x01(\x0e2A.temporal.api.enums.v1.CancelExternalWorkflowExecutionFailedCauseR\x05cause\x12F\n" + + " workflow_task_completed_event_id\x18\x02 \x01(\x03R\x1cworkflowTaskCompletedEventId\x12\x1c\n" + + "\tnamespace\x18\x03 \x01(\tR\tnamespace\x12!\n" + + "\fnamespace_id\x18\a \x01(\tR\vnamespaceId\x12X\n" + + "\x12workflow_execution\x18\x04 \x01(\v2).temporal.api.common.v1.WorkflowExecutionR\x11workflowExecution\x12,\n" + + "\x12initiated_event_id\x18\x05 \x01(\x03R\x10initiatedEventId\x12\x1c\n" + + "\acontrol\x18\x06 \x01(\tB\x02\x18\x01R\acontrol\"\x82\x02\n" + + "7ExternalWorkflowExecutionCancelRequestedEventAttributes\x12,\n" + + "\x12initiated_event_id\x18\x01 \x01(\x03R\x10initiatedEventId\x12\x1c\n" + + "\tnamespace\x18\x02 \x01(\tR\tnamespace\x12!\n" + + "\fnamespace_id\x18\x04 \x01(\tR\vnamespaceId\x12X\n" + + "\x12workflow_execution\x18\x03 \x01(\v2).temporal.api.common.v1.WorkflowExecutionR\x11workflowExecution\"\xfb\x03\n" + + "7SignalExternalWorkflowExecutionInitiatedEventAttributes\x12F\n" + + " workflow_task_completed_event_id\x18\x01 \x01(\x03R\x1cworkflowTaskCompletedEventId\x12\x1c\n" + + "\tnamespace\x18\x02 \x01(\tR\tnamespace\x12!\n" + + "\fnamespace_id\x18\t \x01(\tR\vnamespaceId\x12X\n" + + "\x12workflow_execution\x18\x03 \x01(\v2).temporal.api.common.v1.WorkflowExecutionR\x11workflowExecution\x12\x1f\n" + + "\vsignal_name\x18\x04 \x01(\tR\n" + + "signalName\x126\n" + + "\x05input\x18\x05 \x01(\v2 .temporal.api.common.v1.PayloadsR\x05input\x12\x1c\n" + + "\acontrol\x18\x06 \x01(\tB\x02\x18\x01R\acontrol\x12.\n" + + "\x13child_workflow_only\x18\a \x01(\bR\x11childWorkflowOnly\x126\n" + + "\x06header\x18\b \x01(\v2\x1e.temporal.api.common.v1.HeaderR\x06header\"\xbe\x03\n" + + "4SignalExternalWorkflowExecutionFailedEventAttributes\x12W\n" + + "\x05cause\x18\x01 \x01(\x0e2A.temporal.api.enums.v1.SignalExternalWorkflowExecutionFailedCauseR\x05cause\x12F\n" + + " workflow_task_completed_event_id\x18\x02 \x01(\x03R\x1cworkflowTaskCompletedEventId\x12\x1c\n" + + "\tnamespace\x18\x03 \x01(\tR\tnamespace\x12!\n" + + "\fnamespace_id\x18\a \x01(\tR\vnamespaceId\x12X\n" + + "\x12workflow_execution\x18\x04 \x01(\v2).temporal.api.common.v1.WorkflowExecutionR\x11workflowExecution\x12,\n" + + "\x12initiated_event_id\x18\x05 \x01(\x03R\x10initiatedEventId\x12\x1c\n" + + "\acontrol\x18\x06 \x01(\tB\x02\x18\x01R\acontrol\"\x99\x02\n" + + "0ExternalWorkflowExecutionSignaledEventAttributes\x12,\n" + + "\x12initiated_event_id\x18\x01 \x01(\x03R\x10initiatedEventId\x12\x1c\n" + + "\tnamespace\x18\x02 \x01(\tR\tnamespace\x12!\n" + + "\fnamespace_id\x18\x05 \x01(\tR\vnamespaceId\x12X\n" + + "\x12workflow_execution\x18\x03 \x01(\v2).temporal.api.common.v1.WorkflowExecutionR\x11workflowExecution\x12\x1c\n" + + "\acontrol\x18\x04 \x01(\tB\x02\x18\x01R\acontrol\"\xce\x01\n" + + "-UpsertWorkflowSearchAttributesEventAttributes\x12F\n" + + " workflow_task_completed_event_id\x18\x01 \x01(\x03R\x1cworkflowTaskCompletedEventId\x12U\n" + + "\x11search_attributes\x18\x02 \x01(\v2(.temporal.api.common.v1.SearchAttributesR\x10searchAttributes\"\xb6\x01\n" + + ")WorkflowPropertiesModifiedEventAttributes\x12F\n" + + " workflow_task_completed_event_id\x18\x01 \x01(\x03R\x1cworkflowTaskCompletedEventId\x12A\n" + + "\rupserted_memo\x18\x02 \x01(\v2\x1c.temporal.api.common.v1.MemoR\fupsertedMemo\"\x95\n" + + "\n" + + "3StartChildWorkflowExecutionInitiatedEventAttributes\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12!\n" + + "\fnamespace_id\x18\x12 \x01(\tR\vnamespaceId\x12\x1f\n" + + "\vworkflow_id\x18\x02 \x01(\tR\n" + + "workflowId\x12I\n" + + "\rworkflow_type\x18\x03 \x01(\v2$.temporal.api.common.v1.WorkflowTypeR\fworkflowType\x12C\n" + + "\n" + + "task_queue\x18\x04 \x01(\v2$.temporal.api.taskqueue.v1.TaskQueueR\ttaskQueue\x126\n" + + "\x05input\x18\x05 \x01(\v2 .temporal.api.common.v1.PayloadsR\x05input\x12W\n" + + "\x1aworkflow_execution_timeout\x18\x06 \x01(\v2\x19.google.protobuf.DurationR\x18workflowExecutionTimeout\x12K\n" + + "\x14workflow_run_timeout\x18\a \x01(\v2\x19.google.protobuf.DurationR\x12workflowRunTimeout\x12M\n" + + "\x15workflow_task_timeout\x18\b \x01(\v2\x19.google.protobuf.DurationR\x13workflowTaskTimeout\x12X\n" + + "\x13parent_close_policy\x18\t \x01(\x0e2(.temporal.api.enums.v1.ParentClosePolicyR\x11parentClosePolicy\x12\x1c\n" + + "\acontrol\x18\n" + + " \x01(\tB\x02\x18\x01R\acontrol\x12F\n" + + " workflow_task_completed_event_id\x18\v \x01(\x03R\x1cworkflowTaskCompletedEventId\x12e\n" + + "\x18workflow_id_reuse_policy\x18\f \x01(\x0e2,.temporal.api.enums.v1.WorkflowIdReusePolicyR\x15workflowIdReusePolicy\x12F\n" + + "\fretry_policy\x18\r \x01(\v2#.temporal.api.common.v1.RetryPolicyR\vretryPolicy\x12#\n" + + "\rcron_schedule\x18\x0e \x01(\tR\fcronSchedule\x126\n" + + "\x06header\x18\x0f \x01(\v2\x1e.temporal.api.common.v1.HeaderR\x06header\x120\n" + + "\x04memo\x18\x10 \x01(\v2\x1c.temporal.api.common.v1.MemoR\x04memo\x12U\n" + + "\x11search_attributes\x18\x11 \x01(\v2(.temporal.api.common.v1.SearchAttributesR\x10searchAttributes\x12,\n" + + "\x10inherit_build_id\x18\x13 \x01(\bB\x02\x18\x01R\x0einheritBuildId\x12<\n" + + "\bpriority\x18\x14 \x01(\v2 .temporal.api.common.v1.PriorityR\bpriority\"\xc8\x03\n" + + "0StartChildWorkflowExecutionFailedEventAttributes\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12!\n" + + "\fnamespace_id\x18\b \x01(\tR\vnamespaceId\x12\x1f\n" + + "\vworkflow_id\x18\x02 \x01(\tR\n" + + "workflowId\x12I\n" + + "\rworkflow_type\x18\x03 \x01(\v2$.temporal.api.common.v1.WorkflowTypeR\fworkflowType\x12S\n" + + "\x05cause\x18\x04 \x01(\x0e2=.temporal.api.enums.v1.StartChildWorkflowExecutionFailedCauseR\x05cause\x12\x1c\n" + + "\acontrol\x18\x05 \x01(\tB\x02\x18\x01R\acontrol\x12,\n" + + "\x12initiated_event_id\x18\x06 \x01(\x03R\x10initiatedEventId\x12F\n" + + " workflow_task_completed_event_id\x18\a \x01(\x03R\x1cworkflowTaskCompletedEventId\"\xfa\x02\n" + + ",ChildWorkflowExecutionStartedEventAttributes\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12!\n" + + "\fnamespace_id\x18\x06 \x01(\tR\vnamespaceId\x12,\n" + + "\x12initiated_event_id\x18\x02 \x01(\x03R\x10initiatedEventId\x12X\n" + + "\x12workflow_execution\x18\x03 \x01(\v2).temporal.api.common.v1.WorkflowExecutionR\x11workflowExecution\x12I\n" + + "\rworkflow_type\x18\x04 \x01(\v2$.temporal.api.common.v1.WorkflowTypeR\fworkflowType\x126\n" + + "\x06header\x18\x05 \x01(\v2\x1e.temporal.api.common.v1.HeaderR\x06header\"\xa8\x03\n" + + ".ChildWorkflowExecutionCompletedEventAttributes\x128\n" + + "\x06result\x18\x01 \x01(\v2 .temporal.api.common.v1.PayloadsR\x06result\x12\x1c\n" + + "\tnamespace\x18\x02 \x01(\tR\tnamespace\x12!\n" + + "\fnamespace_id\x18\a \x01(\tR\vnamespaceId\x12X\n" + + "\x12workflow_execution\x18\x03 \x01(\v2).temporal.api.common.v1.WorkflowExecutionR\x11workflowExecution\x12I\n" + + "\rworkflow_type\x18\x04 \x01(\v2$.temporal.api.common.v1.WorkflowTypeR\fworkflowType\x12,\n" + + "\x12initiated_event_id\x18\x05 \x01(\x03R\x10initiatedEventId\x12(\n" + + "\x10started_event_id\x18\x06 \x01(\x03R\x0estartedEventId\"\xeb\x03\n" + + "+ChildWorkflowExecutionFailedEventAttributes\x12:\n" + + "\afailure\x18\x01 \x01(\v2 .temporal.api.failure.v1.FailureR\afailure\x12\x1c\n" + + "\tnamespace\x18\x02 \x01(\tR\tnamespace\x12!\n" + + "\fnamespace_id\x18\b \x01(\tR\vnamespaceId\x12X\n" + + "\x12workflow_execution\x18\x03 \x01(\v2).temporal.api.common.v1.WorkflowExecutionR\x11workflowExecution\x12I\n" + + "\rworkflow_type\x18\x04 \x01(\v2$.temporal.api.common.v1.WorkflowTypeR\fworkflowType\x12,\n" + + "\x12initiated_event_id\x18\x05 \x01(\x03R\x10initiatedEventId\x12(\n" + + "\x10started_event_id\x18\x06 \x01(\x03R\x0estartedEventId\x12B\n" + + "\vretry_state\x18\a \x01(\x0e2!.temporal.api.enums.v1.RetryStateR\n" + + "retryState\"\xa9\x03\n" + + "-ChildWorkflowExecutionCanceledEventAttributes\x12:\n" + + "\adetails\x18\x01 \x01(\v2 .temporal.api.common.v1.PayloadsR\adetails\x12\x1c\n" + + "\tnamespace\x18\x02 \x01(\tR\tnamespace\x12!\n" + + "\fnamespace_id\x18\a \x01(\tR\vnamespaceId\x12X\n" + + "\x12workflow_execution\x18\x03 \x01(\v2).temporal.api.common.v1.WorkflowExecutionR\x11workflowExecution\x12I\n" + + "\rworkflow_type\x18\x04 \x01(\v2$.temporal.api.common.v1.WorkflowTypeR\fworkflowType\x12,\n" + + "\x12initiated_event_id\x18\x05 \x01(\x03R\x10initiatedEventId\x12(\n" + + "\x10started_event_id\x18\x06 \x01(\x03R\x0estartedEventId\"\xb1\x03\n" + + "-ChildWorkflowExecutionTimedOutEventAttributes\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12!\n" + + "\fnamespace_id\x18\a \x01(\tR\vnamespaceId\x12X\n" + + "\x12workflow_execution\x18\x02 \x01(\v2).temporal.api.common.v1.WorkflowExecutionR\x11workflowExecution\x12I\n" + + "\rworkflow_type\x18\x03 \x01(\v2$.temporal.api.common.v1.WorkflowTypeR\fworkflowType\x12,\n" + + "\x12initiated_event_id\x18\x04 \x01(\x03R\x10initiatedEventId\x12(\n" + + "\x10started_event_id\x18\x05 \x01(\x03R\x0estartedEventId\x12B\n" + + "\vretry_state\x18\x06 \x01(\x0e2!.temporal.api.enums.v1.RetryStateR\n" + + "retryState\"\xef\x02\n" + + "/ChildWorkflowExecutionTerminatedEventAttributes\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12!\n" + + "\fnamespace_id\x18\x06 \x01(\tR\vnamespaceId\x12X\n" + + "\x12workflow_execution\x18\x02 \x01(\v2).temporal.api.common.v1.WorkflowExecutionR\x11workflowExecution\x12I\n" + + "\rworkflow_type\x18\x03 \x01(\v2$.temporal.api.common.v1.WorkflowTypeR\fworkflowType\x12,\n" + + "\x12initiated_event_id\x18\x04 \x01(\x03R\x10initiatedEventId\x12(\n" + + "\x10started_event_id\x18\x05 \x01(\x03R\x0estartedEventId\"\xbb\x03\n" + + ".WorkflowExecutionOptionsUpdatedEventAttributes\x12]\n" + + "\x13versioning_override\x18\x01 \x01(\v2,.temporal.api.workflow.v1.VersioningOverrideR\x12versioningOverride\x12:\n" + + "\x19unset_versioning_override\x18\x02 \x01(\bR\x17unsetVersioningOverride\x12.\n" + + "\x13attached_request_id\x18\x03 \x01(\tR\x11attachedRequestId\x12d\n" + + "\x1dattached_completion_callbacks\x18\x04 \x03(\v2 .temporal.api.common.v1.CallbackR\x1battachedCompletionCallbacks\x12\x1a\n" + + "\bidentity\x18\x05 \x01(\tR\bidentity\x12<\n" + + "\bpriority\x18\x06 \x01(\v2 .temporal.api.common.v1.PriorityR\bpriority\"\xa8\x03\n" + + "3WorkflowPropertiesModifiedExternallyEventAttributes\x12$\n" + + "\x0enew_task_queue\x18\x01 \x01(\tR\fnewTaskQueue\x12T\n" + + "\x19new_workflow_task_timeout\x18\x02 \x01(\v2\x19.google.protobuf.DurationR\x16newWorkflowTaskTimeout\x12R\n" + + "\x18new_workflow_run_timeout\x18\x03 \x01(\v2\x19.google.protobuf.DurationR\x15newWorkflowRunTimeout\x12^\n" + + "\x1enew_workflow_execution_timeout\x18\x04 \x01(\v2\x19.google.protobuf.DurationR\x1bnewWorkflowExecutionTimeout\x12A\n" + + "\rupserted_memo\x18\x05 \x01(\v2\x1c.temporal.api.common.v1.MemoR\fupsertedMemo\"\xb2\x01\n" + + "3ActivityPropertiesModifiedExternallyEventAttributes\x12,\n" + + "\x12scheduled_event_id\x18\x01 \x01(\x03R\x10scheduledEventId\x12M\n" + + "\x10new_retry_policy\x18\x02 \x01(\v2#.temporal.api.common.v1.RetryPolicyR\x0enewRetryPolicy\"\xbd\x02\n" + + ".WorkflowExecutionUpdateAcceptedEventAttributes\x120\n" + + "\x14protocol_instance_id\x18\x01 \x01(\tR\x12protocolInstanceId\x12=\n" + + "\x1baccepted_request_message_id\x18\x02 \x01(\tR\x18acceptedRequestMessageId\x12N\n" + + "$accepted_request_sequencing_event_id\x18\x03 \x01(\x03R acceptedRequestSequencingEventId\x12J\n" + + "\x10accepted_request\x18\x04 \x01(\v2\x1f.temporal.api.update.v1.RequestR\x0facceptedRequest\"\xca\x01\n" + + "/WorkflowExecutionUpdateCompletedEventAttributes\x120\n" + + "\x04meta\x18\x01 \x01(\v2\x1c.temporal.api.update.v1.MetaR\x04meta\x12*\n" + + "\x11accepted_event_id\x18\x03 \x01(\x03R\x0facceptedEventId\x129\n" + + "\aoutcome\x18\x02 \x01(\v2\x1f.temporal.api.update.v1.OutcomeR\aoutcome\"\xf9\x02\n" + + ".WorkflowExecutionUpdateRejectedEventAttributes\x120\n" + + "\x14protocol_instance_id\x18\x01 \x01(\tR\x12protocolInstanceId\x12=\n" + + "\x1brejected_request_message_id\x18\x02 \x01(\tR\x18rejectedRequestMessageId\x12N\n" + + "$rejected_request_sequencing_event_id\x18\x03 \x01(\x03R rejectedRequestSequencingEventId\x12J\n" + + "\x10rejected_request\x18\x04 \x01(\v2\x1f.temporal.api.update.v1.RequestR\x0frejectedRequest\x12:\n" + + "\afailure\x18\x05 \x01(\v2 .temporal.api.failure.v1.FailureR\afailure\"\xb5\x01\n" + + ".WorkflowExecutionUpdateAdmittedEventAttributes\x129\n" + + "\arequest\x18\x01 \x01(\v2\x1f.temporal.api.update.v1.RequestR\arequest\x12H\n" + + "\x06origin\x18\x02 \x01(\x0e20.temporal.api.enums.v1.UpdateAdmittedEventOriginR\x06origin\"{\n" + + "&WorkflowExecutionPausedEventAttributes\x12\x1a\n" + + "\bidentity\x18\x01 \x01(\tR\bidentity\x12\x16\n" + + "\x06reason\x18\x02 \x01(\tR\x06reason\x12\x1d\n" + + "\n" + + "request_id\x18\x03 \x01(\tR\trequestId\"}\n" + + "(WorkflowExecutionUnpausedEventAttributes\x12\x1a\n" + + "\bidentity\x18\x01 \x01(\tR\bidentity\x12\x16\n" + + "\x06reason\x18\x02 \x01(\tR\x06reason\x12\x1d\n" + + "\n" + + "request_id\x18\x03 \x01(\tR\trequestId\"\xec\x05\n" + + "&NexusOperationScheduledEventAttributes\x12\x1a\n" + + "\bendpoint\x18\x01 \x01(\tR\bendpoint\x12\x18\n" + + "\aservice\x18\x02 \x01(\tR\aservice\x12\x1c\n" + + "\toperation\x18\x03 \x01(\tR\toperation\x125\n" + + "\x05input\x18\x04 \x01(\v2\x1f.temporal.api.common.v1.PayloadR\x05input\x12T\n" + + "\x19schedule_to_close_timeout\x18\x05 \x01(\v2\x19.google.protobuf.DurationR\x16scheduleToCloseTimeout\x12s\n" + + "\fnexus_header\x18\x06 \x03(\v2P.temporal.api.history.v1.NexusOperationScheduledEventAttributes.NexusHeaderEntryR\vnexusHeader\x12F\n" + + " workflow_task_completed_event_id\x18\a \x01(\x03R\x1cworkflowTaskCompletedEventId\x12\x1d\n" + + "\n" + + "request_id\x18\b \x01(\tR\trequestId\x12\x1f\n" + + "\vendpoint_id\x18\t \x01(\tR\n" + + "endpointId\x12T\n" + + "\x19schedule_to_start_timeout\x18\n" + + " \x01(\v2\x19.google.protobuf.DurationR\x16scheduleToStartTimeout\x12N\n" + + "\x16start_to_close_timeout\x18\v \x01(\v2\x19.google.protobuf.DurationR\x13startToCloseTimeout\x1a>\n" + + "\x10NexusHeaderEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xc3\x01\n" + + "$NexusOperationStartedEventAttributes\x12,\n" + + "\x12scheduled_event_id\x18\x01 \x01(\x03R\x10scheduledEventId\x12%\n" + + "\foperation_id\x18\x03 \x01(\tB\x02\x18\x01R\voperationId\x12\x1d\n" + + "\n" + + "request_id\x18\x04 \x01(\tR\trequestId\x12'\n" + + "\x0foperation_token\x18\x05 \x01(\tR\x0eoperationToken\"\xae\x01\n" + + "&NexusOperationCompletedEventAttributes\x12,\n" + + "\x12scheduled_event_id\x18\x01 \x01(\x03R\x10scheduledEventId\x127\n" + + "\x06result\x18\x02 \x01(\v2\x1f.temporal.api.common.v1.PayloadR\x06result\x12\x1d\n" + + "\n" + + "request_id\x18\x03 \x01(\tR\trequestId\"\xae\x01\n" + + "#NexusOperationFailedEventAttributes\x12,\n" + + "\x12scheduled_event_id\x18\x01 \x01(\x03R\x10scheduledEventId\x12:\n" + + "\afailure\x18\x02 \x01(\v2 .temporal.api.failure.v1.FailureR\afailure\x12\x1d\n" + + "\n" + + "request_id\x18\x03 \x01(\tR\trequestId\"\xb0\x01\n" + + "%NexusOperationTimedOutEventAttributes\x12,\n" + + "\x12scheduled_event_id\x18\x01 \x01(\x03R\x10scheduledEventId\x12:\n" + + "\afailure\x18\x02 \x01(\v2 .temporal.api.failure.v1.FailureR\afailure\x12\x1d\n" + + "\n" + + "request_id\x18\x03 \x01(\tR\trequestId\"\xb0\x01\n" + + "%NexusOperationCanceledEventAttributes\x12,\n" + + "\x12scheduled_event_id\x18\x01 \x01(\x03R\x10scheduledEventId\x12:\n" + + "\afailure\x18\x02 \x01(\v2 .temporal.api.failure.v1.FailureR\afailure\x12\x1d\n" + + "\n" + + "request_id\x18\x03 \x01(\tR\trequestId\"\xa4\x01\n" + + ",NexusOperationCancelRequestedEventAttributes\x12,\n" + + "\x12scheduled_event_id\x18\x01 \x01(\x03R\x10scheduledEventId\x12F\n" + + " workflow_task_completed_event_id\x18\x02 \x01(\x03R\x1cworkflowTaskCompletedEventId\"\xd9\x01\n" + + "3NexusOperationCancelRequestCompletedEventAttributes\x12,\n" + + "\x12requested_event_id\x18\x01 \x01(\x03R\x10requestedEventId\x12F\n" + + " workflow_task_completed_event_id\x18\x02 \x01(\x03R\x1cworkflowTaskCompletedEventId\x12,\n" + + "\x12scheduled_event_id\x18\x03 \x01(\x03R\x10scheduledEventId\"\x92\x02\n" + + "0NexusOperationCancelRequestFailedEventAttributes\x12,\n" + + "\x12requested_event_id\x18\x01 \x01(\x03R\x10requestedEventId\x12F\n" + + " workflow_task_completed_event_id\x18\x02 \x01(\x03R\x1cworkflowTaskCompletedEventId\x12:\n" + + "\afailure\x18\x03 \x01(\v2 .temporal.api.failure.v1.FailureR\afailure\x12,\n" + + "\x12scheduled_event_id\x18\x04 \x01(\x03R\x10scheduledEventId\"\xbdR\n" + + "\fHistoryEvent\x12\x19\n" + + "\bevent_id\x18\x01 \x01(\x03R\aeventId\x129\n" + + "\n" + + "event_time\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\teventTime\x12?\n" + + "\n" + + "event_type\x18\x03 \x01(\x0e2 .temporal.api.enums.v1.EventTypeR\teventType\x12\x18\n" + + "\aversion\x18\x04 \x01(\x03R\aversion\x12\x17\n" + + "\atask_id\x18\x05 \x01(\x03R\x06taskId\x12+\n" + + "\x11worker_may_ignore\x18\xac\x02 \x01(\bR\x0fworkerMayIgnore\x12G\n" + + "\ruser_metadata\x18\xad\x02 \x01(\v2!.temporal.api.sdk.v1.UserMetadataR\fuserMetadata\x123\n" + + "\x05links\x18\xae\x02 \x03(\v2\x1c.temporal.api.common.v1.LinkR\x05links\x12\xa0\x01\n" + + "+workflow_execution_started_event_attributes\x18\x06 \x01(\v2@.temporal.api.history.v1.WorkflowExecutionStartedEventAttributesH\x00R'workflowExecutionStartedEventAttributes\x12\xa6\x01\n" + + "-workflow_execution_completed_event_attributes\x18\a \x01(\v2B.temporal.api.history.v1.WorkflowExecutionCompletedEventAttributesH\x00R)workflowExecutionCompletedEventAttributes\x12\x9d\x01\n" + + "*workflow_execution_failed_event_attributes\x18\b \x01(\v2?.temporal.api.history.v1.WorkflowExecutionFailedEventAttributesH\x00R&workflowExecutionFailedEventAttributes\x12\xa4\x01\n" + + "-workflow_execution_timed_out_event_attributes\x18\t \x01(\v2A.temporal.api.history.v1.WorkflowExecutionTimedOutEventAttributesH\x00R(workflowExecutionTimedOutEventAttributes\x12\x97\x01\n" + + "(workflow_task_scheduled_event_attributes\x18\n" + + " \x01(\v2=.temporal.api.history.v1.WorkflowTaskScheduledEventAttributesH\x00R$workflowTaskScheduledEventAttributes\x12\x91\x01\n" + + "&workflow_task_started_event_attributes\x18\v \x01(\v2;.temporal.api.history.v1.WorkflowTaskStartedEventAttributesH\x00R\"workflowTaskStartedEventAttributes\x12\x97\x01\n" + + "(workflow_task_completed_event_attributes\x18\f \x01(\v2=.temporal.api.history.v1.WorkflowTaskCompletedEventAttributesH\x00R$workflowTaskCompletedEventAttributes\x12\x95\x01\n" + + "(workflow_task_timed_out_event_attributes\x18\r \x01(\v2<.temporal.api.history.v1.WorkflowTaskTimedOutEventAttributesH\x00R#workflowTaskTimedOutEventAttributes\x12\x8e\x01\n" + + "%workflow_task_failed_event_attributes\x18\x0e \x01(\v2:.temporal.api.history.v1.WorkflowTaskFailedEventAttributesH\x00R!workflowTaskFailedEventAttributes\x12\x97\x01\n" + + "(activity_task_scheduled_event_attributes\x18\x0f \x01(\v2=.temporal.api.history.v1.ActivityTaskScheduledEventAttributesH\x00R$activityTaskScheduledEventAttributes\x12\x91\x01\n" + + "&activity_task_started_event_attributes\x18\x10 \x01(\v2;.temporal.api.history.v1.ActivityTaskStartedEventAttributesH\x00R\"activityTaskStartedEventAttributes\x12\x97\x01\n" + + "(activity_task_completed_event_attributes\x18\x11 \x01(\v2=.temporal.api.history.v1.ActivityTaskCompletedEventAttributesH\x00R$activityTaskCompletedEventAttributes\x12\x8e\x01\n" + + "%activity_task_failed_event_attributes\x18\x12 \x01(\v2:.temporal.api.history.v1.ActivityTaskFailedEventAttributesH\x00R!activityTaskFailedEventAttributes\x12\x95\x01\n" + + "(activity_task_timed_out_event_attributes\x18\x13 \x01(\v2<.temporal.api.history.v1.ActivityTaskTimedOutEventAttributesH\x00R#activityTaskTimedOutEventAttributes\x12{\n" + + "\x1etimer_started_event_attributes\x18\x14 \x01(\v24.temporal.api.history.v1.TimerStartedEventAttributesH\x00R\x1btimerStartedEventAttributes\x12u\n" + + "\x1ctimer_fired_event_attributes\x18\x15 \x01(\v22.temporal.api.history.v1.TimerFiredEventAttributesH\x00R\x19timerFiredEventAttributes\x12\xaa\x01\n" + + "/activity_task_cancel_requested_event_attributes\x18\x16 \x01(\v2C.temporal.api.history.v1.ActivityTaskCancelRequestedEventAttributesH\x00R*activityTaskCancelRequestedEventAttributes\x12\x94\x01\n" + + "'activity_task_canceled_event_attributes\x18\x17 \x01(\v2<.temporal.api.history.v1.ActivityTaskCanceledEventAttributesH\x00R#activityTaskCanceledEventAttributes\x12~\n" + + "\x1ftimer_canceled_event_attributes\x18\x18 \x01(\v25.temporal.api.history.v1.TimerCanceledEventAttributesH\x00R\x1ctimerCanceledEventAttributes\x12\x81\x01\n" + + " marker_recorded_event_attributes\x18\x19 \x01(\v26.temporal.api.history.v1.MarkerRecordedEventAttributesH\x00R\x1dmarkerRecordedEventAttributes\x12\xa3\x01\n" + + ",workflow_execution_signaled_event_attributes\x18\x1a \x01(\v2A.temporal.api.history.v1.WorkflowExecutionSignaledEventAttributesH\x00R(workflowExecutionSignaledEventAttributes\x12\xa9\x01\n" + + ".workflow_execution_terminated_event_attributes\x18\x1b \x01(\v2C.temporal.api.history.v1.WorkflowExecutionTerminatedEventAttributesH\x00R*workflowExecutionTerminatedEventAttributes\x12\xb9\x01\n" + + "4workflow_execution_cancel_requested_event_attributes\x18\x1c \x01(\v2H.temporal.api.history.v1.WorkflowExecutionCancelRequestedEventAttributesH\x00R/workflowExecutionCancelRequestedEventAttributes\x12\xa3\x01\n" + + ",workflow_execution_canceled_event_attributes\x18\x1d \x01(\v2A.temporal.api.history.v1.WorkflowExecutionCanceledEventAttributesH\x00R(workflowExecutionCanceledEventAttributes\x12\xe8\x01\n" + + "Erequest_cancel_external_workflow_execution_initiated_event_attributes\x18\x1e \x01(\v2W.temporal.api.history.v1.RequestCancelExternalWorkflowExecutionInitiatedEventAttributesH\x00R>requestCancelExternalWorkflowExecutionInitiatedEventAttributes\x12\xdf\x01\n" + + "Brequest_cancel_external_workflow_execution_failed_event_attributes\x18\x1f \x01(\v2T.temporal.api.history.v1.RequestCancelExternalWorkflowExecutionFailedEventAttributesH\x00R;requestCancelExternalWorkflowExecutionFailedEventAttributes\x12\xd2\x01\n" + + "=external_workflow_execution_cancel_requested_event_attributes\x18 \x01(\v2P.temporal.api.history.v1.ExternalWorkflowExecutionCancelRequestedEventAttributesH\x00R7externalWorkflowExecutionCancelRequestedEventAttributes\x12\xb7\x01\n" + + "4workflow_execution_continued_as_new_event_attributes\x18! \x01(\v2G.temporal.api.history.v1.WorkflowExecutionContinuedAsNewEventAttributesH\x00R.workflowExecutionContinuedAsNewEventAttributes\x12\xc6\x01\n" + + "9start_child_workflow_execution_initiated_event_attributes\x18\" \x01(\v2L.temporal.api.history.v1.StartChildWorkflowExecutionInitiatedEventAttributesH\x00R3startChildWorkflowExecutionInitiatedEventAttributes\x12\xbd\x01\n" + + "6start_child_workflow_execution_failed_event_attributes\x18# \x01(\v2I.temporal.api.history.v1.StartChildWorkflowExecutionFailedEventAttributesH\x00R0startChildWorkflowExecutionFailedEventAttributes\x12\xb0\x01\n" + + "1child_workflow_execution_started_event_attributes\x18$ \x01(\v2E.temporal.api.history.v1.ChildWorkflowExecutionStartedEventAttributesH\x00R,childWorkflowExecutionStartedEventAttributes\x12\xb6\x01\n" + + "3child_workflow_execution_completed_event_attributes\x18% \x01(\v2G.temporal.api.history.v1.ChildWorkflowExecutionCompletedEventAttributesH\x00R.childWorkflowExecutionCompletedEventAttributes\x12\xad\x01\n" + + "0child_workflow_execution_failed_event_attributes\x18& \x01(\v2D.temporal.api.history.v1.ChildWorkflowExecutionFailedEventAttributesH\x00R+childWorkflowExecutionFailedEventAttributes\x12\xb3\x01\n" + + "2child_workflow_execution_canceled_event_attributes\x18' \x01(\v2F.temporal.api.history.v1.ChildWorkflowExecutionCanceledEventAttributesH\x00R-childWorkflowExecutionCanceledEventAttributes\x12\xb4\x01\n" + + "3child_workflow_execution_timed_out_event_attributes\x18( \x01(\v2F.temporal.api.history.v1.ChildWorkflowExecutionTimedOutEventAttributesH\x00R-childWorkflowExecutionTimedOutEventAttributes\x12\xb9\x01\n" + + "4child_workflow_execution_terminated_event_attributes\x18) \x01(\v2H.temporal.api.history.v1.ChildWorkflowExecutionTerminatedEventAttributesH\x00R/childWorkflowExecutionTerminatedEventAttributes\x12\xd2\x01\n" + + "=signal_external_workflow_execution_initiated_event_attributes\x18* \x01(\v2P.temporal.api.history.v1.SignalExternalWorkflowExecutionInitiatedEventAttributesH\x00R7signalExternalWorkflowExecutionInitiatedEventAttributes\x12\xc9\x01\n" + + ":signal_external_workflow_execution_failed_event_attributes\x18+ \x01(\v2M.temporal.api.history.v1.SignalExternalWorkflowExecutionFailedEventAttributesH\x00R4signalExternalWorkflowExecutionFailedEventAttributes\x12\xbc\x01\n" + + "5external_workflow_execution_signaled_event_attributes\x18, \x01(\v2I.temporal.api.history.v1.ExternalWorkflowExecutionSignaledEventAttributesH\x00R0externalWorkflowExecutionSignaledEventAttributes\x12\xb3\x01\n" + + "2upsert_workflow_search_attributes_event_attributes\x18- \x01(\v2F.temporal.api.history.v1.UpsertWorkflowSearchAttributesEventAttributesH\x00R-upsertWorkflowSearchAttributesEventAttributes\x12\xb6\x01\n" + + "3workflow_execution_update_accepted_event_attributes\x18. \x01(\v2G.temporal.api.history.v1.WorkflowExecutionUpdateAcceptedEventAttributesH\x00R.workflowExecutionUpdateAcceptedEventAttributes\x12\xb6\x01\n" + + "3workflow_execution_update_rejected_event_attributes\x18/ \x01(\v2G.temporal.api.history.v1.WorkflowExecutionUpdateRejectedEventAttributesH\x00R.workflowExecutionUpdateRejectedEventAttributes\x12\xb9\x01\n" + + "4workflow_execution_update_completed_event_attributes\x180 \x01(\v2H.temporal.api.history.v1.WorkflowExecutionUpdateCompletedEventAttributesH\x00R/workflowExecutionUpdateCompletedEventAttributes\x12\xc5\x01\n" + + "8workflow_properties_modified_externally_event_attributes\x181 \x01(\v2L.temporal.api.history.v1.WorkflowPropertiesModifiedExternallyEventAttributesH\x00R3workflowPropertiesModifiedExternallyEventAttributes\x12\xc5\x01\n" + + "8activity_properties_modified_externally_event_attributes\x182 \x01(\v2L.temporal.api.history.v1.ActivityPropertiesModifiedExternallyEventAttributesH\x00R3activityPropertiesModifiedExternallyEventAttributes\x12\xa6\x01\n" + + "-workflow_properties_modified_event_attributes\x183 \x01(\v2B.temporal.api.history.v1.WorkflowPropertiesModifiedEventAttributesH\x00R)workflowPropertiesModifiedEventAttributes\x12\xb6\x01\n" + + "3workflow_execution_update_admitted_event_attributes\x184 \x01(\v2G.temporal.api.history.v1.WorkflowExecutionUpdateAdmittedEventAttributesH\x00R.workflowExecutionUpdateAdmittedEventAttributes\x12\x9d\x01\n" + + "*nexus_operation_scheduled_event_attributes\x185 \x01(\v2?.temporal.api.history.v1.NexusOperationScheduledEventAttributesH\x00R&nexusOperationScheduledEventAttributes\x12\x97\x01\n" + + "(nexus_operation_started_event_attributes\x186 \x01(\v2=.temporal.api.history.v1.NexusOperationStartedEventAttributesH\x00R$nexusOperationStartedEventAttributes\x12\x9d\x01\n" + + "*nexus_operation_completed_event_attributes\x187 \x01(\v2?.temporal.api.history.v1.NexusOperationCompletedEventAttributesH\x00R&nexusOperationCompletedEventAttributes\x12\x94\x01\n" + + "'nexus_operation_failed_event_attributes\x188 \x01(\v2<.temporal.api.history.v1.NexusOperationFailedEventAttributesH\x00R#nexusOperationFailedEventAttributes\x12\x9a\x01\n" + + ")nexus_operation_canceled_event_attributes\x189 \x01(\v2>.temporal.api.history.v1.NexusOperationCanceledEventAttributesH\x00R%nexusOperationCanceledEventAttributes\x12\x9b\x01\n" + + "*nexus_operation_timed_out_event_attributes\x18: \x01(\v2>.temporal.api.history.v1.NexusOperationTimedOutEventAttributesH\x00R%nexusOperationTimedOutEventAttributes\x12\xb0\x01\n" + + "1nexus_operation_cancel_requested_event_attributes\x18; \x01(\v2E.temporal.api.history.v1.NexusOperationCancelRequestedEventAttributesH\x00R,nexusOperationCancelRequestedEventAttributes\x12\xb6\x01\n" + + "3workflow_execution_options_updated_event_attributes\x18< \x01(\v2G.temporal.api.history.v1.WorkflowExecutionOptionsUpdatedEventAttributesH\x00R.workflowExecutionOptionsUpdatedEventAttributes\x12\xc6\x01\n" + + "9nexus_operation_cancel_request_completed_event_attributes\x18= \x01(\v2L.temporal.api.history.v1.NexusOperationCancelRequestCompletedEventAttributesH\x00R3nexusOperationCancelRequestCompletedEventAttributes\x12\xbd\x01\n" + + "6nexus_operation_cancel_request_failed_event_attributes\x18> \x01(\v2I.temporal.api.history.v1.NexusOperationCancelRequestFailedEventAttributesH\x00R0nexusOperationCancelRequestFailedEventAttributes\x12\x9d\x01\n" + + "*workflow_execution_paused_event_attributes\x18? \x01(\v2?.temporal.api.history.v1.WorkflowExecutionPausedEventAttributesH\x00R&workflowExecutionPausedEventAttributes\x12\xa3\x01\n" + + ",workflow_execution_unpaused_event_attributes\x18@ \x01(\v2A.temporal.api.history.v1.WorkflowExecutionUnpausedEventAttributesH\x00R(workflowExecutionUnpausedEventAttributesB\f\n" + + "\n" + + "attributes\"H\n" + + "\aHistory\x12=\n" + + "\x06events\x18\x01 \x03(\v2%.temporal.api.history.v1.HistoryEventR\x06eventsB\x8e\x01\n" + + "\x1aio.temporal.api.history.v1B\fMessageProtoP\x01Z%go.temporal.io/api/history/v1;history\xaa\x02\x19Temporalio.Api.History.V1\xea\x02\x1cTemporalio::Api::History::V1b\x06proto3" + +var file_temporal_api_history_v1_message_proto_msgTypes = make([]protoimpl.MessageInfo, 63) +var file_temporal_api_history_v1_message_proto_goTypes = []any{ + (*WorkflowExecutionStartedEventAttributes)(nil), // 0: temporal.api.history.v1.WorkflowExecutionStartedEventAttributes + (*WorkflowExecutionCompletedEventAttributes)(nil), // 1: temporal.api.history.v1.WorkflowExecutionCompletedEventAttributes + (*WorkflowExecutionFailedEventAttributes)(nil), // 2: temporal.api.history.v1.WorkflowExecutionFailedEventAttributes + (*WorkflowExecutionTimedOutEventAttributes)(nil), // 3: temporal.api.history.v1.WorkflowExecutionTimedOutEventAttributes + (*WorkflowExecutionContinuedAsNewEventAttributes)(nil), // 4: temporal.api.history.v1.WorkflowExecutionContinuedAsNewEventAttributes + (*WorkflowTaskScheduledEventAttributes)(nil), // 5: temporal.api.history.v1.WorkflowTaskScheduledEventAttributes + (*WorkflowTaskStartedEventAttributes)(nil), // 6: temporal.api.history.v1.WorkflowTaskStartedEventAttributes + (*WorkflowTaskCompletedEventAttributes)(nil), // 7: temporal.api.history.v1.WorkflowTaskCompletedEventAttributes + (*WorkflowTaskTimedOutEventAttributes)(nil), // 8: temporal.api.history.v1.WorkflowTaskTimedOutEventAttributes + (*WorkflowTaskFailedEventAttributes)(nil), // 9: temporal.api.history.v1.WorkflowTaskFailedEventAttributes + (*ActivityTaskScheduledEventAttributes)(nil), // 10: temporal.api.history.v1.ActivityTaskScheduledEventAttributes + (*ActivityTaskStartedEventAttributes)(nil), // 11: temporal.api.history.v1.ActivityTaskStartedEventAttributes + (*ActivityTaskCompletedEventAttributes)(nil), // 12: temporal.api.history.v1.ActivityTaskCompletedEventAttributes + (*ActivityTaskFailedEventAttributes)(nil), // 13: temporal.api.history.v1.ActivityTaskFailedEventAttributes + (*ActivityTaskTimedOutEventAttributes)(nil), // 14: temporal.api.history.v1.ActivityTaskTimedOutEventAttributes + (*ActivityTaskCancelRequestedEventAttributes)(nil), // 15: temporal.api.history.v1.ActivityTaskCancelRequestedEventAttributes + (*ActivityTaskCanceledEventAttributes)(nil), // 16: temporal.api.history.v1.ActivityTaskCanceledEventAttributes + (*TimerStartedEventAttributes)(nil), // 17: temporal.api.history.v1.TimerStartedEventAttributes + (*TimerFiredEventAttributes)(nil), // 18: temporal.api.history.v1.TimerFiredEventAttributes + (*TimerCanceledEventAttributes)(nil), // 19: temporal.api.history.v1.TimerCanceledEventAttributes + (*WorkflowExecutionCancelRequestedEventAttributes)(nil), // 20: temporal.api.history.v1.WorkflowExecutionCancelRequestedEventAttributes + (*WorkflowExecutionCanceledEventAttributes)(nil), // 21: temporal.api.history.v1.WorkflowExecutionCanceledEventAttributes + (*MarkerRecordedEventAttributes)(nil), // 22: temporal.api.history.v1.MarkerRecordedEventAttributes + (*WorkflowExecutionSignaledEventAttributes)(nil), // 23: temporal.api.history.v1.WorkflowExecutionSignaledEventAttributes + (*WorkflowExecutionTerminatedEventAttributes)(nil), // 24: temporal.api.history.v1.WorkflowExecutionTerminatedEventAttributes + (*RequestCancelExternalWorkflowExecutionInitiatedEventAttributes)(nil), // 25: temporal.api.history.v1.RequestCancelExternalWorkflowExecutionInitiatedEventAttributes + (*RequestCancelExternalWorkflowExecutionFailedEventAttributes)(nil), // 26: temporal.api.history.v1.RequestCancelExternalWorkflowExecutionFailedEventAttributes + (*ExternalWorkflowExecutionCancelRequestedEventAttributes)(nil), // 27: temporal.api.history.v1.ExternalWorkflowExecutionCancelRequestedEventAttributes + (*SignalExternalWorkflowExecutionInitiatedEventAttributes)(nil), // 28: temporal.api.history.v1.SignalExternalWorkflowExecutionInitiatedEventAttributes + (*SignalExternalWorkflowExecutionFailedEventAttributes)(nil), // 29: temporal.api.history.v1.SignalExternalWorkflowExecutionFailedEventAttributes + (*ExternalWorkflowExecutionSignaledEventAttributes)(nil), // 30: temporal.api.history.v1.ExternalWorkflowExecutionSignaledEventAttributes + (*UpsertWorkflowSearchAttributesEventAttributes)(nil), // 31: temporal.api.history.v1.UpsertWorkflowSearchAttributesEventAttributes + (*WorkflowPropertiesModifiedEventAttributes)(nil), // 32: temporal.api.history.v1.WorkflowPropertiesModifiedEventAttributes + (*StartChildWorkflowExecutionInitiatedEventAttributes)(nil), // 33: temporal.api.history.v1.StartChildWorkflowExecutionInitiatedEventAttributes + (*StartChildWorkflowExecutionFailedEventAttributes)(nil), // 34: temporal.api.history.v1.StartChildWorkflowExecutionFailedEventAttributes + (*ChildWorkflowExecutionStartedEventAttributes)(nil), // 35: temporal.api.history.v1.ChildWorkflowExecutionStartedEventAttributes + (*ChildWorkflowExecutionCompletedEventAttributes)(nil), // 36: temporal.api.history.v1.ChildWorkflowExecutionCompletedEventAttributes + (*ChildWorkflowExecutionFailedEventAttributes)(nil), // 37: temporal.api.history.v1.ChildWorkflowExecutionFailedEventAttributes + (*ChildWorkflowExecutionCanceledEventAttributes)(nil), // 38: temporal.api.history.v1.ChildWorkflowExecutionCanceledEventAttributes + (*ChildWorkflowExecutionTimedOutEventAttributes)(nil), // 39: temporal.api.history.v1.ChildWorkflowExecutionTimedOutEventAttributes + (*ChildWorkflowExecutionTerminatedEventAttributes)(nil), // 40: temporal.api.history.v1.ChildWorkflowExecutionTerminatedEventAttributes + (*WorkflowExecutionOptionsUpdatedEventAttributes)(nil), // 41: temporal.api.history.v1.WorkflowExecutionOptionsUpdatedEventAttributes + (*WorkflowPropertiesModifiedExternallyEventAttributes)(nil), // 42: temporal.api.history.v1.WorkflowPropertiesModifiedExternallyEventAttributes + (*ActivityPropertiesModifiedExternallyEventAttributes)(nil), // 43: temporal.api.history.v1.ActivityPropertiesModifiedExternallyEventAttributes + (*WorkflowExecutionUpdateAcceptedEventAttributes)(nil), // 44: temporal.api.history.v1.WorkflowExecutionUpdateAcceptedEventAttributes + (*WorkflowExecutionUpdateCompletedEventAttributes)(nil), // 45: temporal.api.history.v1.WorkflowExecutionUpdateCompletedEventAttributes + (*WorkflowExecutionUpdateRejectedEventAttributes)(nil), // 46: temporal.api.history.v1.WorkflowExecutionUpdateRejectedEventAttributes + (*WorkflowExecutionUpdateAdmittedEventAttributes)(nil), // 47: temporal.api.history.v1.WorkflowExecutionUpdateAdmittedEventAttributes + (*WorkflowExecutionPausedEventAttributes)(nil), // 48: temporal.api.history.v1.WorkflowExecutionPausedEventAttributes + (*WorkflowExecutionUnpausedEventAttributes)(nil), // 49: temporal.api.history.v1.WorkflowExecutionUnpausedEventAttributes + (*NexusOperationScheduledEventAttributes)(nil), // 50: temporal.api.history.v1.NexusOperationScheduledEventAttributes + (*NexusOperationStartedEventAttributes)(nil), // 51: temporal.api.history.v1.NexusOperationStartedEventAttributes + (*NexusOperationCompletedEventAttributes)(nil), // 52: temporal.api.history.v1.NexusOperationCompletedEventAttributes + (*NexusOperationFailedEventAttributes)(nil), // 53: temporal.api.history.v1.NexusOperationFailedEventAttributes + (*NexusOperationTimedOutEventAttributes)(nil), // 54: temporal.api.history.v1.NexusOperationTimedOutEventAttributes + (*NexusOperationCanceledEventAttributes)(nil), // 55: temporal.api.history.v1.NexusOperationCanceledEventAttributes + (*NexusOperationCancelRequestedEventAttributes)(nil), // 56: temporal.api.history.v1.NexusOperationCancelRequestedEventAttributes + (*NexusOperationCancelRequestCompletedEventAttributes)(nil), // 57: temporal.api.history.v1.NexusOperationCancelRequestCompletedEventAttributes + (*NexusOperationCancelRequestFailedEventAttributes)(nil), // 58: temporal.api.history.v1.NexusOperationCancelRequestFailedEventAttributes + (*HistoryEvent)(nil), // 59: temporal.api.history.v1.HistoryEvent + (*History)(nil), // 60: temporal.api.history.v1.History + nil, // 61: temporal.api.history.v1.MarkerRecordedEventAttributes.DetailsEntry + nil, // 62: temporal.api.history.v1.NexusOperationScheduledEventAttributes.NexusHeaderEntry + (*v1.WorkflowType)(nil), // 63: temporal.api.common.v1.WorkflowType + (*v1.WorkflowExecution)(nil), // 64: temporal.api.common.v1.WorkflowExecution + (*v11.TaskQueue)(nil), // 65: temporal.api.taskqueue.v1.TaskQueue + (*v1.Payloads)(nil), // 66: temporal.api.common.v1.Payloads + (*durationpb.Duration)(nil), // 67: google.protobuf.Duration + (v12.ContinueAsNewInitiator)(0), // 68: temporal.api.enums.v1.ContinueAsNewInitiator + (*v13.Failure)(nil), // 69: temporal.api.failure.v1.Failure + (*v1.RetryPolicy)(nil), // 70: temporal.api.common.v1.RetryPolicy + (*timestamppb.Timestamp)(nil), // 71: google.protobuf.Timestamp + (*v1.Memo)(nil), // 72: temporal.api.common.v1.Memo + (*v1.SearchAttributes)(nil), // 73: temporal.api.common.v1.SearchAttributes + (*v14.ResetPoints)(nil), // 74: temporal.api.workflow.v1.ResetPoints + (*v1.Header)(nil), // 75: temporal.api.common.v1.Header + (*v1.WorkerVersionStamp)(nil), // 76: temporal.api.common.v1.WorkerVersionStamp + (*v1.Callback)(nil), // 77: temporal.api.common.v1.Callback + (*v14.VersioningOverride)(nil), // 78: temporal.api.workflow.v1.VersioningOverride + (*v1.Priority)(nil), // 79: temporal.api.common.v1.Priority + (*v15.WorkerDeploymentVersion)(nil), // 80: temporal.api.deployment.v1.WorkerDeploymentVersion + (*v15.InheritedAutoUpgradeInfo)(nil), // 81: temporal.api.deployment.v1.InheritedAutoUpgradeInfo + (v12.RetryState)(0), // 82: temporal.api.enums.v1.RetryState + (v12.ContinueAsNewVersioningBehavior)(0), // 83: temporal.api.enums.v1.ContinueAsNewVersioningBehavior + (v12.SuggestContinueAsNewReason)(0), // 84: temporal.api.enums.v1.SuggestContinueAsNewReason + (*v16.WorkflowTaskCompletedMetadata)(nil), // 85: temporal.api.sdk.v1.WorkflowTaskCompletedMetadata + (*v1.MeteringMetadata)(nil), // 86: temporal.api.common.v1.MeteringMetadata + (*v15.Deployment)(nil), // 87: temporal.api.deployment.v1.Deployment + (v12.VersioningBehavior)(0), // 88: temporal.api.enums.v1.VersioningBehavior + (v12.TimeoutType)(0), // 89: temporal.api.enums.v1.TimeoutType + (v12.WorkflowTaskFailedCause)(0), // 90: temporal.api.enums.v1.WorkflowTaskFailedCause + (*v1.ActivityType)(nil), // 91: temporal.api.common.v1.ActivityType + (v12.CancelExternalWorkflowExecutionFailedCause)(0), // 92: temporal.api.enums.v1.CancelExternalWorkflowExecutionFailedCause + (v12.SignalExternalWorkflowExecutionFailedCause)(0), // 93: temporal.api.enums.v1.SignalExternalWorkflowExecutionFailedCause + (v12.ParentClosePolicy)(0), // 94: temporal.api.enums.v1.ParentClosePolicy + (v12.WorkflowIdReusePolicy)(0), // 95: temporal.api.enums.v1.WorkflowIdReusePolicy + (v12.StartChildWorkflowExecutionFailedCause)(0), // 96: temporal.api.enums.v1.StartChildWorkflowExecutionFailedCause + (*v17.Request)(nil), // 97: temporal.api.update.v1.Request + (*v17.Meta)(nil), // 98: temporal.api.update.v1.Meta + (*v17.Outcome)(nil), // 99: temporal.api.update.v1.Outcome + (v12.UpdateAdmittedEventOrigin)(0), // 100: temporal.api.enums.v1.UpdateAdmittedEventOrigin + (*v1.Payload)(nil), // 101: temporal.api.common.v1.Payload + (v12.EventType)(0), // 102: temporal.api.enums.v1.EventType + (*v16.UserMetadata)(nil), // 103: temporal.api.sdk.v1.UserMetadata + (*v1.Link)(nil), // 104: temporal.api.common.v1.Link +} +var file_temporal_api_history_v1_message_proto_depIdxs = []int32{ + 63, // 0: temporal.api.history.v1.WorkflowExecutionStartedEventAttributes.workflow_type:type_name -> temporal.api.common.v1.WorkflowType + 64, // 1: temporal.api.history.v1.WorkflowExecutionStartedEventAttributes.parent_workflow_execution:type_name -> temporal.api.common.v1.WorkflowExecution + 65, // 2: temporal.api.history.v1.WorkflowExecutionStartedEventAttributes.task_queue:type_name -> temporal.api.taskqueue.v1.TaskQueue + 66, // 3: temporal.api.history.v1.WorkflowExecutionStartedEventAttributes.input:type_name -> temporal.api.common.v1.Payloads + 67, // 4: temporal.api.history.v1.WorkflowExecutionStartedEventAttributes.workflow_execution_timeout:type_name -> google.protobuf.Duration + 67, // 5: temporal.api.history.v1.WorkflowExecutionStartedEventAttributes.workflow_run_timeout:type_name -> google.protobuf.Duration + 67, // 6: temporal.api.history.v1.WorkflowExecutionStartedEventAttributes.workflow_task_timeout:type_name -> google.protobuf.Duration + 68, // 7: temporal.api.history.v1.WorkflowExecutionStartedEventAttributes.initiator:type_name -> temporal.api.enums.v1.ContinueAsNewInitiator + 69, // 8: temporal.api.history.v1.WorkflowExecutionStartedEventAttributes.continued_failure:type_name -> temporal.api.failure.v1.Failure + 66, // 9: temporal.api.history.v1.WorkflowExecutionStartedEventAttributes.last_completion_result:type_name -> temporal.api.common.v1.Payloads + 70, // 10: temporal.api.history.v1.WorkflowExecutionStartedEventAttributes.retry_policy:type_name -> temporal.api.common.v1.RetryPolicy + 71, // 11: temporal.api.history.v1.WorkflowExecutionStartedEventAttributes.workflow_execution_expiration_time:type_name -> google.protobuf.Timestamp + 67, // 12: temporal.api.history.v1.WorkflowExecutionStartedEventAttributes.first_workflow_task_backoff:type_name -> google.protobuf.Duration + 72, // 13: temporal.api.history.v1.WorkflowExecutionStartedEventAttributes.memo:type_name -> temporal.api.common.v1.Memo + 73, // 14: temporal.api.history.v1.WorkflowExecutionStartedEventAttributes.search_attributes:type_name -> temporal.api.common.v1.SearchAttributes + 74, // 15: temporal.api.history.v1.WorkflowExecutionStartedEventAttributes.prev_auto_reset_points:type_name -> temporal.api.workflow.v1.ResetPoints + 75, // 16: temporal.api.history.v1.WorkflowExecutionStartedEventAttributes.header:type_name -> temporal.api.common.v1.Header + 76, // 17: temporal.api.history.v1.WorkflowExecutionStartedEventAttributes.source_version_stamp:type_name -> temporal.api.common.v1.WorkerVersionStamp + 77, // 18: temporal.api.history.v1.WorkflowExecutionStartedEventAttributes.completion_callbacks:type_name -> temporal.api.common.v1.Callback + 64, // 19: temporal.api.history.v1.WorkflowExecutionStartedEventAttributes.root_workflow_execution:type_name -> temporal.api.common.v1.WorkflowExecution + 78, // 20: temporal.api.history.v1.WorkflowExecutionStartedEventAttributes.versioning_override:type_name -> temporal.api.workflow.v1.VersioningOverride + 79, // 21: temporal.api.history.v1.WorkflowExecutionStartedEventAttributes.priority:type_name -> temporal.api.common.v1.Priority + 80, // 22: temporal.api.history.v1.WorkflowExecutionStartedEventAttributes.inherited_pinned_version:type_name -> temporal.api.deployment.v1.WorkerDeploymentVersion + 81, // 23: temporal.api.history.v1.WorkflowExecutionStartedEventAttributes.inherited_auto_upgrade_info:type_name -> temporal.api.deployment.v1.InheritedAutoUpgradeInfo + 66, // 24: temporal.api.history.v1.WorkflowExecutionCompletedEventAttributes.result:type_name -> temporal.api.common.v1.Payloads + 69, // 25: temporal.api.history.v1.WorkflowExecutionFailedEventAttributes.failure:type_name -> temporal.api.failure.v1.Failure + 82, // 26: temporal.api.history.v1.WorkflowExecutionFailedEventAttributes.retry_state:type_name -> temporal.api.enums.v1.RetryState + 82, // 27: temporal.api.history.v1.WorkflowExecutionTimedOutEventAttributes.retry_state:type_name -> temporal.api.enums.v1.RetryState + 63, // 28: temporal.api.history.v1.WorkflowExecutionContinuedAsNewEventAttributes.workflow_type:type_name -> temporal.api.common.v1.WorkflowType + 65, // 29: temporal.api.history.v1.WorkflowExecutionContinuedAsNewEventAttributes.task_queue:type_name -> temporal.api.taskqueue.v1.TaskQueue + 66, // 30: temporal.api.history.v1.WorkflowExecutionContinuedAsNewEventAttributes.input:type_name -> temporal.api.common.v1.Payloads + 67, // 31: temporal.api.history.v1.WorkflowExecutionContinuedAsNewEventAttributes.workflow_run_timeout:type_name -> google.protobuf.Duration + 67, // 32: temporal.api.history.v1.WorkflowExecutionContinuedAsNewEventAttributes.workflow_task_timeout:type_name -> google.protobuf.Duration + 67, // 33: temporal.api.history.v1.WorkflowExecutionContinuedAsNewEventAttributes.backoff_start_interval:type_name -> google.protobuf.Duration + 68, // 34: temporal.api.history.v1.WorkflowExecutionContinuedAsNewEventAttributes.initiator:type_name -> temporal.api.enums.v1.ContinueAsNewInitiator + 69, // 35: temporal.api.history.v1.WorkflowExecutionContinuedAsNewEventAttributes.failure:type_name -> temporal.api.failure.v1.Failure + 66, // 36: temporal.api.history.v1.WorkflowExecutionContinuedAsNewEventAttributes.last_completion_result:type_name -> temporal.api.common.v1.Payloads + 75, // 37: temporal.api.history.v1.WorkflowExecutionContinuedAsNewEventAttributes.header:type_name -> temporal.api.common.v1.Header + 72, // 38: temporal.api.history.v1.WorkflowExecutionContinuedAsNewEventAttributes.memo:type_name -> temporal.api.common.v1.Memo + 73, // 39: temporal.api.history.v1.WorkflowExecutionContinuedAsNewEventAttributes.search_attributes:type_name -> temporal.api.common.v1.SearchAttributes + 83, // 40: temporal.api.history.v1.WorkflowExecutionContinuedAsNewEventAttributes.initial_versioning_behavior:type_name -> temporal.api.enums.v1.ContinueAsNewVersioningBehavior + 65, // 41: temporal.api.history.v1.WorkflowTaskScheduledEventAttributes.task_queue:type_name -> temporal.api.taskqueue.v1.TaskQueue + 67, // 42: temporal.api.history.v1.WorkflowTaskScheduledEventAttributes.start_to_close_timeout:type_name -> google.protobuf.Duration + 84, // 43: temporal.api.history.v1.WorkflowTaskStartedEventAttributes.suggest_continue_as_new_reasons:type_name -> temporal.api.enums.v1.SuggestContinueAsNewReason + 76, // 44: temporal.api.history.v1.WorkflowTaskStartedEventAttributes.worker_version:type_name -> temporal.api.common.v1.WorkerVersionStamp + 76, // 45: temporal.api.history.v1.WorkflowTaskCompletedEventAttributes.worker_version:type_name -> temporal.api.common.v1.WorkerVersionStamp + 85, // 46: temporal.api.history.v1.WorkflowTaskCompletedEventAttributes.sdk_metadata:type_name -> temporal.api.sdk.v1.WorkflowTaskCompletedMetadata + 86, // 47: temporal.api.history.v1.WorkflowTaskCompletedEventAttributes.metering_metadata:type_name -> temporal.api.common.v1.MeteringMetadata + 87, // 48: temporal.api.history.v1.WorkflowTaskCompletedEventAttributes.deployment:type_name -> temporal.api.deployment.v1.Deployment + 88, // 49: temporal.api.history.v1.WorkflowTaskCompletedEventAttributes.versioning_behavior:type_name -> temporal.api.enums.v1.VersioningBehavior + 80, // 50: temporal.api.history.v1.WorkflowTaskCompletedEventAttributes.deployment_version:type_name -> temporal.api.deployment.v1.WorkerDeploymentVersion + 89, // 51: temporal.api.history.v1.WorkflowTaskTimedOutEventAttributes.timeout_type:type_name -> temporal.api.enums.v1.TimeoutType + 90, // 52: temporal.api.history.v1.WorkflowTaskFailedEventAttributes.cause:type_name -> temporal.api.enums.v1.WorkflowTaskFailedCause + 69, // 53: temporal.api.history.v1.WorkflowTaskFailedEventAttributes.failure:type_name -> temporal.api.failure.v1.Failure + 76, // 54: temporal.api.history.v1.WorkflowTaskFailedEventAttributes.worker_version:type_name -> temporal.api.common.v1.WorkerVersionStamp + 91, // 55: temporal.api.history.v1.ActivityTaskScheduledEventAttributes.activity_type:type_name -> temporal.api.common.v1.ActivityType + 65, // 56: temporal.api.history.v1.ActivityTaskScheduledEventAttributes.task_queue:type_name -> temporal.api.taskqueue.v1.TaskQueue + 75, // 57: temporal.api.history.v1.ActivityTaskScheduledEventAttributes.header:type_name -> temporal.api.common.v1.Header + 66, // 58: temporal.api.history.v1.ActivityTaskScheduledEventAttributes.input:type_name -> temporal.api.common.v1.Payloads + 67, // 59: temporal.api.history.v1.ActivityTaskScheduledEventAttributes.schedule_to_close_timeout:type_name -> google.protobuf.Duration + 67, // 60: temporal.api.history.v1.ActivityTaskScheduledEventAttributes.schedule_to_start_timeout:type_name -> google.protobuf.Duration + 67, // 61: temporal.api.history.v1.ActivityTaskScheduledEventAttributes.start_to_close_timeout:type_name -> google.protobuf.Duration + 67, // 62: temporal.api.history.v1.ActivityTaskScheduledEventAttributes.heartbeat_timeout:type_name -> google.protobuf.Duration + 70, // 63: temporal.api.history.v1.ActivityTaskScheduledEventAttributes.retry_policy:type_name -> temporal.api.common.v1.RetryPolicy + 79, // 64: temporal.api.history.v1.ActivityTaskScheduledEventAttributes.priority:type_name -> temporal.api.common.v1.Priority + 69, // 65: temporal.api.history.v1.ActivityTaskStartedEventAttributes.last_failure:type_name -> temporal.api.failure.v1.Failure + 76, // 66: temporal.api.history.v1.ActivityTaskStartedEventAttributes.worker_version:type_name -> temporal.api.common.v1.WorkerVersionStamp + 66, // 67: temporal.api.history.v1.ActivityTaskCompletedEventAttributes.result:type_name -> temporal.api.common.v1.Payloads + 76, // 68: temporal.api.history.v1.ActivityTaskCompletedEventAttributes.worker_version:type_name -> temporal.api.common.v1.WorkerVersionStamp + 69, // 69: temporal.api.history.v1.ActivityTaskFailedEventAttributes.failure:type_name -> temporal.api.failure.v1.Failure + 82, // 70: temporal.api.history.v1.ActivityTaskFailedEventAttributes.retry_state:type_name -> temporal.api.enums.v1.RetryState + 76, // 71: temporal.api.history.v1.ActivityTaskFailedEventAttributes.worker_version:type_name -> temporal.api.common.v1.WorkerVersionStamp + 69, // 72: temporal.api.history.v1.ActivityTaskTimedOutEventAttributes.failure:type_name -> temporal.api.failure.v1.Failure + 82, // 73: temporal.api.history.v1.ActivityTaskTimedOutEventAttributes.retry_state:type_name -> temporal.api.enums.v1.RetryState + 66, // 74: temporal.api.history.v1.ActivityTaskCanceledEventAttributes.details:type_name -> temporal.api.common.v1.Payloads + 76, // 75: temporal.api.history.v1.ActivityTaskCanceledEventAttributes.worker_version:type_name -> temporal.api.common.v1.WorkerVersionStamp + 67, // 76: temporal.api.history.v1.TimerStartedEventAttributes.start_to_fire_timeout:type_name -> google.protobuf.Duration + 64, // 77: temporal.api.history.v1.WorkflowExecutionCancelRequestedEventAttributes.external_workflow_execution:type_name -> temporal.api.common.v1.WorkflowExecution + 66, // 78: temporal.api.history.v1.WorkflowExecutionCanceledEventAttributes.details:type_name -> temporal.api.common.v1.Payloads + 61, // 79: temporal.api.history.v1.MarkerRecordedEventAttributes.details:type_name -> temporal.api.history.v1.MarkerRecordedEventAttributes.DetailsEntry + 75, // 80: temporal.api.history.v1.MarkerRecordedEventAttributes.header:type_name -> temporal.api.common.v1.Header + 69, // 81: temporal.api.history.v1.MarkerRecordedEventAttributes.failure:type_name -> temporal.api.failure.v1.Failure + 66, // 82: temporal.api.history.v1.WorkflowExecutionSignaledEventAttributes.input:type_name -> temporal.api.common.v1.Payloads + 75, // 83: temporal.api.history.v1.WorkflowExecutionSignaledEventAttributes.header:type_name -> temporal.api.common.v1.Header + 64, // 84: temporal.api.history.v1.WorkflowExecutionSignaledEventAttributes.external_workflow_execution:type_name -> temporal.api.common.v1.WorkflowExecution + 66, // 85: temporal.api.history.v1.WorkflowExecutionTerminatedEventAttributes.details:type_name -> temporal.api.common.v1.Payloads + 64, // 86: temporal.api.history.v1.RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.workflow_execution:type_name -> temporal.api.common.v1.WorkflowExecution + 92, // 87: temporal.api.history.v1.RequestCancelExternalWorkflowExecutionFailedEventAttributes.cause:type_name -> temporal.api.enums.v1.CancelExternalWorkflowExecutionFailedCause + 64, // 88: temporal.api.history.v1.RequestCancelExternalWorkflowExecutionFailedEventAttributes.workflow_execution:type_name -> temporal.api.common.v1.WorkflowExecution + 64, // 89: temporal.api.history.v1.ExternalWorkflowExecutionCancelRequestedEventAttributes.workflow_execution:type_name -> temporal.api.common.v1.WorkflowExecution + 64, // 90: temporal.api.history.v1.SignalExternalWorkflowExecutionInitiatedEventAttributes.workflow_execution:type_name -> temporal.api.common.v1.WorkflowExecution + 66, // 91: temporal.api.history.v1.SignalExternalWorkflowExecutionInitiatedEventAttributes.input:type_name -> temporal.api.common.v1.Payloads + 75, // 92: temporal.api.history.v1.SignalExternalWorkflowExecutionInitiatedEventAttributes.header:type_name -> temporal.api.common.v1.Header + 93, // 93: temporal.api.history.v1.SignalExternalWorkflowExecutionFailedEventAttributes.cause:type_name -> temporal.api.enums.v1.SignalExternalWorkflowExecutionFailedCause + 64, // 94: temporal.api.history.v1.SignalExternalWorkflowExecutionFailedEventAttributes.workflow_execution:type_name -> temporal.api.common.v1.WorkflowExecution + 64, // 95: temporal.api.history.v1.ExternalWorkflowExecutionSignaledEventAttributes.workflow_execution:type_name -> temporal.api.common.v1.WorkflowExecution + 73, // 96: temporal.api.history.v1.UpsertWorkflowSearchAttributesEventAttributes.search_attributes:type_name -> temporal.api.common.v1.SearchAttributes + 72, // 97: temporal.api.history.v1.WorkflowPropertiesModifiedEventAttributes.upserted_memo:type_name -> temporal.api.common.v1.Memo + 63, // 98: temporal.api.history.v1.StartChildWorkflowExecutionInitiatedEventAttributes.workflow_type:type_name -> temporal.api.common.v1.WorkflowType + 65, // 99: temporal.api.history.v1.StartChildWorkflowExecutionInitiatedEventAttributes.task_queue:type_name -> temporal.api.taskqueue.v1.TaskQueue + 66, // 100: temporal.api.history.v1.StartChildWorkflowExecutionInitiatedEventAttributes.input:type_name -> temporal.api.common.v1.Payloads + 67, // 101: temporal.api.history.v1.StartChildWorkflowExecutionInitiatedEventAttributes.workflow_execution_timeout:type_name -> google.protobuf.Duration + 67, // 102: temporal.api.history.v1.StartChildWorkflowExecutionInitiatedEventAttributes.workflow_run_timeout:type_name -> google.protobuf.Duration + 67, // 103: temporal.api.history.v1.StartChildWorkflowExecutionInitiatedEventAttributes.workflow_task_timeout:type_name -> google.protobuf.Duration + 94, // 104: temporal.api.history.v1.StartChildWorkflowExecutionInitiatedEventAttributes.parent_close_policy:type_name -> temporal.api.enums.v1.ParentClosePolicy + 95, // 105: temporal.api.history.v1.StartChildWorkflowExecutionInitiatedEventAttributes.workflow_id_reuse_policy:type_name -> temporal.api.enums.v1.WorkflowIdReusePolicy + 70, // 106: temporal.api.history.v1.StartChildWorkflowExecutionInitiatedEventAttributes.retry_policy:type_name -> temporal.api.common.v1.RetryPolicy + 75, // 107: temporal.api.history.v1.StartChildWorkflowExecutionInitiatedEventAttributes.header:type_name -> temporal.api.common.v1.Header + 72, // 108: temporal.api.history.v1.StartChildWorkflowExecutionInitiatedEventAttributes.memo:type_name -> temporal.api.common.v1.Memo + 73, // 109: temporal.api.history.v1.StartChildWorkflowExecutionInitiatedEventAttributes.search_attributes:type_name -> temporal.api.common.v1.SearchAttributes + 79, // 110: temporal.api.history.v1.StartChildWorkflowExecutionInitiatedEventAttributes.priority:type_name -> temporal.api.common.v1.Priority + 63, // 111: temporal.api.history.v1.StartChildWorkflowExecutionFailedEventAttributes.workflow_type:type_name -> temporal.api.common.v1.WorkflowType + 96, // 112: temporal.api.history.v1.StartChildWorkflowExecutionFailedEventAttributes.cause:type_name -> temporal.api.enums.v1.StartChildWorkflowExecutionFailedCause + 64, // 113: temporal.api.history.v1.ChildWorkflowExecutionStartedEventAttributes.workflow_execution:type_name -> temporal.api.common.v1.WorkflowExecution + 63, // 114: temporal.api.history.v1.ChildWorkflowExecutionStartedEventAttributes.workflow_type:type_name -> temporal.api.common.v1.WorkflowType + 75, // 115: temporal.api.history.v1.ChildWorkflowExecutionStartedEventAttributes.header:type_name -> temporal.api.common.v1.Header + 66, // 116: temporal.api.history.v1.ChildWorkflowExecutionCompletedEventAttributes.result:type_name -> temporal.api.common.v1.Payloads + 64, // 117: temporal.api.history.v1.ChildWorkflowExecutionCompletedEventAttributes.workflow_execution:type_name -> temporal.api.common.v1.WorkflowExecution + 63, // 118: temporal.api.history.v1.ChildWorkflowExecutionCompletedEventAttributes.workflow_type:type_name -> temporal.api.common.v1.WorkflowType + 69, // 119: temporal.api.history.v1.ChildWorkflowExecutionFailedEventAttributes.failure:type_name -> temporal.api.failure.v1.Failure + 64, // 120: temporal.api.history.v1.ChildWorkflowExecutionFailedEventAttributes.workflow_execution:type_name -> temporal.api.common.v1.WorkflowExecution + 63, // 121: temporal.api.history.v1.ChildWorkflowExecutionFailedEventAttributes.workflow_type:type_name -> temporal.api.common.v1.WorkflowType + 82, // 122: temporal.api.history.v1.ChildWorkflowExecutionFailedEventAttributes.retry_state:type_name -> temporal.api.enums.v1.RetryState + 66, // 123: temporal.api.history.v1.ChildWorkflowExecutionCanceledEventAttributes.details:type_name -> temporal.api.common.v1.Payloads + 64, // 124: temporal.api.history.v1.ChildWorkflowExecutionCanceledEventAttributes.workflow_execution:type_name -> temporal.api.common.v1.WorkflowExecution + 63, // 125: temporal.api.history.v1.ChildWorkflowExecutionCanceledEventAttributes.workflow_type:type_name -> temporal.api.common.v1.WorkflowType + 64, // 126: temporal.api.history.v1.ChildWorkflowExecutionTimedOutEventAttributes.workflow_execution:type_name -> temporal.api.common.v1.WorkflowExecution + 63, // 127: temporal.api.history.v1.ChildWorkflowExecutionTimedOutEventAttributes.workflow_type:type_name -> temporal.api.common.v1.WorkflowType + 82, // 128: temporal.api.history.v1.ChildWorkflowExecutionTimedOutEventAttributes.retry_state:type_name -> temporal.api.enums.v1.RetryState + 64, // 129: temporal.api.history.v1.ChildWorkflowExecutionTerminatedEventAttributes.workflow_execution:type_name -> temporal.api.common.v1.WorkflowExecution + 63, // 130: temporal.api.history.v1.ChildWorkflowExecutionTerminatedEventAttributes.workflow_type:type_name -> temporal.api.common.v1.WorkflowType + 78, // 131: temporal.api.history.v1.WorkflowExecutionOptionsUpdatedEventAttributes.versioning_override:type_name -> temporal.api.workflow.v1.VersioningOverride + 77, // 132: temporal.api.history.v1.WorkflowExecutionOptionsUpdatedEventAttributes.attached_completion_callbacks:type_name -> temporal.api.common.v1.Callback + 79, // 133: temporal.api.history.v1.WorkflowExecutionOptionsUpdatedEventAttributes.priority:type_name -> temporal.api.common.v1.Priority + 67, // 134: temporal.api.history.v1.WorkflowPropertiesModifiedExternallyEventAttributes.new_workflow_task_timeout:type_name -> google.protobuf.Duration + 67, // 135: temporal.api.history.v1.WorkflowPropertiesModifiedExternallyEventAttributes.new_workflow_run_timeout:type_name -> google.protobuf.Duration + 67, // 136: temporal.api.history.v1.WorkflowPropertiesModifiedExternallyEventAttributes.new_workflow_execution_timeout:type_name -> google.protobuf.Duration + 72, // 137: temporal.api.history.v1.WorkflowPropertiesModifiedExternallyEventAttributes.upserted_memo:type_name -> temporal.api.common.v1.Memo + 70, // 138: temporal.api.history.v1.ActivityPropertiesModifiedExternallyEventAttributes.new_retry_policy:type_name -> temporal.api.common.v1.RetryPolicy + 97, // 139: temporal.api.history.v1.WorkflowExecutionUpdateAcceptedEventAttributes.accepted_request:type_name -> temporal.api.update.v1.Request + 98, // 140: temporal.api.history.v1.WorkflowExecutionUpdateCompletedEventAttributes.meta:type_name -> temporal.api.update.v1.Meta + 99, // 141: temporal.api.history.v1.WorkflowExecutionUpdateCompletedEventAttributes.outcome:type_name -> temporal.api.update.v1.Outcome + 97, // 142: temporal.api.history.v1.WorkflowExecutionUpdateRejectedEventAttributes.rejected_request:type_name -> temporal.api.update.v1.Request + 69, // 143: temporal.api.history.v1.WorkflowExecutionUpdateRejectedEventAttributes.failure:type_name -> temporal.api.failure.v1.Failure + 97, // 144: temporal.api.history.v1.WorkflowExecutionUpdateAdmittedEventAttributes.request:type_name -> temporal.api.update.v1.Request + 100, // 145: temporal.api.history.v1.WorkflowExecutionUpdateAdmittedEventAttributes.origin:type_name -> temporal.api.enums.v1.UpdateAdmittedEventOrigin + 101, // 146: temporal.api.history.v1.NexusOperationScheduledEventAttributes.input:type_name -> temporal.api.common.v1.Payload + 67, // 147: temporal.api.history.v1.NexusOperationScheduledEventAttributes.schedule_to_close_timeout:type_name -> google.protobuf.Duration + 62, // 148: temporal.api.history.v1.NexusOperationScheduledEventAttributes.nexus_header:type_name -> temporal.api.history.v1.NexusOperationScheduledEventAttributes.NexusHeaderEntry + 67, // 149: temporal.api.history.v1.NexusOperationScheduledEventAttributes.schedule_to_start_timeout:type_name -> google.protobuf.Duration + 67, // 150: temporal.api.history.v1.NexusOperationScheduledEventAttributes.start_to_close_timeout:type_name -> google.protobuf.Duration + 101, // 151: temporal.api.history.v1.NexusOperationCompletedEventAttributes.result:type_name -> temporal.api.common.v1.Payload + 69, // 152: temporal.api.history.v1.NexusOperationFailedEventAttributes.failure:type_name -> temporal.api.failure.v1.Failure + 69, // 153: temporal.api.history.v1.NexusOperationTimedOutEventAttributes.failure:type_name -> temporal.api.failure.v1.Failure + 69, // 154: temporal.api.history.v1.NexusOperationCanceledEventAttributes.failure:type_name -> temporal.api.failure.v1.Failure + 69, // 155: temporal.api.history.v1.NexusOperationCancelRequestFailedEventAttributes.failure:type_name -> temporal.api.failure.v1.Failure + 71, // 156: temporal.api.history.v1.HistoryEvent.event_time:type_name -> google.protobuf.Timestamp + 102, // 157: temporal.api.history.v1.HistoryEvent.event_type:type_name -> temporal.api.enums.v1.EventType + 103, // 158: temporal.api.history.v1.HistoryEvent.user_metadata:type_name -> temporal.api.sdk.v1.UserMetadata + 104, // 159: temporal.api.history.v1.HistoryEvent.links:type_name -> temporal.api.common.v1.Link + 0, // 160: temporal.api.history.v1.HistoryEvent.workflow_execution_started_event_attributes:type_name -> temporal.api.history.v1.WorkflowExecutionStartedEventAttributes + 1, // 161: temporal.api.history.v1.HistoryEvent.workflow_execution_completed_event_attributes:type_name -> temporal.api.history.v1.WorkflowExecutionCompletedEventAttributes + 2, // 162: temporal.api.history.v1.HistoryEvent.workflow_execution_failed_event_attributes:type_name -> temporal.api.history.v1.WorkflowExecutionFailedEventAttributes + 3, // 163: temporal.api.history.v1.HistoryEvent.workflow_execution_timed_out_event_attributes:type_name -> temporal.api.history.v1.WorkflowExecutionTimedOutEventAttributes + 5, // 164: temporal.api.history.v1.HistoryEvent.workflow_task_scheduled_event_attributes:type_name -> temporal.api.history.v1.WorkflowTaskScheduledEventAttributes + 6, // 165: temporal.api.history.v1.HistoryEvent.workflow_task_started_event_attributes:type_name -> temporal.api.history.v1.WorkflowTaskStartedEventAttributes + 7, // 166: temporal.api.history.v1.HistoryEvent.workflow_task_completed_event_attributes:type_name -> temporal.api.history.v1.WorkflowTaskCompletedEventAttributes + 8, // 167: temporal.api.history.v1.HistoryEvent.workflow_task_timed_out_event_attributes:type_name -> temporal.api.history.v1.WorkflowTaskTimedOutEventAttributes + 9, // 168: temporal.api.history.v1.HistoryEvent.workflow_task_failed_event_attributes:type_name -> temporal.api.history.v1.WorkflowTaskFailedEventAttributes + 10, // 169: temporal.api.history.v1.HistoryEvent.activity_task_scheduled_event_attributes:type_name -> temporal.api.history.v1.ActivityTaskScheduledEventAttributes + 11, // 170: temporal.api.history.v1.HistoryEvent.activity_task_started_event_attributes:type_name -> temporal.api.history.v1.ActivityTaskStartedEventAttributes + 12, // 171: temporal.api.history.v1.HistoryEvent.activity_task_completed_event_attributes:type_name -> temporal.api.history.v1.ActivityTaskCompletedEventAttributes + 13, // 172: temporal.api.history.v1.HistoryEvent.activity_task_failed_event_attributes:type_name -> temporal.api.history.v1.ActivityTaskFailedEventAttributes + 14, // 173: temporal.api.history.v1.HistoryEvent.activity_task_timed_out_event_attributes:type_name -> temporal.api.history.v1.ActivityTaskTimedOutEventAttributes + 17, // 174: temporal.api.history.v1.HistoryEvent.timer_started_event_attributes:type_name -> temporal.api.history.v1.TimerStartedEventAttributes + 18, // 175: temporal.api.history.v1.HistoryEvent.timer_fired_event_attributes:type_name -> temporal.api.history.v1.TimerFiredEventAttributes + 15, // 176: temporal.api.history.v1.HistoryEvent.activity_task_cancel_requested_event_attributes:type_name -> temporal.api.history.v1.ActivityTaskCancelRequestedEventAttributes + 16, // 177: temporal.api.history.v1.HistoryEvent.activity_task_canceled_event_attributes:type_name -> temporal.api.history.v1.ActivityTaskCanceledEventAttributes + 19, // 178: temporal.api.history.v1.HistoryEvent.timer_canceled_event_attributes:type_name -> temporal.api.history.v1.TimerCanceledEventAttributes + 22, // 179: temporal.api.history.v1.HistoryEvent.marker_recorded_event_attributes:type_name -> temporal.api.history.v1.MarkerRecordedEventAttributes + 23, // 180: temporal.api.history.v1.HistoryEvent.workflow_execution_signaled_event_attributes:type_name -> temporal.api.history.v1.WorkflowExecutionSignaledEventAttributes + 24, // 181: temporal.api.history.v1.HistoryEvent.workflow_execution_terminated_event_attributes:type_name -> temporal.api.history.v1.WorkflowExecutionTerminatedEventAttributes + 20, // 182: temporal.api.history.v1.HistoryEvent.workflow_execution_cancel_requested_event_attributes:type_name -> temporal.api.history.v1.WorkflowExecutionCancelRequestedEventAttributes + 21, // 183: temporal.api.history.v1.HistoryEvent.workflow_execution_canceled_event_attributes:type_name -> temporal.api.history.v1.WorkflowExecutionCanceledEventAttributes + 25, // 184: temporal.api.history.v1.HistoryEvent.request_cancel_external_workflow_execution_initiated_event_attributes:type_name -> temporal.api.history.v1.RequestCancelExternalWorkflowExecutionInitiatedEventAttributes + 26, // 185: temporal.api.history.v1.HistoryEvent.request_cancel_external_workflow_execution_failed_event_attributes:type_name -> temporal.api.history.v1.RequestCancelExternalWorkflowExecutionFailedEventAttributes + 27, // 186: temporal.api.history.v1.HistoryEvent.external_workflow_execution_cancel_requested_event_attributes:type_name -> temporal.api.history.v1.ExternalWorkflowExecutionCancelRequestedEventAttributes + 4, // 187: temporal.api.history.v1.HistoryEvent.workflow_execution_continued_as_new_event_attributes:type_name -> temporal.api.history.v1.WorkflowExecutionContinuedAsNewEventAttributes + 33, // 188: temporal.api.history.v1.HistoryEvent.start_child_workflow_execution_initiated_event_attributes:type_name -> temporal.api.history.v1.StartChildWorkflowExecutionInitiatedEventAttributes + 34, // 189: temporal.api.history.v1.HistoryEvent.start_child_workflow_execution_failed_event_attributes:type_name -> temporal.api.history.v1.StartChildWorkflowExecutionFailedEventAttributes + 35, // 190: temporal.api.history.v1.HistoryEvent.child_workflow_execution_started_event_attributes:type_name -> temporal.api.history.v1.ChildWorkflowExecutionStartedEventAttributes + 36, // 191: temporal.api.history.v1.HistoryEvent.child_workflow_execution_completed_event_attributes:type_name -> temporal.api.history.v1.ChildWorkflowExecutionCompletedEventAttributes + 37, // 192: temporal.api.history.v1.HistoryEvent.child_workflow_execution_failed_event_attributes:type_name -> temporal.api.history.v1.ChildWorkflowExecutionFailedEventAttributes + 38, // 193: temporal.api.history.v1.HistoryEvent.child_workflow_execution_canceled_event_attributes:type_name -> temporal.api.history.v1.ChildWorkflowExecutionCanceledEventAttributes + 39, // 194: temporal.api.history.v1.HistoryEvent.child_workflow_execution_timed_out_event_attributes:type_name -> temporal.api.history.v1.ChildWorkflowExecutionTimedOutEventAttributes + 40, // 195: temporal.api.history.v1.HistoryEvent.child_workflow_execution_terminated_event_attributes:type_name -> temporal.api.history.v1.ChildWorkflowExecutionTerminatedEventAttributes + 28, // 196: temporal.api.history.v1.HistoryEvent.signal_external_workflow_execution_initiated_event_attributes:type_name -> temporal.api.history.v1.SignalExternalWorkflowExecutionInitiatedEventAttributes + 29, // 197: temporal.api.history.v1.HistoryEvent.signal_external_workflow_execution_failed_event_attributes:type_name -> temporal.api.history.v1.SignalExternalWorkflowExecutionFailedEventAttributes + 30, // 198: temporal.api.history.v1.HistoryEvent.external_workflow_execution_signaled_event_attributes:type_name -> temporal.api.history.v1.ExternalWorkflowExecutionSignaledEventAttributes + 31, // 199: temporal.api.history.v1.HistoryEvent.upsert_workflow_search_attributes_event_attributes:type_name -> temporal.api.history.v1.UpsertWorkflowSearchAttributesEventAttributes + 44, // 200: temporal.api.history.v1.HistoryEvent.workflow_execution_update_accepted_event_attributes:type_name -> temporal.api.history.v1.WorkflowExecutionUpdateAcceptedEventAttributes + 46, // 201: temporal.api.history.v1.HistoryEvent.workflow_execution_update_rejected_event_attributes:type_name -> temporal.api.history.v1.WorkflowExecutionUpdateRejectedEventAttributes + 45, // 202: temporal.api.history.v1.HistoryEvent.workflow_execution_update_completed_event_attributes:type_name -> temporal.api.history.v1.WorkflowExecutionUpdateCompletedEventAttributes + 42, // 203: temporal.api.history.v1.HistoryEvent.workflow_properties_modified_externally_event_attributes:type_name -> temporal.api.history.v1.WorkflowPropertiesModifiedExternallyEventAttributes + 43, // 204: temporal.api.history.v1.HistoryEvent.activity_properties_modified_externally_event_attributes:type_name -> temporal.api.history.v1.ActivityPropertiesModifiedExternallyEventAttributes + 32, // 205: temporal.api.history.v1.HistoryEvent.workflow_properties_modified_event_attributes:type_name -> temporal.api.history.v1.WorkflowPropertiesModifiedEventAttributes + 47, // 206: temporal.api.history.v1.HistoryEvent.workflow_execution_update_admitted_event_attributes:type_name -> temporal.api.history.v1.WorkflowExecutionUpdateAdmittedEventAttributes + 50, // 207: temporal.api.history.v1.HistoryEvent.nexus_operation_scheduled_event_attributes:type_name -> temporal.api.history.v1.NexusOperationScheduledEventAttributes + 51, // 208: temporal.api.history.v1.HistoryEvent.nexus_operation_started_event_attributes:type_name -> temporal.api.history.v1.NexusOperationStartedEventAttributes + 52, // 209: temporal.api.history.v1.HistoryEvent.nexus_operation_completed_event_attributes:type_name -> temporal.api.history.v1.NexusOperationCompletedEventAttributes + 53, // 210: temporal.api.history.v1.HistoryEvent.nexus_operation_failed_event_attributes:type_name -> temporal.api.history.v1.NexusOperationFailedEventAttributes + 55, // 211: temporal.api.history.v1.HistoryEvent.nexus_operation_canceled_event_attributes:type_name -> temporal.api.history.v1.NexusOperationCanceledEventAttributes + 54, // 212: temporal.api.history.v1.HistoryEvent.nexus_operation_timed_out_event_attributes:type_name -> temporal.api.history.v1.NexusOperationTimedOutEventAttributes + 56, // 213: temporal.api.history.v1.HistoryEvent.nexus_operation_cancel_requested_event_attributes:type_name -> temporal.api.history.v1.NexusOperationCancelRequestedEventAttributes + 41, // 214: temporal.api.history.v1.HistoryEvent.workflow_execution_options_updated_event_attributes:type_name -> temporal.api.history.v1.WorkflowExecutionOptionsUpdatedEventAttributes + 57, // 215: temporal.api.history.v1.HistoryEvent.nexus_operation_cancel_request_completed_event_attributes:type_name -> temporal.api.history.v1.NexusOperationCancelRequestCompletedEventAttributes + 58, // 216: temporal.api.history.v1.HistoryEvent.nexus_operation_cancel_request_failed_event_attributes:type_name -> temporal.api.history.v1.NexusOperationCancelRequestFailedEventAttributes + 48, // 217: temporal.api.history.v1.HistoryEvent.workflow_execution_paused_event_attributes:type_name -> temporal.api.history.v1.WorkflowExecutionPausedEventAttributes + 49, // 218: temporal.api.history.v1.HistoryEvent.workflow_execution_unpaused_event_attributes:type_name -> temporal.api.history.v1.WorkflowExecutionUnpausedEventAttributes + 59, // 219: temporal.api.history.v1.History.events:type_name -> temporal.api.history.v1.HistoryEvent + 66, // 220: temporal.api.history.v1.MarkerRecordedEventAttributes.DetailsEntry.value:type_name -> temporal.api.common.v1.Payloads + 221, // [221:221] is the sub-list for method output_type + 221, // [221:221] is the sub-list for method input_type + 221, // [221:221] is the sub-list for extension type_name + 221, // [221:221] is the sub-list for extension extendee + 0, // [0:221] is the sub-list for field type_name +} + +func init() { file_temporal_api_history_v1_message_proto_init() } +func file_temporal_api_history_v1_message_proto_init() { + if File_temporal_api_history_v1_message_proto != nil { + return + } + file_temporal_api_history_v1_message_proto_msgTypes[59].OneofWrappers = []any{ + (*historyEvent_WorkflowExecutionStartedEventAttributes)(nil), + (*historyEvent_WorkflowExecutionCompletedEventAttributes)(nil), + (*historyEvent_WorkflowExecutionFailedEventAttributes)(nil), + (*historyEvent_WorkflowExecutionTimedOutEventAttributes)(nil), + (*historyEvent_WorkflowTaskScheduledEventAttributes)(nil), + (*historyEvent_WorkflowTaskStartedEventAttributes)(nil), + (*historyEvent_WorkflowTaskCompletedEventAttributes)(nil), + (*historyEvent_WorkflowTaskTimedOutEventAttributes)(nil), + (*historyEvent_WorkflowTaskFailedEventAttributes)(nil), + (*historyEvent_ActivityTaskScheduledEventAttributes)(nil), + (*historyEvent_ActivityTaskStartedEventAttributes)(nil), + (*historyEvent_ActivityTaskCompletedEventAttributes)(nil), + (*historyEvent_ActivityTaskFailedEventAttributes)(nil), + (*historyEvent_ActivityTaskTimedOutEventAttributes)(nil), + (*historyEvent_TimerStartedEventAttributes)(nil), + (*historyEvent_TimerFiredEventAttributes)(nil), + (*historyEvent_ActivityTaskCancelRequestedEventAttributes)(nil), + (*historyEvent_ActivityTaskCanceledEventAttributes)(nil), + (*historyEvent_TimerCanceledEventAttributes)(nil), + (*historyEvent_MarkerRecordedEventAttributes)(nil), + (*historyEvent_WorkflowExecutionSignaledEventAttributes)(nil), + (*historyEvent_WorkflowExecutionTerminatedEventAttributes)(nil), + (*historyEvent_WorkflowExecutionCancelRequestedEventAttributes)(nil), + (*historyEvent_WorkflowExecutionCanceledEventAttributes)(nil), + (*historyEvent_RequestCancelExternalWorkflowExecutionInitiatedEventAttributes)(nil), + (*historyEvent_RequestCancelExternalWorkflowExecutionFailedEventAttributes)(nil), + (*historyEvent_ExternalWorkflowExecutionCancelRequestedEventAttributes)(nil), + (*historyEvent_WorkflowExecutionContinuedAsNewEventAttributes)(nil), + (*historyEvent_StartChildWorkflowExecutionInitiatedEventAttributes)(nil), + (*historyEvent_StartChildWorkflowExecutionFailedEventAttributes)(nil), + (*historyEvent_ChildWorkflowExecutionStartedEventAttributes)(nil), + (*historyEvent_ChildWorkflowExecutionCompletedEventAttributes)(nil), + (*historyEvent_ChildWorkflowExecutionFailedEventAttributes)(nil), + (*historyEvent_ChildWorkflowExecutionCanceledEventAttributes)(nil), + (*historyEvent_ChildWorkflowExecutionTimedOutEventAttributes)(nil), + (*historyEvent_ChildWorkflowExecutionTerminatedEventAttributes)(nil), + (*historyEvent_SignalExternalWorkflowExecutionInitiatedEventAttributes)(nil), + (*historyEvent_SignalExternalWorkflowExecutionFailedEventAttributes)(nil), + (*historyEvent_ExternalWorkflowExecutionSignaledEventAttributes)(nil), + (*historyEvent_UpsertWorkflowSearchAttributesEventAttributes)(nil), + (*historyEvent_WorkflowExecutionUpdateAcceptedEventAttributes)(nil), + (*historyEvent_WorkflowExecutionUpdateRejectedEventAttributes)(nil), + (*historyEvent_WorkflowExecutionUpdateCompletedEventAttributes)(nil), + (*historyEvent_WorkflowPropertiesModifiedExternallyEventAttributes)(nil), + (*historyEvent_ActivityPropertiesModifiedExternallyEventAttributes)(nil), + (*historyEvent_WorkflowPropertiesModifiedEventAttributes)(nil), + (*historyEvent_WorkflowExecutionUpdateAdmittedEventAttributes)(nil), + (*historyEvent_NexusOperationScheduledEventAttributes)(nil), + (*historyEvent_NexusOperationStartedEventAttributes)(nil), + (*historyEvent_NexusOperationCompletedEventAttributes)(nil), + (*historyEvent_NexusOperationFailedEventAttributes)(nil), + (*historyEvent_NexusOperationCanceledEventAttributes)(nil), + (*historyEvent_NexusOperationTimedOutEventAttributes)(nil), + (*historyEvent_NexusOperationCancelRequestedEventAttributes)(nil), + (*historyEvent_WorkflowExecutionOptionsUpdatedEventAttributes)(nil), + (*historyEvent_NexusOperationCancelRequestCompletedEventAttributes)(nil), + (*historyEvent_NexusOperationCancelRequestFailedEventAttributes)(nil), + (*historyEvent_WorkflowExecutionPausedEventAttributes)(nil), + (*historyEvent_WorkflowExecutionUnpausedEventAttributes)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_api_history_v1_message_proto_rawDesc), len(file_temporal_api_history_v1_message_proto_rawDesc)), + NumEnums: 0, + NumMessages: 63, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_temporal_api_history_v1_message_proto_goTypes, + DependencyIndexes: file_temporal_api_history_v1_message_proto_depIdxs, + MessageInfos: file_temporal_api_history_v1_message_proto_msgTypes, + }.Build() + File_temporal_api_history_v1_message_proto = out.File + file_temporal_api_history_v1_message_proto_goTypes = nil + file_temporal_api_history_v1_message_proto_depIdxs = nil +} diff --git a/namespace/v1/message.pb.go b/namespace/v1/message.pb.go index 3b4e2485..10670b37 100644 --- a/namespace/v1/message.pb.go +++ b/namespace/v1/message.pb.go @@ -4,11 +4,12 @@ // protoc // source: temporal/api/namespace/v1/message.proto +//go:build !protoopaque + package namespace import ( reflect "reflect" - sync "sync" unsafe "unsafe" v1 "go.temporal.io/api/enums/v1" @@ -26,7 +27,7 @@ const ( ) type NamespaceInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` State v1.NamespaceState `protobuf:"varint,2,opt,name=state,proto3,enum=temporal.api.enums.v1.NamespaceState" json:"state,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` @@ -70,11 +71,6 @@ func (x *NamespaceInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use NamespaceInfo.ProtoReflect.Descriptor instead. -func (*NamespaceInfo) Descriptor() ([]byte, []int) { - return file_temporal_api_namespace_v1_message_proto_rawDescGZIP(), []int{0} -} - func (x *NamespaceInfo) GetName() string { if x != nil { return x.Name @@ -138,8 +134,101 @@ func (x *NamespaceInfo) GetSupportsSchedules() bool { return false } +func (x *NamespaceInfo) SetName(v string) { + x.Name = v +} + +func (x *NamespaceInfo) SetState(v v1.NamespaceState) { + x.State = v +} + +func (x *NamespaceInfo) SetDescription(v string) { + x.Description = v +} + +func (x *NamespaceInfo) SetOwnerEmail(v string) { + x.OwnerEmail = v +} + +func (x *NamespaceInfo) SetData(v map[string]string) { + x.Data = v +} + +func (x *NamespaceInfo) SetId(v string) { + x.Id = v +} + +func (x *NamespaceInfo) SetCapabilities(v *NamespaceInfo_Capabilities) { + x.Capabilities = v +} + +func (x *NamespaceInfo) SetLimits(v *NamespaceInfo_Limits) { + x.Limits = v +} + +func (x *NamespaceInfo) SetSupportsSchedules(v bool) { + x.SupportsSchedules = v +} + +func (x *NamespaceInfo) HasCapabilities() bool { + if x == nil { + return false + } + return x.Capabilities != nil +} + +func (x *NamespaceInfo) HasLimits() bool { + if x == nil { + return false + } + return x.Limits != nil +} + +func (x *NamespaceInfo) ClearCapabilities() { + x.Capabilities = nil +} + +func (x *NamespaceInfo) ClearLimits() { + x.Limits = nil +} + +type NamespaceInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string + State v1.NamespaceState + Description string + OwnerEmail string + // A key-value map for any customized purpose. + Data map[string]string + Id string + // All capabilities the namespace supports. + Capabilities *NamespaceInfo_Capabilities + // Namespace configured limits + Limits *NamespaceInfo_Limits + // Whether scheduled workflows are supported on this namespace. This is only needed + // temporarily while the feature is experimental, so we can give it a high tag. + SupportsSchedules bool +} + +func (b0 NamespaceInfo_builder) Build() *NamespaceInfo { + m0 := &NamespaceInfo{} + b, x := &b0, m0 + _, _ = b, x + x.Name = b.Name + x.State = b.State + x.Description = b.Description + x.OwnerEmail = b.OwnerEmail + x.Data = b.Data + x.Id = b.Id + x.Capabilities = b.Capabilities + x.Limits = b.Limits + x.SupportsSchedules = b.SupportsSchedules + return m0 +} + type NamespaceConfig struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` WorkflowExecutionRetentionTtl *durationpb.Duration `protobuf:"bytes,1,opt,name=workflow_execution_retention_ttl,json=workflowExecutionRetentionTtl,proto3" json:"workflow_execution_retention_ttl,omitempty"` BadBinaries *BadBinaries `protobuf:"bytes,2,opt,name=bad_binaries,json=badBinaries,proto3" json:"bad_binaries,omitempty"` // If unspecified (ARCHIVAL_STATE_UNSPECIFIED) then default server configuration is used. @@ -179,11 +268,6 @@ func (x *NamespaceConfig) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use NamespaceConfig.ProtoReflect.Descriptor instead. -func (*NamespaceConfig) Descriptor() ([]byte, []int) { - return file_temporal_api_namespace_v1_message_proto_rawDescGZIP(), []int{1} -} - func (x *NamespaceConfig) GetWorkflowExecutionRetentionTtl() *durationpb.Duration { if x != nil { return x.WorkflowExecutionRetentionTtl @@ -233,8 +317,87 @@ func (x *NamespaceConfig) GetCustomSearchAttributeAliases() map[string]string { return nil } +func (x *NamespaceConfig) SetWorkflowExecutionRetentionTtl(v *durationpb.Duration) { + x.WorkflowExecutionRetentionTtl = v +} + +func (x *NamespaceConfig) SetBadBinaries(v *BadBinaries) { + x.BadBinaries = v +} + +func (x *NamespaceConfig) SetHistoryArchivalState(v v1.ArchivalState) { + x.HistoryArchivalState = v +} + +func (x *NamespaceConfig) SetHistoryArchivalUri(v string) { + x.HistoryArchivalUri = v +} + +func (x *NamespaceConfig) SetVisibilityArchivalState(v v1.ArchivalState) { + x.VisibilityArchivalState = v +} + +func (x *NamespaceConfig) SetVisibilityArchivalUri(v string) { + x.VisibilityArchivalUri = v +} + +func (x *NamespaceConfig) SetCustomSearchAttributeAliases(v map[string]string) { + x.CustomSearchAttributeAliases = v +} + +func (x *NamespaceConfig) HasWorkflowExecutionRetentionTtl() bool { + if x == nil { + return false + } + return x.WorkflowExecutionRetentionTtl != nil +} + +func (x *NamespaceConfig) HasBadBinaries() bool { + if x == nil { + return false + } + return x.BadBinaries != nil +} + +func (x *NamespaceConfig) ClearWorkflowExecutionRetentionTtl() { + x.WorkflowExecutionRetentionTtl = nil +} + +func (x *NamespaceConfig) ClearBadBinaries() { + x.BadBinaries = nil +} + +type NamespaceConfig_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + WorkflowExecutionRetentionTtl *durationpb.Duration + BadBinaries *BadBinaries + // If unspecified (ARCHIVAL_STATE_UNSPECIFIED) then default server configuration is used. + HistoryArchivalState v1.ArchivalState + HistoryArchivalUri string + // If unspecified (ARCHIVAL_STATE_UNSPECIFIED) then default server configuration is used. + VisibilityArchivalState v1.ArchivalState + VisibilityArchivalUri string + // Map from field name to alias. + CustomSearchAttributeAliases map[string]string +} + +func (b0 NamespaceConfig_builder) Build() *NamespaceConfig { + m0 := &NamespaceConfig{} + b, x := &b0, m0 + _, _ = b, x + x.WorkflowExecutionRetentionTtl = b.WorkflowExecutionRetentionTtl + x.BadBinaries = b.BadBinaries + x.HistoryArchivalState = b.HistoryArchivalState + x.HistoryArchivalUri = b.HistoryArchivalUri + x.VisibilityArchivalState = b.VisibilityArchivalState + x.VisibilityArchivalUri = b.VisibilityArchivalUri + x.CustomSearchAttributeAliases = b.CustomSearchAttributeAliases + return m0 +} + type BadBinaries struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Binaries map[string]*BadBinaryInfo `protobuf:"bytes,1,rep,name=binaries,proto3" json:"binaries,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -265,11 +428,6 @@ func (x *BadBinaries) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use BadBinaries.ProtoReflect.Descriptor instead. -func (*BadBinaries) Descriptor() ([]byte, []int) { - return file_temporal_api_namespace_v1_message_proto_rawDescGZIP(), []int{2} -} - func (x *BadBinaries) GetBinaries() map[string]*BadBinaryInfo { if x != nil { return x.Binaries @@ -277,8 +435,26 @@ func (x *BadBinaries) GetBinaries() map[string]*BadBinaryInfo { return nil } +func (x *BadBinaries) SetBinaries(v map[string]*BadBinaryInfo) { + x.Binaries = v +} + +type BadBinaries_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Binaries map[string]*BadBinaryInfo +} + +func (b0 BadBinaries_builder) Build() *BadBinaries { + m0 := &BadBinaries{} + b, x := &b0, m0 + _, _ = b, x + x.Binaries = b.Binaries + return m0 +} + type BadBinaryInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Reason string `protobuf:"bytes,1,opt,name=reason,proto3" json:"reason,omitempty"` Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` @@ -311,11 +487,6 @@ func (x *BadBinaryInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use BadBinaryInfo.ProtoReflect.Descriptor instead. -func (*BadBinaryInfo) Descriptor() ([]byte, []int) { - return file_temporal_api_namespace_v1_message_proto_rawDescGZIP(), []int{3} -} - func (x *BadBinaryInfo) GetReason() string { if x != nil { return x.Reason @@ -337,8 +508,49 @@ func (x *BadBinaryInfo) GetCreateTime() *timestamppb.Timestamp { return nil } +func (x *BadBinaryInfo) SetReason(v string) { + x.Reason = v +} + +func (x *BadBinaryInfo) SetOperator(v string) { + x.Operator = v +} + +func (x *BadBinaryInfo) SetCreateTime(v *timestamppb.Timestamp) { + x.CreateTime = v +} + +func (x *BadBinaryInfo) HasCreateTime() bool { + if x == nil { + return false + } + return x.CreateTime != nil +} + +func (x *BadBinaryInfo) ClearCreateTime() { + x.CreateTime = nil +} + +type BadBinaryInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Reason string + Operator string + CreateTime *timestamppb.Timestamp +} + +func (b0 BadBinaryInfo_builder) Build() *BadBinaryInfo { + m0 := &BadBinaryInfo{} + b, x := &b0, m0 + _, _ = b, x + x.Reason = b.Reason + x.Operator = b.Operator + x.CreateTime = b.CreateTime + return m0 +} + type UpdateNamespaceInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"` OwnerEmail string `protobuf:"bytes,2,opt,name=owner_email,json=ownerEmail,proto3" json:"owner_email,omitempty"` // A key-value map for any customized purpose. @@ -382,11 +594,6 @@ func (x *UpdateNamespaceInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UpdateNamespaceInfo.ProtoReflect.Descriptor instead. -func (*UpdateNamespaceInfo) Descriptor() ([]byte, []int) { - return file_temporal_api_namespace_v1_message_proto_rawDescGZIP(), []int{4} -} - func (x *UpdateNamespaceInfo) GetDescription() string { if x != nil { return x.Description @@ -415,8 +622,54 @@ func (x *UpdateNamespaceInfo) GetState() v1.NamespaceState { return v1.NamespaceState(0) } +func (x *UpdateNamespaceInfo) SetDescription(v string) { + x.Description = v +} + +func (x *UpdateNamespaceInfo) SetOwnerEmail(v string) { + x.OwnerEmail = v +} + +func (x *UpdateNamespaceInfo) SetData(v map[string]string) { + x.Data = v +} + +func (x *UpdateNamespaceInfo) SetState(v v1.NamespaceState) { + x.State = v +} + +type UpdateNamespaceInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Description string + OwnerEmail string + // A key-value map for any customized purpose. + // If data already exists on the namespace, + // this will merge with the existing key values. + Data map[string]string + // New namespace state, server will reject if transition is not allowed. + // Allowed transitions are: + // + // Registered -> [ Deleted | Deprecated | Handover ] + // Handover -> [ Registered ] + // + // Default is NAMESPACE_STATE_UNSPECIFIED which is do not change state. + State v1.NamespaceState +} + +func (b0 UpdateNamespaceInfo_builder) Build() *UpdateNamespaceInfo { + m0 := &UpdateNamespaceInfo{} + b, x := &b0, m0 + _, _ = b, x + x.Description = b.Description + x.OwnerEmail = b.OwnerEmail + x.Data = b.Data + x.State = b.State + return m0 +} + type NamespaceFilter struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // By default namespaces in NAMESPACE_STATE_DELETED state are not included. // Setting include_deleted to true will include deleted namespaces. // Note: Namespace is in NAMESPACE_STATE_DELETED state when it was deleted from the system but associated data is not deleted yet. @@ -450,11 +703,6 @@ func (x *NamespaceFilter) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use NamespaceFilter.ProtoReflect.Descriptor instead. -func (*NamespaceFilter) Descriptor() ([]byte, []int) { - return file_temporal_api_namespace_v1_message_proto_rawDescGZIP(), []int{5} -} - func (x *NamespaceFilter) GetIncludeDeleted() bool { if x != nil { return x.IncludeDeleted @@ -462,9 +710,30 @@ func (x *NamespaceFilter) GetIncludeDeleted() bool { return false } +func (x *NamespaceFilter) SetIncludeDeleted(v bool) { + x.IncludeDeleted = v +} + +type NamespaceFilter_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // By default namespaces in NAMESPACE_STATE_DELETED state are not included. + // Setting include_deleted to true will include deleted namespaces. + // Note: Namespace is in NAMESPACE_STATE_DELETED state when it was deleted from the system but associated data is not deleted yet. + IncludeDeleted bool +} + +func (b0 NamespaceFilter_builder) Build() *NamespaceFilter { + m0 := &NamespaceFilter{} + b, x := &b0, m0 + _, _ = b, x + x.IncludeDeleted = b.IncludeDeleted + return m0 +} + // Namespace capability details. Should contain what features are enabled in a namespace. type NamespaceInfo_Capabilities struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // True if the namespace supports eager workflow start. EagerWorkflowStart bool `protobuf:"varint,1,opt,name=eager_workflow_start,json=eagerWorkflowStart,proto3" json:"eager_workflow_start,omitempty"` // True if the namespace supports sync update @@ -508,11 +777,6 @@ func (x *NamespaceInfo_Capabilities) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use NamespaceInfo_Capabilities.ProtoReflect.Descriptor instead. -func (*NamespaceInfo_Capabilities) Descriptor() ([]byte, []int) { - return file_temporal_api_namespace_v1_message_proto_rawDescGZIP(), []int{0, 1} -} - func (x *NamespaceInfo_Capabilities) GetEagerWorkflowStart() bool { if x != nil { return x.EagerWorkflowStart @@ -562,8 +826,69 @@ func (x *NamespaceInfo_Capabilities) GetStandaloneActivities() bool { return false } +func (x *NamespaceInfo_Capabilities) SetEagerWorkflowStart(v bool) { + x.EagerWorkflowStart = v +} + +func (x *NamespaceInfo_Capabilities) SetSyncUpdate(v bool) { + x.SyncUpdate = v +} + +func (x *NamespaceInfo_Capabilities) SetAsyncUpdate(v bool) { + x.AsyncUpdate = v +} + +func (x *NamespaceInfo_Capabilities) SetWorkerHeartbeats(v bool) { + x.WorkerHeartbeats = v +} + +func (x *NamespaceInfo_Capabilities) SetReportedProblemsSearchAttribute(v bool) { + x.ReportedProblemsSearchAttribute = v +} + +func (x *NamespaceInfo_Capabilities) SetWorkflowPause(v bool) { + x.WorkflowPause = v +} + +func (x *NamespaceInfo_Capabilities) SetStandaloneActivities(v bool) { + x.StandaloneActivities = v +} + +type NamespaceInfo_Capabilities_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // True if the namespace supports eager workflow start. + EagerWorkflowStart bool + // True if the namespace supports sync update + SyncUpdate bool + // True if the namespace supports async update + AsyncUpdate bool + // True if the namespace supports worker heartbeats + WorkerHeartbeats bool + // True if the namespace supports reported problems search attribute + ReportedProblemsSearchAttribute bool + // True if the namespace supports pausing workflows + WorkflowPause bool + // True if the namespace supports standalone activities + StandaloneActivities bool +} + +func (b0 NamespaceInfo_Capabilities_builder) Build() *NamespaceInfo_Capabilities { + m0 := &NamespaceInfo_Capabilities{} + b, x := &b0, m0 + _, _ = b, x + x.EagerWorkflowStart = b.EagerWorkflowStart + x.SyncUpdate = b.SyncUpdate + x.AsyncUpdate = b.AsyncUpdate + x.WorkerHeartbeats = b.WorkerHeartbeats + x.ReportedProblemsSearchAttribute = b.ReportedProblemsSearchAttribute + x.WorkflowPause = b.WorkflowPause + x.StandaloneActivities = b.StandaloneActivities + return m0 +} + type NamespaceInfo_Limits struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Maximum size in bytes for payload fields in workflow history events // (e.g., workflow/activity inputs and results, failure details, signal payloads). // When exceeded, the server will reject the operation with an error. @@ -599,11 +924,6 @@ func (x *NamespaceInfo_Limits) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use NamespaceInfo_Limits.ProtoReflect.Descriptor instead. -func (*NamespaceInfo_Limits) Descriptor() ([]byte, []int) { - return file_temporal_api_namespace_v1_message_proto_rawDescGZIP(), []int{0, 2} -} - func (x *NamespaceInfo_Limits) GetBlobSizeLimitError() int64 { if x != nil { return x.BlobSizeLimitError @@ -618,6 +938,34 @@ func (x *NamespaceInfo_Limits) GetMemoSizeLimitError() int64 { return 0 } +func (x *NamespaceInfo_Limits) SetBlobSizeLimitError(v int64) { + x.BlobSizeLimitError = v +} + +func (x *NamespaceInfo_Limits) SetMemoSizeLimitError(v int64) { + x.MemoSizeLimitError = v +} + +type NamespaceInfo_Limits_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Maximum size in bytes for payload fields in workflow history events + // (e.g., workflow/activity inputs and results, failure details, signal payloads). + // When exceeded, the server will reject the operation with an error. + BlobSizeLimitError int64 + // Maximum total memo size in bytes per workflow execution. + MemoSizeLimitError int64 +} + +func (b0 NamespaceInfo_Limits_builder) Build() *NamespaceInfo_Limits { + m0 := &NamespaceInfo_Limits{} + b, x := &b0, m0 + _, _ = b, x + x.BlobSizeLimitError = b.BlobSizeLimitError + x.MemoSizeLimitError = b.MemoSizeLimitError + return m0 +} + var File_temporal_api_namespace_v1_message_proto protoreflect.FileDescriptor const file_temporal_api_namespace_v1_message_proto_rawDesc = "" + @@ -683,18 +1031,6 @@ const file_temporal_api_namespace_v1_message_proto_rawDesc = "" + "\x0finclude_deleted\x18\x01 \x01(\bR\x0eincludeDeletedB\x98\x01\n" + "\x1cio.temporal.api.namespace.v1B\fMessageProtoP\x01Z)go.temporal.io/api/namespace/v1;namespace\xaa\x02\x1bTemporalio.Api.Namespace.V1\xea\x02\x1eTemporalio::Api::Namespace::V1b\x06proto3" -var ( - file_temporal_api_namespace_v1_message_proto_rawDescOnce sync.Once - file_temporal_api_namespace_v1_message_proto_rawDescData []byte -) - -func file_temporal_api_namespace_v1_message_proto_rawDescGZIP() []byte { - file_temporal_api_namespace_v1_message_proto_rawDescOnce.Do(func() { - file_temporal_api_namespace_v1_message_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_api_namespace_v1_message_proto_rawDesc), len(file_temporal_api_namespace_v1_message_proto_rawDesc))) - }) - return file_temporal_api_namespace_v1_message_proto_rawDescData -} - var file_temporal_api_namespace_v1_message_proto_msgTypes = make([]protoimpl.MessageInfo, 12) var file_temporal_api_namespace_v1_message_proto_goTypes = []any{ (*NamespaceInfo)(nil), // 0: temporal.api.namespace.v1.NamespaceInfo diff --git a/namespace/v1/message_protoopaque.pb.go b/namespace/v1/message_protoopaque.pb.go new file mode 100644 index 00000000..35e7d8f4 --- /dev/null +++ b/namespace/v1/message_protoopaque.pb.go @@ -0,0 +1,1065 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// plugins: +// protoc-gen-go +// protoc +// source: temporal/api/namespace/v1/message.proto + +//go:build protoopaque + +package namespace + +import ( + reflect "reflect" + unsafe "unsafe" + + v1 "go.temporal.io/api/enums/v1" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + durationpb "google.golang.org/protobuf/types/known/durationpb" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type NamespaceInfo struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Name string `protobuf:"bytes,1,opt,name=name,proto3"` + xxx_hidden_State v1.NamespaceState `protobuf:"varint,2,opt,name=state,proto3,enum=temporal.api.enums.v1.NamespaceState"` + xxx_hidden_Description string `protobuf:"bytes,3,opt,name=description,proto3"` + xxx_hidden_OwnerEmail string `protobuf:"bytes,4,opt,name=owner_email,json=ownerEmail,proto3"` + xxx_hidden_Data map[string]string `protobuf:"bytes,5,rep,name=data,proto3" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + xxx_hidden_Id string `protobuf:"bytes,6,opt,name=id,proto3"` + xxx_hidden_Capabilities *NamespaceInfo_Capabilities `protobuf:"bytes,7,opt,name=capabilities,proto3"` + xxx_hidden_Limits *NamespaceInfo_Limits `protobuf:"bytes,8,opt,name=limits,proto3"` + xxx_hidden_SupportsSchedules bool `protobuf:"varint,100,opt,name=supports_schedules,json=supportsSchedules,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *NamespaceInfo) Reset() { + *x = NamespaceInfo{} + mi := &file_temporal_api_namespace_v1_message_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *NamespaceInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NamespaceInfo) ProtoMessage() {} + +func (x *NamespaceInfo) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_namespace_v1_message_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *NamespaceInfo) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *NamespaceInfo) GetState() v1.NamespaceState { + if x != nil { + return x.xxx_hidden_State + } + return v1.NamespaceState(0) +} + +func (x *NamespaceInfo) GetDescription() string { + if x != nil { + return x.xxx_hidden_Description + } + return "" +} + +func (x *NamespaceInfo) GetOwnerEmail() string { + if x != nil { + return x.xxx_hidden_OwnerEmail + } + return "" +} + +func (x *NamespaceInfo) GetData() map[string]string { + if x != nil { + return x.xxx_hidden_Data + } + return nil +} + +func (x *NamespaceInfo) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *NamespaceInfo) GetCapabilities() *NamespaceInfo_Capabilities { + if x != nil { + return x.xxx_hidden_Capabilities + } + return nil +} + +func (x *NamespaceInfo) GetLimits() *NamespaceInfo_Limits { + if x != nil { + return x.xxx_hidden_Limits + } + return nil +} + +func (x *NamespaceInfo) GetSupportsSchedules() bool { + if x != nil { + return x.xxx_hidden_SupportsSchedules + } + return false +} + +func (x *NamespaceInfo) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *NamespaceInfo) SetState(v v1.NamespaceState) { + x.xxx_hidden_State = v +} + +func (x *NamespaceInfo) SetDescription(v string) { + x.xxx_hidden_Description = v +} + +func (x *NamespaceInfo) SetOwnerEmail(v string) { + x.xxx_hidden_OwnerEmail = v +} + +func (x *NamespaceInfo) SetData(v map[string]string) { + x.xxx_hidden_Data = v +} + +func (x *NamespaceInfo) SetId(v string) { + x.xxx_hidden_Id = v +} + +func (x *NamespaceInfo) SetCapabilities(v *NamespaceInfo_Capabilities) { + x.xxx_hidden_Capabilities = v +} + +func (x *NamespaceInfo) SetLimits(v *NamespaceInfo_Limits) { + x.xxx_hidden_Limits = v +} + +func (x *NamespaceInfo) SetSupportsSchedules(v bool) { + x.xxx_hidden_SupportsSchedules = v +} + +func (x *NamespaceInfo) HasCapabilities() bool { + if x == nil { + return false + } + return x.xxx_hidden_Capabilities != nil +} + +func (x *NamespaceInfo) HasLimits() bool { + if x == nil { + return false + } + return x.xxx_hidden_Limits != nil +} + +func (x *NamespaceInfo) ClearCapabilities() { + x.xxx_hidden_Capabilities = nil +} + +func (x *NamespaceInfo) ClearLimits() { + x.xxx_hidden_Limits = nil +} + +type NamespaceInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string + State v1.NamespaceState + Description string + OwnerEmail string + // A key-value map for any customized purpose. + Data map[string]string + Id string + // All capabilities the namespace supports. + Capabilities *NamespaceInfo_Capabilities + // Namespace configured limits + Limits *NamespaceInfo_Limits + // Whether scheduled workflows are supported on this namespace. This is only needed + // temporarily while the feature is experimental, so we can give it a high tag. + SupportsSchedules bool +} + +func (b0 NamespaceInfo_builder) Build() *NamespaceInfo { + m0 := &NamespaceInfo{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Name = b.Name + x.xxx_hidden_State = b.State + x.xxx_hidden_Description = b.Description + x.xxx_hidden_OwnerEmail = b.OwnerEmail + x.xxx_hidden_Data = b.Data + x.xxx_hidden_Id = b.Id + x.xxx_hidden_Capabilities = b.Capabilities + x.xxx_hidden_Limits = b.Limits + x.xxx_hidden_SupportsSchedules = b.SupportsSchedules + return m0 +} + +type NamespaceConfig struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_WorkflowExecutionRetentionTtl *durationpb.Duration `protobuf:"bytes,1,opt,name=workflow_execution_retention_ttl,json=workflowExecutionRetentionTtl,proto3"` + xxx_hidden_BadBinaries *BadBinaries `protobuf:"bytes,2,opt,name=bad_binaries,json=badBinaries,proto3"` + xxx_hidden_HistoryArchivalState v1.ArchivalState `protobuf:"varint,3,opt,name=history_archival_state,json=historyArchivalState,proto3,enum=temporal.api.enums.v1.ArchivalState"` + xxx_hidden_HistoryArchivalUri string `protobuf:"bytes,4,opt,name=history_archival_uri,json=historyArchivalUri,proto3"` + xxx_hidden_VisibilityArchivalState v1.ArchivalState `protobuf:"varint,5,opt,name=visibility_archival_state,json=visibilityArchivalState,proto3,enum=temporal.api.enums.v1.ArchivalState"` + xxx_hidden_VisibilityArchivalUri string `protobuf:"bytes,6,opt,name=visibility_archival_uri,json=visibilityArchivalUri,proto3"` + xxx_hidden_CustomSearchAttributeAliases map[string]string `protobuf:"bytes,7,rep,name=custom_search_attribute_aliases,json=customSearchAttributeAliases,proto3" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *NamespaceConfig) Reset() { + *x = NamespaceConfig{} + mi := &file_temporal_api_namespace_v1_message_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *NamespaceConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NamespaceConfig) ProtoMessage() {} + +func (x *NamespaceConfig) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_namespace_v1_message_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *NamespaceConfig) GetWorkflowExecutionRetentionTtl() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_WorkflowExecutionRetentionTtl + } + return nil +} + +func (x *NamespaceConfig) GetBadBinaries() *BadBinaries { + if x != nil { + return x.xxx_hidden_BadBinaries + } + return nil +} + +func (x *NamespaceConfig) GetHistoryArchivalState() v1.ArchivalState { + if x != nil { + return x.xxx_hidden_HistoryArchivalState + } + return v1.ArchivalState(0) +} + +func (x *NamespaceConfig) GetHistoryArchivalUri() string { + if x != nil { + return x.xxx_hidden_HistoryArchivalUri + } + return "" +} + +func (x *NamespaceConfig) GetVisibilityArchivalState() v1.ArchivalState { + if x != nil { + return x.xxx_hidden_VisibilityArchivalState + } + return v1.ArchivalState(0) +} + +func (x *NamespaceConfig) GetVisibilityArchivalUri() string { + if x != nil { + return x.xxx_hidden_VisibilityArchivalUri + } + return "" +} + +func (x *NamespaceConfig) GetCustomSearchAttributeAliases() map[string]string { + if x != nil { + return x.xxx_hidden_CustomSearchAttributeAliases + } + return nil +} + +func (x *NamespaceConfig) SetWorkflowExecutionRetentionTtl(v *durationpb.Duration) { + x.xxx_hidden_WorkflowExecutionRetentionTtl = v +} + +func (x *NamespaceConfig) SetBadBinaries(v *BadBinaries) { + x.xxx_hidden_BadBinaries = v +} + +func (x *NamespaceConfig) SetHistoryArchivalState(v v1.ArchivalState) { + x.xxx_hidden_HistoryArchivalState = v +} + +func (x *NamespaceConfig) SetHistoryArchivalUri(v string) { + x.xxx_hidden_HistoryArchivalUri = v +} + +func (x *NamespaceConfig) SetVisibilityArchivalState(v v1.ArchivalState) { + x.xxx_hidden_VisibilityArchivalState = v +} + +func (x *NamespaceConfig) SetVisibilityArchivalUri(v string) { + x.xxx_hidden_VisibilityArchivalUri = v +} + +func (x *NamespaceConfig) SetCustomSearchAttributeAliases(v map[string]string) { + x.xxx_hidden_CustomSearchAttributeAliases = v +} + +func (x *NamespaceConfig) HasWorkflowExecutionRetentionTtl() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowExecutionRetentionTtl != nil +} + +func (x *NamespaceConfig) HasBadBinaries() bool { + if x == nil { + return false + } + return x.xxx_hidden_BadBinaries != nil +} + +func (x *NamespaceConfig) ClearWorkflowExecutionRetentionTtl() { + x.xxx_hidden_WorkflowExecutionRetentionTtl = nil +} + +func (x *NamespaceConfig) ClearBadBinaries() { + x.xxx_hidden_BadBinaries = nil +} + +type NamespaceConfig_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + WorkflowExecutionRetentionTtl *durationpb.Duration + BadBinaries *BadBinaries + // If unspecified (ARCHIVAL_STATE_UNSPECIFIED) then default server configuration is used. + HistoryArchivalState v1.ArchivalState + HistoryArchivalUri string + // If unspecified (ARCHIVAL_STATE_UNSPECIFIED) then default server configuration is used. + VisibilityArchivalState v1.ArchivalState + VisibilityArchivalUri string + // Map from field name to alias. + CustomSearchAttributeAliases map[string]string +} + +func (b0 NamespaceConfig_builder) Build() *NamespaceConfig { + m0 := &NamespaceConfig{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_WorkflowExecutionRetentionTtl = b.WorkflowExecutionRetentionTtl + x.xxx_hidden_BadBinaries = b.BadBinaries + x.xxx_hidden_HistoryArchivalState = b.HistoryArchivalState + x.xxx_hidden_HistoryArchivalUri = b.HistoryArchivalUri + x.xxx_hidden_VisibilityArchivalState = b.VisibilityArchivalState + x.xxx_hidden_VisibilityArchivalUri = b.VisibilityArchivalUri + x.xxx_hidden_CustomSearchAttributeAliases = b.CustomSearchAttributeAliases + return m0 +} + +type BadBinaries struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Binaries map[string]*BadBinaryInfo `protobuf:"bytes,1,rep,name=binaries,proto3" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *BadBinaries) Reset() { + *x = BadBinaries{} + mi := &file_temporal_api_namespace_v1_message_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *BadBinaries) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BadBinaries) ProtoMessage() {} + +func (x *BadBinaries) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_namespace_v1_message_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *BadBinaries) GetBinaries() map[string]*BadBinaryInfo { + if x != nil { + return x.xxx_hidden_Binaries + } + return nil +} + +func (x *BadBinaries) SetBinaries(v map[string]*BadBinaryInfo) { + x.xxx_hidden_Binaries = v +} + +type BadBinaries_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Binaries map[string]*BadBinaryInfo +} + +func (b0 BadBinaries_builder) Build() *BadBinaries { + m0 := &BadBinaries{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Binaries = b.Binaries + return m0 +} + +type BadBinaryInfo struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Reason string `protobuf:"bytes,1,opt,name=reason,proto3"` + xxx_hidden_Operator string `protobuf:"bytes,2,opt,name=operator,proto3"` + xxx_hidden_CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *BadBinaryInfo) Reset() { + *x = BadBinaryInfo{} + mi := &file_temporal_api_namespace_v1_message_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *BadBinaryInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BadBinaryInfo) ProtoMessage() {} + +func (x *BadBinaryInfo) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_namespace_v1_message_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *BadBinaryInfo) GetReason() string { + if x != nil { + return x.xxx_hidden_Reason + } + return "" +} + +func (x *BadBinaryInfo) GetOperator() string { + if x != nil { + return x.xxx_hidden_Operator + } + return "" +} + +func (x *BadBinaryInfo) GetCreateTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_CreateTime + } + return nil +} + +func (x *BadBinaryInfo) SetReason(v string) { + x.xxx_hidden_Reason = v +} + +func (x *BadBinaryInfo) SetOperator(v string) { + x.xxx_hidden_Operator = v +} + +func (x *BadBinaryInfo) SetCreateTime(v *timestamppb.Timestamp) { + x.xxx_hidden_CreateTime = v +} + +func (x *BadBinaryInfo) HasCreateTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_CreateTime != nil +} + +func (x *BadBinaryInfo) ClearCreateTime() { + x.xxx_hidden_CreateTime = nil +} + +type BadBinaryInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Reason string + Operator string + CreateTime *timestamppb.Timestamp +} + +func (b0 BadBinaryInfo_builder) Build() *BadBinaryInfo { + m0 := &BadBinaryInfo{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Reason = b.Reason + x.xxx_hidden_Operator = b.Operator + x.xxx_hidden_CreateTime = b.CreateTime + return m0 +} + +type UpdateNamespaceInfo struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Description string `protobuf:"bytes,1,opt,name=description,proto3"` + xxx_hidden_OwnerEmail string `protobuf:"bytes,2,opt,name=owner_email,json=ownerEmail,proto3"` + xxx_hidden_Data map[string]string `protobuf:"bytes,3,rep,name=data,proto3" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + xxx_hidden_State v1.NamespaceState `protobuf:"varint,4,opt,name=state,proto3,enum=temporal.api.enums.v1.NamespaceState"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateNamespaceInfo) Reset() { + *x = UpdateNamespaceInfo{} + mi := &file_temporal_api_namespace_v1_message_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateNamespaceInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateNamespaceInfo) ProtoMessage() {} + +func (x *UpdateNamespaceInfo) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_namespace_v1_message_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UpdateNamespaceInfo) GetDescription() string { + if x != nil { + return x.xxx_hidden_Description + } + return "" +} + +func (x *UpdateNamespaceInfo) GetOwnerEmail() string { + if x != nil { + return x.xxx_hidden_OwnerEmail + } + return "" +} + +func (x *UpdateNamespaceInfo) GetData() map[string]string { + if x != nil { + return x.xxx_hidden_Data + } + return nil +} + +func (x *UpdateNamespaceInfo) GetState() v1.NamespaceState { + if x != nil { + return x.xxx_hidden_State + } + return v1.NamespaceState(0) +} + +func (x *UpdateNamespaceInfo) SetDescription(v string) { + x.xxx_hidden_Description = v +} + +func (x *UpdateNamespaceInfo) SetOwnerEmail(v string) { + x.xxx_hidden_OwnerEmail = v +} + +func (x *UpdateNamespaceInfo) SetData(v map[string]string) { + x.xxx_hidden_Data = v +} + +func (x *UpdateNamespaceInfo) SetState(v v1.NamespaceState) { + x.xxx_hidden_State = v +} + +type UpdateNamespaceInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Description string + OwnerEmail string + // A key-value map for any customized purpose. + // If data already exists on the namespace, + // this will merge with the existing key values. + Data map[string]string + // New namespace state, server will reject if transition is not allowed. + // Allowed transitions are: + // + // Registered -> [ Deleted | Deprecated | Handover ] + // Handover -> [ Registered ] + // + // Default is NAMESPACE_STATE_UNSPECIFIED which is do not change state. + State v1.NamespaceState +} + +func (b0 UpdateNamespaceInfo_builder) Build() *UpdateNamespaceInfo { + m0 := &UpdateNamespaceInfo{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Description = b.Description + x.xxx_hidden_OwnerEmail = b.OwnerEmail + x.xxx_hidden_Data = b.Data + x.xxx_hidden_State = b.State + return m0 +} + +type NamespaceFilter struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_IncludeDeleted bool `protobuf:"varint,1,opt,name=include_deleted,json=includeDeleted,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *NamespaceFilter) Reset() { + *x = NamespaceFilter{} + mi := &file_temporal_api_namespace_v1_message_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *NamespaceFilter) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NamespaceFilter) ProtoMessage() {} + +func (x *NamespaceFilter) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_namespace_v1_message_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *NamespaceFilter) GetIncludeDeleted() bool { + if x != nil { + return x.xxx_hidden_IncludeDeleted + } + return false +} + +func (x *NamespaceFilter) SetIncludeDeleted(v bool) { + x.xxx_hidden_IncludeDeleted = v +} + +type NamespaceFilter_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // By default namespaces in NAMESPACE_STATE_DELETED state are not included. + // Setting include_deleted to true will include deleted namespaces. + // Note: Namespace is in NAMESPACE_STATE_DELETED state when it was deleted from the system but associated data is not deleted yet. + IncludeDeleted bool +} + +func (b0 NamespaceFilter_builder) Build() *NamespaceFilter { + m0 := &NamespaceFilter{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_IncludeDeleted = b.IncludeDeleted + return m0 +} + +// Namespace capability details. Should contain what features are enabled in a namespace. +type NamespaceInfo_Capabilities struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_EagerWorkflowStart bool `protobuf:"varint,1,opt,name=eager_workflow_start,json=eagerWorkflowStart,proto3"` + xxx_hidden_SyncUpdate bool `protobuf:"varint,2,opt,name=sync_update,json=syncUpdate,proto3"` + xxx_hidden_AsyncUpdate bool `protobuf:"varint,3,opt,name=async_update,json=asyncUpdate,proto3"` + xxx_hidden_WorkerHeartbeats bool `protobuf:"varint,4,opt,name=worker_heartbeats,json=workerHeartbeats,proto3"` + xxx_hidden_ReportedProblemsSearchAttribute bool `protobuf:"varint,5,opt,name=reported_problems_search_attribute,json=reportedProblemsSearchAttribute,proto3"` + xxx_hidden_WorkflowPause bool `protobuf:"varint,6,opt,name=workflow_pause,json=workflowPause,proto3"` + xxx_hidden_StandaloneActivities bool `protobuf:"varint,7,opt,name=standalone_activities,json=standaloneActivities,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *NamespaceInfo_Capabilities) Reset() { + *x = NamespaceInfo_Capabilities{} + mi := &file_temporal_api_namespace_v1_message_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *NamespaceInfo_Capabilities) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NamespaceInfo_Capabilities) ProtoMessage() {} + +func (x *NamespaceInfo_Capabilities) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_namespace_v1_message_proto_msgTypes[7] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *NamespaceInfo_Capabilities) GetEagerWorkflowStart() bool { + if x != nil { + return x.xxx_hidden_EagerWorkflowStart + } + return false +} + +func (x *NamespaceInfo_Capabilities) GetSyncUpdate() bool { + if x != nil { + return x.xxx_hidden_SyncUpdate + } + return false +} + +func (x *NamespaceInfo_Capabilities) GetAsyncUpdate() bool { + if x != nil { + return x.xxx_hidden_AsyncUpdate + } + return false +} + +func (x *NamespaceInfo_Capabilities) GetWorkerHeartbeats() bool { + if x != nil { + return x.xxx_hidden_WorkerHeartbeats + } + return false +} + +func (x *NamespaceInfo_Capabilities) GetReportedProblemsSearchAttribute() bool { + if x != nil { + return x.xxx_hidden_ReportedProblemsSearchAttribute + } + return false +} + +func (x *NamespaceInfo_Capabilities) GetWorkflowPause() bool { + if x != nil { + return x.xxx_hidden_WorkflowPause + } + return false +} + +func (x *NamespaceInfo_Capabilities) GetStandaloneActivities() bool { + if x != nil { + return x.xxx_hidden_StandaloneActivities + } + return false +} + +func (x *NamespaceInfo_Capabilities) SetEagerWorkflowStart(v bool) { + x.xxx_hidden_EagerWorkflowStart = v +} + +func (x *NamespaceInfo_Capabilities) SetSyncUpdate(v bool) { + x.xxx_hidden_SyncUpdate = v +} + +func (x *NamespaceInfo_Capabilities) SetAsyncUpdate(v bool) { + x.xxx_hidden_AsyncUpdate = v +} + +func (x *NamespaceInfo_Capabilities) SetWorkerHeartbeats(v bool) { + x.xxx_hidden_WorkerHeartbeats = v +} + +func (x *NamespaceInfo_Capabilities) SetReportedProblemsSearchAttribute(v bool) { + x.xxx_hidden_ReportedProblemsSearchAttribute = v +} + +func (x *NamespaceInfo_Capabilities) SetWorkflowPause(v bool) { + x.xxx_hidden_WorkflowPause = v +} + +func (x *NamespaceInfo_Capabilities) SetStandaloneActivities(v bool) { + x.xxx_hidden_StandaloneActivities = v +} + +type NamespaceInfo_Capabilities_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // True if the namespace supports eager workflow start. + EagerWorkflowStart bool + // True if the namespace supports sync update + SyncUpdate bool + // True if the namespace supports async update + AsyncUpdate bool + // True if the namespace supports worker heartbeats + WorkerHeartbeats bool + // True if the namespace supports reported problems search attribute + ReportedProblemsSearchAttribute bool + // True if the namespace supports pausing workflows + WorkflowPause bool + // True if the namespace supports standalone activities + StandaloneActivities bool +} + +func (b0 NamespaceInfo_Capabilities_builder) Build() *NamespaceInfo_Capabilities { + m0 := &NamespaceInfo_Capabilities{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_EagerWorkflowStart = b.EagerWorkflowStart + x.xxx_hidden_SyncUpdate = b.SyncUpdate + x.xxx_hidden_AsyncUpdate = b.AsyncUpdate + x.xxx_hidden_WorkerHeartbeats = b.WorkerHeartbeats + x.xxx_hidden_ReportedProblemsSearchAttribute = b.ReportedProblemsSearchAttribute + x.xxx_hidden_WorkflowPause = b.WorkflowPause + x.xxx_hidden_StandaloneActivities = b.StandaloneActivities + return m0 +} + +type NamespaceInfo_Limits struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_BlobSizeLimitError int64 `protobuf:"varint,1,opt,name=blob_size_limit_error,json=blobSizeLimitError,proto3"` + xxx_hidden_MemoSizeLimitError int64 `protobuf:"varint,2,opt,name=memo_size_limit_error,json=memoSizeLimitError,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *NamespaceInfo_Limits) Reset() { + *x = NamespaceInfo_Limits{} + mi := &file_temporal_api_namespace_v1_message_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *NamespaceInfo_Limits) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NamespaceInfo_Limits) ProtoMessage() {} + +func (x *NamespaceInfo_Limits) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_namespace_v1_message_proto_msgTypes[8] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *NamespaceInfo_Limits) GetBlobSizeLimitError() int64 { + if x != nil { + return x.xxx_hidden_BlobSizeLimitError + } + return 0 +} + +func (x *NamespaceInfo_Limits) GetMemoSizeLimitError() int64 { + if x != nil { + return x.xxx_hidden_MemoSizeLimitError + } + return 0 +} + +func (x *NamespaceInfo_Limits) SetBlobSizeLimitError(v int64) { + x.xxx_hidden_BlobSizeLimitError = v +} + +func (x *NamespaceInfo_Limits) SetMemoSizeLimitError(v int64) { + x.xxx_hidden_MemoSizeLimitError = v +} + +type NamespaceInfo_Limits_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Maximum size in bytes for payload fields in workflow history events + // (e.g., workflow/activity inputs and results, failure details, signal payloads). + // When exceeded, the server will reject the operation with an error. + BlobSizeLimitError int64 + // Maximum total memo size in bytes per workflow execution. + MemoSizeLimitError int64 +} + +func (b0 NamespaceInfo_Limits_builder) Build() *NamespaceInfo_Limits { + m0 := &NamespaceInfo_Limits{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_BlobSizeLimitError = b.BlobSizeLimitError + x.xxx_hidden_MemoSizeLimitError = b.MemoSizeLimitError + return m0 +} + +var File_temporal_api_namespace_v1_message_proto protoreflect.FileDescriptor + +const file_temporal_api_namespace_v1_message_proto_rawDesc = "" + + "\n" + + "'temporal/api/namespace/v1/message.proto\x12\x19temporal.api.namespace.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a%temporal/api/enums/v1/namespace.proto\"\xd4\a\n" + + "\rNamespaceInfo\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12;\n" + + "\x05state\x18\x02 \x01(\x0e2%.temporal.api.enums.v1.NamespaceStateR\x05state\x12 \n" + + "\vdescription\x18\x03 \x01(\tR\vdescription\x12\x1f\n" + + "\vowner_email\x18\x04 \x01(\tR\n" + + "ownerEmail\x12F\n" + + "\x04data\x18\x05 \x03(\v22.temporal.api.namespace.v1.NamespaceInfo.DataEntryR\x04data\x12\x0e\n" + + "\x02id\x18\x06 \x01(\tR\x02id\x12Y\n" + + "\fcapabilities\x18\a \x01(\v25.temporal.api.namespace.v1.NamespaceInfo.CapabilitiesR\fcapabilities\x12G\n" + + "\x06limits\x18\b \x01(\v2/.temporal.api.namespace.v1.NamespaceInfo.LimitsR\x06limits\x12-\n" + + "\x12supports_schedules\x18d \x01(\bR\x11supportsSchedules\x1a7\n" + + "\tDataEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\x1a\xda\x02\n" + + "\fCapabilities\x120\n" + + "\x14eager_workflow_start\x18\x01 \x01(\bR\x12eagerWorkflowStart\x12\x1f\n" + + "\vsync_update\x18\x02 \x01(\bR\n" + + "syncUpdate\x12!\n" + + "\fasync_update\x18\x03 \x01(\bR\vasyncUpdate\x12+\n" + + "\x11worker_heartbeats\x18\x04 \x01(\bR\x10workerHeartbeats\x12K\n" + + "\"reported_problems_search_attribute\x18\x05 \x01(\bR\x1freportedProblemsSearchAttribute\x12%\n" + + "\x0eworkflow_pause\x18\x06 \x01(\bR\rworkflowPause\x123\n" + + "\x15standalone_activities\x18\a \x01(\bR\x14standaloneActivities\x1an\n" + + "\x06Limits\x121\n" + + "\x15blob_size_limit_error\x18\x01 \x01(\x03R\x12blobSizeLimitError\x121\n" + + "\x15memo_size_limit_error\x18\x02 \x01(\x03R\x12memoSizeLimitError\"\xcf\x05\n" + + "\x0fNamespaceConfig\x12b\n" + + " workflow_execution_retention_ttl\x18\x01 \x01(\v2\x19.google.protobuf.DurationR\x1dworkflowExecutionRetentionTtl\x12I\n" + + "\fbad_binaries\x18\x02 \x01(\v2&.temporal.api.namespace.v1.BadBinariesR\vbadBinaries\x12Z\n" + + "\x16history_archival_state\x18\x03 \x01(\x0e2$.temporal.api.enums.v1.ArchivalStateR\x14historyArchivalState\x120\n" + + "\x14history_archival_uri\x18\x04 \x01(\tR\x12historyArchivalUri\x12`\n" + + "\x19visibility_archival_state\x18\x05 \x01(\x0e2$.temporal.api.enums.v1.ArchivalStateR\x17visibilityArchivalState\x126\n" + + "\x17visibility_archival_uri\x18\x06 \x01(\tR\x15visibilityArchivalUri\x12\x93\x01\n" + + "\x1fcustom_search_attribute_aliases\x18\a \x03(\v2L.temporal.api.namespace.v1.NamespaceConfig.CustomSearchAttributeAliasesEntryR\x1ccustomSearchAttributeAliases\x1aO\n" + + "!CustomSearchAttributeAliasesEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xc6\x01\n" + + "\vBadBinaries\x12P\n" + + "\bbinaries\x18\x01 \x03(\v24.temporal.api.namespace.v1.BadBinaries.BinariesEntryR\bbinaries\x1ae\n" + + "\rBinariesEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12>\n" + + "\x05value\x18\x02 \x01(\v2(.temporal.api.namespace.v1.BadBinaryInfoR\x05value:\x028\x01\"\x80\x01\n" + + "\rBadBinaryInfo\x12\x16\n" + + "\x06reason\x18\x01 \x01(\tR\x06reason\x12\x1a\n" + + "\boperator\x18\x02 \x01(\tR\boperator\x12;\n" + + "\vcreate_time\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\n" + + "createTime\"\x9c\x02\n" + + "\x13UpdateNamespaceInfo\x12 \n" + + "\vdescription\x18\x01 \x01(\tR\vdescription\x12\x1f\n" + + "\vowner_email\x18\x02 \x01(\tR\n" + + "ownerEmail\x12L\n" + + "\x04data\x18\x03 \x03(\v28.temporal.api.namespace.v1.UpdateNamespaceInfo.DataEntryR\x04data\x12;\n" + + "\x05state\x18\x04 \x01(\x0e2%.temporal.api.enums.v1.NamespaceStateR\x05state\x1a7\n" + + "\tDataEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\":\n" + + "\x0fNamespaceFilter\x12'\n" + + "\x0finclude_deleted\x18\x01 \x01(\bR\x0eincludeDeletedB\x98\x01\n" + + "\x1cio.temporal.api.namespace.v1B\fMessageProtoP\x01Z)go.temporal.io/api/namespace/v1;namespace\xaa\x02\x1bTemporalio.Api.Namespace.V1\xea\x02\x1eTemporalio::Api::Namespace::V1b\x06proto3" + +var file_temporal_api_namespace_v1_message_proto_msgTypes = make([]protoimpl.MessageInfo, 12) +var file_temporal_api_namespace_v1_message_proto_goTypes = []any{ + (*NamespaceInfo)(nil), // 0: temporal.api.namespace.v1.NamespaceInfo + (*NamespaceConfig)(nil), // 1: temporal.api.namespace.v1.NamespaceConfig + (*BadBinaries)(nil), // 2: temporal.api.namespace.v1.BadBinaries + (*BadBinaryInfo)(nil), // 3: temporal.api.namespace.v1.BadBinaryInfo + (*UpdateNamespaceInfo)(nil), // 4: temporal.api.namespace.v1.UpdateNamespaceInfo + (*NamespaceFilter)(nil), // 5: temporal.api.namespace.v1.NamespaceFilter + nil, // 6: temporal.api.namespace.v1.NamespaceInfo.DataEntry + (*NamespaceInfo_Capabilities)(nil), // 7: temporal.api.namespace.v1.NamespaceInfo.Capabilities + (*NamespaceInfo_Limits)(nil), // 8: temporal.api.namespace.v1.NamespaceInfo.Limits + nil, // 9: temporal.api.namespace.v1.NamespaceConfig.CustomSearchAttributeAliasesEntry + nil, // 10: temporal.api.namespace.v1.BadBinaries.BinariesEntry + nil, // 11: temporal.api.namespace.v1.UpdateNamespaceInfo.DataEntry + (v1.NamespaceState)(0), // 12: temporal.api.enums.v1.NamespaceState + (*durationpb.Duration)(nil), // 13: google.protobuf.Duration + (v1.ArchivalState)(0), // 14: temporal.api.enums.v1.ArchivalState + (*timestamppb.Timestamp)(nil), // 15: google.protobuf.Timestamp +} +var file_temporal_api_namespace_v1_message_proto_depIdxs = []int32{ + 12, // 0: temporal.api.namespace.v1.NamespaceInfo.state:type_name -> temporal.api.enums.v1.NamespaceState + 6, // 1: temporal.api.namespace.v1.NamespaceInfo.data:type_name -> temporal.api.namespace.v1.NamespaceInfo.DataEntry + 7, // 2: temporal.api.namespace.v1.NamespaceInfo.capabilities:type_name -> temporal.api.namespace.v1.NamespaceInfo.Capabilities + 8, // 3: temporal.api.namespace.v1.NamespaceInfo.limits:type_name -> temporal.api.namespace.v1.NamespaceInfo.Limits + 13, // 4: temporal.api.namespace.v1.NamespaceConfig.workflow_execution_retention_ttl:type_name -> google.protobuf.Duration + 2, // 5: temporal.api.namespace.v1.NamespaceConfig.bad_binaries:type_name -> temporal.api.namespace.v1.BadBinaries + 14, // 6: temporal.api.namespace.v1.NamespaceConfig.history_archival_state:type_name -> temporal.api.enums.v1.ArchivalState + 14, // 7: temporal.api.namespace.v1.NamespaceConfig.visibility_archival_state:type_name -> temporal.api.enums.v1.ArchivalState + 9, // 8: temporal.api.namespace.v1.NamespaceConfig.custom_search_attribute_aliases:type_name -> temporal.api.namespace.v1.NamespaceConfig.CustomSearchAttributeAliasesEntry + 10, // 9: temporal.api.namespace.v1.BadBinaries.binaries:type_name -> temporal.api.namespace.v1.BadBinaries.BinariesEntry + 15, // 10: temporal.api.namespace.v1.BadBinaryInfo.create_time:type_name -> google.protobuf.Timestamp + 11, // 11: temporal.api.namespace.v1.UpdateNamespaceInfo.data:type_name -> temporal.api.namespace.v1.UpdateNamespaceInfo.DataEntry + 12, // 12: temporal.api.namespace.v1.UpdateNamespaceInfo.state:type_name -> temporal.api.enums.v1.NamespaceState + 3, // 13: temporal.api.namespace.v1.BadBinaries.BinariesEntry.value:type_name -> temporal.api.namespace.v1.BadBinaryInfo + 14, // [14:14] is the sub-list for method output_type + 14, // [14:14] is the sub-list for method input_type + 14, // [14:14] is the sub-list for extension type_name + 14, // [14:14] is the sub-list for extension extendee + 0, // [0:14] is the sub-list for field type_name +} + +func init() { file_temporal_api_namespace_v1_message_proto_init() } +func file_temporal_api_namespace_v1_message_proto_init() { + if File_temporal_api_namespace_v1_message_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_api_namespace_v1_message_proto_rawDesc), len(file_temporal_api_namespace_v1_message_proto_rawDesc)), + NumEnums: 0, + NumMessages: 12, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_temporal_api_namespace_v1_message_proto_goTypes, + DependencyIndexes: file_temporal_api_namespace_v1_message_proto_depIdxs, + MessageInfos: file_temporal_api_namespace_v1_message_proto_msgTypes, + }.Build() + File_temporal_api_namespace_v1_message_proto = out.File + file_temporal_api_namespace_v1_message_proto_goTypes = nil + file_temporal_api_namespace_v1_message_proto_depIdxs = nil +} diff --git a/nexus/v1/message.pb.go b/nexus/v1/message.pb.go index e66bf094..48e6204a 100644 --- a/nexus/v1/message.pb.go +++ b/nexus/v1/message.pb.go @@ -4,11 +4,13 @@ // protoc // source: temporal/api/nexus/v1/message.proto +//go:build !protoopaque + package nexus import ( reflect "reflect" - sync "sync" + "strconv" unsafe "unsafe" v11 "go.temporal.io/api/common/v1" @@ -28,7 +30,7 @@ const ( // A general purpose failure message. // See: https://github.com/nexus-rpc/api/blob/main/SPEC.md#failure type Failure struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Metadata map[string]string `protobuf:"bytes,2,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` // UTF-8 encoded JSON serializable details. @@ -62,11 +64,6 @@ func (x *Failure) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Failure.ProtoReflect.Descriptor instead. -func (*Failure) Descriptor() ([]byte, []int) { - return file_temporal_api_nexus_v1_message_proto_rawDescGZIP(), []int{0} -} - func (x *Failure) GetMessage() string { if x != nil { return x.Message @@ -88,8 +85,42 @@ func (x *Failure) GetDetails() []byte { return nil } +func (x *Failure) SetMessage(v string) { + x.Message = v +} + +func (x *Failure) SetMetadata(v map[string]string) { + x.Metadata = v +} + +func (x *Failure) SetDetails(v []byte) { + if v == nil { + v = []byte{} + } + x.Details = v +} + +type Failure_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Message string + Metadata map[string]string + // UTF-8 encoded JSON serializable details. + Details []byte +} + +func (b0 Failure_builder) Build() *Failure { + m0 := &Failure{} + b, x := &b0, m0 + _, _ = b, x + x.Message = b.Message + x.Metadata = b.Metadata + x.Details = b.Details + return m0 +} + type HandlerError struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // See https://github.com/nexus-rpc/api/blob/main/SPEC.md#predefined-handler-errors. ErrorType string `protobuf:"bytes,1,opt,name=error_type,json=errorType,proto3" json:"error_type,omitempty"` Failure *Failure `protobuf:"bytes,2,opt,name=failure,proto3" json:"failure,omitempty"` @@ -124,11 +155,6 @@ func (x *HandlerError) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use HandlerError.ProtoReflect.Descriptor instead. -func (*HandlerError) Descriptor() ([]byte, []int) { - return file_temporal_api_nexus_v1_message_proto_rawDescGZIP(), []int{1} -} - func (x *HandlerError) GetErrorType() string { if x != nil { return x.ErrorType @@ -150,8 +176,51 @@ func (x *HandlerError) GetRetryBehavior() v1.NexusHandlerErrorRetryBehavior { return v1.NexusHandlerErrorRetryBehavior(0) } +func (x *HandlerError) SetErrorType(v string) { + x.ErrorType = v +} + +func (x *HandlerError) SetFailure(v *Failure) { + x.Failure = v +} + +func (x *HandlerError) SetRetryBehavior(v v1.NexusHandlerErrorRetryBehavior) { + x.RetryBehavior = v +} + +func (x *HandlerError) HasFailure() bool { + if x == nil { + return false + } + return x.Failure != nil +} + +func (x *HandlerError) ClearFailure() { + x.Failure = nil +} + +type HandlerError_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // See https://github.com/nexus-rpc/api/blob/main/SPEC.md#predefined-handler-errors. + ErrorType string + Failure *Failure + // Retry behavior, defaults to the retry behavior of the error type as defined in the spec. + RetryBehavior v1.NexusHandlerErrorRetryBehavior +} + +func (b0 HandlerError_builder) Build() *HandlerError { + m0 := &HandlerError{} + b, x := &b0, m0 + _, _ = b, x + x.ErrorType = b.ErrorType + x.Failure = b.Failure + x.RetryBehavior = b.RetryBehavior + return m0 +} + type UnsuccessfulOperationError struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // See https://github.com/nexus-rpc/api/blob/main/SPEC.md#operationinfo. OperationState string `protobuf:"bytes,1,opt,name=operation_state,json=operationState,proto3" json:"operation_state,omitempty"` Failure *Failure `protobuf:"bytes,2,opt,name=failure,proto3" json:"failure,omitempty"` @@ -184,11 +253,6 @@ func (x *UnsuccessfulOperationError) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UnsuccessfulOperationError.ProtoReflect.Descriptor instead. -func (*UnsuccessfulOperationError) Descriptor() ([]byte, []int) { - return file_temporal_api_nexus_v1_message_proto_rawDescGZIP(), []int{2} -} - func (x *UnsuccessfulOperationError) GetOperationState() string { if x != nil { return x.OperationState @@ -203,8 +267,44 @@ func (x *UnsuccessfulOperationError) GetFailure() *Failure { return nil } +func (x *UnsuccessfulOperationError) SetOperationState(v string) { + x.OperationState = v +} + +func (x *UnsuccessfulOperationError) SetFailure(v *Failure) { + x.Failure = v +} + +func (x *UnsuccessfulOperationError) HasFailure() bool { + if x == nil { + return false + } + return x.Failure != nil +} + +func (x *UnsuccessfulOperationError) ClearFailure() { + x.Failure = nil +} + +type UnsuccessfulOperationError_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // See https://github.com/nexus-rpc/api/blob/main/SPEC.md#operationinfo. + OperationState string + Failure *Failure +} + +func (b0 UnsuccessfulOperationError_builder) Build() *UnsuccessfulOperationError { + m0 := &UnsuccessfulOperationError{} + b, x := &b0, m0 + _, _ = b, x + x.OperationState = b.OperationState + x.Failure = b.Failure + return m0 +} + type Link struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // See https://github.com/nexus-rpc/api/blob/main/SPEC.md#links. Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` @@ -237,11 +337,6 @@ func (x *Link) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Link.ProtoReflect.Descriptor instead. -func (*Link) Descriptor() ([]byte, []int) { - return file_temporal_api_nexus_v1_message_proto_rawDescGZIP(), []int{3} -} - func (x *Link) GetUrl() string { if x != nil { return x.Url @@ -256,9 +351,34 @@ func (x *Link) GetType() string { return "" } +func (x *Link) SetUrl(v string) { + x.Url = v +} + +func (x *Link) SetType(v string) { + x.Type = v +} + +type Link_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // See https://github.com/nexus-rpc/api/blob/main/SPEC.md#links. + Url string + Type string +} + +func (b0 Link_builder) Build() *Link { + m0 := &Link{} + b, x := &b0, m0 + _, _ = b, x + x.Url = b.Url + x.Type = b.Type + return m0 +} + // A request to start an operation. type StartOperationRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Name of service to start the operation in. Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` // Type of operation to start. @@ -302,11 +422,6 @@ func (x *StartOperationRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use StartOperationRequest.ProtoReflect.Descriptor instead. -func (*StartOperationRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_nexus_v1_message_proto_rawDescGZIP(), []int{4} -} - func (x *StartOperationRequest) GetService() string { if x != nil { return x.Service @@ -356,9 +471,81 @@ func (x *StartOperationRequest) GetLinks() []*Link { return nil } +func (x *StartOperationRequest) SetService(v string) { + x.Service = v +} + +func (x *StartOperationRequest) SetOperation(v string) { + x.Operation = v +} + +func (x *StartOperationRequest) SetRequestId(v string) { + x.RequestId = v +} + +func (x *StartOperationRequest) SetCallback(v string) { + x.Callback = v +} + +func (x *StartOperationRequest) SetPayload(v *v11.Payload) { + x.Payload = v +} + +func (x *StartOperationRequest) SetCallbackHeader(v map[string]string) { + x.CallbackHeader = v +} + +func (x *StartOperationRequest) SetLinks(v []*Link) { + x.Links = v +} + +func (x *StartOperationRequest) HasPayload() bool { + if x == nil { + return false + } + return x.Payload != nil +} + +func (x *StartOperationRequest) ClearPayload() { + x.Payload = nil +} + +type StartOperationRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Name of service to start the operation in. + Service string + // Type of operation to start. + Operation string + // A request ID that can be used as an idempotentency key. + RequestId string + // Callback URL to call upon completion if the started operation is async. + Callback string + // Full request body from the incoming HTTP request. + Payload *v11.Payload + // Header that is expected to be attached to the callback request when the operation completes. + CallbackHeader map[string]string + // Links contain caller information and can be attached to the operations started by the handler. + Links []*Link +} + +func (b0 StartOperationRequest_builder) Build() *StartOperationRequest { + m0 := &StartOperationRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Service = b.Service + x.Operation = b.Operation + x.RequestId = b.RequestId + x.Callback = b.Callback + x.Payload = b.Payload + x.CallbackHeader = b.CallbackHeader + x.Links = b.Links + return m0 +} + // A request to cancel an operation. type CancelOperationRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Service name. Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` // Type of operation to cancel. @@ -400,11 +587,6 @@ func (x *CancelOperationRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CancelOperationRequest.ProtoReflect.Descriptor instead. -func (*CancelOperationRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_nexus_v1_message_proto_rawDescGZIP(), []int{5} -} - func (x *CancelOperationRequest) GetService() string { if x != nil { return x.Service @@ -434,9 +616,54 @@ func (x *CancelOperationRequest) GetOperationToken() string { return "" } +func (x *CancelOperationRequest) SetService(v string) { + x.Service = v +} + +func (x *CancelOperationRequest) SetOperation(v string) { + x.Operation = v +} + +// Deprecated: Marked as deprecated in temporal/api/nexus/v1/message.proto. +func (x *CancelOperationRequest) SetOperationId(v string) { + x.OperationId = v +} + +func (x *CancelOperationRequest) SetOperationToken(v string) { + x.OperationToken = v +} + +type CancelOperationRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Service name. + Service string + // Type of operation to cancel. + Operation string + // Operation ID as originally generated by a Handler. + // + // Deprecated. Renamed to operation_token. + // + // Deprecated: Marked as deprecated in temporal/api/nexus/v1/message.proto. + OperationId string + // Operation token as originally generated by a Handler. + OperationToken string +} + +func (b0 CancelOperationRequest_builder) Build() *CancelOperationRequest { + m0 := &CancelOperationRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Service = b.Service + x.Operation = b.Operation + x.OperationId = b.OperationId + x.OperationToken = b.OperationToken + return m0 +} + // A Nexus request. type Request struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Headers extracted from the original request in the Temporal frontend. // When using Nexus over HTTP, this includes the request's HTTP headers ignoring multiple values. Header map[string]string `protobuf:"bytes,1,rep,name=header,proto3" json:"header,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` @@ -482,11 +709,6 @@ func (x *Request) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Request.ProtoReflect.Descriptor instead. -func (*Request) Descriptor() ([]byte, []int) { - return file_temporal_api_nexus_v1_message_proto_rawDescGZIP(), []int{6} -} - func (x *Request) GetHeader() map[string]string { if x != nil { return x.Header @@ -533,6 +755,154 @@ func (x *Request) GetEndpoint() string { return "" } +func (x *Request) SetHeader(v map[string]string) { + x.Header = v +} + +func (x *Request) SetScheduledTime(v *timestamppb.Timestamp) { + x.ScheduledTime = v +} + +func (x *Request) SetStartOperation(v *StartOperationRequest) { + if v == nil { + x.Variant = nil + return + } + x.Variant = &Request_StartOperation{v} +} + +func (x *Request) SetCancelOperation(v *CancelOperationRequest) { + if v == nil { + x.Variant = nil + return + } + x.Variant = &Request_CancelOperation{v} +} + +func (x *Request) SetEndpoint(v string) { + x.Endpoint = v +} + +func (x *Request) HasScheduledTime() bool { + if x == nil { + return false + } + return x.ScheduledTime != nil +} + +func (x *Request) HasVariant() bool { + if x == nil { + return false + } + return x.Variant != nil +} + +func (x *Request) HasStartOperation() bool { + if x == nil { + return false + } + _, ok := x.Variant.(*Request_StartOperation) + return ok +} + +func (x *Request) HasCancelOperation() bool { + if x == nil { + return false + } + _, ok := x.Variant.(*Request_CancelOperation) + return ok +} + +func (x *Request) ClearScheduledTime() { + x.ScheduledTime = nil +} + +func (x *Request) ClearVariant() { + x.Variant = nil +} + +func (x *Request) ClearStartOperation() { + if _, ok := x.Variant.(*Request_StartOperation); ok { + x.Variant = nil + } +} + +func (x *Request) ClearCancelOperation() { + if _, ok := x.Variant.(*Request_CancelOperation); ok { + x.Variant = nil + } +} + +const Request_Variant_not_set_case case_Request_Variant = 0 +const Request_StartOperation_case case_Request_Variant = 3 +const Request_CancelOperation_case case_Request_Variant = 4 + +func (x *Request) WhichVariant() case_Request_Variant { + if x == nil { + return Request_Variant_not_set_case + } + switch x.Variant.(type) { + case *Request_StartOperation: + return Request_StartOperation_case + case *Request_CancelOperation: + return Request_CancelOperation_case + default: + return Request_Variant_not_set_case + } +} + +type Request_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Headers extracted from the original request in the Temporal frontend. + // When using Nexus over HTTP, this includes the request's HTTP headers ignoring multiple values. + Header map[string]string + // The timestamp when the request was scheduled in the frontend. + // (-- api-linter: core::0142::time-field-names=disabled + // + // aip.dev/not-precedent: Not following linter rules. --) + ScheduledTime *timestamppb.Timestamp + // Fields of oneof Variant: + StartOperation *StartOperationRequest + CancelOperation *CancelOperationRequest + // -- end of Variant + // The endpoint this request was addressed to before forwarding to the worker. + // Supported from server version 1.30.0. + Endpoint string +} + +func (b0 Request_builder) Build() *Request { + m0 := &Request{} + b, x := &b0, m0 + _, _ = b, x + x.Header = b.Header + x.ScheduledTime = b.ScheduledTime + if b.StartOperation != nil { + x.Variant = &Request_StartOperation{b.StartOperation} + } + if b.CancelOperation != nil { + x.Variant = &Request_CancelOperation{b.CancelOperation} + } + x.Endpoint = b.Endpoint + return m0 +} + +type case_Request_Variant protoreflect.FieldNumber + +func (x case_Request_Variant) String() string { + switch x { + case Request_Variant_not_set_case: + return "RequestVariantNotSetCase" + case Request_StartOperation_case: + return "RequestStartOperationCase" + case Request_CancelOperation_case: + return "RequestCancelOperationCase" + default: + return strconv.Itoa(int(x)) + } + +} + type isRequest_Variant interface { isRequest_Variant() } @@ -551,7 +921,7 @@ func (*Request_CancelOperation) isRequest_Variant() {} // Response variant for StartOperationRequest. type StartOperationResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Types that are valid to be assigned to Variant: // // *StartOperationResponse_SyncSuccess @@ -587,11 +957,6 @@ func (x *StartOperationResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use StartOperationResponse.ProtoReflect.Descriptor instead. -func (*StartOperationResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_nexus_v1_message_proto_rawDescGZIP(), []int{7} -} - func (x *StartOperationResponse) GetVariant() isStartOperationResponse_Variant { if x != nil { return x.Variant @@ -626,6 +991,149 @@ func (x *StartOperationResponse) GetOperationError() *UnsuccessfulOperationError return nil } +func (x *StartOperationResponse) SetSyncSuccess(v *StartOperationResponse_Sync) { + if v == nil { + x.Variant = nil + return + } + x.Variant = &StartOperationResponse_SyncSuccess{v} +} + +func (x *StartOperationResponse) SetAsyncSuccess(v *StartOperationResponse_Async) { + if v == nil { + x.Variant = nil + return + } + x.Variant = &StartOperationResponse_AsyncSuccess{v} +} + +func (x *StartOperationResponse) SetOperationError(v *UnsuccessfulOperationError) { + if v == nil { + x.Variant = nil + return + } + x.Variant = &StartOperationResponse_OperationError{v} +} + +func (x *StartOperationResponse) HasVariant() bool { + if x == nil { + return false + } + return x.Variant != nil +} + +func (x *StartOperationResponse) HasSyncSuccess() bool { + if x == nil { + return false + } + _, ok := x.Variant.(*StartOperationResponse_SyncSuccess) + return ok +} + +func (x *StartOperationResponse) HasAsyncSuccess() bool { + if x == nil { + return false + } + _, ok := x.Variant.(*StartOperationResponse_AsyncSuccess) + return ok +} + +func (x *StartOperationResponse) HasOperationError() bool { + if x == nil { + return false + } + _, ok := x.Variant.(*StartOperationResponse_OperationError) + return ok +} + +func (x *StartOperationResponse) ClearVariant() { + x.Variant = nil +} + +func (x *StartOperationResponse) ClearSyncSuccess() { + if _, ok := x.Variant.(*StartOperationResponse_SyncSuccess); ok { + x.Variant = nil + } +} + +func (x *StartOperationResponse) ClearAsyncSuccess() { + if _, ok := x.Variant.(*StartOperationResponse_AsyncSuccess); ok { + x.Variant = nil + } +} + +func (x *StartOperationResponse) ClearOperationError() { + if _, ok := x.Variant.(*StartOperationResponse_OperationError); ok { + x.Variant = nil + } +} + +const StartOperationResponse_Variant_not_set_case case_StartOperationResponse_Variant = 0 +const StartOperationResponse_SyncSuccess_case case_StartOperationResponse_Variant = 1 +const StartOperationResponse_AsyncSuccess_case case_StartOperationResponse_Variant = 2 +const StartOperationResponse_OperationError_case case_StartOperationResponse_Variant = 3 + +func (x *StartOperationResponse) WhichVariant() case_StartOperationResponse_Variant { + if x == nil { + return StartOperationResponse_Variant_not_set_case + } + switch x.Variant.(type) { + case *StartOperationResponse_SyncSuccess: + return StartOperationResponse_SyncSuccess_case + case *StartOperationResponse_AsyncSuccess: + return StartOperationResponse_AsyncSuccess_case + case *StartOperationResponse_OperationError: + return StartOperationResponse_OperationError_case + default: + return StartOperationResponse_Variant_not_set_case + } +} + +type StartOperationResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Fields of oneof Variant: + SyncSuccess *StartOperationResponse_Sync + AsyncSuccess *StartOperationResponse_Async + // The operation completed unsuccessfully (failed or canceled). + OperationError *UnsuccessfulOperationError + // -- end of Variant +} + +func (b0 StartOperationResponse_builder) Build() *StartOperationResponse { + m0 := &StartOperationResponse{} + b, x := &b0, m0 + _, _ = b, x + if b.SyncSuccess != nil { + x.Variant = &StartOperationResponse_SyncSuccess{b.SyncSuccess} + } + if b.AsyncSuccess != nil { + x.Variant = &StartOperationResponse_AsyncSuccess{b.AsyncSuccess} + } + if b.OperationError != nil { + x.Variant = &StartOperationResponse_OperationError{b.OperationError} + } + return m0 +} + +type case_StartOperationResponse_Variant protoreflect.FieldNumber + +func (x case_StartOperationResponse_Variant) String() string { + switch x { + case StartOperationResponse_Variant_not_set_case: + return "StartOperationResponseVariantNotSetCase" + case StartOperationResponse_SyncSuccess_case: + return "StartOperationResponseSyncSuccessCase" + case StartOperationResponse_AsyncSuccess_case: + return "StartOperationResponseAsyncSuccessCase" + case StartOperationResponse_OperationError_case: + return "StartOperationResponseOperationErrorCase" + default: + return strconv.Itoa(int(x)) + } + +} + type isStartOperationResponse_Variant interface { isStartOperationResponse_Variant() } @@ -651,7 +1159,7 @@ func (*StartOperationResponse_OperationError) isStartOperationResponse_Variant() // Response variant for CancelOperationRequest. type CancelOperationResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -681,14 +1189,21 @@ func (x *CancelOperationResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CancelOperationResponse.ProtoReflect.Descriptor instead. -func (*CancelOperationResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_nexus_v1_message_proto_rawDescGZIP(), []int{8} +type CancelOperationResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 CancelOperationResponse_builder) Build() *CancelOperationResponse { + m0 := &CancelOperationResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } // A response indicating that the handler has successfully processed a request. type Response struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Variant must correlate to the corresponding Request's variant. // // Types that are valid to be assigned to Variant: @@ -725,11 +1240,6 @@ func (x *Response) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Response.ProtoReflect.Descriptor instead. -func (*Response) Descriptor() ([]byte, []int) { - return file_temporal_api_nexus_v1_message_proto_rawDescGZIP(), []int{9} -} - func (x *Response) GetVariant() isResponse_Variant { if x != nil { return x.Variant @@ -755,6 +1265,119 @@ func (x *Response) GetCancelOperation() *CancelOperationResponse { return nil } +func (x *Response) SetStartOperation(v *StartOperationResponse) { + if v == nil { + x.Variant = nil + return + } + x.Variant = &Response_StartOperation{v} +} + +func (x *Response) SetCancelOperation(v *CancelOperationResponse) { + if v == nil { + x.Variant = nil + return + } + x.Variant = &Response_CancelOperation{v} +} + +func (x *Response) HasVariant() bool { + if x == nil { + return false + } + return x.Variant != nil +} + +func (x *Response) HasStartOperation() bool { + if x == nil { + return false + } + _, ok := x.Variant.(*Response_StartOperation) + return ok +} + +func (x *Response) HasCancelOperation() bool { + if x == nil { + return false + } + _, ok := x.Variant.(*Response_CancelOperation) + return ok +} + +func (x *Response) ClearVariant() { + x.Variant = nil +} + +func (x *Response) ClearStartOperation() { + if _, ok := x.Variant.(*Response_StartOperation); ok { + x.Variant = nil + } +} + +func (x *Response) ClearCancelOperation() { + if _, ok := x.Variant.(*Response_CancelOperation); ok { + x.Variant = nil + } +} + +const Response_Variant_not_set_case case_Response_Variant = 0 +const Response_StartOperation_case case_Response_Variant = 1 +const Response_CancelOperation_case case_Response_Variant = 2 + +func (x *Response) WhichVariant() case_Response_Variant { + if x == nil { + return Response_Variant_not_set_case + } + switch x.Variant.(type) { + case *Response_StartOperation: + return Response_StartOperation_case + case *Response_CancelOperation: + return Response_CancelOperation_case + default: + return Response_Variant_not_set_case + } +} + +type Response_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Variant must correlate to the corresponding Request's variant. + + // Fields of oneof Variant: + StartOperation *StartOperationResponse + CancelOperation *CancelOperationResponse + // -- end of Variant +} + +func (b0 Response_builder) Build() *Response { + m0 := &Response{} + b, x := &b0, m0 + _, _ = b, x + if b.StartOperation != nil { + x.Variant = &Response_StartOperation{b.StartOperation} + } + if b.CancelOperation != nil { + x.Variant = &Response_CancelOperation{b.CancelOperation} + } + return m0 +} + +type case_Response_Variant protoreflect.FieldNumber + +func (x case_Response_Variant) String() string { + switch x { + case Response_Variant_not_set_case: + return "ResponseVariantNotSetCase" + case Response_StartOperation_case: + return "ResponseStartOperationCase" + case Response_CancelOperation_case: + return "ResponseCancelOperationCase" + default: + return strconv.Itoa(int(x)) + } + +} + type isResponse_Variant interface { isResponse_Variant() } @@ -773,7 +1396,7 @@ func (*Response_CancelOperation) isResponse_Variant() {} // A cluster-global binding from an endpoint ID to a target for dispatching incoming Nexus requests. type Endpoint struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Data version for this endpoint, incremented for every update issued via the UpdateNexusEndpoint API. Version int64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` // Unique server-generated endpoint ID. @@ -824,11 +1447,6 @@ func (x *Endpoint) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Endpoint.ProtoReflect.Descriptor instead. -func (*Endpoint) Descriptor() ([]byte, []int) { - return file_temporal_api_nexus_v1_message_proto_rawDescGZIP(), []int{10} -} - func (x *Endpoint) GetVersion() int64 { if x != nil { return x.Version @@ -871,9 +1489,105 @@ func (x *Endpoint) GetUrlPrefix() string { return "" } +func (x *Endpoint) SetVersion(v int64) { + x.Version = v +} + +func (x *Endpoint) SetId(v string) { + x.Id = v +} + +func (x *Endpoint) SetSpec(v *EndpointSpec) { + x.Spec = v +} + +func (x *Endpoint) SetCreatedTime(v *timestamppb.Timestamp) { + x.CreatedTime = v +} + +func (x *Endpoint) SetLastModifiedTime(v *timestamppb.Timestamp) { + x.LastModifiedTime = v +} + +func (x *Endpoint) SetUrlPrefix(v string) { + x.UrlPrefix = v +} + +func (x *Endpoint) HasSpec() bool { + if x == nil { + return false + } + return x.Spec != nil +} + +func (x *Endpoint) HasCreatedTime() bool { + if x == nil { + return false + } + return x.CreatedTime != nil +} + +func (x *Endpoint) HasLastModifiedTime() bool { + if x == nil { + return false + } + return x.LastModifiedTime != nil +} + +func (x *Endpoint) ClearSpec() { + x.Spec = nil +} + +func (x *Endpoint) ClearCreatedTime() { + x.CreatedTime = nil +} + +func (x *Endpoint) ClearLastModifiedTime() { + x.LastModifiedTime = nil +} + +type Endpoint_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Data version for this endpoint, incremented for every update issued via the UpdateNexusEndpoint API. + Version int64 + // Unique server-generated endpoint ID. + Id string + // Spec for the endpoint. + Spec *EndpointSpec + // The date and time when the endpoint was created. + // (-- api-linter: core::0142::time-field-names=disabled + // + // aip.dev/not-precedent: Not following linter rules. --) + CreatedTime *timestamppb.Timestamp + // The date and time when the endpoint was last modified. + // Will not be set if the endpoint has never been modified. + // (-- api-linter: core::0142::time-field-names=disabled + // + // aip.dev/not-precedent: Not following linter rules. --) + LastModifiedTime *timestamppb.Timestamp + // Server exposed URL prefix for invocation of operations on this endpoint. + // This doesn't include the protocol, hostname or port as the server does not know how it should be accessed + // publicly. The URL is stable in the face of endpoint renames. + UrlPrefix string +} + +func (b0 Endpoint_builder) Build() *Endpoint { + m0 := &Endpoint{} + b, x := &b0, m0 + _, _ = b, x + x.Version = b.Version + x.Id = b.Id + x.Spec = b.Spec + x.CreatedTime = b.CreatedTime + x.LastModifiedTime = b.LastModifiedTime + x.UrlPrefix = b.UrlPrefix + return m0 +} + // Contains mutable fields for an Endpoint. type EndpointSpec struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Endpoint name, unique for this cluster. Must match `[a-zA-Z_][a-zA-Z0-9_]*`. // Renaming an endpoint breaks all workflow callers that reference this endpoint, causing operations to fail. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` @@ -912,11 +1626,6 @@ func (x *EndpointSpec) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use EndpointSpec.ProtoReflect.Descriptor instead. -func (*EndpointSpec) Descriptor() ([]byte, []int) { - return file_temporal_api_nexus_v1_message_proto_rawDescGZIP(), []int{11} -} - func (x *EndpointSpec) GetName() string { if x != nil { return x.Name @@ -938,9 +1647,67 @@ func (x *EndpointSpec) GetTarget() *EndpointTarget { return nil } +func (x *EndpointSpec) SetName(v string) { + x.Name = v +} + +func (x *EndpointSpec) SetDescription(v *v11.Payload) { + x.Description = v +} + +func (x *EndpointSpec) SetTarget(v *EndpointTarget) { + x.Target = v +} + +func (x *EndpointSpec) HasDescription() bool { + if x == nil { + return false + } + return x.Description != nil +} + +func (x *EndpointSpec) HasTarget() bool { + if x == nil { + return false + } + return x.Target != nil +} + +func (x *EndpointSpec) ClearDescription() { + x.Description = nil +} + +func (x *EndpointSpec) ClearTarget() { + x.Target = nil +} + +type EndpointSpec_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Endpoint name, unique for this cluster. Must match `[a-zA-Z_][a-zA-Z0-9_]*`. + // Renaming an endpoint breaks all workflow callers that reference this endpoint, causing operations to fail. + Name string + // Markdown description serialized as a single JSON string. + // If the Payload is encrypted, the UI and CLI may decrypt with the configured codec server endpoint. + // By default, the server enforces a limit of 20,000 bytes for this entire payload. + Description *v11.Payload + // Target to route requests to. + Target *EndpointTarget +} + +func (b0 EndpointSpec_builder) Build() *EndpointSpec { + m0 := &EndpointSpec{} + b, x := &b0, m0 + _, _ = b, x + x.Name = b.Name + x.Description = b.Description + x.Target = b.Target + return m0 +} + // Target to route requests to. type EndpointTarget struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Types that are valid to be assigned to Variant: // // *EndpointTarget_Worker_ @@ -975,11 +1742,6 @@ func (x *EndpointTarget) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use EndpointTarget.ProtoReflect.Descriptor instead. -func (*EndpointTarget) Descriptor() ([]byte, []int) { - return file_temporal_api_nexus_v1_message_proto_rawDescGZIP(), []int{12} -} - func (x *EndpointTarget) GetVariant() isEndpointTarget_Variant { if x != nil { return x.Variant @@ -1005,6 +1767,117 @@ func (x *EndpointTarget) GetExternal() *EndpointTarget_External { return nil } +func (x *EndpointTarget) SetWorker(v *EndpointTarget_Worker) { + if v == nil { + x.Variant = nil + return + } + x.Variant = &EndpointTarget_Worker_{v} +} + +func (x *EndpointTarget) SetExternal(v *EndpointTarget_External) { + if v == nil { + x.Variant = nil + return + } + x.Variant = &EndpointTarget_External_{v} +} + +func (x *EndpointTarget) HasVariant() bool { + if x == nil { + return false + } + return x.Variant != nil +} + +func (x *EndpointTarget) HasWorker() bool { + if x == nil { + return false + } + _, ok := x.Variant.(*EndpointTarget_Worker_) + return ok +} + +func (x *EndpointTarget) HasExternal() bool { + if x == nil { + return false + } + _, ok := x.Variant.(*EndpointTarget_External_) + return ok +} + +func (x *EndpointTarget) ClearVariant() { + x.Variant = nil +} + +func (x *EndpointTarget) ClearWorker() { + if _, ok := x.Variant.(*EndpointTarget_Worker_); ok { + x.Variant = nil + } +} + +func (x *EndpointTarget) ClearExternal() { + if _, ok := x.Variant.(*EndpointTarget_External_); ok { + x.Variant = nil + } +} + +const EndpointTarget_Variant_not_set_case case_EndpointTarget_Variant = 0 +const EndpointTarget_Worker_case case_EndpointTarget_Variant = 1 +const EndpointTarget_External_case case_EndpointTarget_Variant = 2 + +func (x *EndpointTarget) WhichVariant() case_EndpointTarget_Variant { + if x == nil { + return EndpointTarget_Variant_not_set_case + } + switch x.Variant.(type) { + case *EndpointTarget_Worker_: + return EndpointTarget_Worker_case + case *EndpointTarget_External_: + return EndpointTarget_External_case + default: + return EndpointTarget_Variant_not_set_case + } +} + +type EndpointTarget_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Fields of oneof Variant: + Worker *EndpointTarget_Worker + External *EndpointTarget_External + // -- end of Variant +} + +func (b0 EndpointTarget_builder) Build() *EndpointTarget { + m0 := &EndpointTarget{} + b, x := &b0, m0 + _, _ = b, x + if b.Worker != nil { + x.Variant = &EndpointTarget_Worker_{b.Worker} + } + if b.External != nil { + x.Variant = &EndpointTarget_External_{b.External} + } + return m0 +} + +type case_EndpointTarget_Variant protoreflect.FieldNumber + +func (x case_EndpointTarget_Variant) String() string { + switch x { + case EndpointTarget_Variant_not_set_case: + return "EndpointTargetVariantNotSetCase" + case EndpointTarget_Worker_case: + return "EndpointTargetWorkerCase" + case EndpointTarget_External_case: + return "EndpointTargetExternalCase" + default: + return strconv.Itoa(int(x)) + } + +} + type isEndpointTarget_Variant interface { isEndpointTarget_Variant() } @@ -1023,7 +1896,7 @@ func (*EndpointTarget_External_) isEndpointTarget_Variant() {} // An operation completed successfully. type StartOperationResponse_Sync struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Payload *v11.Payload `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` Links []*Link `protobuf:"bytes,2,rep,name=links,proto3" json:"links,omitempty"` unknownFields protoimpl.UnknownFields @@ -1055,11 +1928,6 @@ func (x *StartOperationResponse_Sync) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use StartOperationResponse_Sync.ProtoReflect.Descriptor instead. -func (*StartOperationResponse_Sync) Descriptor() ([]byte, []int) { - return file_temporal_api_nexus_v1_message_proto_rawDescGZIP(), []int{7, 0} -} - func (x *StartOperationResponse_Sync) GetPayload() *v11.Payload { if x != nil { return x.Payload @@ -1074,10 +1942,45 @@ func (x *StartOperationResponse_Sync) GetLinks() []*Link { return nil } +func (x *StartOperationResponse_Sync) SetPayload(v *v11.Payload) { + x.Payload = v +} + +func (x *StartOperationResponse_Sync) SetLinks(v []*Link) { + x.Links = v +} + +func (x *StartOperationResponse_Sync) HasPayload() bool { + if x == nil { + return false + } + return x.Payload != nil +} + +func (x *StartOperationResponse_Sync) ClearPayload() { + x.Payload = nil +} + +type StartOperationResponse_Sync_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Payload *v11.Payload + Links []*Link +} + +func (b0 StartOperationResponse_Sync_builder) Build() *StartOperationResponse_Sync { + m0 := &StartOperationResponse_Sync{} + b, x := &b0, m0 + _, _ = b, x + x.Payload = b.Payload + x.Links = b.Links + return m0 +} + // The operation will complete asynchronously. // The returned ID can be used to reference this operation. type StartOperationResponse_Async struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Deprecated. Renamed to operation_token. // // Deprecated: Marked as deprecated in temporal/api/nexus/v1/message.proto. @@ -1113,11 +2016,6 @@ func (x *StartOperationResponse_Async) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use StartOperationResponse_Async.ProtoReflect.Descriptor instead. -func (*StartOperationResponse_Async) Descriptor() ([]byte, []int) { - return file_temporal_api_nexus_v1_message_proto_rawDescGZIP(), []int{7, 1} -} - // Deprecated: Marked as deprecated in temporal/api/nexus/v1/message.proto. func (x *StartOperationResponse_Async) GetOperationId() string { if x != nil { @@ -1140,9 +2038,43 @@ func (x *StartOperationResponse_Async) GetOperationToken() string { return "" } +// Deprecated: Marked as deprecated in temporal/api/nexus/v1/message.proto. +func (x *StartOperationResponse_Async) SetOperationId(v string) { + x.OperationId = v +} + +func (x *StartOperationResponse_Async) SetLinks(v []*Link) { + x.Links = v +} + +func (x *StartOperationResponse_Async) SetOperationToken(v string) { + x.OperationToken = v +} + +type StartOperationResponse_Async_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Deprecated. Renamed to operation_token. + // + // Deprecated: Marked as deprecated in temporal/api/nexus/v1/message.proto. + OperationId string + Links []*Link + OperationToken string +} + +func (b0 StartOperationResponse_Async_builder) Build() *StartOperationResponse_Async { + m0 := &StartOperationResponse_Async{} + b, x := &b0, m0 + _, _ = b, x + x.OperationId = b.OperationId + x.Links = b.Links + x.OperationToken = b.OperationToken + return m0 +} + // Target a worker polling on a Nexus task queue in a specific namespace. type EndpointTarget_Worker struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Namespace to route requests to. Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // Nexus task queue to route requests to. @@ -1176,11 +2108,6 @@ func (x *EndpointTarget_Worker) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use EndpointTarget_Worker.ProtoReflect.Descriptor instead. -func (*EndpointTarget_Worker) Descriptor() ([]byte, []int) { - return file_temporal_api_nexus_v1_message_proto_rawDescGZIP(), []int{12, 0} -} - func (x *EndpointTarget_Worker) GetNamespace() string { if x != nil { return x.Namespace @@ -1195,11 +2122,37 @@ func (x *EndpointTarget_Worker) GetTaskQueue() string { return "" } +func (x *EndpointTarget_Worker) SetNamespace(v string) { + x.Namespace = v +} + +func (x *EndpointTarget_Worker) SetTaskQueue(v string) { + x.TaskQueue = v +} + +type EndpointTarget_Worker_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Namespace to route requests to. + Namespace string + // Nexus task queue to route requests to. + TaskQueue string +} + +func (b0 EndpointTarget_Worker_builder) Build() *EndpointTarget_Worker { + m0 := &EndpointTarget_Worker{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.TaskQueue = b.TaskQueue + return m0 +} + // Target an external server by URL. // At a later point, this will support providing credentials, in the meantime, an http.RoundTripper can be injected // into the server to modify the request. type EndpointTarget_External struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // URL to call. Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` unknownFields protoimpl.UnknownFields @@ -1231,11 +2184,6 @@ func (x *EndpointTarget_External) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use EndpointTarget_External.ProtoReflect.Descriptor instead. -func (*EndpointTarget_External) Descriptor() ([]byte, []int) { - return file_temporal_api_nexus_v1_message_proto_rawDescGZIP(), []int{12, 1} -} - func (x *EndpointTarget_External) GetUrl() string { if x != nil { return x.Url @@ -1243,6 +2191,25 @@ func (x *EndpointTarget_External) GetUrl() string { return "" } +func (x *EndpointTarget_External) SetUrl(v string) { + x.Url = v +} + +type EndpointTarget_External_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // URL to call. + Url string +} + +func (b0 EndpointTarget_External_builder) Build() *EndpointTarget_External { + m0 := &EndpointTarget_External{} + b, x := &b0, m0 + _, _ = b, x + x.Url = b.Url + return m0 +} + var File_temporal_api_nexus_v1_message_proto protoreflect.FileDescriptor const file_temporal_api_nexus_v1_message_proto_rawDesc = "" + @@ -1335,18 +2302,6 @@ const file_temporal_api_nexus_v1_message_proto_rawDesc = "" + "\avariantB\x84\x01\n" + "\x18io.temporal.api.nexus.v1B\fMessageProtoP\x01Z!go.temporal.io/api/nexus/v1;nexus\xaa\x02\x17Temporalio.Api.Nexus.V1\xea\x02\x1aTemporalio::Api::Nexus::V1b\x06proto3" -var ( - file_temporal_api_nexus_v1_message_proto_rawDescOnce sync.Once - file_temporal_api_nexus_v1_message_proto_rawDescData []byte -) - -func file_temporal_api_nexus_v1_message_proto_rawDescGZIP() []byte { - file_temporal_api_nexus_v1_message_proto_rawDescOnce.Do(func() { - file_temporal_api_nexus_v1_message_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_api_nexus_v1_message_proto_rawDesc), len(file_temporal_api_nexus_v1_message_proto_rawDesc))) - }) - return file_temporal_api_nexus_v1_message_proto_rawDescData -} - var file_temporal_api_nexus_v1_message_proto_msgTypes = make([]protoimpl.MessageInfo, 20) var file_temporal_api_nexus_v1_message_proto_goTypes = []any{ (*Failure)(nil), // 0: temporal.api.nexus.v1.Failure diff --git a/nexus/v1/message_protoopaque.pb.go b/nexus/v1/message_protoopaque.pb.go new file mode 100644 index 00000000..46fe5569 --- /dev/null +++ b/nexus/v1/message_protoopaque.pb.go @@ -0,0 +1,2308 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// plugins: +// protoc-gen-go +// protoc +// source: temporal/api/nexus/v1/message.proto + +//go:build protoopaque + +package nexus + +import ( + reflect "reflect" + "strconv" + unsafe "unsafe" + + v11 "go.temporal.io/api/common/v1" + v1 "go.temporal.io/api/enums/v1" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// A general purpose failure message. +// See: https://github.com/nexus-rpc/api/blob/main/SPEC.md#failure +type Failure struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Message string `protobuf:"bytes,1,opt,name=message,proto3"` + xxx_hidden_Metadata map[string]string `protobuf:"bytes,2,rep,name=metadata,proto3" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + xxx_hidden_Details []byte `protobuf:"bytes,3,opt,name=details,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Failure) Reset() { + *x = Failure{} + mi := &file_temporal_api_nexus_v1_message_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Failure) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Failure) ProtoMessage() {} + +func (x *Failure) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_nexus_v1_message_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *Failure) GetMessage() string { + if x != nil { + return x.xxx_hidden_Message + } + return "" +} + +func (x *Failure) GetMetadata() map[string]string { + if x != nil { + return x.xxx_hidden_Metadata + } + return nil +} + +func (x *Failure) GetDetails() []byte { + if x != nil { + return x.xxx_hidden_Details + } + return nil +} + +func (x *Failure) SetMessage(v string) { + x.xxx_hidden_Message = v +} + +func (x *Failure) SetMetadata(v map[string]string) { + x.xxx_hidden_Metadata = v +} + +func (x *Failure) SetDetails(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_Details = v +} + +type Failure_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Message string + Metadata map[string]string + // UTF-8 encoded JSON serializable details. + Details []byte +} + +func (b0 Failure_builder) Build() *Failure { + m0 := &Failure{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Message = b.Message + x.xxx_hidden_Metadata = b.Metadata + x.xxx_hidden_Details = b.Details + return m0 +} + +type HandlerError struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ErrorType string `protobuf:"bytes,1,opt,name=error_type,json=errorType,proto3"` + xxx_hidden_Failure *Failure `protobuf:"bytes,2,opt,name=failure,proto3"` + xxx_hidden_RetryBehavior v1.NexusHandlerErrorRetryBehavior `protobuf:"varint,3,opt,name=retry_behavior,json=retryBehavior,proto3,enum=temporal.api.enums.v1.NexusHandlerErrorRetryBehavior"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *HandlerError) Reset() { + *x = HandlerError{} + mi := &file_temporal_api_nexus_v1_message_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *HandlerError) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*HandlerError) ProtoMessage() {} + +func (x *HandlerError) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_nexus_v1_message_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *HandlerError) GetErrorType() string { + if x != nil { + return x.xxx_hidden_ErrorType + } + return "" +} + +func (x *HandlerError) GetFailure() *Failure { + if x != nil { + return x.xxx_hidden_Failure + } + return nil +} + +func (x *HandlerError) GetRetryBehavior() v1.NexusHandlerErrorRetryBehavior { + if x != nil { + return x.xxx_hidden_RetryBehavior + } + return v1.NexusHandlerErrorRetryBehavior(0) +} + +func (x *HandlerError) SetErrorType(v string) { + x.xxx_hidden_ErrorType = v +} + +func (x *HandlerError) SetFailure(v *Failure) { + x.xxx_hidden_Failure = v +} + +func (x *HandlerError) SetRetryBehavior(v v1.NexusHandlerErrorRetryBehavior) { + x.xxx_hidden_RetryBehavior = v +} + +func (x *HandlerError) HasFailure() bool { + if x == nil { + return false + } + return x.xxx_hidden_Failure != nil +} + +func (x *HandlerError) ClearFailure() { + x.xxx_hidden_Failure = nil +} + +type HandlerError_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // See https://github.com/nexus-rpc/api/blob/main/SPEC.md#predefined-handler-errors. + ErrorType string + Failure *Failure + // Retry behavior, defaults to the retry behavior of the error type as defined in the spec. + RetryBehavior v1.NexusHandlerErrorRetryBehavior +} + +func (b0 HandlerError_builder) Build() *HandlerError { + m0 := &HandlerError{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ErrorType = b.ErrorType + x.xxx_hidden_Failure = b.Failure + x.xxx_hidden_RetryBehavior = b.RetryBehavior + return m0 +} + +type UnsuccessfulOperationError struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_OperationState string `protobuf:"bytes,1,opt,name=operation_state,json=operationState,proto3"` + xxx_hidden_Failure *Failure `protobuf:"bytes,2,opt,name=failure,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UnsuccessfulOperationError) Reset() { + *x = UnsuccessfulOperationError{} + mi := &file_temporal_api_nexus_v1_message_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UnsuccessfulOperationError) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UnsuccessfulOperationError) ProtoMessage() {} + +func (x *UnsuccessfulOperationError) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_nexus_v1_message_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UnsuccessfulOperationError) GetOperationState() string { + if x != nil { + return x.xxx_hidden_OperationState + } + return "" +} + +func (x *UnsuccessfulOperationError) GetFailure() *Failure { + if x != nil { + return x.xxx_hidden_Failure + } + return nil +} + +func (x *UnsuccessfulOperationError) SetOperationState(v string) { + x.xxx_hidden_OperationState = v +} + +func (x *UnsuccessfulOperationError) SetFailure(v *Failure) { + x.xxx_hidden_Failure = v +} + +func (x *UnsuccessfulOperationError) HasFailure() bool { + if x == nil { + return false + } + return x.xxx_hidden_Failure != nil +} + +func (x *UnsuccessfulOperationError) ClearFailure() { + x.xxx_hidden_Failure = nil +} + +type UnsuccessfulOperationError_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // See https://github.com/nexus-rpc/api/blob/main/SPEC.md#operationinfo. + OperationState string + Failure *Failure +} + +func (b0 UnsuccessfulOperationError_builder) Build() *UnsuccessfulOperationError { + m0 := &UnsuccessfulOperationError{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_OperationState = b.OperationState + x.xxx_hidden_Failure = b.Failure + return m0 +} + +type Link struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Url string `protobuf:"bytes,1,opt,name=url,proto3"` + xxx_hidden_Type string `protobuf:"bytes,2,opt,name=type,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Link) Reset() { + *x = Link{} + mi := &file_temporal_api_nexus_v1_message_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Link) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Link) ProtoMessage() {} + +func (x *Link) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_nexus_v1_message_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *Link) GetUrl() string { + if x != nil { + return x.xxx_hidden_Url + } + return "" +} + +func (x *Link) GetType() string { + if x != nil { + return x.xxx_hidden_Type + } + return "" +} + +func (x *Link) SetUrl(v string) { + x.xxx_hidden_Url = v +} + +func (x *Link) SetType(v string) { + x.xxx_hidden_Type = v +} + +type Link_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // See https://github.com/nexus-rpc/api/blob/main/SPEC.md#links. + Url string + Type string +} + +func (b0 Link_builder) Build() *Link { + m0 := &Link{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Url = b.Url + x.xxx_hidden_Type = b.Type + return m0 +} + +// A request to start an operation. +type StartOperationRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Service string `protobuf:"bytes,1,opt,name=service,proto3"` + xxx_hidden_Operation string `protobuf:"bytes,2,opt,name=operation,proto3"` + xxx_hidden_RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3"` + xxx_hidden_Callback string `protobuf:"bytes,4,opt,name=callback,proto3"` + xxx_hidden_Payload *v11.Payload `protobuf:"bytes,5,opt,name=payload,proto3"` + xxx_hidden_CallbackHeader map[string]string `protobuf:"bytes,6,rep,name=callback_header,json=callbackHeader,proto3" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + xxx_hidden_Links *[]*Link `protobuf:"bytes,7,rep,name=links,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *StartOperationRequest) Reset() { + *x = StartOperationRequest{} + mi := &file_temporal_api_nexus_v1_message_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *StartOperationRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StartOperationRequest) ProtoMessage() {} + +func (x *StartOperationRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_nexus_v1_message_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *StartOperationRequest) GetService() string { + if x != nil { + return x.xxx_hidden_Service + } + return "" +} + +func (x *StartOperationRequest) GetOperation() string { + if x != nil { + return x.xxx_hidden_Operation + } + return "" +} + +func (x *StartOperationRequest) GetRequestId() string { + if x != nil { + return x.xxx_hidden_RequestId + } + return "" +} + +func (x *StartOperationRequest) GetCallback() string { + if x != nil { + return x.xxx_hidden_Callback + } + return "" +} + +func (x *StartOperationRequest) GetPayload() *v11.Payload { + if x != nil { + return x.xxx_hidden_Payload + } + return nil +} + +func (x *StartOperationRequest) GetCallbackHeader() map[string]string { + if x != nil { + return x.xxx_hidden_CallbackHeader + } + return nil +} + +func (x *StartOperationRequest) GetLinks() []*Link { + if x != nil { + if x.xxx_hidden_Links != nil { + return *x.xxx_hidden_Links + } + } + return nil +} + +func (x *StartOperationRequest) SetService(v string) { + x.xxx_hidden_Service = v +} + +func (x *StartOperationRequest) SetOperation(v string) { + x.xxx_hidden_Operation = v +} + +func (x *StartOperationRequest) SetRequestId(v string) { + x.xxx_hidden_RequestId = v +} + +func (x *StartOperationRequest) SetCallback(v string) { + x.xxx_hidden_Callback = v +} + +func (x *StartOperationRequest) SetPayload(v *v11.Payload) { + x.xxx_hidden_Payload = v +} + +func (x *StartOperationRequest) SetCallbackHeader(v map[string]string) { + x.xxx_hidden_CallbackHeader = v +} + +func (x *StartOperationRequest) SetLinks(v []*Link) { + x.xxx_hidden_Links = &v +} + +func (x *StartOperationRequest) HasPayload() bool { + if x == nil { + return false + } + return x.xxx_hidden_Payload != nil +} + +func (x *StartOperationRequest) ClearPayload() { + x.xxx_hidden_Payload = nil +} + +type StartOperationRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Name of service to start the operation in. + Service string + // Type of operation to start. + Operation string + // A request ID that can be used as an idempotentency key. + RequestId string + // Callback URL to call upon completion if the started operation is async. + Callback string + // Full request body from the incoming HTTP request. + Payload *v11.Payload + // Header that is expected to be attached to the callback request when the operation completes. + CallbackHeader map[string]string + // Links contain caller information and can be attached to the operations started by the handler. + Links []*Link +} + +func (b0 StartOperationRequest_builder) Build() *StartOperationRequest { + m0 := &StartOperationRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Service = b.Service + x.xxx_hidden_Operation = b.Operation + x.xxx_hidden_RequestId = b.RequestId + x.xxx_hidden_Callback = b.Callback + x.xxx_hidden_Payload = b.Payload + x.xxx_hidden_CallbackHeader = b.CallbackHeader + x.xxx_hidden_Links = &b.Links + return m0 +} + +// A request to cancel an operation. +type CancelOperationRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Service string `protobuf:"bytes,1,opt,name=service,proto3"` + xxx_hidden_Operation string `protobuf:"bytes,2,opt,name=operation,proto3"` + xxx_hidden_OperationId string `protobuf:"bytes,3,opt,name=operation_id,json=operationId,proto3"` + xxx_hidden_OperationToken string `protobuf:"bytes,4,opt,name=operation_token,json=operationToken,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CancelOperationRequest) Reset() { + *x = CancelOperationRequest{} + mi := &file_temporal_api_nexus_v1_message_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CancelOperationRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CancelOperationRequest) ProtoMessage() {} + +func (x *CancelOperationRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_nexus_v1_message_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *CancelOperationRequest) GetService() string { + if x != nil { + return x.xxx_hidden_Service + } + return "" +} + +func (x *CancelOperationRequest) GetOperation() string { + if x != nil { + return x.xxx_hidden_Operation + } + return "" +} + +// Deprecated: Marked as deprecated in temporal/api/nexus/v1/message.proto. +func (x *CancelOperationRequest) GetOperationId() string { + if x != nil { + return x.xxx_hidden_OperationId + } + return "" +} + +func (x *CancelOperationRequest) GetOperationToken() string { + if x != nil { + return x.xxx_hidden_OperationToken + } + return "" +} + +func (x *CancelOperationRequest) SetService(v string) { + x.xxx_hidden_Service = v +} + +func (x *CancelOperationRequest) SetOperation(v string) { + x.xxx_hidden_Operation = v +} + +// Deprecated: Marked as deprecated in temporal/api/nexus/v1/message.proto. +func (x *CancelOperationRequest) SetOperationId(v string) { + x.xxx_hidden_OperationId = v +} + +func (x *CancelOperationRequest) SetOperationToken(v string) { + x.xxx_hidden_OperationToken = v +} + +type CancelOperationRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Service name. + Service string + // Type of operation to cancel. + Operation string + // Operation ID as originally generated by a Handler. + // + // Deprecated. Renamed to operation_token. + // + // Deprecated: Marked as deprecated in temporal/api/nexus/v1/message.proto. + OperationId string + // Operation token as originally generated by a Handler. + OperationToken string +} + +func (b0 CancelOperationRequest_builder) Build() *CancelOperationRequest { + m0 := &CancelOperationRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Service = b.Service + x.xxx_hidden_Operation = b.Operation + x.xxx_hidden_OperationId = b.OperationId + x.xxx_hidden_OperationToken = b.OperationToken + return m0 +} + +// A Nexus request. +type Request struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Header map[string]string `protobuf:"bytes,1,rep,name=header,proto3" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + xxx_hidden_ScheduledTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=scheduled_time,json=scheduledTime,proto3"` + xxx_hidden_Variant isRequest_Variant `protobuf_oneof:"variant"` + xxx_hidden_Endpoint string `protobuf:"bytes,10,opt,name=endpoint,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Request) Reset() { + *x = Request{} + mi := &file_temporal_api_nexus_v1_message_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Request) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Request) ProtoMessage() {} + +func (x *Request) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_nexus_v1_message_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *Request) GetHeader() map[string]string { + if x != nil { + return x.xxx_hidden_Header + } + return nil +} + +func (x *Request) GetScheduledTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_ScheduledTime + } + return nil +} + +func (x *Request) GetStartOperation() *StartOperationRequest { + if x != nil { + if x, ok := x.xxx_hidden_Variant.(*request_StartOperation); ok { + return x.StartOperation + } + } + return nil +} + +func (x *Request) GetCancelOperation() *CancelOperationRequest { + if x != nil { + if x, ok := x.xxx_hidden_Variant.(*request_CancelOperation); ok { + return x.CancelOperation + } + } + return nil +} + +func (x *Request) GetEndpoint() string { + if x != nil { + return x.xxx_hidden_Endpoint + } + return "" +} + +func (x *Request) SetHeader(v map[string]string) { + x.xxx_hidden_Header = v +} + +func (x *Request) SetScheduledTime(v *timestamppb.Timestamp) { + x.xxx_hidden_ScheduledTime = v +} + +func (x *Request) SetStartOperation(v *StartOperationRequest) { + if v == nil { + x.xxx_hidden_Variant = nil + return + } + x.xxx_hidden_Variant = &request_StartOperation{v} +} + +func (x *Request) SetCancelOperation(v *CancelOperationRequest) { + if v == nil { + x.xxx_hidden_Variant = nil + return + } + x.xxx_hidden_Variant = &request_CancelOperation{v} +} + +func (x *Request) SetEndpoint(v string) { + x.xxx_hidden_Endpoint = v +} + +func (x *Request) HasScheduledTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_ScheduledTime != nil +} + +func (x *Request) HasVariant() bool { + if x == nil { + return false + } + return x.xxx_hidden_Variant != nil +} + +func (x *Request) HasStartOperation() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Variant.(*request_StartOperation) + return ok +} + +func (x *Request) HasCancelOperation() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Variant.(*request_CancelOperation) + return ok +} + +func (x *Request) ClearScheduledTime() { + x.xxx_hidden_ScheduledTime = nil +} + +func (x *Request) ClearVariant() { + x.xxx_hidden_Variant = nil +} + +func (x *Request) ClearStartOperation() { + if _, ok := x.xxx_hidden_Variant.(*request_StartOperation); ok { + x.xxx_hidden_Variant = nil + } +} + +func (x *Request) ClearCancelOperation() { + if _, ok := x.xxx_hidden_Variant.(*request_CancelOperation); ok { + x.xxx_hidden_Variant = nil + } +} + +const Request_Variant_not_set_case case_Request_Variant = 0 +const Request_StartOperation_case case_Request_Variant = 3 +const Request_CancelOperation_case case_Request_Variant = 4 + +func (x *Request) WhichVariant() case_Request_Variant { + if x == nil { + return Request_Variant_not_set_case + } + switch x.xxx_hidden_Variant.(type) { + case *request_StartOperation: + return Request_StartOperation_case + case *request_CancelOperation: + return Request_CancelOperation_case + default: + return Request_Variant_not_set_case + } +} + +type Request_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Headers extracted from the original request in the Temporal frontend. + // When using Nexus over HTTP, this includes the request's HTTP headers ignoring multiple values. + Header map[string]string + // The timestamp when the request was scheduled in the frontend. + // (-- api-linter: core::0142::time-field-names=disabled + // + // aip.dev/not-precedent: Not following linter rules. --) + ScheduledTime *timestamppb.Timestamp + // Fields of oneof xxx_hidden_Variant: + StartOperation *StartOperationRequest + CancelOperation *CancelOperationRequest + // -- end of xxx_hidden_Variant + // The endpoint this request was addressed to before forwarding to the worker. + // Supported from server version 1.30.0. + Endpoint string +} + +func (b0 Request_builder) Build() *Request { + m0 := &Request{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Header = b.Header + x.xxx_hidden_ScheduledTime = b.ScheduledTime + if b.StartOperation != nil { + x.xxx_hidden_Variant = &request_StartOperation{b.StartOperation} + } + if b.CancelOperation != nil { + x.xxx_hidden_Variant = &request_CancelOperation{b.CancelOperation} + } + x.xxx_hidden_Endpoint = b.Endpoint + return m0 +} + +type case_Request_Variant protoreflect.FieldNumber + +func (x case_Request_Variant) String() string { + switch x { + case Request_Variant_not_set_case: + return "RequestVariantNotSetCase" + case Request_StartOperation_case: + return "RequestStartOperationCase" + case Request_CancelOperation_case: + return "RequestCancelOperationCase" + default: + return strconv.Itoa(int(x)) + } + +} + +type isRequest_Variant interface { + isRequest_Variant() +} + +type request_StartOperation struct { + StartOperation *StartOperationRequest `protobuf:"bytes,3,opt,name=start_operation,json=startOperation,proto3,oneof"` +} + +type request_CancelOperation struct { + CancelOperation *CancelOperationRequest `protobuf:"bytes,4,opt,name=cancel_operation,json=cancelOperation,proto3,oneof"` +} + +func (*request_StartOperation) isRequest_Variant() {} + +func (*request_CancelOperation) isRequest_Variant() {} + +// Response variant for StartOperationRequest. +type StartOperationResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Variant isStartOperationResponse_Variant `protobuf_oneof:"variant"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *StartOperationResponse) Reset() { + *x = StartOperationResponse{} + mi := &file_temporal_api_nexus_v1_message_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *StartOperationResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StartOperationResponse) ProtoMessage() {} + +func (x *StartOperationResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_nexus_v1_message_proto_msgTypes[7] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *StartOperationResponse) GetSyncSuccess() *StartOperationResponse_Sync { + if x != nil { + if x, ok := x.xxx_hidden_Variant.(*startOperationResponse_SyncSuccess); ok { + return x.SyncSuccess + } + } + return nil +} + +func (x *StartOperationResponse) GetAsyncSuccess() *StartOperationResponse_Async { + if x != nil { + if x, ok := x.xxx_hidden_Variant.(*startOperationResponse_AsyncSuccess); ok { + return x.AsyncSuccess + } + } + return nil +} + +func (x *StartOperationResponse) GetOperationError() *UnsuccessfulOperationError { + if x != nil { + if x, ok := x.xxx_hidden_Variant.(*startOperationResponse_OperationError); ok { + return x.OperationError + } + } + return nil +} + +func (x *StartOperationResponse) SetSyncSuccess(v *StartOperationResponse_Sync) { + if v == nil { + x.xxx_hidden_Variant = nil + return + } + x.xxx_hidden_Variant = &startOperationResponse_SyncSuccess{v} +} + +func (x *StartOperationResponse) SetAsyncSuccess(v *StartOperationResponse_Async) { + if v == nil { + x.xxx_hidden_Variant = nil + return + } + x.xxx_hidden_Variant = &startOperationResponse_AsyncSuccess{v} +} + +func (x *StartOperationResponse) SetOperationError(v *UnsuccessfulOperationError) { + if v == nil { + x.xxx_hidden_Variant = nil + return + } + x.xxx_hidden_Variant = &startOperationResponse_OperationError{v} +} + +func (x *StartOperationResponse) HasVariant() bool { + if x == nil { + return false + } + return x.xxx_hidden_Variant != nil +} + +func (x *StartOperationResponse) HasSyncSuccess() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Variant.(*startOperationResponse_SyncSuccess) + return ok +} + +func (x *StartOperationResponse) HasAsyncSuccess() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Variant.(*startOperationResponse_AsyncSuccess) + return ok +} + +func (x *StartOperationResponse) HasOperationError() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Variant.(*startOperationResponse_OperationError) + return ok +} + +func (x *StartOperationResponse) ClearVariant() { + x.xxx_hidden_Variant = nil +} + +func (x *StartOperationResponse) ClearSyncSuccess() { + if _, ok := x.xxx_hidden_Variant.(*startOperationResponse_SyncSuccess); ok { + x.xxx_hidden_Variant = nil + } +} + +func (x *StartOperationResponse) ClearAsyncSuccess() { + if _, ok := x.xxx_hidden_Variant.(*startOperationResponse_AsyncSuccess); ok { + x.xxx_hidden_Variant = nil + } +} + +func (x *StartOperationResponse) ClearOperationError() { + if _, ok := x.xxx_hidden_Variant.(*startOperationResponse_OperationError); ok { + x.xxx_hidden_Variant = nil + } +} + +const StartOperationResponse_Variant_not_set_case case_StartOperationResponse_Variant = 0 +const StartOperationResponse_SyncSuccess_case case_StartOperationResponse_Variant = 1 +const StartOperationResponse_AsyncSuccess_case case_StartOperationResponse_Variant = 2 +const StartOperationResponse_OperationError_case case_StartOperationResponse_Variant = 3 + +func (x *StartOperationResponse) WhichVariant() case_StartOperationResponse_Variant { + if x == nil { + return StartOperationResponse_Variant_not_set_case + } + switch x.xxx_hidden_Variant.(type) { + case *startOperationResponse_SyncSuccess: + return StartOperationResponse_SyncSuccess_case + case *startOperationResponse_AsyncSuccess: + return StartOperationResponse_AsyncSuccess_case + case *startOperationResponse_OperationError: + return StartOperationResponse_OperationError_case + default: + return StartOperationResponse_Variant_not_set_case + } +} + +type StartOperationResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Fields of oneof xxx_hidden_Variant: + SyncSuccess *StartOperationResponse_Sync + AsyncSuccess *StartOperationResponse_Async + // The operation completed unsuccessfully (failed or canceled). + OperationError *UnsuccessfulOperationError + // -- end of xxx_hidden_Variant +} + +func (b0 StartOperationResponse_builder) Build() *StartOperationResponse { + m0 := &StartOperationResponse{} + b, x := &b0, m0 + _, _ = b, x + if b.SyncSuccess != nil { + x.xxx_hidden_Variant = &startOperationResponse_SyncSuccess{b.SyncSuccess} + } + if b.AsyncSuccess != nil { + x.xxx_hidden_Variant = &startOperationResponse_AsyncSuccess{b.AsyncSuccess} + } + if b.OperationError != nil { + x.xxx_hidden_Variant = &startOperationResponse_OperationError{b.OperationError} + } + return m0 +} + +type case_StartOperationResponse_Variant protoreflect.FieldNumber + +func (x case_StartOperationResponse_Variant) String() string { + switch x { + case StartOperationResponse_Variant_not_set_case: + return "StartOperationResponseVariantNotSetCase" + case StartOperationResponse_SyncSuccess_case: + return "StartOperationResponseSyncSuccessCase" + case StartOperationResponse_AsyncSuccess_case: + return "StartOperationResponseAsyncSuccessCase" + case StartOperationResponse_OperationError_case: + return "StartOperationResponseOperationErrorCase" + default: + return strconv.Itoa(int(x)) + } + +} + +type isStartOperationResponse_Variant interface { + isStartOperationResponse_Variant() +} + +type startOperationResponse_SyncSuccess struct { + SyncSuccess *StartOperationResponse_Sync `protobuf:"bytes,1,opt,name=sync_success,json=syncSuccess,proto3,oneof"` +} + +type startOperationResponse_AsyncSuccess struct { + AsyncSuccess *StartOperationResponse_Async `protobuf:"bytes,2,opt,name=async_success,json=asyncSuccess,proto3,oneof"` +} + +type startOperationResponse_OperationError struct { + // The operation completed unsuccessfully (failed or canceled). + OperationError *UnsuccessfulOperationError `protobuf:"bytes,3,opt,name=operation_error,json=operationError,proto3,oneof"` +} + +func (*startOperationResponse_SyncSuccess) isStartOperationResponse_Variant() {} + +func (*startOperationResponse_AsyncSuccess) isStartOperationResponse_Variant() {} + +func (*startOperationResponse_OperationError) isStartOperationResponse_Variant() {} + +// Response variant for CancelOperationRequest. +type CancelOperationResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CancelOperationResponse) Reset() { + *x = CancelOperationResponse{} + mi := &file_temporal_api_nexus_v1_message_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CancelOperationResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CancelOperationResponse) ProtoMessage() {} + +func (x *CancelOperationResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_nexus_v1_message_proto_msgTypes[8] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type CancelOperationResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 CancelOperationResponse_builder) Build() *CancelOperationResponse { + m0 := &CancelOperationResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +// A response indicating that the handler has successfully processed a request. +type Response struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Variant isResponse_Variant `protobuf_oneof:"variant"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Response) Reset() { + *x = Response{} + mi := &file_temporal_api_nexus_v1_message_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Response) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Response) ProtoMessage() {} + +func (x *Response) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_nexus_v1_message_proto_msgTypes[9] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *Response) GetStartOperation() *StartOperationResponse { + if x != nil { + if x, ok := x.xxx_hidden_Variant.(*response_StartOperation); ok { + return x.StartOperation + } + } + return nil +} + +func (x *Response) GetCancelOperation() *CancelOperationResponse { + if x != nil { + if x, ok := x.xxx_hidden_Variant.(*response_CancelOperation); ok { + return x.CancelOperation + } + } + return nil +} + +func (x *Response) SetStartOperation(v *StartOperationResponse) { + if v == nil { + x.xxx_hidden_Variant = nil + return + } + x.xxx_hidden_Variant = &response_StartOperation{v} +} + +func (x *Response) SetCancelOperation(v *CancelOperationResponse) { + if v == nil { + x.xxx_hidden_Variant = nil + return + } + x.xxx_hidden_Variant = &response_CancelOperation{v} +} + +func (x *Response) HasVariant() bool { + if x == nil { + return false + } + return x.xxx_hidden_Variant != nil +} + +func (x *Response) HasStartOperation() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Variant.(*response_StartOperation) + return ok +} + +func (x *Response) HasCancelOperation() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Variant.(*response_CancelOperation) + return ok +} + +func (x *Response) ClearVariant() { + x.xxx_hidden_Variant = nil +} + +func (x *Response) ClearStartOperation() { + if _, ok := x.xxx_hidden_Variant.(*response_StartOperation); ok { + x.xxx_hidden_Variant = nil + } +} + +func (x *Response) ClearCancelOperation() { + if _, ok := x.xxx_hidden_Variant.(*response_CancelOperation); ok { + x.xxx_hidden_Variant = nil + } +} + +const Response_Variant_not_set_case case_Response_Variant = 0 +const Response_StartOperation_case case_Response_Variant = 1 +const Response_CancelOperation_case case_Response_Variant = 2 + +func (x *Response) WhichVariant() case_Response_Variant { + if x == nil { + return Response_Variant_not_set_case + } + switch x.xxx_hidden_Variant.(type) { + case *response_StartOperation: + return Response_StartOperation_case + case *response_CancelOperation: + return Response_CancelOperation_case + default: + return Response_Variant_not_set_case + } +} + +type Response_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Variant must correlate to the corresponding Request's variant. + + // Fields of oneof xxx_hidden_Variant: + StartOperation *StartOperationResponse + CancelOperation *CancelOperationResponse + // -- end of xxx_hidden_Variant +} + +func (b0 Response_builder) Build() *Response { + m0 := &Response{} + b, x := &b0, m0 + _, _ = b, x + if b.StartOperation != nil { + x.xxx_hidden_Variant = &response_StartOperation{b.StartOperation} + } + if b.CancelOperation != nil { + x.xxx_hidden_Variant = &response_CancelOperation{b.CancelOperation} + } + return m0 +} + +type case_Response_Variant protoreflect.FieldNumber + +func (x case_Response_Variant) String() string { + switch x { + case Response_Variant_not_set_case: + return "ResponseVariantNotSetCase" + case Response_StartOperation_case: + return "ResponseStartOperationCase" + case Response_CancelOperation_case: + return "ResponseCancelOperationCase" + default: + return strconv.Itoa(int(x)) + } + +} + +type isResponse_Variant interface { + isResponse_Variant() +} + +type response_StartOperation struct { + StartOperation *StartOperationResponse `protobuf:"bytes,1,opt,name=start_operation,json=startOperation,proto3,oneof"` +} + +type response_CancelOperation struct { + CancelOperation *CancelOperationResponse `protobuf:"bytes,2,opt,name=cancel_operation,json=cancelOperation,proto3,oneof"` +} + +func (*response_StartOperation) isResponse_Variant() {} + +func (*response_CancelOperation) isResponse_Variant() {} + +// A cluster-global binding from an endpoint ID to a target for dispatching incoming Nexus requests. +type Endpoint struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Version int64 `protobuf:"varint,1,opt,name=version,proto3"` + xxx_hidden_Id string `protobuf:"bytes,2,opt,name=id,proto3"` + xxx_hidden_Spec *EndpointSpec `protobuf:"bytes,3,opt,name=spec,proto3"` + xxx_hidden_CreatedTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_time,json=createdTime,proto3"` + xxx_hidden_LastModifiedTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=last_modified_time,json=lastModifiedTime,proto3"` + xxx_hidden_UrlPrefix string `protobuf:"bytes,6,opt,name=url_prefix,json=urlPrefix,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Endpoint) Reset() { + *x = Endpoint{} + mi := &file_temporal_api_nexus_v1_message_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Endpoint) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Endpoint) ProtoMessage() {} + +func (x *Endpoint) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_nexus_v1_message_proto_msgTypes[10] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *Endpoint) GetVersion() int64 { + if x != nil { + return x.xxx_hidden_Version + } + return 0 +} + +func (x *Endpoint) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *Endpoint) GetSpec() *EndpointSpec { + if x != nil { + return x.xxx_hidden_Spec + } + return nil +} + +func (x *Endpoint) GetCreatedTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_CreatedTime + } + return nil +} + +func (x *Endpoint) GetLastModifiedTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_LastModifiedTime + } + return nil +} + +func (x *Endpoint) GetUrlPrefix() string { + if x != nil { + return x.xxx_hidden_UrlPrefix + } + return "" +} + +func (x *Endpoint) SetVersion(v int64) { + x.xxx_hidden_Version = v +} + +func (x *Endpoint) SetId(v string) { + x.xxx_hidden_Id = v +} + +func (x *Endpoint) SetSpec(v *EndpointSpec) { + x.xxx_hidden_Spec = v +} + +func (x *Endpoint) SetCreatedTime(v *timestamppb.Timestamp) { + x.xxx_hidden_CreatedTime = v +} + +func (x *Endpoint) SetLastModifiedTime(v *timestamppb.Timestamp) { + x.xxx_hidden_LastModifiedTime = v +} + +func (x *Endpoint) SetUrlPrefix(v string) { + x.xxx_hidden_UrlPrefix = v +} + +func (x *Endpoint) HasSpec() bool { + if x == nil { + return false + } + return x.xxx_hidden_Spec != nil +} + +func (x *Endpoint) HasCreatedTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_CreatedTime != nil +} + +func (x *Endpoint) HasLastModifiedTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_LastModifiedTime != nil +} + +func (x *Endpoint) ClearSpec() { + x.xxx_hidden_Spec = nil +} + +func (x *Endpoint) ClearCreatedTime() { + x.xxx_hidden_CreatedTime = nil +} + +func (x *Endpoint) ClearLastModifiedTime() { + x.xxx_hidden_LastModifiedTime = nil +} + +type Endpoint_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Data version for this endpoint, incremented for every update issued via the UpdateNexusEndpoint API. + Version int64 + // Unique server-generated endpoint ID. + Id string + // Spec for the endpoint. + Spec *EndpointSpec + // The date and time when the endpoint was created. + // (-- api-linter: core::0142::time-field-names=disabled + // + // aip.dev/not-precedent: Not following linter rules. --) + CreatedTime *timestamppb.Timestamp + // The date and time when the endpoint was last modified. + // Will not be set if the endpoint has never been modified. + // (-- api-linter: core::0142::time-field-names=disabled + // + // aip.dev/not-precedent: Not following linter rules. --) + LastModifiedTime *timestamppb.Timestamp + // Server exposed URL prefix for invocation of operations on this endpoint. + // This doesn't include the protocol, hostname or port as the server does not know how it should be accessed + // publicly. The URL is stable in the face of endpoint renames. + UrlPrefix string +} + +func (b0 Endpoint_builder) Build() *Endpoint { + m0 := &Endpoint{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Version = b.Version + x.xxx_hidden_Id = b.Id + x.xxx_hidden_Spec = b.Spec + x.xxx_hidden_CreatedTime = b.CreatedTime + x.xxx_hidden_LastModifiedTime = b.LastModifiedTime + x.xxx_hidden_UrlPrefix = b.UrlPrefix + return m0 +} + +// Contains mutable fields for an Endpoint. +type EndpointSpec struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Name string `protobuf:"bytes,1,opt,name=name,proto3"` + xxx_hidden_Description *v11.Payload `protobuf:"bytes,2,opt,name=description,proto3"` + xxx_hidden_Target *EndpointTarget `protobuf:"bytes,3,opt,name=target,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *EndpointSpec) Reset() { + *x = EndpointSpec{} + mi := &file_temporal_api_nexus_v1_message_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *EndpointSpec) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EndpointSpec) ProtoMessage() {} + +func (x *EndpointSpec) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_nexus_v1_message_proto_msgTypes[11] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *EndpointSpec) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *EndpointSpec) GetDescription() *v11.Payload { + if x != nil { + return x.xxx_hidden_Description + } + return nil +} + +func (x *EndpointSpec) GetTarget() *EndpointTarget { + if x != nil { + return x.xxx_hidden_Target + } + return nil +} + +func (x *EndpointSpec) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *EndpointSpec) SetDescription(v *v11.Payload) { + x.xxx_hidden_Description = v +} + +func (x *EndpointSpec) SetTarget(v *EndpointTarget) { + x.xxx_hidden_Target = v +} + +func (x *EndpointSpec) HasDescription() bool { + if x == nil { + return false + } + return x.xxx_hidden_Description != nil +} + +func (x *EndpointSpec) HasTarget() bool { + if x == nil { + return false + } + return x.xxx_hidden_Target != nil +} + +func (x *EndpointSpec) ClearDescription() { + x.xxx_hidden_Description = nil +} + +func (x *EndpointSpec) ClearTarget() { + x.xxx_hidden_Target = nil +} + +type EndpointSpec_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Endpoint name, unique for this cluster. Must match `[a-zA-Z_][a-zA-Z0-9_]*`. + // Renaming an endpoint breaks all workflow callers that reference this endpoint, causing operations to fail. + Name string + // Markdown description serialized as a single JSON string. + // If the Payload is encrypted, the UI and CLI may decrypt with the configured codec server endpoint. + // By default, the server enforces a limit of 20,000 bytes for this entire payload. + Description *v11.Payload + // Target to route requests to. + Target *EndpointTarget +} + +func (b0 EndpointSpec_builder) Build() *EndpointSpec { + m0 := &EndpointSpec{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Name = b.Name + x.xxx_hidden_Description = b.Description + x.xxx_hidden_Target = b.Target + return m0 +} + +// Target to route requests to. +type EndpointTarget struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Variant isEndpointTarget_Variant `protobuf_oneof:"variant"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *EndpointTarget) Reset() { + *x = EndpointTarget{} + mi := &file_temporal_api_nexus_v1_message_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *EndpointTarget) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EndpointTarget) ProtoMessage() {} + +func (x *EndpointTarget) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_nexus_v1_message_proto_msgTypes[12] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *EndpointTarget) GetWorker() *EndpointTarget_Worker { + if x != nil { + if x, ok := x.xxx_hidden_Variant.(*endpointTarget_Worker_); ok { + return x.Worker + } + } + return nil +} + +func (x *EndpointTarget) GetExternal() *EndpointTarget_External { + if x != nil { + if x, ok := x.xxx_hidden_Variant.(*endpointTarget_External_); ok { + return x.External + } + } + return nil +} + +func (x *EndpointTarget) SetWorker(v *EndpointTarget_Worker) { + if v == nil { + x.xxx_hidden_Variant = nil + return + } + x.xxx_hidden_Variant = &endpointTarget_Worker_{v} +} + +func (x *EndpointTarget) SetExternal(v *EndpointTarget_External) { + if v == nil { + x.xxx_hidden_Variant = nil + return + } + x.xxx_hidden_Variant = &endpointTarget_External_{v} +} + +func (x *EndpointTarget) HasVariant() bool { + if x == nil { + return false + } + return x.xxx_hidden_Variant != nil +} + +func (x *EndpointTarget) HasWorker() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Variant.(*endpointTarget_Worker_) + return ok +} + +func (x *EndpointTarget) HasExternal() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Variant.(*endpointTarget_External_) + return ok +} + +func (x *EndpointTarget) ClearVariant() { + x.xxx_hidden_Variant = nil +} + +func (x *EndpointTarget) ClearWorker() { + if _, ok := x.xxx_hidden_Variant.(*endpointTarget_Worker_); ok { + x.xxx_hidden_Variant = nil + } +} + +func (x *EndpointTarget) ClearExternal() { + if _, ok := x.xxx_hidden_Variant.(*endpointTarget_External_); ok { + x.xxx_hidden_Variant = nil + } +} + +const EndpointTarget_Variant_not_set_case case_EndpointTarget_Variant = 0 +const EndpointTarget_Worker_case case_EndpointTarget_Variant = 1 +const EndpointTarget_External_case case_EndpointTarget_Variant = 2 + +func (x *EndpointTarget) WhichVariant() case_EndpointTarget_Variant { + if x == nil { + return EndpointTarget_Variant_not_set_case + } + switch x.xxx_hidden_Variant.(type) { + case *endpointTarget_Worker_: + return EndpointTarget_Worker_case + case *endpointTarget_External_: + return EndpointTarget_External_case + default: + return EndpointTarget_Variant_not_set_case + } +} + +type EndpointTarget_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Fields of oneof xxx_hidden_Variant: + Worker *EndpointTarget_Worker + External *EndpointTarget_External + // -- end of xxx_hidden_Variant +} + +func (b0 EndpointTarget_builder) Build() *EndpointTarget { + m0 := &EndpointTarget{} + b, x := &b0, m0 + _, _ = b, x + if b.Worker != nil { + x.xxx_hidden_Variant = &endpointTarget_Worker_{b.Worker} + } + if b.External != nil { + x.xxx_hidden_Variant = &endpointTarget_External_{b.External} + } + return m0 +} + +type case_EndpointTarget_Variant protoreflect.FieldNumber + +func (x case_EndpointTarget_Variant) String() string { + switch x { + case EndpointTarget_Variant_not_set_case: + return "EndpointTargetVariantNotSetCase" + case EndpointTarget_Worker_case: + return "EndpointTargetWorkerCase" + case EndpointTarget_External_case: + return "EndpointTargetExternalCase" + default: + return strconv.Itoa(int(x)) + } + +} + +type isEndpointTarget_Variant interface { + isEndpointTarget_Variant() +} + +type endpointTarget_Worker_ struct { + Worker *EndpointTarget_Worker `protobuf:"bytes,1,opt,name=worker,proto3,oneof"` +} + +type endpointTarget_External_ struct { + External *EndpointTarget_External `protobuf:"bytes,2,opt,name=external,proto3,oneof"` +} + +func (*endpointTarget_Worker_) isEndpointTarget_Variant() {} + +func (*endpointTarget_External_) isEndpointTarget_Variant() {} + +// An operation completed successfully. +type StartOperationResponse_Sync struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Payload *v11.Payload `protobuf:"bytes,1,opt,name=payload,proto3"` + xxx_hidden_Links *[]*Link `protobuf:"bytes,2,rep,name=links,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *StartOperationResponse_Sync) Reset() { + *x = StartOperationResponse_Sync{} + mi := &file_temporal_api_nexus_v1_message_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *StartOperationResponse_Sync) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StartOperationResponse_Sync) ProtoMessage() {} + +func (x *StartOperationResponse_Sync) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_nexus_v1_message_proto_msgTypes[16] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *StartOperationResponse_Sync) GetPayload() *v11.Payload { + if x != nil { + return x.xxx_hidden_Payload + } + return nil +} + +func (x *StartOperationResponse_Sync) GetLinks() []*Link { + if x != nil { + if x.xxx_hidden_Links != nil { + return *x.xxx_hidden_Links + } + } + return nil +} + +func (x *StartOperationResponse_Sync) SetPayload(v *v11.Payload) { + x.xxx_hidden_Payload = v +} + +func (x *StartOperationResponse_Sync) SetLinks(v []*Link) { + x.xxx_hidden_Links = &v +} + +func (x *StartOperationResponse_Sync) HasPayload() bool { + if x == nil { + return false + } + return x.xxx_hidden_Payload != nil +} + +func (x *StartOperationResponse_Sync) ClearPayload() { + x.xxx_hidden_Payload = nil +} + +type StartOperationResponse_Sync_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Payload *v11.Payload + Links []*Link +} + +func (b0 StartOperationResponse_Sync_builder) Build() *StartOperationResponse_Sync { + m0 := &StartOperationResponse_Sync{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Payload = b.Payload + x.xxx_hidden_Links = &b.Links + return m0 +} + +// The operation will complete asynchronously. +// The returned ID can be used to reference this operation. +type StartOperationResponse_Async struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_OperationId string `protobuf:"bytes,1,opt,name=operation_id,json=operationId,proto3"` + xxx_hidden_Links *[]*Link `protobuf:"bytes,2,rep,name=links,proto3"` + xxx_hidden_OperationToken string `protobuf:"bytes,3,opt,name=operation_token,json=operationToken,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *StartOperationResponse_Async) Reset() { + *x = StartOperationResponse_Async{} + mi := &file_temporal_api_nexus_v1_message_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *StartOperationResponse_Async) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StartOperationResponse_Async) ProtoMessage() {} + +func (x *StartOperationResponse_Async) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_nexus_v1_message_proto_msgTypes[17] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Marked as deprecated in temporal/api/nexus/v1/message.proto. +func (x *StartOperationResponse_Async) GetOperationId() string { + if x != nil { + return x.xxx_hidden_OperationId + } + return "" +} + +func (x *StartOperationResponse_Async) GetLinks() []*Link { + if x != nil { + if x.xxx_hidden_Links != nil { + return *x.xxx_hidden_Links + } + } + return nil +} + +func (x *StartOperationResponse_Async) GetOperationToken() string { + if x != nil { + return x.xxx_hidden_OperationToken + } + return "" +} + +// Deprecated: Marked as deprecated in temporal/api/nexus/v1/message.proto. +func (x *StartOperationResponse_Async) SetOperationId(v string) { + x.xxx_hidden_OperationId = v +} + +func (x *StartOperationResponse_Async) SetLinks(v []*Link) { + x.xxx_hidden_Links = &v +} + +func (x *StartOperationResponse_Async) SetOperationToken(v string) { + x.xxx_hidden_OperationToken = v +} + +type StartOperationResponse_Async_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Deprecated. Renamed to operation_token. + // + // Deprecated: Marked as deprecated in temporal/api/nexus/v1/message.proto. + OperationId string + Links []*Link + OperationToken string +} + +func (b0 StartOperationResponse_Async_builder) Build() *StartOperationResponse_Async { + m0 := &StartOperationResponse_Async{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_OperationId = b.OperationId + x.xxx_hidden_Links = &b.Links + x.xxx_hidden_OperationToken = b.OperationToken + return m0 +} + +// Target a worker polling on a Nexus task queue in a specific namespace. +type EndpointTarget_Worker struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_TaskQueue string `protobuf:"bytes,2,opt,name=task_queue,json=taskQueue,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *EndpointTarget_Worker) Reset() { + *x = EndpointTarget_Worker{} + mi := &file_temporal_api_nexus_v1_message_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *EndpointTarget_Worker) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EndpointTarget_Worker) ProtoMessage() {} + +func (x *EndpointTarget_Worker) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_nexus_v1_message_proto_msgTypes[18] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *EndpointTarget_Worker) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *EndpointTarget_Worker) GetTaskQueue() string { + if x != nil { + return x.xxx_hidden_TaskQueue + } + return "" +} + +func (x *EndpointTarget_Worker) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *EndpointTarget_Worker) SetTaskQueue(v string) { + x.xxx_hidden_TaskQueue = v +} + +type EndpointTarget_Worker_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Namespace to route requests to. + Namespace string + // Nexus task queue to route requests to. + TaskQueue string +} + +func (b0 EndpointTarget_Worker_builder) Build() *EndpointTarget_Worker { + m0 := &EndpointTarget_Worker{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_TaskQueue = b.TaskQueue + return m0 +} + +// Target an external server by URL. +// At a later point, this will support providing credentials, in the meantime, an http.RoundTripper can be injected +// into the server to modify the request. +type EndpointTarget_External struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Url string `protobuf:"bytes,1,opt,name=url,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *EndpointTarget_External) Reset() { + *x = EndpointTarget_External{} + mi := &file_temporal_api_nexus_v1_message_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *EndpointTarget_External) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EndpointTarget_External) ProtoMessage() {} + +func (x *EndpointTarget_External) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_nexus_v1_message_proto_msgTypes[19] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *EndpointTarget_External) GetUrl() string { + if x != nil { + return x.xxx_hidden_Url + } + return "" +} + +func (x *EndpointTarget_External) SetUrl(v string) { + x.xxx_hidden_Url = v +} + +type EndpointTarget_External_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // URL to call. + Url string +} + +func (b0 EndpointTarget_External_builder) Build() *EndpointTarget_External { + m0 := &EndpointTarget_External{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Url = b.Url + return m0 +} + +var File_temporal_api_nexus_v1_message_proto protoreflect.FileDescriptor + +const file_temporal_api_nexus_v1_message_proto_rawDesc = "" + + "\n" + + "#temporal/api/nexus/v1/message.proto\x12\x15temporal.api.nexus.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a$temporal/api/common/v1/message.proto\x1a!temporal/api/enums/v1/nexus.proto\"\xc4\x01\n" + + "\aFailure\x12\x18\n" + + "\amessage\x18\x01 \x01(\tR\amessage\x12H\n" + + "\bmetadata\x18\x02 \x03(\v2,.temporal.api.nexus.v1.Failure.MetadataEntryR\bmetadata\x12\x18\n" + + "\adetails\x18\x03 \x01(\fR\adetails\x1a;\n" + + "\rMetadataEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xc5\x01\n" + + "\fHandlerError\x12\x1d\n" + + "\n" + + "error_type\x18\x01 \x01(\tR\terrorType\x128\n" + + "\afailure\x18\x02 \x01(\v2\x1e.temporal.api.nexus.v1.FailureR\afailure\x12\\\n" + + "\x0eretry_behavior\x18\x03 \x01(\x0e25.temporal.api.enums.v1.NexusHandlerErrorRetryBehaviorR\rretryBehavior\"\x7f\n" + + "\x1aUnsuccessfulOperationError\x12'\n" + + "\x0foperation_state\x18\x01 \x01(\tR\x0eoperationState\x128\n" + + "\afailure\x18\x02 \x01(\v2\x1e.temporal.api.nexus.v1.FailureR\afailure\",\n" + + "\x04Link\x12\x10\n" + + "\x03url\x18\x01 \x01(\tR\x03url\x12\x12\n" + + "\x04type\x18\x02 \x01(\tR\x04type\"\xa6\x03\n" + + "\x15StartOperationRequest\x12\x18\n" + + "\aservice\x18\x01 \x01(\tR\aservice\x12\x1c\n" + + "\toperation\x18\x02 \x01(\tR\toperation\x12\x1d\n" + + "\n" + + "request_id\x18\x03 \x01(\tR\trequestId\x12\x1a\n" + + "\bcallback\x18\x04 \x01(\tR\bcallback\x129\n" + + "\apayload\x18\x05 \x01(\v2\x1f.temporal.api.common.v1.PayloadR\apayload\x12i\n" + + "\x0fcallback_header\x18\x06 \x03(\v2@.temporal.api.nexus.v1.StartOperationRequest.CallbackHeaderEntryR\x0ecallbackHeader\x121\n" + + "\x05links\x18\a \x03(\v2\x1b.temporal.api.nexus.v1.LinkR\x05links\x1aA\n" + + "\x13CallbackHeaderEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xa0\x01\n" + + "\x16CancelOperationRequest\x12\x18\n" + + "\aservice\x18\x01 \x01(\tR\aservice\x12\x1c\n" + + "\toperation\x18\x02 \x01(\tR\toperation\x12%\n" + + "\foperation_id\x18\x03 \x01(\tB\x02\x18\x01R\voperationId\x12'\n" + + "\x0foperation_token\x18\x04 \x01(\tR\x0eoperationToken\"\xa7\x03\n" + + "\aRequest\x12B\n" + + "\x06header\x18\x01 \x03(\v2*.temporal.api.nexus.v1.Request.HeaderEntryR\x06header\x12A\n" + + "\x0escheduled_time\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\rscheduledTime\x12W\n" + + "\x0fstart_operation\x18\x03 \x01(\v2,.temporal.api.nexus.v1.StartOperationRequestH\x00R\x0estartOperation\x12Z\n" + + "\x10cancel_operation\x18\x04 \x01(\v2-.temporal.api.nexus.v1.CancelOperationRequestH\x00R\x0fcancelOperation\x12\x1a\n" + + "\bendpoint\x18\n" + + " \x01(\tR\bendpoint\x1a9\n" + + "\vHeaderEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01B\t\n" + + "\avariant\"\xb9\x04\n" + + "\x16StartOperationResponse\x12W\n" + + "\fsync_success\x18\x01 \x01(\v22.temporal.api.nexus.v1.StartOperationResponse.SyncH\x00R\vsyncSuccess\x12Z\n" + + "\rasync_success\x18\x02 \x01(\v23.temporal.api.nexus.v1.StartOperationResponse.AsyncH\x00R\fasyncSuccess\x12\\\n" + + "\x0foperation_error\x18\x03 \x01(\v21.temporal.api.nexus.v1.UnsuccessfulOperationErrorH\x00R\x0eoperationError\x1at\n" + + "\x04Sync\x129\n" + + "\apayload\x18\x01 \x01(\v2\x1f.temporal.api.common.v1.PayloadR\apayload\x121\n" + + "\x05links\x18\x02 \x03(\v2\x1b.temporal.api.nexus.v1.LinkR\x05links\x1a\x8a\x01\n" + + "\x05Async\x12%\n" + + "\foperation_id\x18\x01 \x01(\tB\x02\x18\x01R\voperationId\x121\n" + + "\x05links\x18\x02 \x03(\v2\x1b.temporal.api.nexus.v1.LinkR\x05links\x12'\n" + + "\x0foperation_token\x18\x03 \x01(\tR\x0eoperationTokenB\t\n" + + "\avariant\"\x19\n" + + "\x17CancelOperationResponse\"\xcc\x01\n" + + "\bResponse\x12X\n" + + "\x0fstart_operation\x18\x01 \x01(\v2-.temporal.api.nexus.v1.StartOperationResponseH\x00R\x0estartOperation\x12[\n" + + "\x10cancel_operation\x18\x02 \x01(\v2..temporal.api.nexus.v1.CancelOperationResponseH\x00R\x0fcancelOperationB\t\n" + + "\avariant\"\x95\x02\n" + + "\bEndpoint\x12\x18\n" + + "\aversion\x18\x01 \x01(\x03R\aversion\x12\x0e\n" + + "\x02id\x18\x02 \x01(\tR\x02id\x127\n" + + "\x04spec\x18\x03 \x01(\v2#.temporal.api.nexus.v1.EndpointSpecR\x04spec\x12=\n" + + "\fcreated_time\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\vcreatedTime\x12H\n" + + "\x12last_modified_time\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\x10lastModifiedTime\x12\x1d\n" + + "\n" + + "url_prefix\x18\x06 \x01(\tR\turlPrefix\"\xa4\x01\n" + + "\fEndpointSpec\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12A\n" + + "\vdescription\x18\x02 \x01(\v2\x1f.temporal.api.common.v1.PayloadR\vdescription\x12=\n" + + "\x06target\x18\x03 \x01(\v2%.temporal.api.nexus.v1.EndpointTargetR\x06target\"\x96\x02\n" + + "\x0eEndpointTarget\x12F\n" + + "\x06worker\x18\x01 \x01(\v2,.temporal.api.nexus.v1.EndpointTarget.WorkerH\x00R\x06worker\x12L\n" + + "\bexternal\x18\x02 \x01(\v2..temporal.api.nexus.v1.EndpointTarget.ExternalH\x00R\bexternal\x1aE\n" + + "\x06Worker\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x1d\n" + + "\n" + + "task_queue\x18\x02 \x01(\tR\ttaskQueue\x1a\x1c\n" + + "\bExternal\x12\x10\n" + + "\x03url\x18\x01 \x01(\tR\x03urlB\t\n" + + "\avariantB\x84\x01\n" + + "\x18io.temporal.api.nexus.v1B\fMessageProtoP\x01Z!go.temporal.io/api/nexus/v1;nexus\xaa\x02\x17Temporalio.Api.Nexus.V1\xea\x02\x1aTemporalio::Api::Nexus::V1b\x06proto3" + +var file_temporal_api_nexus_v1_message_proto_msgTypes = make([]protoimpl.MessageInfo, 20) +var file_temporal_api_nexus_v1_message_proto_goTypes = []any{ + (*Failure)(nil), // 0: temporal.api.nexus.v1.Failure + (*HandlerError)(nil), // 1: temporal.api.nexus.v1.HandlerError + (*UnsuccessfulOperationError)(nil), // 2: temporal.api.nexus.v1.UnsuccessfulOperationError + (*Link)(nil), // 3: temporal.api.nexus.v1.Link + (*StartOperationRequest)(nil), // 4: temporal.api.nexus.v1.StartOperationRequest + (*CancelOperationRequest)(nil), // 5: temporal.api.nexus.v1.CancelOperationRequest + (*Request)(nil), // 6: temporal.api.nexus.v1.Request + (*StartOperationResponse)(nil), // 7: temporal.api.nexus.v1.StartOperationResponse + (*CancelOperationResponse)(nil), // 8: temporal.api.nexus.v1.CancelOperationResponse + (*Response)(nil), // 9: temporal.api.nexus.v1.Response + (*Endpoint)(nil), // 10: temporal.api.nexus.v1.Endpoint + (*EndpointSpec)(nil), // 11: temporal.api.nexus.v1.EndpointSpec + (*EndpointTarget)(nil), // 12: temporal.api.nexus.v1.EndpointTarget + nil, // 13: temporal.api.nexus.v1.Failure.MetadataEntry + nil, // 14: temporal.api.nexus.v1.StartOperationRequest.CallbackHeaderEntry + nil, // 15: temporal.api.nexus.v1.Request.HeaderEntry + (*StartOperationResponse_Sync)(nil), // 16: temporal.api.nexus.v1.StartOperationResponse.Sync + (*StartOperationResponse_Async)(nil), // 17: temporal.api.nexus.v1.StartOperationResponse.Async + (*EndpointTarget_Worker)(nil), // 18: temporal.api.nexus.v1.EndpointTarget.Worker + (*EndpointTarget_External)(nil), // 19: temporal.api.nexus.v1.EndpointTarget.External + (v1.NexusHandlerErrorRetryBehavior)(0), // 20: temporal.api.enums.v1.NexusHandlerErrorRetryBehavior + (*v11.Payload)(nil), // 21: temporal.api.common.v1.Payload + (*timestamppb.Timestamp)(nil), // 22: google.protobuf.Timestamp +} +var file_temporal_api_nexus_v1_message_proto_depIdxs = []int32{ + 13, // 0: temporal.api.nexus.v1.Failure.metadata:type_name -> temporal.api.nexus.v1.Failure.MetadataEntry + 0, // 1: temporal.api.nexus.v1.HandlerError.failure:type_name -> temporal.api.nexus.v1.Failure + 20, // 2: temporal.api.nexus.v1.HandlerError.retry_behavior:type_name -> temporal.api.enums.v1.NexusHandlerErrorRetryBehavior + 0, // 3: temporal.api.nexus.v1.UnsuccessfulOperationError.failure:type_name -> temporal.api.nexus.v1.Failure + 21, // 4: temporal.api.nexus.v1.StartOperationRequest.payload:type_name -> temporal.api.common.v1.Payload + 14, // 5: temporal.api.nexus.v1.StartOperationRequest.callback_header:type_name -> temporal.api.nexus.v1.StartOperationRequest.CallbackHeaderEntry + 3, // 6: temporal.api.nexus.v1.StartOperationRequest.links:type_name -> temporal.api.nexus.v1.Link + 15, // 7: temporal.api.nexus.v1.Request.header:type_name -> temporal.api.nexus.v1.Request.HeaderEntry + 22, // 8: temporal.api.nexus.v1.Request.scheduled_time:type_name -> google.protobuf.Timestamp + 4, // 9: temporal.api.nexus.v1.Request.start_operation:type_name -> temporal.api.nexus.v1.StartOperationRequest + 5, // 10: temporal.api.nexus.v1.Request.cancel_operation:type_name -> temporal.api.nexus.v1.CancelOperationRequest + 16, // 11: temporal.api.nexus.v1.StartOperationResponse.sync_success:type_name -> temporal.api.nexus.v1.StartOperationResponse.Sync + 17, // 12: temporal.api.nexus.v1.StartOperationResponse.async_success:type_name -> temporal.api.nexus.v1.StartOperationResponse.Async + 2, // 13: temporal.api.nexus.v1.StartOperationResponse.operation_error:type_name -> temporal.api.nexus.v1.UnsuccessfulOperationError + 7, // 14: temporal.api.nexus.v1.Response.start_operation:type_name -> temporal.api.nexus.v1.StartOperationResponse + 8, // 15: temporal.api.nexus.v1.Response.cancel_operation:type_name -> temporal.api.nexus.v1.CancelOperationResponse + 11, // 16: temporal.api.nexus.v1.Endpoint.spec:type_name -> temporal.api.nexus.v1.EndpointSpec + 22, // 17: temporal.api.nexus.v1.Endpoint.created_time:type_name -> google.protobuf.Timestamp + 22, // 18: temporal.api.nexus.v1.Endpoint.last_modified_time:type_name -> google.protobuf.Timestamp + 21, // 19: temporal.api.nexus.v1.EndpointSpec.description:type_name -> temporal.api.common.v1.Payload + 12, // 20: temporal.api.nexus.v1.EndpointSpec.target:type_name -> temporal.api.nexus.v1.EndpointTarget + 18, // 21: temporal.api.nexus.v1.EndpointTarget.worker:type_name -> temporal.api.nexus.v1.EndpointTarget.Worker + 19, // 22: temporal.api.nexus.v1.EndpointTarget.external:type_name -> temporal.api.nexus.v1.EndpointTarget.External + 21, // 23: temporal.api.nexus.v1.StartOperationResponse.Sync.payload:type_name -> temporal.api.common.v1.Payload + 3, // 24: temporal.api.nexus.v1.StartOperationResponse.Sync.links:type_name -> temporal.api.nexus.v1.Link + 3, // 25: temporal.api.nexus.v1.StartOperationResponse.Async.links:type_name -> temporal.api.nexus.v1.Link + 26, // [26:26] is the sub-list for method output_type + 26, // [26:26] is the sub-list for method input_type + 26, // [26:26] is the sub-list for extension type_name + 26, // [26:26] is the sub-list for extension extendee + 0, // [0:26] is the sub-list for field type_name +} + +func init() { file_temporal_api_nexus_v1_message_proto_init() } +func file_temporal_api_nexus_v1_message_proto_init() { + if File_temporal_api_nexus_v1_message_proto != nil { + return + } + file_temporal_api_nexus_v1_message_proto_msgTypes[6].OneofWrappers = []any{ + (*request_StartOperation)(nil), + (*request_CancelOperation)(nil), + } + file_temporal_api_nexus_v1_message_proto_msgTypes[7].OneofWrappers = []any{ + (*startOperationResponse_SyncSuccess)(nil), + (*startOperationResponse_AsyncSuccess)(nil), + (*startOperationResponse_OperationError)(nil), + } + file_temporal_api_nexus_v1_message_proto_msgTypes[9].OneofWrappers = []any{ + (*response_StartOperation)(nil), + (*response_CancelOperation)(nil), + } + file_temporal_api_nexus_v1_message_proto_msgTypes[12].OneofWrappers = []any{ + (*endpointTarget_Worker_)(nil), + (*endpointTarget_External_)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_api_nexus_v1_message_proto_rawDesc), len(file_temporal_api_nexus_v1_message_proto_rawDesc)), + NumEnums: 0, + NumMessages: 20, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_temporal_api_nexus_v1_message_proto_goTypes, + DependencyIndexes: file_temporal_api_nexus_v1_message_proto_depIdxs, + MessageInfos: file_temporal_api_nexus_v1_message_proto_msgTypes, + }.Build() + File_temporal_api_nexus_v1_message_proto = out.File + file_temporal_api_nexus_v1_message_proto_goTypes = nil + file_temporal_api_nexus_v1_message_proto_depIdxs = nil +} diff --git a/operatorservice/v1/request_response.pb.go b/operatorservice/v1/request_response.pb.go index 0f0ced44..71fed5e6 100644 --- a/operatorservice/v1/request_response.pb.go +++ b/operatorservice/v1/request_response.pb.go @@ -4,11 +4,12 @@ // protoc // source: temporal/api/operatorservice/v1/request_response.proto +//go:build !protoopaque + package operatorservice import ( reflect "reflect" - sync "sync" unsafe "unsafe" v1 "go.temporal.io/api/enums/v1" @@ -26,7 +27,7 @@ const ( ) type AddSearchAttributesRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Mapping between search attribute name and its IndexedValueType. SearchAttributes map[string]v1.IndexedValueType `protobuf:"bytes,1,rep,name=search_attributes,json=searchAttributes,proto3" json:"search_attributes,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value,enum=temporal.api.enums.v1.IndexedValueType"` Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` @@ -59,11 +60,6 @@ func (x *AddSearchAttributesRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use AddSearchAttributesRequest.ProtoReflect.Descriptor instead. -func (*AddSearchAttributesRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_operatorservice_v1_request_response_proto_rawDescGZIP(), []int{0} -} - func (x *AddSearchAttributesRequest) GetSearchAttributes() map[string]v1.IndexedValueType { if x != nil { return x.SearchAttributes @@ -78,8 +74,33 @@ func (x *AddSearchAttributesRequest) GetNamespace() string { return "" } +func (x *AddSearchAttributesRequest) SetSearchAttributes(v map[string]v1.IndexedValueType) { + x.SearchAttributes = v +} + +func (x *AddSearchAttributesRequest) SetNamespace(v string) { + x.Namespace = v +} + +type AddSearchAttributesRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Mapping between search attribute name and its IndexedValueType. + SearchAttributes map[string]v1.IndexedValueType + Namespace string +} + +func (b0 AddSearchAttributesRequest_builder) Build() *AddSearchAttributesRequest { + m0 := &AddSearchAttributesRequest{} + b, x := &b0, m0 + _, _ = b, x + x.SearchAttributes = b.SearchAttributes + x.Namespace = b.Namespace + return m0 +} + type AddSearchAttributesResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -109,13 +130,20 @@ func (x *AddSearchAttributesResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use AddSearchAttributesResponse.ProtoReflect.Descriptor instead. -func (*AddSearchAttributesResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_operatorservice_v1_request_response_proto_rawDescGZIP(), []int{1} +type AddSearchAttributesResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 AddSearchAttributesResponse_builder) Build() *AddSearchAttributesResponse { + m0 := &AddSearchAttributesResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type RemoveSearchAttributesRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Search attribute names to delete. SearchAttributes []string `protobuf:"bytes,1,rep,name=search_attributes,json=searchAttributes,proto3" json:"search_attributes,omitempty"` Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` @@ -148,11 +176,6 @@ func (x *RemoveSearchAttributesRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RemoveSearchAttributesRequest.ProtoReflect.Descriptor instead. -func (*RemoveSearchAttributesRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_operatorservice_v1_request_response_proto_rawDescGZIP(), []int{2} -} - func (x *RemoveSearchAttributesRequest) GetSearchAttributes() []string { if x != nil { return x.SearchAttributes @@ -167,8 +190,33 @@ func (x *RemoveSearchAttributesRequest) GetNamespace() string { return "" } +func (x *RemoveSearchAttributesRequest) SetSearchAttributes(v []string) { + x.SearchAttributes = v +} + +func (x *RemoveSearchAttributesRequest) SetNamespace(v string) { + x.Namespace = v +} + +type RemoveSearchAttributesRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Search attribute names to delete. + SearchAttributes []string + Namespace string +} + +func (b0 RemoveSearchAttributesRequest_builder) Build() *RemoveSearchAttributesRequest { + m0 := &RemoveSearchAttributesRequest{} + b, x := &b0, m0 + _, _ = b, x + x.SearchAttributes = b.SearchAttributes + x.Namespace = b.Namespace + return m0 +} + type RemoveSearchAttributesResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -198,13 +246,20 @@ func (x *RemoveSearchAttributesResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RemoveSearchAttributesResponse.ProtoReflect.Descriptor instead. -func (*RemoveSearchAttributesResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_operatorservice_v1_request_response_proto_rawDescGZIP(), []int{3} +type RemoveSearchAttributesResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 RemoveSearchAttributesResponse_builder) Build() *RemoveSearchAttributesResponse { + m0 := &RemoveSearchAttributesResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type ListSearchAttributesRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -235,11 +290,6 @@ func (x *ListSearchAttributesRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListSearchAttributesRequest.ProtoReflect.Descriptor instead. -func (*ListSearchAttributesRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_operatorservice_v1_request_response_proto_rawDescGZIP(), []int{4} -} - func (x *ListSearchAttributesRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -247,8 +297,26 @@ func (x *ListSearchAttributesRequest) GetNamespace() string { return "" } +func (x *ListSearchAttributesRequest) SetNamespace(v string) { + x.Namespace = v +} + +type ListSearchAttributesRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string +} + +func (b0 ListSearchAttributesRequest_builder) Build() *ListSearchAttributesRequest { + m0 := &ListSearchAttributesRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + return m0 +} + type ListSearchAttributesResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Mapping between custom (user-registered) search attribute name to its IndexedValueType. CustomAttributes map[string]v1.IndexedValueType `protobuf:"bytes,1,rep,name=custom_attributes,json=customAttributes,proto3" json:"custom_attributes,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value,enum=temporal.api.enums.v1.IndexedValueType"` // Mapping between system (predefined) search attribute name to its IndexedValueType. @@ -284,11 +352,6 @@ func (x *ListSearchAttributesResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListSearchAttributesResponse.ProtoReflect.Descriptor instead. -func (*ListSearchAttributesResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_operatorservice_v1_request_response_proto_rawDescGZIP(), []int{5} -} - func (x *ListSearchAttributesResponse) GetCustomAttributes() map[string]v1.IndexedValueType { if x != nil { return x.CustomAttributes @@ -310,8 +373,41 @@ func (x *ListSearchAttributesResponse) GetStorageSchema() map[string]string { return nil } +func (x *ListSearchAttributesResponse) SetCustomAttributes(v map[string]v1.IndexedValueType) { + x.CustomAttributes = v +} + +func (x *ListSearchAttributesResponse) SetSystemAttributes(v map[string]v1.IndexedValueType) { + x.SystemAttributes = v +} + +func (x *ListSearchAttributesResponse) SetStorageSchema(v map[string]string) { + x.StorageSchema = v +} + +type ListSearchAttributesResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Mapping between custom (user-registered) search attribute name to its IndexedValueType. + CustomAttributes map[string]v1.IndexedValueType + // Mapping between system (predefined) search attribute name to its IndexedValueType. + SystemAttributes map[string]v1.IndexedValueType + // Mapping from the attribute name to the visibility storage native type. + StorageSchema map[string]string +} + +func (b0 ListSearchAttributesResponse_builder) Build() *ListSearchAttributesResponse { + m0 := &ListSearchAttributesResponse{} + b, x := &b0, m0 + _, _ = b, x + x.CustomAttributes = b.CustomAttributes + x.SystemAttributes = b.SystemAttributes + x.StorageSchema = b.StorageSchema + return m0 +} + type DeleteNamespaceRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Only one of namespace or namespace_id must be specified to identify namespace. Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` NamespaceId string `protobuf:"bytes,2,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"` @@ -347,11 +443,6 @@ func (x *DeleteNamespaceRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeleteNamespaceRequest.ProtoReflect.Descriptor instead. -func (*DeleteNamespaceRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_operatorservice_v1_request_response_proto_rawDescGZIP(), []int{6} -} - func (x *DeleteNamespaceRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -373,8 +464,52 @@ func (x *DeleteNamespaceRequest) GetNamespaceDeleteDelay() *durationpb.Duration return nil } +func (x *DeleteNamespaceRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *DeleteNamespaceRequest) SetNamespaceId(v string) { + x.NamespaceId = v +} + +func (x *DeleteNamespaceRequest) SetNamespaceDeleteDelay(v *durationpb.Duration) { + x.NamespaceDeleteDelay = v +} + +func (x *DeleteNamespaceRequest) HasNamespaceDeleteDelay() bool { + if x == nil { + return false + } + return x.NamespaceDeleteDelay != nil +} + +func (x *DeleteNamespaceRequest) ClearNamespaceDeleteDelay() { + x.NamespaceDeleteDelay = nil +} + +type DeleteNamespaceRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Only one of namespace or namespace_id must be specified to identify namespace. + Namespace string + NamespaceId string + // If provided, the deletion of namespace info will be delayed for the given duration (0 means no delay). + // If not provided, the default delay configured in the cluster will be used. + NamespaceDeleteDelay *durationpb.Duration +} + +func (b0 DeleteNamespaceRequest_builder) Build() *DeleteNamespaceRequest { + m0 := &DeleteNamespaceRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.NamespaceId = b.NamespaceId + x.NamespaceDeleteDelay = b.NamespaceDeleteDelay + return m0 +} + type DeleteNamespaceResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Temporary namespace name that is used during reclaim resources step. DeletedNamespace string `protobuf:"bytes,1,opt,name=deleted_namespace,json=deletedNamespace,proto3" json:"deleted_namespace,omitempty"` unknownFields protoimpl.UnknownFields @@ -406,11 +541,6 @@ func (x *DeleteNamespaceResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeleteNamespaceResponse.ProtoReflect.Descriptor instead. -func (*DeleteNamespaceResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_operatorservice_v1_request_response_proto_rawDescGZIP(), []int{7} -} - func (x *DeleteNamespaceResponse) GetDeletedNamespace() string { if x != nil { return x.DeletedNamespace @@ -418,8 +548,27 @@ func (x *DeleteNamespaceResponse) GetDeletedNamespace() string { return "" } +func (x *DeleteNamespaceResponse) SetDeletedNamespace(v string) { + x.DeletedNamespace = v +} + +type DeleteNamespaceResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Temporary namespace name that is used during reclaim resources step. + DeletedNamespace string +} + +func (b0 DeleteNamespaceResponse_builder) Build() *DeleteNamespaceResponse { + m0 := &DeleteNamespaceResponse{} + b, x := &b0, m0 + _, _ = b, x + x.DeletedNamespace = b.DeletedNamespace + return m0 +} + type AddOrUpdateRemoteClusterRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Frontend Address is a cross cluster accessible address for gRPC traffic. This field is required. FrontendAddress string `protobuf:"bytes,1,opt,name=frontend_address,json=frontendAddress,proto3" json:"frontend_address,omitempty"` // Flag to enable / disable the cross cluster connection. @@ -459,11 +608,6 @@ func (x *AddOrUpdateRemoteClusterRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use AddOrUpdateRemoteClusterRequest.ProtoReflect.Descriptor instead. -func (*AddOrUpdateRemoteClusterRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_operatorservice_v1_request_response_proto_rawDescGZIP(), []int{8} -} - func (x *AddOrUpdateRemoteClusterRequest) GetFrontendAddress() string { if x != nil { return x.FrontendAddress @@ -492,8 +636,50 @@ func (x *AddOrUpdateRemoteClusterRequest) GetEnableReplication() bool { return false } +func (x *AddOrUpdateRemoteClusterRequest) SetFrontendAddress(v string) { + x.FrontendAddress = v +} + +func (x *AddOrUpdateRemoteClusterRequest) SetEnableRemoteClusterConnection(v bool) { + x.EnableRemoteClusterConnection = v +} + +func (x *AddOrUpdateRemoteClusterRequest) SetFrontendHttpAddress(v string) { + x.FrontendHttpAddress = v +} + +func (x *AddOrUpdateRemoteClusterRequest) SetEnableReplication(v bool) { + x.EnableReplication = v +} + +type AddOrUpdateRemoteClusterRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Frontend Address is a cross cluster accessible address for gRPC traffic. This field is required. + FrontendAddress string + // Flag to enable / disable the cross cluster connection. + EnableRemoteClusterConnection bool + // Frontend HTTP Address is a cross cluster accessible address for HTTP traffic. This field is optional. If not provided + // + // on update, the existing HTTP address will be removed. + FrontendHttpAddress string + // Controls whether replication streams are active. + EnableReplication bool +} + +func (b0 AddOrUpdateRemoteClusterRequest_builder) Build() *AddOrUpdateRemoteClusterRequest { + m0 := &AddOrUpdateRemoteClusterRequest{} + b, x := &b0, m0 + _, _ = b, x + x.FrontendAddress = b.FrontendAddress + x.EnableRemoteClusterConnection = b.EnableRemoteClusterConnection + x.FrontendHttpAddress = b.FrontendHttpAddress + x.EnableReplication = b.EnableReplication + return m0 +} + type AddOrUpdateRemoteClusterResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -523,13 +709,20 @@ func (x *AddOrUpdateRemoteClusterResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use AddOrUpdateRemoteClusterResponse.ProtoReflect.Descriptor instead. -func (*AddOrUpdateRemoteClusterResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_operatorservice_v1_request_response_proto_rawDescGZIP(), []int{9} +type AddOrUpdateRemoteClusterResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 AddOrUpdateRemoteClusterResponse_builder) Build() *AddOrUpdateRemoteClusterResponse { + m0 := &AddOrUpdateRemoteClusterResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type RemoveRemoteClusterRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Remote cluster name to be removed. ClusterName string `protobuf:"bytes,1,opt,name=cluster_name,json=clusterName,proto3" json:"cluster_name,omitempty"` unknownFields protoimpl.UnknownFields @@ -561,11 +754,6 @@ func (x *RemoveRemoteClusterRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RemoveRemoteClusterRequest.ProtoReflect.Descriptor instead. -func (*RemoveRemoteClusterRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_operatorservice_v1_request_response_proto_rawDescGZIP(), []int{10} -} - func (x *RemoveRemoteClusterRequest) GetClusterName() string { if x != nil { return x.ClusterName @@ -573,8 +761,27 @@ func (x *RemoveRemoteClusterRequest) GetClusterName() string { return "" } +func (x *RemoveRemoteClusterRequest) SetClusterName(v string) { + x.ClusterName = v +} + +type RemoveRemoteClusterRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Remote cluster name to be removed. + ClusterName string +} + +func (b0 RemoveRemoteClusterRequest_builder) Build() *RemoveRemoteClusterRequest { + m0 := &RemoveRemoteClusterRequest{} + b, x := &b0, m0 + _, _ = b, x + x.ClusterName = b.ClusterName + return m0 +} + type RemoveRemoteClusterResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -604,13 +811,20 @@ func (x *RemoveRemoteClusterResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RemoveRemoteClusterResponse.ProtoReflect.Descriptor instead. -func (*RemoveRemoteClusterResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_operatorservice_v1_request_response_proto_rawDescGZIP(), []int{11} +type RemoveRemoteClusterResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 RemoveRemoteClusterResponse_builder) Build() *RemoveRemoteClusterResponse { + m0 := &RemoveRemoteClusterResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type ListClustersRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` NextPageToken []byte `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` unknownFields protoimpl.UnknownFields @@ -642,11 +856,6 @@ func (x *ListClustersRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListClustersRequest.ProtoReflect.Descriptor instead. -func (*ListClustersRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_operatorservice_v1_request_response_proto_rawDescGZIP(), []int{12} -} - func (x *ListClustersRequest) GetPageSize() int32 { if x != nil { return x.PageSize @@ -661,8 +870,35 @@ func (x *ListClustersRequest) GetNextPageToken() []byte { return nil } +func (x *ListClustersRequest) SetPageSize(v int32) { + x.PageSize = v +} + +func (x *ListClustersRequest) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.NextPageToken = v +} + +type ListClustersRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + PageSize int32 + NextPageToken []byte +} + +func (b0 ListClustersRequest_builder) Build() *ListClustersRequest { + m0 := &ListClustersRequest{} + b, x := &b0, m0 + _, _ = b, x + x.PageSize = b.PageSize + x.NextPageToken = b.NextPageToken + return m0 +} + type ListClustersResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // List of all cluster information Clusters []*ClusterMetadata `protobuf:"bytes,1,rep,name=clusters,proto3" json:"clusters,omitempty"` NextPageToken []byte `protobuf:"bytes,4,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` @@ -695,11 +931,6 @@ func (x *ListClustersResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListClustersResponse.ProtoReflect.Descriptor instead. -func (*ListClustersResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_operatorservice_v1_request_response_proto_rawDescGZIP(), []int{13} -} - func (x *ListClustersResponse) GetClusters() []*ClusterMetadata { if x != nil { return x.Clusters @@ -714,8 +945,36 @@ func (x *ListClustersResponse) GetNextPageToken() []byte { return nil } +func (x *ListClustersResponse) SetClusters(v []*ClusterMetadata) { + x.Clusters = v +} + +func (x *ListClustersResponse) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.NextPageToken = v +} + +type ListClustersResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // List of all cluster information + Clusters []*ClusterMetadata + NextPageToken []byte +} + +func (b0 ListClustersResponse_builder) Build() *ListClustersResponse { + m0 := &ListClustersResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Clusters = b.Clusters + x.NextPageToken = b.NextPageToken + return m0 +} + type ClusterMetadata struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Name of the cluster name. ClusterName string `protobuf:"bytes,1,opt,name=cluster_name,json=clusterName,proto3" json:"cluster_name,omitempty"` // Id of the cluster. @@ -761,11 +1020,6 @@ func (x *ClusterMetadata) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ClusterMetadata.ProtoReflect.Descriptor instead. -func (*ClusterMetadata) Descriptor() ([]byte, []int) { - return file_temporal_api_operatorservice_v1_request_response_proto_rawDescGZIP(), []int{14} -} - func (x *ClusterMetadata) GetClusterName() string { if x != nil { return x.ClusterName @@ -822,8 +1076,76 @@ func (x *ClusterMetadata) GetIsReplicationEnabled() bool { return false } +func (x *ClusterMetadata) SetClusterName(v string) { + x.ClusterName = v +} + +func (x *ClusterMetadata) SetClusterId(v string) { + x.ClusterId = v +} + +func (x *ClusterMetadata) SetAddress(v string) { + x.Address = v +} + +func (x *ClusterMetadata) SetHttpAddress(v string) { + x.HttpAddress = v +} + +func (x *ClusterMetadata) SetInitialFailoverVersion(v int64) { + x.InitialFailoverVersion = v +} + +func (x *ClusterMetadata) SetHistoryShardCount(v int32) { + x.HistoryShardCount = v +} + +func (x *ClusterMetadata) SetIsConnectionEnabled(v bool) { + x.IsConnectionEnabled = v +} + +func (x *ClusterMetadata) SetIsReplicationEnabled(v bool) { + x.IsReplicationEnabled = v +} + +type ClusterMetadata_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Name of the cluster name. + ClusterName string + // Id of the cluster. + ClusterId string + // gRPC address. + Address string + // HTTP address, if one exists. + HttpAddress string + // A unique failover version across all connected clusters. + InitialFailoverVersion int64 + // History service shard number. + HistoryShardCount int32 + // A flag to indicate if a connection is active. + IsConnectionEnabled bool + // A flag to indicate if replication is enabled. + IsReplicationEnabled bool +} + +func (b0 ClusterMetadata_builder) Build() *ClusterMetadata { + m0 := &ClusterMetadata{} + b, x := &b0, m0 + _, _ = b, x + x.ClusterName = b.ClusterName + x.ClusterId = b.ClusterId + x.Address = b.Address + x.HttpAddress = b.HttpAddress + x.InitialFailoverVersion = b.InitialFailoverVersion + x.HistoryShardCount = b.HistoryShardCount + x.IsConnectionEnabled = b.IsConnectionEnabled + x.IsReplicationEnabled = b.IsReplicationEnabled + return m0 +} + type GetNexusEndpointRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Server-generated unique endpoint ID. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields @@ -855,11 +1177,6 @@ func (x *GetNexusEndpointRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetNexusEndpointRequest.ProtoReflect.Descriptor instead. -func (*GetNexusEndpointRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_operatorservice_v1_request_response_proto_rawDescGZIP(), []int{15} -} - func (x *GetNexusEndpointRequest) GetId() string { if x != nil { return x.Id @@ -867,8 +1184,27 @@ func (x *GetNexusEndpointRequest) GetId() string { return "" } +func (x *GetNexusEndpointRequest) SetId(v string) { + x.Id = v +} + +type GetNexusEndpointRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Server-generated unique endpoint ID. + Id string +} + +func (b0 GetNexusEndpointRequest_builder) Build() *GetNexusEndpointRequest { + m0 := &GetNexusEndpointRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Id = b.Id + return m0 +} + type GetNexusEndpointResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Endpoint *v11.Endpoint `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -899,11 +1235,6 @@ func (x *GetNexusEndpointResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetNexusEndpointResponse.ProtoReflect.Descriptor instead. -func (*GetNexusEndpointResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_operatorservice_v1_request_response_proto_rawDescGZIP(), []int{16} -} - func (x *GetNexusEndpointResponse) GetEndpoint() *v11.Endpoint { if x != nil { return x.Endpoint @@ -911,8 +1242,37 @@ func (x *GetNexusEndpointResponse) GetEndpoint() *v11.Endpoint { return nil } +func (x *GetNexusEndpointResponse) SetEndpoint(v *v11.Endpoint) { + x.Endpoint = v +} + +func (x *GetNexusEndpointResponse) HasEndpoint() bool { + if x == nil { + return false + } + return x.Endpoint != nil +} + +func (x *GetNexusEndpointResponse) ClearEndpoint() { + x.Endpoint = nil +} + +type GetNexusEndpointResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Endpoint *v11.Endpoint +} + +func (b0 GetNexusEndpointResponse_builder) Build() *GetNexusEndpointResponse { + m0 := &GetNexusEndpointResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Endpoint = b.Endpoint + return m0 +} + type CreateNexusEndpointRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Endpoint definition to create. Spec *v11.EndpointSpec `protobuf:"bytes,1,opt,name=spec,proto3" json:"spec,omitempty"` unknownFields protoimpl.UnknownFields @@ -944,11 +1304,6 @@ func (x *CreateNexusEndpointRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CreateNexusEndpointRequest.ProtoReflect.Descriptor instead. -func (*CreateNexusEndpointRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_operatorservice_v1_request_response_proto_rawDescGZIP(), []int{17} -} - func (x *CreateNexusEndpointRequest) GetSpec() *v11.EndpointSpec { if x != nil { return x.Spec @@ -956,8 +1311,38 @@ func (x *CreateNexusEndpointRequest) GetSpec() *v11.EndpointSpec { return nil } +func (x *CreateNexusEndpointRequest) SetSpec(v *v11.EndpointSpec) { + x.Spec = v +} + +func (x *CreateNexusEndpointRequest) HasSpec() bool { + if x == nil { + return false + } + return x.Spec != nil +} + +func (x *CreateNexusEndpointRequest) ClearSpec() { + x.Spec = nil +} + +type CreateNexusEndpointRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Endpoint definition to create. + Spec *v11.EndpointSpec +} + +func (b0 CreateNexusEndpointRequest_builder) Build() *CreateNexusEndpointRequest { + m0 := &CreateNexusEndpointRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Spec = b.Spec + return m0 +} + type CreateNexusEndpointResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Data post acceptance. Can be used to issue additional updates to this record. Endpoint *v11.Endpoint `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` unknownFields protoimpl.UnknownFields @@ -989,11 +1374,6 @@ func (x *CreateNexusEndpointResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CreateNexusEndpointResponse.ProtoReflect.Descriptor instead. -func (*CreateNexusEndpointResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_operatorservice_v1_request_response_proto_rawDescGZIP(), []int{18} -} - func (x *CreateNexusEndpointResponse) GetEndpoint() *v11.Endpoint { if x != nil { return x.Endpoint @@ -1001,8 +1381,38 @@ func (x *CreateNexusEndpointResponse) GetEndpoint() *v11.Endpoint { return nil } +func (x *CreateNexusEndpointResponse) SetEndpoint(v *v11.Endpoint) { + x.Endpoint = v +} + +func (x *CreateNexusEndpointResponse) HasEndpoint() bool { + if x == nil { + return false + } + return x.Endpoint != nil +} + +func (x *CreateNexusEndpointResponse) ClearEndpoint() { + x.Endpoint = nil +} + +type CreateNexusEndpointResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Data post acceptance. Can be used to issue additional updates to this record. + Endpoint *v11.Endpoint +} + +func (b0 CreateNexusEndpointResponse_builder) Build() *CreateNexusEndpointResponse { + m0 := &CreateNexusEndpointResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Endpoint = b.Endpoint + return m0 +} + type UpdateNexusEndpointRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Server-generated unique endpoint ID. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Data version for this endpoint. Must match current version. @@ -1037,11 +1447,6 @@ func (x *UpdateNexusEndpointRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UpdateNexusEndpointRequest.ProtoReflect.Descriptor instead. -func (*UpdateNexusEndpointRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_operatorservice_v1_request_response_proto_rawDescGZIP(), []int{19} -} - func (x *UpdateNexusEndpointRequest) GetId() string { if x != nil { return x.Id @@ -1063,8 +1468,51 @@ func (x *UpdateNexusEndpointRequest) GetSpec() *v11.EndpointSpec { return nil } +func (x *UpdateNexusEndpointRequest) SetId(v string) { + x.Id = v +} + +func (x *UpdateNexusEndpointRequest) SetVersion(v int64) { + x.Version = v +} + +func (x *UpdateNexusEndpointRequest) SetSpec(v *v11.EndpointSpec) { + x.Spec = v +} + +func (x *UpdateNexusEndpointRequest) HasSpec() bool { + if x == nil { + return false + } + return x.Spec != nil +} + +func (x *UpdateNexusEndpointRequest) ClearSpec() { + x.Spec = nil +} + +type UpdateNexusEndpointRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Server-generated unique endpoint ID. + Id string + // Data version for this endpoint. Must match current version. + Version int64 + Spec *v11.EndpointSpec +} + +func (b0 UpdateNexusEndpointRequest_builder) Build() *UpdateNexusEndpointRequest { + m0 := &UpdateNexusEndpointRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Id = b.Id + x.Version = b.Version + x.Spec = b.Spec + return m0 +} + type UpdateNexusEndpointResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Data post acceptance. Can be used to issue additional updates to this record. Endpoint *v11.Endpoint `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` unknownFields protoimpl.UnknownFields @@ -1096,11 +1544,6 @@ func (x *UpdateNexusEndpointResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UpdateNexusEndpointResponse.ProtoReflect.Descriptor instead. -func (*UpdateNexusEndpointResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_operatorservice_v1_request_response_proto_rawDescGZIP(), []int{20} -} - func (x *UpdateNexusEndpointResponse) GetEndpoint() *v11.Endpoint { if x != nil { return x.Endpoint @@ -1108,8 +1551,38 @@ func (x *UpdateNexusEndpointResponse) GetEndpoint() *v11.Endpoint { return nil } +func (x *UpdateNexusEndpointResponse) SetEndpoint(v *v11.Endpoint) { + x.Endpoint = v +} + +func (x *UpdateNexusEndpointResponse) HasEndpoint() bool { + if x == nil { + return false + } + return x.Endpoint != nil +} + +func (x *UpdateNexusEndpointResponse) ClearEndpoint() { + x.Endpoint = nil +} + +type UpdateNexusEndpointResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Data post acceptance. Can be used to issue additional updates to this record. + Endpoint *v11.Endpoint +} + +func (b0 UpdateNexusEndpointResponse_builder) Build() *UpdateNexusEndpointResponse { + m0 := &UpdateNexusEndpointResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Endpoint = b.Endpoint + return m0 +} + type DeleteNexusEndpointRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Server-generated unique endpoint ID. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Data version for this endpoint. Must match current version. @@ -1143,11 +1616,6 @@ func (x *DeleteNexusEndpointRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeleteNexusEndpointRequest.ProtoReflect.Descriptor instead. -func (*DeleteNexusEndpointRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_operatorservice_v1_request_response_proto_rawDescGZIP(), []int{21} -} - func (x *DeleteNexusEndpointRequest) GetId() string { if x != nil { return x.Id @@ -1162,8 +1630,34 @@ func (x *DeleteNexusEndpointRequest) GetVersion() int64 { return 0 } +func (x *DeleteNexusEndpointRequest) SetId(v string) { + x.Id = v +} + +func (x *DeleteNexusEndpointRequest) SetVersion(v int64) { + x.Version = v +} + +type DeleteNexusEndpointRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Server-generated unique endpoint ID. + Id string + // Data version for this endpoint. Must match current version. + Version int64 +} + +func (b0 DeleteNexusEndpointRequest_builder) Build() *DeleteNexusEndpointRequest { + m0 := &DeleteNexusEndpointRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Id = b.Id + x.Version = b.Version + return m0 +} + type DeleteNexusEndpointResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -1193,13 +1687,20 @@ func (x *DeleteNexusEndpointResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeleteNexusEndpointResponse.ProtoReflect.Descriptor instead. -func (*DeleteNexusEndpointResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_operatorservice_v1_request_response_proto_rawDescGZIP(), []int{22} +type DeleteNexusEndpointResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 DeleteNexusEndpointResponse_builder) Build() *DeleteNexusEndpointResponse { + m0 := &DeleteNexusEndpointResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type ListNexusEndpointsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // To get the next page, pass in `ListNexusEndpointsResponse.next_page_token` from the previous page's // response, the token will be empty if there's no other page. @@ -1239,11 +1740,6 @@ func (x *ListNexusEndpointsRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListNexusEndpointsRequest.ProtoReflect.Descriptor instead. -func (*ListNexusEndpointsRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_operatorservice_v1_request_response_proto_rawDescGZIP(), []int{23} -} - func (x *ListNexusEndpointsRequest) GetPageSize() int32 { if x != nil { return x.PageSize @@ -1265,8 +1761,48 @@ func (x *ListNexusEndpointsRequest) GetName() string { return "" } +func (x *ListNexusEndpointsRequest) SetPageSize(v int32) { + x.PageSize = v +} + +func (x *ListNexusEndpointsRequest) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.NextPageToken = v +} + +func (x *ListNexusEndpointsRequest) SetName(v string) { + x.Name = v +} + +type ListNexusEndpointsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + PageSize int32 + // To get the next page, pass in `ListNexusEndpointsResponse.next_page_token` from the previous page's + // response, the token will be empty if there's no other page. + // Note: the last page may be empty if the total number of endpoints registered is a multiple of the page size. + NextPageToken []byte + // Name of the incoming endpoint to filter on - optional. Specifying this will result in zero or one results. + // (-- api-linter: core::203::field-behavior-required=disabled + // + // aip.dev/not-precedent: Not following linter rules. --) + Name string +} + +func (b0 ListNexusEndpointsRequest_builder) Build() *ListNexusEndpointsRequest { + m0 := &ListNexusEndpointsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.PageSize = b.PageSize + x.NextPageToken = b.NextPageToken + x.Name = b.Name + return m0 +} + type ListNexusEndpointsResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Token for getting the next page. NextPageToken []byte `protobuf:"bytes,1,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` Endpoints []*v11.Endpoint `protobuf:"bytes,2,rep,name=endpoints,proto3" json:"endpoints,omitempty"` @@ -1299,11 +1835,6 @@ func (x *ListNexusEndpointsResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListNexusEndpointsResponse.ProtoReflect.Descriptor instead. -func (*ListNexusEndpointsResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_operatorservice_v1_request_response_proto_rawDescGZIP(), []int{24} -} - func (x *ListNexusEndpointsResponse) GetNextPageToken() []byte { if x != nil { return x.NextPageToken @@ -1318,6 +1849,34 @@ func (x *ListNexusEndpointsResponse) GetEndpoints() []*v11.Endpoint { return nil } +func (x *ListNexusEndpointsResponse) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.NextPageToken = v +} + +func (x *ListNexusEndpointsResponse) SetEndpoints(v []*v11.Endpoint) { + x.Endpoints = v +} + +type ListNexusEndpointsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Token for getting the next page. + NextPageToken []byte + Endpoints []*v11.Endpoint +} + +func (b0 ListNexusEndpointsResponse_builder) Build() *ListNexusEndpointsResponse { + m0 := &ListNexusEndpointsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.NextPageToken = b.NextPageToken + x.Endpoints = b.Endpoints + return m0 +} + var File_temporal_api_operatorservice_v1_request_response_proto protoreflect.FileDescriptor const file_temporal_api_operatorservice_v1_request_response_proto_rawDesc = "" + @@ -1407,18 +1966,6 @@ const file_temporal_api_operatorservice_v1_request_response_proto_rawDesc = "" + "\tendpoints\x18\x02 \x03(\v2\x1f.temporal.api.nexus.v1.EndpointR\tendpointsB\xbe\x01\n" + "\"io.temporal.api.operatorservice.v1B\x14RequestResponseProtoP\x01Z5go.temporal.io/api/operatorservice/v1;operatorservice\xaa\x02!Temporalio.Api.OperatorService.V1\xea\x02$Temporalio::Api::OperatorService::V1b\x06proto3" -var ( - file_temporal_api_operatorservice_v1_request_response_proto_rawDescOnce sync.Once - file_temporal_api_operatorservice_v1_request_response_proto_rawDescData []byte -) - -func file_temporal_api_operatorservice_v1_request_response_proto_rawDescGZIP() []byte { - file_temporal_api_operatorservice_v1_request_response_proto_rawDescOnce.Do(func() { - file_temporal_api_operatorservice_v1_request_response_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_api_operatorservice_v1_request_response_proto_rawDesc), len(file_temporal_api_operatorservice_v1_request_response_proto_rawDesc))) - }) - return file_temporal_api_operatorservice_v1_request_response_proto_rawDescData -} - var file_temporal_api_operatorservice_v1_request_response_proto_msgTypes = make([]protoimpl.MessageInfo, 29) var file_temporal_api_operatorservice_v1_request_response_proto_goTypes = []any{ (*AddSearchAttributesRequest)(nil), // 0: temporal.api.operatorservice.v1.AddSearchAttributesRequest diff --git a/operatorservice/v1/request_response_protoopaque.pb.go b/operatorservice/v1/request_response_protoopaque.pb.go new file mode 100644 index 00000000..0cea437e --- /dev/null +++ b/operatorservice/v1/request_response_protoopaque.pb.go @@ -0,0 +1,2013 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// plugins: +// protoc-gen-go +// protoc +// source: temporal/api/operatorservice/v1/request_response.proto + +//go:build protoopaque + +package operatorservice + +import ( + reflect "reflect" + unsafe "unsafe" + + v1 "go.temporal.io/api/enums/v1" + v11 "go.temporal.io/api/nexus/v1" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + durationpb "google.golang.org/protobuf/types/known/durationpb" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type AddSearchAttributesRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_SearchAttributes map[string]v1.IndexedValueType `protobuf:"bytes,1,rep,name=search_attributes,json=searchAttributes,proto3" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value,enum=temporal.api.enums.v1.IndexedValueType"` + xxx_hidden_Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *AddSearchAttributesRequest) Reset() { + *x = AddSearchAttributesRequest{} + mi := &file_temporal_api_operatorservice_v1_request_response_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *AddSearchAttributesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AddSearchAttributesRequest) ProtoMessage() {} + +func (x *AddSearchAttributesRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_operatorservice_v1_request_response_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *AddSearchAttributesRequest) GetSearchAttributes() map[string]v1.IndexedValueType { + if x != nil { + return x.xxx_hidden_SearchAttributes + } + return nil +} + +func (x *AddSearchAttributesRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *AddSearchAttributesRequest) SetSearchAttributes(v map[string]v1.IndexedValueType) { + x.xxx_hidden_SearchAttributes = v +} + +func (x *AddSearchAttributesRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +type AddSearchAttributesRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Mapping between search attribute name and its IndexedValueType. + SearchAttributes map[string]v1.IndexedValueType + Namespace string +} + +func (b0 AddSearchAttributesRequest_builder) Build() *AddSearchAttributesRequest { + m0 := &AddSearchAttributesRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_SearchAttributes = b.SearchAttributes + x.xxx_hidden_Namespace = b.Namespace + return m0 +} + +type AddSearchAttributesResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *AddSearchAttributesResponse) Reset() { + *x = AddSearchAttributesResponse{} + mi := &file_temporal_api_operatorservice_v1_request_response_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *AddSearchAttributesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AddSearchAttributesResponse) ProtoMessage() {} + +func (x *AddSearchAttributesResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_operatorservice_v1_request_response_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type AddSearchAttributesResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 AddSearchAttributesResponse_builder) Build() *AddSearchAttributesResponse { + m0 := &AddSearchAttributesResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type RemoveSearchAttributesRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_SearchAttributes []string `protobuf:"bytes,1,rep,name=search_attributes,json=searchAttributes,proto3"` + xxx_hidden_Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RemoveSearchAttributesRequest) Reset() { + *x = RemoveSearchAttributesRequest{} + mi := &file_temporal_api_operatorservice_v1_request_response_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RemoveSearchAttributesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RemoveSearchAttributesRequest) ProtoMessage() {} + +func (x *RemoveSearchAttributesRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_operatorservice_v1_request_response_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *RemoveSearchAttributesRequest) GetSearchAttributes() []string { + if x != nil { + return x.xxx_hidden_SearchAttributes + } + return nil +} + +func (x *RemoveSearchAttributesRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *RemoveSearchAttributesRequest) SetSearchAttributes(v []string) { + x.xxx_hidden_SearchAttributes = v +} + +func (x *RemoveSearchAttributesRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +type RemoveSearchAttributesRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Search attribute names to delete. + SearchAttributes []string + Namespace string +} + +func (b0 RemoveSearchAttributesRequest_builder) Build() *RemoveSearchAttributesRequest { + m0 := &RemoveSearchAttributesRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_SearchAttributes = b.SearchAttributes + x.xxx_hidden_Namespace = b.Namespace + return m0 +} + +type RemoveSearchAttributesResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RemoveSearchAttributesResponse) Reset() { + *x = RemoveSearchAttributesResponse{} + mi := &file_temporal_api_operatorservice_v1_request_response_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RemoveSearchAttributesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RemoveSearchAttributesResponse) ProtoMessage() {} + +func (x *RemoveSearchAttributesResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_operatorservice_v1_request_response_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type RemoveSearchAttributesResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 RemoveSearchAttributesResponse_builder) Build() *RemoveSearchAttributesResponse { + m0 := &RemoveSearchAttributesResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type ListSearchAttributesRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListSearchAttributesRequest) Reset() { + *x = ListSearchAttributesRequest{} + mi := &file_temporal_api_operatorservice_v1_request_response_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListSearchAttributesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListSearchAttributesRequest) ProtoMessage() {} + +func (x *ListSearchAttributesRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_operatorservice_v1_request_response_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListSearchAttributesRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *ListSearchAttributesRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +type ListSearchAttributesRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string +} + +func (b0 ListSearchAttributesRequest_builder) Build() *ListSearchAttributesRequest { + m0 := &ListSearchAttributesRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + return m0 +} + +type ListSearchAttributesResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_CustomAttributes map[string]v1.IndexedValueType `protobuf:"bytes,1,rep,name=custom_attributes,json=customAttributes,proto3" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value,enum=temporal.api.enums.v1.IndexedValueType"` + xxx_hidden_SystemAttributes map[string]v1.IndexedValueType `protobuf:"bytes,2,rep,name=system_attributes,json=systemAttributes,proto3" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value,enum=temporal.api.enums.v1.IndexedValueType"` + xxx_hidden_StorageSchema map[string]string `protobuf:"bytes,3,rep,name=storage_schema,json=storageSchema,proto3" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListSearchAttributesResponse) Reset() { + *x = ListSearchAttributesResponse{} + mi := &file_temporal_api_operatorservice_v1_request_response_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListSearchAttributesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListSearchAttributesResponse) ProtoMessage() {} + +func (x *ListSearchAttributesResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_operatorservice_v1_request_response_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListSearchAttributesResponse) GetCustomAttributes() map[string]v1.IndexedValueType { + if x != nil { + return x.xxx_hidden_CustomAttributes + } + return nil +} + +func (x *ListSearchAttributesResponse) GetSystemAttributes() map[string]v1.IndexedValueType { + if x != nil { + return x.xxx_hidden_SystemAttributes + } + return nil +} + +func (x *ListSearchAttributesResponse) GetStorageSchema() map[string]string { + if x != nil { + return x.xxx_hidden_StorageSchema + } + return nil +} + +func (x *ListSearchAttributesResponse) SetCustomAttributes(v map[string]v1.IndexedValueType) { + x.xxx_hidden_CustomAttributes = v +} + +func (x *ListSearchAttributesResponse) SetSystemAttributes(v map[string]v1.IndexedValueType) { + x.xxx_hidden_SystemAttributes = v +} + +func (x *ListSearchAttributesResponse) SetStorageSchema(v map[string]string) { + x.xxx_hidden_StorageSchema = v +} + +type ListSearchAttributesResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Mapping between custom (user-registered) search attribute name to its IndexedValueType. + CustomAttributes map[string]v1.IndexedValueType + // Mapping between system (predefined) search attribute name to its IndexedValueType. + SystemAttributes map[string]v1.IndexedValueType + // Mapping from the attribute name to the visibility storage native type. + StorageSchema map[string]string +} + +func (b0 ListSearchAttributesResponse_builder) Build() *ListSearchAttributesResponse { + m0 := &ListSearchAttributesResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_CustomAttributes = b.CustomAttributes + x.xxx_hidden_SystemAttributes = b.SystemAttributes + x.xxx_hidden_StorageSchema = b.StorageSchema + return m0 +} + +type DeleteNamespaceRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_NamespaceId string `protobuf:"bytes,2,opt,name=namespace_id,json=namespaceId,proto3"` + xxx_hidden_NamespaceDeleteDelay *durationpb.Duration `protobuf:"bytes,3,opt,name=namespace_delete_delay,json=namespaceDeleteDelay,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteNamespaceRequest) Reset() { + *x = DeleteNamespaceRequest{} + mi := &file_temporal_api_operatorservice_v1_request_response_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteNamespaceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteNamespaceRequest) ProtoMessage() {} + +func (x *DeleteNamespaceRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_operatorservice_v1_request_response_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DeleteNamespaceRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *DeleteNamespaceRequest) GetNamespaceId() string { + if x != nil { + return x.xxx_hidden_NamespaceId + } + return "" +} + +func (x *DeleteNamespaceRequest) GetNamespaceDeleteDelay() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_NamespaceDeleteDelay + } + return nil +} + +func (x *DeleteNamespaceRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *DeleteNamespaceRequest) SetNamespaceId(v string) { + x.xxx_hidden_NamespaceId = v +} + +func (x *DeleteNamespaceRequest) SetNamespaceDeleteDelay(v *durationpb.Duration) { + x.xxx_hidden_NamespaceDeleteDelay = v +} + +func (x *DeleteNamespaceRequest) HasNamespaceDeleteDelay() bool { + if x == nil { + return false + } + return x.xxx_hidden_NamespaceDeleteDelay != nil +} + +func (x *DeleteNamespaceRequest) ClearNamespaceDeleteDelay() { + x.xxx_hidden_NamespaceDeleteDelay = nil +} + +type DeleteNamespaceRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Only one of namespace or namespace_id must be specified to identify namespace. + Namespace string + NamespaceId string + // If provided, the deletion of namespace info will be delayed for the given duration (0 means no delay). + // If not provided, the default delay configured in the cluster will be used. + NamespaceDeleteDelay *durationpb.Duration +} + +func (b0 DeleteNamespaceRequest_builder) Build() *DeleteNamespaceRequest { + m0 := &DeleteNamespaceRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_NamespaceId = b.NamespaceId + x.xxx_hidden_NamespaceDeleteDelay = b.NamespaceDeleteDelay + return m0 +} + +type DeleteNamespaceResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_DeletedNamespace string `protobuf:"bytes,1,opt,name=deleted_namespace,json=deletedNamespace,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteNamespaceResponse) Reset() { + *x = DeleteNamespaceResponse{} + mi := &file_temporal_api_operatorservice_v1_request_response_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteNamespaceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteNamespaceResponse) ProtoMessage() {} + +func (x *DeleteNamespaceResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_operatorservice_v1_request_response_proto_msgTypes[7] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DeleteNamespaceResponse) GetDeletedNamespace() string { + if x != nil { + return x.xxx_hidden_DeletedNamespace + } + return "" +} + +func (x *DeleteNamespaceResponse) SetDeletedNamespace(v string) { + x.xxx_hidden_DeletedNamespace = v +} + +type DeleteNamespaceResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Temporary namespace name that is used during reclaim resources step. + DeletedNamespace string +} + +func (b0 DeleteNamespaceResponse_builder) Build() *DeleteNamespaceResponse { + m0 := &DeleteNamespaceResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_DeletedNamespace = b.DeletedNamespace + return m0 +} + +type AddOrUpdateRemoteClusterRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_FrontendAddress string `protobuf:"bytes,1,opt,name=frontend_address,json=frontendAddress,proto3"` + xxx_hidden_EnableRemoteClusterConnection bool `protobuf:"varint,2,opt,name=enable_remote_cluster_connection,json=enableRemoteClusterConnection,proto3"` + xxx_hidden_FrontendHttpAddress string `protobuf:"bytes,3,opt,name=frontend_http_address,json=frontendHttpAddress,proto3"` + xxx_hidden_EnableReplication bool `protobuf:"varint,4,opt,name=enable_replication,json=enableReplication,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *AddOrUpdateRemoteClusterRequest) Reset() { + *x = AddOrUpdateRemoteClusterRequest{} + mi := &file_temporal_api_operatorservice_v1_request_response_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *AddOrUpdateRemoteClusterRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AddOrUpdateRemoteClusterRequest) ProtoMessage() {} + +func (x *AddOrUpdateRemoteClusterRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_operatorservice_v1_request_response_proto_msgTypes[8] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *AddOrUpdateRemoteClusterRequest) GetFrontendAddress() string { + if x != nil { + return x.xxx_hidden_FrontendAddress + } + return "" +} + +func (x *AddOrUpdateRemoteClusterRequest) GetEnableRemoteClusterConnection() bool { + if x != nil { + return x.xxx_hidden_EnableRemoteClusterConnection + } + return false +} + +func (x *AddOrUpdateRemoteClusterRequest) GetFrontendHttpAddress() string { + if x != nil { + return x.xxx_hidden_FrontendHttpAddress + } + return "" +} + +func (x *AddOrUpdateRemoteClusterRequest) GetEnableReplication() bool { + if x != nil { + return x.xxx_hidden_EnableReplication + } + return false +} + +func (x *AddOrUpdateRemoteClusterRequest) SetFrontendAddress(v string) { + x.xxx_hidden_FrontendAddress = v +} + +func (x *AddOrUpdateRemoteClusterRequest) SetEnableRemoteClusterConnection(v bool) { + x.xxx_hidden_EnableRemoteClusterConnection = v +} + +func (x *AddOrUpdateRemoteClusterRequest) SetFrontendHttpAddress(v string) { + x.xxx_hidden_FrontendHttpAddress = v +} + +func (x *AddOrUpdateRemoteClusterRequest) SetEnableReplication(v bool) { + x.xxx_hidden_EnableReplication = v +} + +type AddOrUpdateRemoteClusterRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Frontend Address is a cross cluster accessible address for gRPC traffic. This field is required. + FrontendAddress string + // Flag to enable / disable the cross cluster connection. + EnableRemoteClusterConnection bool + // Frontend HTTP Address is a cross cluster accessible address for HTTP traffic. This field is optional. If not provided + // + // on update, the existing HTTP address will be removed. + FrontendHttpAddress string + // Controls whether replication streams are active. + EnableReplication bool +} + +func (b0 AddOrUpdateRemoteClusterRequest_builder) Build() *AddOrUpdateRemoteClusterRequest { + m0 := &AddOrUpdateRemoteClusterRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_FrontendAddress = b.FrontendAddress + x.xxx_hidden_EnableRemoteClusterConnection = b.EnableRemoteClusterConnection + x.xxx_hidden_FrontendHttpAddress = b.FrontendHttpAddress + x.xxx_hidden_EnableReplication = b.EnableReplication + return m0 +} + +type AddOrUpdateRemoteClusterResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *AddOrUpdateRemoteClusterResponse) Reset() { + *x = AddOrUpdateRemoteClusterResponse{} + mi := &file_temporal_api_operatorservice_v1_request_response_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *AddOrUpdateRemoteClusterResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AddOrUpdateRemoteClusterResponse) ProtoMessage() {} + +func (x *AddOrUpdateRemoteClusterResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_operatorservice_v1_request_response_proto_msgTypes[9] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type AddOrUpdateRemoteClusterResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 AddOrUpdateRemoteClusterResponse_builder) Build() *AddOrUpdateRemoteClusterResponse { + m0 := &AddOrUpdateRemoteClusterResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type RemoveRemoteClusterRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ClusterName string `protobuf:"bytes,1,opt,name=cluster_name,json=clusterName,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RemoveRemoteClusterRequest) Reset() { + *x = RemoveRemoteClusterRequest{} + mi := &file_temporal_api_operatorservice_v1_request_response_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RemoveRemoteClusterRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RemoveRemoteClusterRequest) ProtoMessage() {} + +func (x *RemoveRemoteClusterRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_operatorservice_v1_request_response_proto_msgTypes[10] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *RemoveRemoteClusterRequest) GetClusterName() string { + if x != nil { + return x.xxx_hidden_ClusterName + } + return "" +} + +func (x *RemoveRemoteClusterRequest) SetClusterName(v string) { + x.xxx_hidden_ClusterName = v +} + +type RemoveRemoteClusterRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Remote cluster name to be removed. + ClusterName string +} + +func (b0 RemoveRemoteClusterRequest_builder) Build() *RemoveRemoteClusterRequest { + m0 := &RemoveRemoteClusterRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ClusterName = b.ClusterName + return m0 +} + +type RemoveRemoteClusterResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RemoveRemoteClusterResponse) Reset() { + *x = RemoveRemoteClusterResponse{} + mi := &file_temporal_api_operatorservice_v1_request_response_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RemoveRemoteClusterResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RemoveRemoteClusterResponse) ProtoMessage() {} + +func (x *RemoveRemoteClusterResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_operatorservice_v1_request_response_proto_msgTypes[11] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type RemoveRemoteClusterResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 RemoveRemoteClusterResponse_builder) Build() *RemoveRemoteClusterResponse { + m0 := &RemoveRemoteClusterResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type ListClustersRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3"` + xxx_hidden_NextPageToken []byte `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListClustersRequest) Reset() { + *x = ListClustersRequest{} + mi := &file_temporal_api_operatorservice_v1_request_response_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListClustersRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListClustersRequest) ProtoMessage() {} + +func (x *ListClustersRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_operatorservice_v1_request_response_proto_msgTypes[12] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListClustersRequest) GetPageSize() int32 { + if x != nil { + return x.xxx_hidden_PageSize + } + return 0 +} + +func (x *ListClustersRequest) GetNextPageToken() []byte { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return nil +} + +func (x *ListClustersRequest) SetPageSize(v int32) { + x.xxx_hidden_PageSize = v +} + +func (x *ListClustersRequest) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_NextPageToken = v +} + +type ListClustersRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + PageSize int32 + NextPageToken []byte +} + +func (b0 ListClustersRequest_builder) Build() *ListClustersRequest { + m0 := &ListClustersRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_PageSize = b.PageSize + x.xxx_hidden_NextPageToken = b.NextPageToken + return m0 +} + +type ListClustersResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Clusters *[]*ClusterMetadata `protobuf:"bytes,1,rep,name=clusters,proto3"` + xxx_hidden_NextPageToken []byte `protobuf:"bytes,4,opt,name=next_page_token,json=nextPageToken,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListClustersResponse) Reset() { + *x = ListClustersResponse{} + mi := &file_temporal_api_operatorservice_v1_request_response_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListClustersResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListClustersResponse) ProtoMessage() {} + +func (x *ListClustersResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_operatorservice_v1_request_response_proto_msgTypes[13] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListClustersResponse) GetClusters() []*ClusterMetadata { + if x != nil { + if x.xxx_hidden_Clusters != nil { + return *x.xxx_hidden_Clusters + } + } + return nil +} + +func (x *ListClustersResponse) GetNextPageToken() []byte { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return nil +} + +func (x *ListClustersResponse) SetClusters(v []*ClusterMetadata) { + x.xxx_hidden_Clusters = &v +} + +func (x *ListClustersResponse) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_NextPageToken = v +} + +type ListClustersResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // List of all cluster information + Clusters []*ClusterMetadata + NextPageToken []byte +} + +func (b0 ListClustersResponse_builder) Build() *ListClustersResponse { + m0 := &ListClustersResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Clusters = &b.Clusters + x.xxx_hidden_NextPageToken = b.NextPageToken + return m0 +} + +type ClusterMetadata struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ClusterName string `protobuf:"bytes,1,opt,name=cluster_name,json=clusterName,proto3"` + xxx_hidden_ClusterId string `protobuf:"bytes,2,opt,name=cluster_id,json=clusterId,proto3"` + xxx_hidden_Address string `protobuf:"bytes,3,opt,name=address,proto3"` + xxx_hidden_HttpAddress string `protobuf:"bytes,7,opt,name=http_address,json=httpAddress,proto3"` + xxx_hidden_InitialFailoverVersion int64 `protobuf:"varint,4,opt,name=initial_failover_version,json=initialFailoverVersion,proto3"` + xxx_hidden_HistoryShardCount int32 `protobuf:"varint,5,opt,name=history_shard_count,json=historyShardCount,proto3"` + xxx_hidden_IsConnectionEnabled bool `protobuf:"varint,6,opt,name=is_connection_enabled,json=isConnectionEnabled,proto3"` + xxx_hidden_IsReplicationEnabled bool `protobuf:"varint,8,opt,name=is_replication_enabled,json=isReplicationEnabled,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ClusterMetadata) Reset() { + *x = ClusterMetadata{} + mi := &file_temporal_api_operatorservice_v1_request_response_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ClusterMetadata) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ClusterMetadata) ProtoMessage() {} + +func (x *ClusterMetadata) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_operatorservice_v1_request_response_proto_msgTypes[14] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ClusterMetadata) GetClusterName() string { + if x != nil { + return x.xxx_hidden_ClusterName + } + return "" +} + +func (x *ClusterMetadata) GetClusterId() string { + if x != nil { + return x.xxx_hidden_ClusterId + } + return "" +} + +func (x *ClusterMetadata) GetAddress() string { + if x != nil { + return x.xxx_hidden_Address + } + return "" +} + +func (x *ClusterMetadata) GetHttpAddress() string { + if x != nil { + return x.xxx_hidden_HttpAddress + } + return "" +} + +func (x *ClusterMetadata) GetInitialFailoverVersion() int64 { + if x != nil { + return x.xxx_hidden_InitialFailoverVersion + } + return 0 +} + +func (x *ClusterMetadata) GetHistoryShardCount() int32 { + if x != nil { + return x.xxx_hidden_HistoryShardCount + } + return 0 +} + +func (x *ClusterMetadata) GetIsConnectionEnabled() bool { + if x != nil { + return x.xxx_hidden_IsConnectionEnabled + } + return false +} + +func (x *ClusterMetadata) GetIsReplicationEnabled() bool { + if x != nil { + return x.xxx_hidden_IsReplicationEnabled + } + return false +} + +func (x *ClusterMetadata) SetClusterName(v string) { + x.xxx_hidden_ClusterName = v +} + +func (x *ClusterMetadata) SetClusterId(v string) { + x.xxx_hidden_ClusterId = v +} + +func (x *ClusterMetadata) SetAddress(v string) { + x.xxx_hidden_Address = v +} + +func (x *ClusterMetadata) SetHttpAddress(v string) { + x.xxx_hidden_HttpAddress = v +} + +func (x *ClusterMetadata) SetInitialFailoverVersion(v int64) { + x.xxx_hidden_InitialFailoverVersion = v +} + +func (x *ClusterMetadata) SetHistoryShardCount(v int32) { + x.xxx_hidden_HistoryShardCount = v +} + +func (x *ClusterMetadata) SetIsConnectionEnabled(v bool) { + x.xxx_hidden_IsConnectionEnabled = v +} + +func (x *ClusterMetadata) SetIsReplicationEnabled(v bool) { + x.xxx_hidden_IsReplicationEnabled = v +} + +type ClusterMetadata_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Name of the cluster name. + ClusterName string + // Id of the cluster. + ClusterId string + // gRPC address. + Address string + // HTTP address, if one exists. + HttpAddress string + // A unique failover version across all connected clusters. + InitialFailoverVersion int64 + // History service shard number. + HistoryShardCount int32 + // A flag to indicate if a connection is active. + IsConnectionEnabled bool + // A flag to indicate if replication is enabled. + IsReplicationEnabled bool +} + +func (b0 ClusterMetadata_builder) Build() *ClusterMetadata { + m0 := &ClusterMetadata{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ClusterName = b.ClusterName + x.xxx_hidden_ClusterId = b.ClusterId + x.xxx_hidden_Address = b.Address + x.xxx_hidden_HttpAddress = b.HttpAddress + x.xxx_hidden_InitialFailoverVersion = b.InitialFailoverVersion + x.xxx_hidden_HistoryShardCount = b.HistoryShardCount + x.xxx_hidden_IsConnectionEnabled = b.IsConnectionEnabled + x.xxx_hidden_IsReplicationEnabled = b.IsReplicationEnabled + return m0 +} + +type GetNexusEndpointRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Id string `protobuf:"bytes,1,opt,name=id,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetNexusEndpointRequest) Reset() { + *x = GetNexusEndpointRequest{} + mi := &file_temporal_api_operatorservice_v1_request_response_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetNexusEndpointRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetNexusEndpointRequest) ProtoMessage() {} + +func (x *GetNexusEndpointRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_operatorservice_v1_request_response_proto_msgTypes[15] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetNexusEndpointRequest) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *GetNexusEndpointRequest) SetId(v string) { + x.xxx_hidden_Id = v +} + +type GetNexusEndpointRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Server-generated unique endpoint ID. + Id string +} + +func (b0 GetNexusEndpointRequest_builder) Build() *GetNexusEndpointRequest { + m0 := &GetNexusEndpointRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Id = b.Id + return m0 +} + +type GetNexusEndpointResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Endpoint *v11.Endpoint `protobuf:"bytes,1,opt,name=endpoint,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetNexusEndpointResponse) Reset() { + *x = GetNexusEndpointResponse{} + mi := &file_temporal_api_operatorservice_v1_request_response_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetNexusEndpointResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetNexusEndpointResponse) ProtoMessage() {} + +func (x *GetNexusEndpointResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_operatorservice_v1_request_response_proto_msgTypes[16] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetNexusEndpointResponse) GetEndpoint() *v11.Endpoint { + if x != nil { + return x.xxx_hidden_Endpoint + } + return nil +} + +func (x *GetNexusEndpointResponse) SetEndpoint(v *v11.Endpoint) { + x.xxx_hidden_Endpoint = v +} + +func (x *GetNexusEndpointResponse) HasEndpoint() bool { + if x == nil { + return false + } + return x.xxx_hidden_Endpoint != nil +} + +func (x *GetNexusEndpointResponse) ClearEndpoint() { + x.xxx_hidden_Endpoint = nil +} + +type GetNexusEndpointResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Endpoint *v11.Endpoint +} + +func (b0 GetNexusEndpointResponse_builder) Build() *GetNexusEndpointResponse { + m0 := &GetNexusEndpointResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Endpoint = b.Endpoint + return m0 +} + +type CreateNexusEndpointRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Spec *v11.EndpointSpec `protobuf:"bytes,1,opt,name=spec,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateNexusEndpointRequest) Reset() { + *x = CreateNexusEndpointRequest{} + mi := &file_temporal_api_operatorservice_v1_request_response_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateNexusEndpointRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateNexusEndpointRequest) ProtoMessage() {} + +func (x *CreateNexusEndpointRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_operatorservice_v1_request_response_proto_msgTypes[17] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *CreateNexusEndpointRequest) GetSpec() *v11.EndpointSpec { + if x != nil { + return x.xxx_hidden_Spec + } + return nil +} + +func (x *CreateNexusEndpointRequest) SetSpec(v *v11.EndpointSpec) { + x.xxx_hidden_Spec = v +} + +func (x *CreateNexusEndpointRequest) HasSpec() bool { + if x == nil { + return false + } + return x.xxx_hidden_Spec != nil +} + +func (x *CreateNexusEndpointRequest) ClearSpec() { + x.xxx_hidden_Spec = nil +} + +type CreateNexusEndpointRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Endpoint definition to create. + Spec *v11.EndpointSpec +} + +func (b0 CreateNexusEndpointRequest_builder) Build() *CreateNexusEndpointRequest { + m0 := &CreateNexusEndpointRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Spec = b.Spec + return m0 +} + +type CreateNexusEndpointResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Endpoint *v11.Endpoint `protobuf:"bytes,1,opt,name=endpoint,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateNexusEndpointResponse) Reset() { + *x = CreateNexusEndpointResponse{} + mi := &file_temporal_api_operatorservice_v1_request_response_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateNexusEndpointResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateNexusEndpointResponse) ProtoMessage() {} + +func (x *CreateNexusEndpointResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_operatorservice_v1_request_response_proto_msgTypes[18] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *CreateNexusEndpointResponse) GetEndpoint() *v11.Endpoint { + if x != nil { + return x.xxx_hidden_Endpoint + } + return nil +} + +func (x *CreateNexusEndpointResponse) SetEndpoint(v *v11.Endpoint) { + x.xxx_hidden_Endpoint = v +} + +func (x *CreateNexusEndpointResponse) HasEndpoint() bool { + if x == nil { + return false + } + return x.xxx_hidden_Endpoint != nil +} + +func (x *CreateNexusEndpointResponse) ClearEndpoint() { + x.xxx_hidden_Endpoint = nil +} + +type CreateNexusEndpointResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Data post acceptance. Can be used to issue additional updates to this record. + Endpoint *v11.Endpoint +} + +func (b0 CreateNexusEndpointResponse_builder) Build() *CreateNexusEndpointResponse { + m0 := &CreateNexusEndpointResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Endpoint = b.Endpoint + return m0 +} + +type UpdateNexusEndpointRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Id string `protobuf:"bytes,1,opt,name=id,proto3"` + xxx_hidden_Version int64 `protobuf:"varint,2,opt,name=version,proto3"` + xxx_hidden_Spec *v11.EndpointSpec `protobuf:"bytes,3,opt,name=spec,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateNexusEndpointRequest) Reset() { + *x = UpdateNexusEndpointRequest{} + mi := &file_temporal_api_operatorservice_v1_request_response_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateNexusEndpointRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateNexusEndpointRequest) ProtoMessage() {} + +func (x *UpdateNexusEndpointRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_operatorservice_v1_request_response_proto_msgTypes[19] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UpdateNexusEndpointRequest) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *UpdateNexusEndpointRequest) GetVersion() int64 { + if x != nil { + return x.xxx_hidden_Version + } + return 0 +} + +func (x *UpdateNexusEndpointRequest) GetSpec() *v11.EndpointSpec { + if x != nil { + return x.xxx_hidden_Spec + } + return nil +} + +func (x *UpdateNexusEndpointRequest) SetId(v string) { + x.xxx_hidden_Id = v +} + +func (x *UpdateNexusEndpointRequest) SetVersion(v int64) { + x.xxx_hidden_Version = v +} + +func (x *UpdateNexusEndpointRequest) SetSpec(v *v11.EndpointSpec) { + x.xxx_hidden_Spec = v +} + +func (x *UpdateNexusEndpointRequest) HasSpec() bool { + if x == nil { + return false + } + return x.xxx_hidden_Spec != nil +} + +func (x *UpdateNexusEndpointRequest) ClearSpec() { + x.xxx_hidden_Spec = nil +} + +type UpdateNexusEndpointRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Server-generated unique endpoint ID. + Id string + // Data version for this endpoint. Must match current version. + Version int64 + Spec *v11.EndpointSpec +} + +func (b0 UpdateNexusEndpointRequest_builder) Build() *UpdateNexusEndpointRequest { + m0 := &UpdateNexusEndpointRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Id = b.Id + x.xxx_hidden_Version = b.Version + x.xxx_hidden_Spec = b.Spec + return m0 +} + +type UpdateNexusEndpointResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Endpoint *v11.Endpoint `protobuf:"bytes,1,opt,name=endpoint,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateNexusEndpointResponse) Reset() { + *x = UpdateNexusEndpointResponse{} + mi := &file_temporal_api_operatorservice_v1_request_response_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateNexusEndpointResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateNexusEndpointResponse) ProtoMessage() {} + +func (x *UpdateNexusEndpointResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_operatorservice_v1_request_response_proto_msgTypes[20] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UpdateNexusEndpointResponse) GetEndpoint() *v11.Endpoint { + if x != nil { + return x.xxx_hidden_Endpoint + } + return nil +} + +func (x *UpdateNexusEndpointResponse) SetEndpoint(v *v11.Endpoint) { + x.xxx_hidden_Endpoint = v +} + +func (x *UpdateNexusEndpointResponse) HasEndpoint() bool { + if x == nil { + return false + } + return x.xxx_hidden_Endpoint != nil +} + +func (x *UpdateNexusEndpointResponse) ClearEndpoint() { + x.xxx_hidden_Endpoint = nil +} + +type UpdateNexusEndpointResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Data post acceptance. Can be used to issue additional updates to this record. + Endpoint *v11.Endpoint +} + +func (b0 UpdateNexusEndpointResponse_builder) Build() *UpdateNexusEndpointResponse { + m0 := &UpdateNexusEndpointResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Endpoint = b.Endpoint + return m0 +} + +type DeleteNexusEndpointRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Id string `protobuf:"bytes,1,opt,name=id,proto3"` + xxx_hidden_Version int64 `protobuf:"varint,2,opt,name=version,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteNexusEndpointRequest) Reset() { + *x = DeleteNexusEndpointRequest{} + mi := &file_temporal_api_operatorservice_v1_request_response_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteNexusEndpointRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteNexusEndpointRequest) ProtoMessage() {} + +func (x *DeleteNexusEndpointRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_operatorservice_v1_request_response_proto_msgTypes[21] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DeleteNexusEndpointRequest) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *DeleteNexusEndpointRequest) GetVersion() int64 { + if x != nil { + return x.xxx_hidden_Version + } + return 0 +} + +func (x *DeleteNexusEndpointRequest) SetId(v string) { + x.xxx_hidden_Id = v +} + +func (x *DeleteNexusEndpointRequest) SetVersion(v int64) { + x.xxx_hidden_Version = v +} + +type DeleteNexusEndpointRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Server-generated unique endpoint ID. + Id string + // Data version for this endpoint. Must match current version. + Version int64 +} + +func (b0 DeleteNexusEndpointRequest_builder) Build() *DeleteNexusEndpointRequest { + m0 := &DeleteNexusEndpointRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Id = b.Id + x.xxx_hidden_Version = b.Version + return m0 +} + +type DeleteNexusEndpointResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteNexusEndpointResponse) Reset() { + *x = DeleteNexusEndpointResponse{} + mi := &file_temporal_api_operatorservice_v1_request_response_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteNexusEndpointResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteNexusEndpointResponse) ProtoMessage() {} + +func (x *DeleteNexusEndpointResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_operatorservice_v1_request_response_proto_msgTypes[22] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type DeleteNexusEndpointResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 DeleteNexusEndpointResponse_builder) Build() *DeleteNexusEndpointResponse { + m0 := &DeleteNexusEndpointResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type ListNexusEndpointsRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3"` + xxx_hidden_NextPageToken []byte `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3"` + xxx_hidden_Name string `protobuf:"bytes,3,opt,name=name,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListNexusEndpointsRequest) Reset() { + *x = ListNexusEndpointsRequest{} + mi := &file_temporal_api_operatorservice_v1_request_response_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListNexusEndpointsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListNexusEndpointsRequest) ProtoMessage() {} + +func (x *ListNexusEndpointsRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_operatorservice_v1_request_response_proto_msgTypes[23] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListNexusEndpointsRequest) GetPageSize() int32 { + if x != nil { + return x.xxx_hidden_PageSize + } + return 0 +} + +func (x *ListNexusEndpointsRequest) GetNextPageToken() []byte { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return nil +} + +func (x *ListNexusEndpointsRequest) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *ListNexusEndpointsRequest) SetPageSize(v int32) { + x.xxx_hidden_PageSize = v +} + +func (x *ListNexusEndpointsRequest) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_NextPageToken = v +} + +func (x *ListNexusEndpointsRequest) SetName(v string) { + x.xxx_hidden_Name = v +} + +type ListNexusEndpointsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + PageSize int32 + // To get the next page, pass in `ListNexusEndpointsResponse.next_page_token` from the previous page's + // response, the token will be empty if there's no other page. + // Note: the last page may be empty if the total number of endpoints registered is a multiple of the page size. + NextPageToken []byte + // Name of the incoming endpoint to filter on - optional. Specifying this will result in zero or one results. + // (-- api-linter: core::203::field-behavior-required=disabled + // + // aip.dev/not-precedent: Not following linter rules. --) + Name string +} + +func (b0 ListNexusEndpointsRequest_builder) Build() *ListNexusEndpointsRequest { + m0 := &ListNexusEndpointsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_PageSize = b.PageSize + x.xxx_hidden_NextPageToken = b.NextPageToken + x.xxx_hidden_Name = b.Name + return m0 +} + +type ListNexusEndpointsResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_NextPageToken []byte `protobuf:"bytes,1,opt,name=next_page_token,json=nextPageToken,proto3"` + xxx_hidden_Endpoints *[]*v11.Endpoint `protobuf:"bytes,2,rep,name=endpoints,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListNexusEndpointsResponse) Reset() { + *x = ListNexusEndpointsResponse{} + mi := &file_temporal_api_operatorservice_v1_request_response_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListNexusEndpointsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListNexusEndpointsResponse) ProtoMessage() {} + +func (x *ListNexusEndpointsResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_operatorservice_v1_request_response_proto_msgTypes[24] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListNexusEndpointsResponse) GetNextPageToken() []byte { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return nil +} + +func (x *ListNexusEndpointsResponse) GetEndpoints() []*v11.Endpoint { + if x != nil { + if x.xxx_hidden_Endpoints != nil { + return *x.xxx_hidden_Endpoints + } + } + return nil +} + +func (x *ListNexusEndpointsResponse) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_NextPageToken = v +} + +func (x *ListNexusEndpointsResponse) SetEndpoints(v []*v11.Endpoint) { + x.xxx_hidden_Endpoints = &v +} + +type ListNexusEndpointsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Token for getting the next page. + NextPageToken []byte + Endpoints []*v11.Endpoint +} + +func (b0 ListNexusEndpointsResponse_builder) Build() *ListNexusEndpointsResponse { + m0 := &ListNexusEndpointsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_NextPageToken = b.NextPageToken + x.xxx_hidden_Endpoints = &b.Endpoints + return m0 +} + +var File_temporal_api_operatorservice_v1_request_response_proto protoreflect.FileDescriptor + +const file_temporal_api_operatorservice_v1_request_response_proto_rawDesc = "" + + "\n" + + "6temporal/api/operatorservice/v1/request_response.proto\x12\x1ftemporal.api.operatorservice.v1\x1a\"temporal/api/enums/v1/common.proto\x1a#temporal/api/nexus/v1/message.proto\x1a\x1egoogle/protobuf/duration.proto\"\xa8\x02\n" + + "\x1aAddSearchAttributesRequest\x12~\n" + + "\x11search_attributes\x18\x01 \x03(\v2Q.temporal.api.operatorservice.v1.AddSearchAttributesRequest.SearchAttributesEntryR\x10searchAttributes\x12\x1c\n" + + "\tnamespace\x18\x02 \x01(\tR\tnamespace\x1al\n" + + "\x15SearchAttributesEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12=\n" + + "\x05value\x18\x02 \x01(\x0e2'.temporal.api.enums.v1.IndexedValueTypeR\x05value:\x028\x01\"\x1d\n" + + "\x1bAddSearchAttributesResponse\"j\n" + + "\x1dRemoveSearchAttributesRequest\x12+\n" + + "\x11search_attributes\x18\x01 \x03(\tR\x10searchAttributes\x12\x1c\n" + + "\tnamespace\x18\x02 \x01(\tR\tnamespace\" \n" + + "\x1eRemoveSearchAttributesResponse\";\n" + + "\x1bListSearchAttributesRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\"\xbb\x05\n" + + "\x1cListSearchAttributesResponse\x12\x80\x01\n" + + "\x11custom_attributes\x18\x01 \x03(\v2S.temporal.api.operatorservice.v1.ListSearchAttributesResponse.CustomAttributesEntryR\x10customAttributes\x12\x80\x01\n" + + "\x11system_attributes\x18\x02 \x03(\v2S.temporal.api.operatorservice.v1.ListSearchAttributesResponse.SystemAttributesEntryR\x10systemAttributes\x12w\n" + + "\x0estorage_schema\x18\x03 \x03(\v2P.temporal.api.operatorservice.v1.ListSearchAttributesResponse.StorageSchemaEntryR\rstorageSchema\x1al\n" + + "\x15CustomAttributesEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12=\n" + + "\x05value\x18\x02 \x01(\x0e2'.temporal.api.enums.v1.IndexedValueTypeR\x05value:\x028\x01\x1al\n" + + "\x15SystemAttributesEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12=\n" + + "\x05value\x18\x02 \x01(\x0e2'.temporal.api.enums.v1.IndexedValueTypeR\x05value:\x028\x01\x1a@\n" + + "\x12StorageSchemaEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xaa\x01\n" + + "\x16DeleteNamespaceRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12!\n" + + "\fnamespace_id\x18\x02 \x01(\tR\vnamespaceId\x12O\n" + + "\x16namespace_delete_delay\x18\x03 \x01(\v2\x19.google.protobuf.DurationR\x14namespaceDeleteDelay\"F\n" + + "\x17DeleteNamespaceResponse\x12+\n" + + "\x11deleted_namespace\x18\x01 \x01(\tR\x10deletedNamespace\"\xf8\x01\n" + + "\x1fAddOrUpdateRemoteClusterRequest\x12)\n" + + "\x10frontend_address\x18\x01 \x01(\tR\x0ffrontendAddress\x12G\n" + + " enable_remote_cluster_connection\x18\x02 \x01(\bR\x1denableRemoteClusterConnection\x122\n" + + "\x15frontend_http_address\x18\x03 \x01(\tR\x13frontendHttpAddress\x12-\n" + + "\x12enable_replication\x18\x04 \x01(\bR\x11enableReplication\"\"\n" + + " AddOrUpdateRemoteClusterResponse\"?\n" + + "\x1aRemoveRemoteClusterRequest\x12!\n" + + "\fcluster_name\x18\x01 \x01(\tR\vclusterName\"\x1d\n" + + "\x1bRemoveRemoteClusterResponse\"Z\n" + + "\x13ListClustersRequest\x12\x1b\n" + + "\tpage_size\x18\x01 \x01(\x05R\bpageSize\x12&\n" + + "\x0fnext_page_token\x18\x02 \x01(\fR\rnextPageToken\"\x8c\x01\n" + + "\x14ListClustersResponse\x12L\n" + + "\bclusters\x18\x01 \x03(\v20.temporal.api.operatorservice.v1.ClusterMetadataR\bclusters\x12&\n" + + "\x0fnext_page_token\x18\x04 \x01(\fR\rnextPageToken\"\xe4\x02\n" + + "\x0fClusterMetadata\x12!\n" + + "\fcluster_name\x18\x01 \x01(\tR\vclusterName\x12\x1d\n" + + "\n" + + "cluster_id\x18\x02 \x01(\tR\tclusterId\x12\x18\n" + + "\aaddress\x18\x03 \x01(\tR\aaddress\x12!\n" + + "\fhttp_address\x18\a \x01(\tR\vhttpAddress\x128\n" + + "\x18initial_failover_version\x18\x04 \x01(\x03R\x16initialFailoverVersion\x12.\n" + + "\x13history_shard_count\x18\x05 \x01(\x05R\x11historyShardCount\x122\n" + + "\x15is_connection_enabled\x18\x06 \x01(\bR\x13isConnectionEnabled\x124\n" + + "\x16is_replication_enabled\x18\b \x01(\bR\x14isReplicationEnabled\")\n" + + "\x17GetNexusEndpointRequest\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\"W\n" + + "\x18GetNexusEndpointResponse\x12;\n" + + "\bendpoint\x18\x01 \x01(\v2\x1f.temporal.api.nexus.v1.EndpointR\bendpoint\"U\n" + + "\x1aCreateNexusEndpointRequest\x127\n" + + "\x04spec\x18\x01 \x01(\v2#.temporal.api.nexus.v1.EndpointSpecR\x04spec\"Z\n" + + "\x1bCreateNexusEndpointResponse\x12;\n" + + "\bendpoint\x18\x01 \x01(\v2\x1f.temporal.api.nexus.v1.EndpointR\bendpoint\"\x7f\n" + + "\x1aUpdateNexusEndpointRequest\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\x12\x18\n" + + "\aversion\x18\x02 \x01(\x03R\aversion\x127\n" + + "\x04spec\x18\x03 \x01(\v2#.temporal.api.nexus.v1.EndpointSpecR\x04spec\"Z\n" + + "\x1bUpdateNexusEndpointResponse\x12;\n" + + "\bendpoint\x18\x01 \x01(\v2\x1f.temporal.api.nexus.v1.EndpointR\bendpoint\"F\n" + + "\x1aDeleteNexusEndpointRequest\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\x12\x18\n" + + "\aversion\x18\x02 \x01(\x03R\aversion\"\x1d\n" + + "\x1bDeleteNexusEndpointResponse\"t\n" + + "\x19ListNexusEndpointsRequest\x12\x1b\n" + + "\tpage_size\x18\x01 \x01(\x05R\bpageSize\x12&\n" + + "\x0fnext_page_token\x18\x02 \x01(\fR\rnextPageToken\x12\x12\n" + + "\x04name\x18\x03 \x01(\tR\x04name\"\x83\x01\n" + + "\x1aListNexusEndpointsResponse\x12&\n" + + "\x0fnext_page_token\x18\x01 \x01(\fR\rnextPageToken\x12=\n" + + "\tendpoints\x18\x02 \x03(\v2\x1f.temporal.api.nexus.v1.EndpointR\tendpointsB\xbe\x01\n" + + "\"io.temporal.api.operatorservice.v1B\x14RequestResponseProtoP\x01Z5go.temporal.io/api/operatorservice/v1;operatorservice\xaa\x02!Temporalio.Api.OperatorService.V1\xea\x02$Temporalio::Api::OperatorService::V1b\x06proto3" + +var file_temporal_api_operatorservice_v1_request_response_proto_msgTypes = make([]protoimpl.MessageInfo, 29) +var file_temporal_api_operatorservice_v1_request_response_proto_goTypes = []any{ + (*AddSearchAttributesRequest)(nil), // 0: temporal.api.operatorservice.v1.AddSearchAttributesRequest + (*AddSearchAttributesResponse)(nil), // 1: temporal.api.operatorservice.v1.AddSearchAttributesResponse + (*RemoveSearchAttributesRequest)(nil), // 2: temporal.api.operatorservice.v1.RemoveSearchAttributesRequest + (*RemoveSearchAttributesResponse)(nil), // 3: temporal.api.operatorservice.v1.RemoveSearchAttributesResponse + (*ListSearchAttributesRequest)(nil), // 4: temporal.api.operatorservice.v1.ListSearchAttributesRequest + (*ListSearchAttributesResponse)(nil), // 5: temporal.api.operatorservice.v1.ListSearchAttributesResponse + (*DeleteNamespaceRequest)(nil), // 6: temporal.api.operatorservice.v1.DeleteNamespaceRequest + (*DeleteNamespaceResponse)(nil), // 7: temporal.api.operatorservice.v1.DeleteNamespaceResponse + (*AddOrUpdateRemoteClusterRequest)(nil), // 8: temporal.api.operatorservice.v1.AddOrUpdateRemoteClusterRequest + (*AddOrUpdateRemoteClusterResponse)(nil), // 9: temporal.api.operatorservice.v1.AddOrUpdateRemoteClusterResponse + (*RemoveRemoteClusterRequest)(nil), // 10: temporal.api.operatorservice.v1.RemoveRemoteClusterRequest + (*RemoveRemoteClusterResponse)(nil), // 11: temporal.api.operatorservice.v1.RemoveRemoteClusterResponse + (*ListClustersRequest)(nil), // 12: temporal.api.operatorservice.v1.ListClustersRequest + (*ListClustersResponse)(nil), // 13: temporal.api.operatorservice.v1.ListClustersResponse + (*ClusterMetadata)(nil), // 14: temporal.api.operatorservice.v1.ClusterMetadata + (*GetNexusEndpointRequest)(nil), // 15: temporal.api.operatorservice.v1.GetNexusEndpointRequest + (*GetNexusEndpointResponse)(nil), // 16: temporal.api.operatorservice.v1.GetNexusEndpointResponse + (*CreateNexusEndpointRequest)(nil), // 17: temporal.api.operatorservice.v1.CreateNexusEndpointRequest + (*CreateNexusEndpointResponse)(nil), // 18: temporal.api.operatorservice.v1.CreateNexusEndpointResponse + (*UpdateNexusEndpointRequest)(nil), // 19: temporal.api.operatorservice.v1.UpdateNexusEndpointRequest + (*UpdateNexusEndpointResponse)(nil), // 20: temporal.api.operatorservice.v1.UpdateNexusEndpointResponse + (*DeleteNexusEndpointRequest)(nil), // 21: temporal.api.operatorservice.v1.DeleteNexusEndpointRequest + (*DeleteNexusEndpointResponse)(nil), // 22: temporal.api.operatorservice.v1.DeleteNexusEndpointResponse + (*ListNexusEndpointsRequest)(nil), // 23: temporal.api.operatorservice.v1.ListNexusEndpointsRequest + (*ListNexusEndpointsResponse)(nil), // 24: temporal.api.operatorservice.v1.ListNexusEndpointsResponse + nil, // 25: temporal.api.operatorservice.v1.AddSearchAttributesRequest.SearchAttributesEntry + nil, // 26: temporal.api.operatorservice.v1.ListSearchAttributesResponse.CustomAttributesEntry + nil, // 27: temporal.api.operatorservice.v1.ListSearchAttributesResponse.SystemAttributesEntry + nil, // 28: temporal.api.operatorservice.v1.ListSearchAttributesResponse.StorageSchemaEntry + (*durationpb.Duration)(nil), // 29: google.protobuf.Duration + (*v11.Endpoint)(nil), // 30: temporal.api.nexus.v1.Endpoint + (*v11.EndpointSpec)(nil), // 31: temporal.api.nexus.v1.EndpointSpec + (v1.IndexedValueType)(0), // 32: temporal.api.enums.v1.IndexedValueType +} +var file_temporal_api_operatorservice_v1_request_response_proto_depIdxs = []int32{ + 25, // 0: temporal.api.operatorservice.v1.AddSearchAttributesRequest.search_attributes:type_name -> temporal.api.operatorservice.v1.AddSearchAttributesRequest.SearchAttributesEntry + 26, // 1: temporal.api.operatorservice.v1.ListSearchAttributesResponse.custom_attributes:type_name -> temporal.api.operatorservice.v1.ListSearchAttributesResponse.CustomAttributesEntry + 27, // 2: temporal.api.operatorservice.v1.ListSearchAttributesResponse.system_attributes:type_name -> temporal.api.operatorservice.v1.ListSearchAttributesResponse.SystemAttributesEntry + 28, // 3: temporal.api.operatorservice.v1.ListSearchAttributesResponse.storage_schema:type_name -> temporal.api.operatorservice.v1.ListSearchAttributesResponse.StorageSchemaEntry + 29, // 4: temporal.api.operatorservice.v1.DeleteNamespaceRequest.namespace_delete_delay:type_name -> google.protobuf.Duration + 14, // 5: temporal.api.operatorservice.v1.ListClustersResponse.clusters:type_name -> temporal.api.operatorservice.v1.ClusterMetadata + 30, // 6: temporal.api.operatorservice.v1.GetNexusEndpointResponse.endpoint:type_name -> temporal.api.nexus.v1.Endpoint + 31, // 7: temporal.api.operatorservice.v1.CreateNexusEndpointRequest.spec:type_name -> temporal.api.nexus.v1.EndpointSpec + 30, // 8: temporal.api.operatorservice.v1.CreateNexusEndpointResponse.endpoint:type_name -> temporal.api.nexus.v1.Endpoint + 31, // 9: temporal.api.operatorservice.v1.UpdateNexusEndpointRequest.spec:type_name -> temporal.api.nexus.v1.EndpointSpec + 30, // 10: temporal.api.operatorservice.v1.UpdateNexusEndpointResponse.endpoint:type_name -> temporal.api.nexus.v1.Endpoint + 30, // 11: temporal.api.operatorservice.v1.ListNexusEndpointsResponse.endpoints:type_name -> temporal.api.nexus.v1.Endpoint + 32, // 12: temporal.api.operatorservice.v1.AddSearchAttributesRequest.SearchAttributesEntry.value:type_name -> temporal.api.enums.v1.IndexedValueType + 32, // 13: temporal.api.operatorservice.v1.ListSearchAttributesResponse.CustomAttributesEntry.value:type_name -> temporal.api.enums.v1.IndexedValueType + 32, // 14: temporal.api.operatorservice.v1.ListSearchAttributesResponse.SystemAttributesEntry.value:type_name -> temporal.api.enums.v1.IndexedValueType + 15, // [15:15] is the sub-list for method output_type + 15, // [15:15] is the sub-list for method input_type + 15, // [15:15] is the sub-list for extension type_name + 15, // [15:15] is the sub-list for extension extendee + 0, // [0:15] is the sub-list for field type_name +} + +func init() { file_temporal_api_operatorservice_v1_request_response_proto_init() } +func file_temporal_api_operatorservice_v1_request_response_proto_init() { + if File_temporal_api_operatorservice_v1_request_response_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_api_operatorservice_v1_request_response_proto_rawDesc), len(file_temporal_api_operatorservice_v1_request_response_proto_rawDesc)), + NumEnums: 0, + NumMessages: 29, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_temporal_api_operatorservice_v1_request_response_proto_goTypes, + DependencyIndexes: file_temporal_api_operatorservice_v1_request_response_proto_depIdxs, + MessageInfos: file_temporal_api_operatorservice_v1_request_response_proto_msgTypes, + }.Build() + File_temporal_api_operatorservice_v1_request_response_proto = out.File + file_temporal_api_operatorservice_v1_request_response_proto_goTypes = nil + file_temporal_api_operatorservice_v1_request_response_proto_depIdxs = nil +} diff --git a/operatorservice/v1/service.pb.go b/operatorservice/v1/service.pb.go index d05f8b22..eae9a9d4 100644 --- a/operatorservice/v1/service.pb.go +++ b/operatorservice/v1/service.pb.go @@ -4,6 +4,8 @@ // protoc // source: temporal/api/operatorservice/v1/service.proto +//go:build !protoopaque + package operatorservice import ( diff --git a/operatorservice/v1/service_protoopaque.pb.go b/operatorservice/v1/service_protoopaque.pb.go new file mode 100644 index 00000000..993ab4a5 --- /dev/null +++ b/operatorservice/v1/service_protoopaque.pb.go @@ -0,0 +1,127 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// plugins: +// protoc-gen-go +// protoc +// source: temporal/api/operatorservice/v1/service.proto + +//go:build protoopaque + +package operatorservice + +import ( + reflect "reflect" + unsafe "unsafe" + + _ "google.golang.org/genproto/googleapis/api/annotations" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +var File_temporal_api_operatorservice_v1_service_proto protoreflect.FileDescriptor + +const file_temporal_api_operatorservice_v1_service_proto_rawDesc = "" + + "\n" + + "-temporal/api/operatorservice/v1/service.proto\x12\x1ftemporal.api.operatorservice.v1\x1a6temporal/api/operatorservice/v1/request_response.proto\x1a\x1cgoogle/api/annotations.proto2\xc6\x11\n" + + "\x0fOperatorService\x12\x92\x01\n" + + "\x13AddSearchAttributes\x12;.temporal.api.operatorservice.v1.AddSearchAttributesRequest\x1a<.temporal.api.operatorservice.v1.AddSearchAttributesResponse\"\x00\x12\x9b\x01\n" + + "\x16RemoveSearchAttributes\x12>.temporal.api.operatorservice.v1.RemoveSearchAttributesRequest\x1a?.temporal.api.operatorservice.v1.RemoveSearchAttributesResponse\"\x00\x12\x82\x02\n" + + "\x14ListSearchAttributes\x12<.temporal.api.operatorservice.v1.ListSearchAttributesRequest\x1a=.temporal.api.operatorservice.v1.ListSearchAttributesResponse\"m\x82\xd3\xe4\x93\x02gZ2\x120/api/v1/namespaces/{namespace}/search-attributes\x121/cluster/namespaces/{namespace}/search-attributes\x12\x86\x01\n" + + "\x0fDeleteNamespace\x127.temporal.api.operatorservice.v1.DeleteNamespaceRequest\x1a8.temporal.api.operatorservice.v1.DeleteNamespaceResponse\"\x00\x12\xa1\x01\n" + + "\x18AddOrUpdateRemoteCluster\x12@.temporal.api.operatorservice.v1.AddOrUpdateRemoteClusterRequest\x1aA.temporal.api.operatorservice.v1.AddOrUpdateRemoteClusterResponse\"\x00\x12\x92\x01\n" + + "\x13RemoveRemoteCluster\x12;.temporal.api.operatorservice.v1.RemoveRemoteClusterRequest\x1a<.temporal.api.operatorservice.v1.RemoveRemoteClusterResponse\"\x00\x12}\n" + + "\fListClusters\x124.temporal.api.operatorservice.v1.ListClustersRequest\x1a5.temporal.api.operatorservice.v1.ListClustersResponse\"\x00\x12\xce\x01\n" + + "\x10GetNexusEndpoint\x128.temporal.api.operatorservice.v1.GetNexusEndpointRequest\x1a9.temporal.api.operatorservice.v1.GetNexusEndpointResponse\"E\x82\xd3\xe4\x93\x02?Z\x1e\x12\x1c/api/v1/nexus/endpoints/{id}\x12\x1d/cluster/nexus/endpoints/{id}\x12\xd3\x01\n" + + "\x13CreateNexusEndpoint\x12;.temporal.api.operatorservice.v1.CreateNexusEndpointRequest\x1a<.temporal.api.operatorservice.v1.CreateNexusEndpointResponse\"A\x82\xd3\xe4\x93\x02;:\x01*Z\x1c:\x01*\"\x17/api/v1/nexus/endpoints\"\x18/cluster/nexus/endpoints\x12\xeb\x01\n" + + "\x13UpdateNexusEndpoint\x12;.temporal.api.operatorservice.v1.UpdateNexusEndpointRequest\x1a<.temporal.api.operatorservice.v1.UpdateNexusEndpointResponse\"Y\x82\xd3\xe4\x93\x02S:\x01*Z(:\x01*\"#/api/v1/nexus/endpoints/{id}/update\"$/cluster/nexus/endpoints/{id}/update\x12\xd7\x01\n" + + "\x13DeleteNexusEndpoint\x12;.temporal.api.operatorservice.v1.DeleteNexusEndpointRequest\x1a<.temporal.api.operatorservice.v1.DeleteNexusEndpointResponse\"E\x82\xd3\xe4\x93\x02?Z\x1e*\x1c/api/v1/nexus/endpoints/{id}*\x1d/cluster/nexus/endpoints/{id}\x12\xca\x01\n" + + "\x12ListNexusEndpoints\x12:.temporal.api.operatorservice.v1.ListNexusEndpointsRequest\x1a;.temporal.api.operatorservice.v1.ListNexusEndpointsResponse\";\x82\xd3\xe4\x93\x025Z\x19\x12\x17/api/v1/nexus/endpoints\x12\x18/cluster/nexus/endpointsB\xb6\x01\n" + + "\"io.temporal.api.operatorservice.v1B\fServiceProtoP\x01Z5go.temporal.io/api/operatorservice/v1;operatorservice\xaa\x02!Temporalio.Api.OperatorService.V1\xea\x02$Temporalio::Api::OperatorService::V1b\x06proto3" + +var file_temporal_api_operatorservice_v1_service_proto_goTypes = []any{ + (*AddSearchAttributesRequest)(nil), // 0: temporal.api.operatorservice.v1.AddSearchAttributesRequest + (*RemoveSearchAttributesRequest)(nil), // 1: temporal.api.operatorservice.v1.RemoveSearchAttributesRequest + (*ListSearchAttributesRequest)(nil), // 2: temporal.api.operatorservice.v1.ListSearchAttributesRequest + (*DeleteNamespaceRequest)(nil), // 3: temporal.api.operatorservice.v1.DeleteNamespaceRequest + (*AddOrUpdateRemoteClusterRequest)(nil), // 4: temporal.api.operatorservice.v1.AddOrUpdateRemoteClusterRequest + (*RemoveRemoteClusterRequest)(nil), // 5: temporal.api.operatorservice.v1.RemoveRemoteClusterRequest + (*ListClustersRequest)(nil), // 6: temporal.api.operatorservice.v1.ListClustersRequest + (*GetNexusEndpointRequest)(nil), // 7: temporal.api.operatorservice.v1.GetNexusEndpointRequest + (*CreateNexusEndpointRequest)(nil), // 8: temporal.api.operatorservice.v1.CreateNexusEndpointRequest + (*UpdateNexusEndpointRequest)(nil), // 9: temporal.api.operatorservice.v1.UpdateNexusEndpointRequest + (*DeleteNexusEndpointRequest)(nil), // 10: temporal.api.operatorservice.v1.DeleteNexusEndpointRequest + (*ListNexusEndpointsRequest)(nil), // 11: temporal.api.operatorservice.v1.ListNexusEndpointsRequest + (*AddSearchAttributesResponse)(nil), // 12: temporal.api.operatorservice.v1.AddSearchAttributesResponse + (*RemoveSearchAttributesResponse)(nil), // 13: temporal.api.operatorservice.v1.RemoveSearchAttributesResponse + (*ListSearchAttributesResponse)(nil), // 14: temporal.api.operatorservice.v1.ListSearchAttributesResponse + (*DeleteNamespaceResponse)(nil), // 15: temporal.api.operatorservice.v1.DeleteNamespaceResponse + (*AddOrUpdateRemoteClusterResponse)(nil), // 16: temporal.api.operatorservice.v1.AddOrUpdateRemoteClusterResponse + (*RemoveRemoteClusterResponse)(nil), // 17: temporal.api.operatorservice.v1.RemoveRemoteClusterResponse + (*ListClustersResponse)(nil), // 18: temporal.api.operatorservice.v1.ListClustersResponse + (*GetNexusEndpointResponse)(nil), // 19: temporal.api.operatorservice.v1.GetNexusEndpointResponse + (*CreateNexusEndpointResponse)(nil), // 20: temporal.api.operatorservice.v1.CreateNexusEndpointResponse + (*UpdateNexusEndpointResponse)(nil), // 21: temporal.api.operatorservice.v1.UpdateNexusEndpointResponse + (*DeleteNexusEndpointResponse)(nil), // 22: temporal.api.operatorservice.v1.DeleteNexusEndpointResponse + (*ListNexusEndpointsResponse)(nil), // 23: temporal.api.operatorservice.v1.ListNexusEndpointsResponse +} +var file_temporal_api_operatorservice_v1_service_proto_depIdxs = []int32{ + 0, // 0: temporal.api.operatorservice.v1.OperatorService.AddSearchAttributes:input_type -> temporal.api.operatorservice.v1.AddSearchAttributesRequest + 1, // 1: temporal.api.operatorservice.v1.OperatorService.RemoveSearchAttributes:input_type -> temporal.api.operatorservice.v1.RemoveSearchAttributesRequest + 2, // 2: temporal.api.operatorservice.v1.OperatorService.ListSearchAttributes:input_type -> temporal.api.operatorservice.v1.ListSearchAttributesRequest + 3, // 3: temporal.api.operatorservice.v1.OperatorService.DeleteNamespace:input_type -> temporal.api.operatorservice.v1.DeleteNamespaceRequest + 4, // 4: temporal.api.operatorservice.v1.OperatorService.AddOrUpdateRemoteCluster:input_type -> temporal.api.operatorservice.v1.AddOrUpdateRemoteClusterRequest + 5, // 5: temporal.api.operatorservice.v1.OperatorService.RemoveRemoteCluster:input_type -> temporal.api.operatorservice.v1.RemoveRemoteClusterRequest + 6, // 6: temporal.api.operatorservice.v1.OperatorService.ListClusters:input_type -> temporal.api.operatorservice.v1.ListClustersRequest + 7, // 7: temporal.api.operatorservice.v1.OperatorService.GetNexusEndpoint:input_type -> temporal.api.operatorservice.v1.GetNexusEndpointRequest + 8, // 8: temporal.api.operatorservice.v1.OperatorService.CreateNexusEndpoint:input_type -> temporal.api.operatorservice.v1.CreateNexusEndpointRequest + 9, // 9: temporal.api.operatorservice.v1.OperatorService.UpdateNexusEndpoint:input_type -> temporal.api.operatorservice.v1.UpdateNexusEndpointRequest + 10, // 10: temporal.api.operatorservice.v1.OperatorService.DeleteNexusEndpoint:input_type -> temporal.api.operatorservice.v1.DeleteNexusEndpointRequest + 11, // 11: temporal.api.operatorservice.v1.OperatorService.ListNexusEndpoints:input_type -> temporal.api.operatorservice.v1.ListNexusEndpointsRequest + 12, // 12: temporal.api.operatorservice.v1.OperatorService.AddSearchAttributes:output_type -> temporal.api.operatorservice.v1.AddSearchAttributesResponse + 13, // 13: temporal.api.operatorservice.v1.OperatorService.RemoveSearchAttributes:output_type -> temporal.api.operatorservice.v1.RemoveSearchAttributesResponse + 14, // 14: temporal.api.operatorservice.v1.OperatorService.ListSearchAttributes:output_type -> temporal.api.operatorservice.v1.ListSearchAttributesResponse + 15, // 15: temporal.api.operatorservice.v1.OperatorService.DeleteNamespace:output_type -> temporal.api.operatorservice.v1.DeleteNamespaceResponse + 16, // 16: temporal.api.operatorservice.v1.OperatorService.AddOrUpdateRemoteCluster:output_type -> temporal.api.operatorservice.v1.AddOrUpdateRemoteClusterResponse + 17, // 17: temporal.api.operatorservice.v1.OperatorService.RemoveRemoteCluster:output_type -> temporal.api.operatorservice.v1.RemoveRemoteClusterResponse + 18, // 18: temporal.api.operatorservice.v1.OperatorService.ListClusters:output_type -> temporal.api.operatorservice.v1.ListClustersResponse + 19, // 19: temporal.api.operatorservice.v1.OperatorService.GetNexusEndpoint:output_type -> temporal.api.operatorservice.v1.GetNexusEndpointResponse + 20, // 20: temporal.api.operatorservice.v1.OperatorService.CreateNexusEndpoint:output_type -> temporal.api.operatorservice.v1.CreateNexusEndpointResponse + 21, // 21: temporal.api.operatorservice.v1.OperatorService.UpdateNexusEndpoint:output_type -> temporal.api.operatorservice.v1.UpdateNexusEndpointResponse + 22, // 22: temporal.api.operatorservice.v1.OperatorService.DeleteNexusEndpoint:output_type -> temporal.api.operatorservice.v1.DeleteNexusEndpointResponse + 23, // 23: temporal.api.operatorservice.v1.OperatorService.ListNexusEndpoints:output_type -> temporal.api.operatorservice.v1.ListNexusEndpointsResponse + 12, // [12:24] is the sub-list for method output_type + 0, // [0:12] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_temporal_api_operatorservice_v1_service_proto_init() } +func file_temporal_api_operatorservice_v1_service_proto_init() { + if File_temporal_api_operatorservice_v1_service_proto != nil { + return + } + file_temporal_api_operatorservice_v1_request_response_proto_init() + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_api_operatorservice_v1_service_proto_rawDesc), len(file_temporal_api_operatorservice_v1_service_proto_rawDesc)), + NumEnums: 0, + NumMessages: 0, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_temporal_api_operatorservice_v1_service_proto_goTypes, + DependencyIndexes: file_temporal_api_operatorservice_v1_service_proto_depIdxs, + }.Build() + File_temporal_api_operatorservice_v1_service_proto = out.File + file_temporal_api_operatorservice_v1_service_proto_goTypes = nil + file_temporal_api_operatorservice_v1_service_proto_depIdxs = nil +} diff --git a/protocol/v1/message.pb.go b/protocol/v1/message.pb.go index f07e0a67..0076e49a 100644 --- a/protocol/v1/message.pb.go +++ b/protocol/v1/message.pb.go @@ -4,11 +4,13 @@ // protoc // source: temporal/api/protocol/v1/message.proto +//go:build !protoopaque + package protocol import ( reflect "reflect" - sync "sync" + "strconv" unsafe "unsafe" protoreflect "google.golang.org/protobuf/reflect/protoreflect" @@ -27,7 +29,7 @@ const ( // // aip.dev/not-precedent: We want runtime extensibility for the body field --) type Message struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // An ID for this specific message. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Identifies the specific instance of a protocol to which this message @@ -74,11 +76,6 @@ func (x *Message) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Message.ProtoReflect.Descriptor instead. -func (*Message) Descriptor() ([]byte, []int) { - return file_temporal_api_protocol_v1_message_proto_rawDescGZIP(), []int{0} -} - func (x *Message) GetId() string { if x != nil { return x.Id @@ -125,6 +122,147 @@ func (x *Message) GetBody() *anypb.Any { return nil } +func (x *Message) SetId(v string) { + x.Id = v +} + +func (x *Message) SetProtocolInstanceId(v string) { + x.ProtocolInstanceId = v +} + +func (x *Message) SetEventId(v int64) { + x.SequencingId = &Message_EventId{v} +} + +func (x *Message) SetCommandIndex(v int64) { + x.SequencingId = &Message_CommandIndex{v} +} + +func (x *Message) SetBody(v *anypb.Any) { + x.Body = v +} + +func (x *Message) HasSequencingId() bool { + if x == nil { + return false + } + return x.SequencingId != nil +} + +func (x *Message) HasEventId() bool { + if x == nil { + return false + } + _, ok := x.SequencingId.(*Message_EventId) + return ok +} + +func (x *Message) HasCommandIndex() bool { + if x == nil { + return false + } + _, ok := x.SequencingId.(*Message_CommandIndex) + return ok +} + +func (x *Message) HasBody() bool { + if x == nil { + return false + } + return x.Body != nil +} + +func (x *Message) ClearSequencingId() { + x.SequencingId = nil +} + +func (x *Message) ClearEventId() { + if _, ok := x.SequencingId.(*Message_EventId); ok { + x.SequencingId = nil + } +} + +func (x *Message) ClearCommandIndex() { + if _, ok := x.SequencingId.(*Message_CommandIndex); ok { + x.SequencingId = nil + } +} + +func (x *Message) ClearBody() { + x.Body = nil +} + +const Message_SequencingId_not_set_case case_Message_SequencingId = 0 +const Message_EventId_case case_Message_SequencingId = 3 +const Message_CommandIndex_case case_Message_SequencingId = 4 + +func (x *Message) WhichSequencingId() case_Message_SequencingId { + if x == nil { + return Message_SequencingId_not_set_case + } + switch x.SequencingId.(type) { + case *Message_EventId: + return Message_EventId_case + case *Message_CommandIndex: + return Message_CommandIndex_case + default: + return Message_SequencingId_not_set_case + } +} + +type Message_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // An ID for this specific message. + Id string + // Identifies the specific instance of a protocol to which this message + // belongs. + ProtocolInstanceId string + // The event ID or command ID after which this message can be delivered. The + // effects of history up to and including this event ID should be visible to + // the code that handles this message. Omit to opt out of sequencing. + + // Fields of oneof SequencingId: + EventId *int64 + CommandIndex *int64 + // -- end of SequencingId + // The opaque data carried by this message. The protocol type can be + // extracted from the package name of the message carried inside the Any. + Body *anypb.Any +} + +func (b0 Message_builder) Build() *Message { + m0 := &Message{} + b, x := &b0, m0 + _, _ = b, x + x.Id = b.Id + x.ProtocolInstanceId = b.ProtocolInstanceId + if b.EventId != nil { + x.SequencingId = &Message_EventId{*b.EventId} + } + if b.CommandIndex != nil { + x.SequencingId = &Message_CommandIndex{*b.CommandIndex} + } + x.Body = b.Body + return m0 +} + +type case_Message_SequencingId protoreflect.FieldNumber + +func (x case_Message_SequencingId) String() string { + switch x { + case Message_SequencingId_not_set_case: + return "MessageSequencingIdNotSetCase" + case Message_EventId_case: + return "MessageEventIdCase" + case Message_CommandIndex_case: + return "MessageCommandIndexCase" + default: + return strconv.Itoa(int(x)) + } + +} + type isMessage_SequencingId interface { isMessage_SequencingId() } @@ -155,18 +293,6 @@ const file_temporal_api_protocol_v1_message_proto_rawDesc = "" + "\rsequencing_idB\x93\x01\n" + "\x1bio.temporal.api.protocol.v1B\fMessageProtoP\x01Z'go.temporal.io/api/protocol/v1;protocol\xaa\x02\x1aTemporalio.Api.Protocol.V1\xea\x02\x1dTemporalio::Api::Protocol::V1b\x06proto3" -var ( - file_temporal_api_protocol_v1_message_proto_rawDescOnce sync.Once - file_temporal_api_protocol_v1_message_proto_rawDescData []byte -) - -func file_temporal_api_protocol_v1_message_proto_rawDescGZIP() []byte { - file_temporal_api_protocol_v1_message_proto_rawDescOnce.Do(func() { - file_temporal_api_protocol_v1_message_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_api_protocol_v1_message_proto_rawDesc), len(file_temporal_api_protocol_v1_message_proto_rawDesc))) - }) - return file_temporal_api_protocol_v1_message_proto_rawDescData -} - var file_temporal_api_protocol_v1_message_proto_msgTypes = make([]protoimpl.MessageInfo, 1) var file_temporal_api_protocol_v1_message_proto_goTypes = []any{ (*Message)(nil), // 0: temporal.api.protocol.v1.Message diff --git a/protocol/v1/message_protoopaque.pb.go b/protocol/v1/message_protoopaque.pb.go new file mode 100644 index 00000000..b4805eac --- /dev/null +++ b/protocol/v1/message_protoopaque.pb.go @@ -0,0 +1,316 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// plugins: +// protoc-gen-go +// protoc +// source: temporal/api/protocol/v1/message.proto + +//go:build protoopaque + +package protocol + +import ( + reflect "reflect" + "strconv" + unsafe "unsafe" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + anypb "google.golang.org/protobuf/types/known/anypb" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// (-- api-linter: core::0146::any=disabled +// +// aip.dev/not-precedent: We want runtime extensibility for the body field --) +type Message struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Id string `protobuf:"bytes,1,opt,name=id,proto3"` + xxx_hidden_ProtocolInstanceId string `protobuf:"bytes,2,opt,name=protocol_instance_id,json=protocolInstanceId,proto3"` + xxx_hidden_SequencingId isMessage_SequencingId `protobuf_oneof:"sequencing_id"` + xxx_hidden_Body *anypb.Any `protobuf:"bytes,5,opt,name=body,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Message) Reset() { + *x = Message{} + mi := &file_temporal_api_protocol_v1_message_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Message) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Message) ProtoMessage() {} + +func (x *Message) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_protocol_v1_message_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *Message) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *Message) GetProtocolInstanceId() string { + if x != nil { + return x.xxx_hidden_ProtocolInstanceId + } + return "" +} + +func (x *Message) GetEventId() int64 { + if x != nil { + if x, ok := x.xxx_hidden_SequencingId.(*message_EventId); ok { + return x.EventId + } + } + return 0 +} + +func (x *Message) GetCommandIndex() int64 { + if x != nil { + if x, ok := x.xxx_hidden_SequencingId.(*message_CommandIndex); ok { + return x.CommandIndex + } + } + return 0 +} + +func (x *Message) GetBody() *anypb.Any { + if x != nil { + return x.xxx_hidden_Body + } + return nil +} + +func (x *Message) SetId(v string) { + x.xxx_hidden_Id = v +} + +func (x *Message) SetProtocolInstanceId(v string) { + x.xxx_hidden_ProtocolInstanceId = v +} + +func (x *Message) SetEventId(v int64) { + x.xxx_hidden_SequencingId = &message_EventId{v} +} + +func (x *Message) SetCommandIndex(v int64) { + x.xxx_hidden_SequencingId = &message_CommandIndex{v} +} + +func (x *Message) SetBody(v *anypb.Any) { + x.xxx_hidden_Body = v +} + +func (x *Message) HasSequencingId() bool { + if x == nil { + return false + } + return x.xxx_hidden_SequencingId != nil +} + +func (x *Message) HasEventId() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_SequencingId.(*message_EventId) + return ok +} + +func (x *Message) HasCommandIndex() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_SequencingId.(*message_CommandIndex) + return ok +} + +func (x *Message) HasBody() bool { + if x == nil { + return false + } + return x.xxx_hidden_Body != nil +} + +func (x *Message) ClearSequencingId() { + x.xxx_hidden_SequencingId = nil +} + +func (x *Message) ClearEventId() { + if _, ok := x.xxx_hidden_SequencingId.(*message_EventId); ok { + x.xxx_hidden_SequencingId = nil + } +} + +func (x *Message) ClearCommandIndex() { + if _, ok := x.xxx_hidden_SequencingId.(*message_CommandIndex); ok { + x.xxx_hidden_SequencingId = nil + } +} + +func (x *Message) ClearBody() { + x.xxx_hidden_Body = nil +} + +const Message_SequencingId_not_set_case case_Message_SequencingId = 0 +const Message_EventId_case case_Message_SequencingId = 3 +const Message_CommandIndex_case case_Message_SequencingId = 4 + +func (x *Message) WhichSequencingId() case_Message_SequencingId { + if x == nil { + return Message_SequencingId_not_set_case + } + switch x.xxx_hidden_SequencingId.(type) { + case *message_EventId: + return Message_EventId_case + case *message_CommandIndex: + return Message_CommandIndex_case + default: + return Message_SequencingId_not_set_case + } +} + +type Message_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // An ID for this specific message. + Id string + // Identifies the specific instance of a protocol to which this message + // belongs. + ProtocolInstanceId string + // The event ID or command ID after which this message can be delivered. The + // effects of history up to and including this event ID should be visible to + // the code that handles this message. Omit to opt out of sequencing. + + // Fields of oneof xxx_hidden_SequencingId: + EventId *int64 + CommandIndex *int64 + // -- end of xxx_hidden_SequencingId + // The opaque data carried by this message. The protocol type can be + // extracted from the package name of the message carried inside the Any. + Body *anypb.Any +} + +func (b0 Message_builder) Build() *Message { + m0 := &Message{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Id = b.Id + x.xxx_hidden_ProtocolInstanceId = b.ProtocolInstanceId + if b.EventId != nil { + x.xxx_hidden_SequencingId = &message_EventId{*b.EventId} + } + if b.CommandIndex != nil { + x.xxx_hidden_SequencingId = &message_CommandIndex{*b.CommandIndex} + } + x.xxx_hidden_Body = b.Body + return m0 +} + +type case_Message_SequencingId protoreflect.FieldNumber + +func (x case_Message_SequencingId) String() string { + switch x { + case Message_SequencingId_not_set_case: + return "MessageSequencingIdNotSetCase" + case Message_EventId_case: + return "MessageEventIdCase" + case Message_CommandIndex_case: + return "MessageCommandIndexCase" + default: + return strconv.Itoa(int(x)) + } + +} + +type isMessage_SequencingId interface { + isMessage_SequencingId() +} + +type message_EventId struct { + EventId int64 `protobuf:"varint,3,opt,name=event_id,json=eventId,proto3,oneof"` +} + +type message_CommandIndex struct { + CommandIndex int64 `protobuf:"varint,4,opt,name=command_index,json=commandIndex,proto3,oneof"` +} + +func (*message_EventId) isMessage_SequencingId() {} + +func (*message_CommandIndex) isMessage_SequencingId() {} + +var File_temporal_api_protocol_v1_message_proto protoreflect.FileDescriptor + +const file_temporal_api_protocol_v1_message_proto_rawDesc = "" + + "\n" + + "&temporal/api/protocol/v1/message.proto\x12\x18temporal.api.protocol.v1\x1a\x19google/protobuf/any.proto\"\xca\x01\n" + + "\aMessage\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\x120\n" + + "\x14protocol_instance_id\x18\x02 \x01(\tR\x12protocolInstanceId\x12\x1b\n" + + "\bevent_id\x18\x03 \x01(\x03H\x00R\aeventId\x12%\n" + + "\rcommand_index\x18\x04 \x01(\x03H\x00R\fcommandIndex\x12(\n" + + "\x04body\x18\x05 \x01(\v2\x14.google.protobuf.AnyR\x04bodyB\x0f\n" + + "\rsequencing_idB\x93\x01\n" + + "\x1bio.temporal.api.protocol.v1B\fMessageProtoP\x01Z'go.temporal.io/api/protocol/v1;protocol\xaa\x02\x1aTemporalio.Api.Protocol.V1\xea\x02\x1dTemporalio::Api::Protocol::V1b\x06proto3" + +var file_temporal_api_protocol_v1_message_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_temporal_api_protocol_v1_message_proto_goTypes = []any{ + (*Message)(nil), // 0: temporal.api.protocol.v1.Message + (*anypb.Any)(nil), // 1: google.protobuf.Any +} +var file_temporal_api_protocol_v1_message_proto_depIdxs = []int32{ + 1, // 0: temporal.api.protocol.v1.Message.body:type_name -> google.protobuf.Any + 1, // [1:1] is the sub-list for method output_type + 1, // [1:1] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name +} + +func init() { file_temporal_api_protocol_v1_message_proto_init() } +func file_temporal_api_protocol_v1_message_proto_init() { + if File_temporal_api_protocol_v1_message_proto != nil { + return + } + file_temporal_api_protocol_v1_message_proto_msgTypes[0].OneofWrappers = []any{ + (*message_EventId)(nil), + (*message_CommandIndex)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_api_protocol_v1_message_proto_rawDesc), len(file_temporal_api_protocol_v1_message_proto_rawDesc)), + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_temporal_api_protocol_v1_message_proto_goTypes, + DependencyIndexes: file_temporal_api_protocol_v1_message_proto_depIdxs, + MessageInfos: file_temporal_api_protocol_v1_message_proto_msgTypes, + }.Build() + File_temporal_api_protocol_v1_message_proto = out.File + file_temporal_api_protocol_v1_message_proto_goTypes = nil + file_temporal_api_protocol_v1_message_proto_depIdxs = nil +} diff --git a/query/v1/message.pb.go b/query/v1/message.pb.go index e8937aff..c3561368 100644 --- a/query/v1/message.pb.go +++ b/query/v1/message.pb.go @@ -4,11 +4,12 @@ // protoc // source: temporal/api/query/v1/message.proto +//go:build !protoopaque + package query import ( reflect "reflect" - sync "sync" unsafe "unsafe" v1 "go.temporal.io/api/common/v1" @@ -27,7 +28,7 @@ const ( // See https://docs.temporal.io/docs/concepts/queries/ type WorkflowQuery struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The workflow-author-defined identifier of the query. Typically a function name. QueryType string `protobuf:"bytes,1,opt,name=query_type,json=queryType,proto3" json:"query_type,omitempty"` // Serialized arguments that will be provided to the query handler. @@ -64,11 +65,6 @@ func (x *WorkflowQuery) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use WorkflowQuery.ProtoReflect.Descriptor instead. -func (*WorkflowQuery) Descriptor() ([]byte, []int) { - return file_temporal_api_query_v1_message_proto_rawDescGZIP(), []int{0} -} - func (x *WorkflowQuery) GetQueryType() string { if x != nil { return x.QueryType @@ -90,9 +86,65 @@ func (x *WorkflowQuery) GetHeader() *v1.Header { return nil } +func (x *WorkflowQuery) SetQueryType(v string) { + x.QueryType = v +} + +func (x *WorkflowQuery) SetQueryArgs(v *v1.Payloads) { + x.QueryArgs = v +} + +func (x *WorkflowQuery) SetHeader(v *v1.Header) { + x.Header = v +} + +func (x *WorkflowQuery) HasQueryArgs() bool { + if x == nil { + return false + } + return x.QueryArgs != nil +} + +func (x *WorkflowQuery) HasHeader() bool { + if x == nil { + return false + } + return x.Header != nil +} + +func (x *WorkflowQuery) ClearQueryArgs() { + x.QueryArgs = nil +} + +func (x *WorkflowQuery) ClearHeader() { + x.Header = nil +} + +type WorkflowQuery_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The workflow-author-defined identifier of the query. Typically a function name. + QueryType string + // Serialized arguments that will be provided to the query handler. + QueryArgs *v1.Payloads + // Headers that were passed by the caller of the query and copied by temporal + // server into the workflow task. + Header *v1.Header +} + +func (b0 WorkflowQuery_builder) Build() *WorkflowQuery { + m0 := &WorkflowQuery{} + b, x := &b0, m0 + _, _ = b, x + x.QueryType = b.QueryType + x.QueryArgs = b.QueryArgs + x.Header = b.Header + return m0 +} + // Answer to a `WorkflowQuery` type WorkflowQueryResult struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Did the query succeed or fail? ResultType v11.QueryResultType `protobuf:"varint,1,opt,name=result_type,json=resultType,proto3,enum=temporal.api.enums.v1.QueryResultType" json:"result_type,omitempty"` // Set when the query succeeds with the results. @@ -134,11 +186,6 @@ func (x *WorkflowQueryResult) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use WorkflowQueryResult.ProtoReflect.Descriptor instead. -func (*WorkflowQueryResult) Descriptor() ([]byte, []int) { - return file_temporal_api_query_v1_message_proto_rawDescGZIP(), []int{1} -} - func (x *WorkflowQueryResult) GetResultType() v11.QueryResultType { if x != nil { return x.ResultType @@ -167,8 +214,74 @@ func (x *WorkflowQueryResult) GetFailure() *v12.Failure { return nil } +func (x *WorkflowQueryResult) SetResultType(v v11.QueryResultType) { + x.ResultType = v +} + +func (x *WorkflowQueryResult) SetAnswer(v *v1.Payloads) { + x.Answer = v +} + +func (x *WorkflowQueryResult) SetErrorMessage(v string) { + x.ErrorMessage = v +} + +func (x *WorkflowQueryResult) SetFailure(v *v12.Failure) { + x.Failure = v +} + +func (x *WorkflowQueryResult) HasAnswer() bool { + if x == nil { + return false + } + return x.Answer != nil +} + +func (x *WorkflowQueryResult) HasFailure() bool { + if x == nil { + return false + } + return x.Failure != nil +} + +func (x *WorkflowQueryResult) ClearAnswer() { + x.Answer = nil +} + +func (x *WorkflowQueryResult) ClearFailure() { + x.Failure = nil +} + +type WorkflowQueryResult_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Did the query succeed or fail? + ResultType v11.QueryResultType + // Set when the query succeeds with the results. + // Mutually exclusive with `error_message` and `failure`. + Answer *v1.Payloads + // Mutually exclusive with `answer`. Set when the query fails. + // See also the newer `failure` field. + ErrorMessage string + // The full reason for this query failure. This field is newer than `error_message` and can be encoded by the SDK's + // failure converter to support E2E encryption of messages and stack traces. + // Mutually exclusive with `answer`. Set when the query fails. + Failure *v12.Failure +} + +func (b0 WorkflowQueryResult_builder) Build() *WorkflowQueryResult { + m0 := &WorkflowQueryResult{} + b, x := &b0, m0 + _, _ = b, x + x.ResultType = b.ResultType + x.Answer = b.Answer + x.ErrorMessage = b.ErrorMessage + x.Failure = b.Failure + return m0 +} + type QueryRejected struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Status v11.WorkflowExecutionStatus `protobuf:"varint,1,opt,name=status,proto3,enum=temporal.api.enums.v1.WorkflowExecutionStatus" json:"status,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -199,11 +312,6 @@ func (x *QueryRejected) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use QueryRejected.ProtoReflect.Descriptor instead. -func (*QueryRejected) Descriptor() ([]byte, []int) { - return file_temporal_api_query_v1_message_proto_rawDescGZIP(), []int{2} -} - func (x *QueryRejected) GetStatus() v11.WorkflowExecutionStatus { if x != nil { return x.Status @@ -211,6 +319,24 @@ func (x *QueryRejected) GetStatus() v11.WorkflowExecutionStatus { return v11.WorkflowExecutionStatus(0) } +func (x *QueryRejected) SetStatus(v v11.WorkflowExecutionStatus) { + x.Status = v +} + +type QueryRejected_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Status v11.WorkflowExecutionStatus +} + +func (b0 QueryRejected_builder) Build() *QueryRejected { + m0 := &QueryRejected{} + b, x := &b0, m0 + _, _ = b, x + x.Status = b.Status + return m0 +} + var File_temporal_api_query_v1_message_proto protoreflect.FileDescriptor const file_temporal_api_query_v1_message_proto_rawDesc = "" + @@ -232,18 +358,6 @@ const file_temporal_api_query_v1_message_proto_rawDesc = "" + "\x06status\x18\x01 \x01(\x0e2..temporal.api.enums.v1.WorkflowExecutionStatusR\x06statusB\x84\x01\n" + "\x18io.temporal.api.query.v1B\fMessageProtoP\x01Z!go.temporal.io/api/query/v1;query\xaa\x02\x17Temporalio.Api.Query.V1\xea\x02\x1aTemporalio::Api::Query::V1b\x06proto3" -var ( - file_temporal_api_query_v1_message_proto_rawDescOnce sync.Once - file_temporal_api_query_v1_message_proto_rawDescData []byte -) - -func file_temporal_api_query_v1_message_proto_rawDescGZIP() []byte { - file_temporal_api_query_v1_message_proto_rawDescOnce.Do(func() { - file_temporal_api_query_v1_message_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_api_query_v1_message_proto_rawDesc), len(file_temporal_api_query_v1_message_proto_rawDesc))) - }) - return file_temporal_api_query_v1_message_proto_rawDescData -} - var file_temporal_api_query_v1_message_proto_msgTypes = make([]protoimpl.MessageInfo, 3) var file_temporal_api_query_v1_message_proto_goTypes = []any{ (*WorkflowQuery)(nil), // 0: temporal.api.query.v1.WorkflowQuery diff --git a/query/v1/message_protoopaque.pb.go b/query/v1/message_protoopaque.pb.go new file mode 100644 index 00000000..c1d17149 --- /dev/null +++ b/query/v1/message_protoopaque.pb.go @@ -0,0 +1,396 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// plugins: +// protoc-gen-go +// protoc +// source: temporal/api/query/v1/message.proto + +//go:build protoopaque + +package query + +import ( + reflect "reflect" + unsafe "unsafe" + + v1 "go.temporal.io/api/common/v1" + v11 "go.temporal.io/api/enums/v1" + v12 "go.temporal.io/api/failure/v1" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// See https://docs.temporal.io/docs/concepts/queries/ +type WorkflowQuery struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_QueryType string `protobuf:"bytes,1,opt,name=query_type,json=queryType,proto3"` + xxx_hidden_QueryArgs *v1.Payloads `protobuf:"bytes,2,opt,name=query_args,json=queryArgs,proto3"` + xxx_hidden_Header *v1.Header `protobuf:"bytes,3,opt,name=header,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowQuery) Reset() { + *x = WorkflowQuery{} + mi := &file_temporal_api_query_v1_message_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkflowQuery) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowQuery) ProtoMessage() {} + +func (x *WorkflowQuery) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_query_v1_message_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkflowQuery) GetQueryType() string { + if x != nil { + return x.xxx_hidden_QueryType + } + return "" +} + +func (x *WorkflowQuery) GetQueryArgs() *v1.Payloads { + if x != nil { + return x.xxx_hidden_QueryArgs + } + return nil +} + +func (x *WorkflowQuery) GetHeader() *v1.Header { + if x != nil { + return x.xxx_hidden_Header + } + return nil +} + +func (x *WorkflowQuery) SetQueryType(v string) { + x.xxx_hidden_QueryType = v +} + +func (x *WorkflowQuery) SetQueryArgs(v *v1.Payloads) { + x.xxx_hidden_QueryArgs = v +} + +func (x *WorkflowQuery) SetHeader(v *v1.Header) { + x.xxx_hidden_Header = v +} + +func (x *WorkflowQuery) HasQueryArgs() bool { + if x == nil { + return false + } + return x.xxx_hidden_QueryArgs != nil +} + +func (x *WorkflowQuery) HasHeader() bool { + if x == nil { + return false + } + return x.xxx_hidden_Header != nil +} + +func (x *WorkflowQuery) ClearQueryArgs() { + x.xxx_hidden_QueryArgs = nil +} + +func (x *WorkflowQuery) ClearHeader() { + x.xxx_hidden_Header = nil +} + +type WorkflowQuery_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The workflow-author-defined identifier of the query. Typically a function name. + QueryType string + // Serialized arguments that will be provided to the query handler. + QueryArgs *v1.Payloads + // Headers that were passed by the caller of the query and copied by temporal + // server into the workflow task. + Header *v1.Header +} + +func (b0 WorkflowQuery_builder) Build() *WorkflowQuery { + m0 := &WorkflowQuery{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_QueryType = b.QueryType + x.xxx_hidden_QueryArgs = b.QueryArgs + x.xxx_hidden_Header = b.Header + return m0 +} + +// Answer to a `WorkflowQuery` +type WorkflowQueryResult struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ResultType v11.QueryResultType `protobuf:"varint,1,opt,name=result_type,json=resultType,proto3,enum=temporal.api.enums.v1.QueryResultType"` + xxx_hidden_Answer *v1.Payloads `protobuf:"bytes,2,opt,name=answer,proto3"` + xxx_hidden_ErrorMessage string `protobuf:"bytes,3,opt,name=error_message,json=errorMessage,proto3"` + xxx_hidden_Failure *v12.Failure `protobuf:"bytes,4,opt,name=failure,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowQueryResult) Reset() { + *x = WorkflowQueryResult{} + mi := &file_temporal_api_query_v1_message_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkflowQueryResult) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowQueryResult) ProtoMessage() {} + +func (x *WorkflowQueryResult) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_query_v1_message_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkflowQueryResult) GetResultType() v11.QueryResultType { + if x != nil { + return x.xxx_hidden_ResultType + } + return v11.QueryResultType(0) +} + +func (x *WorkflowQueryResult) GetAnswer() *v1.Payloads { + if x != nil { + return x.xxx_hidden_Answer + } + return nil +} + +func (x *WorkflowQueryResult) GetErrorMessage() string { + if x != nil { + return x.xxx_hidden_ErrorMessage + } + return "" +} + +func (x *WorkflowQueryResult) GetFailure() *v12.Failure { + if x != nil { + return x.xxx_hidden_Failure + } + return nil +} + +func (x *WorkflowQueryResult) SetResultType(v v11.QueryResultType) { + x.xxx_hidden_ResultType = v +} + +func (x *WorkflowQueryResult) SetAnswer(v *v1.Payloads) { + x.xxx_hidden_Answer = v +} + +func (x *WorkflowQueryResult) SetErrorMessage(v string) { + x.xxx_hidden_ErrorMessage = v +} + +func (x *WorkflowQueryResult) SetFailure(v *v12.Failure) { + x.xxx_hidden_Failure = v +} + +func (x *WorkflowQueryResult) HasAnswer() bool { + if x == nil { + return false + } + return x.xxx_hidden_Answer != nil +} + +func (x *WorkflowQueryResult) HasFailure() bool { + if x == nil { + return false + } + return x.xxx_hidden_Failure != nil +} + +func (x *WorkflowQueryResult) ClearAnswer() { + x.xxx_hidden_Answer = nil +} + +func (x *WorkflowQueryResult) ClearFailure() { + x.xxx_hidden_Failure = nil +} + +type WorkflowQueryResult_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Did the query succeed or fail? + ResultType v11.QueryResultType + // Set when the query succeeds with the results. + // Mutually exclusive with `error_message` and `failure`. + Answer *v1.Payloads + // Mutually exclusive with `answer`. Set when the query fails. + // See also the newer `failure` field. + ErrorMessage string + // The full reason for this query failure. This field is newer than `error_message` and can be encoded by the SDK's + // failure converter to support E2E encryption of messages and stack traces. + // Mutually exclusive with `answer`. Set when the query fails. + Failure *v12.Failure +} + +func (b0 WorkflowQueryResult_builder) Build() *WorkflowQueryResult { + m0 := &WorkflowQueryResult{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ResultType = b.ResultType + x.xxx_hidden_Answer = b.Answer + x.xxx_hidden_ErrorMessage = b.ErrorMessage + x.xxx_hidden_Failure = b.Failure + return m0 +} + +type QueryRejected struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Status v11.WorkflowExecutionStatus `protobuf:"varint,1,opt,name=status,proto3,enum=temporal.api.enums.v1.WorkflowExecutionStatus"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *QueryRejected) Reset() { + *x = QueryRejected{} + mi := &file_temporal_api_query_v1_message_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *QueryRejected) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryRejected) ProtoMessage() {} + +func (x *QueryRejected) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_query_v1_message_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *QueryRejected) GetStatus() v11.WorkflowExecutionStatus { + if x != nil { + return x.xxx_hidden_Status + } + return v11.WorkflowExecutionStatus(0) +} + +func (x *QueryRejected) SetStatus(v v11.WorkflowExecutionStatus) { + x.xxx_hidden_Status = v +} + +type QueryRejected_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Status v11.WorkflowExecutionStatus +} + +func (b0 QueryRejected_builder) Build() *QueryRejected { + m0 := &QueryRejected{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Status = b.Status + return m0 +} + +var File_temporal_api_query_v1_message_proto protoreflect.FileDescriptor + +const file_temporal_api_query_v1_message_proto_rawDesc = "" + + "\n" + + "#temporal/api/query/v1/message.proto\x12\x15temporal.api.query.v1\x1a!temporal/api/enums/v1/query.proto\x1a$temporal/api/enums/v1/workflow.proto\x1a$temporal/api/common/v1/message.proto\x1a%temporal/api/failure/v1/message.proto\"\xa7\x01\n" + + "\rWorkflowQuery\x12\x1d\n" + + "\n" + + "query_type\x18\x01 \x01(\tR\tqueryType\x12?\n" + + "\n" + + "query_args\x18\x02 \x01(\v2 .temporal.api.common.v1.PayloadsR\tqueryArgs\x126\n" + + "\x06header\x18\x03 \x01(\v2\x1e.temporal.api.common.v1.HeaderR\x06header\"\xf9\x01\n" + + "\x13WorkflowQueryResult\x12G\n" + + "\vresult_type\x18\x01 \x01(\x0e2&.temporal.api.enums.v1.QueryResultTypeR\n" + + "resultType\x128\n" + + "\x06answer\x18\x02 \x01(\v2 .temporal.api.common.v1.PayloadsR\x06answer\x12#\n" + + "\rerror_message\x18\x03 \x01(\tR\ferrorMessage\x12:\n" + + "\afailure\x18\x04 \x01(\v2 .temporal.api.failure.v1.FailureR\afailure\"W\n" + + "\rQueryRejected\x12F\n" + + "\x06status\x18\x01 \x01(\x0e2..temporal.api.enums.v1.WorkflowExecutionStatusR\x06statusB\x84\x01\n" + + "\x18io.temporal.api.query.v1B\fMessageProtoP\x01Z!go.temporal.io/api/query/v1;query\xaa\x02\x17Temporalio.Api.Query.V1\xea\x02\x1aTemporalio::Api::Query::V1b\x06proto3" + +var file_temporal_api_query_v1_message_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_temporal_api_query_v1_message_proto_goTypes = []any{ + (*WorkflowQuery)(nil), // 0: temporal.api.query.v1.WorkflowQuery + (*WorkflowQueryResult)(nil), // 1: temporal.api.query.v1.WorkflowQueryResult + (*QueryRejected)(nil), // 2: temporal.api.query.v1.QueryRejected + (*v1.Payloads)(nil), // 3: temporal.api.common.v1.Payloads + (*v1.Header)(nil), // 4: temporal.api.common.v1.Header + (v11.QueryResultType)(0), // 5: temporal.api.enums.v1.QueryResultType + (*v12.Failure)(nil), // 6: temporal.api.failure.v1.Failure + (v11.WorkflowExecutionStatus)(0), // 7: temporal.api.enums.v1.WorkflowExecutionStatus +} +var file_temporal_api_query_v1_message_proto_depIdxs = []int32{ + 3, // 0: temporal.api.query.v1.WorkflowQuery.query_args:type_name -> temporal.api.common.v1.Payloads + 4, // 1: temporal.api.query.v1.WorkflowQuery.header:type_name -> temporal.api.common.v1.Header + 5, // 2: temporal.api.query.v1.WorkflowQueryResult.result_type:type_name -> temporal.api.enums.v1.QueryResultType + 3, // 3: temporal.api.query.v1.WorkflowQueryResult.answer:type_name -> temporal.api.common.v1.Payloads + 6, // 4: temporal.api.query.v1.WorkflowQueryResult.failure:type_name -> temporal.api.failure.v1.Failure + 7, // 5: temporal.api.query.v1.QueryRejected.status:type_name -> temporal.api.enums.v1.WorkflowExecutionStatus + 6, // [6:6] is the sub-list for method output_type + 6, // [6:6] is the sub-list for method input_type + 6, // [6:6] is the sub-list for extension type_name + 6, // [6:6] is the sub-list for extension extendee + 0, // [0:6] is the sub-list for field type_name +} + +func init() { file_temporal_api_query_v1_message_proto_init() } +func file_temporal_api_query_v1_message_proto_init() { + if File_temporal_api_query_v1_message_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_api_query_v1_message_proto_rawDesc), len(file_temporal_api_query_v1_message_proto_rawDesc)), + NumEnums: 0, + NumMessages: 3, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_temporal_api_query_v1_message_proto_goTypes, + DependencyIndexes: file_temporal_api_query_v1_message_proto_depIdxs, + MessageInfos: file_temporal_api_query_v1_message_proto_msgTypes, + }.Build() + File_temporal_api_query_v1_message_proto = out.File + file_temporal_api_query_v1_message_proto_goTypes = nil + file_temporal_api_query_v1_message_proto_depIdxs = nil +} diff --git a/replication/v1/message.pb.go b/replication/v1/message.pb.go index 52eebe67..8b4ba26b 100644 --- a/replication/v1/message.pb.go +++ b/replication/v1/message.pb.go @@ -4,11 +4,12 @@ // protoc // source: temporal/api/replication/v1/message.proto +//go:build !protoopaque + package replication import ( reflect "reflect" - sync "sync" unsafe "unsafe" v1 "go.temporal.io/api/enums/v1" @@ -25,7 +26,7 @@ const ( ) type ClusterReplicationConfig struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` ClusterName string `protobuf:"bytes,1,opt,name=cluster_name,json=clusterName,proto3" json:"cluster_name,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -56,11 +57,6 @@ func (x *ClusterReplicationConfig) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ClusterReplicationConfig.ProtoReflect.Descriptor instead. -func (*ClusterReplicationConfig) Descriptor() ([]byte, []int) { - return file_temporal_api_replication_v1_message_proto_rawDescGZIP(), []int{0} -} - func (x *ClusterReplicationConfig) GetClusterName() string { if x != nil { return x.ClusterName @@ -68,8 +64,26 @@ func (x *ClusterReplicationConfig) GetClusterName() string { return "" } +func (x *ClusterReplicationConfig) SetClusterName(v string) { + x.ClusterName = v +} + +type ClusterReplicationConfig_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ClusterName string +} + +func (b0 ClusterReplicationConfig_builder) Build() *ClusterReplicationConfig { + m0 := &ClusterReplicationConfig{} + b, x := &b0, m0 + _, _ = b, x + x.ClusterName = b.ClusterName + return m0 +} + type NamespaceReplicationConfig struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` ActiveClusterName string `protobuf:"bytes,1,opt,name=active_cluster_name,json=activeClusterName,proto3" json:"active_cluster_name,omitempty"` Clusters []*ClusterReplicationConfig `protobuf:"bytes,2,rep,name=clusters,proto3" json:"clusters,omitempty"` State v1.ReplicationState `protobuf:"varint,3,opt,name=state,proto3,enum=temporal.api.enums.v1.ReplicationState" json:"state,omitempty"` @@ -102,11 +116,6 @@ func (x *NamespaceReplicationConfig) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use NamespaceReplicationConfig.ProtoReflect.Descriptor instead. -func (*NamespaceReplicationConfig) Descriptor() ([]byte, []int) { - return file_temporal_api_replication_v1_message_proto_rawDescGZIP(), []int{1} -} - func (x *NamespaceReplicationConfig) GetActiveClusterName() string { if x != nil { return x.ActiveClusterName @@ -128,9 +137,39 @@ func (x *NamespaceReplicationConfig) GetState() v1.ReplicationState { return v1.ReplicationState(0) } +func (x *NamespaceReplicationConfig) SetActiveClusterName(v string) { + x.ActiveClusterName = v +} + +func (x *NamespaceReplicationConfig) SetClusters(v []*ClusterReplicationConfig) { + x.Clusters = v +} + +func (x *NamespaceReplicationConfig) SetState(v v1.ReplicationState) { + x.State = v +} + +type NamespaceReplicationConfig_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ActiveClusterName string + Clusters []*ClusterReplicationConfig + State v1.ReplicationState +} + +func (b0 NamespaceReplicationConfig_builder) Build() *NamespaceReplicationConfig { + m0 := &NamespaceReplicationConfig{} + b, x := &b0, m0 + _, _ = b, x + x.ActiveClusterName = b.ActiveClusterName + x.Clusters = b.Clusters + x.State = b.State + return m0 +} + // Represents a historical replication status of a Namespace type FailoverStatus struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Timestamp when the Cluster switched to the following failover_version FailoverTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=failover_time,json=failoverTime,proto3" json:"failover_time,omitempty"` FailoverVersion int64 `protobuf:"varint,2,opt,name=failover_version,json=failoverVersion,proto3" json:"failover_version,omitempty"` @@ -163,11 +202,6 @@ func (x *FailoverStatus) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use FailoverStatus.ProtoReflect.Descriptor instead. -func (*FailoverStatus) Descriptor() ([]byte, []int) { - return file_temporal_api_replication_v1_message_proto_rawDescGZIP(), []int{2} -} - func (x *FailoverStatus) GetFailoverTime() *timestamppb.Timestamp { if x != nil { return x.FailoverTime @@ -182,6 +216,42 @@ func (x *FailoverStatus) GetFailoverVersion() int64 { return 0 } +func (x *FailoverStatus) SetFailoverTime(v *timestamppb.Timestamp) { + x.FailoverTime = v +} + +func (x *FailoverStatus) SetFailoverVersion(v int64) { + x.FailoverVersion = v +} + +func (x *FailoverStatus) HasFailoverTime() bool { + if x == nil { + return false + } + return x.FailoverTime != nil +} + +func (x *FailoverStatus) ClearFailoverTime() { + x.FailoverTime = nil +} + +type FailoverStatus_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Timestamp when the Cluster switched to the following failover_version + FailoverTime *timestamppb.Timestamp + FailoverVersion int64 +} + +func (b0 FailoverStatus_builder) Build() *FailoverStatus { + m0 := &FailoverStatus{} + b, x := &b0, m0 + _, _ = b, x + x.FailoverTime = b.FailoverTime + x.FailoverVersion = b.FailoverVersion + return m0 +} + var File_temporal_api_replication_v1_message_proto protoreflect.FileDescriptor const file_temporal_api_replication_v1_message_proto_rawDesc = "" + @@ -198,18 +268,6 @@ const file_temporal_api_replication_v1_message_proto_rawDesc = "" + "\x10failover_version\x18\x02 \x01(\x03R\x0ffailoverVersionB\xa2\x01\n" + "\x1eio.temporal.api.replication.v1B\fMessageProtoP\x01Z-go.temporal.io/api/replication/v1;replication\xaa\x02\x1dTemporalio.Api.Replication.V1\xea\x02 Temporalio::Api::Replication::V1b\x06proto3" -var ( - file_temporal_api_replication_v1_message_proto_rawDescOnce sync.Once - file_temporal_api_replication_v1_message_proto_rawDescData []byte -) - -func file_temporal_api_replication_v1_message_proto_rawDescGZIP() []byte { - file_temporal_api_replication_v1_message_proto_rawDescOnce.Do(func() { - file_temporal_api_replication_v1_message_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_api_replication_v1_message_proto_rawDesc), len(file_temporal_api_replication_v1_message_proto_rawDesc))) - }) - return file_temporal_api_replication_v1_message_proto_rawDescData -} - var file_temporal_api_replication_v1_message_proto_msgTypes = make([]protoimpl.MessageInfo, 3) var file_temporal_api_replication_v1_message_proto_goTypes = []any{ (*ClusterReplicationConfig)(nil), // 0: temporal.api.replication.v1.ClusterReplicationConfig diff --git a/replication/v1/message_protoopaque.pb.go b/replication/v1/message_protoopaque.pb.go new file mode 100644 index 00000000..0edc34d8 --- /dev/null +++ b/replication/v1/message_protoopaque.pb.go @@ -0,0 +1,313 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// plugins: +// protoc-gen-go +// protoc +// source: temporal/api/replication/v1/message.proto + +//go:build protoopaque + +package replication + +import ( + reflect "reflect" + unsafe "unsafe" + + v1 "go.temporal.io/api/enums/v1" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type ClusterReplicationConfig struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ClusterName string `protobuf:"bytes,1,opt,name=cluster_name,json=clusterName,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ClusterReplicationConfig) Reset() { + *x = ClusterReplicationConfig{} + mi := &file_temporal_api_replication_v1_message_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ClusterReplicationConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ClusterReplicationConfig) ProtoMessage() {} + +func (x *ClusterReplicationConfig) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_replication_v1_message_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ClusterReplicationConfig) GetClusterName() string { + if x != nil { + return x.xxx_hidden_ClusterName + } + return "" +} + +func (x *ClusterReplicationConfig) SetClusterName(v string) { + x.xxx_hidden_ClusterName = v +} + +type ClusterReplicationConfig_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ClusterName string +} + +func (b0 ClusterReplicationConfig_builder) Build() *ClusterReplicationConfig { + m0 := &ClusterReplicationConfig{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ClusterName = b.ClusterName + return m0 +} + +type NamespaceReplicationConfig struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ActiveClusterName string `protobuf:"bytes,1,opt,name=active_cluster_name,json=activeClusterName,proto3"` + xxx_hidden_Clusters *[]*ClusterReplicationConfig `protobuf:"bytes,2,rep,name=clusters,proto3"` + xxx_hidden_State v1.ReplicationState `protobuf:"varint,3,opt,name=state,proto3,enum=temporal.api.enums.v1.ReplicationState"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *NamespaceReplicationConfig) Reset() { + *x = NamespaceReplicationConfig{} + mi := &file_temporal_api_replication_v1_message_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *NamespaceReplicationConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NamespaceReplicationConfig) ProtoMessage() {} + +func (x *NamespaceReplicationConfig) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_replication_v1_message_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *NamespaceReplicationConfig) GetActiveClusterName() string { + if x != nil { + return x.xxx_hidden_ActiveClusterName + } + return "" +} + +func (x *NamespaceReplicationConfig) GetClusters() []*ClusterReplicationConfig { + if x != nil { + if x.xxx_hidden_Clusters != nil { + return *x.xxx_hidden_Clusters + } + } + return nil +} + +func (x *NamespaceReplicationConfig) GetState() v1.ReplicationState { + if x != nil { + return x.xxx_hidden_State + } + return v1.ReplicationState(0) +} + +func (x *NamespaceReplicationConfig) SetActiveClusterName(v string) { + x.xxx_hidden_ActiveClusterName = v +} + +func (x *NamespaceReplicationConfig) SetClusters(v []*ClusterReplicationConfig) { + x.xxx_hidden_Clusters = &v +} + +func (x *NamespaceReplicationConfig) SetState(v v1.ReplicationState) { + x.xxx_hidden_State = v +} + +type NamespaceReplicationConfig_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ActiveClusterName string + Clusters []*ClusterReplicationConfig + State v1.ReplicationState +} + +func (b0 NamespaceReplicationConfig_builder) Build() *NamespaceReplicationConfig { + m0 := &NamespaceReplicationConfig{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ActiveClusterName = b.ActiveClusterName + x.xxx_hidden_Clusters = &b.Clusters + x.xxx_hidden_State = b.State + return m0 +} + +// Represents a historical replication status of a Namespace +type FailoverStatus struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_FailoverTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=failover_time,json=failoverTime,proto3"` + xxx_hidden_FailoverVersion int64 `protobuf:"varint,2,opt,name=failover_version,json=failoverVersion,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *FailoverStatus) Reset() { + *x = FailoverStatus{} + mi := &file_temporal_api_replication_v1_message_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *FailoverStatus) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FailoverStatus) ProtoMessage() {} + +func (x *FailoverStatus) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_replication_v1_message_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *FailoverStatus) GetFailoverTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_FailoverTime + } + return nil +} + +func (x *FailoverStatus) GetFailoverVersion() int64 { + if x != nil { + return x.xxx_hidden_FailoverVersion + } + return 0 +} + +func (x *FailoverStatus) SetFailoverTime(v *timestamppb.Timestamp) { + x.xxx_hidden_FailoverTime = v +} + +func (x *FailoverStatus) SetFailoverVersion(v int64) { + x.xxx_hidden_FailoverVersion = v +} + +func (x *FailoverStatus) HasFailoverTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_FailoverTime != nil +} + +func (x *FailoverStatus) ClearFailoverTime() { + x.xxx_hidden_FailoverTime = nil +} + +type FailoverStatus_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Timestamp when the Cluster switched to the following failover_version + FailoverTime *timestamppb.Timestamp + FailoverVersion int64 +} + +func (b0 FailoverStatus_builder) Build() *FailoverStatus { + m0 := &FailoverStatus{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_FailoverTime = b.FailoverTime + x.xxx_hidden_FailoverVersion = b.FailoverVersion + return m0 +} + +var File_temporal_api_replication_v1_message_proto protoreflect.FileDescriptor + +const file_temporal_api_replication_v1_message_proto_rawDesc = "" + + "\n" + + ")temporal/api/replication/v1/message.proto\x12\x1btemporal.api.replication.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a%temporal/api/enums/v1/namespace.proto\"=\n" + + "\x18ClusterReplicationConfig\x12!\n" + + "\fcluster_name\x18\x01 \x01(\tR\vclusterName\"\xde\x01\n" + + "\x1aNamespaceReplicationConfig\x12.\n" + + "\x13active_cluster_name\x18\x01 \x01(\tR\x11activeClusterName\x12Q\n" + + "\bclusters\x18\x02 \x03(\v25.temporal.api.replication.v1.ClusterReplicationConfigR\bclusters\x12=\n" + + "\x05state\x18\x03 \x01(\x0e2'.temporal.api.enums.v1.ReplicationStateR\x05state\"|\n" + + "\x0eFailoverStatus\x12?\n" + + "\rfailover_time\x18\x01 \x01(\v2\x1a.google.protobuf.TimestampR\ffailoverTime\x12)\n" + + "\x10failover_version\x18\x02 \x01(\x03R\x0ffailoverVersionB\xa2\x01\n" + + "\x1eio.temporal.api.replication.v1B\fMessageProtoP\x01Z-go.temporal.io/api/replication/v1;replication\xaa\x02\x1dTemporalio.Api.Replication.V1\xea\x02 Temporalio::Api::Replication::V1b\x06proto3" + +var file_temporal_api_replication_v1_message_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_temporal_api_replication_v1_message_proto_goTypes = []any{ + (*ClusterReplicationConfig)(nil), // 0: temporal.api.replication.v1.ClusterReplicationConfig + (*NamespaceReplicationConfig)(nil), // 1: temporal.api.replication.v1.NamespaceReplicationConfig + (*FailoverStatus)(nil), // 2: temporal.api.replication.v1.FailoverStatus + (v1.ReplicationState)(0), // 3: temporal.api.enums.v1.ReplicationState + (*timestamppb.Timestamp)(nil), // 4: google.protobuf.Timestamp +} +var file_temporal_api_replication_v1_message_proto_depIdxs = []int32{ + 0, // 0: temporal.api.replication.v1.NamespaceReplicationConfig.clusters:type_name -> temporal.api.replication.v1.ClusterReplicationConfig + 3, // 1: temporal.api.replication.v1.NamespaceReplicationConfig.state:type_name -> temporal.api.enums.v1.ReplicationState + 4, // 2: temporal.api.replication.v1.FailoverStatus.failover_time:type_name -> google.protobuf.Timestamp + 3, // [3:3] is the sub-list for method output_type + 3, // [3:3] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name +} + +func init() { file_temporal_api_replication_v1_message_proto_init() } +func file_temporal_api_replication_v1_message_proto_init() { + if File_temporal_api_replication_v1_message_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_api_replication_v1_message_proto_rawDesc), len(file_temporal_api_replication_v1_message_proto_rawDesc)), + NumEnums: 0, + NumMessages: 3, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_temporal_api_replication_v1_message_proto_goTypes, + DependencyIndexes: file_temporal_api_replication_v1_message_proto_depIdxs, + MessageInfos: file_temporal_api_replication_v1_message_proto_msgTypes, + }.Build() + File_temporal_api_replication_v1_message_proto = out.File + file_temporal_api_replication_v1_message_proto_goTypes = nil + file_temporal_api_replication_v1_message_proto_depIdxs = nil +} diff --git a/rules/v1/message.pb.go b/rules/v1/message.pb.go index dcbbbc1f..a93cfc49 100644 --- a/rules/v1/message.pb.go +++ b/rules/v1/message.pb.go @@ -4,11 +4,13 @@ // protoc // source: temporal/api/rules/v1/message.proto +//go:build !protoopaque + package rules import ( reflect "reflect" - sync "sync" + "strconv" unsafe "unsafe" protoreflect "google.golang.org/protobuf/reflect/protoreflect" @@ -24,7 +26,7 @@ const ( ) type WorkflowRuleAction struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Supported actions. // // Types that are valid to be assigned to Variant: @@ -60,11 +62,6 @@ func (x *WorkflowRuleAction) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use WorkflowRuleAction.ProtoReflect.Descriptor instead. -func (*WorkflowRuleAction) Descriptor() ([]byte, []int) { - return file_temporal_api_rules_v1_message_proto_rawDescGZIP(), []int{0} -} - func (x *WorkflowRuleAction) GetVariant() isWorkflowRuleAction_Variant { if x != nil { return x.Variant @@ -81,6 +78,88 @@ func (x *WorkflowRuleAction) GetActivityPause() *WorkflowRuleAction_ActionActivi return nil } +func (x *WorkflowRuleAction) SetActivityPause(v *WorkflowRuleAction_ActionActivityPause) { + if v == nil { + x.Variant = nil + return + } + x.Variant = &WorkflowRuleAction_ActivityPause{v} +} + +func (x *WorkflowRuleAction) HasVariant() bool { + if x == nil { + return false + } + return x.Variant != nil +} + +func (x *WorkflowRuleAction) HasActivityPause() bool { + if x == nil { + return false + } + _, ok := x.Variant.(*WorkflowRuleAction_ActivityPause) + return ok +} + +func (x *WorkflowRuleAction) ClearVariant() { + x.Variant = nil +} + +func (x *WorkflowRuleAction) ClearActivityPause() { + if _, ok := x.Variant.(*WorkflowRuleAction_ActivityPause); ok { + x.Variant = nil + } +} + +const WorkflowRuleAction_Variant_not_set_case case_WorkflowRuleAction_Variant = 0 +const WorkflowRuleAction_ActivityPause_case case_WorkflowRuleAction_Variant = 1 + +func (x *WorkflowRuleAction) WhichVariant() case_WorkflowRuleAction_Variant { + if x == nil { + return WorkflowRuleAction_Variant_not_set_case + } + switch x.Variant.(type) { + case *WorkflowRuleAction_ActivityPause: + return WorkflowRuleAction_ActivityPause_case + default: + return WorkflowRuleAction_Variant_not_set_case + } +} + +type WorkflowRuleAction_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Supported actions. + + // Fields of oneof Variant: + ActivityPause *WorkflowRuleAction_ActionActivityPause + // -- end of Variant +} + +func (b0 WorkflowRuleAction_builder) Build() *WorkflowRuleAction { + m0 := &WorkflowRuleAction{} + b, x := &b0, m0 + _, _ = b, x + if b.ActivityPause != nil { + x.Variant = &WorkflowRuleAction_ActivityPause{b.ActivityPause} + } + return m0 +} + +type case_WorkflowRuleAction_Variant protoreflect.FieldNumber + +func (x case_WorkflowRuleAction_Variant) String() string { + switch x { + case WorkflowRuleAction_Variant_not_set_case: + return "WorkflowRuleActionVariantNotSetCase" + case WorkflowRuleAction_ActivityPause_case: + return "WorkflowRuleActionActivityPauseCase" + default: + return strconv.Itoa(int(x)) + } + +} + type isWorkflowRuleAction_Variant interface { isWorkflowRuleAction_Variant() } @@ -92,7 +171,7 @@ type WorkflowRuleAction_ActivityPause struct { func (*WorkflowRuleAction_ActivityPause) isWorkflowRuleAction_Variant() {} type WorkflowRuleSpec struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The id of the new workflow rule. Must be unique within the namespace. // Can be set by the user, and can have business meaning. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` @@ -146,11 +225,6 @@ func (x *WorkflowRuleSpec) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use WorkflowRuleSpec.ProtoReflect.Descriptor instead. -func (*WorkflowRuleSpec) Descriptor() ([]byte, []int) { - return file_temporal_api_rules_v1_message_proto_rawDescGZIP(), []int{1} -} - func (x *WorkflowRuleSpec) GetId() string { if x != nil { return x.Id @@ -195,6 +269,137 @@ func (x *WorkflowRuleSpec) GetExpirationTime() *timestamppb.Timestamp { return nil } +func (x *WorkflowRuleSpec) SetId(v string) { + x.Id = v +} + +func (x *WorkflowRuleSpec) SetActivityStart(v *WorkflowRuleSpec_ActivityStartingTrigger) { + if v == nil { + x.Trigger = nil + return + } + x.Trigger = &WorkflowRuleSpec_ActivityStart{v} +} + +func (x *WorkflowRuleSpec) SetVisibilityQuery(v string) { + x.VisibilityQuery = v +} + +func (x *WorkflowRuleSpec) SetActions(v []*WorkflowRuleAction) { + x.Actions = v +} + +func (x *WorkflowRuleSpec) SetExpirationTime(v *timestamppb.Timestamp) { + x.ExpirationTime = v +} + +func (x *WorkflowRuleSpec) HasTrigger() bool { + if x == nil { + return false + } + return x.Trigger != nil +} + +func (x *WorkflowRuleSpec) HasActivityStart() bool { + if x == nil { + return false + } + _, ok := x.Trigger.(*WorkflowRuleSpec_ActivityStart) + return ok +} + +func (x *WorkflowRuleSpec) HasExpirationTime() bool { + if x == nil { + return false + } + return x.ExpirationTime != nil +} + +func (x *WorkflowRuleSpec) ClearTrigger() { + x.Trigger = nil +} + +func (x *WorkflowRuleSpec) ClearActivityStart() { + if _, ok := x.Trigger.(*WorkflowRuleSpec_ActivityStart); ok { + x.Trigger = nil + } +} + +func (x *WorkflowRuleSpec) ClearExpirationTime() { + x.ExpirationTime = nil +} + +const WorkflowRuleSpec_Trigger_not_set_case case_WorkflowRuleSpec_Trigger = 0 +const WorkflowRuleSpec_ActivityStart_case case_WorkflowRuleSpec_Trigger = 2 + +func (x *WorkflowRuleSpec) WhichTrigger() case_WorkflowRuleSpec_Trigger { + if x == nil { + return WorkflowRuleSpec_Trigger_not_set_case + } + switch x.Trigger.(type) { + case *WorkflowRuleSpec_ActivityStart: + return WorkflowRuleSpec_ActivityStart_case + default: + return WorkflowRuleSpec_Trigger_not_set_case + } +} + +type WorkflowRuleSpec_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The id of the new workflow rule. Must be unique within the namespace. + // Can be set by the user, and can have business meaning. + Id string + // Specifies how the rule should be triggered and evaluated. + // Currently, only "activity start" type is supported. + + // Fields of oneof Trigger: + ActivityStart *WorkflowRuleSpec_ActivityStartingTrigger + // -- end of Trigger + // Restricted Visibility query. + // This query is used to filter workflows in this namespace to which this rule should apply. + // It is applied to any running workflow each time a triggering event occurs, before the trigger predicate is evaluated. + // The following workflow attributes are supported: + // - WorkflowType + // - WorkflowId + // - StartTime + // - ExecutionStatus + VisibilityQuery string + // WorkflowRuleAction to be taken when the rule is triggered and predicate is matched. + Actions []*WorkflowRuleAction + // Expiration time of the rule. After this time, the rule will be deleted. + // Can be empty if the rule should never expire. + ExpirationTime *timestamppb.Timestamp +} + +func (b0 WorkflowRuleSpec_builder) Build() *WorkflowRuleSpec { + m0 := &WorkflowRuleSpec{} + b, x := &b0, m0 + _, _ = b, x + x.Id = b.Id + if b.ActivityStart != nil { + x.Trigger = &WorkflowRuleSpec_ActivityStart{b.ActivityStart} + } + x.VisibilityQuery = b.VisibilityQuery + x.Actions = b.Actions + x.ExpirationTime = b.ExpirationTime + return m0 +} + +type case_WorkflowRuleSpec_Trigger protoreflect.FieldNumber + +func (x case_WorkflowRuleSpec_Trigger) String() string { + switch x { + case WorkflowRuleSpec_Trigger_not_set_case: + return "WorkflowRuleSpecTriggerNotSetCase" + case WorkflowRuleSpec_ActivityStart_case: + return "WorkflowRuleSpecActivityStartCase" + default: + return strconv.Itoa(int(x)) + } + +} + type isWorkflowRuleSpec_Trigger interface { isWorkflowRuleSpec_Trigger() } @@ -207,7 +412,7 @@ func (*WorkflowRuleSpec_ActivityStart) isWorkflowRuleSpec_Trigger() {} // WorkflowRule describes a rule that can be applied to any workflow in this namespace. type WorkflowRule struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Rule creation time. CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Rule specification @@ -252,11 +457,6 @@ func (x *WorkflowRule) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use WorkflowRule.ProtoReflect.Descriptor instead. -func (*WorkflowRule) Descriptor() ([]byte, []int) { - return file_temporal_api_rules_v1_message_proto_rawDescGZIP(), []int{2} -} - func (x *WorkflowRule) GetCreateTime() *timestamppb.Timestamp { if x != nil { return x.CreateTime @@ -285,8 +485,77 @@ func (x *WorkflowRule) GetDescription() string { return "" } +func (x *WorkflowRule) SetCreateTime(v *timestamppb.Timestamp) { + x.CreateTime = v +} + +func (x *WorkflowRule) SetSpec(v *WorkflowRuleSpec) { + x.Spec = v +} + +func (x *WorkflowRule) SetCreatedByIdentity(v string) { + x.CreatedByIdentity = v +} + +func (x *WorkflowRule) SetDescription(v string) { + x.Description = v +} + +func (x *WorkflowRule) HasCreateTime() bool { + if x == nil { + return false + } + return x.CreateTime != nil +} + +func (x *WorkflowRule) HasSpec() bool { + if x == nil { + return false + } + return x.Spec != nil +} + +func (x *WorkflowRule) ClearCreateTime() { + x.CreateTime = nil +} + +func (x *WorkflowRule) ClearSpec() { + x.Spec = nil +} + +type WorkflowRule_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Rule creation time. + CreateTime *timestamppb.Timestamp + // Rule specification + Spec *WorkflowRuleSpec + // Identity of the actor that created the rule + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: It is better reflect the intent this way, we will also have updated_by. --) + // + // (-- api-linter: core::0142::time-field-names=disabled + // + // aip.dev/not-precedent: Same as above. All other options sounds clumsy --) + CreatedByIdentity string + // Rule description. + Description string +} + +func (b0 WorkflowRule_builder) Build() *WorkflowRule { + m0 := &WorkflowRule{} + b, x := &b0, m0 + _, _ = b, x + x.CreateTime = b.CreateTime + x.Spec = b.Spec + x.CreatedByIdentity = b.CreatedByIdentity + x.Description = b.Description + return m0 +} + type WorkflowRuleAction_ActionActivityPause struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -316,14 +585,21 @@ func (x *WorkflowRuleAction_ActionActivityPause) ProtoReflect() protoreflect.Mes return mi.MessageOf(x) } -// Deprecated: Use WorkflowRuleAction_ActionActivityPause.ProtoReflect.Descriptor instead. -func (*WorkflowRuleAction_ActionActivityPause) Descriptor() ([]byte, []int) { - return file_temporal_api_rules_v1_message_proto_rawDescGZIP(), []int{0, 0} +type WorkflowRuleAction_ActionActivityPause_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 WorkflowRuleAction_ActionActivityPause_builder) Build() *WorkflowRuleAction_ActionActivityPause { + m0 := &WorkflowRuleAction_ActionActivityPause{} + b, x := &b0, m0 + _, _ = b, x + return m0 } // Activity trigger will be triggered when an activity is about to start. type WorkflowRuleSpec_ActivityStartingTrigger struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Activity predicate is a SQL-like string filter parameter. // It is used to match against workflow data. // The following activity attributes are supported as part of the predicate: @@ -368,11 +644,6 @@ func (x *WorkflowRuleSpec_ActivityStartingTrigger) ProtoReflect() protoreflect.M return mi.MessageOf(x) } -// Deprecated: Use WorkflowRuleSpec_ActivityStartingTrigger.ProtoReflect.Descriptor instead. -func (*WorkflowRuleSpec_ActivityStartingTrigger) Descriptor() ([]byte, []int) { - return file_temporal_api_rules_v1_message_proto_rawDescGZIP(), []int{1, 0} -} - func (x *WorkflowRuleSpec_ActivityStartingTrigger) GetPredicate() string { if x != nil { return x.Predicate @@ -380,6 +651,38 @@ func (x *WorkflowRuleSpec_ActivityStartingTrigger) GetPredicate() string { return "" } +func (x *WorkflowRuleSpec_ActivityStartingTrigger) SetPredicate(v string) { + x.Predicate = v +} + +type WorkflowRuleSpec_ActivityStartingTrigger_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Activity predicate is a SQL-like string filter parameter. + // It is used to match against workflow data. + // The following activity attributes are supported as part of the predicate: + // - ActivityType: An Activity Type is the mapping of a name to an Activity Definition.. + // - ActivityId: The ID of the activity. + // - ActivityAttempt: The number attempts of the activity. + // - BackoffInterval: The current amount of time between scheduled attempts of the activity. + // - ActivityStatus: The status of the activity. Can be one of "Scheduled", "Started", "Paused". + // - TaskQueue: The name of the task queue the workflow specified that the activity should run on. + // Activity predicate support the following operators: + // - =, !=, >, >=, <, <= + // - AND, OR, () + // - BETWEEN ... AND + // STARTS_WITH + Predicate string +} + +func (b0 WorkflowRuleSpec_ActivityStartingTrigger_builder) Build() *WorkflowRuleSpec_ActivityStartingTrigger { + m0 := &WorkflowRuleSpec_ActivityStartingTrigger{} + b, x := &b0, m0 + _, _ = b, x + x.Predicate = b.Predicate + return m0 +} + var File_temporal_api_rules_v1_message_proto protoreflect.FileDescriptor const file_temporal_api_rules_v1_message_proto_rawDesc = "" + @@ -406,18 +709,6 @@ const file_temporal_api_rules_v1_message_proto_rawDesc = "" + "\vdescription\x18\x04 \x01(\tR\vdescriptionB\x84\x01\n" + "\x18io.temporal.api.rules.v1B\fMessageProtoP\x01Z!go.temporal.io/api/rules/v1;rules\xaa\x02\x17Temporalio.Api.Rules.V1\xea\x02\x1aTemporalio::Api::Rules::V1b\x06proto3" -var ( - file_temporal_api_rules_v1_message_proto_rawDescOnce sync.Once - file_temporal_api_rules_v1_message_proto_rawDescData []byte -) - -func file_temporal_api_rules_v1_message_proto_rawDescGZIP() []byte { - file_temporal_api_rules_v1_message_proto_rawDescOnce.Do(func() { - file_temporal_api_rules_v1_message_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_api_rules_v1_message_proto_rawDesc), len(file_temporal_api_rules_v1_message_proto_rawDesc))) - }) - return file_temporal_api_rules_v1_message_proto_rawDescData -} - var file_temporal_api_rules_v1_message_proto_msgTypes = make([]protoimpl.MessageInfo, 5) var file_temporal_api_rules_v1_message_proto_goTypes = []any{ (*WorkflowRuleAction)(nil), // 0: temporal.api.rules.v1.WorkflowRuleAction diff --git a/rules/v1/message_protoopaque.pb.go b/rules/v1/message_protoopaque.pb.go new file mode 100644 index 00000000..32c032dd --- /dev/null +++ b/rules/v1/message_protoopaque.pb.go @@ -0,0 +1,702 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// plugins: +// protoc-gen-go +// protoc +// source: temporal/api/rules/v1/message.proto + +//go:build protoopaque + +package rules + +import ( + reflect "reflect" + "strconv" + unsafe "unsafe" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type WorkflowRuleAction struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Variant isWorkflowRuleAction_Variant `protobuf_oneof:"variant"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowRuleAction) Reset() { + *x = WorkflowRuleAction{} + mi := &file_temporal_api_rules_v1_message_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkflowRuleAction) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowRuleAction) ProtoMessage() {} + +func (x *WorkflowRuleAction) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_rules_v1_message_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkflowRuleAction) GetActivityPause() *WorkflowRuleAction_ActionActivityPause { + if x != nil { + if x, ok := x.xxx_hidden_Variant.(*workflowRuleAction_ActivityPause); ok { + return x.ActivityPause + } + } + return nil +} + +func (x *WorkflowRuleAction) SetActivityPause(v *WorkflowRuleAction_ActionActivityPause) { + if v == nil { + x.xxx_hidden_Variant = nil + return + } + x.xxx_hidden_Variant = &workflowRuleAction_ActivityPause{v} +} + +func (x *WorkflowRuleAction) HasVariant() bool { + if x == nil { + return false + } + return x.xxx_hidden_Variant != nil +} + +func (x *WorkflowRuleAction) HasActivityPause() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Variant.(*workflowRuleAction_ActivityPause) + return ok +} + +func (x *WorkflowRuleAction) ClearVariant() { + x.xxx_hidden_Variant = nil +} + +func (x *WorkflowRuleAction) ClearActivityPause() { + if _, ok := x.xxx_hidden_Variant.(*workflowRuleAction_ActivityPause); ok { + x.xxx_hidden_Variant = nil + } +} + +const WorkflowRuleAction_Variant_not_set_case case_WorkflowRuleAction_Variant = 0 +const WorkflowRuleAction_ActivityPause_case case_WorkflowRuleAction_Variant = 1 + +func (x *WorkflowRuleAction) WhichVariant() case_WorkflowRuleAction_Variant { + if x == nil { + return WorkflowRuleAction_Variant_not_set_case + } + switch x.xxx_hidden_Variant.(type) { + case *workflowRuleAction_ActivityPause: + return WorkflowRuleAction_ActivityPause_case + default: + return WorkflowRuleAction_Variant_not_set_case + } +} + +type WorkflowRuleAction_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Supported actions. + + // Fields of oneof xxx_hidden_Variant: + ActivityPause *WorkflowRuleAction_ActionActivityPause + // -- end of xxx_hidden_Variant +} + +func (b0 WorkflowRuleAction_builder) Build() *WorkflowRuleAction { + m0 := &WorkflowRuleAction{} + b, x := &b0, m0 + _, _ = b, x + if b.ActivityPause != nil { + x.xxx_hidden_Variant = &workflowRuleAction_ActivityPause{b.ActivityPause} + } + return m0 +} + +type case_WorkflowRuleAction_Variant protoreflect.FieldNumber + +func (x case_WorkflowRuleAction_Variant) String() string { + switch x { + case WorkflowRuleAction_Variant_not_set_case: + return "WorkflowRuleActionVariantNotSetCase" + case WorkflowRuleAction_ActivityPause_case: + return "WorkflowRuleActionActivityPauseCase" + default: + return strconv.Itoa(int(x)) + } + +} + +type isWorkflowRuleAction_Variant interface { + isWorkflowRuleAction_Variant() +} + +type workflowRuleAction_ActivityPause struct { + ActivityPause *WorkflowRuleAction_ActionActivityPause `protobuf:"bytes,1,opt,name=activity_pause,json=activityPause,proto3,oneof"` +} + +func (*workflowRuleAction_ActivityPause) isWorkflowRuleAction_Variant() {} + +type WorkflowRuleSpec struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Id string `protobuf:"bytes,1,opt,name=id,proto3"` + xxx_hidden_Trigger isWorkflowRuleSpec_Trigger `protobuf_oneof:"trigger"` + xxx_hidden_VisibilityQuery string `protobuf:"bytes,3,opt,name=visibility_query,json=visibilityQuery,proto3"` + xxx_hidden_Actions *[]*WorkflowRuleAction `protobuf:"bytes,4,rep,name=actions,proto3"` + xxx_hidden_ExpirationTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=expiration_time,json=expirationTime,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowRuleSpec) Reset() { + *x = WorkflowRuleSpec{} + mi := &file_temporal_api_rules_v1_message_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkflowRuleSpec) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowRuleSpec) ProtoMessage() {} + +func (x *WorkflowRuleSpec) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_rules_v1_message_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkflowRuleSpec) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *WorkflowRuleSpec) GetActivityStart() *WorkflowRuleSpec_ActivityStartingTrigger { + if x != nil { + if x, ok := x.xxx_hidden_Trigger.(*workflowRuleSpec_ActivityStart); ok { + return x.ActivityStart + } + } + return nil +} + +func (x *WorkflowRuleSpec) GetVisibilityQuery() string { + if x != nil { + return x.xxx_hidden_VisibilityQuery + } + return "" +} + +func (x *WorkflowRuleSpec) GetActions() []*WorkflowRuleAction { + if x != nil { + if x.xxx_hidden_Actions != nil { + return *x.xxx_hidden_Actions + } + } + return nil +} + +func (x *WorkflowRuleSpec) GetExpirationTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_ExpirationTime + } + return nil +} + +func (x *WorkflowRuleSpec) SetId(v string) { + x.xxx_hidden_Id = v +} + +func (x *WorkflowRuleSpec) SetActivityStart(v *WorkflowRuleSpec_ActivityStartingTrigger) { + if v == nil { + x.xxx_hidden_Trigger = nil + return + } + x.xxx_hidden_Trigger = &workflowRuleSpec_ActivityStart{v} +} + +func (x *WorkflowRuleSpec) SetVisibilityQuery(v string) { + x.xxx_hidden_VisibilityQuery = v +} + +func (x *WorkflowRuleSpec) SetActions(v []*WorkflowRuleAction) { + x.xxx_hidden_Actions = &v +} + +func (x *WorkflowRuleSpec) SetExpirationTime(v *timestamppb.Timestamp) { + x.xxx_hidden_ExpirationTime = v +} + +func (x *WorkflowRuleSpec) HasTrigger() bool { + if x == nil { + return false + } + return x.xxx_hidden_Trigger != nil +} + +func (x *WorkflowRuleSpec) HasActivityStart() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Trigger.(*workflowRuleSpec_ActivityStart) + return ok +} + +func (x *WorkflowRuleSpec) HasExpirationTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_ExpirationTime != nil +} + +func (x *WorkflowRuleSpec) ClearTrigger() { + x.xxx_hidden_Trigger = nil +} + +func (x *WorkflowRuleSpec) ClearActivityStart() { + if _, ok := x.xxx_hidden_Trigger.(*workflowRuleSpec_ActivityStart); ok { + x.xxx_hidden_Trigger = nil + } +} + +func (x *WorkflowRuleSpec) ClearExpirationTime() { + x.xxx_hidden_ExpirationTime = nil +} + +const WorkflowRuleSpec_Trigger_not_set_case case_WorkflowRuleSpec_Trigger = 0 +const WorkflowRuleSpec_ActivityStart_case case_WorkflowRuleSpec_Trigger = 2 + +func (x *WorkflowRuleSpec) WhichTrigger() case_WorkflowRuleSpec_Trigger { + if x == nil { + return WorkflowRuleSpec_Trigger_not_set_case + } + switch x.xxx_hidden_Trigger.(type) { + case *workflowRuleSpec_ActivityStart: + return WorkflowRuleSpec_ActivityStart_case + default: + return WorkflowRuleSpec_Trigger_not_set_case + } +} + +type WorkflowRuleSpec_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The id of the new workflow rule. Must be unique within the namespace. + // Can be set by the user, and can have business meaning. + Id string + // Specifies how the rule should be triggered and evaluated. + // Currently, only "activity start" type is supported. + + // Fields of oneof xxx_hidden_Trigger: + ActivityStart *WorkflowRuleSpec_ActivityStartingTrigger + // -- end of xxx_hidden_Trigger + // Restricted Visibility query. + // This query is used to filter workflows in this namespace to which this rule should apply. + // It is applied to any running workflow each time a triggering event occurs, before the trigger predicate is evaluated. + // The following workflow attributes are supported: + // - WorkflowType + // - WorkflowId + // - StartTime + // - ExecutionStatus + VisibilityQuery string + // WorkflowRuleAction to be taken when the rule is triggered and predicate is matched. + Actions []*WorkflowRuleAction + // Expiration time of the rule. After this time, the rule will be deleted. + // Can be empty if the rule should never expire. + ExpirationTime *timestamppb.Timestamp +} + +func (b0 WorkflowRuleSpec_builder) Build() *WorkflowRuleSpec { + m0 := &WorkflowRuleSpec{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Id = b.Id + if b.ActivityStart != nil { + x.xxx_hidden_Trigger = &workflowRuleSpec_ActivityStart{b.ActivityStart} + } + x.xxx_hidden_VisibilityQuery = b.VisibilityQuery + x.xxx_hidden_Actions = &b.Actions + x.xxx_hidden_ExpirationTime = b.ExpirationTime + return m0 +} + +type case_WorkflowRuleSpec_Trigger protoreflect.FieldNumber + +func (x case_WorkflowRuleSpec_Trigger) String() string { + switch x { + case WorkflowRuleSpec_Trigger_not_set_case: + return "WorkflowRuleSpecTriggerNotSetCase" + case WorkflowRuleSpec_ActivityStart_case: + return "WorkflowRuleSpecActivityStartCase" + default: + return strconv.Itoa(int(x)) + } + +} + +type isWorkflowRuleSpec_Trigger interface { + isWorkflowRuleSpec_Trigger() +} + +type workflowRuleSpec_ActivityStart struct { + ActivityStart *WorkflowRuleSpec_ActivityStartingTrigger `protobuf:"bytes,2,opt,name=activity_start,json=activityStart,proto3,oneof"` +} + +func (*workflowRuleSpec_ActivityStart) isWorkflowRuleSpec_Trigger() {} + +// WorkflowRule describes a rule that can be applied to any workflow in this namespace. +type WorkflowRule struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3"` + xxx_hidden_Spec *WorkflowRuleSpec `protobuf:"bytes,2,opt,name=spec,proto3"` + xxx_hidden_CreatedByIdentity string `protobuf:"bytes,3,opt,name=created_by_identity,json=createdByIdentity,proto3"` + xxx_hidden_Description string `protobuf:"bytes,4,opt,name=description,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowRule) Reset() { + *x = WorkflowRule{} + mi := &file_temporal_api_rules_v1_message_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkflowRule) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowRule) ProtoMessage() {} + +func (x *WorkflowRule) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_rules_v1_message_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkflowRule) GetCreateTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_CreateTime + } + return nil +} + +func (x *WorkflowRule) GetSpec() *WorkflowRuleSpec { + if x != nil { + return x.xxx_hidden_Spec + } + return nil +} + +func (x *WorkflowRule) GetCreatedByIdentity() string { + if x != nil { + return x.xxx_hidden_CreatedByIdentity + } + return "" +} + +func (x *WorkflowRule) GetDescription() string { + if x != nil { + return x.xxx_hidden_Description + } + return "" +} + +func (x *WorkflowRule) SetCreateTime(v *timestamppb.Timestamp) { + x.xxx_hidden_CreateTime = v +} + +func (x *WorkflowRule) SetSpec(v *WorkflowRuleSpec) { + x.xxx_hidden_Spec = v +} + +func (x *WorkflowRule) SetCreatedByIdentity(v string) { + x.xxx_hidden_CreatedByIdentity = v +} + +func (x *WorkflowRule) SetDescription(v string) { + x.xxx_hidden_Description = v +} + +func (x *WorkflowRule) HasCreateTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_CreateTime != nil +} + +func (x *WorkflowRule) HasSpec() bool { + if x == nil { + return false + } + return x.xxx_hidden_Spec != nil +} + +func (x *WorkflowRule) ClearCreateTime() { + x.xxx_hidden_CreateTime = nil +} + +func (x *WorkflowRule) ClearSpec() { + x.xxx_hidden_Spec = nil +} + +type WorkflowRule_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Rule creation time. + CreateTime *timestamppb.Timestamp + // Rule specification + Spec *WorkflowRuleSpec + // Identity of the actor that created the rule + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: It is better reflect the intent this way, we will also have updated_by. --) + // + // (-- api-linter: core::0142::time-field-names=disabled + // + // aip.dev/not-precedent: Same as above. All other options sounds clumsy --) + CreatedByIdentity string + // Rule description. + Description string +} + +func (b0 WorkflowRule_builder) Build() *WorkflowRule { + m0 := &WorkflowRule{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_CreateTime = b.CreateTime + x.xxx_hidden_Spec = b.Spec + x.xxx_hidden_CreatedByIdentity = b.CreatedByIdentity + x.xxx_hidden_Description = b.Description + return m0 +} + +type WorkflowRuleAction_ActionActivityPause struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowRuleAction_ActionActivityPause) Reset() { + *x = WorkflowRuleAction_ActionActivityPause{} + mi := &file_temporal_api_rules_v1_message_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkflowRuleAction_ActionActivityPause) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowRuleAction_ActionActivityPause) ProtoMessage() {} + +func (x *WorkflowRuleAction_ActionActivityPause) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_rules_v1_message_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type WorkflowRuleAction_ActionActivityPause_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 WorkflowRuleAction_ActionActivityPause_builder) Build() *WorkflowRuleAction_ActionActivityPause { + m0 := &WorkflowRuleAction_ActionActivityPause{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +// Activity trigger will be triggered when an activity is about to start. +type WorkflowRuleSpec_ActivityStartingTrigger struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Predicate string `protobuf:"bytes,1,opt,name=predicate,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowRuleSpec_ActivityStartingTrigger) Reset() { + *x = WorkflowRuleSpec_ActivityStartingTrigger{} + mi := &file_temporal_api_rules_v1_message_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkflowRuleSpec_ActivityStartingTrigger) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowRuleSpec_ActivityStartingTrigger) ProtoMessage() {} + +func (x *WorkflowRuleSpec_ActivityStartingTrigger) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_rules_v1_message_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkflowRuleSpec_ActivityStartingTrigger) GetPredicate() string { + if x != nil { + return x.xxx_hidden_Predicate + } + return "" +} + +func (x *WorkflowRuleSpec_ActivityStartingTrigger) SetPredicate(v string) { + x.xxx_hidden_Predicate = v +} + +type WorkflowRuleSpec_ActivityStartingTrigger_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Activity predicate is a SQL-like string filter parameter. + // It is used to match against workflow data. + // The following activity attributes are supported as part of the predicate: + // - ActivityType: An Activity Type is the mapping of a name to an Activity Definition.. + // - ActivityId: The ID of the activity. + // - ActivityAttempt: The number attempts of the activity. + // - BackoffInterval: The current amount of time between scheduled attempts of the activity. + // - ActivityStatus: The status of the activity. Can be one of "Scheduled", "Started", "Paused". + // - TaskQueue: The name of the task queue the workflow specified that the activity should run on. + // Activity predicate support the following operators: + // - =, !=, >, >=, <, <= + // - AND, OR, () + // - BETWEEN ... AND + // STARTS_WITH + Predicate string +} + +func (b0 WorkflowRuleSpec_ActivityStartingTrigger_builder) Build() *WorkflowRuleSpec_ActivityStartingTrigger { + m0 := &WorkflowRuleSpec_ActivityStartingTrigger{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Predicate = b.Predicate + return m0 +} + +var File_temporal_api_rules_v1_message_proto protoreflect.FileDescriptor + +const file_temporal_api_rules_v1_message_proto_rawDesc = "" + + "\n" + + "#temporal/api/rules/v1/message.proto\x12\x15temporal.api.rules.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\x9e\x01\n" + + "\x12WorkflowRuleAction\x12f\n" + + "\x0eactivity_pause\x18\x01 \x01(\v2=.temporal.api.rules.v1.WorkflowRuleAction.ActionActivityPauseH\x00R\ractivityPause\x1a\x15\n" + + "\x13ActionActivityPauseB\t\n" + + "\avariant\"\x85\x03\n" + + "\x10WorkflowRuleSpec\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\x12h\n" + + "\x0eactivity_start\x18\x02 \x01(\v2?.temporal.api.rules.v1.WorkflowRuleSpec.ActivityStartingTriggerH\x00R\ractivityStart\x12)\n" + + "\x10visibility_query\x18\x03 \x01(\tR\x0fvisibilityQuery\x12C\n" + + "\aactions\x18\x04 \x03(\v2).temporal.api.rules.v1.WorkflowRuleActionR\aactions\x12C\n" + + "\x0fexpiration_time\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\x0eexpirationTime\x1a7\n" + + "\x17ActivityStartingTrigger\x12\x1c\n" + + "\tpredicate\x18\x01 \x01(\tR\tpredicateB\t\n" + + "\atrigger\"\xda\x01\n" + + "\fWorkflowRule\x12;\n" + + "\vcreate_time\x18\x01 \x01(\v2\x1a.google.protobuf.TimestampR\n" + + "createTime\x12;\n" + + "\x04spec\x18\x02 \x01(\v2'.temporal.api.rules.v1.WorkflowRuleSpecR\x04spec\x12.\n" + + "\x13created_by_identity\x18\x03 \x01(\tR\x11createdByIdentity\x12 \n" + + "\vdescription\x18\x04 \x01(\tR\vdescriptionB\x84\x01\n" + + "\x18io.temporal.api.rules.v1B\fMessageProtoP\x01Z!go.temporal.io/api/rules/v1;rules\xaa\x02\x17Temporalio.Api.Rules.V1\xea\x02\x1aTemporalio::Api::Rules::V1b\x06proto3" + +var file_temporal_api_rules_v1_message_proto_msgTypes = make([]protoimpl.MessageInfo, 5) +var file_temporal_api_rules_v1_message_proto_goTypes = []any{ + (*WorkflowRuleAction)(nil), // 0: temporal.api.rules.v1.WorkflowRuleAction + (*WorkflowRuleSpec)(nil), // 1: temporal.api.rules.v1.WorkflowRuleSpec + (*WorkflowRule)(nil), // 2: temporal.api.rules.v1.WorkflowRule + (*WorkflowRuleAction_ActionActivityPause)(nil), // 3: temporal.api.rules.v1.WorkflowRuleAction.ActionActivityPause + (*WorkflowRuleSpec_ActivityStartingTrigger)(nil), // 4: temporal.api.rules.v1.WorkflowRuleSpec.ActivityStartingTrigger + (*timestamppb.Timestamp)(nil), // 5: google.protobuf.Timestamp +} +var file_temporal_api_rules_v1_message_proto_depIdxs = []int32{ + 3, // 0: temporal.api.rules.v1.WorkflowRuleAction.activity_pause:type_name -> temporal.api.rules.v1.WorkflowRuleAction.ActionActivityPause + 4, // 1: temporal.api.rules.v1.WorkflowRuleSpec.activity_start:type_name -> temporal.api.rules.v1.WorkflowRuleSpec.ActivityStartingTrigger + 0, // 2: temporal.api.rules.v1.WorkflowRuleSpec.actions:type_name -> temporal.api.rules.v1.WorkflowRuleAction + 5, // 3: temporal.api.rules.v1.WorkflowRuleSpec.expiration_time:type_name -> google.protobuf.Timestamp + 5, // 4: temporal.api.rules.v1.WorkflowRule.create_time:type_name -> google.protobuf.Timestamp + 1, // 5: temporal.api.rules.v1.WorkflowRule.spec:type_name -> temporal.api.rules.v1.WorkflowRuleSpec + 6, // [6:6] is the sub-list for method output_type + 6, // [6:6] is the sub-list for method input_type + 6, // [6:6] is the sub-list for extension type_name + 6, // [6:6] is the sub-list for extension extendee + 0, // [0:6] is the sub-list for field type_name +} + +func init() { file_temporal_api_rules_v1_message_proto_init() } +func file_temporal_api_rules_v1_message_proto_init() { + if File_temporal_api_rules_v1_message_proto != nil { + return + } + file_temporal_api_rules_v1_message_proto_msgTypes[0].OneofWrappers = []any{ + (*workflowRuleAction_ActivityPause)(nil), + } + file_temporal_api_rules_v1_message_proto_msgTypes[1].OneofWrappers = []any{ + (*workflowRuleSpec_ActivityStart)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_api_rules_v1_message_proto_rawDesc), len(file_temporal_api_rules_v1_message_proto_rawDesc)), + NumEnums: 0, + NumMessages: 5, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_temporal_api_rules_v1_message_proto_goTypes, + DependencyIndexes: file_temporal_api_rules_v1_message_proto_depIdxs, + MessageInfos: file_temporal_api_rules_v1_message_proto_msgTypes, + }.Build() + File_temporal_api_rules_v1_message_proto = out.File + file_temporal_api_rules_v1_message_proto_goTypes = nil + file_temporal_api_rules_v1_message_proto_depIdxs = nil +} diff --git a/schedule/v1/message.pb.go b/schedule/v1/message.pb.go index f44e04f8..1f0e562e 100644 --- a/schedule/v1/message.pb.go +++ b/schedule/v1/message.pb.go @@ -9,11 +9,13 @@ // protoc // source: temporal/api/schedule/v1/message.proto +//go:build !protoopaque + package schedule import ( reflect "reflect" - sync "sync" + "strconv" unsafe "unsafe" v12 "go.temporal.io/api/common/v1" @@ -53,7 +55,7 @@ const ( // CalendarSpec gets compiled into StructuredCalendarSpec, which is what will be // returned if you describe the schedule. type CalendarSpec struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Expression to match seconds. Default: 0 Second string `protobuf:"bytes,1,opt,name=second,proto3" json:"second,omitempty"` // Expression to match minutes. Default: 0 @@ -102,11 +104,6 @@ func (x *CalendarSpec) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CalendarSpec.ProtoReflect.Descriptor instead. -func (*CalendarSpec) Descriptor() ([]byte, []int) { - return file_temporal_api_schedule_v1_message_proto_rawDescGZIP(), []int{0} -} - func (x *CalendarSpec) GetSecond() string { if x != nil { return x.Second @@ -163,12 +160,83 @@ func (x *CalendarSpec) GetComment() string { return "" } +func (x *CalendarSpec) SetSecond(v string) { + x.Second = v +} + +func (x *CalendarSpec) SetMinute(v string) { + x.Minute = v +} + +func (x *CalendarSpec) SetHour(v string) { + x.Hour = v +} + +func (x *CalendarSpec) SetDayOfMonth(v string) { + x.DayOfMonth = v +} + +func (x *CalendarSpec) SetMonth(v string) { + x.Month = v +} + +func (x *CalendarSpec) SetYear(v string) { + x.Year = v +} + +func (x *CalendarSpec) SetDayOfWeek(v string) { + x.DayOfWeek = v +} + +func (x *CalendarSpec) SetComment(v string) { + x.Comment = v +} + +type CalendarSpec_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Expression to match seconds. Default: 0 + Second string + // Expression to match minutes. Default: 0 + Minute string + // Expression to match hours. Default: 0 + Hour string + // Expression to match days of the month. Default: * + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: standard name of field --) + DayOfMonth string + // Expression to match months. Default: * + Month string + // Expression to match years. Default: * + Year string + // Expression to match days of the week. Default: * + DayOfWeek string + // Free-form comment describing the intention of this spec. + Comment string +} + +func (b0 CalendarSpec_builder) Build() *CalendarSpec { + m0 := &CalendarSpec{} + b, x := &b0, m0 + _, _ = b, x + x.Second = b.Second + x.Minute = b.Minute + x.Hour = b.Hour + x.DayOfMonth = b.DayOfMonth + x.Month = b.Month + x.Year = b.Year + x.DayOfWeek = b.DayOfWeek + x.Comment = b.Comment + return m0 +} + // Range represents a set of integer values, used to match fields of a calendar // time in StructuredCalendarSpec. If end < start, then end is interpreted as // equal to start. This means you can use a Range with start set to a value, and // end and step unset (defaulting to 0) to represent a single value. type Range struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Start of range (inclusive). Start int32 `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"` // End of range (inclusive). @@ -204,11 +272,6 @@ func (x *Range) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Range.ProtoReflect.Descriptor instead. -func (*Range) Descriptor() ([]byte, []int) { - return file_temporal_api_schedule_v1_message_proto_rawDescGZIP(), []int{1} -} - func (x *Range) GetStart() int32 { if x != nil { return x.Start @@ -230,6 +293,39 @@ func (x *Range) GetStep() int32 { return 0 } +func (x *Range) SetStart(v int32) { + x.Start = v +} + +func (x *Range) SetEnd(v int32) { + x.End = v +} + +func (x *Range) SetStep(v int32) { + x.Step = v +} + +type Range_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Start of range (inclusive). + Start int32 + // End of range (inclusive). + End int32 + // Step (optional, default 1). + Step int32 +} + +func (b0 Range_builder) Build() *Range { + m0 := &Range{} + b, x := &b0, m0 + _, _ = b, x + x.Start = b.Start + x.End = b.End + x.Step = b.Step + return m0 +} + // StructuredCalendarSpec describes an event specification relative to the // calendar, in a form that's easy to work with programmatically. Each field can // be one or more ranges. @@ -240,7 +336,7 @@ func (x *Range) GetStep() int32 { // Relative expressions such as "last day of the month" or "third Monday" are not currently // representable; callers must enumerate the concrete days they require. type StructuredCalendarSpec struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Match seconds (0-59) Second []*Range `protobuf:"bytes,1,rep,name=second,proto3" json:"second,omitempty"` // Match minutes (0-59) @@ -289,11 +385,6 @@ func (x *StructuredCalendarSpec) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use StructuredCalendarSpec.ProtoReflect.Descriptor instead. -func (*StructuredCalendarSpec) Descriptor() ([]byte, []int) { - return file_temporal_api_schedule_v1_message_proto_rawDescGZIP(), []int{2} -} - func (x *StructuredCalendarSpec) GetSecond() []*Range { if x != nil { return x.Second @@ -350,6 +441,77 @@ func (x *StructuredCalendarSpec) GetComment() string { return "" } +func (x *StructuredCalendarSpec) SetSecond(v []*Range) { + x.Second = v +} + +func (x *StructuredCalendarSpec) SetMinute(v []*Range) { + x.Minute = v +} + +func (x *StructuredCalendarSpec) SetHour(v []*Range) { + x.Hour = v +} + +func (x *StructuredCalendarSpec) SetDayOfMonth(v []*Range) { + x.DayOfMonth = v +} + +func (x *StructuredCalendarSpec) SetMonth(v []*Range) { + x.Month = v +} + +func (x *StructuredCalendarSpec) SetYear(v []*Range) { + x.Year = v +} + +func (x *StructuredCalendarSpec) SetDayOfWeek(v []*Range) { + x.DayOfWeek = v +} + +func (x *StructuredCalendarSpec) SetComment(v string) { + x.Comment = v +} + +type StructuredCalendarSpec_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Match seconds (0-59) + Second []*Range + // Match minutes (0-59) + Minute []*Range + // Match hours (0-23) + Hour []*Range + // Match days of the month (1-31) + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: standard name of field --) + DayOfMonth []*Range + // Match months (1-12) + Month []*Range + // Match years. + Year []*Range + // Match days of the week (0-6; 0 is Sunday). + DayOfWeek []*Range + // Free-form comment describing the intention of this spec. + Comment string +} + +func (b0 StructuredCalendarSpec_builder) Build() *StructuredCalendarSpec { + m0 := &StructuredCalendarSpec{} + b, x := &b0, m0 + _, _ = b, x + x.Second = b.Second + x.Minute = b.Minute + x.Hour = b.Hour + x.DayOfMonth = b.DayOfMonth + x.Month = b.Month + x.Year = b.Year + x.DayOfWeek = b.DayOfWeek + x.Comment = b.Comment + return m0 +} + // IntervalSpec matches times that can be expressed as: // epoch + n * interval + phase // where n is an integer. @@ -362,7 +524,7 @@ func (x *StructuredCalendarSpec) GetComment() string { // 2022-02-17T00:00:00Z (among other times). The same interval with a phase of 3 // days, 5 hours, and 23 minutes would match 2022-02-20T05:23:00Z instead. type IntervalSpec struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Interval *durationpb.Duration `protobuf:"bytes,1,opt,name=interval,proto3" json:"interval,omitempty"` Phase *durationpb.Duration `protobuf:"bytes,2,opt,name=phase,proto3" json:"phase,omitempty"` unknownFields protoimpl.UnknownFields @@ -394,11 +556,6 @@ func (x *IntervalSpec) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use IntervalSpec.ProtoReflect.Descriptor instead. -func (*IntervalSpec) Descriptor() ([]byte, []int) { - return file_temporal_api_schedule_v1_message_proto_rawDescGZIP(), []int{3} -} - func (x *IntervalSpec) GetInterval() *durationpb.Duration { if x != nil { return x.Interval @@ -413,6 +570,52 @@ func (x *IntervalSpec) GetPhase() *durationpb.Duration { return nil } +func (x *IntervalSpec) SetInterval(v *durationpb.Duration) { + x.Interval = v +} + +func (x *IntervalSpec) SetPhase(v *durationpb.Duration) { + x.Phase = v +} + +func (x *IntervalSpec) HasInterval() bool { + if x == nil { + return false + } + return x.Interval != nil +} + +func (x *IntervalSpec) HasPhase() bool { + if x == nil { + return false + } + return x.Phase != nil +} + +func (x *IntervalSpec) ClearInterval() { + x.Interval = nil +} + +func (x *IntervalSpec) ClearPhase() { + x.Phase = nil +} + +type IntervalSpec_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Interval *durationpb.Duration + Phase *durationpb.Duration +} + +func (b0 IntervalSpec_builder) Build() *IntervalSpec { + m0 := &IntervalSpec{} + b, x := &b0, m0 + _, _ = b, x + x.Interval = b.Interval + x.Phase = b.Phase + return m0 +} + // ScheduleSpec is a complete description of a set of absolute timestamps // (possibly infinite) that an action should occur at. The meaning of a // ScheduleSpec depends only on its contents and never changes, except that the @@ -432,7 +635,7 @@ func (x *IntervalSpec) GetPhase() *durationpb.Duration { // If a spec has no matching times after the current time, then the schedule // will be subject to automatic deletion (after several days). type ScheduleSpec struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Calendar-based specifications of times. StructuredCalendar []*StructuredCalendarSpec `protobuf:"bytes,7,rep,name=structured_calendar,json=structuredCalendar,proto3" json:"structured_calendar,omitempty"` // cron_string holds a traditional cron specification as a string. It @@ -527,11 +730,6 @@ func (x *ScheduleSpec) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ScheduleSpec.ProtoReflect.Descriptor instead. -func (*ScheduleSpec) Descriptor() ([]byte, []int) { - return file_temporal_api_schedule_v1_message_proto_rawDescGZIP(), []int{4} -} - func (x *ScheduleSpec) GetStructuredCalendar() []*StructuredCalendarSpec { if x != nil { return x.StructuredCalendar @@ -610,8 +808,177 @@ func (x *ScheduleSpec) GetTimezoneData() []byte { return nil } +func (x *ScheduleSpec) SetStructuredCalendar(v []*StructuredCalendarSpec) { + x.StructuredCalendar = v +} + +func (x *ScheduleSpec) SetCronString(v []string) { + x.CronString = v +} + +func (x *ScheduleSpec) SetCalendar(v []*CalendarSpec) { + x.Calendar = v +} + +func (x *ScheduleSpec) SetInterval(v []*IntervalSpec) { + x.Interval = v +} + +// Deprecated: Marked as deprecated in temporal/api/schedule/v1/message.proto. +func (x *ScheduleSpec) SetExcludeCalendar(v []*CalendarSpec) { + x.ExcludeCalendar = v +} + +func (x *ScheduleSpec) SetExcludeStructuredCalendar(v []*StructuredCalendarSpec) { + x.ExcludeStructuredCalendar = v +} + +func (x *ScheduleSpec) SetStartTime(v *timestamppb.Timestamp) { + x.StartTime = v +} + +func (x *ScheduleSpec) SetEndTime(v *timestamppb.Timestamp) { + x.EndTime = v +} + +func (x *ScheduleSpec) SetJitter(v *durationpb.Duration) { + x.Jitter = v +} + +func (x *ScheduleSpec) SetTimezoneName(v string) { + x.TimezoneName = v +} + +func (x *ScheduleSpec) SetTimezoneData(v []byte) { + if v == nil { + v = []byte{} + } + x.TimezoneData = v +} + +func (x *ScheduleSpec) HasStartTime() bool { + if x == nil { + return false + } + return x.StartTime != nil +} + +func (x *ScheduleSpec) HasEndTime() bool { + if x == nil { + return false + } + return x.EndTime != nil +} + +func (x *ScheduleSpec) HasJitter() bool { + if x == nil { + return false + } + return x.Jitter != nil +} + +func (x *ScheduleSpec) ClearStartTime() { + x.StartTime = nil +} + +func (x *ScheduleSpec) ClearEndTime() { + x.EndTime = nil +} + +func (x *ScheduleSpec) ClearJitter() { + x.Jitter = nil +} + +type ScheduleSpec_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Calendar-based specifications of times. + StructuredCalendar []*StructuredCalendarSpec + // cron_string holds a traditional cron specification as a string. It + // accepts 5, 6, or 7 fields, separated by spaces, and interprets them the + // same way as CalendarSpec. + // 5 fields: minute, hour, day_of_month, month, day_of_week + // 6 fields: minute, hour, day_of_month, month, day_of_week, year + // 7 fields: second, minute, hour, day_of_month, month, day_of_week, year + // If year is not given, it defaults to *. If second is not given, it + // defaults to 0. + // Shorthands @yearly, @monthly, @weekly, @daily, and @hourly are also + // accepted instead of the 5-7 time fields. + // Optionally, the string can be preceded by CRON_TZ= or + // TZ=, which will get copied to timezone_name. (There must + // not also be a timezone_name present.) + // Optionally "#" followed by a comment can appear at the end of the string. + // Note that the special case that some cron implementations have for + // treating day_of_month and day_of_week as "or" instead of "and" when both + // are set is not implemented. + // @every [/] is accepted and gets compiled into an + // IntervalSpec instead. and should be a decimal integer + // with a unit suffix s, m, h, or d. + CronString []string + // Calendar-based specifications of times. + Calendar []*CalendarSpec + // Interval-based specifications of times. + Interval []*IntervalSpec + // Any timestamps matching any of exclude_* will be skipped. + // Deprecated. Use exclude_structured_calendar. + // + // Deprecated: Marked as deprecated in temporal/api/schedule/v1/message.proto. + ExcludeCalendar []*CalendarSpec + ExcludeStructuredCalendar []*StructuredCalendarSpec + // If start_time is set, any timestamps before start_time will be skipped. + // (Together, start_time and end_time make an inclusive interval.) + StartTime *timestamppb.Timestamp + // If end_time is set, any timestamps after end_time will be skipped. + EndTime *timestamppb.Timestamp + // All timestamps will be incremented by a random value from 0 to this + // amount of jitter. Default: 0 + Jitter *durationpb.Duration + // Time zone to interpret all calendar-based specs in. + // + // If unset, defaults to UTC. We recommend using UTC for your application if + // at all possible, to avoid various surprising properties of time zones. + // + // Time zones may be provided by name, corresponding to names in the IANA + // time zone database (see https://www.iana.org/time-zones). The definition + // will be loaded by the Temporal server from the environment it runs in. + // + // If your application requires more control over the time zone definition + // used, it may pass in a complete definition in the form of a TZif file + // from the time zone database. If present, this will be used instead of + // loading anything from the environment. You are then responsible for + // updating timezone_data when the definition changes. + // + // Calendar spec matching is based on literal matching of the clock time + // with no special handling of DST: if you write a calendar spec that fires + // at 2:30am and specify a time zone that follows DST, that action will not + // be triggered on the day that has no 2:30am. Similarly, an action that + // fires at 1:30am will be triggered twice on the day that has two 1:30s. + // + // Also note that no actions are taken on leap-seconds (e.g. 23:59:60 UTC). + TimezoneName string + TimezoneData []byte +} + +func (b0 ScheduleSpec_builder) Build() *ScheduleSpec { + m0 := &ScheduleSpec{} + b, x := &b0, m0 + _, _ = b, x + x.StructuredCalendar = b.StructuredCalendar + x.CronString = b.CronString + x.Calendar = b.Calendar + x.Interval = b.Interval + x.ExcludeCalendar = b.ExcludeCalendar + x.ExcludeStructuredCalendar = b.ExcludeStructuredCalendar + x.StartTime = b.StartTime + x.EndTime = b.EndTime + x.Jitter = b.Jitter + x.TimezoneName = b.TimezoneName + x.TimezoneData = b.TimezoneData + return m0 +} + type SchedulePolicies struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Policy for overlaps. // Note that this can be changed after a schedule has taken some actions, // and some changes might produce unintuitive results. In general, the later @@ -659,11 +1026,6 @@ func (x *SchedulePolicies) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SchedulePolicies.ProtoReflect.Descriptor instead. -func (*SchedulePolicies) Descriptor() ([]byte, []int) { - return file_temporal_api_schedule_v1_message_proto_rawDescGZIP(), []int{5} -} - func (x *SchedulePolicies) GetOverlapPolicy() v1.ScheduleOverlapPolicy { if x != nil { return x.OverlapPolicy @@ -692,8 +1054,69 @@ func (x *SchedulePolicies) GetKeepOriginalWorkflowId() bool { return false } +func (x *SchedulePolicies) SetOverlapPolicy(v v1.ScheduleOverlapPolicy) { + x.OverlapPolicy = v +} + +func (x *SchedulePolicies) SetCatchupWindow(v *durationpb.Duration) { + x.CatchupWindow = v +} + +func (x *SchedulePolicies) SetPauseOnFailure(v bool) { + x.PauseOnFailure = v +} + +func (x *SchedulePolicies) SetKeepOriginalWorkflowId(v bool) { + x.KeepOriginalWorkflowId = v +} + +func (x *SchedulePolicies) HasCatchupWindow() bool { + if x == nil { + return false + } + return x.CatchupWindow != nil +} + +func (x *SchedulePolicies) ClearCatchupWindow() { + x.CatchupWindow = nil +} + +type SchedulePolicies_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Policy for overlaps. + // Note that this can be changed after a schedule has taken some actions, + // and some changes might produce unintuitive results. In general, the later + // policy overrides the earlier policy. + OverlapPolicy v1.ScheduleOverlapPolicy + // Policy for catchups: + // If the Temporal server misses an action due to one or more components + // being down, and comes back up, the action will be run if the scheduled + // time is within this window from the current time. + // This value defaults to one year, and can't be less than 10 seconds. + CatchupWindow *durationpb.Duration + // If true, and a workflow run fails or times out, turn on "paused". + // This applies after retry policies: the full chain of retries must fail to + // trigger a pause here. + PauseOnFailure bool + // If true, and the action would start a workflow, a timestamp will not be + // appended to the scheduled workflow id. + KeepOriginalWorkflowId bool +} + +func (b0 SchedulePolicies_builder) Build() *SchedulePolicies { + m0 := &SchedulePolicies{} + b, x := &b0, m0 + _, _ = b, x + x.OverlapPolicy = b.OverlapPolicy + x.CatchupWindow = b.CatchupWindow + x.PauseOnFailure = b.PauseOnFailure + x.KeepOriginalWorkflowId = b.KeepOriginalWorkflowId + return m0 +} + type ScheduleAction struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Types that are valid to be assigned to Action: // // *ScheduleAction_StartWorkflow @@ -727,11 +1150,6 @@ func (x *ScheduleAction) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ScheduleAction.ProtoReflect.Descriptor instead. -func (*ScheduleAction) Descriptor() ([]byte, []int) { - return file_temporal_api_schedule_v1_message_proto_rawDescGZIP(), []int{6} -} - func (x *ScheduleAction) GetAction() isScheduleAction_Action { if x != nil { return x.Action @@ -748,23 +1166,108 @@ func (x *ScheduleAction) GetStartWorkflow() *v11.NewWorkflowExecutionInfo { return nil } -type isScheduleAction_Action interface { - isScheduleAction_Action() +func (x *ScheduleAction) SetStartWorkflow(v *v11.NewWorkflowExecutionInfo) { + if v == nil { + x.Action = nil + return + } + x.Action = &ScheduleAction_StartWorkflow{v} } -type ScheduleAction_StartWorkflow struct { - // All fields of NewWorkflowExecutionInfo are valid except for: - // - workflow_id_reuse_policy - // - cron_schedule - // The workflow id of the started workflow may not match this exactly, - // it may have a timestamp appended for uniqueness. - StartWorkflow *v11.NewWorkflowExecutionInfo `protobuf:"bytes,1,opt,name=start_workflow,json=startWorkflow,proto3,oneof"` +func (x *ScheduleAction) HasAction() bool { + if x == nil { + return false + } + return x.Action != nil } -func (*ScheduleAction_StartWorkflow) isScheduleAction_Action() {} +func (x *ScheduleAction) HasStartWorkflow() bool { + if x == nil { + return false + } + _, ok := x.Action.(*ScheduleAction_StartWorkflow) + return ok +} -type ScheduleActionResult struct { - state protoimpl.MessageState `protogen:"open.v1"` +func (x *ScheduleAction) ClearAction() { + x.Action = nil +} + +func (x *ScheduleAction) ClearStartWorkflow() { + if _, ok := x.Action.(*ScheduleAction_StartWorkflow); ok { + x.Action = nil + } +} + +const ScheduleAction_Action_not_set_case case_ScheduleAction_Action = 0 +const ScheduleAction_StartWorkflow_case case_ScheduleAction_Action = 1 + +func (x *ScheduleAction) WhichAction() case_ScheduleAction_Action { + if x == nil { + return ScheduleAction_Action_not_set_case + } + switch x.Action.(type) { + case *ScheduleAction_StartWorkflow: + return ScheduleAction_StartWorkflow_case + default: + return ScheduleAction_Action_not_set_case + } +} + +type ScheduleAction_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Fields of oneof Action: + // All fields of NewWorkflowExecutionInfo are valid except for: + // - workflow_id_reuse_policy + // - cron_schedule + // The workflow id of the started workflow may not match this exactly, + // it may have a timestamp appended for uniqueness. + StartWorkflow *v11.NewWorkflowExecutionInfo + // -- end of Action +} + +func (b0 ScheduleAction_builder) Build() *ScheduleAction { + m0 := &ScheduleAction{} + b, x := &b0, m0 + _, _ = b, x + if b.StartWorkflow != nil { + x.Action = &ScheduleAction_StartWorkflow{b.StartWorkflow} + } + return m0 +} + +type case_ScheduleAction_Action protoreflect.FieldNumber + +func (x case_ScheduleAction_Action) String() string { + switch x { + case ScheduleAction_Action_not_set_case: + return "ScheduleActionActionNotSetCase" + case ScheduleAction_StartWorkflow_case: + return "ScheduleActionStartWorkflowCase" + default: + return strconv.Itoa(int(x)) + } + +} + +type isScheduleAction_Action interface { + isScheduleAction_Action() +} + +type ScheduleAction_StartWorkflow struct { + // All fields of NewWorkflowExecutionInfo are valid except for: + // - workflow_id_reuse_policy + // - cron_schedule + // The workflow id of the started workflow may not match this exactly, + // it may have a timestamp appended for uniqueness. + StartWorkflow *v11.NewWorkflowExecutionInfo `protobuf:"bytes,1,opt,name=start_workflow,json=startWorkflow,proto3,oneof"` +} + +func (*ScheduleAction_StartWorkflow) isScheduleAction_Action() {} + +type ScheduleActionResult struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` // Time that the action was taken (according to the schedule, including jitter). ScheduleTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=schedule_time,json=scheduleTime,proto3" json:"schedule_time,omitempty"` // Time that the action was taken (real time). @@ -803,11 +1306,6 @@ func (x *ScheduleActionResult) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ScheduleActionResult.ProtoReflect.Descriptor instead. -func (*ScheduleActionResult) Descriptor() ([]byte, []int) { - return file_temporal_api_schedule_v1_message_proto_rawDescGZIP(), []int{7} -} - func (x *ScheduleActionResult) GetScheduleTime() *timestamppb.Timestamp { if x != nil { return x.ScheduleTime @@ -836,8 +1334,82 @@ func (x *ScheduleActionResult) GetStartWorkflowStatus() v1.WorkflowExecutionStat return v1.WorkflowExecutionStatus(0) } +func (x *ScheduleActionResult) SetScheduleTime(v *timestamppb.Timestamp) { + x.ScheduleTime = v +} + +func (x *ScheduleActionResult) SetActualTime(v *timestamppb.Timestamp) { + x.ActualTime = v +} + +func (x *ScheduleActionResult) SetStartWorkflowResult(v *v12.WorkflowExecution) { + x.StartWorkflowResult = v +} + +func (x *ScheduleActionResult) SetStartWorkflowStatus(v v1.WorkflowExecutionStatus) { + x.StartWorkflowStatus = v +} + +func (x *ScheduleActionResult) HasScheduleTime() bool { + if x == nil { + return false + } + return x.ScheduleTime != nil +} + +func (x *ScheduleActionResult) HasActualTime() bool { + if x == nil { + return false + } + return x.ActualTime != nil +} + +func (x *ScheduleActionResult) HasStartWorkflowResult() bool { + if x == nil { + return false + } + return x.StartWorkflowResult != nil +} + +func (x *ScheduleActionResult) ClearScheduleTime() { + x.ScheduleTime = nil +} + +func (x *ScheduleActionResult) ClearActualTime() { + x.ActualTime = nil +} + +func (x *ScheduleActionResult) ClearStartWorkflowResult() { + x.StartWorkflowResult = nil +} + +type ScheduleActionResult_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Time that the action was taken (according to the schedule, including jitter). + ScheduleTime *timestamppb.Timestamp + // Time that the action was taken (real time). + ActualTime *timestamppb.Timestamp + // If action was start_workflow: + StartWorkflowResult *v12.WorkflowExecution + // If the action was start_workflow, this field will reflect an + // eventually-consistent view of the started workflow's status. + StartWorkflowStatus v1.WorkflowExecutionStatus +} + +func (b0 ScheduleActionResult_builder) Build() *ScheduleActionResult { + m0 := &ScheduleActionResult{} + b, x := &b0, m0 + _, _ = b, x + x.ScheduleTime = b.ScheduleTime + x.ActualTime = b.ActualTime + x.StartWorkflowResult = b.StartWorkflowResult + x.StartWorkflowStatus = b.StartWorkflowStatus + return m0 +} + type ScheduleState struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Informative human-readable message with contextual notes, e.g. the reason // a schedule is paused. The system may overwrite this message on certain // conditions, e.g. when pause-on-failure happens. @@ -882,11 +1454,6 @@ func (x *ScheduleState) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ScheduleState.ProtoReflect.Descriptor instead. -func (*ScheduleState) Descriptor() ([]byte, []int) { - return file_temporal_api_schedule_v1_message_proto_rawDescGZIP(), []int{8} -} - func (x *ScheduleState) GetNotes() string { if x != nil { return x.Notes @@ -915,8 +1482,55 @@ func (x *ScheduleState) GetRemainingActions() int64 { return 0 } +func (x *ScheduleState) SetNotes(v string) { + x.Notes = v +} + +func (x *ScheduleState) SetPaused(v bool) { + x.Paused = v +} + +func (x *ScheduleState) SetLimitedActions(v bool) { + x.LimitedActions = v +} + +func (x *ScheduleState) SetRemainingActions(v int64) { + x.RemainingActions = v +} + +type ScheduleState_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Informative human-readable message with contextual notes, e.g. the reason + // a schedule is paused. The system may overwrite this message on certain + // conditions, e.g. when pause-on-failure happens. + Notes string + // If true, do not take any actions based on the schedule spec. + Paused bool + // If limited_actions is true, decrement remaining_actions after each + // action, and do not take any more scheduled actions if remaining_actions + // is zero. Actions may still be taken by explicit request (i.e. trigger + // immediately or backfill). Skipped actions (due to overlap policy) do not + // count against remaining actions. + // If a schedule has no more remaining actions, then the schedule will be + // subject to automatic deletion (after several days). + LimitedActions bool + RemainingActions int64 +} + +func (b0 ScheduleState_builder) Build() *ScheduleState { + m0 := &ScheduleState{} + b, x := &b0, m0 + _, _ = b, x + x.Notes = b.Notes + x.Paused = b.Paused + x.LimitedActions = b.LimitedActions + x.RemainingActions = b.RemainingActions + return m0 +} + type TriggerImmediatelyRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // If set, override overlap policy for this one request. OverlapPolicy v1.ScheduleOverlapPolicy `protobuf:"varint,1,opt,name=overlap_policy,json=overlapPolicy,proto3,enum=temporal.api.enums.v1.ScheduleOverlapPolicy" json:"overlap_policy,omitempty"` // Timestamp used for the identity of the target workflow. @@ -951,11 +1565,6 @@ func (x *TriggerImmediatelyRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use TriggerImmediatelyRequest.ProtoReflect.Descriptor instead. -func (*TriggerImmediatelyRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_schedule_v1_message_proto_rawDescGZIP(), []int{9} -} - func (x *TriggerImmediatelyRequest) GetOverlapPolicy() v1.ScheduleOverlapPolicy { if x != nil { return x.OverlapPolicy @@ -970,8 +1579,46 @@ func (x *TriggerImmediatelyRequest) GetScheduledTime() *timestamppb.Timestamp { return nil } +func (x *TriggerImmediatelyRequest) SetOverlapPolicy(v v1.ScheduleOverlapPolicy) { + x.OverlapPolicy = v +} + +func (x *TriggerImmediatelyRequest) SetScheduledTime(v *timestamppb.Timestamp) { + x.ScheduledTime = v +} + +func (x *TriggerImmediatelyRequest) HasScheduledTime() bool { + if x == nil { + return false + } + return x.ScheduledTime != nil +} + +func (x *TriggerImmediatelyRequest) ClearScheduledTime() { + x.ScheduledTime = nil +} + +type TriggerImmediatelyRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // If set, override overlap policy for this one request. + OverlapPolicy v1.ScheduleOverlapPolicy + // Timestamp used for the identity of the target workflow. + // If not set the default value is the current time. + ScheduledTime *timestamppb.Timestamp +} + +func (b0 TriggerImmediatelyRequest_builder) Build() *TriggerImmediatelyRequest { + m0 := &TriggerImmediatelyRequest{} + b, x := &b0, m0 + _, _ = b, x + x.OverlapPolicy = b.OverlapPolicy + x.ScheduledTime = b.ScheduledTime + return m0 +} + type BackfillRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Time range to evaluate schedule in. Currently, this time range is // exclusive on start_time and inclusive on end_time. (This is admittedly // counterintuitive and it may change in the future, so to be safe, use a @@ -1011,11 +1658,6 @@ func (x *BackfillRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use BackfillRequest.ProtoReflect.Descriptor instead. -func (*BackfillRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_schedule_v1_message_proto_rawDescGZIP(), []int{10} -} - func (x *BackfillRequest) GetStartTime() *timestamppb.Timestamp { if x != nil { return x.StartTime @@ -1037,8 +1679,67 @@ func (x *BackfillRequest) GetOverlapPolicy() v1.ScheduleOverlapPolicy { return v1.ScheduleOverlapPolicy(0) } +func (x *BackfillRequest) SetStartTime(v *timestamppb.Timestamp) { + x.StartTime = v +} + +func (x *BackfillRequest) SetEndTime(v *timestamppb.Timestamp) { + x.EndTime = v +} + +func (x *BackfillRequest) SetOverlapPolicy(v v1.ScheduleOverlapPolicy) { + x.OverlapPolicy = v +} + +func (x *BackfillRequest) HasStartTime() bool { + if x == nil { + return false + } + return x.StartTime != nil +} + +func (x *BackfillRequest) HasEndTime() bool { + if x == nil { + return false + } + return x.EndTime != nil +} + +func (x *BackfillRequest) ClearStartTime() { + x.StartTime = nil +} + +func (x *BackfillRequest) ClearEndTime() { + x.EndTime = nil +} + +type BackfillRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Time range to evaluate schedule in. Currently, this time range is + // exclusive on start_time and inclusive on end_time. (This is admittedly + // counterintuitive and it may change in the future, so to be safe, use a + // start time strictly before a scheduled time.) Also note that an action + // nominally scheduled in the interval but with jitter that pushes it after + // end_time will not be included. + StartTime *timestamppb.Timestamp + EndTime *timestamppb.Timestamp + // If set, override overlap policy for this request. + OverlapPolicy v1.ScheduleOverlapPolicy +} + +func (b0 BackfillRequest_builder) Build() *BackfillRequest { + m0 := &BackfillRequest{} + b, x := &b0, m0 + _, _ = b, x + x.StartTime = b.StartTime + x.EndTime = b.EndTime + x.OverlapPolicy = b.OverlapPolicy + return m0 +} + type SchedulePatch struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // If set, trigger one action immediately. TriggerImmediately *TriggerImmediatelyRequest `protobuf:"bytes,1,opt,name=trigger_immediately,json=triggerImmediately,proto3" json:"trigger_immediately,omitempty"` // If set, runs though the specified time period(s) and takes actions as if that time @@ -1078,11 +1779,6 @@ func (x *SchedulePatch) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SchedulePatch.ProtoReflect.Descriptor instead. -func (*SchedulePatch) Descriptor() ([]byte, []int) { - return file_temporal_api_schedule_v1_message_proto_rawDescGZIP(), []int{11} -} - func (x *SchedulePatch) GetTriggerImmediately() *TriggerImmediatelyRequest { if x != nil { return x.TriggerImmediately @@ -1111,8 +1807,61 @@ func (x *SchedulePatch) GetUnpause() string { return "" } +func (x *SchedulePatch) SetTriggerImmediately(v *TriggerImmediatelyRequest) { + x.TriggerImmediately = v +} + +func (x *SchedulePatch) SetBackfillRequest(v []*BackfillRequest) { + x.BackfillRequest = v +} + +func (x *SchedulePatch) SetPause(v string) { + x.Pause = v +} + +func (x *SchedulePatch) SetUnpause(v string) { + x.Unpause = v +} + +func (x *SchedulePatch) HasTriggerImmediately() bool { + if x == nil { + return false + } + return x.TriggerImmediately != nil +} + +func (x *SchedulePatch) ClearTriggerImmediately() { + x.TriggerImmediately = nil +} + +type SchedulePatch_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // If set, trigger one action immediately. + TriggerImmediately *TriggerImmediatelyRequest + // If set, runs though the specified time period(s) and takes actions as if that time + // passed by right now, all at once. The overlap policy can be overridden for the + // scope of the backfill. + BackfillRequest []*BackfillRequest + // If set, change the state to paused or unpaused (respectively) and set the + // notes field to the value of the string. + Pause string + Unpause string +} + +func (b0 SchedulePatch_builder) Build() *SchedulePatch { + m0 := &SchedulePatch{} + b, x := &b0, m0 + _, _ = b, x + x.TriggerImmediately = b.TriggerImmediately + x.BackfillRequest = b.BackfillRequest + x.Pause = b.Pause + x.Unpause = b.Unpause + return m0 +} + type ScheduleInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Number of actions taken so far. ActionCount int64 `protobuf:"varint,1,opt,name=action_count,json=actionCount,proto3" json:"action_count,omitempty"` // Number of times a scheduled action was skipped due to missing the catchup window. @@ -1171,11 +1920,6 @@ func (x *ScheduleInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ScheduleInfo.ProtoReflect.Descriptor instead. -func (*ScheduleInfo) Descriptor() ([]byte, []int) { - return file_temporal_api_schedule_v1_message_proto_rawDescGZIP(), []int{12} -} - func (x *ScheduleInfo) GetActionCount() int64 { if x != nil { return x.ActionCount @@ -1254,8 +1998,127 @@ func (x *ScheduleInfo) GetInvalidScheduleError() string { return "" } +func (x *ScheduleInfo) SetActionCount(v int64) { + x.ActionCount = v +} + +func (x *ScheduleInfo) SetMissedCatchupWindow(v int64) { + x.MissedCatchupWindow = v +} + +func (x *ScheduleInfo) SetOverlapSkipped(v int64) { + x.OverlapSkipped = v +} + +func (x *ScheduleInfo) SetBufferDropped(v int64) { + x.BufferDropped = v +} + +func (x *ScheduleInfo) SetBufferSize(v int64) { + x.BufferSize = v +} + +func (x *ScheduleInfo) SetRunningWorkflows(v []*v12.WorkflowExecution) { + x.RunningWorkflows = v +} + +func (x *ScheduleInfo) SetRecentActions(v []*ScheduleActionResult) { + x.RecentActions = v +} + +func (x *ScheduleInfo) SetFutureActionTimes(v []*timestamppb.Timestamp) { + x.FutureActionTimes = v +} + +func (x *ScheduleInfo) SetCreateTime(v *timestamppb.Timestamp) { + x.CreateTime = v +} + +func (x *ScheduleInfo) SetUpdateTime(v *timestamppb.Timestamp) { + x.UpdateTime = v +} + +// Deprecated: Marked as deprecated in temporal/api/schedule/v1/message.proto. +func (x *ScheduleInfo) SetInvalidScheduleError(v string) { + x.InvalidScheduleError = v +} + +func (x *ScheduleInfo) HasCreateTime() bool { + if x == nil { + return false + } + return x.CreateTime != nil +} + +func (x *ScheduleInfo) HasUpdateTime() bool { + if x == nil { + return false + } + return x.UpdateTime != nil +} + +func (x *ScheduleInfo) ClearCreateTime() { + x.CreateTime = nil +} + +func (x *ScheduleInfo) ClearUpdateTime() { + x.UpdateTime = nil +} + +type ScheduleInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Number of actions taken so far. + ActionCount int64 + // Number of times a scheduled action was skipped due to missing the catchup window. + MissedCatchupWindow int64 + // Number of skipped actions due to overlap. + OverlapSkipped int64 + // Number of dropped actions due to buffer limit. + BufferDropped int64 + // Number of actions in the buffer. The buffer holds the actions that cannot + // be immediately triggered (due to the overlap policy). These actions can be a result of + // the normal schedule or a backfill. + BufferSize int64 + // Currently-running workflows started by this schedule. (There might be + // more than one if the overlap policy allows overlaps.) + // Note that the run_ids in here are the original execution run ids as + // started by the schedule. If the workflows retried, did continue-as-new, + // or were reset, they might still be running but with a different run_id. + RunningWorkflows []*v12.WorkflowExecution + // Most recent ten actual action times (including manual triggers). + RecentActions []*ScheduleActionResult + // Next ten scheduled action times. + FutureActionTimes []*timestamppb.Timestamp + // Timestamps of schedule creation and last update. + CreateTime *timestamppb.Timestamp + UpdateTime *timestamppb.Timestamp + // Deprecated. + // + // Deprecated: Marked as deprecated in temporal/api/schedule/v1/message.proto. + InvalidScheduleError string +} + +func (b0 ScheduleInfo_builder) Build() *ScheduleInfo { + m0 := &ScheduleInfo{} + b, x := &b0, m0 + _, _ = b, x + x.ActionCount = b.ActionCount + x.MissedCatchupWindow = b.MissedCatchupWindow + x.OverlapSkipped = b.OverlapSkipped + x.BufferDropped = b.BufferDropped + x.BufferSize = b.BufferSize + x.RunningWorkflows = b.RunningWorkflows + x.RecentActions = b.RecentActions + x.FutureActionTimes = b.FutureActionTimes + x.CreateTime = b.CreateTime + x.UpdateTime = b.UpdateTime + x.InvalidScheduleError = b.InvalidScheduleError + return m0 +} + type Schedule struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Spec *ScheduleSpec `protobuf:"bytes,1,opt,name=spec,proto3" json:"spec,omitempty"` Action *ScheduleAction `protobuf:"bytes,2,opt,name=action,proto3" json:"action,omitempty"` Policies *SchedulePolicies `protobuf:"bytes,3,opt,name=policies,proto3" json:"policies,omitempty"` @@ -1289,11 +2152,6 @@ func (x *Schedule) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Schedule.ProtoReflect.Descriptor instead. -func (*Schedule) Descriptor() ([]byte, []int) { - return file_temporal_api_schedule_v1_message_proto_rawDescGZIP(), []int{13} -} - func (x *Schedule) GetSpec() *ScheduleSpec { if x != nil { return x.Spec @@ -1322,10 +2180,90 @@ func (x *Schedule) GetState() *ScheduleState { return nil } +func (x *Schedule) SetSpec(v *ScheduleSpec) { + x.Spec = v +} + +func (x *Schedule) SetAction(v *ScheduleAction) { + x.Action = v +} + +func (x *Schedule) SetPolicies(v *SchedulePolicies) { + x.Policies = v +} + +func (x *Schedule) SetState(v *ScheduleState) { + x.State = v +} + +func (x *Schedule) HasSpec() bool { + if x == nil { + return false + } + return x.Spec != nil +} + +func (x *Schedule) HasAction() bool { + if x == nil { + return false + } + return x.Action != nil +} + +func (x *Schedule) HasPolicies() bool { + if x == nil { + return false + } + return x.Policies != nil +} + +func (x *Schedule) HasState() bool { + if x == nil { + return false + } + return x.State != nil +} + +func (x *Schedule) ClearSpec() { + x.Spec = nil +} + +func (x *Schedule) ClearAction() { + x.Action = nil +} + +func (x *Schedule) ClearPolicies() { + x.Policies = nil +} + +func (x *Schedule) ClearState() { + x.State = nil +} + +type Schedule_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Spec *ScheduleSpec + Action *ScheduleAction + Policies *SchedulePolicies + State *ScheduleState +} + +func (b0 Schedule_builder) Build() *Schedule { + m0 := &Schedule{} + b, x := &b0, m0 + _, _ = b, x + x.Spec = b.Spec + x.Action = b.Action + x.Policies = b.Policies + x.State = b.State + return m0 +} + // ScheduleListInfo is an abbreviated set of values from Schedule and ScheduleInfo // that's returned in ListSchedules. type ScheduleListInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // From spec: // Some fields are dropped from this copy of spec: timezone_data Spec *ScheduleSpec `protobuf:"bytes,1,opt,name=spec,proto3" json:"spec,omitempty"` @@ -1368,11 +2306,6 @@ func (x *ScheduleListInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ScheduleListInfo.ProtoReflect.Descriptor instead. -func (*ScheduleListInfo) Descriptor() ([]byte, []int) { - return file_temporal_api_schedule_v1_message_proto_rawDescGZIP(), []int{14} -} - func (x *ScheduleListInfo) GetSpec() *ScheduleSpec { if x != nil { return x.Spec @@ -1415,9 +2348,86 @@ func (x *ScheduleListInfo) GetFutureActionTimes() []*timestamppb.Timestamp { return nil } +func (x *ScheduleListInfo) SetSpec(v *ScheduleSpec) { + x.Spec = v +} + +func (x *ScheduleListInfo) SetWorkflowType(v *v12.WorkflowType) { + x.WorkflowType = v +} + +func (x *ScheduleListInfo) SetNotes(v string) { + x.Notes = v +} + +func (x *ScheduleListInfo) SetPaused(v bool) { + x.Paused = v +} + +func (x *ScheduleListInfo) SetRecentActions(v []*ScheduleActionResult) { + x.RecentActions = v +} + +func (x *ScheduleListInfo) SetFutureActionTimes(v []*timestamppb.Timestamp) { + x.FutureActionTimes = v +} + +func (x *ScheduleListInfo) HasSpec() bool { + if x == nil { + return false + } + return x.Spec != nil +} + +func (x *ScheduleListInfo) HasWorkflowType() bool { + if x == nil { + return false + } + return x.WorkflowType != nil +} + +func (x *ScheduleListInfo) ClearSpec() { + x.Spec = nil +} + +func (x *ScheduleListInfo) ClearWorkflowType() { + x.WorkflowType = nil +} + +type ScheduleListInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // From spec: + // Some fields are dropped from this copy of spec: timezone_data + Spec *ScheduleSpec + // From action: + // Action is a oneof field, but we need to encode this in JSON and oneof fields don't work + // well with JSON. If action is start_workflow, this is set: + WorkflowType *v12.WorkflowType + // From state: + Notes string + Paused bool + // From info (maybe fewer entries): + RecentActions []*ScheduleActionResult + FutureActionTimes []*timestamppb.Timestamp +} + +func (b0 ScheduleListInfo_builder) Build() *ScheduleListInfo { + m0 := &ScheduleListInfo{} + b, x := &b0, m0 + _, _ = b, x + x.Spec = b.Spec + x.WorkflowType = b.WorkflowType + x.Notes = b.Notes + x.Paused = b.Paused + x.RecentActions = b.RecentActions + x.FutureActionTimes = b.FutureActionTimes + return m0 +} + // ScheduleListEntry is returned by ListSchedules. type ScheduleListEntry struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` ScheduleId string `protobuf:"bytes,1,opt,name=schedule_id,json=scheduleId,proto3" json:"schedule_id,omitempty"` Memo *v12.Memo `protobuf:"bytes,2,opt,name=memo,proto3" json:"memo,omitempty"` SearchAttributes *v12.SearchAttributes `protobuf:"bytes,3,opt,name=search_attributes,json=searchAttributes,proto3" json:"search_attributes,omitempty"` @@ -1451,11 +2461,6 @@ func (x *ScheduleListEntry) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ScheduleListEntry.ProtoReflect.Descriptor instead. -func (*ScheduleListEntry) Descriptor() ([]byte, []int) { - return file_temporal_api_schedule_v1_message_proto_rawDescGZIP(), []int{15} -} - func (x *ScheduleListEntry) GetScheduleId() string { if x != nil { return x.ScheduleId @@ -1484,6 +2489,75 @@ func (x *ScheduleListEntry) GetInfo() *ScheduleListInfo { return nil } +func (x *ScheduleListEntry) SetScheduleId(v string) { + x.ScheduleId = v +} + +func (x *ScheduleListEntry) SetMemo(v *v12.Memo) { + x.Memo = v +} + +func (x *ScheduleListEntry) SetSearchAttributes(v *v12.SearchAttributes) { + x.SearchAttributes = v +} + +func (x *ScheduleListEntry) SetInfo(v *ScheduleListInfo) { + x.Info = v +} + +func (x *ScheduleListEntry) HasMemo() bool { + if x == nil { + return false + } + return x.Memo != nil +} + +func (x *ScheduleListEntry) HasSearchAttributes() bool { + if x == nil { + return false + } + return x.SearchAttributes != nil +} + +func (x *ScheduleListEntry) HasInfo() bool { + if x == nil { + return false + } + return x.Info != nil +} + +func (x *ScheduleListEntry) ClearMemo() { + x.Memo = nil +} + +func (x *ScheduleListEntry) ClearSearchAttributes() { + x.SearchAttributes = nil +} + +func (x *ScheduleListEntry) ClearInfo() { + x.Info = nil +} + +type ScheduleListEntry_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ScheduleId string + Memo *v12.Memo + SearchAttributes *v12.SearchAttributes + Info *ScheduleListInfo +} + +func (b0 ScheduleListEntry_builder) Build() *ScheduleListEntry { + m0 := &ScheduleListEntry{} + b, x := &b0, m0 + _, _ = b, x + x.ScheduleId = b.ScheduleId + x.Memo = b.Memo + x.SearchAttributes = b.SearchAttributes + x.Info = b.Info + return m0 +} + var File_temporal_api_schedule_v1_message_proto protoreflect.FileDescriptor const file_temporal_api_schedule_v1_message_proto_rawDesc = "" + @@ -1599,18 +2673,6 @@ const file_temporal_api_schedule_v1_message_proto_rawDesc = "" + "\x04info\x18\x04 \x01(\v2*.temporal.api.schedule.v1.ScheduleListInfoR\x04infoB\x93\x01\n" + "\x1bio.temporal.api.schedule.v1B\fMessageProtoP\x01Z'go.temporal.io/api/schedule/v1;schedule\xaa\x02\x1aTemporalio.Api.Schedule.V1\xea\x02\x1dTemporalio::Api::Schedule::V1b\x06proto3" -var ( - file_temporal_api_schedule_v1_message_proto_rawDescOnce sync.Once - file_temporal_api_schedule_v1_message_proto_rawDescData []byte -) - -func file_temporal_api_schedule_v1_message_proto_rawDescGZIP() []byte { - file_temporal_api_schedule_v1_message_proto_rawDescOnce.Do(func() { - file_temporal_api_schedule_v1_message_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_api_schedule_v1_message_proto_rawDesc), len(file_temporal_api_schedule_v1_message_proto_rawDesc))) - }) - return file_temporal_api_schedule_v1_message_proto_rawDescData -} - var file_temporal_api_schedule_v1_message_proto_msgTypes = make([]protoimpl.MessageInfo, 16) var file_temporal_api_schedule_v1_message_proto_goTypes = []any{ (*CalendarSpec)(nil), // 0: temporal.api.schedule.v1.CalendarSpec diff --git a/schedule/v1/message_protoopaque.pb.go b/schedule/v1/message_protoopaque.pb.go new file mode 100644 index 00000000..c7754f8f --- /dev/null +++ b/schedule/v1/message_protoopaque.pb.go @@ -0,0 +1,2660 @@ +// (-- api-linter: core::0203::optional=disabled +// aip.dev/not-precedent: field_behavior annotation not available in our gogo fork --) +// (-- api-linter: core::0203::input-only=disabled +// aip.dev/not-precedent: field_behavior annotation not available in our gogo fork --) + +// Code generated by protoc-gen-go. DO NOT EDIT. +// plugins: +// protoc-gen-go +// protoc +// source: temporal/api/schedule/v1/message.proto + +//go:build protoopaque + +package schedule + +import ( + reflect "reflect" + "strconv" + unsafe "unsafe" + + v12 "go.temporal.io/api/common/v1" + v1 "go.temporal.io/api/enums/v1" + v11 "go.temporal.io/api/workflow/v1" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + durationpb "google.golang.org/protobuf/types/known/durationpb" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// CalendarSpec describes an event specification relative to the calendar, +// similar to a traditional cron specification, but with labeled fields. Each +// field can be one of: +// +// *: matches always +// x: matches when the field equals x +// x/y : matches when the field equals x+n*y where n is an integer +// x-z: matches when the field is between x and z inclusive +// w,x,y,...: matches when the field is one of the listed values +// +// Each x, y, z, ... is either a decimal integer, or a month or day of week name +// or abbreviation (in the appropriate fields). +// A timestamp matches if all fields match. +// Note that fields have different default values, for convenience. +// Note that the special case that some cron implementations have for treating +// day_of_month and day_of_week as "or" instead of "and" when both are set is +// not implemented. +// day_of_week can accept 0 or 7 as Sunday +// CalendarSpec gets compiled into StructuredCalendarSpec, which is what will be +// returned if you describe the schedule. +type CalendarSpec struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Second string `protobuf:"bytes,1,opt,name=second,proto3"` + xxx_hidden_Minute string `protobuf:"bytes,2,opt,name=minute,proto3"` + xxx_hidden_Hour string `protobuf:"bytes,3,opt,name=hour,proto3"` + xxx_hidden_DayOfMonth string `protobuf:"bytes,4,opt,name=day_of_month,json=dayOfMonth,proto3"` + xxx_hidden_Month string `protobuf:"bytes,5,opt,name=month,proto3"` + xxx_hidden_Year string `protobuf:"bytes,6,opt,name=year,proto3"` + xxx_hidden_DayOfWeek string `protobuf:"bytes,7,opt,name=day_of_week,json=dayOfWeek,proto3"` + xxx_hidden_Comment string `protobuf:"bytes,8,opt,name=comment,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CalendarSpec) Reset() { + *x = CalendarSpec{} + mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CalendarSpec) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CalendarSpec) ProtoMessage() {} + +func (x *CalendarSpec) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *CalendarSpec) GetSecond() string { + if x != nil { + return x.xxx_hidden_Second + } + return "" +} + +func (x *CalendarSpec) GetMinute() string { + if x != nil { + return x.xxx_hidden_Minute + } + return "" +} + +func (x *CalendarSpec) GetHour() string { + if x != nil { + return x.xxx_hidden_Hour + } + return "" +} + +func (x *CalendarSpec) GetDayOfMonth() string { + if x != nil { + return x.xxx_hidden_DayOfMonth + } + return "" +} + +func (x *CalendarSpec) GetMonth() string { + if x != nil { + return x.xxx_hidden_Month + } + return "" +} + +func (x *CalendarSpec) GetYear() string { + if x != nil { + return x.xxx_hidden_Year + } + return "" +} + +func (x *CalendarSpec) GetDayOfWeek() string { + if x != nil { + return x.xxx_hidden_DayOfWeek + } + return "" +} + +func (x *CalendarSpec) GetComment() string { + if x != nil { + return x.xxx_hidden_Comment + } + return "" +} + +func (x *CalendarSpec) SetSecond(v string) { + x.xxx_hidden_Second = v +} + +func (x *CalendarSpec) SetMinute(v string) { + x.xxx_hidden_Minute = v +} + +func (x *CalendarSpec) SetHour(v string) { + x.xxx_hidden_Hour = v +} + +func (x *CalendarSpec) SetDayOfMonth(v string) { + x.xxx_hidden_DayOfMonth = v +} + +func (x *CalendarSpec) SetMonth(v string) { + x.xxx_hidden_Month = v +} + +func (x *CalendarSpec) SetYear(v string) { + x.xxx_hidden_Year = v +} + +func (x *CalendarSpec) SetDayOfWeek(v string) { + x.xxx_hidden_DayOfWeek = v +} + +func (x *CalendarSpec) SetComment(v string) { + x.xxx_hidden_Comment = v +} + +type CalendarSpec_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Expression to match seconds. Default: 0 + Second string + // Expression to match minutes. Default: 0 + Minute string + // Expression to match hours. Default: 0 + Hour string + // Expression to match days of the month. Default: * + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: standard name of field --) + DayOfMonth string + // Expression to match months. Default: * + Month string + // Expression to match years. Default: * + Year string + // Expression to match days of the week. Default: * + DayOfWeek string + // Free-form comment describing the intention of this spec. + Comment string +} + +func (b0 CalendarSpec_builder) Build() *CalendarSpec { + m0 := &CalendarSpec{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Second = b.Second + x.xxx_hidden_Minute = b.Minute + x.xxx_hidden_Hour = b.Hour + x.xxx_hidden_DayOfMonth = b.DayOfMonth + x.xxx_hidden_Month = b.Month + x.xxx_hidden_Year = b.Year + x.xxx_hidden_DayOfWeek = b.DayOfWeek + x.xxx_hidden_Comment = b.Comment + return m0 +} + +// Range represents a set of integer values, used to match fields of a calendar +// time in StructuredCalendarSpec. If end < start, then end is interpreted as +// equal to start. This means you can use a Range with start set to a value, and +// end and step unset (defaulting to 0) to represent a single value. +type Range struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Start int32 `protobuf:"varint,1,opt,name=start,proto3"` + xxx_hidden_End int32 `protobuf:"varint,2,opt,name=end,proto3"` + xxx_hidden_Step int32 `protobuf:"varint,3,opt,name=step,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Range) Reset() { + *x = Range{} + mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Range) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Range) ProtoMessage() {} + +func (x *Range) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *Range) GetStart() int32 { + if x != nil { + return x.xxx_hidden_Start + } + return 0 +} + +func (x *Range) GetEnd() int32 { + if x != nil { + return x.xxx_hidden_End + } + return 0 +} + +func (x *Range) GetStep() int32 { + if x != nil { + return x.xxx_hidden_Step + } + return 0 +} + +func (x *Range) SetStart(v int32) { + x.xxx_hidden_Start = v +} + +func (x *Range) SetEnd(v int32) { + x.xxx_hidden_End = v +} + +func (x *Range) SetStep(v int32) { + x.xxx_hidden_Step = v +} + +type Range_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Start of range (inclusive). + Start int32 + // End of range (inclusive). + End int32 + // Step (optional, default 1). + Step int32 +} + +func (b0 Range_builder) Build() *Range { + m0 := &Range{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Start = b.Start + x.xxx_hidden_End = b.End + x.xxx_hidden_Step = b.Step + return m0 +} + +// StructuredCalendarSpec describes an event specification relative to the +// calendar, in a form that's easy to work with programmatically. Each field can +// be one or more ranges. +// A timestamp matches if at least one range of each field matches the +// corresponding fields of the timestamp, except for year: if year is missing, +// that means all years match. For all fields besides year, at least one Range +// must be present to match anything. +// Relative expressions such as "last day of the month" or "third Monday" are not currently +// representable; callers must enumerate the concrete days they require. +type StructuredCalendarSpec struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Second *[]*Range `protobuf:"bytes,1,rep,name=second,proto3"` + xxx_hidden_Minute *[]*Range `protobuf:"bytes,2,rep,name=minute,proto3"` + xxx_hidden_Hour *[]*Range `protobuf:"bytes,3,rep,name=hour,proto3"` + xxx_hidden_DayOfMonth *[]*Range `protobuf:"bytes,4,rep,name=day_of_month,json=dayOfMonth,proto3"` + xxx_hidden_Month *[]*Range `protobuf:"bytes,5,rep,name=month,proto3"` + xxx_hidden_Year *[]*Range `protobuf:"bytes,6,rep,name=year,proto3"` + xxx_hidden_DayOfWeek *[]*Range `protobuf:"bytes,7,rep,name=day_of_week,json=dayOfWeek,proto3"` + xxx_hidden_Comment string `protobuf:"bytes,8,opt,name=comment,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *StructuredCalendarSpec) Reset() { + *x = StructuredCalendarSpec{} + mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *StructuredCalendarSpec) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StructuredCalendarSpec) ProtoMessage() {} + +func (x *StructuredCalendarSpec) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *StructuredCalendarSpec) GetSecond() []*Range { + if x != nil { + if x.xxx_hidden_Second != nil { + return *x.xxx_hidden_Second + } + } + return nil +} + +func (x *StructuredCalendarSpec) GetMinute() []*Range { + if x != nil { + if x.xxx_hidden_Minute != nil { + return *x.xxx_hidden_Minute + } + } + return nil +} + +func (x *StructuredCalendarSpec) GetHour() []*Range { + if x != nil { + if x.xxx_hidden_Hour != nil { + return *x.xxx_hidden_Hour + } + } + return nil +} + +func (x *StructuredCalendarSpec) GetDayOfMonth() []*Range { + if x != nil { + if x.xxx_hidden_DayOfMonth != nil { + return *x.xxx_hidden_DayOfMonth + } + } + return nil +} + +func (x *StructuredCalendarSpec) GetMonth() []*Range { + if x != nil { + if x.xxx_hidden_Month != nil { + return *x.xxx_hidden_Month + } + } + return nil +} + +func (x *StructuredCalendarSpec) GetYear() []*Range { + if x != nil { + if x.xxx_hidden_Year != nil { + return *x.xxx_hidden_Year + } + } + return nil +} + +func (x *StructuredCalendarSpec) GetDayOfWeek() []*Range { + if x != nil { + if x.xxx_hidden_DayOfWeek != nil { + return *x.xxx_hidden_DayOfWeek + } + } + return nil +} + +func (x *StructuredCalendarSpec) GetComment() string { + if x != nil { + return x.xxx_hidden_Comment + } + return "" +} + +func (x *StructuredCalendarSpec) SetSecond(v []*Range) { + x.xxx_hidden_Second = &v +} + +func (x *StructuredCalendarSpec) SetMinute(v []*Range) { + x.xxx_hidden_Minute = &v +} + +func (x *StructuredCalendarSpec) SetHour(v []*Range) { + x.xxx_hidden_Hour = &v +} + +func (x *StructuredCalendarSpec) SetDayOfMonth(v []*Range) { + x.xxx_hidden_DayOfMonth = &v +} + +func (x *StructuredCalendarSpec) SetMonth(v []*Range) { + x.xxx_hidden_Month = &v +} + +func (x *StructuredCalendarSpec) SetYear(v []*Range) { + x.xxx_hidden_Year = &v +} + +func (x *StructuredCalendarSpec) SetDayOfWeek(v []*Range) { + x.xxx_hidden_DayOfWeek = &v +} + +func (x *StructuredCalendarSpec) SetComment(v string) { + x.xxx_hidden_Comment = v +} + +type StructuredCalendarSpec_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Match seconds (0-59) + Second []*Range + // Match minutes (0-59) + Minute []*Range + // Match hours (0-23) + Hour []*Range + // Match days of the month (1-31) + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: standard name of field --) + DayOfMonth []*Range + // Match months (1-12) + Month []*Range + // Match years. + Year []*Range + // Match days of the week (0-6; 0 is Sunday). + DayOfWeek []*Range + // Free-form comment describing the intention of this spec. + Comment string +} + +func (b0 StructuredCalendarSpec_builder) Build() *StructuredCalendarSpec { + m0 := &StructuredCalendarSpec{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Second = &b.Second + x.xxx_hidden_Minute = &b.Minute + x.xxx_hidden_Hour = &b.Hour + x.xxx_hidden_DayOfMonth = &b.DayOfMonth + x.xxx_hidden_Month = &b.Month + x.xxx_hidden_Year = &b.Year + x.xxx_hidden_DayOfWeek = &b.DayOfWeek + x.xxx_hidden_Comment = b.Comment + return m0 +} + +// IntervalSpec matches times that can be expressed as: +// epoch + n * interval + phase +// where n is an integer. +// phase defaults to zero if missing. interval is required. +// Both interval and phase must be non-negative and are truncated to the nearest +// second before any calculations. +// For example, an interval of 1 hour with phase of zero would match every hour, +// on the hour. The same interval but a phase of 19 minutes would match every +// xx:19:00. An interval of 28 days with phase zero would match +// 2022-02-17T00:00:00Z (among other times). The same interval with a phase of 3 +// days, 5 hours, and 23 minutes would match 2022-02-20T05:23:00Z instead. +type IntervalSpec struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Interval *durationpb.Duration `protobuf:"bytes,1,opt,name=interval,proto3"` + xxx_hidden_Phase *durationpb.Duration `protobuf:"bytes,2,opt,name=phase,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *IntervalSpec) Reset() { + *x = IntervalSpec{} + mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *IntervalSpec) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*IntervalSpec) ProtoMessage() {} + +func (x *IntervalSpec) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *IntervalSpec) GetInterval() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_Interval + } + return nil +} + +func (x *IntervalSpec) GetPhase() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_Phase + } + return nil +} + +func (x *IntervalSpec) SetInterval(v *durationpb.Duration) { + x.xxx_hidden_Interval = v +} + +func (x *IntervalSpec) SetPhase(v *durationpb.Duration) { + x.xxx_hidden_Phase = v +} + +func (x *IntervalSpec) HasInterval() bool { + if x == nil { + return false + } + return x.xxx_hidden_Interval != nil +} + +func (x *IntervalSpec) HasPhase() bool { + if x == nil { + return false + } + return x.xxx_hidden_Phase != nil +} + +func (x *IntervalSpec) ClearInterval() { + x.xxx_hidden_Interval = nil +} + +func (x *IntervalSpec) ClearPhase() { + x.xxx_hidden_Phase = nil +} + +type IntervalSpec_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Interval *durationpb.Duration + Phase *durationpb.Duration +} + +func (b0 IntervalSpec_builder) Build() *IntervalSpec { + m0 := &IntervalSpec{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Interval = b.Interval + x.xxx_hidden_Phase = b.Phase + return m0 +} + +// ScheduleSpec is a complete description of a set of absolute timestamps +// (possibly infinite) that an action should occur at. The meaning of a +// ScheduleSpec depends only on its contents and never changes, except that the +// definition of a time zone can change over time (most commonly, when daylight +// saving time policy changes for an area). To create a totally self-contained +// ScheduleSpec, use UTC or include timezone_data. +// +// For input, you can provide zero or more of: structured_calendar, calendar, +// cron_string, interval, and exclude_structured_calendar, and all of them will +// be used (the schedule will take action at the union of all of their times, +// minus the ones that match exclude_structured_calendar). +// +// On input, calendar and cron_string fields will be compiled into +// structured_calendar (and maybe interval and timezone_name), so if you +// Describe a schedule, you'll see only structured_calendar, interval, etc. +// +// If a spec has no matching times after the current time, then the schedule +// will be subject to automatic deletion (after several days). +type ScheduleSpec struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_StructuredCalendar *[]*StructuredCalendarSpec `protobuf:"bytes,7,rep,name=structured_calendar,json=structuredCalendar,proto3"` + xxx_hidden_CronString []string `protobuf:"bytes,8,rep,name=cron_string,json=cronString,proto3"` + xxx_hidden_Calendar *[]*CalendarSpec `protobuf:"bytes,1,rep,name=calendar,proto3"` + xxx_hidden_Interval *[]*IntervalSpec `protobuf:"bytes,2,rep,name=interval,proto3"` + xxx_hidden_ExcludeCalendar *[]*CalendarSpec `protobuf:"bytes,3,rep,name=exclude_calendar,json=excludeCalendar,proto3"` + xxx_hidden_ExcludeStructuredCalendar *[]*StructuredCalendarSpec `protobuf:"bytes,9,rep,name=exclude_structured_calendar,json=excludeStructuredCalendar,proto3"` + xxx_hidden_StartTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=start_time,json=startTime,proto3"` + xxx_hidden_EndTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=end_time,json=endTime,proto3"` + xxx_hidden_Jitter *durationpb.Duration `protobuf:"bytes,6,opt,name=jitter,proto3"` + xxx_hidden_TimezoneName string `protobuf:"bytes,10,opt,name=timezone_name,json=timezoneName,proto3"` + xxx_hidden_TimezoneData []byte `protobuf:"bytes,11,opt,name=timezone_data,json=timezoneData,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ScheduleSpec) Reset() { + *x = ScheduleSpec{} + mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ScheduleSpec) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ScheduleSpec) ProtoMessage() {} + +func (x *ScheduleSpec) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ScheduleSpec) GetStructuredCalendar() []*StructuredCalendarSpec { + if x != nil { + if x.xxx_hidden_StructuredCalendar != nil { + return *x.xxx_hidden_StructuredCalendar + } + } + return nil +} + +func (x *ScheduleSpec) GetCronString() []string { + if x != nil { + return x.xxx_hidden_CronString + } + return nil +} + +func (x *ScheduleSpec) GetCalendar() []*CalendarSpec { + if x != nil { + if x.xxx_hidden_Calendar != nil { + return *x.xxx_hidden_Calendar + } + } + return nil +} + +func (x *ScheduleSpec) GetInterval() []*IntervalSpec { + if x != nil { + if x.xxx_hidden_Interval != nil { + return *x.xxx_hidden_Interval + } + } + return nil +} + +// Deprecated: Marked as deprecated in temporal/api/schedule/v1/message.proto. +func (x *ScheduleSpec) GetExcludeCalendar() []*CalendarSpec { + if x != nil { + if x.xxx_hidden_ExcludeCalendar != nil { + return *x.xxx_hidden_ExcludeCalendar + } + } + return nil +} + +func (x *ScheduleSpec) GetExcludeStructuredCalendar() []*StructuredCalendarSpec { + if x != nil { + if x.xxx_hidden_ExcludeStructuredCalendar != nil { + return *x.xxx_hidden_ExcludeStructuredCalendar + } + } + return nil +} + +func (x *ScheduleSpec) GetStartTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_StartTime + } + return nil +} + +func (x *ScheduleSpec) GetEndTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_EndTime + } + return nil +} + +func (x *ScheduleSpec) GetJitter() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_Jitter + } + return nil +} + +func (x *ScheduleSpec) GetTimezoneName() string { + if x != nil { + return x.xxx_hidden_TimezoneName + } + return "" +} + +func (x *ScheduleSpec) GetTimezoneData() []byte { + if x != nil { + return x.xxx_hidden_TimezoneData + } + return nil +} + +func (x *ScheduleSpec) SetStructuredCalendar(v []*StructuredCalendarSpec) { + x.xxx_hidden_StructuredCalendar = &v +} + +func (x *ScheduleSpec) SetCronString(v []string) { + x.xxx_hidden_CronString = v +} + +func (x *ScheduleSpec) SetCalendar(v []*CalendarSpec) { + x.xxx_hidden_Calendar = &v +} + +func (x *ScheduleSpec) SetInterval(v []*IntervalSpec) { + x.xxx_hidden_Interval = &v +} + +// Deprecated: Marked as deprecated in temporal/api/schedule/v1/message.proto. +func (x *ScheduleSpec) SetExcludeCalendar(v []*CalendarSpec) { + x.xxx_hidden_ExcludeCalendar = &v +} + +func (x *ScheduleSpec) SetExcludeStructuredCalendar(v []*StructuredCalendarSpec) { + x.xxx_hidden_ExcludeStructuredCalendar = &v +} + +func (x *ScheduleSpec) SetStartTime(v *timestamppb.Timestamp) { + x.xxx_hidden_StartTime = v +} + +func (x *ScheduleSpec) SetEndTime(v *timestamppb.Timestamp) { + x.xxx_hidden_EndTime = v +} + +func (x *ScheduleSpec) SetJitter(v *durationpb.Duration) { + x.xxx_hidden_Jitter = v +} + +func (x *ScheduleSpec) SetTimezoneName(v string) { + x.xxx_hidden_TimezoneName = v +} + +func (x *ScheduleSpec) SetTimezoneData(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_TimezoneData = v +} + +func (x *ScheduleSpec) HasStartTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_StartTime != nil +} + +func (x *ScheduleSpec) HasEndTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_EndTime != nil +} + +func (x *ScheduleSpec) HasJitter() bool { + if x == nil { + return false + } + return x.xxx_hidden_Jitter != nil +} + +func (x *ScheduleSpec) ClearStartTime() { + x.xxx_hidden_StartTime = nil +} + +func (x *ScheduleSpec) ClearEndTime() { + x.xxx_hidden_EndTime = nil +} + +func (x *ScheduleSpec) ClearJitter() { + x.xxx_hidden_Jitter = nil +} + +type ScheduleSpec_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Calendar-based specifications of times. + StructuredCalendar []*StructuredCalendarSpec + // cron_string holds a traditional cron specification as a string. It + // accepts 5, 6, or 7 fields, separated by spaces, and interprets them the + // same way as CalendarSpec. + // 5 fields: minute, hour, day_of_month, month, day_of_week + // 6 fields: minute, hour, day_of_month, month, day_of_week, year + // 7 fields: second, minute, hour, day_of_month, month, day_of_week, year + // If year is not given, it defaults to *. If second is not given, it + // defaults to 0. + // Shorthands @yearly, @monthly, @weekly, @daily, and @hourly are also + // accepted instead of the 5-7 time fields. + // Optionally, the string can be preceded by CRON_TZ= or + // TZ=, which will get copied to timezone_name. (There must + // not also be a timezone_name present.) + // Optionally "#" followed by a comment can appear at the end of the string. + // Note that the special case that some cron implementations have for + // treating day_of_month and day_of_week as "or" instead of "and" when both + // are set is not implemented. + // @every [/] is accepted and gets compiled into an + // IntervalSpec instead. and should be a decimal integer + // with a unit suffix s, m, h, or d. + CronString []string + // Calendar-based specifications of times. + Calendar []*CalendarSpec + // Interval-based specifications of times. + Interval []*IntervalSpec + // Any timestamps matching any of exclude_* will be skipped. + // Deprecated. Use exclude_structured_calendar. + // + // Deprecated: Marked as deprecated in temporal/api/schedule/v1/message.proto. + ExcludeCalendar []*CalendarSpec + ExcludeStructuredCalendar []*StructuredCalendarSpec + // If start_time is set, any timestamps before start_time will be skipped. + // (Together, start_time and end_time make an inclusive interval.) + StartTime *timestamppb.Timestamp + // If end_time is set, any timestamps after end_time will be skipped. + EndTime *timestamppb.Timestamp + // All timestamps will be incremented by a random value from 0 to this + // amount of jitter. Default: 0 + Jitter *durationpb.Duration + // Time zone to interpret all calendar-based specs in. + // + // If unset, defaults to UTC. We recommend using UTC for your application if + // at all possible, to avoid various surprising properties of time zones. + // + // Time zones may be provided by name, corresponding to names in the IANA + // time zone database (see https://www.iana.org/time-zones). The definition + // will be loaded by the Temporal server from the environment it runs in. + // + // If your application requires more control over the time zone definition + // used, it may pass in a complete definition in the form of a TZif file + // from the time zone database. If present, this will be used instead of + // loading anything from the environment. You are then responsible for + // updating timezone_data when the definition changes. + // + // Calendar spec matching is based on literal matching of the clock time + // with no special handling of DST: if you write a calendar spec that fires + // at 2:30am and specify a time zone that follows DST, that action will not + // be triggered on the day that has no 2:30am. Similarly, an action that + // fires at 1:30am will be triggered twice on the day that has two 1:30s. + // + // Also note that no actions are taken on leap-seconds (e.g. 23:59:60 UTC). + TimezoneName string + TimezoneData []byte +} + +func (b0 ScheduleSpec_builder) Build() *ScheduleSpec { + m0 := &ScheduleSpec{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_StructuredCalendar = &b.StructuredCalendar + x.xxx_hidden_CronString = b.CronString + x.xxx_hidden_Calendar = &b.Calendar + x.xxx_hidden_Interval = &b.Interval + x.xxx_hidden_ExcludeCalendar = &b.ExcludeCalendar + x.xxx_hidden_ExcludeStructuredCalendar = &b.ExcludeStructuredCalendar + x.xxx_hidden_StartTime = b.StartTime + x.xxx_hidden_EndTime = b.EndTime + x.xxx_hidden_Jitter = b.Jitter + x.xxx_hidden_TimezoneName = b.TimezoneName + x.xxx_hidden_TimezoneData = b.TimezoneData + return m0 +} + +type SchedulePolicies struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_OverlapPolicy v1.ScheduleOverlapPolicy `protobuf:"varint,1,opt,name=overlap_policy,json=overlapPolicy,proto3,enum=temporal.api.enums.v1.ScheduleOverlapPolicy"` + xxx_hidden_CatchupWindow *durationpb.Duration `protobuf:"bytes,2,opt,name=catchup_window,json=catchupWindow,proto3"` + xxx_hidden_PauseOnFailure bool `protobuf:"varint,3,opt,name=pause_on_failure,json=pauseOnFailure,proto3"` + xxx_hidden_KeepOriginalWorkflowId bool `protobuf:"varint,4,opt,name=keep_original_workflow_id,json=keepOriginalWorkflowId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SchedulePolicies) Reset() { + *x = SchedulePolicies{} + mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SchedulePolicies) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SchedulePolicies) ProtoMessage() {} + +func (x *SchedulePolicies) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *SchedulePolicies) GetOverlapPolicy() v1.ScheduleOverlapPolicy { + if x != nil { + return x.xxx_hidden_OverlapPolicy + } + return v1.ScheduleOverlapPolicy(0) +} + +func (x *SchedulePolicies) GetCatchupWindow() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_CatchupWindow + } + return nil +} + +func (x *SchedulePolicies) GetPauseOnFailure() bool { + if x != nil { + return x.xxx_hidden_PauseOnFailure + } + return false +} + +func (x *SchedulePolicies) GetKeepOriginalWorkflowId() bool { + if x != nil { + return x.xxx_hidden_KeepOriginalWorkflowId + } + return false +} + +func (x *SchedulePolicies) SetOverlapPolicy(v v1.ScheduleOverlapPolicy) { + x.xxx_hidden_OverlapPolicy = v +} + +func (x *SchedulePolicies) SetCatchupWindow(v *durationpb.Duration) { + x.xxx_hidden_CatchupWindow = v +} + +func (x *SchedulePolicies) SetPauseOnFailure(v bool) { + x.xxx_hidden_PauseOnFailure = v +} + +func (x *SchedulePolicies) SetKeepOriginalWorkflowId(v bool) { + x.xxx_hidden_KeepOriginalWorkflowId = v +} + +func (x *SchedulePolicies) HasCatchupWindow() bool { + if x == nil { + return false + } + return x.xxx_hidden_CatchupWindow != nil +} + +func (x *SchedulePolicies) ClearCatchupWindow() { + x.xxx_hidden_CatchupWindow = nil +} + +type SchedulePolicies_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Policy for overlaps. + // Note that this can be changed after a schedule has taken some actions, + // and some changes might produce unintuitive results. In general, the later + // policy overrides the earlier policy. + OverlapPolicy v1.ScheduleOverlapPolicy + // Policy for catchups: + // If the Temporal server misses an action due to one or more components + // being down, and comes back up, the action will be run if the scheduled + // time is within this window from the current time. + // This value defaults to one year, and can't be less than 10 seconds. + CatchupWindow *durationpb.Duration + // If true, and a workflow run fails or times out, turn on "paused". + // This applies after retry policies: the full chain of retries must fail to + // trigger a pause here. + PauseOnFailure bool + // If true, and the action would start a workflow, a timestamp will not be + // appended to the scheduled workflow id. + KeepOriginalWorkflowId bool +} + +func (b0 SchedulePolicies_builder) Build() *SchedulePolicies { + m0 := &SchedulePolicies{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_OverlapPolicy = b.OverlapPolicy + x.xxx_hidden_CatchupWindow = b.CatchupWindow + x.xxx_hidden_PauseOnFailure = b.PauseOnFailure + x.xxx_hidden_KeepOriginalWorkflowId = b.KeepOriginalWorkflowId + return m0 +} + +type ScheduleAction struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Action isScheduleAction_Action `protobuf_oneof:"action"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ScheduleAction) Reset() { + *x = ScheduleAction{} + mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ScheduleAction) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ScheduleAction) ProtoMessage() {} + +func (x *ScheduleAction) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ScheduleAction) GetStartWorkflow() *v11.NewWorkflowExecutionInfo { + if x != nil { + if x, ok := x.xxx_hidden_Action.(*scheduleAction_StartWorkflow); ok { + return x.StartWorkflow + } + } + return nil +} + +func (x *ScheduleAction) SetStartWorkflow(v *v11.NewWorkflowExecutionInfo) { + if v == nil { + x.xxx_hidden_Action = nil + return + } + x.xxx_hidden_Action = &scheduleAction_StartWorkflow{v} +} + +func (x *ScheduleAction) HasAction() bool { + if x == nil { + return false + } + return x.xxx_hidden_Action != nil +} + +func (x *ScheduleAction) HasStartWorkflow() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Action.(*scheduleAction_StartWorkflow) + return ok +} + +func (x *ScheduleAction) ClearAction() { + x.xxx_hidden_Action = nil +} + +func (x *ScheduleAction) ClearStartWorkflow() { + if _, ok := x.xxx_hidden_Action.(*scheduleAction_StartWorkflow); ok { + x.xxx_hidden_Action = nil + } +} + +const ScheduleAction_Action_not_set_case case_ScheduleAction_Action = 0 +const ScheduleAction_StartWorkflow_case case_ScheduleAction_Action = 1 + +func (x *ScheduleAction) WhichAction() case_ScheduleAction_Action { + if x == nil { + return ScheduleAction_Action_not_set_case + } + switch x.xxx_hidden_Action.(type) { + case *scheduleAction_StartWorkflow: + return ScheduleAction_StartWorkflow_case + default: + return ScheduleAction_Action_not_set_case + } +} + +type ScheduleAction_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Fields of oneof xxx_hidden_Action: + // All fields of NewWorkflowExecutionInfo are valid except for: + // - workflow_id_reuse_policy + // - cron_schedule + // The workflow id of the started workflow may not match this exactly, + // it may have a timestamp appended for uniqueness. + StartWorkflow *v11.NewWorkflowExecutionInfo + // -- end of xxx_hidden_Action +} + +func (b0 ScheduleAction_builder) Build() *ScheduleAction { + m0 := &ScheduleAction{} + b, x := &b0, m0 + _, _ = b, x + if b.StartWorkflow != nil { + x.xxx_hidden_Action = &scheduleAction_StartWorkflow{b.StartWorkflow} + } + return m0 +} + +type case_ScheduleAction_Action protoreflect.FieldNumber + +func (x case_ScheduleAction_Action) String() string { + switch x { + case ScheduleAction_Action_not_set_case: + return "ScheduleActionActionNotSetCase" + case ScheduleAction_StartWorkflow_case: + return "ScheduleActionStartWorkflowCase" + default: + return strconv.Itoa(int(x)) + } + +} + +type isScheduleAction_Action interface { + isScheduleAction_Action() +} + +type scheduleAction_StartWorkflow struct { + // All fields of NewWorkflowExecutionInfo are valid except for: + // - workflow_id_reuse_policy + // - cron_schedule + // The workflow id of the started workflow may not match this exactly, + // it may have a timestamp appended for uniqueness. + StartWorkflow *v11.NewWorkflowExecutionInfo `protobuf:"bytes,1,opt,name=start_workflow,json=startWorkflow,proto3,oneof"` +} + +func (*scheduleAction_StartWorkflow) isScheduleAction_Action() {} + +type ScheduleActionResult struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ScheduleTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=schedule_time,json=scheduleTime,proto3"` + xxx_hidden_ActualTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=actual_time,json=actualTime,proto3"` + xxx_hidden_StartWorkflowResult *v12.WorkflowExecution `protobuf:"bytes,11,opt,name=start_workflow_result,json=startWorkflowResult,proto3"` + xxx_hidden_StartWorkflowStatus v1.WorkflowExecutionStatus `protobuf:"varint,12,opt,name=start_workflow_status,json=startWorkflowStatus,proto3,enum=temporal.api.enums.v1.WorkflowExecutionStatus"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ScheduleActionResult) Reset() { + *x = ScheduleActionResult{} + mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ScheduleActionResult) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ScheduleActionResult) ProtoMessage() {} + +func (x *ScheduleActionResult) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[7] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ScheduleActionResult) GetScheduleTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_ScheduleTime + } + return nil +} + +func (x *ScheduleActionResult) GetActualTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_ActualTime + } + return nil +} + +func (x *ScheduleActionResult) GetStartWorkflowResult() *v12.WorkflowExecution { + if x != nil { + return x.xxx_hidden_StartWorkflowResult + } + return nil +} + +func (x *ScheduleActionResult) GetStartWorkflowStatus() v1.WorkflowExecutionStatus { + if x != nil { + return x.xxx_hidden_StartWorkflowStatus + } + return v1.WorkflowExecutionStatus(0) +} + +func (x *ScheduleActionResult) SetScheduleTime(v *timestamppb.Timestamp) { + x.xxx_hidden_ScheduleTime = v +} + +func (x *ScheduleActionResult) SetActualTime(v *timestamppb.Timestamp) { + x.xxx_hidden_ActualTime = v +} + +func (x *ScheduleActionResult) SetStartWorkflowResult(v *v12.WorkflowExecution) { + x.xxx_hidden_StartWorkflowResult = v +} + +func (x *ScheduleActionResult) SetStartWorkflowStatus(v v1.WorkflowExecutionStatus) { + x.xxx_hidden_StartWorkflowStatus = v +} + +func (x *ScheduleActionResult) HasScheduleTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_ScheduleTime != nil +} + +func (x *ScheduleActionResult) HasActualTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_ActualTime != nil +} + +func (x *ScheduleActionResult) HasStartWorkflowResult() bool { + if x == nil { + return false + } + return x.xxx_hidden_StartWorkflowResult != nil +} + +func (x *ScheduleActionResult) ClearScheduleTime() { + x.xxx_hidden_ScheduleTime = nil +} + +func (x *ScheduleActionResult) ClearActualTime() { + x.xxx_hidden_ActualTime = nil +} + +func (x *ScheduleActionResult) ClearStartWorkflowResult() { + x.xxx_hidden_StartWorkflowResult = nil +} + +type ScheduleActionResult_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Time that the action was taken (according to the schedule, including jitter). + ScheduleTime *timestamppb.Timestamp + // Time that the action was taken (real time). + ActualTime *timestamppb.Timestamp + // If action was start_workflow: + StartWorkflowResult *v12.WorkflowExecution + // If the action was start_workflow, this field will reflect an + // eventually-consistent view of the started workflow's status. + StartWorkflowStatus v1.WorkflowExecutionStatus +} + +func (b0 ScheduleActionResult_builder) Build() *ScheduleActionResult { + m0 := &ScheduleActionResult{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ScheduleTime = b.ScheduleTime + x.xxx_hidden_ActualTime = b.ActualTime + x.xxx_hidden_StartWorkflowResult = b.StartWorkflowResult + x.xxx_hidden_StartWorkflowStatus = b.StartWorkflowStatus + return m0 +} + +type ScheduleState struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Notes string `protobuf:"bytes,1,opt,name=notes,proto3"` + xxx_hidden_Paused bool `protobuf:"varint,2,opt,name=paused,proto3"` + xxx_hidden_LimitedActions bool `protobuf:"varint,3,opt,name=limited_actions,json=limitedActions,proto3"` + xxx_hidden_RemainingActions int64 `protobuf:"varint,4,opt,name=remaining_actions,json=remainingActions,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ScheduleState) Reset() { + *x = ScheduleState{} + mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ScheduleState) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ScheduleState) ProtoMessage() {} + +func (x *ScheduleState) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[8] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ScheduleState) GetNotes() string { + if x != nil { + return x.xxx_hidden_Notes + } + return "" +} + +func (x *ScheduleState) GetPaused() bool { + if x != nil { + return x.xxx_hidden_Paused + } + return false +} + +func (x *ScheduleState) GetLimitedActions() bool { + if x != nil { + return x.xxx_hidden_LimitedActions + } + return false +} + +func (x *ScheduleState) GetRemainingActions() int64 { + if x != nil { + return x.xxx_hidden_RemainingActions + } + return 0 +} + +func (x *ScheduleState) SetNotes(v string) { + x.xxx_hidden_Notes = v +} + +func (x *ScheduleState) SetPaused(v bool) { + x.xxx_hidden_Paused = v +} + +func (x *ScheduleState) SetLimitedActions(v bool) { + x.xxx_hidden_LimitedActions = v +} + +func (x *ScheduleState) SetRemainingActions(v int64) { + x.xxx_hidden_RemainingActions = v +} + +type ScheduleState_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Informative human-readable message with contextual notes, e.g. the reason + // a schedule is paused. The system may overwrite this message on certain + // conditions, e.g. when pause-on-failure happens. + Notes string + // If true, do not take any actions based on the schedule spec. + Paused bool + // If limited_actions is true, decrement remaining_actions after each + // action, and do not take any more scheduled actions if remaining_actions + // is zero. Actions may still be taken by explicit request (i.e. trigger + // immediately or backfill). Skipped actions (due to overlap policy) do not + // count against remaining actions. + // If a schedule has no more remaining actions, then the schedule will be + // subject to automatic deletion (after several days). + LimitedActions bool + RemainingActions int64 +} + +func (b0 ScheduleState_builder) Build() *ScheduleState { + m0 := &ScheduleState{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Notes = b.Notes + x.xxx_hidden_Paused = b.Paused + x.xxx_hidden_LimitedActions = b.LimitedActions + x.xxx_hidden_RemainingActions = b.RemainingActions + return m0 +} + +type TriggerImmediatelyRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_OverlapPolicy v1.ScheduleOverlapPolicy `protobuf:"varint,1,opt,name=overlap_policy,json=overlapPolicy,proto3,enum=temporal.api.enums.v1.ScheduleOverlapPolicy"` + xxx_hidden_ScheduledTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=scheduled_time,json=scheduledTime,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TriggerImmediatelyRequest) Reset() { + *x = TriggerImmediatelyRequest{} + mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TriggerImmediatelyRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TriggerImmediatelyRequest) ProtoMessage() {} + +func (x *TriggerImmediatelyRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[9] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *TriggerImmediatelyRequest) GetOverlapPolicy() v1.ScheduleOverlapPolicy { + if x != nil { + return x.xxx_hidden_OverlapPolicy + } + return v1.ScheduleOverlapPolicy(0) +} + +func (x *TriggerImmediatelyRequest) GetScheduledTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_ScheduledTime + } + return nil +} + +func (x *TriggerImmediatelyRequest) SetOverlapPolicy(v v1.ScheduleOverlapPolicy) { + x.xxx_hidden_OverlapPolicy = v +} + +func (x *TriggerImmediatelyRequest) SetScheduledTime(v *timestamppb.Timestamp) { + x.xxx_hidden_ScheduledTime = v +} + +func (x *TriggerImmediatelyRequest) HasScheduledTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_ScheduledTime != nil +} + +func (x *TriggerImmediatelyRequest) ClearScheduledTime() { + x.xxx_hidden_ScheduledTime = nil +} + +type TriggerImmediatelyRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // If set, override overlap policy for this one request. + OverlapPolicy v1.ScheduleOverlapPolicy + // Timestamp used for the identity of the target workflow. + // If not set the default value is the current time. + ScheduledTime *timestamppb.Timestamp +} + +func (b0 TriggerImmediatelyRequest_builder) Build() *TriggerImmediatelyRequest { + m0 := &TriggerImmediatelyRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_OverlapPolicy = b.OverlapPolicy + x.xxx_hidden_ScheduledTime = b.ScheduledTime + return m0 +} + +type BackfillRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3"` + xxx_hidden_EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3"` + xxx_hidden_OverlapPolicy v1.ScheduleOverlapPolicy `protobuf:"varint,3,opt,name=overlap_policy,json=overlapPolicy,proto3,enum=temporal.api.enums.v1.ScheduleOverlapPolicy"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *BackfillRequest) Reset() { + *x = BackfillRequest{} + mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *BackfillRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BackfillRequest) ProtoMessage() {} + +func (x *BackfillRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[10] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *BackfillRequest) GetStartTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_StartTime + } + return nil +} + +func (x *BackfillRequest) GetEndTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_EndTime + } + return nil +} + +func (x *BackfillRequest) GetOverlapPolicy() v1.ScheduleOverlapPolicy { + if x != nil { + return x.xxx_hidden_OverlapPolicy + } + return v1.ScheduleOverlapPolicy(0) +} + +func (x *BackfillRequest) SetStartTime(v *timestamppb.Timestamp) { + x.xxx_hidden_StartTime = v +} + +func (x *BackfillRequest) SetEndTime(v *timestamppb.Timestamp) { + x.xxx_hidden_EndTime = v +} + +func (x *BackfillRequest) SetOverlapPolicy(v v1.ScheduleOverlapPolicy) { + x.xxx_hidden_OverlapPolicy = v +} + +func (x *BackfillRequest) HasStartTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_StartTime != nil +} + +func (x *BackfillRequest) HasEndTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_EndTime != nil +} + +func (x *BackfillRequest) ClearStartTime() { + x.xxx_hidden_StartTime = nil +} + +func (x *BackfillRequest) ClearEndTime() { + x.xxx_hidden_EndTime = nil +} + +type BackfillRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Time range to evaluate schedule in. Currently, this time range is + // exclusive on start_time and inclusive on end_time. (This is admittedly + // counterintuitive and it may change in the future, so to be safe, use a + // start time strictly before a scheduled time.) Also note that an action + // nominally scheduled in the interval but with jitter that pushes it after + // end_time will not be included. + StartTime *timestamppb.Timestamp + EndTime *timestamppb.Timestamp + // If set, override overlap policy for this request. + OverlapPolicy v1.ScheduleOverlapPolicy +} + +func (b0 BackfillRequest_builder) Build() *BackfillRequest { + m0 := &BackfillRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_StartTime = b.StartTime + x.xxx_hidden_EndTime = b.EndTime + x.xxx_hidden_OverlapPolicy = b.OverlapPolicy + return m0 +} + +type SchedulePatch struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_TriggerImmediately *TriggerImmediatelyRequest `protobuf:"bytes,1,opt,name=trigger_immediately,json=triggerImmediately,proto3"` + xxx_hidden_BackfillRequest *[]*BackfillRequest `protobuf:"bytes,2,rep,name=backfill_request,json=backfillRequest,proto3"` + xxx_hidden_Pause string `protobuf:"bytes,3,opt,name=pause,proto3"` + xxx_hidden_Unpause string `protobuf:"bytes,4,opt,name=unpause,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SchedulePatch) Reset() { + *x = SchedulePatch{} + mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SchedulePatch) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SchedulePatch) ProtoMessage() {} + +func (x *SchedulePatch) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[11] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *SchedulePatch) GetTriggerImmediately() *TriggerImmediatelyRequest { + if x != nil { + return x.xxx_hidden_TriggerImmediately + } + return nil +} + +func (x *SchedulePatch) GetBackfillRequest() []*BackfillRequest { + if x != nil { + if x.xxx_hidden_BackfillRequest != nil { + return *x.xxx_hidden_BackfillRequest + } + } + return nil +} + +func (x *SchedulePatch) GetPause() string { + if x != nil { + return x.xxx_hidden_Pause + } + return "" +} + +func (x *SchedulePatch) GetUnpause() string { + if x != nil { + return x.xxx_hidden_Unpause + } + return "" +} + +func (x *SchedulePatch) SetTriggerImmediately(v *TriggerImmediatelyRequest) { + x.xxx_hidden_TriggerImmediately = v +} + +func (x *SchedulePatch) SetBackfillRequest(v []*BackfillRequest) { + x.xxx_hidden_BackfillRequest = &v +} + +func (x *SchedulePatch) SetPause(v string) { + x.xxx_hidden_Pause = v +} + +func (x *SchedulePatch) SetUnpause(v string) { + x.xxx_hidden_Unpause = v +} + +func (x *SchedulePatch) HasTriggerImmediately() bool { + if x == nil { + return false + } + return x.xxx_hidden_TriggerImmediately != nil +} + +func (x *SchedulePatch) ClearTriggerImmediately() { + x.xxx_hidden_TriggerImmediately = nil +} + +type SchedulePatch_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // If set, trigger one action immediately. + TriggerImmediately *TriggerImmediatelyRequest + // If set, runs though the specified time period(s) and takes actions as if that time + // passed by right now, all at once. The overlap policy can be overridden for the + // scope of the backfill. + BackfillRequest []*BackfillRequest + // If set, change the state to paused or unpaused (respectively) and set the + // notes field to the value of the string. + Pause string + Unpause string +} + +func (b0 SchedulePatch_builder) Build() *SchedulePatch { + m0 := &SchedulePatch{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_TriggerImmediately = b.TriggerImmediately + x.xxx_hidden_BackfillRequest = &b.BackfillRequest + x.xxx_hidden_Pause = b.Pause + x.xxx_hidden_Unpause = b.Unpause + return m0 +} + +type ScheduleInfo struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ActionCount int64 `protobuf:"varint,1,opt,name=action_count,json=actionCount,proto3"` + xxx_hidden_MissedCatchupWindow int64 `protobuf:"varint,2,opt,name=missed_catchup_window,json=missedCatchupWindow,proto3"` + xxx_hidden_OverlapSkipped int64 `protobuf:"varint,3,opt,name=overlap_skipped,json=overlapSkipped,proto3"` + xxx_hidden_BufferDropped int64 `protobuf:"varint,10,opt,name=buffer_dropped,json=bufferDropped,proto3"` + xxx_hidden_BufferSize int64 `protobuf:"varint,11,opt,name=buffer_size,json=bufferSize,proto3"` + xxx_hidden_RunningWorkflows *[]*v12.WorkflowExecution `protobuf:"bytes,9,rep,name=running_workflows,json=runningWorkflows,proto3"` + xxx_hidden_RecentActions *[]*ScheduleActionResult `protobuf:"bytes,4,rep,name=recent_actions,json=recentActions,proto3"` + xxx_hidden_FutureActionTimes *[]*timestamppb.Timestamp `protobuf:"bytes,5,rep,name=future_action_times,json=futureActionTimes,proto3"` + xxx_hidden_CreateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3"` + xxx_hidden_UpdateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=update_time,json=updateTime,proto3"` + xxx_hidden_InvalidScheduleError string `protobuf:"bytes,8,opt,name=invalid_schedule_error,json=invalidScheduleError,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ScheduleInfo) Reset() { + *x = ScheduleInfo{} + mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ScheduleInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ScheduleInfo) ProtoMessage() {} + +func (x *ScheduleInfo) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[12] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ScheduleInfo) GetActionCount() int64 { + if x != nil { + return x.xxx_hidden_ActionCount + } + return 0 +} + +func (x *ScheduleInfo) GetMissedCatchupWindow() int64 { + if x != nil { + return x.xxx_hidden_MissedCatchupWindow + } + return 0 +} + +func (x *ScheduleInfo) GetOverlapSkipped() int64 { + if x != nil { + return x.xxx_hidden_OverlapSkipped + } + return 0 +} + +func (x *ScheduleInfo) GetBufferDropped() int64 { + if x != nil { + return x.xxx_hidden_BufferDropped + } + return 0 +} + +func (x *ScheduleInfo) GetBufferSize() int64 { + if x != nil { + return x.xxx_hidden_BufferSize + } + return 0 +} + +func (x *ScheduleInfo) GetRunningWorkflows() []*v12.WorkflowExecution { + if x != nil { + if x.xxx_hidden_RunningWorkflows != nil { + return *x.xxx_hidden_RunningWorkflows + } + } + return nil +} + +func (x *ScheduleInfo) GetRecentActions() []*ScheduleActionResult { + if x != nil { + if x.xxx_hidden_RecentActions != nil { + return *x.xxx_hidden_RecentActions + } + } + return nil +} + +func (x *ScheduleInfo) GetFutureActionTimes() []*timestamppb.Timestamp { + if x != nil { + if x.xxx_hidden_FutureActionTimes != nil { + return *x.xxx_hidden_FutureActionTimes + } + } + return nil +} + +func (x *ScheduleInfo) GetCreateTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_CreateTime + } + return nil +} + +func (x *ScheduleInfo) GetUpdateTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_UpdateTime + } + return nil +} + +// Deprecated: Marked as deprecated in temporal/api/schedule/v1/message.proto. +func (x *ScheduleInfo) GetInvalidScheduleError() string { + if x != nil { + return x.xxx_hidden_InvalidScheduleError + } + return "" +} + +func (x *ScheduleInfo) SetActionCount(v int64) { + x.xxx_hidden_ActionCount = v +} + +func (x *ScheduleInfo) SetMissedCatchupWindow(v int64) { + x.xxx_hidden_MissedCatchupWindow = v +} + +func (x *ScheduleInfo) SetOverlapSkipped(v int64) { + x.xxx_hidden_OverlapSkipped = v +} + +func (x *ScheduleInfo) SetBufferDropped(v int64) { + x.xxx_hidden_BufferDropped = v +} + +func (x *ScheduleInfo) SetBufferSize(v int64) { + x.xxx_hidden_BufferSize = v +} + +func (x *ScheduleInfo) SetRunningWorkflows(v []*v12.WorkflowExecution) { + x.xxx_hidden_RunningWorkflows = &v +} + +func (x *ScheduleInfo) SetRecentActions(v []*ScheduleActionResult) { + x.xxx_hidden_RecentActions = &v +} + +func (x *ScheduleInfo) SetFutureActionTimes(v []*timestamppb.Timestamp) { + x.xxx_hidden_FutureActionTimes = &v +} + +func (x *ScheduleInfo) SetCreateTime(v *timestamppb.Timestamp) { + x.xxx_hidden_CreateTime = v +} + +func (x *ScheduleInfo) SetUpdateTime(v *timestamppb.Timestamp) { + x.xxx_hidden_UpdateTime = v +} + +// Deprecated: Marked as deprecated in temporal/api/schedule/v1/message.proto. +func (x *ScheduleInfo) SetInvalidScheduleError(v string) { + x.xxx_hidden_InvalidScheduleError = v +} + +func (x *ScheduleInfo) HasCreateTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_CreateTime != nil +} + +func (x *ScheduleInfo) HasUpdateTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_UpdateTime != nil +} + +func (x *ScheduleInfo) ClearCreateTime() { + x.xxx_hidden_CreateTime = nil +} + +func (x *ScheduleInfo) ClearUpdateTime() { + x.xxx_hidden_UpdateTime = nil +} + +type ScheduleInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Number of actions taken so far. + ActionCount int64 + // Number of times a scheduled action was skipped due to missing the catchup window. + MissedCatchupWindow int64 + // Number of skipped actions due to overlap. + OverlapSkipped int64 + // Number of dropped actions due to buffer limit. + BufferDropped int64 + // Number of actions in the buffer. The buffer holds the actions that cannot + // be immediately triggered (due to the overlap policy). These actions can be a result of + // the normal schedule or a backfill. + BufferSize int64 + // Currently-running workflows started by this schedule. (There might be + // more than one if the overlap policy allows overlaps.) + // Note that the run_ids in here are the original execution run ids as + // started by the schedule. If the workflows retried, did continue-as-new, + // or were reset, they might still be running but with a different run_id. + RunningWorkflows []*v12.WorkflowExecution + // Most recent ten actual action times (including manual triggers). + RecentActions []*ScheduleActionResult + // Next ten scheduled action times. + FutureActionTimes []*timestamppb.Timestamp + // Timestamps of schedule creation and last update. + CreateTime *timestamppb.Timestamp + UpdateTime *timestamppb.Timestamp + // Deprecated. + // + // Deprecated: Marked as deprecated in temporal/api/schedule/v1/message.proto. + InvalidScheduleError string +} + +func (b0 ScheduleInfo_builder) Build() *ScheduleInfo { + m0 := &ScheduleInfo{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ActionCount = b.ActionCount + x.xxx_hidden_MissedCatchupWindow = b.MissedCatchupWindow + x.xxx_hidden_OverlapSkipped = b.OverlapSkipped + x.xxx_hidden_BufferDropped = b.BufferDropped + x.xxx_hidden_BufferSize = b.BufferSize + x.xxx_hidden_RunningWorkflows = &b.RunningWorkflows + x.xxx_hidden_RecentActions = &b.RecentActions + x.xxx_hidden_FutureActionTimes = &b.FutureActionTimes + x.xxx_hidden_CreateTime = b.CreateTime + x.xxx_hidden_UpdateTime = b.UpdateTime + x.xxx_hidden_InvalidScheduleError = b.InvalidScheduleError + return m0 +} + +type Schedule struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Spec *ScheduleSpec `protobuf:"bytes,1,opt,name=spec,proto3"` + xxx_hidden_Action *ScheduleAction `protobuf:"bytes,2,opt,name=action,proto3"` + xxx_hidden_Policies *SchedulePolicies `protobuf:"bytes,3,opt,name=policies,proto3"` + xxx_hidden_State *ScheduleState `protobuf:"bytes,4,opt,name=state,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Schedule) Reset() { + *x = Schedule{} + mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Schedule) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Schedule) ProtoMessage() {} + +func (x *Schedule) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[13] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *Schedule) GetSpec() *ScheduleSpec { + if x != nil { + return x.xxx_hidden_Spec + } + return nil +} + +func (x *Schedule) GetAction() *ScheduleAction { + if x != nil { + return x.xxx_hidden_Action + } + return nil +} + +func (x *Schedule) GetPolicies() *SchedulePolicies { + if x != nil { + return x.xxx_hidden_Policies + } + return nil +} + +func (x *Schedule) GetState() *ScheduleState { + if x != nil { + return x.xxx_hidden_State + } + return nil +} + +func (x *Schedule) SetSpec(v *ScheduleSpec) { + x.xxx_hidden_Spec = v +} + +func (x *Schedule) SetAction(v *ScheduleAction) { + x.xxx_hidden_Action = v +} + +func (x *Schedule) SetPolicies(v *SchedulePolicies) { + x.xxx_hidden_Policies = v +} + +func (x *Schedule) SetState(v *ScheduleState) { + x.xxx_hidden_State = v +} + +func (x *Schedule) HasSpec() bool { + if x == nil { + return false + } + return x.xxx_hidden_Spec != nil +} + +func (x *Schedule) HasAction() bool { + if x == nil { + return false + } + return x.xxx_hidden_Action != nil +} + +func (x *Schedule) HasPolicies() bool { + if x == nil { + return false + } + return x.xxx_hidden_Policies != nil +} + +func (x *Schedule) HasState() bool { + if x == nil { + return false + } + return x.xxx_hidden_State != nil +} + +func (x *Schedule) ClearSpec() { + x.xxx_hidden_Spec = nil +} + +func (x *Schedule) ClearAction() { + x.xxx_hidden_Action = nil +} + +func (x *Schedule) ClearPolicies() { + x.xxx_hidden_Policies = nil +} + +func (x *Schedule) ClearState() { + x.xxx_hidden_State = nil +} + +type Schedule_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Spec *ScheduleSpec + Action *ScheduleAction + Policies *SchedulePolicies + State *ScheduleState +} + +func (b0 Schedule_builder) Build() *Schedule { + m0 := &Schedule{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Spec = b.Spec + x.xxx_hidden_Action = b.Action + x.xxx_hidden_Policies = b.Policies + x.xxx_hidden_State = b.State + return m0 +} + +// ScheduleListInfo is an abbreviated set of values from Schedule and ScheduleInfo +// that's returned in ListSchedules. +type ScheduleListInfo struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Spec *ScheduleSpec `protobuf:"bytes,1,opt,name=spec,proto3"` + xxx_hidden_WorkflowType *v12.WorkflowType `protobuf:"bytes,2,opt,name=workflow_type,json=workflowType,proto3"` + xxx_hidden_Notes string `protobuf:"bytes,3,opt,name=notes,proto3"` + xxx_hidden_Paused bool `protobuf:"varint,4,opt,name=paused,proto3"` + xxx_hidden_RecentActions *[]*ScheduleActionResult `protobuf:"bytes,5,rep,name=recent_actions,json=recentActions,proto3"` + xxx_hidden_FutureActionTimes *[]*timestamppb.Timestamp `protobuf:"bytes,6,rep,name=future_action_times,json=futureActionTimes,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ScheduleListInfo) Reset() { + *x = ScheduleListInfo{} + mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ScheduleListInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ScheduleListInfo) ProtoMessage() {} + +func (x *ScheduleListInfo) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[14] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ScheduleListInfo) GetSpec() *ScheduleSpec { + if x != nil { + return x.xxx_hidden_Spec + } + return nil +} + +func (x *ScheduleListInfo) GetWorkflowType() *v12.WorkflowType { + if x != nil { + return x.xxx_hidden_WorkflowType + } + return nil +} + +func (x *ScheduleListInfo) GetNotes() string { + if x != nil { + return x.xxx_hidden_Notes + } + return "" +} + +func (x *ScheduleListInfo) GetPaused() bool { + if x != nil { + return x.xxx_hidden_Paused + } + return false +} + +func (x *ScheduleListInfo) GetRecentActions() []*ScheduleActionResult { + if x != nil { + if x.xxx_hidden_RecentActions != nil { + return *x.xxx_hidden_RecentActions + } + } + return nil +} + +func (x *ScheduleListInfo) GetFutureActionTimes() []*timestamppb.Timestamp { + if x != nil { + if x.xxx_hidden_FutureActionTimes != nil { + return *x.xxx_hidden_FutureActionTimes + } + } + return nil +} + +func (x *ScheduleListInfo) SetSpec(v *ScheduleSpec) { + x.xxx_hidden_Spec = v +} + +func (x *ScheduleListInfo) SetWorkflowType(v *v12.WorkflowType) { + x.xxx_hidden_WorkflowType = v +} + +func (x *ScheduleListInfo) SetNotes(v string) { + x.xxx_hidden_Notes = v +} + +func (x *ScheduleListInfo) SetPaused(v bool) { + x.xxx_hidden_Paused = v +} + +func (x *ScheduleListInfo) SetRecentActions(v []*ScheduleActionResult) { + x.xxx_hidden_RecentActions = &v +} + +func (x *ScheduleListInfo) SetFutureActionTimes(v []*timestamppb.Timestamp) { + x.xxx_hidden_FutureActionTimes = &v +} + +func (x *ScheduleListInfo) HasSpec() bool { + if x == nil { + return false + } + return x.xxx_hidden_Spec != nil +} + +func (x *ScheduleListInfo) HasWorkflowType() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowType != nil +} + +func (x *ScheduleListInfo) ClearSpec() { + x.xxx_hidden_Spec = nil +} + +func (x *ScheduleListInfo) ClearWorkflowType() { + x.xxx_hidden_WorkflowType = nil +} + +type ScheduleListInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // From spec: + // Some fields are dropped from this copy of spec: timezone_data + Spec *ScheduleSpec + // From action: + // Action is a oneof field, but we need to encode this in JSON and oneof fields don't work + // well with JSON. If action is start_workflow, this is set: + WorkflowType *v12.WorkflowType + // From state: + Notes string + Paused bool + // From info (maybe fewer entries): + RecentActions []*ScheduleActionResult + FutureActionTimes []*timestamppb.Timestamp +} + +func (b0 ScheduleListInfo_builder) Build() *ScheduleListInfo { + m0 := &ScheduleListInfo{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Spec = b.Spec + x.xxx_hidden_WorkflowType = b.WorkflowType + x.xxx_hidden_Notes = b.Notes + x.xxx_hidden_Paused = b.Paused + x.xxx_hidden_RecentActions = &b.RecentActions + x.xxx_hidden_FutureActionTimes = &b.FutureActionTimes + return m0 +} + +// ScheduleListEntry is returned by ListSchedules. +type ScheduleListEntry struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ScheduleId string `protobuf:"bytes,1,opt,name=schedule_id,json=scheduleId,proto3"` + xxx_hidden_Memo *v12.Memo `protobuf:"bytes,2,opt,name=memo,proto3"` + xxx_hidden_SearchAttributes *v12.SearchAttributes `protobuf:"bytes,3,opt,name=search_attributes,json=searchAttributes,proto3"` + xxx_hidden_Info *ScheduleListInfo `protobuf:"bytes,4,opt,name=info,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ScheduleListEntry) Reset() { + *x = ScheduleListEntry{} + mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ScheduleListEntry) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ScheduleListEntry) ProtoMessage() {} + +func (x *ScheduleListEntry) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[15] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ScheduleListEntry) GetScheduleId() string { + if x != nil { + return x.xxx_hidden_ScheduleId + } + return "" +} + +func (x *ScheduleListEntry) GetMemo() *v12.Memo { + if x != nil { + return x.xxx_hidden_Memo + } + return nil +} + +func (x *ScheduleListEntry) GetSearchAttributes() *v12.SearchAttributes { + if x != nil { + return x.xxx_hidden_SearchAttributes + } + return nil +} + +func (x *ScheduleListEntry) GetInfo() *ScheduleListInfo { + if x != nil { + return x.xxx_hidden_Info + } + return nil +} + +func (x *ScheduleListEntry) SetScheduleId(v string) { + x.xxx_hidden_ScheduleId = v +} + +func (x *ScheduleListEntry) SetMemo(v *v12.Memo) { + x.xxx_hidden_Memo = v +} + +func (x *ScheduleListEntry) SetSearchAttributes(v *v12.SearchAttributes) { + x.xxx_hidden_SearchAttributes = v +} + +func (x *ScheduleListEntry) SetInfo(v *ScheduleListInfo) { + x.xxx_hidden_Info = v +} + +func (x *ScheduleListEntry) HasMemo() bool { + if x == nil { + return false + } + return x.xxx_hidden_Memo != nil +} + +func (x *ScheduleListEntry) HasSearchAttributes() bool { + if x == nil { + return false + } + return x.xxx_hidden_SearchAttributes != nil +} + +func (x *ScheduleListEntry) HasInfo() bool { + if x == nil { + return false + } + return x.xxx_hidden_Info != nil +} + +func (x *ScheduleListEntry) ClearMemo() { + x.xxx_hidden_Memo = nil +} + +func (x *ScheduleListEntry) ClearSearchAttributes() { + x.xxx_hidden_SearchAttributes = nil +} + +func (x *ScheduleListEntry) ClearInfo() { + x.xxx_hidden_Info = nil +} + +type ScheduleListEntry_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ScheduleId string + Memo *v12.Memo + SearchAttributes *v12.SearchAttributes + Info *ScheduleListInfo +} + +func (b0 ScheduleListEntry_builder) Build() *ScheduleListEntry { + m0 := &ScheduleListEntry{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ScheduleId = b.ScheduleId + x.xxx_hidden_Memo = b.Memo + x.xxx_hidden_SearchAttributes = b.SearchAttributes + x.xxx_hidden_Info = b.Info + return m0 +} + +var File_temporal_api_schedule_v1_message_proto protoreflect.FileDescriptor + +const file_temporal_api_schedule_v1_message_proto_rawDesc = "" + + "\n" + + "&temporal/api/schedule/v1/message.proto\x12\x18temporal.api.schedule.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a$temporal/api/common/v1/message.proto\x1a$temporal/api/enums/v1/schedule.proto\x1a$temporal/api/enums/v1/workflow.proto\x1a&temporal/api/workflow/v1/message.proto\"\xd8\x01\n" + + "\fCalendarSpec\x12\x16\n" + + "\x06second\x18\x01 \x01(\tR\x06second\x12\x16\n" + + "\x06minute\x18\x02 \x01(\tR\x06minute\x12\x12\n" + + "\x04hour\x18\x03 \x01(\tR\x04hour\x12 \n" + + "\fday_of_month\x18\x04 \x01(\tR\n" + + "dayOfMonth\x12\x14\n" + + "\x05month\x18\x05 \x01(\tR\x05month\x12\x12\n" + + "\x04year\x18\x06 \x01(\tR\x04year\x12\x1e\n" + + "\vday_of_week\x18\a \x01(\tR\tdayOfWeek\x12\x18\n" + + "\acomment\x18\b \x01(\tR\acomment\"C\n" + + "\x05Range\x12\x14\n" + + "\x05start\x18\x01 \x01(\x05R\x05start\x12\x10\n" + + "\x03end\x18\x02 \x01(\x05R\x03end\x12\x12\n" + + "\x04step\x18\x03 \x01(\x05R\x04step\"\xc9\x03\n" + + "\x16StructuredCalendarSpec\x127\n" + + "\x06second\x18\x01 \x03(\v2\x1f.temporal.api.schedule.v1.RangeR\x06second\x127\n" + + "\x06minute\x18\x02 \x03(\v2\x1f.temporal.api.schedule.v1.RangeR\x06minute\x123\n" + + "\x04hour\x18\x03 \x03(\v2\x1f.temporal.api.schedule.v1.RangeR\x04hour\x12A\n" + + "\fday_of_month\x18\x04 \x03(\v2\x1f.temporal.api.schedule.v1.RangeR\n" + + "dayOfMonth\x125\n" + + "\x05month\x18\x05 \x03(\v2\x1f.temporal.api.schedule.v1.RangeR\x05month\x123\n" + + "\x04year\x18\x06 \x03(\v2\x1f.temporal.api.schedule.v1.RangeR\x04year\x12?\n" + + "\vday_of_week\x18\a \x03(\v2\x1f.temporal.api.schedule.v1.RangeR\tdayOfWeek\x12\x18\n" + + "\acomment\x18\b \x01(\tR\acomment\"v\n" + + "\fIntervalSpec\x125\n" + + "\binterval\x18\x01 \x01(\v2\x19.google.protobuf.DurationR\binterval\x12/\n" + + "\x05phase\x18\x02 \x01(\v2\x19.google.protobuf.DurationR\x05phase\"\xd2\x05\n" + + "\fScheduleSpec\x12a\n" + + "\x13structured_calendar\x18\a \x03(\v20.temporal.api.schedule.v1.StructuredCalendarSpecR\x12structuredCalendar\x12\x1f\n" + + "\vcron_string\x18\b \x03(\tR\n" + + "cronString\x12B\n" + + "\bcalendar\x18\x01 \x03(\v2&.temporal.api.schedule.v1.CalendarSpecR\bcalendar\x12B\n" + + "\binterval\x18\x02 \x03(\v2&.temporal.api.schedule.v1.IntervalSpecR\binterval\x12U\n" + + "\x10exclude_calendar\x18\x03 \x03(\v2&.temporal.api.schedule.v1.CalendarSpecB\x02\x18\x01R\x0fexcludeCalendar\x12p\n" + + "\x1bexclude_structured_calendar\x18\t \x03(\v20.temporal.api.schedule.v1.StructuredCalendarSpecR\x19excludeStructuredCalendar\x129\n" + + "\n" + + "start_time\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\tstartTime\x125\n" + + "\bend_time\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\aendTime\x121\n" + + "\x06jitter\x18\x06 \x01(\v2\x19.google.protobuf.DurationR\x06jitter\x12#\n" + + "\rtimezone_name\x18\n" + + " \x01(\tR\ftimezoneName\x12#\n" + + "\rtimezone_data\x18\v \x01(\fR\ftimezoneData\"\x8e\x02\n" + + "\x10SchedulePolicies\x12S\n" + + "\x0eoverlap_policy\x18\x01 \x01(\x0e2,.temporal.api.enums.v1.ScheduleOverlapPolicyR\roverlapPolicy\x12@\n" + + "\x0ecatchup_window\x18\x02 \x01(\v2\x19.google.protobuf.DurationR\rcatchupWindow\x12(\n" + + "\x10pause_on_failure\x18\x03 \x01(\bR\x0epauseOnFailure\x129\n" + + "\x19keep_original_workflow_id\x18\x04 \x01(\bR\x16keepOriginalWorkflowId\"w\n" + + "\x0eScheduleAction\x12[\n" + + "\x0estart_workflow\x18\x01 \x01(\v22.temporal.api.workflow.v1.NewWorkflowExecutionInfoH\x00R\rstartWorkflowB\b\n" + + "\x06action\"\xd7\x02\n" + + "\x14ScheduleActionResult\x12?\n" + + "\rschedule_time\x18\x01 \x01(\v2\x1a.google.protobuf.TimestampR\fscheduleTime\x12;\n" + + "\vactual_time\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\n" + + "actualTime\x12]\n" + + "\x15start_workflow_result\x18\v \x01(\v2).temporal.api.common.v1.WorkflowExecutionR\x13startWorkflowResult\x12b\n" + + "\x15start_workflow_status\x18\f \x01(\x0e2..temporal.api.enums.v1.WorkflowExecutionStatusR\x13startWorkflowStatus\"\x93\x01\n" + + "\rScheduleState\x12\x14\n" + + "\x05notes\x18\x01 \x01(\tR\x05notes\x12\x16\n" + + "\x06paused\x18\x02 \x01(\bR\x06paused\x12'\n" + + "\x0flimited_actions\x18\x03 \x01(\bR\x0elimitedActions\x12+\n" + + "\x11remaining_actions\x18\x04 \x01(\x03R\x10remainingActions\"\xb3\x01\n" + + "\x19TriggerImmediatelyRequest\x12S\n" + + "\x0eoverlap_policy\x18\x01 \x01(\x0e2,.temporal.api.enums.v1.ScheduleOverlapPolicyR\roverlapPolicy\x12A\n" + + "\x0escheduled_time\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\rscheduledTime\"\xd8\x01\n" + + "\x0fBackfillRequest\x129\n" + + "\n" + + "start_time\x18\x01 \x01(\v2\x1a.google.protobuf.TimestampR\tstartTime\x125\n" + + "\bend_time\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\aendTime\x12S\n" + + "\x0eoverlap_policy\x18\x03 \x01(\x0e2,.temporal.api.enums.v1.ScheduleOverlapPolicyR\roverlapPolicy\"\xfb\x01\n" + + "\rSchedulePatch\x12d\n" + + "\x13trigger_immediately\x18\x01 \x01(\v23.temporal.api.schedule.v1.TriggerImmediatelyRequestR\x12triggerImmediately\x12T\n" + + "\x10backfill_request\x18\x02 \x03(\v2).temporal.api.schedule.v1.BackfillRequestR\x0fbackfillRequest\x12\x14\n" + + "\x05pause\x18\x03 \x01(\tR\x05pause\x12\x18\n" + + "\aunpause\x18\x04 \x01(\tR\aunpause\"\x85\x05\n" + + "\fScheduleInfo\x12!\n" + + "\faction_count\x18\x01 \x01(\x03R\vactionCount\x122\n" + + "\x15missed_catchup_window\x18\x02 \x01(\x03R\x13missedCatchupWindow\x12'\n" + + "\x0foverlap_skipped\x18\x03 \x01(\x03R\x0eoverlapSkipped\x12%\n" + + "\x0ebuffer_dropped\x18\n" + + " \x01(\x03R\rbufferDropped\x12\x1f\n" + + "\vbuffer_size\x18\v \x01(\x03R\n" + + "bufferSize\x12V\n" + + "\x11running_workflows\x18\t \x03(\v2).temporal.api.common.v1.WorkflowExecutionR\x10runningWorkflows\x12U\n" + + "\x0erecent_actions\x18\x04 \x03(\v2..temporal.api.schedule.v1.ScheduleActionResultR\rrecentActions\x12J\n" + + "\x13future_action_times\x18\x05 \x03(\v2\x1a.google.protobuf.TimestampR\x11futureActionTimes\x12;\n" + + "\vcreate_time\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\n" + + "createTime\x12;\n" + + "\vupdate_time\x18\a \x01(\v2\x1a.google.protobuf.TimestampR\n" + + "updateTime\x128\n" + + "\x16invalid_schedule_error\x18\b \x01(\tB\x02\x18\x01R\x14invalidScheduleError\"\x8f\x02\n" + + "\bSchedule\x12:\n" + + "\x04spec\x18\x01 \x01(\v2&.temporal.api.schedule.v1.ScheduleSpecR\x04spec\x12@\n" + + "\x06action\x18\x02 \x01(\v2(.temporal.api.schedule.v1.ScheduleActionR\x06action\x12F\n" + + "\bpolicies\x18\x03 \x01(\v2*.temporal.api.schedule.v1.SchedulePoliciesR\bpolicies\x12=\n" + + "\x05state\x18\x04 \x01(\v2'.temporal.api.schedule.v1.ScheduleStateR\x05state\"\xea\x02\n" + + "\x10ScheduleListInfo\x12:\n" + + "\x04spec\x18\x01 \x01(\v2&.temporal.api.schedule.v1.ScheduleSpecR\x04spec\x12I\n" + + "\rworkflow_type\x18\x02 \x01(\v2$.temporal.api.common.v1.WorkflowTypeR\fworkflowType\x12\x14\n" + + "\x05notes\x18\x03 \x01(\tR\x05notes\x12\x16\n" + + "\x06paused\x18\x04 \x01(\bR\x06paused\x12U\n" + + "\x0erecent_actions\x18\x05 \x03(\v2..temporal.api.schedule.v1.ScheduleActionResultR\rrecentActions\x12J\n" + + "\x13future_action_times\x18\x06 \x03(\v2\x1a.google.protobuf.TimestampR\x11futureActionTimes\"\xfd\x01\n" + + "\x11ScheduleListEntry\x12\x1f\n" + + "\vschedule_id\x18\x01 \x01(\tR\n" + + "scheduleId\x120\n" + + "\x04memo\x18\x02 \x01(\v2\x1c.temporal.api.common.v1.MemoR\x04memo\x12U\n" + + "\x11search_attributes\x18\x03 \x01(\v2(.temporal.api.common.v1.SearchAttributesR\x10searchAttributes\x12>\n" + + "\x04info\x18\x04 \x01(\v2*.temporal.api.schedule.v1.ScheduleListInfoR\x04infoB\x93\x01\n" + + "\x1bio.temporal.api.schedule.v1B\fMessageProtoP\x01Z'go.temporal.io/api/schedule/v1;schedule\xaa\x02\x1aTemporalio.Api.Schedule.V1\xea\x02\x1dTemporalio::Api::Schedule::V1b\x06proto3" + +var file_temporal_api_schedule_v1_message_proto_msgTypes = make([]protoimpl.MessageInfo, 16) +var file_temporal_api_schedule_v1_message_proto_goTypes = []any{ + (*CalendarSpec)(nil), // 0: temporal.api.schedule.v1.CalendarSpec + (*Range)(nil), // 1: temporal.api.schedule.v1.Range + (*StructuredCalendarSpec)(nil), // 2: temporal.api.schedule.v1.StructuredCalendarSpec + (*IntervalSpec)(nil), // 3: temporal.api.schedule.v1.IntervalSpec + (*ScheduleSpec)(nil), // 4: temporal.api.schedule.v1.ScheduleSpec + (*SchedulePolicies)(nil), // 5: temporal.api.schedule.v1.SchedulePolicies + (*ScheduleAction)(nil), // 6: temporal.api.schedule.v1.ScheduleAction + (*ScheduleActionResult)(nil), // 7: temporal.api.schedule.v1.ScheduleActionResult + (*ScheduleState)(nil), // 8: temporal.api.schedule.v1.ScheduleState + (*TriggerImmediatelyRequest)(nil), // 9: temporal.api.schedule.v1.TriggerImmediatelyRequest + (*BackfillRequest)(nil), // 10: temporal.api.schedule.v1.BackfillRequest + (*SchedulePatch)(nil), // 11: temporal.api.schedule.v1.SchedulePatch + (*ScheduleInfo)(nil), // 12: temporal.api.schedule.v1.ScheduleInfo + (*Schedule)(nil), // 13: temporal.api.schedule.v1.Schedule + (*ScheduleListInfo)(nil), // 14: temporal.api.schedule.v1.ScheduleListInfo + (*ScheduleListEntry)(nil), // 15: temporal.api.schedule.v1.ScheduleListEntry + (*durationpb.Duration)(nil), // 16: google.protobuf.Duration + (*timestamppb.Timestamp)(nil), // 17: google.protobuf.Timestamp + (v1.ScheduleOverlapPolicy)(0), // 18: temporal.api.enums.v1.ScheduleOverlapPolicy + (*v11.NewWorkflowExecutionInfo)(nil), // 19: temporal.api.workflow.v1.NewWorkflowExecutionInfo + (*v12.WorkflowExecution)(nil), // 20: temporal.api.common.v1.WorkflowExecution + (v1.WorkflowExecutionStatus)(0), // 21: temporal.api.enums.v1.WorkflowExecutionStatus + (*v12.WorkflowType)(nil), // 22: temporal.api.common.v1.WorkflowType + (*v12.Memo)(nil), // 23: temporal.api.common.v1.Memo + (*v12.SearchAttributes)(nil), // 24: temporal.api.common.v1.SearchAttributes +} +var file_temporal_api_schedule_v1_message_proto_depIdxs = []int32{ + 1, // 0: temporal.api.schedule.v1.StructuredCalendarSpec.second:type_name -> temporal.api.schedule.v1.Range + 1, // 1: temporal.api.schedule.v1.StructuredCalendarSpec.minute:type_name -> temporal.api.schedule.v1.Range + 1, // 2: temporal.api.schedule.v1.StructuredCalendarSpec.hour:type_name -> temporal.api.schedule.v1.Range + 1, // 3: temporal.api.schedule.v1.StructuredCalendarSpec.day_of_month:type_name -> temporal.api.schedule.v1.Range + 1, // 4: temporal.api.schedule.v1.StructuredCalendarSpec.month:type_name -> temporal.api.schedule.v1.Range + 1, // 5: temporal.api.schedule.v1.StructuredCalendarSpec.year:type_name -> temporal.api.schedule.v1.Range + 1, // 6: temporal.api.schedule.v1.StructuredCalendarSpec.day_of_week:type_name -> temporal.api.schedule.v1.Range + 16, // 7: temporal.api.schedule.v1.IntervalSpec.interval:type_name -> google.protobuf.Duration + 16, // 8: temporal.api.schedule.v1.IntervalSpec.phase:type_name -> google.protobuf.Duration + 2, // 9: temporal.api.schedule.v1.ScheduleSpec.structured_calendar:type_name -> temporal.api.schedule.v1.StructuredCalendarSpec + 0, // 10: temporal.api.schedule.v1.ScheduleSpec.calendar:type_name -> temporal.api.schedule.v1.CalendarSpec + 3, // 11: temporal.api.schedule.v1.ScheduleSpec.interval:type_name -> temporal.api.schedule.v1.IntervalSpec + 0, // 12: temporal.api.schedule.v1.ScheduleSpec.exclude_calendar:type_name -> temporal.api.schedule.v1.CalendarSpec + 2, // 13: temporal.api.schedule.v1.ScheduleSpec.exclude_structured_calendar:type_name -> temporal.api.schedule.v1.StructuredCalendarSpec + 17, // 14: temporal.api.schedule.v1.ScheduleSpec.start_time:type_name -> google.protobuf.Timestamp + 17, // 15: temporal.api.schedule.v1.ScheduleSpec.end_time:type_name -> google.protobuf.Timestamp + 16, // 16: temporal.api.schedule.v1.ScheduleSpec.jitter:type_name -> google.protobuf.Duration + 18, // 17: temporal.api.schedule.v1.SchedulePolicies.overlap_policy:type_name -> temporal.api.enums.v1.ScheduleOverlapPolicy + 16, // 18: temporal.api.schedule.v1.SchedulePolicies.catchup_window:type_name -> google.protobuf.Duration + 19, // 19: temporal.api.schedule.v1.ScheduleAction.start_workflow:type_name -> temporal.api.workflow.v1.NewWorkflowExecutionInfo + 17, // 20: temporal.api.schedule.v1.ScheduleActionResult.schedule_time:type_name -> google.protobuf.Timestamp + 17, // 21: temporal.api.schedule.v1.ScheduleActionResult.actual_time:type_name -> google.protobuf.Timestamp + 20, // 22: temporal.api.schedule.v1.ScheduleActionResult.start_workflow_result:type_name -> temporal.api.common.v1.WorkflowExecution + 21, // 23: temporal.api.schedule.v1.ScheduleActionResult.start_workflow_status:type_name -> temporal.api.enums.v1.WorkflowExecutionStatus + 18, // 24: temporal.api.schedule.v1.TriggerImmediatelyRequest.overlap_policy:type_name -> temporal.api.enums.v1.ScheduleOverlapPolicy + 17, // 25: temporal.api.schedule.v1.TriggerImmediatelyRequest.scheduled_time:type_name -> google.protobuf.Timestamp + 17, // 26: temporal.api.schedule.v1.BackfillRequest.start_time:type_name -> google.protobuf.Timestamp + 17, // 27: temporal.api.schedule.v1.BackfillRequest.end_time:type_name -> google.protobuf.Timestamp + 18, // 28: temporal.api.schedule.v1.BackfillRequest.overlap_policy:type_name -> temporal.api.enums.v1.ScheduleOverlapPolicy + 9, // 29: temporal.api.schedule.v1.SchedulePatch.trigger_immediately:type_name -> temporal.api.schedule.v1.TriggerImmediatelyRequest + 10, // 30: temporal.api.schedule.v1.SchedulePatch.backfill_request:type_name -> temporal.api.schedule.v1.BackfillRequest + 20, // 31: temporal.api.schedule.v1.ScheduleInfo.running_workflows:type_name -> temporal.api.common.v1.WorkflowExecution + 7, // 32: temporal.api.schedule.v1.ScheduleInfo.recent_actions:type_name -> temporal.api.schedule.v1.ScheduleActionResult + 17, // 33: temporal.api.schedule.v1.ScheduleInfo.future_action_times:type_name -> google.protobuf.Timestamp + 17, // 34: temporal.api.schedule.v1.ScheduleInfo.create_time:type_name -> google.protobuf.Timestamp + 17, // 35: temporal.api.schedule.v1.ScheduleInfo.update_time:type_name -> google.protobuf.Timestamp + 4, // 36: temporal.api.schedule.v1.Schedule.spec:type_name -> temporal.api.schedule.v1.ScheduleSpec + 6, // 37: temporal.api.schedule.v1.Schedule.action:type_name -> temporal.api.schedule.v1.ScheduleAction + 5, // 38: temporal.api.schedule.v1.Schedule.policies:type_name -> temporal.api.schedule.v1.SchedulePolicies + 8, // 39: temporal.api.schedule.v1.Schedule.state:type_name -> temporal.api.schedule.v1.ScheduleState + 4, // 40: temporal.api.schedule.v1.ScheduleListInfo.spec:type_name -> temporal.api.schedule.v1.ScheduleSpec + 22, // 41: temporal.api.schedule.v1.ScheduleListInfo.workflow_type:type_name -> temporal.api.common.v1.WorkflowType + 7, // 42: temporal.api.schedule.v1.ScheduleListInfo.recent_actions:type_name -> temporal.api.schedule.v1.ScheduleActionResult + 17, // 43: temporal.api.schedule.v1.ScheduleListInfo.future_action_times:type_name -> google.protobuf.Timestamp + 23, // 44: temporal.api.schedule.v1.ScheduleListEntry.memo:type_name -> temporal.api.common.v1.Memo + 24, // 45: temporal.api.schedule.v1.ScheduleListEntry.search_attributes:type_name -> temporal.api.common.v1.SearchAttributes + 14, // 46: temporal.api.schedule.v1.ScheduleListEntry.info:type_name -> temporal.api.schedule.v1.ScheduleListInfo + 47, // [47:47] is the sub-list for method output_type + 47, // [47:47] is the sub-list for method input_type + 47, // [47:47] is the sub-list for extension type_name + 47, // [47:47] is the sub-list for extension extendee + 0, // [0:47] is the sub-list for field type_name +} + +func init() { file_temporal_api_schedule_v1_message_proto_init() } +func file_temporal_api_schedule_v1_message_proto_init() { + if File_temporal_api_schedule_v1_message_proto != nil { + return + } + file_temporal_api_schedule_v1_message_proto_msgTypes[6].OneofWrappers = []any{ + (*scheduleAction_StartWorkflow)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_api_schedule_v1_message_proto_rawDesc), len(file_temporal_api_schedule_v1_message_proto_rawDesc)), + NumEnums: 0, + NumMessages: 16, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_temporal_api_schedule_v1_message_proto_goTypes, + DependencyIndexes: file_temporal_api_schedule_v1_message_proto_depIdxs, + MessageInfos: file_temporal_api_schedule_v1_message_proto_msgTypes, + }.Build() + File_temporal_api_schedule_v1_message_proto = out.File + file_temporal_api_schedule_v1_message_proto_goTypes = nil + file_temporal_api_schedule_v1_message_proto_depIdxs = nil +} diff --git a/sdk/v1/enhanced_stack_trace.pb.go b/sdk/v1/enhanced_stack_trace.pb.go index cd3e57f4..ca831b00 100644 --- a/sdk/v1/enhanced_stack_trace.pb.go +++ b/sdk/v1/enhanced_stack_trace.pb.go @@ -4,11 +4,12 @@ // protoc // source: temporal/api/sdk/v1/enhanced_stack_trace.proto +//go:build !protoopaque + package sdk import ( reflect "reflect" - sync "sync" unsafe "unsafe" protoreflect "google.golang.org/protobuf/reflect/protoreflect" @@ -24,7 +25,7 @@ const ( // Internal structure used to create worker stack traces with references to code. type EnhancedStackTrace struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Information pertaining to the SDK that the trace has been captured from. Sdk *StackTraceSDKInfo `protobuf:"bytes,1,opt,name=sdk,proto3" json:"sdk,omitempty"` // Mapping of file path to file contents. @@ -60,11 +61,6 @@ func (x *EnhancedStackTrace) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use EnhancedStackTrace.ProtoReflect.Descriptor instead. -func (*EnhancedStackTrace) Descriptor() ([]byte, []int) { - return file_temporal_api_sdk_v1_enhanced_stack_trace_proto_rawDescGZIP(), []int{0} -} - func (x *EnhancedStackTrace) GetSdk() *StackTraceSDKInfo { if x != nil { return x.Sdk @@ -86,12 +82,56 @@ func (x *EnhancedStackTrace) GetStacks() []*StackTrace { return nil } +func (x *EnhancedStackTrace) SetSdk(v *StackTraceSDKInfo) { + x.Sdk = v +} + +func (x *EnhancedStackTrace) SetSources(v map[string]*StackTraceFileSlice) { + x.Sources = v +} + +func (x *EnhancedStackTrace) SetStacks(v []*StackTrace) { + x.Stacks = v +} + +func (x *EnhancedStackTrace) HasSdk() bool { + if x == nil { + return false + } + return x.Sdk != nil +} + +func (x *EnhancedStackTrace) ClearSdk() { + x.Sdk = nil +} + +type EnhancedStackTrace_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Information pertaining to the SDK that the trace has been captured from. + Sdk *StackTraceSDKInfo + // Mapping of file path to file contents. + Sources map[string]*StackTraceFileSlice + // Collection of stacks captured. + Stacks []*StackTrace +} + +func (b0 EnhancedStackTrace_builder) Build() *EnhancedStackTrace { + m0 := &EnhancedStackTrace{} + b, x := &b0, m0 + _, _ = b, x + x.Sdk = b.Sdk + x.Sources = b.Sources + x.Stacks = b.Stacks + return m0 +} + // Information pertaining to the SDK that the trace has been captured from. // (-- api-linter: core::0123::resource-annotation=disabled // // aip.dev/not-precedent: Naming SDK version is optional. --) type StackTraceSDKInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Name of the SDK Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Version string of the SDK @@ -125,11 +165,6 @@ func (x *StackTraceSDKInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use StackTraceSDKInfo.ProtoReflect.Descriptor instead. -func (*StackTraceSDKInfo) Descriptor() ([]byte, []int) { - return file_temporal_api_sdk_v1_enhanced_stack_trace_proto_rawDescGZIP(), []int{1} -} - func (x *StackTraceSDKInfo) GetName() string { if x != nil { return x.Name @@ -144,9 +179,35 @@ func (x *StackTraceSDKInfo) GetVersion() string { return "" } +func (x *StackTraceSDKInfo) SetName(v string) { + x.Name = v +} + +func (x *StackTraceSDKInfo) SetVersion(v string) { + x.Version = v +} + +type StackTraceSDKInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Name of the SDK + Name string + // Version string of the SDK + Version string +} + +func (b0 StackTraceSDKInfo_builder) Build() *StackTraceSDKInfo { + m0 := &StackTraceSDKInfo{} + b, x := &b0, m0 + _, _ = b, x + x.Name = b.Name + x.Version = b.Version + return m0 +} + // "Slice" of a file starting at line_offset -- a line offset and code fragment corresponding to the worker's stack. type StackTraceFileSlice struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Only used (possibly) to trim the file without breaking syntax highlighting. This is not optional, unlike // the `line` property of a `StackTraceFileLocation`. // (-- api-linter: core::0141::forbidden-types=disabled @@ -184,11 +245,6 @@ func (x *StackTraceFileSlice) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use StackTraceFileSlice.ProtoReflect.Descriptor instead. -func (*StackTraceFileSlice) Descriptor() ([]byte, []int) { - return file_temporal_api_sdk_v1_enhanced_stack_trace_proto_rawDescGZIP(), []int{2} -} - func (x *StackTraceFileSlice) GetLineOffset() uint32 { if x != nil { return x.LineOffset @@ -203,10 +259,40 @@ func (x *StackTraceFileSlice) GetContent() string { return "" } +func (x *StackTraceFileSlice) SetLineOffset(v uint32) { + x.LineOffset = v +} + +func (x *StackTraceFileSlice) SetContent(v string) { + x.Content = v +} + +type StackTraceFileSlice_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Only used (possibly) to trim the file without breaking syntax highlighting. This is not optional, unlike + // the `line` property of a `StackTraceFileLocation`. + // (-- api-linter: core::0141::forbidden-types=disabled + // + // aip.dev/not-precedent: These really shouldn't have negative values. --) + LineOffset uint32 + // Slice of a file with the respective OS-specific line terminator. + Content string +} + +func (b0 StackTraceFileSlice_builder) Build() *StackTraceFileSlice { + m0 := &StackTraceFileSlice{} + b, x := &b0, m0 + _, _ = b, x + x.LineOffset = b.LineOffset + x.Content = b.Content + return m0 +} + // More specific location details of a file: its path, precise line and column numbers if applicable, and function name if available. // In essence, a pointer to a location in a file type StackTraceFileLocation struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Path to source file (absolute or relative). // If the paths are relative, ensure that they are all relative to the same root. FilePath string `protobuf:"bytes,1,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty"` @@ -250,11 +336,6 @@ func (x *StackTraceFileLocation) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use StackTraceFileLocation.ProtoReflect.Descriptor instead. -func (*StackTraceFileLocation) Descriptor() ([]byte, []int) { - return file_temporal_api_sdk_v1_enhanced_stack_trace_proto_rawDescGZIP(), []int{3} -} - func (x *StackTraceFileLocation) GetFilePath() string { if x != nil { return x.FilePath @@ -290,9 +371,60 @@ func (x *StackTraceFileLocation) GetInternalCode() bool { return false } +func (x *StackTraceFileLocation) SetFilePath(v string) { + x.FilePath = v +} + +func (x *StackTraceFileLocation) SetLine(v int32) { + x.Line = v +} + +func (x *StackTraceFileLocation) SetColumn(v int32) { + x.Column = v +} + +func (x *StackTraceFileLocation) SetFunctionName(v string) { + x.FunctionName = v +} + +func (x *StackTraceFileLocation) SetInternalCode(v bool) { + x.InternalCode = v +} + +type StackTraceFileLocation_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Path to source file (absolute or relative). + // If the paths are relative, ensure that they are all relative to the same root. + FilePath string + // Optional; If possible, SDK should send this -- this is required for displaying the code location. + // If not provided, set to -1. + Line int32 + // Optional; if possible, SDK should send this. + // If not provided, set to -1. + Column int32 + // Function name this line belongs to, if applicable. + // Used for falling back to stack trace view. + FunctionName string + // Flag to communicate whether a location should be hidden by default in the stack view. + InternalCode bool +} + +func (b0 StackTraceFileLocation_builder) Build() *StackTraceFileLocation { + m0 := &StackTraceFileLocation{} + b, x := &b0, m0 + _, _ = b, x + x.FilePath = b.FilePath + x.Line = b.Line + x.Column = b.Column + x.FunctionName = b.FunctionName + x.InternalCode = b.InternalCode + return m0 +} + // Collection of FileLocation messages from a single stack. type StackTrace struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Collection of `FileLocation`s, each for a stack frame that comprise a stack trace. Locations []*StackTraceFileLocation `protobuf:"bytes,1,rep,name=locations,proto3" json:"locations,omitempty"` unknownFields protoimpl.UnknownFields @@ -324,11 +456,6 @@ func (x *StackTrace) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use StackTrace.ProtoReflect.Descriptor instead. -func (*StackTrace) Descriptor() ([]byte, []int) { - return file_temporal_api_sdk_v1_enhanced_stack_trace_proto_rawDescGZIP(), []int{4} -} - func (x *StackTrace) GetLocations() []*StackTraceFileLocation { if x != nil { return x.Locations @@ -336,6 +463,25 @@ func (x *StackTrace) GetLocations() []*StackTraceFileLocation { return nil } +func (x *StackTrace) SetLocations(v []*StackTraceFileLocation) { + x.Locations = v +} + +type StackTrace_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Collection of `FileLocation`s, each for a stack frame that comprise a stack trace. + Locations []*StackTraceFileLocation +} + +func (b0 StackTrace_builder) Build() *StackTrace { + m0 := &StackTrace{} + b, x := &b0, m0 + _, _ = b, x + x.Locations = b.Locations + return m0 +} + var File_temporal_api_sdk_v1_enhanced_stack_trace_proto protoreflect.FileDescriptor const file_temporal_api_sdk_v1_enhanced_stack_trace_proto_rawDesc = "" + @@ -366,18 +512,6 @@ const file_temporal_api_sdk_v1_enhanced_stack_trace_proto_rawDesc = "" + "\tlocations\x18\x01 \x03(\v2+.temporal.api.sdk.v1.StackTraceFileLocationR\tlocationsB\x85\x01\n" + "\x16io.temporal.api.sdk.v1B\x17EnhancedStackTraceProtoP\x01Z\x1dgo.temporal.io/api/sdk/v1;sdk\xaa\x02\x15Temporalio.Api.Sdk.V1\xea\x02\x18Temporalio::Api::Sdk::V1b\x06proto3" -var ( - file_temporal_api_sdk_v1_enhanced_stack_trace_proto_rawDescOnce sync.Once - file_temporal_api_sdk_v1_enhanced_stack_trace_proto_rawDescData []byte -) - -func file_temporal_api_sdk_v1_enhanced_stack_trace_proto_rawDescGZIP() []byte { - file_temporal_api_sdk_v1_enhanced_stack_trace_proto_rawDescOnce.Do(func() { - file_temporal_api_sdk_v1_enhanced_stack_trace_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_api_sdk_v1_enhanced_stack_trace_proto_rawDesc), len(file_temporal_api_sdk_v1_enhanced_stack_trace_proto_rawDesc))) - }) - return file_temporal_api_sdk_v1_enhanced_stack_trace_proto_rawDescData -} - var file_temporal_api_sdk_v1_enhanced_stack_trace_proto_msgTypes = make([]protoimpl.MessageInfo, 6) var file_temporal_api_sdk_v1_enhanced_stack_trace_proto_goTypes = []any{ (*EnhancedStackTrace)(nil), // 0: temporal.api.sdk.v1.EnhancedStackTrace diff --git a/sdk/v1/enhanced_stack_trace_protoopaque.pb.go b/sdk/v1/enhanced_stack_trace_protoopaque.pb.go new file mode 100644 index 00000000..c979502e --- /dev/null +++ b/sdk/v1/enhanced_stack_trace_protoopaque.pb.go @@ -0,0 +1,542 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// plugins: +// protoc-gen-go +// protoc +// source: temporal/api/sdk/v1/enhanced_stack_trace.proto + +//go:build protoopaque + +package sdk + +import ( + reflect "reflect" + unsafe "unsafe" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Internal structure used to create worker stack traces with references to code. +type EnhancedStackTrace struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Sdk *StackTraceSDKInfo `protobuf:"bytes,1,opt,name=sdk,proto3"` + xxx_hidden_Sources map[string]*StackTraceFileSlice `protobuf:"bytes,2,rep,name=sources,proto3" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + xxx_hidden_Stacks *[]*StackTrace `protobuf:"bytes,3,rep,name=stacks,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *EnhancedStackTrace) Reset() { + *x = EnhancedStackTrace{} + mi := &file_temporal_api_sdk_v1_enhanced_stack_trace_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *EnhancedStackTrace) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EnhancedStackTrace) ProtoMessage() {} + +func (x *EnhancedStackTrace) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_sdk_v1_enhanced_stack_trace_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *EnhancedStackTrace) GetSdk() *StackTraceSDKInfo { + if x != nil { + return x.xxx_hidden_Sdk + } + return nil +} + +func (x *EnhancedStackTrace) GetSources() map[string]*StackTraceFileSlice { + if x != nil { + return x.xxx_hidden_Sources + } + return nil +} + +func (x *EnhancedStackTrace) GetStacks() []*StackTrace { + if x != nil { + if x.xxx_hidden_Stacks != nil { + return *x.xxx_hidden_Stacks + } + } + return nil +} + +func (x *EnhancedStackTrace) SetSdk(v *StackTraceSDKInfo) { + x.xxx_hidden_Sdk = v +} + +func (x *EnhancedStackTrace) SetSources(v map[string]*StackTraceFileSlice) { + x.xxx_hidden_Sources = v +} + +func (x *EnhancedStackTrace) SetStacks(v []*StackTrace) { + x.xxx_hidden_Stacks = &v +} + +func (x *EnhancedStackTrace) HasSdk() bool { + if x == nil { + return false + } + return x.xxx_hidden_Sdk != nil +} + +func (x *EnhancedStackTrace) ClearSdk() { + x.xxx_hidden_Sdk = nil +} + +type EnhancedStackTrace_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Information pertaining to the SDK that the trace has been captured from. + Sdk *StackTraceSDKInfo + // Mapping of file path to file contents. + Sources map[string]*StackTraceFileSlice + // Collection of stacks captured. + Stacks []*StackTrace +} + +func (b0 EnhancedStackTrace_builder) Build() *EnhancedStackTrace { + m0 := &EnhancedStackTrace{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Sdk = b.Sdk + x.xxx_hidden_Sources = b.Sources + x.xxx_hidden_Stacks = &b.Stacks + return m0 +} + +// Information pertaining to the SDK that the trace has been captured from. +// (-- api-linter: core::0123::resource-annotation=disabled +// +// aip.dev/not-precedent: Naming SDK version is optional. --) +type StackTraceSDKInfo struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Name string `protobuf:"bytes,1,opt,name=name,proto3"` + xxx_hidden_Version string `protobuf:"bytes,2,opt,name=version,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *StackTraceSDKInfo) Reset() { + *x = StackTraceSDKInfo{} + mi := &file_temporal_api_sdk_v1_enhanced_stack_trace_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *StackTraceSDKInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StackTraceSDKInfo) ProtoMessage() {} + +func (x *StackTraceSDKInfo) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_sdk_v1_enhanced_stack_trace_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *StackTraceSDKInfo) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *StackTraceSDKInfo) GetVersion() string { + if x != nil { + return x.xxx_hidden_Version + } + return "" +} + +func (x *StackTraceSDKInfo) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *StackTraceSDKInfo) SetVersion(v string) { + x.xxx_hidden_Version = v +} + +type StackTraceSDKInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Name of the SDK + Name string + // Version string of the SDK + Version string +} + +func (b0 StackTraceSDKInfo_builder) Build() *StackTraceSDKInfo { + m0 := &StackTraceSDKInfo{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Name = b.Name + x.xxx_hidden_Version = b.Version + return m0 +} + +// "Slice" of a file starting at line_offset -- a line offset and code fragment corresponding to the worker's stack. +type StackTraceFileSlice struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_LineOffset uint32 `protobuf:"varint,1,opt,name=line_offset,json=lineOffset,proto3"` + xxx_hidden_Content string `protobuf:"bytes,2,opt,name=content,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *StackTraceFileSlice) Reset() { + *x = StackTraceFileSlice{} + mi := &file_temporal_api_sdk_v1_enhanced_stack_trace_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *StackTraceFileSlice) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StackTraceFileSlice) ProtoMessage() {} + +func (x *StackTraceFileSlice) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_sdk_v1_enhanced_stack_trace_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *StackTraceFileSlice) GetLineOffset() uint32 { + if x != nil { + return x.xxx_hidden_LineOffset + } + return 0 +} + +func (x *StackTraceFileSlice) GetContent() string { + if x != nil { + return x.xxx_hidden_Content + } + return "" +} + +func (x *StackTraceFileSlice) SetLineOffset(v uint32) { + x.xxx_hidden_LineOffset = v +} + +func (x *StackTraceFileSlice) SetContent(v string) { + x.xxx_hidden_Content = v +} + +type StackTraceFileSlice_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Only used (possibly) to trim the file without breaking syntax highlighting. This is not optional, unlike + // the `line` property of a `StackTraceFileLocation`. + // (-- api-linter: core::0141::forbidden-types=disabled + // + // aip.dev/not-precedent: These really shouldn't have negative values. --) + LineOffset uint32 + // Slice of a file with the respective OS-specific line terminator. + Content string +} + +func (b0 StackTraceFileSlice_builder) Build() *StackTraceFileSlice { + m0 := &StackTraceFileSlice{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_LineOffset = b.LineOffset + x.xxx_hidden_Content = b.Content + return m0 +} + +// More specific location details of a file: its path, precise line and column numbers if applicable, and function name if available. +// In essence, a pointer to a location in a file +type StackTraceFileLocation struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_FilePath string `protobuf:"bytes,1,opt,name=file_path,json=filePath,proto3"` + xxx_hidden_Line int32 `protobuf:"varint,2,opt,name=line,proto3"` + xxx_hidden_Column int32 `protobuf:"varint,3,opt,name=column,proto3"` + xxx_hidden_FunctionName string `protobuf:"bytes,4,opt,name=function_name,json=functionName,proto3"` + xxx_hidden_InternalCode bool `protobuf:"varint,5,opt,name=internal_code,json=internalCode,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *StackTraceFileLocation) Reset() { + *x = StackTraceFileLocation{} + mi := &file_temporal_api_sdk_v1_enhanced_stack_trace_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *StackTraceFileLocation) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StackTraceFileLocation) ProtoMessage() {} + +func (x *StackTraceFileLocation) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_sdk_v1_enhanced_stack_trace_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *StackTraceFileLocation) GetFilePath() string { + if x != nil { + return x.xxx_hidden_FilePath + } + return "" +} + +func (x *StackTraceFileLocation) GetLine() int32 { + if x != nil { + return x.xxx_hidden_Line + } + return 0 +} + +func (x *StackTraceFileLocation) GetColumn() int32 { + if x != nil { + return x.xxx_hidden_Column + } + return 0 +} + +func (x *StackTraceFileLocation) GetFunctionName() string { + if x != nil { + return x.xxx_hidden_FunctionName + } + return "" +} + +func (x *StackTraceFileLocation) GetInternalCode() bool { + if x != nil { + return x.xxx_hidden_InternalCode + } + return false +} + +func (x *StackTraceFileLocation) SetFilePath(v string) { + x.xxx_hidden_FilePath = v +} + +func (x *StackTraceFileLocation) SetLine(v int32) { + x.xxx_hidden_Line = v +} + +func (x *StackTraceFileLocation) SetColumn(v int32) { + x.xxx_hidden_Column = v +} + +func (x *StackTraceFileLocation) SetFunctionName(v string) { + x.xxx_hidden_FunctionName = v +} + +func (x *StackTraceFileLocation) SetInternalCode(v bool) { + x.xxx_hidden_InternalCode = v +} + +type StackTraceFileLocation_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Path to source file (absolute or relative). + // If the paths are relative, ensure that they are all relative to the same root. + FilePath string + // Optional; If possible, SDK should send this -- this is required for displaying the code location. + // If not provided, set to -1. + Line int32 + // Optional; if possible, SDK should send this. + // If not provided, set to -1. + Column int32 + // Function name this line belongs to, if applicable. + // Used for falling back to stack trace view. + FunctionName string + // Flag to communicate whether a location should be hidden by default in the stack view. + InternalCode bool +} + +func (b0 StackTraceFileLocation_builder) Build() *StackTraceFileLocation { + m0 := &StackTraceFileLocation{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_FilePath = b.FilePath + x.xxx_hidden_Line = b.Line + x.xxx_hidden_Column = b.Column + x.xxx_hidden_FunctionName = b.FunctionName + x.xxx_hidden_InternalCode = b.InternalCode + return m0 +} + +// Collection of FileLocation messages from a single stack. +type StackTrace struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Locations *[]*StackTraceFileLocation `protobuf:"bytes,1,rep,name=locations,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *StackTrace) Reset() { + *x = StackTrace{} + mi := &file_temporal_api_sdk_v1_enhanced_stack_trace_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *StackTrace) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StackTrace) ProtoMessage() {} + +func (x *StackTrace) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_sdk_v1_enhanced_stack_trace_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *StackTrace) GetLocations() []*StackTraceFileLocation { + if x != nil { + if x.xxx_hidden_Locations != nil { + return *x.xxx_hidden_Locations + } + } + return nil +} + +func (x *StackTrace) SetLocations(v []*StackTraceFileLocation) { + x.xxx_hidden_Locations = &v +} + +type StackTrace_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Collection of `FileLocation`s, each for a stack frame that comprise a stack trace. + Locations []*StackTraceFileLocation +} + +func (b0 StackTrace_builder) Build() *StackTrace { + m0 := &StackTrace{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Locations = &b.Locations + return m0 +} + +var File_temporal_api_sdk_v1_enhanced_stack_trace_proto protoreflect.FileDescriptor + +const file_temporal_api_sdk_v1_enhanced_stack_trace_proto_rawDesc = "" + + "\n" + + ".temporal/api/sdk/v1/enhanced_stack_trace.proto\x12\x13temporal.api.sdk.v1\"\xbd\x02\n" + + "\x12EnhancedStackTrace\x128\n" + + "\x03sdk\x18\x01 \x01(\v2&.temporal.api.sdk.v1.StackTraceSDKInfoR\x03sdk\x12N\n" + + "\asources\x18\x02 \x03(\v24.temporal.api.sdk.v1.EnhancedStackTrace.SourcesEntryR\asources\x127\n" + + "\x06stacks\x18\x03 \x03(\v2\x1f.temporal.api.sdk.v1.StackTraceR\x06stacks\x1ad\n" + + "\fSourcesEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12>\n" + + "\x05value\x18\x02 \x01(\v2(.temporal.api.sdk.v1.StackTraceFileSliceR\x05value:\x028\x01\"A\n" + + "\x11StackTraceSDKInfo\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12\x18\n" + + "\aversion\x18\x02 \x01(\tR\aversion\"P\n" + + "\x13StackTraceFileSlice\x12\x1f\n" + + "\vline_offset\x18\x01 \x01(\rR\n" + + "lineOffset\x12\x18\n" + + "\acontent\x18\x02 \x01(\tR\acontent\"\xab\x01\n" + + "\x16StackTraceFileLocation\x12\x1b\n" + + "\tfile_path\x18\x01 \x01(\tR\bfilePath\x12\x12\n" + + "\x04line\x18\x02 \x01(\x05R\x04line\x12\x16\n" + + "\x06column\x18\x03 \x01(\x05R\x06column\x12#\n" + + "\rfunction_name\x18\x04 \x01(\tR\ffunctionName\x12#\n" + + "\rinternal_code\x18\x05 \x01(\bR\finternalCode\"W\n" + + "\n" + + "StackTrace\x12I\n" + + "\tlocations\x18\x01 \x03(\v2+.temporal.api.sdk.v1.StackTraceFileLocationR\tlocationsB\x85\x01\n" + + "\x16io.temporal.api.sdk.v1B\x17EnhancedStackTraceProtoP\x01Z\x1dgo.temporal.io/api/sdk/v1;sdk\xaa\x02\x15Temporalio.Api.Sdk.V1\xea\x02\x18Temporalio::Api::Sdk::V1b\x06proto3" + +var file_temporal_api_sdk_v1_enhanced_stack_trace_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_temporal_api_sdk_v1_enhanced_stack_trace_proto_goTypes = []any{ + (*EnhancedStackTrace)(nil), // 0: temporal.api.sdk.v1.EnhancedStackTrace + (*StackTraceSDKInfo)(nil), // 1: temporal.api.sdk.v1.StackTraceSDKInfo + (*StackTraceFileSlice)(nil), // 2: temporal.api.sdk.v1.StackTraceFileSlice + (*StackTraceFileLocation)(nil), // 3: temporal.api.sdk.v1.StackTraceFileLocation + (*StackTrace)(nil), // 4: temporal.api.sdk.v1.StackTrace + nil, // 5: temporal.api.sdk.v1.EnhancedStackTrace.SourcesEntry +} +var file_temporal_api_sdk_v1_enhanced_stack_trace_proto_depIdxs = []int32{ + 1, // 0: temporal.api.sdk.v1.EnhancedStackTrace.sdk:type_name -> temporal.api.sdk.v1.StackTraceSDKInfo + 5, // 1: temporal.api.sdk.v1.EnhancedStackTrace.sources:type_name -> temporal.api.sdk.v1.EnhancedStackTrace.SourcesEntry + 4, // 2: temporal.api.sdk.v1.EnhancedStackTrace.stacks:type_name -> temporal.api.sdk.v1.StackTrace + 3, // 3: temporal.api.sdk.v1.StackTrace.locations:type_name -> temporal.api.sdk.v1.StackTraceFileLocation + 2, // 4: temporal.api.sdk.v1.EnhancedStackTrace.SourcesEntry.value:type_name -> temporal.api.sdk.v1.StackTraceFileSlice + 5, // [5:5] is the sub-list for method output_type + 5, // [5:5] is the sub-list for method input_type + 5, // [5:5] is the sub-list for extension type_name + 5, // [5:5] is the sub-list for extension extendee + 0, // [0:5] is the sub-list for field type_name +} + +func init() { file_temporal_api_sdk_v1_enhanced_stack_trace_proto_init() } +func file_temporal_api_sdk_v1_enhanced_stack_trace_proto_init() { + if File_temporal_api_sdk_v1_enhanced_stack_trace_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_api_sdk_v1_enhanced_stack_trace_proto_rawDesc), len(file_temporal_api_sdk_v1_enhanced_stack_trace_proto_rawDesc)), + NumEnums: 0, + NumMessages: 6, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_temporal_api_sdk_v1_enhanced_stack_trace_proto_goTypes, + DependencyIndexes: file_temporal_api_sdk_v1_enhanced_stack_trace_proto_depIdxs, + MessageInfos: file_temporal_api_sdk_v1_enhanced_stack_trace_proto_msgTypes, + }.Build() + File_temporal_api_sdk_v1_enhanced_stack_trace_proto = out.File + file_temporal_api_sdk_v1_enhanced_stack_trace_proto_goTypes = nil + file_temporal_api_sdk_v1_enhanced_stack_trace_proto_depIdxs = nil +} diff --git a/sdk/v1/task_complete_metadata.pb.go b/sdk/v1/task_complete_metadata.pb.go index 78270b8f..b5d98ac3 100644 --- a/sdk/v1/task_complete_metadata.pb.go +++ b/sdk/v1/task_complete_metadata.pb.go @@ -4,11 +4,12 @@ // protoc // source: temporal/api/sdk/v1/task_complete_metadata.proto +//go:build !protoopaque + package sdk import ( reflect "reflect" - sync "sync" unsafe "unsafe" protoreflect "google.golang.org/protobuf/reflect/protoreflect" @@ -23,7 +24,7 @@ const ( ) type WorkflowTaskCompletedMetadata struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Internal flags used by the core SDK. SDKs using flags must comply with the following behavior: // // During replay: @@ -94,11 +95,6 @@ func (x *WorkflowTaskCompletedMetadata) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use WorkflowTaskCompletedMetadata.ProtoReflect.Descriptor instead. -func (*WorkflowTaskCompletedMetadata) Descriptor() ([]byte, []int) { - return file_temporal_api_sdk_v1_task_complete_metadata_proto_rawDescGZIP(), []int{0} -} - func (x *WorkflowTaskCompletedMetadata) GetCoreUsedFlags() []uint32 { if x != nil { return x.CoreUsedFlags @@ -127,6 +123,79 @@ func (x *WorkflowTaskCompletedMetadata) GetSdkVersion() string { return "" } +func (x *WorkflowTaskCompletedMetadata) SetCoreUsedFlags(v []uint32) { + x.CoreUsedFlags = v +} + +func (x *WorkflowTaskCompletedMetadata) SetLangUsedFlags(v []uint32) { + x.LangUsedFlags = v +} + +func (x *WorkflowTaskCompletedMetadata) SetSdkName(v string) { + x.SdkName = v +} + +func (x *WorkflowTaskCompletedMetadata) SetSdkVersion(v string) { + x.SdkVersion = v +} + +type WorkflowTaskCompletedMetadata_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Internal flags used by the core SDK. SDKs using flags must comply with the following behavior: + // + // During replay: + // - If a flag is not recognized (value is too high or not defined), it must fail the workflow + // task. + // - If a flag is recognized, it is stored in a set of used flags for the run. Code checks for + // that flag during and after this WFT are allowed to assume that the flag is present. + // - If a code check for a flag does not find the flag in the set of used flags, it must take + // the branch corresponding to the absence of that flag. + // + // During non-replay execution of new WFTs: + // - The SDK is free to use all flags it knows about. It must record any newly-used (IE: not + // previously recorded) flags when completing the WFT. + // + // SDKs which are too old to even know about this field at all are considered to produce + // undefined behavior if they replay workflows which used this mechanism. + // + // (-- api-linter: core::0141::forbidden-types=disabled + // + // aip.dev/not-precedent: These really shouldn't have negative values. --) + CoreUsedFlags []uint32 + // Flags used by the SDK lang. No attempt is made to distinguish between different SDK languages + // here as processing a workflow with a different language than the one which authored it is + // already undefined behavior. See `core_used_patches` for more. + // + // (-- api-linter: core::0141::forbidden-types=disabled + // + // aip.dev/not-precedent: These really shouldn't have negative values. --) + LangUsedFlags []uint32 + // Name of the SDK that processed the task. This is usually something like "temporal-go" and is + // usually the same as client-name gRPC header. This should only be set if its value changed + // since the last time recorded on the workflow (or be set on the first task). + // + // (-- api-linter: core::0122::name-suffix=disabled + // + // aip.dev/not-precedent: We're ok with a name suffix here. --) + SdkName string + // Version of the SDK that processed the task. This is usually something like "1.20.0" and is + // usually the same as client-version gRPC header. This should only be set if its value changed + // since the last time recorded on the workflow (or be set on the first task). + SdkVersion string +} + +func (b0 WorkflowTaskCompletedMetadata_builder) Build() *WorkflowTaskCompletedMetadata { + m0 := &WorkflowTaskCompletedMetadata{} + b, x := &b0, m0 + _, _ = b, x + x.CoreUsedFlags = b.CoreUsedFlags + x.LangUsedFlags = b.LangUsedFlags + x.SdkName = b.SdkName + x.SdkVersion = b.SdkVersion + return m0 +} + var File_temporal_api_sdk_v1_task_complete_metadata_proto protoreflect.FileDescriptor const file_temporal_api_sdk_v1_task_complete_metadata_proto_rawDesc = "" + @@ -140,18 +209,6 @@ const file_temporal_api_sdk_v1_task_complete_metadata_proto_rawDesc = "" + "sdkVersionB\x87\x01\n" + "\x16io.temporal.api.sdk.v1B\x19TaskCompleteMetadataProtoP\x01Z\x1dgo.temporal.io/api/sdk/v1;sdk\xaa\x02\x15Temporalio.Api.Sdk.V1\xea\x02\x18Temporalio::Api::Sdk::V1b\x06proto3" -var ( - file_temporal_api_sdk_v1_task_complete_metadata_proto_rawDescOnce sync.Once - file_temporal_api_sdk_v1_task_complete_metadata_proto_rawDescData []byte -) - -func file_temporal_api_sdk_v1_task_complete_metadata_proto_rawDescGZIP() []byte { - file_temporal_api_sdk_v1_task_complete_metadata_proto_rawDescOnce.Do(func() { - file_temporal_api_sdk_v1_task_complete_metadata_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_api_sdk_v1_task_complete_metadata_proto_rawDesc), len(file_temporal_api_sdk_v1_task_complete_metadata_proto_rawDesc))) - }) - return file_temporal_api_sdk_v1_task_complete_metadata_proto_rawDescData -} - var file_temporal_api_sdk_v1_task_complete_metadata_proto_msgTypes = make([]protoimpl.MessageInfo, 1) var file_temporal_api_sdk_v1_task_complete_metadata_proto_goTypes = []any{ (*WorkflowTaskCompletedMetadata)(nil), // 0: temporal.api.sdk.v1.WorkflowTaskCompletedMetadata diff --git a/sdk/v1/task_complete_metadata_protoopaque.pb.go b/sdk/v1/task_complete_metadata_protoopaque.pb.go new file mode 100644 index 00000000..99bf6a06 --- /dev/null +++ b/sdk/v1/task_complete_metadata_protoopaque.pb.go @@ -0,0 +1,209 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// plugins: +// protoc-gen-go +// protoc +// source: temporal/api/sdk/v1/task_complete_metadata.proto + +//go:build protoopaque + +package sdk + +import ( + reflect "reflect" + unsafe "unsafe" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type WorkflowTaskCompletedMetadata struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_CoreUsedFlags []uint32 `protobuf:"varint,1,rep,packed,name=core_used_flags,json=coreUsedFlags,proto3"` + xxx_hidden_LangUsedFlags []uint32 `protobuf:"varint,2,rep,packed,name=lang_used_flags,json=langUsedFlags,proto3"` + xxx_hidden_SdkName string `protobuf:"bytes,3,opt,name=sdk_name,json=sdkName,proto3"` + xxx_hidden_SdkVersion string `protobuf:"bytes,4,opt,name=sdk_version,json=sdkVersion,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowTaskCompletedMetadata) Reset() { + *x = WorkflowTaskCompletedMetadata{} + mi := &file_temporal_api_sdk_v1_task_complete_metadata_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkflowTaskCompletedMetadata) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowTaskCompletedMetadata) ProtoMessage() {} + +func (x *WorkflowTaskCompletedMetadata) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_sdk_v1_task_complete_metadata_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkflowTaskCompletedMetadata) GetCoreUsedFlags() []uint32 { + if x != nil { + return x.xxx_hidden_CoreUsedFlags + } + return nil +} + +func (x *WorkflowTaskCompletedMetadata) GetLangUsedFlags() []uint32 { + if x != nil { + return x.xxx_hidden_LangUsedFlags + } + return nil +} + +func (x *WorkflowTaskCompletedMetadata) GetSdkName() string { + if x != nil { + return x.xxx_hidden_SdkName + } + return "" +} + +func (x *WorkflowTaskCompletedMetadata) GetSdkVersion() string { + if x != nil { + return x.xxx_hidden_SdkVersion + } + return "" +} + +func (x *WorkflowTaskCompletedMetadata) SetCoreUsedFlags(v []uint32) { + x.xxx_hidden_CoreUsedFlags = v +} + +func (x *WorkflowTaskCompletedMetadata) SetLangUsedFlags(v []uint32) { + x.xxx_hidden_LangUsedFlags = v +} + +func (x *WorkflowTaskCompletedMetadata) SetSdkName(v string) { + x.xxx_hidden_SdkName = v +} + +func (x *WorkflowTaskCompletedMetadata) SetSdkVersion(v string) { + x.xxx_hidden_SdkVersion = v +} + +type WorkflowTaskCompletedMetadata_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Internal flags used by the core SDK. SDKs using flags must comply with the following behavior: + // + // During replay: + // - If a flag is not recognized (value is too high or not defined), it must fail the workflow + // task. + // - If a flag is recognized, it is stored in a set of used flags for the run. Code checks for + // that flag during and after this WFT are allowed to assume that the flag is present. + // - If a code check for a flag does not find the flag in the set of used flags, it must take + // the branch corresponding to the absence of that flag. + // + // During non-replay execution of new WFTs: + // - The SDK is free to use all flags it knows about. It must record any newly-used (IE: not + // previously recorded) flags when completing the WFT. + // + // SDKs which are too old to even know about this field at all are considered to produce + // undefined behavior if they replay workflows which used this mechanism. + // + // (-- api-linter: core::0141::forbidden-types=disabled + // + // aip.dev/not-precedent: These really shouldn't have negative values. --) + CoreUsedFlags []uint32 + // Flags used by the SDK lang. No attempt is made to distinguish between different SDK languages + // here as processing a workflow with a different language than the one which authored it is + // already undefined behavior. See `core_used_patches` for more. + // + // (-- api-linter: core::0141::forbidden-types=disabled + // + // aip.dev/not-precedent: These really shouldn't have negative values. --) + LangUsedFlags []uint32 + // Name of the SDK that processed the task. This is usually something like "temporal-go" and is + // usually the same as client-name gRPC header. This should only be set if its value changed + // since the last time recorded on the workflow (or be set on the first task). + // + // (-- api-linter: core::0122::name-suffix=disabled + // + // aip.dev/not-precedent: We're ok with a name suffix here. --) + SdkName string + // Version of the SDK that processed the task. This is usually something like "1.20.0" and is + // usually the same as client-version gRPC header. This should only be set if its value changed + // since the last time recorded on the workflow (or be set on the first task). + SdkVersion string +} + +func (b0 WorkflowTaskCompletedMetadata_builder) Build() *WorkflowTaskCompletedMetadata { + m0 := &WorkflowTaskCompletedMetadata{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_CoreUsedFlags = b.CoreUsedFlags + x.xxx_hidden_LangUsedFlags = b.LangUsedFlags + x.xxx_hidden_SdkName = b.SdkName + x.xxx_hidden_SdkVersion = b.SdkVersion + return m0 +} + +var File_temporal_api_sdk_v1_task_complete_metadata_proto protoreflect.FileDescriptor + +const file_temporal_api_sdk_v1_task_complete_metadata_proto_rawDesc = "" + + "\n" + + "0temporal/api/sdk/v1/task_complete_metadata.proto\x12\x13temporal.api.sdk.v1\"\xab\x01\n" + + "\x1dWorkflowTaskCompletedMetadata\x12&\n" + + "\x0fcore_used_flags\x18\x01 \x03(\rR\rcoreUsedFlags\x12&\n" + + "\x0flang_used_flags\x18\x02 \x03(\rR\rlangUsedFlags\x12\x19\n" + + "\bsdk_name\x18\x03 \x01(\tR\asdkName\x12\x1f\n" + + "\vsdk_version\x18\x04 \x01(\tR\n" + + "sdkVersionB\x87\x01\n" + + "\x16io.temporal.api.sdk.v1B\x19TaskCompleteMetadataProtoP\x01Z\x1dgo.temporal.io/api/sdk/v1;sdk\xaa\x02\x15Temporalio.Api.Sdk.V1\xea\x02\x18Temporalio::Api::Sdk::V1b\x06proto3" + +var file_temporal_api_sdk_v1_task_complete_metadata_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_temporal_api_sdk_v1_task_complete_metadata_proto_goTypes = []any{ + (*WorkflowTaskCompletedMetadata)(nil), // 0: temporal.api.sdk.v1.WorkflowTaskCompletedMetadata +} +var file_temporal_api_sdk_v1_task_complete_metadata_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_temporal_api_sdk_v1_task_complete_metadata_proto_init() } +func file_temporal_api_sdk_v1_task_complete_metadata_proto_init() { + if File_temporal_api_sdk_v1_task_complete_metadata_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_api_sdk_v1_task_complete_metadata_proto_rawDesc), len(file_temporal_api_sdk_v1_task_complete_metadata_proto_rawDesc)), + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_temporal_api_sdk_v1_task_complete_metadata_proto_goTypes, + DependencyIndexes: file_temporal_api_sdk_v1_task_complete_metadata_proto_depIdxs, + MessageInfos: file_temporal_api_sdk_v1_task_complete_metadata_proto_msgTypes, + }.Build() + File_temporal_api_sdk_v1_task_complete_metadata_proto = out.File + file_temporal_api_sdk_v1_task_complete_metadata_proto_goTypes = nil + file_temporal_api_sdk_v1_task_complete_metadata_proto_depIdxs = nil +} diff --git a/sdk/v1/user_metadata.pb.go b/sdk/v1/user_metadata.pb.go index 5cd0c8ad..494a7907 100644 --- a/sdk/v1/user_metadata.pb.go +++ b/sdk/v1/user_metadata.pb.go @@ -4,11 +4,12 @@ // protoc // source: temporal/api/sdk/v1/user_metadata.proto +//go:build !protoopaque + package sdk import ( reflect "reflect" - sync "sync" unsafe "unsafe" v1 "go.temporal.io/api/common/v1" @@ -25,7 +26,7 @@ const ( // Information a user can set, often for use by user interfaces. type UserMetadata struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Short-form text that provides a summary. This payload should be a "json/plain"-encoded payload // that is a single JSON string for use in user interfaces. User interface formatting may not // apply to this text when used in "title" situations. The payload data section is limited to 400 @@ -64,11 +65,6 @@ func (x *UserMetadata) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UserMetadata.ProtoReflect.Descriptor instead. -func (*UserMetadata) Descriptor() ([]byte, []int) { - return file_temporal_api_sdk_v1_user_metadata_proto_rawDescGZIP(), []int{0} -} - func (x *UserMetadata) GetSummary() *v1.Payload { if x != nil { return x.Summary @@ -83,6 +79,59 @@ func (x *UserMetadata) GetDetails() *v1.Payload { return nil } +func (x *UserMetadata) SetSummary(v *v1.Payload) { + x.Summary = v +} + +func (x *UserMetadata) SetDetails(v *v1.Payload) { + x.Details = v +} + +func (x *UserMetadata) HasSummary() bool { + if x == nil { + return false + } + return x.Summary != nil +} + +func (x *UserMetadata) HasDetails() bool { + if x == nil { + return false + } + return x.Details != nil +} + +func (x *UserMetadata) ClearSummary() { + x.Summary = nil +} + +func (x *UserMetadata) ClearDetails() { + x.Details = nil +} + +type UserMetadata_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Short-form text that provides a summary. This payload should be a "json/plain"-encoded payload + // that is a single JSON string for use in user interfaces. User interface formatting may not + // apply to this text when used in "title" situations. The payload data section is limited to 400 + // bytes by default. + Summary *v1.Payload + // Long-form text that provides details. This payload should be a "json/plain"-encoded payload + // that is a single JSON string for use in user interfaces. User interface formatting may apply to + // this text in common use. The payload data section is limited to 20000 bytes by default. + Details *v1.Payload +} + +func (b0 UserMetadata_builder) Build() *UserMetadata { + m0 := &UserMetadata{} + b, x := &b0, m0 + _, _ = b, x + x.Summary = b.Summary + x.Details = b.Details + return m0 +} + var File_temporal_api_sdk_v1_user_metadata_proto protoreflect.FileDescriptor const file_temporal_api_sdk_v1_user_metadata_proto_rawDesc = "" + @@ -93,18 +142,6 @@ const file_temporal_api_sdk_v1_user_metadata_proto_rawDesc = "" + "\adetails\x18\x02 \x01(\v2\x1f.temporal.api.common.v1.PayloadR\adetailsB\x7f\n" + "\x16io.temporal.api.sdk.v1B\x11UserMetadataProtoP\x01Z\x1dgo.temporal.io/api/sdk/v1;sdk\xaa\x02\x15Temporalio.Api.Sdk.V1\xea\x02\x18Temporalio::Api::Sdk::V1b\x06proto3" -var ( - file_temporal_api_sdk_v1_user_metadata_proto_rawDescOnce sync.Once - file_temporal_api_sdk_v1_user_metadata_proto_rawDescData []byte -) - -func file_temporal_api_sdk_v1_user_metadata_proto_rawDescGZIP() []byte { - file_temporal_api_sdk_v1_user_metadata_proto_rawDescOnce.Do(func() { - file_temporal_api_sdk_v1_user_metadata_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_api_sdk_v1_user_metadata_proto_rawDesc), len(file_temporal_api_sdk_v1_user_metadata_proto_rawDesc))) - }) - return file_temporal_api_sdk_v1_user_metadata_proto_rawDescData -} - var file_temporal_api_sdk_v1_user_metadata_proto_msgTypes = make([]protoimpl.MessageInfo, 1) var file_temporal_api_sdk_v1_user_metadata_proto_goTypes = []any{ (*UserMetadata)(nil), // 0: temporal.api.sdk.v1.UserMetadata diff --git a/sdk/v1/user_metadata_protoopaque.pb.go b/sdk/v1/user_metadata_protoopaque.pb.go new file mode 100644 index 00000000..c8ae80d7 --- /dev/null +++ b/sdk/v1/user_metadata_protoopaque.pb.go @@ -0,0 +1,175 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// plugins: +// protoc-gen-go +// protoc +// source: temporal/api/sdk/v1/user_metadata.proto + +//go:build protoopaque + +package sdk + +import ( + reflect "reflect" + unsafe "unsafe" + + v1 "go.temporal.io/api/common/v1" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Information a user can set, often for use by user interfaces. +type UserMetadata struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Summary *v1.Payload `protobuf:"bytes,1,opt,name=summary,proto3"` + xxx_hidden_Details *v1.Payload `protobuf:"bytes,2,opt,name=details,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UserMetadata) Reset() { + *x = UserMetadata{} + mi := &file_temporal_api_sdk_v1_user_metadata_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UserMetadata) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserMetadata) ProtoMessage() {} + +func (x *UserMetadata) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_sdk_v1_user_metadata_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UserMetadata) GetSummary() *v1.Payload { + if x != nil { + return x.xxx_hidden_Summary + } + return nil +} + +func (x *UserMetadata) GetDetails() *v1.Payload { + if x != nil { + return x.xxx_hidden_Details + } + return nil +} + +func (x *UserMetadata) SetSummary(v *v1.Payload) { + x.xxx_hidden_Summary = v +} + +func (x *UserMetadata) SetDetails(v *v1.Payload) { + x.xxx_hidden_Details = v +} + +func (x *UserMetadata) HasSummary() bool { + if x == nil { + return false + } + return x.xxx_hidden_Summary != nil +} + +func (x *UserMetadata) HasDetails() bool { + if x == nil { + return false + } + return x.xxx_hidden_Details != nil +} + +func (x *UserMetadata) ClearSummary() { + x.xxx_hidden_Summary = nil +} + +func (x *UserMetadata) ClearDetails() { + x.xxx_hidden_Details = nil +} + +type UserMetadata_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Short-form text that provides a summary. This payload should be a "json/plain"-encoded payload + // that is a single JSON string for use in user interfaces. User interface formatting may not + // apply to this text when used in "title" situations. The payload data section is limited to 400 + // bytes by default. + Summary *v1.Payload + // Long-form text that provides details. This payload should be a "json/plain"-encoded payload + // that is a single JSON string for use in user interfaces. User interface formatting may apply to + // this text in common use. The payload data section is limited to 20000 bytes by default. + Details *v1.Payload +} + +func (b0 UserMetadata_builder) Build() *UserMetadata { + m0 := &UserMetadata{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Summary = b.Summary + x.xxx_hidden_Details = b.Details + return m0 +} + +var File_temporal_api_sdk_v1_user_metadata_proto protoreflect.FileDescriptor + +const file_temporal_api_sdk_v1_user_metadata_proto_rawDesc = "" + + "\n" + + "'temporal/api/sdk/v1/user_metadata.proto\x12\x13temporal.api.sdk.v1\x1a$temporal/api/common/v1/message.proto\"\x84\x01\n" + + "\fUserMetadata\x129\n" + + "\asummary\x18\x01 \x01(\v2\x1f.temporal.api.common.v1.PayloadR\asummary\x129\n" + + "\adetails\x18\x02 \x01(\v2\x1f.temporal.api.common.v1.PayloadR\adetailsB\x7f\n" + + "\x16io.temporal.api.sdk.v1B\x11UserMetadataProtoP\x01Z\x1dgo.temporal.io/api/sdk/v1;sdk\xaa\x02\x15Temporalio.Api.Sdk.V1\xea\x02\x18Temporalio::Api::Sdk::V1b\x06proto3" + +var file_temporal_api_sdk_v1_user_metadata_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_temporal_api_sdk_v1_user_metadata_proto_goTypes = []any{ + (*UserMetadata)(nil), // 0: temporal.api.sdk.v1.UserMetadata + (*v1.Payload)(nil), // 1: temporal.api.common.v1.Payload +} +var file_temporal_api_sdk_v1_user_metadata_proto_depIdxs = []int32{ + 1, // 0: temporal.api.sdk.v1.UserMetadata.summary:type_name -> temporal.api.common.v1.Payload + 1, // 1: temporal.api.sdk.v1.UserMetadata.details:type_name -> temporal.api.common.v1.Payload + 2, // [2:2] is the sub-list for method output_type + 2, // [2:2] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name +} + +func init() { file_temporal_api_sdk_v1_user_metadata_proto_init() } +func file_temporal_api_sdk_v1_user_metadata_proto_init() { + if File_temporal_api_sdk_v1_user_metadata_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_api_sdk_v1_user_metadata_proto_rawDesc), len(file_temporal_api_sdk_v1_user_metadata_proto_rawDesc)), + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_temporal_api_sdk_v1_user_metadata_proto_goTypes, + DependencyIndexes: file_temporal_api_sdk_v1_user_metadata_proto_depIdxs, + MessageInfos: file_temporal_api_sdk_v1_user_metadata_proto_msgTypes, + }.Build() + File_temporal_api_sdk_v1_user_metadata_proto = out.File + file_temporal_api_sdk_v1_user_metadata_proto_goTypes = nil + file_temporal_api_sdk_v1_user_metadata_proto_depIdxs = nil +} diff --git a/sdk/v1/worker_config.pb.go b/sdk/v1/worker_config.pb.go index 76470b2c..e22ea584 100644 --- a/sdk/v1/worker_config.pb.go +++ b/sdk/v1/worker_config.pb.go @@ -4,11 +4,13 @@ // protoc // source: temporal/api/sdk/v1/worker_config.proto +//go:build !protoopaque + package sdk import ( reflect "reflect" - sync "sync" + "strconv" unsafe "unsafe" protoreflect "google.golang.org/protobuf/reflect/protoreflect" @@ -23,7 +25,7 @@ const ( ) type WorkerConfig struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` WorkflowCacheSize int32 `protobuf:"varint,1,opt,name=workflow_cache_size,json=workflowCacheSize,proto3" json:"workflow_cache_size,omitempty"` // Types that are valid to be assigned to PollerBehavior: // @@ -59,11 +61,6 @@ func (x *WorkerConfig) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use WorkerConfig.ProtoReflect.Descriptor instead. -func (*WorkerConfig) Descriptor() ([]byte, []int) { - return file_temporal_api_sdk_v1_worker_config_proto_rawDescGZIP(), []int{0} -} - func (x *WorkerConfig) GetWorkflowCacheSize() int32 { if x != nil { return x.WorkflowCacheSize @@ -96,6 +93,123 @@ func (x *WorkerConfig) GetAutoscalingPollerBehavior() *WorkerConfig_AutoscalingP return nil } +func (x *WorkerConfig) SetWorkflowCacheSize(v int32) { + x.WorkflowCacheSize = v +} + +func (x *WorkerConfig) SetSimplePollerBehavior(v *WorkerConfig_SimplePollerBehavior) { + if v == nil { + x.PollerBehavior = nil + return + } + x.PollerBehavior = &WorkerConfig_SimplePollerBehavior_{v} +} + +func (x *WorkerConfig) SetAutoscalingPollerBehavior(v *WorkerConfig_AutoscalingPollerBehavior) { + if v == nil { + x.PollerBehavior = nil + return + } + x.PollerBehavior = &WorkerConfig_AutoscalingPollerBehavior_{v} +} + +func (x *WorkerConfig) HasPollerBehavior() bool { + if x == nil { + return false + } + return x.PollerBehavior != nil +} + +func (x *WorkerConfig) HasSimplePollerBehavior() bool { + if x == nil { + return false + } + _, ok := x.PollerBehavior.(*WorkerConfig_SimplePollerBehavior_) + return ok +} + +func (x *WorkerConfig) HasAutoscalingPollerBehavior() bool { + if x == nil { + return false + } + _, ok := x.PollerBehavior.(*WorkerConfig_AutoscalingPollerBehavior_) + return ok +} + +func (x *WorkerConfig) ClearPollerBehavior() { + x.PollerBehavior = nil +} + +func (x *WorkerConfig) ClearSimplePollerBehavior() { + if _, ok := x.PollerBehavior.(*WorkerConfig_SimplePollerBehavior_); ok { + x.PollerBehavior = nil + } +} + +func (x *WorkerConfig) ClearAutoscalingPollerBehavior() { + if _, ok := x.PollerBehavior.(*WorkerConfig_AutoscalingPollerBehavior_); ok { + x.PollerBehavior = nil + } +} + +const WorkerConfig_PollerBehavior_not_set_case case_WorkerConfig_PollerBehavior = 0 +const WorkerConfig_SimplePollerBehavior_case case_WorkerConfig_PollerBehavior = 2 +const WorkerConfig_AutoscalingPollerBehavior_case case_WorkerConfig_PollerBehavior = 3 + +func (x *WorkerConfig) WhichPollerBehavior() case_WorkerConfig_PollerBehavior { + if x == nil { + return WorkerConfig_PollerBehavior_not_set_case + } + switch x.PollerBehavior.(type) { + case *WorkerConfig_SimplePollerBehavior_: + return WorkerConfig_SimplePollerBehavior_case + case *WorkerConfig_AutoscalingPollerBehavior_: + return WorkerConfig_AutoscalingPollerBehavior_case + default: + return WorkerConfig_PollerBehavior_not_set_case + } +} + +type WorkerConfig_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + WorkflowCacheSize int32 + // Fields of oneof PollerBehavior: + SimplePollerBehavior *WorkerConfig_SimplePollerBehavior + AutoscalingPollerBehavior *WorkerConfig_AutoscalingPollerBehavior + // -- end of PollerBehavior +} + +func (b0 WorkerConfig_builder) Build() *WorkerConfig { + m0 := &WorkerConfig{} + b, x := &b0, m0 + _, _ = b, x + x.WorkflowCacheSize = b.WorkflowCacheSize + if b.SimplePollerBehavior != nil { + x.PollerBehavior = &WorkerConfig_SimplePollerBehavior_{b.SimplePollerBehavior} + } + if b.AutoscalingPollerBehavior != nil { + x.PollerBehavior = &WorkerConfig_AutoscalingPollerBehavior_{b.AutoscalingPollerBehavior} + } + return m0 +} + +type case_WorkerConfig_PollerBehavior protoreflect.FieldNumber + +func (x case_WorkerConfig_PollerBehavior) String() string { + switch x { + case WorkerConfig_PollerBehavior_not_set_case: + return "WorkerConfigPollerBehaviorNotSetCase" + case WorkerConfig_SimplePollerBehavior_case: + return "WorkerConfigSimplePollerBehaviorCase" + case WorkerConfig_AutoscalingPollerBehavior_case: + return "WorkerConfigAutoscalingPollerBehaviorCase" + default: + return strconv.Itoa(int(x)) + } + +} + type isWorkerConfig_PollerBehavior interface { isWorkerConfig_PollerBehavior() } @@ -113,7 +227,7 @@ func (*WorkerConfig_SimplePollerBehavior_) isWorkerConfig_PollerBehavior() {} func (*WorkerConfig_AutoscalingPollerBehavior_) isWorkerConfig_PollerBehavior() {} type WorkerConfig_SimplePollerBehavior struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` MaxPollers int32 `protobuf:"varint,1,opt,name=max_pollers,json=maxPollers,proto3" json:"max_pollers,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -144,11 +258,6 @@ func (x *WorkerConfig_SimplePollerBehavior) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use WorkerConfig_SimplePollerBehavior.ProtoReflect.Descriptor instead. -func (*WorkerConfig_SimplePollerBehavior) Descriptor() ([]byte, []int) { - return file_temporal_api_sdk_v1_worker_config_proto_rawDescGZIP(), []int{0, 0} -} - func (x *WorkerConfig_SimplePollerBehavior) GetMaxPollers() int32 { if x != nil { return x.MaxPollers @@ -156,8 +265,26 @@ func (x *WorkerConfig_SimplePollerBehavior) GetMaxPollers() int32 { return 0 } +func (x *WorkerConfig_SimplePollerBehavior) SetMaxPollers(v int32) { + x.MaxPollers = v +} + +type WorkerConfig_SimplePollerBehavior_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + MaxPollers int32 +} + +func (b0 WorkerConfig_SimplePollerBehavior_builder) Build() *WorkerConfig_SimplePollerBehavior { + m0 := &WorkerConfig_SimplePollerBehavior{} + b, x := &b0, m0 + _, _ = b, x + x.MaxPollers = b.MaxPollers + return m0 +} + type WorkerConfig_AutoscalingPollerBehavior struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // At least this many poll calls will always be attempted (assuming slots are available). // Cannot be zero. MinPollers int32 `protobuf:"varint,1,opt,name=min_pollers,json=minPollers,proto3" json:"min_pollers,omitempty"` @@ -196,11 +323,6 @@ func (x *WorkerConfig_AutoscalingPollerBehavior) ProtoReflect() protoreflect.Mes return mi.MessageOf(x) } -// Deprecated: Use WorkerConfig_AutoscalingPollerBehavior.ProtoReflect.Descriptor instead. -func (*WorkerConfig_AutoscalingPollerBehavior) Descriptor() ([]byte, []int) { - return file_temporal_api_sdk_v1_worker_config_proto_rawDescGZIP(), []int{0, 1} -} - func (x *WorkerConfig_AutoscalingPollerBehavior) GetMinPollers() int32 { if x != nil { return x.MinPollers @@ -222,6 +344,42 @@ func (x *WorkerConfig_AutoscalingPollerBehavior) GetInitialPollers() int32 { return 0 } +func (x *WorkerConfig_AutoscalingPollerBehavior) SetMinPollers(v int32) { + x.MinPollers = v +} + +func (x *WorkerConfig_AutoscalingPollerBehavior) SetMaxPollers(v int32) { + x.MaxPollers = v +} + +func (x *WorkerConfig_AutoscalingPollerBehavior) SetInitialPollers(v int32) { + x.InitialPollers = v +} + +type WorkerConfig_AutoscalingPollerBehavior_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // At least this many poll calls will always be attempted (assuming slots are available). + // Cannot be zero. + MinPollers int32 + // At most this many poll calls will ever be open at once. Must be >= `minimum`. + MaxPollers int32 + // This many polls will be attempted initially before scaling kicks in. Must be between + // + // `minimum` and `maximum`. + InitialPollers int32 +} + +func (b0 WorkerConfig_AutoscalingPollerBehavior_builder) Build() *WorkerConfig_AutoscalingPollerBehavior { + m0 := &WorkerConfig_AutoscalingPollerBehavior{} + b, x := &b0, m0 + _, _ = b, x + x.MinPollers = b.MinPollers + x.MaxPollers = b.MaxPollers + x.InitialPollers = b.InitialPollers + return m0 +} + var File_temporal_api_sdk_v1_worker_config_proto protoreflect.FileDescriptor const file_temporal_api_sdk_v1_worker_config_proto_rawDesc = "" + @@ -243,18 +401,6 @@ const file_temporal_api_sdk_v1_worker_config_proto_rawDesc = "" + "\x0fpoller_behaviorB\x7f\n" + "\x16io.temporal.api.sdk.v1B\x11WorkerConfigProtoP\x01Z\x1dgo.temporal.io/api/sdk/v1;sdk\xaa\x02\x15Temporalio.Api.Sdk.V1\xea\x02\x18Temporalio::Api::Sdk::V1b\x06proto3" -var ( - file_temporal_api_sdk_v1_worker_config_proto_rawDescOnce sync.Once - file_temporal_api_sdk_v1_worker_config_proto_rawDescData []byte -) - -func file_temporal_api_sdk_v1_worker_config_proto_rawDescGZIP() []byte { - file_temporal_api_sdk_v1_worker_config_proto_rawDescOnce.Do(func() { - file_temporal_api_sdk_v1_worker_config_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_api_sdk_v1_worker_config_proto_rawDesc), len(file_temporal_api_sdk_v1_worker_config_proto_rawDesc))) - }) - return file_temporal_api_sdk_v1_worker_config_proto_rawDescData -} - var file_temporal_api_sdk_v1_worker_config_proto_msgTypes = make([]protoimpl.MessageInfo, 3) var file_temporal_api_sdk_v1_worker_config_proto_goTypes = []any{ (*WorkerConfig)(nil), // 0: temporal.api.sdk.v1.WorkerConfig diff --git a/sdk/v1/worker_config_protoopaque.pb.go b/sdk/v1/worker_config_protoopaque.pb.go new file mode 100644 index 00000000..3f8b0c62 --- /dev/null +++ b/sdk/v1/worker_config_protoopaque.pb.go @@ -0,0 +1,429 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// plugins: +// protoc-gen-go +// protoc +// source: temporal/api/sdk/v1/worker_config.proto + +//go:build protoopaque + +package sdk + +import ( + reflect "reflect" + "strconv" + unsafe "unsafe" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type WorkerConfig struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_WorkflowCacheSize int32 `protobuf:"varint,1,opt,name=workflow_cache_size,json=workflowCacheSize,proto3"` + xxx_hidden_PollerBehavior isWorkerConfig_PollerBehavior `protobuf_oneof:"poller_behavior"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkerConfig) Reset() { + *x = WorkerConfig{} + mi := &file_temporal_api_sdk_v1_worker_config_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkerConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkerConfig) ProtoMessage() {} + +func (x *WorkerConfig) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_sdk_v1_worker_config_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkerConfig) GetWorkflowCacheSize() int32 { + if x != nil { + return x.xxx_hidden_WorkflowCacheSize + } + return 0 +} + +func (x *WorkerConfig) GetSimplePollerBehavior() *WorkerConfig_SimplePollerBehavior { + if x != nil { + if x, ok := x.xxx_hidden_PollerBehavior.(*workerConfig_SimplePollerBehavior_); ok { + return x.SimplePollerBehavior + } + } + return nil +} + +func (x *WorkerConfig) GetAutoscalingPollerBehavior() *WorkerConfig_AutoscalingPollerBehavior { + if x != nil { + if x, ok := x.xxx_hidden_PollerBehavior.(*workerConfig_AutoscalingPollerBehavior_); ok { + return x.AutoscalingPollerBehavior + } + } + return nil +} + +func (x *WorkerConfig) SetWorkflowCacheSize(v int32) { + x.xxx_hidden_WorkflowCacheSize = v +} + +func (x *WorkerConfig) SetSimplePollerBehavior(v *WorkerConfig_SimplePollerBehavior) { + if v == nil { + x.xxx_hidden_PollerBehavior = nil + return + } + x.xxx_hidden_PollerBehavior = &workerConfig_SimplePollerBehavior_{v} +} + +func (x *WorkerConfig) SetAutoscalingPollerBehavior(v *WorkerConfig_AutoscalingPollerBehavior) { + if v == nil { + x.xxx_hidden_PollerBehavior = nil + return + } + x.xxx_hidden_PollerBehavior = &workerConfig_AutoscalingPollerBehavior_{v} +} + +func (x *WorkerConfig) HasPollerBehavior() bool { + if x == nil { + return false + } + return x.xxx_hidden_PollerBehavior != nil +} + +func (x *WorkerConfig) HasSimplePollerBehavior() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_PollerBehavior.(*workerConfig_SimplePollerBehavior_) + return ok +} + +func (x *WorkerConfig) HasAutoscalingPollerBehavior() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_PollerBehavior.(*workerConfig_AutoscalingPollerBehavior_) + return ok +} + +func (x *WorkerConfig) ClearPollerBehavior() { + x.xxx_hidden_PollerBehavior = nil +} + +func (x *WorkerConfig) ClearSimplePollerBehavior() { + if _, ok := x.xxx_hidden_PollerBehavior.(*workerConfig_SimplePollerBehavior_); ok { + x.xxx_hidden_PollerBehavior = nil + } +} + +func (x *WorkerConfig) ClearAutoscalingPollerBehavior() { + if _, ok := x.xxx_hidden_PollerBehavior.(*workerConfig_AutoscalingPollerBehavior_); ok { + x.xxx_hidden_PollerBehavior = nil + } +} + +const WorkerConfig_PollerBehavior_not_set_case case_WorkerConfig_PollerBehavior = 0 +const WorkerConfig_SimplePollerBehavior_case case_WorkerConfig_PollerBehavior = 2 +const WorkerConfig_AutoscalingPollerBehavior_case case_WorkerConfig_PollerBehavior = 3 + +func (x *WorkerConfig) WhichPollerBehavior() case_WorkerConfig_PollerBehavior { + if x == nil { + return WorkerConfig_PollerBehavior_not_set_case + } + switch x.xxx_hidden_PollerBehavior.(type) { + case *workerConfig_SimplePollerBehavior_: + return WorkerConfig_SimplePollerBehavior_case + case *workerConfig_AutoscalingPollerBehavior_: + return WorkerConfig_AutoscalingPollerBehavior_case + default: + return WorkerConfig_PollerBehavior_not_set_case + } +} + +type WorkerConfig_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + WorkflowCacheSize int32 + // Fields of oneof xxx_hidden_PollerBehavior: + SimplePollerBehavior *WorkerConfig_SimplePollerBehavior + AutoscalingPollerBehavior *WorkerConfig_AutoscalingPollerBehavior + // -- end of xxx_hidden_PollerBehavior +} + +func (b0 WorkerConfig_builder) Build() *WorkerConfig { + m0 := &WorkerConfig{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_WorkflowCacheSize = b.WorkflowCacheSize + if b.SimplePollerBehavior != nil { + x.xxx_hidden_PollerBehavior = &workerConfig_SimplePollerBehavior_{b.SimplePollerBehavior} + } + if b.AutoscalingPollerBehavior != nil { + x.xxx_hidden_PollerBehavior = &workerConfig_AutoscalingPollerBehavior_{b.AutoscalingPollerBehavior} + } + return m0 +} + +type case_WorkerConfig_PollerBehavior protoreflect.FieldNumber + +func (x case_WorkerConfig_PollerBehavior) String() string { + switch x { + case WorkerConfig_PollerBehavior_not_set_case: + return "WorkerConfigPollerBehaviorNotSetCase" + case WorkerConfig_SimplePollerBehavior_case: + return "WorkerConfigSimplePollerBehaviorCase" + case WorkerConfig_AutoscalingPollerBehavior_case: + return "WorkerConfigAutoscalingPollerBehaviorCase" + default: + return strconv.Itoa(int(x)) + } + +} + +type isWorkerConfig_PollerBehavior interface { + isWorkerConfig_PollerBehavior() +} + +type workerConfig_SimplePollerBehavior_ struct { + SimplePollerBehavior *WorkerConfig_SimplePollerBehavior `protobuf:"bytes,2,opt,name=simple_poller_behavior,json=simplePollerBehavior,proto3,oneof"` +} + +type workerConfig_AutoscalingPollerBehavior_ struct { + AutoscalingPollerBehavior *WorkerConfig_AutoscalingPollerBehavior `protobuf:"bytes,3,opt,name=autoscaling_poller_behavior,json=autoscalingPollerBehavior,proto3,oneof"` +} + +func (*workerConfig_SimplePollerBehavior_) isWorkerConfig_PollerBehavior() {} + +func (*workerConfig_AutoscalingPollerBehavior_) isWorkerConfig_PollerBehavior() {} + +type WorkerConfig_SimplePollerBehavior struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_MaxPollers int32 `protobuf:"varint,1,opt,name=max_pollers,json=maxPollers,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkerConfig_SimplePollerBehavior) Reset() { + *x = WorkerConfig_SimplePollerBehavior{} + mi := &file_temporal_api_sdk_v1_worker_config_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkerConfig_SimplePollerBehavior) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkerConfig_SimplePollerBehavior) ProtoMessage() {} + +func (x *WorkerConfig_SimplePollerBehavior) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_sdk_v1_worker_config_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkerConfig_SimplePollerBehavior) GetMaxPollers() int32 { + if x != nil { + return x.xxx_hidden_MaxPollers + } + return 0 +} + +func (x *WorkerConfig_SimplePollerBehavior) SetMaxPollers(v int32) { + x.xxx_hidden_MaxPollers = v +} + +type WorkerConfig_SimplePollerBehavior_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + MaxPollers int32 +} + +func (b0 WorkerConfig_SimplePollerBehavior_builder) Build() *WorkerConfig_SimplePollerBehavior { + m0 := &WorkerConfig_SimplePollerBehavior{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_MaxPollers = b.MaxPollers + return m0 +} + +type WorkerConfig_AutoscalingPollerBehavior struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_MinPollers int32 `protobuf:"varint,1,opt,name=min_pollers,json=minPollers,proto3"` + xxx_hidden_MaxPollers int32 `protobuf:"varint,2,opt,name=max_pollers,json=maxPollers,proto3"` + xxx_hidden_InitialPollers int32 `protobuf:"varint,3,opt,name=initial_pollers,json=initialPollers,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkerConfig_AutoscalingPollerBehavior) Reset() { + *x = WorkerConfig_AutoscalingPollerBehavior{} + mi := &file_temporal_api_sdk_v1_worker_config_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkerConfig_AutoscalingPollerBehavior) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkerConfig_AutoscalingPollerBehavior) ProtoMessage() {} + +func (x *WorkerConfig_AutoscalingPollerBehavior) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_sdk_v1_worker_config_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkerConfig_AutoscalingPollerBehavior) GetMinPollers() int32 { + if x != nil { + return x.xxx_hidden_MinPollers + } + return 0 +} + +func (x *WorkerConfig_AutoscalingPollerBehavior) GetMaxPollers() int32 { + if x != nil { + return x.xxx_hidden_MaxPollers + } + return 0 +} + +func (x *WorkerConfig_AutoscalingPollerBehavior) GetInitialPollers() int32 { + if x != nil { + return x.xxx_hidden_InitialPollers + } + return 0 +} + +func (x *WorkerConfig_AutoscalingPollerBehavior) SetMinPollers(v int32) { + x.xxx_hidden_MinPollers = v +} + +func (x *WorkerConfig_AutoscalingPollerBehavior) SetMaxPollers(v int32) { + x.xxx_hidden_MaxPollers = v +} + +func (x *WorkerConfig_AutoscalingPollerBehavior) SetInitialPollers(v int32) { + x.xxx_hidden_InitialPollers = v +} + +type WorkerConfig_AutoscalingPollerBehavior_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // At least this many poll calls will always be attempted (assuming slots are available). + // Cannot be zero. + MinPollers int32 + // At most this many poll calls will ever be open at once. Must be >= `minimum`. + MaxPollers int32 + // This many polls will be attempted initially before scaling kicks in. Must be between + // + // `minimum` and `maximum`. + InitialPollers int32 +} + +func (b0 WorkerConfig_AutoscalingPollerBehavior_builder) Build() *WorkerConfig_AutoscalingPollerBehavior { + m0 := &WorkerConfig_AutoscalingPollerBehavior{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_MinPollers = b.MinPollers + x.xxx_hidden_MaxPollers = b.MaxPollers + x.xxx_hidden_InitialPollers = b.InitialPollers + return m0 +} + +var File_temporal_api_sdk_v1_worker_config_proto protoreflect.FileDescriptor + +const file_temporal_api_sdk_v1_worker_config_proto_rawDesc = "" + + "\n" + + "'temporal/api/sdk/v1/worker_config.proto\x12\x13temporal.api.sdk.v1\"\x82\x04\n" + + "\fWorkerConfig\x12.\n" + + "\x13workflow_cache_size\x18\x01 \x01(\x05R\x11workflowCacheSize\x12n\n" + + "\x16simple_poller_behavior\x18\x02 \x01(\v26.temporal.api.sdk.v1.WorkerConfig.SimplePollerBehaviorH\x00R\x14simplePollerBehavior\x12}\n" + + "\x1bautoscaling_poller_behavior\x18\x03 \x01(\v2;.temporal.api.sdk.v1.WorkerConfig.AutoscalingPollerBehaviorH\x00R\x19autoscalingPollerBehavior\x1a7\n" + + "\x14SimplePollerBehavior\x12\x1f\n" + + "\vmax_pollers\x18\x01 \x01(\x05R\n" + + "maxPollers\x1a\x86\x01\n" + + "\x19AutoscalingPollerBehavior\x12\x1f\n" + + "\vmin_pollers\x18\x01 \x01(\x05R\n" + + "minPollers\x12\x1f\n" + + "\vmax_pollers\x18\x02 \x01(\x05R\n" + + "maxPollers\x12'\n" + + "\x0finitial_pollers\x18\x03 \x01(\x05R\x0einitialPollersB\x11\n" + + "\x0fpoller_behaviorB\x7f\n" + + "\x16io.temporal.api.sdk.v1B\x11WorkerConfigProtoP\x01Z\x1dgo.temporal.io/api/sdk/v1;sdk\xaa\x02\x15Temporalio.Api.Sdk.V1\xea\x02\x18Temporalio::Api::Sdk::V1b\x06proto3" + +var file_temporal_api_sdk_v1_worker_config_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_temporal_api_sdk_v1_worker_config_proto_goTypes = []any{ + (*WorkerConfig)(nil), // 0: temporal.api.sdk.v1.WorkerConfig + (*WorkerConfig_SimplePollerBehavior)(nil), // 1: temporal.api.sdk.v1.WorkerConfig.SimplePollerBehavior + (*WorkerConfig_AutoscalingPollerBehavior)(nil), // 2: temporal.api.sdk.v1.WorkerConfig.AutoscalingPollerBehavior +} +var file_temporal_api_sdk_v1_worker_config_proto_depIdxs = []int32{ + 1, // 0: temporal.api.sdk.v1.WorkerConfig.simple_poller_behavior:type_name -> temporal.api.sdk.v1.WorkerConfig.SimplePollerBehavior + 2, // 1: temporal.api.sdk.v1.WorkerConfig.autoscaling_poller_behavior:type_name -> temporal.api.sdk.v1.WorkerConfig.AutoscalingPollerBehavior + 2, // [2:2] is the sub-list for method output_type + 2, // [2:2] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name +} + +func init() { file_temporal_api_sdk_v1_worker_config_proto_init() } +func file_temporal_api_sdk_v1_worker_config_proto_init() { + if File_temporal_api_sdk_v1_worker_config_proto != nil { + return + } + file_temporal_api_sdk_v1_worker_config_proto_msgTypes[0].OneofWrappers = []any{ + (*workerConfig_SimplePollerBehavior_)(nil), + (*workerConfig_AutoscalingPollerBehavior_)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_api_sdk_v1_worker_config_proto_rawDesc), len(file_temporal_api_sdk_v1_worker_config_proto_rawDesc)), + NumEnums: 0, + NumMessages: 3, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_temporal_api_sdk_v1_worker_config_proto_goTypes, + DependencyIndexes: file_temporal_api_sdk_v1_worker_config_proto_depIdxs, + MessageInfos: file_temporal_api_sdk_v1_worker_config_proto_msgTypes, + }.Build() + File_temporal_api_sdk_v1_worker_config_proto = out.File + file_temporal_api_sdk_v1_worker_config_proto_goTypes = nil + file_temporal_api_sdk_v1_worker_config_proto_depIdxs = nil +} diff --git a/sdk/v1/workflow_metadata.pb.go b/sdk/v1/workflow_metadata.pb.go index 55639384..45eb19ec 100644 --- a/sdk/v1/workflow_metadata.pb.go +++ b/sdk/v1/workflow_metadata.pb.go @@ -4,11 +4,12 @@ // protoc // source: temporal/api/sdk/v1/workflow_metadata.proto +//go:build !protoopaque + package sdk import ( reflect "reflect" - sync "sync" unsafe "unsafe" protoreflect "google.golang.org/protobuf/reflect/protoreflect" @@ -24,7 +25,7 @@ const ( // The name of the query to retrieve this information is `__temporal_workflow_metadata`. type WorkflowMetadata struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Metadata provided at declaration or creation time. Definition *WorkflowDefinition `protobuf:"bytes,1,opt,name=definition,proto3" json:"definition,omitempty"` // Current long-form details of the workflow's state. This is used by user interfaces to show @@ -59,11 +60,6 @@ func (x *WorkflowMetadata) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use WorkflowMetadata.ProtoReflect.Descriptor instead. -func (*WorkflowMetadata) Descriptor() ([]byte, []int) { - return file_temporal_api_sdk_v1_workflow_metadata_proto_rawDescGZIP(), []int{0} -} - func (x *WorkflowMetadata) GetDefinition() *WorkflowDefinition { if x != nil { return x.Definition @@ -78,9 +74,47 @@ func (x *WorkflowMetadata) GetCurrentDetails() string { return "" } +func (x *WorkflowMetadata) SetDefinition(v *WorkflowDefinition) { + x.Definition = v +} + +func (x *WorkflowMetadata) SetCurrentDetails(v string) { + x.CurrentDetails = v +} + +func (x *WorkflowMetadata) HasDefinition() bool { + if x == nil { + return false + } + return x.Definition != nil +} + +func (x *WorkflowMetadata) ClearDefinition() { + x.Definition = nil +} + +type WorkflowMetadata_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Metadata provided at declaration or creation time. + Definition *WorkflowDefinition + // Current long-form details of the workflow's state. This is used by user interfaces to show + // long-form text. This text may be formatted by the user interface. + CurrentDetails string +} + +func (b0 WorkflowMetadata_builder) Build() *WorkflowMetadata { + m0 := &WorkflowMetadata{} + b, x := &b0, m0 + _, _ = b, x + x.Definition = b.Definition + x.CurrentDetails = b.CurrentDetails + return m0 +} + // (-- api-linter: core::0203::optional=disabled --) type WorkflowDefinition struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // A name scoped by the task queue that maps to this workflow definition. // If missing, this workflow is a dynamic workflow. Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` @@ -119,11 +153,6 @@ func (x *WorkflowDefinition) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use WorkflowDefinition.ProtoReflect.Descriptor instead. -func (*WorkflowDefinition) Descriptor() ([]byte, []int) { - return file_temporal_api_sdk_v1_workflow_metadata_proto_rawDescGZIP(), []int{1} -} - func (x *WorkflowDefinition) GetType() string { if x != nil { return x.Type @@ -152,13 +181,54 @@ func (x *WorkflowDefinition) GetUpdateDefinitions() []*WorkflowInteractionDefini return nil } +func (x *WorkflowDefinition) SetType(v string) { + x.Type = v +} + +func (x *WorkflowDefinition) SetQueryDefinitions(v []*WorkflowInteractionDefinition) { + x.QueryDefinitions = v +} + +func (x *WorkflowDefinition) SetSignalDefinitions(v []*WorkflowInteractionDefinition) { + x.SignalDefinitions = v +} + +func (x *WorkflowDefinition) SetUpdateDefinitions(v []*WorkflowInteractionDefinition) { + x.UpdateDefinitions = v +} + +type WorkflowDefinition_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // A name scoped by the task queue that maps to this workflow definition. + // If missing, this workflow is a dynamic workflow. + Type string + // Query definitions, sorted by name. + QueryDefinitions []*WorkflowInteractionDefinition + // Signal definitions, sorted by name. + SignalDefinitions []*WorkflowInteractionDefinition + // Update definitions, sorted by name. + UpdateDefinitions []*WorkflowInteractionDefinition +} + +func (b0 WorkflowDefinition_builder) Build() *WorkflowDefinition { + m0 := &WorkflowDefinition{} + b, x := &b0, m0 + _, _ = b, x + x.Type = b.Type + x.QueryDefinitions = b.QueryDefinitions + x.SignalDefinitions = b.SignalDefinitions + x.UpdateDefinitions = b.UpdateDefinitions + return m0 +} + // (-- api-linter: core::0123::resource-annotation=disabled // // aip.dev/not-precedent: The `name` field is optional. --) // // (-- api-linter: core::0203::optional=disabled --) type WorkflowInteractionDefinition struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // An optional name for the handler. If missing, it represents // a dynamic handler that processes any interactions not handled by others. // There is at most one dynamic handler per workflow and interaction kind. @@ -196,11 +266,6 @@ func (x *WorkflowInteractionDefinition) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use WorkflowInteractionDefinition.ProtoReflect.Descriptor instead. -func (*WorkflowInteractionDefinition) Descriptor() ([]byte, []int) { - return file_temporal_api_sdk_v1_workflow_metadata_proto_rawDescGZIP(), []int{2} -} - func (x *WorkflowInteractionDefinition) GetName() string { if x != nil { return x.Name @@ -215,6 +280,36 @@ func (x *WorkflowInteractionDefinition) GetDescription() string { return "" } +func (x *WorkflowInteractionDefinition) SetName(v string) { + x.Name = v +} + +func (x *WorkflowInteractionDefinition) SetDescription(v string) { + x.Description = v +} + +type WorkflowInteractionDefinition_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // An optional name for the handler. If missing, it represents + // a dynamic handler that processes any interactions not handled by others. + // There is at most one dynamic handler per workflow and interaction kind. + Name string + // An optional interaction description provided by the application. + // By convention, external tools may interpret its first part, + // i.e., ending with a line break, as a summary of the description. + Description string +} + +func (b0 WorkflowInteractionDefinition_builder) Build() *WorkflowInteractionDefinition { + m0 := &WorkflowInteractionDefinition{} + b, x := &b0, m0 + _, _ = b, x + x.Name = b.Name + x.Description = b.Description + return m0 +} + var File_temporal_api_sdk_v1_workflow_metadata_proto protoreflect.FileDescriptor const file_temporal_api_sdk_v1_workflow_metadata_proto_rawDesc = "" + @@ -235,18 +330,6 @@ const file_temporal_api_sdk_v1_workflow_metadata_proto_rawDesc = "" + "\vdescription\x18\x02 \x01(\tR\vdescriptionB\x83\x01\n" + "\x16io.temporal.api.sdk.v1B\x15WorkflowMetadataProtoP\x01Z\x1dgo.temporal.io/api/sdk/v1;sdk\xaa\x02\x15Temporalio.Api.Sdk.V1\xea\x02\x18Temporalio::Api::Sdk::V1b\x06proto3" -var ( - file_temporal_api_sdk_v1_workflow_metadata_proto_rawDescOnce sync.Once - file_temporal_api_sdk_v1_workflow_metadata_proto_rawDescData []byte -) - -func file_temporal_api_sdk_v1_workflow_metadata_proto_rawDescGZIP() []byte { - file_temporal_api_sdk_v1_workflow_metadata_proto_rawDescOnce.Do(func() { - file_temporal_api_sdk_v1_workflow_metadata_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_api_sdk_v1_workflow_metadata_proto_rawDesc), len(file_temporal_api_sdk_v1_workflow_metadata_proto_rawDesc))) - }) - return file_temporal_api_sdk_v1_workflow_metadata_proto_rawDescData -} - var file_temporal_api_sdk_v1_workflow_metadata_proto_msgTypes = make([]protoimpl.MessageInfo, 3) var file_temporal_api_sdk_v1_workflow_metadata_proto_goTypes = []any{ (*WorkflowMetadata)(nil), // 0: temporal.api.sdk.v1.WorkflowMetadata diff --git a/sdk/v1/workflow_metadata_protoopaque.pb.go b/sdk/v1/workflow_metadata_protoopaque.pb.go new file mode 100644 index 00000000..b1a6b959 --- /dev/null +++ b/sdk/v1/workflow_metadata_protoopaque.pb.go @@ -0,0 +1,365 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// plugins: +// protoc-gen-go +// protoc +// source: temporal/api/sdk/v1/workflow_metadata.proto + +//go:build protoopaque + +package sdk + +import ( + reflect "reflect" + unsafe "unsafe" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// The name of the query to retrieve this information is `__temporal_workflow_metadata`. +type WorkflowMetadata struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Definition *WorkflowDefinition `protobuf:"bytes,1,opt,name=definition,proto3"` + xxx_hidden_CurrentDetails string `protobuf:"bytes,2,opt,name=current_details,json=currentDetails,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowMetadata) Reset() { + *x = WorkflowMetadata{} + mi := &file_temporal_api_sdk_v1_workflow_metadata_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkflowMetadata) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowMetadata) ProtoMessage() {} + +func (x *WorkflowMetadata) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_sdk_v1_workflow_metadata_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkflowMetadata) GetDefinition() *WorkflowDefinition { + if x != nil { + return x.xxx_hidden_Definition + } + return nil +} + +func (x *WorkflowMetadata) GetCurrentDetails() string { + if x != nil { + return x.xxx_hidden_CurrentDetails + } + return "" +} + +func (x *WorkflowMetadata) SetDefinition(v *WorkflowDefinition) { + x.xxx_hidden_Definition = v +} + +func (x *WorkflowMetadata) SetCurrentDetails(v string) { + x.xxx_hidden_CurrentDetails = v +} + +func (x *WorkflowMetadata) HasDefinition() bool { + if x == nil { + return false + } + return x.xxx_hidden_Definition != nil +} + +func (x *WorkflowMetadata) ClearDefinition() { + x.xxx_hidden_Definition = nil +} + +type WorkflowMetadata_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Metadata provided at declaration or creation time. + Definition *WorkflowDefinition + // Current long-form details of the workflow's state. This is used by user interfaces to show + // long-form text. This text may be formatted by the user interface. + CurrentDetails string +} + +func (b0 WorkflowMetadata_builder) Build() *WorkflowMetadata { + m0 := &WorkflowMetadata{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Definition = b.Definition + x.xxx_hidden_CurrentDetails = b.CurrentDetails + return m0 +} + +// (-- api-linter: core::0203::optional=disabled --) +type WorkflowDefinition struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Type string `protobuf:"bytes,1,opt,name=type,proto3"` + xxx_hidden_QueryDefinitions *[]*WorkflowInteractionDefinition `protobuf:"bytes,2,rep,name=query_definitions,json=queryDefinitions,proto3"` + xxx_hidden_SignalDefinitions *[]*WorkflowInteractionDefinition `protobuf:"bytes,3,rep,name=signal_definitions,json=signalDefinitions,proto3"` + xxx_hidden_UpdateDefinitions *[]*WorkflowInteractionDefinition `protobuf:"bytes,4,rep,name=update_definitions,json=updateDefinitions,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowDefinition) Reset() { + *x = WorkflowDefinition{} + mi := &file_temporal_api_sdk_v1_workflow_metadata_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkflowDefinition) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowDefinition) ProtoMessage() {} + +func (x *WorkflowDefinition) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_sdk_v1_workflow_metadata_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkflowDefinition) GetType() string { + if x != nil { + return x.xxx_hidden_Type + } + return "" +} + +func (x *WorkflowDefinition) GetQueryDefinitions() []*WorkflowInteractionDefinition { + if x != nil { + if x.xxx_hidden_QueryDefinitions != nil { + return *x.xxx_hidden_QueryDefinitions + } + } + return nil +} + +func (x *WorkflowDefinition) GetSignalDefinitions() []*WorkflowInteractionDefinition { + if x != nil { + if x.xxx_hidden_SignalDefinitions != nil { + return *x.xxx_hidden_SignalDefinitions + } + } + return nil +} + +func (x *WorkflowDefinition) GetUpdateDefinitions() []*WorkflowInteractionDefinition { + if x != nil { + if x.xxx_hidden_UpdateDefinitions != nil { + return *x.xxx_hidden_UpdateDefinitions + } + } + return nil +} + +func (x *WorkflowDefinition) SetType(v string) { + x.xxx_hidden_Type = v +} + +func (x *WorkflowDefinition) SetQueryDefinitions(v []*WorkflowInteractionDefinition) { + x.xxx_hidden_QueryDefinitions = &v +} + +func (x *WorkflowDefinition) SetSignalDefinitions(v []*WorkflowInteractionDefinition) { + x.xxx_hidden_SignalDefinitions = &v +} + +func (x *WorkflowDefinition) SetUpdateDefinitions(v []*WorkflowInteractionDefinition) { + x.xxx_hidden_UpdateDefinitions = &v +} + +type WorkflowDefinition_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // A name scoped by the task queue that maps to this workflow definition. + // If missing, this workflow is a dynamic workflow. + Type string + // Query definitions, sorted by name. + QueryDefinitions []*WorkflowInteractionDefinition + // Signal definitions, sorted by name. + SignalDefinitions []*WorkflowInteractionDefinition + // Update definitions, sorted by name. + UpdateDefinitions []*WorkflowInteractionDefinition +} + +func (b0 WorkflowDefinition_builder) Build() *WorkflowDefinition { + m0 := &WorkflowDefinition{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Type = b.Type + x.xxx_hidden_QueryDefinitions = &b.QueryDefinitions + x.xxx_hidden_SignalDefinitions = &b.SignalDefinitions + x.xxx_hidden_UpdateDefinitions = &b.UpdateDefinitions + return m0 +} + +// (-- api-linter: core::0123::resource-annotation=disabled +// +// aip.dev/not-precedent: The `name` field is optional. --) +// +// (-- api-linter: core::0203::optional=disabled --) +type WorkflowInteractionDefinition struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Name string `protobuf:"bytes,1,opt,name=name,proto3"` + xxx_hidden_Description string `protobuf:"bytes,2,opt,name=description,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowInteractionDefinition) Reset() { + *x = WorkflowInteractionDefinition{} + mi := &file_temporal_api_sdk_v1_workflow_metadata_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkflowInteractionDefinition) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowInteractionDefinition) ProtoMessage() {} + +func (x *WorkflowInteractionDefinition) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_sdk_v1_workflow_metadata_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkflowInteractionDefinition) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *WorkflowInteractionDefinition) GetDescription() string { + if x != nil { + return x.xxx_hidden_Description + } + return "" +} + +func (x *WorkflowInteractionDefinition) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *WorkflowInteractionDefinition) SetDescription(v string) { + x.xxx_hidden_Description = v +} + +type WorkflowInteractionDefinition_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // An optional name for the handler. If missing, it represents + // a dynamic handler that processes any interactions not handled by others. + // There is at most one dynamic handler per workflow and interaction kind. + Name string + // An optional interaction description provided by the application. + // By convention, external tools may interpret its first part, + // i.e., ending with a line break, as a summary of the description. + Description string +} + +func (b0 WorkflowInteractionDefinition_builder) Build() *WorkflowInteractionDefinition { + m0 := &WorkflowInteractionDefinition{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Name = b.Name + x.xxx_hidden_Description = b.Description + return m0 +} + +var File_temporal_api_sdk_v1_workflow_metadata_proto protoreflect.FileDescriptor + +const file_temporal_api_sdk_v1_workflow_metadata_proto_rawDesc = "" + + "\n" + + "+temporal/api/sdk/v1/workflow_metadata.proto\x12\x13temporal.api.sdk.v1\"\x84\x01\n" + + "\x10WorkflowMetadata\x12G\n" + + "\n" + + "definition\x18\x01 \x01(\v2'.temporal.api.sdk.v1.WorkflowDefinitionR\n" + + "definition\x12'\n" + + "\x0fcurrent_details\x18\x02 \x01(\tR\x0ecurrentDetails\"\xcf\x02\n" + + "\x12WorkflowDefinition\x12\x12\n" + + "\x04type\x18\x01 \x01(\tR\x04type\x12_\n" + + "\x11query_definitions\x18\x02 \x03(\v22.temporal.api.sdk.v1.WorkflowInteractionDefinitionR\x10queryDefinitions\x12a\n" + + "\x12signal_definitions\x18\x03 \x03(\v22.temporal.api.sdk.v1.WorkflowInteractionDefinitionR\x11signalDefinitions\x12a\n" + + "\x12update_definitions\x18\x04 \x03(\v22.temporal.api.sdk.v1.WorkflowInteractionDefinitionR\x11updateDefinitions\"U\n" + + "\x1dWorkflowInteractionDefinition\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12 \n" + + "\vdescription\x18\x02 \x01(\tR\vdescriptionB\x83\x01\n" + + "\x16io.temporal.api.sdk.v1B\x15WorkflowMetadataProtoP\x01Z\x1dgo.temporal.io/api/sdk/v1;sdk\xaa\x02\x15Temporalio.Api.Sdk.V1\xea\x02\x18Temporalio::Api::Sdk::V1b\x06proto3" + +var file_temporal_api_sdk_v1_workflow_metadata_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_temporal_api_sdk_v1_workflow_metadata_proto_goTypes = []any{ + (*WorkflowMetadata)(nil), // 0: temporal.api.sdk.v1.WorkflowMetadata + (*WorkflowDefinition)(nil), // 1: temporal.api.sdk.v1.WorkflowDefinition + (*WorkflowInteractionDefinition)(nil), // 2: temporal.api.sdk.v1.WorkflowInteractionDefinition +} +var file_temporal_api_sdk_v1_workflow_metadata_proto_depIdxs = []int32{ + 1, // 0: temporal.api.sdk.v1.WorkflowMetadata.definition:type_name -> temporal.api.sdk.v1.WorkflowDefinition + 2, // 1: temporal.api.sdk.v1.WorkflowDefinition.query_definitions:type_name -> temporal.api.sdk.v1.WorkflowInteractionDefinition + 2, // 2: temporal.api.sdk.v1.WorkflowDefinition.signal_definitions:type_name -> temporal.api.sdk.v1.WorkflowInteractionDefinition + 2, // 3: temporal.api.sdk.v1.WorkflowDefinition.update_definitions:type_name -> temporal.api.sdk.v1.WorkflowInteractionDefinition + 4, // [4:4] is the sub-list for method output_type + 4, // [4:4] is the sub-list for method input_type + 4, // [4:4] is the sub-list for extension type_name + 4, // [4:4] is the sub-list for extension extendee + 0, // [0:4] is the sub-list for field type_name +} + +func init() { file_temporal_api_sdk_v1_workflow_metadata_proto_init() } +func file_temporal_api_sdk_v1_workflow_metadata_proto_init() { + if File_temporal_api_sdk_v1_workflow_metadata_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_api_sdk_v1_workflow_metadata_proto_rawDesc), len(file_temporal_api_sdk_v1_workflow_metadata_proto_rawDesc)), + NumEnums: 0, + NumMessages: 3, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_temporal_api_sdk_v1_workflow_metadata_proto_goTypes, + DependencyIndexes: file_temporal_api_sdk_v1_workflow_metadata_proto_depIdxs, + MessageInfos: file_temporal_api_sdk_v1_workflow_metadata_proto_msgTypes, + }.Build() + File_temporal_api_sdk_v1_workflow_metadata_proto = out.File + file_temporal_api_sdk_v1_workflow_metadata_proto_goTypes = nil + file_temporal_api_sdk_v1_workflow_metadata_proto_depIdxs = nil +} diff --git a/taskqueue/v1/message.pb.go b/taskqueue/v1/message.pb.go index 109105ca..278fcf08 100644 --- a/taskqueue/v1/message.pb.go +++ b/taskqueue/v1/message.pb.go @@ -4,11 +4,13 @@ // protoc // source: temporal/api/taskqueue/v1/message.proto +//go:build !protoopaque + package taskqueue import ( reflect "reflect" - sync "sync" + "strconv" unsafe "unsafe" v12 "go.temporal.io/api/common/v1" @@ -30,7 +32,7 @@ const ( // See https://docs.temporal.io/docs/concepts/task-queues/ type TaskQueue struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Default: TASK_QUEUE_KIND_NORMAL. Kind v1.TaskQueueKind `protobuf:"varint,2,opt,name=kind,proto3,enum=temporal.api.enums.v1.TaskQueueKind" json:"kind,omitempty"` @@ -66,11 +68,6 @@ func (x *TaskQueue) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use TaskQueue.ProtoReflect.Descriptor instead. -func (*TaskQueue) Descriptor() ([]byte, []int) { - return file_temporal_api_taskqueue_v1_message_proto_rawDescGZIP(), []int{0} -} - func (x *TaskQueue) GetName() string { if x != nil { return x.Name @@ -92,9 +89,42 @@ func (x *TaskQueue) GetNormalName() string { return "" } +func (x *TaskQueue) SetName(v string) { + x.Name = v +} + +func (x *TaskQueue) SetKind(v v1.TaskQueueKind) { + x.Kind = v +} + +func (x *TaskQueue) SetNormalName(v string) { + x.NormalName = v +} + +type TaskQueue_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string + // Default: TASK_QUEUE_KIND_NORMAL. + Kind v1.TaskQueueKind + // Iff kind == TASK_QUEUE_KIND_STICKY, then this field contains the name of + // the normal task queue that the sticky worker is running on. + NormalName string +} + +func (b0 TaskQueue_builder) Build() *TaskQueue { + m0 := &TaskQueue{} + b, x := &b0, m0 + _, _ = b, x + x.Name = b.Name + x.Kind = b.Kind + x.NormalName = b.NormalName + return m0 +} + // Only applies to activity task queues type TaskQueueMetadata struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Allows throttling dispatch of tasks from this queue MaxTasksPerSecond *wrapperspb.DoubleValue `protobuf:"bytes,1,opt,name=max_tasks_per_second,json=maxTasksPerSecond,proto3" json:"max_tasks_per_second,omitempty"` unknownFields protoimpl.UnknownFields @@ -126,11 +156,6 @@ func (x *TaskQueueMetadata) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use TaskQueueMetadata.ProtoReflect.Descriptor instead. -func (*TaskQueueMetadata) Descriptor() ([]byte, []int) { - return file_temporal_api_taskqueue_v1_message_proto_rawDescGZIP(), []int{1} -} - func (x *TaskQueueMetadata) GetMaxTasksPerSecond() *wrapperspb.DoubleValue { if x != nil { return x.MaxTasksPerSecond @@ -138,9 +163,39 @@ func (x *TaskQueueMetadata) GetMaxTasksPerSecond() *wrapperspb.DoubleValue { return nil } +func (x *TaskQueueMetadata) SetMaxTasksPerSecond(v *wrapperspb.DoubleValue) { + x.MaxTasksPerSecond = v +} + +func (x *TaskQueueMetadata) HasMaxTasksPerSecond() bool { + if x == nil { + return false + } + return x.MaxTasksPerSecond != nil +} + +func (x *TaskQueueMetadata) ClearMaxTasksPerSecond() { + x.MaxTasksPerSecond = nil +} + +type TaskQueueMetadata_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Allows throttling dispatch of tasks from this queue + MaxTasksPerSecond *wrapperspb.DoubleValue +} + +func (b0 TaskQueueMetadata_builder) Build() *TaskQueueMetadata { + m0 := &TaskQueueMetadata{} + b, x := &b0, m0 + _, _ = b, x + x.MaxTasksPerSecond = b.MaxTasksPerSecond + return m0 +} + // Experimental. Worker Deployments are experimental and might significantly change in the future. type TaskQueueVersioningInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Specifies which Deployment Version should receive new workflow executions and tasks of // existing unversioned or AutoUpgrade workflows. // Nil value represents all the unversioned workers (those with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.) @@ -197,11 +252,6 @@ func (x *TaskQueueVersioningInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use TaskQueueVersioningInfo.ProtoReflect.Descriptor instead. -func (*TaskQueueVersioningInfo) Descriptor() ([]byte, []int) { - return file_temporal_api_taskqueue_v1_message_proto_rawDescGZIP(), []int{2} -} - func (x *TaskQueueVersioningInfo) GetCurrentDeploymentVersion() *v11.WorkerDeploymentVersion { if x != nil { return x.CurrentDeploymentVersion @@ -246,9 +296,113 @@ func (x *TaskQueueVersioningInfo) GetUpdateTime() *timestamppb.Timestamp { return nil } +func (x *TaskQueueVersioningInfo) SetCurrentDeploymentVersion(v *v11.WorkerDeploymentVersion) { + x.CurrentDeploymentVersion = v +} + +// Deprecated: Marked as deprecated in temporal/api/taskqueue/v1/message.proto. +func (x *TaskQueueVersioningInfo) SetCurrentVersion(v string) { + x.CurrentVersion = v +} + +func (x *TaskQueueVersioningInfo) SetRampingDeploymentVersion(v *v11.WorkerDeploymentVersion) { + x.RampingDeploymentVersion = v +} + +// Deprecated: Marked as deprecated in temporal/api/taskqueue/v1/message.proto. +func (x *TaskQueueVersioningInfo) SetRampingVersion(v string) { + x.RampingVersion = v +} + +func (x *TaskQueueVersioningInfo) SetRampingVersionPercentage(v float32) { + x.RampingVersionPercentage = v +} + +func (x *TaskQueueVersioningInfo) SetUpdateTime(v *timestamppb.Timestamp) { + x.UpdateTime = v +} + +func (x *TaskQueueVersioningInfo) HasCurrentDeploymentVersion() bool { + if x == nil { + return false + } + return x.CurrentDeploymentVersion != nil +} + +func (x *TaskQueueVersioningInfo) HasRampingDeploymentVersion() bool { + if x == nil { + return false + } + return x.RampingDeploymentVersion != nil +} + +func (x *TaskQueueVersioningInfo) HasUpdateTime() bool { + if x == nil { + return false + } + return x.UpdateTime != nil +} + +func (x *TaskQueueVersioningInfo) ClearCurrentDeploymentVersion() { + x.CurrentDeploymentVersion = nil +} + +func (x *TaskQueueVersioningInfo) ClearRampingDeploymentVersion() { + x.RampingDeploymentVersion = nil +} + +func (x *TaskQueueVersioningInfo) ClearUpdateTime() { + x.UpdateTime = nil +} + +type TaskQueueVersioningInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Specifies which Deployment Version should receive new workflow executions and tasks of + // existing unversioned or AutoUpgrade workflows. + // Nil value represents all the unversioned workers (those with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.) + // Note: Current Version is overridden by the Ramping Version for a portion of traffic when ramp percentage + // is non-zero (see `ramping_deployment_version` and `ramping_version_percentage`). + CurrentDeploymentVersion *v11.WorkerDeploymentVersion + // Deprecated. Use `current_deployment_version`. + // + // Deprecated: Marked as deprecated in temporal/api/taskqueue/v1/message.proto. + CurrentVersion string + // When ramp percentage is non-zero, that portion of traffic is shifted from the Current Version to the Ramping Version. + // Must always be different from `current_deployment_version` unless both are nil. + // Nil value represents all the unversioned workers (those with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.) + // Note that it is possible to ramp from one Version to another Version, or from unversioned + // workers to a particular Version, or from a particular Version to unversioned workers. + RampingDeploymentVersion *v11.WorkerDeploymentVersion + // Deprecated. Use `ramping_deployment_version`. + // + // Deprecated: Marked as deprecated in temporal/api/taskqueue/v1/message.proto. + RampingVersion string + // Percentage of tasks that are routed to the Ramping Version instead of the Current Version. + // Valid range: [0, 100]. A 100% value means the Ramping Version is receiving full traffic but + // not yet "promoted" to be the Current Version, likely due to pending validations. + // A 0% value means the Ramping Version is receiving no traffic. + RampingVersionPercentage float32 + // Last time versioning information of this Task Queue changed. + UpdateTime *timestamppb.Timestamp +} + +func (b0 TaskQueueVersioningInfo_builder) Build() *TaskQueueVersioningInfo { + m0 := &TaskQueueVersioningInfo{} + b, x := &b0, m0 + _, _ = b, x + x.CurrentDeploymentVersion = b.CurrentDeploymentVersion + x.CurrentVersion = b.CurrentVersion + x.RampingDeploymentVersion = b.RampingDeploymentVersion + x.RampingVersion = b.RampingVersion + x.RampingVersionPercentage = b.RampingVersionPercentage + x.UpdateTime = b.UpdateTime + return m0 +} + // Used for specifying versions the caller is interested in. type TaskQueueVersionSelection struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Include specific Build IDs. BuildIds []string `protobuf:"bytes,1,rep,name=build_ids,json=buildIds,proto3" json:"build_ids,omitempty"` // Include the unversioned queue. @@ -285,11 +439,6 @@ func (x *TaskQueueVersionSelection) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use TaskQueueVersionSelection.ProtoReflect.Descriptor instead. -func (*TaskQueueVersionSelection) Descriptor() ([]byte, []int) { - return file_temporal_api_taskqueue_v1_message_proto_rawDescGZIP(), []int{3} -} - func (x *TaskQueueVersionSelection) GetBuildIds() []string { if x != nil { return x.BuildIds @@ -311,8 +460,42 @@ func (x *TaskQueueVersionSelection) GetAllActive() bool { return false } +func (x *TaskQueueVersionSelection) SetBuildIds(v []string) { + x.BuildIds = v +} + +func (x *TaskQueueVersionSelection) SetUnversioned(v bool) { + x.Unversioned = v +} + +func (x *TaskQueueVersionSelection) SetAllActive(v bool) { + x.AllActive = v +} + +type TaskQueueVersionSelection_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Include specific Build IDs. + BuildIds []string + // Include the unversioned queue. + Unversioned bool + // Include all active versions. A version is considered active if, in the last few minutes, + // it has had new tasks or polls, or it has been the subject of certain task queue API calls. + AllActive bool +} + +func (b0 TaskQueueVersionSelection_builder) Build() *TaskQueueVersionSelection { + m0 := &TaskQueueVersionSelection{} + b, x := &b0, m0 + _, _ = b, x + x.BuildIds = b.BuildIds + x.Unversioned = b.Unversioned + x.AllActive = b.AllActive + return m0 +} + type TaskQueueVersionInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Task Queue info per Task Type. Key is the numerical value of the temporal.api.enums.v1.TaskQueueType enum. TypesInfo map[int32]*TaskQueueTypeInfo `protobuf:"bytes,1,rep,name=types_info,json=typesInfo,proto3" json:"types_info,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` // Task Reachability is eventually consistent; there may be a delay until it converges to the most @@ -354,11 +537,6 @@ func (x *TaskQueueVersionInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use TaskQueueVersionInfo.ProtoReflect.Descriptor instead. -func (*TaskQueueVersionInfo) Descriptor() ([]byte, []int) { - return file_temporal_api_taskqueue_v1_message_proto_rawDescGZIP(), []int{4} -} - func (x *TaskQueueVersionInfo) GetTypesInfo() map[int32]*TaskQueueTypeInfo { if x != nil { return x.TypesInfo @@ -373,8 +551,42 @@ func (x *TaskQueueVersionInfo) GetTaskReachability() v1.BuildIdTaskReachability return v1.BuildIdTaskReachability(0) } +func (x *TaskQueueVersionInfo) SetTypesInfo(v map[int32]*TaskQueueTypeInfo) { + x.TypesInfo = v +} + +func (x *TaskQueueVersionInfo) SetTaskReachability(v v1.BuildIdTaskReachability) { + x.TaskReachability = v +} + +type TaskQueueVersionInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Task Queue info per Task Type. Key is the numerical value of the temporal.api.enums.v1.TaskQueueType enum. + TypesInfo map[int32]*TaskQueueTypeInfo + // Task Reachability is eventually consistent; there may be a delay until it converges to the most + // accurate value but it is designed in a way to take the more conservative side until it converges. + // For example REACHABLE is more conservative than CLOSED_WORKFLOWS_ONLY. + // + // Note: future activities who inherit their workflow's Build ID but not its Task Queue will not be + // accounted for reachability as server cannot know if they'll happen as they do not use + // assignment rules of their Task Queue. Same goes for Child Workflows or Continue-As-New Workflows + // who inherit the parent/previous workflow's Build ID but not its Task Queue. In those cases, make + // sure to query reachability for the parent/previous workflow's Task Queue as well. + TaskReachability v1.BuildIdTaskReachability +} + +func (b0 TaskQueueVersionInfo_builder) Build() *TaskQueueVersionInfo { + m0 := &TaskQueueVersionInfo{} + b, x := &b0, m0 + _, _ = b, x + x.TypesInfo = b.TypesInfo + x.TaskReachability = b.TaskReachability + return m0 +} + type TaskQueueTypeInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Unversioned workers (with `useVersioning=false`) are reported in unversioned result even if they set a Build ID. Pollers []*PollerInfo `protobuf:"bytes,1,rep,name=pollers,proto3" json:"pollers,omitempty"` Stats *TaskQueueStats `protobuf:"bytes,2,opt,name=stats,proto3" json:"stats,omitempty"` @@ -407,11 +619,6 @@ func (x *TaskQueueTypeInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use TaskQueueTypeInfo.ProtoReflect.Descriptor instead. -func (*TaskQueueTypeInfo) Descriptor() ([]byte, []int) { - return file_temporal_api_taskqueue_v1_message_proto_rawDescGZIP(), []int{5} -} - func (x *TaskQueueTypeInfo) GetPollers() []*PollerInfo { if x != nil { return x.Pollers @@ -426,12 +633,48 @@ func (x *TaskQueueTypeInfo) GetStats() *TaskQueueStats { return nil } +func (x *TaskQueueTypeInfo) SetPollers(v []*PollerInfo) { + x.Pollers = v +} + +func (x *TaskQueueTypeInfo) SetStats(v *TaskQueueStats) { + x.Stats = v +} + +func (x *TaskQueueTypeInfo) HasStats() bool { + if x == nil { + return false + } + return x.Stats != nil +} + +func (x *TaskQueueTypeInfo) ClearStats() { + x.Stats = nil +} + +type TaskQueueTypeInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Unversioned workers (with `useVersioning=false`) are reported in unversioned result even if they set a Build ID. + Pollers []*PollerInfo + Stats *TaskQueueStats +} + +func (b0 TaskQueueTypeInfo_builder) Build() *TaskQueueTypeInfo { + m0 := &TaskQueueTypeInfo{} + b, x := &b0, m0 + _, _ = b, x + x.Pollers = b.Pollers + x.Stats = b.Stats + return m0 +} + // TaskQueueStats contains statistics about task queue backlog and activity. // // For workflow task queue type, this result is partial because tasks sent to sticky queues are not included. Read // comments above each metric to understand the impact of sticky queue exclusion on that metric accuracy. type TaskQueueStats struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The approximate number of tasks backlogged in this task queue. May count expired tasks but eventually // converges to the right value. Can be relied upon for scaling decisions. // @@ -505,11 +748,6 @@ func (x *TaskQueueStats) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use TaskQueueStats.ProtoReflect.Descriptor instead. -func (*TaskQueueStats) Descriptor() ([]byte, []int) { - return file_temporal_api_taskqueue_v1_message_proto_rawDescGZIP(), []int{6} -} - func (x *TaskQueueStats) GetApproximateBacklogCount() int64 { if x != nil { return x.ApproximateBacklogCount @@ -538,9 +776,96 @@ func (x *TaskQueueStats) GetTasksDispatchRate() float32 { return 0 } +func (x *TaskQueueStats) SetApproximateBacklogCount(v int64) { + x.ApproximateBacklogCount = v +} + +func (x *TaskQueueStats) SetApproximateBacklogAge(v *durationpb.Duration) { + x.ApproximateBacklogAge = v +} + +func (x *TaskQueueStats) SetTasksAddRate(v float32) { + x.TasksAddRate = v +} + +func (x *TaskQueueStats) SetTasksDispatchRate(v float32) { + x.TasksDispatchRate = v +} + +func (x *TaskQueueStats) HasApproximateBacklogAge() bool { + if x == nil { + return false + } + return x.ApproximateBacklogAge != nil +} + +func (x *TaskQueueStats) ClearApproximateBacklogAge() { + x.ApproximateBacklogAge = nil +} + +type TaskQueueStats_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The approximate number of tasks backlogged in this task queue. May count expired tasks but eventually + // converges to the right value. Can be relied upon for scaling decisions. + // + // Special note for workflow task queue type: this metric does not count sticky queue tasks. However, because + // those tasks only remain valid for a few seconds, the inaccuracy becomes less significant as the backlog size + // grows. + ApproximateBacklogCount int64 + // Approximate age of the oldest task in the backlog based on the creation time of the task at the head of + // the queue. Can be relied upon for scaling decisions. + // + // Special note for workflow task queue type: this metric does not count sticky queue tasks. However, because + // those tasks only remain valid for a few seconds, they should not affect the result when backlog is older than + // few seconds. + ApproximateBacklogAge *durationpb.Duration + // The approximate tasks per second added to the task queue, averaging the last 30 seconds. These includes tasks + // whether or not they were added to/dispatched from the backlog or they were dispatched immediately without going + // to the backlog (sync-matched). + // + // The difference between `tasks_add_rate` and `tasks_dispatch_rate` is a reliable metric for the rate at which + // backlog grows/shrinks. + // + // Note: the actual tasks delivered to the workers may significantly be higher than the numbers reported by + // tasks_add_rate, because: + // - Tasks can be sent to workers without going to the task queue. This is called Eager dispatch. Eager dispatch is + // enable for activities by default in the latest SDKs. + // - Tasks going to Sticky queue are not accounted for. Note that, typically, only the first workflow task of each + // workflow goes to a normal queue, and the rest workflow tasks go to the Sticky queue associated with a specific + // worker instance. + TasksAddRate float32 + // The approximate tasks per second dispatched from the task queue, averaging the last 30 seconds. These includes + // tasks whether or not they were added to/dispatched from the backlog or they were dispatched immediately without + // going to the backlog (sync-matched). + // + // The difference between `tasks_add_rate` and `tasks_dispatch_rate` is a reliable metric for the rate at which + // backlog grows/shrinks. + // + // Note: the actual tasks delivered to the workers may significantly be higher than the numbers reported by + // tasks_dispatch_rate, because: + // - Tasks can be sent to workers without going to the task queue. This is called Eager dispatch. Eager dispatch is + // enable for activities by default in the latest SDKs. + // - Tasks going to Sticky queue are not accounted for. Note that, typically, only the first workflow task of each + // workflow goes to a normal queue, and the rest workflow tasks go to the Sticky queue associated with a specific + // worker instance. + TasksDispatchRate float32 +} + +func (b0 TaskQueueStats_builder) Build() *TaskQueueStats { + m0 := &TaskQueueStats{} + b, x := &b0, m0 + _, _ = b, x + x.ApproximateBacklogCount = b.ApproximateBacklogCount + x.ApproximateBacklogAge = b.ApproximateBacklogAge + x.TasksAddRate = b.TasksAddRate + x.TasksDispatchRate = b.TasksDispatchRate + return m0 +} + // Deprecated. Use `InternalTaskQueueStatus`. This is kept until `DescribeTaskQueue` supports legacy behavior. type TaskQueueStatus struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` BacklogCountHint int64 `protobuf:"varint,1,opt,name=backlog_count_hint,json=backlogCountHint,proto3" json:"backlog_count_hint,omitempty"` ReadLevel int64 `protobuf:"varint,2,opt,name=read_level,json=readLevel,proto3" json:"read_level,omitempty"` AckLevel int64 `protobuf:"varint,3,opt,name=ack_level,json=ackLevel,proto3" json:"ack_level,omitempty"` @@ -575,11 +900,6 @@ func (x *TaskQueueStatus) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use TaskQueueStatus.ProtoReflect.Descriptor instead. -func (*TaskQueueStatus) Descriptor() ([]byte, []int) { - return file_temporal_api_taskqueue_v1_message_proto_rawDescGZIP(), []int{7} -} - func (x *TaskQueueStatus) GetBacklogCountHint() int64 { if x != nil { return x.BacklogCountHint @@ -615,8 +935,61 @@ func (x *TaskQueueStatus) GetTaskIdBlock() *TaskIdBlock { return nil } +func (x *TaskQueueStatus) SetBacklogCountHint(v int64) { + x.BacklogCountHint = v +} + +func (x *TaskQueueStatus) SetReadLevel(v int64) { + x.ReadLevel = v +} + +func (x *TaskQueueStatus) SetAckLevel(v int64) { + x.AckLevel = v +} + +func (x *TaskQueueStatus) SetRatePerSecond(v float64) { + x.RatePerSecond = v +} + +func (x *TaskQueueStatus) SetTaskIdBlock(v *TaskIdBlock) { + x.TaskIdBlock = v +} + +func (x *TaskQueueStatus) HasTaskIdBlock() bool { + if x == nil { + return false + } + return x.TaskIdBlock != nil +} + +func (x *TaskQueueStatus) ClearTaskIdBlock() { + x.TaskIdBlock = nil +} + +type TaskQueueStatus_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + BacklogCountHint int64 + ReadLevel int64 + AckLevel int64 + RatePerSecond float64 + TaskIdBlock *TaskIdBlock +} + +func (b0 TaskQueueStatus_builder) Build() *TaskQueueStatus { + m0 := &TaskQueueStatus{} + b, x := &b0, m0 + _, _ = b, x + x.BacklogCountHint = b.BacklogCountHint + x.ReadLevel = b.ReadLevel + x.AckLevel = b.AckLevel + x.RatePerSecond = b.RatePerSecond + x.TaskIdBlock = b.TaskIdBlock + return m0 +} + type TaskIdBlock struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` StartId int64 `protobuf:"varint,1,opt,name=start_id,json=startId,proto3" json:"start_id,omitempty"` EndId int64 `protobuf:"varint,2,opt,name=end_id,json=endId,proto3" json:"end_id,omitempty"` unknownFields protoimpl.UnknownFields @@ -648,11 +1021,6 @@ func (x *TaskIdBlock) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use TaskIdBlock.ProtoReflect.Descriptor instead. -func (*TaskIdBlock) Descriptor() ([]byte, []int) { - return file_temporal_api_taskqueue_v1_message_proto_rawDescGZIP(), []int{8} -} - func (x *TaskIdBlock) GetStartId() int64 { if x != nil { return x.StartId @@ -667,8 +1035,32 @@ func (x *TaskIdBlock) GetEndId() int64 { return 0 } +func (x *TaskIdBlock) SetStartId(v int64) { + x.StartId = v +} + +func (x *TaskIdBlock) SetEndId(v int64) { + x.EndId = v +} + +type TaskIdBlock_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + StartId int64 + EndId int64 +} + +func (b0 TaskIdBlock_builder) Build() *TaskIdBlock { + m0 := &TaskIdBlock{} + b, x := &b0, m0 + _, _ = b, x + x.StartId = b.StartId + x.EndId = b.EndId + return m0 +} + type TaskQueuePartitionMetadata struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` OwnerHostName string `protobuf:"bytes,2,opt,name=owner_host_name,json=ownerHostName,proto3" json:"owner_host_name,omitempty"` unknownFields protoimpl.UnknownFields @@ -700,11 +1092,6 @@ func (x *TaskQueuePartitionMetadata) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use TaskQueuePartitionMetadata.ProtoReflect.Descriptor instead. -func (*TaskQueuePartitionMetadata) Descriptor() ([]byte, []int) { - return file_temporal_api_taskqueue_v1_message_proto_rawDescGZIP(), []int{9} -} - func (x *TaskQueuePartitionMetadata) GetKey() string { if x != nil { return x.Key @@ -719,8 +1106,32 @@ func (x *TaskQueuePartitionMetadata) GetOwnerHostName() string { return "" } +func (x *TaskQueuePartitionMetadata) SetKey(v string) { + x.Key = v +} + +func (x *TaskQueuePartitionMetadata) SetOwnerHostName(v string) { + x.OwnerHostName = v +} + +type TaskQueuePartitionMetadata_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Key string + OwnerHostName string +} + +func (b0 TaskQueuePartitionMetadata_builder) Build() *TaskQueuePartitionMetadata { + m0 := &TaskQueuePartitionMetadata{} + b, x := &b0, m0 + _, _ = b, x + x.Key = b.Key + x.OwnerHostName = b.OwnerHostName + return m0 +} + type PollerInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` LastAccessTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=last_access_time,json=lastAccessTime,proto3" json:"last_access_time,omitempty"` Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` RatePerSecond float64 `protobuf:"fixed64,3,opt,name=rate_per_second,json=ratePerSecond,proto3" json:"rate_per_second,omitempty"` @@ -761,11 +1172,6 @@ func (x *PollerInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PollerInfo.ProtoReflect.Descriptor instead. -func (*PollerInfo) Descriptor() ([]byte, []int) { - return file_temporal_api_taskqueue_v1_message_proto_rawDescGZIP(), []int{10} -} - func (x *PollerInfo) GetLastAccessTime() *timestamppb.Timestamp { if x != nil { return x.LastAccessTime @@ -802,8 +1208,92 @@ func (x *PollerInfo) GetDeploymentOptions() *v11.WorkerDeploymentOptions { return nil } +func (x *PollerInfo) SetLastAccessTime(v *timestamppb.Timestamp) { + x.LastAccessTime = v +} + +func (x *PollerInfo) SetIdentity(v string) { + x.Identity = v +} + +func (x *PollerInfo) SetRatePerSecond(v float64) { + x.RatePerSecond = v +} + +// Deprecated: Marked as deprecated in temporal/api/taskqueue/v1/message.proto. +func (x *PollerInfo) SetWorkerVersionCapabilities(v *v12.WorkerVersionCapabilities) { + x.WorkerVersionCapabilities = v +} + +func (x *PollerInfo) SetDeploymentOptions(v *v11.WorkerDeploymentOptions) { + x.DeploymentOptions = v +} + +func (x *PollerInfo) HasLastAccessTime() bool { + if x == nil { + return false + } + return x.LastAccessTime != nil +} + +// Deprecated: Marked as deprecated in temporal/api/taskqueue/v1/message.proto. +func (x *PollerInfo) HasWorkerVersionCapabilities() bool { + if x == nil { + return false + } + return x.WorkerVersionCapabilities != nil +} + +func (x *PollerInfo) HasDeploymentOptions() bool { + if x == nil { + return false + } + return x.DeploymentOptions != nil +} + +func (x *PollerInfo) ClearLastAccessTime() { + x.LastAccessTime = nil +} + +// Deprecated: Marked as deprecated in temporal/api/taskqueue/v1/message.proto. +func (x *PollerInfo) ClearWorkerVersionCapabilities() { + x.WorkerVersionCapabilities = nil +} + +func (x *PollerInfo) ClearDeploymentOptions() { + x.DeploymentOptions = nil +} + +type PollerInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + LastAccessTime *timestamppb.Timestamp + Identity string + RatePerSecond float64 + // If a worker has opted into the worker versioning feature while polling, its capabilities will + // appear here. + // Deprecated. Replaced by deployment_options. + // + // Deprecated: Marked as deprecated in temporal/api/taskqueue/v1/message.proto. + WorkerVersionCapabilities *v12.WorkerVersionCapabilities + // Worker deployment options that SDK sent to server. + DeploymentOptions *v11.WorkerDeploymentOptions +} + +func (b0 PollerInfo_builder) Build() *PollerInfo { + m0 := &PollerInfo{} + b, x := &b0, m0 + _, _ = b, x + x.LastAccessTime = b.LastAccessTime + x.Identity = b.Identity + x.RatePerSecond = b.RatePerSecond + x.WorkerVersionCapabilities = b.WorkerVersionCapabilities + x.DeploymentOptions = b.DeploymentOptions + return m0 +} + type StickyExecutionAttributes struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` WorkerTaskQueue *TaskQueue `protobuf:"bytes,1,opt,name=worker_task_queue,json=workerTaskQueue,proto3" json:"worker_task_queue,omitempty"` // (-- api-linter: core::0140::prepositions=disabled // @@ -838,11 +1328,6 @@ func (x *StickyExecutionAttributes) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use StickyExecutionAttributes.ProtoReflect.Descriptor instead. -func (*StickyExecutionAttributes) Descriptor() ([]byte, []int) { - return file_temporal_api_taskqueue_v1_message_proto_rawDescGZIP(), []int{11} -} - func (x *StickyExecutionAttributes) GetWorkerTaskQueue() *TaskQueue { if x != nil { return x.WorkerTaskQueue @@ -850,17 +1335,66 @@ func (x *StickyExecutionAttributes) GetWorkerTaskQueue() *TaskQueue { return nil } -func (x *StickyExecutionAttributes) GetScheduleToStartTimeout() *durationpb.Duration { - if x != nil { - return x.ScheduleToStartTimeout - } - return nil +func (x *StickyExecutionAttributes) GetScheduleToStartTimeout() *durationpb.Duration { + if x != nil { + return x.ScheduleToStartTimeout + } + return nil +} + +func (x *StickyExecutionAttributes) SetWorkerTaskQueue(v *TaskQueue) { + x.WorkerTaskQueue = v +} + +func (x *StickyExecutionAttributes) SetScheduleToStartTimeout(v *durationpb.Duration) { + x.ScheduleToStartTimeout = v +} + +func (x *StickyExecutionAttributes) HasWorkerTaskQueue() bool { + if x == nil { + return false + } + return x.WorkerTaskQueue != nil +} + +func (x *StickyExecutionAttributes) HasScheduleToStartTimeout() bool { + if x == nil { + return false + } + return x.ScheduleToStartTimeout != nil +} + +func (x *StickyExecutionAttributes) ClearWorkerTaskQueue() { + x.WorkerTaskQueue = nil +} + +func (x *StickyExecutionAttributes) ClearScheduleToStartTimeout() { + x.ScheduleToStartTimeout = nil +} + +type StickyExecutionAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + WorkerTaskQueue *TaskQueue + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + ScheduleToStartTimeout *durationpb.Duration +} + +func (b0 StickyExecutionAttributes_builder) Build() *StickyExecutionAttributes { + m0 := &StickyExecutionAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.WorkerTaskQueue = b.WorkerTaskQueue + x.ScheduleToStartTimeout = b.ScheduleToStartTimeout + return m0 } // Used by the worker versioning APIs, represents an unordered set of one or more versions which are // considered to be compatible with each other. Currently the versions are always worker build IDs. type CompatibleVersionSet struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // All the compatible versions, unordered, except for the last element, which is considered the set "default". BuildIds []string `protobuf:"bytes,1,rep,name=build_ids,json=buildIds,proto3" json:"build_ids,omitempty"` unknownFields protoimpl.UnknownFields @@ -892,11 +1426,6 @@ func (x *CompatibleVersionSet) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CompatibleVersionSet.ProtoReflect.Descriptor instead. -func (*CompatibleVersionSet) Descriptor() ([]byte, []int) { - return file_temporal_api_taskqueue_v1_message_proto_rawDescGZIP(), []int{12} -} - func (x *CompatibleVersionSet) GetBuildIds() []string { if x != nil { return x.BuildIds @@ -904,9 +1433,28 @@ func (x *CompatibleVersionSet) GetBuildIds() []string { return nil } +func (x *CompatibleVersionSet) SetBuildIds(v []string) { + x.BuildIds = v +} + +type CompatibleVersionSet_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // All the compatible versions, unordered, except for the last element, which is considered the set "default". + BuildIds []string +} + +func (b0 CompatibleVersionSet_builder) Build() *CompatibleVersionSet { + m0 := &CompatibleVersionSet{} + b, x := &b0, m0 + _, _ = b, x + x.BuildIds = b.BuildIds + return m0 +} + // Reachability of tasks for a worker on a single task queue. type TaskQueueReachability struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` TaskQueue string `protobuf:"bytes,1,opt,name=task_queue,json=taskQueue,proto3" json:"task_queue,omitempty"` // Task reachability for a worker in a single task queue. // See the TaskReachability docstring for information about each enum variant. @@ -941,11 +1489,6 @@ func (x *TaskQueueReachability) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use TaskQueueReachability.ProtoReflect.Descriptor instead. -func (*TaskQueueReachability) Descriptor() ([]byte, []int) { - return file_temporal_api_taskqueue_v1_message_proto_rawDescGZIP(), []int{13} -} - func (x *TaskQueueReachability) GetTaskQueue() string { if x != nil { return x.TaskQueue @@ -960,9 +1503,36 @@ func (x *TaskQueueReachability) GetReachability() []v1.TaskReachability { return nil } +func (x *TaskQueueReachability) SetTaskQueue(v string) { + x.TaskQueue = v +} + +func (x *TaskQueueReachability) SetReachability(v []v1.TaskReachability) { + x.Reachability = v +} + +type TaskQueueReachability_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + TaskQueue string + // Task reachability for a worker in a single task queue. + // See the TaskReachability docstring for information about each enum variant. + // If reachability is empty, this worker is considered unreachable in this task queue. + Reachability []v1.TaskReachability +} + +func (b0 TaskQueueReachability_builder) Build() *TaskQueueReachability { + m0 := &TaskQueueReachability{} + b, x := &b0, m0 + _, _ = b, x + x.TaskQueue = b.TaskQueue + x.Reachability = b.Reachability + return m0 +} + // Reachability of tasks for a worker by build id, in one or more task queues. type BuildIdReachability struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // A build id or empty if unversioned. BuildId string `protobuf:"bytes,1,opt,name=build_id,json=buildId,proto3" json:"build_id,omitempty"` // Reachability per task queue. @@ -996,11 +1566,6 @@ func (x *BuildIdReachability) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use BuildIdReachability.ProtoReflect.Descriptor instead. -func (*BuildIdReachability) Descriptor() ([]byte, []int) { - return file_temporal_api_taskqueue_v1_message_proto_rawDescGZIP(), []int{14} -} - func (x *BuildIdReachability) GetBuildId() string { if x != nil { return x.BuildId @@ -1015,8 +1580,34 @@ func (x *BuildIdReachability) GetTaskQueueReachability() []*TaskQueueReachabilit return nil } +func (x *BuildIdReachability) SetBuildId(v string) { + x.BuildId = v +} + +func (x *BuildIdReachability) SetTaskQueueReachability(v []*TaskQueueReachability) { + x.TaskQueueReachability = v +} + +type BuildIdReachability_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // A build id or empty if unversioned. + BuildId string + // Reachability per task queue. + TaskQueueReachability []*TaskQueueReachability +} + +func (b0 BuildIdReachability_builder) Build() *BuildIdReachability { + m0 := &BuildIdReachability{} + b, x := &b0, m0 + _, _ = b, x + x.BuildId = b.BuildId + x.TaskQueueReachability = b.TaskQueueReachability + return m0 +} + type RampByPercentage struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Acceptable range is [0,100). RampPercentage float32 `protobuf:"fixed32,1,opt,name=ramp_percentage,json=rampPercentage,proto3" json:"ramp_percentage,omitempty"` unknownFields protoimpl.UnknownFields @@ -1048,11 +1639,6 @@ func (x *RampByPercentage) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RampByPercentage.ProtoReflect.Descriptor instead. -func (*RampByPercentage) Descriptor() ([]byte, []int) { - return file_temporal_api_taskqueue_v1_message_proto_rawDescGZIP(), []int{15} -} - func (x *RampByPercentage) GetRampPercentage() float32 { if x != nil { return x.RampPercentage @@ -1060,6 +1646,25 @@ func (x *RampByPercentage) GetRampPercentage() float32 { return 0 } +func (x *RampByPercentage) SetRampPercentage(v float32) { + x.RampPercentage = v +} + +type RampByPercentage_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Acceptable range is [0,100). + RampPercentage float32 +} + +func (b0 RampByPercentage_builder) Build() *RampByPercentage { + m0 := &RampByPercentage{} + b, x := &b0, m0 + _, _ = b, x + x.RampPercentage = b.RampPercentage + return m0 +} + // Assignment rules are applied to *new* Workflow and Activity executions at // schedule time to assign them to a Build ID. // @@ -1098,7 +1703,7 @@ func (x *RampByPercentage) GetRampPercentage() float32 { // Queue is simply not versioned), the tasks will be dispatched to an // unversioned Worker. type BuildIdAssignmentRule struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` TargetBuildId string `protobuf:"bytes,1,opt,name=target_build_id,json=targetBuildId,proto3" json:"target_build_id,omitempty"` // If a ramp is provided, this rule will be applied only to a sample of // tasks according to the provided percentage. @@ -1138,11 +1743,6 @@ func (x *BuildIdAssignmentRule) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use BuildIdAssignmentRule.ProtoReflect.Descriptor instead. -func (*BuildIdAssignmentRule) Descriptor() ([]byte, []int) { - return file_temporal_api_taskqueue_v1_message_proto_rawDescGZIP(), []int{16} -} - func (x *BuildIdAssignmentRule) GetTargetBuildId() string { if x != nil { return x.TargetBuildId @@ -1166,6 +1766,100 @@ func (x *BuildIdAssignmentRule) GetPercentageRamp() *RampByPercentage { return nil } +func (x *BuildIdAssignmentRule) SetTargetBuildId(v string) { + x.TargetBuildId = v +} + +func (x *BuildIdAssignmentRule) SetPercentageRamp(v *RampByPercentage) { + if v == nil { + x.Ramp = nil + return + } + x.Ramp = &BuildIdAssignmentRule_PercentageRamp{v} +} + +func (x *BuildIdAssignmentRule) HasRamp() bool { + if x == nil { + return false + } + return x.Ramp != nil +} + +func (x *BuildIdAssignmentRule) HasPercentageRamp() bool { + if x == nil { + return false + } + _, ok := x.Ramp.(*BuildIdAssignmentRule_PercentageRamp) + return ok +} + +func (x *BuildIdAssignmentRule) ClearRamp() { + x.Ramp = nil +} + +func (x *BuildIdAssignmentRule) ClearPercentageRamp() { + if _, ok := x.Ramp.(*BuildIdAssignmentRule_PercentageRamp); ok { + x.Ramp = nil + } +} + +const BuildIdAssignmentRule_Ramp_not_set_case case_BuildIdAssignmentRule_Ramp = 0 +const BuildIdAssignmentRule_PercentageRamp_case case_BuildIdAssignmentRule_Ramp = 3 + +func (x *BuildIdAssignmentRule) WhichRamp() case_BuildIdAssignmentRule_Ramp { + if x == nil { + return BuildIdAssignmentRule_Ramp_not_set_case + } + switch x.Ramp.(type) { + case *BuildIdAssignmentRule_PercentageRamp: + return BuildIdAssignmentRule_PercentageRamp_case + default: + return BuildIdAssignmentRule_Ramp_not_set_case + } +} + +type BuildIdAssignmentRule_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + TargetBuildId string + // If a ramp is provided, this rule will be applied only to a sample of + // tasks according to the provided percentage. + // This option can be used only on "terminal" Build IDs (the ones not used + // as source in any redirect rules). + + // Fields of oneof Ramp: + // This ramp is useful for gradual Blue/Green deployments (and similar) + // where you want to send a certain portion of the traffic to the target + // Build ID. + PercentageRamp *RampByPercentage + // -- end of Ramp +} + +func (b0 BuildIdAssignmentRule_builder) Build() *BuildIdAssignmentRule { + m0 := &BuildIdAssignmentRule{} + b, x := &b0, m0 + _, _ = b, x + x.TargetBuildId = b.TargetBuildId + if b.PercentageRamp != nil { + x.Ramp = &BuildIdAssignmentRule_PercentageRamp{b.PercentageRamp} + } + return m0 +} + +type case_BuildIdAssignmentRule_Ramp protoreflect.FieldNumber + +func (x case_BuildIdAssignmentRule_Ramp) String() string { + switch x { + case BuildIdAssignmentRule_Ramp_not_set_case: + return "BuildIdAssignmentRuleRampNotSetCase" + case BuildIdAssignmentRule_PercentageRamp_case: + return "BuildIdAssignmentRulePercentageRampCase" + default: + return strconv.Itoa(int(x)) + } + +} + type isBuildIdAssignmentRule_Ramp interface { isBuildIdAssignmentRule_Ramp() } @@ -1200,7 +1894,7 @@ func (*BuildIdAssignmentRule_PercentageRamp) isBuildIdAssignmentRule_Ramp() {} // // Redirect rules can be chained. type CompatibleBuildIdRedirectRule struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` SourceBuildId string `protobuf:"bytes,1,opt,name=source_build_id,json=sourceBuildId,proto3" json:"source_build_id,omitempty"` // Target Build ID must be compatible with the Source Build ID; that is it // must be able to process event histories made by the Source Build ID by @@ -1236,11 +1930,6 @@ func (x *CompatibleBuildIdRedirectRule) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CompatibleBuildIdRedirectRule.ProtoReflect.Descriptor instead. -func (*CompatibleBuildIdRedirectRule) Descriptor() ([]byte, []int) { - return file_temporal_api_taskqueue_v1_message_proto_rawDescGZIP(), []int{17} -} - func (x *CompatibleBuildIdRedirectRule) GetSourceBuildId() string { if x != nil { return x.SourceBuildId @@ -1255,8 +1944,36 @@ func (x *CompatibleBuildIdRedirectRule) GetTargetBuildId() string { return "" } +func (x *CompatibleBuildIdRedirectRule) SetSourceBuildId(v string) { + x.SourceBuildId = v +} + +func (x *CompatibleBuildIdRedirectRule) SetTargetBuildId(v string) { + x.TargetBuildId = v +} + +type CompatibleBuildIdRedirectRule_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + SourceBuildId string + // Target Build ID must be compatible with the Source Build ID; that is it + // must be able to process event histories made by the Source Build ID by + // using [Patching](https://docs.temporal.io/workflows#patching) or other + // means. + TargetBuildId string +} + +func (b0 CompatibleBuildIdRedirectRule_builder) Build() *CompatibleBuildIdRedirectRule { + m0 := &CompatibleBuildIdRedirectRule{} + b, x := &b0, m0 + _, _ = b, x + x.SourceBuildId = b.SourceBuildId + x.TargetBuildId = b.TargetBuildId + return m0 +} + type TimestampedBuildIdAssignmentRule struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Rule *BuildIdAssignmentRule `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"` CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` unknownFields protoimpl.UnknownFields @@ -1288,11 +2005,6 @@ func (x *TimestampedBuildIdAssignmentRule) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use TimestampedBuildIdAssignmentRule.ProtoReflect.Descriptor instead. -func (*TimestampedBuildIdAssignmentRule) Descriptor() ([]byte, []int) { - return file_temporal_api_taskqueue_v1_message_proto_rawDescGZIP(), []int{18} -} - func (x *TimestampedBuildIdAssignmentRule) GetRule() *BuildIdAssignmentRule { if x != nil { return x.Rule @@ -1307,8 +2019,54 @@ func (x *TimestampedBuildIdAssignmentRule) GetCreateTime() *timestamppb.Timestam return nil } +func (x *TimestampedBuildIdAssignmentRule) SetRule(v *BuildIdAssignmentRule) { + x.Rule = v +} + +func (x *TimestampedBuildIdAssignmentRule) SetCreateTime(v *timestamppb.Timestamp) { + x.CreateTime = v +} + +func (x *TimestampedBuildIdAssignmentRule) HasRule() bool { + if x == nil { + return false + } + return x.Rule != nil +} + +func (x *TimestampedBuildIdAssignmentRule) HasCreateTime() bool { + if x == nil { + return false + } + return x.CreateTime != nil +} + +func (x *TimestampedBuildIdAssignmentRule) ClearRule() { + x.Rule = nil +} + +func (x *TimestampedBuildIdAssignmentRule) ClearCreateTime() { + x.CreateTime = nil +} + +type TimestampedBuildIdAssignmentRule_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Rule *BuildIdAssignmentRule + CreateTime *timestamppb.Timestamp +} + +func (b0 TimestampedBuildIdAssignmentRule_builder) Build() *TimestampedBuildIdAssignmentRule { + m0 := &TimestampedBuildIdAssignmentRule{} + b, x := &b0, m0 + _, _ = b, x + x.Rule = b.Rule + x.CreateTime = b.CreateTime + return m0 +} + type TimestampedCompatibleBuildIdRedirectRule struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Rule *CompatibleBuildIdRedirectRule `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"` CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` unknownFields protoimpl.UnknownFields @@ -1340,11 +2098,6 @@ func (x *TimestampedCompatibleBuildIdRedirectRule) ProtoReflect() protoreflect.M return mi.MessageOf(x) } -// Deprecated: Use TimestampedCompatibleBuildIdRedirectRule.ProtoReflect.Descriptor instead. -func (*TimestampedCompatibleBuildIdRedirectRule) Descriptor() ([]byte, []int) { - return file_temporal_api_taskqueue_v1_message_proto_rawDescGZIP(), []int{19} -} - func (x *TimestampedCompatibleBuildIdRedirectRule) GetRule() *CompatibleBuildIdRedirectRule { if x != nil { return x.Rule @@ -1359,10 +2112,56 @@ func (x *TimestampedCompatibleBuildIdRedirectRule) GetCreateTime() *timestamppb. return nil } +func (x *TimestampedCompatibleBuildIdRedirectRule) SetRule(v *CompatibleBuildIdRedirectRule) { + x.Rule = v +} + +func (x *TimestampedCompatibleBuildIdRedirectRule) SetCreateTime(v *timestamppb.Timestamp) { + x.CreateTime = v +} + +func (x *TimestampedCompatibleBuildIdRedirectRule) HasRule() bool { + if x == nil { + return false + } + return x.Rule != nil +} + +func (x *TimestampedCompatibleBuildIdRedirectRule) HasCreateTime() bool { + if x == nil { + return false + } + return x.CreateTime != nil +} + +func (x *TimestampedCompatibleBuildIdRedirectRule) ClearRule() { + x.Rule = nil +} + +func (x *TimestampedCompatibleBuildIdRedirectRule) ClearCreateTime() { + x.CreateTime = nil +} + +type TimestampedCompatibleBuildIdRedirectRule_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Rule *CompatibleBuildIdRedirectRule + CreateTime *timestamppb.Timestamp +} + +func (b0 TimestampedCompatibleBuildIdRedirectRule_builder) Build() *TimestampedCompatibleBuildIdRedirectRule { + m0 := &TimestampedCompatibleBuildIdRedirectRule{} + b, x := &b0, m0 + _, _ = b, x + x.Rule = b.Rule + x.CreateTime = b.CreateTime + return m0 +} + // Attached to task responses to give hints to the SDK about how it may adjust its number of // pollers. type PollerScalingDecision struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // How many poll requests to suggest should be added or removed, if any. As of now, server only // scales up or down by 1. However, SDKs should allow for other values (while staying within // defined min/max). @@ -1399,11 +2198,6 @@ func (x *PollerScalingDecision) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PollerScalingDecision.ProtoReflect.Descriptor instead. -func (*PollerScalingDecision) Descriptor() ([]byte, []int) { - return file_temporal_api_taskqueue_v1_message_proto_rawDescGZIP(), []int{20} -} - func (x *PollerScalingDecision) GetPollRequestDeltaSuggestion() int32 { if x != nil { return x.PollRequestDeltaSuggestion @@ -1411,8 +2205,32 @@ func (x *PollerScalingDecision) GetPollRequestDeltaSuggestion() int32 { return 0 } +func (x *PollerScalingDecision) SetPollRequestDeltaSuggestion(v int32) { + x.PollRequestDeltaSuggestion = v +} + +type PollerScalingDecision_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // How many poll requests to suggest should be added or removed, if any. As of now, server only + // scales up or down by 1. However, SDKs should allow for other values (while staying within + // defined min/max). + // + // The SDK is free to ignore this suggestion, EX: making more polls would not make sense because + // all slots are already occupied. + PollRequestDeltaSuggestion int32 +} + +func (b0 PollerScalingDecision_builder) Build() *PollerScalingDecision { + m0 := &PollerScalingDecision{} + b, x := &b0, m0 + _, _ = b, x + x.PollRequestDeltaSuggestion = b.PollRequestDeltaSuggestion + return m0 +} + type RateLimit struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Zero is a valid rate limit. RequestsPerSecond float32 `protobuf:"fixed32,1,opt,name=requests_per_second,json=requestsPerSecond,proto3" json:"requests_per_second,omitempty"` unknownFields protoimpl.UnknownFields @@ -1444,11 +2262,6 @@ func (x *RateLimit) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RateLimit.ProtoReflect.Descriptor instead. -func (*RateLimit) Descriptor() ([]byte, []int) { - return file_temporal_api_taskqueue_v1_message_proto_rawDescGZIP(), []int{21} -} - func (x *RateLimit) GetRequestsPerSecond() float32 { if x != nil { return x.RequestsPerSecond @@ -1456,8 +2269,27 @@ func (x *RateLimit) GetRequestsPerSecond() float32 { return 0 } +func (x *RateLimit) SetRequestsPerSecond(v float32) { + x.RequestsPerSecond = v +} + +type RateLimit_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Zero is a valid rate limit. + RequestsPerSecond float32 +} + +func (b0 RateLimit_builder) Build() *RateLimit { + m0 := &RateLimit{} + b, x := &b0, m0 + _, _ = b, x + x.RequestsPerSecond = b.RequestsPerSecond + return m0 +} + type ConfigMetadata struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Reason for why the config was set. Reason string `protobuf:"bytes,1,opt,name=reason,proto3" json:"reason,omitempty"` // Identity of the last updater. @@ -1494,11 +2326,6 @@ func (x *ConfigMetadata) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ConfigMetadata.ProtoReflect.Descriptor instead. -func (*ConfigMetadata) Descriptor() ([]byte, []int) { - return file_temporal_api_taskqueue_v1_message_proto_rawDescGZIP(), []int{22} -} - func (x *ConfigMetadata) GetReason() string { if x != nil { return x.Reason @@ -1520,8 +2347,53 @@ func (x *ConfigMetadata) GetUpdateTime() *timestamppb.Timestamp { return nil } +func (x *ConfigMetadata) SetReason(v string) { + x.Reason = v +} + +func (x *ConfigMetadata) SetUpdateIdentity(v string) { + x.UpdateIdentity = v +} + +func (x *ConfigMetadata) SetUpdateTime(v *timestamppb.Timestamp) { + x.UpdateTime = v +} + +func (x *ConfigMetadata) HasUpdateTime() bool { + if x == nil { + return false + } + return x.UpdateTime != nil +} + +func (x *ConfigMetadata) ClearUpdateTime() { + x.UpdateTime = nil +} + +type ConfigMetadata_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Reason for why the config was set. + Reason string + // Identity of the last updater. + // Set by the request's identity field. + UpdateIdentity string + // Time of the last update. + UpdateTime *timestamppb.Timestamp +} + +func (b0 ConfigMetadata_builder) Build() *ConfigMetadata { + m0 := &ConfigMetadata{} + b, x := &b0, m0 + _, _ = b, x + x.Reason = b.Reason + x.UpdateIdentity = b.UpdateIdentity + x.UpdateTime = b.UpdateTime + return m0 +} + type RateLimitConfig struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` RateLimit *RateLimit `protobuf:"bytes,1,opt,name=rate_limit,json=rateLimit,proto3" json:"rate_limit,omitempty"` Metadata *ConfigMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` unknownFields protoimpl.UnknownFields @@ -1553,11 +2425,6 @@ func (x *RateLimitConfig) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RateLimitConfig.ProtoReflect.Descriptor instead. -func (*RateLimitConfig) Descriptor() ([]byte, []int) { - return file_temporal_api_taskqueue_v1_message_proto_rawDescGZIP(), []int{23} -} - func (x *RateLimitConfig) GetRateLimit() *RateLimit { if x != nil { return x.RateLimit @@ -1572,8 +2439,54 @@ func (x *RateLimitConfig) GetMetadata() *ConfigMetadata { return nil } +func (x *RateLimitConfig) SetRateLimit(v *RateLimit) { + x.RateLimit = v +} + +func (x *RateLimitConfig) SetMetadata(v *ConfigMetadata) { + x.Metadata = v +} + +func (x *RateLimitConfig) HasRateLimit() bool { + if x == nil { + return false + } + return x.RateLimit != nil +} + +func (x *RateLimitConfig) HasMetadata() bool { + if x == nil { + return false + } + return x.Metadata != nil +} + +func (x *RateLimitConfig) ClearRateLimit() { + x.RateLimit = nil +} + +func (x *RateLimitConfig) ClearMetadata() { + x.Metadata = nil +} + +type RateLimitConfig_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + RateLimit *RateLimit + Metadata *ConfigMetadata +} + +func (b0 RateLimitConfig_builder) Build() *RateLimitConfig { + m0 := &RateLimitConfig{} + b, x := &b0, m0 + _, _ = b, x + x.RateLimit = b.RateLimit + x.Metadata = b.Metadata + return m0 +} + type TaskQueueConfig struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Unless modified, this is the system-defined rate limit. QueueRateLimit *RateLimitConfig `protobuf:"bytes,1,opt,name=queue_rate_limit,json=queueRateLimit,proto3" json:"queue_rate_limit,omitempty"` // If set, each individual fairness key will be limited to this rate, scaled by the weight of the fairness key. @@ -1609,11 +2522,6 @@ func (x *TaskQueueConfig) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use TaskQueueConfig.ProtoReflect.Descriptor instead. -func (*TaskQueueConfig) Descriptor() ([]byte, []int) { - return file_temporal_api_taskqueue_v1_message_proto_rawDescGZIP(), []int{24} -} - func (x *TaskQueueConfig) GetQueueRateLimit() *RateLimitConfig { if x != nil { return x.QueueRateLimit @@ -1635,6 +2543,61 @@ func (x *TaskQueueConfig) GetFairnessWeightOverrides() map[string]float32 { return nil } +func (x *TaskQueueConfig) SetQueueRateLimit(v *RateLimitConfig) { + x.QueueRateLimit = v +} + +func (x *TaskQueueConfig) SetFairnessKeysRateLimitDefault(v *RateLimitConfig) { + x.FairnessKeysRateLimitDefault = v +} + +func (x *TaskQueueConfig) SetFairnessWeightOverrides(v map[string]float32) { + x.FairnessWeightOverrides = v +} + +func (x *TaskQueueConfig) HasQueueRateLimit() bool { + if x == nil { + return false + } + return x.QueueRateLimit != nil +} + +func (x *TaskQueueConfig) HasFairnessKeysRateLimitDefault() bool { + if x == nil { + return false + } + return x.FairnessKeysRateLimitDefault != nil +} + +func (x *TaskQueueConfig) ClearQueueRateLimit() { + x.QueueRateLimit = nil +} + +func (x *TaskQueueConfig) ClearFairnessKeysRateLimitDefault() { + x.FairnessKeysRateLimitDefault = nil +} + +type TaskQueueConfig_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Unless modified, this is the system-defined rate limit. + QueueRateLimit *RateLimitConfig + // If set, each individual fairness key will be limited to this rate, scaled by the weight of the fairness key. + FairnessKeysRateLimitDefault *RateLimitConfig + // If set, overrides the fairness weights for the corresponding fairness keys. + FairnessWeightOverrides map[string]float32 +} + +func (b0 TaskQueueConfig_builder) Build() *TaskQueueConfig { + m0 := &TaskQueueConfig{} + b, x := &b0, m0 + _, _ = b, x + x.QueueRateLimit = b.QueueRateLimit + x.FairnessKeysRateLimitDefault = b.FairnessKeysRateLimitDefault + x.FairnessWeightOverrides = b.FairnessWeightOverrides + return m0 +} + var File_temporal_api_taskqueue_v1_message_proto protoreflect.FileDescriptor const file_temporal_api_taskqueue_v1_message_proto_rawDesc = "" + @@ -1746,18 +2709,6 @@ const file_temporal_api_taskqueue_v1_message_proto_rawDesc = "" + "\x05value\x18\x02 \x01(\x02R\x05value:\x028\x01B\x98\x01\n" + "\x1cio.temporal.api.taskqueue.v1B\fMessageProtoP\x01Z)go.temporal.io/api/taskqueue/v1;taskqueue\xaa\x02\x1bTemporalio.Api.TaskQueue.V1\xea\x02\x1eTemporalio::Api::TaskQueue::V1b\x06proto3" -var ( - file_temporal_api_taskqueue_v1_message_proto_rawDescOnce sync.Once - file_temporal_api_taskqueue_v1_message_proto_rawDescData []byte -) - -func file_temporal_api_taskqueue_v1_message_proto_rawDescGZIP() []byte { - file_temporal_api_taskqueue_v1_message_proto_rawDescOnce.Do(func() { - file_temporal_api_taskqueue_v1_message_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_api_taskqueue_v1_message_proto_rawDesc), len(file_temporal_api_taskqueue_v1_message_proto_rawDesc))) - }) - return file_temporal_api_taskqueue_v1_message_proto_rawDescData -} - var file_temporal_api_taskqueue_v1_message_proto_msgTypes = make([]protoimpl.MessageInfo, 27) var file_temporal_api_taskqueue_v1_message_proto_goTypes = []any{ (*TaskQueue)(nil), // 0: temporal.api.taskqueue.v1.TaskQueue diff --git a/taskqueue/v1/message_protoopaque.pb.go b/taskqueue/v1/message_protoopaque.pb.go new file mode 100644 index 00000000..34932cd0 --- /dev/null +++ b/taskqueue/v1/message_protoopaque.pb.go @@ -0,0 +1,2689 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// plugins: +// protoc-gen-go +// protoc +// source: temporal/api/taskqueue/v1/message.proto + +//go:build protoopaque + +package taskqueue + +import ( + reflect "reflect" + "strconv" + unsafe "unsafe" + + v12 "go.temporal.io/api/common/v1" + v11 "go.temporal.io/api/deployment/v1" + v1 "go.temporal.io/api/enums/v1" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + durationpb "google.golang.org/protobuf/types/known/durationpb" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// See https://docs.temporal.io/docs/concepts/task-queues/ +type TaskQueue struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Name string `protobuf:"bytes,1,opt,name=name,proto3"` + xxx_hidden_Kind v1.TaskQueueKind `protobuf:"varint,2,opt,name=kind,proto3,enum=temporal.api.enums.v1.TaskQueueKind"` + xxx_hidden_NormalName string `protobuf:"bytes,3,opt,name=normal_name,json=normalName,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TaskQueue) Reset() { + *x = TaskQueue{} + mi := &file_temporal_api_taskqueue_v1_message_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TaskQueue) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TaskQueue) ProtoMessage() {} + +func (x *TaskQueue) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_taskqueue_v1_message_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *TaskQueue) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *TaskQueue) GetKind() v1.TaskQueueKind { + if x != nil { + return x.xxx_hidden_Kind + } + return v1.TaskQueueKind(0) +} + +func (x *TaskQueue) GetNormalName() string { + if x != nil { + return x.xxx_hidden_NormalName + } + return "" +} + +func (x *TaskQueue) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *TaskQueue) SetKind(v v1.TaskQueueKind) { + x.xxx_hidden_Kind = v +} + +func (x *TaskQueue) SetNormalName(v string) { + x.xxx_hidden_NormalName = v +} + +type TaskQueue_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string + // Default: TASK_QUEUE_KIND_NORMAL. + Kind v1.TaskQueueKind + // Iff kind == TASK_QUEUE_KIND_STICKY, then this field contains the name of + // the normal task queue that the sticky worker is running on. + NormalName string +} + +func (b0 TaskQueue_builder) Build() *TaskQueue { + m0 := &TaskQueue{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Name = b.Name + x.xxx_hidden_Kind = b.Kind + x.xxx_hidden_NormalName = b.NormalName + return m0 +} + +// Only applies to activity task queues +type TaskQueueMetadata struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_MaxTasksPerSecond *wrapperspb.DoubleValue `protobuf:"bytes,1,opt,name=max_tasks_per_second,json=maxTasksPerSecond,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TaskQueueMetadata) Reset() { + *x = TaskQueueMetadata{} + mi := &file_temporal_api_taskqueue_v1_message_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TaskQueueMetadata) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TaskQueueMetadata) ProtoMessage() {} + +func (x *TaskQueueMetadata) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_taskqueue_v1_message_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *TaskQueueMetadata) GetMaxTasksPerSecond() *wrapperspb.DoubleValue { + if x != nil { + return x.xxx_hidden_MaxTasksPerSecond + } + return nil +} + +func (x *TaskQueueMetadata) SetMaxTasksPerSecond(v *wrapperspb.DoubleValue) { + x.xxx_hidden_MaxTasksPerSecond = v +} + +func (x *TaskQueueMetadata) HasMaxTasksPerSecond() bool { + if x == nil { + return false + } + return x.xxx_hidden_MaxTasksPerSecond != nil +} + +func (x *TaskQueueMetadata) ClearMaxTasksPerSecond() { + x.xxx_hidden_MaxTasksPerSecond = nil +} + +type TaskQueueMetadata_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Allows throttling dispatch of tasks from this queue + MaxTasksPerSecond *wrapperspb.DoubleValue +} + +func (b0 TaskQueueMetadata_builder) Build() *TaskQueueMetadata { + m0 := &TaskQueueMetadata{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_MaxTasksPerSecond = b.MaxTasksPerSecond + return m0 +} + +// Experimental. Worker Deployments are experimental and might significantly change in the future. +type TaskQueueVersioningInfo struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_CurrentDeploymentVersion *v11.WorkerDeploymentVersion `protobuf:"bytes,7,opt,name=current_deployment_version,json=currentDeploymentVersion,proto3"` + xxx_hidden_CurrentVersion string `protobuf:"bytes,1,opt,name=current_version,json=currentVersion,proto3"` + xxx_hidden_RampingDeploymentVersion *v11.WorkerDeploymentVersion `protobuf:"bytes,9,opt,name=ramping_deployment_version,json=rampingDeploymentVersion,proto3"` + xxx_hidden_RampingVersion string `protobuf:"bytes,2,opt,name=ramping_version,json=rampingVersion,proto3"` + xxx_hidden_RampingVersionPercentage float32 `protobuf:"fixed32,3,opt,name=ramping_version_percentage,json=rampingVersionPercentage,proto3"` + xxx_hidden_UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TaskQueueVersioningInfo) Reset() { + *x = TaskQueueVersioningInfo{} + mi := &file_temporal_api_taskqueue_v1_message_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TaskQueueVersioningInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TaskQueueVersioningInfo) ProtoMessage() {} + +func (x *TaskQueueVersioningInfo) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_taskqueue_v1_message_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *TaskQueueVersioningInfo) GetCurrentDeploymentVersion() *v11.WorkerDeploymentVersion { + if x != nil { + return x.xxx_hidden_CurrentDeploymentVersion + } + return nil +} + +// Deprecated: Marked as deprecated in temporal/api/taskqueue/v1/message.proto. +func (x *TaskQueueVersioningInfo) GetCurrentVersion() string { + if x != nil { + return x.xxx_hidden_CurrentVersion + } + return "" +} + +func (x *TaskQueueVersioningInfo) GetRampingDeploymentVersion() *v11.WorkerDeploymentVersion { + if x != nil { + return x.xxx_hidden_RampingDeploymentVersion + } + return nil +} + +// Deprecated: Marked as deprecated in temporal/api/taskqueue/v1/message.proto. +func (x *TaskQueueVersioningInfo) GetRampingVersion() string { + if x != nil { + return x.xxx_hidden_RampingVersion + } + return "" +} + +func (x *TaskQueueVersioningInfo) GetRampingVersionPercentage() float32 { + if x != nil { + return x.xxx_hidden_RampingVersionPercentage + } + return 0 +} + +func (x *TaskQueueVersioningInfo) GetUpdateTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_UpdateTime + } + return nil +} + +func (x *TaskQueueVersioningInfo) SetCurrentDeploymentVersion(v *v11.WorkerDeploymentVersion) { + x.xxx_hidden_CurrentDeploymentVersion = v +} + +// Deprecated: Marked as deprecated in temporal/api/taskqueue/v1/message.proto. +func (x *TaskQueueVersioningInfo) SetCurrentVersion(v string) { + x.xxx_hidden_CurrentVersion = v +} + +func (x *TaskQueueVersioningInfo) SetRampingDeploymentVersion(v *v11.WorkerDeploymentVersion) { + x.xxx_hidden_RampingDeploymentVersion = v +} + +// Deprecated: Marked as deprecated in temporal/api/taskqueue/v1/message.proto. +func (x *TaskQueueVersioningInfo) SetRampingVersion(v string) { + x.xxx_hidden_RampingVersion = v +} + +func (x *TaskQueueVersioningInfo) SetRampingVersionPercentage(v float32) { + x.xxx_hidden_RampingVersionPercentage = v +} + +func (x *TaskQueueVersioningInfo) SetUpdateTime(v *timestamppb.Timestamp) { + x.xxx_hidden_UpdateTime = v +} + +func (x *TaskQueueVersioningInfo) HasCurrentDeploymentVersion() bool { + if x == nil { + return false + } + return x.xxx_hidden_CurrentDeploymentVersion != nil +} + +func (x *TaskQueueVersioningInfo) HasRampingDeploymentVersion() bool { + if x == nil { + return false + } + return x.xxx_hidden_RampingDeploymentVersion != nil +} + +func (x *TaskQueueVersioningInfo) HasUpdateTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_UpdateTime != nil +} + +func (x *TaskQueueVersioningInfo) ClearCurrentDeploymentVersion() { + x.xxx_hidden_CurrentDeploymentVersion = nil +} + +func (x *TaskQueueVersioningInfo) ClearRampingDeploymentVersion() { + x.xxx_hidden_RampingDeploymentVersion = nil +} + +func (x *TaskQueueVersioningInfo) ClearUpdateTime() { + x.xxx_hidden_UpdateTime = nil +} + +type TaskQueueVersioningInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Specifies which Deployment Version should receive new workflow executions and tasks of + // existing unversioned or AutoUpgrade workflows. + // Nil value represents all the unversioned workers (those with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.) + // Note: Current Version is overridden by the Ramping Version for a portion of traffic when ramp percentage + // is non-zero (see `ramping_deployment_version` and `ramping_version_percentage`). + CurrentDeploymentVersion *v11.WorkerDeploymentVersion + // Deprecated. Use `current_deployment_version`. + // + // Deprecated: Marked as deprecated in temporal/api/taskqueue/v1/message.proto. + CurrentVersion string + // When ramp percentage is non-zero, that portion of traffic is shifted from the Current Version to the Ramping Version. + // Must always be different from `current_deployment_version` unless both are nil. + // Nil value represents all the unversioned workers (those with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.) + // Note that it is possible to ramp from one Version to another Version, or from unversioned + // workers to a particular Version, or from a particular Version to unversioned workers. + RampingDeploymentVersion *v11.WorkerDeploymentVersion + // Deprecated. Use `ramping_deployment_version`. + // + // Deprecated: Marked as deprecated in temporal/api/taskqueue/v1/message.proto. + RampingVersion string + // Percentage of tasks that are routed to the Ramping Version instead of the Current Version. + // Valid range: [0, 100]. A 100% value means the Ramping Version is receiving full traffic but + // not yet "promoted" to be the Current Version, likely due to pending validations. + // A 0% value means the Ramping Version is receiving no traffic. + RampingVersionPercentage float32 + // Last time versioning information of this Task Queue changed. + UpdateTime *timestamppb.Timestamp +} + +func (b0 TaskQueueVersioningInfo_builder) Build() *TaskQueueVersioningInfo { + m0 := &TaskQueueVersioningInfo{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_CurrentDeploymentVersion = b.CurrentDeploymentVersion + x.xxx_hidden_CurrentVersion = b.CurrentVersion + x.xxx_hidden_RampingDeploymentVersion = b.RampingDeploymentVersion + x.xxx_hidden_RampingVersion = b.RampingVersion + x.xxx_hidden_RampingVersionPercentage = b.RampingVersionPercentage + x.xxx_hidden_UpdateTime = b.UpdateTime + return m0 +} + +// Used for specifying versions the caller is interested in. +type TaskQueueVersionSelection struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_BuildIds []string `protobuf:"bytes,1,rep,name=build_ids,json=buildIds,proto3"` + xxx_hidden_Unversioned bool `protobuf:"varint,2,opt,name=unversioned,proto3"` + xxx_hidden_AllActive bool `protobuf:"varint,3,opt,name=all_active,json=allActive,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TaskQueueVersionSelection) Reset() { + *x = TaskQueueVersionSelection{} + mi := &file_temporal_api_taskqueue_v1_message_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TaskQueueVersionSelection) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TaskQueueVersionSelection) ProtoMessage() {} + +func (x *TaskQueueVersionSelection) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_taskqueue_v1_message_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *TaskQueueVersionSelection) GetBuildIds() []string { + if x != nil { + return x.xxx_hidden_BuildIds + } + return nil +} + +func (x *TaskQueueVersionSelection) GetUnversioned() bool { + if x != nil { + return x.xxx_hidden_Unversioned + } + return false +} + +func (x *TaskQueueVersionSelection) GetAllActive() bool { + if x != nil { + return x.xxx_hidden_AllActive + } + return false +} + +func (x *TaskQueueVersionSelection) SetBuildIds(v []string) { + x.xxx_hidden_BuildIds = v +} + +func (x *TaskQueueVersionSelection) SetUnversioned(v bool) { + x.xxx_hidden_Unversioned = v +} + +func (x *TaskQueueVersionSelection) SetAllActive(v bool) { + x.xxx_hidden_AllActive = v +} + +type TaskQueueVersionSelection_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Include specific Build IDs. + BuildIds []string + // Include the unversioned queue. + Unversioned bool + // Include all active versions. A version is considered active if, in the last few minutes, + // it has had new tasks or polls, or it has been the subject of certain task queue API calls. + AllActive bool +} + +func (b0 TaskQueueVersionSelection_builder) Build() *TaskQueueVersionSelection { + m0 := &TaskQueueVersionSelection{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_BuildIds = b.BuildIds + x.xxx_hidden_Unversioned = b.Unversioned + x.xxx_hidden_AllActive = b.AllActive + return m0 +} + +type TaskQueueVersionInfo struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_TypesInfo map[int32]*TaskQueueTypeInfo `protobuf:"bytes,1,rep,name=types_info,json=typesInfo,proto3" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + xxx_hidden_TaskReachability v1.BuildIdTaskReachability `protobuf:"varint,2,opt,name=task_reachability,json=taskReachability,proto3,enum=temporal.api.enums.v1.BuildIdTaskReachability"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TaskQueueVersionInfo) Reset() { + *x = TaskQueueVersionInfo{} + mi := &file_temporal_api_taskqueue_v1_message_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TaskQueueVersionInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TaskQueueVersionInfo) ProtoMessage() {} + +func (x *TaskQueueVersionInfo) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_taskqueue_v1_message_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *TaskQueueVersionInfo) GetTypesInfo() map[int32]*TaskQueueTypeInfo { + if x != nil { + return x.xxx_hidden_TypesInfo + } + return nil +} + +func (x *TaskQueueVersionInfo) GetTaskReachability() v1.BuildIdTaskReachability { + if x != nil { + return x.xxx_hidden_TaskReachability + } + return v1.BuildIdTaskReachability(0) +} + +func (x *TaskQueueVersionInfo) SetTypesInfo(v map[int32]*TaskQueueTypeInfo) { + x.xxx_hidden_TypesInfo = v +} + +func (x *TaskQueueVersionInfo) SetTaskReachability(v v1.BuildIdTaskReachability) { + x.xxx_hidden_TaskReachability = v +} + +type TaskQueueVersionInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Task Queue info per Task Type. Key is the numerical value of the temporal.api.enums.v1.TaskQueueType enum. + TypesInfo map[int32]*TaskQueueTypeInfo + // Task Reachability is eventually consistent; there may be a delay until it converges to the most + // accurate value but it is designed in a way to take the more conservative side until it converges. + // For example REACHABLE is more conservative than CLOSED_WORKFLOWS_ONLY. + // + // Note: future activities who inherit their workflow's Build ID but not its Task Queue will not be + // accounted for reachability as server cannot know if they'll happen as they do not use + // assignment rules of their Task Queue. Same goes for Child Workflows or Continue-As-New Workflows + // who inherit the parent/previous workflow's Build ID but not its Task Queue. In those cases, make + // sure to query reachability for the parent/previous workflow's Task Queue as well. + TaskReachability v1.BuildIdTaskReachability +} + +func (b0 TaskQueueVersionInfo_builder) Build() *TaskQueueVersionInfo { + m0 := &TaskQueueVersionInfo{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_TypesInfo = b.TypesInfo + x.xxx_hidden_TaskReachability = b.TaskReachability + return m0 +} + +type TaskQueueTypeInfo struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Pollers *[]*PollerInfo `protobuf:"bytes,1,rep,name=pollers,proto3"` + xxx_hidden_Stats *TaskQueueStats `protobuf:"bytes,2,opt,name=stats,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TaskQueueTypeInfo) Reset() { + *x = TaskQueueTypeInfo{} + mi := &file_temporal_api_taskqueue_v1_message_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TaskQueueTypeInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TaskQueueTypeInfo) ProtoMessage() {} + +func (x *TaskQueueTypeInfo) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_taskqueue_v1_message_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *TaskQueueTypeInfo) GetPollers() []*PollerInfo { + if x != nil { + if x.xxx_hidden_Pollers != nil { + return *x.xxx_hidden_Pollers + } + } + return nil +} + +func (x *TaskQueueTypeInfo) GetStats() *TaskQueueStats { + if x != nil { + return x.xxx_hidden_Stats + } + return nil +} + +func (x *TaskQueueTypeInfo) SetPollers(v []*PollerInfo) { + x.xxx_hidden_Pollers = &v +} + +func (x *TaskQueueTypeInfo) SetStats(v *TaskQueueStats) { + x.xxx_hidden_Stats = v +} + +func (x *TaskQueueTypeInfo) HasStats() bool { + if x == nil { + return false + } + return x.xxx_hidden_Stats != nil +} + +func (x *TaskQueueTypeInfo) ClearStats() { + x.xxx_hidden_Stats = nil +} + +type TaskQueueTypeInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Unversioned workers (with `useVersioning=false`) are reported in unversioned result even if they set a Build ID. + Pollers []*PollerInfo + Stats *TaskQueueStats +} + +func (b0 TaskQueueTypeInfo_builder) Build() *TaskQueueTypeInfo { + m0 := &TaskQueueTypeInfo{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Pollers = &b.Pollers + x.xxx_hidden_Stats = b.Stats + return m0 +} + +// TaskQueueStats contains statistics about task queue backlog and activity. +// +// For workflow task queue type, this result is partial because tasks sent to sticky queues are not included. Read +// comments above each metric to understand the impact of sticky queue exclusion on that metric accuracy. +type TaskQueueStats struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ApproximateBacklogCount int64 `protobuf:"varint,1,opt,name=approximate_backlog_count,json=approximateBacklogCount,proto3"` + xxx_hidden_ApproximateBacklogAge *durationpb.Duration `protobuf:"bytes,2,opt,name=approximate_backlog_age,json=approximateBacklogAge,proto3"` + xxx_hidden_TasksAddRate float32 `protobuf:"fixed32,3,opt,name=tasks_add_rate,json=tasksAddRate,proto3"` + xxx_hidden_TasksDispatchRate float32 `protobuf:"fixed32,4,opt,name=tasks_dispatch_rate,json=tasksDispatchRate,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TaskQueueStats) Reset() { + *x = TaskQueueStats{} + mi := &file_temporal_api_taskqueue_v1_message_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TaskQueueStats) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TaskQueueStats) ProtoMessage() {} + +func (x *TaskQueueStats) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_taskqueue_v1_message_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *TaskQueueStats) GetApproximateBacklogCount() int64 { + if x != nil { + return x.xxx_hidden_ApproximateBacklogCount + } + return 0 +} + +func (x *TaskQueueStats) GetApproximateBacklogAge() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_ApproximateBacklogAge + } + return nil +} + +func (x *TaskQueueStats) GetTasksAddRate() float32 { + if x != nil { + return x.xxx_hidden_TasksAddRate + } + return 0 +} + +func (x *TaskQueueStats) GetTasksDispatchRate() float32 { + if x != nil { + return x.xxx_hidden_TasksDispatchRate + } + return 0 +} + +func (x *TaskQueueStats) SetApproximateBacklogCount(v int64) { + x.xxx_hidden_ApproximateBacklogCount = v +} + +func (x *TaskQueueStats) SetApproximateBacklogAge(v *durationpb.Duration) { + x.xxx_hidden_ApproximateBacklogAge = v +} + +func (x *TaskQueueStats) SetTasksAddRate(v float32) { + x.xxx_hidden_TasksAddRate = v +} + +func (x *TaskQueueStats) SetTasksDispatchRate(v float32) { + x.xxx_hidden_TasksDispatchRate = v +} + +func (x *TaskQueueStats) HasApproximateBacklogAge() bool { + if x == nil { + return false + } + return x.xxx_hidden_ApproximateBacklogAge != nil +} + +func (x *TaskQueueStats) ClearApproximateBacklogAge() { + x.xxx_hidden_ApproximateBacklogAge = nil +} + +type TaskQueueStats_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The approximate number of tasks backlogged in this task queue. May count expired tasks but eventually + // converges to the right value. Can be relied upon for scaling decisions. + // + // Special note for workflow task queue type: this metric does not count sticky queue tasks. However, because + // those tasks only remain valid for a few seconds, the inaccuracy becomes less significant as the backlog size + // grows. + ApproximateBacklogCount int64 + // Approximate age of the oldest task in the backlog based on the creation time of the task at the head of + // the queue. Can be relied upon for scaling decisions. + // + // Special note for workflow task queue type: this metric does not count sticky queue tasks. However, because + // those tasks only remain valid for a few seconds, they should not affect the result when backlog is older than + // few seconds. + ApproximateBacklogAge *durationpb.Duration + // The approximate tasks per second added to the task queue, averaging the last 30 seconds. These includes tasks + // whether or not they were added to/dispatched from the backlog or they were dispatched immediately without going + // to the backlog (sync-matched). + // + // The difference between `tasks_add_rate` and `tasks_dispatch_rate` is a reliable metric for the rate at which + // backlog grows/shrinks. + // + // Note: the actual tasks delivered to the workers may significantly be higher than the numbers reported by + // tasks_add_rate, because: + // - Tasks can be sent to workers without going to the task queue. This is called Eager dispatch. Eager dispatch is + // enable for activities by default in the latest SDKs. + // - Tasks going to Sticky queue are not accounted for. Note that, typically, only the first workflow task of each + // workflow goes to a normal queue, and the rest workflow tasks go to the Sticky queue associated with a specific + // worker instance. + TasksAddRate float32 + // The approximate tasks per second dispatched from the task queue, averaging the last 30 seconds. These includes + // tasks whether or not they were added to/dispatched from the backlog or they were dispatched immediately without + // going to the backlog (sync-matched). + // + // The difference between `tasks_add_rate` and `tasks_dispatch_rate` is a reliable metric for the rate at which + // backlog grows/shrinks. + // + // Note: the actual tasks delivered to the workers may significantly be higher than the numbers reported by + // tasks_dispatch_rate, because: + // - Tasks can be sent to workers without going to the task queue. This is called Eager dispatch. Eager dispatch is + // enable for activities by default in the latest SDKs. + // - Tasks going to Sticky queue are not accounted for. Note that, typically, only the first workflow task of each + // workflow goes to a normal queue, and the rest workflow tasks go to the Sticky queue associated with a specific + // worker instance. + TasksDispatchRate float32 +} + +func (b0 TaskQueueStats_builder) Build() *TaskQueueStats { + m0 := &TaskQueueStats{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ApproximateBacklogCount = b.ApproximateBacklogCount + x.xxx_hidden_ApproximateBacklogAge = b.ApproximateBacklogAge + x.xxx_hidden_TasksAddRate = b.TasksAddRate + x.xxx_hidden_TasksDispatchRate = b.TasksDispatchRate + return m0 +} + +// Deprecated. Use `InternalTaskQueueStatus`. This is kept until `DescribeTaskQueue` supports legacy behavior. +type TaskQueueStatus struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_BacklogCountHint int64 `protobuf:"varint,1,opt,name=backlog_count_hint,json=backlogCountHint,proto3"` + xxx_hidden_ReadLevel int64 `protobuf:"varint,2,opt,name=read_level,json=readLevel,proto3"` + xxx_hidden_AckLevel int64 `protobuf:"varint,3,opt,name=ack_level,json=ackLevel,proto3"` + xxx_hidden_RatePerSecond float64 `protobuf:"fixed64,4,opt,name=rate_per_second,json=ratePerSecond,proto3"` + xxx_hidden_TaskIdBlock *TaskIdBlock `protobuf:"bytes,5,opt,name=task_id_block,json=taskIdBlock,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TaskQueueStatus) Reset() { + *x = TaskQueueStatus{} + mi := &file_temporal_api_taskqueue_v1_message_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TaskQueueStatus) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TaskQueueStatus) ProtoMessage() {} + +func (x *TaskQueueStatus) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_taskqueue_v1_message_proto_msgTypes[7] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *TaskQueueStatus) GetBacklogCountHint() int64 { + if x != nil { + return x.xxx_hidden_BacklogCountHint + } + return 0 +} + +func (x *TaskQueueStatus) GetReadLevel() int64 { + if x != nil { + return x.xxx_hidden_ReadLevel + } + return 0 +} + +func (x *TaskQueueStatus) GetAckLevel() int64 { + if x != nil { + return x.xxx_hidden_AckLevel + } + return 0 +} + +func (x *TaskQueueStatus) GetRatePerSecond() float64 { + if x != nil { + return x.xxx_hidden_RatePerSecond + } + return 0 +} + +func (x *TaskQueueStatus) GetTaskIdBlock() *TaskIdBlock { + if x != nil { + return x.xxx_hidden_TaskIdBlock + } + return nil +} + +func (x *TaskQueueStatus) SetBacklogCountHint(v int64) { + x.xxx_hidden_BacklogCountHint = v +} + +func (x *TaskQueueStatus) SetReadLevel(v int64) { + x.xxx_hidden_ReadLevel = v +} + +func (x *TaskQueueStatus) SetAckLevel(v int64) { + x.xxx_hidden_AckLevel = v +} + +func (x *TaskQueueStatus) SetRatePerSecond(v float64) { + x.xxx_hidden_RatePerSecond = v +} + +func (x *TaskQueueStatus) SetTaskIdBlock(v *TaskIdBlock) { + x.xxx_hidden_TaskIdBlock = v +} + +func (x *TaskQueueStatus) HasTaskIdBlock() bool { + if x == nil { + return false + } + return x.xxx_hidden_TaskIdBlock != nil +} + +func (x *TaskQueueStatus) ClearTaskIdBlock() { + x.xxx_hidden_TaskIdBlock = nil +} + +type TaskQueueStatus_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + BacklogCountHint int64 + ReadLevel int64 + AckLevel int64 + RatePerSecond float64 + TaskIdBlock *TaskIdBlock +} + +func (b0 TaskQueueStatus_builder) Build() *TaskQueueStatus { + m0 := &TaskQueueStatus{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_BacklogCountHint = b.BacklogCountHint + x.xxx_hidden_ReadLevel = b.ReadLevel + x.xxx_hidden_AckLevel = b.AckLevel + x.xxx_hidden_RatePerSecond = b.RatePerSecond + x.xxx_hidden_TaskIdBlock = b.TaskIdBlock + return m0 +} + +type TaskIdBlock struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_StartId int64 `protobuf:"varint,1,opt,name=start_id,json=startId,proto3"` + xxx_hidden_EndId int64 `protobuf:"varint,2,opt,name=end_id,json=endId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TaskIdBlock) Reset() { + *x = TaskIdBlock{} + mi := &file_temporal_api_taskqueue_v1_message_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TaskIdBlock) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TaskIdBlock) ProtoMessage() {} + +func (x *TaskIdBlock) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_taskqueue_v1_message_proto_msgTypes[8] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *TaskIdBlock) GetStartId() int64 { + if x != nil { + return x.xxx_hidden_StartId + } + return 0 +} + +func (x *TaskIdBlock) GetEndId() int64 { + if x != nil { + return x.xxx_hidden_EndId + } + return 0 +} + +func (x *TaskIdBlock) SetStartId(v int64) { + x.xxx_hidden_StartId = v +} + +func (x *TaskIdBlock) SetEndId(v int64) { + x.xxx_hidden_EndId = v +} + +type TaskIdBlock_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + StartId int64 + EndId int64 +} + +func (b0 TaskIdBlock_builder) Build() *TaskIdBlock { + m0 := &TaskIdBlock{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_StartId = b.StartId + x.xxx_hidden_EndId = b.EndId + return m0 +} + +type TaskQueuePartitionMetadata struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Key string `protobuf:"bytes,1,opt,name=key,proto3"` + xxx_hidden_OwnerHostName string `protobuf:"bytes,2,opt,name=owner_host_name,json=ownerHostName,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TaskQueuePartitionMetadata) Reset() { + *x = TaskQueuePartitionMetadata{} + mi := &file_temporal_api_taskqueue_v1_message_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TaskQueuePartitionMetadata) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TaskQueuePartitionMetadata) ProtoMessage() {} + +func (x *TaskQueuePartitionMetadata) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_taskqueue_v1_message_proto_msgTypes[9] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *TaskQueuePartitionMetadata) GetKey() string { + if x != nil { + return x.xxx_hidden_Key + } + return "" +} + +func (x *TaskQueuePartitionMetadata) GetOwnerHostName() string { + if x != nil { + return x.xxx_hidden_OwnerHostName + } + return "" +} + +func (x *TaskQueuePartitionMetadata) SetKey(v string) { + x.xxx_hidden_Key = v +} + +func (x *TaskQueuePartitionMetadata) SetOwnerHostName(v string) { + x.xxx_hidden_OwnerHostName = v +} + +type TaskQueuePartitionMetadata_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Key string + OwnerHostName string +} + +func (b0 TaskQueuePartitionMetadata_builder) Build() *TaskQueuePartitionMetadata { + m0 := &TaskQueuePartitionMetadata{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Key = b.Key + x.xxx_hidden_OwnerHostName = b.OwnerHostName + return m0 +} + +type PollerInfo struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_LastAccessTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=last_access_time,json=lastAccessTime,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,2,opt,name=identity,proto3"` + xxx_hidden_RatePerSecond float64 `protobuf:"fixed64,3,opt,name=rate_per_second,json=ratePerSecond,proto3"` + xxx_hidden_WorkerVersionCapabilities *v12.WorkerVersionCapabilities `protobuf:"bytes,4,opt,name=worker_version_capabilities,json=workerVersionCapabilities,proto3"` + xxx_hidden_DeploymentOptions *v11.WorkerDeploymentOptions `protobuf:"bytes,5,opt,name=deployment_options,json=deploymentOptions,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PollerInfo) Reset() { + *x = PollerInfo{} + mi := &file_temporal_api_taskqueue_v1_message_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PollerInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PollerInfo) ProtoMessage() {} + +func (x *PollerInfo) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_taskqueue_v1_message_proto_msgTypes[10] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PollerInfo) GetLastAccessTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_LastAccessTime + } + return nil +} + +func (x *PollerInfo) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *PollerInfo) GetRatePerSecond() float64 { + if x != nil { + return x.xxx_hidden_RatePerSecond + } + return 0 +} + +// Deprecated: Marked as deprecated in temporal/api/taskqueue/v1/message.proto. +func (x *PollerInfo) GetWorkerVersionCapabilities() *v12.WorkerVersionCapabilities { + if x != nil { + return x.xxx_hidden_WorkerVersionCapabilities + } + return nil +} + +func (x *PollerInfo) GetDeploymentOptions() *v11.WorkerDeploymentOptions { + if x != nil { + return x.xxx_hidden_DeploymentOptions + } + return nil +} + +func (x *PollerInfo) SetLastAccessTime(v *timestamppb.Timestamp) { + x.xxx_hidden_LastAccessTime = v +} + +func (x *PollerInfo) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *PollerInfo) SetRatePerSecond(v float64) { + x.xxx_hidden_RatePerSecond = v +} + +// Deprecated: Marked as deprecated in temporal/api/taskqueue/v1/message.proto. +func (x *PollerInfo) SetWorkerVersionCapabilities(v *v12.WorkerVersionCapabilities) { + x.xxx_hidden_WorkerVersionCapabilities = v +} + +func (x *PollerInfo) SetDeploymentOptions(v *v11.WorkerDeploymentOptions) { + x.xxx_hidden_DeploymentOptions = v +} + +func (x *PollerInfo) HasLastAccessTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_LastAccessTime != nil +} + +// Deprecated: Marked as deprecated in temporal/api/taskqueue/v1/message.proto. +func (x *PollerInfo) HasWorkerVersionCapabilities() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkerVersionCapabilities != nil +} + +func (x *PollerInfo) HasDeploymentOptions() bool { + if x == nil { + return false + } + return x.xxx_hidden_DeploymentOptions != nil +} + +func (x *PollerInfo) ClearLastAccessTime() { + x.xxx_hidden_LastAccessTime = nil +} + +// Deprecated: Marked as deprecated in temporal/api/taskqueue/v1/message.proto. +func (x *PollerInfo) ClearWorkerVersionCapabilities() { + x.xxx_hidden_WorkerVersionCapabilities = nil +} + +func (x *PollerInfo) ClearDeploymentOptions() { + x.xxx_hidden_DeploymentOptions = nil +} + +type PollerInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + LastAccessTime *timestamppb.Timestamp + Identity string + RatePerSecond float64 + // If a worker has opted into the worker versioning feature while polling, its capabilities will + // appear here. + // Deprecated. Replaced by deployment_options. + // + // Deprecated: Marked as deprecated in temporal/api/taskqueue/v1/message.proto. + WorkerVersionCapabilities *v12.WorkerVersionCapabilities + // Worker deployment options that SDK sent to server. + DeploymentOptions *v11.WorkerDeploymentOptions +} + +func (b0 PollerInfo_builder) Build() *PollerInfo { + m0 := &PollerInfo{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_LastAccessTime = b.LastAccessTime + x.xxx_hidden_Identity = b.Identity + x.xxx_hidden_RatePerSecond = b.RatePerSecond + x.xxx_hidden_WorkerVersionCapabilities = b.WorkerVersionCapabilities + x.xxx_hidden_DeploymentOptions = b.DeploymentOptions + return m0 +} + +type StickyExecutionAttributes struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_WorkerTaskQueue *TaskQueue `protobuf:"bytes,1,opt,name=worker_task_queue,json=workerTaskQueue,proto3"` + xxx_hidden_ScheduleToStartTimeout *durationpb.Duration `protobuf:"bytes,2,opt,name=schedule_to_start_timeout,json=scheduleToStartTimeout,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *StickyExecutionAttributes) Reset() { + *x = StickyExecutionAttributes{} + mi := &file_temporal_api_taskqueue_v1_message_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *StickyExecutionAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StickyExecutionAttributes) ProtoMessage() {} + +func (x *StickyExecutionAttributes) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_taskqueue_v1_message_proto_msgTypes[11] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *StickyExecutionAttributes) GetWorkerTaskQueue() *TaskQueue { + if x != nil { + return x.xxx_hidden_WorkerTaskQueue + } + return nil +} + +func (x *StickyExecutionAttributes) GetScheduleToStartTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_ScheduleToStartTimeout + } + return nil +} + +func (x *StickyExecutionAttributes) SetWorkerTaskQueue(v *TaskQueue) { + x.xxx_hidden_WorkerTaskQueue = v +} + +func (x *StickyExecutionAttributes) SetScheduleToStartTimeout(v *durationpb.Duration) { + x.xxx_hidden_ScheduleToStartTimeout = v +} + +func (x *StickyExecutionAttributes) HasWorkerTaskQueue() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkerTaskQueue != nil +} + +func (x *StickyExecutionAttributes) HasScheduleToStartTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_ScheduleToStartTimeout != nil +} + +func (x *StickyExecutionAttributes) ClearWorkerTaskQueue() { + x.xxx_hidden_WorkerTaskQueue = nil +} + +func (x *StickyExecutionAttributes) ClearScheduleToStartTimeout() { + x.xxx_hidden_ScheduleToStartTimeout = nil +} + +type StickyExecutionAttributes_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + WorkerTaskQueue *TaskQueue + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + ScheduleToStartTimeout *durationpb.Duration +} + +func (b0 StickyExecutionAttributes_builder) Build() *StickyExecutionAttributes { + m0 := &StickyExecutionAttributes{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_WorkerTaskQueue = b.WorkerTaskQueue + x.xxx_hidden_ScheduleToStartTimeout = b.ScheduleToStartTimeout + return m0 +} + +// Used by the worker versioning APIs, represents an unordered set of one or more versions which are +// considered to be compatible with each other. Currently the versions are always worker build IDs. +type CompatibleVersionSet struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_BuildIds []string `protobuf:"bytes,1,rep,name=build_ids,json=buildIds,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CompatibleVersionSet) Reset() { + *x = CompatibleVersionSet{} + mi := &file_temporal_api_taskqueue_v1_message_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CompatibleVersionSet) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CompatibleVersionSet) ProtoMessage() {} + +func (x *CompatibleVersionSet) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_taskqueue_v1_message_proto_msgTypes[12] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *CompatibleVersionSet) GetBuildIds() []string { + if x != nil { + return x.xxx_hidden_BuildIds + } + return nil +} + +func (x *CompatibleVersionSet) SetBuildIds(v []string) { + x.xxx_hidden_BuildIds = v +} + +type CompatibleVersionSet_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // All the compatible versions, unordered, except for the last element, which is considered the set "default". + BuildIds []string +} + +func (b0 CompatibleVersionSet_builder) Build() *CompatibleVersionSet { + m0 := &CompatibleVersionSet{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_BuildIds = b.BuildIds + return m0 +} + +// Reachability of tasks for a worker on a single task queue. +type TaskQueueReachability struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_TaskQueue string `protobuf:"bytes,1,opt,name=task_queue,json=taskQueue,proto3"` + xxx_hidden_Reachability []v1.TaskReachability `protobuf:"varint,2,rep,packed,name=reachability,proto3,enum=temporal.api.enums.v1.TaskReachability"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TaskQueueReachability) Reset() { + *x = TaskQueueReachability{} + mi := &file_temporal_api_taskqueue_v1_message_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TaskQueueReachability) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TaskQueueReachability) ProtoMessage() {} + +func (x *TaskQueueReachability) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_taskqueue_v1_message_proto_msgTypes[13] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *TaskQueueReachability) GetTaskQueue() string { + if x != nil { + return x.xxx_hidden_TaskQueue + } + return "" +} + +func (x *TaskQueueReachability) GetReachability() []v1.TaskReachability { + if x != nil { + return x.xxx_hidden_Reachability + } + return nil +} + +func (x *TaskQueueReachability) SetTaskQueue(v string) { + x.xxx_hidden_TaskQueue = v +} + +func (x *TaskQueueReachability) SetReachability(v []v1.TaskReachability) { + x.xxx_hidden_Reachability = v +} + +type TaskQueueReachability_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + TaskQueue string + // Task reachability for a worker in a single task queue. + // See the TaskReachability docstring for information about each enum variant. + // If reachability is empty, this worker is considered unreachable in this task queue. + Reachability []v1.TaskReachability +} + +func (b0 TaskQueueReachability_builder) Build() *TaskQueueReachability { + m0 := &TaskQueueReachability{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_TaskQueue = b.TaskQueue + x.xxx_hidden_Reachability = b.Reachability + return m0 +} + +// Reachability of tasks for a worker by build id, in one or more task queues. +type BuildIdReachability struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_BuildId string `protobuf:"bytes,1,opt,name=build_id,json=buildId,proto3"` + xxx_hidden_TaskQueueReachability *[]*TaskQueueReachability `protobuf:"bytes,2,rep,name=task_queue_reachability,json=taskQueueReachability,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *BuildIdReachability) Reset() { + *x = BuildIdReachability{} + mi := &file_temporal_api_taskqueue_v1_message_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *BuildIdReachability) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BuildIdReachability) ProtoMessage() {} + +func (x *BuildIdReachability) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_taskqueue_v1_message_proto_msgTypes[14] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *BuildIdReachability) GetBuildId() string { + if x != nil { + return x.xxx_hidden_BuildId + } + return "" +} + +func (x *BuildIdReachability) GetTaskQueueReachability() []*TaskQueueReachability { + if x != nil { + if x.xxx_hidden_TaskQueueReachability != nil { + return *x.xxx_hidden_TaskQueueReachability + } + } + return nil +} + +func (x *BuildIdReachability) SetBuildId(v string) { + x.xxx_hidden_BuildId = v +} + +func (x *BuildIdReachability) SetTaskQueueReachability(v []*TaskQueueReachability) { + x.xxx_hidden_TaskQueueReachability = &v +} + +type BuildIdReachability_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // A build id or empty if unversioned. + BuildId string + // Reachability per task queue. + TaskQueueReachability []*TaskQueueReachability +} + +func (b0 BuildIdReachability_builder) Build() *BuildIdReachability { + m0 := &BuildIdReachability{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_BuildId = b.BuildId + x.xxx_hidden_TaskQueueReachability = &b.TaskQueueReachability + return m0 +} + +type RampByPercentage struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RampPercentage float32 `protobuf:"fixed32,1,opt,name=ramp_percentage,json=rampPercentage,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RampByPercentage) Reset() { + *x = RampByPercentage{} + mi := &file_temporal_api_taskqueue_v1_message_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RampByPercentage) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RampByPercentage) ProtoMessage() {} + +func (x *RampByPercentage) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_taskqueue_v1_message_proto_msgTypes[15] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *RampByPercentage) GetRampPercentage() float32 { + if x != nil { + return x.xxx_hidden_RampPercentage + } + return 0 +} + +func (x *RampByPercentage) SetRampPercentage(v float32) { + x.xxx_hidden_RampPercentage = v +} + +type RampByPercentage_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Acceptable range is [0,100). + RampPercentage float32 +} + +func (b0 RampByPercentage_builder) Build() *RampByPercentage { + m0 := &RampByPercentage{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RampPercentage = b.RampPercentage + return m0 +} + +// Assignment rules are applied to *new* Workflow and Activity executions at +// schedule time to assign them to a Build ID. +// +// Assignment rules will not be used in the following cases: +// - Child Workflows or Continue-As-New Executions who inherit their +// parent/previous Workflow's assigned Build ID (by setting the +// `inherit_build_id` flag - default behavior in SDKs when the same Task Queue +// is used.) +// - An Activity that inherits the assigned Build ID of its Workflow (by +// setting the `use_workflow_build_id` flag - default behavior in SDKs +// when the same Task Queue is used.) +// +// In absence of (applicable) redirect rules (`CompatibleBuildIdRedirectRule`s) +// the task will be dispatched to Workers of the Build ID determined by the +// assignment rules (or inherited). Otherwise, the final Build ID will be +// determined by the redirect rules. +// +// Once a Workflow completes its first Workflow Task in a particular Build ID it +// stays in that Build ID regardless of changes to assignment rules. Redirect +// rules can be used to move the workflow to another compatible Build ID. +// +// When using Worker Versioning on a Task Queue, in the steady state, +// there should typically be a single assignment rule to send all new executions +// to the latest Build ID. Existence of at least one such "unconditional" +// rule at all times is enforces by the system, unless the `force` flag is used +// by the user when replacing/deleting these rules (for exceptional cases). +// +// During a deployment, one or more additional rules can be added to assign a +// subset of the tasks to a new Build ID based on a "ramp percentage". +// +// When there are multiple assignment rules for a Task Queue, the rules are +// evaluated in order, starting from index 0. The first applicable rule will be +// applied and the rest will be ignored. +// +// In the event that no assignment rule is applicable on a task (or the Task +// Queue is simply not versioned), the tasks will be dispatched to an +// unversioned Worker. +type BuildIdAssignmentRule struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_TargetBuildId string `protobuf:"bytes,1,opt,name=target_build_id,json=targetBuildId,proto3"` + xxx_hidden_Ramp isBuildIdAssignmentRule_Ramp `protobuf_oneof:"ramp"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *BuildIdAssignmentRule) Reset() { + *x = BuildIdAssignmentRule{} + mi := &file_temporal_api_taskqueue_v1_message_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *BuildIdAssignmentRule) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BuildIdAssignmentRule) ProtoMessage() {} + +func (x *BuildIdAssignmentRule) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_taskqueue_v1_message_proto_msgTypes[16] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *BuildIdAssignmentRule) GetTargetBuildId() string { + if x != nil { + return x.xxx_hidden_TargetBuildId + } + return "" +} + +func (x *BuildIdAssignmentRule) GetPercentageRamp() *RampByPercentage { + if x != nil { + if x, ok := x.xxx_hidden_Ramp.(*buildIdAssignmentRule_PercentageRamp); ok { + return x.PercentageRamp + } + } + return nil +} + +func (x *BuildIdAssignmentRule) SetTargetBuildId(v string) { + x.xxx_hidden_TargetBuildId = v +} + +func (x *BuildIdAssignmentRule) SetPercentageRamp(v *RampByPercentage) { + if v == nil { + x.xxx_hidden_Ramp = nil + return + } + x.xxx_hidden_Ramp = &buildIdAssignmentRule_PercentageRamp{v} +} + +func (x *BuildIdAssignmentRule) HasRamp() bool { + if x == nil { + return false + } + return x.xxx_hidden_Ramp != nil +} + +func (x *BuildIdAssignmentRule) HasPercentageRamp() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Ramp.(*buildIdAssignmentRule_PercentageRamp) + return ok +} + +func (x *BuildIdAssignmentRule) ClearRamp() { + x.xxx_hidden_Ramp = nil +} + +func (x *BuildIdAssignmentRule) ClearPercentageRamp() { + if _, ok := x.xxx_hidden_Ramp.(*buildIdAssignmentRule_PercentageRamp); ok { + x.xxx_hidden_Ramp = nil + } +} + +const BuildIdAssignmentRule_Ramp_not_set_case case_BuildIdAssignmentRule_Ramp = 0 +const BuildIdAssignmentRule_PercentageRamp_case case_BuildIdAssignmentRule_Ramp = 3 + +func (x *BuildIdAssignmentRule) WhichRamp() case_BuildIdAssignmentRule_Ramp { + if x == nil { + return BuildIdAssignmentRule_Ramp_not_set_case + } + switch x.xxx_hidden_Ramp.(type) { + case *buildIdAssignmentRule_PercentageRamp: + return BuildIdAssignmentRule_PercentageRamp_case + default: + return BuildIdAssignmentRule_Ramp_not_set_case + } +} + +type BuildIdAssignmentRule_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + TargetBuildId string + // If a ramp is provided, this rule will be applied only to a sample of + // tasks according to the provided percentage. + // This option can be used only on "terminal" Build IDs (the ones not used + // as source in any redirect rules). + + // Fields of oneof xxx_hidden_Ramp: + // This ramp is useful for gradual Blue/Green deployments (and similar) + // where you want to send a certain portion of the traffic to the target + // Build ID. + PercentageRamp *RampByPercentage + // -- end of xxx_hidden_Ramp +} + +func (b0 BuildIdAssignmentRule_builder) Build() *BuildIdAssignmentRule { + m0 := &BuildIdAssignmentRule{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_TargetBuildId = b.TargetBuildId + if b.PercentageRamp != nil { + x.xxx_hidden_Ramp = &buildIdAssignmentRule_PercentageRamp{b.PercentageRamp} + } + return m0 +} + +type case_BuildIdAssignmentRule_Ramp protoreflect.FieldNumber + +func (x case_BuildIdAssignmentRule_Ramp) String() string { + switch x { + case BuildIdAssignmentRule_Ramp_not_set_case: + return "BuildIdAssignmentRuleRampNotSetCase" + case BuildIdAssignmentRule_PercentageRamp_case: + return "BuildIdAssignmentRulePercentageRampCase" + default: + return strconv.Itoa(int(x)) + } + +} + +type isBuildIdAssignmentRule_Ramp interface { + isBuildIdAssignmentRule_Ramp() +} + +type buildIdAssignmentRule_PercentageRamp struct { + // This ramp is useful for gradual Blue/Green deployments (and similar) + // where you want to send a certain portion of the traffic to the target + // Build ID. + PercentageRamp *RampByPercentage `protobuf:"bytes,3,opt,name=percentage_ramp,json=percentageRamp,proto3,oneof"` +} + +func (*buildIdAssignmentRule_PercentageRamp) isBuildIdAssignmentRule_Ramp() {} + +// These rules apply to tasks assigned to a particular Build ID +// (`source_build_id`) to redirect them to another *compatible* Build ID +// (`target_build_id`). +// +// It is user's responsibility to ensure that the target Build ID is compatible +// with the source Build ID (e.g. by using the Patching API). +// +// Most deployments are not expected to need these rules, however following +// situations can greatly benefit from redirects: +// - Need to move long-running Workflow Executions from an old Build ID to a +// newer one. +// - Need to hotfix some broken or stuck Workflow Executions. +// +// In steady state, redirect rules are beneficial when dealing with old +// Executions ran on now-decommissioned Build IDs: +// - To redirecting the Workflow Queries to the current (compatible) Build ID. +// - To be able to Reset an old Execution so it can run on the current +// (compatible) Build ID. +// +// Redirect rules can be chained. +type CompatibleBuildIdRedirectRule struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_SourceBuildId string `protobuf:"bytes,1,opt,name=source_build_id,json=sourceBuildId,proto3"` + xxx_hidden_TargetBuildId string `protobuf:"bytes,2,opt,name=target_build_id,json=targetBuildId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CompatibleBuildIdRedirectRule) Reset() { + *x = CompatibleBuildIdRedirectRule{} + mi := &file_temporal_api_taskqueue_v1_message_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CompatibleBuildIdRedirectRule) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CompatibleBuildIdRedirectRule) ProtoMessage() {} + +func (x *CompatibleBuildIdRedirectRule) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_taskqueue_v1_message_proto_msgTypes[17] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *CompatibleBuildIdRedirectRule) GetSourceBuildId() string { + if x != nil { + return x.xxx_hidden_SourceBuildId + } + return "" +} + +func (x *CompatibleBuildIdRedirectRule) GetTargetBuildId() string { + if x != nil { + return x.xxx_hidden_TargetBuildId + } + return "" +} + +func (x *CompatibleBuildIdRedirectRule) SetSourceBuildId(v string) { + x.xxx_hidden_SourceBuildId = v +} + +func (x *CompatibleBuildIdRedirectRule) SetTargetBuildId(v string) { + x.xxx_hidden_TargetBuildId = v +} + +type CompatibleBuildIdRedirectRule_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + SourceBuildId string + // Target Build ID must be compatible with the Source Build ID; that is it + // must be able to process event histories made by the Source Build ID by + // using [Patching](https://docs.temporal.io/workflows#patching) or other + // means. + TargetBuildId string +} + +func (b0 CompatibleBuildIdRedirectRule_builder) Build() *CompatibleBuildIdRedirectRule { + m0 := &CompatibleBuildIdRedirectRule{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_SourceBuildId = b.SourceBuildId + x.xxx_hidden_TargetBuildId = b.TargetBuildId + return m0 +} + +type TimestampedBuildIdAssignmentRule struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Rule *BuildIdAssignmentRule `protobuf:"bytes,1,opt,name=rule,proto3"` + xxx_hidden_CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TimestampedBuildIdAssignmentRule) Reset() { + *x = TimestampedBuildIdAssignmentRule{} + mi := &file_temporal_api_taskqueue_v1_message_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TimestampedBuildIdAssignmentRule) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TimestampedBuildIdAssignmentRule) ProtoMessage() {} + +func (x *TimestampedBuildIdAssignmentRule) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_taskqueue_v1_message_proto_msgTypes[18] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *TimestampedBuildIdAssignmentRule) GetRule() *BuildIdAssignmentRule { + if x != nil { + return x.xxx_hidden_Rule + } + return nil +} + +func (x *TimestampedBuildIdAssignmentRule) GetCreateTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_CreateTime + } + return nil +} + +func (x *TimestampedBuildIdAssignmentRule) SetRule(v *BuildIdAssignmentRule) { + x.xxx_hidden_Rule = v +} + +func (x *TimestampedBuildIdAssignmentRule) SetCreateTime(v *timestamppb.Timestamp) { + x.xxx_hidden_CreateTime = v +} + +func (x *TimestampedBuildIdAssignmentRule) HasRule() bool { + if x == nil { + return false + } + return x.xxx_hidden_Rule != nil +} + +func (x *TimestampedBuildIdAssignmentRule) HasCreateTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_CreateTime != nil +} + +func (x *TimestampedBuildIdAssignmentRule) ClearRule() { + x.xxx_hidden_Rule = nil +} + +func (x *TimestampedBuildIdAssignmentRule) ClearCreateTime() { + x.xxx_hidden_CreateTime = nil +} + +type TimestampedBuildIdAssignmentRule_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Rule *BuildIdAssignmentRule + CreateTime *timestamppb.Timestamp +} + +func (b0 TimestampedBuildIdAssignmentRule_builder) Build() *TimestampedBuildIdAssignmentRule { + m0 := &TimestampedBuildIdAssignmentRule{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Rule = b.Rule + x.xxx_hidden_CreateTime = b.CreateTime + return m0 +} + +type TimestampedCompatibleBuildIdRedirectRule struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Rule *CompatibleBuildIdRedirectRule `protobuf:"bytes,1,opt,name=rule,proto3"` + xxx_hidden_CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TimestampedCompatibleBuildIdRedirectRule) Reset() { + *x = TimestampedCompatibleBuildIdRedirectRule{} + mi := &file_temporal_api_taskqueue_v1_message_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TimestampedCompatibleBuildIdRedirectRule) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TimestampedCompatibleBuildIdRedirectRule) ProtoMessage() {} + +func (x *TimestampedCompatibleBuildIdRedirectRule) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_taskqueue_v1_message_proto_msgTypes[19] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *TimestampedCompatibleBuildIdRedirectRule) GetRule() *CompatibleBuildIdRedirectRule { + if x != nil { + return x.xxx_hidden_Rule + } + return nil +} + +func (x *TimestampedCompatibleBuildIdRedirectRule) GetCreateTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_CreateTime + } + return nil +} + +func (x *TimestampedCompatibleBuildIdRedirectRule) SetRule(v *CompatibleBuildIdRedirectRule) { + x.xxx_hidden_Rule = v +} + +func (x *TimestampedCompatibleBuildIdRedirectRule) SetCreateTime(v *timestamppb.Timestamp) { + x.xxx_hidden_CreateTime = v +} + +func (x *TimestampedCompatibleBuildIdRedirectRule) HasRule() bool { + if x == nil { + return false + } + return x.xxx_hidden_Rule != nil +} + +func (x *TimestampedCompatibleBuildIdRedirectRule) HasCreateTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_CreateTime != nil +} + +func (x *TimestampedCompatibleBuildIdRedirectRule) ClearRule() { + x.xxx_hidden_Rule = nil +} + +func (x *TimestampedCompatibleBuildIdRedirectRule) ClearCreateTime() { + x.xxx_hidden_CreateTime = nil +} + +type TimestampedCompatibleBuildIdRedirectRule_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Rule *CompatibleBuildIdRedirectRule + CreateTime *timestamppb.Timestamp +} + +func (b0 TimestampedCompatibleBuildIdRedirectRule_builder) Build() *TimestampedCompatibleBuildIdRedirectRule { + m0 := &TimestampedCompatibleBuildIdRedirectRule{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Rule = b.Rule + x.xxx_hidden_CreateTime = b.CreateTime + return m0 +} + +// Attached to task responses to give hints to the SDK about how it may adjust its number of +// pollers. +type PollerScalingDecision struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_PollRequestDeltaSuggestion int32 `protobuf:"varint,1,opt,name=poll_request_delta_suggestion,json=pollRequestDeltaSuggestion,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PollerScalingDecision) Reset() { + *x = PollerScalingDecision{} + mi := &file_temporal_api_taskqueue_v1_message_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PollerScalingDecision) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PollerScalingDecision) ProtoMessage() {} + +func (x *PollerScalingDecision) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_taskqueue_v1_message_proto_msgTypes[20] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PollerScalingDecision) GetPollRequestDeltaSuggestion() int32 { + if x != nil { + return x.xxx_hidden_PollRequestDeltaSuggestion + } + return 0 +} + +func (x *PollerScalingDecision) SetPollRequestDeltaSuggestion(v int32) { + x.xxx_hidden_PollRequestDeltaSuggestion = v +} + +type PollerScalingDecision_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // How many poll requests to suggest should be added or removed, if any. As of now, server only + // scales up or down by 1. However, SDKs should allow for other values (while staying within + // defined min/max). + // + // The SDK is free to ignore this suggestion, EX: making more polls would not make sense because + // all slots are already occupied. + PollRequestDeltaSuggestion int32 +} + +func (b0 PollerScalingDecision_builder) Build() *PollerScalingDecision { + m0 := &PollerScalingDecision{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_PollRequestDeltaSuggestion = b.PollRequestDeltaSuggestion + return m0 +} + +type RateLimit struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RequestsPerSecond float32 `protobuf:"fixed32,1,opt,name=requests_per_second,json=requestsPerSecond,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RateLimit) Reset() { + *x = RateLimit{} + mi := &file_temporal_api_taskqueue_v1_message_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RateLimit) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RateLimit) ProtoMessage() {} + +func (x *RateLimit) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_taskqueue_v1_message_proto_msgTypes[21] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *RateLimit) GetRequestsPerSecond() float32 { + if x != nil { + return x.xxx_hidden_RequestsPerSecond + } + return 0 +} + +func (x *RateLimit) SetRequestsPerSecond(v float32) { + x.xxx_hidden_RequestsPerSecond = v +} + +type RateLimit_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Zero is a valid rate limit. + RequestsPerSecond float32 +} + +func (b0 RateLimit_builder) Build() *RateLimit { + m0 := &RateLimit{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RequestsPerSecond = b.RequestsPerSecond + return m0 +} + +type ConfigMetadata struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Reason string `protobuf:"bytes,1,opt,name=reason,proto3"` + xxx_hidden_UpdateIdentity string `protobuf:"bytes,2,opt,name=update_identity,json=updateIdentity,proto3"` + xxx_hidden_UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ConfigMetadata) Reset() { + *x = ConfigMetadata{} + mi := &file_temporal_api_taskqueue_v1_message_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ConfigMetadata) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ConfigMetadata) ProtoMessage() {} + +func (x *ConfigMetadata) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_taskqueue_v1_message_proto_msgTypes[22] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ConfigMetadata) GetReason() string { + if x != nil { + return x.xxx_hidden_Reason + } + return "" +} + +func (x *ConfigMetadata) GetUpdateIdentity() string { + if x != nil { + return x.xxx_hidden_UpdateIdentity + } + return "" +} + +func (x *ConfigMetadata) GetUpdateTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_UpdateTime + } + return nil +} + +func (x *ConfigMetadata) SetReason(v string) { + x.xxx_hidden_Reason = v +} + +func (x *ConfigMetadata) SetUpdateIdentity(v string) { + x.xxx_hidden_UpdateIdentity = v +} + +func (x *ConfigMetadata) SetUpdateTime(v *timestamppb.Timestamp) { + x.xxx_hidden_UpdateTime = v +} + +func (x *ConfigMetadata) HasUpdateTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_UpdateTime != nil +} + +func (x *ConfigMetadata) ClearUpdateTime() { + x.xxx_hidden_UpdateTime = nil +} + +type ConfigMetadata_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Reason for why the config was set. + Reason string + // Identity of the last updater. + // Set by the request's identity field. + UpdateIdentity string + // Time of the last update. + UpdateTime *timestamppb.Timestamp +} + +func (b0 ConfigMetadata_builder) Build() *ConfigMetadata { + m0 := &ConfigMetadata{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Reason = b.Reason + x.xxx_hidden_UpdateIdentity = b.UpdateIdentity + x.xxx_hidden_UpdateTime = b.UpdateTime + return m0 +} + +type RateLimitConfig struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RateLimit *RateLimit `protobuf:"bytes,1,opt,name=rate_limit,json=rateLimit,proto3"` + xxx_hidden_Metadata *ConfigMetadata `protobuf:"bytes,2,opt,name=metadata,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RateLimitConfig) Reset() { + *x = RateLimitConfig{} + mi := &file_temporal_api_taskqueue_v1_message_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RateLimitConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RateLimitConfig) ProtoMessage() {} + +func (x *RateLimitConfig) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_taskqueue_v1_message_proto_msgTypes[23] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *RateLimitConfig) GetRateLimit() *RateLimit { + if x != nil { + return x.xxx_hidden_RateLimit + } + return nil +} + +func (x *RateLimitConfig) GetMetadata() *ConfigMetadata { + if x != nil { + return x.xxx_hidden_Metadata + } + return nil +} + +func (x *RateLimitConfig) SetRateLimit(v *RateLimit) { + x.xxx_hidden_RateLimit = v +} + +func (x *RateLimitConfig) SetMetadata(v *ConfigMetadata) { + x.xxx_hidden_Metadata = v +} + +func (x *RateLimitConfig) HasRateLimit() bool { + if x == nil { + return false + } + return x.xxx_hidden_RateLimit != nil +} + +func (x *RateLimitConfig) HasMetadata() bool { + if x == nil { + return false + } + return x.xxx_hidden_Metadata != nil +} + +func (x *RateLimitConfig) ClearRateLimit() { + x.xxx_hidden_RateLimit = nil +} + +func (x *RateLimitConfig) ClearMetadata() { + x.xxx_hidden_Metadata = nil +} + +type RateLimitConfig_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + RateLimit *RateLimit + Metadata *ConfigMetadata +} + +func (b0 RateLimitConfig_builder) Build() *RateLimitConfig { + m0 := &RateLimitConfig{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RateLimit = b.RateLimit + x.xxx_hidden_Metadata = b.Metadata + return m0 +} + +type TaskQueueConfig struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_QueueRateLimit *RateLimitConfig `protobuf:"bytes,1,opt,name=queue_rate_limit,json=queueRateLimit,proto3"` + xxx_hidden_FairnessKeysRateLimitDefault *RateLimitConfig `protobuf:"bytes,2,opt,name=fairness_keys_rate_limit_default,json=fairnessKeysRateLimitDefault,proto3"` + xxx_hidden_FairnessWeightOverrides map[string]float32 `protobuf:"bytes,3,rep,name=fairness_weight_overrides,json=fairnessWeightOverrides,proto3" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"fixed32,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TaskQueueConfig) Reset() { + *x = TaskQueueConfig{} + mi := &file_temporal_api_taskqueue_v1_message_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TaskQueueConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TaskQueueConfig) ProtoMessage() {} + +func (x *TaskQueueConfig) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_taskqueue_v1_message_proto_msgTypes[24] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *TaskQueueConfig) GetQueueRateLimit() *RateLimitConfig { + if x != nil { + return x.xxx_hidden_QueueRateLimit + } + return nil +} + +func (x *TaskQueueConfig) GetFairnessKeysRateLimitDefault() *RateLimitConfig { + if x != nil { + return x.xxx_hidden_FairnessKeysRateLimitDefault + } + return nil +} + +func (x *TaskQueueConfig) GetFairnessWeightOverrides() map[string]float32 { + if x != nil { + return x.xxx_hidden_FairnessWeightOverrides + } + return nil +} + +func (x *TaskQueueConfig) SetQueueRateLimit(v *RateLimitConfig) { + x.xxx_hidden_QueueRateLimit = v +} + +func (x *TaskQueueConfig) SetFairnessKeysRateLimitDefault(v *RateLimitConfig) { + x.xxx_hidden_FairnessKeysRateLimitDefault = v +} + +func (x *TaskQueueConfig) SetFairnessWeightOverrides(v map[string]float32) { + x.xxx_hidden_FairnessWeightOverrides = v +} + +func (x *TaskQueueConfig) HasQueueRateLimit() bool { + if x == nil { + return false + } + return x.xxx_hidden_QueueRateLimit != nil +} + +func (x *TaskQueueConfig) HasFairnessKeysRateLimitDefault() bool { + if x == nil { + return false + } + return x.xxx_hidden_FairnessKeysRateLimitDefault != nil +} + +func (x *TaskQueueConfig) ClearQueueRateLimit() { + x.xxx_hidden_QueueRateLimit = nil +} + +func (x *TaskQueueConfig) ClearFairnessKeysRateLimitDefault() { + x.xxx_hidden_FairnessKeysRateLimitDefault = nil +} + +type TaskQueueConfig_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Unless modified, this is the system-defined rate limit. + QueueRateLimit *RateLimitConfig + // If set, each individual fairness key will be limited to this rate, scaled by the weight of the fairness key. + FairnessKeysRateLimitDefault *RateLimitConfig + // If set, overrides the fairness weights for the corresponding fairness keys. + FairnessWeightOverrides map[string]float32 +} + +func (b0 TaskQueueConfig_builder) Build() *TaskQueueConfig { + m0 := &TaskQueueConfig{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_QueueRateLimit = b.QueueRateLimit + x.xxx_hidden_FairnessKeysRateLimitDefault = b.FairnessKeysRateLimitDefault + x.xxx_hidden_FairnessWeightOverrides = b.FairnessWeightOverrides + return m0 +} + +var File_temporal_api_taskqueue_v1_message_proto protoreflect.FileDescriptor + +const file_temporal_api_taskqueue_v1_message_proto_rawDesc = "" + + "\n" + + "'temporal/api/taskqueue/v1/message.proto\x12\x19temporal.api.taskqueue.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a&temporal/api/enums/v1/task_queue.proto\x1a$temporal/api/common/v1/message.proto\x1a(temporal/api/deployment/v1/message.proto\"z\n" + + "\tTaskQueue\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x128\n" + + "\x04kind\x18\x02 \x01(\x0e2$.temporal.api.enums.v1.TaskQueueKindR\x04kind\x12\x1f\n" + + "\vnormal_name\x18\x03 \x01(\tR\n" + + "normalName\"b\n" + + "\x11TaskQueueMetadata\x12M\n" + + "\x14max_tasks_per_second\x18\x01 \x01(\v2\x1c.google.protobuf.DoubleValueR\x11maxTasksPerSecond\"\xd4\x03\n" + + "\x17TaskQueueVersioningInfo\x12q\n" + + "\x1acurrent_deployment_version\x18\a \x01(\v23.temporal.api.deployment.v1.WorkerDeploymentVersionR\x18currentDeploymentVersion\x12+\n" + + "\x0fcurrent_version\x18\x01 \x01(\tB\x02\x18\x01R\x0ecurrentVersion\x12q\n" + + "\x1aramping_deployment_version\x18\t \x01(\v23.temporal.api.deployment.v1.WorkerDeploymentVersionR\x18rampingDeploymentVersion\x12+\n" + + "\x0framping_version\x18\x02 \x01(\tB\x02\x18\x01R\x0erampingVersion\x12<\n" + + "\x1aramping_version_percentage\x18\x03 \x01(\x02R\x18rampingVersionPercentage\x12;\n" + + "\vupdate_time\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\n" + + "updateTime\"y\n" + + "\x19TaskQueueVersionSelection\x12\x1b\n" + + "\tbuild_ids\x18\x01 \x03(\tR\bbuildIds\x12 \n" + + "\vunversioned\x18\x02 \x01(\bR\vunversioned\x12\x1d\n" + + "\n" + + "all_active\x18\x03 \x01(\bR\tallActive\"\xbe\x02\n" + + "\x14TaskQueueVersionInfo\x12]\n" + + "\n" + + "types_info\x18\x01 \x03(\v2>.temporal.api.taskqueue.v1.TaskQueueVersionInfo.TypesInfoEntryR\ttypesInfo\x12[\n" + + "\x11task_reachability\x18\x02 \x01(\x0e2..temporal.api.enums.v1.BuildIdTaskReachabilityR\x10taskReachability\x1aj\n" + + "\x0eTypesInfoEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\x05R\x03key\x12B\n" + + "\x05value\x18\x02 \x01(\v2,.temporal.api.taskqueue.v1.TaskQueueTypeInfoR\x05value:\x028\x01\"\x95\x01\n" + + "\x11TaskQueueTypeInfo\x12?\n" + + "\apollers\x18\x01 \x03(\v2%.temporal.api.taskqueue.v1.PollerInfoR\apollers\x12?\n" + + "\x05stats\x18\x02 \x01(\v2).temporal.api.taskqueue.v1.TaskQueueStatsR\x05stats\"\xf5\x01\n" + + "\x0eTaskQueueStats\x12:\n" + + "\x19approximate_backlog_count\x18\x01 \x01(\x03R\x17approximateBacklogCount\x12Q\n" + + "\x17approximate_backlog_age\x18\x02 \x01(\v2\x19.google.protobuf.DurationR\x15approximateBacklogAge\x12$\n" + + "\x0etasks_add_rate\x18\x03 \x01(\x02R\ftasksAddRate\x12.\n" + + "\x13tasks_dispatch_rate\x18\x04 \x01(\x02R\x11tasksDispatchRate\"\xef\x01\n" + + "\x0fTaskQueueStatus\x12,\n" + + "\x12backlog_count_hint\x18\x01 \x01(\x03R\x10backlogCountHint\x12\x1d\n" + + "\n" + + "read_level\x18\x02 \x01(\x03R\treadLevel\x12\x1b\n" + + "\tack_level\x18\x03 \x01(\x03R\backLevel\x12&\n" + + "\x0frate_per_second\x18\x04 \x01(\x01R\rratePerSecond\x12J\n" + + "\rtask_id_block\x18\x05 \x01(\v2&.temporal.api.taskqueue.v1.TaskIdBlockR\vtaskIdBlock\"?\n" + + "\vTaskIdBlock\x12\x19\n" + + "\bstart_id\x18\x01 \x01(\x03R\astartId\x12\x15\n" + + "\x06end_id\x18\x02 \x01(\x03R\x05endId\"V\n" + + "\x1aTaskQueuePartitionMetadata\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12&\n" + + "\x0fowner_host_name\x18\x02 \x01(\tR\rownerHostName\"\xf1\x02\n" + + "\n" + + "PollerInfo\x12D\n" + + "\x10last_access_time\x18\x01 \x01(\v2\x1a.google.protobuf.TimestampR\x0elastAccessTime\x12\x1a\n" + + "\bidentity\x18\x02 \x01(\tR\bidentity\x12&\n" + + "\x0frate_per_second\x18\x03 \x01(\x01R\rratePerSecond\x12u\n" + + "\x1bworker_version_capabilities\x18\x04 \x01(\v21.temporal.api.common.v1.WorkerVersionCapabilitiesB\x02\x18\x01R\x19workerVersionCapabilities\x12b\n" + + "\x12deployment_options\x18\x05 \x01(\v23.temporal.api.deployment.v1.WorkerDeploymentOptionsR\x11deploymentOptions\"\xc3\x01\n" + + "\x19StickyExecutionAttributes\x12P\n" + + "\x11worker_task_queue\x18\x01 \x01(\v2$.temporal.api.taskqueue.v1.TaskQueueR\x0fworkerTaskQueue\x12T\n" + + "\x19schedule_to_start_timeout\x18\x02 \x01(\v2\x19.google.protobuf.DurationR\x16scheduleToStartTimeout\"3\n" + + "\x14CompatibleVersionSet\x12\x1b\n" + + "\tbuild_ids\x18\x01 \x03(\tR\bbuildIds\"\x83\x01\n" + + "\x15TaskQueueReachability\x12\x1d\n" + + "\n" + + "task_queue\x18\x01 \x01(\tR\ttaskQueue\x12K\n" + + "\freachability\x18\x02 \x03(\x0e2'.temporal.api.enums.v1.TaskReachabilityR\freachability\"\x9a\x01\n" + + "\x13BuildIdReachability\x12\x19\n" + + "\bbuild_id\x18\x01 \x01(\tR\abuildId\x12h\n" + + "\x17task_queue_reachability\x18\x02 \x03(\v20.temporal.api.taskqueue.v1.TaskQueueReachabilityR\x15taskQueueReachability\";\n" + + "\x10RampByPercentage\x12'\n" + + "\x0framp_percentage\x18\x01 \x01(\x02R\x0erampPercentage\"\x9f\x01\n" + + "\x15BuildIdAssignmentRule\x12&\n" + + "\x0ftarget_build_id\x18\x01 \x01(\tR\rtargetBuildId\x12V\n" + + "\x0fpercentage_ramp\x18\x03 \x01(\v2+.temporal.api.taskqueue.v1.RampByPercentageH\x00R\x0epercentageRampB\x06\n" + + "\x04ramp\"o\n" + + "\x1dCompatibleBuildIdRedirectRule\x12&\n" + + "\x0fsource_build_id\x18\x01 \x01(\tR\rsourceBuildId\x12&\n" + + "\x0ftarget_build_id\x18\x02 \x01(\tR\rtargetBuildId\"\xa5\x01\n" + + " TimestampedBuildIdAssignmentRule\x12D\n" + + "\x04rule\x18\x01 \x01(\v20.temporal.api.taskqueue.v1.BuildIdAssignmentRuleR\x04rule\x12;\n" + + "\vcreate_time\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\n" + + "createTime\"\xb5\x01\n" + + "(TimestampedCompatibleBuildIdRedirectRule\x12L\n" + + "\x04rule\x18\x01 \x01(\v28.temporal.api.taskqueue.v1.CompatibleBuildIdRedirectRuleR\x04rule\x12;\n" + + "\vcreate_time\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\n" + + "createTime\"Z\n" + + "\x15PollerScalingDecision\x12A\n" + + "\x1dpoll_request_delta_suggestion\x18\x01 \x01(\x05R\x1apollRequestDeltaSuggestion\";\n" + + "\tRateLimit\x12.\n" + + "\x13requests_per_second\x18\x01 \x01(\x02R\x11requestsPerSecond\"\x8e\x01\n" + + "\x0eConfigMetadata\x12\x16\n" + + "\x06reason\x18\x01 \x01(\tR\x06reason\x12'\n" + + "\x0fupdate_identity\x18\x02 \x01(\tR\x0eupdateIdentity\x12;\n" + + "\vupdate_time\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\n" + + "updateTime\"\x9d\x01\n" + + "\x0fRateLimitConfig\x12C\n" + + "\n" + + "rate_limit\x18\x01 \x01(\v2$.temporal.api.taskqueue.v1.RateLimitR\trateLimit\x12E\n" + + "\bmetadata\x18\x02 \x01(\v2).temporal.api.taskqueue.v1.ConfigMetadataR\bmetadata\"\xad\x03\n" + + "\x0fTaskQueueConfig\x12T\n" + + "\x10queue_rate_limit\x18\x01 \x01(\v2*.temporal.api.taskqueue.v1.RateLimitConfigR\x0equeueRateLimit\x12r\n" + + " fairness_keys_rate_limit_default\x18\x02 \x01(\v2*.temporal.api.taskqueue.v1.RateLimitConfigR\x1cfairnessKeysRateLimitDefault\x12\x83\x01\n" + + "\x19fairness_weight_overrides\x18\x03 \x03(\v2G.temporal.api.taskqueue.v1.TaskQueueConfig.FairnessWeightOverridesEntryR\x17fairnessWeightOverrides\x1aJ\n" + + "\x1cFairnessWeightOverridesEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\x02R\x05value:\x028\x01B\x98\x01\n" + + "\x1cio.temporal.api.taskqueue.v1B\fMessageProtoP\x01Z)go.temporal.io/api/taskqueue/v1;taskqueue\xaa\x02\x1bTemporalio.Api.TaskQueue.V1\xea\x02\x1eTemporalio::Api::TaskQueue::V1b\x06proto3" + +var file_temporal_api_taskqueue_v1_message_proto_msgTypes = make([]protoimpl.MessageInfo, 27) +var file_temporal_api_taskqueue_v1_message_proto_goTypes = []any{ + (*TaskQueue)(nil), // 0: temporal.api.taskqueue.v1.TaskQueue + (*TaskQueueMetadata)(nil), // 1: temporal.api.taskqueue.v1.TaskQueueMetadata + (*TaskQueueVersioningInfo)(nil), // 2: temporal.api.taskqueue.v1.TaskQueueVersioningInfo + (*TaskQueueVersionSelection)(nil), // 3: temporal.api.taskqueue.v1.TaskQueueVersionSelection + (*TaskQueueVersionInfo)(nil), // 4: temporal.api.taskqueue.v1.TaskQueueVersionInfo + (*TaskQueueTypeInfo)(nil), // 5: temporal.api.taskqueue.v1.TaskQueueTypeInfo + (*TaskQueueStats)(nil), // 6: temporal.api.taskqueue.v1.TaskQueueStats + (*TaskQueueStatus)(nil), // 7: temporal.api.taskqueue.v1.TaskQueueStatus + (*TaskIdBlock)(nil), // 8: temporal.api.taskqueue.v1.TaskIdBlock + (*TaskQueuePartitionMetadata)(nil), // 9: temporal.api.taskqueue.v1.TaskQueuePartitionMetadata + (*PollerInfo)(nil), // 10: temporal.api.taskqueue.v1.PollerInfo + (*StickyExecutionAttributes)(nil), // 11: temporal.api.taskqueue.v1.StickyExecutionAttributes + (*CompatibleVersionSet)(nil), // 12: temporal.api.taskqueue.v1.CompatibleVersionSet + (*TaskQueueReachability)(nil), // 13: temporal.api.taskqueue.v1.TaskQueueReachability + (*BuildIdReachability)(nil), // 14: temporal.api.taskqueue.v1.BuildIdReachability + (*RampByPercentage)(nil), // 15: temporal.api.taskqueue.v1.RampByPercentage + (*BuildIdAssignmentRule)(nil), // 16: temporal.api.taskqueue.v1.BuildIdAssignmentRule + (*CompatibleBuildIdRedirectRule)(nil), // 17: temporal.api.taskqueue.v1.CompatibleBuildIdRedirectRule + (*TimestampedBuildIdAssignmentRule)(nil), // 18: temporal.api.taskqueue.v1.TimestampedBuildIdAssignmentRule + (*TimestampedCompatibleBuildIdRedirectRule)(nil), // 19: temporal.api.taskqueue.v1.TimestampedCompatibleBuildIdRedirectRule + (*PollerScalingDecision)(nil), // 20: temporal.api.taskqueue.v1.PollerScalingDecision + (*RateLimit)(nil), // 21: temporal.api.taskqueue.v1.RateLimit + (*ConfigMetadata)(nil), // 22: temporal.api.taskqueue.v1.ConfigMetadata + (*RateLimitConfig)(nil), // 23: temporal.api.taskqueue.v1.RateLimitConfig + (*TaskQueueConfig)(nil), // 24: temporal.api.taskqueue.v1.TaskQueueConfig + nil, // 25: temporal.api.taskqueue.v1.TaskQueueVersionInfo.TypesInfoEntry + nil, // 26: temporal.api.taskqueue.v1.TaskQueueConfig.FairnessWeightOverridesEntry + (v1.TaskQueueKind)(0), // 27: temporal.api.enums.v1.TaskQueueKind + (*wrapperspb.DoubleValue)(nil), // 28: google.protobuf.DoubleValue + (*v11.WorkerDeploymentVersion)(nil), // 29: temporal.api.deployment.v1.WorkerDeploymentVersion + (*timestamppb.Timestamp)(nil), // 30: google.protobuf.Timestamp + (v1.BuildIdTaskReachability)(0), // 31: temporal.api.enums.v1.BuildIdTaskReachability + (*durationpb.Duration)(nil), // 32: google.protobuf.Duration + (*v12.WorkerVersionCapabilities)(nil), // 33: temporal.api.common.v1.WorkerVersionCapabilities + (*v11.WorkerDeploymentOptions)(nil), // 34: temporal.api.deployment.v1.WorkerDeploymentOptions + (v1.TaskReachability)(0), // 35: temporal.api.enums.v1.TaskReachability +} +var file_temporal_api_taskqueue_v1_message_proto_depIdxs = []int32{ + 27, // 0: temporal.api.taskqueue.v1.TaskQueue.kind:type_name -> temporal.api.enums.v1.TaskQueueKind + 28, // 1: temporal.api.taskqueue.v1.TaskQueueMetadata.max_tasks_per_second:type_name -> google.protobuf.DoubleValue + 29, // 2: temporal.api.taskqueue.v1.TaskQueueVersioningInfo.current_deployment_version:type_name -> temporal.api.deployment.v1.WorkerDeploymentVersion + 29, // 3: temporal.api.taskqueue.v1.TaskQueueVersioningInfo.ramping_deployment_version:type_name -> temporal.api.deployment.v1.WorkerDeploymentVersion + 30, // 4: temporal.api.taskqueue.v1.TaskQueueVersioningInfo.update_time:type_name -> google.protobuf.Timestamp + 25, // 5: temporal.api.taskqueue.v1.TaskQueueVersionInfo.types_info:type_name -> temporal.api.taskqueue.v1.TaskQueueVersionInfo.TypesInfoEntry + 31, // 6: temporal.api.taskqueue.v1.TaskQueueVersionInfo.task_reachability:type_name -> temporal.api.enums.v1.BuildIdTaskReachability + 10, // 7: temporal.api.taskqueue.v1.TaskQueueTypeInfo.pollers:type_name -> temporal.api.taskqueue.v1.PollerInfo + 6, // 8: temporal.api.taskqueue.v1.TaskQueueTypeInfo.stats:type_name -> temporal.api.taskqueue.v1.TaskQueueStats + 32, // 9: temporal.api.taskqueue.v1.TaskQueueStats.approximate_backlog_age:type_name -> google.protobuf.Duration + 8, // 10: temporal.api.taskqueue.v1.TaskQueueStatus.task_id_block:type_name -> temporal.api.taskqueue.v1.TaskIdBlock + 30, // 11: temporal.api.taskqueue.v1.PollerInfo.last_access_time:type_name -> google.protobuf.Timestamp + 33, // 12: temporal.api.taskqueue.v1.PollerInfo.worker_version_capabilities:type_name -> temporal.api.common.v1.WorkerVersionCapabilities + 34, // 13: temporal.api.taskqueue.v1.PollerInfo.deployment_options:type_name -> temporal.api.deployment.v1.WorkerDeploymentOptions + 0, // 14: temporal.api.taskqueue.v1.StickyExecutionAttributes.worker_task_queue:type_name -> temporal.api.taskqueue.v1.TaskQueue + 32, // 15: temporal.api.taskqueue.v1.StickyExecutionAttributes.schedule_to_start_timeout:type_name -> google.protobuf.Duration + 35, // 16: temporal.api.taskqueue.v1.TaskQueueReachability.reachability:type_name -> temporal.api.enums.v1.TaskReachability + 13, // 17: temporal.api.taskqueue.v1.BuildIdReachability.task_queue_reachability:type_name -> temporal.api.taskqueue.v1.TaskQueueReachability + 15, // 18: temporal.api.taskqueue.v1.BuildIdAssignmentRule.percentage_ramp:type_name -> temporal.api.taskqueue.v1.RampByPercentage + 16, // 19: temporal.api.taskqueue.v1.TimestampedBuildIdAssignmentRule.rule:type_name -> temporal.api.taskqueue.v1.BuildIdAssignmentRule + 30, // 20: temporal.api.taskqueue.v1.TimestampedBuildIdAssignmentRule.create_time:type_name -> google.protobuf.Timestamp + 17, // 21: temporal.api.taskqueue.v1.TimestampedCompatibleBuildIdRedirectRule.rule:type_name -> temporal.api.taskqueue.v1.CompatibleBuildIdRedirectRule + 30, // 22: temporal.api.taskqueue.v1.TimestampedCompatibleBuildIdRedirectRule.create_time:type_name -> google.protobuf.Timestamp + 30, // 23: temporal.api.taskqueue.v1.ConfigMetadata.update_time:type_name -> google.protobuf.Timestamp + 21, // 24: temporal.api.taskqueue.v1.RateLimitConfig.rate_limit:type_name -> temporal.api.taskqueue.v1.RateLimit + 22, // 25: temporal.api.taskqueue.v1.RateLimitConfig.metadata:type_name -> temporal.api.taskqueue.v1.ConfigMetadata + 23, // 26: temporal.api.taskqueue.v1.TaskQueueConfig.queue_rate_limit:type_name -> temporal.api.taskqueue.v1.RateLimitConfig + 23, // 27: temporal.api.taskqueue.v1.TaskQueueConfig.fairness_keys_rate_limit_default:type_name -> temporal.api.taskqueue.v1.RateLimitConfig + 26, // 28: temporal.api.taskqueue.v1.TaskQueueConfig.fairness_weight_overrides:type_name -> temporal.api.taskqueue.v1.TaskQueueConfig.FairnessWeightOverridesEntry + 5, // 29: temporal.api.taskqueue.v1.TaskQueueVersionInfo.TypesInfoEntry.value:type_name -> temporal.api.taskqueue.v1.TaskQueueTypeInfo + 30, // [30:30] is the sub-list for method output_type + 30, // [30:30] is the sub-list for method input_type + 30, // [30:30] is the sub-list for extension type_name + 30, // [30:30] is the sub-list for extension extendee + 0, // [0:30] is the sub-list for field type_name +} + +func init() { file_temporal_api_taskqueue_v1_message_proto_init() } +func file_temporal_api_taskqueue_v1_message_proto_init() { + if File_temporal_api_taskqueue_v1_message_proto != nil { + return + } + file_temporal_api_taskqueue_v1_message_proto_msgTypes[16].OneofWrappers = []any{ + (*buildIdAssignmentRule_PercentageRamp)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_api_taskqueue_v1_message_proto_rawDesc), len(file_temporal_api_taskqueue_v1_message_proto_rawDesc)), + NumEnums: 0, + NumMessages: 27, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_temporal_api_taskqueue_v1_message_proto_goTypes, + DependencyIndexes: file_temporal_api_taskqueue_v1_message_proto_depIdxs, + MessageInfos: file_temporal_api_taskqueue_v1_message_proto_msgTypes, + }.Build() + File_temporal_api_taskqueue_v1_message_proto = out.File + file_temporal_api_taskqueue_v1_message_proto_goTypes = nil + file_temporal_api_taskqueue_v1_message_proto_depIdxs = nil +} diff --git a/update/v1/message.pb.go b/update/v1/message.pb.go index 1d5dd7bc..4d46cef5 100644 --- a/update/v1/message.pb.go +++ b/update/v1/message.pb.go @@ -4,11 +4,13 @@ // protoc // source: temporal/api/update/v1/message.proto +//go:build !protoopaque + package update import ( reflect "reflect" - sync "sync" + "strconv" unsafe "unsafe" v11 "go.temporal.io/api/common/v1" @@ -27,7 +29,7 @@ const ( // Specifies client's intent to wait for Update results. type WaitPolicy struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Indicates the Update lifecycle stage that the Update must reach before // API call is returned. // NOTE: This field works together with API call timeout which is limited by @@ -63,11 +65,6 @@ func (x *WaitPolicy) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use WaitPolicy.ProtoReflect.Descriptor instead. -func (*WaitPolicy) Descriptor() ([]byte, []int) { - return file_temporal_api_update_v1_message_proto_rawDescGZIP(), []int{0} -} - func (x *WaitPolicy) GetLifecycleStage() v1.UpdateWorkflowExecutionLifecycleStage { if x != nil { return x.LifecycleStage @@ -75,9 +72,32 @@ func (x *WaitPolicy) GetLifecycleStage() v1.UpdateWorkflowExecutionLifecycleStag return v1.UpdateWorkflowExecutionLifecycleStage(0) } +func (x *WaitPolicy) SetLifecycleStage(v v1.UpdateWorkflowExecutionLifecycleStage) { + x.LifecycleStage = v +} + +type WaitPolicy_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Indicates the Update lifecycle stage that the Update must reach before + // API call is returned. + // NOTE: This field works together with API call timeout which is limited by + // server timeout (maximum wait time). If server timeout is expired before + // user specified timeout, API call returns even if specified stage is not reached. + LifecycleStage v1.UpdateWorkflowExecutionLifecycleStage +} + +func (b0 WaitPolicy_builder) Build() *WaitPolicy { + m0 := &WaitPolicy{} + b, x := &b0, m0 + _, _ = b, x + x.LifecycleStage = b.LifecycleStage + return m0 +} + // The data needed by a client to refer to a previously invoked Workflow Update. type UpdateRef struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` WorkflowExecution *v11.WorkflowExecution `protobuf:"bytes,1,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` UpdateId string `protobuf:"bytes,2,opt,name=update_id,json=updateId,proto3" json:"update_id,omitempty"` unknownFields protoimpl.UnknownFields @@ -109,11 +129,6 @@ func (x *UpdateRef) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UpdateRef.ProtoReflect.Descriptor instead. -func (*UpdateRef) Descriptor() ([]byte, []int) { - return file_temporal_api_update_v1_message_proto_rawDescGZIP(), []int{1} -} - func (x *UpdateRef) GetWorkflowExecution() *v11.WorkflowExecution { if x != nil { return x.WorkflowExecution @@ -128,9 +143,44 @@ func (x *UpdateRef) GetUpdateId() string { return "" } +func (x *UpdateRef) SetWorkflowExecution(v *v11.WorkflowExecution) { + x.WorkflowExecution = v +} + +func (x *UpdateRef) SetUpdateId(v string) { + x.UpdateId = v +} + +func (x *UpdateRef) HasWorkflowExecution() bool { + if x == nil { + return false + } + return x.WorkflowExecution != nil +} + +func (x *UpdateRef) ClearWorkflowExecution() { + x.WorkflowExecution = nil +} + +type UpdateRef_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + WorkflowExecution *v11.WorkflowExecution + UpdateId string +} + +func (b0 UpdateRef_builder) Build() *UpdateRef { + m0 := &UpdateRef{} + b, x := &b0, m0 + _, _ = b, x + x.WorkflowExecution = b.WorkflowExecution + x.UpdateId = b.UpdateId + return m0 +} + // The outcome of a Workflow Update: success or failure. type Outcome struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Types that are valid to be assigned to Value: // // *Outcome_Success @@ -165,11 +215,6 @@ func (x *Outcome) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Outcome.ProtoReflect.Descriptor instead. -func (*Outcome) Descriptor() ([]byte, []int) { - return file_temporal_api_update_v1_message_proto_rawDescGZIP(), []int{2} -} - func (x *Outcome) GetValue() isOutcome_Value { if x != nil { return x.Value @@ -195,6 +240,117 @@ func (x *Outcome) GetFailure() *v12.Failure { return nil } +func (x *Outcome) SetSuccess(v *v11.Payloads) { + if v == nil { + x.Value = nil + return + } + x.Value = &Outcome_Success{v} +} + +func (x *Outcome) SetFailure(v *v12.Failure) { + if v == nil { + x.Value = nil + return + } + x.Value = &Outcome_Failure{v} +} + +func (x *Outcome) HasValue() bool { + if x == nil { + return false + } + return x.Value != nil +} + +func (x *Outcome) HasSuccess() bool { + if x == nil { + return false + } + _, ok := x.Value.(*Outcome_Success) + return ok +} + +func (x *Outcome) HasFailure() bool { + if x == nil { + return false + } + _, ok := x.Value.(*Outcome_Failure) + return ok +} + +func (x *Outcome) ClearValue() { + x.Value = nil +} + +func (x *Outcome) ClearSuccess() { + if _, ok := x.Value.(*Outcome_Success); ok { + x.Value = nil + } +} + +func (x *Outcome) ClearFailure() { + if _, ok := x.Value.(*Outcome_Failure); ok { + x.Value = nil + } +} + +const Outcome_Value_not_set_case case_Outcome_Value = 0 +const Outcome_Success_case case_Outcome_Value = 1 +const Outcome_Failure_case case_Outcome_Value = 2 + +func (x *Outcome) WhichValue() case_Outcome_Value { + if x == nil { + return Outcome_Value_not_set_case + } + switch x.Value.(type) { + case *Outcome_Success: + return Outcome_Success_case + case *Outcome_Failure: + return Outcome_Failure_case + default: + return Outcome_Value_not_set_case + } +} + +type Outcome_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Fields of oneof Value: + Success *v11.Payloads + Failure *v12.Failure + // -- end of Value +} + +func (b0 Outcome_builder) Build() *Outcome { + m0 := &Outcome{} + b, x := &b0, m0 + _, _ = b, x + if b.Success != nil { + x.Value = &Outcome_Success{b.Success} + } + if b.Failure != nil { + x.Value = &Outcome_Failure{b.Failure} + } + return m0 +} + +type case_Outcome_Value protoreflect.FieldNumber + +func (x case_Outcome_Value) String() string { + switch x { + case Outcome_Value_not_set_case: + return "OutcomeValueNotSetCase" + case Outcome_Success_case: + return "OutcomeSuccessCase" + case Outcome_Failure_case: + return "OutcomeFailureCase" + default: + return strconv.Itoa(int(x)) + } + +} + type isOutcome_Value interface { isOutcome_Value() } @@ -213,7 +369,7 @@ func (*Outcome_Failure) isOutcome_Value() {} // Metadata about a Workflow Update. type Meta struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // An ID with workflow-scoped uniqueness for this Update. UpdateId string `protobuf:"bytes,1,opt,name=update_id,json=updateId,proto3" json:"update_id,omitempty"` // A string identifying the agent that requested this Update. @@ -247,11 +403,6 @@ func (x *Meta) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Meta.ProtoReflect.Descriptor instead. -func (*Meta) Descriptor() ([]byte, []int) { - return file_temporal_api_update_v1_message_proto_rawDescGZIP(), []int{3} -} - func (x *Meta) GetUpdateId() string { if x != nil { return x.UpdateId @@ -266,8 +417,34 @@ func (x *Meta) GetIdentity() string { return "" } +func (x *Meta) SetUpdateId(v string) { + x.UpdateId = v +} + +func (x *Meta) SetIdentity(v string) { + x.Identity = v +} + +type Meta_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // An ID with workflow-scoped uniqueness for this Update. + UpdateId string + // A string identifying the agent that requested this Update. + Identity string +} + +func (b0 Meta_builder) Build() *Meta { + m0 := &Meta{} + b, x := &b0, m0 + _, _ = b, x + x.UpdateId = b.UpdateId + x.Identity = b.Identity + return m0 +} + type Input struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Headers that are passed with the Update from the requesting entity. // These can include things like auth or tracing tokens. Header *v11.Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` @@ -304,11 +481,6 @@ func (x *Input) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Input.ProtoReflect.Descriptor instead. -func (*Input) Descriptor() ([]byte, []int) { - return file_temporal_api_update_v1_message_proto_rawDescGZIP(), []int{4} -} - func (x *Input) GetHeader() *v11.Header { if x != nil { return x.Header @@ -330,9 +502,65 @@ func (x *Input) GetArgs() *v11.Payloads { return nil } +func (x *Input) SetHeader(v *v11.Header) { + x.Header = v +} + +func (x *Input) SetName(v string) { + x.Name = v +} + +func (x *Input) SetArgs(v *v11.Payloads) { + x.Args = v +} + +func (x *Input) HasHeader() bool { + if x == nil { + return false + } + return x.Header != nil +} + +func (x *Input) HasArgs() bool { + if x == nil { + return false + } + return x.Args != nil +} + +func (x *Input) ClearHeader() { + x.Header = nil +} + +func (x *Input) ClearArgs() { + x.Args = nil +} + +type Input_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Headers that are passed with the Update from the requesting entity. + // These can include things like auth or tracing tokens. + Header *v11.Header + // The name of the Update handler to invoke on the target Workflow. + Name string + // The arguments to pass to the named Update handler. + Args *v11.Payloads +} + +func (b0 Input_builder) Build() *Input { + m0 := &Input{} + b, x := &b0, m0 + _, _ = b, x + x.Header = b.Header + x.Name = b.Name + x.Args = b.Args + return m0 +} + // The client request that triggers a Workflow Update. type Request struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Meta *Meta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` Input *Input `protobuf:"bytes,2,opt,name=input,proto3" json:"input,omitempty"` unknownFields protoimpl.UnknownFields @@ -364,11 +592,6 @@ func (x *Request) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Request.ProtoReflect.Descriptor instead. -func (*Request) Descriptor() ([]byte, []int) { - return file_temporal_api_update_v1_message_proto_rawDescGZIP(), []int{5} -} - func (x *Request) GetMeta() *Meta { if x != nil { return x.Meta @@ -383,9 +606,55 @@ func (x *Request) GetInput() *Input { return nil } +func (x *Request) SetMeta(v *Meta) { + x.Meta = v +} + +func (x *Request) SetInput(v *Input) { + x.Input = v +} + +func (x *Request) HasMeta() bool { + if x == nil { + return false + } + return x.Meta != nil +} + +func (x *Request) HasInput() bool { + if x == nil { + return false + } + return x.Input != nil +} + +func (x *Request) ClearMeta() { + x.Meta = nil +} + +func (x *Request) ClearInput() { + x.Input = nil +} + +type Request_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Meta *Meta + Input *Input +} + +func (b0 Request_builder) Build() *Request { + m0 := &Request{} + b, x := &b0, m0 + _, _ = b, x + x.Meta = b.Meta + x.Input = b.Input + return m0 +} + // An Update protocol message indicating that a Workflow Update has been rejected. type Rejection struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` RejectedRequestMessageId string `protobuf:"bytes,1,opt,name=rejected_request_message_id,json=rejectedRequestMessageId,proto3" json:"rejected_request_message_id,omitempty"` RejectedRequestSequencingEventId int64 `protobuf:"varint,2,opt,name=rejected_request_sequencing_event_id,json=rejectedRequestSequencingEventId,proto3" json:"rejected_request_sequencing_event_id,omitempty"` RejectedRequest *Request `protobuf:"bytes,3,opt,name=rejected_request,json=rejectedRequest,proto3" json:"rejected_request,omitempty"` @@ -419,11 +688,6 @@ func (x *Rejection) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Rejection.ProtoReflect.Descriptor instead. -func (*Rejection) Descriptor() ([]byte, []int) { - return file_temporal_api_update_v1_message_proto_rawDescGZIP(), []int{6} -} - func (x *Rejection) GetRejectedRequestMessageId() string { if x != nil { return x.RejectedRequestMessageId @@ -452,10 +716,68 @@ func (x *Rejection) GetFailure() *v12.Failure { return nil } +func (x *Rejection) SetRejectedRequestMessageId(v string) { + x.RejectedRequestMessageId = v +} + +func (x *Rejection) SetRejectedRequestSequencingEventId(v int64) { + x.RejectedRequestSequencingEventId = v +} + +func (x *Rejection) SetRejectedRequest(v *Request) { + x.RejectedRequest = v +} + +func (x *Rejection) SetFailure(v *v12.Failure) { + x.Failure = v +} + +func (x *Rejection) HasRejectedRequest() bool { + if x == nil { + return false + } + return x.RejectedRequest != nil +} + +func (x *Rejection) HasFailure() bool { + if x == nil { + return false + } + return x.Failure != nil +} + +func (x *Rejection) ClearRejectedRequest() { + x.RejectedRequest = nil +} + +func (x *Rejection) ClearFailure() { + x.Failure = nil +} + +type Rejection_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + RejectedRequestMessageId string + RejectedRequestSequencingEventId int64 + RejectedRequest *Request + Failure *v12.Failure +} + +func (b0 Rejection_builder) Build() *Rejection { + m0 := &Rejection{} + b, x := &b0, m0 + _, _ = b, x + x.RejectedRequestMessageId = b.RejectedRequestMessageId + x.RejectedRequestSequencingEventId = b.RejectedRequestSequencingEventId + x.RejectedRequest = b.RejectedRequest + x.Failure = b.Failure + return m0 +} + // An Update protocol message indicating that a Workflow Update has // been accepted (i.e. passed the worker-side validation phase). type Acceptance struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` AcceptedRequestMessageId string `protobuf:"bytes,1,opt,name=accepted_request_message_id,json=acceptedRequestMessageId,proto3" json:"accepted_request_message_id,omitempty"` AcceptedRequestSequencingEventId int64 `protobuf:"varint,2,opt,name=accepted_request_sequencing_event_id,json=acceptedRequestSequencingEventId,proto3" json:"accepted_request_sequencing_event_id,omitempty"` AcceptedRequest *Request `protobuf:"bytes,3,opt,name=accepted_request,json=acceptedRequest,proto3" json:"accepted_request,omitempty"` @@ -488,11 +810,6 @@ func (x *Acceptance) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Acceptance.ProtoReflect.Descriptor instead. -func (*Acceptance) Descriptor() ([]byte, []int) { - return file_temporal_api_update_v1_message_proto_rawDescGZIP(), []int{7} -} - func (x *Acceptance) GetAcceptedRequestMessageId() string { if x != nil { return x.AcceptedRequestMessageId @@ -514,10 +831,51 @@ func (x *Acceptance) GetAcceptedRequest() *Request { return nil } +func (x *Acceptance) SetAcceptedRequestMessageId(v string) { + x.AcceptedRequestMessageId = v +} + +func (x *Acceptance) SetAcceptedRequestSequencingEventId(v int64) { + x.AcceptedRequestSequencingEventId = v +} + +func (x *Acceptance) SetAcceptedRequest(v *Request) { + x.AcceptedRequest = v +} + +func (x *Acceptance) HasAcceptedRequest() bool { + if x == nil { + return false + } + return x.AcceptedRequest != nil +} + +func (x *Acceptance) ClearAcceptedRequest() { + x.AcceptedRequest = nil +} + +type Acceptance_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + AcceptedRequestMessageId string + AcceptedRequestSequencingEventId int64 + AcceptedRequest *Request +} + +func (b0 Acceptance_builder) Build() *Acceptance { + m0 := &Acceptance{} + b, x := &b0, m0 + _, _ = b, x + x.AcceptedRequestMessageId = b.AcceptedRequestMessageId + x.AcceptedRequestSequencingEventId = b.AcceptedRequestSequencingEventId + x.AcceptedRequest = b.AcceptedRequest + return m0 +} + // An Update protocol message indicating that a Workflow Update has // completed with the contained outcome. type Response struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Meta *Meta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` Outcome *Outcome `protobuf:"bytes,2,opt,name=outcome,proto3" json:"outcome,omitempty"` unknownFields protoimpl.UnknownFields @@ -549,11 +907,6 @@ func (x *Response) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Response.ProtoReflect.Descriptor instead. -func (*Response) Descriptor() ([]byte, []int) { - return file_temporal_api_update_v1_message_proto_rawDescGZIP(), []int{8} -} - func (x *Response) GetMeta() *Meta { if x != nil { return x.Meta @@ -568,6 +921,52 @@ func (x *Response) GetOutcome() *Outcome { return nil } +func (x *Response) SetMeta(v *Meta) { + x.Meta = v +} + +func (x *Response) SetOutcome(v *Outcome) { + x.Outcome = v +} + +func (x *Response) HasMeta() bool { + if x == nil { + return false + } + return x.Meta != nil +} + +func (x *Response) HasOutcome() bool { + if x == nil { + return false + } + return x.Outcome != nil +} + +func (x *Response) ClearMeta() { + x.Meta = nil +} + +func (x *Response) ClearOutcome() { + x.Outcome = nil +} + +type Response_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Meta *Meta + Outcome *Outcome +} + +func (b0 Response_builder) Build() *Response { + m0 := &Response{} + b, x := &b0, m0 + _, _ = b, x + x.Meta = b.Meta + x.Outcome = b.Outcome + return m0 +} + var File_temporal_api_update_v1_message_proto protoreflect.FileDescriptor const file_temporal_api_update_v1_message_proto_rawDesc = "" + @@ -608,18 +1007,6 @@ const file_temporal_api_update_v1_message_proto_rawDesc = "" + "\aoutcome\x18\x02 \x01(\v2\x1f.temporal.api.update.v1.OutcomeR\aoutcomeB\x89\x01\n" + "\x19io.temporal.api.update.v1B\fMessageProtoP\x01Z#go.temporal.io/api/update/v1;update\xaa\x02\x18Temporalio.Api.Update.V1\xea\x02\x1bTemporalio::Api::Update::V1b\x06proto3" -var ( - file_temporal_api_update_v1_message_proto_rawDescOnce sync.Once - file_temporal_api_update_v1_message_proto_rawDescData []byte -) - -func file_temporal_api_update_v1_message_proto_rawDescGZIP() []byte { - file_temporal_api_update_v1_message_proto_rawDescOnce.Do(func() { - file_temporal_api_update_v1_message_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_api_update_v1_message_proto_rawDesc), len(file_temporal_api_update_v1_message_proto_rawDesc))) - }) - return file_temporal_api_update_v1_message_proto_rawDescData -} - var file_temporal_api_update_v1_message_proto_msgTypes = make([]protoimpl.MessageInfo, 9) var file_temporal_api_update_v1_message_proto_goTypes = []any{ (*WaitPolicy)(nil), // 0: temporal.api.update.v1.WaitPolicy diff --git a/update/v1/message_protoopaque.pb.go b/update/v1/message_protoopaque.pb.go new file mode 100644 index 00000000..c3f1cf97 --- /dev/null +++ b/update/v1/message_protoopaque.pb.go @@ -0,0 +1,1052 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// plugins: +// protoc-gen-go +// protoc +// source: temporal/api/update/v1/message.proto + +//go:build protoopaque + +package update + +import ( + reflect "reflect" + "strconv" + unsafe "unsafe" + + v11 "go.temporal.io/api/common/v1" + v1 "go.temporal.io/api/enums/v1" + v12 "go.temporal.io/api/failure/v1" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Specifies client's intent to wait for Update results. +type WaitPolicy struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_LifecycleStage v1.UpdateWorkflowExecutionLifecycleStage `protobuf:"varint,1,opt,name=lifecycle_stage,json=lifecycleStage,proto3,enum=temporal.api.enums.v1.UpdateWorkflowExecutionLifecycleStage"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WaitPolicy) Reset() { + *x = WaitPolicy{} + mi := &file_temporal_api_update_v1_message_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WaitPolicy) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WaitPolicy) ProtoMessage() {} + +func (x *WaitPolicy) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_update_v1_message_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WaitPolicy) GetLifecycleStage() v1.UpdateWorkflowExecutionLifecycleStage { + if x != nil { + return x.xxx_hidden_LifecycleStage + } + return v1.UpdateWorkflowExecutionLifecycleStage(0) +} + +func (x *WaitPolicy) SetLifecycleStage(v v1.UpdateWorkflowExecutionLifecycleStage) { + x.xxx_hidden_LifecycleStage = v +} + +type WaitPolicy_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Indicates the Update lifecycle stage that the Update must reach before + // API call is returned. + // NOTE: This field works together with API call timeout which is limited by + // server timeout (maximum wait time). If server timeout is expired before + // user specified timeout, API call returns even if specified stage is not reached. + LifecycleStage v1.UpdateWorkflowExecutionLifecycleStage +} + +func (b0 WaitPolicy_builder) Build() *WaitPolicy { + m0 := &WaitPolicy{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_LifecycleStage = b.LifecycleStage + return m0 +} + +// The data needed by a client to refer to a previously invoked Workflow Update. +type UpdateRef struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_WorkflowExecution *v11.WorkflowExecution `protobuf:"bytes,1,opt,name=workflow_execution,json=workflowExecution,proto3"` + xxx_hidden_UpdateId string `protobuf:"bytes,2,opt,name=update_id,json=updateId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateRef) Reset() { + *x = UpdateRef{} + mi := &file_temporal_api_update_v1_message_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateRef) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateRef) ProtoMessage() {} + +func (x *UpdateRef) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_update_v1_message_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UpdateRef) GetWorkflowExecution() *v11.WorkflowExecution { + if x != nil { + return x.xxx_hidden_WorkflowExecution + } + return nil +} + +func (x *UpdateRef) GetUpdateId() string { + if x != nil { + return x.xxx_hidden_UpdateId + } + return "" +} + +func (x *UpdateRef) SetWorkflowExecution(v *v11.WorkflowExecution) { + x.xxx_hidden_WorkflowExecution = v +} + +func (x *UpdateRef) SetUpdateId(v string) { + x.xxx_hidden_UpdateId = v +} + +func (x *UpdateRef) HasWorkflowExecution() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowExecution != nil +} + +func (x *UpdateRef) ClearWorkflowExecution() { + x.xxx_hidden_WorkflowExecution = nil +} + +type UpdateRef_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + WorkflowExecution *v11.WorkflowExecution + UpdateId string +} + +func (b0 UpdateRef_builder) Build() *UpdateRef { + m0 := &UpdateRef{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_WorkflowExecution = b.WorkflowExecution + x.xxx_hidden_UpdateId = b.UpdateId + return m0 +} + +// The outcome of a Workflow Update: success or failure. +type Outcome struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Value isOutcome_Value `protobuf_oneof:"value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Outcome) Reset() { + *x = Outcome{} + mi := &file_temporal_api_update_v1_message_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Outcome) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Outcome) ProtoMessage() {} + +func (x *Outcome) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_update_v1_message_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *Outcome) GetSuccess() *v11.Payloads { + if x != nil { + if x, ok := x.xxx_hidden_Value.(*outcome_Success); ok { + return x.Success + } + } + return nil +} + +func (x *Outcome) GetFailure() *v12.Failure { + if x != nil { + if x, ok := x.xxx_hidden_Value.(*outcome_Failure); ok { + return x.Failure + } + } + return nil +} + +func (x *Outcome) SetSuccess(v *v11.Payloads) { + if v == nil { + x.xxx_hidden_Value = nil + return + } + x.xxx_hidden_Value = &outcome_Success{v} +} + +func (x *Outcome) SetFailure(v *v12.Failure) { + if v == nil { + x.xxx_hidden_Value = nil + return + } + x.xxx_hidden_Value = &outcome_Failure{v} +} + +func (x *Outcome) HasValue() bool { + if x == nil { + return false + } + return x.xxx_hidden_Value != nil +} + +func (x *Outcome) HasSuccess() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Value.(*outcome_Success) + return ok +} + +func (x *Outcome) HasFailure() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Value.(*outcome_Failure) + return ok +} + +func (x *Outcome) ClearValue() { + x.xxx_hidden_Value = nil +} + +func (x *Outcome) ClearSuccess() { + if _, ok := x.xxx_hidden_Value.(*outcome_Success); ok { + x.xxx_hidden_Value = nil + } +} + +func (x *Outcome) ClearFailure() { + if _, ok := x.xxx_hidden_Value.(*outcome_Failure); ok { + x.xxx_hidden_Value = nil + } +} + +const Outcome_Value_not_set_case case_Outcome_Value = 0 +const Outcome_Success_case case_Outcome_Value = 1 +const Outcome_Failure_case case_Outcome_Value = 2 + +func (x *Outcome) WhichValue() case_Outcome_Value { + if x == nil { + return Outcome_Value_not_set_case + } + switch x.xxx_hidden_Value.(type) { + case *outcome_Success: + return Outcome_Success_case + case *outcome_Failure: + return Outcome_Failure_case + default: + return Outcome_Value_not_set_case + } +} + +type Outcome_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Fields of oneof xxx_hidden_Value: + Success *v11.Payloads + Failure *v12.Failure + // -- end of xxx_hidden_Value +} + +func (b0 Outcome_builder) Build() *Outcome { + m0 := &Outcome{} + b, x := &b0, m0 + _, _ = b, x + if b.Success != nil { + x.xxx_hidden_Value = &outcome_Success{b.Success} + } + if b.Failure != nil { + x.xxx_hidden_Value = &outcome_Failure{b.Failure} + } + return m0 +} + +type case_Outcome_Value protoreflect.FieldNumber + +func (x case_Outcome_Value) String() string { + switch x { + case Outcome_Value_not_set_case: + return "OutcomeValueNotSetCase" + case Outcome_Success_case: + return "OutcomeSuccessCase" + case Outcome_Failure_case: + return "OutcomeFailureCase" + default: + return strconv.Itoa(int(x)) + } + +} + +type isOutcome_Value interface { + isOutcome_Value() +} + +type outcome_Success struct { + Success *v11.Payloads `protobuf:"bytes,1,opt,name=success,proto3,oneof"` +} + +type outcome_Failure struct { + Failure *v12.Failure `protobuf:"bytes,2,opt,name=failure,proto3,oneof"` +} + +func (*outcome_Success) isOutcome_Value() {} + +func (*outcome_Failure) isOutcome_Value() {} + +// Metadata about a Workflow Update. +type Meta struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_UpdateId string `protobuf:"bytes,1,opt,name=update_id,json=updateId,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,2,opt,name=identity,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Meta) Reset() { + *x = Meta{} + mi := &file_temporal_api_update_v1_message_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Meta) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Meta) ProtoMessage() {} + +func (x *Meta) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_update_v1_message_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *Meta) GetUpdateId() string { + if x != nil { + return x.xxx_hidden_UpdateId + } + return "" +} + +func (x *Meta) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *Meta) SetUpdateId(v string) { + x.xxx_hidden_UpdateId = v +} + +func (x *Meta) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +type Meta_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // An ID with workflow-scoped uniqueness for this Update. + UpdateId string + // A string identifying the agent that requested this Update. + Identity string +} + +func (b0 Meta_builder) Build() *Meta { + m0 := &Meta{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_UpdateId = b.UpdateId + x.xxx_hidden_Identity = b.Identity + return m0 +} + +type Input struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Header *v11.Header `protobuf:"bytes,1,opt,name=header,proto3"` + xxx_hidden_Name string `protobuf:"bytes,2,opt,name=name,proto3"` + xxx_hidden_Args *v11.Payloads `protobuf:"bytes,3,opt,name=args,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Input) Reset() { + *x = Input{} + mi := &file_temporal_api_update_v1_message_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Input) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Input) ProtoMessage() {} + +func (x *Input) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_update_v1_message_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *Input) GetHeader() *v11.Header { + if x != nil { + return x.xxx_hidden_Header + } + return nil +} + +func (x *Input) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *Input) GetArgs() *v11.Payloads { + if x != nil { + return x.xxx_hidden_Args + } + return nil +} + +func (x *Input) SetHeader(v *v11.Header) { + x.xxx_hidden_Header = v +} + +func (x *Input) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *Input) SetArgs(v *v11.Payloads) { + x.xxx_hidden_Args = v +} + +func (x *Input) HasHeader() bool { + if x == nil { + return false + } + return x.xxx_hidden_Header != nil +} + +func (x *Input) HasArgs() bool { + if x == nil { + return false + } + return x.xxx_hidden_Args != nil +} + +func (x *Input) ClearHeader() { + x.xxx_hidden_Header = nil +} + +func (x *Input) ClearArgs() { + x.xxx_hidden_Args = nil +} + +type Input_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Headers that are passed with the Update from the requesting entity. + // These can include things like auth or tracing tokens. + Header *v11.Header + // The name of the Update handler to invoke on the target Workflow. + Name string + // The arguments to pass to the named Update handler. + Args *v11.Payloads +} + +func (b0 Input_builder) Build() *Input { + m0 := &Input{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Header = b.Header + x.xxx_hidden_Name = b.Name + x.xxx_hidden_Args = b.Args + return m0 +} + +// The client request that triggers a Workflow Update. +type Request struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Meta *Meta `protobuf:"bytes,1,opt,name=meta,proto3"` + xxx_hidden_Input *Input `protobuf:"bytes,2,opt,name=input,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Request) Reset() { + *x = Request{} + mi := &file_temporal_api_update_v1_message_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Request) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Request) ProtoMessage() {} + +func (x *Request) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_update_v1_message_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *Request) GetMeta() *Meta { + if x != nil { + return x.xxx_hidden_Meta + } + return nil +} + +func (x *Request) GetInput() *Input { + if x != nil { + return x.xxx_hidden_Input + } + return nil +} + +func (x *Request) SetMeta(v *Meta) { + x.xxx_hidden_Meta = v +} + +func (x *Request) SetInput(v *Input) { + x.xxx_hidden_Input = v +} + +func (x *Request) HasMeta() bool { + if x == nil { + return false + } + return x.xxx_hidden_Meta != nil +} + +func (x *Request) HasInput() bool { + if x == nil { + return false + } + return x.xxx_hidden_Input != nil +} + +func (x *Request) ClearMeta() { + x.xxx_hidden_Meta = nil +} + +func (x *Request) ClearInput() { + x.xxx_hidden_Input = nil +} + +type Request_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Meta *Meta + Input *Input +} + +func (b0 Request_builder) Build() *Request { + m0 := &Request{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Meta = b.Meta + x.xxx_hidden_Input = b.Input + return m0 +} + +// An Update protocol message indicating that a Workflow Update has been rejected. +type Rejection struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RejectedRequestMessageId string `protobuf:"bytes,1,opt,name=rejected_request_message_id,json=rejectedRequestMessageId,proto3"` + xxx_hidden_RejectedRequestSequencingEventId int64 `protobuf:"varint,2,opt,name=rejected_request_sequencing_event_id,json=rejectedRequestSequencingEventId,proto3"` + xxx_hidden_RejectedRequest *Request `protobuf:"bytes,3,opt,name=rejected_request,json=rejectedRequest,proto3"` + xxx_hidden_Failure *v12.Failure `protobuf:"bytes,4,opt,name=failure,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Rejection) Reset() { + *x = Rejection{} + mi := &file_temporal_api_update_v1_message_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Rejection) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Rejection) ProtoMessage() {} + +func (x *Rejection) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_update_v1_message_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *Rejection) GetRejectedRequestMessageId() string { + if x != nil { + return x.xxx_hidden_RejectedRequestMessageId + } + return "" +} + +func (x *Rejection) GetRejectedRequestSequencingEventId() int64 { + if x != nil { + return x.xxx_hidden_RejectedRequestSequencingEventId + } + return 0 +} + +func (x *Rejection) GetRejectedRequest() *Request { + if x != nil { + return x.xxx_hidden_RejectedRequest + } + return nil +} + +func (x *Rejection) GetFailure() *v12.Failure { + if x != nil { + return x.xxx_hidden_Failure + } + return nil +} + +func (x *Rejection) SetRejectedRequestMessageId(v string) { + x.xxx_hidden_RejectedRequestMessageId = v +} + +func (x *Rejection) SetRejectedRequestSequencingEventId(v int64) { + x.xxx_hidden_RejectedRequestSequencingEventId = v +} + +func (x *Rejection) SetRejectedRequest(v *Request) { + x.xxx_hidden_RejectedRequest = v +} + +func (x *Rejection) SetFailure(v *v12.Failure) { + x.xxx_hidden_Failure = v +} + +func (x *Rejection) HasRejectedRequest() bool { + if x == nil { + return false + } + return x.xxx_hidden_RejectedRequest != nil +} + +func (x *Rejection) HasFailure() bool { + if x == nil { + return false + } + return x.xxx_hidden_Failure != nil +} + +func (x *Rejection) ClearRejectedRequest() { + x.xxx_hidden_RejectedRequest = nil +} + +func (x *Rejection) ClearFailure() { + x.xxx_hidden_Failure = nil +} + +type Rejection_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + RejectedRequestMessageId string + RejectedRequestSequencingEventId int64 + RejectedRequest *Request + Failure *v12.Failure +} + +func (b0 Rejection_builder) Build() *Rejection { + m0 := &Rejection{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RejectedRequestMessageId = b.RejectedRequestMessageId + x.xxx_hidden_RejectedRequestSequencingEventId = b.RejectedRequestSequencingEventId + x.xxx_hidden_RejectedRequest = b.RejectedRequest + x.xxx_hidden_Failure = b.Failure + return m0 +} + +// An Update protocol message indicating that a Workflow Update has +// been accepted (i.e. passed the worker-side validation phase). +type Acceptance struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_AcceptedRequestMessageId string `protobuf:"bytes,1,opt,name=accepted_request_message_id,json=acceptedRequestMessageId,proto3"` + xxx_hidden_AcceptedRequestSequencingEventId int64 `protobuf:"varint,2,opt,name=accepted_request_sequencing_event_id,json=acceptedRequestSequencingEventId,proto3"` + xxx_hidden_AcceptedRequest *Request `protobuf:"bytes,3,opt,name=accepted_request,json=acceptedRequest,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Acceptance) Reset() { + *x = Acceptance{} + mi := &file_temporal_api_update_v1_message_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Acceptance) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Acceptance) ProtoMessage() {} + +func (x *Acceptance) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_update_v1_message_proto_msgTypes[7] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *Acceptance) GetAcceptedRequestMessageId() string { + if x != nil { + return x.xxx_hidden_AcceptedRequestMessageId + } + return "" +} + +func (x *Acceptance) GetAcceptedRequestSequencingEventId() int64 { + if x != nil { + return x.xxx_hidden_AcceptedRequestSequencingEventId + } + return 0 +} + +func (x *Acceptance) GetAcceptedRequest() *Request { + if x != nil { + return x.xxx_hidden_AcceptedRequest + } + return nil +} + +func (x *Acceptance) SetAcceptedRequestMessageId(v string) { + x.xxx_hidden_AcceptedRequestMessageId = v +} + +func (x *Acceptance) SetAcceptedRequestSequencingEventId(v int64) { + x.xxx_hidden_AcceptedRequestSequencingEventId = v +} + +func (x *Acceptance) SetAcceptedRequest(v *Request) { + x.xxx_hidden_AcceptedRequest = v +} + +func (x *Acceptance) HasAcceptedRequest() bool { + if x == nil { + return false + } + return x.xxx_hidden_AcceptedRequest != nil +} + +func (x *Acceptance) ClearAcceptedRequest() { + x.xxx_hidden_AcceptedRequest = nil +} + +type Acceptance_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + AcceptedRequestMessageId string + AcceptedRequestSequencingEventId int64 + AcceptedRequest *Request +} + +func (b0 Acceptance_builder) Build() *Acceptance { + m0 := &Acceptance{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_AcceptedRequestMessageId = b.AcceptedRequestMessageId + x.xxx_hidden_AcceptedRequestSequencingEventId = b.AcceptedRequestSequencingEventId + x.xxx_hidden_AcceptedRequest = b.AcceptedRequest + return m0 +} + +// An Update protocol message indicating that a Workflow Update has +// completed with the contained outcome. +type Response struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Meta *Meta `protobuf:"bytes,1,opt,name=meta,proto3"` + xxx_hidden_Outcome *Outcome `protobuf:"bytes,2,opt,name=outcome,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Response) Reset() { + *x = Response{} + mi := &file_temporal_api_update_v1_message_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Response) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Response) ProtoMessage() {} + +func (x *Response) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_update_v1_message_proto_msgTypes[8] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *Response) GetMeta() *Meta { + if x != nil { + return x.xxx_hidden_Meta + } + return nil +} + +func (x *Response) GetOutcome() *Outcome { + if x != nil { + return x.xxx_hidden_Outcome + } + return nil +} + +func (x *Response) SetMeta(v *Meta) { + x.xxx_hidden_Meta = v +} + +func (x *Response) SetOutcome(v *Outcome) { + x.xxx_hidden_Outcome = v +} + +func (x *Response) HasMeta() bool { + if x == nil { + return false + } + return x.xxx_hidden_Meta != nil +} + +func (x *Response) HasOutcome() bool { + if x == nil { + return false + } + return x.xxx_hidden_Outcome != nil +} + +func (x *Response) ClearMeta() { + x.xxx_hidden_Meta = nil +} + +func (x *Response) ClearOutcome() { + x.xxx_hidden_Outcome = nil +} + +type Response_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Meta *Meta + Outcome *Outcome +} + +func (b0 Response_builder) Build() *Response { + m0 := &Response{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Meta = b.Meta + x.xxx_hidden_Outcome = b.Outcome + return m0 +} + +var File_temporal_api_update_v1_message_proto protoreflect.FileDescriptor + +const file_temporal_api_update_v1_message_proto_rawDesc = "" + + "\n" + + "$temporal/api/update/v1/message.proto\x12\x16temporal.api.update.v1\x1a$temporal/api/common/v1/message.proto\x1a\"temporal/api/enums/v1/update.proto\x1a%temporal/api/failure/v1/message.proto\"s\n" + + "\n" + + "WaitPolicy\x12e\n" + + "\x0flifecycle_stage\x18\x01 \x01(\x0e2<.temporal.api.enums.v1.UpdateWorkflowExecutionLifecycleStageR\x0elifecycleStage\"\x82\x01\n" + + "\tUpdateRef\x12X\n" + + "\x12workflow_execution\x18\x01 \x01(\v2).temporal.api.common.v1.WorkflowExecutionR\x11workflowExecution\x12\x1b\n" + + "\tupdate_id\x18\x02 \x01(\tR\bupdateId\"\x8e\x01\n" + + "\aOutcome\x12<\n" + + "\asuccess\x18\x01 \x01(\v2 .temporal.api.common.v1.PayloadsH\x00R\asuccess\x12<\n" + + "\afailure\x18\x02 \x01(\v2 .temporal.api.failure.v1.FailureH\x00R\afailureB\a\n" + + "\x05value\"?\n" + + "\x04Meta\x12\x1b\n" + + "\tupdate_id\x18\x01 \x01(\tR\bupdateId\x12\x1a\n" + + "\bidentity\x18\x02 \x01(\tR\bidentity\"\x89\x01\n" + + "\x05Input\x126\n" + + "\x06header\x18\x01 \x01(\v2\x1e.temporal.api.common.v1.HeaderR\x06header\x12\x12\n" + + "\x04name\x18\x02 \x01(\tR\x04name\x124\n" + + "\x04args\x18\x03 \x01(\v2 .temporal.api.common.v1.PayloadsR\x04args\"p\n" + + "\aRequest\x120\n" + + "\x04meta\x18\x01 \x01(\v2\x1c.temporal.api.update.v1.MetaR\x04meta\x123\n" + + "\x05input\x18\x02 \x01(\v2\x1d.temporal.api.update.v1.InputR\x05input\"\xa2\x02\n" + + "\tRejection\x12=\n" + + "\x1brejected_request_message_id\x18\x01 \x01(\tR\x18rejectedRequestMessageId\x12N\n" + + "$rejected_request_sequencing_event_id\x18\x02 \x01(\x03R rejectedRequestSequencingEventId\x12J\n" + + "\x10rejected_request\x18\x03 \x01(\v2\x1f.temporal.api.update.v1.RequestR\x0frejectedRequest\x12:\n" + + "\afailure\x18\x04 \x01(\v2 .temporal.api.failure.v1.FailureR\afailure\"\xe7\x01\n" + + "\n" + + "Acceptance\x12=\n" + + "\x1baccepted_request_message_id\x18\x01 \x01(\tR\x18acceptedRequestMessageId\x12N\n" + + "$accepted_request_sequencing_event_id\x18\x02 \x01(\x03R acceptedRequestSequencingEventId\x12J\n" + + "\x10accepted_request\x18\x03 \x01(\v2\x1f.temporal.api.update.v1.RequestR\x0facceptedRequest\"w\n" + + "\bResponse\x120\n" + + "\x04meta\x18\x01 \x01(\v2\x1c.temporal.api.update.v1.MetaR\x04meta\x129\n" + + "\aoutcome\x18\x02 \x01(\v2\x1f.temporal.api.update.v1.OutcomeR\aoutcomeB\x89\x01\n" + + "\x19io.temporal.api.update.v1B\fMessageProtoP\x01Z#go.temporal.io/api/update/v1;update\xaa\x02\x18Temporalio.Api.Update.V1\xea\x02\x1bTemporalio::Api::Update::V1b\x06proto3" + +var file_temporal_api_update_v1_message_proto_msgTypes = make([]protoimpl.MessageInfo, 9) +var file_temporal_api_update_v1_message_proto_goTypes = []any{ + (*WaitPolicy)(nil), // 0: temporal.api.update.v1.WaitPolicy + (*UpdateRef)(nil), // 1: temporal.api.update.v1.UpdateRef + (*Outcome)(nil), // 2: temporal.api.update.v1.Outcome + (*Meta)(nil), // 3: temporal.api.update.v1.Meta + (*Input)(nil), // 4: temporal.api.update.v1.Input + (*Request)(nil), // 5: temporal.api.update.v1.Request + (*Rejection)(nil), // 6: temporal.api.update.v1.Rejection + (*Acceptance)(nil), // 7: temporal.api.update.v1.Acceptance + (*Response)(nil), // 8: temporal.api.update.v1.Response + (v1.UpdateWorkflowExecutionLifecycleStage)(0), // 9: temporal.api.enums.v1.UpdateWorkflowExecutionLifecycleStage + (*v11.WorkflowExecution)(nil), // 10: temporal.api.common.v1.WorkflowExecution + (*v11.Payloads)(nil), // 11: temporal.api.common.v1.Payloads + (*v12.Failure)(nil), // 12: temporal.api.failure.v1.Failure + (*v11.Header)(nil), // 13: temporal.api.common.v1.Header +} +var file_temporal_api_update_v1_message_proto_depIdxs = []int32{ + 9, // 0: temporal.api.update.v1.WaitPolicy.lifecycle_stage:type_name -> temporal.api.enums.v1.UpdateWorkflowExecutionLifecycleStage + 10, // 1: temporal.api.update.v1.UpdateRef.workflow_execution:type_name -> temporal.api.common.v1.WorkflowExecution + 11, // 2: temporal.api.update.v1.Outcome.success:type_name -> temporal.api.common.v1.Payloads + 12, // 3: temporal.api.update.v1.Outcome.failure:type_name -> temporal.api.failure.v1.Failure + 13, // 4: temporal.api.update.v1.Input.header:type_name -> temporal.api.common.v1.Header + 11, // 5: temporal.api.update.v1.Input.args:type_name -> temporal.api.common.v1.Payloads + 3, // 6: temporal.api.update.v1.Request.meta:type_name -> temporal.api.update.v1.Meta + 4, // 7: temporal.api.update.v1.Request.input:type_name -> temporal.api.update.v1.Input + 5, // 8: temporal.api.update.v1.Rejection.rejected_request:type_name -> temporal.api.update.v1.Request + 12, // 9: temporal.api.update.v1.Rejection.failure:type_name -> temporal.api.failure.v1.Failure + 5, // 10: temporal.api.update.v1.Acceptance.accepted_request:type_name -> temporal.api.update.v1.Request + 3, // 11: temporal.api.update.v1.Response.meta:type_name -> temporal.api.update.v1.Meta + 2, // 12: temporal.api.update.v1.Response.outcome:type_name -> temporal.api.update.v1.Outcome + 13, // [13:13] is the sub-list for method output_type + 13, // [13:13] is the sub-list for method input_type + 13, // [13:13] is the sub-list for extension type_name + 13, // [13:13] is the sub-list for extension extendee + 0, // [0:13] is the sub-list for field type_name +} + +func init() { file_temporal_api_update_v1_message_proto_init() } +func file_temporal_api_update_v1_message_proto_init() { + if File_temporal_api_update_v1_message_proto != nil { + return + } + file_temporal_api_update_v1_message_proto_msgTypes[2].OneofWrappers = []any{ + (*outcome_Success)(nil), + (*outcome_Failure)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_api_update_v1_message_proto_rawDesc), len(file_temporal_api_update_v1_message_proto_rawDesc)), + NumEnums: 0, + NumMessages: 9, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_temporal_api_update_v1_message_proto_goTypes, + DependencyIndexes: file_temporal_api_update_v1_message_proto_depIdxs, + MessageInfos: file_temporal_api_update_v1_message_proto_msgTypes, + }.Build() + File_temporal_api_update_v1_message_proto = out.File + file_temporal_api_update_v1_message_proto_goTypes = nil + file_temporal_api_update_v1_message_proto_depIdxs = nil +} diff --git a/version/v1/message.pb.go b/version/v1/message.pb.go index 123e48bd..a85b3a49 100644 --- a/version/v1/message.pb.go +++ b/version/v1/message.pb.go @@ -4,11 +4,12 @@ // protoc // source: temporal/api/version/v1/message.proto +//go:build !protoopaque + package version import ( reflect "reflect" - sync "sync" unsafe "unsafe" v1 "go.temporal.io/api/enums/v1" @@ -26,7 +27,7 @@ const ( // ReleaseInfo contains information about specific version of temporal. type ReleaseInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` ReleaseTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=release_time,json=releaseTime,proto3" json:"release_time,omitempty"` Notes string `protobuf:"bytes,3,opt,name=notes,proto3" json:"notes,omitempty"` @@ -59,11 +60,6 @@ func (x *ReleaseInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ReleaseInfo.ProtoReflect.Descriptor instead. -func (*ReleaseInfo) Descriptor() ([]byte, []int) { - return file_temporal_api_version_v1_message_proto_rawDescGZIP(), []int{0} -} - func (x *ReleaseInfo) GetVersion() string { if x != nil { return x.Version @@ -85,9 +81,50 @@ func (x *ReleaseInfo) GetNotes() string { return "" } +func (x *ReleaseInfo) SetVersion(v string) { + x.Version = v +} + +func (x *ReleaseInfo) SetReleaseTime(v *timestamppb.Timestamp) { + x.ReleaseTime = v +} + +func (x *ReleaseInfo) SetNotes(v string) { + x.Notes = v +} + +func (x *ReleaseInfo) HasReleaseTime() bool { + if x == nil { + return false + } + return x.ReleaseTime != nil +} + +func (x *ReleaseInfo) ClearReleaseTime() { + x.ReleaseTime = nil +} + +type ReleaseInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Version string + ReleaseTime *timestamppb.Timestamp + Notes string +} + +func (b0 ReleaseInfo_builder) Build() *ReleaseInfo { + m0 := &ReleaseInfo{} + b, x := &b0, m0 + _, _ = b, x + x.Version = b.Version + x.ReleaseTime = b.ReleaseTime + x.Notes = b.Notes + return m0 +} + // Alert contains notification and severity. type Alert struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Severity v1.Severity `protobuf:"varint,2,opt,name=severity,proto3,enum=temporal.api.enums.v1.Severity" json:"severity,omitempty"` unknownFields protoimpl.UnknownFields @@ -119,11 +156,6 @@ func (x *Alert) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Alert.ProtoReflect.Descriptor instead. -func (*Alert) Descriptor() ([]byte, []int) { - return file_temporal_api_version_v1_message_proto_rawDescGZIP(), []int{1} -} - func (x *Alert) GetMessage() string { if x != nil { return x.Message @@ -138,9 +170,33 @@ func (x *Alert) GetSeverity() v1.Severity { return v1.Severity(0) } +func (x *Alert) SetMessage(v string) { + x.Message = v +} + +func (x *Alert) SetSeverity(v v1.Severity) { + x.Severity = v +} + +type Alert_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Message string + Severity v1.Severity +} + +func (b0 Alert_builder) Build() *Alert { + m0 := &Alert{} + b, x := &b0, m0 + _, _ = b, x + x.Message = b.Message + x.Severity = b.Severity + return m0 +} + // VersionInfo contains details about current and recommended release versions as well as alerts and upgrade instructions. type VersionInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Current *ReleaseInfo `protobuf:"bytes,1,opt,name=current,proto3" json:"current,omitempty"` Recommended *ReleaseInfo `protobuf:"bytes,2,opt,name=recommended,proto3" json:"recommended,omitempty"` Instructions string `protobuf:"bytes,3,opt,name=instructions,proto3" json:"instructions,omitempty"` @@ -175,11 +231,6 @@ func (x *VersionInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use VersionInfo.ProtoReflect.Descriptor instead. -func (*VersionInfo) Descriptor() ([]byte, []int) { - return file_temporal_api_version_v1_message_proto_rawDescGZIP(), []int{2} -} - func (x *VersionInfo) GetCurrent() *ReleaseInfo { if x != nil { return x.Current @@ -215,6 +266,81 @@ func (x *VersionInfo) GetLastUpdateTime() *timestamppb.Timestamp { return nil } +func (x *VersionInfo) SetCurrent(v *ReleaseInfo) { + x.Current = v +} + +func (x *VersionInfo) SetRecommended(v *ReleaseInfo) { + x.Recommended = v +} + +func (x *VersionInfo) SetInstructions(v string) { + x.Instructions = v +} + +func (x *VersionInfo) SetAlerts(v []*Alert) { + x.Alerts = v +} + +func (x *VersionInfo) SetLastUpdateTime(v *timestamppb.Timestamp) { + x.LastUpdateTime = v +} + +func (x *VersionInfo) HasCurrent() bool { + if x == nil { + return false + } + return x.Current != nil +} + +func (x *VersionInfo) HasRecommended() bool { + if x == nil { + return false + } + return x.Recommended != nil +} + +func (x *VersionInfo) HasLastUpdateTime() bool { + if x == nil { + return false + } + return x.LastUpdateTime != nil +} + +func (x *VersionInfo) ClearCurrent() { + x.Current = nil +} + +func (x *VersionInfo) ClearRecommended() { + x.Recommended = nil +} + +func (x *VersionInfo) ClearLastUpdateTime() { + x.LastUpdateTime = nil +} + +type VersionInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Current *ReleaseInfo + Recommended *ReleaseInfo + Instructions string + Alerts []*Alert + LastUpdateTime *timestamppb.Timestamp +} + +func (b0 VersionInfo_builder) Build() *VersionInfo { + m0 := &VersionInfo{} + b, x := &b0, m0 + _, _ = b, x + x.Current = b.Current + x.Recommended = b.Recommended + x.Instructions = b.Instructions + x.Alerts = b.Alerts + x.LastUpdateTime = b.LastUpdateTime + return m0 +} + var File_temporal_api_version_v1_message_proto protoreflect.FileDescriptor const file_temporal_api_version_v1_message_proto_rawDesc = "" + @@ -235,18 +361,6 @@ const file_temporal_api_version_v1_message_proto_rawDesc = "" + "\x10last_update_time\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\x0elastUpdateTimeB\x8e\x01\n" + "\x1aio.temporal.api.version.v1B\fMessageProtoP\x01Z%go.temporal.io/api/version/v1;version\xaa\x02\x19Temporalio.Api.Version.V1\xea\x02\x1cTemporalio::Api::Version::V1b\x06proto3" -var ( - file_temporal_api_version_v1_message_proto_rawDescOnce sync.Once - file_temporal_api_version_v1_message_proto_rawDescData []byte -) - -func file_temporal_api_version_v1_message_proto_rawDescGZIP() []byte { - file_temporal_api_version_v1_message_proto_rawDescOnce.Do(func() { - file_temporal_api_version_v1_message_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_api_version_v1_message_proto_rawDesc), len(file_temporal_api_version_v1_message_proto_rawDesc))) - }) - return file_temporal_api_version_v1_message_proto_rawDescData -} - var file_temporal_api_version_v1_message_proto_msgTypes = make([]protoimpl.MessageInfo, 3) var file_temporal_api_version_v1_message_proto_goTypes = []any{ (*ReleaseInfo)(nil), // 0: temporal.api.version.v1.ReleaseInfo diff --git a/version/v1/message_protoopaque.pb.go b/version/v1/message_protoopaque.pb.go new file mode 100644 index 00000000..7e139f07 --- /dev/null +++ b/version/v1/message_protoopaque.pb.go @@ -0,0 +1,410 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// plugins: +// protoc-gen-go +// protoc +// source: temporal/api/version/v1/message.proto + +//go:build protoopaque + +package version + +import ( + reflect "reflect" + unsafe "unsafe" + + v1 "go.temporal.io/api/enums/v1" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// ReleaseInfo contains information about specific version of temporal. +type ReleaseInfo struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Version string `protobuf:"bytes,1,opt,name=version,proto3"` + xxx_hidden_ReleaseTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=release_time,json=releaseTime,proto3"` + xxx_hidden_Notes string `protobuf:"bytes,3,opt,name=notes,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ReleaseInfo) Reset() { + *x = ReleaseInfo{} + mi := &file_temporal_api_version_v1_message_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ReleaseInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ReleaseInfo) ProtoMessage() {} + +func (x *ReleaseInfo) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_version_v1_message_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ReleaseInfo) GetVersion() string { + if x != nil { + return x.xxx_hidden_Version + } + return "" +} + +func (x *ReleaseInfo) GetReleaseTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_ReleaseTime + } + return nil +} + +func (x *ReleaseInfo) GetNotes() string { + if x != nil { + return x.xxx_hidden_Notes + } + return "" +} + +func (x *ReleaseInfo) SetVersion(v string) { + x.xxx_hidden_Version = v +} + +func (x *ReleaseInfo) SetReleaseTime(v *timestamppb.Timestamp) { + x.xxx_hidden_ReleaseTime = v +} + +func (x *ReleaseInfo) SetNotes(v string) { + x.xxx_hidden_Notes = v +} + +func (x *ReleaseInfo) HasReleaseTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_ReleaseTime != nil +} + +func (x *ReleaseInfo) ClearReleaseTime() { + x.xxx_hidden_ReleaseTime = nil +} + +type ReleaseInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Version string + ReleaseTime *timestamppb.Timestamp + Notes string +} + +func (b0 ReleaseInfo_builder) Build() *ReleaseInfo { + m0 := &ReleaseInfo{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Version = b.Version + x.xxx_hidden_ReleaseTime = b.ReleaseTime + x.xxx_hidden_Notes = b.Notes + return m0 +} + +// Alert contains notification and severity. +type Alert struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Message string `protobuf:"bytes,1,opt,name=message,proto3"` + xxx_hidden_Severity v1.Severity `protobuf:"varint,2,opt,name=severity,proto3,enum=temporal.api.enums.v1.Severity"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Alert) Reset() { + *x = Alert{} + mi := &file_temporal_api_version_v1_message_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Alert) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Alert) ProtoMessage() {} + +func (x *Alert) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_version_v1_message_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *Alert) GetMessage() string { + if x != nil { + return x.xxx_hidden_Message + } + return "" +} + +func (x *Alert) GetSeverity() v1.Severity { + if x != nil { + return x.xxx_hidden_Severity + } + return v1.Severity(0) +} + +func (x *Alert) SetMessage(v string) { + x.xxx_hidden_Message = v +} + +func (x *Alert) SetSeverity(v v1.Severity) { + x.xxx_hidden_Severity = v +} + +type Alert_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Message string + Severity v1.Severity +} + +func (b0 Alert_builder) Build() *Alert { + m0 := &Alert{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Message = b.Message + x.xxx_hidden_Severity = b.Severity + return m0 +} + +// VersionInfo contains details about current and recommended release versions as well as alerts and upgrade instructions. +type VersionInfo struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Current *ReleaseInfo `protobuf:"bytes,1,opt,name=current,proto3"` + xxx_hidden_Recommended *ReleaseInfo `protobuf:"bytes,2,opt,name=recommended,proto3"` + xxx_hidden_Instructions string `protobuf:"bytes,3,opt,name=instructions,proto3"` + xxx_hidden_Alerts *[]*Alert `protobuf:"bytes,4,rep,name=alerts,proto3"` + xxx_hidden_LastUpdateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=last_update_time,json=lastUpdateTime,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *VersionInfo) Reset() { + *x = VersionInfo{} + mi := &file_temporal_api_version_v1_message_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *VersionInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VersionInfo) ProtoMessage() {} + +func (x *VersionInfo) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_version_v1_message_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *VersionInfo) GetCurrent() *ReleaseInfo { + if x != nil { + return x.xxx_hidden_Current + } + return nil +} + +func (x *VersionInfo) GetRecommended() *ReleaseInfo { + if x != nil { + return x.xxx_hidden_Recommended + } + return nil +} + +func (x *VersionInfo) GetInstructions() string { + if x != nil { + return x.xxx_hidden_Instructions + } + return "" +} + +func (x *VersionInfo) GetAlerts() []*Alert { + if x != nil { + if x.xxx_hidden_Alerts != nil { + return *x.xxx_hidden_Alerts + } + } + return nil +} + +func (x *VersionInfo) GetLastUpdateTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_LastUpdateTime + } + return nil +} + +func (x *VersionInfo) SetCurrent(v *ReleaseInfo) { + x.xxx_hidden_Current = v +} + +func (x *VersionInfo) SetRecommended(v *ReleaseInfo) { + x.xxx_hidden_Recommended = v +} + +func (x *VersionInfo) SetInstructions(v string) { + x.xxx_hidden_Instructions = v +} + +func (x *VersionInfo) SetAlerts(v []*Alert) { + x.xxx_hidden_Alerts = &v +} + +func (x *VersionInfo) SetLastUpdateTime(v *timestamppb.Timestamp) { + x.xxx_hidden_LastUpdateTime = v +} + +func (x *VersionInfo) HasCurrent() bool { + if x == nil { + return false + } + return x.xxx_hidden_Current != nil +} + +func (x *VersionInfo) HasRecommended() bool { + if x == nil { + return false + } + return x.xxx_hidden_Recommended != nil +} + +func (x *VersionInfo) HasLastUpdateTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_LastUpdateTime != nil +} + +func (x *VersionInfo) ClearCurrent() { + x.xxx_hidden_Current = nil +} + +func (x *VersionInfo) ClearRecommended() { + x.xxx_hidden_Recommended = nil +} + +func (x *VersionInfo) ClearLastUpdateTime() { + x.xxx_hidden_LastUpdateTime = nil +} + +type VersionInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Current *ReleaseInfo + Recommended *ReleaseInfo + Instructions string + Alerts []*Alert + LastUpdateTime *timestamppb.Timestamp +} + +func (b0 VersionInfo_builder) Build() *VersionInfo { + m0 := &VersionInfo{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Current = b.Current + x.xxx_hidden_Recommended = b.Recommended + x.xxx_hidden_Instructions = b.Instructions + x.xxx_hidden_Alerts = &b.Alerts + x.xxx_hidden_LastUpdateTime = b.LastUpdateTime + return m0 +} + +var File_temporal_api_version_v1_message_proto protoreflect.FileDescriptor + +const file_temporal_api_version_v1_message_proto_rawDesc = "" + + "\n" + + "%temporal/api/version/v1/message.proto\x12\x17temporal.api.version.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\"temporal/api/enums/v1/common.proto\"|\n" + + "\vReleaseInfo\x12\x18\n" + + "\aversion\x18\x01 \x01(\tR\aversion\x12=\n" + + "\frelease_time\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\vreleaseTime\x12\x14\n" + + "\x05notes\x18\x03 \x01(\tR\x05notes\"^\n" + + "\x05Alert\x12\x18\n" + + "\amessage\x18\x01 \x01(\tR\amessage\x12;\n" + + "\bseverity\x18\x02 \x01(\x0e2\x1f.temporal.api.enums.v1.SeverityR\bseverity\"\xb7\x02\n" + + "\vVersionInfo\x12>\n" + + "\acurrent\x18\x01 \x01(\v2$.temporal.api.version.v1.ReleaseInfoR\acurrent\x12F\n" + + "\vrecommended\x18\x02 \x01(\v2$.temporal.api.version.v1.ReleaseInfoR\vrecommended\x12\"\n" + + "\finstructions\x18\x03 \x01(\tR\finstructions\x126\n" + + "\x06alerts\x18\x04 \x03(\v2\x1e.temporal.api.version.v1.AlertR\x06alerts\x12D\n" + + "\x10last_update_time\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\x0elastUpdateTimeB\x8e\x01\n" + + "\x1aio.temporal.api.version.v1B\fMessageProtoP\x01Z%go.temporal.io/api/version/v1;version\xaa\x02\x19Temporalio.Api.Version.V1\xea\x02\x1cTemporalio::Api::Version::V1b\x06proto3" + +var file_temporal_api_version_v1_message_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_temporal_api_version_v1_message_proto_goTypes = []any{ + (*ReleaseInfo)(nil), // 0: temporal.api.version.v1.ReleaseInfo + (*Alert)(nil), // 1: temporal.api.version.v1.Alert + (*VersionInfo)(nil), // 2: temporal.api.version.v1.VersionInfo + (*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp + (v1.Severity)(0), // 4: temporal.api.enums.v1.Severity +} +var file_temporal_api_version_v1_message_proto_depIdxs = []int32{ + 3, // 0: temporal.api.version.v1.ReleaseInfo.release_time:type_name -> google.protobuf.Timestamp + 4, // 1: temporal.api.version.v1.Alert.severity:type_name -> temporal.api.enums.v1.Severity + 0, // 2: temporal.api.version.v1.VersionInfo.current:type_name -> temporal.api.version.v1.ReleaseInfo + 0, // 3: temporal.api.version.v1.VersionInfo.recommended:type_name -> temporal.api.version.v1.ReleaseInfo + 1, // 4: temporal.api.version.v1.VersionInfo.alerts:type_name -> temporal.api.version.v1.Alert + 3, // 5: temporal.api.version.v1.VersionInfo.last_update_time:type_name -> google.protobuf.Timestamp + 6, // [6:6] is the sub-list for method output_type + 6, // [6:6] is the sub-list for method input_type + 6, // [6:6] is the sub-list for extension type_name + 6, // [6:6] is the sub-list for extension extendee + 0, // [0:6] is the sub-list for field type_name +} + +func init() { file_temporal_api_version_v1_message_proto_init() } +func file_temporal_api_version_v1_message_proto_init() { + if File_temporal_api_version_v1_message_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_api_version_v1_message_proto_rawDesc), len(file_temporal_api_version_v1_message_proto_rawDesc)), + NumEnums: 0, + NumMessages: 3, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_temporal_api_version_v1_message_proto_goTypes, + DependencyIndexes: file_temporal_api_version_v1_message_proto_depIdxs, + MessageInfos: file_temporal_api_version_v1_message_proto_msgTypes, + }.Build() + File_temporal_api_version_v1_message_proto = out.File + file_temporal_api_version_v1_message_proto_goTypes = nil + file_temporal_api_version_v1_message_proto_depIdxs = nil +} diff --git a/worker/v1/message.pb.go b/worker/v1/message.pb.go index 27bb227f..10b23342 100644 --- a/worker/v1/message.pb.go +++ b/worker/v1/message.pb.go @@ -4,11 +4,12 @@ // protoc // source: temporal/api/worker/v1/message.proto +//go:build !protoopaque + package worker import ( reflect "reflect" - sync "sync" unsafe "unsafe" v1 "go.temporal.io/api/deployment/v1" @@ -27,7 +28,7 @@ const ( ) type WorkerPollerInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Number of polling RPCs that are currently in flight. CurrentPollers int32 `protobuf:"varint,1,opt,name=current_pollers,json=currentPollers,proto3" json:"current_pollers,omitempty"` LastSuccessfulPollTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=last_successful_poll_time,json=lastSuccessfulPollTime,proto3" json:"last_successful_poll_time,omitempty"` @@ -62,11 +63,6 @@ func (x *WorkerPollerInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use WorkerPollerInfo.ProtoReflect.Descriptor instead. -func (*WorkerPollerInfo) Descriptor() ([]byte, []int) { - return file_temporal_api_worker_v1_message_proto_rawDescGZIP(), []int{0} -} - func (x *WorkerPollerInfo) GetCurrentPollers() int32 { if x != nil { return x.CurrentPollers @@ -88,8 +84,51 @@ func (x *WorkerPollerInfo) GetIsAutoscaling() bool { return false } +func (x *WorkerPollerInfo) SetCurrentPollers(v int32) { + x.CurrentPollers = v +} + +func (x *WorkerPollerInfo) SetLastSuccessfulPollTime(v *timestamppb.Timestamp) { + x.LastSuccessfulPollTime = v +} + +func (x *WorkerPollerInfo) SetIsAutoscaling(v bool) { + x.IsAutoscaling = v +} + +func (x *WorkerPollerInfo) HasLastSuccessfulPollTime() bool { + if x == nil { + return false + } + return x.LastSuccessfulPollTime != nil +} + +func (x *WorkerPollerInfo) ClearLastSuccessfulPollTime() { + x.LastSuccessfulPollTime = nil +} + +type WorkerPollerInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Number of polling RPCs that are currently in flight. + CurrentPollers int32 + LastSuccessfulPollTime *timestamppb.Timestamp + // Set true if the number of concurrent pollers is auto-scaled + IsAutoscaling bool +} + +func (b0 WorkerPollerInfo_builder) Build() *WorkerPollerInfo { + m0 := &WorkerPollerInfo{} + b, x := &b0, m0 + _, _ = b, x + x.CurrentPollers = b.CurrentPollers + x.LastSuccessfulPollTime = b.LastSuccessfulPollTime + x.IsAutoscaling = b.IsAutoscaling + return m0 +} + type WorkerSlotsInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Number of slots available for the worker to specific tasks. // May be -1 if the upper bound is not known. CurrentAvailableSlots int32 `protobuf:"varint,1,opt,name=current_available_slots,json=currentAvailableSlots,proto3" json:"current_available_slots,omitempty"` @@ -138,11 +177,6 @@ func (x *WorkerSlotsInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use WorkerSlotsInfo.ProtoReflect.Descriptor instead. -func (*WorkerSlotsInfo) Descriptor() ([]byte, []int) { - return file_temporal_api_worker_v1_message_proto_rawDescGZIP(), []int{1} -} - func (x *WorkerSlotsInfo) GetCurrentAvailableSlots() int32 { if x != nil { return x.CurrentAvailableSlots @@ -192,9 +226,75 @@ func (x *WorkerSlotsInfo) GetLastIntervalFailureTasks() int32 { return 0 } +func (x *WorkerSlotsInfo) SetCurrentAvailableSlots(v int32) { + x.CurrentAvailableSlots = v +} + +func (x *WorkerSlotsInfo) SetCurrentUsedSlots(v int32) { + x.CurrentUsedSlots = v +} + +func (x *WorkerSlotsInfo) SetSlotSupplierKind(v string) { + x.SlotSupplierKind = v +} + +func (x *WorkerSlotsInfo) SetTotalProcessedTasks(v int32) { + x.TotalProcessedTasks = v +} + +func (x *WorkerSlotsInfo) SetTotalFailedTasks(v int32) { + x.TotalFailedTasks = v +} + +func (x *WorkerSlotsInfo) SetLastIntervalProcessedTasks(v int32) { + x.LastIntervalProcessedTasks = v +} + +func (x *WorkerSlotsInfo) SetLastIntervalFailureTasks(v int32) { + x.LastIntervalFailureTasks = v +} + +type WorkerSlotsInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Number of slots available for the worker to specific tasks. + // May be -1 if the upper bound is not known. + CurrentAvailableSlots int32 + // Number of slots used by the worker for specific tasks. + CurrentUsedSlots int32 + // Kind of the slot supplier, which is used to determine how the slots are allocated. + // Possible values: "Fixed | ResourceBased | Custom String" + SlotSupplierKind string + // Total number of tasks processed (completed both successfully and unsuccesfully, or any other way) + // by the worker since the worker started. This is a cumulative counter. + TotalProcessedTasks int32 + // Total number of failed tasks processed by the worker so far. + TotalFailedTasks int32 + // Number of tasks processed in since the last heartbeat from the worker. + // This is a cumulative counter, and it is reset to 0 each time the worker sends a heartbeat. + // Contains both successful and failed tasks. + LastIntervalProcessedTasks int32 + // Number of failed tasks processed since the last heartbeat from the worker. + LastIntervalFailureTasks int32 +} + +func (b0 WorkerSlotsInfo_builder) Build() *WorkerSlotsInfo { + m0 := &WorkerSlotsInfo{} + b, x := &b0, m0 + _, _ = b, x + x.CurrentAvailableSlots = b.CurrentAvailableSlots + x.CurrentUsedSlots = b.CurrentUsedSlots + x.SlotSupplierKind = b.SlotSupplierKind + x.TotalProcessedTasks = b.TotalProcessedTasks + x.TotalFailedTasks = b.TotalFailedTasks + x.LastIntervalProcessedTasks = b.LastIntervalProcessedTasks + x.LastIntervalFailureTasks = b.LastIntervalFailureTasks + return m0 +} + // Holds everything needed to identify the worker host/process context type WorkerHostInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Worker host identifier. HostName string `protobuf:"bytes,1,opt,name=host_name,json=hostName,proto3" json:"host_name,omitempty"` // Worker grouping identifier. A key to group workers that share the same client+namespace+process. @@ -239,11 +339,6 @@ func (x *WorkerHostInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use WorkerHostInfo.ProtoReflect.Descriptor instead. -func (*WorkerHostInfo) Descriptor() ([]byte, []int) { - return file_temporal_api_worker_v1_message_proto_rawDescGZIP(), []int{2} -} - func (x *WorkerHostInfo) GetHostName() string { if x != nil { return x.HostName @@ -279,13 +374,65 @@ func (x *WorkerHostInfo) GetCurrentHostMemUsage() float32 { return 0 } +func (x *WorkerHostInfo) SetHostName(v string) { + x.HostName = v +} + +func (x *WorkerHostInfo) SetWorkerGroupingKey(v string) { + x.WorkerGroupingKey = v +} + +func (x *WorkerHostInfo) SetProcessId(v string) { + x.ProcessId = v +} + +func (x *WorkerHostInfo) SetCurrentHostCpuUsage(v float32) { + x.CurrentHostCpuUsage = v +} + +func (x *WorkerHostInfo) SetCurrentHostMemUsage(v float32) { + x.CurrentHostMemUsage = v +} + +type WorkerHostInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Worker host identifier. + HostName string + // Worker grouping identifier. A key to group workers that share the same client+namespace+process. + // This will be used to build the worker command nexus task queue name: + // "temporal-sys/worker-commands/{worker_grouping_key}" + WorkerGroupingKey string + // Worker process identifier. This id only needs to be unique + // within one host (so using e.g. a unix pid would be appropriate). + ProcessId string + // System used CPU as a float in the range [0.0, 1.0] where 1.0 is defined as all + // cores on the host pegged. + CurrentHostCpuUsage float32 + // System used memory as a float in the range [0.0, 1.0] where 1.0 is defined as + // all available memory on the host is used. + CurrentHostMemUsage float32 +} + +func (b0 WorkerHostInfo_builder) Build() *WorkerHostInfo { + m0 := &WorkerHostInfo{} + b, x := &b0, m0 + _, _ = b, x + x.HostName = b.HostName + x.WorkerGroupingKey = b.WorkerGroupingKey + x.ProcessId = b.ProcessId + x.CurrentHostCpuUsage = b.CurrentHostCpuUsage + x.CurrentHostMemUsage = b.CurrentHostMemUsage + return m0 +} + // Worker info message, contains information about the worker and its current state. // All information is provided by the worker itself. // (-- api-linter: core::0140::prepositions=disabled // // aip.dev/not-precedent: Removing those words make names less clear. --) type WorkerHeartbeat struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Worker identifier, should be unique for the namespace. // It is distinct from worker identity, which is not necessarily namespace-unique. WorkerInstanceKey string `protobuf:"bytes,1,opt,name=worker_instance_key,json=workerInstanceKey,proto3" json:"worker_instance_key,omitempty"` @@ -354,11 +501,6 @@ func (x *WorkerHeartbeat) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use WorkerHeartbeat.ProtoReflect.Descriptor instead. -func (*WorkerHeartbeat) Descriptor() ([]byte, []int) { - return file_temporal_api_worker_v1_message_proto_rawDescGZIP(), []int{3} -} - func (x *WorkerHeartbeat) GetWorkerInstanceKey() string { if x != nil { return x.WorkerInstanceKey @@ -520,8 +662,317 @@ func (x *WorkerHeartbeat) GetPlugins() []*PluginInfo { return nil } +func (x *WorkerHeartbeat) SetWorkerInstanceKey(v string) { + x.WorkerInstanceKey = v +} + +func (x *WorkerHeartbeat) SetWorkerIdentity(v string) { + x.WorkerIdentity = v +} + +func (x *WorkerHeartbeat) SetHostInfo(v *WorkerHostInfo) { + x.HostInfo = v +} + +func (x *WorkerHeartbeat) SetTaskQueue(v string) { + x.TaskQueue = v +} + +func (x *WorkerHeartbeat) SetDeploymentVersion(v *v1.WorkerDeploymentVersion) { + x.DeploymentVersion = v +} + +func (x *WorkerHeartbeat) SetSdkName(v string) { + x.SdkName = v +} + +func (x *WorkerHeartbeat) SetSdkVersion(v string) { + x.SdkVersion = v +} + +func (x *WorkerHeartbeat) SetStatus(v v11.WorkerStatus) { + x.Status = v +} + +func (x *WorkerHeartbeat) SetStartTime(v *timestamppb.Timestamp) { + x.StartTime = v +} + +func (x *WorkerHeartbeat) SetHeartbeatTime(v *timestamppb.Timestamp) { + x.HeartbeatTime = v +} + +func (x *WorkerHeartbeat) SetElapsedSinceLastHeartbeat(v *durationpb.Duration) { + x.ElapsedSinceLastHeartbeat = v +} + +func (x *WorkerHeartbeat) SetWorkflowTaskSlotsInfo(v *WorkerSlotsInfo) { + x.WorkflowTaskSlotsInfo = v +} + +func (x *WorkerHeartbeat) SetActivityTaskSlotsInfo(v *WorkerSlotsInfo) { + x.ActivityTaskSlotsInfo = v +} + +func (x *WorkerHeartbeat) SetNexusTaskSlotsInfo(v *WorkerSlotsInfo) { + x.NexusTaskSlotsInfo = v +} + +func (x *WorkerHeartbeat) SetLocalActivitySlotsInfo(v *WorkerSlotsInfo) { + x.LocalActivitySlotsInfo = v +} + +func (x *WorkerHeartbeat) SetWorkflowPollerInfo(v *WorkerPollerInfo) { + x.WorkflowPollerInfo = v +} + +func (x *WorkerHeartbeat) SetWorkflowStickyPollerInfo(v *WorkerPollerInfo) { + x.WorkflowStickyPollerInfo = v +} + +func (x *WorkerHeartbeat) SetActivityPollerInfo(v *WorkerPollerInfo) { + x.ActivityPollerInfo = v +} + +func (x *WorkerHeartbeat) SetNexusPollerInfo(v *WorkerPollerInfo) { + x.NexusPollerInfo = v +} + +func (x *WorkerHeartbeat) SetTotalStickyCacheHit(v int32) { + x.TotalStickyCacheHit = v +} + +func (x *WorkerHeartbeat) SetTotalStickyCacheMiss(v int32) { + x.TotalStickyCacheMiss = v +} + +func (x *WorkerHeartbeat) SetCurrentStickyCacheSize(v int32) { + x.CurrentStickyCacheSize = v +} + +func (x *WorkerHeartbeat) SetPlugins(v []*PluginInfo) { + x.Plugins = v +} + +func (x *WorkerHeartbeat) HasHostInfo() bool { + if x == nil { + return false + } + return x.HostInfo != nil +} + +func (x *WorkerHeartbeat) HasDeploymentVersion() bool { + if x == nil { + return false + } + return x.DeploymentVersion != nil +} + +func (x *WorkerHeartbeat) HasStartTime() bool { + if x == nil { + return false + } + return x.StartTime != nil +} + +func (x *WorkerHeartbeat) HasHeartbeatTime() bool { + if x == nil { + return false + } + return x.HeartbeatTime != nil +} + +func (x *WorkerHeartbeat) HasElapsedSinceLastHeartbeat() bool { + if x == nil { + return false + } + return x.ElapsedSinceLastHeartbeat != nil +} + +func (x *WorkerHeartbeat) HasWorkflowTaskSlotsInfo() bool { + if x == nil { + return false + } + return x.WorkflowTaskSlotsInfo != nil +} + +func (x *WorkerHeartbeat) HasActivityTaskSlotsInfo() bool { + if x == nil { + return false + } + return x.ActivityTaskSlotsInfo != nil +} + +func (x *WorkerHeartbeat) HasNexusTaskSlotsInfo() bool { + if x == nil { + return false + } + return x.NexusTaskSlotsInfo != nil +} + +func (x *WorkerHeartbeat) HasLocalActivitySlotsInfo() bool { + if x == nil { + return false + } + return x.LocalActivitySlotsInfo != nil +} + +func (x *WorkerHeartbeat) HasWorkflowPollerInfo() bool { + if x == nil { + return false + } + return x.WorkflowPollerInfo != nil +} + +func (x *WorkerHeartbeat) HasWorkflowStickyPollerInfo() bool { + if x == nil { + return false + } + return x.WorkflowStickyPollerInfo != nil +} + +func (x *WorkerHeartbeat) HasActivityPollerInfo() bool { + if x == nil { + return false + } + return x.ActivityPollerInfo != nil +} + +func (x *WorkerHeartbeat) HasNexusPollerInfo() bool { + if x == nil { + return false + } + return x.NexusPollerInfo != nil +} + +func (x *WorkerHeartbeat) ClearHostInfo() { + x.HostInfo = nil +} + +func (x *WorkerHeartbeat) ClearDeploymentVersion() { + x.DeploymentVersion = nil +} + +func (x *WorkerHeartbeat) ClearStartTime() { + x.StartTime = nil +} + +func (x *WorkerHeartbeat) ClearHeartbeatTime() { + x.HeartbeatTime = nil +} + +func (x *WorkerHeartbeat) ClearElapsedSinceLastHeartbeat() { + x.ElapsedSinceLastHeartbeat = nil +} + +func (x *WorkerHeartbeat) ClearWorkflowTaskSlotsInfo() { + x.WorkflowTaskSlotsInfo = nil +} + +func (x *WorkerHeartbeat) ClearActivityTaskSlotsInfo() { + x.ActivityTaskSlotsInfo = nil +} + +func (x *WorkerHeartbeat) ClearNexusTaskSlotsInfo() { + x.NexusTaskSlotsInfo = nil +} + +func (x *WorkerHeartbeat) ClearLocalActivitySlotsInfo() { + x.LocalActivitySlotsInfo = nil +} + +func (x *WorkerHeartbeat) ClearWorkflowPollerInfo() { + x.WorkflowPollerInfo = nil +} + +func (x *WorkerHeartbeat) ClearWorkflowStickyPollerInfo() { + x.WorkflowStickyPollerInfo = nil +} + +func (x *WorkerHeartbeat) ClearActivityPollerInfo() { + x.ActivityPollerInfo = nil +} + +func (x *WorkerHeartbeat) ClearNexusPollerInfo() { + x.NexusPollerInfo = nil +} + +type WorkerHeartbeat_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Worker identifier, should be unique for the namespace. + // It is distinct from worker identity, which is not necessarily namespace-unique. + WorkerInstanceKey string + // Worker identity, set by the client, may not be unique. + // Usually host_name+(user group name)+process_id, but can be overwritten by the user. + WorkerIdentity string + // Worker host information. + HostInfo *WorkerHostInfo + // Task queue this worker is polling for tasks. + TaskQueue string + DeploymentVersion *v1.WorkerDeploymentVersion + SdkName string + SdkVersion string + // Worker status. Defined by SDK. + Status v11.WorkerStatus + // Worker start time. + // It can be used to determine worker uptime. (current time - start time) + StartTime *timestamppb.Timestamp + // Timestamp of this heartbeat, coming from the worker. Worker should set it to "now". + // Note that this timestamp comes directly from the worker and is subject to workers' clock skew. + HeartbeatTime *timestamppb.Timestamp + // Elapsed time since the last heartbeat from the worker. + ElapsedSinceLastHeartbeat *durationpb.Duration + WorkflowTaskSlotsInfo *WorkerSlotsInfo + ActivityTaskSlotsInfo *WorkerSlotsInfo + NexusTaskSlotsInfo *WorkerSlotsInfo + LocalActivitySlotsInfo *WorkerSlotsInfo + WorkflowPollerInfo *WorkerPollerInfo + WorkflowStickyPollerInfo *WorkerPollerInfo + ActivityPollerInfo *WorkerPollerInfo + NexusPollerInfo *WorkerPollerInfo + // A Workflow Task found a cached Workflow Execution to run against. + TotalStickyCacheHit int32 + // A Workflow Task did not find a cached Workflow execution to run against. + TotalStickyCacheMiss int32 + // Current cache size, expressed in number of Workflow Executions. + CurrentStickyCacheSize int32 + // Plugins currently in use by this SDK. + Plugins []*PluginInfo +} + +func (b0 WorkerHeartbeat_builder) Build() *WorkerHeartbeat { + m0 := &WorkerHeartbeat{} + b, x := &b0, m0 + _, _ = b, x + x.WorkerInstanceKey = b.WorkerInstanceKey + x.WorkerIdentity = b.WorkerIdentity + x.HostInfo = b.HostInfo + x.TaskQueue = b.TaskQueue + x.DeploymentVersion = b.DeploymentVersion + x.SdkName = b.SdkName + x.SdkVersion = b.SdkVersion + x.Status = b.Status + x.StartTime = b.StartTime + x.HeartbeatTime = b.HeartbeatTime + x.ElapsedSinceLastHeartbeat = b.ElapsedSinceLastHeartbeat + x.WorkflowTaskSlotsInfo = b.WorkflowTaskSlotsInfo + x.ActivityTaskSlotsInfo = b.ActivityTaskSlotsInfo + x.NexusTaskSlotsInfo = b.NexusTaskSlotsInfo + x.LocalActivitySlotsInfo = b.LocalActivitySlotsInfo + x.WorkflowPollerInfo = b.WorkflowPollerInfo + x.WorkflowStickyPollerInfo = b.WorkflowStickyPollerInfo + x.ActivityPollerInfo = b.ActivityPollerInfo + x.NexusPollerInfo = b.NexusPollerInfo + x.TotalStickyCacheHit = b.TotalStickyCacheHit + x.TotalStickyCacheMiss = b.TotalStickyCacheMiss + x.CurrentStickyCacheSize = b.CurrentStickyCacheSize + x.Plugins = b.Plugins + return m0 +} + type WorkerInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` WorkerHeartbeat *WorkerHeartbeat `protobuf:"bytes,1,opt,name=worker_heartbeat,json=workerHeartbeat,proto3" json:"worker_heartbeat,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -552,11 +1003,6 @@ func (x *WorkerInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use WorkerInfo.ProtoReflect.Descriptor instead. -func (*WorkerInfo) Descriptor() ([]byte, []int) { - return file_temporal_api_worker_v1_message_proto_rawDescGZIP(), []int{4} -} - func (x *WorkerInfo) GetWorkerHeartbeat() *WorkerHeartbeat { if x != nil { return x.WorkerHeartbeat @@ -564,8 +1010,37 @@ func (x *WorkerInfo) GetWorkerHeartbeat() *WorkerHeartbeat { return nil } +func (x *WorkerInfo) SetWorkerHeartbeat(v *WorkerHeartbeat) { + x.WorkerHeartbeat = v +} + +func (x *WorkerInfo) HasWorkerHeartbeat() bool { + if x == nil { + return false + } + return x.WorkerHeartbeat != nil +} + +func (x *WorkerInfo) ClearWorkerHeartbeat() { + x.WorkerHeartbeat = nil +} + +type WorkerInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + WorkerHeartbeat *WorkerHeartbeat +} + +func (b0 WorkerInfo_builder) Build() *WorkerInfo { + m0 := &WorkerInfo{} + b, x := &b0, m0 + _, _ = b, x + x.WorkerHeartbeat = b.WorkerHeartbeat + return m0 +} + type PluginInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The name of the plugin, required. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The version of the plugin, may be empty. @@ -599,11 +1074,6 @@ func (x *PluginInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PluginInfo.ProtoReflect.Descriptor instead. -func (*PluginInfo) Descriptor() ([]byte, []int) { - return file_temporal_api_worker_v1_message_proto_rawDescGZIP(), []int{5} -} - func (x *PluginInfo) GetName() string { if x != nil { return x.Name @@ -618,6 +1088,32 @@ func (x *PluginInfo) GetVersion() string { return "" } +func (x *PluginInfo) SetName(v string) { + x.Name = v +} + +func (x *PluginInfo) SetVersion(v string) { + x.Version = v +} + +type PluginInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The name of the plugin, required. + Name string + // The version of the plugin, may be empty. + Version string +} + +func (b0 PluginInfo_builder) Build() *PluginInfo { + m0 := &PluginInfo{} + b, x := &b0, m0 + _, _ = b, x + x.Name = b.Name + x.Version = b.Version + return m0 +} + var File_temporal_api_worker_v1_message_proto protoreflect.FileDescriptor const file_temporal_api_worker_v1_message_proto_rawDesc = "" + @@ -679,18 +1175,6 @@ const file_temporal_api_worker_v1_message_proto_rawDesc = "" + "\aversion\x18\x02 \x01(\tR\aversionB\x89\x01\n" + "\x19io.temporal.api.worker.v1B\fMessageProtoP\x01Z#go.temporal.io/api/worker/v1;worker\xaa\x02\x18Temporalio.Api.Worker.V1\xea\x02\x1bTemporalio::Api::Worker::V1b\x06proto3" -var ( - file_temporal_api_worker_v1_message_proto_rawDescOnce sync.Once - file_temporal_api_worker_v1_message_proto_rawDescData []byte -) - -func file_temporal_api_worker_v1_message_proto_rawDescGZIP() []byte { - file_temporal_api_worker_v1_message_proto_rawDescOnce.Do(func() { - file_temporal_api_worker_v1_message_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_api_worker_v1_message_proto_rawDesc), len(file_temporal_api_worker_v1_message_proto_rawDesc))) - }) - return file_temporal_api_worker_v1_message_proto_rawDescData -} - var file_temporal_api_worker_v1_message_proto_msgTypes = make([]protoimpl.MessageInfo, 6) var file_temporal_api_worker_v1_message_proto_goTypes = []any{ (*WorkerPollerInfo)(nil), // 0: temporal.api.worker.v1.WorkerPollerInfo diff --git a/worker/v1/message_protoopaque.pb.go b/worker/v1/message_protoopaque.pb.go new file mode 100644 index 00000000..ca396a50 --- /dev/null +++ b/worker/v1/message_protoopaque.pb.go @@ -0,0 +1,1198 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// plugins: +// protoc-gen-go +// protoc +// source: temporal/api/worker/v1/message.proto + +//go:build protoopaque + +package worker + +import ( + reflect "reflect" + unsafe "unsafe" + + v1 "go.temporal.io/api/deployment/v1" + v11 "go.temporal.io/api/enums/v1" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + durationpb "google.golang.org/protobuf/types/known/durationpb" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type WorkerPollerInfo struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_CurrentPollers int32 `protobuf:"varint,1,opt,name=current_pollers,json=currentPollers,proto3"` + xxx_hidden_LastSuccessfulPollTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=last_successful_poll_time,json=lastSuccessfulPollTime,proto3"` + xxx_hidden_IsAutoscaling bool `protobuf:"varint,3,opt,name=is_autoscaling,json=isAutoscaling,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkerPollerInfo) Reset() { + *x = WorkerPollerInfo{} + mi := &file_temporal_api_worker_v1_message_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkerPollerInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkerPollerInfo) ProtoMessage() {} + +func (x *WorkerPollerInfo) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_worker_v1_message_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkerPollerInfo) GetCurrentPollers() int32 { + if x != nil { + return x.xxx_hidden_CurrentPollers + } + return 0 +} + +func (x *WorkerPollerInfo) GetLastSuccessfulPollTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_LastSuccessfulPollTime + } + return nil +} + +func (x *WorkerPollerInfo) GetIsAutoscaling() bool { + if x != nil { + return x.xxx_hidden_IsAutoscaling + } + return false +} + +func (x *WorkerPollerInfo) SetCurrentPollers(v int32) { + x.xxx_hidden_CurrentPollers = v +} + +func (x *WorkerPollerInfo) SetLastSuccessfulPollTime(v *timestamppb.Timestamp) { + x.xxx_hidden_LastSuccessfulPollTime = v +} + +func (x *WorkerPollerInfo) SetIsAutoscaling(v bool) { + x.xxx_hidden_IsAutoscaling = v +} + +func (x *WorkerPollerInfo) HasLastSuccessfulPollTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_LastSuccessfulPollTime != nil +} + +func (x *WorkerPollerInfo) ClearLastSuccessfulPollTime() { + x.xxx_hidden_LastSuccessfulPollTime = nil +} + +type WorkerPollerInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Number of polling RPCs that are currently in flight. + CurrentPollers int32 + LastSuccessfulPollTime *timestamppb.Timestamp + // Set true if the number of concurrent pollers is auto-scaled + IsAutoscaling bool +} + +func (b0 WorkerPollerInfo_builder) Build() *WorkerPollerInfo { + m0 := &WorkerPollerInfo{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_CurrentPollers = b.CurrentPollers + x.xxx_hidden_LastSuccessfulPollTime = b.LastSuccessfulPollTime + x.xxx_hidden_IsAutoscaling = b.IsAutoscaling + return m0 +} + +type WorkerSlotsInfo struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_CurrentAvailableSlots int32 `protobuf:"varint,1,opt,name=current_available_slots,json=currentAvailableSlots,proto3"` + xxx_hidden_CurrentUsedSlots int32 `protobuf:"varint,2,opt,name=current_used_slots,json=currentUsedSlots,proto3"` + xxx_hidden_SlotSupplierKind string `protobuf:"bytes,3,opt,name=slot_supplier_kind,json=slotSupplierKind,proto3"` + xxx_hidden_TotalProcessedTasks int32 `protobuf:"varint,4,opt,name=total_processed_tasks,json=totalProcessedTasks,proto3"` + xxx_hidden_TotalFailedTasks int32 `protobuf:"varint,5,opt,name=total_failed_tasks,json=totalFailedTasks,proto3"` + xxx_hidden_LastIntervalProcessedTasks int32 `protobuf:"varint,6,opt,name=last_interval_processed_tasks,json=lastIntervalProcessedTasks,proto3"` + xxx_hidden_LastIntervalFailureTasks int32 `protobuf:"varint,7,opt,name=last_interval_failure_tasks,json=lastIntervalFailureTasks,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkerSlotsInfo) Reset() { + *x = WorkerSlotsInfo{} + mi := &file_temporal_api_worker_v1_message_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkerSlotsInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkerSlotsInfo) ProtoMessage() {} + +func (x *WorkerSlotsInfo) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_worker_v1_message_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkerSlotsInfo) GetCurrentAvailableSlots() int32 { + if x != nil { + return x.xxx_hidden_CurrentAvailableSlots + } + return 0 +} + +func (x *WorkerSlotsInfo) GetCurrentUsedSlots() int32 { + if x != nil { + return x.xxx_hidden_CurrentUsedSlots + } + return 0 +} + +func (x *WorkerSlotsInfo) GetSlotSupplierKind() string { + if x != nil { + return x.xxx_hidden_SlotSupplierKind + } + return "" +} + +func (x *WorkerSlotsInfo) GetTotalProcessedTasks() int32 { + if x != nil { + return x.xxx_hidden_TotalProcessedTasks + } + return 0 +} + +func (x *WorkerSlotsInfo) GetTotalFailedTasks() int32 { + if x != nil { + return x.xxx_hidden_TotalFailedTasks + } + return 0 +} + +func (x *WorkerSlotsInfo) GetLastIntervalProcessedTasks() int32 { + if x != nil { + return x.xxx_hidden_LastIntervalProcessedTasks + } + return 0 +} + +func (x *WorkerSlotsInfo) GetLastIntervalFailureTasks() int32 { + if x != nil { + return x.xxx_hidden_LastIntervalFailureTasks + } + return 0 +} + +func (x *WorkerSlotsInfo) SetCurrentAvailableSlots(v int32) { + x.xxx_hidden_CurrentAvailableSlots = v +} + +func (x *WorkerSlotsInfo) SetCurrentUsedSlots(v int32) { + x.xxx_hidden_CurrentUsedSlots = v +} + +func (x *WorkerSlotsInfo) SetSlotSupplierKind(v string) { + x.xxx_hidden_SlotSupplierKind = v +} + +func (x *WorkerSlotsInfo) SetTotalProcessedTasks(v int32) { + x.xxx_hidden_TotalProcessedTasks = v +} + +func (x *WorkerSlotsInfo) SetTotalFailedTasks(v int32) { + x.xxx_hidden_TotalFailedTasks = v +} + +func (x *WorkerSlotsInfo) SetLastIntervalProcessedTasks(v int32) { + x.xxx_hidden_LastIntervalProcessedTasks = v +} + +func (x *WorkerSlotsInfo) SetLastIntervalFailureTasks(v int32) { + x.xxx_hidden_LastIntervalFailureTasks = v +} + +type WorkerSlotsInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Number of slots available for the worker to specific tasks. + // May be -1 if the upper bound is not known. + CurrentAvailableSlots int32 + // Number of slots used by the worker for specific tasks. + CurrentUsedSlots int32 + // Kind of the slot supplier, which is used to determine how the slots are allocated. + // Possible values: "Fixed | ResourceBased | Custom String" + SlotSupplierKind string + // Total number of tasks processed (completed both successfully and unsuccesfully, or any other way) + // by the worker since the worker started. This is a cumulative counter. + TotalProcessedTasks int32 + // Total number of failed tasks processed by the worker so far. + TotalFailedTasks int32 + // Number of tasks processed in since the last heartbeat from the worker. + // This is a cumulative counter, and it is reset to 0 each time the worker sends a heartbeat. + // Contains both successful and failed tasks. + LastIntervalProcessedTasks int32 + // Number of failed tasks processed since the last heartbeat from the worker. + LastIntervalFailureTasks int32 +} + +func (b0 WorkerSlotsInfo_builder) Build() *WorkerSlotsInfo { + m0 := &WorkerSlotsInfo{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_CurrentAvailableSlots = b.CurrentAvailableSlots + x.xxx_hidden_CurrentUsedSlots = b.CurrentUsedSlots + x.xxx_hidden_SlotSupplierKind = b.SlotSupplierKind + x.xxx_hidden_TotalProcessedTasks = b.TotalProcessedTasks + x.xxx_hidden_TotalFailedTasks = b.TotalFailedTasks + x.xxx_hidden_LastIntervalProcessedTasks = b.LastIntervalProcessedTasks + x.xxx_hidden_LastIntervalFailureTasks = b.LastIntervalFailureTasks + return m0 +} + +// Holds everything needed to identify the worker host/process context +type WorkerHostInfo struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_HostName string `protobuf:"bytes,1,opt,name=host_name,json=hostName,proto3"` + xxx_hidden_WorkerGroupingKey string `protobuf:"bytes,5,opt,name=worker_grouping_key,json=workerGroupingKey,proto3"` + xxx_hidden_ProcessId string `protobuf:"bytes,2,opt,name=process_id,json=processId,proto3"` + xxx_hidden_CurrentHostCpuUsage float32 `protobuf:"fixed32,3,opt,name=current_host_cpu_usage,json=currentHostCpuUsage,proto3"` + xxx_hidden_CurrentHostMemUsage float32 `protobuf:"fixed32,4,opt,name=current_host_mem_usage,json=currentHostMemUsage,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkerHostInfo) Reset() { + *x = WorkerHostInfo{} + mi := &file_temporal_api_worker_v1_message_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkerHostInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkerHostInfo) ProtoMessage() {} + +func (x *WorkerHostInfo) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_worker_v1_message_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkerHostInfo) GetHostName() string { + if x != nil { + return x.xxx_hidden_HostName + } + return "" +} + +func (x *WorkerHostInfo) GetWorkerGroupingKey() string { + if x != nil { + return x.xxx_hidden_WorkerGroupingKey + } + return "" +} + +func (x *WorkerHostInfo) GetProcessId() string { + if x != nil { + return x.xxx_hidden_ProcessId + } + return "" +} + +func (x *WorkerHostInfo) GetCurrentHostCpuUsage() float32 { + if x != nil { + return x.xxx_hidden_CurrentHostCpuUsage + } + return 0 +} + +func (x *WorkerHostInfo) GetCurrentHostMemUsage() float32 { + if x != nil { + return x.xxx_hidden_CurrentHostMemUsage + } + return 0 +} + +func (x *WorkerHostInfo) SetHostName(v string) { + x.xxx_hidden_HostName = v +} + +func (x *WorkerHostInfo) SetWorkerGroupingKey(v string) { + x.xxx_hidden_WorkerGroupingKey = v +} + +func (x *WorkerHostInfo) SetProcessId(v string) { + x.xxx_hidden_ProcessId = v +} + +func (x *WorkerHostInfo) SetCurrentHostCpuUsage(v float32) { + x.xxx_hidden_CurrentHostCpuUsage = v +} + +func (x *WorkerHostInfo) SetCurrentHostMemUsage(v float32) { + x.xxx_hidden_CurrentHostMemUsage = v +} + +type WorkerHostInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Worker host identifier. + HostName string + // Worker grouping identifier. A key to group workers that share the same client+namespace+process. + // This will be used to build the worker command nexus task queue name: + // "temporal-sys/worker-commands/{worker_grouping_key}" + WorkerGroupingKey string + // Worker process identifier. This id only needs to be unique + // within one host (so using e.g. a unix pid would be appropriate). + ProcessId string + // System used CPU as a float in the range [0.0, 1.0] where 1.0 is defined as all + // cores on the host pegged. + CurrentHostCpuUsage float32 + // System used memory as a float in the range [0.0, 1.0] where 1.0 is defined as + // all available memory on the host is used. + CurrentHostMemUsage float32 +} + +func (b0 WorkerHostInfo_builder) Build() *WorkerHostInfo { + m0 := &WorkerHostInfo{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_HostName = b.HostName + x.xxx_hidden_WorkerGroupingKey = b.WorkerGroupingKey + x.xxx_hidden_ProcessId = b.ProcessId + x.xxx_hidden_CurrentHostCpuUsage = b.CurrentHostCpuUsage + x.xxx_hidden_CurrentHostMemUsage = b.CurrentHostMemUsage + return m0 +} + +// Worker info message, contains information about the worker and its current state. +// All information is provided by the worker itself. +// (-- api-linter: core::0140::prepositions=disabled +// +// aip.dev/not-precedent: Removing those words make names less clear. --) +type WorkerHeartbeat struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_WorkerInstanceKey string `protobuf:"bytes,1,opt,name=worker_instance_key,json=workerInstanceKey,proto3"` + xxx_hidden_WorkerIdentity string `protobuf:"bytes,2,opt,name=worker_identity,json=workerIdentity,proto3"` + xxx_hidden_HostInfo *WorkerHostInfo `protobuf:"bytes,3,opt,name=host_info,json=hostInfo,proto3"` + xxx_hidden_TaskQueue string `protobuf:"bytes,4,opt,name=task_queue,json=taskQueue,proto3"` + xxx_hidden_DeploymentVersion *v1.WorkerDeploymentVersion `protobuf:"bytes,5,opt,name=deployment_version,json=deploymentVersion,proto3"` + xxx_hidden_SdkName string `protobuf:"bytes,6,opt,name=sdk_name,json=sdkName,proto3"` + xxx_hidden_SdkVersion string `protobuf:"bytes,7,opt,name=sdk_version,json=sdkVersion,proto3"` + xxx_hidden_Status v11.WorkerStatus `protobuf:"varint,8,opt,name=status,proto3,enum=temporal.api.enums.v1.WorkerStatus"` + xxx_hidden_StartTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=start_time,json=startTime,proto3"` + xxx_hidden_HeartbeatTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=heartbeat_time,json=heartbeatTime,proto3"` + xxx_hidden_ElapsedSinceLastHeartbeat *durationpb.Duration `protobuf:"bytes,11,opt,name=elapsed_since_last_heartbeat,json=elapsedSinceLastHeartbeat,proto3"` + xxx_hidden_WorkflowTaskSlotsInfo *WorkerSlotsInfo `protobuf:"bytes,12,opt,name=workflow_task_slots_info,json=workflowTaskSlotsInfo,proto3"` + xxx_hidden_ActivityTaskSlotsInfo *WorkerSlotsInfo `protobuf:"bytes,13,opt,name=activity_task_slots_info,json=activityTaskSlotsInfo,proto3"` + xxx_hidden_NexusTaskSlotsInfo *WorkerSlotsInfo `protobuf:"bytes,14,opt,name=nexus_task_slots_info,json=nexusTaskSlotsInfo,proto3"` + xxx_hidden_LocalActivitySlotsInfo *WorkerSlotsInfo `protobuf:"bytes,15,opt,name=local_activity_slots_info,json=localActivitySlotsInfo,proto3"` + xxx_hidden_WorkflowPollerInfo *WorkerPollerInfo `protobuf:"bytes,16,opt,name=workflow_poller_info,json=workflowPollerInfo,proto3"` + xxx_hidden_WorkflowStickyPollerInfo *WorkerPollerInfo `protobuf:"bytes,17,opt,name=workflow_sticky_poller_info,json=workflowStickyPollerInfo,proto3"` + xxx_hidden_ActivityPollerInfo *WorkerPollerInfo `protobuf:"bytes,18,opt,name=activity_poller_info,json=activityPollerInfo,proto3"` + xxx_hidden_NexusPollerInfo *WorkerPollerInfo `protobuf:"bytes,19,opt,name=nexus_poller_info,json=nexusPollerInfo,proto3"` + xxx_hidden_TotalStickyCacheHit int32 `protobuf:"varint,20,opt,name=total_sticky_cache_hit,json=totalStickyCacheHit,proto3"` + xxx_hidden_TotalStickyCacheMiss int32 `protobuf:"varint,21,opt,name=total_sticky_cache_miss,json=totalStickyCacheMiss,proto3"` + xxx_hidden_CurrentStickyCacheSize int32 `protobuf:"varint,22,opt,name=current_sticky_cache_size,json=currentStickyCacheSize,proto3"` + xxx_hidden_Plugins *[]*PluginInfo `protobuf:"bytes,23,rep,name=plugins,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkerHeartbeat) Reset() { + *x = WorkerHeartbeat{} + mi := &file_temporal_api_worker_v1_message_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkerHeartbeat) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkerHeartbeat) ProtoMessage() {} + +func (x *WorkerHeartbeat) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_worker_v1_message_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkerHeartbeat) GetWorkerInstanceKey() string { + if x != nil { + return x.xxx_hidden_WorkerInstanceKey + } + return "" +} + +func (x *WorkerHeartbeat) GetWorkerIdentity() string { + if x != nil { + return x.xxx_hidden_WorkerIdentity + } + return "" +} + +func (x *WorkerHeartbeat) GetHostInfo() *WorkerHostInfo { + if x != nil { + return x.xxx_hidden_HostInfo + } + return nil +} + +func (x *WorkerHeartbeat) GetTaskQueue() string { + if x != nil { + return x.xxx_hidden_TaskQueue + } + return "" +} + +func (x *WorkerHeartbeat) GetDeploymentVersion() *v1.WorkerDeploymentVersion { + if x != nil { + return x.xxx_hidden_DeploymentVersion + } + return nil +} + +func (x *WorkerHeartbeat) GetSdkName() string { + if x != nil { + return x.xxx_hidden_SdkName + } + return "" +} + +func (x *WorkerHeartbeat) GetSdkVersion() string { + if x != nil { + return x.xxx_hidden_SdkVersion + } + return "" +} + +func (x *WorkerHeartbeat) GetStatus() v11.WorkerStatus { + if x != nil { + return x.xxx_hidden_Status + } + return v11.WorkerStatus(0) +} + +func (x *WorkerHeartbeat) GetStartTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_StartTime + } + return nil +} + +func (x *WorkerHeartbeat) GetHeartbeatTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_HeartbeatTime + } + return nil +} + +func (x *WorkerHeartbeat) GetElapsedSinceLastHeartbeat() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_ElapsedSinceLastHeartbeat + } + return nil +} + +func (x *WorkerHeartbeat) GetWorkflowTaskSlotsInfo() *WorkerSlotsInfo { + if x != nil { + return x.xxx_hidden_WorkflowTaskSlotsInfo + } + return nil +} + +func (x *WorkerHeartbeat) GetActivityTaskSlotsInfo() *WorkerSlotsInfo { + if x != nil { + return x.xxx_hidden_ActivityTaskSlotsInfo + } + return nil +} + +func (x *WorkerHeartbeat) GetNexusTaskSlotsInfo() *WorkerSlotsInfo { + if x != nil { + return x.xxx_hidden_NexusTaskSlotsInfo + } + return nil +} + +func (x *WorkerHeartbeat) GetLocalActivitySlotsInfo() *WorkerSlotsInfo { + if x != nil { + return x.xxx_hidden_LocalActivitySlotsInfo + } + return nil +} + +func (x *WorkerHeartbeat) GetWorkflowPollerInfo() *WorkerPollerInfo { + if x != nil { + return x.xxx_hidden_WorkflowPollerInfo + } + return nil +} + +func (x *WorkerHeartbeat) GetWorkflowStickyPollerInfo() *WorkerPollerInfo { + if x != nil { + return x.xxx_hidden_WorkflowStickyPollerInfo + } + return nil +} + +func (x *WorkerHeartbeat) GetActivityPollerInfo() *WorkerPollerInfo { + if x != nil { + return x.xxx_hidden_ActivityPollerInfo + } + return nil +} + +func (x *WorkerHeartbeat) GetNexusPollerInfo() *WorkerPollerInfo { + if x != nil { + return x.xxx_hidden_NexusPollerInfo + } + return nil +} + +func (x *WorkerHeartbeat) GetTotalStickyCacheHit() int32 { + if x != nil { + return x.xxx_hidden_TotalStickyCacheHit + } + return 0 +} + +func (x *WorkerHeartbeat) GetTotalStickyCacheMiss() int32 { + if x != nil { + return x.xxx_hidden_TotalStickyCacheMiss + } + return 0 +} + +func (x *WorkerHeartbeat) GetCurrentStickyCacheSize() int32 { + if x != nil { + return x.xxx_hidden_CurrentStickyCacheSize + } + return 0 +} + +func (x *WorkerHeartbeat) GetPlugins() []*PluginInfo { + if x != nil { + if x.xxx_hidden_Plugins != nil { + return *x.xxx_hidden_Plugins + } + } + return nil +} + +func (x *WorkerHeartbeat) SetWorkerInstanceKey(v string) { + x.xxx_hidden_WorkerInstanceKey = v +} + +func (x *WorkerHeartbeat) SetWorkerIdentity(v string) { + x.xxx_hidden_WorkerIdentity = v +} + +func (x *WorkerHeartbeat) SetHostInfo(v *WorkerHostInfo) { + x.xxx_hidden_HostInfo = v +} + +func (x *WorkerHeartbeat) SetTaskQueue(v string) { + x.xxx_hidden_TaskQueue = v +} + +func (x *WorkerHeartbeat) SetDeploymentVersion(v *v1.WorkerDeploymentVersion) { + x.xxx_hidden_DeploymentVersion = v +} + +func (x *WorkerHeartbeat) SetSdkName(v string) { + x.xxx_hidden_SdkName = v +} + +func (x *WorkerHeartbeat) SetSdkVersion(v string) { + x.xxx_hidden_SdkVersion = v +} + +func (x *WorkerHeartbeat) SetStatus(v v11.WorkerStatus) { + x.xxx_hidden_Status = v +} + +func (x *WorkerHeartbeat) SetStartTime(v *timestamppb.Timestamp) { + x.xxx_hidden_StartTime = v +} + +func (x *WorkerHeartbeat) SetHeartbeatTime(v *timestamppb.Timestamp) { + x.xxx_hidden_HeartbeatTime = v +} + +func (x *WorkerHeartbeat) SetElapsedSinceLastHeartbeat(v *durationpb.Duration) { + x.xxx_hidden_ElapsedSinceLastHeartbeat = v +} + +func (x *WorkerHeartbeat) SetWorkflowTaskSlotsInfo(v *WorkerSlotsInfo) { + x.xxx_hidden_WorkflowTaskSlotsInfo = v +} + +func (x *WorkerHeartbeat) SetActivityTaskSlotsInfo(v *WorkerSlotsInfo) { + x.xxx_hidden_ActivityTaskSlotsInfo = v +} + +func (x *WorkerHeartbeat) SetNexusTaskSlotsInfo(v *WorkerSlotsInfo) { + x.xxx_hidden_NexusTaskSlotsInfo = v +} + +func (x *WorkerHeartbeat) SetLocalActivitySlotsInfo(v *WorkerSlotsInfo) { + x.xxx_hidden_LocalActivitySlotsInfo = v +} + +func (x *WorkerHeartbeat) SetWorkflowPollerInfo(v *WorkerPollerInfo) { + x.xxx_hidden_WorkflowPollerInfo = v +} + +func (x *WorkerHeartbeat) SetWorkflowStickyPollerInfo(v *WorkerPollerInfo) { + x.xxx_hidden_WorkflowStickyPollerInfo = v +} + +func (x *WorkerHeartbeat) SetActivityPollerInfo(v *WorkerPollerInfo) { + x.xxx_hidden_ActivityPollerInfo = v +} + +func (x *WorkerHeartbeat) SetNexusPollerInfo(v *WorkerPollerInfo) { + x.xxx_hidden_NexusPollerInfo = v +} + +func (x *WorkerHeartbeat) SetTotalStickyCacheHit(v int32) { + x.xxx_hidden_TotalStickyCacheHit = v +} + +func (x *WorkerHeartbeat) SetTotalStickyCacheMiss(v int32) { + x.xxx_hidden_TotalStickyCacheMiss = v +} + +func (x *WorkerHeartbeat) SetCurrentStickyCacheSize(v int32) { + x.xxx_hidden_CurrentStickyCacheSize = v +} + +func (x *WorkerHeartbeat) SetPlugins(v []*PluginInfo) { + x.xxx_hidden_Plugins = &v +} + +func (x *WorkerHeartbeat) HasHostInfo() bool { + if x == nil { + return false + } + return x.xxx_hidden_HostInfo != nil +} + +func (x *WorkerHeartbeat) HasDeploymentVersion() bool { + if x == nil { + return false + } + return x.xxx_hidden_DeploymentVersion != nil +} + +func (x *WorkerHeartbeat) HasStartTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_StartTime != nil +} + +func (x *WorkerHeartbeat) HasHeartbeatTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_HeartbeatTime != nil +} + +func (x *WorkerHeartbeat) HasElapsedSinceLastHeartbeat() bool { + if x == nil { + return false + } + return x.xxx_hidden_ElapsedSinceLastHeartbeat != nil +} + +func (x *WorkerHeartbeat) HasWorkflowTaskSlotsInfo() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowTaskSlotsInfo != nil +} + +func (x *WorkerHeartbeat) HasActivityTaskSlotsInfo() bool { + if x == nil { + return false + } + return x.xxx_hidden_ActivityTaskSlotsInfo != nil +} + +func (x *WorkerHeartbeat) HasNexusTaskSlotsInfo() bool { + if x == nil { + return false + } + return x.xxx_hidden_NexusTaskSlotsInfo != nil +} + +func (x *WorkerHeartbeat) HasLocalActivitySlotsInfo() bool { + if x == nil { + return false + } + return x.xxx_hidden_LocalActivitySlotsInfo != nil +} + +func (x *WorkerHeartbeat) HasWorkflowPollerInfo() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowPollerInfo != nil +} + +func (x *WorkerHeartbeat) HasWorkflowStickyPollerInfo() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowStickyPollerInfo != nil +} + +func (x *WorkerHeartbeat) HasActivityPollerInfo() bool { + if x == nil { + return false + } + return x.xxx_hidden_ActivityPollerInfo != nil +} + +func (x *WorkerHeartbeat) HasNexusPollerInfo() bool { + if x == nil { + return false + } + return x.xxx_hidden_NexusPollerInfo != nil +} + +func (x *WorkerHeartbeat) ClearHostInfo() { + x.xxx_hidden_HostInfo = nil +} + +func (x *WorkerHeartbeat) ClearDeploymentVersion() { + x.xxx_hidden_DeploymentVersion = nil +} + +func (x *WorkerHeartbeat) ClearStartTime() { + x.xxx_hidden_StartTime = nil +} + +func (x *WorkerHeartbeat) ClearHeartbeatTime() { + x.xxx_hidden_HeartbeatTime = nil +} + +func (x *WorkerHeartbeat) ClearElapsedSinceLastHeartbeat() { + x.xxx_hidden_ElapsedSinceLastHeartbeat = nil +} + +func (x *WorkerHeartbeat) ClearWorkflowTaskSlotsInfo() { + x.xxx_hidden_WorkflowTaskSlotsInfo = nil +} + +func (x *WorkerHeartbeat) ClearActivityTaskSlotsInfo() { + x.xxx_hidden_ActivityTaskSlotsInfo = nil +} + +func (x *WorkerHeartbeat) ClearNexusTaskSlotsInfo() { + x.xxx_hidden_NexusTaskSlotsInfo = nil +} + +func (x *WorkerHeartbeat) ClearLocalActivitySlotsInfo() { + x.xxx_hidden_LocalActivitySlotsInfo = nil +} + +func (x *WorkerHeartbeat) ClearWorkflowPollerInfo() { + x.xxx_hidden_WorkflowPollerInfo = nil +} + +func (x *WorkerHeartbeat) ClearWorkflowStickyPollerInfo() { + x.xxx_hidden_WorkflowStickyPollerInfo = nil +} + +func (x *WorkerHeartbeat) ClearActivityPollerInfo() { + x.xxx_hidden_ActivityPollerInfo = nil +} + +func (x *WorkerHeartbeat) ClearNexusPollerInfo() { + x.xxx_hidden_NexusPollerInfo = nil +} + +type WorkerHeartbeat_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Worker identifier, should be unique for the namespace. + // It is distinct from worker identity, which is not necessarily namespace-unique. + WorkerInstanceKey string + // Worker identity, set by the client, may not be unique. + // Usually host_name+(user group name)+process_id, but can be overwritten by the user. + WorkerIdentity string + // Worker host information. + HostInfo *WorkerHostInfo + // Task queue this worker is polling for tasks. + TaskQueue string + DeploymentVersion *v1.WorkerDeploymentVersion + SdkName string + SdkVersion string + // Worker status. Defined by SDK. + Status v11.WorkerStatus + // Worker start time. + // It can be used to determine worker uptime. (current time - start time) + StartTime *timestamppb.Timestamp + // Timestamp of this heartbeat, coming from the worker. Worker should set it to "now". + // Note that this timestamp comes directly from the worker and is subject to workers' clock skew. + HeartbeatTime *timestamppb.Timestamp + // Elapsed time since the last heartbeat from the worker. + ElapsedSinceLastHeartbeat *durationpb.Duration + WorkflowTaskSlotsInfo *WorkerSlotsInfo + ActivityTaskSlotsInfo *WorkerSlotsInfo + NexusTaskSlotsInfo *WorkerSlotsInfo + LocalActivitySlotsInfo *WorkerSlotsInfo + WorkflowPollerInfo *WorkerPollerInfo + WorkflowStickyPollerInfo *WorkerPollerInfo + ActivityPollerInfo *WorkerPollerInfo + NexusPollerInfo *WorkerPollerInfo + // A Workflow Task found a cached Workflow Execution to run against. + TotalStickyCacheHit int32 + // A Workflow Task did not find a cached Workflow execution to run against. + TotalStickyCacheMiss int32 + // Current cache size, expressed in number of Workflow Executions. + CurrentStickyCacheSize int32 + // Plugins currently in use by this SDK. + Plugins []*PluginInfo +} + +func (b0 WorkerHeartbeat_builder) Build() *WorkerHeartbeat { + m0 := &WorkerHeartbeat{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_WorkerInstanceKey = b.WorkerInstanceKey + x.xxx_hidden_WorkerIdentity = b.WorkerIdentity + x.xxx_hidden_HostInfo = b.HostInfo + x.xxx_hidden_TaskQueue = b.TaskQueue + x.xxx_hidden_DeploymentVersion = b.DeploymentVersion + x.xxx_hidden_SdkName = b.SdkName + x.xxx_hidden_SdkVersion = b.SdkVersion + x.xxx_hidden_Status = b.Status + x.xxx_hidden_StartTime = b.StartTime + x.xxx_hidden_HeartbeatTime = b.HeartbeatTime + x.xxx_hidden_ElapsedSinceLastHeartbeat = b.ElapsedSinceLastHeartbeat + x.xxx_hidden_WorkflowTaskSlotsInfo = b.WorkflowTaskSlotsInfo + x.xxx_hidden_ActivityTaskSlotsInfo = b.ActivityTaskSlotsInfo + x.xxx_hidden_NexusTaskSlotsInfo = b.NexusTaskSlotsInfo + x.xxx_hidden_LocalActivitySlotsInfo = b.LocalActivitySlotsInfo + x.xxx_hidden_WorkflowPollerInfo = b.WorkflowPollerInfo + x.xxx_hidden_WorkflowStickyPollerInfo = b.WorkflowStickyPollerInfo + x.xxx_hidden_ActivityPollerInfo = b.ActivityPollerInfo + x.xxx_hidden_NexusPollerInfo = b.NexusPollerInfo + x.xxx_hidden_TotalStickyCacheHit = b.TotalStickyCacheHit + x.xxx_hidden_TotalStickyCacheMiss = b.TotalStickyCacheMiss + x.xxx_hidden_CurrentStickyCacheSize = b.CurrentStickyCacheSize + x.xxx_hidden_Plugins = &b.Plugins + return m0 +} + +type WorkerInfo struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_WorkerHeartbeat *WorkerHeartbeat `protobuf:"bytes,1,opt,name=worker_heartbeat,json=workerHeartbeat,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkerInfo) Reset() { + *x = WorkerInfo{} + mi := &file_temporal_api_worker_v1_message_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkerInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkerInfo) ProtoMessage() {} + +func (x *WorkerInfo) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_worker_v1_message_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkerInfo) GetWorkerHeartbeat() *WorkerHeartbeat { + if x != nil { + return x.xxx_hidden_WorkerHeartbeat + } + return nil +} + +func (x *WorkerInfo) SetWorkerHeartbeat(v *WorkerHeartbeat) { + x.xxx_hidden_WorkerHeartbeat = v +} + +func (x *WorkerInfo) HasWorkerHeartbeat() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkerHeartbeat != nil +} + +func (x *WorkerInfo) ClearWorkerHeartbeat() { + x.xxx_hidden_WorkerHeartbeat = nil +} + +type WorkerInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + WorkerHeartbeat *WorkerHeartbeat +} + +func (b0 WorkerInfo_builder) Build() *WorkerInfo { + m0 := &WorkerInfo{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_WorkerHeartbeat = b.WorkerHeartbeat + return m0 +} + +type PluginInfo struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Name string `protobuf:"bytes,1,opt,name=name,proto3"` + xxx_hidden_Version string `protobuf:"bytes,2,opt,name=version,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PluginInfo) Reset() { + *x = PluginInfo{} + mi := &file_temporal_api_worker_v1_message_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PluginInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PluginInfo) ProtoMessage() {} + +func (x *PluginInfo) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_worker_v1_message_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PluginInfo) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *PluginInfo) GetVersion() string { + if x != nil { + return x.xxx_hidden_Version + } + return "" +} + +func (x *PluginInfo) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *PluginInfo) SetVersion(v string) { + x.xxx_hidden_Version = v +} + +type PluginInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The name of the plugin, required. + Name string + // The version of the plugin, may be empty. + Version string +} + +func (b0 PluginInfo_builder) Build() *PluginInfo { + m0 := &PluginInfo{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Name = b.Name + x.xxx_hidden_Version = b.Version + return m0 +} + +var File_temporal_api_worker_v1_message_proto protoreflect.FileDescriptor + +const file_temporal_api_worker_v1_message_proto_rawDesc = "" + + "\n" + + "$temporal/api/worker/v1/message.proto\x12\x16temporal.api.worker.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a(temporal/api/deployment/v1/message.proto\x1a\"temporal/api/enums/v1/common.proto\"\xb9\x01\n" + + "\x10WorkerPollerInfo\x12'\n" + + "\x0fcurrent_pollers\x18\x01 \x01(\x05R\x0ecurrentPollers\x12U\n" + + "\x19last_successful_poll_time\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\x16lastSuccessfulPollTime\x12%\n" + + "\x0eis_autoscaling\x18\x03 \x01(\bR\risAutoscaling\"\x89\x03\n" + + "\x0fWorkerSlotsInfo\x126\n" + + "\x17current_available_slots\x18\x01 \x01(\x05R\x15currentAvailableSlots\x12,\n" + + "\x12current_used_slots\x18\x02 \x01(\x05R\x10currentUsedSlots\x12,\n" + + "\x12slot_supplier_kind\x18\x03 \x01(\tR\x10slotSupplierKind\x122\n" + + "\x15total_processed_tasks\x18\x04 \x01(\x05R\x13totalProcessedTasks\x12,\n" + + "\x12total_failed_tasks\x18\x05 \x01(\x05R\x10totalFailedTasks\x12A\n" + + "\x1dlast_interval_processed_tasks\x18\x06 \x01(\x05R\x1alastIntervalProcessedTasks\x12=\n" + + "\x1blast_interval_failure_tasks\x18\a \x01(\x05R\x18lastIntervalFailureTasks\"\xe6\x01\n" + + "\x0eWorkerHostInfo\x12\x1b\n" + + "\thost_name\x18\x01 \x01(\tR\bhostName\x12.\n" + + "\x13worker_grouping_key\x18\x05 \x01(\tR\x11workerGroupingKey\x12\x1d\n" + + "\n" + + "process_id\x18\x02 \x01(\tR\tprocessId\x123\n" + + "\x16current_host_cpu_usage\x18\x03 \x01(\x02R\x13currentHostCpuUsage\x123\n" + + "\x16current_host_mem_usage\x18\x04 \x01(\x02R\x13currentHostMemUsage\"\xe5\f\n" + + "\x0fWorkerHeartbeat\x12.\n" + + "\x13worker_instance_key\x18\x01 \x01(\tR\x11workerInstanceKey\x12'\n" + + "\x0fworker_identity\x18\x02 \x01(\tR\x0eworkerIdentity\x12C\n" + + "\thost_info\x18\x03 \x01(\v2&.temporal.api.worker.v1.WorkerHostInfoR\bhostInfo\x12\x1d\n" + + "\n" + + "task_queue\x18\x04 \x01(\tR\ttaskQueue\x12b\n" + + "\x12deployment_version\x18\x05 \x01(\v23.temporal.api.deployment.v1.WorkerDeploymentVersionR\x11deploymentVersion\x12\x19\n" + + "\bsdk_name\x18\x06 \x01(\tR\asdkName\x12\x1f\n" + + "\vsdk_version\x18\a \x01(\tR\n" + + "sdkVersion\x12;\n" + + "\x06status\x18\b \x01(\x0e2#.temporal.api.enums.v1.WorkerStatusR\x06status\x129\n" + + "\n" + + "start_time\x18\t \x01(\v2\x1a.google.protobuf.TimestampR\tstartTime\x12A\n" + + "\x0eheartbeat_time\x18\n" + + " \x01(\v2\x1a.google.protobuf.TimestampR\rheartbeatTime\x12Z\n" + + "\x1celapsed_since_last_heartbeat\x18\v \x01(\v2\x19.google.protobuf.DurationR\x19elapsedSinceLastHeartbeat\x12`\n" + + "\x18workflow_task_slots_info\x18\f \x01(\v2'.temporal.api.worker.v1.WorkerSlotsInfoR\x15workflowTaskSlotsInfo\x12`\n" + + "\x18activity_task_slots_info\x18\r \x01(\v2'.temporal.api.worker.v1.WorkerSlotsInfoR\x15activityTaskSlotsInfo\x12Z\n" + + "\x15nexus_task_slots_info\x18\x0e \x01(\v2'.temporal.api.worker.v1.WorkerSlotsInfoR\x12nexusTaskSlotsInfo\x12b\n" + + "\x19local_activity_slots_info\x18\x0f \x01(\v2'.temporal.api.worker.v1.WorkerSlotsInfoR\x16localActivitySlotsInfo\x12Z\n" + + "\x14workflow_poller_info\x18\x10 \x01(\v2(.temporal.api.worker.v1.WorkerPollerInfoR\x12workflowPollerInfo\x12g\n" + + "\x1bworkflow_sticky_poller_info\x18\x11 \x01(\v2(.temporal.api.worker.v1.WorkerPollerInfoR\x18workflowStickyPollerInfo\x12Z\n" + + "\x14activity_poller_info\x18\x12 \x01(\v2(.temporal.api.worker.v1.WorkerPollerInfoR\x12activityPollerInfo\x12T\n" + + "\x11nexus_poller_info\x18\x13 \x01(\v2(.temporal.api.worker.v1.WorkerPollerInfoR\x0fnexusPollerInfo\x123\n" + + "\x16total_sticky_cache_hit\x18\x14 \x01(\x05R\x13totalStickyCacheHit\x125\n" + + "\x17total_sticky_cache_miss\x18\x15 \x01(\x05R\x14totalStickyCacheMiss\x129\n" + + "\x19current_sticky_cache_size\x18\x16 \x01(\x05R\x16currentStickyCacheSize\x12<\n" + + "\aplugins\x18\x17 \x03(\v2\".temporal.api.worker.v1.PluginInfoR\aplugins\"`\n" + + "\n" + + "WorkerInfo\x12R\n" + + "\x10worker_heartbeat\x18\x01 \x01(\v2'.temporal.api.worker.v1.WorkerHeartbeatR\x0fworkerHeartbeat\":\n" + + "\n" + + "PluginInfo\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12\x18\n" + + "\aversion\x18\x02 \x01(\tR\aversionB\x89\x01\n" + + "\x19io.temporal.api.worker.v1B\fMessageProtoP\x01Z#go.temporal.io/api/worker/v1;worker\xaa\x02\x18Temporalio.Api.Worker.V1\xea\x02\x1bTemporalio::Api::Worker::V1b\x06proto3" + +var file_temporal_api_worker_v1_message_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_temporal_api_worker_v1_message_proto_goTypes = []any{ + (*WorkerPollerInfo)(nil), // 0: temporal.api.worker.v1.WorkerPollerInfo + (*WorkerSlotsInfo)(nil), // 1: temporal.api.worker.v1.WorkerSlotsInfo + (*WorkerHostInfo)(nil), // 2: temporal.api.worker.v1.WorkerHostInfo + (*WorkerHeartbeat)(nil), // 3: temporal.api.worker.v1.WorkerHeartbeat + (*WorkerInfo)(nil), // 4: temporal.api.worker.v1.WorkerInfo + (*PluginInfo)(nil), // 5: temporal.api.worker.v1.PluginInfo + (*timestamppb.Timestamp)(nil), // 6: google.protobuf.Timestamp + (*v1.WorkerDeploymentVersion)(nil), // 7: temporal.api.deployment.v1.WorkerDeploymentVersion + (v11.WorkerStatus)(0), // 8: temporal.api.enums.v1.WorkerStatus + (*durationpb.Duration)(nil), // 9: google.protobuf.Duration +} +var file_temporal_api_worker_v1_message_proto_depIdxs = []int32{ + 6, // 0: temporal.api.worker.v1.WorkerPollerInfo.last_successful_poll_time:type_name -> google.protobuf.Timestamp + 2, // 1: temporal.api.worker.v1.WorkerHeartbeat.host_info:type_name -> temporal.api.worker.v1.WorkerHostInfo + 7, // 2: temporal.api.worker.v1.WorkerHeartbeat.deployment_version:type_name -> temporal.api.deployment.v1.WorkerDeploymentVersion + 8, // 3: temporal.api.worker.v1.WorkerHeartbeat.status:type_name -> temporal.api.enums.v1.WorkerStatus + 6, // 4: temporal.api.worker.v1.WorkerHeartbeat.start_time:type_name -> google.protobuf.Timestamp + 6, // 5: temporal.api.worker.v1.WorkerHeartbeat.heartbeat_time:type_name -> google.protobuf.Timestamp + 9, // 6: temporal.api.worker.v1.WorkerHeartbeat.elapsed_since_last_heartbeat:type_name -> google.protobuf.Duration + 1, // 7: temporal.api.worker.v1.WorkerHeartbeat.workflow_task_slots_info:type_name -> temporal.api.worker.v1.WorkerSlotsInfo + 1, // 8: temporal.api.worker.v1.WorkerHeartbeat.activity_task_slots_info:type_name -> temporal.api.worker.v1.WorkerSlotsInfo + 1, // 9: temporal.api.worker.v1.WorkerHeartbeat.nexus_task_slots_info:type_name -> temporal.api.worker.v1.WorkerSlotsInfo + 1, // 10: temporal.api.worker.v1.WorkerHeartbeat.local_activity_slots_info:type_name -> temporal.api.worker.v1.WorkerSlotsInfo + 0, // 11: temporal.api.worker.v1.WorkerHeartbeat.workflow_poller_info:type_name -> temporal.api.worker.v1.WorkerPollerInfo + 0, // 12: temporal.api.worker.v1.WorkerHeartbeat.workflow_sticky_poller_info:type_name -> temporal.api.worker.v1.WorkerPollerInfo + 0, // 13: temporal.api.worker.v1.WorkerHeartbeat.activity_poller_info:type_name -> temporal.api.worker.v1.WorkerPollerInfo + 0, // 14: temporal.api.worker.v1.WorkerHeartbeat.nexus_poller_info:type_name -> temporal.api.worker.v1.WorkerPollerInfo + 5, // 15: temporal.api.worker.v1.WorkerHeartbeat.plugins:type_name -> temporal.api.worker.v1.PluginInfo + 3, // 16: temporal.api.worker.v1.WorkerInfo.worker_heartbeat:type_name -> temporal.api.worker.v1.WorkerHeartbeat + 17, // [17:17] is the sub-list for method output_type + 17, // [17:17] is the sub-list for method input_type + 17, // [17:17] is the sub-list for extension type_name + 17, // [17:17] is the sub-list for extension extendee + 0, // [0:17] is the sub-list for field type_name +} + +func init() { file_temporal_api_worker_v1_message_proto_init() } +func file_temporal_api_worker_v1_message_proto_init() { + if File_temporal_api_worker_v1_message_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_api_worker_v1_message_proto_rawDesc), len(file_temporal_api_worker_v1_message_proto_rawDesc)), + NumEnums: 0, + NumMessages: 6, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_temporal_api_worker_v1_message_proto_goTypes, + DependencyIndexes: file_temporal_api_worker_v1_message_proto_depIdxs, + MessageInfos: file_temporal_api_worker_v1_message_proto_msgTypes, + }.Build() + File_temporal_api_worker_v1_message_proto = out.File + file_temporal_api_worker_v1_message_proto_goTypes = nil + file_temporal_api_worker_v1_message_proto_depIdxs = nil +} diff --git a/workflow/v1/message.pb.go b/workflow/v1/message.pb.go index 49bbf0e9..0046dfdd 100644 --- a/workflow/v1/message.pb.go +++ b/workflow/v1/message.pb.go @@ -4,12 +4,13 @@ // protoc // source: temporal/api/workflow/v1/message.proto +//go:build !protoopaque + package workflow import ( reflect "reflect" "strconv" - sync "sync" unsafe "unsafe" v16 "go.temporal.io/api/activity/v1" @@ -85,15 +86,10 @@ func (x VersioningOverride_PinnedOverrideBehavior) Number() protoreflect.EnumNum return protoreflect.EnumNumber(x) } -// Deprecated: Use VersioningOverride_PinnedOverrideBehavior.Descriptor instead. -func (VersioningOverride_PinnedOverrideBehavior) EnumDescriptor() ([]byte, []int) { - return file_temporal_api_workflow_v1_message_proto_rawDescGZIP(), []int{16, 0} -} - // Hold basic information about a workflow execution. // This structure is a part of visibility, and thus contain a limited subset of information. type WorkflowExecutionInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Execution *v1.WorkflowExecution `protobuf:"bytes,1,opt,name=execution,proto3" json:"execution,omitempty"` Type *v1.WorkflowType `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` StartTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` @@ -201,11 +197,6 @@ func (x *WorkflowExecutionInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use WorkflowExecutionInfo.ProtoReflect.Descriptor instead. -func (*WorkflowExecutionInfo) Descriptor() ([]byte, []int) { - return file_temporal_api_workflow_v1_message_proto_rawDescGZIP(), []int{0} -} - func (x *WorkflowExecutionInfo) GetExecution() *v1.WorkflowExecution { if x != nil { return x.Execution @@ -391,9 +382,388 @@ func (x *WorkflowExecutionInfo) GetExternalPayloadCount() int64 { return 0 } +func (x *WorkflowExecutionInfo) SetExecution(v *v1.WorkflowExecution) { + x.Execution = v +} + +func (x *WorkflowExecutionInfo) SetType(v *v1.WorkflowType) { + x.Type = v +} + +func (x *WorkflowExecutionInfo) SetStartTime(v *timestamppb.Timestamp) { + x.StartTime = v +} + +func (x *WorkflowExecutionInfo) SetCloseTime(v *timestamppb.Timestamp) { + x.CloseTime = v +} + +func (x *WorkflowExecutionInfo) SetStatus(v v11.WorkflowExecutionStatus) { + x.Status = v +} + +func (x *WorkflowExecutionInfo) SetHistoryLength(v int64) { + x.HistoryLength = v +} + +func (x *WorkflowExecutionInfo) SetParentNamespaceId(v string) { + x.ParentNamespaceId = v +} + +func (x *WorkflowExecutionInfo) SetParentExecution(v *v1.WorkflowExecution) { + x.ParentExecution = v +} + +func (x *WorkflowExecutionInfo) SetExecutionTime(v *timestamppb.Timestamp) { + x.ExecutionTime = v +} + +func (x *WorkflowExecutionInfo) SetMemo(v *v1.Memo) { + x.Memo = v +} + +func (x *WorkflowExecutionInfo) SetSearchAttributes(v *v1.SearchAttributes) { + x.SearchAttributes = v +} + +func (x *WorkflowExecutionInfo) SetAutoResetPoints(v *ResetPoints) { + x.AutoResetPoints = v +} + +func (x *WorkflowExecutionInfo) SetTaskQueue(v string) { + x.TaskQueue = v +} + +func (x *WorkflowExecutionInfo) SetStateTransitionCount(v int64) { + x.StateTransitionCount = v +} + +func (x *WorkflowExecutionInfo) SetHistorySizeBytes(v int64) { + x.HistorySizeBytes = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *WorkflowExecutionInfo) SetMostRecentWorkerVersionStamp(v *v1.WorkerVersionStamp) { + x.MostRecentWorkerVersionStamp = v +} + +func (x *WorkflowExecutionInfo) SetExecutionDuration(v *durationpb.Duration) { + x.ExecutionDuration = v +} + +func (x *WorkflowExecutionInfo) SetRootExecution(v *v1.WorkflowExecution) { + x.RootExecution = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *WorkflowExecutionInfo) SetAssignedBuildId(v string) { + x.AssignedBuildId = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *WorkflowExecutionInfo) SetInheritedBuildId(v string) { + x.InheritedBuildId = v +} + +func (x *WorkflowExecutionInfo) SetFirstRunId(v string) { + x.FirstRunId = v +} + +func (x *WorkflowExecutionInfo) SetVersioningInfo(v *WorkflowExecutionVersioningInfo) { + x.VersioningInfo = v +} + +func (x *WorkflowExecutionInfo) SetWorkerDeploymentName(v string) { + x.WorkerDeploymentName = v +} + +func (x *WorkflowExecutionInfo) SetPriority(v *v1.Priority) { + x.Priority = v +} + +func (x *WorkflowExecutionInfo) SetExternalPayloadSizeBytes(v int64) { + x.ExternalPayloadSizeBytes = v +} + +func (x *WorkflowExecutionInfo) SetExternalPayloadCount(v int64) { + x.ExternalPayloadCount = v +} + +func (x *WorkflowExecutionInfo) HasExecution() bool { + if x == nil { + return false + } + return x.Execution != nil +} + +func (x *WorkflowExecutionInfo) HasType() bool { + if x == nil { + return false + } + return x.Type != nil +} + +func (x *WorkflowExecutionInfo) HasStartTime() bool { + if x == nil { + return false + } + return x.StartTime != nil +} + +func (x *WorkflowExecutionInfo) HasCloseTime() bool { + if x == nil { + return false + } + return x.CloseTime != nil +} + +func (x *WorkflowExecutionInfo) HasParentExecution() bool { + if x == nil { + return false + } + return x.ParentExecution != nil +} + +func (x *WorkflowExecutionInfo) HasExecutionTime() bool { + if x == nil { + return false + } + return x.ExecutionTime != nil +} + +func (x *WorkflowExecutionInfo) HasMemo() bool { + if x == nil { + return false + } + return x.Memo != nil +} + +func (x *WorkflowExecutionInfo) HasSearchAttributes() bool { + if x == nil { + return false + } + return x.SearchAttributes != nil +} + +func (x *WorkflowExecutionInfo) HasAutoResetPoints() bool { + if x == nil { + return false + } + return x.AutoResetPoints != nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *WorkflowExecutionInfo) HasMostRecentWorkerVersionStamp() bool { + if x == nil { + return false + } + return x.MostRecentWorkerVersionStamp != nil +} + +func (x *WorkflowExecutionInfo) HasExecutionDuration() bool { + if x == nil { + return false + } + return x.ExecutionDuration != nil +} + +func (x *WorkflowExecutionInfo) HasRootExecution() bool { + if x == nil { + return false + } + return x.RootExecution != nil +} + +func (x *WorkflowExecutionInfo) HasVersioningInfo() bool { + if x == nil { + return false + } + return x.VersioningInfo != nil +} + +func (x *WorkflowExecutionInfo) HasPriority() bool { + if x == nil { + return false + } + return x.Priority != nil +} + +func (x *WorkflowExecutionInfo) ClearExecution() { + x.Execution = nil +} + +func (x *WorkflowExecutionInfo) ClearType() { + x.Type = nil +} + +func (x *WorkflowExecutionInfo) ClearStartTime() { + x.StartTime = nil +} + +func (x *WorkflowExecutionInfo) ClearCloseTime() { + x.CloseTime = nil +} + +func (x *WorkflowExecutionInfo) ClearParentExecution() { + x.ParentExecution = nil +} + +func (x *WorkflowExecutionInfo) ClearExecutionTime() { + x.ExecutionTime = nil +} + +func (x *WorkflowExecutionInfo) ClearMemo() { + x.Memo = nil +} + +func (x *WorkflowExecutionInfo) ClearSearchAttributes() { + x.SearchAttributes = nil +} + +func (x *WorkflowExecutionInfo) ClearAutoResetPoints() { + x.AutoResetPoints = nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *WorkflowExecutionInfo) ClearMostRecentWorkerVersionStamp() { + x.MostRecentWorkerVersionStamp = nil +} + +func (x *WorkflowExecutionInfo) ClearExecutionDuration() { + x.ExecutionDuration = nil +} + +func (x *WorkflowExecutionInfo) ClearRootExecution() { + x.RootExecution = nil +} + +func (x *WorkflowExecutionInfo) ClearVersioningInfo() { + x.VersioningInfo = nil +} + +func (x *WorkflowExecutionInfo) ClearPriority() { + x.Priority = nil +} + +type WorkflowExecutionInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Execution *v1.WorkflowExecution + Type *v1.WorkflowType + StartTime *timestamppb.Timestamp + CloseTime *timestamppb.Timestamp + Status v11.WorkflowExecutionStatus + HistoryLength int64 + ParentNamespaceId string + ParentExecution *v1.WorkflowExecution + ExecutionTime *timestamppb.Timestamp + Memo *v1.Memo + SearchAttributes *v1.SearchAttributes + AutoResetPoints *ResetPoints + TaskQueue string + StateTransitionCount int64 + HistorySizeBytes int64 + // If set, the most recent worker version stamp that appeared in a workflow task completion + // Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] + // + // Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. + MostRecentWorkerVersionStamp *v1.WorkerVersionStamp + // Workflow execution duration is defined as difference between close time and execution time. + // This field is only populated if the workflow is closed. + ExecutionDuration *durationpb.Duration + // Contains information about the root workflow execution. + // The root workflow execution is defined as follows: + // 1. A workflow without parent workflow is its own root workflow. + // 2. A workflow that has a parent workflow has the same root workflow as its parent workflow. + // Note: workflows continued as new or reseted may or may not have parents, check examples below. + // + // Examples: + // + // Scenario 1: Workflow W1 starts child workflow W2, and W2 starts child workflow W3. + // - The root workflow of all three workflows is W1. + // Scenario 2: Workflow W1 starts child workflow W2, and W2 continued as new W3. + // - The root workflow of all three workflows is W1. + // Scenario 3: Workflow W1 continued as new W2. + // - The root workflow of W1 is W1 and the root workflow of W2 is W2. + // Scenario 4: Workflow W1 starts child workflow W2, and W2 is reseted, creating W3 + // - The root workflow of all three workflows is W1. + // Scenario 5: Workflow W1 is reseted, creating W2. + // - The root workflow of W1 is W1 and the root workflow of W2 is W2. + RootExecution *v1.WorkflowExecution + // The currently assigned build ID for this execution. Presence of this value means worker versioning is used + // for this execution. Assigned build ID is selected based on Worker Versioning Assignment Rules + // when the first workflow task of the execution is scheduled. If the first workflow task fails and is scheduled + // again, the assigned build ID may change according to the latest versioning rules. + // Assigned build ID can also change in the middle of a execution if Compatible Redirect Rules are applied to + // this execution. + // Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] + // + // Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. + AssignedBuildId string + // Build ID inherited from a previous/parent execution. If present, assigned_build_id will be set to this, instead + // of using the assignment rules. + // Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] + // + // Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. + InheritedBuildId string + // The first run ID in the execution chain. + // Executions created via the following operations are considered to be in the same chain + // - ContinueAsNew + // - Workflow Retry + // - Workflow Reset + // - Cron Schedule + FirstRunId string + // Absent value means the workflow execution is not versioned. When present, the execution might + // be versioned or unversioned, depending on `versioning_info.behavior` and `versioning_info.versioning_override`. + // Experimental. Versioning info is experimental and might change in the future. + VersioningInfo *WorkflowExecutionVersioningInfo + // The name of Worker Deployment that completed the most recent workflow task. + // Experimental. Worker Deployments are experimental and might change in the future. + WorkerDeploymentName string + // Priority metadata + Priority *v1.Priority + // Total size in bytes of all external payloads referenced in workflow history. + ExternalPayloadSizeBytes int64 + // Count of external payloads referenced in workflow history. + ExternalPayloadCount int64 +} + +func (b0 WorkflowExecutionInfo_builder) Build() *WorkflowExecutionInfo { + m0 := &WorkflowExecutionInfo{} + b, x := &b0, m0 + _, _ = b, x + x.Execution = b.Execution + x.Type = b.Type + x.StartTime = b.StartTime + x.CloseTime = b.CloseTime + x.Status = b.Status + x.HistoryLength = b.HistoryLength + x.ParentNamespaceId = b.ParentNamespaceId + x.ParentExecution = b.ParentExecution + x.ExecutionTime = b.ExecutionTime + x.Memo = b.Memo + x.SearchAttributes = b.SearchAttributes + x.AutoResetPoints = b.AutoResetPoints + x.TaskQueue = b.TaskQueue + x.StateTransitionCount = b.StateTransitionCount + x.HistorySizeBytes = b.HistorySizeBytes + x.MostRecentWorkerVersionStamp = b.MostRecentWorkerVersionStamp + x.ExecutionDuration = b.ExecutionDuration + x.RootExecution = b.RootExecution + x.AssignedBuildId = b.AssignedBuildId + x.InheritedBuildId = b.InheritedBuildId + x.FirstRunId = b.FirstRunId + x.VersioningInfo = b.VersioningInfo + x.WorkerDeploymentName = b.WorkerDeploymentName + x.Priority = b.Priority + x.ExternalPayloadSizeBytes = b.ExternalPayloadSizeBytes + x.ExternalPayloadCount = b.ExternalPayloadCount + return m0 +} + // Holds all the extra information about workflow execution that is not part of Visibility. type WorkflowExecutionExtendedInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Workflow execution expiration time is defined as workflow start time plus expiration timeout. // Workflow start time may change after workflow reset. ExecutionExpirationTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=execution_expiration_time,json=executionExpirationTime,proto3" json:"execution_expiration_time,omitempty"` @@ -443,11 +813,6 @@ func (x *WorkflowExecutionExtendedInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use WorkflowExecutionExtendedInfo.ProtoReflect.Descriptor instead. -func (*WorkflowExecutionExtendedInfo) Descriptor() ([]byte, []int) { - return file_temporal_api_workflow_v1_message_proto_rawDescGZIP(), []int{1} -} - func (x *WorkflowExecutionExtendedInfo) GetExecutionExpirationTime() *timestamppb.Timestamp { if x != nil { return x.ExecutionExpirationTime @@ -504,10 +869,137 @@ func (x *WorkflowExecutionExtendedInfo) GetPauseInfo() *WorkflowExecutionPauseIn return nil } +func (x *WorkflowExecutionExtendedInfo) SetExecutionExpirationTime(v *timestamppb.Timestamp) { + x.ExecutionExpirationTime = v +} + +func (x *WorkflowExecutionExtendedInfo) SetRunExpirationTime(v *timestamppb.Timestamp) { + x.RunExpirationTime = v +} + +func (x *WorkflowExecutionExtendedInfo) SetCancelRequested(v bool) { + x.CancelRequested = v +} + +func (x *WorkflowExecutionExtendedInfo) SetLastResetTime(v *timestamppb.Timestamp) { + x.LastResetTime = v +} + +func (x *WorkflowExecutionExtendedInfo) SetOriginalStartTime(v *timestamppb.Timestamp) { + x.OriginalStartTime = v +} + +func (x *WorkflowExecutionExtendedInfo) SetResetRunId(v string) { + x.ResetRunId = v +} + +func (x *WorkflowExecutionExtendedInfo) SetRequestIdInfos(v map[string]*RequestIdInfo) { + x.RequestIdInfos = v +} + +func (x *WorkflowExecutionExtendedInfo) SetPauseInfo(v *WorkflowExecutionPauseInfo) { + x.PauseInfo = v +} + +func (x *WorkflowExecutionExtendedInfo) HasExecutionExpirationTime() bool { + if x == nil { + return false + } + return x.ExecutionExpirationTime != nil +} + +func (x *WorkflowExecutionExtendedInfo) HasRunExpirationTime() bool { + if x == nil { + return false + } + return x.RunExpirationTime != nil +} + +func (x *WorkflowExecutionExtendedInfo) HasLastResetTime() bool { + if x == nil { + return false + } + return x.LastResetTime != nil +} + +func (x *WorkflowExecutionExtendedInfo) HasOriginalStartTime() bool { + if x == nil { + return false + } + return x.OriginalStartTime != nil +} + +func (x *WorkflowExecutionExtendedInfo) HasPauseInfo() bool { + if x == nil { + return false + } + return x.PauseInfo != nil +} + +func (x *WorkflowExecutionExtendedInfo) ClearExecutionExpirationTime() { + x.ExecutionExpirationTime = nil +} + +func (x *WorkflowExecutionExtendedInfo) ClearRunExpirationTime() { + x.RunExpirationTime = nil +} + +func (x *WorkflowExecutionExtendedInfo) ClearLastResetTime() { + x.LastResetTime = nil +} + +func (x *WorkflowExecutionExtendedInfo) ClearOriginalStartTime() { + x.OriginalStartTime = nil +} + +func (x *WorkflowExecutionExtendedInfo) ClearPauseInfo() { + x.PauseInfo = nil +} + +type WorkflowExecutionExtendedInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Workflow execution expiration time is defined as workflow start time plus expiration timeout. + // Workflow start time may change after workflow reset. + ExecutionExpirationTime *timestamppb.Timestamp + // Workflow run expiration time is defined as current workflow run start time plus workflow run timeout. + RunExpirationTime *timestamppb.Timestamp + // indicates if the workflow received a cancel request + CancelRequested bool + // Last workflow reset time. Nil if the workflow was never reset. + LastResetTime *timestamppb.Timestamp + // Original workflow start time. + OriginalStartTime *timestamppb.Timestamp + // Reset Run ID points to the new run when this execution is reset. If the execution is reset multiple times, it points to the latest run. + ResetRunId string + // Request ID information (eg: history event information associated with the request ID). + // Note: It only contains request IDs from StartWorkflowExecution requests, including indirect + // calls (eg: if SignalWithStartWorkflowExecution starts a new workflow, then the request ID is + // used in the StartWorkflowExecution request). + RequestIdInfos map[string]*RequestIdInfo + // Information about the workflow execution pause operation. + PauseInfo *WorkflowExecutionPauseInfo +} + +func (b0 WorkflowExecutionExtendedInfo_builder) Build() *WorkflowExecutionExtendedInfo { + m0 := &WorkflowExecutionExtendedInfo{} + b, x := &b0, m0 + _, _ = b, x + x.ExecutionExpirationTime = b.ExecutionExpirationTime + x.RunExpirationTime = b.RunExpirationTime + x.CancelRequested = b.CancelRequested + x.LastResetTime = b.LastResetTime + x.OriginalStartTime = b.OriginalStartTime + x.ResetRunId = b.ResetRunId + x.RequestIdInfos = b.RequestIdInfos + x.PauseInfo = b.PauseInfo + return m0 +} + // Holds all the information about worker versioning for a particular workflow execution. // Experimental. Versioning info is experimental and might change in the future. type WorkflowExecutionVersioningInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Versioning behavior determines how the server should treat this execution when workers are // upgraded. When present it means this workflow execution is versioned; UNSPECIFIED means // unversioned. See the comments in `VersioningBehavior` enum for more info about different @@ -635,11 +1127,6 @@ func (x *WorkflowExecutionVersioningInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use WorkflowExecutionVersioningInfo.ProtoReflect.Descriptor instead. -func (*WorkflowExecutionVersioningInfo) Descriptor() ([]byte, []int) { - return file_temporal_api_workflow_v1_message_proto_rawDescGZIP(), []int{2} -} - func (x *WorkflowExecutionVersioningInfo) GetBehavior() v11.VersioningBehavior { if x != nil { return x.Behavior @@ -699,14 +1186,226 @@ func (x *WorkflowExecutionVersioningInfo) GetRevisionNumber() int64 { return 0 } -// Holds information about ongoing transition of a workflow execution from one deployment to another. -// Deprecated. Use DeploymentVersionTransition. -type DeploymentTransition struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The target deployment of the transition. Null means a so-far-versioned workflow is - // transitioning to unversioned workers. - Deployment *v12.Deployment `protobuf:"bytes,1,opt,name=deployment,proto3" json:"deployment,omitempty"` - unknownFields protoimpl.UnknownFields +func (x *WorkflowExecutionVersioningInfo) SetBehavior(v v11.VersioningBehavior) { + x.Behavior = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *WorkflowExecutionVersioningInfo) SetDeployment(v *v12.Deployment) { + x.Deployment = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *WorkflowExecutionVersioningInfo) SetVersion(v string) { + x.Version = v +} + +func (x *WorkflowExecutionVersioningInfo) SetDeploymentVersion(v *v12.WorkerDeploymentVersion) { + x.DeploymentVersion = v +} + +func (x *WorkflowExecutionVersioningInfo) SetVersioningOverride(v *VersioningOverride) { + x.VersioningOverride = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *WorkflowExecutionVersioningInfo) SetDeploymentTransition(v *DeploymentTransition) { + x.DeploymentTransition = v +} + +func (x *WorkflowExecutionVersioningInfo) SetVersionTransition(v *DeploymentVersionTransition) { + x.VersionTransition = v +} + +func (x *WorkflowExecutionVersioningInfo) SetRevisionNumber(v int64) { + x.RevisionNumber = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *WorkflowExecutionVersioningInfo) HasDeployment() bool { + if x == nil { + return false + } + return x.Deployment != nil +} + +func (x *WorkflowExecutionVersioningInfo) HasDeploymentVersion() bool { + if x == nil { + return false + } + return x.DeploymentVersion != nil +} + +func (x *WorkflowExecutionVersioningInfo) HasVersioningOverride() bool { + if x == nil { + return false + } + return x.VersioningOverride != nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *WorkflowExecutionVersioningInfo) HasDeploymentTransition() bool { + if x == nil { + return false + } + return x.DeploymentTransition != nil +} + +func (x *WorkflowExecutionVersioningInfo) HasVersionTransition() bool { + if x == nil { + return false + } + return x.VersionTransition != nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *WorkflowExecutionVersioningInfo) ClearDeployment() { + x.Deployment = nil +} + +func (x *WorkflowExecutionVersioningInfo) ClearDeploymentVersion() { + x.DeploymentVersion = nil +} + +func (x *WorkflowExecutionVersioningInfo) ClearVersioningOverride() { + x.VersioningOverride = nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *WorkflowExecutionVersioningInfo) ClearDeploymentTransition() { + x.DeploymentTransition = nil +} + +func (x *WorkflowExecutionVersioningInfo) ClearVersionTransition() { + x.VersionTransition = nil +} + +type WorkflowExecutionVersioningInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Versioning behavior determines how the server should treat this execution when workers are + // upgraded. When present it means this workflow execution is versioned; UNSPECIFIED means + // unversioned. See the comments in `VersioningBehavior` enum for more info about different + // behaviors. + // + // Child workflows or CaN executions **inherit** their parent/previous run's effective Versioning + // Behavior and Version (except when the new execution runs on a task queue not belonging to the + // same deployment version as the parent/previous run's task queue). The first workflow task will + // be dispatched according to the inherited behavior (or to the current version of the task-queue's + // deployment in the case of AutoUpgrade.) After completion of their first workflow task the + // Deployment Version and Behavior of the execution will update according to configuration on the worker. + // + // Note that `behavior` is overridden by `versioning_override` if the latter is present. + Behavior v11.VersioningBehavior + // The worker deployment that completed the last workflow task of this workflow execution. Must + // be present if `behavior` is set. Absent value means no workflow task is completed, or the + // last workflow task was completed by an unversioned worker. Unversioned workers may still send + // a deployment value which will be stored here, so the right way to check if an execution is + // versioned if an execution is versioned or not is via the `behavior` field. + // Note that `deployment` is overridden by `versioning_override` if the latter is present. + // Deprecated. Use `deployment_version`. + // + // Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. + Deployment *v12.Deployment + // Deprecated. Use `deployment_version`. + // + // Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. + Version string + // The Worker Deployment Version that completed the last workflow task of this workflow execution. + // An absent value means no workflow task is completed, or the workflow is unversioned. + // If present, and `behavior` is UNSPECIFIED, the last task of this workflow execution was completed + // by a worker that is not using versioning but _is_ passing Deployment Name and Build ID. + // + // Child workflows or CaN executions **inherit** their parent/previous run's effective Versioning + // Behavior and Version (except when the new execution runs on a task queue not belonging to the + // same deployment version as the parent/previous run's task queue). The first workflow task will + // be dispatched according to the inherited behavior (or to the current version of the task-queue's + // deployment in the case of AutoUpgrade.) After completion of their first workflow task the + // Deployment Version and Behavior of the execution will update according to configuration on the worker. + // + // Note that if `versioning_override.behavior` is PINNED then `versioning_override.pinned_version` + // will override this value. + DeploymentVersion *v12.WorkerDeploymentVersion + // Present if user has set an execution-specific versioning override. This override takes + // precedence over SDK-sent `behavior` (and `version` when override is PINNED). An + // override can be set when starting a new execution, as well as afterwards by calling the + // `UpdateWorkflowExecutionOptions` API. + // Pinned overrides are automatically inherited by child workflows, continue-as-new workflows, + // workflow retries, and cron workflows. + VersioningOverride *VersioningOverride + // When present, indicates the workflow is transitioning to a different deployment. Can + // indicate one of the following transitions: unversioned -> versioned, versioned -> versioned + // on a different deployment, or versioned -> unversioned. + // Not applicable to workflows with PINNED behavior. + // When a workflow with AUTO_UPGRADE behavior creates a new workflow task, it will automatically + // start a transition to the task queue's current deployment if the task queue's current + // deployment is different from the workflow's deployment. + // If the AUTO_UPGRADE workflow is stuck due to backlogged activity or workflow tasks, those + // tasks will be redirected to the task queue's current deployment. As soon as a poller from + // that deployment is available to receive the task, the workflow will automatically start a + // transition to that deployment and continue execution there. + // A deployment transition can only exist while there is a pending or started workflow task. + // Once the pending workflow task completes on the transition's target deployment, the + // transition completes and the workflow's `deployment` and `behavior` fields are updated per + // the worker's task completion response. + // Pending activities will not start new attempts during a transition. Once the transition is + // completed, pending activities will start their next attempt on the new deployment. + // Deprecated. Use version_transition. + // + // Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. + DeploymentTransition *DeploymentTransition + // When present, indicates the workflow is transitioning to a different deployment version + // (which may belong to the same deployment name or another). Can indicate one of the following + // transitions: unversioned -> versioned, versioned -> versioned + // on a different deployment version, or versioned -> unversioned. + // Not applicable to workflows with PINNED behavior. + // When a workflow with AUTO_UPGRADE behavior creates a new workflow task, it will automatically + // start a transition to the task queue's current version if the task queue's current version is + // different from the workflow's current deployment version. + // If the AUTO_UPGRADE workflow is stuck due to backlogged activity or workflow tasks, those + // tasks will be redirected to the task queue's current version. As soon as a poller from + // that deployment version is available to receive the task, the workflow will automatically + // start a transition to that version and continue execution there. + // A version transition can only exist while there is a pending or started workflow task. + // Once the pending workflow task completes on the transition's target version, the + // transition completes and the workflow's `behavior`, and `deployment_version` fields are updated per the + // worker's task completion response. + // Pending activities will not start new attempts during a transition. Once the transition is + // completed, pending activities will start their next attempt on the new version. + VersionTransition *DeploymentVersionTransition + // Monotonic counter reflecting the latest routing decision for this workflow execution. + // Used for staleness detection between history and matching when dispatching tasks to workers. + // Incremented when a workflow execution routes to a new deployment version, which happens + // when a worker of the new deployment version completes a workflow task. + // Note: Pinned tasks and sticky tasks send a value of 0 for this field since these tasks do not + // face the problem of inconsistent dispatching that arises from eventual consistency between + // task queues and their partitions. + RevisionNumber int64 +} + +func (b0 WorkflowExecutionVersioningInfo_builder) Build() *WorkflowExecutionVersioningInfo { + m0 := &WorkflowExecutionVersioningInfo{} + b, x := &b0, m0 + _, _ = b, x + x.Behavior = b.Behavior + x.Deployment = b.Deployment + x.Version = b.Version + x.DeploymentVersion = b.DeploymentVersion + x.VersioningOverride = b.VersioningOverride + x.DeploymentTransition = b.DeploymentTransition + x.VersionTransition = b.VersionTransition + x.RevisionNumber = b.RevisionNumber + return m0 +} + +// Holds information about ongoing transition of a workflow execution from one deployment to another. +// Deprecated. Use DeploymentVersionTransition. +type DeploymentTransition struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // The target deployment of the transition. Null means a so-far-versioned workflow is + // transitioning to unversioned workers. + Deployment *v12.Deployment `protobuf:"bytes,1,opt,name=deployment,proto3" json:"deployment,omitempty"` + unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -735,11 +1434,6 @@ func (x *DeploymentTransition) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeploymentTransition.ProtoReflect.Descriptor instead. -func (*DeploymentTransition) Descriptor() ([]byte, []int) { - return file_temporal_api_workflow_v1_message_proto_rawDescGZIP(), []int{3} -} - func (x *DeploymentTransition) GetDeployment() *v12.Deployment { if x != nil { return x.Deployment @@ -747,11 +1441,42 @@ func (x *DeploymentTransition) GetDeployment() *v12.Deployment { return nil } +func (x *DeploymentTransition) SetDeployment(v *v12.Deployment) { + x.Deployment = v +} + +func (x *DeploymentTransition) HasDeployment() bool { + if x == nil { + return false + } + return x.Deployment != nil +} + +func (x *DeploymentTransition) ClearDeployment() { + x.Deployment = nil +} + +type DeploymentTransition_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The target deployment of the transition. Null means a so-far-versioned workflow is + // transitioning to unversioned workers. + Deployment *v12.Deployment +} + +func (b0 DeploymentTransition_builder) Build() *DeploymentTransition { + m0 := &DeploymentTransition{} + b, x := &b0, m0 + _, _ = b, x + x.Deployment = b.Deployment + return m0 +} + // Holds information about ongoing transition of a workflow execution from one worker // deployment version to another. // Experimental. Might change in the future. type DeploymentVersionTransition struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Deprecated. Use `deployment_version`. // // Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. @@ -788,11 +1513,6 @@ func (x *DeploymentVersionTransition) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeploymentVersionTransition.ProtoReflect.Descriptor instead. -func (*DeploymentVersionTransition) Descriptor() ([]byte, []int) { - return file_temporal_api_workflow_v1_message_proto_rawDescGZIP(), []int{4} -} - // Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. func (x *DeploymentVersionTransition) GetVersion() string { if x != nil { @@ -808,8 +1528,49 @@ func (x *DeploymentVersionTransition) GetDeploymentVersion() *v12.WorkerDeployme return nil } +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *DeploymentVersionTransition) SetVersion(v string) { + x.Version = v +} + +func (x *DeploymentVersionTransition) SetDeploymentVersion(v *v12.WorkerDeploymentVersion) { + x.DeploymentVersion = v +} + +func (x *DeploymentVersionTransition) HasDeploymentVersion() bool { + if x == nil { + return false + } + return x.DeploymentVersion != nil +} + +func (x *DeploymentVersionTransition) ClearDeploymentVersion() { + x.DeploymentVersion = nil +} + +type DeploymentVersionTransition_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Deprecated. Use `deployment_version`. + // + // Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. + Version string + // The target Version of the transition. + // If nil, a so-far-versioned workflow is transitioning to unversioned workers. + DeploymentVersion *v12.WorkerDeploymentVersion +} + +func (b0 DeploymentVersionTransition_builder) Build() *DeploymentVersionTransition { + m0 := &DeploymentVersionTransition{} + b, x := &b0, m0 + _, _ = b, x + x.Version = b.Version + x.DeploymentVersion = b.DeploymentVersion + return m0 +} + type WorkflowExecutionConfig struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` TaskQueue *v13.TaskQueue `protobuf:"bytes,1,opt,name=task_queue,json=taskQueue,proto3" json:"task_queue,omitempty"` WorkflowExecutionTimeout *durationpb.Duration `protobuf:"bytes,2,opt,name=workflow_execution_timeout,json=workflowExecutionTimeout,proto3" json:"workflow_execution_timeout,omitempty"` WorkflowRunTimeout *durationpb.Duration `protobuf:"bytes,3,opt,name=workflow_run_timeout,json=workflowRunTimeout,proto3" json:"workflow_run_timeout,omitempty"` @@ -845,11 +1606,6 @@ func (x *WorkflowExecutionConfig) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use WorkflowExecutionConfig.ProtoReflect.Descriptor instead. -func (*WorkflowExecutionConfig) Descriptor() ([]byte, []int) { - return file_temporal_api_workflow_v1_message_proto_rawDescGZIP(), []int{5} -} - func (x *WorkflowExecutionConfig) GetTaskQueue() *v13.TaskQueue { if x != nil { return x.TaskQueue @@ -885,8 +1641,106 @@ func (x *WorkflowExecutionConfig) GetUserMetadata() *v14.UserMetadata { return nil } +func (x *WorkflowExecutionConfig) SetTaskQueue(v *v13.TaskQueue) { + x.TaskQueue = v +} + +func (x *WorkflowExecutionConfig) SetWorkflowExecutionTimeout(v *durationpb.Duration) { + x.WorkflowExecutionTimeout = v +} + +func (x *WorkflowExecutionConfig) SetWorkflowRunTimeout(v *durationpb.Duration) { + x.WorkflowRunTimeout = v +} + +func (x *WorkflowExecutionConfig) SetDefaultWorkflowTaskTimeout(v *durationpb.Duration) { + x.DefaultWorkflowTaskTimeout = v +} + +func (x *WorkflowExecutionConfig) SetUserMetadata(v *v14.UserMetadata) { + x.UserMetadata = v +} + +func (x *WorkflowExecutionConfig) HasTaskQueue() bool { + if x == nil { + return false + } + return x.TaskQueue != nil +} + +func (x *WorkflowExecutionConfig) HasWorkflowExecutionTimeout() bool { + if x == nil { + return false + } + return x.WorkflowExecutionTimeout != nil +} + +func (x *WorkflowExecutionConfig) HasWorkflowRunTimeout() bool { + if x == nil { + return false + } + return x.WorkflowRunTimeout != nil +} + +func (x *WorkflowExecutionConfig) HasDefaultWorkflowTaskTimeout() bool { + if x == nil { + return false + } + return x.DefaultWorkflowTaskTimeout != nil +} + +func (x *WorkflowExecutionConfig) HasUserMetadata() bool { + if x == nil { + return false + } + return x.UserMetadata != nil +} + +func (x *WorkflowExecutionConfig) ClearTaskQueue() { + x.TaskQueue = nil +} + +func (x *WorkflowExecutionConfig) ClearWorkflowExecutionTimeout() { + x.WorkflowExecutionTimeout = nil +} + +func (x *WorkflowExecutionConfig) ClearWorkflowRunTimeout() { + x.WorkflowRunTimeout = nil +} + +func (x *WorkflowExecutionConfig) ClearDefaultWorkflowTaskTimeout() { + x.DefaultWorkflowTaskTimeout = nil +} + +func (x *WorkflowExecutionConfig) ClearUserMetadata() { + x.UserMetadata = nil +} + +type WorkflowExecutionConfig_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + TaskQueue *v13.TaskQueue + WorkflowExecutionTimeout *durationpb.Duration + WorkflowRunTimeout *durationpb.Duration + DefaultWorkflowTaskTimeout *durationpb.Duration + // User metadata provided on start workflow. + UserMetadata *v14.UserMetadata +} + +func (b0 WorkflowExecutionConfig_builder) Build() *WorkflowExecutionConfig { + m0 := &WorkflowExecutionConfig{} + b, x := &b0, m0 + _, _ = b, x + x.TaskQueue = b.TaskQueue + x.WorkflowExecutionTimeout = b.WorkflowExecutionTimeout + x.WorkflowRunTimeout = b.WorkflowRunTimeout + x.DefaultWorkflowTaskTimeout = b.DefaultWorkflowTaskTimeout + x.UserMetadata = b.UserMetadata + return m0 +} + type PendingActivityInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` ActivityId string `protobuf:"bytes,1,opt,name=activity_id,json=activityId,proto3" json:"activity_id,omitempty"` ActivityType *v1.ActivityType `protobuf:"bytes,2,opt,name=activity_type,json=activityType,proto3" json:"activity_type,omitempty"` State v11.PendingActivityState `protobuf:"varint,3,opt,name=state,proto3,enum=temporal.api.enums.v1.PendingActivityState" json:"state,omitempty"` @@ -975,11 +1829,6 @@ func (x *PendingActivityInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PendingActivityInfo.ProtoReflect.Descriptor instead. -func (*PendingActivityInfo) Descriptor() ([]byte, []int) { - return file_temporal_api_workflow_v1_message_proto_rawDescGZIP(), []int{6} -} - func (x *PendingActivityInfo) GetActivityId() string { if x != nil { return x.ActivityId @@ -1171,38 +2020,513 @@ func (x *PendingActivityInfo) GetActivityOptions() *v16.ActivityOptions { return nil } -type isPendingActivityInfo_AssignedBuildId interface { - isPendingActivityInfo_AssignedBuildId() +func (x *PendingActivityInfo) SetActivityId(v string) { + x.ActivityId = v } -type PendingActivityInfo_UseWorkflowBuildId struct { - // Deprecated. When present, it means this activity is assigned to the build ID of its workflow. - // - // Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. - UseWorkflowBuildId *emptypb.Empty `protobuf:"bytes,13,opt,name=use_workflow_build_id,json=useWorkflowBuildId,proto3,oneof"` +func (x *PendingActivityInfo) SetActivityType(v *v1.ActivityType) { + x.ActivityType = v } -type PendingActivityInfo_LastIndependentlyAssignedBuildId struct { - // Deprecated. This means the activity is independently versioned and not bound to the build ID of its workflow. - // The activity will use the build id in this field instead. - // If the task fails and is scheduled again, the assigned build ID may change according to the latest versioning - // rules. - // - // Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. - LastIndependentlyAssignedBuildId string `protobuf:"bytes,14,opt,name=last_independently_assigned_build_id,json=lastIndependentlyAssignedBuildId,proto3,oneof"` +func (x *PendingActivityInfo) SetState(v v11.PendingActivityState) { + x.State = v } -func (*PendingActivityInfo_UseWorkflowBuildId) isPendingActivityInfo_AssignedBuildId() {} +func (x *PendingActivityInfo) SetHeartbeatDetails(v *v1.Payloads) { + x.HeartbeatDetails = v +} -func (*PendingActivityInfo_LastIndependentlyAssignedBuildId) isPendingActivityInfo_AssignedBuildId() { +func (x *PendingActivityInfo) SetLastHeartbeatTime(v *timestamppb.Timestamp) { + x.LastHeartbeatTime = v } -type PendingChildExecutionInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` - WorkflowId string `protobuf:"bytes,1,opt,name=workflow_id,json=workflowId,proto3" json:"workflow_id,omitempty"` - RunId string `protobuf:"bytes,2,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"` - WorkflowTypeName string `protobuf:"bytes,3,opt,name=workflow_type_name,json=workflowTypeName,proto3" json:"workflow_type_name,omitempty"` - InitiatedId int64 `protobuf:"varint,4,opt,name=initiated_id,json=initiatedId,proto3" json:"initiated_id,omitempty"` +func (x *PendingActivityInfo) SetLastStartedTime(v *timestamppb.Timestamp) { + x.LastStartedTime = v +} + +func (x *PendingActivityInfo) SetAttempt(v int32) { + x.Attempt = v +} + +func (x *PendingActivityInfo) SetMaximumAttempts(v int32) { + x.MaximumAttempts = v +} + +func (x *PendingActivityInfo) SetScheduledTime(v *timestamppb.Timestamp) { + x.ScheduledTime = v +} + +func (x *PendingActivityInfo) SetExpirationTime(v *timestamppb.Timestamp) { + x.ExpirationTime = v +} + +func (x *PendingActivityInfo) SetLastFailure(v *v15.Failure) { + x.LastFailure = v +} + +func (x *PendingActivityInfo) SetLastWorkerIdentity(v string) { + x.LastWorkerIdentity = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *PendingActivityInfo) SetUseWorkflowBuildId(v *emptypb.Empty) { + if v == nil { + x.AssignedBuildId = nil + return + } + x.AssignedBuildId = &PendingActivityInfo_UseWorkflowBuildId{v} +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *PendingActivityInfo) SetLastIndependentlyAssignedBuildId(v string) { + x.AssignedBuildId = &PendingActivityInfo_LastIndependentlyAssignedBuildId{v} +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *PendingActivityInfo) SetLastWorkerVersionStamp(v *v1.WorkerVersionStamp) { + x.LastWorkerVersionStamp = v +} + +func (x *PendingActivityInfo) SetCurrentRetryInterval(v *durationpb.Duration) { + x.CurrentRetryInterval = v +} + +func (x *PendingActivityInfo) SetLastAttemptCompleteTime(v *timestamppb.Timestamp) { + x.LastAttemptCompleteTime = v +} + +func (x *PendingActivityInfo) SetNextAttemptScheduleTime(v *timestamppb.Timestamp) { + x.NextAttemptScheduleTime = v +} + +func (x *PendingActivityInfo) SetPaused(v bool) { + x.Paused = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *PendingActivityInfo) SetLastDeployment(v *v12.Deployment) { + x.LastDeployment = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *PendingActivityInfo) SetLastWorkerDeploymentVersion(v string) { + x.LastWorkerDeploymentVersion = v +} + +func (x *PendingActivityInfo) SetLastDeploymentVersion(v *v12.WorkerDeploymentVersion) { + x.LastDeploymentVersion = v +} + +func (x *PendingActivityInfo) SetPriority(v *v1.Priority) { + x.Priority = v +} + +func (x *PendingActivityInfo) SetPauseInfo(v *PendingActivityInfo_PauseInfo) { + x.PauseInfo = v +} + +func (x *PendingActivityInfo) SetActivityOptions(v *v16.ActivityOptions) { + x.ActivityOptions = v +} + +func (x *PendingActivityInfo) HasActivityType() bool { + if x == nil { + return false + } + return x.ActivityType != nil +} + +func (x *PendingActivityInfo) HasHeartbeatDetails() bool { + if x == nil { + return false + } + return x.HeartbeatDetails != nil +} + +func (x *PendingActivityInfo) HasLastHeartbeatTime() bool { + if x == nil { + return false + } + return x.LastHeartbeatTime != nil +} + +func (x *PendingActivityInfo) HasLastStartedTime() bool { + if x == nil { + return false + } + return x.LastStartedTime != nil +} + +func (x *PendingActivityInfo) HasScheduledTime() bool { + if x == nil { + return false + } + return x.ScheduledTime != nil +} + +func (x *PendingActivityInfo) HasExpirationTime() bool { + if x == nil { + return false + } + return x.ExpirationTime != nil +} + +func (x *PendingActivityInfo) HasLastFailure() bool { + if x == nil { + return false + } + return x.LastFailure != nil +} + +func (x *PendingActivityInfo) HasAssignedBuildId() bool { + if x == nil { + return false + } + return x.AssignedBuildId != nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *PendingActivityInfo) HasUseWorkflowBuildId() bool { + if x == nil { + return false + } + _, ok := x.AssignedBuildId.(*PendingActivityInfo_UseWorkflowBuildId) + return ok +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *PendingActivityInfo) HasLastIndependentlyAssignedBuildId() bool { + if x == nil { + return false + } + _, ok := x.AssignedBuildId.(*PendingActivityInfo_LastIndependentlyAssignedBuildId) + return ok +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *PendingActivityInfo) HasLastWorkerVersionStamp() bool { + if x == nil { + return false + } + return x.LastWorkerVersionStamp != nil +} + +func (x *PendingActivityInfo) HasCurrentRetryInterval() bool { + if x == nil { + return false + } + return x.CurrentRetryInterval != nil +} + +func (x *PendingActivityInfo) HasLastAttemptCompleteTime() bool { + if x == nil { + return false + } + return x.LastAttemptCompleteTime != nil +} + +func (x *PendingActivityInfo) HasNextAttemptScheduleTime() bool { + if x == nil { + return false + } + return x.NextAttemptScheduleTime != nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *PendingActivityInfo) HasLastDeployment() bool { + if x == nil { + return false + } + return x.LastDeployment != nil +} + +func (x *PendingActivityInfo) HasLastDeploymentVersion() bool { + if x == nil { + return false + } + return x.LastDeploymentVersion != nil +} + +func (x *PendingActivityInfo) HasPriority() bool { + if x == nil { + return false + } + return x.Priority != nil +} + +func (x *PendingActivityInfo) HasPauseInfo() bool { + if x == nil { + return false + } + return x.PauseInfo != nil +} + +func (x *PendingActivityInfo) HasActivityOptions() bool { + if x == nil { + return false + } + return x.ActivityOptions != nil +} + +func (x *PendingActivityInfo) ClearActivityType() { + x.ActivityType = nil +} + +func (x *PendingActivityInfo) ClearHeartbeatDetails() { + x.HeartbeatDetails = nil +} + +func (x *PendingActivityInfo) ClearLastHeartbeatTime() { + x.LastHeartbeatTime = nil +} + +func (x *PendingActivityInfo) ClearLastStartedTime() { + x.LastStartedTime = nil +} + +func (x *PendingActivityInfo) ClearScheduledTime() { + x.ScheduledTime = nil +} + +func (x *PendingActivityInfo) ClearExpirationTime() { + x.ExpirationTime = nil +} + +func (x *PendingActivityInfo) ClearLastFailure() { + x.LastFailure = nil +} + +func (x *PendingActivityInfo) ClearAssignedBuildId() { + x.AssignedBuildId = nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *PendingActivityInfo) ClearUseWorkflowBuildId() { + if _, ok := x.AssignedBuildId.(*PendingActivityInfo_UseWorkflowBuildId); ok { + x.AssignedBuildId = nil + } +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *PendingActivityInfo) ClearLastIndependentlyAssignedBuildId() { + if _, ok := x.AssignedBuildId.(*PendingActivityInfo_LastIndependentlyAssignedBuildId); ok { + x.AssignedBuildId = nil + } +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *PendingActivityInfo) ClearLastWorkerVersionStamp() { + x.LastWorkerVersionStamp = nil +} + +func (x *PendingActivityInfo) ClearCurrentRetryInterval() { + x.CurrentRetryInterval = nil +} + +func (x *PendingActivityInfo) ClearLastAttemptCompleteTime() { + x.LastAttemptCompleteTime = nil +} + +func (x *PendingActivityInfo) ClearNextAttemptScheduleTime() { + x.NextAttemptScheduleTime = nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *PendingActivityInfo) ClearLastDeployment() { + x.LastDeployment = nil +} + +func (x *PendingActivityInfo) ClearLastDeploymentVersion() { + x.LastDeploymentVersion = nil +} + +func (x *PendingActivityInfo) ClearPriority() { + x.Priority = nil +} + +func (x *PendingActivityInfo) ClearPauseInfo() { + x.PauseInfo = nil +} + +func (x *PendingActivityInfo) ClearActivityOptions() { + x.ActivityOptions = nil +} + +const PendingActivityInfo_AssignedBuildId_not_set_case case_PendingActivityInfo_AssignedBuildId = 0 +const PendingActivityInfo_UseWorkflowBuildId_case case_PendingActivityInfo_AssignedBuildId = 13 +const PendingActivityInfo_LastIndependentlyAssignedBuildId_case case_PendingActivityInfo_AssignedBuildId = 14 + +func (x *PendingActivityInfo) WhichAssignedBuildId() case_PendingActivityInfo_AssignedBuildId { + if x == nil { + return PendingActivityInfo_AssignedBuildId_not_set_case + } + switch x.AssignedBuildId.(type) { + case *PendingActivityInfo_UseWorkflowBuildId: + return PendingActivityInfo_UseWorkflowBuildId_case + case *PendingActivityInfo_LastIndependentlyAssignedBuildId: + return PendingActivityInfo_LastIndependentlyAssignedBuildId_case + default: + return PendingActivityInfo_AssignedBuildId_not_set_case + } +} + +type PendingActivityInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ActivityId string + ActivityType *v1.ActivityType + State v11.PendingActivityState + HeartbeatDetails *v1.Payloads + LastHeartbeatTime *timestamppb.Timestamp + LastStartedTime *timestamppb.Timestamp + Attempt int32 + MaximumAttempts int32 + ScheduledTime *timestamppb.Timestamp + ExpirationTime *timestamppb.Timestamp + LastFailure *v15.Failure + LastWorkerIdentity string + // Absence of `assigned_build_id` generally means this task is on an "unversioned" task queue. + // In rare cases, it can also mean that the task queue is versioned but we failed to write activity's + // independently-assigned build ID to the database. This case heals automatically once the task is dispatched. + // Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] + + // Fields of oneof AssignedBuildId: + // Deprecated. When present, it means this activity is assigned to the build ID of its workflow. + // + // Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. + UseWorkflowBuildId *emptypb.Empty + // Deprecated. This means the activity is independently versioned and not bound to the build ID of its workflow. + // The activity will use the build id in this field instead. + // If the task fails and is scheduled again, the assigned build ID may change according to the latest versioning + // rules. + // + // Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. + LastIndependentlyAssignedBuildId *string + // -- end of AssignedBuildId + // Deprecated. The version stamp of the worker to whom this activity was most recently dispatched + // This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] + // + // Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. + LastWorkerVersionStamp *v1.WorkerVersionStamp + // The time activity will wait until the next retry. + // If activity is currently running it will be next retry interval if activity failed. + // If activity is currently waiting it will be current retry interval. + // If there will be no retry it will be null. + CurrentRetryInterval *durationpb.Duration + // The time when the last activity attempt was completed. If activity has not been completed yet then it will be null. + LastAttemptCompleteTime *timestamppb.Timestamp + // Next time when activity will be scheduled. + // If activity is currently scheduled or started it will be null. + NextAttemptScheduleTime *timestamppb.Timestamp + // Indicates if activity is paused. + Paused bool + // The deployment this activity was dispatched to most recently. Present only if the activity + // was dispatched to a versioned worker. + // Deprecated. Use `last_deployment_version`. + // + // Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. + LastDeployment *v12.Deployment + // The Worker Deployment Version this activity was dispatched to most recently. + // Deprecated. Use `last_deployment_version`. + // + // Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. + LastWorkerDeploymentVersion string + // The Worker Deployment Version this activity was dispatched to most recently. + // If nil, the activity has not yet been dispatched or was last dispatched to an unversioned worker. + LastDeploymentVersion *v12.WorkerDeploymentVersion + // Priority metadata. If this message is not present, or any fields are not + // present, they inherit the values from the workflow. + Priority *v1.Priority + PauseInfo *PendingActivityInfo_PauseInfo + // Current activity options. May be different from the one used to start the activity. + ActivityOptions *v16.ActivityOptions +} + +func (b0 PendingActivityInfo_builder) Build() *PendingActivityInfo { + m0 := &PendingActivityInfo{} + b, x := &b0, m0 + _, _ = b, x + x.ActivityId = b.ActivityId + x.ActivityType = b.ActivityType + x.State = b.State + x.HeartbeatDetails = b.HeartbeatDetails + x.LastHeartbeatTime = b.LastHeartbeatTime + x.LastStartedTime = b.LastStartedTime + x.Attempt = b.Attempt + x.MaximumAttempts = b.MaximumAttempts + x.ScheduledTime = b.ScheduledTime + x.ExpirationTime = b.ExpirationTime + x.LastFailure = b.LastFailure + x.LastWorkerIdentity = b.LastWorkerIdentity + if b.UseWorkflowBuildId != nil { + x.AssignedBuildId = &PendingActivityInfo_UseWorkflowBuildId{b.UseWorkflowBuildId} + } + if b.LastIndependentlyAssignedBuildId != nil { + x.AssignedBuildId = &PendingActivityInfo_LastIndependentlyAssignedBuildId{*b.LastIndependentlyAssignedBuildId} + } + x.LastWorkerVersionStamp = b.LastWorkerVersionStamp + x.CurrentRetryInterval = b.CurrentRetryInterval + x.LastAttemptCompleteTime = b.LastAttemptCompleteTime + x.NextAttemptScheduleTime = b.NextAttemptScheduleTime + x.Paused = b.Paused + x.LastDeployment = b.LastDeployment + x.LastWorkerDeploymentVersion = b.LastWorkerDeploymentVersion + x.LastDeploymentVersion = b.LastDeploymentVersion + x.Priority = b.Priority + x.PauseInfo = b.PauseInfo + x.ActivityOptions = b.ActivityOptions + return m0 +} + +type case_PendingActivityInfo_AssignedBuildId protoreflect.FieldNumber + +func (x case_PendingActivityInfo_AssignedBuildId) String() string { + switch x { + case PendingActivityInfo_AssignedBuildId_not_set_case: + return "PendingActivityInfoAssignedBuildIdNotSetCase" + case PendingActivityInfo_UseWorkflowBuildId_case: + return "PendingActivityInfoUseWorkflowBuildIdCase" + case PendingActivityInfo_LastIndependentlyAssignedBuildId_case: + return "PendingActivityInfoLastIndependentlyAssignedBuildIdCase" + default: + + // Deprecated. When present, it means this activity is assigned to the build ID of its workflow. + // + // Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. + return strconv.Itoa(int(x)) + } + +} + +type isPendingActivityInfo_AssignedBuildId interface { + isPendingActivityInfo_AssignedBuildId() +} + +type PendingActivityInfo_UseWorkflowBuildId struct { + UseWorkflowBuildId *emptypb.Empty `protobuf:"bytes,13,opt,name=use_workflow_build_id,json=useWorkflowBuildId,proto3,oneof"` +} + +type PendingActivityInfo_LastIndependentlyAssignedBuildId struct { + // Deprecated. This means the activity is independently versioned and not bound to the build ID of its workflow. + // The activity will use the build id in this field instead. + // If the task fails and is scheduled again, the assigned build ID may change according to the latest versioning + // rules. + // + // Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. + LastIndependentlyAssignedBuildId string `protobuf:"bytes,14,opt,name=last_independently_assigned_build_id,json=lastIndependentlyAssignedBuildId,proto3,oneof"` +} + +func (*PendingActivityInfo_UseWorkflowBuildId) isPendingActivityInfo_AssignedBuildId() {} + +func (*PendingActivityInfo_LastIndependentlyAssignedBuildId) isPendingActivityInfo_AssignedBuildId() { +} + +type PendingChildExecutionInfo struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + WorkflowId string `protobuf:"bytes,1,opt,name=workflow_id,json=workflowId,proto3" json:"workflow_id,omitempty"` + RunId string `protobuf:"bytes,2,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"` + WorkflowTypeName string `protobuf:"bytes,3,opt,name=workflow_type_name,json=workflowTypeName,proto3" json:"workflow_type_name,omitempty"` + InitiatedId int64 `protobuf:"varint,4,opt,name=initiated_id,json=initiatedId,proto3" json:"initiated_id,omitempty"` // Default: PARENT_CLOSE_POLICY_TERMINATE. ParentClosePolicy v11.ParentClosePolicy `protobuf:"varint,5,opt,name=parent_close_policy,json=parentClosePolicy,proto3,enum=temporal.api.enums.v1.ParentClosePolicy" json:"parent_close_policy,omitempty"` unknownFields protoimpl.UnknownFields @@ -1234,11 +2558,6 @@ func (x *PendingChildExecutionInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PendingChildExecutionInfo.ProtoReflect.Descriptor instead. -func (*PendingChildExecutionInfo) Descriptor() ([]byte, []int) { - return file_temporal_api_workflow_v1_message_proto_rawDescGZIP(), []int{7} -} - func (x *PendingChildExecutionInfo) GetWorkflowId() string { if x != nil { return x.WorkflowId @@ -1274,8 +2593,51 @@ func (x *PendingChildExecutionInfo) GetParentClosePolicy() v11.ParentClosePolicy return v11.ParentClosePolicy(0) } +func (x *PendingChildExecutionInfo) SetWorkflowId(v string) { + x.WorkflowId = v +} + +func (x *PendingChildExecutionInfo) SetRunId(v string) { + x.RunId = v +} + +func (x *PendingChildExecutionInfo) SetWorkflowTypeName(v string) { + x.WorkflowTypeName = v +} + +func (x *PendingChildExecutionInfo) SetInitiatedId(v int64) { + x.InitiatedId = v +} + +func (x *PendingChildExecutionInfo) SetParentClosePolicy(v v11.ParentClosePolicy) { + x.ParentClosePolicy = v +} + +type PendingChildExecutionInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + WorkflowId string + RunId string + WorkflowTypeName string + InitiatedId int64 + // Default: PARENT_CLOSE_POLICY_TERMINATE. + ParentClosePolicy v11.ParentClosePolicy +} + +func (b0 PendingChildExecutionInfo_builder) Build() *PendingChildExecutionInfo { + m0 := &PendingChildExecutionInfo{} + b, x := &b0, m0 + _, _ = b, x + x.WorkflowId = b.WorkflowId + x.RunId = b.RunId + x.WorkflowTypeName = b.WorkflowTypeName + x.InitiatedId = b.InitiatedId + x.ParentClosePolicy = b.ParentClosePolicy + return m0 +} + type PendingWorkflowTaskInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` State v11.PendingWorkflowTaskState `protobuf:"varint,1,opt,name=state,proto3,enum=temporal.api.enums.v1.PendingWorkflowTaskState" json:"state,omitempty"` ScheduledTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=scheduled_time,json=scheduledTime,proto3" json:"scheduled_time,omitempty"` // original_scheduled_time is the scheduled time of the first workflow task during workflow task heartbeat. @@ -1314,11 +2676,6 @@ func (x *PendingWorkflowTaskInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PendingWorkflowTaskInfo.ProtoReflect.Descriptor instead. -func (*PendingWorkflowTaskInfo) Descriptor() ([]byte, []int) { - return file_temporal_api_workflow_v1_message_proto_rawDescGZIP(), []int{8} -} - func (x *PendingWorkflowTaskInfo) GetState() v11.PendingWorkflowTaskState { if x != nil { return x.State @@ -1354,8 +2711,87 @@ func (x *PendingWorkflowTaskInfo) GetAttempt() int32 { return 0 } +func (x *PendingWorkflowTaskInfo) SetState(v v11.PendingWorkflowTaskState) { + x.State = v +} + +func (x *PendingWorkflowTaskInfo) SetScheduledTime(v *timestamppb.Timestamp) { + x.ScheduledTime = v +} + +func (x *PendingWorkflowTaskInfo) SetOriginalScheduledTime(v *timestamppb.Timestamp) { + x.OriginalScheduledTime = v +} + +func (x *PendingWorkflowTaskInfo) SetStartedTime(v *timestamppb.Timestamp) { + x.StartedTime = v +} + +func (x *PendingWorkflowTaskInfo) SetAttempt(v int32) { + x.Attempt = v +} + +func (x *PendingWorkflowTaskInfo) HasScheduledTime() bool { + if x == nil { + return false + } + return x.ScheduledTime != nil +} + +func (x *PendingWorkflowTaskInfo) HasOriginalScheduledTime() bool { + if x == nil { + return false + } + return x.OriginalScheduledTime != nil +} + +func (x *PendingWorkflowTaskInfo) HasStartedTime() bool { + if x == nil { + return false + } + return x.StartedTime != nil +} + +func (x *PendingWorkflowTaskInfo) ClearScheduledTime() { + x.ScheduledTime = nil +} + +func (x *PendingWorkflowTaskInfo) ClearOriginalScheduledTime() { + x.OriginalScheduledTime = nil +} + +func (x *PendingWorkflowTaskInfo) ClearStartedTime() { + x.StartedTime = nil +} + +type PendingWorkflowTaskInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + State v11.PendingWorkflowTaskState + ScheduledTime *timestamppb.Timestamp + // original_scheduled_time is the scheduled time of the first workflow task during workflow task heartbeat. + // Heartbeat workflow task is done by RespondWorkflowTaskComplete with ForceCreateNewWorkflowTask == true and no command + // In this case, OriginalScheduledTime won't change. Then when current time - original_scheduled_time exceeds + // some threshold, the workflow task will be forced timeout. + OriginalScheduledTime *timestamppb.Timestamp + StartedTime *timestamppb.Timestamp + Attempt int32 +} + +func (b0 PendingWorkflowTaskInfo_builder) Build() *PendingWorkflowTaskInfo { + m0 := &PendingWorkflowTaskInfo{} + b, x := &b0, m0 + _, _ = b, x + x.State = b.State + x.ScheduledTime = b.ScheduledTime + x.OriginalScheduledTime = b.OriginalScheduledTime + x.StartedTime = b.StartedTime + x.Attempt = b.Attempt + return m0 +} + type ResetPoints struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Points []*ResetPointInfo `protobuf:"bytes,1,rep,name=points,proto3" json:"points,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -1386,11 +2822,6 @@ func (x *ResetPoints) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ResetPoints.ProtoReflect.Descriptor instead. -func (*ResetPoints) Descriptor() ([]byte, []int) { - return file_temporal_api_workflow_v1_message_proto_rawDescGZIP(), []int{9} -} - func (x *ResetPoints) GetPoints() []*ResetPointInfo { if x != nil { return x.Points @@ -1398,11 +2829,29 @@ func (x *ResetPoints) GetPoints() []*ResetPointInfo { return nil } +func (x *ResetPoints) SetPoints(v []*ResetPointInfo) { + x.Points = v +} + +type ResetPoints_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Points []*ResetPointInfo +} + +func (b0 ResetPoints_builder) Build() *ResetPoints { + m0 := &ResetPoints{} + b, x := &b0, m0 + _, _ = b, x + x.Points = b.Points + return m0 +} + // ResetPointInfo records the workflow event id that is the first one processed by a given // build id or binary checksum. A new reset point will be created if either build id or binary // checksum changes (although in general only one or the other will be used at a time). type ResetPointInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Worker build id. BuildId string `protobuf:"bytes,7,opt,name=build_id,json=buildId,proto3" json:"build_id,omitempty"` // Deprecated. A worker binary version identifier. @@ -1451,11 +2900,6 @@ func (x *ResetPointInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ResetPointInfo.ProtoReflect.Descriptor instead. -func (*ResetPointInfo) Descriptor() ([]byte, []int) { - return file_temporal_api_workflow_v1_message_proto_rawDescGZIP(), []int{10} -} - func (x *ResetPointInfo) GetBuildId() string { if x != nil { return x.BuildId @@ -1506,10 +2950,99 @@ func (x *ResetPointInfo) GetResettable() bool { return false } +func (x *ResetPointInfo) SetBuildId(v string) { + x.BuildId = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *ResetPointInfo) SetBinaryChecksum(v string) { + x.BinaryChecksum = v +} + +func (x *ResetPointInfo) SetRunId(v string) { + x.RunId = v +} + +func (x *ResetPointInfo) SetFirstWorkflowTaskCompletedId(v int64) { + x.FirstWorkflowTaskCompletedId = v +} + +func (x *ResetPointInfo) SetCreateTime(v *timestamppb.Timestamp) { + x.CreateTime = v +} + +func (x *ResetPointInfo) SetExpireTime(v *timestamppb.Timestamp) { + x.ExpireTime = v +} + +func (x *ResetPointInfo) SetResettable(v bool) { + x.Resettable = v +} + +func (x *ResetPointInfo) HasCreateTime() bool { + if x == nil { + return false + } + return x.CreateTime != nil +} + +func (x *ResetPointInfo) HasExpireTime() bool { + if x == nil { + return false + } + return x.ExpireTime != nil +} + +func (x *ResetPointInfo) ClearCreateTime() { + x.CreateTime = nil +} + +func (x *ResetPointInfo) ClearExpireTime() { + x.ExpireTime = nil +} + +type ResetPointInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Worker build id. + BuildId string + // Deprecated. A worker binary version identifier. + // + // Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. + BinaryChecksum string + // The first run ID in the execution chain that was touched by this worker build. + RunId string + // Event ID of the first WorkflowTaskCompleted event processed by this worker build. + FirstWorkflowTaskCompletedId int64 + CreateTime *timestamppb.Timestamp + // (-- api-linter: core::0214::resource-expiry=disabled + // + // aip.dev/not-precedent: TTL is not defined for ResetPointInfo. --) + // + // The time that the run is deleted due to retention. + ExpireTime *timestamppb.Timestamp + // false if the reset point has pending childWFs/reqCancels/signalExternals. + Resettable bool +} + +func (b0 ResetPointInfo_builder) Build() *ResetPointInfo { + m0 := &ResetPointInfo{} + b, x := &b0, m0 + _, _ = b, x + x.BuildId = b.BuildId + x.BinaryChecksum = b.BinaryChecksum + x.RunId = b.RunId + x.FirstWorkflowTaskCompletedId = b.FirstWorkflowTaskCompletedId + x.CreateTime = b.CreateTime + x.ExpireTime = b.ExpireTime + x.Resettable = b.Resettable + return m0 +} + // NewWorkflowExecutionInfo is a shared message that encapsulates all the // required arguments to starting a workflow in different contexts. type NewWorkflowExecutionInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` WorkflowId string `protobuf:"bytes,1,opt,name=workflow_id,json=workflowId,proto3" json:"workflow_id,omitempty"` WorkflowType *v1.WorkflowType `protobuf:"bytes,2,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type,omitempty"` TaskQueue *v13.TaskQueue `protobuf:"bytes,3,opt,name=task_queue,json=taskQueue,proto3" json:"task_queue,omitempty"` @@ -1568,11 +3101,6 @@ func (x *NewWorkflowExecutionInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use NewWorkflowExecutionInfo.ProtoReflect.Descriptor instead. -func (*NewWorkflowExecutionInfo) Descriptor() ([]byte, []int) { - return file_temporal_api_workflow_v1_message_proto_rawDescGZIP(), []int{11} -} - func (x *NewWorkflowExecutionInfo) GetWorkflowId() string { if x != nil { return x.WorkflowId @@ -1594,100 +3122,364 @@ func (x *NewWorkflowExecutionInfo) GetTaskQueue() *v13.TaskQueue { return nil } -func (x *NewWorkflowExecutionInfo) GetInput() *v1.Payloads { - if x != nil { - return x.Input +func (x *NewWorkflowExecutionInfo) GetInput() *v1.Payloads { + if x != nil { + return x.Input + } + return nil +} + +func (x *NewWorkflowExecutionInfo) GetWorkflowExecutionTimeout() *durationpb.Duration { + if x != nil { + return x.WorkflowExecutionTimeout + } + return nil +} + +func (x *NewWorkflowExecutionInfo) GetWorkflowRunTimeout() *durationpb.Duration { + if x != nil { + return x.WorkflowRunTimeout + } + return nil +} + +func (x *NewWorkflowExecutionInfo) GetWorkflowTaskTimeout() *durationpb.Duration { + if x != nil { + return x.WorkflowTaskTimeout + } + return nil +} + +func (x *NewWorkflowExecutionInfo) GetWorkflowIdReusePolicy() v11.WorkflowIdReusePolicy { + if x != nil { + return x.WorkflowIdReusePolicy + } + return v11.WorkflowIdReusePolicy(0) +} + +func (x *NewWorkflowExecutionInfo) GetRetryPolicy() *v1.RetryPolicy { + if x != nil { + return x.RetryPolicy + } + return nil +} + +func (x *NewWorkflowExecutionInfo) GetCronSchedule() string { + if x != nil { + return x.CronSchedule + } + return "" +} + +func (x *NewWorkflowExecutionInfo) GetMemo() *v1.Memo { + if x != nil { + return x.Memo + } + return nil +} + +func (x *NewWorkflowExecutionInfo) GetSearchAttributes() *v1.SearchAttributes { + if x != nil { + return x.SearchAttributes + } + return nil +} + +func (x *NewWorkflowExecutionInfo) GetHeader() *v1.Header { + if x != nil { + return x.Header + } + return nil +} + +func (x *NewWorkflowExecutionInfo) GetUserMetadata() *v14.UserMetadata { + if x != nil { + return x.UserMetadata + } + return nil +} + +func (x *NewWorkflowExecutionInfo) GetVersioningOverride() *VersioningOverride { + if x != nil { + return x.VersioningOverride + } + return nil +} + +func (x *NewWorkflowExecutionInfo) GetPriority() *v1.Priority { + if x != nil { + return x.Priority + } + return nil +} + +func (x *NewWorkflowExecutionInfo) SetWorkflowId(v string) { + x.WorkflowId = v +} + +func (x *NewWorkflowExecutionInfo) SetWorkflowType(v *v1.WorkflowType) { + x.WorkflowType = v +} + +func (x *NewWorkflowExecutionInfo) SetTaskQueue(v *v13.TaskQueue) { + x.TaskQueue = v +} + +func (x *NewWorkflowExecutionInfo) SetInput(v *v1.Payloads) { + x.Input = v +} + +func (x *NewWorkflowExecutionInfo) SetWorkflowExecutionTimeout(v *durationpb.Duration) { + x.WorkflowExecutionTimeout = v +} + +func (x *NewWorkflowExecutionInfo) SetWorkflowRunTimeout(v *durationpb.Duration) { + x.WorkflowRunTimeout = v +} + +func (x *NewWorkflowExecutionInfo) SetWorkflowTaskTimeout(v *durationpb.Duration) { + x.WorkflowTaskTimeout = v +} + +func (x *NewWorkflowExecutionInfo) SetWorkflowIdReusePolicy(v v11.WorkflowIdReusePolicy) { + x.WorkflowIdReusePolicy = v +} + +func (x *NewWorkflowExecutionInfo) SetRetryPolicy(v *v1.RetryPolicy) { + x.RetryPolicy = v +} + +func (x *NewWorkflowExecutionInfo) SetCronSchedule(v string) { + x.CronSchedule = v +} + +func (x *NewWorkflowExecutionInfo) SetMemo(v *v1.Memo) { + x.Memo = v +} + +func (x *NewWorkflowExecutionInfo) SetSearchAttributes(v *v1.SearchAttributes) { + x.SearchAttributes = v +} + +func (x *NewWorkflowExecutionInfo) SetHeader(v *v1.Header) { + x.Header = v +} + +func (x *NewWorkflowExecutionInfo) SetUserMetadata(v *v14.UserMetadata) { + x.UserMetadata = v +} + +func (x *NewWorkflowExecutionInfo) SetVersioningOverride(v *VersioningOverride) { + x.VersioningOverride = v +} + +func (x *NewWorkflowExecutionInfo) SetPriority(v *v1.Priority) { + x.Priority = v +} + +func (x *NewWorkflowExecutionInfo) HasWorkflowType() bool { + if x == nil { + return false + } + return x.WorkflowType != nil +} + +func (x *NewWorkflowExecutionInfo) HasTaskQueue() bool { + if x == nil { + return false } - return nil + return x.TaskQueue != nil } -func (x *NewWorkflowExecutionInfo) GetWorkflowExecutionTimeout() *durationpb.Duration { - if x != nil { - return x.WorkflowExecutionTimeout +func (x *NewWorkflowExecutionInfo) HasInput() bool { + if x == nil { + return false } - return nil + return x.Input != nil } -func (x *NewWorkflowExecutionInfo) GetWorkflowRunTimeout() *durationpb.Duration { - if x != nil { - return x.WorkflowRunTimeout +func (x *NewWorkflowExecutionInfo) HasWorkflowExecutionTimeout() bool { + if x == nil { + return false } - return nil + return x.WorkflowExecutionTimeout != nil } -func (x *NewWorkflowExecutionInfo) GetWorkflowTaskTimeout() *durationpb.Duration { - if x != nil { - return x.WorkflowTaskTimeout +func (x *NewWorkflowExecutionInfo) HasWorkflowRunTimeout() bool { + if x == nil { + return false } - return nil + return x.WorkflowRunTimeout != nil } -func (x *NewWorkflowExecutionInfo) GetWorkflowIdReusePolicy() v11.WorkflowIdReusePolicy { - if x != nil { - return x.WorkflowIdReusePolicy +func (x *NewWorkflowExecutionInfo) HasWorkflowTaskTimeout() bool { + if x == nil { + return false } - return v11.WorkflowIdReusePolicy(0) + return x.WorkflowTaskTimeout != nil } -func (x *NewWorkflowExecutionInfo) GetRetryPolicy() *v1.RetryPolicy { - if x != nil { - return x.RetryPolicy +func (x *NewWorkflowExecutionInfo) HasRetryPolicy() bool { + if x == nil { + return false } - return nil + return x.RetryPolicy != nil } -func (x *NewWorkflowExecutionInfo) GetCronSchedule() string { - if x != nil { - return x.CronSchedule +func (x *NewWorkflowExecutionInfo) HasMemo() bool { + if x == nil { + return false } - return "" + return x.Memo != nil } -func (x *NewWorkflowExecutionInfo) GetMemo() *v1.Memo { - if x != nil { - return x.Memo +func (x *NewWorkflowExecutionInfo) HasSearchAttributes() bool { + if x == nil { + return false } - return nil + return x.SearchAttributes != nil } -func (x *NewWorkflowExecutionInfo) GetSearchAttributes() *v1.SearchAttributes { - if x != nil { - return x.SearchAttributes +func (x *NewWorkflowExecutionInfo) HasHeader() bool { + if x == nil { + return false } - return nil + return x.Header != nil } -func (x *NewWorkflowExecutionInfo) GetHeader() *v1.Header { - if x != nil { - return x.Header +func (x *NewWorkflowExecutionInfo) HasUserMetadata() bool { + if x == nil { + return false } - return nil + return x.UserMetadata != nil } -func (x *NewWorkflowExecutionInfo) GetUserMetadata() *v14.UserMetadata { - if x != nil { - return x.UserMetadata +func (x *NewWorkflowExecutionInfo) HasVersioningOverride() bool { + if x == nil { + return false } - return nil + return x.VersioningOverride != nil } -func (x *NewWorkflowExecutionInfo) GetVersioningOverride() *VersioningOverride { - if x != nil { - return x.VersioningOverride +func (x *NewWorkflowExecutionInfo) HasPriority() bool { + if x == nil { + return false } - return nil + return x.Priority != nil } -func (x *NewWorkflowExecutionInfo) GetPriority() *v1.Priority { - if x != nil { - return x.Priority - } - return nil +func (x *NewWorkflowExecutionInfo) ClearWorkflowType() { + x.WorkflowType = nil +} + +func (x *NewWorkflowExecutionInfo) ClearTaskQueue() { + x.TaskQueue = nil +} + +func (x *NewWorkflowExecutionInfo) ClearInput() { + x.Input = nil +} + +func (x *NewWorkflowExecutionInfo) ClearWorkflowExecutionTimeout() { + x.WorkflowExecutionTimeout = nil +} + +func (x *NewWorkflowExecutionInfo) ClearWorkflowRunTimeout() { + x.WorkflowRunTimeout = nil +} + +func (x *NewWorkflowExecutionInfo) ClearWorkflowTaskTimeout() { + x.WorkflowTaskTimeout = nil +} + +func (x *NewWorkflowExecutionInfo) ClearRetryPolicy() { + x.RetryPolicy = nil +} + +func (x *NewWorkflowExecutionInfo) ClearMemo() { + x.Memo = nil +} + +func (x *NewWorkflowExecutionInfo) ClearSearchAttributes() { + x.SearchAttributes = nil +} + +func (x *NewWorkflowExecutionInfo) ClearHeader() { + x.Header = nil +} + +func (x *NewWorkflowExecutionInfo) ClearUserMetadata() { + x.UserMetadata = nil +} + +func (x *NewWorkflowExecutionInfo) ClearVersioningOverride() { + x.VersioningOverride = nil +} + +func (x *NewWorkflowExecutionInfo) ClearPriority() { + x.Priority = nil +} + +type NewWorkflowExecutionInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + WorkflowId string + WorkflowType *v1.WorkflowType + TaskQueue *v13.TaskQueue + // Serialized arguments to the workflow. + Input *v1.Payloads + // Total workflow execution timeout including retries and continue as new. + WorkflowExecutionTimeout *durationpb.Duration + // Timeout of a single workflow run. + WorkflowRunTimeout *durationpb.Duration + // Timeout of a single workflow task. + WorkflowTaskTimeout *durationpb.Duration + // Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE. + WorkflowIdReusePolicy v11.WorkflowIdReusePolicy + // The retry policy for the workflow. Will never exceed `workflow_execution_timeout`. + RetryPolicy *v1.RetryPolicy + // See https://docs.temporal.io/docs/content/what-is-a-temporal-cron-job/ + CronSchedule string + Memo *v1.Memo + SearchAttributes *v1.SearchAttributes + Header *v1.Header + // Metadata on the workflow if it is started. This is carried over to the WorkflowExecutionConfig + // for use by user interfaces to display the fixed as-of-start summary and details of the + // workflow. + UserMetadata *v14.UserMetadata + // If set, takes precedence over the Versioning Behavior sent by the SDK on Workflow Task completion. + // To unset the override after the workflow is running, use UpdateWorkflowExecutionOptions. + VersioningOverride *VersioningOverride + // Priority metadata + Priority *v1.Priority +} + +func (b0 NewWorkflowExecutionInfo_builder) Build() *NewWorkflowExecutionInfo { + m0 := &NewWorkflowExecutionInfo{} + b, x := &b0, m0 + _, _ = b, x + x.WorkflowId = b.WorkflowId + x.WorkflowType = b.WorkflowType + x.TaskQueue = b.TaskQueue + x.Input = b.Input + x.WorkflowExecutionTimeout = b.WorkflowExecutionTimeout + x.WorkflowRunTimeout = b.WorkflowRunTimeout + x.WorkflowTaskTimeout = b.WorkflowTaskTimeout + x.WorkflowIdReusePolicy = b.WorkflowIdReusePolicy + x.RetryPolicy = b.RetryPolicy + x.CronSchedule = b.CronSchedule + x.Memo = b.Memo + x.SearchAttributes = b.SearchAttributes + x.Header = b.Header + x.UserMetadata = b.UserMetadata + x.VersioningOverride = b.VersioningOverride + x.Priority = b.Priority + return m0 } // CallbackInfo contains the state of an attached workflow callback. type CallbackInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Information on how this callback should be invoked (e.g. its URL and type). Callback *v1.Callback `protobuf:"bytes,1,opt,name=callback,proto3" json:"callback,omitempty"` // Trigger for this callback. @@ -1735,11 +3527,6 @@ func (x *CallbackInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CallbackInfo.ProtoReflect.Descriptor instead. -func (*CallbackInfo) Descriptor() ([]byte, []int) { - return file_temporal_api_workflow_v1_message_proto_rawDescGZIP(), []int{12} -} - func (x *CallbackInfo) GetCallback() *v1.Callback { if x != nil { return x.Callback @@ -1803,9 +3590,150 @@ func (x *CallbackInfo) GetBlockedReason() string { return "" } +func (x *CallbackInfo) SetCallback(v *v1.Callback) { + x.Callback = v +} + +func (x *CallbackInfo) SetTrigger(v *CallbackInfo_Trigger) { + x.Trigger = v +} + +func (x *CallbackInfo) SetRegistrationTime(v *timestamppb.Timestamp) { + x.RegistrationTime = v +} + +func (x *CallbackInfo) SetState(v v11.CallbackState) { + x.State = v +} + +func (x *CallbackInfo) SetAttempt(v int32) { + x.Attempt = v +} + +func (x *CallbackInfo) SetLastAttemptCompleteTime(v *timestamppb.Timestamp) { + x.LastAttemptCompleteTime = v +} + +func (x *CallbackInfo) SetLastAttemptFailure(v *v15.Failure) { + x.LastAttemptFailure = v +} + +func (x *CallbackInfo) SetNextAttemptScheduleTime(v *timestamppb.Timestamp) { + x.NextAttemptScheduleTime = v +} + +func (x *CallbackInfo) SetBlockedReason(v string) { + x.BlockedReason = v +} + +func (x *CallbackInfo) HasCallback() bool { + if x == nil { + return false + } + return x.Callback != nil +} + +func (x *CallbackInfo) HasTrigger() bool { + if x == nil { + return false + } + return x.Trigger != nil +} + +func (x *CallbackInfo) HasRegistrationTime() bool { + if x == nil { + return false + } + return x.RegistrationTime != nil +} + +func (x *CallbackInfo) HasLastAttemptCompleteTime() bool { + if x == nil { + return false + } + return x.LastAttemptCompleteTime != nil +} + +func (x *CallbackInfo) HasLastAttemptFailure() bool { + if x == nil { + return false + } + return x.LastAttemptFailure != nil +} + +func (x *CallbackInfo) HasNextAttemptScheduleTime() bool { + if x == nil { + return false + } + return x.NextAttemptScheduleTime != nil +} + +func (x *CallbackInfo) ClearCallback() { + x.Callback = nil +} + +func (x *CallbackInfo) ClearTrigger() { + x.Trigger = nil +} + +func (x *CallbackInfo) ClearRegistrationTime() { + x.RegistrationTime = nil +} + +func (x *CallbackInfo) ClearLastAttemptCompleteTime() { + x.LastAttemptCompleteTime = nil +} + +func (x *CallbackInfo) ClearLastAttemptFailure() { + x.LastAttemptFailure = nil +} + +func (x *CallbackInfo) ClearNextAttemptScheduleTime() { + x.NextAttemptScheduleTime = nil +} + +type CallbackInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Information on how this callback should be invoked (e.g. its URL and type). + Callback *v1.Callback + // Trigger for this callback. + Trigger *CallbackInfo_Trigger + // The time when the callback was registered. + RegistrationTime *timestamppb.Timestamp + State v11.CallbackState + // The number of attempts made to deliver the callback. + // This number represents a minimum bound since the attempt is incremented after the callback request completes. + Attempt int32 + // The time when the last attempt completed. + LastAttemptCompleteTime *timestamppb.Timestamp + // The last attempt's failure, if any. + LastAttemptFailure *v15.Failure + // The time when the next attempt is scheduled. + NextAttemptScheduleTime *timestamppb.Timestamp + // If the state is BLOCKED, blocked reason provides additional information. + BlockedReason string +} + +func (b0 CallbackInfo_builder) Build() *CallbackInfo { + m0 := &CallbackInfo{} + b, x := &b0, m0 + _, _ = b, x + x.Callback = b.Callback + x.Trigger = b.Trigger + x.RegistrationTime = b.RegistrationTime + x.State = b.State + x.Attempt = b.Attempt + x.LastAttemptCompleteTime = b.LastAttemptCompleteTime + x.LastAttemptFailure = b.LastAttemptFailure + x.NextAttemptScheduleTime = b.NextAttemptScheduleTime + x.BlockedReason = b.BlockedReason + return m0 +} + // PendingNexusOperationInfo contains the state of a pending Nexus operation. type PendingNexusOperationInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Endpoint name. // Resolved to a URL via the cluster's endpoint registry. Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` @@ -1884,11 +3812,6 @@ func (x *PendingNexusOperationInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PendingNexusOperationInfo.ProtoReflect.Descriptor instead. -func (*PendingNexusOperationInfo) Descriptor() ([]byte, []int) { - return file_temporal_api_workflow_v1_message_proto_rawDescGZIP(), []int{13} -} - func (x *PendingNexusOperationInfo) GetEndpoint() string { if x != nil { return x.Endpoint @@ -2009,9 +3932,244 @@ func (x *PendingNexusOperationInfo) GetStartToCloseTimeout() *durationpb.Duratio return nil } +func (x *PendingNexusOperationInfo) SetEndpoint(v string) { + x.Endpoint = v +} + +func (x *PendingNexusOperationInfo) SetService(v string) { + x.Service = v +} + +func (x *PendingNexusOperationInfo) SetOperation(v string) { + x.Operation = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *PendingNexusOperationInfo) SetOperationId(v string) { + x.OperationId = v +} + +func (x *PendingNexusOperationInfo) SetScheduleToCloseTimeout(v *durationpb.Duration) { + x.ScheduleToCloseTimeout = v +} + +func (x *PendingNexusOperationInfo) SetScheduledTime(v *timestamppb.Timestamp) { + x.ScheduledTime = v +} + +func (x *PendingNexusOperationInfo) SetState(v v11.PendingNexusOperationState) { + x.State = v +} + +func (x *PendingNexusOperationInfo) SetAttempt(v int32) { + x.Attempt = v +} + +func (x *PendingNexusOperationInfo) SetLastAttemptCompleteTime(v *timestamppb.Timestamp) { + x.LastAttemptCompleteTime = v +} + +func (x *PendingNexusOperationInfo) SetLastAttemptFailure(v *v15.Failure) { + x.LastAttemptFailure = v +} + +func (x *PendingNexusOperationInfo) SetNextAttemptScheduleTime(v *timestamppb.Timestamp) { + x.NextAttemptScheduleTime = v +} + +func (x *PendingNexusOperationInfo) SetCancellationInfo(v *NexusOperationCancellationInfo) { + x.CancellationInfo = v +} + +func (x *PendingNexusOperationInfo) SetScheduledEventId(v int64) { + x.ScheduledEventId = v +} + +func (x *PendingNexusOperationInfo) SetBlockedReason(v string) { + x.BlockedReason = v +} + +func (x *PendingNexusOperationInfo) SetOperationToken(v string) { + x.OperationToken = v +} + +func (x *PendingNexusOperationInfo) SetScheduleToStartTimeout(v *durationpb.Duration) { + x.ScheduleToStartTimeout = v +} + +func (x *PendingNexusOperationInfo) SetStartToCloseTimeout(v *durationpb.Duration) { + x.StartToCloseTimeout = v +} + +func (x *PendingNexusOperationInfo) HasScheduleToCloseTimeout() bool { + if x == nil { + return false + } + return x.ScheduleToCloseTimeout != nil +} + +func (x *PendingNexusOperationInfo) HasScheduledTime() bool { + if x == nil { + return false + } + return x.ScheduledTime != nil +} + +func (x *PendingNexusOperationInfo) HasLastAttemptCompleteTime() bool { + if x == nil { + return false + } + return x.LastAttemptCompleteTime != nil +} + +func (x *PendingNexusOperationInfo) HasLastAttemptFailure() bool { + if x == nil { + return false + } + return x.LastAttemptFailure != nil +} + +func (x *PendingNexusOperationInfo) HasNextAttemptScheduleTime() bool { + if x == nil { + return false + } + return x.NextAttemptScheduleTime != nil +} + +func (x *PendingNexusOperationInfo) HasCancellationInfo() bool { + if x == nil { + return false + } + return x.CancellationInfo != nil +} + +func (x *PendingNexusOperationInfo) HasScheduleToStartTimeout() bool { + if x == nil { + return false + } + return x.ScheduleToStartTimeout != nil +} + +func (x *PendingNexusOperationInfo) HasStartToCloseTimeout() bool { + if x == nil { + return false + } + return x.StartToCloseTimeout != nil +} + +func (x *PendingNexusOperationInfo) ClearScheduleToCloseTimeout() { + x.ScheduleToCloseTimeout = nil +} + +func (x *PendingNexusOperationInfo) ClearScheduledTime() { + x.ScheduledTime = nil +} + +func (x *PendingNexusOperationInfo) ClearLastAttemptCompleteTime() { + x.LastAttemptCompleteTime = nil +} + +func (x *PendingNexusOperationInfo) ClearLastAttemptFailure() { + x.LastAttemptFailure = nil +} + +func (x *PendingNexusOperationInfo) ClearNextAttemptScheduleTime() { + x.NextAttemptScheduleTime = nil +} + +func (x *PendingNexusOperationInfo) ClearCancellationInfo() { + x.CancellationInfo = nil +} + +func (x *PendingNexusOperationInfo) ClearScheduleToStartTimeout() { + x.ScheduleToStartTimeout = nil +} + +func (x *PendingNexusOperationInfo) ClearStartToCloseTimeout() { + x.StartToCloseTimeout = nil +} + +type PendingNexusOperationInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Endpoint name. + // Resolved to a URL via the cluster's endpoint registry. + Endpoint string + // Service name. + Service string + // Operation name. + Operation string + // Operation ID. Only set for asynchronous operations after a successful StartOperation call. + // + // Deprecated. Renamed to operation_token. + // + // Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. + OperationId string + // Schedule-to-close timeout for this operation. + // This is the only timeout settable by a workflow. + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + ScheduleToCloseTimeout *durationpb.Duration + // The time when the operation was scheduled. + ScheduledTime *timestamppb.Timestamp + State v11.PendingNexusOperationState + // The number of attempts made to deliver the start operation request. + // This number represents a minimum bound since the attempt is incremented after the request completes. + Attempt int32 + // The time when the last attempt completed. + LastAttemptCompleteTime *timestamppb.Timestamp + // The last attempt's failure, if any. + LastAttemptFailure *v15.Failure + // The time when the next attempt is scheduled. + NextAttemptScheduleTime *timestamppb.Timestamp + CancellationInfo *NexusOperationCancellationInfo + // The event ID of the NexusOperationScheduled event. Can be used to correlate an operation in the + // DescribeWorkflowExecution response with workflow history. + ScheduledEventId int64 + // If the state is BLOCKED, blocked reason provides additional information. + BlockedReason string + // Operation token. Only set for asynchronous operations after a successful StartOperation call. + OperationToken string + // Schedule-to-start timeout for this operation. + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + ScheduleToStartTimeout *durationpb.Duration + // Start-to-close timeout for this operation. + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + StartToCloseTimeout *durationpb.Duration +} + +func (b0 PendingNexusOperationInfo_builder) Build() *PendingNexusOperationInfo { + m0 := &PendingNexusOperationInfo{} + b, x := &b0, m0 + _, _ = b, x + x.Endpoint = b.Endpoint + x.Service = b.Service + x.Operation = b.Operation + x.OperationId = b.OperationId + x.ScheduleToCloseTimeout = b.ScheduleToCloseTimeout + x.ScheduledTime = b.ScheduledTime + x.State = b.State + x.Attempt = b.Attempt + x.LastAttemptCompleteTime = b.LastAttemptCompleteTime + x.LastAttemptFailure = b.LastAttemptFailure + x.NextAttemptScheduleTime = b.NextAttemptScheduleTime + x.CancellationInfo = b.CancellationInfo + x.ScheduledEventId = b.ScheduledEventId + x.BlockedReason = b.BlockedReason + x.OperationToken = b.OperationToken + x.ScheduleToStartTimeout = b.ScheduleToStartTimeout + x.StartToCloseTimeout = b.StartToCloseTimeout + return m0 +} + // NexusOperationCancellationInfo contains the state of a nexus operation cancellation. type NexusOperationCancellationInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The time when cancellation was requested. RequestedTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=requested_time,json=requestedTime,proto3" json:"requested_time,omitempty"` State v11.NexusOperationCancellationState `protobuf:"varint,2,opt,name=state,proto3,enum=temporal.api.enums.v1.NexusOperationCancellationState" json:"state,omitempty"` @@ -2055,11 +4213,6 @@ func (x *NexusOperationCancellationInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use NexusOperationCancellationInfo.ProtoReflect.Descriptor instead. -func (*NexusOperationCancellationInfo) Descriptor() ([]byte, []int) { - return file_temporal_api_workflow_v1_message_proto_rawDescGZIP(), []int{14} -} - func (x *NexusOperationCancellationInfo) GetRequestedTime() *timestamppb.Timestamp { if x != nil { return x.RequestedTime @@ -2109,8 +4262,113 @@ func (x *NexusOperationCancellationInfo) GetBlockedReason() string { return "" } +func (x *NexusOperationCancellationInfo) SetRequestedTime(v *timestamppb.Timestamp) { + x.RequestedTime = v +} + +func (x *NexusOperationCancellationInfo) SetState(v v11.NexusOperationCancellationState) { + x.State = v +} + +func (x *NexusOperationCancellationInfo) SetAttempt(v int32) { + x.Attempt = v +} + +func (x *NexusOperationCancellationInfo) SetLastAttemptCompleteTime(v *timestamppb.Timestamp) { + x.LastAttemptCompleteTime = v +} + +func (x *NexusOperationCancellationInfo) SetLastAttemptFailure(v *v15.Failure) { + x.LastAttemptFailure = v +} + +func (x *NexusOperationCancellationInfo) SetNextAttemptScheduleTime(v *timestamppb.Timestamp) { + x.NextAttemptScheduleTime = v +} + +func (x *NexusOperationCancellationInfo) SetBlockedReason(v string) { + x.BlockedReason = v +} + +func (x *NexusOperationCancellationInfo) HasRequestedTime() bool { + if x == nil { + return false + } + return x.RequestedTime != nil +} + +func (x *NexusOperationCancellationInfo) HasLastAttemptCompleteTime() bool { + if x == nil { + return false + } + return x.LastAttemptCompleteTime != nil +} + +func (x *NexusOperationCancellationInfo) HasLastAttemptFailure() bool { + if x == nil { + return false + } + return x.LastAttemptFailure != nil +} + +func (x *NexusOperationCancellationInfo) HasNextAttemptScheduleTime() bool { + if x == nil { + return false + } + return x.NextAttemptScheduleTime != nil +} + +func (x *NexusOperationCancellationInfo) ClearRequestedTime() { + x.RequestedTime = nil +} + +func (x *NexusOperationCancellationInfo) ClearLastAttemptCompleteTime() { + x.LastAttemptCompleteTime = nil +} + +func (x *NexusOperationCancellationInfo) ClearLastAttemptFailure() { + x.LastAttemptFailure = nil +} + +func (x *NexusOperationCancellationInfo) ClearNextAttemptScheduleTime() { + x.NextAttemptScheduleTime = nil +} + +type NexusOperationCancellationInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The time when cancellation was requested. + RequestedTime *timestamppb.Timestamp + State v11.NexusOperationCancellationState + // The number of attempts made to deliver the cancel operation request. + // This number represents a minimum bound since the attempt is incremented after the request completes. + Attempt int32 + // The time when the last attempt completed. + LastAttemptCompleteTime *timestamppb.Timestamp + // The last attempt's failure, if any. + LastAttemptFailure *v15.Failure + // The time when the next attempt is scheduled. + NextAttemptScheduleTime *timestamppb.Timestamp + // If the state is BLOCKED, blocked reason provides additional information. + BlockedReason string +} + +func (b0 NexusOperationCancellationInfo_builder) Build() *NexusOperationCancellationInfo { + m0 := &NexusOperationCancellationInfo{} + b, x := &b0, m0 + _, _ = b, x + x.RequestedTime = b.RequestedTime + x.State = b.State + x.Attempt = b.Attempt + x.LastAttemptCompleteTime = b.LastAttemptCompleteTime + x.LastAttemptFailure = b.LastAttemptFailure + x.NextAttemptScheduleTime = b.NextAttemptScheduleTime + x.BlockedReason = b.BlockedReason + return m0 +} + type WorkflowExecutionOptions struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // If set, takes precedence over the Versioning Behavior sent by the SDK on Workflow Task completion. VersioningOverride *VersioningOverride `protobuf:"bytes,1,opt,name=versioning_override,json=versioningOverride,proto3" json:"versioning_override,omitempty"` // If set, overrides the workflow's priority sent by the SDK. @@ -2144,11 +4402,6 @@ func (x *WorkflowExecutionOptions) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use WorkflowExecutionOptions.ProtoReflect.Descriptor instead. -func (*WorkflowExecutionOptions) Descriptor() ([]byte, []int) { - return file_temporal_api_workflow_v1_message_proto_rawDescGZIP(), []int{15} -} - func (x *WorkflowExecutionOptions) GetVersioningOverride() *VersioningOverride { if x != nil { return x.VersioningOverride @@ -2163,6 +4416,54 @@ func (x *WorkflowExecutionOptions) GetPriority() *v1.Priority { return nil } +func (x *WorkflowExecutionOptions) SetVersioningOverride(v *VersioningOverride) { + x.VersioningOverride = v +} + +func (x *WorkflowExecutionOptions) SetPriority(v *v1.Priority) { + x.Priority = v +} + +func (x *WorkflowExecutionOptions) HasVersioningOverride() bool { + if x == nil { + return false + } + return x.VersioningOverride != nil +} + +func (x *WorkflowExecutionOptions) HasPriority() bool { + if x == nil { + return false + } + return x.Priority != nil +} + +func (x *WorkflowExecutionOptions) ClearVersioningOverride() { + x.VersioningOverride = nil +} + +func (x *WorkflowExecutionOptions) ClearPriority() { + x.Priority = nil +} + +type WorkflowExecutionOptions_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // If set, takes precedence over the Versioning Behavior sent by the SDK on Workflow Task completion. + VersioningOverride *VersioningOverride + // If set, overrides the workflow's priority sent by the SDK. + Priority *v1.Priority +} + +func (b0 WorkflowExecutionOptions_builder) Build() *WorkflowExecutionOptions { + m0 := &WorkflowExecutionOptions{} + b, x := &b0, m0 + _, _ = b, x + x.VersioningOverride = b.VersioningOverride + x.Priority = b.Priority + return m0 +} + // Used to override the versioning behavior (and pinned deployment version, if applicable) of a // specific workflow execution. If set, this override takes precedence over worker-sent values. // See `WorkflowExecutionInfo.VersioningInfo` for more information. @@ -2173,7 +4474,7 @@ func (x *WorkflowExecutionOptions) GetPriority() *v1.Priority { // Pinned behavior overrides are automatically inherited by child workflows, workflow retries, continue-as-new // workflows, and cron workflows. type VersioningOverride struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Indicates whether to override the workflow to be AutoUpgrade or Pinned. // // Types that are valid to be assigned to Override: @@ -2228,11 +4529,6 @@ func (x *VersioningOverride) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use VersioningOverride.ProtoReflect.Descriptor instead. -func (*VersioningOverride) Descriptor() ([]byte, []int) { - return file_temporal_api_workflow_v1_message_proto_rawDescGZIP(), []int{16} -} - func (x *VersioningOverride) GetOverride() isVersioningOverride_Override { if x != nil { return x.Override @@ -2282,6 +4578,166 @@ func (x *VersioningOverride) GetPinnedVersion() string { return "" } +func (x *VersioningOverride) SetPinned(v *VersioningOverride_PinnedOverride) { + if v == nil { + x.Override = nil + return + } + x.Override = &VersioningOverride_Pinned{v} +} + +func (x *VersioningOverride) SetAutoUpgrade(v bool) { + x.Override = &VersioningOverride_AutoUpgrade{v} +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *VersioningOverride) SetBehavior(v v11.VersioningBehavior) { + x.Behavior = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *VersioningOverride) SetDeployment(v *v12.Deployment) { + x.Deployment = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *VersioningOverride) SetPinnedVersion(v string) { + x.PinnedVersion = v +} + +func (x *VersioningOverride) HasOverride() bool { + if x == nil { + return false + } + return x.Override != nil +} + +func (x *VersioningOverride) HasPinned() bool { + if x == nil { + return false + } + _, ok := x.Override.(*VersioningOverride_Pinned) + return ok +} + +func (x *VersioningOverride) HasAutoUpgrade() bool { + if x == nil { + return false + } + _, ok := x.Override.(*VersioningOverride_AutoUpgrade) + return ok +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *VersioningOverride) HasDeployment() bool { + if x == nil { + return false + } + return x.Deployment != nil +} + +func (x *VersioningOverride) ClearOverride() { + x.Override = nil +} + +func (x *VersioningOverride) ClearPinned() { + if _, ok := x.Override.(*VersioningOverride_Pinned); ok { + x.Override = nil + } +} + +func (x *VersioningOverride) ClearAutoUpgrade() { + if _, ok := x.Override.(*VersioningOverride_AutoUpgrade); ok { + x.Override = nil + } +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *VersioningOverride) ClearDeployment() { + x.Deployment = nil +} + +const VersioningOverride_Override_not_set_case case_VersioningOverride_Override = 0 +const VersioningOverride_Pinned_case case_VersioningOverride_Override = 3 +const VersioningOverride_AutoUpgrade_case case_VersioningOverride_Override = 4 + +func (x *VersioningOverride) WhichOverride() case_VersioningOverride_Override { + if x == nil { + return VersioningOverride_Override_not_set_case + } + switch x.Override.(type) { + case *VersioningOverride_Pinned: + return VersioningOverride_Pinned_case + case *VersioningOverride_AutoUpgrade: + return VersioningOverride_AutoUpgrade_case + default: + return VersioningOverride_Override_not_set_case + } +} + +type VersioningOverride_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Indicates whether to override the workflow to be AutoUpgrade or Pinned. + + // Fields of oneof Override: + // Override the workflow to have Pinned behavior. + Pinned *VersioningOverride_PinnedOverride + // Override the workflow to have AutoUpgrade behavior. + AutoUpgrade *bool + // -- end of Override + // Required. + // Deprecated. Use `override`. + // + // Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. + Behavior v11.VersioningBehavior + // Required if behavior is `PINNED`. Must be null if behavior is `AUTO_UPGRADE`. + // Identifies the worker deployment to pin the workflow to. + // Deprecated. Use `override.pinned.version`. + // + // Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. + Deployment *v12.Deployment + // Required if behavior is `PINNED`. Must be absent if behavior is not `PINNED`. + // Identifies the worker deployment version to pin the workflow to, in the format + // ".". + // Deprecated. Use `override.pinned.version`. + // + // Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. + PinnedVersion string +} + +func (b0 VersioningOverride_builder) Build() *VersioningOverride { + m0 := &VersioningOverride{} + b, x := &b0, m0 + _, _ = b, x + if b.Pinned != nil { + x.Override = &VersioningOverride_Pinned{b.Pinned} + } + if b.AutoUpgrade != nil { + x.Override = &VersioningOverride_AutoUpgrade{*b.AutoUpgrade} + } + x.Behavior = b.Behavior + x.Deployment = b.Deployment + x.PinnedVersion = b.PinnedVersion + return m0 +} + +type case_VersioningOverride_Override protoreflect.FieldNumber + +func (x case_VersioningOverride_Override) String() string { + switch x { + case VersioningOverride_Override_not_set_case: + return "VersioningOverrideOverrideNotSetCase" + case VersioningOverride_Pinned_case: + return "VersioningOverridePinnedCase" + case VersioningOverride_AutoUpgrade_case: + return "VersioningOverrideAutoUpgradeCase" + default: + return strconv.Itoa(int(x)) + } + +} + type isVersioningOverride_Override interface { isVersioningOverride_Override() } @@ -2305,7 +4761,7 @@ func (*VersioningOverride_AutoUpgrade) isVersioningOverride_Override() {} // the existing running workflow. In this case, it will create a WorkflowExecutionOptionsUpdatedEvent // history event in the running workflow with the changes requested in this object. type OnConflictOptions struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Attaches the request ID to the running workflow. AttachRequestId bool `protobuf:"varint,1,opt,name=attach_request_id,json=attachRequestId,proto3" json:"attach_request_id,omitempty"` // Attaches the completion callbacks to the running workflow. @@ -2341,11 +4797,6 @@ func (x *OnConflictOptions) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use OnConflictOptions.ProtoReflect.Descriptor instead. -func (*OnConflictOptions) Descriptor() ([]byte, []int) { - return file_temporal_api_workflow_v1_message_proto_rawDescGZIP(), []int{17} -} - func (x *OnConflictOptions) GetAttachRequestId() bool { if x != nil { return x.AttachRequestId @@ -2367,9 +4818,42 @@ func (x *OnConflictOptions) GetAttachLinks() bool { return false } +func (x *OnConflictOptions) SetAttachRequestId(v bool) { + x.AttachRequestId = v +} + +func (x *OnConflictOptions) SetAttachCompletionCallbacks(v bool) { + x.AttachCompletionCallbacks = v +} + +func (x *OnConflictOptions) SetAttachLinks(v bool) { + x.AttachLinks = v +} + +type OnConflictOptions_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Attaches the request ID to the running workflow. + AttachRequestId bool + // Attaches the completion callbacks to the running workflow. + AttachCompletionCallbacks bool + // Attaches the links to the WorkflowExecutionOptionsUpdatedEvent history event. + AttachLinks bool +} + +func (b0 OnConflictOptions_builder) Build() *OnConflictOptions { + m0 := &OnConflictOptions{} + b, x := &b0, m0 + _, _ = b, x + x.AttachRequestId = b.AttachRequestId + x.AttachCompletionCallbacks = b.AttachCompletionCallbacks + x.AttachLinks = b.AttachLinks + return m0 +} + // RequestIdInfo contains details of a request ID. type RequestIdInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The event type of the history event generated by the request. EventType v11.EventType `protobuf:"varint,1,opt,name=event_type,json=eventType,proto3,enum=temporal.api.enums.v1.EventType" json:"event_type,omitempty"` // The event id of the history event generated by the request. It's possible the event ID is not @@ -2408,11 +4892,6 @@ func (x *RequestIdInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RequestIdInfo.ProtoReflect.Descriptor instead. -func (*RequestIdInfo) Descriptor() ([]byte, []int) { - return file_temporal_api_workflow_v1_message_proto_rawDescGZIP(), []int{18} -} - func (x *RequestIdInfo) GetEventType() v11.EventType { if x != nil { return x.EventType @@ -2434,9 +4913,45 @@ func (x *RequestIdInfo) GetBuffered() bool { return false } +func (x *RequestIdInfo) SetEventType(v v11.EventType) { + x.EventType = v +} + +func (x *RequestIdInfo) SetEventId(v int64) { + x.EventId = v +} + +func (x *RequestIdInfo) SetBuffered(v bool) { + x.Buffered = v +} + +type RequestIdInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The event type of the history event generated by the request. + EventType v11.EventType + // The event id of the history event generated by the request. It's possible the event ID is not + // known (unflushed buffered event). In this case, the value will be zero or a negative value, + // representing an invalid ID. + EventId int64 + // Indicate if the request is still buffered. If so, the event ID is not known and its value + // will be an invalid event ID. + Buffered bool +} + +func (b0 RequestIdInfo_builder) Build() *RequestIdInfo { + m0 := &RequestIdInfo{} + b, x := &b0, m0 + _, _ = b, x + x.EventType = b.EventType + x.EventId = b.EventId + x.Buffered = b.Buffered + return m0 +} + // PostResetOperation represents an operation to be performed on the new workflow execution after a workflow reset. type PostResetOperation struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Types that are valid to be assigned to Variant: // // *PostResetOperation_SignalWorkflow_ @@ -2471,34 +4986,140 @@ func (x *PostResetOperation) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PostResetOperation.ProtoReflect.Descriptor instead. -func (*PostResetOperation) Descriptor() ([]byte, []int) { - return file_temporal_api_workflow_v1_message_proto_rawDescGZIP(), []int{19} -} +func (x *PostResetOperation) GetVariant() isPostResetOperation_Variant { + if x != nil { + return x.Variant + } + return nil +} + +func (x *PostResetOperation) GetSignalWorkflow() *PostResetOperation_SignalWorkflow { + if x != nil { + if x, ok := x.Variant.(*PostResetOperation_SignalWorkflow_); ok { + return x.SignalWorkflow + } + } + return nil +} + +func (x *PostResetOperation) GetUpdateWorkflowOptions() *PostResetOperation_UpdateWorkflowOptions { + if x != nil { + if x, ok := x.Variant.(*PostResetOperation_UpdateWorkflowOptions_); ok { + return x.UpdateWorkflowOptions + } + } + return nil +} + +func (x *PostResetOperation) SetSignalWorkflow(v *PostResetOperation_SignalWorkflow) { + if v == nil { + x.Variant = nil + return + } + x.Variant = &PostResetOperation_SignalWorkflow_{v} +} + +func (x *PostResetOperation) SetUpdateWorkflowOptions(v *PostResetOperation_UpdateWorkflowOptions) { + if v == nil { + x.Variant = nil + return + } + x.Variant = &PostResetOperation_UpdateWorkflowOptions_{v} +} + +func (x *PostResetOperation) HasVariant() bool { + if x == nil { + return false + } + return x.Variant != nil +} + +func (x *PostResetOperation) HasSignalWorkflow() bool { + if x == nil { + return false + } + _, ok := x.Variant.(*PostResetOperation_SignalWorkflow_) + return ok +} + +func (x *PostResetOperation) HasUpdateWorkflowOptions() bool { + if x == nil { + return false + } + _, ok := x.Variant.(*PostResetOperation_UpdateWorkflowOptions_) + return ok +} + +func (x *PostResetOperation) ClearVariant() { + x.Variant = nil +} + +func (x *PostResetOperation) ClearSignalWorkflow() { + if _, ok := x.Variant.(*PostResetOperation_SignalWorkflow_); ok { + x.Variant = nil + } +} + +func (x *PostResetOperation) ClearUpdateWorkflowOptions() { + if _, ok := x.Variant.(*PostResetOperation_UpdateWorkflowOptions_); ok { + x.Variant = nil + } +} + +const PostResetOperation_Variant_not_set_case case_PostResetOperation_Variant = 0 +const PostResetOperation_SignalWorkflow_case case_PostResetOperation_Variant = 1 +const PostResetOperation_UpdateWorkflowOptions_case case_PostResetOperation_Variant = 2 + +func (x *PostResetOperation) WhichVariant() case_PostResetOperation_Variant { + if x == nil { + return PostResetOperation_Variant_not_set_case + } + switch x.Variant.(type) { + case *PostResetOperation_SignalWorkflow_: + return PostResetOperation_SignalWorkflow_case + case *PostResetOperation_UpdateWorkflowOptions_: + return PostResetOperation_UpdateWorkflowOptions_case + default: + return PostResetOperation_Variant_not_set_case + } +} + +type PostResetOperation_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. -func (x *PostResetOperation) GetVariant() isPostResetOperation_Variant { - if x != nil { - return x.Variant - } - return nil + // Fields of oneof Variant: + SignalWorkflow *PostResetOperation_SignalWorkflow + UpdateWorkflowOptions *PostResetOperation_UpdateWorkflowOptions + // -- end of Variant } -func (x *PostResetOperation) GetSignalWorkflow() *PostResetOperation_SignalWorkflow { - if x != nil { - if x, ok := x.Variant.(*PostResetOperation_SignalWorkflow_); ok { - return x.SignalWorkflow - } +func (b0 PostResetOperation_builder) Build() *PostResetOperation { + m0 := &PostResetOperation{} + b, x := &b0, m0 + _, _ = b, x + if b.SignalWorkflow != nil { + x.Variant = &PostResetOperation_SignalWorkflow_{b.SignalWorkflow} } - return nil + if b.UpdateWorkflowOptions != nil { + x.Variant = &PostResetOperation_UpdateWorkflowOptions_{b.UpdateWorkflowOptions} + } + return m0 } -func (x *PostResetOperation) GetUpdateWorkflowOptions() *PostResetOperation_UpdateWorkflowOptions { - if x != nil { - if x, ok := x.Variant.(*PostResetOperation_UpdateWorkflowOptions_); ok { - return x.UpdateWorkflowOptions - } +type case_PostResetOperation_Variant protoreflect.FieldNumber + +func (x case_PostResetOperation_Variant) String() string { + switch x { + case PostResetOperation_Variant_not_set_case: + return "PostResetOperationVariantNotSetCase" + case PostResetOperation_SignalWorkflow_case: + return "PostResetOperationSignalWorkflowCase" + case PostResetOperation_UpdateWorkflowOptions_case: + return "PostResetOperationUpdateWorkflowOptionsCase" + default: + return strconv.Itoa(int(x)) } - return nil + } type isPostResetOperation_Variant interface { @@ -2519,7 +5140,7 @@ func (*PostResetOperation_UpdateWorkflowOptions_) isPostResetOperation_Variant() // WorkflowExecutionPauseInfo contains the information about a workflow execution pause. type WorkflowExecutionPauseInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The identity of the client who paused the workflow execution. Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` // The time when the workflow execution was paused. @@ -2555,11 +5176,6 @@ func (x *WorkflowExecutionPauseInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use WorkflowExecutionPauseInfo.ProtoReflect.Descriptor instead. -func (*WorkflowExecutionPauseInfo) Descriptor() ([]byte, []int) { - return file_temporal_api_workflow_v1_message_proto_rawDescGZIP(), []int{20} -} - func (x *WorkflowExecutionPauseInfo) GetIdentity() string { if x != nil { return x.Identity @@ -2581,8 +5197,52 @@ func (x *WorkflowExecutionPauseInfo) GetReason() string { return "" } +func (x *WorkflowExecutionPauseInfo) SetIdentity(v string) { + x.Identity = v +} + +func (x *WorkflowExecutionPauseInfo) SetPausedTime(v *timestamppb.Timestamp) { + x.PausedTime = v +} + +func (x *WorkflowExecutionPauseInfo) SetReason(v string) { + x.Reason = v +} + +func (x *WorkflowExecutionPauseInfo) HasPausedTime() bool { + if x == nil { + return false + } + return x.PausedTime != nil +} + +func (x *WorkflowExecutionPauseInfo) ClearPausedTime() { + x.PausedTime = nil +} + +type WorkflowExecutionPauseInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The identity of the client who paused the workflow execution. + Identity string + // The time when the workflow execution was paused. + PausedTime *timestamppb.Timestamp + // The reason for pausing the workflow execution. + Reason string +} + +func (b0 WorkflowExecutionPauseInfo_builder) Build() *WorkflowExecutionPauseInfo { + m0 := &WorkflowExecutionPauseInfo{} + b, x := &b0, m0 + _, _ = b, x + x.Identity = b.Identity + x.PausedTime = b.PausedTime + x.Reason = b.Reason + return m0 +} + type PendingActivityInfo_PauseInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The time when the activity was paused. PauseTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=pause_time,json=pauseTime,proto3" json:"pause_time,omitempty"` // Types that are valid to be assigned to PausedBy: @@ -2619,11 +5279,6 @@ func (x *PendingActivityInfo_PauseInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PendingActivityInfo_PauseInfo.ProtoReflect.Descriptor instead. -func (*PendingActivityInfo_PauseInfo) Descriptor() ([]byte, []int) { - return file_temporal_api_workflow_v1_message_proto_rawDescGZIP(), []int{6, 0} -} - func (x *PendingActivityInfo_PauseInfo) GetPauseTime() *timestamppb.Timestamp { if x != nil { return x.PauseTime @@ -2656,6 +5311,137 @@ func (x *PendingActivityInfo_PauseInfo) GetRule() *PendingActivityInfo_PauseInfo return nil } +func (x *PendingActivityInfo_PauseInfo) SetPauseTime(v *timestamppb.Timestamp) { + x.PauseTime = v +} + +func (x *PendingActivityInfo_PauseInfo) SetManual(v *PendingActivityInfo_PauseInfo_Manual) { + if v == nil { + x.PausedBy = nil + return + } + x.PausedBy = &PendingActivityInfo_PauseInfo_Manual_{v} +} + +func (x *PendingActivityInfo_PauseInfo) SetRule(v *PendingActivityInfo_PauseInfo_Rule) { + if v == nil { + x.PausedBy = nil + return + } + x.PausedBy = &PendingActivityInfo_PauseInfo_Rule_{v} +} + +func (x *PendingActivityInfo_PauseInfo) HasPauseTime() bool { + if x == nil { + return false + } + return x.PauseTime != nil +} + +func (x *PendingActivityInfo_PauseInfo) HasPausedBy() bool { + if x == nil { + return false + } + return x.PausedBy != nil +} + +func (x *PendingActivityInfo_PauseInfo) HasManual() bool { + if x == nil { + return false + } + _, ok := x.PausedBy.(*PendingActivityInfo_PauseInfo_Manual_) + return ok +} + +func (x *PendingActivityInfo_PauseInfo) HasRule() bool { + if x == nil { + return false + } + _, ok := x.PausedBy.(*PendingActivityInfo_PauseInfo_Rule_) + return ok +} + +func (x *PendingActivityInfo_PauseInfo) ClearPauseTime() { + x.PauseTime = nil +} + +func (x *PendingActivityInfo_PauseInfo) ClearPausedBy() { + x.PausedBy = nil +} + +func (x *PendingActivityInfo_PauseInfo) ClearManual() { + if _, ok := x.PausedBy.(*PendingActivityInfo_PauseInfo_Manual_); ok { + x.PausedBy = nil + } +} + +func (x *PendingActivityInfo_PauseInfo) ClearRule() { + if _, ok := x.PausedBy.(*PendingActivityInfo_PauseInfo_Rule_); ok { + x.PausedBy = nil + } +} + +const PendingActivityInfo_PauseInfo_PausedBy_not_set_case case_PendingActivityInfo_PauseInfo_PausedBy = 0 +const PendingActivityInfo_PauseInfo_Manual_case case_PendingActivityInfo_PauseInfo_PausedBy = 2 +const PendingActivityInfo_PauseInfo_Rule_case case_PendingActivityInfo_PauseInfo_PausedBy = 4 + +func (x *PendingActivityInfo_PauseInfo) WhichPausedBy() case_PendingActivityInfo_PauseInfo_PausedBy { + if x == nil { + return PendingActivityInfo_PauseInfo_PausedBy_not_set_case + } + switch x.PausedBy.(type) { + case *PendingActivityInfo_PauseInfo_Manual_: + return PendingActivityInfo_PauseInfo_Manual_case + case *PendingActivityInfo_PauseInfo_Rule_: + return PendingActivityInfo_PauseInfo_Rule_case + default: + return PendingActivityInfo_PauseInfo_PausedBy_not_set_case + } +} + +type PendingActivityInfo_PauseInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The time when the activity was paused. + PauseTime *timestamppb.Timestamp + // Fields of oneof PausedBy: + // activity was paused by the manual intervention + Manual *PendingActivityInfo_PauseInfo_Manual + // activity was paused by the rule + Rule *PendingActivityInfo_PauseInfo_Rule + // -- end of PausedBy +} + +func (b0 PendingActivityInfo_PauseInfo_builder) Build() *PendingActivityInfo_PauseInfo { + m0 := &PendingActivityInfo_PauseInfo{} + b, x := &b0, m0 + _, _ = b, x + x.PauseTime = b.PauseTime + if b.Manual != nil { + x.PausedBy = &PendingActivityInfo_PauseInfo_Manual_{b.Manual} + } + if b.Rule != nil { + x.PausedBy = &PendingActivityInfo_PauseInfo_Rule_{b.Rule} + } + return m0 +} + +type case_PendingActivityInfo_PauseInfo_PausedBy protoreflect.FieldNumber + +func (x case_PendingActivityInfo_PauseInfo_PausedBy) String() string { + switch x { + case PendingActivityInfo_PauseInfo_PausedBy_not_set_case: + return "PendingActivityInfoPauseInfoPausedByNotSetCase" + case PendingActivityInfo_PauseInfo_Manual_case: + return "PendingActivityInfoPauseInfoManualCase" + case PendingActivityInfo_PauseInfo_Rule_case: + return "PendingActivityInfoPauseInfoRuleCase" + default: + return strconv.Itoa(int(x)) + } + +} + type isPendingActivityInfo_PauseInfo_PausedBy interface { isPendingActivityInfo_PauseInfo_PausedBy() } @@ -2675,7 +5461,7 @@ func (*PendingActivityInfo_PauseInfo_Manual_) isPendingActivityInfo_PauseInfo_Pa func (*PendingActivityInfo_PauseInfo_Rule_) isPendingActivityInfo_PauseInfo_PausedBy() {} type PendingActivityInfo_PauseInfo_Manual struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The identity of the actor that paused the activity. Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` // Reason for pausing the activity. @@ -2709,11 +5495,6 @@ func (x *PendingActivityInfo_PauseInfo_Manual) ProtoReflect() protoreflect.Messa return mi.MessageOf(x) } -// Deprecated: Use PendingActivityInfo_PauseInfo_Manual.ProtoReflect.Descriptor instead. -func (*PendingActivityInfo_PauseInfo_Manual) Descriptor() ([]byte, []int) { - return file_temporal_api_workflow_v1_message_proto_rawDescGZIP(), []int{6, 0, 0} -} - func (x *PendingActivityInfo_PauseInfo_Manual) GetIdentity() string { if x != nil { return x.Identity @@ -2728,8 +5509,34 @@ func (x *PendingActivityInfo_PauseInfo_Manual) GetReason() string { return "" } +func (x *PendingActivityInfo_PauseInfo_Manual) SetIdentity(v string) { + x.Identity = v +} + +func (x *PendingActivityInfo_PauseInfo_Manual) SetReason(v string) { + x.Reason = v +} + +type PendingActivityInfo_PauseInfo_Manual_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The identity of the actor that paused the activity. + Identity string + // Reason for pausing the activity. + Reason string +} + +func (b0 PendingActivityInfo_PauseInfo_Manual_builder) Build() *PendingActivityInfo_PauseInfo_Manual { + m0 := &PendingActivityInfo_PauseInfo_Manual{} + b, x := &b0, m0 + _, _ = b, x + x.Identity = b.Identity + x.Reason = b.Reason + return m0 +} + type PendingActivityInfo_PauseInfo_Rule struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The rule that paused the activity. RuleId string `protobuf:"bytes,1,opt,name=rule_id,json=ruleId,proto3" json:"rule_id,omitempty"` // The identity of the actor that created the rule. @@ -2765,11 +5572,6 @@ func (x *PendingActivityInfo_PauseInfo_Rule) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use PendingActivityInfo_PauseInfo_Rule.ProtoReflect.Descriptor instead. -func (*PendingActivityInfo_PauseInfo_Rule) Descriptor() ([]byte, []int) { - return file_temporal_api_workflow_v1_message_proto_rawDescGZIP(), []int{6, 0, 1} -} - func (x *PendingActivityInfo_PauseInfo_Rule) GetRuleId() string { if x != nil { return x.RuleId @@ -2791,9 +5593,42 @@ func (x *PendingActivityInfo_PauseInfo_Rule) GetReason() string { return "" } +func (x *PendingActivityInfo_PauseInfo_Rule) SetRuleId(v string) { + x.RuleId = v +} + +func (x *PendingActivityInfo_PauseInfo_Rule) SetIdentity(v string) { + x.Identity = v +} + +func (x *PendingActivityInfo_PauseInfo_Rule) SetReason(v string) { + x.Reason = v +} + +type PendingActivityInfo_PauseInfo_Rule_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The rule that paused the activity. + RuleId string + // The identity of the actor that created the rule. + Identity string + // Reason why rule was created. Populated from rule description. + Reason string +} + +func (b0 PendingActivityInfo_PauseInfo_Rule_builder) Build() *PendingActivityInfo_PauseInfo_Rule { + m0 := &PendingActivityInfo_PauseInfo_Rule{} + b, x := &b0, m0 + _, _ = b, x + x.RuleId = b.RuleId + x.Identity = b.Identity + x.Reason = b.Reason + return m0 +} + // Trigger for when the workflow is closed. type CallbackInfo_WorkflowClosed struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -2823,13 +5658,20 @@ func (x *CallbackInfo_WorkflowClosed) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CallbackInfo_WorkflowClosed.ProtoReflect.Descriptor instead. -func (*CallbackInfo_WorkflowClosed) Descriptor() ([]byte, []int) { - return file_temporal_api_workflow_v1_message_proto_rawDescGZIP(), []int{12, 0} +type CallbackInfo_WorkflowClosed_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 CallbackInfo_WorkflowClosed_builder) Build() *CallbackInfo_WorkflowClosed { + m0 := &CallbackInfo_WorkflowClosed{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type CallbackInfo_Trigger struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Types that are valid to be assigned to Variant: // // *CallbackInfo_Trigger_WorkflowClosed @@ -2863,11 +5705,6 @@ func (x *CallbackInfo_Trigger) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CallbackInfo_Trigger.ProtoReflect.Descriptor instead. -func (*CallbackInfo_Trigger) Descriptor() ([]byte, []int) { - return file_temporal_api_workflow_v1_message_proto_rawDescGZIP(), []int{12, 1} -} - func (x *CallbackInfo_Trigger) GetVariant() isCallbackInfo_Trigger_Variant { if x != nil { return x.Variant @@ -2884,6 +5721,86 @@ func (x *CallbackInfo_Trigger) GetWorkflowClosed() *CallbackInfo_WorkflowClosed return nil } +func (x *CallbackInfo_Trigger) SetWorkflowClosed(v *CallbackInfo_WorkflowClosed) { + if v == nil { + x.Variant = nil + return + } + x.Variant = &CallbackInfo_Trigger_WorkflowClosed{v} +} + +func (x *CallbackInfo_Trigger) HasVariant() bool { + if x == nil { + return false + } + return x.Variant != nil +} + +func (x *CallbackInfo_Trigger) HasWorkflowClosed() bool { + if x == nil { + return false + } + _, ok := x.Variant.(*CallbackInfo_Trigger_WorkflowClosed) + return ok +} + +func (x *CallbackInfo_Trigger) ClearVariant() { + x.Variant = nil +} + +func (x *CallbackInfo_Trigger) ClearWorkflowClosed() { + if _, ok := x.Variant.(*CallbackInfo_Trigger_WorkflowClosed); ok { + x.Variant = nil + } +} + +const CallbackInfo_Trigger_Variant_not_set_case case_CallbackInfo_Trigger_Variant = 0 +const CallbackInfo_Trigger_WorkflowClosed_case case_CallbackInfo_Trigger_Variant = 1 + +func (x *CallbackInfo_Trigger) WhichVariant() case_CallbackInfo_Trigger_Variant { + if x == nil { + return CallbackInfo_Trigger_Variant_not_set_case + } + switch x.Variant.(type) { + case *CallbackInfo_Trigger_WorkflowClosed: + return CallbackInfo_Trigger_WorkflowClosed_case + default: + return CallbackInfo_Trigger_Variant_not_set_case + } +} + +type CallbackInfo_Trigger_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Fields of oneof Variant: + WorkflowClosed *CallbackInfo_WorkflowClosed + // -- end of Variant +} + +func (b0 CallbackInfo_Trigger_builder) Build() *CallbackInfo_Trigger { + m0 := &CallbackInfo_Trigger{} + b, x := &b0, m0 + _, _ = b, x + if b.WorkflowClosed != nil { + x.Variant = &CallbackInfo_Trigger_WorkflowClosed{b.WorkflowClosed} + } + return m0 +} + +type case_CallbackInfo_Trigger_Variant protoreflect.FieldNumber + +func (x case_CallbackInfo_Trigger_Variant) String() string { + switch x { + case CallbackInfo_Trigger_Variant_not_set_case: + return "CallbackInfoTriggerVariantNotSetCase" + case CallbackInfo_Trigger_WorkflowClosed_case: + return "CallbackInfoTriggerWorkflowClosedCase" + default: + return strconv.Itoa(int(x)) + } + +} + type isCallbackInfo_Trigger_Variant interface { isCallbackInfo_Trigger_Variant() } @@ -2895,7 +5812,7 @@ type CallbackInfo_Trigger_WorkflowClosed struct { func (*CallbackInfo_Trigger_WorkflowClosed) isCallbackInfo_Trigger_Variant() {} type VersioningOverride_PinnedOverride struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Defaults to PINNED_OVERRIDE_BEHAVIOR_UNSPECIFIED. // See `PinnedOverrideBehavior` for details. Behavior VersioningOverride_PinnedOverrideBehavior `protobuf:"varint,1,opt,name=behavior,proto3,enum=temporal.api.workflow.v1.VersioningOverride_PinnedOverrideBehavior" json:"behavior,omitempty"` @@ -2937,11 +5854,6 @@ func (x *VersioningOverride_PinnedOverride) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use VersioningOverride_PinnedOverride.ProtoReflect.Descriptor instead. -func (*VersioningOverride_PinnedOverride) Descriptor() ([]byte, []int) { - return file_temporal_api_workflow_v1_message_proto_rawDescGZIP(), []int{16, 0} -} - func (x *VersioningOverride_PinnedOverride) GetBehavior() VersioningOverride_PinnedOverrideBehavior { if x != nil { return x.Behavior @@ -2956,10 +5868,55 @@ func (x *VersioningOverride_PinnedOverride) GetVersion() *v12.WorkerDeploymentVe return nil } +func (x *VersioningOverride_PinnedOverride) SetBehavior(v VersioningOverride_PinnedOverrideBehavior) { + x.Behavior = v +} + +func (x *VersioningOverride_PinnedOverride) SetVersion(v *v12.WorkerDeploymentVersion) { + x.Version = v +} + +func (x *VersioningOverride_PinnedOverride) HasVersion() bool { + if x == nil { + return false + } + return x.Version != nil +} + +func (x *VersioningOverride_PinnedOverride) ClearVersion() { + x.Version = nil +} + +type VersioningOverride_PinnedOverride_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Defaults to PINNED_OVERRIDE_BEHAVIOR_UNSPECIFIED. + // See `PinnedOverrideBehavior` for details. + Behavior VersioningOverride_PinnedOverrideBehavior + // Specifies the Worker Deployment Version to pin this workflow to. + // Required if the target workflow is not already pinned to a version. + // + // If omitted and the target workflow is already pinned, the effective + // pinned version will be the existing pinned version. + // + // If omitted and the target workflow is not pinned, the override request + // will be rejected with a PreconditionFailed error. + Version *v12.WorkerDeploymentVersion +} + +func (b0 VersioningOverride_PinnedOverride_builder) Build() *VersioningOverride_PinnedOverride { + m0 := &VersioningOverride_PinnedOverride{} + b, x := &b0, m0 + _, _ = b, x + x.Behavior = b.Behavior + x.Version = b.Version + return m0 +} + // SignalWorkflow represents sending a signal after a workflow reset. // Keep the parameter in sync with temporal.api.workflowservice.v1.SignalWorkflowExecutionRequest. type PostResetOperation_SignalWorkflow struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The workflow author-defined name of the signal to send to the workflow. SignalName string `protobuf:"bytes,1,opt,name=signal_name,json=signalName,proto3" json:"signal_name,omitempty"` // Serialized value(s) to provide with the signal. @@ -2997,11 +5954,6 @@ func (x *PostResetOperation_SignalWorkflow) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use PostResetOperation_SignalWorkflow.ProtoReflect.Descriptor instead. -func (*PostResetOperation_SignalWorkflow) Descriptor() ([]byte, []int) { - return file_temporal_api_workflow_v1_message_proto_rawDescGZIP(), []int{19, 0} -} - func (x *PostResetOperation_SignalWorkflow) GetSignalName() string { if x != nil { return x.SignalName @@ -3030,10 +5982,72 @@ func (x *PostResetOperation_SignalWorkflow) GetLinks() []*v1.Link { return nil } +func (x *PostResetOperation_SignalWorkflow) SetSignalName(v string) { + x.SignalName = v +} + +func (x *PostResetOperation_SignalWorkflow) SetInput(v *v1.Payloads) { + x.Input = v +} + +func (x *PostResetOperation_SignalWorkflow) SetHeader(v *v1.Header) { + x.Header = v +} + +func (x *PostResetOperation_SignalWorkflow) SetLinks(v []*v1.Link) { + x.Links = v +} + +func (x *PostResetOperation_SignalWorkflow) HasInput() bool { + if x == nil { + return false + } + return x.Input != nil +} + +func (x *PostResetOperation_SignalWorkflow) HasHeader() bool { + if x == nil { + return false + } + return x.Header != nil +} + +func (x *PostResetOperation_SignalWorkflow) ClearInput() { + x.Input = nil +} + +func (x *PostResetOperation_SignalWorkflow) ClearHeader() { + x.Header = nil +} + +type PostResetOperation_SignalWorkflow_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The workflow author-defined name of the signal to send to the workflow. + SignalName string + // Serialized value(s) to provide with the signal. + Input *v1.Payloads + // Headers that are passed with the signal to the processing workflow. + Header *v1.Header + // Links to be associated with the WorkflowExecutionSignaled event. + Links []*v1.Link +} + +func (b0 PostResetOperation_SignalWorkflow_builder) Build() *PostResetOperation_SignalWorkflow { + m0 := &PostResetOperation_SignalWorkflow{} + b, x := &b0, m0 + _, _ = b, x + x.SignalName = b.SignalName + x.Input = b.Input + x.Header = b.Header + x.Links = b.Links + return m0 +} + // UpdateWorkflowOptions represents updating workflow execution options after a workflow reset. // Keep the parameters in sync with temporal.api.workflowservice.v1.UpdateWorkflowExecutionOptionsRequest. type PostResetOperation_UpdateWorkflowOptions struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Update Workflow options that were originally specified via StartWorkflowExecution. Partial updates are accepted and controlled by update_mask. WorkflowExecutionOptions *WorkflowExecutionOptions `protobuf:"bytes,1,opt,name=workflow_execution_options,json=workflowExecutionOptions,proto3" json:"workflow_execution_options,omitempty"` // Controls which fields from `workflow_execution_options` will be applied. @@ -3068,11 +6082,6 @@ func (x *PostResetOperation_UpdateWorkflowOptions) ProtoReflect() protoreflect.M return mi.MessageOf(x) } -// Deprecated: Use PostResetOperation_UpdateWorkflowOptions.ProtoReflect.Descriptor instead. -func (*PostResetOperation_UpdateWorkflowOptions) Descriptor() ([]byte, []int) { - return file_temporal_api_workflow_v1_message_proto_rawDescGZIP(), []int{19, 1} -} - func (x *PostResetOperation_UpdateWorkflowOptions) GetWorkflowExecutionOptions() *WorkflowExecutionOptions { if x != nil { return x.WorkflowExecutionOptions @@ -3087,6 +6096,55 @@ func (x *PostResetOperation_UpdateWorkflowOptions) GetUpdateMask() *fieldmaskpb. return nil } +func (x *PostResetOperation_UpdateWorkflowOptions) SetWorkflowExecutionOptions(v *WorkflowExecutionOptions) { + x.WorkflowExecutionOptions = v +} + +func (x *PostResetOperation_UpdateWorkflowOptions) SetUpdateMask(v *fieldmaskpb.FieldMask) { + x.UpdateMask = v +} + +func (x *PostResetOperation_UpdateWorkflowOptions) HasWorkflowExecutionOptions() bool { + if x == nil { + return false + } + return x.WorkflowExecutionOptions != nil +} + +func (x *PostResetOperation_UpdateWorkflowOptions) HasUpdateMask() bool { + if x == nil { + return false + } + return x.UpdateMask != nil +} + +func (x *PostResetOperation_UpdateWorkflowOptions) ClearWorkflowExecutionOptions() { + x.WorkflowExecutionOptions = nil +} + +func (x *PostResetOperation_UpdateWorkflowOptions) ClearUpdateMask() { + x.UpdateMask = nil +} + +type PostResetOperation_UpdateWorkflowOptions_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Update Workflow options that were originally specified via StartWorkflowExecution. Partial updates are accepted and controlled by update_mask. + WorkflowExecutionOptions *WorkflowExecutionOptions + // Controls which fields from `workflow_execution_options` will be applied. + // To unset a field, set it to null and use the update mask to indicate that it should be mutated. + UpdateMask *fieldmaskpb.FieldMask +} + +func (b0 PostResetOperation_UpdateWorkflowOptions_builder) Build() *PostResetOperation_UpdateWorkflowOptions { + m0 := &PostResetOperation_UpdateWorkflowOptions{} + b, x := &b0, m0 + _, _ = b, x + x.WorkflowExecutionOptions = b.WorkflowExecutionOptions + x.UpdateMask = b.UpdateMask + return m0 +} + var File_temporal_api_workflow_v1_message_proto protoreflect.FileDescriptor const file_temporal_api_workflow_v1_message_proto_rawDesc = "" + @@ -3343,18 +6401,6 @@ const file_temporal_api_workflow_v1_message_proto_rawDesc = "" + "\x06reason\x18\x03 \x01(\tR\x06reasonB\x93\x01\n" + "\x1bio.temporal.api.workflow.v1B\fMessageProtoP\x01Z'go.temporal.io/api/workflow/v1;workflow\xaa\x02\x1aTemporalio.Api.Workflow.V1\xea\x02\x1dTemporalio::Api::Workflow::V1b\x06proto3" -var ( - file_temporal_api_workflow_v1_message_proto_rawDescOnce sync.Once - file_temporal_api_workflow_v1_message_proto_rawDescData []byte -) - -func file_temporal_api_workflow_v1_message_proto_rawDescGZIP() []byte { - file_temporal_api_workflow_v1_message_proto_rawDescOnce.Do(func() { - file_temporal_api_workflow_v1_message_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_api_workflow_v1_message_proto_rawDesc), len(file_temporal_api_workflow_v1_message_proto_rawDesc))) - }) - return file_temporal_api_workflow_v1_message_proto_rawDescData -} - var file_temporal_api_workflow_v1_message_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_temporal_api_workflow_v1_message_proto_msgTypes = make([]protoimpl.MessageInfo, 30) var file_temporal_api_workflow_v1_message_proto_goTypes = []any{ diff --git a/workflow/v1/message_protoopaque.pb.go b/workflow/v1/message_protoopaque.pb.go new file mode 100644 index 00000000..f61a49d3 --- /dev/null +++ b/workflow/v1/message_protoopaque.pb.go @@ -0,0 +1,6262 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// plugins: +// protoc-gen-go +// protoc +// source: temporal/api/workflow/v1/message.proto + +//go:build protoopaque + +package workflow + +import ( + reflect "reflect" + "strconv" + unsafe "unsafe" + + v16 "go.temporal.io/api/activity/v1" + v1 "go.temporal.io/api/common/v1" + v12 "go.temporal.io/api/deployment/v1" + v11 "go.temporal.io/api/enums/v1" + v15 "go.temporal.io/api/failure/v1" + v14 "go.temporal.io/api/sdk/v1" + v13 "go.temporal.io/api/taskqueue/v1" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + durationpb "google.golang.org/protobuf/types/known/durationpb" + emptypb "google.golang.org/protobuf/types/known/emptypb" + fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type VersioningOverride_PinnedOverrideBehavior int32 + +const ( + VersioningOverride_PINNED_OVERRIDE_BEHAVIOR_UNSPECIFIED VersioningOverride_PinnedOverrideBehavior = // Unspecified. + 0 + VersioningOverride_PINNED_OVERRIDE_BEHAVIOR_PINNED VersioningOverride_PinnedOverrideBehavior = // Override workflow behavior to be Pinned. + 1 +) + +// Enum value maps for VersioningOverride_PinnedOverrideBehavior. +var ( + VersioningOverride_PinnedOverrideBehavior_name = map[int32]string{ + 0: "PINNED_OVERRIDE_BEHAVIOR_UNSPECIFIED", + 1: "PINNED_OVERRIDE_BEHAVIOR_PINNED", + } + VersioningOverride_PinnedOverrideBehavior_value = map[string]int32{ + "PINNED_OVERRIDE_BEHAVIOR_UNSPECIFIED": 0, + "PINNED_OVERRIDE_BEHAVIOR_PINNED": 1, + } +) + +func (x VersioningOverride_PinnedOverrideBehavior) Enum() *VersioningOverride_PinnedOverrideBehavior { + p := new(VersioningOverride_PinnedOverrideBehavior) + *p = x + return p +} + +func (x VersioningOverride_PinnedOverrideBehavior) String() string { + switch x { + case VersioningOverride_PINNED_OVERRIDE_BEHAVIOR_UNSPECIFIED: + return "VersioningOverridePinnedOverrideBehaviorUnspecified" + case VersioningOverride_PINNED_OVERRIDE_BEHAVIOR_PINNED: + return "VersioningOverridePinnedOverrideBehaviorPinned" + default: + return strconv.Itoa(int(x)) + } + +} + +func (VersioningOverride_PinnedOverrideBehavior) Descriptor() protoreflect.EnumDescriptor { + return file_temporal_api_workflow_v1_message_proto_enumTypes[0].Descriptor() +} + +func (VersioningOverride_PinnedOverrideBehavior) Type() protoreflect.EnumType { + return &file_temporal_api_workflow_v1_message_proto_enumTypes[0] +} + +func (x VersioningOverride_PinnedOverrideBehavior) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Hold basic information about a workflow execution. +// This structure is a part of visibility, and thus contain a limited subset of information. +type WorkflowExecutionInfo struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Execution *v1.WorkflowExecution `protobuf:"bytes,1,opt,name=execution,proto3"` + xxx_hidden_Type *v1.WorkflowType `protobuf:"bytes,2,opt,name=type,proto3"` + xxx_hidden_StartTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=start_time,json=startTime,proto3"` + xxx_hidden_CloseTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=close_time,json=closeTime,proto3"` + xxx_hidden_Status v11.WorkflowExecutionStatus `protobuf:"varint,5,opt,name=status,proto3,enum=temporal.api.enums.v1.WorkflowExecutionStatus"` + xxx_hidden_HistoryLength int64 `protobuf:"varint,6,opt,name=history_length,json=historyLength,proto3"` + xxx_hidden_ParentNamespaceId string `protobuf:"bytes,7,opt,name=parent_namespace_id,json=parentNamespaceId,proto3"` + xxx_hidden_ParentExecution *v1.WorkflowExecution `protobuf:"bytes,8,opt,name=parent_execution,json=parentExecution,proto3"` + xxx_hidden_ExecutionTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=execution_time,json=executionTime,proto3"` + xxx_hidden_Memo *v1.Memo `protobuf:"bytes,10,opt,name=memo,proto3"` + xxx_hidden_SearchAttributes *v1.SearchAttributes `protobuf:"bytes,11,opt,name=search_attributes,json=searchAttributes,proto3"` + xxx_hidden_AutoResetPoints *ResetPoints `protobuf:"bytes,12,opt,name=auto_reset_points,json=autoResetPoints,proto3"` + xxx_hidden_TaskQueue string `protobuf:"bytes,13,opt,name=task_queue,json=taskQueue,proto3"` + xxx_hidden_StateTransitionCount int64 `protobuf:"varint,14,opt,name=state_transition_count,json=stateTransitionCount,proto3"` + xxx_hidden_HistorySizeBytes int64 `protobuf:"varint,15,opt,name=history_size_bytes,json=historySizeBytes,proto3"` + xxx_hidden_MostRecentWorkerVersionStamp *v1.WorkerVersionStamp `protobuf:"bytes,16,opt,name=most_recent_worker_version_stamp,json=mostRecentWorkerVersionStamp,proto3"` + xxx_hidden_ExecutionDuration *durationpb.Duration `protobuf:"bytes,17,opt,name=execution_duration,json=executionDuration,proto3"` + xxx_hidden_RootExecution *v1.WorkflowExecution `protobuf:"bytes,18,opt,name=root_execution,json=rootExecution,proto3"` + xxx_hidden_AssignedBuildId string `protobuf:"bytes,19,opt,name=assigned_build_id,json=assignedBuildId,proto3"` + xxx_hidden_InheritedBuildId string `protobuf:"bytes,20,opt,name=inherited_build_id,json=inheritedBuildId,proto3"` + xxx_hidden_FirstRunId string `protobuf:"bytes,21,opt,name=first_run_id,json=firstRunId,proto3"` + xxx_hidden_VersioningInfo *WorkflowExecutionVersioningInfo `protobuf:"bytes,22,opt,name=versioning_info,json=versioningInfo,proto3"` + xxx_hidden_WorkerDeploymentName string `protobuf:"bytes,23,opt,name=worker_deployment_name,json=workerDeploymentName,proto3"` + xxx_hidden_Priority *v1.Priority `protobuf:"bytes,24,opt,name=priority,proto3"` + xxx_hidden_ExternalPayloadSizeBytes int64 `protobuf:"varint,25,opt,name=external_payload_size_bytes,json=externalPayloadSizeBytes,proto3"` + xxx_hidden_ExternalPayloadCount int64 `protobuf:"varint,26,opt,name=external_payload_count,json=externalPayloadCount,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowExecutionInfo) Reset() { + *x = WorkflowExecutionInfo{} + mi := &file_temporal_api_workflow_v1_message_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkflowExecutionInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowExecutionInfo) ProtoMessage() {} + +func (x *WorkflowExecutionInfo) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflow_v1_message_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkflowExecutionInfo) GetExecution() *v1.WorkflowExecution { + if x != nil { + return x.xxx_hidden_Execution + } + return nil +} + +func (x *WorkflowExecutionInfo) GetType() *v1.WorkflowType { + if x != nil { + return x.xxx_hidden_Type + } + return nil +} + +func (x *WorkflowExecutionInfo) GetStartTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_StartTime + } + return nil +} + +func (x *WorkflowExecutionInfo) GetCloseTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_CloseTime + } + return nil +} + +func (x *WorkflowExecutionInfo) GetStatus() v11.WorkflowExecutionStatus { + if x != nil { + return x.xxx_hidden_Status + } + return v11.WorkflowExecutionStatus(0) +} + +func (x *WorkflowExecutionInfo) GetHistoryLength() int64 { + if x != nil { + return x.xxx_hidden_HistoryLength + } + return 0 +} + +func (x *WorkflowExecutionInfo) GetParentNamespaceId() string { + if x != nil { + return x.xxx_hidden_ParentNamespaceId + } + return "" +} + +func (x *WorkflowExecutionInfo) GetParentExecution() *v1.WorkflowExecution { + if x != nil { + return x.xxx_hidden_ParentExecution + } + return nil +} + +func (x *WorkflowExecutionInfo) GetExecutionTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_ExecutionTime + } + return nil +} + +func (x *WorkflowExecutionInfo) GetMemo() *v1.Memo { + if x != nil { + return x.xxx_hidden_Memo + } + return nil +} + +func (x *WorkflowExecutionInfo) GetSearchAttributes() *v1.SearchAttributes { + if x != nil { + return x.xxx_hidden_SearchAttributes + } + return nil +} + +func (x *WorkflowExecutionInfo) GetAutoResetPoints() *ResetPoints { + if x != nil { + return x.xxx_hidden_AutoResetPoints + } + return nil +} + +func (x *WorkflowExecutionInfo) GetTaskQueue() string { + if x != nil { + return x.xxx_hidden_TaskQueue + } + return "" +} + +func (x *WorkflowExecutionInfo) GetStateTransitionCount() int64 { + if x != nil { + return x.xxx_hidden_StateTransitionCount + } + return 0 +} + +func (x *WorkflowExecutionInfo) GetHistorySizeBytes() int64 { + if x != nil { + return x.xxx_hidden_HistorySizeBytes + } + return 0 +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *WorkflowExecutionInfo) GetMostRecentWorkerVersionStamp() *v1.WorkerVersionStamp { + if x != nil { + return x.xxx_hidden_MostRecentWorkerVersionStamp + } + return nil +} + +func (x *WorkflowExecutionInfo) GetExecutionDuration() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_ExecutionDuration + } + return nil +} + +func (x *WorkflowExecutionInfo) GetRootExecution() *v1.WorkflowExecution { + if x != nil { + return x.xxx_hidden_RootExecution + } + return nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *WorkflowExecutionInfo) GetAssignedBuildId() string { + if x != nil { + return x.xxx_hidden_AssignedBuildId + } + return "" +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *WorkflowExecutionInfo) GetInheritedBuildId() string { + if x != nil { + return x.xxx_hidden_InheritedBuildId + } + return "" +} + +func (x *WorkflowExecutionInfo) GetFirstRunId() string { + if x != nil { + return x.xxx_hidden_FirstRunId + } + return "" +} + +func (x *WorkflowExecutionInfo) GetVersioningInfo() *WorkflowExecutionVersioningInfo { + if x != nil { + return x.xxx_hidden_VersioningInfo + } + return nil +} + +func (x *WorkflowExecutionInfo) GetWorkerDeploymentName() string { + if x != nil { + return x.xxx_hidden_WorkerDeploymentName + } + return "" +} + +func (x *WorkflowExecutionInfo) GetPriority() *v1.Priority { + if x != nil { + return x.xxx_hidden_Priority + } + return nil +} + +func (x *WorkflowExecutionInfo) GetExternalPayloadSizeBytes() int64 { + if x != nil { + return x.xxx_hidden_ExternalPayloadSizeBytes + } + return 0 +} + +func (x *WorkflowExecutionInfo) GetExternalPayloadCount() int64 { + if x != nil { + return x.xxx_hidden_ExternalPayloadCount + } + return 0 +} + +func (x *WorkflowExecutionInfo) SetExecution(v *v1.WorkflowExecution) { + x.xxx_hidden_Execution = v +} + +func (x *WorkflowExecutionInfo) SetType(v *v1.WorkflowType) { + x.xxx_hidden_Type = v +} + +func (x *WorkflowExecutionInfo) SetStartTime(v *timestamppb.Timestamp) { + x.xxx_hidden_StartTime = v +} + +func (x *WorkflowExecutionInfo) SetCloseTime(v *timestamppb.Timestamp) { + x.xxx_hidden_CloseTime = v +} + +func (x *WorkflowExecutionInfo) SetStatus(v v11.WorkflowExecutionStatus) { + x.xxx_hidden_Status = v +} + +func (x *WorkflowExecutionInfo) SetHistoryLength(v int64) { + x.xxx_hidden_HistoryLength = v +} + +func (x *WorkflowExecutionInfo) SetParentNamespaceId(v string) { + x.xxx_hidden_ParentNamespaceId = v +} + +func (x *WorkflowExecutionInfo) SetParentExecution(v *v1.WorkflowExecution) { + x.xxx_hidden_ParentExecution = v +} + +func (x *WorkflowExecutionInfo) SetExecutionTime(v *timestamppb.Timestamp) { + x.xxx_hidden_ExecutionTime = v +} + +func (x *WorkflowExecutionInfo) SetMemo(v *v1.Memo) { + x.xxx_hidden_Memo = v +} + +func (x *WorkflowExecutionInfo) SetSearchAttributes(v *v1.SearchAttributes) { + x.xxx_hidden_SearchAttributes = v +} + +func (x *WorkflowExecutionInfo) SetAutoResetPoints(v *ResetPoints) { + x.xxx_hidden_AutoResetPoints = v +} + +func (x *WorkflowExecutionInfo) SetTaskQueue(v string) { + x.xxx_hidden_TaskQueue = v +} + +func (x *WorkflowExecutionInfo) SetStateTransitionCount(v int64) { + x.xxx_hidden_StateTransitionCount = v +} + +func (x *WorkflowExecutionInfo) SetHistorySizeBytes(v int64) { + x.xxx_hidden_HistorySizeBytes = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *WorkflowExecutionInfo) SetMostRecentWorkerVersionStamp(v *v1.WorkerVersionStamp) { + x.xxx_hidden_MostRecentWorkerVersionStamp = v +} + +func (x *WorkflowExecutionInfo) SetExecutionDuration(v *durationpb.Duration) { + x.xxx_hidden_ExecutionDuration = v +} + +func (x *WorkflowExecutionInfo) SetRootExecution(v *v1.WorkflowExecution) { + x.xxx_hidden_RootExecution = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *WorkflowExecutionInfo) SetAssignedBuildId(v string) { + x.xxx_hidden_AssignedBuildId = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *WorkflowExecutionInfo) SetInheritedBuildId(v string) { + x.xxx_hidden_InheritedBuildId = v +} + +func (x *WorkflowExecutionInfo) SetFirstRunId(v string) { + x.xxx_hidden_FirstRunId = v +} + +func (x *WorkflowExecutionInfo) SetVersioningInfo(v *WorkflowExecutionVersioningInfo) { + x.xxx_hidden_VersioningInfo = v +} + +func (x *WorkflowExecutionInfo) SetWorkerDeploymentName(v string) { + x.xxx_hidden_WorkerDeploymentName = v +} + +func (x *WorkflowExecutionInfo) SetPriority(v *v1.Priority) { + x.xxx_hidden_Priority = v +} + +func (x *WorkflowExecutionInfo) SetExternalPayloadSizeBytes(v int64) { + x.xxx_hidden_ExternalPayloadSizeBytes = v +} + +func (x *WorkflowExecutionInfo) SetExternalPayloadCount(v int64) { + x.xxx_hidden_ExternalPayloadCount = v +} + +func (x *WorkflowExecutionInfo) HasExecution() bool { + if x == nil { + return false + } + return x.xxx_hidden_Execution != nil +} + +func (x *WorkflowExecutionInfo) HasType() bool { + if x == nil { + return false + } + return x.xxx_hidden_Type != nil +} + +func (x *WorkflowExecutionInfo) HasStartTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_StartTime != nil +} + +func (x *WorkflowExecutionInfo) HasCloseTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_CloseTime != nil +} + +func (x *WorkflowExecutionInfo) HasParentExecution() bool { + if x == nil { + return false + } + return x.xxx_hidden_ParentExecution != nil +} + +func (x *WorkflowExecutionInfo) HasExecutionTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_ExecutionTime != nil +} + +func (x *WorkflowExecutionInfo) HasMemo() bool { + if x == nil { + return false + } + return x.xxx_hidden_Memo != nil +} + +func (x *WorkflowExecutionInfo) HasSearchAttributes() bool { + if x == nil { + return false + } + return x.xxx_hidden_SearchAttributes != nil +} + +func (x *WorkflowExecutionInfo) HasAutoResetPoints() bool { + if x == nil { + return false + } + return x.xxx_hidden_AutoResetPoints != nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *WorkflowExecutionInfo) HasMostRecentWorkerVersionStamp() bool { + if x == nil { + return false + } + return x.xxx_hidden_MostRecentWorkerVersionStamp != nil +} + +func (x *WorkflowExecutionInfo) HasExecutionDuration() bool { + if x == nil { + return false + } + return x.xxx_hidden_ExecutionDuration != nil +} + +func (x *WorkflowExecutionInfo) HasRootExecution() bool { + if x == nil { + return false + } + return x.xxx_hidden_RootExecution != nil +} + +func (x *WorkflowExecutionInfo) HasVersioningInfo() bool { + if x == nil { + return false + } + return x.xxx_hidden_VersioningInfo != nil +} + +func (x *WorkflowExecutionInfo) HasPriority() bool { + if x == nil { + return false + } + return x.xxx_hidden_Priority != nil +} + +func (x *WorkflowExecutionInfo) ClearExecution() { + x.xxx_hidden_Execution = nil +} + +func (x *WorkflowExecutionInfo) ClearType() { + x.xxx_hidden_Type = nil +} + +func (x *WorkflowExecutionInfo) ClearStartTime() { + x.xxx_hidden_StartTime = nil +} + +func (x *WorkflowExecutionInfo) ClearCloseTime() { + x.xxx_hidden_CloseTime = nil +} + +func (x *WorkflowExecutionInfo) ClearParentExecution() { + x.xxx_hidden_ParentExecution = nil +} + +func (x *WorkflowExecutionInfo) ClearExecutionTime() { + x.xxx_hidden_ExecutionTime = nil +} + +func (x *WorkflowExecutionInfo) ClearMemo() { + x.xxx_hidden_Memo = nil +} + +func (x *WorkflowExecutionInfo) ClearSearchAttributes() { + x.xxx_hidden_SearchAttributes = nil +} + +func (x *WorkflowExecutionInfo) ClearAutoResetPoints() { + x.xxx_hidden_AutoResetPoints = nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *WorkflowExecutionInfo) ClearMostRecentWorkerVersionStamp() { + x.xxx_hidden_MostRecentWorkerVersionStamp = nil +} + +func (x *WorkflowExecutionInfo) ClearExecutionDuration() { + x.xxx_hidden_ExecutionDuration = nil +} + +func (x *WorkflowExecutionInfo) ClearRootExecution() { + x.xxx_hidden_RootExecution = nil +} + +func (x *WorkflowExecutionInfo) ClearVersioningInfo() { + x.xxx_hidden_VersioningInfo = nil +} + +func (x *WorkflowExecutionInfo) ClearPriority() { + x.xxx_hidden_Priority = nil +} + +type WorkflowExecutionInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Execution *v1.WorkflowExecution + Type *v1.WorkflowType + StartTime *timestamppb.Timestamp + CloseTime *timestamppb.Timestamp + Status v11.WorkflowExecutionStatus + HistoryLength int64 + ParentNamespaceId string + ParentExecution *v1.WorkflowExecution + ExecutionTime *timestamppb.Timestamp + Memo *v1.Memo + SearchAttributes *v1.SearchAttributes + AutoResetPoints *ResetPoints + TaskQueue string + StateTransitionCount int64 + HistorySizeBytes int64 + // If set, the most recent worker version stamp that appeared in a workflow task completion + // Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] + // + // Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. + MostRecentWorkerVersionStamp *v1.WorkerVersionStamp + // Workflow execution duration is defined as difference between close time and execution time. + // This field is only populated if the workflow is closed. + ExecutionDuration *durationpb.Duration + // Contains information about the root workflow execution. + // The root workflow execution is defined as follows: + // 1. A workflow without parent workflow is its own root workflow. + // 2. A workflow that has a parent workflow has the same root workflow as its parent workflow. + // Note: workflows continued as new or reseted may or may not have parents, check examples below. + // + // Examples: + // + // Scenario 1: Workflow W1 starts child workflow W2, and W2 starts child workflow W3. + // - The root workflow of all three workflows is W1. + // Scenario 2: Workflow W1 starts child workflow W2, and W2 continued as new W3. + // - The root workflow of all three workflows is W1. + // Scenario 3: Workflow W1 continued as new W2. + // - The root workflow of W1 is W1 and the root workflow of W2 is W2. + // Scenario 4: Workflow W1 starts child workflow W2, and W2 is reseted, creating W3 + // - The root workflow of all three workflows is W1. + // Scenario 5: Workflow W1 is reseted, creating W2. + // - The root workflow of W1 is W1 and the root workflow of W2 is W2. + RootExecution *v1.WorkflowExecution + // The currently assigned build ID for this execution. Presence of this value means worker versioning is used + // for this execution. Assigned build ID is selected based on Worker Versioning Assignment Rules + // when the first workflow task of the execution is scheduled. If the first workflow task fails and is scheduled + // again, the assigned build ID may change according to the latest versioning rules. + // Assigned build ID can also change in the middle of a execution if Compatible Redirect Rules are applied to + // this execution. + // Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] + // + // Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. + AssignedBuildId string + // Build ID inherited from a previous/parent execution. If present, assigned_build_id will be set to this, instead + // of using the assignment rules. + // Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] + // + // Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. + InheritedBuildId string + // The first run ID in the execution chain. + // Executions created via the following operations are considered to be in the same chain + // - ContinueAsNew + // - Workflow Retry + // - Workflow Reset + // - Cron Schedule + FirstRunId string + // Absent value means the workflow execution is not versioned. When present, the execution might + // be versioned or unversioned, depending on `versioning_info.behavior` and `versioning_info.versioning_override`. + // Experimental. Versioning info is experimental and might change in the future. + VersioningInfo *WorkflowExecutionVersioningInfo + // The name of Worker Deployment that completed the most recent workflow task. + // Experimental. Worker Deployments are experimental and might change in the future. + WorkerDeploymentName string + // Priority metadata + Priority *v1.Priority + // Total size in bytes of all external payloads referenced in workflow history. + ExternalPayloadSizeBytes int64 + // Count of external payloads referenced in workflow history. + ExternalPayloadCount int64 +} + +func (b0 WorkflowExecutionInfo_builder) Build() *WorkflowExecutionInfo { + m0 := &WorkflowExecutionInfo{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Execution = b.Execution + x.xxx_hidden_Type = b.Type + x.xxx_hidden_StartTime = b.StartTime + x.xxx_hidden_CloseTime = b.CloseTime + x.xxx_hidden_Status = b.Status + x.xxx_hidden_HistoryLength = b.HistoryLength + x.xxx_hidden_ParentNamespaceId = b.ParentNamespaceId + x.xxx_hidden_ParentExecution = b.ParentExecution + x.xxx_hidden_ExecutionTime = b.ExecutionTime + x.xxx_hidden_Memo = b.Memo + x.xxx_hidden_SearchAttributes = b.SearchAttributes + x.xxx_hidden_AutoResetPoints = b.AutoResetPoints + x.xxx_hidden_TaskQueue = b.TaskQueue + x.xxx_hidden_StateTransitionCount = b.StateTransitionCount + x.xxx_hidden_HistorySizeBytes = b.HistorySizeBytes + x.xxx_hidden_MostRecentWorkerVersionStamp = b.MostRecentWorkerVersionStamp + x.xxx_hidden_ExecutionDuration = b.ExecutionDuration + x.xxx_hidden_RootExecution = b.RootExecution + x.xxx_hidden_AssignedBuildId = b.AssignedBuildId + x.xxx_hidden_InheritedBuildId = b.InheritedBuildId + x.xxx_hidden_FirstRunId = b.FirstRunId + x.xxx_hidden_VersioningInfo = b.VersioningInfo + x.xxx_hidden_WorkerDeploymentName = b.WorkerDeploymentName + x.xxx_hidden_Priority = b.Priority + x.xxx_hidden_ExternalPayloadSizeBytes = b.ExternalPayloadSizeBytes + x.xxx_hidden_ExternalPayloadCount = b.ExternalPayloadCount + return m0 +} + +// Holds all the extra information about workflow execution that is not part of Visibility. +type WorkflowExecutionExtendedInfo struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ExecutionExpirationTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=execution_expiration_time,json=executionExpirationTime,proto3"` + xxx_hidden_RunExpirationTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=run_expiration_time,json=runExpirationTime,proto3"` + xxx_hidden_CancelRequested bool `protobuf:"varint,3,opt,name=cancel_requested,json=cancelRequested,proto3"` + xxx_hidden_LastResetTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=last_reset_time,json=lastResetTime,proto3"` + xxx_hidden_OriginalStartTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=original_start_time,json=originalStartTime,proto3"` + xxx_hidden_ResetRunId string `protobuf:"bytes,6,opt,name=reset_run_id,json=resetRunId,proto3"` + xxx_hidden_RequestIdInfos map[string]*RequestIdInfo `protobuf:"bytes,7,rep,name=request_id_infos,json=requestIdInfos,proto3" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + xxx_hidden_PauseInfo *WorkflowExecutionPauseInfo `protobuf:"bytes,8,opt,name=pause_info,json=pauseInfo,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowExecutionExtendedInfo) Reset() { + *x = WorkflowExecutionExtendedInfo{} + mi := &file_temporal_api_workflow_v1_message_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkflowExecutionExtendedInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowExecutionExtendedInfo) ProtoMessage() {} + +func (x *WorkflowExecutionExtendedInfo) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflow_v1_message_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkflowExecutionExtendedInfo) GetExecutionExpirationTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_ExecutionExpirationTime + } + return nil +} + +func (x *WorkflowExecutionExtendedInfo) GetRunExpirationTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_RunExpirationTime + } + return nil +} + +func (x *WorkflowExecutionExtendedInfo) GetCancelRequested() bool { + if x != nil { + return x.xxx_hidden_CancelRequested + } + return false +} + +func (x *WorkflowExecutionExtendedInfo) GetLastResetTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_LastResetTime + } + return nil +} + +func (x *WorkflowExecutionExtendedInfo) GetOriginalStartTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_OriginalStartTime + } + return nil +} + +func (x *WorkflowExecutionExtendedInfo) GetResetRunId() string { + if x != nil { + return x.xxx_hidden_ResetRunId + } + return "" +} + +func (x *WorkflowExecutionExtendedInfo) GetRequestIdInfos() map[string]*RequestIdInfo { + if x != nil { + return x.xxx_hidden_RequestIdInfos + } + return nil +} + +func (x *WorkflowExecutionExtendedInfo) GetPauseInfo() *WorkflowExecutionPauseInfo { + if x != nil { + return x.xxx_hidden_PauseInfo + } + return nil +} + +func (x *WorkflowExecutionExtendedInfo) SetExecutionExpirationTime(v *timestamppb.Timestamp) { + x.xxx_hidden_ExecutionExpirationTime = v +} + +func (x *WorkflowExecutionExtendedInfo) SetRunExpirationTime(v *timestamppb.Timestamp) { + x.xxx_hidden_RunExpirationTime = v +} + +func (x *WorkflowExecutionExtendedInfo) SetCancelRequested(v bool) { + x.xxx_hidden_CancelRequested = v +} + +func (x *WorkflowExecutionExtendedInfo) SetLastResetTime(v *timestamppb.Timestamp) { + x.xxx_hidden_LastResetTime = v +} + +func (x *WorkflowExecutionExtendedInfo) SetOriginalStartTime(v *timestamppb.Timestamp) { + x.xxx_hidden_OriginalStartTime = v +} + +func (x *WorkflowExecutionExtendedInfo) SetResetRunId(v string) { + x.xxx_hidden_ResetRunId = v +} + +func (x *WorkflowExecutionExtendedInfo) SetRequestIdInfos(v map[string]*RequestIdInfo) { + x.xxx_hidden_RequestIdInfos = v +} + +func (x *WorkflowExecutionExtendedInfo) SetPauseInfo(v *WorkflowExecutionPauseInfo) { + x.xxx_hidden_PauseInfo = v +} + +func (x *WorkflowExecutionExtendedInfo) HasExecutionExpirationTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_ExecutionExpirationTime != nil +} + +func (x *WorkflowExecutionExtendedInfo) HasRunExpirationTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_RunExpirationTime != nil +} + +func (x *WorkflowExecutionExtendedInfo) HasLastResetTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_LastResetTime != nil +} + +func (x *WorkflowExecutionExtendedInfo) HasOriginalStartTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_OriginalStartTime != nil +} + +func (x *WorkflowExecutionExtendedInfo) HasPauseInfo() bool { + if x == nil { + return false + } + return x.xxx_hidden_PauseInfo != nil +} + +func (x *WorkflowExecutionExtendedInfo) ClearExecutionExpirationTime() { + x.xxx_hidden_ExecutionExpirationTime = nil +} + +func (x *WorkflowExecutionExtendedInfo) ClearRunExpirationTime() { + x.xxx_hidden_RunExpirationTime = nil +} + +func (x *WorkflowExecutionExtendedInfo) ClearLastResetTime() { + x.xxx_hidden_LastResetTime = nil +} + +func (x *WorkflowExecutionExtendedInfo) ClearOriginalStartTime() { + x.xxx_hidden_OriginalStartTime = nil +} + +func (x *WorkflowExecutionExtendedInfo) ClearPauseInfo() { + x.xxx_hidden_PauseInfo = nil +} + +type WorkflowExecutionExtendedInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Workflow execution expiration time is defined as workflow start time plus expiration timeout. + // Workflow start time may change after workflow reset. + ExecutionExpirationTime *timestamppb.Timestamp + // Workflow run expiration time is defined as current workflow run start time plus workflow run timeout. + RunExpirationTime *timestamppb.Timestamp + // indicates if the workflow received a cancel request + CancelRequested bool + // Last workflow reset time. Nil if the workflow was never reset. + LastResetTime *timestamppb.Timestamp + // Original workflow start time. + OriginalStartTime *timestamppb.Timestamp + // Reset Run ID points to the new run when this execution is reset. If the execution is reset multiple times, it points to the latest run. + ResetRunId string + // Request ID information (eg: history event information associated with the request ID). + // Note: It only contains request IDs from StartWorkflowExecution requests, including indirect + // calls (eg: if SignalWithStartWorkflowExecution starts a new workflow, then the request ID is + // used in the StartWorkflowExecution request). + RequestIdInfos map[string]*RequestIdInfo + // Information about the workflow execution pause operation. + PauseInfo *WorkflowExecutionPauseInfo +} + +func (b0 WorkflowExecutionExtendedInfo_builder) Build() *WorkflowExecutionExtendedInfo { + m0 := &WorkflowExecutionExtendedInfo{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ExecutionExpirationTime = b.ExecutionExpirationTime + x.xxx_hidden_RunExpirationTime = b.RunExpirationTime + x.xxx_hidden_CancelRequested = b.CancelRequested + x.xxx_hidden_LastResetTime = b.LastResetTime + x.xxx_hidden_OriginalStartTime = b.OriginalStartTime + x.xxx_hidden_ResetRunId = b.ResetRunId + x.xxx_hidden_RequestIdInfos = b.RequestIdInfos + x.xxx_hidden_PauseInfo = b.PauseInfo + return m0 +} + +// Holds all the information about worker versioning for a particular workflow execution. +// Experimental. Versioning info is experimental and might change in the future. +type WorkflowExecutionVersioningInfo struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Behavior v11.VersioningBehavior `protobuf:"varint,1,opt,name=behavior,proto3,enum=temporal.api.enums.v1.VersioningBehavior"` + xxx_hidden_Deployment *v12.Deployment `protobuf:"bytes,2,opt,name=deployment,proto3"` + xxx_hidden_Version string `protobuf:"bytes,5,opt,name=version,proto3"` + xxx_hidden_DeploymentVersion *v12.WorkerDeploymentVersion `protobuf:"bytes,7,opt,name=deployment_version,json=deploymentVersion,proto3"` + xxx_hidden_VersioningOverride *VersioningOverride `protobuf:"bytes,3,opt,name=versioning_override,json=versioningOverride,proto3"` + xxx_hidden_DeploymentTransition *DeploymentTransition `protobuf:"bytes,4,opt,name=deployment_transition,json=deploymentTransition,proto3"` + xxx_hidden_VersionTransition *DeploymentVersionTransition `protobuf:"bytes,6,opt,name=version_transition,json=versionTransition,proto3"` + xxx_hidden_RevisionNumber int64 `protobuf:"varint,8,opt,name=revision_number,json=revisionNumber,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowExecutionVersioningInfo) Reset() { + *x = WorkflowExecutionVersioningInfo{} + mi := &file_temporal_api_workflow_v1_message_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkflowExecutionVersioningInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowExecutionVersioningInfo) ProtoMessage() {} + +func (x *WorkflowExecutionVersioningInfo) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflow_v1_message_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkflowExecutionVersioningInfo) GetBehavior() v11.VersioningBehavior { + if x != nil { + return x.xxx_hidden_Behavior + } + return v11.VersioningBehavior(0) +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *WorkflowExecutionVersioningInfo) GetDeployment() *v12.Deployment { + if x != nil { + return x.xxx_hidden_Deployment + } + return nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *WorkflowExecutionVersioningInfo) GetVersion() string { + if x != nil { + return x.xxx_hidden_Version + } + return "" +} + +func (x *WorkflowExecutionVersioningInfo) GetDeploymentVersion() *v12.WorkerDeploymentVersion { + if x != nil { + return x.xxx_hidden_DeploymentVersion + } + return nil +} + +func (x *WorkflowExecutionVersioningInfo) GetVersioningOverride() *VersioningOverride { + if x != nil { + return x.xxx_hidden_VersioningOverride + } + return nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *WorkflowExecutionVersioningInfo) GetDeploymentTransition() *DeploymentTransition { + if x != nil { + return x.xxx_hidden_DeploymentTransition + } + return nil +} + +func (x *WorkflowExecutionVersioningInfo) GetVersionTransition() *DeploymentVersionTransition { + if x != nil { + return x.xxx_hidden_VersionTransition + } + return nil +} + +func (x *WorkflowExecutionVersioningInfo) GetRevisionNumber() int64 { + if x != nil { + return x.xxx_hidden_RevisionNumber + } + return 0 +} + +func (x *WorkflowExecutionVersioningInfo) SetBehavior(v v11.VersioningBehavior) { + x.xxx_hidden_Behavior = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *WorkflowExecutionVersioningInfo) SetDeployment(v *v12.Deployment) { + x.xxx_hidden_Deployment = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *WorkflowExecutionVersioningInfo) SetVersion(v string) { + x.xxx_hidden_Version = v +} + +func (x *WorkflowExecutionVersioningInfo) SetDeploymentVersion(v *v12.WorkerDeploymentVersion) { + x.xxx_hidden_DeploymentVersion = v +} + +func (x *WorkflowExecutionVersioningInfo) SetVersioningOverride(v *VersioningOverride) { + x.xxx_hidden_VersioningOverride = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *WorkflowExecutionVersioningInfo) SetDeploymentTransition(v *DeploymentTransition) { + x.xxx_hidden_DeploymentTransition = v +} + +func (x *WorkflowExecutionVersioningInfo) SetVersionTransition(v *DeploymentVersionTransition) { + x.xxx_hidden_VersionTransition = v +} + +func (x *WorkflowExecutionVersioningInfo) SetRevisionNumber(v int64) { + x.xxx_hidden_RevisionNumber = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *WorkflowExecutionVersioningInfo) HasDeployment() bool { + if x == nil { + return false + } + return x.xxx_hidden_Deployment != nil +} + +func (x *WorkflowExecutionVersioningInfo) HasDeploymentVersion() bool { + if x == nil { + return false + } + return x.xxx_hidden_DeploymentVersion != nil +} + +func (x *WorkflowExecutionVersioningInfo) HasVersioningOverride() bool { + if x == nil { + return false + } + return x.xxx_hidden_VersioningOverride != nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *WorkflowExecutionVersioningInfo) HasDeploymentTransition() bool { + if x == nil { + return false + } + return x.xxx_hidden_DeploymentTransition != nil +} + +func (x *WorkflowExecutionVersioningInfo) HasVersionTransition() bool { + if x == nil { + return false + } + return x.xxx_hidden_VersionTransition != nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *WorkflowExecutionVersioningInfo) ClearDeployment() { + x.xxx_hidden_Deployment = nil +} + +func (x *WorkflowExecutionVersioningInfo) ClearDeploymentVersion() { + x.xxx_hidden_DeploymentVersion = nil +} + +func (x *WorkflowExecutionVersioningInfo) ClearVersioningOverride() { + x.xxx_hidden_VersioningOverride = nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *WorkflowExecutionVersioningInfo) ClearDeploymentTransition() { + x.xxx_hidden_DeploymentTransition = nil +} + +func (x *WorkflowExecutionVersioningInfo) ClearVersionTransition() { + x.xxx_hidden_VersionTransition = nil +} + +type WorkflowExecutionVersioningInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Versioning behavior determines how the server should treat this execution when workers are + // upgraded. When present it means this workflow execution is versioned; UNSPECIFIED means + // unversioned. See the comments in `VersioningBehavior` enum for more info about different + // behaviors. + // + // Child workflows or CaN executions **inherit** their parent/previous run's effective Versioning + // Behavior and Version (except when the new execution runs on a task queue not belonging to the + // same deployment version as the parent/previous run's task queue). The first workflow task will + // be dispatched according to the inherited behavior (or to the current version of the task-queue's + // deployment in the case of AutoUpgrade.) After completion of their first workflow task the + // Deployment Version and Behavior of the execution will update according to configuration on the worker. + // + // Note that `behavior` is overridden by `versioning_override` if the latter is present. + Behavior v11.VersioningBehavior + // The worker deployment that completed the last workflow task of this workflow execution. Must + // be present if `behavior` is set. Absent value means no workflow task is completed, or the + // last workflow task was completed by an unversioned worker. Unversioned workers may still send + // a deployment value which will be stored here, so the right way to check if an execution is + // versioned if an execution is versioned or not is via the `behavior` field. + // Note that `deployment` is overridden by `versioning_override` if the latter is present. + // Deprecated. Use `deployment_version`. + // + // Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. + Deployment *v12.Deployment + // Deprecated. Use `deployment_version`. + // + // Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. + Version string + // The Worker Deployment Version that completed the last workflow task of this workflow execution. + // An absent value means no workflow task is completed, or the workflow is unversioned. + // If present, and `behavior` is UNSPECIFIED, the last task of this workflow execution was completed + // by a worker that is not using versioning but _is_ passing Deployment Name and Build ID. + // + // Child workflows or CaN executions **inherit** their parent/previous run's effective Versioning + // Behavior and Version (except when the new execution runs on a task queue not belonging to the + // same deployment version as the parent/previous run's task queue). The first workflow task will + // be dispatched according to the inherited behavior (or to the current version of the task-queue's + // deployment in the case of AutoUpgrade.) After completion of their first workflow task the + // Deployment Version and Behavior of the execution will update according to configuration on the worker. + // + // Note that if `versioning_override.behavior` is PINNED then `versioning_override.pinned_version` + // will override this value. + DeploymentVersion *v12.WorkerDeploymentVersion + // Present if user has set an execution-specific versioning override. This override takes + // precedence over SDK-sent `behavior` (and `version` when override is PINNED). An + // override can be set when starting a new execution, as well as afterwards by calling the + // `UpdateWorkflowExecutionOptions` API. + // Pinned overrides are automatically inherited by child workflows, continue-as-new workflows, + // workflow retries, and cron workflows. + VersioningOverride *VersioningOverride + // When present, indicates the workflow is transitioning to a different deployment. Can + // indicate one of the following transitions: unversioned -> versioned, versioned -> versioned + // on a different deployment, or versioned -> unversioned. + // Not applicable to workflows with PINNED behavior. + // When a workflow with AUTO_UPGRADE behavior creates a new workflow task, it will automatically + // start a transition to the task queue's current deployment if the task queue's current + // deployment is different from the workflow's deployment. + // If the AUTO_UPGRADE workflow is stuck due to backlogged activity or workflow tasks, those + // tasks will be redirected to the task queue's current deployment. As soon as a poller from + // that deployment is available to receive the task, the workflow will automatically start a + // transition to that deployment and continue execution there. + // A deployment transition can only exist while there is a pending or started workflow task. + // Once the pending workflow task completes on the transition's target deployment, the + // transition completes and the workflow's `deployment` and `behavior` fields are updated per + // the worker's task completion response. + // Pending activities will not start new attempts during a transition. Once the transition is + // completed, pending activities will start their next attempt on the new deployment. + // Deprecated. Use version_transition. + // + // Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. + DeploymentTransition *DeploymentTransition + // When present, indicates the workflow is transitioning to a different deployment version + // (which may belong to the same deployment name or another). Can indicate one of the following + // transitions: unversioned -> versioned, versioned -> versioned + // on a different deployment version, or versioned -> unversioned. + // Not applicable to workflows with PINNED behavior. + // When a workflow with AUTO_UPGRADE behavior creates a new workflow task, it will automatically + // start a transition to the task queue's current version if the task queue's current version is + // different from the workflow's current deployment version. + // If the AUTO_UPGRADE workflow is stuck due to backlogged activity or workflow tasks, those + // tasks will be redirected to the task queue's current version. As soon as a poller from + // that deployment version is available to receive the task, the workflow will automatically + // start a transition to that version and continue execution there. + // A version transition can only exist while there is a pending or started workflow task. + // Once the pending workflow task completes on the transition's target version, the + // transition completes and the workflow's `behavior`, and `deployment_version` fields are updated per the + // worker's task completion response. + // Pending activities will not start new attempts during a transition. Once the transition is + // completed, pending activities will start their next attempt on the new version. + VersionTransition *DeploymentVersionTransition + // Monotonic counter reflecting the latest routing decision for this workflow execution. + // Used for staleness detection between history and matching when dispatching tasks to workers. + // Incremented when a workflow execution routes to a new deployment version, which happens + // when a worker of the new deployment version completes a workflow task. + // Note: Pinned tasks and sticky tasks send a value of 0 for this field since these tasks do not + // face the problem of inconsistent dispatching that arises from eventual consistency between + // task queues and their partitions. + RevisionNumber int64 +} + +func (b0 WorkflowExecutionVersioningInfo_builder) Build() *WorkflowExecutionVersioningInfo { + m0 := &WorkflowExecutionVersioningInfo{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Behavior = b.Behavior + x.xxx_hidden_Deployment = b.Deployment + x.xxx_hidden_Version = b.Version + x.xxx_hidden_DeploymentVersion = b.DeploymentVersion + x.xxx_hidden_VersioningOverride = b.VersioningOverride + x.xxx_hidden_DeploymentTransition = b.DeploymentTransition + x.xxx_hidden_VersionTransition = b.VersionTransition + x.xxx_hidden_RevisionNumber = b.RevisionNumber + return m0 +} + +// Holds information about ongoing transition of a workflow execution from one deployment to another. +// Deprecated. Use DeploymentVersionTransition. +type DeploymentTransition struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Deployment *v12.Deployment `protobuf:"bytes,1,opt,name=deployment,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeploymentTransition) Reset() { + *x = DeploymentTransition{} + mi := &file_temporal_api_workflow_v1_message_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeploymentTransition) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeploymentTransition) ProtoMessage() {} + +func (x *DeploymentTransition) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflow_v1_message_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DeploymentTransition) GetDeployment() *v12.Deployment { + if x != nil { + return x.xxx_hidden_Deployment + } + return nil +} + +func (x *DeploymentTransition) SetDeployment(v *v12.Deployment) { + x.xxx_hidden_Deployment = v +} + +func (x *DeploymentTransition) HasDeployment() bool { + if x == nil { + return false + } + return x.xxx_hidden_Deployment != nil +} + +func (x *DeploymentTransition) ClearDeployment() { + x.xxx_hidden_Deployment = nil +} + +type DeploymentTransition_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The target deployment of the transition. Null means a so-far-versioned workflow is + // transitioning to unversioned workers. + Deployment *v12.Deployment +} + +func (b0 DeploymentTransition_builder) Build() *DeploymentTransition { + m0 := &DeploymentTransition{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Deployment = b.Deployment + return m0 +} + +// Holds information about ongoing transition of a workflow execution from one worker +// deployment version to another. +// Experimental. Might change in the future. +type DeploymentVersionTransition struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Version string `protobuf:"bytes,1,opt,name=version,proto3"` + xxx_hidden_DeploymentVersion *v12.WorkerDeploymentVersion `protobuf:"bytes,2,opt,name=deployment_version,json=deploymentVersion,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeploymentVersionTransition) Reset() { + *x = DeploymentVersionTransition{} + mi := &file_temporal_api_workflow_v1_message_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeploymentVersionTransition) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeploymentVersionTransition) ProtoMessage() {} + +func (x *DeploymentVersionTransition) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflow_v1_message_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *DeploymentVersionTransition) GetVersion() string { + if x != nil { + return x.xxx_hidden_Version + } + return "" +} + +func (x *DeploymentVersionTransition) GetDeploymentVersion() *v12.WorkerDeploymentVersion { + if x != nil { + return x.xxx_hidden_DeploymentVersion + } + return nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *DeploymentVersionTransition) SetVersion(v string) { + x.xxx_hidden_Version = v +} + +func (x *DeploymentVersionTransition) SetDeploymentVersion(v *v12.WorkerDeploymentVersion) { + x.xxx_hidden_DeploymentVersion = v +} + +func (x *DeploymentVersionTransition) HasDeploymentVersion() bool { + if x == nil { + return false + } + return x.xxx_hidden_DeploymentVersion != nil +} + +func (x *DeploymentVersionTransition) ClearDeploymentVersion() { + x.xxx_hidden_DeploymentVersion = nil +} + +type DeploymentVersionTransition_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Deprecated. Use `deployment_version`. + // + // Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. + Version string + // The target Version of the transition. + // If nil, a so-far-versioned workflow is transitioning to unversioned workers. + DeploymentVersion *v12.WorkerDeploymentVersion +} + +func (b0 DeploymentVersionTransition_builder) Build() *DeploymentVersionTransition { + m0 := &DeploymentVersionTransition{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Version = b.Version + x.xxx_hidden_DeploymentVersion = b.DeploymentVersion + return m0 +} + +type WorkflowExecutionConfig struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_TaskQueue *v13.TaskQueue `protobuf:"bytes,1,opt,name=task_queue,json=taskQueue,proto3"` + xxx_hidden_WorkflowExecutionTimeout *durationpb.Duration `protobuf:"bytes,2,opt,name=workflow_execution_timeout,json=workflowExecutionTimeout,proto3"` + xxx_hidden_WorkflowRunTimeout *durationpb.Duration `protobuf:"bytes,3,opt,name=workflow_run_timeout,json=workflowRunTimeout,proto3"` + xxx_hidden_DefaultWorkflowTaskTimeout *durationpb.Duration `protobuf:"bytes,4,opt,name=default_workflow_task_timeout,json=defaultWorkflowTaskTimeout,proto3"` + xxx_hidden_UserMetadata *v14.UserMetadata `protobuf:"bytes,5,opt,name=user_metadata,json=userMetadata,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowExecutionConfig) Reset() { + *x = WorkflowExecutionConfig{} + mi := &file_temporal_api_workflow_v1_message_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkflowExecutionConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowExecutionConfig) ProtoMessage() {} + +func (x *WorkflowExecutionConfig) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflow_v1_message_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkflowExecutionConfig) GetTaskQueue() *v13.TaskQueue { + if x != nil { + return x.xxx_hidden_TaskQueue + } + return nil +} + +func (x *WorkflowExecutionConfig) GetWorkflowExecutionTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_WorkflowExecutionTimeout + } + return nil +} + +func (x *WorkflowExecutionConfig) GetWorkflowRunTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_WorkflowRunTimeout + } + return nil +} + +func (x *WorkflowExecutionConfig) GetDefaultWorkflowTaskTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_DefaultWorkflowTaskTimeout + } + return nil +} + +func (x *WorkflowExecutionConfig) GetUserMetadata() *v14.UserMetadata { + if x != nil { + return x.xxx_hidden_UserMetadata + } + return nil +} + +func (x *WorkflowExecutionConfig) SetTaskQueue(v *v13.TaskQueue) { + x.xxx_hidden_TaskQueue = v +} + +func (x *WorkflowExecutionConfig) SetWorkflowExecutionTimeout(v *durationpb.Duration) { + x.xxx_hidden_WorkflowExecutionTimeout = v +} + +func (x *WorkflowExecutionConfig) SetWorkflowRunTimeout(v *durationpb.Duration) { + x.xxx_hidden_WorkflowRunTimeout = v +} + +func (x *WorkflowExecutionConfig) SetDefaultWorkflowTaskTimeout(v *durationpb.Duration) { + x.xxx_hidden_DefaultWorkflowTaskTimeout = v +} + +func (x *WorkflowExecutionConfig) SetUserMetadata(v *v14.UserMetadata) { + x.xxx_hidden_UserMetadata = v +} + +func (x *WorkflowExecutionConfig) HasTaskQueue() bool { + if x == nil { + return false + } + return x.xxx_hidden_TaskQueue != nil +} + +func (x *WorkflowExecutionConfig) HasWorkflowExecutionTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowExecutionTimeout != nil +} + +func (x *WorkflowExecutionConfig) HasWorkflowRunTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowRunTimeout != nil +} + +func (x *WorkflowExecutionConfig) HasDefaultWorkflowTaskTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_DefaultWorkflowTaskTimeout != nil +} + +func (x *WorkflowExecutionConfig) HasUserMetadata() bool { + if x == nil { + return false + } + return x.xxx_hidden_UserMetadata != nil +} + +func (x *WorkflowExecutionConfig) ClearTaskQueue() { + x.xxx_hidden_TaskQueue = nil +} + +func (x *WorkflowExecutionConfig) ClearWorkflowExecutionTimeout() { + x.xxx_hidden_WorkflowExecutionTimeout = nil +} + +func (x *WorkflowExecutionConfig) ClearWorkflowRunTimeout() { + x.xxx_hidden_WorkflowRunTimeout = nil +} + +func (x *WorkflowExecutionConfig) ClearDefaultWorkflowTaskTimeout() { + x.xxx_hidden_DefaultWorkflowTaskTimeout = nil +} + +func (x *WorkflowExecutionConfig) ClearUserMetadata() { + x.xxx_hidden_UserMetadata = nil +} + +type WorkflowExecutionConfig_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + TaskQueue *v13.TaskQueue + WorkflowExecutionTimeout *durationpb.Duration + WorkflowRunTimeout *durationpb.Duration + DefaultWorkflowTaskTimeout *durationpb.Duration + // User metadata provided on start workflow. + UserMetadata *v14.UserMetadata +} + +func (b0 WorkflowExecutionConfig_builder) Build() *WorkflowExecutionConfig { + m0 := &WorkflowExecutionConfig{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_TaskQueue = b.TaskQueue + x.xxx_hidden_WorkflowExecutionTimeout = b.WorkflowExecutionTimeout + x.xxx_hidden_WorkflowRunTimeout = b.WorkflowRunTimeout + x.xxx_hidden_DefaultWorkflowTaskTimeout = b.DefaultWorkflowTaskTimeout + x.xxx_hidden_UserMetadata = b.UserMetadata + return m0 +} + +type PendingActivityInfo struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ActivityId string `protobuf:"bytes,1,opt,name=activity_id,json=activityId,proto3"` + xxx_hidden_ActivityType *v1.ActivityType `protobuf:"bytes,2,opt,name=activity_type,json=activityType,proto3"` + xxx_hidden_State v11.PendingActivityState `protobuf:"varint,3,opt,name=state,proto3,enum=temporal.api.enums.v1.PendingActivityState"` + xxx_hidden_HeartbeatDetails *v1.Payloads `protobuf:"bytes,4,opt,name=heartbeat_details,json=heartbeatDetails,proto3"` + xxx_hidden_LastHeartbeatTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=last_heartbeat_time,json=lastHeartbeatTime,proto3"` + xxx_hidden_LastStartedTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=last_started_time,json=lastStartedTime,proto3"` + xxx_hidden_Attempt int32 `protobuf:"varint,7,opt,name=attempt,proto3"` + xxx_hidden_MaximumAttempts int32 `protobuf:"varint,8,opt,name=maximum_attempts,json=maximumAttempts,proto3"` + xxx_hidden_ScheduledTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=scheduled_time,json=scheduledTime,proto3"` + xxx_hidden_ExpirationTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=expiration_time,json=expirationTime,proto3"` + xxx_hidden_LastFailure *v15.Failure `protobuf:"bytes,11,opt,name=last_failure,json=lastFailure,proto3"` + xxx_hidden_LastWorkerIdentity string `protobuf:"bytes,12,opt,name=last_worker_identity,json=lastWorkerIdentity,proto3"` + xxx_hidden_AssignedBuildId isPendingActivityInfo_AssignedBuildId `protobuf_oneof:"assigned_build_id"` + xxx_hidden_LastWorkerVersionStamp *v1.WorkerVersionStamp `protobuf:"bytes,15,opt,name=last_worker_version_stamp,json=lastWorkerVersionStamp,proto3"` + xxx_hidden_CurrentRetryInterval *durationpb.Duration `protobuf:"bytes,16,opt,name=current_retry_interval,json=currentRetryInterval,proto3"` + xxx_hidden_LastAttemptCompleteTime *timestamppb.Timestamp `protobuf:"bytes,17,opt,name=last_attempt_complete_time,json=lastAttemptCompleteTime,proto3"` + xxx_hidden_NextAttemptScheduleTime *timestamppb.Timestamp `protobuf:"bytes,18,opt,name=next_attempt_schedule_time,json=nextAttemptScheduleTime,proto3"` + xxx_hidden_Paused bool `protobuf:"varint,19,opt,name=paused,proto3"` + xxx_hidden_LastDeployment *v12.Deployment `protobuf:"bytes,20,opt,name=last_deployment,json=lastDeployment,proto3"` + xxx_hidden_LastWorkerDeploymentVersion string `protobuf:"bytes,21,opt,name=last_worker_deployment_version,json=lastWorkerDeploymentVersion,proto3"` + xxx_hidden_LastDeploymentVersion *v12.WorkerDeploymentVersion `protobuf:"bytes,25,opt,name=last_deployment_version,json=lastDeploymentVersion,proto3"` + xxx_hidden_Priority *v1.Priority `protobuf:"bytes,22,opt,name=priority,proto3"` + xxx_hidden_PauseInfo *PendingActivityInfo_PauseInfo `protobuf:"bytes,23,opt,name=pause_info,json=pauseInfo,proto3"` + xxx_hidden_ActivityOptions *v16.ActivityOptions `protobuf:"bytes,24,opt,name=activity_options,json=activityOptions,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PendingActivityInfo) Reset() { + *x = PendingActivityInfo{} + mi := &file_temporal_api_workflow_v1_message_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PendingActivityInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PendingActivityInfo) ProtoMessage() {} + +func (x *PendingActivityInfo) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflow_v1_message_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PendingActivityInfo) GetActivityId() string { + if x != nil { + return x.xxx_hidden_ActivityId + } + return "" +} + +func (x *PendingActivityInfo) GetActivityType() *v1.ActivityType { + if x != nil { + return x.xxx_hidden_ActivityType + } + return nil +} + +func (x *PendingActivityInfo) GetState() v11.PendingActivityState { + if x != nil { + return x.xxx_hidden_State + } + return v11.PendingActivityState(0) +} + +func (x *PendingActivityInfo) GetHeartbeatDetails() *v1.Payloads { + if x != nil { + return x.xxx_hidden_HeartbeatDetails + } + return nil +} + +func (x *PendingActivityInfo) GetLastHeartbeatTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_LastHeartbeatTime + } + return nil +} + +func (x *PendingActivityInfo) GetLastStartedTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_LastStartedTime + } + return nil +} + +func (x *PendingActivityInfo) GetAttempt() int32 { + if x != nil { + return x.xxx_hidden_Attempt + } + return 0 +} + +func (x *PendingActivityInfo) GetMaximumAttempts() int32 { + if x != nil { + return x.xxx_hidden_MaximumAttempts + } + return 0 +} + +func (x *PendingActivityInfo) GetScheduledTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_ScheduledTime + } + return nil +} + +func (x *PendingActivityInfo) GetExpirationTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_ExpirationTime + } + return nil +} + +func (x *PendingActivityInfo) GetLastFailure() *v15.Failure { + if x != nil { + return x.xxx_hidden_LastFailure + } + return nil +} + +func (x *PendingActivityInfo) GetLastWorkerIdentity() string { + if x != nil { + return x.xxx_hidden_LastWorkerIdentity + } + return "" +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *PendingActivityInfo) GetUseWorkflowBuildId() *emptypb.Empty { + if x != nil { + if x, ok := x.xxx_hidden_AssignedBuildId.(*pendingActivityInfo_UseWorkflowBuildId); ok { + return x.UseWorkflowBuildId + } + } + return nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *PendingActivityInfo) GetLastIndependentlyAssignedBuildId() string { + if x != nil { + if x, ok := x.xxx_hidden_AssignedBuildId.(*pendingActivityInfo_LastIndependentlyAssignedBuildId); ok { + return x.LastIndependentlyAssignedBuildId + } + } + return "" +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *PendingActivityInfo) GetLastWorkerVersionStamp() *v1.WorkerVersionStamp { + if x != nil { + return x.xxx_hidden_LastWorkerVersionStamp + } + return nil +} + +func (x *PendingActivityInfo) GetCurrentRetryInterval() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_CurrentRetryInterval + } + return nil +} + +func (x *PendingActivityInfo) GetLastAttemptCompleteTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_LastAttemptCompleteTime + } + return nil +} + +func (x *PendingActivityInfo) GetNextAttemptScheduleTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_NextAttemptScheduleTime + } + return nil +} + +func (x *PendingActivityInfo) GetPaused() bool { + if x != nil { + return x.xxx_hidden_Paused + } + return false +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *PendingActivityInfo) GetLastDeployment() *v12.Deployment { + if x != nil { + return x.xxx_hidden_LastDeployment + } + return nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *PendingActivityInfo) GetLastWorkerDeploymentVersion() string { + if x != nil { + return x.xxx_hidden_LastWorkerDeploymentVersion + } + return "" +} + +func (x *PendingActivityInfo) GetLastDeploymentVersion() *v12.WorkerDeploymentVersion { + if x != nil { + return x.xxx_hidden_LastDeploymentVersion + } + return nil +} + +func (x *PendingActivityInfo) GetPriority() *v1.Priority { + if x != nil { + return x.xxx_hidden_Priority + } + return nil +} + +func (x *PendingActivityInfo) GetPauseInfo() *PendingActivityInfo_PauseInfo { + if x != nil { + return x.xxx_hidden_PauseInfo + } + return nil +} + +func (x *PendingActivityInfo) GetActivityOptions() *v16.ActivityOptions { + if x != nil { + return x.xxx_hidden_ActivityOptions + } + return nil +} + +func (x *PendingActivityInfo) SetActivityId(v string) { + x.xxx_hidden_ActivityId = v +} + +func (x *PendingActivityInfo) SetActivityType(v *v1.ActivityType) { + x.xxx_hidden_ActivityType = v +} + +func (x *PendingActivityInfo) SetState(v v11.PendingActivityState) { + x.xxx_hidden_State = v +} + +func (x *PendingActivityInfo) SetHeartbeatDetails(v *v1.Payloads) { + x.xxx_hidden_HeartbeatDetails = v +} + +func (x *PendingActivityInfo) SetLastHeartbeatTime(v *timestamppb.Timestamp) { + x.xxx_hidden_LastHeartbeatTime = v +} + +func (x *PendingActivityInfo) SetLastStartedTime(v *timestamppb.Timestamp) { + x.xxx_hidden_LastStartedTime = v +} + +func (x *PendingActivityInfo) SetAttempt(v int32) { + x.xxx_hidden_Attempt = v +} + +func (x *PendingActivityInfo) SetMaximumAttempts(v int32) { + x.xxx_hidden_MaximumAttempts = v +} + +func (x *PendingActivityInfo) SetScheduledTime(v *timestamppb.Timestamp) { + x.xxx_hidden_ScheduledTime = v +} + +func (x *PendingActivityInfo) SetExpirationTime(v *timestamppb.Timestamp) { + x.xxx_hidden_ExpirationTime = v +} + +func (x *PendingActivityInfo) SetLastFailure(v *v15.Failure) { + x.xxx_hidden_LastFailure = v +} + +func (x *PendingActivityInfo) SetLastWorkerIdentity(v string) { + x.xxx_hidden_LastWorkerIdentity = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *PendingActivityInfo) SetUseWorkflowBuildId(v *emptypb.Empty) { + if v == nil { + x.xxx_hidden_AssignedBuildId = nil + return + } + x.xxx_hidden_AssignedBuildId = &pendingActivityInfo_UseWorkflowBuildId{v} +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *PendingActivityInfo) SetLastIndependentlyAssignedBuildId(v string) { + x.xxx_hidden_AssignedBuildId = &pendingActivityInfo_LastIndependentlyAssignedBuildId{v} +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *PendingActivityInfo) SetLastWorkerVersionStamp(v *v1.WorkerVersionStamp) { + x.xxx_hidden_LastWorkerVersionStamp = v +} + +func (x *PendingActivityInfo) SetCurrentRetryInterval(v *durationpb.Duration) { + x.xxx_hidden_CurrentRetryInterval = v +} + +func (x *PendingActivityInfo) SetLastAttemptCompleteTime(v *timestamppb.Timestamp) { + x.xxx_hidden_LastAttemptCompleteTime = v +} + +func (x *PendingActivityInfo) SetNextAttemptScheduleTime(v *timestamppb.Timestamp) { + x.xxx_hidden_NextAttemptScheduleTime = v +} + +func (x *PendingActivityInfo) SetPaused(v bool) { + x.xxx_hidden_Paused = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *PendingActivityInfo) SetLastDeployment(v *v12.Deployment) { + x.xxx_hidden_LastDeployment = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *PendingActivityInfo) SetLastWorkerDeploymentVersion(v string) { + x.xxx_hidden_LastWorkerDeploymentVersion = v +} + +func (x *PendingActivityInfo) SetLastDeploymentVersion(v *v12.WorkerDeploymentVersion) { + x.xxx_hidden_LastDeploymentVersion = v +} + +func (x *PendingActivityInfo) SetPriority(v *v1.Priority) { + x.xxx_hidden_Priority = v +} + +func (x *PendingActivityInfo) SetPauseInfo(v *PendingActivityInfo_PauseInfo) { + x.xxx_hidden_PauseInfo = v +} + +func (x *PendingActivityInfo) SetActivityOptions(v *v16.ActivityOptions) { + x.xxx_hidden_ActivityOptions = v +} + +func (x *PendingActivityInfo) HasActivityType() bool { + if x == nil { + return false + } + return x.xxx_hidden_ActivityType != nil +} + +func (x *PendingActivityInfo) HasHeartbeatDetails() bool { + if x == nil { + return false + } + return x.xxx_hidden_HeartbeatDetails != nil +} + +func (x *PendingActivityInfo) HasLastHeartbeatTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_LastHeartbeatTime != nil +} + +func (x *PendingActivityInfo) HasLastStartedTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_LastStartedTime != nil +} + +func (x *PendingActivityInfo) HasScheduledTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_ScheduledTime != nil +} + +func (x *PendingActivityInfo) HasExpirationTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_ExpirationTime != nil +} + +func (x *PendingActivityInfo) HasLastFailure() bool { + if x == nil { + return false + } + return x.xxx_hidden_LastFailure != nil +} + +func (x *PendingActivityInfo) HasAssignedBuildId() bool { + if x == nil { + return false + } + return x.xxx_hidden_AssignedBuildId != nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *PendingActivityInfo) HasUseWorkflowBuildId() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_AssignedBuildId.(*pendingActivityInfo_UseWorkflowBuildId) + return ok +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *PendingActivityInfo) HasLastIndependentlyAssignedBuildId() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_AssignedBuildId.(*pendingActivityInfo_LastIndependentlyAssignedBuildId) + return ok +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *PendingActivityInfo) HasLastWorkerVersionStamp() bool { + if x == nil { + return false + } + return x.xxx_hidden_LastWorkerVersionStamp != nil +} + +func (x *PendingActivityInfo) HasCurrentRetryInterval() bool { + if x == nil { + return false + } + return x.xxx_hidden_CurrentRetryInterval != nil +} + +func (x *PendingActivityInfo) HasLastAttemptCompleteTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_LastAttemptCompleteTime != nil +} + +func (x *PendingActivityInfo) HasNextAttemptScheduleTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_NextAttemptScheduleTime != nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *PendingActivityInfo) HasLastDeployment() bool { + if x == nil { + return false + } + return x.xxx_hidden_LastDeployment != nil +} + +func (x *PendingActivityInfo) HasLastDeploymentVersion() bool { + if x == nil { + return false + } + return x.xxx_hidden_LastDeploymentVersion != nil +} + +func (x *PendingActivityInfo) HasPriority() bool { + if x == nil { + return false + } + return x.xxx_hidden_Priority != nil +} + +func (x *PendingActivityInfo) HasPauseInfo() bool { + if x == nil { + return false + } + return x.xxx_hidden_PauseInfo != nil +} + +func (x *PendingActivityInfo) HasActivityOptions() bool { + if x == nil { + return false + } + return x.xxx_hidden_ActivityOptions != nil +} + +func (x *PendingActivityInfo) ClearActivityType() { + x.xxx_hidden_ActivityType = nil +} + +func (x *PendingActivityInfo) ClearHeartbeatDetails() { + x.xxx_hidden_HeartbeatDetails = nil +} + +func (x *PendingActivityInfo) ClearLastHeartbeatTime() { + x.xxx_hidden_LastHeartbeatTime = nil +} + +func (x *PendingActivityInfo) ClearLastStartedTime() { + x.xxx_hidden_LastStartedTime = nil +} + +func (x *PendingActivityInfo) ClearScheduledTime() { + x.xxx_hidden_ScheduledTime = nil +} + +func (x *PendingActivityInfo) ClearExpirationTime() { + x.xxx_hidden_ExpirationTime = nil +} + +func (x *PendingActivityInfo) ClearLastFailure() { + x.xxx_hidden_LastFailure = nil +} + +func (x *PendingActivityInfo) ClearAssignedBuildId() { + x.xxx_hidden_AssignedBuildId = nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *PendingActivityInfo) ClearUseWorkflowBuildId() { + if _, ok := x.xxx_hidden_AssignedBuildId.(*pendingActivityInfo_UseWorkflowBuildId); ok { + x.xxx_hidden_AssignedBuildId = nil + } +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *PendingActivityInfo) ClearLastIndependentlyAssignedBuildId() { + if _, ok := x.xxx_hidden_AssignedBuildId.(*pendingActivityInfo_LastIndependentlyAssignedBuildId); ok { + x.xxx_hidden_AssignedBuildId = nil + } +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *PendingActivityInfo) ClearLastWorkerVersionStamp() { + x.xxx_hidden_LastWorkerVersionStamp = nil +} + +func (x *PendingActivityInfo) ClearCurrentRetryInterval() { + x.xxx_hidden_CurrentRetryInterval = nil +} + +func (x *PendingActivityInfo) ClearLastAttemptCompleteTime() { + x.xxx_hidden_LastAttemptCompleteTime = nil +} + +func (x *PendingActivityInfo) ClearNextAttemptScheduleTime() { + x.xxx_hidden_NextAttemptScheduleTime = nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *PendingActivityInfo) ClearLastDeployment() { + x.xxx_hidden_LastDeployment = nil +} + +func (x *PendingActivityInfo) ClearLastDeploymentVersion() { + x.xxx_hidden_LastDeploymentVersion = nil +} + +func (x *PendingActivityInfo) ClearPriority() { + x.xxx_hidden_Priority = nil +} + +func (x *PendingActivityInfo) ClearPauseInfo() { + x.xxx_hidden_PauseInfo = nil +} + +func (x *PendingActivityInfo) ClearActivityOptions() { + x.xxx_hidden_ActivityOptions = nil +} + +const PendingActivityInfo_AssignedBuildId_not_set_case case_PendingActivityInfo_AssignedBuildId = 0 +const PendingActivityInfo_UseWorkflowBuildId_case case_PendingActivityInfo_AssignedBuildId = 13 +const PendingActivityInfo_LastIndependentlyAssignedBuildId_case case_PendingActivityInfo_AssignedBuildId = 14 + +func (x *PendingActivityInfo) WhichAssignedBuildId() case_PendingActivityInfo_AssignedBuildId { + if x == nil { + return PendingActivityInfo_AssignedBuildId_not_set_case + } + switch x.xxx_hidden_AssignedBuildId.(type) { + case *pendingActivityInfo_UseWorkflowBuildId: + return PendingActivityInfo_UseWorkflowBuildId_case + case *pendingActivityInfo_LastIndependentlyAssignedBuildId: + return PendingActivityInfo_LastIndependentlyAssignedBuildId_case + default: + return PendingActivityInfo_AssignedBuildId_not_set_case + } +} + +type PendingActivityInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ActivityId string + ActivityType *v1.ActivityType + State v11.PendingActivityState + HeartbeatDetails *v1.Payloads + LastHeartbeatTime *timestamppb.Timestamp + LastStartedTime *timestamppb.Timestamp + Attempt int32 + MaximumAttempts int32 + ScheduledTime *timestamppb.Timestamp + ExpirationTime *timestamppb.Timestamp + LastFailure *v15.Failure + LastWorkerIdentity string + // Absence of `assigned_build_id` generally means this task is on an "unversioned" task queue. + // In rare cases, it can also mean that the task queue is versioned but we failed to write activity's + // independently-assigned build ID to the database. This case heals automatically once the task is dispatched. + // Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] + + // Fields of oneof xxx_hidden_AssignedBuildId: + // Deprecated. When present, it means this activity is assigned to the build ID of its workflow. + // + // Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. + UseWorkflowBuildId *emptypb.Empty + // Deprecated. This means the activity is independently versioned and not bound to the build ID of its workflow. + // The activity will use the build id in this field instead. + // If the task fails and is scheduled again, the assigned build ID may change according to the latest versioning + // rules. + // + // Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. + LastIndependentlyAssignedBuildId *string + // -- end of xxx_hidden_AssignedBuildId + // Deprecated. The version stamp of the worker to whom this activity was most recently dispatched + // This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] + // + // Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. + LastWorkerVersionStamp *v1.WorkerVersionStamp + // The time activity will wait until the next retry. + // If activity is currently running it will be next retry interval if activity failed. + // If activity is currently waiting it will be current retry interval. + // If there will be no retry it will be null. + CurrentRetryInterval *durationpb.Duration + // The time when the last activity attempt was completed. If activity has not been completed yet then it will be null. + LastAttemptCompleteTime *timestamppb.Timestamp + // Next time when activity will be scheduled. + // If activity is currently scheduled or started it will be null. + NextAttemptScheduleTime *timestamppb.Timestamp + // Indicates if activity is paused. + Paused bool + // The deployment this activity was dispatched to most recently. Present only if the activity + // was dispatched to a versioned worker. + // Deprecated. Use `last_deployment_version`. + // + // Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. + LastDeployment *v12.Deployment + // The Worker Deployment Version this activity was dispatched to most recently. + // Deprecated. Use `last_deployment_version`. + // + // Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. + LastWorkerDeploymentVersion string + // The Worker Deployment Version this activity was dispatched to most recently. + // If nil, the activity has not yet been dispatched or was last dispatched to an unversioned worker. + LastDeploymentVersion *v12.WorkerDeploymentVersion + // Priority metadata. If this message is not present, or any fields are not + // present, they inherit the values from the workflow. + Priority *v1.Priority + PauseInfo *PendingActivityInfo_PauseInfo + // Current activity options. May be different from the one used to start the activity. + ActivityOptions *v16.ActivityOptions +} + +func (b0 PendingActivityInfo_builder) Build() *PendingActivityInfo { + m0 := &PendingActivityInfo{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ActivityId = b.ActivityId + x.xxx_hidden_ActivityType = b.ActivityType + x.xxx_hidden_State = b.State + x.xxx_hidden_HeartbeatDetails = b.HeartbeatDetails + x.xxx_hidden_LastHeartbeatTime = b.LastHeartbeatTime + x.xxx_hidden_LastStartedTime = b.LastStartedTime + x.xxx_hidden_Attempt = b.Attempt + x.xxx_hidden_MaximumAttempts = b.MaximumAttempts + x.xxx_hidden_ScheduledTime = b.ScheduledTime + x.xxx_hidden_ExpirationTime = b.ExpirationTime + x.xxx_hidden_LastFailure = b.LastFailure + x.xxx_hidden_LastWorkerIdentity = b.LastWorkerIdentity + if b.UseWorkflowBuildId != nil { + x.xxx_hidden_AssignedBuildId = &pendingActivityInfo_UseWorkflowBuildId{b.UseWorkflowBuildId} + } + if b.LastIndependentlyAssignedBuildId != nil { + x.xxx_hidden_AssignedBuildId = &pendingActivityInfo_LastIndependentlyAssignedBuildId{*b.LastIndependentlyAssignedBuildId} + } + x.xxx_hidden_LastWorkerVersionStamp = b.LastWorkerVersionStamp + x.xxx_hidden_CurrentRetryInterval = b.CurrentRetryInterval + x.xxx_hidden_LastAttemptCompleteTime = b.LastAttemptCompleteTime + x.xxx_hidden_NextAttemptScheduleTime = b.NextAttemptScheduleTime + x.xxx_hidden_Paused = b.Paused + x.xxx_hidden_LastDeployment = b.LastDeployment + x.xxx_hidden_LastWorkerDeploymentVersion = b.LastWorkerDeploymentVersion + x.xxx_hidden_LastDeploymentVersion = b.LastDeploymentVersion + x.xxx_hidden_Priority = b.Priority + x.xxx_hidden_PauseInfo = b.PauseInfo + x.xxx_hidden_ActivityOptions = b.ActivityOptions + return m0 +} + +type case_PendingActivityInfo_AssignedBuildId protoreflect.FieldNumber + +func (x case_PendingActivityInfo_AssignedBuildId) String() string { + switch x { + case PendingActivityInfo_AssignedBuildId_not_set_case: + return "PendingActivityInfoAssignedBuildIdNotSetCase" + case PendingActivityInfo_UseWorkflowBuildId_case: + return "PendingActivityInfoUseWorkflowBuildIdCase" + case PendingActivityInfo_LastIndependentlyAssignedBuildId_case: + return "PendingActivityInfoLastIndependentlyAssignedBuildIdCase" + default: + + // Deprecated. When present, it means this activity is assigned to the build ID of its workflow. + // + // Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. + return strconv.Itoa(int(x)) + } + +} + +type isPendingActivityInfo_AssignedBuildId interface { + isPendingActivityInfo_AssignedBuildId() +} + +type pendingActivityInfo_UseWorkflowBuildId struct { + UseWorkflowBuildId *emptypb.Empty `protobuf:"bytes,13,opt,name=use_workflow_build_id,json=useWorkflowBuildId,proto3,oneof"` +} + +type pendingActivityInfo_LastIndependentlyAssignedBuildId struct { + // Deprecated. This means the activity is independently versioned and not bound to the build ID of its workflow. + // The activity will use the build id in this field instead. + // If the task fails and is scheduled again, the assigned build ID may change according to the latest versioning + // rules. + // + // Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. + LastIndependentlyAssignedBuildId string `protobuf:"bytes,14,opt,name=last_independently_assigned_build_id,json=lastIndependentlyAssignedBuildId,proto3,oneof"` +} + +func (*pendingActivityInfo_UseWorkflowBuildId) isPendingActivityInfo_AssignedBuildId() {} + +func (*pendingActivityInfo_LastIndependentlyAssignedBuildId) isPendingActivityInfo_AssignedBuildId() { +} + +type PendingChildExecutionInfo struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_WorkflowId string `protobuf:"bytes,1,opt,name=workflow_id,json=workflowId,proto3"` + xxx_hidden_RunId string `protobuf:"bytes,2,opt,name=run_id,json=runId,proto3"` + xxx_hidden_WorkflowTypeName string `protobuf:"bytes,3,opt,name=workflow_type_name,json=workflowTypeName,proto3"` + xxx_hidden_InitiatedId int64 `protobuf:"varint,4,opt,name=initiated_id,json=initiatedId,proto3"` + xxx_hidden_ParentClosePolicy v11.ParentClosePolicy `protobuf:"varint,5,opt,name=parent_close_policy,json=parentClosePolicy,proto3,enum=temporal.api.enums.v1.ParentClosePolicy"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PendingChildExecutionInfo) Reset() { + *x = PendingChildExecutionInfo{} + mi := &file_temporal_api_workflow_v1_message_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PendingChildExecutionInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PendingChildExecutionInfo) ProtoMessage() {} + +func (x *PendingChildExecutionInfo) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflow_v1_message_proto_msgTypes[7] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PendingChildExecutionInfo) GetWorkflowId() string { + if x != nil { + return x.xxx_hidden_WorkflowId + } + return "" +} + +func (x *PendingChildExecutionInfo) GetRunId() string { + if x != nil { + return x.xxx_hidden_RunId + } + return "" +} + +func (x *PendingChildExecutionInfo) GetWorkflowTypeName() string { + if x != nil { + return x.xxx_hidden_WorkflowTypeName + } + return "" +} + +func (x *PendingChildExecutionInfo) GetInitiatedId() int64 { + if x != nil { + return x.xxx_hidden_InitiatedId + } + return 0 +} + +func (x *PendingChildExecutionInfo) GetParentClosePolicy() v11.ParentClosePolicy { + if x != nil { + return x.xxx_hidden_ParentClosePolicy + } + return v11.ParentClosePolicy(0) +} + +func (x *PendingChildExecutionInfo) SetWorkflowId(v string) { + x.xxx_hidden_WorkflowId = v +} + +func (x *PendingChildExecutionInfo) SetRunId(v string) { + x.xxx_hidden_RunId = v +} + +func (x *PendingChildExecutionInfo) SetWorkflowTypeName(v string) { + x.xxx_hidden_WorkflowTypeName = v +} + +func (x *PendingChildExecutionInfo) SetInitiatedId(v int64) { + x.xxx_hidden_InitiatedId = v +} + +func (x *PendingChildExecutionInfo) SetParentClosePolicy(v v11.ParentClosePolicy) { + x.xxx_hidden_ParentClosePolicy = v +} + +type PendingChildExecutionInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + WorkflowId string + RunId string + WorkflowTypeName string + InitiatedId int64 + // Default: PARENT_CLOSE_POLICY_TERMINATE. + ParentClosePolicy v11.ParentClosePolicy +} + +func (b0 PendingChildExecutionInfo_builder) Build() *PendingChildExecutionInfo { + m0 := &PendingChildExecutionInfo{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_WorkflowId = b.WorkflowId + x.xxx_hidden_RunId = b.RunId + x.xxx_hidden_WorkflowTypeName = b.WorkflowTypeName + x.xxx_hidden_InitiatedId = b.InitiatedId + x.xxx_hidden_ParentClosePolicy = b.ParentClosePolicy + return m0 +} + +type PendingWorkflowTaskInfo struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_State v11.PendingWorkflowTaskState `protobuf:"varint,1,opt,name=state,proto3,enum=temporal.api.enums.v1.PendingWorkflowTaskState"` + xxx_hidden_ScheduledTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=scheduled_time,json=scheduledTime,proto3"` + xxx_hidden_OriginalScheduledTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=original_scheduled_time,json=originalScheduledTime,proto3"` + xxx_hidden_StartedTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=started_time,json=startedTime,proto3"` + xxx_hidden_Attempt int32 `protobuf:"varint,5,opt,name=attempt,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PendingWorkflowTaskInfo) Reset() { + *x = PendingWorkflowTaskInfo{} + mi := &file_temporal_api_workflow_v1_message_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PendingWorkflowTaskInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PendingWorkflowTaskInfo) ProtoMessage() {} + +func (x *PendingWorkflowTaskInfo) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflow_v1_message_proto_msgTypes[8] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PendingWorkflowTaskInfo) GetState() v11.PendingWorkflowTaskState { + if x != nil { + return x.xxx_hidden_State + } + return v11.PendingWorkflowTaskState(0) +} + +func (x *PendingWorkflowTaskInfo) GetScheduledTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_ScheduledTime + } + return nil +} + +func (x *PendingWorkflowTaskInfo) GetOriginalScheduledTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_OriginalScheduledTime + } + return nil +} + +func (x *PendingWorkflowTaskInfo) GetStartedTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_StartedTime + } + return nil +} + +func (x *PendingWorkflowTaskInfo) GetAttempt() int32 { + if x != nil { + return x.xxx_hidden_Attempt + } + return 0 +} + +func (x *PendingWorkflowTaskInfo) SetState(v v11.PendingWorkflowTaskState) { + x.xxx_hidden_State = v +} + +func (x *PendingWorkflowTaskInfo) SetScheduledTime(v *timestamppb.Timestamp) { + x.xxx_hidden_ScheduledTime = v +} + +func (x *PendingWorkflowTaskInfo) SetOriginalScheduledTime(v *timestamppb.Timestamp) { + x.xxx_hidden_OriginalScheduledTime = v +} + +func (x *PendingWorkflowTaskInfo) SetStartedTime(v *timestamppb.Timestamp) { + x.xxx_hidden_StartedTime = v +} + +func (x *PendingWorkflowTaskInfo) SetAttempt(v int32) { + x.xxx_hidden_Attempt = v +} + +func (x *PendingWorkflowTaskInfo) HasScheduledTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_ScheduledTime != nil +} + +func (x *PendingWorkflowTaskInfo) HasOriginalScheduledTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_OriginalScheduledTime != nil +} + +func (x *PendingWorkflowTaskInfo) HasStartedTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_StartedTime != nil +} + +func (x *PendingWorkflowTaskInfo) ClearScheduledTime() { + x.xxx_hidden_ScheduledTime = nil +} + +func (x *PendingWorkflowTaskInfo) ClearOriginalScheduledTime() { + x.xxx_hidden_OriginalScheduledTime = nil +} + +func (x *PendingWorkflowTaskInfo) ClearStartedTime() { + x.xxx_hidden_StartedTime = nil +} + +type PendingWorkflowTaskInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + State v11.PendingWorkflowTaskState + ScheduledTime *timestamppb.Timestamp + // original_scheduled_time is the scheduled time of the first workflow task during workflow task heartbeat. + // Heartbeat workflow task is done by RespondWorkflowTaskComplete with ForceCreateNewWorkflowTask == true and no command + // In this case, OriginalScheduledTime won't change. Then when current time - original_scheduled_time exceeds + // some threshold, the workflow task will be forced timeout. + OriginalScheduledTime *timestamppb.Timestamp + StartedTime *timestamppb.Timestamp + Attempt int32 +} + +func (b0 PendingWorkflowTaskInfo_builder) Build() *PendingWorkflowTaskInfo { + m0 := &PendingWorkflowTaskInfo{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_State = b.State + x.xxx_hidden_ScheduledTime = b.ScheduledTime + x.xxx_hidden_OriginalScheduledTime = b.OriginalScheduledTime + x.xxx_hidden_StartedTime = b.StartedTime + x.xxx_hidden_Attempt = b.Attempt + return m0 +} + +type ResetPoints struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Points *[]*ResetPointInfo `protobuf:"bytes,1,rep,name=points,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ResetPoints) Reset() { + *x = ResetPoints{} + mi := &file_temporal_api_workflow_v1_message_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ResetPoints) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResetPoints) ProtoMessage() {} + +func (x *ResetPoints) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflow_v1_message_proto_msgTypes[9] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ResetPoints) GetPoints() []*ResetPointInfo { + if x != nil { + if x.xxx_hidden_Points != nil { + return *x.xxx_hidden_Points + } + } + return nil +} + +func (x *ResetPoints) SetPoints(v []*ResetPointInfo) { + x.xxx_hidden_Points = &v +} + +type ResetPoints_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Points []*ResetPointInfo +} + +func (b0 ResetPoints_builder) Build() *ResetPoints { + m0 := &ResetPoints{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Points = &b.Points + return m0 +} + +// ResetPointInfo records the workflow event id that is the first one processed by a given +// build id or binary checksum. A new reset point will be created if either build id or binary +// checksum changes (although in general only one or the other will be used at a time). +type ResetPointInfo struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_BuildId string `protobuf:"bytes,7,opt,name=build_id,json=buildId,proto3"` + xxx_hidden_BinaryChecksum string `protobuf:"bytes,1,opt,name=binary_checksum,json=binaryChecksum,proto3"` + xxx_hidden_RunId string `protobuf:"bytes,2,opt,name=run_id,json=runId,proto3"` + xxx_hidden_FirstWorkflowTaskCompletedId int64 `protobuf:"varint,3,opt,name=first_workflow_task_completed_id,json=firstWorkflowTaskCompletedId,proto3"` + xxx_hidden_CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3"` + xxx_hidden_ExpireTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=expire_time,json=expireTime,proto3"` + xxx_hidden_Resettable bool `protobuf:"varint,6,opt,name=resettable,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ResetPointInfo) Reset() { + *x = ResetPointInfo{} + mi := &file_temporal_api_workflow_v1_message_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ResetPointInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResetPointInfo) ProtoMessage() {} + +func (x *ResetPointInfo) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflow_v1_message_proto_msgTypes[10] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ResetPointInfo) GetBuildId() string { + if x != nil { + return x.xxx_hidden_BuildId + } + return "" +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *ResetPointInfo) GetBinaryChecksum() string { + if x != nil { + return x.xxx_hidden_BinaryChecksum + } + return "" +} + +func (x *ResetPointInfo) GetRunId() string { + if x != nil { + return x.xxx_hidden_RunId + } + return "" +} + +func (x *ResetPointInfo) GetFirstWorkflowTaskCompletedId() int64 { + if x != nil { + return x.xxx_hidden_FirstWorkflowTaskCompletedId + } + return 0 +} + +func (x *ResetPointInfo) GetCreateTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_CreateTime + } + return nil +} + +func (x *ResetPointInfo) GetExpireTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_ExpireTime + } + return nil +} + +func (x *ResetPointInfo) GetResettable() bool { + if x != nil { + return x.xxx_hidden_Resettable + } + return false +} + +func (x *ResetPointInfo) SetBuildId(v string) { + x.xxx_hidden_BuildId = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *ResetPointInfo) SetBinaryChecksum(v string) { + x.xxx_hidden_BinaryChecksum = v +} + +func (x *ResetPointInfo) SetRunId(v string) { + x.xxx_hidden_RunId = v +} + +func (x *ResetPointInfo) SetFirstWorkflowTaskCompletedId(v int64) { + x.xxx_hidden_FirstWorkflowTaskCompletedId = v +} + +func (x *ResetPointInfo) SetCreateTime(v *timestamppb.Timestamp) { + x.xxx_hidden_CreateTime = v +} + +func (x *ResetPointInfo) SetExpireTime(v *timestamppb.Timestamp) { + x.xxx_hidden_ExpireTime = v +} + +func (x *ResetPointInfo) SetResettable(v bool) { + x.xxx_hidden_Resettable = v +} + +func (x *ResetPointInfo) HasCreateTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_CreateTime != nil +} + +func (x *ResetPointInfo) HasExpireTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_ExpireTime != nil +} + +func (x *ResetPointInfo) ClearCreateTime() { + x.xxx_hidden_CreateTime = nil +} + +func (x *ResetPointInfo) ClearExpireTime() { + x.xxx_hidden_ExpireTime = nil +} + +type ResetPointInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Worker build id. + BuildId string + // Deprecated. A worker binary version identifier. + // + // Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. + BinaryChecksum string + // The first run ID in the execution chain that was touched by this worker build. + RunId string + // Event ID of the first WorkflowTaskCompleted event processed by this worker build. + FirstWorkflowTaskCompletedId int64 + CreateTime *timestamppb.Timestamp + // (-- api-linter: core::0214::resource-expiry=disabled + // + // aip.dev/not-precedent: TTL is not defined for ResetPointInfo. --) + // + // The time that the run is deleted due to retention. + ExpireTime *timestamppb.Timestamp + // false if the reset point has pending childWFs/reqCancels/signalExternals. + Resettable bool +} + +func (b0 ResetPointInfo_builder) Build() *ResetPointInfo { + m0 := &ResetPointInfo{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_BuildId = b.BuildId + x.xxx_hidden_BinaryChecksum = b.BinaryChecksum + x.xxx_hidden_RunId = b.RunId + x.xxx_hidden_FirstWorkflowTaskCompletedId = b.FirstWorkflowTaskCompletedId + x.xxx_hidden_CreateTime = b.CreateTime + x.xxx_hidden_ExpireTime = b.ExpireTime + x.xxx_hidden_Resettable = b.Resettable + return m0 +} + +// NewWorkflowExecutionInfo is a shared message that encapsulates all the +// required arguments to starting a workflow in different contexts. +type NewWorkflowExecutionInfo struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_WorkflowId string `protobuf:"bytes,1,opt,name=workflow_id,json=workflowId,proto3"` + xxx_hidden_WorkflowType *v1.WorkflowType `protobuf:"bytes,2,opt,name=workflow_type,json=workflowType,proto3"` + xxx_hidden_TaskQueue *v13.TaskQueue `protobuf:"bytes,3,opt,name=task_queue,json=taskQueue,proto3"` + xxx_hidden_Input *v1.Payloads `protobuf:"bytes,4,opt,name=input,proto3"` + xxx_hidden_WorkflowExecutionTimeout *durationpb.Duration `protobuf:"bytes,5,opt,name=workflow_execution_timeout,json=workflowExecutionTimeout,proto3"` + xxx_hidden_WorkflowRunTimeout *durationpb.Duration `protobuf:"bytes,6,opt,name=workflow_run_timeout,json=workflowRunTimeout,proto3"` + xxx_hidden_WorkflowTaskTimeout *durationpb.Duration `protobuf:"bytes,7,opt,name=workflow_task_timeout,json=workflowTaskTimeout,proto3"` + xxx_hidden_WorkflowIdReusePolicy v11.WorkflowIdReusePolicy `protobuf:"varint,8,opt,name=workflow_id_reuse_policy,json=workflowIdReusePolicy,proto3,enum=temporal.api.enums.v1.WorkflowIdReusePolicy"` + xxx_hidden_RetryPolicy *v1.RetryPolicy `protobuf:"bytes,9,opt,name=retry_policy,json=retryPolicy,proto3"` + xxx_hidden_CronSchedule string `protobuf:"bytes,10,opt,name=cron_schedule,json=cronSchedule,proto3"` + xxx_hidden_Memo *v1.Memo `protobuf:"bytes,11,opt,name=memo,proto3"` + xxx_hidden_SearchAttributes *v1.SearchAttributes `protobuf:"bytes,12,opt,name=search_attributes,json=searchAttributes,proto3"` + xxx_hidden_Header *v1.Header `protobuf:"bytes,13,opt,name=header,proto3"` + xxx_hidden_UserMetadata *v14.UserMetadata `protobuf:"bytes,14,opt,name=user_metadata,json=userMetadata,proto3"` + xxx_hidden_VersioningOverride *VersioningOverride `protobuf:"bytes,15,opt,name=versioning_override,json=versioningOverride,proto3"` + xxx_hidden_Priority *v1.Priority `protobuf:"bytes,16,opt,name=priority,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *NewWorkflowExecutionInfo) Reset() { + *x = NewWorkflowExecutionInfo{} + mi := &file_temporal_api_workflow_v1_message_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *NewWorkflowExecutionInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NewWorkflowExecutionInfo) ProtoMessage() {} + +func (x *NewWorkflowExecutionInfo) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflow_v1_message_proto_msgTypes[11] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *NewWorkflowExecutionInfo) GetWorkflowId() string { + if x != nil { + return x.xxx_hidden_WorkflowId + } + return "" +} + +func (x *NewWorkflowExecutionInfo) GetWorkflowType() *v1.WorkflowType { + if x != nil { + return x.xxx_hidden_WorkflowType + } + return nil +} + +func (x *NewWorkflowExecutionInfo) GetTaskQueue() *v13.TaskQueue { + if x != nil { + return x.xxx_hidden_TaskQueue + } + return nil +} + +func (x *NewWorkflowExecutionInfo) GetInput() *v1.Payloads { + if x != nil { + return x.xxx_hidden_Input + } + return nil +} + +func (x *NewWorkflowExecutionInfo) GetWorkflowExecutionTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_WorkflowExecutionTimeout + } + return nil +} + +func (x *NewWorkflowExecutionInfo) GetWorkflowRunTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_WorkflowRunTimeout + } + return nil +} + +func (x *NewWorkflowExecutionInfo) GetWorkflowTaskTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_WorkflowTaskTimeout + } + return nil +} + +func (x *NewWorkflowExecutionInfo) GetWorkflowIdReusePolicy() v11.WorkflowIdReusePolicy { + if x != nil { + return x.xxx_hidden_WorkflowIdReusePolicy + } + return v11.WorkflowIdReusePolicy(0) +} + +func (x *NewWorkflowExecutionInfo) GetRetryPolicy() *v1.RetryPolicy { + if x != nil { + return x.xxx_hidden_RetryPolicy + } + return nil +} + +func (x *NewWorkflowExecutionInfo) GetCronSchedule() string { + if x != nil { + return x.xxx_hidden_CronSchedule + } + return "" +} + +func (x *NewWorkflowExecutionInfo) GetMemo() *v1.Memo { + if x != nil { + return x.xxx_hidden_Memo + } + return nil +} + +func (x *NewWorkflowExecutionInfo) GetSearchAttributes() *v1.SearchAttributes { + if x != nil { + return x.xxx_hidden_SearchAttributes + } + return nil +} + +func (x *NewWorkflowExecutionInfo) GetHeader() *v1.Header { + if x != nil { + return x.xxx_hidden_Header + } + return nil +} + +func (x *NewWorkflowExecutionInfo) GetUserMetadata() *v14.UserMetadata { + if x != nil { + return x.xxx_hidden_UserMetadata + } + return nil +} + +func (x *NewWorkflowExecutionInfo) GetVersioningOverride() *VersioningOverride { + if x != nil { + return x.xxx_hidden_VersioningOverride + } + return nil +} + +func (x *NewWorkflowExecutionInfo) GetPriority() *v1.Priority { + if x != nil { + return x.xxx_hidden_Priority + } + return nil +} + +func (x *NewWorkflowExecutionInfo) SetWorkflowId(v string) { + x.xxx_hidden_WorkflowId = v +} + +func (x *NewWorkflowExecutionInfo) SetWorkflowType(v *v1.WorkflowType) { + x.xxx_hidden_WorkflowType = v +} + +func (x *NewWorkflowExecutionInfo) SetTaskQueue(v *v13.TaskQueue) { + x.xxx_hidden_TaskQueue = v +} + +func (x *NewWorkflowExecutionInfo) SetInput(v *v1.Payloads) { + x.xxx_hidden_Input = v +} + +func (x *NewWorkflowExecutionInfo) SetWorkflowExecutionTimeout(v *durationpb.Duration) { + x.xxx_hidden_WorkflowExecutionTimeout = v +} + +func (x *NewWorkflowExecutionInfo) SetWorkflowRunTimeout(v *durationpb.Duration) { + x.xxx_hidden_WorkflowRunTimeout = v +} + +func (x *NewWorkflowExecutionInfo) SetWorkflowTaskTimeout(v *durationpb.Duration) { + x.xxx_hidden_WorkflowTaskTimeout = v +} + +func (x *NewWorkflowExecutionInfo) SetWorkflowIdReusePolicy(v v11.WorkflowIdReusePolicy) { + x.xxx_hidden_WorkflowIdReusePolicy = v +} + +func (x *NewWorkflowExecutionInfo) SetRetryPolicy(v *v1.RetryPolicy) { + x.xxx_hidden_RetryPolicy = v +} + +func (x *NewWorkflowExecutionInfo) SetCronSchedule(v string) { + x.xxx_hidden_CronSchedule = v +} + +func (x *NewWorkflowExecutionInfo) SetMemo(v *v1.Memo) { + x.xxx_hidden_Memo = v +} + +func (x *NewWorkflowExecutionInfo) SetSearchAttributes(v *v1.SearchAttributes) { + x.xxx_hidden_SearchAttributes = v +} + +func (x *NewWorkflowExecutionInfo) SetHeader(v *v1.Header) { + x.xxx_hidden_Header = v +} + +func (x *NewWorkflowExecutionInfo) SetUserMetadata(v *v14.UserMetadata) { + x.xxx_hidden_UserMetadata = v +} + +func (x *NewWorkflowExecutionInfo) SetVersioningOverride(v *VersioningOverride) { + x.xxx_hidden_VersioningOverride = v +} + +func (x *NewWorkflowExecutionInfo) SetPriority(v *v1.Priority) { + x.xxx_hidden_Priority = v +} + +func (x *NewWorkflowExecutionInfo) HasWorkflowType() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowType != nil +} + +func (x *NewWorkflowExecutionInfo) HasTaskQueue() bool { + if x == nil { + return false + } + return x.xxx_hidden_TaskQueue != nil +} + +func (x *NewWorkflowExecutionInfo) HasInput() bool { + if x == nil { + return false + } + return x.xxx_hidden_Input != nil +} + +func (x *NewWorkflowExecutionInfo) HasWorkflowExecutionTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowExecutionTimeout != nil +} + +func (x *NewWorkflowExecutionInfo) HasWorkflowRunTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowRunTimeout != nil +} + +func (x *NewWorkflowExecutionInfo) HasWorkflowTaskTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowTaskTimeout != nil +} + +func (x *NewWorkflowExecutionInfo) HasRetryPolicy() bool { + if x == nil { + return false + } + return x.xxx_hidden_RetryPolicy != nil +} + +func (x *NewWorkflowExecutionInfo) HasMemo() bool { + if x == nil { + return false + } + return x.xxx_hidden_Memo != nil +} + +func (x *NewWorkflowExecutionInfo) HasSearchAttributes() bool { + if x == nil { + return false + } + return x.xxx_hidden_SearchAttributes != nil +} + +func (x *NewWorkflowExecutionInfo) HasHeader() bool { + if x == nil { + return false + } + return x.xxx_hidden_Header != nil +} + +func (x *NewWorkflowExecutionInfo) HasUserMetadata() bool { + if x == nil { + return false + } + return x.xxx_hidden_UserMetadata != nil +} + +func (x *NewWorkflowExecutionInfo) HasVersioningOverride() bool { + if x == nil { + return false + } + return x.xxx_hidden_VersioningOverride != nil +} + +func (x *NewWorkflowExecutionInfo) HasPriority() bool { + if x == nil { + return false + } + return x.xxx_hidden_Priority != nil +} + +func (x *NewWorkflowExecutionInfo) ClearWorkflowType() { + x.xxx_hidden_WorkflowType = nil +} + +func (x *NewWorkflowExecutionInfo) ClearTaskQueue() { + x.xxx_hidden_TaskQueue = nil +} + +func (x *NewWorkflowExecutionInfo) ClearInput() { + x.xxx_hidden_Input = nil +} + +func (x *NewWorkflowExecutionInfo) ClearWorkflowExecutionTimeout() { + x.xxx_hidden_WorkflowExecutionTimeout = nil +} + +func (x *NewWorkflowExecutionInfo) ClearWorkflowRunTimeout() { + x.xxx_hidden_WorkflowRunTimeout = nil +} + +func (x *NewWorkflowExecutionInfo) ClearWorkflowTaskTimeout() { + x.xxx_hidden_WorkflowTaskTimeout = nil +} + +func (x *NewWorkflowExecutionInfo) ClearRetryPolicy() { + x.xxx_hidden_RetryPolicy = nil +} + +func (x *NewWorkflowExecutionInfo) ClearMemo() { + x.xxx_hidden_Memo = nil +} + +func (x *NewWorkflowExecutionInfo) ClearSearchAttributes() { + x.xxx_hidden_SearchAttributes = nil +} + +func (x *NewWorkflowExecutionInfo) ClearHeader() { + x.xxx_hidden_Header = nil +} + +func (x *NewWorkflowExecutionInfo) ClearUserMetadata() { + x.xxx_hidden_UserMetadata = nil +} + +func (x *NewWorkflowExecutionInfo) ClearVersioningOverride() { + x.xxx_hidden_VersioningOverride = nil +} + +func (x *NewWorkflowExecutionInfo) ClearPriority() { + x.xxx_hidden_Priority = nil +} + +type NewWorkflowExecutionInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + WorkflowId string + WorkflowType *v1.WorkflowType + TaskQueue *v13.TaskQueue + // Serialized arguments to the workflow. + Input *v1.Payloads + // Total workflow execution timeout including retries and continue as new. + WorkflowExecutionTimeout *durationpb.Duration + // Timeout of a single workflow run. + WorkflowRunTimeout *durationpb.Duration + // Timeout of a single workflow task. + WorkflowTaskTimeout *durationpb.Duration + // Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE. + WorkflowIdReusePolicy v11.WorkflowIdReusePolicy + // The retry policy for the workflow. Will never exceed `workflow_execution_timeout`. + RetryPolicy *v1.RetryPolicy + // See https://docs.temporal.io/docs/content/what-is-a-temporal-cron-job/ + CronSchedule string + Memo *v1.Memo + SearchAttributes *v1.SearchAttributes + Header *v1.Header + // Metadata on the workflow if it is started. This is carried over to the WorkflowExecutionConfig + // for use by user interfaces to display the fixed as-of-start summary and details of the + // workflow. + UserMetadata *v14.UserMetadata + // If set, takes precedence over the Versioning Behavior sent by the SDK on Workflow Task completion. + // To unset the override after the workflow is running, use UpdateWorkflowExecutionOptions. + VersioningOverride *VersioningOverride + // Priority metadata + Priority *v1.Priority +} + +func (b0 NewWorkflowExecutionInfo_builder) Build() *NewWorkflowExecutionInfo { + m0 := &NewWorkflowExecutionInfo{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_WorkflowId = b.WorkflowId + x.xxx_hidden_WorkflowType = b.WorkflowType + x.xxx_hidden_TaskQueue = b.TaskQueue + x.xxx_hidden_Input = b.Input + x.xxx_hidden_WorkflowExecutionTimeout = b.WorkflowExecutionTimeout + x.xxx_hidden_WorkflowRunTimeout = b.WorkflowRunTimeout + x.xxx_hidden_WorkflowTaskTimeout = b.WorkflowTaskTimeout + x.xxx_hidden_WorkflowIdReusePolicy = b.WorkflowIdReusePolicy + x.xxx_hidden_RetryPolicy = b.RetryPolicy + x.xxx_hidden_CronSchedule = b.CronSchedule + x.xxx_hidden_Memo = b.Memo + x.xxx_hidden_SearchAttributes = b.SearchAttributes + x.xxx_hidden_Header = b.Header + x.xxx_hidden_UserMetadata = b.UserMetadata + x.xxx_hidden_VersioningOverride = b.VersioningOverride + x.xxx_hidden_Priority = b.Priority + return m0 +} + +// CallbackInfo contains the state of an attached workflow callback. +type CallbackInfo struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Callback *v1.Callback `protobuf:"bytes,1,opt,name=callback,proto3"` + xxx_hidden_Trigger *CallbackInfo_Trigger `protobuf:"bytes,2,opt,name=trigger,proto3"` + xxx_hidden_RegistrationTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=registration_time,json=registrationTime,proto3"` + xxx_hidden_State v11.CallbackState `protobuf:"varint,4,opt,name=state,proto3,enum=temporal.api.enums.v1.CallbackState"` + xxx_hidden_Attempt int32 `protobuf:"varint,5,opt,name=attempt,proto3"` + xxx_hidden_LastAttemptCompleteTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=last_attempt_complete_time,json=lastAttemptCompleteTime,proto3"` + xxx_hidden_LastAttemptFailure *v15.Failure `protobuf:"bytes,7,opt,name=last_attempt_failure,json=lastAttemptFailure,proto3"` + xxx_hidden_NextAttemptScheduleTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=next_attempt_schedule_time,json=nextAttemptScheduleTime,proto3"` + xxx_hidden_BlockedReason string `protobuf:"bytes,9,opt,name=blocked_reason,json=blockedReason,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CallbackInfo) Reset() { + *x = CallbackInfo{} + mi := &file_temporal_api_workflow_v1_message_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CallbackInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CallbackInfo) ProtoMessage() {} + +func (x *CallbackInfo) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflow_v1_message_proto_msgTypes[12] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *CallbackInfo) GetCallback() *v1.Callback { + if x != nil { + return x.xxx_hidden_Callback + } + return nil +} + +func (x *CallbackInfo) GetTrigger() *CallbackInfo_Trigger { + if x != nil { + return x.xxx_hidden_Trigger + } + return nil +} + +func (x *CallbackInfo) GetRegistrationTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_RegistrationTime + } + return nil +} + +func (x *CallbackInfo) GetState() v11.CallbackState { + if x != nil { + return x.xxx_hidden_State + } + return v11.CallbackState(0) +} + +func (x *CallbackInfo) GetAttempt() int32 { + if x != nil { + return x.xxx_hidden_Attempt + } + return 0 +} + +func (x *CallbackInfo) GetLastAttemptCompleteTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_LastAttemptCompleteTime + } + return nil +} + +func (x *CallbackInfo) GetLastAttemptFailure() *v15.Failure { + if x != nil { + return x.xxx_hidden_LastAttemptFailure + } + return nil +} + +func (x *CallbackInfo) GetNextAttemptScheduleTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_NextAttemptScheduleTime + } + return nil +} + +func (x *CallbackInfo) GetBlockedReason() string { + if x != nil { + return x.xxx_hidden_BlockedReason + } + return "" +} + +func (x *CallbackInfo) SetCallback(v *v1.Callback) { + x.xxx_hidden_Callback = v +} + +func (x *CallbackInfo) SetTrigger(v *CallbackInfo_Trigger) { + x.xxx_hidden_Trigger = v +} + +func (x *CallbackInfo) SetRegistrationTime(v *timestamppb.Timestamp) { + x.xxx_hidden_RegistrationTime = v +} + +func (x *CallbackInfo) SetState(v v11.CallbackState) { + x.xxx_hidden_State = v +} + +func (x *CallbackInfo) SetAttempt(v int32) { + x.xxx_hidden_Attempt = v +} + +func (x *CallbackInfo) SetLastAttemptCompleteTime(v *timestamppb.Timestamp) { + x.xxx_hidden_LastAttemptCompleteTime = v +} + +func (x *CallbackInfo) SetLastAttemptFailure(v *v15.Failure) { + x.xxx_hidden_LastAttemptFailure = v +} + +func (x *CallbackInfo) SetNextAttemptScheduleTime(v *timestamppb.Timestamp) { + x.xxx_hidden_NextAttemptScheduleTime = v +} + +func (x *CallbackInfo) SetBlockedReason(v string) { + x.xxx_hidden_BlockedReason = v +} + +func (x *CallbackInfo) HasCallback() bool { + if x == nil { + return false + } + return x.xxx_hidden_Callback != nil +} + +func (x *CallbackInfo) HasTrigger() bool { + if x == nil { + return false + } + return x.xxx_hidden_Trigger != nil +} + +func (x *CallbackInfo) HasRegistrationTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_RegistrationTime != nil +} + +func (x *CallbackInfo) HasLastAttemptCompleteTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_LastAttemptCompleteTime != nil +} + +func (x *CallbackInfo) HasLastAttemptFailure() bool { + if x == nil { + return false + } + return x.xxx_hidden_LastAttemptFailure != nil +} + +func (x *CallbackInfo) HasNextAttemptScheduleTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_NextAttemptScheduleTime != nil +} + +func (x *CallbackInfo) ClearCallback() { + x.xxx_hidden_Callback = nil +} + +func (x *CallbackInfo) ClearTrigger() { + x.xxx_hidden_Trigger = nil +} + +func (x *CallbackInfo) ClearRegistrationTime() { + x.xxx_hidden_RegistrationTime = nil +} + +func (x *CallbackInfo) ClearLastAttemptCompleteTime() { + x.xxx_hidden_LastAttemptCompleteTime = nil +} + +func (x *CallbackInfo) ClearLastAttemptFailure() { + x.xxx_hidden_LastAttemptFailure = nil +} + +func (x *CallbackInfo) ClearNextAttemptScheduleTime() { + x.xxx_hidden_NextAttemptScheduleTime = nil +} + +type CallbackInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Information on how this callback should be invoked (e.g. its URL and type). + Callback *v1.Callback + // Trigger for this callback. + Trigger *CallbackInfo_Trigger + // The time when the callback was registered. + RegistrationTime *timestamppb.Timestamp + State v11.CallbackState + // The number of attempts made to deliver the callback. + // This number represents a minimum bound since the attempt is incremented after the callback request completes. + Attempt int32 + // The time when the last attempt completed. + LastAttemptCompleteTime *timestamppb.Timestamp + // The last attempt's failure, if any. + LastAttemptFailure *v15.Failure + // The time when the next attempt is scheduled. + NextAttemptScheduleTime *timestamppb.Timestamp + // If the state is BLOCKED, blocked reason provides additional information. + BlockedReason string +} + +func (b0 CallbackInfo_builder) Build() *CallbackInfo { + m0 := &CallbackInfo{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Callback = b.Callback + x.xxx_hidden_Trigger = b.Trigger + x.xxx_hidden_RegistrationTime = b.RegistrationTime + x.xxx_hidden_State = b.State + x.xxx_hidden_Attempt = b.Attempt + x.xxx_hidden_LastAttemptCompleteTime = b.LastAttemptCompleteTime + x.xxx_hidden_LastAttemptFailure = b.LastAttemptFailure + x.xxx_hidden_NextAttemptScheduleTime = b.NextAttemptScheduleTime + x.xxx_hidden_BlockedReason = b.BlockedReason + return m0 +} + +// PendingNexusOperationInfo contains the state of a pending Nexus operation. +type PendingNexusOperationInfo struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3"` + xxx_hidden_Service string `protobuf:"bytes,2,opt,name=service,proto3"` + xxx_hidden_Operation string `protobuf:"bytes,3,opt,name=operation,proto3"` + xxx_hidden_OperationId string `protobuf:"bytes,4,opt,name=operation_id,json=operationId,proto3"` + xxx_hidden_ScheduleToCloseTimeout *durationpb.Duration `protobuf:"bytes,5,opt,name=schedule_to_close_timeout,json=scheduleToCloseTimeout,proto3"` + xxx_hidden_ScheduledTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=scheduled_time,json=scheduledTime,proto3"` + xxx_hidden_State v11.PendingNexusOperationState `protobuf:"varint,7,opt,name=state,proto3,enum=temporal.api.enums.v1.PendingNexusOperationState"` + xxx_hidden_Attempt int32 `protobuf:"varint,8,opt,name=attempt,proto3"` + xxx_hidden_LastAttemptCompleteTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=last_attempt_complete_time,json=lastAttemptCompleteTime,proto3"` + xxx_hidden_LastAttemptFailure *v15.Failure `protobuf:"bytes,10,opt,name=last_attempt_failure,json=lastAttemptFailure,proto3"` + xxx_hidden_NextAttemptScheduleTime *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=next_attempt_schedule_time,json=nextAttemptScheduleTime,proto3"` + xxx_hidden_CancellationInfo *NexusOperationCancellationInfo `protobuf:"bytes,12,opt,name=cancellation_info,json=cancellationInfo,proto3"` + xxx_hidden_ScheduledEventId int64 `protobuf:"varint,13,opt,name=scheduled_event_id,json=scheduledEventId,proto3"` + xxx_hidden_BlockedReason string `protobuf:"bytes,14,opt,name=blocked_reason,json=blockedReason,proto3"` + xxx_hidden_OperationToken string `protobuf:"bytes,15,opt,name=operation_token,json=operationToken,proto3"` + xxx_hidden_ScheduleToStartTimeout *durationpb.Duration `protobuf:"bytes,16,opt,name=schedule_to_start_timeout,json=scheduleToStartTimeout,proto3"` + xxx_hidden_StartToCloseTimeout *durationpb.Duration `protobuf:"bytes,17,opt,name=start_to_close_timeout,json=startToCloseTimeout,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PendingNexusOperationInfo) Reset() { + *x = PendingNexusOperationInfo{} + mi := &file_temporal_api_workflow_v1_message_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PendingNexusOperationInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PendingNexusOperationInfo) ProtoMessage() {} + +func (x *PendingNexusOperationInfo) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflow_v1_message_proto_msgTypes[13] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PendingNexusOperationInfo) GetEndpoint() string { + if x != nil { + return x.xxx_hidden_Endpoint + } + return "" +} + +func (x *PendingNexusOperationInfo) GetService() string { + if x != nil { + return x.xxx_hidden_Service + } + return "" +} + +func (x *PendingNexusOperationInfo) GetOperation() string { + if x != nil { + return x.xxx_hidden_Operation + } + return "" +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *PendingNexusOperationInfo) GetOperationId() string { + if x != nil { + return x.xxx_hidden_OperationId + } + return "" +} + +func (x *PendingNexusOperationInfo) GetScheduleToCloseTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_ScheduleToCloseTimeout + } + return nil +} + +func (x *PendingNexusOperationInfo) GetScheduledTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_ScheduledTime + } + return nil +} + +func (x *PendingNexusOperationInfo) GetState() v11.PendingNexusOperationState { + if x != nil { + return x.xxx_hidden_State + } + return v11.PendingNexusOperationState(0) +} + +func (x *PendingNexusOperationInfo) GetAttempt() int32 { + if x != nil { + return x.xxx_hidden_Attempt + } + return 0 +} + +func (x *PendingNexusOperationInfo) GetLastAttemptCompleteTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_LastAttemptCompleteTime + } + return nil +} + +func (x *PendingNexusOperationInfo) GetLastAttemptFailure() *v15.Failure { + if x != nil { + return x.xxx_hidden_LastAttemptFailure + } + return nil +} + +func (x *PendingNexusOperationInfo) GetNextAttemptScheduleTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_NextAttemptScheduleTime + } + return nil +} + +func (x *PendingNexusOperationInfo) GetCancellationInfo() *NexusOperationCancellationInfo { + if x != nil { + return x.xxx_hidden_CancellationInfo + } + return nil +} + +func (x *PendingNexusOperationInfo) GetScheduledEventId() int64 { + if x != nil { + return x.xxx_hidden_ScheduledEventId + } + return 0 +} + +func (x *PendingNexusOperationInfo) GetBlockedReason() string { + if x != nil { + return x.xxx_hidden_BlockedReason + } + return "" +} + +func (x *PendingNexusOperationInfo) GetOperationToken() string { + if x != nil { + return x.xxx_hidden_OperationToken + } + return "" +} + +func (x *PendingNexusOperationInfo) GetScheduleToStartTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_ScheduleToStartTimeout + } + return nil +} + +func (x *PendingNexusOperationInfo) GetStartToCloseTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_StartToCloseTimeout + } + return nil +} + +func (x *PendingNexusOperationInfo) SetEndpoint(v string) { + x.xxx_hidden_Endpoint = v +} + +func (x *PendingNexusOperationInfo) SetService(v string) { + x.xxx_hidden_Service = v +} + +func (x *PendingNexusOperationInfo) SetOperation(v string) { + x.xxx_hidden_Operation = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *PendingNexusOperationInfo) SetOperationId(v string) { + x.xxx_hidden_OperationId = v +} + +func (x *PendingNexusOperationInfo) SetScheduleToCloseTimeout(v *durationpb.Duration) { + x.xxx_hidden_ScheduleToCloseTimeout = v +} + +func (x *PendingNexusOperationInfo) SetScheduledTime(v *timestamppb.Timestamp) { + x.xxx_hidden_ScheduledTime = v +} + +func (x *PendingNexusOperationInfo) SetState(v v11.PendingNexusOperationState) { + x.xxx_hidden_State = v +} + +func (x *PendingNexusOperationInfo) SetAttempt(v int32) { + x.xxx_hidden_Attempt = v +} + +func (x *PendingNexusOperationInfo) SetLastAttemptCompleteTime(v *timestamppb.Timestamp) { + x.xxx_hidden_LastAttemptCompleteTime = v +} + +func (x *PendingNexusOperationInfo) SetLastAttemptFailure(v *v15.Failure) { + x.xxx_hidden_LastAttemptFailure = v +} + +func (x *PendingNexusOperationInfo) SetNextAttemptScheduleTime(v *timestamppb.Timestamp) { + x.xxx_hidden_NextAttemptScheduleTime = v +} + +func (x *PendingNexusOperationInfo) SetCancellationInfo(v *NexusOperationCancellationInfo) { + x.xxx_hidden_CancellationInfo = v +} + +func (x *PendingNexusOperationInfo) SetScheduledEventId(v int64) { + x.xxx_hidden_ScheduledEventId = v +} + +func (x *PendingNexusOperationInfo) SetBlockedReason(v string) { + x.xxx_hidden_BlockedReason = v +} + +func (x *PendingNexusOperationInfo) SetOperationToken(v string) { + x.xxx_hidden_OperationToken = v +} + +func (x *PendingNexusOperationInfo) SetScheduleToStartTimeout(v *durationpb.Duration) { + x.xxx_hidden_ScheduleToStartTimeout = v +} + +func (x *PendingNexusOperationInfo) SetStartToCloseTimeout(v *durationpb.Duration) { + x.xxx_hidden_StartToCloseTimeout = v +} + +func (x *PendingNexusOperationInfo) HasScheduleToCloseTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_ScheduleToCloseTimeout != nil +} + +func (x *PendingNexusOperationInfo) HasScheduledTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_ScheduledTime != nil +} + +func (x *PendingNexusOperationInfo) HasLastAttemptCompleteTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_LastAttemptCompleteTime != nil +} + +func (x *PendingNexusOperationInfo) HasLastAttemptFailure() bool { + if x == nil { + return false + } + return x.xxx_hidden_LastAttemptFailure != nil +} + +func (x *PendingNexusOperationInfo) HasNextAttemptScheduleTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_NextAttemptScheduleTime != nil +} + +func (x *PendingNexusOperationInfo) HasCancellationInfo() bool { + if x == nil { + return false + } + return x.xxx_hidden_CancellationInfo != nil +} + +func (x *PendingNexusOperationInfo) HasScheduleToStartTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_ScheduleToStartTimeout != nil +} + +func (x *PendingNexusOperationInfo) HasStartToCloseTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_StartToCloseTimeout != nil +} + +func (x *PendingNexusOperationInfo) ClearScheduleToCloseTimeout() { + x.xxx_hidden_ScheduleToCloseTimeout = nil +} + +func (x *PendingNexusOperationInfo) ClearScheduledTime() { + x.xxx_hidden_ScheduledTime = nil +} + +func (x *PendingNexusOperationInfo) ClearLastAttemptCompleteTime() { + x.xxx_hidden_LastAttemptCompleteTime = nil +} + +func (x *PendingNexusOperationInfo) ClearLastAttemptFailure() { + x.xxx_hidden_LastAttemptFailure = nil +} + +func (x *PendingNexusOperationInfo) ClearNextAttemptScheduleTime() { + x.xxx_hidden_NextAttemptScheduleTime = nil +} + +func (x *PendingNexusOperationInfo) ClearCancellationInfo() { + x.xxx_hidden_CancellationInfo = nil +} + +func (x *PendingNexusOperationInfo) ClearScheduleToStartTimeout() { + x.xxx_hidden_ScheduleToStartTimeout = nil +} + +func (x *PendingNexusOperationInfo) ClearStartToCloseTimeout() { + x.xxx_hidden_StartToCloseTimeout = nil +} + +type PendingNexusOperationInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Endpoint name. + // Resolved to a URL via the cluster's endpoint registry. + Endpoint string + // Service name. + Service string + // Operation name. + Operation string + // Operation ID. Only set for asynchronous operations after a successful StartOperation call. + // + // Deprecated. Renamed to operation_token. + // + // Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. + OperationId string + // Schedule-to-close timeout for this operation. + // This is the only timeout settable by a workflow. + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + ScheduleToCloseTimeout *durationpb.Duration + // The time when the operation was scheduled. + ScheduledTime *timestamppb.Timestamp + State v11.PendingNexusOperationState + // The number of attempts made to deliver the start operation request. + // This number represents a minimum bound since the attempt is incremented after the request completes. + Attempt int32 + // The time when the last attempt completed. + LastAttemptCompleteTime *timestamppb.Timestamp + // The last attempt's failure, if any. + LastAttemptFailure *v15.Failure + // The time when the next attempt is scheduled. + NextAttemptScheduleTime *timestamppb.Timestamp + CancellationInfo *NexusOperationCancellationInfo + // The event ID of the NexusOperationScheduled event. Can be used to correlate an operation in the + // DescribeWorkflowExecution response with workflow history. + ScheduledEventId int64 + // If the state is BLOCKED, blocked reason provides additional information. + BlockedReason string + // Operation token. Only set for asynchronous operations after a successful StartOperation call. + OperationToken string + // Schedule-to-start timeout for this operation. + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + ScheduleToStartTimeout *durationpb.Duration + // Start-to-close timeout for this operation. + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + StartToCloseTimeout *durationpb.Duration +} + +func (b0 PendingNexusOperationInfo_builder) Build() *PendingNexusOperationInfo { + m0 := &PendingNexusOperationInfo{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Endpoint = b.Endpoint + x.xxx_hidden_Service = b.Service + x.xxx_hidden_Operation = b.Operation + x.xxx_hidden_OperationId = b.OperationId + x.xxx_hidden_ScheduleToCloseTimeout = b.ScheduleToCloseTimeout + x.xxx_hidden_ScheduledTime = b.ScheduledTime + x.xxx_hidden_State = b.State + x.xxx_hidden_Attempt = b.Attempt + x.xxx_hidden_LastAttemptCompleteTime = b.LastAttemptCompleteTime + x.xxx_hidden_LastAttemptFailure = b.LastAttemptFailure + x.xxx_hidden_NextAttemptScheduleTime = b.NextAttemptScheduleTime + x.xxx_hidden_CancellationInfo = b.CancellationInfo + x.xxx_hidden_ScheduledEventId = b.ScheduledEventId + x.xxx_hidden_BlockedReason = b.BlockedReason + x.xxx_hidden_OperationToken = b.OperationToken + x.xxx_hidden_ScheduleToStartTimeout = b.ScheduleToStartTimeout + x.xxx_hidden_StartToCloseTimeout = b.StartToCloseTimeout + return m0 +} + +// NexusOperationCancellationInfo contains the state of a nexus operation cancellation. +type NexusOperationCancellationInfo struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RequestedTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=requested_time,json=requestedTime,proto3"` + xxx_hidden_State v11.NexusOperationCancellationState `protobuf:"varint,2,opt,name=state,proto3,enum=temporal.api.enums.v1.NexusOperationCancellationState"` + xxx_hidden_Attempt int32 `protobuf:"varint,3,opt,name=attempt,proto3"` + xxx_hidden_LastAttemptCompleteTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=last_attempt_complete_time,json=lastAttemptCompleteTime,proto3"` + xxx_hidden_LastAttemptFailure *v15.Failure `protobuf:"bytes,5,opt,name=last_attempt_failure,json=lastAttemptFailure,proto3"` + xxx_hidden_NextAttemptScheduleTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=next_attempt_schedule_time,json=nextAttemptScheduleTime,proto3"` + xxx_hidden_BlockedReason string `protobuf:"bytes,7,opt,name=blocked_reason,json=blockedReason,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *NexusOperationCancellationInfo) Reset() { + *x = NexusOperationCancellationInfo{} + mi := &file_temporal_api_workflow_v1_message_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *NexusOperationCancellationInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NexusOperationCancellationInfo) ProtoMessage() {} + +func (x *NexusOperationCancellationInfo) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflow_v1_message_proto_msgTypes[14] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *NexusOperationCancellationInfo) GetRequestedTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_RequestedTime + } + return nil +} + +func (x *NexusOperationCancellationInfo) GetState() v11.NexusOperationCancellationState { + if x != nil { + return x.xxx_hidden_State + } + return v11.NexusOperationCancellationState(0) +} + +func (x *NexusOperationCancellationInfo) GetAttempt() int32 { + if x != nil { + return x.xxx_hidden_Attempt + } + return 0 +} + +func (x *NexusOperationCancellationInfo) GetLastAttemptCompleteTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_LastAttemptCompleteTime + } + return nil +} + +func (x *NexusOperationCancellationInfo) GetLastAttemptFailure() *v15.Failure { + if x != nil { + return x.xxx_hidden_LastAttemptFailure + } + return nil +} + +func (x *NexusOperationCancellationInfo) GetNextAttemptScheduleTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_NextAttemptScheduleTime + } + return nil +} + +func (x *NexusOperationCancellationInfo) GetBlockedReason() string { + if x != nil { + return x.xxx_hidden_BlockedReason + } + return "" +} + +func (x *NexusOperationCancellationInfo) SetRequestedTime(v *timestamppb.Timestamp) { + x.xxx_hidden_RequestedTime = v +} + +func (x *NexusOperationCancellationInfo) SetState(v v11.NexusOperationCancellationState) { + x.xxx_hidden_State = v +} + +func (x *NexusOperationCancellationInfo) SetAttempt(v int32) { + x.xxx_hidden_Attempt = v +} + +func (x *NexusOperationCancellationInfo) SetLastAttemptCompleteTime(v *timestamppb.Timestamp) { + x.xxx_hidden_LastAttemptCompleteTime = v +} + +func (x *NexusOperationCancellationInfo) SetLastAttemptFailure(v *v15.Failure) { + x.xxx_hidden_LastAttemptFailure = v +} + +func (x *NexusOperationCancellationInfo) SetNextAttemptScheduleTime(v *timestamppb.Timestamp) { + x.xxx_hidden_NextAttemptScheduleTime = v +} + +func (x *NexusOperationCancellationInfo) SetBlockedReason(v string) { + x.xxx_hidden_BlockedReason = v +} + +func (x *NexusOperationCancellationInfo) HasRequestedTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_RequestedTime != nil +} + +func (x *NexusOperationCancellationInfo) HasLastAttemptCompleteTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_LastAttemptCompleteTime != nil +} + +func (x *NexusOperationCancellationInfo) HasLastAttemptFailure() bool { + if x == nil { + return false + } + return x.xxx_hidden_LastAttemptFailure != nil +} + +func (x *NexusOperationCancellationInfo) HasNextAttemptScheduleTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_NextAttemptScheduleTime != nil +} + +func (x *NexusOperationCancellationInfo) ClearRequestedTime() { + x.xxx_hidden_RequestedTime = nil +} + +func (x *NexusOperationCancellationInfo) ClearLastAttemptCompleteTime() { + x.xxx_hidden_LastAttemptCompleteTime = nil +} + +func (x *NexusOperationCancellationInfo) ClearLastAttemptFailure() { + x.xxx_hidden_LastAttemptFailure = nil +} + +func (x *NexusOperationCancellationInfo) ClearNextAttemptScheduleTime() { + x.xxx_hidden_NextAttemptScheduleTime = nil +} + +type NexusOperationCancellationInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The time when cancellation was requested. + RequestedTime *timestamppb.Timestamp + State v11.NexusOperationCancellationState + // The number of attempts made to deliver the cancel operation request. + // This number represents a minimum bound since the attempt is incremented after the request completes. + Attempt int32 + // The time when the last attempt completed. + LastAttemptCompleteTime *timestamppb.Timestamp + // The last attempt's failure, if any. + LastAttemptFailure *v15.Failure + // The time when the next attempt is scheduled. + NextAttemptScheduleTime *timestamppb.Timestamp + // If the state is BLOCKED, blocked reason provides additional information. + BlockedReason string +} + +func (b0 NexusOperationCancellationInfo_builder) Build() *NexusOperationCancellationInfo { + m0 := &NexusOperationCancellationInfo{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RequestedTime = b.RequestedTime + x.xxx_hidden_State = b.State + x.xxx_hidden_Attempt = b.Attempt + x.xxx_hidden_LastAttemptCompleteTime = b.LastAttemptCompleteTime + x.xxx_hidden_LastAttemptFailure = b.LastAttemptFailure + x.xxx_hidden_NextAttemptScheduleTime = b.NextAttemptScheduleTime + x.xxx_hidden_BlockedReason = b.BlockedReason + return m0 +} + +type WorkflowExecutionOptions struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_VersioningOverride *VersioningOverride `protobuf:"bytes,1,opt,name=versioning_override,json=versioningOverride,proto3"` + xxx_hidden_Priority *v1.Priority `protobuf:"bytes,2,opt,name=priority,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowExecutionOptions) Reset() { + *x = WorkflowExecutionOptions{} + mi := &file_temporal_api_workflow_v1_message_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkflowExecutionOptions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowExecutionOptions) ProtoMessage() {} + +func (x *WorkflowExecutionOptions) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflow_v1_message_proto_msgTypes[15] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkflowExecutionOptions) GetVersioningOverride() *VersioningOverride { + if x != nil { + return x.xxx_hidden_VersioningOverride + } + return nil +} + +func (x *WorkflowExecutionOptions) GetPriority() *v1.Priority { + if x != nil { + return x.xxx_hidden_Priority + } + return nil +} + +func (x *WorkflowExecutionOptions) SetVersioningOverride(v *VersioningOverride) { + x.xxx_hidden_VersioningOverride = v +} + +func (x *WorkflowExecutionOptions) SetPriority(v *v1.Priority) { + x.xxx_hidden_Priority = v +} + +func (x *WorkflowExecutionOptions) HasVersioningOverride() bool { + if x == nil { + return false + } + return x.xxx_hidden_VersioningOverride != nil +} + +func (x *WorkflowExecutionOptions) HasPriority() bool { + if x == nil { + return false + } + return x.xxx_hidden_Priority != nil +} + +func (x *WorkflowExecutionOptions) ClearVersioningOverride() { + x.xxx_hidden_VersioningOverride = nil +} + +func (x *WorkflowExecutionOptions) ClearPriority() { + x.xxx_hidden_Priority = nil +} + +type WorkflowExecutionOptions_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // If set, takes precedence over the Versioning Behavior sent by the SDK on Workflow Task completion. + VersioningOverride *VersioningOverride + // If set, overrides the workflow's priority sent by the SDK. + Priority *v1.Priority +} + +func (b0 WorkflowExecutionOptions_builder) Build() *WorkflowExecutionOptions { + m0 := &WorkflowExecutionOptions{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_VersioningOverride = b.VersioningOverride + x.xxx_hidden_Priority = b.Priority + return m0 +} + +// Used to override the versioning behavior (and pinned deployment version, if applicable) of a +// specific workflow execution. If set, this override takes precedence over worker-sent values. +// See `WorkflowExecutionInfo.VersioningInfo` for more information. +// +// To remove the override, call `UpdateWorkflowExecutionOptions` with a null +// `VersioningOverride`, and use the `update_mask` to indicate that it should be mutated. +// +// Pinned behavior overrides are automatically inherited by child workflows, workflow retries, continue-as-new +// workflows, and cron workflows. +type VersioningOverride struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Override isVersioningOverride_Override `protobuf_oneof:"override"` + xxx_hidden_Behavior v11.VersioningBehavior `protobuf:"varint,1,opt,name=behavior,proto3,enum=temporal.api.enums.v1.VersioningBehavior"` + xxx_hidden_Deployment *v12.Deployment `protobuf:"bytes,2,opt,name=deployment,proto3"` + xxx_hidden_PinnedVersion string `protobuf:"bytes,9,opt,name=pinned_version,json=pinnedVersion,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *VersioningOverride) Reset() { + *x = VersioningOverride{} + mi := &file_temporal_api_workflow_v1_message_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *VersioningOverride) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VersioningOverride) ProtoMessage() {} + +func (x *VersioningOverride) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflow_v1_message_proto_msgTypes[16] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *VersioningOverride) GetPinned() *VersioningOverride_PinnedOverride { + if x != nil { + if x, ok := x.xxx_hidden_Override.(*versioningOverride_Pinned); ok { + return x.Pinned + } + } + return nil +} + +func (x *VersioningOverride) GetAutoUpgrade() bool { + if x != nil { + if x, ok := x.xxx_hidden_Override.(*versioningOverride_AutoUpgrade); ok { + return x.AutoUpgrade + } + } + return false +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *VersioningOverride) GetBehavior() v11.VersioningBehavior { + if x != nil { + return x.xxx_hidden_Behavior + } + return v11.VersioningBehavior(0) +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *VersioningOverride) GetDeployment() *v12.Deployment { + if x != nil { + return x.xxx_hidden_Deployment + } + return nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *VersioningOverride) GetPinnedVersion() string { + if x != nil { + return x.xxx_hidden_PinnedVersion + } + return "" +} + +func (x *VersioningOverride) SetPinned(v *VersioningOverride_PinnedOverride) { + if v == nil { + x.xxx_hidden_Override = nil + return + } + x.xxx_hidden_Override = &versioningOverride_Pinned{v} +} + +func (x *VersioningOverride) SetAutoUpgrade(v bool) { + x.xxx_hidden_Override = &versioningOverride_AutoUpgrade{v} +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *VersioningOverride) SetBehavior(v v11.VersioningBehavior) { + x.xxx_hidden_Behavior = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *VersioningOverride) SetDeployment(v *v12.Deployment) { + x.xxx_hidden_Deployment = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *VersioningOverride) SetPinnedVersion(v string) { + x.xxx_hidden_PinnedVersion = v +} + +func (x *VersioningOverride) HasOverride() bool { + if x == nil { + return false + } + return x.xxx_hidden_Override != nil +} + +func (x *VersioningOverride) HasPinned() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Override.(*versioningOverride_Pinned) + return ok +} + +func (x *VersioningOverride) HasAutoUpgrade() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Override.(*versioningOverride_AutoUpgrade) + return ok +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *VersioningOverride) HasDeployment() bool { + if x == nil { + return false + } + return x.xxx_hidden_Deployment != nil +} + +func (x *VersioningOverride) ClearOverride() { + x.xxx_hidden_Override = nil +} + +func (x *VersioningOverride) ClearPinned() { + if _, ok := x.xxx_hidden_Override.(*versioningOverride_Pinned); ok { + x.xxx_hidden_Override = nil + } +} + +func (x *VersioningOverride) ClearAutoUpgrade() { + if _, ok := x.xxx_hidden_Override.(*versioningOverride_AutoUpgrade); ok { + x.xxx_hidden_Override = nil + } +} + +// Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. +func (x *VersioningOverride) ClearDeployment() { + x.xxx_hidden_Deployment = nil +} + +const VersioningOverride_Override_not_set_case case_VersioningOverride_Override = 0 +const VersioningOverride_Pinned_case case_VersioningOverride_Override = 3 +const VersioningOverride_AutoUpgrade_case case_VersioningOverride_Override = 4 + +func (x *VersioningOverride) WhichOverride() case_VersioningOverride_Override { + if x == nil { + return VersioningOverride_Override_not_set_case + } + switch x.xxx_hidden_Override.(type) { + case *versioningOverride_Pinned: + return VersioningOverride_Pinned_case + case *versioningOverride_AutoUpgrade: + return VersioningOverride_AutoUpgrade_case + default: + return VersioningOverride_Override_not_set_case + } +} + +type VersioningOverride_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Indicates whether to override the workflow to be AutoUpgrade or Pinned. + + // Fields of oneof xxx_hidden_Override: + // Override the workflow to have Pinned behavior. + Pinned *VersioningOverride_PinnedOverride + // Override the workflow to have AutoUpgrade behavior. + AutoUpgrade *bool + // -- end of xxx_hidden_Override + // Required. + // Deprecated. Use `override`. + // + // Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. + Behavior v11.VersioningBehavior + // Required if behavior is `PINNED`. Must be null if behavior is `AUTO_UPGRADE`. + // Identifies the worker deployment to pin the workflow to. + // Deprecated. Use `override.pinned.version`. + // + // Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. + Deployment *v12.Deployment + // Required if behavior is `PINNED`. Must be absent if behavior is not `PINNED`. + // Identifies the worker deployment version to pin the workflow to, in the format + // ".". + // Deprecated. Use `override.pinned.version`. + // + // Deprecated: Marked as deprecated in temporal/api/workflow/v1/message.proto. + PinnedVersion string +} + +func (b0 VersioningOverride_builder) Build() *VersioningOverride { + m0 := &VersioningOverride{} + b, x := &b0, m0 + _, _ = b, x + if b.Pinned != nil { + x.xxx_hidden_Override = &versioningOverride_Pinned{b.Pinned} + } + if b.AutoUpgrade != nil { + x.xxx_hidden_Override = &versioningOverride_AutoUpgrade{*b.AutoUpgrade} + } + x.xxx_hidden_Behavior = b.Behavior + x.xxx_hidden_Deployment = b.Deployment + x.xxx_hidden_PinnedVersion = b.PinnedVersion + return m0 +} + +type case_VersioningOverride_Override protoreflect.FieldNumber + +func (x case_VersioningOverride_Override) String() string { + switch x { + case VersioningOverride_Override_not_set_case: + return "VersioningOverrideOverrideNotSetCase" + case VersioningOverride_Pinned_case: + return "VersioningOverridePinnedCase" + case VersioningOverride_AutoUpgrade_case: + return "VersioningOverrideAutoUpgradeCase" + default: + return strconv.Itoa(int(x)) + } + +} + +type isVersioningOverride_Override interface { + isVersioningOverride_Override() +} + +type versioningOverride_Pinned struct { + // Override the workflow to have Pinned behavior. + Pinned *VersioningOverride_PinnedOverride `protobuf:"bytes,3,opt,name=pinned,proto3,oneof"` +} + +type versioningOverride_AutoUpgrade struct { + // Override the workflow to have AutoUpgrade behavior. + AutoUpgrade bool `protobuf:"varint,4,opt,name=auto_upgrade,json=autoUpgrade,proto3,oneof"` +} + +func (*versioningOverride_Pinned) isVersioningOverride_Override() {} + +func (*versioningOverride_AutoUpgrade) isVersioningOverride_Override() {} + +// When StartWorkflowExecution uses the conflict policy WORKFLOW_ID_CONFLICT_POLICY_USE_EXISTING and +// there is already an existing running workflow, OnConflictOptions defines actions to be taken on +// the existing running workflow. In this case, it will create a WorkflowExecutionOptionsUpdatedEvent +// history event in the running workflow with the changes requested in this object. +type OnConflictOptions struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_AttachRequestId bool `protobuf:"varint,1,opt,name=attach_request_id,json=attachRequestId,proto3"` + xxx_hidden_AttachCompletionCallbacks bool `protobuf:"varint,2,opt,name=attach_completion_callbacks,json=attachCompletionCallbacks,proto3"` + xxx_hidden_AttachLinks bool `protobuf:"varint,3,opt,name=attach_links,json=attachLinks,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *OnConflictOptions) Reset() { + *x = OnConflictOptions{} + mi := &file_temporal_api_workflow_v1_message_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *OnConflictOptions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OnConflictOptions) ProtoMessage() {} + +func (x *OnConflictOptions) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflow_v1_message_proto_msgTypes[17] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *OnConflictOptions) GetAttachRequestId() bool { + if x != nil { + return x.xxx_hidden_AttachRequestId + } + return false +} + +func (x *OnConflictOptions) GetAttachCompletionCallbacks() bool { + if x != nil { + return x.xxx_hidden_AttachCompletionCallbacks + } + return false +} + +func (x *OnConflictOptions) GetAttachLinks() bool { + if x != nil { + return x.xxx_hidden_AttachLinks + } + return false +} + +func (x *OnConflictOptions) SetAttachRequestId(v bool) { + x.xxx_hidden_AttachRequestId = v +} + +func (x *OnConflictOptions) SetAttachCompletionCallbacks(v bool) { + x.xxx_hidden_AttachCompletionCallbacks = v +} + +func (x *OnConflictOptions) SetAttachLinks(v bool) { + x.xxx_hidden_AttachLinks = v +} + +type OnConflictOptions_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Attaches the request ID to the running workflow. + AttachRequestId bool + // Attaches the completion callbacks to the running workflow. + AttachCompletionCallbacks bool + // Attaches the links to the WorkflowExecutionOptionsUpdatedEvent history event. + AttachLinks bool +} + +func (b0 OnConflictOptions_builder) Build() *OnConflictOptions { + m0 := &OnConflictOptions{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_AttachRequestId = b.AttachRequestId + x.xxx_hidden_AttachCompletionCallbacks = b.AttachCompletionCallbacks + x.xxx_hidden_AttachLinks = b.AttachLinks + return m0 +} + +// RequestIdInfo contains details of a request ID. +type RequestIdInfo struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_EventType v11.EventType `protobuf:"varint,1,opt,name=event_type,json=eventType,proto3,enum=temporal.api.enums.v1.EventType"` + xxx_hidden_EventId int64 `protobuf:"varint,2,opt,name=event_id,json=eventId,proto3"` + xxx_hidden_Buffered bool `protobuf:"varint,3,opt,name=buffered,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RequestIdInfo) Reset() { + *x = RequestIdInfo{} + mi := &file_temporal_api_workflow_v1_message_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RequestIdInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RequestIdInfo) ProtoMessage() {} + +func (x *RequestIdInfo) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflow_v1_message_proto_msgTypes[18] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *RequestIdInfo) GetEventType() v11.EventType { + if x != nil { + return x.xxx_hidden_EventType + } + return v11.EventType(0) +} + +func (x *RequestIdInfo) GetEventId() int64 { + if x != nil { + return x.xxx_hidden_EventId + } + return 0 +} + +func (x *RequestIdInfo) GetBuffered() bool { + if x != nil { + return x.xxx_hidden_Buffered + } + return false +} + +func (x *RequestIdInfo) SetEventType(v v11.EventType) { + x.xxx_hidden_EventType = v +} + +func (x *RequestIdInfo) SetEventId(v int64) { + x.xxx_hidden_EventId = v +} + +func (x *RequestIdInfo) SetBuffered(v bool) { + x.xxx_hidden_Buffered = v +} + +type RequestIdInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The event type of the history event generated by the request. + EventType v11.EventType + // The event id of the history event generated by the request. It's possible the event ID is not + // known (unflushed buffered event). In this case, the value will be zero or a negative value, + // representing an invalid ID. + EventId int64 + // Indicate if the request is still buffered. If so, the event ID is not known and its value + // will be an invalid event ID. + Buffered bool +} + +func (b0 RequestIdInfo_builder) Build() *RequestIdInfo { + m0 := &RequestIdInfo{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_EventType = b.EventType + x.xxx_hidden_EventId = b.EventId + x.xxx_hidden_Buffered = b.Buffered + return m0 +} + +// PostResetOperation represents an operation to be performed on the new workflow execution after a workflow reset. +type PostResetOperation struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Variant isPostResetOperation_Variant `protobuf_oneof:"variant"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PostResetOperation) Reset() { + *x = PostResetOperation{} + mi := &file_temporal_api_workflow_v1_message_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PostResetOperation) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PostResetOperation) ProtoMessage() {} + +func (x *PostResetOperation) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflow_v1_message_proto_msgTypes[19] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PostResetOperation) GetSignalWorkflow() *PostResetOperation_SignalWorkflow { + if x != nil { + if x, ok := x.xxx_hidden_Variant.(*postResetOperation_SignalWorkflow_); ok { + return x.SignalWorkflow + } + } + return nil +} + +func (x *PostResetOperation) GetUpdateWorkflowOptions() *PostResetOperation_UpdateWorkflowOptions { + if x != nil { + if x, ok := x.xxx_hidden_Variant.(*postResetOperation_UpdateWorkflowOptions_); ok { + return x.UpdateWorkflowOptions + } + } + return nil +} + +func (x *PostResetOperation) SetSignalWorkflow(v *PostResetOperation_SignalWorkflow) { + if v == nil { + x.xxx_hidden_Variant = nil + return + } + x.xxx_hidden_Variant = &postResetOperation_SignalWorkflow_{v} +} + +func (x *PostResetOperation) SetUpdateWorkflowOptions(v *PostResetOperation_UpdateWorkflowOptions) { + if v == nil { + x.xxx_hidden_Variant = nil + return + } + x.xxx_hidden_Variant = &postResetOperation_UpdateWorkflowOptions_{v} +} + +func (x *PostResetOperation) HasVariant() bool { + if x == nil { + return false + } + return x.xxx_hidden_Variant != nil +} + +func (x *PostResetOperation) HasSignalWorkflow() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Variant.(*postResetOperation_SignalWorkflow_) + return ok +} + +func (x *PostResetOperation) HasUpdateWorkflowOptions() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Variant.(*postResetOperation_UpdateWorkflowOptions_) + return ok +} + +func (x *PostResetOperation) ClearVariant() { + x.xxx_hidden_Variant = nil +} + +func (x *PostResetOperation) ClearSignalWorkflow() { + if _, ok := x.xxx_hidden_Variant.(*postResetOperation_SignalWorkflow_); ok { + x.xxx_hidden_Variant = nil + } +} + +func (x *PostResetOperation) ClearUpdateWorkflowOptions() { + if _, ok := x.xxx_hidden_Variant.(*postResetOperation_UpdateWorkflowOptions_); ok { + x.xxx_hidden_Variant = nil + } +} + +const PostResetOperation_Variant_not_set_case case_PostResetOperation_Variant = 0 +const PostResetOperation_SignalWorkflow_case case_PostResetOperation_Variant = 1 +const PostResetOperation_UpdateWorkflowOptions_case case_PostResetOperation_Variant = 2 + +func (x *PostResetOperation) WhichVariant() case_PostResetOperation_Variant { + if x == nil { + return PostResetOperation_Variant_not_set_case + } + switch x.xxx_hidden_Variant.(type) { + case *postResetOperation_SignalWorkflow_: + return PostResetOperation_SignalWorkflow_case + case *postResetOperation_UpdateWorkflowOptions_: + return PostResetOperation_UpdateWorkflowOptions_case + default: + return PostResetOperation_Variant_not_set_case + } +} + +type PostResetOperation_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Fields of oneof xxx_hidden_Variant: + SignalWorkflow *PostResetOperation_SignalWorkflow + UpdateWorkflowOptions *PostResetOperation_UpdateWorkflowOptions + // -- end of xxx_hidden_Variant +} + +func (b0 PostResetOperation_builder) Build() *PostResetOperation { + m0 := &PostResetOperation{} + b, x := &b0, m0 + _, _ = b, x + if b.SignalWorkflow != nil { + x.xxx_hidden_Variant = &postResetOperation_SignalWorkflow_{b.SignalWorkflow} + } + if b.UpdateWorkflowOptions != nil { + x.xxx_hidden_Variant = &postResetOperation_UpdateWorkflowOptions_{b.UpdateWorkflowOptions} + } + return m0 +} + +type case_PostResetOperation_Variant protoreflect.FieldNumber + +func (x case_PostResetOperation_Variant) String() string { + switch x { + case PostResetOperation_Variant_not_set_case: + return "PostResetOperationVariantNotSetCase" + case PostResetOperation_SignalWorkflow_case: + return "PostResetOperationSignalWorkflowCase" + case PostResetOperation_UpdateWorkflowOptions_case: + return "PostResetOperationUpdateWorkflowOptionsCase" + default: + return strconv.Itoa(int(x)) + } + +} + +type isPostResetOperation_Variant interface { + isPostResetOperation_Variant() +} + +type postResetOperation_SignalWorkflow_ struct { + SignalWorkflow *PostResetOperation_SignalWorkflow `protobuf:"bytes,1,opt,name=signal_workflow,json=signalWorkflow,proto3,oneof"` +} + +type postResetOperation_UpdateWorkflowOptions_ struct { + UpdateWorkflowOptions *PostResetOperation_UpdateWorkflowOptions `protobuf:"bytes,2,opt,name=update_workflow_options,json=updateWorkflowOptions,proto3,oneof"` +} + +func (*postResetOperation_SignalWorkflow_) isPostResetOperation_Variant() {} + +func (*postResetOperation_UpdateWorkflowOptions_) isPostResetOperation_Variant() {} + +// WorkflowExecutionPauseInfo contains the information about a workflow execution pause. +type WorkflowExecutionPauseInfo struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Identity string `protobuf:"bytes,1,opt,name=identity,proto3"` + xxx_hidden_PausedTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=paused_time,json=pausedTime,proto3"` + xxx_hidden_Reason string `protobuf:"bytes,3,opt,name=reason,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowExecutionPauseInfo) Reset() { + *x = WorkflowExecutionPauseInfo{} + mi := &file_temporal_api_workflow_v1_message_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkflowExecutionPauseInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowExecutionPauseInfo) ProtoMessage() {} + +func (x *WorkflowExecutionPauseInfo) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflow_v1_message_proto_msgTypes[20] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *WorkflowExecutionPauseInfo) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *WorkflowExecutionPauseInfo) GetPausedTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_PausedTime + } + return nil +} + +func (x *WorkflowExecutionPauseInfo) GetReason() string { + if x != nil { + return x.xxx_hidden_Reason + } + return "" +} + +func (x *WorkflowExecutionPauseInfo) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *WorkflowExecutionPauseInfo) SetPausedTime(v *timestamppb.Timestamp) { + x.xxx_hidden_PausedTime = v +} + +func (x *WorkflowExecutionPauseInfo) SetReason(v string) { + x.xxx_hidden_Reason = v +} + +func (x *WorkflowExecutionPauseInfo) HasPausedTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_PausedTime != nil +} + +func (x *WorkflowExecutionPauseInfo) ClearPausedTime() { + x.xxx_hidden_PausedTime = nil +} + +type WorkflowExecutionPauseInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The identity of the client who paused the workflow execution. + Identity string + // The time when the workflow execution was paused. + PausedTime *timestamppb.Timestamp + // The reason for pausing the workflow execution. + Reason string +} + +func (b0 WorkflowExecutionPauseInfo_builder) Build() *WorkflowExecutionPauseInfo { + m0 := &WorkflowExecutionPauseInfo{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Identity = b.Identity + x.xxx_hidden_PausedTime = b.PausedTime + x.xxx_hidden_Reason = b.Reason + return m0 +} + +type PendingActivityInfo_PauseInfo struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_PauseTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=pause_time,json=pauseTime,proto3"` + xxx_hidden_PausedBy isPendingActivityInfo_PauseInfo_PausedBy `protobuf_oneof:"paused_by"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PendingActivityInfo_PauseInfo) Reset() { + *x = PendingActivityInfo_PauseInfo{} + mi := &file_temporal_api_workflow_v1_message_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PendingActivityInfo_PauseInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PendingActivityInfo_PauseInfo) ProtoMessage() {} + +func (x *PendingActivityInfo_PauseInfo) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflow_v1_message_proto_msgTypes[22] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PendingActivityInfo_PauseInfo) GetPauseTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_PauseTime + } + return nil +} + +func (x *PendingActivityInfo_PauseInfo) GetManual() *PendingActivityInfo_PauseInfo_Manual { + if x != nil { + if x, ok := x.xxx_hidden_PausedBy.(*pendingActivityInfo_PauseInfo_Manual_); ok { + return x.Manual + } + } + return nil +} + +func (x *PendingActivityInfo_PauseInfo) GetRule() *PendingActivityInfo_PauseInfo_Rule { + if x != nil { + if x, ok := x.xxx_hidden_PausedBy.(*pendingActivityInfo_PauseInfo_Rule_); ok { + return x.Rule + } + } + return nil +} + +func (x *PendingActivityInfo_PauseInfo) SetPauseTime(v *timestamppb.Timestamp) { + x.xxx_hidden_PauseTime = v +} + +func (x *PendingActivityInfo_PauseInfo) SetManual(v *PendingActivityInfo_PauseInfo_Manual) { + if v == nil { + x.xxx_hidden_PausedBy = nil + return + } + x.xxx_hidden_PausedBy = &pendingActivityInfo_PauseInfo_Manual_{v} +} + +func (x *PendingActivityInfo_PauseInfo) SetRule(v *PendingActivityInfo_PauseInfo_Rule) { + if v == nil { + x.xxx_hidden_PausedBy = nil + return + } + x.xxx_hidden_PausedBy = &pendingActivityInfo_PauseInfo_Rule_{v} +} + +func (x *PendingActivityInfo_PauseInfo) HasPauseTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_PauseTime != nil +} + +func (x *PendingActivityInfo_PauseInfo) HasPausedBy() bool { + if x == nil { + return false + } + return x.xxx_hidden_PausedBy != nil +} + +func (x *PendingActivityInfo_PauseInfo) HasManual() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_PausedBy.(*pendingActivityInfo_PauseInfo_Manual_) + return ok +} + +func (x *PendingActivityInfo_PauseInfo) HasRule() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_PausedBy.(*pendingActivityInfo_PauseInfo_Rule_) + return ok +} + +func (x *PendingActivityInfo_PauseInfo) ClearPauseTime() { + x.xxx_hidden_PauseTime = nil +} + +func (x *PendingActivityInfo_PauseInfo) ClearPausedBy() { + x.xxx_hidden_PausedBy = nil +} + +func (x *PendingActivityInfo_PauseInfo) ClearManual() { + if _, ok := x.xxx_hidden_PausedBy.(*pendingActivityInfo_PauseInfo_Manual_); ok { + x.xxx_hidden_PausedBy = nil + } +} + +func (x *PendingActivityInfo_PauseInfo) ClearRule() { + if _, ok := x.xxx_hidden_PausedBy.(*pendingActivityInfo_PauseInfo_Rule_); ok { + x.xxx_hidden_PausedBy = nil + } +} + +const PendingActivityInfo_PauseInfo_PausedBy_not_set_case case_PendingActivityInfo_PauseInfo_PausedBy = 0 +const PendingActivityInfo_PauseInfo_Manual_case case_PendingActivityInfo_PauseInfo_PausedBy = 2 +const PendingActivityInfo_PauseInfo_Rule_case case_PendingActivityInfo_PauseInfo_PausedBy = 4 + +func (x *PendingActivityInfo_PauseInfo) WhichPausedBy() case_PendingActivityInfo_PauseInfo_PausedBy { + if x == nil { + return PendingActivityInfo_PauseInfo_PausedBy_not_set_case + } + switch x.xxx_hidden_PausedBy.(type) { + case *pendingActivityInfo_PauseInfo_Manual_: + return PendingActivityInfo_PauseInfo_Manual_case + case *pendingActivityInfo_PauseInfo_Rule_: + return PendingActivityInfo_PauseInfo_Rule_case + default: + return PendingActivityInfo_PauseInfo_PausedBy_not_set_case + } +} + +type PendingActivityInfo_PauseInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The time when the activity was paused. + PauseTime *timestamppb.Timestamp + // Fields of oneof xxx_hidden_PausedBy: + // activity was paused by the manual intervention + Manual *PendingActivityInfo_PauseInfo_Manual + // activity was paused by the rule + Rule *PendingActivityInfo_PauseInfo_Rule + // -- end of xxx_hidden_PausedBy +} + +func (b0 PendingActivityInfo_PauseInfo_builder) Build() *PendingActivityInfo_PauseInfo { + m0 := &PendingActivityInfo_PauseInfo{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_PauseTime = b.PauseTime + if b.Manual != nil { + x.xxx_hidden_PausedBy = &pendingActivityInfo_PauseInfo_Manual_{b.Manual} + } + if b.Rule != nil { + x.xxx_hidden_PausedBy = &pendingActivityInfo_PauseInfo_Rule_{b.Rule} + } + return m0 +} + +type case_PendingActivityInfo_PauseInfo_PausedBy protoreflect.FieldNumber + +func (x case_PendingActivityInfo_PauseInfo_PausedBy) String() string { + switch x { + case PendingActivityInfo_PauseInfo_PausedBy_not_set_case: + return "PendingActivityInfoPauseInfoPausedByNotSetCase" + case PendingActivityInfo_PauseInfo_Manual_case: + return "PendingActivityInfoPauseInfoManualCase" + case PendingActivityInfo_PauseInfo_Rule_case: + return "PendingActivityInfoPauseInfoRuleCase" + default: + return strconv.Itoa(int(x)) + } + +} + +type isPendingActivityInfo_PauseInfo_PausedBy interface { + isPendingActivityInfo_PauseInfo_PausedBy() +} + +type pendingActivityInfo_PauseInfo_Manual_ struct { + // activity was paused by the manual intervention + Manual *PendingActivityInfo_PauseInfo_Manual `protobuf:"bytes,2,opt,name=manual,proto3,oneof"` +} + +type pendingActivityInfo_PauseInfo_Rule_ struct { + // activity was paused by the rule + Rule *PendingActivityInfo_PauseInfo_Rule `protobuf:"bytes,4,opt,name=rule,proto3,oneof"` +} + +func (*pendingActivityInfo_PauseInfo_Manual_) isPendingActivityInfo_PauseInfo_PausedBy() {} + +func (*pendingActivityInfo_PauseInfo_Rule_) isPendingActivityInfo_PauseInfo_PausedBy() {} + +type PendingActivityInfo_PauseInfo_Manual struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Identity string `protobuf:"bytes,1,opt,name=identity,proto3"` + xxx_hidden_Reason string `protobuf:"bytes,2,opt,name=reason,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PendingActivityInfo_PauseInfo_Manual) Reset() { + *x = PendingActivityInfo_PauseInfo_Manual{} + mi := &file_temporal_api_workflow_v1_message_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PendingActivityInfo_PauseInfo_Manual) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PendingActivityInfo_PauseInfo_Manual) ProtoMessage() {} + +func (x *PendingActivityInfo_PauseInfo_Manual) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflow_v1_message_proto_msgTypes[23] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PendingActivityInfo_PauseInfo_Manual) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *PendingActivityInfo_PauseInfo_Manual) GetReason() string { + if x != nil { + return x.xxx_hidden_Reason + } + return "" +} + +func (x *PendingActivityInfo_PauseInfo_Manual) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *PendingActivityInfo_PauseInfo_Manual) SetReason(v string) { + x.xxx_hidden_Reason = v +} + +type PendingActivityInfo_PauseInfo_Manual_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The identity of the actor that paused the activity. + Identity string + // Reason for pausing the activity. + Reason string +} + +func (b0 PendingActivityInfo_PauseInfo_Manual_builder) Build() *PendingActivityInfo_PauseInfo_Manual { + m0 := &PendingActivityInfo_PauseInfo_Manual{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Identity = b.Identity + x.xxx_hidden_Reason = b.Reason + return m0 +} + +type PendingActivityInfo_PauseInfo_Rule struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RuleId string `protobuf:"bytes,1,opt,name=rule_id,json=ruleId,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,2,opt,name=identity,proto3"` + xxx_hidden_Reason string `protobuf:"bytes,3,opt,name=reason,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PendingActivityInfo_PauseInfo_Rule) Reset() { + *x = PendingActivityInfo_PauseInfo_Rule{} + mi := &file_temporal_api_workflow_v1_message_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PendingActivityInfo_PauseInfo_Rule) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PendingActivityInfo_PauseInfo_Rule) ProtoMessage() {} + +func (x *PendingActivityInfo_PauseInfo_Rule) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflow_v1_message_proto_msgTypes[24] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PendingActivityInfo_PauseInfo_Rule) GetRuleId() string { + if x != nil { + return x.xxx_hidden_RuleId + } + return "" +} + +func (x *PendingActivityInfo_PauseInfo_Rule) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *PendingActivityInfo_PauseInfo_Rule) GetReason() string { + if x != nil { + return x.xxx_hidden_Reason + } + return "" +} + +func (x *PendingActivityInfo_PauseInfo_Rule) SetRuleId(v string) { + x.xxx_hidden_RuleId = v +} + +func (x *PendingActivityInfo_PauseInfo_Rule) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *PendingActivityInfo_PauseInfo_Rule) SetReason(v string) { + x.xxx_hidden_Reason = v +} + +type PendingActivityInfo_PauseInfo_Rule_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The rule that paused the activity. + RuleId string + // The identity of the actor that created the rule. + Identity string + // Reason why rule was created. Populated from rule description. + Reason string +} + +func (b0 PendingActivityInfo_PauseInfo_Rule_builder) Build() *PendingActivityInfo_PauseInfo_Rule { + m0 := &PendingActivityInfo_PauseInfo_Rule{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RuleId = b.RuleId + x.xxx_hidden_Identity = b.Identity + x.xxx_hidden_Reason = b.Reason + return m0 +} + +// Trigger for when the workflow is closed. +type CallbackInfo_WorkflowClosed struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CallbackInfo_WorkflowClosed) Reset() { + *x = CallbackInfo_WorkflowClosed{} + mi := &file_temporal_api_workflow_v1_message_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CallbackInfo_WorkflowClosed) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CallbackInfo_WorkflowClosed) ProtoMessage() {} + +func (x *CallbackInfo_WorkflowClosed) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflow_v1_message_proto_msgTypes[25] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type CallbackInfo_WorkflowClosed_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 CallbackInfo_WorkflowClosed_builder) Build() *CallbackInfo_WorkflowClosed { + m0 := &CallbackInfo_WorkflowClosed{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type CallbackInfo_Trigger struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Variant isCallbackInfo_Trigger_Variant `protobuf_oneof:"variant"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CallbackInfo_Trigger) Reset() { + *x = CallbackInfo_Trigger{} + mi := &file_temporal_api_workflow_v1_message_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CallbackInfo_Trigger) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CallbackInfo_Trigger) ProtoMessage() {} + +func (x *CallbackInfo_Trigger) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflow_v1_message_proto_msgTypes[26] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *CallbackInfo_Trigger) GetWorkflowClosed() *CallbackInfo_WorkflowClosed { + if x != nil { + if x, ok := x.xxx_hidden_Variant.(*callbackInfo_Trigger_WorkflowClosed); ok { + return x.WorkflowClosed + } + } + return nil +} + +func (x *CallbackInfo_Trigger) SetWorkflowClosed(v *CallbackInfo_WorkflowClosed) { + if v == nil { + x.xxx_hidden_Variant = nil + return + } + x.xxx_hidden_Variant = &callbackInfo_Trigger_WorkflowClosed{v} +} + +func (x *CallbackInfo_Trigger) HasVariant() bool { + if x == nil { + return false + } + return x.xxx_hidden_Variant != nil +} + +func (x *CallbackInfo_Trigger) HasWorkflowClosed() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Variant.(*callbackInfo_Trigger_WorkflowClosed) + return ok +} + +func (x *CallbackInfo_Trigger) ClearVariant() { + x.xxx_hidden_Variant = nil +} + +func (x *CallbackInfo_Trigger) ClearWorkflowClosed() { + if _, ok := x.xxx_hidden_Variant.(*callbackInfo_Trigger_WorkflowClosed); ok { + x.xxx_hidden_Variant = nil + } +} + +const CallbackInfo_Trigger_Variant_not_set_case case_CallbackInfo_Trigger_Variant = 0 +const CallbackInfo_Trigger_WorkflowClosed_case case_CallbackInfo_Trigger_Variant = 1 + +func (x *CallbackInfo_Trigger) WhichVariant() case_CallbackInfo_Trigger_Variant { + if x == nil { + return CallbackInfo_Trigger_Variant_not_set_case + } + switch x.xxx_hidden_Variant.(type) { + case *callbackInfo_Trigger_WorkflowClosed: + return CallbackInfo_Trigger_WorkflowClosed_case + default: + return CallbackInfo_Trigger_Variant_not_set_case + } +} + +type CallbackInfo_Trigger_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Fields of oneof xxx_hidden_Variant: + WorkflowClosed *CallbackInfo_WorkflowClosed + // -- end of xxx_hidden_Variant +} + +func (b0 CallbackInfo_Trigger_builder) Build() *CallbackInfo_Trigger { + m0 := &CallbackInfo_Trigger{} + b, x := &b0, m0 + _, _ = b, x + if b.WorkflowClosed != nil { + x.xxx_hidden_Variant = &callbackInfo_Trigger_WorkflowClosed{b.WorkflowClosed} + } + return m0 +} + +type case_CallbackInfo_Trigger_Variant protoreflect.FieldNumber + +func (x case_CallbackInfo_Trigger_Variant) String() string { + switch x { + case CallbackInfo_Trigger_Variant_not_set_case: + return "CallbackInfoTriggerVariantNotSetCase" + case CallbackInfo_Trigger_WorkflowClosed_case: + return "CallbackInfoTriggerWorkflowClosedCase" + default: + return strconv.Itoa(int(x)) + } + +} + +type isCallbackInfo_Trigger_Variant interface { + isCallbackInfo_Trigger_Variant() +} + +type callbackInfo_Trigger_WorkflowClosed struct { + WorkflowClosed *CallbackInfo_WorkflowClosed `protobuf:"bytes,1,opt,name=workflow_closed,json=workflowClosed,proto3,oneof"` +} + +func (*callbackInfo_Trigger_WorkflowClosed) isCallbackInfo_Trigger_Variant() {} + +type VersioningOverride_PinnedOverride struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Behavior VersioningOverride_PinnedOverrideBehavior `protobuf:"varint,1,opt,name=behavior,proto3,enum=temporal.api.workflow.v1.VersioningOverride_PinnedOverrideBehavior"` + xxx_hidden_Version *v12.WorkerDeploymentVersion `protobuf:"bytes,2,opt,name=version,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *VersioningOverride_PinnedOverride) Reset() { + *x = VersioningOverride_PinnedOverride{} + mi := &file_temporal_api_workflow_v1_message_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *VersioningOverride_PinnedOverride) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VersioningOverride_PinnedOverride) ProtoMessage() {} + +func (x *VersioningOverride_PinnedOverride) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflow_v1_message_proto_msgTypes[27] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *VersioningOverride_PinnedOverride) GetBehavior() VersioningOverride_PinnedOverrideBehavior { + if x != nil { + return x.xxx_hidden_Behavior + } + return VersioningOverride_PINNED_OVERRIDE_BEHAVIOR_UNSPECIFIED +} + +func (x *VersioningOverride_PinnedOverride) GetVersion() *v12.WorkerDeploymentVersion { + if x != nil { + return x.xxx_hidden_Version + } + return nil +} + +func (x *VersioningOverride_PinnedOverride) SetBehavior(v VersioningOverride_PinnedOverrideBehavior) { + x.xxx_hidden_Behavior = v +} + +func (x *VersioningOverride_PinnedOverride) SetVersion(v *v12.WorkerDeploymentVersion) { + x.xxx_hidden_Version = v +} + +func (x *VersioningOverride_PinnedOverride) HasVersion() bool { + if x == nil { + return false + } + return x.xxx_hidden_Version != nil +} + +func (x *VersioningOverride_PinnedOverride) ClearVersion() { + x.xxx_hidden_Version = nil +} + +type VersioningOverride_PinnedOverride_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Defaults to PINNED_OVERRIDE_BEHAVIOR_UNSPECIFIED. + // See `PinnedOverrideBehavior` for details. + Behavior VersioningOverride_PinnedOverrideBehavior + // Specifies the Worker Deployment Version to pin this workflow to. + // Required if the target workflow is not already pinned to a version. + // + // If omitted and the target workflow is already pinned, the effective + // pinned version will be the existing pinned version. + // + // If omitted and the target workflow is not pinned, the override request + // will be rejected with a PreconditionFailed error. + Version *v12.WorkerDeploymentVersion +} + +func (b0 VersioningOverride_PinnedOverride_builder) Build() *VersioningOverride_PinnedOverride { + m0 := &VersioningOverride_PinnedOverride{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Behavior = b.Behavior + x.xxx_hidden_Version = b.Version + return m0 +} + +// SignalWorkflow represents sending a signal after a workflow reset. +// Keep the parameter in sync with temporal.api.workflowservice.v1.SignalWorkflowExecutionRequest. +type PostResetOperation_SignalWorkflow struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_SignalName string `protobuf:"bytes,1,opt,name=signal_name,json=signalName,proto3"` + xxx_hidden_Input *v1.Payloads `protobuf:"bytes,2,opt,name=input,proto3"` + xxx_hidden_Header *v1.Header `protobuf:"bytes,3,opt,name=header,proto3"` + xxx_hidden_Links *[]*v1.Link `protobuf:"bytes,4,rep,name=links,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PostResetOperation_SignalWorkflow) Reset() { + *x = PostResetOperation_SignalWorkflow{} + mi := &file_temporal_api_workflow_v1_message_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PostResetOperation_SignalWorkflow) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PostResetOperation_SignalWorkflow) ProtoMessage() {} + +func (x *PostResetOperation_SignalWorkflow) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflow_v1_message_proto_msgTypes[28] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PostResetOperation_SignalWorkflow) GetSignalName() string { + if x != nil { + return x.xxx_hidden_SignalName + } + return "" +} + +func (x *PostResetOperation_SignalWorkflow) GetInput() *v1.Payloads { + if x != nil { + return x.xxx_hidden_Input + } + return nil +} + +func (x *PostResetOperation_SignalWorkflow) GetHeader() *v1.Header { + if x != nil { + return x.xxx_hidden_Header + } + return nil +} + +func (x *PostResetOperation_SignalWorkflow) GetLinks() []*v1.Link { + if x != nil { + if x.xxx_hidden_Links != nil { + return *x.xxx_hidden_Links + } + } + return nil +} + +func (x *PostResetOperation_SignalWorkflow) SetSignalName(v string) { + x.xxx_hidden_SignalName = v +} + +func (x *PostResetOperation_SignalWorkflow) SetInput(v *v1.Payloads) { + x.xxx_hidden_Input = v +} + +func (x *PostResetOperation_SignalWorkflow) SetHeader(v *v1.Header) { + x.xxx_hidden_Header = v +} + +func (x *PostResetOperation_SignalWorkflow) SetLinks(v []*v1.Link) { + x.xxx_hidden_Links = &v +} + +func (x *PostResetOperation_SignalWorkflow) HasInput() bool { + if x == nil { + return false + } + return x.xxx_hidden_Input != nil +} + +func (x *PostResetOperation_SignalWorkflow) HasHeader() bool { + if x == nil { + return false + } + return x.xxx_hidden_Header != nil +} + +func (x *PostResetOperation_SignalWorkflow) ClearInput() { + x.xxx_hidden_Input = nil +} + +func (x *PostResetOperation_SignalWorkflow) ClearHeader() { + x.xxx_hidden_Header = nil +} + +type PostResetOperation_SignalWorkflow_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The workflow author-defined name of the signal to send to the workflow. + SignalName string + // Serialized value(s) to provide with the signal. + Input *v1.Payloads + // Headers that are passed with the signal to the processing workflow. + Header *v1.Header + // Links to be associated with the WorkflowExecutionSignaled event. + Links []*v1.Link +} + +func (b0 PostResetOperation_SignalWorkflow_builder) Build() *PostResetOperation_SignalWorkflow { + m0 := &PostResetOperation_SignalWorkflow{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_SignalName = b.SignalName + x.xxx_hidden_Input = b.Input + x.xxx_hidden_Header = b.Header + x.xxx_hidden_Links = &b.Links + return m0 +} + +// UpdateWorkflowOptions represents updating workflow execution options after a workflow reset. +// Keep the parameters in sync with temporal.api.workflowservice.v1.UpdateWorkflowExecutionOptionsRequest. +type PostResetOperation_UpdateWorkflowOptions struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_WorkflowExecutionOptions *WorkflowExecutionOptions `protobuf:"bytes,1,opt,name=workflow_execution_options,json=workflowExecutionOptions,proto3"` + xxx_hidden_UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PostResetOperation_UpdateWorkflowOptions) Reset() { + *x = PostResetOperation_UpdateWorkflowOptions{} + mi := &file_temporal_api_workflow_v1_message_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PostResetOperation_UpdateWorkflowOptions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PostResetOperation_UpdateWorkflowOptions) ProtoMessage() {} + +func (x *PostResetOperation_UpdateWorkflowOptions) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflow_v1_message_proto_msgTypes[29] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PostResetOperation_UpdateWorkflowOptions) GetWorkflowExecutionOptions() *WorkflowExecutionOptions { + if x != nil { + return x.xxx_hidden_WorkflowExecutionOptions + } + return nil +} + +func (x *PostResetOperation_UpdateWorkflowOptions) GetUpdateMask() *fieldmaskpb.FieldMask { + if x != nil { + return x.xxx_hidden_UpdateMask + } + return nil +} + +func (x *PostResetOperation_UpdateWorkflowOptions) SetWorkflowExecutionOptions(v *WorkflowExecutionOptions) { + x.xxx_hidden_WorkflowExecutionOptions = v +} + +func (x *PostResetOperation_UpdateWorkflowOptions) SetUpdateMask(v *fieldmaskpb.FieldMask) { + x.xxx_hidden_UpdateMask = v +} + +func (x *PostResetOperation_UpdateWorkflowOptions) HasWorkflowExecutionOptions() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowExecutionOptions != nil +} + +func (x *PostResetOperation_UpdateWorkflowOptions) HasUpdateMask() bool { + if x == nil { + return false + } + return x.xxx_hidden_UpdateMask != nil +} + +func (x *PostResetOperation_UpdateWorkflowOptions) ClearWorkflowExecutionOptions() { + x.xxx_hidden_WorkflowExecutionOptions = nil +} + +func (x *PostResetOperation_UpdateWorkflowOptions) ClearUpdateMask() { + x.xxx_hidden_UpdateMask = nil +} + +type PostResetOperation_UpdateWorkflowOptions_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Update Workflow options that were originally specified via StartWorkflowExecution. Partial updates are accepted and controlled by update_mask. + WorkflowExecutionOptions *WorkflowExecutionOptions + // Controls which fields from `workflow_execution_options` will be applied. + // To unset a field, set it to null and use the update mask to indicate that it should be mutated. + UpdateMask *fieldmaskpb.FieldMask +} + +func (b0 PostResetOperation_UpdateWorkflowOptions_builder) Build() *PostResetOperation_UpdateWorkflowOptions { + m0 := &PostResetOperation_UpdateWorkflowOptions{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_WorkflowExecutionOptions = b.WorkflowExecutionOptions + x.xxx_hidden_UpdateMask = b.UpdateMask + return m0 +} + +var File_temporal_api_workflow_v1_message_proto protoreflect.FileDescriptor + +const file_temporal_api_workflow_v1_message_proto_rawDesc = "" + + "\n" + + "&temporal/api/workflow/v1/message.proto\x12\x18temporal.api.workflow.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a google/protobuf/field_mask.proto\x1a&temporal/api/activity/v1/message.proto\x1a\"temporal/api/enums/v1/common.proto\x1a&temporal/api/enums/v1/event_type.proto\x1a$temporal/api/enums/v1/workflow.proto\x1a$temporal/api/common/v1/message.proto\x1a(temporal/api/deployment/v1/message.proto\x1a%temporal/api/failure/v1/message.proto\x1a'temporal/api/taskqueue/v1/message.proto\x1a'temporal/api/sdk/v1/user_metadata.proto\"\x8c\r\n" + + "\x15WorkflowExecutionInfo\x12G\n" + + "\texecution\x18\x01 \x01(\v2).temporal.api.common.v1.WorkflowExecutionR\texecution\x128\n" + + "\x04type\x18\x02 \x01(\v2$.temporal.api.common.v1.WorkflowTypeR\x04type\x129\n" + + "\n" + + "start_time\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\tstartTime\x129\n" + + "\n" + + "close_time\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\tcloseTime\x12F\n" + + "\x06status\x18\x05 \x01(\x0e2..temporal.api.enums.v1.WorkflowExecutionStatusR\x06status\x12%\n" + + "\x0ehistory_length\x18\x06 \x01(\x03R\rhistoryLength\x12.\n" + + "\x13parent_namespace_id\x18\a \x01(\tR\x11parentNamespaceId\x12T\n" + + "\x10parent_execution\x18\b \x01(\v2).temporal.api.common.v1.WorkflowExecutionR\x0fparentExecution\x12A\n" + + "\x0eexecution_time\x18\t \x01(\v2\x1a.google.protobuf.TimestampR\rexecutionTime\x120\n" + + "\x04memo\x18\n" + + " \x01(\v2\x1c.temporal.api.common.v1.MemoR\x04memo\x12U\n" + + "\x11search_attributes\x18\v \x01(\v2(.temporal.api.common.v1.SearchAttributesR\x10searchAttributes\x12Q\n" + + "\x11auto_reset_points\x18\f \x01(\v2%.temporal.api.workflow.v1.ResetPointsR\x0fautoResetPoints\x12\x1d\n" + + "\n" + + "task_queue\x18\r \x01(\tR\ttaskQueue\x124\n" + + "\x16state_transition_count\x18\x0e \x01(\x03R\x14stateTransitionCount\x12,\n" + + "\x12history_size_bytes\x18\x0f \x01(\x03R\x10historySizeBytes\x12v\n" + + " most_recent_worker_version_stamp\x18\x10 \x01(\v2*.temporal.api.common.v1.WorkerVersionStampB\x02\x18\x01R\x1cmostRecentWorkerVersionStamp\x12H\n" + + "\x12execution_duration\x18\x11 \x01(\v2\x19.google.protobuf.DurationR\x11executionDuration\x12P\n" + + "\x0eroot_execution\x18\x12 \x01(\v2).temporal.api.common.v1.WorkflowExecutionR\rrootExecution\x12.\n" + + "\x11assigned_build_id\x18\x13 \x01(\tB\x02\x18\x01R\x0fassignedBuildId\x120\n" + + "\x12inherited_build_id\x18\x14 \x01(\tB\x02\x18\x01R\x10inheritedBuildId\x12 \n" + + "\ffirst_run_id\x18\x15 \x01(\tR\n" + + "firstRunId\x12b\n" + + "\x0fversioning_info\x18\x16 \x01(\v29.temporal.api.workflow.v1.WorkflowExecutionVersioningInfoR\x0eversioningInfo\x124\n" + + "\x16worker_deployment_name\x18\x17 \x01(\tR\x14workerDeploymentName\x12<\n" + + "\bpriority\x18\x18 \x01(\v2 .temporal.api.common.v1.PriorityR\bpriority\x12=\n" + + "\x1bexternal_payload_size_bytes\x18\x19 \x01(\x03R\x18externalPayloadSizeBytes\x124\n" + + "\x16external_payload_count\x18\x1a \x01(\x03R\x14externalPayloadCount\"\xd8\x05\n" + + "\x1dWorkflowExecutionExtendedInfo\x12V\n" + + "\x19execution_expiration_time\x18\x01 \x01(\v2\x1a.google.protobuf.TimestampR\x17executionExpirationTime\x12J\n" + + "\x13run_expiration_time\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\x11runExpirationTime\x12)\n" + + "\x10cancel_requested\x18\x03 \x01(\bR\x0fcancelRequested\x12B\n" + + "\x0flast_reset_time\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\rlastResetTime\x12J\n" + + "\x13original_start_time\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\x11originalStartTime\x12 \n" + + "\freset_run_id\x18\x06 \x01(\tR\n" + + "resetRunId\x12u\n" + + "\x10request_id_infos\x18\a \x03(\v2K.temporal.api.workflow.v1.WorkflowExecutionExtendedInfo.RequestIdInfosEntryR\x0erequestIdInfos\x12S\n" + + "\n" + + "pause_info\x18\b \x01(\v24.temporal.api.workflow.v1.WorkflowExecutionPauseInfoR\tpauseInfo\x1aj\n" + + "\x13RequestIdInfosEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12=\n" + + "\x05value\x18\x02 \x01(\v2'.temporal.api.workflow.v1.RequestIdInfoR\x05value:\x028\x01\"\x8d\x05\n" + + "\x1fWorkflowExecutionVersioningInfo\x12E\n" + + "\bbehavior\x18\x01 \x01(\x0e2).temporal.api.enums.v1.VersioningBehaviorR\bbehavior\x12J\n" + + "\n" + + "deployment\x18\x02 \x01(\v2&.temporal.api.deployment.v1.DeploymentB\x02\x18\x01R\n" + + "deployment\x12\x1c\n" + + "\aversion\x18\x05 \x01(\tB\x02\x18\x01R\aversion\x12b\n" + + "\x12deployment_version\x18\a \x01(\v23.temporal.api.deployment.v1.WorkerDeploymentVersionR\x11deploymentVersion\x12]\n" + + "\x13versioning_override\x18\x03 \x01(\v2,.temporal.api.workflow.v1.VersioningOverrideR\x12versioningOverride\x12g\n" + + "\x15deployment_transition\x18\x04 \x01(\v2..temporal.api.workflow.v1.DeploymentTransitionB\x02\x18\x01R\x14deploymentTransition\x12d\n" + + "\x12version_transition\x18\x06 \x01(\v25.temporal.api.workflow.v1.DeploymentVersionTransitionR\x11versionTransition\x12'\n" + + "\x0frevision_number\x18\b \x01(\x03R\x0erevisionNumber\"^\n" + + "\x14DeploymentTransition\x12F\n" + + "\n" + + "deployment\x18\x01 \x01(\v2&.temporal.api.deployment.v1.DeploymentR\n" + + "deployment\"\x9f\x01\n" + + "\x1bDeploymentVersionTransition\x12\x1c\n" + + "\aversion\x18\x01 \x01(\tB\x02\x18\x01R\aversion\x12b\n" + + "\x12deployment_version\x18\x02 \x01(\v23.temporal.api.deployment.v1.WorkerDeploymentVersionR\x11deploymentVersion\"\xaa\x03\n" + + "\x17WorkflowExecutionConfig\x12C\n" + + "\n" + + "task_queue\x18\x01 \x01(\v2$.temporal.api.taskqueue.v1.TaskQueueR\ttaskQueue\x12W\n" + + "\x1aworkflow_execution_timeout\x18\x02 \x01(\v2\x19.google.protobuf.DurationR\x18workflowExecutionTimeout\x12K\n" + + "\x14workflow_run_timeout\x18\x03 \x01(\v2\x19.google.protobuf.DurationR\x12workflowRunTimeout\x12\\\n" + + "\x1ddefault_workflow_task_timeout\x18\x04 \x01(\v2\x19.google.protobuf.DurationR\x1adefaultWorkflowTaskTimeout\x12F\n" + + "\ruser_metadata\x18\x05 \x01(\v2!.temporal.api.sdk.v1.UserMetadataR\fuserMetadata\"\xbb\x11\n" + + "\x13PendingActivityInfo\x12\x1f\n" + + "\vactivity_id\x18\x01 \x01(\tR\n" + + "activityId\x12I\n" + + "\ractivity_type\x18\x02 \x01(\v2$.temporal.api.common.v1.ActivityTypeR\factivityType\x12A\n" + + "\x05state\x18\x03 \x01(\x0e2+.temporal.api.enums.v1.PendingActivityStateR\x05state\x12M\n" + + "\x11heartbeat_details\x18\x04 \x01(\v2 .temporal.api.common.v1.PayloadsR\x10heartbeatDetails\x12J\n" + + "\x13last_heartbeat_time\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\x11lastHeartbeatTime\x12F\n" + + "\x11last_started_time\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\x0flastStartedTime\x12\x18\n" + + "\aattempt\x18\a \x01(\x05R\aattempt\x12)\n" + + "\x10maximum_attempts\x18\b \x01(\x05R\x0fmaximumAttempts\x12A\n" + + "\x0escheduled_time\x18\t \x01(\v2\x1a.google.protobuf.TimestampR\rscheduledTime\x12C\n" + + "\x0fexpiration_time\x18\n" + + " \x01(\v2\x1a.google.protobuf.TimestampR\x0eexpirationTime\x12C\n" + + "\flast_failure\x18\v \x01(\v2 .temporal.api.failure.v1.FailureR\vlastFailure\x120\n" + + "\x14last_worker_identity\x18\f \x01(\tR\x12lastWorkerIdentity\x12O\n" + + "\x15use_workflow_build_id\x18\r \x01(\v2\x16.google.protobuf.EmptyB\x02\x18\x01H\x00R\x12useWorkflowBuildId\x12T\n" + + "$last_independently_assigned_build_id\x18\x0e \x01(\tB\x02\x18\x01H\x00R lastIndependentlyAssignedBuildId\x12i\n" + + "\x19last_worker_version_stamp\x18\x0f \x01(\v2*.temporal.api.common.v1.WorkerVersionStampB\x02\x18\x01R\x16lastWorkerVersionStamp\x12O\n" + + "\x16current_retry_interval\x18\x10 \x01(\v2\x19.google.protobuf.DurationR\x14currentRetryInterval\x12W\n" + + "\x1alast_attempt_complete_time\x18\x11 \x01(\v2\x1a.google.protobuf.TimestampR\x17lastAttemptCompleteTime\x12W\n" + + "\x1anext_attempt_schedule_time\x18\x12 \x01(\v2\x1a.google.protobuf.TimestampR\x17nextAttemptScheduleTime\x12\x16\n" + + "\x06paused\x18\x13 \x01(\bR\x06paused\x12S\n" + + "\x0flast_deployment\x18\x14 \x01(\v2&.temporal.api.deployment.v1.DeploymentB\x02\x18\x01R\x0elastDeployment\x12G\n" + + "\x1elast_worker_deployment_version\x18\x15 \x01(\tB\x02\x18\x01R\x1blastWorkerDeploymentVersion\x12k\n" + + "\x17last_deployment_version\x18\x19 \x01(\v23.temporal.api.deployment.v1.WorkerDeploymentVersionR\x15lastDeploymentVersion\x12<\n" + + "\bpriority\x18\x16 \x01(\v2 .temporal.api.common.v1.PriorityR\bpriority\x12V\n" + + "\n" + + "pause_info\x18\x17 \x01(\v27.temporal.api.workflow.v1.PendingActivityInfo.PauseInfoR\tpauseInfo\x12T\n" + + "\x10activity_options\x18\x18 \x01(\v2).temporal.api.activity.v1.ActivityOptionsR\x0factivityOptions\x1a\x94\x03\n" + + "\tPauseInfo\x129\n" + + "\n" + + "pause_time\x18\x01 \x01(\v2\x1a.google.protobuf.TimestampR\tpauseTime\x12X\n" + + "\x06manual\x18\x02 \x01(\v2>.temporal.api.workflow.v1.PendingActivityInfo.PauseInfo.ManualH\x00R\x06manual\x12R\n" + + "\x04rule\x18\x04 \x01(\v2<.temporal.api.workflow.v1.PendingActivityInfo.PauseInfo.RuleH\x00R\x04rule\x1a<\n" + + "\x06Manual\x12\x1a\n" + + "\bidentity\x18\x01 \x01(\tR\bidentity\x12\x16\n" + + "\x06reason\x18\x02 \x01(\tR\x06reason\x1aS\n" + + "\x04Rule\x12\x17\n" + + "\arule_id\x18\x01 \x01(\tR\x06ruleId\x12\x1a\n" + + "\bidentity\x18\x02 \x01(\tR\bidentity\x12\x16\n" + + "\x06reason\x18\x03 \x01(\tR\x06reasonB\v\n" + + "\tpaused_byB\x13\n" + + "\x11assigned_build_id\"\xfe\x01\n" + + "\x19PendingChildExecutionInfo\x12\x1f\n" + + "\vworkflow_id\x18\x01 \x01(\tR\n" + + "workflowId\x12\x15\n" + + "\x06run_id\x18\x02 \x01(\tR\x05runId\x12,\n" + + "\x12workflow_type_name\x18\x03 \x01(\tR\x10workflowTypeName\x12!\n" + + "\finitiated_id\x18\x04 \x01(\x03R\vinitiatedId\x12X\n" + + "\x13parent_close_policy\x18\x05 \x01(\x0e2(.temporal.api.enums.v1.ParentClosePolicyR\x11parentClosePolicy\"\xd0\x02\n" + + "\x17PendingWorkflowTaskInfo\x12E\n" + + "\x05state\x18\x01 \x01(\x0e2/.temporal.api.enums.v1.PendingWorkflowTaskStateR\x05state\x12A\n" + + "\x0escheduled_time\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\rscheduledTime\x12R\n" + + "\x17original_scheduled_time\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\x15originalScheduledTime\x12=\n" + + "\fstarted_time\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\vstartedTime\x12\x18\n" + + "\aattempt\x18\x05 \x01(\x05R\aattempt\"O\n" + + "\vResetPoints\x12@\n" + + "\x06points\x18\x01 \x03(\v2(.temporal.api.workflow.v1.ResetPointInfoR\x06points\"\xd1\x02\n" + + "\x0eResetPointInfo\x12\x19\n" + + "\bbuild_id\x18\a \x01(\tR\abuildId\x12+\n" + + "\x0fbinary_checksum\x18\x01 \x01(\tB\x02\x18\x01R\x0ebinaryChecksum\x12\x15\n" + + "\x06run_id\x18\x02 \x01(\tR\x05runId\x12F\n" + + " first_workflow_task_completed_id\x18\x03 \x01(\x03R\x1cfirstWorkflowTaskCompletedId\x12;\n" + + "\vcreate_time\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\n" + + "createTime\x12;\n" + + "\vexpire_time\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\n" + + "expireTime\x12\x1e\n" + + "\n" + + "resettable\x18\x06 \x01(\bR\n" + + "resettable\"\xf2\b\n" + + "\x18NewWorkflowExecutionInfo\x12\x1f\n" + + "\vworkflow_id\x18\x01 \x01(\tR\n" + + "workflowId\x12I\n" + + "\rworkflow_type\x18\x02 \x01(\v2$.temporal.api.common.v1.WorkflowTypeR\fworkflowType\x12C\n" + + "\n" + + "task_queue\x18\x03 \x01(\v2$.temporal.api.taskqueue.v1.TaskQueueR\ttaskQueue\x126\n" + + "\x05input\x18\x04 \x01(\v2 .temporal.api.common.v1.PayloadsR\x05input\x12W\n" + + "\x1aworkflow_execution_timeout\x18\x05 \x01(\v2\x19.google.protobuf.DurationR\x18workflowExecutionTimeout\x12K\n" + + "\x14workflow_run_timeout\x18\x06 \x01(\v2\x19.google.protobuf.DurationR\x12workflowRunTimeout\x12M\n" + + "\x15workflow_task_timeout\x18\a \x01(\v2\x19.google.protobuf.DurationR\x13workflowTaskTimeout\x12e\n" + + "\x18workflow_id_reuse_policy\x18\b \x01(\x0e2,.temporal.api.enums.v1.WorkflowIdReusePolicyR\x15workflowIdReusePolicy\x12F\n" + + "\fretry_policy\x18\t \x01(\v2#.temporal.api.common.v1.RetryPolicyR\vretryPolicy\x12#\n" + + "\rcron_schedule\x18\n" + + " \x01(\tR\fcronSchedule\x120\n" + + "\x04memo\x18\v \x01(\v2\x1c.temporal.api.common.v1.MemoR\x04memo\x12U\n" + + "\x11search_attributes\x18\f \x01(\v2(.temporal.api.common.v1.SearchAttributesR\x10searchAttributes\x126\n" + + "\x06header\x18\r \x01(\v2\x1e.temporal.api.common.v1.HeaderR\x06header\x12F\n" + + "\ruser_metadata\x18\x0e \x01(\v2!.temporal.api.sdk.v1.UserMetadataR\fuserMetadata\x12]\n" + + "\x13versioning_override\x18\x0f \x01(\v2,.temporal.api.workflow.v1.VersioningOverrideR\x12versioningOverride\x12<\n" + + "\bpriority\x18\x10 \x01(\v2 .temporal.api.common.v1.PriorityR\bpriority\"\xec\x05\n" + + "\fCallbackInfo\x12<\n" + + "\bcallback\x18\x01 \x01(\v2 .temporal.api.common.v1.CallbackR\bcallback\x12H\n" + + "\atrigger\x18\x02 \x01(\v2..temporal.api.workflow.v1.CallbackInfo.TriggerR\atrigger\x12G\n" + + "\x11registration_time\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\x10registrationTime\x12:\n" + + "\x05state\x18\x04 \x01(\x0e2$.temporal.api.enums.v1.CallbackStateR\x05state\x12\x18\n" + + "\aattempt\x18\x05 \x01(\x05R\aattempt\x12W\n" + + "\x1alast_attempt_complete_time\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\x17lastAttemptCompleteTime\x12R\n" + + "\x14last_attempt_failure\x18\a \x01(\v2 .temporal.api.failure.v1.FailureR\x12lastAttemptFailure\x12W\n" + + "\x1anext_attempt_schedule_time\x18\b \x01(\v2\x1a.google.protobuf.TimestampR\x17nextAttemptScheduleTime\x12%\n" + + "\x0eblocked_reason\x18\t \x01(\tR\rblockedReason\x1a\x10\n" + + "\x0eWorkflowClosed\x1av\n" + + "\aTrigger\x12`\n" + + "\x0fworkflow_closed\x18\x01 \x01(\v25.temporal.api.workflow.v1.CallbackInfo.WorkflowClosedH\x00R\x0eworkflowClosedB\t\n" + + "\avariant\"\xa3\b\n" + + "\x19PendingNexusOperationInfo\x12\x1a\n" + + "\bendpoint\x18\x01 \x01(\tR\bendpoint\x12\x18\n" + + "\aservice\x18\x02 \x01(\tR\aservice\x12\x1c\n" + + "\toperation\x18\x03 \x01(\tR\toperation\x12%\n" + + "\foperation_id\x18\x04 \x01(\tB\x02\x18\x01R\voperationId\x12T\n" + + "\x19schedule_to_close_timeout\x18\x05 \x01(\v2\x19.google.protobuf.DurationR\x16scheduleToCloseTimeout\x12A\n" + + "\x0escheduled_time\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\rscheduledTime\x12G\n" + + "\x05state\x18\a \x01(\x0e21.temporal.api.enums.v1.PendingNexusOperationStateR\x05state\x12\x18\n" + + "\aattempt\x18\b \x01(\x05R\aattempt\x12W\n" + + "\x1alast_attempt_complete_time\x18\t \x01(\v2\x1a.google.protobuf.TimestampR\x17lastAttemptCompleteTime\x12R\n" + + "\x14last_attempt_failure\x18\n" + + " \x01(\v2 .temporal.api.failure.v1.FailureR\x12lastAttemptFailure\x12W\n" + + "\x1anext_attempt_schedule_time\x18\v \x01(\v2\x1a.google.protobuf.TimestampR\x17nextAttemptScheduleTime\x12e\n" + + "\x11cancellation_info\x18\f \x01(\v28.temporal.api.workflow.v1.NexusOperationCancellationInfoR\x10cancellationInfo\x12,\n" + + "\x12scheduled_event_id\x18\r \x01(\x03R\x10scheduledEventId\x12%\n" + + "\x0eblocked_reason\x18\x0e \x01(\tR\rblockedReason\x12'\n" + + "\x0foperation_token\x18\x0f \x01(\tR\x0eoperationToken\x12T\n" + + "\x19schedule_to_start_timeout\x18\x10 \x01(\v2\x19.google.protobuf.DurationR\x16scheduleToStartTimeout\x12N\n" + + "\x16start_to_close_timeout\x18\x11 \x01(\v2\x19.google.protobuf.DurationR\x13startToCloseTimeout\"\xf8\x03\n" + + "\x1eNexusOperationCancellationInfo\x12A\n" + + "\x0erequested_time\x18\x01 \x01(\v2\x1a.google.protobuf.TimestampR\rrequestedTime\x12L\n" + + "\x05state\x18\x02 \x01(\x0e26.temporal.api.enums.v1.NexusOperationCancellationStateR\x05state\x12\x18\n" + + "\aattempt\x18\x03 \x01(\x05R\aattempt\x12W\n" + + "\x1alast_attempt_complete_time\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\x17lastAttemptCompleteTime\x12R\n" + + "\x14last_attempt_failure\x18\x05 \x01(\v2 .temporal.api.failure.v1.FailureR\x12lastAttemptFailure\x12W\n" + + "\x1anext_attempt_schedule_time\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\x17nextAttemptScheduleTime\x12%\n" + + "\x0eblocked_reason\x18\a \x01(\tR\rblockedReason\"\xb7\x01\n" + + "\x18WorkflowExecutionOptions\x12]\n" + + "\x13versioning_override\x18\x01 \x01(\v2,.temporal.api.workflow.v1.VersioningOverrideR\x12versioningOverride\x12<\n" + + "\bpriority\x18\x02 \x01(\v2 .temporal.api.common.v1.PriorityR\bpriority\"\x8a\x05\n" + + "\x12VersioningOverride\x12U\n" + + "\x06pinned\x18\x03 \x01(\v2;.temporal.api.workflow.v1.VersioningOverride.PinnedOverrideH\x00R\x06pinned\x12#\n" + + "\fauto_upgrade\x18\x04 \x01(\bH\x00R\vautoUpgrade\x12I\n" + + "\bbehavior\x18\x01 \x01(\x0e2).temporal.api.enums.v1.VersioningBehaviorB\x02\x18\x01R\bbehavior\x12J\n" + + "\n" + + "deployment\x18\x02 \x01(\v2&.temporal.api.deployment.v1.DeploymentB\x02\x18\x01R\n" + + "deployment\x12)\n" + + "\x0epinned_version\x18\t \x01(\tB\x02\x18\x01R\rpinnedVersion\x1a\xc0\x01\n" + + "\x0ePinnedOverride\x12_\n" + + "\bbehavior\x18\x01 \x01(\x0e2C.temporal.api.workflow.v1.VersioningOverride.PinnedOverrideBehaviorR\bbehavior\x12M\n" + + "\aversion\x18\x02 \x01(\v23.temporal.api.deployment.v1.WorkerDeploymentVersionR\aversion\"g\n" + + "\x16PinnedOverrideBehavior\x12(\n" + + "$PINNED_OVERRIDE_BEHAVIOR_UNSPECIFIED\x10\x00\x12#\n" + + "\x1fPINNED_OVERRIDE_BEHAVIOR_PINNED\x10\x01B\n" + + "\n" + + "\boverride\"\xa2\x01\n" + + "\x11OnConflictOptions\x12*\n" + + "\x11attach_request_id\x18\x01 \x01(\bR\x0fattachRequestId\x12>\n" + + "\x1battach_completion_callbacks\x18\x02 \x01(\bR\x19attachCompletionCallbacks\x12!\n" + + "\fattach_links\x18\x03 \x01(\bR\vattachLinks\"\x87\x01\n" + + "\rRequestIdInfo\x12?\n" + + "\n" + + "event_type\x18\x01 \x01(\x0e2 .temporal.api.enums.v1.EventTypeR\teventType\x12\x19\n" + + "\bevent_id\x18\x02 \x01(\x03R\aeventId\x12\x1a\n" + + "\bbuffered\x18\x03 \x01(\bR\bbuffered\"\xa6\x05\n" + + "\x12PostResetOperation\x12f\n" + + "\x0fsignal_workflow\x18\x01 \x01(\v2;.temporal.api.workflow.v1.PostResetOperation.SignalWorkflowH\x00R\x0esignalWorkflow\x12|\n" + + "\x17update_workflow_options\x18\x02 \x01(\v2B.temporal.api.workflow.v1.PostResetOperation.UpdateWorkflowOptionsH\x00R\x15updateWorkflowOptions\x1a\xd5\x01\n" + + "\x0eSignalWorkflow\x12\x1f\n" + + "\vsignal_name\x18\x01 \x01(\tR\n" + + "signalName\x126\n" + + "\x05input\x18\x02 \x01(\v2 .temporal.api.common.v1.PayloadsR\x05input\x126\n" + + "\x06header\x18\x03 \x01(\v2\x1e.temporal.api.common.v1.HeaderR\x06header\x122\n" + + "\x05links\x18\x04 \x03(\v2\x1c.temporal.api.common.v1.LinkR\x05links\x1a\xc6\x01\n" + + "\x15UpdateWorkflowOptions\x12p\n" + + "\x1aworkflow_execution_options\x18\x01 \x01(\v22.temporal.api.workflow.v1.WorkflowExecutionOptionsR\x18workflowExecutionOptions\x12;\n" + + "\vupdate_mask\x18\x02 \x01(\v2\x1a.google.protobuf.FieldMaskR\n" + + "updateMaskB\t\n" + + "\avariant\"\x8d\x01\n" + + "\x1aWorkflowExecutionPauseInfo\x12\x1a\n" + + "\bidentity\x18\x01 \x01(\tR\bidentity\x12;\n" + + "\vpaused_time\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\n" + + "pausedTime\x12\x16\n" + + "\x06reason\x18\x03 \x01(\tR\x06reasonB\x93\x01\n" + + "\x1bio.temporal.api.workflow.v1B\fMessageProtoP\x01Z'go.temporal.io/api/workflow/v1;workflow\xaa\x02\x1aTemporalio.Api.Workflow.V1\xea\x02\x1dTemporalio::Api::Workflow::V1b\x06proto3" + +var file_temporal_api_workflow_v1_message_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_temporal_api_workflow_v1_message_proto_msgTypes = make([]protoimpl.MessageInfo, 30) +var file_temporal_api_workflow_v1_message_proto_goTypes = []any{ + (VersioningOverride_PinnedOverrideBehavior)(0), // 0: temporal.api.workflow.v1.VersioningOverride.PinnedOverrideBehavior + (*WorkflowExecutionInfo)(nil), // 1: temporal.api.workflow.v1.WorkflowExecutionInfo + (*WorkflowExecutionExtendedInfo)(nil), // 2: temporal.api.workflow.v1.WorkflowExecutionExtendedInfo + (*WorkflowExecutionVersioningInfo)(nil), // 3: temporal.api.workflow.v1.WorkflowExecutionVersioningInfo + (*DeploymentTransition)(nil), // 4: temporal.api.workflow.v1.DeploymentTransition + (*DeploymentVersionTransition)(nil), // 5: temporal.api.workflow.v1.DeploymentVersionTransition + (*WorkflowExecutionConfig)(nil), // 6: temporal.api.workflow.v1.WorkflowExecutionConfig + (*PendingActivityInfo)(nil), // 7: temporal.api.workflow.v1.PendingActivityInfo + (*PendingChildExecutionInfo)(nil), // 8: temporal.api.workflow.v1.PendingChildExecutionInfo + (*PendingWorkflowTaskInfo)(nil), // 9: temporal.api.workflow.v1.PendingWorkflowTaskInfo + (*ResetPoints)(nil), // 10: temporal.api.workflow.v1.ResetPoints + (*ResetPointInfo)(nil), // 11: temporal.api.workflow.v1.ResetPointInfo + (*NewWorkflowExecutionInfo)(nil), // 12: temporal.api.workflow.v1.NewWorkflowExecutionInfo + (*CallbackInfo)(nil), // 13: temporal.api.workflow.v1.CallbackInfo + (*PendingNexusOperationInfo)(nil), // 14: temporal.api.workflow.v1.PendingNexusOperationInfo + (*NexusOperationCancellationInfo)(nil), // 15: temporal.api.workflow.v1.NexusOperationCancellationInfo + (*WorkflowExecutionOptions)(nil), // 16: temporal.api.workflow.v1.WorkflowExecutionOptions + (*VersioningOverride)(nil), // 17: temporal.api.workflow.v1.VersioningOverride + (*OnConflictOptions)(nil), // 18: temporal.api.workflow.v1.OnConflictOptions + (*RequestIdInfo)(nil), // 19: temporal.api.workflow.v1.RequestIdInfo + (*PostResetOperation)(nil), // 20: temporal.api.workflow.v1.PostResetOperation + (*WorkflowExecutionPauseInfo)(nil), // 21: temporal.api.workflow.v1.WorkflowExecutionPauseInfo + nil, // 22: temporal.api.workflow.v1.WorkflowExecutionExtendedInfo.RequestIdInfosEntry + (*PendingActivityInfo_PauseInfo)(nil), // 23: temporal.api.workflow.v1.PendingActivityInfo.PauseInfo + (*PendingActivityInfo_PauseInfo_Manual)(nil), // 24: temporal.api.workflow.v1.PendingActivityInfo.PauseInfo.Manual + (*PendingActivityInfo_PauseInfo_Rule)(nil), // 25: temporal.api.workflow.v1.PendingActivityInfo.PauseInfo.Rule + (*CallbackInfo_WorkflowClosed)(nil), // 26: temporal.api.workflow.v1.CallbackInfo.WorkflowClosed + (*CallbackInfo_Trigger)(nil), // 27: temporal.api.workflow.v1.CallbackInfo.Trigger + (*VersioningOverride_PinnedOverride)(nil), // 28: temporal.api.workflow.v1.VersioningOverride.PinnedOverride + (*PostResetOperation_SignalWorkflow)(nil), // 29: temporal.api.workflow.v1.PostResetOperation.SignalWorkflow + (*PostResetOperation_UpdateWorkflowOptions)(nil), // 30: temporal.api.workflow.v1.PostResetOperation.UpdateWorkflowOptions + (*v1.WorkflowExecution)(nil), // 31: temporal.api.common.v1.WorkflowExecution + (*v1.WorkflowType)(nil), // 32: temporal.api.common.v1.WorkflowType + (*timestamppb.Timestamp)(nil), // 33: google.protobuf.Timestamp + (v11.WorkflowExecutionStatus)(0), // 34: temporal.api.enums.v1.WorkflowExecutionStatus + (*v1.Memo)(nil), // 35: temporal.api.common.v1.Memo + (*v1.SearchAttributes)(nil), // 36: temporal.api.common.v1.SearchAttributes + (*v1.WorkerVersionStamp)(nil), // 37: temporal.api.common.v1.WorkerVersionStamp + (*durationpb.Duration)(nil), // 38: google.protobuf.Duration + (*v1.Priority)(nil), // 39: temporal.api.common.v1.Priority + (v11.VersioningBehavior)(0), // 40: temporal.api.enums.v1.VersioningBehavior + (*v12.Deployment)(nil), // 41: temporal.api.deployment.v1.Deployment + (*v12.WorkerDeploymentVersion)(nil), // 42: temporal.api.deployment.v1.WorkerDeploymentVersion + (*v13.TaskQueue)(nil), // 43: temporal.api.taskqueue.v1.TaskQueue + (*v14.UserMetadata)(nil), // 44: temporal.api.sdk.v1.UserMetadata + (*v1.ActivityType)(nil), // 45: temporal.api.common.v1.ActivityType + (v11.PendingActivityState)(0), // 46: temporal.api.enums.v1.PendingActivityState + (*v1.Payloads)(nil), // 47: temporal.api.common.v1.Payloads + (*v15.Failure)(nil), // 48: temporal.api.failure.v1.Failure + (*emptypb.Empty)(nil), // 49: google.protobuf.Empty + (*v16.ActivityOptions)(nil), // 50: temporal.api.activity.v1.ActivityOptions + (v11.ParentClosePolicy)(0), // 51: temporal.api.enums.v1.ParentClosePolicy + (v11.PendingWorkflowTaskState)(0), // 52: temporal.api.enums.v1.PendingWorkflowTaskState + (v11.WorkflowIdReusePolicy)(0), // 53: temporal.api.enums.v1.WorkflowIdReusePolicy + (*v1.RetryPolicy)(nil), // 54: temporal.api.common.v1.RetryPolicy + (*v1.Header)(nil), // 55: temporal.api.common.v1.Header + (*v1.Callback)(nil), // 56: temporal.api.common.v1.Callback + (v11.CallbackState)(0), // 57: temporal.api.enums.v1.CallbackState + (v11.PendingNexusOperationState)(0), // 58: temporal.api.enums.v1.PendingNexusOperationState + (v11.NexusOperationCancellationState)(0), // 59: temporal.api.enums.v1.NexusOperationCancellationState + (v11.EventType)(0), // 60: temporal.api.enums.v1.EventType + (*v1.Link)(nil), // 61: temporal.api.common.v1.Link + (*fieldmaskpb.FieldMask)(nil), // 62: google.protobuf.FieldMask +} +var file_temporal_api_workflow_v1_message_proto_depIdxs = []int32{ + 31, // 0: temporal.api.workflow.v1.WorkflowExecutionInfo.execution:type_name -> temporal.api.common.v1.WorkflowExecution + 32, // 1: temporal.api.workflow.v1.WorkflowExecutionInfo.type:type_name -> temporal.api.common.v1.WorkflowType + 33, // 2: temporal.api.workflow.v1.WorkflowExecutionInfo.start_time:type_name -> google.protobuf.Timestamp + 33, // 3: temporal.api.workflow.v1.WorkflowExecutionInfo.close_time:type_name -> google.protobuf.Timestamp + 34, // 4: temporal.api.workflow.v1.WorkflowExecutionInfo.status:type_name -> temporal.api.enums.v1.WorkflowExecutionStatus + 31, // 5: temporal.api.workflow.v1.WorkflowExecutionInfo.parent_execution:type_name -> temporal.api.common.v1.WorkflowExecution + 33, // 6: temporal.api.workflow.v1.WorkflowExecutionInfo.execution_time:type_name -> google.protobuf.Timestamp + 35, // 7: temporal.api.workflow.v1.WorkflowExecutionInfo.memo:type_name -> temporal.api.common.v1.Memo + 36, // 8: temporal.api.workflow.v1.WorkflowExecutionInfo.search_attributes:type_name -> temporal.api.common.v1.SearchAttributes + 10, // 9: temporal.api.workflow.v1.WorkflowExecutionInfo.auto_reset_points:type_name -> temporal.api.workflow.v1.ResetPoints + 37, // 10: temporal.api.workflow.v1.WorkflowExecutionInfo.most_recent_worker_version_stamp:type_name -> temporal.api.common.v1.WorkerVersionStamp + 38, // 11: temporal.api.workflow.v1.WorkflowExecutionInfo.execution_duration:type_name -> google.protobuf.Duration + 31, // 12: temporal.api.workflow.v1.WorkflowExecutionInfo.root_execution:type_name -> temporal.api.common.v1.WorkflowExecution + 3, // 13: temporal.api.workflow.v1.WorkflowExecutionInfo.versioning_info:type_name -> temporal.api.workflow.v1.WorkflowExecutionVersioningInfo + 39, // 14: temporal.api.workflow.v1.WorkflowExecutionInfo.priority:type_name -> temporal.api.common.v1.Priority + 33, // 15: temporal.api.workflow.v1.WorkflowExecutionExtendedInfo.execution_expiration_time:type_name -> google.protobuf.Timestamp + 33, // 16: temporal.api.workflow.v1.WorkflowExecutionExtendedInfo.run_expiration_time:type_name -> google.protobuf.Timestamp + 33, // 17: temporal.api.workflow.v1.WorkflowExecutionExtendedInfo.last_reset_time:type_name -> google.protobuf.Timestamp + 33, // 18: temporal.api.workflow.v1.WorkflowExecutionExtendedInfo.original_start_time:type_name -> google.protobuf.Timestamp + 22, // 19: temporal.api.workflow.v1.WorkflowExecutionExtendedInfo.request_id_infos:type_name -> temporal.api.workflow.v1.WorkflowExecutionExtendedInfo.RequestIdInfosEntry + 21, // 20: temporal.api.workflow.v1.WorkflowExecutionExtendedInfo.pause_info:type_name -> temporal.api.workflow.v1.WorkflowExecutionPauseInfo + 40, // 21: temporal.api.workflow.v1.WorkflowExecutionVersioningInfo.behavior:type_name -> temporal.api.enums.v1.VersioningBehavior + 41, // 22: temporal.api.workflow.v1.WorkflowExecutionVersioningInfo.deployment:type_name -> temporal.api.deployment.v1.Deployment + 42, // 23: temporal.api.workflow.v1.WorkflowExecutionVersioningInfo.deployment_version:type_name -> temporal.api.deployment.v1.WorkerDeploymentVersion + 17, // 24: temporal.api.workflow.v1.WorkflowExecutionVersioningInfo.versioning_override:type_name -> temporal.api.workflow.v1.VersioningOverride + 4, // 25: temporal.api.workflow.v1.WorkflowExecutionVersioningInfo.deployment_transition:type_name -> temporal.api.workflow.v1.DeploymentTransition + 5, // 26: temporal.api.workflow.v1.WorkflowExecutionVersioningInfo.version_transition:type_name -> temporal.api.workflow.v1.DeploymentVersionTransition + 41, // 27: temporal.api.workflow.v1.DeploymentTransition.deployment:type_name -> temporal.api.deployment.v1.Deployment + 42, // 28: temporal.api.workflow.v1.DeploymentVersionTransition.deployment_version:type_name -> temporal.api.deployment.v1.WorkerDeploymentVersion + 43, // 29: temporal.api.workflow.v1.WorkflowExecutionConfig.task_queue:type_name -> temporal.api.taskqueue.v1.TaskQueue + 38, // 30: temporal.api.workflow.v1.WorkflowExecutionConfig.workflow_execution_timeout:type_name -> google.protobuf.Duration + 38, // 31: temporal.api.workflow.v1.WorkflowExecutionConfig.workflow_run_timeout:type_name -> google.protobuf.Duration + 38, // 32: temporal.api.workflow.v1.WorkflowExecutionConfig.default_workflow_task_timeout:type_name -> google.protobuf.Duration + 44, // 33: temporal.api.workflow.v1.WorkflowExecutionConfig.user_metadata:type_name -> temporal.api.sdk.v1.UserMetadata + 45, // 34: temporal.api.workflow.v1.PendingActivityInfo.activity_type:type_name -> temporal.api.common.v1.ActivityType + 46, // 35: temporal.api.workflow.v1.PendingActivityInfo.state:type_name -> temporal.api.enums.v1.PendingActivityState + 47, // 36: temporal.api.workflow.v1.PendingActivityInfo.heartbeat_details:type_name -> temporal.api.common.v1.Payloads + 33, // 37: temporal.api.workflow.v1.PendingActivityInfo.last_heartbeat_time:type_name -> google.protobuf.Timestamp + 33, // 38: temporal.api.workflow.v1.PendingActivityInfo.last_started_time:type_name -> google.protobuf.Timestamp + 33, // 39: temporal.api.workflow.v1.PendingActivityInfo.scheduled_time:type_name -> google.protobuf.Timestamp + 33, // 40: temporal.api.workflow.v1.PendingActivityInfo.expiration_time:type_name -> google.protobuf.Timestamp + 48, // 41: temporal.api.workflow.v1.PendingActivityInfo.last_failure:type_name -> temporal.api.failure.v1.Failure + 49, // 42: temporal.api.workflow.v1.PendingActivityInfo.use_workflow_build_id:type_name -> google.protobuf.Empty + 37, // 43: temporal.api.workflow.v1.PendingActivityInfo.last_worker_version_stamp:type_name -> temporal.api.common.v1.WorkerVersionStamp + 38, // 44: temporal.api.workflow.v1.PendingActivityInfo.current_retry_interval:type_name -> google.protobuf.Duration + 33, // 45: temporal.api.workflow.v1.PendingActivityInfo.last_attempt_complete_time:type_name -> google.protobuf.Timestamp + 33, // 46: temporal.api.workflow.v1.PendingActivityInfo.next_attempt_schedule_time:type_name -> google.protobuf.Timestamp + 41, // 47: temporal.api.workflow.v1.PendingActivityInfo.last_deployment:type_name -> temporal.api.deployment.v1.Deployment + 42, // 48: temporal.api.workflow.v1.PendingActivityInfo.last_deployment_version:type_name -> temporal.api.deployment.v1.WorkerDeploymentVersion + 39, // 49: temporal.api.workflow.v1.PendingActivityInfo.priority:type_name -> temporal.api.common.v1.Priority + 23, // 50: temporal.api.workflow.v1.PendingActivityInfo.pause_info:type_name -> temporal.api.workflow.v1.PendingActivityInfo.PauseInfo + 50, // 51: temporal.api.workflow.v1.PendingActivityInfo.activity_options:type_name -> temporal.api.activity.v1.ActivityOptions + 51, // 52: temporal.api.workflow.v1.PendingChildExecutionInfo.parent_close_policy:type_name -> temporal.api.enums.v1.ParentClosePolicy + 52, // 53: temporal.api.workflow.v1.PendingWorkflowTaskInfo.state:type_name -> temporal.api.enums.v1.PendingWorkflowTaskState + 33, // 54: temporal.api.workflow.v1.PendingWorkflowTaskInfo.scheduled_time:type_name -> google.protobuf.Timestamp + 33, // 55: temporal.api.workflow.v1.PendingWorkflowTaskInfo.original_scheduled_time:type_name -> google.protobuf.Timestamp + 33, // 56: temporal.api.workflow.v1.PendingWorkflowTaskInfo.started_time:type_name -> google.protobuf.Timestamp + 11, // 57: temporal.api.workflow.v1.ResetPoints.points:type_name -> temporal.api.workflow.v1.ResetPointInfo + 33, // 58: temporal.api.workflow.v1.ResetPointInfo.create_time:type_name -> google.protobuf.Timestamp + 33, // 59: temporal.api.workflow.v1.ResetPointInfo.expire_time:type_name -> google.protobuf.Timestamp + 32, // 60: temporal.api.workflow.v1.NewWorkflowExecutionInfo.workflow_type:type_name -> temporal.api.common.v1.WorkflowType + 43, // 61: temporal.api.workflow.v1.NewWorkflowExecutionInfo.task_queue:type_name -> temporal.api.taskqueue.v1.TaskQueue + 47, // 62: temporal.api.workflow.v1.NewWorkflowExecutionInfo.input:type_name -> temporal.api.common.v1.Payloads + 38, // 63: temporal.api.workflow.v1.NewWorkflowExecutionInfo.workflow_execution_timeout:type_name -> google.protobuf.Duration + 38, // 64: temporal.api.workflow.v1.NewWorkflowExecutionInfo.workflow_run_timeout:type_name -> google.protobuf.Duration + 38, // 65: temporal.api.workflow.v1.NewWorkflowExecutionInfo.workflow_task_timeout:type_name -> google.protobuf.Duration + 53, // 66: temporal.api.workflow.v1.NewWorkflowExecutionInfo.workflow_id_reuse_policy:type_name -> temporal.api.enums.v1.WorkflowIdReusePolicy + 54, // 67: temporal.api.workflow.v1.NewWorkflowExecutionInfo.retry_policy:type_name -> temporal.api.common.v1.RetryPolicy + 35, // 68: temporal.api.workflow.v1.NewWorkflowExecutionInfo.memo:type_name -> temporal.api.common.v1.Memo + 36, // 69: temporal.api.workflow.v1.NewWorkflowExecutionInfo.search_attributes:type_name -> temporal.api.common.v1.SearchAttributes + 55, // 70: temporal.api.workflow.v1.NewWorkflowExecutionInfo.header:type_name -> temporal.api.common.v1.Header + 44, // 71: temporal.api.workflow.v1.NewWorkflowExecutionInfo.user_metadata:type_name -> temporal.api.sdk.v1.UserMetadata + 17, // 72: temporal.api.workflow.v1.NewWorkflowExecutionInfo.versioning_override:type_name -> temporal.api.workflow.v1.VersioningOverride + 39, // 73: temporal.api.workflow.v1.NewWorkflowExecutionInfo.priority:type_name -> temporal.api.common.v1.Priority + 56, // 74: temporal.api.workflow.v1.CallbackInfo.callback:type_name -> temporal.api.common.v1.Callback + 27, // 75: temporal.api.workflow.v1.CallbackInfo.trigger:type_name -> temporal.api.workflow.v1.CallbackInfo.Trigger + 33, // 76: temporal.api.workflow.v1.CallbackInfo.registration_time:type_name -> google.protobuf.Timestamp + 57, // 77: temporal.api.workflow.v1.CallbackInfo.state:type_name -> temporal.api.enums.v1.CallbackState + 33, // 78: temporal.api.workflow.v1.CallbackInfo.last_attempt_complete_time:type_name -> google.protobuf.Timestamp + 48, // 79: temporal.api.workflow.v1.CallbackInfo.last_attempt_failure:type_name -> temporal.api.failure.v1.Failure + 33, // 80: temporal.api.workflow.v1.CallbackInfo.next_attempt_schedule_time:type_name -> google.protobuf.Timestamp + 38, // 81: temporal.api.workflow.v1.PendingNexusOperationInfo.schedule_to_close_timeout:type_name -> google.protobuf.Duration + 33, // 82: temporal.api.workflow.v1.PendingNexusOperationInfo.scheduled_time:type_name -> google.protobuf.Timestamp + 58, // 83: temporal.api.workflow.v1.PendingNexusOperationInfo.state:type_name -> temporal.api.enums.v1.PendingNexusOperationState + 33, // 84: temporal.api.workflow.v1.PendingNexusOperationInfo.last_attempt_complete_time:type_name -> google.protobuf.Timestamp + 48, // 85: temporal.api.workflow.v1.PendingNexusOperationInfo.last_attempt_failure:type_name -> temporal.api.failure.v1.Failure + 33, // 86: temporal.api.workflow.v1.PendingNexusOperationInfo.next_attempt_schedule_time:type_name -> google.protobuf.Timestamp + 15, // 87: temporal.api.workflow.v1.PendingNexusOperationInfo.cancellation_info:type_name -> temporal.api.workflow.v1.NexusOperationCancellationInfo + 38, // 88: temporal.api.workflow.v1.PendingNexusOperationInfo.schedule_to_start_timeout:type_name -> google.protobuf.Duration + 38, // 89: temporal.api.workflow.v1.PendingNexusOperationInfo.start_to_close_timeout:type_name -> google.protobuf.Duration + 33, // 90: temporal.api.workflow.v1.NexusOperationCancellationInfo.requested_time:type_name -> google.protobuf.Timestamp + 59, // 91: temporal.api.workflow.v1.NexusOperationCancellationInfo.state:type_name -> temporal.api.enums.v1.NexusOperationCancellationState + 33, // 92: temporal.api.workflow.v1.NexusOperationCancellationInfo.last_attempt_complete_time:type_name -> google.protobuf.Timestamp + 48, // 93: temporal.api.workflow.v1.NexusOperationCancellationInfo.last_attempt_failure:type_name -> temporal.api.failure.v1.Failure + 33, // 94: temporal.api.workflow.v1.NexusOperationCancellationInfo.next_attempt_schedule_time:type_name -> google.protobuf.Timestamp + 17, // 95: temporal.api.workflow.v1.WorkflowExecutionOptions.versioning_override:type_name -> temporal.api.workflow.v1.VersioningOverride + 39, // 96: temporal.api.workflow.v1.WorkflowExecutionOptions.priority:type_name -> temporal.api.common.v1.Priority + 28, // 97: temporal.api.workflow.v1.VersioningOverride.pinned:type_name -> temporal.api.workflow.v1.VersioningOverride.PinnedOverride + 40, // 98: temporal.api.workflow.v1.VersioningOverride.behavior:type_name -> temporal.api.enums.v1.VersioningBehavior + 41, // 99: temporal.api.workflow.v1.VersioningOverride.deployment:type_name -> temporal.api.deployment.v1.Deployment + 60, // 100: temporal.api.workflow.v1.RequestIdInfo.event_type:type_name -> temporal.api.enums.v1.EventType + 29, // 101: temporal.api.workflow.v1.PostResetOperation.signal_workflow:type_name -> temporal.api.workflow.v1.PostResetOperation.SignalWorkflow + 30, // 102: temporal.api.workflow.v1.PostResetOperation.update_workflow_options:type_name -> temporal.api.workflow.v1.PostResetOperation.UpdateWorkflowOptions + 33, // 103: temporal.api.workflow.v1.WorkflowExecutionPauseInfo.paused_time:type_name -> google.protobuf.Timestamp + 19, // 104: temporal.api.workflow.v1.WorkflowExecutionExtendedInfo.RequestIdInfosEntry.value:type_name -> temporal.api.workflow.v1.RequestIdInfo + 33, // 105: temporal.api.workflow.v1.PendingActivityInfo.PauseInfo.pause_time:type_name -> google.protobuf.Timestamp + 24, // 106: temporal.api.workflow.v1.PendingActivityInfo.PauseInfo.manual:type_name -> temporal.api.workflow.v1.PendingActivityInfo.PauseInfo.Manual + 25, // 107: temporal.api.workflow.v1.PendingActivityInfo.PauseInfo.rule:type_name -> temporal.api.workflow.v1.PendingActivityInfo.PauseInfo.Rule + 26, // 108: temporal.api.workflow.v1.CallbackInfo.Trigger.workflow_closed:type_name -> temporal.api.workflow.v1.CallbackInfo.WorkflowClosed + 0, // 109: temporal.api.workflow.v1.VersioningOverride.PinnedOverride.behavior:type_name -> temporal.api.workflow.v1.VersioningOverride.PinnedOverrideBehavior + 42, // 110: temporal.api.workflow.v1.VersioningOverride.PinnedOverride.version:type_name -> temporal.api.deployment.v1.WorkerDeploymentVersion + 47, // 111: temporal.api.workflow.v1.PostResetOperation.SignalWorkflow.input:type_name -> temporal.api.common.v1.Payloads + 55, // 112: temporal.api.workflow.v1.PostResetOperation.SignalWorkflow.header:type_name -> temporal.api.common.v1.Header + 61, // 113: temporal.api.workflow.v1.PostResetOperation.SignalWorkflow.links:type_name -> temporal.api.common.v1.Link + 16, // 114: temporal.api.workflow.v1.PostResetOperation.UpdateWorkflowOptions.workflow_execution_options:type_name -> temporal.api.workflow.v1.WorkflowExecutionOptions + 62, // 115: temporal.api.workflow.v1.PostResetOperation.UpdateWorkflowOptions.update_mask:type_name -> google.protobuf.FieldMask + 116, // [116:116] is the sub-list for method output_type + 116, // [116:116] is the sub-list for method input_type + 116, // [116:116] is the sub-list for extension type_name + 116, // [116:116] is the sub-list for extension extendee + 0, // [0:116] is the sub-list for field type_name +} + +func init() { file_temporal_api_workflow_v1_message_proto_init() } +func file_temporal_api_workflow_v1_message_proto_init() { + if File_temporal_api_workflow_v1_message_proto != nil { + return + } + file_temporal_api_workflow_v1_message_proto_msgTypes[6].OneofWrappers = []any{ + (*pendingActivityInfo_UseWorkflowBuildId)(nil), + (*pendingActivityInfo_LastIndependentlyAssignedBuildId)(nil), + } + file_temporal_api_workflow_v1_message_proto_msgTypes[16].OneofWrappers = []any{ + (*versioningOverride_Pinned)(nil), + (*versioningOverride_AutoUpgrade)(nil), + } + file_temporal_api_workflow_v1_message_proto_msgTypes[19].OneofWrappers = []any{ + (*postResetOperation_SignalWorkflow_)(nil), + (*postResetOperation_UpdateWorkflowOptions_)(nil), + } + file_temporal_api_workflow_v1_message_proto_msgTypes[22].OneofWrappers = []any{ + (*pendingActivityInfo_PauseInfo_Manual_)(nil), + (*pendingActivityInfo_PauseInfo_Rule_)(nil), + } + file_temporal_api_workflow_v1_message_proto_msgTypes[26].OneofWrappers = []any{ + (*callbackInfo_Trigger_WorkflowClosed)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_api_workflow_v1_message_proto_rawDesc), len(file_temporal_api_workflow_v1_message_proto_rawDesc)), + NumEnums: 1, + NumMessages: 30, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_temporal_api_workflow_v1_message_proto_goTypes, + DependencyIndexes: file_temporal_api_workflow_v1_message_proto_depIdxs, + EnumInfos: file_temporal_api_workflow_v1_message_proto_enumTypes, + MessageInfos: file_temporal_api_workflow_v1_message_proto_msgTypes, + }.Build() + File_temporal_api_workflow_v1_message_proto = out.File + file_temporal_api_workflow_v1_message_proto_goTypes = nil + file_temporal_api_workflow_v1_message_proto_depIdxs = nil +} diff --git a/workflowservice/v1/request_response.pb.go b/workflowservice/v1/request_response.pb.go index f4e32d42..50f60f28 100644 --- a/workflowservice/v1/request_response.pb.go +++ b/workflowservice/v1/request_response.pb.go @@ -4,11 +4,13 @@ // protoc // source: temporal/api/workflowservice/v1/request_response.proto +//go:build !protoopaque + package workflowservice import ( reflect "reflect" - sync "sync" + "strconv" unsafe "unsafe" v120 "go.temporal.io/api/activity/v1" @@ -48,7 +50,7 @@ const ( ) type RegisterNamespaceRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` OwnerEmail string `protobuf:"bytes,3,opt,name=owner_email,json=ownerEmail,proto3" json:"owner_email,omitempty"` @@ -94,11 +96,6 @@ func (x *RegisterNamespaceRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RegisterNamespaceRequest.ProtoReflect.Descriptor instead. -func (*RegisterNamespaceRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{0} -} - func (x *RegisterNamespaceRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -190,8 +187,112 @@ func (x *RegisterNamespaceRequest) GetVisibilityArchivalUri() string { return "" } +func (x *RegisterNamespaceRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *RegisterNamespaceRequest) SetDescription(v string) { + x.Description = v +} + +func (x *RegisterNamespaceRequest) SetOwnerEmail(v string) { + x.OwnerEmail = v +} + +func (x *RegisterNamespaceRequest) SetWorkflowExecutionRetentionPeriod(v *durationpb.Duration) { + x.WorkflowExecutionRetentionPeriod = v +} + +func (x *RegisterNamespaceRequest) SetClusters(v []*v1.ClusterReplicationConfig) { + x.Clusters = v +} + +func (x *RegisterNamespaceRequest) SetActiveClusterName(v string) { + x.ActiveClusterName = v +} + +func (x *RegisterNamespaceRequest) SetData(v map[string]string) { + x.Data = v +} + +func (x *RegisterNamespaceRequest) SetSecurityToken(v string) { + x.SecurityToken = v +} + +func (x *RegisterNamespaceRequest) SetIsGlobalNamespace(v bool) { + x.IsGlobalNamespace = v +} + +func (x *RegisterNamespaceRequest) SetHistoryArchivalState(v v11.ArchivalState) { + x.HistoryArchivalState = v +} + +func (x *RegisterNamespaceRequest) SetHistoryArchivalUri(v string) { + x.HistoryArchivalUri = v +} + +func (x *RegisterNamespaceRequest) SetVisibilityArchivalState(v v11.ArchivalState) { + x.VisibilityArchivalState = v +} + +func (x *RegisterNamespaceRequest) SetVisibilityArchivalUri(v string) { + x.VisibilityArchivalUri = v +} + +func (x *RegisterNamespaceRequest) HasWorkflowExecutionRetentionPeriod() bool { + if x == nil { + return false + } + return x.WorkflowExecutionRetentionPeriod != nil +} + +func (x *RegisterNamespaceRequest) ClearWorkflowExecutionRetentionPeriod() { + x.WorkflowExecutionRetentionPeriod = nil +} + +type RegisterNamespaceRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + Description string + OwnerEmail string + WorkflowExecutionRetentionPeriod *durationpb.Duration + Clusters []*v1.ClusterReplicationConfig + ActiveClusterName string + // A key-value map for any customized purpose. + Data map[string]string + SecurityToken string + IsGlobalNamespace bool + // If unspecified (ARCHIVAL_STATE_UNSPECIFIED) then default server configuration is used. + HistoryArchivalState v11.ArchivalState + HistoryArchivalUri string + // If unspecified (ARCHIVAL_STATE_UNSPECIFIED) then default server configuration is used. + VisibilityArchivalState v11.ArchivalState + VisibilityArchivalUri string +} + +func (b0 RegisterNamespaceRequest_builder) Build() *RegisterNamespaceRequest { + m0 := &RegisterNamespaceRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.Description = b.Description + x.OwnerEmail = b.OwnerEmail + x.WorkflowExecutionRetentionPeriod = b.WorkflowExecutionRetentionPeriod + x.Clusters = b.Clusters + x.ActiveClusterName = b.ActiveClusterName + x.Data = b.Data + x.SecurityToken = b.SecurityToken + x.IsGlobalNamespace = b.IsGlobalNamespace + x.HistoryArchivalState = b.HistoryArchivalState + x.HistoryArchivalUri = b.HistoryArchivalUri + x.VisibilityArchivalState = b.VisibilityArchivalState + x.VisibilityArchivalUri = b.VisibilityArchivalUri + return m0 +} + type RegisterNamespaceResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -221,13 +322,20 @@ func (x *RegisterNamespaceResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RegisterNamespaceResponse.ProtoReflect.Descriptor instead. -func (*RegisterNamespaceResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{1} +type RegisterNamespaceResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 RegisterNamespaceResponse_builder) Build() *RegisterNamespaceResponse { + m0 := &RegisterNamespaceResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type ListNamespacesRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` NextPageToken []byte `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` NamespaceFilter *v12.NamespaceFilter `protobuf:"bytes,3,opt,name=namespace_filter,json=namespaceFilter,proto3" json:"namespace_filter,omitempty"` @@ -260,11 +368,6 @@ func (x *ListNamespacesRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListNamespacesRequest.ProtoReflect.Descriptor instead. -func (*ListNamespacesRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{2} -} - func (x *ListNamespacesRequest) GetPageSize() int32 { if x != nil { return x.PageSize @@ -286,8 +389,52 @@ func (x *ListNamespacesRequest) GetNamespaceFilter() *v12.NamespaceFilter { return nil } +func (x *ListNamespacesRequest) SetPageSize(v int32) { + x.PageSize = v +} + +func (x *ListNamespacesRequest) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.NextPageToken = v +} + +func (x *ListNamespacesRequest) SetNamespaceFilter(v *v12.NamespaceFilter) { + x.NamespaceFilter = v +} + +func (x *ListNamespacesRequest) HasNamespaceFilter() bool { + if x == nil { + return false + } + return x.NamespaceFilter != nil +} + +func (x *ListNamespacesRequest) ClearNamespaceFilter() { + x.NamespaceFilter = nil +} + +type ListNamespacesRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + PageSize int32 + NextPageToken []byte + NamespaceFilter *v12.NamespaceFilter +} + +func (b0 ListNamespacesRequest_builder) Build() *ListNamespacesRequest { + m0 := &ListNamespacesRequest{} + b, x := &b0, m0 + _, _ = b, x + x.PageSize = b.PageSize + x.NextPageToken = b.NextPageToken + x.NamespaceFilter = b.NamespaceFilter + return m0 +} + type ListNamespacesResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespaces []*DescribeNamespaceResponse `protobuf:"bytes,1,rep,name=namespaces,proto3" json:"namespaces,omitempty"` NextPageToken []byte `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` unknownFields protoimpl.UnknownFields @@ -319,11 +466,6 @@ func (x *ListNamespacesResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListNamespacesResponse.ProtoReflect.Descriptor instead. -func (*ListNamespacesResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{3} -} - func (x *ListNamespacesResponse) GetNamespaces() []*DescribeNamespaceResponse { if x != nil { return x.Namespaces @@ -338,8 +480,35 @@ func (x *ListNamespacesResponse) GetNextPageToken() []byte { return nil } +func (x *ListNamespacesResponse) SetNamespaces(v []*DescribeNamespaceResponse) { + x.Namespaces = v +} + +func (x *ListNamespacesResponse) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.NextPageToken = v +} + +type ListNamespacesResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespaces []*DescribeNamespaceResponse + NextPageToken []byte +} + +func (b0 ListNamespacesResponse_builder) Build() *ListNamespacesResponse { + m0 := &ListNamespacesResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Namespaces = b.Namespaces + x.NextPageToken = b.NextPageToken + return m0 +} + type DescribeNamespaceRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields @@ -371,11 +540,6 @@ func (x *DescribeNamespaceRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DescribeNamespaceRequest.ProtoReflect.Descriptor instead. -func (*DescribeNamespaceRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{4} -} - func (x *DescribeNamespaceRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -390,8 +554,32 @@ func (x *DescribeNamespaceRequest) GetId() string { return "" } +func (x *DescribeNamespaceRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *DescribeNamespaceRequest) SetId(v string) { + x.Id = v +} + +type DescribeNamespaceRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + Id string +} + +func (b0 DescribeNamespaceRequest_builder) Build() *DescribeNamespaceRequest { + m0 := &DescribeNamespaceRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.Id = b.Id + return m0 +} + type DescribeNamespaceResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` NamespaceInfo *v12.NamespaceInfo `protobuf:"bytes,1,opt,name=namespace_info,json=namespaceInfo,proto3" json:"namespace_info,omitempty"` Config *v12.NamespaceConfig `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` ReplicationConfig *v1.NamespaceReplicationConfig `protobuf:"bytes,3,opt,name=replication_config,json=replicationConfig,proto3" json:"replication_config,omitempty"` @@ -429,11 +617,6 @@ func (x *DescribeNamespaceResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DescribeNamespaceResponse.ProtoReflect.Descriptor instead. -func (*DescribeNamespaceResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{5} -} - func (x *DescribeNamespaceResponse) GetNamespaceInfo() *v12.NamespaceInfo { if x != nil { return x.NamespaceInfo @@ -476,8 +659,91 @@ func (x *DescribeNamespaceResponse) GetFailoverHistory() []*v1.FailoverStatus { return nil } +func (x *DescribeNamespaceResponse) SetNamespaceInfo(v *v12.NamespaceInfo) { + x.NamespaceInfo = v +} + +func (x *DescribeNamespaceResponse) SetConfig(v *v12.NamespaceConfig) { + x.Config = v +} + +func (x *DescribeNamespaceResponse) SetReplicationConfig(v *v1.NamespaceReplicationConfig) { + x.ReplicationConfig = v +} + +func (x *DescribeNamespaceResponse) SetFailoverVersion(v int64) { + x.FailoverVersion = v +} + +func (x *DescribeNamespaceResponse) SetIsGlobalNamespace(v bool) { + x.IsGlobalNamespace = v +} + +func (x *DescribeNamespaceResponse) SetFailoverHistory(v []*v1.FailoverStatus) { + x.FailoverHistory = v +} + +func (x *DescribeNamespaceResponse) HasNamespaceInfo() bool { + if x == nil { + return false + } + return x.NamespaceInfo != nil +} + +func (x *DescribeNamespaceResponse) HasConfig() bool { + if x == nil { + return false + } + return x.Config != nil +} + +func (x *DescribeNamespaceResponse) HasReplicationConfig() bool { + if x == nil { + return false + } + return x.ReplicationConfig != nil +} + +func (x *DescribeNamespaceResponse) ClearNamespaceInfo() { + x.NamespaceInfo = nil +} + +func (x *DescribeNamespaceResponse) ClearConfig() { + x.Config = nil +} + +func (x *DescribeNamespaceResponse) ClearReplicationConfig() { + x.ReplicationConfig = nil +} + +type DescribeNamespaceResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + NamespaceInfo *v12.NamespaceInfo + Config *v12.NamespaceConfig + ReplicationConfig *v1.NamespaceReplicationConfig + FailoverVersion int64 + IsGlobalNamespace bool + // Contains the historical state of failover_versions for the cluster, truncated to contain only the last N + // states to ensure that the list does not grow unbounded. + FailoverHistory []*v1.FailoverStatus +} + +func (b0 DescribeNamespaceResponse_builder) Build() *DescribeNamespaceResponse { + m0 := &DescribeNamespaceResponse{} + b, x := &b0, m0 + _, _ = b, x + x.NamespaceInfo = b.NamespaceInfo + x.Config = b.Config + x.ReplicationConfig = b.ReplicationConfig + x.FailoverVersion = b.FailoverVersion + x.IsGlobalNamespace = b.IsGlobalNamespace + x.FailoverHistory = b.FailoverHistory + return m0 +} + type UpdateNamespaceRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` UpdateInfo *v12.UpdateNamespaceInfo `protobuf:"bytes,2,opt,name=update_info,json=updateInfo,proto3" json:"update_info,omitempty"` Config *v12.NamespaceConfig `protobuf:"bytes,3,opt,name=config,proto3" json:"config,omitempty"` @@ -515,11 +781,6 @@ func (x *UpdateNamespaceRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UpdateNamespaceRequest.ProtoReflect.Descriptor instead. -func (*UpdateNamespaceRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{6} -} - func (x *UpdateNamespaceRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -569,8 +830,96 @@ func (x *UpdateNamespaceRequest) GetPromoteNamespace() bool { return false } +func (x *UpdateNamespaceRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *UpdateNamespaceRequest) SetUpdateInfo(v *v12.UpdateNamespaceInfo) { + x.UpdateInfo = v +} + +func (x *UpdateNamespaceRequest) SetConfig(v *v12.NamespaceConfig) { + x.Config = v +} + +func (x *UpdateNamespaceRequest) SetReplicationConfig(v *v1.NamespaceReplicationConfig) { + x.ReplicationConfig = v +} + +func (x *UpdateNamespaceRequest) SetSecurityToken(v string) { + x.SecurityToken = v +} + +func (x *UpdateNamespaceRequest) SetDeleteBadBinary(v string) { + x.DeleteBadBinary = v +} + +func (x *UpdateNamespaceRequest) SetPromoteNamespace(v bool) { + x.PromoteNamespace = v +} + +func (x *UpdateNamespaceRequest) HasUpdateInfo() bool { + if x == nil { + return false + } + return x.UpdateInfo != nil +} + +func (x *UpdateNamespaceRequest) HasConfig() bool { + if x == nil { + return false + } + return x.Config != nil +} + +func (x *UpdateNamespaceRequest) HasReplicationConfig() bool { + if x == nil { + return false + } + return x.ReplicationConfig != nil +} + +func (x *UpdateNamespaceRequest) ClearUpdateInfo() { + x.UpdateInfo = nil +} + +func (x *UpdateNamespaceRequest) ClearConfig() { + x.Config = nil +} + +func (x *UpdateNamespaceRequest) ClearReplicationConfig() { + x.ReplicationConfig = nil +} + +type UpdateNamespaceRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + UpdateInfo *v12.UpdateNamespaceInfo + Config *v12.NamespaceConfig + ReplicationConfig *v1.NamespaceReplicationConfig + SecurityToken string + DeleteBadBinary string + // promote local namespace to global namespace. Ignored if namespace is already global namespace. + PromoteNamespace bool +} + +func (b0 UpdateNamespaceRequest_builder) Build() *UpdateNamespaceRequest { + m0 := &UpdateNamespaceRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.UpdateInfo = b.UpdateInfo + x.Config = b.Config + x.ReplicationConfig = b.ReplicationConfig + x.SecurityToken = b.SecurityToken + x.DeleteBadBinary = b.DeleteBadBinary + x.PromoteNamespace = b.PromoteNamespace + return m0 +} + type UpdateNamespaceResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` NamespaceInfo *v12.NamespaceInfo `protobuf:"bytes,1,opt,name=namespace_info,json=namespaceInfo,proto3" json:"namespace_info,omitempty"` Config *v12.NamespaceConfig `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` ReplicationConfig *v1.NamespaceReplicationConfig `protobuf:"bytes,3,opt,name=replication_config,json=replicationConfig,proto3" json:"replication_config,omitempty"` @@ -605,11 +954,6 @@ func (x *UpdateNamespaceResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UpdateNamespaceResponse.ProtoReflect.Descriptor instead. -func (*UpdateNamespaceResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{7} -} - func (x *UpdateNamespaceResponse) GetNamespaceInfo() *v12.NamespaceInfo { if x != nil { return x.NamespaceInfo @@ -645,9 +989,84 @@ func (x *UpdateNamespaceResponse) GetIsGlobalNamespace() bool { return false } +func (x *UpdateNamespaceResponse) SetNamespaceInfo(v *v12.NamespaceInfo) { + x.NamespaceInfo = v +} + +func (x *UpdateNamespaceResponse) SetConfig(v *v12.NamespaceConfig) { + x.Config = v +} + +func (x *UpdateNamespaceResponse) SetReplicationConfig(v *v1.NamespaceReplicationConfig) { + x.ReplicationConfig = v +} + +func (x *UpdateNamespaceResponse) SetFailoverVersion(v int64) { + x.FailoverVersion = v +} + +func (x *UpdateNamespaceResponse) SetIsGlobalNamespace(v bool) { + x.IsGlobalNamespace = v +} + +func (x *UpdateNamespaceResponse) HasNamespaceInfo() bool { + if x == nil { + return false + } + return x.NamespaceInfo != nil +} + +func (x *UpdateNamespaceResponse) HasConfig() bool { + if x == nil { + return false + } + return x.Config != nil +} + +func (x *UpdateNamespaceResponse) HasReplicationConfig() bool { + if x == nil { + return false + } + return x.ReplicationConfig != nil +} + +func (x *UpdateNamespaceResponse) ClearNamespaceInfo() { + x.NamespaceInfo = nil +} + +func (x *UpdateNamespaceResponse) ClearConfig() { + x.Config = nil +} + +func (x *UpdateNamespaceResponse) ClearReplicationConfig() { + x.ReplicationConfig = nil +} + +type UpdateNamespaceResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + NamespaceInfo *v12.NamespaceInfo + Config *v12.NamespaceConfig + ReplicationConfig *v1.NamespaceReplicationConfig + FailoverVersion int64 + IsGlobalNamespace bool +} + +func (b0 UpdateNamespaceResponse_builder) Build() *UpdateNamespaceResponse { + m0 := &UpdateNamespaceResponse{} + b, x := &b0, m0 + _, _ = b, x + x.NamespaceInfo = b.NamespaceInfo + x.Config = b.Config + x.ReplicationConfig = b.ReplicationConfig + x.FailoverVersion = b.FailoverVersion + x.IsGlobalNamespace = b.IsGlobalNamespace + return m0 +} + // Deprecated. type DeprecateNamespaceRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` SecurityToken string `protobuf:"bytes,2,opt,name=security_token,json=securityToken,proto3" json:"security_token,omitempty"` unknownFields protoimpl.UnknownFields @@ -679,11 +1098,6 @@ func (x *DeprecateNamespaceRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeprecateNamespaceRequest.ProtoReflect.Descriptor instead. -func (*DeprecateNamespaceRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{8} -} - func (x *DeprecateNamespaceRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -698,9 +1112,33 @@ func (x *DeprecateNamespaceRequest) GetSecurityToken() string { return "" } +func (x *DeprecateNamespaceRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *DeprecateNamespaceRequest) SetSecurityToken(v string) { + x.SecurityToken = v +} + +type DeprecateNamespaceRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + SecurityToken string +} + +func (b0 DeprecateNamespaceRequest_builder) Build() *DeprecateNamespaceRequest { + m0 := &DeprecateNamespaceRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.SecurityToken = b.SecurityToken + return m0 +} + // Deprecated. type DeprecateNamespaceResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -730,13 +1168,20 @@ func (x *DeprecateNamespaceResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeprecateNamespaceResponse.ProtoReflect.Descriptor instead. -func (*DeprecateNamespaceResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{9} +type DeprecateNamespaceResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 DeprecateNamespaceResponse_builder) Build() *DeprecateNamespaceResponse { + m0 := &DeprecateNamespaceResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type StartWorkflowExecutionRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` WorkflowId string `protobuf:"bytes,2,opt,name=workflow_id,json=workflowId,proto3" json:"workflow_id,omitempty"` WorkflowType *v13.WorkflowType `protobuf:"bytes,3,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type,omitempty"` @@ -836,11 +1281,6 @@ func (x *StartWorkflowExecutionRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use StartWorkflowExecutionRequest.ProtoReflect.Descriptor instead. -func (*StartWorkflowExecutionRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{10} -} - func (x *StartWorkflowExecutionRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -1037,74 +1477,489 @@ func (x *StartWorkflowExecutionRequest) GetEagerWorkerDeploymentOptions() *v18.W return nil } -type StartWorkflowExecutionResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The run id of the workflow that was started - or used (via WorkflowIdConflictPolicy USE_EXISTING). - RunId string `protobuf:"bytes,1,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"` - // If true, a new workflow was started. - Started bool `protobuf:"varint,3,opt,name=started,proto3" json:"started,omitempty"` - // Current execution status of the workflow. Typically remains WORKFLOW_EXECUTION_STATUS_RUNNING - // unless a de-dupe occurs or in specific scenarios handled within the ExecuteMultiOperation (refer to its docs). - Status v11.WorkflowExecutionStatus `protobuf:"varint,5,opt,name=status,proto3,enum=temporal.api.enums.v1.WorkflowExecutionStatus" json:"status,omitempty"` - // When `request_eager_execution` is set on the `StartWorkflowExecutionRequest`, the server - if supported - will - // return the first workflow task to be eagerly executed. - // The caller is expected to have a worker available to process the task. - EagerWorkflowTask *PollWorkflowTaskQueueResponse `protobuf:"bytes,2,opt,name=eager_workflow_task,json=eagerWorkflowTask,proto3" json:"eager_workflow_task,omitempty"` - // Link to the workflow event. - Link *v13.Link `protobuf:"bytes,4,opt,name=link,proto3" json:"link,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache +func (x *StartWorkflowExecutionRequest) SetNamespace(v string) { + x.Namespace = v } -func (x *StartWorkflowExecutionResponse) Reset() { - *x = StartWorkflowExecutionResponse{} - mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *StartWorkflowExecutionRequest) SetWorkflowId(v string) { + x.WorkflowId = v } -func (x *StartWorkflowExecutionResponse) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *StartWorkflowExecutionRequest) SetWorkflowType(v *v13.WorkflowType) { + x.WorkflowType = v } -func (*StartWorkflowExecutionResponse) ProtoMessage() {} +func (x *StartWorkflowExecutionRequest) SetTaskQueue(v *v14.TaskQueue) { + x.TaskQueue = v +} -func (x *StartWorkflowExecutionResponse) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[11] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (x *StartWorkflowExecutionRequest) SetInput(v *v13.Payloads) { + x.Input = v } -// Deprecated: Use StartWorkflowExecutionResponse.ProtoReflect.Descriptor instead. -func (*StartWorkflowExecutionResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{11} +func (x *StartWorkflowExecutionRequest) SetWorkflowExecutionTimeout(v *durationpb.Duration) { + x.WorkflowExecutionTimeout = v } -func (x *StartWorkflowExecutionResponse) GetRunId() string { - if x != nil { - return x.RunId - } - return "" +func (x *StartWorkflowExecutionRequest) SetWorkflowRunTimeout(v *durationpb.Duration) { + x.WorkflowRunTimeout = v } -func (x *StartWorkflowExecutionResponse) GetStarted() bool { - if x != nil { - return x.Started - } - return false +func (x *StartWorkflowExecutionRequest) SetWorkflowTaskTimeout(v *durationpb.Duration) { + x.WorkflowTaskTimeout = v } -func (x *StartWorkflowExecutionResponse) GetStatus() v11.WorkflowExecutionStatus { - if x != nil { - return x.Status - } - return v11.WorkflowExecutionStatus(0) +func (x *StartWorkflowExecutionRequest) SetIdentity(v string) { + x.Identity = v +} + +func (x *StartWorkflowExecutionRequest) SetRequestId(v string) { + x.RequestId = v +} + +func (x *StartWorkflowExecutionRequest) SetWorkflowIdReusePolicy(v v11.WorkflowIdReusePolicy) { + x.WorkflowIdReusePolicy = v +} + +func (x *StartWorkflowExecutionRequest) SetWorkflowIdConflictPolicy(v v11.WorkflowIdConflictPolicy) { + x.WorkflowIdConflictPolicy = v +} + +func (x *StartWorkflowExecutionRequest) SetRetryPolicy(v *v13.RetryPolicy) { + x.RetryPolicy = v +} + +func (x *StartWorkflowExecutionRequest) SetCronSchedule(v string) { + x.CronSchedule = v +} + +func (x *StartWorkflowExecutionRequest) SetMemo(v *v13.Memo) { + x.Memo = v +} + +func (x *StartWorkflowExecutionRequest) SetSearchAttributes(v *v13.SearchAttributes) { + x.SearchAttributes = v +} + +func (x *StartWorkflowExecutionRequest) SetHeader(v *v13.Header) { + x.Header = v +} + +func (x *StartWorkflowExecutionRequest) SetRequestEagerExecution(v bool) { + x.RequestEagerExecution = v +} + +func (x *StartWorkflowExecutionRequest) SetContinuedFailure(v *v15.Failure) { + x.ContinuedFailure = v +} + +func (x *StartWorkflowExecutionRequest) SetLastCompletionResult(v *v13.Payloads) { + x.LastCompletionResult = v +} + +func (x *StartWorkflowExecutionRequest) SetWorkflowStartDelay(v *durationpb.Duration) { + x.WorkflowStartDelay = v +} + +func (x *StartWorkflowExecutionRequest) SetCompletionCallbacks(v []*v13.Callback) { + x.CompletionCallbacks = v +} + +func (x *StartWorkflowExecutionRequest) SetUserMetadata(v *v16.UserMetadata) { + x.UserMetadata = v +} + +func (x *StartWorkflowExecutionRequest) SetLinks(v []*v13.Link) { + x.Links = v +} + +func (x *StartWorkflowExecutionRequest) SetVersioningOverride(v *v17.VersioningOverride) { + x.VersioningOverride = v +} + +func (x *StartWorkflowExecutionRequest) SetOnConflictOptions(v *v17.OnConflictOptions) { + x.OnConflictOptions = v +} + +func (x *StartWorkflowExecutionRequest) SetPriority(v *v13.Priority) { + x.Priority = v +} + +func (x *StartWorkflowExecutionRequest) SetEagerWorkerDeploymentOptions(v *v18.WorkerDeploymentOptions) { + x.EagerWorkerDeploymentOptions = v +} + +func (x *StartWorkflowExecutionRequest) HasWorkflowType() bool { + if x == nil { + return false + } + return x.WorkflowType != nil +} + +func (x *StartWorkflowExecutionRequest) HasTaskQueue() bool { + if x == nil { + return false + } + return x.TaskQueue != nil +} + +func (x *StartWorkflowExecutionRequest) HasInput() bool { + if x == nil { + return false + } + return x.Input != nil +} + +func (x *StartWorkflowExecutionRequest) HasWorkflowExecutionTimeout() bool { + if x == nil { + return false + } + return x.WorkflowExecutionTimeout != nil +} + +func (x *StartWorkflowExecutionRequest) HasWorkflowRunTimeout() bool { + if x == nil { + return false + } + return x.WorkflowRunTimeout != nil +} + +func (x *StartWorkflowExecutionRequest) HasWorkflowTaskTimeout() bool { + if x == nil { + return false + } + return x.WorkflowTaskTimeout != nil +} + +func (x *StartWorkflowExecutionRequest) HasRetryPolicy() bool { + if x == nil { + return false + } + return x.RetryPolicy != nil +} + +func (x *StartWorkflowExecutionRequest) HasMemo() bool { + if x == nil { + return false + } + return x.Memo != nil +} + +func (x *StartWorkflowExecutionRequest) HasSearchAttributes() bool { + if x == nil { + return false + } + return x.SearchAttributes != nil +} + +func (x *StartWorkflowExecutionRequest) HasHeader() bool { + if x == nil { + return false + } + return x.Header != nil +} + +func (x *StartWorkflowExecutionRequest) HasContinuedFailure() bool { + if x == nil { + return false + } + return x.ContinuedFailure != nil +} + +func (x *StartWorkflowExecutionRequest) HasLastCompletionResult() bool { + if x == nil { + return false + } + return x.LastCompletionResult != nil +} + +func (x *StartWorkflowExecutionRequest) HasWorkflowStartDelay() bool { + if x == nil { + return false + } + return x.WorkflowStartDelay != nil +} + +func (x *StartWorkflowExecutionRequest) HasUserMetadata() bool { + if x == nil { + return false + } + return x.UserMetadata != nil +} + +func (x *StartWorkflowExecutionRequest) HasVersioningOverride() bool { + if x == nil { + return false + } + return x.VersioningOverride != nil +} + +func (x *StartWorkflowExecutionRequest) HasOnConflictOptions() bool { + if x == nil { + return false + } + return x.OnConflictOptions != nil +} + +func (x *StartWorkflowExecutionRequest) HasPriority() bool { + if x == nil { + return false + } + return x.Priority != nil +} + +func (x *StartWorkflowExecutionRequest) HasEagerWorkerDeploymentOptions() bool { + if x == nil { + return false + } + return x.EagerWorkerDeploymentOptions != nil +} + +func (x *StartWorkflowExecutionRequest) ClearWorkflowType() { + x.WorkflowType = nil +} + +func (x *StartWorkflowExecutionRequest) ClearTaskQueue() { + x.TaskQueue = nil +} + +func (x *StartWorkflowExecutionRequest) ClearInput() { + x.Input = nil +} + +func (x *StartWorkflowExecutionRequest) ClearWorkflowExecutionTimeout() { + x.WorkflowExecutionTimeout = nil +} + +func (x *StartWorkflowExecutionRequest) ClearWorkflowRunTimeout() { + x.WorkflowRunTimeout = nil +} + +func (x *StartWorkflowExecutionRequest) ClearWorkflowTaskTimeout() { + x.WorkflowTaskTimeout = nil +} + +func (x *StartWorkflowExecutionRequest) ClearRetryPolicy() { + x.RetryPolicy = nil +} + +func (x *StartWorkflowExecutionRequest) ClearMemo() { + x.Memo = nil +} + +func (x *StartWorkflowExecutionRequest) ClearSearchAttributes() { + x.SearchAttributes = nil +} + +func (x *StartWorkflowExecutionRequest) ClearHeader() { + x.Header = nil +} + +func (x *StartWorkflowExecutionRequest) ClearContinuedFailure() { + x.ContinuedFailure = nil +} + +func (x *StartWorkflowExecutionRequest) ClearLastCompletionResult() { + x.LastCompletionResult = nil +} + +func (x *StartWorkflowExecutionRequest) ClearWorkflowStartDelay() { + x.WorkflowStartDelay = nil +} + +func (x *StartWorkflowExecutionRequest) ClearUserMetadata() { + x.UserMetadata = nil +} + +func (x *StartWorkflowExecutionRequest) ClearVersioningOverride() { + x.VersioningOverride = nil +} + +func (x *StartWorkflowExecutionRequest) ClearOnConflictOptions() { + x.OnConflictOptions = nil +} + +func (x *StartWorkflowExecutionRequest) ClearPriority() { + x.Priority = nil +} + +func (x *StartWorkflowExecutionRequest) ClearEagerWorkerDeploymentOptions() { + x.EagerWorkerDeploymentOptions = nil +} + +type StartWorkflowExecutionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + WorkflowId string + WorkflowType *v13.WorkflowType + TaskQueue *v14.TaskQueue + // Serialized arguments to the workflow. These are passed as arguments to the workflow function. + Input *v13.Payloads + // Total workflow execution timeout including retries and continue as new. + WorkflowExecutionTimeout *durationpb.Duration + // Timeout of a single workflow run. + WorkflowRunTimeout *durationpb.Duration + // Timeout of a single workflow task. + WorkflowTaskTimeout *durationpb.Duration + // The identity of the client who initiated this request + Identity string + // A unique identifier for this start request. Typically UUIDv4. + RequestId string + // Defines whether to allow re-using the workflow id from a previously *closed* workflow. + // The default policy is WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE. + // + // See `workflow_id_conflict_policy` for handling a workflow id duplication with a *running* workflow. + WorkflowIdReusePolicy v11.WorkflowIdReusePolicy + // Defines how to resolve a workflow id conflict with a *running* workflow. + // The default policy is WORKFLOW_ID_CONFLICT_POLICY_FAIL. + // + // See `workflow_id_reuse_policy` for handling a workflow id duplication with a *closed* workflow. + WorkflowIdConflictPolicy v11.WorkflowIdConflictPolicy + // The retry policy for the workflow. Will never exceed `workflow_execution_timeout`. + RetryPolicy *v13.RetryPolicy + // See https://docs.temporal.io/docs/content/what-is-a-temporal-cron-job/ + CronSchedule string + Memo *v13.Memo + SearchAttributes *v13.SearchAttributes + Header *v13.Header + // Request to get the first workflow task inline in the response bypassing matching service and worker polling. + // If set to `true` the caller is expected to have a worker available and capable of processing the task. + // The returned task will be marked as started and is expected to be completed by the specified + // `workflow_task_timeout`. + RequestEagerExecution bool + // These values will be available as ContinuedFailure and LastCompletionResult in the + // WorkflowExecutionStarted event and through SDKs. The are currently only used by the + // server itself (for the schedules feature) and are not intended to be exposed in + // StartWorkflowExecution. + ContinuedFailure *v15.Failure + LastCompletionResult *v13.Payloads + // Time to wait before dispatching the first workflow task. Cannot be used with `cron_schedule`. + // If the workflow gets a signal before the delay, a workflow task will be dispatched and the rest + // of the delay will be ignored. + WorkflowStartDelay *durationpb.Duration + // Callbacks to be called by the server when this workflow reaches a terminal state. + // If the workflow continues-as-new, these callbacks will be carried over to the new execution. + // Callback addresses must be whitelisted in the server's dynamic configuration. + CompletionCallbacks []*v13.Callback + // Metadata on the workflow if it is started. This is carried over to the WorkflowExecutionInfo + // for use by user interfaces to display the fixed as-of-start summary and details of the + // workflow. + UserMetadata *v16.UserMetadata + // Links to be associated with the workflow. + Links []*v13.Link + // If set, takes precedence over the Versioning Behavior sent by the SDK on Workflow Task completion. + // To unset the override after the workflow is running, use UpdateWorkflowExecutionOptions. + VersioningOverride *v17.VersioningOverride + // Defines actions to be done to the existing running workflow when the conflict policy + // WORKFLOW_ID_CONFLICT_POLICY_USE_EXISTING is used. If not set (ie., nil value) or set to a + // empty object (ie., all options with default value), it won't do anything to the existing + // running workflow. If set, it will add a history event to the running workflow. + OnConflictOptions *v17.OnConflictOptions + // Priority metadata + Priority *v13.Priority + // Deployment Options of the worker who will process the eager task. Passed when `request_eager_execution=true`. + EagerWorkerDeploymentOptions *v18.WorkerDeploymentOptions +} + +func (b0 StartWorkflowExecutionRequest_builder) Build() *StartWorkflowExecutionRequest { + m0 := &StartWorkflowExecutionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.WorkflowId = b.WorkflowId + x.WorkflowType = b.WorkflowType + x.TaskQueue = b.TaskQueue + x.Input = b.Input + x.WorkflowExecutionTimeout = b.WorkflowExecutionTimeout + x.WorkflowRunTimeout = b.WorkflowRunTimeout + x.WorkflowTaskTimeout = b.WorkflowTaskTimeout + x.Identity = b.Identity + x.RequestId = b.RequestId + x.WorkflowIdReusePolicy = b.WorkflowIdReusePolicy + x.WorkflowIdConflictPolicy = b.WorkflowIdConflictPolicy + x.RetryPolicy = b.RetryPolicy + x.CronSchedule = b.CronSchedule + x.Memo = b.Memo + x.SearchAttributes = b.SearchAttributes + x.Header = b.Header + x.RequestEagerExecution = b.RequestEagerExecution + x.ContinuedFailure = b.ContinuedFailure + x.LastCompletionResult = b.LastCompletionResult + x.WorkflowStartDelay = b.WorkflowStartDelay + x.CompletionCallbacks = b.CompletionCallbacks + x.UserMetadata = b.UserMetadata + x.Links = b.Links + x.VersioningOverride = b.VersioningOverride + x.OnConflictOptions = b.OnConflictOptions + x.Priority = b.Priority + x.EagerWorkerDeploymentOptions = b.EagerWorkerDeploymentOptions + return m0 +} + +type StartWorkflowExecutionResponse struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // The run id of the workflow that was started - or used (via WorkflowIdConflictPolicy USE_EXISTING). + RunId string `protobuf:"bytes,1,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"` + // If true, a new workflow was started. + Started bool `protobuf:"varint,3,opt,name=started,proto3" json:"started,omitempty"` + // Current execution status of the workflow. Typically remains WORKFLOW_EXECUTION_STATUS_RUNNING + // unless a de-dupe occurs or in specific scenarios handled within the ExecuteMultiOperation (refer to its docs). + Status v11.WorkflowExecutionStatus `protobuf:"varint,5,opt,name=status,proto3,enum=temporal.api.enums.v1.WorkflowExecutionStatus" json:"status,omitempty"` + // When `request_eager_execution` is set on the `StartWorkflowExecutionRequest`, the server - if supported - will + // return the first workflow task to be eagerly executed. + // The caller is expected to have a worker available to process the task. + EagerWorkflowTask *PollWorkflowTaskQueueResponse `protobuf:"bytes,2,opt,name=eager_workflow_task,json=eagerWorkflowTask,proto3" json:"eager_workflow_task,omitempty"` + // Link to the workflow event. + Link *v13.Link `protobuf:"bytes,4,opt,name=link,proto3" json:"link,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *StartWorkflowExecutionResponse) Reset() { + *x = StartWorkflowExecutionResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *StartWorkflowExecutionResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StartWorkflowExecutionResponse) ProtoMessage() {} + +func (x *StartWorkflowExecutionResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[11] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *StartWorkflowExecutionResponse) GetRunId() string { + if x != nil { + return x.RunId + } + return "" +} + +func (x *StartWorkflowExecutionResponse) GetStarted() bool { + if x != nil { + return x.Started + } + return false +} + +func (x *StartWorkflowExecutionResponse) GetStatus() v11.WorkflowExecutionStatus { + if x != nil { + return x.Status + } + return v11.WorkflowExecutionStatus(0) } func (x *StartWorkflowExecutionResponse) GetEagerWorkflowTask() *PollWorkflowTaskQueueResponse { @@ -1114,15 +1969,87 @@ func (x *StartWorkflowExecutionResponse) GetEagerWorkflowTask() *PollWorkflowTas return nil } -func (x *StartWorkflowExecutionResponse) GetLink() *v13.Link { - if x != nil { - return x.Link - } - return nil +func (x *StartWorkflowExecutionResponse) GetLink() *v13.Link { + if x != nil { + return x.Link + } + return nil +} + +func (x *StartWorkflowExecutionResponse) SetRunId(v string) { + x.RunId = v +} + +func (x *StartWorkflowExecutionResponse) SetStarted(v bool) { + x.Started = v +} + +func (x *StartWorkflowExecutionResponse) SetStatus(v v11.WorkflowExecutionStatus) { + x.Status = v +} + +func (x *StartWorkflowExecutionResponse) SetEagerWorkflowTask(v *PollWorkflowTaskQueueResponse) { + x.EagerWorkflowTask = v +} + +func (x *StartWorkflowExecutionResponse) SetLink(v *v13.Link) { + x.Link = v +} + +func (x *StartWorkflowExecutionResponse) HasEagerWorkflowTask() bool { + if x == nil { + return false + } + return x.EagerWorkflowTask != nil +} + +func (x *StartWorkflowExecutionResponse) HasLink() bool { + if x == nil { + return false + } + return x.Link != nil +} + +func (x *StartWorkflowExecutionResponse) ClearEagerWorkflowTask() { + x.EagerWorkflowTask = nil +} + +func (x *StartWorkflowExecutionResponse) ClearLink() { + x.Link = nil +} + +type StartWorkflowExecutionResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The run id of the workflow that was started - or used (via WorkflowIdConflictPolicy USE_EXISTING). + RunId string + // If true, a new workflow was started. + Started bool + // Current execution status of the workflow. Typically remains WORKFLOW_EXECUTION_STATUS_RUNNING + // unless a de-dupe occurs or in specific scenarios handled within the ExecuteMultiOperation (refer to its docs). + Status v11.WorkflowExecutionStatus + // When `request_eager_execution` is set on the `StartWorkflowExecutionRequest`, the server - if supported - will + // return the first workflow task to be eagerly executed. + // The caller is expected to have a worker available to process the task. + EagerWorkflowTask *PollWorkflowTaskQueueResponse + // Link to the workflow event. + Link *v13.Link +} + +func (b0 StartWorkflowExecutionResponse_builder) Build() *StartWorkflowExecutionResponse { + m0 := &StartWorkflowExecutionResponse{} + b, x := &b0, m0 + _, _ = b, x + x.RunId = b.RunId + x.Started = b.Started + x.Status = b.Status + x.EagerWorkflowTask = b.EagerWorkflowTask + x.Link = b.Link + return m0 } type GetWorkflowExecutionHistoryRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` Execution *v13.WorkflowExecution `protobuf:"bytes,2,opt,name=execution,proto3" json:"execution,omitempty"` MaximumPageSize int32 `protobuf:"varint,3,opt,name=maximum_page_size,json=maximumPageSize,proto3" json:"maximum_page_size,omitempty"` @@ -1165,11 +2092,6 @@ func (x *GetWorkflowExecutionHistoryRequest) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use GetWorkflowExecutionHistoryRequest.ProtoReflect.Descriptor instead. -func (*GetWorkflowExecutionHistoryRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{12} -} - func (x *GetWorkflowExecutionHistoryRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -1219,8 +2141,82 @@ func (x *GetWorkflowExecutionHistoryRequest) GetSkipArchival() bool { return false } +func (x *GetWorkflowExecutionHistoryRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *GetWorkflowExecutionHistoryRequest) SetExecution(v *v13.WorkflowExecution) { + x.Execution = v +} + +func (x *GetWorkflowExecutionHistoryRequest) SetMaximumPageSize(v int32) { + x.MaximumPageSize = v +} + +func (x *GetWorkflowExecutionHistoryRequest) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.NextPageToken = v +} + +func (x *GetWorkflowExecutionHistoryRequest) SetWaitNewEvent(v bool) { + x.WaitNewEvent = v +} + +func (x *GetWorkflowExecutionHistoryRequest) SetHistoryEventFilterType(v v11.HistoryEventFilterType) { + x.HistoryEventFilterType = v +} + +func (x *GetWorkflowExecutionHistoryRequest) SetSkipArchival(v bool) { + x.SkipArchival = v +} + +func (x *GetWorkflowExecutionHistoryRequest) HasExecution() bool { + if x == nil { + return false + } + return x.Execution != nil +} + +func (x *GetWorkflowExecutionHistoryRequest) ClearExecution() { + x.Execution = nil +} + +type GetWorkflowExecutionHistoryRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + Execution *v13.WorkflowExecution + MaximumPageSize int32 + // If a `GetWorkflowExecutionHistoryResponse` or a `PollWorkflowTaskQueueResponse` had one of + // these, it should be passed here to fetch the next page. + NextPageToken []byte + // If set to true, the RPC call will not resolve until there is a new event which matches + // the `history_event_filter_type`, or a timeout is hit. + WaitNewEvent bool + // Filter returned events such that they match the specified filter type. + // Default: HISTORY_EVENT_FILTER_TYPE_ALL_EVENT. + HistoryEventFilterType v11.HistoryEventFilterType + SkipArchival bool +} + +func (b0 GetWorkflowExecutionHistoryRequest_builder) Build() *GetWorkflowExecutionHistoryRequest { + m0 := &GetWorkflowExecutionHistoryRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.Execution = b.Execution + x.MaximumPageSize = b.MaximumPageSize + x.NextPageToken = b.NextPageToken + x.WaitNewEvent = b.WaitNewEvent + x.HistoryEventFilterType = b.HistoryEventFilterType + x.SkipArchival = b.SkipArchival + return m0 +} + type GetWorkflowExecutionHistoryResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` History *v19.History `protobuf:"bytes,1,opt,name=history,proto3" json:"history,omitempty"` // Raw history is an alternate representation of history that may be returned if configured on // the frontend. This is not supported by all SDKs. Either this or `history` will be set. @@ -1257,11 +2253,6 @@ func (x *GetWorkflowExecutionHistoryResponse) ProtoReflect() protoreflect.Messag return mi.MessageOf(x) } -// Deprecated: Use GetWorkflowExecutionHistoryResponse.ProtoReflect.Descriptor instead. -func (*GetWorkflowExecutionHistoryResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{13} -} - func (x *GetWorkflowExecutionHistoryResponse) GetHistory() *v19.History { if x != nil { return x.History @@ -1290,8 +2281,61 @@ func (x *GetWorkflowExecutionHistoryResponse) GetArchived() bool { return false } +func (x *GetWorkflowExecutionHistoryResponse) SetHistory(v *v19.History) { + x.History = v +} + +func (x *GetWorkflowExecutionHistoryResponse) SetRawHistory(v []*v13.DataBlob) { + x.RawHistory = v +} + +func (x *GetWorkflowExecutionHistoryResponse) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.NextPageToken = v +} + +func (x *GetWorkflowExecutionHistoryResponse) SetArchived(v bool) { + x.Archived = v +} + +func (x *GetWorkflowExecutionHistoryResponse) HasHistory() bool { + if x == nil { + return false + } + return x.History != nil +} + +func (x *GetWorkflowExecutionHistoryResponse) ClearHistory() { + x.History = nil +} + +type GetWorkflowExecutionHistoryResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + History *v19.History + // Raw history is an alternate representation of history that may be returned if configured on + // the frontend. This is not supported by all SDKs. Either this or `history` will be set. + RawHistory []*v13.DataBlob + // Will be set if there are more history events than were included in this response + NextPageToken []byte + Archived bool +} + +func (b0 GetWorkflowExecutionHistoryResponse_builder) Build() *GetWorkflowExecutionHistoryResponse { + m0 := &GetWorkflowExecutionHistoryResponse{} + b, x := &b0, m0 + _, _ = b, x + x.History = b.History + x.RawHistory = b.RawHistory + x.NextPageToken = b.NextPageToken + x.Archived = b.Archived + return m0 +} + type GetWorkflowExecutionHistoryReverseRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` Execution *v13.WorkflowExecution `protobuf:"bytes,2,opt,name=execution,proto3" json:"execution,omitempty"` MaximumPageSize int32 `protobuf:"varint,3,opt,name=maximum_page_size,json=maximumPageSize,proto3" json:"maximum_page_size,omitempty"` @@ -1325,11 +2369,6 @@ func (x *GetWorkflowExecutionHistoryReverseRequest) ProtoReflect() protoreflect. return mi.MessageOf(x) } -// Deprecated: Use GetWorkflowExecutionHistoryReverseRequest.ProtoReflect.Descriptor instead. -func (*GetWorkflowExecutionHistoryReverseRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{14} -} - func (x *GetWorkflowExecutionHistoryReverseRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -1358,8 +2397,58 @@ func (x *GetWorkflowExecutionHistoryReverseRequest) GetNextPageToken() []byte { return nil } +func (x *GetWorkflowExecutionHistoryReverseRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *GetWorkflowExecutionHistoryReverseRequest) SetExecution(v *v13.WorkflowExecution) { + x.Execution = v +} + +func (x *GetWorkflowExecutionHistoryReverseRequest) SetMaximumPageSize(v int32) { + x.MaximumPageSize = v +} + +func (x *GetWorkflowExecutionHistoryReverseRequest) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.NextPageToken = v +} + +func (x *GetWorkflowExecutionHistoryReverseRequest) HasExecution() bool { + if x == nil { + return false + } + return x.Execution != nil +} + +func (x *GetWorkflowExecutionHistoryReverseRequest) ClearExecution() { + x.Execution = nil +} + +type GetWorkflowExecutionHistoryReverseRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + Execution *v13.WorkflowExecution + MaximumPageSize int32 + NextPageToken []byte +} + +func (b0 GetWorkflowExecutionHistoryReverseRequest_builder) Build() *GetWorkflowExecutionHistoryReverseRequest { + m0 := &GetWorkflowExecutionHistoryReverseRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.Execution = b.Execution + x.MaximumPageSize = b.MaximumPageSize + x.NextPageToken = b.NextPageToken + return m0 +} + type GetWorkflowExecutionHistoryReverseResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` History *v19.History `protobuf:"bytes,1,opt,name=history,proto3" json:"history,omitempty"` // Will be set if there are more history events than were included in this response NextPageToken []byte `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` @@ -1392,11 +2481,6 @@ func (x *GetWorkflowExecutionHistoryReverseResponse) ProtoReflect() protoreflect return mi.MessageOf(x) } -// Deprecated: Use GetWorkflowExecutionHistoryReverseResponse.ProtoReflect.Descriptor instead. -func (*GetWorkflowExecutionHistoryReverseResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{15} -} - func (x *GetWorkflowExecutionHistoryReverseResponse) GetHistory() *v19.History { if x != nil { return x.History @@ -1411,8 +2495,47 @@ func (x *GetWorkflowExecutionHistoryReverseResponse) GetNextPageToken() []byte { return nil } +func (x *GetWorkflowExecutionHistoryReverseResponse) SetHistory(v *v19.History) { + x.History = v +} + +func (x *GetWorkflowExecutionHistoryReverseResponse) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.NextPageToken = v +} + +func (x *GetWorkflowExecutionHistoryReverseResponse) HasHistory() bool { + if x == nil { + return false + } + return x.History != nil +} + +func (x *GetWorkflowExecutionHistoryReverseResponse) ClearHistory() { + x.History = nil +} + +type GetWorkflowExecutionHistoryReverseResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + History *v19.History + // Will be set if there are more history events than were included in this response + NextPageToken []byte +} + +func (b0 GetWorkflowExecutionHistoryReverseResponse_builder) Build() *GetWorkflowExecutionHistoryReverseResponse { + m0 := &GetWorkflowExecutionHistoryReverseResponse{} + b, x := &b0, m0 + _, _ = b, x + x.History = b.History + x.NextPageToken = b.NextPageToken + return m0 +} + type PollWorkflowTaskQueueRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` TaskQueue *v14.TaskQueue `protobuf:"bytes,2,opt,name=task_queue,json=taskQueue,proto3" json:"task_queue,omitempty"` // The identity of the worker/client who is polling this task queue @@ -1464,11 +2587,6 @@ func (x *PollWorkflowTaskQueueRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PollWorkflowTaskQueueRequest.ProtoReflect.Descriptor instead. -func (*PollWorkflowTaskQueueRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{16} -} - func (x *PollWorkflowTaskQueueRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -1520,8 +2638,114 @@ func (x *PollWorkflowTaskQueueRequest) GetDeploymentOptions() *v18.WorkerDeploym return nil } +func (x *PollWorkflowTaskQueueRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *PollWorkflowTaskQueueRequest) SetTaskQueue(v *v14.TaskQueue) { + x.TaskQueue = v +} + +func (x *PollWorkflowTaskQueueRequest) SetIdentity(v string) { + x.Identity = v +} + +func (x *PollWorkflowTaskQueueRequest) SetWorkerInstanceKey(v string) { + x.WorkerInstanceKey = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *PollWorkflowTaskQueueRequest) SetBinaryChecksum(v string) { + x.BinaryChecksum = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *PollWorkflowTaskQueueRequest) SetWorkerVersionCapabilities(v *v13.WorkerVersionCapabilities) { + x.WorkerVersionCapabilities = v +} + +func (x *PollWorkflowTaskQueueRequest) SetDeploymentOptions(v *v18.WorkerDeploymentOptions) { + x.DeploymentOptions = v +} + +func (x *PollWorkflowTaskQueueRequest) HasTaskQueue() bool { + if x == nil { + return false + } + return x.TaskQueue != nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *PollWorkflowTaskQueueRequest) HasWorkerVersionCapabilities() bool { + if x == nil { + return false + } + return x.WorkerVersionCapabilities != nil +} + +func (x *PollWorkflowTaskQueueRequest) HasDeploymentOptions() bool { + if x == nil { + return false + } + return x.DeploymentOptions != nil +} + +func (x *PollWorkflowTaskQueueRequest) ClearTaskQueue() { + x.TaskQueue = nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *PollWorkflowTaskQueueRequest) ClearWorkerVersionCapabilities() { + x.WorkerVersionCapabilities = nil +} + +func (x *PollWorkflowTaskQueueRequest) ClearDeploymentOptions() { + x.DeploymentOptions = nil +} + +type PollWorkflowTaskQueueRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + TaskQueue *v14.TaskQueue + // The identity of the worker/client who is polling this task queue + Identity string + // A unique key for this worker instance, used for tracking worker lifecycle. + // This is guaranteed to be unique, whereas identity is not guaranteed to be unique. + WorkerInstanceKey string + // Deprecated. Use deployment_options instead. + // Each worker process should provide an ID unique to the specific set of code it is running + // "checksum" in this field name isn't very accurate, it should be though of as an id. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + BinaryChecksum string + // Deprecated. Use deployment_options instead. + // Information about this worker's build identifier and if it is choosing to use the versioning + // feature. See the `WorkerVersionCapabilities` docstring for more. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + WorkerVersionCapabilities *v13.WorkerVersionCapabilities + // Worker deployment options that user has set in the worker. + // Experimental. Worker Deployments are experimental and might significantly change in the future. + DeploymentOptions *v18.WorkerDeploymentOptions +} + +func (b0 PollWorkflowTaskQueueRequest_builder) Build() *PollWorkflowTaskQueueRequest { + m0 := &PollWorkflowTaskQueueRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.TaskQueue = b.TaskQueue + x.Identity = b.Identity + x.WorkerInstanceKey = b.WorkerInstanceKey + x.BinaryChecksum = b.BinaryChecksum + x.WorkerVersionCapabilities = b.WorkerVersionCapabilities + x.DeploymentOptions = b.DeploymentOptions + return m0 +} + type PollWorkflowTaskQueueResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // A unique identifier for this task TaskToken []byte `protobuf:"bytes,1,opt,name=task_token,json=taskToken,proto3" json:"task_token,omitempty"` WorkflowExecution *v13.WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` @@ -1602,11 +2826,6 @@ func (x *PollWorkflowTaskQueueResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PollWorkflowTaskQueueResponse.ProtoReflect.Descriptor instead. -func (*PollWorkflowTaskQueueResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{17} -} - func (x *PollWorkflowTaskQueueResponse) GetTaskToken() []byte { if x != nil { return x.TaskToken @@ -1691,36 +2910,273 @@ func (x *PollWorkflowTaskQueueResponse) GetScheduledTime() *timestamppb.Timestam return nil } -func (x *PollWorkflowTaskQueueResponse) GetStartedTime() *timestamppb.Timestamp { - if x != nil { - return x.StartedTime - } - return nil +func (x *PollWorkflowTaskQueueResponse) GetStartedTime() *timestamppb.Timestamp { + if x != nil { + return x.StartedTime + } + return nil +} + +func (x *PollWorkflowTaskQueueResponse) GetQueries() map[string]*v110.WorkflowQuery { + if x != nil { + return x.Queries + } + return nil +} + +func (x *PollWorkflowTaskQueueResponse) GetMessages() []*v111.Message { + if x != nil { + return x.Messages + } + return nil +} + +func (x *PollWorkflowTaskQueueResponse) GetPollerScalingDecision() *v14.PollerScalingDecision { + if x != nil { + return x.PollerScalingDecision + } + return nil +} + +func (x *PollWorkflowTaskQueueResponse) SetTaskToken(v []byte) { + if v == nil { + v = []byte{} + } + x.TaskToken = v +} + +func (x *PollWorkflowTaskQueueResponse) SetWorkflowExecution(v *v13.WorkflowExecution) { + x.WorkflowExecution = v +} + +func (x *PollWorkflowTaskQueueResponse) SetWorkflowType(v *v13.WorkflowType) { + x.WorkflowType = v +} + +func (x *PollWorkflowTaskQueueResponse) SetPreviousStartedEventId(v int64) { + x.PreviousStartedEventId = v +} + +func (x *PollWorkflowTaskQueueResponse) SetStartedEventId(v int64) { + x.StartedEventId = v +} + +func (x *PollWorkflowTaskQueueResponse) SetAttempt(v int32) { + x.Attempt = v +} + +func (x *PollWorkflowTaskQueueResponse) SetBacklogCountHint(v int64) { + x.BacklogCountHint = v +} + +func (x *PollWorkflowTaskQueueResponse) SetHistory(v *v19.History) { + x.History = v +} + +func (x *PollWorkflowTaskQueueResponse) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.NextPageToken = v +} + +func (x *PollWorkflowTaskQueueResponse) SetQuery(v *v110.WorkflowQuery) { + x.Query = v +} + +func (x *PollWorkflowTaskQueueResponse) SetWorkflowExecutionTaskQueue(v *v14.TaskQueue) { + x.WorkflowExecutionTaskQueue = v +} + +func (x *PollWorkflowTaskQueueResponse) SetScheduledTime(v *timestamppb.Timestamp) { + x.ScheduledTime = v +} + +func (x *PollWorkflowTaskQueueResponse) SetStartedTime(v *timestamppb.Timestamp) { + x.StartedTime = v +} + +func (x *PollWorkflowTaskQueueResponse) SetQueries(v map[string]*v110.WorkflowQuery) { + x.Queries = v +} + +func (x *PollWorkflowTaskQueueResponse) SetMessages(v []*v111.Message) { + x.Messages = v +} + +func (x *PollWorkflowTaskQueueResponse) SetPollerScalingDecision(v *v14.PollerScalingDecision) { + x.PollerScalingDecision = v +} + +func (x *PollWorkflowTaskQueueResponse) HasWorkflowExecution() bool { + if x == nil { + return false + } + return x.WorkflowExecution != nil +} + +func (x *PollWorkflowTaskQueueResponse) HasWorkflowType() bool { + if x == nil { + return false + } + return x.WorkflowType != nil +} + +func (x *PollWorkflowTaskQueueResponse) HasHistory() bool { + if x == nil { + return false + } + return x.History != nil +} + +func (x *PollWorkflowTaskQueueResponse) HasQuery() bool { + if x == nil { + return false + } + return x.Query != nil +} + +func (x *PollWorkflowTaskQueueResponse) HasWorkflowExecutionTaskQueue() bool { + if x == nil { + return false + } + return x.WorkflowExecutionTaskQueue != nil +} + +func (x *PollWorkflowTaskQueueResponse) HasScheduledTime() bool { + if x == nil { + return false + } + return x.ScheduledTime != nil +} + +func (x *PollWorkflowTaskQueueResponse) HasStartedTime() bool { + if x == nil { + return false + } + return x.StartedTime != nil +} + +func (x *PollWorkflowTaskQueueResponse) HasPollerScalingDecision() bool { + if x == nil { + return false + } + return x.PollerScalingDecision != nil +} + +func (x *PollWorkflowTaskQueueResponse) ClearWorkflowExecution() { + x.WorkflowExecution = nil +} + +func (x *PollWorkflowTaskQueueResponse) ClearWorkflowType() { + x.WorkflowType = nil +} + +func (x *PollWorkflowTaskQueueResponse) ClearHistory() { + x.History = nil +} + +func (x *PollWorkflowTaskQueueResponse) ClearQuery() { + x.Query = nil +} + +func (x *PollWorkflowTaskQueueResponse) ClearWorkflowExecutionTaskQueue() { + x.WorkflowExecutionTaskQueue = nil +} + +func (x *PollWorkflowTaskQueueResponse) ClearScheduledTime() { + x.ScheduledTime = nil } -func (x *PollWorkflowTaskQueueResponse) GetQueries() map[string]*v110.WorkflowQuery { - if x != nil { - return x.Queries - } - return nil +func (x *PollWorkflowTaskQueueResponse) ClearStartedTime() { + x.StartedTime = nil } -func (x *PollWorkflowTaskQueueResponse) GetMessages() []*v111.Message { - if x != nil { - return x.Messages - } - return nil +func (x *PollWorkflowTaskQueueResponse) ClearPollerScalingDecision() { + x.PollerScalingDecision = nil } -func (x *PollWorkflowTaskQueueResponse) GetPollerScalingDecision() *v14.PollerScalingDecision { - if x != nil { - return x.PollerScalingDecision - } - return nil +type PollWorkflowTaskQueueResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // A unique identifier for this task + TaskToken []byte + WorkflowExecution *v13.WorkflowExecution + WorkflowType *v13.WorkflowType + // The last workflow task started event which was processed by some worker for this execution. + // Will be zero if no task has ever started. + PreviousStartedEventId int64 + // The id of the most recent workflow task started event, which will have been generated as a + // result of this poll request being served. Will be zero if the task + // does not contain any events which would advance history (no new WFT started). + // Currently this can happen for queries. + StartedEventId int64 + // Starting at 1, the number of attempts to complete this task by any worker. + Attempt int32 + // A hint that there are more tasks already present in this task queue + // partition. Can be used to prioritize draining a sticky queue. + // + // Specifically, the returned number is the number of tasks remaining in + // the in-memory buffer for this partition, which is currently capped at + // 1000. Because sticky queues only have one partition, this number is + // more useful when draining them. Normal queues, typically having more than one + // partition, will return a number representing only some portion of the + // overall backlog. Subsequent RPCs may not hit the same partition as + // this call. + BacklogCountHint int64 + // The history for this workflow, which will either be complete or partial. Partial histories + // are sent to workers who have signaled that they are using a sticky queue when completing + // a workflow task. + History *v19.History + // Will be set if there are more history events than were included in this response. Such events + // should be fetched via `GetWorkflowExecutionHistory`. + NextPageToken []byte + // Legacy queries appear in this field. The query must be responded to via + // `RespondQueryTaskCompleted`. If the workflow is already closed (queries are permitted on + // closed workflows) then the `history` field will be populated with the entire history. It + // may also be populated if this task originates on a non-sticky queue. + Query *v110.WorkflowQuery + // The task queue this task originated from, which will always be the original non-sticky name + // for the queue, even if this response came from polling a sticky queue. + WorkflowExecutionTaskQueue *v14.TaskQueue + // When this task was scheduled by the server + ScheduledTime *timestamppb.Timestamp + // When the current workflow task started event was generated, meaning the current attempt. + StartedTime *timestamppb.Timestamp + // Queries that should be executed after applying the history in this task. Responses should be + // attached to `RespondWorkflowTaskCompletedRequest::query_results` + Queries map[string]*v110.WorkflowQuery + // Protocol messages piggybacking on a WFT as a transport + Messages []*v111.Message + // Server-advised information the SDK may use to adjust its poller count. + PollerScalingDecision *v14.PollerScalingDecision +} + +func (b0 PollWorkflowTaskQueueResponse_builder) Build() *PollWorkflowTaskQueueResponse { + m0 := &PollWorkflowTaskQueueResponse{} + b, x := &b0, m0 + _, _ = b, x + x.TaskToken = b.TaskToken + x.WorkflowExecution = b.WorkflowExecution + x.WorkflowType = b.WorkflowType + x.PreviousStartedEventId = b.PreviousStartedEventId + x.StartedEventId = b.StartedEventId + x.Attempt = b.Attempt + x.BacklogCountHint = b.BacklogCountHint + x.History = b.History + x.NextPageToken = b.NextPageToken + x.Query = b.Query + x.WorkflowExecutionTaskQueue = b.WorkflowExecutionTaskQueue + x.ScheduledTime = b.ScheduledTime + x.StartedTime = b.StartedTime + x.Queries = b.Queries + x.Messages = b.Messages + x.PollerScalingDecision = b.PollerScalingDecision + return m0 } type RespondWorkflowTaskCompletedRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The task token as received in `PollWorkflowTaskQueueResponse` TaskToken []byte `protobuf:"bytes,1,opt,name=task_token,json=taskToken,proto3" json:"task_token,omitempty"` // A list of commands generated when driving the workflow code in response to the new task @@ -1802,11 +3258,6 @@ func (x *RespondWorkflowTaskCompletedRequest) ProtoReflect() protoreflect.Messag return mi.MessageOf(x) } -// Deprecated: Use RespondWorkflowTaskCompletedRequest.ProtoReflect.Descriptor instead. -func (*RespondWorkflowTaskCompletedRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{18} -} - func (x *RespondWorkflowTaskCompletedRequest) GetTaskToken() []byte { if x != nil { return x.TaskToken @@ -1929,8 +3380,244 @@ func (x *RespondWorkflowTaskCompletedRequest) GetDeploymentOptions() *v18.Worker return nil } +func (x *RespondWorkflowTaskCompletedRequest) SetTaskToken(v []byte) { + if v == nil { + v = []byte{} + } + x.TaskToken = v +} + +func (x *RespondWorkflowTaskCompletedRequest) SetCommands(v []*v112.Command) { + x.Commands = v +} + +func (x *RespondWorkflowTaskCompletedRequest) SetIdentity(v string) { + x.Identity = v +} + +func (x *RespondWorkflowTaskCompletedRequest) SetStickyAttributes(v *v14.StickyExecutionAttributes) { + x.StickyAttributes = v +} + +func (x *RespondWorkflowTaskCompletedRequest) SetReturnNewWorkflowTask(v bool) { + x.ReturnNewWorkflowTask = v +} + +func (x *RespondWorkflowTaskCompletedRequest) SetForceCreateNewWorkflowTask(v bool) { + x.ForceCreateNewWorkflowTask = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondWorkflowTaskCompletedRequest) SetBinaryChecksum(v string) { + x.BinaryChecksum = v +} + +func (x *RespondWorkflowTaskCompletedRequest) SetQueryResults(v map[string]*v110.WorkflowQueryResult) { + x.QueryResults = v +} + +func (x *RespondWorkflowTaskCompletedRequest) SetNamespace(v string) { + x.Namespace = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondWorkflowTaskCompletedRequest) SetWorkerVersionStamp(v *v13.WorkerVersionStamp) { + x.WorkerVersionStamp = v +} + +func (x *RespondWorkflowTaskCompletedRequest) SetMessages(v []*v111.Message) { + x.Messages = v +} + +func (x *RespondWorkflowTaskCompletedRequest) SetSdkMetadata(v *v16.WorkflowTaskCompletedMetadata) { + x.SdkMetadata = v +} + +func (x *RespondWorkflowTaskCompletedRequest) SetMeteringMetadata(v *v13.MeteringMetadata) { + x.MeteringMetadata = v +} + +func (x *RespondWorkflowTaskCompletedRequest) SetCapabilities(v *RespondWorkflowTaskCompletedRequest_Capabilities) { + x.Capabilities = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondWorkflowTaskCompletedRequest) SetDeployment(v *v18.Deployment) { + x.Deployment = v +} + +func (x *RespondWorkflowTaskCompletedRequest) SetVersioningBehavior(v v11.VersioningBehavior) { + x.VersioningBehavior = v +} + +func (x *RespondWorkflowTaskCompletedRequest) SetDeploymentOptions(v *v18.WorkerDeploymentOptions) { + x.DeploymentOptions = v +} + +func (x *RespondWorkflowTaskCompletedRequest) HasStickyAttributes() bool { + if x == nil { + return false + } + return x.StickyAttributes != nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondWorkflowTaskCompletedRequest) HasWorkerVersionStamp() bool { + if x == nil { + return false + } + return x.WorkerVersionStamp != nil +} + +func (x *RespondWorkflowTaskCompletedRequest) HasSdkMetadata() bool { + if x == nil { + return false + } + return x.SdkMetadata != nil +} + +func (x *RespondWorkflowTaskCompletedRequest) HasMeteringMetadata() bool { + if x == nil { + return false + } + return x.MeteringMetadata != nil +} + +func (x *RespondWorkflowTaskCompletedRequest) HasCapabilities() bool { + if x == nil { + return false + } + return x.Capabilities != nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondWorkflowTaskCompletedRequest) HasDeployment() bool { + if x == nil { + return false + } + return x.Deployment != nil +} + +func (x *RespondWorkflowTaskCompletedRequest) HasDeploymentOptions() bool { + if x == nil { + return false + } + return x.DeploymentOptions != nil +} + +func (x *RespondWorkflowTaskCompletedRequest) ClearStickyAttributes() { + x.StickyAttributes = nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondWorkflowTaskCompletedRequest) ClearWorkerVersionStamp() { + x.WorkerVersionStamp = nil +} + +func (x *RespondWorkflowTaskCompletedRequest) ClearSdkMetadata() { + x.SdkMetadata = nil +} + +func (x *RespondWorkflowTaskCompletedRequest) ClearMeteringMetadata() { + x.MeteringMetadata = nil +} + +func (x *RespondWorkflowTaskCompletedRequest) ClearCapabilities() { + x.Capabilities = nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondWorkflowTaskCompletedRequest) ClearDeployment() { + x.Deployment = nil +} + +func (x *RespondWorkflowTaskCompletedRequest) ClearDeploymentOptions() { + x.DeploymentOptions = nil +} + +type RespondWorkflowTaskCompletedRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The task token as received in `PollWorkflowTaskQueueResponse` + TaskToken []byte + // A list of commands generated when driving the workflow code in response to the new task + Commands []*v112.Command + // The identity of the worker/client + Identity string + // May be set by workers to indicate that the worker desires future tasks to be provided with + // incremental history on a sticky queue. + StickyAttributes *v14.StickyExecutionAttributes + // If set, the worker wishes to immediately receive the next workflow task as a response to + // this completion. This can save on polling round-trips. + ReturnNewWorkflowTask bool + // Can be used to *force* creation of a new workflow task, even if no commands have resolved or + // one would not otherwise have been generated. This is used when the worker knows it is doing + // something useful, but cannot complete it within the workflow task timeout. Local activities + // which run for longer than the task timeout being the prime example. + ForceCreateNewWorkflowTask bool + // Deprecated. Use `deployment_options` instead. + // Worker process' unique binary id + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + BinaryChecksum string + // Responses to the `queries` field in the task being responded to + QueryResults map[string]*v110.WorkflowQueryResult + Namespace string + // Version info of the worker who processed this task. This message's `build_id` field should + // always be set by SDKs. Workers opting into versioning will also set the `use_versioning` + // field to true. See message docstrings for more. + // Deprecated. Use `deployment_options` and `versioning_behavior` instead. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + WorkerVersionStamp *v13.WorkerVersionStamp + // Protocol messages piggybacking on a WFT as a transport + Messages []*v111.Message + // Data the SDK wishes to record for itself, but server need not interpret, and does not + // directly impact workflow state. + SdkMetadata *v16.WorkflowTaskCompletedMetadata + // Local usage data collected for metering + MeteringMetadata *v13.MeteringMetadata + // All capabilities the SDK supports. + Capabilities *RespondWorkflowTaskCompletedRequest_Capabilities + // Deployment info of the worker that completed this task. Must be present if user has set + // `WorkerDeploymentOptions` regardless of versioning being enabled or not. + // Deprecated. Replaced with `deployment_options`. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + Deployment *v18.Deployment + // Versioning behavior of this workflow execution as set on the worker that completed this task. + // UNSPECIFIED means versioning is not enabled in the worker. + VersioningBehavior v11.VersioningBehavior + // Worker deployment options that user has set in the worker. + DeploymentOptions *v18.WorkerDeploymentOptions +} + +func (b0 RespondWorkflowTaskCompletedRequest_builder) Build() *RespondWorkflowTaskCompletedRequest { + m0 := &RespondWorkflowTaskCompletedRequest{} + b, x := &b0, m0 + _, _ = b, x + x.TaskToken = b.TaskToken + x.Commands = b.Commands + x.Identity = b.Identity + x.StickyAttributes = b.StickyAttributes + x.ReturnNewWorkflowTask = b.ReturnNewWorkflowTask + x.ForceCreateNewWorkflowTask = b.ForceCreateNewWorkflowTask + x.BinaryChecksum = b.BinaryChecksum + x.QueryResults = b.QueryResults + x.Namespace = b.Namespace + x.WorkerVersionStamp = b.WorkerVersionStamp + x.Messages = b.Messages + x.SdkMetadata = b.SdkMetadata + x.MeteringMetadata = b.MeteringMetadata + x.Capabilities = b.Capabilities + x.Deployment = b.Deployment + x.VersioningBehavior = b.VersioningBehavior + x.DeploymentOptions = b.DeploymentOptions + return m0 +} + type RespondWorkflowTaskCompletedResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // See `RespondWorkflowTaskCompletedResponse::return_new_workflow_task` WorkflowTask *PollWorkflowTaskQueueResponse `protobuf:"bytes,1,opt,name=workflow_task,json=workflowTask,proto3" json:"workflow_task,omitempty"` // See `ScheduleActivityTaskCommandAttributes::request_eager_execution` @@ -1968,11 +3655,6 @@ func (x *RespondWorkflowTaskCompletedResponse) ProtoReflect() protoreflect.Messa return mi.MessageOf(x) } -// Deprecated: Use RespondWorkflowTaskCompletedResponse.ProtoReflect.Descriptor instead. -func (*RespondWorkflowTaskCompletedResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{19} -} - func (x *RespondWorkflowTaskCompletedResponse) GetWorkflowTask() *PollWorkflowTaskQueueResponse { if x != nil { return x.WorkflowTask @@ -1994,8 +3676,54 @@ func (x *RespondWorkflowTaskCompletedResponse) GetResetHistoryEventId() int64 { return 0 } +func (x *RespondWorkflowTaskCompletedResponse) SetWorkflowTask(v *PollWorkflowTaskQueueResponse) { + x.WorkflowTask = v +} + +func (x *RespondWorkflowTaskCompletedResponse) SetActivityTasks(v []*PollActivityTaskQueueResponse) { + x.ActivityTasks = v +} + +func (x *RespondWorkflowTaskCompletedResponse) SetResetHistoryEventId(v int64) { + x.ResetHistoryEventId = v +} + +func (x *RespondWorkflowTaskCompletedResponse) HasWorkflowTask() bool { + if x == nil { + return false + } + return x.WorkflowTask != nil +} + +func (x *RespondWorkflowTaskCompletedResponse) ClearWorkflowTask() { + x.WorkflowTask = nil +} + +type RespondWorkflowTaskCompletedResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // See `RespondWorkflowTaskCompletedResponse::return_new_workflow_task` + WorkflowTask *PollWorkflowTaskQueueResponse + // See `ScheduleActivityTaskCommandAttributes::request_eager_execution` + ActivityTasks []*PollActivityTaskQueueResponse + // If non zero, indicates the server has discarded the workflow task that was being responded to. + // Will be the event ID of the last workflow task started event in the history before the new workflow task. + // Server is only expected to discard a workflow task if it could not have modified the workflow state. + ResetHistoryEventId int64 +} + +func (b0 RespondWorkflowTaskCompletedResponse_builder) Build() *RespondWorkflowTaskCompletedResponse { + m0 := &RespondWorkflowTaskCompletedResponse{} + b, x := &b0, m0 + _, _ = b, x + x.WorkflowTask = b.WorkflowTask + x.ActivityTasks = b.ActivityTasks + x.ResetHistoryEventId = b.ResetHistoryEventId + return m0 +} + type RespondWorkflowTaskFailedRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The task token as received in `PollWorkflowTaskQueueResponse` TaskToken []byte `protobuf:"bytes,1,opt,name=task_token,json=taskToken,proto3" json:"task_token,omitempty"` // Why did the task fail? It's important to note that many of the variants in this enum cannot @@ -2057,11 +3785,6 @@ func (x *RespondWorkflowTaskFailedRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RespondWorkflowTaskFailedRequest.ProtoReflect.Descriptor instead. -func (*RespondWorkflowTaskFailedRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{20} -} - func (x *RespondWorkflowTaskFailedRequest) GetTaskToken() []byte { if x != nil { return x.TaskToken @@ -2135,8 +3858,156 @@ func (x *RespondWorkflowTaskFailedRequest) GetDeploymentOptions() *v18.WorkerDep return nil } +func (x *RespondWorkflowTaskFailedRequest) SetTaskToken(v []byte) { + if v == nil { + v = []byte{} + } + x.TaskToken = v +} + +func (x *RespondWorkflowTaskFailedRequest) SetCause(v v11.WorkflowTaskFailedCause) { + x.Cause = v +} + +func (x *RespondWorkflowTaskFailedRequest) SetFailure(v *v15.Failure) { + x.Failure = v +} + +func (x *RespondWorkflowTaskFailedRequest) SetIdentity(v string) { + x.Identity = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondWorkflowTaskFailedRequest) SetBinaryChecksum(v string) { + x.BinaryChecksum = v +} + +func (x *RespondWorkflowTaskFailedRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *RespondWorkflowTaskFailedRequest) SetMessages(v []*v111.Message) { + x.Messages = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondWorkflowTaskFailedRequest) SetWorkerVersion(v *v13.WorkerVersionStamp) { + x.WorkerVersion = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondWorkflowTaskFailedRequest) SetDeployment(v *v18.Deployment) { + x.Deployment = v +} + +func (x *RespondWorkflowTaskFailedRequest) SetDeploymentOptions(v *v18.WorkerDeploymentOptions) { + x.DeploymentOptions = v +} + +func (x *RespondWorkflowTaskFailedRequest) HasFailure() bool { + if x == nil { + return false + } + return x.Failure != nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondWorkflowTaskFailedRequest) HasWorkerVersion() bool { + if x == nil { + return false + } + return x.WorkerVersion != nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondWorkflowTaskFailedRequest) HasDeployment() bool { + if x == nil { + return false + } + return x.Deployment != nil +} + +func (x *RespondWorkflowTaskFailedRequest) HasDeploymentOptions() bool { + if x == nil { + return false + } + return x.DeploymentOptions != nil +} + +func (x *RespondWorkflowTaskFailedRequest) ClearFailure() { + x.Failure = nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondWorkflowTaskFailedRequest) ClearWorkerVersion() { + x.WorkerVersion = nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondWorkflowTaskFailedRequest) ClearDeployment() { + x.Deployment = nil +} + +func (x *RespondWorkflowTaskFailedRequest) ClearDeploymentOptions() { + x.DeploymentOptions = nil +} + +type RespondWorkflowTaskFailedRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The task token as received in `PollWorkflowTaskQueueResponse` + TaskToken []byte + // Why did the task fail? It's important to note that many of the variants in this enum cannot + // apply to worker responses. See the type's doc for more. + Cause v11.WorkflowTaskFailedCause + // Failure details + Failure *v15.Failure + // The identity of the worker/client + Identity string + // Deprecated. Use `deployment_options` instead. + // Worker process' unique binary id + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + BinaryChecksum string + Namespace string + // Protocol messages piggybacking on a WFT as a transport + Messages []*v111.Message + // Version info of the worker who processed this task. This message's `build_id` field should + // always be set by SDKs. Workers opting into versioning will also set the `use_versioning` + // field to true. See message docstrings for more. + // Deprecated. Use `deployment_options` instead. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + WorkerVersion *v13.WorkerVersionStamp + // Deployment info of the worker that completed this task. Must be present if user has set + // `WorkerDeploymentOptions` regardless of versioning being enabled or not. + // Deprecated. Replaced with `deployment_options`. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + Deployment *v18.Deployment + // Worker deployment options that user has set in the worker. + DeploymentOptions *v18.WorkerDeploymentOptions +} + +func (b0 RespondWorkflowTaskFailedRequest_builder) Build() *RespondWorkflowTaskFailedRequest { + m0 := &RespondWorkflowTaskFailedRequest{} + b, x := &b0, m0 + _, _ = b, x + x.TaskToken = b.TaskToken + x.Cause = b.Cause + x.Failure = b.Failure + x.Identity = b.Identity + x.BinaryChecksum = b.BinaryChecksum + x.Namespace = b.Namespace + x.Messages = b.Messages + x.WorkerVersion = b.WorkerVersion + x.Deployment = b.Deployment + x.DeploymentOptions = b.DeploymentOptions + return m0 +} + type RespondWorkflowTaskFailedResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -2166,13 +4037,20 @@ func (x *RespondWorkflowTaskFailedResponse) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use RespondWorkflowTaskFailedResponse.ProtoReflect.Descriptor instead. -func (*RespondWorkflowTaskFailedResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{21} +type RespondWorkflowTaskFailedResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 RespondWorkflowTaskFailedResponse_builder) Build() *RespondWorkflowTaskFailedResponse { + m0 := &RespondWorkflowTaskFailedResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type PollActivityTaskQueueRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` TaskQueue *v14.TaskQueue `protobuf:"bytes,2,opt,name=task_queue,json=taskQueue,proto3" json:"task_queue,omitempty"` // The identity of the worker/client @@ -2218,11 +4096,6 @@ func (x *PollActivityTaskQueueRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PollActivityTaskQueueRequest.ProtoReflect.Descriptor instead. -func (*PollActivityTaskQueueRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{22} -} - func (x *PollActivityTaskQueueRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -2273,8 +4146,118 @@ func (x *PollActivityTaskQueueRequest) GetDeploymentOptions() *v18.WorkerDeploym return nil } +func (x *PollActivityTaskQueueRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *PollActivityTaskQueueRequest) SetTaskQueue(v *v14.TaskQueue) { + x.TaskQueue = v +} + +func (x *PollActivityTaskQueueRequest) SetIdentity(v string) { + x.Identity = v +} + +func (x *PollActivityTaskQueueRequest) SetWorkerInstanceKey(v string) { + x.WorkerInstanceKey = v +} + +func (x *PollActivityTaskQueueRequest) SetTaskQueueMetadata(v *v14.TaskQueueMetadata) { + x.TaskQueueMetadata = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *PollActivityTaskQueueRequest) SetWorkerVersionCapabilities(v *v13.WorkerVersionCapabilities) { + x.WorkerVersionCapabilities = v +} + +func (x *PollActivityTaskQueueRequest) SetDeploymentOptions(v *v18.WorkerDeploymentOptions) { + x.DeploymentOptions = v +} + +func (x *PollActivityTaskQueueRequest) HasTaskQueue() bool { + if x == nil { + return false + } + return x.TaskQueue != nil +} + +func (x *PollActivityTaskQueueRequest) HasTaskQueueMetadata() bool { + if x == nil { + return false + } + return x.TaskQueueMetadata != nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *PollActivityTaskQueueRequest) HasWorkerVersionCapabilities() bool { + if x == nil { + return false + } + return x.WorkerVersionCapabilities != nil +} + +func (x *PollActivityTaskQueueRequest) HasDeploymentOptions() bool { + if x == nil { + return false + } + return x.DeploymentOptions != nil +} + +func (x *PollActivityTaskQueueRequest) ClearTaskQueue() { + x.TaskQueue = nil +} + +func (x *PollActivityTaskQueueRequest) ClearTaskQueueMetadata() { + x.TaskQueueMetadata = nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *PollActivityTaskQueueRequest) ClearWorkerVersionCapabilities() { + x.WorkerVersionCapabilities = nil +} + +func (x *PollActivityTaskQueueRequest) ClearDeploymentOptions() { + x.DeploymentOptions = nil +} + +type PollActivityTaskQueueRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + TaskQueue *v14.TaskQueue + // The identity of the worker/client + Identity string + // A unique key for this worker instance, used for tracking worker lifecycle. + // This is guaranteed to be unique, whereas identity is not guaranteed to be unique. + WorkerInstanceKey string + TaskQueueMetadata *v14.TaskQueueMetadata + // Information about this worker's build identifier and if it is choosing to use the versioning + // feature. See the `WorkerVersionCapabilities` docstring for more. + // Deprecated. Replaced by deployment_options. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + WorkerVersionCapabilities *v13.WorkerVersionCapabilities + // Worker deployment options that user has set in the worker. + DeploymentOptions *v18.WorkerDeploymentOptions +} + +func (b0 PollActivityTaskQueueRequest_builder) Build() *PollActivityTaskQueueRequest { + m0 := &PollActivityTaskQueueRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.TaskQueue = b.TaskQueue + x.Identity = b.Identity + x.WorkerInstanceKey = b.WorkerInstanceKey + x.TaskQueueMetadata = b.TaskQueueMetadata + x.WorkerVersionCapabilities = b.WorkerVersionCapabilities + x.DeploymentOptions = b.DeploymentOptions + return m0 +} + type PollActivityTaskQueueResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // A unique identifier for this task TaskToken []byte `protobuf:"bytes,1,opt,name=task_token,json=taskToken,proto3" json:"task_token,omitempty"` // The namespace the workflow which requested this activity lives in @@ -2358,11 +4341,6 @@ func (x *PollActivityTaskQueueResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PollActivityTaskQueueResponse.ProtoReflect.Descriptor instead. -func (*PollActivityTaskQueueResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{23} -} - func (x *PollActivityTaskQueueResponse) GetTaskToken() []byte { if x != nil { return x.TaskToken @@ -2503,8 +4481,342 @@ func (x *PollActivityTaskQueueResponse) GetActivityRunId() string { return "" } +func (x *PollActivityTaskQueueResponse) SetTaskToken(v []byte) { + if v == nil { + v = []byte{} + } + x.TaskToken = v +} + +func (x *PollActivityTaskQueueResponse) SetWorkflowNamespace(v string) { + x.WorkflowNamespace = v +} + +func (x *PollActivityTaskQueueResponse) SetWorkflowType(v *v13.WorkflowType) { + x.WorkflowType = v +} + +func (x *PollActivityTaskQueueResponse) SetWorkflowExecution(v *v13.WorkflowExecution) { + x.WorkflowExecution = v +} + +func (x *PollActivityTaskQueueResponse) SetActivityType(v *v13.ActivityType) { + x.ActivityType = v +} + +func (x *PollActivityTaskQueueResponse) SetActivityId(v string) { + x.ActivityId = v +} + +func (x *PollActivityTaskQueueResponse) SetHeader(v *v13.Header) { + x.Header = v +} + +func (x *PollActivityTaskQueueResponse) SetInput(v *v13.Payloads) { + x.Input = v +} + +func (x *PollActivityTaskQueueResponse) SetHeartbeatDetails(v *v13.Payloads) { + x.HeartbeatDetails = v +} + +func (x *PollActivityTaskQueueResponse) SetScheduledTime(v *timestamppb.Timestamp) { + x.ScheduledTime = v +} + +func (x *PollActivityTaskQueueResponse) SetCurrentAttemptScheduledTime(v *timestamppb.Timestamp) { + x.CurrentAttemptScheduledTime = v +} + +func (x *PollActivityTaskQueueResponse) SetStartedTime(v *timestamppb.Timestamp) { + x.StartedTime = v +} + +func (x *PollActivityTaskQueueResponse) SetAttempt(v int32) { + x.Attempt = v +} + +func (x *PollActivityTaskQueueResponse) SetScheduleToCloseTimeout(v *durationpb.Duration) { + x.ScheduleToCloseTimeout = v +} + +func (x *PollActivityTaskQueueResponse) SetStartToCloseTimeout(v *durationpb.Duration) { + x.StartToCloseTimeout = v +} + +func (x *PollActivityTaskQueueResponse) SetHeartbeatTimeout(v *durationpb.Duration) { + x.HeartbeatTimeout = v +} + +func (x *PollActivityTaskQueueResponse) SetRetryPolicy(v *v13.RetryPolicy) { + x.RetryPolicy = v +} + +func (x *PollActivityTaskQueueResponse) SetPollerScalingDecision(v *v14.PollerScalingDecision) { + x.PollerScalingDecision = v +} + +func (x *PollActivityTaskQueueResponse) SetPriority(v *v13.Priority) { + x.Priority = v +} + +func (x *PollActivityTaskQueueResponse) SetActivityRunId(v string) { + x.ActivityRunId = v +} + +func (x *PollActivityTaskQueueResponse) HasWorkflowType() bool { + if x == nil { + return false + } + return x.WorkflowType != nil +} + +func (x *PollActivityTaskQueueResponse) HasWorkflowExecution() bool { + if x == nil { + return false + } + return x.WorkflowExecution != nil +} + +func (x *PollActivityTaskQueueResponse) HasActivityType() bool { + if x == nil { + return false + } + return x.ActivityType != nil +} + +func (x *PollActivityTaskQueueResponse) HasHeader() bool { + if x == nil { + return false + } + return x.Header != nil +} + +func (x *PollActivityTaskQueueResponse) HasInput() bool { + if x == nil { + return false + } + return x.Input != nil +} + +func (x *PollActivityTaskQueueResponse) HasHeartbeatDetails() bool { + if x == nil { + return false + } + return x.HeartbeatDetails != nil +} + +func (x *PollActivityTaskQueueResponse) HasScheduledTime() bool { + if x == nil { + return false + } + return x.ScheduledTime != nil +} + +func (x *PollActivityTaskQueueResponse) HasCurrentAttemptScheduledTime() bool { + if x == nil { + return false + } + return x.CurrentAttemptScheduledTime != nil +} + +func (x *PollActivityTaskQueueResponse) HasStartedTime() bool { + if x == nil { + return false + } + return x.StartedTime != nil +} + +func (x *PollActivityTaskQueueResponse) HasScheduleToCloseTimeout() bool { + if x == nil { + return false + } + return x.ScheduleToCloseTimeout != nil +} + +func (x *PollActivityTaskQueueResponse) HasStartToCloseTimeout() bool { + if x == nil { + return false + } + return x.StartToCloseTimeout != nil +} + +func (x *PollActivityTaskQueueResponse) HasHeartbeatTimeout() bool { + if x == nil { + return false + } + return x.HeartbeatTimeout != nil +} + +func (x *PollActivityTaskQueueResponse) HasRetryPolicy() bool { + if x == nil { + return false + } + return x.RetryPolicy != nil +} + +func (x *PollActivityTaskQueueResponse) HasPollerScalingDecision() bool { + if x == nil { + return false + } + return x.PollerScalingDecision != nil +} + +func (x *PollActivityTaskQueueResponse) HasPriority() bool { + if x == nil { + return false + } + return x.Priority != nil +} + +func (x *PollActivityTaskQueueResponse) ClearWorkflowType() { + x.WorkflowType = nil +} + +func (x *PollActivityTaskQueueResponse) ClearWorkflowExecution() { + x.WorkflowExecution = nil +} + +func (x *PollActivityTaskQueueResponse) ClearActivityType() { + x.ActivityType = nil +} + +func (x *PollActivityTaskQueueResponse) ClearHeader() { + x.Header = nil +} + +func (x *PollActivityTaskQueueResponse) ClearInput() { + x.Input = nil +} + +func (x *PollActivityTaskQueueResponse) ClearHeartbeatDetails() { + x.HeartbeatDetails = nil +} + +func (x *PollActivityTaskQueueResponse) ClearScheduledTime() { + x.ScheduledTime = nil +} + +func (x *PollActivityTaskQueueResponse) ClearCurrentAttemptScheduledTime() { + x.CurrentAttemptScheduledTime = nil +} + +func (x *PollActivityTaskQueueResponse) ClearStartedTime() { + x.StartedTime = nil +} + +func (x *PollActivityTaskQueueResponse) ClearScheduleToCloseTimeout() { + x.ScheduleToCloseTimeout = nil +} + +func (x *PollActivityTaskQueueResponse) ClearStartToCloseTimeout() { + x.StartToCloseTimeout = nil +} + +func (x *PollActivityTaskQueueResponse) ClearHeartbeatTimeout() { + x.HeartbeatTimeout = nil +} + +func (x *PollActivityTaskQueueResponse) ClearRetryPolicy() { + x.RetryPolicy = nil +} + +func (x *PollActivityTaskQueueResponse) ClearPollerScalingDecision() { + x.PollerScalingDecision = nil +} + +func (x *PollActivityTaskQueueResponse) ClearPriority() { + x.Priority = nil +} + +type PollActivityTaskQueueResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // A unique identifier for this task + TaskToken []byte + // The namespace the workflow which requested this activity lives in + WorkflowNamespace string + // Type of the requesting workflow + WorkflowType *v13.WorkflowType + // Execution info of the requesting workflow + WorkflowExecution *v13.WorkflowExecution + ActivityType *v13.ActivityType + // The autogenerated or user specified identifier of this activity. Can be used to complete the + // activity via `RespondActivityTaskCompletedById`. May be re-used as long as the last usage + // has resolved, but unique IDs for every activity invocation is a good idea. + // Note that only a workflow activity ID may be autogenerated. + ActivityId string + // Headers specified by the scheduling workflow. Commonly used to propagate contextual info + // from the workflow to its activities. For example, tracing contexts. + Header *v13.Header + // Arguments to the activity invocation + Input *v13.Payloads + // Details of the last heartbeat that was recorded for this activity as of the time this task + // was delivered. + HeartbeatDetails *v13.Payloads + // When was this task first scheduled + ScheduledTime *timestamppb.Timestamp + // When was this task attempt scheduled + CurrentAttemptScheduledTime *timestamppb.Timestamp + // When was this task started (this attempt) + StartedTime *timestamppb.Timestamp + // Starting at 1, the number of attempts to perform this activity + Attempt int32 + // First scheduled -> final result reported timeout + // + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + ScheduleToCloseTimeout *durationpb.Duration + // Current attempt start -> final result reported timeout + // + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + StartToCloseTimeout *durationpb.Duration + // Window within which the activity must report a heartbeat, or be timed out. + HeartbeatTimeout *durationpb.Duration + // This is the retry policy the service uses which may be different from the one provided + // (or not) during activity scheduling. The service can override the provided one if some + // values are not specified or exceed configured system limits. + RetryPolicy *v13.RetryPolicy + // Server-advised information the SDK may use to adjust its poller count. + PollerScalingDecision *v14.PollerScalingDecision + // Priority metadata + Priority *v13.Priority + // The run ID of the activity execution, only set for standalone activities. + ActivityRunId string +} + +func (b0 PollActivityTaskQueueResponse_builder) Build() *PollActivityTaskQueueResponse { + m0 := &PollActivityTaskQueueResponse{} + b, x := &b0, m0 + _, _ = b, x + x.TaskToken = b.TaskToken + x.WorkflowNamespace = b.WorkflowNamespace + x.WorkflowType = b.WorkflowType + x.WorkflowExecution = b.WorkflowExecution + x.ActivityType = b.ActivityType + x.ActivityId = b.ActivityId + x.Header = b.Header + x.Input = b.Input + x.HeartbeatDetails = b.HeartbeatDetails + x.ScheduledTime = b.ScheduledTime + x.CurrentAttemptScheduledTime = b.CurrentAttemptScheduledTime + x.StartedTime = b.StartedTime + x.Attempt = b.Attempt + x.ScheduleToCloseTimeout = b.ScheduleToCloseTimeout + x.StartToCloseTimeout = b.StartToCloseTimeout + x.HeartbeatTimeout = b.HeartbeatTimeout + x.RetryPolicy = b.RetryPolicy + x.PollerScalingDecision = b.PollerScalingDecision + x.Priority = b.Priority + x.ActivityRunId = b.ActivityRunId + return m0 +} + type RecordActivityTaskHeartbeatRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The task token as received in `PollActivityTaskQueueResponse` TaskToken []byte `protobuf:"bytes,1,opt,name=task_token,json=taskToken,proto3" json:"task_token,omitempty"` // Arbitrary data, of which the most recent call is kept, to store for this activity @@ -2541,11 +4853,6 @@ func (x *RecordActivityTaskHeartbeatRequest) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use RecordActivityTaskHeartbeatRequest.ProtoReflect.Descriptor instead. -func (*RecordActivityTaskHeartbeatRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{24} -} - func (x *RecordActivityTaskHeartbeatRequest) GetTaskToken() []byte { if x != nil { return x.TaskToken @@ -2560,22 +4867,75 @@ func (x *RecordActivityTaskHeartbeatRequest) GetDetails() *v13.Payloads { return nil } -func (x *RecordActivityTaskHeartbeatRequest) GetIdentity() string { - if x != nil { - return x.Identity - } - return "" +func (x *RecordActivityTaskHeartbeatRequest) GetIdentity() string { + if x != nil { + return x.Identity + } + return "" +} + +func (x *RecordActivityTaskHeartbeatRequest) GetNamespace() string { + if x != nil { + return x.Namespace + } + return "" +} + +func (x *RecordActivityTaskHeartbeatRequest) SetTaskToken(v []byte) { + if v == nil { + v = []byte{} + } + x.TaskToken = v +} + +func (x *RecordActivityTaskHeartbeatRequest) SetDetails(v *v13.Payloads) { + x.Details = v +} + +func (x *RecordActivityTaskHeartbeatRequest) SetIdentity(v string) { + x.Identity = v +} + +func (x *RecordActivityTaskHeartbeatRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *RecordActivityTaskHeartbeatRequest) HasDetails() bool { + if x == nil { + return false + } + return x.Details != nil +} + +func (x *RecordActivityTaskHeartbeatRequest) ClearDetails() { + x.Details = nil +} + +type RecordActivityTaskHeartbeatRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The task token as received in `PollActivityTaskQueueResponse` + TaskToken []byte + // Arbitrary data, of which the most recent call is kept, to store for this activity + Details *v13.Payloads + // The identity of the worker/client + Identity string + Namespace string } -func (x *RecordActivityTaskHeartbeatRequest) GetNamespace() string { - if x != nil { - return x.Namespace - } - return "" +func (b0 RecordActivityTaskHeartbeatRequest_builder) Build() *RecordActivityTaskHeartbeatRequest { + m0 := &RecordActivityTaskHeartbeatRequest{} + b, x := &b0, m0 + _, _ = b, x + x.TaskToken = b.TaskToken + x.Details = b.Details + x.Identity = b.Identity + x.Namespace = b.Namespace + return m0 } type RecordActivityTaskHeartbeatResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Will be set to true if the activity has been asked to cancel itself. The SDK should then // notify the activity of cancellation if it is still running. CancelRequested bool `protobuf:"varint,1,opt,name=cancel_requested,json=cancelRequested,proto3" json:"cancel_requested,omitempty"` @@ -2613,11 +4973,6 @@ func (x *RecordActivityTaskHeartbeatResponse) ProtoReflect() protoreflect.Messag return mi.MessageOf(x) } -// Deprecated: Use RecordActivityTaskHeartbeatResponse.ProtoReflect.Descriptor instead. -func (*RecordActivityTaskHeartbeatResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{25} -} - func (x *RecordActivityTaskHeartbeatResponse) GetCancelRequested() bool { if x != nil { return x.CancelRequested @@ -2639,8 +4994,43 @@ func (x *RecordActivityTaskHeartbeatResponse) GetActivityReset() bool { return false } +func (x *RecordActivityTaskHeartbeatResponse) SetCancelRequested(v bool) { + x.CancelRequested = v +} + +func (x *RecordActivityTaskHeartbeatResponse) SetActivityPaused(v bool) { + x.ActivityPaused = v +} + +func (x *RecordActivityTaskHeartbeatResponse) SetActivityReset(v bool) { + x.ActivityReset = v +} + +type RecordActivityTaskHeartbeatResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Will be set to true if the activity has been asked to cancel itself. The SDK should then + // notify the activity of cancellation if it is still running. + CancelRequested bool + // Will be set to true if the activity is paused. + ActivityPaused bool + // Will be set to true if the activity was reset. + // Applies only to the current run. + ActivityReset bool +} + +func (b0 RecordActivityTaskHeartbeatResponse_builder) Build() *RecordActivityTaskHeartbeatResponse { + m0 := &RecordActivityTaskHeartbeatResponse{} + b, x := &b0, m0 + _, _ = b, x + x.CancelRequested = b.CancelRequested + x.ActivityPaused = b.ActivityPaused + x.ActivityReset = b.ActivityReset + return m0 +} + type RecordActivityTaskHeartbeatByIdRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Namespace of the workflow which scheduled this activity Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // Id of the workflow which scheduled this activity, leave empty to target a standalone activity @@ -2683,11 +5073,6 @@ func (x *RecordActivityTaskHeartbeatByIdRequest) ProtoReflect() protoreflect.Mes return mi.MessageOf(x) } -// Deprecated: Use RecordActivityTaskHeartbeatByIdRequest.ProtoReflect.Descriptor instead. -func (*RecordActivityTaskHeartbeatByIdRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{26} -} - func (x *RecordActivityTaskHeartbeatByIdRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -2730,8 +5115,74 @@ func (x *RecordActivityTaskHeartbeatByIdRequest) GetIdentity() string { return "" } +func (x *RecordActivityTaskHeartbeatByIdRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *RecordActivityTaskHeartbeatByIdRequest) SetWorkflowId(v string) { + x.WorkflowId = v +} + +func (x *RecordActivityTaskHeartbeatByIdRequest) SetRunId(v string) { + x.RunId = v +} + +func (x *RecordActivityTaskHeartbeatByIdRequest) SetActivityId(v string) { + x.ActivityId = v +} + +func (x *RecordActivityTaskHeartbeatByIdRequest) SetDetails(v *v13.Payloads) { + x.Details = v +} + +func (x *RecordActivityTaskHeartbeatByIdRequest) SetIdentity(v string) { + x.Identity = v +} + +func (x *RecordActivityTaskHeartbeatByIdRequest) HasDetails() bool { + if x == nil { + return false + } + return x.Details != nil +} + +func (x *RecordActivityTaskHeartbeatByIdRequest) ClearDetails() { + x.Details = nil +} + +type RecordActivityTaskHeartbeatByIdRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Namespace of the workflow which scheduled this activity + Namespace string + // Id of the workflow which scheduled this activity, leave empty to target a standalone activity + WorkflowId string + // For a workflow activity - the run ID of the workflow which scheduled this activity. + // For a standalone activity - the run ID of the activity. + RunId string + // Id of the activity we're heartbeating + ActivityId string + // Arbitrary data, of which the most recent call is kept, to store for this activity + Details *v13.Payloads + // The identity of the worker/client + Identity string +} + +func (b0 RecordActivityTaskHeartbeatByIdRequest_builder) Build() *RecordActivityTaskHeartbeatByIdRequest { + m0 := &RecordActivityTaskHeartbeatByIdRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.WorkflowId = b.WorkflowId + x.RunId = b.RunId + x.ActivityId = b.ActivityId + x.Details = b.Details + x.Identity = b.Identity + return m0 +} + type RecordActivityTaskHeartbeatByIdResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Will be set to true if the activity has been asked to cancel itself. The SDK should then // notify the activity of cancellation if it is still running. CancelRequested bool `protobuf:"varint,1,opt,name=cancel_requested,json=cancelRequested,proto3" json:"cancel_requested,omitempty"` @@ -2769,11 +5220,6 @@ func (x *RecordActivityTaskHeartbeatByIdResponse) ProtoReflect() protoreflect.Me return mi.MessageOf(x) } -// Deprecated: Use RecordActivityTaskHeartbeatByIdResponse.ProtoReflect.Descriptor instead. -func (*RecordActivityTaskHeartbeatByIdResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{27} -} - func (x *RecordActivityTaskHeartbeatByIdResponse) GetCancelRequested() bool { if x != nil { return x.CancelRequested @@ -2795,8 +5241,43 @@ func (x *RecordActivityTaskHeartbeatByIdResponse) GetActivityReset() bool { return false } +func (x *RecordActivityTaskHeartbeatByIdResponse) SetCancelRequested(v bool) { + x.CancelRequested = v +} + +func (x *RecordActivityTaskHeartbeatByIdResponse) SetActivityPaused(v bool) { + x.ActivityPaused = v +} + +func (x *RecordActivityTaskHeartbeatByIdResponse) SetActivityReset(v bool) { + x.ActivityReset = v +} + +type RecordActivityTaskHeartbeatByIdResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Will be set to true if the activity has been asked to cancel itself. The SDK should then + // notify the activity of cancellation if it is still running. + CancelRequested bool + // Will be set to true if the activity is paused. + ActivityPaused bool + // Will be set to true if the activity was reset. + // Applies only to the current run. + ActivityReset bool +} + +func (b0 RecordActivityTaskHeartbeatByIdResponse_builder) Build() *RecordActivityTaskHeartbeatByIdResponse { + m0 := &RecordActivityTaskHeartbeatByIdResponse{} + b, x := &b0, m0 + _, _ = b, x + x.CancelRequested = b.CancelRequested + x.ActivityPaused = b.ActivityPaused + x.ActivityReset = b.ActivityReset + return m0 +} + type RespondActivityTaskCompletedRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The task token as received in `PollActivityTaskQueueResponse` TaskToken []byte `protobuf:"bytes,1,opt,name=task_token,json=taskToken,proto3" json:"task_token,omitempty"` // The result of successfully executing the activity @@ -2848,11 +5329,6 @@ func (x *RespondActivityTaskCompletedRequest) ProtoReflect() protoreflect.Messag return mi.MessageOf(x) } -// Deprecated: Use RespondActivityTaskCompletedRequest.ProtoReflect.Descriptor instead. -func (*RespondActivityTaskCompletedRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{28} -} - func (x *RespondActivityTaskCompletedRequest) GetTaskToken() []byte { if x != nil { return x.TaskToken @@ -2904,8 +5380,130 @@ func (x *RespondActivityTaskCompletedRequest) GetDeploymentOptions() *v18.Worker return nil } +func (x *RespondActivityTaskCompletedRequest) SetTaskToken(v []byte) { + if v == nil { + v = []byte{} + } + x.TaskToken = v +} + +func (x *RespondActivityTaskCompletedRequest) SetResult(v *v13.Payloads) { + x.Result = v +} + +func (x *RespondActivityTaskCompletedRequest) SetIdentity(v string) { + x.Identity = v +} + +func (x *RespondActivityTaskCompletedRequest) SetNamespace(v string) { + x.Namespace = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondActivityTaskCompletedRequest) SetWorkerVersion(v *v13.WorkerVersionStamp) { + x.WorkerVersion = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondActivityTaskCompletedRequest) SetDeployment(v *v18.Deployment) { + x.Deployment = v +} + +func (x *RespondActivityTaskCompletedRequest) SetDeploymentOptions(v *v18.WorkerDeploymentOptions) { + x.DeploymentOptions = v +} + +func (x *RespondActivityTaskCompletedRequest) HasResult() bool { + if x == nil { + return false + } + return x.Result != nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondActivityTaskCompletedRequest) HasWorkerVersion() bool { + if x == nil { + return false + } + return x.WorkerVersion != nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondActivityTaskCompletedRequest) HasDeployment() bool { + if x == nil { + return false + } + return x.Deployment != nil +} + +func (x *RespondActivityTaskCompletedRequest) HasDeploymentOptions() bool { + if x == nil { + return false + } + return x.DeploymentOptions != nil +} + +func (x *RespondActivityTaskCompletedRequest) ClearResult() { + x.Result = nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondActivityTaskCompletedRequest) ClearWorkerVersion() { + x.WorkerVersion = nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondActivityTaskCompletedRequest) ClearDeployment() { + x.Deployment = nil +} + +func (x *RespondActivityTaskCompletedRequest) ClearDeploymentOptions() { + x.DeploymentOptions = nil +} + +type RespondActivityTaskCompletedRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The task token as received in `PollActivityTaskQueueResponse` + TaskToken []byte + // The result of successfully executing the activity + Result *v13.Payloads + // The identity of the worker/client + Identity string + Namespace string + // Version info of the worker who processed this task. This message's `build_id` field should + // always be set by SDKs. Workers opting into versioning will also set the `use_versioning` + // field to true. See message docstrings for more. + // Deprecated. Use `deployment_options` instead. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + WorkerVersion *v13.WorkerVersionStamp + // Deployment info of the worker that completed this task. Must be present if user has set + // `WorkerDeploymentOptions` regardless of versioning being enabled or not. + // Deprecated. Replaced with `deployment_options`. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + Deployment *v18.Deployment + // Worker deployment options that user has set in the worker. + DeploymentOptions *v18.WorkerDeploymentOptions +} + +func (b0 RespondActivityTaskCompletedRequest_builder) Build() *RespondActivityTaskCompletedRequest { + m0 := &RespondActivityTaskCompletedRequest{} + b, x := &b0, m0 + _, _ = b, x + x.TaskToken = b.TaskToken + x.Result = b.Result + x.Identity = b.Identity + x.Namespace = b.Namespace + x.WorkerVersion = b.WorkerVersion + x.Deployment = b.Deployment + x.DeploymentOptions = b.DeploymentOptions + return m0 +} + type RespondActivityTaskCompletedResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -2935,13 +5533,20 @@ func (x *RespondActivityTaskCompletedResponse) ProtoReflect() protoreflect.Messa return mi.MessageOf(x) } -// Deprecated: Use RespondActivityTaskCompletedResponse.ProtoReflect.Descriptor instead. -func (*RespondActivityTaskCompletedResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{29} +type RespondActivityTaskCompletedResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 RespondActivityTaskCompletedResponse_builder) Build() *RespondActivityTaskCompletedResponse { + m0 := &RespondActivityTaskCompletedResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type RespondActivityTaskCompletedByIdRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Namespace of the workflow which scheduled this activity Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // Id of the workflow which scheduled this activity, leave empty to target a standalone activity @@ -2984,11 +5589,6 @@ func (x *RespondActivityTaskCompletedByIdRequest) ProtoReflect() protoreflect.Me return mi.MessageOf(x) } -// Deprecated: Use RespondActivityTaskCompletedByIdRequest.ProtoReflect.Descriptor instead. -func (*RespondActivityTaskCompletedByIdRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{30} -} - func (x *RespondActivityTaskCompletedByIdRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -3031,8 +5631,74 @@ func (x *RespondActivityTaskCompletedByIdRequest) GetIdentity() string { return "" } +func (x *RespondActivityTaskCompletedByIdRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *RespondActivityTaskCompletedByIdRequest) SetWorkflowId(v string) { + x.WorkflowId = v +} + +func (x *RespondActivityTaskCompletedByIdRequest) SetRunId(v string) { + x.RunId = v +} + +func (x *RespondActivityTaskCompletedByIdRequest) SetActivityId(v string) { + x.ActivityId = v +} + +func (x *RespondActivityTaskCompletedByIdRequest) SetResult(v *v13.Payloads) { + x.Result = v +} + +func (x *RespondActivityTaskCompletedByIdRequest) SetIdentity(v string) { + x.Identity = v +} + +func (x *RespondActivityTaskCompletedByIdRequest) HasResult() bool { + if x == nil { + return false + } + return x.Result != nil +} + +func (x *RespondActivityTaskCompletedByIdRequest) ClearResult() { + x.Result = nil +} + +type RespondActivityTaskCompletedByIdRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Namespace of the workflow which scheduled this activity + Namespace string + // Id of the workflow which scheduled this activity, leave empty to target a standalone activity + WorkflowId string + // For a workflow activity - the run ID of the workflow which scheduled this activity. + // For a standalone activity - the run ID of the activity. + RunId string + // Id of the activity to complete + ActivityId string + // The serialized result of activity execution + Result *v13.Payloads + // The identity of the worker/client + Identity string +} + +func (b0 RespondActivityTaskCompletedByIdRequest_builder) Build() *RespondActivityTaskCompletedByIdRequest { + m0 := &RespondActivityTaskCompletedByIdRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.WorkflowId = b.WorkflowId + x.RunId = b.RunId + x.ActivityId = b.ActivityId + x.Result = b.Result + x.Identity = b.Identity + return m0 +} + type RespondActivityTaskCompletedByIdResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -3062,13 +5728,20 @@ func (x *RespondActivityTaskCompletedByIdResponse) ProtoReflect() protoreflect.M return mi.MessageOf(x) } -// Deprecated: Use RespondActivityTaskCompletedByIdResponse.ProtoReflect.Descriptor instead. -func (*RespondActivityTaskCompletedByIdResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{31} +type RespondActivityTaskCompletedByIdResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 RespondActivityTaskCompletedByIdResponse_builder) Build() *RespondActivityTaskCompletedByIdResponse { + m0 := &RespondActivityTaskCompletedByIdResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type RespondActivityTaskFailedRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The task token as received in `PollActivityTaskQueueResponse` TaskToken []byte `protobuf:"bytes,1,opt,name=task_token,json=taskToken,proto3" json:"task_token,omitempty"` // Detailed failure information @@ -3122,11 +5795,6 @@ func (x *RespondActivityTaskFailedRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RespondActivityTaskFailedRequest.ProtoReflect.Descriptor instead. -func (*RespondActivityTaskFailedRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{32} -} - func (x *RespondActivityTaskFailedRequest) GetTaskToken() []byte { if x != nil { return x.TaskToken @@ -3178,15 +5846,155 @@ func (x *RespondActivityTaskFailedRequest) GetDeployment() *v18.Deployment { return nil } -func (x *RespondActivityTaskFailedRequest) GetDeploymentOptions() *v18.WorkerDeploymentOptions { - if x != nil { - return x.DeploymentOptions - } - return nil +func (x *RespondActivityTaskFailedRequest) GetDeploymentOptions() *v18.WorkerDeploymentOptions { + if x != nil { + return x.DeploymentOptions + } + return nil +} + +func (x *RespondActivityTaskFailedRequest) SetTaskToken(v []byte) { + if v == nil { + v = []byte{} + } + x.TaskToken = v +} + +func (x *RespondActivityTaskFailedRequest) SetFailure(v *v15.Failure) { + x.Failure = v +} + +func (x *RespondActivityTaskFailedRequest) SetIdentity(v string) { + x.Identity = v +} + +func (x *RespondActivityTaskFailedRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *RespondActivityTaskFailedRequest) SetLastHeartbeatDetails(v *v13.Payloads) { + x.LastHeartbeatDetails = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondActivityTaskFailedRequest) SetWorkerVersion(v *v13.WorkerVersionStamp) { + x.WorkerVersion = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondActivityTaskFailedRequest) SetDeployment(v *v18.Deployment) { + x.Deployment = v +} + +func (x *RespondActivityTaskFailedRequest) SetDeploymentOptions(v *v18.WorkerDeploymentOptions) { + x.DeploymentOptions = v +} + +func (x *RespondActivityTaskFailedRequest) HasFailure() bool { + if x == nil { + return false + } + return x.Failure != nil +} + +func (x *RespondActivityTaskFailedRequest) HasLastHeartbeatDetails() bool { + if x == nil { + return false + } + return x.LastHeartbeatDetails != nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondActivityTaskFailedRequest) HasWorkerVersion() bool { + if x == nil { + return false + } + return x.WorkerVersion != nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondActivityTaskFailedRequest) HasDeployment() bool { + if x == nil { + return false + } + return x.Deployment != nil +} + +func (x *RespondActivityTaskFailedRequest) HasDeploymentOptions() bool { + if x == nil { + return false + } + return x.DeploymentOptions != nil +} + +func (x *RespondActivityTaskFailedRequest) ClearFailure() { + x.Failure = nil +} + +func (x *RespondActivityTaskFailedRequest) ClearLastHeartbeatDetails() { + x.LastHeartbeatDetails = nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondActivityTaskFailedRequest) ClearWorkerVersion() { + x.WorkerVersion = nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondActivityTaskFailedRequest) ClearDeployment() { + x.Deployment = nil +} + +func (x *RespondActivityTaskFailedRequest) ClearDeploymentOptions() { + x.DeploymentOptions = nil +} + +type RespondActivityTaskFailedRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The task token as received in `PollActivityTaskQueueResponse` + TaskToken []byte + // Detailed failure information + Failure *v15.Failure + // The identity of the worker/client + Identity string + Namespace string + // Additional details to be stored as last activity heartbeat + LastHeartbeatDetails *v13.Payloads + // Version info of the worker who processed this task. This message's `build_id` field should + // always be set by SDKs. Workers opting into versioning will also set the `use_versioning` + // field to true. See message docstrings for more. + // Deprecated. Use `deployment_options` instead. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + WorkerVersion *v13.WorkerVersionStamp + // Deployment info of the worker that completed this task. Must be present if user has set + // `WorkerDeploymentOptions` regardless of versioning being enabled or not. + // Deprecated. Replaced with `deployment_options`. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + Deployment *v18.Deployment + // Worker deployment options that user has set in the worker. + DeploymentOptions *v18.WorkerDeploymentOptions +} + +func (b0 RespondActivityTaskFailedRequest_builder) Build() *RespondActivityTaskFailedRequest { + m0 := &RespondActivityTaskFailedRequest{} + b, x := &b0, m0 + _, _ = b, x + x.TaskToken = b.TaskToken + x.Failure = b.Failure + x.Identity = b.Identity + x.Namespace = b.Namespace + x.LastHeartbeatDetails = b.LastHeartbeatDetails + x.WorkerVersion = b.WorkerVersion + x.Deployment = b.Deployment + x.DeploymentOptions = b.DeploymentOptions + return m0 } type RespondActivityTaskFailedResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Server validation failures could include // last_heartbeat_details payload is too large, request failure is too large Failures []*v15.Failure `protobuf:"bytes,1,rep,name=failures,proto3" json:"failures,omitempty"` @@ -3219,11 +6027,6 @@ func (x *RespondActivityTaskFailedResponse) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use RespondActivityTaskFailedResponse.ProtoReflect.Descriptor instead. -func (*RespondActivityTaskFailedResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{33} -} - func (x *RespondActivityTaskFailedResponse) GetFailures() []*v15.Failure { if x != nil { return x.Failures @@ -3231,8 +6034,28 @@ func (x *RespondActivityTaskFailedResponse) GetFailures() []*v15.Failure { return nil } +func (x *RespondActivityTaskFailedResponse) SetFailures(v []*v15.Failure) { + x.Failures = v +} + +type RespondActivityTaskFailedResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Server validation failures could include + // last_heartbeat_details payload is too large, request failure is too large + Failures []*v15.Failure +} + +func (b0 RespondActivityTaskFailedResponse_builder) Build() *RespondActivityTaskFailedResponse { + m0 := &RespondActivityTaskFailedResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Failures = b.Failures + return m0 +} + type RespondActivityTaskFailedByIdRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Namespace of the workflow which scheduled this activity Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // Id of the workflow which scheduled this activity, leave empty to target a standalone activity @@ -3277,11 +6100,6 @@ func (x *RespondActivityTaskFailedByIdRequest) ProtoReflect() protoreflect.Messa return mi.MessageOf(x) } -// Deprecated: Use RespondActivityTaskFailedByIdRequest.ProtoReflect.Descriptor instead. -func (*RespondActivityTaskFailedByIdRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{34} -} - func (x *RespondActivityTaskFailedByIdRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -3331,8 +6149,92 @@ func (x *RespondActivityTaskFailedByIdRequest) GetLastHeartbeatDetails() *v13.Pa return nil } +func (x *RespondActivityTaskFailedByIdRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *RespondActivityTaskFailedByIdRequest) SetWorkflowId(v string) { + x.WorkflowId = v +} + +func (x *RespondActivityTaskFailedByIdRequest) SetRunId(v string) { + x.RunId = v +} + +func (x *RespondActivityTaskFailedByIdRequest) SetActivityId(v string) { + x.ActivityId = v +} + +func (x *RespondActivityTaskFailedByIdRequest) SetFailure(v *v15.Failure) { + x.Failure = v +} + +func (x *RespondActivityTaskFailedByIdRequest) SetIdentity(v string) { + x.Identity = v +} + +func (x *RespondActivityTaskFailedByIdRequest) SetLastHeartbeatDetails(v *v13.Payloads) { + x.LastHeartbeatDetails = v +} + +func (x *RespondActivityTaskFailedByIdRequest) HasFailure() bool { + if x == nil { + return false + } + return x.Failure != nil +} + +func (x *RespondActivityTaskFailedByIdRequest) HasLastHeartbeatDetails() bool { + if x == nil { + return false + } + return x.LastHeartbeatDetails != nil +} + +func (x *RespondActivityTaskFailedByIdRequest) ClearFailure() { + x.Failure = nil +} + +func (x *RespondActivityTaskFailedByIdRequest) ClearLastHeartbeatDetails() { + x.LastHeartbeatDetails = nil +} + +type RespondActivityTaskFailedByIdRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Namespace of the workflow which scheduled this activity + Namespace string + // Id of the workflow which scheduled this activity, leave empty to target a standalone activity + WorkflowId string + // For a workflow activity - the run ID of the workflow which scheduled this activity. + // For a standalone activity - the run ID of the activity. + RunId string + // Id of the activity to fail + ActivityId string + // Detailed failure information + Failure *v15.Failure + // The identity of the worker/client + Identity string + // Additional details to be stored as last activity heartbeat + LastHeartbeatDetails *v13.Payloads +} + +func (b0 RespondActivityTaskFailedByIdRequest_builder) Build() *RespondActivityTaskFailedByIdRequest { + m0 := &RespondActivityTaskFailedByIdRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.WorkflowId = b.WorkflowId + x.RunId = b.RunId + x.ActivityId = b.ActivityId + x.Failure = b.Failure + x.Identity = b.Identity + x.LastHeartbeatDetails = b.LastHeartbeatDetails + return m0 +} + type RespondActivityTaskFailedByIdResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Server validation failures could include // last_heartbeat_details payload is too large, request failure is too large Failures []*v15.Failure `protobuf:"bytes,1,rep,name=failures,proto3" json:"failures,omitempty"` @@ -3365,11 +6267,6 @@ func (x *RespondActivityTaskFailedByIdResponse) ProtoReflect() protoreflect.Mess return mi.MessageOf(x) } -// Deprecated: Use RespondActivityTaskFailedByIdResponse.ProtoReflect.Descriptor instead. -func (*RespondActivityTaskFailedByIdResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{35} -} - func (x *RespondActivityTaskFailedByIdResponse) GetFailures() []*v15.Failure { if x != nil { return x.Failures @@ -3377,8 +6274,28 @@ func (x *RespondActivityTaskFailedByIdResponse) GetFailures() []*v15.Failure { return nil } +func (x *RespondActivityTaskFailedByIdResponse) SetFailures(v []*v15.Failure) { + x.Failures = v +} + +type RespondActivityTaskFailedByIdResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Server validation failures could include + // last_heartbeat_details payload is too large, request failure is too large + Failures []*v15.Failure +} + +func (b0 RespondActivityTaskFailedByIdResponse_builder) Build() *RespondActivityTaskFailedByIdResponse { + m0 := &RespondActivityTaskFailedByIdResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Failures = b.Failures + return m0 +} + type RespondActivityTaskCanceledRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The task token as received in `PollActivityTaskQueueResponse` TaskToken []byte `protobuf:"bytes,1,opt,name=task_token,json=taskToken,proto3" json:"task_token,omitempty"` // Serialized additional information to attach to the cancellation @@ -3430,11 +6347,6 @@ func (x *RespondActivityTaskCanceledRequest) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use RespondActivityTaskCanceledRequest.ProtoReflect.Descriptor instead. -func (*RespondActivityTaskCanceledRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{36} -} - func (x *RespondActivityTaskCanceledRequest) GetTaskToken() []byte { if x != nil { return x.TaskToken @@ -3486,8 +6398,130 @@ func (x *RespondActivityTaskCanceledRequest) GetDeploymentOptions() *v18.WorkerD return nil } +func (x *RespondActivityTaskCanceledRequest) SetTaskToken(v []byte) { + if v == nil { + v = []byte{} + } + x.TaskToken = v +} + +func (x *RespondActivityTaskCanceledRequest) SetDetails(v *v13.Payloads) { + x.Details = v +} + +func (x *RespondActivityTaskCanceledRequest) SetIdentity(v string) { + x.Identity = v +} + +func (x *RespondActivityTaskCanceledRequest) SetNamespace(v string) { + x.Namespace = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondActivityTaskCanceledRequest) SetWorkerVersion(v *v13.WorkerVersionStamp) { + x.WorkerVersion = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondActivityTaskCanceledRequest) SetDeployment(v *v18.Deployment) { + x.Deployment = v +} + +func (x *RespondActivityTaskCanceledRequest) SetDeploymentOptions(v *v18.WorkerDeploymentOptions) { + x.DeploymentOptions = v +} + +func (x *RespondActivityTaskCanceledRequest) HasDetails() bool { + if x == nil { + return false + } + return x.Details != nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondActivityTaskCanceledRequest) HasWorkerVersion() bool { + if x == nil { + return false + } + return x.WorkerVersion != nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondActivityTaskCanceledRequest) HasDeployment() bool { + if x == nil { + return false + } + return x.Deployment != nil +} + +func (x *RespondActivityTaskCanceledRequest) HasDeploymentOptions() bool { + if x == nil { + return false + } + return x.DeploymentOptions != nil +} + +func (x *RespondActivityTaskCanceledRequest) ClearDetails() { + x.Details = nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondActivityTaskCanceledRequest) ClearWorkerVersion() { + x.WorkerVersion = nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondActivityTaskCanceledRequest) ClearDeployment() { + x.Deployment = nil +} + +func (x *RespondActivityTaskCanceledRequest) ClearDeploymentOptions() { + x.DeploymentOptions = nil +} + +type RespondActivityTaskCanceledRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The task token as received in `PollActivityTaskQueueResponse` + TaskToken []byte + // Serialized additional information to attach to the cancellation + Details *v13.Payloads + // The identity of the worker/client + Identity string + Namespace string + // Version info of the worker who processed this task. This message's `build_id` field should + // always be set by SDKs. Workers opting into versioning will also set the `use_versioning` + // field to true. See message docstrings for more. + // Deprecated. Use `deployment_options` instead. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + WorkerVersion *v13.WorkerVersionStamp + // Deployment info of the worker that completed this task. Must be present if user has set + // `WorkerDeploymentOptions` regardless of versioning being enabled or not. + // Deprecated. Replaced with `deployment_options`. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + Deployment *v18.Deployment + // Worker deployment options that user has set in the worker. + DeploymentOptions *v18.WorkerDeploymentOptions +} + +func (b0 RespondActivityTaskCanceledRequest_builder) Build() *RespondActivityTaskCanceledRequest { + m0 := &RespondActivityTaskCanceledRequest{} + b, x := &b0, m0 + _, _ = b, x + x.TaskToken = b.TaskToken + x.Details = b.Details + x.Identity = b.Identity + x.Namespace = b.Namespace + x.WorkerVersion = b.WorkerVersion + x.Deployment = b.Deployment + x.DeploymentOptions = b.DeploymentOptions + return m0 +} + type RespondActivityTaskCanceledResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -3517,13 +6551,20 @@ func (x *RespondActivityTaskCanceledResponse) ProtoReflect() protoreflect.Messag return mi.MessageOf(x) } -// Deprecated: Use RespondActivityTaskCanceledResponse.ProtoReflect.Descriptor instead. -func (*RespondActivityTaskCanceledResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{37} +type RespondActivityTaskCanceledResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 RespondActivityTaskCanceledResponse_builder) Build() *RespondActivityTaskCanceledResponse { + m0 := &RespondActivityTaskCanceledResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type RespondActivityTaskCanceledByIdRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Namespace of the workflow which scheduled this activity Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // Id of the workflow which scheduled this activity, leave empty to target a standalone activity @@ -3568,11 +6609,6 @@ func (x *RespondActivityTaskCanceledByIdRequest) ProtoReflect() protoreflect.Mes return mi.MessageOf(x) } -// Deprecated: Use RespondActivityTaskCanceledByIdRequest.ProtoReflect.Descriptor instead. -func (*RespondActivityTaskCanceledByIdRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{38} -} - func (x *RespondActivityTaskCanceledByIdRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -3622,8 +6658,92 @@ func (x *RespondActivityTaskCanceledByIdRequest) GetDeploymentOptions() *v18.Wor return nil } +func (x *RespondActivityTaskCanceledByIdRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *RespondActivityTaskCanceledByIdRequest) SetWorkflowId(v string) { + x.WorkflowId = v +} + +func (x *RespondActivityTaskCanceledByIdRequest) SetRunId(v string) { + x.RunId = v +} + +func (x *RespondActivityTaskCanceledByIdRequest) SetActivityId(v string) { + x.ActivityId = v +} + +func (x *RespondActivityTaskCanceledByIdRequest) SetDetails(v *v13.Payloads) { + x.Details = v +} + +func (x *RespondActivityTaskCanceledByIdRequest) SetIdentity(v string) { + x.Identity = v +} + +func (x *RespondActivityTaskCanceledByIdRequest) SetDeploymentOptions(v *v18.WorkerDeploymentOptions) { + x.DeploymentOptions = v +} + +func (x *RespondActivityTaskCanceledByIdRequest) HasDetails() bool { + if x == nil { + return false + } + return x.Details != nil +} + +func (x *RespondActivityTaskCanceledByIdRequest) HasDeploymentOptions() bool { + if x == nil { + return false + } + return x.DeploymentOptions != nil +} + +func (x *RespondActivityTaskCanceledByIdRequest) ClearDetails() { + x.Details = nil +} + +func (x *RespondActivityTaskCanceledByIdRequest) ClearDeploymentOptions() { + x.DeploymentOptions = nil +} + +type RespondActivityTaskCanceledByIdRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Namespace of the workflow which scheduled this activity + Namespace string + // Id of the workflow which scheduled this activity, leave empty to target a standalone activity + WorkflowId string + // For a workflow activity - the run ID of the workflow which scheduled this activity. + // For a standalone activity - the run ID of the activity. + RunId string + // Id of the activity to confirm is cancelled + ActivityId string + // Serialized additional information to attach to the cancellation + Details *v13.Payloads + // The identity of the worker/client + Identity string + // Worker deployment options that user has set in the worker. + DeploymentOptions *v18.WorkerDeploymentOptions +} + +func (b0 RespondActivityTaskCanceledByIdRequest_builder) Build() *RespondActivityTaskCanceledByIdRequest { + m0 := &RespondActivityTaskCanceledByIdRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.WorkflowId = b.WorkflowId + x.RunId = b.RunId + x.ActivityId = b.ActivityId + x.Details = b.Details + x.Identity = b.Identity + x.DeploymentOptions = b.DeploymentOptions + return m0 +} + type RespondActivityTaskCanceledByIdResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -3653,13 +6773,20 @@ func (x *RespondActivityTaskCanceledByIdResponse) ProtoReflect() protoreflect.Me return mi.MessageOf(x) } -// Deprecated: Use RespondActivityTaskCanceledByIdResponse.ProtoReflect.Descriptor instead. -func (*RespondActivityTaskCanceledByIdResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{39} +type RespondActivityTaskCanceledByIdResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 RespondActivityTaskCanceledByIdResponse_builder) Build() *RespondActivityTaskCanceledByIdResponse { + m0 := &RespondActivityTaskCanceledByIdResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type RequestCancelWorkflowExecutionRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` WorkflowExecution *v13.WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` // The identity of the worker/client @@ -3703,11 +6830,6 @@ func (x *RequestCancelWorkflowExecutionRequest) ProtoReflect() protoreflect.Mess return mi.MessageOf(x) } -// Deprecated: Use RequestCancelWorkflowExecutionRequest.ProtoReflect.Descriptor instead. -func (*RequestCancelWorkflowExecutionRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{40} -} - func (x *RequestCancelWorkflowExecutionRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -3757,8 +6879,80 @@ func (x *RequestCancelWorkflowExecutionRequest) GetLinks() []*v13.Link { return nil } +func (x *RequestCancelWorkflowExecutionRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *RequestCancelWorkflowExecutionRequest) SetWorkflowExecution(v *v13.WorkflowExecution) { + x.WorkflowExecution = v +} + +func (x *RequestCancelWorkflowExecutionRequest) SetIdentity(v string) { + x.Identity = v +} + +func (x *RequestCancelWorkflowExecutionRequest) SetRequestId(v string) { + x.RequestId = v +} + +func (x *RequestCancelWorkflowExecutionRequest) SetFirstExecutionRunId(v string) { + x.FirstExecutionRunId = v +} + +func (x *RequestCancelWorkflowExecutionRequest) SetReason(v string) { + x.Reason = v +} + +func (x *RequestCancelWorkflowExecutionRequest) SetLinks(v []*v13.Link) { + x.Links = v +} + +func (x *RequestCancelWorkflowExecutionRequest) HasWorkflowExecution() bool { + if x == nil { + return false + } + return x.WorkflowExecution != nil +} + +func (x *RequestCancelWorkflowExecutionRequest) ClearWorkflowExecution() { + x.WorkflowExecution = nil +} + +type RequestCancelWorkflowExecutionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + WorkflowExecution *v13.WorkflowExecution + // The identity of the worker/client + Identity string + // Used to de-dupe cancellation requests + RequestId string + // If set, this call will error if the most recent (if no run id is set on + // `workflow_execution`), or specified (if it is) workflow execution is not part of the same + // execution chain as this id. + FirstExecutionRunId string + // Reason for requesting the cancellation + Reason string + // Links to be associated with the WorkflowExecutionCanceled event. + Links []*v13.Link +} + +func (b0 RequestCancelWorkflowExecutionRequest_builder) Build() *RequestCancelWorkflowExecutionRequest { + m0 := &RequestCancelWorkflowExecutionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.WorkflowExecution = b.WorkflowExecution + x.Identity = b.Identity + x.RequestId = b.RequestId + x.FirstExecutionRunId = b.FirstExecutionRunId + x.Reason = b.Reason + x.Links = b.Links + return m0 +} + type RequestCancelWorkflowExecutionResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -3788,16 +6982,23 @@ func (x *RequestCancelWorkflowExecutionResponse) ProtoReflect() protoreflect.Mes return mi.MessageOf(x) } -// Deprecated: Use RequestCancelWorkflowExecutionResponse.ProtoReflect.Descriptor instead. -func (*RequestCancelWorkflowExecutionResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{41} +type RequestCancelWorkflowExecutionResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 RequestCancelWorkflowExecutionResponse_builder) Build() *RequestCancelWorkflowExecutionResponse { + m0 := &RequestCancelWorkflowExecutionResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } // Keep the parameters in sync with: // - temporal.api.batch.v1.BatchOperationSignal. // - temporal.api.workflow.v1.PostResetOperation.SignalWorkflow. type SignalWorkflowExecutionRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` WorkflowExecution *v13.WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` // The workflow author-defined name of the signal to send to the workflow @@ -3846,11 +7047,6 @@ func (x *SignalWorkflowExecutionRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SignalWorkflowExecutionRequest.ProtoReflect.Descriptor instead. -func (*SignalWorkflowExecutionRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{42} -} - func (x *SignalWorkflowExecutionRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -3908,15 +7104,125 @@ func (x *SignalWorkflowExecutionRequest) GetHeader() *v13.Header { return nil } -func (x *SignalWorkflowExecutionRequest) GetLinks() []*v13.Link { - if x != nil { - return x.Links - } - return nil +func (x *SignalWorkflowExecutionRequest) GetLinks() []*v13.Link { + if x != nil { + return x.Links + } + return nil +} + +func (x *SignalWorkflowExecutionRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *SignalWorkflowExecutionRequest) SetWorkflowExecution(v *v13.WorkflowExecution) { + x.WorkflowExecution = v +} + +func (x *SignalWorkflowExecutionRequest) SetSignalName(v string) { + x.SignalName = v +} + +func (x *SignalWorkflowExecutionRequest) SetInput(v *v13.Payloads) { + x.Input = v +} + +func (x *SignalWorkflowExecutionRequest) SetIdentity(v string) { + x.Identity = v +} + +func (x *SignalWorkflowExecutionRequest) SetRequestId(v string) { + x.RequestId = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *SignalWorkflowExecutionRequest) SetControl(v string) { + x.Control = v +} + +func (x *SignalWorkflowExecutionRequest) SetHeader(v *v13.Header) { + x.Header = v +} + +func (x *SignalWorkflowExecutionRequest) SetLinks(v []*v13.Link) { + x.Links = v +} + +func (x *SignalWorkflowExecutionRequest) HasWorkflowExecution() bool { + if x == nil { + return false + } + return x.WorkflowExecution != nil +} + +func (x *SignalWorkflowExecutionRequest) HasInput() bool { + if x == nil { + return false + } + return x.Input != nil +} + +func (x *SignalWorkflowExecutionRequest) HasHeader() bool { + if x == nil { + return false + } + return x.Header != nil +} + +func (x *SignalWorkflowExecutionRequest) ClearWorkflowExecution() { + x.WorkflowExecution = nil +} + +func (x *SignalWorkflowExecutionRequest) ClearInput() { + x.Input = nil +} + +func (x *SignalWorkflowExecutionRequest) ClearHeader() { + x.Header = nil +} + +type SignalWorkflowExecutionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + WorkflowExecution *v13.WorkflowExecution + // The workflow author-defined name of the signal to send to the workflow + SignalName string + // Serialized value(s) to provide with the signal + Input *v13.Payloads + // The identity of the worker/client + Identity string + // Used to de-dupe sent signals + RequestId string + // Deprecated. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + Control string + // Headers that are passed with the signal to the processing workflow. + // These can include things like auth or tracing tokens. + Header *v13.Header + // Links to be associated with the WorkflowExecutionSignaled event. + Links []*v13.Link +} + +func (b0 SignalWorkflowExecutionRequest_builder) Build() *SignalWorkflowExecutionRequest { + m0 := &SignalWorkflowExecutionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.WorkflowExecution = b.WorkflowExecution + x.SignalName = b.SignalName + x.Input = b.Input + x.Identity = b.Identity + x.RequestId = b.RequestId + x.Control = b.Control + x.Header = b.Header + x.Links = b.Links + return m0 } type SignalWorkflowExecutionResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -3946,13 +7252,20 @@ func (x *SignalWorkflowExecutionResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SignalWorkflowExecutionResponse.ProtoReflect.Descriptor instead. -func (*SignalWorkflowExecutionResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{43} +type SignalWorkflowExecutionResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 SignalWorkflowExecutionResponse_builder) Build() *SignalWorkflowExecutionResponse { + m0 := &SignalWorkflowExecutionResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type SignalWithStartWorkflowExecutionRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` WorkflowId string `protobuf:"bytes,2,opt,name=workflow_id,json=workflowId,proto3" json:"workflow_id,omitempty"` WorkflowType *v13.WorkflowType `protobuf:"bytes,3,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type,omitempty"` @@ -4042,11 +7355,6 @@ func (x *SignalWithStartWorkflowExecutionRequest) ProtoReflect() protoreflect.Me return mi.MessageOf(x) } -// Deprecated: Use SignalWithStartWorkflowExecutionRequest.ProtoReflect.Descriptor instead. -func (*SignalWithStartWorkflowExecutionRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{44} -} - func (x *SignalWithStartWorkflowExecutionRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -4223,8 +7531,371 @@ func (x *SignalWithStartWorkflowExecutionRequest) GetPriority() *v13.Priority { return nil } +func (x *SignalWithStartWorkflowExecutionRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *SignalWithStartWorkflowExecutionRequest) SetWorkflowId(v string) { + x.WorkflowId = v +} + +func (x *SignalWithStartWorkflowExecutionRequest) SetWorkflowType(v *v13.WorkflowType) { + x.WorkflowType = v +} + +func (x *SignalWithStartWorkflowExecutionRequest) SetTaskQueue(v *v14.TaskQueue) { + x.TaskQueue = v +} + +func (x *SignalWithStartWorkflowExecutionRequest) SetInput(v *v13.Payloads) { + x.Input = v +} + +func (x *SignalWithStartWorkflowExecutionRequest) SetWorkflowExecutionTimeout(v *durationpb.Duration) { + x.WorkflowExecutionTimeout = v +} + +func (x *SignalWithStartWorkflowExecutionRequest) SetWorkflowRunTimeout(v *durationpb.Duration) { + x.WorkflowRunTimeout = v +} + +func (x *SignalWithStartWorkflowExecutionRequest) SetWorkflowTaskTimeout(v *durationpb.Duration) { + x.WorkflowTaskTimeout = v +} + +func (x *SignalWithStartWorkflowExecutionRequest) SetIdentity(v string) { + x.Identity = v +} + +func (x *SignalWithStartWorkflowExecutionRequest) SetRequestId(v string) { + x.RequestId = v +} + +func (x *SignalWithStartWorkflowExecutionRequest) SetWorkflowIdReusePolicy(v v11.WorkflowIdReusePolicy) { + x.WorkflowIdReusePolicy = v +} + +func (x *SignalWithStartWorkflowExecutionRequest) SetWorkflowIdConflictPolicy(v v11.WorkflowIdConflictPolicy) { + x.WorkflowIdConflictPolicy = v +} + +func (x *SignalWithStartWorkflowExecutionRequest) SetSignalName(v string) { + x.SignalName = v +} + +func (x *SignalWithStartWorkflowExecutionRequest) SetSignalInput(v *v13.Payloads) { + x.SignalInput = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *SignalWithStartWorkflowExecutionRequest) SetControl(v string) { + x.Control = v +} + +func (x *SignalWithStartWorkflowExecutionRequest) SetRetryPolicy(v *v13.RetryPolicy) { + x.RetryPolicy = v +} + +func (x *SignalWithStartWorkflowExecutionRequest) SetCronSchedule(v string) { + x.CronSchedule = v +} + +func (x *SignalWithStartWorkflowExecutionRequest) SetMemo(v *v13.Memo) { + x.Memo = v +} + +func (x *SignalWithStartWorkflowExecutionRequest) SetSearchAttributes(v *v13.SearchAttributes) { + x.SearchAttributes = v +} + +func (x *SignalWithStartWorkflowExecutionRequest) SetHeader(v *v13.Header) { + x.Header = v +} + +func (x *SignalWithStartWorkflowExecutionRequest) SetWorkflowStartDelay(v *durationpb.Duration) { + x.WorkflowStartDelay = v +} + +func (x *SignalWithStartWorkflowExecutionRequest) SetUserMetadata(v *v16.UserMetadata) { + x.UserMetadata = v +} + +func (x *SignalWithStartWorkflowExecutionRequest) SetLinks(v []*v13.Link) { + x.Links = v +} + +func (x *SignalWithStartWorkflowExecutionRequest) SetVersioningOverride(v *v17.VersioningOverride) { + x.VersioningOverride = v +} + +func (x *SignalWithStartWorkflowExecutionRequest) SetPriority(v *v13.Priority) { + x.Priority = v +} + +func (x *SignalWithStartWorkflowExecutionRequest) HasWorkflowType() bool { + if x == nil { + return false + } + return x.WorkflowType != nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) HasTaskQueue() bool { + if x == nil { + return false + } + return x.TaskQueue != nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) HasInput() bool { + if x == nil { + return false + } + return x.Input != nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) HasWorkflowExecutionTimeout() bool { + if x == nil { + return false + } + return x.WorkflowExecutionTimeout != nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) HasWorkflowRunTimeout() bool { + if x == nil { + return false + } + return x.WorkflowRunTimeout != nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) HasWorkflowTaskTimeout() bool { + if x == nil { + return false + } + return x.WorkflowTaskTimeout != nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) HasSignalInput() bool { + if x == nil { + return false + } + return x.SignalInput != nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) HasRetryPolicy() bool { + if x == nil { + return false + } + return x.RetryPolicy != nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) HasMemo() bool { + if x == nil { + return false + } + return x.Memo != nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) HasSearchAttributes() bool { + if x == nil { + return false + } + return x.SearchAttributes != nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) HasHeader() bool { + if x == nil { + return false + } + return x.Header != nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) HasWorkflowStartDelay() bool { + if x == nil { + return false + } + return x.WorkflowStartDelay != nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) HasUserMetadata() bool { + if x == nil { + return false + } + return x.UserMetadata != nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) HasVersioningOverride() bool { + if x == nil { + return false + } + return x.VersioningOverride != nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) HasPriority() bool { + if x == nil { + return false + } + return x.Priority != nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) ClearWorkflowType() { + x.WorkflowType = nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) ClearTaskQueue() { + x.TaskQueue = nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) ClearInput() { + x.Input = nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) ClearWorkflowExecutionTimeout() { + x.WorkflowExecutionTimeout = nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) ClearWorkflowRunTimeout() { + x.WorkflowRunTimeout = nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) ClearWorkflowTaskTimeout() { + x.WorkflowTaskTimeout = nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) ClearSignalInput() { + x.SignalInput = nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) ClearRetryPolicy() { + x.RetryPolicy = nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) ClearMemo() { + x.Memo = nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) ClearSearchAttributes() { + x.SearchAttributes = nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) ClearHeader() { + x.Header = nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) ClearWorkflowStartDelay() { + x.WorkflowStartDelay = nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) ClearUserMetadata() { + x.UserMetadata = nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) ClearVersioningOverride() { + x.VersioningOverride = nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) ClearPriority() { + x.Priority = nil +} + +type SignalWithStartWorkflowExecutionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + WorkflowId string + WorkflowType *v13.WorkflowType + // The task queue to start this workflow on, if it will be started + TaskQueue *v14.TaskQueue + // Serialized arguments to the workflow. These are passed as arguments to the workflow function. + Input *v13.Payloads + // Total workflow execution timeout including retries and continue as new + WorkflowExecutionTimeout *durationpb.Duration + // Timeout of a single workflow run + WorkflowRunTimeout *durationpb.Duration + // Timeout of a single workflow task + WorkflowTaskTimeout *durationpb.Duration + // The identity of the worker/client + Identity string + // Used to de-dupe signal w/ start requests + RequestId string + // Defines whether to allow re-using the workflow id from a previously *closed* workflow. + // The default policy is WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE. + // + // See `workflow_id_reuse_policy` for handling a workflow id duplication with a *running* workflow. + WorkflowIdReusePolicy v11.WorkflowIdReusePolicy + // Defines how to resolve a workflow id conflict with a *running* workflow. + // The default policy is WORKFLOW_ID_CONFLICT_POLICY_USE_EXISTING. + // Note that WORKFLOW_ID_CONFLICT_POLICY_FAIL is an invalid option. + // + // See `workflow_id_reuse_policy` for handling a workflow id duplication with a *closed* workflow. + WorkflowIdConflictPolicy v11.WorkflowIdConflictPolicy + // The workflow author-defined name of the signal to send to the workflow + SignalName string + // Serialized value(s) to provide with the signal + SignalInput *v13.Payloads + // Deprecated. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + Control string + // Retry policy for the workflow + RetryPolicy *v13.RetryPolicy + // See https://docs.temporal.io/docs/content/what-is-a-temporal-cron-job/ + CronSchedule string + Memo *v13.Memo + SearchAttributes *v13.SearchAttributes + Header *v13.Header + // Time to wait before dispatching the first workflow task. Cannot be used with `cron_schedule`. + // Note that the signal will be delivered with the first workflow task. If the workflow gets + // another SignalWithStartWorkflow before the delay a workflow task will be dispatched immediately + // and the rest of the delay period will be ignored, even if that request also had a delay. + // Signal via SignalWorkflowExecution will not unblock the workflow. + WorkflowStartDelay *durationpb.Duration + // Metadata on the workflow if it is started. This is carried over to the WorkflowExecutionInfo + // for use by user interfaces to display the fixed as-of-start summary and details of the + // workflow. + UserMetadata *v16.UserMetadata + // Links to be associated with the WorkflowExecutionStarted and WorkflowExecutionSignaled events. + Links []*v13.Link + // If set, takes precedence over the Versioning Behavior sent by the SDK on Workflow Task completion. + // To unset the override after the workflow is running, use UpdateWorkflowExecutionOptions. + VersioningOverride *v17.VersioningOverride + // Priority metadata + Priority *v13.Priority +} + +func (b0 SignalWithStartWorkflowExecutionRequest_builder) Build() *SignalWithStartWorkflowExecutionRequest { + m0 := &SignalWithStartWorkflowExecutionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.WorkflowId = b.WorkflowId + x.WorkflowType = b.WorkflowType + x.TaskQueue = b.TaskQueue + x.Input = b.Input + x.WorkflowExecutionTimeout = b.WorkflowExecutionTimeout + x.WorkflowRunTimeout = b.WorkflowRunTimeout + x.WorkflowTaskTimeout = b.WorkflowTaskTimeout + x.Identity = b.Identity + x.RequestId = b.RequestId + x.WorkflowIdReusePolicy = b.WorkflowIdReusePolicy + x.WorkflowIdConflictPolicy = b.WorkflowIdConflictPolicy + x.SignalName = b.SignalName + x.SignalInput = b.SignalInput + x.Control = b.Control + x.RetryPolicy = b.RetryPolicy + x.CronSchedule = b.CronSchedule + x.Memo = b.Memo + x.SearchAttributes = b.SearchAttributes + x.Header = b.Header + x.WorkflowStartDelay = b.WorkflowStartDelay + x.UserMetadata = b.UserMetadata + x.Links = b.Links + x.VersioningOverride = b.VersioningOverride + x.Priority = b.Priority + return m0 +} + type SignalWithStartWorkflowExecutionResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The run id of the workflow that was started - or just signaled, if it was already running. RunId string `protobuf:"bytes,1,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"` // If true, a new workflow was started. @@ -4258,11 +7929,6 @@ func (x *SignalWithStartWorkflowExecutionResponse) ProtoReflect() protoreflect.M return mi.MessageOf(x) } -// Deprecated: Use SignalWithStartWorkflowExecutionResponse.ProtoReflect.Descriptor instead. -func (*SignalWithStartWorkflowExecutionResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{45} -} - func (x *SignalWithStartWorkflowExecutionResponse) GetRunId() string { if x != nil { return x.RunId @@ -4277,8 +7943,34 @@ func (x *SignalWithStartWorkflowExecutionResponse) GetStarted() bool { return false } +func (x *SignalWithStartWorkflowExecutionResponse) SetRunId(v string) { + x.RunId = v +} + +func (x *SignalWithStartWorkflowExecutionResponse) SetStarted(v bool) { + x.Started = v +} + +type SignalWithStartWorkflowExecutionResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The run id of the workflow that was started - or just signaled, if it was already running. + RunId string + // If true, a new workflow was started. + Started bool +} + +func (b0 SignalWithStartWorkflowExecutionResponse_builder) Build() *SignalWithStartWorkflowExecutionResponse { + m0 := &SignalWithStartWorkflowExecutionResponse{} + b, x := &b0, m0 + _, _ = b, x + x.RunId = b.RunId + x.Started = b.Started + return m0 +} + type ResetWorkflowExecutionRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // The workflow to reset. If this contains a run ID then the workflow will be reset back to the // provided event ID in that run. Otherwise it will be reset to the provided event ID in the @@ -4332,11 +8024,6 @@ func (x *ResetWorkflowExecutionRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ResetWorkflowExecutionRequest.ProtoReflect.Descriptor instead. -func (*ResetWorkflowExecutionRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{46} -} - func (x *ResetWorkflowExecutionRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -4401,8 +8088,101 @@ func (x *ResetWorkflowExecutionRequest) GetIdentity() string { return "" } +func (x *ResetWorkflowExecutionRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *ResetWorkflowExecutionRequest) SetWorkflowExecution(v *v13.WorkflowExecution) { + x.WorkflowExecution = v +} + +func (x *ResetWorkflowExecutionRequest) SetReason(v string) { + x.Reason = v +} + +func (x *ResetWorkflowExecutionRequest) SetWorkflowTaskFinishEventId(v int64) { + x.WorkflowTaskFinishEventId = v +} + +func (x *ResetWorkflowExecutionRequest) SetRequestId(v string) { + x.RequestId = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *ResetWorkflowExecutionRequest) SetResetReapplyType(v v11.ResetReapplyType) { + x.ResetReapplyType = v +} + +func (x *ResetWorkflowExecutionRequest) SetResetReapplyExcludeTypes(v []v11.ResetReapplyExcludeType) { + x.ResetReapplyExcludeTypes = v +} + +func (x *ResetWorkflowExecutionRequest) SetPostResetOperations(v []*v17.PostResetOperation) { + x.PostResetOperations = v +} + +func (x *ResetWorkflowExecutionRequest) SetIdentity(v string) { + x.Identity = v +} + +func (x *ResetWorkflowExecutionRequest) HasWorkflowExecution() bool { + if x == nil { + return false + } + return x.WorkflowExecution != nil +} + +func (x *ResetWorkflowExecutionRequest) ClearWorkflowExecution() { + x.WorkflowExecution = nil +} + +type ResetWorkflowExecutionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + // The workflow to reset. If this contains a run ID then the workflow will be reset back to the + // provided event ID in that run. Otherwise it will be reset to the provided event ID in the + // current run. In all cases the current run will be terminated and a new run started. + WorkflowExecution *v13.WorkflowExecution + Reason string + // The id of a `WORKFLOW_TASK_COMPLETED`,`WORKFLOW_TASK_TIMED_OUT`, `WORKFLOW_TASK_FAILED`, or + // `WORKFLOW_TASK_STARTED` event to reset to. + WorkflowTaskFinishEventId int64 + // Used to de-dupe reset requests + RequestId string + // Deprecated. Use `options`. + // Default: RESET_REAPPLY_TYPE_SIGNAL + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + ResetReapplyType v11.ResetReapplyType + // Event types not to be reapplied + ResetReapplyExcludeTypes []v11.ResetReapplyExcludeType + // Operations to perform after the workflow has been reset. These operations will be applied + // to the *new* run of the workflow execution in the order they are provided. + // All operations are applied to the workflow before the first new workflow task is generated + PostResetOperations []*v17.PostResetOperation + // The identity of the worker/client + Identity string +} + +func (b0 ResetWorkflowExecutionRequest_builder) Build() *ResetWorkflowExecutionRequest { + m0 := &ResetWorkflowExecutionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.WorkflowExecution = b.WorkflowExecution + x.Reason = b.Reason + x.WorkflowTaskFinishEventId = b.WorkflowTaskFinishEventId + x.RequestId = b.RequestId + x.ResetReapplyType = b.ResetReapplyType + x.ResetReapplyExcludeTypes = b.ResetReapplyExcludeTypes + x.PostResetOperations = b.PostResetOperations + x.Identity = b.Identity + return m0 +} + type ResetWorkflowExecutionResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` RunId string `protobuf:"bytes,1,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -4433,11 +8213,6 @@ func (x *ResetWorkflowExecutionResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ResetWorkflowExecutionResponse.ProtoReflect.Descriptor instead. -func (*ResetWorkflowExecutionResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{47} -} - func (x *ResetWorkflowExecutionResponse) GetRunId() string { if x != nil { return x.RunId @@ -4445,8 +8220,26 @@ func (x *ResetWorkflowExecutionResponse) GetRunId() string { return "" } +func (x *ResetWorkflowExecutionResponse) SetRunId(v string) { + x.RunId = v +} + +type ResetWorkflowExecutionResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + RunId string +} + +func (b0 ResetWorkflowExecutionResponse_builder) Build() *ResetWorkflowExecutionResponse { + m0 := &ResetWorkflowExecutionResponse{} + b, x := &b0, m0 + _, _ = b, x + x.RunId = b.RunId + return m0 +} + type TerminateWorkflowExecutionRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` WorkflowExecution *v13.WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"` @@ -4489,11 +8282,6 @@ func (x *TerminateWorkflowExecutionRequest) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use TerminateWorkflowExecutionRequest.ProtoReflect.Descriptor instead. -func (*TerminateWorkflowExecutionRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{48} -} - func (x *TerminateWorkflowExecutionRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -4543,8 +8331,90 @@ func (x *TerminateWorkflowExecutionRequest) GetLinks() []*v13.Link { return nil } +func (x *TerminateWorkflowExecutionRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *TerminateWorkflowExecutionRequest) SetWorkflowExecution(v *v13.WorkflowExecution) { + x.WorkflowExecution = v +} + +func (x *TerminateWorkflowExecutionRequest) SetReason(v string) { + x.Reason = v +} + +func (x *TerminateWorkflowExecutionRequest) SetDetails(v *v13.Payloads) { + x.Details = v +} + +func (x *TerminateWorkflowExecutionRequest) SetIdentity(v string) { + x.Identity = v +} + +func (x *TerminateWorkflowExecutionRequest) SetFirstExecutionRunId(v string) { + x.FirstExecutionRunId = v +} + +func (x *TerminateWorkflowExecutionRequest) SetLinks(v []*v13.Link) { + x.Links = v +} + +func (x *TerminateWorkflowExecutionRequest) HasWorkflowExecution() bool { + if x == nil { + return false + } + return x.WorkflowExecution != nil +} + +func (x *TerminateWorkflowExecutionRequest) HasDetails() bool { + if x == nil { + return false + } + return x.Details != nil +} + +func (x *TerminateWorkflowExecutionRequest) ClearWorkflowExecution() { + x.WorkflowExecution = nil +} + +func (x *TerminateWorkflowExecutionRequest) ClearDetails() { + x.Details = nil +} + +type TerminateWorkflowExecutionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + WorkflowExecution *v13.WorkflowExecution + Reason string + // Serialized additional information to attach to the termination event + Details *v13.Payloads + // The identity of the worker/client + Identity string + // If set, this call will error if the most recent (if no run id is set on + // `workflow_execution`), or specified (if it is) workflow execution is not part of the same + // execution chain as this id. + FirstExecutionRunId string + // Links to be associated with the WorkflowExecutionTerminated event. + Links []*v13.Link +} + +func (b0 TerminateWorkflowExecutionRequest_builder) Build() *TerminateWorkflowExecutionRequest { + m0 := &TerminateWorkflowExecutionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.WorkflowExecution = b.WorkflowExecution + x.Reason = b.Reason + x.Details = b.Details + x.Identity = b.Identity + x.FirstExecutionRunId = b.FirstExecutionRunId + x.Links = b.Links + return m0 +} + type TerminateWorkflowExecutionResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -4574,13 +8444,20 @@ func (x *TerminateWorkflowExecutionResponse) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use TerminateWorkflowExecutionResponse.ProtoReflect.Descriptor instead. -func (*TerminateWorkflowExecutionResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{49} +type TerminateWorkflowExecutionResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 TerminateWorkflowExecutionResponse_builder) Build() *TerminateWorkflowExecutionResponse { + m0 := &TerminateWorkflowExecutionResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type DeleteWorkflowExecutionRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // Workflow Execution to delete. If run_id is not specified, the latest one is used. WorkflowExecution *v13.WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` @@ -4613,11 +8490,6 @@ func (x *DeleteWorkflowExecutionRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeleteWorkflowExecutionRequest.ProtoReflect.Descriptor instead. -func (*DeleteWorkflowExecutionRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{50} -} - func (x *DeleteWorkflowExecutionRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -4632,8 +8504,44 @@ func (x *DeleteWorkflowExecutionRequest) GetWorkflowExecution() *v13.WorkflowExe return nil } +func (x *DeleteWorkflowExecutionRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *DeleteWorkflowExecutionRequest) SetWorkflowExecution(v *v13.WorkflowExecution) { + x.WorkflowExecution = v +} + +func (x *DeleteWorkflowExecutionRequest) HasWorkflowExecution() bool { + if x == nil { + return false + } + return x.WorkflowExecution != nil +} + +func (x *DeleteWorkflowExecutionRequest) ClearWorkflowExecution() { + x.WorkflowExecution = nil +} + +type DeleteWorkflowExecutionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + // Workflow Execution to delete. If run_id is not specified, the latest one is used. + WorkflowExecution *v13.WorkflowExecution +} + +func (b0 DeleteWorkflowExecutionRequest_builder) Build() *DeleteWorkflowExecutionRequest { + m0 := &DeleteWorkflowExecutionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.WorkflowExecution = b.WorkflowExecution + return m0 +} + type DeleteWorkflowExecutionResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -4663,13 +8571,20 @@ func (x *DeleteWorkflowExecutionResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeleteWorkflowExecutionResponse.ProtoReflect.Descriptor instead. -func (*DeleteWorkflowExecutionResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{51} +type DeleteWorkflowExecutionResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 DeleteWorkflowExecutionResponse_builder) Build() *DeleteWorkflowExecutionResponse { + m0 := &DeleteWorkflowExecutionResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type ListOpenWorkflowExecutionsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` MaximumPageSize int32 `protobuf:"varint,2,opt,name=maximum_page_size,json=maximumPageSize,proto3" json:"maximum_page_size,omitempty"` NextPageToken []byte `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` @@ -4708,11 +8623,6 @@ func (x *ListOpenWorkflowExecutionsRequest) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use ListOpenWorkflowExecutionsRequest.ProtoReflect.Descriptor instead. -func (*ListOpenWorkflowExecutionsRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{52} -} - func (x *ListOpenWorkflowExecutionsRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -4766,6 +8676,155 @@ func (x *ListOpenWorkflowExecutionsRequest) GetTypeFilter() *v113.WorkflowTypeFi return nil } +func (x *ListOpenWorkflowExecutionsRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *ListOpenWorkflowExecutionsRequest) SetMaximumPageSize(v int32) { + x.MaximumPageSize = v +} + +func (x *ListOpenWorkflowExecutionsRequest) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.NextPageToken = v +} + +func (x *ListOpenWorkflowExecutionsRequest) SetStartTimeFilter(v *v113.StartTimeFilter) { + x.StartTimeFilter = v +} + +func (x *ListOpenWorkflowExecutionsRequest) SetExecutionFilter(v *v113.WorkflowExecutionFilter) { + if v == nil { + x.Filters = nil + return + } + x.Filters = &ListOpenWorkflowExecutionsRequest_ExecutionFilter{v} +} + +func (x *ListOpenWorkflowExecutionsRequest) SetTypeFilter(v *v113.WorkflowTypeFilter) { + if v == nil { + x.Filters = nil + return + } + x.Filters = &ListOpenWorkflowExecutionsRequest_TypeFilter{v} +} + +func (x *ListOpenWorkflowExecutionsRequest) HasStartTimeFilter() bool { + if x == nil { + return false + } + return x.StartTimeFilter != nil +} + +func (x *ListOpenWorkflowExecutionsRequest) HasFilters() bool { + if x == nil { + return false + } + return x.Filters != nil +} + +func (x *ListOpenWorkflowExecutionsRequest) HasExecutionFilter() bool { + if x == nil { + return false + } + _, ok := x.Filters.(*ListOpenWorkflowExecutionsRequest_ExecutionFilter) + return ok +} + +func (x *ListOpenWorkflowExecutionsRequest) HasTypeFilter() bool { + if x == nil { + return false + } + _, ok := x.Filters.(*ListOpenWorkflowExecutionsRequest_TypeFilter) + return ok +} + +func (x *ListOpenWorkflowExecutionsRequest) ClearStartTimeFilter() { + x.StartTimeFilter = nil +} + +func (x *ListOpenWorkflowExecutionsRequest) ClearFilters() { + x.Filters = nil +} + +func (x *ListOpenWorkflowExecutionsRequest) ClearExecutionFilter() { + if _, ok := x.Filters.(*ListOpenWorkflowExecutionsRequest_ExecutionFilter); ok { + x.Filters = nil + } +} + +func (x *ListOpenWorkflowExecutionsRequest) ClearTypeFilter() { + if _, ok := x.Filters.(*ListOpenWorkflowExecutionsRequest_TypeFilter); ok { + x.Filters = nil + } +} + +const ListOpenWorkflowExecutionsRequest_Filters_not_set_case case_ListOpenWorkflowExecutionsRequest_Filters = 0 +const ListOpenWorkflowExecutionsRequest_ExecutionFilter_case case_ListOpenWorkflowExecutionsRequest_Filters = 5 +const ListOpenWorkflowExecutionsRequest_TypeFilter_case case_ListOpenWorkflowExecutionsRequest_Filters = 6 + +func (x *ListOpenWorkflowExecutionsRequest) WhichFilters() case_ListOpenWorkflowExecutionsRequest_Filters { + if x == nil { + return ListOpenWorkflowExecutionsRequest_Filters_not_set_case + } + switch x.Filters.(type) { + case *ListOpenWorkflowExecutionsRequest_ExecutionFilter: + return ListOpenWorkflowExecutionsRequest_ExecutionFilter_case + case *ListOpenWorkflowExecutionsRequest_TypeFilter: + return ListOpenWorkflowExecutionsRequest_TypeFilter_case + default: + return ListOpenWorkflowExecutionsRequest_Filters_not_set_case + } +} + +type ListOpenWorkflowExecutionsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + MaximumPageSize int32 + NextPageToken []byte + StartTimeFilter *v113.StartTimeFilter + // Fields of oneof Filters: + ExecutionFilter *v113.WorkflowExecutionFilter + TypeFilter *v113.WorkflowTypeFilter + // -- end of Filters +} + +func (b0 ListOpenWorkflowExecutionsRequest_builder) Build() *ListOpenWorkflowExecutionsRequest { + m0 := &ListOpenWorkflowExecutionsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.MaximumPageSize = b.MaximumPageSize + x.NextPageToken = b.NextPageToken + x.StartTimeFilter = b.StartTimeFilter + if b.ExecutionFilter != nil { + x.Filters = &ListOpenWorkflowExecutionsRequest_ExecutionFilter{b.ExecutionFilter} + } + if b.TypeFilter != nil { + x.Filters = &ListOpenWorkflowExecutionsRequest_TypeFilter{b.TypeFilter} + } + return m0 +} + +type case_ListOpenWorkflowExecutionsRequest_Filters protoreflect.FieldNumber + +func (x case_ListOpenWorkflowExecutionsRequest_Filters) String() string { + switch x { + case ListOpenWorkflowExecutionsRequest_Filters_not_set_case: + return "ListOpenWorkflowExecutionsRequestFiltersNotSetCase" + case ListOpenWorkflowExecutionsRequest_ExecutionFilter_case: + return "ListOpenWorkflowExecutionsRequestExecutionFilterCase" + case ListOpenWorkflowExecutionsRequest_TypeFilter_case: + return "ListOpenWorkflowExecutionsRequestTypeFilterCase" + default: + return strconv.Itoa(int(x)) + } + +} + type isListOpenWorkflowExecutionsRequest_Filters interface { isListOpenWorkflowExecutionsRequest_Filters() } @@ -4784,7 +8843,7 @@ func (*ListOpenWorkflowExecutionsRequest_ExecutionFilter) isListOpenWorkflowExec func (*ListOpenWorkflowExecutionsRequest_TypeFilter) isListOpenWorkflowExecutionsRequest_Filters() {} type ListOpenWorkflowExecutionsResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Executions []*v17.WorkflowExecutionInfo `protobuf:"bytes,1,rep,name=executions,proto3" json:"executions,omitempty"` NextPageToken []byte `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` unknownFields protoimpl.UnknownFields @@ -4816,11 +8875,6 @@ func (x *ListOpenWorkflowExecutionsResponse) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use ListOpenWorkflowExecutionsResponse.ProtoReflect.Descriptor instead. -func (*ListOpenWorkflowExecutionsResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{53} -} - func (x *ListOpenWorkflowExecutionsResponse) GetExecutions() []*v17.WorkflowExecutionInfo { if x != nil { return x.Executions @@ -4835,8 +8889,35 @@ func (x *ListOpenWorkflowExecutionsResponse) GetNextPageToken() []byte { return nil } +func (x *ListOpenWorkflowExecutionsResponse) SetExecutions(v []*v17.WorkflowExecutionInfo) { + x.Executions = v +} + +func (x *ListOpenWorkflowExecutionsResponse) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.NextPageToken = v +} + +type ListOpenWorkflowExecutionsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Executions []*v17.WorkflowExecutionInfo + NextPageToken []byte +} + +func (b0 ListOpenWorkflowExecutionsResponse_builder) Build() *ListOpenWorkflowExecutionsResponse { + m0 := &ListOpenWorkflowExecutionsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Executions = b.Executions + x.NextPageToken = b.NextPageToken + return m0 +} + type ListClosedWorkflowExecutionsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` MaximumPageSize int32 `protobuf:"varint,2,opt,name=maximum_page_size,json=maximumPageSize,proto3" json:"maximum_page_size,omitempty"` NextPageToken []byte `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` @@ -4876,11 +8957,6 @@ func (x *ListClosedWorkflowExecutionsRequest) ProtoReflect() protoreflect.Messag return mi.MessageOf(x) } -// Deprecated: Use ListClosedWorkflowExecutionsRequest.ProtoReflect.Descriptor instead. -func (*ListClosedWorkflowExecutionsRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{54} -} - func (x *ListClosedWorkflowExecutionsRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -4943,6 +9019,186 @@ func (x *ListClosedWorkflowExecutionsRequest) GetStatusFilter() *v113.StatusFilt return nil } +func (x *ListClosedWorkflowExecutionsRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *ListClosedWorkflowExecutionsRequest) SetMaximumPageSize(v int32) { + x.MaximumPageSize = v +} + +func (x *ListClosedWorkflowExecutionsRequest) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.NextPageToken = v +} + +func (x *ListClosedWorkflowExecutionsRequest) SetStartTimeFilter(v *v113.StartTimeFilter) { + x.StartTimeFilter = v +} + +func (x *ListClosedWorkflowExecutionsRequest) SetExecutionFilter(v *v113.WorkflowExecutionFilter) { + if v == nil { + x.Filters = nil + return + } + x.Filters = &ListClosedWorkflowExecutionsRequest_ExecutionFilter{v} +} + +func (x *ListClosedWorkflowExecutionsRequest) SetTypeFilter(v *v113.WorkflowTypeFilter) { + if v == nil { + x.Filters = nil + return + } + x.Filters = &ListClosedWorkflowExecutionsRequest_TypeFilter{v} +} + +func (x *ListClosedWorkflowExecutionsRequest) SetStatusFilter(v *v113.StatusFilter) { + if v == nil { + x.Filters = nil + return + } + x.Filters = &ListClosedWorkflowExecutionsRequest_StatusFilter{v} +} + +func (x *ListClosedWorkflowExecutionsRequest) HasStartTimeFilter() bool { + if x == nil { + return false + } + return x.StartTimeFilter != nil +} + +func (x *ListClosedWorkflowExecutionsRequest) HasFilters() bool { + if x == nil { + return false + } + return x.Filters != nil +} + +func (x *ListClosedWorkflowExecutionsRequest) HasExecutionFilter() bool { + if x == nil { + return false + } + _, ok := x.Filters.(*ListClosedWorkflowExecutionsRequest_ExecutionFilter) + return ok +} + +func (x *ListClosedWorkflowExecutionsRequest) HasTypeFilter() bool { + if x == nil { + return false + } + _, ok := x.Filters.(*ListClosedWorkflowExecutionsRequest_TypeFilter) + return ok +} + +func (x *ListClosedWorkflowExecutionsRequest) HasStatusFilter() bool { + if x == nil { + return false + } + _, ok := x.Filters.(*ListClosedWorkflowExecutionsRequest_StatusFilter) + return ok +} + +func (x *ListClosedWorkflowExecutionsRequest) ClearStartTimeFilter() { + x.StartTimeFilter = nil +} + +func (x *ListClosedWorkflowExecutionsRequest) ClearFilters() { + x.Filters = nil +} + +func (x *ListClosedWorkflowExecutionsRequest) ClearExecutionFilter() { + if _, ok := x.Filters.(*ListClosedWorkflowExecutionsRequest_ExecutionFilter); ok { + x.Filters = nil + } +} + +func (x *ListClosedWorkflowExecutionsRequest) ClearTypeFilter() { + if _, ok := x.Filters.(*ListClosedWorkflowExecutionsRequest_TypeFilter); ok { + x.Filters = nil + } +} + +func (x *ListClosedWorkflowExecutionsRequest) ClearStatusFilter() { + if _, ok := x.Filters.(*ListClosedWorkflowExecutionsRequest_StatusFilter); ok { + x.Filters = nil + } +} + +const ListClosedWorkflowExecutionsRequest_Filters_not_set_case case_ListClosedWorkflowExecutionsRequest_Filters = 0 +const ListClosedWorkflowExecutionsRequest_ExecutionFilter_case case_ListClosedWorkflowExecutionsRequest_Filters = 5 +const ListClosedWorkflowExecutionsRequest_TypeFilter_case case_ListClosedWorkflowExecutionsRequest_Filters = 6 +const ListClosedWorkflowExecutionsRequest_StatusFilter_case case_ListClosedWorkflowExecutionsRequest_Filters = 7 + +func (x *ListClosedWorkflowExecutionsRequest) WhichFilters() case_ListClosedWorkflowExecutionsRequest_Filters { + if x == nil { + return ListClosedWorkflowExecutionsRequest_Filters_not_set_case + } + switch x.Filters.(type) { + case *ListClosedWorkflowExecutionsRequest_ExecutionFilter: + return ListClosedWorkflowExecutionsRequest_ExecutionFilter_case + case *ListClosedWorkflowExecutionsRequest_TypeFilter: + return ListClosedWorkflowExecutionsRequest_TypeFilter_case + case *ListClosedWorkflowExecutionsRequest_StatusFilter: + return ListClosedWorkflowExecutionsRequest_StatusFilter_case + default: + return ListClosedWorkflowExecutionsRequest_Filters_not_set_case + } +} + +type ListClosedWorkflowExecutionsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + MaximumPageSize int32 + NextPageToken []byte + StartTimeFilter *v113.StartTimeFilter + // Fields of oneof Filters: + ExecutionFilter *v113.WorkflowExecutionFilter + TypeFilter *v113.WorkflowTypeFilter + StatusFilter *v113.StatusFilter + // -- end of Filters +} + +func (b0 ListClosedWorkflowExecutionsRequest_builder) Build() *ListClosedWorkflowExecutionsRequest { + m0 := &ListClosedWorkflowExecutionsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.MaximumPageSize = b.MaximumPageSize + x.NextPageToken = b.NextPageToken + x.StartTimeFilter = b.StartTimeFilter + if b.ExecutionFilter != nil { + x.Filters = &ListClosedWorkflowExecutionsRequest_ExecutionFilter{b.ExecutionFilter} + } + if b.TypeFilter != nil { + x.Filters = &ListClosedWorkflowExecutionsRequest_TypeFilter{b.TypeFilter} + } + if b.StatusFilter != nil { + x.Filters = &ListClosedWorkflowExecutionsRequest_StatusFilter{b.StatusFilter} + } + return m0 +} + +type case_ListClosedWorkflowExecutionsRequest_Filters protoreflect.FieldNumber + +func (x case_ListClosedWorkflowExecutionsRequest_Filters) String() string { + switch x { + case ListClosedWorkflowExecutionsRequest_Filters_not_set_case: + return "ListClosedWorkflowExecutionsRequestFiltersNotSetCase" + case ListClosedWorkflowExecutionsRequest_ExecutionFilter_case: + return "ListClosedWorkflowExecutionsRequestExecutionFilterCase" + case ListClosedWorkflowExecutionsRequest_TypeFilter_case: + return "ListClosedWorkflowExecutionsRequestTypeFilterCase" + case ListClosedWorkflowExecutionsRequest_StatusFilter_case: + return "ListClosedWorkflowExecutionsRequestStatusFilterCase" + default: + return strconv.Itoa(int(x)) + } + +} + type isListClosedWorkflowExecutionsRequest_Filters interface { isListClosedWorkflowExecutionsRequest_Filters() } @@ -4969,7 +9225,7 @@ func (*ListClosedWorkflowExecutionsRequest_StatusFilter) isListClosedWorkflowExe } type ListClosedWorkflowExecutionsResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Executions []*v17.WorkflowExecutionInfo `protobuf:"bytes,1,rep,name=executions,proto3" json:"executions,omitempty"` NextPageToken []byte `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` unknownFields protoimpl.UnknownFields @@ -5001,11 +9257,6 @@ func (x *ListClosedWorkflowExecutionsResponse) ProtoReflect() protoreflect.Messa return mi.MessageOf(x) } -// Deprecated: Use ListClosedWorkflowExecutionsResponse.ProtoReflect.Descriptor instead. -func (*ListClosedWorkflowExecutionsResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{55} -} - func (x *ListClosedWorkflowExecutionsResponse) GetExecutions() []*v17.WorkflowExecutionInfo { if x != nil { return x.Executions @@ -5020,8 +9271,35 @@ func (x *ListClosedWorkflowExecutionsResponse) GetNextPageToken() []byte { return nil } +func (x *ListClosedWorkflowExecutionsResponse) SetExecutions(v []*v17.WorkflowExecutionInfo) { + x.Executions = v +} + +func (x *ListClosedWorkflowExecutionsResponse) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.NextPageToken = v +} + +type ListClosedWorkflowExecutionsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Executions []*v17.WorkflowExecutionInfo + NextPageToken []byte +} + +func (b0 ListClosedWorkflowExecutionsResponse_builder) Build() *ListClosedWorkflowExecutionsResponse { + m0 := &ListClosedWorkflowExecutionsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Executions = b.Executions + x.NextPageToken = b.NextPageToken + return m0 +} + type ListWorkflowExecutionsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` NextPageToken []byte `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` @@ -5055,11 +9333,6 @@ func (x *ListWorkflowExecutionsRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListWorkflowExecutionsRequest.ProtoReflect.Descriptor instead. -func (*ListWorkflowExecutionsRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{56} -} - func (x *ListWorkflowExecutionsRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -5088,8 +9361,47 @@ func (x *ListWorkflowExecutionsRequest) GetQuery() string { return "" } +func (x *ListWorkflowExecutionsRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *ListWorkflowExecutionsRequest) SetPageSize(v int32) { + x.PageSize = v +} + +func (x *ListWorkflowExecutionsRequest) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.NextPageToken = v +} + +func (x *ListWorkflowExecutionsRequest) SetQuery(v string) { + x.Query = v +} + +type ListWorkflowExecutionsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + PageSize int32 + NextPageToken []byte + Query string +} + +func (b0 ListWorkflowExecutionsRequest_builder) Build() *ListWorkflowExecutionsRequest { + m0 := &ListWorkflowExecutionsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.PageSize = b.PageSize + x.NextPageToken = b.NextPageToken + x.Query = b.Query + return m0 +} + type ListWorkflowExecutionsResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Executions []*v17.WorkflowExecutionInfo `protobuf:"bytes,1,rep,name=executions,proto3" json:"executions,omitempty"` NextPageToken []byte `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` unknownFields protoimpl.UnknownFields @@ -5121,11 +9433,6 @@ func (x *ListWorkflowExecutionsResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListWorkflowExecutionsResponse.ProtoReflect.Descriptor instead. -func (*ListWorkflowExecutionsResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{57} -} - func (x *ListWorkflowExecutionsResponse) GetExecutions() []*v17.WorkflowExecutionInfo { if x != nil { return x.Executions @@ -5140,8 +9447,35 @@ func (x *ListWorkflowExecutionsResponse) GetNextPageToken() []byte { return nil } +func (x *ListWorkflowExecutionsResponse) SetExecutions(v []*v17.WorkflowExecutionInfo) { + x.Executions = v +} + +func (x *ListWorkflowExecutionsResponse) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.NextPageToken = v +} + +type ListWorkflowExecutionsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Executions []*v17.WorkflowExecutionInfo + NextPageToken []byte +} + +func (b0 ListWorkflowExecutionsResponse_builder) Build() *ListWorkflowExecutionsResponse { + m0 := &ListWorkflowExecutionsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Executions = b.Executions + x.NextPageToken = b.NextPageToken + return m0 +} + type ListArchivedWorkflowExecutionsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` NextPageToken []byte `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` @@ -5175,11 +9509,6 @@ func (x *ListArchivedWorkflowExecutionsRequest) ProtoReflect() protoreflect.Mess return mi.MessageOf(x) } -// Deprecated: Use ListArchivedWorkflowExecutionsRequest.ProtoReflect.Descriptor instead. -func (*ListArchivedWorkflowExecutionsRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{58} -} - func (x *ListArchivedWorkflowExecutionsRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -5208,8 +9537,47 @@ func (x *ListArchivedWorkflowExecutionsRequest) GetQuery() string { return "" } +func (x *ListArchivedWorkflowExecutionsRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *ListArchivedWorkflowExecutionsRequest) SetPageSize(v int32) { + x.PageSize = v +} + +func (x *ListArchivedWorkflowExecutionsRequest) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.NextPageToken = v +} + +func (x *ListArchivedWorkflowExecutionsRequest) SetQuery(v string) { + x.Query = v +} + +type ListArchivedWorkflowExecutionsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + PageSize int32 + NextPageToken []byte + Query string +} + +func (b0 ListArchivedWorkflowExecutionsRequest_builder) Build() *ListArchivedWorkflowExecutionsRequest { + m0 := &ListArchivedWorkflowExecutionsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.PageSize = b.PageSize + x.NextPageToken = b.NextPageToken + x.Query = b.Query + return m0 +} + type ListArchivedWorkflowExecutionsResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Executions []*v17.WorkflowExecutionInfo `protobuf:"bytes,1,rep,name=executions,proto3" json:"executions,omitempty"` NextPageToken []byte `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` unknownFields protoimpl.UnknownFields @@ -5238,12 +9606,7 @@ func (x *ListArchivedWorkflowExecutionsResponse) ProtoReflect() protoreflect.Mes } return ms } - return mi.MessageOf(x) -} - -// Deprecated: Use ListArchivedWorkflowExecutionsResponse.ProtoReflect.Descriptor instead. -func (*ListArchivedWorkflowExecutionsResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{59} + return mi.MessageOf(x) } func (x *ListArchivedWorkflowExecutionsResponse) GetExecutions() []*v17.WorkflowExecutionInfo { @@ -5260,9 +9623,36 @@ func (x *ListArchivedWorkflowExecutionsResponse) GetNextPageToken() []byte { return nil } +func (x *ListArchivedWorkflowExecutionsResponse) SetExecutions(v []*v17.WorkflowExecutionInfo) { + x.Executions = v +} + +func (x *ListArchivedWorkflowExecutionsResponse) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.NextPageToken = v +} + +type ListArchivedWorkflowExecutionsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Executions []*v17.WorkflowExecutionInfo + NextPageToken []byte +} + +func (b0 ListArchivedWorkflowExecutionsResponse_builder) Build() *ListArchivedWorkflowExecutionsResponse { + m0 := &ListArchivedWorkflowExecutionsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Executions = b.Executions + x.NextPageToken = b.NextPageToken + return m0 +} + // Deprecated: Use with `ListWorkflowExecutions`. type ScanWorkflowExecutionsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` NextPageToken []byte `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` @@ -5296,11 +9686,6 @@ func (x *ScanWorkflowExecutionsRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ScanWorkflowExecutionsRequest.ProtoReflect.Descriptor instead. -func (*ScanWorkflowExecutionsRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{60} -} - func (x *ScanWorkflowExecutionsRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -5329,9 +9714,48 @@ func (x *ScanWorkflowExecutionsRequest) GetQuery() string { return "" } +func (x *ScanWorkflowExecutionsRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *ScanWorkflowExecutionsRequest) SetPageSize(v int32) { + x.PageSize = v +} + +func (x *ScanWorkflowExecutionsRequest) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.NextPageToken = v +} + +func (x *ScanWorkflowExecutionsRequest) SetQuery(v string) { + x.Query = v +} + +type ScanWorkflowExecutionsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + PageSize int32 + NextPageToken []byte + Query string +} + +func (b0 ScanWorkflowExecutionsRequest_builder) Build() *ScanWorkflowExecutionsRequest { + m0 := &ScanWorkflowExecutionsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.PageSize = b.PageSize + x.NextPageToken = b.NextPageToken + x.Query = b.Query + return m0 +} + // Deprecated: Use with `ListWorkflowExecutions`. type ScanWorkflowExecutionsResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Executions []*v17.WorkflowExecutionInfo `protobuf:"bytes,1,rep,name=executions,proto3" json:"executions,omitempty"` NextPageToken []byte `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` unknownFields protoimpl.UnknownFields @@ -5363,11 +9787,6 @@ func (x *ScanWorkflowExecutionsResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ScanWorkflowExecutionsResponse.ProtoReflect.Descriptor instead. -func (*ScanWorkflowExecutionsResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{61} -} - func (x *ScanWorkflowExecutionsResponse) GetExecutions() []*v17.WorkflowExecutionInfo { if x != nil { return x.Executions @@ -5382,8 +9801,35 @@ func (x *ScanWorkflowExecutionsResponse) GetNextPageToken() []byte { return nil } +func (x *ScanWorkflowExecutionsResponse) SetExecutions(v []*v17.WorkflowExecutionInfo) { + x.Executions = v +} + +func (x *ScanWorkflowExecutionsResponse) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.NextPageToken = v +} + +type ScanWorkflowExecutionsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Executions []*v17.WorkflowExecutionInfo + NextPageToken []byte +} + +func (b0 ScanWorkflowExecutionsResponse_builder) Build() *ScanWorkflowExecutionsResponse { + m0 := &ScanWorkflowExecutionsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Executions = b.Executions + x.NextPageToken = b.NextPageToken + return m0 +} + type CountWorkflowExecutionsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` Query string `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` unknownFields protoimpl.UnknownFields @@ -5415,11 +9861,6 @@ func (x *CountWorkflowExecutionsRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CountWorkflowExecutionsRequest.ProtoReflect.Descriptor instead. -func (*CountWorkflowExecutionsRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{62} -} - func (x *CountWorkflowExecutionsRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -5434,8 +9875,32 @@ func (x *CountWorkflowExecutionsRequest) GetQuery() string { return "" } +func (x *CountWorkflowExecutionsRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *CountWorkflowExecutionsRequest) SetQuery(v string) { + x.Query = v +} + +type CountWorkflowExecutionsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + Query string +} + +func (b0 CountWorkflowExecutionsRequest_builder) Build() *CountWorkflowExecutionsRequest { + m0 := &CountWorkflowExecutionsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.Query = b.Query + return m0 +} + type CountWorkflowExecutionsResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // If `query` is not grouping by any field, the count is an approximate number // of workflows that matches the query. // If `query` is grouping by a field, the count is simply the sum of the counts @@ -5474,11 +9939,6 @@ func (x *CountWorkflowExecutionsResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CountWorkflowExecutionsResponse.ProtoReflect.Descriptor instead. -func (*CountWorkflowExecutionsResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{63} -} - func (x *CountWorkflowExecutionsResponse) GetCount() int64 { if x != nil { return x.Count @@ -5493,8 +9953,39 @@ func (x *CountWorkflowExecutionsResponse) GetGroups() []*CountWorkflowExecutions return nil } +func (x *CountWorkflowExecutionsResponse) SetCount(v int64) { + x.Count = v +} + +func (x *CountWorkflowExecutionsResponse) SetGroups(v []*CountWorkflowExecutionsResponse_AggregationGroup) { + x.Groups = v +} + +type CountWorkflowExecutionsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // If `query` is not grouping by any field, the count is an approximate number + // of workflows that matches the query. + // If `query` is grouping by a field, the count is simply the sum of the counts + // of the groups returned in the response. This number can be smaller than the + // total number of workflows matching the query. + Count int64 + // `groups` contains the groups if the request is grouping by a field. + // The list might not be complete, and the counts of each group is approximate. + Groups []*CountWorkflowExecutionsResponse_AggregationGroup +} + +func (b0 CountWorkflowExecutionsResponse_builder) Build() *CountWorkflowExecutionsResponse { + m0 := &CountWorkflowExecutionsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Count = b.Count + x.Groups = b.Groups + return m0 +} + type GetSearchAttributesRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -5524,13 +10015,20 @@ func (x *GetSearchAttributesRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetSearchAttributesRequest.ProtoReflect.Descriptor instead. -func (*GetSearchAttributesRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{64} +type GetSearchAttributesRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 GetSearchAttributesRequest_builder) Build() *GetSearchAttributesRequest { + m0 := &GetSearchAttributesRequest{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type GetSearchAttributesResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Keys map[string]v11.IndexedValueType `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value,enum=temporal.api.enums.v1.IndexedValueType"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -5561,11 +10059,6 @@ func (x *GetSearchAttributesResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetSearchAttributesResponse.ProtoReflect.Descriptor instead. -func (*GetSearchAttributesResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{65} -} - func (x *GetSearchAttributesResponse) GetKeys() map[string]v11.IndexedValueType { if x != nil { return x.Keys @@ -5573,8 +10066,26 @@ func (x *GetSearchAttributesResponse) GetKeys() map[string]v11.IndexedValueType return nil } +func (x *GetSearchAttributesResponse) SetKeys(v map[string]v11.IndexedValueType) { + x.Keys = v +} + +type GetSearchAttributesResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Keys map[string]v11.IndexedValueType +} + +func (b0 GetSearchAttributesResponse_builder) Build() *GetSearchAttributesResponse { + m0 := &GetSearchAttributesResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Keys = b.Keys + return m0 +} + type RespondQueryTaskCompletedRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` TaskToken []byte `protobuf:"bytes,1,opt,name=task_token,json=taskToken,proto3" json:"task_token,omitempty"` CompletedType v11.QueryResultType `protobuf:"varint,2,opt,name=completed_type,json=completedType,proto3,enum=temporal.api.enums.v1.QueryResultType" json:"completed_type,omitempty"` // The result of the query. @@ -5626,11 +10137,6 @@ func (x *RespondQueryTaskCompletedRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RespondQueryTaskCompletedRequest.ProtoReflect.Descriptor instead. -func (*RespondQueryTaskCompletedRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{66} -} - func (x *RespondQueryTaskCompletedRequest) GetTaskToken() []byte { if x != nil { return x.TaskToken @@ -5680,8 +10186,102 @@ func (x *RespondQueryTaskCompletedRequest) GetCause() v11.WorkflowTaskFailedCaus return v11.WorkflowTaskFailedCause(0) } +func (x *RespondQueryTaskCompletedRequest) SetTaskToken(v []byte) { + if v == nil { + v = []byte{} + } + x.TaskToken = v +} + +func (x *RespondQueryTaskCompletedRequest) SetCompletedType(v v11.QueryResultType) { + x.CompletedType = v +} + +func (x *RespondQueryTaskCompletedRequest) SetQueryResult(v *v13.Payloads) { + x.QueryResult = v +} + +func (x *RespondQueryTaskCompletedRequest) SetErrorMessage(v string) { + x.ErrorMessage = v +} + +func (x *RespondQueryTaskCompletedRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *RespondQueryTaskCompletedRequest) SetFailure(v *v15.Failure) { + x.Failure = v +} + +func (x *RespondQueryTaskCompletedRequest) SetCause(v v11.WorkflowTaskFailedCause) { + x.Cause = v +} + +func (x *RespondQueryTaskCompletedRequest) HasQueryResult() bool { + if x == nil { + return false + } + return x.QueryResult != nil +} + +func (x *RespondQueryTaskCompletedRequest) HasFailure() bool { + if x == nil { + return false + } + return x.Failure != nil +} + +func (x *RespondQueryTaskCompletedRequest) ClearQueryResult() { + x.QueryResult = nil +} + +func (x *RespondQueryTaskCompletedRequest) ClearFailure() { + x.Failure = nil +} + +type RespondQueryTaskCompletedRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + TaskToken []byte + CompletedType v11.QueryResultType + // The result of the query. + // Mutually exclusive with `error_message` and `failure`. Set when the query succeeds. + QueryResult *v13.Payloads + // A plain error message that must be set if completed_type is QUERY_RESULT_TYPE_FAILED. + // SDKs should also fill in the more complete `failure` field to provide the full context and + // support encryption of failure information. + // `error_message` will be duplicated if the `failure` field is present to support callers + // that pre-date the addition of that field, regardless of whether or not a custom failure + // converter is used. + // Mutually exclusive with `query_result`. Set when the query fails. + ErrorMessage string + Namespace string + // The full reason for this query failure. This field is newer than `error_message` and can be + // encoded by the SDK's failure converter to support E2E encryption of messages and stack + // traces. + // Mutually exclusive with `query_result`. Set when the query fails. + Failure *v15.Failure + // Why did the task fail? It's important to note that many of the variants in this enum cannot + // apply to worker responses. See the type's doc for more. + Cause v11.WorkflowTaskFailedCause +} + +func (b0 RespondQueryTaskCompletedRequest_builder) Build() *RespondQueryTaskCompletedRequest { + m0 := &RespondQueryTaskCompletedRequest{} + b, x := &b0, m0 + _, _ = b, x + x.TaskToken = b.TaskToken + x.CompletedType = b.CompletedType + x.QueryResult = b.QueryResult + x.ErrorMessage = b.ErrorMessage + x.Namespace = b.Namespace + x.Failure = b.Failure + x.Cause = b.Cause + return m0 +} + type RespondQueryTaskCompletedResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -5711,13 +10311,20 @@ func (x *RespondQueryTaskCompletedResponse) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use RespondQueryTaskCompletedResponse.ProtoReflect.Descriptor instead. -func (*RespondQueryTaskCompletedResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{67} +type RespondQueryTaskCompletedResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 RespondQueryTaskCompletedResponse_builder) Build() *RespondQueryTaskCompletedResponse { + m0 := &RespondQueryTaskCompletedResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type ResetStickyTaskQueueRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` Execution *v13.WorkflowExecution `protobuf:"bytes,2,opt,name=execution,proto3" json:"execution,omitempty"` unknownFields protoimpl.UnknownFields @@ -5749,11 +10356,6 @@ func (x *ResetStickyTaskQueueRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ResetStickyTaskQueueRequest.ProtoReflect.Descriptor instead. -func (*ResetStickyTaskQueueRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{68} -} - func (x *ResetStickyTaskQueueRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -5768,8 +10370,43 @@ func (x *ResetStickyTaskQueueRequest) GetExecution() *v13.WorkflowExecution { return nil } +func (x *ResetStickyTaskQueueRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *ResetStickyTaskQueueRequest) SetExecution(v *v13.WorkflowExecution) { + x.Execution = v +} + +func (x *ResetStickyTaskQueueRequest) HasExecution() bool { + if x == nil { + return false + } + return x.Execution != nil +} + +func (x *ResetStickyTaskQueueRequest) ClearExecution() { + x.Execution = nil +} + +type ResetStickyTaskQueueRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + Execution *v13.WorkflowExecution +} + +func (b0 ResetStickyTaskQueueRequest_builder) Build() *ResetStickyTaskQueueRequest { + m0 := &ResetStickyTaskQueueRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.Execution = b.Execution + return m0 +} + type ResetStickyTaskQueueResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -5799,13 +10436,20 @@ func (x *ResetStickyTaskQueueResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ResetStickyTaskQueueResponse.ProtoReflect.Descriptor instead. -func (*ResetStickyTaskQueueResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{69} +type ResetStickyTaskQueueResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 ResetStickyTaskQueueResponse_builder) Build() *ResetStickyTaskQueueResponse { + m0 := &ResetStickyTaskQueueResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type ShutdownWorkerRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // sticky_task_queue may not always be populated. We want to ensure all workers // send a shutdown request to update worker state for heartbeating, as well @@ -5854,11 +10498,6 @@ func (x *ShutdownWorkerRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ShutdownWorkerRequest.ProtoReflect.Descriptor instead. -func (*ShutdownWorkerRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{70} -} - func (x *ShutdownWorkerRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -5915,8 +10554,90 @@ func (x *ShutdownWorkerRequest) GetTaskQueueTypes() []v11.TaskQueueType { return nil } +func (x *ShutdownWorkerRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *ShutdownWorkerRequest) SetStickyTaskQueue(v string) { + x.StickyTaskQueue = v +} + +func (x *ShutdownWorkerRequest) SetIdentity(v string) { + x.Identity = v +} + +func (x *ShutdownWorkerRequest) SetReason(v string) { + x.Reason = v +} + +func (x *ShutdownWorkerRequest) SetWorkerHeartbeat(v *v114.WorkerHeartbeat) { + x.WorkerHeartbeat = v +} + +func (x *ShutdownWorkerRequest) SetWorkerInstanceKey(v string) { + x.WorkerInstanceKey = v +} + +func (x *ShutdownWorkerRequest) SetTaskQueue(v string) { + x.TaskQueue = v +} + +func (x *ShutdownWorkerRequest) SetTaskQueueTypes(v []v11.TaskQueueType) { + x.TaskQueueTypes = v +} + +func (x *ShutdownWorkerRequest) HasWorkerHeartbeat() bool { + if x == nil { + return false + } + return x.WorkerHeartbeat != nil +} + +func (x *ShutdownWorkerRequest) ClearWorkerHeartbeat() { + x.WorkerHeartbeat = nil +} + +type ShutdownWorkerRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + // sticky_task_queue may not always be populated. We want to ensure all workers + // send a shutdown request to update worker state for heartbeating, as well + // as cancel pending poll calls early, instead of waiting for timeouts. + StickyTaskQueue string + Identity string + Reason string + WorkerHeartbeat *v114.WorkerHeartbeat + // Technically this is also sent in the WorkerHeartbeat, but + // since worker heartbeating can be turned off, this needs + // to be a separate, top-level field. + WorkerInstanceKey string + // Task queue name the worker is polling on. This allows server to cancel + // all outstanding poll RPC calls from SDK. This avoids a race condition that + // can lead to tasks being lost. + TaskQueue string + // Task queue types that help server cancel outstanding poll RPC + // calls from SDK. This avoids a race condition that can lead to tasks being lost. + TaskQueueTypes []v11.TaskQueueType +} + +func (b0 ShutdownWorkerRequest_builder) Build() *ShutdownWorkerRequest { + m0 := &ShutdownWorkerRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.StickyTaskQueue = b.StickyTaskQueue + x.Identity = b.Identity + x.Reason = b.Reason + x.WorkerHeartbeat = b.WorkerHeartbeat + x.WorkerInstanceKey = b.WorkerInstanceKey + x.TaskQueue = b.TaskQueue + x.TaskQueueTypes = b.TaskQueueTypes + return m0 +} + type ShutdownWorkerResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -5946,13 +10667,20 @@ func (x *ShutdownWorkerResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ShutdownWorkerResponse.ProtoReflect.Descriptor instead. -func (*ShutdownWorkerResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{71} +type ShutdownWorkerResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 ShutdownWorkerResponse_builder) Build() *ShutdownWorkerResponse { + m0 := &ShutdownWorkerResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type QueryWorkflowRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` Execution *v13.WorkflowExecution `protobuf:"bytes,2,opt,name=execution,proto3" json:"execution,omitempty"` Query *v110.WorkflowQuery `protobuf:"bytes,3,opt,name=query,proto3" json:"query,omitempty"` @@ -5988,11 +10716,6 @@ func (x *QueryWorkflowRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use QueryWorkflowRequest.ProtoReflect.Descriptor instead. -func (*QueryWorkflowRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{72} -} - func (x *QueryWorkflowRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -6021,8 +10744,68 @@ func (x *QueryWorkflowRequest) GetQueryRejectCondition() v11.QueryRejectConditio return v11.QueryRejectCondition(0) } +func (x *QueryWorkflowRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *QueryWorkflowRequest) SetExecution(v *v13.WorkflowExecution) { + x.Execution = v +} + +func (x *QueryWorkflowRequest) SetQuery(v *v110.WorkflowQuery) { + x.Query = v +} + +func (x *QueryWorkflowRequest) SetQueryRejectCondition(v v11.QueryRejectCondition) { + x.QueryRejectCondition = v +} + +func (x *QueryWorkflowRequest) HasExecution() bool { + if x == nil { + return false + } + return x.Execution != nil +} + +func (x *QueryWorkflowRequest) HasQuery() bool { + if x == nil { + return false + } + return x.Query != nil +} + +func (x *QueryWorkflowRequest) ClearExecution() { + x.Execution = nil +} + +func (x *QueryWorkflowRequest) ClearQuery() { + x.Query = nil +} + +type QueryWorkflowRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + Execution *v13.WorkflowExecution + Query *v110.WorkflowQuery + // QueryRejectCondition can used to reject the query if workflow state does not satisfy condition. + // Default: QUERY_REJECT_CONDITION_NONE. + QueryRejectCondition v11.QueryRejectCondition +} + +func (b0 QueryWorkflowRequest_builder) Build() *QueryWorkflowRequest { + m0 := &QueryWorkflowRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.Execution = b.Execution + x.Query = b.Query + x.QueryRejectCondition = b.QueryRejectCondition + return m0 +} + type QueryWorkflowResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` QueryResult *v13.Payloads `protobuf:"bytes,1,opt,name=query_result,json=queryResult,proto3" json:"query_result,omitempty"` QueryRejected *v110.QueryRejected `protobuf:"bytes,2,opt,name=query_rejected,json=queryRejected,proto3" json:"query_rejected,omitempty"` unknownFields protoimpl.UnknownFields @@ -6054,11 +10837,6 @@ func (x *QueryWorkflowResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use QueryWorkflowResponse.ProtoReflect.Descriptor instead. -func (*QueryWorkflowResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{73} -} - func (x *QueryWorkflowResponse) GetQueryResult() *v13.Payloads { if x != nil { return x.QueryResult @@ -6073,8 +10851,54 @@ func (x *QueryWorkflowResponse) GetQueryRejected() *v110.QueryRejected { return nil } +func (x *QueryWorkflowResponse) SetQueryResult(v *v13.Payloads) { + x.QueryResult = v +} + +func (x *QueryWorkflowResponse) SetQueryRejected(v *v110.QueryRejected) { + x.QueryRejected = v +} + +func (x *QueryWorkflowResponse) HasQueryResult() bool { + if x == nil { + return false + } + return x.QueryResult != nil +} + +func (x *QueryWorkflowResponse) HasQueryRejected() bool { + if x == nil { + return false + } + return x.QueryRejected != nil +} + +func (x *QueryWorkflowResponse) ClearQueryResult() { + x.QueryResult = nil +} + +func (x *QueryWorkflowResponse) ClearQueryRejected() { + x.QueryRejected = nil +} + +type QueryWorkflowResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + QueryResult *v13.Payloads + QueryRejected *v110.QueryRejected +} + +func (b0 QueryWorkflowResponse_builder) Build() *QueryWorkflowResponse { + m0 := &QueryWorkflowResponse{} + b, x := &b0, m0 + _, _ = b, x + x.QueryResult = b.QueryResult + x.QueryRejected = b.QueryRejected + return m0 +} + type DescribeWorkflowExecutionRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` Execution *v13.WorkflowExecution `protobuf:"bytes,2,opt,name=execution,proto3" json:"execution,omitempty"` unknownFields protoimpl.UnknownFields @@ -6106,11 +10930,6 @@ func (x *DescribeWorkflowExecutionRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DescribeWorkflowExecutionRequest.ProtoReflect.Descriptor instead. -func (*DescribeWorkflowExecutionRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{74} -} - func (x *DescribeWorkflowExecutionRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -6118,15 +10937,50 @@ func (x *DescribeWorkflowExecutionRequest) GetNamespace() string { return "" } -func (x *DescribeWorkflowExecutionRequest) GetExecution() *v13.WorkflowExecution { - if x != nil { - return x.Execution - } - return nil +func (x *DescribeWorkflowExecutionRequest) GetExecution() *v13.WorkflowExecution { + if x != nil { + return x.Execution + } + return nil +} + +func (x *DescribeWorkflowExecutionRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *DescribeWorkflowExecutionRequest) SetExecution(v *v13.WorkflowExecution) { + x.Execution = v +} + +func (x *DescribeWorkflowExecutionRequest) HasExecution() bool { + if x == nil { + return false + } + return x.Execution != nil +} + +func (x *DescribeWorkflowExecutionRequest) ClearExecution() { + x.Execution = nil +} + +type DescribeWorkflowExecutionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + Execution *v13.WorkflowExecution +} + +func (b0 DescribeWorkflowExecutionRequest_builder) Build() *DescribeWorkflowExecutionRequest { + m0 := &DescribeWorkflowExecutionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.Execution = b.Execution + return m0 } type DescribeWorkflowExecutionResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` ExecutionConfig *v17.WorkflowExecutionConfig `protobuf:"bytes,1,opt,name=execution_config,json=executionConfig,proto3" json:"execution_config,omitempty"` WorkflowExecutionInfo *v17.WorkflowExecutionInfo `protobuf:"bytes,2,opt,name=workflow_execution_info,json=workflowExecutionInfo,proto3" json:"workflow_execution_info,omitempty"` PendingActivities []*v17.PendingActivityInfo `protobuf:"bytes,3,rep,name=pending_activities,json=pendingActivities,proto3" json:"pending_activities,omitempty"` @@ -6164,11 +11018,6 @@ func (x *DescribeWorkflowExecutionResponse) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use DescribeWorkflowExecutionResponse.ProtoReflect.Descriptor instead. -func (*DescribeWorkflowExecutionResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{75} -} - func (x *DescribeWorkflowExecutionResponse) GetExecutionConfig() *v17.WorkflowExecutionConfig { if x != nil { return x.ExecutionConfig @@ -6225,11 +11074,115 @@ func (x *DescribeWorkflowExecutionResponse) GetWorkflowExtendedInfo() *v17.Workf return nil } +func (x *DescribeWorkflowExecutionResponse) SetExecutionConfig(v *v17.WorkflowExecutionConfig) { + x.ExecutionConfig = v +} + +func (x *DescribeWorkflowExecutionResponse) SetWorkflowExecutionInfo(v *v17.WorkflowExecutionInfo) { + x.WorkflowExecutionInfo = v +} + +func (x *DescribeWorkflowExecutionResponse) SetPendingActivities(v []*v17.PendingActivityInfo) { + x.PendingActivities = v +} + +func (x *DescribeWorkflowExecutionResponse) SetPendingChildren(v []*v17.PendingChildExecutionInfo) { + x.PendingChildren = v +} + +func (x *DescribeWorkflowExecutionResponse) SetPendingWorkflowTask(v *v17.PendingWorkflowTaskInfo) { + x.PendingWorkflowTask = v +} + +func (x *DescribeWorkflowExecutionResponse) SetCallbacks(v []*v17.CallbackInfo) { + x.Callbacks = v +} + +func (x *DescribeWorkflowExecutionResponse) SetPendingNexusOperations(v []*v17.PendingNexusOperationInfo) { + x.PendingNexusOperations = v +} + +func (x *DescribeWorkflowExecutionResponse) SetWorkflowExtendedInfo(v *v17.WorkflowExecutionExtendedInfo) { + x.WorkflowExtendedInfo = v +} + +func (x *DescribeWorkflowExecutionResponse) HasExecutionConfig() bool { + if x == nil { + return false + } + return x.ExecutionConfig != nil +} + +func (x *DescribeWorkflowExecutionResponse) HasWorkflowExecutionInfo() bool { + if x == nil { + return false + } + return x.WorkflowExecutionInfo != nil +} + +func (x *DescribeWorkflowExecutionResponse) HasPendingWorkflowTask() bool { + if x == nil { + return false + } + return x.PendingWorkflowTask != nil +} + +func (x *DescribeWorkflowExecutionResponse) HasWorkflowExtendedInfo() bool { + if x == nil { + return false + } + return x.WorkflowExtendedInfo != nil +} + +func (x *DescribeWorkflowExecutionResponse) ClearExecutionConfig() { + x.ExecutionConfig = nil +} + +func (x *DescribeWorkflowExecutionResponse) ClearWorkflowExecutionInfo() { + x.WorkflowExecutionInfo = nil +} + +func (x *DescribeWorkflowExecutionResponse) ClearPendingWorkflowTask() { + x.PendingWorkflowTask = nil +} + +func (x *DescribeWorkflowExecutionResponse) ClearWorkflowExtendedInfo() { + x.WorkflowExtendedInfo = nil +} + +type DescribeWorkflowExecutionResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ExecutionConfig *v17.WorkflowExecutionConfig + WorkflowExecutionInfo *v17.WorkflowExecutionInfo + PendingActivities []*v17.PendingActivityInfo + PendingChildren []*v17.PendingChildExecutionInfo + PendingWorkflowTask *v17.PendingWorkflowTaskInfo + Callbacks []*v17.CallbackInfo + PendingNexusOperations []*v17.PendingNexusOperationInfo + WorkflowExtendedInfo *v17.WorkflowExecutionExtendedInfo +} + +func (b0 DescribeWorkflowExecutionResponse_builder) Build() *DescribeWorkflowExecutionResponse { + m0 := &DescribeWorkflowExecutionResponse{} + b, x := &b0, m0 + _, _ = b, x + x.ExecutionConfig = b.ExecutionConfig + x.WorkflowExecutionInfo = b.WorkflowExecutionInfo + x.PendingActivities = b.PendingActivities + x.PendingChildren = b.PendingChildren + x.PendingWorkflowTask = b.PendingWorkflowTask + x.Callbacks = b.Callbacks + x.PendingNexusOperations = b.PendingNexusOperations + x.WorkflowExtendedInfo = b.WorkflowExtendedInfo + return m0 +} + // (-- api-linter: core::0203::optional=disabled // // aip.dev/not-precedent: field_behavior annotation not available in our gogo fork --) type DescribeTaskQueueRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // Sticky queues are not supported in deprecated ENHANCED mode. TaskQueue *v14.TaskQueue `protobuf:"bytes,2,opt,name=task_queue,json=taskQueue,proto3" json:"task_queue,omitempty"` @@ -6304,11 +11257,6 @@ func (x *DescribeTaskQueueRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DescribeTaskQueueRequest.ProtoReflect.Descriptor instead. -func (*DescribeTaskQueueRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{76} -} - func (x *DescribeTaskQueueRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -6392,8 +11340,150 @@ func (x *DescribeTaskQueueRequest) GetReportTaskReachability() bool { return false } +func (x *DescribeTaskQueueRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *DescribeTaskQueueRequest) SetTaskQueue(v *v14.TaskQueue) { + x.TaskQueue = v +} + +func (x *DescribeTaskQueueRequest) SetTaskQueueType(v v11.TaskQueueType) { + x.TaskQueueType = v +} + +func (x *DescribeTaskQueueRequest) SetReportStats(v bool) { + x.ReportStats = v +} + +func (x *DescribeTaskQueueRequest) SetReportConfig(v bool) { + x.ReportConfig = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *DescribeTaskQueueRequest) SetIncludeTaskQueueStatus(v bool) { + x.IncludeTaskQueueStatus = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *DescribeTaskQueueRequest) SetApiMode(v v11.DescribeTaskQueueMode) { + x.ApiMode = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *DescribeTaskQueueRequest) SetVersions(v *v14.TaskQueueVersionSelection) { + x.Versions = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *DescribeTaskQueueRequest) SetTaskQueueTypes(v []v11.TaskQueueType) { + x.TaskQueueTypes = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *DescribeTaskQueueRequest) SetReportPollers(v bool) { + x.ReportPollers = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *DescribeTaskQueueRequest) SetReportTaskReachability(v bool) { + x.ReportTaskReachability = v +} + +func (x *DescribeTaskQueueRequest) HasTaskQueue() bool { + if x == nil { + return false + } + return x.TaskQueue != nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *DescribeTaskQueueRequest) HasVersions() bool { + if x == nil { + return false + } + return x.Versions != nil +} + +func (x *DescribeTaskQueueRequest) ClearTaskQueue() { + x.TaskQueue = nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *DescribeTaskQueueRequest) ClearVersions() { + x.Versions = nil +} + +type DescribeTaskQueueRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + // Sticky queues are not supported in deprecated ENHANCED mode. + TaskQueue *v14.TaskQueue + // If unspecified (TASK_QUEUE_TYPE_UNSPECIFIED), then default value (TASK_QUEUE_TYPE_WORKFLOW) will be used. + // Only supported in default mode (use `task_queue_types` in ENHANCED mode instead). + TaskQueueType v11.TaskQueueType + // Report stats for the requested task queue type(s). + ReportStats bool + // Report Task Queue Config + ReportConfig bool + // Deprecated, use `report_stats` instead. + // If true, the task queue status will be included in the response. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + IncludeTaskQueueStatus bool + // Deprecated. ENHANCED mode is also being deprecated. + // Select the API mode to use for this request: DEFAULT mode (if unset) or ENHANCED mode. + // Consult the documentation for each field to understand which mode it is supported in. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + ApiMode v11.DescribeTaskQueueMode + // Deprecated (as part of the ENHANCED mode deprecation). + // Optional. If not provided, the result for the default Build ID will be returned. The default Build ID is the one + // mentioned in the first unconditional Assignment Rule. If there is no default Build ID, the result for the + // unversioned queue will be returned. + // (-- api-linter: core::0140::prepositions --) + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + Versions *v14.TaskQueueVersionSelection + // Deprecated (as part of the ENHANCED mode deprecation). + // Task queue types to report info about. If not specified, all types are considered. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + TaskQueueTypes []v11.TaskQueueType + // Deprecated (as part of the ENHANCED mode deprecation). + // Report list of pollers for requested task queue types and versions. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + ReportPollers bool + // Deprecated (as part of the ENHANCED mode deprecation). + // Report task reachability for the requested versions and all task types (task reachability is not reported + // per task type). + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + ReportTaskReachability bool +} + +func (b0 DescribeTaskQueueRequest_builder) Build() *DescribeTaskQueueRequest { + m0 := &DescribeTaskQueueRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.TaskQueue = b.TaskQueue + x.TaskQueueType = b.TaskQueueType + x.ReportStats = b.ReportStats + x.ReportConfig = b.ReportConfig + x.IncludeTaskQueueStatus = b.IncludeTaskQueueStatus + x.ApiMode = b.ApiMode + x.Versions = b.Versions + x.TaskQueueTypes = b.TaskQueueTypes + x.ReportPollers = b.ReportPollers + x.ReportTaskReachability = b.ReportTaskReachability + return m0 +} + type DescribeTaskQueueResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Pollers []*v14.PollerInfo `protobuf:"bytes,1,rep,name=pollers,proto3" json:"pollers,omitempty"` // Statistics for the task queue. // Only set if `report_stats` is set on the request. @@ -6457,11 +11547,6 @@ func (x *DescribeTaskQueueResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DescribeTaskQueueResponse.ProtoReflect.Descriptor instead. -func (*DescribeTaskQueueResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{77} -} - func (x *DescribeTaskQueueResponse) GetPollers() []*v14.PollerInfo { if x != nil { return x.Pollers @@ -6520,8 +11605,153 @@ func (x *DescribeTaskQueueResponse) GetVersionsInfo() map[string]*v14.TaskQueueV return nil } +func (x *DescribeTaskQueueResponse) SetPollers(v []*v14.PollerInfo) { + x.Pollers = v +} + +func (x *DescribeTaskQueueResponse) SetStats(v *v14.TaskQueueStats) { + x.Stats = v +} + +func (x *DescribeTaskQueueResponse) SetStatsByPriorityKey(v map[int32]*v14.TaskQueueStats) { + x.StatsByPriorityKey = v +} + +func (x *DescribeTaskQueueResponse) SetVersioningInfo(v *v14.TaskQueueVersioningInfo) { + x.VersioningInfo = v +} + +func (x *DescribeTaskQueueResponse) SetConfig(v *v14.TaskQueueConfig) { + x.Config = v +} + +func (x *DescribeTaskQueueResponse) SetEffectiveRateLimit(v *DescribeTaskQueueResponse_EffectiveRateLimit) { + x.EffectiveRateLimit = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *DescribeTaskQueueResponse) SetTaskQueueStatus(v *v14.TaskQueueStatus) { + x.TaskQueueStatus = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *DescribeTaskQueueResponse) SetVersionsInfo(v map[string]*v14.TaskQueueVersionInfo) { + x.VersionsInfo = v +} + +func (x *DescribeTaskQueueResponse) HasStats() bool { + if x == nil { + return false + } + return x.Stats != nil +} + +func (x *DescribeTaskQueueResponse) HasVersioningInfo() bool { + if x == nil { + return false + } + return x.VersioningInfo != nil +} + +func (x *DescribeTaskQueueResponse) HasConfig() bool { + if x == nil { + return false + } + return x.Config != nil +} + +func (x *DescribeTaskQueueResponse) HasEffectiveRateLimit() bool { + if x == nil { + return false + } + return x.EffectiveRateLimit != nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *DescribeTaskQueueResponse) HasTaskQueueStatus() bool { + if x == nil { + return false + } + return x.TaskQueueStatus != nil +} + +func (x *DescribeTaskQueueResponse) ClearStats() { + x.Stats = nil +} + +func (x *DescribeTaskQueueResponse) ClearVersioningInfo() { + x.VersioningInfo = nil +} + +func (x *DescribeTaskQueueResponse) ClearConfig() { + x.Config = nil +} + +func (x *DescribeTaskQueueResponse) ClearEffectiveRateLimit() { + x.EffectiveRateLimit = nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *DescribeTaskQueueResponse) ClearTaskQueueStatus() { + x.TaskQueueStatus = nil +} + +type DescribeTaskQueueResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Pollers []*v14.PollerInfo + // Statistics for the task queue. + // Only set if `report_stats` is set on the request. + Stats *v14.TaskQueueStats + // Task queue stats breakdown by priority key. Only contains actively used priority keys. + // Only set if `report_stats` is set on the request. + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "by" is used to clarify the keys and values. --) + StatsByPriorityKey map[int32]*v14.TaskQueueStats + // Specifies which Worker Deployment Version(s) Server routes this Task Queue's tasks to. + // When not present, it means the tasks are routed to Unversioned workers (workers with + // UNVERSIONED or unspecified WorkerVersioningMode.) + // Task Queue Versioning info is updated indirectly by calling SetWorkerDeploymentCurrentVersion + // and SetWorkerDeploymentRampingVersion on Worker Deployments. + // Note: This information is not relevant to Pinned workflow executions and their activities as + // they are always routed to their Pinned Deployment Version. However, new workflow executions + // are typically not Pinned until they complete their first task (unless they are started with + // a Pinned VersioningOverride or are Child Workflows of a Pinned parent). + VersioningInfo *v14.TaskQueueVersioningInfo + // Only populated if report_task_queue_config is set to true. + Config *v14.TaskQueueConfig + EffectiveRateLimit *DescribeTaskQueueResponse_EffectiveRateLimit + // Deprecated. + // Status of the task queue. Only populated when `include_task_queue_status` is set to true in the request. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + TaskQueueStatus *v14.TaskQueueStatus + // Deprecated. + // Only returned in ENHANCED mode. + // This map contains Task Queue information for each Build ID. Empty string as key value means unversioned. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + VersionsInfo map[string]*v14.TaskQueueVersionInfo +} + +func (b0 DescribeTaskQueueResponse_builder) Build() *DescribeTaskQueueResponse { + m0 := &DescribeTaskQueueResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Pollers = b.Pollers + x.Stats = b.Stats + x.StatsByPriorityKey = b.StatsByPriorityKey + x.VersioningInfo = b.VersioningInfo + x.Config = b.Config + x.EffectiveRateLimit = b.EffectiveRateLimit + x.TaskQueueStatus = b.TaskQueueStatus + x.VersionsInfo = b.VersionsInfo + return m0 +} + type GetClusterInfoRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -6551,14 +11781,21 @@ func (x *GetClusterInfoRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetClusterInfoRequest.ProtoReflect.Descriptor instead. -func (*GetClusterInfoRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{78} +type GetClusterInfoRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 GetClusterInfoRequest_builder) Build() *GetClusterInfoRequest { + m0 := &GetClusterInfoRequest{} + b, x := &b0, m0 + _, _ = b, x + return m0 } // GetClusterInfoResponse contains information about Temporal cluster. type GetClusterInfoResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Key is client name i.e "temporal-go", "temporal-java", or "temporal-cli". // Value is ranges of supported versions of this client i.e ">1.1.1 <=1.4.0 || ^5.0.0". SupportedClients map[string]string `protobuf:"bytes,1,rep,name=supported_clients,json=supportedClients,proto3" json:"supported_clients,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` @@ -6600,11 +11837,6 @@ func (x *GetClusterInfoResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetClusterInfoResponse.ProtoReflect.Descriptor instead. -func (*GetClusterInfoResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{79} -} - func (x *GetClusterInfoResponse) GetSupportedClients() map[string]string { if x != nil { return x.SupportedClients @@ -6647,36 +11879,121 @@ func (x *GetClusterInfoResponse) GetHistoryShardCount() int32 { return 0 } -func (x *GetClusterInfoResponse) GetPersistenceStore() string { - if x != nil { - return x.PersistenceStore - } - return "" +func (x *GetClusterInfoResponse) GetPersistenceStore() string { + if x != nil { + return x.PersistenceStore + } + return "" +} + +func (x *GetClusterInfoResponse) GetVisibilityStore() string { + if x != nil { + return x.VisibilityStore + } + return "" +} + +func (x *GetClusterInfoResponse) GetInitialFailoverVersion() int64 { + if x != nil { + return x.InitialFailoverVersion + } + return 0 +} + +func (x *GetClusterInfoResponse) GetFailoverVersionIncrement() int64 { + if x != nil { + return x.FailoverVersionIncrement + } + return 0 +} + +func (x *GetClusterInfoResponse) SetSupportedClients(v map[string]string) { + x.SupportedClients = v +} + +func (x *GetClusterInfoResponse) SetServerVersion(v string) { + x.ServerVersion = v +} + +func (x *GetClusterInfoResponse) SetClusterId(v string) { + x.ClusterId = v +} + +func (x *GetClusterInfoResponse) SetVersionInfo(v *v115.VersionInfo) { + x.VersionInfo = v +} + +func (x *GetClusterInfoResponse) SetClusterName(v string) { + x.ClusterName = v +} + +func (x *GetClusterInfoResponse) SetHistoryShardCount(v int32) { + x.HistoryShardCount = v +} + +func (x *GetClusterInfoResponse) SetPersistenceStore(v string) { + x.PersistenceStore = v +} + +func (x *GetClusterInfoResponse) SetVisibilityStore(v string) { + x.VisibilityStore = v } -func (x *GetClusterInfoResponse) GetVisibilityStore() string { - if x != nil { - return x.VisibilityStore - } - return "" +func (x *GetClusterInfoResponse) SetInitialFailoverVersion(v int64) { + x.InitialFailoverVersion = v } -func (x *GetClusterInfoResponse) GetInitialFailoverVersion() int64 { - if x != nil { - return x.InitialFailoverVersion - } - return 0 +func (x *GetClusterInfoResponse) SetFailoverVersionIncrement(v int64) { + x.FailoverVersionIncrement = v } -func (x *GetClusterInfoResponse) GetFailoverVersionIncrement() int64 { - if x != nil { - return x.FailoverVersionIncrement +func (x *GetClusterInfoResponse) HasVersionInfo() bool { + if x == nil { + return false } - return 0 + return x.VersionInfo != nil +} + +func (x *GetClusterInfoResponse) ClearVersionInfo() { + x.VersionInfo = nil +} + +type GetClusterInfoResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Key is client name i.e "temporal-go", "temporal-java", or "temporal-cli". + // Value is ranges of supported versions of this client i.e ">1.1.1 <=1.4.0 || ^5.0.0". + SupportedClients map[string]string + ServerVersion string + ClusterId string + VersionInfo *v115.VersionInfo + ClusterName string + HistoryShardCount int32 + PersistenceStore string + VisibilityStore string + InitialFailoverVersion int64 + FailoverVersionIncrement int64 +} + +func (b0 GetClusterInfoResponse_builder) Build() *GetClusterInfoResponse { + m0 := &GetClusterInfoResponse{} + b, x := &b0, m0 + _, _ = b, x + x.SupportedClients = b.SupportedClients + x.ServerVersion = b.ServerVersion + x.ClusterId = b.ClusterId + x.VersionInfo = b.VersionInfo + x.ClusterName = b.ClusterName + x.HistoryShardCount = b.HistoryShardCount + x.PersistenceStore = b.PersistenceStore + x.VisibilityStore = b.VisibilityStore + x.InitialFailoverVersion = b.InitialFailoverVersion + x.FailoverVersionIncrement = b.FailoverVersionIncrement + return m0 } type GetSystemInfoRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -6706,13 +12023,20 @@ func (x *GetSystemInfoRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetSystemInfoRequest.ProtoReflect.Descriptor instead. -func (*GetSystemInfoRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{80} +type GetSystemInfoRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 GetSystemInfoRequest_builder) Build() *GetSystemInfoRequest { + m0 := &GetSystemInfoRequest{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type GetSystemInfoResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Version of the server. ServerVersion string `protobuf:"bytes,1,opt,name=server_version,json=serverVersion,proto3" json:"server_version,omitempty"` // All capabilities the system supports. @@ -6746,11 +12070,6 @@ func (x *GetSystemInfoResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetSystemInfoResponse.ProtoReflect.Descriptor instead. -func (*GetSystemInfoResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{81} -} - func (x *GetSystemInfoResponse) GetServerVersion() string { if x != nil { return x.ServerVersion @@ -6765,8 +12084,45 @@ func (x *GetSystemInfoResponse) GetCapabilities() *GetSystemInfoResponse_Capabil return nil } +func (x *GetSystemInfoResponse) SetServerVersion(v string) { + x.ServerVersion = v +} + +func (x *GetSystemInfoResponse) SetCapabilities(v *GetSystemInfoResponse_Capabilities) { + x.Capabilities = v +} + +func (x *GetSystemInfoResponse) HasCapabilities() bool { + if x == nil { + return false + } + return x.Capabilities != nil +} + +func (x *GetSystemInfoResponse) ClearCapabilities() { + x.Capabilities = nil +} + +type GetSystemInfoResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Version of the server. + ServerVersion string + // All capabilities the system supports. + Capabilities *GetSystemInfoResponse_Capabilities +} + +func (b0 GetSystemInfoResponse_builder) Build() *GetSystemInfoResponse { + m0 := &GetSystemInfoResponse{} + b, x := &b0, m0 + _, _ = b, x + x.ServerVersion = b.ServerVersion + x.Capabilities = b.Capabilities + return m0 +} + type ListTaskQueuePartitionsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` TaskQueue *v14.TaskQueue `protobuf:"bytes,2,opt,name=task_queue,json=taskQueue,proto3" json:"task_queue,omitempty"` unknownFields protoimpl.UnknownFields @@ -6798,11 +12154,6 @@ func (x *ListTaskQueuePartitionsRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListTaskQueuePartitionsRequest.ProtoReflect.Descriptor instead. -func (*ListTaskQueuePartitionsRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{82} -} - func (x *ListTaskQueuePartitionsRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -6817,8 +12168,43 @@ func (x *ListTaskQueuePartitionsRequest) GetTaskQueue() *v14.TaskQueue { return nil } +func (x *ListTaskQueuePartitionsRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *ListTaskQueuePartitionsRequest) SetTaskQueue(v *v14.TaskQueue) { + x.TaskQueue = v +} + +func (x *ListTaskQueuePartitionsRequest) HasTaskQueue() bool { + if x == nil { + return false + } + return x.TaskQueue != nil +} + +func (x *ListTaskQueuePartitionsRequest) ClearTaskQueue() { + x.TaskQueue = nil +} + +type ListTaskQueuePartitionsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + TaskQueue *v14.TaskQueue +} + +func (b0 ListTaskQueuePartitionsRequest_builder) Build() *ListTaskQueuePartitionsRequest { + m0 := &ListTaskQueuePartitionsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.TaskQueue = b.TaskQueue + return m0 +} + type ListTaskQueuePartitionsResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` ActivityTaskQueuePartitions []*v14.TaskQueuePartitionMetadata `protobuf:"bytes,1,rep,name=activity_task_queue_partitions,json=activityTaskQueuePartitions,proto3" json:"activity_task_queue_partitions,omitempty"` WorkflowTaskQueuePartitions []*v14.TaskQueuePartitionMetadata `protobuf:"bytes,2,rep,name=workflow_task_queue_partitions,json=workflowTaskQueuePartitions,proto3" json:"workflow_task_queue_partitions,omitempty"` unknownFields protoimpl.UnknownFields @@ -6850,11 +12236,6 @@ func (x *ListTaskQueuePartitionsResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListTaskQueuePartitionsResponse.ProtoReflect.Descriptor instead. -func (*ListTaskQueuePartitionsResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{83} -} - func (x *ListTaskQueuePartitionsResponse) GetActivityTaskQueuePartitions() []*v14.TaskQueuePartitionMetadata { if x != nil { return x.ActivityTaskQueuePartitions @@ -6869,11 +12250,35 @@ func (x *ListTaskQueuePartitionsResponse) GetWorkflowTaskQueuePartitions() []*v1 return nil } +func (x *ListTaskQueuePartitionsResponse) SetActivityTaskQueuePartitions(v []*v14.TaskQueuePartitionMetadata) { + x.ActivityTaskQueuePartitions = v +} + +func (x *ListTaskQueuePartitionsResponse) SetWorkflowTaskQueuePartitions(v []*v14.TaskQueuePartitionMetadata) { + x.WorkflowTaskQueuePartitions = v +} + +type ListTaskQueuePartitionsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ActivityTaskQueuePartitions []*v14.TaskQueuePartitionMetadata + WorkflowTaskQueuePartitions []*v14.TaskQueuePartitionMetadata +} + +func (b0 ListTaskQueuePartitionsResponse_builder) Build() *ListTaskQueuePartitionsResponse { + m0 := &ListTaskQueuePartitionsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.ActivityTaskQueuePartitions = b.ActivityTaskQueuePartitions + x.WorkflowTaskQueuePartitions = b.WorkflowTaskQueuePartitions + return m0 +} + // (-- api-linter: core::0203::optional=disabled // // aip.dev/not-precedent: field_behavior annotation not available in our gogo fork --) type CreateScheduleRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The namespace the schedule should be created in. Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // The id of the new schedule. @@ -6918,11 +12323,6 @@ func (x *CreateScheduleRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CreateScheduleRequest.ProtoReflect.Descriptor instead. -func (*CreateScheduleRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{84} -} - func (x *CreateScheduleRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -6979,8 +12379,119 @@ func (x *CreateScheduleRequest) GetSearchAttributes() *v13.SearchAttributes { return nil } +func (x *CreateScheduleRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *CreateScheduleRequest) SetScheduleId(v string) { + x.ScheduleId = v +} + +func (x *CreateScheduleRequest) SetSchedule(v *v116.Schedule) { + x.Schedule = v +} + +func (x *CreateScheduleRequest) SetInitialPatch(v *v116.SchedulePatch) { + x.InitialPatch = v +} + +func (x *CreateScheduleRequest) SetIdentity(v string) { + x.Identity = v +} + +func (x *CreateScheduleRequest) SetRequestId(v string) { + x.RequestId = v +} + +func (x *CreateScheduleRequest) SetMemo(v *v13.Memo) { + x.Memo = v +} + +func (x *CreateScheduleRequest) SetSearchAttributes(v *v13.SearchAttributes) { + x.SearchAttributes = v +} + +func (x *CreateScheduleRequest) HasSchedule() bool { + if x == nil { + return false + } + return x.Schedule != nil +} + +func (x *CreateScheduleRequest) HasInitialPatch() bool { + if x == nil { + return false + } + return x.InitialPatch != nil +} + +func (x *CreateScheduleRequest) HasMemo() bool { + if x == nil { + return false + } + return x.Memo != nil +} + +func (x *CreateScheduleRequest) HasSearchAttributes() bool { + if x == nil { + return false + } + return x.SearchAttributes != nil +} + +func (x *CreateScheduleRequest) ClearSchedule() { + x.Schedule = nil +} + +func (x *CreateScheduleRequest) ClearInitialPatch() { + x.InitialPatch = nil +} + +func (x *CreateScheduleRequest) ClearMemo() { + x.Memo = nil +} + +func (x *CreateScheduleRequest) ClearSearchAttributes() { + x.SearchAttributes = nil +} + +type CreateScheduleRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The namespace the schedule should be created in. + Namespace string + // The id of the new schedule. + ScheduleId string + // The schedule spec, policies, action, and initial state. + Schedule *v116.Schedule + // Optional initial patch (e.g. to run the action once immediately). + InitialPatch *v116.SchedulePatch + // The identity of the client who initiated this request. + Identity string + // A unique identifier for this create request for idempotence. Typically UUIDv4. + RequestId string + // Memo and search attributes to attach to the schedule itself. + Memo *v13.Memo + SearchAttributes *v13.SearchAttributes +} + +func (b0 CreateScheduleRequest_builder) Build() *CreateScheduleRequest { + m0 := &CreateScheduleRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.ScheduleId = b.ScheduleId + x.Schedule = b.Schedule + x.InitialPatch = b.InitialPatch + x.Identity = b.Identity + x.RequestId = b.RequestId + x.Memo = b.Memo + x.SearchAttributes = b.SearchAttributes + return m0 +} + type CreateScheduleResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` ConflictToken []byte `protobuf:"bytes,1,opt,name=conflict_token,json=conflictToken,proto3" json:"conflict_token,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -7011,11 +12522,6 @@ func (x *CreateScheduleResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CreateScheduleResponse.ProtoReflect.Descriptor instead. -func (*CreateScheduleResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{85} -} - func (x *CreateScheduleResponse) GetConflictToken() []byte { if x != nil { return x.ConflictToken @@ -7023,8 +12529,29 @@ func (x *CreateScheduleResponse) GetConflictToken() []byte { return nil } +func (x *CreateScheduleResponse) SetConflictToken(v []byte) { + if v == nil { + v = []byte{} + } + x.ConflictToken = v +} + +type CreateScheduleResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ConflictToken []byte +} + +func (b0 CreateScheduleResponse_builder) Build() *CreateScheduleResponse { + m0 := &CreateScheduleResponse{} + b, x := &b0, m0 + _, _ = b, x + x.ConflictToken = b.ConflictToken + return m0 +} + type DescribeScheduleRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The namespace of the schedule to describe. Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // The id of the schedule to describe. @@ -7058,11 +12585,6 @@ func (x *DescribeScheduleRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DescribeScheduleRequest.ProtoReflect.Descriptor instead. -func (*DescribeScheduleRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{86} -} - func (x *DescribeScheduleRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -7077,8 +12599,34 @@ func (x *DescribeScheduleRequest) GetScheduleId() string { return "" } +func (x *DescribeScheduleRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *DescribeScheduleRequest) SetScheduleId(v string) { + x.ScheduleId = v +} + +type DescribeScheduleRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The namespace of the schedule to describe. + Namespace string + // The id of the schedule to describe. + ScheduleId string +} + +func (b0 DescribeScheduleRequest_builder) Build() *DescribeScheduleRequest { + m0 := &DescribeScheduleRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.ScheduleId = b.ScheduleId + return m0 +} + type DescribeScheduleResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The complete current schedule details. This may not match the schedule as // created because: // - some types of schedule specs may get compiled into others (e.g. @@ -7125,11 +12673,6 @@ func (x *DescribeScheduleResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DescribeScheduleResponse.ProtoReflect.Descriptor instead. -func (*DescribeScheduleResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{87} -} - func (x *DescribeScheduleResponse) GetSchedule() *v116.Schedule { if x != nil { return x.Schedule @@ -7165,8 +12708,109 @@ func (x *DescribeScheduleResponse) GetConflictToken() []byte { return nil } +func (x *DescribeScheduleResponse) SetSchedule(v *v116.Schedule) { + x.Schedule = v +} + +func (x *DescribeScheduleResponse) SetInfo(v *v116.ScheduleInfo) { + x.Info = v +} + +func (x *DescribeScheduleResponse) SetMemo(v *v13.Memo) { + x.Memo = v +} + +func (x *DescribeScheduleResponse) SetSearchAttributes(v *v13.SearchAttributes) { + x.SearchAttributes = v +} + +func (x *DescribeScheduleResponse) SetConflictToken(v []byte) { + if v == nil { + v = []byte{} + } + x.ConflictToken = v +} + +func (x *DescribeScheduleResponse) HasSchedule() bool { + if x == nil { + return false + } + return x.Schedule != nil +} + +func (x *DescribeScheduleResponse) HasInfo() bool { + if x == nil { + return false + } + return x.Info != nil +} + +func (x *DescribeScheduleResponse) HasMemo() bool { + if x == nil { + return false + } + return x.Memo != nil +} + +func (x *DescribeScheduleResponse) HasSearchAttributes() bool { + if x == nil { + return false + } + return x.SearchAttributes != nil +} + +func (x *DescribeScheduleResponse) ClearSchedule() { + x.Schedule = nil +} + +func (x *DescribeScheduleResponse) ClearInfo() { + x.Info = nil +} + +func (x *DescribeScheduleResponse) ClearMemo() { + x.Memo = nil +} + +func (x *DescribeScheduleResponse) ClearSearchAttributes() { + x.SearchAttributes = nil +} + +type DescribeScheduleResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The complete current schedule details. This may not match the schedule as + // created because: + // - some types of schedule specs may get compiled into others (e.g. + // CronString into StructuredCalendarSpec) + // - some unspecified fields may be replaced by defaults + // - some fields in the state are modified automatically + // - the schedule may have been modified by UpdateSchedule or PatchSchedule + Schedule *v116.Schedule + // Extra schedule state info. + Info *v116.ScheduleInfo + // The memo and search attributes that the schedule was created with. + Memo *v13.Memo + SearchAttributes *v13.SearchAttributes + // This value can be passed back to UpdateSchedule to ensure that the + // schedule was not modified between a Describe and an Update, which could + // lead to lost updates and other confusion. + ConflictToken []byte +} + +func (b0 DescribeScheduleResponse_builder) Build() *DescribeScheduleResponse { + m0 := &DescribeScheduleResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Schedule = b.Schedule + x.Info = b.Info + x.Memo = b.Memo + x.SearchAttributes = b.SearchAttributes + x.ConflictToken = b.ConflictToken + return m0 +} + type UpdateScheduleRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The namespace of the schedule to update. Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // The id of the schedule to update. @@ -7218,11 +12862,6 @@ func (x *UpdateScheduleRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UpdateScheduleRequest.ProtoReflect.Descriptor instead. -func (*UpdateScheduleRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{88} -} - func (x *UpdateScheduleRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -7230,50 +12869,144 @@ func (x *UpdateScheduleRequest) GetNamespace() string { return "" } -func (x *UpdateScheduleRequest) GetScheduleId() string { - if x != nil { - return x.ScheduleId +func (x *UpdateScheduleRequest) GetScheduleId() string { + if x != nil { + return x.ScheduleId + } + return "" +} + +func (x *UpdateScheduleRequest) GetSchedule() *v116.Schedule { + if x != nil { + return x.Schedule + } + return nil +} + +func (x *UpdateScheduleRequest) GetConflictToken() []byte { + if x != nil { + return x.ConflictToken + } + return nil +} + +func (x *UpdateScheduleRequest) GetIdentity() string { + if x != nil { + return x.Identity + } + return "" +} + +func (x *UpdateScheduleRequest) GetRequestId() string { + if x != nil { + return x.RequestId + } + return "" +} + +func (x *UpdateScheduleRequest) GetSearchAttributes() *v13.SearchAttributes { + if x != nil { + return x.SearchAttributes + } + return nil +} + +func (x *UpdateScheduleRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *UpdateScheduleRequest) SetScheduleId(v string) { + x.ScheduleId = v +} + +func (x *UpdateScheduleRequest) SetSchedule(v *v116.Schedule) { + x.Schedule = v +} + +func (x *UpdateScheduleRequest) SetConflictToken(v []byte) { + if v == nil { + v = []byte{} + } + x.ConflictToken = v +} + +func (x *UpdateScheduleRequest) SetIdentity(v string) { + x.Identity = v +} + +func (x *UpdateScheduleRequest) SetRequestId(v string) { + x.RequestId = v +} + +func (x *UpdateScheduleRequest) SetSearchAttributes(v *v13.SearchAttributes) { + x.SearchAttributes = v +} + +func (x *UpdateScheduleRequest) HasSchedule() bool { + if x == nil { + return false } - return "" + return x.Schedule != nil } -func (x *UpdateScheduleRequest) GetSchedule() *v116.Schedule { - if x != nil { - return x.Schedule +func (x *UpdateScheduleRequest) HasSearchAttributes() bool { + if x == nil { + return false } - return nil + return x.SearchAttributes != nil } -func (x *UpdateScheduleRequest) GetConflictToken() []byte { - if x != nil { - return x.ConflictToken - } - return nil +func (x *UpdateScheduleRequest) ClearSchedule() { + x.Schedule = nil } -func (x *UpdateScheduleRequest) GetIdentity() string { - if x != nil { - return x.Identity - } - return "" +func (x *UpdateScheduleRequest) ClearSearchAttributes() { + x.SearchAttributes = nil } -func (x *UpdateScheduleRequest) GetRequestId() string { - if x != nil { - return x.RequestId - } - return "" +type UpdateScheduleRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The namespace of the schedule to update. + Namespace string + // The id of the schedule to update. + ScheduleId string + // The new schedule. The four main fields of the schedule (spec, action, + // policies, state) are replaced completely by the values in this message. + Schedule *v116.Schedule + // This can be the value of conflict_token from a DescribeScheduleResponse, + // which will cause this request to fail if the schedule has been modified + // between the Describe and this Update. + // If missing, the schedule will be updated unconditionally. + ConflictToken []byte + // The identity of the client who initiated this request. + Identity string + // A unique identifier for this update request for idempotence. Typically UUIDv4. + RequestId string + // Schedule search attributes to be updated. + // Do not set this field if you do not want to update the search attributes. + // A non-null empty object will set the search attributes to an empty map. + // Note: you cannot only update the search attributes with `UpdateScheduleRequest`, + // you must also set the `schedule` field; otherwise, it will unset the schedule. + SearchAttributes *v13.SearchAttributes } -func (x *UpdateScheduleRequest) GetSearchAttributes() *v13.SearchAttributes { - if x != nil { - return x.SearchAttributes - } - return nil +func (b0 UpdateScheduleRequest_builder) Build() *UpdateScheduleRequest { + m0 := &UpdateScheduleRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.ScheduleId = b.ScheduleId + x.Schedule = b.Schedule + x.ConflictToken = b.ConflictToken + x.Identity = b.Identity + x.RequestId = b.RequestId + x.SearchAttributes = b.SearchAttributes + return m0 } type UpdateScheduleResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -7303,13 +13036,20 @@ func (x *UpdateScheduleResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UpdateScheduleResponse.ProtoReflect.Descriptor instead. -func (*UpdateScheduleResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{89} +type UpdateScheduleResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 UpdateScheduleResponse_builder) Build() *UpdateScheduleResponse { + m0 := &UpdateScheduleResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type PatchScheduleRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The namespace of the schedule to patch. Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // The id of the schedule to patch. @@ -7348,11 +13088,6 @@ func (x *PatchScheduleRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PatchScheduleRequest.ProtoReflect.Descriptor instead. -func (*PatchScheduleRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{90} -} - func (x *PatchScheduleRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -7388,8 +13123,65 @@ func (x *PatchScheduleRequest) GetRequestId() string { return "" } +func (x *PatchScheduleRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *PatchScheduleRequest) SetScheduleId(v string) { + x.ScheduleId = v +} + +func (x *PatchScheduleRequest) SetPatch(v *v116.SchedulePatch) { + x.Patch = v +} + +func (x *PatchScheduleRequest) SetIdentity(v string) { + x.Identity = v +} + +func (x *PatchScheduleRequest) SetRequestId(v string) { + x.RequestId = v +} + +func (x *PatchScheduleRequest) HasPatch() bool { + if x == nil { + return false + } + return x.Patch != nil +} + +func (x *PatchScheduleRequest) ClearPatch() { + x.Patch = nil +} + +type PatchScheduleRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The namespace of the schedule to patch. + Namespace string + // The id of the schedule to patch. + ScheduleId string + Patch *v116.SchedulePatch + // The identity of the client who initiated this request. + Identity string + // A unique identifier for this update request for idempotence. Typically UUIDv4. + RequestId string +} + +func (b0 PatchScheduleRequest_builder) Build() *PatchScheduleRequest { + m0 := &PatchScheduleRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.ScheduleId = b.ScheduleId + x.Patch = b.Patch + x.Identity = b.Identity + x.RequestId = b.RequestId + return m0 +} + type PatchScheduleResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -7419,13 +13211,20 @@ func (x *PatchScheduleResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PatchScheduleResponse.ProtoReflect.Descriptor instead. -func (*PatchScheduleResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{91} +type PatchScheduleResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 PatchScheduleResponse_builder) Build() *PatchScheduleResponse { + m0 := &PatchScheduleResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type ListScheduleMatchingTimesRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The namespace of the schedule to query. Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // The id of the schedule to query. @@ -7462,11 +13261,6 @@ func (x *ListScheduleMatchingTimesRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListScheduleMatchingTimesRequest.ProtoReflect.Descriptor instead. -func (*ListScheduleMatchingTimesRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{92} -} - func (x *ListScheduleMatchingTimesRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -7495,8 +13289,69 @@ func (x *ListScheduleMatchingTimesRequest) GetEndTime() *timestamppb.Timestamp { return nil } +func (x *ListScheduleMatchingTimesRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *ListScheduleMatchingTimesRequest) SetScheduleId(v string) { + x.ScheduleId = v +} + +func (x *ListScheduleMatchingTimesRequest) SetStartTime(v *timestamppb.Timestamp) { + x.StartTime = v +} + +func (x *ListScheduleMatchingTimesRequest) SetEndTime(v *timestamppb.Timestamp) { + x.EndTime = v +} + +func (x *ListScheduleMatchingTimesRequest) HasStartTime() bool { + if x == nil { + return false + } + return x.StartTime != nil +} + +func (x *ListScheduleMatchingTimesRequest) HasEndTime() bool { + if x == nil { + return false + } + return x.EndTime != nil +} + +func (x *ListScheduleMatchingTimesRequest) ClearStartTime() { + x.StartTime = nil +} + +func (x *ListScheduleMatchingTimesRequest) ClearEndTime() { + x.EndTime = nil +} + +type ListScheduleMatchingTimesRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The namespace of the schedule to query. + Namespace string + // The id of the schedule to query. + ScheduleId string + // Time range to query. + StartTime *timestamppb.Timestamp + EndTime *timestamppb.Timestamp +} + +func (b0 ListScheduleMatchingTimesRequest_builder) Build() *ListScheduleMatchingTimesRequest { + m0 := &ListScheduleMatchingTimesRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.ScheduleId = b.ScheduleId + x.StartTime = b.StartTime + x.EndTime = b.EndTime + return m0 +} + type ListScheduleMatchingTimesResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` StartTime []*timestamppb.Timestamp `protobuf:"bytes,1,rep,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -7527,11 +13382,6 @@ func (x *ListScheduleMatchingTimesResponse) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use ListScheduleMatchingTimesResponse.ProtoReflect.Descriptor instead. -func (*ListScheduleMatchingTimesResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{93} -} - func (x *ListScheduleMatchingTimesResponse) GetStartTime() []*timestamppb.Timestamp { if x != nil { return x.StartTime @@ -7539,8 +13389,26 @@ func (x *ListScheduleMatchingTimesResponse) GetStartTime() []*timestamppb.Timest return nil } +func (x *ListScheduleMatchingTimesResponse) SetStartTime(v []*timestamppb.Timestamp) { + x.StartTime = v +} + +type ListScheduleMatchingTimesResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + StartTime []*timestamppb.Timestamp +} + +func (b0 ListScheduleMatchingTimesResponse_builder) Build() *ListScheduleMatchingTimesResponse { + m0 := &ListScheduleMatchingTimesResponse{} + b, x := &b0, m0 + _, _ = b, x + x.StartTime = b.StartTime + return m0 +} + type DeleteScheduleRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The namespace of the schedule to delete. Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // The id of the schedule to delete. @@ -7576,11 +13444,6 @@ func (x *DeleteScheduleRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeleteScheduleRequest.ProtoReflect.Descriptor instead. -func (*DeleteScheduleRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{94} -} - func (x *DeleteScheduleRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -7602,8 +13465,41 @@ func (x *DeleteScheduleRequest) GetIdentity() string { return "" } +func (x *DeleteScheduleRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *DeleteScheduleRequest) SetScheduleId(v string) { + x.ScheduleId = v +} + +func (x *DeleteScheduleRequest) SetIdentity(v string) { + x.Identity = v +} + +type DeleteScheduleRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The namespace of the schedule to delete. + Namespace string + // The id of the schedule to delete. + ScheduleId string + // The identity of the client who initiated this request. + Identity string +} + +func (b0 DeleteScheduleRequest_builder) Build() *DeleteScheduleRequest { + m0 := &DeleteScheduleRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.ScheduleId = b.ScheduleId + x.Identity = b.Identity + return m0 +} + type DeleteScheduleResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -7633,13 +13529,20 @@ func (x *DeleteScheduleResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeleteScheduleResponse.ProtoReflect.Descriptor instead. -func (*DeleteScheduleResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{95} +type DeleteScheduleResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 DeleteScheduleResponse_builder) Build() *DeleteScheduleResponse { + m0 := &DeleteScheduleResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type ListSchedulesRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The namespace to list schedules in. Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // How many to return at once. @@ -7677,11 +13580,6 @@ func (x *ListSchedulesRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListSchedulesRequest.ProtoReflect.Descriptor instead. -func (*ListSchedulesRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{96} -} - func (x *ListSchedulesRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -7710,8 +13608,51 @@ func (x *ListSchedulesRequest) GetQuery() string { return "" } +func (x *ListSchedulesRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *ListSchedulesRequest) SetMaximumPageSize(v int32) { + x.MaximumPageSize = v +} + +func (x *ListSchedulesRequest) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.NextPageToken = v +} + +func (x *ListSchedulesRequest) SetQuery(v string) { + x.Query = v +} + +type ListSchedulesRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The namespace to list schedules in. + Namespace string + // How many to return at once. + MaximumPageSize int32 + // Token to get the next page of results. + NextPageToken []byte + // Query to filter schedules. + Query string +} + +func (b0 ListSchedulesRequest_builder) Build() *ListSchedulesRequest { + m0 := &ListSchedulesRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.MaximumPageSize = b.MaximumPageSize + x.NextPageToken = b.NextPageToken + x.Query = b.Query + return m0 +} + type ListSchedulesResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Schedules []*v116.ScheduleListEntry `protobuf:"bytes,1,rep,name=schedules,proto3" json:"schedules,omitempty"` NextPageToken []byte `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` unknownFields protoimpl.UnknownFields @@ -7743,11 +13684,6 @@ func (x *ListSchedulesResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListSchedulesResponse.ProtoReflect.Descriptor instead. -func (*ListSchedulesResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{97} -} - func (x *ListSchedulesResponse) GetSchedules() []*v116.ScheduleListEntry { if x != nil { return x.Schedules @@ -7762,9 +13698,36 @@ func (x *ListSchedulesResponse) GetNextPageToken() []byte { return nil } +func (x *ListSchedulesResponse) SetSchedules(v []*v116.ScheduleListEntry) { + x.Schedules = v +} + +func (x *ListSchedulesResponse) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.NextPageToken = v +} + +type ListSchedulesResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Schedules []*v116.ScheduleListEntry + NextPageToken []byte +} + +func (b0 ListSchedulesResponse_builder) Build() *ListSchedulesResponse { + m0 := &ListSchedulesResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Schedules = b.Schedules + x.NextPageToken = b.NextPageToken + return m0 +} + // [cleanup-wv-pre-release] type UpdateWorkerBuildIdCompatibilityRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // Must be set, the task queue to apply changes to. Because all workers on a given task queue // must have the same set of workflow & activity implementations, there is no reason to specify @@ -7807,11 +13770,6 @@ func (x *UpdateWorkerBuildIdCompatibilityRequest) ProtoReflect() protoreflect.Me return mi.MessageOf(x) } -// Deprecated: Use UpdateWorkerBuildIdCompatibilityRequest.ProtoReflect.Descriptor instead. -func (*UpdateWorkerBuildIdCompatibilityRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{98} -} - func (x *UpdateWorkerBuildIdCompatibilityRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -7826,63 +13784,211 @@ func (x *UpdateWorkerBuildIdCompatibilityRequest) GetTaskQueue() string { return "" } -func (x *UpdateWorkerBuildIdCompatibilityRequest) GetOperation() isUpdateWorkerBuildIdCompatibilityRequest_Operation { - if x != nil { - return x.Operation +func (x *UpdateWorkerBuildIdCompatibilityRequest) GetOperation() isUpdateWorkerBuildIdCompatibilityRequest_Operation { + if x != nil { + return x.Operation + } + return nil +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest) GetAddNewBuildIdInNewDefaultSet() string { + if x != nil { + if x, ok := x.Operation.(*UpdateWorkerBuildIdCompatibilityRequest_AddNewBuildIdInNewDefaultSet); ok { + return x.AddNewBuildIdInNewDefaultSet + } + } + return "" +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest) GetAddNewCompatibleBuildId() *UpdateWorkerBuildIdCompatibilityRequest_AddNewCompatibleVersion { + if x != nil { + if x, ok := x.Operation.(*UpdateWorkerBuildIdCompatibilityRequest_AddNewCompatibleBuildId); ok { + return x.AddNewCompatibleBuildId + } + } + return nil +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest) GetPromoteSetByBuildId() string { + if x != nil { + if x, ok := x.Operation.(*UpdateWorkerBuildIdCompatibilityRequest_PromoteSetByBuildId); ok { + return x.PromoteSetByBuildId + } + } + return "" +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest) GetPromoteBuildIdWithinSet() string { + if x != nil { + if x, ok := x.Operation.(*UpdateWorkerBuildIdCompatibilityRequest_PromoteBuildIdWithinSet); ok { + return x.PromoteBuildIdWithinSet + } + } + return "" +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest) GetMergeSets() *UpdateWorkerBuildIdCompatibilityRequest_MergeSets { + if x != nil { + if x, ok := x.Operation.(*UpdateWorkerBuildIdCompatibilityRequest_MergeSets_); ok { + return x.MergeSets + } + } + return nil +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest) SetTaskQueue(v string) { + x.TaskQueue = v +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest) SetAddNewBuildIdInNewDefaultSet(v string) { + x.Operation = &UpdateWorkerBuildIdCompatibilityRequest_AddNewBuildIdInNewDefaultSet{v} +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest) SetAddNewCompatibleBuildId(v *UpdateWorkerBuildIdCompatibilityRequest_AddNewCompatibleVersion) { + if v == nil { + x.Operation = nil + return + } + x.Operation = &UpdateWorkerBuildIdCompatibilityRequest_AddNewCompatibleBuildId{v} +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest) SetPromoteSetByBuildId(v string) { + x.Operation = &UpdateWorkerBuildIdCompatibilityRequest_PromoteSetByBuildId{v} +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest) SetPromoteBuildIdWithinSet(v string) { + x.Operation = &UpdateWorkerBuildIdCompatibilityRequest_PromoteBuildIdWithinSet{v} +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest) SetMergeSets(v *UpdateWorkerBuildIdCompatibilityRequest_MergeSets) { + if v == nil { + x.Operation = nil + return + } + x.Operation = &UpdateWorkerBuildIdCompatibilityRequest_MergeSets_{v} +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest) HasOperation() bool { + if x == nil { + return false + } + return x.Operation != nil +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest) HasAddNewBuildIdInNewDefaultSet() bool { + if x == nil { + return false + } + _, ok := x.Operation.(*UpdateWorkerBuildIdCompatibilityRequest_AddNewBuildIdInNewDefaultSet) + return ok +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest) HasAddNewCompatibleBuildId() bool { + if x == nil { + return false + } + _, ok := x.Operation.(*UpdateWorkerBuildIdCompatibilityRequest_AddNewCompatibleBuildId) + return ok +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest) HasPromoteSetByBuildId() bool { + if x == nil { + return false + } + _, ok := x.Operation.(*UpdateWorkerBuildIdCompatibilityRequest_PromoteSetByBuildId) + return ok +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest) HasPromoteBuildIdWithinSet() bool { + if x == nil { + return false + } + _, ok := x.Operation.(*UpdateWorkerBuildIdCompatibilityRequest_PromoteBuildIdWithinSet) + return ok +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest) HasMergeSets() bool { + if x == nil { + return false + } + _, ok := x.Operation.(*UpdateWorkerBuildIdCompatibilityRequest_MergeSets_) + return ok +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest) ClearOperation() { + x.Operation = nil +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest) ClearAddNewBuildIdInNewDefaultSet() { + if _, ok := x.Operation.(*UpdateWorkerBuildIdCompatibilityRequest_AddNewBuildIdInNewDefaultSet); ok { + x.Operation = nil } - return nil } -func (x *UpdateWorkerBuildIdCompatibilityRequest) GetAddNewBuildIdInNewDefaultSet() string { - if x != nil { - if x, ok := x.Operation.(*UpdateWorkerBuildIdCompatibilityRequest_AddNewBuildIdInNewDefaultSet); ok { - return x.AddNewBuildIdInNewDefaultSet - } +func (x *UpdateWorkerBuildIdCompatibilityRequest) ClearAddNewCompatibleBuildId() { + if _, ok := x.Operation.(*UpdateWorkerBuildIdCompatibilityRequest_AddNewCompatibleBuildId); ok { + x.Operation = nil } - return "" } -func (x *UpdateWorkerBuildIdCompatibilityRequest) GetAddNewCompatibleBuildId() *UpdateWorkerBuildIdCompatibilityRequest_AddNewCompatibleVersion { - if x != nil { - if x, ok := x.Operation.(*UpdateWorkerBuildIdCompatibilityRequest_AddNewCompatibleBuildId); ok { - return x.AddNewCompatibleBuildId - } +func (x *UpdateWorkerBuildIdCompatibilityRequest) ClearPromoteSetByBuildId() { + if _, ok := x.Operation.(*UpdateWorkerBuildIdCompatibilityRequest_PromoteSetByBuildId); ok { + x.Operation = nil } - return nil } -func (x *UpdateWorkerBuildIdCompatibilityRequest) GetPromoteSetByBuildId() string { - if x != nil { - if x, ok := x.Operation.(*UpdateWorkerBuildIdCompatibilityRequest_PromoteSetByBuildId); ok { - return x.PromoteSetByBuildId - } +func (x *UpdateWorkerBuildIdCompatibilityRequest) ClearPromoteBuildIdWithinSet() { + if _, ok := x.Operation.(*UpdateWorkerBuildIdCompatibilityRequest_PromoteBuildIdWithinSet); ok { + x.Operation = nil } - return "" } -func (x *UpdateWorkerBuildIdCompatibilityRequest) GetPromoteBuildIdWithinSet() string { - if x != nil { - if x, ok := x.Operation.(*UpdateWorkerBuildIdCompatibilityRequest_PromoteBuildIdWithinSet); ok { - return x.PromoteBuildIdWithinSet - } +func (x *UpdateWorkerBuildIdCompatibilityRequest) ClearMergeSets() { + if _, ok := x.Operation.(*UpdateWorkerBuildIdCompatibilityRequest_MergeSets_); ok { + x.Operation = nil } - return "" } -func (x *UpdateWorkerBuildIdCompatibilityRequest) GetMergeSets() *UpdateWorkerBuildIdCompatibilityRequest_MergeSets { - if x != nil { - if x, ok := x.Operation.(*UpdateWorkerBuildIdCompatibilityRequest_MergeSets_); ok { - return x.MergeSets - } +const UpdateWorkerBuildIdCompatibilityRequest_Operation_not_set_case case_UpdateWorkerBuildIdCompatibilityRequest_Operation = 0 +const UpdateWorkerBuildIdCompatibilityRequest_AddNewBuildIdInNewDefaultSet_case case_UpdateWorkerBuildIdCompatibilityRequest_Operation = 3 +const UpdateWorkerBuildIdCompatibilityRequest_AddNewCompatibleBuildId_case case_UpdateWorkerBuildIdCompatibilityRequest_Operation = 4 +const UpdateWorkerBuildIdCompatibilityRequest_PromoteSetByBuildId_case case_UpdateWorkerBuildIdCompatibilityRequest_Operation = 5 +const UpdateWorkerBuildIdCompatibilityRequest_PromoteBuildIdWithinSet_case case_UpdateWorkerBuildIdCompatibilityRequest_Operation = 6 +const UpdateWorkerBuildIdCompatibilityRequest_MergeSets_case case_UpdateWorkerBuildIdCompatibilityRequest_Operation = 7 + +func (x *UpdateWorkerBuildIdCompatibilityRequest) WhichOperation() case_UpdateWorkerBuildIdCompatibilityRequest_Operation { + if x == nil { + return UpdateWorkerBuildIdCompatibilityRequest_Operation_not_set_case + } + switch x.Operation.(type) { + case *UpdateWorkerBuildIdCompatibilityRequest_AddNewBuildIdInNewDefaultSet: + return UpdateWorkerBuildIdCompatibilityRequest_AddNewBuildIdInNewDefaultSet_case + case *UpdateWorkerBuildIdCompatibilityRequest_AddNewCompatibleBuildId: + return UpdateWorkerBuildIdCompatibilityRequest_AddNewCompatibleBuildId_case + case *UpdateWorkerBuildIdCompatibilityRequest_PromoteSetByBuildId: + return UpdateWorkerBuildIdCompatibilityRequest_PromoteSetByBuildId_case + case *UpdateWorkerBuildIdCompatibilityRequest_PromoteBuildIdWithinSet: + return UpdateWorkerBuildIdCompatibilityRequest_PromoteBuildIdWithinSet_case + case *UpdateWorkerBuildIdCompatibilityRequest_MergeSets_: + return UpdateWorkerBuildIdCompatibilityRequest_MergeSets_case + default: + return UpdateWorkerBuildIdCompatibilityRequest_Operation_not_set_case } - return nil } -type isUpdateWorkerBuildIdCompatibilityRequest_Operation interface { - isUpdateWorkerBuildIdCompatibilityRequest_Operation() -} +type UpdateWorkerBuildIdCompatibilityRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. -type UpdateWorkerBuildIdCompatibilityRequest_AddNewBuildIdInNewDefaultSet struct { + Namespace string + // Must be set, the task queue to apply changes to. Because all workers on a given task queue + // must have the same set of workflow & activity implementations, there is no reason to specify + // a task queue type here. + TaskQueue string + // Fields of oneof Operation: // A new build id. This operation will create a new set which will be the new overall // default version for the queue, with this id as its only member. This new set is // incompatible with all previous sets/versions. @@ -7890,6 +13996,90 @@ type UpdateWorkerBuildIdCompatibilityRequest_AddNewBuildIdInNewDefaultSet struct // (-- api-linter: core::0140::prepositions=disabled // // aip.dev/not-precedent: In makes perfect sense here. --) + AddNewBuildIdInNewDefaultSet *string + // Adds a new id to an existing compatible set, see sub-message definition for more. + AddNewCompatibleBuildId *UpdateWorkerBuildIdCompatibilityRequest_AddNewCompatibleVersion + // Promote an existing set to be the current default (if it isn't already) by targeting + // an existing build id within it. This field's value is the extant build id. + // + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: Names are hard. --) + PromoteSetByBuildId *string + // Promote an existing build id within some set to be the current default for that set. + // + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: Within makes perfect sense here. --) + PromoteBuildIdWithinSet *string + // Merge two existing sets together, thus declaring all build IDs in both sets compatible + // with one another. The primary set's default will become the default for the merged set. + // This is useful if you've accidentally declared a new ID as incompatible you meant to + // declare as compatible. The unusual case of incomplete replication during failover could + // also result in a split set, which this operation can repair. + MergeSets *UpdateWorkerBuildIdCompatibilityRequest_MergeSets + // -- end of Operation +} + +func (b0 UpdateWorkerBuildIdCompatibilityRequest_builder) Build() *UpdateWorkerBuildIdCompatibilityRequest { + m0 := &UpdateWorkerBuildIdCompatibilityRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.TaskQueue = b.TaskQueue + if b.AddNewBuildIdInNewDefaultSet != nil { + x.Operation = &UpdateWorkerBuildIdCompatibilityRequest_AddNewBuildIdInNewDefaultSet{*b.AddNewBuildIdInNewDefaultSet} + } + if b.AddNewCompatibleBuildId != nil { + x.Operation = &UpdateWorkerBuildIdCompatibilityRequest_AddNewCompatibleBuildId{b.AddNewCompatibleBuildId} + } + if b.PromoteSetByBuildId != nil { + x.Operation = &UpdateWorkerBuildIdCompatibilityRequest_PromoteSetByBuildId{*b.PromoteSetByBuildId} + } + if b.PromoteBuildIdWithinSet != nil { + x.Operation = &UpdateWorkerBuildIdCompatibilityRequest_PromoteBuildIdWithinSet{*b.PromoteBuildIdWithinSet} + } + if b.MergeSets != nil { + x.Operation = &UpdateWorkerBuildIdCompatibilityRequest_MergeSets_{b.MergeSets} + } + return m0 +} + +type case_UpdateWorkerBuildIdCompatibilityRequest_Operation protoreflect.FieldNumber + +func (x case_UpdateWorkerBuildIdCompatibilityRequest_Operation) String() string { + switch x { + case UpdateWorkerBuildIdCompatibilityRequest_Operation_not_set_case: + return "UpdateWorkerBuildIdCompatibilityRequestOperationNotSetCase" + case UpdateWorkerBuildIdCompatibilityRequest_AddNewBuildIdInNewDefaultSet_case: + return "UpdateWorkerBuildIdCompatibilityRequestAddNewBuildIdInNewDefaultSetCase" + case UpdateWorkerBuildIdCompatibilityRequest_AddNewCompatibleBuildId_case: + return "UpdateWorkerBuildIdCompatibilityRequestAddNewCompatibleBuildIdCase" + + // A new build id. This operation will create a new set which will be the new overall + // default version for the queue, with this id as its only member. This new set is + // incompatible with all previous sets/versions. + // + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: In makes perfect sense here. --) + case UpdateWorkerBuildIdCompatibilityRequest_PromoteSetByBuildId_case: + return "UpdateWorkerBuildIdCompatibilityRequestPromoteSetByBuildIdCase" + case UpdateWorkerBuildIdCompatibilityRequest_PromoteBuildIdWithinSet_case: + return "UpdateWorkerBuildIdCompatibilityRequestPromoteBuildIdWithinSetCase" + case UpdateWorkerBuildIdCompatibilityRequest_MergeSets_case: + return "UpdateWorkerBuildIdCompatibilityRequestMergeSetsCase" + default: + return strconv.Itoa(int(x)) + } + +} + +type isUpdateWorkerBuildIdCompatibilityRequest_Operation interface { + isUpdateWorkerBuildIdCompatibilityRequest_Operation() +} + +type UpdateWorkerBuildIdCompatibilityRequest_AddNewBuildIdInNewDefaultSet struct { AddNewBuildIdInNewDefaultSet string `protobuf:"bytes,3,opt,name=add_new_build_id_in_new_default_set,json=addNewBuildIdInNewDefaultSet,proto3,oneof"` } @@ -7943,7 +14133,7 @@ func (*UpdateWorkerBuildIdCompatibilityRequest_MergeSets_) isUpdateWorkerBuildId // [cleanup-wv-pre-release] type UpdateWorkerBuildIdCompatibilityResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -7973,14 +14163,21 @@ func (x *UpdateWorkerBuildIdCompatibilityResponse) ProtoReflect() protoreflect.M return mi.MessageOf(x) } -// Deprecated: Use UpdateWorkerBuildIdCompatibilityResponse.ProtoReflect.Descriptor instead. -func (*UpdateWorkerBuildIdCompatibilityResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{99} +type UpdateWorkerBuildIdCompatibilityResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 UpdateWorkerBuildIdCompatibilityResponse_builder) Build() *UpdateWorkerBuildIdCompatibilityResponse { + m0 := &UpdateWorkerBuildIdCompatibilityResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } // [cleanup-wv-pre-release] type GetWorkerBuildIdCompatibilityRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // Must be set, the task queue to interrogate about worker id compatibility. TaskQueue string `protobuf:"bytes,2,opt,name=task_queue,json=taskQueue,proto3" json:"task_queue,omitempty"` @@ -8016,11 +14213,6 @@ func (x *GetWorkerBuildIdCompatibilityRequest) ProtoReflect() protoreflect.Messa return mi.MessageOf(x) } -// Deprecated: Use GetWorkerBuildIdCompatibilityRequest.ProtoReflect.Descriptor instead. -func (*GetWorkerBuildIdCompatibilityRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{100} -} - func (x *GetWorkerBuildIdCompatibilityRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -8042,9 +14234,42 @@ func (x *GetWorkerBuildIdCompatibilityRequest) GetMaxSets() int32 { return 0 } +func (x *GetWorkerBuildIdCompatibilityRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *GetWorkerBuildIdCompatibilityRequest) SetTaskQueue(v string) { + x.TaskQueue = v +} + +func (x *GetWorkerBuildIdCompatibilityRequest) SetMaxSets(v int32) { + x.MaxSets = v +} + +type GetWorkerBuildIdCompatibilityRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + // Must be set, the task queue to interrogate about worker id compatibility. + TaskQueue string + // Limits how many compatible sets will be returned. Specify 1 to only return the current + // default major version set. 0 returns all sets. + MaxSets int32 +} + +func (b0 GetWorkerBuildIdCompatibilityRequest_builder) Build() *GetWorkerBuildIdCompatibilityRequest { + m0 := &GetWorkerBuildIdCompatibilityRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.TaskQueue = b.TaskQueue + x.MaxSets = b.MaxSets + return m0 +} + // [cleanup-wv-pre-release] type GetWorkerBuildIdCompatibilityResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Major version sets, in order from oldest to newest. The last element of the list will always // be the current default major version. IE: New workflows will target the most recent version // in that version set. @@ -8080,11 +14305,6 @@ func (x *GetWorkerBuildIdCompatibilityResponse) ProtoReflect() protoreflect.Mess return mi.MessageOf(x) } -// Deprecated: Use GetWorkerBuildIdCompatibilityResponse.ProtoReflect.Descriptor instead. -func (*GetWorkerBuildIdCompatibilityResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{101} -} - func (x *GetWorkerBuildIdCompatibilityResponse) GetMajorVersionSets() []*v14.CompatibleVersionSet { if x != nil { return x.MajorVersionSets @@ -8092,6 +14312,29 @@ func (x *GetWorkerBuildIdCompatibilityResponse) GetMajorVersionSets() []*v14.Com return nil } +func (x *GetWorkerBuildIdCompatibilityResponse) SetMajorVersionSets(v []*v14.CompatibleVersionSet) { + x.MajorVersionSets = v +} + +type GetWorkerBuildIdCompatibilityResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Major version sets, in order from oldest to newest. The last element of the list will always + // be the current default major version. IE: New workflows will target the most recent version + // in that version set. + // + // There may be fewer sets returned than exist, if the request chose to limit this response. + MajorVersionSets []*v14.CompatibleVersionSet +} + +func (b0 GetWorkerBuildIdCompatibilityResponse_builder) Build() *GetWorkerBuildIdCompatibilityResponse { + m0 := &GetWorkerBuildIdCompatibilityResponse{} + b, x := &b0, m0 + _, _ = b, x + x.MajorVersionSets = b.MajorVersionSets + return m0 +} + // (-- api-linter: core::0134::request-mask-required=disabled // // aip.dev/not-precedent: UpdateNamespace RPC doesn't follow Google API format. --) @@ -8102,7 +14345,7 @@ func (x *GetWorkerBuildIdCompatibilityResponse) GetMajorVersionSets() []*v14.Com // // [cleanup-wv-pre-release] type UpdateWorkerVersioningRulesRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` TaskQueue string `protobuf:"bytes,2,opt,name=task_queue,json=taskQueue,proto3" json:"task_queue,omitempty"` // A valid conflict_token can be taken from the previous @@ -8150,11 +14393,6 @@ func (x *UpdateWorkerVersioningRulesRequest) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use UpdateWorkerVersioningRulesRequest.ProtoReflect.Descriptor instead. -func (*UpdateWorkerVersioningRulesRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{102} -} - func (x *UpdateWorkerVersioningRulesRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -8246,6 +14484,298 @@ func (x *UpdateWorkerVersioningRulesRequest) GetCommitBuildId() *UpdateWorkerVer return nil } +func (x *UpdateWorkerVersioningRulesRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *UpdateWorkerVersioningRulesRequest) SetTaskQueue(v string) { + x.TaskQueue = v +} + +func (x *UpdateWorkerVersioningRulesRequest) SetConflictToken(v []byte) { + if v == nil { + v = []byte{} + } + x.ConflictToken = v +} + +func (x *UpdateWorkerVersioningRulesRequest) SetInsertAssignmentRule(v *UpdateWorkerVersioningRulesRequest_InsertBuildIdAssignmentRule) { + if v == nil { + x.Operation = nil + return + } + x.Operation = &UpdateWorkerVersioningRulesRequest_InsertAssignmentRule{v} +} + +func (x *UpdateWorkerVersioningRulesRequest) SetReplaceAssignmentRule(v *UpdateWorkerVersioningRulesRequest_ReplaceBuildIdAssignmentRule) { + if v == nil { + x.Operation = nil + return + } + x.Operation = &UpdateWorkerVersioningRulesRequest_ReplaceAssignmentRule{v} +} + +func (x *UpdateWorkerVersioningRulesRequest) SetDeleteAssignmentRule(v *UpdateWorkerVersioningRulesRequest_DeleteBuildIdAssignmentRule) { + if v == nil { + x.Operation = nil + return + } + x.Operation = &UpdateWorkerVersioningRulesRequest_DeleteAssignmentRule{v} +} + +func (x *UpdateWorkerVersioningRulesRequest) SetAddCompatibleRedirectRule(v *UpdateWorkerVersioningRulesRequest_AddCompatibleBuildIdRedirectRule) { + if v == nil { + x.Operation = nil + return + } + x.Operation = &UpdateWorkerVersioningRulesRequest_AddCompatibleRedirectRule{v} +} + +func (x *UpdateWorkerVersioningRulesRequest) SetReplaceCompatibleRedirectRule(v *UpdateWorkerVersioningRulesRequest_ReplaceCompatibleBuildIdRedirectRule) { + if v == nil { + x.Operation = nil + return + } + x.Operation = &UpdateWorkerVersioningRulesRequest_ReplaceCompatibleRedirectRule{v} +} + +func (x *UpdateWorkerVersioningRulesRequest) SetDeleteCompatibleRedirectRule(v *UpdateWorkerVersioningRulesRequest_DeleteCompatibleBuildIdRedirectRule) { + if v == nil { + x.Operation = nil + return + } + x.Operation = &UpdateWorkerVersioningRulesRequest_DeleteCompatibleRedirectRule{v} +} + +func (x *UpdateWorkerVersioningRulesRequest) SetCommitBuildId(v *UpdateWorkerVersioningRulesRequest_CommitBuildId) { + if v == nil { + x.Operation = nil + return + } + x.Operation = &UpdateWorkerVersioningRulesRequest_CommitBuildId_{v} +} + +func (x *UpdateWorkerVersioningRulesRequest) HasOperation() bool { + if x == nil { + return false + } + return x.Operation != nil +} + +func (x *UpdateWorkerVersioningRulesRequest) HasInsertAssignmentRule() bool { + if x == nil { + return false + } + _, ok := x.Operation.(*UpdateWorkerVersioningRulesRequest_InsertAssignmentRule) + return ok +} + +func (x *UpdateWorkerVersioningRulesRequest) HasReplaceAssignmentRule() bool { + if x == nil { + return false + } + _, ok := x.Operation.(*UpdateWorkerVersioningRulesRequest_ReplaceAssignmentRule) + return ok +} + +func (x *UpdateWorkerVersioningRulesRequest) HasDeleteAssignmentRule() bool { + if x == nil { + return false + } + _, ok := x.Operation.(*UpdateWorkerVersioningRulesRequest_DeleteAssignmentRule) + return ok +} + +func (x *UpdateWorkerVersioningRulesRequest) HasAddCompatibleRedirectRule() bool { + if x == nil { + return false + } + _, ok := x.Operation.(*UpdateWorkerVersioningRulesRequest_AddCompatibleRedirectRule) + return ok +} + +func (x *UpdateWorkerVersioningRulesRequest) HasReplaceCompatibleRedirectRule() bool { + if x == nil { + return false + } + _, ok := x.Operation.(*UpdateWorkerVersioningRulesRequest_ReplaceCompatibleRedirectRule) + return ok +} + +func (x *UpdateWorkerVersioningRulesRequest) HasDeleteCompatibleRedirectRule() bool { + if x == nil { + return false + } + _, ok := x.Operation.(*UpdateWorkerVersioningRulesRequest_DeleteCompatibleRedirectRule) + return ok +} + +func (x *UpdateWorkerVersioningRulesRequest) HasCommitBuildId() bool { + if x == nil { + return false + } + _, ok := x.Operation.(*UpdateWorkerVersioningRulesRequest_CommitBuildId_) + return ok +} + +func (x *UpdateWorkerVersioningRulesRequest) ClearOperation() { + x.Operation = nil +} + +func (x *UpdateWorkerVersioningRulesRequest) ClearInsertAssignmentRule() { + if _, ok := x.Operation.(*UpdateWorkerVersioningRulesRequest_InsertAssignmentRule); ok { + x.Operation = nil + } +} + +func (x *UpdateWorkerVersioningRulesRequest) ClearReplaceAssignmentRule() { + if _, ok := x.Operation.(*UpdateWorkerVersioningRulesRequest_ReplaceAssignmentRule); ok { + x.Operation = nil + } +} + +func (x *UpdateWorkerVersioningRulesRequest) ClearDeleteAssignmentRule() { + if _, ok := x.Operation.(*UpdateWorkerVersioningRulesRequest_DeleteAssignmentRule); ok { + x.Operation = nil + } +} + +func (x *UpdateWorkerVersioningRulesRequest) ClearAddCompatibleRedirectRule() { + if _, ok := x.Operation.(*UpdateWorkerVersioningRulesRequest_AddCompatibleRedirectRule); ok { + x.Operation = nil + } +} + +func (x *UpdateWorkerVersioningRulesRequest) ClearReplaceCompatibleRedirectRule() { + if _, ok := x.Operation.(*UpdateWorkerVersioningRulesRequest_ReplaceCompatibleRedirectRule); ok { + x.Operation = nil + } +} + +func (x *UpdateWorkerVersioningRulesRequest) ClearDeleteCompatibleRedirectRule() { + if _, ok := x.Operation.(*UpdateWorkerVersioningRulesRequest_DeleteCompatibleRedirectRule); ok { + x.Operation = nil + } +} + +func (x *UpdateWorkerVersioningRulesRequest) ClearCommitBuildId() { + if _, ok := x.Operation.(*UpdateWorkerVersioningRulesRequest_CommitBuildId_); ok { + x.Operation = nil + } +} + +const UpdateWorkerVersioningRulesRequest_Operation_not_set_case case_UpdateWorkerVersioningRulesRequest_Operation = 0 +const UpdateWorkerVersioningRulesRequest_InsertAssignmentRule_case case_UpdateWorkerVersioningRulesRequest_Operation = 4 +const UpdateWorkerVersioningRulesRequest_ReplaceAssignmentRule_case case_UpdateWorkerVersioningRulesRequest_Operation = 5 +const UpdateWorkerVersioningRulesRequest_DeleteAssignmentRule_case case_UpdateWorkerVersioningRulesRequest_Operation = 6 +const UpdateWorkerVersioningRulesRequest_AddCompatibleRedirectRule_case case_UpdateWorkerVersioningRulesRequest_Operation = 7 +const UpdateWorkerVersioningRulesRequest_ReplaceCompatibleRedirectRule_case case_UpdateWorkerVersioningRulesRequest_Operation = 8 +const UpdateWorkerVersioningRulesRequest_DeleteCompatibleRedirectRule_case case_UpdateWorkerVersioningRulesRequest_Operation = 9 +const UpdateWorkerVersioningRulesRequest_CommitBuildId_case case_UpdateWorkerVersioningRulesRequest_Operation = 10 + +func (x *UpdateWorkerVersioningRulesRequest) WhichOperation() case_UpdateWorkerVersioningRulesRequest_Operation { + if x == nil { + return UpdateWorkerVersioningRulesRequest_Operation_not_set_case + } + switch x.Operation.(type) { + case *UpdateWorkerVersioningRulesRequest_InsertAssignmentRule: + return UpdateWorkerVersioningRulesRequest_InsertAssignmentRule_case + case *UpdateWorkerVersioningRulesRequest_ReplaceAssignmentRule: + return UpdateWorkerVersioningRulesRequest_ReplaceAssignmentRule_case + case *UpdateWorkerVersioningRulesRequest_DeleteAssignmentRule: + return UpdateWorkerVersioningRulesRequest_DeleteAssignmentRule_case + case *UpdateWorkerVersioningRulesRequest_AddCompatibleRedirectRule: + return UpdateWorkerVersioningRulesRequest_AddCompatibleRedirectRule_case + case *UpdateWorkerVersioningRulesRequest_ReplaceCompatibleRedirectRule: + return UpdateWorkerVersioningRulesRequest_ReplaceCompatibleRedirectRule_case + case *UpdateWorkerVersioningRulesRequest_DeleteCompatibleRedirectRule: + return UpdateWorkerVersioningRulesRequest_DeleteCompatibleRedirectRule_case + case *UpdateWorkerVersioningRulesRequest_CommitBuildId_: + return UpdateWorkerVersioningRulesRequest_CommitBuildId_case + default: + return UpdateWorkerVersioningRulesRequest_Operation_not_set_case + } +} + +type UpdateWorkerVersioningRulesRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + TaskQueue string + // A valid conflict_token can be taken from the previous + // ListWorkerVersioningRulesResponse or UpdateWorkerVersioningRulesResponse. + // An invalid token will cause this request to fail, ensuring that if the rules + // for this Task Queue have been modified between the previous and current + // operation, the request will fail instead of causing an unpredictable mutation. + ConflictToken []byte + // Fields of oneof Operation: + InsertAssignmentRule *UpdateWorkerVersioningRulesRequest_InsertBuildIdAssignmentRule + ReplaceAssignmentRule *UpdateWorkerVersioningRulesRequest_ReplaceBuildIdAssignmentRule + DeleteAssignmentRule *UpdateWorkerVersioningRulesRequest_DeleteBuildIdAssignmentRule + AddCompatibleRedirectRule *UpdateWorkerVersioningRulesRequest_AddCompatibleBuildIdRedirectRule + ReplaceCompatibleRedirectRule *UpdateWorkerVersioningRulesRequest_ReplaceCompatibleBuildIdRedirectRule + DeleteCompatibleRedirectRule *UpdateWorkerVersioningRulesRequest_DeleteCompatibleBuildIdRedirectRule + CommitBuildId *UpdateWorkerVersioningRulesRequest_CommitBuildId + // -- end of Operation +} + +func (b0 UpdateWorkerVersioningRulesRequest_builder) Build() *UpdateWorkerVersioningRulesRequest { + m0 := &UpdateWorkerVersioningRulesRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.TaskQueue = b.TaskQueue + x.ConflictToken = b.ConflictToken + if b.InsertAssignmentRule != nil { + x.Operation = &UpdateWorkerVersioningRulesRequest_InsertAssignmentRule{b.InsertAssignmentRule} + } + if b.ReplaceAssignmentRule != nil { + x.Operation = &UpdateWorkerVersioningRulesRequest_ReplaceAssignmentRule{b.ReplaceAssignmentRule} + } + if b.DeleteAssignmentRule != nil { + x.Operation = &UpdateWorkerVersioningRulesRequest_DeleteAssignmentRule{b.DeleteAssignmentRule} + } + if b.AddCompatibleRedirectRule != nil { + x.Operation = &UpdateWorkerVersioningRulesRequest_AddCompatibleRedirectRule{b.AddCompatibleRedirectRule} + } + if b.ReplaceCompatibleRedirectRule != nil { + x.Operation = &UpdateWorkerVersioningRulesRequest_ReplaceCompatibleRedirectRule{b.ReplaceCompatibleRedirectRule} + } + if b.DeleteCompatibleRedirectRule != nil { + x.Operation = &UpdateWorkerVersioningRulesRequest_DeleteCompatibleRedirectRule{b.DeleteCompatibleRedirectRule} + } + if b.CommitBuildId != nil { + x.Operation = &UpdateWorkerVersioningRulesRequest_CommitBuildId_{b.CommitBuildId} + } + return m0 +} + +type case_UpdateWorkerVersioningRulesRequest_Operation protoreflect.FieldNumber + +func (x case_UpdateWorkerVersioningRulesRequest_Operation) String() string { + switch x { + case UpdateWorkerVersioningRulesRequest_Operation_not_set_case: + return "UpdateWorkerVersioningRulesRequestOperationNotSetCase" + case UpdateWorkerVersioningRulesRequest_InsertAssignmentRule_case: + return "UpdateWorkerVersioningRulesRequestInsertAssignmentRuleCase" + case UpdateWorkerVersioningRulesRequest_ReplaceAssignmentRule_case: + return "UpdateWorkerVersioningRulesRequestReplaceAssignmentRuleCase" + case UpdateWorkerVersioningRulesRequest_DeleteAssignmentRule_case: + return "UpdateWorkerVersioningRulesRequestDeleteAssignmentRuleCase" + case UpdateWorkerVersioningRulesRequest_AddCompatibleRedirectRule_case: + return "UpdateWorkerVersioningRulesRequestAddCompatibleRedirectRuleCase" + case UpdateWorkerVersioningRulesRequest_ReplaceCompatibleRedirectRule_case: + return "UpdateWorkerVersioningRulesRequestReplaceCompatibleRedirectRuleCase" + case UpdateWorkerVersioningRulesRequest_DeleteCompatibleRedirectRule_case: + return "UpdateWorkerVersioningRulesRequestDeleteCompatibleRedirectRuleCase" + case UpdateWorkerVersioningRulesRequest_CommitBuildId_case: + return "UpdateWorkerVersioningRulesRequestCommitBuildIdCase" + default: + return strconv.Itoa(int(x)) + } + +} + type isUpdateWorkerVersioningRulesRequest_Operation interface { isUpdateWorkerVersioningRulesRequest_Operation() } @@ -8301,7 +14831,7 @@ func (*UpdateWorkerVersioningRulesRequest_CommitBuildId_) isUpdateWorkerVersioni // [cleanup-wv-pre-release] type UpdateWorkerVersioningRulesResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` AssignmentRules []*v14.TimestampedBuildIdAssignmentRule `protobuf:"bytes,1,rep,name=assignment_rules,json=assignmentRules,proto3" json:"assignment_rules,omitempty"` CompatibleRedirectRules []*v14.TimestampedCompatibleBuildIdRedirectRule `protobuf:"bytes,2,rep,name=compatible_redirect_rules,json=compatibleRedirectRules,proto3" json:"compatible_redirect_rules,omitempty"` // This value can be passed back to UpdateWorkerVersioningRulesRequest to @@ -8337,11 +14867,6 @@ func (x *UpdateWorkerVersioningRulesResponse) ProtoReflect() protoreflect.Messag return mi.MessageOf(x) } -// Deprecated: Use UpdateWorkerVersioningRulesResponse.ProtoReflect.Descriptor instead. -func (*UpdateWorkerVersioningRulesResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{103} -} - func (x *UpdateWorkerVersioningRulesResponse) GetAssignmentRules() []*v14.TimestampedBuildIdAssignmentRule { if x != nil { return x.AssignmentRules @@ -8363,9 +14888,45 @@ func (x *UpdateWorkerVersioningRulesResponse) GetConflictToken() []byte { return nil } +func (x *UpdateWorkerVersioningRulesResponse) SetAssignmentRules(v []*v14.TimestampedBuildIdAssignmentRule) { + x.AssignmentRules = v +} + +func (x *UpdateWorkerVersioningRulesResponse) SetCompatibleRedirectRules(v []*v14.TimestampedCompatibleBuildIdRedirectRule) { + x.CompatibleRedirectRules = v +} + +func (x *UpdateWorkerVersioningRulesResponse) SetConflictToken(v []byte) { + if v == nil { + v = []byte{} + } + x.ConflictToken = v +} + +type UpdateWorkerVersioningRulesResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + AssignmentRules []*v14.TimestampedBuildIdAssignmentRule + CompatibleRedirectRules []*v14.TimestampedCompatibleBuildIdRedirectRule + // This value can be passed back to UpdateWorkerVersioningRulesRequest to + // ensure that the rules were not modified between the two updates, which + // could lead to lost updates and other confusion. + ConflictToken []byte +} + +func (b0 UpdateWorkerVersioningRulesResponse_builder) Build() *UpdateWorkerVersioningRulesResponse { + m0 := &UpdateWorkerVersioningRulesResponse{} + b, x := &b0, m0 + _, _ = b, x + x.AssignmentRules = b.AssignmentRules + x.CompatibleRedirectRules = b.CompatibleRedirectRules + x.ConflictToken = b.ConflictToken + return m0 +} + // [cleanup-wv-pre-release] type GetWorkerVersioningRulesRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` TaskQueue string `protobuf:"bytes,2,opt,name=task_queue,json=taskQueue,proto3" json:"task_queue,omitempty"` unknownFields protoimpl.UnknownFields @@ -8397,11 +14958,6 @@ func (x *GetWorkerVersioningRulesRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetWorkerVersioningRulesRequest.ProtoReflect.Descriptor instead. -func (*GetWorkerVersioningRulesRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{104} -} - func (x *GetWorkerVersioningRulesRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -8416,9 +14972,33 @@ func (x *GetWorkerVersioningRulesRequest) GetTaskQueue() string { return "" } +func (x *GetWorkerVersioningRulesRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *GetWorkerVersioningRulesRequest) SetTaskQueue(v string) { + x.TaskQueue = v +} + +type GetWorkerVersioningRulesRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + TaskQueue string +} + +func (b0 GetWorkerVersioningRulesRequest_builder) Build() *GetWorkerVersioningRulesRequest { + m0 := &GetWorkerVersioningRulesRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.TaskQueue = b.TaskQueue + return m0 +} + // [cleanup-wv-pre-release] type GetWorkerVersioningRulesResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` AssignmentRules []*v14.TimestampedBuildIdAssignmentRule `protobuf:"bytes,1,rep,name=assignment_rules,json=assignmentRules,proto3" json:"assignment_rules,omitempty"` CompatibleRedirectRules []*v14.TimestampedCompatibleBuildIdRedirectRule `protobuf:"bytes,2,rep,name=compatible_redirect_rules,json=compatibleRedirectRules,proto3" json:"compatible_redirect_rules,omitempty"` // This value can be passed back to UpdateWorkerVersioningRulesRequest to @@ -8454,11 +15034,6 @@ func (x *GetWorkerVersioningRulesResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetWorkerVersioningRulesResponse.ProtoReflect.Descriptor instead. -func (*GetWorkerVersioningRulesResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{105} -} - func (x *GetWorkerVersioningRulesResponse) GetAssignmentRules() []*v14.TimestampedBuildIdAssignmentRule { if x != nil { return x.AssignmentRules @@ -8480,10 +15055,46 @@ func (x *GetWorkerVersioningRulesResponse) GetConflictToken() []byte { return nil } +func (x *GetWorkerVersioningRulesResponse) SetAssignmentRules(v []*v14.TimestampedBuildIdAssignmentRule) { + x.AssignmentRules = v +} + +func (x *GetWorkerVersioningRulesResponse) SetCompatibleRedirectRules(v []*v14.TimestampedCompatibleBuildIdRedirectRule) { + x.CompatibleRedirectRules = v +} + +func (x *GetWorkerVersioningRulesResponse) SetConflictToken(v []byte) { + if v == nil { + v = []byte{} + } + x.ConflictToken = v +} + +type GetWorkerVersioningRulesResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + AssignmentRules []*v14.TimestampedBuildIdAssignmentRule + CompatibleRedirectRules []*v14.TimestampedCompatibleBuildIdRedirectRule + // This value can be passed back to UpdateWorkerVersioningRulesRequest to + // ensure that the rules were not modified between this List and the Update, + // which could lead to lost updates and other confusion. + ConflictToken []byte +} + +func (b0 GetWorkerVersioningRulesResponse_builder) Build() *GetWorkerVersioningRulesResponse { + m0 := &GetWorkerVersioningRulesResponse{} + b, x := &b0, m0 + _, _ = b, x + x.AssignmentRules = b.AssignmentRules + x.CompatibleRedirectRules = b.CompatibleRedirectRules + x.ConflictToken = b.ConflictToken + return m0 +} + // [cleanup-wv-pre-release] // Deprecated. Use `DescribeTaskQueue`. type GetWorkerTaskReachabilityRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // Build ids to retrieve reachability for. An empty string will be interpreted as an unversioned worker. // The number of build ids that can be queried in a single API call is limited. @@ -8532,11 +15143,6 @@ func (x *GetWorkerTaskReachabilityRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetWorkerTaskReachabilityRequest.ProtoReflect.Descriptor instead. -func (*GetWorkerTaskReachabilityRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{106} -} - func (x *GetWorkerTaskReachabilityRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -8565,10 +15171,61 @@ func (x *GetWorkerTaskReachabilityRequest) GetReachability() v11.TaskReachabilit return v11.TaskReachability(0) } +func (x *GetWorkerTaskReachabilityRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *GetWorkerTaskReachabilityRequest) SetBuildIds(v []string) { + x.BuildIds = v +} + +func (x *GetWorkerTaskReachabilityRequest) SetTaskQueues(v []string) { + x.TaskQueues = v +} + +func (x *GetWorkerTaskReachabilityRequest) SetReachability(v v11.TaskReachability) { + x.Reachability = v +} + +type GetWorkerTaskReachabilityRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + // Build ids to retrieve reachability for. An empty string will be interpreted as an unversioned worker. + // The number of build ids that can be queried in a single API call is limited. + // Open source users can adjust this limit by setting the server's dynamic config value for + // `limit.reachabilityQueryBuildIds` with the caveat that this call can strain the visibility store. + BuildIds []string + // Task queues to retrieve reachability for. Leave this empty to query for all task queues associated with given + // build ids in the namespace. + // Must specify at least one task queue if querying for an unversioned worker. + // The number of task queues that the server will fetch reachability information for is limited. + // See the `GetWorkerTaskReachabilityResponse` documentation for more information. + TaskQueues []string + // Type of reachability to query for. + // `TASK_REACHABILITY_NEW_WORKFLOWS` is always returned in the response. + // Use `TASK_REACHABILITY_EXISTING_WORKFLOWS` if your application needs to respond to queries on closed workflows. + // Otherwise, use `TASK_REACHABILITY_OPEN_WORKFLOWS`. Default is `TASK_REACHABILITY_EXISTING_WORKFLOWS` if left + // unspecified. + // See the TaskReachability docstring for information about each enum variant. + Reachability v11.TaskReachability +} + +func (b0 GetWorkerTaskReachabilityRequest_builder) Build() *GetWorkerTaskReachabilityRequest { + m0 := &GetWorkerTaskReachabilityRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.BuildIds = b.BuildIds + x.TaskQueues = b.TaskQueues + x.Reachability = b.Reachability + return m0 +} + // [cleanup-wv-pre-release] // Deprecated. Use `DescribeTaskQueue`. type GetWorkerTaskReachabilityResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Task reachability, broken down by build id and then task queue. // When requesting a large number of task queues or all task queues associated with the given build ids in a // namespace, all task queues will be listed in the response but some of them may not contain reachability @@ -8608,11 +15265,6 @@ func (x *GetWorkerTaskReachabilityResponse) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use GetWorkerTaskReachabilityResponse.ProtoReflect.Descriptor instead. -func (*GetWorkerTaskReachabilityResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{107} -} - func (x *GetWorkerTaskReachabilityResponse) GetBuildIdReachability() []*v14.BuildIdReachability { if x != nil { return x.BuildIdReachability @@ -8620,11 +15272,38 @@ func (x *GetWorkerTaskReachabilityResponse) GetBuildIdReachability() []*v14.Buil return nil } +func (x *GetWorkerTaskReachabilityResponse) SetBuildIdReachability(v []*v14.BuildIdReachability) { + x.BuildIdReachability = v +} + +type GetWorkerTaskReachabilityResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Task reachability, broken down by build id and then task queue. + // When requesting a large number of task queues or all task queues associated with the given build ids in a + // namespace, all task queues will be listed in the response but some of them may not contain reachability + // information due to a server enforced limit. When reaching the limit, task queues that reachability information + // could not be retrieved for will be marked with a single TASK_REACHABILITY_UNSPECIFIED entry. The caller may issue + // another call to get the reachability for those task queues. + // + // Open source users can adjust this limit by setting the server's dynamic config value for + // `limit.reachabilityTaskQueueScan` with the caveat that this call can strain the visibility store. + BuildIdReachability []*v14.BuildIdReachability +} + +func (b0 GetWorkerTaskReachabilityResponse_builder) Build() *GetWorkerTaskReachabilityResponse { + m0 := &GetWorkerTaskReachabilityResponse{} + b, x := &b0, m0 + _, _ = b, x + x.BuildIdReachability = b.BuildIdReachability + return m0 +} + // (-- api-linter: core::0134=disabled // // aip.dev/not-precedent: Update RPCs don't follow Google API format. --) type UpdateWorkflowExecutionRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The namespace name of the target Workflow. Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // The target Workflow Id and (optionally) a specific Run Id thereof. @@ -8674,11 +15353,6 @@ func (x *UpdateWorkflowExecutionRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UpdateWorkflowExecutionRequest.ProtoReflect.Descriptor instead. -func (*UpdateWorkflowExecutionRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{108} -} - func (x *UpdateWorkflowExecutionRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -8714,8 +15388,98 @@ func (x *UpdateWorkflowExecutionRequest) GetRequest() *v117.Request { return nil } +func (x *UpdateWorkflowExecutionRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *UpdateWorkflowExecutionRequest) SetWorkflowExecution(v *v13.WorkflowExecution) { + x.WorkflowExecution = v +} + +func (x *UpdateWorkflowExecutionRequest) SetFirstExecutionRunId(v string) { + x.FirstExecutionRunId = v +} + +func (x *UpdateWorkflowExecutionRequest) SetWaitPolicy(v *v117.WaitPolicy) { + x.WaitPolicy = v +} + +func (x *UpdateWorkflowExecutionRequest) SetRequest(v *v117.Request) { + x.Request = v +} + +func (x *UpdateWorkflowExecutionRequest) HasWorkflowExecution() bool { + if x == nil { + return false + } + return x.WorkflowExecution != nil +} + +func (x *UpdateWorkflowExecutionRequest) HasWaitPolicy() bool { + if x == nil { + return false + } + return x.WaitPolicy != nil +} + +func (x *UpdateWorkflowExecutionRequest) HasRequest() bool { + if x == nil { + return false + } + return x.Request != nil +} + +func (x *UpdateWorkflowExecutionRequest) ClearWorkflowExecution() { + x.WorkflowExecution = nil +} + +func (x *UpdateWorkflowExecutionRequest) ClearWaitPolicy() { + x.WaitPolicy = nil +} + +func (x *UpdateWorkflowExecutionRequest) ClearRequest() { + x.Request = nil +} + +type UpdateWorkflowExecutionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The namespace name of the target Workflow. + Namespace string + // The target Workflow Id and (optionally) a specific Run Id thereof. + // (-- api-linter: core::0203::optional=disabled + // + // aip.dev/not-precedent: false positive triggered by the word "optional" --) + WorkflowExecution *v13.WorkflowExecution + // If set, this call will error if the most recent (if no Run Id is set on + // `workflow_execution`), or specified (if it is) Workflow Execution is not + // part of the same execution chain as this Id. + FirstExecutionRunId string + // Specifies client's intent to wait for Update results. + // NOTE: This field works together with API call timeout which is limited by + // server timeout (maximum wait time). If server timeout is expired before + // user specified timeout, API call returns even if specified stage is not reached. + // Actual reached stage will be included in the response. + WaitPolicy *v117.WaitPolicy + // The request information that will be delivered all the way down to the + // Workflow Execution. + Request *v117.Request +} + +func (b0 UpdateWorkflowExecutionRequest_builder) Build() *UpdateWorkflowExecutionRequest { + m0 := &UpdateWorkflowExecutionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.WorkflowExecution = b.WorkflowExecution + x.FirstExecutionRunId = b.FirstExecutionRunId + x.WaitPolicy = b.WaitPolicy + x.Request = b.Request + return m0 +} + type UpdateWorkflowExecutionResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Enough information for subsequent poll calls if needed. Never null. UpdateRef *v117.UpdateRef `protobuf:"bytes,1,opt,name=update_ref,json=updateRef,proto3" json:"update_ref,omitempty"` // The outcome of the Update if and only if the Workflow Update @@ -8762,11 +15526,6 @@ func (x *UpdateWorkflowExecutionResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UpdateWorkflowExecutionResponse.ProtoReflect.Descriptor instead. -func (*UpdateWorkflowExecutionResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{109} -} - func (x *UpdateWorkflowExecutionResponse) GetUpdateRef() *v117.UpdateRef { if x != nil { return x.UpdateRef @@ -8788,8 +15547,74 @@ func (x *UpdateWorkflowExecutionResponse) GetStage() v11.UpdateWorkflowExecution return v11.UpdateWorkflowExecutionLifecycleStage(0) } +func (x *UpdateWorkflowExecutionResponse) SetUpdateRef(v *v117.UpdateRef) { + x.UpdateRef = v +} + +func (x *UpdateWorkflowExecutionResponse) SetOutcome(v *v117.Outcome) { + x.Outcome = v +} + +func (x *UpdateWorkflowExecutionResponse) SetStage(v v11.UpdateWorkflowExecutionLifecycleStage) { + x.Stage = v +} + +func (x *UpdateWorkflowExecutionResponse) HasUpdateRef() bool { + if x == nil { + return false + } + return x.UpdateRef != nil +} + +func (x *UpdateWorkflowExecutionResponse) HasOutcome() bool { + if x == nil { + return false + } + return x.Outcome != nil +} + +func (x *UpdateWorkflowExecutionResponse) ClearUpdateRef() { + x.UpdateRef = nil +} + +func (x *UpdateWorkflowExecutionResponse) ClearOutcome() { + x.Outcome = nil +} + +type UpdateWorkflowExecutionResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Enough information for subsequent poll calls if needed. Never null. + UpdateRef *v117.UpdateRef + // The outcome of the Update if and only if the Workflow Update + // has completed. If this response is being returned before the Update has + // completed then this field will not be set. + Outcome *v117.Outcome + // The most advanced lifecycle stage that the Update is known to have + // reached, where lifecycle stages are ordered + // UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_UNSPECIFIED < + // UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ADMITTED < + // UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ACCEPTED < + // UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_COMPLETED. + // UNSPECIFIED will be returned if and only if the server's maximum wait + // time was reached before the Update reached the stage specified in the + // request WaitPolicy, and before the context deadline expired; clients may + // may then retry the call as needed. + Stage v11.UpdateWorkflowExecutionLifecycleStage +} + +func (b0 UpdateWorkflowExecutionResponse_builder) Build() *UpdateWorkflowExecutionResponse { + m0 := &UpdateWorkflowExecutionResponse{} + b, x := &b0, m0 + _, _ = b, x + x.UpdateRef = b.UpdateRef + x.Outcome = b.Outcome + x.Stage = b.Stage + return m0 +} + type StartBatchOperationRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Namespace that contains the batch operation Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // Visibility query defines the the group of workflow to apply the batch operation @@ -8852,11 +15677,6 @@ func (x *StartBatchOperationRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use StartBatchOperationRequest.ProtoReflect.Descriptor instead. -func (*StartBatchOperationRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{110} -} - func (x *StartBatchOperationRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -8978,13 +15798,392 @@ func (x *StartBatchOperationRequest) GetResetActivitiesOperation() *v118.BatchOp return nil } -func (x *StartBatchOperationRequest) GetUpdateActivityOptionsOperation() *v118.BatchOperationUpdateActivityOptions { - if x != nil { - if x, ok := x.Operation.(*StartBatchOperationRequest_UpdateActivityOptionsOperation); ok { - return x.UpdateActivityOptionsOperation - } +func (x *StartBatchOperationRequest) GetUpdateActivityOptionsOperation() *v118.BatchOperationUpdateActivityOptions { + if x != nil { + if x, ok := x.Operation.(*StartBatchOperationRequest_UpdateActivityOptionsOperation); ok { + return x.UpdateActivityOptionsOperation + } + } + return nil +} + +func (x *StartBatchOperationRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *StartBatchOperationRequest) SetVisibilityQuery(v string) { + x.VisibilityQuery = v +} + +func (x *StartBatchOperationRequest) SetJobId(v string) { + x.JobId = v +} + +func (x *StartBatchOperationRequest) SetReason(v string) { + x.Reason = v +} + +func (x *StartBatchOperationRequest) SetExecutions(v []*v13.WorkflowExecution) { + x.Executions = v +} + +func (x *StartBatchOperationRequest) SetMaxOperationsPerSecond(v float32) { + x.MaxOperationsPerSecond = v +} + +func (x *StartBatchOperationRequest) SetTerminationOperation(v *v118.BatchOperationTermination) { + if v == nil { + x.Operation = nil + return + } + x.Operation = &StartBatchOperationRequest_TerminationOperation{v} +} + +func (x *StartBatchOperationRequest) SetSignalOperation(v *v118.BatchOperationSignal) { + if v == nil { + x.Operation = nil + return + } + x.Operation = &StartBatchOperationRequest_SignalOperation{v} +} + +func (x *StartBatchOperationRequest) SetCancellationOperation(v *v118.BatchOperationCancellation) { + if v == nil { + x.Operation = nil + return + } + x.Operation = &StartBatchOperationRequest_CancellationOperation{v} +} + +func (x *StartBatchOperationRequest) SetDeletionOperation(v *v118.BatchOperationDeletion) { + if v == nil { + x.Operation = nil + return + } + x.Operation = &StartBatchOperationRequest_DeletionOperation{v} +} + +func (x *StartBatchOperationRequest) SetResetOperation(v *v118.BatchOperationReset) { + if v == nil { + x.Operation = nil + return + } + x.Operation = &StartBatchOperationRequest_ResetOperation{v} +} + +func (x *StartBatchOperationRequest) SetUpdateWorkflowOptionsOperation(v *v118.BatchOperationUpdateWorkflowExecutionOptions) { + if v == nil { + x.Operation = nil + return + } + x.Operation = &StartBatchOperationRequest_UpdateWorkflowOptionsOperation{v} +} + +func (x *StartBatchOperationRequest) SetUnpauseActivitiesOperation(v *v118.BatchOperationUnpauseActivities) { + if v == nil { + x.Operation = nil + return + } + x.Operation = &StartBatchOperationRequest_UnpauseActivitiesOperation{v} +} + +func (x *StartBatchOperationRequest) SetResetActivitiesOperation(v *v118.BatchOperationResetActivities) { + if v == nil { + x.Operation = nil + return + } + x.Operation = &StartBatchOperationRequest_ResetActivitiesOperation{v} +} + +func (x *StartBatchOperationRequest) SetUpdateActivityOptionsOperation(v *v118.BatchOperationUpdateActivityOptions) { + if v == nil { + x.Operation = nil + return + } + x.Operation = &StartBatchOperationRequest_UpdateActivityOptionsOperation{v} +} + +func (x *StartBatchOperationRequest) HasOperation() bool { + if x == nil { + return false + } + return x.Operation != nil +} + +func (x *StartBatchOperationRequest) HasTerminationOperation() bool { + if x == nil { + return false + } + _, ok := x.Operation.(*StartBatchOperationRequest_TerminationOperation) + return ok +} + +func (x *StartBatchOperationRequest) HasSignalOperation() bool { + if x == nil { + return false + } + _, ok := x.Operation.(*StartBatchOperationRequest_SignalOperation) + return ok +} + +func (x *StartBatchOperationRequest) HasCancellationOperation() bool { + if x == nil { + return false + } + _, ok := x.Operation.(*StartBatchOperationRequest_CancellationOperation) + return ok +} + +func (x *StartBatchOperationRequest) HasDeletionOperation() bool { + if x == nil { + return false + } + _, ok := x.Operation.(*StartBatchOperationRequest_DeletionOperation) + return ok +} + +func (x *StartBatchOperationRequest) HasResetOperation() bool { + if x == nil { + return false + } + _, ok := x.Operation.(*StartBatchOperationRequest_ResetOperation) + return ok +} + +func (x *StartBatchOperationRequest) HasUpdateWorkflowOptionsOperation() bool { + if x == nil { + return false + } + _, ok := x.Operation.(*StartBatchOperationRequest_UpdateWorkflowOptionsOperation) + return ok +} + +func (x *StartBatchOperationRequest) HasUnpauseActivitiesOperation() bool { + if x == nil { + return false + } + _, ok := x.Operation.(*StartBatchOperationRequest_UnpauseActivitiesOperation) + return ok +} + +func (x *StartBatchOperationRequest) HasResetActivitiesOperation() bool { + if x == nil { + return false + } + _, ok := x.Operation.(*StartBatchOperationRequest_ResetActivitiesOperation) + return ok +} + +func (x *StartBatchOperationRequest) HasUpdateActivityOptionsOperation() bool { + if x == nil { + return false + } + _, ok := x.Operation.(*StartBatchOperationRequest_UpdateActivityOptionsOperation) + return ok +} + +func (x *StartBatchOperationRequest) ClearOperation() { + x.Operation = nil +} + +func (x *StartBatchOperationRequest) ClearTerminationOperation() { + if _, ok := x.Operation.(*StartBatchOperationRequest_TerminationOperation); ok { + x.Operation = nil + } +} + +func (x *StartBatchOperationRequest) ClearSignalOperation() { + if _, ok := x.Operation.(*StartBatchOperationRequest_SignalOperation); ok { + x.Operation = nil + } +} + +func (x *StartBatchOperationRequest) ClearCancellationOperation() { + if _, ok := x.Operation.(*StartBatchOperationRequest_CancellationOperation); ok { + x.Operation = nil + } +} + +func (x *StartBatchOperationRequest) ClearDeletionOperation() { + if _, ok := x.Operation.(*StartBatchOperationRequest_DeletionOperation); ok { + x.Operation = nil + } +} + +func (x *StartBatchOperationRequest) ClearResetOperation() { + if _, ok := x.Operation.(*StartBatchOperationRequest_ResetOperation); ok { + x.Operation = nil + } +} + +func (x *StartBatchOperationRequest) ClearUpdateWorkflowOptionsOperation() { + if _, ok := x.Operation.(*StartBatchOperationRequest_UpdateWorkflowOptionsOperation); ok { + x.Operation = nil + } +} + +func (x *StartBatchOperationRequest) ClearUnpauseActivitiesOperation() { + if _, ok := x.Operation.(*StartBatchOperationRequest_UnpauseActivitiesOperation); ok { + x.Operation = nil + } +} + +func (x *StartBatchOperationRequest) ClearResetActivitiesOperation() { + if _, ok := x.Operation.(*StartBatchOperationRequest_ResetActivitiesOperation); ok { + x.Operation = nil + } +} + +func (x *StartBatchOperationRequest) ClearUpdateActivityOptionsOperation() { + if _, ok := x.Operation.(*StartBatchOperationRequest_UpdateActivityOptionsOperation); ok { + x.Operation = nil + } +} + +const StartBatchOperationRequest_Operation_not_set_case case_StartBatchOperationRequest_Operation = 0 +const StartBatchOperationRequest_TerminationOperation_case case_StartBatchOperationRequest_Operation = 10 +const StartBatchOperationRequest_SignalOperation_case case_StartBatchOperationRequest_Operation = 11 +const StartBatchOperationRequest_CancellationOperation_case case_StartBatchOperationRequest_Operation = 12 +const StartBatchOperationRequest_DeletionOperation_case case_StartBatchOperationRequest_Operation = 13 +const StartBatchOperationRequest_ResetOperation_case case_StartBatchOperationRequest_Operation = 14 +const StartBatchOperationRequest_UpdateWorkflowOptionsOperation_case case_StartBatchOperationRequest_Operation = 15 +const StartBatchOperationRequest_UnpauseActivitiesOperation_case case_StartBatchOperationRequest_Operation = 16 +const StartBatchOperationRequest_ResetActivitiesOperation_case case_StartBatchOperationRequest_Operation = 17 +const StartBatchOperationRequest_UpdateActivityOptionsOperation_case case_StartBatchOperationRequest_Operation = 18 + +func (x *StartBatchOperationRequest) WhichOperation() case_StartBatchOperationRequest_Operation { + if x == nil { + return StartBatchOperationRequest_Operation_not_set_case + } + switch x.Operation.(type) { + case *StartBatchOperationRequest_TerminationOperation: + return StartBatchOperationRequest_TerminationOperation_case + case *StartBatchOperationRequest_SignalOperation: + return StartBatchOperationRequest_SignalOperation_case + case *StartBatchOperationRequest_CancellationOperation: + return StartBatchOperationRequest_CancellationOperation_case + case *StartBatchOperationRequest_DeletionOperation: + return StartBatchOperationRequest_DeletionOperation_case + case *StartBatchOperationRequest_ResetOperation: + return StartBatchOperationRequest_ResetOperation_case + case *StartBatchOperationRequest_UpdateWorkflowOptionsOperation: + return StartBatchOperationRequest_UpdateWorkflowOptionsOperation_case + case *StartBatchOperationRequest_UnpauseActivitiesOperation: + return StartBatchOperationRequest_UnpauseActivitiesOperation_case + case *StartBatchOperationRequest_ResetActivitiesOperation: + return StartBatchOperationRequest_ResetActivitiesOperation_case + case *StartBatchOperationRequest_UpdateActivityOptionsOperation: + return StartBatchOperationRequest_UpdateActivityOptionsOperation_case + default: + return StartBatchOperationRequest_Operation_not_set_case + } +} + +type StartBatchOperationRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Namespace that contains the batch operation + Namespace string + // Visibility query defines the the group of workflow to apply the batch operation + // This field and `executions` are mutually exclusive + VisibilityQuery string + // Job ID defines the unique ID for the batch job + JobId string + // Reason to perform the batch operation + Reason string + // Executions to apply the batch operation + // This field and `visibility_query` are mutually exclusive + Executions []*v13.WorkflowExecution + // Limit for the number of operations processed per second within this batch. + // Its purpose is to reduce the stress on the system caused by batch operations, which helps to prevent system + // overload and minimize potential delays in executing ongoing tasks for user workers. + // Note that when no explicit limit is provided, the server will operate according to its limit defined by the + // dynamic configuration key `worker.batcherRPS`. This also applies if the value in this field exceeds the + // server's configured limit. + MaxOperationsPerSecond float32 + // Operation input + + // Fields of oneof Operation: + TerminationOperation *v118.BatchOperationTermination + SignalOperation *v118.BatchOperationSignal + CancellationOperation *v118.BatchOperationCancellation + DeletionOperation *v118.BatchOperationDeletion + ResetOperation *v118.BatchOperationReset + UpdateWorkflowOptionsOperation *v118.BatchOperationUpdateWorkflowExecutionOptions + UnpauseActivitiesOperation *v118.BatchOperationUnpauseActivities + ResetActivitiesOperation *v118.BatchOperationResetActivities + UpdateActivityOptionsOperation *v118.BatchOperationUpdateActivityOptions + // -- end of Operation +} + +func (b0 StartBatchOperationRequest_builder) Build() *StartBatchOperationRequest { + m0 := &StartBatchOperationRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.VisibilityQuery = b.VisibilityQuery + x.JobId = b.JobId + x.Reason = b.Reason + x.Executions = b.Executions + x.MaxOperationsPerSecond = b.MaxOperationsPerSecond + if b.TerminationOperation != nil { + x.Operation = &StartBatchOperationRequest_TerminationOperation{b.TerminationOperation} + } + if b.SignalOperation != nil { + x.Operation = &StartBatchOperationRequest_SignalOperation{b.SignalOperation} + } + if b.CancellationOperation != nil { + x.Operation = &StartBatchOperationRequest_CancellationOperation{b.CancellationOperation} + } + if b.DeletionOperation != nil { + x.Operation = &StartBatchOperationRequest_DeletionOperation{b.DeletionOperation} + } + if b.ResetOperation != nil { + x.Operation = &StartBatchOperationRequest_ResetOperation{b.ResetOperation} + } + if b.UpdateWorkflowOptionsOperation != nil { + x.Operation = &StartBatchOperationRequest_UpdateWorkflowOptionsOperation{b.UpdateWorkflowOptionsOperation} + } + if b.UnpauseActivitiesOperation != nil { + x.Operation = &StartBatchOperationRequest_UnpauseActivitiesOperation{b.UnpauseActivitiesOperation} + } + if b.ResetActivitiesOperation != nil { + x.Operation = &StartBatchOperationRequest_ResetActivitiesOperation{b.ResetActivitiesOperation} + } + if b.UpdateActivityOptionsOperation != nil { + x.Operation = &StartBatchOperationRequest_UpdateActivityOptionsOperation{b.UpdateActivityOptionsOperation} + } + return m0 +} + +type case_StartBatchOperationRequest_Operation protoreflect.FieldNumber + +func (x case_StartBatchOperationRequest_Operation) String() string { + switch x { + case StartBatchOperationRequest_Operation_not_set_case: + return "StartBatchOperationRequestOperationNotSetCase" + case StartBatchOperationRequest_TerminationOperation_case: + return "StartBatchOperationRequestTerminationOperationCase" + case StartBatchOperationRequest_SignalOperation_case: + return "StartBatchOperationRequestSignalOperationCase" + case StartBatchOperationRequest_CancellationOperation_case: + return "StartBatchOperationRequestCancellationOperationCase" + case StartBatchOperationRequest_DeletionOperation_case: + return "StartBatchOperationRequestDeletionOperationCase" + case StartBatchOperationRequest_ResetOperation_case: + return "StartBatchOperationRequestResetOperationCase" + case StartBatchOperationRequest_UpdateWorkflowOptionsOperation_case: + return "StartBatchOperationRequestUpdateWorkflowOptionsOperationCase" + case StartBatchOperationRequest_UnpauseActivitiesOperation_case: + return "StartBatchOperationRequestUnpauseActivitiesOperationCase" + case StartBatchOperationRequest_ResetActivitiesOperation_case: + return "StartBatchOperationRequestResetActivitiesOperationCase" + case StartBatchOperationRequest_UpdateActivityOptionsOperation_case: + return "StartBatchOperationRequestUpdateActivityOptionsOperationCase" + default: + return strconv.Itoa(int(x)) } - return nil + } type isStartBatchOperationRequest_Operation interface { @@ -9050,7 +16249,7 @@ func (*StartBatchOperationRequest_UpdateActivityOptionsOperation) isStartBatchOp } type StartBatchOperationResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -9080,13 +16279,20 @@ func (x *StartBatchOperationResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use StartBatchOperationResponse.ProtoReflect.Descriptor instead. -func (*StartBatchOperationResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{111} +type StartBatchOperationResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 StartBatchOperationResponse_builder) Build() *StartBatchOperationResponse { + m0 := &StartBatchOperationResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type StopBatchOperationRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Namespace that contains the batch operation Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // Batch job id @@ -9124,11 +16330,6 @@ func (x *StopBatchOperationRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use StopBatchOperationRequest.ProtoReflect.Descriptor instead. -func (*StopBatchOperationRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{112} -} - func (x *StopBatchOperationRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -9157,8 +16358,48 @@ func (x *StopBatchOperationRequest) GetIdentity() string { return "" } +func (x *StopBatchOperationRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *StopBatchOperationRequest) SetJobId(v string) { + x.JobId = v +} + +func (x *StopBatchOperationRequest) SetReason(v string) { + x.Reason = v +} + +func (x *StopBatchOperationRequest) SetIdentity(v string) { + x.Identity = v +} + +type StopBatchOperationRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Namespace that contains the batch operation + Namespace string + // Batch job id + JobId string + // Reason to stop a batch operation + Reason string + // Identity of the operator + Identity string +} + +func (b0 StopBatchOperationRequest_builder) Build() *StopBatchOperationRequest { + m0 := &StopBatchOperationRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.JobId = b.JobId + x.Reason = b.Reason + x.Identity = b.Identity + return m0 +} + type StopBatchOperationResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -9188,13 +16429,20 @@ func (x *StopBatchOperationResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use StopBatchOperationResponse.ProtoReflect.Descriptor instead. -func (*StopBatchOperationResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{113} +type StopBatchOperationResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 StopBatchOperationResponse_builder) Build() *StopBatchOperationResponse { + m0 := &StopBatchOperationResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type DescribeBatchOperationRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Namespace that contains the batch operation Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // Batch job id @@ -9228,11 +16476,6 @@ func (x *DescribeBatchOperationRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DescribeBatchOperationRequest.ProtoReflect.Descriptor instead. -func (*DescribeBatchOperationRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{114} -} - func (x *DescribeBatchOperationRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -9247,8 +16490,34 @@ func (x *DescribeBatchOperationRequest) GetJobId() string { return "" } +func (x *DescribeBatchOperationRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *DescribeBatchOperationRequest) SetJobId(v string) { + x.JobId = v +} + +type DescribeBatchOperationRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Namespace that contains the batch operation + Namespace string + // Batch job id + JobId string +} + +func (b0 DescribeBatchOperationRequest_builder) Build() *DescribeBatchOperationRequest { + m0 := &DescribeBatchOperationRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.JobId = b.JobId + return m0 +} + type DescribeBatchOperationResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Batch operation type OperationType v11.BatchOperationType `protobuf:"varint,1,opt,name=operation_type,json=operationType,proto3,enum=temporal.api.enums.v1.BatchOperationType" json:"operation_type,omitempty"` // Batch job ID @@ -9298,11 +16567,6 @@ func (x *DescribeBatchOperationResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DescribeBatchOperationResponse.ProtoReflect.Descriptor instead. -func (*DescribeBatchOperationResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{115} -} - func (x *DescribeBatchOperationResponse) GetOperationType() v11.BatchOperationType { if x != nil { return x.OperationType @@ -9373,8 +16637,112 @@ func (x *DescribeBatchOperationResponse) GetReason() string { return "" } +func (x *DescribeBatchOperationResponse) SetOperationType(v v11.BatchOperationType) { + x.OperationType = v +} + +func (x *DescribeBatchOperationResponse) SetJobId(v string) { + x.JobId = v +} + +func (x *DescribeBatchOperationResponse) SetState(v v11.BatchOperationState) { + x.State = v +} + +func (x *DescribeBatchOperationResponse) SetStartTime(v *timestamppb.Timestamp) { + x.StartTime = v +} + +func (x *DescribeBatchOperationResponse) SetCloseTime(v *timestamppb.Timestamp) { + x.CloseTime = v +} + +func (x *DescribeBatchOperationResponse) SetTotalOperationCount(v int64) { + x.TotalOperationCount = v +} + +func (x *DescribeBatchOperationResponse) SetCompleteOperationCount(v int64) { + x.CompleteOperationCount = v +} + +func (x *DescribeBatchOperationResponse) SetFailureOperationCount(v int64) { + x.FailureOperationCount = v +} + +func (x *DescribeBatchOperationResponse) SetIdentity(v string) { + x.Identity = v +} + +func (x *DescribeBatchOperationResponse) SetReason(v string) { + x.Reason = v +} + +func (x *DescribeBatchOperationResponse) HasStartTime() bool { + if x == nil { + return false + } + return x.StartTime != nil +} + +func (x *DescribeBatchOperationResponse) HasCloseTime() bool { + if x == nil { + return false + } + return x.CloseTime != nil +} + +func (x *DescribeBatchOperationResponse) ClearStartTime() { + x.StartTime = nil +} + +func (x *DescribeBatchOperationResponse) ClearCloseTime() { + x.CloseTime = nil +} + +type DescribeBatchOperationResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Batch operation type + OperationType v11.BatchOperationType + // Batch job ID + JobId string + // Batch operation state + State v11.BatchOperationState + // Batch operation start time + StartTime *timestamppb.Timestamp + // Batch operation close time + CloseTime *timestamppb.Timestamp + // Total operation count + TotalOperationCount int64 + // Complete operation count + CompleteOperationCount int64 + // Failure operation count + FailureOperationCount int64 + // Identity indicates the operator identity + Identity string + // Reason indicates the reason to stop a operation + Reason string +} + +func (b0 DescribeBatchOperationResponse_builder) Build() *DescribeBatchOperationResponse { + m0 := &DescribeBatchOperationResponse{} + b, x := &b0, m0 + _, _ = b, x + x.OperationType = b.OperationType + x.JobId = b.JobId + x.State = b.State + x.StartTime = b.StartTime + x.CloseTime = b.CloseTime + x.TotalOperationCount = b.TotalOperationCount + x.CompleteOperationCount = b.CompleteOperationCount + x.FailureOperationCount = b.FailureOperationCount + x.Identity = b.Identity + x.Reason = b.Reason + return m0 +} + type ListBatchOperationsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Namespace that contains the batch operation Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // List page size @@ -9410,11 +16778,6 @@ func (x *ListBatchOperationsRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListBatchOperationsRequest.ProtoReflect.Descriptor instead. -func (*ListBatchOperationsRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{116} -} - func (x *ListBatchOperationsRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -9436,8 +16799,44 @@ func (x *ListBatchOperationsRequest) GetNextPageToken() []byte { return nil } +func (x *ListBatchOperationsRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *ListBatchOperationsRequest) SetPageSize(v int32) { + x.PageSize = v +} + +func (x *ListBatchOperationsRequest) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.NextPageToken = v +} + +type ListBatchOperationsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Namespace that contains the batch operation + Namespace string + // List page size + PageSize int32 + // Next page token + NextPageToken []byte +} + +func (b0 ListBatchOperationsRequest_builder) Build() *ListBatchOperationsRequest { + m0 := &ListBatchOperationsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.PageSize = b.PageSize + x.NextPageToken = b.NextPageToken + return m0 +} + type ListBatchOperationsResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // BatchOperationInfo contains the basic info about batch operation OperationInfo []*v118.BatchOperationInfo `protobuf:"bytes,1,rep,name=operation_info,json=operationInfo,proto3" json:"operation_info,omitempty"` NextPageToken []byte `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` @@ -9470,11 +16869,6 @@ func (x *ListBatchOperationsResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListBatchOperationsResponse.ProtoReflect.Descriptor instead. -func (*ListBatchOperationsResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{117} -} - func (x *ListBatchOperationsResponse) GetOperationInfo() []*v118.BatchOperationInfo { if x != nil { return x.OperationInfo @@ -9489,8 +16883,36 @@ func (x *ListBatchOperationsResponse) GetNextPageToken() []byte { return nil } +func (x *ListBatchOperationsResponse) SetOperationInfo(v []*v118.BatchOperationInfo) { + x.OperationInfo = v +} + +func (x *ListBatchOperationsResponse) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.NextPageToken = v +} + +type ListBatchOperationsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // BatchOperationInfo contains the basic info about batch operation + OperationInfo []*v118.BatchOperationInfo + NextPageToken []byte +} + +func (b0 ListBatchOperationsResponse_builder) Build() *ListBatchOperationsResponse { + m0 := &ListBatchOperationsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.OperationInfo = b.OperationInfo + x.NextPageToken = b.NextPageToken + return m0 +} + type PollWorkflowExecutionUpdateRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The namespace of the Workflow Execution to which the Update was // originally issued. Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` @@ -9530,11 +16952,6 @@ func (x *PollWorkflowExecutionUpdateRequest) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use PollWorkflowExecutionUpdateRequest.ProtoReflect.Descriptor instead. -func (*PollWorkflowExecutionUpdateRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{118} -} - func (x *PollWorkflowExecutionUpdateRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -9563,8 +16980,72 @@ func (x *PollWorkflowExecutionUpdateRequest) GetWaitPolicy() *v117.WaitPolicy { return nil } +func (x *PollWorkflowExecutionUpdateRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *PollWorkflowExecutionUpdateRequest) SetUpdateRef(v *v117.UpdateRef) { + x.UpdateRef = v +} + +func (x *PollWorkflowExecutionUpdateRequest) SetIdentity(v string) { + x.Identity = v +} + +func (x *PollWorkflowExecutionUpdateRequest) SetWaitPolicy(v *v117.WaitPolicy) { + x.WaitPolicy = v +} + +func (x *PollWorkflowExecutionUpdateRequest) HasUpdateRef() bool { + if x == nil { + return false + } + return x.UpdateRef != nil +} + +func (x *PollWorkflowExecutionUpdateRequest) HasWaitPolicy() bool { + if x == nil { + return false + } + return x.WaitPolicy != nil +} + +func (x *PollWorkflowExecutionUpdateRequest) ClearUpdateRef() { + x.UpdateRef = nil +} + +func (x *PollWorkflowExecutionUpdateRequest) ClearWaitPolicy() { + x.WaitPolicy = nil +} + +type PollWorkflowExecutionUpdateRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The namespace of the Workflow Execution to which the Update was + // originally issued. + Namespace string + // The Update reference returned in the initial UpdateWorkflowExecutionResponse. + UpdateRef *v117.UpdateRef + // The identity of the worker/client who is polling this Update outcome. + Identity string + // Specifies client's intent to wait for Update results. + // Omit to request a non-blocking poll. + WaitPolicy *v117.WaitPolicy +} + +func (b0 PollWorkflowExecutionUpdateRequest_builder) Build() *PollWorkflowExecutionUpdateRequest { + m0 := &PollWorkflowExecutionUpdateRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.UpdateRef = b.UpdateRef + x.Identity = b.Identity + x.WaitPolicy = b.WaitPolicy + return m0 +} + type PollWorkflowExecutionUpdateResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The outcome of the update if and only if the update has completed. If // this response is being returned before the update has completed (e.g. due // to the specification of a wait policy that only waits on @@ -9613,11 +17094,6 @@ func (x *PollWorkflowExecutionUpdateResponse) ProtoReflect() protoreflect.Messag return mi.MessageOf(x) } -// Deprecated: Use PollWorkflowExecutionUpdateResponse.ProtoReflect.Descriptor instead. -func (*PollWorkflowExecutionUpdateResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{119} -} - func (x *PollWorkflowExecutionUpdateResponse) GetOutcome() *v117.Outcome { if x != nil { return x.Outcome @@ -9639,8 +17115,76 @@ func (x *PollWorkflowExecutionUpdateResponse) GetUpdateRef() *v117.UpdateRef { return nil } +func (x *PollWorkflowExecutionUpdateResponse) SetOutcome(v *v117.Outcome) { + x.Outcome = v +} + +func (x *PollWorkflowExecutionUpdateResponse) SetStage(v v11.UpdateWorkflowExecutionLifecycleStage) { + x.Stage = v +} + +func (x *PollWorkflowExecutionUpdateResponse) SetUpdateRef(v *v117.UpdateRef) { + x.UpdateRef = v +} + +func (x *PollWorkflowExecutionUpdateResponse) HasOutcome() bool { + if x == nil { + return false + } + return x.Outcome != nil +} + +func (x *PollWorkflowExecutionUpdateResponse) HasUpdateRef() bool { + if x == nil { + return false + } + return x.UpdateRef != nil +} + +func (x *PollWorkflowExecutionUpdateResponse) ClearOutcome() { + x.Outcome = nil +} + +func (x *PollWorkflowExecutionUpdateResponse) ClearUpdateRef() { + x.UpdateRef = nil +} + +type PollWorkflowExecutionUpdateResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The outcome of the update if and only if the update has completed. If + // this response is being returned before the update has completed (e.g. due + // to the specification of a wait policy that only waits on + // UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ACCEPTED) then this field will + // not be set. + Outcome *v117.Outcome + // The most advanced lifecycle stage that the Update is known to have + // reached, where lifecycle stages are ordered + // UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_UNSPECIFIED < + // UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ADMITTED < + // UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ACCEPTED < + // UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_COMPLETED. + // UNSPECIFIED will be returned if and only if the server's maximum wait + // time was reached before the Update reached the stage specified in the + // request WaitPolicy, and before the context deadline expired; clients may + // may then retry the call as needed. + Stage v11.UpdateWorkflowExecutionLifecycleStage + // Sufficient information to address this Update. + UpdateRef *v117.UpdateRef +} + +func (b0 PollWorkflowExecutionUpdateResponse_builder) Build() *PollWorkflowExecutionUpdateResponse { + m0 := &PollWorkflowExecutionUpdateResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Outcome = b.Outcome + x.Stage = b.Stage + x.UpdateRef = b.UpdateRef + return m0 +} + type PollNexusTaskQueueRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // The identity of the client who initiated this request. Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` @@ -9687,11 +17231,6 @@ func (x *PollNexusTaskQueueRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PollNexusTaskQueueRequest.ProtoReflect.Descriptor instead. -func (*PollNexusTaskQueueRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{120} -} - func (x *PollNexusTaskQueueRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -9717,33 +17256,133 @@ func (x *PollNexusTaskQueueRequest) GetTaskQueue() *v14.TaskQueue { if x != nil { return x.TaskQueue } - return nil + return nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *PollNexusTaskQueueRequest) GetWorkerVersionCapabilities() *v13.WorkerVersionCapabilities { + if x != nil { + return x.WorkerVersionCapabilities + } + return nil +} + +func (x *PollNexusTaskQueueRequest) GetDeploymentOptions() *v18.WorkerDeploymentOptions { + if x != nil { + return x.DeploymentOptions + } + return nil +} + +func (x *PollNexusTaskQueueRequest) GetWorkerHeartbeat() []*v114.WorkerHeartbeat { + if x != nil { + return x.WorkerHeartbeat + } + return nil +} + +func (x *PollNexusTaskQueueRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *PollNexusTaskQueueRequest) SetIdentity(v string) { + x.Identity = v +} + +func (x *PollNexusTaskQueueRequest) SetWorkerInstanceKey(v string) { + x.WorkerInstanceKey = v +} + +func (x *PollNexusTaskQueueRequest) SetTaskQueue(v *v14.TaskQueue) { + x.TaskQueue = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *PollNexusTaskQueueRequest) SetWorkerVersionCapabilities(v *v13.WorkerVersionCapabilities) { + x.WorkerVersionCapabilities = v +} + +func (x *PollNexusTaskQueueRequest) SetDeploymentOptions(v *v18.WorkerDeploymentOptions) { + x.DeploymentOptions = v +} + +func (x *PollNexusTaskQueueRequest) SetWorkerHeartbeat(v []*v114.WorkerHeartbeat) { + x.WorkerHeartbeat = v +} + +func (x *PollNexusTaskQueueRequest) HasTaskQueue() bool { + if x == nil { + return false + } + return x.TaskQueue != nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *PollNexusTaskQueueRequest) HasWorkerVersionCapabilities() bool { + if x == nil { + return false + } + return x.WorkerVersionCapabilities != nil +} + +func (x *PollNexusTaskQueueRequest) HasDeploymentOptions() bool { + if x == nil { + return false + } + return x.DeploymentOptions != nil +} + +func (x *PollNexusTaskQueueRequest) ClearTaskQueue() { + x.TaskQueue = nil } // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. -func (x *PollNexusTaskQueueRequest) GetWorkerVersionCapabilities() *v13.WorkerVersionCapabilities { - if x != nil { - return x.WorkerVersionCapabilities - } - return nil +func (x *PollNexusTaskQueueRequest) ClearWorkerVersionCapabilities() { + x.WorkerVersionCapabilities = nil } -func (x *PollNexusTaskQueueRequest) GetDeploymentOptions() *v18.WorkerDeploymentOptions { - if x != nil { - return x.DeploymentOptions - } - return nil +func (x *PollNexusTaskQueueRequest) ClearDeploymentOptions() { + x.DeploymentOptions = nil } -func (x *PollNexusTaskQueueRequest) GetWorkerHeartbeat() []*v114.WorkerHeartbeat { - if x != nil { - return x.WorkerHeartbeat - } - return nil +type PollNexusTaskQueueRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + // The identity of the client who initiated this request. + Identity string + // A unique key for this worker instance, used for tracking worker lifecycle. + // This is guaranteed to be unique, whereas identity is not guaranteed to be unique. + WorkerInstanceKey string + TaskQueue *v14.TaskQueue + // Information about this worker's build identifier and if it is choosing to use the versioning + // feature. See the `WorkerVersionCapabilities` docstring for more. + // Deprecated. Replaced by deployment_options. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + WorkerVersionCapabilities *v13.WorkerVersionCapabilities + // Worker deployment options that user has set in the worker. + DeploymentOptions *v18.WorkerDeploymentOptions + // Worker info to be sent to the server. + WorkerHeartbeat []*v114.WorkerHeartbeat +} + +func (b0 PollNexusTaskQueueRequest_builder) Build() *PollNexusTaskQueueRequest { + m0 := &PollNexusTaskQueueRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.Identity = b.Identity + x.WorkerInstanceKey = b.WorkerInstanceKey + x.TaskQueue = b.TaskQueue + x.WorkerVersionCapabilities = b.WorkerVersionCapabilities + x.DeploymentOptions = b.DeploymentOptions + x.WorkerHeartbeat = b.WorkerHeartbeat + return m0 } type PollNexusTaskQueueResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // An opaque unique identifier for this task for correlating a completion request the embedded request. TaskToken []byte `protobuf:"bytes,1,opt,name=task_token,json=taskToken,proto3" json:"task_token,omitempty"` // Embedded request as translated from the incoming frontend request. @@ -9779,11 +17418,6 @@ func (x *PollNexusTaskQueueResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PollNexusTaskQueueResponse.ProtoReflect.Descriptor instead. -func (*PollNexusTaskQueueResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{121} -} - func (x *PollNexusTaskQueueResponse) GetTaskToken() []byte { if x != nil { return x.TaskToken @@ -9805,8 +17439,66 @@ func (x *PollNexusTaskQueueResponse) GetPollerScalingDecision() *v14.PollerScali return nil } +func (x *PollNexusTaskQueueResponse) SetTaskToken(v []byte) { + if v == nil { + v = []byte{} + } + x.TaskToken = v +} + +func (x *PollNexusTaskQueueResponse) SetRequest(v *v119.Request) { + x.Request = v +} + +func (x *PollNexusTaskQueueResponse) SetPollerScalingDecision(v *v14.PollerScalingDecision) { + x.PollerScalingDecision = v +} + +func (x *PollNexusTaskQueueResponse) HasRequest() bool { + if x == nil { + return false + } + return x.Request != nil +} + +func (x *PollNexusTaskQueueResponse) HasPollerScalingDecision() bool { + if x == nil { + return false + } + return x.PollerScalingDecision != nil +} + +func (x *PollNexusTaskQueueResponse) ClearRequest() { + x.Request = nil +} + +func (x *PollNexusTaskQueueResponse) ClearPollerScalingDecision() { + x.PollerScalingDecision = nil +} + +type PollNexusTaskQueueResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // An opaque unique identifier for this task for correlating a completion request the embedded request. + TaskToken []byte + // Embedded request as translated from the incoming frontend request. + Request *v119.Request + // Server-advised information the SDK may use to adjust its poller count. + PollerScalingDecision *v14.PollerScalingDecision +} + +func (b0 PollNexusTaskQueueResponse_builder) Build() *PollNexusTaskQueueResponse { + m0 := &PollNexusTaskQueueResponse{} + b, x := &b0, m0 + _, _ = b, x + x.TaskToken = b.TaskToken + x.Request = b.Request + x.PollerScalingDecision = b.PollerScalingDecision + return m0 +} + type RespondNexusTaskCompletedRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // The identity of the client who initiated this request. Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` @@ -9843,11 +17535,6 @@ func (x *RespondNexusTaskCompletedRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RespondNexusTaskCompletedRequest.ProtoReflect.Descriptor instead. -func (*RespondNexusTaskCompletedRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{122} -} - func (x *RespondNexusTaskCompletedRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -9876,8 +17563,61 @@ func (x *RespondNexusTaskCompletedRequest) GetResponse() *v119.Response { return nil } +func (x *RespondNexusTaskCompletedRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *RespondNexusTaskCompletedRequest) SetIdentity(v string) { + x.Identity = v +} + +func (x *RespondNexusTaskCompletedRequest) SetTaskToken(v []byte) { + if v == nil { + v = []byte{} + } + x.TaskToken = v +} + +func (x *RespondNexusTaskCompletedRequest) SetResponse(v *v119.Response) { + x.Response = v +} + +func (x *RespondNexusTaskCompletedRequest) HasResponse() bool { + if x == nil { + return false + } + return x.Response != nil +} + +func (x *RespondNexusTaskCompletedRequest) ClearResponse() { + x.Response = nil +} + +type RespondNexusTaskCompletedRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + // The identity of the client who initiated this request. + Identity string + // A unique identifier for this task as received via a poll response. + TaskToken []byte + // Embedded response to be translated into a frontend response. + Response *v119.Response +} + +func (b0 RespondNexusTaskCompletedRequest_builder) Build() *RespondNexusTaskCompletedRequest { + m0 := &RespondNexusTaskCompletedRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.Identity = b.Identity + x.TaskToken = b.TaskToken + x.Response = b.Response + return m0 +} + type RespondNexusTaskCompletedResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -9907,13 +17647,20 @@ func (x *RespondNexusTaskCompletedResponse) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use RespondNexusTaskCompletedResponse.ProtoReflect.Descriptor instead. -func (*RespondNexusTaskCompletedResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{123} +type RespondNexusTaskCompletedResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 RespondNexusTaskCompletedResponse_builder) Build() *RespondNexusTaskCompletedResponse { + m0 := &RespondNexusTaskCompletedResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type RespondNexusTaskFailedRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // The identity of the client who initiated this request. Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` @@ -9950,11 +17697,6 @@ func (x *RespondNexusTaskFailedRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RespondNexusTaskFailedRequest.ProtoReflect.Descriptor instead. -func (*RespondNexusTaskFailedRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{124} -} - func (x *RespondNexusTaskFailedRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -9983,8 +17725,61 @@ func (x *RespondNexusTaskFailedRequest) GetError() *v119.HandlerError { return nil } +func (x *RespondNexusTaskFailedRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *RespondNexusTaskFailedRequest) SetIdentity(v string) { + x.Identity = v +} + +func (x *RespondNexusTaskFailedRequest) SetTaskToken(v []byte) { + if v == nil { + v = []byte{} + } + x.TaskToken = v +} + +func (x *RespondNexusTaskFailedRequest) SetError(v *v119.HandlerError) { + x.Error = v +} + +func (x *RespondNexusTaskFailedRequest) HasError() bool { + if x == nil { + return false + } + return x.Error != nil +} + +func (x *RespondNexusTaskFailedRequest) ClearError() { + x.Error = nil +} + +type RespondNexusTaskFailedRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + // The identity of the client who initiated this request. + Identity string + // A unique identifier for this task. + TaskToken []byte + // The error the handler failed with. + Error *v119.HandlerError +} + +func (b0 RespondNexusTaskFailedRequest_builder) Build() *RespondNexusTaskFailedRequest { + m0 := &RespondNexusTaskFailedRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.Identity = b.Identity + x.TaskToken = b.TaskToken + x.Error = b.Error + return m0 +} + type RespondNexusTaskFailedResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -10014,13 +17809,20 @@ func (x *RespondNexusTaskFailedResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RespondNexusTaskFailedResponse.ProtoReflect.Descriptor instead. -func (*RespondNexusTaskFailedResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{125} +type RespondNexusTaskFailedResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 RespondNexusTaskFailedResponse_builder) Build() *RespondNexusTaskFailedResponse { + m0 := &RespondNexusTaskFailedResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type ExecuteMultiOperationRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // List of operations to execute within a single workflow. // @@ -10060,11 +17862,6 @@ func (x *ExecuteMultiOperationRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ExecuteMultiOperationRequest.ProtoReflect.Descriptor instead. -func (*ExecuteMultiOperationRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{126} -} - func (x *ExecuteMultiOperationRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -10079,6 +17876,38 @@ func (x *ExecuteMultiOperationRequest) GetOperations() []*ExecuteMultiOperationR return nil } +func (x *ExecuteMultiOperationRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *ExecuteMultiOperationRequest) SetOperations(v []*ExecuteMultiOperationRequest_Operation) { + x.Operations = v +} + +type ExecuteMultiOperationRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + // List of operations to execute within a single workflow. + // + // Preconditions: + // - The list of operations must not be empty. + // - The workflow ids must match across operations. + // - The only valid list of operations at this time is [StartWorkflow, UpdateWorkflow], in this order. + // + // Note that additional operation-specific restrictions have to be considered. + Operations []*ExecuteMultiOperationRequest_Operation +} + +func (b0 ExecuteMultiOperationRequest_builder) Build() *ExecuteMultiOperationRequest { + m0 := &ExecuteMultiOperationRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.Operations = b.Operations + return m0 +} + // IMPORTANT: For [StartWorkflow, UpdateWorkflow] combination ("Update-with-Start") when both // 1. the workflow update for the requested update ID has already completed, and // 2. the workflow for the requested workflow ID has already been closed, @@ -10087,7 +17916,7 @@ func (x *ExecuteMultiOperationRequest) GetOperations() []*ExecuteMultiOperationR // - an update response containing the update's outcome, and // - a start response with a `status` field that reflects the workflow's current state. type ExecuteMultiOperationResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Responses []*ExecuteMultiOperationResponse_Response `protobuf:"bytes,1,rep,name=responses,proto3" json:"responses,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -10118,11 +17947,6 @@ func (x *ExecuteMultiOperationResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ExecuteMultiOperationResponse.ProtoReflect.Descriptor instead. -func (*ExecuteMultiOperationResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{127} -} - func (x *ExecuteMultiOperationResponse) GetResponses() []*ExecuteMultiOperationResponse_Response { if x != nil { return x.Responses @@ -10130,9 +17954,27 @@ func (x *ExecuteMultiOperationResponse) GetResponses() []*ExecuteMultiOperationR return nil } +func (x *ExecuteMultiOperationResponse) SetResponses(v []*ExecuteMultiOperationResponse_Response) { + x.Responses = v +} + +type ExecuteMultiOperationResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Responses []*ExecuteMultiOperationResponse_Response +} + +func (b0 ExecuteMultiOperationResponse_builder) Build() *ExecuteMultiOperationResponse { + m0 := &ExecuteMultiOperationResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Responses = b.Responses + return m0 +} + // NOTE: keep in sync with temporal.api.batch.v1.BatchOperationUpdateActivityOptions type UpdateActivityOptionsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Namespace of the workflow which scheduled this activity Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // Execution info of the workflow which scheduled this activity @@ -10183,88 +18025,299 @@ func (x *UpdateActivityOptionsRequest) ProtoReflect() protoreflect.Message { } return ms } - return mi.MessageOf(x) + return mi.MessageOf(x) +} + +func (x *UpdateActivityOptionsRequest) GetNamespace() string { + if x != nil { + return x.Namespace + } + return "" +} + +func (x *UpdateActivityOptionsRequest) GetExecution() *v13.WorkflowExecution { + if x != nil { + return x.Execution + } + return nil +} + +func (x *UpdateActivityOptionsRequest) GetIdentity() string { + if x != nil { + return x.Identity + } + return "" +} + +func (x *UpdateActivityOptionsRequest) GetActivityOptions() *v120.ActivityOptions { + if x != nil { + return x.ActivityOptions + } + return nil +} + +func (x *UpdateActivityOptionsRequest) GetUpdateMask() *fieldmaskpb.FieldMask { + if x != nil { + return x.UpdateMask + } + return nil +} + +func (x *UpdateActivityOptionsRequest) GetActivity() isUpdateActivityOptionsRequest_Activity { + if x != nil { + return x.Activity + } + return nil +} + +func (x *UpdateActivityOptionsRequest) GetId() string { + if x != nil { + if x, ok := x.Activity.(*UpdateActivityOptionsRequest_Id); ok { + return x.Id + } + } + return "" +} + +func (x *UpdateActivityOptionsRequest) GetType() string { + if x != nil { + if x, ok := x.Activity.(*UpdateActivityOptionsRequest_Type); ok { + return x.Type + } + } + return "" +} + +func (x *UpdateActivityOptionsRequest) GetMatchAll() bool { + if x != nil { + if x, ok := x.Activity.(*UpdateActivityOptionsRequest_MatchAll); ok { + return x.MatchAll + } + } + return false +} + +func (x *UpdateActivityOptionsRequest) GetRestoreOriginal() bool { + if x != nil { + return x.RestoreOriginal + } + return false +} + +func (x *UpdateActivityOptionsRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *UpdateActivityOptionsRequest) SetExecution(v *v13.WorkflowExecution) { + x.Execution = v +} + +func (x *UpdateActivityOptionsRequest) SetIdentity(v string) { + x.Identity = v +} + +func (x *UpdateActivityOptionsRequest) SetActivityOptions(v *v120.ActivityOptions) { + x.ActivityOptions = v +} + +func (x *UpdateActivityOptionsRequest) SetUpdateMask(v *fieldmaskpb.FieldMask) { + x.UpdateMask = v +} + +func (x *UpdateActivityOptionsRequest) SetId(v string) { + x.Activity = &UpdateActivityOptionsRequest_Id{v} +} + +func (x *UpdateActivityOptionsRequest) SetType(v string) { + x.Activity = &UpdateActivityOptionsRequest_Type{v} +} + +func (x *UpdateActivityOptionsRequest) SetMatchAll(v bool) { + x.Activity = &UpdateActivityOptionsRequest_MatchAll{v} +} + +func (x *UpdateActivityOptionsRequest) SetRestoreOriginal(v bool) { + x.RestoreOriginal = v +} + +func (x *UpdateActivityOptionsRequest) HasExecution() bool { + if x == nil { + return false + } + return x.Execution != nil +} + +func (x *UpdateActivityOptionsRequest) HasActivityOptions() bool { + if x == nil { + return false + } + return x.ActivityOptions != nil +} + +func (x *UpdateActivityOptionsRequest) HasUpdateMask() bool { + if x == nil { + return false + } + return x.UpdateMask != nil +} + +func (x *UpdateActivityOptionsRequest) HasActivity() bool { + if x == nil { + return false + } + return x.Activity != nil +} + +func (x *UpdateActivityOptionsRequest) HasId() bool { + if x == nil { + return false + } + _, ok := x.Activity.(*UpdateActivityOptionsRequest_Id) + return ok +} + +func (x *UpdateActivityOptionsRequest) HasType() bool { + if x == nil { + return false + } + _, ok := x.Activity.(*UpdateActivityOptionsRequest_Type) + return ok +} + +func (x *UpdateActivityOptionsRequest) HasMatchAll() bool { + if x == nil { + return false + } + _, ok := x.Activity.(*UpdateActivityOptionsRequest_MatchAll) + return ok } -// Deprecated: Use UpdateActivityOptionsRequest.ProtoReflect.Descriptor instead. -func (*UpdateActivityOptionsRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{128} +func (x *UpdateActivityOptionsRequest) ClearExecution() { + x.Execution = nil } -func (x *UpdateActivityOptionsRequest) GetNamespace() string { - if x != nil { - return x.Namespace - } - return "" +func (x *UpdateActivityOptionsRequest) ClearActivityOptions() { + x.ActivityOptions = nil } -func (x *UpdateActivityOptionsRequest) GetExecution() *v13.WorkflowExecution { - if x != nil { - return x.Execution - } - return nil +func (x *UpdateActivityOptionsRequest) ClearUpdateMask() { + x.UpdateMask = nil } -func (x *UpdateActivityOptionsRequest) GetIdentity() string { - if x != nil { - return x.Identity - } - return "" +func (x *UpdateActivityOptionsRequest) ClearActivity() { + x.Activity = nil } -func (x *UpdateActivityOptionsRequest) GetActivityOptions() *v120.ActivityOptions { - if x != nil { - return x.ActivityOptions +func (x *UpdateActivityOptionsRequest) ClearId() { + if _, ok := x.Activity.(*UpdateActivityOptionsRequest_Id); ok { + x.Activity = nil } - return nil } -func (x *UpdateActivityOptionsRequest) GetUpdateMask() *fieldmaskpb.FieldMask { - if x != nil { - return x.UpdateMask +func (x *UpdateActivityOptionsRequest) ClearType() { + if _, ok := x.Activity.(*UpdateActivityOptionsRequest_Type); ok { + x.Activity = nil } - return nil } -func (x *UpdateActivityOptionsRequest) GetActivity() isUpdateActivityOptionsRequest_Activity { - if x != nil { - return x.Activity +func (x *UpdateActivityOptionsRequest) ClearMatchAll() { + if _, ok := x.Activity.(*UpdateActivityOptionsRequest_MatchAll); ok { + x.Activity = nil } - return nil } -func (x *UpdateActivityOptionsRequest) GetId() string { - if x != nil { - if x, ok := x.Activity.(*UpdateActivityOptionsRequest_Id); ok { - return x.Id - } +const UpdateActivityOptionsRequest_Activity_not_set_case case_UpdateActivityOptionsRequest_Activity = 0 +const UpdateActivityOptionsRequest_Id_case case_UpdateActivityOptionsRequest_Activity = 6 +const UpdateActivityOptionsRequest_Type_case case_UpdateActivityOptionsRequest_Activity = 7 +const UpdateActivityOptionsRequest_MatchAll_case case_UpdateActivityOptionsRequest_Activity = 9 + +func (x *UpdateActivityOptionsRequest) WhichActivity() case_UpdateActivityOptionsRequest_Activity { + if x == nil { + return UpdateActivityOptionsRequest_Activity_not_set_case + } + switch x.Activity.(type) { + case *UpdateActivityOptionsRequest_Id: + return UpdateActivityOptionsRequest_Id_case + case *UpdateActivityOptionsRequest_Type: + return UpdateActivityOptionsRequest_Type_case + case *UpdateActivityOptionsRequest_MatchAll: + return UpdateActivityOptionsRequest_MatchAll_case + default: + return UpdateActivityOptionsRequest_Activity_not_set_case } - return "" } -func (x *UpdateActivityOptionsRequest) GetType() string { - if x != nil { - if x, ok := x.Activity.(*UpdateActivityOptionsRequest_Type); ok { - return x.Type - } - } - return "" +type UpdateActivityOptionsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Namespace of the workflow which scheduled this activity + Namespace string + // Execution info of the workflow which scheduled this activity + Execution *v13.WorkflowExecution + // The identity of the client who initiated this request + Identity string + // Activity options. Partial updates are accepted and controlled by update_mask + ActivityOptions *v120.ActivityOptions + // Controls which fields from `activity_options` will be applied + UpdateMask *fieldmaskpb.FieldMask + // either activity id, activity type or update_all must be provided + + // Fields of oneof Activity: + // Only activity with this ID will be updated. + Id *string + // Update all running activities of this type. + Type *string + // Update all running activities. + MatchAll *bool + // -- end of Activity + // If set, the activity options will be restored to the default. + // Default options are then options activity was created with. + // They are part of the first SCHEDULE event. + // This flag cannot be combined with any other option; if you supply + // restore_original together with other options, the request will be rejected. + RestoreOriginal bool } -func (x *UpdateActivityOptionsRequest) GetMatchAll() bool { - if x != nil { - if x, ok := x.Activity.(*UpdateActivityOptionsRequest_MatchAll); ok { - return x.MatchAll - } +func (b0 UpdateActivityOptionsRequest_builder) Build() *UpdateActivityOptionsRequest { + m0 := &UpdateActivityOptionsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.Execution = b.Execution + x.Identity = b.Identity + x.ActivityOptions = b.ActivityOptions + x.UpdateMask = b.UpdateMask + if b.Id != nil { + x.Activity = &UpdateActivityOptionsRequest_Id{*b.Id} } - return false + if b.Type != nil { + x.Activity = &UpdateActivityOptionsRequest_Type{*b.Type} + } + if b.MatchAll != nil { + x.Activity = &UpdateActivityOptionsRequest_MatchAll{*b.MatchAll} + } + x.RestoreOriginal = b.RestoreOriginal + return m0 } -func (x *UpdateActivityOptionsRequest) GetRestoreOriginal() bool { - if x != nil { - return x.RestoreOriginal +type case_UpdateActivityOptionsRequest_Activity protoreflect.FieldNumber + +func (x case_UpdateActivityOptionsRequest_Activity) String() string { + switch x { + case UpdateActivityOptionsRequest_Activity_not_set_case: + return "UpdateActivityOptionsRequestActivityNotSetCase" + case UpdateActivityOptionsRequest_Id_case: + return "UpdateActivityOptionsRequestIdCase" + case UpdateActivityOptionsRequest_Type_case: + return "UpdateActivityOptionsRequestTypeCase" + case UpdateActivityOptionsRequest_MatchAll_case: + return "UpdateActivityOptionsRequestMatchAllCase" + + // Only activity with this ID will be updated. + default: + return strconv.Itoa(int(x)) } - return false + } type isUpdateActivityOptionsRequest_Activity interface { @@ -10272,7 +18325,6 @@ type isUpdateActivityOptionsRequest_Activity interface { } type UpdateActivityOptionsRequest_Id struct { - // Only activity with this ID will be updated. Id string `protobuf:"bytes,6,opt,name=id,proto3,oneof"` } @@ -10293,7 +18345,7 @@ func (*UpdateActivityOptionsRequest_Type) isUpdateActivityOptionsRequest_Activit func (*UpdateActivityOptionsRequest_MatchAll) isUpdateActivityOptionsRequest_Activity() {} type UpdateActivityOptionsResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Activity options after an update ActivityOptions *v120.ActivityOptions `protobuf:"bytes,1,opt,name=activity_options,json=activityOptions,proto3" json:"activity_options,omitempty"` unknownFields protoimpl.UnknownFields @@ -10325,11 +18377,6 @@ func (x *UpdateActivityOptionsResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UpdateActivityOptionsResponse.ProtoReflect.Descriptor instead. -func (*UpdateActivityOptionsResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{129} -} - func (x *UpdateActivityOptionsResponse) GetActivityOptions() *v120.ActivityOptions { if x != nil { return x.ActivityOptions @@ -10337,8 +18384,38 @@ func (x *UpdateActivityOptionsResponse) GetActivityOptions() *v120.ActivityOptio return nil } +func (x *UpdateActivityOptionsResponse) SetActivityOptions(v *v120.ActivityOptions) { + x.ActivityOptions = v +} + +func (x *UpdateActivityOptionsResponse) HasActivityOptions() bool { + if x == nil { + return false + } + return x.ActivityOptions != nil +} + +func (x *UpdateActivityOptionsResponse) ClearActivityOptions() { + x.ActivityOptions = nil +} + +type UpdateActivityOptionsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Activity options after an update + ActivityOptions *v120.ActivityOptions +} + +func (b0 UpdateActivityOptionsResponse_builder) Build() *UpdateActivityOptionsResponse { + m0 := &UpdateActivityOptionsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.ActivityOptions = b.ActivityOptions + return m0 +} + type PauseActivityRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Namespace of the workflow which scheduled this activity. Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // Execution info of the workflow which scheduled this activity @@ -10383,11 +18460,6 @@ func (x *PauseActivityRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PauseActivityRequest.ProtoReflect.Descriptor instead. -func (*PauseActivityRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{130} -} - func (x *PauseActivityRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -10441,6 +18513,153 @@ func (x *PauseActivityRequest) GetReason() string { return "" } +func (x *PauseActivityRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *PauseActivityRequest) SetExecution(v *v13.WorkflowExecution) { + x.Execution = v +} + +func (x *PauseActivityRequest) SetIdentity(v string) { + x.Identity = v +} + +func (x *PauseActivityRequest) SetId(v string) { + x.Activity = &PauseActivityRequest_Id{v} +} + +func (x *PauseActivityRequest) SetType(v string) { + x.Activity = &PauseActivityRequest_Type{v} +} + +func (x *PauseActivityRequest) SetReason(v string) { + x.Reason = v +} + +func (x *PauseActivityRequest) HasExecution() bool { + if x == nil { + return false + } + return x.Execution != nil +} + +func (x *PauseActivityRequest) HasActivity() bool { + if x == nil { + return false + } + return x.Activity != nil +} + +func (x *PauseActivityRequest) HasId() bool { + if x == nil { + return false + } + _, ok := x.Activity.(*PauseActivityRequest_Id) + return ok +} + +func (x *PauseActivityRequest) HasType() bool { + if x == nil { + return false + } + _, ok := x.Activity.(*PauseActivityRequest_Type) + return ok +} + +func (x *PauseActivityRequest) ClearExecution() { + x.Execution = nil +} + +func (x *PauseActivityRequest) ClearActivity() { + x.Activity = nil +} + +func (x *PauseActivityRequest) ClearId() { + if _, ok := x.Activity.(*PauseActivityRequest_Id); ok { + x.Activity = nil + } +} + +func (x *PauseActivityRequest) ClearType() { + if _, ok := x.Activity.(*PauseActivityRequest_Type); ok { + x.Activity = nil + } +} + +const PauseActivityRequest_Activity_not_set_case case_PauseActivityRequest_Activity = 0 +const PauseActivityRequest_Id_case case_PauseActivityRequest_Activity = 4 +const PauseActivityRequest_Type_case case_PauseActivityRequest_Activity = 5 + +func (x *PauseActivityRequest) WhichActivity() case_PauseActivityRequest_Activity { + if x == nil { + return PauseActivityRequest_Activity_not_set_case + } + switch x.Activity.(type) { + case *PauseActivityRequest_Id: + return PauseActivityRequest_Id_case + case *PauseActivityRequest_Type: + return PauseActivityRequest_Type_case + default: + return PauseActivityRequest_Activity_not_set_case + } +} + +type PauseActivityRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Namespace of the workflow which scheduled this activity. + Namespace string + // Execution info of the workflow which scheduled this activity + Execution *v13.WorkflowExecution + // The identity of the client who initiated this request. + Identity string + // either activity id or activity type must be provided + + // Fields of oneof Activity: + // Only the activity with this ID will be paused. + Id *string + // Pause all running activities of this type. + // Note: Experimental - the behavior of pause by activity type might change in a future release. + Type *string + // -- end of Activity + // Reason to pause the activity. + Reason string +} + +func (b0 PauseActivityRequest_builder) Build() *PauseActivityRequest { + m0 := &PauseActivityRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.Execution = b.Execution + x.Identity = b.Identity + if b.Id != nil { + x.Activity = &PauseActivityRequest_Id{*b.Id} + } + if b.Type != nil { + x.Activity = &PauseActivityRequest_Type{*b.Type} + } + x.Reason = b.Reason + return m0 +} + +type case_PauseActivityRequest_Activity protoreflect.FieldNumber + +func (x case_PauseActivityRequest_Activity) String() string { + switch x { + case PauseActivityRequest_Activity_not_set_case: + return "PauseActivityRequestActivityNotSetCase" + case PauseActivityRequest_Id_case: + return "PauseActivityRequestIdCase" + case PauseActivityRequest_Type_case: + return "PauseActivityRequestTypeCase" + default: + return strconv.Itoa(int(x)) + } + +} + type isPauseActivityRequest_Activity interface { isPauseActivityRequest_Activity() } @@ -10461,7 +18680,7 @@ func (*PauseActivityRequest_Id) isPauseActivityRequest_Activity() {} func (*PauseActivityRequest_Type) isPauseActivityRequest_Activity() {} type PauseActivityResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -10491,13 +18710,20 @@ func (x *PauseActivityResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PauseActivityResponse.ProtoReflect.Descriptor instead. -func (*PauseActivityResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{131} +type PauseActivityResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 PauseActivityResponse_builder) Build() *PauseActivityResponse { + m0 := &PauseActivityResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type UnpauseActivityRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Namespace of the workflow which scheduled this activity. Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // Execution info of the workflow which scheduled this activity @@ -10547,11 +18773,6 @@ func (x *UnpauseActivityRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UnpauseActivityRequest.ProtoReflect.Descriptor instead. -func (*UnpauseActivityRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{132} -} - func (x *UnpauseActivityRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -10598,34 +18819,236 @@ func (x *UnpauseActivityRequest) GetType() string { return "" } -func (x *UnpauseActivityRequest) GetUnpauseAll() bool { - if x != nil { - if x, ok := x.Activity.(*UnpauseActivityRequest_UnpauseAll); ok { - return x.UnpauseAll - } +func (x *UnpauseActivityRequest) GetUnpauseAll() bool { + if x != nil { + if x, ok := x.Activity.(*UnpauseActivityRequest_UnpauseAll); ok { + return x.UnpauseAll + } + } + return false +} + +func (x *UnpauseActivityRequest) GetResetAttempts() bool { + if x != nil { + return x.ResetAttempts + } + return false +} + +func (x *UnpauseActivityRequest) GetResetHeartbeat() bool { + if x != nil { + return x.ResetHeartbeat + } + return false +} + +func (x *UnpauseActivityRequest) GetJitter() *durationpb.Duration { + if x != nil { + return x.Jitter + } + return nil +} + +func (x *UnpauseActivityRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *UnpauseActivityRequest) SetExecution(v *v13.WorkflowExecution) { + x.Execution = v +} + +func (x *UnpauseActivityRequest) SetIdentity(v string) { + x.Identity = v +} + +func (x *UnpauseActivityRequest) SetId(v string) { + x.Activity = &UnpauseActivityRequest_Id{v} +} + +func (x *UnpauseActivityRequest) SetType(v string) { + x.Activity = &UnpauseActivityRequest_Type{v} +} + +func (x *UnpauseActivityRequest) SetUnpauseAll(v bool) { + x.Activity = &UnpauseActivityRequest_UnpauseAll{v} +} + +func (x *UnpauseActivityRequest) SetResetAttempts(v bool) { + x.ResetAttempts = v +} + +func (x *UnpauseActivityRequest) SetResetHeartbeat(v bool) { + x.ResetHeartbeat = v +} + +func (x *UnpauseActivityRequest) SetJitter(v *durationpb.Duration) { + x.Jitter = v +} + +func (x *UnpauseActivityRequest) HasExecution() bool { + if x == nil { + return false + } + return x.Execution != nil +} + +func (x *UnpauseActivityRequest) HasActivity() bool { + if x == nil { + return false + } + return x.Activity != nil +} + +func (x *UnpauseActivityRequest) HasId() bool { + if x == nil { + return false + } + _, ok := x.Activity.(*UnpauseActivityRequest_Id) + return ok +} + +func (x *UnpauseActivityRequest) HasType() bool { + if x == nil { + return false + } + _, ok := x.Activity.(*UnpauseActivityRequest_Type) + return ok +} + +func (x *UnpauseActivityRequest) HasUnpauseAll() bool { + if x == nil { + return false + } + _, ok := x.Activity.(*UnpauseActivityRequest_UnpauseAll) + return ok +} + +func (x *UnpauseActivityRequest) HasJitter() bool { + if x == nil { + return false + } + return x.Jitter != nil +} + +func (x *UnpauseActivityRequest) ClearExecution() { + x.Execution = nil +} + +func (x *UnpauseActivityRequest) ClearActivity() { + x.Activity = nil +} + +func (x *UnpauseActivityRequest) ClearId() { + if _, ok := x.Activity.(*UnpauseActivityRequest_Id); ok { + x.Activity = nil + } +} + +func (x *UnpauseActivityRequest) ClearType() { + if _, ok := x.Activity.(*UnpauseActivityRequest_Type); ok { + x.Activity = nil + } +} + +func (x *UnpauseActivityRequest) ClearUnpauseAll() { + if _, ok := x.Activity.(*UnpauseActivityRequest_UnpauseAll); ok { + x.Activity = nil + } +} + +func (x *UnpauseActivityRequest) ClearJitter() { + x.Jitter = nil +} + +const UnpauseActivityRequest_Activity_not_set_case case_UnpauseActivityRequest_Activity = 0 +const UnpauseActivityRequest_Id_case case_UnpauseActivityRequest_Activity = 4 +const UnpauseActivityRequest_Type_case case_UnpauseActivityRequest_Activity = 5 +const UnpauseActivityRequest_UnpauseAll_case case_UnpauseActivityRequest_Activity = 6 + +func (x *UnpauseActivityRequest) WhichActivity() case_UnpauseActivityRequest_Activity { + if x == nil { + return UnpauseActivityRequest_Activity_not_set_case + } + switch x.Activity.(type) { + case *UnpauseActivityRequest_Id: + return UnpauseActivityRequest_Id_case + case *UnpauseActivityRequest_Type: + return UnpauseActivityRequest_Type_case + case *UnpauseActivityRequest_UnpauseAll: + return UnpauseActivityRequest_UnpauseAll_case + default: + return UnpauseActivityRequest_Activity_not_set_case + } +} + +type UnpauseActivityRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Namespace of the workflow which scheduled this activity. + Namespace string + // Execution info of the workflow which scheduled this activity + Execution *v13.WorkflowExecution + // The identity of the client who initiated this request. + Identity string + // either activity id or activity type must be provided + + // Fields of oneof Activity: + // Only the activity with this ID will be unpaused. + Id *string + // Unpause all running activities with of this type. + Type *string + // Unpause all running activities. + UnpauseAll *bool + // -- end of Activity + // Providing this flag will also reset the number of attempts. + ResetAttempts bool + // Providing this flag will also reset the heartbeat details. + ResetHeartbeat bool + // If set, the activity will start at a random time within the specified jitter duration. + Jitter *durationpb.Duration +} + +func (b0 UnpauseActivityRequest_builder) Build() *UnpauseActivityRequest { + m0 := &UnpauseActivityRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.Execution = b.Execution + x.Identity = b.Identity + if b.Id != nil { + x.Activity = &UnpauseActivityRequest_Id{*b.Id} } - return false -} - -func (x *UnpauseActivityRequest) GetResetAttempts() bool { - if x != nil { - return x.ResetAttempts + if b.Type != nil { + x.Activity = &UnpauseActivityRequest_Type{*b.Type} } - return false -} - -func (x *UnpauseActivityRequest) GetResetHeartbeat() bool { - if x != nil { - return x.ResetHeartbeat + if b.UnpauseAll != nil { + x.Activity = &UnpauseActivityRequest_UnpauseAll{*b.UnpauseAll} } - return false + x.ResetAttempts = b.ResetAttempts + x.ResetHeartbeat = b.ResetHeartbeat + x.Jitter = b.Jitter + return m0 } -func (x *UnpauseActivityRequest) GetJitter() *durationpb.Duration { - if x != nil { - return x.Jitter +type case_UnpauseActivityRequest_Activity protoreflect.FieldNumber + +func (x case_UnpauseActivityRequest_Activity) String() string { + switch x { + case UnpauseActivityRequest_Activity_not_set_case: + return "UnpauseActivityRequestActivityNotSetCase" + case UnpauseActivityRequest_Id_case: + return "UnpauseActivityRequestIdCase" + case UnpauseActivityRequest_Type_case: + return "UnpauseActivityRequestTypeCase" + case UnpauseActivityRequest_UnpauseAll_case: + return "UnpauseActivityRequestUnpauseAllCase" + default + + // Only the activity with this ID will be unpaused. + : + return strconv.Itoa(int(x)) } - return nil + } type isUnpauseActivityRequest_Activity interface { @@ -10633,7 +19056,6 @@ type isUnpauseActivityRequest_Activity interface { } type UnpauseActivityRequest_Id struct { - // Only the activity with this ID will be unpaused. Id string `protobuf:"bytes,4,opt,name=id,proto3,oneof"` } @@ -10654,7 +19076,7 @@ func (*UnpauseActivityRequest_Type) isUnpauseActivityRequest_Activity() {} func (*UnpauseActivityRequest_UnpauseAll) isUnpauseActivityRequest_Activity() {} type UnpauseActivityResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -10684,14 +19106,21 @@ func (x *UnpauseActivityResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UnpauseActivityResponse.ProtoReflect.Descriptor instead. -func (*UnpauseActivityResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{133} +type UnpauseActivityResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 UnpauseActivityResponse_builder) Build() *UnpauseActivityResponse { + m0 := &UnpauseActivityResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } // NOTE: keep in sync with temporal.api.batch.v1.BatchOperationResetActivities type ResetActivityRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Namespace of the workflow which scheduled this activity. Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // Execution info of the workflow which scheduled this activity @@ -10747,11 +19176,6 @@ func (x *ResetActivityRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ResetActivityRequest.ProtoReflect.Descriptor instead. -func (*ResetActivityRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{134} -} - func (x *ResetActivityRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -10835,12 +19259,224 @@ func (x *ResetActivityRequest) GetRestoreOriginalOptions() bool { return false } +func (x *ResetActivityRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *ResetActivityRequest) SetExecution(v *v13.WorkflowExecution) { + x.Execution = v +} + +func (x *ResetActivityRequest) SetIdentity(v string) { + x.Identity = v +} + +func (x *ResetActivityRequest) SetId(v string) { + x.Activity = &ResetActivityRequest_Id{v} +} + +func (x *ResetActivityRequest) SetType(v string) { + x.Activity = &ResetActivityRequest_Type{v} +} + +func (x *ResetActivityRequest) SetMatchAll(v bool) { + x.Activity = &ResetActivityRequest_MatchAll{v} +} + +func (x *ResetActivityRequest) SetResetHeartbeat(v bool) { + x.ResetHeartbeat = v +} + +func (x *ResetActivityRequest) SetKeepPaused(v bool) { + x.KeepPaused = v +} + +func (x *ResetActivityRequest) SetJitter(v *durationpb.Duration) { + x.Jitter = v +} + +func (x *ResetActivityRequest) SetRestoreOriginalOptions(v bool) { + x.RestoreOriginalOptions = v +} + +func (x *ResetActivityRequest) HasExecution() bool { + if x == nil { + return false + } + return x.Execution != nil +} + +func (x *ResetActivityRequest) HasActivity() bool { + if x == nil { + return false + } + return x.Activity != nil +} + +func (x *ResetActivityRequest) HasId() bool { + if x == nil { + return false + } + _, ok := x.Activity.(*ResetActivityRequest_Id) + return ok +} + +func (x *ResetActivityRequest) HasType() bool { + if x == nil { + return false + } + _, ok := x.Activity.(*ResetActivityRequest_Type) + return ok +} + +func (x *ResetActivityRequest) HasMatchAll() bool { + if x == nil { + return false + } + _, ok := x.Activity.(*ResetActivityRequest_MatchAll) + return ok +} + +func (x *ResetActivityRequest) HasJitter() bool { + if x == nil { + return false + } + return x.Jitter != nil +} + +func (x *ResetActivityRequest) ClearExecution() { + x.Execution = nil +} + +func (x *ResetActivityRequest) ClearActivity() { + x.Activity = nil +} + +func (x *ResetActivityRequest) ClearId() { + if _, ok := x.Activity.(*ResetActivityRequest_Id); ok { + x.Activity = nil + } +} + +func (x *ResetActivityRequest) ClearType() { + if _, ok := x.Activity.(*ResetActivityRequest_Type); ok { + x.Activity = nil + } +} + +func (x *ResetActivityRequest) ClearMatchAll() { + if _, ok := x.Activity.(*ResetActivityRequest_MatchAll); ok { + x.Activity = nil + } +} + +func (x *ResetActivityRequest) ClearJitter() { + x.Jitter = nil +} + +const ResetActivityRequest_Activity_not_set_case case_ResetActivityRequest_Activity = 0 +const ResetActivityRequest_Id_case case_ResetActivityRequest_Activity = 4 +const ResetActivityRequest_Type_case case_ResetActivityRequest_Activity = 5 +const ResetActivityRequest_MatchAll_case case_ResetActivityRequest_Activity = 10 + +func (x *ResetActivityRequest) WhichActivity() case_ResetActivityRequest_Activity { + if x == nil { + return ResetActivityRequest_Activity_not_set_case + } + switch x.Activity.(type) { + case *ResetActivityRequest_Id: + return ResetActivityRequest_Id_case + case *ResetActivityRequest_Type: + return ResetActivityRequest_Type_case + case *ResetActivityRequest_MatchAll: + return ResetActivityRequest_MatchAll_case + default: + return ResetActivityRequest_Activity_not_set_case + } +} + +type ResetActivityRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Namespace of the workflow which scheduled this activity. + Namespace string + // Execution info of the workflow which scheduled this activity + Execution *v13.WorkflowExecution + // The identity of the client who initiated this request. + Identity string + // either activity id, activity type or update_all must be provided + + // Fields of oneof Activity: + // Only activity with this ID will be reset. + Id *string + // Reset all running activities with of this type. + Type *string + // Reset all running activities. + MatchAll *bool + // -- end of Activity + // Indicates that activity should reset heartbeat details. + // This flag will be applied only to the new instance of the activity. + ResetHeartbeat bool + // If activity is paused, it will remain paused after reset + KeepPaused bool + // If set, and activity is in backoff, the activity will start at a random time within the specified jitter duration. + // (unless it is paused and keep_paused is set) + Jitter *durationpb.Duration + // If set, the activity options will be restored to the defaults. + // Default options are then options activity was created with. + // They are part of the first SCHEDULE event. + RestoreOriginalOptions bool +} + +func (b0 ResetActivityRequest_builder) Build() *ResetActivityRequest { + m0 := &ResetActivityRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.Execution = b.Execution + x.Identity = b.Identity + if b.Id != nil { + x.Activity = &ResetActivityRequest_Id{*b.Id} + } + if b.Type != nil { + x.Activity = &ResetActivityRequest_Type{*b.Type} + } + if b.MatchAll != nil { + x.Activity = &ResetActivityRequest_MatchAll{*b.MatchAll} + } + x.ResetHeartbeat = b.ResetHeartbeat + x.KeepPaused = b.KeepPaused + x.Jitter = b.Jitter + x.RestoreOriginalOptions = b.RestoreOriginalOptions + return m0 +} + +type case_ResetActivityRequest_Activity protoreflect.FieldNumber + +func (x case_ResetActivityRequest_Activity) String() string { + switch x { + case ResetActivityRequest_Activity_not_set_case: + return "ResetActivityRequestActivityNotSetCase" + case ResetActivityRequest_Id_case: + return "ResetActivityRequestIdCase" + case ResetActivityRequest_Type_case: + return "ResetActivityRequestTypeCase" + case ResetActivityRequest_MatchAll_case: + return "ResetActivityRequestMatchAllCase" + default: + return strconv. + + // Only activity with this ID will be reset. + Itoa(int(x)) + } + +} + type isResetActivityRequest_Activity interface { isResetActivityRequest_Activity() } type ResetActivityRequest_Id struct { - // Only activity with this ID will be reset. Id string `protobuf:"bytes,4,opt,name=id,proto3,oneof"` } @@ -10861,7 +19497,7 @@ func (*ResetActivityRequest_Type) isResetActivityRequest_Activity() {} func (*ResetActivityRequest_MatchAll) isResetActivityRequest_Activity() {} type ResetActivityResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -10891,16 +19527,23 @@ func (x *ResetActivityResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ResetActivityResponse.ProtoReflect.Descriptor instead. -func (*ResetActivityResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{135} +type ResetActivityResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 ResetActivityResponse_builder) Build() *ResetActivityResponse { + m0 := &ResetActivityResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } // Keep the parameters in sync with: // - temporal.api.batch.v1.BatchOperationUpdateWorkflowExecutionOptions. // - temporal.api.workflow.v1.PostResetOperation.UpdateWorkflowOptions. type UpdateWorkflowExecutionOptionsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The namespace name of the target Workflow. Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // The target Workflow Id and (optionally) a specific Run Id thereof. @@ -10944,11 +19587,6 @@ func (x *UpdateWorkflowExecutionOptionsRequest) ProtoReflect() protoreflect.Mess return mi.MessageOf(x) } -// Deprecated: Use UpdateWorkflowExecutionOptionsRequest.ProtoReflect.Descriptor instead. -func (*UpdateWorkflowExecutionOptionsRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{136} -} - func (x *UpdateWorkflowExecutionOptionsRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -10984,8 +19622,92 @@ func (x *UpdateWorkflowExecutionOptionsRequest) GetIdentity() string { return "" } +func (x *UpdateWorkflowExecutionOptionsRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *UpdateWorkflowExecutionOptionsRequest) SetWorkflowExecution(v *v13.WorkflowExecution) { + x.WorkflowExecution = v +} + +func (x *UpdateWorkflowExecutionOptionsRequest) SetWorkflowExecutionOptions(v *v17.WorkflowExecutionOptions) { + x.WorkflowExecutionOptions = v +} + +func (x *UpdateWorkflowExecutionOptionsRequest) SetUpdateMask(v *fieldmaskpb.FieldMask) { + x.UpdateMask = v +} + +func (x *UpdateWorkflowExecutionOptionsRequest) SetIdentity(v string) { + x.Identity = v +} + +func (x *UpdateWorkflowExecutionOptionsRequest) HasWorkflowExecution() bool { + if x == nil { + return false + } + return x.WorkflowExecution != nil +} + +func (x *UpdateWorkflowExecutionOptionsRequest) HasWorkflowExecutionOptions() bool { + if x == nil { + return false + } + return x.WorkflowExecutionOptions != nil +} + +func (x *UpdateWorkflowExecutionOptionsRequest) HasUpdateMask() bool { + if x == nil { + return false + } + return x.UpdateMask != nil +} + +func (x *UpdateWorkflowExecutionOptionsRequest) ClearWorkflowExecution() { + x.WorkflowExecution = nil +} + +func (x *UpdateWorkflowExecutionOptionsRequest) ClearWorkflowExecutionOptions() { + x.WorkflowExecutionOptions = nil +} + +func (x *UpdateWorkflowExecutionOptionsRequest) ClearUpdateMask() { + x.UpdateMask = nil +} + +type UpdateWorkflowExecutionOptionsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The namespace name of the target Workflow. + Namespace string + // The target Workflow Id and (optionally) a specific Run Id thereof. + // (-- api-linter: core::0203::optional=disabled + // + // aip.dev/not-precedent: false positive triggered by the word "optional" --) + WorkflowExecution *v13.WorkflowExecution + // Workflow Execution options. Partial updates are accepted and controlled by update_mask. + WorkflowExecutionOptions *v17.WorkflowExecutionOptions + // Controls which fields from `workflow_execution_options` will be applied. + // To unset a field, set it to null and use the update mask to indicate that it should be mutated. + UpdateMask *fieldmaskpb.FieldMask + // Optional. The identity of the client who initiated this request. + Identity string +} + +func (b0 UpdateWorkflowExecutionOptionsRequest_builder) Build() *UpdateWorkflowExecutionOptionsRequest { + m0 := &UpdateWorkflowExecutionOptionsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.WorkflowExecution = b.WorkflowExecution + x.WorkflowExecutionOptions = b.WorkflowExecutionOptions + x.UpdateMask = b.UpdateMask + x.Identity = b.Identity + return m0 +} + type UpdateWorkflowExecutionOptionsResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Workflow Execution options after update. WorkflowExecutionOptions *v17.WorkflowExecutionOptions `protobuf:"bytes,1,opt,name=workflow_execution_options,json=workflowExecutionOptions,proto3" json:"workflow_execution_options,omitempty"` unknownFields protoimpl.UnknownFields @@ -11017,11 +19739,6 @@ func (x *UpdateWorkflowExecutionOptionsResponse) ProtoReflect() protoreflect.Mes return mi.MessageOf(x) } -// Deprecated: Use UpdateWorkflowExecutionOptionsResponse.ProtoReflect.Descriptor instead. -func (*UpdateWorkflowExecutionOptionsResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{137} -} - func (x *UpdateWorkflowExecutionOptionsResponse) GetWorkflowExecutionOptions() *v17.WorkflowExecutionOptions { if x != nil { return x.WorkflowExecutionOptions @@ -11029,9 +19746,39 @@ func (x *UpdateWorkflowExecutionOptionsResponse) GetWorkflowExecutionOptions() * return nil } +func (x *UpdateWorkflowExecutionOptionsResponse) SetWorkflowExecutionOptions(v *v17.WorkflowExecutionOptions) { + x.WorkflowExecutionOptions = v +} + +func (x *UpdateWorkflowExecutionOptionsResponse) HasWorkflowExecutionOptions() bool { + if x == nil { + return false + } + return x.WorkflowExecutionOptions != nil +} + +func (x *UpdateWorkflowExecutionOptionsResponse) ClearWorkflowExecutionOptions() { + x.WorkflowExecutionOptions = nil +} + +type UpdateWorkflowExecutionOptionsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Workflow Execution options after update. + WorkflowExecutionOptions *v17.WorkflowExecutionOptions +} + +func (b0 UpdateWorkflowExecutionOptionsResponse_builder) Build() *UpdateWorkflowExecutionOptionsResponse { + m0 := &UpdateWorkflowExecutionOptionsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.WorkflowExecutionOptions = b.WorkflowExecutionOptions + return m0 +} + // [cleanup-wv-pre-release] Pre-release deployment APIs, clean up later type DescribeDeploymentRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` Deployment *v18.Deployment `protobuf:"bytes,2,opt,name=deployment,proto3" json:"deployment,omitempty"` unknownFields protoimpl.UnknownFields @@ -11063,11 +19810,6 @@ func (x *DescribeDeploymentRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DescribeDeploymentRequest.ProtoReflect.Descriptor instead. -func (*DescribeDeploymentRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{138} -} - func (x *DescribeDeploymentRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -11082,9 +19824,44 @@ func (x *DescribeDeploymentRequest) GetDeployment() *v18.Deployment { return nil } +func (x *DescribeDeploymentRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *DescribeDeploymentRequest) SetDeployment(v *v18.Deployment) { + x.Deployment = v +} + +func (x *DescribeDeploymentRequest) HasDeployment() bool { + if x == nil { + return false + } + return x.Deployment != nil +} + +func (x *DescribeDeploymentRequest) ClearDeployment() { + x.Deployment = nil +} + +type DescribeDeploymentRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + Deployment *v18.Deployment +} + +func (b0 DescribeDeploymentRequest_builder) Build() *DescribeDeploymentRequest { + m0 := &DescribeDeploymentRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.Deployment = b.Deployment + return m0 +} + // [cleanup-wv-pre-release] Pre-release deployment APIs, clean up later type DescribeDeploymentResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` DeploymentInfo *v18.DeploymentInfo `protobuf:"bytes,1,opt,name=deployment_info,json=deploymentInfo,proto3" json:"deployment_info,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -11115,11 +19892,6 @@ func (x *DescribeDeploymentResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DescribeDeploymentResponse.ProtoReflect.Descriptor instead. -func (*DescribeDeploymentResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{139} -} - func (x *DescribeDeploymentResponse) GetDeploymentInfo() *v18.DeploymentInfo { if x != nil { return x.DeploymentInfo @@ -11127,8 +19899,37 @@ func (x *DescribeDeploymentResponse) GetDeploymentInfo() *v18.DeploymentInfo { return nil } +func (x *DescribeDeploymentResponse) SetDeploymentInfo(v *v18.DeploymentInfo) { + x.DeploymentInfo = v +} + +func (x *DescribeDeploymentResponse) HasDeploymentInfo() bool { + if x == nil { + return false + } + return x.DeploymentInfo != nil +} + +func (x *DescribeDeploymentResponse) ClearDeploymentInfo() { + x.DeploymentInfo = nil +} + +type DescribeDeploymentResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + DeploymentInfo *v18.DeploymentInfo +} + +func (b0 DescribeDeploymentResponse_builder) Build() *DescribeDeploymentResponse { + m0 := &DescribeDeploymentResponse{} + b, x := &b0, m0 + _, _ = b, x + x.DeploymentInfo = b.DeploymentInfo + return m0 +} + type DescribeWorkerDeploymentVersionRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // Deprecated. Use `deployment_version`. // @@ -11167,11 +19968,6 @@ func (x *DescribeWorkerDeploymentVersionRequest) ProtoReflect() protoreflect.Mes return mi.MessageOf(x) } -// Deprecated: Use DescribeWorkerDeploymentVersionRequest.ProtoReflect.Descriptor instead. -func (*DescribeWorkerDeploymentVersionRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{140} -} - func (x *DescribeWorkerDeploymentVersionRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -11201,8 +19997,61 @@ func (x *DescribeWorkerDeploymentVersionRequest) GetReportTaskQueueStats() bool return false } +func (x *DescribeWorkerDeploymentVersionRequest) SetNamespace(v string) { + x.Namespace = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *DescribeWorkerDeploymentVersionRequest) SetVersion(v string) { + x.Version = v +} + +func (x *DescribeWorkerDeploymentVersionRequest) SetDeploymentVersion(v *v18.WorkerDeploymentVersion) { + x.DeploymentVersion = v +} + +func (x *DescribeWorkerDeploymentVersionRequest) SetReportTaskQueueStats(v bool) { + x.ReportTaskQueueStats = v +} + +func (x *DescribeWorkerDeploymentVersionRequest) HasDeploymentVersion() bool { + if x == nil { + return false + } + return x.DeploymentVersion != nil +} + +func (x *DescribeWorkerDeploymentVersionRequest) ClearDeploymentVersion() { + x.DeploymentVersion = nil +} + +type DescribeWorkerDeploymentVersionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + // Deprecated. Use `deployment_version`. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + Version string + // Required. + DeploymentVersion *v18.WorkerDeploymentVersion + // Report stats for task queues which have been polled by this version. + ReportTaskQueueStats bool +} + +func (b0 DescribeWorkerDeploymentVersionRequest_builder) Build() *DescribeWorkerDeploymentVersionRequest { + m0 := &DescribeWorkerDeploymentVersionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.Version = b.Version + x.DeploymentVersion = b.DeploymentVersion + x.ReportTaskQueueStats = b.ReportTaskQueueStats + return m0 +} + type DescribeWorkerDeploymentVersionResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` WorkerDeploymentVersionInfo *v18.WorkerDeploymentVersionInfo `protobuf:"bytes,1,opt,name=worker_deployment_version_info,json=workerDeploymentVersionInfo,proto3" json:"worker_deployment_version_info,omitempty"` // All the Task Queues that have ever polled from this Deployment version. VersionTaskQueues []*DescribeWorkerDeploymentVersionResponse_VersionTaskQueue `protobuf:"bytes,2,rep,name=version_task_queues,json=versionTaskQueues,proto3" json:"version_task_queues,omitempty"` @@ -11235,11 +20084,6 @@ func (x *DescribeWorkerDeploymentVersionResponse) ProtoReflect() protoreflect.Me return mi.MessageOf(x) } -// Deprecated: Use DescribeWorkerDeploymentVersionResponse.ProtoReflect.Descriptor instead. -func (*DescribeWorkerDeploymentVersionResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{141} -} - func (x *DescribeWorkerDeploymentVersionResponse) GetWorkerDeploymentVersionInfo() *v18.WorkerDeploymentVersionInfo { if x != nil { return x.WorkerDeploymentVersionInfo @@ -11254,8 +20098,44 @@ func (x *DescribeWorkerDeploymentVersionResponse) GetVersionTaskQueues() []*Desc return nil } +func (x *DescribeWorkerDeploymentVersionResponse) SetWorkerDeploymentVersionInfo(v *v18.WorkerDeploymentVersionInfo) { + x.WorkerDeploymentVersionInfo = v +} + +func (x *DescribeWorkerDeploymentVersionResponse) SetVersionTaskQueues(v []*DescribeWorkerDeploymentVersionResponse_VersionTaskQueue) { + x.VersionTaskQueues = v +} + +func (x *DescribeWorkerDeploymentVersionResponse) HasWorkerDeploymentVersionInfo() bool { + if x == nil { + return false + } + return x.WorkerDeploymentVersionInfo != nil +} + +func (x *DescribeWorkerDeploymentVersionResponse) ClearWorkerDeploymentVersionInfo() { + x.WorkerDeploymentVersionInfo = nil +} + +type DescribeWorkerDeploymentVersionResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + WorkerDeploymentVersionInfo *v18.WorkerDeploymentVersionInfo + // All the Task Queues that have ever polled from this Deployment version. + VersionTaskQueues []*DescribeWorkerDeploymentVersionResponse_VersionTaskQueue +} + +func (b0 DescribeWorkerDeploymentVersionResponse_builder) Build() *DescribeWorkerDeploymentVersionResponse { + m0 := &DescribeWorkerDeploymentVersionResponse{} + b, x := &b0, m0 + _, _ = b, x + x.WorkerDeploymentVersionInfo = b.WorkerDeploymentVersionInfo + x.VersionTaskQueues = b.VersionTaskQueues + return m0 +} + type DescribeWorkerDeploymentRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` DeploymentName string `protobuf:"bytes,2,opt,name=deployment_name,json=deploymentName,proto3" json:"deployment_name,omitempty"` unknownFields protoimpl.UnknownFields @@ -11287,11 +20167,6 @@ func (x *DescribeWorkerDeploymentRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DescribeWorkerDeploymentRequest.ProtoReflect.Descriptor instead. -func (*DescribeWorkerDeploymentRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{142} -} - func (x *DescribeWorkerDeploymentRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -11306,8 +20181,32 @@ func (x *DescribeWorkerDeploymentRequest) GetDeploymentName() string { return "" } +func (x *DescribeWorkerDeploymentRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *DescribeWorkerDeploymentRequest) SetDeploymentName(v string) { + x.DeploymentName = v +} + +type DescribeWorkerDeploymentRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + DeploymentName string +} + +func (b0 DescribeWorkerDeploymentRequest_builder) Build() *DescribeWorkerDeploymentRequest { + m0 := &DescribeWorkerDeploymentRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.DeploymentName = b.DeploymentName + return m0 +} + type DescribeWorkerDeploymentResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // This value is returned so that it can be optionally passed to APIs // that write to the Worker Deployment state to ensure that the state // did not change between this read and a future write. @@ -11342,11 +20241,6 @@ func (x *DescribeWorkerDeploymentResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DescribeWorkerDeploymentResponse.ProtoReflect.Descriptor instead. -func (*DescribeWorkerDeploymentResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{143} -} - func (x *DescribeWorkerDeploymentResponse) GetConflictToken() []byte { if x != nil { return x.ConflictToken @@ -11361,9 +20255,50 @@ func (x *DescribeWorkerDeploymentResponse) GetWorkerDeploymentInfo() *v18.Worker return nil } +func (x *DescribeWorkerDeploymentResponse) SetConflictToken(v []byte) { + if v == nil { + v = []byte{} + } + x.ConflictToken = v +} + +func (x *DescribeWorkerDeploymentResponse) SetWorkerDeploymentInfo(v *v18.WorkerDeploymentInfo) { + x.WorkerDeploymentInfo = v +} + +func (x *DescribeWorkerDeploymentResponse) HasWorkerDeploymentInfo() bool { + if x == nil { + return false + } + return x.WorkerDeploymentInfo != nil +} + +func (x *DescribeWorkerDeploymentResponse) ClearWorkerDeploymentInfo() { + x.WorkerDeploymentInfo = nil +} + +type DescribeWorkerDeploymentResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // This value is returned so that it can be optionally passed to APIs + // that write to the Worker Deployment state to ensure that the state + // did not change between this read and a future write. + ConflictToken []byte + WorkerDeploymentInfo *v18.WorkerDeploymentInfo +} + +func (b0 DescribeWorkerDeploymentResponse_builder) Build() *DescribeWorkerDeploymentResponse { + m0 := &DescribeWorkerDeploymentResponse{} + b, x := &b0, m0 + _, _ = b, x + x.ConflictToken = b.ConflictToken + x.WorkerDeploymentInfo = b.WorkerDeploymentInfo + return m0 +} + // [cleanup-wv-pre-release] Pre-release deployment APIs, clean up later type ListDeploymentsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` NextPageToken []byte `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` @@ -11398,11 +20333,6 @@ func (x *ListDeploymentsRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListDeploymentsRequest.ProtoReflect.Descriptor instead. -func (*ListDeploymentsRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{144} -} - func (x *ListDeploymentsRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -11431,9 +20361,49 @@ func (x *ListDeploymentsRequest) GetSeriesName() string { return "" } +func (x *ListDeploymentsRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *ListDeploymentsRequest) SetPageSize(v int32) { + x.PageSize = v +} + +func (x *ListDeploymentsRequest) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.NextPageToken = v +} + +func (x *ListDeploymentsRequest) SetSeriesName(v string) { + x.SeriesName = v +} + +type ListDeploymentsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + PageSize int32 + NextPageToken []byte + // Optional. Use to filter based on exact series name match. + SeriesName string +} + +func (b0 ListDeploymentsRequest_builder) Build() *ListDeploymentsRequest { + m0 := &ListDeploymentsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.PageSize = b.PageSize + x.NextPageToken = b.NextPageToken + x.SeriesName = b.SeriesName + return m0 +} + // [cleanup-wv-pre-release] Pre-release deployment APIs, clean up later type ListDeploymentsResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` NextPageToken []byte `protobuf:"bytes,1,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` Deployments []*v18.DeploymentListInfo `protobuf:"bytes,2,rep,name=deployments,proto3" json:"deployments,omitempty"` unknownFields protoimpl.UnknownFields @@ -11465,11 +20435,6 @@ func (x *ListDeploymentsResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListDeploymentsResponse.ProtoReflect.Descriptor instead. -func (*ListDeploymentsResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{145} -} - func (x *ListDeploymentsResponse) GetNextPageToken() []byte { if x != nil { return x.NextPageToken @@ -11484,9 +20449,36 @@ func (x *ListDeploymentsResponse) GetDeployments() []*v18.DeploymentListInfo { return nil } +func (x *ListDeploymentsResponse) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.NextPageToken = v +} + +func (x *ListDeploymentsResponse) SetDeployments(v []*v18.DeploymentListInfo) { + x.Deployments = v +} + +type ListDeploymentsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + NextPageToken []byte + Deployments []*v18.DeploymentListInfo +} + +func (b0 ListDeploymentsResponse_builder) Build() *ListDeploymentsResponse { + m0 := &ListDeploymentsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.NextPageToken = b.NextPageToken + x.Deployments = b.Deployments + return m0 +} + // [cleanup-wv-pre-release] Pre-release deployment APIs, clean up later type SetCurrentDeploymentRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` Deployment *v18.Deployment `protobuf:"bytes,2,opt,name=deployment,proto3" json:"deployment,omitempty"` // Optional. The identity of the client who initiated this request. @@ -11524,11 +20516,6 @@ func (x *SetCurrentDeploymentRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SetCurrentDeploymentRequest.ProtoReflect.Descriptor instead. -func (*SetCurrentDeploymentRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{146} -} - func (x *SetCurrentDeploymentRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -11557,9 +20544,71 @@ func (x *SetCurrentDeploymentRequest) GetUpdateMetadata() *v18.UpdateDeploymentM return nil } +func (x *SetCurrentDeploymentRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *SetCurrentDeploymentRequest) SetDeployment(v *v18.Deployment) { + x.Deployment = v +} + +func (x *SetCurrentDeploymentRequest) SetIdentity(v string) { + x.Identity = v +} + +func (x *SetCurrentDeploymentRequest) SetUpdateMetadata(v *v18.UpdateDeploymentMetadata) { + x.UpdateMetadata = v +} + +func (x *SetCurrentDeploymentRequest) HasDeployment() bool { + if x == nil { + return false + } + return x.Deployment != nil +} + +func (x *SetCurrentDeploymentRequest) HasUpdateMetadata() bool { + if x == nil { + return false + } + return x.UpdateMetadata != nil +} + +func (x *SetCurrentDeploymentRequest) ClearDeployment() { + x.Deployment = nil +} + +func (x *SetCurrentDeploymentRequest) ClearUpdateMetadata() { + x.UpdateMetadata = nil +} + +type SetCurrentDeploymentRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + Deployment *v18.Deployment + // Optional. The identity of the client who initiated this request. + Identity string + // Optional. Use to add or remove user-defined metadata entries. Metadata entries are exposed + // when describing a deployment. It is a good place for information such as operator name, + // links to internal deployment pipelines, etc. + UpdateMetadata *v18.UpdateDeploymentMetadata +} + +func (b0 SetCurrentDeploymentRequest_builder) Build() *SetCurrentDeploymentRequest { + m0 := &SetCurrentDeploymentRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.Deployment = b.Deployment + x.Identity = b.Identity + x.UpdateMetadata = b.UpdateMetadata + return m0 +} + // [cleanup-wv-pre-release] Pre-release deployment APIs, clean up later type SetCurrentDeploymentResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` CurrentDeploymentInfo *v18.DeploymentInfo `protobuf:"bytes,1,opt,name=current_deployment_info,json=currentDeploymentInfo,proto3" json:"current_deployment_info,omitempty"` // Info of the deployment that was current before executing this operation. PreviousDeploymentInfo *v18.DeploymentInfo `protobuf:"bytes,2,opt,name=previous_deployment_info,json=previousDeploymentInfo,proto3" json:"previous_deployment_info,omitempty"` @@ -11592,11 +20641,6 @@ func (x *SetCurrentDeploymentResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SetCurrentDeploymentResponse.ProtoReflect.Descriptor instead. -func (*SetCurrentDeploymentResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{147} -} - func (x *SetCurrentDeploymentResponse) GetCurrentDeploymentInfo() *v18.DeploymentInfo { if x != nil { return x.CurrentDeploymentInfo @@ -11611,9 +20655,56 @@ func (x *SetCurrentDeploymentResponse) GetPreviousDeploymentInfo() *v18.Deployme return nil } +func (x *SetCurrentDeploymentResponse) SetCurrentDeploymentInfo(v *v18.DeploymentInfo) { + x.CurrentDeploymentInfo = v +} + +func (x *SetCurrentDeploymentResponse) SetPreviousDeploymentInfo(v *v18.DeploymentInfo) { + x.PreviousDeploymentInfo = v +} + +func (x *SetCurrentDeploymentResponse) HasCurrentDeploymentInfo() bool { + if x == nil { + return false + } + return x.CurrentDeploymentInfo != nil +} + +func (x *SetCurrentDeploymentResponse) HasPreviousDeploymentInfo() bool { + if x == nil { + return false + } + return x.PreviousDeploymentInfo != nil +} + +func (x *SetCurrentDeploymentResponse) ClearCurrentDeploymentInfo() { + x.CurrentDeploymentInfo = nil +} + +func (x *SetCurrentDeploymentResponse) ClearPreviousDeploymentInfo() { + x.PreviousDeploymentInfo = nil +} + +type SetCurrentDeploymentResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + CurrentDeploymentInfo *v18.DeploymentInfo + // Info of the deployment that was current before executing this operation. + PreviousDeploymentInfo *v18.DeploymentInfo +} + +func (b0 SetCurrentDeploymentResponse_builder) Build() *SetCurrentDeploymentResponse { + m0 := &SetCurrentDeploymentResponse{} + b, x := &b0, m0 + _, _ = b, x + x.CurrentDeploymentInfo = b.CurrentDeploymentInfo + x.PreviousDeploymentInfo = b.PreviousDeploymentInfo + return m0 +} + // Set/unset the Current Version of a Worker Deployment. type SetWorkerDeploymentCurrentVersionRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` DeploymentName string `protobuf:"bytes,2,opt,name=deployment_name,json=deploymentName,proto3" json:"deployment_name,omitempty"` // Deprecated. Use `build_id`. @@ -11679,11 +20770,6 @@ func (x *SetWorkerDeploymentCurrentVersionRequest) ProtoReflect() protoreflect.M return mi.MessageOf(x) } -// Deprecated: Use SetWorkerDeploymentCurrentVersionRequest.ProtoReflect.Descriptor instead. -func (*SetWorkerDeploymentCurrentVersionRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{148} -} - func (x *SetWorkerDeploymentCurrentVersionRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -11741,8 +20827,100 @@ func (x *SetWorkerDeploymentCurrentVersionRequest) GetAllowNoPollers() bool { return false } +func (x *SetWorkerDeploymentCurrentVersionRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *SetWorkerDeploymentCurrentVersionRequest) SetDeploymentName(v string) { + x.DeploymentName = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *SetWorkerDeploymentCurrentVersionRequest) SetVersion(v string) { + x.Version = v +} + +func (x *SetWorkerDeploymentCurrentVersionRequest) SetBuildId(v string) { + x.BuildId = v +} + +func (x *SetWorkerDeploymentCurrentVersionRequest) SetConflictToken(v []byte) { + if v == nil { + v = []byte{} + } + x.ConflictToken = v +} + +func (x *SetWorkerDeploymentCurrentVersionRequest) SetIdentity(v string) { + x.Identity = v +} + +func (x *SetWorkerDeploymentCurrentVersionRequest) SetIgnoreMissingTaskQueues(v bool) { + x.IgnoreMissingTaskQueues = v +} + +func (x *SetWorkerDeploymentCurrentVersionRequest) SetAllowNoPollers(v bool) { + x.AllowNoPollers = v +} + +type SetWorkerDeploymentCurrentVersionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + DeploymentName string + // Deprecated. Use `build_id`. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + Version string + // The build id of the Version that you want to set as Current. + // Pass an empty value to set the Current Version to nil. + // A nil Current Version represents all the unversioned workers (those with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.) + BuildId string + // Optional. This can be the value of conflict_token from a Describe, or another Worker + // Deployment API. Passing a non-nil conflict token will cause this request to fail if the + // Deployment's configuration has been modified between the API call that generated the + // token and this one. + ConflictToken []byte + // Optional. The identity of the client who initiated this request. + Identity string + // Optional. By default this request would be rejected if not all the expected Task Queues are + // being polled by the new Version, to protect against accidental removal of Task Queues, or + // worker health issues. Pass `true` here to bypass this protection. + // The set of expected Task Queues is the set of all the Task Queues that were ever poller by + // the existing Current Version of the Deployment, with the following exclusions: + // - Task Queues that are not used anymore (inferred by having empty backlog and a task + // add_rate of 0.) + // - Task Queues that are moved to another Worker Deployment (inferred by the Task Queue + // having a different Current Version than the Current Version of this deployment.) + // + // WARNING: Do not set this flag unless you are sure that the missing task queue pollers are not + // needed. If the request is unexpectedly rejected due to missing pollers, then that means the + // pollers have not reached to the server yet. Only set this if you expect those pollers to + // never arrive. + IgnoreMissingTaskQueues bool + // Optional. By default this request will be rejected if no pollers have been seen for the proposed + // Current Version, in order to protect users from routing tasks to pollers that do not exist, leading + // to possible timeouts. Pass `true` here to bypass this protection. + AllowNoPollers bool +} + +func (b0 SetWorkerDeploymentCurrentVersionRequest_builder) Build() *SetWorkerDeploymentCurrentVersionRequest { + m0 := &SetWorkerDeploymentCurrentVersionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.DeploymentName = b.DeploymentName + x.Version = b.Version + x.BuildId = b.BuildId + x.ConflictToken = b.ConflictToken + x.Identity = b.Identity + x.IgnoreMissingTaskQueues = b.IgnoreMissingTaskQueues + x.AllowNoPollers = b.AllowNoPollers + return m0 +} + type SetWorkerDeploymentCurrentVersionResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // This value is returned so that it can be optionally passed to APIs // that write to the Worker Deployment state to ensure that the state // did not change between this API call and a future write. @@ -11788,11 +20966,6 @@ func (x *SetWorkerDeploymentCurrentVersionResponse) ProtoReflect() protoreflect. return mi.MessageOf(x) } -// Deprecated: Use SetWorkerDeploymentCurrentVersionResponse.ProtoReflect.Descriptor instead. -func (*SetWorkerDeploymentCurrentVersionResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{149} -} - func (x *SetWorkerDeploymentCurrentVersionResponse) GetConflictToken() []byte { if x != nil { return x.ConflictToken @@ -11816,9 +20989,70 @@ func (x *SetWorkerDeploymentCurrentVersionResponse) GetPreviousDeploymentVersion return nil } +func (x *SetWorkerDeploymentCurrentVersionResponse) SetConflictToken(v []byte) { + if v == nil { + v = []byte{} + } + x.ConflictToken = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *SetWorkerDeploymentCurrentVersionResponse) SetPreviousVersion(v string) { + x.PreviousVersion = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *SetWorkerDeploymentCurrentVersionResponse) SetPreviousDeploymentVersion(v *v18.WorkerDeploymentVersion) { + x.PreviousDeploymentVersion = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *SetWorkerDeploymentCurrentVersionResponse) HasPreviousDeploymentVersion() bool { + if x == nil { + return false + } + return x.PreviousDeploymentVersion != nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *SetWorkerDeploymentCurrentVersionResponse) ClearPreviousDeploymentVersion() { + x.PreviousDeploymentVersion = nil +} + +type SetWorkerDeploymentCurrentVersionResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // This value is returned so that it can be optionally passed to APIs + // that write to the Worker Deployment state to ensure that the state + // did not change between this API call and a future write. + ConflictToken []byte + // Deprecated. Use `previous_deployment_version`. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + PreviousVersion string + // The version that was current before executing this operation. + // Deprecated in favor of idempotency of the API. Use `DescribeWorkerDeployment` to get the + // Current version info before calling this API. By passing the `conflict_token` got from the + // `DescribeWorkerDeployment` call to this API you can ensure there is no interfering changes + // between the two calls. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + PreviousDeploymentVersion *v18.WorkerDeploymentVersion +} + +func (b0 SetWorkerDeploymentCurrentVersionResponse_builder) Build() *SetWorkerDeploymentCurrentVersionResponse { + m0 := &SetWorkerDeploymentCurrentVersionResponse{} + b, x := &b0, m0 + _, _ = b, x + x.ConflictToken = b.ConflictToken + x.PreviousVersion = b.PreviousVersion + x.PreviousDeploymentVersion = b.PreviousDeploymentVersion + return m0 +} + // Set/unset the Ramping Version of a Worker Deployment and its ramp percentage. type SetWorkerDeploymentRampingVersionRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` DeploymentName string `protobuf:"bytes,2,opt,name=deployment_name,json=deploymentName,proto3" json:"deployment_name,omitempty"` // Deprecated. Use `build_id`. @@ -11889,11 +21123,6 @@ func (x *SetWorkerDeploymentRampingVersionRequest) ProtoReflect() protoreflect.M return mi.MessageOf(x) } -// Deprecated: Use SetWorkerDeploymentRampingVersionRequest.ProtoReflect.Descriptor instead. -func (*SetWorkerDeploymentRampingVersionRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{150} -} - func (x *SetWorkerDeploymentRampingVersionRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -11951,15 +21180,117 @@ func (x *SetWorkerDeploymentRampingVersionRequest) GetIgnoreMissingTaskQueues() return false } -func (x *SetWorkerDeploymentRampingVersionRequest) GetAllowNoPollers() bool { - if x != nil { - return x.AllowNoPollers - } - return false +func (x *SetWorkerDeploymentRampingVersionRequest) GetAllowNoPollers() bool { + if x != nil { + return x.AllowNoPollers + } + return false +} + +func (x *SetWorkerDeploymentRampingVersionRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *SetWorkerDeploymentRampingVersionRequest) SetDeploymentName(v string) { + x.DeploymentName = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *SetWorkerDeploymentRampingVersionRequest) SetVersion(v string) { + x.Version = v +} + +func (x *SetWorkerDeploymentRampingVersionRequest) SetBuildId(v string) { + x.BuildId = v +} + +func (x *SetWorkerDeploymentRampingVersionRequest) SetPercentage(v float32) { + x.Percentage = v +} + +func (x *SetWorkerDeploymentRampingVersionRequest) SetConflictToken(v []byte) { + if v == nil { + v = []byte{} + } + x.ConflictToken = v +} + +func (x *SetWorkerDeploymentRampingVersionRequest) SetIdentity(v string) { + x.Identity = v +} + +func (x *SetWorkerDeploymentRampingVersionRequest) SetIgnoreMissingTaskQueues(v bool) { + x.IgnoreMissingTaskQueues = v +} + +func (x *SetWorkerDeploymentRampingVersionRequest) SetAllowNoPollers(v bool) { + x.AllowNoPollers = v +} + +type SetWorkerDeploymentRampingVersionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + DeploymentName string + // Deprecated. Use `build_id`. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + Version string + // The build id of the Version that you want to ramp traffic to. + // Pass an empty value to set the Ramping Version to nil. + // A nil Ramping Version represents all the unversioned workers (those with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.) + BuildId string + // Ramp percentage to set. Valid range: [0,100]. + Percentage float32 + // Optional. This can be the value of conflict_token from a Describe, or another Worker + // Deployment API. Passing a non-nil conflict token will cause this request to fail if the + // Deployment's configuration has been modified between the API call that generated the + // token and this one. + ConflictToken []byte + // Optional. The identity of the client who initiated this request. + Identity string + // Optional. By default this request would be rejected if not all the expected Task Queues are + // being polled by the new Version, to protect against accidental removal of Task Queues, or + // worker health issues. Pass `true` here to bypass this protection. + // The set of expected Task Queues equals to all the Task Queues ever polled from the existing + // Current Version of the Deployment, with the following exclusions: + // - Task Queues that are not used anymore (inferred by having empty backlog and a task + // add_rate of 0.) + // - Task Queues that are moved to another Worker Deployment (inferred by the Task Queue + // having a different Current Version than the Current Version of this deployment.) + // + // WARNING: Do not set this flag unless you are sure that the missing task queue poller are not + // needed. If the request is unexpectedly rejected due to missing pollers, then that means the + // pollers have not reached to the server yet. Only set this if you expect those pollers to + // never arrive. + // Note: this check only happens when the ramping version is about to change, not every time + // that the percentage changes. Also note that the check is against the deployment's Current + // Version, not the previous Ramping Version. + IgnoreMissingTaskQueues bool + // Optional. By default this request will be rejected if no pollers have been seen for the proposed + // Current Version, in order to protect users from routing tasks to pollers that do not exist, leading + // to possible timeouts. Pass `true` here to bypass this protection. + AllowNoPollers bool +} + +func (b0 SetWorkerDeploymentRampingVersionRequest_builder) Build() *SetWorkerDeploymentRampingVersionRequest { + m0 := &SetWorkerDeploymentRampingVersionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.DeploymentName = b.DeploymentName + x.Version = b.Version + x.BuildId = b.BuildId + x.Percentage = b.Percentage + x.ConflictToken = b.ConflictToken + x.Identity = b.Identity + x.IgnoreMissingTaskQueues = b.IgnoreMissingTaskQueues + x.AllowNoPollers = b.AllowNoPollers + return m0 } type SetWorkerDeploymentRampingVersionResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // This value is returned so that it can be optionally passed to APIs // that write to the Worker Deployment state to ensure that the state // did not change between this API call and a future write. @@ -12013,11 +21344,6 @@ func (x *SetWorkerDeploymentRampingVersionResponse) ProtoReflect() protoreflect. return mi.MessageOf(x) } -// Deprecated: Use SetWorkerDeploymentRampingVersionResponse.ProtoReflect.Descriptor instead. -func (*SetWorkerDeploymentRampingVersionResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{151} -} - func (x *SetWorkerDeploymentRampingVersionResponse) GetConflictToken() []byte { if x != nil { return x.ConflictToken @@ -12049,8 +21375,83 @@ func (x *SetWorkerDeploymentRampingVersionResponse) GetPreviousPercentage() floa return 0 } +func (x *SetWorkerDeploymentRampingVersionResponse) SetConflictToken(v []byte) { + if v == nil { + v = []byte{} + } + x.ConflictToken = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *SetWorkerDeploymentRampingVersionResponse) SetPreviousVersion(v string) { + x.PreviousVersion = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *SetWorkerDeploymentRampingVersionResponse) SetPreviousDeploymentVersion(v *v18.WorkerDeploymentVersion) { + x.PreviousDeploymentVersion = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *SetWorkerDeploymentRampingVersionResponse) SetPreviousPercentage(v float32) { + x.PreviousPercentage = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *SetWorkerDeploymentRampingVersionResponse) HasPreviousDeploymentVersion() bool { + if x == nil { + return false + } + return x.PreviousDeploymentVersion != nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *SetWorkerDeploymentRampingVersionResponse) ClearPreviousDeploymentVersion() { + x.PreviousDeploymentVersion = nil +} + +type SetWorkerDeploymentRampingVersionResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // This value is returned so that it can be optionally passed to APIs + // that write to the Worker Deployment state to ensure that the state + // did not change between this API call and a future write. + ConflictToken []byte + // Deprecated. Use `previous_deployment_version`. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + PreviousVersion string + // The version that was ramping before executing this operation. + // Deprecated in favor of idempotency of the API. Use `DescribeWorkerDeployment` to get the + // Ramping version info before calling this API. By passing the `conflict_token` got from the + // `DescribeWorkerDeployment` call to this API you can ensure there is no interfering changes + // between the two calls. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + PreviousDeploymentVersion *v18.WorkerDeploymentVersion + // The ramping version percentage before executing this operation. + // Deprecated in favor of idempotency of the API. Use `DescribeWorkerDeployment` to get the + // Ramping version info before calling this API. By passing the `conflict_token` got from the + // `DescribeWorkerDeployment` call to this API you can ensure there is no interfering changes + // between the two calls. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + PreviousPercentage float32 +} + +func (b0 SetWorkerDeploymentRampingVersionResponse_builder) Build() *SetWorkerDeploymentRampingVersionResponse { + m0 := &SetWorkerDeploymentRampingVersionResponse{} + b, x := &b0, m0 + _, _ = b, x + x.ConflictToken = b.ConflictToken + x.PreviousVersion = b.PreviousVersion + x.PreviousDeploymentVersion = b.PreviousDeploymentVersion + x.PreviousPercentage = b.PreviousPercentage + return m0 +} + type ListWorkerDeploymentsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` NextPageToken []byte `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` @@ -12083,11 +21484,6 @@ func (x *ListWorkerDeploymentsRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListWorkerDeploymentsRequest.ProtoReflect.Descriptor instead. -func (*ListWorkerDeploymentsRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{152} -} - func (x *ListWorkerDeploymentsRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -12109,8 +21505,41 @@ func (x *ListWorkerDeploymentsRequest) GetNextPageToken() []byte { return nil } +func (x *ListWorkerDeploymentsRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *ListWorkerDeploymentsRequest) SetPageSize(v int32) { + x.PageSize = v +} + +func (x *ListWorkerDeploymentsRequest) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.NextPageToken = v +} + +type ListWorkerDeploymentsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + PageSize int32 + NextPageToken []byte +} + +func (b0 ListWorkerDeploymentsRequest_builder) Build() *ListWorkerDeploymentsRequest { + m0 := &ListWorkerDeploymentsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.PageSize = b.PageSize + x.NextPageToken = b.NextPageToken + return m0 +} + type ListWorkerDeploymentsResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` NextPageToken []byte `protobuf:"bytes,1,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // The list of worker deployments. WorkerDeployments []*ListWorkerDeploymentsResponse_WorkerDeploymentSummary `protobuf:"bytes,2,rep,name=worker_deployments,json=workerDeployments,proto3" json:"worker_deployments,omitempty"` @@ -12143,11 +21572,6 @@ func (x *ListWorkerDeploymentsResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListWorkerDeploymentsResponse.ProtoReflect.Descriptor instead. -func (*ListWorkerDeploymentsResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{153} -} - func (x *ListWorkerDeploymentsResponse) GetNextPageToken() []byte { if x != nil { return x.NextPageToken @@ -12162,6 +21586,34 @@ func (x *ListWorkerDeploymentsResponse) GetWorkerDeployments() []*ListWorkerDepl return nil } +func (x *ListWorkerDeploymentsResponse) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.NextPageToken = v +} + +func (x *ListWorkerDeploymentsResponse) SetWorkerDeployments(v []*ListWorkerDeploymentsResponse_WorkerDeploymentSummary) { + x.WorkerDeployments = v +} + +type ListWorkerDeploymentsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + NextPageToken []byte + // The list of worker deployments. + WorkerDeployments []*ListWorkerDeploymentsResponse_WorkerDeploymentSummary +} + +func (b0 ListWorkerDeploymentsResponse_builder) Build() *ListWorkerDeploymentsResponse { + m0 := &ListWorkerDeploymentsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.NextPageToken = b.NextPageToken + x.WorkerDeployments = b.WorkerDeployments + return m0 +} + // Used for manual deletion of Versions. User can delete a Version only when all the // following conditions are met: // - It is not the Current or Ramping Version of its Deployment. @@ -12169,7 +21621,7 @@ func (x *ListWorkerDeploymentsResponse) GetWorkerDeployments() []*ListWorkerDepl // - It is not draining (see WorkerDeploymentVersionInfo.drainage_info). This condition // can be skipped by passing `skip-drainage=true`. type DeleteWorkerDeploymentVersionRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // Deprecated. Use `deployment_version`. // @@ -12211,11 +21663,6 @@ func (x *DeleteWorkerDeploymentVersionRequest) ProtoReflect() protoreflect.Messa return mi.MessageOf(x) } -// Deprecated: Use DeleteWorkerDeploymentVersionRequest.ProtoReflect.Descriptor instead. -func (*DeleteWorkerDeploymentVersionRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{154} -} - func (x *DeleteWorkerDeploymentVersionRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -12252,8 +21699,69 @@ func (x *DeleteWorkerDeploymentVersionRequest) GetIdentity() string { return "" } +func (x *DeleteWorkerDeploymentVersionRequest) SetNamespace(v string) { + x.Namespace = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *DeleteWorkerDeploymentVersionRequest) SetVersion(v string) { + x.Version = v +} + +func (x *DeleteWorkerDeploymentVersionRequest) SetDeploymentVersion(v *v18.WorkerDeploymentVersion) { + x.DeploymentVersion = v +} + +func (x *DeleteWorkerDeploymentVersionRequest) SetSkipDrainage(v bool) { + x.SkipDrainage = v +} + +func (x *DeleteWorkerDeploymentVersionRequest) SetIdentity(v string) { + x.Identity = v +} + +func (x *DeleteWorkerDeploymentVersionRequest) HasDeploymentVersion() bool { + if x == nil { + return false + } + return x.DeploymentVersion != nil +} + +func (x *DeleteWorkerDeploymentVersionRequest) ClearDeploymentVersion() { + x.DeploymentVersion = nil +} + +type DeleteWorkerDeploymentVersionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + // Deprecated. Use `deployment_version`. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + Version string + // Required. + DeploymentVersion *v18.WorkerDeploymentVersion + // Pass to force deletion even if the Version is draining. In this case the open pinned + // workflows will be stuck until manually moved to another version by UpdateWorkflowExecutionOptions. + SkipDrainage bool + // Optional. The identity of the client who initiated this request. + Identity string +} + +func (b0 DeleteWorkerDeploymentVersionRequest_builder) Build() *DeleteWorkerDeploymentVersionRequest { + m0 := &DeleteWorkerDeploymentVersionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.Version = b.Version + x.DeploymentVersion = b.DeploymentVersion + x.SkipDrainage = b.SkipDrainage + x.Identity = b.Identity + return m0 +} + type DeleteWorkerDeploymentVersionResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -12283,15 +21791,22 @@ func (x *DeleteWorkerDeploymentVersionResponse) ProtoReflect() protoreflect.Mess return mi.MessageOf(x) } -// Deprecated: Use DeleteWorkerDeploymentVersionResponse.ProtoReflect.Descriptor instead. -func (*DeleteWorkerDeploymentVersionResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{155} +type DeleteWorkerDeploymentVersionResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 DeleteWorkerDeploymentVersionResponse_builder) Build() *DeleteWorkerDeploymentVersionResponse { + m0 := &DeleteWorkerDeploymentVersionResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } // Deletes records of (an old) Deployment. A deployment can only be deleted if // it has no Version in it. type DeleteWorkerDeploymentRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` DeploymentName string `protobuf:"bytes,2,opt,name=deployment_name,json=deploymentName,proto3" json:"deployment_name,omitempty"` // Optional. The identity of the client who initiated this request. @@ -12325,11 +21840,6 @@ func (x *DeleteWorkerDeploymentRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeleteWorkerDeploymentRequest.ProtoReflect.Descriptor instead. -func (*DeleteWorkerDeploymentRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{156} -} - func (x *DeleteWorkerDeploymentRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -12351,8 +21861,39 @@ func (x *DeleteWorkerDeploymentRequest) GetIdentity() string { return "" } +func (x *DeleteWorkerDeploymentRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *DeleteWorkerDeploymentRequest) SetDeploymentName(v string) { + x.DeploymentName = v +} + +func (x *DeleteWorkerDeploymentRequest) SetIdentity(v string) { + x.Identity = v +} + +type DeleteWorkerDeploymentRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + DeploymentName string + // Optional. The identity of the client who initiated this request. + Identity string +} + +func (b0 DeleteWorkerDeploymentRequest_builder) Build() *DeleteWorkerDeploymentRequest { + m0 := &DeleteWorkerDeploymentRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.DeploymentName = b.DeploymentName + x.Identity = b.Identity + return m0 +} + type DeleteWorkerDeploymentResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -12382,14 +21923,21 @@ func (x *DeleteWorkerDeploymentResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeleteWorkerDeploymentResponse.ProtoReflect.Descriptor instead. -func (*DeleteWorkerDeploymentResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{157} +type DeleteWorkerDeploymentResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 DeleteWorkerDeploymentResponse_builder) Build() *DeleteWorkerDeploymentResponse { + m0 := &DeleteWorkerDeploymentResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } // Used to update the user-defined metadata of a Worker Deployment Version. type UpdateWorkerDeploymentVersionMetadataRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // Deprecated. Use `deployment_version`. // @@ -12431,11 +21979,6 @@ func (x *UpdateWorkerDeploymentVersionMetadataRequest) ProtoReflect() protorefle return mi.MessageOf(x) } -// Deprecated: Use UpdateWorkerDeploymentVersionMetadataRequest.ProtoReflect.Descriptor instead. -func (*UpdateWorkerDeploymentVersionMetadataRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{158} -} - func (x *UpdateWorkerDeploymentVersionMetadataRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -12479,8 +22022,74 @@ func (x *UpdateWorkerDeploymentVersionMetadataRequest) GetIdentity() string { return "" } +func (x *UpdateWorkerDeploymentVersionMetadataRequest) SetNamespace(v string) { + x.Namespace = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *UpdateWorkerDeploymentVersionMetadataRequest) SetVersion(v string) { + x.Version = v +} + +func (x *UpdateWorkerDeploymentVersionMetadataRequest) SetDeploymentVersion(v *v18.WorkerDeploymentVersion) { + x.DeploymentVersion = v +} + +func (x *UpdateWorkerDeploymentVersionMetadataRequest) SetUpsertEntries(v map[string]*v13.Payload) { + x.UpsertEntries = v +} + +func (x *UpdateWorkerDeploymentVersionMetadataRequest) SetRemoveEntries(v []string) { + x.RemoveEntries = v +} + +func (x *UpdateWorkerDeploymentVersionMetadataRequest) SetIdentity(v string) { + x.Identity = v +} + +func (x *UpdateWorkerDeploymentVersionMetadataRequest) HasDeploymentVersion() bool { + if x == nil { + return false + } + return x.DeploymentVersion != nil +} + +func (x *UpdateWorkerDeploymentVersionMetadataRequest) ClearDeploymentVersion() { + x.DeploymentVersion = nil +} + +type UpdateWorkerDeploymentVersionMetadataRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + // Deprecated. Use `deployment_version`. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + Version string + // Required. + DeploymentVersion *v18.WorkerDeploymentVersion + UpsertEntries map[string]*v13.Payload + // List of keys to remove from the metadata. + RemoveEntries []string + // Optional. The identity of the client who initiated this request. + Identity string +} + +func (b0 UpdateWorkerDeploymentVersionMetadataRequest_builder) Build() *UpdateWorkerDeploymentVersionMetadataRequest { + m0 := &UpdateWorkerDeploymentVersionMetadataRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.Version = b.Version + x.DeploymentVersion = b.DeploymentVersion + x.UpsertEntries = b.UpsertEntries + x.RemoveEntries = b.RemoveEntries + x.Identity = b.Identity + return m0 +} + type UpdateWorkerDeploymentVersionMetadataResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Full metadata after performing the update. Metadata *v18.VersionMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` unknownFields protoimpl.UnknownFields @@ -12512,11 +22121,6 @@ func (x *UpdateWorkerDeploymentVersionMetadataResponse) ProtoReflect() protorefl return mi.MessageOf(x) } -// Deprecated: Use UpdateWorkerDeploymentVersionMetadataResponse.ProtoReflect.Descriptor instead. -func (*UpdateWorkerDeploymentVersionMetadataResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{159} -} - func (x *UpdateWorkerDeploymentVersionMetadataResponse) GetMetadata() *v18.VersionMetadata { if x != nil { return x.Metadata @@ -12524,9 +22128,39 @@ func (x *UpdateWorkerDeploymentVersionMetadataResponse) GetMetadata() *v18.Versi return nil } +func (x *UpdateWorkerDeploymentVersionMetadataResponse) SetMetadata(v *v18.VersionMetadata) { + x.Metadata = v +} + +func (x *UpdateWorkerDeploymentVersionMetadataResponse) HasMetadata() bool { + if x == nil { + return false + } + return x.Metadata != nil +} + +func (x *UpdateWorkerDeploymentVersionMetadataResponse) ClearMetadata() { + x.Metadata = nil +} + +type UpdateWorkerDeploymentVersionMetadataResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Full metadata after performing the update. + Metadata *v18.VersionMetadata +} + +func (b0 UpdateWorkerDeploymentVersionMetadataResponse_builder) Build() *UpdateWorkerDeploymentVersionMetadataResponse { + m0 := &UpdateWorkerDeploymentVersionMetadataResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Metadata = b.Metadata + return m0 +} + // Update the ManagerIdentity of a Worker Deployment. type SetWorkerDeploymentManagerRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` DeploymentName string `protobuf:"bytes,2,opt,name=deployment_name,json=deploymentName,proto3" json:"deployment_name,omitempty"` // Types that are valid to be assigned to NewManagerIdentity: @@ -12570,11 +22204,6 @@ func (x *SetWorkerDeploymentManagerRequest) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use SetWorkerDeploymentManagerRequest.ProtoReflect.Descriptor instead. -func (*SetWorkerDeploymentManagerRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{160} -} - func (x *SetWorkerDeploymentManagerRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -12628,6 +22257,144 @@ func (x *SetWorkerDeploymentManagerRequest) GetIdentity() string { return "" } +func (x *SetWorkerDeploymentManagerRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *SetWorkerDeploymentManagerRequest) SetDeploymentName(v string) { + x.DeploymentName = v +} + +func (x *SetWorkerDeploymentManagerRequest) SetManagerIdentity(v string) { + x.NewManagerIdentity = &SetWorkerDeploymentManagerRequest_ManagerIdentity{v} +} + +func (x *SetWorkerDeploymentManagerRequest) SetSelf(v bool) { + x.NewManagerIdentity = &SetWorkerDeploymentManagerRequest_Self{v} +} + +func (x *SetWorkerDeploymentManagerRequest) SetConflictToken(v []byte) { + if v == nil { + v = []byte{} + } + x.ConflictToken = v +} + +func (x *SetWorkerDeploymentManagerRequest) SetIdentity(v string) { + x.Identity = v +} + +func (x *SetWorkerDeploymentManagerRequest) HasNewManagerIdentity() bool { + if x == nil { + return false + } + return x.NewManagerIdentity != nil +} + +func (x *SetWorkerDeploymentManagerRequest) HasManagerIdentity() bool { + if x == nil { + return false + } + _, ok := x.NewManagerIdentity.(*SetWorkerDeploymentManagerRequest_ManagerIdentity) + return ok +} + +func (x *SetWorkerDeploymentManagerRequest) HasSelf() bool { + if x == nil { + return false + } + _, ok := x.NewManagerIdentity.(*SetWorkerDeploymentManagerRequest_Self) + return ok +} + +func (x *SetWorkerDeploymentManagerRequest) ClearNewManagerIdentity() { + x.NewManagerIdentity = nil +} + +func (x *SetWorkerDeploymentManagerRequest) ClearManagerIdentity() { + if _, ok := x.NewManagerIdentity.(*SetWorkerDeploymentManagerRequest_ManagerIdentity); ok { + x.NewManagerIdentity = nil + } +} + +func (x *SetWorkerDeploymentManagerRequest) ClearSelf() { + if _, ok := x.NewManagerIdentity.(*SetWorkerDeploymentManagerRequest_Self); ok { + x.NewManagerIdentity = nil + } +} + +const SetWorkerDeploymentManagerRequest_NewManagerIdentity_not_set_case case_SetWorkerDeploymentManagerRequest_NewManagerIdentity = 0 +const SetWorkerDeploymentManagerRequest_ManagerIdentity_case case_SetWorkerDeploymentManagerRequest_NewManagerIdentity = 3 +const SetWorkerDeploymentManagerRequest_Self_case case_SetWorkerDeploymentManagerRequest_NewManagerIdentity = 4 + +func (x *SetWorkerDeploymentManagerRequest) WhichNewManagerIdentity() case_SetWorkerDeploymentManagerRequest_NewManagerIdentity { + if x == nil { + return SetWorkerDeploymentManagerRequest_NewManagerIdentity_not_set_case + } + switch x.NewManagerIdentity.(type) { + case *SetWorkerDeploymentManagerRequest_ManagerIdentity: + return SetWorkerDeploymentManagerRequest_ManagerIdentity_case + case *SetWorkerDeploymentManagerRequest_Self: + return SetWorkerDeploymentManagerRequest_Self_case + default: + return SetWorkerDeploymentManagerRequest_NewManagerIdentity_not_set_case + } +} + +type SetWorkerDeploymentManagerRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + DeploymentName string + // Fields of oneof NewManagerIdentity: + // Arbitrary value for `manager_identity`. + // Empty will unset the field. + ManagerIdentity *string + // True will set `manager_identity` to `identity`. + Self *bool + // -- end of NewManagerIdentity + // Optional. This can be the value of conflict_token from a Describe, or another Worker + // Deployment API. Passing a non-nil conflict token will cause this request to fail if the + // Deployment's configuration has been modified between the API call that generated the + // token and this one. + ConflictToken []byte + // Required. The identity of the client who initiated this request. + Identity string +} + +func (b0 SetWorkerDeploymentManagerRequest_builder) Build() *SetWorkerDeploymentManagerRequest { + m0 := &SetWorkerDeploymentManagerRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.DeploymentName = b.DeploymentName + if b.ManagerIdentity != nil { + x.NewManagerIdentity = &SetWorkerDeploymentManagerRequest_ManagerIdentity{*b.ManagerIdentity} + } + if b.Self != nil { + x.NewManagerIdentity = &SetWorkerDeploymentManagerRequest_Self{*b.Self} + } + x.ConflictToken = b.ConflictToken + x.Identity = b.Identity + return m0 +} + +type case_SetWorkerDeploymentManagerRequest_NewManagerIdentity protoreflect.FieldNumber + +func (x case_SetWorkerDeploymentManagerRequest_NewManagerIdentity) String() string { + switch x { + case SetWorkerDeploymentManagerRequest_NewManagerIdentity_not_set_case: + return "SetWorkerDeploymentManagerRequestNewManagerIdentityNotSetCase" + case SetWorkerDeploymentManagerRequest_ManagerIdentity_case: + return "SetWorkerDeploymentManagerRequestManagerIdentityCase" + case SetWorkerDeploymentManagerRequest_Self_case: + return "SetWorkerDeploymentManagerRequestSelfCase" + default: + return strconv.Itoa(int(x)) + } + +} + type isSetWorkerDeploymentManagerRequest_NewManagerIdentity interface { isSetWorkerDeploymentManagerRequest_NewManagerIdentity() } @@ -12650,7 +22417,7 @@ func (*SetWorkerDeploymentManagerRequest_Self) isSetWorkerDeploymentManagerReque } type SetWorkerDeploymentManagerResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // This value is returned so that it can be optionally passed to APIs // that write to the Worker Deployment state to ensure that the state // did not change between this API call and a future write. @@ -12692,11 +22459,6 @@ func (x *SetWorkerDeploymentManagerResponse) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use SetWorkerDeploymentManagerResponse.ProtoReflect.Descriptor instead. -func (*SetWorkerDeploymentManagerResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{161} -} - func (x *SetWorkerDeploymentManagerResponse) GetConflictToken() []byte { if x != nil { return x.ConflictToken @@ -12712,10 +22474,48 @@ func (x *SetWorkerDeploymentManagerResponse) GetPreviousManagerIdentity() string return "" } +func (x *SetWorkerDeploymentManagerResponse) SetConflictToken(v []byte) { + if v == nil { + v = []byte{} + } + x.ConflictToken = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *SetWorkerDeploymentManagerResponse) SetPreviousManagerIdentity(v string) { + x.PreviousManagerIdentity = v +} + +type SetWorkerDeploymentManagerResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // This value is returned so that it can be optionally passed to APIs + // that write to the Worker Deployment state to ensure that the state + // did not change between this API call and a future write. + ConflictToken []byte + // What the `manager_identity` field was before this change. + // Deprecated in favor of idempotency of the API. Use `DescribeWorkerDeployment` to get the + // manager identity before calling this API. By passing the `conflict_token` got from the + // `DescribeWorkerDeployment` call to this API you can ensure there is no interfering changes + // between the two calls. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + PreviousManagerIdentity string +} + +func (b0 SetWorkerDeploymentManagerResponse_builder) Build() *SetWorkerDeploymentManagerResponse { + m0 := &SetWorkerDeploymentManagerResponse{} + b, x := &b0, m0 + _, _ = b, x + x.ConflictToken = b.ConflictToken + x.PreviousManagerIdentity = b.PreviousManagerIdentity + return m0 +} + // Returns the Current Deployment of a deployment series. // [cleanup-wv-pre-release] Pre-release deployment APIs, clean up later type GetCurrentDeploymentRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` SeriesName string `protobuf:"bytes,2,opt,name=series_name,json=seriesName,proto3" json:"series_name,omitempty"` unknownFields protoimpl.UnknownFields @@ -12747,11 +22547,6 @@ func (x *GetCurrentDeploymentRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetCurrentDeploymentRequest.ProtoReflect.Descriptor instead. -func (*GetCurrentDeploymentRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{162} -} - func (x *GetCurrentDeploymentRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -12766,9 +22561,33 @@ func (x *GetCurrentDeploymentRequest) GetSeriesName() string { return "" } +func (x *GetCurrentDeploymentRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *GetCurrentDeploymentRequest) SetSeriesName(v string) { + x.SeriesName = v +} + +type GetCurrentDeploymentRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + SeriesName string +} + +func (b0 GetCurrentDeploymentRequest_builder) Build() *GetCurrentDeploymentRequest { + m0 := &GetCurrentDeploymentRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.SeriesName = b.SeriesName + return m0 +} + // [cleanup-wv-pre-release] Pre-release deployment APIs, clean up later type GetCurrentDeploymentResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` CurrentDeploymentInfo *v18.DeploymentInfo `protobuf:"bytes,1,opt,name=current_deployment_info,json=currentDeploymentInfo,proto3" json:"current_deployment_info,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -12799,11 +22618,6 @@ func (x *GetCurrentDeploymentResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetCurrentDeploymentResponse.ProtoReflect.Descriptor instead. -func (*GetCurrentDeploymentResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{163} -} - func (x *GetCurrentDeploymentResponse) GetCurrentDeploymentInfo() *v18.DeploymentInfo { if x != nil { return x.CurrentDeploymentInfo @@ -12811,9 +22625,38 @@ func (x *GetCurrentDeploymentResponse) GetCurrentDeploymentInfo() *v18.Deploymen return nil } +func (x *GetCurrentDeploymentResponse) SetCurrentDeploymentInfo(v *v18.DeploymentInfo) { + x.CurrentDeploymentInfo = v +} + +func (x *GetCurrentDeploymentResponse) HasCurrentDeploymentInfo() bool { + if x == nil { + return false + } + return x.CurrentDeploymentInfo != nil +} + +func (x *GetCurrentDeploymentResponse) ClearCurrentDeploymentInfo() { + x.CurrentDeploymentInfo = nil +} + +type GetCurrentDeploymentResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + CurrentDeploymentInfo *v18.DeploymentInfo +} + +func (b0 GetCurrentDeploymentResponse_builder) Build() *GetCurrentDeploymentResponse { + m0 := &GetCurrentDeploymentResponse{} + b, x := &b0, m0 + _, _ = b, x + x.CurrentDeploymentInfo = b.CurrentDeploymentInfo + return m0 +} + // [cleanup-wv-pre-release] Pre-release deployment APIs, clean up later type GetDeploymentReachabilityRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` Deployment *v18.Deployment `protobuf:"bytes,2,opt,name=deployment,proto3" json:"deployment,omitempty"` unknownFields protoimpl.UnknownFields @@ -12845,11 +22688,6 @@ func (x *GetDeploymentReachabilityRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetDeploymentReachabilityRequest.ProtoReflect.Descriptor instead. -func (*GetDeploymentReachabilityRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{164} -} - func (x *GetDeploymentReachabilityRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -12864,9 +22702,44 @@ func (x *GetDeploymentReachabilityRequest) GetDeployment() *v18.Deployment { return nil } +func (x *GetDeploymentReachabilityRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *GetDeploymentReachabilityRequest) SetDeployment(v *v18.Deployment) { + x.Deployment = v +} + +func (x *GetDeploymentReachabilityRequest) HasDeployment() bool { + if x == nil { + return false + } + return x.Deployment != nil +} + +func (x *GetDeploymentReachabilityRequest) ClearDeployment() { + x.Deployment = nil +} + +type GetDeploymentReachabilityRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + Deployment *v18.Deployment +} + +func (b0 GetDeploymentReachabilityRequest_builder) Build() *GetDeploymentReachabilityRequest { + m0 := &GetDeploymentReachabilityRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.Deployment = b.Deployment + return m0 +} + // [cleanup-wv-pre-release] Pre-release deployment APIs, clean up later type GetDeploymentReachabilityResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` DeploymentInfo *v18.DeploymentInfo `protobuf:"bytes,1,opt,name=deployment_info,json=deploymentInfo,proto3" json:"deployment_info,omitempty"` Reachability v11.DeploymentReachability `protobuf:"varint,2,opt,name=reachability,proto3,enum=temporal.api.enums.v1.DeploymentReachability" json:"reachability,omitempty"` // Reachability level might come from server cache. This timestamp specifies when the value @@ -12901,11 +22774,6 @@ func (x *GetDeploymentReachabilityResponse) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use GetDeploymentReachabilityResponse.ProtoReflect.Descriptor instead. -func (*GetDeploymentReachabilityResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{165} -} - func (x *GetDeploymentReachabilityResponse) GetDeploymentInfo() *v18.DeploymentInfo { if x != nil { return x.DeploymentInfo @@ -12927,8 +22795,62 @@ func (x *GetDeploymentReachabilityResponse) GetLastUpdateTime() *timestamppb.Tim return nil } +func (x *GetDeploymentReachabilityResponse) SetDeploymentInfo(v *v18.DeploymentInfo) { + x.DeploymentInfo = v +} + +func (x *GetDeploymentReachabilityResponse) SetReachability(v v11.DeploymentReachability) { + x.Reachability = v +} + +func (x *GetDeploymentReachabilityResponse) SetLastUpdateTime(v *timestamppb.Timestamp) { + x.LastUpdateTime = v +} + +func (x *GetDeploymentReachabilityResponse) HasDeploymentInfo() bool { + if x == nil { + return false + } + return x.DeploymentInfo != nil +} + +func (x *GetDeploymentReachabilityResponse) HasLastUpdateTime() bool { + if x == nil { + return false + } + return x.LastUpdateTime != nil +} + +func (x *GetDeploymentReachabilityResponse) ClearDeploymentInfo() { + x.DeploymentInfo = nil +} + +func (x *GetDeploymentReachabilityResponse) ClearLastUpdateTime() { + x.LastUpdateTime = nil +} + +type GetDeploymentReachabilityResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + DeploymentInfo *v18.DeploymentInfo + Reachability v11.DeploymentReachability + // Reachability level might come from server cache. This timestamp specifies when the value + // was actually calculated. + LastUpdateTime *timestamppb.Timestamp +} + +func (b0 GetDeploymentReachabilityResponse_builder) Build() *GetDeploymentReachabilityResponse { + m0 := &GetDeploymentReachabilityResponse{} + b, x := &b0, m0 + _, _ = b, x + x.DeploymentInfo = b.DeploymentInfo + x.Reachability = b.Reachability + x.LastUpdateTime = b.LastUpdateTime + return m0 +} + type CreateWorkflowRuleRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // The rule specification . Spec *v121.WorkflowRuleSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` @@ -12971,11 +22893,6 @@ func (x *CreateWorkflowRuleRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CreateWorkflowRuleRequest.ProtoReflect.Descriptor instead. -func (*CreateWorkflowRuleRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{166} -} - func (x *CreateWorkflowRuleRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -13018,8 +22935,74 @@ func (x *CreateWorkflowRuleRequest) GetDescription() string { return "" } +func (x *CreateWorkflowRuleRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *CreateWorkflowRuleRequest) SetSpec(v *v121.WorkflowRuleSpec) { + x.Spec = v +} + +func (x *CreateWorkflowRuleRequest) SetForceScan(v bool) { + x.ForceScan = v +} + +func (x *CreateWorkflowRuleRequest) SetRequestId(v string) { + x.RequestId = v +} + +func (x *CreateWorkflowRuleRequest) SetIdentity(v string) { + x.Identity = v +} + +func (x *CreateWorkflowRuleRequest) SetDescription(v string) { + x.Description = v +} + +func (x *CreateWorkflowRuleRequest) HasSpec() bool { + if x == nil { + return false + } + return x.Spec != nil +} + +func (x *CreateWorkflowRuleRequest) ClearSpec() { + x.Spec = nil +} + +type CreateWorkflowRuleRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + // The rule specification . + Spec *v121.WorkflowRuleSpec + // If true, the rule will be applied to the currently running workflows via batch job. + // If not set , the rule will only be applied when triggering condition is satisfied. + // visibility_query in the rule will be used to select the workflows to apply the rule to. + ForceScan bool + // Used to de-dupe requests. Typically should be UUID. + RequestId string + // Identity of the actor who created the rule. Will be stored with the rule. + Identity string + // Rule description.Will be stored with the rule. + Description string +} + +func (b0 CreateWorkflowRuleRequest_builder) Build() *CreateWorkflowRuleRequest { + m0 := &CreateWorkflowRuleRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.Spec = b.Spec + x.ForceScan = b.ForceScan + x.RequestId = b.RequestId + x.Identity = b.Identity + x.Description = b.Description + return m0 +} + type CreateWorkflowRuleResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Created rule. Rule *v121.WorkflowRule `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"` // Batch Job ID if force-scan flag was provided. Otherwise empty. @@ -13053,11 +23036,6 @@ func (x *CreateWorkflowRuleResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CreateWorkflowRuleResponse.ProtoReflect.Descriptor instead. -func (*CreateWorkflowRuleResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{167} -} - func (x *CreateWorkflowRuleResponse) GetRule() *v121.WorkflowRule { if x != nil { return x.Rule @@ -13072,8 +23050,45 @@ func (x *CreateWorkflowRuleResponse) GetJobId() string { return "" } +func (x *CreateWorkflowRuleResponse) SetRule(v *v121.WorkflowRule) { + x.Rule = v +} + +func (x *CreateWorkflowRuleResponse) SetJobId(v string) { + x.JobId = v +} + +func (x *CreateWorkflowRuleResponse) HasRule() bool { + if x == nil { + return false + } + return x.Rule != nil +} + +func (x *CreateWorkflowRuleResponse) ClearRule() { + x.Rule = nil +} + +type CreateWorkflowRuleResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Created rule. + Rule *v121.WorkflowRule + // Batch Job ID if force-scan flag was provided. Otherwise empty. + JobId string +} + +func (b0 CreateWorkflowRuleResponse_builder) Build() *CreateWorkflowRuleResponse { + m0 := &CreateWorkflowRuleResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Rule = b.Rule + x.JobId = b.JobId + return m0 +} + type DescribeWorkflowRuleRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // User-specified ID of the rule to read. Unique within the namespace. RuleId string `protobuf:"bytes,2,opt,name=rule_id,json=ruleId,proto3" json:"rule_id,omitempty"` @@ -13106,11 +23121,6 @@ func (x *DescribeWorkflowRuleRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DescribeWorkflowRuleRequest.ProtoReflect.Descriptor instead. -func (*DescribeWorkflowRuleRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{168} -} - func (x *DescribeWorkflowRuleRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -13125,8 +23135,33 @@ func (x *DescribeWorkflowRuleRequest) GetRuleId() string { return "" } +func (x *DescribeWorkflowRuleRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *DescribeWorkflowRuleRequest) SetRuleId(v string) { + x.RuleId = v +} + +type DescribeWorkflowRuleRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + // User-specified ID of the rule to read. Unique within the namespace. + RuleId string +} + +func (b0 DescribeWorkflowRuleRequest_builder) Build() *DescribeWorkflowRuleRequest { + m0 := &DescribeWorkflowRuleRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.RuleId = b.RuleId + return m0 +} + type DescribeWorkflowRuleResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The rule that was read. Rule *v121.WorkflowRule `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"` unknownFields protoimpl.UnknownFields @@ -13158,11 +23193,6 @@ func (x *DescribeWorkflowRuleResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DescribeWorkflowRuleResponse.ProtoReflect.Descriptor instead. -func (*DescribeWorkflowRuleResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{169} -} - func (x *DescribeWorkflowRuleResponse) GetRule() *v121.WorkflowRule { if x != nil { return x.Rule @@ -13170,8 +23200,38 @@ func (x *DescribeWorkflowRuleResponse) GetRule() *v121.WorkflowRule { return nil } +func (x *DescribeWorkflowRuleResponse) SetRule(v *v121.WorkflowRule) { + x.Rule = v +} + +func (x *DescribeWorkflowRuleResponse) HasRule() bool { + if x == nil { + return false + } + return x.Rule != nil +} + +func (x *DescribeWorkflowRuleResponse) ClearRule() { + x.Rule = nil +} + +type DescribeWorkflowRuleResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The rule that was read. + Rule *v121.WorkflowRule +} + +func (b0 DescribeWorkflowRuleResponse_builder) Build() *DescribeWorkflowRuleResponse { + m0 := &DescribeWorkflowRuleResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Rule = b.Rule + return m0 +} + type DeleteWorkflowRuleRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // ID of the rule to delete. Unique within the namespace. RuleId string `protobuf:"bytes,2,opt,name=rule_id,json=ruleId,proto3" json:"rule_id,omitempty"` @@ -13204,11 +23264,6 @@ func (x *DeleteWorkflowRuleRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeleteWorkflowRuleRequest.ProtoReflect.Descriptor instead. -func (*DeleteWorkflowRuleRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{170} -} - func (x *DeleteWorkflowRuleRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -13223,8 +23278,33 @@ func (x *DeleteWorkflowRuleRequest) GetRuleId() string { return "" } +func (x *DeleteWorkflowRuleRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *DeleteWorkflowRuleRequest) SetRuleId(v string) { + x.RuleId = v +} + +type DeleteWorkflowRuleRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + // ID of the rule to delete. Unique within the namespace. + RuleId string +} + +func (b0 DeleteWorkflowRuleRequest_builder) Build() *DeleteWorkflowRuleRequest { + m0 := &DeleteWorkflowRuleRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.RuleId = b.RuleId + return m0 +} + type DeleteWorkflowRuleResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -13254,13 +23334,20 @@ func (x *DeleteWorkflowRuleResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeleteWorkflowRuleResponse.ProtoReflect.Descriptor instead. -func (*DeleteWorkflowRuleResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{171} +type DeleteWorkflowRuleResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 DeleteWorkflowRuleResponse_builder) Build() *DeleteWorkflowRuleResponse { + m0 := &DeleteWorkflowRuleResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type ListWorkflowRulesRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` NextPageToken []byte `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` unknownFields protoimpl.UnknownFields @@ -13292,11 +23379,6 @@ func (x *ListWorkflowRulesRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListWorkflowRulesRequest.ProtoReflect.Descriptor instead. -func (*ListWorkflowRulesRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{172} -} - func (x *ListWorkflowRulesRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -13311,8 +23393,35 @@ func (x *ListWorkflowRulesRequest) GetNextPageToken() []byte { return nil } +func (x *ListWorkflowRulesRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *ListWorkflowRulesRequest) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.NextPageToken = v +} + +type ListWorkflowRulesRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + NextPageToken []byte +} + +func (b0 ListWorkflowRulesRequest_builder) Build() *ListWorkflowRulesRequest { + m0 := &ListWorkflowRulesRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.NextPageToken = b.NextPageToken + return m0 +} + type ListWorkflowRulesResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Rules []*v121.WorkflowRule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"` NextPageToken []byte `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` unknownFields protoimpl.UnknownFields @@ -13344,11 +23453,6 @@ func (x *ListWorkflowRulesResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListWorkflowRulesResponse.ProtoReflect.Descriptor instead. -func (*ListWorkflowRulesResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{173} -} - func (x *ListWorkflowRulesResponse) GetRules() []*v121.WorkflowRule { if x != nil { return x.Rules @@ -13363,8 +23467,35 @@ func (x *ListWorkflowRulesResponse) GetNextPageToken() []byte { return nil } +func (x *ListWorkflowRulesResponse) SetRules(v []*v121.WorkflowRule) { + x.Rules = v +} + +func (x *ListWorkflowRulesResponse) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.NextPageToken = v +} + +type ListWorkflowRulesResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Rules []*v121.WorkflowRule + NextPageToken []byte +} + +func (b0 ListWorkflowRulesResponse_builder) Build() *ListWorkflowRulesResponse { + m0 := &ListWorkflowRulesResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Rules = b.Rules + x.NextPageToken = b.NextPageToken + return m0 +} + type TriggerWorkflowRuleRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // Execution info of the workflow which scheduled this activity Execution *v13.WorkflowExecution `protobuf:"bytes,2,opt,name=execution,proto3" json:"execution,omitempty"` @@ -13406,55 +23537,191 @@ func (x *TriggerWorkflowRuleRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use TriggerWorkflowRuleRequest.ProtoReflect.Descriptor instead. -func (*TriggerWorkflowRuleRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{174} +func (x *TriggerWorkflowRuleRequest) GetNamespace() string { + if x != nil { + return x.Namespace + } + return "" +} + +func (x *TriggerWorkflowRuleRequest) GetExecution() *v13.WorkflowExecution { + if x != nil { + return x.Execution + } + return nil +} + +func (x *TriggerWorkflowRuleRequest) GetRule() isTriggerWorkflowRuleRequest_Rule { + if x != nil { + return x.Rule + } + return nil +} + +func (x *TriggerWorkflowRuleRequest) GetId() string { + if x != nil { + if x, ok := x.Rule.(*TriggerWorkflowRuleRequest_Id); ok { + return x.Id + } + } + return "" +} + +func (x *TriggerWorkflowRuleRequest) GetSpec() *v121.WorkflowRuleSpec { + if x != nil { + if x, ok := x.Rule.(*TriggerWorkflowRuleRequest_Spec); ok { + return x.Spec + } + } + return nil +} + +func (x *TriggerWorkflowRuleRequest) GetIdentity() string { + if x != nil { + return x.Identity + } + return "" +} + +func (x *TriggerWorkflowRuleRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *TriggerWorkflowRuleRequest) SetExecution(v *v13.WorkflowExecution) { + x.Execution = v +} + +func (x *TriggerWorkflowRuleRequest) SetId(v string) { + x.Rule = &TriggerWorkflowRuleRequest_Id{v} +} + +func (x *TriggerWorkflowRuleRequest) SetSpec(v *v121.WorkflowRuleSpec) { + if v == nil { + x.Rule = nil + return + } + x.Rule = &TriggerWorkflowRuleRequest_Spec{v} +} + +func (x *TriggerWorkflowRuleRequest) SetIdentity(v string) { + x.Identity = v +} + +func (x *TriggerWorkflowRuleRequest) HasExecution() bool { + if x == nil { + return false + } + return x.Execution != nil +} + +func (x *TriggerWorkflowRuleRequest) HasRule() bool { + if x == nil { + return false + } + return x.Rule != nil +} + +func (x *TriggerWorkflowRuleRequest) HasId() bool { + if x == nil { + return false + } + _, ok := x.Rule.(*TriggerWorkflowRuleRequest_Id) + return ok +} + +func (x *TriggerWorkflowRuleRequest) HasSpec() bool { + if x == nil { + return false + } + _, ok := x.Rule.(*TriggerWorkflowRuleRequest_Spec) + return ok +} + +func (x *TriggerWorkflowRuleRequest) ClearExecution() { + x.Execution = nil +} + +func (x *TriggerWorkflowRuleRequest) ClearRule() { + x.Rule = nil } -func (x *TriggerWorkflowRuleRequest) GetNamespace() string { - if x != nil { - return x.Namespace +func (x *TriggerWorkflowRuleRequest) ClearId() { + if _, ok := x.Rule.(*TriggerWorkflowRuleRequest_Id); ok { + x.Rule = nil } - return "" } -func (x *TriggerWorkflowRuleRequest) GetExecution() *v13.WorkflowExecution { - if x != nil { - return x.Execution +func (x *TriggerWorkflowRuleRequest) ClearSpec() { + if _, ok := x.Rule.(*TriggerWorkflowRuleRequest_Spec); ok { + x.Rule = nil } - return nil } -func (x *TriggerWorkflowRuleRequest) GetRule() isTriggerWorkflowRuleRequest_Rule { - if x != nil { - return x.Rule +const TriggerWorkflowRuleRequest_Rule_not_set_case case_TriggerWorkflowRuleRequest_Rule = 0 +const TriggerWorkflowRuleRequest_Id_case case_TriggerWorkflowRuleRequest_Rule = 4 +const TriggerWorkflowRuleRequest_Spec_case case_TriggerWorkflowRuleRequest_Rule = 5 + +func (x *TriggerWorkflowRuleRequest) WhichRule() case_TriggerWorkflowRuleRequest_Rule { + if x == nil { + return TriggerWorkflowRuleRequest_Rule_not_set_case + } + switch x.Rule.(type) { + case *TriggerWorkflowRuleRequest_Id: + return TriggerWorkflowRuleRequest_Id_case + case *TriggerWorkflowRuleRequest_Spec: + return TriggerWorkflowRuleRequest_Spec_case + default: + return TriggerWorkflowRuleRequest_Rule_not_set_case } - return nil } -func (x *TriggerWorkflowRuleRequest) GetId() string { - if x != nil { - if x, ok := x.Rule.(*TriggerWorkflowRuleRequest_Id); ok { - return x.Id - } - } - return "" +type TriggerWorkflowRuleRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + // Execution info of the workflow which scheduled this activity + Execution *v13.WorkflowExecution + // Either provide id of existing rule, or rule specification + + // Fields of oneof Rule: + Id *string + // Note: Rule ID and expiration date are not used in the trigger request. + Spec *v121.WorkflowRuleSpec + // -- end of Rule + // The identity of the client who initiated this request + Identity string } -func (x *TriggerWorkflowRuleRequest) GetSpec() *v121.WorkflowRuleSpec { - if x != nil { - if x, ok := x.Rule.(*TriggerWorkflowRuleRequest_Spec); ok { - return x.Spec - } +func (b0 TriggerWorkflowRuleRequest_builder) Build() *TriggerWorkflowRuleRequest { + m0 := &TriggerWorkflowRuleRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.Execution = b.Execution + if b.Id != nil { + x.Rule = &TriggerWorkflowRuleRequest_Id{*b.Id} } - return nil + if b.Spec != nil { + x.Rule = &TriggerWorkflowRuleRequest_Spec{b.Spec} + } + x.Identity = b.Identity + return m0 } -func (x *TriggerWorkflowRuleRequest) GetIdentity() string { - if x != nil { - return x.Identity +type case_TriggerWorkflowRuleRequest_Rule protoreflect.FieldNumber + +func (x case_TriggerWorkflowRuleRequest_Rule) String() string { + switch x { + case TriggerWorkflowRuleRequest_Rule_not_set_case: + return "TriggerWorkflowRuleRequestRuleNotSetCase" + case TriggerWorkflowRuleRequest_Id_case: + return "TriggerWorkflowRuleRequestIdCase" + case TriggerWorkflowRuleRequest_Spec_case: + return "TriggerWorkflowRuleRequestSpecCase" + default: + return strconv.Itoa(int(x)) } - return "" + } type isTriggerWorkflowRuleRequest_Rule interface { @@ -13475,7 +23742,7 @@ func (*TriggerWorkflowRuleRequest_Id) isTriggerWorkflowRuleRequest_Rule() {} func (*TriggerWorkflowRuleRequest_Spec) isTriggerWorkflowRuleRequest_Rule() {} type TriggerWorkflowRuleResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // True is the rule was applied, based on the rule conditions (predicate/visibility_query). Applied bool `protobuf:"varint,1,opt,name=applied,proto3" json:"applied,omitempty"` unknownFields protoimpl.UnknownFields @@ -13507,11 +23774,6 @@ func (x *TriggerWorkflowRuleResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use TriggerWorkflowRuleResponse.ProtoReflect.Descriptor instead. -func (*TriggerWorkflowRuleResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{175} -} - func (x *TriggerWorkflowRuleResponse) GetApplied() bool { if x != nil { return x.Applied @@ -13519,8 +23781,27 @@ func (x *TriggerWorkflowRuleResponse) GetApplied() bool { return false } +func (x *TriggerWorkflowRuleResponse) SetApplied(v bool) { + x.Applied = v +} + +type TriggerWorkflowRuleResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // True is the rule was applied, based on the rule conditions (predicate/visibility_query). + Applied bool +} + +func (b0 TriggerWorkflowRuleResponse_builder) Build() *TriggerWorkflowRuleResponse { + m0 := &TriggerWorkflowRuleResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Applied = b.Applied + return m0 +} + type RecordWorkerHeartbeatRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Namespace this worker belongs to. Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // The identity of the client who initiated this request. @@ -13555,11 +23836,6 @@ func (x *RecordWorkerHeartbeatRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RecordWorkerHeartbeatRequest.ProtoReflect.Descriptor instead. -func (*RecordWorkerHeartbeatRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{176} -} - func (x *RecordWorkerHeartbeatRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -13581,8 +23857,40 @@ func (x *RecordWorkerHeartbeatRequest) GetWorkerHeartbeat() []*v114.WorkerHeartb return nil } +func (x *RecordWorkerHeartbeatRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *RecordWorkerHeartbeatRequest) SetIdentity(v string) { + x.Identity = v +} + +func (x *RecordWorkerHeartbeatRequest) SetWorkerHeartbeat(v []*v114.WorkerHeartbeat) { + x.WorkerHeartbeat = v +} + +type RecordWorkerHeartbeatRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Namespace this worker belongs to. + Namespace string + // The identity of the client who initiated this request. + Identity string + WorkerHeartbeat []*v114.WorkerHeartbeat +} + +func (b0 RecordWorkerHeartbeatRequest_builder) Build() *RecordWorkerHeartbeatRequest { + m0 := &RecordWorkerHeartbeatRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.Identity = b.Identity + x.WorkerHeartbeat = b.WorkerHeartbeat + return m0 +} + type RecordWorkerHeartbeatResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -13612,13 +23920,20 @@ func (x *RecordWorkerHeartbeatResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RecordWorkerHeartbeatResponse.ProtoReflect.Descriptor instead. -func (*RecordWorkerHeartbeatResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{177} +type RecordWorkerHeartbeatResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 RecordWorkerHeartbeatResponse_builder) Build() *RecordWorkerHeartbeatResponse { + m0 := &RecordWorkerHeartbeatResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type ListWorkersRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` NextPageToken []byte `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` @@ -13666,11 +23981,6 @@ func (x *ListWorkersRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListWorkersRequest.ProtoReflect.Descriptor instead. -func (*ListWorkersRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{178} -} - func (x *ListWorkersRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -13699,8 +24009,61 @@ func (x *ListWorkersRequest) GetQuery() string { return "" } +func (x *ListWorkersRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *ListWorkersRequest) SetPageSize(v int32) { + x.PageSize = v +} + +func (x *ListWorkersRequest) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.NextPageToken = v +} + +func (x *ListWorkersRequest) SetQuery(v string) { + x.Query = v +} + +type ListWorkersRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + PageSize int32 + NextPageToken []byte + // `query` in ListWorkers is used to filter workers based on worker status info. + // The following worker status attributes are expected are supported as part of the query: + // * WorkerInstanceKey + // * WorkerIdentity + // * HostName + // * TaskQueue + // * DeploymentName + // * BuildId + // * SdkName + // * SdkVersion + // * StartTime + // * LastHeartbeatTime + // * Status + // Currently metrics are not supported as a part of ListWorkers query. + Query string +} + +func (b0 ListWorkersRequest_builder) Build() *ListWorkersRequest { + m0 := &ListWorkersRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.PageSize = b.PageSize + x.NextPageToken = b.NextPageToken + x.Query = b.Query + return m0 +} + type ListWorkersResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` WorkersInfo []*v114.WorkerInfo `protobuf:"bytes,1,rep,name=workers_info,json=workersInfo,proto3" json:"workers_info,omitempty"` // Next page token NextPageToken []byte `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` @@ -13733,11 +24096,6 @@ func (x *ListWorkersResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListWorkersResponse.ProtoReflect.Descriptor instead. -func (*ListWorkersResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{179} -} - func (x *ListWorkersResponse) GetWorkersInfo() []*v114.WorkerInfo { if x != nil { return x.WorkersInfo @@ -13752,8 +24110,36 @@ func (x *ListWorkersResponse) GetNextPageToken() []byte { return nil } +func (x *ListWorkersResponse) SetWorkersInfo(v []*v114.WorkerInfo) { + x.WorkersInfo = v +} + +func (x *ListWorkersResponse) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.NextPageToken = v +} + +type ListWorkersResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + WorkersInfo []*v114.WorkerInfo + // Next page token + NextPageToken []byte +} + +func (b0 ListWorkersResponse_builder) Build() *ListWorkersResponse { + m0 := &ListWorkersResponse{} + b, x := &b0, m0 + _, _ = b, x + x.WorkersInfo = b.WorkersInfo + x.NextPageToken = b.NextPageToken + return m0 +} + type UpdateTaskQueueConfigRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` // Selects the task queue to update. @@ -13804,11 +24190,6 @@ func (x *UpdateTaskQueueConfigRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UpdateTaskQueueConfigRequest.ProtoReflect.Descriptor instead. -func (*UpdateTaskQueueConfigRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{180} -} - func (x *UpdateTaskQueueConfigRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -13865,8 +24246,103 @@ func (x *UpdateTaskQueueConfigRequest) GetUnsetFairnessWeightOverrides() []strin return nil } +func (x *UpdateTaskQueueConfigRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *UpdateTaskQueueConfigRequest) SetIdentity(v string) { + x.Identity = v +} + +func (x *UpdateTaskQueueConfigRequest) SetTaskQueue(v string) { + x.TaskQueue = v +} + +func (x *UpdateTaskQueueConfigRequest) SetTaskQueueType(v v11.TaskQueueType) { + x.TaskQueueType = v +} + +func (x *UpdateTaskQueueConfigRequest) SetUpdateQueueRateLimit(v *UpdateTaskQueueConfigRequest_RateLimitUpdate) { + x.UpdateQueueRateLimit = v +} + +func (x *UpdateTaskQueueConfigRequest) SetUpdateFairnessKeyRateLimitDefault(v *UpdateTaskQueueConfigRequest_RateLimitUpdate) { + x.UpdateFairnessKeyRateLimitDefault = v +} + +func (x *UpdateTaskQueueConfigRequest) SetSetFairnessWeightOverrides(v map[string]float32) { + x.SetFairnessWeightOverrides = v +} + +func (x *UpdateTaskQueueConfigRequest) SetUnsetFairnessWeightOverrides(v []string) { + x.UnsetFairnessWeightOverrides = v +} + +func (x *UpdateTaskQueueConfigRequest) HasUpdateQueueRateLimit() bool { + if x == nil { + return false + } + return x.UpdateQueueRateLimit != nil +} + +func (x *UpdateTaskQueueConfigRequest) HasUpdateFairnessKeyRateLimitDefault() bool { + if x == nil { + return false + } + return x.UpdateFairnessKeyRateLimitDefault != nil +} + +func (x *UpdateTaskQueueConfigRequest) ClearUpdateQueueRateLimit() { + x.UpdateQueueRateLimit = nil +} + +func (x *UpdateTaskQueueConfigRequest) ClearUpdateFairnessKeyRateLimitDefault() { + x.UpdateFairnessKeyRateLimitDefault = nil +} + +type UpdateTaskQueueConfigRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + Identity string + // Selects the task queue to update. + TaskQueue string + TaskQueueType v11.TaskQueueType + // Update to queue-wide rate limit. + // If not set, this configuration is unchanged. + // NOTE: A limit set by the worker is overriden; and restored again when reset. + // If the `rate_limit` field in the `RateLimitUpdate` is missing, remove the existing rate limit. + UpdateQueueRateLimit *UpdateTaskQueueConfigRequest_RateLimitUpdate + // Update to the default fairness key rate limit. + // If not set, this configuration is unchanged. + // If the `rate_limit` field in the `RateLimitUpdate` is missing, remove the existing rate limit. + UpdateFairnessKeyRateLimitDefault *UpdateTaskQueueConfigRequest_RateLimitUpdate + // If set, overrides the fairness weight for each specified fairness key. + // Fairness keys not listed in this map will keep their existing overrides (if any). + SetFairnessWeightOverrides map[string]float32 + // If set, removes any existing fairness weight overrides for each specified fairness key. + // Fairness weights for corresponding keys fall back to the values set during task creation (if any), + // or to the default weight of 1.0. + UnsetFairnessWeightOverrides []string +} + +func (b0 UpdateTaskQueueConfigRequest_builder) Build() *UpdateTaskQueueConfigRequest { + m0 := &UpdateTaskQueueConfigRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.Identity = b.Identity + x.TaskQueue = b.TaskQueue + x.TaskQueueType = b.TaskQueueType + x.UpdateQueueRateLimit = b.UpdateQueueRateLimit + x.UpdateFairnessKeyRateLimitDefault = b.UpdateFairnessKeyRateLimitDefault + x.SetFairnessWeightOverrides = b.SetFairnessWeightOverrides + x.UnsetFairnessWeightOverrides = b.UnsetFairnessWeightOverrides + return m0 +} + type UpdateTaskQueueConfigResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Config *v14.TaskQueueConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -13897,11 +24373,6 @@ func (x *UpdateTaskQueueConfigResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UpdateTaskQueueConfigResponse.ProtoReflect.Descriptor instead. -func (*UpdateTaskQueueConfigResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{181} -} - func (x *UpdateTaskQueueConfigResponse) GetConfig() *v14.TaskQueueConfig { if x != nil { return x.Config @@ -13909,8 +24380,37 @@ func (x *UpdateTaskQueueConfigResponse) GetConfig() *v14.TaskQueueConfig { return nil } +func (x *UpdateTaskQueueConfigResponse) SetConfig(v *v14.TaskQueueConfig) { + x.Config = v +} + +func (x *UpdateTaskQueueConfigResponse) HasConfig() bool { + if x == nil { + return false + } + return x.Config != nil +} + +func (x *UpdateTaskQueueConfigResponse) ClearConfig() { + x.Config = nil +} + +type UpdateTaskQueueConfigResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Config *v14.TaskQueueConfig +} + +func (b0 UpdateTaskQueueConfigResponse_builder) Build() *UpdateTaskQueueConfigResponse { + m0 := &UpdateTaskQueueConfigResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Config = b.Config + return m0 +} + type FetchWorkerConfigRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Namespace this worker belongs to. Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // The identity of the client who initiated this request. @@ -13949,11 +24449,6 @@ func (x *FetchWorkerConfigRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use FetchWorkerConfigRequest.ProtoReflect.Descriptor instead. -func (*FetchWorkerConfigRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{182} -} - func (x *FetchWorkerConfigRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -13982,8 +24477,60 @@ func (x *FetchWorkerConfigRequest) GetSelector() *v13.WorkerSelector { return nil } +func (x *FetchWorkerConfigRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *FetchWorkerConfigRequest) SetIdentity(v string) { + x.Identity = v +} + +func (x *FetchWorkerConfigRequest) SetReason(v string) { + x.Reason = v +} + +func (x *FetchWorkerConfigRequest) SetSelector(v *v13.WorkerSelector) { + x.Selector = v +} + +func (x *FetchWorkerConfigRequest) HasSelector() bool { + if x == nil { + return false + } + return x.Selector != nil +} + +func (x *FetchWorkerConfigRequest) ClearSelector() { + x.Selector = nil +} + +type FetchWorkerConfigRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Namespace this worker belongs to. + Namespace string + // The identity of the client who initiated this request. + Identity string + // Reason for sending worker command, can be used for audit purpose. + Reason string + // Defines which workers should receive this command. + // only single worker is supported at this time. + Selector *v13.WorkerSelector +} + +func (b0 FetchWorkerConfigRequest_builder) Build() *FetchWorkerConfigRequest { + m0 := &FetchWorkerConfigRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.Identity = b.Identity + x.Reason = b.Reason + x.Selector = b.Selector + return m0 +} + type FetchWorkerConfigResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The worker configuration. WorkerConfig *v16.WorkerConfig `protobuf:"bytes,1,opt,name=worker_config,json=workerConfig,proto3" json:"worker_config,omitempty"` unknownFields protoimpl.UnknownFields @@ -14015,11 +24562,6 @@ func (x *FetchWorkerConfigResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use FetchWorkerConfigResponse.ProtoReflect.Descriptor instead. -func (*FetchWorkerConfigResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{183} -} - func (x *FetchWorkerConfigResponse) GetWorkerConfig() *v16.WorkerConfig { if x != nil { return x.WorkerConfig @@ -14027,8 +24569,38 @@ func (x *FetchWorkerConfigResponse) GetWorkerConfig() *v16.WorkerConfig { return nil } +func (x *FetchWorkerConfigResponse) SetWorkerConfig(v *v16.WorkerConfig) { + x.WorkerConfig = v +} + +func (x *FetchWorkerConfigResponse) HasWorkerConfig() bool { + if x == nil { + return false + } + return x.WorkerConfig != nil +} + +func (x *FetchWorkerConfigResponse) ClearWorkerConfig() { + x.WorkerConfig = nil +} + +type FetchWorkerConfigResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The worker configuration. + WorkerConfig *v16.WorkerConfig +} + +func (b0 FetchWorkerConfigResponse_builder) Build() *FetchWorkerConfigResponse { + m0 := &FetchWorkerConfigResponse{} + b, x := &b0, m0 + _, _ = b, x + x.WorkerConfig = b.WorkerConfig + return m0 +} + type UpdateWorkerConfigRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Namespace this worker belongs to. Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // The identity of the client who initiated this request. @@ -14071,11 +24643,6 @@ func (x *UpdateWorkerConfigRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UpdateWorkerConfigRequest.ProtoReflect.Descriptor instead. -func (*UpdateWorkerConfigRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{184} -} - func (x *UpdateWorkerConfigRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -14111,15 +24678,103 @@ func (x *UpdateWorkerConfigRequest) GetUpdateMask() *fieldmaskpb.FieldMask { return nil } -func (x *UpdateWorkerConfigRequest) GetSelector() *v13.WorkerSelector { - if x != nil { - return x.Selector - } - return nil +func (x *UpdateWorkerConfigRequest) GetSelector() *v13.WorkerSelector { + if x != nil { + return x.Selector + } + return nil +} + +func (x *UpdateWorkerConfigRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *UpdateWorkerConfigRequest) SetIdentity(v string) { + x.Identity = v +} + +func (x *UpdateWorkerConfigRequest) SetReason(v string) { + x.Reason = v +} + +func (x *UpdateWorkerConfigRequest) SetWorkerConfig(v *v16.WorkerConfig) { + x.WorkerConfig = v +} + +func (x *UpdateWorkerConfigRequest) SetUpdateMask(v *fieldmaskpb.FieldMask) { + x.UpdateMask = v +} + +func (x *UpdateWorkerConfigRequest) SetSelector(v *v13.WorkerSelector) { + x.Selector = v +} + +func (x *UpdateWorkerConfigRequest) HasWorkerConfig() bool { + if x == nil { + return false + } + return x.WorkerConfig != nil +} + +func (x *UpdateWorkerConfigRequest) HasUpdateMask() bool { + if x == nil { + return false + } + return x.UpdateMask != nil +} + +func (x *UpdateWorkerConfigRequest) HasSelector() bool { + if x == nil { + return false + } + return x.Selector != nil +} + +func (x *UpdateWorkerConfigRequest) ClearWorkerConfig() { + x.WorkerConfig = nil +} + +func (x *UpdateWorkerConfigRequest) ClearUpdateMask() { + x.UpdateMask = nil +} + +func (x *UpdateWorkerConfigRequest) ClearSelector() { + x.Selector = nil +} + +type UpdateWorkerConfigRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Namespace this worker belongs to. + Namespace string + // The identity of the client who initiated this request. + Identity string + // Reason for sending worker command, can be used for audit purpose. + Reason string + // Partial updates are accepted and controlled by update_mask. + // The worker configuration to set. + WorkerConfig *v16.WorkerConfig + // Controls which fields from `worker_config` will be applied + UpdateMask *fieldmaskpb.FieldMask + // Defines which workers should receive this command. + Selector *v13.WorkerSelector +} + +func (b0 UpdateWorkerConfigRequest_builder) Build() *UpdateWorkerConfigRequest { + m0 := &UpdateWorkerConfigRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.Identity = b.Identity + x.Reason = b.Reason + x.WorkerConfig = b.WorkerConfig + x.UpdateMask = b.UpdateMask + x.Selector = b.Selector + return m0 } type UpdateWorkerConfigResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Types that are valid to be assigned to Response: // // *UpdateWorkerConfigResponse_WorkerConfig @@ -14153,11 +24808,6 @@ func (x *UpdateWorkerConfigResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UpdateWorkerConfigResponse.ProtoReflect.Descriptor instead. -func (*UpdateWorkerConfigResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{185} -} - func (x *UpdateWorkerConfigResponse) GetResponse() isUpdateWorkerConfigResponse_Response { if x != nil { return x.Response @@ -14174,6 +24824,87 @@ func (x *UpdateWorkerConfigResponse) GetWorkerConfig() *v16.WorkerConfig { return nil } +func (x *UpdateWorkerConfigResponse) SetWorkerConfig(v *v16.WorkerConfig) { + if v == nil { + x.Response = nil + return + } + x.Response = &UpdateWorkerConfigResponse_WorkerConfig{v} +} + +func (x *UpdateWorkerConfigResponse) HasResponse() bool { + if x == nil { + return false + } + return x.Response != nil +} + +func (x *UpdateWorkerConfigResponse) HasWorkerConfig() bool { + if x == nil { + return false + } + _, ok := x.Response.(*UpdateWorkerConfigResponse_WorkerConfig) + return ok +} + +func (x *UpdateWorkerConfigResponse) ClearResponse() { + x.Response = nil +} + +func (x *UpdateWorkerConfigResponse) ClearWorkerConfig() { + if _, ok := x.Response.(*UpdateWorkerConfigResponse_WorkerConfig); ok { + x.Response = nil + } +} + +const UpdateWorkerConfigResponse_Response_not_set_case case_UpdateWorkerConfigResponse_Response = 0 +const UpdateWorkerConfigResponse_WorkerConfig_case case_UpdateWorkerConfigResponse_Response = 1 + +func (x *UpdateWorkerConfigResponse) WhichResponse() case_UpdateWorkerConfigResponse_Response { + if x == nil { + return UpdateWorkerConfigResponse_Response_not_set_case + } + switch x.Response.(type) { + case *UpdateWorkerConfigResponse_WorkerConfig: + return UpdateWorkerConfigResponse_WorkerConfig_case + default: + return UpdateWorkerConfigResponse_Response_not_set_case + } +} + +type UpdateWorkerConfigResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Fields of oneof Response: + // The worker configuration. Will be returned if the command was sent to a single worker. + WorkerConfig *v16.WorkerConfig + // -- end of Response +} + +func (b0 UpdateWorkerConfigResponse_builder) Build() *UpdateWorkerConfigResponse { + m0 := &UpdateWorkerConfigResponse{} + b, x := &b0, m0 + _, _ = b, x + if b.WorkerConfig != nil { + x.Response = &UpdateWorkerConfigResponse_WorkerConfig{b.WorkerConfig} + } + return m0 +} + +type case_UpdateWorkerConfigResponse_Response protoreflect.FieldNumber + +func (x case_UpdateWorkerConfigResponse_Response) String() string { + switch x { + case UpdateWorkerConfigResponse_Response_not_set_case: + return "UpdateWorkerConfigResponseResponseNotSetCase" + case UpdateWorkerConfigResponse_WorkerConfig_case: + return "UpdateWorkerConfigResponseWorkerConfigCase" + default: + return strconv.Itoa(int(x)) + } + +} + type isUpdateWorkerConfigResponse_Response interface { isUpdateWorkerConfigResponse_Response() } @@ -14186,7 +24917,7 @@ type UpdateWorkerConfigResponse_WorkerConfig struct { func (*UpdateWorkerConfigResponse_WorkerConfig) isUpdateWorkerConfigResponse_Response() {} type DescribeWorkerRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Namespace this worker belongs to. Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // Worker instance key to describe. @@ -14220,11 +24951,6 @@ func (x *DescribeWorkerRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DescribeWorkerRequest.ProtoReflect.Descriptor instead. -func (*DescribeWorkerRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{186} -} - func (x *DescribeWorkerRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -14239,8 +24965,34 @@ func (x *DescribeWorkerRequest) GetWorkerInstanceKey() string { return "" } +func (x *DescribeWorkerRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *DescribeWorkerRequest) SetWorkerInstanceKey(v string) { + x.WorkerInstanceKey = v +} + +type DescribeWorkerRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Namespace this worker belongs to. + Namespace string + // Worker instance key to describe. + WorkerInstanceKey string +} + +func (b0 DescribeWorkerRequest_builder) Build() *DescribeWorkerRequest { + m0 := &DescribeWorkerRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.WorkerInstanceKey = b.WorkerInstanceKey + return m0 +} + type DescribeWorkerResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` WorkerInfo *v114.WorkerInfo `protobuf:"bytes,1,opt,name=worker_info,json=workerInfo,proto3" json:"worker_info,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -14271,11 +25023,6 @@ func (x *DescribeWorkerResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DescribeWorkerResponse.ProtoReflect.Descriptor instead. -func (*DescribeWorkerResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{187} -} - func (x *DescribeWorkerResponse) GetWorkerInfo() *v114.WorkerInfo { if x != nil { return x.WorkerInfo @@ -14283,9 +25030,38 @@ func (x *DescribeWorkerResponse) GetWorkerInfo() *v114.WorkerInfo { return nil } +func (x *DescribeWorkerResponse) SetWorkerInfo(v *v114.WorkerInfo) { + x.WorkerInfo = v +} + +func (x *DescribeWorkerResponse) HasWorkerInfo() bool { + if x == nil { + return false + } + return x.WorkerInfo != nil +} + +func (x *DescribeWorkerResponse) ClearWorkerInfo() { + x.WorkerInfo = nil +} + +type DescribeWorkerResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + WorkerInfo *v114.WorkerInfo +} + +func (b0 DescribeWorkerResponse_builder) Build() *DescribeWorkerResponse { + m0 := &DescribeWorkerResponse{} + b, x := &b0, m0 + _, _ = b, x + x.WorkerInfo = b.WorkerInfo + return m0 +} + // Request to pause a workflow execution. type PauseWorkflowExecutionRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Namespace of the workflow to pause. Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // ID of the workflow execution to be paused. Required. @@ -14327,11 +25103,6 @@ func (x *PauseWorkflowExecutionRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PauseWorkflowExecutionRequest.ProtoReflect.Descriptor instead. -func (*PauseWorkflowExecutionRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{188} -} - func (x *PauseWorkflowExecutionRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -14374,9 +25145,63 @@ func (x *PauseWorkflowExecutionRequest) GetRequestId() string { return "" } +func (x *PauseWorkflowExecutionRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *PauseWorkflowExecutionRequest) SetWorkflowId(v string) { + x.WorkflowId = v +} + +func (x *PauseWorkflowExecutionRequest) SetRunId(v string) { + x.RunId = v +} + +func (x *PauseWorkflowExecutionRequest) SetIdentity(v string) { + x.Identity = v +} + +func (x *PauseWorkflowExecutionRequest) SetReason(v string) { + x.Reason = v +} + +func (x *PauseWorkflowExecutionRequest) SetRequestId(v string) { + x.RequestId = v +} + +type PauseWorkflowExecutionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Namespace of the workflow to pause. + Namespace string + // ID of the workflow execution to be paused. Required. + WorkflowId string + // Run ID of the workflow execution to be paused. Optional. If not provided, the current run of the workflow will be paused. + RunId string + // The identity of the client who initiated this request. + Identity string + // Reason to pause the workflow execution. + Reason string + // A unique identifier for this pause request for idempotence. Typically UUIDv4. + RequestId string +} + +func (b0 PauseWorkflowExecutionRequest_builder) Build() *PauseWorkflowExecutionRequest { + m0 := &PauseWorkflowExecutionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.WorkflowId = b.WorkflowId + x.RunId = b.RunId + x.Identity = b.Identity + x.Reason = b.Reason + x.RequestId = b.RequestId + return m0 +} + // Response to a successful PauseWorkflowExecution request. type PauseWorkflowExecutionResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -14406,13 +25231,20 @@ func (x *PauseWorkflowExecutionResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PauseWorkflowExecutionResponse.ProtoReflect.Descriptor instead. -func (*PauseWorkflowExecutionResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{189} +type PauseWorkflowExecutionResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 PauseWorkflowExecutionResponse_builder) Build() *PauseWorkflowExecutionResponse { + m0 := &PauseWorkflowExecutionResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type UnpauseWorkflowExecutionRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Namespace of the workflow to unpause. Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // ID of the workflow execution to be paused. Required. @@ -14454,11 +25286,6 @@ func (x *UnpauseWorkflowExecutionRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UnpauseWorkflowExecutionRequest.ProtoReflect.Descriptor instead. -func (*UnpauseWorkflowExecutionRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{190} -} - func (x *UnpauseWorkflowExecutionRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -14501,9 +25328,63 @@ func (x *UnpauseWorkflowExecutionRequest) GetRequestId() string { return "" } +func (x *UnpauseWorkflowExecutionRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *UnpauseWorkflowExecutionRequest) SetWorkflowId(v string) { + x.WorkflowId = v +} + +func (x *UnpauseWorkflowExecutionRequest) SetRunId(v string) { + x.RunId = v +} + +func (x *UnpauseWorkflowExecutionRequest) SetIdentity(v string) { + x.Identity = v +} + +func (x *UnpauseWorkflowExecutionRequest) SetReason(v string) { + x.Reason = v +} + +func (x *UnpauseWorkflowExecutionRequest) SetRequestId(v string) { + x.RequestId = v +} + +type UnpauseWorkflowExecutionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Namespace of the workflow to unpause. + Namespace string + // ID of the workflow execution to be paused. Required. + WorkflowId string + // Run ID of the workflow execution to be paused. Optional. If not provided, the current run of the workflow will be paused. + RunId string + // The identity of the client who initiated this request. + Identity string + // Reason to unpause the workflow execution. + Reason string + // A unique identifier for this unpause request for idempotence. Typically UUIDv4. + RequestId string +} + +func (b0 UnpauseWorkflowExecutionRequest_builder) Build() *UnpauseWorkflowExecutionRequest { + m0 := &UnpauseWorkflowExecutionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.WorkflowId = b.WorkflowId + x.RunId = b.RunId + x.Identity = b.Identity + x.Reason = b.Reason + x.RequestId = b.RequestId + return m0 +} + // Response to a successful UnpauseWorkflowExecution request. type UnpauseWorkflowExecutionResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -14533,13 +25414,20 @@ func (x *UnpauseWorkflowExecutionResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UnpauseWorkflowExecutionResponse.ProtoReflect.Descriptor instead. -func (*UnpauseWorkflowExecutionResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{191} +type UnpauseWorkflowExecutionResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 UnpauseWorkflowExecutionResponse_builder) Build() *UnpauseWorkflowExecutionResponse { + m0 := &UnpauseWorkflowExecutionResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type StartActivityExecutionRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // The identity of the client who initiated this request Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` @@ -14625,11 +25513,6 @@ func (x *StartActivityExecutionRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use StartActivityExecutionRequest.ProtoReflect.Descriptor instead. -func (*StartActivityExecutionRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{192} -} - func (x *StartActivityExecutionRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -14707,57 +25590,347 @@ func (x *StartActivityExecutionRequest) GetRetryPolicy() *v13.RetryPolicy { return nil } -func (x *StartActivityExecutionRequest) GetInput() *v13.Payloads { - if x != nil { - return x.Input - } - return nil +func (x *StartActivityExecutionRequest) GetInput() *v13.Payloads { + if x != nil { + return x.Input + } + return nil +} + +func (x *StartActivityExecutionRequest) GetIdReusePolicy() v11.ActivityIdReusePolicy { + if x != nil { + return x.IdReusePolicy + } + return v11.ActivityIdReusePolicy(0) +} + +func (x *StartActivityExecutionRequest) GetIdConflictPolicy() v11.ActivityIdConflictPolicy { + if x != nil { + return x.IdConflictPolicy + } + return v11.ActivityIdConflictPolicy(0) +} + +func (x *StartActivityExecutionRequest) GetSearchAttributes() *v13.SearchAttributes { + if x != nil { + return x.SearchAttributes + } + return nil +} + +func (x *StartActivityExecutionRequest) GetHeader() *v13.Header { + if x != nil { + return x.Header + } + return nil +} + +func (x *StartActivityExecutionRequest) GetUserMetadata() *v16.UserMetadata { + if x != nil { + return x.UserMetadata + } + return nil +} + +func (x *StartActivityExecutionRequest) GetPriority() *v13.Priority { + if x != nil { + return x.Priority + } + return nil +} + +func (x *StartActivityExecutionRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *StartActivityExecutionRequest) SetIdentity(v string) { + x.Identity = v +} + +func (x *StartActivityExecutionRequest) SetRequestId(v string) { + x.RequestId = v +} + +func (x *StartActivityExecutionRequest) SetActivityId(v string) { + x.ActivityId = v +} + +func (x *StartActivityExecutionRequest) SetActivityType(v *v13.ActivityType) { + x.ActivityType = v +} + +func (x *StartActivityExecutionRequest) SetTaskQueue(v *v14.TaskQueue) { + x.TaskQueue = v +} + +func (x *StartActivityExecutionRequest) SetScheduleToCloseTimeout(v *durationpb.Duration) { + x.ScheduleToCloseTimeout = v +} + +func (x *StartActivityExecutionRequest) SetScheduleToStartTimeout(v *durationpb.Duration) { + x.ScheduleToStartTimeout = v +} + +func (x *StartActivityExecutionRequest) SetStartToCloseTimeout(v *durationpb.Duration) { + x.StartToCloseTimeout = v +} + +func (x *StartActivityExecutionRequest) SetHeartbeatTimeout(v *durationpb.Duration) { + x.HeartbeatTimeout = v +} + +func (x *StartActivityExecutionRequest) SetRetryPolicy(v *v13.RetryPolicy) { + x.RetryPolicy = v +} + +func (x *StartActivityExecutionRequest) SetInput(v *v13.Payloads) { + x.Input = v +} + +func (x *StartActivityExecutionRequest) SetIdReusePolicy(v v11.ActivityIdReusePolicy) { + x.IdReusePolicy = v +} + +func (x *StartActivityExecutionRequest) SetIdConflictPolicy(v v11.ActivityIdConflictPolicy) { + x.IdConflictPolicy = v +} + +func (x *StartActivityExecutionRequest) SetSearchAttributes(v *v13.SearchAttributes) { + x.SearchAttributes = v +} + +func (x *StartActivityExecutionRequest) SetHeader(v *v13.Header) { + x.Header = v +} + +func (x *StartActivityExecutionRequest) SetUserMetadata(v *v16.UserMetadata) { + x.UserMetadata = v +} + +func (x *StartActivityExecutionRequest) SetPriority(v *v13.Priority) { + x.Priority = v +} + +func (x *StartActivityExecutionRequest) HasActivityType() bool { + if x == nil { + return false + } + return x.ActivityType != nil +} + +func (x *StartActivityExecutionRequest) HasTaskQueue() bool { + if x == nil { + return false + } + return x.TaskQueue != nil +} + +func (x *StartActivityExecutionRequest) HasScheduleToCloseTimeout() bool { + if x == nil { + return false + } + return x.ScheduleToCloseTimeout != nil +} + +func (x *StartActivityExecutionRequest) HasScheduleToStartTimeout() bool { + if x == nil { + return false + } + return x.ScheduleToStartTimeout != nil +} + +func (x *StartActivityExecutionRequest) HasStartToCloseTimeout() bool { + if x == nil { + return false + } + return x.StartToCloseTimeout != nil +} + +func (x *StartActivityExecutionRequest) HasHeartbeatTimeout() bool { + if x == nil { + return false + } + return x.HeartbeatTimeout != nil +} + +func (x *StartActivityExecutionRequest) HasRetryPolicy() bool { + if x == nil { + return false + } + return x.RetryPolicy != nil +} + +func (x *StartActivityExecutionRequest) HasInput() bool { + if x == nil { + return false + } + return x.Input != nil +} + +func (x *StartActivityExecutionRequest) HasSearchAttributes() bool { + if x == nil { + return false + } + return x.SearchAttributes != nil +} + +func (x *StartActivityExecutionRequest) HasHeader() bool { + if x == nil { + return false + } + return x.Header != nil +} + +func (x *StartActivityExecutionRequest) HasUserMetadata() bool { + if x == nil { + return false + } + return x.UserMetadata != nil +} + +func (x *StartActivityExecutionRequest) HasPriority() bool { + if x == nil { + return false + } + return x.Priority != nil +} + +func (x *StartActivityExecutionRequest) ClearActivityType() { + x.ActivityType = nil +} + +func (x *StartActivityExecutionRequest) ClearTaskQueue() { + x.TaskQueue = nil +} + +func (x *StartActivityExecutionRequest) ClearScheduleToCloseTimeout() { + x.ScheduleToCloseTimeout = nil +} + +func (x *StartActivityExecutionRequest) ClearScheduleToStartTimeout() { + x.ScheduleToStartTimeout = nil +} + +func (x *StartActivityExecutionRequest) ClearStartToCloseTimeout() { + x.StartToCloseTimeout = nil +} + +func (x *StartActivityExecutionRequest) ClearHeartbeatTimeout() { + x.HeartbeatTimeout = nil } -func (x *StartActivityExecutionRequest) GetIdReusePolicy() v11.ActivityIdReusePolicy { - if x != nil { - return x.IdReusePolicy - } - return v11.ActivityIdReusePolicy(0) +func (x *StartActivityExecutionRequest) ClearRetryPolicy() { + x.RetryPolicy = nil } -func (x *StartActivityExecutionRequest) GetIdConflictPolicy() v11.ActivityIdConflictPolicy { - if x != nil { - return x.IdConflictPolicy - } - return v11.ActivityIdConflictPolicy(0) +func (x *StartActivityExecutionRequest) ClearInput() { + x.Input = nil } -func (x *StartActivityExecutionRequest) GetSearchAttributes() *v13.SearchAttributes { - if x != nil { - return x.SearchAttributes - } - return nil +func (x *StartActivityExecutionRequest) ClearSearchAttributes() { + x.SearchAttributes = nil } -func (x *StartActivityExecutionRequest) GetHeader() *v13.Header { - if x != nil { - return x.Header - } - return nil +func (x *StartActivityExecutionRequest) ClearHeader() { + x.Header = nil } -func (x *StartActivityExecutionRequest) GetUserMetadata() *v16.UserMetadata { - if x != nil { - return x.UserMetadata - } - return nil +func (x *StartActivityExecutionRequest) ClearUserMetadata() { + x.UserMetadata = nil } -func (x *StartActivityExecutionRequest) GetPriority() *v13.Priority { - if x != nil { - return x.Priority - } - return nil +func (x *StartActivityExecutionRequest) ClearPriority() { + x.Priority = nil +} + +type StartActivityExecutionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + // The identity of the client who initiated this request + Identity string + // A unique identifier for this start request. Typically UUIDv4. + RequestId string + // Identifier for this activity. Required. This identifier should be meaningful in the user's + // own system. It must be unique among activities in the same namespace, subject to the rules + // imposed by id_reuse_policy and id_conflict_policy. + ActivityId string + // The type of the activity, a string that corresponds to a registered activity on a worker. + ActivityType *v13.ActivityType + // Task queue to schedule this activity on. + TaskQueue *v14.TaskQueue + // Indicates how long the caller is willing to wait for an activity completion. Limits how long + // retries will be attempted. Either this or `start_to_close_timeout` must be specified. + // + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + ScheduleToCloseTimeout *durationpb.Duration + // Limits time an activity task can stay in a task queue before a worker picks it up. This + // timeout is always non retryable, as all a retry would achieve is to put it back into the same + // queue. Defaults to `schedule_to_close_timeout` if not specified. + // + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + ScheduleToStartTimeout *durationpb.Duration + // Maximum time an activity is allowed to execute after being picked up by a worker. This + // timeout is always retryable. Either this or `schedule_to_close_timeout` must be + // specified. + // + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + StartToCloseTimeout *durationpb.Duration + // Maximum permitted time between successful worker heartbeats. + HeartbeatTimeout *durationpb.Duration + // The retry policy for the activity. Will never exceed `schedule_to_close_timeout`. + RetryPolicy *v13.RetryPolicy + // Serialized arguments to the activity. These are passed as arguments to the activity function. + Input *v13.Payloads + // Defines whether to allow re-using the activity id from a previously *closed* activity. + // The default policy is ACTIVITY_ID_REUSE_POLICY_ALLOW_DUPLICATE. + IdReusePolicy v11.ActivityIdReusePolicy + // Defines how to resolve an activity id conflict with a *running* activity. + // The default policy is ACTIVITY_ID_CONFLICT_POLICY_FAIL. + IdConflictPolicy v11.ActivityIdConflictPolicy + // Search attributes for indexing. + SearchAttributes *v13.SearchAttributes + // Header for context propagation and tracing purposes. + Header *v13.Header + // Metadata for use by user interfaces to display the fixed as-of-start summary and details of the activity. + UserMetadata *v16.UserMetadata + // Priority metadata. + Priority *v13.Priority +} + +func (b0 StartActivityExecutionRequest_builder) Build() *StartActivityExecutionRequest { + m0 := &StartActivityExecutionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.Identity = b.Identity + x.RequestId = b.RequestId + x.ActivityId = b.ActivityId + x.ActivityType = b.ActivityType + x.TaskQueue = b.TaskQueue + x.ScheduleToCloseTimeout = b.ScheduleToCloseTimeout + x.ScheduleToStartTimeout = b.ScheduleToStartTimeout + x.StartToCloseTimeout = b.StartToCloseTimeout + x.HeartbeatTimeout = b.HeartbeatTimeout + x.RetryPolicy = b.RetryPolicy + x.Input = b.Input + x.IdReusePolicy = b.IdReusePolicy + x.IdConflictPolicy = b.IdConflictPolicy + x.SearchAttributes = b.SearchAttributes + x.Header = b.Header + x.UserMetadata = b.UserMetadata + x.Priority = b.Priority + return m0 } type StartActivityExecutionResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The run ID of the activity that was started - or used (via ACTIVITY_ID_CONFLICT_POLICY_USE_EXISTING). RunId string `protobuf:"bytes,1,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"` // If true, a new activity was started. @@ -14791,11 +25964,6 @@ func (x *StartActivityExecutionResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use StartActivityExecutionResponse.ProtoReflect.Descriptor instead. -func (*StartActivityExecutionResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{193} -} - func (x *StartActivityExecutionResponse) GetRunId() string { if x != nil { return x.RunId @@ -14810,8 +25978,34 @@ func (x *StartActivityExecutionResponse) GetStarted() bool { return false } +func (x *StartActivityExecutionResponse) SetRunId(v string) { + x.RunId = v +} + +func (x *StartActivityExecutionResponse) SetStarted(v bool) { + x.Started = v +} + +type StartActivityExecutionResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The run ID of the activity that was started - or used (via ACTIVITY_ID_CONFLICT_POLICY_USE_EXISTING). + RunId string + // If true, a new activity was started. + Started bool +} + +func (b0 StartActivityExecutionResponse_builder) Build() *StartActivityExecutionResponse { + m0 := &StartActivityExecutionResponse{} + b, x := &b0, m0 + _, _ = b, x + x.RunId = b.RunId + x.Started = b.Started + return m0 +} + type DescribeActivityExecutionRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` ActivityId string `protobuf:"bytes,2,opt,name=activity_id,json=activityId,proto3" json:"activity_id,omitempty"` // Activity run ID. If empty the request targets the latest run. @@ -14856,11 +26050,6 @@ func (x *DescribeActivityExecutionRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DescribeActivityExecutionRequest.ProtoReflect.Descriptor instead. -func (*DescribeActivityExecutionRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{194} -} - func (x *DescribeActivityExecutionRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -14903,8 +26092,68 @@ func (x *DescribeActivityExecutionRequest) GetLongPollToken() []byte { return nil } +func (x *DescribeActivityExecutionRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *DescribeActivityExecutionRequest) SetActivityId(v string) { + x.ActivityId = v +} + +func (x *DescribeActivityExecutionRequest) SetRunId(v string) { + x.RunId = v +} + +func (x *DescribeActivityExecutionRequest) SetIncludeInput(v bool) { + x.IncludeInput = v +} + +func (x *DescribeActivityExecutionRequest) SetIncludeOutcome(v bool) { + x.IncludeOutcome = v +} + +func (x *DescribeActivityExecutionRequest) SetLongPollToken(v []byte) { + if v == nil { + v = []byte{} + } + x.LongPollToken = v +} + +type DescribeActivityExecutionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + ActivityId string + // Activity run ID. If empty the request targets the latest run. + RunId string + // Include the input field in the response. + IncludeInput bool + // Include the outcome (result/failure) in the response if the activity has completed. + IncludeOutcome bool + // Token from a previous DescribeActivityExecutionResponse. If present, long-poll until activity + // state changes from the state encoded in this token. If absent, return current state immediately. + // If present, run_id must also be present. + // Note that activity state may change multiple times between requests, therefore it is not + // guaranteed that a client making a sequence of long-poll requests will see a complete + // sequence of state changes. + LongPollToken []byte +} + +func (b0 DescribeActivityExecutionRequest_builder) Build() *DescribeActivityExecutionRequest { + m0 := &DescribeActivityExecutionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.ActivityId = b.ActivityId + x.RunId = b.RunId + x.IncludeInput = b.IncludeInput + x.IncludeOutcome = b.IncludeOutcome + x.LongPollToken = b.LongPollToken + return m0 +} + type DescribeActivityExecutionResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The run ID of the activity, useful when run_id was not specified in the request. RunId string `protobuf:"bytes,1,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"` // Information about the activity execution. @@ -14945,11 +26194,6 @@ func (x *DescribeActivityExecutionResponse) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use DescribeActivityExecutionResponse.ProtoReflect.Descriptor instead. -func (*DescribeActivityExecutionResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{195} -} - func (x *DescribeActivityExecutionResponse) GetRunId() string { if x != nil { return x.RunId @@ -14985,8 +26229,92 @@ func (x *DescribeActivityExecutionResponse) GetLongPollToken() []byte { return nil } +func (x *DescribeActivityExecutionResponse) SetRunId(v string) { + x.RunId = v +} + +func (x *DescribeActivityExecutionResponse) SetInfo(v *v120.ActivityExecutionInfo) { + x.Info = v +} + +func (x *DescribeActivityExecutionResponse) SetInput(v *v13.Payloads) { + x.Input = v +} + +func (x *DescribeActivityExecutionResponse) SetOutcome(v *v120.ActivityExecutionOutcome) { + x.Outcome = v +} + +func (x *DescribeActivityExecutionResponse) SetLongPollToken(v []byte) { + if v == nil { + v = []byte{} + } + x.LongPollToken = v +} + +func (x *DescribeActivityExecutionResponse) HasInfo() bool { + if x == nil { + return false + } + return x.Info != nil +} + +func (x *DescribeActivityExecutionResponse) HasInput() bool { + if x == nil { + return false + } + return x.Input != nil +} + +func (x *DescribeActivityExecutionResponse) HasOutcome() bool { + if x == nil { + return false + } + return x.Outcome != nil +} + +func (x *DescribeActivityExecutionResponse) ClearInfo() { + x.Info = nil +} + +func (x *DescribeActivityExecutionResponse) ClearInput() { + x.Input = nil +} + +func (x *DescribeActivityExecutionResponse) ClearOutcome() { + x.Outcome = nil +} + +type DescribeActivityExecutionResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The run ID of the activity, useful when run_id was not specified in the request. + RunId string + // Information about the activity execution. + Info *v120.ActivityExecutionInfo + // Serialized activity input, passed as arguments to the activity function. + // Only set if include_input was true in the request. + Input *v13.Payloads + // Only set if the activity is completed and include_outcome was true in the request. + Outcome *v120.ActivityExecutionOutcome + // Token for follow-on long-poll requests. Absent only if the activity is complete. + LongPollToken []byte +} + +func (b0 DescribeActivityExecutionResponse_builder) Build() *DescribeActivityExecutionResponse { + m0 := &DescribeActivityExecutionResponse{} + b, x := &b0, m0 + _, _ = b, x + x.RunId = b.RunId + x.Info = b.Info + x.Input = b.Input + x.Outcome = b.Outcome + x.LongPollToken = b.LongPollToken + return m0 +} + type PollActivityExecutionRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` ActivityId string `protobuf:"bytes,2,opt,name=activity_id,json=activityId,proto3" json:"activity_id,omitempty"` // Activity run ID. If empty the request targets the latest run. @@ -15020,11 +26348,6 @@ func (x *PollActivityExecutionRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PollActivityExecutionRequest.ProtoReflect.Descriptor instead. -func (*PollActivityExecutionRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{196} -} - func (x *PollActivityExecutionRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -15046,8 +26369,39 @@ func (x *PollActivityExecutionRequest) GetRunId() string { return "" } +func (x *PollActivityExecutionRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *PollActivityExecutionRequest) SetActivityId(v string) { + x.ActivityId = v +} + +func (x *PollActivityExecutionRequest) SetRunId(v string) { + x.RunId = v +} + +type PollActivityExecutionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + ActivityId string + // Activity run ID. If empty the request targets the latest run. + RunId string +} + +func (b0 PollActivityExecutionRequest_builder) Build() *PollActivityExecutionRequest { + m0 := &PollActivityExecutionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.ActivityId = b.ActivityId + x.RunId = b.RunId + return m0 +} + type PollActivityExecutionResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The run ID of the activity, useful when run_id was not specified in the request. RunId string `protobuf:"bytes,1,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"` Outcome *v120.ActivityExecutionOutcome `protobuf:"bytes,2,opt,name=outcome,proto3" json:"outcome,omitempty"` @@ -15080,11 +26434,6 @@ func (x *PollActivityExecutionResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PollActivityExecutionResponse.ProtoReflect.Descriptor instead. -func (*PollActivityExecutionResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{197} -} - func (x *PollActivityExecutionResponse) GetRunId() string { if x != nil { return x.RunId @@ -15099,8 +26448,44 @@ func (x *PollActivityExecutionResponse) GetOutcome() *v120.ActivityExecutionOutc return nil } +func (x *PollActivityExecutionResponse) SetRunId(v string) { + x.RunId = v +} + +func (x *PollActivityExecutionResponse) SetOutcome(v *v120.ActivityExecutionOutcome) { + x.Outcome = v +} + +func (x *PollActivityExecutionResponse) HasOutcome() bool { + if x == nil { + return false + } + return x.Outcome != nil +} + +func (x *PollActivityExecutionResponse) ClearOutcome() { + x.Outcome = nil +} + +type PollActivityExecutionResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The run ID of the activity, useful when run_id was not specified in the request. + RunId string + Outcome *v120.ActivityExecutionOutcome +} + +func (b0 PollActivityExecutionResponse_builder) Build() *PollActivityExecutionResponse { + m0 := &PollActivityExecutionResponse{} + b, x := &b0, m0 + _, _ = b, x + x.RunId = b.RunId + x.Outcome = b.Outcome + return m0 +} + type ListActivityExecutionsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // Max number of executions to return per page. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` @@ -15137,11 +26522,6 @@ func (x *ListActivityExecutionsRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListActivityExecutionsRequest.ProtoReflect.Descriptor instead. -func (*ListActivityExecutionsRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{198} -} - func (x *ListActivityExecutionsRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -15170,8 +26550,50 @@ func (x *ListActivityExecutionsRequest) GetQuery() string { return "" } +func (x *ListActivityExecutionsRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *ListActivityExecutionsRequest) SetPageSize(v int32) { + x.PageSize = v +} + +func (x *ListActivityExecutionsRequest) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.NextPageToken = v +} + +func (x *ListActivityExecutionsRequest) SetQuery(v string) { + x.Query = v +} + +type ListActivityExecutionsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + // Max number of executions to return per page. + PageSize int32 + // Token returned in ListActivityExecutionsResponse. + NextPageToken []byte + // Visibility query, see https://docs.temporal.io/list-filter for the syntax. + Query string +} + +func (b0 ListActivityExecutionsRequest_builder) Build() *ListActivityExecutionsRequest { + m0 := &ListActivityExecutionsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.PageSize = b.PageSize + x.NextPageToken = b.NextPageToken + x.Query = b.Query + return m0 +} + type ListActivityExecutionsResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Executions []*v120.ActivityExecutionListInfo `protobuf:"bytes,1,rep,name=executions,proto3" json:"executions,omitempty"` // Token to use to fetch the next page. If empty, there is no next page. NextPageToken []byte `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` @@ -15204,11 +26626,6 @@ func (x *ListActivityExecutionsResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListActivityExecutionsResponse.ProtoReflect.Descriptor instead. -func (*ListActivityExecutionsResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{199} -} - func (x *ListActivityExecutionsResponse) GetExecutions() []*v120.ActivityExecutionListInfo { if x != nil { return x.Executions @@ -15223,8 +26640,36 @@ func (x *ListActivityExecutionsResponse) GetNextPageToken() []byte { return nil } +func (x *ListActivityExecutionsResponse) SetExecutions(v []*v120.ActivityExecutionListInfo) { + x.Executions = v +} + +func (x *ListActivityExecutionsResponse) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.NextPageToken = v +} + +type ListActivityExecutionsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Executions []*v120.ActivityExecutionListInfo + // Token to use to fetch the next page. If empty, there is no next page. + NextPageToken []byte +} + +func (b0 ListActivityExecutionsResponse_builder) Build() *ListActivityExecutionsResponse { + m0 := &ListActivityExecutionsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Executions = b.Executions + x.NextPageToken = b.NextPageToken + return m0 +} + type CountActivityExecutionsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // Visibility query, see https://docs.temporal.io/list-filter for the syntax. Query string `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` @@ -15257,11 +26702,6 @@ func (x *CountActivityExecutionsRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CountActivityExecutionsRequest.ProtoReflect.Descriptor instead. -func (*CountActivityExecutionsRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{200} -} - func (x *CountActivityExecutionsRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -15276,8 +26716,33 @@ func (x *CountActivityExecutionsRequest) GetQuery() string { return "" } +func (x *CountActivityExecutionsRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *CountActivityExecutionsRequest) SetQuery(v string) { + x.Query = v +} + +type CountActivityExecutionsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + // Visibility query, see https://docs.temporal.io/list-filter for the syntax. + Query string +} + +func (b0 CountActivityExecutionsRequest_builder) Build() *CountActivityExecutionsRequest { + m0 := &CountActivityExecutionsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.Query = b.Query + return m0 +} + type CountActivityExecutionsResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // If `query` is not grouping by any field, the count is an approximate number // of activities that match the query. // If `query` is grouping by a field, the count is simply the sum of the counts @@ -15316,11 +26781,6 @@ func (x *CountActivityExecutionsResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CountActivityExecutionsResponse.ProtoReflect.Descriptor instead. -func (*CountActivityExecutionsResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{201} -} - func (x *CountActivityExecutionsResponse) GetCount() int64 { if x != nil { return x.Count @@ -15328,15 +26788,46 @@ func (x *CountActivityExecutionsResponse) GetCount() int64 { return 0 } -func (x *CountActivityExecutionsResponse) GetGroups() []*CountActivityExecutionsResponse_AggregationGroup { - if x != nil { - return x.Groups - } - return nil +func (x *CountActivityExecutionsResponse) GetGroups() []*CountActivityExecutionsResponse_AggregationGroup { + if x != nil { + return x.Groups + } + return nil +} + +func (x *CountActivityExecutionsResponse) SetCount(v int64) { + x.Count = v +} + +func (x *CountActivityExecutionsResponse) SetGroups(v []*CountActivityExecutionsResponse_AggregationGroup) { + x.Groups = v +} + +type CountActivityExecutionsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // If `query` is not grouping by any field, the count is an approximate number + // of activities that match the query. + // If `query` is grouping by a field, the count is simply the sum of the counts + // of the groups returned in the response. This number can be smaller than the + // total number of activities matching the query. + Count int64 + // Contains the groups if the request is grouping by a field. + // The list might not be complete, and the counts of each group is approximate. + Groups []*CountActivityExecutionsResponse_AggregationGroup +} + +func (b0 CountActivityExecutionsResponse_builder) Build() *CountActivityExecutionsResponse { + m0 := &CountActivityExecutionsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Count = b.Count + x.Groups = b.Groups + return m0 } type RequestCancelActivityExecutionRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` ActivityId string `protobuf:"bytes,2,opt,name=activity_id,json=activityId,proto3" json:"activity_id,omitempty"` // Activity run ID, targets the latest run if run_id is empty. @@ -15377,11 +26868,6 @@ func (x *RequestCancelActivityExecutionRequest) ProtoReflect() protoreflect.Mess return mi.MessageOf(x) } -// Deprecated: Use RequestCancelActivityExecutionRequest.ProtoReflect.Descriptor instead. -func (*RequestCancelActivityExecutionRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{202} -} - func (x *RequestCancelActivityExecutionRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -15424,8 +26910,61 @@ func (x *RequestCancelActivityExecutionRequest) GetReason() string { return "" } +func (x *RequestCancelActivityExecutionRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *RequestCancelActivityExecutionRequest) SetActivityId(v string) { + x.ActivityId = v +} + +func (x *RequestCancelActivityExecutionRequest) SetRunId(v string) { + x.RunId = v +} + +func (x *RequestCancelActivityExecutionRequest) SetIdentity(v string) { + x.Identity = v +} + +func (x *RequestCancelActivityExecutionRequest) SetRequestId(v string) { + x.RequestId = v +} + +func (x *RequestCancelActivityExecutionRequest) SetReason(v string) { + x.Reason = v +} + +type RequestCancelActivityExecutionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + ActivityId string + // Activity run ID, targets the latest run if run_id is empty. + RunId string + // The identity of the worker/client. + Identity string + // Used to de-dupe cancellation requests. + RequestId string + // Reason for requesting the cancellation, recorded and available via the PollActivityExecution API. + // Not propagated to a worker if an activity attempt is currently running. + Reason string +} + +func (b0 RequestCancelActivityExecutionRequest_builder) Build() *RequestCancelActivityExecutionRequest { + m0 := &RequestCancelActivityExecutionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.ActivityId = b.ActivityId + x.RunId = b.RunId + x.Identity = b.Identity + x.RequestId = b.RequestId + x.Reason = b.Reason + return m0 +} + type RequestCancelActivityExecutionResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -15455,13 +26994,20 @@ func (x *RequestCancelActivityExecutionResponse) ProtoReflect() protoreflect.Mes return mi.MessageOf(x) } -// Deprecated: Use RequestCancelActivityExecutionResponse.ProtoReflect.Descriptor instead. -func (*RequestCancelActivityExecutionResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{203} +type RequestCancelActivityExecutionResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 RequestCancelActivityExecutionResponse_builder) Build() *RequestCancelActivityExecutionResponse { + m0 := &RequestCancelActivityExecutionResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type TerminateActivityExecutionRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` ActivityId string `protobuf:"bytes,2,opt,name=activity_id,json=activityId,proto3" json:"activity_id,omitempty"` // Activity run ID, targets the latest run if run_id is empty. @@ -15501,11 +27047,6 @@ func (x *TerminateActivityExecutionRequest) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use TerminateActivityExecutionRequest.ProtoReflect.Descriptor instead. -func (*TerminateActivityExecutionRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{204} -} - func (x *TerminateActivityExecutionRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -15548,8 +27089,60 @@ func (x *TerminateActivityExecutionRequest) GetReason() string { return "" } +func (x *TerminateActivityExecutionRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *TerminateActivityExecutionRequest) SetActivityId(v string) { + x.ActivityId = v +} + +func (x *TerminateActivityExecutionRequest) SetRunId(v string) { + x.RunId = v +} + +func (x *TerminateActivityExecutionRequest) SetIdentity(v string) { + x.Identity = v +} + +func (x *TerminateActivityExecutionRequest) SetRequestId(v string) { + x.RequestId = v +} + +func (x *TerminateActivityExecutionRequest) SetReason(v string) { + x.Reason = v +} + +type TerminateActivityExecutionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + ActivityId string + // Activity run ID, targets the latest run if run_id is empty. + RunId string + // The identity of the worker/client. + Identity string + // Used to de-dupe termination requests. + RequestId string + // Reason for requesting the termination, recorded in in the activity's result failure outcome. + Reason string +} + +func (b0 TerminateActivityExecutionRequest_builder) Build() *TerminateActivityExecutionRequest { + m0 := &TerminateActivityExecutionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.ActivityId = b.ActivityId + x.RunId = b.RunId + x.Identity = b.Identity + x.RequestId = b.RequestId + x.Reason = b.Reason + return m0 +} + type TerminateActivityExecutionResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -15579,13 +27172,20 @@ func (x *TerminateActivityExecutionResponse) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use TerminateActivityExecutionResponse.ProtoReflect.Descriptor instead. -func (*TerminateActivityExecutionResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{205} +type TerminateActivityExecutionResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 TerminateActivityExecutionResponse_builder) Build() *TerminateActivityExecutionResponse { + m0 := &TerminateActivityExecutionResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type DeleteActivityExecutionRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` ActivityId string `protobuf:"bytes,2,opt,name=activity_id,json=activityId,proto3" json:"activity_id,omitempty"` // Activity run ID, targets the latest run if run_id is empty. @@ -15619,11 +27219,6 @@ func (x *DeleteActivityExecutionRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeleteActivityExecutionRequest.ProtoReflect.Descriptor instead. -func (*DeleteActivityExecutionRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{206} -} - func (x *DeleteActivityExecutionRequest) GetNamespace() string { if x != nil { return x.Namespace @@ -15645,8 +27240,39 @@ func (x *DeleteActivityExecutionRequest) GetRunId() string { return "" } +func (x *DeleteActivityExecutionRequest) SetNamespace(v string) { + x.Namespace = v +} + +func (x *DeleteActivityExecutionRequest) SetActivityId(v string) { + x.ActivityId = v +} + +func (x *DeleteActivityExecutionRequest) SetRunId(v string) { + x.RunId = v +} + +type DeleteActivityExecutionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + ActivityId string + // Activity run ID, targets the latest run if run_id is empty. + RunId string +} + +func (b0 DeleteActivityExecutionRequest_builder) Build() *DeleteActivityExecutionRequest { + m0 := &DeleteActivityExecutionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Namespace = b.Namespace + x.ActivityId = b.ActivityId + x.RunId = b.RunId + return m0 +} + type DeleteActivityExecutionResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -15676,14 +27302,21 @@ func (x *DeleteActivityExecutionResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeleteActivityExecutionResponse.ProtoReflect.Descriptor instead. -func (*DeleteActivityExecutionResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{207} +type DeleteActivityExecutionResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 DeleteActivityExecutionResponse_builder) Build() *DeleteActivityExecutionResponse { + m0 := &DeleteActivityExecutionResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } // SDK capability details. type RespondWorkflowTaskCompletedRequest_Capabilities struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // True if the SDK can handle speculative workflow task with command events. If true, the // server may choose, at its discretion, to discard a speculative workflow task even if that // speculative task included command events the SDK had not previously processed. @@ -15721,11 +27354,6 @@ func (x *RespondWorkflowTaskCompletedRequest_Capabilities) ProtoReflect() protor return mi.MessageOf(x) } -// Deprecated: Use RespondWorkflowTaskCompletedRequest_Capabilities.ProtoReflect.Descriptor instead. -func (*RespondWorkflowTaskCompletedRequest_Capabilities) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{18, 1} -} - func (x *RespondWorkflowTaskCompletedRequest_Capabilities) GetDiscardSpeculativeWorkflowTaskWithEvents() bool { if x != nil { return x.DiscardSpeculativeWorkflowTaskWithEvents @@ -15733,8 +27361,33 @@ func (x *RespondWorkflowTaskCompletedRequest_Capabilities) GetDiscardSpeculative return false } +func (x *RespondWorkflowTaskCompletedRequest_Capabilities) SetDiscardSpeculativeWorkflowTaskWithEvents(v bool) { + x.DiscardSpeculativeWorkflowTaskWithEvents = v +} + +type RespondWorkflowTaskCompletedRequest_Capabilities_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // True if the SDK can handle speculative workflow task with command events. If true, the + // server may choose, at its discretion, to discard a speculative workflow task even if that + // speculative task included command events the SDK had not previously processed. + // + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "with" used to describe the workflow task. --) + DiscardSpeculativeWorkflowTaskWithEvents bool +} + +func (b0 RespondWorkflowTaskCompletedRequest_Capabilities_builder) Build() *RespondWorkflowTaskCompletedRequest_Capabilities { + m0 := &RespondWorkflowTaskCompletedRequest_Capabilities{} + b, x := &b0, m0 + _, _ = b, x + x.DiscardSpeculativeWorkflowTaskWithEvents = b.DiscardSpeculativeWorkflowTaskWithEvents + return m0 +} + type CountWorkflowExecutionsResponse_AggregationGroup struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` GroupValues []*v13.Payload `protobuf:"bytes,1,rep,name=group_values,json=groupValues,proto3" json:"group_values,omitempty"` Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` unknownFields protoimpl.UnknownFields @@ -15766,11 +27419,6 @@ func (x *CountWorkflowExecutionsResponse_AggregationGroup) ProtoReflect() protor return mi.MessageOf(x) } -// Deprecated: Use CountWorkflowExecutionsResponse_AggregationGroup.ProtoReflect.Descriptor instead. -func (*CountWorkflowExecutionsResponse_AggregationGroup) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{63, 0} -} - func (x *CountWorkflowExecutionsResponse_AggregationGroup) GetGroupValues() []*v13.Payload { if x != nil { return x.GroupValues @@ -15785,8 +27433,32 @@ func (x *CountWorkflowExecutionsResponse_AggregationGroup) GetCount() int64 { return 0 } +func (x *CountWorkflowExecutionsResponse_AggregationGroup) SetGroupValues(v []*v13.Payload) { + x.GroupValues = v +} + +func (x *CountWorkflowExecutionsResponse_AggregationGroup) SetCount(v int64) { + x.Count = v +} + +type CountWorkflowExecutionsResponse_AggregationGroup_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + GroupValues []*v13.Payload + Count int64 +} + +func (b0 CountWorkflowExecutionsResponse_AggregationGroup_builder) Build() *CountWorkflowExecutionsResponse_AggregationGroup { + m0 := &CountWorkflowExecutionsResponse_AggregationGroup{} + b, x := &b0, m0 + _, _ = b, x + x.GroupValues = b.GroupValues + x.Count = b.Count + return m0 +} + type DescribeTaskQueueResponse_EffectiveRateLimit struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The effective rate limit for the task queue. RequestsPerSecond float32 `protobuf:"fixed32,1,opt,name=requests_per_second,json=requestsPerSecond,proto3" json:"requests_per_second,omitempty"` // Source of the RateLimit Configuration,which can be one of the following values: @@ -15823,11 +27495,6 @@ func (x *DescribeTaskQueueResponse_EffectiveRateLimit) ProtoReflect() protorefle return mi.MessageOf(x) } -// Deprecated: Use DescribeTaskQueueResponse_EffectiveRateLimit.ProtoReflect.Descriptor instead. -func (*DescribeTaskQueueResponse_EffectiveRateLimit) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{77, 1} -} - func (x *DescribeTaskQueueResponse_EffectiveRateLimit) GetRequestsPerSecond() float32 { if x != nil { return x.RequestsPerSecond @@ -15842,9 +27509,38 @@ func (x *DescribeTaskQueueResponse_EffectiveRateLimit) GetRateLimitSource() v11. return v11.RateLimitSource(0) } +func (x *DescribeTaskQueueResponse_EffectiveRateLimit) SetRequestsPerSecond(v float32) { + x.RequestsPerSecond = v +} + +func (x *DescribeTaskQueueResponse_EffectiveRateLimit) SetRateLimitSource(v v11.RateLimitSource) { + x.RateLimitSource = v +} + +type DescribeTaskQueueResponse_EffectiveRateLimit_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The effective rate limit for the task queue. + RequestsPerSecond float32 + // Source of the RateLimit Configuration,which can be one of the following values: + // - SOURCE_API: The rate limit that is set via the TaskQueueConfig api. + // - SOURCE_WORKER: The rate limit is the value set using the workerOptions in TaskQueueActivitiesPerSecond. + // - SOURCE_SYSTEM: The rate limit is the default value set by the system + RateLimitSource v11.RateLimitSource +} + +func (b0 DescribeTaskQueueResponse_EffectiveRateLimit_builder) Build() *DescribeTaskQueueResponse_EffectiveRateLimit { + m0 := &DescribeTaskQueueResponse_EffectiveRateLimit{} + b, x := &b0, m0 + _, _ = b, x + x.RequestsPerSecond = b.RequestsPerSecond + x.RateLimitSource = b.RateLimitSource + return m0 +} + // System capability details. type GetSystemInfoResponse_Capabilities struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // True if signal and query headers are supported. SignalAndQueryHeader bool `protobuf:"varint,1,opt,name=signal_and_query_header,json=signalAndQueryHeader,proto3" json:"signal_and_query_header,omitempty"` // True if internal errors are differentiated from other types of errors for purposes of @@ -15905,11 +27601,6 @@ func (x *GetSystemInfoResponse_Capabilities) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use GetSystemInfoResponse_Capabilities.ProtoReflect.Descriptor instead. -func (*GetSystemInfoResponse_Capabilities) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{81, 0} -} - func (x *GetSystemInfoResponse_Capabilities) GetSignalAndQueryHeader() bool { if x != nil { return x.SignalAndQueryHeader @@ -15987,8 +27678,106 @@ func (x *GetSystemInfoResponse_Capabilities) GetNexus() bool { return false } +func (x *GetSystemInfoResponse_Capabilities) SetSignalAndQueryHeader(v bool) { + x.SignalAndQueryHeader = v +} + +func (x *GetSystemInfoResponse_Capabilities) SetInternalErrorDifferentiation(v bool) { + x.InternalErrorDifferentiation = v +} + +func (x *GetSystemInfoResponse_Capabilities) SetActivityFailureIncludeHeartbeat(v bool) { + x.ActivityFailureIncludeHeartbeat = v +} + +func (x *GetSystemInfoResponse_Capabilities) SetSupportsSchedules(v bool) { + x.SupportsSchedules = v +} + +func (x *GetSystemInfoResponse_Capabilities) SetEncodedFailureAttributes(v bool) { + x.EncodedFailureAttributes = v +} + +func (x *GetSystemInfoResponse_Capabilities) SetBuildIdBasedVersioning(v bool) { + x.BuildIdBasedVersioning = v +} + +func (x *GetSystemInfoResponse_Capabilities) SetUpsertMemo(v bool) { + x.UpsertMemo = v +} + +func (x *GetSystemInfoResponse_Capabilities) SetEagerWorkflowStart(v bool) { + x.EagerWorkflowStart = v +} + +func (x *GetSystemInfoResponse_Capabilities) SetSdkMetadata(v bool) { + x.SdkMetadata = v +} + +func (x *GetSystemInfoResponse_Capabilities) SetCountGroupByExecutionStatus(v bool) { + x.CountGroupByExecutionStatus = v +} + +func (x *GetSystemInfoResponse_Capabilities) SetNexus(v bool) { + x.Nexus = v +} + +type GetSystemInfoResponse_Capabilities_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // True if signal and query headers are supported. + SignalAndQueryHeader bool + // True if internal errors are differentiated from other types of errors for purposes of + // retrying non-internal errors. + // + // When unset/false, clients retry all failures. When true, clients should only retry + // non-internal errors. + InternalErrorDifferentiation bool + // True if RespondActivityTaskFailed API supports including heartbeat details + ActivityFailureIncludeHeartbeat bool + // Supports scheduled workflow features. + SupportsSchedules bool + // True if server uses protos that include temporal.api.failure.v1.Failure.encoded_attributes + EncodedFailureAttributes bool + // True if server supports dispatching Workflow and Activity tasks based on a worker's build_id + // (see: + // https://github.com/temporalio/proposals/blob/a123af3b559f43db16ea6dd31870bfb754c4dc5e/versioning/worker-versions.md) + BuildIdBasedVersioning bool + // True if server supports upserting workflow memo + UpsertMemo bool + // True if server supports eager workflow task dispatching for the StartWorkflowExecution API + EagerWorkflowStart bool + // True if the server knows about the sdk metadata field on WFT completions and will record + // it in history + SdkMetadata bool + // True if the server supports count group by execution status + // (-- api-linter: core::0140::prepositions=disabled --) + CountGroupByExecutionStatus bool + // True if the server supports Nexus operations. + // This flag is dependent both on server version and for Nexus to be enabled via server configuration. + Nexus bool +} + +func (b0 GetSystemInfoResponse_Capabilities_builder) Build() *GetSystemInfoResponse_Capabilities { + m0 := &GetSystemInfoResponse_Capabilities{} + b, x := &b0, m0 + _, _ = b, x + x.SignalAndQueryHeader = b.SignalAndQueryHeader + x.InternalErrorDifferentiation = b.InternalErrorDifferentiation + x.ActivityFailureIncludeHeartbeat = b.ActivityFailureIncludeHeartbeat + x.SupportsSchedules = b.SupportsSchedules + x.EncodedFailureAttributes = b.EncodedFailureAttributes + x.BuildIdBasedVersioning = b.BuildIdBasedVersioning + x.UpsertMemo = b.UpsertMemo + x.EagerWorkflowStart = b.EagerWorkflowStart + x.SdkMetadata = b.SdkMetadata + x.CountGroupByExecutionStatus = b.CountGroupByExecutionStatus + x.Nexus = b.Nexus + return m0 +} + type UpdateWorkerBuildIdCompatibilityRequest_AddNewCompatibleVersion struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // A new id to be added to an existing compatible set. NewBuildId string `protobuf:"bytes,1,opt,name=new_build_id,json=newBuildId,proto3" json:"new_build_id,omitempty"` // A build id which must already exist in the version sets known by the task queue. The new @@ -16028,11 +27817,6 @@ func (x *UpdateWorkerBuildIdCompatibilityRequest_AddNewCompatibleVersion) ProtoR return mi.MessageOf(x) } -// Deprecated: Use UpdateWorkerBuildIdCompatibilityRequest_AddNewCompatibleVersion.ProtoReflect.Descriptor instead. -func (*UpdateWorkerBuildIdCompatibilityRequest_AddNewCompatibleVersion) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{98, 0} -} - func (x *UpdateWorkerBuildIdCompatibilityRequest_AddNewCompatibleVersion) GetNewBuildId() string { if x != nil { return x.NewBuildId @@ -16054,8 +27838,45 @@ func (x *UpdateWorkerBuildIdCompatibilityRequest_AddNewCompatibleVersion) GetMak return false } +func (x *UpdateWorkerBuildIdCompatibilityRequest_AddNewCompatibleVersion) SetNewBuildId(v string) { + x.NewBuildId = v +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest_AddNewCompatibleVersion) SetExistingCompatibleBuildId(v string) { + x.ExistingCompatibleBuildId = v +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest_AddNewCompatibleVersion) SetMakeSetDefault(v bool) { + x.MakeSetDefault = v +} + +type UpdateWorkerBuildIdCompatibilityRequest_AddNewCompatibleVersion_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // A new id to be added to an existing compatible set. + NewBuildId string + // A build id which must already exist in the version sets known by the task queue. The new + // id will be stored in the set containing this id, marking it as compatible with + // the versions within. + ExistingCompatibleBuildId string + // When set, establishes the compatible set being targeted as the overall default for the + // queue. If a different set was the current default, the targeted set will replace it as + // the new default. + MakeSetDefault bool +} + +func (b0 UpdateWorkerBuildIdCompatibilityRequest_AddNewCompatibleVersion_builder) Build() *UpdateWorkerBuildIdCompatibilityRequest_AddNewCompatibleVersion { + m0 := &UpdateWorkerBuildIdCompatibilityRequest_AddNewCompatibleVersion{} + b, x := &b0, m0 + _, _ = b, x + x.NewBuildId = b.NewBuildId + x.ExistingCompatibleBuildId = b.ExistingCompatibleBuildId + x.MakeSetDefault = b.MakeSetDefault + return m0 +} + type UpdateWorkerBuildIdCompatibilityRequest_MergeSets struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // A build ID in the set whose default will become the merged set default PrimarySetBuildId string `protobuf:"bytes,1,opt,name=primary_set_build_id,json=primarySetBuildId,proto3" json:"primary_set_build_id,omitempty"` // A build ID in the set which will be merged into the primary set @@ -16089,11 +27910,6 @@ func (x *UpdateWorkerBuildIdCompatibilityRequest_MergeSets) ProtoReflect() proto return mi.MessageOf(x) } -// Deprecated: Use UpdateWorkerBuildIdCompatibilityRequest_MergeSets.ProtoReflect.Descriptor instead. -func (*UpdateWorkerBuildIdCompatibilityRequest_MergeSets) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{98, 1} -} - func (x *UpdateWorkerBuildIdCompatibilityRequest_MergeSets) GetPrimarySetBuildId() string { if x != nil { return x.PrimarySetBuildId @@ -16108,11 +27924,37 @@ func (x *UpdateWorkerBuildIdCompatibilityRequest_MergeSets) GetSecondarySetBuild return "" } +func (x *UpdateWorkerBuildIdCompatibilityRequest_MergeSets) SetPrimarySetBuildId(v string) { + x.PrimarySetBuildId = v +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest_MergeSets) SetSecondarySetBuildId(v string) { + x.SecondarySetBuildId = v +} + +type UpdateWorkerBuildIdCompatibilityRequest_MergeSets_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // A build ID in the set whose default will become the merged set default + PrimarySetBuildId string + // A build ID in the set which will be merged into the primary set + SecondarySetBuildId string +} + +func (b0 UpdateWorkerBuildIdCompatibilityRequest_MergeSets_builder) Build() *UpdateWorkerBuildIdCompatibilityRequest_MergeSets { + m0 := &UpdateWorkerBuildIdCompatibilityRequest_MergeSets{} + b, x := &b0, m0 + _, _ = b, x + x.PrimarySetBuildId = b.PrimarySetBuildId + x.SecondarySetBuildId = b.SecondarySetBuildId + return m0 +} + // Inserts the rule to the list of assignment rules for this Task Queue. // The rules are evaluated in order, starting from index 0. The first // applicable rule will be applied and the rest will be ignored. type UpdateWorkerVersioningRulesRequest_InsertBuildIdAssignmentRule struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Use this option to insert the rule in a particular index. By // default, the new rule is inserted at the beginning of the list // (index 0). If the given index is too larger the rule will be @@ -16148,11 +27990,6 @@ func (x *UpdateWorkerVersioningRulesRequest_InsertBuildIdAssignmentRule) ProtoRe return mi.MessageOf(x) } -// Deprecated: Use UpdateWorkerVersioningRulesRequest_InsertBuildIdAssignmentRule.ProtoReflect.Descriptor instead. -func (*UpdateWorkerVersioningRulesRequest_InsertBuildIdAssignmentRule) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{102, 0} -} - func (x *UpdateWorkerVersioningRulesRequest_InsertBuildIdAssignmentRule) GetRuleIndex() int32 { if x != nil { return x.RuleIndex @@ -16167,9 +28004,48 @@ func (x *UpdateWorkerVersioningRulesRequest_InsertBuildIdAssignmentRule) GetRule return nil } +func (x *UpdateWorkerVersioningRulesRequest_InsertBuildIdAssignmentRule) SetRuleIndex(v int32) { + x.RuleIndex = v +} + +func (x *UpdateWorkerVersioningRulesRequest_InsertBuildIdAssignmentRule) SetRule(v *v14.BuildIdAssignmentRule) { + x.Rule = v +} + +func (x *UpdateWorkerVersioningRulesRequest_InsertBuildIdAssignmentRule) HasRule() bool { + if x == nil { + return false + } + return x.Rule != nil +} + +func (x *UpdateWorkerVersioningRulesRequest_InsertBuildIdAssignmentRule) ClearRule() { + x.Rule = nil +} + +type UpdateWorkerVersioningRulesRequest_InsertBuildIdAssignmentRule_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Use this option to insert the rule in a particular index. By + // default, the new rule is inserted at the beginning of the list + // (index 0). If the given index is too larger the rule will be + // inserted at the end of the list. + RuleIndex int32 + Rule *v14.BuildIdAssignmentRule +} + +func (b0 UpdateWorkerVersioningRulesRequest_InsertBuildIdAssignmentRule_builder) Build() *UpdateWorkerVersioningRulesRequest_InsertBuildIdAssignmentRule { + m0 := &UpdateWorkerVersioningRulesRequest_InsertBuildIdAssignmentRule{} + b, x := &b0, m0 + _, _ = b, x + x.RuleIndex = b.RuleIndex + x.Rule = b.Rule + return m0 +} + // Replaces the assignment rule at a given index. type UpdateWorkerVersioningRulesRequest_ReplaceBuildIdAssignmentRule struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` RuleIndex int32 `protobuf:"varint,1,opt,name=rule_index,json=ruleIndex,proto3" json:"rule_index,omitempty"` Rule *v14.BuildIdAssignmentRule `protobuf:"bytes,2,opt,name=rule,proto3" json:"rule,omitempty"` // By default presence of one unconditional rule is enforced, otherwise @@ -16207,11 +28083,6 @@ func (x *UpdateWorkerVersioningRulesRequest_ReplaceBuildIdAssignmentRule) ProtoR return mi.MessageOf(x) } -// Deprecated: Use UpdateWorkerVersioningRulesRequest_ReplaceBuildIdAssignmentRule.ProtoReflect.Descriptor instead. -func (*UpdateWorkerVersioningRulesRequest_ReplaceBuildIdAssignmentRule) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{102, 1} -} - func (x *UpdateWorkerVersioningRulesRequest_ReplaceBuildIdAssignmentRule) GetRuleIndex() int32 { if x != nil { return x.RuleIndex @@ -16233,8 +28104,54 @@ func (x *UpdateWorkerVersioningRulesRequest_ReplaceBuildIdAssignmentRule) GetFor return false } +func (x *UpdateWorkerVersioningRulesRequest_ReplaceBuildIdAssignmentRule) SetRuleIndex(v int32) { + x.RuleIndex = v +} + +func (x *UpdateWorkerVersioningRulesRequest_ReplaceBuildIdAssignmentRule) SetRule(v *v14.BuildIdAssignmentRule) { + x.Rule = v +} + +func (x *UpdateWorkerVersioningRulesRequest_ReplaceBuildIdAssignmentRule) SetForce(v bool) { + x.Force = v +} + +func (x *UpdateWorkerVersioningRulesRequest_ReplaceBuildIdAssignmentRule) HasRule() bool { + if x == nil { + return false + } + return x.Rule != nil +} + +func (x *UpdateWorkerVersioningRulesRequest_ReplaceBuildIdAssignmentRule) ClearRule() { + x.Rule = nil +} + +type UpdateWorkerVersioningRulesRequest_ReplaceBuildIdAssignmentRule_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + RuleIndex int32 + Rule *v14.BuildIdAssignmentRule + // By default presence of one unconditional rule is enforced, otherwise + // the replace operation will be rejected. Set `force` to true to + // bypass this validation. An unconditional assignment rule: + // - Has no hint filter + // - Has no ramp + Force bool +} + +func (b0 UpdateWorkerVersioningRulesRequest_ReplaceBuildIdAssignmentRule_builder) Build() *UpdateWorkerVersioningRulesRequest_ReplaceBuildIdAssignmentRule { + m0 := &UpdateWorkerVersioningRulesRequest_ReplaceBuildIdAssignmentRule{} + b, x := &b0, m0 + _, _ = b, x + x.RuleIndex = b.RuleIndex + x.Rule = b.Rule + x.Force = b.Force + return m0 +} + type UpdateWorkerVersioningRulesRequest_DeleteBuildIdAssignmentRule struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` RuleIndex int32 `protobuf:"varint,1,opt,name=rule_index,json=ruleIndex,proto3" json:"rule_index,omitempty"` // By default presence of one unconditional rule is enforced, otherwise // the delete operation will be rejected. Set `force` to true to @@ -16271,11 +28188,6 @@ func (x *UpdateWorkerVersioningRulesRequest_DeleteBuildIdAssignmentRule) ProtoRe return mi.MessageOf(x) } -// Deprecated: Use UpdateWorkerVersioningRulesRequest_DeleteBuildIdAssignmentRule.ProtoReflect.Descriptor instead. -func (*UpdateWorkerVersioningRulesRequest_DeleteBuildIdAssignmentRule) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{102, 2} -} - func (x *UpdateWorkerVersioningRulesRequest_DeleteBuildIdAssignmentRule) GetRuleIndex() int32 { if x != nil { return x.RuleIndex @@ -16290,10 +28202,39 @@ func (x *UpdateWorkerVersioningRulesRequest_DeleteBuildIdAssignmentRule) GetForc return false } +func (x *UpdateWorkerVersioningRulesRequest_DeleteBuildIdAssignmentRule) SetRuleIndex(v int32) { + x.RuleIndex = v +} + +func (x *UpdateWorkerVersioningRulesRequest_DeleteBuildIdAssignmentRule) SetForce(v bool) { + x.Force = v +} + +type UpdateWorkerVersioningRulesRequest_DeleteBuildIdAssignmentRule_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + RuleIndex int32 + // By default presence of one unconditional rule is enforced, otherwise + // the delete operation will be rejected. Set `force` to true to + // bypass this validation. An unconditional assignment rule: + // - Has no hint filter + // - Has no ramp + Force bool +} + +func (b0 UpdateWorkerVersioningRulesRequest_DeleteBuildIdAssignmentRule_builder) Build() *UpdateWorkerVersioningRulesRequest_DeleteBuildIdAssignmentRule { + m0 := &UpdateWorkerVersioningRulesRequest_DeleteBuildIdAssignmentRule{} + b, x := &b0, m0 + _, _ = b, x + x.RuleIndex = b.RuleIndex + x.Force = b.Force + return m0 +} + // Adds the rule to the list of redirect rules for this Task Queue. There // can be at most one redirect rule for each distinct Source Build ID. type UpdateWorkerVersioningRulesRequest_AddCompatibleBuildIdRedirectRule struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Rule *v14.CompatibleBuildIdRedirectRule `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -16324,11 +28265,6 @@ func (x *UpdateWorkerVersioningRulesRequest_AddCompatibleBuildIdRedirectRule) Pr return mi.MessageOf(x) } -// Deprecated: Use UpdateWorkerVersioningRulesRequest_AddCompatibleBuildIdRedirectRule.ProtoReflect.Descriptor instead. -func (*UpdateWorkerVersioningRulesRequest_AddCompatibleBuildIdRedirectRule) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{102, 3} -} - func (x *UpdateWorkerVersioningRulesRequest_AddCompatibleBuildIdRedirectRule) GetRule() *v14.CompatibleBuildIdRedirectRule { if x != nil { return x.Rule @@ -16336,9 +28272,38 @@ func (x *UpdateWorkerVersioningRulesRequest_AddCompatibleBuildIdRedirectRule) Ge return nil } +func (x *UpdateWorkerVersioningRulesRequest_AddCompatibleBuildIdRedirectRule) SetRule(v *v14.CompatibleBuildIdRedirectRule) { + x.Rule = v +} + +func (x *UpdateWorkerVersioningRulesRequest_AddCompatibleBuildIdRedirectRule) HasRule() bool { + if x == nil { + return false + } + return x.Rule != nil +} + +func (x *UpdateWorkerVersioningRulesRequest_AddCompatibleBuildIdRedirectRule) ClearRule() { + x.Rule = nil +} + +type UpdateWorkerVersioningRulesRequest_AddCompatibleBuildIdRedirectRule_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Rule *v14.CompatibleBuildIdRedirectRule +} + +func (b0 UpdateWorkerVersioningRulesRequest_AddCompatibleBuildIdRedirectRule_builder) Build() *UpdateWorkerVersioningRulesRequest_AddCompatibleBuildIdRedirectRule { + m0 := &UpdateWorkerVersioningRulesRequest_AddCompatibleBuildIdRedirectRule{} + b, x := &b0, m0 + _, _ = b, x + x.Rule = b.Rule + return m0 +} + // Replaces the routing rule with the given source Build ID. type UpdateWorkerVersioningRulesRequest_ReplaceCompatibleBuildIdRedirectRule struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Rule *v14.CompatibleBuildIdRedirectRule `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -16369,11 +28334,6 @@ func (x *UpdateWorkerVersioningRulesRequest_ReplaceCompatibleBuildIdRedirectRule return mi.MessageOf(x) } -// Deprecated: Use UpdateWorkerVersioningRulesRequest_ReplaceCompatibleBuildIdRedirectRule.ProtoReflect.Descriptor instead. -func (*UpdateWorkerVersioningRulesRequest_ReplaceCompatibleBuildIdRedirectRule) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{102, 4} -} - func (x *UpdateWorkerVersioningRulesRequest_ReplaceCompatibleBuildIdRedirectRule) GetRule() *v14.CompatibleBuildIdRedirectRule { if x != nil { return x.Rule @@ -16381,8 +28341,37 @@ func (x *UpdateWorkerVersioningRulesRequest_ReplaceCompatibleBuildIdRedirectRule return nil } +func (x *UpdateWorkerVersioningRulesRequest_ReplaceCompatibleBuildIdRedirectRule) SetRule(v *v14.CompatibleBuildIdRedirectRule) { + x.Rule = v +} + +func (x *UpdateWorkerVersioningRulesRequest_ReplaceCompatibleBuildIdRedirectRule) HasRule() bool { + if x == nil { + return false + } + return x.Rule != nil +} + +func (x *UpdateWorkerVersioningRulesRequest_ReplaceCompatibleBuildIdRedirectRule) ClearRule() { + x.Rule = nil +} + +type UpdateWorkerVersioningRulesRequest_ReplaceCompatibleBuildIdRedirectRule_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Rule *v14.CompatibleBuildIdRedirectRule +} + +func (b0 UpdateWorkerVersioningRulesRequest_ReplaceCompatibleBuildIdRedirectRule_builder) Build() *UpdateWorkerVersioningRulesRequest_ReplaceCompatibleBuildIdRedirectRule { + m0 := &UpdateWorkerVersioningRulesRequest_ReplaceCompatibleBuildIdRedirectRule{} + b, x := &b0, m0 + _, _ = b, x + x.Rule = b.Rule + return m0 +} + type UpdateWorkerVersioningRulesRequest_DeleteCompatibleBuildIdRedirectRule struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` SourceBuildId string `protobuf:"bytes,1,opt,name=source_build_id,json=sourceBuildId,proto3" json:"source_build_id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -16413,11 +28402,6 @@ func (x *UpdateWorkerVersioningRulesRequest_DeleteCompatibleBuildIdRedirectRule) return mi.MessageOf(x) } -// Deprecated: Use UpdateWorkerVersioningRulesRequest_DeleteCompatibleBuildIdRedirectRule.ProtoReflect.Descriptor instead. -func (*UpdateWorkerVersioningRulesRequest_DeleteCompatibleBuildIdRedirectRule) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{102, 5} -} - func (x *UpdateWorkerVersioningRulesRequest_DeleteCompatibleBuildIdRedirectRule) GetSourceBuildId() string { if x != nil { return x.SourceBuildId @@ -16425,6 +28409,24 @@ func (x *UpdateWorkerVersioningRulesRequest_DeleteCompatibleBuildIdRedirectRule) return "" } +func (x *UpdateWorkerVersioningRulesRequest_DeleteCompatibleBuildIdRedirectRule) SetSourceBuildId(v string) { + x.SourceBuildId = v +} + +type UpdateWorkerVersioningRulesRequest_DeleteCompatibleBuildIdRedirectRule_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + SourceBuildId string +} + +func (b0 UpdateWorkerVersioningRulesRequest_DeleteCompatibleBuildIdRedirectRule_builder) Build() *UpdateWorkerVersioningRulesRequest_DeleteCompatibleBuildIdRedirectRule { + m0 := &UpdateWorkerVersioningRulesRequest_DeleteCompatibleBuildIdRedirectRule{} + b, x := &b0, m0 + _, _ = b, x + x.SourceBuildId = b.SourceBuildId + return m0 +} + // This command is intended to be used to complete the rollout of a Build // ID and cleanup unnecessary rules possibly created during a gradual // rollout. Specifically, this command will make the following changes @@ -16435,7 +28437,7 @@ func (x *UpdateWorkerVersioningRulesRequest_DeleteCompatibleBuildIdRedirectRule) // Build ID (if any). // 3. Removes any fully-ramped assignment rule for other Build IDs. type UpdateWorkerVersioningRulesRequest_CommitBuildId struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` TargetBuildId string `protobuf:"bytes,1,opt,name=target_build_id,json=targetBuildId,proto3" json:"target_build_id,omitempty"` // To prevent committing invalid Build IDs, we reject the request if no // pollers has been seen recently for this Build ID. Use the `force` @@ -16470,11 +28472,6 @@ func (x *UpdateWorkerVersioningRulesRequest_CommitBuildId) ProtoReflect() protor return mi.MessageOf(x) } -// Deprecated: Use UpdateWorkerVersioningRulesRequest_CommitBuildId.ProtoReflect.Descriptor instead. -func (*UpdateWorkerVersioningRulesRequest_CommitBuildId) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{102, 6} -} - func (x *UpdateWorkerVersioningRulesRequest_CommitBuildId) GetTargetBuildId() string { if x != nil { return x.TargetBuildId @@ -16489,8 +28486,35 @@ func (x *UpdateWorkerVersioningRulesRequest_CommitBuildId) GetForce() bool { return false } +func (x *UpdateWorkerVersioningRulesRequest_CommitBuildId) SetTargetBuildId(v string) { + x.TargetBuildId = v +} + +func (x *UpdateWorkerVersioningRulesRequest_CommitBuildId) SetForce(v bool) { + x.Force = v +} + +type UpdateWorkerVersioningRulesRequest_CommitBuildId_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + TargetBuildId string + // To prevent committing invalid Build IDs, we reject the request if no + // pollers has been seen recently for this Build ID. Use the `force` + // option to disable this validation. + Force bool +} + +func (b0 UpdateWorkerVersioningRulesRequest_CommitBuildId_builder) Build() *UpdateWorkerVersioningRulesRequest_CommitBuildId { + m0 := &UpdateWorkerVersioningRulesRequest_CommitBuildId{} + b, x := &b0, m0 + _, _ = b, x + x.TargetBuildId = b.TargetBuildId + x.Force = b.Force + return m0 +} + type ExecuteMultiOperationRequest_Operation struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Types that are valid to be assigned to Operation: // // *ExecuteMultiOperationRequest_Operation_StartWorkflow @@ -16525,11 +28549,6 @@ func (x *ExecuteMultiOperationRequest_Operation) ProtoReflect() protoreflect.Mes return mi.MessageOf(x) } -// Deprecated: Use ExecuteMultiOperationRequest_Operation.ProtoReflect.Descriptor instead. -func (*ExecuteMultiOperationRequest_Operation) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{126, 0} -} - func (x *ExecuteMultiOperationRequest_Operation) GetOperation() isExecuteMultiOperationRequest_Operation_Operation { if x != nil { return x.Operation @@ -16555,15 +28574,135 @@ func (x *ExecuteMultiOperationRequest_Operation) GetUpdateWorkflow() *UpdateWork return nil } -type isExecuteMultiOperationRequest_Operation_Operation interface { - isExecuteMultiOperationRequest_Operation_Operation() +func (x *ExecuteMultiOperationRequest_Operation) SetStartWorkflow(v *StartWorkflowExecutionRequest) { + if v == nil { + x.Operation = nil + return + } + x.Operation = &ExecuteMultiOperationRequest_Operation_StartWorkflow{v} } -type ExecuteMultiOperationRequest_Operation_StartWorkflow struct { +func (x *ExecuteMultiOperationRequest_Operation) SetUpdateWorkflow(v *UpdateWorkflowExecutionRequest) { + if v == nil { + x.Operation = nil + return + } + x.Operation = &ExecuteMultiOperationRequest_Operation_UpdateWorkflow{v} +} + +func (x *ExecuteMultiOperationRequest_Operation) HasOperation() bool { + if x == nil { + return false + } + return x.Operation != nil +} + +func (x *ExecuteMultiOperationRequest_Operation) HasStartWorkflow() bool { + if x == nil { + return false + } + _, ok := x.Operation.(*ExecuteMultiOperationRequest_Operation_StartWorkflow) + return ok +} + +func (x *ExecuteMultiOperationRequest_Operation) HasUpdateWorkflow() bool { + if x == nil { + return false + } + _, ok := x.Operation.(*ExecuteMultiOperationRequest_Operation_UpdateWorkflow) + return ok +} + +func (x *ExecuteMultiOperationRequest_Operation) ClearOperation() { + x.Operation = nil +} + +func (x *ExecuteMultiOperationRequest_Operation) ClearStartWorkflow() { + if _, ok := x.Operation.(*ExecuteMultiOperationRequest_Operation_StartWorkflow); ok { + x.Operation = nil + } +} + +func (x *ExecuteMultiOperationRequest_Operation) ClearUpdateWorkflow() { + if _, ok := x.Operation.(*ExecuteMultiOperationRequest_Operation_UpdateWorkflow); ok { + x.Operation = nil + } +} + +const ExecuteMultiOperationRequest_Operation_Operation_not_set_case case_ExecuteMultiOperationRequest_Operation_Operation = 0 +const ExecuteMultiOperationRequest_Operation_StartWorkflow_case case_ExecuteMultiOperationRequest_Operation_Operation = 1 +const ExecuteMultiOperationRequest_Operation_UpdateWorkflow_case case_ExecuteMultiOperationRequest_Operation_Operation = 2 + +func (x *ExecuteMultiOperationRequest_Operation) WhichOperation() case_ExecuteMultiOperationRequest_Operation_Operation { + if x == nil { + return ExecuteMultiOperationRequest_Operation_Operation_not_set_case + } + switch x.Operation.(type) { + case *ExecuteMultiOperationRequest_Operation_StartWorkflow: + return ExecuteMultiOperationRequest_Operation_StartWorkflow_case + case *ExecuteMultiOperationRequest_Operation_UpdateWorkflow: + return ExecuteMultiOperationRequest_Operation_UpdateWorkflow_case + default: + return ExecuteMultiOperationRequest_Operation_Operation_not_set_case + } +} + +type ExecuteMultiOperationRequest_Operation_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Fields of oneof Operation: // Additional restrictions: // - setting `cron_schedule` is invalid // - setting `request_eager_execution` is invalid // - setting `workflow_start_delay` is invalid + StartWorkflow *StartWorkflowExecutionRequest + // Additional restrictions: + // - setting `first_execution_run_id` is invalid + // - setting `workflow_execution.run_id` is invalid + UpdateWorkflow *UpdateWorkflowExecutionRequest + // -- end of Operation +} + +func (b0 ExecuteMultiOperationRequest_Operation_builder) Build() *ExecuteMultiOperationRequest_Operation { + m0 := &ExecuteMultiOperationRequest_Operation{} + b, x := &b0, m0 + _, _ = b, x + if b.StartWorkflow != nil { + x.Operation = &ExecuteMultiOperationRequest_Operation_StartWorkflow{b.StartWorkflow} + } + if b.UpdateWorkflow != nil { + x.Operation = &ExecuteMultiOperationRequest_Operation_UpdateWorkflow{b.UpdateWorkflow} + } + return m0 +} + +type case_ExecuteMultiOperationRequest_Operation_Operation protoreflect.FieldNumber + +func (x case_ExecuteMultiOperationRequest_Operation_Operation) String() string { + switch x { + case ExecuteMultiOperationRequest_Operation_Operation_not_set_case: + return "ExecuteMultiOperationRequestOperationOperationNotSetCase" + case ExecuteMultiOperationRequest_Operation_StartWorkflow_case: + return "ExecuteMultiOperationRequestOperationStartWorkflowCase" + case ExecuteMultiOperationRequest_Operation_UpdateWorkflow_case: + return "ExecuteMultiOperationRequestOperationUpdateWorkflowCase" + default: + return strconv. + + // Additional restrictions: + // - setting `cron_schedule` is invalid + // - setting `request_eager_execution` is invalid + // - setting `workflow_start_delay` is invalid + Itoa(int(x)) + } + +} + +type isExecuteMultiOperationRequest_Operation_Operation interface { + isExecuteMultiOperationRequest_Operation_Operation() +} + +type ExecuteMultiOperationRequest_Operation_StartWorkflow struct { StartWorkflow *StartWorkflowExecutionRequest `protobuf:"bytes,1,opt,name=start_workflow,json=startWorkflow,proto3,oneof"` } @@ -16581,7 +28720,7 @@ func (*ExecuteMultiOperationRequest_Operation_UpdateWorkflow) isExecuteMultiOper } type ExecuteMultiOperationResponse_Response struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Types that are valid to be assigned to Response: // // *ExecuteMultiOperationResponse_Response_StartWorkflow @@ -16616,11 +28755,6 @@ func (x *ExecuteMultiOperationResponse_Response) ProtoReflect() protoreflect.Mes return mi.MessageOf(x) } -// Deprecated: Use ExecuteMultiOperationResponse_Response.ProtoReflect.Descriptor instead. -func (*ExecuteMultiOperationResponse_Response) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{127, 0} -} - func (x *ExecuteMultiOperationResponse_Response) GetResponse() isExecuteMultiOperationResponse_Response_Response { if x != nil { return x.Response @@ -16646,6 +28780,117 @@ func (x *ExecuteMultiOperationResponse_Response) GetUpdateWorkflow() *UpdateWork return nil } +func (x *ExecuteMultiOperationResponse_Response) SetStartWorkflow(v *StartWorkflowExecutionResponse) { + if v == nil { + x.Response = nil + return + } + x.Response = &ExecuteMultiOperationResponse_Response_StartWorkflow{v} +} + +func (x *ExecuteMultiOperationResponse_Response) SetUpdateWorkflow(v *UpdateWorkflowExecutionResponse) { + if v == nil { + x.Response = nil + return + } + x.Response = &ExecuteMultiOperationResponse_Response_UpdateWorkflow{v} +} + +func (x *ExecuteMultiOperationResponse_Response) HasResponse() bool { + if x == nil { + return false + } + return x.Response != nil +} + +func (x *ExecuteMultiOperationResponse_Response) HasStartWorkflow() bool { + if x == nil { + return false + } + _, ok := x.Response.(*ExecuteMultiOperationResponse_Response_StartWorkflow) + return ok +} + +func (x *ExecuteMultiOperationResponse_Response) HasUpdateWorkflow() bool { + if x == nil { + return false + } + _, ok := x.Response.(*ExecuteMultiOperationResponse_Response_UpdateWorkflow) + return ok +} + +func (x *ExecuteMultiOperationResponse_Response) ClearResponse() { + x.Response = nil +} + +func (x *ExecuteMultiOperationResponse_Response) ClearStartWorkflow() { + if _, ok := x.Response.(*ExecuteMultiOperationResponse_Response_StartWorkflow); ok { + x.Response = nil + } +} + +func (x *ExecuteMultiOperationResponse_Response) ClearUpdateWorkflow() { + if _, ok := x.Response.(*ExecuteMultiOperationResponse_Response_UpdateWorkflow); ok { + x.Response = nil + } +} + +const ExecuteMultiOperationResponse_Response_Response_not_set_case case_ExecuteMultiOperationResponse_Response_Response = 0 +const ExecuteMultiOperationResponse_Response_StartWorkflow_case case_ExecuteMultiOperationResponse_Response_Response = 1 +const ExecuteMultiOperationResponse_Response_UpdateWorkflow_case case_ExecuteMultiOperationResponse_Response_Response = 2 + +func (x *ExecuteMultiOperationResponse_Response) WhichResponse() case_ExecuteMultiOperationResponse_Response_Response { + if x == nil { + return ExecuteMultiOperationResponse_Response_Response_not_set_case + } + switch x.Response.(type) { + case *ExecuteMultiOperationResponse_Response_StartWorkflow: + return ExecuteMultiOperationResponse_Response_StartWorkflow_case + case *ExecuteMultiOperationResponse_Response_UpdateWorkflow: + return ExecuteMultiOperationResponse_Response_UpdateWorkflow_case + default: + return ExecuteMultiOperationResponse_Response_Response_not_set_case + } +} + +type ExecuteMultiOperationResponse_Response_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Fields of oneof Response: + StartWorkflow *StartWorkflowExecutionResponse + UpdateWorkflow *UpdateWorkflowExecutionResponse + // -- end of Response +} + +func (b0 ExecuteMultiOperationResponse_Response_builder) Build() *ExecuteMultiOperationResponse_Response { + m0 := &ExecuteMultiOperationResponse_Response{} + b, x := &b0, m0 + _, _ = b, x + if b.StartWorkflow != nil { + x.Response = &ExecuteMultiOperationResponse_Response_StartWorkflow{b.StartWorkflow} + } + if b.UpdateWorkflow != nil { + x.Response = &ExecuteMultiOperationResponse_Response_UpdateWorkflow{b.UpdateWorkflow} + } + return m0 +} + +type case_ExecuteMultiOperationResponse_Response_Response protoreflect.FieldNumber + +func (x case_ExecuteMultiOperationResponse_Response_Response) String() string { + switch x { + case ExecuteMultiOperationResponse_Response_Response_not_set_case: + return "ExecuteMultiOperationResponseResponseResponseNotSetCase" + case ExecuteMultiOperationResponse_Response_StartWorkflow_case: + return "ExecuteMultiOperationResponseResponseStartWorkflowCase" + case ExecuteMultiOperationResponse_Response_UpdateWorkflow_case: + return "ExecuteMultiOperationResponseResponseUpdateWorkflowCase" + default: + return strconv.Itoa(int(x)) + } + +} + type isExecuteMultiOperationResponse_Response_Response interface { isExecuteMultiOperationResponse_Response_Response() } @@ -16666,7 +28911,7 @@ func (*ExecuteMultiOperationResponse_Response_UpdateWorkflow) isExecuteMultiOper // (-- api-linter: core::0123::resource-annotation=disabled --) type DescribeWorkerDeploymentVersionResponse_VersionTaskQueue struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Type v11.TaskQueueType `protobuf:"varint,2,opt,name=type,proto3,enum=temporal.api.enums.v1.TaskQueueType" json:"type,omitempty"` // Only set if `report_task_queue_stats` is set on the request. @@ -16706,11 +28951,6 @@ func (x *DescribeWorkerDeploymentVersionResponse_VersionTaskQueue) ProtoReflect( return mi.MessageOf(x) } -// Deprecated: Use DescribeWorkerDeploymentVersionResponse_VersionTaskQueue.ProtoReflect.Descriptor instead. -func (*DescribeWorkerDeploymentVersionResponse_VersionTaskQueue) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{141, 0} -} - func (x *DescribeWorkerDeploymentVersionResponse_VersionTaskQueue) GetName() string { if x != nil { return x.Name @@ -16739,10 +28979,63 @@ func (x *DescribeWorkerDeploymentVersionResponse_VersionTaskQueue) GetStatsByPri return nil } +func (x *DescribeWorkerDeploymentVersionResponse_VersionTaskQueue) SetName(v string) { + x.Name = v +} + +func (x *DescribeWorkerDeploymentVersionResponse_VersionTaskQueue) SetType(v v11.TaskQueueType) { + x.Type = v +} + +func (x *DescribeWorkerDeploymentVersionResponse_VersionTaskQueue) SetStats(v *v14.TaskQueueStats) { + x.Stats = v +} + +func (x *DescribeWorkerDeploymentVersionResponse_VersionTaskQueue) SetStatsByPriorityKey(v map[int32]*v14.TaskQueueStats) { + x.StatsByPriorityKey = v +} + +func (x *DescribeWorkerDeploymentVersionResponse_VersionTaskQueue) HasStats() bool { + if x == nil { + return false + } + return x.Stats != nil +} + +func (x *DescribeWorkerDeploymentVersionResponse_VersionTaskQueue) ClearStats() { + x.Stats = nil +} + +type DescribeWorkerDeploymentVersionResponse_VersionTaskQueue_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string + Type v11.TaskQueueType + // Only set if `report_task_queue_stats` is set on the request. + Stats *v14.TaskQueueStats + // Task queue stats breakdown by priority key. Only contains actively used priority keys. + // Only set if `report_task_queue_stats` is set to true in the request. + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "by" is used to clarify the key. --) + StatsByPriorityKey map[int32]*v14.TaskQueueStats +} + +func (b0 DescribeWorkerDeploymentVersionResponse_VersionTaskQueue_builder) Build() *DescribeWorkerDeploymentVersionResponse_VersionTaskQueue { + m0 := &DescribeWorkerDeploymentVersionResponse_VersionTaskQueue{} + b, x := &b0, m0 + _, _ = b, x + x.Name = b.Name + x.Type = b.Type + x.Stats = b.Stats + x.StatsByPriorityKey = b.StatsByPriorityKey + return m0 +} + // (-- api-linter: core::0123::resource-annotation=disabled --) // A subset of WorkerDeploymentInfo type ListWorkerDeploymentsResponse_WorkerDeploymentSummary struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` RoutingConfig *v18.RoutingConfig `protobuf:"bytes,3,opt,name=routing_config,json=routingConfig,proto3" json:"routing_config,omitempty"` @@ -16781,11 +29074,6 @@ func (x *ListWorkerDeploymentsResponse_WorkerDeploymentSummary) ProtoReflect() p return mi.MessageOf(x) } -// Deprecated: Use ListWorkerDeploymentsResponse_WorkerDeploymentSummary.ProtoReflect.Descriptor instead. -func (*ListWorkerDeploymentsResponse_WorkerDeploymentSummary) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{153, 0} -} - func (x *ListWorkerDeploymentsResponse_WorkerDeploymentSummary) GetName() string { if x != nil { return x.Name @@ -16828,8 +29116,114 @@ func (x *ListWorkerDeploymentsResponse_WorkerDeploymentSummary) GetRampingVersio return nil } +func (x *ListWorkerDeploymentsResponse_WorkerDeploymentSummary) SetName(v string) { + x.Name = v +} + +func (x *ListWorkerDeploymentsResponse_WorkerDeploymentSummary) SetCreateTime(v *timestamppb.Timestamp) { + x.CreateTime = v +} + +func (x *ListWorkerDeploymentsResponse_WorkerDeploymentSummary) SetRoutingConfig(v *v18.RoutingConfig) { + x.RoutingConfig = v +} + +func (x *ListWorkerDeploymentsResponse_WorkerDeploymentSummary) SetLatestVersionSummary(v *v18.WorkerDeploymentInfo_WorkerDeploymentVersionSummary) { + x.LatestVersionSummary = v +} + +func (x *ListWorkerDeploymentsResponse_WorkerDeploymentSummary) SetCurrentVersionSummary(v *v18.WorkerDeploymentInfo_WorkerDeploymentVersionSummary) { + x.CurrentVersionSummary = v +} + +func (x *ListWorkerDeploymentsResponse_WorkerDeploymentSummary) SetRampingVersionSummary(v *v18.WorkerDeploymentInfo_WorkerDeploymentVersionSummary) { + x.RampingVersionSummary = v +} + +func (x *ListWorkerDeploymentsResponse_WorkerDeploymentSummary) HasCreateTime() bool { + if x == nil { + return false + } + return x.CreateTime != nil +} + +func (x *ListWorkerDeploymentsResponse_WorkerDeploymentSummary) HasRoutingConfig() bool { + if x == nil { + return false + } + return x.RoutingConfig != nil +} + +func (x *ListWorkerDeploymentsResponse_WorkerDeploymentSummary) HasLatestVersionSummary() bool { + if x == nil { + return false + } + return x.LatestVersionSummary != nil +} + +func (x *ListWorkerDeploymentsResponse_WorkerDeploymentSummary) HasCurrentVersionSummary() bool { + if x == nil { + return false + } + return x.CurrentVersionSummary != nil +} + +func (x *ListWorkerDeploymentsResponse_WorkerDeploymentSummary) HasRampingVersionSummary() bool { + if x == nil { + return false + } + return x.RampingVersionSummary != nil +} + +func (x *ListWorkerDeploymentsResponse_WorkerDeploymentSummary) ClearCreateTime() { + x.CreateTime = nil +} + +func (x *ListWorkerDeploymentsResponse_WorkerDeploymentSummary) ClearRoutingConfig() { + x.RoutingConfig = nil +} + +func (x *ListWorkerDeploymentsResponse_WorkerDeploymentSummary) ClearLatestVersionSummary() { + x.LatestVersionSummary = nil +} + +func (x *ListWorkerDeploymentsResponse_WorkerDeploymentSummary) ClearCurrentVersionSummary() { + x.CurrentVersionSummary = nil +} + +func (x *ListWorkerDeploymentsResponse_WorkerDeploymentSummary) ClearRampingVersionSummary() { + x.RampingVersionSummary = nil +} + +type ListWorkerDeploymentsResponse_WorkerDeploymentSummary_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string + CreateTime *timestamppb.Timestamp + RoutingConfig *v18.RoutingConfig + // Summary of the version that was added most recently in the Worker Deployment. + LatestVersionSummary *v18.WorkerDeploymentInfo_WorkerDeploymentVersionSummary + // Summary of the current version of the Worker Deployment. + CurrentVersionSummary *v18.WorkerDeploymentInfo_WorkerDeploymentVersionSummary + // Summary of the ramping version of the Worker Deployment. + RampingVersionSummary *v18.WorkerDeploymentInfo_WorkerDeploymentVersionSummary +} + +func (b0 ListWorkerDeploymentsResponse_WorkerDeploymentSummary_builder) Build() *ListWorkerDeploymentsResponse_WorkerDeploymentSummary { + m0 := &ListWorkerDeploymentsResponse_WorkerDeploymentSummary{} + b, x := &b0, m0 + _, _ = b, x + x.Name = b.Name + x.CreateTime = b.CreateTime + x.RoutingConfig = b.RoutingConfig + x.LatestVersionSummary = b.LatestVersionSummary + x.CurrentVersionSummary = b.CurrentVersionSummary + x.RampingVersionSummary = b.RampingVersionSummary + return m0 +} + type UpdateTaskQueueConfigRequest_RateLimitUpdate struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Rate Limit to be updated RateLimit *v14.RateLimit `protobuf:"bytes,1,opt,name=rate_limit,json=rateLimit,proto3" json:"rate_limit,omitempty"` // Reason for why the rate limit was set. @@ -16863,11 +29257,6 @@ func (x *UpdateTaskQueueConfigRequest_RateLimitUpdate) ProtoReflect() protorefle return mi.MessageOf(x) } -// Deprecated: Use UpdateTaskQueueConfigRequest_RateLimitUpdate.ProtoReflect.Descriptor instead. -func (*UpdateTaskQueueConfigRequest_RateLimitUpdate) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{180, 0} -} - func (x *UpdateTaskQueueConfigRequest_RateLimitUpdate) GetRateLimit() *v14.RateLimit { if x != nil { return x.RateLimit @@ -16882,8 +29271,45 @@ func (x *UpdateTaskQueueConfigRequest_RateLimitUpdate) GetReason() string { return "" } +func (x *UpdateTaskQueueConfigRequest_RateLimitUpdate) SetRateLimit(v *v14.RateLimit) { + x.RateLimit = v +} + +func (x *UpdateTaskQueueConfigRequest_RateLimitUpdate) SetReason(v string) { + x.Reason = v +} + +func (x *UpdateTaskQueueConfigRequest_RateLimitUpdate) HasRateLimit() bool { + if x == nil { + return false + } + return x.RateLimit != nil +} + +func (x *UpdateTaskQueueConfigRequest_RateLimitUpdate) ClearRateLimit() { + x.RateLimit = nil +} + +type UpdateTaskQueueConfigRequest_RateLimitUpdate_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Rate Limit to be updated + RateLimit *v14.RateLimit + // Reason for why the rate limit was set. + Reason string +} + +func (b0 UpdateTaskQueueConfigRequest_RateLimitUpdate_builder) Build() *UpdateTaskQueueConfigRequest_RateLimitUpdate { + m0 := &UpdateTaskQueueConfigRequest_RateLimitUpdate{} + b, x := &b0, m0 + _, _ = b, x + x.RateLimit = b.RateLimit + x.Reason = b.Reason + return m0 +} + type CountActivityExecutionsResponse_AggregationGroup struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` GroupValues []*v13.Payload `protobuf:"bytes,1,rep,name=group_values,json=groupValues,proto3" json:"group_values,omitempty"` Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` unknownFields protoimpl.UnknownFields @@ -16915,11 +29341,6 @@ func (x *CountActivityExecutionsResponse_AggregationGroup) ProtoReflect() protor return mi.MessageOf(x) } -// Deprecated: Use CountActivityExecutionsResponse_AggregationGroup.ProtoReflect.Descriptor instead. -func (*CountActivityExecutionsResponse_AggregationGroup) Descriptor() ([]byte, []int) { - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP(), []int{201, 0} -} - func (x *CountActivityExecutionsResponse_AggregationGroup) GetGroupValues() []*v13.Payload { if x != nil { return x.GroupValues @@ -16934,6 +29355,30 @@ func (x *CountActivityExecutionsResponse_AggregationGroup) GetCount() int64 { return 0 } +func (x *CountActivityExecutionsResponse_AggregationGroup) SetGroupValues(v []*v13.Payload) { + x.GroupValues = v +} + +func (x *CountActivityExecutionsResponse_AggregationGroup) SetCount(v int64) { + x.Count = v +} + +type CountActivityExecutionsResponse_AggregationGroup_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + GroupValues []*v13.Payload + Count int64 +} + +func (b0 CountActivityExecutionsResponse_AggregationGroup_builder) Build() *CountActivityExecutionsResponse_AggregationGroup { + m0 := &CountActivityExecutionsResponse_AggregationGroup{} + b, x := &b0, m0 + _, _ = b, x + x.GroupValues = b.GroupValues + x.Count = b.Count + return m0 +} + var File_temporal_api_workflowservice_v1_request_response_proto protoreflect.FileDescriptor const file_temporal_api_workflowservice_v1_request_response_proto_rawDesc = "" + @@ -18228,18 +30673,6 @@ const file_temporal_api_workflowservice_v1_request_response_proto_rawDesc = "" + "\x1fDeleteActivityExecutionResponseB\xbe\x01\n" + "\"io.temporal.api.workflowservice.v1B\x14RequestResponseProtoP\x01Z5go.temporal.io/api/workflowservice/v1;workflowservice\xaa\x02!Temporalio.Api.WorkflowService.V1\xea\x02$Temporalio::Api::WorkflowService::V1b\x06proto3" -var ( - file_temporal_api_workflowservice_v1_request_response_proto_rawDescOnce sync.Once - file_temporal_api_workflowservice_v1_request_response_proto_rawDescData []byte -) - -func file_temporal_api_workflowservice_v1_request_response_proto_rawDescGZIP() []byte { - file_temporal_api_workflowservice_v1_request_response_proto_rawDescOnce.Do(func() { - file_temporal_api_workflowservice_v1_request_response_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_api_workflowservice_v1_request_response_proto_rawDesc), len(file_temporal_api_workflowservice_v1_request_response_proto_rawDesc))) - }) - return file_temporal_api_workflowservice_v1_request_response_proto_rawDescData -} - var file_temporal_api_workflowservice_v1_request_response_proto_msgTypes = make([]protoimpl.MessageInfo, 237) var file_temporal_api_workflowservice_v1_request_response_proto_goTypes = []any{ (*RegisterNamespaceRequest)(nil), // 0: temporal.api.workflowservice.v1.RegisterNamespaceRequest diff --git a/workflowservice/v1/request_response_protoopaque.pb.go b/workflowservice/v1/request_response_protoopaque.pb.go new file mode 100644 index 00000000..5b4bcd2c --- /dev/null +++ b/workflowservice/v1/request_response_protoopaque.pb.go @@ -0,0 +1,30357 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// plugins: +// protoc-gen-go +// protoc +// source: temporal/api/workflowservice/v1/request_response.proto + +//go:build protoopaque + +package workflowservice + +import ( + reflect "reflect" + "strconv" + unsafe "unsafe" + + v120 "go.temporal.io/api/activity/v1" + v118 "go.temporal.io/api/batch/v1" + v112 "go.temporal.io/api/command/v1" + v13 "go.temporal.io/api/common/v1" + v18 "go.temporal.io/api/deployment/v1" + v11 "go.temporal.io/api/enums/v1" + v15 "go.temporal.io/api/failure/v1" + v113 "go.temporal.io/api/filter/v1" + v19 "go.temporal.io/api/history/v1" + v12 "go.temporal.io/api/namespace/v1" + v119 "go.temporal.io/api/nexus/v1" + v111 "go.temporal.io/api/protocol/v1" + v110 "go.temporal.io/api/query/v1" + v1 "go.temporal.io/api/replication/v1" + v121 "go.temporal.io/api/rules/v1" + v116 "go.temporal.io/api/schedule/v1" + v16 "go.temporal.io/api/sdk/v1" + v14 "go.temporal.io/api/taskqueue/v1" + v117 "go.temporal.io/api/update/v1" + v115 "go.temporal.io/api/version/v1" + v114 "go.temporal.io/api/worker/v1" + v17 "go.temporal.io/api/workflow/v1" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + durationpb "google.golang.org/protobuf/types/known/durationpb" + fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type RegisterNamespaceRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_Description string `protobuf:"bytes,2,opt,name=description,proto3"` + xxx_hidden_OwnerEmail string `protobuf:"bytes,3,opt,name=owner_email,json=ownerEmail,proto3"` + xxx_hidden_WorkflowExecutionRetentionPeriod *durationpb.Duration `protobuf:"bytes,4,opt,name=workflow_execution_retention_period,json=workflowExecutionRetentionPeriod,proto3"` + xxx_hidden_Clusters *[]*v1.ClusterReplicationConfig `protobuf:"bytes,5,rep,name=clusters,proto3"` + xxx_hidden_ActiveClusterName string `protobuf:"bytes,6,opt,name=active_cluster_name,json=activeClusterName,proto3"` + xxx_hidden_Data map[string]string `protobuf:"bytes,7,rep,name=data,proto3" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + xxx_hidden_SecurityToken string `protobuf:"bytes,8,opt,name=security_token,json=securityToken,proto3"` + xxx_hidden_IsGlobalNamespace bool `protobuf:"varint,9,opt,name=is_global_namespace,json=isGlobalNamespace,proto3"` + xxx_hidden_HistoryArchivalState v11.ArchivalState `protobuf:"varint,10,opt,name=history_archival_state,json=historyArchivalState,proto3,enum=temporal.api.enums.v1.ArchivalState"` + xxx_hidden_HistoryArchivalUri string `protobuf:"bytes,11,opt,name=history_archival_uri,json=historyArchivalUri,proto3"` + xxx_hidden_VisibilityArchivalState v11.ArchivalState `protobuf:"varint,12,opt,name=visibility_archival_state,json=visibilityArchivalState,proto3,enum=temporal.api.enums.v1.ArchivalState"` + xxx_hidden_VisibilityArchivalUri string `protobuf:"bytes,13,opt,name=visibility_archival_uri,json=visibilityArchivalUri,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RegisterNamespaceRequest) Reset() { + *x = RegisterNamespaceRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RegisterNamespaceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RegisterNamespaceRequest) ProtoMessage() {} + +func (x *RegisterNamespaceRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *RegisterNamespaceRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *RegisterNamespaceRequest) GetDescription() string { + if x != nil { + return x.xxx_hidden_Description + } + return "" +} + +func (x *RegisterNamespaceRequest) GetOwnerEmail() string { + if x != nil { + return x.xxx_hidden_OwnerEmail + } + return "" +} + +func (x *RegisterNamespaceRequest) GetWorkflowExecutionRetentionPeriod() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_WorkflowExecutionRetentionPeriod + } + return nil +} + +func (x *RegisterNamespaceRequest) GetClusters() []*v1.ClusterReplicationConfig { + if x != nil { + if x.xxx_hidden_Clusters != nil { + return *x.xxx_hidden_Clusters + } + } + return nil +} + +func (x *RegisterNamespaceRequest) GetActiveClusterName() string { + if x != nil { + return x.xxx_hidden_ActiveClusterName + } + return "" +} + +func (x *RegisterNamespaceRequest) GetData() map[string]string { + if x != nil { + return x.xxx_hidden_Data + } + return nil +} + +func (x *RegisterNamespaceRequest) GetSecurityToken() string { + if x != nil { + return x.xxx_hidden_SecurityToken + } + return "" +} + +func (x *RegisterNamespaceRequest) GetIsGlobalNamespace() bool { + if x != nil { + return x.xxx_hidden_IsGlobalNamespace + } + return false +} + +func (x *RegisterNamespaceRequest) GetHistoryArchivalState() v11.ArchivalState { + if x != nil { + return x.xxx_hidden_HistoryArchivalState + } + return v11.ArchivalState(0) +} + +func (x *RegisterNamespaceRequest) GetHistoryArchivalUri() string { + if x != nil { + return x.xxx_hidden_HistoryArchivalUri + } + return "" +} + +func (x *RegisterNamespaceRequest) GetVisibilityArchivalState() v11.ArchivalState { + if x != nil { + return x.xxx_hidden_VisibilityArchivalState + } + return v11.ArchivalState(0) +} + +func (x *RegisterNamespaceRequest) GetVisibilityArchivalUri() string { + if x != nil { + return x.xxx_hidden_VisibilityArchivalUri + } + return "" +} + +func (x *RegisterNamespaceRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *RegisterNamespaceRequest) SetDescription(v string) { + x.xxx_hidden_Description = v +} + +func (x *RegisterNamespaceRequest) SetOwnerEmail(v string) { + x.xxx_hidden_OwnerEmail = v +} + +func (x *RegisterNamespaceRequest) SetWorkflowExecutionRetentionPeriod(v *durationpb.Duration) { + x.xxx_hidden_WorkflowExecutionRetentionPeriod = v +} + +func (x *RegisterNamespaceRequest) SetClusters(v []*v1.ClusterReplicationConfig) { + x.xxx_hidden_Clusters = &v +} + +func (x *RegisterNamespaceRequest) SetActiveClusterName(v string) { + x.xxx_hidden_ActiveClusterName = v +} + +func (x *RegisterNamespaceRequest) SetData(v map[string]string) { + x.xxx_hidden_Data = v +} + +func (x *RegisterNamespaceRequest) SetSecurityToken(v string) { + x.xxx_hidden_SecurityToken = v +} + +func (x *RegisterNamespaceRequest) SetIsGlobalNamespace(v bool) { + x.xxx_hidden_IsGlobalNamespace = v +} + +func (x *RegisterNamespaceRequest) SetHistoryArchivalState(v v11.ArchivalState) { + x.xxx_hidden_HistoryArchivalState = v +} + +func (x *RegisterNamespaceRequest) SetHistoryArchivalUri(v string) { + x.xxx_hidden_HistoryArchivalUri = v +} + +func (x *RegisterNamespaceRequest) SetVisibilityArchivalState(v v11.ArchivalState) { + x.xxx_hidden_VisibilityArchivalState = v +} + +func (x *RegisterNamespaceRequest) SetVisibilityArchivalUri(v string) { + x.xxx_hidden_VisibilityArchivalUri = v +} + +func (x *RegisterNamespaceRequest) HasWorkflowExecutionRetentionPeriod() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowExecutionRetentionPeriod != nil +} + +func (x *RegisterNamespaceRequest) ClearWorkflowExecutionRetentionPeriod() { + x.xxx_hidden_WorkflowExecutionRetentionPeriod = nil +} + +type RegisterNamespaceRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + Description string + OwnerEmail string + WorkflowExecutionRetentionPeriod *durationpb.Duration + Clusters []*v1.ClusterReplicationConfig + ActiveClusterName string + // A key-value map for any customized purpose. + Data map[string]string + SecurityToken string + IsGlobalNamespace bool + // If unspecified (ARCHIVAL_STATE_UNSPECIFIED) then default server configuration is used. + HistoryArchivalState v11.ArchivalState + HistoryArchivalUri string + // If unspecified (ARCHIVAL_STATE_UNSPECIFIED) then default server configuration is used. + VisibilityArchivalState v11.ArchivalState + VisibilityArchivalUri string +} + +func (b0 RegisterNamespaceRequest_builder) Build() *RegisterNamespaceRequest { + m0 := &RegisterNamespaceRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_Description = b.Description + x.xxx_hidden_OwnerEmail = b.OwnerEmail + x.xxx_hidden_WorkflowExecutionRetentionPeriod = b.WorkflowExecutionRetentionPeriod + x.xxx_hidden_Clusters = &b.Clusters + x.xxx_hidden_ActiveClusterName = b.ActiveClusterName + x.xxx_hidden_Data = b.Data + x.xxx_hidden_SecurityToken = b.SecurityToken + x.xxx_hidden_IsGlobalNamespace = b.IsGlobalNamespace + x.xxx_hidden_HistoryArchivalState = b.HistoryArchivalState + x.xxx_hidden_HistoryArchivalUri = b.HistoryArchivalUri + x.xxx_hidden_VisibilityArchivalState = b.VisibilityArchivalState + x.xxx_hidden_VisibilityArchivalUri = b.VisibilityArchivalUri + return m0 +} + +type RegisterNamespaceResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RegisterNamespaceResponse) Reset() { + *x = RegisterNamespaceResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RegisterNamespaceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RegisterNamespaceResponse) ProtoMessage() {} + +func (x *RegisterNamespaceResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type RegisterNamespaceResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 RegisterNamespaceResponse_builder) Build() *RegisterNamespaceResponse { + m0 := &RegisterNamespaceResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type ListNamespacesRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3"` + xxx_hidden_NextPageToken []byte `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3"` + xxx_hidden_NamespaceFilter *v12.NamespaceFilter `protobuf:"bytes,3,opt,name=namespace_filter,json=namespaceFilter,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListNamespacesRequest) Reset() { + *x = ListNamespacesRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListNamespacesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListNamespacesRequest) ProtoMessage() {} + +func (x *ListNamespacesRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListNamespacesRequest) GetPageSize() int32 { + if x != nil { + return x.xxx_hidden_PageSize + } + return 0 +} + +func (x *ListNamespacesRequest) GetNextPageToken() []byte { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return nil +} + +func (x *ListNamespacesRequest) GetNamespaceFilter() *v12.NamespaceFilter { + if x != nil { + return x.xxx_hidden_NamespaceFilter + } + return nil +} + +func (x *ListNamespacesRequest) SetPageSize(v int32) { + x.xxx_hidden_PageSize = v +} + +func (x *ListNamespacesRequest) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_NextPageToken = v +} + +func (x *ListNamespacesRequest) SetNamespaceFilter(v *v12.NamespaceFilter) { + x.xxx_hidden_NamespaceFilter = v +} + +func (x *ListNamespacesRequest) HasNamespaceFilter() bool { + if x == nil { + return false + } + return x.xxx_hidden_NamespaceFilter != nil +} + +func (x *ListNamespacesRequest) ClearNamespaceFilter() { + x.xxx_hidden_NamespaceFilter = nil +} + +type ListNamespacesRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + PageSize int32 + NextPageToken []byte + NamespaceFilter *v12.NamespaceFilter +} + +func (b0 ListNamespacesRequest_builder) Build() *ListNamespacesRequest { + m0 := &ListNamespacesRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_PageSize = b.PageSize + x.xxx_hidden_NextPageToken = b.NextPageToken + x.xxx_hidden_NamespaceFilter = b.NamespaceFilter + return m0 +} + +type ListNamespacesResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespaces *[]*DescribeNamespaceResponse `protobuf:"bytes,1,rep,name=namespaces,proto3"` + xxx_hidden_NextPageToken []byte `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListNamespacesResponse) Reset() { + *x = ListNamespacesResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListNamespacesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListNamespacesResponse) ProtoMessage() {} + +func (x *ListNamespacesResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListNamespacesResponse) GetNamespaces() []*DescribeNamespaceResponse { + if x != nil { + if x.xxx_hidden_Namespaces != nil { + return *x.xxx_hidden_Namespaces + } + } + return nil +} + +func (x *ListNamespacesResponse) GetNextPageToken() []byte { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return nil +} + +func (x *ListNamespacesResponse) SetNamespaces(v []*DescribeNamespaceResponse) { + x.xxx_hidden_Namespaces = &v +} + +func (x *ListNamespacesResponse) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_NextPageToken = v +} + +type ListNamespacesResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespaces []*DescribeNamespaceResponse + NextPageToken []byte +} + +func (b0 ListNamespacesResponse_builder) Build() *ListNamespacesResponse { + m0 := &ListNamespacesResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespaces = &b.Namespaces + x.xxx_hidden_NextPageToken = b.NextPageToken + return m0 +} + +type DescribeNamespaceRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_Id string `protobuf:"bytes,2,opt,name=id,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DescribeNamespaceRequest) Reset() { + *x = DescribeNamespaceRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DescribeNamespaceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DescribeNamespaceRequest) ProtoMessage() {} + +func (x *DescribeNamespaceRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DescribeNamespaceRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *DescribeNamespaceRequest) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *DescribeNamespaceRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *DescribeNamespaceRequest) SetId(v string) { + x.xxx_hidden_Id = v +} + +type DescribeNamespaceRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + Id string +} + +func (b0 DescribeNamespaceRequest_builder) Build() *DescribeNamespaceRequest { + m0 := &DescribeNamespaceRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_Id = b.Id + return m0 +} + +type DescribeNamespaceResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_NamespaceInfo *v12.NamespaceInfo `protobuf:"bytes,1,opt,name=namespace_info,json=namespaceInfo,proto3"` + xxx_hidden_Config *v12.NamespaceConfig `protobuf:"bytes,2,opt,name=config,proto3"` + xxx_hidden_ReplicationConfig *v1.NamespaceReplicationConfig `protobuf:"bytes,3,opt,name=replication_config,json=replicationConfig,proto3"` + xxx_hidden_FailoverVersion int64 `protobuf:"varint,4,opt,name=failover_version,json=failoverVersion,proto3"` + xxx_hidden_IsGlobalNamespace bool `protobuf:"varint,5,opt,name=is_global_namespace,json=isGlobalNamespace,proto3"` + xxx_hidden_FailoverHistory *[]*v1.FailoverStatus `protobuf:"bytes,6,rep,name=failover_history,json=failoverHistory,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DescribeNamespaceResponse) Reset() { + *x = DescribeNamespaceResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DescribeNamespaceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DescribeNamespaceResponse) ProtoMessage() {} + +func (x *DescribeNamespaceResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DescribeNamespaceResponse) GetNamespaceInfo() *v12.NamespaceInfo { + if x != nil { + return x.xxx_hidden_NamespaceInfo + } + return nil +} + +func (x *DescribeNamespaceResponse) GetConfig() *v12.NamespaceConfig { + if x != nil { + return x.xxx_hidden_Config + } + return nil +} + +func (x *DescribeNamespaceResponse) GetReplicationConfig() *v1.NamespaceReplicationConfig { + if x != nil { + return x.xxx_hidden_ReplicationConfig + } + return nil +} + +func (x *DescribeNamespaceResponse) GetFailoverVersion() int64 { + if x != nil { + return x.xxx_hidden_FailoverVersion + } + return 0 +} + +func (x *DescribeNamespaceResponse) GetIsGlobalNamespace() bool { + if x != nil { + return x.xxx_hidden_IsGlobalNamespace + } + return false +} + +func (x *DescribeNamespaceResponse) GetFailoverHistory() []*v1.FailoverStatus { + if x != nil { + if x.xxx_hidden_FailoverHistory != nil { + return *x.xxx_hidden_FailoverHistory + } + } + return nil +} + +func (x *DescribeNamespaceResponse) SetNamespaceInfo(v *v12.NamespaceInfo) { + x.xxx_hidden_NamespaceInfo = v +} + +func (x *DescribeNamespaceResponse) SetConfig(v *v12.NamespaceConfig) { + x.xxx_hidden_Config = v +} + +func (x *DescribeNamespaceResponse) SetReplicationConfig(v *v1.NamespaceReplicationConfig) { + x.xxx_hidden_ReplicationConfig = v +} + +func (x *DescribeNamespaceResponse) SetFailoverVersion(v int64) { + x.xxx_hidden_FailoverVersion = v +} + +func (x *DescribeNamespaceResponse) SetIsGlobalNamespace(v bool) { + x.xxx_hidden_IsGlobalNamespace = v +} + +func (x *DescribeNamespaceResponse) SetFailoverHistory(v []*v1.FailoverStatus) { + x.xxx_hidden_FailoverHistory = &v +} + +func (x *DescribeNamespaceResponse) HasNamespaceInfo() bool { + if x == nil { + return false + } + return x.xxx_hidden_NamespaceInfo != nil +} + +func (x *DescribeNamespaceResponse) HasConfig() bool { + if x == nil { + return false + } + return x.xxx_hidden_Config != nil +} + +func (x *DescribeNamespaceResponse) HasReplicationConfig() bool { + if x == nil { + return false + } + return x.xxx_hidden_ReplicationConfig != nil +} + +func (x *DescribeNamespaceResponse) ClearNamespaceInfo() { + x.xxx_hidden_NamespaceInfo = nil +} + +func (x *DescribeNamespaceResponse) ClearConfig() { + x.xxx_hidden_Config = nil +} + +func (x *DescribeNamespaceResponse) ClearReplicationConfig() { + x.xxx_hidden_ReplicationConfig = nil +} + +type DescribeNamespaceResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + NamespaceInfo *v12.NamespaceInfo + Config *v12.NamespaceConfig + ReplicationConfig *v1.NamespaceReplicationConfig + FailoverVersion int64 + IsGlobalNamespace bool + // Contains the historical state of failover_versions for the cluster, truncated to contain only the last N + // states to ensure that the list does not grow unbounded. + FailoverHistory []*v1.FailoverStatus +} + +func (b0 DescribeNamespaceResponse_builder) Build() *DescribeNamespaceResponse { + m0 := &DescribeNamespaceResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_NamespaceInfo = b.NamespaceInfo + x.xxx_hidden_Config = b.Config + x.xxx_hidden_ReplicationConfig = b.ReplicationConfig + x.xxx_hidden_FailoverVersion = b.FailoverVersion + x.xxx_hidden_IsGlobalNamespace = b.IsGlobalNamespace + x.xxx_hidden_FailoverHistory = &b.FailoverHistory + return m0 +} + +type UpdateNamespaceRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_UpdateInfo *v12.UpdateNamespaceInfo `protobuf:"bytes,2,opt,name=update_info,json=updateInfo,proto3"` + xxx_hidden_Config *v12.NamespaceConfig `protobuf:"bytes,3,opt,name=config,proto3"` + xxx_hidden_ReplicationConfig *v1.NamespaceReplicationConfig `protobuf:"bytes,4,opt,name=replication_config,json=replicationConfig,proto3"` + xxx_hidden_SecurityToken string `protobuf:"bytes,5,opt,name=security_token,json=securityToken,proto3"` + xxx_hidden_DeleteBadBinary string `protobuf:"bytes,6,opt,name=delete_bad_binary,json=deleteBadBinary,proto3"` + xxx_hidden_PromoteNamespace bool `protobuf:"varint,7,opt,name=promote_namespace,json=promoteNamespace,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateNamespaceRequest) Reset() { + *x = UpdateNamespaceRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateNamespaceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateNamespaceRequest) ProtoMessage() {} + +func (x *UpdateNamespaceRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UpdateNamespaceRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *UpdateNamespaceRequest) GetUpdateInfo() *v12.UpdateNamespaceInfo { + if x != nil { + return x.xxx_hidden_UpdateInfo + } + return nil +} + +func (x *UpdateNamespaceRequest) GetConfig() *v12.NamespaceConfig { + if x != nil { + return x.xxx_hidden_Config + } + return nil +} + +func (x *UpdateNamespaceRequest) GetReplicationConfig() *v1.NamespaceReplicationConfig { + if x != nil { + return x.xxx_hidden_ReplicationConfig + } + return nil +} + +func (x *UpdateNamespaceRequest) GetSecurityToken() string { + if x != nil { + return x.xxx_hidden_SecurityToken + } + return "" +} + +func (x *UpdateNamespaceRequest) GetDeleteBadBinary() string { + if x != nil { + return x.xxx_hidden_DeleteBadBinary + } + return "" +} + +func (x *UpdateNamespaceRequest) GetPromoteNamespace() bool { + if x != nil { + return x.xxx_hidden_PromoteNamespace + } + return false +} + +func (x *UpdateNamespaceRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *UpdateNamespaceRequest) SetUpdateInfo(v *v12.UpdateNamespaceInfo) { + x.xxx_hidden_UpdateInfo = v +} + +func (x *UpdateNamespaceRequest) SetConfig(v *v12.NamespaceConfig) { + x.xxx_hidden_Config = v +} + +func (x *UpdateNamespaceRequest) SetReplicationConfig(v *v1.NamespaceReplicationConfig) { + x.xxx_hidden_ReplicationConfig = v +} + +func (x *UpdateNamespaceRequest) SetSecurityToken(v string) { + x.xxx_hidden_SecurityToken = v +} + +func (x *UpdateNamespaceRequest) SetDeleteBadBinary(v string) { + x.xxx_hidden_DeleteBadBinary = v +} + +func (x *UpdateNamespaceRequest) SetPromoteNamespace(v bool) { + x.xxx_hidden_PromoteNamespace = v +} + +func (x *UpdateNamespaceRequest) HasUpdateInfo() bool { + if x == nil { + return false + } + return x.xxx_hidden_UpdateInfo != nil +} + +func (x *UpdateNamespaceRequest) HasConfig() bool { + if x == nil { + return false + } + return x.xxx_hidden_Config != nil +} + +func (x *UpdateNamespaceRequest) HasReplicationConfig() bool { + if x == nil { + return false + } + return x.xxx_hidden_ReplicationConfig != nil +} + +func (x *UpdateNamespaceRequest) ClearUpdateInfo() { + x.xxx_hidden_UpdateInfo = nil +} + +func (x *UpdateNamespaceRequest) ClearConfig() { + x.xxx_hidden_Config = nil +} + +func (x *UpdateNamespaceRequest) ClearReplicationConfig() { + x.xxx_hidden_ReplicationConfig = nil +} + +type UpdateNamespaceRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + UpdateInfo *v12.UpdateNamespaceInfo + Config *v12.NamespaceConfig + ReplicationConfig *v1.NamespaceReplicationConfig + SecurityToken string + DeleteBadBinary string + // promote local namespace to global namespace. Ignored if namespace is already global namespace. + PromoteNamespace bool +} + +func (b0 UpdateNamespaceRequest_builder) Build() *UpdateNamespaceRequest { + m0 := &UpdateNamespaceRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_UpdateInfo = b.UpdateInfo + x.xxx_hidden_Config = b.Config + x.xxx_hidden_ReplicationConfig = b.ReplicationConfig + x.xxx_hidden_SecurityToken = b.SecurityToken + x.xxx_hidden_DeleteBadBinary = b.DeleteBadBinary + x.xxx_hidden_PromoteNamespace = b.PromoteNamespace + return m0 +} + +type UpdateNamespaceResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_NamespaceInfo *v12.NamespaceInfo `protobuf:"bytes,1,opt,name=namespace_info,json=namespaceInfo,proto3"` + xxx_hidden_Config *v12.NamespaceConfig `protobuf:"bytes,2,opt,name=config,proto3"` + xxx_hidden_ReplicationConfig *v1.NamespaceReplicationConfig `protobuf:"bytes,3,opt,name=replication_config,json=replicationConfig,proto3"` + xxx_hidden_FailoverVersion int64 `protobuf:"varint,4,opt,name=failover_version,json=failoverVersion,proto3"` + xxx_hidden_IsGlobalNamespace bool `protobuf:"varint,5,opt,name=is_global_namespace,json=isGlobalNamespace,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateNamespaceResponse) Reset() { + *x = UpdateNamespaceResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateNamespaceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateNamespaceResponse) ProtoMessage() {} + +func (x *UpdateNamespaceResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[7] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UpdateNamespaceResponse) GetNamespaceInfo() *v12.NamespaceInfo { + if x != nil { + return x.xxx_hidden_NamespaceInfo + } + return nil +} + +func (x *UpdateNamespaceResponse) GetConfig() *v12.NamespaceConfig { + if x != nil { + return x.xxx_hidden_Config + } + return nil +} + +func (x *UpdateNamespaceResponse) GetReplicationConfig() *v1.NamespaceReplicationConfig { + if x != nil { + return x.xxx_hidden_ReplicationConfig + } + return nil +} + +func (x *UpdateNamespaceResponse) GetFailoverVersion() int64 { + if x != nil { + return x.xxx_hidden_FailoverVersion + } + return 0 +} + +func (x *UpdateNamespaceResponse) GetIsGlobalNamespace() bool { + if x != nil { + return x.xxx_hidden_IsGlobalNamespace + } + return false +} + +func (x *UpdateNamespaceResponse) SetNamespaceInfo(v *v12.NamespaceInfo) { + x.xxx_hidden_NamespaceInfo = v +} + +func (x *UpdateNamespaceResponse) SetConfig(v *v12.NamespaceConfig) { + x.xxx_hidden_Config = v +} + +func (x *UpdateNamespaceResponse) SetReplicationConfig(v *v1.NamespaceReplicationConfig) { + x.xxx_hidden_ReplicationConfig = v +} + +func (x *UpdateNamespaceResponse) SetFailoverVersion(v int64) { + x.xxx_hidden_FailoverVersion = v +} + +func (x *UpdateNamespaceResponse) SetIsGlobalNamespace(v bool) { + x.xxx_hidden_IsGlobalNamespace = v +} + +func (x *UpdateNamespaceResponse) HasNamespaceInfo() bool { + if x == nil { + return false + } + return x.xxx_hidden_NamespaceInfo != nil +} + +func (x *UpdateNamespaceResponse) HasConfig() bool { + if x == nil { + return false + } + return x.xxx_hidden_Config != nil +} + +func (x *UpdateNamespaceResponse) HasReplicationConfig() bool { + if x == nil { + return false + } + return x.xxx_hidden_ReplicationConfig != nil +} + +func (x *UpdateNamespaceResponse) ClearNamespaceInfo() { + x.xxx_hidden_NamespaceInfo = nil +} + +func (x *UpdateNamespaceResponse) ClearConfig() { + x.xxx_hidden_Config = nil +} + +func (x *UpdateNamespaceResponse) ClearReplicationConfig() { + x.xxx_hidden_ReplicationConfig = nil +} + +type UpdateNamespaceResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + NamespaceInfo *v12.NamespaceInfo + Config *v12.NamespaceConfig + ReplicationConfig *v1.NamespaceReplicationConfig + FailoverVersion int64 + IsGlobalNamespace bool +} + +func (b0 UpdateNamespaceResponse_builder) Build() *UpdateNamespaceResponse { + m0 := &UpdateNamespaceResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_NamespaceInfo = b.NamespaceInfo + x.xxx_hidden_Config = b.Config + x.xxx_hidden_ReplicationConfig = b.ReplicationConfig + x.xxx_hidden_FailoverVersion = b.FailoverVersion + x.xxx_hidden_IsGlobalNamespace = b.IsGlobalNamespace + return m0 +} + +// Deprecated. +type DeprecateNamespaceRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_SecurityToken string `protobuf:"bytes,2,opt,name=security_token,json=securityToken,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeprecateNamespaceRequest) Reset() { + *x = DeprecateNamespaceRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeprecateNamespaceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeprecateNamespaceRequest) ProtoMessage() {} + +func (x *DeprecateNamespaceRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[8] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DeprecateNamespaceRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *DeprecateNamespaceRequest) GetSecurityToken() string { + if x != nil { + return x.xxx_hidden_SecurityToken + } + return "" +} + +func (x *DeprecateNamespaceRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *DeprecateNamespaceRequest) SetSecurityToken(v string) { + x.xxx_hidden_SecurityToken = v +} + +type DeprecateNamespaceRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + SecurityToken string +} + +func (b0 DeprecateNamespaceRequest_builder) Build() *DeprecateNamespaceRequest { + m0 := &DeprecateNamespaceRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_SecurityToken = b.SecurityToken + return m0 +} + +// Deprecated. +type DeprecateNamespaceResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeprecateNamespaceResponse) Reset() { + *x = DeprecateNamespaceResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeprecateNamespaceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeprecateNamespaceResponse) ProtoMessage() {} + +func (x *DeprecateNamespaceResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[9] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type DeprecateNamespaceResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 DeprecateNamespaceResponse_builder) Build() *DeprecateNamespaceResponse { + m0 := &DeprecateNamespaceResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type StartWorkflowExecutionRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_WorkflowId string `protobuf:"bytes,2,opt,name=workflow_id,json=workflowId,proto3"` + xxx_hidden_WorkflowType *v13.WorkflowType `protobuf:"bytes,3,opt,name=workflow_type,json=workflowType,proto3"` + xxx_hidden_TaskQueue *v14.TaskQueue `protobuf:"bytes,4,opt,name=task_queue,json=taskQueue,proto3"` + xxx_hidden_Input *v13.Payloads `protobuf:"bytes,5,opt,name=input,proto3"` + xxx_hidden_WorkflowExecutionTimeout *durationpb.Duration `protobuf:"bytes,6,opt,name=workflow_execution_timeout,json=workflowExecutionTimeout,proto3"` + xxx_hidden_WorkflowRunTimeout *durationpb.Duration `protobuf:"bytes,7,opt,name=workflow_run_timeout,json=workflowRunTimeout,proto3"` + xxx_hidden_WorkflowTaskTimeout *durationpb.Duration `protobuf:"bytes,8,opt,name=workflow_task_timeout,json=workflowTaskTimeout,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,9,opt,name=identity,proto3"` + xxx_hidden_RequestId string `protobuf:"bytes,10,opt,name=request_id,json=requestId,proto3"` + xxx_hidden_WorkflowIdReusePolicy v11.WorkflowIdReusePolicy `protobuf:"varint,11,opt,name=workflow_id_reuse_policy,json=workflowIdReusePolicy,proto3,enum=temporal.api.enums.v1.WorkflowIdReusePolicy"` + xxx_hidden_WorkflowIdConflictPolicy v11.WorkflowIdConflictPolicy `protobuf:"varint,22,opt,name=workflow_id_conflict_policy,json=workflowIdConflictPolicy,proto3,enum=temporal.api.enums.v1.WorkflowIdConflictPolicy"` + xxx_hidden_RetryPolicy *v13.RetryPolicy `protobuf:"bytes,12,opt,name=retry_policy,json=retryPolicy,proto3"` + xxx_hidden_CronSchedule string `protobuf:"bytes,13,opt,name=cron_schedule,json=cronSchedule,proto3"` + xxx_hidden_Memo *v13.Memo `protobuf:"bytes,14,opt,name=memo,proto3"` + xxx_hidden_SearchAttributes *v13.SearchAttributes `protobuf:"bytes,15,opt,name=search_attributes,json=searchAttributes,proto3"` + xxx_hidden_Header *v13.Header `protobuf:"bytes,16,opt,name=header,proto3"` + xxx_hidden_RequestEagerExecution bool `protobuf:"varint,17,opt,name=request_eager_execution,json=requestEagerExecution,proto3"` + xxx_hidden_ContinuedFailure *v15.Failure `protobuf:"bytes,18,opt,name=continued_failure,json=continuedFailure,proto3"` + xxx_hidden_LastCompletionResult *v13.Payloads `protobuf:"bytes,19,opt,name=last_completion_result,json=lastCompletionResult,proto3"` + xxx_hidden_WorkflowStartDelay *durationpb.Duration `protobuf:"bytes,20,opt,name=workflow_start_delay,json=workflowStartDelay,proto3"` + xxx_hidden_CompletionCallbacks *[]*v13.Callback `protobuf:"bytes,21,rep,name=completion_callbacks,json=completionCallbacks,proto3"` + xxx_hidden_UserMetadata *v16.UserMetadata `protobuf:"bytes,23,opt,name=user_metadata,json=userMetadata,proto3"` + xxx_hidden_Links *[]*v13.Link `protobuf:"bytes,24,rep,name=links,proto3"` + xxx_hidden_VersioningOverride *v17.VersioningOverride `protobuf:"bytes,25,opt,name=versioning_override,json=versioningOverride,proto3"` + xxx_hidden_OnConflictOptions *v17.OnConflictOptions `protobuf:"bytes,26,opt,name=on_conflict_options,json=onConflictOptions,proto3"` + xxx_hidden_Priority *v13.Priority `protobuf:"bytes,27,opt,name=priority,proto3"` + xxx_hidden_EagerWorkerDeploymentOptions *v18.WorkerDeploymentOptions `protobuf:"bytes,28,opt,name=eager_worker_deployment_options,json=eagerWorkerDeploymentOptions,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *StartWorkflowExecutionRequest) Reset() { + *x = StartWorkflowExecutionRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *StartWorkflowExecutionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StartWorkflowExecutionRequest) ProtoMessage() {} + +func (x *StartWorkflowExecutionRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[10] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *StartWorkflowExecutionRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *StartWorkflowExecutionRequest) GetWorkflowId() string { + if x != nil { + return x.xxx_hidden_WorkflowId + } + return "" +} + +func (x *StartWorkflowExecutionRequest) GetWorkflowType() *v13.WorkflowType { + if x != nil { + return x.xxx_hidden_WorkflowType + } + return nil +} + +func (x *StartWorkflowExecutionRequest) GetTaskQueue() *v14.TaskQueue { + if x != nil { + return x.xxx_hidden_TaskQueue + } + return nil +} + +func (x *StartWorkflowExecutionRequest) GetInput() *v13.Payloads { + if x != nil { + return x.xxx_hidden_Input + } + return nil +} + +func (x *StartWorkflowExecutionRequest) GetWorkflowExecutionTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_WorkflowExecutionTimeout + } + return nil +} + +func (x *StartWorkflowExecutionRequest) GetWorkflowRunTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_WorkflowRunTimeout + } + return nil +} + +func (x *StartWorkflowExecutionRequest) GetWorkflowTaskTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_WorkflowTaskTimeout + } + return nil +} + +func (x *StartWorkflowExecutionRequest) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *StartWorkflowExecutionRequest) GetRequestId() string { + if x != nil { + return x.xxx_hidden_RequestId + } + return "" +} + +func (x *StartWorkflowExecutionRequest) GetWorkflowIdReusePolicy() v11.WorkflowIdReusePolicy { + if x != nil { + return x.xxx_hidden_WorkflowIdReusePolicy + } + return v11.WorkflowIdReusePolicy(0) +} + +func (x *StartWorkflowExecutionRequest) GetWorkflowIdConflictPolicy() v11.WorkflowIdConflictPolicy { + if x != nil { + return x.xxx_hidden_WorkflowIdConflictPolicy + } + return v11.WorkflowIdConflictPolicy(0) +} + +func (x *StartWorkflowExecutionRequest) GetRetryPolicy() *v13.RetryPolicy { + if x != nil { + return x.xxx_hidden_RetryPolicy + } + return nil +} + +func (x *StartWorkflowExecutionRequest) GetCronSchedule() string { + if x != nil { + return x.xxx_hidden_CronSchedule + } + return "" +} + +func (x *StartWorkflowExecutionRequest) GetMemo() *v13.Memo { + if x != nil { + return x.xxx_hidden_Memo + } + return nil +} + +func (x *StartWorkflowExecutionRequest) GetSearchAttributes() *v13.SearchAttributes { + if x != nil { + return x.xxx_hidden_SearchAttributes + } + return nil +} + +func (x *StartWorkflowExecutionRequest) GetHeader() *v13.Header { + if x != nil { + return x.xxx_hidden_Header + } + return nil +} + +func (x *StartWorkflowExecutionRequest) GetRequestEagerExecution() bool { + if x != nil { + return x.xxx_hidden_RequestEagerExecution + } + return false +} + +func (x *StartWorkflowExecutionRequest) GetContinuedFailure() *v15.Failure { + if x != nil { + return x.xxx_hidden_ContinuedFailure + } + return nil +} + +func (x *StartWorkflowExecutionRequest) GetLastCompletionResult() *v13.Payloads { + if x != nil { + return x.xxx_hidden_LastCompletionResult + } + return nil +} + +func (x *StartWorkflowExecutionRequest) GetWorkflowStartDelay() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_WorkflowStartDelay + } + return nil +} + +func (x *StartWorkflowExecutionRequest) GetCompletionCallbacks() []*v13.Callback { + if x != nil { + if x.xxx_hidden_CompletionCallbacks != nil { + return *x.xxx_hidden_CompletionCallbacks + } + } + return nil +} + +func (x *StartWorkflowExecutionRequest) GetUserMetadata() *v16.UserMetadata { + if x != nil { + return x.xxx_hidden_UserMetadata + } + return nil +} + +func (x *StartWorkflowExecutionRequest) GetLinks() []*v13.Link { + if x != nil { + if x.xxx_hidden_Links != nil { + return *x.xxx_hidden_Links + } + } + return nil +} + +func (x *StartWorkflowExecutionRequest) GetVersioningOverride() *v17.VersioningOverride { + if x != nil { + return x.xxx_hidden_VersioningOverride + } + return nil +} + +func (x *StartWorkflowExecutionRequest) GetOnConflictOptions() *v17.OnConflictOptions { + if x != nil { + return x.xxx_hidden_OnConflictOptions + } + return nil +} + +func (x *StartWorkflowExecutionRequest) GetPriority() *v13.Priority { + if x != nil { + return x.xxx_hidden_Priority + } + return nil +} + +func (x *StartWorkflowExecutionRequest) GetEagerWorkerDeploymentOptions() *v18.WorkerDeploymentOptions { + if x != nil { + return x.xxx_hidden_EagerWorkerDeploymentOptions + } + return nil +} + +func (x *StartWorkflowExecutionRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *StartWorkflowExecutionRequest) SetWorkflowId(v string) { + x.xxx_hidden_WorkflowId = v +} + +func (x *StartWorkflowExecutionRequest) SetWorkflowType(v *v13.WorkflowType) { + x.xxx_hidden_WorkflowType = v +} + +func (x *StartWorkflowExecutionRequest) SetTaskQueue(v *v14.TaskQueue) { + x.xxx_hidden_TaskQueue = v +} + +func (x *StartWorkflowExecutionRequest) SetInput(v *v13.Payloads) { + x.xxx_hidden_Input = v +} + +func (x *StartWorkflowExecutionRequest) SetWorkflowExecutionTimeout(v *durationpb.Duration) { + x.xxx_hidden_WorkflowExecutionTimeout = v +} + +func (x *StartWorkflowExecutionRequest) SetWorkflowRunTimeout(v *durationpb.Duration) { + x.xxx_hidden_WorkflowRunTimeout = v +} + +func (x *StartWorkflowExecutionRequest) SetWorkflowTaskTimeout(v *durationpb.Duration) { + x.xxx_hidden_WorkflowTaskTimeout = v +} + +func (x *StartWorkflowExecutionRequest) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *StartWorkflowExecutionRequest) SetRequestId(v string) { + x.xxx_hidden_RequestId = v +} + +func (x *StartWorkflowExecutionRequest) SetWorkflowIdReusePolicy(v v11.WorkflowIdReusePolicy) { + x.xxx_hidden_WorkflowIdReusePolicy = v +} + +func (x *StartWorkflowExecutionRequest) SetWorkflowIdConflictPolicy(v v11.WorkflowIdConflictPolicy) { + x.xxx_hidden_WorkflowIdConflictPolicy = v +} + +func (x *StartWorkflowExecutionRequest) SetRetryPolicy(v *v13.RetryPolicy) { + x.xxx_hidden_RetryPolicy = v +} + +func (x *StartWorkflowExecutionRequest) SetCronSchedule(v string) { + x.xxx_hidden_CronSchedule = v +} + +func (x *StartWorkflowExecutionRequest) SetMemo(v *v13.Memo) { + x.xxx_hidden_Memo = v +} + +func (x *StartWorkflowExecutionRequest) SetSearchAttributes(v *v13.SearchAttributes) { + x.xxx_hidden_SearchAttributes = v +} + +func (x *StartWorkflowExecutionRequest) SetHeader(v *v13.Header) { + x.xxx_hidden_Header = v +} + +func (x *StartWorkflowExecutionRequest) SetRequestEagerExecution(v bool) { + x.xxx_hidden_RequestEagerExecution = v +} + +func (x *StartWorkflowExecutionRequest) SetContinuedFailure(v *v15.Failure) { + x.xxx_hidden_ContinuedFailure = v +} + +func (x *StartWorkflowExecutionRequest) SetLastCompletionResult(v *v13.Payloads) { + x.xxx_hidden_LastCompletionResult = v +} + +func (x *StartWorkflowExecutionRequest) SetWorkflowStartDelay(v *durationpb.Duration) { + x.xxx_hidden_WorkflowStartDelay = v +} + +func (x *StartWorkflowExecutionRequest) SetCompletionCallbacks(v []*v13.Callback) { + x.xxx_hidden_CompletionCallbacks = &v +} + +func (x *StartWorkflowExecutionRequest) SetUserMetadata(v *v16.UserMetadata) { + x.xxx_hidden_UserMetadata = v +} + +func (x *StartWorkflowExecutionRequest) SetLinks(v []*v13.Link) { + x.xxx_hidden_Links = &v +} + +func (x *StartWorkflowExecutionRequest) SetVersioningOverride(v *v17.VersioningOverride) { + x.xxx_hidden_VersioningOverride = v +} + +func (x *StartWorkflowExecutionRequest) SetOnConflictOptions(v *v17.OnConflictOptions) { + x.xxx_hidden_OnConflictOptions = v +} + +func (x *StartWorkflowExecutionRequest) SetPriority(v *v13.Priority) { + x.xxx_hidden_Priority = v +} + +func (x *StartWorkflowExecutionRequest) SetEagerWorkerDeploymentOptions(v *v18.WorkerDeploymentOptions) { + x.xxx_hidden_EagerWorkerDeploymentOptions = v +} + +func (x *StartWorkflowExecutionRequest) HasWorkflowType() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowType != nil +} + +func (x *StartWorkflowExecutionRequest) HasTaskQueue() bool { + if x == nil { + return false + } + return x.xxx_hidden_TaskQueue != nil +} + +func (x *StartWorkflowExecutionRequest) HasInput() bool { + if x == nil { + return false + } + return x.xxx_hidden_Input != nil +} + +func (x *StartWorkflowExecutionRequest) HasWorkflowExecutionTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowExecutionTimeout != nil +} + +func (x *StartWorkflowExecutionRequest) HasWorkflowRunTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowRunTimeout != nil +} + +func (x *StartWorkflowExecutionRequest) HasWorkflowTaskTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowTaskTimeout != nil +} + +func (x *StartWorkflowExecutionRequest) HasRetryPolicy() bool { + if x == nil { + return false + } + return x.xxx_hidden_RetryPolicy != nil +} + +func (x *StartWorkflowExecutionRequest) HasMemo() bool { + if x == nil { + return false + } + return x.xxx_hidden_Memo != nil +} + +func (x *StartWorkflowExecutionRequest) HasSearchAttributes() bool { + if x == nil { + return false + } + return x.xxx_hidden_SearchAttributes != nil +} + +func (x *StartWorkflowExecutionRequest) HasHeader() bool { + if x == nil { + return false + } + return x.xxx_hidden_Header != nil +} + +func (x *StartWorkflowExecutionRequest) HasContinuedFailure() bool { + if x == nil { + return false + } + return x.xxx_hidden_ContinuedFailure != nil +} + +func (x *StartWorkflowExecutionRequest) HasLastCompletionResult() bool { + if x == nil { + return false + } + return x.xxx_hidden_LastCompletionResult != nil +} + +func (x *StartWorkflowExecutionRequest) HasWorkflowStartDelay() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowStartDelay != nil +} + +func (x *StartWorkflowExecutionRequest) HasUserMetadata() bool { + if x == nil { + return false + } + return x.xxx_hidden_UserMetadata != nil +} + +func (x *StartWorkflowExecutionRequest) HasVersioningOverride() bool { + if x == nil { + return false + } + return x.xxx_hidden_VersioningOverride != nil +} + +func (x *StartWorkflowExecutionRequest) HasOnConflictOptions() bool { + if x == nil { + return false + } + return x.xxx_hidden_OnConflictOptions != nil +} + +func (x *StartWorkflowExecutionRequest) HasPriority() bool { + if x == nil { + return false + } + return x.xxx_hidden_Priority != nil +} + +func (x *StartWorkflowExecutionRequest) HasEagerWorkerDeploymentOptions() bool { + if x == nil { + return false + } + return x.xxx_hidden_EagerWorkerDeploymentOptions != nil +} + +func (x *StartWorkflowExecutionRequest) ClearWorkflowType() { + x.xxx_hidden_WorkflowType = nil +} + +func (x *StartWorkflowExecutionRequest) ClearTaskQueue() { + x.xxx_hidden_TaskQueue = nil +} + +func (x *StartWorkflowExecutionRequest) ClearInput() { + x.xxx_hidden_Input = nil +} + +func (x *StartWorkflowExecutionRequest) ClearWorkflowExecutionTimeout() { + x.xxx_hidden_WorkflowExecutionTimeout = nil +} + +func (x *StartWorkflowExecutionRequest) ClearWorkflowRunTimeout() { + x.xxx_hidden_WorkflowRunTimeout = nil +} + +func (x *StartWorkflowExecutionRequest) ClearWorkflowTaskTimeout() { + x.xxx_hidden_WorkflowTaskTimeout = nil +} + +func (x *StartWorkflowExecutionRequest) ClearRetryPolicy() { + x.xxx_hidden_RetryPolicy = nil +} + +func (x *StartWorkflowExecutionRequest) ClearMemo() { + x.xxx_hidden_Memo = nil +} + +func (x *StartWorkflowExecutionRequest) ClearSearchAttributes() { + x.xxx_hidden_SearchAttributes = nil +} + +func (x *StartWorkflowExecutionRequest) ClearHeader() { + x.xxx_hidden_Header = nil +} + +func (x *StartWorkflowExecutionRequest) ClearContinuedFailure() { + x.xxx_hidden_ContinuedFailure = nil +} + +func (x *StartWorkflowExecutionRequest) ClearLastCompletionResult() { + x.xxx_hidden_LastCompletionResult = nil +} + +func (x *StartWorkflowExecutionRequest) ClearWorkflowStartDelay() { + x.xxx_hidden_WorkflowStartDelay = nil +} + +func (x *StartWorkflowExecutionRequest) ClearUserMetadata() { + x.xxx_hidden_UserMetadata = nil +} + +func (x *StartWorkflowExecutionRequest) ClearVersioningOverride() { + x.xxx_hidden_VersioningOverride = nil +} + +func (x *StartWorkflowExecutionRequest) ClearOnConflictOptions() { + x.xxx_hidden_OnConflictOptions = nil +} + +func (x *StartWorkflowExecutionRequest) ClearPriority() { + x.xxx_hidden_Priority = nil +} + +func (x *StartWorkflowExecutionRequest) ClearEagerWorkerDeploymentOptions() { + x.xxx_hidden_EagerWorkerDeploymentOptions = nil +} + +type StartWorkflowExecutionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + WorkflowId string + WorkflowType *v13.WorkflowType + TaskQueue *v14.TaskQueue + // Serialized arguments to the workflow. These are passed as arguments to the workflow function. + Input *v13.Payloads + // Total workflow execution timeout including retries and continue as new. + WorkflowExecutionTimeout *durationpb.Duration + // Timeout of a single workflow run. + WorkflowRunTimeout *durationpb.Duration + // Timeout of a single workflow task. + WorkflowTaskTimeout *durationpb.Duration + // The identity of the client who initiated this request + Identity string + // A unique identifier for this start request. Typically UUIDv4. + RequestId string + // Defines whether to allow re-using the workflow id from a previously *closed* workflow. + // The default policy is WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE. + // + // See `workflow_id_conflict_policy` for handling a workflow id duplication with a *running* workflow. + WorkflowIdReusePolicy v11.WorkflowIdReusePolicy + // Defines how to resolve a workflow id conflict with a *running* workflow. + // The default policy is WORKFLOW_ID_CONFLICT_POLICY_FAIL. + // + // See `workflow_id_reuse_policy` for handling a workflow id duplication with a *closed* workflow. + WorkflowIdConflictPolicy v11.WorkflowIdConflictPolicy + // The retry policy for the workflow. Will never exceed `workflow_execution_timeout`. + RetryPolicy *v13.RetryPolicy + // See https://docs.temporal.io/docs/content/what-is-a-temporal-cron-job/ + CronSchedule string + Memo *v13.Memo + SearchAttributes *v13.SearchAttributes + Header *v13.Header + // Request to get the first workflow task inline in the response bypassing matching service and worker polling. + // If set to `true` the caller is expected to have a worker available and capable of processing the task. + // The returned task will be marked as started and is expected to be completed by the specified + // `workflow_task_timeout`. + RequestEagerExecution bool + // These values will be available as ContinuedFailure and LastCompletionResult in the + // WorkflowExecutionStarted event and through SDKs. The are currently only used by the + // server itself (for the schedules feature) and are not intended to be exposed in + // StartWorkflowExecution. + ContinuedFailure *v15.Failure + LastCompletionResult *v13.Payloads + // Time to wait before dispatching the first workflow task. Cannot be used with `cron_schedule`. + // If the workflow gets a signal before the delay, a workflow task will be dispatched and the rest + // of the delay will be ignored. + WorkflowStartDelay *durationpb.Duration + // Callbacks to be called by the server when this workflow reaches a terminal state. + // If the workflow continues-as-new, these callbacks will be carried over to the new execution. + // Callback addresses must be whitelisted in the server's dynamic configuration. + CompletionCallbacks []*v13.Callback + // Metadata on the workflow if it is started. This is carried over to the WorkflowExecutionInfo + // for use by user interfaces to display the fixed as-of-start summary and details of the + // workflow. + UserMetadata *v16.UserMetadata + // Links to be associated with the workflow. + Links []*v13.Link + // If set, takes precedence over the Versioning Behavior sent by the SDK on Workflow Task completion. + // To unset the override after the workflow is running, use UpdateWorkflowExecutionOptions. + VersioningOverride *v17.VersioningOverride + // Defines actions to be done to the existing running workflow when the conflict policy + // WORKFLOW_ID_CONFLICT_POLICY_USE_EXISTING is used. If not set (ie., nil value) or set to a + // empty object (ie., all options with default value), it won't do anything to the existing + // running workflow. If set, it will add a history event to the running workflow. + OnConflictOptions *v17.OnConflictOptions + // Priority metadata + Priority *v13.Priority + // Deployment Options of the worker who will process the eager task. Passed when `request_eager_execution=true`. + EagerWorkerDeploymentOptions *v18.WorkerDeploymentOptions +} + +func (b0 StartWorkflowExecutionRequest_builder) Build() *StartWorkflowExecutionRequest { + m0 := &StartWorkflowExecutionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_WorkflowId = b.WorkflowId + x.xxx_hidden_WorkflowType = b.WorkflowType + x.xxx_hidden_TaskQueue = b.TaskQueue + x.xxx_hidden_Input = b.Input + x.xxx_hidden_WorkflowExecutionTimeout = b.WorkflowExecutionTimeout + x.xxx_hidden_WorkflowRunTimeout = b.WorkflowRunTimeout + x.xxx_hidden_WorkflowTaskTimeout = b.WorkflowTaskTimeout + x.xxx_hidden_Identity = b.Identity + x.xxx_hidden_RequestId = b.RequestId + x.xxx_hidden_WorkflowIdReusePolicy = b.WorkflowIdReusePolicy + x.xxx_hidden_WorkflowIdConflictPolicy = b.WorkflowIdConflictPolicy + x.xxx_hidden_RetryPolicy = b.RetryPolicy + x.xxx_hidden_CronSchedule = b.CronSchedule + x.xxx_hidden_Memo = b.Memo + x.xxx_hidden_SearchAttributes = b.SearchAttributes + x.xxx_hidden_Header = b.Header + x.xxx_hidden_RequestEagerExecution = b.RequestEagerExecution + x.xxx_hidden_ContinuedFailure = b.ContinuedFailure + x.xxx_hidden_LastCompletionResult = b.LastCompletionResult + x.xxx_hidden_WorkflowStartDelay = b.WorkflowStartDelay + x.xxx_hidden_CompletionCallbacks = &b.CompletionCallbacks + x.xxx_hidden_UserMetadata = b.UserMetadata + x.xxx_hidden_Links = &b.Links + x.xxx_hidden_VersioningOverride = b.VersioningOverride + x.xxx_hidden_OnConflictOptions = b.OnConflictOptions + x.xxx_hidden_Priority = b.Priority + x.xxx_hidden_EagerWorkerDeploymentOptions = b.EagerWorkerDeploymentOptions + return m0 +} + +type StartWorkflowExecutionResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RunId string `protobuf:"bytes,1,opt,name=run_id,json=runId,proto3"` + xxx_hidden_Started bool `protobuf:"varint,3,opt,name=started,proto3"` + xxx_hidden_Status v11.WorkflowExecutionStatus `protobuf:"varint,5,opt,name=status,proto3,enum=temporal.api.enums.v1.WorkflowExecutionStatus"` + xxx_hidden_EagerWorkflowTask *PollWorkflowTaskQueueResponse `protobuf:"bytes,2,opt,name=eager_workflow_task,json=eagerWorkflowTask,proto3"` + xxx_hidden_Link *v13.Link `protobuf:"bytes,4,opt,name=link,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *StartWorkflowExecutionResponse) Reset() { + *x = StartWorkflowExecutionResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *StartWorkflowExecutionResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StartWorkflowExecutionResponse) ProtoMessage() {} + +func (x *StartWorkflowExecutionResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[11] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *StartWorkflowExecutionResponse) GetRunId() string { + if x != nil { + return x.xxx_hidden_RunId + } + return "" +} + +func (x *StartWorkflowExecutionResponse) GetStarted() bool { + if x != nil { + return x.xxx_hidden_Started + } + return false +} + +func (x *StartWorkflowExecutionResponse) GetStatus() v11.WorkflowExecutionStatus { + if x != nil { + return x.xxx_hidden_Status + } + return v11.WorkflowExecutionStatus(0) +} + +func (x *StartWorkflowExecutionResponse) GetEagerWorkflowTask() *PollWorkflowTaskQueueResponse { + if x != nil { + return x.xxx_hidden_EagerWorkflowTask + } + return nil +} + +func (x *StartWorkflowExecutionResponse) GetLink() *v13.Link { + if x != nil { + return x.xxx_hidden_Link + } + return nil +} + +func (x *StartWorkflowExecutionResponse) SetRunId(v string) { + x.xxx_hidden_RunId = v +} + +func (x *StartWorkflowExecutionResponse) SetStarted(v bool) { + x.xxx_hidden_Started = v +} + +func (x *StartWorkflowExecutionResponse) SetStatus(v v11.WorkflowExecutionStatus) { + x.xxx_hidden_Status = v +} + +func (x *StartWorkflowExecutionResponse) SetEagerWorkflowTask(v *PollWorkflowTaskQueueResponse) { + x.xxx_hidden_EagerWorkflowTask = v +} + +func (x *StartWorkflowExecutionResponse) SetLink(v *v13.Link) { + x.xxx_hidden_Link = v +} + +func (x *StartWorkflowExecutionResponse) HasEagerWorkflowTask() bool { + if x == nil { + return false + } + return x.xxx_hidden_EagerWorkflowTask != nil +} + +func (x *StartWorkflowExecutionResponse) HasLink() bool { + if x == nil { + return false + } + return x.xxx_hidden_Link != nil +} + +func (x *StartWorkflowExecutionResponse) ClearEagerWorkflowTask() { + x.xxx_hidden_EagerWorkflowTask = nil +} + +func (x *StartWorkflowExecutionResponse) ClearLink() { + x.xxx_hidden_Link = nil +} + +type StartWorkflowExecutionResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The run id of the workflow that was started - or used (via WorkflowIdConflictPolicy USE_EXISTING). + RunId string + // If true, a new workflow was started. + Started bool + // Current execution status of the workflow. Typically remains WORKFLOW_EXECUTION_STATUS_RUNNING + // unless a de-dupe occurs or in specific scenarios handled within the ExecuteMultiOperation (refer to its docs). + Status v11.WorkflowExecutionStatus + // When `request_eager_execution` is set on the `StartWorkflowExecutionRequest`, the server - if supported - will + // return the first workflow task to be eagerly executed. + // The caller is expected to have a worker available to process the task. + EagerWorkflowTask *PollWorkflowTaskQueueResponse + // Link to the workflow event. + Link *v13.Link +} + +func (b0 StartWorkflowExecutionResponse_builder) Build() *StartWorkflowExecutionResponse { + m0 := &StartWorkflowExecutionResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RunId = b.RunId + x.xxx_hidden_Started = b.Started + x.xxx_hidden_Status = b.Status + x.xxx_hidden_EagerWorkflowTask = b.EagerWorkflowTask + x.xxx_hidden_Link = b.Link + return m0 +} + +type GetWorkflowExecutionHistoryRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_Execution *v13.WorkflowExecution `protobuf:"bytes,2,opt,name=execution,proto3"` + xxx_hidden_MaximumPageSize int32 `protobuf:"varint,3,opt,name=maximum_page_size,json=maximumPageSize,proto3"` + xxx_hidden_NextPageToken []byte `protobuf:"bytes,4,opt,name=next_page_token,json=nextPageToken,proto3"` + xxx_hidden_WaitNewEvent bool `protobuf:"varint,5,opt,name=wait_new_event,json=waitNewEvent,proto3"` + xxx_hidden_HistoryEventFilterType v11.HistoryEventFilterType `protobuf:"varint,6,opt,name=history_event_filter_type,json=historyEventFilterType,proto3,enum=temporal.api.enums.v1.HistoryEventFilterType"` + xxx_hidden_SkipArchival bool `protobuf:"varint,7,opt,name=skip_archival,json=skipArchival,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetWorkflowExecutionHistoryRequest) Reset() { + *x = GetWorkflowExecutionHistoryRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetWorkflowExecutionHistoryRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetWorkflowExecutionHistoryRequest) ProtoMessage() {} + +func (x *GetWorkflowExecutionHistoryRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[12] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetWorkflowExecutionHistoryRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *GetWorkflowExecutionHistoryRequest) GetExecution() *v13.WorkflowExecution { + if x != nil { + return x.xxx_hidden_Execution + } + return nil +} + +func (x *GetWorkflowExecutionHistoryRequest) GetMaximumPageSize() int32 { + if x != nil { + return x.xxx_hidden_MaximumPageSize + } + return 0 +} + +func (x *GetWorkflowExecutionHistoryRequest) GetNextPageToken() []byte { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return nil +} + +func (x *GetWorkflowExecutionHistoryRequest) GetWaitNewEvent() bool { + if x != nil { + return x.xxx_hidden_WaitNewEvent + } + return false +} + +func (x *GetWorkflowExecutionHistoryRequest) GetHistoryEventFilterType() v11.HistoryEventFilterType { + if x != nil { + return x.xxx_hidden_HistoryEventFilterType + } + return v11.HistoryEventFilterType(0) +} + +func (x *GetWorkflowExecutionHistoryRequest) GetSkipArchival() bool { + if x != nil { + return x.xxx_hidden_SkipArchival + } + return false +} + +func (x *GetWorkflowExecutionHistoryRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *GetWorkflowExecutionHistoryRequest) SetExecution(v *v13.WorkflowExecution) { + x.xxx_hidden_Execution = v +} + +func (x *GetWorkflowExecutionHistoryRequest) SetMaximumPageSize(v int32) { + x.xxx_hidden_MaximumPageSize = v +} + +func (x *GetWorkflowExecutionHistoryRequest) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_NextPageToken = v +} + +func (x *GetWorkflowExecutionHistoryRequest) SetWaitNewEvent(v bool) { + x.xxx_hidden_WaitNewEvent = v +} + +func (x *GetWorkflowExecutionHistoryRequest) SetHistoryEventFilterType(v v11.HistoryEventFilterType) { + x.xxx_hidden_HistoryEventFilterType = v +} + +func (x *GetWorkflowExecutionHistoryRequest) SetSkipArchival(v bool) { + x.xxx_hidden_SkipArchival = v +} + +func (x *GetWorkflowExecutionHistoryRequest) HasExecution() bool { + if x == nil { + return false + } + return x.xxx_hidden_Execution != nil +} + +func (x *GetWorkflowExecutionHistoryRequest) ClearExecution() { + x.xxx_hidden_Execution = nil +} + +type GetWorkflowExecutionHistoryRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + Execution *v13.WorkflowExecution + MaximumPageSize int32 + // If a `GetWorkflowExecutionHistoryResponse` or a `PollWorkflowTaskQueueResponse` had one of + // these, it should be passed here to fetch the next page. + NextPageToken []byte + // If set to true, the RPC call will not resolve until there is a new event which matches + // the `history_event_filter_type`, or a timeout is hit. + WaitNewEvent bool + // Filter returned events such that they match the specified filter type. + // Default: HISTORY_EVENT_FILTER_TYPE_ALL_EVENT. + HistoryEventFilterType v11.HistoryEventFilterType + SkipArchival bool +} + +func (b0 GetWorkflowExecutionHistoryRequest_builder) Build() *GetWorkflowExecutionHistoryRequest { + m0 := &GetWorkflowExecutionHistoryRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_Execution = b.Execution + x.xxx_hidden_MaximumPageSize = b.MaximumPageSize + x.xxx_hidden_NextPageToken = b.NextPageToken + x.xxx_hidden_WaitNewEvent = b.WaitNewEvent + x.xxx_hidden_HistoryEventFilterType = b.HistoryEventFilterType + x.xxx_hidden_SkipArchival = b.SkipArchival + return m0 +} + +type GetWorkflowExecutionHistoryResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_History *v19.History `protobuf:"bytes,1,opt,name=history,proto3"` + xxx_hidden_RawHistory *[]*v13.DataBlob `protobuf:"bytes,2,rep,name=raw_history,json=rawHistory,proto3"` + xxx_hidden_NextPageToken []byte `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3"` + xxx_hidden_Archived bool `protobuf:"varint,4,opt,name=archived,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetWorkflowExecutionHistoryResponse) Reset() { + *x = GetWorkflowExecutionHistoryResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetWorkflowExecutionHistoryResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetWorkflowExecutionHistoryResponse) ProtoMessage() {} + +func (x *GetWorkflowExecutionHistoryResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[13] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetWorkflowExecutionHistoryResponse) GetHistory() *v19.History { + if x != nil { + return x.xxx_hidden_History + } + return nil +} + +func (x *GetWorkflowExecutionHistoryResponse) GetRawHistory() []*v13.DataBlob { + if x != nil { + if x.xxx_hidden_RawHistory != nil { + return *x.xxx_hidden_RawHistory + } + } + return nil +} + +func (x *GetWorkflowExecutionHistoryResponse) GetNextPageToken() []byte { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return nil +} + +func (x *GetWorkflowExecutionHistoryResponse) GetArchived() bool { + if x != nil { + return x.xxx_hidden_Archived + } + return false +} + +func (x *GetWorkflowExecutionHistoryResponse) SetHistory(v *v19.History) { + x.xxx_hidden_History = v +} + +func (x *GetWorkflowExecutionHistoryResponse) SetRawHistory(v []*v13.DataBlob) { + x.xxx_hidden_RawHistory = &v +} + +func (x *GetWorkflowExecutionHistoryResponse) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_NextPageToken = v +} + +func (x *GetWorkflowExecutionHistoryResponse) SetArchived(v bool) { + x.xxx_hidden_Archived = v +} + +func (x *GetWorkflowExecutionHistoryResponse) HasHistory() bool { + if x == nil { + return false + } + return x.xxx_hidden_History != nil +} + +func (x *GetWorkflowExecutionHistoryResponse) ClearHistory() { + x.xxx_hidden_History = nil +} + +type GetWorkflowExecutionHistoryResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + History *v19.History + // Raw history is an alternate representation of history that may be returned if configured on + // the frontend. This is not supported by all SDKs. Either this or `history` will be set. + RawHistory []*v13.DataBlob + // Will be set if there are more history events than were included in this response + NextPageToken []byte + Archived bool +} + +func (b0 GetWorkflowExecutionHistoryResponse_builder) Build() *GetWorkflowExecutionHistoryResponse { + m0 := &GetWorkflowExecutionHistoryResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_History = b.History + x.xxx_hidden_RawHistory = &b.RawHistory + x.xxx_hidden_NextPageToken = b.NextPageToken + x.xxx_hidden_Archived = b.Archived + return m0 +} + +type GetWorkflowExecutionHistoryReverseRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_Execution *v13.WorkflowExecution `protobuf:"bytes,2,opt,name=execution,proto3"` + xxx_hidden_MaximumPageSize int32 `protobuf:"varint,3,opt,name=maximum_page_size,json=maximumPageSize,proto3"` + xxx_hidden_NextPageToken []byte `protobuf:"bytes,4,opt,name=next_page_token,json=nextPageToken,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetWorkflowExecutionHistoryReverseRequest) Reset() { + *x = GetWorkflowExecutionHistoryReverseRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetWorkflowExecutionHistoryReverseRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetWorkflowExecutionHistoryReverseRequest) ProtoMessage() {} + +func (x *GetWorkflowExecutionHistoryReverseRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[14] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetWorkflowExecutionHistoryReverseRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *GetWorkflowExecutionHistoryReverseRequest) GetExecution() *v13.WorkflowExecution { + if x != nil { + return x.xxx_hidden_Execution + } + return nil +} + +func (x *GetWorkflowExecutionHistoryReverseRequest) GetMaximumPageSize() int32 { + if x != nil { + return x.xxx_hidden_MaximumPageSize + } + return 0 +} + +func (x *GetWorkflowExecutionHistoryReverseRequest) GetNextPageToken() []byte { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return nil +} + +func (x *GetWorkflowExecutionHistoryReverseRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *GetWorkflowExecutionHistoryReverseRequest) SetExecution(v *v13.WorkflowExecution) { + x.xxx_hidden_Execution = v +} + +func (x *GetWorkflowExecutionHistoryReverseRequest) SetMaximumPageSize(v int32) { + x.xxx_hidden_MaximumPageSize = v +} + +func (x *GetWorkflowExecutionHistoryReverseRequest) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_NextPageToken = v +} + +func (x *GetWorkflowExecutionHistoryReverseRequest) HasExecution() bool { + if x == nil { + return false + } + return x.xxx_hidden_Execution != nil +} + +func (x *GetWorkflowExecutionHistoryReverseRequest) ClearExecution() { + x.xxx_hidden_Execution = nil +} + +type GetWorkflowExecutionHistoryReverseRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + Execution *v13.WorkflowExecution + MaximumPageSize int32 + NextPageToken []byte +} + +func (b0 GetWorkflowExecutionHistoryReverseRequest_builder) Build() *GetWorkflowExecutionHistoryReverseRequest { + m0 := &GetWorkflowExecutionHistoryReverseRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_Execution = b.Execution + x.xxx_hidden_MaximumPageSize = b.MaximumPageSize + x.xxx_hidden_NextPageToken = b.NextPageToken + return m0 +} + +type GetWorkflowExecutionHistoryReverseResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_History *v19.History `protobuf:"bytes,1,opt,name=history,proto3"` + xxx_hidden_NextPageToken []byte `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetWorkflowExecutionHistoryReverseResponse) Reset() { + *x = GetWorkflowExecutionHistoryReverseResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetWorkflowExecutionHistoryReverseResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetWorkflowExecutionHistoryReverseResponse) ProtoMessage() {} + +func (x *GetWorkflowExecutionHistoryReverseResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[15] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetWorkflowExecutionHistoryReverseResponse) GetHistory() *v19.History { + if x != nil { + return x.xxx_hidden_History + } + return nil +} + +func (x *GetWorkflowExecutionHistoryReverseResponse) GetNextPageToken() []byte { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return nil +} + +func (x *GetWorkflowExecutionHistoryReverseResponse) SetHistory(v *v19.History) { + x.xxx_hidden_History = v +} + +func (x *GetWorkflowExecutionHistoryReverseResponse) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_NextPageToken = v +} + +func (x *GetWorkflowExecutionHistoryReverseResponse) HasHistory() bool { + if x == nil { + return false + } + return x.xxx_hidden_History != nil +} + +func (x *GetWorkflowExecutionHistoryReverseResponse) ClearHistory() { + x.xxx_hidden_History = nil +} + +type GetWorkflowExecutionHistoryReverseResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + History *v19.History + // Will be set if there are more history events than were included in this response + NextPageToken []byte +} + +func (b0 GetWorkflowExecutionHistoryReverseResponse_builder) Build() *GetWorkflowExecutionHistoryReverseResponse { + m0 := &GetWorkflowExecutionHistoryReverseResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_History = b.History + x.xxx_hidden_NextPageToken = b.NextPageToken + return m0 +} + +type PollWorkflowTaskQueueRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_TaskQueue *v14.TaskQueue `protobuf:"bytes,2,opt,name=task_queue,json=taskQueue,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,3,opt,name=identity,proto3"` + xxx_hidden_WorkerInstanceKey string `protobuf:"bytes,7,opt,name=worker_instance_key,json=workerInstanceKey,proto3"` + xxx_hidden_BinaryChecksum string `protobuf:"bytes,4,opt,name=binary_checksum,json=binaryChecksum,proto3"` + xxx_hidden_WorkerVersionCapabilities *v13.WorkerVersionCapabilities `protobuf:"bytes,5,opt,name=worker_version_capabilities,json=workerVersionCapabilities,proto3"` + xxx_hidden_DeploymentOptions *v18.WorkerDeploymentOptions `protobuf:"bytes,6,opt,name=deployment_options,json=deploymentOptions,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PollWorkflowTaskQueueRequest) Reset() { + *x = PollWorkflowTaskQueueRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PollWorkflowTaskQueueRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PollWorkflowTaskQueueRequest) ProtoMessage() {} + +func (x *PollWorkflowTaskQueueRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[16] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PollWorkflowTaskQueueRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *PollWorkflowTaskQueueRequest) GetTaskQueue() *v14.TaskQueue { + if x != nil { + return x.xxx_hidden_TaskQueue + } + return nil +} + +func (x *PollWorkflowTaskQueueRequest) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *PollWorkflowTaskQueueRequest) GetWorkerInstanceKey() string { + if x != nil { + return x.xxx_hidden_WorkerInstanceKey + } + return "" +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *PollWorkflowTaskQueueRequest) GetBinaryChecksum() string { + if x != nil { + return x.xxx_hidden_BinaryChecksum + } + return "" +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *PollWorkflowTaskQueueRequest) GetWorkerVersionCapabilities() *v13.WorkerVersionCapabilities { + if x != nil { + return x.xxx_hidden_WorkerVersionCapabilities + } + return nil +} + +func (x *PollWorkflowTaskQueueRequest) GetDeploymentOptions() *v18.WorkerDeploymentOptions { + if x != nil { + return x.xxx_hidden_DeploymentOptions + } + return nil +} + +func (x *PollWorkflowTaskQueueRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *PollWorkflowTaskQueueRequest) SetTaskQueue(v *v14.TaskQueue) { + x.xxx_hidden_TaskQueue = v +} + +func (x *PollWorkflowTaskQueueRequest) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *PollWorkflowTaskQueueRequest) SetWorkerInstanceKey(v string) { + x.xxx_hidden_WorkerInstanceKey = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *PollWorkflowTaskQueueRequest) SetBinaryChecksum(v string) { + x.xxx_hidden_BinaryChecksum = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *PollWorkflowTaskQueueRequest) SetWorkerVersionCapabilities(v *v13.WorkerVersionCapabilities) { + x.xxx_hidden_WorkerVersionCapabilities = v +} + +func (x *PollWorkflowTaskQueueRequest) SetDeploymentOptions(v *v18.WorkerDeploymentOptions) { + x.xxx_hidden_DeploymentOptions = v +} + +func (x *PollWorkflowTaskQueueRequest) HasTaskQueue() bool { + if x == nil { + return false + } + return x.xxx_hidden_TaskQueue != nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *PollWorkflowTaskQueueRequest) HasWorkerVersionCapabilities() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkerVersionCapabilities != nil +} + +func (x *PollWorkflowTaskQueueRequest) HasDeploymentOptions() bool { + if x == nil { + return false + } + return x.xxx_hidden_DeploymentOptions != nil +} + +func (x *PollWorkflowTaskQueueRequest) ClearTaskQueue() { + x.xxx_hidden_TaskQueue = nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *PollWorkflowTaskQueueRequest) ClearWorkerVersionCapabilities() { + x.xxx_hidden_WorkerVersionCapabilities = nil +} + +func (x *PollWorkflowTaskQueueRequest) ClearDeploymentOptions() { + x.xxx_hidden_DeploymentOptions = nil +} + +type PollWorkflowTaskQueueRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + TaskQueue *v14.TaskQueue + // The identity of the worker/client who is polling this task queue + Identity string + // A unique key for this worker instance, used for tracking worker lifecycle. + // This is guaranteed to be unique, whereas identity is not guaranteed to be unique. + WorkerInstanceKey string + // Deprecated. Use deployment_options instead. + // Each worker process should provide an ID unique to the specific set of code it is running + // "checksum" in this field name isn't very accurate, it should be though of as an id. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + BinaryChecksum string + // Deprecated. Use deployment_options instead. + // Information about this worker's build identifier and if it is choosing to use the versioning + // feature. See the `WorkerVersionCapabilities` docstring for more. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + WorkerVersionCapabilities *v13.WorkerVersionCapabilities + // Worker deployment options that user has set in the worker. + // Experimental. Worker Deployments are experimental and might significantly change in the future. + DeploymentOptions *v18.WorkerDeploymentOptions +} + +func (b0 PollWorkflowTaskQueueRequest_builder) Build() *PollWorkflowTaskQueueRequest { + m0 := &PollWorkflowTaskQueueRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_TaskQueue = b.TaskQueue + x.xxx_hidden_Identity = b.Identity + x.xxx_hidden_WorkerInstanceKey = b.WorkerInstanceKey + x.xxx_hidden_BinaryChecksum = b.BinaryChecksum + x.xxx_hidden_WorkerVersionCapabilities = b.WorkerVersionCapabilities + x.xxx_hidden_DeploymentOptions = b.DeploymentOptions + return m0 +} + +type PollWorkflowTaskQueueResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_TaskToken []byte `protobuf:"bytes,1,opt,name=task_token,json=taskToken,proto3"` + xxx_hidden_WorkflowExecution *v13.WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3"` + xxx_hidden_WorkflowType *v13.WorkflowType `protobuf:"bytes,3,opt,name=workflow_type,json=workflowType,proto3"` + xxx_hidden_PreviousStartedEventId int64 `protobuf:"varint,4,opt,name=previous_started_event_id,json=previousStartedEventId,proto3"` + xxx_hidden_StartedEventId int64 `protobuf:"varint,5,opt,name=started_event_id,json=startedEventId,proto3"` + xxx_hidden_Attempt int32 `protobuf:"varint,6,opt,name=attempt,proto3"` + xxx_hidden_BacklogCountHint int64 `protobuf:"varint,7,opt,name=backlog_count_hint,json=backlogCountHint,proto3"` + xxx_hidden_History *v19.History `protobuf:"bytes,8,opt,name=history,proto3"` + xxx_hidden_NextPageToken []byte `protobuf:"bytes,9,opt,name=next_page_token,json=nextPageToken,proto3"` + xxx_hidden_Query *v110.WorkflowQuery `protobuf:"bytes,10,opt,name=query,proto3"` + xxx_hidden_WorkflowExecutionTaskQueue *v14.TaskQueue `protobuf:"bytes,11,opt,name=workflow_execution_task_queue,json=workflowExecutionTaskQueue,proto3"` + xxx_hidden_ScheduledTime *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=scheduled_time,json=scheduledTime,proto3"` + xxx_hidden_StartedTime *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=started_time,json=startedTime,proto3"` + xxx_hidden_Queries map[string]*v110.WorkflowQuery `protobuf:"bytes,14,rep,name=queries,proto3" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + xxx_hidden_Messages *[]*v111.Message `protobuf:"bytes,15,rep,name=messages,proto3"` + xxx_hidden_PollerScalingDecision *v14.PollerScalingDecision `protobuf:"bytes,16,opt,name=poller_scaling_decision,json=pollerScalingDecision,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PollWorkflowTaskQueueResponse) Reset() { + *x = PollWorkflowTaskQueueResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PollWorkflowTaskQueueResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PollWorkflowTaskQueueResponse) ProtoMessage() {} + +func (x *PollWorkflowTaskQueueResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[17] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PollWorkflowTaskQueueResponse) GetTaskToken() []byte { + if x != nil { + return x.xxx_hidden_TaskToken + } + return nil +} + +func (x *PollWorkflowTaskQueueResponse) GetWorkflowExecution() *v13.WorkflowExecution { + if x != nil { + return x.xxx_hidden_WorkflowExecution + } + return nil +} + +func (x *PollWorkflowTaskQueueResponse) GetWorkflowType() *v13.WorkflowType { + if x != nil { + return x.xxx_hidden_WorkflowType + } + return nil +} + +func (x *PollWorkflowTaskQueueResponse) GetPreviousStartedEventId() int64 { + if x != nil { + return x.xxx_hidden_PreviousStartedEventId + } + return 0 +} + +func (x *PollWorkflowTaskQueueResponse) GetStartedEventId() int64 { + if x != nil { + return x.xxx_hidden_StartedEventId + } + return 0 +} + +func (x *PollWorkflowTaskQueueResponse) GetAttempt() int32 { + if x != nil { + return x.xxx_hidden_Attempt + } + return 0 +} + +func (x *PollWorkflowTaskQueueResponse) GetBacklogCountHint() int64 { + if x != nil { + return x.xxx_hidden_BacklogCountHint + } + return 0 +} + +func (x *PollWorkflowTaskQueueResponse) GetHistory() *v19.History { + if x != nil { + return x.xxx_hidden_History + } + return nil +} + +func (x *PollWorkflowTaskQueueResponse) GetNextPageToken() []byte { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return nil +} + +func (x *PollWorkflowTaskQueueResponse) GetQuery() *v110.WorkflowQuery { + if x != nil { + return x.xxx_hidden_Query + } + return nil +} + +func (x *PollWorkflowTaskQueueResponse) GetWorkflowExecutionTaskQueue() *v14.TaskQueue { + if x != nil { + return x.xxx_hidden_WorkflowExecutionTaskQueue + } + return nil +} + +func (x *PollWorkflowTaskQueueResponse) GetScheduledTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_ScheduledTime + } + return nil +} + +func (x *PollWorkflowTaskQueueResponse) GetStartedTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_StartedTime + } + return nil +} + +func (x *PollWorkflowTaskQueueResponse) GetQueries() map[string]*v110.WorkflowQuery { + if x != nil { + return x.xxx_hidden_Queries + } + return nil +} + +func (x *PollWorkflowTaskQueueResponse) GetMessages() []*v111.Message { + if x != nil { + if x.xxx_hidden_Messages != nil { + return *x.xxx_hidden_Messages + } + } + return nil +} + +func (x *PollWorkflowTaskQueueResponse) GetPollerScalingDecision() *v14.PollerScalingDecision { + if x != nil { + return x.xxx_hidden_PollerScalingDecision + } + return nil +} + +func (x *PollWorkflowTaskQueueResponse) SetTaskToken(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_TaskToken = v +} + +func (x *PollWorkflowTaskQueueResponse) SetWorkflowExecution(v *v13.WorkflowExecution) { + x.xxx_hidden_WorkflowExecution = v +} + +func (x *PollWorkflowTaskQueueResponse) SetWorkflowType(v *v13.WorkflowType) { + x.xxx_hidden_WorkflowType = v +} + +func (x *PollWorkflowTaskQueueResponse) SetPreviousStartedEventId(v int64) { + x.xxx_hidden_PreviousStartedEventId = v +} + +func (x *PollWorkflowTaskQueueResponse) SetStartedEventId(v int64) { + x.xxx_hidden_StartedEventId = v +} + +func (x *PollWorkflowTaskQueueResponse) SetAttempt(v int32) { + x.xxx_hidden_Attempt = v +} + +func (x *PollWorkflowTaskQueueResponse) SetBacklogCountHint(v int64) { + x.xxx_hidden_BacklogCountHint = v +} + +func (x *PollWorkflowTaskQueueResponse) SetHistory(v *v19.History) { + x.xxx_hidden_History = v +} + +func (x *PollWorkflowTaskQueueResponse) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_NextPageToken = v +} + +func (x *PollWorkflowTaskQueueResponse) SetQuery(v *v110.WorkflowQuery) { + x.xxx_hidden_Query = v +} + +func (x *PollWorkflowTaskQueueResponse) SetWorkflowExecutionTaskQueue(v *v14.TaskQueue) { + x.xxx_hidden_WorkflowExecutionTaskQueue = v +} + +func (x *PollWorkflowTaskQueueResponse) SetScheduledTime(v *timestamppb.Timestamp) { + x.xxx_hidden_ScheduledTime = v +} + +func (x *PollWorkflowTaskQueueResponse) SetStartedTime(v *timestamppb.Timestamp) { + x.xxx_hidden_StartedTime = v +} + +func (x *PollWorkflowTaskQueueResponse) SetQueries(v map[string]*v110.WorkflowQuery) { + x.xxx_hidden_Queries = v +} + +func (x *PollWorkflowTaskQueueResponse) SetMessages(v []*v111.Message) { + x.xxx_hidden_Messages = &v +} + +func (x *PollWorkflowTaskQueueResponse) SetPollerScalingDecision(v *v14.PollerScalingDecision) { + x.xxx_hidden_PollerScalingDecision = v +} + +func (x *PollWorkflowTaskQueueResponse) HasWorkflowExecution() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowExecution != nil +} + +func (x *PollWorkflowTaskQueueResponse) HasWorkflowType() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowType != nil +} + +func (x *PollWorkflowTaskQueueResponse) HasHistory() bool { + if x == nil { + return false + } + return x.xxx_hidden_History != nil +} + +func (x *PollWorkflowTaskQueueResponse) HasQuery() bool { + if x == nil { + return false + } + return x.xxx_hidden_Query != nil +} + +func (x *PollWorkflowTaskQueueResponse) HasWorkflowExecutionTaskQueue() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowExecutionTaskQueue != nil +} + +func (x *PollWorkflowTaskQueueResponse) HasScheduledTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_ScheduledTime != nil +} + +func (x *PollWorkflowTaskQueueResponse) HasStartedTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_StartedTime != nil +} + +func (x *PollWorkflowTaskQueueResponse) HasPollerScalingDecision() bool { + if x == nil { + return false + } + return x.xxx_hidden_PollerScalingDecision != nil +} + +func (x *PollWorkflowTaskQueueResponse) ClearWorkflowExecution() { + x.xxx_hidden_WorkflowExecution = nil +} + +func (x *PollWorkflowTaskQueueResponse) ClearWorkflowType() { + x.xxx_hidden_WorkflowType = nil +} + +func (x *PollWorkflowTaskQueueResponse) ClearHistory() { + x.xxx_hidden_History = nil +} + +func (x *PollWorkflowTaskQueueResponse) ClearQuery() { + x.xxx_hidden_Query = nil +} + +func (x *PollWorkflowTaskQueueResponse) ClearWorkflowExecutionTaskQueue() { + x.xxx_hidden_WorkflowExecutionTaskQueue = nil +} + +func (x *PollWorkflowTaskQueueResponse) ClearScheduledTime() { + x.xxx_hidden_ScheduledTime = nil +} + +func (x *PollWorkflowTaskQueueResponse) ClearStartedTime() { + x.xxx_hidden_StartedTime = nil +} + +func (x *PollWorkflowTaskQueueResponse) ClearPollerScalingDecision() { + x.xxx_hidden_PollerScalingDecision = nil +} + +type PollWorkflowTaskQueueResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // A unique identifier for this task + TaskToken []byte + WorkflowExecution *v13.WorkflowExecution + WorkflowType *v13.WorkflowType + // The last workflow task started event which was processed by some worker for this execution. + // Will be zero if no task has ever started. + PreviousStartedEventId int64 + // The id of the most recent workflow task started event, which will have been generated as a + // result of this poll request being served. Will be zero if the task + // does not contain any events which would advance history (no new WFT started). + // Currently this can happen for queries. + StartedEventId int64 + // Starting at 1, the number of attempts to complete this task by any worker. + Attempt int32 + // A hint that there are more tasks already present in this task queue + // partition. Can be used to prioritize draining a sticky queue. + // + // Specifically, the returned number is the number of tasks remaining in + // the in-memory buffer for this partition, which is currently capped at + // 1000. Because sticky queues only have one partition, this number is + // more useful when draining them. Normal queues, typically having more than one + // partition, will return a number representing only some portion of the + // overall backlog. Subsequent RPCs may not hit the same partition as + // this call. + BacklogCountHint int64 + // The history for this workflow, which will either be complete or partial. Partial histories + // are sent to workers who have signaled that they are using a sticky queue when completing + // a workflow task. + History *v19.History + // Will be set if there are more history events than were included in this response. Such events + // should be fetched via `GetWorkflowExecutionHistory`. + NextPageToken []byte + // Legacy queries appear in this field. The query must be responded to via + // `RespondQueryTaskCompleted`. If the workflow is already closed (queries are permitted on + // closed workflows) then the `history` field will be populated with the entire history. It + // may also be populated if this task originates on a non-sticky queue. + Query *v110.WorkflowQuery + // The task queue this task originated from, which will always be the original non-sticky name + // for the queue, even if this response came from polling a sticky queue. + WorkflowExecutionTaskQueue *v14.TaskQueue + // When this task was scheduled by the server + ScheduledTime *timestamppb.Timestamp + // When the current workflow task started event was generated, meaning the current attempt. + StartedTime *timestamppb.Timestamp + // Queries that should be executed after applying the history in this task. Responses should be + // attached to `RespondWorkflowTaskCompletedRequest::query_results` + Queries map[string]*v110.WorkflowQuery + // Protocol messages piggybacking on a WFT as a transport + Messages []*v111.Message + // Server-advised information the SDK may use to adjust its poller count. + PollerScalingDecision *v14.PollerScalingDecision +} + +func (b0 PollWorkflowTaskQueueResponse_builder) Build() *PollWorkflowTaskQueueResponse { + m0 := &PollWorkflowTaskQueueResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_TaskToken = b.TaskToken + x.xxx_hidden_WorkflowExecution = b.WorkflowExecution + x.xxx_hidden_WorkflowType = b.WorkflowType + x.xxx_hidden_PreviousStartedEventId = b.PreviousStartedEventId + x.xxx_hidden_StartedEventId = b.StartedEventId + x.xxx_hidden_Attempt = b.Attempt + x.xxx_hidden_BacklogCountHint = b.BacklogCountHint + x.xxx_hidden_History = b.History + x.xxx_hidden_NextPageToken = b.NextPageToken + x.xxx_hidden_Query = b.Query + x.xxx_hidden_WorkflowExecutionTaskQueue = b.WorkflowExecutionTaskQueue + x.xxx_hidden_ScheduledTime = b.ScheduledTime + x.xxx_hidden_StartedTime = b.StartedTime + x.xxx_hidden_Queries = b.Queries + x.xxx_hidden_Messages = &b.Messages + x.xxx_hidden_PollerScalingDecision = b.PollerScalingDecision + return m0 +} + +type RespondWorkflowTaskCompletedRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_TaskToken []byte `protobuf:"bytes,1,opt,name=task_token,json=taskToken,proto3"` + xxx_hidden_Commands *[]*v112.Command `protobuf:"bytes,2,rep,name=commands,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,3,opt,name=identity,proto3"` + xxx_hidden_StickyAttributes *v14.StickyExecutionAttributes `protobuf:"bytes,4,opt,name=sticky_attributes,json=stickyAttributes,proto3"` + xxx_hidden_ReturnNewWorkflowTask bool `protobuf:"varint,5,opt,name=return_new_workflow_task,json=returnNewWorkflowTask,proto3"` + xxx_hidden_ForceCreateNewWorkflowTask bool `protobuf:"varint,6,opt,name=force_create_new_workflow_task,json=forceCreateNewWorkflowTask,proto3"` + xxx_hidden_BinaryChecksum string `protobuf:"bytes,7,opt,name=binary_checksum,json=binaryChecksum,proto3"` + xxx_hidden_QueryResults map[string]*v110.WorkflowQueryResult `protobuf:"bytes,8,rep,name=query_results,json=queryResults,proto3" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + xxx_hidden_Namespace string `protobuf:"bytes,9,opt,name=namespace,proto3"` + xxx_hidden_WorkerVersionStamp *v13.WorkerVersionStamp `protobuf:"bytes,10,opt,name=worker_version_stamp,json=workerVersionStamp,proto3"` + xxx_hidden_Messages *[]*v111.Message `protobuf:"bytes,11,rep,name=messages,proto3"` + xxx_hidden_SdkMetadata *v16.WorkflowTaskCompletedMetadata `protobuf:"bytes,12,opt,name=sdk_metadata,json=sdkMetadata,proto3"` + xxx_hidden_MeteringMetadata *v13.MeteringMetadata `protobuf:"bytes,13,opt,name=metering_metadata,json=meteringMetadata,proto3"` + xxx_hidden_Capabilities *RespondWorkflowTaskCompletedRequest_Capabilities `protobuf:"bytes,14,opt,name=capabilities,proto3"` + xxx_hidden_Deployment *v18.Deployment `protobuf:"bytes,15,opt,name=deployment,proto3"` + xxx_hidden_VersioningBehavior v11.VersioningBehavior `protobuf:"varint,16,opt,name=versioning_behavior,json=versioningBehavior,proto3,enum=temporal.api.enums.v1.VersioningBehavior"` + xxx_hidden_DeploymentOptions *v18.WorkerDeploymentOptions `protobuf:"bytes,17,opt,name=deployment_options,json=deploymentOptions,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RespondWorkflowTaskCompletedRequest) Reset() { + *x = RespondWorkflowTaskCompletedRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RespondWorkflowTaskCompletedRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RespondWorkflowTaskCompletedRequest) ProtoMessage() {} + +func (x *RespondWorkflowTaskCompletedRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[18] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *RespondWorkflowTaskCompletedRequest) GetTaskToken() []byte { + if x != nil { + return x.xxx_hidden_TaskToken + } + return nil +} + +func (x *RespondWorkflowTaskCompletedRequest) GetCommands() []*v112.Command { + if x != nil { + if x.xxx_hidden_Commands != nil { + return *x.xxx_hidden_Commands + } + } + return nil +} + +func (x *RespondWorkflowTaskCompletedRequest) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *RespondWorkflowTaskCompletedRequest) GetStickyAttributes() *v14.StickyExecutionAttributes { + if x != nil { + return x.xxx_hidden_StickyAttributes + } + return nil +} + +func (x *RespondWorkflowTaskCompletedRequest) GetReturnNewWorkflowTask() bool { + if x != nil { + return x.xxx_hidden_ReturnNewWorkflowTask + } + return false +} + +func (x *RespondWorkflowTaskCompletedRequest) GetForceCreateNewWorkflowTask() bool { + if x != nil { + return x.xxx_hidden_ForceCreateNewWorkflowTask + } + return false +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondWorkflowTaskCompletedRequest) GetBinaryChecksum() string { + if x != nil { + return x.xxx_hidden_BinaryChecksum + } + return "" +} + +func (x *RespondWorkflowTaskCompletedRequest) GetQueryResults() map[string]*v110.WorkflowQueryResult { + if x != nil { + return x.xxx_hidden_QueryResults + } + return nil +} + +func (x *RespondWorkflowTaskCompletedRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondWorkflowTaskCompletedRequest) GetWorkerVersionStamp() *v13.WorkerVersionStamp { + if x != nil { + return x.xxx_hidden_WorkerVersionStamp + } + return nil +} + +func (x *RespondWorkflowTaskCompletedRequest) GetMessages() []*v111.Message { + if x != nil { + if x.xxx_hidden_Messages != nil { + return *x.xxx_hidden_Messages + } + } + return nil +} + +func (x *RespondWorkflowTaskCompletedRequest) GetSdkMetadata() *v16.WorkflowTaskCompletedMetadata { + if x != nil { + return x.xxx_hidden_SdkMetadata + } + return nil +} + +func (x *RespondWorkflowTaskCompletedRequest) GetMeteringMetadata() *v13.MeteringMetadata { + if x != nil { + return x.xxx_hidden_MeteringMetadata + } + return nil +} + +func (x *RespondWorkflowTaskCompletedRequest) GetCapabilities() *RespondWorkflowTaskCompletedRequest_Capabilities { + if x != nil { + return x.xxx_hidden_Capabilities + } + return nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondWorkflowTaskCompletedRequest) GetDeployment() *v18.Deployment { + if x != nil { + return x.xxx_hidden_Deployment + } + return nil +} + +func (x *RespondWorkflowTaskCompletedRequest) GetVersioningBehavior() v11.VersioningBehavior { + if x != nil { + return x.xxx_hidden_VersioningBehavior + } + return v11.VersioningBehavior(0) +} + +func (x *RespondWorkflowTaskCompletedRequest) GetDeploymentOptions() *v18.WorkerDeploymentOptions { + if x != nil { + return x.xxx_hidden_DeploymentOptions + } + return nil +} + +func (x *RespondWorkflowTaskCompletedRequest) SetTaskToken(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_TaskToken = v +} + +func (x *RespondWorkflowTaskCompletedRequest) SetCommands(v []*v112.Command) { + x.xxx_hidden_Commands = &v +} + +func (x *RespondWorkflowTaskCompletedRequest) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *RespondWorkflowTaskCompletedRequest) SetStickyAttributes(v *v14.StickyExecutionAttributes) { + x.xxx_hidden_StickyAttributes = v +} + +func (x *RespondWorkflowTaskCompletedRequest) SetReturnNewWorkflowTask(v bool) { + x.xxx_hidden_ReturnNewWorkflowTask = v +} + +func (x *RespondWorkflowTaskCompletedRequest) SetForceCreateNewWorkflowTask(v bool) { + x.xxx_hidden_ForceCreateNewWorkflowTask = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondWorkflowTaskCompletedRequest) SetBinaryChecksum(v string) { + x.xxx_hidden_BinaryChecksum = v +} + +func (x *RespondWorkflowTaskCompletedRequest) SetQueryResults(v map[string]*v110.WorkflowQueryResult) { + x.xxx_hidden_QueryResults = v +} + +func (x *RespondWorkflowTaskCompletedRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondWorkflowTaskCompletedRequest) SetWorkerVersionStamp(v *v13.WorkerVersionStamp) { + x.xxx_hidden_WorkerVersionStamp = v +} + +func (x *RespondWorkflowTaskCompletedRequest) SetMessages(v []*v111.Message) { + x.xxx_hidden_Messages = &v +} + +func (x *RespondWorkflowTaskCompletedRequest) SetSdkMetadata(v *v16.WorkflowTaskCompletedMetadata) { + x.xxx_hidden_SdkMetadata = v +} + +func (x *RespondWorkflowTaskCompletedRequest) SetMeteringMetadata(v *v13.MeteringMetadata) { + x.xxx_hidden_MeteringMetadata = v +} + +func (x *RespondWorkflowTaskCompletedRequest) SetCapabilities(v *RespondWorkflowTaskCompletedRequest_Capabilities) { + x.xxx_hidden_Capabilities = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondWorkflowTaskCompletedRequest) SetDeployment(v *v18.Deployment) { + x.xxx_hidden_Deployment = v +} + +func (x *RespondWorkflowTaskCompletedRequest) SetVersioningBehavior(v v11.VersioningBehavior) { + x.xxx_hidden_VersioningBehavior = v +} + +func (x *RespondWorkflowTaskCompletedRequest) SetDeploymentOptions(v *v18.WorkerDeploymentOptions) { + x.xxx_hidden_DeploymentOptions = v +} + +func (x *RespondWorkflowTaskCompletedRequest) HasStickyAttributes() bool { + if x == nil { + return false + } + return x.xxx_hidden_StickyAttributes != nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondWorkflowTaskCompletedRequest) HasWorkerVersionStamp() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkerVersionStamp != nil +} + +func (x *RespondWorkflowTaskCompletedRequest) HasSdkMetadata() bool { + if x == nil { + return false + } + return x.xxx_hidden_SdkMetadata != nil +} + +func (x *RespondWorkflowTaskCompletedRequest) HasMeteringMetadata() bool { + if x == nil { + return false + } + return x.xxx_hidden_MeteringMetadata != nil +} + +func (x *RespondWorkflowTaskCompletedRequest) HasCapabilities() bool { + if x == nil { + return false + } + return x.xxx_hidden_Capabilities != nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondWorkflowTaskCompletedRequest) HasDeployment() bool { + if x == nil { + return false + } + return x.xxx_hidden_Deployment != nil +} + +func (x *RespondWorkflowTaskCompletedRequest) HasDeploymentOptions() bool { + if x == nil { + return false + } + return x.xxx_hidden_DeploymentOptions != nil +} + +func (x *RespondWorkflowTaskCompletedRequest) ClearStickyAttributes() { + x.xxx_hidden_StickyAttributes = nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondWorkflowTaskCompletedRequest) ClearWorkerVersionStamp() { + x.xxx_hidden_WorkerVersionStamp = nil +} + +func (x *RespondWorkflowTaskCompletedRequest) ClearSdkMetadata() { + x.xxx_hidden_SdkMetadata = nil +} + +func (x *RespondWorkflowTaskCompletedRequest) ClearMeteringMetadata() { + x.xxx_hidden_MeteringMetadata = nil +} + +func (x *RespondWorkflowTaskCompletedRequest) ClearCapabilities() { + x.xxx_hidden_Capabilities = nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondWorkflowTaskCompletedRequest) ClearDeployment() { + x.xxx_hidden_Deployment = nil +} + +func (x *RespondWorkflowTaskCompletedRequest) ClearDeploymentOptions() { + x.xxx_hidden_DeploymentOptions = nil +} + +type RespondWorkflowTaskCompletedRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The task token as received in `PollWorkflowTaskQueueResponse` + TaskToken []byte + // A list of commands generated when driving the workflow code in response to the new task + Commands []*v112.Command + // The identity of the worker/client + Identity string + // May be set by workers to indicate that the worker desires future tasks to be provided with + // incremental history on a sticky queue. + StickyAttributes *v14.StickyExecutionAttributes + // If set, the worker wishes to immediately receive the next workflow task as a response to + // this completion. This can save on polling round-trips. + ReturnNewWorkflowTask bool + // Can be used to *force* creation of a new workflow task, even if no commands have resolved or + // one would not otherwise have been generated. This is used when the worker knows it is doing + // something useful, but cannot complete it within the workflow task timeout. Local activities + // which run for longer than the task timeout being the prime example. + ForceCreateNewWorkflowTask bool + // Deprecated. Use `deployment_options` instead. + // Worker process' unique binary id + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + BinaryChecksum string + // Responses to the `queries` field in the task being responded to + QueryResults map[string]*v110.WorkflowQueryResult + Namespace string + // Version info of the worker who processed this task. This message's `build_id` field should + // always be set by SDKs. Workers opting into versioning will also set the `use_versioning` + // field to true. See message docstrings for more. + // Deprecated. Use `deployment_options` and `versioning_behavior` instead. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + WorkerVersionStamp *v13.WorkerVersionStamp + // Protocol messages piggybacking on a WFT as a transport + Messages []*v111.Message + // Data the SDK wishes to record for itself, but server need not interpret, and does not + // directly impact workflow state. + SdkMetadata *v16.WorkflowTaskCompletedMetadata + // Local usage data collected for metering + MeteringMetadata *v13.MeteringMetadata + // All capabilities the SDK supports. + Capabilities *RespondWorkflowTaskCompletedRequest_Capabilities + // Deployment info of the worker that completed this task. Must be present if user has set + // `WorkerDeploymentOptions` regardless of versioning being enabled or not. + // Deprecated. Replaced with `deployment_options`. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + Deployment *v18.Deployment + // Versioning behavior of this workflow execution as set on the worker that completed this task. + // UNSPECIFIED means versioning is not enabled in the worker. + VersioningBehavior v11.VersioningBehavior + // Worker deployment options that user has set in the worker. + DeploymentOptions *v18.WorkerDeploymentOptions +} + +func (b0 RespondWorkflowTaskCompletedRequest_builder) Build() *RespondWorkflowTaskCompletedRequest { + m0 := &RespondWorkflowTaskCompletedRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_TaskToken = b.TaskToken + x.xxx_hidden_Commands = &b.Commands + x.xxx_hidden_Identity = b.Identity + x.xxx_hidden_StickyAttributes = b.StickyAttributes + x.xxx_hidden_ReturnNewWorkflowTask = b.ReturnNewWorkflowTask + x.xxx_hidden_ForceCreateNewWorkflowTask = b.ForceCreateNewWorkflowTask + x.xxx_hidden_BinaryChecksum = b.BinaryChecksum + x.xxx_hidden_QueryResults = b.QueryResults + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_WorkerVersionStamp = b.WorkerVersionStamp + x.xxx_hidden_Messages = &b.Messages + x.xxx_hidden_SdkMetadata = b.SdkMetadata + x.xxx_hidden_MeteringMetadata = b.MeteringMetadata + x.xxx_hidden_Capabilities = b.Capabilities + x.xxx_hidden_Deployment = b.Deployment + x.xxx_hidden_VersioningBehavior = b.VersioningBehavior + x.xxx_hidden_DeploymentOptions = b.DeploymentOptions + return m0 +} + +type RespondWorkflowTaskCompletedResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_WorkflowTask *PollWorkflowTaskQueueResponse `protobuf:"bytes,1,opt,name=workflow_task,json=workflowTask,proto3"` + xxx_hidden_ActivityTasks *[]*PollActivityTaskQueueResponse `protobuf:"bytes,2,rep,name=activity_tasks,json=activityTasks,proto3"` + xxx_hidden_ResetHistoryEventId int64 `protobuf:"varint,3,opt,name=reset_history_event_id,json=resetHistoryEventId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RespondWorkflowTaskCompletedResponse) Reset() { + *x = RespondWorkflowTaskCompletedResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RespondWorkflowTaskCompletedResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RespondWorkflowTaskCompletedResponse) ProtoMessage() {} + +func (x *RespondWorkflowTaskCompletedResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[19] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *RespondWorkflowTaskCompletedResponse) GetWorkflowTask() *PollWorkflowTaskQueueResponse { + if x != nil { + return x.xxx_hidden_WorkflowTask + } + return nil +} + +func (x *RespondWorkflowTaskCompletedResponse) GetActivityTasks() []*PollActivityTaskQueueResponse { + if x != nil { + if x.xxx_hidden_ActivityTasks != nil { + return *x.xxx_hidden_ActivityTasks + } + } + return nil +} + +func (x *RespondWorkflowTaskCompletedResponse) GetResetHistoryEventId() int64 { + if x != nil { + return x.xxx_hidden_ResetHistoryEventId + } + return 0 +} + +func (x *RespondWorkflowTaskCompletedResponse) SetWorkflowTask(v *PollWorkflowTaskQueueResponse) { + x.xxx_hidden_WorkflowTask = v +} + +func (x *RespondWorkflowTaskCompletedResponse) SetActivityTasks(v []*PollActivityTaskQueueResponse) { + x.xxx_hidden_ActivityTasks = &v +} + +func (x *RespondWorkflowTaskCompletedResponse) SetResetHistoryEventId(v int64) { + x.xxx_hidden_ResetHistoryEventId = v +} + +func (x *RespondWorkflowTaskCompletedResponse) HasWorkflowTask() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowTask != nil +} + +func (x *RespondWorkflowTaskCompletedResponse) ClearWorkflowTask() { + x.xxx_hidden_WorkflowTask = nil +} + +type RespondWorkflowTaskCompletedResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // See `RespondWorkflowTaskCompletedResponse::return_new_workflow_task` + WorkflowTask *PollWorkflowTaskQueueResponse + // See `ScheduleActivityTaskCommandAttributes::request_eager_execution` + ActivityTasks []*PollActivityTaskQueueResponse + // If non zero, indicates the server has discarded the workflow task that was being responded to. + // Will be the event ID of the last workflow task started event in the history before the new workflow task. + // Server is only expected to discard a workflow task if it could not have modified the workflow state. + ResetHistoryEventId int64 +} + +func (b0 RespondWorkflowTaskCompletedResponse_builder) Build() *RespondWorkflowTaskCompletedResponse { + m0 := &RespondWorkflowTaskCompletedResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_WorkflowTask = b.WorkflowTask + x.xxx_hidden_ActivityTasks = &b.ActivityTasks + x.xxx_hidden_ResetHistoryEventId = b.ResetHistoryEventId + return m0 +} + +type RespondWorkflowTaskFailedRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_TaskToken []byte `protobuf:"bytes,1,opt,name=task_token,json=taskToken,proto3"` + xxx_hidden_Cause v11.WorkflowTaskFailedCause `protobuf:"varint,2,opt,name=cause,proto3,enum=temporal.api.enums.v1.WorkflowTaskFailedCause"` + xxx_hidden_Failure *v15.Failure `protobuf:"bytes,3,opt,name=failure,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,4,opt,name=identity,proto3"` + xxx_hidden_BinaryChecksum string `protobuf:"bytes,5,opt,name=binary_checksum,json=binaryChecksum,proto3"` + xxx_hidden_Namespace string `protobuf:"bytes,6,opt,name=namespace,proto3"` + xxx_hidden_Messages *[]*v111.Message `protobuf:"bytes,7,rep,name=messages,proto3"` + xxx_hidden_WorkerVersion *v13.WorkerVersionStamp `protobuf:"bytes,8,opt,name=worker_version,json=workerVersion,proto3"` + xxx_hidden_Deployment *v18.Deployment `protobuf:"bytes,9,opt,name=deployment,proto3"` + xxx_hidden_DeploymentOptions *v18.WorkerDeploymentOptions `protobuf:"bytes,10,opt,name=deployment_options,json=deploymentOptions,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RespondWorkflowTaskFailedRequest) Reset() { + *x = RespondWorkflowTaskFailedRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RespondWorkflowTaskFailedRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RespondWorkflowTaskFailedRequest) ProtoMessage() {} + +func (x *RespondWorkflowTaskFailedRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[20] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *RespondWorkflowTaskFailedRequest) GetTaskToken() []byte { + if x != nil { + return x.xxx_hidden_TaskToken + } + return nil +} + +func (x *RespondWorkflowTaskFailedRequest) GetCause() v11.WorkflowTaskFailedCause { + if x != nil { + return x.xxx_hidden_Cause + } + return v11.WorkflowTaskFailedCause(0) +} + +func (x *RespondWorkflowTaskFailedRequest) GetFailure() *v15.Failure { + if x != nil { + return x.xxx_hidden_Failure + } + return nil +} + +func (x *RespondWorkflowTaskFailedRequest) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondWorkflowTaskFailedRequest) GetBinaryChecksum() string { + if x != nil { + return x.xxx_hidden_BinaryChecksum + } + return "" +} + +func (x *RespondWorkflowTaskFailedRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *RespondWorkflowTaskFailedRequest) GetMessages() []*v111.Message { + if x != nil { + if x.xxx_hidden_Messages != nil { + return *x.xxx_hidden_Messages + } + } + return nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondWorkflowTaskFailedRequest) GetWorkerVersion() *v13.WorkerVersionStamp { + if x != nil { + return x.xxx_hidden_WorkerVersion + } + return nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondWorkflowTaskFailedRequest) GetDeployment() *v18.Deployment { + if x != nil { + return x.xxx_hidden_Deployment + } + return nil +} + +func (x *RespondWorkflowTaskFailedRequest) GetDeploymentOptions() *v18.WorkerDeploymentOptions { + if x != nil { + return x.xxx_hidden_DeploymentOptions + } + return nil +} + +func (x *RespondWorkflowTaskFailedRequest) SetTaskToken(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_TaskToken = v +} + +func (x *RespondWorkflowTaskFailedRequest) SetCause(v v11.WorkflowTaskFailedCause) { + x.xxx_hidden_Cause = v +} + +func (x *RespondWorkflowTaskFailedRequest) SetFailure(v *v15.Failure) { + x.xxx_hidden_Failure = v +} + +func (x *RespondWorkflowTaskFailedRequest) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondWorkflowTaskFailedRequest) SetBinaryChecksum(v string) { + x.xxx_hidden_BinaryChecksum = v +} + +func (x *RespondWorkflowTaskFailedRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *RespondWorkflowTaskFailedRequest) SetMessages(v []*v111.Message) { + x.xxx_hidden_Messages = &v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondWorkflowTaskFailedRequest) SetWorkerVersion(v *v13.WorkerVersionStamp) { + x.xxx_hidden_WorkerVersion = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondWorkflowTaskFailedRequest) SetDeployment(v *v18.Deployment) { + x.xxx_hidden_Deployment = v +} + +func (x *RespondWorkflowTaskFailedRequest) SetDeploymentOptions(v *v18.WorkerDeploymentOptions) { + x.xxx_hidden_DeploymentOptions = v +} + +func (x *RespondWorkflowTaskFailedRequest) HasFailure() bool { + if x == nil { + return false + } + return x.xxx_hidden_Failure != nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondWorkflowTaskFailedRequest) HasWorkerVersion() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkerVersion != nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondWorkflowTaskFailedRequest) HasDeployment() bool { + if x == nil { + return false + } + return x.xxx_hidden_Deployment != nil +} + +func (x *RespondWorkflowTaskFailedRequest) HasDeploymentOptions() bool { + if x == nil { + return false + } + return x.xxx_hidden_DeploymentOptions != nil +} + +func (x *RespondWorkflowTaskFailedRequest) ClearFailure() { + x.xxx_hidden_Failure = nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondWorkflowTaskFailedRequest) ClearWorkerVersion() { + x.xxx_hidden_WorkerVersion = nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondWorkflowTaskFailedRequest) ClearDeployment() { + x.xxx_hidden_Deployment = nil +} + +func (x *RespondWorkflowTaskFailedRequest) ClearDeploymentOptions() { + x.xxx_hidden_DeploymentOptions = nil +} + +type RespondWorkflowTaskFailedRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The task token as received in `PollWorkflowTaskQueueResponse` + TaskToken []byte + // Why did the task fail? It's important to note that many of the variants in this enum cannot + // apply to worker responses. See the type's doc for more. + Cause v11.WorkflowTaskFailedCause + // Failure details + Failure *v15.Failure + // The identity of the worker/client + Identity string + // Deprecated. Use `deployment_options` instead. + // Worker process' unique binary id + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + BinaryChecksum string + Namespace string + // Protocol messages piggybacking on a WFT as a transport + Messages []*v111.Message + // Version info of the worker who processed this task. This message's `build_id` field should + // always be set by SDKs. Workers opting into versioning will also set the `use_versioning` + // field to true. See message docstrings for more. + // Deprecated. Use `deployment_options` instead. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + WorkerVersion *v13.WorkerVersionStamp + // Deployment info of the worker that completed this task. Must be present if user has set + // `WorkerDeploymentOptions` regardless of versioning being enabled or not. + // Deprecated. Replaced with `deployment_options`. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + Deployment *v18.Deployment + // Worker deployment options that user has set in the worker. + DeploymentOptions *v18.WorkerDeploymentOptions +} + +func (b0 RespondWorkflowTaskFailedRequest_builder) Build() *RespondWorkflowTaskFailedRequest { + m0 := &RespondWorkflowTaskFailedRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_TaskToken = b.TaskToken + x.xxx_hidden_Cause = b.Cause + x.xxx_hidden_Failure = b.Failure + x.xxx_hidden_Identity = b.Identity + x.xxx_hidden_BinaryChecksum = b.BinaryChecksum + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_Messages = &b.Messages + x.xxx_hidden_WorkerVersion = b.WorkerVersion + x.xxx_hidden_Deployment = b.Deployment + x.xxx_hidden_DeploymentOptions = b.DeploymentOptions + return m0 +} + +type RespondWorkflowTaskFailedResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RespondWorkflowTaskFailedResponse) Reset() { + *x = RespondWorkflowTaskFailedResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RespondWorkflowTaskFailedResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RespondWorkflowTaskFailedResponse) ProtoMessage() {} + +func (x *RespondWorkflowTaskFailedResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[21] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type RespondWorkflowTaskFailedResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 RespondWorkflowTaskFailedResponse_builder) Build() *RespondWorkflowTaskFailedResponse { + m0 := &RespondWorkflowTaskFailedResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type PollActivityTaskQueueRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_TaskQueue *v14.TaskQueue `protobuf:"bytes,2,opt,name=task_queue,json=taskQueue,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,3,opt,name=identity,proto3"` + xxx_hidden_WorkerInstanceKey string `protobuf:"bytes,7,opt,name=worker_instance_key,json=workerInstanceKey,proto3"` + xxx_hidden_TaskQueueMetadata *v14.TaskQueueMetadata `protobuf:"bytes,4,opt,name=task_queue_metadata,json=taskQueueMetadata,proto3"` + xxx_hidden_WorkerVersionCapabilities *v13.WorkerVersionCapabilities `protobuf:"bytes,5,opt,name=worker_version_capabilities,json=workerVersionCapabilities,proto3"` + xxx_hidden_DeploymentOptions *v18.WorkerDeploymentOptions `protobuf:"bytes,6,opt,name=deployment_options,json=deploymentOptions,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PollActivityTaskQueueRequest) Reset() { + *x = PollActivityTaskQueueRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PollActivityTaskQueueRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PollActivityTaskQueueRequest) ProtoMessage() {} + +func (x *PollActivityTaskQueueRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[22] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PollActivityTaskQueueRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *PollActivityTaskQueueRequest) GetTaskQueue() *v14.TaskQueue { + if x != nil { + return x.xxx_hidden_TaskQueue + } + return nil +} + +func (x *PollActivityTaskQueueRequest) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *PollActivityTaskQueueRequest) GetWorkerInstanceKey() string { + if x != nil { + return x.xxx_hidden_WorkerInstanceKey + } + return "" +} + +func (x *PollActivityTaskQueueRequest) GetTaskQueueMetadata() *v14.TaskQueueMetadata { + if x != nil { + return x.xxx_hidden_TaskQueueMetadata + } + return nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *PollActivityTaskQueueRequest) GetWorkerVersionCapabilities() *v13.WorkerVersionCapabilities { + if x != nil { + return x.xxx_hidden_WorkerVersionCapabilities + } + return nil +} + +func (x *PollActivityTaskQueueRequest) GetDeploymentOptions() *v18.WorkerDeploymentOptions { + if x != nil { + return x.xxx_hidden_DeploymentOptions + } + return nil +} + +func (x *PollActivityTaskQueueRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *PollActivityTaskQueueRequest) SetTaskQueue(v *v14.TaskQueue) { + x.xxx_hidden_TaskQueue = v +} + +func (x *PollActivityTaskQueueRequest) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *PollActivityTaskQueueRequest) SetWorkerInstanceKey(v string) { + x.xxx_hidden_WorkerInstanceKey = v +} + +func (x *PollActivityTaskQueueRequest) SetTaskQueueMetadata(v *v14.TaskQueueMetadata) { + x.xxx_hidden_TaskQueueMetadata = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *PollActivityTaskQueueRequest) SetWorkerVersionCapabilities(v *v13.WorkerVersionCapabilities) { + x.xxx_hidden_WorkerVersionCapabilities = v +} + +func (x *PollActivityTaskQueueRequest) SetDeploymentOptions(v *v18.WorkerDeploymentOptions) { + x.xxx_hidden_DeploymentOptions = v +} + +func (x *PollActivityTaskQueueRequest) HasTaskQueue() bool { + if x == nil { + return false + } + return x.xxx_hidden_TaskQueue != nil +} + +func (x *PollActivityTaskQueueRequest) HasTaskQueueMetadata() bool { + if x == nil { + return false + } + return x.xxx_hidden_TaskQueueMetadata != nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *PollActivityTaskQueueRequest) HasWorkerVersionCapabilities() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkerVersionCapabilities != nil +} + +func (x *PollActivityTaskQueueRequest) HasDeploymentOptions() bool { + if x == nil { + return false + } + return x.xxx_hidden_DeploymentOptions != nil +} + +func (x *PollActivityTaskQueueRequest) ClearTaskQueue() { + x.xxx_hidden_TaskQueue = nil +} + +func (x *PollActivityTaskQueueRequest) ClearTaskQueueMetadata() { + x.xxx_hidden_TaskQueueMetadata = nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *PollActivityTaskQueueRequest) ClearWorkerVersionCapabilities() { + x.xxx_hidden_WorkerVersionCapabilities = nil +} + +func (x *PollActivityTaskQueueRequest) ClearDeploymentOptions() { + x.xxx_hidden_DeploymentOptions = nil +} + +type PollActivityTaskQueueRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + TaskQueue *v14.TaskQueue + // The identity of the worker/client + Identity string + // A unique key for this worker instance, used for tracking worker lifecycle. + // This is guaranteed to be unique, whereas identity is not guaranteed to be unique. + WorkerInstanceKey string + TaskQueueMetadata *v14.TaskQueueMetadata + // Information about this worker's build identifier and if it is choosing to use the versioning + // feature. See the `WorkerVersionCapabilities` docstring for more. + // Deprecated. Replaced by deployment_options. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + WorkerVersionCapabilities *v13.WorkerVersionCapabilities + // Worker deployment options that user has set in the worker. + DeploymentOptions *v18.WorkerDeploymentOptions +} + +func (b0 PollActivityTaskQueueRequest_builder) Build() *PollActivityTaskQueueRequest { + m0 := &PollActivityTaskQueueRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_TaskQueue = b.TaskQueue + x.xxx_hidden_Identity = b.Identity + x.xxx_hidden_WorkerInstanceKey = b.WorkerInstanceKey + x.xxx_hidden_TaskQueueMetadata = b.TaskQueueMetadata + x.xxx_hidden_WorkerVersionCapabilities = b.WorkerVersionCapabilities + x.xxx_hidden_DeploymentOptions = b.DeploymentOptions + return m0 +} + +type PollActivityTaskQueueResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_TaskToken []byte `protobuf:"bytes,1,opt,name=task_token,json=taskToken,proto3"` + xxx_hidden_WorkflowNamespace string `protobuf:"bytes,2,opt,name=workflow_namespace,json=workflowNamespace,proto3"` + xxx_hidden_WorkflowType *v13.WorkflowType `protobuf:"bytes,3,opt,name=workflow_type,json=workflowType,proto3"` + xxx_hidden_WorkflowExecution *v13.WorkflowExecution `protobuf:"bytes,4,opt,name=workflow_execution,json=workflowExecution,proto3"` + xxx_hidden_ActivityType *v13.ActivityType `protobuf:"bytes,5,opt,name=activity_type,json=activityType,proto3"` + xxx_hidden_ActivityId string `protobuf:"bytes,6,opt,name=activity_id,json=activityId,proto3"` + xxx_hidden_Header *v13.Header `protobuf:"bytes,7,opt,name=header,proto3"` + xxx_hidden_Input *v13.Payloads `protobuf:"bytes,8,opt,name=input,proto3"` + xxx_hidden_HeartbeatDetails *v13.Payloads `protobuf:"bytes,9,opt,name=heartbeat_details,json=heartbeatDetails,proto3"` + xxx_hidden_ScheduledTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=scheduled_time,json=scheduledTime,proto3"` + xxx_hidden_CurrentAttemptScheduledTime *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=current_attempt_scheduled_time,json=currentAttemptScheduledTime,proto3"` + xxx_hidden_StartedTime *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=started_time,json=startedTime,proto3"` + xxx_hidden_Attempt int32 `protobuf:"varint,13,opt,name=attempt,proto3"` + xxx_hidden_ScheduleToCloseTimeout *durationpb.Duration `protobuf:"bytes,14,opt,name=schedule_to_close_timeout,json=scheduleToCloseTimeout,proto3"` + xxx_hidden_StartToCloseTimeout *durationpb.Duration `protobuf:"bytes,15,opt,name=start_to_close_timeout,json=startToCloseTimeout,proto3"` + xxx_hidden_HeartbeatTimeout *durationpb.Duration `protobuf:"bytes,16,opt,name=heartbeat_timeout,json=heartbeatTimeout,proto3"` + xxx_hidden_RetryPolicy *v13.RetryPolicy `protobuf:"bytes,17,opt,name=retry_policy,json=retryPolicy,proto3"` + xxx_hidden_PollerScalingDecision *v14.PollerScalingDecision `protobuf:"bytes,18,opt,name=poller_scaling_decision,json=pollerScalingDecision,proto3"` + xxx_hidden_Priority *v13.Priority `protobuf:"bytes,19,opt,name=priority,proto3"` + xxx_hidden_ActivityRunId string `protobuf:"bytes,20,opt,name=activity_run_id,json=activityRunId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PollActivityTaskQueueResponse) Reset() { + *x = PollActivityTaskQueueResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PollActivityTaskQueueResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PollActivityTaskQueueResponse) ProtoMessage() {} + +func (x *PollActivityTaskQueueResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[23] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PollActivityTaskQueueResponse) GetTaskToken() []byte { + if x != nil { + return x.xxx_hidden_TaskToken + } + return nil +} + +func (x *PollActivityTaskQueueResponse) GetWorkflowNamespace() string { + if x != nil { + return x.xxx_hidden_WorkflowNamespace + } + return "" +} + +func (x *PollActivityTaskQueueResponse) GetWorkflowType() *v13.WorkflowType { + if x != nil { + return x.xxx_hidden_WorkflowType + } + return nil +} + +func (x *PollActivityTaskQueueResponse) GetWorkflowExecution() *v13.WorkflowExecution { + if x != nil { + return x.xxx_hidden_WorkflowExecution + } + return nil +} + +func (x *PollActivityTaskQueueResponse) GetActivityType() *v13.ActivityType { + if x != nil { + return x.xxx_hidden_ActivityType + } + return nil +} + +func (x *PollActivityTaskQueueResponse) GetActivityId() string { + if x != nil { + return x.xxx_hidden_ActivityId + } + return "" +} + +func (x *PollActivityTaskQueueResponse) GetHeader() *v13.Header { + if x != nil { + return x.xxx_hidden_Header + } + return nil +} + +func (x *PollActivityTaskQueueResponse) GetInput() *v13.Payloads { + if x != nil { + return x.xxx_hidden_Input + } + return nil +} + +func (x *PollActivityTaskQueueResponse) GetHeartbeatDetails() *v13.Payloads { + if x != nil { + return x.xxx_hidden_HeartbeatDetails + } + return nil +} + +func (x *PollActivityTaskQueueResponse) GetScheduledTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_ScheduledTime + } + return nil +} + +func (x *PollActivityTaskQueueResponse) GetCurrentAttemptScheduledTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_CurrentAttemptScheduledTime + } + return nil +} + +func (x *PollActivityTaskQueueResponse) GetStartedTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_StartedTime + } + return nil +} + +func (x *PollActivityTaskQueueResponse) GetAttempt() int32 { + if x != nil { + return x.xxx_hidden_Attempt + } + return 0 +} + +func (x *PollActivityTaskQueueResponse) GetScheduleToCloseTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_ScheduleToCloseTimeout + } + return nil +} + +func (x *PollActivityTaskQueueResponse) GetStartToCloseTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_StartToCloseTimeout + } + return nil +} + +func (x *PollActivityTaskQueueResponse) GetHeartbeatTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_HeartbeatTimeout + } + return nil +} + +func (x *PollActivityTaskQueueResponse) GetRetryPolicy() *v13.RetryPolicy { + if x != nil { + return x.xxx_hidden_RetryPolicy + } + return nil +} + +func (x *PollActivityTaskQueueResponse) GetPollerScalingDecision() *v14.PollerScalingDecision { + if x != nil { + return x.xxx_hidden_PollerScalingDecision + } + return nil +} + +func (x *PollActivityTaskQueueResponse) GetPriority() *v13.Priority { + if x != nil { + return x.xxx_hidden_Priority + } + return nil +} + +func (x *PollActivityTaskQueueResponse) GetActivityRunId() string { + if x != nil { + return x.xxx_hidden_ActivityRunId + } + return "" +} + +func (x *PollActivityTaskQueueResponse) SetTaskToken(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_TaskToken = v +} + +func (x *PollActivityTaskQueueResponse) SetWorkflowNamespace(v string) { + x.xxx_hidden_WorkflowNamespace = v +} + +func (x *PollActivityTaskQueueResponse) SetWorkflowType(v *v13.WorkflowType) { + x.xxx_hidden_WorkflowType = v +} + +func (x *PollActivityTaskQueueResponse) SetWorkflowExecution(v *v13.WorkflowExecution) { + x.xxx_hidden_WorkflowExecution = v +} + +func (x *PollActivityTaskQueueResponse) SetActivityType(v *v13.ActivityType) { + x.xxx_hidden_ActivityType = v +} + +func (x *PollActivityTaskQueueResponse) SetActivityId(v string) { + x.xxx_hidden_ActivityId = v +} + +func (x *PollActivityTaskQueueResponse) SetHeader(v *v13.Header) { + x.xxx_hidden_Header = v +} + +func (x *PollActivityTaskQueueResponse) SetInput(v *v13.Payloads) { + x.xxx_hidden_Input = v +} + +func (x *PollActivityTaskQueueResponse) SetHeartbeatDetails(v *v13.Payloads) { + x.xxx_hidden_HeartbeatDetails = v +} + +func (x *PollActivityTaskQueueResponse) SetScheduledTime(v *timestamppb.Timestamp) { + x.xxx_hidden_ScheduledTime = v +} + +func (x *PollActivityTaskQueueResponse) SetCurrentAttemptScheduledTime(v *timestamppb.Timestamp) { + x.xxx_hidden_CurrentAttemptScheduledTime = v +} + +func (x *PollActivityTaskQueueResponse) SetStartedTime(v *timestamppb.Timestamp) { + x.xxx_hidden_StartedTime = v +} + +func (x *PollActivityTaskQueueResponse) SetAttempt(v int32) { + x.xxx_hidden_Attempt = v +} + +func (x *PollActivityTaskQueueResponse) SetScheduleToCloseTimeout(v *durationpb.Duration) { + x.xxx_hidden_ScheduleToCloseTimeout = v +} + +func (x *PollActivityTaskQueueResponse) SetStartToCloseTimeout(v *durationpb.Duration) { + x.xxx_hidden_StartToCloseTimeout = v +} + +func (x *PollActivityTaskQueueResponse) SetHeartbeatTimeout(v *durationpb.Duration) { + x.xxx_hidden_HeartbeatTimeout = v +} + +func (x *PollActivityTaskQueueResponse) SetRetryPolicy(v *v13.RetryPolicy) { + x.xxx_hidden_RetryPolicy = v +} + +func (x *PollActivityTaskQueueResponse) SetPollerScalingDecision(v *v14.PollerScalingDecision) { + x.xxx_hidden_PollerScalingDecision = v +} + +func (x *PollActivityTaskQueueResponse) SetPriority(v *v13.Priority) { + x.xxx_hidden_Priority = v +} + +func (x *PollActivityTaskQueueResponse) SetActivityRunId(v string) { + x.xxx_hidden_ActivityRunId = v +} + +func (x *PollActivityTaskQueueResponse) HasWorkflowType() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowType != nil +} + +func (x *PollActivityTaskQueueResponse) HasWorkflowExecution() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowExecution != nil +} + +func (x *PollActivityTaskQueueResponse) HasActivityType() bool { + if x == nil { + return false + } + return x.xxx_hidden_ActivityType != nil +} + +func (x *PollActivityTaskQueueResponse) HasHeader() bool { + if x == nil { + return false + } + return x.xxx_hidden_Header != nil +} + +func (x *PollActivityTaskQueueResponse) HasInput() bool { + if x == nil { + return false + } + return x.xxx_hidden_Input != nil +} + +func (x *PollActivityTaskQueueResponse) HasHeartbeatDetails() bool { + if x == nil { + return false + } + return x.xxx_hidden_HeartbeatDetails != nil +} + +func (x *PollActivityTaskQueueResponse) HasScheduledTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_ScheduledTime != nil +} + +func (x *PollActivityTaskQueueResponse) HasCurrentAttemptScheduledTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_CurrentAttemptScheduledTime != nil +} + +func (x *PollActivityTaskQueueResponse) HasStartedTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_StartedTime != nil +} + +func (x *PollActivityTaskQueueResponse) HasScheduleToCloseTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_ScheduleToCloseTimeout != nil +} + +func (x *PollActivityTaskQueueResponse) HasStartToCloseTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_StartToCloseTimeout != nil +} + +func (x *PollActivityTaskQueueResponse) HasHeartbeatTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_HeartbeatTimeout != nil +} + +func (x *PollActivityTaskQueueResponse) HasRetryPolicy() bool { + if x == nil { + return false + } + return x.xxx_hidden_RetryPolicy != nil +} + +func (x *PollActivityTaskQueueResponse) HasPollerScalingDecision() bool { + if x == nil { + return false + } + return x.xxx_hidden_PollerScalingDecision != nil +} + +func (x *PollActivityTaskQueueResponse) HasPriority() bool { + if x == nil { + return false + } + return x.xxx_hidden_Priority != nil +} + +func (x *PollActivityTaskQueueResponse) ClearWorkflowType() { + x.xxx_hidden_WorkflowType = nil +} + +func (x *PollActivityTaskQueueResponse) ClearWorkflowExecution() { + x.xxx_hidden_WorkflowExecution = nil +} + +func (x *PollActivityTaskQueueResponse) ClearActivityType() { + x.xxx_hidden_ActivityType = nil +} + +func (x *PollActivityTaskQueueResponse) ClearHeader() { + x.xxx_hidden_Header = nil +} + +func (x *PollActivityTaskQueueResponse) ClearInput() { + x.xxx_hidden_Input = nil +} + +func (x *PollActivityTaskQueueResponse) ClearHeartbeatDetails() { + x.xxx_hidden_HeartbeatDetails = nil +} + +func (x *PollActivityTaskQueueResponse) ClearScheduledTime() { + x.xxx_hidden_ScheduledTime = nil +} + +func (x *PollActivityTaskQueueResponse) ClearCurrentAttemptScheduledTime() { + x.xxx_hidden_CurrentAttemptScheduledTime = nil +} + +func (x *PollActivityTaskQueueResponse) ClearStartedTime() { + x.xxx_hidden_StartedTime = nil +} + +func (x *PollActivityTaskQueueResponse) ClearScheduleToCloseTimeout() { + x.xxx_hidden_ScheduleToCloseTimeout = nil +} + +func (x *PollActivityTaskQueueResponse) ClearStartToCloseTimeout() { + x.xxx_hidden_StartToCloseTimeout = nil +} + +func (x *PollActivityTaskQueueResponse) ClearHeartbeatTimeout() { + x.xxx_hidden_HeartbeatTimeout = nil +} + +func (x *PollActivityTaskQueueResponse) ClearRetryPolicy() { + x.xxx_hidden_RetryPolicy = nil +} + +func (x *PollActivityTaskQueueResponse) ClearPollerScalingDecision() { + x.xxx_hidden_PollerScalingDecision = nil +} + +func (x *PollActivityTaskQueueResponse) ClearPriority() { + x.xxx_hidden_Priority = nil +} + +type PollActivityTaskQueueResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // A unique identifier for this task + TaskToken []byte + // The namespace the workflow which requested this activity lives in + WorkflowNamespace string + // Type of the requesting workflow + WorkflowType *v13.WorkflowType + // Execution info of the requesting workflow + WorkflowExecution *v13.WorkflowExecution + ActivityType *v13.ActivityType + // The autogenerated or user specified identifier of this activity. Can be used to complete the + // activity via `RespondActivityTaskCompletedById`. May be re-used as long as the last usage + // has resolved, but unique IDs for every activity invocation is a good idea. + // Note that only a workflow activity ID may be autogenerated. + ActivityId string + // Headers specified by the scheduling workflow. Commonly used to propagate contextual info + // from the workflow to its activities. For example, tracing contexts. + Header *v13.Header + // Arguments to the activity invocation + Input *v13.Payloads + // Details of the last heartbeat that was recorded for this activity as of the time this task + // was delivered. + HeartbeatDetails *v13.Payloads + // When was this task first scheduled + ScheduledTime *timestamppb.Timestamp + // When was this task attempt scheduled + CurrentAttemptScheduledTime *timestamppb.Timestamp + // When was this task started (this attempt) + StartedTime *timestamppb.Timestamp + // Starting at 1, the number of attempts to perform this activity + Attempt int32 + // First scheduled -> final result reported timeout + // + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + ScheduleToCloseTimeout *durationpb.Duration + // Current attempt start -> final result reported timeout + // + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + StartToCloseTimeout *durationpb.Duration + // Window within which the activity must report a heartbeat, or be timed out. + HeartbeatTimeout *durationpb.Duration + // This is the retry policy the service uses which may be different from the one provided + // (or not) during activity scheduling. The service can override the provided one if some + // values are not specified or exceed configured system limits. + RetryPolicy *v13.RetryPolicy + // Server-advised information the SDK may use to adjust its poller count. + PollerScalingDecision *v14.PollerScalingDecision + // Priority metadata + Priority *v13.Priority + // The run ID of the activity execution, only set for standalone activities. + ActivityRunId string +} + +func (b0 PollActivityTaskQueueResponse_builder) Build() *PollActivityTaskQueueResponse { + m0 := &PollActivityTaskQueueResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_TaskToken = b.TaskToken + x.xxx_hidden_WorkflowNamespace = b.WorkflowNamespace + x.xxx_hidden_WorkflowType = b.WorkflowType + x.xxx_hidden_WorkflowExecution = b.WorkflowExecution + x.xxx_hidden_ActivityType = b.ActivityType + x.xxx_hidden_ActivityId = b.ActivityId + x.xxx_hidden_Header = b.Header + x.xxx_hidden_Input = b.Input + x.xxx_hidden_HeartbeatDetails = b.HeartbeatDetails + x.xxx_hidden_ScheduledTime = b.ScheduledTime + x.xxx_hidden_CurrentAttemptScheduledTime = b.CurrentAttemptScheduledTime + x.xxx_hidden_StartedTime = b.StartedTime + x.xxx_hidden_Attempt = b.Attempt + x.xxx_hidden_ScheduleToCloseTimeout = b.ScheduleToCloseTimeout + x.xxx_hidden_StartToCloseTimeout = b.StartToCloseTimeout + x.xxx_hidden_HeartbeatTimeout = b.HeartbeatTimeout + x.xxx_hidden_RetryPolicy = b.RetryPolicy + x.xxx_hidden_PollerScalingDecision = b.PollerScalingDecision + x.xxx_hidden_Priority = b.Priority + x.xxx_hidden_ActivityRunId = b.ActivityRunId + return m0 +} + +type RecordActivityTaskHeartbeatRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_TaskToken []byte `protobuf:"bytes,1,opt,name=task_token,json=taskToken,proto3"` + xxx_hidden_Details *v13.Payloads `protobuf:"bytes,2,opt,name=details,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,3,opt,name=identity,proto3"` + xxx_hidden_Namespace string `protobuf:"bytes,4,opt,name=namespace,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RecordActivityTaskHeartbeatRequest) Reset() { + *x = RecordActivityTaskHeartbeatRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RecordActivityTaskHeartbeatRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RecordActivityTaskHeartbeatRequest) ProtoMessage() {} + +func (x *RecordActivityTaskHeartbeatRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[24] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *RecordActivityTaskHeartbeatRequest) GetTaskToken() []byte { + if x != nil { + return x.xxx_hidden_TaskToken + } + return nil +} + +func (x *RecordActivityTaskHeartbeatRequest) GetDetails() *v13.Payloads { + if x != nil { + return x.xxx_hidden_Details + } + return nil +} + +func (x *RecordActivityTaskHeartbeatRequest) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *RecordActivityTaskHeartbeatRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *RecordActivityTaskHeartbeatRequest) SetTaskToken(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_TaskToken = v +} + +func (x *RecordActivityTaskHeartbeatRequest) SetDetails(v *v13.Payloads) { + x.xxx_hidden_Details = v +} + +func (x *RecordActivityTaskHeartbeatRequest) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *RecordActivityTaskHeartbeatRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *RecordActivityTaskHeartbeatRequest) HasDetails() bool { + if x == nil { + return false + } + return x.xxx_hidden_Details != nil +} + +func (x *RecordActivityTaskHeartbeatRequest) ClearDetails() { + x.xxx_hidden_Details = nil +} + +type RecordActivityTaskHeartbeatRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The task token as received in `PollActivityTaskQueueResponse` + TaskToken []byte + // Arbitrary data, of which the most recent call is kept, to store for this activity + Details *v13.Payloads + // The identity of the worker/client + Identity string + Namespace string +} + +func (b0 RecordActivityTaskHeartbeatRequest_builder) Build() *RecordActivityTaskHeartbeatRequest { + m0 := &RecordActivityTaskHeartbeatRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_TaskToken = b.TaskToken + x.xxx_hidden_Details = b.Details + x.xxx_hidden_Identity = b.Identity + x.xxx_hidden_Namespace = b.Namespace + return m0 +} + +type RecordActivityTaskHeartbeatResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_CancelRequested bool `protobuf:"varint,1,opt,name=cancel_requested,json=cancelRequested,proto3"` + xxx_hidden_ActivityPaused bool `protobuf:"varint,2,opt,name=activity_paused,json=activityPaused,proto3"` + xxx_hidden_ActivityReset bool `protobuf:"varint,3,opt,name=activity_reset,json=activityReset,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RecordActivityTaskHeartbeatResponse) Reset() { + *x = RecordActivityTaskHeartbeatResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RecordActivityTaskHeartbeatResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RecordActivityTaskHeartbeatResponse) ProtoMessage() {} + +func (x *RecordActivityTaskHeartbeatResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[25] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *RecordActivityTaskHeartbeatResponse) GetCancelRequested() bool { + if x != nil { + return x.xxx_hidden_CancelRequested + } + return false +} + +func (x *RecordActivityTaskHeartbeatResponse) GetActivityPaused() bool { + if x != nil { + return x.xxx_hidden_ActivityPaused + } + return false +} + +func (x *RecordActivityTaskHeartbeatResponse) GetActivityReset() bool { + if x != nil { + return x.xxx_hidden_ActivityReset + } + return false +} + +func (x *RecordActivityTaskHeartbeatResponse) SetCancelRequested(v bool) { + x.xxx_hidden_CancelRequested = v +} + +func (x *RecordActivityTaskHeartbeatResponse) SetActivityPaused(v bool) { + x.xxx_hidden_ActivityPaused = v +} + +func (x *RecordActivityTaskHeartbeatResponse) SetActivityReset(v bool) { + x.xxx_hidden_ActivityReset = v +} + +type RecordActivityTaskHeartbeatResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Will be set to true if the activity has been asked to cancel itself. The SDK should then + // notify the activity of cancellation if it is still running. + CancelRequested bool + // Will be set to true if the activity is paused. + ActivityPaused bool + // Will be set to true if the activity was reset. + // Applies only to the current run. + ActivityReset bool +} + +func (b0 RecordActivityTaskHeartbeatResponse_builder) Build() *RecordActivityTaskHeartbeatResponse { + m0 := &RecordActivityTaskHeartbeatResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_CancelRequested = b.CancelRequested + x.xxx_hidden_ActivityPaused = b.ActivityPaused + x.xxx_hidden_ActivityReset = b.ActivityReset + return m0 +} + +type RecordActivityTaskHeartbeatByIdRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_WorkflowId string `protobuf:"bytes,2,opt,name=workflow_id,json=workflowId,proto3"` + xxx_hidden_RunId string `protobuf:"bytes,3,opt,name=run_id,json=runId,proto3"` + xxx_hidden_ActivityId string `protobuf:"bytes,4,opt,name=activity_id,json=activityId,proto3"` + xxx_hidden_Details *v13.Payloads `protobuf:"bytes,5,opt,name=details,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,6,opt,name=identity,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RecordActivityTaskHeartbeatByIdRequest) Reset() { + *x = RecordActivityTaskHeartbeatByIdRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RecordActivityTaskHeartbeatByIdRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RecordActivityTaskHeartbeatByIdRequest) ProtoMessage() {} + +func (x *RecordActivityTaskHeartbeatByIdRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[26] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *RecordActivityTaskHeartbeatByIdRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *RecordActivityTaskHeartbeatByIdRequest) GetWorkflowId() string { + if x != nil { + return x.xxx_hidden_WorkflowId + } + return "" +} + +func (x *RecordActivityTaskHeartbeatByIdRequest) GetRunId() string { + if x != nil { + return x.xxx_hidden_RunId + } + return "" +} + +func (x *RecordActivityTaskHeartbeatByIdRequest) GetActivityId() string { + if x != nil { + return x.xxx_hidden_ActivityId + } + return "" +} + +func (x *RecordActivityTaskHeartbeatByIdRequest) GetDetails() *v13.Payloads { + if x != nil { + return x.xxx_hidden_Details + } + return nil +} + +func (x *RecordActivityTaskHeartbeatByIdRequest) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *RecordActivityTaskHeartbeatByIdRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *RecordActivityTaskHeartbeatByIdRequest) SetWorkflowId(v string) { + x.xxx_hidden_WorkflowId = v +} + +func (x *RecordActivityTaskHeartbeatByIdRequest) SetRunId(v string) { + x.xxx_hidden_RunId = v +} + +func (x *RecordActivityTaskHeartbeatByIdRequest) SetActivityId(v string) { + x.xxx_hidden_ActivityId = v +} + +func (x *RecordActivityTaskHeartbeatByIdRequest) SetDetails(v *v13.Payloads) { + x.xxx_hidden_Details = v +} + +func (x *RecordActivityTaskHeartbeatByIdRequest) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *RecordActivityTaskHeartbeatByIdRequest) HasDetails() bool { + if x == nil { + return false + } + return x.xxx_hidden_Details != nil +} + +func (x *RecordActivityTaskHeartbeatByIdRequest) ClearDetails() { + x.xxx_hidden_Details = nil +} + +type RecordActivityTaskHeartbeatByIdRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Namespace of the workflow which scheduled this activity + Namespace string + // Id of the workflow which scheduled this activity, leave empty to target a standalone activity + WorkflowId string + // For a workflow activity - the run ID of the workflow which scheduled this activity. + // For a standalone activity - the run ID of the activity. + RunId string + // Id of the activity we're heartbeating + ActivityId string + // Arbitrary data, of which the most recent call is kept, to store for this activity + Details *v13.Payloads + // The identity of the worker/client + Identity string +} + +func (b0 RecordActivityTaskHeartbeatByIdRequest_builder) Build() *RecordActivityTaskHeartbeatByIdRequest { + m0 := &RecordActivityTaskHeartbeatByIdRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_WorkflowId = b.WorkflowId + x.xxx_hidden_RunId = b.RunId + x.xxx_hidden_ActivityId = b.ActivityId + x.xxx_hidden_Details = b.Details + x.xxx_hidden_Identity = b.Identity + return m0 +} + +type RecordActivityTaskHeartbeatByIdResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_CancelRequested bool `protobuf:"varint,1,opt,name=cancel_requested,json=cancelRequested,proto3"` + xxx_hidden_ActivityPaused bool `protobuf:"varint,2,opt,name=activity_paused,json=activityPaused,proto3"` + xxx_hidden_ActivityReset bool `protobuf:"varint,3,opt,name=activity_reset,json=activityReset,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RecordActivityTaskHeartbeatByIdResponse) Reset() { + *x = RecordActivityTaskHeartbeatByIdResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RecordActivityTaskHeartbeatByIdResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RecordActivityTaskHeartbeatByIdResponse) ProtoMessage() {} + +func (x *RecordActivityTaskHeartbeatByIdResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[27] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *RecordActivityTaskHeartbeatByIdResponse) GetCancelRequested() bool { + if x != nil { + return x.xxx_hidden_CancelRequested + } + return false +} + +func (x *RecordActivityTaskHeartbeatByIdResponse) GetActivityPaused() bool { + if x != nil { + return x.xxx_hidden_ActivityPaused + } + return false +} + +func (x *RecordActivityTaskHeartbeatByIdResponse) GetActivityReset() bool { + if x != nil { + return x.xxx_hidden_ActivityReset + } + return false +} + +func (x *RecordActivityTaskHeartbeatByIdResponse) SetCancelRequested(v bool) { + x.xxx_hidden_CancelRequested = v +} + +func (x *RecordActivityTaskHeartbeatByIdResponse) SetActivityPaused(v bool) { + x.xxx_hidden_ActivityPaused = v +} + +func (x *RecordActivityTaskHeartbeatByIdResponse) SetActivityReset(v bool) { + x.xxx_hidden_ActivityReset = v +} + +type RecordActivityTaskHeartbeatByIdResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Will be set to true if the activity has been asked to cancel itself. The SDK should then + // notify the activity of cancellation if it is still running. + CancelRequested bool + // Will be set to true if the activity is paused. + ActivityPaused bool + // Will be set to true if the activity was reset. + // Applies only to the current run. + ActivityReset bool +} + +func (b0 RecordActivityTaskHeartbeatByIdResponse_builder) Build() *RecordActivityTaskHeartbeatByIdResponse { + m0 := &RecordActivityTaskHeartbeatByIdResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_CancelRequested = b.CancelRequested + x.xxx_hidden_ActivityPaused = b.ActivityPaused + x.xxx_hidden_ActivityReset = b.ActivityReset + return m0 +} + +type RespondActivityTaskCompletedRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_TaskToken []byte `protobuf:"bytes,1,opt,name=task_token,json=taskToken,proto3"` + xxx_hidden_Result *v13.Payloads `protobuf:"bytes,2,opt,name=result,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,3,opt,name=identity,proto3"` + xxx_hidden_Namespace string `protobuf:"bytes,4,opt,name=namespace,proto3"` + xxx_hidden_WorkerVersion *v13.WorkerVersionStamp `protobuf:"bytes,5,opt,name=worker_version,json=workerVersion,proto3"` + xxx_hidden_Deployment *v18.Deployment `protobuf:"bytes,6,opt,name=deployment,proto3"` + xxx_hidden_DeploymentOptions *v18.WorkerDeploymentOptions `protobuf:"bytes,7,opt,name=deployment_options,json=deploymentOptions,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RespondActivityTaskCompletedRequest) Reset() { + *x = RespondActivityTaskCompletedRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RespondActivityTaskCompletedRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RespondActivityTaskCompletedRequest) ProtoMessage() {} + +func (x *RespondActivityTaskCompletedRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[28] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *RespondActivityTaskCompletedRequest) GetTaskToken() []byte { + if x != nil { + return x.xxx_hidden_TaskToken + } + return nil +} + +func (x *RespondActivityTaskCompletedRequest) GetResult() *v13.Payloads { + if x != nil { + return x.xxx_hidden_Result + } + return nil +} + +func (x *RespondActivityTaskCompletedRequest) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *RespondActivityTaskCompletedRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondActivityTaskCompletedRequest) GetWorkerVersion() *v13.WorkerVersionStamp { + if x != nil { + return x.xxx_hidden_WorkerVersion + } + return nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondActivityTaskCompletedRequest) GetDeployment() *v18.Deployment { + if x != nil { + return x.xxx_hidden_Deployment + } + return nil +} + +func (x *RespondActivityTaskCompletedRequest) GetDeploymentOptions() *v18.WorkerDeploymentOptions { + if x != nil { + return x.xxx_hidden_DeploymentOptions + } + return nil +} + +func (x *RespondActivityTaskCompletedRequest) SetTaskToken(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_TaskToken = v +} + +func (x *RespondActivityTaskCompletedRequest) SetResult(v *v13.Payloads) { + x.xxx_hidden_Result = v +} + +func (x *RespondActivityTaskCompletedRequest) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *RespondActivityTaskCompletedRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondActivityTaskCompletedRequest) SetWorkerVersion(v *v13.WorkerVersionStamp) { + x.xxx_hidden_WorkerVersion = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondActivityTaskCompletedRequest) SetDeployment(v *v18.Deployment) { + x.xxx_hidden_Deployment = v +} + +func (x *RespondActivityTaskCompletedRequest) SetDeploymentOptions(v *v18.WorkerDeploymentOptions) { + x.xxx_hidden_DeploymentOptions = v +} + +func (x *RespondActivityTaskCompletedRequest) HasResult() bool { + if x == nil { + return false + } + return x.xxx_hidden_Result != nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondActivityTaskCompletedRequest) HasWorkerVersion() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkerVersion != nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondActivityTaskCompletedRequest) HasDeployment() bool { + if x == nil { + return false + } + return x.xxx_hidden_Deployment != nil +} + +func (x *RespondActivityTaskCompletedRequest) HasDeploymentOptions() bool { + if x == nil { + return false + } + return x.xxx_hidden_DeploymentOptions != nil +} + +func (x *RespondActivityTaskCompletedRequest) ClearResult() { + x.xxx_hidden_Result = nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondActivityTaskCompletedRequest) ClearWorkerVersion() { + x.xxx_hidden_WorkerVersion = nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondActivityTaskCompletedRequest) ClearDeployment() { + x.xxx_hidden_Deployment = nil +} + +func (x *RespondActivityTaskCompletedRequest) ClearDeploymentOptions() { + x.xxx_hidden_DeploymentOptions = nil +} + +type RespondActivityTaskCompletedRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The task token as received in `PollActivityTaskQueueResponse` + TaskToken []byte + // The result of successfully executing the activity + Result *v13.Payloads + // The identity of the worker/client + Identity string + Namespace string + // Version info of the worker who processed this task. This message's `build_id` field should + // always be set by SDKs. Workers opting into versioning will also set the `use_versioning` + // field to true. See message docstrings for more. + // Deprecated. Use `deployment_options` instead. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + WorkerVersion *v13.WorkerVersionStamp + // Deployment info of the worker that completed this task. Must be present if user has set + // `WorkerDeploymentOptions` regardless of versioning being enabled or not. + // Deprecated. Replaced with `deployment_options`. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + Deployment *v18.Deployment + // Worker deployment options that user has set in the worker. + DeploymentOptions *v18.WorkerDeploymentOptions +} + +func (b0 RespondActivityTaskCompletedRequest_builder) Build() *RespondActivityTaskCompletedRequest { + m0 := &RespondActivityTaskCompletedRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_TaskToken = b.TaskToken + x.xxx_hidden_Result = b.Result + x.xxx_hidden_Identity = b.Identity + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_WorkerVersion = b.WorkerVersion + x.xxx_hidden_Deployment = b.Deployment + x.xxx_hidden_DeploymentOptions = b.DeploymentOptions + return m0 +} + +type RespondActivityTaskCompletedResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RespondActivityTaskCompletedResponse) Reset() { + *x = RespondActivityTaskCompletedResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RespondActivityTaskCompletedResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RespondActivityTaskCompletedResponse) ProtoMessage() {} + +func (x *RespondActivityTaskCompletedResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[29] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type RespondActivityTaskCompletedResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 RespondActivityTaskCompletedResponse_builder) Build() *RespondActivityTaskCompletedResponse { + m0 := &RespondActivityTaskCompletedResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type RespondActivityTaskCompletedByIdRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_WorkflowId string `protobuf:"bytes,2,opt,name=workflow_id,json=workflowId,proto3"` + xxx_hidden_RunId string `protobuf:"bytes,3,opt,name=run_id,json=runId,proto3"` + xxx_hidden_ActivityId string `protobuf:"bytes,4,opt,name=activity_id,json=activityId,proto3"` + xxx_hidden_Result *v13.Payloads `protobuf:"bytes,5,opt,name=result,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,6,opt,name=identity,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RespondActivityTaskCompletedByIdRequest) Reset() { + *x = RespondActivityTaskCompletedByIdRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RespondActivityTaskCompletedByIdRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RespondActivityTaskCompletedByIdRequest) ProtoMessage() {} + +func (x *RespondActivityTaskCompletedByIdRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[30] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *RespondActivityTaskCompletedByIdRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *RespondActivityTaskCompletedByIdRequest) GetWorkflowId() string { + if x != nil { + return x.xxx_hidden_WorkflowId + } + return "" +} + +func (x *RespondActivityTaskCompletedByIdRequest) GetRunId() string { + if x != nil { + return x.xxx_hidden_RunId + } + return "" +} + +func (x *RespondActivityTaskCompletedByIdRequest) GetActivityId() string { + if x != nil { + return x.xxx_hidden_ActivityId + } + return "" +} + +func (x *RespondActivityTaskCompletedByIdRequest) GetResult() *v13.Payloads { + if x != nil { + return x.xxx_hidden_Result + } + return nil +} + +func (x *RespondActivityTaskCompletedByIdRequest) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *RespondActivityTaskCompletedByIdRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *RespondActivityTaskCompletedByIdRequest) SetWorkflowId(v string) { + x.xxx_hidden_WorkflowId = v +} + +func (x *RespondActivityTaskCompletedByIdRequest) SetRunId(v string) { + x.xxx_hidden_RunId = v +} + +func (x *RespondActivityTaskCompletedByIdRequest) SetActivityId(v string) { + x.xxx_hidden_ActivityId = v +} + +func (x *RespondActivityTaskCompletedByIdRequest) SetResult(v *v13.Payloads) { + x.xxx_hidden_Result = v +} + +func (x *RespondActivityTaskCompletedByIdRequest) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *RespondActivityTaskCompletedByIdRequest) HasResult() bool { + if x == nil { + return false + } + return x.xxx_hidden_Result != nil +} + +func (x *RespondActivityTaskCompletedByIdRequest) ClearResult() { + x.xxx_hidden_Result = nil +} + +type RespondActivityTaskCompletedByIdRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Namespace of the workflow which scheduled this activity + Namespace string + // Id of the workflow which scheduled this activity, leave empty to target a standalone activity + WorkflowId string + // For a workflow activity - the run ID of the workflow which scheduled this activity. + // For a standalone activity - the run ID of the activity. + RunId string + // Id of the activity to complete + ActivityId string + // The serialized result of activity execution + Result *v13.Payloads + // The identity of the worker/client + Identity string +} + +func (b0 RespondActivityTaskCompletedByIdRequest_builder) Build() *RespondActivityTaskCompletedByIdRequest { + m0 := &RespondActivityTaskCompletedByIdRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_WorkflowId = b.WorkflowId + x.xxx_hidden_RunId = b.RunId + x.xxx_hidden_ActivityId = b.ActivityId + x.xxx_hidden_Result = b.Result + x.xxx_hidden_Identity = b.Identity + return m0 +} + +type RespondActivityTaskCompletedByIdResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RespondActivityTaskCompletedByIdResponse) Reset() { + *x = RespondActivityTaskCompletedByIdResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RespondActivityTaskCompletedByIdResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RespondActivityTaskCompletedByIdResponse) ProtoMessage() {} + +func (x *RespondActivityTaskCompletedByIdResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[31] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type RespondActivityTaskCompletedByIdResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 RespondActivityTaskCompletedByIdResponse_builder) Build() *RespondActivityTaskCompletedByIdResponse { + m0 := &RespondActivityTaskCompletedByIdResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type RespondActivityTaskFailedRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_TaskToken []byte `protobuf:"bytes,1,opt,name=task_token,json=taskToken,proto3"` + xxx_hidden_Failure *v15.Failure `protobuf:"bytes,2,opt,name=failure,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,3,opt,name=identity,proto3"` + xxx_hidden_Namespace string `protobuf:"bytes,4,opt,name=namespace,proto3"` + xxx_hidden_LastHeartbeatDetails *v13.Payloads `protobuf:"bytes,5,opt,name=last_heartbeat_details,json=lastHeartbeatDetails,proto3"` + xxx_hidden_WorkerVersion *v13.WorkerVersionStamp `protobuf:"bytes,6,opt,name=worker_version,json=workerVersion,proto3"` + xxx_hidden_Deployment *v18.Deployment `protobuf:"bytes,7,opt,name=deployment,proto3"` + xxx_hidden_DeploymentOptions *v18.WorkerDeploymentOptions `protobuf:"bytes,8,opt,name=deployment_options,json=deploymentOptions,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RespondActivityTaskFailedRequest) Reset() { + *x = RespondActivityTaskFailedRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RespondActivityTaskFailedRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RespondActivityTaskFailedRequest) ProtoMessage() {} + +func (x *RespondActivityTaskFailedRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[32] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *RespondActivityTaskFailedRequest) GetTaskToken() []byte { + if x != nil { + return x.xxx_hidden_TaskToken + } + return nil +} + +func (x *RespondActivityTaskFailedRequest) GetFailure() *v15.Failure { + if x != nil { + return x.xxx_hidden_Failure + } + return nil +} + +func (x *RespondActivityTaskFailedRequest) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *RespondActivityTaskFailedRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *RespondActivityTaskFailedRequest) GetLastHeartbeatDetails() *v13.Payloads { + if x != nil { + return x.xxx_hidden_LastHeartbeatDetails + } + return nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondActivityTaskFailedRequest) GetWorkerVersion() *v13.WorkerVersionStamp { + if x != nil { + return x.xxx_hidden_WorkerVersion + } + return nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondActivityTaskFailedRequest) GetDeployment() *v18.Deployment { + if x != nil { + return x.xxx_hidden_Deployment + } + return nil +} + +func (x *RespondActivityTaskFailedRequest) GetDeploymentOptions() *v18.WorkerDeploymentOptions { + if x != nil { + return x.xxx_hidden_DeploymentOptions + } + return nil +} + +func (x *RespondActivityTaskFailedRequest) SetTaskToken(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_TaskToken = v +} + +func (x *RespondActivityTaskFailedRequest) SetFailure(v *v15.Failure) { + x.xxx_hidden_Failure = v +} + +func (x *RespondActivityTaskFailedRequest) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *RespondActivityTaskFailedRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *RespondActivityTaskFailedRequest) SetLastHeartbeatDetails(v *v13.Payloads) { + x.xxx_hidden_LastHeartbeatDetails = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondActivityTaskFailedRequest) SetWorkerVersion(v *v13.WorkerVersionStamp) { + x.xxx_hidden_WorkerVersion = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondActivityTaskFailedRequest) SetDeployment(v *v18.Deployment) { + x.xxx_hidden_Deployment = v +} + +func (x *RespondActivityTaskFailedRequest) SetDeploymentOptions(v *v18.WorkerDeploymentOptions) { + x.xxx_hidden_DeploymentOptions = v +} + +func (x *RespondActivityTaskFailedRequest) HasFailure() bool { + if x == nil { + return false + } + return x.xxx_hidden_Failure != nil +} + +func (x *RespondActivityTaskFailedRequest) HasLastHeartbeatDetails() bool { + if x == nil { + return false + } + return x.xxx_hidden_LastHeartbeatDetails != nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondActivityTaskFailedRequest) HasWorkerVersion() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkerVersion != nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondActivityTaskFailedRequest) HasDeployment() bool { + if x == nil { + return false + } + return x.xxx_hidden_Deployment != nil +} + +func (x *RespondActivityTaskFailedRequest) HasDeploymentOptions() bool { + if x == nil { + return false + } + return x.xxx_hidden_DeploymentOptions != nil +} + +func (x *RespondActivityTaskFailedRequest) ClearFailure() { + x.xxx_hidden_Failure = nil +} + +func (x *RespondActivityTaskFailedRequest) ClearLastHeartbeatDetails() { + x.xxx_hidden_LastHeartbeatDetails = nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondActivityTaskFailedRequest) ClearWorkerVersion() { + x.xxx_hidden_WorkerVersion = nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondActivityTaskFailedRequest) ClearDeployment() { + x.xxx_hidden_Deployment = nil +} + +func (x *RespondActivityTaskFailedRequest) ClearDeploymentOptions() { + x.xxx_hidden_DeploymentOptions = nil +} + +type RespondActivityTaskFailedRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The task token as received in `PollActivityTaskQueueResponse` + TaskToken []byte + // Detailed failure information + Failure *v15.Failure + // The identity of the worker/client + Identity string + Namespace string + // Additional details to be stored as last activity heartbeat + LastHeartbeatDetails *v13.Payloads + // Version info of the worker who processed this task. This message's `build_id` field should + // always be set by SDKs. Workers opting into versioning will also set the `use_versioning` + // field to true. See message docstrings for more. + // Deprecated. Use `deployment_options` instead. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + WorkerVersion *v13.WorkerVersionStamp + // Deployment info of the worker that completed this task. Must be present if user has set + // `WorkerDeploymentOptions` regardless of versioning being enabled or not. + // Deprecated. Replaced with `deployment_options`. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + Deployment *v18.Deployment + // Worker deployment options that user has set in the worker. + DeploymentOptions *v18.WorkerDeploymentOptions +} + +func (b0 RespondActivityTaskFailedRequest_builder) Build() *RespondActivityTaskFailedRequest { + m0 := &RespondActivityTaskFailedRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_TaskToken = b.TaskToken + x.xxx_hidden_Failure = b.Failure + x.xxx_hidden_Identity = b.Identity + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_LastHeartbeatDetails = b.LastHeartbeatDetails + x.xxx_hidden_WorkerVersion = b.WorkerVersion + x.xxx_hidden_Deployment = b.Deployment + x.xxx_hidden_DeploymentOptions = b.DeploymentOptions + return m0 +} + +type RespondActivityTaskFailedResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Failures *[]*v15.Failure `protobuf:"bytes,1,rep,name=failures,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RespondActivityTaskFailedResponse) Reset() { + *x = RespondActivityTaskFailedResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RespondActivityTaskFailedResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RespondActivityTaskFailedResponse) ProtoMessage() {} + +func (x *RespondActivityTaskFailedResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[33] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *RespondActivityTaskFailedResponse) GetFailures() []*v15.Failure { + if x != nil { + if x.xxx_hidden_Failures != nil { + return *x.xxx_hidden_Failures + } + } + return nil +} + +func (x *RespondActivityTaskFailedResponse) SetFailures(v []*v15.Failure) { + x.xxx_hidden_Failures = &v +} + +type RespondActivityTaskFailedResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Server validation failures could include + // last_heartbeat_details payload is too large, request failure is too large + Failures []*v15.Failure +} + +func (b0 RespondActivityTaskFailedResponse_builder) Build() *RespondActivityTaskFailedResponse { + m0 := &RespondActivityTaskFailedResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Failures = &b.Failures + return m0 +} + +type RespondActivityTaskFailedByIdRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_WorkflowId string `protobuf:"bytes,2,opt,name=workflow_id,json=workflowId,proto3"` + xxx_hidden_RunId string `protobuf:"bytes,3,opt,name=run_id,json=runId,proto3"` + xxx_hidden_ActivityId string `protobuf:"bytes,4,opt,name=activity_id,json=activityId,proto3"` + xxx_hidden_Failure *v15.Failure `protobuf:"bytes,5,opt,name=failure,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,6,opt,name=identity,proto3"` + xxx_hidden_LastHeartbeatDetails *v13.Payloads `protobuf:"bytes,7,opt,name=last_heartbeat_details,json=lastHeartbeatDetails,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RespondActivityTaskFailedByIdRequest) Reset() { + *x = RespondActivityTaskFailedByIdRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RespondActivityTaskFailedByIdRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RespondActivityTaskFailedByIdRequest) ProtoMessage() {} + +func (x *RespondActivityTaskFailedByIdRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[34] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *RespondActivityTaskFailedByIdRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *RespondActivityTaskFailedByIdRequest) GetWorkflowId() string { + if x != nil { + return x.xxx_hidden_WorkflowId + } + return "" +} + +func (x *RespondActivityTaskFailedByIdRequest) GetRunId() string { + if x != nil { + return x.xxx_hidden_RunId + } + return "" +} + +func (x *RespondActivityTaskFailedByIdRequest) GetActivityId() string { + if x != nil { + return x.xxx_hidden_ActivityId + } + return "" +} + +func (x *RespondActivityTaskFailedByIdRequest) GetFailure() *v15.Failure { + if x != nil { + return x.xxx_hidden_Failure + } + return nil +} + +func (x *RespondActivityTaskFailedByIdRequest) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *RespondActivityTaskFailedByIdRequest) GetLastHeartbeatDetails() *v13.Payloads { + if x != nil { + return x.xxx_hidden_LastHeartbeatDetails + } + return nil +} + +func (x *RespondActivityTaskFailedByIdRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *RespondActivityTaskFailedByIdRequest) SetWorkflowId(v string) { + x.xxx_hidden_WorkflowId = v +} + +func (x *RespondActivityTaskFailedByIdRequest) SetRunId(v string) { + x.xxx_hidden_RunId = v +} + +func (x *RespondActivityTaskFailedByIdRequest) SetActivityId(v string) { + x.xxx_hidden_ActivityId = v +} + +func (x *RespondActivityTaskFailedByIdRequest) SetFailure(v *v15.Failure) { + x.xxx_hidden_Failure = v +} + +func (x *RespondActivityTaskFailedByIdRequest) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *RespondActivityTaskFailedByIdRequest) SetLastHeartbeatDetails(v *v13.Payloads) { + x.xxx_hidden_LastHeartbeatDetails = v +} + +func (x *RespondActivityTaskFailedByIdRequest) HasFailure() bool { + if x == nil { + return false + } + return x.xxx_hidden_Failure != nil +} + +func (x *RespondActivityTaskFailedByIdRequest) HasLastHeartbeatDetails() bool { + if x == nil { + return false + } + return x.xxx_hidden_LastHeartbeatDetails != nil +} + +func (x *RespondActivityTaskFailedByIdRequest) ClearFailure() { + x.xxx_hidden_Failure = nil +} + +func (x *RespondActivityTaskFailedByIdRequest) ClearLastHeartbeatDetails() { + x.xxx_hidden_LastHeartbeatDetails = nil +} + +type RespondActivityTaskFailedByIdRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Namespace of the workflow which scheduled this activity + Namespace string + // Id of the workflow which scheduled this activity, leave empty to target a standalone activity + WorkflowId string + // For a workflow activity - the run ID of the workflow which scheduled this activity. + // For a standalone activity - the run ID of the activity. + RunId string + // Id of the activity to fail + ActivityId string + // Detailed failure information + Failure *v15.Failure + // The identity of the worker/client + Identity string + // Additional details to be stored as last activity heartbeat + LastHeartbeatDetails *v13.Payloads +} + +func (b0 RespondActivityTaskFailedByIdRequest_builder) Build() *RespondActivityTaskFailedByIdRequest { + m0 := &RespondActivityTaskFailedByIdRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_WorkflowId = b.WorkflowId + x.xxx_hidden_RunId = b.RunId + x.xxx_hidden_ActivityId = b.ActivityId + x.xxx_hidden_Failure = b.Failure + x.xxx_hidden_Identity = b.Identity + x.xxx_hidden_LastHeartbeatDetails = b.LastHeartbeatDetails + return m0 +} + +type RespondActivityTaskFailedByIdResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Failures *[]*v15.Failure `protobuf:"bytes,1,rep,name=failures,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RespondActivityTaskFailedByIdResponse) Reset() { + *x = RespondActivityTaskFailedByIdResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RespondActivityTaskFailedByIdResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RespondActivityTaskFailedByIdResponse) ProtoMessage() {} + +func (x *RespondActivityTaskFailedByIdResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[35] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *RespondActivityTaskFailedByIdResponse) GetFailures() []*v15.Failure { + if x != nil { + if x.xxx_hidden_Failures != nil { + return *x.xxx_hidden_Failures + } + } + return nil +} + +func (x *RespondActivityTaskFailedByIdResponse) SetFailures(v []*v15.Failure) { + x.xxx_hidden_Failures = &v +} + +type RespondActivityTaskFailedByIdResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Server validation failures could include + // last_heartbeat_details payload is too large, request failure is too large + Failures []*v15.Failure +} + +func (b0 RespondActivityTaskFailedByIdResponse_builder) Build() *RespondActivityTaskFailedByIdResponse { + m0 := &RespondActivityTaskFailedByIdResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Failures = &b.Failures + return m0 +} + +type RespondActivityTaskCanceledRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_TaskToken []byte `protobuf:"bytes,1,opt,name=task_token,json=taskToken,proto3"` + xxx_hidden_Details *v13.Payloads `protobuf:"bytes,2,opt,name=details,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,3,opt,name=identity,proto3"` + xxx_hidden_Namespace string `protobuf:"bytes,4,opt,name=namespace,proto3"` + xxx_hidden_WorkerVersion *v13.WorkerVersionStamp `protobuf:"bytes,5,opt,name=worker_version,json=workerVersion,proto3"` + xxx_hidden_Deployment *v18.Deployment `protobuf:"bytes,6,opt,name=deployment,proto3"` + xxx_hidden_DeploymentOptions *v18.WorkerDeploymentOptions `protobuf:"bytes,7,opt,name=deployment_options,json=deploymentOptions,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RespondActivityTaskCanceledRequest) Reset() { + *x = RespondActivityTaskCanceledRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RespondActivityTaskCanceledRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RespondActivityTaskCanceledRequest) ProtoMessage() {} + +func (x *RespondActivityTaskCanceledRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[36] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *RespondActivityTaskCanceledRequest) GetTaskToken() []byte { + if x != nil { + return x.xxx_hidden_TaskToken + } + return nil +} + +func (x *RespondActivityTaskCanceledRequest) GetDetails() *v13.Payloads { + if x != nil { + return x.xxx_hidden_Details + } + return nil +} + +func (x *RespondActivityTaskCanceledRequest) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *RespondActivityTaskCanceledRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondActivityTaskCanceledRequest) GetWorkerVersion() *v13.WorkerVersionStamp { + if x != nil { + return x.xxx_hidden_WorkerVersion + } + return nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondActivityTaskCanceledRequest) GetDeployment() *v18.Deployment { + if x != nil { + return x.xxx_hidden_Deployment + } + return nil +} + +func (x *RespondActivityTaskCanceledRequest) GetDeploymentOptions() *v18.WorkerDeploymentOptions { + if x != nil { + return x.xxx_hidden_DeploymentOptions + } + return nil +} + +func (x *RespondActivityTaskCanceledRequest) SetTaskToken(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_TaskToken = v +} + +func (x *RespondActivityTaskCanceledRequest) SetDetails(v *v13.Payloads) { + x.xxx_hidden_Details = v +} + +func (x *RespondActivityTaskCanceledRequest) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *RespondActivityTaskCanceledRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondActivityTaskCanceledRequest) SetWorkerVersion(v *v13.WorkerVersionStamp) { + x.xxx_hidden_WorkerVersion = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondActivityTaskCanceledRequest) SetDeployment(v *v18.Deployment) { + x.xxx_hidden_Deployment = v +} + +func (x *RespondActivityTaskCanceledRequest) SetDeploymentOptions(v *v18.WorkerDeploymentOptions) { + x.xxx_hidden_DeploymentOptions = v +} + +func (x *RespondActivityTaskCanceledRequest) HasDetails() bool { + if x == nil { + return false + } + return x.xxx_hidden_Details != nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondActivityTaskCanceledRequest) HasWorkerVersion() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkerVersion != nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondActivityTaskCanceledRequest) HasDeployment() bool { + if x == nil { + return false + } + return x.xxx_hidden_Deployment != nil +} + +func (x *RespondActivityTaskCanceledRequest) HasDeploymentOptions() bool { + if x == nil { + return false + } + return x.xxx_hidden_DeploymentOptions != nil +} + +func (x *RespondActivityTaskCanceledRequest) ClearDetails() { + x.xxx_hidden_Details = nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondActivityTaskCanceledRequest) ClearWorkerVersion() { + x.xxx_hidden_WorkerVersion = nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *RespondActivityTaskCanceledRequest) ClearDeployment() { + x.xxx_hidden_Deployment = nil +} + +func (x *RespondActivityTaskCanceledRequest) ClearDeploymentOptions() { + x.xxx_hidden_DeploymentOptions = nil +} + +type RespondActivityTaskCanceledRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The task token as received in `PollActivityTaskQueueResponse` + TaskToken []byte + // Serialized additional information to attach to the cancellation + Details *v13.Payloads + // The identity of the worker/client + Identity string + Namespace string + // Version info of the worker who processed this task. This message's `build_id` field should + // always be set by SDKs. Workers opting into versioning will also set the `use_versioning` + // field to true. See message docstrings for more. + // Deprecated. Use `deployment_options` instead. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + WorkerVersion *v13.WorkerVersionStamp + // Deployment info of the worker that completed this task. Must be present if user has set + // `WorkerDeploymentOptions` regardless of versioning being enabled or not. + // Deprecated. Replaced with `deployment_options`. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + Deployment *v18.Deployment + // Worker deployment options that user has set in the worker. + DeploymentOptions *v18.WorkerDeploymentOptions +} + +func (b0 RespondActivityTaskCanceledRequest_builder) Build() *RespondActivityTaskCanceledRequest { + m0 := &RespondActivityTaskCanceledRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_TaskToken = b.TaskToken + x.xxx_hidden_Details = b.Details + x.xxx_hidden_Identity = b.Identity + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_WorkerVersion = b.WorkerVersion + x.xxx_hidden_Deployment = b.Deployment + x.xxx_hidden_DeploymentOptions = b.DeploymentOptions + return m0 +} + +type RespondActivityTaskCanceledResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RespondActivityTaskCanceledResponse) Reset() { + *x = RespondActivityTaskCanceledResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[37] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RespondActivityTaskCanceledResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RespondActivityTaskCanceledResponse) ProtoMessage() {} + +func (x *RespondActivityTaskCanceledResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[37] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type RespondActivityTaskCanceledResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 RespondActivityTaskCanceledResponse_builder) Build() *RespondActivityTaskCanceledResponse { + m0 := &RespondActivityTaskCanceledResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type RespondActivityTaskCanceledByIdRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_WorkflowId string `protobuf:"bytes,2,opt,name=workflow_id,json=workflowId,proto3"` + xxx_hidden_RunId string `protobuf:"bytes,3,opt,name=run_id,json=runId,proto3"` + xxx_hidden_ActivityId string `protobuf:"bytes,4,opt,name=activity_id,json=activityId,proto3"` + xxx_hidden_Details *v13.Payloads `protobuf:"bytes,5,opt,name=details,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,6,opt,name=identity,proto3"` + xxx_hidden_DeploymentOptions *v18.WorkerDeploymentOptions `protobuf:"bytes,7,opt,name=deployment_options,json=deploymentOptions,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RespondActivityTaskCanceledByIdRequest) Reset() { + *x = RespondActivityTaskCanceledByIdRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[38] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RespondActivityTaskCanceledByIdRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RespondActivityTaskCanceledByIdRequest) ProtoMessage() {} + +func (x *RespondActivityTaskCanceledByIdRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[38] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *RespondActivityTaskCanceledByIdRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *RespondActivityTaskCanceledByIdRequest) GetWorkflowId() string { + if x != nil { + return x.xxx_hidden_WorkflowId + } + return "" +} + +func (x *RespondActivityTaskCanceledByIdRequest) GetRunId() string { + if x != nil { + return x.xxx_hidden_RunId + } + return "" +} + +func (x *RespondActivityTaskCanceledByIdRequest) GetActivityId() string { + if x != nil { + return x.xxx_hidden_ActivityId + } + return "" +} + +func (x *RespondActivityTaskCanceledByIdRequest) GetDetails() *v13.Payloads { + if x != nil { + return x.xxx_hidden_Details + } + return nil +} + +func (x *RespondActivityTaskCanceledByIdRequest) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *RespondActivityTaskCanceledByIdRequest) GetDeploymentOptions() *v18.WorkerDeploymentOptions { + if x != nil { + return x.xxx_hidden_DeploymentOptions + } + return nil +} + +func (x *RespondActivityTaskCanceledByIdRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *RespondActivityTaskCanceledByIdRequest) SetWorkflowId(v string) { + x.xxx_hidden_WorkflowId = v +} + +func (x *RespondActivityTaskCanceledByIdRequest) SetRunId(v string) { + x.xxx_hidden_RunId = v +} + +func (x *RespondActivityTaskCanceledByIdRequest) SetActivityId(v string) { + x.xxx_hidden_ActivityId = v +} + +func (x *RespondActivityTaskCanceledByIdRequest) SetDetails(v *v13.Payloads) { + x.xxx_hidden_Details = v +} + +func (x *RespondActivityTaskCanceledByIdRequest) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *RespondActivityTaskCanceledByIdRequest) SetDeploymentOptions(v *v18.WorkerDeploymentOptions) { + x.xxx_hidden_DeploymentOptions = v +} + +func (x *RespondActivityTaskCanceledByIdRequest) HasDetails() bool { + if x == nil { + return false + } + return x.xxx_hidden_Details != nil +} + +func (x *RespondActivityTaskCanceledByIdRequest) HasDeploymentOptions() bool { + if x == nil { + return false + } + return x.xxx_hidden_DeploymentOptions != nil +} + +func (x *RespondActivityTaskCanceledByIdRequest) ClearDetails() { + x.xxx_hidden_Details = nil +} + +func (x *RespondActivityTaskCanceledByIdRequest) ClearDeploymentOptions() { + x.xxx_hidden_DeploymentOptions = nil +} + +type RespondActivityTaskCanceledByIdRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Namespace of the workflow which scheduled this activity + Namespace string + // Id of the workflow which scheduled this activity, leave empty to target a standalone activity + WorkflowId string + // For a workflow activity - the run ID of the workflow which scheduled this activity. + // For a standalone activity - the run ID of the activity. + RunId string + // Id of the activity to confirm is cancelled + ActivityId string + // Serialized additional information to attach to the cancellation + Details *v13.Payloads + // The identity of the worker/client + Identity string + // Worker deployment options that user has set in the worker. + DeploymentOptions *v18.WorkerDeploymentOptions +} + +func (b0 RespondActivityTaskCanceledByIdRequest_builder) Build() *RespondActivityTaskCanceledByIdRequest { + m0 := &RespondActivityTaskCanceledByIdRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_WorkflowId = b.WorkflowId + x.xxx_hidden_RunId = b.RunId + x.xxx_hidden_ActivityId = b.ActivityId + x.xxx_hidden_Details = b.Details + x.xxx_hidden_Identity = b.Identity + x.xxx_hidden_DeploymentOptions = b.DeploymentOptions + return m0 +} + +type RespondActivityTaskCanceledByIdResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RespondActivityTaskCanceledByIdResponse) Reset() { + *x = RespondActivityTaskCanceledByIdResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[39] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RespondActivityTaskCanceledByIdResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RespondActivityTaskCanceledByIdResponse) ProtoMessage() {} + +func (x *RespondActivityTaskCanceledByIdResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[39] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type RespondActivityTaskCanceledByIdResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 RespondActivityTaskCanceledByIdResponse_builder) Build() *RespondActivityTaskCanceledByIdResponse { + m0 := &RespondActivityTaskCanceledByIdResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type RequestCancelWorkflowExecutionRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_WorkflowExecution *v13.WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,3,opt,name=identity,proto3"` + xxx_hidden_RequestId string `protobuf:"bytes,4,opt,name=request_id,json=requestId,proto3"` + xxx_hidden_FirstExecutionRunId string `protobuf:"bytes,5,opt,name=first_execution_run_id,json=firstExecutionRunId,proto3"` + xxx_hidden_Reason string `protobuf:"bytes,6,opt,name=reason,proto3"` + xxx_hidden_Links *[]*v13.Link `protobuf:"bytes,7,rep,name=links,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RequestCancelWorkflowExecutionRequest) Reset() { + *x = RequestCancelWorkflowExecutionRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[40] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RequestCancelWorkflowExecutionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RequestCancelWorkflowExecutionRequest) ProtoMessage() {} + +func (x *RequestCancelWorkflowExecutionRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[40] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *RequestCancelWorkflowExecutionRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *RequestCancelWorkflowExecutionRequest) GetWorkflowExecution() *v13.WorkflowExecution { + if x != nil { + return x.xxx_hidden_WorkflowExecution + } + return nil +} + +func (x *RequestCancelWorkflowExecutionRequest) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *RequestCancelWorkflowExecutionRequest) GetRequestId() string { + if x != nil { + return x.xxx_hidden_RequestId + } + return "" +} + +func (x *RequestCancelWorkflowExecutionRequest) GetFirstExecutionRunId() string { + if x != nil { + return x.xxx_hidden_FirstExecutionRunId + } + return "" +} + +func (x *RequestCancelWorkflowExecutionRequest) GetReason() string { + if x != nil { + return x.xxx_hidden_Reason + } + return "" +} + +func (x *RequestCancelWorkflowExecutionRequest) GetLinks() []*v13.Link { + if x != nil { + if x.xxx_hidden_Links != nil { + return *x.xxx_hidden_Links + } + } + return nil +} + +func (x *RequestCancelWorkflowExecutionRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *RequestCancelWorkflowExecutionRequest) SetWorkflowExecution(v *v13.WorkflowExecution) { + x.xxx_hidden_WorkflowExecution = v +} + +func (x *RequestCancelWorkflowExecutionRequest) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *RequestCancelWorkflowExecutionRequest) SetRequestId(v string) { + x.xxx_hidden_RequestId = v +} + +func (x *RequestCancelWorkflowExecutionRequest) SetFirstExecutionRunId(v string) { + x.xxx_hidden_FirstExecutionRunId = v +} + +func (x *RequestCancelWorkflowExecutionRequest) SetReason(v string) { + x.xxx_hidden_Reason = v +} + +func (x *RequestCancelWorkflowExecutionRequest) SetLinks(v []*v13.Link) { + x.xxx_hidden_Links = &v +} + +func (x *RequestCancelWorkflowExecutionRequest) HasWorkflowExecution() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowExecution != nil +} + +func (x *RequestCancelWorkflowExecutionRequest) ClearWorkflowExecution() { + x.xxx_hidden_WorkflowExecution = nil +} + +type RequestCancelWorkflowExecutionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + WorkflowExecution *v13.WorkflowExecution + // The identity of the worker/client + Identity string + // Used to de-dupe cancellation requests + RequestId string + // If set, this call will error if the most recent (if no run id is set on + // `workflow_execution`), or specified (if it is) workflow execution is not part of the same + // execution chain as this id. + FirstExecutionRunId string + // Reason for requesting the cancellation + Reason string + // Links to be associated with the WorkflowExecutionCanceled event. + Links []*v13.Link +} + +func (b0 RequestCancelWorkflowExecutionRequest_builder) Build() *RequestCancelWorkflowExecutionRequest { + m0 := &RequestCancelWorkflowExecutionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_WorkflowExecution = b.WorkflowExecution + x.xxx_hidden_Identity = b.Identity + x.xxx_hidden_RequestId = b.RequestId + x.xxx_hidden_FirstExecutionRunId = b.FirstExecutionRunId + x.xxx_hidden_Reason = b.Reason + x.xxx_hidden_Links = &b.Links + return m0 +} + +type RequestCancelWorkflowExecutionResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RequestCancelWorkflowExecutionResponse) Reset() { + *x = RequestCancelWorkflowExecutionResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[41] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RequestCancelWorkflowExecutionResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RequestCancelWorkflowExecutionResponse) ProtoMessage() {} + +func (x *RequestCancelWorkflowExecutionResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[41] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type RequestCancelWorkflowExecutionResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 RequestCancelWorkflowExecutionResponse_builder) Build() *RequestCancelWorkflowExecutionResponse { + m0 := &RequestCancelWorkflowExecutionResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +// Keep the parameters in sync with: +// - temporal.api.batch.v1.BatchOperationSignal. +// - temporal.api.workflow.v1.PostResetOperation.SignalWorkflow. +type SignalWorkflowExecutionRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_WorkflowExecution *v13.WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3"` + xxx_hidden_SignalName string `protobuf:"bytes,3,opt,name=signal_name,json=signalName,proto3"` + xxx_hidden_Input *v13.Payloads `protobuf:"bytes,4,opt,name=input,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,5,opt,name=identity,proto3"` + xxx_hidden_RequestId string `protobuf:"bytes,6,opt,name=request_id,json=requestId,proto3"` + xxx_hidden_Control string `protobuf:"bytes,7,opt,name=control,proto3"` + xxx_hidden_Header *v13.Header `protobuf:"bytes,8,opt,name=header,proto3"` + xxx_hidden_Links *[]*v13.Link `protobuf:"bytes,10,rep,name=links,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SignalWorkflowExecutionRequest) Reset() { + *x = SignalWorkflowExecutionRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[42] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SignalWorkflowExecutionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SignalWorkflowExecutionRequest) ProtoMessage() {} + +func (x *SignalWorkflowExecutionRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[42] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *SignalWorkflowExecutionRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *SignalWorkflowExecutionRequest) GetWorkflowExecution() *v13.WorkflowExecution { + if x != nil { + return x.xxx_hidden_WorkflowExecution + } + return nil +} + +func (x *SignalWorkflowExecutionRequest) GetSignalName() string { + if x != nil { + return x.xxx_hidden_SignalName + } + return "" +} + +func (x *SignalWorkflowExecutionRequest) GetInput() *v13.Payloads { + if x != nil { + return x.xxx_hidden_Input + } + return nil +} + +func (x *SignalWorkflowExecutionRequest) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *SignalWorkflowExecutionRequest) GetRequestId() string { + if x != nil { + return x.xxx_hidden_RequestId + } + return "" +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *SignalWorkflowExecutionRequest) GetControl() string { + if x != nil { + return x.xxx_hidden_Control + } + return "" +} + +func (x *SignalWorkflowExecutionRequest) GetHeader() *v13.Header { + if x != nil { + return x.xxx_hidden_Header + } + return nil +} + +func (x *SignalWorkflowExecutionRequest) GetLinks() []*v13.Link { + if x != nil { + if x.xxx_hidden_Links != nil { + return *x.xxx_hidden_Links + } + } + return nil +} + +func (x *SignalWorkflowExecutionRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *SignalWorkflowExecutionRequest) SetWorkflowExecution(v *v13.WorkflowExecution) { + x.xxx_hidden_WorkflowExecution = v +} + +func (x *SignalWorkflowExecutionRequest) SetSignalName(v string) { + x.xxx_hidden_SignalName = v +} + +func (x *SignalWorkflowExecutionRequest) SetInput(v *v13.Payloads) { + x.xxx_hidden_Input = v +} + +func (x *SignalWorkflowExecutionRequest) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *SignalWorkflowExecutionRequest) SetRequestId(v string) { + x.xxx_hidden_RequestId = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *SignalWorkflowExecutionRequest) SetControl(v string) { + x.xxx_hidden_Control = v +} + +func (x *SignalWorkflowExecutionRequest) SetHeader(v *v13.Header) { + x.xxx_hidden_Header = v +} + +func (x *SignalWorkflowExecutionRequest) SetLinks(v []*v13.Link) { + x.xxx_hidden_Links = &v +} + +func (x *SignalWorkflowExecutionRequest) HasWorkflowExecution() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowExecution != nil +} + +func (x *SignalWorkflowExecutionRequest) HasInput() bool { + if x == nil { + return false + } + return x.xxx_hidden_Input != nil +} + +func (x *SignalWorkflowExecutionRequest) HasHeader() bool { + if x == nil { + return false + } + return x.xxx_hidden_Header != nil +} + +func (x *SignalWorkflowExecutionRequest) ClearWorkflowExecution() { + x.xxx_hidden_WorkflowExecution = nil +} + +func (x *SignalWorkflowExecutionRequest) ClearInput() { + x.xxx_hidden_Input = nil +} + +func (x *SignalWorkflowExecutionRequest) ClearHeader() { + x.xxx_hidden_Header = nil +} + +type SignalWorkflowExecutionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + WorkflowExecution *v13.WorkflowExecution + // The workflow author-defined name of the signal to send to the workflow + SignalName string + // Serialized value(s) to provide with the signal + Input *v13.Payloads + // The identity of the worker/client + Identity string + // Used to de-dupe sent signals + RequestId string + // Deprecated. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + Control string + // Headers that are passed with the signal to the processing workflow. + // These can include things like auth or tracing tokens. + Header *v13.Header + // Links to be associated with the WorkflowExecutionSignaled event. + Links []*v13.Link +} + +func (b0 SignalWorkflowExecutionRequest_builder) Build() *SignalWorkflowExecutionRequest { + m0 := &SignalWorkflowExecutionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_WorkflowExecution = b.WorkflowExecution + x.xxx_hidden_SignalName = b.SignalName + x.xxx_hidden_Input = b.Input + x.xxx_hidden_Identity = b.Identity + x.xxx_hidden_RequestId = b.RequestId + x.xxx_hidden_Control = b.Control + x.xxx_hidden_Header = b.Header + x.xxx_hidden_Links = &b.Links + return m0 +} + +type SignalWorkflowExecutionResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SignalWorkflowExecutionResponse) Reset() { + *x = SignalWorkflowExecutionResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[43] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SignalWorkflowExecutionResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SignalWorkflowExecutionResponse) ProtoMessage() {} + +func (x *SignalWorkflowExecutionResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[43] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type SignalWorkflowExecutionResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 SignalWorkflowExecutionResponse_builder) Build() *SignalWorkflowExecutionResponse { + m0 := &SignalWorkflowExecutionResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type SignalWithStartWorkflowExecutionRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_WorkflowId string `protobuf:"bytes,2,opt,name=workflow_id,json=workflowId,proto3"` + xxx_hidden_WorkflowType *v13.WorkflowType `protobuf:"bytes,3,opt,name=workflow_type,json=workflowType,proto3"` + xxx_hidden_TaskQueue *v14.TaskQueue `protobuf:"bytes,4,opt,name=task_queue,json=taskQueue,proto3"` + xxx_hidden_Input *v13.Payloads `protobuf:"bytes,5,opt,name=input,proto3"` + xxx_hidden_WorkflowExecutionTimeout *durationpb.Duration `protobuf:"bytes,6,opt,name=workflow_execution_timeout,json=workflowExecutionTimeout,proto3"` + xxx_hidden_WorkflowRunTimeout *durationpb.Duration `protobuf:"bytes,7,opt,name=workflow_run_timeout,json=workflowRunTimeout,proto3"` + xxx_hidden_WorkflowTaskTimeout *durationpb.Duration `protobuf:"bytes,8,opt,name=workflow_task_timeout,json=workflowTaskTimeout,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,9,opt,name=identity,proto3"` + xxx_hidden_RequestId string `protobuf:"bytes,10,opt,name=request_id,json=requestId,proto3"` + xxx_hidden_WorkflowIdReusePolicy v11.WorkflowIdReusePolicy `protobuf:"varint,11,opt,name=workflow_id_reuse_policy,json=workflowIdReusePolicy,proto3,enum=temporal.api.enums.v1.WorkflowIdReusePolicy"` + xxx_hidden_WorkflowIdConflictPolicy v11.WorkflowIdConflictPolicy `protobuf:"varint,22,opt,name=workflow_id_conflict_policy,json=workflowIdConflictPolicy,proto3,enum=temporal.api.enums.v1.WorkflowIdConflictPolicy"` + xxx_hidden_SignalName string `protobuf:"bytes,12,opt,name=signal_name,json=signalName,proto3"` + xxx_hidden_SignalInput *v13.Payloads `protobuf:"bytes,13,opt,name=signal_input,json=signalInput,proto3"` + xxx_hidden_Control string `protobuf:"bytes,14,opt,name=control,proto3"` + xxx_hidden_RetryPolicy *v13.RetryPolicy `protobuf:"bytes,15,opt,name=retry_policy,json=retryPolicy,proto3"` + xxx_hidden_CronSchedule string `protobuf:"bytes,16,opt,name=cron_schedule,json=cronSchedule,proto3"` + xxx_hidden_Memo *v13.Memo `protobuf:"bytes,17,opt,name=memo,proto3"` + xxx_hidden_SearchAttributes *v13.SearchAttributes `protobuf:"bytes,18,opt,name=search_attributes,json=searchAttributes,proto3"` + xxx_hidden_Header *v13.Header `protobuf:"bytes,19,opt,name=header,proto3"` + xxx_hidden_WorkflowStartDelay *durationpb.Duration `protobuf:"bytes,20,opt,name=workflow_start_delay,json=workflowStartDelay,proto3"` + xxx_hidden_UserMetadata *v16.UserMetadata `protobuf:"bytes,23,opt,name=user_metadata,json=userMetadata,proto3"` + xxx_hidden_Links *[]*v13.Link `protobuf:"bytes,24,rep,name=links,proto3"` + xxx_hidden_VersioningOverride *v17.VersioningOverride `protobuf:"bytes,25,opt,name=versioning_override,json=versioningOverride,proto3"` + xxx_hidden_Priority *v13.Priority `protobuf:"bytes,26,opt,name=priority,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SignalWithStartWorkflowExecutionRequest) Reset() { + *x = SignalWithStartWorkflowExecutionRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[44] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SignalWithStartWorkflowExecutionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SignalWithStartWorkflowExecutionRequest) ProtoMessage() {} + +func (x *SignalWithStartWorkflowExecutionRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[44] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *SignalWithStartWorkflowExecutionRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *SignalWithStartWorkflowExecutionRequest) GetWorkflowId() string { + if x != nil { + return x.xxx_hidden_WorkflowId + } + return "" +} + +func (x *SignalWithStartWorkflowExecutionRequest) GetWorkflowType() *v13.WorkflowType { + if x != nil { + return x.xxx_hidden_WorkflowType + } + return nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) GetTaskQueue() *v14.TaskQueue { + if x != nil { + return x.xxx_hidden_TaskQueue + } + return nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) GetInput() *v13.Payloads { + if x != nil { + return x.xxx_hidden_Input + } + return nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) GetWorkflowExecutionTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_WorkflowExecutionTimeout + } + return nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) GetWorkflowRunTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_WorkflowRunTimeout + } + return nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) GetWorkflowTaskTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_WorkflowTaskTimeout + } + return nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *SignalWithStartWorkflowExecutionRequest) GetRequestId() string { + if x != nil { + return x.xxx_hidden_RequestId + } + return "" +} + +func (x *SignalWithStartWorkflowExecutionRequest) GetWorkflowIdReusePolicy() v11.WorkflowIdReusePolicy { + if x != nil { + return x.xxx_hidden_WorkflowIdReusePolicy + } + return v11.WorkflowIdReusePolicy(0) +} + +func (x *SignalWithStartWorkflowExecutionRequest) GetWorkflowIdConflictPolicy() v11.WorkflowIdConflictPolicy { + if x != nil { + return x.xxx_hidden_WorkflowIdConflictPolicy + } + return v11.WorkflowIdConflictPolicy(0) +} + +func (x *SignalWithStartWorkflowExecutionRequest) GetSignalName() string { + if x != nil { + return x.xxx_hidden_SignalName + } + return "" +} + +func (x *SignalWithStartWorkflowExecutionRequest) GetSignalInput() *v13.Payloads { + if x != nil { + return x.xxx_hidden_SignalInput + } + return nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *SignalWithStartWorkflowExecutionRequest) GetControl() string { + if x != nil { + return x.xxx_hidden_Control + } + return "" +} + +func (x *SignalWithStartWorkflowExecutionRequest) GetRetryPolicy() *v13.RetryPolicy { + if x != nil { + return x.xxx_hidden_RetryPolicy + } + return nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) GetCronSchedule() string { + if x != nil { + return x.xxx_hidden_CronSchedule + } + return "" +} + +func (x *SignalWithStartWorkflowExecutionRequest) GetMemo() *v13.Memo { + if x != nil { + return x.xxx_hidden_Memo + } + return nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) GetSearchAttributes() *v13.SearchAttributes { + if x != nil { + return x.xxx_hidden_SearchAttributes + } + return nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) GetHeader() *v13.Header { + if x != nil { + return x.xxx_hidden_Header + } + return nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) GetWorkflowStartDelay() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_WorkflowStartDelay + } + return nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) GetUserMetadata() *v16.UserMetadata { + if x != nil { + return x.xxx_hidden_UserMetadata + } + return nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) GetLinks() []*v13.Link { + if x != nil { + if x.xxx_hidden_Links != nil { + return *x.xxx_hidden_Links + } + } + return nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) GetVersioningOverride() *v17.VersioningOverride { + if x != nil { + return x.xxx_hidden_VersioningOverride + } + return nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) GetPriority() *v13.Priority { + if x != nil { + return x.xxx_hidden_Priority + } + return nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *SignalWithStartWorkflowExecutionRequest) SetWorkflowId(v string) { + x.xxx_hidden_WorkflowId = v +} + +func (x *SignalWithStartWorkflowExecutionRequest) SetWorkflowType(v *v13.WorkflowType) { + x.xxx_hidden_WorkflowType = v +} + +func (x *SignalWithStartWorkflowExecutionRequest) SetTaskQueue(v *v14.TaskQueue) { + x.xxx_hidden_TaskQueue = v +} + +func (x *SignalWithStartWorkflowExecutionRequest) SetInput(v *v13.Payloads) { + x.xxx_hidden_Input = v +} + +func (x *SignalWithStartWorkflowExecutionRequest) SetWorkflowExecutionTimeout(v *durationpb.Duration) { + x.xxx_hidden_WorkflowExecutionTimeout = v +} + +func (x *SignalWithStartWorkflowExecutionRequest) SetWorkflowRunTimeout(v *durationpb.Duration) { + x.xxx_hidden_WorkflowRunTimeout = v +} + +func (x *SignalWithStartWorkflowExecutionRequest) SetWorkflowTaskTimeout(v *durationpb.Duration) { + x.xxx_hidden_WorkflowTaskTimeout = v +} + +func (x *SignalWithStartWorkflowExecutionRequest) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *SignalWithStartWorkflowExecutionRequest) SetRequestId(v string) { + x.xxx_hidden_RequestId = v +} + +func (x *SignalWithStartWorkflowExecutionRequest) SetWorkflowIdReusePolicy(v v11.WorkflowIdReusePolicy) { + x.xxx_hidden_WorkflowIdReusePolicy = v +} + +func (x *SignalWithStartWorkflowExecutionRequest) SetWorkflowIdConflictPolicy(v v11.WorkflowIdConflictPolicy) { + x.xxx_hidden_WorkflowIdConflictPolicy = v +} + +func (x *SignalWithStartWorkflowExecutionRequest) SetSignalName(v string) { + x.xxx_hidden_SignalName = v +} + +func (x *SignalWithStartWorkflowExecutionRequest) SetSignalInput(v *v13.Payloads) { + x.xxx_hidden_SignalInput = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *SignalWithStartWorkflowExecutionRequest) SetControl(v string) { + x.xxx_hidden_Control = v +} + +func (x *SignalWithStartWorkflowExecutionRequest) SetRetryPolicy(v *v13.RetryPolicy) { + x.xxx_hidden_RetryPolicy = v +} + +func (x *SignalWithStartWorkflowExecutionRequest) SetCronSchedule(v string) { + x.xxx_hidden_CronSchedule = v +} + +func (x *SignalWithStartWorkflowExecutionRequest) SetMemo(v *v13.Memo) { + x.xxx_hidden_Memo = v +} + +func (x *SignalWithStartWorkflowExecutionRequest) SetSearchAttributes(v *v13.SearchAttributes) { + x.xxx_hidden_SearchAttributes = v +} + +func (x *SignalWithStartWorkflowExecutionRequest) SetHeader(v *v13.Header) { + x.xxx_hidden_Header = v +} + +func (x *SignalWithStartWorkflowExecutionRequest) SetWorkflowStartDelay(v *durationpb.Duration) { + x.xxx_hidden_WorkflowStartDelay = v +} + +func (x *SignalWithStartWorkflowExecutionRequest) SetUserMetadata(v *v16.UserMetadata) { + x.xxx_hidden_UserMetadata = v +} + +func (x *SignalWithStartWorkflowExecutionRequest) SetLinks(v []*v13.Link) { + x.xxx_hidden_Links = &v +} + +func (x *SignalWithStartWorkflowExecutionRequest) SetVersioningOverride(v *v17.VersioningOverride) { + x.xxx_hidden_VersioningOverride = v +} + +func (x *SignalWithStartWorkflowExecutionRequest) SetPriority(v *v13.Priority) { + x.xxx_hidden_Priority = v +} + +func (x *SignalWithStartWorkflowExecutionRequest) HasWorkflowType() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowType != nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) HasTaskQueue() bool { + if x == nil { + return false + } + return x.xxx_hidden_TaskQueue != nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) HasInput() bool { + if x == nil { + return false + } + return x.xxx_hidden_Input != nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) HasWorkflowExecutionTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowExecutionTimeout != nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) HasWorkflowRunTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowRunTimeout != nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) HasWorkflowTaskTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowTaskTimeout != nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) HasSignalInput() bool { + if x == nil { + return false + } + return x.xxx_hidden_SignalInput != nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) HasRetryPolicy() bool { + if x == nil { + return false + } + return x.xxx_hidden_RetryPolicy != nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) HasMemo() bool { + if x == nil { + return false + } + return x.xxx_hidden_Memo != nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) HasSearchAttributes() bool { + if x == nil { + return false + } + return x.xxx_hidden_SearchAttributes != nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) HasHeader() bool { + if x == nil { + return false + } + return x.xxx_hidden_Header != nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) HasWorkflowStartDelay() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowStartDelay != nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) HasUserMetadata() bool { + if x == nil { + return false + } + return x.xxx_hidden_UserMetadata != nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) HasVersioningOverride() bool { + if x == nil { + return false + } + return x.xxx_hidden_VersioningOverride != nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) HasPriority() bool { + if x == nil { + return false + } + return x.xxx_hidden_Priority != nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) ClearWorkflowType() { + x.xxx_hidden_WorkflowType = nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) ClearTaskQueue() { + x.xxx_hidden_TaskQueue = nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) ClearInput() { + x.xxx_hidden_Input = nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) ClearWorkflowExecutionTimeout() { + x.xxx_hidden_WorkflowExecutionTimeout = nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) ClearWorkflowRunTimeout() { + x.xxx_hidden_WorkflowRunTimeout = nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) ClearWorkflowTaskTimeout() { + x.xxx_hidden_WorkflowTaskTimeout = nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) ClearSignalInput() { + x.xxx_hidden_SignalInput = nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) ClearRetryPolicy() { + x.xxx_hidden_RetryPolicy = nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) ClearMemo() { + x.xxx_hidden_Memo = nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) ClearSearchAttributes() { + x.xxx_hidden_SearchAttributes = nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) ClearHeader() { + x.xxx_hidden_Header = nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) ClearWorkflowStartDelay() { + x.xxx_hidden_WorkflowStartDelay = nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) ClearUserMetadata() { + x.xxx_hidden_UserMetadata = nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) ClearVersioningOverride() { + x.xxx_hidden_VersioningOverride = nil +} + +func (x *SignalWithStartWorkflowExecutionRequest) ClearPriority() { + x.xxx_hidden_Priority = nil +} + +type SignalWithStartWorkflowExecutionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + WorkflowId string + WorkflowType *v13.WorkflowType + // The task queue to start this workflow on, if it will be started + TaskQueue *v14.TaskQueue + // Serialized arguments to the workflow. These are passed as arguments to the workflow function. + Input *v13.Payloads + // Total workflow execution timeout including retries and continue as new + WorkflowExecutionTimeout *durationpb.Duration + // Timeout of a single workflow run + WorkflowRunTimeout *durationpb.Duration + // Timeout of a single workflow task + WorkflowTaskTimeout *durationpb.Duration + // The identity of the worker/client + Identity string + // Used to de-dupe signal w/ start requests + RequestId string + // Defines whether to allow re-using the workflow id from a previously *closed* workflow. + // The default policy is WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE. + // + // See `workflow_id_reuse_policy` for handling a workflow id duplication with a *running* workflow. + WorkflowIdReusePolicy v11.WorkflowIdReusePolicy + // Defines how to resolve a workflow id conflict with a *running* workflow. + // The default policy is WORKFLOW_ID_CONFLICT_POLICY_USE_EXISTING. + // Note that WORKFLOW_ID_CONFLICT_POLICY_FAIL is an invalid option. + // + // See `workflow_id_reuse_policy` for handling a workflow id duplication with a *closed* workflow. + WorkflowIdConflictPolicy v11.WorkflowIdConflictPolicy + // The workflow author-defined name of the signal to send to the workflow + SignalName string + // Serialized value(s) to provide with the signal + SignalInput *v13.Payloads + // Deprecated. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + Control string + // Retry policy for the workflow + RetryPolicy *v13.RetryPolicy + // See https://docs.temporal.io/docs/content/what-is-a-temporal-cron-job/ + CronSchedule string + Memo *v13.Memo + SearchAttributes *v13.SearchAttributes + Header *v13.Header + // Time to wait before dispatching the first workflow task. Cannot be used with `cron_schedule`. + // Note that the signal will be delivered with the first workflow task. If the workflow gets + // another SignalWithStartWorkflow before the delay a workflow task will be dispatched immediately + // and the rest of the delay period will be ignored, even if that request also had a delay. + // Signal via SignalWorkflowExecution will not unblock the workflow. + WorkflowStartDelay *durationpb.Duration + // Metadata on the workflow if it is started. This is carried over to the WorkflowExecutionInfo + // for use by user interfaces to display the fixed as-of-start summary and details of the + // workflow. + UserMetadata *v16.UserMetadata + // Links to be associated with the WorkflowExecutionStarted and WorkflowExecutionSignaled events. + Links []*v13.Link + // If set, takes precedence over the Versioning Behavior sent by the SDK on Workflow Task completion. + // To unset the override after the workflow is running, use UpdateWorkflowExecutionOptions. + VersioningOverride *v17.VersioningOverride + // Priority metadata + Priority *v13.Priority +} + +func (b0 SignalWithStartWorkflowExecutionRequest_builder) Build() *SignalWithStartWorkflowExecutionRequest { + m0 := &SignalWithStartWorkflowExecutionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_WorkflowId = b.WorkflowId + x.xxx_hidden_WorkflowType = b.WorkflowType + x.xxx_hidden_TaskQueue = b.TaskQueue + x.xxx_hidden_Input = b.Input + x.xxx_hidden_WorkflowExecutionTimeout = b.WorkflowExecutionTimeout + x.xxx_hidden_WorkflowRunTimeout = b.WorkflowRunTimeout + x.xxx_hidden_WorkflowTaskTimeout = b.WorkflowTaskTimeout + x.xxx_hidden_Identity = b.Identity + x.xxx_hidden_RequestId = b.RequestId + x.xxx_hidden_WorkflowIdReusePolicy = b.WorkflowIdReusePolicy + x.xxx_hidden_WorkflowIdConflictPolicy = b.WorkflowIdConflictPolicy + x.xxx_hidden_SignalName = b.SignalName + x.xxx_hidden_SignalInput = b.SignalInput + x.xxx_hidden_Control = b.Control + x.xxx_hidden_RetryPolicy = b.RetryPolicy + x.xxx_hidden_CronSchedule = b.CronSchedule + x.xxx_hidden_Memo = b.Memo + x.xxx_hidden_SearchAttributes = b.SearchAttributes + x.xxx_hidden_Header = b.Header + x.xxx_hidden_WorkflowStartDelay = b.WorkflowStartDelay + x.xxx_hidden_UserMetadata = b.UserMetadata + x.xxx_hidden_Links = &b.Links + x.xxx_hidden_VersioningOverride = b.VersioningOverride + x.xxx_hidden_Priority = b.Priority + return m0 +} + +type SignalWithStartWorkflowExecutionResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RunId string `protobuf:"bytes,1,opt,name=run_id,json=runId,proto3"` + xxx_hidden_Started bool `protobuf:"varint,2,opt,name=started,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SignalWithStartWorkflowExecutionResponse) Reset() { + *x = SignalWithStartWorkflowExecutionResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[45] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SignalWithStartWorkflowExecutionResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SignalWithStartWorkflowExecutionResponse) ProtoMessage() {} + +func (x *SignalWithStartWorkflowExecutionResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[45] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *SignalWithStartWorkflowExecutionResponse) GetRunId() string { + if x != nil { + return x.xxx_hidden_RunId + } + return "" +} + +func (x *SignalWithStartWorkflowExecutionResponse) GetStarted() bool { + if x != nil { + return x.xxx_hidden_Started + } + return false +} + +func (x *SignalWithStartWorkflowExecutionResponse) SetRunId(v string) { + x.xxx_hidden_RunId = v +} + +func (x *SignalWithStartWorkflowExecutionResponse) SetStarted(v bool) { + x.xxx_hidden_Started = v +} + +type SignalWithStartWorkflowExecutionResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The run id of the workflow that was started - or just signaled, if it was already running. + RunId string + // If true, a new workflow was started. + Started bool +} + +func (b0 SignalWithStartWorkflowExecutionResponse_builder) Build() *SignalWithStartWorkflowExecutionResponse { + m0 := &SignalWithStartWorkflowExecutionResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RunId = b.RunId + x.xxx_hidden_Started = b.Started + return m0 +} + +type ResetWorkflowExecutionRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_WorkflowExecution *v13.WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3"` + xxx_hidden_Reason string `protobuf:"bytes,3,opt,name=reason,proto3"` + xxx_hidden_WorkflowTaskFinishEventId int64 `protobuf:"varint,4,opt,name=workflow_task_finish_event_id,json=workflowTaskFinishEventId,proto3"` + xxx_hidden_RequestId string `protobuf:"bytes,5,opt,name=request_id,json=requestId,proto3"` + xxx_hidden_ResetReapplyType v11.ResetReapplyType `protobuf:"varint,6,opt,name=reset_reapply_type,json=resetReapplyType,proto3,enum=temporal.api.enums.v1.ResetReapplyType"` + xxx_hidden_ResetReapplyExcludeTypes []v11.ResetReapplyExcludeType `protobuf:"varint,7,rep,packed,name=reset_reapply_exclude_types,json=resetReapplyExcludeTypes,proto3,enum=temporal.api.enums.v1.ResetReapplyExcludeType"` + xxx_hidden_PostResetOperations *[]*v17.PostResetOperation `protobuf:"bytes,8,rep,name=post_reset_operations,json=postResetOperations,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,9,opt,name=identity,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ResetWorkflowExecutionRequest) Reset() { + *x = ResetWorkflowExecutionRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[46] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ResetWorkflowExecutionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResetWorkflowExecutionRequest) ProtoMessage() {} + +func (x *ResetWorkflowExecutionRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[46] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ResetWorkflowExecutionRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *ResetWorkflowExecutionRequest) GetWorkflowExecution() *v13.WorkflowExecution { + if x != nil { + return x.xxx_hidden_WorkflowExecution + } + return nil +} + +func (x *ResetWorkflowExecutionRequest) GetReason() string { + if x != nil { + return x.xxx_hidden_Reason + } + return "" +} + +func (x *ResetWorkflowExecutionRequest) GetWorkflowTaskFinishEventId() int64 { + if x != nil { + return x.xxx_hidden_WorkflowTaskFinishEventId + } + return 0 +} + +func (x *ResetWorkflowExecutionRequest) GetRequestId() string { + if x != nil { + return x.xxx_hidden_RequestId + } + return "" +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *ResetWorkflowExecutionRequest) GetResetReapplyType() v11.ResetReapplyType { + if x != nil { + return x.xxx_hidden_ResetReapplyType + } + return v11.ResetReapplyType(0) +} + +func (x *ResetWorkflowExecutionRequest) GetResetReapplyExcludeTypes() []v11.ResetReapplyExcludeType { + if x != nil { + return x.xxx_hidden_ResetReapplyExcludeTypes + } + return nil +} + +func (x *ResetWorkflowExecutionRequest) GetPostResetOperations() []*v17.PostResetOperation { + if x != nil { + if x.xxx_hidden_PostResetOperations != nil { + return *x.xxx_hidden_PostResetOperations + } + } + return nil +} + +func (x *ResetWorkflowExecutionRequest) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *ResetWorkflowExecutionRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *ResetWorkflowExecutionRequest) SetWorkflowExecution(v *v13.WorkflowExecution) { + x.xxx_hidden_WorkflowExecution = v +} + +func (x *ResetWorkflowExecutionRequest) SetReason(v string) { + x.xxx_hidden_Reason = v +} + +func (x *ResetWorkflowExecutionRequest) SetWorkflowTaskFinishEventId(v int64) { + x.xxx_hidden_WorkflowTaskFinishEventId = v +} + +func (x *ResetWorkflowExecutionRequest) SetRequestId(v string) { + x.xxx_hidden_RequestId = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *ResetWorkflowExecutionRequest) SetResetReapplyType(v v11.ResetReapplyType) { + x.xxx_hidden_ResetReapplyType = v +} + +func (x *ResetWorkflowExecutionRequest) SetResetReapplyExcludeTypes(v []v11.ResetReapplyExcludeType) { + x.xxx_hidden_ResetReapplyExcludeTypes = v +} + +func (x *ResetWorkflowExecutionRequest) SetPostResetOperations(v []*v17.PostResetOperation) { + x.xxx_hidden_PostResetOperations = &v +} + +func (x *ResetWorkflowExecutionRequest) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *ResetWorkflowExecutionRequest) HasWorkflowExecution() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowExecution != nil +} + +func (x *ResetWorkflowExecutionRequest) ClearWorkflowExecution() { + x.xxx_hidden_WorkflowExecution = nil +} + +type ResetWorkflowExecutionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + // The workflow to reset. If this contains a run ID then the workflow will be reset back to the + // provided event ID in that run. Otherwise it will be reset to the provided event ID in the + // current run. In all cases the current run will be terminated and a new run started. + WorkflowExecution *v13.WorkflowExecution + Reason string + // The id of a `WORKFLOW_TASK_COMPLETED`,`WORKFLOW_TASK_TIMED_OUT`, `WORKFLOW_TASK_FAILED`, or + // `WORKFLOW_TASK_STARTED` event to reset to. + WorkflowTaskFinishEventId int64 + // Used to de-dupe reset requests + RequestId string + // Deprecated. Use `options`. + // Default: RESET_REAPPLY_TYPE_SIGNAL + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + ResetReapplyType v11.ResetReapplyType + // Event types not to be reapplied + ResetReapplyExcludeTypes []v11.ResetReapplyExcludeType + // Operations to perform after the workflow has been reset. These operations will be applied + // to the *new* run of the workflow execution in the order they are provided. + // All operations are applied to the workflow before the first new workflow task is generated + PostResetOperations []*v17.PostResetOperation + // The identity of the worker/client + Identity string +} + +func (b0 ResetWorkflowExecutionRequest_builder) Build() *ResetWorkflowExecutionRequest { + m0 := &ResetWorkflowExecutionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_WorkflowExecution = b.WorkflowExecution + x.xxx_hidden_Reason = b.Reason + x.xxx_hidden_WorkflowTaskFinishEventId = b.WorkflowTaskFinishEventId + x.xxx_hidden_RequestId = b.RequestId + x.xxx_hidden_ResetReapplyType = b.ResetReapplyType + x.xxx_hidden_ResetReapplyExcludeTypes = b.ResetReapplyExcludeTypes + x.xxx_hidden_PostResetOperations = &b.PostResetOperations + x.xxx_hidden_Identity = b.Identity + return m0 +} + +type ResetWorkflowExecutionResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RunId string `protobuf:"bytes,1,opt,name=run_id,json=runId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ResetWorkflowExecutionResponse) Reset() { + *x = ResetWorkflowExecutionResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[47] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ResetWorkflowExecutionResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResetWorkflowExecutionResponse) ProtoMessage() {} + +func (x *ResetWorkflowExecutionResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[47] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ResetWorkflowExecutionResponse) GetRunId() string { + if x != nil { + return x.xxx_hidden_RunId + } + return "" +} + +func (x *ResetWorkflowExecutionResponse) SetRunId(v string) { + x.xxx_hidden_RunId = v +} + +type ResetWorkflowExecutionResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + RunId string +} + +func (b0 ResetWorkflowExecutionResponse_builder) Build() *ResetWorkflowExecutionResponse { + m0 := &ResetWorkflowExecutionResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RunId = b.RunId + return m0 +} + +type TerminateWorkflowExecutionRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_WorkflowExecution *v13.WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3"` + xxx_hidden_Reason string `protobuf:"bytes,3,opt,name=reason,proto3"` + xxx_hidden_Details *v13.Payloads `protobuf:"bytes,4,opt,name=details,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,5,opt,name=identity,proto3"` + xxx_hidden_FirstExecutionRunId string `protobuf:"bytes,6,opt,name=first_execution_run_id,json=firstExecutionRunId,proto3"` + xxx_hidden_Links *[]*v13.Link `protobuf:"bytes,7,rep,name=links,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TerminateWorkflowExecutionRequest) Reset() { + *x = TerminateWorkflowExecutionRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[48] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TerminateWorkflowExecutionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TerminateWorkflowExecutionRequest) ProtoMessage() {} + +func (x *TerminateWorkflowExecutionRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[48] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *TerminateWorkflowExecutionRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *TerminateWorkflowExecutionRequest) GetWorkflowExecution() *v13.WorkflowExecution { + if x != nil { + return x.xxx_hidden_WorkflowExecution + } + return nil +} + +func (x *TerminateWorkflowExecutionRequest) GetReason() string { + if x != nil { + return x.xxx_hidden_Reason + } + return "" +} + +func (x *TerminateWorkflowExecutionRequest) GetDetails() *v13.Payloads { + if x != nil { + return x.xxx_hidden_Details + } + return nil +} + +func (x *TerminateWorkflowExecutionRequest) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *TerminateWorkflowExecutionRequest) GetFirstExecutionRunId() string { + if x != nil { + return x.xxx_hidden_FirstExecutionRunId + } + return "" +} + +func (x *TerminateWorkflowExecutionRequest) GetLinks() []*v13.Link { + if x != nil { + if x.xxx_hidden_Links != nil { + return *x.xxx_hidden_Links + } + } + return nil +} + +func (x *TerminateWorkflowExecutionRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *TerminateWorkflowExecutionRequest) SetWorkflowExecution(v *v13.WorkflowExecution) { + x.xxx_hidden_WorkflowExecution = v +} + +func (x *TerminateWorkflowExecutionRequest) SetReason(v string) { + x.xxx_hidden_Reason = v +} + +func (x *TerminateWorkflowExecutionRequest) SetDetails(v *v13.Payloads) { + x.xxx_hidden_Details = v +} + +func (x *TerminateWorkflowExecutionRequest) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *TerminateWorkflowExecutionRequest) SetFirstExecutionRunId(v string) { + x.xxx_hidden_FirstExecutionRunId = v +} + +func (x *TerminateWorkflowExecutionRequest) SetLinks(v []*v13.Link) { + x.xxx_hidden_Links = &v +} + +func (x *TerminateWorkflowExecutionRequest) HasWorkflowExecution() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowExecution != nil +} + +func (x *TerminateWorkflowExecutionRequest) HasDetails() bool { + if x == nil { + return false + } + return x.xxx_hidden_Details != nil +} + +func (x *TerminateWorkflowExecutionRequest) ClearWorkflowExecution() { + x.xxx_hidden_WorkflowExecution = nil +} + +func (x *TerminateWorkflowExecutionRequest) ClearDetails() { + x.xxx_hidden_Details = nil +} + +type TerminateWorkflowExecutionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + WorkflowExecution *v13.WorkflowExecution + Reason string + // Serialized additional information to attach to the termination event + Details *v13.Payloads + // The identity of the worker/client + Identity string + // If set, this call will error if the most recent (if no run id is set on + // `workflow_execution`), or specified (if it is) workflow execution is not part of the same + // execution chain as this id. + FirstExecutionRunId string + // Links to be associated with the WorkflowExecutionTerminated event. + Links []*v13.Link +} + +func (b0 TerminateWorkflowExecutionRequest_builder) Build() *TerminateWorkflowExecutionRequest { + m0 := &TerminateWorkflowExecutionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_WorkflowExecution = b.WorkflowExecution + x.xxx_hidden_Reason = b.Reason + x.xxx_hidden_Details = b.Details + x.xxx_hidden_Identity = b.Identity + x.xxx_hidden_FirstExecutionRunId = b.FirstExecutionRunId + x.xxx_hidden_Links = &b.Links + return m0 +} + +type TerminateWorkflowExecutionResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TerminateWorkflowExecutionResponse) Reset() { + *x = TerminateWorkflowExecutionResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[49] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TerminateWorkflowExecutionResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TerminateWorkflowExecutionResponse) ProtoMessage() {} + +func (x *TerminateWorkflowExecutionResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[49] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type TerminateWorkflowExecutionResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 TerminateWorkflowExecutionResponse_builder) Build() *TerminateWorkflowExecutionResponse { + m0 := &TerminateWorkflowExecutionResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type DeleteWorkflowExecutionRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_WorkflowExecution *v13.WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteWorkflowExecutionRequest) Reset() { + *x = DeleteWorkflowExecutionRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[50] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteWorkflowExecutionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteWorkflowExecutionRequest) ProtoMessage() {} + +func (x *DeleteWorkflowExecutionRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[50] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DeleteWorkflowExecutionRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *DeleteWorkflowExecutionRequest) GetWorkflowExecution() *v13.WorkflowExecution { + if x != nil { + return x.xxx_hidden_WorkflowExecution + } + return nil +} + +func (x *DeleteWorkflowExecutionRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *DeleteWorkflowExecutionRequest) SetWorkflowExecution(v *v13.WorkflowExecution) { + x.xxx_hidden_WorkflowExecution = v +} + +func (x *DeleteWorkflowExecutionRequest) HasWorkflowExecution() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowExecution != nil +} + +func (x *DeleteWorkflowExecutionRequest) ClearWorkflowExecution() { + x.xxx_hidden_WorkflowExecution = nil +} + +type DeleteWorkflowExecutionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + // Workflow Execution to delete. If run_id is not specified, the latest one is used. + WorkflowExecution *v13.WorkflowExecution +} + +func (b0 DeleteWorkflowExecutionRequest_builder) Build() *DeleteWorkflowExecutionRequest { + m0 := &DeleteWorkflowExecutionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_WorkflowExecution = b.WorkflowExecution + return m0 +} + +type DeleteWorkflowExecutionResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteWorkflowExecutionResponse) Reset() { + *x = DeleteWorkflowExecutionResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[51] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteWorkflowExecutionResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteWorkflowExecutionResponse) ProtoMessage() {} + +func (x *DeleteWorkflowExecutionResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[51] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type DeleteWorkflowExecutionResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 DeleteWorkflowExecutionResponse_builder) Build() *DeleteWorkflowExecutionResponse { + m0 := &DeleteWorkflowExecutionResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type ListOpenWorkflowExecutionsRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_MaximumPageSize int32 `protobuf:"varint,2,opt,name=maximum_page_size,json=maximumPageSize,proto3"` + xxx_hidden_NextPageToken []byte `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3"` + xxx_hidden_StartTimeFilter *v113.StartTimeFilter `protobuf:"bytes,4,opt,name=start_time_filter,json=startTimeFilter,proto3"` + xxx_hidden_Filters isListOpenWorkflowExecutionsRequest_Filters `protobuf_oneof:"filters"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListOpenWorkflowExecutionsRequest) Reset() { + *x = ListOpenWorkflowExecutionsRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[52] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListOpenWorkflowExecutionsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListOpenWorkflowExecutionsRequest) ProtoMessage() {} + +func (x *ListOpenWorkflowExecutionsRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[52] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListOpenWorkflowExecutionsRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *ListOpenWorkflowExecutionsRequest) GetMaximumPageSize() int32 { + if x != nil { + return x.xxx_hidden_MaximumPageSize + } + return 0 +} + +func (x *ListOpenWorkflowExecutionsRequest) GetNextPageToken() []byte { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return nil +} + +func (x *ListOpenWorkflowExecutionsRequest) GetStartTimeFilter() *v113.StartTimeFilter { + if x != nil { + return x.xxx_hidden_StartTimeFilter + } + return nil +} + +func (x *ListOpenWorkflowExecutionsRequest) GetExecutionFilter() *v113.WorkflowExecutionFilter { + if x != nil { + if x, ok := x.xxx_hidden_Filters.(*listOpenWorkflowExecutionsRequest_ExecutionFilter); ok { + return x.ExecutionFilter + } + } + return nil +} + +func (x *ListOpenWorkflowExecutionsRequest) GetTypeFilter() *v113.WorkflowTypeFilter { + if x != nil { + if x, ok := x.xxx_hidden_Filters.(*listOpenWorkflowExecutionsRequest_TypeFilter); ok { + return x.TypeFilter + } + } + return nil +} + +func (x *ListOpenWorkflowExecutionsRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *ListOpenWorkflowExecutionsRequest) SetMaximumPageSize(v int32) { + x.xxx_hidden_MaximumPageSize = v +} + +func (x *ListOpenWorkflowExecutionsRequest) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_NextPageToken = v +} + +func (x *ListOpenWorkflowExecutionsRequest) SetStartTimeFilter(v *v113.StartTimeFilter) { + x.xxx_hidden_StartTimeFilter = v +} + +func (x *ListOpenWorkflowExecutionsRequest) SetExecutionFilter(v *v113.WorkflowExecutionFilter) { + if v == nil { + x.xxx_hidden_Filters = nil + return + } + x.xxx_hidden_Filters = &listOpenWorkflowExecutionsRequest_ExecutionFilter{v} +} + +func (x *ListOpenWorkflowExecutionsRequest) SetTypeFilter(v *v113.WorkflowTypeFilter) { + if v == nil { + x.xxx_hidden_Filters = nil + return + } + x.xxx_hidden_Filters = &listOpenWorkflowExecutionsRequest_TypeFilter{v} +} + +func (x *ListOpenWorkflowExecutionsRequest) HasStartTimeFilter() bool { + if x == nil { + return false + } + return x.xxx_hidden_StartTimeFilter != nil +} + +func (x *ListOpenWorkflowExecutionsRequest) HasFilters() bool { + if x == nil { + return false + } + return x.xxx_hidden_Filters != nil +} + +func (x *ListOpenWorkflowExecutionsRequest) HasExecutionFilter() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Filters.(*listOpenWorkflowExecutionsRequest_ExecutionFilter) + return ok +} + +func (x *ListOpenWorkflowExecutionsRequest) HasTypeFilter() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Filters.(*listOpenWorkflowExecutionsRequest_TypeFilter) + return ok +} + +func (x *ListOpenWorkflowExecutionsRequest) ClearStartTimeFilter() { + x.xxx_hidden_StartTimeFilter = nil +} + +func (x *ListOpenWorkflowExecutionsRequest) ClearFilters() { + x.xxx_hidden_Filters = nil +} + +func (x *ListOpenWorkflowExecutionsRequest) ClearExecutionFilter() { + if _, ok := x.xxx_hidden_Filters.(*listOpenWorkflowExecutionsRequest_ExecutionFilter); ok { + x.xxx_hidden_Filters = nil + } +} + +func (x *ListOpenWorkflowExecutionsRequest) ClearTypeFilter() { + if _, ok := x.xxx_hidden_Filters.(*listOpenWorkflowExecutionsRequest_TypeFilter); ok { + x.xxx_hidden_Filters = nil + } +} + +const ListOpenWorkflowExecutionsRequest_Filters_not_set_case case_ListOpenWorkflowExecutionsRequest_Filters = 0 +const ListOpenWorkflowExecutionsRequest_ExecutionFilter_case case_ListOpenWorkflowExecutionsRequest_Filters = 5 +const ListOpenWorkflowExecutionsRequest_TypeFilter_case case_ListOpenWorkflowExecutionsRequest_Filters = 6 + +func (x *ListOpenWorkflowExecutionsRequest) WhichFilters() case_ListOpenWorkflowExecutionsRequest_Filters { + if x == nil { + return ListOpenWorkflowExecutionsRequest_Filters_not_set_case + } + switch x.xxx_hidden_Filters.(type) { + case *listOpenWorkflowExecutionsRequest_ExecutionFilter: + return ListOpenWorkflowExecutionsRequest_ExecutionFilter_case + case *listOpenWorkflowExecutionsRequest_TypeFilter: + return ListOpenWorkflowExecutionsRequest_TypeFilter_case + default: + return ListOpenWorkflowExecutionsRequest_Filters_not_set_case + } +} + +type ListOpenWorkflowExecutionsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + MaximumPageSize int32 + NextPageToken []byte + StartTimeFilter *v113.StartTimeFilter + // Fields of oneof xxx_hidden_Filters: + ExecutionFilter *v113.WorkflowExecutionFilter + TypeFilter *v113.WorkflowTypeFilter + // -- end of xxx_hidden_Filters +} + +func (b0 ListOpenWorkflowExecutionsRequest_builder) Build() *ListOpenWorkflowExecutionsRequest { + m0 := &ListOpenWorkflowExecutionsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_MaximumPageSize = b.MaximumPageSize + x.xxx_hidden_NextPageToken = b.NextPageToken + x.xxx_hidden_StartTimeFilter = b.StartTimeFilter + if b.ExecutionFilter != nil { + x.xxx_hidden_Filters = &listOpenWorkflowExecutionsRequest_ExecutionFilter{b.ExecutionFilter} + } + if b.TypeFilter != nil { + x.xxx_hidden_Filters = &listOpenWorkflowExecutionsRequest_TypeFilter{b.TypeFilter} + } + return m0 +} + +type case_ListOpenWorkflowExecutionsRequest_Filters protoreflect.FieldNumber + +func (x case_ListOpenWorkflowExecutionsRequest_Filters) String() string { + switch x { + case ListOpenWorkflowExecutionsRequest_Filters_not_set_case: + return "ListOpenWorkflowExecutionsRequestFiltersNotSetCase" + case ListOpenWorkflowExecutionsRequest_ExecutionFilter_case: + return "ListOpenWorkflowExecutionsRequestExecutionFilterCase" + case ListOpenWorkflowExecutionsRequest_TypeFilter_case: + return "ListOpenWorkflowExecutionsRequestTypeFilterCase" + default: + return strconv.Itoa(int(x)) + } + +} + +type isListOpenWorkflowExecutionsRequest_Filters interface { + isListOpenWorkflowExecutionsRequest_Filters() +} + +type listOpenWorkflowExecutionsRequest_ExecutionFilter struct { + ExecutionFilter *v113.WorkflowExecutionFilter `protobuf:"bytes,5,opt,name=execution_filter,json=executionFilter,proto3,oneof"` +} + +type listOpenWorkflowExecutionsRequest_TypeFilter struct { + TypeFilter *v113.WorkflowTypeFilter `protobuf:"bytes,6,opt,name=type_filter,json=typeFilter,proto3,oneof"` +} + +func (*listOpenWorkflowExecutionsRequest_ExecutionFilter) isListOpenWorkflowExecutionsRequest_Filters() { +} + +func (*listOpenWorkflowExecutionsRequest_TypeFilter) isListOpenWorkflowExecutionsRequest_Filters() {} + +type ListOpenWorkflowExecutionsResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Executions *[]*v17.WorkflowExecutionInfo `protobuf:"bytes,1,rep,name=executions,proto3"` + xxx_hidden_NextPageToken []byte `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListOpenWorkflowExecutionsResponse) Reset() { + *x = ListOpenWorkflowExecutionsResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[53] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListOpenWorkflowExecutionsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListOpenWorkflowExecutionsResponse) ProtoMessage() {} + +func (x *ListOpenWorkflowExecutionsResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[53] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListOpenWorkflowExecutionsResponse) GetExecutions() []*v17.WorkflowExecutionInfo { + if x != nil { + if x.xxx_hidden_Executions != nil { + return *x.xxx_hidden_Executions + } + } + return nil +} + +func (x *ListOpenWorkflowExecutionsResponse) GetNextPageToken() []byte { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return nil +} + +func (x *ListOpenWorkflowExecutionsResponse) SetExecutions(v []*v17.WorkflowExecutionInfo) { + x.xxx_hidden_Executions = &v +} + +func (x *ListOpenWorkflowExecutionsResponse) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_NextPageToken = v +} + +type ListOpenWorkflowExecutionsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Executions []*v17.WorkflowExecutionInfo + NextPageToken []byte +} + +func (b0 ListOpenWorkflowExecutionsResponse_builder) Build() *ListOpenWorkflowExecutionsResponse { + m0 := &ListOpenWorkflowExecutionsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Executions = &b.Executions + x.xxx_hidden_NextPageToken = b.NextPageToken + return m0 +} + +type ListClosedWorkflowExecutionsRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_MaximumPageSize int32 `protobuf:"varint,2,opt,name=maximum_page_size,json=maximumPageSize,proto3"` + xxx_hidden_NextPageToken []byte `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3"` + xxx_hidden_StartTimeFilter *v113.StartTimeFilter `protobuf:"bytes,4,opt,name=start_time_filter,json=startTimeFilter,proto3"` + xxx_hidden_Filters isListClosedWorkflowExecutionsRequest_Filters `protobuf_oneof:"filters"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListClosedWorkflowExecutionsRequest) Reset() { + *x = ListClosedWorkflowExecutionsRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[54] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListClosedWorkflowExecutionsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListClosedWorkflowExecutionsRequest) ProtoMessage() {} + +func (x *ListClosedWorkflowExecutionsRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[54] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListClosedWorkflowExecutionsRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *ListClosedWorkflowExecutionsRequest) GetMaximumPageSize() int32 { + if x != nil { + return x.xxx_hidden_MaximumPageSize + } + return 0 +} + +func (x *ListClosedWorkflowExecutionsRequest) GetNextPageToken() []byte { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return nil +} + +func (x *ListClosedWorkflowExecutionsRequest) GetStartTimeFilter() *v113.StartTimeFilter { + if x != nil { + return x.xxx_hidden_StartTimeFilter + } + return nil +} + +func (x *ListClosedWorkflowExecutionsRequest) GetExecutionFilter() *v113.WorkflowExecutionFilter { + if x != nil { + if x, ok := x.xxx_hidden_Filters.(*listClosedWorkflowExecutionsRequest_ExecutionFilter); ok { + return x.ExecutionFilter + } + } + return nil +} + +func (x *ListClosedWorkflowExecutionsRequest) GetTypeFilter() *v113.WorkflowTypeFilter { + if x != nil { + if x, ok := x.xxx_hidden_Filters.(*listClosedWorkflowExecutionsRequest_TypeFilter); ok { + return x.TypeFilter + } + } + return nil +} + +func (x *ListClosedWorkflowExecutionsRequest) GetStatusFilter() *v113.StatusFilter { + if x != nil { + if x, ok := x.xxx_hidden_Filters.(*listClosedWorkflowExecutionsRequest_StatusFilter); ok { + return x.StatusFilter + } + } + return nil +} + +func (x *ListClosedWorkflowExecutionsRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *ListClosedWorkflowExecutionsRequest) SetMaximumPageSize(v int32) { + x.xxx_hidden_MaximumPageSize = v +} + +func (x *ListClosedWorkflowExecutionsRequest) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_NextPageToken = v +} + +func (x *ListClosedWorkflowExecutionsRequest) SetStartTimeFilter(v *v113.StartTimeFilter) { + x.xxx_hidden_StartTimeFilter = v +} + +func (x *ListClosedWorkflowExecutionsRequest) SetExecutionFilter(v *v113.WorkflowExecutionFilter) { + if v == nil { + x.xxx_hidden_Filters = nil + return + } + x.xxx_hidden_Filters = &listClosedWorkflowExecutionsRequest_ExecutionFilter{v} +} + +func (x *ListClosedWorkflowExecutionsRequest) SetTypeFilter(v *v113.WorkflowTypeFilter) { + if v == nil { + x.xxx_hidden_Filters = nil + return + } + x.xxx_hidden_Filters = &listClosedWorkflowExecutionsRequest_TypeFilter{v} +} + +func (x *ListClosedWorkflowExecutionsRequest) SetStatusFilter(v *v113.StatusFilter) { + if v == nil { + x.xxx_hidden_Filters = nil + return + } + x.xxx_hidden_Filters = &listClosedWorkflowExecutionsRequest_StatusFilter{v} +} + +func (x *ListClosedWorkflowExecutionsRequest) HasStartTimeFilter() bool { + if x == nil { + return false + } + return x.xxx_hidden_StartTimeFilter != nil +} + +func (x *ListClosedWorkflowExecutionsRequest) HasFilters() bool { + if x == nil { + return false + } + return x.xxx_hidden_Filters != nil +} + +func (x *ListClosedWorkflowExecutionsRequest) HasExecutionFilter() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Filters.(*listClosedWorkflowExecutionsRequest_ExecutionFilter) + return ok +} + +func (x *ListClosedWorkflowExecutionsRequest) HasTypeFilter() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Filters.(*listClosedWorkflowExecutionsRequest_TypeFilter) + return ok +} + +func (x *ListClosedWorkflowExecutionsRequest) HasStatusFilter() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Filters.(*listClosedWorkflowExecutionsRequest_StatusFilter) + return ok +} + +func (x *ListClosedWorkflowExecutionsRequest) ClearStartTimeFilter() { + x.xxx_hidden_StartTimeFilter = nil +} + +func (x *ListClosedWorkflowExecutionsRequest) ClearFilters() { + x.xxx_hidden_Filters = nil +} + +func (x *ListClosedWorkflowExecutionsRequest) ClearExecutionFilter() { + if _, ok := x.xxx_hidden_Filters.(*listClosedWorkflowExecutionsRequest_ExecutionFilter); ok { + x.xxx_hidden_Filters = nil + } +} + +func (x *ListClosedWorkflowExecutionsRequest) ClearTypeFilter() { + if _, ok := x.xxx_hidden_Filters.(*listClosedWorkflowExecutionsRequest_TypeFilter); ok { + x.xxx_hidden_Filters = nil + } +} + +func (x *ListClosedWorkflowExecutionsRequest) ClearStatusFilter() { + if _, ok := x.xxx_hidden_Filters.(*listClosedWorkflowExecutionsRequest_StatusFilter); ok { + x.xxx_hidden_Filters = nil + } +} + +const ListClosedWorkflowExecutionsRequest_Filters_not_set_case case_ListClosedWorkflowExecutionsRequest_Filters = 0 +const ListClosedWorkflowExecutionsRequest_ExecutionFilter_case case_ListClosedWorkflowExecutionsRequest_Filters = 5 +const ListClosedWorkflowExecutionsRequest_TypeFilter_case case_ListClosedWorkflowExecutionsRequest_Filters = 6 +const ListClosedWorkflowExecutionsRequest_StatusFilter_case case_ListClosedWorkflowExecutionsRequest_Filters = 7 + +func (x *ListClosedWorkflowExecutionsRequest) WhichFilters() case_ListClosedWorkflowExecutionsRequest_Filters { + if x == nil { + return ListClosedWorkflowExecutionsRequest_Filters_not_set_case + } + switch x.xxx_hidden_Filters.(type) { + case *listClosedWorkflowExecutionsRequest_ExecutionFilter: + return ListClosedWorkflowExecutionsRequest_ExecutionFilter_case + case *listClosedWorkflowExecutionsRequest_TypeFilter: + return ListClosedWorkflowExecutionsRequest_TypeFilter_case + case *listClosedWorkflowExecutionsRequest_StatusFilter: + return ListClosedWorkflowExecutionsRequest_StatusFilter_case + default: + return ListClosedWorkflowExecutionsRequest_Filters_not_set_case + } +} + +type ListClosedWorkflowExecutionsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + MaximumPageSize int32 + NextPageToken []byte + StartTimeFilter *v113.StartTimeFilter + // Fields of oneof xxx_hidden_Filters: + ExecutionFilter *v113.WorkflowExecutionFilter + TypeFilter *v113.WorkflowTypeFilter + StatusFilter *v113.StatusFilter + // -- end of xxx_hidden_Filters +} + +func (b0 ListClosedWorkflowExecutionsRequest_builder) Build() *ListClosedWorkflowExecutionsRequest { + m0 := &ListClosedWorkflowExecutionsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_MaximumPageSize = b.MaximumPageSize + x.xxx_hidden_NextPageToken = b.NextPageToken + x.xxx_hidden_StartTimeFilter = b.StartTimeFilter + if b.ExecutionFilter != nil { + x.xxx_hidden_Filters = &listClosedWorkflowExecutionsRequest_ExecutionFilter{b.ExecutionFilter} + } + if b.TypeFilter != nil { + x.xxx_hidden_Filters = &listClosedWorkflowExecutionsRequest_TypeFilter{b.TypeFilter} + } + if b.StatusFilter != nil { + x.xxx_hidden_Filters = &listClosedWorkflowExecutionsRequest_StatusFilter{b.StatusFilter} + } + return m0 +} + +type case_ListClosedWorkflowExecutionsRequest_Filters protoreflect.FieldNumber + +func (x case_ListClosedWorkflowExecutionsRequest_Filters) String() string { + switch x { + case ListClosedWorkflowExecutionsRequest_Filters_not_set_case: + return "ListClosedWorkflowExecutionsRequestFiltersNotSetCase" + case ListClosedWorkflowExecutionsRequest_ExecutionFilter_case: + return "ListClosedWorkflowExecutionsRequestExecutionFilterCase" + case ListClosedWorkflowExecutionsRequest_TypeFilter_case: + return "ListClosedWorkflowExecutionsRequestTypeFilterCase" + case ListClosedWorkflowExecutionsRequest_StatusFilter_case: + return "ListClosedWorkflowExecutionsRequestStatusFilterCase" + default: + return strconv.Itoa(int(x)) + } + +} + +type isListClosedWorkflowExecutionsRequest_Filters interface { + isListClosedWorkflowExecutionsRequest_Filters() +} + +type listClosedWorkflowExecutionsRequest_ExecutionFilter struct { + ExecutionFilter *v113.WorkflowExecutionFilter `protobuf:"bytes,5,opt,name=execution_filter,json=executionFilter,proto3,oneof"` +} + +type listClosedWorkflowExecutionsRequest_TypeFilter struct { + TypeFilter *v113.WorkflowTypeFilter `protobuf:"bytes,6,opt,name=type_filter,json=typeFilter,proto3,oneof"` +} + +type listClosedWorkflowExecutionsRequest_StatusFilter struct { + StatusFilter *v113.StatusFilter `protobuf:"bytes,7,opt,name=status_filter,json=statusFilter,proto3,oneof"` +} + +func (*listClosedWorkflowExecutionsRequest_ExecutionFilter) isListClosedWorkflowExecutionsRequest_Filters() { +} + +func (*listClosedWorkflowExecutionsRequest_TypeFilter) isListClosedWorkflowExecutionsRequest_Filters() { +} + +func (*listClosedWorkflowExecutionsRequest_StatusFilter) isListClosedWorkflowExecutionsRequest_Filters() { +} + +type ListClosedWorkflowExecutionsResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Executions *[]*v17.WorkflowExecutionInfo `protobuf:"bytes,1,rep,name=executions,proto3"` + xxx_hidden_NextPageToken []byte `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListClosedWorkflowExecutionsResponse) Reset() { + *x = ListClosedWorkflowExecutionsResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[55] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListClosedWorkflowExecutionsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListClosedWorkflowExecutionsResponse) ProtoMessage() {} + +func (x *ListClosedWorkflowExecutionsResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[55] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListClosedWorkflowExecutionsResponse) GetExecutions() []*v17.WorkflowExecutionInfo { + if x != nil { + if x.xxx_hidden_Executions != nil { + return *x.xxx_hidden_Executions + } + } + return nil +} + +func (x *ListClosedWorkflowExecutionsResponse) GetNextPageToken() []byte { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return nil +} + +func (x *ListClosedWorkflowExecutionsResponse) SetExecutions(v []*v17.WorkflowExecutionInfo) { + x.xxx_hidden_Executions = &v +} + +func (x *ListClosedWorkflowExecutionsResponse) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_NextPageToken = v +} + +type ListClosedWorkflowExecutionsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Executions []*v17.WorkflowExecutionInfo + NextPageToken []byte +} + +func (b0 ListClosedWorkflowExecutionsResponse_builder) Build() *ListClosedWorkflowExecutionsResponse { + m0 := &ListClosedWorkflowExecutionsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Executions = &b.Executions + x.xxx_hidden_NextPageToken = b.NextPageToken + return m0 +} + +type ListWorkflowExecutionsRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3"` + xxx_hidden_NextPageToken []byte `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3"` + xxx_hidden_Query string `protobuf:"bytes,4,opt,name=query,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListWorkflowExecutionsRequest) Reset() { + *x = ListWorkflowExecutionsRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[56] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListWorkflowExecutionsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListWorkflowExecutionsRequest) ProtoMessage() {} + +func (x *ListWorkflowExecutionsRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[56] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListWorkflowExecutionsRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *ListWorkflowExecutionsRequest) GetPageSize() int32 { + if x != nil { + return x.xxx_hidden_PageSize + } + return 0 +} + +func (x *ListWorkflowExecutionsRequest) GetNextPageToken() []byte { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return nil +} + +func (x *ListWorkflowExecutionsRequest) GetQuery() string { + if x != nil { + return x.xxx_hidden_Query + } + return "" +} + +func (x *ListWorkflowExecutionsRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *ListWorkflowExecutionsRequest) SetPageSize(v int32) { + x.xxx_hidden_PageSize = v +} + +func (x *ListWorkflowExecutionsRequest) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_NextPageToken = v +} + +func (x *ListWorkflowExecutionsRequest) SetQuery(v string) { + x.xxx_hidden_Query = v +} + +type ListWorkflowExecutionsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + PageSize int32 + NextPageToken []byte + Query string +} + +func (b0 ListWorkflowExecutionsRequest_builder) Build() *ListWorkflowExecutionsRequest { + m0 := &ListWorkflowExecutionsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_PageSize = b.PageSize + x.xxx_hidden_NextPageToken = b.NextPageToken + x.xxx_hidden_Query = b.Query + return m0 +} + +type ListWorkflowExecutionsResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Executions *[]*v17.WorkflowExecutionInfo `protobuf:"bytes,1,rep,name=executions,proto3"` + xxx_hidden_NextPageToken []byte `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListWorkflowExecutionsResponse) Reset() { + *x = ListWorkflowExecutionsResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[57] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListWorkflowExecutionsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListWorkflowExecutionsResponse) ProtoMessage() {} + +func (x *ListWorkflowExecutionsResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[57] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListWorkflowExecutionsResponse) GetExecutions() []*v17.WorkflowExecutionInfo { + if x != nil { + if x.xxx_hidden_Executions != nil { + return *x.xxx_hidden_Executions + } + } + return nil +} + +func (x *ListWorkflowExecutionsResponse) GetNextPageToken() []byte { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return nil +} + +func (x *ListWorkflowExecutionsResponse) SetExecutions(v []*v17.WorkflowExecutionInfo) { + x.xxx_hidden_Executions = &v +} + +func (x *ListWorkflowExecutionsResponse) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_NextPageToken = v +} + +type ListWorkflowExecutionsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Executions []*v17.WorkflowExecutionInfo + NextPageToken []byte +} + +func (b0 ListWorkflowExecutionsResponse_builder) Build() *ListWorkflowExecutionsResponse { + m0 := &ListWorkflowExecutionsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Executions = &b.Executions + x.xxx_hidden_NextPageToken = b.NextPageToken + return m0 +} + +type ListArchivedWorkflowExecutionsRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3"` + xxx_hidden_NextPageToken []byte `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3"` + xxx_hidden_Query string `protobuf:"bytes,4,opt,name=query,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListArchivedWorkflowExecutionsRequest) Reset() { + *x = ListArchivedWorkflowExecutionsRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[58] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListArchivedWorkflowExecutionsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListArchivedWorkflowExecutionsRequest) ProtoMessage() {} + +func (x *ListArchivedWorkflowExecutionsRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[58] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListArchivedWorkflowExecutionsRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *ListArchivedWorkflowExecutionsRequest) GetPageSize() int32 { + if x != nil { + return x.xxx_hidden_PageSize + } + return 0 +} + +func (x *ListArchivedWorkflowExecutionsRequest) GetNextPageToken() []byte { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return nil +} + +func (x *ListArchivedWorkflowExecutionsRequest) GetQuery() string { + if x != nil { + return x.xxx_hidden_Query + } + return "" +} + +func (x *ListArchivedWorkflowExecutionsRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *ListArchivedWorkflowExecutionsRequest) SetPageSize(v int32) { + x.xxx_hidden_PageSize = v +} + +func (x *ListArchivedWorkflowExecutionsRequest) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_NextPageToken = v +} + +func (x *ListArchivedWorkflowExecutionsRequest) SetQuery(v string) { + x.xxx_hidden_Query = v +} + +type ListArchivedWorkflowExecutionsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + PageSize int32 + NextPageToken []byte + Query string +} + +func (b0 ListArchivedWorkflowExecutionsRequest_builder) Build() *ListArchivedWorkflowExecutionsRequest { + m0 := &ListArchivedWorkflowExecutionsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_PageSize = b.PageSize + x.xxx_hidden_NextPageToken = b.NextPageToken + x.xxx_hidden_Query = b.Query + return m0 +} + +type ListArchivedWorkflowExecutionsResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Executions *[]*v17.WorkflowExecutionInfo `protobuf:"bytes,1,rep,name=executions,proto3"` + xxx_hidden_NextPageToken []byte `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListArchivedWorkflowExecutionsResponse) Reset() { + *x = ListArchivedWorkflowExecutionsResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[59] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListArchivedWorkflowExecutionsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListArchivedWorkflowExecutionsResponse) ProtoMessage() {} + +func (x *ListArchivedWorkflowExecutionsResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[59] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListArchivedWorkflowExecutionsResponse) GetExecutions() []*v17.WorkflowExecutionInfo { + if x != nil { + if x.xxx_hidden_Executions != nil { + return *x.xxx_hidden_Executions + } + } + return nil +} + +func (x *ListArchivedWorkflowExecutionsResponse) GetNextPageToken() []byte { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return nil +} + +func (x *ListArchivedWorkflowExecutionsResponse) SetExecutions(v []*v17.WorkflowExecutionInfo) { + x.xxx_hidden_Executions = &v +} + +func (x *ListArchivedWorkflowExecutionsResponse) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_NextPageToken = v +} + +type ListArchivedWorkflowExecutionsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Executions []*v17.WorkflowExecutionInfo + NextPageToken []byte +} + +func (b0 ListArchivedWorkflowExecutionsResponse_builder) Build() *ListArchivedWorkflowExecutionsResponse { + m0 := &ListArchivedWorkflowExecutionsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Executions = &b.Executions + x.xxx_hidden_NextPageToken = b.NextPageToken + return m0 +} + +// Deprecated: Use with `ListWorkflowExecutions`. +type ScanWorkflowExecutionsRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3"` + xxx_hidden_NextPageToken []byte `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3"` + xxx_hidden_Query string `protobuf:"bytes,4,opt,name=query,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ScanWorkflowExecutionsRequest) Reset() { + *x = ScanWorkflowExecutionsRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[60] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ScanWorkflowExecutionsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ScanWorkflowExecutionsRequest) ProtoMessage() {} + +func (x *ScanWorkflowExecutionsRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[60] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ScanWorkflowExecutionsRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *ScanWorkflowExecutionsRequest) GetPageSize() int32 { + if x != nil { + return x.xxx_hidden_PageSize + } + return 0 +} + +func (x *ScanWorkflowExecutionsRequest) GetNextPageToken() []byte { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return nil +} + +func (x *ScanWorkflowExecutionsRequest) GetQuery() string { + if x != nil { + return x.xxx_hidden_Query + } + return "" +} + +func (x *ScanWorkflowExecutionsRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *ScanWorkflowExecutionsRequest) SetPageSize(v int32) { + x.xxx_hidden_PageSize = v +} + +func (x *ScanWorkflowExecutionsRequest) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_NextPageToken = v +} + +func (x *ScanWorkflowExecutionsRequest) SetQuery(v string) { + x.xxx_hidden_Query = v +} + +type ScanWorkflowExecutionsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + PageSize int32 + NextPageToken []byte + Query string +} + +func (b0 ScanWorkflowExecutionsRequest_builder) Build() *ScanWorkflowExecutionsRequest { + m0 := &ScanWorkflowExecutionsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_PageSize = b.PageSize + x.xxx_hidden_NextPageToken = b.NextPageToken + x.xxx_hidden_Query = b.Query + return m0 +} + +// Deprecated: Use with `ListWorkflowExecutions`. +type ScanWorkflowExecutionsResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Executions *[]*v17.WorkflowExecutionInfo `protobuf:"bytes,1,rep,name=executions,proto3"` + xxx_hidden_NextPageToken []byte `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ScanWorkflowExecutionsResponse) Reset() { + *x = ScanWorkflowExecutionsResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[61] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ScanWorkflowExecutionsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ScanWorkflowExecutionsResponse) ProtoMessage() {} + +func (x *ScanWorkflowExecutionsResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[61] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ScanWorkflowExecutionsResponse) GetExecutions() []*v17.WorkflowExecutionInfo { + if x != nil { + if x.xxx_hidden_Executions != nil { + return *x.xxx_hidden_Executions + } + } + return nil +} + +func (x *ScanWorkflowExecutionsResponse) GetNextPageToken() []byte { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return nil +} + +func (x *ScanWorkflowExecutionsResponse) SetExecutions(v []*v17.WorkflowExecutionInfo) { + x.xxx_hidden_Executions = &v +} + +func (x *ScanWorkflowExecutionsResponse) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_NextPageToken = v +} + +type ScanWorkflowExecutionsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Executions []*v17.WorkflowExecutionInfo + NextPageToken []byte +} + +func (b0 ScanWorkflowExecutionsResponse_builder) Build() *ScanWorkflowExecutionsResponse { + m0 := &ScanWorkflowExecutionsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Executions = &b.Executions + x.xxx_hidden_NextPageToken = b.NextPageToken + return m0 +} + +type CountWorkflowExecutionsRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_Query string `protobuf:"bytes,2,opt,name=query,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CountWorkflowExecutionsRequest) Reset() { + *x = CountWorkflowExecutionsRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[62] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CountWorkflowExecutionsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CountWorkflowExecutionsRequest) ProtoMessage() {} + +func (x *CountWorkflowExecutionsRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[62] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *CountWorkflowExecutionsRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *CountWorkflowExecutionsRequest) GetQuery() string { + if x != nil { + return x.xxx_hidden_Query + } + return "" +} + +func (x *CountWorkflowExecutionsRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *CountWorkflowExecutionsRequest) SetQuery(v string) { + x.xxx_hidden_Query = v +} + +type CountWorkflowExecutionsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + Query string +} + +func (b0 CountWorkflowExecutionsRequest_builder) Build() *CountWorkflowExecutionsRequest { + m0 := &CountWorkflowExecutionsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_Query = b.Query + return m0 +} + +type CountWorkflowExecutionsResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Count int64 `protobuf:"varint,1,opt,name=count,proto3"` + xxx_hidden_Groups *[]*CountWorkflowExecutionsResponse_AggregationGroup `protobuf:"bytes,2,rep,name=groups,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CountWorkflowExecutionsResponse) Reset() { + *x = CountWorkflowExecutionsResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[63] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CountWorkflowExecutionsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CountWorkflowExecutionsResponse) ProtoMessage() {} + +func (x *CountWorkflowExecutionsResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[63] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *CountWorkflowExecutionsResponse) GetCount() int64 { + if x != nil { + return x.xxx_hidden_Count + } + return 0 +} + +func (x *CountWorkflowExecutionsResponse) GetGroups() []*CountWorkflowExecutionsResponse_AggregationGroup { + if x != nil { + if x.xxx_hidden_Groups != nil { + return *x.xxx_hidden_Groups + } + } + return nil +} + +func (x *CountWorkflowExecutionsResponse) SetCount(v int64) { + x.xxx_hidden_Count = v +} + +func (x *CountWorkflowExecutionsResponse) SetGroups(v []*CountWorkflowExecutionsResponse_AggregationGroup) { + x.xxx_hidden_Groups = &v +} + +type CountWorkflowExecutionsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // If `query` is not grouping by any field, the count is an approximate number + // of workflows that matches the query. + // If `query` is grouping by a field, the count is simply the sum of the counts + // of the groups returned in the response. This number can be smaller than the + // total number of workflows matching the query. + Count int64 + // `groups` contains the groups if the request is grouping by a field. + // The list might not be complete, and the counts of each group is approximate. + Groups []*CountWorkflowExecutionsResponse_AggregationGroup +} + +func (b0 CountWorkflowExecutionsResponse_builder) Build() *CountWorkflowExecutionsResponse { + m0 := &CountWorkflowExecutionsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Count = b.Count + x.xxx_hidden_Groups = &b.Groups + return m0 +} + +type GetSearchAttributesRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetSearchAttributesRequest) Reset() { + *x = GetSearchAttributesRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[64] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetSearchAttributesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetSearchAttributesRequest) ProtoMessage() {} + +func (x *GetSearchAttributesRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[64] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type GetSearchAttributesRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 GetSearchAttributesRequest_builder) Build() *GetSearchAttributesRequest { + m0 := &GetSearchAttributesRequest{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type GetSearchAttributesResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Keys map[string]v11.IndexedValueType `protobuf:"bytes,1,rep,name=keys,proto3" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value,enum=temporal.api.enums.v1.IndexedValueType"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetSearchAttributesResponse) Reset() { + *x = GetSearchAttributesResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[65] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetSearchAttributesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetSearchAttributesResponse) ProtoMessage() {} + +func (x *GetSearchAttributesResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[65] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetSearchAttributesResponse) GetKeys() map[string]v11.IndexedValueType { + if x != nil { + return x.xxx_hidden_Keys + } + return nil +} + +func (x *GetSearchAttributesResponse) SetKeys(v map[string]v11.IndexedValueType) { + x.xxx_hidden_Keys = v +} + +type GetSearchAttributesResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Keys map[string]v11.IndexedValueType +} + +func (b0 GetSearchAttributesResponse_builder) Build() *GetSearchAttributesResponse { + m0 := &GetSearchAttributesResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Keys = b.Keys + return m0 +} + +type RespondQueryTaskCompletedRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_TaskToken []byte `protobuf:"bytes,1,opt,name=task_token,json=taskToken,proto3"` + xxx_hidden_CompletedType v11.QueryResultType `protobuf:"varint,2,opt,name=completed_type,json=completedType,proto3,enum=temporal.api.enums.v1.QueryResultType"` + xxx_hidden_QueryResult *v13.Payloads `protobuf:"bytes,3,opt,name=query_result,json=queryResult,proto3"` + xxx_hidden_ErrorMessage string `protobuf:"bytes,4,opt,name=error_message,json=errorMessage,proto3"` + xxx_hidden_Namespace string `protobuf:"bytes,6,opt,name=namespace,proto3"` + xxx_hidden_Failure *v15.Failure `protobuf:"bytes,7,opt,name=failure,proto3"` + xxx_hidden_Cause v11.WorkflowTaskFailedCause `protobuf:"varint,8,opt,name=cause,proto3,enum=temporal.api.enums.v1.WorkflowTaskFailedCause"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RespondQueryTaskCompletedRequest) Reset() { + *x = RespondQueryTaskCompletedRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[66] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RespondQueryTaskCompletedRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RespondQueryTaskCompletedRequest) ProtoMessage() {} + +func (x *RespondQueryTaskCompletedRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[66] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *RespondQueryTaskCompletedRequest) GetTaskToken() []byte { + if x != nil { + return x.xxx_hidden_TaskToken + } + return nil +} + +func (x *RespondQueryTaskCompletedRequest) GetCompletedType() v11.QueryResultType { + if x != nil { + return x.xxx_hidden_CompletedType + } + return v11.QueryResultType(0) +} + +func (x *RespondQueryTaskCompletedRequest) GetQueryResult() *v13.Payloads { + if x != nil { + return x.xxx_hidden_QueryResult + } + return nil +} + +func (x *RespondQueryTaskCompletedRequest) GetErrorMessage() string { + if x != nil { + return x.xxx_hidden_ErrorMessage + } + return "" +} + +func (x *RespondQueryTaskCompletedRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *RespondQueryTaskCompletedRequest) GetFailure() *v15.Failure { + if x != nil { + return x.xxx_hidden_Failure + } + return nil +} + +func (x *RespondQueryTaskCompletedRequest) GetCause() v11.WorkflowTaskFailedCause { + if x != nil { + return x.xxx_hidden_Cause + } + return v11.WorkflowTaskFailedCause(0) +} + +func (x *RespondQueryTaskCompletedRequest) SetTaskToken(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_TaskToken = v +} + +func (x *RespondQueryTaskCompletedRequest) SetCompletedType(v v11.QueryResultType) { + x.xxx_hidden_CompletedType = v +} + +func (x *RespondQueryTaskCompletedRequest) SetQueryResult(v *v13.Payloads) { + x.xxx_hidden_QueryResult = v +} + +func (x *RespondQueryTaskCompletedRequest) SetErrorMessage(v string) { + x.xxx_hidden_ErrorMessage = v +} + +func (x *RespondQueryTaskCompletedRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *RespondQueryTaskCompletedRequest) SetFailure(v *v15.Failure) { + x.xxx_hidden_Failure = v +} + +func (x *RespondQueryTaskCompletedRequest) SetCause(v v11.WorkflowTaskFailedCause) { + x.xxx_hidden_Cause = v +} + +func (x *RespondQueryTaskCompletedRequest) HasQueryResult() bool { + if x == nil { + return false + } + return x.xxx_hidden_QueryResult != nil +} + +func (x *RespondQueryTaskCompletedRequest) HasFailure() bool { + if x == nil { + return false + } + return x.xxx_hidden_Failure != nil +} + +func (x *RespondQueryTaskCompletedRequest) ClearQueryResult() { + x.xxx_hidden_QueryResult = nil +} + +func (x *RespondQueryTaskCompletedRequest) ClearFailure() { + x.xxx_hidden_Failure = nil +} + +type RespondQueryTaskCompletedRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + TaskToken []byte + CompletedType v11.QueryResultType + // The result of the query. + // Mutually exclusive with `error_message` and `failure`. Set when the query succeeds. + QueryResult *v13.Payloads + // A plain error message that must be set if completed_type is QUERY_RESULT_TYPE_FAILED. + // SDKs should also fill in the more complete `failure` field to provide the full context and + // support encryption of failure information. + // `error_message` will be duplicated if the `failure` field is present to support callers + // that pre-date the addition of that field, regardless of whether or not a custom failure + // converter is used. + // Mutually exclusive with `query_result`. Set when the query fails. + ErrorMessage string + Namespace string + // The full reason for this query failure. This field is newer than `error_message` and can be + // encoded by the SDK's failure converter to support E2E encryption of messages and stack + // traces. + // Mutually exclusive with `query_result`. Set when the query fails. + Failure *v15.Failure + // Why did the task fail? It's important to note that many of the variants in this enum cannot + // apply to worker responses. See the type's doc for more. + Cause v11.WorkflowTaskFailedCause +} + +func (b0 RespondQueryTaskCompletedRequest_builder) Build() *RespondQueryTaskCompletedRequest { + m0 := &RespondQueryTaskCompletedRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_TaskToken = b.TaskToken + x.xxx_hidden_CompletedType = b.CompletedType + x.xxx_hidden_QueryResult = b.QueryResult + x.xxx_hidden_ErrorMessage = b.ErrorMessage + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_Failure = b.Failure + x.xxx_hidden_Cause = b.Cause + return m0 +} + +type RespondQueryTaskCompletedResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RespondQueryTaskCompletedResponse) Reset() { + *x = RespondQueryTaskCompletedResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[67] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RespondQueryTaskCompletedResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RespondQueryTaskCompletedResponse) ProtoMessage() {} + +func (x *RespondQueryTaskCompletedResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[67] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type RespondQueryTaskCompletedResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 RespondQueryTaskCompletedResponse_builder) Build() *RespondQueryTaskCompletedResponse { + m0 := &RespondQueryTaskCompletedResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type ResetStickyTaskQueueRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_Execution *v13.WorkflowExecution `protobuf:"bytes,2,opt,name=execution,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ResetStickyTaskQueueRequest) Reset() { + *x = ResetStickyTaskQueueRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[68] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ResetStickyTaskQueueRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResetStickyTaskQueueRequest) ProtoMessage() {} + +func (x *ResetStickyTaskQueueRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[68] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ResetStickyTaskQueueRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *ResetStickyTaskQueueRequest) GetExecution() *v13.WorkflowExecution { + if x != nil { + return x.xxx_hidden_Execution + } + return nil +} + +func (x *ResetStickyTaskQueueRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *ResetStickyTaskQueueRequest) SetExecution(v *v13.WorkflowExecution) { + x.xxx_hidden_Execution = v +} + +func (x *ResetStickyTaskQueueRequest) HasExecution() bool { + if x == nil { + return false + } + return x.xxx_hidden_Execution != nil +} + +func (x *ResetStickyTaskQueueRequest) ClearExecution() { + x.xxx_hidden_Execution = nil +} + +type ResetStickyTaskQueueRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + Execution *v13.WorkflowExecution +} + +func (b0 ResetStickyTaskQueueRequest_builder) Build() *ResetStickyTaskQueueRequest { + m0 := &ResetStickyTaskQueueRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_Execution = b.Execution + return m0 +} + +type ResetStickyTaskQueueResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ResetStickyTaskQueueResponse) Reset() { + *x = ResetStickyTaskQueueResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[69] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ResetStickyTaskQueueResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResetStickyTaskQueueResponse) ProtoMessage() {} + +func (x *ResetStickyTaskQueueResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[69] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type ResetStickyTaskQueueResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 ResetStickyTaskQueueResponse_builder) Build() *ResetStickyTaskQueueResponse { + m0 := &ResetStickyTaskQueueResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type ShutdownWorkerRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_StickyTaskQueue string `protobuf:"bytes,2,opt,name=sticky_task_queue,json=stickyTaskQueue,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,3,opt,name=identity,proto3"` + xxx_hidden_Reason string `protobuf:"bytes,4,opt,name=reason,proto3"` + xxx_hidden_WorkerHeartbeat *v114.WorkerHeartbeat `protobuf:"bytes,5,opt,name=worker_heartbeat,json=workerHeartbeat,proto3"` + xxx_hidden_WorkerInstanceKey string `protobuf:"bytes,6,opt,name=worker_instance_key,json=workerInstanceKey,proto3"` + xxx_hidden_TaskQueue string `protobuf:"bytes,7,opt,name=task_queue,json=taskQueue,proto3"` + xxx_hidden_TaskQueueTypes []v11.TaskQueueType `protobuf:"varint,8,rep,packed,name=task_queue_types,json=taskQueueTypes,proto3,enum=temporal.api.enums.v1.TaskQueueType"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ShutdownWorkerRequest) Reset() { + *x = ShutdownWorkerRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[70] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ShutdownWorkerRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ShutdownWorkerRequest) ProtoMessage() {} + +func (x *ShutdownWorkerRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[70] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ShutdownWorkerRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *ShutdownWorkerRequest) GetStickyTaskQueue() string { + if x != nil { + return x.xxx_hidden_StickyTaskQueue + } + return "" +} + +func (x *ShutdownWorkerRequest) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *ShutdownWorkerRequest) GetReason() string { + if x != nil { + return x.xxx_hidden_Reason + } + return "" +} + +func (x *ShutdownWorkerRequest) GetWorkerHeartbeat() *v114.WorkerHeartbeat { + if x != nil { + return x.xxx_hidden_WorkerHeartbeat + } + return nil +} + +func (x *ShutdownWorkerRequest) GetWorkerInstanceKey() string { + if x != nil { + return x.xxx_hidden_WorkerInstanceKey + } + return "" +} + +func (x *ShutdownWorkerRequest) GetTaskQueue() string { + if x != nil { + return x.xxx_hidden_TaskQueue + } + return "" +} + +func (x *ShutdownWorkerRequest) GetTaskQueueTypes() []v11.TaskQueueType { + if x != nil { + return x.xxx_hidden_TaskQueueTypes + } + return nil +} + +func (x *ShutdownWorkerRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *ShutdownWorkerRequest) SetStickyTaskQueue(v string) { + x.xxx_hidden_StickyTaskQueue = v +} + +func (x *ShutdownWorkerRequest) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *ShutdownWorkerRequest) SetReason(v string) { + x.xxx_hidden_Reason = v +} + +func (x *ShutdownWorkerRequest) SetWorkerHeartbeat(v *v114.WorkerHeartbeat) { + x.xxx_hidden_WorkerHeartbeat = v +} + +func (x *ShutdownWorkerRequest) SetWorkerInstanceKey(v string) { + x.xxx_hidden_WorkerInstanceKey = v +} + +func (x *ShutdownWorkerRequest) SetTaskQueue(v string) { + x.xxx_hidden_TaskQueue = v +} + +func (x *ShutdownWorkerRequest) SetTaskQueueTypes(v []v11.TaskQueueType) { + x.xxx_hidden_TaskQueueTypes = v +} + +func (x *ShutdownWorkerRequest) HasWorkerHeartbeat() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkerHeartbeat != nil +} + +func (x *ShutdownWorkerRequest) ClearWorkerHeartbeat() { + x.xxx_hidden_WorkerHeartbeat = nil +} + +type ShutdownWorkerRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + // sticky_task_queue may not always be populated. We want to ensure all workers + // send a shutdown request to update worker state for heartbeating, as well + // as cancel pending poll calls early, instead of waiting for timeouts. + StickyTaskQueue string + Identity string + Reason string + WorkerHeartbeat *v114.WorkerHeartbeat + // Technically this is also sent in the WorkerHeartbeat, but + // since worker heartbeating can be turned off, this needs + // to be a separate, top-level field. + WorkerInstanceKey string + // Task queue name the worker is polling on. This allows server to cancel + // all outstanding poll RPC calls from SDK. This avoids a race condition that + // can lead to tasks being lost. + TaskQueue string + // Task queue types that help server cancel outstanding poll RPC + // calls from SDK. This avoids a race condition that can lead to tasks being lost. + TaskQueueTypes []v11.TaskQueueType +} + +func (b0 ShutdownWorkerRequest_builder) Build() *ShutdownWorkerRequest { + m0 := &ShutdownWorkerRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_StickyTaskQueue = b.StickyTaskQueue + x.xxx_hidden_Identity = b.Identity + x.xxx_hidden_Reason = b.Reason + x.xxx_hidden_WorkerHeartbeat = b.WorkerHeartbeat + x.xxx_hidden_WorkerInstanceKey = b.WorkerInstanceKey + x.xxx_hidden_TaskQueue = b.TaskQueue + x.xxx_hidden_TaskQueueTypes = b.TaskQueueTypes + return m0 +} + +type ShutdownWorkerResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ShutdownWorkerResponse) Reset() { + *x = ShutdownWorkerResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[71] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ShutdownWorkerResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ShutdownWorkerResponse) ProtoMessage() {} + +func (x *ShutdownWorkerResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[71] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type ShutdownWorkerResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 ShutdownWorkerResponse_builder) Build() *ShutdownWorkerResponse { + m0 := &ShutdownWorkerResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type QueryWorkflowRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_Execution *v13.WorkflowExecution `protobuf:"bytes,2,opt,name=execution,proto3"` + xxx_hidden_Query *v110.WorkflowQuery `protobuf:"bytes,3,opt,name=query,proto3"` + xxx_hidden_QueryRejectCondition v11.QueryRejectCondition `protobuf:"varint,4,opt,name=query_reject_condition,json=queryRejectCondition,proto3,enum=temporal.api.enums.v1.QueryRejectCondition"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *QueryWorkflowRequest) Reset() { + *x = QueryWorkflowRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[72] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *QueryWorkflowRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryWorkflowRequest) ProtoMessage() {} + +func (x *QueryWorkflowRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[72] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *QueryWorkflowRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *QueryWorkflowRequest) GetExecution() *v13.WorkflowExecution { + if x != nil { + return x.xxx_hidden_Execution + } + return nil +} + +func (x *QueryWorkflowRequest) GetQuery() *v110.WorkflowQuery { + if x != nil { + return x.xxx_hidden_Query + } + return nil +} + +func (x *QueryWorkflowRequest) GetQueryRejectCondition() v11.QueryRejectCondition { + if x != nil { + return x.xxx_hidden_QueryRejectCondition + } + return v11.QueryRejectCondition(0) +} + +func (x *QueryWorkflowRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *QueryWorkflowRequest) SetExecution(v *v13.WorkflowExecution) { + x.xxx_hidden_Execution = v +} + +func (x *QueryWorkflowRequest) SetQuery(v *v110.WorkflowQuery) { + x.xxx_hidden_Query = v +} + +func (x *QueryWorkflowRequest) SetQueryRejectCondition(v v11.QueryRejectCondition) { + x.xxx_hidden_QueryRejectCondition = v +} + +func (x *QueryWorkflowRequest) HasExecution() bool { + if x == nil { + return false + } + return x.xxx_hidden_Execution != nil +} + +func (x *QueryWorkflowRequest) HasQuery() bool { + if x == nil { + return false + } + return x.xxx_hidden_Query != nil +} + +func (x *QueryWorkflowRequest) ClearExecution() { + x.xxx_hidden_Execution = nil +} + +func (x *QueryWorkflowRequest) ClearQuery() { + x.xxx_hidden_Query = nil +} + +type QueryWorkflowRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + Execution *v13.WorkflowExecution + Query *v110.WorkflowQuery + // QueryRejectCondition can used to reject the query if workflow state does not satisfy condition. + // Default: QUERY_REJECT_CONDITION_NONE. + QueryRejectCondition v11.QueryRejectCondition +} + +func (b0 QueryWorkflowRequest_builder) Build() *QueryWorkflowRequest { + m0 := &QueryWorkflowRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_Execution = b.Execution + x.xxx_hidden_Query = b.Query + x.xxx_hidden_QueryRejectCondition = b.QueryRejectCondition + return m0 +} + +type QueryWorkflowResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_QueryResult *v13.Payloads `protobuf:"bytes,1,opt,name=query_result,json=queryResult,proto3"` + xxx_hidden_QueryRejected *v110.QueryRejected `protobuf:"bytes,2,opt,name=query_rejected,json=queryRejected,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *QueryWorkflowResponse) Reset() { + *x = QueryWorkflowResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[73] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *QueryWorkflowResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryWorkflowResponse) ProtoMessage() {} + +func (x *QueryWorkflowResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[73] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *QueryWorkflowResponse) GetQueryResult() *v13.Payloads { + if x != nil { + return x.xxx_hidden_QueryResult + } + return nil +} + +func (x *QueryWorkflowResponse) GetQueryRejected() *v110.QueryRejected { + if x != nil { + return x.xxx_hidden_QueryRejected + } + return nil +} + +func (x *QueryWorkflowResponse) SetQueryResult(v *v13.Payloads) { + x.xxx_hidden_QueryResult = v +} + +func (x *QueryWorkflowResponse) SetQueryRejected(v *v110.QueryRejected) { + x.xxx_hidden_QueryRejected = v +} + +func (x *QueryWorkflowResponse) HasQueryResult() bool { + if x == nil { + return false + } + return x.xxx_hidden_QueryResult != nil +} + +func (x *QueryWorkflowResponse) HasQueryRejected() bool { + if x == nil { + return false + } + return x.xxx_hidden_QueryRejected != nil +} + +func (x *QueryWorkflowResponse) ClearQueryResult() { + x.xxx_hidden_QueryResult = nil +} + +func (x *QueryWorkflowResponse) ClearQueryRejected() { + x.xxx_hidden_QueryRejected = nil +} + +type QueryWorkflowResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + QueryResult *v13.Payloads + QueryRejected *v110.QueryRejected +} + +func (b0 QueryWorkflowResponse_builder) Build() *QueryWorkflowResponse { + m0 := &QueryWorkflowResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_QueryResult = b.QueryResult + x.xxx_hidden_QueryRejected = b.QueryRejected + return m0 +} + +type DescribeWorkflowExecutionRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_Execution *v13.WorkflowExecution `protobuf:"bytes,2,opt,name=execution,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DescribeWorkflowExecutionRequest) Reset() { + *x = DescribeWorkflowExecutionRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[74] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DescribeWorkflowExecutionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DescribeWorkflowExecutionRequest) ProtoMessage() {} + +func (x *DescribeWorkflowExecutionRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[74] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DescribeWorkflowExecutionRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *DescribeWorkflowExecutionRequest) GetExecution() *v13.WorkflowExecution { + if x != nil { + return x.xxx_hidden_Execution + } + return nil +} + +func (x *DescribeWorkflowExecutionRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *DescribeWorkflowExecutionRequest) SetExecution(v *v13.WorkflowExecution) { + x.xxx_hidden_Execution = v +} + +func (x *DescribeWorkflowExecutionRequest) HasExecution() bool { + if x == nil { + return false + } + return x.xxx_hidden_Execution != nil +} + +func (x *DescribeWorkflowExecutionRequest) ClearExecution() { + x.xxx_hidden_Execution = nil +} + +type DescribeWorkflowExecutionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + Execution *v13.WorkflowExecution +} + +func (b0 DescribeWorkflowExecutionRequest_builder) Build() *DescribeWorkflowExecutionRequest { + m0 := &DescribeWorkflowExecutionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_Execution = b.Execution + return m0 +} + +type DescribeWorkflowExecutionResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ExecutionConfig *v17.WorkflowExecutionConfig `protobuf:"bytes,1,opt,name=execution_config,json=executionConfig,proto3"` + xxx_hidden_WorkflowExecutionInfo *v17.WorkflowExecutionInfo `protobuf:"bytes,2,opt,name=workflow_execution_info,json=workflowExecutionInfo,proto3"` + xxx_hidden_PendingActivities *[]*v17.PendingActivityInfo `protobuf:"bytes,3,rep,name=pending_activities,json=pendingActivities,proto3"` + xxx_hidden_PendingChildren *[]*v17.PendingChildExecutionInfo `protobuf:"bytes,4,rep,name=pending_children,json=pendingChildren,proto3"` + xxx_hidden_PendingWorkflowTask *v17.PendingWorkflowTaskInfo `protobuf:"bytes,5,opt,name=pending_workflow_task,json=pendingWorkflowTask,proto3"` + xxx_hidden_Callbacks *[]*v17.CallbackInfo `protobuf:"bytes,6,rep,name=callbacks,proto3"` + xxx_hidden_PendingNexusOperations *[]*v17.PendingNexusOperationInfo `protobuf:"bytes,7,rep,name=pending_nexus_operations,json=pendingNexusOperations,proto3"` + xxx_hidden_WorkflowExtendedInfo *v17.WorkflowExecutionExtendedInfo `protobuf:"bytes,8,opt,name=workflow_extended_info,json=workflowExtendedInfo,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DescribeWorkflowExecutionResponse) Reset() { + *x = DescribeWorkflowExecutionResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[75] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DescribeWorkflowExecutionResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DescribeWorkflowExecutionResponse) ProtoMessage() {} + +func (x *DescribeWorkflowExecutionResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[75] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DescribeWorkflowExecutionResponse) GetExecutionConfig() *v17.WorkflowExecutionConfig { + if x != nil { + return x.xxx_hidden_ExecutionConfig + } + return nil +} + +func (x *DescribeWorkflowExecutionResponse) GetWorkflowExecutionInfo() *v17.WorkflowExecutionInfo { + if x != nil { + return x.xxx_hidden_WorkflowExecutionInfo + } + return nil +} + +func (x *DescribeWorkflowExecutionResponse) GetPendingActivities() []*v17.PendingActivityInfo { + if x != nil { + if x.xxx_hidden_PendingActivities != nil { + return *x.xxx_hidden_PendingActivities + } + } + return nil +} + +func (x *DescribeWorkflowExecutionResponse) GetPendingChildren() []*v17.PendingChildExecutionInfo { + if x != nil { + if x.xxx_hidden_PendingChildren != nil { + return *x.xxx_hidden_PendingChildren + } + } + return nil +} + +func (x *DescribeWorkflowExecutionResponse) GetPendingWorkflowTask() *v17.PendingWorkflowTaskInfo { + if x != nil { + return x.xxx_hidden_PendingWorkflowTask + } + return nil +} + +func (x *DescribeWorkflowExecutionResponse) GetCallbacks() []*v17.CallbackInfo { + if x != nil { + if x.xxx_hidden_Callbacks != nil { + return *x.xxx_hidden_Callbacks + } + } + return nil +} + +func (x *DescribeWorkflowExecutionResponse) GetPendingNexusOperations() []*v17.PendingNexusOperationInfo { + if x != nil { + if x.xxx_hidden_PendingNexusOperations != nil { + return *x.xxx_hidden_PendingNexusOperations + } + } + return nil +} + +func (x *DescribeWorkflowExecutionResponse) GetWorkflowExtendedInfo() *v17.WorkflowExecutionExtendedInfo { + if x != nil { + return x.xxx_hidden_WorkflowExtendedInfo + } + return nil +} + +func (x *DescribeWorkflowExecutionResponse) SetExecutionConfig(v *v17.WorkflowExecutionConfig) { + x.xxx_hidden_ExecutionConfig = v +} + +func (x *DescribeWorkflowExecutionResponse) SetWorkflowExecutionInfo(v *v17.WorkflowExecutionInfo) { + x.xxx_hidden_WorkflowExecutionInfo = v +} + +func (x *DescribeWorkflowExecutionResponse) SetPendingActivities(v []*v17.PendingActivityInfo) { + x.xxx_hidden_PendingActivities = &v +} + +func (x *DescribeWorkflowExecutionResponse) SetPendingChildren(v []*v17.PendingChildExecutionInfo) { + x.xxx_hidden_PendingChildren = &v +} + +func (x *DescribeWorkflowExecutionResponse) SetPendingWorkflowTask(v *v17.PendingWorkflowTaskInfo) { + x.xxx_hidden_PendingWorkflowTask = v +} + +func (x *DescribeWorkflowExecutionResponse) SetCallbacks(v []*v17.CallbackInfo) { + x.xxx_hidden_Callbacks = &v +} + +func (x *DescribeWorkflowExecutionResponse) SetPendingNexusOperations(v []*v17.PendingNexusOperationInfo) { + x.xxx_hidden_PendingNexusOperations = &v +} + +func (x *DescribeWorkflowExecutionResponse) SetWorkflowExtendedInfo(v *v17.WorkflowExecutionExtendedInfo) { + x.xxx_hidden_WorkflowExtendedInfo = v +} + +func (x *DescribeWorkflowExecutionResponse) HasExecutionConfig() bool { + if x == nil { + return false + } + return x.xxx_hidden_ExecutionConfig != nil +} + +func (x *DescribeWorkflowExecutionResponse) HasWorkflowExecutionInfo() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowExecutionInfo != nil +} + +func (x *DescribeWorkflowExecutionResponse) HasPendingWorkflowTask() bool { + if x == nil { + return false + } + return x.xxx_hidden_PendingWorkflowTask != nil +} + +func (x *DescribeWorkflowExecutionResponse) HasWorkflowExtendedInfo() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowExtendedInfo != nil +} + +func (x *DescribeWorkflowExecutionResponse) ClearExecutionConfig() { + x.xxx_hidden_ExecutionConfig = nil +} + +func (x *DescribeWorkflowExecutionResponse) ClearWorkflowExecutionInfo() { + x.xxx_hidden_WorkflowExecutionInfo = nil +} + +func (x *DescribeWorkflowExecutionResponse) ClearPendingWorkflowTask() { + x.xxx_hidden_PendingWorkflowTask = nil +} + +func (x *DescribeWorkflowExecutionResponse) ClearWorkflowExtendedInfo() { + x.xxx_hidden_WorkflowExtendedInfo = nil +} + +type DescribeWorkflowExecutionResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ExecutionConfig *v17.WorkflowExecutionConfig + WorkflowExecutionInfo *v17.WorkflowExecutionInfo + PendingActivities []*v17.PendingActivityInfo + PendingChildren []*v17.PendingChildExecutionInfo + PendingWorkflowTask *v17.PendingWorkflowTaskInfo + Callbacks []*v17.CallbackInfo + PendingNexusOperations []*v17.PendingNexusOperationInfo + WorkflowExtendedInfo *v17.WorkflowExecutionExtendedInfo +} + +func (b0 DescribeWorkflowExecutionResponse_builder) Build() *DescribeWorkflowExecutionResponse { + m0 := &DescribeWorkflowExecutionResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ExecutionConfig = b.ExecutionConfig + x.xxx_hidden_WorkflowExecutionInfo = b.WorkflowExecutionInfo + x.xxx_hidden_PendingActivities = &b.PendingActivities + x.xxx_hidden_PendingChildren = &b.PendingChildren + x.xxx_hidden_PendingWorkflowTask = b.PendingWorkflowTask + x.xxx_hidden_Callbacks = &b.Callbacks + x.xxx_hidden_PendingNexusOperations = &b.PendingNexusOperations + x.xxx_hidden_WorkflowExtendedInfo = b.WorkflowExtendedInfo + return m0 +} + +// (-- api-linter: core::0203::optional=disabled +// +// aip.dev/not-precedent: field_behavior annotation not available in our gogo fork --) +type DescribeTaskQueueRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_TaskQueue *v14.TaskQueue `protobuf:"bytes,2,opt,name=task_queue,json=taskQueue,proto3"` + xxx_hidden_TaskQueueType v11.TaskQueueType `protobuf:"varint,3,opt,name=task_queue_type,json=taskQueueType,proto3,enum=temporal.api.enums.v1.TaskQueueType"` + xxx_hidden_ReportStats bool `protobuf:"varint,8,opt,name=report_stats,json=reportStats,proto3"` + xxx_hidden_ReportConfig bool `protobuf:"varint,11,opt,name=report_config,json=reportConfig,proto3"` + xxx_hidden_IncludeTaskQueueStatus bool `protobuf:"varint,4,opt,name=include_task_queue_status,json=includeTaskQueueStatus,proto3"` + xxx_hidden_ApiMode v11.DescribeTaskQueueMode `protobuf:"varint,5,opt,name=api_mode,json=apiMode,proto3,enum=temporal.api.enums.v1.DescribeTaskQueueMode"` + xxx_hidden_Versions *v14.TaskQueueVersionSelection `protobuf:"bytes,6,opt,name=versions,proto3"` + xxx_hidden_TaskQueueTypes []v11.TaskQueueType `protobuf:"varint,7,rep,packed,name=task_queue_types,json=taskQueueTypes,proto3,enum=temporal.api.enums.v1.TaskQueueType"` + xxx_hidden_ReportPollers bool `protobuf:"varint,9,opt,name=report_pollers,json=reportPollers,proto3"` + xxx_hidden_ReportTaskReachability bool `protobuf:"varint,10,opt,name=report_task_reachability,json=reportTaskReachability,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DescribeTaskQueueRequest) Reset() { + *x = DescribeTaskQueueRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[76] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DescribeTaskQueueRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DescribeTaskQueueRequest) ProtoMessage() {} + +func (x *DescribeTaskQueueRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[76] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DescribeTaskQueueRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *DescribeTaskQueueRequest) GetTaskQueue() *v14.TaskQueue { + if x != nil { + return x.xxx_hidden_TaskQueue + } + return nil +} + +func (x *DescribeTaskQueueRequest) GetTaskQueueType() v11.TaskQueueType { + if x != nil { + return x.xxx_hidden_TaskQueueType + } + return v11.TaskQueueType(0) +} + +func (x *DescribeTaskQueueRequest) GetReportStats() bool { + if x != nil { + return x.xxx_hidden_ReportStats + } + return false +} + +func (x *DescribeTaskQueueRequest) GetReportConfig() bool { + if x != nil { + return x.xxx_hidden_ReportConfig + } + return false +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *DescribeTaskQueueRequest) GetIncludeTaskQueueStatus() bool { + if x != nil { + return x.xxx_hidden_IncludeTaskQueueStatus + } + return false +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *DescribeTaskQueueRequest) GetApiMode() v11.DescribeTaskQueueMode { + if x != nil { + return x.xxx_hidden_ApiMode + } + return v11.DescribeTaskQueueMode(0) +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *DescribeTaskQueueRequest) GetVersions() *v14.TaskQueueVersionSelection { + if x != nil { + return x.xxx_hidden_Versions + } + return nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *DescribeTaskQueueRequest) GetTaskQueueTypes() []v11.TaskQueueType { + if x != nil { + return x.xxx_hidden_TaskQueueTypes + } + return nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *DescribeTaskQueueRequest) GetReportPollers() bool { + if x != nil { + return x.xxx_hidden_ReportPollers + } + return false +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *DescribeTaskQueueRequest) GetReportTaskReachability() bool { + if x != nil { + return x.xxx_hidden_ReportTaskReachability + } + return false +} + +func (x *DescribeTaskQueueRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *DescribeTaskQueueRequest) SetTaskQueue(v *v14.TaskQueue) { + x.xxx_hidden_TaskQueue = v +} + +func (x *DescribeTaskQueueRequest) SetTaskQueueType(v v11.TaskQueueType) { + x.xxx_hidden_TaskQueueType = v +} + +func (x *DescribeTaskQueueRequest) SetReportStats(v bool) { + x.xxx_hidden_ReportStats = v +} + +func (x *DescribeTaskQueueRequest) SetReportConfig(v bool) { + x.xxx_hidden_ReportConfig = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *DescribeTaskQueueRequest) SetIncludeTaskQueueStatus(v bool) { + x.xxx_hidden_IncludeTaskQueueStatus = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *DescribeTaskQueueRequest) SetApiMode(v v11.DescribeTaskQueueMode) { + x.xxx_hidden_ApiMode = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *DescribeTaskQueueRequest) SetVersions(v *v14.TaskQueueVersionSelection) { + x.xxx_hidden_Versions = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *DescribeTaskQueueRequest) SetTaskQueueTypes(v []v11.TaskQueueType) { + x.xxx_hidden_TaskQueueTypes = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *DescribeTaskQueueRequest) SetReportPollers(v bool) { + x.xxx_hidden_ReportPollers = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *DescribeTaskQueueRequest) SetReportTaskReachability(v bool) { + x.xxx_hidden_ReportTaskReachability = v +} + +func (x *DescribeTaskQueueRequest) HasTaskQueue() bool { + if x == nil { + return false + } + return x.xxx_hidden_TaskQueue != nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *DescribeTaskQueueRequest) HasVersions() bool { + if x == nil { + return false + } + return x.xxx_hidden_Versions != nil +} + +func (x *DescribeTaskQueueRequest) ClearTaskQueue() { + x.xxx_hidden_TaskQueue = nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *DescribeTaskQueueRequest) ClearVersions() { + x.xxx_hidden_Versions = nil +} + +type DescribeTaskQueueRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + // Sticky queues are not supported in deprecated ENHANCED mode. + TaskQueue *v14.TaskQueue + // If unspecified (TASK_QUEUE_TYPE_UNSPECIFIED), then default value (TASK_QUEUE_TYPE_WORKFLOW) will be used. + // Only supported in default mode (use `task_queue_types` in ENHANCED mode instead). + TaskQueueType v11.TaskQueueType + // Report stats for the requested task queue type(s). + ReportStats bool + // Report Task Queue Config + ReportConfig bool + // Deprecated, use `report_stats` instead. + // If true, the task queue status will be included in the response. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + IncludeTaskQueueStatus bool + // Deprecated. ENHANCED mode is also being deprecated. + // Select the API mode to use for this request: DEFAULT mode (if unset) or ENHANCED mode. + // Consult the documentation for each field to understand which mode it is supported in. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + ApiMode v11.DescribeTaskQueueMode + // Deprecated (as part of the ENHANCED mode deprecation). + // Optional. If not provided, the result for the default Build ID will be returned. The default Build ID is the one + // mentioned in the first unconditional Assignment Rule. If there is no default Build ID, the result for the + // unversioned queue will be returned. + // (-- api-linter: core::0140::prepositions --) + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + Versions *v14.TaskQueueVersionSelection + // Deprecated (as part of the ENHANCED mode deprecation). + // Task queue types to report info about. If not specified, all types are considered. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + TaskQueueTypes []v11.TaskQueueType + // Deprecated (as part of the ENHANCED mode deprecation). + // Report list of pollers for requested task queue types and versions. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + ReportPollers bool + // Deprecated (as part of the ENHANCED mode deprecation). + // Report task reachability for the requested versions and all task types (task reachability is not reported + // per task type). + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + ReportTaskReachability bool +} + +func (b0 DescribeTaskQueueRequest_builder) Build() *DescribeTaskQueueRequest { + m0 := &DescribeTaskQueueRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_TaskQueue = b.TaskQueue + x.xxx_hidden_TaskQueueType = b.TaskQueueType + x.xxx_hidden_ReportStats = b.ReportStats + x.xxx_hidden_ReportConfig = b.ReportConfig + x.xxx_hidden_IncludeTaskQueueStatus = b.IncludeTaskQueueStatus + x.xxx_hidden_ApiMode = b.ApiMode + x.xxx_hidden_Versions = b.Versions + x.xxx_hidden_TaskQueueTypes = b.TaskQueueTypes + x.xxx_hidden_ReportPollers = b.ReportPollers + x.xxx_hidden_ReportTaskReachability = b.ReportTaskReachability + return m0 +} + +type DescribeTaskQueueResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Pollers *[]*v14.PollerInfo `protobuf:"bytes,1,rep,name=pollers,proto3"` + xxx_hidden_Stats *v14.TaskQueueStats `protobuf:"bytes,5,opt,name=stats,proto3"` + xxx_hidden_StatsByPriorityKey map[int32]*v14.TaskQueueStats `protobuf:"bytes,8,rep,name=stats_by_priority_key,json=statsByPriorityKey,proto3" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + xxx_hidden_VersioningInfo *v14.TaskQueueVersioningInfo `protobuf:"bytes,4,opt,name=versioning_info,json=versioningInfo,proto3"` + xxx_hidden_Config *v14.TaskQueueConfig `protobuf:"bytes,6,opt,name=config,proto3"` + xxx_hidden_EffectiveRateLimit *DescribeTaskQueueResponse_EffectiveRateLimit `protobuf:"bytes,7,opt,name=effective_rate_limit,json=effectiveRateLimit,proto3"` + xxx_hidden_TaskQueueStatus *v14.TaskQueueStatus `protobuf:"bytes,2,opt,name=task_queue_status,json=taskQueueStatus,proto3"` + xxx_hidden_VersionsInfo map[string]*v14.TaskQueueVersionInfo `protobuf:"bytes,3,rep,name=versions_info,json=versionsInfo,proto3" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DescribeTaskQueueResponse) Reset() { + *x = DescribeTaskQueueResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[77] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DescribeTaskQueueResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DescribeTaskQueueResponse) ProtoMessage() {} + +func (x *DescribeTaskQueueResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[77] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DescribeTaskQueueResponse) GetPollers() []*v14.PollerInfo { + if x != nil { + if x.xxx_hidden_Pollers != nil { + return *x.xxx_hidden_Pollers + } + } + return nil +} + +func (x *DescribeTaskQueueResponse) GetStats() *v14.TaskQueueStats { + if x != nil { + return x.xxx_hidden_Stats + } + return nil +} + +func (x *DescribeTaskQueueResponse) GetStatsByPriorityKey() map[int32]*v14.TaskQueueStats { + if x != nil { + return x.xxx_hidden_StatsByPriorityKey + } + return nil +} + +func (x *DescribeTaskQueueResponse) GetVersioningInfo() *v14.TaskQueueVersioningInfo { + if x != nil { + return x.xxx_hidden_VersioningInfo + } + return nil +} + +func (x *DescribeTaskQueueResponse) GetConfig() *v14.TaskQueueConfig { + if x != nil { + return x.xxx_hidden_Config + } + return nil +} + +func (x *DescribeTaskQueueResponse) GetEffectiveRateLimit() *DescribeTaskQueueResponse_EffectiveRateLimit { + if x != nil { + return x.xxx_hidden_EffectiveRateLimit + } + return nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *DescribeTaskQueueResponse) GetTaskQueueStatus() *v14.TaskQueueStatus { + if x != nil { + return x.xxx_hidden_TaskQueueStatus + } + return nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *DescribeTaskQueueResponse) GetVersionsInfo() map[string]*v14.TaskQueueVersionInfo { + if x != nil { + return x.xxx_hidden_VersionsInfo + } + return nil +} + +func (x *DescribeTaskQueueResponse) SetPollers(v []*v14.PollerInfo) { + x.xxx_hidden_Pollers = &v +} + +func (x *DescribeTaskQueueResponse) SetStats(v *v14.TaskQueueStats) { + x.xxx_hidden_Stats = v +} + +func (x *DescribeTaskQueueResponse) SetStatsByPriorityKey(v map[int32]*v14.TaskQueueStats) { + x.xxx_hidden_StatsByPriorityKey = v +} + +func (x *DescribeTaskQueueResponse) SetVersioningInfo(v *v14.TaskQueueVersioningInfo) { + x.xxx_hidden_VersioningInfo = v +} + +func (x *DescribeTaskQueueResponse) SetConfig(v *v14.TaskQueueConfig) { + x.xxx_hidden_Config = v +} + +func (x *DescribeTaskQueueResponse) SetEffectiveRateLimit(v *DescribeTaskQueueResponse_EffectiveRateLimit) { + x.xxx_hidden_EffectiveRateLimit = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *DescribeTaskQueueResponse) SetTaskQueueStatus(v *v14.TaskQueueStatus) { + x.xxx_hidden_TaskQueueStatus = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *DescribeTaskQueueResponse) SetVersionsInfo(v map[string]*v14.TaskQueueVersionInfo) { + x.xxx_hidden_VersionsInfo = v +} + +func (x *DescribeTaskQueueResponse) HasStats() bool { + if x == nil { + return false + } + return x.xxx_hidden_Stats != nil +} + +func (x *DescribeTaskQueueResponse) HasVersioningInfo() bool { + if x == nil { + return false + } + return x.xxx_hidden_VersioningInfo != nil +} + +func (x *DescribeTaskQueueResponse) HasConfig() bool { + if x == nil { + return false + } + return x.xxx_hidden_Config != nil +} + +func (x *DescribeTaskQueueResponse) HasEffectiveRateLimit() bool { + if x == nil { + return false + } + return x.xxx_hidden_EffectiveRateLimit != nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *DescribeTaskQueueResponse) HasTaskQueueStatus() bool { + if x == nil { + return false + } + return x.xxx_hidden_TaskQueueStatus != nil +} + +func (x *DescribeTaskQueueResponse) ClearStats() { + x.xxx_hidden_Stats = nil +} + +func (x *DescribeTaskQueueResponse) ClearVersioningInfo() { + x.xxx_hidden_VersioningInfo = nil +} + +func (x *DescribeTaskQueueResponse) ClearConfig() { + x.xxx_hidden_Config = nil +} + +func (x *DescribeTaskQueueResponse) ClearEffectiveRateLimit() { + x.xxx_hidden_EffectiveRateLimit = nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *DescribeTaskQueueResponse) ClearTaskQueueStatus() { + x.xxx_hidden_TaskQueueStatus = nil +} + +type DescribeTaskQueueResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Pollers []*v14.PollerInfo + // Statistics for the task queue. + // Only set if `report_stats` is set on the request. + Stats *v14.TaskQueueStats + // Task queue stats breakdown by priority key. Only contains actively used priority keys. + // Only set if `report_stats` is set on the request. + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "by" is used to clarify the keys and values. --) + StatsByPriorityKey map[int32]*v14.TaskQueueStats + // Specifies which Worker Deployment Version(s) Server routes this Task Queue's tasks to. + // When not present, it means the tasks are routed to Unversioned workers (workers with + // UNVERSIONED or unspecified WorkerVersioningMode.) + // Task Queue Versioning info is updated indirectly by calling SetWorkerDeploymentCurrentVersion + // and SetWorkerDeploymentRampingVersion on Worker Deployments. + // Note: This information is not relevant to Pinned workflow executions and their activities as + // they are always routed to their Pinned Deployment Version. However, new workflow executions + // are typically not Pinned until they complete their first task (unless they are started with + // a Pinned VersioningOverride or are Child Workflows of a Pinned parent). + VersioningInfo *v14.TaskQueueVersioningInfo + // Only populated if report_task_queue_config is set to true. + Config *v14.TaskQueueConfig + EffectiveRateLimit *DescribeTaskQueueResponse_EffectiveRateLimit + // Deprecated. + // Status of the task queue. Only populated when `include_task_queue_status` is set to true in the request. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + TaskQueueStatus *v14.TaskQueueStatus + // Deprecated. + // Only returned in ENHANCED mode. + // This map contains Task Queue information for each Build ID. Empty string as key value means unversioned. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + VersionsInfo map[string]*v14.TaskQueueVersionInfo +} + +func (b0 DescribeTaskQueueResponse_builder) Build() *DescribeTaskQueueResponse { + m0 := &DescribeTaskQueueResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Pollers = &b.Pollers + x.xxx_hidden_Stats = b.Stats + x.xxx_hidden_StatsByPriorityKey = b.StatsByPriorityKey + x.xxx_hidden_VersioningInfo = b.VersioningInfo + x.xxx_hidden_Config = b.Config + x.xxx_hidden_EffectiveRateLimit = b.EffectiveRateLimit + x.xxx_hidden_TaskQueueStatus = b.TaskQueueStatus + x.xxx_hidden_VersionsInfo = b.VersionsInfo + return m0 +} + +type GetClusterInfoRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetClusterInfoRequest) Reset() { + *x = GetClusterInfoRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[78] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetClusterInfoRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetClusterInfoRequest) ProtoMessage() {} + +func (x *GetClusterInfoRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[78] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type GetClusterInfoRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 GetClusterInfoRequest_builder) Build() *GetClusterInfoRequest { + m0 := &GetClusterInfoRequest{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +// GetClusterInfoResponse contains information about Temporal cluster. +type GetClusterInfoResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_SupportedClients map[string]string `protobuf:"bytes,1,rep,name=supported_clients,json=supportedClients,proto3" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + xxx_hidden_ServerVersion string `protobuf:"bytes,2,opt,name=server_version,json=serverVersion,proto3"` + xxx_hidden_ClusterId string `protobuf:"bytes,3,opt,name=cluster_id,json=clusterId,proto3"` + xxx_hidden_VersionInfo *v115.VersionInfo `protobuf:"bytes,4,opt,name=version_info,json=versionInfo,proto3"` + xxx_hidden_ClusterName string `protobuf:"bytes,5,opt,name=cluster_name,json=clusterName,proto3"` + xxx_hidden_HistoryShardCount int32 `protobuf:"varint,6,opt,name=history_shard_count,json=historyShardCount,proto3"` + xxx_hidden_PersistenceStore string `protobuf:"bytes,7,opt,name=persistence_store,json=persistenceStore,proto3"` + xxx_hidden_VisibilityStore string `protobuf:"bytes,8,opt,name=visibility_store,json=visibilityStore,proto3"` + xxx_hidden_InitialFailoverVersion int64 `protobuf:"varint,9,opt,name=initial_failover_version,json=initialFailoverVersion,proto3"` + xxx_hidden_FailoverVersionIncrement int64 `protobuf:"varint,10,opt,name=failover_version_increment,json=failoverVersionIncrement,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetClusterInfoResponse) Reset() { + *x = GetClusterInfoResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[79] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetClusterInfoResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetClusterInfoResponse) ProtoMessage() {} + +func (x *GetClusterInfoResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[79] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetClusterInfoResponse) GetSupportedClients() map[string]string { + if x != nil { + return x.xxx_hidden_SupportedClients + } + return nil +} + +func (x *GetClusterInfoResponse) GetServerVersion() string { + if x != nil { + return x.xxx_hidden_ServerVersion + } + return "" +} + +func (x *GetClusterInfoResponse) GetClusterId() string { + if x != nil { + return x.xxx_hidden_ClusterId + } + return "" +} + +func (x *GetClusterInfoResponse) GetVersionInfo() *v115.VersionInfo { + if x != nil { + return x.xxx_hidden_VersionInfo + } + return nil +} + +func (x *GetClusterInfoResponse) GetClusterName() string { + if x != nil { + return x.xxx_hidden_ClusterName + } + return "" +} + +func (x *GetClusterInfoResponse) GetHistoryShardCount() int32 { + if x != nil { + return x.xxx_hidden_HistoryShardCount + } + return 0 +} + +func (x *GetClusterInfoResponse) GetPersistenceStore() string { + if x != nil { + return x.xxx_hidden_PersistenceStore + } + return "" +} + +func (x *GetClusterInfoResponse) GetVisibilityStore() string { + if x != nil { + return x.xxx_hidden_VisibilityStore + } + return "" +} + +func (x *GetClusterInfoResponse) GetInitialFailoverVersion() int64 { + if x != nil { + return x.xxx_hidden_InitialFailoverVersion + } + return 0 +} + +func (x *GetClusterInfoResponse) GetFailoverVersionIncrement() int64 { + if x != nil { + return x.xxx_hidden_FailoverVersionIncrement + } + return 0 +} + +func (x *GetClusterInfoResponse) SetSupportedClients(v map[string]string) { + x.xxx_hidden_SupportedClients = v +} + +func (x *GetClusterInfoResponse) SetServerVersion(v string) { + x.xxx_hidden_ServerVersion = v +} + +func (x *GetClusterInfoResponse) SetClusterId(v string) { + x.xxx_hidden_ClusterId = v +} + +func (x *GetClusterInfoResponse) SetVersionInfo(v *v115.VersionInfo) { + x.xxx_hidden_VersionInfo = v +} + +func (x *GetClusterInfoResponse) SetClusterName(v string) { + x.xxx_hidden_ClusterName = v +} + +func (x *GetClusterInfoResponse) SetHistoryShardCount(v int32) { + x.xxx_hidden_HistoryShardCount = v +} + +func (x *GetClusterInfoResponse) SetPersistenceStore(v string) { + x.xxx_hidden_PersistenceStore = v +} + +func (x *GetClusterInfoResponse) SetVisibilityStore(v string) { + x.xxx_hidden_VisibilityStore = v +} + +func (x *GetClusterInfoResponse) SetInitialFailoverVersion(v int64) { + x.xxx_hidden_InitialFailoverVersion = v +} + +func (x *GetClusterInfoResponse) SetFailoverVersionIncrement(v int64) { + x.xxx_hidden_FailoverVersionIncrement = v +} + +func (x *GetClusterInfoResponse) HasVersionInfo() bool { + if x == nil { + return false + } + return x.xxx_hidden_VersionInfo != nil +} + +func (x *GetClusterInfoResponse) ClearVersionInfo() { + x.xxx_hidden_VersionInfo = nil +} + +type GetClusterInfoResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Key is client name i.e "temporal-go", "temporal-java", or "temporal-cli". + // Value is ranges of supported versions of this client i.e ">1.1.1 <=1.4.0 || ^5.0.0". + SupportedClients map[string]string + ServerVersion string + ClusterId string + VersionInfo *v115.VersionInfo + ClusterName string + HistoryShardCount int32 + PersistenceStore string + VisibilityStore string + InitialFailoverVersion int64 + FailoverVersionIncrement int64 +} + +func (b0 GetClusterInfoResponse_builder) Build() *GetClusterInfoResponse { + m0 := &GetClusterInfoResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_SupportedClients = b.SupportedClients + x.xxx_hidden_ServerVersion = b.ServerVersion + x.xxx_hidden_ClusterId = b.ClusterId + x.xxx_hidden_VersionInfo = b.VersionInfo + x.xxx_hidden_ClusterName = b.ClusterName + x.xxx_hidden_HistoryShardCount = b.HistoryShardCount + x.xxx_hidden_PersistenceStore = b.PersistenceStore + x.xxx_hidden_VisibilityStore = b.VisibilityStore + x.xxx_hidden_InitialFailoverVersion = b.InitialFailoverVersion + x.xxx_hidden_FailoverVersionIncrement = b.FailoverVersionIncrement + return m0 +} + +type GetSystemInfoRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetSystemInfoRequest) Reset() { + *x = GetSystemInfoRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[80] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetSystemInfoRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetSystemInfoRequest) ProtoMessage() {} + +func (x *GetSystemInfoRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[80] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type GetSystemInfoRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 GetSystemInfoRequest_builder) Build() *GetSystemInfoRequest { + m0 := &GetSystemInfoRequest{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type GetSystemInfoResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ServerVersion string `protobuf:"bytes,1,opt,name=server_version,json=serverVersion,proto3"` + xxx_hidden_Capabilities *GetSystemInfoResponse_Capabilities `protobuf:"bytes,2,opt,name=capabilities,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetSystemInfoResponse) Reset() { + *x = GetSystemInfoResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[81] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetSystemInfoResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetSystemInfoResponse) ProtoMessage() {} + +func (x *GetSystemInfoResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[81] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetSystemInfoResponse) GetServerVersion() string { + if x != nil { + return x.xxx_hidden_ServerVersion + } + return "" +} + +func (x *GetSystemInfoResponse) GetCapabilities() *GetSystemInfoResponse_Capabilities { + if x != nil { + return x.xxx_hidden_Capabilities + } + return nil +} + +func (x *GetSystemInfoResponse) SetServerVersion(v string) { + x.xxx_hidden_ServerVersion = v +} + +func (x *GetSystemInfoResponse) SetCapabilities(v *GetSystemInfoResponse_Capabilities) { + x.xxx_hidden_Capabilities = v +} + +func (x *GetSystemInfoResponse) HasCapabilities() bool { + if x == nil { + return false + } + return x.xxx_hidden_Capabilities != nil +} + +func (x *GetSystemInfoResponse) ClearCapabilities() { + x.xxx_hidden_Capabilities = nil +} + +type GetSystemInfoResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Version of the server. + ServerVersion string + // All capabilities the system supports. + Capabilities *GetSystemInfoResponse_Capabilities +} + +func (b0 GetSystemInfoResponse_builder) Build() *GetSystemInfoResponse { + m0 := &GetSystemInfoResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ServerVersion = b.ServerVersion + x.xxx_hidden_Capabilities = b.Capabilities + return m0 +} + +type ListTaskQueuePartitionsRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_TaskQueue *v14.TaskQueue `protobuf:"bytes,2,opt,name=task_queue,json=taskQueue,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListTaskQueuePartitionsRequest) Reset() { + *x = ListTaskQueuePartitionsRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[82] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListTaskQueuePartitionsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListTaskQueuePartitionsRequest) ProtoMessage() {} + +func (x *ListTaskQueuePartitionsRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[82] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListTaskQueuePartitionsRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *ListTaskQueuePartitionsRequest) GetTaskQueue() *v14.TaskQueue { + if x != nil { + return x.xxx_hidden_TaskQueue + } + return nil +} + +func (x *ListTaskQueuePartitionsRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *ListTaskQueuePartitionsRequest) SetTaskQueue(v *v14.TaskQueue) { + x.xxx_hidden_TaskQueue = v +} + +func (x *ListTaskQueuePartitionsRequest) HasTaskQueue() bool { + if x == nil { + return false + } + return x.xxx_hidden_TaskQueue != nil +} + +func (x *ListTaskQueuePartitionsRequest) ClearTaskQueue() { + x.xxx_hidden_TaskQueue = nil +} + +type ListTaskQueuePartitionsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + TaskQueue *v14.TaskQueue +} + +func (b0 ListTaskQueuePartitionsRequest_builder) Build() *ListTaskQueuePartitionsRequest { + m0 := &ListTaskQueuePartitionsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_TaskQueue = b.TaskQueue + return m0 +} + +type ListTaskQueuePartitionsResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ActivityTaskQueuePartitions *[]*v14.TaskQueuePartitionMetadata `protobuf:"bytes,1,rep,name=activity_task_queue_partitions,json=activityTaskQueuePartitions,proto3"` + xxx_hidden_WorkflowTaskQueuePartitions *[]*v14.TaskQueuePartitionMetadata `protobuf:"bytes,2,rep,name=workflow_task_queue_partitions,json=workflowTaskQueuePartitions,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListTaskQueuePartitionsResponse) Reset() { + *x = ListTaskQueuePartitionsResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[83] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListTaskQueuePartitionsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListTaskQueuePartitionsResponse) ProtoMessage() {} + +func (x *ListTaskQueuePartitionsResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[83] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListTaskQueuePartitionsResponse) GetActivityTaskQueuePartitions() []*v14.TaskQueuePartitionMetadata { + if x != nil { + if x.xxx_hidden_ActivityTaskQueuePartitions != nil { + return *x.xxx_hidden_ActivityTaskQueuePartitions + } + } + return nil +} + +func (x *ListTaskQueuePartitionsResponse) GetWorkflowTaskQueuePartitions() []*v14.TaskQueuePartitionMetadata { + if x != nil { + if x.xxx_hidden_WorkflowTaskQueuePartitions != nil { + return *x.xxx_hidden_WorkflowTaskQueuePartitions + } + } + return nil +} + +func (x *ListTaskQueuePartitionsResponse) SetActivityTaskQueuePartitions(v []*v14.TaskQueuePartitionMetadata) { + x.xxx_hidden_ActivityTaskQueuePartitions = &v +} + +func (x *ListTaskQueuePartitionsResponse) SetWorkflowTaskQueuePartitions(v []*v14.TaskQueuePartitionMetadata) { + x.xxx_hidden_WorkflowTaskQueuePartitions = &v +} + +type ListTaskQueuePartitionsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ActivityTaskQueuePartitions []*v14.TaskQueuePartitionMetadata + WorkflowTaskQueuePartitions []*v14.TaskQueuePartitionMetadata +} + +func (b0 ListTaskQueuePartitionsResponse_builder) Build() *ListTaskQueuePartitionsResponse { + m0 := &ListTaskQueuePartitionsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ActivityTaskQueuePartitions = &b.ActivityTaskQueuePartitions + x.xxx_hidden_WorkflowTaskQueuePartitions = &b.WorkflowTaskQueuePartitions + return m0 +} + +// (-- api-linter: core::0203::optional=disabled +// +// aip.dev/not-precedent: field_behavior annotation not available in our gogo fork --) +type CreateScheduleRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_ScheduleId string `protobuf:"bytes,2,opt,name=schedule_id,json=scheduleId,proto3"` + xxx_hidden_Schedule *v116.Schedule `protobuf:"bytes,3,opt,name=schedule,proto3"` + xxx_hidden_InitialPatch *v116.SchedulePatch `protobuf:"bytes,4,opt,name=initial_patch,json=initialPatch,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,5,opt,name=identity,proto3"` + xxx_hidden_RequestId string `protobuf:"bytes,6,opt,name=request_id,json=requestId,proto3"` + xxx_hidden_Memo *v13.Memo `protobuf:"bytes,7,opt,name=memo,proto3"` + xxx_hidden_SearchAttributes *v13.SearchAttributes `protobuf:"bytes,8,opt,name=search_attributes,json=searchAttributes,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateScheduleRequest) Reset() { + *x = CreateScheduleRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[84] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateScheduleRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateScheduleRequest) ProtoMessage() {} + +func (x *CreateScheduleRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[84] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *CreateScheduleRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *CreateScheduleRequest) GetScheduleId() string { + if x != nil { + return x.xxx_hidden_ScheduleId + } + return "" +} + +func (x *CreateScheduleRequest) GetSchedule() *v116.Schedule { + if x != nil { + return x.xxx_hidden_Schedule + } + return nil +} + +func (x *CreateScheduleRequest) GetInitialPatch() *v116.SchedulePatch { + if x != nil { + return x.xxx_hidden_InitialPatch + } + return nil +} + +func (x *CreateScheduleRequest) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *CreateScheduleRequest) GetRequestId() string { + if x != nil { + return x.xxx_hidden_RequestId + } + return "" +} + +func (x *CreateScheduleRequest) GetMemo() *v13.Memo { + if x != nil { + return x.xxx_hidden_Memo + } + return nil +} + +func (x *CreateScheduleRequest) GetSearchAttributes() *v13.SearchAttributes { + if x != nil { + return x.xxx_hidden_SearchAttributes + } + return nil +} + +func (x *CreateScheduleRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *CreateScheduleRequest) SetScheduleId(v string) { + x.xxx_hidden_ScheduleId = v +} + +func (x *CreateScheduleRequest) SetSchedule(v *v116.Schedule) { + x.xxx_hidden_Schedule = v +} + +func (x *CreateScheduleRequest) SetInitialPatch(v *v116.SchedulePatch) { + x.xxx_hidden_InitialPatch = v +} + +func (x *CreateScheduleRequest) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *CreateScheduleRequest) SetRequestId(v string) { + x.xxx_hidden_RequestId = v +} + +func (x *CreateScheduleRequest) SetMemo(v *v13.Memo) { + x.xxx_hidden_Memo = v +} + +func (x *CreateScheduleRequest) SetSearchAttributes(v *v13.SearchAttributes) { + x.xxx_hidden_SearchAttributes = v +} + +func (x *CreateScheduleRequest) HasSchedule() bool { + if x == nil { + return false + } + return x.xxx_hidden_Schedule != nil +} + +func (x *CreateScheduleRequest) HasInitialPatch() bool { + if x == nil { + return false + } + return x.xxx_hidden_InitialPatch != nil +} + +func (x *CreateScheduleRequest) HasMemo() bool { + if x == nil { + return false + } + return x.xxx_hidden_Memo != nil +} + +func (x *CreateScheduleRequest) HasSearchAttributes() bool { + if x == nil { + return false + } + return x.xxx_hidden_SearchAttributes != nil +} + +func (x *CreateScheduleRequest) ClearSchedule() { + x.xxx_hidden_Schedule = nil +} + +func (x *CreateScheduleRequest) ClearInitialPatch() { + x.xxx_hidden_InitialPatch = nil +} + +func (x *CreateScheduleRequest) ClearMemo() { + x.xxx_hidden_Memo = nil +} + +func (x *CreateScheduleRequest) ClearSearchAttributes() { + x.xxx_hidden_SearchAttributes = nil +} + +type CreateScheduleRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The namespace the schedule should be created in. + Namespace string + // The id of the new schedule. + ScheduleId string + // The schedule spec, policies, action, and initial state. + Schedule *v116.Schedule + // Optional initial patch (e.g. to run the action once immediately). + InitialPatch *v116.SchedulePatch + // The identity of the client who initiated this request. + Identity string + // A unique identifier for this create request for idempotence. Typically UUIDv4. + RequestId string + // Memo and search attributes to attach to the schedule itself. + Memo *v13.Memo + SearchAttributes *v13.SearchAttributes +} + +func (b0 CreateScheduleRequest_builder) Build() *CreateScheduleRequest { + m0 := &CreateScheduleRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_ScheduleId = b.ScheduleId + x.xxx_hidden_Schedule = b.Schedule + x.xxx_hidden_InitialPatch = b.InitialPatch + x.xxx_hidden_Identity = b.Identity + x.xxx_hidden_RequestId = b.RequestId + x.xxx_hidden_Memo = b.Memo + x.xxx_hidden_SearchAttributes = b.SearchAttributes + return m0 +} + +type CreateScheduleResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ConflictToken []byte `protobuf:"bytes,1,opt,name=conflict_token,json=conflictToken,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateScheduleResponse) Reset() { + *x = CreateScheduleResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[85] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateScheduleResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateScheduleResponse) ProtoMessage() {} + +func (x *CreateScheduleResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[85] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *CreateScheduleResponse) GetConflictToken() []byte { + if x != nil { + return x.xxx_hidden_ConflictToken + } + return nil +} + +func (x *CreateScheduleResponse) SetConflictToken(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_ConflictToken = v +} + +type CreateScheduleResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ConflictToken []byte +} + +func (b0 CreateScheduleResponse_builder) Build() *CreateScheduleResponse { + m0 := &CreateScheduleResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ConflictToken = b.ConflictToken + return m0 +} + +type DescribeScheduleRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_ScheduleId string `protobuf:"bytes,2,opt,name=schedule_id,json=scheduleId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DescribeScheduleRequest) Reset() { + *x = DescribeScheduleRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[86] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DescribeScheduleRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DescribeScheduleRequest) ProtoMessage() {} + +func (x *DescribeScheduleRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[86] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DescribeScheduleRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *DescribeScheduleRequest) GetScheduleId() string { + if x != nil { + return x.xxx_hidden_ScheduleId + } + return "" +} + +func (x *DescribeScheduleRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *DescribeScheduleRequest) SetScheduleId(v string) { + x.xxx_hidden_ScheduleId = v +} + +type DescribeScheduleRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The namespace of the schedule to describe. + Namespace string + // The id of the schedule to describe. + ScheduleId string +} + +func (b0 DescribeScheduleRequest_builder) Build() *DescribeScheduleRequest { + m0 := &DescribeScheduleRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_ScheduleId = b.ScheduleId + return m0 +} + +type DescribeScheduleResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Schedule *v116.Schedule `protobuf:"bytes,1,opt,name=schedule,proto3"` + xxx_hidden_Info *v116.ScheduleInfo `protobuf:"bytes,2,opt,name=info,proto3"` + xxx_hidden_Memo *v13.Memo `protobuf:"bytes,3,opt,name=memo,proto3"` + xxx_hidden_SearchAttributes *v13.SearchAttributes `protobuf:"bytes,4,opt,name=search_attributes,json=searchAttributes,proto3"` + xxx_hidden_ConflictToken []byte `protobuf:"bytes,5,opt,name=conflict_token,json=conflictToken,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DescribeScheduleResponse) Reset() { + *x = DescribeScheduleResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[87] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DescribeScheduleResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DescribeScheduleResponse) ProtoMessage() {} + +func (x *DescribeScheduleResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[87] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DescribeScheduleResponse) GetSchedule() *v116.Schedule { + if x != nil { + return x.xxx_hidden_Schedule + } + return nil +} + +func (x *DescribeScheduleResponse) GetInfo() *v116.ScheduleInfo { + if x != nil { + return x.xxx_hidden_Info + } + return nil +} + +func (x *DescribeScheduleResponse) GetMemo() *v13.Memo { + if x != nil { + return x.xxx_hidden_Memo + } + return nil +} + +func (x *DescribeScheduleResponse) GetSearchAttributes() *v13.SearchAttributes { + if x != nil { + return x.xxx_hidden_SearchAttributes + } + return nil +} + +func (x *DescribeScheduleResponse) GetConflictToken() []byte { + if x != nil { + return x.xxx_hidden_ConflictToken + } + return nil +} + +func (x *DescribeScheduleResponse) SetSchedule(v *v116.Schedule) { + x.xxx_hidden_Schedule = v +} + +func (x *DescribeScheduleResponse) SetInfo(v *v116.ScheduleInfo) { + x.xxx_hidden_Info = v +} + +func (x *DescribeScheduleResponse) SetMemo(v *v13.Memo) { + x.xxx_hidden_Memo = v +} + +func (x *DescribeScheduleResponse) SetSearchAttributes(v *v13.SearchAttributes) { + x.xxx_hidden_SearchAttributes = v +} + +func (x *DescribeScheduleResponse) SetConflictToken(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_ConflictToken = v +} + +func (x *DescribeScheduleResponse) HasSchedule() bool { + if x == nil { + return false + } + return x.xxx_hidden_Schedule != nil +} + +func (x *DescribeScheduleResponse) HasInfo() bool { + if x == nil { + return false + } + return x.xxx_hidden_Info != nil +} + +func (x *DescribeScheduleResponse) HasMemo() bool { + if x == nil { + return false + } + return x.xxx_hidden_Memo != nil +} + +func (x *DescribeScheduleResponse) HasSearchAttributes() bool { + if x == nil { + return false + } + return x.xxx_hidden_SearchAttributes != nil +} + +func (x *DescribeScheduleResponse) ClearSchedule() { + x.xxx_hidden_Schedule = nil +} + +func (x *DescribeScheduleResponse) ClearInfo() { + x.xxx_hidden_Info = nil +} + +func (x *DescribeScheduleResponse) ClearMemo() { + x.xxx_hidden_Memo = nil +} + +func (x *DescribeScheduleResponse) ClearSearchAttributes() { + x.xxx_hidden_SearchAttributes = nil +} + +type DescribeScheduleResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The complete current schedule details. This may not match the schedule as + // created because: + // - some types of schedule specs may get compiled into others (e.g. + // CronString into StructuredCalendarSpec) + // - some unspecified fields may be replaced by defaults + // - some fields in the state are modified automatically + // - the schedule may have been modified by UpdateSchedule or PatchSchedule + Schedule *v116.Schedule + // Extra schedule state info. + Info *v116.ScheduleInfo + // The memo and search attributes that the schedule was created with. + Memo *v13.Memo + SearchAttributes *v13.SearchAttributes + // This value can be passed back to UpdateSchedule to ensure that the + // schedule was not modified between a Describe and an Update, which could + // lead to lost updates and other confusion. + ConflictToken []byte +} + +func (b0 DescribeScheduleResponse_builder) Build() *DescribeScheduleResponse { + m0 := &DescribeScheduleResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Schedule = b.Schedule + x.xxx_hidden_Info = b.Info + x.xxx_hidden_Memo = b.Memo + x.xxx_hidden_SearchAttributes = b.SearchAttributes + x.xxx_hidden_ConflictToken = b.ConflictToken + return m0 +} + +type UpdateScheduleRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_ScheduleId string `protobuf:"bytes,2,opt,name=schedule_id,json=scheduleId,proto3"` + xxx_hidden_Schedule *v116.Schedule `protobuf:"bytes,3,opt,name=schedule,proto3"` + xxx_hidden_ConflictToken []byte `protobuf:"bytes,4,opt,name=conflict_token,json=conflictToken,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,5,opt,name=identity,proto3"` + xxx_hidden_RequestId string `protobuf:"bytes,6,opt,name=request_id,json=requestId,proto3"` + xxx_hidden_SearchAttributes *v13.SearchAttributes `protobuf:"bytes,7,opt,name=search_attributes,json=searchAttributes,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateScheduleRequest) Reset() { + *x = UpdateScheduleRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[88] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateScheduleRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateScheduleRequest) ProtoMessage() {} + +func (x *UpdateScheduleRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[88] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UpdateScheduleRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *UpdateScheduleRequest) GetScheduleId() string { + if x != nil { + return x.xxx_hidden_ScheduleId + } + return "" +} + +func (x *UpdateScheduleRequest) GetSchedule() *v116.Schedule { + if x != nil { + return x.xxx_hidden_Schedule + } + return nil +} + +func (x *UpdateScheduleRequest) GetConflictToken() []byte { + if x != nil { + return x.xxx_hidden_ConflictToken + } + return nil +} + +func (x *UpdateScheduleRequest) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *UpdateScheduleRequest) GetRequestId() string { + if x != nil { + return x.xxx_hidden_RequestId + } + return "" +} + +func (x *UpdateScheduleRequest) GetSearchAttributes() *v13.SearchAttributes { + if x != nil { + return x.xxx_hidden_SearchAttributes + } + return nil +} + +func (x *UpdateScheduleRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *UpdateScheduleRequest) SetScheduleId(v string) { + x.xxx_hidden_ScheduleId = v +} + +func (x *UpdateScheduleRequest) SetSchedule(v *v116.Schedule) { + x.xxx_hidden_Schedule = v +} + +func (x *UpdateScheduleRequest) SetConflictToken(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_ConflictToken = v +} + +func (x *UpdateScheduleRequest) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *UpdateScheduleRequest) SetRequestId(v string) { + x.xxx_hidden_RequestId = v +} + +func (x *UpdateScheduleRequest) SetSearchAttributes(v *v13.SearchAttributes) { + x.xxx_hidden_SearchAttributes = v +} + +func (x *UpdateScheduleRequest) HasSchedule() bool { + if x == nil { + return false + } + return x.xxx_hidden_Schedule != nil +} + +func (x *UpdateScheduleRequest) HasSearchAttributes() bool { + if x == nil { + return false + } + return x.xxx_hidden_SearchAttributes != nil +} + +func (x *UpdateScheduleRequest) ClearSchedule() { + x.xxx_hidden_Schedule = nil +} + +func (x *UpdateScheduleRequest) ClearSearchAttributes() { + x.xxx_hidden_SearchAttributes = nil +} + +type UpdateScheduleRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The namespace of the schedule to update. + Namespace string + // The id of the schedule to update. + ScheduleId string + // The new schedule. The four main fields of the schedule (spec, action, + // policies, state) are replaced completely by the values in this message. + Schedule *v116.Schedule + // This can be the value of conflict_token from a DescribeScheduleResponse, + // which will cause this request to fail if the schedule has been modified + // between the Describe and this Update. + // If missing, the schedule will be updated unconditionally. + ConflictToken []byte + // The identity of the client who initiated this request. + Identity string + // A unique identifier for this update request for idempotence. Typically UUIDv4. + RequestId string + // Schedule search attributes to be updated. + // Do not set this field if you do not want to update the search attributes. + // A non-null empty object will set the search attributes to an empty map. + // Note: you cannot only update the search attributes with `UpdateScheduleRequest`, + // you must also set the `schedule` field; otherwise, it will unset the schedule. + SearchAttributes *v13.SearchAttributes +} + +func (b0 UpdateScheduleRequest_builder) Build() *UpdateScheduleRequest { + m0 := &UpdateScheduleRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_ScheduleId = b.ScheduleId + x.xxx_hidden_Schedule = b.Schedule + x.xxx_hidden_ConflictToken = b.ConflictToken + x.xxx_hidden_Identity = b.Identity + x.xxx_hidden_RequestId = b.RequestId + x.xxx_hidden_SearchAttributes = b.SearchAttributes + return m0 +} + +type UpdateScheduleResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateScheduleResponse) Reset() { + *x = UpdateScheduleResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[89] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateScheduleResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateScheduleResponse) ProtoMessage() {} + +func (x *UpdateScheduleResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[89] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type UpdateScheduleResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 UpdateScheduleResponse_builder) Build() *UpdateScheduleResponse { + m0 := &UpdateScheduleResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type PatchScheduleRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_ScheduleId string `protobuf:"bytes,2,opt,name=schedule_id,json=scheduleId,proto3"` + xxx_hidden_Patch *v116.SchedulePatch `protobuf:"bytes,3,opt,name=patch,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,4,opt,name=identity,proto3"` + xxx_hidden_RequestId string `protobuf:"bytes,5,opt,name=request_id,json=requestId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PatchScheduleRequest) Reset() { + *x = PatchScheduleRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[90] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PatchScheduleRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PatchScheduleRequest) ProtoMessage() {} + +func (x *PatchScheduleRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[90] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PatchScheduleRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *PatchScheduleRequest) GetScheduleId() string { + if x != nil { + return x.xxx_hidden_ScheduleId + } + return "" +} + +func (x *PatchScheduleRequest) GetPatch() *v116.SchedulePatch { + if x != nil { + return x.xxx_hidden_Patch + } + return nil +} + +func (x *PatchScheduleRequest) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *PatchScheduleRequest) GetRequestId() string { + if x != nil { + return x.xxx_hidden_RequestId + } + return "" +} + +func (x *PatchScheduleRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *PatchScheduleRequest) SetScheduleId(v string) { + x.xxx_hidden_ScheduleId = v +} + +func (x *PatchScheduleRequest) SetPatch(v *v116.SchedulePatch) { + x.xxx_hidden_Patch = v +} + +func (x *PatchScheduleRequest) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *PatchScheduleRequest) SetRequestId(v string) { + x.xxx_hidden_RequestId = v +} + +func (x *PatchScheduleRequest) HasPatch() bool { + if x == nil { + return false + } + return x.xxx_hidden_Patch != nil +} + +func (x *PatchScheduleRequest) ClearPatch() { + x.xxx_hidden_Patch = nil +} + +type PatchScheduleRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The namespace of the schedule to patch. + Namespace string + // The id of the schedule to patch. + ScheduleId string + Patch *v116.SchedulePatch + // The identity of the client who initiated this request. + Identity string + // A unique identifier for this update request for idempotence. Typically UUIDv4. + RequestId string +} + +func (b0 PatchScheduleRequest_builder) Build() *PatchScheduleRequest { + m0 := &PatchScheduleRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_ScheduleId = b.ScheduleId + x.xxx_hidden_Patch = b.Patch + x.xxx_hidden_Identity = b.Identity + x.xxx_hidden_RequestId = b.RequestId + return m0 +} + +type PatchScheduleResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PatchScheduleResponse) Reset() { + *x = PatchScheduleResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[91] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PatchScheduleResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PatchScheduleResponse) ProtoMessage() {} + +func (x *PatchScheduleResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[91] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type PatchScheduleResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 PatchScheduleResponse_builder) Build() *PatchScheduleResponse { + m0 := &PatchScheduleResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type ListScheduleMatchingTimesRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_ScheduleId string `protobuf:"bytes,2,opt,name=schedule_id,json=scheduleId,proto3"` + xxx_hidden_StartTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=start_time,json=startTime,proto3"` + xxx_hidden_EndTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=end_time,json=endTime,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListScheduleMatchingTimesRequest) Reset() { + *x = ListScheduleMatchingTimesRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[92] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListScheduleMatchingTimesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListScheduleMatchingTimesRequest) ProtoMessage() {} + +func (x *ListScheduleMatchingTimesRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[92] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListScheduleMatchingTimesRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *ListScheduleMatchingTimesRequest) GetScheduleId() string { + if x != nil { + return x.xxx_hidden_ScheduleId + } + return "" +} + +func (x *ListScheduleMatchingTimesRequest) GetStartTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_StartTime + } + return nil +} + +func (x *ListScheduleMatchingTimesRequest) GetEndTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_EndTime + } + return nil +} + +func (x *ListScheduleMatchingTimesRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *ListScheduleMatchingTimesRequest) SetScheduleId(v string) { + x.xxx_hidden_ScheduleId = v +} + +func (x *ListScheduleMatchingTimesRequest) SetStartTime(v *timestamppb.Timestamp) { + x.xxx_hidden_StartTime = v +} + +func (x *ListScheduleMatchingTimesRequest) SetEndTime(v *timestamppb.Timestamp) { + x.xxx_hidden_EndTime = v +} + +func (x *ListScheduleMatchingTimesRequest) HasStartTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_StartTime != nil +} + +func (x *ListScheduleMatchingTimesRequest) HasEndTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_EndTime != nil +} + +func (x *ListScheduleMatchingTimesRequest) ClearStartTime() { + x.xxx_hidden_StartTime = nil +} + +func (x *ListScheduleMatchingTimesRequest) ClearEndTime() { + x.xxx_hidden_EndTime = nil +} + +type ListScheduleMatchingTimesRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The namespace of the schedule to query. + Namespace string + // The id of the schedule to query. + ScheduleId string + // Time range to query. + StartTime *timestamppb.Timestamp + EndTime *timestamppb.Timestamp +} + +func (b0 ListScheduleMatchingTimesRequest_builder) Build() *ListScheduleMatchingTimesRequest { + m0 := &ListScheduleMatchingTimesRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_ScheduleId = b.ScheduleId + x.xxx_hidden_StartTime = b.StartTime + x.xxx_hidden_EndTime = b.EndTime + return m0 +} + +type ListScheduleMatchingTimesResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_StartTime *[]*timestamppb.Timestamp `protobuf:"bytes,1,rep,name=start_time,json=startTime,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListScheduleMatchingTimesResponse) Reset() { + *x = ListScheduleMatchingTimesResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[93] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListScheduleMatchingTimesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListScheduleMatchingTimesResponse) ProtoMessage() {} + +func (x *ListScheduleMatchingTimesResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[93] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListScheduleMatchingTimesResponse) GetStartTime() []*timestamppb.Timestamp { + if x != nil { + if x.xxx_hidden_StartTime != nil { + return *x.xxx_hidden_StartTime + } + } + return nil +} + +func (x *ListScheduleMatchingTimesResponse) SetStartTime(v []*timestamppb.Timestamp) { + x.xxx_hidden_StartTime = &v +} + +type ListScheduleMatchingTimesResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + StartTime []*timestamppb.Timestamp +} + +func (b0 ListScheduleMatchingTimesResponse_builder) Build() *ListScheduleMatchingTimesResponse { + m0 := &ListScheduleMatchingTimesResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_StartTime = &b.StartTime + return m0 +} + +type DeleteScheduleRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_ScheduleId string `protobuf:"bytes,2,opt,name=schedule_id,json=scheduleId,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,3,opt,name=identity,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteScheduleRequest) Reset() { + *x = DeleteScheduleRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[94] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteScheduleRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteScheduleRequest) ProtoMessage() {} + +func (x *DeleteScheduleRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[94] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DeleteScheduleRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *DeleteScheduleRequest) GetScheduleId() string { + if x != nil { + return x.xxx_hidden_ScheduleId + } + return "" +} + +func (x *DeleteScheduleRequest) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *DeleteScheduleRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *DeleteScheduleRequest) SetScheduleId(v string) { + x.xxx_hidden_ScheduleId = v +} + +func (x *DeleteScheduleRequest) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +type DeleteScheduleRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The namespace of the schedule to delete. + Namespace string + // The id of the schedule to delete. + ScheduleId string + // The identity of the client who initiated this request. + Identity string +} + +func (b0 DeleteScheduleRequest_builder) Build() *DeleteScheduleRequest { + m0 := &DeleteScheduleRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_ScheduleId = b.ScheduleId + x.xxx_hidden_Identity = b.Identity + return m0 +} + +type DeleteScheduleResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteScheduleResponse) Reset() { + *x = DeleteScheduleResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[95] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteScheduleResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteScheduleResponse) ProtoMessage() {} + +func (x *DeleteScheduleResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[95] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type DeleteScheduleResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 DeleteScheduleResponse_builder) Build() *DeleteScheduleResponse { + m0 := &DeleteScheduleResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type ListSchedulesRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_MaximumPageSize int32 `protobuf:"varint,2,opt,name=maximum_page_size,json=maximumPageSize,proto3"` + xxx_hidden_NextPageToken []byte `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3"` + xxx_hidden_Query string `protobuf:"bytes,4,opt,name=query,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListSchedulesRequest) Reset() { + *x = ListSchedulesRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[96] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListSchedulesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListSchedulesRequest) ProtoMessage() {} + +func (x *ListSchedulesRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[96] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListSchedulesRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *ListSchedulesRequest) GetMaximumPageSize() int32 { + if x != nil { + return x.xxx_hidden_MaximumPageSize + } + return 0 +} + +func (x *ListSchedulesRequest) GetNextPageToken() []byte { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return nil +} + +func (x *ListSchedulesRequest) GetQuery() string { + if x != nil { + return x.xxx_hidden_Query + } + return "" +} + +func (x *ListSchedulesRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *ListSchedulesRequest) SetMaximumPageSize(v int32) { + x.xxx_hidden_MaximumPageSize = v +} + +func (x *ListSchedulesRequest) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_NextPageToken = v +} + +func (x *ListSchedulesRequest) SetQuery(v string) { + x.xxx_hidden_Query = v +} + +type ListSchedulesRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The namespace to list schedules in. + Namespace string + // How many to return at once. + MaximumPageSize int32 + // Token to get the next page of results. + NextPageToken []byte + // Query to filter schedules. + Query string +} + +func (b0 ListSchedulesRequest_builder) Build() *ListSchedulesRequest { + m0 := &ListSchedulesRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_MaximumPageSize = b.MaximumPageSize + x.xxx_hidden_NextPageToken = b.NextPageToken + x.xxx_hidden_Query = b.Query + return m0 +} + +type ListSchedulesResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Schedules *[]*v116.ScheduleListEntry `protobuf:"bytes,1,rep,name=schedules,proto3"` + xxx_hidden_NextPageToken []byte `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListSchedulesResponse) Reset() { + *x = ListSchedulesResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[97] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListSchedulesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListSchedulesResponse) ProtoMessage() {} + +func (x *ListSchedulesResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[97] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListSchedulesResponse) GetSchedules() []*v116.ScheduleListEntry { + if x != nil { + if x.xxx_hidden_Schedules != nil { + return *x.xxx_hidden_Schedules + } + } + return nil +} + +func (x *ListSchedulesResponse) GetNextPageToken() []byte { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return nil +} + +func (x *ListSchedulesResponse) SetSchedules(v []*v116.ScheduleListEntry) { + x.xxx_hidden_Schedules = &v +} + +func (x *ListSchedulesResponse) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_NextPageToken = v +} + +type ListSchedulesResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Schedules []*v116.ScheduleListEntry + NextPageToken []byte +} + +func (b0 ListSchedulesResponse_builder) Build() *ListSchedulesResponse { + m0 := &ListSchedulesResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Schedules = &b.Schedules + x.xxx_hidden_NextPageToken = b.NextPageToken + return m0 +} + +// [cleanup-wv-pre-release] +type UpdateWorkerBuildIdCompatibilityRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_TaskQueue string `protobuf:"bytes,2,opt,name=task_queue,json=taskQueue,proto3"` + xxx_hidden_Operation isUpdateWorkerBuildIdCompatibilityRequest_Operation `protobuf_oneof:"operation"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest) Reset() { + *x = UpdateWorkerBuildIdCompatibilityRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[98] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateWorkerBuildIdCompatibilityRequest) ProtoMessage() {} + +func (x *UpdateWorkerBuildIdCompatibilityRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[98] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest) GetTaskQueue() string { + if x != nil { + return x.xxx_hidden_TaskQueue + } + return "" +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest) GetAddNewBuildIdInNewDefaultSet() string { + if x != nil { + if x, ok := x.xxx_hidden_Operation.(*updateWorkerBuildIdCompatibilityRequest_AddNewBuildIdInNewDefaultSet); ok { + return x.AddNewBuildIdInNewDefaultSet + } + } + return "" +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest) GetAddNewCompatibleBuildId() *UpdateWorkerBuildIdCompatibilityRequest_AddNewCompatibleVersion { + if x != nil { + if x, ok := x.xxx_hidden_Operation.(*updateWorkerBuildIdCompatibilityRequest_AddNewCompatibleBuildId); ok { + return x.AddNewCompatibleBuildId + } + } + return nil +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest) GetPromoteSetByBuildId() string { + if x != nil { + if x, ok := x.xxx_hidden_Operation.(*updateWorkerBuildIdCompatibilityRequest_PromoteSetByBuildId); ok { + return x.PromoteSetByBuildId + } + } + return "" +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest) GetPromoteBuildIdWithinSet() string { + if x != nil { + if x, ok := x.xxx_hidden_Operation.(*updateWorkerBuildIdCompatibilityRequest_PromoteBuildIdWithinSet); ok { + return x.PromoteBuildIdWithinSet + } + } + return "" +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest) GetMergeSets() *UpdateWorkerBuildIdCompatibilityRequest_MergeSets { + if x != nil { + if x, ok := x.xxx_hidden_Operation.(*updateWorkerBuildIdCompatibilityRequest_MergeSets_); ok { + return x.MergeSets + } + } + return nil +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest) SetTaskQueue(v string) { + x.xxx_hidden_TaskQueue = v +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest) SetAddNewBuildIdInNewDefaultSet(v string) { + x.xxx_hidden_Operation = &updateWorkerBuildIdCompatibilityRequest_AddNewBuildIdInNewDefaultSet{v} +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest) SetAddNewCompatibleBuildId(v *UpdateWorkerBuildIdCompatibilityRequest_AddNewCompatibleVersion) { + if v == nil { + x.xxx_hidden_Operation = nil + return + } + x.xxx_hidden_Operation = &updateWorkerBuildIdCompatibilityRequest_AddNewCompatibleBuildId{v} +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest) SetPromoteSetByBuildId(v string) { + x.xxx_hidden_Operation = &updateWorkerBuildIdCompatibilityRequest_PromoteSetByBuildId{v} +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest) SetPromoteBuildIdWithinSet(v string) { + x.xxx_hidden_Operation = &updateWorkerBuildIdCompatibilityRequest_PromoteBuildIdWithinSet{v} +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest) SetMergeSets(v *UpdateWorkerBuildIdCompatibilityRequest_MergeSets) { + if v == nil { + x.xxx_hidden_Operation = nil + return + } + x.xxx_hidden_Operation = &updateWorkerBuildIdCompatibilityRequest_MergeSets_{v} +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest) HasOperation() bool { + if x == nil { + return false + } + return x.xxx_hidden_Operation != nil +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest) HasAddNewBuildIdInNewDefaultSet() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Operation.(*updateWorkerBuildIdCompatibilityRequest_AddNewBuildIdInNewDefaultSet) + return ok +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest) HasAddNewCompatibleBuildId() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Operation.(*updateWorkerBuildIdCompatibilityRequest_AddNewCompatibleBuildId) + return ok +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest) HasPromoteSetByBuildId() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Operation.(*updateWorkerBuildIdCompatibilityRequest_PromoteSetByBuildId) + return ok +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest) HasPromoteBuildIdWithinSet() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Operation.(*updateWorkerBuildIdCompatibilityRequest_PromoteBuildIdWithinSet) + return ok +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest) HasMergeSets() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Operation.(*updateWorkerBuildIdCompatibilityRequest_MergeSets_) + return ok +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest) ClearOperation() { + x.xxx_hidden_Operation = nil +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest) ClearAddNewBuildIdInNewDefaultSet() { + if _, ok := x.xxx_hidden_Operation.(*updateWorkerBuildIdCompatibilityRequest_AddNewBuildIdInNewDefaultSet); ok { + x.xxx_hidden_Operation = nil + } +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest) ClearAddNewCompatibleBuildId() { + if _, ok := x.xxx_hidden_Operation.(*updateWorkerBuildIdCompatibilityRequest_AddNewCompatibleBuildId); ok { + x.xxx_hidden_Operation = nil + } +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest) ClearPromoteSetByBuildId() { + if _, ok := x.xxx_hidden_Operation.(*updateWorkerBuildIdCompatibilityRequest_PromoteSetByBuildId); ok { + x.xxx_hidden_Operation = nil + } +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest) ClearPromoteBuildIdWithinSet() { + if _, ok := x.xxx_hidden_Operation.(*updateWorkerBuildIdCompatibilityRequest_PromoteBuildIdWithinSet); ok { + x.xxx_hidden_Operation = nil + } +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest) ClearMergeSets() { + if _, ok := x.xxx_hidden_Operation.(*updateWorkerBuildIdCompatibilityRequest_MergeSets_); ok { + x.xxx_hidden_Operation = nil + } +} + +const UpdateWorkerBuildIdCompatibilityRequest_Operation_not_set_case case_UpdateWorkerBuildIdCompatibilityRequest_Operation = 0 +const UpdateWorkerBuildIdCompatibilityRequest_AddNewBuildIdInNewDefaultSet_case case_UpdateWorkerBuildIdCompatibilityRequest_Operation = 3 +const UpdateWorkerBuildIdCompatibilityRequest_AddNewCompatibleBuildId_case case_UpdateWorkerBuildIdCompatibilityRequest_Operation = 4 +const UpdateWorkerBuildIdCompatibilityRequest_PromoteSetByBuildId_case case_UpdateWorkerBuildIdCompatibilityRequest_Operation = 5 +const UpdateWorkerBuildIdCompatibilityRequest_PromoteBuildIdWithinSet_case case_UpdateWorkerBuildIdCompatibilityRequest_Operation = 6 +const UpdateWorkerBuildIdCompatibilityRequest_MergeSets_case case_UpdateWorkerBuildIdCompatibilityRequest_Operation = 7 + +func (x *UpdateWorkerBuildIdCompatibilityRequest) WhichOperation() case_UpdateWorkerBuildIdCompatibilityRequest_Operation { + if x == nil { + return UpdateWorkerBuildIdCompatibilityRequest_Operation_not_set_case + } + switch x.xxx_hidden_Operation.(type) { + case *updateWorkerBuildIdCompatibilityRequest_AddNewBuildIdInNewDefaultSet: + return UpdateWorkerBuildIdCompatibilityRequest_AddNewBuildIdInNewDefaultSet_case + case *updateWorkerBuildIdCompatibilityRequest_AddNewCompatibleBuildId: + return UpdateWorkerBuildIdCompatibilityRequest_AddNewCompatibleBuildId_case + case *updateWorkerBuildIdCompatibilityRequest_PromoteSetByBuildId: + return UpdateWorkerBuildIdCompatibilityRequest_PromoteSetByBuildId_case + case *updateWorkerBuildIdCompatibilityRequest_PromoteBuildIdWithinSet: + return UpdateWorkerBuildIdCompatibilityRequest_PromoteBuildIdWithinSet_case + case *updateWorkerBuildIdCompatibilityRequest_MergeSets_: + return UpdateWorkerBuildIdCompatibilityRequest_MergeSets_case + default: + return UpdateWorkerBuildIdCompatibilityRequest_Operation_not_set_case + } +} + +type UpdateWorkerBuildIdCompatibilityRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + // Must be set, the task queue to apply changes to. Because all workers on a given task queue + // must have the same set of workflow & activity implementations, there is no reason to specify + // a task queue type here. + TaskQueue string + // Fields of oneof xxx_hidden_Operation: + // A new build id. This operation will create a new set which will be the new overall + // default version for the queue, with this id as its only member. This new set is + // incompatible with all previous sets/versions. + // + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: In makes perfect sense here. --) + AddNewBuildIdInNewDefaultSet *string + // Adds a new id to an existing compatible set, see sub-message definition for more. + AddNewCompatibleBuildId *UpdateWorkerBuildIdCompatibilityRequest_AddNewCompatibleVersion + // Promote an existing set to be the current default (if it isn't already) by targeting + // an existing build id within it. This field's value is the extant build id. + // + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: Names are hard. --) + PromoteSetByBuildId *string + // Promote an existing build id within some set to be the current default for that set. + // + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: Within makes perfect sense here. --) + PromoteBuildIdWithinSet *string + // Merge two existing sets together, thus declaring all build IDs in both sets compatible + // with one another. The primary set's default will become the default for the merged set. + // This is useful if you've accidentally declared a new ID as incompatible you meant to + // declare as compatible. The unusual case of incomplete replication during failover could + // also result in a split set, which this operation can repair. + MergeSets *UpdateWorkerBuildIdCompatibilityRequest_MergeSets + // -- end of xxx_hidden_Operation +} + +func (b0 UpdateWorkerBuildIdCompatibilityRequest_builder) Build() *UpdateWorkerBuildIdCompatibilityRequest { + m0 := &UpdateWorkerBuildIdCompatibilityRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_TaskQueue = b.TaskQueue + if b.AddNewBuildIdInNewDefaultSet != nil { + x.xxx_hidden_Operation = &updateWorkerBuildIdCompatibilityRequest_AddNewBuildIdInNewDefaultSet{*b.AddNewBuildIdInNewDefaultSet} + } + if b.AddNewCompatibleBuildId != nil { + x.xxx_hidden_Operation = &updateWorkerBuildIdCompatibilityRequest_AddNewCompatibleBuildId{b.AddNewCompatibleBuildId} + } + if b.PromoteSetByBuildId != nil { + x.xxx_hidden_Operation = &updateWorkerBuildIdCompatibilityRequest_PromoteSetByBuildId{*b.PromoteSetByBuildId} + } + if b.PromoteBuildIdWithinSet != nil { + x.xxx_hidden_Operation = &updateWorkerBuildIdCompatibilityRequest_PromoteBuildIdWithinSet{*b.PromoteBuildIdWithinSet} + } + if b.MergeSets != nil { + x.xxx_hidden_Operation = &updateWorkerBuildIdCompatibilityRequest_MergeSets_{b.MergeSets} + } + return m0 +} + +type case_UpdateWorkerBuildIdCompatibilityRequest_Operation protoreflect.FieldNumber + +func (x case_UpdateWorkerBuildIdCompatibilityRequest_Operation) String() string { + switch x { + case UpdateWorkerBuildIdCompatibilityRequest_Operation_not_set_case: + return "UpdateWorkerBuildIdCompatibilityRequestOperationNotSetCase" + case UpdateWorkerBuildIdCompatibilityRequest_AddNewBuildIdInNewDefaultSet_case: + return "UpdateWorkerBuildIdCompatibilityRequestAddNewBuildIdInNewDefaultSetCase" + case UpdateWorkerBuildIdCompatibilityRequest_AddNewCompatibleBuildId_case: + return "UpdateWorkerBuildIdCompatibilityRequestAddNewCompatibleBuildIdCase" + + // A new build id. This operation will create a new set which will be the new overall + // default version for the queue, with this id as its only member. This new set is + // incompatible with all previous sets/versions. + // + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: In makes perfect sense here. --) + case UpdateWorkerBuildIdCompatibilityRequest_PromoteSetByBuildId_case: + return "UpdateWorkerBuildIdCompatibilityRequestPromoteSetByBuildIdCase" + case UpdateWorkerBuildIdCompatibilityRequest_PromoteBuildIdWithinSet_case: + return "UpdateWorkerBuildIdCompatibilityRequestPromoteBuildIdWithinSetCase" + case UpdateWorkerBuildIdCompatibilityRequest_MergeSets_case: + return "UpdateWorkerBuildIdCompatibilityRequestMergeSetsCase" + default: + return strconv.Itoa(int(x)) + } + +} + +type isUpdateWorkerBuildIdCompatibilityRequest_Operation interface { + isUpdateWorkerBuildIdCompatibilityRequest_Operation() +} + +type updateWorkerBuildIdCompatibilityRequest_AddNewBuildIdInNewDefaultSet struct { + AddNewBuildIdInNewDefaultSet string `protobuf:"bytes,3,opt,name=add_new_build_id_in_new_default_set,json=addNewBuildIdInNewDefaultSet,proto3,oneof"` +} + +type updateWorkerBuildIdCompatibilityRequest_AddNewCompatibleBuildId struct { + // Adds a new id to an existing compatible set, see sub-message definition for more. + AddNewCompatibleBuildId *UpdateWorkerBuildIdCompatibilityRequest_AddNewCompatibleVersion `protobuf:"bytes,4,opt,name=add_new_compatible_build_id,json=addNewCompatibleBuildId,proto3,oneof"` +} + +type updateWorkerBuildIdCompatibilityRequest_PromoteSetByBuildId struct { + // Promote an existing set to be the current default (if it isn't already) by targeting + // an existing build id within it. This field's value is the extant build id. + // + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: Names are hard. --) + PromoteSetByBuildId string `protobuf:"bytes,5,opt,name=promote_set_by_build_id,json=promoteSetByBuildId,proto3,oneof"` +} + +type updateWorkerBuildIdCompatibilityRequest_PromoteBuildIdWithinSet struct { + // Promote an existing build id within some set to be the current default for that set. + // + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: Within makes perfect sense here. --) + PromoteBuildIdWithinSet string `protobuf:"bytes,6,opt,name=promote_build_id_within_set,json=promoteBuildIdWithinSet,proto3,oneof"` +} + +type updateWorkerBuildIdCompatibilityRequest_MergeSets_ struct { + // Merge two existing sets together, thus declaring all build IDs in both sets compatible + // with one another. The primary set's default will become the default for the merged set. + // This is useful if you've accidentally declared a new ID as incompatible you meant to + // declare as compatible. The unusual case of incomplete replication during failover could + // also result in a split set, which this operation can repair. + MergeSets *UpdateWorkerBuildIdCompatibilityRequest_MergeSets `protobuf:"bytes,7,opt,name=merge_sets,json=mergeSets,proto3,oneof"` +} + +func (*updateWorkerBuildIdCompatibilityRequest_AddNewBuildIdInNewDefaultSet) isUpdateWorkerBuildIdCompatibilityRequest_Operation() { +} + +func (*updateWorkerBuildIdCompatibilityRequest_AddNewCompatibleBuildId) isUpdateWorkerBuildIdCompatibilityRequest_Operation() { +} + +func (*updateWorkerBuildIdCompatibilityRequest_PromoteSetByBuildId) isUpdateWorkerBuildIdCompatibilityRequest_Operation() { +} + +func (*updateWorkerBuildIdCompatibilityRequest_PromoteBuildIdWithinSet) isUpdateWorkerBuildIdCompatibilityRequest_Operation() { +} + +func (*updateWorkerBuildIdCompatibilityRequest_MergeSets_) isUpdateWorkerBuildIdCompatibilityRequest_Operation() { +} + +// [cleanup-wv-pre-release] +type UpdateWorkerBuildIdCompatibilityResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateWorkerBuildIdCompatibilityResponse) Reset() { + *x = UpdateWorkerBuildIdCompatibilityResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[99] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateWorkerBuildIdCompatibilityResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateWorkerBuildIdCompatibilityResponse) ProtoMessage() {} + +func (x *UpdateWorkerBuildIdCompatibilityResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[99] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type UpdateWorkerBuildIdCompatibilityResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 UpdateWorkerBuildIdCompatibilityResponse_builder) Build() *UpdateWorkerBuildIdCompatibilityResponse { + m0 := &UpdateWorkerBuildIdCompatibilityResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +// [cleanup-wv-pre-release] +type GetWorkerBuildIdCompatibilityRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_TaskQueue string `protobuf:"bytes,2,opt,name=task_queue,json=taskQueue,proto3"` + xxx_hidden_MaxSets int32 `protobuf:"varint,3,opt,name=max_sets,json=maxSets,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetWorkerBuildIdCompatibilityRequest) Reset() { + *x = GetWorkerBuildIdCompatibilityRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[100] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetWorkerBuildIdCompatibilityRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetWorkerBuildIdCompatibilityRequest) ProtoMessage() {} + +func (x *GetWorkerBuildIdCompatibilityRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[100] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetWorkerBuildIdCompatibilityRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *GetWorkerBuildIdCompatibilityRequest) GetTaskQueue() string { + if x != nil { + return x.xxx_hidden_TaskQueue + } + return "" +} + +func (x *GetWorkerBuildIdCompatibilityRequest) GetMaxSets() int32 { + if x != nil { + return x.xxx_hidden_MaxSets + } + return 0 +} + +func (x *GetWorkerBuildIdCompatibilityRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *GetWorkerBuildIdCompatibilityRequest) SetTaskQueue(v string) { + x.xxx_hidden_TaskQueue = v +} + +func (x *GetWorkerBuildIdCompatibilityRequest) SetMaxSets(v int32) { + x.xxx_hidden_MaxSets = v +} + +type GetWorkerBuildIdCompatibilityRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + // Must be set, the task queue to interrogate about worker id compatibility. + TaskQueue string + // Limits how many compatible sets will be returned. Specify 1 to only return the current + // default major version set. 0 returns all sets. + MaxSets int32 +} + +func (b0 GetWorkerBuildIdCompatibilityRequest_builder) Build() *GetWorkerBuildIdCompatibilityRequest { + m0 := &GetWorkerBuildIdCompatibilityRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_TaskQueue = b.TaskQueue + x.xxx_hidden_MaxSets = b.MaxSets + return m0 +} + +// [cleanup-wv-pre-release] +type GetWorkerBuildIdCompatibilityResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_MajorVersionSets *[]*v14.CompatibleVersionSet `protobuf:"bytes,1,rep,name=major_version_sets,json=majorVersionSets,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetWorkerBuildIdCompatibilityResponse) Reset() { + *x = GetWorkerBuildIdCompatibilityResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[101] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetWorkerBuildIdCompatibilityResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetWorkerBuildIdCompatibilityResponse) ProtoMessage() {} + +func (x *GetWorkerBuildIdCompatibilityResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[101] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetWorkerBuildIdCompatibilityResponse) GetMajorVersionSets() []*v14.CompatibleVersionSet { + if x != nil { + if x.xxx_hidden_MajorVersionSets != nil { + return *x.xxx_hidden_MajorVersionSets + } + } + return nil +} + +func (x *GetWorkerBuildIdCompatibilityResponse) SetMajorVersionSets(v []*v14.CompatibleVersionSet) { + x.xxx_hidden_MajorVersionSets = &v +} + +type GetWorkerBuildIdCompatibilityResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Major version sets, in order from oldest to newest. The last element of the list will always + // be the current default major version. IE: New workflows will target the most recent version + // in that version set. + // + // There may be fewer sets returned than exist, if the request chose to limit this response. + MajorVersionSets []*v14.CompatibleVersionSet +} + +func (b0 GetWorkerBuildIdCompatibilityResponse_builder) Build() *GetWorkerBuildIdCompatibilityResponse { + m0 := &GetWorkerBuildIdCompatibilityResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_MajorVersionSets = &b.MajorVersionSets + return m0 +} + +// (-- api-linter: core::0134::request-mask-required=disabled +// +// aip.dev/not-precedent: UpdateNamespace RPC doesn't follow Google API format. --) +// +// (-- api-linter: core::0134::request-resource-required=disabled +// +// aip.dev/not-precedent: GetWorkerBuildIdCompatibilityRequest RPC doesn't follow Google API format. --) +// +// [cleanup-wv-pre-release] +type UpdateWorkerVersioningRulesRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_TaskQueue string `protobuf:"bytes,2,opt,name=task_queue,json=taskQueue,proto3"` + xxx_hidden_ConflictToken []byte `protobuf:"bytes,3,opt,name=conflict_token,json=conflictToken,proto3"` + xxx_hidden_Operation isUpdateWorkerVersioningRulesRequest_Operation `protobuf_oneof:"operation"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateWorkerVersioningRulesRequest) Reset() { + *x = UpdateWorkerVersioningRulesRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[102] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateWorkerVersioningRulesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateWorkerVersioningRulesRequest) ProtoMessage() {} + +func (x *UpdateWorkerVersioningRulesRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[102] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UpdateWorkerVersioningRulesRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *UpdateWorkerVersioningRulesRequest) GetTaskQueue() string { + if x != nil { + return x.xxx_hidden_TaskQueue + } + return "" +} + +func (x *UpdateWorkerVersioningRulesRequest) GetConflictToken() []byte { + if x != nil { + return x.xxx_hidden_ConflictToken + } + return nil +} + +func (x *UpdateWorkerVersioningRulesRequest) GetInsertAssignmentRule() *UpdateWorkerVersioningRulesRequest_InsertBuildIdAssignmentRule { + if x != nil { + if x, ok := x.xxx_hidden_Operation.(*updateWorkerVersioningRulesRequest_InsertAssignmentRule); ok { + return x.InsertAssignmentRule + } + } + return nil +} + +func (x *UpdateWorkerVersioningRulesRequest) GetReplaceAssignmentRule() *UpdateWorkerVersioningRulesRequest_ReplaceBuildIdAssignmentRule { + if x != nil { + if x, ok := x.xxx_hidden_Operation.(*updateWorkerVersioningRulesRequest_ReplaceAssignmentRule); ok { + return x.ReplaceAssignmentRule + } + } + return nil +} + +func (x *UpdateWorkerVersioningRulesRequest) GetDeleteAssignmentRule() *UpdateWorkerVersioningRulesRequest_DeleteBuildIdAssignmentRule { + if x != nil { + if x, ok := x.xxx_hidden_Operation.(*updateWorkerVersioningRulesRequest_DeleteAssignmentRule); ok { + return x.DeleteAssignmentRule + } + } + return nil +} + +func (x *UpdateWorkerVersioningRulesRequest) GetAddCompatibleRedirectRule() *UpdateWorkerVersioningRulesRequest_AddCompatibleBuildIdRedirectRule { + if x != nil { + if x, ok := x.xxx_hidden_Operation.(*updateWorkerVersioningRulesRequest_AddCompatibleRedirectRule); ok { + return x.AddCompatibleRedirectRule + } + } + return nil +} + +func (x *UpdateWorkerVersioningRulesRequest) GetReplaceCompatibleRedirectRule() *UpdateWorkerVersioningRulesRequest_ReplaceCompatibleBuildIdRedirectRule { + if x != nil { + if x, ok := x.xxx_hidden_Operation.(*updateWorkerVersioningRulesRequest_ReplaceCompatibleRedirectRule); ok { + return x.ReplaceCompatibleRedirectRule + } + } + return nil +} + +func (x *UpdateWorkerVersioningRulesRequest) GetDeleteCompatibleRedirectRule() *UpdateWorkerVersioningRulesRequest_DeleteCompatibleBuildIdRedirectRule { + if x != nil { + if x, ok := x.xxx_hidden_Operation.(*updateWorkerVersioningRulesRequest_DeleteCompatibleRedirectRule); ok { + return x.DeleteCompatibleRedirectRule + } + } + return nil +} + +func (x *UpdateWorkerVersioningRulesRequest) GetCommitBuildId() *UpdateWorkerVersioningRulesRequest_CommitBuildId { + if x != nil { + if x, ok := x.xxx_hidden_Operation.(*updateWorkerVersioningRulesRequest_CommitBuildId_); ok { + return x.CommitBuildId + } + } + return nil +} + +func (x *UpdateWorkerVersioningRulesRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *UpdateWorkerVersioningRulesRequest) SetTaskQueue(v string) { + x.xxx_hidden_TaskQueue = v +} + +func (x *UpdateWorkerVersioningRulesRequest) SetConflictToken(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_ConflictToken = v +} + +func (x *UpdateWorkerVersioningRulesRequest) SetInsertAssignmentRule(v *UpdateWorkerVersioningRulesRequest_InsertBuildIdAssignmentRule) { + if v == nil { + x.xxx_hidden_Operation = nil + return + } + x.xxx_hidden_Operation = &updateWorkerVersioningRulesRequest_InsertAssignmentRule{v} +} + +func (x *UpdateWorkerVersioningRulesRequest) SetReplaceAssignmentRule(v *UpdateWorkerVersioningRulesRequest_ReplaceBuildIdAssignmentRule) { + if v == nil { + x.xxx_hidden_Operation = nil + return + } + x.xxx_hidden_Operation = &updateWorkerVersioningRulesRequest_ReplaceAssignmentRule{v} +} + +func (x *UpdateWorkerVersioningRulesRequest) SetDeleteAssignmentRule(v *UpdateWorkerVersioningRulesRequest_DeleteBuildIdAssignmentRule) { + if v == nil { + x.xxx_hidden_Operation = nil + return + } + x.xxx_hidden_Operation = &updateWorkerVersioningRulesRequest_DeleteAssignmentRule{v} +} + +func (x *UpdateWorkerVersioningRulesRequest) SetAddCompatibleRedirectRule(v *UpdateWorkerVersioningRulesRequest_AddCompatibleBuildIdRedirectRule) { + if v == nil { + x.xxx_hidden_Operation = nil + return + } + x.xxx_hidden_Operation = &updateWorkerVersioningRulesRequest_AddCompatibleRedirectRule{v} +} + +func (x *UpdateWorkerVersioningRulesRequest) SetReplaceCompatibleRedirectRule(v *UpdateWorkerVersioningRulesRequest_ReplaceCompatibleBuildIdRedirectRule) { + if v == nil { + x.xxx_hidden_Operation = nil + return + } + x.xxx_hidden_Operation = &updateWorkerVersioningRulesRequest_ReplaceCompatibleRedirectRule{v} +} + +func (x *UpdateWorkerVersioningRulesRequest) SetDeleteCompatibleRedirectRule(v *UpdateWorkerVersioningRulesRequest_DeleteCompatibleBuildIdRedirectRule) { + if v == nil { + x.xxx_hidden_Operation = nil + return + } + x.xxx_hidden_Operation = &updateWorkerVersioningRulesRequest_DeleteCompatibleRedirectRule{v} +} + +func (x *UpdateWorkerVersioningRulesRequest) SetCommitBuildId(v *UpdateWorkerVersioningRulesRequest_CommitBuildId) { + if v == nil { + x.xxx_hidden_Operation = nil + return + } + x.xxx_hidden_Operation = &updateWorkerVersioningRulesRequest_CommitBuildId_{v} +} + +func (x *UpdateWorkerVersioningRulesRequest) HasOperation() bool { + if x == nil { + return false + } + return x.xxx_hidden_Operation != nil +} + +func (x *UpdateWorkerVersioningRulesRequest) HasInsertAssignmentRule() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Operation.(*updateWorkerVersioningRulesRequest_InsertAssignmentRule) + return ok +} + +func (x *UpdateWorkerVersioningRulesRequest) HasReplaceAssignmentRule() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Operation.(*updateWorkerVersioningRulesRequest_ReplaceAssignmentRule) + return ok +} + +func (x *UpdateWorkerVersioningRulesRequest) HasDeleteAssignmentRule() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Operation.(*updateWorkerVersioningRulesRequest_DeleteAssignmentRule) + return ok +} + +func (x *UpdateWorkerVersioningRulesRequest) HasAddCompatibleRedirectRule() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Operation.(*updateWorkerVersioningRulesRequest_AddCompatibleRedirectRule) + return ok +} + +func (x *UpdateWorkerVersioningRulesRequest) HasReplaceCompatibleRedirectRule() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Operation.(*updateWorkerVersioningRulesRequest_ReplaceCompatibleRedirectRule) + return ok +} + +func (x *UpdateWorkerVersioningRulesRequest) HasDeleteCompatibleRedirectRule() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Operation.(*updateWorkerVersioningRulesRequest_DeleteCompatibleRedirectRule) + return ok +} + +func (x *UpdateWorkerVersioningRulesRequest) HasCommitBuildId() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Operation.(*updateWorkerVersioningRulesRequest_CommitBuildId_) + return ok +} + +func (x *UpdateWorkerVersioningRulesRequest) ClearOperation() { + x.xxx_hidden_Operation = nil +} + +func (x *UpdateWorkerVersioningRulesRequest) ClearInsertAssignmentRule() { + if _, ok := x.xxx_hidden_Operation.(*updateWorkerVersioningRulesRequest_InsertAssignmentRule); ok { + x.xxx_hidden_Operation = nil + } +} + +func (x *UpdateWorkerVersioningRulesRequest) ClearReplaceAssignmentRule() { + if _, ok := x.xxx_hidden_Operation.(*updateWorkerVersioningRulesRequest_ReplaceAssignmentRule); ok { + x.xxx_hidden_Operation = nil + } +} + +func (x *UpdateWorkerVersioningRulesRequest) ClearDeleteAssignmentRule() { + if _, ok := x.xxx_hidden_Operation.(*updateWorkerVersioningRulesRequest_DeleteAssignmentRule); ok { + x.xxx_hidden_Operation = nil + } +} + +func (x *UpdateWorkerVersioningRulesRequest) ClearAddCompatibleRedirectRule() { + if _, ok := x.xxx_hidden_Operation.(*updateWorkerVersioningRulesRequest_AddCompatibleRedirectRule); ok { + x.xxx_hidden_Operation = nil + } +} + +func (x *UpdateWorkerVersioningRulesRequest) ClearReplaceCompatibleRedirectRule() { + if _, ok := x.xxx_hidden_Operation.(*updateWorkerVersioningRulesRequest_ReplaceCompatibleRedirectRule); ok { + x.xxx_hidden_Operation = nil + } +} + +func (x *UpdateWorkerVersioningRulesRequest) ClearDeleteCompatibleRedirectRule() { + if _, ok := x.xxx_hidden_Operation.(*updateWorkerVersioningRulesRequest_DeleteCompatibleRedirectRule); ok { + x.xxx_hidden_Operation = nil + } +} + +func (x *UpdateWorkerVersioningRulesRequest) ClearCommitBuildId() { + if _, ok := x.xxx_hidden_Operation.(*updateWorkerVersioningRulesRequest_CommitBuildId_); ok { + x.xxx_hidden_Operation = nil + } +} + +const UpdateWorkerVersioningRulesRequest_Operation_not_set_case case_UpdateWorkerVersioningRulesRequest_Operation = 0 +const UpdateWorkerVersioningRulesRequest_InsertAssignmentRule_case case_UpdateWorkerVersioningRulesRequest_Operation = 4 +const UpdateWorkerVersioningRulesRequest_ReplaceAssignmentRule_case case_UpdateWorkerVersioningRulesRequest_Operation = 5 +const UpdateWorkerVersioningRulesRequest_DeleteAssignmentRule_case case_UpdateWorkerVersioningRulesRequest_Operation = 6 +const UpdateWorkerVersioningRulesRequest_AddCompatibleRedirectRule_case case_UpdateWorkerVersioningRulesRequest_Operation = 7 +const UpdateWorkerVersioningRulesRequest_ReplaceCompatibleRedirectRule_case case_UpdateWorkerVersioningRulesRequest_Operation = 8 +const UpdateWorkerVersioningRulesRequest_DeleteCompatibleRedirectRule_case case_UpdateWorkerVersioningRulesRequest_Operation = 9 +const UpdateWorkerVersioningRulesRequest_CommitBuildId_case case_UpdateWorkerVersioningRulesRequest_Operation = 10 + +func (x *UpdateWorkerVersioningRulesRequest) WhichOperation() case_UpdateWorkerVersioningRulesRequest_Operation { + if x == nil { + return UpdateWorkerVersioningRulesRequest_Operation_not_set_case + } + switch x.xxx_hidden_Operation.(type) { + case *updateWorkerVersioningRulesRequest_InsertAssignmentRule: + return UpdateWorkerVersioningRulesRequest_InsertAssignmentRule_case + case *updateWorkerVersioningRulesRequest_ReplaceAssignmentRule: + return UpdateWorkerVersioningRulesRequest_ReplaceAssignmentRule_case + case *updateWorkerVersioningRulesRequest_DeleteAssignmentRule: + return UpdateWorkerVersioningRulesRequest_DeleteAssignmentRule_case + case *updateWorkerVersioningRulesRequest_AddCompatibleRedirectRule: + return UpdateWorkerVersioningRulesRequest_AddCompatibleRedirectRule_case + case *updateWorkerVersioningRulesRequest_ReplaceCompatibleRedirectRule: + return UpdateWorkerVersioningRulesRequest_ReplaceCompatibleRedirectRule_case + case *updateWorkerVersioningRulesRequest_DeleteCompatibleRedirectRule: + return UpdateWorkerVersioningRulesRequest_DeleteCompatibleRedirectRule_case + case *updateWorkerVersioningRulesRequest_CommitBuildId_: + return UpdateWorkerVersioningRulesRequest_CommitBuildId_case + default: + return UpdateWorkerVersioningRulesRequest_Operation_not_set_case + } +} + +type UpdateWorkerVersioningRulesRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + TaskQueue string + // A valid conflict_token can be taken from the previous + // ListWorkerVersioningRulesResponse or UpdateWorkerVersioningRulesResponse. + // An invalid token will cause this request to fail, ensuring that if the rules + // for this Task Queue have been modified between the previous and current + // operation, the request will fail instead of causing an unpredictable mutation. + ConflictToken []byte + // Fields of oneof xxx_hidden_Operation: + InsertAssignmentRule *UpdateWorkerVersioningRulesRequest_InsertBuildIdAssignmentRule + ReplaceAssignmentRule *UpdateWorkerVersioningRulesRequest_ReplaceBuildIdAssignmentRule + DeleteAssignmentRule *UpdateWorkerVersioningRulesRequest_DeleteBuildIdAssignmentRule + AddCompatibleRedirectRule *UpdateWorkerVersioningRulesRequest_AddCompatibleBuildIdRedirectRule + ReplaceCompatibleRedirectRule *UpdateWorkerVersioningRulesRequest_ReplaceCompatibleBuildIdRedirectRule + DeleteCompatibleRedirectRule *UpdateWorkerVersioningRulesRequest_DeleteCompatibleBuildIdRedirectRule + CommitBuildId *UpdateWorkerVersioningRulesRequest_CommitBuildId + // -- end of xxx_hidden_Operation +} + +func (b0 UpdateWorkerVersioningRulesRequest_builder) Build() *UpdateWorkerVersioningRulesRequest { + m0 := &UpdateWorkerVersioningRulesRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_TaskQueue = b.TaskQueue + x.xxx_hidden_ConflictToken = b.ConflictToken + if b.InsertAssignmentRule != nil { + x.xxx_hidden_Operation = &updateWorkerVersioningRulesRequest_InsertAssignmentRule{b.InsertAssignmentRule} + } + if b.ReplaceAssignmentRule != nil { + x.xxx_hidden_Operation = &updateWorkerVersioningRulesRequest_ReplaceAssignmentRule{b.ReplaceAssignmentRule} + } + if b.DeleteAssignmentRule != nil { + x.xxx_hidden_Operation = &updateWorkerVersioningRulesRequest_DeleteAssignmentRule{b.DeleteAssignmentRule} + } + if b.AddCompatibleRedirectRule != nil { + x.xxx_hidden_Operation = &updateWorkerVersioningRulesRequest_AddCompatibleRedirectRule{b.AddCompatibleRedirectRule} + } + if b.ReplaceCompatibleRedirectRule != nil { + x.xxx_hidden_Operation = &updateWorkerVersioningRulesRequest_ReplaceCompatibleRedirectRule{b.ReplaceCompatibleRedirectRule} + } + if b.DeleteCompatibleRedirectRule != nil { + x.xxx_hidden_Operation = &updateWorkerVersioningRulesRequest_DeleteCompatibleRedirectRule{b.DeleteCompatibleRedirectRule} + } + if b.CommitBuildId != nil { + x.xxx_hidden_Operation = &updateWorkerVersioningRulesRequest_CommitBuildId_{b.CommitBuildId} + } + return m0 +} + +type case_UpdateWorkerVersioningRulesRequest_Operation protoreflect.FieldNumber + +func (x case_UpdateWorkerVersioningRulesRequest_Operation) String() string { + switch x { + case UpdateWorkerVersioningRulesRequest_Operation_not_set_case: + return "UpdateWorkerVersioningRulesRequestOperationNotSetCase" + case UpdateWorkerVersioningRulesRequest_InsertAssignmentRule_case: + return "UpdateWorkerVersioningRulesRequestInsertAssignmentRuleCase" + case UpdateWorkerVersioningRulesRequest_ReplaceAssignmentRule_case: + return "UpdateWorkerVersioningRulesRequestReplaceAssignmentRuleCase" + case UpdateWorkerVersioningRulesRequest_DeleteAssignmentRule_case: + return "UpdateWorkerVersioningRulesRequestDeleteAssignmentRuleCase" + case UpdateWorkerVersioningRulesRequest_AddCompatibleRedirectRule_case: + return "UpdateWorkerVersioningRulesRequestAddCompatibleRedirectRuleCase" + case UpdateWorkerVersioningRulesRequest_ReplaceCompatibleRedirectRule_case: + return "UpdateWorkerVersioningRulesRequestReplaceCompatibleRedirectRuleCase" + case UpdateWorkerVersioningRulesRequest_DeleteCompatibleRedirectRule_case: + return "UpdateWorkerVersioningRulesRequestDeleteCompatibleRedirectRuleCase" + case UpdateWorkerVersioningRulesRequest_CommitBuildId_case: + return "UpdateWorkerVersioningRulesRequestCommitBuildIdCase" + default: + return strconv.Itoa(int(x)) + } + +} + +type isUpdateWorkerVersioningRulesRequest_Operation interface { + isUpdateWorkerVersioningRulesRequest_Operation() +} + +type updateWorkerVersioningRulesRequest_InsertAssignmentRule struct { + InsertAssignmentRule *UpdateWorkerVersioningRulesRequest_InsertBuildIdAssignmentRule `protobuf:"bytes,4,opt,name=insert_assignment_rule,json=insertAssignmentRule,proto3,oneof"` +} + +type updateWorkerVersioningRulesRequest_ReplaceAssignmentRule struct { + ReplaceAssignmentRule *UpdateWorkerVersioningRulesRequest_ReplaceBuildIdAssignmentRule `protobuf:"bytes,5,opt,name=replace_assignment_rule,json=replaceAssignmentRule,proto3,oneof"` +} + +type updateWorkerVersioningRulesRequest_DeleteAssignmentRule struct { + DeleteAssignmentRule *UpdateWorkerVersioningRulesRequest_DeleteBuildIdAssignmentRule `protobuf:"bytes,6,opt,name=delete_assignment_rule,json=deleteAssignmentRule,proto3,oneof"` +} + +type updateWorkerVersioningRulesRequest_AddCompatibleRedirectRule struct { + AddCompatibleRedirectRule *UpdateWorkerVersioningRulesRequest_AddCompatibleBuildIdRedirectRule `protobuf:"bytes,7,opt,name=add_compatible_redirect_rule,json=addCompatibleRedirectRule,proto3,oneof"` +} + +type updateWorkerVersioningRulesRequest_ReplaceCompatibleRedirectRule struct { + ReplaceCompatibleRedirectRule *UpdateWorkerVersioningRulesRequest_ReplaceCompatibleBuildIdRedirectRule `protobuf:"bytes,8,opt,name=replace_compatible_redirect_rule,json=replaceCompatibleRedirectRule,proto3,oneof"` +} + +type updateWorkerVersioningRulesRequest_DeleteCompatibleRedirectRule struct { + DeleteCompatibleRedirectRule *UpdateWorkerVersioningRulesRequest_DeleteCompatibleBuildIdRedirectRule `protobuf:"bytes,9,opt,name=delete_compatible_redirect_rule,json=deleteCompatibleRedirectRule,proto3,oneof"` +} + +type updateWorkerVersioningRulesRequest_CommitBuildId_ struct { + CommitBuildId *UpdateWorkerVersioningRulesRequest_CommitBuildId `protobuf:"bytes,10,opt,name=commit_build_id,json=commitBuildId,proto3,oneof"` +} + +func (*updateWorkerVersioningRulesRequest_InsertAssignmentRule) isUpdateWorkerVersioningRulesRequest_Operation() { +} + +func (*updateWorkerVersioningRulesRequest_ReplaceAssignmentRule) isUpdateWorkerVersioningRulesRequest_Operation() { +} + +func (*updateWorkerVersioningRulesRequest_DeleteAssignmentRule) isUpdateWorkerVersioningRulesRequest_Operation() { +} + +func (*updateWorkerVersioningRulesRequest_AddCompatibleRedirectRule) isUpdateWorkerVersioningRulesRequest_Operation() { +} + +func (*updateWorkerVersioningRulesRequest_ReplaceCompatibleRedirectRule) isUpdateWorkerVersioningRulesRequest_Operation() { +} + +func (*updateWorkerVersioningRulesRequest_DeleteCompatibleRedirectRule) isUpdateWorkerVersioningRulesRequest_Operation() { +} + +func (*updateWorkerVersioningRulesRequest_CommitBuildId_) isUpdateWorkerVersioningRulesRequest_Operation() { +} + +// [cleanup-wv-pre-release] +type UpdateWorkerVersioningRulesResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_AssignmentRules *[]*v14.TimestampedBuildIdAssignmentRule `protobuf:"bytes,1,rep,name=assignment_rules,json=assignmentRules,proto3"` + xxx_hidden_CompatibleRedirectRules *[]*v14.TimestampedCompatibleBuildIdRedirectRule `protobuf:"bytes,2,rep,name=compatible_redirect_rules,json=compatibleRedirectRules,proto3"` + xxx_hidden_ConflictToken []byte `protobuf:"bytes,3,opt,name=conflict_token,json=conflictToken,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateWorkerVersioningRulesResponse) Reset() { + *x = UpdateWorkerVersioningRulesResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[103] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateWorkerVersioningRulesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateWorkerVersioningRulesResponse) ProtoMessage() {} + +func (x *UpdateWorkerVersioningRulesResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[103] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UpdateWorkerVersioningRulesResponse) GetAssignmentRules() []*v14.TimestampedBuildIdAssignmentRule { + if x != nil { + if x.xxx_hidden_AssignmentRules != nil { + return *x.xxx_hidden_AssignmentRules + } + } + return nil +} + +func (x *UpdateWorkerVersioningRulesResponse) GetCompatibleRedirectRules() []*v14.TimestampedCompatibleBuildIdRedirectRule { + if x != nil { + if x.xxx_hidden_CompatibleRedirectRules != nil { + return *x.xxx_hidden_CompatibleRedirectRules + } + } + return nil +} + +func (x *UpdateWorkerVersioningRulesResponse) GetConflictToken() []byte { + if x != nil { + return x.xxx_hidden_ConflictToken + } + return nil +} + +func (x *UpdateWorkerVersioningRulesResponse) SetAssignmentRules(v []*v14.TimestampedBuildIdAssignmentRule) { + x.xxx_hidden_AssignmentRules = &v +} + +func (x *UpdateWorkerVersioningRulesResponse) SetCompatibleRedirectRules(v []*v14.TimestampedCompatibleBuildIdRedirectRule) { + x.xxx_hidden_CompatibleRedirectRules = &v +} + +func (x *UpdateWorkerVersioningRulesResponse) SetConflictToken(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_ConflictToken = v +} + +type UpdateWorkerVersioningRulesResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + AssignmentRules []*v14.TimestampedBuildIdAssignmentRule + CompatibleRedirectRules []*v14.TimestampedCompatibleBuildIdRedirectRule + // This value can be passed back to UpdateWorkerVersioningRulesRequest to + // ensure that the rules were not modified between the two updates, which + // could lead to lost updates and other confusion. + ConflictToken []byte +} + +func (b0 UpdateWorkerVersioningRulesResponse_builder) Build() *UpdateWorkerVersioningRulesResponse { + m0 := &UpdateWorkerVersioningRulesResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_AssignmentRules = &b.AssignmentRules + x.xxx_hidden_CompatibleRedirectRules = &b.CompatibleRedirectRules + x.xxx_hidden_ConflictToken = b.ConflictToken + return m0 +} + +// [cleanup-wv-pre-release] +type GetWorkerVersioningRulesRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_TaskQueue string `protobuf:"bytes,2,opt,name=task_queue,json=taskQueue,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetWorkerVersioningRulesRequest) Reset() { + *x = GetWorkerVersioningRulesRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[104] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetWorkerVersioningRulesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetWorkerVersioningRulesRequest) ProtoMessage() {} + +func (x *GetWorkerVersioningRulesRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[104] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetWorkerVersioningRulesRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *GetWorkerVersioningRulesRequest) GetTaskQueue() string { + if x != nil { + return x.xxx_hidden_TaskQueue + } + return "" +} + +func (x *GetWorkerVersioningRulesRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *GetWorkerVersioningRulesRequest) SetTaskQueue(v string) { + x.xxx_hidden_TaskQueue = v +} + +type GetWorkerVersioningRulesRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + TaskQueue string +} + +func (b0 GetWorkerVersioningRulesRequest_builder) Build() *GetWorkerVersioningRulesRequest { + m0 := &GetWorkerVersioningRulesRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_TaskQueue = b.TaskQueue + return m0 +} + +// [cleanup-wv-pre-release] +type GetWorkerVersioningRulesResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_AssignmentRules *[]*v14.TimestampedBuildIdAssignmentRule `protobuf:"bytes,1,rep,name=assignment_rules,json=assignmentRules,proto3"` + xxx_hidden_CompatibleRedirectRules *[]*v14.TimestampedCompatibleBuildIdRedirectRule `protobuf:"bytes,2,rep,name=compatible_redirect_rules,json=compatibleRedirectRules,proto3"` + xxx_hidden_ConflictToken []byte `protobuf:"bytes,3,opt,name=conflict_token,json=conflictToken,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetWorkerVersioningRulesResponse) Reset() { + *x = GetWorkerVersioningRulesResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[105] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetWorkerVersioningRulesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetWorkerVersioningRulesResponse) ProtoMessage() {} + +func (x *GetWorkerVersioningRulesResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[105] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetWorkerVersioningRulesResponse) GetAssignmentRules() []*v14.TimestampedBuildIdAssignmentRule { + if x != nil { + if x.xxx_hidden_AssignmentRules != nil { + return *x.xxx_hidden_AssignmentRules + } + } + return nil +} + +func (x *GetWorkerVersioningRulesResponse) GetCompatibleRedirectRules() []*v14.TimestampedCompatibleBuildIdRedirectRule { + if x != nil { + if x.xxx_hidden_CompatibleRedirectRules != nil { + return *x.xxx_hidden_CompatibleRedirectRules + } + } + return nil +} + +func (x *GetWorkerVersioningRulesResponse) GetConflictToken() []byte { + if x != nil { + return x.xxx_hidden_ConflictToken + } + return nil +} + +func (x *GetWorkerVersioningRulesResponse) SetAssignmentRules(v []*v14.TimestampedBuildIdAssignmentRule) { + x.xxx_hidden_AssignmentRules = &v +} + +func (x *GetWorkerVersioningRulesResponse) SetCompatibleRedirectRules(v []*v14.TimestampedCompatibleBuildIdRedirectRule) { + x.xxx_hidden_CompatibleRedirectRules = &v +} + +func (x *GetWorkerVersioningRulesResponse) SetConflictToken(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_ConflictToken = v +} + +type GetWorkerVersioningRulesResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + AssignmentRules []*v14.TimestampedBuildIdAssignmentRule + CompatibleRedirectRules []*v14.TimestampedCompatibleBuildIdRedirectRule + // This value can be passed back to UpdateWorkerVersioningRulesRequest to + // ensure that the rules were not modified between this List and the Update, + // which could lead to lost updates and other confusion. + ConflictToken []byte +} + +func (b0 GetWorkerVersioningRulesResponse_builder) Build() *GetWorkerVersioningRulesResponse { + m0 := &GetWorkerVersioningRulesResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_AssignmentRules = &b.AssignmentRules + x.xxx_hidden_CompatibleRedirectRules = &b.CompatibleRedirectRules + x.xxx_hidden_ConflictToken = b.ConflictToken + return m0 +} + +// [cleanup-wv-pre-release] +// Deprecated. Use `DescribeTaskQueue`. +type GetWorkerTaskReachabilityRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_BuildIds []string `protobuf:"bytes,2,rep,name=build_ids,json=buildIds,proto3"` + xxx_hidden_TaskQueues []string `protobuf:"bytes,3,rep,name=task_queues,json=taskQueues,proto3"` + xxx_hidden_Reachability v11.TaskReachability `protobuf:"varint,4,opt,name=reachability,proto3,enum=temporal.api.enums.v1.TaskReachability"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetWorkerTaskReachabilityRequest) Reset() { + *x = GetWorkerTaskReachabilityRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[106] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetWorkerTaskReachabilityRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetWorkerTaskReachabilityRequest) ProtoMessage() {} + +func (x *GetWorkerTaskReachabilityRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[106] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetWorkerTaskReachabilityRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *GetWorkerTaskReachabilityRequest) GetBuildIds() []string { + if x != nil { + return x.xxx_hidden_BuildIds + } + return nil +} + +func (x *GetWorkerTaskReachabilityRequest) GetTaskQueues() []string { + if x != nil { + return x.xxx_hidden_TaskQueues + } + return nil +} + +func (x *GetWorkerTaskReachabilityRequest) GetReachability() v11.TaskReachability { + if x != nil { + return x.xxx_hidden_Reachability + } + return v11.TaskReachability(0) +} + +func (x *GetWorkerTaskReachabilityRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *GetWorkerTaskReachabilityRequest) SetBuildIds(v []string) { + x.xxx_hidden_BuildIds = v +} + +func (x *GetWorkerTaskReachabilityRequest) SetTaskQueues(v []string) { + x.xxx_hidden_TaskQueues = v +} + +func (x *GetWorkerTaskReachabilityRequest) SetReachability(v v11.TaskReachability) { + x.xxx_hidden_Reachability = v +} + +type GetWorkerTaskReachabilityRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + // Build ids to retrieve reachability for. An empty string will be interpreted as an unversioned worker. + // The number of build ids that can be queried in a single API call is limited. + // Open source users can adjust this limit by setting the server's dynamic config value for + // `limit.reachabilityQueryBuildIds` with the caveat that this call can strain the visibility store. + BuildIds []string + // Task queues to retrieve reachability for. Leave this empty to query for all task queues associated with given + // build ids in the namespace. + // Must specify at least one task queue if querying for an unversioned worker. + // The number of task queues that the server will fetch reachability information for is limited. + // See the `GetWorkerTaskReachabilityResponse` documentation for more information. + TaskQueues []string + // Type of reachability to query for. + // `TASK_REACHABILITY_NEW_WORKFLOWS` is always returned in the response. + // Use `TASK_REACHABILITY_EXISTING_WORKFLOWS` if your application needs to respond to queries on closed workflows. + // Otherwise, use `TASK_REACHABILITY_OPEN_WORKFLOWS`. Default is `TASK_REACHABILITY_EXISTING_WORKFLOWS` if left + // unspecified. + // See the TaskReachability docstring for information about each enum variant. + Reachability v11.TaskReachability +} + +func (b0 GetWorkerTaskReachabilityRequest_builder) Build() *GetWorkerTaskReachabilityRequest { + m0 := &GetWorkerTaskReachabilityRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_BuildIds = b.BuildIds + x.xxx_hidden_TaskQueues = b.TaskQueues + x.xxx_hidden_Reachability = b.Reachability + return m0 +} + +// [cleanup-wv-pre-release] +// Deprecated. Use `DescribeTaskQueue`. +type GetWorkerTaskReachabilityResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_BuildIdReachability *[]*v14.BuildIdReachability `protobuf:"bytes,1,rep,name=build_id_reachability,json=buildIdReachability,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetWorkerTaskReachabilityResponse) Reset() { + *x = GetWorkerTaskReachabilityResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[107] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetWorkerTaskReachabilityResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetWorkerTaskReachabilityResponse) ProtoMessage() {} + +func (x *GetWorkerTaskReachabilityResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[107] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetWorkerTaskReachabilityResponse) GetBuildIdReachability() []*v14.BuildIdReachability { + if x != nil { + if x.xxx_hidden_BuildIdReachability != nil { + return *x.xxx_hidden_BuildIdReachability + } + } + return nil +} + +func (x *GetWorkerTaskReachabilityResponse) SetBuildIdReachability(v []*v14.BuildIdReachability) { + x.xxx_hidden_BuildIdReachability = &v +} + +type GetWorkerTaskReachabilityResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Task reachability, broken down by build id and then task queue. + // When requesting a large number of task queues or all task queues associated with the given build ids in a + // namespace, all task queues will be listed in the response but some of them may not contain reachability + // information due to a server enforced limit. When reaching the limit, task queues that reachability information + // could not be retrieved for will be marked with a single TASK_REACHABILITY_UNSPECIFIED entry. The caller may issue + // another call to get the reachability for those task queues. + // + // Open source users can adjust this limit by setting the server's dynamic config value for + // `limit.reachabilityTaskQueueScan` with the caveat that this call can strain the visibility store. + BuildIdReachability []*v14.BuildIdReachability +} + +func (b0 GetWorkerTaskReachabilityResponse_builder) Build() *GetWorkerTaskReachabilityResponse { + m0 := &GetWorkerTaskReachabilityResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_BuildIdReachability = &b.BuildIdReachability + return m0 +} + +// (-- api-linter: core::0134=disabled +// +// aip.dev/not-precedent: Update RPCs don't follow Google API format. --) +type UpdateWorkflowExecutionRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_WorkflowExecution *v13.WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3"` + xxx_hidden_FirstExecutionRunId string `protobuf:"bytes,3,opt,name=first_execution_run_id,json=firstExecutionRunId,proto3"` + xxx_hidden_WaitPolicy *v117.WaitPolicy `protobuf:"bytes,4,opt,name=wait_policy,json=waitPolicy,proto3"` + xxx_hidden_Request *v117.Request `protobuf:"bytes,5,opt,name=request,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateWorkflowExecutionRequest) Reset() { + *x = UpdateWorkflowExecutionRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[108] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateWorkflowExecutionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateWorkflowExecutionRequest) ProtoMessage() {} + +func (x *UpdateWorkflowExecutionRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[108] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UpdateWorkflowExecutionRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *UpdateWorkflowExecutionRequest) GetWorkflowExecution() *v13.WorkflowExecution { + if x != nil { + return x.xxx_hidden_WorkflowExecution + } + return nil +} + +func (x *UpdateWorkflowExecutionRequest) GetFirstExecutionRunId() string { + if x != nil { + return x.xxx_hidden_FirstExecutionRunId + } + return "" +} + +func (x *UpdateWorkflowExecutionRequest) GetWaitPolicy() *v117.WaitPolicy { + if x != nil { + return x.xxx_hidden_WaitPolicy + } + return nil +} + +func (x *UpdateWorkflowExecutionRequest) GetRequest() *v117.Request { + if x != nil { + return x.xxx_hidden_Request + } + return nil +} + +func (x *UpdateWorkflowExecutionRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *UpdateWorkflowExecutionRequest) SetWorkflowExecution(v *v13.WorkflowExecution) { + x.xxx_hidden_WorkflowExecution = v +} + +func (x *UpdateWorkflowExecutionRequest) SetFirstExecutionRunId(v string) { + x.xxx_hidden_FirstExecutionRunId = v +} + +func (x *UpdateWorkflowExecutionRequest) SetWaitPolicy(v *v117.WaitPolicy) { + x.xxx_hidden_WaitPolicy = v +} + +func (x *UpdateWorkflowExecutionRequest) SetRequest(v *v117.Request) { + x.xxx_hidden_Request = v +} + +func (x *UpdateWorkflowExecutionRequest) HasWorkflowExecution() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowExecution != nil +} + +func (x *UpdateWorkflowExecutionRequest) HasWaitPolicy() bool { + if x == nil { + return false + } + return x.xxx_hidden_WaitPolicy != nil +} + +func (x *UpdateWorkflowExecutionRequest) HasRequest() bool { + if x == nil { + return false + } + return x.xxx_hidden_Request != nil +} + +func (x *UpdateWorkflowExecutionRequest) ClearWorkflowExecution() { + x.xxx_hidden_WorkflowExecution = nil +} + +func (x *UpdateWorkflowExecutionRequest) ClearWaitPolicy() { + x.xxx_hidden_WaitPolicy = nil +} + +func (x *UpdateWorkflowExecutionRequest) ClearRequest() { + x.xxx_hidden_Request = nil +} + +type UpdateWorkflowExecutionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The namespace name of the target Workflow. + Namespace string + // The target Workflow Id and (optionally) a specific Run Id thereof. + // (-- api-linter: core::0203::optional=disabled + // + // aip.dev/not-precedent: false positive triggered by the word "optional" --) + WorkflowExecution *v13.WorkflowExecution + // If set, this call will error if the most recent (if no Run Id is set on + // `workflow_execution`), or specified (if it is) Workflow Execution is not + // part of the same execution chain as this Id. + FirstExecutionRunId string + // Specifies client's intent to wait for Update results. + // NOTE: This field works together with API call timeout which is limited by + // server timeout (maximum wait time). If server timeout is expired before + // user specified timeout, API call returns even if specified stage is not reached. + // Actual reached stage will be included in the response. + WaitPolicy *v117.WaitPolicy + // The request information that will be delivered all the way down to the + // Workflow Execution. + Request *v117.Request +} + +func (b0 UpdateWorkflowExecutionRequest_builder) Build() *UpdateWorkflowExecutionRequest { + m0 := &UpdateWorkflowExecutionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_WorkflowExecution = b.WorkflowExecution + x.xxx_hidden_FirstExecutionRunId = b.FirstExecutionRunId + x.xxx_hidden_WaitPolicy = b.WaitPolicy + x.xxx_hidden_Request = b.Request + return m0 +} + +type UpdateWorkflowExecutionResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_UpdateRef *v117.UpdateRef `protobuf:"bytes,1,opt,name=update_ref,json=updateRef,proto3"` + xxx_hidden_Outcome *v117.Outcome `protobuf:"bytes,2,opt,name=outcome,proto3"` + xxx_hidden_Stage v11.UpdateWorkflowExecutionLifecycleStage `protobuf:"varint,3,opt,name=stage,proto3,enum=temporal.api.enums.v1.UpdateWorkflowExecutionLifecycleStage"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateWorkflowExecutionResponse) Reset() { + *x = UpdateWorkflowExecutionResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[109] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateWorkflowExecutionResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateWorkflowExecutionResponse) ProtoMessage() {} + +func (x *UpdateWorkflowExecutionResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[109] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UpdateWorkflowExecutionResponse) GetUpdateRef() *v117.UpdateRef { + if x != nil { + return x.xxx_hidden_UpdateRef + } + return nil +} + +func (x *UpdateWorkflowExecutionResponse) GetOutcome() *v117.Outcome { + if x != nil { + return x.xxx_hidden_Outcome + } + return nil +} + +func (x *UpdateWorkflowExecutionResponse) GetStage() v11.UpdateWorkflowExecutionLifecycleStage { + if x != nil { + return x.xxx_hidden_Stage + } + return v11.UpdateWorkflowExecutionLifecycleStage(0) +} + +func (x *UpdateWorkflowExecutionResponse) SetUpdateRef(v *v117.UpdateRef) { + x.xxx_hidden_UpdateRef = v +} + +func (x *UpdateWorkflowExecutionResponse) SetOutcome(v *v117.Outcome) { + x.xxx_hidden_Outcome = v +} + +func (x *UpdateWorkflowExecutionResponse) SetStage(v v11.UpdateWorkflowExecutionLifecycleStage) { + x.xxx_hidden_Stage = v +} + +func (x *UpdateWorkflowExecutionResponse) HasUpdateRef() bool { + if x == nil { + return false + } + return x.xxx_hidden_UpdateRef != nil +} + +func (x *UpdateWorkflowExecutionResponse) HasOutcome() bool { + if x == nil { + return false + } + return x.xxx_hidden_Outcome != nil +} + +func (x *UpdateWorkflowExecutionResponse) ClearUpdateRef() { + x.xxx_hidden_UpdateRef = nil +} + +func (x *UpdateWorkflowExecutionResponse) ClearOutcome() { + x.xxx_hidden_Outcome = nil +} + +type UpdateWorkflowExecutionResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Enough information for subsequent poll calls if needed. Never null. + UpdateRef *v117.UpdateRef + // The outcome of the Update if and only if the Workflow Update + // has completed. If this response is being returned before the Update has + // completed then this field will not be set. + Outcome *v117.Outcome + // The most advanced lifecycle stage that the Update is known to have + // reached, where lifecycle stages are ordered + // UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_UNSPECIFIED < + // UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ADMITTED < + // UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ACCEPTED < + // UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_COMPLETED. + // UNSPECIFIED will be returned if and only if the server's maximum wait + // time was reached before the Update reached the stage specified in the + // request WaitPolicy, and before the context deadline expired; clients may + // may then retry the call as needed. + Stage v11.UpdateWorkflowExecutionLifecycleStage +} + +func (b0 UpdateWorkflowExecutionResponse_builder) Build() *UpdateWorkflowExecutionResponse { + m0 := &UpdateWorkflowExecutionResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_UpdateRef = b.UpdateRef + x.xxx_hidden_Outcome = b.Outcome + x.xxx_hidden_Stage = b.Stage + return m0 +} + +type StartBatchOperationRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_VisibilityQuery string `protobuf:"bytes,2,opt,name=visibility_query,json=visibilityQuery,proto3"` + xxx_hidden_JobId string `protobuf:"bytes,3,opt,name=job_id,json=jobId,proto3"` + xxx_hidden_Reason string `protobuf:"bytes,4,opt,name=reason,proto3"` + xxx_hidden_Executions *[]*v13.WorkflowExecution `protobuf:"bytes,5,rep,name=executions,proto3"` + xxx_hidden_MaxOperationsPerSecond float32 `protobuf:"fixed32,6,opt,name=max_operations_per_second,json=maxOperationsPerSecond,proto3"` + xxx_hidden_Operation isStartBatchOperationRequest_Operation `protobuf_oneof:"operation"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *StartBatchOperationRequest) Reset() { + *x = StartBatchOperationRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[110] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *StartBatchOperationRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StartBatchOperationRequest) ProtoMessage() {} + +func (x *StartBatchOperationRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[110] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *StartBatchOperationRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *StartBatchOperationRequest) GetVisibilityQuery() string { + if x != nil { + return x.xxx_hidden_VisibilityQuery + } + return "" +} + +func (x *StartBatchOperationRequest) GetJobId() string { + if x != nil { + return x.xxx_hidden_JobId + } + return "" +} + +func (x *StartBatchOperationRequest) GetReason() string { + if x != nil { + return x.xxx_hidden_Reason + } + return "" +} + +func (x *StartBatchOperationRequest) GetExecutions() []*v13.WorkflowExecution { + if x != nil { + if x.xxx_hidden_Executions != nil { + return *x.xxx_hidden_Executions + } + } + return nil +} + +func (x *StartBatchOperationRequest) GetMaxOperationsPerSecond() float32 { + if x != nil { + return x.xxx_hidden_MaxOperationsPerSecond + } + return 0 +} + +func (x *StartBatchOperationRequest) GetTerminationOperation() *v118.BatchOperationTermination { + if x != nil { + if x, ok := x.xxx_hidden_Operation.(*startBatchOperationRequest_TerminationOperation); ok { + return x.TerminationOperation + } + } + return nil +} + +func (x *StartBatchOperationRequest) GetSignalOperation() *v118.BatchOperationSignal { + if x != nil { + if x, ok := x.xxx_hidden_Operation.(*startBatchOperationRequest_SignalOperation); ok { + return x.SignalOperation + } + } + return nil +} + +func (x *StartBatchOperationRequest) GetCancellationOperation() *v118.BatchOperationCancellation { + if x != nil { + if x, ok := x.xxx_hidden_Operation.(*startBatchOperationRequest_CancellationOperation); ok { + return x.CancellationOperation + } + } + return nil +} + +func (x *StartBatchOperationRequest) GetDeletionOperation() *v118.BatchOperationDeletion { + if x != nil { + if x, ok := x.xxx_hidden_Operation.(*startBatchOperationRequest_DeletionOperation); ok { + return x.DeletionOperation + } + } + return nil +} + +func (x *StartBatchOperationRequest) GetResetOperation() *v118.BatchOperationReset { + if x != nil { + if x, ok := x.xxx_hidden_Operation.(*startBatchOperationRequest_ResetOperation); ok { + return x.ResetOperation + } + } + return nil +} + +func (x *StartBatchOperationRequest) GetUpdateWorkflowOptionsOperation() *v118.BatchOperationUpdateWorkflowExecutionOptions { + if x != nil { + if x, ok := x.xxx_hidden_Operation.(*startBatchOperationRequest_UpdateWorkflowOptionsOperation); ok { + return x.UpdateWorkflowOptionsOperation + } + } + return nil +} + +func (x *StartBatchOperationRequest) GetUnpauseActivitiesOperation() *v118.BatchOperationUnpauseActivities { + if x != nil { + if x, ok := x.xxx_hidden_Operation.(*startBatchOperationRequest_UnpauseActivitiesOperation); ok { + return x.UnpauseActivitiesOperation + } + } + return nil +} + +func (x *StartBatchOperationRequest) GetResetActivitiesOperation() *v118.BatchOperationResetActivities { + if x != nil { + if x, ok := x.xxx_hidden_Operation.(*startBatchOperationRequest_ResetActivitiesOperation); ok { + return x.ResetActivitiesOperation + } + } + return nil +} + +func (x *StartBatchOperationRequest) GetUpdateActivityOptionsOperation() *v118.BatchOperationUpdateActivityOptions { + if x != nil { + if x, ok := x.xxx_hidden_Operation.(*startBatchOperationRequest_UpdateActivityOptionsOperation); ok { + return x.UpdateActivityOptionsOperation + } + } + return nil +} + +func (x *StartBatchOperationRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *StartBatchOperationRequest) SetVisibilityQuery(v string) { + x.xxx_hidden_VisibilityQuery = v +} + +func (x *StartBatchOperationRequest) SetJobId(v string) { + x.xxx_hidden_JobId = v +} + +func (x *StartBatchOperationRequest) SetReason(v string) { + x.xxx_hidden_Reason = v +} + +func (x *StartBatchOperationRequest) SetExecutions(v []*v13.WorkflowExecution) { + x.xxx_hidden_Executions = &v +} + +func (x *StartBatchOperationRequest) SetMaxOperationsPerSecond(v float32) { + x.xxx_hidden_MaxOperationsPerSecond = v +} + +func (x *StartBatchOperationRequest) SetTerminationOperation(v *v118.BatchOperationTermination) { + if v == nil { + x.xxx_hidden_Operation = nil + return + } + x.xxx_hidden_Operation = &startBatchOperationRequest_TerminationOperation{v} +} + +func (x *StartBatchOperationRequest) SetSignalOperation(v *v118.BatchOperationSignal) { + if v == nil { + x.xxx_hidden_Operation = nil + return + } + x.xxx_hidden_Operation = &startBatchOperationRequest_SignalOperation{v} +} + +func (x *StartBatchOperationRequest) SetCancellationOperation(v *v118.BatchOperationCancellation) { + if v == nil { + x.xxx_hidden_Operation = nil + return + } + x.xxx_hidden_Operation = &startBatchOperationRequest_CancellationOperation{v} +} + +func (x *StartBatchOperationRequest) SetDeletionOperation(v *v118.BatchOperationDeletion) { + if v == nil { + x.xxx_hidden_Operation = nil + return + } + x.xxx_hidden_Operation = &startBatchOperationRequest_DeletionOperation{v} +} + +func (x *StartBatchOperationRequest) SetResetOperation(v *v118.BatchOperationReset) { + if v == nil { + x.xxx_hidden_Operation = nil + return + } + x.xxx_hidden_Operation = &startBatchOperationRequest_ResetOperation{v} +} + +func (x *StartBatchOperationRequest) SetUpdateWorkflowOptionsOperation(v *v118.BatchOperationUpdateWorkflowExecutionOptions) { + if v == nil { + x.xxx_hidden_Operation = nil + return + } + x.xxx_hidden_Operation = &startBatchOperationRequest_UpdateWorkflowOptionsOperation{v} +} + +func (x *StartBatchOperationRequest) SetUnpauseActivitiesOperation(v *v118.BatchOperationUnpauseActivities) { + if v == nil { + x.xxx_hidden_Operation = nil + return + } + x.xxx_hidden_Operation = &startBatchOperationRequest_UnpauseActivitiesOperation{v} +} + +func (x *StartBatchOperationRequest) SetResetActivitiesOperation(v *v118.BatchOperationResetActivities) { + if v == nil { + x.xxx_hidden_Operation = nil + return + } + x.xxx_hidden_Operation = &startBatchOperationRequest_ResetActivitiesOperation{v} +} + +func (x *StartBatchOperationRequest) SetUpdateActivityOptionsOperation(v *v118.BatchOperationUpdateActivityOptions) { + if v == nil { + x.xxx_hidden_Operation = nil + return + } + x.xxx_hidden_Operation = &startBatchOperationRequest_UpdateActivityOptionsOperation{v} +} + +func (x *StartBatchOperationRequest) HasOperation() bool { + if x == nil { + return false + } + return x.xxx_hidden_Operation != nil +} + +func (x *StartBatchOperationRequest) HasTerminationOperation() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Operation.(*startBatchOperationRequest_TerminationOperation) + return ok +} + +func (x *StartBatchOperationRequest) HasSignalOperation() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Operation.(*startBatchOperationRequest_SignalOperation) + return ok +} + +func (x *StartBatchOperationRequest) HasCancellationOperation() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Operation.(*startBatchOperationRequest_CancellationOperation) + return ok +} + +func (x *StartBatchOperationRequest) HasDeletionOperation() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Operation.(*startBatchOperationRequest_DeletionOperation) + return ok +} + +func (x *StartBatchOperationRequest) HasResetOperation() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Operation.(*startBatchOperationRequest_ResetOperation) + return ok +} + +func (x *StartBatchOperationRequest) HasUpdateWorkflowOptionsOperation() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Operation.(*startBatchOperationRequest_UpdateWorkflowOptionsOperation) + return ok +} + +func (x *StartBatchOperationRequest) HasUnpauseActivitiesOperation() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Operation.(*startBatchOperationRequest_UnpauseActivitiesOperation) + return ok +} + +func (x *StartBatchOperationRequest) HasResetActivitiesOperation() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Operation.(*startBatchOperationRequest_ResetActivitiesOperation) + return ok +} + +func (x *StartBatchOperationRequest) HasUpdateActivityOptionsOperation() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Operation.(*startBatchOperationRequest_UpdateActivityOptionsOperation) + return ok +} + +func (x *StartBatchOperationRequest) ClearOperation() { + x.xxx_hidden_Operation = nil +} + +func (x *StartBatchOperationRequest) ClearTerminationOperation() { + if _, ok := x.xxx_hidden_Operation.(*startBatchOperationRequest_TerminationOperation); ok { + x.xxx_hidden_Operation = nil + } +} + +func (x *StartBatchOperationRequest) ClearSignalOperation() { + if _, ok := x.xxx_hidden_Operation.(*startBatchOperationRequest_SignalOperation); ok { + x.xxx_hidden_Operation = nil + } +} + +func (x *StartBatchOperationRequest) ClearCancellationOperation() { + if _, ok := x.xxx_hidden_Operation.(*startBatchOperationRequest_CancellationOperation); ok { + x.xxx_hidden_Operation = nil + } +} + +func (x *StartBatchOperationRequest) ClearDeletionOperation() { + if _, ok := x.xxx_hidden_Operation.(*startBatchOperationRequest_DeletionOperation); ok { + x.xxx_hidden_Operation = nil + } +} + +func (x *StartBatchOperationRequest) ClearResetOperation() { + if _, ok := x.xxx_hidden_Operation.(*startBatchOperationRequest_ResetOperation); ok { + x.xxx_hidden_Operation = nil + } +} + +func (x *StartBatchOperationRequest) ClearUpdateWorkflowOptionsOperation() { + if _, ok := x.xxx_hidden_Operation.(*startBatchOperationRequest_UpdateWorkflowOptionsOperation); ok { + x.xxx_hidden_Operation = nil + } +} + +func (x *StartBatchOperationRequest) ClearUnpauseActivitiesOperation() { + if _, ok := x.xxx_hidden_Operation.(*startBatchOperationRequest_UnpauseActivitiesOperation); ok { + x.xxx_hidden_Operation = nil + } +} + +func (x *StartBatchOperationRequest) ClearResetActivitiesOperation() { + if _, ok := x.xxx_hidden_Operation.(*startBatchOperationRequest_ResetActivitiesOperation); ok { + x.xxx_hidden_Operation = nil + } +} + +func (x *StartBatchOperationRequest) ClearUpdateActivityOptionsOperation() { + if _, ok := x.xxx_hidden_Operation.(*startBatchOperationRequest_UpdateActivityOptionsOperation); ok { + x.xxx_hidden_Operation = nil + } +} + +const StartBatchOperationRequest_Operation_not_set_case case_StartBatchOperationRequest_Operation = 0 +const StartBatchOperationRequest_TerminationOperation_case case_StartBatchOperationRequest_Operation = 10 +const StartBatchOperationRequest_SignalOperation_case case_StartBatchOperationRequest_Operation = 11 +const StartBatchOperationRequest_CancellationOperation_case case_StartBatchOperationRequest_Operation = 12 +const StartBatchOperationRequest_DeletionOperation_case case_StartBatchOperationRequest_Operation = 13 +const StartBatchOperationRequest_ResetOperation_case case_StartBatchOperationRequest_Operation = 14 +const StartBatchOperationRequest_UpdateWorkflowOptionsOperation_case case_StartBatchOperationRequest_Operation = 15 +const StartBatchOperationRequest_UnpauseActivitiesOperation_case case_StartBatchOperationRequest_Operation = 16 +const StartBatchOperationRequest_ResetActivitiesOperation_case case_StartBatchOperationRequest_Operation = 17 +const StartBatchOperationRequest_UpdateActivityOptionsOperation_case case_StartBatchOperationRequest_Operation = 18 + +func (x *StartBatchOperationRequest) WhichOperation() case_StartBatchOperationRequest_Operation { + if x == nil { + return StartBatchOperationRequest_Operation_not_set_case + } + switch x.xxx_hidden_Operation.(type) { + case *startBatchOperationRequest_TerminationOperation: + return StartBatchOperationRequest_TerminationOperation_case + case *startBatchOperationRequest_SignalOperation: + return StartBatchOperationRequest_SignalOperation_case + case *startBatchOperationRequest_CancellationOperation: + return StartBatchOperationRequest_CancellationOperation_case + case *startBatchOperationRequest_DeletionOperation: + return StartBatchOperationRequest_DeletionOperation_case + case *startBatchOperationRequest_ResetOperation: + return StartBatchOperationRequest_ResetOperation_case + case *startBatchOperationRequest_UpdateWorkflowOptionsOperation: + return StartBatchOperationRequest_UpdateWorkflowOptionsOperation_case + case *startBatchOperationRequest_UnpauseActivitiesOperation: + return StartBatchOperationRequest_UnpauseActivitiesOperation_case + case *startBatchOperationRequest_ResetActivitiesOperation: + return StartBatchOperationRequest_ResetActivitiesOperation_case + case *startBatchOperationRequest_UpdateActivityOptionsOperation: + return StartBatchOperationRequest_UpdateActivityOptionsOperation_case + default: + return StartBatchOperationRequest_Operation_not_set_case + } +} + +type StartBatchOperationRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Namespace that contains the batch operation + Namespace string + // Visibility query defines the the group of workflow to apply the batch operation + // This field and `executions` are mutually exclusive + VisibilityQuery string + // Job ID defines the unique ID for the batch job + JobId string + // Reason to perform the batch operation + Reason string + // Executions to apply the batch operation + // This field and `visibility_query` are mutually exclusive + Executions []*v13.WorkflowExecution + // Limit for the number of operations processed per second within this batch. + // Its purpose is to reduce the stress on the system caused by batch operations, which helps to prevent system + // overload and minimize potential delays in executing ongoing tasks for user workers. + // Note that when no explicit limit is provided, the server will operate according to its limit defined by the + // dynamic configuration key `worker.batcherRPS`. This also applies if the value in this field exceeds the + // server's configured limit. + MaxOperationsPerSecond float32 + // Operation input + + // Fields of oneof xxx_hidden_Operation: + TerminationOperation *v118.BatchOperationTermination + SignalOperation *v118.BatchOperationSignal + CancellationOperation *v118.BatchOperationCancellation + DeletionOperation *v118.BatchOperationDeletion + ResetOperation *v118.BatchOperationReset + UpdateWorkflowOptionsOperation *v118.BatchOperationUpdateWorkflowExecutionOptions + UnpauseActivitiesOperation *v118.BatchOperationUnpauseActivities + ResetActivitiesOperation *v118.BatchOperationResetActivities + UpdateActivityOptionsOperation *v118.BatchOperationUpdateActivityOptions + // -- end of xxx_hidden_Operation +} + +func (b0 StartBatchOperationRequest_builder) Build() *StartBatchOperationRequest { + m0 := &StartBatchOperationRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_VisibilityQuery = b.VisibilityQuery + x.xxx_hidden_JobId = b.JobId + x.xxx_hidden_Reason = b.Reason + x.xxx_hidden_Executions = &b.Executions + x.xxx_hidden_MaxOperationsPerSecond = b.MaxOperationsPerSecond + if b.TerminationOperation != nil { + x.xxx_hidden_Operation = &startBatchOperationRequest_TerminationOperation{b.TerminationOperation} + } + if b.SignalOperation != nil { + x.xxx_hidden_Operation = &startBatchOperationRequest_SignalOperation{b.SignalOperation} + } + if b.CancellationOperation != nil { + x.xxx_hidden_Operation = &startBatchOperationRequest_CancellationOperation{b.CancellationOperation} + } + if b.DeletionOperation != nil { + x.xxx_hidden_Operation = &startBatchOperationRequest_DeletionOperation{b.DeletionOperation} + } + if b.ResetOperation != nil { + x.xxx_hidden_Operation = &startBatchOperationRequest_ResetOperation{b.ResetOperation} + } + if b.UpdateWorkflowOptionsOperation != nil { + x.xxx_hidden_Operation = &startBatchOperationRequest_UpdateWorkflowOptionsOperation{b.UpdateWorkflowOptionsOperation} + } + if b.UnpauseActivitiesOperation != nil { + x.xxx_hidden_Operation = &startBatchOperationRequest_UnpauseActivitiesOperation{b.UnpauseActivitiesOperation} + } + if b.ResetActivitiesOperation != nil { + x.xxx_hidden_Operation = &startBatchOperationRequest_ResetActivitiesOperation{b.ResetActivitiesOperation} + } + if b.UpdateActivityOptionsOperation != nil { + x.xxx_hidden_Operation = &startBatchOperationRequest_UpdateActivityOptionsOperation{b.UpdateActivityOptionsOperation} + } + return m0 +} + +type case_StartBatchOperationRequest_Operation protoreflect.FieldNumber + +func (x case_StartBatchOperationRequest_Operation) String() string { + switch x { + case StartBatchOperationRequest_Operation_not_set_case: + return "StartBatchOperationRequestOperationNotSetCase" + case StartBatchOperationRequest_TerminationOperation_case: + return "StartBatchOperationRequestTerminationOperationCase" + case StartBatchOperationRequest_SignalOperation_case: + return "StartBatchOperationRequestSignalOperationCase" + case StartBatchOperationRequest_CancellationOperation_case: + return "StartBatchOperationRequestCancellationOperationCase" + case StartBatchOperationRequest_DeletionOperation_case: + return "StartBatchOperationRequestDeletionOperationCase" + case StartBatchOperationRequest_ResetOperation_case: + return "StartBatchOperationRequestResetOperationCase" + case StartBatchOperationRequest_UpdateWorkflowOptionsOperation_case: + return "StartBatchOperationRequestUpdateWorkflowOptionsOperationCase" + case StartBatchOperationRequest_UnpauseActivitiesOperation_case: + return "StartBatchOperationRequestUnpauseActivitiesOperationCase" + case StartBatchOperationRequest_ResetActivitiesOperation_case: + return "StartBatchOperationRequestResetActivitiesOperationCase" + case StartBatchOperationRequest_UpdateActivityOptionsOperation_case: + return "StartBatchOperationRequestUpdateActivityOptionsOperationCase" + default: + return strconv.Itoa(int(x)) + } + +} + +type isStartBatchOperationRequest_Operation interface { + isStartBatchOperationRequest_Operation() +} + +type startBatchOperationRequest_TerminationOperation struct { + TerminationOperation *v118.BatchOperationTermination `protobuf:"bytes,10,opt,name=termination_operation,json=terminationOperation,proto3,oneof"` +} + +type startBatchOperationRequest_SignalOperation struct { + SignalOperation *v118.BatchOperationSignal `protobuf:"bytes,11,opt,name=signal_operation,json=signalOperation,proto3,oneof"` +} + +type startBatchOperationRequest_CancellationOperation struct { + CancellationOperation *v118.BatchOperationCancellation `protobuf:"bytes,12,opt,name=cancellation_operation,json=cancellationOperation,proto3,oneof"` +} + +type startBatchOperationRequest_DeletionOperation struct { + DeletionOperation *v118.BatchOperationDeletion `protobuf:"bytes,13,opt,name=deletion_operation,json=deletionOperation,proto3,oneof"` +} + +type startBatchOperationRequest_ResetOperation struct { + ResetOperation *v118.BatchOperationReset `protobuf:"bytes,14,opt,name=reset_operation,json=resetOperation,proto3,oneof"` +} + +type startBatchOperationRequest_UpdateWorkflowOptionsOperation struct { + UpdateWorkflowOptionsOperation *v118.BatchOperationUpdateWorkflowExecutionOptions `protobuf:"bytes,15,opt,name=update_workflow_options_operation,json=updateWorkflowOptionsOperation,proto3,oneof"` +} + +type startBatchOperationRequest_UnpauseActivitiesOperation struct { + UnpauseActivitiesOperation *v118.BatchOperationUnpauseActivities `protobuf:"bytes,16,opt,name=unpause_activities_operation,json=unpauseActivitiesOperation,proto3,oneof"` +} + +type startBatchOperationRequest_ResetActivitiesOperation struct { + ResetActivitiesOperation *v118.BatchOperationResetActivities `protobuf:"bytes,17,opt,name=reset_activities_operation,json=resetActivitiesOperation,proto3,oneof"` +} + +type startBatchOperationRequest_UpdateActivityOptionsOperation struct { + UpdateActivityOptionsOperation *v118.BatchOperationUpdateActivityOptions `protobuf:"bytes,18,opt,name=update_activity_options_operation,json=updateActivityOptionsOperation,proto3,oneof"` +} + +func (*startBatchOperationRequest_TerminationOperation) isStartBatchOperationRequest_Operation() {} + +func (*startBatchOperationRequest_SignalOperation) isStartBatchOperationRequest_Operation() {} + +func (*startBatchOperationRequest_CancellationOperation) isStartBatchOperationRequest_Operation() {} + +func (*startBatchOperationRequest_DeletionOperation) isStartBatchOperationRequest_Operation() {} + +func (*startBatchOperationRequest_ResetOperation) isStartBatchOperationRequest_Operation() {} + +func (*startBatchOperationRequest_UpdateWorkflowOptionsOperation) isStartBatchOperationRequest_Operation() { +} + +func (*startBatchOperationRequest_UnpauseActivitiesOperation) isStartBatchOperationRequest_Operation() { +} + +func (*startBatchOperationRequest_ResetActivitiesOperation) isStartBatchOperationRequest_Operation() { +} + +func (*startBatchOperationRequest_UpdateActivityOptionsOperation) isStartBatchOperationRequest_Operation() { +} + +type StartBatchOperationResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *StartBatchOperationResponse) Reset() { + *x = StartBatchOperationResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[111] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *StartBatchOperationResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StartBatchOperationResponse) ProtoMessage() {} + +func (x *StartBatchOperationResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[111] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type StartBatchOperationResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 StartBatchOperationResponse_builder) Build() *StartBatchOperationResponse { + m0 := &StartBatchOperationResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type StopBatchOperationRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_JobId string `protobuf:"bytes,2,opt,name=job_id,json=jobId,proto3"` + xxx_hidden_Reason string `protobuf:"bytes,3,opt,name=reason,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,4,opt,name=identity,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *StopBatchOperationRequest) Reset() { + *x = StopBatchOperationRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[112] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *StopBatchOperationRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StopBatchOperationRequest) ProtoMessage() {} + +func (x *StopBatchOperationRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[112] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *StopBatchOperationRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *StopBatchOperationRequest) GetJobId() string { + if x != nil { + return x.xxx_hidden_JobId + } + return "" +} + +func (x *StopBatchOperationRequest) GetReason() string { + if x != nil { + return x.xxx_hidden_Reason + } + return "" +} + +func (x *StopBatchOperationRequest) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *StopBatchOperationRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *StopBatchOperationRequest) SetJobId(v string) { + x.xxx_hidden_JobId = v +} + +func (x *StopBatchOperationRequest) SetReason(v string) { + x.xxx_hidden_Reason = v +} + +func (x *StopBatchOperationRequest) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +type StopBatchOperationRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Namespace that contains the batch operation + Namespace string + // Batch job id + JobId string + // Reason to stop a batch operation + Reason string + // Identity of the operator + Identity string +} + +func (b0 StopBatchOperationRequest_builder) Build() *StopBatchOperationRequest { + m0 := &StopBatchOperationRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_JobId = b.JobId + x.xxx_hidden_Reason = b.Reason + x.xxx_hidden_Identity = b.Identity + return m0 +} + +type StopBatchOperationResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *StopBatchOperationResponse) Reset() { + *x = StopBatchOperationResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[113] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *StopBatchOperationResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StopBatchOperationResponse) ProtoMessage() {} + +func (x *StopBatchOperationResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[113] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type StopBatchOperationResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 StopBatchOperationResponse_builder) Build() *StopBatchOperationResponse { + m0 := &StopBatchOperationResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type DescribeBatchOperationRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_JobId string `protobuf:"bytes,2,opt,name=job_id,json=jobId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DescribeBatchOperationRequest) Reset() { + *x = DescribeBatchOperationRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[114] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DescribeBatchOperationRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DescribeBatchOperationRequest) ProtoMessage() {} + +func (x *DescribeBatchOperationRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[114] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DescribeBatchOperationRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *DescribeBatchOperationRequest) GetJobId() string { + if x != nil { + return x.xxx_hidden_JobId + } + return "" +} + +func (x *DescribeBatchOperationRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *DescribeBatchOperationRequest) SetJobId(v string) { + x.xxx_hidden_JobId = v +} + +type DescribeBatchOperationRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Namespace that contains the batch operation + Namespace string + // Batch job id + JobId string +} + +func (b0 DescribeBatchOperationRequest_builder) Build() *DescribeBatchOperationRequest { + m0 := &DescribeBatchOperationRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_JobId = b.JobId + return m0 +} + +type DescribeBatchOperationResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_OperationType v11.BatchOperationType `protobuf:"varint,1,opt,name=operation_type,json=operationType,proto3,enum=temporal.api.enums.v1.BatchOperationType"` + xxx_hidden_JobId string `protobuf:"bytes,2,opt,name=job_id,json=jobId,proto3"` + xxx_hidden_State v11.BatchOperationState `protobuf:"varint,3,opt,name=state,proto3,enum=temporal.api.enums.v1.BatchOperationState"` + xxx_hidden_StartTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=start_time,json=startTime,proto3"` + xxx_hidden_CloseTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=close_time,json=closeTime,proto3"` + xxx_hidden_TotalOperationCount int64 `protobuf:"varint,6,opt,name=total_operation_count,json=totalOperationCount,proto3"` + xxx_hidden_CompleteOperationCount int64 `protobuf:"varint,7,opt,name=complete_operation_count,json=completeOperationCount,proto3"` + xxx_hidden_FailureOperationCount int64 `protobuf:"varint,8,opt,name=failure_operation_count,json=failureOperationCount,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,9,opt,name=identity,proto3"` + xxx_hidden_Reason string `protobuf:"bytes,10,opt,name=reason,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DescribeBatchOperationResponse) Reset() { + *x = DescribeBatchOperationResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[115] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DescribeBatchOperationResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DescribeBatchOperationResponse) ProtoMessage() {} + +func (x *DescribeBatchOperationResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[115] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DescribeBatchOperationResponse) GetOperationType() v11.BatchOperationType { + if x != nil { + return x.xxx_hidden_OperationType + } + return v11.BatchOperationType(0) +} + +func (x *DescribeBatchOperationResponse) GetJobId() string { + if x != nil { + return x.xxx_hidden_JobId + } + return "" +} + +func (x *DescribeBatchOperationResponse) GetState() v11.BatchOperationState { + if x != nil { + return x.xxx_hidden_State + } + return v11.BatchOperationState(0) +} + +func (x *DescribeBatchOperationResponse) GetStartTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_StartTime + } + return nil +} + +func (x *DescribeBatchOperationResponse) GetCloseTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_CloseTime + } + return nil +} + +func (x *DescribeBatchOperationResponse) GetTotalOperationCount() int64 { + if x != nil { + return x.xxx_hidden_TotalOperationCount + } + return 0 +} + +func (x *DescribeBatchOperationResponse) GetCompleteOperationCount() int64 { + if x != nil { + return x.xxx_hidden_CompleteOperationCount + } + return 0 +} + +func (x *DescribeBatchOperationResponse) GetFailureOperationCount() int64 { + if x != nil { + return x.xxx_hidden_FailureOperationCount + } + return 0 +} + +func (x *DescribeBatchOperationResponse) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *DescribeBatchOperationResponse) GetReason() string { + if x != nil { + return x.xxx_hidden_Reason + } + return "" +} + +func (x *DescribeBatchOperationResponse) SetOperationType(v v11.BatchOperationType) { + x.xxx_hidden_OperationType = v +} + +func (x *DescribeBatchOperationResponse) SetJobId(v string) { + x.xxx_hidden_JobId = v +} + +func (x *DescribeBatchOperationResponse) SetState(v v11.BatchOperationState) { + x.xxx_hidden_State = v +} + +func (x *DescribeBatchOperationResponse) SetStartTime(v *timestamppb.Timestamp) { + x.xxx_hidden_StartTime = v +} + +func (x *DescribeBatchOperationResponse) SetCloseTime(v *timestamppb.Timestamp) { + x.xxx_hidden_CloseTime = v +} + +func (x *DescribeBatchOperationResponse) SetTotalOperationCount(v int64) { + x.xxx_hidden_TotalOperationCount = v +} + +func (x *DescribeBatchOperationResponse) SetCompleteOperationCount(v int64) { + x.xxx_hidden_CompleteOperationCount = v +} + +func (x *DescribeBatchOperationResponse) SetFailureOperationCount(v int64) { + x.xxx_hidden_FailureOperationCount = v +} + +func (x *DescribeBatchOperationResponse) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *DescribeBatchOperationResponse) SetReason(v string) { + x.xxx_hidden_Reason = v +} + +func (x *DescribeBatchOperationResponse) HasStartTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_StartTime != nil +} + +func (x *DescribeBatchOperationResponse) HasCloseTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_CloseTime != nil +} + +func (x *DescribeBatchOperationResponse) ClearStartTime() { + x.xxx_hidden_StartTime = nil +} + +func (x *DescribeBatchOperationResponse) ClearCloseTime() { + x.xxx_hidden_CloseTime = nil +} + +type DescribeBatchOperationResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Batch operation type + OperationType v11.BatchOperationType + // Batch job ID + JobId string + // Batch operation state + State v11.BatchOperationState + // Batch operation start time + StartTime *timestamppb.Timestamp + // Batch operation close time + CloseTime *timestamppb.Timestamp + // Total operation count + TotalOperationCount int64 + // Complete operation count + CompleteOperationCount int64 + // Failure operation count + FailureOperationCount int64 + // Identity indicates the operator identity + Identity string + // Reason indicates the reason to stop a operation + Reason string +} + +func (b0 DescribeBatchOperationResponse_builder) Build() *DescribeBatchOperationResponse { + m0 := &DescribeBatchOperationResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_OperationType = b.OperationType + x.xxx_hidden_JobId = b.JobId + x.xxx_hidden_State = b.State + x.xxx_hidden_StartTime = b.StartTime + x.xxx_hidden_CloseTime = b.CloseTime + x.xxx_hidden_TotalOperationCount = b.TotalOperationCount + x.xxx_hidden_CompleteOperationCount = b.CompleteOperationCount + x.xxx_hidden_FailureOperationCount = b.FailureOperationCount + x.xxx_hidden_Identity = b.Identity + x.xxx_hidden_Reason = b.Reason + return m0 +} + +type ListBatchOperationsRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3"` + xxx_hidden_NextPageToken []byte `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListBatchOperationsRequest) Reset() { + *x = ListBatchOperationsRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[116] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListBatchOperationsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListBatchOperationsRequest) ProtoMessage() {} + +func (x *ListBatchOperationsRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[116] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListBatchOperationsRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *ListBatchOperationsRequest) GetPageSize() int32 { + if x != nil { + return x.xxx_hidden_PageSize + } + return 0 +} + +func (x *ListBatchOperationsRequest) GetNextPageToken() []byte { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return nil +} + +func (x *ListBatchOperationsRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *ListBatchOperationsRequest) SetPageSize(v int32) { + x.xxx_hidden_PageSize = v +} + +func (x *ListBatchOperationsRequest) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_NextPageToken = v +} + +type ListBatchOperationsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Namespace that contains the batch operation + Namespace string + // List page size + PageSize int32 + // Next page token + NextPageToken []byte +} + +func (b0 ListBatchOperationsRequest_builder) Build() *ListBatchOperationsRequest { + m0 := &ListBatchOperationsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_PageSize = b.PageSize + x.xxx_hidden_NextPageToken = b.NextPageToken + return m0 +} + +type ListBatchOperationsResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_OperationInfo *[]*v118.BatchOperationInfo `protobuf:"bytes,1,rep,name=operation_info,json=operationInfo,proto3"` + xxx_hidden_NextPageToken []byte `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListBatchOperationsResponse) Reset() { + *x = ListBatchOperationsResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[117] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListBatchOperationsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListBatchOperationsResponse) ProtoMessage() {} + +func (x *ListBatchOperationsResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[117] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListBatchOperationsResponse) GetOperationInfo() []*v118.BatchOperationInfo { + if x != nil { + if x.xxx_hidden_OperationInfo != nil { + return *x.xxx_hidden_OperationInfo + } + } + return nil +} + +func (x *ListBatchOperationsResponse) GetNextPageToken() []byte { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return nil +} + +func (x *ListBatchOperationsResponse) SetOperationInfo(v []*v118.BatchOperationInfo) { + x.xxx_hidden_OperationInfo = &v +} + +func (x *ListBatchOperationsResponse) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_NextPageToken = v +} + +type ListBatchOperationsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // BatchOperationInfo contains the basic info about batch operation + OperationInfo []*v118.BatchOperationInfo + NextPageToken []byte +} + +func (b0 ListBatchOperationsResponse_builder) Build() *ListBatchOperationsResponse { + m0 := &ListBatchOperationsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_OperationInfo = &b.OperationInfo + x.xxx_hidden_NextPageToken = b.NextPageToken + return m0 +} + +type PollWorkflowExecutionUpdateRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_UpdateRef *v117.UpdateRef `protobuf:"bytes,2,opt,name=update_ref,json=updateRef,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,3,opt,name=identity,proto3"` + xxx_hidden_WaitPolicy *v117.WaitPolicy `protobuf:"bytes,4,opt,name=wait_policy,json=waitPolicy,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PollWorkflowExecutionUpdateRequest) Reset() { + *x = PollWorkflowExecutionUpdateRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[118] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PollWorkflowExecutionUpdateRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PollWorkflowExecutionUpdateRequest) ProtoMessage() {} + +func (x *PollWorkflowExecutionUpdateRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[118] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PollWorkflowExecutionUpdateRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *PollWorkflowExecutionUpdateRequest) GetUpdateRef() *v117.UpdateRef { + if x != nil { + return x.xxx_hidden_UpdateRef + } + return nil +} + +func (x *PollWorkflowExecutionUpdateRequest) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *PollWorkflowExecutionUpdateRequest) GetWaitPolicy() *v117.WaitPolicy { + if x != nil { + return x.xxx_hidden_WaitPolicy + } + return nil +} + +func (x *PollWorkflowExecutionUpdateRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *PollWorkflowExecutionUpdateRequest) SetUpdateRef(v *v117.UpdateRef) { + x.xxx_hidden_UpdateRef = v +} + +func (x *PollWorkflowExecutionUpdateRequest) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *PollWorkflowExecutionUpdateRequest) SetWaitPolicy(v *v117.WaitPolicy) { + x.xxx_hidden_WaitPolicy = v +} + +func (x *PollWorkflowExecutionUpdateRequest) HasUpdateRef() bool { + if x == nil { + return false + } + return x.xxx_hidden_UpdateRef != nil +} + +func (x *PollWorkflowExecutionUpdateRequest) HasWaitPolicy() bool { + if x == nil { + return false + } + return x.xxx_hidden_WaitPolicy != nil +} + +func (x *PollWorkflowExecutionUpdateRequest) ClearUpdateRef() { + x.xxx_hidden_UpdateRef = nil +} + +func (x *PollWorkflowExecutionUpdateRequest) ClearWaitPolicy() { + x.xxx_hidden_WaitPolicy = nil +} + +type PollWorkflowExecutionUpdateRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The namespace of the Workflow Execution to which the Update was + // originally issued. + Namespace string + // The Update reference returned in the initial UpdateWorkflowExecutionResponse. + UpdateRef *v117.UpdateRef + // The identity of the worker/client who is polling this Update outcome. + Identity string + // Specifies client's intent to wait for Update results. + // Omit to request a non-blocking poll. + WaitPolicy *v117.WaitPolicy +} + +func (b0 PollWorkflowExecutionUpdateRequest_builder) Build() *PollWorkflowExecutionUpdateRequest { + m0 := &PollWorkflowExecutionUpdateRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_UpdateRef = b.UpdateRef + x.xxx_hidden_Identity = b.Identity + x.xxx_hidden_WaitPolicy = b.WaitPolicy + return m0 +} + +type PollWorkflowExecutionUpdateResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Outcome *v117.Outcome `protobuf:"bytes,1,opt,name=outcome,proto3"` + xxx_hidden_Stage v11.UpdateWorkflowExecutionLifecycleStage `protobuf:"varint,2,opt,name=stage,proto3,enum=temporal.api.enums.v1.UpdateWorkflowExecutionLifecycleStage"` + xxx_hidden_UpdateRef *v117.UpdateRef `protobuf:"bytes,3,opt,name=update_ref,json=updateRef,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PollWorkflowExecutionUpdateResponse) Reset() { + *x = PollWorkflowExecutionUpdateResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[119] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PollWorkflowExecutionUpdateResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PollWorkflowExecutionUpdateResponse) ProtoMessage() {} + +func (x *PollWorkflowExecutionUpdateResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[119] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PollWorkflowExecutionUpdateResponse) GetOutcome() *v117.Outcome { + if x != nil { + return x.xxx_hidden_Outcome + } + return nil +} + +func (x *PollWorkflowExecutionUpdateResponse) GetStage() v11.UpdateWorkflowExecutionLifecycleStage { + if x != nil { + return x.xxx_hidden_Stage + } + return v11.UpdateWorkflowExecutionLifecycleStage(0) +} + +func (x *PollWorkflowExecutionUpdateResponse) GetUpdateRef() *v117.UpdateRef { + if x != nil { + return x.xxx_hidden_UpdateRef + } + return nil +} + +func (x *PollWorkflowExecutionUpdateResponse) SetOutcome(v *v117.Outcome) { + x.xxx_hidden_Outcome = v +} + +func (x *PollWorkflowExecutionUpdateResponse) SetStage(v v11.UpdateWorkflowExecutionLifecycleStage) { + x.xxx_hidden_Stage = v +} + +func (x *PollWorkflowExecutionUpdateResponse) SetUpdateRef(v *v117.UpdateRef) { + x.xxx_hidden_UpdateRef = v +} + +func (x *PollWorkflowExecutionUpdateResponse) HasOutcome() bool { + if x == nil { + return false + } + return x.xxx_hidden_Outcome != nil +} + +func (x *PollWorkflowExecutionUpdateResponse) HasUpdateRef() bool { + if x == nil { + return false + } + return x.xxx_hidden_UpdateRef != nil +} + +func (x *PollWorkflowExecutionUpdateResponse) ClearOutcome() { + x.xxx_hidden_Outcome = nil +} + +func (x *PollWorkflowExecutionUpdateResponse) ClearUpdateRef() { + x.xxx_hidden_UpdateRef = nil +} + +type PollWorkflowExecutionUpdateResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The outcome of the update if and only if the update has completed. If + // this response is being returned before the update has completed (e.g. due + // to the specification of a wait policy that only waits on + // UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ACCEPTED) then this field will + // not be set. + Outcome *v117.Outcome + // The most advanced lifecycle stage that the Update is known to have + // reached, where lifecycle stages are ordered + // UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_UNSPECIFIED < + // UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ADMITTED < + // UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ACCEPTED < + // UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_COMPLETED. + // UNSPECIFIED will be returned if and only if the server's maximum wait + // time was reached before the Update reached the stage specified in the + // request WaitPolicy, and before the context deadline expired; clients may + // may then retry the call as needed. + Stage v11.UpdateWorkflowExecutionLifecycleStage + // Sufficient information to address this Update. + UpdateRef *v117.UpdateRef +} + +func (b0 PollWorkflowExecutionUpdateResponse_builder) Build() *PollWorkflowExecutionUpdateResponse { + m0 := &PollWorkflowExecutionUpdateResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Outcome = b.Outcome + x.xxx_hidden_Stage = b.Stage + x.xxx_hidden_UpdateRef = b.UpdateRef + return m0 +} + +type PollNexusTaskQueueRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,2,opt,name=identity,proto3"` + xxx_hidden_WorkerInstanceKey string `protobuf:"bytes,8,opt,name=worker_instance_key,json=workerInstanceKey,proto3"` + xxx_hidden_TaskQueue *v14.TaskQueue `protobuf:"bytes,3,opt,name=task_queue,json=taskQueue,proto3"` + xxx_hidden_WorkerVersionCapabilities *v13.WorkerVersionCapabilities `protobuf:"bytes,4,opt,name=worker_version_capabilities,json=workerVersionCapabilities,proto3"` + xxx_hidden_DeploymentOptions *v18.WorkerDeploymentOptions `protobuf:"bytes,6,opt,name=deployment_options,json=deploymentOptions,proto3"` + xxx_hidden_WorkerHeartbeat *[]*v114.WorkerHeartbeat `protobuf:"bytes,7,rep,name=worker_heartbeat,json=workerHeartbeat,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PollNexusTaskQueueRequest) Reset() { + *x = PollNexusTaskQueueRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[120] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PollNexusTaskQueueRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PollNexusTaskQueueRequest) ProtoMessage() {} + +func (x *PollNexusTaskQueueRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[120] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PollNexusTaskQueueRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *PollNexusTaskQueueRequest) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *PollNexusTaskQueueRequest) GetWorkerInstanceKey() string { + if x != nil { + return x.xxx_hidden_WorkerInstanceKey + } + return "" +} + +func (x *PollNexusTaskQueueRequest) GetTaskQueue() *v14.TaskQueue { + if x != nil { + return x.xxx_hidden_TaskQueue + } + return nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *PollNexusTaskQueueRequest) GetWorkerVersionCapabilities() *v13.WorkerVersionCapabilities { + if x != nil { + return x.xxx_hidden_WorkerVersionCapabilities + } + return nil +} + +func (x *PollNexusTaskQueueRequest) GetDeploymentOptions() *v18.WorkerDeploymentOptions { + if x != nil { + return x.xxx_hidden_DeploymentOptions + } + return nil +} + +func (x *PollNexusTaskQueueRequest) GetWorkerHeartbeat() []*v114.WorkerHeartbeat { + if x != nil { + if x.xxx_hidden_WorkerHeartbeat != nil { + return *x.xxx_hidden_WorkerHeartbeat + } + } + return nil +} + +func (x *PollNexusTaskQueueRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *PollNexusTaskQueueRequest) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *PollNexusTaskQueueRequest) SetWorkerInstanceKey(v string) { + x.xxx_hidden_WorkerInstanceKey = v +} + +func (x *PollNexusTaskQueueRequest) SetTaskQueue(v *v14.TaskQueue) { + x.xxx_hidden_TaskQueue = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *PollNexusTaskQueueRequest) SetWorkerVersionCapabilities(v *v13.WorkerVersionCapabilities) { + x.xxx_hidden_WorkerVersionCapabilities = v +} + +func (x *PollNexusTaskQueueRequest) SetDeploymentOptions(v *v18.WorkerDeploymentOptions) { + x.xxx_hidden_DeploymentOptions = v +} + +func (x *PollNexusTaskQueueRequest) SetWorkerHeartbeat(v []*v114.WorkerHeartbeat) { + x.xxx_hidden_WorkerHeartbeat = &v +} + +func (x *PollNexusTaskQueueRequest) HasTaskQueue() bool { + if x == nil { + return false + } + return x.xxx_hidden_TaskQueue != nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *PollNexusTaskQueueRequest) HasWorkerVersionCapabilities() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkerVersionCapabilities != nil +} + +func (x *PollNexusTaskQueueRequest) HasDeploymentOptions() bool { + if x == nil { + return false + } + return x.xxx_hidden_DeploymentOptions != nil +} + +func (x *PollNexusTaskQueueRequest) ClearTaskQueue() { + x.xxx_hidden_TaskQueue = nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *PollNexusTaskQueueRequest) ClearWorkerVersionCapabilities() { + x.xxx_hidden_WorkerVersionCapabilities = nil +} + +func (x *PollNexusTaskQueueRequest) ClearDeploymentOptions() { + x.xxx_hidden_DeploymentOptions = nil +} + +type PollNexusTaskQueueRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + // The identity of the client who initiated this request. + Identity string + // A unique key for this worker instance, used for tracking worker lifecycle. + // This is guaranteed to be unique, whereas identity is not guaranteed to be unique. + WorkerInstanceKey string + TaskQueue *v14.TaskQueue + // Information about this worker's build identifier and if it is choosing to use the versioning + // feature. See the `WorkerVersionCapabilities` docstring for more. + // Deprecated. Replaced by deployment_options. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + WorkerVersionCapabilities *v13.WorkerVersionCapabilities + // Worker deployment options that user has set in the worker. + DeploymentOptions *v18.WorkerDeploymentOptions + // Worker info to be sent to the server. + WorkerHeartbeat []*v114.WorkerHeartbeat +} + +func (b0 PollNexusTaskQueueRequest_builder) Build() *PollNexusTaskQueueRequest { + m0 := &PollNexusTaskQueueRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_Identity = b.Identity + x.xxx_hidden_WorkerInstanceKey = b.WorkerInstanceKey + x.xxx_hidden_TaskQueue = b.TaskQueue + x.xxx_hidden_WorkerVersionCapabilities = b.WorkerVersionCapabilities + x.xxx_hidden_DeploymentOptions = b.DeploymentOptions + x.xxx_hidden_WorkerHeartbeat = &b.WorkerHeartbeat + return m0 +} + +type PollNexusTaskQueueResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_TaskToken []byte `protobuf:"bytes,1,opt,name=task_token,json=taskToken,proto3"` + xxx_hidden_Request *v119.Request `protobuf:"bytes,2,opt,name=request,proto3"` + xxx_hidden_PollerScalingDecision *v14.PollerScalingDecision `protobuf:"bytes,3,opt,name=poller_scaling_decision,json=pollerScalingDecision,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PollNexusTaskQueueResponse) Reset() { + *x = PollNexusTaskQueueResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[121] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PollNexusTaskQueueResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PollNexusTaskQueueResponse) ProtoMessage() {} + +func (x *PollNexusTaskQueueResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[121] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PollNexusTaskQueueResponse) GetTaskToken() []byte { + if x != nil { + return x.xxx_hidden_TaskToken + } + return nil +} + +func (x *PollNexusTaskQueueResponse) GetRequest() *v119.Request { + if x != nil { + return x.xxx_hidden_Request + } + return nil +} + +func (x *PollNexusTaskQueueResponse) GetPollerScalingDecision() *v14.PollerScalingDecision { + if x != nil { + return x.xxx_hidden_PollerScalingDecision + } + return nil +} + +func (x *PollNexusTaskQueueResponse) SetTaskToken(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_TaskToken = v +} + +func (x *PollNexusTaskQueueResponse) SetRequest(v *v119.Request) { + x.xxx_hidden_Request = v +} + +func (x *PollNexusTaskQueueResponse) SetPollerScalingDecision(v *v14.PollerScalingDecision) { + x.xxx_hidden_PollerScalingDecision = v +} + +func (x *PollNexusTaskQueueResponse) HasRequest() bool { + if x == nil { + return false + } + return x.xxx_hidden_Request != nil +} + +func (x *PollNexusTaskQueueResponse) HasPollerScalingDecision() bool { + if x == nil { + return false + } + return x.xxx_hidden_PollerScalingDecision != nil +} + +func (x *PollNexusTaskQueueResponse) ClearRequest() { + x.xxx_hidden_Request = nil +} + +func (x *PollNexusTaskQueueResponse) ClearPollerScalingDecision() { + x.xxx_hidden_PollerScalingDecision = nil +} + +type PollNexusTaskQueueResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // An opaque unique identifier for this task for correlating a completion request the embedded request. + TaskToken []byte + // Embedded request as translated from the incoming frontend request. + Request *v119.Request + // Server-advised information the SDK may use to adjust its poller count. + PollerScalingDecision *v14.PollerScalingDecision +} + +func (b0 PollNexusTaskQueueResponse_builder) Build() *PollNexusTaskQueueResponse { + m0 := &PollNexusTaskQueueResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_TaskToken = b.TaskToken + x.xxx_hidden_Request = b.Request + x.xxx_hidden_PollerScalingDecision = b.PollerScalingDecision + return m0 +} + +type RespondNexusTaskCompletedRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,2,opt,name=identity,proto3"` + xxx_hidden_TaskToken []byte `protobuf:"bytes,3,opt,name=task_token,json=taskToken,proto3"` + xxx_hidden_Response *v119.Response `protobuf:"bytes,4,opt,name=response,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RespondNexusTaskCompletedRequest) Reset() { + *x = RespondNexusTaskCompletedRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[122] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RespondNexusTaskCompletedRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RespondNexusTaskCompletedRequest) ProtoMessage() {} + +func (x *RespondNexusTaskCompletedRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[122] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *RespondNexusTaskCompletedRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *RespondNexusTaskCompletedRequest) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *RespondNexusTaskCompletedRequest) GetTaskToken() []byte { + if x != nil { + return x.xxx_hidden_TaskToken + } + return nil +} + +func (x *RespondNexusTaskCompletedRequest) GetResponse() *v119.Response { + if x != nil { + return x.xxx_hidden_Response + } + return nil +} + +func (x *RespondNexusTaskCompletedRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *RespondNexusTaskCompletedRequest) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *RespondNexusTaskCompletedRequest) SetTaskToken(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_TaskToken = v +} + +func (x *RespondNexusTaskCompletedRequest) SetResponse(v *v119.Response) { + x.xxx_hidden_Response = v +} + +func (x *RespondNexusTaskCompletedRequest) HasResponse() bool { + if x == nil { + return false + } + return x.xxx_hidden_Response != nil +} + +func (x *RespondNexusTaskCompletedRequest) ClearResponse() { + x.xxx_hidden_Response = nil +} + +type RespondNexusTaskCompletedRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + // The identity of the client who initiated this request. + Identity string + // A unique identifier for this task as received via a poll response. + TaskToken []byte + // Embedded response to be translated into a frontend response. + Response *v119.Response +} + +func (b0 RespondNexusTaskCompletedRequest_builder) Build() *RespondNexusTaskCompletedRequest { + m0 := &RespondNexusTaskCompletedRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_Identity = b.Identity + x.xxx_hidden_TaskToken = b.TaskToken + x.xxx_hidden_Response = b.Response + return m0 +} + +type RespondNexusTaskCompletedResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RespondNexusTaskCompletedResponse) Reset() { + *x = RespondNexusTaskCompletedResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[123] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RespondNexusTaskCompletedResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RespondNexusTaskCompletedResponse) ProtoMessage() {} + +func (x *RespondNexusTaskCompletedResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[123] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type RespondNexusTaskCompletedResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 RespondNexusTaskCompletedResponse_builder) Build() *RespondNexusTaskCompletedResponse { + m0 := &RespondNexusTaskCompletedResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type RespondNexusTaskFailedRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,2,opt,name=identity,proto3"` + xxx_hidden_TaskToken []byte `protobuf:"bytes,3,opt,name=task_token,json=taskToken,proto3"` + xxx_hidden_Error *v119.HandlerError `protobuf:"bytes,4,opt,name=error,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RespondNexusTaskFailedRequest) Reset() { + *x = RespondNexusTaskFailedRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[124] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RespondNexusTaskFailedRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RespondNexusTaskFailedRequest) ProtoMessage() {} + +func (x *RespondNexusTaskFailedRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[124] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *RespondNexusTaskFailedRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *RespondNexusTaskFailedRequest) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *RespondNexusTaskFailedRequest) GetTaskToken() []byte { + if x != nil { + return x.xxx_hidden_TaskToken + } + return nil +} + +func (x *RespondNexusTaskFailedRequest) GetError() *v119.HandlerError { + if x != nil { + return x.xxx_hidden_Error + } + return nil +} + +func (x *RespondNexusTaskFailedRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *RespondNexusTaskFailedRequest) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *RespondNexusTaskFailedRequest) SetTaskToken(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_TaskToken = v +} + +func (x *RespondNexusTaskFailedRequest) SetError(v *v119.HandlerError) { + x.xxx_hidden_Error = v +} + +func (x *RespondNexusTaskFailedRequest) HasError() bool { + if x == nil { + return false + } + return x.xxx_hidden_Error != nil +} + +func (x *RespondNexusTaskFailedRequest) ClearError() { + x.xxx_hidden_Error = nil +} + +type RespondNexusTaskFailedRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + // The identity of the client who initiated this request. + Identity string + // A unique identifier for this task. + TaskToken []byte + // The error the handler failed with. + Error *v119.HandlerError +} + +func (b0 RespondNexusTaskFailedRequest_builder) Build() *RespondNexusTaskFailedRequest { + m0 := &RespondNexusTaskFailedRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_Identity = b.Identity + x.xxx_hidden_TaskToken = b.TaskToken + x.xxx_hidden_Error = b.Error + return m0 +} + +type RespondNexusTaskFailedResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RespondNexusTaskFailedResponse) Reset() { + *x = RespondNexusTaskFailedResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[125] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RespondNexusTaskFailedResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RespondNexusTaskFailedResponse) ProtoMessage() {} + +func (x *RespondNexusTaskFailedResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[125] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type RespondNexusTaskFailedResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 RespondNexusTaskFailedResponse_builder) Build() *RespondNexusTaskFailedResponse { + m0 := &RespondNexusTaskFailedResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type ExecuteMultiOperationRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_Operations *[]*ExecuteMultiOperationRequest_Operation `protobuf:"bytes,2,rep,name=operations,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ExecuteMultiOperationRequest) Reset() { + *x = ExecuteMultiOperationRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[126] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ExecuteMultiOperationRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExecuteMultiOperationRequest) ProtoMessage() {} + +func (x *ExecuteMultiOperationRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[126] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ExecuteMultiOperationRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *ExecuteMultiOperationRequest) GetOperations() []*ExecuteMultiOperationRequest_Operation { + if x != nil { + if x.xxx_hidden_Operations != nil { + return *x.xxx_hidden_Operations + } + } + return nil +} + +func (x *ExecuteMultiOperationRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *ExecuteMultiOperationRequest) SetOperations(v []*ExecuteMultiOperationRequest_Operation) { + x.xxx_hidden_Operations = &v +} + +type ExecuteMultiOperationRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + // List of operations to execute within a single workflow. + // + // Preconditions: + // - The list of operations must not be empty. + // - The workflow ids must match across operations. + // - The only valid list of operations at this time is [StartWorkflow, UpdateWorkflow], in this order. + // + // Note that additional operation-specific restrictions have to be considered. + Operations []*ExecuteMultiOperationRequest_Operation +} + +func (b0 ExecuteMultiOperationRequest_builder) Build() *ExecuteMultiOperationRequest { + m0 := &ExecuteMultiOperationRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_Operations = &b.Operations + return m0 +} + +// IMPORTANT: For [StartWorkflow, UpdateWorkflow] combination ("Update-with-Start") when both +// 1. the workflow update for the requested update ID has already completed, and +// 2. the workflow for the requested workflow ID has already been closed, +// +// then you'll receive +// - an update response containing the update's outcome, and +// - a start response with a `status` field that reflects the workflow's current state. +type ExecuteMultiOperationResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Responses *[]*ExecuteMultiOperationResponse_Response `protobuf:"bytes,1,rep,name=responses,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ExecuteMultiOperationResponse) Reset() { + *x = ExecuteMultiOperationResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[127] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ExecuteMultiOperationResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExecuteMultiOperationResponse) ProtoMessage() {} + +func (x *ExecuteMultiOperationResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[127] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ExecuteMultiOperationResponse) GetResponses() []*ExecuteMultiOperationResponse_Response { + if x != nil { + if x.xxx_hidden_Responses != nil { + return *x.xxx_hidden_Responses + } + } + return nil +} + +func (x *ExecuteMultiOperationResponse) SetResponses(v []*ExecuteMultiOperationResponse_Response) { + x.xxx_hidden_Responses = &v +} + +type ExecuteMultiOperationResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Responses []*ExecuteMultiOperationResponse_Response +} + +func (b0 ExecuteMultiOperationResponse_builder) Build() *ExecuteMultiOperationResponse { + m0 := &ExecuteMultiOperationResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Responses = &b.Responses + return m0 +} + +// NOTE: keep in sync with temporal.api.batch.v1.BatchOperationUpdateActivityOptions +type UpdateActivityOptionsRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_Execution *v13.WorkflowExecution `protobuf:"bytes,2,opt,name=execution,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,3,opt,name=identity,proto3"` + xxx_hidden_ActivityOptions *v120.ActivityOptions `protobuf:"bytes,4,opt,name=activity_options,json=activityOptions,proto3"` + xxx_hidden_UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,5,opt,name=update_mask,json=updateMask,proto3"` + xxx_hidden_Activity isUpdateActivityOptionsRequest_Activity `protobuf_oneof:"activity"` + xxx_hidden_RestoreOriginal bool `protobuf:"varint,8,opt,name=restore_original,json=restoreOriginal,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateActivityOptionsRequest) Reset() { + *x = UpdateActivityOptionsRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[128] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateActivityOptionsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateActivityOptionsRequest) ProtoMessage() {} + +func (x *UpdateActivityOptionsRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[128] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UpdateActivityOptionsRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *UpdateActivityOptionsRequest) GetExecution() *v13.WorkflowExecution { + if x != nil { + return x.xxx_hidden_Execution + } + return nil +} + +func (x *UpdateActivityOptionsRequest) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *UpdateActivityOptionsRequest) GetActivityOptions() *v120.ActivityOptions { + if x != nil { + return x.xxx_hidden_ActivityOptions + } + return nil +} + +func (x *UpdateActivityOptionsRequest) GetUpdateMask() *fieldmaskpb.FieldMask { + if x != nil { + return x.xxx_hidden_UpdateMask + } + return nil +} + +func (x *UpdateActivityOptionsRequest) GetId() string { + if x != nil { + if x, ok := x.xxx_hidden_Activity.(*updateActivityOptionsRequest_Id); ok { + return x.Id + } + } + return "" +} + +func (x *UpdateActivityOptionsRequest) GetType() string { + if x != nil { + if x, ok := x.xxx_hidden_Activity.(*updateActivityOptionsRequest_Type); ok { + return x.Type + } + } + return "" +} + +func (x *UpdateActivityOptionsRequest) GetMatchAll() bool { + if x != nil { + if x, ok := x.xxx_hidden_Activity.(*updateActivityOptionsRequest_MatchAll); ok { + return x.MatchAll + } + } + return false +} + +func (x *UpdateActivityOptionsRequest) GetRestoreOriginal() bool { + if x != nil { + return x.xxx_hidden_RestoreOriginal + } + return false +} + +func (x *UpdateActivityOptionsRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *UpdateActivityOptionsRequest) SetExecution(v *v13.WorkflowExecution) { + x.xxx_hidden_Execution = v +} + +func (x *UpdateActivityOptionsRequest) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *UpdateActivityOptionsRequest) SetActivityOptions(v *v120.ActivityOptions) { + x.xxx_hidden_ActivityOptions = v +} + +func (x *UpdateActivityOptionsRequest) SetUpdateMask(v *fieldmaskpb.FieldMask) { + x.xxx_hidden_UpdateMask = v +} + +func (x *UpdateActivityOptionsRequest) SetId(v string) { + x.xxx_hidden_Activity = &updateActivityOptionsRequest_Id{v} +} + +func (x *UpdateActivityOptionsRequest) SetType(v string) { + x.xxx_hidden_Activity = &updateActivityOptionsRequest_Type{v} +} + +func (x *UpdateActivityOptionsRequest) SetMatchAll(v bool) { + x.xxx_hidden_Activity = &updateActivityOptionsRequest_MatchAll{v} +} + +func (x *UpdateActivityOptionsRequest) SetRestoreOriginal(v bool) { + x.xxx_hidden_RestoreOriginal = v +} + +func (x *UpdateActivityOptionsRequest) HasExecution() bool { + if x == nil { + return false + } + return x.xxx_hidden_Execution != nil +} + +func (x *UpdateActivityOptionsRequest) HasActivityOptions() bool { + if x == nil { + return false + } + return x.xxx_hidden_ActivityOptions != nil +} + +func (x *UpdateActivityOptionsRequest) HasUpdateMask() bool { + if x == nil { + return false + } + return x.xxx_hidden_UpdateMask != nil +} + +func (x *UpdateActivityOptionsRequest) HasActivity() bool { + if x == nil { + return false + } + return x.xxx_hidden_Activity != nil +} + +func (x *UpdateActivityOptionsRequest) HasId() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Activity.(*updateActivityOptionsRequest_Id) + return ok +} + +func (x *UpdateActivityOptionsRequest) HasType() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Activity.(*updateActivityOptionsRequest_Type) + return ok +} + +func (x *UpdateActivityOptionsRequest) HasMatchAll() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Activity.(*updateActivityOptionsRequest_MatchAll) + return ok +} + +func (x *UpdateActivityOptionsRequest) ClearExecution() { + x.xxx_hidden_Execution = nil +} + +func (x *UpdateActivityOptionsRequest) ClearActivityOptions() { + x.xxx_hidden_ActivityOptions = nil +} + +func (x *UpdateActivityOptionsRequest) ClearUpdateMask() { + x.xxx_hidden_UpdateMask = nil +} + +func (x *UpdateActivityOptionsRequest) ClearActivity() { + x.xxx_hidden_Activity = nil +} + +func (x *UpdateActivityOptionsRequest) ClearId() { + if _, ok := x.xxx_hidden_Activity.(*updateActivityOptionsRequest_Id); ok { + x.xxx_hidden_Activity = nil + } +} + +func (x *UpdateActivityOptionsRequest) ClearType() { + if _, ok := x.xxx_hidden_Activity.(*updateActivityOptionsRequest_Type); ok { + x.xxx_hidden_Activity = nil + } +} + +func (x *UpdateActivityOptionsRequest) ClearMatchAll() { + if _, ok := x.xxx_hidden_Activity.(*updateActivityOptionsRequest_MatchAll); ok { + x.xxx_hidden_Activity = nil + } +} + +const UpdateActivityOptionsRequest_Activity_not_set_case case_UpdateActivityOptionsRequest_Activity = 0 +const UpdateActivityOptionsRequest_Id_case case_UpdateActivityOptionsRequest_Activity = 6 +const UpdateActivityOptionsRequest_Type_case case_UpdateActivityOptionsRequest_Activity = 7 +const UpdateActivityOptionsRequest_MatchAll_case case_UpdateActivityOptionsRequest_Activity = 9 + +func (x *UpdateActivityOptionsRequest) WhichActivity() case_UpdateActivityOptionsRequest_Activity { + if x == nil { + return UpdateActivityOptionsRequest_Activity_not_set_case + } + switch x.xxx_hidden_Activity.(type) { + case *updateActivityOptionsRequest_Id: + return UpdateActivityOptionsRequest_Id_case + case *updateActivityOptionsRequest_Type: + return UpdateActivityOptionsRequest_Type_case + case *updateActivityOptionsRequest_MatchAll: + return UpdateActivityOptionsRequest_MatchAll_case + default: + return UpdateActivityOptionsRequest_Activity_not_set_case + } +} + +type UpdateActivityOptionsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Namespace of the workflow which scheduled this activity + Namespace string + // Execution info of the workflow which scheduled this activity + Execution *v13.WorkflowExecution + // The identity of the client who initiated this request + Identity string + // Activity options. Partial updates are accepted and controlled by update_mask + ActivityOptions *v120.ActivityOptions + // Controls which fields from `activity_options` will be applied + UpdateMask *fieldmaskpb.FieldMask + // either activity id, activity type or update_all must be provided + + // Fields of oneof xxx_hidden_Activity: + // Only activity with this ID will be updated. + Id *string + // Update all running activities of this type. + Type *string + // Update all running activities. + MatchAll *bool + // -- end of xxx_hidden_Activity + // If set, the activity options will be restored to the default. + // Default options are then options activity was created with. + // They are part of the first SCHEDULE event. + // This flag cannot be combined with any other option; if you supply + // restore_original together with other options, the request will be rejected. + RestoreOriginal bool +} + +func (b0 UpdateActivityOptionsRequest_builder) Build() *UpdateActivityOptionsRequest { + m0 := &UpdateActivityOptionsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_Execution = b.Execution + x.xxx_hidden_Identity = b.Identity + x.xxx_hidden_ActivityOptions = b.ActivityOptions + x.xxx_hidden_UpdateMask = b.UpdateMask + if b.Id != nil { + x.xxx_hidden_Activity = &updateActivityOptionsRequest_Id{*b.Id} + } + if b.Type != nil { + x.xxx_hidden_Activity = &updateActivityOptionsRequest_Type{*b.Type} + } + if b.MatchAll != nil { + x.xxx_hidden_Activity = &updateActivityOptionsRequest_MatchAll{*b.MatchAll} + } + x.xxx_hidden_RestoreOriginal = b.RestoreOriginal + return m0 +} + +type case_UpdateActivityOptionsRequest_Activity protoreflect.FieldNumber + +func (x case_UpdateActivityOptionsRequest_Activity) String() string { + switch x { + case UpdateActivityOptionsRequest_Activity_not_set_case: + return "UpdateActivityOptionsRequestActivityNotSetCase" + case UpdateActivityOptionsRequest_Id_case: + return "UpdateActivityOptionsRequestIdCase" + case UpdateActivityOptionsRequest_Type_case: + return "UpdateActivityOptionsRequestTypeCase" + case UpdateActivityOptionsRequest_MatchAll_case: + return "UpdateActivityOptionsRequestMatchAllCase" + + // Only activity with this ID will be updated. + default: + return strconv.Itoa(int(x)) + } + +} + +type isUpdateActivityOptionsRequest_Activity interface { + isUpdateActivityOptionsRequest_Activity() +} + +type updateActivityOptionsRequest_Id struct { + Id string `protobuf:"bytes,6,opt,name=id,proto3,oneof"` +} + +type updateActivityOptionsRequest_Type struct { + // Update all running activities of this type. + Type string `protobuf:"bytes,7,opt,name=type,proto3,oneof"` +} + +type updateActivityOptionsRequest_MatchAll struct { + // Update all running activities. + MatchAll bool `protobuf:"varint,9,opt,name=match_all,json=matchAll,proto3,oneof"` +} + +func (*updateActivityOptionsRequest_Id) isUpdateActivityOptionsRequest_Activity() {} + +func (*updateActivityOptionsRequest_Type) isUpdateActivityOptionsRequest_Activity() {} + +func (*updateActivityOptionsRequest_MatchAll) isUpdateActivityOptionsRequest_Activity() {} + +type UpdateActivityOptionsResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ActivityOptions *v120.ActivityOptions `protobuf:"bytes,1,opt,name=activity_options,json=activityOptions,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateActivityOptionsResponse) Reset() { + *x = UpdateActivityOptionsResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[129] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateActivityOptionsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateActivityOptionsResponse) ProtoMessage() {} + +func (x *UpdateActivityOptionsResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[129] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UpdateActivityOptionsResponse) GetActivityOptions() *v120.ActivityOptions { + if x != nil { + return x.xxx_hidden_ActivityOptions + } + return nil +} + +func (x *UpdateActivityOptionsResponse) SetActivityOptions(v *v120.ActivityOptions) { + x.xxx_hidden_ActivityOptions = v +} + +func (x *UpdateActivityOptionsResponse) HasActivityOptions() bool { + if x == nil { + return false + } + return x.xxx_hidden_ActivityOptions != nil +} + +func (x *UpdateActivityOptionsResponse) ClearActivityOptions() { + x.xxx_hidden_ActivityOptions = nil +} + +type UpdateActivityOptionsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Activity options after an update + ActivityOptions *v120.ActivityOptions +} + +func (b0 UpdateActivityOptionsResponse_builder) Build() *UpdateActivityOptionsResponse { + m0 := &UpdateActivityOptionsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ActivityOptions = b.ActivityOptions + return m0 +} + +type PauseActivityRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_Execution *v13.WorkflowExecution `protobuf:"bytes,2,opt,name=execution,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,3,opt,name=identity,proto3"` + xxx_hidden_Activity isPauseActivityRequest_Activity `protobuf_oneof:"activity"` + xxx_hidden_Reason string `protobuf:"bytes,6,opt,name=reason,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PauseActivityRequest) Reset() { + *x = PauseActivityRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[130] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PauseActivityRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PauseActivityRequest) ProtoMessage() {} + +func (x *PauseActivityRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[130] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PauseActivityRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *PauseActivityRequest) GetExecution() *v13.WorkflowExecution { + if x != nil { + return x.xxx_hidden_Execution + } + return nil +} + +func (x *PauseActivityRequest) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *PauseActivityRequest) GetId() string { + if x != nil { + if x, ok := x.xxx_hidden_Activity.(*pauseActivityRequest_Id); ok { + return x.Id + } + } + return "" +} + +func (x *PauseActivityRequest) GetType() string { + if x != nil { + if x, ok := x.xxx_hidden_Activity.(*pauseActivityRequest_Type); ok { + return x.Type + } + } + return "" +} + +func (x *PauseActivityRequest) GetReason() string { + if x != nil { + return x.xxx_hidden_Reason + } + return "" +} + +func (x *PauseActivityRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *PauseActivityRequest) SetExecution(v *v13.WorkflowExecution) { + x.xxx_hidden_Execution = v +} + +func (x *PauseActivityRequest) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *PauseActivityRequest) SetId(v string) { + x.xxx_hidden_Activity = &pauseActivityRequest_Id{v} +} + +func (x *PauseActivityRequest) SetType(v string) { + x.xxx_hidden_Activity = &pauseActivityRequest_Type{v} +} + +func (x *PauseActivityRequest) SetReason(v string) { + x.xxx_hidden_Reason = v +} + +func (x *PauseActivityRequest) HasExecution() bool { + if x == nil { + return false + } + return x.xxx_hidden_Execution != nil +} + +func (x *PauseActivityRequest) HasActivity() bool { + if x == nil { + return false + } + return x.xxx_hidden_Activity != nil +} + +func (x *PauseActivityRequest) HasId() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Activity.(*pauseActivityRequest_Id) + return ok +} + +func (x *PauseActivityRequest) HasType() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Activity.(*pauseActivityRequest_Type) + return ok +} + +func (x *PauseActivityRequest) ClearExecution() { + x.xxx_hidden_Execution = nil +} + +func (x *PauseActivityRequest) ClearActivity() { + x.xxx_hidden_Activity = nil +} + +func (x *PauseActivityRequest) ClearId() { + if _, ok := x.xxx_hidden_Activity.(*pauseActivityRequest_Id); ok { + x.xxx_hidden_Activity = nil + } +} + +func (x *PauseActivityRequest) ClearType() { + if _, ok := x.xxx_hidden_Activity.(*pauseActivityRequest_Type); ok { + x.xxx_hidden_Activity = nil + } +} + +const PauseActivityRequest_Activity_not_set_case case_PauseActivityRequest_Activity = 0 +const PauseActivityRequest_Id_case case_PauseActivityRequest_Activity = 4 +const PauseActivityRequest_Type_case case_PauseActivityRequest_Activity = 5 + +func (x *PauseActivityRequest) WhichActivity() case_PauseActivityRequest_Activity { + if x == nil { + return PauseActivityRequest_Activity_not_set_case + } + switch x.xxx_hidden_Activity.(type) { + case *pauseActivityRequest_Id: + return PauseActivityRequest_Id_case + case *pauseActivityRequest_Type: + return PauseActivityRequest_Type_case + default: + return PauseActivityRequest_Activity_not_set_case + } +} + +type PauseActivityRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Namespace of the workflow which scheduled this activity. + Namespace string + // Execution info of the workflow which scheduled this activity + Execution *v13.WorkflowExecution + // The identity of the client who initiated this request. + Identity string + // either activity id or activity type must be provided + + // Fields of oneof xxx_hidden_Activity: + // Only the activity with this ID will be paused. + Id *string + // Pause all running activities of this type. + // Note: Experimental - the behavior of pause by activity type might change in a future release. + Type *string + // -- end of xxx_hidden_Activity + // Reason to pause the activity. + Reason string +} + +func (b0 PauseActivityRequest_builder) Build() *PauseActivityRequest { + m0 := &PauseActivityRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_Execution = b.Execution + x.xxx_hidden_Identity = b.Identity + if b.Id != nil { + x.xxx_hidden_Activity = &pauseActivityRequest_Id{*b.Id} + } + if b.Type != nil { + x.xxx_hidden_Activity = &pauseActivityRequest_Type{*b.Type} + } + x.xxx_hidden_Reason = b.Reason + return m0 +} + +type case_PauseActivityRequest_Activity protoreflect.FieldNumber + +func (x case_PauseActivityRequest_Activity) String() string { + switch x { + case PauseActivityRequest_Activity_not_set_case: + return "PauseActivityRequestActivityNotSetCase" + case PauseActivityRequest_Id_case: + return "PauseActivityRequestIdCase" + case PauseActivityRequest_Type_case: + return "PauseActivityRequestTypeCase" + default: + return strconv.Itoa(int(x)) + } + +} + +type isPauseActivityRequest_Activity interface { + isPauseActivityRequest_Activity() +} + +type pauseActivityRequest_Id struct { + // Only the activity with this ID will be paused. + Id string `protobuf:"bytes,4,opt,name=id,proto3,oneof"` +} + +type pauseActivityRequest_Type struct { + // Pause all running activities of this type. + // Note: Experimental - the behavior of pause by activity type might change in a future release. + Type string `protobuf:"bytes,5,opt,name=type,proto3,oneof"` +} + +func (*pauseActivityRequest_Id) isPauseActivityRequest_Activity() {} + +func (*pauseActivityRequest_Type) isPauseActivityRequest_Activity() {} + +type PauseActivityResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PauseActivityResponse) Reset() { + *x = PauseActivityResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[131] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PauseActivityResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PauseActivityResponse) ProtoMessage() {} + +func (x *PauseActivityResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[131] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type PauseActivityResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 PauseActivityResponse_builder) Build() *PauseActivityResponse { + m0 := &PauseActivityResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type UnpauseActivityRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_Execution *v13.WorkflowExecution `protobuf:"bytes,2,opt,name=execution,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,3,opt,name=identity,proto3"` + xxx_hidden_Activity isUnpauseActivityRequest_Activity `protobuf_oneof:"activity"` + xxx_hidden_ResetAttempts bool `protobuf:"varint,7,opt,name=reset_attempts,json=resetAttempts,proto3"` + xxx_hidden_ResetHeartbeat bool `protobuf:"varint,8,opt,name=reset_heartbeat,json=resetHeartbeat,proto3"` + xxx_hidden_Jitter *durationpb.Duration `protobuf:"bytes,9,opt,name=jitter,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UnpauseActivityRequest) Reset() { + *x = UnpauseActivityRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[132] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UnpauseActivityRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UnpauseActivityRequest) ProtoMessage() {} + +func (x *UnpauseActivityRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[132] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UnpauseActivityRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *UnpauseActivityRequest) GetExecution() *v13.WorkflowExecution { + if x != nil { + return x.xxx_hidden_Execution + } + return nil +} + +func (x *UnpauseActivityRequest) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *UnpauseActivityRequest) GetId() string { + if x != nil { + if x, ok := x.xxx_hidden_Activity.(*unpauseActivityRequest_Id); ok { + return x.Id + } + } + return "" +} + +func (x *UnpauseActivityRequest) GetType() string { + if x != nil { + if x, ok := x.xxx_hidden_Activity.(*unpauseActivityRequest_Type); ok { + return x.Type + } + } + return "" +} + +func (x *UnpauseActivityRequest) GetUnpauseAll() bool { + if x != nil { + if x, ok := x.xxx_hidden_Activity.(*unpauseActivityRequest_UnpauseAll); ok { + return x.UnpauseAll + } + } + return false +} + +func (x *UnpauseActivityRequest) GetResetAttempts() bool { + if x != nil { + return x.xxx_hidden_ResetAttempts + } + return false +} + +func (x *UnpauseActivityRequest) GetResetHeartbeat() bool { + if x != nil { + return x.xxx_hidden_ResetHeartbeat + } + return false +} + +func (x *UnpauseActivityRequest) GetJitter() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_Jitter + } + return nil +} + +func (x *UnpauseActivityRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *UnpauseActivityRequest) SetExecution(v *v13.WorkflowExecution) { + x.xxx_hidden_Execution = v +} + +func (x *UnpauseActivityRequest) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *UnpauseActivityRequest) SetId(v string) { + x.xxx_hidden_Activity = &unpauseActivityRequest_Id{v} +} + +func (x *UnpauseActivityRequest) SetType(v string) { + x.xxx_hidden_Activity = &unpauseActivityRequest_Type{v} +} + +func (x *UnpauseActivityRequest) SetUnpauseAll(v bool) { + x.xxx_hidden_Activity = &unpauseActivityRequest_UnpauseAll{v} +} + +func (x *UnpauseActivityRequest) SetResetAttempts(v bool) { + x.xxx_hidden_ResetAttempts = v +} + +func (x *UnpauseActivityRequest) SetResetHeartbeat(v bool) { + x.xxx_hidden_ResetHeartbeat = v +} + +func (x *UnpauseActivityRequest) SetJitter(v *durationpb.Duration) { + x.xxx_hidden_Jitter = v +} + +func (x *UnpauseActivityRequest) HasExecution() bool { + if x == nil { + return false + } + return x.xxx_hidden_Execution != nil +} + +func (x *UnpauseActivityRequest) HasActivity() bool { + if x == nil { + return false + } + return x.xxx_hidden_Activity != nil +} + +func (x *UnpauseActivityRequest) HasId() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Activity.(*unpauseActivityRequest_Id) + return ok +} + +func (x *UnpauseActivityRequest) HasType() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Activity.(*unpauseActivityRequest_Type) + return ok +} + +func (x *UnpauseActivityRequest) HasUnpauseAll() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Activity.(*unpauseActivityRequest_UnpauseAll) + return ok +} + +func (x *UnpauseActivityRequest) HasJitter() bool { + if x == nil { + return false + } + return x.xxx_hidden_Jitter != nil +} + +func (x *UnpauseActivityRequest) ClearExecution() { + x.xxx_hidden_Execution = nil +} + +func (x *UnpauseActivityRequest) ClearActivity() { + x.xxx_hidden_Activity = nil +} + +func (x *UnpauseActivityRequest) ClearId() { + if _, ok := x.xxx_hidden_Activity.(*unpauseActivityRequest_Id); ok { + x.xxx_hidden_Activity = nil + } +} + +func (x *UnpauseActivityRequest) ClearType() { + if _, ok := x.xxx_hidden_Activity.(*unpauseActivityRequest_Type); ok { + x.xxx_hidden_Activity = nil + } +} + +func (x *UnpauseActivityRequest) ClearUnpauseAll() { + if _, ok := x.xxx_hidden_Activity.(*unpauseActivityRequest_UnpauseAll); ok { + x.xxx_hidden_Activity = nil + } +} + +func (x *UnpauseActivityRequest) ClearJitter() { + x.xxx_hidden_Jitter = nil +} + +const UnpauseActivityRequest_Activity_not_set_case case_UnpauseActivityRequest_Activity = 0 +const UnpauseActivityRequest_Id_case case_UnpauseActivityRequest_Activity = 4 +const UnpauseActivityRequest_Type_case case_UnpauseActivityRequest_Activity = 5 +const UnpauseActivityRequest_UnpauseAll_case case_UnpauseActivityRequest_Activity = 6 + +func (x *UnpauseActivityRequest) WhichActivity() case_UnpauseActivityRequest_Activity { + if x == nil { + return UnpauseActivityRequest_Activity_not_set_case + } + switch x.xxx_hidden_Activity.(type) { + case *unpauseActivityRequest_Id: + return UnpauseActivityRequest_Id_case + case *unpauseActivityRequest_Type: + return UnpauseActivityRequest_Type_case + case *unpauseActivityRequest_UnpauseAll: + return UnpauseActivityRequest_UnpauseAll_case + default: + return UnpauseActivityRequest_Activity_not_set_case + } +} + +type UnpauseActivityRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Namespace of the workflow which scheduled this activity. + Namespace string + // Execution info of the workflow which scheduled this activity + Execution *v13.WorkflowExecution + // The identity of the client who initiated this request. + Identity string + // either activity id or activity type must be provided + + // Fields of oneof xxx_hidden_Activity: + // Only the activity with this ID will be unpaused. + Id *string + // Unpause all running activities with of this type. + Type *string + // Unpause all running activities. + UnpauseAll *bool + // -- end of xxx_hidden_Activity + // Providing this flag will also reset the number of attempts. + ResetAttempts bool + // Providing this flag will also reset the heartbeat details. + ResetHeartbeat bool + // If set, the activity will start at a random time within the specified jitter duration. + Jitter *durationpb.Duration +} + +func (b0 UnpauseActivityRequest_builder) Build() *UnpauseActivityRequest { + m0 := &UnpauseActivityRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_Execution = b.Execution + x.xxx_hidden_Identity = b.Identity + if b.Id != nil { + x.xxx_hidden_Activity = &unpauseActivityRequest_Id{*b.Id} + } + if b.Type != nil { + x.xxx_hidden_Activity = &unpauseActivityRequest_Type{*b.Type} + } + if b.UnpauseAll != nil { + x.xxx_hidden_Activity = &unpauseActivityRequest_UnpauseAll{*b.UnpauseAll} + } + x.xxx_hidden_ResetAttempts = b.ResetAttempts + x.xxx_hidden_ResetHeartbeat = b.ResetHeartbeat + x.xxx_hidden_Jitter = b.Jitter + return m0 +} + +type case_UnpauseActivityRequest_Activity protoreflect.FieldNumber + +func (x case_UnpauseActivityRequest_Activity) String() string { + switch x { + case UnpauseActivityRequest_Activity_not_set_case: + return "UnpauseActivityRequestActivityNotSetCase" + case UnpauseActivityRequest_Id_case: + return "UnpauseActivityRequestIdCase" + case UnpauseActivityRequest_Type_case: + return "UnpauseActivityRequestTypeCase" + case UnpauseActivityRequest_UnpauseAll_case: + return "UnpauseActivityRequestUnpauseAllCase" + default + + // Only the activity with this ID will be unpaused. + : + return strconv.Itoa(int(x)) + } + +} + +type isUnpauseActivityRequest_Activity interface { + isUnpauseActivityRequest_Activity() +} + +type unpauseActivityRequest_Id struct { + Id string `protobuf:"bytes,4,opt,name=id,proto3,oneof"` +} + +type unpauseActivityRequest_Type struct { + // Unpause all running activities with of this type. + Type string `protobuf:"bytes,5,opt,name=type,proto3,oneof"` +} + +type unpauseActivityRequest_UnpauseAll struct { + // Unpause all running activities. + UnpauseAll bool `protobuf:"varint,6,opt,name=unpause_all,json=unpauseAll,proto3,oneof"` +} + +func (*unpauseActivityRequest_Id) isUnpauseActivityRequest_Activity() {} + +func (*unpauseActivityRequest_Type) isUnpauseActivityRequest_Activity() {} + +func (*unpauseActivityRequest_UnpauseAll) isUnpauseActivityRequest_Activity() {} + +type UnpauseActivityResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UnpauseActivityResponse) Reset() { + *x = UnpauseActivityResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[133] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UnpauseActivityResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UnpauseActivityResponse) ProtoMessage() {} + +func (x *UnpauseActivityResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[133] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type UnpauseActivityResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 UnpauseActivityResponse_builder) Build() *UnpauseActivityResponse { + m0 := &UnpauseActivityResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +// NOTE: keep in sync with temporal.api.batch.v1.BatchOperationResetActivities +type ResetActivityRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_Execution *v13.WorkflowExecution `protobuf:"bytes,2,opt,name=execution,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,3,opt,name=identity,proto3"` + xxx_hidden_Activity isResetActivityRequest_Activity `protobuf_oneof:"activity"` + xxx_hidden_ResetHeartbeat bool `protobuf:"varint,6,opt,name=reset_heartbeat,json=resetHeartbeat,proto3"` + xxx_hidden_KeepPaused bool `protobuf:"varint,7,opt,name=keep_paused,json=keepPaused,proto3"` + xxx_hidden_Jitter *durationpb.Duration `protobuf:"bytes,8,opt,name=jitter,proto3"` + xxx_hidden_RestoreOriginalOptions bool `protobuf:"varint,9,opt,name=restore_original_options,json=restoreOriginalOptions,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ResetActivityRequest) Reset() { + *x = ResetActivityRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[134] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ResetActivityRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResetActivityRequest) ProtoMessage() {} + +func (x *ResetActivityRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[134] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ResetActivityRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *ResetActivityRequest) GetExecution() *v13.WorkflowExecution { + if x != nil { + return x.xxx_hidden_Execution + } + return nil +} + +func (x *ResetActivityRequest) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *ResetActivityRequest) GetId() string { + if x != nil { + if x, ok := x.xxx_hidden_Activity.(*resetActivityRequest_Id); ok { + return x.Id + } + } + return "" +} + +func (x *ResetActivityRequest) GetType() string { + if x != nil { + if x, ok := x.xxx_hidden_Activity.(*resetActivityRequest_Type); ok { + return x.Type + } + } + return "" +} + +func (x *ResetActivityRequest) GetMatchAll() bool { + if x != nil { + if x, ok := x.xxx_hidden_Activity.(*resetActivityRequest_MatchAll); ok { + return x.MatchAll + } + } + return false +} + +func (x *ResetActivityRequest) GetResetHeartbeat() bool { + if x != nil { + return x.xxx_hidden_ResetHeartbeat + } + return false +} + +func (x *ResetActivityRequest) GetKeepPaused() bool { + if x != nil { + return x.xxx_hidden_KeepPaused + } + return false +} + +func (x *ResetActivityRequest) GetJitter() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_Jitter + } + return nil +} + +func (x *ResetActivityRequest) GetRestoreOriginalOptions() bool { + if x != nil { + return x.xxx_hidden_RestoreOriginalOptions + } + return false +} + +func (x *ResetActivityRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *ResetActivityRequest) SetExecution(v *v13.WorkflowExecution) { + x.xxx_hidden_Execution = v +} + +func (x *ResetActivityRequest) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *ResetActivityRequest) SetId(v string) { + x.xxx_hidden_Activity = &resetActivityRequest_Id{v} +} + +func (x *ResetActivityRequest) SetType(v string) { + x.xxx_hidden_Activity = &resetActivityRequest_Type{v} +} + +func (x *ResetActivityRequest) SetMatchAll(v bool) { + x.xxx_hidden_Activity = &resetActivityRequest_MatchAll{v} +} + +func (x *ResetActivityRequest) SetResetHeartbeat(v bool) { + x.xxx_hidden_ResetHeartbeat = v +} + +func (x *ResetActivityRequest) SetKeepPaused(v bool) { + x.xxx_hidden_KeepPaused = v +} + +func (x *ResetActivityRequest) SetJitter(v *durationpb.Duration) { + x.xxx_hidden_Jitter = v +} + +func (x *ResetActivityRequest) SetRestoreOriginalOptions(v bool) { + x.xxx_hidden_RestoreOriginalOptions = v +} + +func (x *ResetActivityRequest) HasExecution() bool { + if x == nil { + return false + } + return x.xxx_hidden_Execution != nil +} + +func (x *ResetActivityRequest) HasActivity() bool { + if x == nil { + return false + } + return x.xxx_hidden_Activity != nil +} + +func (x *ResetActivityRequest) HasId() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Activity.(*resetActivityRequest_Id) + return ok +} + +func (x *ResetActivityRequest) HasType() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Activity.(*resetActivityRequest_Type) + return ok +} + +func (x *ResetActivityRequest) HasMatchAll() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Activity.(*resetActivityRequest_MatchAll) + return ok +} + +func (x *ResetActivityRequest) HasJitter() bool { + if x == nil { + return false + } + return x.xxx_hidden_Jitter != nil +} + +func (x *ResetActivityRequest) ClearExecution() { + x.xxx_hidden_Execution = nil +} + +func (x *ResetActivityRequest) ClearActivity() { + x.xxx_hidden_Activity = nil +} + +func (x *ResetActivityRequest) ClearId() { + if _, ok := x.xxx_hidden_Activity.(*resetActivityRequest_Id); ok { + x.xxx_hidden_Activity = nil + } +} + +func (x *ResetActivityRequest) ClearType() { + if _, ok := x.xxx_hidden_Activity.(*resetActivityRequest_Type); ok { + x.xxx_hidden_Activity = nil + } +} + +func (x *ResetActivityRequest) ClearMatchAll() { + if _, ok := x.xxx_hidden_Activity.(*resetActivityRequest_MatchAll); ok { + x.xxx_hidden_Activity = nil + } +} + +func (x *ResetActivityRequest) ClearJitter() { + x.xxx_hidden_Jitter = nil +} + +const ResetActivityRequest_Activity_not_set_case case_ResetActivityRequest_Activity = 0 +const ResetActivityRequest_Id_case case_ResetActivityRequest_Activity = 4 +const ResetActivityRequest_Type_case case_ResetActivityRequest_Activity = 5 +const ResetActivityRequest_MatchAll_case case_ResetActivityRequest_Activity = 10 + +func (x *ResetActivityRequest) WhichActivity() case_ResetActivityRequest_Activity { + if x == nil { + return ResetActivityRequest_Activity_not_set_case + } + switch x.xxx_hidden_Activity.(type) { + case *resetActivityRequest_Id: + return ResetActivityRequest_Id_case + case *resetActivityRequest_Type: + return ResetActivityRequest_Type_case + case *resetActivityRequest_MatchAll: + return ResetActivityRequest_MatchAll_case + default: + return ResetActivityRequest_Activity_not_set_case + } +} + +type ResetActivityRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Namespace of the workflow which scheduled this activity. + Namespace string + // Execution info of the workflow which scheduled this activity + Execution *v13.WorkflowExecution + // The identity of the client who initiated this request. + Identity string + // either activity id, activity type or update_all must be provided + + // Fields of oneof xxx_hidden_Activity: + // Only activity with this ID will be reset. + Id *string + // Reset all running activities with of this type. + Type *string + // Reset all running activities. + MatchAll *bool + // -- end of xxx_hidden_Activity + // Indicates that activity should reset heartbeat details. + // This flag will be applied only to the new instance of the activity. + ResetHeartbeat bool + // If activity is paused, it will remain paused after reset + KeepPaused bool + // If set, and activity is in backoff, the activity will start at a random time within the specified jitter duration. + // (unless it is paused and keep_paused is set) + Jitter *durationpb.Duration + // If set, the activity options will be restored to the defaults. + // Default options are then options activity was created with. + // They are part of the first SCHEDULE event. + RestoreOriginalOptions bool +} + +func (b0 ResetActivityRequest_builder) Build() *ResetActivityRequest { + m0 := &ResetActivityRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_Execution = b.Execution + x.xxx_hidden_Identity = b.Identity + if b.Id != nil { + x.xxx_hidden_Activity = &resetActivityRequest_Id{*b.Id} + } + if b.Type != nil { + x.xxx_hidden_Activity = &resetActivityRequest_Type{*b.Type} + } + if b.MatchAll != nil { + x.xxx_hidden_Activity = &resetActivityRequest_MatchAll{*b.MatchAll} + } + x.xxx_hidden_ResetHeartbeat = b.ResetHeartbeat + x.xxx_hidden_KeepPaused = b.KeepPaused + x.xxx_hidden_Jitter = b.Jitter + x.xxx_hidden_RestoreOriginalOptions = b.RestoreOriginalOptions + return m0 +} + +type case_ResetActivityRequest_Activity protoreflect.FieldNumber + +func (x case_ResetActivityRequest_Activity) String() string { + switch x { + case ResetActivityRequest_Activity_not_set_case: + return "ResetActivityRequestActivityNotSetCase" + case ResetActivityRequest_Id_case: + return "ResetActivityRequestIdCase" + case ResetActivityRequest_Type_case: + return "ResetActivityRequestTypeCase" + case ResetActivityRequest_MatchAll_case: + return "ResetActivityRequestMatchAllCase" + default: + return strconv. + + // Only activity with this ID will be reset. + Itoa(int(x)) + } + +} + +type isResetActivityRequest_Activity interface { + isResetActivityRequest_Activity() +} + +type resetActivityRequest_Id struct { + Id string `protobuf:"bytes,4,opt,name=id,proto3,oneof"` +} + +type resetActivityRequest_Type struct { + // Reset all running activities with of this type. + Type string `protobuf:"bytes,5,opt,name=type,proto3,oneof"` +} + +type resetActivityRequest_MatchAll struct { + // Reset all running activities. + MatchAll bool `protobuf:"varint,10,opt,name=match_all,json=matchAll,proto3,oneof"` +} + +func (*resetActivityRequest_Id) isResetActivityRequest_Activity() {} + +func (*resetActivityRequest_Type) isResetActivityRequest_Activity() {} + +func (*resetActivityRequest_MatchAll) isResetActivityRequest_Activity() {} + +type ResetActivityResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ResetActivityResponse) Reset() { + *x = ResetActivityResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[135] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ResetActivityResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResetActivityResponse) ProtoMessage() {} + +func (x *ResetActivityResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[135] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type ResetActivityResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 ResetActivityResponse_builder) Build() *ResetActivityResponse { + m0 := &ResetActivityResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +// Keep the parameters in sync with: +// - temporal.api.batch.v1.BatchOperationUpdateWorkflowExecutionOptions. +// - temporal.api.workflow.v1.PostResetOperation.UpdateWorkflowOptions. +type UpdateWorkflowExecutionOptionsRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_WorkflowExecution *v13.WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3"` + xxx_hidden_WorkflowExecutionOptions *v17.WorkflowExecutionOptions `protobuf:"bytes,3,opt,name=workflow_execution_options,json=workflowExecutionOptions,proto3"` + xxx_hidden_UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,4,opt,name=update_mask,json=updateMask,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,5,opt,name=identity,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateWorkflowExecutionOptionsRequest) Reset() { + *x = UpdateWorkflowExecutionOptionsRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[136] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateWorkflowExecutionOptionsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateWorkflowExecutionOptionsRequest) ProtoMessage() {} + +func (x *UpdateWorkflowExecutionOptionsRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[136] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UpdateWorkflowExecutionOptionsRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *UpdateWorkflowExecutionOptionsRequest) GetWorkflowExecution() *v13.WorkflowExecution { + if x != nil { + return x.xxx_hidden_WorkflowExecution + } + return nil +} + +func (x *UpdateWorkflowExecutionOptionsRequest) GetWorkflowExecutionOptions() *v17.WorkflowExecutionOptions { + if x != nil { + return x.xxx_hidden_WorkflowExecutionOptions + } + return nil +} + +func (x *UpdateWorkflowExecutionOptionsRequest) GetUpdateMask() *fieldmaskpb.FieldMask { + if x != nil { + return x.xxx_hidden_UpdateMask + } + return nil +} + +func (x *UpdateWorkflowExecutionOptionsRequest) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *UpdateWorkflowExecutionOptionsRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *UpdateWorkflowExecutionOptionsRequest) SetWorkflowExecution(v *v13.WorkflowExecution) { + x.xxx_hidden_WorkflowExecution = v +} + +func (x *UpdateWorkflowExecutionOptionsRequest) SetWorkflowExecutionOptions(v *v17.WorkflowExecutionOptions) { + x.xxx_hidden_WorkflowExecutionOptions = v +} + +func (x *UpdateWorkflowExecutionOptionsRequest) SetUpdateMask(v *fieldmaskpb.FieldMask) { + x.xxx_hidden_UpdateMask = v +} + +func (x *UpdateWorkflowExecutionOptionsRequest) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *UpdateWorkflowExecutionOptionsRequest) HasWorkflowExecution() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowExecution != nil +} + +func (x *UpdateWorkflowExecutionOptionsRequest) HasWorkflowExecutionOptions() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowExecutionOptions != nil +} + +func (x *UpdateWorkflowExecutionOptionsRequest) HasUpdateMask() bool { + if x == nil { + return false + } + return x.xxx_hidden_UpdateMask != nil +} + +func (x *UpdateWorkflowExecutionOptionsRequest) ClearWorkflowExecution() { + x.xxx_hidden_WorkflowExecution = nil +} + +func (x *UpdateWorkflowExecutionOptionsRequest) ClearWorkflowExecutionOptions() { + x.xxx_hidden_WorkflowExecutionOptions = nil +} + +func (x *UpdateWorkflowExecutionOptionsRequest) ClearUpdateMask() { + x.xxx_hidden_UpdateMask = nil +} + +type UpdateWorkflowExecutionOptionsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The namespace name of the target Workflow. + Namespace string + // The target Workflow Id and (optionally) a specific Run Id thereof. + // (-- api-linter: core::0203::optional=disabled + // + // aip.dev/not-precedent: false positive triggered by the word "optional" --) + WorkflowExecution *v13.WorkflowExecution + // Workflow Execution options. Partial updates are accepted and controlled by update_mask. + WorkflowExecutionOptions *v17.WorkflowExecutionOptions + // Controls which fields from `workflow_execution_options` will be applied. + // To unset a field, set it to null and use the update mask to indicate that it should be mutated. + UpdateMask *fieldmaskpb.FieldMask + // Optional. The identity of the client who initiated this request. + Identity string +} + +func (b0 UpdateWorkflowExecutionOptionsRequest_builder) Build() *UpdateWorkflowExecutionOptionsRequest { + m0 := &UpdateWorkflowExecutionOptionsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_WorkflowExecution = b.WorkflowExecution + x.xxx_hidden_WorkflowExecutionOptions = b.WorkflowExecutionOptions + x.xxx_hidden_UpdateMask = b.UpdateMask + x.xxx_hidden_Identity = b.Identity + return m0 +} + +type UpdateWorkflowExecutionOptionsResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_WorkflowExecutionOptions *v17.WorkflowExecutionOptions `protobuf:"bytes,1,opt,name=workflow_execution_options,json=workflowExecutionOptions,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateWorkflowExecutionOptionsResponse) Reset() { + *x = UpdateWorkflowExecutionOptionsResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[137] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateWorkflowExecutionOptionsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateWorkflowExecutionOptionsResponse) ProtoMessage() {} + +func (x *UpdateWorkflowExecutionOptionsResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[137] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UpdateWorkflowExecutionOptionsResponse) GetWorkflowExecutionOptions() *v17.WorkflowExecutionOptions { + if x != nil { + return x.xxx_hidden_WorkflowExecutionOptions + } + return nil +} + +func (x *UpdateWorkflowExecutionOptionsResponse) SetWorkflowExecutionOptions(v *v17.WorkflowExecutionOptions) { + x.xxx_hidden_WorkflowExecutionOptions = v +} + +func (x *UpdateWorkflowExecutionOptionsResponse) HasWorkflowExecutionOptions() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkflowExecutionOptions != nil +} + +func (x *UpdateWorkflowExecutionOptionsResponse) ClearWorkflowExecutionOptions() { + x.xxx_hidden_WorkflowExecutionOptions = nil +} + +type UpdateWorkflowExecutionOptionsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Workflow Execution options after update. + WorkflowExecutionOptions *v17.WorkflowExecutionOptions +} + +func (b0 UpdateWorkflowExecutionOptionsResponse_builder) Build() *UpdateWorkflowExecutionOptionsResponse { + m0 := &UpdateWorkflowExecutionOptionsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_WorkflowExecutionOptions = b.WorkflowExecutionOptions + return m0 +} + +// [cleanup-wv-pre-release] Pre-release deployment APIs, clean up later +type DescribeDeploymentRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_Deployment *v18.Deployment `protobuf:"bytes,2,opt,name=deployment,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DescribeDeploymentRequest) Reset() { + *x = DescribeDeploymentRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[138] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DescribeDeploymentRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DescribeDeploymentRequest) ProtoMessage() {} + +func (x *DescribeDeploymentRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[138] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DescribeDeploymentRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *DescribeDeploymentRequest) GetDeployment() *v18.Deployment { + if x != nil { + return x.xxx_hidden_Deployment + } + return nil +} + +func (x *DescribeDeploymentRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *DescribeDeploymentRequest) SetDeployment(v *v18.Deployment) { + x.xxx_hidden_Deployment = v +} + +func (x *DescribeDeploymentRequest) HasDeployment() bool { + if x == nil { + return false + } + return x.xxx_hidden_Deployment != nil +} + +func (x *DescribeDeploymentRequest) ClearDeployment() { + x.xxx_hidden_Deployment = nil +} + +type DescribeDeploymentRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + Deployment *v18.Deployment +} + +func (b0 DescribeDeploymentRequest_builder) Build() *DescribeDeploymentRequest { + m0 := &DescribeDeploymentRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_Deployment = b.Deployment + return m0 +} + +// [cleanup-wv-pre-release] Pre-release deployment APIs, clean up later +type DescribeDeploymentResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_DeploymentInfo *v18.DeploymentInfo `protobuf:"bytes,1,opt,name=deployment_info,json=deploymentInfo,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DescribeDeploymentResponse) Reset() { + *x = DescribeDeploymentResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[139] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DescribeDeploymentResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DescribeDeploymentResponse) ProtoMessage() {} + +func (x *DescribeDeploymentResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[139] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DescribeDeploymentResponse) GetDeploymentInfo() *v18.DeploymentInfo { + if x != nil { + return x.xxx_hidden_DeploymentInfo + } + return nil +} + +func (x *DescribeDeploymentResponse) SetDeploymentInfo(v *v18.DeploymentInfo) { + x.xxx_hidden_DeploymentInfo = v +} + +func (x *DescribeDeploymentResponse) HasDeploymentInfo() bool { + if x == nil { + return false + } + return x.xxx_hidden_DeploymentInfo != nil +} + +func (x *DescribeDeploymentResponse) ClearDeploymentInfo() { + x.xxx_hidden_DeploymentInfo = nil +} + +type DescribeDeploymentResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + DeploymentInfo *v18.DeploymentInfo +} + +func (b0 DescribeDeploymentResponse_builder) Build() *DescribeDeploymentResponse { + m0 := &DescribeDeploymentResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_DeploymentInfo = b.DeploymentInfo + return m0 +} + +type DescribeWorkerDeploymentVersionRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_Version string `protobuf:"bytes,2,opt,name=version,proto3"` + xxx_hidden_DeploymentVersion *v18.WorkerDeploymentVersion `protobuf:"bytes,3,opt,name=deployment_version,json=deploymentVersion,proto3"` + xxx_hidden_ReportTaskQueueStats bool `protobuf:"varint,4,opt,name=report_task_queue_stats,json=reportTaskQueueStats,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DescribeWorkerDeploymentVersionRequest) Reset() { + *x = DescribeWorkerDeploymentVersionRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[140] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DescribeWorkerDeploymentVersionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DescribeWorkerDeploymentVersionRequest) ProtoMessage() {} + +func (x *DescribeWorkerDeploymentVersionRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[140] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DescribeWorkerDeploymentVersionRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *DescribeWorkerDeploymentVersionRequest) GetVersion() string { + if x != nil { + return x.xxx_hidden_Version + } + return "" +} + +func (x *DescribeWorkerDeploymentVersionRequest) GetDeploymentVersion() *v18.WorkerDeploymentVersion { + if x != nil { + return x.xxx_hidden_DeploymentVersion + } + return nil +} + +func (x *DescribeWorkerDeploymentVersionRequest) GetReportTaskQueueStats() bool { + if x != nil { + return x.xxx_hidden_ReportTaskQueueStats + } + return false +} + +func (x *DescribeWorkerDeploymentVersionRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *DescribeWorkerDeploymentVersionRequest) SetVersion(v string) { + x.xxx_hidden_Version = v +} + +func (x *DescribeWorkerDeploymentVersionRequest) SetDeploymentVersion(v *v18.WorkerDeploymentVersion) { + x.xxx_hidden_DeploymentVersion = v +} + +func (x *DescribeWorkerDeploymentVersionRequest) SetReportTaskQueueStats(v bool) { + x.xxx_hidden_ReportTaskQueueStats = v +} + +func (x *DescribeWorkerDeploymentVersionRequest) HasDeploymentVersion() bool { + if x == nil { + return false + } + return x.xxx_hidden_DeploymentVersion != nil +} + +func (x *DescribeWorkerDeploymentVersionRequest) ClearDeploymentVersion() { + x.xxx_hidden_DeploymentVersion = nil +} + +type DescribeWorkerDeploymentVersionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + // Deprecated. Use `deployment_version`. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + Version string + // Required. + DeploymentVersion *v18.WorkerDeploymentVersion + // Report stats for task queues which have been polled by this version. + ReportTaskQueueStats bool +} + +func (b0 DescribeWorkerDeploymentVersionRequest_builder) Build() *DescribeWorkerDeploymentVersionRequest { + m0 := &DescribeWorkerDeploymentVersionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_Version = b.Version + x.xxx_hidden_DeploymentVersion = b.DeploymentVersion + x.xxx_hidden_ReportTaskQueueStats = b.ReportTaskQueueStats + return m0 +} + +type DescribeWorkerDeploymentVersionResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_WorkerDeploymentVersionInfo *v18.WorkerDeploymentVersionInfo `protobuf:"bytes,1,opt,name=worker_deployment_version_info,json=workerDeploymentVersionInfo,proto3"` + xxx_hidden_VersionTaskQueues *[]*DescribeWorkerDeploymentVersionResponse_VersionTaskQueue `protobuf:"bytes,2,rep,name=version_task_queues,json=versionTaskQueues,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DescribeWorkerDeploymentVersionResponse) Reset() { + *x = DescribeWorkerDeploymentVersionResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[141] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DescribeWorkerDeploymentVersionResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DescribeWorkerDeploymentVersionResponse) ProtoMessage() {} + +func (x *DescribeWorkerDeploymentVersionResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[141] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DescribeWorkerDeploymentVersionResponse) GetWorkerDeploymentVersionInfo() *v18.WorkerDeploymentVersionInfo { + if x != nil { + return x.xxx_hidden_WorkerDeploymentVersionInfo + } + return nil +} + +func (x *DescribeWorkerDeploymentVersionResponse) GetVersionTaskQueues() []*DescribeWorkerDeploymentVersionResponse_VersionTaskQueue { + if x != nil { + if x.xxx_hidden_VersionTaskQueues != nil { + return *x.xxx_hidden_VersionTaskQueues + } + } + return nil +} + +func (x *DescribeWorkerDeploymentVersionResponse) SetWorkerDeploymentVersionInfo(v *v18.WorkerDeploymentVersionInfo) { + x.xxx_hidden_WorkerDeploymentVersionInfo = v +} + +func (x *DescribeWorkerDeploymentVersionResponse) SetVersionTaskQueues(v []*DescribeWorkerDeploymentVersionResponse_VersionTaskQueue) { + x.xxx_hidden_VersionTaskQueues = &v +} + +func (x *DescribeWorkerDeploymentVersionResponse) HasWorkerDeploymentVersionInfo() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkerDeploymentVersionInfo != nil +} + +func (x *DescribeWorkerDeploymentVersionResponse) ClearWorkerDeploymentVersionInfo() { + x.xxx_hidden_WorkerDeploymentVersionInfo = nil +} + +type DescribeWorkerDeploymentVersionResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + WorkerDeploymentVersionInfo *v18.WorkerDeploymentVersionInfo + // All the Task Queues that have ever polled from this Deployment version. + VersionTaskQueues []*DescribeWorkerDeploymentVersionResponse_VersionTaskQueue +} + +func (b0 DescribeWorkerDeploymentVersionResponse_builder) Build() *DescribeWorkerDeploymentVersionResponse { + m0 := &DescribeWorkerDeploymentVersionResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_WorkerDeploymentVersionInfo = b.WorkerDeploymentVersionInfo + x.xxx_hidden_VersionTaskQueues = &b.VersionTaskQueues + return m0 +} + +type DescribeWorkerDeploymentRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_DeploymentName string `protobuf:"bytes,2,opt,name=deployment_name,json=deploymentName,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DescribeWorkerDeploymentRequest) Reset() { + *x = DescribeWorkerDeploymentRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[142] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DescribeWorkerDeploymentRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DescribeWorkerDeploymentRequest) ProtoMessage() {} + +func (x *DescribeWorkerDeploymentRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[142] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DescribeWorkerDeploymentRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *DescribeWorkerDeploymentRequest) GetDeploymentName() string { + if x != nil { + return x.xxx_hidden_DeploymentName + } + return "" +} + +func (x *DescribeWorkerDeploymentRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *DescribeWorkerDeploymentRequest) SetDeploymentName(v string) { + x.xxx_hidden_DeploymentName = v +} + +type DescribeWorkerDeploymentRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + DeploymentName string +} + +func (b0 DescribeWorkerDeploymentRequest_builder) Build() *DescribeWorkerDeploymentRequest { + m0 := &DescribeWorkerDeploymentRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_DeploymentName = b.DeploymentName + return m0 +} + +type DescribeWorkerDeploymentResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ConflictToken []byte `protobuf:"bytes,1,opt,name=conflict_token,json=conflictToken,proto3"` + xxx_hidden_WorkerDeploymentInfo *v18.WorkerDeploymentInfo `protobuf:"bytes,2,opt,name=worker_deployment_info,json=workerDeploymentInfo,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DescribeWorkerDeploymentResponse) Reset() { + *x = DescribeWorkerDeploymentResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[143] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DescribeWorkerDeploymentResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DescribeWorkerDeploymentResponse) ProtoMessage() {} + +func (x *DescribeWorkerDeploymentResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[143] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DescribeWorkerDeploymentResponse) GetConflictToken() []byte { + if x != nil { + return x.xxx_hidden_ConflictToken + } + return nil +} + +func (x *DescribeWorkerDeploymentResponse) GetWorkerDeploymentInfo() *v18.WorkerDeploymentInfo { + if x != nil { + return x.xxx_hidden_WorkerDeploymentInfo + } + return nil +} + +func (x *DescribeWorkerDeploymentResponse) SetConflictToken(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_ConflictToken = v +} + +func (x *DescribeWorkerDeploymentResponse) SetWorkerDeploymentInfo(v *v18.WorkerDeploymentInfo) { + x.xxx_hidden_WorkerDeploymentInfo = v +} + +func (x *DescribeWorkerDeploymentResponse) HasWorkerDeploymentInfo() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkerDeploymentInfo != nil +} + +func (x *DescribeWorkerDeploymentResponse) ClearWorkerDeploymentInfo() { + x.xxx_hidden_WorkerDeploymentInfo = nil +} + +type DescribeWorkerDeploymentResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // This value is returned so that it can be optionally passed to APIs + // that write to the Worker Deployment state to ensure that the state + // did not change between this read and a future write. + ConflictToken []byte + WorkerDeploymentInfo *v18.WorkerDeploymentInfo +} + +func (b0 DescribeWorkerDeploymentResponse_builder) Build() *DescribeWorkerDeploymentResponse { + m0 := &DescribeWorkerDeploymentResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ConflictToken = b.ConflictToken + x.xxx_hidden_WorkerDeploymentInfo = b.WorkerDeploymentInfo + return m0 +} + +// [cleanup-wv-pre-release] Pre-release deployment APIs, clean up later +type ListDeploymentsRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3"` + xxx_hidden_NextPageToken []byte `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3"` + xxx_hidden_SeriesName string `protobuf:"bytes,4,opt,name=series_name,json=seriesName,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListDeploymentsRequest) Reset() { + *x = ListDeploymentsRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[144] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListDeploymentsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListDeploymentsRequest) ProtoMessage() {} + +func (x *ListDeploymentsRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[144] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListDeploymentsRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *ListDeploymentsRequest) GetPageSize() int32 { + if x != nil { + return x.xxx_hidden_PageSize + } + return 0 +} + +func (x *ListDeploymentsRequest) GetNextPageToken() []byte { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return nil +} + +func (x *ListDeploymentsRequest) GetSeriesName() string { + if x != nil { + return x.xxx_hidden_SeriesName + } + return "" +} + +func (x *ListDeploymentsRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *ListDeploymentsRequest) SetPageSize(v int32) { + x.xxx_hidden_PageSize = v +} + +func (x *ListDeploymentsRequest) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_NextPageToken = v +} + +func (x *ListDeploymentsRequest) SetSeriesName(v string) { + x.xxx_hidden_SeriesName = v +} + +type ListDeploymentsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + PageSize int32 + NextPageToken []byte + // Optional. Use to filter based on exact series name match. + SeriesName string +} + +func (b0 ListDeploymentsRequest_builder) Build() *ListDeploymentsRequest { + m0 := &ListDeploymentsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_PageSize = b.PageSize + x.xxx_hidden_NextPageToken = b.NextPageToken + x.xxx_hidden_SeriesName = b.SeriesName + return m0 +} + +// [cleanup-wv-pre-release] Pre-release deployment APIs, clean up later +type ListDeploymentsResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_NextPageToken []byte `protobuf:"bytes,1,opt,name=next_page_token,json=nextPageToken,proto3"` + xxx_hidden_Deployments *[]*v18.DeploymentListInfo `protobuf:"bytes,2,rep,name=deployments,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListDeploymentsResponse) Reset() { + *x = ListDeploymentsResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[145] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListDeploymentsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListDeploymentsResponse) ProtoMessage() {} + +func (x *ListDeploymentsResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[145] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListDeploymentsResponse) GetNextPageToken() []byte { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return nil +} + +func (x *ListDeploymentsResponse) GetDeployments() []*v18.DeploymentListInfo { + if x != nil { + if x.xxx_hidden_Deployments != nil { + return *x.xxx_hidden_Deployments + } + } + return nil +} + +func (x *ListDeploymentsResponse) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_NextPageToken = v +} + +func (x *ListDeploymentsResponse) SetDeployments(v []*v18.DeploymentListInfo) { + x.xxx_hidden_Deployments = &v +} + +type ListDeploymentsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + NextPageToken []byte + Deployments []*v18.DeploymentListInfo +} + +func (b0 ListDeploymentsResponse_builder) Build() *ListDeploymentsResponse { + m0 := &ListDeploymentsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_NextPageToken = b.NextPageToken + x.xxx_hidden_Deployments = &b.Deployments + return m0 +} + +// [cleanup-wv-pre-release] Pre-release deployment APIs, clean up later +type SetCurrentDeploymentRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_Deployment *v18.Deployment `protobuf:"bytes,2,opt,name=deployment,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,3,opt,name=identity,proto3"` + xxx_hidden_UpdateMetadata *v18.UpdateDeploymentMetadata `protobuf:"bytes,4,opt,name=update_metadata,json=updateMetadata,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SetCurrentDeploymentRequest) Reset() { + *x = SetCurrentDeploymentRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[146] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SetCurrentDeploymentRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SetCurrentDeploymentRequest) ProtoMessage() {} + +func (x *SetCurrentDeploymentRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[146] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *SetCurrentDeploymentRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *SetCurrentDeploymentRequest) GetDeployment() *v18.Deployment { + if x != nil { + return x.xxx_hidden_Deployment + } + return nil +} + +func (x *SetCurrentDeploymentRequest) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *SetCurrentDeploymentRequest) GetUpdateMetadata() *v18.UpdateDeploymentMetadata { + if x != nil { + return x.xxx_hidden_UpdateMetadata + } + return nil +} + +func (x *SetCurrentDeploymentRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *SetCurrentDeploymentRequest) SetDeployment(v *v18.Deployment) { + x.xxx_hidden_Deployment = v +} + +func (x *SetCurrentDeploymentRequest) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *SetCurrentDeploymentRequest) SetUpdateMetadata(v *v18.UpdateDeploymentMetadata) { + x.xxx_hidden_UpdateMetadata = v +} + +func (x *SetCurrentDeploymentRequest) HasDeployment() bool { + if x == nil { + return false + } + return x.xxx_hidden_Deployment != nil +} + +func (x *SetCurrentDeploymentRequest) HasUpdateMetadata() bool { + if x == nil { + return false + } + return x.xxx_hidden_UpdateMetadata != nil +} + +func (x *SetCurrentDeploymentRequest) ClearDeployment() { + x.xxx_hidden_Deployment = nil +} + +func (x *SetCurrentDeploymentRequest) ClearUpdateMetadata() { + x.xxx_hidden_UpdateMetadata = nil +} + +type SetCurrentDeploymentRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + Deployment *v18.Deployment + // Optional. The identity of the client who initiated this request. + Identity string + // Optional. Use to add or remove user-defined metadata entries. Metadata entries are exposed + // when describing a deployment. It is a good place for information such as operator name, + // links to internal deployment pipelines, etc. + UpdateMetadata *v18.UpdateDeploymentMetadata +} + +func (b0 SetCurrentDeploymentRequest_builder) Build() *SetCurrentDeploymentRequest { + m0 := &SetCurrentDeploymentRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_Deployment = b.Deployment + x.xxx_hidden_Identity = b.Identity + x.xxx_hidden_UpdateMetadata = b.UpdateMetadata + return m0 +} + +// [cleanup-wv-pre-release] Pre-release deployment APIs, clean up later +type SetCurrentDeploymentResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_CurrentDeploymentInfo *v18.DeploymentInfo `protobuf:"bytes,1,opt,name=current_deployment_info,json=currentDeploymentInfo,proto3"` + xxx_hidden_PreviousDeploymentInfo *v18.DeploymentInfo `protobuf:"bytes,2,opt,name=previous_deployment_info,json=previousDeploymentInfo,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SetCurrentDeploymentResponse) Reset() { + *x = SetCurrentDeploymentResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[147] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SetCurrentDeploymentResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SetCurrentDeploymentResponse) ProtoMessage() {} + +func (x *SetCurrentDeploymentResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[147] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *SetCurrentDeploymentResponse) GetCurrentDeploymentInfo() *v18.DeploymentInfo { + if x != nil { + return x.xxx_hidden_CurrentDeploymentInfo + } + return nil +} + +func (x *SetCurrentDeploymentResponse) GetPreviousDeploymentInfo() *v18.DeploymentInfo { + if x != nil { + return x.xxx_hidden_PreviousDeploymentInfo + } + return nil +} + +func (x *SetCurrentDeploymentResponse) SetCurrentDeploymentInfo(v *v18.DeploymentInfo) { + x.xxx_hidden_CurrentDeploymentInfo = v +} + +func (x *SetCurrentDeploymentResponse) SetPreviousDeploymentInfo(v *v18.DeploymentInfo) { + x.xxx_hidden_PreviousDeploymentInfo = v +} + +func (x *SetCurrentDeploymentResponse) HasCurrentDeploymentInfo() bool { + if x == nil { + return false + } + return x.xxx_hidden_CurrentDeploymentInfo != nil +} + +func (x *SetCurrentDeploymentResponse) HasPreviousDeploymentInfo() bool { + if x == nil { + return false + } + return x.xxx_hidden_PreviousDeploymentInfo != nil +} + +func (x *SetCurrentDeploymentResponse) ClearCurrentDeploymentInfo() { + x.xxx_hidden_CurrentDeploymentInfo = nil +} + +func (x *SetCurrentDeploymentResponse) ClearPreviousDeploymentInfo() { + x.xxx_hidden_PreviousDeploymentInfo = nil +} + +type SetCurrentDeploymentResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + CurrentDeploymentInfo *v18.DeploymentInfo + // Info of the deployment that was current before executing this operation. + PreviousDeploymentInfo *v18.DeploymentInfo +} + +func (b0 SetCurrentDeploymentResponse_builder) Build() *SetCurrentDeploymentResponse { + m0 := &SetCurrentDeploymentResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_CurrentDeploymentInfo = b.CurrentDeploymentInfo + x.xxx_hidden_PreviousDeploymentInfo = b.PreviousDeploymentInfo + return m0 +} + +// Set/unset the Current Version of a Worker Deployment. +type SetWorkerDeploymentCurrentVersionRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_DeploymentName string `protobuf:"bytes,2,opt,name=deployment_name,json=deploymentName,proto3"` + xxx_hidden_Version string `protobuf:"bytes,3,opt,name=version,proto3"` + xxx_hidden_BuildId string `protobuf:"bytes,7,opt,name=build_id,json=buildId,proto3"` + xxx_hidden_ConflictToken []byte `protobuf:"bytes,4,opt,name=conflict_token,json=conflictToken,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,5,opt,name=identity,proto3"` + xxx_hidden_IgnoreMissingTaskQueues bool `protobuf:"varint,6,opt,name=ignore_missing_task_queues,json=ignoreMissingTaskQueues,proto3"` + xxx_hidden_AllowNoPollers bool `protobuf:"varint,9,opt,name=allow_no_pollers,json=allowNoPollers,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SetWorkerDeploymentCurrentVersionRequest) Reset() { + *x = SetWorkerDeploymentCurrentVersionRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[148] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SetWorkerDeploymentCurrentVersionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SetWorkerDeploymentCurrentVersionRequest) ProtoMessage() {} + +func (x *SetWorkerDeploymentCurrentVersionRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[148] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *SetWorkerDeploymentCurrentVersionRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *SetWorkerDeploymentCurrentVersionRequest) GetDeploymentName() string { + if x != nil { + return x.xxx_hidden_DeploymentName + } + return "" +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *SetWorkerDeploymentCurrentVersionRequest) GetVersion() string { + if x != nil { + return x.xxx_hidden_Version + } + return "" +} + +func (x *SetWorkerDeploymentCurrentVersionRequest) GetBuildId() string { + if x != nil { + return x.xxx_hidden_BuildId + } + return "" +} + +func (x *SetWorkerDeploymentCurrentVersionRequest) GetConflictToken() []byte { + if x != nil { + return x.xxx_hidden_ConflictToken + } + return nil +} + +func (x *SetWorkerDeploymentCurrentVersionRequest) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *SetWorkerDeploymentCurrentVersionRequest) GetIgnoreMissingTaskQueues() bool { + if x != nil { + return x.xxx_hidden_IgnoreMissingTaskQueues + } + return false +} + +func (x *SetWorkerDeploymentCurrentVersionRequest) GetAllowNoPollers() bool { + if x != nil { + return x.xxx_hidden_AllowNoPollers + } + return false +} + +func (x *SetWorkerDeploymentCurrentVersionRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *SetWorkerDeploymentCurrentVersionRequest) SetDeploymentName(v string) { + x.xxx_hidden_DeploymentName = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *SetWorkerDeploymentCurrentVersionRequest) SetVersion(v string) { + x.xxx_hidden_Version = v +} + +func (x *SetWorkerDeploymentCurrentVersionRequest) SetBuildId(v string) { + x.xxx_hidden_BuildId = v +} + +func (x *SetWorkerDeploymentCurrentVersionRequest) SetConflictToken(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_ConflictToken = v +} + +func (x *SetWorkerDeploymentCurrentVersionRequest) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *SetWorkerDeploymentCurrentVersionRequest) SetIgnoreMissingTaskQueues(v bool) { + x.xxx_hidden_IgnoreMissingTaskQueues = v +} + +func (x *SetWorkerDeploymentCurrentVersionRequest) SetAllowNoPollers(v bool) { + x.xxx_hidden_AllowNoPollers = v +} + +type SetWorkerDeploymentCurrentVersionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + DeploymentName string + // Deprecated. Use `build_id`. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + Version string + // The build id of the Version that you want to set as Current. + // Pass an empty value to set the Current Version to nil. + // A nil Current Version represents all the unversioned workers (those with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.) + BuildId string + // Optional. This can be the value of conflict_token from a Describe, or another Worker + // Deployment API. Passing a non-nil conflict token will cause this request to fail if the + // Deployment's configuration has been modified between the API call that generated the + // token and this one. + ConflictToken []byte + // Optional. The identity of the client who initiated this request. + Identity string + // Optional. By default this request would be rejected if not all the expected Task Queues are + // being polled by the new Version, to protect against accidental removal of Task Queues, or + // worker health issues. Pass `true` here to bypass this protection. + // The set of expected Task Queues is the set of all the Task Queues that were ever poller by + // the existing Current Version of the Deployment, with the following exclusions: + // - Task Queues that are not used anymore (inferred by having empty backlog and a task + // add_rate of 0.) + // - Task Queues that are moved to another Worker Deployment (inferred by the Task Queue + // having a different Current Version than the Current Version of this deployment.) + // + // WARNING: Do not set this flag unless you are sure that the missing task queue pollers are not + // needed. If the request is unexpectedly rejected due to missing pollers, then that means the + // pollers have not reached to the server yet. Only set this if you expect those pollers to + // never arrive. + IgnoreMissingTaskQueues bool + // Optional. By default this request will be rejected if no pollers have been seen for the proposed + // Current Version, in order to protect users from routing tasks to pollers that do not exist, leading + // to possible timeouts. Pass `true` here to bypass this protection. + AllowNoPollers bool +} + +func (b0 SetWorkerDeploymentCurrentVersionRequest_builder) Build() *SetWorkerDeploymentCurrentVersionRequest { + m0 := &SetWorkerDeploymentCurrentVersionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_DeploymentName = b.DeploymentName + x.xxx_hidden_Version = b.Version + x.xxx_hidden_BuildId = b.BuildId + x.xxx_hidden_ConflictToken = b.ConflictToken + x.xxx_hidden_Identity = b.Identity + x.xxx_hidden_IgnoreMissingTaskQueues = b.IgnoreMissingTaskQueues + x.xxx_hidden_AllowNoPollers = b.AllowNoPollers + return m0 +} + +type SetWorkerDeploymentCurrentVersionResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ConflictToken []byte `protobuf:"bytes,1,opt,name=conflict_token,json=conflictToken,proto3"` + xxx_hidden_PreviousVersion string `protobuf:"bytes,2,opt,name=previous_version,json=previousVersion,proto3"` + xxx_hidden_PreviousDeploymentVersion *v18.WorkerDeploymentVersion `protobuf:"bytes,3,opt,name=previous_deployment_version,json=previousDeploymentVersion,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SetWorkerDeploymentCurrentVersionResponse) Reset() { + *x = SetWorkerDeploymentCurrentVersionResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[149] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SetWorkerDeploymentCurrentVersionResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SetWorkerDeploymentCurrentVersionResponse) ProtoMessage() {} + +func (x *SetWorkerDeploymentCurrentVersionResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[149] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *SetWorkerDeploymentCurrentVersionResponse) GetConflictToken() []byte { + if x != nil { + return x.xxx_hidden_ConflictToken + } + return nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *SetWorkerDeploymentCurrentVersionResponse) GetPreviousVersion() string { + if x != nil { + return x.xxx_hidden_PreviousVersion + } + return "" +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *SetWorkerDeploymentCurrentVersionResponse) GetPreviousDeploymentVersion() *v18.WorkerDeploymentVersion { + if x != nil { + return x.xxx_hidden_PreviousDeploymentVersion + } + return nil +} + +func (x *SetWorkerDeploymentCurrentVersionResponse) SetConflictToken(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_ConflictToken = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *SetWorkerDeploymentCurrentVersionResponse) SetPreviousVersion(v string) { + x.xxx_hidden_PreviousVersion = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *SetWorkerDeploymentCurrentVersionResponse) SetPreviousDeploymentVersion(v *v18.WorkerDeploymentVersion) { + x.xxx_hidden_PreviousDeploymentVersion = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *SetWorkerDeploymentCurrentVersionResponse) HasPreviousDeploymentVersion() bool { + if x == nil { + return false + } + return x.xxx_hidden_PreviousDeploymentVersion != nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *SetWorkerDeploymentCurrentVersionResponse) ClearPreviousDeploymentVersion() { + x.xxx_hidden_PreviousDeploymentVersion = nil +} + +type SetWorkerDeploymentCurrentVersionResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // This value is returned so that it can be optionally passed to APIs + // that write to the Worker Deployment state to ensure that the state + // did not change between this API call and a future write. + ConflictToken []byte + // Deprecated. Use `previous_deployment_version`. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + PreviousVersion string + // The version that was current before executing this operation. + // Deprecated in favor of idempotency of the API. Use `DescribeWorkerDeployment` to get the + // Current version info before calling this API. By passing the `conflict_token` got from the + // `DescribeWorkerDeployment` call to this API you can ensure there is no interfering changes + // between the two calls. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + PreviousDeploymentVersion *v18.WorkerDeploymentVersion +} + +func (b0 SetWorkerDeploymentCurrentVersionResponse_builder) Build() *SetWorkerDeploymentCurrentVersionResponse { + m0 := &SetWorkerDeploymentCurrentVersionResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ConflictToken = b.ConflictToken + x.xxx_hidden_PreviousVersion = b.PreviousVersion + x.xxx_hidden_PreviousDeploymentVersion = b.PreviousDeploymentVersion + return m0 +} + +// Set/unset the Ramping Version of a Worker Deployment and its ramp percentage. +type SetWorkerDeploymentRampingVersionRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_DeploymentName string `protobuf:"bytes,2,opt,name=deployment_name,json=deploymentName,proto3"` + xxx_hidden_Version string `protobuf:"bytes,3,opt,name=version,proto3"` + xxx_hidden_BuildId string `protobuf:"bytes,8,opt,name=build_id,json=buildId,proto3"` + xxx_hidden_Percentage float32 `protobuf:"fixed32,4,opt,name=percentage,proto3"` + xxx_hidden_ConflictToken []byte `protobuf:"bytes,5,opt,name=conflict_token,json=conflictToken,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,6,opt,name=identity,proto3"` + xxx_hidden_IgnoreMissingTaskQueues bool `protobuf:"varint,7,opt,name=ignore_missing_task_queues,json=ignoreMissingTaskQueues,proto3"` + xxx_hidden_AllowNoPollers bool `protobuf:"varint,10,opt,name=allow_no_pollers,json=allowNoPollers,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SetWorkerDeploymentRampingVersionRequest) Reset() { + *x = SetWorkerDeploymentRampingVersionRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[150] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SetWorkerDeploymentRampingVersionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SetWorkerDeploymentRampingVersionRequest) ProtoMessage() {} + +func (x *SetWorkerDeploymentRampingVersionRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[150] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *SetWorkerDeploymentRampingVersionRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *SetWorkerDeploymentRampingVersionRequest) GetDeploymentName() string { + if x != nil { + return x.xxx_hidden_DeploymentName + } + return "" +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *SetWorkerDeploymentRampingVersionRequest) GetVersion() string { + if x != nil { + return x.xxx_hidden_Version + } + return "" +} + +func (x *SetWorkerDeploymentRampingVersionRequest) GetBuildId() string { + if x != nil { + return x.xxx_hidden_BuildId + } + return "" +} + +func (x *SetWorkerDeploymentRampingVersionRequest) GetPercentage() float32 { + if x != nil { + return x.xxx_hidden_Percentage + } + return 0 +} + +func (x *SetWorkerDeploymentRampingVersionRequest) GetConflictToken() []byte { + if x != nil { + return x.xxx_hidden_ConflictToken + } + return nil +} + +func (x *SetWorkerDeploymentRampingVersionRequest) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *SetWorkerDeploymentRampingVersionRequest) GetIgnoreMissingTaskQueues() bool { + if x != nil { + return x.xxx_hidden_IgnoreMissingTaskQueues + } + return false +} + +func (x *SetWorkerDeploymentRampingVersionRequest) GetAllowNoPollers() bool { + if x != nil { + return x.xxx_hidden_AllowNoPollers + } + return false +} + +func (x *SetWorkerDeploymentRampingVersionRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *SetWorkerDeploymentRampingVersionRequest) SetDeploymentName(v string) { + x.xxx_hidden_DeploymentName = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *SetWorkerDeploymentRampingVersionRequest) SetVersion(v string) { + x.xxx_hidden_Version = v +} + +func (x *SetWorkerDeploymentRampingVersionRequest) SetBuildId(v string) { + x.xxx_hidden_BuildId = v +} + +func (x *SetWorkerDeploymentRampingVersionRequest) SetPercentage(v float32) { + x.xxx_hidden_Percentage = v +} + +func (x *SetWorkerDeploymentRampingVersionRequest) SetConflictToken(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_ConflictToken = v +} + +func (x *SetWorkerDeploymentRampingVersionRequest) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *SetWorkerDeploymentRampingVersionRequest) SetIgnoreMissingTaskQueues(v bool) { + x.xxx_hidden_IgnoreMissingTaskQueues = v +} + +func (x *SetWorkerDeploymentRampingVersionRequest) SetAllowNoPollers(v bool) { + x.xxx_hidden_AllowNoPollers = v +} + +type SetWorkerDeploymentRampingVersionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + DeploymentName string + // Deprecated. Use `build_id`. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + Version string + // The build id of the Version that you want to ramp traffic to. + // Pass an empty value to set the Ramping Version to nil. + // A nil Ramping Version represents all the unversioned workers (those with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.) + BuildId string + // Ramp percentage to set. Valid range: [0,100]. + Percentage float32 + // Optional. This can be the value of conflict_token from a Describe, or another Worker + // Deployment API. Passing a non-nil conflict token will cause this request to fail if the + // Deployment's configuration has been modified between the API call that generated the + // token and this one. + ConflictToken []byte + // Optional. The identity of the client who initiated this request. + Identity string + // Optional. By default this request would be rejected if not all the expected Task Queues are + // being polled by the new Version, to protect against accidental removal of Task Queues, or + // worker health issues. Pass `true` here to bypass this protection. + // The set of expected Task Queues equals to all the Task Queues ever polled from the existing + // Current Version of the Deployment, with the following exclusions: + // - Task Queues that are not used anymore (inferred by having empty backlog and a task + // add_rate of 0.) + // - Task Queues that are moved to another Worker Deployment (inferred by the Task Queue + // having a different Current Version than the Current Version of this deployment.) + // + // WARNING: Do not set this flag unless you are sure that the missing task queue poller are not + // needed. If the request is unexpectedly rejected due to missing pollers, then that means the + // pollers have not reached to the server yet. Only set this if you expect those pollers to + // never arrive. + // Note: this check only happens when the ramping version is about to change, not every time + // that the percentage changes. Also note that the check is against the deployment's Current + // Version, not the previous Ramping Version. + IgnoreMissingTaskQueues bool + // Optional. By default this request will be rejected if no pollers have been seen for the proposed + // Current Version, in order to protect users from routing tasks to pollers that do not exist, leading + // to possible timeouts. Pass `true` here to bypass this protection. + AllowNoPollers bool +} + +func (b0 SetWorkerDeploymentRampingVersionRequest_builder) Build() *SetWorkerDeploymentRampingVersionRequest { + m0 := &SetWorkerDeploymentRampingVersionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_DeploymentName = b.DeploymentName + x.xxx_hidden_Version = b.Version + x.xxx_hidden_BuildId = b.BuildId + x.xxx_hidden_Percentage = b.Percentage + x.xxx_hidden_ConflictToken = b.ConflictToken + x.xxx_hidden_Identity = b.Identity + x.xxx_hidden_IgnoreMissingTaskQueues = b.IgnoreMissingTaskQueues + x.xxx_hidden_AllowNoPollers = b.AllowNoPollers + return m0 +} + +type SetWorkerDeploymentRampingVersionResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ConflictToken []byte `protobuf:"bytes,1,opt,name=conflict_token,json=conflictToken,proto3"` + xxx_hidden_PreviousVersion string `protobuf:"bytes,2,opt,name=previous_version,json=previousVersion,proto3"` + xxx_hidden_PreviousDeploymentVersion *v18.WorkerDeploymentVersion `protobuf:"bytes,4,opt,name=previous_deployment_version,json=previousDeploymentVersion,proto3"` + xxx_hidden_PreviousPercentage float32 `protobuf:"fixed32,3,opt,name=previous_percentage,json=previousPercentage,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SetWorkerDeploymentRampingVersionResponse) Reset() { + *x = SetWorkerDeploymentRampingVersionResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[151] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SetWorkerDeploymentRampingVersionResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SetWorkerDeploymentRampingVersionResponse) ProtoMessage() {} + +func (x *SetWorkerDeploymentRampingVersionResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[151] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *SetWorkerDeploymentRampingVersionResponse) GetConflictToken() []byte { + if x != nil { + return x.xxx_hidden_ConflictToken + } + return nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *SetWorkerDeploymentRampingVersionResponse) GetPreviousVersion() string { + if x != nil { + return x.xxx_hidden_PreviousVersion + } + return "" +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *SetWorkerDeploymentRampingVersionResponse) GetPreviousDeploymentVersion() *v18.WorkerDeploymentVersion { + if x != nil { + return x.xxx_hidden_PreviousDeploymentVersion + } + return nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *SetWorkerDeploymentRampingVersionResponse) GetPreviousPercentage() float32 { + if x != nil { + return x.xxx_hidden_PreviousPercentage + } + return 0 +} + +func (x *SetWorkerDeploymentRampingVersionResponse) SetConflictToken(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_ConflictToken = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *SetWorkerDeploymentRampingVersionResponse) SetPreviousVersion(v string) { + x.xxx_hidden_PreviousVersion = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *SetWorkerDeploymentRampingVersionResponse) SetPreviousDeploymentVersion(v *v18.WorkerDeploymentVersion) { + x.xxx_hidden_PreviousDeploymentVersion = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *SetWorkerDeploymentRampingVersionResponse) SetPreviousPercentage(v float32) { + x.xxx_hidden_PreviousPercentage = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *SetWorkerDeploymentRampingVersionResponse) HasPreviousDeploymentVersion() bool { + if x == nil { + return false + } + return x.xxx_hidden_PreviousDeploymentVersion != nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *SetWorkerDeploymentRampingVersionResponse) ClearPreviousDeploymentVersion() { + x.xxx_hidden_PreviousDeploymentVersion = nil +} + +type SetWorkerDeploymentRampingVersionResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // This value is returned so that it can be optionally passed to APIs + // that write to the Worker Deployment state to ensure that the state + // did not change between this API call and a future write. + ConflictToken []byte + // Deprecated. Use `previous_deployment_version`. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + PreviousVersion string + // The version that was ramping before executing this operation. + // Deprecated in favor of idempotency of the API. Use `DescribeWorkerDeployment` to get the + // Ramping version info before calling this API. By passing the `conflict_token` got from the + // `DescribeWorkerDeployment` call to this API you can ensure there is no interfering changes + // between the two calls. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + PreviousDeploymentVersion *v18.WorkerDeploymentVersion + // The ramping version percentage before executing this operation. + // Deprecated in favor of idempotency of the API. Use `DescribeWorkerDeployment` to get the + // Ramping version info before calling this API. By passing the `conflict_token` got from the + // `DescribeWorkerDeployment` call to this API you can ensure there is no interfering changes + // between the two calls. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + PreviousPercentage float32 +} + +func (b0 SetWorkerDeploymentRampingVersionResponse_builder) Build() *SetWorkerDeploymentRampingVersionResponse { + m0 := &SetWorkerDeploymentRampingVersionResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ConflictToken = b.ConflictToken + x.xxx_hidden_PreviousVersion = b.PreviousVersion + x.xxx_hidden_PreviousDeploymentVersion = b.PreviousDeploymentVersion + x.xxx_hidden_PreviousPercentage = b.PreviousPercentage + return m0 +} + +type ListWorkerDeploymentsRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3"` + xxx_hidden_NextPageToken []byte `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListWorkerDeploymentsRequest) Reset() { + *x = ListWorkerDeploymentsRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[152] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListWorkerDeploymentsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListWorkerDeploymentsRequest) ProtoMessage() {} + +func (x *ListWorkerDeploymentsRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[152] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListWorkerDeploymentsRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *ListWorkerDeploymentsRequest) GetPageSize() int32 { + if x != nil { + return x.xxx_hidden_PageSize + } + return 0 +} + +func (x *ListWorkerDeploymentsRequest) GetNextPageToken() []byte { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return nil +} + +func (x *ListWorkerDeploymentsRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *ListWorkerDeploymentsRequest) SetPageSize(v int32) { + x.xxx_hidden_PageSize = v +} + +func (x *ListWorkerDeploymentsRequest) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_NextPageToken = v +} + +type ListWorkerDeploymentsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + PageSize int32 + NextPageToken []byte +} + +func (b0 ListWorkerDeploymentsRequest_builder) Build() *ListWorkerDeploymentsRequest { + m0 := &ListWorkerDeploymentsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_PageSize = b.PageSize + x.xxx_hidden_NextPageToken = b.NextPageToken + return m0 +} + +type ListWorkerDeploymentsResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_NextPageToken []byte `protobuf:"bytes,1,opt,name=next_page_token,json=nextPageToken,proto3"` + xxx_hidden_WorkerDeployments *[]*ListWorkerDeploymentsResponse_WorkerDeploymentSummary `protobuf:"bytes,2,rep,name=worker_deployments,json=workerDeployments,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListWorkerDeploymentsResponse) Reset() { + *x = ListWorkerDeploymentsResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[153] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListWorkerDeploymentsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListWorkerDeploymentsResponse) ProtoMessage() {} + +func (x *ListWorkerDeploymentsResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[153] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListWorkerDeploymentsResponse) GetNextPageToken() []byte { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return nil +} + +func (x *ListWorkerDeploymentsResponse) GetWorkerDeployments() []*ListWorkerDeploymentsResponse_WorkerDeploymentSummary { + if x != nil { + if x.xxx_hidden_WorkerDeployments != nil { + return *x.xxx_hidden_WorkerDeployments + } + } + return nil +} + +func (x *ListWorkerDeploymentsResponse) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_NextPageToken = v +} + +func (x *ListWorkerDeploymentsResponse) SetWorkerDeployments(v []*ListWorkerDeploymentsResponse_WorkerDeploymentSummary) { + x.xxx_hidden_WorkerDeployments = &v +} + +type ListWorkerDeploymentsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + NextPageToken []byte + // The list of worker deployments. + WorkerDeployments []*ListWorkerDeploymentsResponse_WorkerDeploymentSummary +} + +func (b0 ListWorkerDeploymentsResponse_builder) Build() *ListWorkerDeploymentsResponse { + m0 := &ListWorkerDeploymentsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_NextPageToken = b.NextPageToken + x.xxx_hidden_WorkerDeployments = &b.WorkerDeployments + return m0 +} + +// Used for manual deletion of Versions. User can delete a Version only when all the +// following conditions are met: +// - It is not the Current or Ramping Version of its Deployment. +// - It has no active pollers (none of the task queues in the Version have pollers) +// - It is not draining (see WorkerDeploymentVersionInfo.drainage_info). This condition +// can be skipped by passing `skip-drainage=true`. +type DeleteWorkerDeploymentVersionRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_Version string `protobuf:"bytes,2,opt,name=version,proto3"` + xxx_hidden_DeploymentVersion *v18.WorkerDeploymentVersion `protobuf:"bytes,5,opt,name=deployment_version,json=deploymentVersion,proto3"` + xxx_hidden_SkipDrainage bool `protobuf:"varint,3,opt,name=skip_drainage,json=skipDrainage,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,4,opt,name=identity,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteWorkerDeploymentVersionRequest) Reset() { + *x = DeleteWorkerDeploymentVersionRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[154] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteWorkerDeploymentVersionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteWorkerDeploymentVersionRequest) ProtoMessage() {} + +func (x *DeleteWorkerDeploymentVersionRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[154] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DeleteWorkerDeploymentVersionRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *DeleteWorkerDeploymentVersionRequest) GetVersion() string { + if x != nil { + return x.xxx_hidden_Version + } + return "" +} + +func (x *DeleteWorkerDeploymentVersionRequest) GetDeploymentVersion() *v18.WorkerDeploymentVersion { + if x != nil { + return x.xxx_hidden_DeploymentVersion + } + return nil +} + +func (x *DeleteWorkerDeploymentVersionRequest) GetSkipDrainage() bool { + if x != nil { + return x.xxx_hidden_SkipDrainage + } + return false +} + +func (x *DeleteWorkerDeploymentVersionRequest) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *DeleteWorkerDeploymentVersionRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *DeleteWorkerDeploymentVersionRequest) SetVersion(v string) { + x.xxx_hidden_Version = v +} + +func (x *DeleteWorkerDeploymentVersionRequest) SetDeploymentVersion(v *v18.WorkerDeploymentVersion) { + x.xxx_hidden_DeploymentVersion = v +} + +func (x *DeleteWorkerDeploymentVersionRequest) SetSkipDrainage(v bool) { + x.xxx_hidden_SkipDrainage = v +} + +func (x *DeleteWorkerDeploymentVersionRequest) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *DeleteWorkerDeploymentVersionRequest) HasDeploymentVersion() bool { + if x == nil { + return false + } + return x.xxx_hidden_DeploymentVersion != nil +} + +func (x *DeleteWorkerDeploymentVersionRequest) ClearDeploymentVersion() { + x.xxx_hidden_DeploymentVersion = nil +} + +type DeleteWorkerDeploymentVersionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + // Deprecated. Use `deployment_version`. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + Version string + // Required. + DeploymentVersion *v18.WorkerDeploymentVersion + // Pass to force deletion even if the Version is draining. In this case the open pinned + // workflows will be stuck until manually moved to another version by UpdateWorkflowExecutionOptions. + SkipDrainage bool + // Optional. The identity of the client who initiated this request. + Identity string +} + +func (b0 DeleteWorkerDeploymentVersionRequest_builder) Build() *DeleteWorkerDeploymentVersionRequest { + m0 := &DeleteWorkerDeploymentVersionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_Version = b.Version + x.xxx_hidden_DeploymentVersion = b.DeploymentVersion + x.xxx_hidden_SkipDrainage = b.SkipDrainage + x.xxx_hidden_Identity = b.Identity + return m0 +} + +type DeleteWorkerDeploymentVersionResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteWorkerDeploymentVersionResponse) Reset() { + *x = DeleteWorkerDeploymentVersionResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[155] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteWorkerDeploymentVersionResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteWorkerDeploymentVersionResponse) ProtoMessage() {} + +func (x *DeleteWorkerDeploymentVersionResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[155] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type DeleteWorkerDeploymentVersionResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 DeleteWorkerDeploymentVersionResponse_builder) Build() *DeleteWorkerDeploymentVersionResponse { + m0 := &DeleteWorkerDeploymentVersionResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +// Deletes records of (an old) Deployment. A deployment can only be deleted if +// it has no Version in it. +type DeleteWorkerDeploymentRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_DeploymentName string `protobuf:"bytes,2,opt,name=deployment_name,json=deploymentName,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,3,opt,name=identity,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteWorkerDeploymentRequest) Reset() { + *x = DeleteWorkerDeploymentRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[156] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteWorkerDeploymentRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteWorkerDeploymentRequest) ProtoMessage() {} + +func (x *DeleteWorkerDeploymentRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[156] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DeleteWorkerDeploymentRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *DeleteWorkerDeploymentRequest) GetDeploymentName() string { + if x != nil { + return x.xxx_hidden_DeploymentName + } + return "" +} + +func (x *DeleteWorkerDeploymentRequest) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *DeleteWorkerDeploymentRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *DeleteWorkerDeploymentRequest) SetDeploymentName(v string) { + x.xxx_hidden_DeploymentName = v +} + +func (x *DeleteWorkerDeploymentRequest) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +type DeleteWorkerDeploymentRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + DeploymentName string + // Optional. The identity of the client who initiated this request. + Identity string +} + +func (b0 DeleteWorkerDeploymentRequest_builder) Build() *DeleteWorkerDeploymentRequest { + m0 := &DeleteWorkerDeploymentRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_DeploymentName = b.DeploymentName + x.xxx_hidden_Identity = b.Identity + return m0 +} + +type DeleteWorkerDeploymentResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteWorkerDeploymentResponse) Reset() { + *x = DeleteWorkerDeploymentResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[157] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteWorkerDeploymentResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteWorkerDeploymentResponse) ProtoMessage() {} + +func (x *DeleteWorkerDeploymentResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[157] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type DeleteWorkerDeploymentResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 DeleteWorkerDeploymentResponse_builder) Build() *DeleteWorkerDeploymentResponse { + m0 := &DeleteWorkerDeploymentResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +// Used to update the user-defined metadata of a Worker Deployment Version. +type UpdateWorkerDeploymentVersionMetadataRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_Version string `protobuf:"bytes,2,opt,name=version,proto3"` + xxx_hidden_DeploymentVersion *v18.WorkerDeploymentVersion `protobuf:"bytes,5,opt,name=deployment_version,json=deploymentVersion,proto3"` + xxx_hidden_UpsertEntries map[string]*v13.Payload `protobuf:"bytes,3,rep,name=upsert_entries,json=upsertEntries,proto3" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + xxx_hidden_RemoveEntries []string `protobuf:"bytes,4,rep,name=remove_entries,json=removeEntries,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,6,opt,name=identity,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateWorkerDeploymentVersionMetadataRequest) Reset() { + *x = UpdateWorkerDeploymentVersionMetadataRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[158] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateWorkerDeploymentVersionMetadataRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateWorkerDeploymentVersionMetadataRequest) ProtoMessage() {} + +func (x *UpdateWorkerDeploymentVersionMetadataRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[158] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UpdateWorkerDeploymentVersionMetadataRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *UpdateWorkerDeploymentVersionMetadataRequest) GetVersion() string { + if x != nil { + return x.xxx_hidden_Version + } + return "" +} + +func (x *UpdateWorkerDeploymentVersionMetadataRequest) GetDeploymentVersion() *v18.WorkerDeploymentVersion { + if x != nil { + return x.xxx_hidden_DeploymentVersion + } + return nil +} + +func (x *UpdateWorkerDeploymentVersionMetadataRequest) GetUpsertEntries() map[string]*v13.Payload { + if x != nil { + return x.xxx_hidden_UpsertEntries + } + return nil +} + +func (x *UpdateWorkerDeploymentVersionMetadataRequest) GetRemoveEntries() []string { + if x != nil { + return x.xxx_hidden_RemoveEntries + } + return nil +} + +func (x *UpdateWorkerDeploymentVersionMetadataRequest) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *UpdateWorkerDeploymentVersionMetadataRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *UpdateWorkerDeploymentVersionMetadataRequest) SetVersion(v string) { + x.xxx_hidden_Version = v +} + +func (x *UpdateWorkerDeploymentVersionMetadataRequest) SetDeploymentVersion(v *v18.WorkerDeploymentVersion) { + x.xxx_hidden_DeploymentVersion = v +} + +func (x *UpdateWorkerDeploymentVersionMetadataRequest) SetUpsertEntries(v map[string]*v13.Payload) { + x.xxx_hidden_UpsertEntries = v +} + +func (x *UpdateWorkerDeploymentVersionMetadataRequest) SetRemoveEntries(v []string) { + x.xxx_hidden_RemoveEntries = v +} + +func (x *UpdateWorkerDeploymentVersionMetadataRequest) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *UpdateWorkerDeploymentVersionMetadataRequest) HasDeploymentVersion() bool { + if x == nil { + return false + } + return x.xxx_hidden_DeploymentVersion != nil +} + +func (x *UpdateWorkerDeploymentVersionMetadataRequest) ClearDeploymentVersion() { + x.xxx_hidden_DeploymentVersion = nil +} + +type UpdateWorkerDeploymentVersionMetadataRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + // Deprecated. Use `deployment_version`. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + Version string + // Required. + DeploymentVersion *v18.WorkerDeploymentVersion + UpsertEntries map[string]*v13.Payload + // List of keys to remove from the metadata. + RemoveEntries []string + // Optional. The identity of the client who initiated this request. + Identity string +} + +func (b0 UpdateWorkerDeploymentVersionMetadataRequest_builder) Build() *UpdateWorkerDeploymentVersionMetadataRequest { + m0 := &UpdateWorkerDeploymentVersionMetadataRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_Version = b.Version + x.xxx_hidden_DeploymentVersion = b.DeploymentVersion + x.xxx_hidden_UpsertEntries = b.UpsertEntries + x.xxx_hidden_RemoveEntries = b.RemoveEntries + x.xxx_hidden_Identity = b.Identity + return m0 +} + +type UpdateWorkerDeploymentVersionMetadataResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Metadata *v18.VersionMetadata `protobuf:"bytes,1,opt,name=metadata,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateWorkerDeploymentVersionMetadataResponse) Reset() { + *x = UpdateWorkerDeploymentVersionMetadataResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[159] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateWorkerDeploymentVersionMetadataResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateWorkerDeploymentVersionMetadataResponse) ProtoMessage() {} + +func (x *UpdateWorkerDeploymentVersionMetadataResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[159] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UpdateWorkerDeploymentVersionMetadataResponse) GetMetadata() *v18.VersionMetadata { + if x != nil { + return x.xxx_hidden_Metadata + } + return nil +} + +func (x *UpdateWorkerDeploymentVersionMetadataResponse) SetMetadata(v *v18.VersionMetadata) { + x.xxx_hidden_Metadata = v +} + +func (x *UpdateWorkerDeploymentVersionMetadataResponse) HasMetadata() bool { + if x == nil { + return false + } + return x.xxx_hidden_Metadata != nil +} + +func (x *UpdateWorkerDeploymentVersionMetadataResponse) ClearMetadata() { + x.xxx_hidden_Metadata = nil +} + +type UpdateWorkerDeploymentVersionMetadataResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Full metadata after performing the update. + Metadata *v18.VersionMetadata +} + +func (b0 UpdateWorkerDeploymentVersionMetadataResponse_builder) Build() *UpdateWorkerDeploymentVersionMetadataResponse { + m0 := &UpdateWorkerDeploymentVersionMetadataResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Metadata = b.Metadata + return m0 +} + +// Update the ManagerIdentity of a Worker Deployment. +type SetWorkerDeploymentManagerRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_DeploymentName string `protobuf:"bytes,2,opt,name=deployment_name,json=deploymentName,proto3"` + xxx_hidden_NewManagerIdentity isSetWorkerDeploymentManagerRequest_NewManagerIdentity `protobuf_oneof:"new_manager_identity"` + xxx_hidden_ConflictToken []byte `protobuf:"bytes,5,opt,name=conflict_token,json=conflictToken,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,6,opt,name=identity,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SetWorkerDeploymentManagerRequest) Reset() { + *x = SetWorkerDeploymentManagerRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[160] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SetWorkerDeploymentManagerRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SetWorkerDeploymentManagerRequest) ProtoMessage() {} + +func (x *SetWorkerDeploymentManagerRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[160] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *SetWorkerDeploymentManagerRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *SetWorkerDeploymentManagerRequest) GetDeploymentName() string { + if x != nil { + return x.xxx_hidden_DeploymentName + } + return "" +} + +func (x *SetWorkerDeploymentManagerRequest) GetManagerIdentity() string { + if x != nil { + if x, ok := x.xxx_hidden_NewManagerIdentity.(*setWorkerDeploymentManagerRequest_ManagerIdentity); ok { + return x.ManagerIdentity + } + } + return "" +} + +func (x *SetWorkerDeploymentManagerRequest) GetSelf() bool { + if x != nil { + if x, ok := x.xxx_hidden_NewManagerIdentity.(*setWorkerDeploymentManagerRequest_Self); ok { + return x.Self + } + } + return false +} + +func (x *SetWorkerDeploymentManagerRequest) GetConflictToken() []byte { + if x != nil { + return x.xxx_hidden_ConflictToken + } + return nil +} + +func (x *SetWorkerDeploymentManagerRequest) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *SetWorkerDeploymentManagerRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *SetWorkerDeploymentManagerRequest) SetDeploymentName(v string) { + x.xxx_hidden_DeploymentName = v +} + +func (x *SetWorkerDeploymentManagerRequest) SetManagerIdentity(v string) { + x.xxx_hidden_NewManagerIdentity = &setWorkerDeploymentManagerRequest_ManagerIdentity{v} +} + +func (x *SetWorkerDeploymentManagerRequest) SetSelf(v bool) { + x.xxx_hidden_NewManagerIdentity = &setWorkerDeploymentManagerRequest_Self{v} +} + +func (x *SetWorkerDeploymentManagerRequest) SetConflictToken(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_ConflictToken = v +} + +func (x *SetWorkerDeploymentManagerRequest) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *SetWorkerDeploymentManagerRequest) HasNewManagerIdentity() bool { + if x == nil { + return false + } + return x.xxx_hidden_NewManagerIdentity != nil +} + +func (x *SetWorkerDeploymentManagerRequest) HasManagerIdentity() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_NewManagerIdentity.(*setWorkerDeploymentManagerRequest_ManagerIdentity) + return ok +} + +func (x *SetWorkerDeploymentManagerRequest) HasSelf() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_NewManagerIdentity.(*setWorkerDeploymentManagerRequest_Self) + return ok +} + +func (x *SetWorkerDeploymentManagerRequest) ClearNewManagerIdentity() { + x.xxx_hidden_NewManagerIdentity = nil +} + +func (x *SetWorkerDeploymentManagerRequest) ClearManagerIdentity() { + if _, ok := x.xxx_hidden_NewManagerIdentity.(*setWorkerDeploymentManagerRequest_ManagerIdentity); ok { + x.xxx_hidden_NewManagerIdentity = nil + } +} + +func (x *SetWorkerDeploymentManagerRequest) ClearSelf() { + if _, ok := x.xxx_hidden_NewManagerIdentity.(*setWorkerDeploymentManagerRequest_Self); ok { + x.xxx_hidden_NewManagerIdentity = nil + } +} + +const SetWorkerDeploymentManagerRequest_NewManagerIdentity_not_set_case case_SetWorkerDeploymentManagerRequest_NewManagerIdentity = 0 +const SetWorkerDeploymentManagerRequest_ManagerIdentity_case case_SetWorkerDeploymentManagerRequest_NewManagerIdentity = 3 +const SetWorkerDeploymentManagerRequest_Self_case case_SetWorkerDeploymentManagerRequest_NewManagerIdentity = 4 + +func (x *SetWorkerDeploymentManagerRequest) WhichNewManagerIdentity() case_SetWorkerDeploymentManagerRequest_NewManagerIdentity { + if x == nil { + return SetWorkerDeploymentManagerRequest_NewManagerIdentity_not_set_case + } + switch x.xxx_hidden_NewManagerIdentity.(type) { + case *setWorkerDeploymentManagerRequest_ManagerIdentity: + return SetWorkerDeploymentManagerRequest_ManagerIdentity_case + case *setWorkerDeploymentManagerRequest_Self: + return SetWorkerDeploymentManagerRequest_Self_case + default: + return SetWorkerDeploymentManagerRequest_NewManagerIdentity_not_set_case + } +} + +type SetWorkerDeploymentManagerRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + DeploymentName string + // Fields of oneof xxx_hidden_NewManagerIdentity: + // Arbitrary value for `manager_identity`. + // Empty will unset the field. + ManagerIdentity *string + // True will set `manager_identity` to `identity`. + Self *bool + // -- end of xxx_hidden_NewManagerIdentity + // Optional. This can be the value of conflict_token from a Describe, or another Worker + // Deployment API. Passing a non-nil conflict token will cause this request to fail if the + // Deployment's configuration has been modified between the API call that generated the + // token and this one. + ConflictToken []byte + // Required. The identity of the client who initiated this request. + Identity string +} + +func (b0 SetWorkerDeploymentManagerRequest_builder) Build() *SetWorkerDeploymentManagerRequest { + m0 := &SetWorkerDeploymentManagerRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_DeploymentName = b.DeploymentName + if b.ManagerIdentity != nil { + x.xxx_hidden_NewManagerIdentity = &setWorkerDeploymentManagerRequest_ManagerIdentity{*b.ManagerIdentity} + } + if b.Self != nil { + x.xxx_hidden_NewManagerIdentity = &setWorkerDeploymentManagerRequest_Self{*b.Self} + } + x.xxx_hidden_ConflictToken = b.ConflictToken + x.xxx_hidden_Identity = b.Identity + return m0 +} + +type case_SetWorkerDeploymentManagerRequest_NewManagerIdentity protoreflect.FieldNumber + +func (x case_SetWorkerDeploymentManagerRequest_NewManagerIdentity) String() string { + switch x { + case SetWorkerDeploymentManagerRequest_NewManagerIdentity_not_set_case: + return "SetWorkerDeploymentManagerRequestNewManagerIdentityNotSetCase" + case SetWorkerDeploymentManagerRequest_ManagerIdentity_case: + return "SetWorkerDeploymentManagerRequestManagerIdentityCase" + case SetWorkerDeploymentManagerRequest_Self_case: + return "SetWorkerDeploymentManagerRequestSelfCase" + default: + return strconv.Itoa(int(x)) + } + +} + +type isSetWorkerDeploymentManagerRequest_NewManagerIdentity interface { + isSetWorkerDeploymentManagerRequest_NewManagerIdentity() +} + +type setWorkerDeploymentManagerRequest_ManagerIdentity struct { + // Arbitrary value for `manager_identity`. + // Empty will unset the field. + ManagerIdentity string `protobuf:"bytes,3,opt,name=manager_identity,json=managerIdentity,proto3,oneof"` +} + +type setWorkerDeploymentManagerRequest_Self struct { + // True will set `manager_identity` to `identity`. + Self bool `protobuf:"varint,4,opt,name=self,proto3,oneof"` +} + +func (*setWorkerDeploymentManagerRequest_ManagerIdentity) isSetWorkerDeploymentManagerRequest_NewManagerIdentity() { +} + +func (*setWorkerDeploymentManagerRequest_Self) isSetWorkerDeploymentManagerRequest_NewManagerIdentity() { +} + +type SetWorkerDeploymentManagerResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ConflictToken []byte `protobuf:"bytes,1,opt,name=conflict_token,json=conflictToken,proto3"` + xxx_hidden_PreviousManagerIdentity string `protobuf:"bytes,2,opt,name=previous_manager_identity,json=previousManagerIdentity,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SetWorkerDeploymentManagerResponse) Reset() { + *x = SetWorkerDeploymentManagerResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[161] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SetWorkerDeploymentManagerResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SetWorkerDeploymentManagerResponse) ProtoMessage() {} + +func (x *SetWorkerDeploymentManagerResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[161] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *SetWorkerDeploymentManagerResponse) GetConflictToken() []byte { + if x != nil { + return x.xxx_hidden_ConflictToken + } + return nil +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *SetWorkerDeploymentManagerResponse) GetPreviousManagerIdentity() string { + if x != nil { + return x.xxx_hidden_PreviousManagerIdentity + } + return "" +} + +func (x *SetWorkerDeploymentManagerResponse) SetConflictToken(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_ConflictToken = v +} + +// Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. +func (x *SetWorkerDeploymentManagerResponse) SetPreviousManagerIdentity(v string) { + x.xxx_hidden_PreviousManagerIdentity = v +} + +type SetWorkerDeploymentManagerResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // This value is returned so that it can be optionally passed to APIs + // that write to the Worker Deployment state to ensure that the state + // did not change between this API call and a future write. + ConflictToken []byte + // What the `manager_identity` field was before this change. + // Deprecated in favor of idempotency of the API. Use `DescribeWorkerDeployment` to get the + // manager identity before calling this API. By passing the `conflict_token` got from the + // `DescribeWorkerDeployment` call to this API you can ensure there is no interfering changes + // between the two calls. + // + // Deprecated: Marked as deprecated in temporal/api/workflowservice/v1/request_response.proto. + PreviousManagerIdentity string +} + +func (b0 SetWorkerDeploymentManagerResponse_builder) Build() *SetWorkerDeploymentManagerResponse { + m0 := &SetWorkerDeploymentManagerResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ConflictToken = b.ConflictToken + x.xxx_hidden_PreviousManagerIdentity = b.PreviousManagerIdentity + return m0 +} + +// Returns the Current Deployment of a deployment series. +// [cleanup-wv-pre-release] Pre-release deployment APIs, clean up later +type GetCurrentDeploymentRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_SeriesName string `protobuf:"bytes,2,opt,name=series_name,json=seriesName,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetCurrentDeploymentRequest) Reset() { + *x = GetCurrentDeploymentRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[162] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetCurrentDeploymentRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetCurrentDeploymentRequest) ProtoMessage() {} + +func (x *GetCurrentDeploymentRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[162] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetCurrentDeploymentRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *GetCurrentDeploymentRequest) GetSeriesName() string { + if x != nil { + return x.xxx_hidden_SeriesName + } + return "" +} + +func (x *GetCurrentDeploymentRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *GetCurrentDeploymentRequest) SetSeriesName(v string) { + x.xxx_hidden_SeriesName = v +} + +type GetCurrentDeploymentRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + SeriesName string +} + +func (b0 GetCurrentDeploymentRequest_builder) Build() *GetCurrentDeploymentRequest { + m0 := &GetCurrentDeploymentRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_SeriesName = b.SeriesName + return m0 +} + +// [cleanup-wv-pre-release] Pre-release deployment APIs, clean up later +type GetCurrentDeploymentResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_CurrentDeploymentInfo *v18.DeploymentInfo `protobuf:"bytes,1,opt,name=current_deployment_info,json=currentDeploymentInfo,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetCurrentDeploymentResponse) Reset() { + *x = GetCurrentDeploymentResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[163] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetCurrentDeploymentResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetCurrentDeploymentResponse) ProtoMessage() {} + +func (x *GetCurrentDeploymentResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[163] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetCurrentDeploymentResponse) GetCurrentDeploymentInfo() *v18.DeploymentInfo { + if x != nil { + return x.xxx_hidden_CurrentDeploymentInfo + } + return nil +} + +func (x *GetCurrentDeploymentResponse) SetCurrentDeploymentInfo(v *v18.DeploymentInfo) { + x.xxx_hidden_CurrentDeploymentInfo = v +} + +func (x *GetCurrentDeploymentResponse) HasCurrentDeploymentInfo() bool { + if x == nil { + return false + } + return x.xxx_hidden_CurrentDeploymentInfo != nil +} + +func (x *GetCurrentDeploymentResponse) ClearCurrentDeploymentInfo() { + x.xxx_hidden_CurrentDeploymentInfo = nil +} + +type GetCurrentDeploymentResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + CurrentDeploymentInfo *v18.DeploymentInfo +} + +func (b0 GetCurrentDeploymentResponse_builder) Build() *GetCurrentDeploymentResponse { + m0 := &GetCurrentDeploymentResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_CurrentDeploymentInfo = b.CurrentDeploymentInfo + return m0 +} + +// [cleanup-wv-pre-release] Pre-release deployment APIs, clean up later +type GetDeploymentReachabilityRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_Deployment *v18.Deployment `protobuf:"bytes,2,opt,name=deployment,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetDeploymentReachabilityRequest) Reset() { + *x = GetDeploymentReachabilityRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[164] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetDeploymentReachabilityRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetDeploymentReachabilityRequest) ProtoMessage() {} + +func (x *GetDeploymentReachabilityRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[164] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetDeploymentReachabilityRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *GetDeploymentReachabilityRequest) GetDeployment() *v18.Deployment { + if x != nil { + return x.xxx_hidden_Deployment + } + return nil +} + +func (x *GetDeploymentReachabilityRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *GetDeploymentReachabilityRequest) SetDeployment(v *v18.Deployment) { + x.xxx_hidden_Deployment = v +} + +func (x *GetDeploymentReachabilityRequest) HasDeployment() bool { + if x == nil { + return false + } + return x.xxx_hidden_Deployment != nil +} + +func (x *GetDeploymentReachabilityRequest) ClearDeployment() { + x.xxx_hidden_Deployment = nil +} + +type GetDeploymentReachabilityRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + Deployment *v18.Deployment +} + +func (b0 GetDeploymentReachabilityRequest_builder) Build() *GetDeploymentReachabilityRequest { + m0 := &GetDeploymentReachabilityRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_Deployment = b.Deployment + return m0 +} + +// [cleanup-wv-pre-release] Pre-release deployment APIs, clean up later +type GetDeploymentReachabilityResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_DeploymentInfo *v18.DeploymentInfo `protobuf:"bytes,1,opt,name=deployment_info,json=deploymentInfo,proto3"` + xxx_hidden_Reachability v11.DeploymentReachability `protobuf:"varint,2,opt,name=reachability,proto3,enum=temporal.api.enums.v1.DeploymentReachability"` + xxx_hidden_LastUpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=last_update_time,json=lastUpdateTime,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetDeploymentReachabilityResponse) Reset() { + *x = GetDeploymentReachabilityResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[165] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetDeploymentReachabilityResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetDeploymentReachabilityResponse) ProtoMessage() {} + +func (x *GetDeploymentReachabilityResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[165] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetDeploymentReachabilityResponse) GetDeploymentInfo() *v18.DeploymentInfo { + if x != nil { + return x.xxx_hidden_DeploymentInfo + } + return nil +} + +func (x *GetDeploymentReachabilityResponse) GetReachability() v11.DeploymentReachability { + if x != nil { + return x.xxx_hidden_Reachability + } + return v11.DeploymentReachability(0) +} + +func (x *GetDeploymentReachabilityResponse) GetLastUpdateTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_LastUpdateTime + } + return nil +} + +func (x *GetDeploymentReachabilityResponse) SetDeploymentInfo(v *v18.DeploymentInfo) { + x.xxx_hidden_DeploymentInfo = v +} + +func (x *GetDeploymentReachabilityResponse) SetReachability(v v11.DeploymentReachability) { + x.xxx_hidden_Reachability = v +} + +func (x *GetDeploymentReachabilityResponse) SetLastUpdateTime(v *timestamppb.Timestamp) { + x.xxx_hidden_LastUpdateTime = v +} + +func (x *GetDeploymentReachabilityResponse) HasDeploymentInfo() bool { + if x == nil { + return false + } + return x.xxx_hidden_DeploymentInfo != nil +} + +func (x *GetDeploymentReachabilityResponse) HasLastUpdateTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_LastUpdateTime != nil +} + +func (x *GetDeploymentReachabilityResponse) ClearDeploymentInfo() { + x.xxx_hidden_DeploymentInfo = nil +} + +func (x *GetDeploymentReachabilityResponse) ClearLastUpdateTime() { + x.xxx_hidden_LastUpdateTime = nil +} + +type GetDeploymentReachabilityResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + DeploymentInfo *v18.DeploymentInfo + Reachability v11.DeploymentReachability + // Reachability level might come from server cache. This timestamp specifies when the value + // was actually calculated. + LastUpdateTime *timestamppb.Timestamp +} + +func (b0 GetDeploymentReachabilityResponse_builder) Build() *GetDeploymentReachabilityResponse { + m0 := &GetDeploymentReachabilityResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_DeploymentInfo = b.DeploymentInfo + x.xxx_hidden_Reachability = b.Reachability + x.xxx_hidden_LastUpdateTime = b.LastUpdateTime + return m0 +} + +type CreateWorkflowRuleRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_Spec *v121.WorkflowRuleSpec `protobuf:"bytes,2,opt,name=spec,proto3"` + xxx_hidden_ForceScan bool `protobuf:"varint,3,opt,name=force_scan,json=forceScan,proto3"` + xxx_hidden_RequestId string `protobuf:"bytes,4,opt,name=request_id,json=requestId,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,5,opt,name=identity,proto3"` + xxx_hidden_Description string `protobuf:"bytes,6,opt,name=description,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateWorkflowRuleRequest) Reset() { + *x = CreateWorkflowRuleRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[166] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateWorkflowRuleRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateWorkflowRuleRequest) ProtoMessage() {} + +func (x *CreateWorkflowRuleRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[166] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *CreateWorkflowRuleRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *CreateWorkflowRuleRequest) GetSpec() *v121.WorkflowRuleSpec { + if x != nil { + return x.xxx_hidden_Spec + } + return nil +} + +func (x *CreateWorkflowRuleRequest) GetForceScan() bool { + if x != nil { + return x.xxx_hidden_ForceScan + } + return false +} + +func (x *CreateWorkflowRuleRequest) GetRequestId() string { + if x != nil { + return x.xxx_hidden_RequestId + } + return "" +} + +func (x *CreateWorkflowRuleRequest) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *CreateWorkflowRuleRequest) GetDescription() string { + if x != nil { + return x.xxx_hidden_Description + } + return "" +} + +func (x *CreateWorkflowRuleRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *CreateWorkflowRuleRequest) SetSpec(v *v121.WorkflowRuleSpec) { + x.xxx_hidden_Spec = v +} + +func (x *CreateWorkflowRuleRequest) SetForceScan(v bool) { + x.xxx_hidden_ForceScan = v +} + +func (x *CreateWorkflowRuleRequest) SetRequestId(v string) { + x.xxx_hidden_RequestId = v +} + +func (x *CreateWorkflowRuleRequest) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *CreateWorkflowRuleRequest) SetDescription(v string) { + x.xxx_hidden_Description = v +} + +func (x *CreateWorkflowRuleRequest) HasSpec() bool { + if x == nil { + return false + } + return x.xxx_hidden_Spec != nil +} + +func (x *CreateWorkflowRuleRequest) ClearSpec() { + x.xxx_hidden_Spec = nil +} + +type CreateWorkflowRuleRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + // The rule specification . + Spec *v121.WorkflowRuleSpec + // If true, the rule will be applied to the currently running workflows via batch job. + // If not set , the rule will only be applied when triggering condition is satisfied. + // visibility_query in the rule will be used to select the workflows to apply the rule to. + ForceScan bool + // Used to de-dupe requests. Typically should be UUID. + RequestId string + // Identity of the actor who created the rule. Will be stored with the rule. + Identity string + // Rule description.Will be stored with the rule. + Description string +} + +func (b0 CreateWorkflowRuleRequest_builder) Build() *CreateWorkflowRuleRequest { + m0 := &CreateWorkflowRuleRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_Spec = b.Spec + x.xxx_hidden_ForceScan = b.ForceScan + x.xxx_hidden_RequestId = b.RequestId + x.xxx_hidden_Identity = b.Identity + x.xxx_hidden_Description = b.Description + return m0 +} + +type CreateWorkflowRuleResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Rule *v121.WorkflowRule `protobuf:"bytes,1,opt,name=rule,proto3"` + xxx_hidden_JobId string `protobuf:"bytes,2,opt,name=job_id,json=jobId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateWorkflowRuleResponse) Reset() { + *x = CreateWorkflowRuleResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[167] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateWorkflowRuleResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateWorkflowRuleResponse) ProtoMessage() {} + +func (x *CreateWorkflowRuleResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[167] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *CreateWorkflowRuleResponse) GetRule() *v121.WorkflowRule { + if x != nil { + return x.xxx_hidden_Rule + } + return nil +} + +func (x *CreateWorkflowRuleResponse) GetJobId() string { + if x != nil { + return x.xxx_hidden_JobId + } + return "" +} + +func (x *CreateWorkflowRuleResponse) SetRule(v *v121.WorkflowRule) { + x.xxx_hidden_Rule = v +} + +func (x *CreateWorkflowRuleResponse) SetJobId(v string) { + x.xxx_hidden_JobId = v +} + +func (x *CreateWorkflowRuleResponse) HasRule() bool { + if x == nil { + return false + } + return x.xxx_hidden_Rule != nil +} + +func (x *CreateWorkflowRuleResponse) ClearRule() { + x.xxx_hidden_Rule = nil +} + +type CreateWorkflowRuleResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Created rule. + Rule *v121.WorkflowRule + // Batch Job ID if force-scan flag was provided. Otherwise empty. + JobId string +} + +func (b0 CreateWorkflowRuleResponse_builder) Build() *CreateWorkflowRuleResponse { + m0 := &CreateWorkflowRuleResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Rule = b.Rule + x.xxx_hidden_JobId = b.JobId + return m0 +} + +type DescribeWorkflowRuleRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_RuleId string `protobuf:"bytes,2,opt,name=rule_id,json=ruleId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DescribeWorkflowRuleRequest) Reset() { + *x = DescribeWorkflowRuleRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[168] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DescribeWorkflowRuleRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DescribeWorkflowRuleRequest) ProtoMessage() {} + +func (x *DescribeWorkflowRuleRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[168] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DescribeWorkflowRuleRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *DescribeWorkflowRuleRequest) GetRuleId() string { + if x != nil { + return x.xxx_hidden_RuleId + } + return "" +} + +func (x *DescribeWorkflowRuleRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *DescribeWorkflowRuleRequest) SetRuleId(v string) { + x.xxx_hidden_RuleId = v +} + +type DescribeWorkflowRuleRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + // User-specified ID of the rule to read. Unique within the namespace. + RuleId string +} + +func (b0 DescribeWorkflowRuleRequest_builder) Build() *DescribeWorkflowRuleRequest { + m0 := &DescribeWorkflowRuleRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_RuleId = b.RuleId + return m0 +} + +type DescribeWorkflowRuleResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Rule *v121.WorkflowRule `protobuf:"bytes,1,opt,name=rule,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DescribeWorkflowRuleResponse) Reset() { + *x = DescribeWorkflowRuleResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[169] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DescribeWorkflowRuleResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DescribeWorkflowRuleResponse) ProtoMessage() {} + +func (x *DescribeWorkflowRuleResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[169] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DescribeWorkflowRuleResponse) GetRule() *v121.WorkflowRule { + if x != nil { + return x.xxx_hidden_Rule + } + return nil +} + +func (x *DescribeWorkflowRuleResponse) SetRule(v *v121.WorkflowRule) { + x.xxx_hidden_Rule = v +} + +func (x *DescribeWorkflowRuleResponse) HasRule() bool { + if x == nil { + return false + } + return x.xxx_hidden_Rule != nil +} + +func (x *DescribeWorkflowRuleResponse) ClearRule() { + x.xxx_hidden_Rule = nil +} + +type DescribeWorkflowRuleResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The rule that was read. + Rule *v121.WorkflowRule +} + +func (b0 DescribeWorkflowRuleResponse_builder) Build() *DescribeWorkflowRuleResponse { + m0 := &DescribeWorkflowRuleResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Rule = b.Rule + return m0 +} + +type DeleteWorkflowRuleRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_RuleId string `protobuf:"bytes,2,opt,name=rule_id,json=ruleId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteWorkflowRuleRequest) Reset() { + *x = DeleteWorkflowRuleRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[170] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteWorkflowRuleRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteWorkflowRuleRequest) ProtoMessage() {} + +func (x *DeleteWorkflowRuleRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[170] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DeleteWorkflowRuleRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *DeleteWorkflowRuleRequest) GetRuleId() string { + if x != nil { + return x.xxx_hidden_RuleId + } + return "" +} + +func (x *DeleteWorkflowRuleRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *DeleteWorkflowRuleRequest) SetRuleId(v string) { + x.xxx_hidden_RuleId = v +} + +type DeleteWorkflowRuleRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + // ID of the rule to delete. Unique within the namespace. + RuleId string +} + +func (b0 DeleteWorkflowRuleRequest_builder) Build() *DeleteWorkflowRuleRequest { + m0 := &DeleteWorkflowRuleRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_RuleId = b.RuleId + return m0 +} + +type DeleteWorkflowRuleResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteWorkflowRuleResponse) Reset() { + *x = DeleteWorkflowRuleResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[171] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteWorkflowRuleResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteWorkflowRuleResponse) ProtoMessage() {} + +func (x *DeleteWorkflowRuleResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[171] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type DeleteWorkflowRuleResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 DeleteWorkflowRuleResponse_builder) Build() *DeleteWorkflowRuleResponse { + m0 := &DeleteWorkflowRuleResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type ListWorkflowRulesRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_NextPageToken []byte `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListWorkflowRulesRequest) Reset() { + *x = ListWorkflowRulesRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[172] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListWorkflowRulesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListWorkflowRulesRequest) ProtoMessage() {} + +func (x *ListWorkflowRulesRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[172] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListWorkflowRulesRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *ListWorkflowRulesRequest) GetNextPageToken() []byte { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return nil +} + +func (x *ListWorkflowRulesRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *ListWorkflowRulesRequest) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_NextPageToken = v +} + +type ListWorkflowRulesRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + NextPageToken []byte +} + +func (b0 ListWorkflowRulesRequest_builder) Build() *ListWorkflowRulesRequest { + m0 := &ListWorkflowRulesRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_NextPageToken = b.NextPageToken + return m0 +} + +type ListWorkflowRulesResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Rules *[]*v121.WorkflowRule `protobuf:"bytes,1,rep,name=rules,proto3"` + xxx_hidden_NextPageToken []byte `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListWorkflowRulesResponse) Reset() { + *x = ListWorkflowRulesResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[173] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListWorkflowRulesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListWorkflowRulesResponse) ProtoMessage() {} + +func (x *ListWorkflowRulesResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[173] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListWorkflowRulesResponse) GetRules() []*v121.WorkflowRule { + if x != nil { + if x.xxx_hidden_Rules != nil { + return *x.xxx_hidden_Rules + } + } + return nil +} + +func (x *ListWorkflowRulesResponse) GetNextPageToken() []byte { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return nil +} + +func (x *ListWorkflowRulesResponse) SetRules(v []*v121.WorkflowRule) { + x.xxx_hidden_Rules = &v +} + +func (x *ListWorkflowRulesResponse) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_NextPageToken = v +} + +type ListWorkflowRulesResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Rules []*v121.WorkflowRule + NextPageToken []byte +} + +func (b0 ListWorkflowRulesResponse_builder) Build() *ListWorkflowRulesResponse { + m0 := &ListWorkflowRulesResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Rules = &b.Rules + x.xxx_hidden_NextPageToken = b.NextPageToken + return m0 +} + +type TriggerWorkflowRuleRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_Execution *v13.WorkflowExecution `protobuf:"bytes,2,opt,name=execution,proto3"` + xxx_hidden_Rule isTriggerWorkflowRuleRequest_Rule `protobuf_oneof:"rule"` + xxx_hidden_Identity string `protobuf:"bytes,3,opt,name=identity,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TriggerWorkflowRuleRequest) Reset() { + *x = TriggerWorkflowRuleRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[174] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TriggerWorkflowRuleRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TriggerWorkflowRuleRequest) ProtoMessage() {} + +func (x *TriggerWorkflowRuleRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[174] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *TriggerWorkflowRuleRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *TriggerWorkflowRuleRequest) GetExecution() *v13.WorkflowExecution { + if x != nil { + return x.xxx_hidden_Execution + } + return nil +} + +func (x *TriggerWorkflowRuleRequest) GetId() string { + if x != nil { + if x, ok := x.xxx_hidden_Rule.(*triggerWorkflowRuleRequest_Id); ok { + return x.Id + } + } + return "" +} + +func (x *TriggerWorkflowRuleRequest) GetSpec() *v121.WorkflowRuleSpec { + if x != nil { + if x, ok := x.xxx_hidden_Rule.(*triggerWorkflowRuleRequest_Spec); ok { + return x.Spec + } + } + return nil +} + +func (x *TriggerWorkflowRuleRequest) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *TriggerWorkflowRuleRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *TriggerWorkflowRuleRequest) SetExecution(v *v13.WorkflowExecution) { + x.xxx_hidden_Execution = v +} + +func (x *TriggerWorkflowRuleRequest) SetId(v string) { + x.xxx_hidden_Rule = &triggerWorkflowRuleRequest_Id{v} +} + +func (x *TriggerWorkflowRuleRequest) SetSpec(v *v121.WorkflowRuleSpec) { + if v == nil { + x.xxx_hidden_Rule = nil + return + } + x.xxx_hidden_Rule = &triggerWorkflowRuleRequest_Spec{v} +} + +func (x *TriggerWorkflowRuleRequest) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *TriggerWorkflowRuleRequest) HasExecution() bool { + if x == nil { + return false + } + return x.xxx_hidden_Execution != nil +} + +func (x *TriggerWorkflowRuleRequest) HasRule() bool { + if x == nil { + return false + } + return x.xxx_hidden_Rule != nil +} + +func (x *TriggerWorkflowRuleRequest) HasId() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Rule.(*triggerWorkflowRuleRequest_Id) + return ok +} + +func (x *TriggerWorkflowRuleRequest) HasSpec() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Rule.(*triggerWorkflowRuleRequest_Spec) + return ok +} + +func (x *TriggerWorkflowRuleRequest) ClearExecution() { + x.xxx_hidden_Execution = nil +} + +func (x *TriggerWorkflowRuleRequest) ClearRule() { + x.xxx_hidden_Rule = nil +} + +func (x *TriggerWorkflowRuleRequest) ClearId() { + if _, ok := x.xxx_hidden_Rule.(*triggerWorkflowRuleRequest_Id); ok { + x.xxx_hidden_Rule = nil + } +} + +func (x *TriggerWorkflowRuleRequest) ClearSpec() { + if _, ok := x.xxx_hidden_Rule.(*triggerWorkflowRuleRequest_Spec); ok { + x.xxx_hidden_Rule = nil + } +} + +const TriggerWorkflowRuleRequest_Rule_not_set_case case_TriggerWorkflowRuleRequest_Rule = 0 +const TriggerWorkflowRuleRequest_Id_case case_TriggerWorkflowRuleRequest_Rule = 4 +const TriggerWorkflowRuleRequest_Spec_case case_TriggerWorkflowRuleRequest_Rule = 5 + +func (x *TriggerWorkflowRuleRequest) WhichRule() case_TriggerWorkflowRuleRequest_Rule { + if x == nil { + return TriggerWorkflowRuleRequest_Rule_not_set_case + } + switch x.xxx_hidden_Rule.(type) { + case *triggerWorkflowRuleRequest_Id: + return TriggerWorkflowRuleRequest_Id_case + case *triggerWorkflowRuleRequest_Spec: + return TriggerWorkflowRuleRequest_Spec_case + default: + return TriggerWorkflowRuleRequest_Rule_not_set_case + } +} + +type TriggerWorkflowRuleRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + // Execution info of the workflow which scheduled this activity + Execution *v13.WorkflowExecution + // Either provide id of existing rule, or rule specification + + // Fields of oneof xxx_hidden_Rule: + Id *string + // Note: Rule ID and expiration date are not used in the trigger request. + Spec *v121.WorkflowRuleSpec + // -- end of xxx_hidden_Rule + // The identity of the client who initiated this request + Identity string +} + +func (b0 TriggerWorkflowRuleRequest_builder) Build() *TriggerWorkflowRuleRequest { + m0 := &TriggerWorkflowRuleRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_Execution = b.Execution + if b.Id != nil { + x.xxx_hidden_Rule = &triggerWorkflowRuleRequest_Id{*b.Id} + } + if b.Spec != nil { + x.xxx_hidden_Rule = &triggerWorkflowRuleRequest_Spec{b.Spec} + } + x.xxx_hidden_Identity = b.Identity + return m0 +} + +type case_TriggerWorkflowRuleRequest_Rule protoreflect.FieldNumber + +func (x case_TriggerWorkflowRuleRequest_Rule) String() string { + switch x { + case TriggerWorkflowRuleRequest_Rule_not_set_case: + return "TriggerWorkflowRuleRequestRuleNotSetCase" + case TriggerWorkflowRuleRequest_Id_case: + return "TriggerWorkflowRuleRequestIdCase" + case TriggerWorkflowRuleRequest_Spec_case: + return "TriggerWorkflowRuleRequestSpecCase" + default: + return strconv.Itoa(int(x)) + } + +} + +type isTriggerWorkflowRuleRequest_Rule interface { + isTriggerWorkflowRuleRequest_Rule() +} + +type triggerWorkflowRuleRequest_Id struct { + Id string `protobuf:"bytes,4,opt,name=id,proto3,oneof"` +} + +type triggerWorkflowRuleRequest_Spec struct { + // Note: Rule ID and expiration date are not used in the trigger request. + Spec *v121.WorkflowRuleSpec `protobuf:"bytes,5,opt,name=spec,proto3,oneof"` +} + +func (*triggerWorkflowRuleRequest_Id) isTriggerWorkflowRuleRequest_Rule() {} + +func (*triggerWorkflowRuleRequest_Spec) isTriggerWorkflowRuleRequest_Rule() {} + +type TriggerWorkflowRuleResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Applied bool `protobuf:"varint,1,opt,name=applied,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TriggerWorkflowRuleResponse) Reset() { + *x = TriggerWorkflowRuleResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[175] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TriggerWorkflowRuleResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TriggerWorkflowRuleResponse) ProtoMessage() {} + +func (x *TriggerWorkflowRuleResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[175] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *TriggerWorkflowRuleResponse) GetApplied() bool { + if x != nil { + return x.xxx_hidden_Applied + } + return false +} + +func (x *TriggerWorkflowRuleResponse) SetApplied(v bool) { + x.xxx_hidden_Applied = v +} + +type TriggerWorkflowRuleResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // True is the rule was applied, based on the rule conditions (predicate/visibility_query). + Applied bool +} + +func (b0 TriggerWorkflowRuleResponse_builder) Build() *TriggerWorkflowRuleResponse { + m0 := &TriggerWorkflowRuleResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Applied = b.Applied + return m0 +} + +type RecordWorkerHeartbeatRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,2,opt,name=identity,proto3"` + xxx_hidden_WorkerHeartbeat *[]*v114.WorkerHeartbeat `protobuf:"bytes,3,rep,name=worker_heartbeat,json=workerHeartbeat,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RecordWorkerHeartbeatRequest) Reset() { + *x = RecordWorkerHeartbeatRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[176] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RecordWorkerHeartbeatRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RecordWorkerHeartbeatRequest) ProtoMessage() {} + +func (x *RecordWorkerHeartbeatRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[176] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *RecordWorkerHeartbeatRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *RecordWorkerHeartbeatRequest) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *RecordWorkerHeartbeatRequest) GetWorkerHeartbeat() []*v114.WorkerHeartbeat { + if x != nil { + if x.xxx_hidden_WorkerHeartbeat != nil { + return *x.xxx_hidden_WorkerHeartbeat + } + } + return nil +} + +func (x *RecordWorkerHeartbeatRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *RecordWorkerHeartbeatRequest) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *RecordWorkerHeartbeatRequest) SetWorkerHeartbeat(v []*v114.WorkerHeartbeat) { + x.xxx_hidden_WorkerHeartbeat = &v +} + +type RecordWorkerHeartbeatRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Namespace this worker belongs to. + Namespace string + // The identity of the client who initiated this request. + Identity string + WorkerHeartbeat []*v114.WorkerHeartbeat +} + +func (b0 RecordWorkerHeartbeatRequest_builder) Build() *RecordWorkerHeartbeatRequest { + m0 := &RecordWorkerHeartbeatRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_Identity = b.Identity + x.xxx_hidden_WorkerHeartbeat = &b.WorkerHeartbeat + return m0 +} + +type RecordWorkerHeartbeatResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RecordWorkerHeartbeatResponse) Reset() { + *x = RecordWorkerHeartbeatResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[177] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RecordWorkerHeartbeatResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RecordWorkerHeartbeatResponse) ProtoMessage() {} + +func (x *RecordWorkerHeartbeatResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[177] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type RecordWorkerHeartbeatResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 RecordWorkerHeartbeatResponse_builder) Build() *RecordWorkerHeartbeatResponse { + m0 := &RecordWorkerHeartbeatResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type ListWorkersRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3"` + xxx_hidden_NextPageToken []byte `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3"` + xxx_hidden_Query string `protobuf:"bytes,4,opt,name=query,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListWorkersRequest) Reset() { + *x = ListWorkersRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[178] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListWorkersRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListWorkersRequest) ProtoMessage() {} + +func (x *ListWorkersRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[178] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListWorkersRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *ListWorkersRequest) GetPageSize() int32 { + if x != nil { + return x.xxx_hidden_PageSize + } + return 0 +} + +func (x *ListWorkersRequest) GetNextPageToken() []byte { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return nil +} + +func (x *ListWorkersRequest) GetQuery() string { + if x != nil { + return x.xxx_hidden_Query + } + return "" +} + +func (x *ListWorkersRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *ListWorkersRequest) SetPageSize(v int32) { + x.xxx_hidden_PageSize = v +} + +func (x *ListWorkersRequest) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_NextPageToken = v +} + +func (x *ListWorkersRequest) SetQuery(v string) { + x.xxx_hidden_Query = v +} + +type ListWorkersRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + PageSize int32 + NextPageToken []byte + // `query` in ListWorkers is used to filter workers based on worker status info. + // The following worker status attributes are expected are supported as part of the query: + // * WorkerInstanceKey + // * WorkerIdentity + // * HostName + // * TaskQueue + // * DeploymentName + // * BuildId + // * SdkName + // * SdkVersion + // * StartTime + // * LastHeartbeatTime + // * Status + // Currently metrics are not supported as a part of ListWorkers query. + Query string +} + +func (b0 ListWorkersRequest_builder) Build() *ListWorkersRequest { + m0 := &ListWorkersRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_PageSize = b.PageSize + x.xxx_hidden_NextPageToken = b.NextPageToken + x.xxx_hidden_Query = b.Query + return m0 +} + +type ListWorkersResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_WorkersInfo *[]*v114.WorkerInfo `protobuf:"bytes,1,rep,name=workers_info,json=workersInfo,proto3"` + xxx_hidden_NextPageToken []byte `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListWorkersResponse) Reset() { + *x = ListWorkersResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[179] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListWorkersResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListWorkersResponse) ProtoMessage() {} + +func (x *ListWorkersResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[179] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListWorkersResponse) GetWorkersInfo() []*v114.WorkerInfo { + if x != nil { + if x.xxx_hidden_WorkersInfo != nil { + return *x.xxx_hidden_WorkersInfo + } + } + return nil +} + +func (x *ListWorkersResponse) GetNextPageToken() []byte { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return nil +} + +func (x *ListWorkersResponse) SetWorkersInfo(v []*v114.WorkerInfo) { + x.xxx_hidden_WorkersInfo = &v +} + +func (x *ListWorkersResponse) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_NextPageToken = v +} + +type ListWorkersResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + WorkersInfo []*v114.WorkerInfo + // Next page token + NextPageToken []byte +} + +func (b0 ListWorkersResponse_builder) Build() *ListWorkersResponse { + m0 := &ListWorkersResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_WorkersInfo = &b.WorkersInfo + x.xxx_hidden_NextPageToken = b.NextPageToken + return m0 +} + +type UpdateTaskQueueConfigRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,2,opt,name=identity,proto3"` + xxx_hidden_TaskQueue string `protobuf:"bytes,3,opt,name=task_queue,json=taskQueue,proto3"` + xxx_hidden_TaskQueueType v11.TaskQueueType `protobuf:"varint,4,opt,name=task_queue_type,json=taskQueueType,proto3,enum=temporal.api.enums.v1.TaskQueueType"` + xxx_hidden_UpdateQueueRateLimit *UpdateTaskQueueConfigRequest_RateLimitUpdate `protobuf:"bytes,5,opt,name=update_queue_rate_limit,json=updateQueueRateLimit,proto3"` + xxx_hidden_UpdateFairnessKeyRateLimitDefault *UpdateTaskQueueConfigRequest_RateLimitUpdate `protobuf:"bytes,6,opt,name=update_fairness_key_rate_limit_default,json=updateFairnessKeyRateLimitDefault,proto3"` + xxx_hidden_SetFairnessWeightOverrides map[string]float32 `protobuf:"bytes,7,rep,name=set_fairness_weight_overrides,json=setFairnessWeightOverrides,proto3" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"fixed32,2,opt,name=value"` + xxx_hidden_UnsetFairnessWeightOverrides []string `protobuf:"bytes,8,rep,name=unset_fairness_weight_overrides,json=unsetFairnessWeightOverrides,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateTaskQueueConfigRequest) Reset() { + *x = UpdateTaskQueueConfigRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[180] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateTaskQueueConfigRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateTaskQueueConfigRequest) ProtoMessage() {} + +func (x *UpdateTaskQueueConfigRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[180] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UpdateTaskQueueConfigRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *UpdateTaskQueueConfigRequest) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *UpdateTaskQueueConfigRequest) GetTaskQueue() string { + if x != nil { + return x.xxx_hidden_TaskQueue + } + return "" +} + +func (x *UpdateTaskQueueConfigRequest) GetTaskQueueType() v11.TaskQueueType { + if x != nil { + return x.xxx_hidden_TaskQueueType + } + return v11.TaskQueueType(0) +} + +func (x *UpdateTaskQueueConfigRequest) GetUpdateQueueRateLimit() *UpdateTaskQueueConfigRequest_RateLimitUpdate { + if x != nil { + return x.xxx_hidden_UpdateQueueRateLimit + } + return nil +} + +func (x *UpdateTaskQueueConfigRequest) GetUpdateFairnessKeyRateLimitDefault() *UpdateTaskQueueConfigRequest_RateLimitUpdate { + if x != nil { + return x.xxx_hidden_UpdateFairnessKeyRateLimitDefault + } + return nil +} + +func (x *UpdateTaskQueueConfigRequest) GetSetFairnessWeightOverrides() map[string]float32 { + if x != nil { + return x.xxx_hidden_SetFairnessWeightOverrides + } + return nil +} + +func (x *UpdateTaskQueueConfigRequest) GetUnsetFairnessWeightOverrides() []string { + if x != nil { + return x.xxx_hidden_UnsetFairnessWeightOverrides + } + return nil +} + +func (x *UpdateTaskQueueConfigRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *UpdateTaskQueueConfigRequest) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *UpdateTaskQueueConfigRequest) SetTaskQueue(v string) { + x.xxx_hidden_TaskQueue = v +} + +func (x *UpdateTaskQueueConfigRequest) SetTaskQueueType(v v11.TaskQueueType) { + x.xxx_hidden_TaskQueueType = v +} + +func (x *UpdateTaskQueueConfigRequest) SetUpdateQueueRateLimit(v *UpdateTaskQueueConfigRequest_RateLimitUpdate) { + x.xxx_hidden_UpdateQueueRateLimit = v +} + +func (x *UpdateTaskQueueConfigRequest) SetUpdateFairnessKeyRateLimitDefault(v *UpdateTaskQueueConfigRequest_RateLimitUpdate) { + x.xxx_hidden_UpdateFairnessKeyRateLimitDefault = v +} + +func (x *UpdateTaskQueueConfigRequest) SetSetFairnessWeightOverrides(v map[string]float32) { + x.xxx_hidden_SetFairnessWeightOverrides = v +} + +func (x *UpdateTaskQueueConfigRequest) SetUnsetFairnessWeightOverrides(v []string) { + x.xxx_hidden_UnsetFairnessWeightOverrides = v +} + +func (x *UpdateTaskQueueConfigRequest) HasUpdateQueueRateLimit() bool { + if x == nil { + return false + } + return x.xxx_hidden_UpdateQueueRateLimit != nil +} + +func (x *UpdateTaskQueueConfigRequest) HasUpdateFairnessKeyRateLimitDefault() bool { + if x == nil { + return false + } + return x.xxx_hidden_UpdateFairnessKeyRateLimitDefault != nil +} + +func (x *UpdateTaskQueueConfigRequest) ClearUpdateQueueRateLimit() { + x.xxx_hidden_UpdateQueueRateLimit = nil +} + +func (x *UpdateTaskQueueConfigRequest) ClearUpdateFairnessKeyRateLimitDefault() { + x.xxx_hidden_UpdateFairnessKeyRateLimitDefault = nil +} + +type UpdateTaskQueueConfigRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + Identity string + // Selects the task queue to update. + TaskQueue string + TaskQueueType v11.TaskQueueType + // Update to queue-wide rate limit. + // If not set, this configuration is unchanged. + // NOTE: A limit set by the worker is overriden; and restored again when reset. + // If the `rate_limit` field in the `RateLimitUpdate` is missing, remove the existing rate limit. + UpdateQueueRateLimit *UpdateTaskQueueConfigRequest_RateLimitUpdate + // Update to the default fairness key rate limit. + // If not set, this configuration is unchanged. + // If the `rate_limit` field in the `RateLimitUpdate` is missing, remove the existing rate limit. + UpdateFairnessKeyRateLimitDefault *UpdateTaskQueueConfigRequest_RateLimitUpdate + // If set, overrides the fairness weight for each specified fairness key. + // Fairness keys not listed in this map will keep their existing overrides (if any). + SetFairnessWeightOverrides map[string]float32 + // If set, removes any existing fairness weight overrides for each specified fairness key. + // Fairness weights for corresponding keys fall back to the values set during task creation (if any), + // or to the default weight of 1.0. + UnsetFairnessWeightOverrides []string +} + +func (b0 UpdateTaskQueueConfigRequest_builder) Build() *UpdateTaskQueueConfigRequest { + m0 := &UpdateTaskQueueConfigRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_Identity = b.Identity + x.xxx_hidden_TaskQueue = b.TaskQueue + x.xxx_hidden_TaskQueueType = b.TaskQueueType + x.xxx_hidden_UpdateQueueRateLimit = b.UpdateQueueRateLimit + x.xxx_hidden_UpdateFairnessKeyRateLimitDefault = b.UpdateFairnessKeyRateLimitDefault + x.xxx_hidden_SetFairnessWeightOverrides = b.SetFairnessWeightOverrides + x.xxx_hidden_UnsetFairnessWeightOverrides = b.UnsetFairnessWeightOverrides + return m0 +} + +type UpdateTaskQueueConfigResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Config *v14.TaskQueueConfig `protobuf:"bytes,1,opt,name=config,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateTaskQueueConfigResponse) Reset() { + *x = UpdateTaskQueueConfigResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[181] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateTaskQueueConfigResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateTaskQueueConfigResponse) ProtoMessage() {} + +func (x *UpdateTaskQueueConfigResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[181] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UpdateTaskQueueConfigResponse) GetConfig() *v14.TaskQueueConfig { + if x != nil { + return x.xxx_hidden_Config + } + return nil +} + +func (x *UpdateTaskQueueConfigResponse) SetConfig(v *v14.TaskQueueConfig) { + x.xxx_hidden_Config = v +} + +func (x *UpdateTaskQueueConfigResponse) HasConfig() bool { + if x == nil { + return false + } + return x.xxx_hidden_Config != nil +} + +func (x *UpdateTaskQueueConfigResponse) ClearConfig() { + x.xxx_hidden_Config = nil +} + +type UpdateTaskQueueConfigResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Config *v14.TaskQueueConfig +} + +func (b0 UpdateTaskQueueConfigResponse_builder) Build() *UpdateTaskQueueConfigResponse { + m0 := &UpdateTaskQueueConfigResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Config = b.Config + return m0 +} + +type FetchWorkerConfigRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,2,opt,name=identity,proto3"` + xxx_hidden_Reason string `protobuf:"bytes,3,opt,name=reason,proto3"` + xxx_hidden_Selector *v13.WorkerSelector `protobuf:"bytes,6,opt,name=selector,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *FetchWorkerConfigRequest) Reset() { + *x = FetchWorkerConfigRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[182] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *FetchWorkerConfigRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FetchWorkerConfigRequest) ProtoMessage() {} + +func (x *FetchWorkerConfigRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[182] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *FetchWorkerConfigRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *FetchWorkerConfigRequest) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *FetchWorkerConfigRequest) GetReason() string { + if x != nil { + return x.xxx_hidden_Reason + } + return "" +} + +func (x *FetchWorkerConfigRequest) GetSelector() *v13.WorkerSelector { + if x != nil { + return x.xxx_hidden_Selector + } + return nil +} + +func (x *FetchWorkerConfigRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *FetchWorkerConfigRequest) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *FetchWorkerConfigRequest) SetReason(v string) { + x.xxx_hidden_Reason = v +} + +func (x *FetchWorkerConfigRequest) SetSelector(v *v13.WorkerSelector) { + x.xxx_hidden_Selector = v +} + +func (x *FetchWorkerConfigRequest) HasSelector() bool { + if x == nil { + return false + } + return x.xxx_hidden_Selector != nil +} + +func (x *FetchWorkerConfigRequest) ClearSelector() { + x.xxx_hidden_Selector = nil +} + +type FetchWorkerConfigRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Namespace this worker belongs to. + Namespace string + // The identity of the client who initiated this request. + Identity string + // Reason for sending worker command, can be used for audit purpose. + Reason string + // Defines which workers should receive this command. + // only single worker is supported at this time. + Selector *v13.WorkerSelector +} + +func (b0 FetchWorkerConfigRequest_builder) Build() *FetchWorkerConfigRequest { + m0 := &FetchWorkerConfigRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_Identity = b.Identity + x.xxx_hidden_Reason = b.Reason + x.xxx_hidden_Selector = b.Selector + return m0 +} + +type FetchWorkerConfigResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_WorkerConfig *v16.WorkerConfig `protobuf:"bytes,1,opt,name=worker_config,json=workerConfig,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *FetchWorkerConfigResponse) Reset() { + *x = FetchWorkerConfigResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[183] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *FetchWorkerConfigResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FetchWorkerConfigResponse) ProtoMessage() {} + +func (x *FetchWorkerConfigResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[183] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *FetchWorkerConfigResponse) GetWorkerConfig() *v16.WorkerConfig { + if x != nil { + return x.xxx_hidden_WorkerConfig + } + return nil +} + +func (x *FetchWorkerConfigResponse) SetWorkerConfig(v *v16.WorkerConfig) { + x.xxx_hidden_WorkerConfig = v +} + +func (x *FetchWorkerConfigResponse) HasWorkerConfig() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkerConfig != nil +} + +func (x *FetchWorkerConfigResponse) ClearWorkerConfig() { + x.xxx_hidden_WorkerConfig = nil +} + +type FetchWorkerConfigResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The worker configuration. + WorkerConfig *v16.WorkerConfig +} + +func (b0 FetchWorkerConfigResponse_builder) Build() *FetchWorkerConfigResponse { + m0 := &FetchWorkerConfigResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_WorkerConfig = b.WorkerConfig + return m0 +} + +type UpdateWorkerConfigRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,2,opt,name=identity,proto3"` + xxx_hidden_Reason string `protobuf:"bytes,3,opt,name=reason,proto3"` + xxx_hidden_WorkerConfig *v16.WorkerConfig `protobuf:"bytes,4,opt,name=worker_config,json=workerConfig,proto3"` + xxx_hidden_UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,5,opt,name=update_mask,json=updateMask,proto3"` + xxx_hidden_Selector *v13.WorkerSelector `protobuf:"bytes,6,opt,name=selector,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateWorkerConfigRequest) Reset() { + *x = UpdateWorkerConfigRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[184] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateWorkerConfigRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateWorkerConfigRequest) ProtoMessage() {} + +func (x *UpdateWorkerConfigRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[184] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UpdateWorkerConfigRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *UpdateWorkerConfigRequest) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *UpdateWorkerConfigRequest) GetReason() string { + if x != nil { + return x.xxx_hidden_Reason + } + return "" +} + +func (x *UpdateWorkerConfigRequest) GetWorkerConfig() *v16.WorkerConfig { + if x != nil { + return x.xxx_hidden_WorkerConfig + } + return nil +} + +func (x *UpdateWorkerConfigRequest) GetUpdateMask() *fieldmaskpb.FieldMask { + if x != nil { + return x.xxx_hidden_UpdateMask + } + return nil +} + +func (x *UpdateWorkerConfigRequest) GetSelector() *v13.WorkerSelector { + if x != nil { + return x.xxx_hidden_Selector + } + return nil +} + +func (x *UpdateWorkerConfigRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *UpdateWorkerConfigRequest) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *UpdateWorkerConfigRequest) SetReason(v string) { + x.xxx_hidden_Reason = v +} + +func (x *UpdateWorkerConfigRequest) SetWorkerConfig(v *v16.WorkerConfig) { + x.xxx_hidden_WorkerConfig = v +} + +func (x *UpdateWorkerConfigRequest) SetUpdateMask(v *fieldmaskpb.FieldMask) { + x.xxx_hidden_UpdateMask = v +} + +func (x *UpdateWorkerConfigRequest) SetSelector(v *v13.WorkerSelector) { + x.xxx_hidden_Selector = v +} + +func (x *UpdateWorkerConfigRequest) HasWorkerConfig() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkerConfig != nil +} + +func (x *UpdateWorkerConfigRequest) HasUpdateMask() bool { + if x == nil { + return false + } + return x.xxx_hidden_UpdateMask != nil +} + +func (x *UpdateWorkerConfigRequest) HasSelector() bool { + if x == nil { + return false + } + return x.xxx_hidden_Selector != nil +} + +func (x *UpdateWorkerConfigRequest) ClearWorkerConfig() { + x.xxx_hidden_WorkerConfig = nil +} + +func (x *UpdateWorkerConfigRequest) ClearUpdateMask() { + x.xxx_hidden_UpdateMask = nil +} + +func (x *UpdateWorkerConfigRequest) ClearSelector() { + x.xxx_hidden_Selector = nil +} + +type UpdateWorkerConfigRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Namespace this worker belongs to. + Namespace string + // The identity of the client who initiated this request. + Identity string + // Reason for sending worker command, can be used for audit purpose. + Reason string + // Partial updates are accepted and controlled by update_mask. + // The worker configuration to set. + WorkerConfig *v16.WorkerConfig + // Controls which fields from `worker_config` will be applied + UpdateMask *fieldmaskpb.FieldMask + // Defines which workers should receive this command. + Selector *v13.WorkerSelector +} + +func (b0 UpdateWorkerConfigRequest_builder) Build() *UpdateWorkerConfigRequest { + m0 := &UpdateWorkerConfigRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_Identity = b.Identity + x.xxx_hidden_Reason = b.Reason + x.xxx_hidden_WorkerConfig = b.WorkerConfig + x.xxx_hidden_UpdateMask = b.UpdateMask + x.xxx_hidden_Selector = b.Selector + return m0 +} + +type UpdateWorkerConfigResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Response isUpdateWorkerConfigResponse_Response `protobuf_oneof:"response"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateWorkerConfigResponse) Reset() { + *x = UpdateWorkerConfigResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[185] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateWorkerConfigResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateWorkerConfigResponse) ProtoMessage() {} + +func (x *UpdateWorkerConfigResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[185] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UpdateWorkerConfigResponse) GetWorkerConfig() *v16.WorkerConfig { + if x != nil { + if x, ok := x.xxx_hidden_Response.(*updateWorkerConfigResponse_WorkerConfig); ok { + return x.WorkerConfig + } + } + return nil +} + +func (x *UpdateWorkerConfigResponse) SetWorkerConfig(v *v16.WorkerConfig) { + if v == nil { + x.xxx_hidden_Response = nil + return + } + x.xxx_hidden_Response = &updateWorkerConfigResponse_WorkerConfig{v} +} + +func (x *UpdateWorkerConfigResponse) HasResponse() bool { + if x == nil { + return false + } + return x.xxx_hidden_Response != nil +} + +func (x *UpdateWorkerConfigResponse) HasWorkerConfig() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Response.(*updateWorkerConfigResponse_WorkerConfig) + return ok +} + +func (x *UpdateWorkerConfigResponse) ClearResponse() { + x.xxx_hidden_Response = nil +} + +func (x *UpdateWorkerConfigResponse) ClearWorkerConfig() { + if _, ok := x.xxx_hidden_Response.(*updateWorkerConfigResponse_WorkerConfig); ok { + x.xxx_hidden_Response = nil + } +} + +const UpdateWorkerConfigResponse_Response_not_set_case case_UpdateWorkerConfigResponse_Response = 0 +const UpdateWorkerConfigResponse_WorkerConfig_case case_UpdateWorkerConfigResponse_Response = 1 + +func (x *UpdateWorkerConfigResponse) WhichResponse() case_UpdateWorkerConfigResponse_Response { + if x == nil { + return UpdateWorkerConfigResponse_Response_not_set_case + } + switch x.xxx_hidden_Response.(type) { + case *updateWorkerConfigResponse_WorkerConfig: + return UpdateWorkerConfigResponse_WorkerConfig_case + default: + return UpdateWorkerConfigResponse_Response_not_set_case + } +} + +type UpdateWorkerConfigResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Fields of oneof xxx_hidden_Response: + // The worker configuration. Will be returned if the command was sent to a single worker. + WorkerConfig *v16.WorkerConfig + // -- end of xxx_hidden_Response +} + +func (b0 UpdateWorkerConfigResponse_builder) Build() *UpdateWorkerConfigResponse { + m0 := &UpdateWorkerConfigResponse{} + b, x := &b0, m0 + _, _ = b, x + if b.WorkerConfig != nil { + x.xxx_hidden_Response = &updateWorkerConfigResponse_WorkerConfig{b.WorkerConfig} + } + return m0 +} + +type case_UpdateWorkerConfigResponse_Response protoreflect.FieldNumber + +func (x case_UpdateWorkerConfigResponse_Response) String() string { + switch x { + case UpdateWorkerConfigResponse_Response_not_set_case: + return "UpdateWorkerConfigResponseResponseNotSetCase" + case UpdateWorkerConfigResponse_WorkerConfig_case: + return "UpdateWorkerConfigResponseWorkerConfigCase" + default: + return strconv.Itoa(int(x)) + } + +} + +type isUpdateWorkerConfigResponse_Response interface { + isUpdateWorkerConfigResponse_Response() +} + +type updateWorkerConfigResponse_WorkerConfig struct { + // The worker configuration. Will be returned if the command was sent to a single worker. + WorkerConfig *v16.WorkerConfig `protobuf:"bytes,1,opt,name=worker_config,json=workerConfig,proto3,oneof"` +} + +func (*updateWorkerConfigResponse_WorkerConfig) isUpdateWorkerConfigResponse_Response() {} + +type DescribeWorkerRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_WorkerInstanceKey string `protobuf:"bytes,2,opt,name=worker_instance_key,json=workerInstanceKey,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DescribeWorkerRequest) Reset() { + *x = DescribeWorkerRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[186] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DescribeWorkerRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DescribeWorkerRequest) ProtoMessage() {} + +func (x *DescribeWorkerRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[186] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DescribeWorkerRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *DescribeWorkerRequest) GetWorkerInstanceKey() string { + if x != nil { + return x.xxx_hidden_WorkerInstanceKey + } + return "" +} + +func (x *DescribeWorkerRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *DescribeWorkerRequest) SetWorkerInstanceKey(v string) { + x.xxx_hidden_WorkerInstanceKey = v +} + +type DescribeWorkerRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Namespace this worker belongs to. + Namespace string + // Worker instance key to describe. + WorkerInstanceKey string +} + +func (b0 DescribeWorkerRequest_builder) Build() *DescribeWorkerRequest { + m0 := &DescribeWorkerRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_WorkerInstanceKey = b.WorkerInstanceKey + return m0 +} + +type DescribeWorkerResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_WorkerInfo *v114.WorkerInfo `protobuf:"bytes,1,opt,name=worker_info,json=workerInfo,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DescribeWorkerResponse) Reset() { + *x = DescribeWorkerResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[187] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DescribeWorkerResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DescribeWorkerResponse) ProtoMessage() {} + +func (x *DescribeWorkerResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[187] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DescribeWorkerResponse) GetWorkerInfo() *v114.WorkerInfo { + if x != nil { + return x.xxx_hidden_WorkerInfo + } + return nil +} + +func (x *DescribeWorkerResponse) SetWorkerInfo(v *v114.WorkerInfo) { + x.xxx_hidden_WorkerInfo = v +} + +func (x *DescribeWorkerResponse) HasWorkerInfo() bool { + if x == nil { + return false + } + return x.xxx_hidden_WorkerInfo != nil +} + +func (x *DescribeWorkerResponse) ClearWorkerInfo() { + x.xxx_hidden_WorkerInfo = nil +} + +type DescribeWorkerResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + WorkerInfo *v114.WorkerInfo +} + +func (b0 DescribeWorkerResponse_builder) Build() *DescribeWorkerResponse { + m0 := &DescribeWorkerResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_WorkerInfo = b.WorkerInfo + return m0 +} + +// Request to pause a workflow execution. +type PauseWorkflowExecutionRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_WorkflowId string `protobuf:"bytes,2,opt,name=workflow_id,json=workflowId,proto3"` + xxx_hidden_RunId string `protobuf:"bytes,3,opt,name=run_id,json=runId,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,4,opt,name=identity,proto3"` + xxx_hidden_Reason string `protobuf:"bytes,5,opt,name=reason,proto3"` + xxx_hidden_RequestId string `protobuf:"bytes,6,opt,name=request_id,json=requestId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PauseWorkflowExecutionRequest) Reset() { + *x = PauseWorkflowExecutionRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[188] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PauseWorkflowExecutionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PauseWorkflowExecutionRequest) ProtoMessage() {} + +func (x *PauseWorkflowExecutionRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[188] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PauseWorkflowExecutionRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *PauseWorkflowExecutionRequest) GetWorkflowId() string { + if x != nil { + return x.xxx_hidden_WorkflowId + } + return "" +} + +func (x *PauseWorkflowExecutionRequest) GetRunId() string { + if x != nil { + return x.xxx_hidden_RunId + } + return "" +} + +func (x *PauseWorkflowExecutionRequest) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *PauseWorkflowExecutionRequest) GetReason() string { + if x != nil { + return x.xxx_hidden_Reason + } + return "" +} + +func (x *PauseWorkflowExecutionRequest) GetRequestId() string { + if x != nil { + return x.xxx_hidden_RequestId + } + return "" +} + +func (x *PauseWorkflowExecutionRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *PauseWorkflowExecutionRequest) SetWorkflowId(v string) { + x.xxx_hidden_WorkflowId = v +} + +func (x *PauseWorkflowExecutionRequest) SetRunId(v string) { + x.xxx_hidden_RunId = v +} + +func (x *PauseWorkflowExecutionRequest) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *PauseWorkflowExecutionRequest) SetReason(v string) { + x.xxx_hidden_Reason = v +} + +func (x *PauseWorkflowExecutionRequest) SetRequestId(v string) { + x.xxx_hidden_RequestId = v +} + +type PauseWorkflowExecutionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Namespace of the workflow to pause. + Namespace string + // ID of the workflow execution to be paused. Required. + WorkflowId string + // Run ID of the workflow execution to be paused. Optional. If not provided, the current run of the workflow will be paused. + RunId string + // The identity of the client who initiated this request. + Identity string + // Reason to pause the workflow execution. + Reason string + // A unique identifier for this pause request for idempotence. Typically UUIDv4. + RequestId string +} + +func (b0 PauseWorkflowExecutionRequest_builder) Build() *PauseWorkflowExecutionRequest { + m0 := &PauseWorkflowExecutionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_WorkflowId = b.WorkflowId + x.xxx_hidden_RunId = b.RunId + x.xxx_hidden_Identity = b.Identity + x.xxx_hidden_Reason = b.Reason + x.xxx_hidden_RequestId = b.RequestId + return m0 +} + +// Response to a successful PauseWorkflowExecution request. +type PauseWorkflowExecutionResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PauseWorkflowExecutionResponse) Reset() { + *x = PauseWorkflowExecutionResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[189] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PauseWorkflowExecutionResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PauseWorkflowExecutionResponse) ProtoMessage() {} + +func (x *PauseWorkflowExecutionResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[189] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type PauseWorkflowExecutionResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 PauseWorkflowExecutionResponse_builder) Build() *PauseWorkflowExecutionResponse { + m0 := &PauseWorkflowExecutionResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type UnpauseWorkflowExecutionRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_WorkflowId string `protobuf:"bytes,2,opt,name=workflow_id,json=workflowId,proto3"` + xxx_hidden_RunId string `protobuf:"bytes,3,opt,name=run_id,json=runId,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,4,opt,name=identity,proto3"` + xxx_hidden_Reason string `protobuf:"bytes,5,opt,name=reason,proto3"` + xxx_hidden_RequestId string `protobuf:"bytes,6,opt,name=request_id,json=requestId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UnpauseWorkflowExecutionRequest) Reset() { + *x = UnpauseWorkflowExecutionRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[190] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UnpauseWorkflowExecutionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UnpauseWorkflowExecutionRequest) ProtoMessage() {} + +func (x *UnpauseWorkflowExecutionRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[190] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UnpauseWorkflowExecutionRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *UnpauseWorkflowExecutionRequest) GetWorkflowId() string { + if x != nil { + return x.xxx_hidden_WorkflowId + } + return "" +} + +func (x *UnpauseWorkflowExecutionRequest) GetRunId() string { + if x != nil { + return x.xxx_hidden_RunId + } + return "" +} + +func (x *UnpauseWorkflowExecutionRequest) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *UnpauseWorkflowExecutionRequest) GetReason() string { + if x != nil { + return x.xxx_hidden_Reason + } + return "" +} + +func (x *UnpauseWorkflowExecutionRequest) GetRequestId() string { + if x != nil { + return x.xxx_hidden_RequestId + } + return "" +} + +func (x *UnpauseWorkflowExecutionRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *UnpauseWorkflowExecutionRequest) SetWorkflowId(v string) { + x.xxx_hidden_WorkflowId = v +} + +func (x *UnpauseWorkflowExecutionRequest) SetRunId(v string) { + x.xxx_hidden_RunId = v +} + +func (x *UnpauseWorkflowExecutionRequest) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *UnpauseWorkflowExecutionRequest) SetReason(v string) { + x.xxx_hidden_Reason = v +} + +func (x *UnpauseWorkflowExecutionRequest) SetRequestId(v string) { + x.xxx_hidden_RequestId = v +} + +type UnpauseWorkflowExecutionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Namespace of the workflow to unpause. + Namespace string + // ID of the workflow execution to be paused. Required. + WorkflowId string + // Run ID of the workflow execution to be paused. Optional. If not provided, the current run of the workflow will be paused. + RunId string + // The identity of the client who initiated this request. + Identity string + // Reason to unpause the workflow execution. + Reason string + // A unique identifier for this unpause request for idempotence. Typically UUIDv4. + RequestId string +} + +func (b0 UnpauseWorkflowExecutionRequest_builder) Build() *UnpauseWorkflowExecutionRequest { + m0 := &UnpauseWorkflowExecutionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_WorkflowId = b.WorkflowId + x.xxx_hidden_RunId = b.RunId + x.xxx_hidden_Identity = b.Identity + x.xxx_hidden_Reason = b.Reason + x.xxx_hidden_RequestId = b.RequestId + return m0 +} + +// Response to a successful UnpauseWorkflowExecution request. +type UnpauseWorkflowExecutionResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UnpauseWorkflowExecutionResponse) Reset() { + *x = UnpauseWorkflowExecutionResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[191] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UnpauseWorkflowExecutionResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UnpauseWorkflowExecutionResponse) ProtoMessage() {} + +func (x *UnpauseWorkflowExecutionResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[191] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type UnpauseWorkflowExecutionResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 UnpauseWorkflowExecutionResponse_builder) Build() *UnpauseWorkflowExecutionResponse { + m0 := &UnpauseWorkflowExecutionResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type StartActivityExecutionRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,2,opt,name=identity,proto3"` + xxx_hidden_RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3"` + xxx_hidden_ActivityId string `protobuf:"bytes,4,opt,name=activity_id,json=activityId,proto3"` + xxx_hidden_ActivityType *v13.ActivityType `protobuf:"bytes,5,opt,name=activity_type,json=activityType,proto3"` + xxx_hidden_TaskQueue *v14.TaskQueue `protobuf:"bytes,6,opt,name=task_queue,json=taskQueue,proto3"` + xxx_hidden_ScheduleToCloseTimeout *durationpb.Duration `protobuf:"bytes,7,opt,name=schedule_to_close_timeout,json=scheduleToCloseTimeout,proto3"` + xxx_hidden_ScheduleToStartTimeout *durationpb.Duration `protobuf:"bytes,8,opt,name=schedule_to_start_timeout,json=scheduleToStartTimeout,proto3"` + xxx_hidden_StartToCloseTimeout *durationpb.Duration `protobuf:"bytes,9,opt,name=start_to_close_timeout,json=startToCloseTimeout,proto3"` + xxx_hidden_HeartbeatTimeout *durationpb.Duration `protobuf:"bytes,10,opt,name=heartbeat_timeout,json=heartbeatTimeout,proto3"` + xxx_hidden_RetryPolicy *v13.RetryPolicy `protobuf:"bytes,11,opt,name=retry_policy,json=retryPolicy,proto3"` + xxx_hidden_Input *v13.Payloads `protobuf:"bytes,12,opt,name=input,proto3"` + xxx_hidden_IdReusePolicy v11.ActivityIdReusePolicy `protobuf:"varint,13,opt,name=id_reuse_policy,json=idReusePolicy,proto3,enum=temporal.api.enums.v1.ActivityIdReusePolicy"` + xxx_hidden_IdConflictPolicy v11.ActivityIdConflictPolicy `protobuf:"varint,14,opt,name=id_conflict_policy,json=idConflictPolicy,proto3,enum=temporal.api.enums.v1.ActivityIdConflictPolicy"` + xxx_hidden_SearchAttributes *v13.SearchAttributes `protobuf:"bytes,15,opt,name=search_attributes,json=searchAttributes,proto3"` + xxx_hidden_Header *v13.Header `protobuf:"bytes,16,opt,name=header,proto3"` + xxx_hidden_UserMetadata *v16.UserMetadata `protobuf:"bytes,17,opt,name=user_metadata,json=userMetadata,proto3"` + xxx_hidden_Priority *v13.Priority `protobuf:"bytes,18,opt,name=priority,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *StartActivityExecutionRequest) Reset() { + *x = StartActivityExecutionRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[192] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *StartActivityExecutionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StartActivityExecutionRequest) ProtoMessage() {} + +func (x *StartActivityExecutionRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[192] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *StartActivityExecutionRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *StartActivityExecutionRequest) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *StartActivityExecutionRequest) GetRequestId() string { + if x != nil { + return x.xxx_hidden_RequestId + } + return "" +} + +func (x *StartActivityExecutionRequest) GetActivityId() string { + if x != nil { + return x.xxx_hidden_ActivityId + } + return "" +} + +func (x *StartActivityExecutionRequest) GetActivityType() *v13.ActivityType { + if x != nil { + return x.xxx_hidden_ActivityType + } + return nil +} + +func (x *StartActivityExecutionRequest) GetTaskQueue() *v14.TaskQueue { + if x != nil { + return x.xxx_hidden_TaskQueue + } + return nil +} + +func (x *StartActivityExecutionRequest) GetScheduleToCloseTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_ScheduleToCloseTimeout + } + return nil +} + +func (x *StartActivityExecutionRequest) GetScheduleToStartTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_ScheduleToStartTimeout + } + return nil +} + +func (x *StartActivityExecutionRequest) GetStartToCloseTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_StartToCloseTimeout + } + return nil +} + +func (x *StartActivityExecutionRequest) GetHeartbeatTimeout() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_HeartbeatTimeout + } + return nil +} + +func (x *StartActivityExecutionRequest) GetRetryPolicy() *v13.RetryPolicy { + if x != nil { + return x.xxx_hidden_RetryPolicy + } + return nil +} + +func (x *StartActivityExecutionRequest) GetInput() *v13.Payloads { + if x != nil { + return x.xxx_hidden_Input + } + return nil +} + +func (x *StartActivityExecutionRequest) GetIdReusePolicy() v11.ActivityIdReusePolicy { + if x != nil { + return x.xxx_hidden_IdReusePolicy + } + return v11.ActivityIdReusePolicy(0) +} + +func (x *StartActivityExecutionRequest) GetIdConflictPolicy() v11.ActivityIdConflictPolicy { + if x != nil { + return x.xxx_hidden_IdConflictPolicy + } + return v11.ActivityIdConflictPolicy(0) +} + +func (x *StartActivityExecutionRequest) GetSearchAttributes() *v13.SearchAttributes { + if x != nil { + return x.xxx_hidden_SearchAttributes + } + return nil +} + +func (x *StartActivityExecutionRequest) GetHeader() *v13.Header { + if x != nil { + return x.xxx_hidden_Header + } + return nil +} + +func (x *StartActivityExecutionRequest) GetUserMetadata() *v16.UserMetadata { + if x != nil { + return x.xxx_hidden_UserMetadata + } + return nil +} + +func (x *StartActivityExecutionRequest) GetPriority() *v13.Priority { + if x != nil { + return x.xxx_hidden_Priority + } + return nil +} + +func (x *StartActivityExecutionRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *StartActivityExecutionRequest) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *StartActivityExecutionRequest) SetRequestId(v string) { + x.xxx_hidden_RequestId = v +} + +func (x *StartActivityExecutionRequest) SetActivityId(v string) { + x.xxx_hidden_ActivityId = v +} + +func (x *StartActivityExecutionRequest) SetActivityType(v *v13.ActivityType) { + x.xxx_hidden_ActivityType = v +} + +func (x *StartActivityExecutionRequest) SetTaskQueue(v *v14.TaskQueue) { + x.xxx_hidden_TaskQueue = v +} + +func (x *StartActivityExecutionRequest) SetScheduleToCloseTimeout(v *durationpb.Duration) { + x.xxx_hidden_ScheduleToCloseTimeout = v +} + +func (x *StartActivityExecutionRequest) SetScheduleToStartTimeout(v *durationpb.Duration) { + x.xxx_hidden_ScheduleToStartTimeout = v +} + +func (x *StartActivityExecutionRequest) SetStartToCloseTimeout(v *durationpb.Duration) { + x.xxx_hidden_StartToCloseTimeout = v +} + +func (x *StartActivityExecutionRequest) SetHeartbeatTimeout(v *durationpb.Duration) { + x.xxx_hidden_HeartbeatTimeout = v +} + +func (x *StartActivityExecutionRequest) SetRetryPolicy(v *v13.RetryPolicy) { + x.xxx_hidden_RetryPolicy = v +} + +func (x *StartActivityExecutionRequest) SetInput(v *v13.Payloads) { + x.xxx_hidden_Input = v +} + +func (x *StartActivityExecutionRequest) SetIdReusePolicy(v v11.ActivityIdReusePolicy) { + x.xxx_hidden_IdReusePolicy = v +} + +func (x *StartActivityExecutionRequest) SetIdConflictPolicy(v v11.ActivityIdConflictPolicy) { + x.xxx_hidden_IdConflictPolicy = v +} + +func (x *StartActivityExecutionRequest) SetSearchAttributes(v *v13.SearchAttributes) { + x.xxx_hidden_SearchAttributes = v +} + +func (x *StartActivityExecutionRequest) SetHeader(v *v13.Header) { + x.xxx_hidden_Header = v +} + +func (x *StartActivityExecutionRequest) SetUserMetadata(v *v16.UserMetadata) { + x.xxx_hidden_UserMetadata = v +} + +func (x *StartActivityExecutionRequest) SetPriority(v *v13.Priority) { + x.xxx_hidden_Priority = v +} + +func (x *StartActivityExecutionRequest) HasActivityType() bool { + if x == nil { + return false + } + return x.xxx_hidden_ActivityType != nil +} + +func (x *StartActivityExecutionRequest) HasTaskQueue() bool { + if x == nil { + return false + } + return x.xxx_hidden_TaskQueue != nil +} + +func (x *StartActivityExecutionRequest) HasScheduleToCloseTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_ScheduleToCloseTimeout != nil +} + +func (x *StartActivityExecutionRequest) HasScheduleToStartTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_ScheduleToStartTimeout != nil +} + +func (x *StartActivityExecutionRequest) HasStartToCloseTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_StartToCloseTimeout != nil +} + +func (x *StartActivityExecutionRequest) HasHeartbeatTimeout() bool { + if x == nil { + return false + } + return x.xxx_hidden_HeartbeatTimeout != nil +} + +func (x *StartActivityExecutionRequest) HasRetryPolicy() bool { + if x == nil { + return false + } + return x.xxx_hidden_RetryPolicy != nil +} + +func (x *StartActivityExecutionRequest) HasInput() bool { + if x == nil { + return false + } + return x.xxx_hidden_Input != nil +} + +func (x *StartActivityExecutionRequest) HasSearchAttributes() bool { + if x == nil { + return false + } + return x.xxx_hidden_SearchAttributes != nil +} + +func (x *StartActivityExecutionRequest) HasHeader() bool { + if x == nil { + return false + } + return x.xxx_hidden_Header != nil +} + +func (x *StartActivityExecutionRequest) HasUserMetadata() bool { + if x == nil { + return false + } + return x.xxx_hidden_UserMetadata != nil +} + +func (x *StartActivityExecutionRequest) HasPriority() bool { + if x == nil { + return false + } + return x.xxx_hidden_Priority != nil +} + +func (x *StartActivityExecutionRequest) ClearActivityType() { + x.xxx_hidden_ActivityType = nil +} + +func (x *StartActivityExecutionRequest) ClearTaskQueue() { + x.xxx_hidden_TaskQueue = nil +} + +func (x *StartActivityExecutionRequest) ClearScheduleToCloseTimeout() { + x.xxx_hidden_ScheduleToCloseTimeout = nil +} + +func (x *StartActivityExecutionRequest) ClearScheduleToStartTimeout() { + x.xxx_hidden_ScheduleToStartTimeout = nil +} + +func (x *StartActivityExecutionRequest) ClearStartToCloseTimeout() { + x.xxx_hidden_StartToCloseTimeout = nil +} + +func (x *StartActivityExecutionRequest) ClearHeartbeatTimeout() { + x.xxx_hidden_HeartbeatTimeout = nil +} + +func (x *StartActivityExecutionRequest) ClearRetryPolicy() { + x.xxx_hidden_RetryPolicy = nil +} + +func (x *StartActivityExecutionRequest) ClearInput() { + x.xxx_hidden_Input = nil +} + +func (x *StartActivityExecutionRequest) ClearSearchAttributes() { + x.xxx_hidden_SearchAttributes = nil +} + +func (x *StartActivityExecutionRequest) ClearHeader() { + x.xxx_hidden_Header = nil +} + +func (x *StartActivityExecutionRequest) ClearUserMetadata() { + x.xxx_hidden_UserMetadata = nil +} + +func (x *StartActivityExecutionRequest) ClearPriority() { + x.xxx_hidden_Priority = nil +} + +type StartActivityExecutionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + // The identity of the client who initiated this request + Identity string + // A unique identifier for this start request. Typically UUIDv4. + RequestId string + // Identifier for this activity. Required. This identifier should be meaningful in the user's + // own system. It must be unique among activities in the same namespace, subject to the rules + // imposed by id_reuse_policy and id_conflict_policy. + ActivityId string + // The type of the activity, a string that corresponds to a registered activity on a worker. + ActivityType *v13.ActivityType + // Task queue to schedule this activity on. + TaskQueue *v14.TaskQueue + // Indicates how long the caller is willing to wait for an activity completion. Limits how long + // retries will be attempted. Either this or `start_to_close_timeout` must be specified. + // + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + ScheduleToCloseTimeout *durationpb.Duration + // Limits time an activity task can stay in a task queue before a worker picks it up. This + // timeout is always non retryable, as all a retry would achieve is to put it back into the same + // queue. Defaults to `schedule_to_close_timeout` if not specified. + // + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + ScheduleToStartTimeout *durationpb.Duration + // Maximum time an activity is allowed to execute after being picked up by a worker. This + // timeout is always retryable. Either this or `schedule_to_close_timeout` must be + // specified. + // + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + StartToCloseTimeout *durationpb.Duration + // Maximum permitted time between successful worker heartbeats. + HeartbeatTimeout *durationpb.Duration + // The retry policy for the activity. Will never exceed `schedule_to_close_timeout`. + RetryPolicy *v13.RetryPolicy + // Serialized arguments to the activity. These are passed as arguments to the activity function. + Input *v13.Payloads + // Defines whether to allow re-using the activity id from a previously *closed* activity. + // The default policy is ACTIVITY_ID_REUSE_POLICY_ALLOW_DUPLICATE. + IdReusePolicy v11.ActivityIdReusePolicy + // Defines how to resolve an activity id conflict with a *running* activity. + // The default policy is ACTIVITY_ID_CONFLICT_POLICY_FAIL. + IdConflictPolicy v11.ActivityIdConflictPolicy + // Search attributes for indexing. + SearchAttributes *v13.SearchAttributes + // Header for context propagation and tracing purposes. + Header *v13.Header + // Metadata for use by user interfaces to display the fixed as-of-start summary and details of the activity. + UserMetadata *v16.UserMetadata + // Priority metadata. + Priority *v13.Priority +} + +func (b0 StartActivityExecutionRequest_builder) Build() *StartActivityExecutionRequest { + m0 := &StartActivityExecutionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_Identity = b.Identity + x.xxx_hidden_RequestId = b.RequestId + x.xxx_hidden_ActivityId = b.ActivityId + x.xxx_hidden_ActivityType = b.ActivityType + x.xxx_hidden_TaskQueue = b.TaskQueue + x.xxx_hidden_ScheduleToCloseTimeout = b.ScheduleToCloseTimeout + x.xxx_hidden_ScheduleToStartTimeout = b.ScheduleToStartTimeout + x.xxx_hidden_StartToCloseTimeout = b.StartToCloseTimeout + x.xxx_hidden_HeartbeatTimeout = b.HeartbeatTimeout + x.xxx_hidden_RetryPolicy = b.RetryPolicy + x.xxx_hidden_Input = b.Input + x.xxx_hidden_IdReusePolicy = b.IdReusePolicy + x.xxx_hidden_IdConflictPolicy = b.IdConflictPolicy + x.xxx_hidden_SearchAttributes = b.SearchAttributes + x.xxx_hidden_Header = b.Header + x.xxx_hidden_UserMetadata = b.UserMetadata + x.xxx_hidden_Priority = b.Priority + return m0 +} + +type StartActivityExecutionResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RunId string `protobuf:"bytes,1,opt,name=run_id,json=runId,proto3"` + xxx_hidden_Started bool `protobuf:"varint,2,opt,name=started,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *StartActivityExecutionResponse) Reset() { + *x = StartActivityExecutionResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[193] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *StartActivityExecutionResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StartActivityExecutionResponse) ProtoMessage() {} + +func (x *StartActivityExecutionResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[193] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *StartActivityExecutionResponse) GetRunId() string { + if x != nil { + return x.xxx_hidden_RunId + } + return "" +} + +func (x *StartActivityExecutionResponse) GetStarted() bool { + if x != nil { + return x.xxx_hidden_Started + } + return false +} + +func (x *StartActivityExecutionResponse) SetRunId(v string) { + x.xxx_hidden_RunId = v +} + +func (x *StartActivityExecutionResponse) SetStarted(v bool) { + x.xxx_hidden_Started = v +} + +type StartActivityExecutionResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The run ID of the activity that was started - or used (via ACTIVITY_ID_CONFLICT_POLICY_USE_EXISTING). + RunId string + // If true, a new activity was started. + Started bool +} + +func (b0 StartActivityExecutionResponse_builder) Build() *StartActivityExecutionResponse { + m0 := &StartActivityExecutionResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RunId = b.RunId + x.xxx_hidden_Started = b.Started + return m0 +} + +type DescribeActivityExecutionRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_ActivityId string `protobuf:"bytes,2,opt,name=activity_id,json=activityId,proto3"` + xxx_hidden_RunId string `protobuf:"bytes,3,opt,name=run_id,json=runId,proto3"` + xxx_hidden_IncludeInput bool `protobuf:"varint,4,opt,name=include_input,json=includeInput,proto3"` + xxx_hidden_IncludeOutcome bool `protobuf:"varint,5,opt,name=include_outcome,json=includeOutcome,proto3"` + xxx_hidden_LongPollToken []byte `protobuf:"bytes,6,opt,name=long_poll_token,json=longPollToken,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DescribeActivityExecutionRequest) Reset() { + *x = DescribeActivityExecutionRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[194] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DescribeActivityExecutionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DescribeActivityExecutionRequest) ProtoMessage() {} + +func (x *DescribeActivityExecutionRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[194] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DescribeActivityExecutionRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *DescribeActivityExecutionRequest) GetActivityId() string { + if x != nil { + return x.xxx_hidden_ActivityId + } + return "" +} + +func (x *DescribeActivityExecutionRequest) GetRunId() string { + if x != nil { + return x.xxx_hidden_RunId + } + return "" +} + +func (x *DescribeActivityExecutionRequest) GetIncludeInput() bool { + if x != nil { + return x.xxx_hidden_IncludeInput + } + return false +} + +func (x *DescribeActivityExecutionRequest) GetIncludeOutcome() bool { + if x != nil { + return x.xxx_hidden_IncludeOutcome + } + return false +} + +func (x *DescribeActivityExecutionRequest) GetLongPollToken() []byte { + if x != nil { + return x.xxx_hidden_LongPollToken + } + return nil +} + +func (x *DescribeActivityExecutionRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *DescribeActivityExecutionRequest) SetActivityId(v string) { + x.xxx_hidden_ActivityId = v +} + +func (x *DescribeActivityExecutionRequest) SetRunId(v string) { + x.xxx_hidden_RunId = v +} + +func (x *DescribeActivityExecutionRequest) SetIncludeInput(v bool) { + x.xxx_hidden_IncludeInput = v +} + +func (x *DescribeActivityExecutionRequest) SetIncludeOutcome(v bool) { + x.xxx_hidden_IncludeOutcome = v +} + +func (x *DescribeActivityExecutionRequest) SetLongPollToken(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_LongPollToken = v +} + +type DescribeActivityExecutionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + ActivityId string + // Activity run ID. If empty the request targets the latest run. + RunId string + // Include the input field in the response. + IncludeInput bool + // Include the outcome (result/failure) in the response if the activity has completed. + IncludeOutcome bool + // Token from a previous DescribeActivityExecutionResponse. If present, long-poll until activity + // state changes from the state encoded in this token. If absent, return current state immediately. + // If present, run_id must also be present. + // Note that activity state may change multiple times between requests, therefore it is not + // guaranteed that a client making a sequence of long-poll requests will see a complete + // sequence of state changes. + LongPollToken []byte +} + +func (b0 DescribeActivityExecutionRequest_builder) Build() *DescribeActivityExecutionRequest { + m0 := &DescribeActivityExecutionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_ActivityId = b.ActivityId + x.xxx_hidden_RunId = b.RunId + x.xxx_hidden_IncludeInput = b.IncludeInput + x.xxx_hidden_IncludeOutcome = b.IncludeOutcome + x.xxx_hidden_LongPollToken = b.LongPollToken + return m0 +} + +type DescribeActivityExecutionResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RunId string `protobuf:"bytes,1,opt,name=run_id,json=runId,proto3"` + xxx_hidden_Info *v120.ActivityExecutionInfo `protobuf:"bytes,2,opt,name=info,proto3"` + xxx_hidden_Input *v13.Payloads `protobuf:"bytes,3,opt,name=input,proto3"` + xxx_hidden_Outcome *v120.ActivityExecutionOutcome `protobuf:"bytes,4,opt,name=outcome,proto3"` + xxx_hidden_LongPollToken []byte `protobuf:"bytes,5,opt,name=long_poll_token,json=longPollToken,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DescribeActivityExecutionResponse) Reset() { + *x = DescribeActivityExecutionResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[195] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DescribeActivityExecutionResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DescribeActivityExecutionResponse) ProtoMessage() {} + +func (x *DescribeActivityExecutionResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[195] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DescribeActivityExecutionResponse) GetRunId() string { + if x != nil { + return x.xxx_hidden_RunId + } + return "" +} + +func (x *DescribeActivityExecutionResponse) GetInfo() *v120.ActivityExecutionInfo { + if x != nil { + return x.xxx_hidden_Info + } + return nil +} + +func (x *DescribeActivityExecutionResponse) GetInput() *v13.Payloads { + if x != nil { + return x.xxx_hidden_Input + } + return nil +} + +func (x *DescribeActivityExecutionResponse) GetOutcome() *v120.ActivityExecutionOutcome { + if x != nil { + return x.xxx_hidden_Outcome + } + return nil +} + +func (x *DescribeActivityExecutionResponse) GetLongPollToken() []byte { + if x != nil { + return x.xxx_hidden_LongPollToken + } + return nil +} + +func (x *DescribeActivityExecutionResponse) SetRunId(v string) { + x.xxx_hidden_RunId = v +} + +func (x *DescribeActivityExecutionResponse) SetInfo(v *v120.ActivityExecutionInfo) { + x.xxx_hidden_Info = v +} + +func (x *DescribeActivityExecutionResponse) SetInput(v *v13.Payloads) { + x.xxx_hidden_Input = v +} + +func (x *DescribeActivityExecutionResponse) SetOutcome(v *v120.ActivityExecutionOutcome) { + x.xxx_hidden_Outcome = v +} + +func (x *DescribeActivityExecutionResponse) SetLongPollToken(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_LongPollToken = v +} + +func (x *DescribeActivityExecutionResponse) HasInfo() bool { + if x == nil { + return false + } + return x.xxx_hidden_Info != nil +} + +func (x *DescribeActivityExecutionResponse) HasInput() bool { + if x == nil { + return false + } + return x.xxx_hidden_Input != nil +} + +func (x *DescribeActivityExecutionResponse) HasOutcome() bool { + if x == nil { + return false + } + return x.xxx_hidden_Outcome != nil +} + +func (x *DescribeActivityExecutionResponse) ClearInfo() { + x.xxx_hidden_Info = nil +} + +func (x *DescribeActivityExecutionResponse) ClearInput() { + x.xxx_hidden_Input = nil +} + +func (x *DescribeActivityExecutionResponse) ClearOutcome() { + x.xxx_hidden_Outcome = nil +} + +type DescribeActivityExecutionResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The run ID of the activity, useful when run_id was not specified in the request. + RunId string + // Information about the activity execution. + Info *v120.ActivityExecutionInfo + // Serialized activity input, passed as arguments to the activity function. + // Only set if include_input was true in the request. + Input *v13.Payloads + // Only set if the activity is completed and include_outcome was true in the request. + Outcome *v120.ActivityExecutionOutcome + // Token for follow-on long-poll requests. Absent only if the activity is complete. + LongPollToken []byte +} + +func (b0 DescribeActivityExecutionResponse_builder) Build() *DescribeActivityExecutionResponse { + m0 := &DescribeActivityExecutionResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RunId = b.RunId + x.xxx_hidden_Info = b.Info + x.xxx_hidden_Input = b.Input + x.xxx_hidden_Outcome = b.Outcome + x.xxx_hidden_LongPollToken = b.LongPollToken + return m0 +} + +type PollActivityExecutionRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_ActivityId string `protobuf:"bytes,2,opt,name=activity_id,json=activityId,proto3"` + xxx_hidden_RunId string `protobuf:"bytes,3,opt,name=run_id,json=runId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PollActivityExecutionRequest) Reset() { + *x = PollActivityExecutionRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[196] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PollActivityExecutionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PollActivityExecutionRequest) ProtoMessage() {} + +func (x *PollActivityExecutionRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[196] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PollActivityExecutionRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *PollActivityExecutionRequest) GetActivityId() string { + if x != nil { + return x.xxx_hidden_ActivityId + } + return "" +} + +func (x *PollActivityExecutionRequest) GetRunId() string { + if x != nil { + return x.xxx_hidden_RunId + } + return "" +} + +func (x *PollActivityExecutionRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *PollActivityExecutionRequest) SetActivityId(v string) { + x.xxx_hidden_ActivityId = v +} + +func (x *PollActivityExecutionRequest) SetRunId(v string) { + x.xxx_hidden_RunId = v +} + +type PollActivityExecutionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + ActivityId string + // Activity run ID. If empty the request targets the latest run. + RunId string +} + +func (b0 PollActivityExecutionRequest_builder) Build() *PollActivityExecutionRequest { + m0 := &PollActivityExecutionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_ActivityId = b.ActivityId + x.xxx_hidden_RunId = b.RunId + return m0 +} + +type PollActivityExecutionResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RunId string `protobuf:"bytes,1,opt,name=run_id,json=runId,proto3"` + xxx_hidden_Outcome *v120.ActivityExecutionOutcome `protobuf:"bytes,2,opt,name=outcome,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PollActivityExecutionResponse) Reset() { + *x = PollActivityExecutionResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[197] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PollActivityExecutionResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PollActivityExecutionResponse) ProtoMessage() {} + +func (x *PollActivityExecutionResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[197] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PollActivityExecutionResponse) GetRunId() string { + if x != nil { + return x.xxx_hidden_RunId + } + return "" +} + +func (x *PollActivityExecutionResponse) GetOutcome() *v120.ActivityExecutionOutcome { + if x != nil { + return x.xxx_hidden_Outcome + } + return nil +} + +func (x *PollActivityExecutionResponse) SetRunId(v string) { + x.xxx_hidden_RunId = v +} + +func (x *PollActivityExecutionResponse) SetOutcome(v *v120.ActivityExecutionOutcome) { + x.xxx_hidden_Outcome = v +} + +func (x *PollActivityExecutionResponse) HasOutcome() bool { + if x == nil { + return false + } + return x.xxx_hidden_Outcome != nil +} + +func (x *PollActivityExecutionResponse) ClearOutcome() { + x.xxx_hidden_Outcome = nil +} + +type PollActivityExecutionResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The run ID of the activity, useful when run_id was not specified in the request. + RunId string + Outcome *v120.ActivityExecutionOutcome +} + +func (b0 PollActivityExecutionResponse_builder) Build() *PollActivityExecutionResponse { + m0 := &PollActivityExecutionResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RunId = b.RunId + x.xxx_hidden_Outcome = b.Outcome + return m0 +} + +type ListActivityExecutionsRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3"` + xxx_hidden_NextPageToken []byte `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3"` + xxx_hidden_Query string `protobuf:"bytes,4,opt,name=query,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListActivityExecutionsRequest) Reset() { + *x = ListActivityExecutionsRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[198] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListActivityExecutionsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListActivityExecutionsRequest) ProtoMessage() {} + +func (x *ListActivityExecutionsRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[198] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListActivityExecutionsRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *ListActivityExecutionsRequest) GetPageSize() int32 { + if x != nil { + return x.xxx_hidden_PageSize + } + return 0 +} + +func (x *ListActivityExecutionsRequest) GetNextPageToken() []byte { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return nil +} + +func (x *ListActivityExecutionsRequest) GetQuery() string { + if x != nil { + return x.xxx_hidden_Query + } + return "" +} + +func (x *ListActivityExecutionsRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *ListActivityExecutionsRequest) SetPageSize(v int32) { + x.xxx_hidden_PageSize = v +} + +func (x *ListActivityExecutionsRequest) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_NextPageToken = v +} + +func (x *ListActivityExecutionsRequest) SetQuery(v string) { + x.xxx_hidden_Query = v +} + +type ListActivityExecutionsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + // Max number of executions to return per page. + PageSize int32 + // Token returned in ListActivityExecutionsResponse. + NextPageToken []byte + // Visibility query, see https://docs.temporal.io/list-filter for the syntax. + Query string +} + +func (b0 ListActivityExecutionsRequest_builder) Build() *ListActivityExecutionsRequest { + m0 := &ListActivityExecutionsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_PageSize = b.PageSize + x.xxx_hidden_NextPageToken = b.NextPageToken + x.xxx_hidden_Query = b.Query + return m0 +} + +type ListActivityExecutionsResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Executions *[]*v120.ActivityExecutionListInfo `protobuf:"bytes,1,rep,name=executions,proto3"` + xxx_hidden_NextPageToken []byte `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListActivityExecutionsResponse) Reset() { + *x = ListActivityExecutionsResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[199] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListActivityExecutionsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListActivityExecutionsResponse) ProtoMessage() {} + +func (x *ListActivityExecutionsResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[199] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListActivityExecutionsResponse) GetExecutions() []*v120.ActivityExecutionListInfo { + if x != nil { + if x.xxx_hidden_Executions != nil { + return *x.xxx_hidden_Executions + } + } + return nil +} + +func (x *ListActivityExecutionsResponse) GetNextPageToken() []byte { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return nil +} + +func (x *ListActivityExecutionsResponse) SetExecutions(v []*v120.ActivityExecutionListInfo) { + x.xxx_hidden_Executions = &v +} + +func (x *ListActivityExecutionsResponse) SetNextPageToken(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_NextPageToken = v +} + +type ListActivityExecutionsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Executions []*v120.ActivityExecutionListInfo + // Token to use to fetch the next page. If empty, there is no next page. + NextPageToken []byte +} + +func (b0 ListActivityExecutionsResponse_builder) Build() *ListActivityExecutionsResponse { + m0 := &ListActivityExecutionsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Executions = &b.Executions + x.xxx_hidden_NextPageToken = b.NextPageToken + return m0 +} + +type CountActivityExecutionsRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_Query string `protobuf:"bytes,2,opt,name=query,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CountActivityExecutionsRequest) Reset() { + *x = CountActivityExecutionsRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[200] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CountActivityExecutionsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CountActivityExecutionsRequest) ProtoMessage() {} + +func (x *CountActivityExecutionsRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[200] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *CountActivityExecutionsRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *CountActivityExecutionsRequest) GetQuery() string { + if x != nil { + return x.xxx_hidden_Query + } + return "" +} + +func (x *CountActivityExecutionsRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *CountActivityExecutionsRequest) SetQuery(v string) { + x.xxx_hidden_Query = v +} + +type CountActivityExecutionsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + // Visibility query, see https://docs.temporal.io/list-filter for the syntax. + Query string +} + +func (b0 CountActivityExecutionsRequest_builder) Build() *CountActivityExecutionsRequest { + m0 := &CountActivityExecutionsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_Query = b.Query + return m0 +} + +type CountActivityExecutionsResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Count int64 `protobuf:"varint,1,opt,name=count,proto3"` + xxx_hidden_Groups *[]*CountActivityExecutionsResponse_AggregationGroup `protobuf:"bytes,2,rep,name=groups,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CountActivityExecutionsResponse) Reset() { + *x = CountActivityExecutionsResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[201] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CountActivityExecutionsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CountActivityExecutionsResponse) ProtoMessage() {} + +func (x *CountActivityExecutionsResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[201] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *CountActivityExecutionsResponse) GetCount() int64 { + if x != nil { + return x.xxx_hidden_Count + } + return 0 +} + +func (x *CountActivityExecutionsResponse) GetGroups() []*CountActivityExecutionsResponse_AggregationGroup { + if x != nil { + if x.xxx_hidden_Groups != nil { + return *x.xxx_hidden_Groups + } + } + return nil +} + +func (x *CountActivityExecutionsResponse) SetCount(v int64) { + x.xxx_hidden_Count = v +} + +func (x *CountActivityExecutionsResponse) SetGroups(v []*CountActivityExecutionsResponse_AggregationGroup) { + x.xxx_hidden_Groups = &v +} + +type CountActivityExecutionsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // If `query` is not grouping by any field, the count is an approximate number + // of activities that match the query. + // If `query` is grouping by a field, the count is simply the sum of the counts + // of the groups returned in the response. This number can be smaller than the + // total number of activities matching the query. + Count int64 + // Contains the groups if the request is grouping by a field. + // The list might not be complete, and the counts of each group is approximate. + Groups []*CountActivityExecutionsResponse_AggregationGroup +} + +func (b0 CountActivityExecutionsResponse_builder) Build() *CountActivityExecutionsResponse { + m0 := &CountActivityExecutionsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Count = b.Count + x.xxx_hidden_Groups = &b.Groups + return m0 +} + +type RequestCancelActivityExecutionRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_ActivityId string `protobuf:"bytes,2,opt,name=activity_id,json=activityId,proto3"` + xxx_hidden_RunId string `protobuf:"bytes,3,opt,name=run_id,json=runId,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,4,opt,name=identity,proto3"` + xxx_hidden_RequestId string `protobuf:"bytes,5,opt,name=request_id,json=requestId,proto3"` + xxx_hidden_Reason string `protobuf:"bytes,6,opt,name=reason,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RequestCancelActivityExecutionRequest) Reset() { + *x = RequestCancelActivityExecutionRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[202] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RequestCancelActivityExecutionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RequestCancelActivityExecutionRequest) ProtoMessage() {} + +func (x *RequestCancelActivityExecutionRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[202] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *RequestCancelActivityExecutionRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *RequestCancelActivityExecutionRequest) GetActivityId() string { + if x != nil { + return x.xxx_hidden_ActivityId + } + return "" +} + +func (x *RequestCancelActivityExecutionRequest) GetRunId() string { + if x != nil { + return x.xxx_hidden_RunId + } + return "" +} + +func (x *RequestCancelActivityExecutionRequest) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *RequestCancelActivityExecutionRequest) GetRequestId() string { + if x != nil { + return x.xxx_hidden_RequestId + } + return "" +} + +func (x *RequestCancelActivityExecutionRequest) GetReason() string { + if x != nil { + return x.xxx_hidden_Reason + } + return "" +} + +func (x *RequestCancelActivityExecutionRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *RequestCancelActivityExecutionRequest) SetActivityId(v string) { + x.xxx_hidden_ActivityId = v +} + +func (x *RequestCancelActivityExecutionRequest) SetRunId(v string) { + x.xxx_hidden_RunId = v +} + +func (x *RequestCancelActivityExecutionRequest) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *RequestCancelActivityExecutionRequest) SetRequestId(v string) { + x.xxx_hidden_RequestId = v +} + +func (x *RequestCancelActivityExecutionRequest) SetReason(v string) { + x.xxx_hidden_Reason = v +} + +type RequestCancelActivityExecutionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + ActivityId string + // Activity run ID, targets the latest run if run_id is empty. + RunId string + // The identity of the worker/client. + Identity string + // Used to de-dupe cancellation requests. + RequestId string + // Reason for requesting the cancellation, recorded and available via the PollActivityExecution API. + // Not propagated to a worker if an activity attempt is currently running. + Reason string +} + +func (b0 RequestCancelActivityExecutionRequest_builder) Build() *RequestCancelActivityExecutionRequest { + m0 := &RequestCancelActivityExecutionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_ActivityId = b.ActivityId + x.xxx_hidden_RunId = b.RunId + x.xxx_hidden_Identity = b.Identity + x.xxx_hidden_RequestId = b.RequestId + x.xxx_hidden_Reason = b.Reason + return m0 +} + +type RequestCancelActivityExecutionResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RequestCancelActivityExecutionResponse) Reset() { + *x = RequestCancelActivityExecutionResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[203] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RequestCancelActivityExecutionResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RequestCancelActivityExecutionResponse) ProtoMessage() {} + +func (x *RequestCancelActivityExecutionResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[203] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type RequestCancelActivityExecutionResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 RequestCancelActivityExecutionResponse_builder) Build() *RequestCancelActivityExecutionResponse { + m0 := &RequestCancelActivityExecutionResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type TerminateActivityExecutionRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_ActivityId string `protobuf:"bytes,2,opt,name=activity_id,json=activityId,proto3"` + xxx_hidden_RunId string `protobuf:"bytes,3,opt,name=run_id,json=runId,proto3"` + xxx_hidden_Identity string `protobuf:"bytes,4,opt,name=identity,proto3"` + xxx_hidden_RequestId string `protobuf:"bytes,5,opt,name=request_id,json=requestId,proto3"` + xxx_hidden_Reason string `protobuf:"bytes,6,opt,name=reason,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TerminateActivityExecutionRequest) Reset() { + *x = TerminateActivityExecutionRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[204] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TerminateActivityExecutionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TerminateActivityExecutionRequest) ProtoMessage() {} + +func (x *TerminateActivityExecutionRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[204] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *TerminateActivityExecutionRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *TerminateActivityExecutionRequest) GetActivityId() string { + if x != nil { + return x.xxx_hidden_ActivityId + } + return "" +} + +func (x *TerminateActivityExecutionRequest) GetRunId() string { + if x != nil { + return x.xxx_hidden_RunId + } + return "" +} + +func (x *TerminateActivityExecutionRequest) GetIdentity() string { + if x != nil { + return x.xxx_hidden_Identity + } + return "" +} + +func (x *TerminateActivityExecutionRequest) GetRequestId() string { + if x != nil { + return x.xxx_hidden_RequestId + } + return "" +} + +func (x *TerminateActivityExecutionRequest) GetReason() string { + if x != nil { + return x.xxx_hidden_Reason + } + return "" +} + +func (x *TerminateActivityExecutionRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *TerminateActivityExecutionRequest) SetActivityId(v string) { + x.xxx_hidden_ActivityId = v +} + +func (x *TerminateActivityExecutionRequest) SetRunId(v string) { + x.xxx_hidden_RunId = v +} + +func (x *TerminateActivityExecutionRequest) SetIdentity(v string) { + x.xxx_hidden_Identity = v +} + +func (x *TerminateActivityExecutionRequest) SetRequestId(v string) { + x.xxx_hidden_RequestId = v +} + +func (x *TerminateActivityExecutionRequest) SetReason(v string) { + x.xxx_hidden_Reason = v +} + +type TerminateActivityExecutionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + ActivityId string + // Activity run ID, targets the latest run if run_id is empty. + RunId string + // The identity of the worker/client. + Identity string + // Used to de-dupe termination requests. + RequestId string + // Reason for requesting the termination, recorded in in the activity's result failure outcome. + Reason string +} + +func (b0 TerminateActivityExecutionRequest_builder) Build() *TerminateActivityExecutionRequest { + m0 := &TerminateActivityExecutionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_ActivityId = b.ActivityId + x.xxx_hidden_RunId = b.RunId + x.xxx_hidden_Identity = b.Identity + x.xxx_hidden_RequestId = b.RequestId + x.xxx_hidden_Reason = b.Reason + return m0 +} + +type TerminateActivityExecutionResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TerminateActivityExecutionResponse) Reset() { + *x = TerminateActivityExecutionResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[205] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TerminateActivityExecutionResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TerminateActivityExecutionResponse) ProtoMessage() {} + +func (x *TerminateActivityExecutionResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[205] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type TerminateActivityExecutionResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 TerminateActivityExecutionResponse_builder) Build() *TerminateActivityExecutionResponse { + m0 := &TerminateActivityExecutionResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type DeleteActivityExecutionRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3"` + xxx_hidden_ActivityId string `protobuf:"bytes,2,opt,name=activity_id,json=activityId,proto3"` + xxx_hidden_RunId string `protobuf:"bytes,3,opt,name=run_id,json=runId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteActivityExecutionRequest) Reset() { + *x = DeleteActivityExecutionRequest{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[206] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteActivityExecutionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteActivityExecutionRequest) ProtoMessage() {} + +func (x *DeleteActivityExecutionRequest) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[206] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DeleteActivityExecutionRequest) GetNamespace() string { + if x != nil { + return x.xxx_hidden_Namespace + } + return "" +} + +func (x *DeleteActivityExecutionRequest) GetActivityId() string { + if x != nil { + return x.xxx_hidden_ActivityId + } + return "" +} + +func (x *DeleteActivityExecutionRequest) GetRunId() string { + if x != nil { + return x.xxx_hidden_RunId + } + return "" +} + +func (x *DeleteActivityExecutionRequest) SetNamespace(v string) { + x.xxx_hidden_Namespace = v +} + +func (x *DeleteActivityExecutionRequest) SetActivityId(v string) { + x.xxx_hidden_ActivityId = v +} + +func (x *DeleteActivityExecutionRequest) SetRunId(v string) { + x.xxx_hidden_RunId = v +} + +type DeleteActivityExecutionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Namespace string + ActivityId string + // Activity run ID, targets the latest run if run_id is empty. + RunId string +} + +func (b0 DeleteActivityExecutionRequest_builder) Build() *DeleteActivityExecutionRequest { + m0 := &DeleteActivityExecutionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Namespace = b.Namespace + x.xxx_hidden_ActivityId = b.ActivityId + x.xxx_hidden_RunId = b.RunId + return m0 +} + +type DeleteActivityExecutionResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteActivityExecutionResponse) Reset() { + *x = DeleteActivityExecutionResponse{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[207] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteActivityExecutionResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteActivityExecutionResponse) ProtoMessage() {} + +func (x *DeleteActivityExecutionResponse) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[207] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type DeleteActivityExecutionResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 DeleteActivityExecutionResponse_builder) Build() *DeleteActivityExecutionResponse { + m0 := &DeleteActivityExecutionResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +// SDK capability details. +type RespondWorkflowTaskCompletedRequest_Capabilities struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_DiscardSpeculativeWorkflowTaskWithEvents bool `protobuf:"varint,1,opt,name=discard_speculative_workflow_task_with_events,json=discardSpeculativeWorkflowTaskWithEvents,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RespondWorkflowTaskCompletedRequest_Capabilities) Reset() { + *x = RespondWorkflowTaskCompletedRequest_Capabilities{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[211] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RespondWorkflowTaskCompletedRequest_Capabilities) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RespondWorkflowTaskCompletedRequest_Capabilities) ProtoMessage() {} + +func (x *RespondWorkflowTaskCompletedRequest_Capabilities) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[211] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *RespondWorkflowTaskCompletedRequest_Capabilities) GetDiscardSpeculativeWorkflowTaskWithEvents() bool { + if x != nil { + return x.xxx_hidden_DiscardSpeculativeWorkflowTaskWithEvents + } + return false +} + +func (x *RespondWorkflowTaskCompletedRequest_Capabilities) SetDiscardSpeculativeWorkflowTaskWithEvents(v bool) { + x.xxx_hidden_DiscardSpeculativeWorkflowTaskWithEvents = v +} + +type RespondWorkflowTaskCompletedRequest_Capabilities_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // True if the SDK can handle speculative workflow task with command events. If true, the + // server may choose, at its discretion, to discard a speculative workflow task even if that + // speculative task included command events the SDK had not previously processed. + // + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "with" used to describe the workflow task. --) + DiscardSpeculativeWorkflowTaskWithEvents bool +} + +func (b0 RespondWorkflowTaskCompletedRequest_Capabilities_builder) Build() *RespondWorkflowTaskCompletedRequest_Capabilities { + m0 := &RespondWorkflowTaskCompletedRequest_Capabilities{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_DiscardSpeculativeWorkflowTaskWithEvents = b.DiscardSpeculativeWorkflowTaskWithEvents + return m0 +} + +type CountWorkflowExecutionsResponse_AggregationGroup struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_GroupValues *[]*v13.Payload `protobuf:"bytes,1,rep,name=group_values,json=groupValues,proto3"` + xxx_hidden_Count int64 `protobuf:"varint,2,opt,name=count,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CountWorkflowExecutionsResponse_AggregationGroup) Reset() { + *x = CountWorkflowExecutionsResponse_AggregationGroup{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[212] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CountWorkflowExecutionsResponse_AggregationGroup) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CountWorkflowExecutionsResponse_AggregationGroup) ProtoMessage() {} + +func (x *CountWorkflowExecutionsResponse_AggregationGroup) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[212] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *CountWorkflowExecutionsResponse_AggregationGroup) GetGroupValues() []*v13.Payload { + if x != nil { + if x.xxx_hidden_GroupValues != nil { + return *x.xxx_hidden_GroupValues + } + } + return nil +} + +func (x *CountWorkflowExecutionsResponse_AggregationGroup) GetCount() int64 { + if x != nil { + return x.xxx_hidden_Count + } + return 0 +} + +func (x *CountWorkflowExecutionsResponse_AggregationGroup) SetGroupValues(v []*v13.Payload) { + x.xxx_hidden_GroupValues = &v +} + +func (x *CountWorkflowExecutionsResponse_AggregationGroup) SetCount(v int64) { + x.xxx_hidden_Count = v +} + +type CountWorkflowExecutionsResponse_AggregationGroup_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + GroupValues []*v13.Payload + Count int64 +} + +func (b0 CountWorkflowExecutionsResponse_AggregationGroup_builder) Build() *CountWorkflowExecutionsResponse_AggregationGroup { + m0 := &CountWorkflowExecutionsResponse_AggregationGroup{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_GroupValues = &b.GroupValues + x.xxx_hidden_Count = b.Count + return m0 +} + +type DescribeTaskQueueResponse_EffectiveRateLimit struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RequestsPerSecond float32 `protobuf:"fixed32,1,opt,name=requests_per_second,json=requestsPerSecond,proto3"` + xxx_hidden_RateLimitSource v11.RateLimitSource `protobuf:"varint,2,opt,name=rate_limit_source,json=rateLimitSource,proto3,enum=temporal.api.enums.v1.RateLimitSource"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DescribeTaskQueueResponse_EffectiveRateLimit) Reset() { + *x = DescribeTaskQueueResponse_EffectiveRateLimit{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[215] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DescribeTaskQueueResponse_EffectiveRateLimit) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DescribeTaskQueueResponse_EffectiveRateLimit) ProtoMessage() {} + +func (x *DescribeTaskQueueResponse_EffectiveRateLimit) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[215] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DescribeTaskQueueResponse_EffectiveRateLimit) GetRequestsPerSecond() float32 { + if x != nil { + return x.xxx_hidden_RequestsPerSecond + } + return 0 +} + +func (x *DescribeTaskQueueResponse_EffectiveRateLimit) GetRateLimitSource() v11.RateLimitSource { + if x != nil { + return x.xxx_hidden_RateLimitSource + } + return v11.RateLimitSource(0) +} + +func (x *DescribeTaskQueueResponse_EffectiveRateLimit) SetRequestsPerSecond(v float32) { + x.xxx_hidden_RequestsPerSecond = v +} + +func (x *DescribeTaskQueueResponse_EffectiveRateLimit) SetRateLimitSource(v v11.RateLimitSource) { + x.xxx_hidden_RateLimitSource = v +} + +type DescribeTaskQueueResponse_EffectiveRateLimit_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The effective rate limit for the task queue. + RequestsPerSecond float32 + // Source of the RateLimit Configuration,which can be one of the following values: + // - SOURCE_API: The rate limit that is set via the TaskQueueConfig api. + // - SOURCE_WORKER: The rate limit is the value set using the workerOptions in TaskQueueActivitiesPerSecond. + // - SOURCE_SYSTEM: The rate limit is the default value set by the system + RateLimitSource v11.RateLimitSource +} + +func (b0 DescribeTaskQueueResponse_EffectiveRateLimit_builder) Build() *DescribeTaskQueueResponse_EffectiveRateLimit { + m0 := &DescribeTaskQueueResponse_EffectiveRateLimit{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RequestsPerSecond = b.RequestsPerSecond + x.xxx_hidden_RateLimitSource = b.RateLimitSource + return m0 +} + +// System capability details. +type GetSystemInfoResponse_Capabilities struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_SignalAndQueryHeader bool `protobuf:"varint,1,opt,name=signal_and_query_header,json=signalAndQueryHeader,proto3"` + xxx_hidden_InternalErrorDifferentiation bool `protobuf:"varint,2,opt,name=internal_error_differentiation,json=internalErrorDifferentiation,proto3"` + xxx_hidden_ActivityFailureIncludeHeartbeat bool `protobuf:"varint,3,opt,name=activity_failure_include_heartbeat,json=activityFailureIncludeHeartbeat,proto3"` + xxx_hidden_SupportsSchedules bool `protobuf:"varint,4,opt,name=supports_schedules,json=supportsSchedules,proto3"` + xxx_hidden_EncodedFailureAttributes bool `protobuf:"varint,5,opt,name=encoded_failure_attributes,json=encodedFailureAttributes,proto3"` + xxx_hidden_BuildIdBasedVersioning bool `protobuf:"varint,6,opt,name=build_id_based_versioning,json=buildIdBasedVersioning,proto3"` + xxx_hidden_UpsertMemo bool `protobuf:"varint,7,opt,name=upsert_memo,json=upsertMemo,proto3"` + xxx_hidden_EagerWorkflowStart bool `protobuf:"varint,8,opt,name=eager_workflow_start,json=eagerWorkflowStart,proto3"` + xxx_hidden_SdkMetadata bool `protobuf:"varint,9,opt,name=sdk_metadata,json=sdkMetadata,proto3"` + xxx_hidden_CountGroupByExecutionStatus bool `protobuf:"varint,10,opt,name=count_group_by_execution_status,json=countGroupByExecutionStatus,proto3"` + xxx_hidden_Nexus bool `protobuf:"varint,11,opt,name=nexus,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetSystemInfoResponse_Capabilities) Reset() { + *x = GetSystemInfoResponse_Capabilities{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[218] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetSystemInfoResponse_Capabilities) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetSystemInfoResponse_Capabilities) ProtoMessage() {} + +func (x *GetSystemInfoResponse_Capabilities) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[218] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetSystemInfoResponse_Capabilities) GetSignalAndQueryHeader() bool { + if x != nil { + return x.xxx_hidden_SignalAndQueryHeader + } + return false +} + +func (x *GetSystemInfoResponse_Capabilities) GetInternalErrorDifferentiation() bool { + if x != nil { + return x.xxx_hidden_InternalErrorDifferentiation + } + return false +} + +func (x *GetSystemInfoResponse_Capabilities) GetActivityFailureIncludeHeartbeat() bool { + if x != nil { + return x.xxx_hidden_ActivityFailureIncludeHeartbeat + } + return false +} + +func (x *GetSystemInfoResponse_Capabilities) GetSupportsSchedules() bool { + if x != nil { + return x.xxx_hidden_SupportsSchedules + } + return false +} + +func (x *GetSystemInfoResponse_Capabilities) GetEncodedFailureAttributes() bool { + if x != nil { + return x.xxx_hidden_EncodedFailureAttributes + } + return false +} + +func (x *GetSystemInfoResponse_Capabilities) GetBuildIdBasedVersioning() bool { + if x != nil { + return x.xxx_hidden_BuildIdBasedVersioning + } + return false +} + +func (x *GetSystemInfoResponse_Capabilities) GetUpsertMemo() bool { + if x != nil { + return x.xxx_hidden_UpsertMemo + } + return false +} + +func (x *GetSystemInfoResponse_Capabilities) GetEagerWorkflowStart() bool { + if x != nil { + return x.xxx_hidden_EagerWorkflowStart + } + return false +} + +func (x *GetSystemInfoResponse_Capabilities) GetSdkMetadata() bool { + if x != nil { + return x.xxx_hidden_SdkMetadata + } + return false +} + +func (x *GetSystemInfoResponse_Capabilities) GetCountGroupByExecutionStatus() bool { + if x != nil { + return x.xxx_hidden_CountGroupByExecutionStatus + } + return false +} + +func (x *GetSystemInfoResponse_Capabilities) GetNexus() bool { + if x != nil { + return x.xxx_hidden_Nexus + } + return false +} + +func (x *GetSystemInfoResponse_Capabilities) SetSignalAndQueryHeader(v bool) { + x.xxx_hidden_SignalAndQueryHeader = v +} + +func (x *GetSystemInfoResponse_Capabilities) SetInternalErrorDifferentiation(v bool) { + x.xxx_hidden_InternalErrorDifferentiation = v +} + +func (x *GetSystemInfoResponse_Capabilities) SetActivityFailureIncludeHeartbeat(v bool) { + x.xxx_hidden_ActivityFailureIncludeHeartbeat = v +} + +func (x *GetSystemInfoResponse_Capabilities) SetSupportsSchedules(v bool) { + x.xxx_hidden_SupportsSchedules = v +} + +func (x *GetSystemInfoResponse_Capabilities) SetEncodedFailureAttributes(v bool) { + x.xxx_hidden_EncodedFailureAttributes = v +} + +func (x *GetSystemInfoResponse_Capabilities) SetBuildIdBasedVersioning(v bool) { + x.xxx_hidden_BuildIdBasedVersioning = v +} + +func (x *GetSystemInfoResponse_Capabilities) SetUpsertMemo(v bool) { + x.xxx_hidden_UpsertMemo = v +} + +func (x *GetSystemInfoResponse_Capabilities) SetEagerWorkflowStart(v bool) { + x.xxx_hidden_EagerWorkflowStart = v +} + +func (x *GetSystemInfoResponse_Capabilities) SetSdkMetadata(v bool) { + x.xxx_hidden_SdkMetadata = v +} + +func (x *GetSystemInfoResponse_Capabilities) SetCountGroupByExecutionStatus(v bool) { + x.xxx_hidden_CountGroupByExecutionStatus = v +} + +func (x *GetSystemInfoResponse_Capabilities) SetNexus(v bool) { + x.xxx_hidden_Nexus = v +} + +type GetSystemInfoResponse_Capabilities_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // True if signal and query headers are supported. + SignalAndQueryHeader bool + // True if internal errors are differentiated from other types of errors for purposes of + // retrying non-internal errors. + // + // When unset/false, clients retry all failures. When true, clients should only retry + // non-internal errors. + InternalErrorDifferentiation bool + // True if RespondActivityTaskFailed API supports including heartbeat details + ActivityFailureIncludeHeartbeat bool + // Supports scheduled workflow features. + SupportsSchedules bool + // True if server uses protos that include temporal.api.failure.v1.Failure.encoded_attributes + EncodedFailureAttributes bool + // True if server supports dispatching Workflow and Activity tasks based on a worker's build_id + // (see: + // https://github.com/temporalio/proposals/blob/a123af3b559f43db16ea6dd31870bfb754c4dc5e/versioning/worker-versions.md) + BuildIdBasedVersioning bool + // True if server supports upserting workflow memo + UpsertMemo bool + // True if server supports eager workflow task dispatching for the StartWorkflowExecution API + EagerWorkflowStart bool + // True if the server knows about the sdk metadata field on WFT completions and will record + // it in history + SdkMetadata bool + // True if the server supports count group by execution status + // (-- api-linter: core::0140::prepositions=disabled --) + CountGroupByExecutionStatus bool + // True if the server supports Nexus operations. + // This flag is dependent both on server version and for Nexus to be enabled via server configuration. + Nexus bool +} + +func (b0 GetSystemInfoResponse_Capabilities_builder) Build() *GetSystemInfoResponse_Capabilities { + m0 := &GetSystemInfoResponse_Capabilities{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_SignalAndQueryHeader = b.SignalAndQueryHeader + x.xxx_hidden_InternalErrorDifferentiation = b.InternalErrorDifferentiation + x.xxx_hidden_ActivityFailureIncludeHeartbeat = b.ActivityFailureIncludeHeartbeat + x.xxx_hidden_SupportsSchedules = b.SupportsSchedules + x.xxx_hidden_EncodedFailureAttributes = b.EncodedFailureAttributes + x.xxx_hidden_BuildIdBasedVersioning = b.BuildIdBasedVersioning + x.xxx_hidden_UpsertMemo = b.UpsertMemo + x.xxx_hidden_EagerWorkflowStart = b.EagerWorkflowStart + x.xxx_hidden_SdkMetadata = b.SdkMetadata + x.xxx_hidden_CountGroupByExecutionStatus = b.CountGroupByExecutionStatus + x.xxx_hidden_Nexus = b.Nexus + return m0 +} + +type UpdateWorkerBuildIdCompatibilityRequest_AddNewCompatibleVersion struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_NewBuildId string `protobuf:"bytes,1,opt,name=new_build_id,json=newBuildId,proto3"` + xxx_hidden_ExistingCompatibleBuildId string `protobuf:"bytes,2,opt,name=existing_compatible_build_id,json=existingCompatibleBuildId,proto3"` + xxx_hidden_MakeSetDefault bool `protobuf:"varint,3,opt,name=make_set_default,json=makeSetDefault,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest_AddNewCompatibleVersion) Reset() { + *x = UpdateWorkerBuildIdCompatibilityRequest_AddNewCompatibleVersion{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[219] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest_AddNewCompatibleVersion) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateWorkerBuildIdCompatibilityRequest_AddNewCompatibleVersion) ProtoMessage() {} + +func (x *UpdateWorkerBuildIdCompatibilityRequest_AddNewCompatibleVersion) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[219] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest_AddNewCompatibleVersion) GetNewBuildId() string { + if x != nil { + return x.xxx_hidden_NewBuildId + } + return "" +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest_AddNewCompatibleVersion) GetExistingCompatibleBuildId() string { + if x != nil { + return x.xxx_hidden_ExistingCompatibleBuildId + } + return "" +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest_AddNewCompatibleVersion) GetMakeSetDefault() bool { + if x != nil { + return x.xxx_hidden_MakeSetDefault + } + return false +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest_AddNewCompatibleVersion) SetNewBuildId(v string) { + x.xxx_hidden_NewBuildId = v +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest_AddNewCompatibleVersion) SetExistingCompatibleBuildId(v string) { + x.xxx_hidden_ExistingCompatibleBuildId = v +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest_AddNewCompatibleVersion) SetMakeSetDefault(v bool) { + x.xxx_hidden_MakeSetDefault = v +} + +type UpdateWorkerBuildIdCompatibilityRequest_AddNewCompatibleVersion_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // A new id to be added to an existing compatible set. + NewBuildId string + // A build id which must already exist in the version sets known by the task queue. The new + // id will be stored in the set containing this id, marking it as compatible with + // the versions within. + ExistingCompatibleBuildId string + // When set, establishes the compatible set being targeted as the overall default for the + // queue. If a different set was the current default, the targeted set will replace it as + // the new default. + MakeSetDefault bool +} + +func (b0 UpdateWorkerBuildIdCompatibilityRequest_AddNewCompatibleVersion_builder) Build() *UpdateWorkerBuildIdCompatibilityRequest_AddNewCompatibleVersion { + m0 := &UpdateWorkerBuildIdCompatibilityRequest_AddNewCompatibleVersion{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_NewBuildId = b.NewBuildId + x.xxx_hidden_ExistingCompatibleBuildId = b.ExistingCompatibleBuildId + x.xxx_hidden_MakeSetDefault = b.MakeSetDefault + return m0 +} + +type UpdateWorkerBuildIdCompatibilityRequest_MergeSets struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_PrimarySetBuildId string `protobuf:"bytes,1,opt,name=primary_set_build_id,json=primarySetBuildId,proto3"` + xxx_hidden_SecondarySetBuildId string `protobuf:"bytes,2,opt,name=secondary_set_build_id,json=secondarySetBuildId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest_MergeSets) Reset() { + *x = UpdateWorkerBuildIdCompatibilityRequest_MergeSets{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[220] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest_MergeSets) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateWorkerBuildIdCompatibilityRequest_MergeSets) ProtoMessage() {} + +func (x *UpdateWorkerBuildIdCompatibilityRequest_MergeSets) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[220] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest_MergeSets) GetPrimarySetBuildId() string { + if x != nil { + return x.xxx_hidden_PrimarySetBuildId + } + return "" +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest_MergeSets) GetSecondarySetBuildId() string { + if x != nil { + return x.xxx_hidden_SecondarySetBuildId + } + return "" +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest_MergeSets) SetPrimarySetBuildId(v string) { + x.xxx_hidden_PrimarySetBuildId = v +} + +func (x *UpdateWorkerBuildIdCompatibilityRequest_MergeSets) SetSecondarySetBuildId(v string) { + x.xxx_hidden_SecondarySetBuildId = v +} + +type UpdateWorkerBuildIdCompatibilityRequest_MergeSets_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // A build ID in the set whose default will become the merged set default + PrimarySetBuildId string + // A build ID in the set which will be merged into the primary set + SecondarySetBuildId string +} + +func (b0 UpdateWorkerBuildIdCompatibilityRequest_MergeSets_builder) Build() *UpdateWorkerBuildIdCompatibilityRequest_MergeSets { + m0 := &UpdateWorkerBuildIdCompatibilityRequest_MergeSets{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_PrimarySetBuildId = b.PrimarySetBuildId + x.xxx_hidden_SecondarySetBuildId = b.SecondarySetBuildId + return m0 +} + +// Inserts the rule to the list of assignment rules for this Task Queue. +// The rules are evaluated in order, starting from index 0. The first +// applicable rule will be applied and the rest will be ignored. +type UpdateWorkerVersioningRulesRequest_InsertBuildIdAssignmentRule struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RuleIndex int32 `protobuf:"varint,1,opt,name=rule_index,json=ruleIndex,proto3"` + xxx_hidden_Rule *v14.BuildIdAssignmentRule `protobuf:"bytes,2,opt,name=rule,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateWorkerVersioningRulesRequest_InsertBuildIdAssignmentRule) Reset() { + *x = UpdateWorkerVersioningRulesRequest_InsertBuildIdAssignmentRule{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[221] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateWorkerVersioningRulesRequest_InsertBuildIdAssignmentRule) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateWorkerVersioningRulesRequest_InsertBuildIdAssignmentRule) ProtoMessage() {} + +func (x *UpdateWorkerVersioningRulesRequest_InsertBuildIdAssignmentRule) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[221] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UpdateWorkerVersioningRulesRequest_InsertBuildIdAssignmentRule) GetRuleIndex() int32 { + if x != nil { + return x.xxx_hidden_RuleIndex + } + return 0 +} + +func (x *UpdateWorkerVersioningRulesRequest_InsertBuildIdAssignmentRule) GetRule() *v14.BuildIdAssignmentRule { + if x != nil { + return x.xxx_hidden_Rule + } + return nil +} + +func (x *UpdateWorkerVersioningRulesRequest_InsertBuildIdAssignmentRule) SetRuleIndex(v int32) { + x.xxx_hidden_RuleIndex = v +} + +func (x *UpdateWorkerVersioningRulesRequest_InsertBuildIdAssignmentRule) SetRule(v *v14.BuildIdAssignmentRule) { + x.xxx_hidden_Rule = v +} + +func (x *UpdateWorkerVersioningRulesRequest_InsertBuildIdAssignmentRule) HasRule() bool { + if x == nil { + return false + } + return x.xxx_hidden_Rule != nil +} + +func (x *UpdateWorkerVersioningRulesRequest_InsertBuildIdAssignmentRule) ClearRule() { + x.xxx_hidden_Rule = nil +} + +type UpdateWorkerVersioningRulesRequest_InsertBuildIdAssignmentRule_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Use this option to insert the rule in a particular index. By + // default, the new rule is inserted at the beginning of the list + // (index 0). If the given index is too larger the rule will be + // inserted at the end of the list. + RuleIndex int32 + Rule *v14.BuildIdAssignmentRule +} + +func (b0 UpdateWorkerVersioningRulesRequest_InsertBuildIdAssignmentRule_builder) Build() *UpdateWorkerVersioningRulesRequest_InsertBuildIdAssignmentRule { + m0 := &UpdateWorkerVersioningRulesRequest_InsertBuildIdAssignmentRule{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RuleIndex = b.RuleIndex + x.xxx_hidden_Rule = b.Rule + return m0 +} + +// Replaces the assignment rule at a given index. +type UpdateWorkerVersioningRulesRequest_ReplaceBuildIdAssignmentRule struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RuleIndex int32 `protobuf:"varint,1,opt,name=rule_index,json=ruleIndex,proto3"` + xxx_hidden_Rule *v14.BuildIdAssignmentRule `protobuf:"bytes,2,opt,name=rule,proto3"` + xxx_hidden_Force bool `protobuf:"varint,3,opt,name=force,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateWorkerVersioningRulesRequest_ReplaceBuildIdAssignmentRule) Reset() { + *x = UpdateWorkerVersioningRulesRequest_ReplaceBuildIdAssignmentRule{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[222] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateWorkerVersioningRulesRequest_ReplaceBuildIdAssignmentRule) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateWorkerVersioningRulesRequest_ReplaceBuildIdAssignmentRule) ProtoMessage() {} + +func (x *UpdateWorkerVersioningRulesRequest_ReplaceBuildIdAssignmentRule) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[222] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UpdateWorkerVersioningRulesRequest_ReplaceBuildIdAssignmentRule) GetRuleIndex() int32 { + if x != nil { + return x.xxx_hidden_RuleIndex + } + return 0 +} + +func (x *UpdateWorkerVersioningRulesRequest_ReplaceBuildIdAssignmentRule) GetRule() *v14.BuildIdAssignmentRule { + if x != nil { + return x.xxx_hidden_Rule + } + return nil +} + +func (x *UpdateWorkerVersioningRulesRequest_ReplaceBuildIdAssignmentRule) GetForce() bool { + if x != nil { + return x.xxx_hidden_Force + } + return false +} + +func (x *UpdateWorkerVersioningRulesRequest_ReplaceBuildIdAssignmentRule) SetRuleIndex(v int32) { + x.xxx_hidden_RuleIndex = v +} + +func (x *UpdateWorkerVersioningRulesRequest_ReplaceBuildIdAssignmentRule) SetRule(v *v14.BuildIdAssignmentRule) { + x.xxx_hidden_Rule = v +} + +func (x *UpdateWorkerVersioningRulesRequest_ReplaceBuildIdAssignmentRule) SetForce(v bool) { + x.xxx_hidden_Force = v +} + +func (x *UpdateWorkerVersioningRulesRequest_ReplaceBuildIdAssignmentRule) HasRule() bool { + if x == nil { + return false + } + return x.xxx_hidden_Rule != nil +} + +func (x *UpdateWorkerVersioningRulesRequest_ReplaceBuildIdAssignmentRule) ClearRule() { + x.xxx_hidden_Rule = nil +} + +type UpdateWorkerVersioningRulesRequest_ReplaceBuildIdAssignmentRule_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + RuleIndex int32 + Rule *v14.BuildIdAssignmentRule + // By default presence of one unconditional rule is enforced, otherwise + // the replace operation will be rejected. Set `force` to true to + // bypass this validation. An unconditional assignment rule: + // - Has no hint filter + // - Has no ramp + Force bool +} + +func (b0 UpdateWorkerVersioningRulesRequest_ReplaceBuildIdAssignmentRule_builder) Build() *UpdateWorkerVersioningRulesRequest_ReplaceBuildIdAssignmentRule { + m0 := &UpdateWorkerVersioningRulesRequest_ReplaceBuildIdAssignmentRule{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RuleIndex = b.RuleIndex + x.xxx_hidden_Rule = b.Rule + x.xxx_hidden_Force = b.Force + return m0 +} + +type UpdateWorkerVersioningRulesRequest_DeleteBuildIdAssignmentRule struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RuleIndex int32 `protobuf:"varint,1,opt,name=rule_index,json=ruleIndex,proto3"` + xxx_hidden_Force bool `protobuf:"varint,2,opt,name=force,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateWorkerVersioningRulesRequest_DeleteBuildIdAssignmentRule) Reset() { + *x = UpdateWorkerVersioningRulesRequest_DeleteBuildIdAssignmentRule{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[223] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateWorkerVersioningRulesRequest_DeleteBuildIdAssignmentRule) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateWorkerVersioningRulesRequest_DeleteBuildIdAssignmentRule) ProtoMessage() {} + +func (x *UpdateWorkerVersioningRulesRequest_DeleteBuildIdAssignmentRule) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[223] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UpdateWorkerVersioningRulesRequest_DeleteBuildIdAssignmentRule) GetRuleIndex() int32 { + if x != nil { + return x.xxx_hidden_RuleIndex + } + return 0 +} + +func (x *UpdateWorkerVersioningRulesRequest_DeleteBuildIdAssignmentRule) GetForce() bool { + if x != nil { + return x.xxx_hidden_Force + } + return false +} + +func (x *UpdateWorkerVersioningRulesRequest_DeleteBuildIdAssignmentRule) SetRuleIndex(v int32) { + x.xxx_hidden_RuleIndex = v +} + +func (x *UpdateWorkerVersioningRulesRequest_DeleteBuildIdAssignmentRule) SetForce(v bool) { + x.xxx_hidden_Force = v +} + +type UpdateWorkerVersioningRulesRequest_DeleteBuildIdAssignmentRule_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + RuleIndex int32 + // By default presence of one unconditional rule is enforced, otherwise + // the delete operation will be rejected. Set `force` to true to + // bypass this validation. An unconditional assignment rule: + // - Has no hint filter + // - Has no ramp + Force bool +} + +func (b0 UpdateWorkerVersioningRulesRequest_DeleteBuildIdAssignmentRule_builder) Build() *UpdateWorkerVersioningRulesRequest_DeleteBuildIdAssignmentRule { + m0 := &UpdateWorkerVersioningRulesRequest_DeleteBuildIdAssignmentRule{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RuleIndex = b.RuleIndex + x.xxx_hidden_Force = b.Force + return m0 +} + +// Adds the rule to the list of redirect rules for this Task Queue. There +// can be at most one redirect rule for each distinct Source Build ID. +type UpdateWorkerVersioningRulesRequest_AddCompatibleBuildIdRedirectRule struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Rule *v14.CompatibleBuildIdRedirectRule `protobuf:"bytes,1,opt,name=rule,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateWorkerVersioningRulesRequest_AddCompatibleBuildIdRedirectRule) Reset() { + *x = UpdateWorkerVersioningRulesRequest_AddCompatibleBuildIdRedirectRule{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[224] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateWorkerVersioningRulesRequest_AddCompatibleBuildIdRedirectRule) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateWorkerVersioningRulesRequest_AddCompatibleBuildIdRedirectRule) ProtoMessage() {} + +func (x *UpdateWorkerVersioningRulesRequest_AddCompatibleBuildIdRedirectRule) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[224] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UpdateWorkerVersioningRulesRequest_AddCompatibleBuildIdRedirectRule) GetRule() *v14.CompatibleBuildIdRedirectRule { + if x != nil { + return x.xxx_hidden_Rule + } + return nil +} + +func (x *UpdateWorkerVersioningRulesRequest_AddCompatibleBuildIdRedirectRule) SetRule(v *v14.CompatibleBuildIdRedirectRule) { + x.xxx_hidden_Rule = v +} + +func (x *UpdateWorkerVersioningRulesRequest_AddCompatibleBuildIdRedirectRule) HasRule() bool { + if x == nil { + return false + } + return x.xxx_hidden_Rule != nil +} + +func (x *UpdateWorkerVersioningRulesRequest_AddCompatibleBuildIdRedirectRule) ClearRule() { + x.xxx_hidden_Rule = nil +} + +type UpdateWorkerVersioningRulesRequest_AddCompatibleBuildIdRedirectRule_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Rule *v14.CompatibleBuildIdRedirectRule +} + +func (b0 UpdateWorkerVersioningRulesRequest_AddCompatibleBuildIdRedirectRule_builder) Build() *UpdateWorkerVersioningRulesRequest_AddCompatibleBuildIdRedirectRule { + m0 := &UpdateWorkerVersioningRulesRequest_AddCompatibleBuildIdRedirectRule{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Rule = b.Rule + return m0 +} + +// Replaces the routing rule with the given source Build ID. +type UpdateWorkerVersioningRulesRequest_ReplaceCompatibleBuildIdRedirectRule struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Rule *v14.CompatibleBuildIdRedirectRule `protobuf:"bytes,1,opt,name=rule,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateWorkerVersioningRulesRequest_ReplaceCompatibleBuildIdRedirectRule) Reset() { + *x = UpdateWorkerVersioningRulesRequest_ReplaceCompatibleBuildIdRedirectRule{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[225] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateWorkerVersioningRulesRequest_ReplaceCompatibleBuildIdRedirectRule) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateWorkerVersioningRulesRequest_ReplaceCompatibleBuildIdRedirectRule) ProtoMessage() {} + +func (x *UpdateWorkerVersioningRulesRequest_ReplaceCompatibleBuildIdRedirectRule) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[225] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UpdateWorkerVersioningRulesRequest_ReplaceCompatibleBuildIdRedirectRule) GetRule() *v14.CompatibleBuildIdRedirectRule { + if x != nil { + return x.xxx_hidden_Rule + } + return nil +} + +func (x *UpdateWorkerVersioningRulesRequest_ReplaceCompatibleBuildIdRedirectRule) SetRule(v *v14.CompatibleBuildIdRedirectRule) { + x.xxx_hidden_Rule = v +} + +func (x *UpdateWorkerVersioningRulesRequest_ReplaceCompatibleBuildIdRedirectRule) HasRule() bool { + if x == nil { + return false + } + return x.xxx_hidden_Rule != nil +} + +func (x *UpdateWorkerVersioningRulesRequest_ReplaceCompatibleBuildIdRedirectRule) ClearRule() { + x.xxx_hidden_Rule = nil +} + +type UpdateWorkerVersioningRulesRequest_ReplaceCompatibleBuildIdRedirectRule_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Rule *v14.CompatibleBuildIdRedirectRule +} + +func (b0 UpdateWorkerVersioningRulesRequest_ReplaceCompatibleBuildIdRedirectRule_builder) Build() *UpdateWorkerVersioningRulesRequest_ReplaceCompatibleBuildIdRedirectRule { + m0 := &UpdateWorkerVersioningRulesRequest_ReplaceCompatibleBuildIdRedirectRule{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Rule = b.Rule + return m0 +} + +type UpdateWorkerVersioningRulesRequest_DeleteCompatibleBuildIdRedirectRule struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_SourceBuildId string `protobuf:"bytes,1,opt,name=source_build_id,json=sourceBuildId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateWorkerVersioningRulesRequest_DeleteCompatibleBuildIdRedirectRule) Reset() { + *x = UpdateWorkerVersioningRulesRequest_DeleteCompatibleBuildIdRedirectRule{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[226] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateWorkerVersioningRulesRequest_DeleteCompatibleBuildIdRedirectRule) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateWorkerVersioningRulesRequest_DeleteCompatibleBuildIdRedirectRule) ProtoMessage() {} + +func (x *UpdateWorkerVersioningRulesRequest_DeleteCompatibleBuildIdRedirectRule) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[226] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UpdateWorkerVersioningRulesRequest_DeleteCompatibleBuildIdRedirectRule) GetSourceBuildId() string { + if x != nil { + return x.xxx_hidden_SourceBuildId + } + return "" +} + +func (x *UpdateWorkerVersioningRulesRequest_DeleteCompatibleBuildIdRedirectRule) SetSourceBuildId(v string) { + x.xxx_hidden_SourceBuildId = v +} + +type UpdateWorkerVersioningRulesRequest_DeleteCompatibleBuildIdRedirectRule_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + SourceBuildId string +} + +func (b0 UpdateWorkerVersioningRulesRequest_DeleteCompatibleBuildIdRedirectRule_builder) Build() *UpdateWorkerVersioningRulesRequest_DeleteCompatibleBuildIdRedirectRule { + m0 := &UpdateWorkerVersioningRulesRequest_DeleteCompatibleBuildIdRedirectRule{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_SourceBuildId = b.SourceBuildId + return m0 +} + +// This command is intended to be used to complete the rollout of a Build +// ID and cleanup unnecessary rules possibly created during a gradual +// rollout. Specifically, this command will make the following changes +// atomically: +// 1. Adds an assignment rule (with full ramp) for the target Build ID at +// the end of the list. +// 2. Removes all previously added assignment rules to the given target +// Build ID (if any). +// 3. Removes any fully-ramped assignment rule for other Build IDs. +type UpdateWorkerVersioningRulesRequest_CommitBuildId struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_TargetBuildId string `protobuf:"bytes,1,opt,name=target_build_id,json=targetBuildId,proto3"` + xxx_hidden_Force bool `protobuf:"varint,2,opt,name=force,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateWorkerVersioningRulesRequest_CommitBuildId) Reset() { + *x = UpdateWorkerVersioningRulesRequest_CommitBuildId{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[227] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateWorkerVersioningRulesRequest_CommitBuildId) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateWorkerVersioningRulesRequest_CommitBuildId) ProtoMessage() {} + +func (x *UpdateWorkerVersioningRulesRequest_CommitBuildId) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[227] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UpdateWorkerVersioningRulesRequest_CommitBuildId) GetTargetBuildId() string { + if x != nil { + return x.xxx_hidden_TargetBuildId + } + return "" +} + +func (x *UpdateWorkerVersioningRulesRequest_CommitBuildId) GetForce() bool { + if x != nil { + return x.xxx_hidden_Force + } + return false +} + +func (x *UpdateWorkerVersioningRulesRequest_CommitBuildId) SetTargetBuildId(v string) { + x.xxx_hidden_TargetBuildId = v +} + +func (x *UpdateWorkerVersioningRulesRequest_CommitBuildId) SetForce(v bool) { + x.xxx_hidden_Force = v +} + +type UpdateWorkerVersioningRulesRequest_CommitBuildId_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + TargetBuildId string + // To prevent committing invalid Build IDs, we reject the request if no + // pollers has been seen recently for this Build ID. Use the `force` + // option to disable this validation. + Force bool +} + +func (b0 UpdateWorkerVersioningRulesRequest_CommitBuildId_builder) Build() *UpdateWorkerVersioningRulesRequest_CommitBuildId { + m0 := &UpdateWorkerVersioningRulesRequest_CommitBuildId{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_TargetBuildId = b.TargetBuildId + x.xxx_hidden_Force = b.Force + return m0 +} + +type ExecuteMultiOperationRequest_Operation struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Operation isExecuteMultiOperationRequest_Operation_Operation `protobuf_oneof:"operation"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ExecuteMultiOperationRequest_Operation) Reset() { + *x = ExecuteMultiOperationRequest_Operation{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[228] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ExecuteMultiOperationRequest_Operation) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExecuteMultiOperationRequest_Operation) ProtoMessage() {} + +func (x *ExecuteMultiOperationRequest_Operation) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[228] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ExecuteMultiOperationRequest_Operation) GetStartWorkflow() *StartWorkflowExecutionRequest { + if x != nil { + if x, ok := x.xxx_hidden_Operation.(*executeMultiOperationRequest_Operation_StartWorkflow); ok { + return x.StartWorkflow + } + } + return nil +} + +func (x *ExecuteMultiOperationRequest_Operation) GetUpdateWorkflow() *UpdateWorkflowExecutionRequest { + if x != nil { + if x, ok := x.xxx_hidden_Operation.(*executeMultiOperationRequest_Operation_UpdateWorkflow); ok { + return x.UpdateWorkflow + } + } + return nil +} + +func (x *ExecuteMultiOperationRequest_Operation) SetStartWorkflow(v *StartWorkflowExecutionRequest) { + if v == nil { + x.xxx_hidden_Operation = nil + return + } + x.xxx_hidden_Operation = &executeMultiOperationRequest_Operation_StartWorkflow{v} +} + +func (x *ExecuteMultiOperationRequest_Operation) SetUpdateWorkflow(v *UpdateWorkflowExecutionRequest) { + if v == nil { + x.xxx_hidden_Operation = nil + return + } + x.xxx_hidden_Operation = &executeMultiOperationRequest_Operation_UpdateWorkflow{v} +} + +func (x *ExecuteMultiOperationRequest_Operation) HasOperation() bool { + if x == nil { + return false + } + return x.xxx_hidden_Operation != nil +} + +func (x *ExecuteMultiOperationRequest_Operation) HasStartWorkflow() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Operation.(*executeMultiOperationRequest_Operation_StartWorkflow) + return ok +} + +func (x *ExecuteMultiOperationRequest_Operation) HasUpdateWorkflow() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Operation.(*executeMultiOperationRequest_Operation_UpdateWorkflow) + return ok +} + +func (x *ExecuteMultiOperationRequest_Operation) ClearOperation() { + x.xxx_hidden_Operation = nil +} + +func (x *ExecuteMultiOperationRequest_Operation) ClearStartWorkflow() { + if _, ok := x.xxx_hidden_Operation.(*executeMultiOperationRequest_Operation_StartWorkflow); ok { + x.xxx_hidden_Operation = nil + } +} + +func (x *ExecuteMultiOperationRequest_Operation) ClearUpdateWorkflow() { + if _, ok := x.xxx_hidden_Operation.(*executeMultiOperationRequest_Operation_UpdateWorkflow); ok { + x.xxx_hidden_Operation = nil + } +} + +const ExecuteMultiOperationRequest_Operation_Operation_not_set_case case_ExecuteMultiOperationRequest_Operation_Operation = 0 +const ExecuteMultiOperationRequest_Operation_StartWorkflow_case case_ExecuteMultiOperationRequest_Operation_Operation = 1 +const ExecuteMultiOperationRequest_Operation_UpdateWorkflow_case case_ExecuteMultiOperationRequest_Operation_Operation = 2 + +func (x *ExecuteMultiOperationRequest_Operation) WhichOperation() case_ExecuteMultiOperationRequest_Operation_Operation { + if x == nil { + return ExecuteMultiOperationRequest_Operation_Operation_not_set_case + } + switch x.xxx_hidden_Operation.(type) { + case *executeMultiOperationRequest_Operation_StartWorkflow: + return ExecuteMultiOperationRequest_Operation_StartWorkflow_case + case *executeMultiOperationRequest_Operation_UpdateWorkflow: + return ExecuteMultiOperationRequest_Operation_UpdateWorkflow_case + default: + return ExecuteMultiOperationRequest_Operation_Operation_not_set_case + } +} + +type ExecuteMultiOperationRequest_Operation_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Fields of oneof xxx_hidden_Operation: + // Additional restrictions: + // - setting `cron_schedule` is invalid + // - setting `request_eager_execution` is invalid + // - setting `workflow_start_delay` is invalid + StartWorkflow *StartWorkflowExecutionRequest + // Additional restrictions: + // - setting `first_execution_run_id` is invalid + // - setting `workflow_execution.run_id` is invalid + UpdateWorkflow *UpdateWorkflowExecutionRequest + // -- end of xxx_hidden_Operation +} + +func (b0 ExecuteMultiOperationRequest_Operation_builder) Build() *ExecuteMultiOperationRequest_Operation { + m0 := &ExecuteMultiOperationRequest_Operation{} + b, x := &b0, m0 + _, _ = b, x + if b.StartWorkflow != nil { + x.xxx_hidden_Operation = &executeMultiOperationRequest_Operation_StartWorkflow{b.StartWorkflow} + } + if b.UpdateWorkflow != nil { + x.xxx_hidden_Operation = &executeMultiOperationRequest_Operation_UpdateWorkflow{b.UpdateWorkflow} + } + return m0 +} + +type case_ExecuteMultiOperationRequest_Operation_Operation protoreflect.FieldNumber + +func (x case_ExecuteMultiOperationRequest_Operation_Operation) String() string { + switch x { + case ExecuteMultiOperationRequest_Operation_Operation_not_set_case: + return "ExecuteMultiOperationRequestOperationOperationNotSetCase" + case ExecuteMultiOperationRequest_Operation_StartWorkflow_case: + return "ExecuteMultiOperationRequestOperationStartWorkflowCase" + case ExecuteMultiOperationRequest_Operation_UpdateWorkflow_case: + return "ExecuteMultiOperationRequestOperationUpdateWorkflowCase" + default: + return strconv. + + // Additional restrictions: + // - setting `cron_schedule` is invalid + // - setting `request_eager_execution` is invalid + // - setting `workflow_start_delay` is invalid + Itoa(int(x)) + } + +} + +type isExecuteMultiOperationRequest_Operation_Operation interface { + isExecuteMultiOperationRequest_Operation_Operation() +} + +type executeMultiOperationRequest_Operation_StartWorkflow struct { + StartWorkflow *StartWorkflowExecutionRequest `protobuf:"bytes,1,opt,name=start_workflow,json=startWorkflow,proto3,oneof"` +} + +type executeMultiOperationRequest_Operation_UpdateWorkflow struct { + // Additional restrictions: + // - setting `first_execution_run_id` is invalid + // - setting `workflow_execution.run_id` is invalid + UpdateWorkflow *UpdateWorkflowExecutionRequest `protobuf:"bytes,2,opt,name=update_workflow,json=updateWorkflow,proto3,oneof"` +} + +func (*executeMultiOperationRequest_Operation_StartWorkflow) isExecuteMultiOperationRequest_Operation_Operation() { +} + +func (*executeMultiOperationRequest_Operation_UpdateWorkflow) isExecuteMultiOperationRequest_Operation_Operation() { +} + +type ExecuteMultiOperationResponse_Response struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Response isExecuteMultiOperationResponse_Response_Response `protobuf_oneof:"response"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ExecuteMultiOperationResponse_Response) Reset() { + *x = ExecuteMultiOperationResponse_Response{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[229] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ExecuteMultiOperationResponse_Response) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExecuteMultiOperationResponse_Response) ProtoMessage() {} + +func (x *ExecuteMultiOperationResponse_Response) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[229] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ExecuteMultiOperationResponse_Response) GetStartWorkflow() *StartWorkflowExecutionResponse { + if x != nil { + if x, ok := x.xxx_hidden_Response.(*executeMultiOperationResponse_Response_StartWorkflow); ok { + return x.StartWorkflow + } + } + return nil +} + +func (x *ExecuteMultiOperationResponse_Response) GetUpdateWorkflow() *UpdateWorkflowExecutionResponse { + if x != nil { + if x, ok := x.xxx_hidden_Response.(*executeMultiOperationResponse_Response_UpdateWorkflow); ok { + return x.UpdateWorkflow + } + } + return nil +} + +func (x *ExecuteMultiOperationResponse_Response) SetStartWorkflow(v *StartWorkflowExecutionResponse) { + if v == nil { + x.xxx_hidden_Response = nil + return + } + x.xxx_hidden_Response = &executeMultiOperationResponse_Response_StartWorkflow{v} +} + +func (x *ExecuteMultiOperationResponse_Response) SetUpdateWorkflow(v *UpdateWorkflowExecutionResponse) { + if v == nil { + x.xxx_hidden_Response = nil + return + } + x.xxx_hidden_Response = &executeMultiOperationResponse_Response_UpdateWorkflow{v} +} + +func (x *ExecuteMultiOperationResponse_Response) HasResponse() bool { + if x == nil { + return false + } + return x.xxx_hidden_Response != nil +} + +func (x *ExecuteMultiOperationResponse_Response) HasStartWorkflow() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Response.(*executeMultiOperationResponse_Response_StartWorkflow) + return ok +} + +func (x *ExecuteMultiOperationResponse_Response) HasUpdateWorkflow() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Response.(*executeMultiOperationResponse_Response_UpdateWorkflow) + return ok +} + +func (x *ExecuteMultiOperationResponse_Response) ClearResponse() { + x.xxx_hidden_Response = nil +} + +func (x *ExecuteMultiOperationResponse_Response) ClearStartWorkflow() { + if _, ok := x.xxx_hidden_Response.(*executeMultiOperationResponse_Response_StartWorkflow); ok { + x.xxx_hidden_Response = nil + } +} + +func (x *ExecuteMultiOperationResponse_Response) ClearUpdateWorkflow() { + if _, ok := x.xxx_hidden_Response.(*executeMultiOperationResponse_Response_UpdateWorkflow); ok { + x.xxx_hidden_Response = nil + } +} + +const ExecuteMultiOperationResponse_Response_Response_not_set_case case_ExecuteMultiOperationResponse_Response_Response = 0 +const ExecuteMultiOperationResponse_Response_StartWorkflow_case case_ExecuteMultiOperationResponse_Response_Response = 1 +const ExecuteMultiOperationResponse_Response_UpdateWorkflow_case case_ExecuteMultiOperationResponse_Response_Response = 2 + +func (x *ExecuteMultiOperationResponse_Response) WhichResponse() case_ExecuteMultiOperationResponse_Response_Response { + if x == nil { + return ExecuteMultiOperationResponse_Response_Response_not_set_case + } + switch x.xxx_hidden_Response.(type) { + case *executeMultiOperationResponse_Response_StartWorkflow: + return ExecuteMultiOperationResponse_Response_StartWorkflow_case + case *executeMultiOperationResponse_Response_UpdateWorkflow: + return ExecuteMultiOperationResponse_Response_UpdateWorkflow_case + default: + return ExecuteMultiOperationResponse_Response_Response_not_set_case + } +} + +type ExecuteMultiOperationResponse_Response_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Fields of oneof xxx_hidden_Response: + StartWorkflow *StartWorkflowExecutionResponse + UpdateWorkflow *UpdateWorkflowExecutionResponse + // -- end of xxx_hidden_Response +} + +func (b0 ExecuteMultiOperationResponse_Response_builder) Build() *ExecuteMultiOperationResponse_Response { + m0 := &ExecuteMultiOperationResponse_Response{} + b, x := &b0, m0 + _, _ = b, x + if b.StartWorkflow != nil { + x.xxx_hidden_Response = &executeMultiOperationResponse_Response_StartWorkflow{b.StartWorkflow} + } + if b.UpdateWorkflow != nil { + x.xxx_hidden_Response = &executeMultiOperationResponse_Response_UpdateWorkflow{b.UpdateWorkflow} + } + return m0 +} + +type case_ExecuteMultiOperationResponse_Response_Response protoreflect.FieldNumber + +func (x case_ExecuteMultiOperationResponse_Response_Response) String() string { + switch x { + case ExecuteMultiOperationResponse_Response_Response_not_set_case: + return "ExecuteMultiOperationResponseResponseResponseNotSetCase" + case ExecuteMultiOperationResponse_Response_StartWorkflow_case: + return "ExecuteMultiOperationResponseResponseStartWorkflowCase" + case ExecuteMultiOperationResponse_Response_UpdateWorkflow_case: + return "ExecuteMultiOperationResponseResponseUpdateWorkflowCase" + default: + return strconv.Itoa(int(x)) + } + +} + +type isExecuteMultiOperationResponse_Response_Response interface { + isExecuteMultiOperationResponse_Response_Response() +} + +type executeMultiOperationResponse_Response_StartWorkflow struct { + StartWorkflow *StartWorkflowExecutionResponse `protobuf:"bytes,1,opt,name=start_workflow,json=startWorkflow,proto3,oneof"` +} + +type executeMultiOperationResponse_Response_UpdateWorkflow struct { + UpdateWorkflow *UpdateWorkflowExecutionResponse `protobuf:"bytes,2,opt,name=update_workflow,json=updateWorkflow,proto3,oneof"` +} + +func (*executeMultiOperationResponse_Response_StartWorkflow) isExecuteMultiOperationResponse_Response_Response() { +} + +func (*executeMultiOperationResponse_Response_UpdateWorkflow) isExecuteMultiOperationResponse_Response_Response() { +} + +// (-- api-linter: core::0123::resource-annotation=disabled --) +type DescribeWorkerDeploymentVersionResponse_VersionTaskQueue struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Name string `protobuf:"bytes,1,opt,name=name,proto3"` + xxx_hidden_Type v11.TaskQueueType `protobuf:"varint,2,opt,name=type,proto3,enum=temporal.api.enums.v1.TaskQueueType"` + xxx_hidden_Stats *v14.TaskQueueStats `protobuf:"bytes,3,opt,name=stats,proto3"` + xxx_hidden_StatsByPriorityKey map[int32]*v14.TaskQueueStats `protobuf:"bytes,4,rep,name=stats_by_priority_key,json=statsByPriorityKey,proto3" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DescribeWorkerDeploymentVersionResponse_VersionTaskQueue) Reset() { + *x = DescribeWorkerDeploymentVersionResponse_VersionTaskQueue{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[230] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DescribeWorkerDeploymentVersionResponse_VersionTaskQueue) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DescribeWorkerDeploymentVersionResponse_VersionTaskQueue) ProtoMessage() {} + +func (x *DescribeWorkerDeploymentVersionResponse_VersionTaskQueue) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[230] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DescribeWorkerDeploymentVersionResponse_VersionTaskQueue) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *DescribeWorkerDeploymentVersionResponse_VersionTaskQueue) GetType() v11.TaskQueueType { + if x != nil { + return x.xxx_hidden_Type + } + return v11.TaskQueueType(0) +} + +func (x *DescribeWorkerDeploymentVersionResponse_VersionTaskQueue) GetStats() *v14.TaskQueueStats { + if x != nil { + return x.xxx_hidden_Stats + } + return nil +} + +func (x *DescribeWorkerDeploymentVersionResponse_VersionTaskQueue) GetStatsByPriorityKey() map[int32]*v14.TaskQueueStats { + if x != nil { + return x.xxx_hidden_StatsByPriorityKey + } + return nil +} + +func (x *DescribeWorkerDeploymentVersionResponse_VersionTaskQueue) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *DescribeWorkerDeploymentVersionResponse_VersionTaskQueue) SetType(v v11.TaskQueueType) { + x.xxx_hidden_Type = v +} + +func (x *DescribeWorkerDeploymentVersionResponse_VersionTaskQueue) SetStats(v *v14.TaskQueueStats) { + x.xxx_hidden_Stats = v +} + +func (x *DescribeWorkerDeploymentVersionResponse_VersionTaskQueue) SetStatsByPriorityKey(v map[int32]*v14.TaskQueueStats) { + x.xxx_hidden_StatsByPriorityKey = v +} + +func (x *DescribeWorkerDeploymentVersionResponse_VersionTaskQueue) HasStats() bool { + if x == nil { + return false + } + return x.xxx_hidden_Stats != nil +} + +func (x *DescribeWorkerDeploymentVersionResponse_VersionTaskQueue) ClearStats() { + x.xxx_hidden_Stats = nil +} + +type DescribeWorkerDeploymentVersionResponse_VersionTaskQueue_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string + Type v11.TaskQueueType + // Only set if `report_task_queue_stats` is set on the request. + Stats *v14.TaskQueueStats + // Task queue stats breakdown by priority key. Only contains actively used priority keys. + // Only set if `report_task_queue_stats` is set to true in the request. + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "by" is used to clarify the key. --) + StatsByPriorityKey map[int32]*v14.TaskQueueStats +} + +func (b0 DescribeWorkerDeploymentVersionResponse_VersionTaskQueue_builder) Build() *DescribeWorkerDeploymentVersionResponse_VersionTaskQueue { + m0 := &DescribeWorkerDeploymentVersionResponse_VersionTaskQueue{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Name = b.Name + x.xxx_hidden_Type = b.Type + x.xxx_hidden_Stats = b.Stats + x.xxx_hidden_StatsByPriorityKey = b.StatsByPriorityKey + return m0 +} + +// (-- api-linter: core::0123::resource-annotation=disabled --) +// A subset of WorkerDeploymentInfo +type ListWorkerDeploymentsResponse_WorkerDeploymentSummary struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Name string `protobuf:"bytes,1,opt,name=name,proto3"` + xxx_hidden_CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3"` + xxx_hidden_RoutingConfig *v18.RoutingConfig `protobuf:"bytes,3,opt,name=routing_config,json=routingConfig,proto3"` + xxx_hidden_LatestVersionSummary *v18.WorkerDeploymentInfo_WorkerDeploymentVersionSummary `protobuf:"bytes,4,opt,name=latest_version_summary,json=latestVersionSummary,proto3"` + xxx_hidden_CurrentVersionSummary *v18.WorkerDeploymentInfo_WorkerDeploymentVersionSummary `protobuf:"bytes,5,opt,name=current_version_summary,json=currentVersionSummary,proto3"` + xxx_hidden_RampingVersionSummary *v18.WorkerDeploymentInfo_WorkerDeploymentVersionSummary `protobuf:"bytes,6,opt,name=ramping_version_summary,json=rampingVersionSummary,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListWorkerDeploymentsResponse_WorkerDeploymentSummary) Reset() { + *x = ListWorkerDeploymentsResponse_WorkerDeploymentSummary{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[232] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListWorkerDeploymentsResponse_WorkerDeploymentSummary) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListWorkerDeploymentsResponse_WorkerDeploymentSummary) ProtoMessage() {} + +func (x *ListWorkerDeploymentsResponse_WorkerDeploymentSummary) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[232] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListWorkerDeploymentsResponse_WorkerDeploymentSummary) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *ListWorkerDeploymentsResponse_WorkerDeploymentSummary) GetCreateTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_CreateTime + } + return nil +} + +func (x *ListWorkerDeploymentsResponse_WorkerDeploymentSummary) GetRoutingConfig() *v18.RoutingConfig { + if x != nil { + return x.xxx_hidden_RoutingConfig + } + return nil +} + +func (x *ListWorkerDeploymentsResponse_WorkerDeploymentSummary) GetLatestVersionSummary() *v18.WorkerDeploymentInfo_WorkerDeploymentVersionSummary { + if x != nil { + return x.xxx_hidden_LatestVersionSummary + } + return nil +} + +func (x *ListWorkerDeploymentsResponse_WorkerDeploymentSummary) GetCurrentVersionSummary() *v18.WorkerDeploymentInfo_WorkerDeploymentVersionSummary { + if x != nil { + return x.xxx_hidden_CurrentVersionSummary + } + return nil +} + +func (x *ListWorkerDeploymentsResponse_WorkerDeploymentSummary) GetRampingVersionSummary() *v18.WorkerDeploymentInfo_WorkerDeploymentVersionSummary { + if x != nil { + return x.xxx_hidden_RampingVersionSummary + } + return nil +} + +func (x *ListWorkerDeploymentsResponse_WorkerDeploymentSummary) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *ListWorkerDeploymentsResponse_WorkerDeploymentSummary) SetCreateTime(v *timestamppb.Timestamp) { + x.xxx_hidden_CreateTime = v +} + +func (x *ListWorkerDeploymentsResponse_WorkerDeploymentSummary) SetRoutingConfig(v *v18.RoutingConfig) { + x.xxx_hidden_RoutingConfig = v +} + +func (x *ListWorkerDeploymentsResponse_WorkerDeploymentSummary) SetLatestVersionSummary(v *v18.WorkerDeploymentInfo_WorkerDeploymentVersionSummary) { + x.xxx_hidden_LatestVersionSummary = v +} + +func (x *ListWorkerDeploymentsResponse_WorkerDeploymentSummary) SetCurrentVersionSummary(v *v18.WorkerDeploymentInfo_WorkerDeploymentVersionSummary) { + x.xxx_hidden_CurrentVersionSummary = v +} + +func (x *ListWorkerDeploymentsResponse_WorkerDeploymentSummary) SetRampingVersionSummary(v *v18.WorkerDeploymentInfo_WorkerDeploymentVersionSummary) { + x.xxx_hidden_RampingVersionSummary = v +} + +func (x *ListWorkerDeploymentsResponse_WorkerDeploymentSummary) HasCreateTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_CreateTime != nil +} + +func (x *ListWorkerDeploymentsResponse_WorkerDeploymentSummary) HasRoutingConfig() bool { + if x == nil { + return false + } + return x.xxx_hidden_RoutingConfig != nil +} + +func (x *ListWorkerDeploymentsResponse_WorkerDeploymentSummary) HasLatestVersionSummary() bool { + if x == nil { + return false + } + return x.xxx_hidden_LatestVersionSummary != nil +} + +func (x *ListWorkerDeploymentsResponse_WorkerDeploymentSummary) HasCurrentVersionSummary() bool { + if x == nil { + return false + } + return x.xxx_hidden_CurrentVersionSummary != nil +} + +func (x *ListWorkerDeploymentsResponse_WorkerDeploymentSummary) HasRampingVersionSummary() bool { + if x == nil { + return false + } + return x.xxx_hidden_RampingVersionSummary != nil +} + +func (x *ListWorkerDeploymentsResponse_WorkerDeploymentSummary) ClearCreateTime() { + x.xxx_hidden_CreateTime = nil +} + +func (x *ListWorkerDeploymentsResponse_WorkerDeploymentSummary) ClearRoutingConfig() { + x.xxx_hidden_RoutingConfig = nil +} + +func (x *ListWorkerDeploymentsResponse_WorkerDeploymentSummary) ClearLatestVersionSummary() { + x.xxx_hidden_LatestVersionSummary = nil +} + +func (x *ListWorkerDeploymentsResponse_WorkerDeploymentSummary) ClearCurrentVersionSummary() { + x.xxx_hidden_CurrentVersionSummary = nil +} + +func (x *ListWorkerDeploymentsResponse_WorkerDeploymentSummary) ClearRampingVersionSummary() { + x.xxx_hidden_RampingVersionSummary = nil +} + +type ListWorkerDeploymentsResponse_WorkerDeploymentSummary_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string + CreateTime *timestamppb.Timestamp + RoutingConfig *v18.RoutingConfig + // Summary of the version that was added most recently in the Worker Deployment. + LatestVersionSummary *v18.WorkerDeploymentInfo_WorkerDeploymentVersionSummary + // Summary of the current version of the Worker Deployment. + CurrentVersionSummary *v18.WorkerDeploymentInfo_WorkerDeploymentVersionSummary + // Summary of the ramping version of the Worker Deployment. + RampingVersionSummary *v18.WorkerDeploymentInfo_WorkerDeploymentVersionSummary +} + +func (b0 ListWorkerDeploymentsResponse_WorkerDeploymentSummary_builder) Build() *ListWorkerDeploymentsResponse_WorkerDeploymentSummary { + m0 := &ListWorkerDeploymentsResponse_WorkerDeploymentSummary{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Name = b.Name + x.xxx_hidden_CreateTime = b.CreateTime + x.xxx_hidden_RoutingConfig = b.RoutingConfig + x.xxx_hidden_LatestVersionSummary = b.LatestVersionSummary + x.xxx_hidden_CurrentVersionSummary = b.CurrentVersionSummary + x.xxx_hidden_RampingVersionSummary = b.RampingVersionSummary + return m0 +} + +type UpdateTaskQueueConfigRequest_RateLimitUpdate struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RateLimit *v14.RateLimit `protobuf:"bytes,1,opt,name=rate_limit,json=rateLimit,proto3"` + xxx_hidden_Reason string `protobuf:"bytes,2,opt,name=reason,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateTaskQueueConfigRequest_RateLimitUpdate) Reset() { + *x = UpdateTaskQueueConfigRequest_RateLimitUpdate{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[234] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateTaskQueueConfigRequest_RateLimitUpdate) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateTaskQueueConfigRequest_RateLimitUpdate) ProtoMessage() {} + +func (x *UpdateTaskQueueConfigRequest_RateLimitUpdate) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[234] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UpdateTaskQueueConfigRequest_RateLimitUpdate) GetRateLimit() *v14.RateLimit { + if x != nil { + return x.xxx_hidden_RateLimit + } + return nil +} + +func (x *UpdateTaskQueueConfigRequest_RateLimitUpdate) GetReason() string { + if x != nil { + return x.xxx_hidden_Reason + } + return "" +} + +func (x *UpdateTaskQueueConfigRequest_RateLimitUpdate) SetRateLimit(v *v14.RateLimit) { + x.xxx_hidden_RateLimit = v +} + +func (x *UpdateTaskQueueConfigRequest_RateLimitUpdate) SetReason(v string) { + x.xxx_hidden_Reason = v +} + +func (x *UpdateTaskQueueConfigRequest_RateLimitUpdate) HasRateLimit() bool { + if x == nil { + return false + } + return x.xxx_hidden_RateLimit != nil +} + +func (x *UpdateTaskQueueConfigRequest_RateLimitUpdate) ClearRateLimit() { + x.xxx_hidden_RateLimit = nil +} + +type UpdateTaskQueueConfigRequest_RateLimitUpdate_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Rate Limit to be updated + RateLimit *v14.RateLimit + // Reason for why the rate limit was set. + Reason string +} + +func (b0 UpdateTaskQueueConfigRequest_RateLimitUpdate_builder) Build() *UpdateTaskQueueConfigRequest_RateLimitUpdate { + m0 := &UpdateTaskQueueConfigRequest_RateLimitUpdate{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RateLimit = b.RateLimit + x.xxx_hidden_Reason = b.Reason + return m0 +} + +type CountActivityExecutionsResponse_AggregationGroup struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_GroupValues *[]*v13.Payload `protobuf:"bytes,1,rep,name=group_values,json=groupValues,proto3"` + xxx_hidden_Count int64 `protobuf:"varint,2,opt,name=count,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CountActivityExecutionsResponse_AggregationGroup) Reset() { + *x = CountActivityExecutionsResponse_AggregationGroup{} + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[236] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CountActivityExecutionsResponse_AggregationGroup) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CountActivityExecutionsResponse_AggregationGroup) ProtoMessage() {} + +func (x *CountActivityExecutionsResponse_AggregationGroup) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[236] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *CountActivityExecutionsResponse_AggregationGroup) GetGroupValues() []*v13.Payload { + if x != nil { + if x.xxx_hidden_GroupValues != nil { + return *x.xxx_hidden_GroupValues + } + } + return nil +} + +func (x *CountActivityExecutionsResponse_AggregationGroup) GetCount() int64 { + if x != nil { + return x.xxx_hidden_Count + } + return 0 +} + +func (x *CountActivityExecutionsResponse_AggregationGroup) SetGroupValues(v []*v13.Payload) { + x.xxx_hidden_GroupValues = &v +} + +func (x *CountActivityExecutionsResponse_AggregationGroup) SetCount(v int64) { + x.xxx_hidden_Count = v +} + +type CountActivityExecutionsResponse_AggregationGroup_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + GroupValues []*v13.Payload + Count int64 +} + +func (b0 CountActivityExecutionsResponse_AggregationGroup_builder) Build() *CountActivityExecutionsResponse_AggregationGroup { + m0 := &CountActivityExecutionsResponse_AggregationGroup{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_GroupValues = &b.GroupValues + x.xxx_hidden_Count = b.Count + return m0 +} + +var File_temporal_api_workflowservice_v1_request_response_proto protoreflect.FileDescriptor + +const file_temporal_api_workflowservice_v1_request_response_proto_rawDesc = "" + + "\n" + + "6temporal/api/workflowservice/v1/request_response.proto\x12\x1ftemporal.api.workflowservice.v1\x1a+temporal/api/enums/v1/batch_operation.proto\x1a\"temporal/api/enums/v1/common.proto\x1a$temporal/api/enums/v1/workflow.proto\x1a%temporal/api/enums/v1/namespace.proto\x1a(temporal/api/enums/v1/failed_cause.proto\x1a!temporal/api/enums/v1/query.proto\x1a!temporal/api/enums/v1/reset.proto\x1a&temporal/api/enums/v1/task_queue.proto\x1a&temporal/api/enums/v1/deployment.proto\x1a\"temporal/api/enums/v1/update.proto\x1a$temporal/api/enums/v1/activity.proto\x1a&temporal/api/activity/v1/message.proto\x1a$temporal/api/common/v1/message.proto\x1a%temporal/api/history/v1/message.proto\x1a&temporal/api/workflow/v1/message.proto\x1a%temporal/api/command/v1/message.proto\x1a(temporal/api/deployment/v1/message.proto\x1a%temporal/api/failure/v1/message.proto\x1a$temporal/api/filter/v1/message.proto\x1a&temporal/api/protocol/v1/message.proto\x1a'temporal/api/namespace/v1/message.proto\x1a#temporal/api/query/v1/message.proto\x1a)temporal/api/replication/v1/message.proto\x1a#temporal/api/rules/v1/message.proto\x1a'temporal/api/sdk/v1/worker_config.proto\x1a&temporal/api/schedule/v1/message.proto\x1a'temporal/api/taskqueue/v1/message.proto\x1a$temporal/api/update/v1/message.proto\x1a%temporal/api/version/v1/message.proto\x1a#temporal/api/batch/v1/message.proto\x1a0temporal/api/sdk/v1/task_complete_metadata.proto\x1a'temporal/api/sdk/v1/user_metadata.proto\x1a#temporal/api/nexus/v1/message.proto\x1a$temporal/api/worker/v1/message.proto\x1a\x1egoogle/protobuf/duration.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xf9\x06\n" + + "\x18RegisterNamespaceRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12 \n" + + "\vdescription\x18\x02 \x01(\tR\vdescription\x12\x1f\n" + + "\vowner_email\x18\x03 \x01(\tR\n" + + "ownerEmail\x12h\n" + + "#workflow_execution_retention_period\x18\x04 \x01(\v2\x19.google.protobuf.DurationR workflowExecutionRetentionPeriod\x12Q\n" + + "\bclusters\x18\x05 \x03(\v25.temporal.api.replication.v1.ClusterReplicationConfigR\bclusters\x12.\n" + + "\x13active_cluster_name\x18\x06 \x01(\tR\x11activeClusterName\x12W\n" + + "\x04data\x18\a \x03(\v2C.temporal.api.workflowservice.v1.RegisterNamespaceRequest.DataEntryR\x04data\x12%\n" + + "\x0esecurity_token\x18\b \x01(\tR\rsecurityToken\x12.\n" + + "\x13is_global_namespace\x18\t \x01(\bR\x11isGlobalNamespace\x12Z\n" + + "\x16history_archival_state\x18\n" + + " \x01(\x0e2$.temporal.api.enums.v1.ArchivalStateR\x14historyArchivalState\x120\n" + + "\x14history_archival_uri\x18\v \x01(\tR\x12historyArchivalUri\x12`\n" + + "\x19visibility_archival_state\x18\f \x01(\x0e2$.temporal.api.enums.v1.ArchivalStateR\x17visibilityArchivalState\x126\n" + + "\x17visibility_archival_uri\x18\r \x01(\tR\x15visibilityArchivalUri\x1a7\n" + + "\tDataEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\x1b\n" + + "\x19RegisterNamespaceResponse\"\xb3\x01\n" + + "\x15ListNamespacesRequest\x12\x1b\n" + + "\tpage_size\x18\x01 \x01(\x05R\bpageSize\x12&\n" + + "\x0fnext_page_token\x18\x02 \x01(\fR\rnextPageToken\x12U\n" + + "\x10namespace_filter\x18\x03 \x01(\v2*.temporal.api.namespace.v1.NamespaceFilterR\x0fnamespaceFilter\"\x9c\x01\n" + + "\x16ListNamespacesResponse\x12Z\n" + + "\n" + + "namespaces\x18\x01 \x03(\v2:.temporal.api.workflowservice.v1.DescribeNamespaceResponseR\n" + + "namespaces\x12&\n" + + "\x0fnext_page_token\x18\x02 \x01(\fR\rnextPageToken\"H\n" + + "\x18DescribeNamespaceRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x0e\n" + + "\x02id\x18\x02 \x01(\tR\x02id\"\xcb\x03\n" + + "\x19DescribeNamespaceResponse\x12O\n" + + "\x0enamespace_info\x18\x01 \x01(\v2(.temporal.api.namespace.v1.NamespaceInfoR\rnamespaceInfo\x12B\n" + + "\x06config\x18\x02 \x01(\v2*.temporal.api.namespace.v1.NamespaceConfigR\x06config\x12f\n" + + "\x12replication_config\x18\x03 \x01(\v27.temporal.api.replication.v1.NamespaceReplicationConfigR\x11replicationConfig\x12)\n" + + "\x10failover_version\x18\x04 \x01(\x03R\x0ffailoverVersion\x12.\n" + + "\x13is_global_namespace\x18\x05 \x01(\bR\x11isGlobalNamespace\x12V\n" + + "\x10failover_history\x18\x06 \x03(\v2+.temporal.api.replication.v1.FailoverStatusR\x0ffailoverHistory\"\xb3\x03\n" + + "\x16UpdateNamespaceRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12O\n" + + "\vupdate_info\x18\x02 \x01(\v2..temporal.api.namespace.v1.UpdateNamespaceInfoR\n" + + "updateInfo\x12B\n" + + "\x06config\x18\x03 \x01(\v2*.temporal.api.namespace.v1.NamespaceConfigR\x06config\x12f\n" + + "\x12replication_config\x18\x04 \x01(\v27.temporal.api.replication.v1.NamespaceReplicationConfigR\x11replicationConfig\x12%\n" + + "\x0esecurity_token\x18\x05 \x01(\tR\rsecurityToken\x12*\n" + + "\x11delete_bad_binary\x18\x06 \x01(\tR\x0fdeleteBadBinary\x12+\n" + + "\x11promote_namespace\x18\a \x01(\bR\x10promoteNamespace\"\xf1\x02\n" + + "\x17UpdateNamespaceResponse\x12O\n" + + "\x0enamespace_info\x18\x01 \x01(\v2(.temporal.api.namespace.v1.NamespaceInfoR\rnamespaceInfo\x12B\n" + + "\x06config\x18\x02 \x01(\v2*.temporal.api.namespace.v1.NamespaceConfigR\x06config\x12f\n" + + "\x12replication_config\x18\x03 \x01(\v27.temporal.api.replication.v1.NamespaceReplicationConfigR\x11replicationConfig\x12)\n" + + "\x10failover_version\x18\x04 \x01(\x03R\x0ffailoverVersion\x12.\n" + + "\x13is_global_namespace\x18\x05 \x01(\bR\x11isGlobalNamespace\"`\n" + + "\x19DeprecateNamespaceRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12%\n" + + "\x0esecurity_token\x18\x02 \x01(\tR\rsecurityToken\"\x1c\n" + + "\x1aDeprecateNamespaceResponse\"\xce\x0f\n" + + "\x1dStartWorkflowExecutionRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x1f\n" + + "\vworkflow_id\x18\x02 \x01(\tR\n" + + "workflowId\x12I\n" + + "\rworkflow_type\x18\x03 \x01(\v2$.temporal.api.common.v1.WorkflowTypeR\fworkflowType\x12C\n" + + "\n" + + "task_queue\x18\x04 \x01(\v2$.temporal.api.taskqueue.v1.TaskQueueR\ttaskQueue\x126\n" + + "\x05input\x18\x05 \x01(\v2 .temporal.api.common.v1.PayloadsR\x05input\x12W\n" + + "\x1aworkflow_execution_timeout\x18\x06 \x01(\v2\x19.google.protobuf.DurationR\x18workflowExecutionTimeout\x12K\n" + + "\x14workflow_run_timeout\x18\a \x01(\v2\x19.google.protobuf.DurationR\x12workflowRunTimeout\x12M\n" + + "\x15workflow_task_timeout\x18\b \x01(\v2\x19.google.protobuf.DurationR\x13workflowTaskTimeout\x12\x1a\n" + + "\bidentity\x18\t \x01(\tR\bidentity\x12\x1d\n" + + "\n" + + "request_id\x18\n" + + " \x01(\tR\trequestId\x12e\n" + + "\x18workflow_id_reuse_policy\x18\v \x01(\x0e2,.temporal.api.enums.v1.WorkflowIdReusePolicyR\x15workflowIdReusePolicy\x12n\n" + + "\x1bworkflow_id_conflict_policy\x18\x16 \x01(\x0e2/.temporal.api.enums.v1.WorkflowIdConflictPolicyR\x18workflowIdConflictPolicy\x12F\n" + + "\fretry_policy\x18\f \x01(\v2#.temporal.api.common.v1.RetryPolicyR\vretryPolicy\x12#\n" + + "\rcron_schedule\x18\r \x01(\tR\fcronSchedule\x120\n" + + "\x04memo\x18\x0e \x01(\v2\x1c.temporal.api.common.v1.MemoR\x04memo\x12U\n" + + "\x11search_attributes\x18\x0f \x01(\v2(.temporal.api.common.v1.SearchAttributesR\x10searchAttributes\x126\n" + + "\x06header\x18\x10 \x01(\v2\x1e.temporal.api.common.v1.HeaderR\x06header\x126\n" + + "\x17request_eager_execution\x18\x11 \x01(\bR\x15requestEagerExecution\x12M\n" + + "\x11continued_failure\x18\x12 \x01(\v2 .temporal.api.failure.v1.FailureR\x10continuedFailure\x12V\n" + + "\x16last_completion_result\x18\x13 \x01(\v2 .temporal.api.common.v1.PayloadsR\x14lastCompletionResult\x12K\n" + + "\x14workflow_start_delay\x18\x14 \x01(\v2\x19.google.protobuf.DurationR\x12workflowStartDelay\x12S\n" + + "\x14completion_callbacks\x18\x15 \x03(\v2 .temporal.api.common.v1.CallbackR\x13completionCallbacks\x12F\n" + + "\ruser_metadata\x18\x17 \x01(\v2!.temporal.api.sdk.v1.UserMetadataR\fuserMetadata\x122\n" + + "\x05links\x18\x18 \x03(\v2\x1c.temporal.api.common.v1.LinkR\x05links\x12]\n" + + "\x13versioning_override\x18\x19 \x01(\v2,.temporal.api.workflow.v1.VersioningOverrideR\x12versioningOverride\x12[\n" + + "\x13on_conflict_options\x18\x1a \x01(\v2+.temporal.api.workflow.v1.OnConflictOptionsR\x11onConflictOptions\x12<\n" + + "\bpriority\x18\x1b \x01(\v2 .temporal.api.common.v1.PriorityR\bpriority\x12z\n" + + "\x1feager_worker_deployment_options\x18\x1c \x01(\v23.temporal.api.deployment.v1.WorkerDeploymentOptionsR\x1ceagerWorkerDeploymentOptions\"\xbb\x02\n" + + "\x1eStartWorkflowExecutionResponse\x12\x15\n" + + "\x06run_id\x18\x01 \x01(\tR\x05runId\x12\x18\n" + + "\astarted\x18\x03 \x01(\bR\astarted\x12F\n" + + "\x06status\x18\x05 \x01(\x0e2..temporal.api.enums.v1.WorkflowExecutionStatusR\x06status\x12n\n" + + "\x13eager_workflow_task\x18\x02 \x01(\v2>.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponseR\x11eagerWorkflowTask\x120\n" + + "\x04link\x18\x04 \x01(\v2\x1c.temporal.api.common.v1.LinkR\x04link\"\x94\x03\n" + + "\"GetWorkflowExecutionHistoryRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12G\n" + + "\texecution\x18\x02 \x01(\v2).temporal.api.common.v1.WorkflowExecutionR\texecution\x12*\n" + + "\x11maximum_page_size\x18\x03 \x01(\x05R\x0fmaximumPageSize\x12&\n" + + "\x0fnext_page_token\x18\x04 \x01(\fR\rnextPageToken\x12$\n" + + "\x0ewait_new_event\x18\x05 \x01(\bR\fwaitNewEvent\x12h\n" + + "\x19history_event_filter_type\x18\x06 \x01(\x0e2-.temporal.api.enums.v1.HistoryEventFilterTypeR\x16historyEventFilterType\x12#\n" + + "\rskip_archival\x18\a \x01(\bR\fskipArchival\"\xe8\x01\n" + + "#GetWorkflowExecutionHistoryResponse\x12:\n" + + "\ahistory\x18\x01 \x01(\v2 .temporal.api.history.v1.HistoryR\ahistory\x12A\n" + + "\vraw_history\x18\x02 \x03(\v2 .temporal.api.common.v1.DataBlobR\n" + + "rawHistory\x12&\n" + + "\x0fnext_page_token\x18\x03 \x01(\fR\rnextPageToken\x12\x1a\n" + + "\barchived\x18\x04 \x01(\bR\barchived\"\xe6\x01\n" + + ")GetWorkflowExecutionHistoryReverseRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12G\n" + + "\texecution\x18\x02 \x01(\v2).temporal.api.common.v1.WorkflowExecutionR\texecution\x12*\n" + + "\x11maximum_page_size\x18\x03 \x01(\x05R\x0fmaximumPageSize\x12&\n" + + "\x0fnext_page_token\x18\x04 \x01(\fR\rnextPageToken\"\x90\x01\n" + + "*GetWorkflowExecutionHistoryReverseResponse\x12:\n" + + "\ahistory\x18\x01 \x01(\v2 .temporal.api.history.v1.HistoryR\ahistory\x12&\n" + + "\x0fnext_page_token\x18\x03 \x01(\fR\rnextPageToken\"\xd5\x03\n" + + "\x1cPollWorkflowTaskQueueRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12C\n" + + "\n" + + "task_queue\x18\x02 \x01(\v2$.temporal.api.taskqueue.v1.TaskQueueR\ttaskQueue\x12\x1a\n" + + "\bidentity\x18\x03 \x01(\tR\bidentity\x12.\n" + + "\x13worker_instance_key\x18\a \x01(\tR\x11workerInstanceKey\x12+\n" + + "\x0fbinary_checksum\x18\x04 \x01(\tB\x02\x18\x01R\x0ebinaryChecksum\x12u\n" + + "\x1bworker_version_capabilities\x18\x05 \x01(\v21.temporal.api.common.v1.WorkerVersionCapabilitiesB\x02\x18\x01R\x19workerVersionCapabilities\x12b\n" + + "\x12deployment_options\x18\x06 \x01(\v23.temporal.api.deployment.v1.WorkerDeploymentOptionsR\x11deploymentOptions\"\x8d\t\n" + + "\x1dPollWorkflowTaskQueueResponse\x12\x1d\n" + + "\n" + + "task_token\x18\x01 \x01(\fR\ttaskToken\x12X\n" + + "\x12workflow_execution\x18\x02 \x01(\v2).temporal.api.common.v1.WorkflowExecutionR\x11workflowExecution\x12I\n" + + "\rworkflow_type\x18\x03 \x01(\v2$.temporal.api.common.v1.WorkflowTypeR\fworkflowType\x129\n" + + "\x19previous_started_event_id\x18\x04 \x01(\x03R\x16previousStartedEventId\x12(\n" + + "\x10started_event_id\x18\x05 \x01(\x03R\x0estartedEventId\x12\x18\n" + + "\aattempt\x18\x06 \x01(\x05R\aattempt\x12,\n" + + "\x12backlog_count_hint\x18\a \x01(\x03R\x10backlogCountHint\x12:\n" + + "\ahistory\x18\b \x01(\v2 .temporal.api.history.v1.HistoryR\ahistory\x12&\n" + + "\x0fnext_page_token\x18\t \x01(\fR\rnextPageToken\x12:\n" + + "\x05query\x18\n" + + " \x01(\v2$.temporal.api.query.v1.WorkflowQueryR\x05query\x12g\n" + + "\x1dworkflow_execution_task_queue\x18\v \x01(\v2$.temporal.api.taskqueue.v1.TaskQueueR\x1aworkflowExecutionTaskQueue\x12A\n" + + "\x0escheduled_time\x18\f \x01(\v2\x1a.google.protobuf.TimestampR\rscheduledTime\x12=\n" + + "\fstarted_time\x18\r \x01(\v2\x1a.google.protobuf.TimestampR\vstartedTime\x12e\n" + + "\aqueries\x18\x0e \x03(\v2K.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse.QueriesEntryR\aqueries\x12=\n" + + "\bmessages\x18\x0f \x03(\v2!.temporal.api.protocol.v1.MessageR\bmessages\x12h\n" + + "\x17poller_scaling_decision\x18\x10 \x01(\v20.temporal.api.taskqueue.v1.PollerScalingDecisionR\x15pollerScalingDecision\x1a`\n" + + "\fQueriesEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12:\n" + + "\x05value\x18\x02 \x01(\v2$.temporal.api.query.v1.WorkflowQueryR\x05value:\x028\x01\"\xf6\v\n" + + "#RespondWorkflowTaskCompletedRequest\x12\x1d\n" + + "\n" + + "task_token\x18\x01 \x01(\fR\ttaskToken\x12<\n" + + "\bcommands\x18\x02 \x03(\v2 .temporal.api.command.v1.CommandR\bcommands\x12\x1a\n" + + "\bidentity\x18\x03 \x01(\tR\bidentity\x12a\n" + + "\x11sticky_attributes\x18\x04 \x01(\v24.temporal.api.taskqueue.v1.StickyExecutionAttributesR\x10stickyAttributes\x127\n" + + "\x18return_new_workflow_task\x18\x05 \x01(\bR\x15returnNewWorkflowTask\x12B\n" + + "\x1eforce_create_new_workflow_task\x18\x06 \x01(\bR\x1aforceCreateNewWorkflowTask\x12+\n" + + "\x0fbinary_checksum\x18\a \x01(\tB\x02\x18\x01R\x0ebinaryChecksum\x12{\n" + + "\rquery_results\x18\b \x03(\v2V.temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedRequest.QueryResultsEntryR\fqueryResults\x12\x1c\n" + + "\tnamespace\x18\t \x01(\tR\tnamespace\x12`\n" + + "\x14worker_version_stamp\x18\n" + + " \x01(\v2*.temporal.api.common.v1.WorkerVersionStampB\x02\x18\x01R\x12workerVersionStamp\x12=\n" + + "\bmessages\x18\v \x03(\v2!.temporal.api.protocol.v1.MessageR\bmessages\x12U\n" + + "\fsdk_metadata\x18\f \x01(\v22.temporal.api.sdk.v1.WorkflowTaskCompletedMetadataR\vsdkMetadata\x12U\n" + + "\x11metering_metadata\x18\r \x01(\v2(.temporal.api.common.v1.MeteringMetadataR\x10meteringMetadata\x12u\n" + + "\fcapabilities\x18\x0e \x01(\v2Q.temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedRequest.CapabilitiesR\fcapabilities\x12J\n" + + "\n" + + "deployment\x18\x0f \x01(\v2&.temporal.api.deployment.v1.DeploymentB\x02\x18\x01R\n" + + "deployment\x12Z\n" + + "\x13versioning_behavior\x18\x10 \x01(\x0e2).temporal.api.enums.v1.VersioningBehaviorR\x12versioningBehavior\x12b\n" + + "\x12deployment_options\x18\x11 \x01(\v23.temporal.api.deployment.v1.WorkerDeploymentOptionsR\x11deploymentOptions\x1ak\n" + + "\x11QueryResultsEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12@\n" + + "\x05value\x18\x02 \x01(\v2*.temporal.api.query.v1.WorkflowQueryResultR\x05value:\x028\x01\x1ao\n" + + "\fCapabilities\x12_\n" + + "-discard_speculative_workflow_task_with_events\x18\x01 \x01(\bR(discardSpeculativeWorkflowTaskWithEvents\"\xa7\x02\n" + + "$RespondWorkflowTaskCompletedResponse\x12c\n" + + "\rworkflow_task\x18\x01 \x01(\v2>.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponseR\fworkflowTask\x12e\n" + + "\x0eactivity_tasks\x18\x02 \x03(\v2>.temporal.api.workflowservice.v1.PollActivityTaskQueueResponseR\ractivityTasks\x123\n" + + "\x16reset_history_event_id\x18\x03 \x01(\x03R\x13resetHistoryEventId\"\xf0\x04\n" + + " RespondWorkflowTaskFailedRequest\x12\x1d\n" + + "\n" + + "task_token\x18\x01 \x01(\fR\ttaskToken\x12D\n" + + "\x05cause\x18\x02 \x01(\x0e2..temporal.api.enums.v1.WorkflowTaskFailedCauseR\x05cause\x12:\n" + + "\afailure\x18\x03 \x01(\v2 .temporal.api.failure.v1.FailureR\afailure\x12\x1a\n" + + "\bidentity\x18\x04 \x01(\tR\bidentity\x12+\n" + + "\x0fbinary_checksum\x18\x05 \x01(\tB\x02\x18\x01R\x0ebinaryChecksum\x12\x1c\n" + + "\tnamespace\x18\x06 \x01(\tR\tnamespace\x12=\n" + + "\bmessages\x18\a \x03(\v2!.temporal.api.protocol.v1.MessageR\bmessages\x12U\n" + + "\x0eworker_version\x18\b \x01(\v2*.temporal.api.common.v1.WorkerVersionStampB\x02\x18\x01R\rworkerVersion\x12J\n" + + "\n" + + "deployment\x18\t \x01(\v2&.temporal.api.deployment.v1.DeploymentB\x02\x18\x01R\n" + + "deployment\x12b\n" + + "\x12deployment_options\x18\n" + + " \x01(\v23.temporal.api.deployment.v1.WorkerDeploymentOptionsR\x11deploymentOptions\"#\n" + + "!RespondWorkflowTaskFailedResponse\"\x86\x04\n" + + "\x1cPollActivityTaskQueueRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12C\n" + + "\n" + + "task_queue\x18\x02 \x01(\v2$.temporal.api.taskqueue.v1.TaskQueueR\ttaskQueue\x12\x1a\n" + + "\bidentity\x18\x03 \x01(\tR\bidentity\x12.\n" + + "\x13worker_instance_key\x18\a \x01(\tR\x11workerInstanceKey\x12\\\n" + + "\x13task_queue_metadata\x18\x04 \x01(\v2,.temporal.api.taskqueue.v1.TaskQueueMetadataR\x11taskQueueMetadata\x12u\n" + + "\x1bworker_version_capabilities\x18\x05 \x01(\v21.temporal.api.common.v1.WorkerVersionCapabilitiesB\x02\x18\x01R\x19workerVersionCapabilities\x12b\n" + + "\x12deployment_options\x18\x06 \x01(\v23.temporal.api.deployment.v1.WorkerDeploymentOptionsR\x11deploymentOptions\"\xc0\n" + + "\n" + + "\x1dPollActivityTaskQueueResponse\x12\x1d\n" + + "\n" + + "task_token\x18\x01 \x01(\fR\ttaskToken\x12-\n" + + "\x12workflow_namespace\x18\x02 \x01(\tR\x11workflowNamespace\x12I\n" + + "\rworkflow_type\x18\x03 \x01(\v2$.temporal.api.common.v1.WorkflowTypeR\fworkflowType\x12X\n" + + "\x12workflow_execution\x18\x04 \x01(\v2).temporal.api.common.v1.WorkflowExecutionR\x11workflowExecution\x12I\n" + + "\ractivity_type\x18\x05 \x01(\v2$.temporal.api.common.v1.ActivityTypeR\factivityType\x12\x1f\n" + + "\vactivity_id\x18\x06 \x01(\tR\n" + + "activityId\x126\n" + + "\x06header\x18\a \x01(\v2\x1e.temporal.api.common.v1.HeaderR\x06header\x126\n" + + "\x05input\x18\b \x01(\v2 .temporal.api.common.v1.PayloadsR\x05input\x12M\n" + + "\x11heartbeat_details\x18\t \x01(\v2 .temporal.api.common.v1.PayloadsR\x10heartbeatDetails\x12A\n" + + "\x0escheduled_time\x18\n" + + " \x01(\v2\x1a.google.protobuf.TimestampR\rscheduledTime\x12_\n" + + "\x1ecurrent_attempt_scheduled_time\x18\v \x01(\v2\x1a.google.protobuf.TimestampR\x1bcurrentAttemptScheduledTime\x12=\n" + + "\fstarted_time\x18\f \x01(\v2\x1a.google.protobuf.TimestampR\vstartedTime\x12\x18\n" + + "\aattempt\x18\r \x01(\x05R\aattempt\x12T\n" + + "\x19schedule_to_close_timeout\x18\x0e \x01(\v2\x19.google.protobuf.DurationR\x16scheduleToCloseTimeout\x12N\n" + + "\x16start_to_close_timeout\x18\x0f \x01(\v2\x19.google.protobuf.DurationR\x13startToCloseTimeout\x12F\n" + + "\x11heartbeat_timeout\x18\x10 \x01(\v2\x19.google.protobuf.DurationR\x10heartbeatTimeout\x12F\n" + + "\fretry_policy\x18\x11 \x01(\v2#.temporal.api.common.v1.RetryPolicyR\vretryPolicy\x12h\n" + + "\x17poller_scaling_decision\x18\x12 \x01(\v20.temporal.api.taskqueue.v1.PollerScalingDecisionR\x15pollerScalingDecision\x12<\n" + + "\bpriority\x18\x13 \x01(\v2 .temporal.api.common.v1.PriorityR\bpriority\x12&\n" + + "\x0factivity_run_id\x18\x14 \x01(\tR\ractivityRunId\"\xb9\x01\n" + + "\"RecordActivityTaskHeartbeatRequest\x12\x1d\n" + + "\n" + + "task_token\x18\x01 \x01(\fR\ttaskToken\x12:\n" + + "\adetails\x18\x02 \x01(\v2 .temporal.api.common.v1.PayloadsR\adetails\x12\x1a\n" + + "\bidentity\x18\x03 \x01(\tR\bidentity\x12\x1c\n" + + "\tnamespace\x18\x04 \x01(\tR\tnamespace\"\xa0\x01\n" + + "#RecordActivityTaskHeartbeatResponse\x12)\n" + + "\x10cancel_requested\x18\x01 \x01(\bR\x0fcancelRequested\x12'\n" + + "\x0factivity_paused\x18\x02 \x01(\bR\x0eactivityPaused\x12%\n" + + "\x0eactivity_reset\x18\x03 \x01(\bR\ractivityReset\"\xf7\x01\n" + + "&RecordActivityTaskHeartbeatByIdRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x1f\n" + + "\vworkflow_id\x18\x02 \x01(\tR\n" + + "workflowId\x12\x15\n" + + "\x06run_id\x18\x03 \x01(\tR\x05runId\x12\x1f\n" + + "\vactivity_id\x18\x04 \x01(\tR\n" + + "activityId\x12:\n" + + "\adetails\x18\x05 \x01(\v2 .temporal.api.common.v1.PayloadsR\adetails\x12\x1a\n" + + "\bidentity\x18\x06 \x01(\tR\bidentity\"\xa4\x01\n" + + "'RecordActivityTaskHeartbeatByIdResponse\x12)\n" + + "\x10cancel_requested\x18\x01 \x01(\bR\x0fcancelRequested\x12'\n" + + "\x0factivity_paused\x18\x02 \x01(\bR\x0eactivityPaused\x12%\n" + + "\x0eactivity_reset\x18\x03 \x01(\bR\ractivityReset\"\xbf\x03\n" + + "#RespondActivityTaskCompletedRequest\x12\x1d\n" + + "\n" + + "task_token\x18\x01 \x01(\fR\ttaskToken\x128\n" + + "\x06result\x18\x02 \x01(\v2 .temporal.api.common.v1.PayloadsR\x06result\x12\x1a\n" + + "\bidentity\x18\x03 \x01(\tR\bidentity\x12\x1c\n" + + "\tnamespace\x18\x04 \x01(\tR\tnamespace\x12U\n" + + "\x0eworker_version\x18\x05 \x01(\v2*.temporal.api.common.v1.WorkerVersionStampB\x02\x18\x01R\rworkerVersion\x12J\n" + + "\n" + + "deployment\x18\x06 \x01(\v2&.temporal.api.deployment.v1.DeploymentB\x02\x18\x01R\n" + + "deployment\x12b\n" + + "\x12deployment_options\x18\a \x01(\v23.temporal.api.deployment.v1.WorkerDeploymentOptionsR\x11deploymentOptions\"&\n" + + "$RespondActivityTaskCompletedResponse\"\xf6\x01\n" + + "'RespondActivityTaskCompletedByIdRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x1f\n" + + "\vworkflow_id\x18\x02 \x01(\tR\n" + + "workflowId\x12\x15\n" + + "\x06run_id\x18\x03 \x01(\tR\x05runId\x12\x1f\n" + + "\vactivity_id\x18\x04 \x01(\tR\n" + + "activityId\x128\n" + + "\x06result\x18\x05 \x01(\v2 .temporal.api.common.v1.PayloadsR\x06result\x12\x1a\n" + + "\bidentity\x18\x06 \x01(\tR\bidentity\"*\n" + + "(RespondActivityTaskCompletedByIdResponse\"\x96\x04\n" + + " RespondActivityTaskFailedRequest\x12\x1d\n" + + "\n" + + "task_token\x18\x01 \x01(\fR\ttaskToken\x12:\n" + + "\afailure\x18\x02 \x01(\v2 .temporal.api.failure.v1.FailureR\afailure\x12\x1a\n" + + "\bidentity\x18\x03 \x01(\tR\bidentity\x12\x1c\n" + + "\tnamespace\x18\x04 \x01(\tR\tnamespace\x12V\n" + + "\x16last_heartbeat_details\x18\x05 \x01(\v2 .temporal.api.common.v1.PayloadsR\x14lastHeartbeatDetails\x12U\n" + + "\x0eworker_version\x18\x06 \x01(\v2*.temporal.api.common.v1.WorkerVersionStampB\x02\x18\x01R\rworkerVersion\x12J\n" + + "\n" + + "deployment\x18\a \x01(\v2&.temporal.api.deployment.v1.DeploymentB\x02\x18\x01R\n" + + "deployment\x12b\n" + + "\x12deployment_options\x18\b \x01(\v23.temporal.api.deployment.v1.WorkerDeploymentOptionsR\x11deploymentOptions\"a\n" + + "!RespondActivityTaskFailedResponse\x12<\n" + + "\bfailures\x18\x01 \x03(\v2 .temporal.api.failure.v1.FailureR\bfailures\"\xcd\x02\n" + + "$RespondActivityTaskFailedByIdRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x1f\n" + + "\vworkflow_id\x18\x02 \x01(\tR\n" + + "workflowId\x12\x15\n" + + "\x06run_id\x18\x03 \x01(\tR\x05runId\x12\x1f\n" + + "\vactivity_id\x18\x04 \x01(\tR\n" + + "activityId\x12:\n" + + "\afailure\x18\x05 \x01(\v2 .temporal.api.failure.v1.FailureR\afailure\x12\x1a\n" + + "\bidentity\x18\x06 \x01(\tR\bidentity\x12V\n" + + "\x16last_heartbeat_details\x18\a \x01(\v2 .temporal.api.common.v1.PayloadsR\x14lastHeartbeatDetails\"e\n" + + "%RespondActivityTaskFailedByIdResponse\x12<\n" + + "\bfailures\x18\x01 \x03(\v2 .temporal.api.failure.v1.FailureR\bfailures\"\xc0\x03\n" + + "\"RespondActivityTaskCanceledRequest\x12\x1d\n" + + "\n" + + "task_token\x18\x01 \x01(\fR\ttaskToken\x12:\n" + + "\adetails\x18\x02 \x01(\v2 .temporal.api.common.v1.PayloadsR\adetails\x12\x1a\n" + + "\bidentity\x18\x03 \x01(\tR\bidentity\x12\x1c\n" + + "\tnamespace\x18\x04 \x01(\tR\tnamespace\x12U\n" + + "\x0eworker_version\x18\x05 \x01(\v2*.temporal.api.common.v1.WorkerVersionStampB\x02\x18\x01R\rworkerVersion\x12J\n" + + "\n" + + "deployment\x18\x06 \x01(\v2&.temporal.api.deployment.v1.DeploymentB\x02\x18\x01R\n" + + "deployment\x12b\n" + + "\x12deployment_options\x18\a \x01(\v23.temporal.api.deployment.v1.WorkerDeploymentOptionsR\x11deploymentOptions\"%\n" + + "#RespondActivityTaskCanceledResponse\"\xdb\x02\n" + + "&RespondActivityTaskCanceledByIdRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x1f\n" + + "\vworkflow_id\x18\x02 \x01(\tR\n" + + "workflowId\x12\x15\n" + + "\x06run_id\x18\x03 \x01(\tR\x05runId\x12\x1f\n" + + "\vactivity_id\x18\x04 \x01(\tR\n" + + "activityId\x12:\n" + + "\adetails\x18\x05 \x01(\v2 .temporal.api.common.v1.PayloadsR\adetails\x12\x1a\n" + + "\bidentity\x18\x06 \x01(\tR\bidentity\x12b\n" + + "\x12deployment_options\x18\a \x01(\v23.temporal.api.deployment.v1.WorkerDeploymentOptionsR\x11deploymentOptions\")\n" + + "'RespondActivityTaskCanceledByIdResponse\"\xdb\x02\n" + + "%RequestCancelWorkflowExecutionRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12X\n" + + "\x12workflow_execution\x18\x02 \x01(\v2).temporal.api.common.v1.WorkflowExecutionR\x11workflowExecution\x12\x1a\n" + + "\bidentity\x18\x03 \x01(\tR\bidentity\x12\x1d\n" + + "\n" + + "request_id\x18\x04 \x01(\tR\trequestId\x123\n" + + "\x16first_execution_run_id\x18\x05 \x01(\tR\x13firstExecutionRunId\x12\x16\n" + + "\x06reason\x18\x06 \x01(\tR\x06reason\x122\n" + + "\x05links\x18\a \x03(\v2\x1c.temporal.api.common.v1.LinkR\x05links\"(\n" + + "&RequestCancelWorkflowExecutionResponse\"\xbc\x03\n" + + "\x1eSignalWorkflowExecutionRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12X\n" + + "\x12workflow_execution\x18\x02 \x01(\v2).temporal.api.common.v1.WorkflowExecutionR\x11workflowExecution\x12\x1f\n" + + "\vsignal_name\x18\x03 \x01(\tR\n" + + "signalName\x126\n" + + "\x05input\x18\x04 \x01(\v2 .temporal.api.common.v1.PayloadsR\x05input\x12\x1a\n" + + "\bidentity\x18\x05 \x01(\tR\bidentity\x12\x1d\n" + + "\n" + + "request_id\x18\x06 \x01(\tR\trequestId\x12\x1c\n" + + "\acontrol\x18\a \x01(\tB\x02\x18\x01R\acontrol\x126\n" + + "\x06header\x18\b \x01(\v2\x1e.temporal.api.common.v1.HeaderR\x06header\x122\n" + + "\x05links\x18\n" + + " \x03(\v2\x1c.temporal.api.common.v1.LinkR\x05linksJ\x04\b\t\x10\n" + + "\"!\n" + + "\x1fSignalWorkflowExecutionResponse\"\xd5\f\n" + + "'SignalWithStartWorkflowExecutionRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x1f\n" + + "\vworkflow_id\x18\x02 \x01(\tR\n" + + "workflowId\x12I\n" + + "\rworkflow_type\x18\x03 \x01(\v2$.temporal.api.common.v1.WorkflowTypeR\fworkflowType\x12C\n" + + "\n" + + "task_queue\x18\x04 \x01(\v2$.temporal.api.taskqueue.v1.TaskQueueR\ttaskQueue\x126\n" + + "\x05input\x18\x05 \x01(\v2 .temporal.api.common.v1.PayloadsR\x05input\x12W\n" + + "\x1aworkflow_execution_timeout\x18\x06 \x01(\v2\x19.google.protobuf.DurationR\x18workflowExecutionTimeout\x12K\n" + + "\x14workflow_run_timeout\x18\a \x01(\v2\x19.google.protobuf.DurationR\x12workflowRunTimeout\x12M\n" + + "\x15workflow_task_timeout\x18\b \x01(\v2\x19.google.protobuf.DurationR\x13workflowTaskTimeout\x12\x1a\n" + + "\bidentity\x18\t \x01(\tR\bidentity\x12\x1d\n" + + "\n" + + "request_id\x18\n" + + " \x01(\tR\trequestId\x12e\n" + + "\x18workflow_id_reuse_policy\x18\v \x01(\x0e2,.temporal.api.enums.v1.WorkflowIdReusePolicyR\x15workflowIdReusePolicy\x12n\n" + + "\x1bworkflow_id_conflict_policy\x18\x16 \x01(\x0e2/.temporal.api.enums.v1.WorkflowIdConflictPolicyR\x18workflowIdConflictPolicy\x12\x1f\n" + + "\vsignal_name\x18\f \x01(\tR\n" + + "signalName\x12C\n" + + "\fsignal_input\x18\r \x01(\v2 .temporal.api.common.v1.PayloadsR\vsignalInput\x12\x1c\n" + + "\acontrol\x18\x0e \x01(\tB\x02\x18\x01R\acontrol\x12F\n" + + "\fretry_policy\x18\x0f \x01(\v2#.temporal.api.common.v1.RetryPolicyR\vretryPolicy\x12#\n" + + "\rcron_schedule\x18\x10 \x01(\tR\fcronSchedule\x120\n" + + "\x04memo\x18\x11 \x01(\v2\x1c.temporal.api.common.v1.MemoR\x04memo\x12U\n" + + "\x11search_attributes\x18\x12 \x01(\v2(.temporal.api.common.v1.SearchAttributesR\x10searchAttributes\x126\n" + + "\x06header\x18\x13 \x01(\v2\x1e.temporal.api.common.v1.HeaderR\x06header\x12K\n" + + "\x14workflow_start_delay\x18\x14 \x01(\v2\x19.google.protobuf.DurationR\x12workflowStartDelay\x12F\n" + + "\ruser_metadata\x18\x17 \x01(\v2!.temporal.api.sdk.v1.UserMetadataR\fuserMetadata\x122\n" + + "\x05links\x18\x18 \x03(\v2\x1c.temporal.api.common.v1.LinkR\x05links\x12]\n" + + "\x13versioning_override\x18\x19 \x01(\v2,.temporal.api.workflow.v1.VersioningOverrideR\x12versioningOverride\x12<\n" + + "\bpriority\x18\x1a \x01(\v2 .temporal.api.common.v1.PriorityR\bpriorityJ\x04\b\x15\x10\x16\"[\n" + + "(SignalWithStartWorkflowExecutionResponse\x12\x15\n" + + "\x06run_id\x18\x01 \x01(\tR\x05runId\x12\x18\n" + + "\astarted\x18\x02 \x01(\bR\astarted\"\xd8\x04\n" + + "\x1dResetWorkflowExecutionRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12X\n" + + "\x12workflow_execution\x18\x02 \x01(\v2).temporal.api.common.v1.WorkflowExecutionR\x11workflowExecution\x12\x16\n" + + "\x06reason\x18\x03 \x01(\tR\x06reason\x12@\n" + + "\x1dworkflow_task_finish_event_id\x18\x04 \x01(\x03R\x19workflowTaskFinishEventId\x12\x1d\n" + + "\n" + + "request_id\x18\x05 \x01(\tR\trequestId\x12Y\n" + + "\x12reset_reapply_type\x18\x06 \x01(\x0e2'.temporal.api.enums.v1.ResetReapplyTypeB\x02\x18\x01R\x10resetReapplyType\x12m\n" + + "\x1breset_reapply_exclude_types\x18\a \x03(\x0e2..temporal.api.enums.v1.ResetReapplyExcludeTypeR\x18resetReapplyExcludeTypes\x12`\n" + + "\x15post_reset_operations\x18\b \x03(\v2,.temporal.api.workflow.v1.PostResetOperationR\x13postResetOperations\x12\x1a\n" + + "\bidentity\x18\t \x01(\tR\bidentity\"7\n" + + "\x1eResetWorkflowExecutionResponse\x12\x15\n" + + "\x06run_id\x18\x01 \x01(\tR\x05runId\"\xf4\x02\n" + + "!TerminateWorkflowExecutionRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12X\n" + + "\x12workflow_execution\x18\x02 \x01(\v2).temporal.api.common.v1.WorkflowExecutionR\x11workflowExecution\x12\x16\n" + + "\x06reason\x18\x03 \x01(\tR\x06reason\x12:\n" + + "\adetails\x18\x04 \x01(\v2 .temporal.api.common.v1.PayloadsR\adetails\x12\x1a\n" + + "\bidentity\x18\x05 \x01(\tR\bidentity\x123\n" + + "\x16first_execution_run_id\x18\x06 \x01(\tR\x13firstExecutionRunId\x122\n" + + "\x05links\x18\a \x03(\v2\x1c.temporal.api.common.v1.LinkR\x05links\"$\n" + + "\"TerminateWorkflowExecutionResponse\"\x98\x01\n" + + "\x1eDeleteWorkflowExecutionRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12X\n" + + "\x12workflow_execution\x18\x02 \x01(\v2).temporal.api.common.v1.WorkflowExecutionR\x11workflowExecution\"!\n" + + "\x1fDeleteWorkflowExecutionResponse\"\xa2\x03\n" + + "!ListOpenWorkflowExecutionsRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12*\n" + + "\x11maximum_page_size\x18\x02 \x01(\x05R\x0fmaximumPageSize\x12&\n" + + "\x0fnext_page_token\x18\x03 \x01(\fR\rnextPageToken\x12S\n" + + "\x11start_time_filter\x18\x04 \x01(\v2'.temporal.api.filter.v1.StartTimeFilterR\x0fstartTimeFilter\x12\\\n" + + "\x10execution_filter\x18\x05 \x01(\v2/.temporal.api.filter.v1.WorkflowExecutionFilterH\x00R\x0fexecutionFilter\x12M\n" + + "\vtype_filter\x18\x06 \x01(\v2*.temporal.api.filter.v1.WorkflowTypeFilterH\x00R\n" + + "typeFilterB\t\n" + + "\afilters\"\x9d\x01\n" + + "\"ListOpenWorkflowExecutionsResponse\x12O\n" + + "\n" + + "executions\x18\x01 \x03(\v2/.temporal.api.workflow.v1.WorkflowExecutionInfoR\n" + + "executions\x12&\n" + + "\x0fnext_page_token\x18\x02 \x01(\fR\rnextPageToken\"\xf1\x03\n" + + "#ListClosedWorkflowExecutionsRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12*\n" + + "\x11maximum_page_size\x18\x02 \x01(\x05R\x0fmaximumPageSize\x12&\n" + + "\x0fnext_page_token\x18\x03 \x01(\fR\rnextPageToken\x12S\n" + + "\x11start_time_filter\x18\x04 \x01(\v2'.temporal.api.filter.v1.StartTimeFilterR\x0fstartTimeFilter\x12\\\n" + + "\x10execution_filter\x18\x05 \x01(\v2/.temporal.api.filter.v1.WorkflowExecutionFilterH\x00R\x0fexecutionFilter\x12M\n" + + "\vtype_filter\x18\x06 \x01(\v2*.temporal.api.filter.v1.WorkflowTypeFilterH\x00R\n" + + "typeFilter\x12K\n" + + "\rstatus_filter\x18\a \x01(\v2$.temporal.api.filter.v1.StatusFilterH\x00R\fstatusFilterB\t\n" + + "\afilters\"\x9f\x01\n" + + "$ListClosedWorkflowExecutionsResponse\x12O\n" + + "\n" + + "executions\x18\x01 \x03(\v2/.temporal.api.workflow.v1.WorkflowExecutionInfoR\n" + + "executions\x12&\n" + + "\x0fnext_page_token\x18\x02 \x01(\fR\rnextPageToken\"\x98\x01\n" + + "\x1dListWorkflowExecutionsRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x1b\n" + + "\tpage_size\x18\x02 \x01(\x05R\bpageSize\x12&\n" + + "\x0fnext_page_token\x18\x03 \x01(\fR\rnextPageToken\x12\x14\n" + + "\x05query\x18\x04 \x01(\tR\x05query\"\x99\x01\n" + + "\x1eListWorkflowExecutionsResponse\x12O\n" + + "\n" + + "executions\x18\x01 \x03(\v2/.temporal.api.workflow.v1.WorkflowExecutionInfoR\n" + + "executions\x12&\n" + + "\x0fnext_page_token\x18\x02 \x01(\fR\rnextPageToken\"\xa0\x01\n" + + "%ListArchivedWorkflowExecutionsRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x1b\n" + + "\tpage_size\x18\x02 \x01(\x05R\bpageSize\x12&\n" + + "\x0fnext_page_token\x18\x03 \x01(\fR\rnextPageToken\x12\x14\n" + + "\x05query\x18\x04 \x01(\tR\x05query\"\xa1\x01\n" + + "&ListArchivedWorkflowExecutionsResponse\x12O\n" + + "\n" + + "executions\x18\x01 \x03(\v2/.temporal.api.workflow.v1.WorkflowExecutionInfoR\n" + + "executions\x12&\n" + + "\x0fnext_page_token\x18\x02 \x01(\fR\rnextPageToken\"\x98\x01\n" + + "\x1dScanWorkflowExecutionsRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x1b\n" + + "\tpage_size\x18\x02 \x01(\x05R\bpageSize\x12&\n" + + "\x0fnext_page_token\x18\x03 \x01(\fR\rnextPageToken\x12\x14\n" + + "\x05query\x18\x04 \x01(\tR\x05query\"\x99\x01\n" + + "\x1eScanWorkflowExecutionsResponse\x12O\n" + + "\n" + + "executions\x18\x01 \x03(\v2/.temporal.api.workflow.v1.WorkflowExecutionInfoR\n" + + "executions\x12&\n" + + "\x0fnext_page_token\x18\x02 \x01(\fR\rnextPageToken\"T\n" + + "\x1eCountWorkflowExecutionsRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x14\n" + + "\x05query\x18\x02 \x01(\tR\x05query\"\x90\x02\n" + + "\x1fCountWorkflowExecutionsResponse\x12\x14\n" + + "\x05count\x18\x01 \x01(\x03R\x05count\x12i\n" + + "\x06groups\x18\x02 \x03(\v2Q.temporal.api.workflowservice.v1.CountWorkflowExecutionsResponse.AggregationGroupR\x06groups\x1al\n" + + "\x10AggregationGroup\x12B\n" + + "\fgroup_values\x18\x01 \x03(\v2\x1f.temporal.api.common.v1.PayloadR\vgroupValues\x12\x14\n" + + "\x05count\x18\x02 \x01(\x03R\x05count\"\x1c\n" + + "\x1aGetSearchAttributesRequest\"\xdb\x01\n" + + "\x1bGetSearchAttributesResponse\x12Z\n" + + "\x04keys\x18\x01 \x03(\v2F.temporal.api.workflowservice.v1.GetSearchAttributesResponse.KeysEntryR\x04keys\x1a`\n" + + "\tKeysEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12=\n" + + "\x05value\x18\x02 \x01(\x0e2'.temporal.api.enums.v1.IndexedValueTypeR\x05value:\x028\x01\"\xa0\x03\n" + + " RespondQueryTaskCompletedRequest\x12\x1d\n" + + "\n" + + "task_token\x18\x01 \x01(\fR\ttaskToken\x12M\n" + + "\x0ecompleted_type\x18\x02 \x01(\x0e2&.temporal.api.enums.v1.QueryResultTypeR\rcompletedType\x12C\n" + + "\fquery_result\x18\x03 \x01(\v2 .temporal.api.common.v1.PayloadsR\vqueryResult\x12#\n" + + "\rerror_message\x18\x04 \x01(\tR\ferrorMessage\x12\x1c\n" + + "\tnamespace\x18\x06 \x01(\tR\tnamespace\x12:\n" + + "\afailure\x18\a \x01(\v2 .temporal.api.failure.v1.FailureR\afailure\x12D\n" + + "\x05cause\x18\b \x01(\x0e2..temporal.api.enums.v1.WorkflowTaskFailedCauseR\x05causeJ\x04\b\x05\x10\x06\"#\n" + + "!RespondQueryTaskCompletedResponse\"\x84\x01\n" + + "\x1bResetStickyTaskQueueRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12G\n" + + "\texecution\x18\x02 \x01(\v2).temporal.api.common.v1.WorkflowExecutionR\texecution\"\x1e\n" + + "\x1cResetStickyTaskQueueResponse\"\x88\x03\n" + + "\x15ShutdownWorkerRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12*\n" + + "\x11sticky_task_queue\x18\x02 \x01(\tR\x0fstickyTaskQueue\x12\x1a\n" + + "\bidentity\x18\x03 \x01(\tR\bidentity\x12\x16\n" + + "\x06reason\x18\x04 \x01(\tR\x06reason\x12R\n" + + "\x10worker_heartbeat\x18\x05 \x01(\v2'.temporal.api.worker.v1.WorkerHeartbeatR\x0fworkerHeartbeat\x12.\n" + + "\x13worker_instance_key\x18\x06 \x01(\tR\x11workerInstanceKey\x12\x1d\n" + + "\n" + + "task_queue\x18\a \x01(\tR\ttaskQueue\x12N\n" + + "\x10task_queue_types\x18\b \x03(\x0e2$.temporal.api.enums.v1.TaskQueueTypeR\x0etaskQueueTypes\"\x18\n" + + "\x16ShutdownWorkerResponse\"\x9c\x02\n" + + "\x14QueryWorkflowRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12G\n" + + "\texecution\x18\x02 \x01(\v2).temporal.api.common.v1.WorkflowExecutionR\texecution\x12:\n" + + "\x05query\x18\x03 \x01(\v2$.temporal.api.query.v1.WorkflowQueryR\x05query\x12a\n" + + "\x16query_reject_condition\x18\x04 \x01(\x0e2+.temporal.api.enums.v1.QueryRejectConditionR\x14queryRejectCondition\"\xa9\x01\n" + + "\x15QueryWorkflowResponse\x12C\n" + + "\fquery_result\x18\x01 \x01(\v2 .temporal.api.common.v1.PayloadsR\vqueryResult\x12K\n" + + "\x0equery_rejected\x18\x02 \x01(\v2$.temporal.api.query.v1.QueryRejectedR\rqueryRejected\"\x89\x01\n" + + " DescribeWorkflowExecutionRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12G\n" + + "\texecution\x18\x02 \x01(\v2).temporal.api.common.v1.WorkflowExecutionR\texecution\"\xb3\x06\n" + + "!DescribeWorkflowExecutionResponse\x12\\\n" + + "\x10execution_config\x18\x01 \x01(\v21.temporal.api.workflow.v1.WorkflowExecutionConfigR\x0fexecutionConfig\x12g\n" + + "\x17workflow_execution_info\x18\x02 \x01(\v2/.temporal.api.workflow.v1.WorkflowExecutionInfoR\x15workflowExecutionInfo\x12\\\n" + + "\x12pending_activities\x18\x03 \x03(\v2-.temporal.api.workflow.v1.PendingActivityInfoR\x11pendingActivities\x12^\n" + + "\x10pending_children\x18\x04 \x03(\v23.temporal.api.workflow.v1.PendingChildExecutionInfoR\x0fpendingChildren\x12e\n" + + "\x15pending_workflow_task\x18\x05 \x01(\v21.temporal.api.workflow.v1.PendingWorkflowTaskInfoR\x13pendingWorkflowTask\x12D\n" + + "\tcallbacks\x18\x06 \x03(\v2&.temporal.api.workflow.v1.CallbackInfoR\tcallbacks\x12m\n" + + "\x18pending_nexus_operations\x18\a \x03(\v23.temporal.api.workflow.v1.PendingNexusOperationInfoR\x16pendingNexusOperations\x12m\n" + + "\x16workflow_extended_info\x18\b \x01(\v27.temporal.api.workflow.v1.WorkflowExecutionExtendedInfoR\x14workflowExtendedInfo\"\xb2\x05\n" + + "\x18DescribeTaskQueueRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12C\n" + + "\n" + + "task_queue\x18\x02 \x01(\v2$.temporal.api.taskqueue.v1.TaskQueueR\ttaskQueue\x12L\n" + + "\x0ftask_queue_type\x18\x03 \x01(\x0e2$.temporal.api.enums.v1.TaskQueueTypeR\rtaskQueueType\x12!\n" + + "\freport_stats\x18\b \x01(\bR\vreportStats\x12#\n" + + "\rreport_config\x18\v \x01(\bR\freportConfig\x12=\n" + + "\x19include_task_queue_status\x18\x04 \x01(\bB\x02\x18\x01R\x16includeTaskQueueStatus\x12K\n" + + "\bapi_mode\x18\x05 \x01(\x0e2,.temporal.api.enums.v1.DescribeTaskQueueModeB\x02\x18\x01R\aapiMode\x12T\n" + + "\bversions\x18\x06 \x01(\v24.temporal.api.taskqueue.v1.TaskQueueVersionSelectionB\x02\x18\x01R\bversions\x12R\n" + + "\x10task_queue_types\x18\a \x03(\x0e2$.temporal.api.enums.v1.TaskQueueTypeB\x02\x18\x01R\x0etaskQueueTypes\x12)\n" + + "\x0ereport_pollers\x18\t \x01(\bB\x02\x18\x01R\rreportPollers\x12<\n" + + "\x18report_task_reachability\x18\n" + + " \x01(\bB\x02\x18\x01R\x16reportTaskReachability\"\x99\t\n" + + "\x19DescribeTaskQueueResponse\x12?\n" + + "\apollers\x18\x01 \x03(\v2%.temporal.api.taskqueue.v1.PollerInfoR\apollers\x12?\n" + + "\x05stats\x18\x05 \x01(\v2).temporal.api.taskqueue.v1.TaskQueueStatsR\x05stats\x12\x85\x01\n" + + "\x15stats_by_priority_key\x18\b \x03(\v2R.temporal.api.workflowservice.v1.DescribeTaskQueueResponse.StatsByPriorityKeyEntryR\x12statsByPriorityKey\x12[\n" + + "\x0fversioning_info\x18\x04 \x01(\v22.temporal.api.taskqueue.v1.TaskQueueVersioningInfoR\x0eversioningInfo\x12B\n" + + "\x06config\x18\x06 \x01(\v2*.temporal.api.taskqueue.v1.TaskQueueConfigR\x06config\x12\x7f\n" + + "\x14effective_rate_limit\x18\a \x01(\v2M.temporal.api.workflowservice.v1.DescribeTaskQueueResponse.EffectiveRateLimitR\x12effectiveRateLimit\x12Z\n" + + "\x11task_queue_status\x18\x02 \x01(\v2*.temporal.api.taskqueue.v1.TaskQueueStatusB\x02\x18\x01R\x0ftaskQueueStatus\x12u\n" + + "\rversions_info\x18\x03 \x03(\v2L.temporal.api.workflowservice.v1.DescribeTaskQueueResponse.VersionsInfoEntryB\x02\x18\x01R\fversionsInfo\x1ap\n" + + "\x17StatsByPriorityKeyEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\x05R\x03key\x12?\n" + + "\x05value\x18\x02 \x01(\v2).temporal.api.taskqueue.v1.TaskQueueStatsR\x05value:\x028\x01\x1a\x98\x01\n" + + "\x12EffectiveRateLimit\x12.\n" + + "\x13requests_per_second\x18\x01 \x01(\x02R\x11requestsPerSecond\x12R\n" + + "\x11rate_limit_source\x18\x02 \x01(\x0e2&.temporal.api.enums.v1.RateLimitSourceR\x0frateLimitSource\x1ap\n" + + "\x11VersionsInfoEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12E\n" + + "\x05value\x18\x02 \x01(\v2/.temporal.api.taskqueue.v1.TaskQueueVersionInfoR\x05value:\x028\x01\"\x17\n" + + "\x15GetClusterInfoRequest\"\x8b\x05\n" + + "\x16GetClusterInfoResponse\x12z\n" + + "\x11supported_clients\x18\x01 \x03(\v2M.temporal.api.workflowservice.v1.GetClusterInfoResponse.SupportedClientsEntryR\x10supportedClients\x12%\n" + + "\x0eserver_version\x18\x02 \x01(\tR\rserverVersion\x12\x1d\n" + + "\n" + + "cluster_id\x18\x03 \x01(\tR\tclusterId\x12G\n" + + "\fversion_info\x18\x04 \x01(\v2$.temporal.api.version.v1.VersionInfoR\vversionInfo\x12!\n" + + "\fcluster_name\x18\x05 \x01(\tR\vclusterName\x12.\n" + + "\x13history_shard_count\x18\x06 \x01(\x05R\x11historyShardCount\x12+\n" + + "\x11persistence_store\x18\a \x01(\tR\x10persistenceStore\x12)\n" + + "\x10visibility_store\x18\b \x01(\tR\x0fvisibilityStore\x128\n" + + "\x18initial_failover_version\x18\t \x01(\x03R\x16initialFailoverVersion\x12<\n" + + "\x1afailover_version_increment\x18\n" + + " \x01(\x03R\x18failoverVersionIncrement\x1aC\n" + + "\x15SupportedClientsEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\x16\n" + + "\x14GetSystemInfoRequest\"\xfc\x05\n" + + "\x15GetSystemInfoResponse\x12%\n" + + "\x0eserver_version\x18\x01 \x01(\tR\rserverVersion\x12g\n" + + "\fcapabilities\x18\x02 \x01(\v2C.temporal.api.workflowservice.v1.GetSystemInfoResponse.CapabilitiesR\fcapabilities\x1a\xd2\x04\n" + + "\fCapabilities\x125\n" + + "\x17signal_and_query_header\x18\x01 \x01(\bR\x14signalAndQueryHeader\x12D\n" + + "\x1einternal_error_differentiation\x18\x02 \x01(\bR\x1cinternalErrorDifferentiation\x12K\n" + + "\"activity_failure_include_heartbeat\x18\x03 \x01(\bR\x1factivityFailureIncludeHeartbeat\x12-\n" + + "\x12supports_schedules\x18\x04 \x01(\bR\x11supportsSchedules\x12<\n" + + "\x1aencoded_failure_attributes\x18\x05 \x01(\bR\x18encodedFailureAttributes\x129\n" + + "\x19build_id_based_versioning\x18\x06 \x01(\bR\x16buildIdBasedVersioning\x12\x1f\n" + + "\vupsert_memo\x18\a \x01(\bR\n" + + "upsertMemo\x120\n" + + "\x14eager_workflow_start\x18\b \x01(\bR\x12eagerWorkflowStart\x12!\n" + + "\fsdk_metadata\x18\t \x01(\bR\vsdkMetadata\x12D\n" + + "\x1fcount_group_by_execution_status\x18\n" + + " \x01(\bR\x1bcountGroupByExecutionStatus\x12\x14\n" + + "\x05nexus\x18\v \x01(\bR\x05nexus\"\x83\x01\n" + + "\x1eListTaskQueuePartitionsRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12C\n" + + "\n" + + "task_queue\x18\x02 \x01(\v2$.temporal.api.taskqueue.v1.TaskQueueR\ttaskQueue\"\x99\x02\n" + + "\x1fListTaskQueuePartitionsResponse\x12z\n" + + "\x1eactivity_task_queue_partitions\x18\x01 \x03(\v25.temporal.api.taskqueue.v1.TaskQueuePartitionMetadataR\x1bactivityTaskQueuePartitions\x12z\n" + + "\x1eworkflow_task_queue_partitions\x18\x02 \x03(\v25.temporal.api.taskqueue.v1.TaskQueuePartitionMetadataR\x1bworkflowTaskQueuePartitions\"\xa8\x03\n" + + "\x15CreateScheduleRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x1f\n" + + "\vschedule_id\x18\x02 \x01(\tR\n" + + "scheduleId\x12>\n" + + "\bschedule\x18\x03 \x01(\v2\".temporal.api.schedule.v1.ScheduleR\bschedule\x12L\n" + + "\rinitial_patch\x18\x04 \x01(\v2'.temporal.api.schedule.v1.SchedulePatchR\finitialPatch\x12\x1a\n" + + "\bidentity\x18\x05 \x01(\tR\bidentity\x12\x1d\n" + + "\n" + + "request_id\x18\x06 \x01(\tR\trequestId\x120\n" + + "\x04memo\x18\a \x01(\v2\x1c.temporal.api.common.v1.MemoR\x04memo\x12U\n" + + "\x11search_attributes\x18\b \x01(\v2(.temporal.api.common.v1.SearchAttributesR\x10searchAttributes\"?\n" + + "\x16CreateScheduleResponse\x12%\n" + + "\x0econflict_token\x18\x01 \x01(\fR\rconflictToken\"X\n" + + "\x17DescribeScheduleRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x1f\n" + + "\vschedule_id\x18\x02 \x01(\tR\n" + + "scheduleId\"\xc6\x02\n" + + "\x18DescribeScheduleResponse\x12>\n" + + "\bschedule\x18\x01 \x01(\v2\".temporal.api.schedule.v1.ScheduleR\bschedule\x12:\n" + + "\x04info\x18\x02 \x01(\v2&.temporal.api.schedule.v1.ScheduleInfoR\x04info\x120\n" + + "\x04memo\x18\x03 \x01(\v2\x1c.temporal.api.common.v1.MemoR\x04memo\x12U\n" + + "\x11search_attributes\x18\x04 \x01(\v2(.temporal.api.common.v1.SearchAttributesR\x10searchAttributes\x12%\n" + + "\x0econflict_token\x18\x05 \x01(\fR\rconflictToken\"\xcf\x02\n" + + "\x15UpdateScheduleRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x1f\n" + + "\vschedule_id\x18\x02 \x01(\tR\n" + + "scheduleId\x12>\n" + + "\bschedule\x18\x03 \x01(\v2\".temporal.api.schedule.v1.ScheduleR\bschedule\x12%\n" + + "\x0econflict_token\x18\x04 \x01(\fR\rconflictToken\x12\x1a\n" + + "\bidentity\x18\x05 \x01(\tR\bidentity\x12\x1d\n" + + "\n" + + "request_id\x18\x06 \x01(\tR\trequestId\x12U\n" + + "\x11search_attributes\x18\a \x01(\v2(.temporal.api.common.v1.SearchAttributesR\x10searchAttributes\"\x18\n" + + "\x16UpdateScheduleResponse\"\xcf\x01\n" + + "\x14PatchScheduleRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x1f\n" + + "\vschedule_id\x18\x02 \x01(\tR\n" + + "scheduleId\x12=\n" + + "\x05patch\x18\x03 \x01(\v2'.temporal.api.schedule.v1.SchedulePatchR\x05patch\x12\x1a\n" + + "\bidentity\x18\x04 \x01(\tR\bidentity\x12\x1d\n" + + "\n" + + "request_id\x18\x05 \x01(\tR\trequestId\"\x17\n" + + "\x15PatchScheduleResponse\"\xd3\x01\n" + + " ListScheduleMatchingTimesRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x1f\n" + + "\vschedule_id\x18\x02 \x01(\tR\n" + + "scheduleId\x129\n" + + "\n" + + "start_time\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\tstartTime\x125\n" + + "\bend_time\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\aendTime\"^\n" + + "!ListScheduleMatchingTimesResponse\x129\n" + + "\n" + + "start_time\x18\x01 \x03(\v2\x1a.google.protobuf.TimestampR\tstartTime\"r\n" + + "\x15DeleteScheduleRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x1f\n" + + "\vschedule_id\x18\x02 \x01(\tR\n" + + "scheduleId\x12\x1a\n" + + "\bidentity\x18\x03 \x01(\tR\bidentity\"\x18\n" + + "\x16DeleteScheduleResponse\"\x9e\x01\n" + + "\x14ListSchedulesRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12*\n" + + "\x11maximum_page_size\x18\x02 \x01(\x05R\x0fmaximumPageSize\x12&\n" + + "\x0fnext_page_token\x18\x03 \x01(\fR\rnextPageToken\x12\x14\n" + + "\x05query\x18\x04 \x01(\tR\x05query\"\x8a\x01\n" + + "\x15ListSchedulesResponse\x12I\n" + + "\tschedules\x18\x01 \x03(\v2+.temporal.api.schedule.v1.ScheduleListEntryR\tschedules\x12&\n" + + "\x0fnext_page_token\x18\x02 \x01(\fR\rnextPageToken\"\xec\x06\n" + + "'UpdateWorkerBuildIdCompatibilityRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x1d\n" + + "\n" + + "task_queue\x18\x02 \x01(\tR\ttaskQueue\x12K\n" + + "#add_new_build_id_in_new_default_set\x18\x03 \x01(\tH\x00R\x1caddNewBuildIdInNewDefaultSet\x12\xa0\x01\n" + + "\x1badd_new_compatible_build_id\x18\x04 \x01(\v2`.temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityRequest.AddNewCompatibleVersionH\x00R\x17addNewCompatibleBuildId\x126\n" + + "\x17promote_set_by_build_id\x18\x05 \x01(\tH\x00R\x13promoteSetByBuildId\x12>\n" + + "\x1bpromote_build_id_within_set\x18\x06 \x01(\tH\x00R\x17promoteBuildIdWithinSet\x12s\n" + + "\n" + + "merge_sets\x18\a \x01(\v2R.temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityRequest.MergeSetsH\x00R\tmergeSets\x1a\xa6\x01\n" + + "\x17AddNewCompatibleVersion\x12 \n" + + "\fnew_build_id\x18\x01 \x01(\tR\n" + + "newBuildId\x12?\n" + + "\x1cexisting_compatible_build_id\x18\x02 \x01(\tR\x19existingCompatibleBuildId\x12(\n" + + "\x10make_set_default\x18\x03 \x01(\bR\x0emakeSetDefault\x1aq\n" + + "\tMergeSets\x12/\n" + + "\x14primary_set_build_id\x18\x01 \x01(\tR\x11primarySetBuildId\x123\n" + + "\x16secondary_set_build_id\x18\x02 \x01(\tR\x13secondarySetBuildIdB\v\n" + + "\toperation\"@\n" + + "(UpdateWorkerBuildIdCompatibilityResponseJ\x04\b\x01\x10\x02R\x0eversion_set_id\"~\n" + + "$GetWorkerBuildIdCompatibilityRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x1d\n" + + "\n" + + "task_queue\x18\x02 \x01(\tR\ttaskQueue\x12\x19\n" + + "\bmax_sets\x18\x03 \x01(\x05R\amaxSets\"\x86\x01\n" + + "%GetWorkerBuildIdCompatibilityResponse\x12]\n" + + "\x12major_version_sets\x18\x01 \x03(\v2/.temporal.api.taskqueue.v1.CompatibleVersionSetR\x10majorVersionSets\"\xf1\x0f\n" + + "\"UpdateWorkerVersioningRulesRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x1d\n" + + "\n" + + "task_queue\x18\x02 \x01(\tR\ttaskQueue\x12%\n" + + "\x0econflict_token\x18\x03 \x01(\fR\rconflictToken\x12\x97\x01\n" + + "\x16insert_assignment_rule\x18\x04 \x01(\v2_.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.InsertBuildIdAssignmentRuleH\x00R\x14insertAssignmentRule\x12\x9a\x01\n" + + "\x17replace_assignment_rule\x18\x05 \x01(\v2`.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.ReplaceBuildIdAssignmentRuleH\x00R\x15replaceAssignmentRule\x12\x97\x01\n" + + "\x16delete_assignment_rule\x18\x06 \x01(\v2_.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.DeleteBuildIdAssignmentRuleH\x00R\x14deleteAssignmentRule\x12\xa7\x01\n" + + "\x1cadd_compatible_redirect_rule\x18\a \x01(\v2d.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.AddCompatibleBuildIdRedirectRuleH\x00R\x19addCompatibleRedirectRule\x12\xb3\x01\n" + + " replace_compatible_redirect_rule\x18\b \x01(\v2h.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.ReplaceCompatibleBuildIdRedirectRuleH\x00R\x1dreplaceCompatibleRedirectRule\x12\xb0\x01\n" + + "\x1fdelete_compatible_redirect_rule\x18\t \x01(\v2g.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.DeleteCompatibleBuildIdRedirectRuleH\x00R\x1cdeleteCompatibleRedirectRule\x12{\n" + + "\x0fcommit_build_id\x18\n" + + " \x01(\v2Q.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.CommitBuildIdH\x00R\rcommitBuildId\x1a\x82\x01\n" + + "\x1bInsertBuildIdAssignmentRule\x12\x1d\n" + + "\n" + + "rule_index\x18\x01 \x01(\x05R\truleIndex\x12D\n" + + "\x04rule\x18\x02 \x01(\v20.temporal.api.taskqueue.v1.BuildIdAssignmentRuleR\x04rule\x1a\x99\x01\n" + + "\x1cReplaceBuildIdAssignmentRule\x12\x1d\n" + + "\n" + + "rule_index\x18\x01 \x01(\x05R\truleIndex\x12D\n" + + "\x04rule\x18\x02 \x01(\v20.temporal.api.taskqueue.v1.BuildIdAssignmentRuleR\x04rule\x12\x14\n" + + "\x05force\x18\x03 \x01(\bR\x05force\x1aR\n" + + "\x1bDeleteBuildIdAssignmentRule\x12\x1d\n" + + "\n" + + "rule_index\x18\x01 \x01(\x05R\truleIndex\x12\x14\n" + + "\x05force\x18\x02 \x01(\bR\x05force\x1ap\n" + + " AddCompatibleBuildIdRedirectRule\x12L\n" + + "\x04rule\x18\x01 \x01(\v28.temporal.api.taskqueue.v1.CompatibleBuildIdRedirectRuleR\x04rule\x1at\n" + + "$ReplaceCompatibleBuildIdRedirectRule\x12L\n" + + "\x04rule\x18\x01 \x01(\v28.temporal.api.taskqueue.v1.CompatibleBuildIdRedirectRuleR\x04rule\x1aM\n" + + "#DeleteCompatibleBuildIdRedirectRule\x12&\n" + + "\x0fsource_build_id\x18\x01 \x01(\tR\rsourceBuildId\x1aM\n" + + "\rCommitBuildId\x12&\n" + + "\x0ftarget_build_id\x18\x01 \x01(\tR\rtargetBuildId\x12\x14\n" + + "\x05force\x18\x02 \x01(\bR\x05forceB\v\n" + + "\toperation\"\xb5\x02\n" + + "#UpdateWorkerVersioningRulesResponse\x12f\n" + + "\x10assignment_rules\x18\x01 \x03(\v2;.temporal.api.taskqueue.v1.TimestampedBuildIdAssignmentRuleR\x0fassignmentRules\x12\x7f\n" + + "\x19compatible_redirect_rules\x18\x02 \x03(\v2C.temporal.api.taskqueue.v1.TimestampedCompatibleBuildIdRedirectRuleR\x17compatibleRedirectRules\x12%\n" + + "\x0econflict_token\x18\x03 \x01(\fR\rconflictToken\"^\n" + + "\x1fGetWorkerVersioningRulesRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x1d\n" + + "\n" + + "task_queue\x18\x02 \x01(\tR\ttaskQueue\"\xb2\x02\n" + + " GetWorkerVersioningRulesResponse\x12f\n" + + "\x10assignment_rules\x18\x01 \x03(\v2;.temporal.api.taskqueue.v1.TimestampedBuildIdAssignmentRuleR\x0fassignmentRules\x12\x7f\n" + + "\x19compatible_redirect_rules\x18\x02 \x03(\v2C.temporal.api.taskqueue.v1.TimestampedCompatibleBuildIdRedirectRuleR\x17compatibleRedirectRules\x12%\n" + + "\x0econflict_token\x18\x03 \x01(\fR\rconflictToken\"\xcb\x01\n" + + " GetWorkerTaskReachabilityRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x1b\n" + + "\tbuild_ids\x18\x02 \x03(\tR\bbuildIds\x12\x1f\n" + + "\vtask_queues\x18\x03 \x03(\tR\n" + + "taskQueues\x12K\n" + + "\freachability\x18\x04 \x01(\x0e2'.temporal.api.enums.v1.TaskReachabilityR\freachability\"\x87\x01\n" + + "!GetWorkerTaskReachabilityResponse\x12b\n" + + "\x15build_id_reachability\x18\x01 \x03(\v2..temporal.api.taskqueue.v1.BuildIdReachabilityR\x13buildIdReachability\"\xcd\x02\n" + + "\x1eUpdateWorkflowExecutionRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12X\n" + + "\x12workflow_execution\x18\x02 \x01(\v2).temporal.api.common.v1.WorkflowExecutionR\x11workflowExecution\x123\n" + + "\x16first_execution_run_id\x18\x03 \x01(\tR\x13firstExecutionRunId\x12C\n" + + "\vwait_policy\x18\x04 \x01(\v2\".temporal.api.update.v1.WaitPolicyR\n" + + "waitPolicy\x129\n" + + "\arequest\x18\x05 \x01(\v2\x1f.temporal.api.update.v1.RequestR\arequest\"\xf2\x01\n" + + "\x1fUpdateWorkflowExecutionResponse\x12@\n" + + "\n" + + "update_ref\x18\x01 \x01(\v2!.temporal.api.update.v1.UpdateRefR\tupdateRef\x129\n" + + "\aoutcome\x18\x02 \x01(\v2\x1f.temporal.api.update.v1.OutcomeR\aoutcome\x12R\n" + + "\x05stage\x18\x03 \x01(\x0e2<.temporal.api.enums.v1.UpdateWorkflowExecutionLifecycleStageR\x05stage\"\x9c\n" + + "\n" + + "\x1aStartBatchOperationRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12)\n" + + "\x10visibility_query\x18\x02 \x01(\tR\x0fvisibilityQuery\x12\x15\n" + + "\x06job_id\x18\x03 \x01(\tR\x05jobId\x12\x16\n" + + "\x06reason\x18\x04 \x01(\tR\x06reason\x12I\n" + + "\n" + + "executions\x18\x05 \x03(\v2).temporal.api.common.v1.WorkflowExecutionR\n" + + "executions\x129\n" + + "\x19max_operations_per_second\x18\x06 \x01(\x02R\x16maxOperationsPerSecond\x12g\n" + + "\x15termination_operation\x18\n" + + " \x01(\v20.temporal.api.batch.v1.BatchOperationTerminationH\x00R\x14terminationOperation\x12X\n" + + "\x10signal_operation\x18\v \x01(\v2+.temporal.api.batch.v1.BatchOperationSignalH\x00R\x0fsignalOperation\x12j\n" + + "\x16cancellation_operation\x18\f \x01(\v21.temporal.api.batch.v1.BatchOperationCancellationH\x00R\x15cancellationOperation\x12^\n" + + "\x12deletion_operation\x18\r \x01(\v2-.temporal.api.batch.v1.BatchOperationDeletionH\x00R\x11deletionOperation\x12U\n" + + "\x0freset_operation\x18\x0e \x01(\v2*.temporal.api.batch.v1.BatchOperationResetH\x00R\x0eresetOperation\x12\x90\x01\n" + + "!update_workflow_options_operation\x18\x0f \x01(\v2C.temporal.api.batch.v1.BatchOperationUpdateWorkflowExecutionOptionsH\x00R\x1eupdateWorkflowOptionsOperation\x12z\n" + + "\x1cunpause_activities_operation\x18\x10 \x01(\v26.temporal.api.batch.v1.BatchOperationUnpauseActivitiesH\x00R\x1aunpauseActivitiesOperation\x12t\n" + + "\x1areset_activities_operation\x18\x11 \x01(\v24.temporal.api.batch.v1.BatchOperationResetActivitiesH\x00R\x18resetActivitiesOperation\x12\x87\x01\n" + + "!update_activity_options_operation\x18\x12 \x01(\v2:.temporal.api.batch.v1.BatchOperationUpdateActivityOptionsH\x00R\x1eupdateActivityOptionsOperationB\v\n" + + "\toperation\"\x1d\n" + + "\x1bStartBatchOperationResponse\"\x84\x01\n" + + "\x19StopBatchOperationRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x15\n" + + "\x06job_id\x18\x02 \x01(\tR\x05jobId\x12\x16\n" + + "\x06reason\x18\x03 \x01(\tR\x06reason\x12\x1a\n" + + "\bidentity\x18\x04 \x01(\tR\bidentity\"\x1c\n" + + "\x1aStopBatchOperationResponse\"T\n" + + "\x1dDescribeBatchOperationRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x15\n" + + "\x06job_id\x18\x02 \x01(\tR\x05jobId\"\x9b\x04\n" + + "\x1eDescribeBatchOperationResponse\x12P\n" + + "\x0eoperation_type\x18\x01 \x01(\x0e2).temporal.api.enums.v1.BatchOperationTypeR\roperationType\x12\x15\n" + + "\x06job_id\x18\x02 \x01(\tR\x05jobId\x12@\n" + + "\x05state\x18\x03 \x01(\x0e2*.temporal.api.enums.v1.BatchOperationStateR\x05state\x129\n" + + "\n" + + "start_time\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\tstartTime\x129\n" + + "\n" + + "close_time\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\tcloseTime\x122\n" + + "\x15total_operation_count\x18\x06 \x01(\x03R\x13totalOperationCount\x128\n" + + "\x18complete_operation_count\x18\a \x01(\x03R\x16completeOperationCount\x126\n" + + "\x17failure_operation_count\x18\b \x01(\x03R\x15failureOperationCount\x12\x1a\n" + + "\bidentity\x18\t \x01(\tR\bidentity\x12\x16\n" + + "\x06reason\x18\n" + + " \x01(\tR\x06reason\"\x7f\n" + + "\x1aListBatchOperationsRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x1b\n" + + "\tpage_size\x18\x02 \x01(\x05R\bpageSize\x12&\n" + + "\x0fnext_page_token\x18\x03 \x01(\fR\rnextPageToken\"\x97\x01\n" + + "\x1bListBatchOperationsResponse\x12P\n" + + "\x0eoperation_info\x18\x01 \x03(\v2).temporal.api.batch.v1.BatchOperationInfoR\roperationInfo\x12&\n" + + "\x0fnext_page_token\x18\x02 \x01(\fR\rnextPageToken\"\xe5\x01\n" + + "\"PollWorkflowExecutionUpdateRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12@\n" + + "\n" + + "update_ref\x18\x02 \x01(\v2!.temporal.api.update.v1.UpdateRefR\tupdateRef\x12\x1a\n" + + "\bidentity\x18\x03 \x01(\tR\bidentity\x12C\n" + + "\vwait_policy\x18\x04 \x01(\v2\".temporal.api.update.v1.WaitPolicyR\n" + + "waitPolicy\"\xf6\x01\n" + + "#PollWorkflowExecutionUpdateResponse\x129\n" + + "\aoutcome\x18\x01 \x01(\v2\x1f.temporal.api.update.v1.OutcomeR\aoutcome\x12R\n" + + "\x05stage\x18\x02 \x01(\x0e2<.temporal.api.enums.v1.UpdateWorkflowExecutionLifecycleStageR\x05stage\x12@\n" + + "\n" + + "update_ref\x18\x03 \x01(\v2!.temporal.api.update.v1.UpdateRefR\tupdateRef\"\xf9\x03\n" + + "\x19PollNexusTaskQueueRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x1a\n" + + "\bidentity\x18\x02 \x01(\tR\bidentity\x12.\n" + + "\x13worker_instance_key\x18\b \x01(\tR\x11workerInstanceKey\x12C\n" + + "\n" + + "task_queue\x18\x03 \x01(\v2$.temporal.api.taskqueue.v1.TaskQueueR\ttaskQueue\x12u\n" + + "\x1bworker_version_capabilities\x18\x04 \x01(\v21.temporal.api.common.v1.WorkerVersionCapabilitiesB\x02\x18\x01R\x19workerVersionCapabilities\x12b\n" + + "\x12deployment_options\x18\x06 \x01(\v23.temporal.api.deployment.v1.WorkerDeploymentOptionsR\x11deploymentOptions\x12R\n" + + "\x10worker_heartbeat\x18\a \x03(\v2'.temporal.api.worker.v1.WorkerHeartbeatR\x0fworkerHeartbeat\"\xdf\x01\n" + + "\x1aPollNexusTaskQueueResponse\x12\x1d\n" + + "\n" + + "task_token\x18\x01 \x01(\fR\ttaskToken\x128\n" + + "\arequest\x18\x02 \x01(\v2\x1e.temporal.api.nexus.v1.RequestR\arequest\x12h\n" + + "\x17poller_scaling_decision\x18\x03 \x01(\v20.temporal.api.taskqueue.v1.PollerScalingDecisionR\x15pollerScalingDecision\"\xb8\x01\n" + + " RespondNexusTaskCompletedRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x1a\n" + + "\bidentity\x18\x02 \x01(\tR\bidentity\x12\x1d\n" + + "\n" + + "task_token\x18\x03 \x01(\fR\ttaskToken\x12;\n" + + "\bresponse\x18\x04 \x01(\v2\x1f.temporal.api.nexus.v1.ResponseR\bresponse\"#\n" + + "!RespondNexusTaskCompletedResponse\"\xb3\x01\n" + + "\x1dRespondNexusTaskFailedRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x1a\n" + + "\bidentity\x18\x02 \x01(\tR\bidentity\x12\x1d\n" + + "\n" + + "task_token\x18\x03 \x01(\fR\ttaskToken\x129\n" + + "\x05error\x18\x04 \x01(\v2#.temporal.api.nexus.v1.HandlerErrorR\x05error\" \n" + + "\x1eRespondNexusTaskFailedResponse\"\x95\x03\n" + + "\x1cExecuteMultiOperationRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12g\n" + + "\n" + + "operations\x18\x02 \x03(\v2G.temporal.api.workflowservice.v1.ExecuteMultiOperationRequest.OperationR\n" + + "operations\x1a\xed\x01\n" + + "\tOperation\x12g\n" + + "\x0estart_workflow\x18\x01 \x01(\v2>.temporal.api.workflowservice.v1.StartWorkflowExecutionRequestH\x00R\rstartWorkflow\x12j\n" + + "\x0fupdate_workflow\x18\x02 \x01(\v2?.temporal.api.workflowservice.v1.UpdateWorkflowExecutionRequestH\x00R\x0eupdateWorkflowB\v\n" + + "\toperation\"\xf6\x02\n" + + "\x1dExecuteMultiOperationResponse\x12e\n" + + "\tresponses\x18\x01 \x03(\v2G.temporal.api.workflowservice.v1.ExecuteMultiOperationResponse.ResponseR\tresponses\x1a\xed\x01\n" + + "\bResponse\x12h\n" + + "\x0estart_workflow\x18\x01 \x01(\v2?.temporal.api.workflowservice.v1.StartWorkflowExecutionResponseH\x00R\rstartWorkflow\x12k\n" + + "\x0fupdate_workflow\x18\x02 \x01(\v2@.temporal.api.workflowservice.v1.UpdateWorkflowExecutionResponseH\x00R\x0eupdateWorkflowB\n" + + "\n" + + "\bresponse\"\xb2\x03\n" + + "\x1cUpdateActivityOptionsRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12G\n" + + "\texecution\x18\x02 \x01(\v2).temporal.api.common.v1.WorkflowExecutionR\texecution\x12\x1a\n" + + "\bidentity\x18\x03 \x01(\tR\bidentity\x12T\n" + + "\x10activity_options\x18\x04 \x01(\v2).temporal.api.activity.v1.ActivityOptionsR\x0factivityOptions\x12;\n" + + "\vupdate_mask\x18\x05 \x01(\v2\x1a.google.protobuf.FieldMaskR\n" + + "updateMask\x12\x10\n" + + "\x02id\x18\x06 \x01(\tH\x00R\x02id\x12\x14\n" + + "\x04type\x18\a \x01(\tH\x00R\x04type\x12\x1d\n" + + "\tmatch_all\x18\t \x01(\bH\x00R\bmatchAll\x12)\n" + + "\x10restore_original\x18\b \x01(\bR\x0frestoreOriginalB\n" + + "\n" + + "\bactivity\"u\n" + + "\x1dUpdateActivityOptionsResponse\x12T\n" + + "\x10activity_options\x18\x01 \x01(\v2).temporal.api.activity.v1.ActivityOptionsR\x0factivityOptions\"\xe5\x01\n" + + "\x14PauseActivityRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12G\n" + + "\texecution\x18\x02 \x01(\v2).temporal.api.common.v1.WorkflowExecutionR\texecution\x12\x1a\n" + + "\bidentity\x18\x03 \x01(\tR\bidentity\x12\x10\n" + + "\x02id\x18\x04 \x01(\tH\x00R\x02id\x12\x14\n" + + "\x04type\x18\x05 \x01(\tH\x00R\x04type\x12\x16\n" + + "\x06reason\x18\x06 \x01(\tR\x06reasonB\n" + + "\n" + + "\bactivity\"\x17\n" + + "\x15PauseActivityResponse\"\xf5\x02\n" + + "\x16UnpauseActivityRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12G\n" + + "\texecution\x18\x02 \x01(\v2).temporal.api.common.v1.WorkflowExecutionR\texecution\x12\x1a\n" + + "\bidentity\x18\x03 \x01(\tR\bidentity\x12\x10\n" + + "\x02id\x18\x04 \x01(\tH\x00R\x02id\x12\x14\n" + + "\x04type\x18\x05 \x01(\tH\x00R\x04type\x12!\n" + + "\vunpause_all\x18\x06 \x01(\bH\x00R\n" + + "unpauseAll\x12%\n" + + "\x0ereset_attempts\x18\a \x01(\bR\rresetAttempts\x12'\n" + + "\x0freset_heartbeat\x18\b \x01(\bR\x0eresetHeartbeat\x121\n" + + "\x06jitter\x18\t \x01(\v2\x19.google.protobuf.DurationR\x06jitterB\n" + + "\n" + + "\bactivity\"\x19\n" + + "\x17UnpauseActivityResponse\"\xa3\x03\n" + + "\x14ResetActivityRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12G\n" + + "\texecution\x18\x02 \x01(\v2).temporal.api.common.v1.WorkflowExecutionR\texecution\x12\x1a\n" + + "\bidentity\x18\x03 \x01(\tR\bidentity\x12\x10\n" + + "\x02id\x18\x04 \x01(\tH\x00R\x02id\x12\x14\n" + + "\x04type\x18\x05 \x01(\tH\x00R\x04type\x12\x1d\n" + + "\tmatch_all\x18\n" + + " \x01(\bH\x00R\bmatchAll\x12'\n" + + "\x0freset_heartbeat\x18\x06 \x01(\bR\x0eresetHeartbeat\x12\x1f\n" + + "\vkeep_paused\x18\a \x01(\bR\n" + + "keepPaused\x121\n" + + "\x06jitter\x18\b \x01(\v2\x19.google.protobuf.DurationR\x06jitter\x128\n" + + "\x18restore_original_options\x18\t \x01(\bR\x16restoreOriginalOptionsB\n" + + "\n" + + "\bactivity\"\x17\n" + + "\x15ResetActivityResponse\"\xea\x02\n" + + "%UpdateWorkflowExecutionOptionsRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12X\n" + + "\x12workflow_execution\x18\x02 \x01(\v2).temporal.api.common.v1.WorkflowExecutionR\x11workflowExecution\x12p\n" + + "\x1aworkflow_execution_options\x18\x03 \x01(\v22.temporal.api.workflow.v1.WorkflowExecutionOptionsR\x18workflowExecutionOptions\x12;\n" + + "\vupdate_mask\x18\x04 \x01(\v2\x1a.google.protobuf.FieldMaskR\n" + + "updateMask\x12\x1a\n" + + "\bidentity\x18\x05 \x01(\tR\bidentity\"\x9a\x01\n" + + "&UpdateWorkflowExecutionOptionsResponse\x12p\n" + + "\x1aworkflow_execution_options\x18\x01 \x01(\v22.temporal.api.workflow.v1.WorkflowExecutionOptionsR\x18workflowExecutionOptions\"\x81\x01\n" + + "\x19DescribeDeploymentRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12F\n" + + "\n" + + "deployment\x18\x02 \x01(\v2&.temporal.api.deployment.v1.DeploymentR\n" + + "deployment\"q\n" + + "\x1aDescribeDeploymentResponse\x12S\n" + + "\x0fdeployment_info\x18\x01 \x01(\v2*.temporal.api.deployment.v1.DeploymentInfoR\x0edeploymentInfo\"\xff\x01\n" + + "&DescribeWorkerDeploymentVersionRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x1c\n" + + "\aversion\x18\x02 \x01(\tB\x02\x18\x01R\aversion\x12b\n" + + "\x12deployment_version\x18\x03 \x01(\v23.temporal.api.deployment.v1.WorkerDeploymentVersionR\x11deploymentVersion\x125\n" + + "\x17report_task_queue_stats\x18\x04 \x01(\bR\x14reportTaskQueueStats\"\xf0\x05\n" + + "'DescribeWorkerDeploymentVersionResponse\x12|\n" + + "\x1eworker_deployment_version_info\x18\x01 \x01(\v27.temporal.api.deployment.v1.WorkerDeploymentVersionInfoR\x1bworkerDeploymentVersionInfo\x12\x89\x01\n" + + "\x13version_task_queues\x18\x02 \x03(\v2Y.temporal.api.workflowservice.v1.DescribeWorkerDeploymentVersionResponse.VersionTaskQueueR\x11versionTaskQueues\x1a\xba\x03\n" + + "\x10VersionTaskQueue\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x128\n" + + "\x04type\x18\x02 \x01(\x0e2$.temporal.api.enums.v1.TaskQueueTypeR\x04type\x12?\n" + + "\x05stats\x18\x03 \x01(\v2).temporal.api.taskqueue.v1.TaskQueueStatsR\x05stats\x12\xa4\x01\n" + + "\x15stats_by_priority_key\x18\x04 \x03(\v2q.temporal.api.workflowservice.v1.DescribeWorkerDeploymentVersionResponse.VersionTaskQueue.StatsByPriorityKeyEntryR\x12statsByPriorityKey\x1ap\n" + + "\x17StatsByPriorityKeyEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\x05R\x03key\x12?\n" + + "\x05value\x18\x02 \x01(\v2).temporal.api.taskqueue.v1.TaskQueueStatsR\x05value:\x028\x01\"h\n" + + "\x1fDescribeWorkerDeploymentRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12'\n" + + "\x0fdeployment_name\x18\x02 \x01(\tR\x0edeploymentName\"\xb1\x01\n" + + " DescribeWorkerDeploymentResponse\x12%\n" + + "\x0econflict_token\x18\x01 \x01(\fR\rconflictToken\x12f\n" + + "\x16worker_deployment_info\x18\x02 \x01(\v20.temporal.api.deployment.v1.WorkerDeploymentInfoR\x14workerDeploymentInfo\"\x9c\x01\n" + + "\x16ListDeploymentsRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x1b\n" + + "\tpage_size\x18\x02 \x01(\x05R\bpageSize\x12&\n" + + "\x0fnext_page_token\x18\x03 \x01(\fR\rnextPageToken\x12\x1f\n" + + "\vseries_name\x18\x04 \x01(\tR\n" + + "seriesName\"\x93\x01\n" + + "\x17ListDeploymentsResponse\x12&\n" + + "\x0fnext_page_token\x18\x01 \x01(\fR\rnextPageToken\x12P\n" + + "\vdeployments\x18\x02 \x03(\v2..temporal.api.deployment.v1.DeploymentListInfoR\vdeployments\"\xfe\x01\n" + + "\x1bSetCurrentDeploymentRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12F\n" + + "\n" + + "deployment\x18\x02 \x01(\v2&.temporal.api.deployment.v1.DeploymentR\n" + + "deployment\x12\x1a\n" + + "\bidentity\x18\x03 \x01(\tR\bidentity\x12]\n" + + "\x0fupdate_metadata\x18\x04 \x01(\v24.temporal.api.deployment.v1.UpdateDeploymentMetadataR\x0eupdateMetadata\"\xe8\x01\n" + + "\x1cSetCurrentDeploymentResponse\x12b\n" + + "\x17current_deployment_info\x18\x01 \x01(\v2*.temporal.api.deployment.v1.DeploymentInfoR\x15currentDeploymentInfo\x12d\n" + + "\x18previous_deployment_info\x18\x02 \x01(\v2*.temporal.api.deployment.v1.DeploymentInfoR\x16previousDeploymentInfo\"\xd4\x02\n" + + "(SetWorkerDeploymentCurrentVersionRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12'\n" + + "\x0fdeployment_name\x18\x02 \x01(\tR\x0edeploymentName\x12\x1c\n" + + "\aversion\x18\x03 \x01(\tB\x02\x18\x01R\aversion\x12\x19\n" + + "\bbuild_id\x18\a \x01(\tR\abuildId\x12%\n" + + "\x0econflict_token\x18\x04 \x01(\fR\rconflictToken\x12\x1a\n" + + "\bidentity\x18\x05 \x01(\tR\bidentity\x12;\n" + + "\x1aignore_missing_task_queues\x18\x06 \x01(\bR\x17ignoreMissingTaskQueues\x12(\n" + + "\x10allow_no_pollers\x18\t \x01(\bR\x0eallowNoPollers\"\xfa\x01\n" + + ")SetWorkerDeploymentCurrentVersionResponse\x12%\n" + + "\x0econflict_token\x18\x01 \x01(\fR\rconflictToken\x12-\n" + + "\x10previous_version\x18\x02 \x01(\tB\x02\x18\x01R\x0fpreviousVersion\x12w\n" + + "\x1bprevious_deployment_version\x18\x03 \x01(\v23.temporal.api.deployment.v1.WorkerDeploymentVersionB\x02\x18\x01R\x19previousDeploymentVersion\"\xf4\x02\n" + + "(SetWorkerDeploymentRampingVersionRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12'\n" + + "\x0fdeployment_name\x18\x02 \x01(\tR\x0edeploymentName\x12\x1c\n" + + "\aversion\x18\x03 \x01(\tB\x02\x18\x01R\aversion\x12\x19\n" + + "\bbuild_id\x18\b \x01(\tR\abuildId\x12\x1e\n" + + "\n" + + "percentage\x18\x04 \x01(\x02R\n" + + "percentage\x12%\n" + + "\x0econflict_token\x18\x05 \x01(\fR\rconflictToken\x12\x1a\n" + + "\bidentity\x18\x06 \x01(\tR\bidentity\x12;\n" + + "\x1aignore_missing_task_queues\x18\a \x01(\bR\x17ignoreMissingTaskQueues\x12(\n" + + "\x10allow_no_pollers\x18\n" + + " \x01(\bR\x0eallowNoPollers\"\xaf\x02\n" + + ")SetWorkerDeploymentRampingVersionResponse\x12%\n" + + "\x0econflict_token\x18\x01 \x01(\fR\rconflictToken\x12-\n" + + "\x10previous_version\x18\x02 \x01(\tB\x02\x18\x01R\x0fpreviousVersion\x12w\n" + + "\x1bprevious_deployment_version\x18\x04 \x01(\v23.temporal.api.deployment.v1.WorkerDeploymentVersionB\x02\x18\x01R\x19previousDeploymentVersion\x123\n" + + "\x13previous_percentage\x18\x03 \x01(\x02B\x02\x18\x01R\x12previousPercentage\"\x81\x01\n" + + "\x1cListWorkerDeploymentsRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x1b\n" + + "\tpage_size\x18\x02 \x01(\x05R\bpageSize\x12&\n" + + "\x0fnext_page_token\x18\x03 \x01(\fR\rnextPageToken\"\xaa\x06\n" + + "\x1dListWorkerDeploymentsResponse\x12&\n" + + "\x0fnext_page_token\x18\x01 \x01(\fR\rnextPageToken\x12\x85\x01\n" + + "\x12worker_deployments\x18\x02 \x03(\v2V.temporal.api.workflowservice.v1.ListWorkerDeploymentsResponse.WorkerDeploymentSummaryR\x11workerDeployments\x1a\xd8\x04\n" + + "\x17WorkerDeploymentSummary\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12;\n" + + "\vcreate_time\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\n" + + "createTime\x12P\n" + + "\x0erouting_config\x18\x03 \x01(\v2).temporal.api.deployment.v1.RoutingConfigR\rroutingConfig\x12\x85\x01\n" + + "\x16latest_version_summary\x18\x04 \x01(\v2O.temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummaryR\x14latestVersionSummary\x12\x87\x01\n" + + "\x17current_version_summary\x18\x05 \x01(\v2O.temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummaryR\x15currentVersionSummary\x12\x87\x01\n" + + "\x17ramping_version_summary\x18\x06 \x01(\v2O.temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummaryR\x15rampingVersionSummary\"\x87\x02\n" + + "$DeleteWorkerDeploymentVersionRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x1c\n" + + "\aversion\x18\x02 \x01(\tB\x02\x18\x01R\aversion\x12b\n" + + "\x12deployment_version\x18\x05 \x01(\v23.temporal.api.deployment.v1.WorkerDeploymentVersionR\x11deploymentVersion\x12#\n" + + "\rskip_drainage\x18\x03 \x01(\bR\fskipDrainage\x12\x1a\n" + + "\bidentity\x18\x04 \x01(\tR\bidentity\"'\n" + + "%DeleteWorkerDeploymentVersionResponse\"\x82\x01\n" + + "\x1dDeleteWorkerDeploymentRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12'\n" + + "\x0fdeployment_name\x18\x02 \x01(\tR\x0edeploymentName\x12\x1a\n" + + "\bidentity\x18\x03 \x01(\tR\bidentity\" \n" + + "\x1eDeleteWorkerDeploymentResponse\"\xfe\x03\n" + + ",UpdateWorkerDeploymentVersionMetadataRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x1c\n" + + "\aversion\x18\x02 \x01(\tB\x02\x18\x01R\aversion\x12b\n" + + "\x12deployment_version\x18\x05 \x01(\v23.temporal.api.deployment.v1.WorkerDeploymentVersionR\x11deploymentVersion\x12\x87\x01\n" + + "\x0eupsert_entries\x18\x03 \x03(\v2`.temporal.api.workflowservice.v1.UpdateWorkerDeploymentVersionMetadataRequest.UpsertEntriesEntryR\rupsertEntries\x12%\n" + + "\x0eremove_entries\x18\x04 \x03(\tR\rremoveEntries\x12\x1a\n" + + "\bidentity\x18\x06 \x01(\tR\bidentity\x1aa\n" + + "\x12UpsertEntriesEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x125\n" + + "\x05value\x18\x02 \x01(\v2\x1f.temporal.api.common.v1.PayloadR\x05value:\x028\x01\"x\n" + + "-UpdateWorkerDeploymentVersionMetadataResponse\x12G\n" + + "\bmetadata\x18\x01 \x01(\v2+.temporal.api.deployment.v1.VersionMetadataR\bmetadata\"\x88\x02\n" + + "!SetWorkerDeploymentManagerRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12'\n" + + "\x0fdeployment_name\x18\x02 \x01(\tR\x0edeploymentName\x12+\n" + + "\x10manager_identity\x18\x03 \x01(\tH\x00R\x0fmanagerIdentity\x12\x14\n" + + "\x04self\x18\x04 \x01(\bH\x00R\x04self\x12%\n" + + "\x0econflict_token\x18\x05 \x01(\fR\rconflictToken\x12\x1a\n" + + "\bidentity\x18\x06 \x01(\tR\bidentityB\x16\n" + + "\x14new_manager_identity\"\x8b\x01\n" + + "\"SetWorkerDeploymentManagerResponse\x12%\n" + + "\x0econflict_token\x18\x01 \x01(\fR\rconflictToken\x12>\n" + + "\x19previous_manager_identity\x18\x02 \x01(\tB\x02\x18\x01R\x17previousManagerIdentity\"\\\n" + + "\x1bGetCurrentDeploymentRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x1f\n" + + "\vseries_name\x18\x02 \x01(\tR\n" + + "seriesName\"\x82\x01\n" + + "\x1cGetCurrentDeploymentResponse\x12b\n" + + "\x17current_deployment_info\x18\x01 \x01(\v2*.temporal.api.deployment.v1.DeploymentInfoR\x15currentDeploymentInfo\"\x88\x01\n" + + " GetDeploymentReachabilityRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12F\n" + + "\n" + + "deployment\x18\x02 \x01(\v2&.temporal.api.deployment.v1.DeploymentR\n" + + "deployment\"\x91\x02\n" + + "!GetDeploymentReachabilityResponse\x12S\n" + + "\x0fdeployment_info\x18\x01 \x01(\v2*.temporal.api.deployment.v1.DeploymentInfoR\x0edeploymentInfo\x12Q\n" + + "\freachability\x18\x02 \x01(\x0e2-.temporal.api.enums.v1.DeploymentReachabilityR\freachability\x12D\n" + + "\x10last_update_time\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\x0elastUpdateTime\"\xf2\x01\n" + + "\x19CreateWorkflowRuleRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12;\n" + + "\x04spec\x18\x02 \x01(\v2'.temporal.api.rules.v1.WorkflowRuleSpecR\x04spec\x12\x1d\n" + + "\n" + + "force_scan\x18\x03 \x01(\bR\tforceScan\x12\x1d\n" + + "\n" + + "request_id\x18\x04 \x01(\tR\trequestId\x12\x1a\n" + + "\bidentity\x18\x05 \x01(\tR\bidentity\x12 \n" + + "\vdescription\x18\x06 \x01(\tR\vdescription\"l\n" + + "\x1aCreateWorkflowRuleResponse\x127\n" + + "\x04rule\x18\x01 \x01(\v2#.temporal.api.rules.v1.WorkflowRuleR\x04rule\x12\x15\n" + + "\x06job_id\x18\x02 \x01(\tR\x05jobId\"T\n" + + "\x1bDescribeWorkflowRuleRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x17\n" + + "\arule_id\x18\x02 \x01(\tR\x06ruleId\"W\n" + + "\x1cDescribeWorkflowRuleResponse\x127\n" + + "\x04rule\x18\x01 \x01(\v2#.temporal.api.rules.v1.WorkflowRuleR\x04rule\"R\n" + + "\x19DeleteWorkflowRuleRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x17\n" + + "\arule_id\x18\x02 \x01(\tR\x06ruleId\"\x1c\n" + + "\x1aDeleteWorkflowRuleResponse\"`\n" + + "\x18ListWorkflowRulesRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12&\n" + + "\x0fnext_page_token\x18\x02 \x01(\fR\rnextPageToken\"~\n" + + "\x19ListWorkflowRulesResponse\x129\n" + + "\x05rules\x18\x01 \x03(\v2#.temporal.api.rules.v1.WorkflowRuleR\x05rules\x12&\n" + + "\x0fnext_page_token\x18\x02 \x01(\fR\rnextPageToken\"\xf8\x01\n" + + "\x1aTriggerWorkflowRuleRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12G\n" + + "\texecution\x18\x02 \x01(\v2).temporal.api.common.v1.WorkflowExecutionR\texecution\x12\x10\n" + + "\x02id\x18\x04 \x01(\tH\x00R\x02id\x12=\n" + + "\x04spec\x18\x05 \x01(\v2'.temporal.api.rules.v1.WorkflowRuleSpecH\x00R\x04spec\x12\x1a\n" + + "\bidentity\x18\x03 \x01(\tR\bidentityB\x06\n" + + "\x04rule\"7\n" + + "\x1bTriggerWorkflowRuleResponse\x12\x18\n" + + "\aapplied\x18\x01 \x01(\bR\aapplied\"\xac\x01\n" + + "\x1cRecordWorkerHeartbeatRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x1a\n" + + "\bidentity\x18\x02 \x01(\tR\bidentity\x12R\n" + + "\x10worker_heartbeat\x18\x03 \x03(\v2'.temporal.api.worker.v1.WorkerHeartbeatR\x0fworkerHeartbeat\"\x1f\n" + + "\x1dRecordWorkerHeartbeatResponse\"\x8d\x01\n" + + "\x12ListWorkersRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x1b\n" + + "\tpage_size\x18\x02 \x01(\x05R\bpageSize\x12&\n" + + "\x0fnext_page_token\x18\x03 \x01(\fR\rnextPageToken\x12\x14\n" + + "\x05query\x18\x04 \x01(\tR\x05query\"\x84\x01\n" + + "\x13ListWorkersResponse\x12E\n" + + "\fworkers_info\x18\x01 \x03(\v2\".temporal.api.worker.v1.WorkerInfoR\vworkersInfo\x12&\n" + + "\x0fnext_page_token\x18\x02 \x01(\fR\rnextPageToken\"\x98\a\n" + + "\x1cUpdateTaskQueueConfigRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x1a\n" + + "\bidentity\x18\x02 \x01(\tR\bidentity\x12\x1d\n" + + "\n" + + "task_queue\x18\x03 \x01(\tR\ttaskQueue\x12L\n" + + "\x0ftask_queue_type\x18\x04 \x01(\x0e2$.temporal.api.enums.v1.TaskQueueTypeR\rtaskQueueType\x12\x84\x01\n" + + "\x17update_queue_rate_limit\x18\x05 \x01(\v2M.temporal.api.workflowservice.v1.UpdateTaskQueueConfigRequest.RateLimitUpdateR\x14updateQueueRateLimit\x12\xa0\x01\n" + + "&update_fairness_key_rate_limit_default\x18\x06 \x01(\v2M.temporal.api.workflowservice.v1.UpdateTaskQueueConfigRequest.RateLimitUpdateR!updateFairnessKeyRateLimitDefault\x12\xa0\x01\n" + + "\x1dset_fairness_weight_overrides\x18\a \x03(\v2].temporal.api.workflowservice.v1.UpdateTaskQueueConfigRequest.SetFairnessWeightOverridesEntryR\x1asetFairnessWeightOverrides\x12E\n" + + "\x1funset_fairness_weight_overrides\x18\b \x03(\tR\x1cunsetFairnessWeightOverrides\x1an\n" + + "\x0fRateLimitUpdate\x12C\n" + + "\n" + + "rate_limit\x18\x01 \x01(\v2$.temporal.api.taskqueue.v1.RateLimitR\trateLimit\x12\x16\n" + + "\x06reason\x18\x02 \x01(\tR\x06reason\x1aM\n" + + "\x1fSetFairnessWeightOverridesEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\x02R\x05value:\x028\x01\"c\n" + + "\x1dUpdateTaskQueueConfigResponse\x12B\n" + + "\x06config\x18\x01 \x01(\v2*.temporal.api.taskqueue.v1.TaskQueueConfigR\x06config\"\xb0\x01\n" + + "\x18FetchWorkerConfigRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x1a\n" + + "\bidentity\x18\x02 \x01(\tR\bidentity\x12\x16\n" + + "\x06reason\x18\x03 \x01(\tR\x06reason\x12B\n" + + "\bselector\x18\x06 \x01(\v2&.temporal.api.common.v1.WorkerSelectorR\bselector\"c\n" + + "\x19FetchWorkerConfigResponse\x12F\n" + + "\rworker_config\x18\x01 \x01(\v2!.temporal.api.sdk.v1.WorkerConfigR\fworkerConfig\"\xb6\x02\n" + + "\x19UpdateWorkerConfigRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x1a\n" + + "\bidentity\x18\x02 \x01(\tR\bidentity\x12\x16\n" + + "\x06reason\x18\x03 \x01(\tR\x06reason\x12F\n" + + "\rworker_config\x18\x04 \x01(\v2!.temporal.api.sdk.v1.WorkerConfigR\fworkerConfig\x12;\n" + + "\vupdate_mask\x18\x05 \x01(\v2\x1a.google.protobuf.FieldMaskR\n" + + "updateMask\x12B\n" + + "\bselector\x18\x06 \x01(\v2&.temporal.api.common.v1.WorkerSelectorR\bselector\"r\n" + + "\x1aUpdateWorkerConfigResponse\x12H\n" + + "\rworker_config\x18\x01 \x01(\v2!.temporal.api.sdk.v1.WorkerConfigH\x00R\fworkerConfigB\n" + + "\n" + + "\bresponse\"e\n" + + "\x15DescribeWorkerRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12.\n" + + "\x13worker_instance_key\x18\x02 \x01(\tR\x11workerInstanceKey\"]\n" + + "\x16DescribeWorkerResponse\x12C\n" + + "\vworker_info\x18\x01 \x01(\v2\".temporal.api.worker.v1.WorkerInfoR\n" + + "workerInfo\"\xc8\x01\n" + + "\x1dPauseWorkflowExecutionRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x1f\n" + + "\vworkflow_id\x18\x02 \x01(\tR\n" + + "workflowId\x12\x15\n" + + "\x06run_id\x18\x03 \x01(\tR\x05runId\x12\x1a\n" + + "\bidentity\x18\x04 \x01(\tR\bidentity\x12\x16\n" + + "\x06reason\x18\x05 \x01(\tR\x06reason\x12\x1d\n" + + "\n" + + "request_id\x18\x06 \x01(\tR\trequestId\" \n" + + "\x1ePauseWorkflowExecutionResponse\"\xca\x01\n" + + "\x1fUnpauseWorkflowExecutionRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x1f\n" + + "\vworkflow_id\x18\x02 \x01(\tR\n" + + "workflowId\x12\x15\n" + + "\x06run_id\x18\x03 \x01(\tR\x05runId\x12\x1a\n" + + "\bidentity\x18\x04 \x01(\tR\bidentity\x12\x16\n" + + "\x06reason\x18\x05 \x01(\tR\x06reason\x12\x1d\n" + + "\n" + + "request_id\x18\x06 \x01(\tR\trequestId\"\"\n" + + " UnpauseWorkflowExecutionResponse\"\xb7\t\n" + + "\x1dStartActivityExecutionRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x1a\n" + + "\bidentity\x18\x02 \x01(\tR\bidentity\x12\x1d\n" + + "\n" + + "request_id\x18\x03 \x01(\tR\trequestId\x12\x1f\n" + + "\vactivity_id\x18\x04 \x01(\tR\n" + + "activityId\x12I\n" + + "\ractivity_type\x18\x05 \x01(\v2$.temporal.api.common.v1.ActivityTypeR\factivityType\x12C\n" + + "\n" + + "task_queue\x18\x06 \x01(\v2$.temporal.api.taskqueue.v1.TaskQueueR\ttaskQueue\x12T\n" + + "\x19schedule_to_close_timeout\x18\a \x01(\v2\x19.google.protobuf.DurationR\x16scheduleToCloseTimeout\x12T\n" + + "\x19schedule_to_start_timeout\x18\b \x01(\v2\x19.google.protobuf.DurationR\x16scheduleToStartTimeout\x12N\n" + + "\x16start_to_close_timeout\x18\t \x01(\v2\x19.google.protobuf.DurationR\x13startToCloseTimeout\x12F\n" + + "\x11heartbeat_timeout\x18\n" + + " \x01(\v2\x19.google.protobuf.DurationR\x10heartbeatTimeout\x12F\n" + + "\fretry_policy\x18\v \x01(\v2#.temporal.api.common.v1.RetryPolicyR\vretryPolicy\x126\n" + + "\x05input\x18\f \x01(\v2 .temporal.api.common.v1.PayloadsR\x05input\x12T\n" + + "\x0fid_reuse_policy\x18\r \x01(\x0e2,.temporal.api.enums.v1.ActivityIdReusePolicyR\ridReusePolicy\x12]\n" + + "\x12id_conflict_policy\x18\x0e \x01(\x0e2/.temporal.api.enums.v1.ActivityIdConflictPolicyR\x10idConflictPolicy\x12U\n" + + "\x11search_attributes\x18\x0f \x01(\v2(.temporal.api.common.v1.SearchAttributesR\x10searchAttributes\x126\n" + + "\x06header\x18\x10 \x01(\v2\x1e.temporal.api.common.v1.HeaderR\x06header\x12F\n" + + "\ruser_metadata\x18\x11 \x01(\v2!.temporal.api.sdk.v1.UserMetadataR\fuserMetadata\x12<\n" + + "\bpriority\x18\x12 \x01(\v2 .temporal.api.common.v1.PriorityR\bpriority\"Q\n" + + "\x1eStartActivityExecutionResponse\x12\x15\n" + + "\x06run_id\x18\x01 \x01(\tR\x05runId\x12\x18\n" + + "\astarted\x18\x02 \x01(\bR\astarted\"\xee\x01\n" + + " DescribeActivityExecutionRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x1f\n" + + "\vactivity_id\x18\x02 \x01(\tR\n" + + "activityId\x12\x15\n" + + "\x06run_id\x18\x03 \x01(\tR\x05runId\x12#\n" + + "\rinclude_input\x18\x04 \x01(\bR\fincludeInput\x12'\n" + + "\x0finclude_outcome\x18\x05 \x01(\bR\x0eincludeOutcome\x12&\n" + + "\x0flong_poll_token\x18\x06 \x01(\fR\rlongPollToken\"\xad\x02\n" + + "!DescribeActivityExecutionResponse\x12\x15\n" + + "\x06run_id\x18\x01 \x01(\tR\x05runId\x12C\n" + + "\x04info\x18\x02 \x01(\v2/.temporal.api.activity.v1.ActivityExecutionInfoR\x04info\x126\n" + + "\x05input\x18\x03 \x01(\v2 .temporal.api.common.v1.PayloadsR\x05input\x12L\n" + + "\aoutcome\x18\x04 \x01(\v22.temporal.api.activity.v1.ActivityExecutionOutcomeR\aoutcome\x12&\n" + + "\x0flong_poll_token\x18\x05 \x01(\fR\rlongPollToken\"t\n" + + "\x1cPollActivityExecutionRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x1f\n" + + "\vactivity_id\x18\x02 \x01(\tR\n" + + "activityId\x12\x15\n" + + "\x06run_id\x18\x03 \x01(\tR\x05runId\"\x84\x01\n" + + "\x1dPollActivityExecutionResponse\x12\x15\n" + + "\x06run_id\x18\x01 \x01(\tR\x05runId\x12L\n" + + "\aoutcome\x18\x02 \x01(\v22.temporal.api.activity.v1.ActivityExecutionOutcomeR\aoutcome\"\x98\x01\n" + + "\x1dListActivityExecutionsRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x1b\n" + + "\tpage_size\x18\x02 \x01(\x05R\bpageSize\x12&\n" + + "\x0fnext_page_token\x18\x03 \x01(\fR\rnextPageToken\x12\x14\n" + + "\x05query\x18\x04 \x01(\tR\x05query\"\x9d\x01\n" + + "\x1eListActivityExecutionsResponse\x12S\n" + + "\n" + + "executions\x18\x01 \x03(\v23.temporal.api.activity.v1.ActivityExecutionListInfoR\n" + + "executions\x12&\n" + + "\x0fnext_page_token\x18\x02 \x01(\fR\rnextPageToken\"T\n" + + "\x1eCountActivityExecutionsRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x14\n" + + "\x05query\x18\x02 \x01(\tR\x05query\"\x90\x02\n" + + "\x1fCountActivityExecutionsResponse\x12\x14\n" + + "\x05count\x18\x01 \x01(\x03R\x05count\x12i\n" + + "\x06groups\x18\x02 \x03(\v2Q.temporal.api.workflowservice.v1.CountActivityExecutionsResponse.AggregationGroupR\x06groups\x1al\n" + + "\x10AggregationGroup\x12B\n" + + "\fgroup_values\x18\x01 \x03(\v2\x1f.temporal.api.common.v1.PayloadR\vgroupValues\x12\x14\n" + + "\x05count\x18\x02 \x01(\x03R\x05count\"\xd0\x01\n" + + "%RequestCancelActivityExecutionRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x1f\n" + + "\vactivity_id\x18\x02 \x01(\tR\n" + + "activityId\x12\x15\n" + + "\x06run_id\x18\x03 \x01(\tR\x05runId\x12\x1a\n" + + "\bidentity\x18\x04 \x01(\tR\bidentity\x12\x1d\n" + + "\n" + + "request_id\x18\x05 \x01(\tR\trequestId\x12\x16\n" + + "\x06reason\x18\x06 \x01(\tR\x06reason\"(\n" + + "&RequestCancelActivityExecutionResponse\"\xcc\x01\n" + + "!TerminateActivityExecutionRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x1f\n" + + "\vactivity_id\x18\x02 \x01(\tR\n" + + "activityId\x12\x15\n" + + "\x06run_id\x18\x03 \x01(\tR\x05runId\x12\x1a\n" + + "\bidentity\x18\x04 \x01(\tR\bidentity\x12\x1d\n" + + "\n" + + "request_id\x18\x05 \x01(\tR\trequestId\x12\x16\n" + + "\x06reason\x18\x06 \x01(\tR\x06reason\"$\n" + + "\"TerminateActivityExecutionResponse\"v\n" + + "\x1eDeleteActivityExecutionRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x1f\n" + + "\vactivity_id\x18\x02 \x01(\tR\n" + + "activityId\x12\x15\n" + + "\x06run_id\x18\x03 \x01(\tR\x05runId\"!\n" + + "\x1fDeleteActivityExecutionResponseB\xbe\x01\n" + + "\"io.temporal.api.workflowservice.v1B\x14RequestResponseProtoP\x01Z5go.temporal.io/api/workflowservice/v1;workflowservice\xaa\x02!Temporalio.Api.WorkflowService.V1\xea\x02$Temporalio::Api::WorkflowService::V1b\x06proto3" + +var file_temporal_api_workflowservice_v1_request_response_proto_msgTypes = make([]protoimpl.MessageInfo, 237) +var file_temporal_api_workflowservice_v1_request_response_proto_goTypes = []any{ + (*RegisterNamespaceRequest)(nil), // 0: temporal.api.workflowservice.v1.RegisterNamespaceRequest + (*RegisterNamespaceResponse)(nil), // 1: temporal.api.workflowservice.v1.RegisterNamespaceResponse + (*ListNamespacesRequest)(nil), // 2: temporal.api.workflowservice.v1.ListNamespacesRequest + (*ListNamespacesResponse)(nil), // 3: temporal.api.workflowservice.v1.ListNamespacesResponse + (*DescribeNamespaceRequest)(nil), // 4: temporal.api.workflowservice.v1.DescribeNamespaceRequest + (*DescribeNamespaceResponse)(nil), // 5: temporal.api.workflowservice.v1.DescribeNamespaceResponse + (*UpdateNamespaceRequest)(nil), // 6: temporal.api.workflowservice.v1.UpdateNamespaceRequest + (*UpdateNamespaceResponse)(nil), // 7: temporal.api.workflowservice.v1.UpdateNamespaceResponse + (*DeprecateNamespaceRequest)(nil), // 8: temporal.api.workflowservice.v1.DeprecateNamespaceRequest + (*DeprecateNamespaceResponse)(nil), // 9: temporal.api.workflowservice.v1.DeprecateNamespaceResponse + (*StartWorkflowExecutionRequest)(nil), // 10: temporal.api.workflowservice.v1.StartWorkflowExecutionRequest + (*StartWorkflowExecutionResponse)(nil), // 11: temporal.api.workflowservice.v1.StartWorkflowExecutionResponse + (*GetWorkflowExecutionHistoryRequest)(nil), // 12: temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryRequest + (*GetWorkflowExecutionHistoryResponse)(nil), // 13: temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryResponse + (*GetWorkflowExecutionHistoryReverseRequest)(nil), // 14: temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryReverseRequest + (*GetWorkflowExecutionHistoryReverseResponse)(nil), // 15: temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryReverseResponse + (*PollWorkflowTaskQueueRequest)(nil), // 16: temporal.api.workflowservice.v1.PollWorkflowTaskQueueRequest + (*PollWorkflowTaskQueueResponse)(nil), // 17: temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse + (*RespondWorkflowTaskCompletedRequest)(nil), // 18: temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedRequest + (*RespondWorkflowTaskCompletedResponse)(nil), // 19: temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedResponse + (*RespondWorkflowTaskFailedRequest)(nil), // 20: temporal.api.workflowservice.v1.RespondWorkflowTaskFailedRequest + (*RespondWorkflowTaskFailedResponse)(nil), // 21: temporal.api.workflowservice.v1.RespondWorkflowTaskFailedResponse + (*PollActivityTaskQueueRequest)(nil), // 22: temporal.api.workflowservice.v1.PollActivityTaskQueueRequest + (*PollActivityTaskQueueResponse)(nil), // 23: temporal.api.workflowservice.v1.PollActivityTaskQueueResponse + (*RecordActivityTaskHeartbeatRequest)(nil), // 24: temporal.api.workflowservice.v1.RecordActivityTaskHeartbeatRequest + (*RecordActivityTaskHeartbeatResponse)(nil), // 25: temporal.api.workflowservice.v1.RecordActivityTaskHeartbeatResponse + (*RecordActivityTaskHeartbeatByIdRequest)(nil), // 26: temporal.api.workflowservice.v1.RecordActivityTaskHeartbeatByIdRequest + (*RecordActivityTaskHeartbeatByIdResponse)(nil), // 27: temporal.api.workflowservice.v1.RecordActivityTaskHeartbeatByIdResponse + (*RespondActivityTaskCompletedRequest)(nil), // 28: temporal.api.workflowservice.v1.RespondActivityTaskCompletedRequest + (*RespondActivityTaskCompletedResponse)(nil), // 29: temporal.api.workflowservice.v1.RespondActivityTaskCompletedResponse + (*RespondActivityTaskCompletedByIdRequest)(nil), // 30: temporal.api.workflowservice.v1.RespondActivityTaskCompletedByIdRequest + (*RespondActivityTaskCompletedByIdResponse)(nil), // 31: temporal.api.workflowservice.v1.RespondActivityTaskCompletedByIdResponse + (*RespondActivityTaskFailedRequest)(nil), // 32: temporal.api.workflowservice.v1.RespondActivityTaskFailedRequest + (*RespondActivityTaskFailedResponse)(nil), // 33: temporal.api.workflowservice.v1.RespondActivityTaskFailedResponse + (*RespondActivityTaskFailedByIdRequest)(nil), // 34: temporal.api.workflowservice.v1.RespondActivityTaskFailedByIdRequest + (*RespondActivityTaskFailedByIdResponse)(nil), // 35: temporal.api.workflowservice.v1.RespondActivityTaskFailedByIdResponse + (*RespondActivityTaskCanceledRequest)(nil), // 36: temporal.api.workflowservice.v1.RespondActivityTaskCanceledRequest + (*RespondActivityTaskCanceledResponse)(nil), // 37: temporal.api.workflowservice.v1.RespondActivityTaskCanceledResponse + (*RespondActivityTaskCanceledByIdRequest)(nil), // 38: temporal.api.workflowservice.v1.RespondActivityTaskCanceledByIdRequest + (*RespondActivityTaskCanceledByIdResponse)(nil), // 39: temporal.api.workflowservice.v1.RespondActivityTaskCanceledByIdResponse + (*RequestCancelWorkflowExecutionRequest)(nil), // 40: temporal.api.workflowservice.v1.RequestCancelWorkflowExecutionRequest + (*RequestCancelWorkflowExecutionResponse)(nil), // 41: temporal.api.workflowservice.v1.RequestCancelWorkflowExecutionResponse + (*SignalWorkflowExecutionRequest)(nil), // 42: temporal.api.workflowservice.v1.SignalWorkflowExecutionRequest + (*SignalWorkflowExecutionResponse)(nil), // 43: temporal.api.workflowservice.v1.SignalWorkflowExecutionResponse + (*SignalWithStartWorkflowExecutionRequest)(nil), // 44: temporal.api.workflowservice.v1.SignalWithStartWorkflowExecutionRequest + (*SignalWithStartWorkflowExecutionResponse)(nil), // 45: temporal.api.workflowservice.v1.SignalWithStartWorkflowExecutionResponse + (*ResetWorkflowExecutionRequest)(nil), // 46: temporal.api.workflowservice.v1.ResetWorkflowExecutionRequest + (*ResetWorkflowExecutionResponse)(nil), // 47: temporal.api.workflowservice.v1.ResetWorkflowExecutionResponse + (*TerminateWorkflowExecutionRequest)(nil), // 48: temporal.api.workflowservice.v1.TerminateWorkflowExecutionRequest + (*TerminateWorkflowExecutionResponse)(nil), // 49: temporal.api.workflowservice.v1.TerminateWorkflowExecutionResponse + (*DeleteWorkflowExecutionRequest)(nil), // 50: temporal.api.workflowservice.v1.DeleteWorkflowExecutionRequest + (*DeleteWorkflowExecutionResponse)(nil), // 51: temporal.api.workflowservice.v1.DeleteWorkflowExecutionResponse + (*ListOpenWorkflowExecutionsRequest)(nil), // 52: temporal.api.workflowservice.v1.ListOpenWorkflowExecutionsRequest + (*ListOpenWorkflowExecutionsResponse)(nil), // 53: temporal.api.workflowservice.v1.ListOpenWorkflowExecutionsResponse + (*ListClosedWorkflowExecutionsRequest)(nil), // 54: temporal.api.workflowservice.v1.ListClosedWorkflowExecutionsRequest + (*ListClosedWorkflowExecutionsResponse)(nil), // 55: temporal.api.workflowservice.v1.ListClosedWorkflowExecutionsResponse + (*ListWorkflowExecutionsRequest)(nil), // 56: temporal.api.workflowservice.v1.ListWorkflowExecutionsRequest + (*ListWorkflowExecutionsResponse)(nil), // 57: temporal.api.workflowservice.v1.ListWorkflowExecutionsResponse + (*ListArchivedWorkflowExecutionsRequest)(nil), // 58: temporal.api.workflowservice.v1.ListArchivedWorkflowExecutionsRequest + (*ListArchivedWorkflowExecutionsResponse)(nil), // 59: temporal.api.workflowservice.v1.ListArchivedWorkflowExecutionsResponse + (*ScanWorkflowExecutionsRequest)(nil), // 60: temporal.api.workflowservice.v1.ScanWorkflowExecutionsRequest + (*ScanWorkflowExecutionsResponse)(nil), // 61: temporal.api.workflowservice.v1.ScanWorkflowExecutionsResponse + (*CountWorkflowExecutionsRequest)(nil), // 62: temporal.api.workflowservice.v1.CountWorkflowExecutionsRequest + (*CountWorkflowExecutionsResponse)(nil), // 63: temporal.api.workflowservice.v1.CountWorkflowExecutionsResponse + (*GetSearchAttributesRequest)(nil), // 64: temporal.api.workflowservice.v1.GetSearchAttributesRequest + (*GetSearchAttributesResponse)(nil), // 65: temporal.api.workflowservice.v1.GetSearchAttributesResponse + (*RespondQueryTaskCompletedRequest)(nil), // 66: temporal.api.workflowservice.v1.RespondQueryTaskCompletedRequest + (*RespondQueryTaskCompletedResponse)(nil), // 67: temporal.api.workflowservice.v1.RespondQueryTaskCompletedResponse + (*ResetStickyTaskQueueRequest)(nil), // 68: temporal.api.workflowservice.v1.ResetStickyTaskQueueRequest + (*ResetStickyTaskQueueResponse)(nil), // 69: temporal.api.workflowservice.v1.ResetStickyTaskQueueResponse + (*ShutdownWorkerRequest)(nil), // 70: temporal.api.workflowservice.v1.ShutdownWorkerRequest + (*ShutdownWorkerResponse)(nil), // 71: temporal.api.workflowservice.v1.ShutdownWorkerResponse + (*QueryWorkflowRequest)(nil), // 72: temporal.api.workflowservice.v1.QueryWorkflowRequest + (*QueryWorkflowResponse)(nil), // 73: temporal.api.workflowservice.v1.QueryWorkflowResponse + (*DescribeWorkflowExecutionRequest)(nil), // 74: temporal.api.workflowservice.v1.DescribeWorkflowExecutionRequest + (*DescribeWorkflowExecutionResponse)(nil), // 75: temporal.api.workflowservice.v1.DescribeWorkflowExecutionResponse + (*DescribeTaskQueueRequest)(nil), // 76: temporal.api.workflowservice.v1.DescribeTaskQueueRequest + (*DescribeTaskQueueResponse)(nil), // 77: temporal.api.workflowservice.v1.DescribeTaskQueueResponse + (*GetClusterInfoRequest)(nil), // 78: temporal.api.workflowservice.v1.GetClusterInfoRequest + (*GetClusterInfoResponse)(nil), // 79: temporal.api.workflowservice.v1.GetClusterInfoResponse + (*GetSystemInfoRequest)(nil), // 80: temporal.api.workflowservice.v1.GetSystemInfoRequest + (*GetSystemInfoResponse)(nil), // 81: temporal.api.workflowservice.v1.GetSystemInfoResponse + (*ListTaskQueuePartitionsRequest)(nil), // 82: temporal.api.workflowservice.v1.ListTaskQueuePartitionsRequest + (*ListTaskQueuePartitionsResponse)(nil), // 83: temporal.api.workflowservice.v1.ListTaskQueuePartitionsResponse + (*CreateScheduleRequest)(nil), // 84: temporal.api.workflowservice.v1.CreateScheduleRequest + (*CreateScheduleResponse)(nil), // 85: temporal.api.workflowservice.v1.CreateScheduleResponse + (*DescribeScheduleRequest)(nil), // 86: temporal.api.workflowservice.v1.DescribeScheduleRequest + (*DescribeScheduleResponse)(nil), // 87: temporal.api.workflowservice.v1.DescribeScheduleResponse + (*UpdateScheduleRequest)(nil), // 88: temporal.api.workflowservice.v1.UpdateScheduleRequest + (*UpdateScheduleResponse)(nil), // 89: temporal.api.workflowservice.v1.UpdateScheduleResponse + (*PatchScheduleRequest)(nil), // 90: temporal.api.workflowservice.v1.PatchScheduleRequest + (*PatchScheduleResponse)(nil), // 91: temporal.api.workflowservice.v1.PatchScheduleResponse + (*ListScheduleMatchingTimesRequest)(nil), // 92: temporal.api.workflowservice.v1.ListScheduleMatchingTimesRequest + (*ListScheduleMatchingTimesResponse)(nil), // 93: temporal.api.workflowservice.v1.ListScheduleMatchingTimesResponse + (*DeleteScheduleRequest)(nil), // 94: temporal.api.workflowservice.v1.DeleteScheduleRequest + (*DeleteScheduleResponse)(nil), // 95: temporal.api.workflowservice.v1.DeleteScheduleResponse + (*ListSchedulesRequest)(nil), // 96: temporal.api.workflowservice.v1.ListSchedulesRequest + (*ListSchedulesResponse)(nil), // 97: temporal.api.workflowservice.v1.ListSchedulesResponse + (*UpdateWorkerBuildIdCompatibilityRequest)(nil), // 98: temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityRequest + (*UpdateWorkerBuildIdCompatibilityResponse)(nil), // 99: temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityResponse + (*GetWorkerBuildIdCompatibilityRequest)(nil), // 100: temporal.api.workflowservice.v1.GetWorkerBuildIdCompatibilityRequest + (*GetWorkerBuildIdCompatibilityResponse)(nil), // 101: temporal.api.workflowservice.v1.GetWorkerBuildIdCompatibilityResponse + (*UpdateWorkerVersioningRulesRequest)(nil), // 102: temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest + (*UpdateWorkerVersioningRulesResponse)(nil), // 103: temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesResponse + (*GetWorkerVersioningRulesRequest)(nil), // 104: temporal.api.workflowservice.v1.GetWorkerVersioningRulesRequest + (*GetWorkerVersioningRulesResponse)(nil), // 105: temporal.api.workflowservice.v1.GetWorkerVersioningRulesResponse + (*GetWorkerTaskReachabilityRequest)(nil), // 106: temporal.api.workflowservice.v1.GetWorkerTaskReachabilityRequest + (*GetWorkerTaskReachabilityResponse)(nil), // 107: temporal.api.workflowservice.v1.GetWorkerTaskReachabilityResponse + (*UpdateWorkflowExecutionRequest)(nil), // 108: temporal.api.workflowservice.v1.UpdateWorkflowExecutionRequest + (*UpdateWorkflowExecutionResponse)(nil), // 109: temporal.api.workflowservice.v1.UpdateWorkflowExecutionResponse + (*StartBatchOperationRequest)(nil), // 110: temporal.api.workflowservice.v1.StartBatchOperationRequest + (*StartBatchOperationResponse)(nil), // 111: temporal.api.workflowservice.v1.StartBatchOperationResponse + (*StopBatchOperationRequest)(nil), // 112: temporal.api.workflowservice.v1.StopBatchOperationRequest + (*StopBatchOperationResponse)(nil), // 113: temporal.api.workflowservice.v1.StopBatchOperationResponse + (*DescribeBatchOperationRequest)(nil), // 114: temporal.api.workflowservice.v1.DescribeBatchOperationRequest + (*DescribeBatchOperationResponse)(nil), // 115: temporal.api.workflowservice.v1.DescribeBatchOperationResponse + (*ListBatchOperationsRequest)(nil), // 116: temporal.api.workflowservice.v1.ListBatchOperationsRequest + (*ListBatchOperationsResponse)(nil), // 117: temporal.api.workflowservice.v1.ListBatchOperationsResponse + (*PollWorkflowExecutionUpdateRequest)(nil), // 118: temporal.api.workflowservice.v1.PollWorkflowExecutionUpdateRequest + (*PollWorkflowExecutionUpdateResponse)(nil), // 119: temporal.api.workflowservice.v1.PollWorkflowExecutionUpdateResponse + (*PollNexusTaskQueueRequest)(nil), // 120: temporal.api.workflowservice.v1.PollNexusTaskQueueRequest + (*PollNexusTaskQueueResponse)(nil), // 121: temporal.api.workflowservice.v1.PollNexusTaskQueueResponse + (*RespondNexusTaskCompletedRequest)(nil), // 122: temporal.api.workflowservice.v1.RespondNexusTaskCompletedRequest + (*RespondNexusTaskCompletedResponse)(nil), // 123: temporal.api.workflowservice.v1.RespondNexusTaskCompletedResponse + (*RespondNexusTaskFailedRequest)(nil), // 124: temporal.api.workflowservice.v1.RespondNexusTaskFailedRequest + (*RespondNexusTaskFailedResponse)(nil), // 125: temporal.api.workflowservice.v1.RespondNexusTaskFailedResponse + (*ExecuteMultiOperationRequest)(nil), // 126: temporal.api.workflowservice.v1.ExecuteMultiOperationRequest + (*ExecuteMultiOperationResponse)(nil), // 127: temporal.api.workflowservice.v1.ExecuteMultiOperationResponse + (*UpdateActivityOptionsRequest)(nil), // 128: temporal.api.workflowservice.v1.UpdateActivityOptionsRequest + (*UpdateActivityOptionsResponse)(nil), // 129: temporal.api.workflowservice.v1.UpdateActivityOptionsResponse + (*PauseActivityRequest)(nil), // 130: temporal.api.workflowservice.v1.PauseActivityRequest + (*PauseActivityResponse)(nil), // 131: temporal.api.workflowservice.v1.PauseActivityResponse + (*UnpauseActivityRequest)(nil), // 132: temporal.api.workflowservice.v1.UnpauseActivityRequest + (*UnpauseActivityResponse)(nil), // 133: temporal.api.workflowservice.v1.UnpauseActivityResponse + (*ResetActivityRequest)(nil), // 134: temporal.api.workflowservice.v1.ResetActivityRequest + (*ResetActivityResponse)(nil), // 135: temporal.api.workflowservice.v1.ResetActivityResponse + (*UpdateWorkflowExecutionOptionsRequest)(nil), // 136: temporal.api.workflowservice.v1.UpdateWorkflowExecutionOptionsRequest + (*UpdateWorkflowExecutionOptionsResponse)(nil), // 137: temporal.api.workflowservice.v1.UpdateWorkflowExecutionOptionsResponse + (*DescribeDeploymentRequest)(nil), // 138: temporal.api.workflowservice.v1.DescribeDeploymentRequest + (*DescribeDeploymentResponse)(nil), // 139: temporal.api.workflowservice.v1.DescribeDeploymentResponse + (*DescribeWorkerDeploymentVersionRequest)(nil), // 140: temporal.api.workflowservice.v1.DescribeWorkerDeploymentVersionRequest + (*DescribeWorkerDeploymentVersionResponse)(nil), // 141: temporal.api.workflowservice.v1.DescribeWorkerDeploymentVersionResponse + (*DescribeWorkerDeploymentRequest)(nil), // 142: temporal.api.workflowservice.v1.DescribeWorkerDeploymentRequest + (*DescribeWorkerDeploymentResponse)(nil), // 143: temporal.api.workflowservice.v1.DescribeWorkerDeploymentResponse + (*ListDeploymentsRequest)(nil), // 144: temporal.api.workflowservice.v1.ListDeploymentsRequest + (*ListDeploymentsResponse)(nil), // 145: temporal.api.workflowservice.v1.ListDeploymentsResponse + (*SetCurrentDeploymentRequest)(nil), // 146: temporal.api.workflowservice.v1.SetCurrentDeploymentRequest + (*SetCurrentDeploymentResponse)(nil), // 147: temporal.api.workflowservice.v1.SetCurrentDeploymentResponse + (*SetWorkerDeploymentCurrentVersionRequest)(nil), // 148: temporal.api.workflowservice.v1.SetWorkerDeploymentCurrentVersionRequest + (*SetWorkerDeploymentCurrentVersionResponse)(nil), // 149: temporal.api.workflowservice.v1.SetWorkerDeploymentCurrentVersionResponse + (*SetWorkerDeploymentRampingVersionRequest)(nil), // 150: temporal.api.workflowservice.v1.SetWorkerDeploymentRampingVersionRequest + (*SetWorkerDeploymentRampingVersionResponse)(nil), // 151: temporal.api.workflowservice.v1.SetWorkerDeploymentRampingVersionResponse + (*ListWorkerDeploymentsRequest)(nil), // 152: temporal.api.workflowservice.v1.ListWorkerDeploymentsRequest + (*ListWorkerDeploymentsResponse)(nil), // 153: temporal.api.workflowservice.v1.ListWorkerDeploymentsResponse + (*DeleteWorkerDeploymentVersionRequest)(nil), // 154: temporal.api.workflowservice.v1.DeleteWorkerDeploymentVersionRequest + (*DeleteWorkerDeploymentVersionResponse)(nil), // 155: temporal.api.workflowservice.v1.DeleteWorkerDeploymentVersionResponse + (*DeleteWorkerDeploymentRequest)(nil), // 156: temporal.api.workflowservice.v1.DeleteWorkerDeploymentRequest + (*DeleteWorkerDeploymentResponse)(nil), // 157: temporal.api.workflowservice.v1.DeleteWorkerDeploymentResponse + (*UpdateWorkerDeploymentVersionMetadataRequest)(nil), // 158: temporal.api.workflowservice.v1.UpdateWorkerDeploymentVersionMetadataRequest + (*UpdateWorkerDeploymentVersionMetadataResponse)(nil), // 159: temporal.api.workflowservice.v1.UpdateWorkerDeploymentVersionMetadataResponse + (*SetWorkerDeploymentManagerRequest)(nil), // 160: temporal.api.workflowservice.v1.SetWorkerDeploymentManagerRequest + (*SetWorkerDeploymentManagerResponse)(nil), // 161: temporal.api.workflowservice.v1.SetWorkerDeploymentManagerResponse + (*GetCurrentDeploymentRequest)(nil), // 162: temporal.api.workflowservice.v1.GetCurrentDeploymentRequest + (*GetCurrentDeploymentResponse)(nil), // 163: temporal.api.workflowservice.v1.GetCurrentDeploymentResponse + (*GetDeploymentReachabilityRequest)(nil), // 164: temporal.api.workflowservice.v1.GetDeploymentReachabilityRequest + (*GetDeploymentReachabilityResponse)(nil), // 165: temporal.api.workflowservice.v1.GetDeploymentReachabilityResponse + (*CreateWorkflowRuleRequest)(nil), // 166: temporal.api.workflowservice.v1.CreateWorkflowRuleRequest + (*CreateWorkflowRuleResponse)(nil), // 167: temporal.api.workflowservice.v1.CreateWorkflowRuleResponse + (*DescribeWorkflowRuleRequest)(nil), // 168: temporal.api.workflowservice.v1.DescribeWorkflowRuleRequest + (*DescribeWorkflowRuleResponse)(nil), // 169: temporal.api.workflowservice.v1.DescribeWorkflowRuleResponse + (*DeleteWorkflowRuleRequest)(nil), // 170: temporal.api.workflowservice.v1.DeleteWorkflowRuleRequest + (*DeleteWorkflowRuleResponse)(nil), // 171: temporal.api.workflowservice.v1.DeleteWorkflowRuleResponse + (*ListWorkflowRulesRequest)(nil), // 172: temporal.api.workflowservice.v1.ListWorkflowRulesRequest + (*ListWorkflowRulesResponse)(nil), // 173: temporal.api.workflowservice.v1.ListWorkflowRulesResponse + (*TriggerWorkflowRuleRequest)(nil), // 174: temporal.api.workflowservice.v1.TriggerWorkflowRuleRequest + (*TriggerWorkflowRuleResponse)(nil), // 175: temporal.api.workflowservice.v1.TriggerWorkflowRuleResponse + (*RecordWorkerHeartbeatRequest)(nil), // 176: temporal.api.workflowservice.v1.RecordWorkerHeartbeatRequest + (*RecordWorkerHeartbeatResponse)(nil), // 177: temporal.api.workflowservice.v1.RecordWorkerHeartbeatResponse + (*ListWorkersRequest)(nil), // 178: temporal.api.workflowservice.v1.ListWorkersRequest + (*ListWorkersResponse)(nil), // 179: temporal.api.workflowservice.v1.ListWorkersResponse + (*UpdateTaskQueueConfigRequest)(nil), // 180: temporal.api.workflowservice.v1.UpdateTaskQueueConfigRequest + (*UpdateTaskQueueConfigResponse)(nil), // 181: temporal.api.workflowservice.v1.UpdateTaskQueueConfigResponse + (*FetchWorkerConfigRequest)(nil), // 182: temporal.api.workflowservice.v1.FetchWorkerConfigRequest + (*FetchWorkerConfigResponse)(nil), // 183: temporal.api.workflowservice.v1.FetchWorkerConfigResponse + (*UpdateWorkerConfigRequest)(nil), // 184: temporal.api.workflowservice.v1.UpdateWorkerConfigRequest + (*UpdateWorkerConfigResponse)(nil), // 185: temporal.api.workflowservice.v1.UpdateWorkerConfigResponse + (*DescribeWorkerRequest)(nil), // 186: temporal.api.workflowservice.v1.DescribeWorkerRequest + (*DescribeWorkerResponse)(nil), // 187: temporal.api.workflowservice.v1.DescribeWorkerResponse + (*PauseWorkflowExecutionRequest)(nil), // 188: temporal.api.workflowservice.v1.PauseWorkflowExecutionRequest + (*PauseWorkflowExecutionResponse)(nil), // 189: temporal.api.workflowservice.v1.PauseWorkflowExecutionResponse + (*UnpauseWorkflowExecutionRequest)(nil), // 190: temporal.api.workflowservice.v1.UnpauseWorkflowExecutionRequest + (*UnpauseWorkflowExecutionResponse)(nil), // 191: temporal.api.workflowservice.v1.UnpauseWorkflowExecutionResponse + (*StartActivityExecutionRequest)(nil), // 192: temporal.api.workflowservice.v1.StartActivityExecutionRequest + (*StartActivityExecutionResponse)(nil), // 193: temporal.api.workflowservice.v1.StartActivityExecutionResponse + (*DescribeActivityExecutionRequest)(nil), // 194: temporal.api.workflowservice.v1.DescribeActivityExecutionRequest + (*DescribeActivityExecutionResponse)(nil), // 195: temporal.api.workflowservice.v1.DescribeActivityExecutionResponse + (*PollActivityExecutionRequest)(nil), // 196: temporal.api.workflowservice.v1.PollActivityExecutionRequest + (*PollActivityExecutionResponse)(nil), // 197: temporal.api.workflowservice.v1.PollActivityExecutionResponse + (*ListActivityExecutionsRequest)(nil), // 198: temporal.api.workflowservice.v1.ListActivityExecutionsRequest + (*ListActivityExecutionsResponse)(nil), // 199: temporal.api.workflowservice.v1.ListActivityExecutionsResponse + (*CountActivityExecutionsRequest)(nil), // 200: temporal.api.workflowservice.v1.CountActivityExecutionsRequest + (*CountActivityExecutionsResponse)(nil), // 201: temporal.api.workflowservice.v1.CountActivityExecutionsResponse + (*RequestCancelActivityExecutionRequest)(nil), // 202: temporal.api.workflowservice.v1.RequestCancelActivityExecutionRequest + (*RequestCancelActivityExecutionResponse)(nil), // 203: temporal.api.workflowservice.v1.RequestCancelActivityExecutionResponse + (*TerminateActivityExecutionRequest)(nil), // 204: temporal.api.workflowservice.v1.TerminateActivityExecutionRequest + (*TerminateActivityExecutionResponse)(nil), // 205: temporal.api.workflowservice.v1.TerminateActivityExecutionResponse + (*DeleteActivityExecutionRequest)(nil), // 206: temporal.api.workflowservice.v1.DeleteActivityExecutionRequest + (*DeleteActivityExecutionResponse)(nil), // 207: temporal.api.workflowservice.v1.DeleteActivityExecutionResponse + nil, // 208: temporal.api.workflowservice.v1.RegisterNamespaceRequest.DataEntry + nil, // 209: temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse.QueriesEntry + nil, // 210: temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedRequest.QueryResultsEntry + (*RespondWorkflowTaskCompletedRequest_Capabilities)(nil), // 211: temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedRequest.Capabilities + (*CountWorkflowExecutionsResponse_AggregationGroup)(nil), // 212: temporal.api.workflowservice.v1.CountWorkflowExecutionsResponse.AggregationGroup + nil, // 213: temporal.api.workflowservice.v1.GetSearchAttributesResponse.KeysEntry + nil, // 214: temporal.api.workflowservice.v1.DescribeTaskQueueResponse.StatsByPriorityKeyEntry + (*DescribeTaskQueueResponse_EffectiveRateLimit)(nil), // 215: temporal.api.workflowservice.v1.DescribeTaskQueueResponse.EffectiveRateLimit + nil, // 216: temporal.api.workflowservice.v1.DescribeTaskQueueResponse.VersionsInfoEntry + nil, // 217: temporal.api.workflowservice.v1.GetClusterInfoResponse.SupportedClientsEntry + (*GetSystemInfoResponse_Capabilities)(nil), // 218: temporal.api.workflowservice.v1.GetSystemInfoResponse.Capabilities + (*UpdateWorkerBuildIdCompatibilityRequest_AddNewCompatibleVersion)(nil), // 219: temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityRequest.AddNewCompatibleVersion + (*UpdateWorkerBuildIdCompatibilityRequest_MergeSets)(nil), // 220: temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityRequest.MergeSets + (*UpdateWorkerVersioningRulesRequest_InsertBuildIdAssignmentRule)(nil), // 221: temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.InsertBuildIdAssignmentRule + (*UpdateWorkerVersioningRulesRequest_ReplaceBuildIdAssignmentRule)(nil), // 222: temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.ReplaceBuildIdAssignmentRule + (*UpdateWorkerVersioningRulesRequest_DeleteBuildIdAssignmentRule)(nil), // 223: temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.DeleteBuildIdAssignmentRule + (*UpdateWorkerVersioningRulesRequest_AddCompatibleBuildIdRedirectRule)(nil), // 224: temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.AddCompatibleBuildIdRedirectRule + (*UpdateWorkerVersioningRulesRequest_ReplaceCompatibleBuildIdRedirectRule)(nil), // 225: temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.ReplaceCompatibleBuildIdRedirectRule + (*UpdateWorkerVersioningRulesRequest_DeleteCompatibleBuildIdRedirectRule)(nil), // 226: temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.DeleteCompatibleBuildIdRedirectRule + (*UpdateWorkerVersioningRulesRequest_CommitBuildId)(nil), // 227: temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.CommitBuildId + (*ExecuteMultiOperationRequest_Operation)(nil), // 228: temporal.api.workflowservice.v1.ExecuteMultiOperationRequest.Operation + (*ExecuteMultiOperationResponse_Response)(nil), // 229: temporal.api.workflowservice.v1.ExecuteMultiOperationResponse.Response + (*DescribeWorkerDeploymentVersionResponse_VersionTaskQueue)(nil), // 230: temporal.api.workflowservice.v1.DescribeWorkerDeploymentVersionResponse.VersionTaskQueue + nil, // 231: temporal.api.workflowservice.v1.DescribeWorkerDeploymentVersionResponse.VersionTaskQueue.StatsByPriorityKeyEntry + (*ListWorkerDeploymentsResponse_WorkerDeploymentSummary)(nil), // 232: temporal.api.workflowservice.v1.ListWorkerDeploymentsResponse.WorkerDeploymentSummary + nil, // 233: temporal.api.workflowservice.v1.UpdateWorkerDeploymentVersionMetadataRequest.UpsertEntriesEntry + (*UpdateTaskQueueConfigRequest_RateLimitUpdate)(nil), // 234: temporal.api.workflowservice.v1.UpdateTaskQueueConfigRequest.RateLimitUpdate + nil, // 235: temporal.api.workflowservice.v1.UpdateTaskQueueConfigRequest.SetFairnessWeightOverridesEntry + (*CountActivityExecutionsResponse_AggregationGroup)(nil), // 236: temporal.api.workflowservice.v1.CountActivityExecutionsResponse.AggregationGroup + (*durationpb.Duration)(nil), // 237: google.protobuf.Duration + (*v1.ClusterReplicationConfig)(nil), // 238: temporal.api.replication.v1.ClusterReplicationConfig + (v11.ArchivalState)(0), // 239: temporal.api.enums.v1.ArchivalState + (*v12.NamespaceFilter)(nil), // 240: temporal.api.namespace.v1.NamespaceFilter + (*v12.NamespaceInfo)(nil), // 241: temporal.api.namespace.v1.NamespaceInfo + (*v12.NamespaceConfig)(nil), // 242: temporal.api.namespace.v1.NamespaceConfig + (*v1.NamespaceReplicationConfig)(nil), // 243: temporal.api.replication.v1.NamespaceReplicationConfig + (*v1.FailoverStatus)(nil), // 244: temporal.api.replication.v1.FailoverStatus + (*v12.UpdateNamespaceInfo)(nil), // 245: temporal.api.namespace.v1.UpdateNamespaceInfo + (*v13.WorkflowType)(nil), // 246: temporal.api.common.v1.WorkflowType + (*v14.TaskQueue)(nil), // 247: temporal.api.taskqueue.v1.TaskQueue + (*v13.Payloads)(nil), // 248: temporal.api.common.v1.Payloads + (v11.WorkflowIdReusePolicy)(0), // 249: temporal.api.enums.v1.WorkflowIdReusePolicy + (v11.WorkflowIdConflictPolicy)(0), // 250: temporal.api.enums.v1.WorkflowIdConflictPolicy + (*v13.RetryPolicy)(nil), // 251: temporal.api.common.v1.RetryPolicy + (*v13.Memo)(nil), // 252: temporal.api.common.v1.Memo + (*v13.SearchAttributes)(nil), // 253: temporal.api.common.v1.SearchAttributes + (*v13.Header)(nil), // 254: temporal.api.common.v1.Header + (*v15.Failure)(nil), // 255: temporal.api.failure.v1.Failure + (*v13.Callback)(nil), // 256: temporal.api.common.v1.Callback + (*v16.UserMetadata)(nil), // 257: temporal.api.sdk.v1.UserMetadata + (*v13.Link)(nil), // 258: temporal.api.common.v1.Link + (*v17.VersioningOverride)(nil), // 259: temporal.api.workflow.v1.VersioningOverride + (*v17.OnConflictOptions)(nil), // 260: temporal.api.workflow.v1.OnConflictOptions + (*v13.Priority)(nil), // 261: temporal.api.common.v1.Priority + (*v18.WorkerDeploymentOptions)(nil), // 262: temporal.api.deployment.v1.WorkerDeploymentOptions + (v11.WorkflowExecutionStatus)(0), // 263: temporal.api.enums.v1.WorkflowExecutionStatus + (*v13.WorkflowExecution)(nil), // 264: temporal.api.common.v1.WorkflowExecution + (v11.HistoryEventFilterType)(0), // 265: temporal.api.enums.v1.HistoryEventFilterType + (*v19.History)(nil), // 266: temporal.api.history.v1.History + (*v13.DataBlob)(nil), // 267: temporal.api.common.v1.DataBlob + (*v13.WorkerVersionCapabilities)(nil), // 268: temporal.api.common.v1.WorkerVersionCapabilities + (*v110.WorkflowQuery)(nil), // 269: temporal.api.query.v1.WorkflowQuery + (*timestamppb.Timestamp)(nil), // 270: google.protobuf.Timestamp + (*v111.Message)(nil), // 271: temporal.api.protocol.v1.Message + (*v14.PollerScalingDecision)(nil), // 272: temporal.api.taskqueue.v1.PollerScalingDecision + (*v112.Command)(nil), // 273: temporal.api.command.v1.Command + (*v14.StickyExecutionAttributes)(nil), // 274: temporal.api.taskqueue.v1.StickyExecutionAttributes + (*v13.WorkerVersionStamp)(nil), // 275: temporal.api.common.v1.WorkerVersionStamp + (*v16.WorkflowTaskCompletedMetadata)(nil), // 276: temporal.api.sdk.v1.WorkflowTaskCompletedMetadata + (*v13.MeteringMetadata)(nil), // 277: temporal.api.common.v1.MeteringMetadata + (*v18.Deployment)(nil), // 278: temporal.api.deployment.v1.Deployment + (v11.VersioningBehavior)(0), // 279: temporal.api.enums.v1.VersioningBehavior + (v11.WorkflowTaskFailedCause)(0), // 280: temporal.api.enums.v1.WorkflowTaskFailedCause + (*v14.TaskQueueMetadata)(nil), // 281: temporal.api.taskqueue.v1.TaskQueueMetadata + (*v13.ActivityType)(nil), // 282: temporal.api.common.v1.ActivityType + (v11.ResetReapplyType)(0), // 283: temporal.api.enums.v1.ResetReapplyType + (v11.ResetReapplyExcludeType)(0), // 284: temporal.api.enums.v1.ResetReapplyExcludeType + (*v17.PostResetOperation)(nil), // 285: temporal.api.workflow.v1.PostResetOperation + (*v113.StartTimeFilter)(nil), // 286: temporal.api.filter.v1.StartTimeFilter + (*v113.WorkflowExecutionFilter)(nil), // 287: temporal.api.filter.v1.WorkflowExecutionFilter + (*v113.WorkflowTypeFilter)(nil), // 288: temporal.api.filter.v1.WorkflowTypeFilter + (*v17.WorkflowExecutionInfo)(nil), // 289: temporal.api.workflow.v1.WorkflowExecutionInfo + (*v113.StatusFilter)(nil), // 290: temporal.api.filter.v1.StatusFilter + (v11.QueryResultType)(0), // 291: temporal.api.enums.v1.QueryResultType + (*v114.WorkerHeartbeat)(nil), // 292: temporal.api.worker.v1.WorkerHeartbeat + (v11.TaskQueueType)(0), // 293: temporal.api.enums.v1.TaskQueueType + (v11.QueryRejectCondition)(0), // 294: temporal.api.enums.v1.QueryRejectCondition + (*v110.QueryRejected)(nil), // 295: temporal.api.query.v1.QueryRejected + (*v17.WorkflowExecutionConfig)(nil), // 296: temporal.api.workflow.v1.WorkflowExecutionConfig + (*v17.PendingActivityInfo)(nil), // 297: temporal.api.workflow.v1.PendingActivityInfo + (*v17.PendingChildExecutionInfo)(nil), // 298: temporal.api.workflow.v1.PendingChildExecutionInfo + (*v17.PendingWorkflowTaskInfo)(nil), // 299: temporal.api.workflow.v1.PendingWorkflowTaskInfo + (*v17.CallbackInfo)(nil), // 300: temporal.api.workflow.v1.CallbackInfo + (*v17.PendingNexusOperationInfo)(nil), // 301: temporal.api.workflow.v1.PendingNexusOperationInfo + (*v17.WorkflowExecutionExtendedInfo)(nil), // 302: temporal.api.workflow.v1.WorkflowExecutionExtendedInfo + (v11.DescribeTaskQueueMode)(0), // 303: temporal.api.enums.v1.DescribeTaskQueueMode + (*v14.TaskQueueVersionSelection)(nil), // 304: temporal.api.taskqueue.v1.TaskQueueVersionSelection + (*v14.PollerInfo)(nil), // 305: temporal.api.taskqueue.v1.PollerInfo + (*v14.TaskQueueStats)(nil), // 306: temporal.api.taskqueue.v1.TaskQueueStats + (*v14.TaskQueueVersioningInfo)(nil), // 307: temporal.api.taskqueue.v1.TaskQueueVersioningInfo + (*v14.TaskQueueConfig)(nil), // 308: temporal.api.taskqueue.v1.TaskQueueConfig + (*v14.TaskQueueStatus)(nil), // 309: temporal.api.taskqueue.v1.TaskQueueStatus + (*v115.VersionInfo)(nil), // 310: temporal.api.version.v1.VersionInfo + (*v14.TaskQueuePartitionMetadata)(nil), // 311: temporal.api.taskqueue.v1.TaskQueuePartitionMetadata + (*v116.Schedule)(nil), // 312: temporal.api.schedule.v1.Schedule + (*v116.SchedulePatch)(nil), // 313: temporal.api.schedule.v1.SchedulePatch + (*v116.ScheduleInfo)(nil), // 314: temporal.api.schedule.v1.ScheduleInfo + (*v116.ScheduleListEntry)(nil), // 315: temporal.api.schedule.v1.ScheduleListEntry + (*v14.CompatibleVersionSet)(nil), // 316: temporal.api.taskqueue.v1.CompatibleVersionSet + (*v14.TimestampedBuildIdAssignmentRule)(nil), // 317: temporal.api.taskqueue.v1.TimestampedBuildIdAssignmentRule + (*v14.TimestampedCompatibleBuildIdRedirectRule)(nil), // 318: temporal.api.taskqueue.v1.TimestampedCompatibleBuildIdRedirectRule + (v11.TaskReachability)(0), // 319: temporal.api.enums.v1.TaskReachability + (*v14.BuildIdReachability)(nil), // 320: temporal.api.taskqueue.v1.BuildIdReachability + (*v117.WaitPolicy)(nil), // 321: temporal.api.update.v1.WaitPolicy + (*v117.Request)(nil), // 322: temporal.api.update.v1.Request + (*v117.UpdateRef)(nil), // 323: temporal.api.update.v1.UpdateRef + (*v117.Outcome)(nil), // 324: temporal.api.update.v1.Outcome + (v11.UpdateWorkflowExecutionLifecycleStage)(0), // 325: temporal.api.enums.v1.UpdateWorkflowExecutionLifecycleStage + (*v118.BatchOperationTermination)(nil), // 326: temporal.api.batch.v1.BatchOperationTermination + (*v118.BatchOperationSignal)(nil), // 327: temporal.api.batch.v1.BatchOperationSignal + (*v118.BatchOperationCancellation)(nil), // 328: temporal.api.batch.v1.BatchOperationCancellation + (*v118.BatchOperationDeletion)(nil), // 329: temporal.api.batch.v1.BatchOperationDeletion + (*v118.BatchOperationReset)(nil), // 330: temporal.api.batch.v1.BatchOperationReset + (*v118.BatchOperationUpdateWorkflowExecutionOptions)(nil), // 331: temporal.api.batch.v1.BatchOperationUpdateWorkflowExecutionOptions + (*v118.BatchOperationUnpauseActivities)(nil), // 332: temporal.api.batch.v1.BatchOperationUnpauseActivities + (*v118.BatchOperationResetActivities)(nil), // 333: temporal.api.batch.v1.BatchOperationResetActivities + (*v118.BatchOperationUpdateActivityOptions)(nil), // 334: temporal.api.batch.v1.BatchOperationUpdateActivityOptions + (v11.BatchOperationType)(0), // 335: temporal.api.enums.v1.BatchOperationType + (v11.BatchOperationState)(0), // 336: temporal.api.enums.v1.BatchOperationState + (*v118.BatchOperationInfo)(nil), // 337: temporal.api.batch.v1.BatchOperationInfo + (*v119.Request)(nil), // 338: temporal.api.nexus.v1.Request + (*v119.Response)(nil), // 339: temporal.api.nexus.v1.Response + (*v119.HandlerError)(nil), // 340: temporal.api.nexus.v1.HandlerError + (*v120.ActivityOptions)(nil), // 341: temporal.api.activity.v1.ActivityOptions + (*fieldmaskpb.FieldMask)(nil), // 342: google.protobuf.FieldMask + (*v17.WorkflowExecutionOptions)(nil), // 343: temporal.api.workflow.v1.WorkflowExecutionOptions + (*v18.DeploymentInfo)(nil), // 344: temporal.api.deployment.v1.DeploymentInfo + (*v18.WorkerDeploymentVersion)(nil), // 345: temporal.api.deployment.v1.WorkerDeploymentVersion + (*v18.WorkerDeploymentVersionInfo)(nil), // 346: temporal.api.deployment.v1.WorkerDeploymentVersionInfo + (*v18.WorkerDeploymentInfo)(nil), // 347: temporal.api.deployment.v1.WorkerDeploymentInfo + (*v18.DeploymentListInfo)(nil), // 348: temporal.api.deployment.v1.DeploymentListInfo + (*v18.UpdateDeploymentMetadata)(nil), // 349: temporal.api.deployment.v1.UpdateDeploymentMetadata + (*v18.VersionMetadata)(nil), // 350: temporal.api.deployment.v1.VersionMetadata + (v11.DeploymentReachability)(0), // 351: temporal.api.enums.v1.DeploymentReachability + (*v121.WorkflowRuleSpec)(nil), // 352: temporal.api.rules.v1.WorkflowRuleSpec + (*v121.WorkflowRule)(nil), // 353: temporal.api.rules.v1.WorkflowRule + (*v114.WorkerInfo)(nil), // 354: temporal.api.worker.v1.WorkerInfo + (*v13.WorkerSelector)(nil), // 355: temporal.api.common.v1.WorkerSelector + (*v16.WorkerConfig)(nil), // 356: temporal.api.sdk.v1.WorkerConfig + (v11.ActivityIdReusePolicy)(0), // 357: temporal.api.enums.v1.ActivityIdReusePolicy + (v11.ActivityIdConflictPolicy)(0), // 358: temporal.api.enums.v1.ActivityIdConflictPolicy + (*v120.ActivityExecutionInfo)(nil), // 359: temporal.api.activity.v1.ActivityExecutionInfo + (*v120.ActivityExecutionOutcome)(nil), // 360: temporal.api.activity.v1.ActivityExecutionOutcome + (*v120.ActivityExecutionListInfo)(nil), // 361: temporal.api.activity.v1.ActivityExecutionListInfo + (*v110.WorkflowQueryResult)(nil), // 362: temporal.api.query.v1.WorkflowQueryResult + (*v13.Payload)(nil), // 363: temporal.api.common.v1.Payload + (v11.IndexedValueType)(0), // 364: temporal.api.enums.v1.IndexedValueType + (v11.RateLimitSource)(0), // 365: temporal.api.enums.v1.RateLimitSource + (*v14.TaskQueueVersionInfo)(nil), // 366: temporal.api.taskqueue.v1.TaskQueueVersionInfo + (*v14.BuildIdAssignmentRule)(nil), // 367: temporal.api.taskqueue.v1.BuildIdAssignmentRule + (*v14.CompatibleBuildIdRedirectRule)(nil), // 368: temporal.api.taskqueue.v1.CompatibleBuildIdRedirectRule + (*v18.RoutingConfig)(nil), // 369: temporal.api.deployment.v1.RoutingConfig + (*v18.WorkerDeploymentInfo_WorkerDeploymentVersionSummary)(nil), // 370: temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummary + (*v14.RateLimit)(nil), // 371: temporal.api.taskqueue.v1.RateLimit +} +var file_temporal_api_workflowservice_v1_request_response_proto_depIdxs = []int32{ + 237, // 0: temporal.api.workflowservice.v1.RegisterNamespaceRequest.workflow_execution_retention_period:type_name -> google.protobuf.Duration + 238, // 1: temporal.api.workflowservice.v1.RegisterNamespaceRequest.clusters:type_name -> temporal.api.replication.v1.ClusterReplicationConfig + 208, // 2: temporal.api.workflowservice.v1.RegisterNamespaceRequest.data:type_name -> temporal.api.workflowservice.v1.RegisterNamespaceRequest.DataEntry + 239, // 3: temporal.api.workflowservice.v1.RegisterNamespaceRequest.history_archival_state:type_name -> temporal.api.enums.v1.ArchivalState + 239, // 4: temporal.api.workflowservice.v1.RegisterNamespaceRequest.visibility_archival_state:type_name -> temporal.api.enums.v1.ArchivalState + 240, // 5: temporal.api.workflowservice.v1.ListNamespacesRequest.namespace_filter:type_name -> temporal.api.namespace.v1.NamespaceFilter + 5, // 6: temporal.api.workflowservice.v1.ListNamespacesResponse.namespaces:type_name -> temporal.api.workflowservice.v1.DescribeNamespaceResponse + 241, // 7: temporal.api.workflowservice.v1.DescribeNamespaceResponse.namespace_info:type_name -> temporal.api.namespace.v1.NamespaceInfo + 242, // 8: temporal.api.workflowservice.v1.DescribeNamespaceResponse.config:type_name -> temporal.api.namespace.v1.NamespaceConfig + 243, // 9: temporal.api.workflowservice.v1.DescribeNamespaceResponse.replication_config:type_name -> temporal.api.replication.v1.NamespaceReplicationConfig + 244, // 10: temporal.api.workflowservice.v1.DescribeNamespaceResponse.failover_history:type_name -> temporal.api.replication.v1.FailoverStatus + 245, // 11: temporal.api.workflowservice.v1.UpdateNamespaceRequest.update_info:type_name -> temporal.api.namespace.v1.UpdateNamespaceInfo + 242, // 12: temporal.api.workflowservice.v1.UpdateNamespaceRequest.config:type_name -> temporal.api.namespace.v1.NamespaceConfig + 243, // 13: temporal.api.workflowservice.v1.UpdateNamespaceRequest.replication_config:type_name -> temporal.api.replication.v1.NamespaceReplicationConfig + 241, // 14: temporal.api.workflowservice.v1.UpdateNamespaceResponse.namespace_info:type_name -> temporal.api.namespace.v1.NamespaceInfo + 242, // 15: temporal.api.workflowservice.v1.UpdateNamespaceResponse.config:type_name -> temporal.api.namespace.v1.NamespaceConfig + 243, // 16: temporal.api.workflowservice.v1.UpdateNamespaceResponse.replication_config:type_name -> temporal.api.replication.v1.NamespaceReplicationConfig + 246, // 17: temporal.api.workflowservice.v1.StartWorkflowExecutionRequest.workflow_type:type_name -> temporal.api.common.v1.WorkflowType + 247, // 18: temporal.api.workflowservice.v1.StartWorkflowExecutionRequest.task_queue:type_name -> temporal.api.taskqueue.v1.TaskQueue + 248, // 19: temporal.api.workflowservice.v1.StartWorkflowExecutionRequest.input:type_name -> temporal.api.common.v1.Payloads + 237, // 20: temporal.api.workflowservice.v1.StartWorkflowExecutionRequest.workflow_execution_timeout:type_name -> google.protobuf.Duration + 237, // 21: temporal.api.workflowservice.v1.StartWorkflowExecutionRequest.workflow_run_timeout:type_name -> google.protobuf.Duration + 237, // 22: temporal.api.workflowservice.v1.StartWorkflowExecutionRequest.workflow_task_timeout:type_name -> google.protobuf.Duration + 249, // 23: temporal.api.workflowservice.v1.StartWorkflowExecutionRequest.workflow_id_reuse_policy:type_name -> temporal.api.enums.v1.WorkflowIdReusePolicy + 250, // 24: temporal.api.workflowservice.v1.StartWorkflowExecutionRequest.workflow_id_conflict_policy:type_name -> temporal.api.enums.v1.WorkflowIdConflictPolicy + 251, // 25: temporal.api.workflowservice.v1.StartWorkflowExecutionRequest.retry_policy:type_name -> temporal.api.common.v1.RetryPolicy + 252, // 26: temporal.api.workflowservice.v1.StartWorkflowExecutionRequest.memo:type_name -> temporal.api.common.v1.Memo + 253, // 27: temporal.api.workflowservice.v1.StartWorkflowExecutionRequest.search_attributes:type_name -> temporal.api.common.v1.SearchAttributes + 254, // 28: temporal.api.workflowservice.v1.StartWorkflowExecutionRequest.header:type_name -> temporal.api.common.v1.Header + 255, // 29: temporal.api.workflowservice.v1.StartWorkflowExecutionRequest.continued_failure:type_name -> temporal.api.failure.v1.Failure + 248, // 30: temporal.api.workflowservice.v1.StartWorkflowExecutionRequest.last_completion_result:type_name -> temporal.api.common.v1.Payloads + 237, // 31: temporal.api.workflowservice.v1.StartWorkflowExecutionRequest.workflow_start_delay:type_name -> google.protobuf.Duration + 256, // 32: temporal.api.workflowservice.v1.StartWorkflowExecutionRequest.completion_callbacks:type_name -> temporal.api.common.v1.Callback + 257, // 33: temporal.api.workflowservice.v1.StartWorkflowExecutionRequest.user_metadata:type_name -> temporal.api.sdk.v1.UserMetadata + 258, // 34: temporal.api.workflowservice.v1.StartWorkflowExecutionRequest.links:type_name -> temporal.api.common.v1.Link + 259, // 35: temporal.api.workflowservice.v1.StartWorkflowExecutionRequest.versioning_override:type_name -> temporal.api.workflow.v1.VersioningOverride + 260, // 36: temporal.api.workflowservice.v1.StartWorkflowExecutionRequest.on_conflict_options:type_name -> temporal.api.workflow.v1.OnConflictOptions + 261, // 37: temporal.api.workflowservice.v1.StartWorkflowExecutionRequest.priority:type_name -> temporal.api.common.v1.Priority + 262, // 38: temporal.api.workflowservice.v1.StartWorkflowExecutionRequest.eager_worker_deployment_options:type_name -> temporal.api.deployment.v1.WorkerDeploymentOptions + 263, // 39: temporal.api.workflowservice.v1.StartWorkflowExecutionResponse.status:type_name -> temporal.api.enums.v1.WorkflowExecutionStatus + 17, // 40: temporal.api.workflowservice.v1.StartWorkflowExecutionResponse.eager_workflow_task:type_name -> temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse + 258, // 41: temporal.api.workflowservice.v1.StartWorkflowExecutionResponse.link:type_name -> temporal.api.common.v1.Link + 264, // 42: temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryRequest.execution:type_name -> temporal.api.common.v1.WorkflowExecution + 265, // 43: temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryRequest.history_event_filter_type:type_name -> temporal.api.enums.v1.HistoryEventFilterType + 266, // 44: temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryResponse.history:type_name -> temporal.api.history.v1.History + 267, // 45: temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryResponse.raw_history:type_name -> temporal.api.common.v1.DataBlob + 264, // 46: temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryReverseRequest.execution:type_name -> temporal.api.common.v1.WorkflowExecution + 266, // 47: temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryReverseResponse.history:type_name -> temporal.api.history.v1.History + 247, // 48: temporal.api.workflowservice.v1.PollWorkflowTaskQueueRequest.task_queue:type_name -> temporal.api.taskqueue.v1.TaskQueue + 268, // 49: temporal.api.workflowservice.v1.PollWorkflowTaskQueueRequest.worker_version_capabilities:type_name -> temporal.api.common.v1.WorkerVersionCapabilities + 262, // 50: temporal.api.workflowservice.v1.PollWorkflowTaskQueueRequest.deployment_options:type_name -> temporal.api.deployment.v1.WorkerDeploymentOptions + 264, // 51: temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse.workflow_execution:type_name -> temporal.api.common.v1.WorkflowExecution + 246, // 52: temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse.workflow_type:type_name -> temporal.api.common.v1.WorkflowType + 266, // 53: temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse.history:type_name -> temporal.api.history.v1.History + 269, // 54: temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse.query:type_name -> temporal.api.query.v1.WorkflowQuery + 247, // 55: temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse.workflow_execution_task_queue:type_name -> temporal.api.taskqueue.v1.TaskQueue + 270, // 56: temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse.scheduled_time:type_name -> google.protobuf.Timestamp + 270, // 57: temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse.started_time:type_name -> google.protobuf.Timestamp + 209, // 58: temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse.queries:type_name -> temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse.QueriesEntry + 271, // 59: temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse.messages:type_name -> temporal.api.protocol.v1.Message + 272, // 60: temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse.poller_scaling_decision:type_name -> temporal.api.taskqueue.v1.PollerScalingDecision + 273, // 61: temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedRequest.commands:type_name -> temporal.api.command.v1.Command + 274, // 62: temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedRequest.sticky_attributes:type_name -> temporal.api.taskqueue.v1.StickyExecutionAttributes + 210, // 63: temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedRequest.query_results:type_name -> temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedRequest.QueryResultsEntry + 275, // 64: temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedRequest.worker_version_stamp:type_name -> temporal.api.common.v1.WorkerVersionStamp + 271, // 65: temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedRequest.messages:type_name -> temporal.api.protocol.v1.Message + 276, // 66: temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedRequest.sdk_metadata:type_name -> temporal.api.sdk.v1.WorkflowTaskCompletedMetadata + 277, // 67: temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedRequest.metering_metadata:type_name -> temporal.api.common.v1.MeteringMetadata + 211, // 68: temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedRequest.capabilities:type_name -> temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedRequest.Capabilities + 278, // 69: temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedRequest.deployment:type_name -> temporal.api.deployment.v1.Deployment + 279, // 70: temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedRequest.versioning_behavior:type_name -> temporal.api.enums.v1.VersioningBehavior + 262, // 71: temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedRequest.deployment_options:type_name -> temporal.api.deployment.v1.WorkerDeploymentOptions + 17, // 72: temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedResponse.workflow_task:type_name -> temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse + 23, // 73: temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedResponse.activity_tasks:type_name -> temporal.api.workflowservice.v1.PollActivityTaskQueueResponse + 280, // 74: temporal.api.workflowservice.v1.RespondWorkflowTaskFailedRequest.cause:type_name -> temporal.api.enums.v1.WorkflowTaskFailedCause + 255, // 75: temporal.api.workflowservice.v1.RespondWorkflowTaskFailedRequest.failure:type_name -> temporal.api.failure.v1.Failure + 271, // 76: temporal.api.workflowservice.v1.RespondWorkflowTaskFailedRequest.messages:type_name -> temporal.api.protocol.v1.Message + 275, // 77: temporal.api.workflowservice.v1.RespondWorkflowTaskFailedRequest.worker_version:type_name -> temporal.api.common.v1.WorkerVersionStamp + 278, // 78: temporal.api.workflowservice.v1.RespondWorkflowTaskFailedRequest.deployment:type_name -> temporal.api.deployment.v1.Deployment + 262, // 79: temporal.api.workflowservice.v1.RespondWorkflowTaskFailedRequest.deployment_options:type_name -> temporal.api.deployment.v1.WorkerDeploymentOptions + 247, // 80: temporal.api.workflowservice.v1.PollActivityTaskQueueRequest.task_queue:type_name -> temporal.api.taskqueue.v1.TaskQueue + 281, // 81: temporal.api.workflowservice.v1.PollActivityTaskQueueRequest.task_queue_metadata:type_name -> temporal.api.taskqueue.v1.TaskQueueMetadata + 268, // 82: temporal.api.workflowservice.v1.PollActivityTaskQueueRequest.worker_version_capabilities:type_name -> temporal.api.common.v1.WorkerVersionCapabilities + 262, // 83: temporal.api.workflowservice.v1.PollActivityTaskQueueRequest.deployment_options:type_name -> temporal.api.deployment.v1.WorkerDeploymentOptions + 246, // 84: temporal.api.workflowservice.v1.PollActivityTaskQueueResponse.workflow_type:type_name -> temporal.api.common.v1.WorkflowType + 264, // 85: temporal.api.workflowservice.v1.PollActivityTaskQueueResponse.workflow_execution:type_name -> temporal.api.common.v1.WorkflowExecution + 282, // 86: temporal.api.workflowservice.v1.PollActivityTaskQueueResponse.activity_type:type_name -> temporal.api.common.v1.ActivityType + 254, // 87: temporal.api.workflowservice.v1.PollActivityTaskQueueResponse.header:type_name -> temporal.api.common.v1.Header + 248, // 88: temporal.api.workflowservice.v1.PollActivityTaskQueueResponse.input:type_name -> temporal.api.common.v1.Payloads + 248, // 89: temporal.api.workflowservice.v1.PollActivityTaskQueueResponse.heartbeat_details:type_name -> temporal.api.common.v1.Payloads + 270, // 90: temporal.api.workflowservice.v1.PollActivityTaskQueueResponse.scheduled_time:type_name -> google.protobuf.Timestamp + 270, // 91: temporal.api.workflowservice.v1.PollActivityTaskQueueResponse.current_attempt_scheduled_time:type_name -> google.protobuf.Timestamp + 270, // 92: temporal.api.workflowservice.v1.PollActivityTaskQueueResponse.started_time:type_name -> google.protobuf.Timestamp + 237, // 93: temporal.api.workflowservice.v1.PollActivityTaskQueueResponse.schedule_to_close_timeout:type_name -> google.protobuf.Duration + 237, // 94: temporal.api.workflowservice.v1.PollActivityTaskQueueResponse.start_to_close_timeout:type_name -> google.protobuf.Duration + 237, // 95: temporal.api.workflowservice.v1.PollActivityTaskQueueResponse.heartbeat_timeout:type_name -> google.protobuf.Duration + 251, // 96: temporal.api.workflowservice.v1.PollActivityTaskQueueResponse.retry_policy:type_name -> temporal.api.common.v1.RetryPolicy + 272, // 97: temporal.api.workflowservice.v1.PollActivityTaskQueueResponse.poller_scaling_decision:type_name -> temporal.api.taskqueue.v1.PollerScalingDecision + 261, // 98: temporal.api.workflowservice.v1.PollActivityTaskQueueResponse.priority:type_name -> temporal.api.common.v1.Priority + 248, // 99: temporal.api.workflowservice.v1.RecordActivityTaskHeartbeatRequest.details:type_name -> temporal.api.common.v1.Payloads + 248, // 100: temporal.api.workflowservice.v1.RecordActivityTaskHeartbeatByIdRequest.details:type_name -> temporal.api.common.v1.Payloads + 248, // 101: temporal.api.workflowservice.v1.RespondActivityTaskCompletedRequest.result:type_name -> temporal.api.common.v1.Payloads + 275, // 102: temporal.api.workflowservice.v1.RespondActivityTaskCompletedRequest.worker_version:type_name -> temporal.api.common.v1.WorkerVersionStamp + 278, // 103: temporal.api.workflowservice.v1.RespondActivityTaskCompletedRequest.deployment:type_name -> temporal.api.deployment.v1.Deployment + 262, // 104: temporal.api.workflowservice.v1.RespondActivityTaskCompletedRequest.deployment_options:type_name -> temporal.api.deployment.v1.WorkerDeploymentOptions + 248, // 105: temporal.api.workflowservice.v1.RespondActivityTaskCompletedByIdRequest.result:type_name -> temporal.api.common.v1.Payloads + 255, // 106: temporal.api.workflowservice.v1.RespondActivityTaskFailedRequest.failure:type_name -> temporal.api.failure.v1.Failure + 248, // 107: temporal.api.workflowservice.v1.RespondActivityTaskFailedRequest.last_heartbeat_details:type_name -> temporal.api.common.v1.Payloads + 275, // 108: temporal.api.workflowservice.v1.RespondActivityTaskFailedRequest.worker_version:type_name -> temporal.api.common.v1.WorkerVersionStamp + 278, // 109: temporal.api.workflowservice.v1.RespondActivityTaskFailedRequest.deployment:type_name -> temporal.api.deployment.v1.Deployment + 262, // 110: temporal.api.workflowservice.v1.RespondActivityTaskFailedRequest.deployment_options:type_name -> temporal.api.deployment.v1.WorkerDeploymentOptions + 255, // 111: temporal.api.workflowservice.v1.RespondActivityTaskFailedResponse.failures:type_name -> temporal.api.failure.v1.Failure + 255, // 112: temporal.api.workflowservice.v1.RespondActivityTaskFailedByIdRequest.failure:type_name -> temporal.api.failure.v1.Failure + 248, // 113: temporal.api.workflowservice.v1.RespondActivityTaskFailedByIdRequest.last_heartbeat_details:type_name -> temporal.api.common.v1.Payloads + 255, // 114: temporal.api.workflowservice.v1.RespondActivityTaskFailedByIdResponse.failures:type_name -> temporal.api.failure.v1.Failure + 248, // 115: temporal.api.workflowservice.v1.RespondActivityTaskCanceledRequest.details:type_name -> temporal.api.common.v1.Payloads + 275, // 116: temporal.api.workflowservice.v1.RespondActivityTaskCanceledRequest.worker_version:type_name -> temporal.api.common.v1.WorkerVersionStamp + 278, // 117: temporal.api.workflowservice.v1.RespondActivityTaskCanceledRequest.deployment:type_name -> temporal.api.deployment.v1.Deployment + 262, // 118: temporal.api.workflowservice.v1.RespondActivityTaskCanceledRequest.deployment_options:type_name -> temporal.api.deployment.v1.WorkerDeploymentOptions + 248, // 119: temporal.api.workflowservice.v1.RespondActivityTaskCanceledByIdRequest.details:type_name -> temporal.api.common.v1.Payloads + 262, // 120: temporal.api.workflowservice.v1.RespondActivityTaskCanceledByIdRequest.deployment_options:type_name -> temporal.api.deployment.v1.WorkerDeploymentOptions + 264, // 121: temporal.api.workflowservice.v1.RequestCancelWorkflowExecutionRequest.workflow_execution:type_name -> temporal.api.common.v1.WorkflowExecution + 258, // 122: temporal.api.workflowservice.v1.RequestCancelWorkflowExecutionRequest.links:type_name -> temporal.api.common.v1.Link + 264, // 123: temporal.api.workflowservice.v1.SignalWorkflowExecutionRequest.workflow_execution:type_name -> temporal.api.common.v1.WorkflowExecution + 248, // 124: temporal.api.workflowservice.v1.SignalWorkflowExecutionRequest.input:type_name -> temporal.api.common.v1.Payloads + 254, // 125: temporal.api.workflowservice.v1.SignalWorkflowExecutionRequest.header:type_name -> temporal.api.common.v1.Header + 258, // 126: temporal.api.workflowservice.v1.SignalWorkflowExecutionRequest.links:type_name -> temporal.api.common.v1.Link + 246, // 127: temporal.api.workflowservice.v1.SignalWithStartWorkflowExecutionRequest.workflow_type:type_name -> temporal.api.common.v1.WorkflowType + 247, // 128: temporal.api.workflowservice.v1.SignalWithStartWorkflowExecutionRequest.task_queue:type_name -> temporal.api.taskqueue.v1.TaskQueue + 248, // 129: temporal.api.workflowservice.v1.SignalWithStartWorkflowExecutionRequest.input:type_name -> temporal.api.common.v1.Payloads + 237, // 130: temporal.api.workflowservice.v1.SignalWithStartWorkflowExecutionRequest.workflow_execution_timeout:type_name -> google.protobuf.Duration + 237, // 131: temporal.api.workflowservice.v1.SignalWithStartWorkflowExecutionRequest.workflow_run_timeout:type_name -> google.protobuf.Duration + 237, // 132: temporal.api.workflowservice.v1.SignalWithStartWorkflowExecutionRequest.workflow_task_timeout:type_name -> google.protobuf.Duration + 249, // 133: temporal.api.workflowservice.v1.SignalWithStartWorkflowExecutionRequest.workflow_id_reuse_policy:type_name -> temporal.api.enums.v1.WorkflowIdReusePolicy + 250, // 134: temporal.api.workflowservice.v1.SignalWithStartWorkflowExecutionRequest.workflow_id_conflict_policy:type_name -> temporal.api.enums.v1.WorkflowIdConflictPolicy + 248, // 135: temporal.api.workflowservice.v1.SignalWithStartWorkflowExecutionRequest.signal_input:type_name -> temporal.api.common.v1.Payloads + 251, // 136: temporal.api.workflowservice.v1.SignalWithStartWorkflowExecutionRequest.retry_policy:type_name -> temporal.api.common.v1.RetryPolicy + 252, // 137: temporal.api.workflowservice.v1.SignalWithStartWorkflowExecutionRequest.memo:type_name -> temporal.api.common.v1.Memo + 253, // 138: temporal.api.workflowservice.v1.SignalWithStartWorkflowExecutionRequest.search_attributes:type_name -> temporal.api.common.v1.SearchAttributes + 254, // 139: temporal.api.workflowservice.v1.SignalWithStartWorkflowExecutionRequest.header:type_name -> temporal.api.common.v1.Header + 237, // 140: temporal.api.workflowservice.v1.SignalWithStartWorkflowExecutionRequest.workflow_start_delay:type_name -> google.protobuf.Duration + 257, // 141: temporal.api.workflowservice.v1.SignalWithStartWorkflowExecutionRequest.user_metadata:type_name -> temporal.api.sdk.v1.UserMetadata + 258, // 142: temporal.api.workflowservice.v1.SignalWithStartWorkflowExecutionRequest.links:type_name -> temporal.api.common.v1.Link + 259, // 143: temporal.api.workflowservice.v1.SignalWithStartWorkflowExecutionRequest.versioning_override:type_name -> temporal.api.workflow.v1.VersioningOverride + 261, // 144: temporal.api.workflowservice.v1.SignalWithStartWorkflowExecutionRequest.priority:type_name -> temporal.api.common.v1.Priority + 264, // 145: temporal.api.workflowservice.v1.ResetWorkflowExecutionRequest.workflow_execution:type_name -> temporal.api.common.v1.WorkflowExecution + 283, // 146: temporal.api.workflowservice.v1.ResetWorkflowExecutionRequest.reset_reapply_type:type_name -> temporal.api.enums.v1.ResetReapplyType + 284, // 147: temporal.api.workflowservice.v1.ResetWorkflowExecutionRequest.reset_reapply_exclude_types:type_name -> temporal.api.enums.v1.ResetReapplyExcludeType + 285, // 148: temporal.api.workflowservice.v1.ResetWorkflowExecutionRequest.post_reset_operations:type_name -> temporal.api.workflow.v1.PostResetOperation + 264, // 149: temporal.api.workflowservice.v1.TerminateWorkflowExecutionRequest.workflow_execution:type_name -> temporal.api.common.v1.WorkflowExecution + 248, // 150: temporal.api.workflowservice.v1.TerminateWorkflowExecutionRequest.details:type_name -> temporal.api.common.v1.Payloads + 258, // 151: temporal.api.workflowservice.v1.TerminateWorkflowExecutionRequest.links:type_name -> temporal.api.common.v1.Link + 264, // 152: temporal.api.workflowservice.v1.DeleteWorkflowExecutionRequest.workflow_execution:type_name -> temporal.api.common.v1.WorkflowExecution + 286, // 153: temporal.api.workflowservice.v1.ListOpenWorkflowExecutionsRequest.start_time_filter:type_name -> temporal.api.filter.v1.StartTimeFilter + 287, // 154: temporal.api.workflowservice.v1.ListOpenWorkflowExecutionsRequest.execution_filter:type_name -> temporal.api.filter.v1.WorkflowExecutionFilter + 288, // 155: temporal.api.workflowservice.v1.ListOpenWorkflowExecutionsRequest.type_filter:type_name -> temporal.api.filter.v1.WorkflowTypeFilter + 289, // 156: temporal.api.workflowservice.v1.ListOpenWorkflowExecutionsResponse.executions:type_name -> temporal.api.workflow.v1.WorkflowExecutionInfo + 286, // 157: temporal.api.workflowservice.v1.ListClosedWorkflowExecutionsRequest.start_time_filter:type_name -> temporal.api.filter.v1.StartTimeFilter + 287, // 158: temporal.api.workflowservice.v1.ListClosedWorkflowExecutionsRequest.execution_filter:type_name -> temporal.api.filter.v1.WorkflowExecutionFilter + 288, // 159: temporal.api.workflowservice.v1.ListClosedWorkflowExecutionsRequest.type_filter:type_name -> temporal.api.filter.v1.WorkflowTypeFilter + 290, // 160: temporal.api.workflowservice.v1.ListClosedWorkflowExecutionsRequest.status_filter:type_name -> temporal.api.filter.v1.StatusFilter + 289, // 161: temporal.api.workflowservice.v1.ListClosedWorkflowExecutionsResponse.executions:type_name -> temporal.api.workflow.v1.WorkflowExecutionInfo + 289, // 162: temporal.api.workflowservice.v1.ListWorkflowExecutionsResponse.executions:type_name -> temporal.api.workflow.v1.WorkflowExecutionInfo + 289, // 163: temporal.api.workflowservice.v1.ListArchivedWorkflowExecutionsResponse.executions:type_name -> temporal.api.workflow.v1.WorkflowExecutionInfo + 289, // 164: temporal.api.workflowservice.v1.ScanWorkflowExecutionsResponse.executions:type_name -> temporal.api.workflow.v1.WorkflowExecutionInfo + 212, // 165: temporal.api.workflowservice.v1.CountWorkflowExecutionsResponse.groups:type_name -> temporal.api.workflowservice.v1.CountWorkflowExecutionsResponse.AggregationGroup + 213, // 166: temporal.api.workflowservice.v1.GetSearchAttributesResponse.keys:type_name -> temporal.api.workflowservice.v1.GetSearchAttributesResponse.KeysEntry + 291, // 167: temporal.api.workflowservice.v1.RespondQueryTaskCompletedRequest.completed_type:type_name -> temporal.api.enums.v1.QueryResultType + 248, // 168: temporal.api.workflowservice.v1.RespondQueryTaskCompletedRequest.query_result:type_name -> temporal.api.common.v1.Payloads + 255, // 169: temporal.api.workflowservice.v1.RespondQueryTaskCompletedRequest.failure:type_name -> temporal.api.failure.v1.Failure + 280, // 170: temporal.api.workflowservice.v1.RespondQueryTaskCompletedRequest.cause:type_name -> temporal.api.enums.v1.WorkflowTaskFailedCause + 264, // 171: temporal.api.workflowservice.v1.ResetStickyTaskQueueRequest.execution:type_name -> temporal.api.common.v1.WorkflowExecution + 292, // 172: temporal.api.workflowservice.v1.ShutdownWorkerRequest.worker_heartbeat:type_name -> temporal.api.worker.v1.WorkerHeartbeat + 293, // 173: temporal.api.workflowservice.v1.ShutdownWorkerRequest.task_queue_types:type_name -> temporal.api.enums.v1.TaskQueueType + 264, // 174: temporal.api.workflowservice.v1.QueryWorkflowRequest.execution:type_name -> temporal.api.common.v1.WorkflowExecution + 269, // 175: temporal.api.workflowservice.v1.QueryWorkflowRequest.query:type_name -> temporal.api.query.v1.WorkflowQuery + 294, // 176: temporal.api.workflowservice.v1.QueryWorkflowRequest.query_reject_condition:type_name -> temporal.api.enums.v1.QueryRejectCondition + 248, // 177: temporal.api.workflowservice.v1.QueryWorkflowResponse.query_result:type_name -> temporal.api.common.v1.Payloads + 295, // 178: temporal.api.workflowservice.v1.QueryWorkflowResponse.query_rejected:type_name -> temporal.api.query.v1.QueryRejected + 264, // 179: temporal.api.workflowservice.v1.DescribeWorkflowExecutionRequest.execution:type_name -> temporal.api.common.v1.WorkflowExecution + 296, // 180: temporal.api.workflowservice.v1.DescribeWorkflowExecutionResponse.execution_config:type_name -> temporal.api.workflow.v1.WorkflowExecutionConfig + 289, // 181: temporal.api.workflowservice.v1.DescribeWorkflowExecutionResponse.workflow_execution_info:type_name -> temporal.api.workflow.v1.WorkflowExecutionInfo + 297, // 182: temporal.api.workflowservice.v1.DescribeWorkflowExecutionResponse.pending_activities:type_name -> temporal.api.workflow.v1.PendingActivityInfo + 298, // 183: temporal.api.workflowservice.v1.DescribeWorkflowExecutionResponse.pending_children:type_name -> temporal.api.workflow.v1.PendingChildExecutionInfo + 299, // 184: temporal.api.workflowservice.v1.DescribeWorkflowExecutionResponse.pending_workflow_task:type_name -> temporal.api.workflow.v1.PendingWorkflowTaskInfo + 300, // 185: temporal.api.workflowservice.v1.DescribeWorkflowExecutionResponse.callbacks:type_name -> temporal.api.workflow.v1.CallbackInfo + 301, // 186: temporal.api.workflowservice.v1.DescribeWorkflowExecutionResponse.pending_nexus_operations:type_name -> temporal.api.workflow.v1.PendingNexusOperationInfo + 302, // 187: temporal.api.workflowservice.v1.DescribeWorkflowExecutionResponse.workflow_extended_info:type_name -> temporal.api.workflow.v1.WorkflowExecutionExtendedInfo + 247, // 188: temporal.api.workflowservice.v1.DescribeTaskQueueRequest.task_queue:type_name -> temporal.api.taskqueue.v1.TaskQueue + 293, // 189: temporal.api.workflowservice.v1.DescribeTaskQueueRequest.task_queue_type:type_name -> temporal.api.enums.v1.TaskQueueType + 303, // 190: temporal.api.workflowservice.v1.DescribeTaskQueueRequest.api_mode:type_name -> temporal.api.enums.v1.DescribeTaskQueueMode + 304, // 191: temporal.api.workflowservice.v1.DescribeTaskQueueRequest.versions:type_name -> temporal.api.taskqueue.v1.TaskQueueVersionSelection + 293, // 192: temporal.api.workflowservice.v1.DescribeTaskQueueRequest.task_queue_types:type_name -> temporal.api.enums.v1.TaskQueueType + 305, // 193: temporal.api.workflowservice.v1.DescribeTaskQueueResponse.pollers:type_name -> temporal.api.taskqueue.v1.PollerInfo + 306, // 194: temporal.api.workflowservice.v1.DescribeTaskQueueResponse.stats:type_name -> temporal.api.taskqueue.v1.TaskQueueStats + 214, // 195: temporal.api.workflowservice.v1.DescribeTaskQueueResponse.stats_by_priority_key:type_name -> temporal.api.workflowservice.v1.DescribeTaskQueueResponse.StatsByPriorityKeyEntry + 307, // 196: temporal.api.workflowservice.v1.DescribeTaskQueueResponse.versioning_info:type_name -> temporal.api.taskqueue.v1.TaskQueueVersioningInfo + 308, // 197: temporal.api.workflowservice.v1.DescribeTaskQueueResponse.config:type_name -> temporal.api.taskqueue.v1.TaskQueueConfig + 215, // 198: temporal.api.workflowservice.v1.DescribeTaskQueueResponse.effective_rate_limit:type_name -> temporal.api.workflowservice.v1.DescribeTaskQueueResponse.EffectiveRateLimit + 309, // 199: temporal.api.workflowservice.v1.DescribeTaskQueueResponse.task_queue_status:type_name -> temporal.api.taskqueue.v1.TaskQueueStatus + 216, // 200: temporal.api.workflowservice.v1.DescribeTaskQueueResponse.versions_info:type_name -> temporal.api.workflowservice.v1.DescribeTaskQueueResponse.VersionsInfoEntry + 217, // 201: temporal.api.workflowservice.v1.GetClusterInfoResponse.supported_clients:type_name -> temporal.api.workflowservice.v1.GetClusterInfoResponse.SupportedClientsEntry + 310, // 202: temporal.api.workflowservice.v1.GetClusterInfoResponse.version_info:type_name -> temporal.api.version.v1.VersionInfo + 218, // 203: temporal.api.workflowservice.v1.GetSystemInfoResponse.capabilities:type_name -> temporal.api.workflowservice.v1.GetSystemInfoResponse.Capabilities + 247, // 204: temporal.api.workflowservice.v1.ListTaskQueuePartitionsRequest.task_queue:type_name -> temporal.api.taskqueue.v1.TaskQueue + 311, // 205: temporal.api.workflowservice.v1.ListTaskQueuePartitionsResponse.activity_task_queue_partitions:type_name -> temporal.api.taskqueue.v1.TaskQueuePartitionMetadata + 311, // 206: temporal.api.workflowservice.v1.ListTaskQueuePartitionsResponse.workflow_task_queue_partitions:type_name -> temporal.api.taskqueue.v1.TaskQueuePartitionMetadata + 312, // 207: temporal.api.workflowservice.v1.CreateScheduleRequest.schedule:type_name -> temporal.api.schedule.v1.Schedule + 313, // 208: temporal.api.workflowservice.v1.CreateScheduleRequest.initial_patch:type_name -> temporal.api.schedule.v1.SchedulePatch + 252, // 209: temporal.api.workflowservice.v1.CreateScheduleRequest.memo:type_name -> temporal.api.common.v1.Memo + 253, // 210: temporal.api.workflowservice.v1.CreateScheduleRequest.search_attributes:type_name -> temporal.api.common.v1.SearchAttributes + 312, // 211: temporal.api.workflowservice.v1.DescribeScheduleResponse.schedule:type_name -> temporal.api.schedule.v1.Schedule + 314, // 212: temporal.api.workflowservice.v1.DescribeScheduleResponse.info:type_name -> temporal.api.schedule.v1.ScheduleInfo + 252, // 213: temporal.api.workflowservice.v1.DescribeScheduleResponse.memo:type_name -> temporal.api.common.v1.Memo + 253, // 214: temporal.api.workflowservice.v1.DescribeScheduleResponse.search_attributes:type_name -> temporal.api.common.v1.SearchAttributes + 312, // 215: temporal.api.workflowservice.v1.UpdateScheduleRequest.schedule:type_name -> temporal.api.schedule.v1.Schedule + 253, // 216: temporal.api.workflowservice.v1.UpdateScheduleRequest.search_attributes:type_name -> temporal.api.common.v1.SearchAttributes + 313, // 217: temporal.api.workflowservice.v1.PatchScheduleRequest.patch:type_name -> temporal.api.schedule.v1.SchedulePatch + 270, // 218: temporal.api.workflowservice.v1.ListScheduleMatchingTimesRequest.start_time:type_name -> google.protobuf.Timestamp + 270, // 219: temporal.api.workflowservice.v1.ListScheduleMatchingTimesRequest.end_time:type_name -> google.protobuf.Timestamp + 270, // 220: temporal.api.workflowservice.v1.ListScheduleMatchingTimesResponse.start_time:type_name -> google.protobuf.Timestamp + 315, // 221: temporal.api.workflowservice.v1.ListSchedulesResponse.schedules:type_name -> temporal.api.schedule.v1.ScheduleListEntry + 219, // 222: temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityRequest.add_new_compatible_build_id:type_name -> temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityRequest.AddNewCompatibleVersion + 220, // 223: temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityRequest.merge_sets:type_name -> temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityRequest.MergeSets + 316, // 224: temporal.api.workflowservice.v1.GetWorkerBuildIdCompatibilityResponse.major_version_sets:type_name -> temporal.api.taskqueue.v1.CompatibleVersionSet + 221, // 225: temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.insert_assignment_rule:type_name -> temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.InsertBuildIdAssignmentRule + 222, // 226: temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.replace_assignment_rule:type_name -> temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.ReplaceBuildIdAssignmentRule + 223, // 227: temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.delete_assignment_rule:type_name -> temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.DeleteBuildIdAssignmentRule + 224, // 228: temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.add_compatible_redirect_rule:type_name -> temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.AddCompatibleBuildIdRedirectRule + 225, // 229: temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.replace_compatible_redirect_rule:type_name -> temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.ReplaceCompatibleBuildIdRedirectRule + 226, // 230: temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.delete_compatible_redirect_rule:type_name -> temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.DeleteCompatibleBuildIdRedirectRule + 227, // 231: temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.commit_build_id:type_name -> temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.CommitBuildId + 317, // 232: temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesResponse.assignment_rules:type_name -> temporal.api.taskqueue.v1.TimestampedBuildIdAssignmentRule + 318, // 233: temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesResponse.compatible_redirect_rules:type_name -> temporal.api.taskqueue.v1.TimestampedCompatibleBuildIdRedirectRule + 317, // 234: temporal.api.workflowservice.v1.GetWorkerVersioningRulesResponse.assignment_rules:type_name -> temporal.api.taskqueue.v1.TimestampedBuildIdAssignmentRule + 318, // 235: temporal.api.workflowservice.v1.GetWorkerVersioningRulesResponse.compatible_redirect_rules:type_name -> temporal.api.taskqueue.v1.TimestampedCompatibleBuildIdRedirectRule + 319, // 236: temporal.api.workflowservice.v1.GetWorkerTaskReachabilityRequest.reachability:type_name -> temporal.api.enums.v1.TaskReachability + 320, // 237: temporal.api.workflowservice.v1.GetWorkerTaskReachabilityResponse.build_id_reachability:type_name -> temporal.api.taskqueue.v1.BuildIdReachability + 264, // 238: temporal.api.workflowservice.v1.UpdateWorkflowExecutionRequest.workflow_execution:type_name -> temporal.api.common.v1.WorkflowExecution + 321, // 239: temporal.api.workflowservice.v1.UpdateWorkflowExecutionRequest.wait_policy:type_name -> temporal.api.update.v1.WaitPolicy + 322, // 240: temporal.api.workflowservice.v1.UpdateWorkflowExecutionRequest.request:type_name -> temporal.api.update.v1.Request + 323, // 241: temporal.api.workflowservice.v1.UpdateWorkflowExecutionResponse.update_ref:type_name -> temporal.api.update.v1.UpdateRef + 324, // 242: temporal.api.workflowservice.v1.UpdateWorkflowExecutionResponse.outcome:type_name -> temporal.api.update.v1.Outcome + 325, // 243: temporal.api.workflowservice.v1.UpdateWorkflowExecutionResponse.stage:type_name -> temporal.api.enums.v1.UpdateWorkflowExecutionLifecycleStage + 264, // 244: temporal.api.workflowservice.v1.StartBatchOperationRequest.executions:type_name -> temporal.api.common.v1.WorkflowExecution + 326, // 245: temporal.api.workflowservice.v1.StartBatchOperationRequest.termination_operation:type_name -> temporal.api.batch.v1.BatchOperationTermination + 327, // 246: temporal.api.workflowservice.v1.StartBatchOperationRequest.signal_operation:type_name -> temporal.api.batch.v1.BatchOperationSignal + 328, // 247: temporal.api.workflowservice.v1.StartBatchOperationRequest.cancellation_operation:type_name -> temporal.api.batch.v1.BatchOperationCancellation + 329, // 248: temporal.api.workflowservice.v1.StartBatchOperationRequest.deletion_operation:type_name -> temporal.api.batch.v1.BatchOperationDeletion + 330, // 249: temporal.api.workflowservice.v1.StartBatchOperationRequest.reset_operation:type_name -> temporal.api.batch.v1.BatchOperationReset + 331, // 250: temporal.api.workflowservice.v1.StartBatchOperationRequest.update_workflow_options_operation:type_name -> temporal.api.batch.v1.BatchOperationUpdateWorkflowExecutionOptions + 332, // 251: temporal.api.workflowservice.v1.StartBatchOperationRequest.unpause_activities_operation:type_name -> temporal.api.batch.v1.BatchOperationUnpauseActivities + 333, // 252: temporal.api.workflowservice.v1.StartBatchOperationRequest.reset_activities_operation:type_name -> temporal.api.batch.v1.BatchOperationResetActivities + 334, // 253: temporal.api.workflowservice.v1.StartBatchOperationRequest.update_activity_options_operation:type_name -> temporal.api.batch.v1.BatchOperationUpdateActivityOptions + 335, // 254: temporal.api.workflowservice.v1.DescribeBatchOperationResponse.operation_type:type_name -> temporal.api.enums.v1.BatchOperationType + 336, // 255: temporal.api.workflowservice.v1.DescribeBatchOperationResponse.state:type_name -> temporal.api.enums.v1.BatchOperationState + 270, // 256: temporal.api.workflowservice.v1.DescribeBatchOperationResponse.start_time:type_name -> google.protobuf.Timestamp + 270, // 257: temporal.api.workflowservice.v1.DescribeBatchOperationResponse.close_time:type_name -> google.protobuf.Timestamp + 337, // 258: temporal.api.workflowservice.v1.ListBatchOperationsResponse.operation_info:type_name -> temporal.api.batch.v1.BatchOperationInfo + 323, // 259: temporal.api.workflowservice.v1.PollWorkflowExecutionUpdateRequest.update_ref:type_name -> temporal.api.update.v1.UpdateRef + 321, // 260: temporal.api.workflowservice.v1.PollWorkflowExecutionUpdateRequest.wait_policy:type_name -> temporal.api.update.v1.WaitPolicy + 324, // 261: temporal.api.workflowservice.v1.PollWorkflowExecutionUpdateResponse.outcome:type_name -> temporal.api.update.v1.Outcome + 325, // 262: temporal.api.workflowservice.v1.PollWorkflowExecutionUpdateResponse.stage:type_name -> temporal.api.enums.v1.UpdateWorkflowExecutionLifecycleStage + 323, // 263: temporal.api.workflowservice.v1.PollWorkflowExecutionUpdateResponse.update_ref:type_name -> temporal.api.update.v1.UpdateRef + 247, // 264: temporal.api.workflowservice.v1.PollNexusTaskQueueRequest.task_queue:type_name -> temporal.api.taskqueue.v1.TaskQueue + 268, // 265: temporal.api.workflowservice.v1.PollNexusTaskQueueRequest.worker_version_capabilities:type_name -> temporal.api.common.v1.WorkerVersionCapabilities + 262, // 266: temporal.api.workflowservice.v1.PollNexusTaskQueueRequest.deployment_options:type_name -> temporal.api.deployment.v1.WorkerDeploymentOptions + 292, // 267: temporal.api.workflowservice.v1.PollNexusTaskQueueRequest.worker_heartbeat:type_name -> temporal.api.worker.v1.WorkerHeartbeat + 338, // 268: temporal.api.workflowservice.v1.PollNexusTaskQueueResponse.request:type_name -> temporal.api.nexus.v1.Request + 272, // 269: temporal.api.workflowservice.v1.PollNexusTaskQueueResponse.poller_scaling_decision:type_name -> temporal.api.taskqueue.v1.PollerScalingDecision + 339, // 270: temporal.api.workflowservice.v1.RespondNexusTaskCompletedRequest.response:type_name -> temporal.api.nexus.v1.Response + 340, // 271: temporal.api.workflowservice.v1.RespondNexusTaskFailedRequest.error:type_name -> temporal.api.nexus.v1.HandlerError + 228, // 272: temporal.api.workflowservice.v1.ExecuteMultiOperationRequest.operations:type_name -> temporal.api.workflowservice.v1.ExecuteMultiOperationRequest.Operation + 229, // 273: temporal.api.workflowservice.v1.ExecuteMultiOperationResponse.responses:type_name -> temporal.api.workflowservice.v1.ExecuteMultiOperationResponse.Response + 264, // 274: temporal.api.workflowservice.v1.UpdateActivityOptionsRequest.execution:type_name -> temporal.api.common.v1.WorkflowExecution + 341, // 275: temporal.api.workflowservice.v1.UpdateActivityOptionsRequest.activity_options:type_name -> temporal.api.activity.v1.ActivityOptions + 342, // 276: temporal.api.workflowservice.v1.UpdateActivityOptionsRequest.update_mask:type_name -> google.protobuf.FieldMask + 341, // 277: temporal.api.workflowservice.v1.UpdateActivityOptionsResponse.activity_options:type_name -> temporal.api.activity.v1.ActivityOptions + 264, // 278: temporal.api.workflowservice.v1.PauseActivityRequest.execution:type_name -> temporal.api.common.v1.WorkflowExecution + 264, // 279: temporal.api.workflowservice.v1.UnpauseActivityRequest.execution:type_name -> temporal.api.common.v1.WorkflowExecution + 237, // 280: temporal.api.workflowservice.v1.UnpauseActivityRequest.jitter:type_name -> google.protobuf.Duration + 264, // 281: temporal.api.workflowservice.v1.ResetActivityRequest.execution:type_name -> temporal.api.common.v1.WorkflowExecution + 237, // 282: temporal.api.workflowservice.v1.ResetActivityRequest.jitter:type_name -> google.protobuf.Duration + 264, // 283: temporal.api.workflowservice.v1.UpdateWorkflowExecutionOptionsRequest.workflow_execution:type_name -> temporal.api.common.v1.WorkflowExecution + 343, // 284: temporal.api.workflowservice.v1.UpdateWorkflowExecutionOptionsRequest.workflow_execution_options:type_name -> temporal.api.workflow.v1.WorkflowExecutionOptions + 342, // 285: temporal.api.workflowservice.v1.UpdateWorkflowExecutionOptionsRequest.update_mask:type_name -> google.protobuf.FieldMask + 343, // 286: temporal.api.workflowservice.v1.UpdateWorkflowExecutionOptionsResponse.workflow_execution_options:type_name -> temporal.api.workflow.v1.WorkflowExecutionOptions + 278, // 287: temporal.api.workflowservice.v1.DescribeDeploymentRequest.deployment:type_name -> temporal.api.deployment.v1.Deployment + 344, // 288: temporal.api.workflowservice.v1.DescribeDeploymentResponse.deployment_info:type_name -> temporal.api.deployment.v1.DeploymentInfo + 345, // 289: temporal.api.workflowservice.v1.DescribeWorkerDeploymentVersionRequest.deployment_version:type_name -> temporal.api.deployment.v1.WorkerDeploymentVersion + 346, // 290: temporal.api.workflowservice.v1.DescribeWorkerDeploymentVersionResponse.worker_deployment_version_info:type_name -> temporal.api.deployment.v1.WorkerDeploymentVersionInfo + 230, // 291: temporal.api.workflowservice.v1.DescribeWorkerDeploymentVersionResponse.version_task_queues:type_name -> temporal.api.workflowservice.v1.DescribeWorkerDeploymentVersionResponse.VersionTaskQueue + 347, // 292: temporal.api.workflowservice.v1.DescribeWorkerDeploymentResponse.worker_deployment_info:type_name -> temporal.api.deployment.v1.WorkerDeploymentInfo + 348, // 293: temporal.api.workflowservice.v1.ListDeploymentsResponse.deployments:type_name -> temporal.api.deployment.v1.DeploymentListInfo + 278, // 294: temporal.api.workflowservice.v1.SetCurrentDeploymentRequest.deployment:type_name -> temporal.api.deployment.v1.Deployment + 349, // 295: temporal.api.workflowservice.v1.SetCurrentDeploymentRequest.update_metadata:type_name -> temporal.api.deployment.v1.UpdateDeploymentMetadata + 344, // 296: temporal.api.workflowservice.v1.SetCurrentDeploymentResponse.current_deployment_info:type_name -> temporal.api.deployment.v1.DeploymentInfo + 344, // 297: temporal.api.workflowservice.v1.SetCurrentDeploymentResponse.previous_deployment_info:type_name -> temporal.api.deployment.v1.DeploymentInfo + 345, // 298: temporal.api.workflowservice.v1.SetWorkerDeploymentCurrentVersionResponse.previous_deployment_version:type_name -> temporal.api.deployment.v1.WorkerDeploymentVersion + 345, // 299: temporal.api.workflowservice.v1.SetWorkerDeploymentRampingVersionResponse.previous_deployment_version:type_name -> temporal.api.deployment.v1.WorkerDeploymentVersion + 232, // 300: temporal.api.workflowservice.v1.ListWorkerDeploymentsResponse.worker_deployments:type_name -> temporal.api.workflowservice.v1.ListWorkerDeploymentsResponse.WorkerDeploymentSummary + 345, // 301: temporal.api.workflowservice.v1.DeleteWorkerDeploymentVersionRequest.deployment_version:type_name -> temporal.api.deployment.v1.WorkerDeploymentVersion + 345, // 302: temporal.api.workflowservice.v1.UpdateWorkerDeploymentVersionMetadataRequest.deployment_version:type_name -> temporal.api.deployment.v1.WorkerDeploymentVersion + 233, // 303: temporal.api.workflowservice.v1.UpdateWorkerDeploymentVersionMetadataRequest.upsert_entries:type_name -> temporal.api.workflowservice.v1.UpdateWorkerDeploymentVersionMetadataRequest.UpsertEntriesEntry + 350, // 304: temporal.api.workflowservice.v1.UpdateWorkerDeploymentVersionMetadataResponse.metadata:type_name -> temporal.api.deployment.v1.VersionMetadata + 344, // 305: temporal.api.workflowservice.v1.GetCurrentDeploymentResponse.current_deployment_info:type_name -> temporal.api.deployment.v1.DeploymentInfo + 278, // 306: temporal.api.workflowservice.v1.GetDeploymentReachabilityRequest.deployment:type_name -> temporal.api.deployment.v1.Deployment + 344, // 307: temporal.api.workflowservice.v1.GetDeploymentReachabilityResponse.deployment_info:type_name -> temporal.api.deployment.v1.DeploymentInfo + 351, // 308: temporal.api.workflowservice.v1.GetDeploymentReachabilityResponse.reachability:type_name -> temporal.api.enums.v1.DeploymentReachability + 270, // 309: temporal.api.workflowservice.v1.GetDeploymentReachabilityResponse.last_update_time:type_name -> google.protobuf.Timestamp + 352, // 310: temporal.api.workflowservice.v1.CreateWorkflowRuleRequest.spec:type_name -> temporal.api.rules.v1.WorkflowRuleSpec + 353, // 311: temporal.api.workflowservice.v1.CreateWorkflowRuleResponse.rule:type_name -> temporal.api.rules.v1.WorkflowRule + 353, // 312: temporal.api.workflowservice.v1.DescribeWorkflowRuleResponse.rule:type_name -> temporal.api.rules.v1.WorkflowRule + 353, // 313: temporal.api.workflowservice.v1.ListWorkflowRulesResponse.rules:type_name -> temporal.api.rules.v1.WorkflowRule + 264, // 314: temporal.api.workflowservice.v1.TriggerWorkflowRuleRequest.execution:type_name -> temporal.api.common.v1.WorkflowExecution + 352, // 315: temporal.api.workflowservice.v1.TriggerWorkflowRuleRequest.spec:type_name -> temporal.api.rules.v1.WorkflowRuleSpec + 292, // 316: temporal.api.workflowservice.v1.RecordWorkerHeartbeatRequest.worker_heartbeat:type_name -> temporal.api.worker.v1.WorkerHeartbeat + 354, // 317: temporal.api.workflowservice.v1.ListWorkersResponse.workers_info:type_name -> temporal.api.worker.v1.WorkerInfo + 293, // 318: temporal.api.workflowservice.v1.UpdateTaskQueueConfigRequest.task_queue_type:type_name -> temporal.api.enums.v1.TaskQueueType + 234, // 319: temporal.api.workflowservice.v1.UpdateTaskQueueConfigRequest.update_queue_rate_limit:type_name -> temporal.api.workflowservice.v1.UpdateTaskQueueConfigRequest.RateLimitUpdate + 234, // 320: temporal.api.workflowservice.v1.UpdateTaskQueueConfigRequest.update_fairness_key_rate_limit_default:type_name -> temporal.api.workflowservice.v1.UpdateTaskQueueConfigRequest.RateLimitUpdate + 235, // 321: temporal.api.workflowservice.v1.UpdateTaskQueueConfigRequest.set_fairness_weight_overrides:type_name -> temporal.api.workflowservice.v1.UpdateTaskQueueConfigRequest.SetFairnessWeightOverridesEntry + 308, // 322: temporal.api.workflowservice.v1.UpdateTaskQueueConfigResponse.config:type_name -> temporal.api.taskqueue.v1.TaskQueueConfig + 355, // 323: temporal.api.workflowservice.v1.FetchWorkerConfigRequest.selector:type_name -> temporal.api.common.v1.WorkerSelector + 356, // 324: temporal.api.workflowservice.v1.FetchWorkerConfigResponse.worker_config:type_name -> temporal.api.sdk.v1.WorkerConfig + 356, // 325: temporal.api.workflowservice.v1.UpdateWorkerConfigRequest.worker_config:type_name -> temporal.api.sdk.v1.WorkerConfig + 342, // 326: temporal.api.workflowservice.v1.UpdateWorkerConfigRequest.update_mask:type_name -> google.protobuf.FieldMask + 355, // 327: temporal.api.workflowservice.v1.UpdateWorkerConfigRequest.selector:type_name -> temporal.api.common.v1.WorkerSelector + 356, // 328: temporal.api.workflowservice.v1.UpdateWorkerConfigResponse.worker_config:type_name -> temporal.api.sdk.v1.WorkerConfig + 354, // 329: temporal.api.workflowservice.v1.DescribeWorkerResponse.worker_info:type_name -> temporal.api.worker.v1.WorkerInfo + 282, // 330: temporal.api.workflowservice.v1.StartActivityExecutionRequest.activity_type:type_name -> temporal.api.common.v1.ActivityType + 247, // 331: temporal.api.workflowservice.v1.StartActivityExecutionRequest.task_queue:type_name -> temporal.api.taskqueue.v1.TaskQueue + 237, // 332: temporal.api.workflowservice.v1.StartActivityExecutionRequest.schedule_to_close_timeout:type_name -> google.protobuf.Duration + 237, // 333: temporal.api.workflowservice.v1.StartActivityExecutionRequest.schedule_to_start_timeout:type_name -> google.protobuf.Duration + 237, // 334: temporal.api.workflowservice.v1.StartActivityExecutionRequest.start_to_close_timeout:type_name -> google.protobuf.Duration + 237, // 335: temporal.api.workflowservice.v1.StartActivityExecutionRequest.heartbeat_timeout:type_name -> google.protobuf.Duration + 251, // 336: temporal.api.workflowservice.v1.StartActivityExecutionRequest.retry_policy:type_name -> temporal.api.common.v1.RetryPolicy + 248, // 337: temporal.api.workflowservice.v1.StartActivityExecutionRequest.input:type_name -> temporal.api.common.v1.Payloads + 357, // 338: temporal.api.workflowservice.v1.StartActivityExecutionRequest.id_reuse_policy:type_name -> temporal.api.enums.v1.ActivityIdReusePolicy + 358, // 339: temporal.api.workflowservice.v1.StartActivityExecutionRequest.id_conflict_policy:type_name -> temporal.api.enums.v1.ActivityIdConflictPolicy + 253, // 340: temporal.api.workflowservice.v1.StartActivityExecutionRequest.search_attributes:type_name -> temporal.api.common.v1.SearchAttributes + 254, // 341: temporal.api.workflowservice.v1.StartActivityExecutionRequest.header:type_name -> temporal.api.common.v1.Header + 257, // 342: temporal.api.workflowservice.v1.StartActivityExecutionRequest.user_metadata:type_name -> temporal.api.sdk.v1.UserMetadata + 261, // 343: temporal.api.workflowservice.v1.StartActivityExecutionRequest.priority:type_name -> temporal.api.common.v1.Priority + 359, // 344: temporal.api.workflowservice.v1.DescribeActivityExecutionResponse.info:type_name -> temporal.api.activity.v1.ActivityExecutionInfo + 248, // 345: temporal.api.workflowservice.v1.DescribeActivityExecutionResponse.input:type_name -> temporal.api.common.v1.Payloads + 360, // 346: temporal.api.workflowservice.v1.DescribeActivityExecutionResponse.outcome:type_name -> temporal.api.activity.v1.ActivityExecutionOutcome + 360, // 347: temporal.api.workflowservice.v1.PollActivityExecutionResponse.outcome:type_name -> temporal.api.activity.v1.ActivityExecutionOutcome + 361, // 348: temporal.api.workflowservice.v1.ListActivityExecutionsResponse.executions:type_name -> temporal.api.activity.v1.ActivityExecutionListInfo + 236, // 349: temporal.api.workflowservice.v1.CountActivityExecutionsResponse.groups:type_name -> temporal.api.workflowservice.v1.CountActivityExecutionsResponse.AggregationGroup + 269, // 350: temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse.QueriesEntry.value:type_name -> temporal.api.query.v1.WorkflowQuery + 362, // 351: temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedRequest.QueryResultsEntry.value:type_name -> temporal.api.query.v1.WorkflowQueryResult + 363, // 352: temporal.api.workflowservice.v1.CountWorkflowExecutionsResponse.AggregationGroup.group_values:type_name -> temporal.api.common.v1.Payload + 364, // 353: temporal.api.workflowservice.v1.GetSearchAttributesResponse.KeysEntry.value:type_name -> temporal.api.enums.v1.IndexedValueType + 306, // 354: temporal.api.workflowservice.v1.DescribeTaskQueueResponse.StatsByPriorityKeyEntry.value:type_name -> temporal.api.taskqueue.v1.TaskQueueStats + 365, // 355: temporal.api.workflowservice.v1.DescribeTaskQueueResponse.EffectiveRateLimit.rate_limit_source:type_name -> temporal.api.enums.v1.RateLimitSource + 366, // 356: temporal.api.workflowservice.v1.DescribeTaskQueueResponse.VersionsInfoEntry.value:type_name -> temporal.api.taskqueue.v1.TaskQueueVersionInfo + 367, // 357: temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.InsertBuildIdAssignmentRule.rule:type_name -> temporal.api.taskqueue.v1.BuildIdAssignmentRule + 367, // 358: temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.ReplaceBuildIdAssignmentRule.rule:type_name -> temporal.api.taskqueue.v1.BuildIdAssignmentRule + 368, // 359: temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.AddCompatibleBuildIdRedirectRule.rule:type_name -> temporal.api.taskqueue.v1.CompatibleBuildIdRedirectRule + 368, // 360: temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.ReplaceCompatibleBuildIdRedirectRule.rule:type_name -> temporal.api.taskqueue.v1.CompatibleBuildIdRedirectRule + 10, // 361: temporal.api.workflowservice.v1.ExecuteMultiOperationRequest.Operation.start_workflow:type_name -> temporal.api.workflowservice.v1.StartWorkflowExecutionRequest + 108, // 362: temporal.api.workflowservice.v1.ExecuteMultiOperationRequest.Operation.update_workflow:type_name -> temporal.api.workflowservice.v1.UpdateWorkflowExecutionRequest + 11, // 363: temporal.api.workflowservice.v1.ExecuteMultiOperationResponse.Response.start_workflow:type_name -> temporal.api.workflowservice.v1.StartWorkflowExecutionResponse + 109, // 364: temporal.api.workflowservice.v1.ExecuteMultiOperationResponse.Response.update_workflow:type_name -> temporal.api.workflowservice.v1.UpdateWorkflowExecutionResponse + 293, // 365: temporal.api.workflowservice.v1.DescribeWorkerDeploymentVersionResponse.VersionTaskQueue.type:type_name -> temporal.api.enums.v1.TaskQueueType + 306, // 366: temporal.api.workflowservice.v1.DescribeWorkerDeploymentVersionResponse.VersionTaskQueue.stats:type_name -> temporal.api.taskqueue.v1.TaskQueueStats + 231, // 367: temporal.api.workflowservice.v1.DescribeWorkerDeploymentVersionResponse.VersionTaskQueue.stats_by_priority_key:type_name -> temporal.api.workflowservice.v1.DescribeWorkerDeploymentVersionResponse.VersionTaskQueue.StatsByPriorityKeyEntry + 306, // 368: temporal.api.workflowservice.v1.DescribeWorkerDeploymentVersionResponse.VersionTaskQueue.StatsByPriorityKeyEntry.value:type_name -> temporal.api.taskqueue.v1.TaskQueueStats + 270, // 369: temporal.api.workflowservice.v1.ListWorkerDeploymentsResponse.WorkerDeploymentSummary.create_time:type_name -> google.protobuf.Timestamp + 369, // 370: temporal.api.workflowservice.v1.ListWorkerDeploymentsResponse.WorkerDeploymentSummary.routing_config:type_name -> temporal.api.deployment.v1.RoutingConfig + 370, // 371: temporal.api.workflowservice.v1.ListWorkerDeploymentsResponse.WorkerDeploymentSummary.latest_version_summary:type_name -> temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummary + 370, // 372: temporal.api.workflowservice.v1.ListWorkerDeploymentsResponse.WorkerDeploymentSummary.current_version_summary:type_name -> temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummary + 370, // 373: temporal.api.workflowservice.v1.ListWorkerDeploymentsResponse.WorkerDeploymentSummary.ramping_version_summary:type_name -> temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummary + 363, // 374: temporal.api.workflowservice.v1.UpdateWorkerDeploymentVersionMetadataRequest.UpsertEntriesEntry.value:type_name -> temporal.api.common.v1.Payload + 371, // 375: temporal.api.workflowservice.v1.UpdateTaskQueueConfigRequest.RateLimitUpdate.rate_limit:type_name -> temporal.api.taskqueue.v1.RateLimit + 363, // 376: temporal.api.workflowservice.v1.CountActivityExecutionsResponse.AggregationGroup.group_values:type_name -> temporal.api.common.v1.Payload + 377, // [377:377] is the sub-list for method output_type + 377, // [377:377] is the sub-list for method input_type + 377, // [377:377] is the sub-list for extension type_name + 377, // [377:377] is the sub-list for extension extendee + 0, // [0:377] is the sub-list for field type_name +} + +func init() { file_temporal_api_workflowservice_v1_request_response_proto_init() } +func file_temporal_api_workflowservice_v1_request_response_proto_init() { + if File_temporal_api_workflowservice_v1_request_response_proto != nil { + return + } + file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[52].OneofWrappers = []any{ + (*listOpenWorkflowExecutionsRequest_ExecutionFilter)(nil), + (*listOpenWorkflowExecutionsRequest_TypeFilter)(nil), + } + file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[54].OneofWrappers = []any{ + (*listClosedWorkflowExecutionsRequest_ExecutionFilter)(nil), + (*listClosedWorkflowExecutionsRequest_TypeFilter)(nil), + (*listClosedWorkflowExecutionsRequest_StatusFilter)(nil), + } + file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[98].OneofWrappers = []any{ + (*updateWorkerBuildIdCompatibilityRequest_AddNewBuildIdInNewDefaultSet)(nil), + (*updateWorkerBuildIdCompatibilityRequest_AddNewCompatibleBuildId)(nil), + (*updateWorkerBuildIdCompatibilityRequest_PromoteSetByBuildId)(nil), + (*updateWorkerBuildIdCompatibilityRequest_PromoteBuildIdWithinSet)(nil), + (*updateWorkerBuildIdCompatibilityRequest_MergeSets_)(nil), + } + file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[102].OneofWrappers = []any{ + (*updateWorkerVersioningRulesRequest_InsertAssignmentRule)(nil), + (*updateWorkerVersioningRulesRequest_ReplaceAssignmentRule)(nil), + (*updateWorkerVersioningRulesRequest_DeleteAssignmentRule)(nil), + (*updateWorkerVersioningRulesRequest_AddCompatibleRedirectRule)(nil), + (*updateWorkerVersioningRulesRequest_ReplaceCompatibleRedirectRule)(nil), + (*updateWorkerVersioningRulesRequest_DeleteCompatibleRedirectRule)(nil), + (*updateWorkerVersioningRulesRequest_CommitBuildId_)(nil), + } + file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[110].OneofWrappers = []any{ + (*startBatchOperationRequest_TerminationOperation)(nil), + (*startBatchOperationRequest_SignalOperation)(nil), + (*startBatchOperationRequest_CancellationOperation)(nil), + (*startBatchOperationRequest_DeletionOperation)(nil), + (*startBatchOperationRequest_ResetOperation)(nil), + (*startBatchOperationRequest_UpdateWorkflowOptionsOperation)(nil), + (*startBatchOperationRequest_UnpauseActivitiesOperation)(nil), + (*startBatchOperationRequest_ResetActivitiesOperation)(nil), + (*startBatchOperationRequest_UpdateActivityOptionsOperation)(nil), + } + file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[128].OneofWrappers = []any{ + (*updateActivityOptionsRequest_Id)(nil), + (*updateActivityOptionsRequest_Type)(nil), + (*updateActivityOptionsRequest_MatchAll)(nil), + } + file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[130].OneofWrappers = []any{ + (*pauseActivityRequest_Id)(nil), + (*pauseActivityRequest_Type)(nil), + } + file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[132].OneofWrappers = []any{ + (*unpauseActivityRequest_Id)(nil), + (*unpauseActivityRequest_Type)(nil), + (*unpauseActivityRequest_UnpauseAll)(nil), + } + file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[134].OneofWrappers = []any{ + (*resetActivityRequest_Id)(nil), + (*resetActivityRequest_Type)(nil), + (*resetActivityRequest_MatchAll)(nil), + } + file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[160].OneofWrappers = []any{ + (*setWorkerDeploymentManagerRequest_ManagerIdentity)(nil), + (*setWorkerDeploymentManagerRequest_Self)(nil), + } + file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[174].OneofWrappers = []any{ + (*triggerWorkflowRuleRequest_Id)(nil), + (*triggerWorkflowRuleRequest_Spec)(nil), + } + file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[185].OneofWrappers = []any{ + (*updateWorkerConfigResponse_WorkerConfig)(nil), + } + file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[228].OneofWrappers = []any{ + (*executeMultiOperationRequest_Operation_StartWorkflow)(nil), + (*executeMultiOperationRequest_Operation_UpdateWorkflow)(nil), + } + file_temporal_api_workflowservice_v1_request_response_proto_msgTypes[229].OneofWrappers = []any{ + (*executeMultiOperationResponse_Response_StartWorkflow)(nil), + (*executeMultiOperationResponse_Response_UpdateWorkflow)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_api_workflowservice_v1_request_response_proto_rawDesc), len(file_temporal_api_workflowservice_v1_request_response_proto_rawDesc)), + NumEnums: 0, + NumMessages: 237, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_temporal_api_workflowservice_v1_request_response_proto_goTypes, + DependencyIndexes: file_temporal_api_workflowservice_v1_request_response_proto_depIdxs, + MessageInfos: file_temporal_api_workflowservice_v1_request_response_proto_msgTypes, + }.Build() + File_temporal_api_workflowservice_v1_request_response_proto = out.File + file_temporal_api_workflowservice_v1_request_response_proto_goTypes = nil + file_temporal_api_workflowservice_v1_request_response_proto_depIdxs = nil +} diff --git a/workflowservice/v1/service.pb.go b/workflowservice/v1/service.pb.go index 2a44471b..57dd1324 100644 --- a/workflowservice/v1/service.pb.go +++ b/workflowservice/v1/service.pb.go @@ -4,6 +4,8 @@ // protoc // source: temporal/api/workflowservice/v1/service.proto +//go:build !protoopaque + package workflowservice import ( diff --git a/workflowservice/v1/service_protoopaque.pb.go b/workflowservice/v1/service_protoopaque.pb.go new file mode 100644 index 00000000..6e08dd0f --- /dev/null +++ b/workflowservice/v1/service_protoopaque.pb.go @@ -0,0 +1,587 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// plugins: +// protoc-gen-go +// protoc +// source: temporal/api/workflowservice/v1/service.proto + +//go:build protoopaque + +package workflowservice + +import ( + reflect "reflect" + unsafe "unsafe" + + _ "google.golang.org/genproto/googleapis/api/annotations" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +var File_temporal_api_workflowservice_v1_service_proto protoreflect.FileDescriptor + +const file_temporal_api_workflowservice_v1_service_proto_rawDesc = "" + + "\n" + + "-temporal/api/workflowservice/v1/service.proto\x12\x1ftemporal.api.workflowservice.v1\x1a6temporal/api/workflowservice/v1/request_response.proto\x1a\x1cgoogle/api/annotations.proto2\x9d\xd6\x01\n" + + "\x0fWorkflowService\x12\xc3\x01\n" + + "\x11RegisterNamespace\x129.temporal.api.workflowservice.v1.RegisterNamespaceRequest\x1a:.temporal.api.workflowservice.v1.RegisterNamespaceResponse\"7\x82\xd3\xe4\x93\x021:\x01*Z\x17:\x01*\"\x12/api/v1/namespaces\"\x13/cluster/namespaces\x12\xd5\x01\n" + + "\x11DescribeNamespace\x129.temporal.api.workflowservice.v1.DescribeNamespaceRequest\x1a:.temporal.api.workflowservice.v1.DescribeNamespaceResponse\"I\x82\xd3\xe4\x93\x02CZ \x12\x1e/api/v1/namespaces/{namespace}\x12\x1f/cluster/namespaces/{namespace}\x12\xb4\x01\n" + + "\x0eListNamespaces\x126.temporal.api.workflowservice.v1.ListNamespacesRequest\x1a7.temporal.api.workflowservice.v1.ListNamespacesResponse\"1\x82\xd3\xe4\x93\x02+Z\x14\x12\x12/api/v1/namespaces\x12\x13/cluster/namespaces\x12\xe3\x01\n" + + "\x0fUpdateNamespace\x127.temporal.api.workflowservice.v1.UpdateNamespaceRequest\x1a8.temporal.api.workflowservice.v1.UpdateNamespaceResponse\"]\x82\xd3\xe4\x93\x02W:\x01*Z*:\x01*\"%/api/v1/namespaces/{namespace}/update\"&/cluster/namespaces/{namespace}/update\x12\x8f\x01\n" + + "\x12DeprecateNamespace\x12:.temporal.api.workflowservice.v1.DeprecateNamespaceRequest\x1a;.temporal.api.workflowservice.v1.DeprecateNamespaceResponse\"\x00\x12\x92\x02\n" + + "\x16StartWorkflowExecution\x12>.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest\x1a?.temporal.api.workflowservice.v1.StartWorkflowExecutionResponse\"w\x82\xd3\xe4\x93\x02q:\x01*Z;:\x01*\"6/api/v1/namespaces/{namespace}/workflows/{workflow_id}\"//namespaces/{namespace}/workflows/{workflow_id}\x12\xa5\x02\n" + + "\x15ExecuteMultiOperation\x12=.temporal.api.workflowservice.v1.ExecuteMultiOperationRequest\x1a>.temporal.api.workflowservice.v1.ExecuteMultiOperationResponse\"\x8c\x01\x82\xd3\xe4\x93\x02\x85\x01:\x01*ZE:\x01*\"@/api/v1/namespaces/{namespace}/workflows/execute-multi-operation\"9/namespaces/{namespace}/workflows/execute-multi-operation\x12\xc1\x02\n" + + "\x1bGetWorkflowExecutionHistory\x12C.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryRequest\x1aD.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryResponse\"\x96\x01\x82\xd3\xe4\x93\x02\x8f\x01ZJ\x12H/api/v1/namespaces/{namespace}/workflows/{execution.workflow_id}/history\x12A/namespaces/{namespace}/workflows/{execution.workflow_id}/history\x12\xe6\x02\n" + + "\"GetWorkflowExecutionHistoryReverse\x12J.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryReverseRequest\x1aK.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryReverseResponse\"\xa6\x01\x82\xd3\xe4\x93\x02\x9f\x01ZR\x12P/api/v1/namespaces/{namespace}/workflows/{execution.workflow_id}/history-reverse\x12I/namespaces/{namespace}/workflows/{execution.workflow_id}/history-reverse\x12\x98\x01\n" + + "\x15PollWorkflowTaskQueue\x12=.temporal.api.workflowservice.v1.PollWorkflowTaskQueueRequest\x1a>.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse\"\x00\x12\xad\x01\n" + + "\x1cRespondWorkflowTaskCompleted\x12D.temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedRequest\x1aE.temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedResponse\"\x00\x12\xa4\x01\n" + + "\x19RespondWorkflowTaskFailed\x12A.temporal.api.workflowservice.v1.RespondWorkflowTaskFailedRequest\x1aB.temporal.api.workflowservice.v1.RespondWorkflowTaskFailedResponse\"\x00\x12\x98\x01\n" + + "\x15PollActivityTaskQueue\x12=.temporal.api.workflowservice.v1.PollActivityTaskQueueRequest\x1a>.temporal.api.workflowservice.v1.PollActivityTaskQueueResponse\"\x00\x12\x9b\x02\n" + + "\x1bRecordActivityTaskHeartbeat\x12C.temporal.api.workflowservice.v1.RecordActivityTaskHeartbeatRequest\x1aD.temporal.api.workflowservice.v1.RecordActivityTaskHeartbeatResponse\"q\x82\xd3\xe4\x93\x02k:\x01*Z8:\x01*\"3/api/v1/namespaces/{namespace}/activities/heartbeat\",/namespaces/{namespace}/activities/heartbeat\x12\xb3\x02\n" + + "\x1fRecordActivityTaskHeartbeatById\x12G.temporal.api.workflowservice.v1.RecordActivityTaskHeartbeatByIdRequest\x1aH.temporal.api.workflowservice.v1.RecordActivityTaskHeartbeatByIdResponse\"}\x82\xd3\xe4\x93\x02w:\x01*Z>:\x01*\"9/api/v1/namespaces/{namespace}/activities/heartbeat-by-id\"2/namespaces/{namespace}/activities/heartbeat-by-id\x12\x9c\x02\n" + + "\x1cRespondActivityTaskCompleted\x12D.temporal.api.workflowservice.v1.RespondActivityTaskCompletedRequest\x1aE.temporal.api.workflowservice.v1.RespondActivityTaskCompletedResponse\"o\x82\xd3\xe4\x93\x02i:\x01*Z7:\x01*\"2/api/v1/namespaces/{namespace}/activities/complete\"+/namespaces/{namespace}/activities/complete\x12\xb4\x02\n" + + " RespondActivityTaskCompletedById\x12H.temporal.api.workflowservice.v1.RespondActivityTaskCompletedByIdRequest\x1aI.temporal.api.workflowservice.v1.RespondActivityTaskCompletedByIdResponse\"{\x82\xd3\xe4\x93\x02u:\x01*Z=:\x01*\"8/api/v1/namespaces/{namespace}/activities/complete-by-id\"1/namespaces/{namespace}/activities/complete-by-id\x12\x8b\x02\n" + + "\x19RespondActivityTaskFailed\x12A.temporal.api.workflowservice.v1.RespondActivityTaskFailedRequest\x1aB.temporal.api.workflowservice.v1.RespondActivityTaskFailedResponse\"g\x82\xd3\xe4\x93\x02a:\x01*Z3:\x01*\"./api/v1/namespaces/{namespace}/activities/fail\"'/namespaces/{namespace}/activities/fail\x12\xa3\x02\n" + + "\x1dRespondActivityTaskFailedById\x12E.temporal.api.workflowservice.v1.RespondActivityTaskFailedByIdRequest\x1aF.temporal.api.workflowservice.v1.RespondActivityTaskFailedByIdResponse\"s\x82\xd3\xe4\x93\x02m:\x01*Z9:\x01*\"4/api/v1/namespaces/{namespace}/activities/fail-by-id\"-/namespaces/{namespace}/activities/fail-by-id\x12\x95\x02\n" + + "\x1bRespondActivityTaskCanceled\x12C.temporal.api.workflowservice.v1.RespondActivityTaskCanceledRequest\x1aD.temporal.api.workflowservice.v1.RespondActivityTaskCanceledResponse\"k\x82\xd3\xe4\x93\x02e:\x01*Z5:\x01*\"0/api/v1/namespaces/{namespace}/activities/cancel\")/namespaces/{namespace}/activities/cancel\x12\xad\x02\n" + + "\x1fRespondActivityTaskCanceledById\x12G.temporal.api.workflowservice.v1.RespondActivityTaskCanceledByIdRequest\x1aH.temporal.api.workflowservice.v1.RespondActivityTaskCanceledByIdResponse\"w\x82\xd3\xe4\x93\x02q:\x01*Z;:\x01*\"6/api/v1/namespaces/{namespace}/activities/cancel-by-id\"//namespaces/{namespace}/activities/cancel-by-id\x12\xe0\x02\n" + + "\x1eRequestCancelWorkflowExecution\x12F.temporal.api.workflowservice.v1.RequestCancelWorkflowExecutionRequest\x1aG.temporal.api.workflowservice.v1.RequestCancelWorkflowExecutionResponse\"\xac\x01\x82\xd3\xe4\x93\x02\xa5\x01:\x01*ZU:\x01*\"P/api/v1/namespaces/{namespace}/workflows/{workflow_execution.workflow_id}/cancel\"I/namespaces/{namespace}/workflows/{workflow_execution.workflow_id}/cancel\x12\xe7\x02\n" + + "\x17SignalWorkflowExecution\x12?.temporal.api.workflowservice.v1.SignalWorkflowExecutionRequest\x1a@.temporal.api.workflowservice.v1.SignalWorkflowExecutionResponse\"\xc8\x01\x82\xd3\xe4\x93\x02\xc1\x01:\x01*Zc:\x01*\"^/api/v1/namespaces/{namespace}/workflows/{workflow_execution.workflow_id}/signal/{signal_name}\"W/namespaces/{namespace}/workflows/{workflow_execution.workflow_id}/signal/{signal_name}\x12\xf2\x02\n" + + " SignalWithStartWorkflowExecution\x12H.temporal.api.workflowservice.v1.SignalWithStartWorkflowExecutionRequest\x1aI.temporal.api.workflowservice.v1.SignalWithStartWorkflowExecutionResponse\"\xb8\x01\x82\xd3\xe4\x93\x02\xb1\x01:\x01*Z[:\x01*\"V/api/v1/namespaces/{namespace}/workflows/{workflow_id}/signal-with-start/{signal_name}\"O/namespaces/{namespace}/workflows/{workflow_id}/signal-with-start/{signal_name}\x12\xc6\x02\n" + + "\x16ResetWorkflowExecution\x12>.temporal.api.workflowservice.v1.ResetWorkflowExecutionRequest\x1a?.temporal.api.workflowservice.v1.ResetWorkflowExecutionResponse\"\xaa\x01\x82\xd3\xe4\x93\x02\xa3\x01:\x01*ZT:\x01*\"O/api/v1/namespaces/{namespace}/workflows/{workflow_execution.workflow_id}/reset\"H/namespaces/{namespace}/workflows/{workflow_execution.workflow_id}/reset\x12\xda\x02\n" + + "\x1aTerminateWorkflowExecution\x12B.temporal.api.workflowservice.v1.TerminateWorkflowExecutionRequest\x1aC.temporal.api.workflowservice.v1.TerminateWorkflowExecutionResponse\"\xb2\x01\x82\xd3\xe4\x93\x02\xab\x01:\x01*ZX:\x01*\"S/api/v1/namespaces/{namespace}/workflows/{workflow_execution.workflow_id}/terminate\"L/namespaces/{namespace}/workflows/{workflow_execution.workflow_id}/terminate\x12\x9e\x01\n" + + "\x17DeleteWorkflowExecution\x12?.temporal.api.workflowservice.v1.DeleteWorkflowExecutionRequest\x1a@.temporal.api.workflowservice.v1.DeleteWorkflowExecutionResponse\"\x00\x12\xa7\x01\n" + + "\x1aListOpenWorkflowExecutions\x12B.temporal.api.workflowservice.v1.ListOpenWorkflowExecutionsRequest\x1aC.temporal.api.workflowservice.v1.ListOpenWorkflowExecutionsResponse\"\x00\x12\xad\x01\n" + + "\x1cListClosedWorkflowExecutions\x12D.temporal.api.workflowservice.v1.ListClosedWorkflowExecutionsRequest\x1aE.temporal.api.workflowservice.v1.ListClosedWorkflowExecutionsResponse\"\x00\x12\xf0\x01\n" + + "\x16ListWorkflowExecutions\x12>.temporal.api.workflowservice.v1.ListWorkflowExecutionsRequest\x1a?.temporal.api.workflowservice.v1.ListWorkflowExecutionsResponse\"U\x82\xd3\xe4\x93\x02OZ*\x12(/api/v1/namespaces/{namespace}/workflows\x12!/namespaces/{namespace}/workflows\x12\x9a\x02\n" + + "\x1eListArchivedWorkflowExecutions\x12F.temporal.api.workflowservice.v1.ListArchivedWorkflowExecutionsRequest\x1aG.temporal.api.workflowservice.v1.ListArchivedWorkflowExecutionsResponse\"g\x82\xd3\xe4\x93\x02aZ3\x121/api/v1/namespaces/{namespace}/archived-workflows\x12*/namespaces/{namespace}/archived-workflows\x12\x9b\x01\n" + + "\x16ScanWorkflowExecutions\x12>.temporal.api.workflowservice.v1.ScanWorkflowExecutionsRequest\x1a?.temporal.api.workflowservice.v1.ScanWorkflowExecutionsResponse\"\x00\x12\xfd\x01\n" + + "\x17CountWorkflowExecutions\x12?.temporal.api.workflowservice.v1.CountWorkflowExecutionsRequest\x1a@.temporal.api.workflowservice.v1.CountWorkflowExecutionsResponse\"_\x82\xd3\xe4\x93\x02YZ/\x12-/api/v1/namespaces/{namespace}/workflow-count\x12&/namespaces/{namespace}/workflow-count\x12\x92\x01\n" + + "\x13GetSearchAttributes\x12;.temporal.api.workflowservice.v1.GetSearchAttributesRequest\x1a<.temporal.api.workflowservice.v1.GetSearchAttributesResponse\"\x00\x12\xa4\x01\n" + + "\x19RespondQueryTaskCompleted\x12A.temporal.api.workflowservice.v1.RespondQueryTaskCompletedRequest\x1aB.temporal.api.workflowservice.v1.RespondQueryTaskCompletedResponse\"\x00\x12\x95\x01\n" + + "\x14ResetStickyTaskQueue\x12<.temporal.api.workflowservice.v1.ResetStickyTaskQueueRequest\x1a=.temporal.api.workflowservice.v1.ResetStickyTaskQueueResponse\"\x00\x12\x83\x01\n" + + "\x0eShutdownWorker\x126.temporal.api.workflowservice.v1.ShutdownWorkerRequest\x1a7.temporal.api.workflowservice.v1.ShutdownWorkerResponse\"\x00\x12\xbf\x02\n" + + "\rQueryWorkflow\x125.temporal.api.workflowservice.v1.QueryWorkflowRequest\x1a6.temporal.api.workflowservice.v1.QueryWorkflowResponse\"\xbe\x01\x82\xd3\xe4\x93\x02\xb7\x01:\x01*Z^:\x01*\"Y/api/v1/namespaces/{namespace}/workflows/{execution.workflow_id}/query/{query.query_type}\"R/namespaces/{namespace}/workflows/{execution.workflow_id}/query/{query.query_type}\x12\xaa\x02\n" + + "\x19DescribeWorkflowExecution\x12A.temporal.api.workflowservice.v1.DescribeWorkflowExecutionRequest\x1aB.temporal.api.workflowservice.v1.DescribeWorkflowExecutionResponse\"\x85\x01\x82\xd3\xe4\x93\x02\x7fZB\x12@/api/v1/namespaces/{namespace}/workflows/{execution.workflow_id}\x129/namespaces/{namespace}/workflows/{execution.workflow_id}\x12\x89\x02\n" + + "\x11DescribeTaskQueue\x129.temporal.api.workflowservice.v1.DescribeTaskQueueRequest\x1a:.temporal.api.workflowservice.v1.DescribeTaskQueueResponse\"}\x82\xd3\xe4\x93\x02wZ>\x12/namespaces/{namespace}/schedules/{schedule_id}/matching-times\x12\xf4\x01\n" + + "\x0eDeleteSchedule\x126.temporal.api.workflowservice.v1.DeleteScheduleRequest\x1a7.temporal.api.workflowservice.v1.DeleteScheduleResponse\"q\x82\xd3\xe4\x93\x02kZ8*6/api/v1/namespaces/{namespace}/schedules/{schedule_id}*//namespaces/{namespace}/schedules/{schedule_id}\x12\xd5\x01\n" + + "\rListSchedules\x125.temporal.api.workflowservice.v1.ListSchedulesRequest\x1a6.temporal.api.workflowservice.v1.ListSchedulesResponse\"U\x82\xd3\xe4\x93\x02OZ*\x12(/api/v1/namespaces/{namespace}/schedules\x12!/namespaces/{namespace}/schedules\x12\xb9\x01\n" + + " UpdateWorkerBuildIdCompatibility\x12H.temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityRequest\x1aI.temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityResponse\"\x00\x12\xe1\x02\n" + + "\x1dGetWorkerBuildIdCompatibility\x12E.temporal.api.workflowservice.v1.GetWorkerBuildIdCompatibilityRequest\x1aF.temporal.api.workflowservice.v1.GetWorkerBuildIdCompatibilityResponse\"\xb0\x01\x82\xd3\xe4\x93\x02\xa9\x01ZW\x12U/api/v1/namespaces/{namespace}/task-queues/{task_queue}/worker-build-id-compatibility\x12N/namespaces/{namespace}/task-queues/{task_queue}/worker-build-id-compatibility\x12\xaa\x01\n" + + "\x1bUpdateWorkerVersioningRules\x12C.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest\x1aD.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesResponse\"\x00\x12\xc6\x02\n" + + "\x18GetWorkerVersioningRules\x12@.temporal.api.workflowservice.v1.GetWorkerVersioningRulesRequest\x1aA.temporal.api.workflowservice.v1.GetWorkerVersioningRulesResponse\"\xa4\x01\x82\xd3\xe4\x93\x02\x9d\x01ZQ\x12O/api/v1/namespaces/{namespace}/task-queues/{task_queue}/worker-versioning-rules\x12H/namespaces/{namespace}/task-queues/{task_queue}/worker-versioning-rules\x12\x97\x02\n" + + "\x19GetWorkerTaskReachability\x12A.temporal.api.workflowservice.v1.GetWorkerTaskReachabilityRequest\x1aB.temporal.api.workflowservice.v1.GetWorkerTaskReachabilityResponse\"s\x82\xd3\xe4\x93\x02mZ9\x127/api/v1/namespaces/{namespace}/worker-task-reachability\x120/namespaces/{namespace}/worker-task-reachability\x12\xc8\x02\n" + + "\x12DescribeDeployment\x12:.temporal.api.workflowservice.v1.DescribeDeploymentRequest\x1a;.temporal.api.workflowservice.v1.DescribeDeploymentResponse\"\xb8\x01\x82\xd3\xe4\x93\x02\xb1\x01Z[\x12Y/api/v1/namespaces/{namespace}/deployments/{deployment.series_name}/{deployment.build_id}\x12R/namespaces/{namespace}/deployments/{deployment.series_name}/{deployment.build_id}\x12\xb5\x03\n" + + "\x1fDescribeWorkerDeploymentVersion\x12G.temporal.api.workflowservice.v1.DescribeWorkerDeploymentVersionRequest\x1aH.temporal.api.workflowservice.v1.DescribeWorkerDeploymentVersionResponse\"\xfe\x01\x82\xd3\xe4\x93\x02\xf7\x01Z~\x12|/api/v1/namespaces/{namespace}/worker-deployment-versions/{deployment_version.deployment_name}/{deployment_version.build_id}\x12u/namespaces/{namespace}/worker-deployment-versions/{deployment_version.deployment_name}/{deployment_version.build_id}\x12\xdf\x01\n" + + "\x0fListDeployments\x127.temporal.api.workflowservice.v1.ListDeploymentsRequest\x1a8.temporal.api.workflowservice.v1.ListDeploymentsResponse\"Y\x82\xd3\xe4\x93\x02SZ,\x12*/api/v1/namespaces/{namespace}/deployments\x12#/namespaces/{namespace}/deployments\x12\xf7\x02\n" + + "\x19GetDeploymentReachability\x12A.temporal.api.workflowservice.v1.GetDeploymentReachabilityRequest\x1aB.temporal.api.workflowservice.v1.GetDeploymentReachabilityResponse\"\xd2\x01\x82\xd3\xe4\x93\x02\xcb\x01Zh\x12f/api/v1/namespaces/{namespace}/deployments/{deployment.series_name}/{deployment.build_id}/reachability\x12_/namespaces/{namespace}/deployments/{deployment.series_name}/{deployment.build_id}/reachability\x12\x99\x02\n" + + "\x14GetCurrentDeployment\x12<.temporal.api.workflowservice.v1.GetCurrentDeploymentRequest\x1a=.temporal.api.workflowservice.v1.GetCurrentDeploymentResponse\"\x83\x01\x82\xd3\xe4\x93\x02}ZA\x12?/api/v1/namespaces/{namespace}/current-deployment/{series_name}\x128/namespaces/{namespace}/current-deployment/{series_name}\x12\xb6\x02\n" + + "\x14SetCurrentDeployment\x12<.temporal.api.workflowservice.v1.SetCurrentDeploymentRequest\x1a=.temporal.api.workflowservice.v1.SetCurrentDeploymentResponse\"\xa0\x01\x82\xd3\xe4\x93\x02\x99\x01:\x01*ZO:\x01*\"J/api/v1/namespaces/{namespace}/current-deployment/{deployment.series_name}\"C/namespaces/{namespace}/current-deployment/{deployment.series_name}\x12\xf7\x02\n" + + "!SetWorkerDeploymentCurrentVersion\x12I.temporal.api.workflowservice.v1.SetWorkerDeploymentCurrentVersionRequest\x1aJ.temporal.api.workflowservice.v1.SetWorkerDeploymentCurrentVersionResponse\"\xba\x01\x82\xd3\xe4\x93\x02\xb3\x01:\x01*Z\\:\x01*\"W/api/v1/namespaces/{namespace}/worker-deployments/{deployment_name}/set-current-version\"P/namespaces/{namespace}/worker-deployments/{deployment_name}/set-current-version\x12\xae\x02\n" + + "\x18DescribeWorkerDeployment\x12@.temporal.api.workflowservice.v1.DescribeWorkerDeploymentRequest\x1aA.temporal.api.workflowservice.v1.DescribeWorkerDeploymentResponse\"\x8c\x01\x82\xd3\xe4\x93\x02\x85\x01ZE\x12C/api/v1/namespaces/{namespace}/worker-deployments/{deployment_name}\x12.temporal.api.workflowservice.v1.DeleteWorkerDeploymentRequest\x1a?.temporal.api.workflowservice.v1.DeleteWorkerDeploymentResponse\"\x8c\x01\x82\xd3\xe4\x93\x02\x85\x01ZE*C/api/v1/namespaces/{namespace}/worker-deployments/{deployment_name}*.temporal.api.workflowservice.v1.ListWorkerDeploymentsResponse\"g\x82\xd3\xe4\x93\x02aZ3\x121/api/v1/namespaces/{namespace}/worker-deployments\x12*/namespaces/{namespace}/worker-deployments\x12\xf0\x03\n" + + "%UpdateWorkerDeploymentVersionMetadata\x12M.temporal.api.workflowservice.v1.UpdateWorkerDeploymentVersionMetadataRequest\x1aN.temporal.api.workflowservice.v1.UpdateWorkerDeploymentVersionMetadataResponse\"\xa7\x02\x82\xd3\xe4\x93\x02\xa0\x02:\x01*Z\x92\x01:\x01*\"\x8c\x01/api/v1/namespaces/{namespace}/worker-deployment-versions/{deployment_version.deployment_name}/{deployment_version.build_id}/update-metadata\"\x85\x01/namespaces/{namespace}/worker-deployment-versions/{deployment_version.deployment_name}/{deployment_version.build_id}/update-metadata\x12\xd2\x02\n" + + "\x1aSetWorkerDeploymentManager\x12B.temporal.api.workflowservice.v1.SetWorkerDeploymentManagerRequest\x1aC.temporal.api.workflowservice.v1.SetWorkerDeploymentManagerResponse\"\xaa\x01\x82\xd3\xe4\x93\x02\xa3\x01:\x01*ZT:\x01*\"O/api/v1/namespaces/{namespace}/worker-deployments/{deployment_name}/set-manager\"H/namespaces/{namespace}/worker-deployments/{deployment_name}/set-manager\x12\xf5\x02\n" + + "\x17UpdateWorkflowExecution\x12?.temporal.api.workflowservice.v1.UpdateWorkflowExecutionRequest\x1a@.temporal.api.workflowservice.v1.UpdateWorkflowExecutionResponse\"\xd6\x01\x82\xd3\xe4\x93\x02\xcf\x01:\x01*Zj:\x01*\"e/api/v1/namespaces/{namespace}/workflows/{workflow_execution.workflow_id}/update/{request.input.name}\"^/namespaces/{namespace}/workflows/{workflow_execution.workflow_id}/update/{request.input.name}\x12\xaa\x01\n" + + "\x1bPollWorkflowExecutionUpdate\x12C.temporal.api.workflowservice.v1.PollWorkflowExecutionUpdateRequest\x1aD.temporal.api.workflowservice.v1.PollWorkflowExecutionUpdateResponse\"\x00\x12\x8d\x02\n" + + "\x13StartBatchOperation\x12;.temporal.api.workflowservice.v1.StartBatchOperationRequest\x1a<.temporal.api.workflowservice.v1.StartBatchOperationResponse\"{\x82\xd3\xe4\x93\x02u:\x01*Z=:\x01*\"8/api/v1/namespaces/{namespace}/batch-operations/{job_id}\"1/namespaces/{namespace}/batch-operations/{job_id}\x12\x95\x02\n" + + "\x12StopBatchOperation\x12:.temporal.api.workflowservice.v1.StopBatchOperationRequest\x1a;.temporal.api.workflowservice.v1.StopBatchOperationResponse\"\x85\x01\x82\xd3\xe4\x93\x02\x7f:\x01*ZB:\x01*\"=/api/v1/namespaces/{namespace}/batch-operations/{job_id}/stop\"6/namespaces/{namespace}/batch-operations/{job_id}/stop\x12\x90\x02\n" + + "\x16DescribeBatchOperation\x12>.temporal.api.workflowservice.v1.DescribeBatchOperationRequest\x1a?.temporal.api.workflowservice.v1.DescribeBatchOperationResponse\"u\x82\xd3\xe4\x93\x02oZ:\x128/api/v1/namespaces/{namespace}/batch-operations/{job_id}\x121/namespaces/{namespace}/batch-operations/{job_id}\x12\xf5\x01\n" + + "\x13ListBatchOperations\x12;.temporal.api.workflowservice.v1.ListBatchOperationsRequest\x1a<.temporal.api.workflowservice.v1.ListBatchOperationsResponse\"c\x82\xd3\xe4\x93\x02]Z1\x12//api/v1/namespaces/{namespace}/batch-operations\x12(/namespaces/{namespace}/batch-operations\x12\x8f\x01\n" + + "\x12PollNexusTaskQueue\x12:.temporal.api.workflowservice.v1.PollNexusTaskQueueRequest\x1a;.temporal.api.workflowservice.v1.PollNexusTaskQueueResponse\"\x00\x12\xa4\x01\n" + + "\x19RespondNexusTaskCompleted\x12A.temporal.api.workflowservice.v1.RespondNexusTaskCompletedRequest\x1aB.temporal.api.workflowservice.v1.RespondNexusTaskCompletedResponse\"\x00\x12\x9b\x01\n" + + "\x16RespondNexusTaskFailed\x12>.temporal.api.workflowservice.v1.RespondNexusTaskFailedRequest\x1a?.temporal.api.workflowservice.v1.RespondNexusTaskFailedResponse\"\x00\x12\x93\x02\n" + + "\x15UpdateActivityOptions\x12=.temporal.api.workflowservice.v1.UpdateActivityOptionsRequest\x1a>.temporal.api.workflowservice.v1.UpdateActivityOptionsResponse\"{\x82\xd3\xe4\x93\x02u:\x01*Z=:\x01*\"8/api/v1/namespaces/{namespace}/activities/update-options\"1/namespaces/{namespace}/activities/update-options\x12\xf0\x02\n" + + "\x1eUpdateWorkflowExecutionOptions\x12F.temporal.api.workflowservice.v1.UpdateWorkflowExecutionOptionsRequest\x1aG.temporal.api.workflowservice.v1.UpdateWorkflowExecutionOptionsResponse\"\xbc\x01\x82\xd3\xe4\x93\x02\xb5\x01:\x01*Z]:\x01*\"X/api/v1/namespaces/{namespace}/workflows/{workflow_execution.workflow_id}/update-options\"Q/namespaces/{namespace}/workflows/{workflow_execution.workflow_id}/update-options\x12\xe9\x01\n" + + "\rPauseActivity\x125.temporal.api.workflowservice.v1.PauseActivityRequest\x1a6.temporal.api.workflowservice.v1.PauseActivityResponse\"i\x82\xd3\xe4\x93\x02c:\x01*Z4:\x01*\"//api/v1/namespaces/{namespace}/activities/pause\"(/namespaces/{namespace}/activities/pause\x12\xf3\x01\n" + + "\x0fUnpauseActivity\x127.temporal.api.workflowservice.v1.UnpauseActivityRequest\x1a8.temporal.api.workflowservice.v1.UnpauseActivityResponse\"m\x82\xd3\xe4\x93\x02g:\x01*Z6:\x01*\"1/api/v1/namespaces/{namespace}/activities/unpause\"*/namespaces/{namespace}/activities/unpause\x12\xe9\x01\n" + + "\rResetActivity\x125.temporal.api.workflowservice.v1.ResetActivityRequest\x1a6.temporal.api.workflowservice.v1.ResetActivityResponse\"i\x82\xd3\xe4\x93\x02c:\x01*Z4:\x01*\"//api/v1/namespaces/{namespace}/activities/reset\"(/namespaces/{namespace}/activities/reset\x12\xf4\x01\n" + + "\x12CreateWorkflowRule\x12:.temporal.api.workflowservice.v1.CreateWorkflowRuleRequest\x1a;.temporal.api.workflowservice.v1.CreateWorkflowRuleResponse\"e\x82\xd3\xe4\x93\x02_:\x01*Z2:\x01*\"-/api/v1/namespaces/{namespace}/workflow-rules\"&/namespaces/{namespace}/workflow-rules\x12\x88\x02\n" + + "\x14DescribeWorkflowRule\x12<.temporal.api.workflowservice.v1.DescribeWorkflowRuleRequest\x1a=.temporal.api.workflowservice.v1.DescribeWorkflowRuleResponse\"s\x82\xd3\xe4\x93\x02mZ9\x127/api/v1/namespaces/{namespace}/workflow-rules/{rule_id}\x120/namespaces/{namespace}/workflow-rules/{rule_id}\x12\x82\x02\n" + + "\x12DeleteWorkflowRule\x12:.temporal.api.workflowservice.v1.DeleteWorkflowRuleRequest\x1a;.temporal.api.workflowservice.v1.DeleteWorkflowRuleResponse\"s\x82\xd3\xe4\x93\x02mZ9*7/api/v1/namespaces/{namespace}/workflow-rules/{rule_id}*0/namespaces/{namespace}/workflow-rules/{rule_id}\x12\xeb\x01\n" + + "\x11ListWorkflowRules\x129.temporal.api.workflowservice.v1.ListWorkflowRulesRequest\x1a:.temporal.api.workflowservice.v1.ListWorkflowRulesResponse\"_\x82\xd3\xe4\x93\x02YZ/\x12-/api/v1/namespaces/{namespace}/workflow-rules\x12&/namespaces/{namespace}/workflow-rules\x12\xb9\x02\n" + + "\x13TriggerWorkflowRule\x12;.temporal.api.workflowservice.v1.TriggerWorkflowRuleRequest\x1a<.temporal.api.workflowservice.v1.TriggerWorkflowRuleResponse\"\xa6\x01\x82\xd3\xe4\x93\x02\x9f\x01:\x01*ZR:\x01*\"M/api/v1/namespaces/{namespace}/workflows/{execution.workflow_id}/trigger-rule\"F/namespaces/{namespace}/workflows/{execution.workflow_id}/trigger-rule\x12\x83\x02\n" + + "\x15RecordWorkerHeartbeat\x12=.temporal.api.workflowservice.v1.RecordWorkerHeartbeatRequest\x1a>.temporal.api.workflowservice.v1.RecordWorkerHeartbeatResponse\"k\x82\xd3\xe4\x93\x02e:\x01*Z5:\x01*\"0/api/v1/namespaces/{namespace}/workers/heartbeat\")/namespaces/{namespace}/workers/heartbeat\x12\xcb\x01\n" + + "\vListWorkers\x123.temporal.api.workflowservice.v1.ListWorkersRequest\x1a4.temporal.api.workflowservice.v1.ListWorkersResponse\"Q\x82\xd3\xe4\x93\x02KZ(\x12&/api/v1/namespaces/{namespace}/workers\x12\x1f/namespaces/{namespace}/workers\x12\xaf\x02\n" + + "\x15UpdateTaskQueueConfig\x12=.temporal.api.workflowservice.v1.UpdateTaskQueueConfigRequest\x1a>.temporal.api.workflowservice.v1.UpdateTaskQueueConfigResponse\"\x96\x01\x82\xd3\xe4\x93\x02\x8f\x01:\x01*ZJ:\x01*\"E/api/v1/namespaces/{namespace}/task-queues/{task_queue}/update-config\">/namespaces/{namespace}/task-queues/{task_queue}/update-config\x12\xfd\x01\n" + + "\x11FetchWorkerConfig\x129.temporal.api.workflowservice.v1.FetchWorkerConfigRequest\x1a:.temporal.api.workflowservice.v1.FetchWorkerConfigResponse\"q\x82\xd3\xe4\x93\x02k:\x01*Z8:\x01*\"3/api/v1/namespaces/{namespace}/workers/fetch-config\",/namespaces/{namespace}/workers/fetch-config\x12\x82\x02\n" + + "\x12UpdateWorkerConfig\x12:.temporal.api.workflowservice.v1.UpdateWorkerConfigRequest\x1a;.temporal.api.workflowservice.v1.UpdateWorkerConfigResponse\"s\x82\xd3\xe4\x93\x02m:\x01*Z9:\x01*\"4/api/v1/namespaces/{namespace}/workers/update-config\"-/namespaces/{namespace}/workers/update-config\x12\x94\x02\n" + + "\x0eDescribeWorker\x126.temporal.api.workflowservice.v1.DescribeWorkerRequest\x1a7.temporal.api.workflowservice.v1.DescribeWorkerResponse\"\x90\x01\x82\xd3\xe4\x93\x02\x89\x01ZG\x12E/api/v1/namespaces/{namespace}/workers/describe/{worker_instance_key}\x12>/namespaces/{namespace}/workers/describe/{worker_instance_key}\x12\xdb\x01\n" + + "\x16PauseWorkflowExecution\x12>.temporal.api.workflowservice.v1.PauseWorkflowExecutionRequest\x1a?.temporal.api.workflowservice.v1.PauseWorkflowExecutionResponse\"@\x82\xd3\xe4\x93\x02::\x01*\"5/namespaces/{namespace}/workflows/{workflow_id}/pause\x12\xe3\x01\n" + + "\x18UnpauseWorkflowExecution\x12@.temporal.api.workflowservice.v1.UnpauseWorkflowExecutionRequest\x1aA.temporal.api.workflowservice.v1.UnpauseWorkflowExecutionResponse\"B\x82\xd3\xe4\x93\x02<:\x01*\"7/namespaces/{namespace}/workflows/{workflow_id}/unpause\x12\x94\x02\n" + + "\x16StartActivityExecution\x12>.temporal.api.workflowservice.v1.StartActivityExecutionRequest\x1a?.temporal.api.workflowservice.v1.StartActivityExecutionResponse\"y\x82\xd3\xe4\x93\x02s:\x01*Z<:\x01*\"7/api/v1/namespaces/{namespace}/activities/{activity_id}\"0/namespaces/{namespace}/activities/{activity_id}\x12\x97\x02\n" + + "\x19DescribeActivityExecution\x12A.temporal.api.workflowservice.v1.DescribeActivityExecutionRequest\x1aB.temporal.api.workflowservice.v1.DescribeActivityExecutionResponse\"s\x82\xd3\xe4\x93\x02mZ9\x127/api/v1/namespaces/{namespace}/activities/{activity_id}\x120/namespaces/{namespace}/activities/{activity_id}\x12\x9c\x02\n" + + "\x15PollActivityExecution\x12=.temporal.api.workflowservice.v1.PollActivityExecutionRequest\x1a>.temporal.api.workflowservice.v1.PollActivityExecutionResponse\"\x83\x01\x82\xd3\xe4\x93\x02}ZA\x12?/api/v1/namespaces/{namespace}/activities/{activity_id}/outcome\x128/namespaces/{namespace}/activities/{activity_id}/outcome\x12\xf2\x01\n" + + "\x16ListActivityExecutions\x12>.temporal.api.workflowservice.v1.ListActivityExecutionsRequest\x1a?.temporal.api.workflowservice.v1.ListActivityExecutionsResponse\"W\x82\xd3\xe4\x93\x02QZ+\x12)/api/v1/namespaces/{namespace}/activities\x12\"/namespaces/{namespace}/activities\x12\xfd\x01\n" + + "\x17CountActivityExecutions\x12?.temporal.api.workflowservice.v1.CountActivityExecutionsRequest\x1a@.temporal.api.workflowservice.v1.CountActivityExecutionsResponse\"_\x82\xd3\xe4\x93\x02YZ/\x12-/api/v1/namespaces/{namespace}/activity-count\x12&/namespaces/{namespace}/activity-count\x12\xbc\x02\n" + + "\x1eRequestCancelActivityExecution\x12F.temporal.api.workflowservice.v1.RequestCancelActivityExecutionRequest\x1aG.temporal.api.workflowservice.v1.RequestCancelActivityExecutionResponse\"\x88\x01\x82\xd3\xe4\x93\x02\x81\x01:\x01*ZC:\x01*\">/api/v1/namespaces/{namespace}/activities/{activity_id}/cancel\"7/namespaces/{namespace}/activities/{activity_id}/cancel\x12\xb6\x02\n" + + "\x1aTerminateActivityExecution\x12B.temporal.api.workflowservice.v1.TerminateActivityExecutionRequest\x1aC.temporal.api.workflowservice.v1.TerminateActivityExecutionResponse\"\x8e\x01\x82\xd3\xe4\x93\x02\x87\x01:\x01*ZF:\x01*\"A/api/v1/namespaces/{namespace}/activities/{activity_id}/terminate\":/namespaces/{namespace}/activities/{activity_id}/terminate\x12\x9e\x01\n" + + "\x17DeleteActivityExecution\x12?.temporal.api.workflowservice.v1.DeleteActivityExecutionRequest\x1a@.temporal.api.workflowservice.v1.DeleteActivityExecutionResponse\"\x00B\xb6\x01\n" + + "\"io.temporal.api.workflowservice.v1B\fServiceProtoP\x01Z5go.temporal.io/api/workflowservice/v1;workflowservice\xaa\x02!Temporalio.Api.WorkflowService.V1\xea\x02$Temporalio::Api::WorkflowService::V1b\x06proto3" + +var file_temporal_api_workflowservice_v1_service_proto_goTypes = []any{ + (*RegisterNamespaceRequest)(nil), // 0: temporal.api.workflowservice.v1.RegisterNamespaceRequest + (*DescribeNamespaceRequest)(nil), // 1: temporal.api.workflowservice.v1.DescribeNamespaceRequest + (*ListNamespacesRequest)(nil), // 2: temporal.api.workflowservice.v1.ListNamespacesRequest + (*UpdateNamespaceRequest)(nil), // 3: temporal.api.workflowservice.v1.UpdateNamespaceRequest + (*DeprecateNamespaceRequest)(nil), // 4: temporal.api.workflowservice.v1.DeprecateNamespaceRequest + (*StartWorkflowExecutionRequest)(nil), // 5: temporal.api.workflowservice.v1.StartWorkflowExecutionRequest + (*ExecuteMultiOperationRequest)(nil), // 6: temporal.api.workflowservice.v1.ExecuteMultiOperationRequest + (*GetWorkflowExecutionHistoryRequest)(nil), // 7: temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryRequest + (*GetWorkflowExecutionHistoryReverseRequest)(nil), // 8: temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryReverseRequest + (*PollWorkflowTaskQueueRequest)(nil), // 9: temporal.api.workflowservice.v1.PollWorkflowTaskQueueRequest + (*RespondWorkflowTaskCompletedRequest)(nil), // 10: temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedRequest + (*RespondWorkflowTaskFailedRequest)(nil), // 11: temporal.api.workflowservice.v1.RespondWorkflowTaskFailedRequest + (*PollActivityTaskQueueRequest)(nil), // 12: temporal.api.workflowservice.v1.PollActivityTaskQueueRequest + (*RecordActivityTaskHeartbeatRequest)(nil), // 13: temporal.api.workflowservice.v1.RecordActivityTaskHeartbeatRequest + (*RecordActivityTaskHeartbeatByIdRequest)(nil), // 14: temporal.api.workflowservice.v1.RecordActivityTaskHeartbeatByIdRequest + (*RespondActivityTaskCompletedRequest)(nil), // 15: temporal.api.workflowservice.v1.RespondActivityTaskCompletedRequest + (*RespondActivityTaskCompletedByIdRequest)(nil), // 16: temporal.api.workflowservice.v1.RespondActivityTaskCompletedByIdRequest + (*RespondActivityTaskFailedRequest)(nil), // 17: temporal.api.workflowservice.v1.RespondActivityTaskFailedRequest + (*RespondActivityTaskFailedByIdRequest)(nil), // 18: temporal.api.workflowservice.v1.RespondActivityTaskFailedByIdRequest + (*RespondActivityTaskCanceledRequest)(nil), // 19: temporal.api.workflowservice.v1.RespondActivityTaskCanceledRequest + (*RespondActivityTaskCanceledByIdRequest)(nil), // 20: temporal.api.workflowservice.v1.RespondActivityTaskCanceledByIdRequest + (*RequestCancelWorkflowExecutionRequest)(nil), // 21: temporal.api.workflowservice.v1.RequestCancelWorkflowExecutionRequest + (*SignalWorkflowExecutionRequest)(nil), // 22: temporal.api.workflowservice.v1.SignalWorkflowExecutionRequest + (*SignalWithStartWorkflowExecutionRequest)(nil), // 23: temporal.api.workflowservice.v1.SignalWithStartWorkflowExecutionRequest + (*ResetWorkflowExecutionRequest)(nil), // 24: temporal.api.workflowservice.v1.ResetWorkflowExecutionRequest + (*TerminateWorkflowExecutionRequest)(nil), // 25: temporal.api.workflowservice.v1.TerminateWorkflowExecutionRequest + (*DeleteWorkflowExecutionRequest)(nil), // 26: temporal.api.workflowservice.v1.DeleteWorkflowExecutionRequest + (*ListOpenWorkflowExecutionsRequest)(nil), // 27: temporal.api.workflowservice.v1.ListOpenWorkflowExecutionsRequest + (*ListClosedWorkflowExecutionsRequest)(nil), // 28: temporal.api.workflowservice.v1.ListClosedWorkflowExecutionsRequest + (*ListWorkflowExecutionsRequest)(nil), // 29: temporal.api.workflowservice.v1.ListWorkflowExecutionsRequest + (*ListArchivedWorkflowExecutionsRequest)(nil), // 30: temporal.api.workflowservice.v1.ListArchivedWorkflowExecutionsRequest + (*ScanWorkflowExecutionsRequest)(nil), // 31: temporal.api.workflowservice.v1.ScanWorkflowExecutionsRequest + (*CountWorkflowExecutionsRequest)(nil), // 32: temporal.api.workflowservice.v1.CountWorkflowExecutionsRequest + (*GetSearchAttributesRequest)(nil), // 33: temporal.api.workflowservice.v1.GetSearchAttributesRequest + (*RespondQueryTaskCompletedRequest)(nil), // 34: temporal.api.workflowservice.v1.RespondQueryTaskCompletedRequest + (*ResetStickyTaskQueueRequest)(nil), // 35: temporal.api.workflowservice.v1.ResetStickyTaskQueueRequest + (*ShutdownWorkerRequest)(nil), // 36: temporal.api.workflowservice.v1.ShutdownWorkerRequest + (*QueryWorkflowRequest)(nil), // 37: temporal.api.workflowservice.v1.QueryWorkflowRequest + (*DescribeWorkflowExecutionRequest)(nil), // 38: temporal.api.workflowservice.v1.DescribeWorkflowExecutionRequest + (*DescribeTaskQueueRequest)(nil), // 39: temporal.api.workflowservice.v1.DescribeTaskQueueRequest + (*GetClusterInfoRequest)(nil), // 40: temporal.api.workflowservice.v1.GetClusterInfoRequest + (*GetSystemInfoRequest)(nil), // 41: temporal.api.workflowservice.v1.GetSystemInfoRequest + (*ListTaskQueuePartitionsRequest)(nil), // 42: temporal.api.workflowservice.v1.ListTaskQueuePartitionsRequest + (*CreateScheduleRequest)(nil), // 43: temporal.api.workflowservice.v1.CreateScheduleRequest + (*DescribeScheduleRequest)(nil), // 44: temporal.api.workflowservice.v1.DescribeScheduleRequest + (*UpdateScheduleRequest)(nil), // 45: temporal.api.workflowservice.v1.UpdateScheduleRequest + (*PatchScheduleRequest)(nil), // 46: temporal.api.workflowservice.v1.PatchScheduleRequest + (*ListScheduleMatchingTimesRequest)(nil), // 47: temporal.api.workflowservice.v1.ListScheduleMatchingTimesRequest + (*DeleteScheduleRequest)(nil), // 48: temporal.api.workflowservice.v1.DeleteScheduleRequest + (*ListSchedulesRequest)(nil), // 49: temporal.api.workflowservice.v1.ListSchedulesRequest + (*UpdateWorkerBuildIdCompatibilityRequest)(nil), // 50: temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityRequest + (*GetWorkerBuildIdCompatibilityRequest)(nil), // 51: temporal.api.workflowservice.v1.GetWorkerBuildIdCompatibilityRequest + (*UpdateWorkerVersioningRulesRequest)(nil), // 52: temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest + (*GetWorkerVersioningRulesRequest)(nil), // 53: temporal.api.workflowservice.v1.GetWorkerVersioningRulesRequest + (*GetWorkerTaskReachabilityRequest)(nil), // 54: temporal.api.workflowservice.v1.GetWorkerTaskReachabilityRequest + (*DescribeDeploymentRequest)(nil), // 55: temporal.api.workflowservice.v1.DescribeDeploymentRequest + (*DescribeWorkerDeploymentVersionRequest)(nil), // 56: temporal.api.workflowservice.v1.DescribeWorkerDeploymentVersionRequest + (*ListDeploymentsRequest)(nil), // 57: temporal.api.workflowservice.v1.ListDeploymentsRequest + (*GetDeploymentReachabilityRequest)(nil), // 58: temporal.api.workflowservice.v1.GetDeploymentReachabilityRequest + (*GetCurrentDeploymentRequest)(nil), // 59: temporal.api.workflowservice.v1.GetCurrentDeploymentRequest + (*SetCurrentDeploymentRequest)(nil), // 60: temporal.api.workflowservice.v1.SetCurrentDeploymentRequest + (*SetWorkerDeploymentCurrentVersionRequest)(nil), // 61: temporal.api.workflowservice.v1.SetWorkerDeploymentCurrentVersionRequest + (*DescribeWorkerDeploymentRequest)(nil), // 62: temporal.api.workflowservice.v1.DescribeWorkerDeploymentRequest + (*DeleteWorkerDeploymentRequest)(nil), // 63: temporal.api.workflowservice.v1.DeleteWorkerDeploymentRequest + (*DeleteWorkerDeploymentVersionRequest)(nil), // 64: temporal.api.workflowservice.v1.DeleteWorkerDeploymentVersionRequest + (*SetWorkerDeploymentRampingVersionRequest)(nil), // 65: temporal.api.workflowservice.v1.SetWorkerDeploymentRampingVersionRequest + (*ListWorkerDeploymentsRequest)(nil), // 66: temporal.api.workflowservice.v1.ListWorkerDeploymentsRequest + (*UpdateWorkerDeploymentVersionMetadataRequest)(nil), // 67: temporal.api.workflowservice.v1.UpdateWorkerDeploymentVersionMetadataRequest + (*SetWorkerDeploymentManagerRequest)(nil), // 68: temporal.api.workflowservice.v1.SetWorkerDeploymentManagerRequest + (*UpdateWorkflowExecutionRequest)(nil), // 69: temporal.api.workflowservice.v1.UpdateWorkflowExecutionRequest + (*PollWorkflowExecutionUpdateRequest)(nil), // 70: temporal.api.workflowservice.v1.PollWorkflowExecutionUpdateRequest + (*StartBatchOperationRequest)(nil), // 71: temporal.api.workflowservice.v1.StartBatchOperationRequest + (*StopBatchOperationRequest)(nil), // 72: temporal.api.workflowservice.v1.StopBatchOperationRequest + (*DescribeBatchOperationRequest)(nil), // 73: temporal.api.workflowservice.v1.DescribeBatchOperationRequest + (*ListBatchOperationsRequest)(nil), // 74: temporal.api.workflowservice.v1.ListBatchOperationsRequest + (*PollNexusTaskQueueRequest)(nil), // 75: temporal.api.workflowservice.v1.PollNexusTaskQueueRequest + (*RespondNexusTaskCompletedRequest)(nil), // 76: temporal.api.workflowservice.v1.RespondNexusTaskCompletedRequest + (*RespondNexusTaskFailedRequest)(nil), // 77: temporal.api.workflowservice.v1.RespondNexusTaskFailedRequest + (*UpdateActivityOptionsRequest)(nil), // 78: temporal.api.workflowservice.v1.UpdateActivityOptionsRequest + (*UpdateWorkflowExecutionOptionsRequest)(nil), // 79: temporal.api.workflowservice.v1.UpdateWorkflowExecutionOptionsRequest + (*PauseActivityRequest)(nil), // 80: temporal.api.workflowservice.v1.PauseActivityRequest + (*UnpauseActivityRequest)(nil), // 81: temporal.api.workflowservice.v1.UnpauseActivityRequest + (*ResetActivityRequest)(nil), // 82: temporal.api.workflowservice.v1.ResetActivityRequest + (*CreateWorkflowRuleRequest)(nil), // 83: temporal.api.workflowservice.v1.CreateWorkflowRuleRequest + (*DescribeWorkflowRuleRequest)(nil), // 84: temporal.api.workflowservice.v1.DescribeWorkflowRuleRequest + (*DeleteWorkflowRuleRequest)(nil), // 85: temporal.api.workflowservice.v1.DeleteWorkflowRuleRequest + (*ListWorkflowRulesRequest)(nil), // 86: temporal.api.workflowservice.v1.ListWorkflowRulesRequest + (*TriggerWorkflowRuleRequest)(nil), // 87: temporal.api.workflowservice.v1.TriggerWorkflowRuleRequest + (*RecordWorkerHeartbeatRequest)(nil), // 88: temporal.api.workflowservice.v1.RecordWorkerHeartbeatRequest + (*ListWorkersRequest)(nil), // 89: temporal.api.workflowservice.v1.ListWorkersRequest + (*UpdateTaskQueueConfigRequest)(nil), // 90: temporal.api.workflowservice.v1.UpdateTaskQueueConfigRequest + (*FetchWorkerConfigRequest)(nil), // 91: temporal.api.workflowservice.v1.FetchWorkerConfigRequest + (*UpdateWorkerConfigRequest)(nil), // 92: temporal.api.workflowservice.v1.UpdateWorkerConfigRequest + (*DescribeWorkerRequest)(nil), // 93: temporal.api.workflowservice.v1.DescribeWorkerRequest + (*PauseWorkflowExecutionRequest)(nil), // 94: temporal.api.workflowservice.v1.PauseWorkflowExecutionRequest + (*UnpauseWorkflowExecutionRequest)(nil), // 95: temporal.api.workflowservice.v1.UnpauseWorkflowExecutionRequest + (*StartActivityExecutionRequest)(nil), // 96: temporal.api.workflowservice.v1.StartActivityExecutionRequest + (*DescribeActivityExecutionRequest)(nil), // 97: temporal.api.workflowservice.v1.DescribeActivityExecutionRequest + (*PollActivityExecutionRequest)(nil), // 98: temporal.api.workflowservice.v1.PollActivityExecutionRequest + (*ListActivityExecutionsRequest)(nil), // 99: temporal.api.workflowservice.v1.ListActivityExecutionsRequest + (*CountActivityExecutionsRequest)(nil), // 100: temporal.api.workflowservice.v1.CountActivityExecutionsRequest + (*RequestCancelActivityExecutionRequest)(nil), // 101: temporal.api.workflowservice.v1.RequestCancelActivityExecutionRequest + (*TerminateActivityExecutionRequest)(nil), // 102: temporal.api.workflowservice.v1.TerminateActivityExecutionRequest + (*DeleteActivityExecutionRequest)(nil), // 103: temporal.api.workflowservice.v1.DeleteActivityExecutionRequest + (*RegisterNamespaceResponse)(nil), // 104: temporal.api.workflowservice.v1.RegisterNamespaceResponse + (*DescribeNamespaceResponse)(nil), // 105: temporal.api.workflowservice.v1.DescribeNamespaceResponse + (*ListNamespacesResponse)(nil), // 106: temporal.api.workflowservice.v1.ListNamespacesResponse + (*UpdateNamespaceResponse)(nil), // 107: temporal.api.workflowservice.v1.UpdateNamespaceResponse + (*DeprecateNamespaceResponse)(nil), // 108: temporal.api.workflowservice.v1.DeprecateNamespaceResponse + (*StartWorkflowExecutionResponse)(nil), // 109: temporal.api.workflowservice.v1.StartWorkflowExecutionResponse + (*ExecuteMultiOperationResponse)(nil), // 110: temporal.api.workflowservice.v1.ExecuteMultiOperationResponse + (*GetWorkflowExecutionHistoryResponse)(nil), // 111: temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryResponse + (*GetWorkflowExecutionHistoryReverseResponse)(nil), // 112: temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryReverseResponse + (*PollWorkflowTaskQueueResponse)(nil), // 113: temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse + (*RespondWorkflowTaskCompletedResponse)(nil), // 114: temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedResponse + (*RespondWorkflowTaskFailedResponse)(nil), // 115: temporal.api.workflowservice.v1.RespondWorkflowTaskFailedResponse + (*PollActivityTaskQueueResponse)(nil), // 116: temporal.api.workflowservice.v1.PollActivityTaskQueueResponse + (*RecordActivityTaskHeartbeatResponse)(nil), // 117: temporal.api.workflowservice.v1.RecordActivityTaskHeartbeatResponse + (*RecordActivityTaskHeartbeatByIdResponse)(nil), // 118: temporal.api.workflowservice.v1.RecordActivityTaskHeartbeatByIdResponse + (*RespondActivityTaskCompletedResponse)(nil), // 119: temporal.api.workflowservice.v1.RespondActivityTaskCompletedResponse + (*RespondActivityTaskCompletedByIdResponse)(nil), // 120: temporal.api.workflowservice.v1.RespondActivityTaskCompletedByIdResponse + (*RespondActivityTaskFailedResponse)(nil), // 121: temporal.api.workflowservice.v1.RespondActivityTaskFailedResponse + (*RespondActivityTaskFailedByIdResponse)(nil), // 122: temporal.api.workflowservice.v1.RespondActivityTaskFailedByIdResponse + (*RespondActivityTaskCanceledResponse)(nil), // 123: temporal.api.workflowservice.v1.RespondActivityTaskCanceledResponse + (*RespondActivityTaskCanceledByIdResponse)(nil), // 124: temporal.api.workflowservice.v1.RespondActivityTaskCanceledByIdResponse + (*RequestCancelWorkflowExecutionResponse)(nil), // 125: temporal.api.workflowservice.v1.RequestCancelWorkflowExecutionResponse + (*SignalWorkflowExecutionResponse)(nil), // 126: temporal.api.workflowservice.v1.SignalWorkflowExecutionResponse + (*SignalWithStartWorkflowExecutionResponse)(nil), // 127: temporal.api.workflowservice.v1.SignalWithStartWorkflowExecutionResponse + (*ResetWorkflowExecutionResponse)(nil), // 128: temporal.api.workflowservice.v1.ResetWorkflowExecutionResponse + (*TerminateWorkflowExecutionResponse)(nil), // 129: temporal.api.workflowservice.v1.TerminateWorkflowExecutionResponse + (*DeleteWorkflowExecutionResponse)(nil), // 130: temporal.api.workflowservice.v1.DeleteWorkflowExecutionResponse + (*ListOpenWorkflowExecutionsResponse)(nil), // 131: temporal.api.workflowservice.v1.ListOpenWorkflowExecutionsResponse + (*ListClosedWorkflowExecutionsResponse)(nil), // 132: temporal.api.workflowservice.v1.ListClosedWorkflowExecutionsResponse + (*ListWorkflowExecutionsResponse)(nil), // 133: temporal.api.workflowservice.v1.ListWorkflowExecutionsResponse + (*ListArchivedWorkflowExecutionsResponse)(nil), // 134: temporal.api.workflowservice.v1.ListArchivedWorkflowExecutionsResponse + (*ScanWorkflowExecutionsResponse)(nil), // 135: temporal.api.workflowservice.v1.ScanWorkflowExecutionsResponse + (*CountWorkflowExecutionsResponse)(nil), // 136: temporal.api.workflowservice.v1.CountWorkflowExecutionsResponse + (*GetSearchAttributesResponse)(nil), // 137: temporal.api.workflowservice.v1.GetSearchAttributesResponse + (*RespondQueryTaskCompletedResponse)(nil), // 138: temporal.api.workflowservice.v1.RespondQueryTaskCompletedResponse + (*ResetStickyTaskQueueResponse)(nil), // 139: temporal.api.workflowservice.v1.ResetStickyTaskQueueResponse + (*ShutdownWorkerResponse)(nil), // 140: temporal.api.workflowservice.v1.ShutdownWorkerResponse + (*QueryWorkflowResponse)(nil), // 141: temporal.api.workflowservice.v1.QueryWorkflowResponse + (*DescribeWorkflowExecutionResponse)(nil), // 142: temporal.api.workflowservice.v1.DescribeWorkflowExecutionResponse + (*DescribeTaskQueueResponse)(nil), // 143: temporal.api.workflowservice.v1.DescribeTaskQueueResponse + (*GetClusterInfoResponse)(nil), // 144: temporal.api.workflowservice.v1.GetClusterInfoResponse + (*GetSystemInfoResponse)(nil), // 145: temporal.api.workflowservice.v1.GetSystemInfoResponse + (*ListTaskQueuePartitionsResponse)(nil), // 146: temporal.api.workflowservice.v1.ListTaskQueuePartitionsResponse + (*CreateScheduleResponse)(nil), // 147: temporal.api.workflowservice.v1.CreateScheduleResponse + (*DescribeScheduleResponse)(nil), // 148: temporal.api.workflowservice.v1.DescribeScheduleResponse + (*UpdateScheduleResponse)(nil), // 149: temporal.api.workflowservice.v1.UpdateScheduleResponse + (*PatchScheduleResponse)(nil), // 150: temporal.api.workflowservice.v1.PatchScheduleResponse + (*ListScheduleMatchingTimesResponse)(nil), // 151: temporal.api.workflowservice.v1.ListScheduleMatchingTimesResponse + (*DeleteScheduleResponse)(nil), // 152: temporal.api.workflowservice.v1.DeleteScheduleResponse + (*ListSchedulesResponse)(nil), // 153: temporal.api.workflowservice.v1.ListSchedulesResponse + (*UpdateWorkerBuildIdCompatibilityResponse)(nil), // 154: temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityResponse + (*GetWorkerBuildIdCompatibilityResponse)(nil), // 155: temporal.api.workflowservice.v1.GetWorkerBuildIdCompatibilityResponse + (*UpdateWorkerVersioningRulesResponse)(nil), // 156: temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesResponse + (*GetWorkerVersioningRulesResponse)(nil), // 157: temporal.api.workflowservice.v1.GetWorkerVersioningRulesResponse + (*GetWorkerTaskReachabilityResponse)(nil), // 158: temporal.api.workflowservice.v1.GetWorkerTaskReachabilityResponse + (*DescribeDeploymentResponse)(nil), // 159: temporal.api.workflowservice.v1.DescribeDeploymentResponse + (*DescribeWorkerDeploymentVersionResponse)(nil), // 160: temporal.api.workflowservice.v1.DescribeWorkerDeploymentVersionResponse + (*ListDeploymentsResponse)(nil), // 161: temporal.api.workflowservice.v1.ListDeploymentsResponse + (*GetDeploymentReachabilityResponse)(nil), // 162: temporal.api.workflowservice.v1.GetDeploymentReachabilityResponse + (*GetCurrentDeploymentResponse)(nil), // 163: temporal.api.workflowservice.v1.GetCurrentDeploymentResponse + (*SetCurrentDeploymentResponse)(nil), // 164: temporal.api.workflowservice.v1.SetCurrentDeploymentResponse + (*SetWorkerDeploymentCurrentVersionResponse)(nil), // 165: temporal.api.workflowservice.v1.SetWorkerDeploymentCurrentVersionResponse + (*DescribeWorkerDeploymentResponse)(nil), // 166: temporal.api.workflowservice.v1.DescribeWorkerDeploymentResponse + (*DeleteWorkerDeploymentResponse)(nil), // 167: temporal.api.workflowservice.v1.DeleteWorkerDeploymentResponse + (*DeleteWorkerDeploymentVersionResponse)(nil), // 168: temporal.api.workflowservice.v1.DeleteWorkerDeploymentVersionResponse + (*SetWorkerDeploymentRampingVersionResponse)(nil), // 169: temporal.api.workflowservice.v1.SetWorkerDeploymentRampingVersionResponse + (*ListWorkerDeploymentsResponse)(nil), // 170: temporal.api.workflowservice.v1.ListWorkerDeploymentsResponse + (*UpdateWorkerDeploymentVersionMetadataResponse)(nil), // 171: temporal.api.workflowservice.v1.UpdateWorkerDeploymentVersionMetadataResponse + (*SetWorkerDeploymentManagerResponse)(nil), // 172: temporal.api.workflowservice.v1.SetWorkerDeploymentManagerResponse + (*UpdateWorkflowExecutionResponse)(nil), // 173: temporal.api.workflowservice.v1.UpdateWorkflowExecutionResponse + (*PollWorkflowExecutionUpdateResponse)(nil), // 174: temporal.api.workflowservice.v1.PollWorkflowExecutionUpdateResponse + (*StartBatchOperationResponse)(nil), // 175: temporal.api.workflowservice.v1.StartBatchOperationResponse + (*StopBatchOperationResponse)(nil), // 176: temporal.api.workflowservice.v1.StopBatchOperationResponse + (*DescribeBatchOperationResponse)(nil), // 177: temporal.api.workflowservice.v1.DescribeBatchOperationResponse + (*ListBatchOperationsResponse)(nil), // 178: temporal.api.workflowservice.v1.ListBatchOperationsResponse + (*PollNexusTaskQueueResponse)(nil), // 179: temporal.api.workflowservice.v1.PollNexusTaskQueueResponse + (*RespondNexusTaskCompletedResponse)(nil), // 180: temporal.api.workflowservice.v1.RespondNexusTaskCompletedResponse + (*RespondNexusTaskFailedResponse)(nil), // 181: temporal.api.workflowservice.v1.RespondNexusTaskFailedResponse + (*UpdateActivityOptionsResponse)(nil), // 182: temporal.api.workflowservice.v1.UpdateActivityOptionsResponse + (*UpdateWorkflowExecutionOptionsResponse)(nil), // 183: temporal.api.workflowservice.v1.UpdateWorkflowExecutionOptionsResponse + (*PauseActivityResponse)(nil), // 184: temporal.api.workflowservice.v1.PauseActivityResponse + (*UnpauseActivityResponse)(nil), // 185: temporal.api.workflowservice.v1.UnpauseActivityResponse + (*ResetActivityResponse)(nil), // 186: temporal.api.workflowservice.v1.ResetActivityResponse + (*CreateWorkflowRuleResponse)(nil), // 187: temporal.api.workflowservice.v1.CreateWorkflowRuleResponse + (*DescribeWorkflowRuleResponse)(nil), // 188: temporal.api.workflowservice.v1.DescribeWorkflowRuleResponse + (*DeleteWorkflowRuleResponse)(nil), // 189: temporal.api.workflowservice.v1.DeleteWorkflowRuleResponse + (*ListWorkflowRulesResponse)(nil), // 190: temporal.api.workflowservice.v1.ListWorkflowRulesResponse + (*TriggerWorkflowRuleResponse)(nil), // 191: temporal.api.workflowservice.v1.TriggerWorkflowRuleResponse + (*RecordWorkerHeartbeatResponse)(nil), // 192: temporal.api.workflowservice.v1.RecordWorkerHeartbeatResponse + (*ListWorkersResponse)(nil), // 193: temporal.api.workflowservice.v1.ListWorkersResponse + (*UpdateTaskQueueConfigResponse)(nil), // 194: temporal.api.workflowservice.v1.UpdateTaskQueueConfigResponse + (*FetchWorkerConfigResponse)(nil), // 195: temporal.api.workflowservice.v1.FetchWorkerConfigResponse + (*UpdateWorkerConfigResponse)(nil), // 196: temporal.api.workflowservice.v1.UpdateWorkerConfigResponse + (*DescribeWorkerResponse)(nil), // 197: temporal.api.workflowservice.v1.DescribeWorkerResponse + (*PauseWorkflowExecutionResponse)(nil), // 198: temporal.api.workflowservice.v1.PauseWorkflowExecutionResponse + (*UnpauseWorkflowExecutionResponse)(nil), // 199: temporal.api.workflowservice.v1.UnpauseWorkflowExecutionResponse + (*StartActivityExecutionResponse)(nil), // 200: temporal.api.workflowservice.v1.StartActivityExecutionResponse + (*DescribeActivityExecutionResponse)(nil), // 201: temporal.api.workflowservice.v1.DescribeActivityExecutionResponse + (*PollActivityExecutionResponse)(nil), // 202: temporal.api.workflowservice.v1.PollActivityExecutionResponse + (*ListActivityExecutionsResponse)(nil), // 203: temporal.api.workflowservice.v1.ListActivityExecutionsResponse + (*CountActivityExecutionsResponse)(nil), // 204: temporal.api.workflowservice.v1.CountActivityExecutionsResponse + (*RequestCancelActivityExecutionResponse)(nil), // 205: temporal.api.workflowservice.v1.RequestCancelActivityExecutionResponse + (*TerminateActivityExecutionResponse)(nil), // 206: temporal.api.workflowservice.v1.TerminateActivityExecutionResponse + (*DeleteActivityExecutionResponse)(nil), // 207: temporal.api.workflowservice.v1.DeleteActivityExecutionResponse +} +var file_temporal_api_workflowservice_v1_service_proto_depIdxs = []int32{ + 0, // 0: temporal.api.workflowservice.v1.WorkflowService.RegisterNamespace:input_type -> temporal.api.workflowservice.v1.RegisterNamespaceRequest + 1, // 1: temporal.api.workflowservice.v1.WorkflowService.DescribeNamespace:input_type -> temporal.api.workflowservice.v1.DescribeNamespaceRequest + 2, // 2: temporal.api.workflowservice.v1.WorkflowService.ListNamespaces:input_type -> temporal.api.workflowservice.v1.ListNamespacesRequest + 3, // 3: temporal.api.workflowservice.v1.WorkflowService.UpdateNamespace:input_type -> temporal.api.workflowservice.v1.UpdateNamespaceRequest + 4, // 4: temporal.api.workflowservice.v1.WorkflowService.DeprecateNamespace:input_type -> temporal.api.workflowservice.v1.DeprecateNamespaceRequest + 5, // 5: temporal.api.workflowservice.v1.WorkflowService.StartWorkflowExecution:input_type -> temporal.api.workflowservice.v1.StartWorkflowExecutionRequest + 6, // 6: temporal.api.workflowservice.v1.WorkflowService.ExecuteMultiOperation:input_type -> temporal.api.workflowservice.v1.ExecuteMultiOperationRequest + 7, // 7: temporal.api.workflowservice.v1.WorkflowService.GetWorkflowExecutionHistory:input_type -> temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryRequest + 8, // 8: temporal.api.workflowservice.v1.WorkflowService.GetWorkflowExecutionHistoryReverse:input_type -> temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryReverseRequest + 9, // 9: temporal.api.workflowservice.v1.WorkflowService.PollWorkflowTaskQueue:input_type -> temporal.api.workflowservice.v1.PollWorkflowTaskQueueRequest + 10, // 10: temporal.api.workflowservice.v1.WorkflowService.RespondWorkflowTaskCompleted:input_type -> temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedRequest + 11, // 11: temporal.api.workflowservice.v1.WorkflowService.RespondWorkflowTaskFailed:input_type -> temporal.api.workflowservice.v1.RespondWorkflowTaskFailedRequest + 12, // 12: temporal.api.workflowservice.v1.WorkflowService.PollActivityTaskQueue:input_type -> temporal.api.workflowservice.v1.PollActivityTaskQueueRequest + 13, // 13: temporal.api.workflowservice.v1.WorkflowService.RecordActivityTaskHeartbeat:input_type -> temporal.api.workflowservice.v1.RecordActivityTaskHeartbeatRequest + 14, // 14: temporal.api.workflowservice.v1.WorkflowService.RecordActivityTaskHeartbeatById:input_type -> temporal.api.workflowservice.v1.RecordActivityTaskHeartbeatByIdRequest + 15, // 15: temporal.api.workflowservice.v1.WorkflowService.RespondActivityTaskCompleted:input_type -> temporal.api.workflowservice.v1.RespondActivityTaskCompletedRequest + 16, // 16: temporal.api.workflowservice.v1.WorkflowService.RespondActivityTaskCompletedById:input_type -> temporal.api.workflowservice.v1.RespondActivityTaskCompletedByIdRequest + 17, // 17: temporal.api.workflowservice.v1.WorkflowService.RespondActivityTaskFailed:input_type -> temporal.api.workflowservice.v1.RespondActivityTaskFailedRequest + 18, // 18: temporal.api.workflowservice.v1.WorkflowService.RespondActivityTaskFailedById:input_type -> temporal.api.workflowservice.v1.RespondActivityTaskFailedByIdRequest + 19, // 19: temporal.api.workflowservice.v1.WorkflowService.RespondActivityTaskCanceled:input_type -> temporal.api.workflowservice.v1.RespondActivityTaskCanceledRequest + 20, // 20: temporal.api.workflowservice.v1.WorkflowService.RespondActivityTaskCanceledById:input_type -> temporal.api.workflowservice.v1.RespondActivityTaskCanceledByIdRequest + 21, // 21: temporal.api.workflowservice.v1.WorkflowService.RequestCancelWorkflowExecution:input_type -> temporal.api.workflowservice.v1.RequestCancelWorkflowExecutionRequest + 22, // 22: temporal.api.workflowservice.v1.WorkflowService.SignalWorkflowExecution:input_type -> temporal.api.workflowservice.v1.SignalWorkflowExecutionRequest + 23, // 23: temporal.api.workflowservice.v1.WorkflowService.SignalWithStartWorkflowExecution:input_type -> temporal.api.workflowservice.v1.SignalWithStartWorkflowExecutionRequest + 24, // 24: temporal.api.workflowservice.v1.WorkflowService.ResetWorkflowExecution:input_type -> temporal.api.workflowservice.v1.ResetWorkflowExecutionRequest + 25, // 25: temporal.api.workflowservice.v1.WorkflowService.TerminateWorkflowExecution:input_type -> temporal.api.workflowservice.v1.TerminateWorkflowExecutionRequest + 26, // 26: temporal.api.workflowservice.v1.WorkflowService.DeleteWorkflowExecution:input_type -> temporal.api.workflowservice.v1.DeleteWorkflowExecutionRequest + 27, // 27: temporal.api.workflowservice.v1.WorkflowService.ListOpenWorkflowExecutions:input_type -> temporal.api.workflowservice.v1.ListOpenWorkflowExecutionsRequest + 28, // 28: temporal.api.workflowservice.v1.WorkflowService.ListClosedWorkflowExecutions:input_type -> temporal.api.workflowservice.v1.ListClosedWorkflowExecutionsRequest + 29, // 29: temporal.api.workflowservice.v1.WorkflowService.ListWorkflowExecutions:input_type -> temporal.api.workflowservice.v1.ListWorkflowExecutionsRequest + 30, // 30: temporal.api.workflowservice.v1.WorkflowService.ListArchivedWorkflowExecutions:input_type -> temporal.api.workflowservice.v1.ListArchivedWorkflowExecutionsRequest + 31, // 31: temporal.api.workflowservice.v1.WorkflowService.ScanWorkflowExecutions:input_type -> temporal.api.workflowservice.v1.ScanWorkflowExecutionsRequest + 32, // 32: temporal.api.workflowservice.v1.WorkflowService.CountWorkflowExecutions:input_type -> temporal.api.workflowservice.v1.CountWorkflowExecutionsRequest + 33, // 33: temporal.api.workflowservice.v1.WorkflowService.GetSearchAttributes:input_type -> temporal.api.workflowservice.v1.GetSearchAttributesRequest + 34, // 34: temporal.api.workflowservice.v1.WorkflowService.RespondQueryTaskCompleted:input_type -> temporal.api.workflowservice.v1.RespondQueryTaskCompletedRequest + 35, // 35: temporal.api.workflowservice.v1.WorkflowService.ResetStickyTaskQueue:input_type -> temporal.api.workflowservice.v1.ResetStickyTaskQueueRequest + 36, // 36: temporal.api.workflowservice.v1.WorkflowService.ShutdownWorker:input_type -> temporal.api.workflowservice.v1.ShutdownWorkerRequest + 37, // 37: temporal.api.workflowservice.v1.WorkflowService.QueryWorkflow:input_type -> temporal.api.workflowservice.v1.QueryWorkflowRequest + 38, // 38: temporal.api.workflowservice.v1.WorkflowService.DescribeWorkflowExecution:input_type -> temporal.api.workflowservice.v1.DescribeWorkflowExecutionRequest + 39, // 39: temporal.api.workflowservice.v1.WorkflowService.DescribeTaskQueue:input_type -> temporal.api.workflowservice.v1.DescribeTaskQueueRequest + 40, // 40: temporal.api.workflowservice.v1.WorkflowService.GetClusterInfo:input_type -> temporal.api.workflowservice.v1.GetClusterInfoRequest + 41, // 41: temporal.api.workflowservice.v1.WorkflowService.GetSystemInfo:input_type -> temporal.api.workflowservice.v1.GetSystemInfoRequest + 42, // 42: temporal.api.workflowservice.v1.WorkflowService.ListTaskQueuePartitions:input_type -> temporal.api.workflowservice.v1.ListTaskQueuePartitionsRequest + 43, // 43: temporal.api.workflowservice.v1.WorkflowService.CreateSchedule:input_type -> temporal.api.workflowservice.v1.CreateScheduleRequest + 44, // 44: temporal.api.workflowservice.v1.WorkflowService.DescribeSchedule:input_type -> temporal.api.workflowservice.v1.DescribeScheduleRequest + 45, // 45: temporal.api.workflowservice.v1.WorkflowService.UpdateSchedule:input_type -> temporal.api.workflowservice.v1.UpdateScheduleRequest + 46, // 46: temporal.api.workflowservice.v1.WorkflowService.PatchSchedule:input_type -> temporal.api.workflowservice.v1.PatchScheduleRequest + 47, // 47: temporal.api.workflowservice.v1.WorkflowService.ListScheduleMatchingTimes:input_type -> temporal.api.workflowservice.v1.ListScheduleMatchingTimesRequest + 48, // 48: temporal.api.workflowservice.v1.WorkflowService.DeleteSchedule:input_type -> temporal.api.workflowservice.v1.DeleteScheduleRequest + 49, // 49: temporal.api.workflowservice.v1.WorkflowService.ListSchedules:input_type -> temporal.api.workflowservice.v1.ListSchedulesRequest + 50, // 50: temporal.api.workflowservice.v1.WorkflowService.UpdateWorkerBuildIdCompatibility:input_type -> temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityRequest + 51, // 51: temporal.api.workflowservice.v1.WorkflowService.GetWorkerBuildIdCompatibility:input_type -> temporal.api.workflowservice.v1.GetWorkerBuildIdCompatibilityRequest + 52, // 52: temporal.api.workflowservice.v1.WorkflowService.UpdateWorkerVersioningRules:input_type -> temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest + 53, // 53: temporal.api.workflowservice.v1.WorkflowService.GetWorkerVersioningRules:input_type -> temporal.api.workflowservice.v1.GetWorkerVersioningRulesRequest + 54, // 54: temporal.api.workflowservice.v1.WorkflowService.GetWorkerTaskReachability:input_type -> temporal.api.workflowservice.v1.GetWorkerTaskReachabilityRequest + 55, // 55: temporal.api.workflowservice.v1.WorkflowService.DescribeDeployment:input_type -> temporal.api.workflowservice.v1.DescribeDeploymentRequest + 56, // 56: temporal.api.workflowservice.v1.WorkflowService.DescribeWorkerDeploymentVersion:input_type -> temporal.api.workflowservice.v1.DescribeWorkerDeploymentVersionRequest + 57, // 57: temporal.api.workflowservice.v1.WorkflowService.ListDeployments:input_type -> temporal.api.workflowservice.v1.ListDeploymentsRequest + 58, // 58: temporal.api.workflowservice.v1.WorkflowService.GetDeploymentReachability:input_type -> temporal.api.workflowservice.v1.GetDeploymentReachabilityRequest + 59, // 59: temporal.api.workflowservice.v1.WorkflowService.GetCurrentDeployment:input_type -> temporal.api.workflowservice.v1.GetCurrentDeploymentRequest + 60, // 60: temporal.api.workflowservice.v1.WorkflowService.SetCurrentDeployment:input_type -> temporal.api.workflowservice.v1.SetCurrentDeploymentRequest + 61, // 61: temporal.api.workflowservice.v1.WorkflowService.SetWorkerDeploymentCurrentVersion:input_type -> temporal.api.workflowservice.v1.SetWorkerDeploymentCurrentVersionRequest + 62, // 62: temporal.api.workflowservice.v1.WorkflowService.DescribeWorkerDeployment:input_type -> temporal.api.workflowservice.v1.DescribeWorkerDeploymentRequest + 63, // 63: temporal.api.workflowservice.v1.WorkflowService.DeleteWorkerDeployment:input_type -> temporal.api.workflowservice.v1.DeleteWorkerDeploymentRequest + 64, // 64: temporal.api.workflowservice.v1.WorkflowService.DeleteWorkerDeploymentVersion:input_type -> temporal.api.workflowservice.v1.DeleteWorkerDeploymentVersionRequest + 65, // 65: temporal.api.workflowservice.v1.WorkflowService.SetWorkerDeploymentRampingVersion:input_type -> temporal.api.workflowservice.v1.SetWorkerDeploymentRampingVersionRequest + 66, // 66: temporal.api.workflowservice.v1.WorkflowService.ListWorkerDeployments:input_type -> temporal.api.workflowservice.v1.ListWorkerDeploymentsRequest + 67, // 67: temporal.api.workflowservice.v1.WorkflowService.UpdateWorkerDeploymentVersionMetadata:input_type -> temporal.api.workflowservice.v1.UpdateWorkerDeploymentVersionMetadataRequest + 68, // 68: temporal.api.workflowservice.v1.WorkflowService.SetWorkerDeploymentManager:input_type -> temporal.api.workflowservice.v1.SetWorkerDeploymentManagerRequest + 69, // 69: temporal.api.workflowservice.v1.WorkflowService.UpdateWorkflowExecution:input_type -> temporal.api.workflowservice.v1.UpdateWorkflowExecutionRequest + 70, // 70: temporal.api.workflowservice.v1.WorkflowService.PollWorkflowExecutionUpdate:input_type -> temporal.api.workflowservice.v1.PollWorkflowExecutionUpdateRequest + 71, // 71: temporal.api.workflowservice.v1.WorkflowService.StartBatchOperation:input_type -> temporal.api.workflowservice.v1.StartBatchOperationRequest + 72, // 72: temporal.api.workflowservice.v1.WorkflowService.StopBatchOperation:input_type -> temporal.api.workflowservice.v1.StopBatchOperationRequest + 73, // 73: temporal.api.workflowservice.v1.WorkflowService.DescribeBatchOperation:input_type -> temporal.api.workflowservice.v1.DescribeBatchOperationRequest + 74, // 74: temporal.api.workflowservice.v1.WorkflowService.ListBatchOperations:input_type -> temporal.api.workflowservice.v1.ListBatchOperationsRequest + 75, // 75: temporal.api.workflowservice.v1.WorkflowService.PollNexusTaskQueue:input_type -> temporal.api.workflowservice.v1.PollNexusTaskQueueRequest + 76, // 76: temporal.api.workflowservice.v1.WorkflowService.RespondNexusTaskCompleted:input_type -> temporal.api.workflowservice.v1.RespondNexusTaskCompletedRequest + 77, // 77: temporal.api.workflowservice.v1.WorkflowService.RespondNexusTaskFailed:input_type -> temporal.api.workflowservice.v1.RespondNexusTaskFailedRequest + 78, // 78: temporal.api.workflowservice.v1.WorkflowService.UpdateActivityOptions:input_type -> temporal.api.workflowservice.v1.UpdateActivityOptionsRequest + 79, // 79: temporal.api.workflowservice.v1.WorkflowService.UpdateWorkflowExecutionOptions:input_type -> temporal.api.workflowservice.v1.UpdateWorkflowExecutionOptionsRequest + 80, // 80: temporal.api.workflowservice.v1.WorkflowService.PauseActivity:input_type -> temporal.api.workflowservice.v1.PauseActivityRequest + 81, // 81: temporal.api.workflowservice.v1.WorkflowService.UnpauseActivity:input_type -> temporal.api.workflowservice.v1.UnpauseActivityRequest + 82, // 82: temporal.api.workflowservice.v1.WorkflowService.ResetActivity:input_type -> temporal.api.workflowservice.v1.ResetActivityRequest + 83, // 83: temporal.api.workflowservice.v1.WorkflowService.CreateWorkflowRule:input_type -> temporal.api.workflowservice.v1.CreateWorkflowRuleRequest + 84, // 84: temporal.api.workflowservice.v1.WorkflowService.DescribeWorkflowRule:input_type -> temporal.api.workflowservice.v1.DescribeWorkflowRuleRequest + 85, // 85: temporal.api.workflowservice.v1.WorkflowService.DeleteWorkflowRule:input_type -> temporal.api.workflowservice.v1.DeleteWorkflowRuleRequest + 86, // 86: temporal.api.workflowservice.v1.WorkflowService.ListWorkflowRules:input_type -> temporal.api.workflowservice.v1.ListWorkflowRulesRequest + 87, // 87: temporal.api.workflowservice.v1.WorkflowService.TriggerWorkflowRule:input_type -> temporal.api.workflowservice.v1.TriggerWorkflowRuleRequest + 88, // 88: temporal.api.workflowservice.v1.WorkflowService.RecordWorkerHeartbeat:input_type -> temporal.api.workflowservice.v1.RecordWorkerHeartbeatRequest + 89, // 89: temporal.api.workflowservice.v1.WorkflowService.ListWorkers:input_type -> temporal.api.workflowservice.v1.ListWorkersRequest + 90, // 90: temporal.api.workflowservice.v1.WorkflowService.UpdateTaskQueueConfig:input_type -> temporal.api.workflowservice.v1.UpdateTaskQueueConfigRequest + 91, // 91: temporal.api.workflowservice.v1.WorkflowService.FetchWorkerConfig:input_type -> temporal.api.workflowservice.v1.FetchWorkerConfigRequest + 92, // 92: temporal.api.workflowservice.v1.WorkflowService.UpdateWorkerConfig:input_type -> temporal.api.workflowservice.v1.UpdateWorkerConfigRequest + 93, // 93: temporal.api.workflowservice.v1.WorkflowService.DescribeWorker:input_type -> temporal.api.workflowservice.v1.DescribeWorkerRequest + 94, // 94: temporal.api.workflowservice.v1.WorkflowService.PauseWorkflowExecution:input_type -> temporal.api.workflowservice.v1.PauseWorkflowExecutionRequest + 95, // 95: temporal.api.workflowservice.v1.WorkflowService.UnpauseWorkflowExecution:input_type -> temporal.api.workflowservice.v1.UnpauseWorkflowExecutionRequest + 96, // 96: temporal.api.workflowservice.v1.WorkflowService.StartActivityExecution:input_type -> temporal.api.workflowservice.v1.StartActivityExecutionRequest + 97, // 97: temporal.api.workflowservice.v1.WorkflowService.DescribeActivityExecution:input_type -> temporal.api.workflowservice.v1.DescribeActivityExecutionRequest + 98, // 98: temporal.api.workflowservice.v1.WorkflowService.PollActivityExecution:input_type -> temporal.api.workflowservice.v1.PollActivityExecutionRequest + 99, // 99: temporal.api.workflowservice.v1.WorkflowService.ListActivityExecutions:input_type -> temporal.api.workflowservice.v1.ListActivityExecutionsRequest + 100, // 100: temporal.api.workflowservice.v1.WorkflowService.CountActivityExecutions:input_type -> temporal.api.workflowservice.v1.CountActivityExecutionsRequest + 101, // 101: temporal.api.workflowservice.v1.WorkflowService.RequestCancelActivityExecution:input_type -> temporal.api.workflowservice.v1.RequestCancelActivityExecutionRequest + 102, // 102: temporal.api.workflowservice.v1.WorkflowService.TerminateActivityExecution:input_type -> temporal.api.workflowservice.v1.TerminateActivityExecutionRequest + 103, // 103: temporal.api.workflowservice.v1.WorkflowService.DeleteActivityExecution:input_type -> temporal.api.workflowservice.v1.DeleteActivityExecutionRequest + 104, // 104: temporal.api.workflowservice.v1.WorkflowService.RegisterNamespace:output_type -> temporal.api.workflowservice.v1.RegisterNamespaceResponse + 105, // 105: temporal.api.workflowservice.v1.WorkflowService.DescribeNamespace:output_type -> temporal.api.workflowservice.v1.DescribeNamespaceResponse + 106, // 106: temporal.api.workflowservice.v1.WorkflowService.ListNamespaces:output_type -> temporal.api.workflowservice.v1.ListNamespacesResponse + 107, // 107: temporal.api.workflowservice.v1.WorkflowService.UpdateNamespace:output_type -> temporal.api.workflowservice.v1.UpdateNamespaceResponse + 108, // 108: temporal.api.workflowservice.v1.WorkflowService.DeprecateNamespace:output_type -> temporal.api.workflowservice.v1.DeprecateNamespaceResponse + 109, // 109: temporal.api.workflowservice.v1.WorkflowService.StartWorkflowExecution:output_type -> temporal.api.workflowservice.v1.StartWorkflowExecutionResponse + 110, // 110: temporal.api.workflowservice.v1.WorkflowService.ExecuteMultiOperation:output_type -> temporal.api.workflowservice.v1.ExecuteMultiOperationResponse + 111, // 111: temporal.api.workflowservice.v1.WorkflowService.GetWorkflowExecutionHistory:output_type -> temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryResponse + 112, // 112: temporal.api.workflowservice.v1.WorkflowService.GetWorkflowExecutionHistoryReverse:output_type -> temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryReverseResponse + 113, // 113: temporal.api.workflowservice.v1.WorkflowService.PollWorkflowTaskQueue:output_type -> temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse + 114, // 114: temporal.api.workflowservice.v1.WorkflowService.RespondWorkflowTaskCompleted:output_type -> temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedResponse + 115, // 115: temporal.api.workflowservice.v1.WorkflowService.RespondWorkflowTaskFailed:output_type -> temporal.api.workflowservice.v1.RespondWorkflowTaskFailedResponse + 116, // 116: temporal.api.workflowservice.v1.WorkflowService.PollActivityTaskQueue:output_type -> temporal.api.workflowservice.v1.PollActivityTaskQueueResponse + 117, // 117: temporal.api.workflowservice.v1.WorkflowService.RecordActivityTaskHeartbeat:output_type -> temporal.api.workflowservice.v1.RecordActivityTaskHeartbeatResponse + 118, // 118: temporal.api.workflowservice.v1.WorkflowService.RecordActivityTaskHeartbeatById:output_type -> temporal.api.workflowservice.v1.RecordActivityTaskHeartbeatByIdResponse + 119, // 119: temporal.api.workflowservice.v1.WorkflowService.RespondActivityTaskCompleted:output_type -> temporal.api.workflowservice.v1.RespondActivityTaskCompletedResponse + 120, // 120: temporal.api.workflowservice.v1.WorkflowService.RespondActivityTaskCompletedById:output_type -> temporal.api.workflowservice.v1.RespondActivityTaskCompletedByIdResponse + 121, // 121: temporal.api.workflowservice.v1.WorkflowService.RespondActivityTaskFailed:output_type -> temporal.api.workflowservice.v1.RespondActivityTaskFailedResponse + 122, // 122: temporal.api.workflowservice.v1.WorkflowService.RespondActivityTaskFailedById:output_type -> temporal.api.workflowservice.v1.RespondActivityTaskFailedByIdResponse + 123, // 123: temporal.api.workflowservice.v1.WorkflowService.RespondActivityTaskCanceled:output_type -> temporal.api.workflowservice.v1.RespondActivityTaskCanceledResponse + 124, // 124: temporal.api.workflowservice.v1.WorkflowService.RespondActivityTaskCanceledById:output_type -> temporal.api.workflowservice.v1.RespondActivityTaskCanceledByIdResponse + 125, // 125: temporal.api.workflowservice.v1.WorkflowService.RequestCancelWorkflowExecution:output_type -> temporal.api.workflowservice.v1.RequestCancelWorkflowExecutionResponse + 126, // 126: temporal.api.workflowservice.v1.WorkflowService.SignalWorkflowExecution:output_type -> temporal.api.workflowservice.v1.SignalWorkflowExecutionResponse + 127, // 127: temporal.api.workflowservice.v1.WorkflowService.SignalWithStartWorkflowExecution:output_type -> temporal.api.workflowservice.v1.SignalWithStartWorkflowExecutionResponse + 128, // 128: temporal.api.workflowservice.v1.WorkflowService.ResetWorkflowExecution:output_type -> temporal.api.workflowservice.v1.ResetWorkflowExecutionResponse + 129, // 129: temporal.api.workflowservice.v1.WorkflowService.TerminateWorkflowExecution:output_type -> temporal.api.workflowservice.v1.TerminateWorkflowExecutionResponse + 130, // 130: temporal.api.workflowservice.v1.WorkflowService.DeleteWorkflowExecution:output_type -> temporal.api.workflowservice.v1.DeleteWorkflowExecutionResponse + 131, // 131: temporal.api.workflowservice.v1.WorkflowService.ListOpenWorkflowExecutions:output_type -> temporal.api.workflowservice.v1.ListOpenWorkflowExecutionsResponse + 132, // 132: temporal.api.workflowservice.v1.WorkflowService.ListClosedWorkflowExecutions:output_type -> temporal.api.workflowservice.v1.ListClosedWorkflowExecutionsResponse + 133, // 133: temporal.api.workflowservice.v1.WorkflowService.ListWorkflowExecutions:output_type -> temporal.api.workflowservice.v1.ListWorkflowExecutionsResponse + 134, // 134: temporal.api.workflowservice.v1.WorkflowService.ListArchivedWorkflowExecutions:output_type -> temporal.api.workflowservice.v1.ListArchivedWorkflowExecutionsResponse + 135, // 135: temporal.api.workflowservice.v1.WorkflowService.ScanWorkflowExecutions:output_type -> temporal.api.workflowservice.v1.ScanWorkflowExecutionsResponse + 136, // 136: temporal.api.workflowservice.v1.WorkflowService.CountWorkflowExecutions:output_type -> temporal.api.workflowservice.v1.CountWorkflowExecutionsResponse + 137, // 137: temporal.api.workflowservice.v1.WorkflowService.GetSearchAttributes:output_type -> temporal.api.workflowservice.v1.GetSearchAttributesResponse + 138, // 138: temporal.api.workflowservice.v1.WorkflowService.RespondQueryTaskCompleted:output_type -> temporal.api.workflowservice.v1.RespondQueryTaskCompletedResponse + 139, // 139: temporal.api.workflowservice.v1.WorkflowService.ResetStickyTaskQueue:output_type -> temporal.api.workflowservice.v1.ResetStickyTaskQueueResponse + 140, // 140: temporal.api.workflowservice.v1.WorkflowService.ShutdownWorker:output_type -> temporal.api.workflowservice.v1.ShutdownWorkerResponse + 141, // 141: temporal.api.workflowservice.v1.WorkflowService.QueryWorkflow:output_type -> temporal.api.workflowservice.v1.QueryWorkflowResponse + 142, // 142: temporal.api.workflowservice.v1.WorkflowService.DescribeWorkflowExecution:output_type -> temporal.api.workflowservice.v1.DescribeWorkflowExecutionResponse + 143, // 143: temporal.api.workflowservice.v1.WorkflowService.DescribeTaskQueue:output_type -> temporal.api.workflowservice.v1.DescribeTaskQueueResponse + 144, // 144: temporal.api.workflowservice.v1.WorkflowService.GetClusterInfo:output_type -> temporal.api.workflowservice.v1.GetClusterInfoResponse + 145, // 145: temporal.api.workflowservice.v1.WorkflowService.GetSystemInfo:output_type -> temporal.api.workflowservice.v1.GetSystemInfoResponse + 146, // 146: temporal.api.workflowservice.v1.WorkflowService.ListTaskQueuePartitions:output_type -> temporal.api.workflowservice.v1.ListTaskQueuePartitionsResponse + 147, // 147: temporal.api.workflowservice.v1.WorkflowService.CreateSchedule:output_type -> temporal.api.workflowservice.v1.CreateScheduleResponse + 148, // 148: temporal.api.workflowservice.v1.WorkflowService.DescribeSchedule:output_type -> temporal.api.workflowservice.v1.DescribeScheduleResponse + 149, // 149: temporal.api.workflowservice.v1.WorkflowService.UpdateSchedule:output_type -> temporal.api.workflowservice.v1.UpdateScheduleResponse + 150, // 150: temporal.api.workflowservice.v1.WorkflowService.PatchSchedule:output_type -> temporal.api.workflowservice.v1.PatchScheduleResponse + 151, // 151: temporal.api.workflowservice.v1.WorkflowService.ListScheduleMatchingTimes:output_type -> temporal.api.workflowservice.v1.ListScheduleMatchingTimesResponse + 152, // 152: temporal.api.workflowservice.v1.WorkflowService.DeleteSchedule:output_type -> temporal.api.workflowservice.v1.DeleteScheduleResponse + 153, // 153: temporal.api.workflowservice.v1.WorkflowService.ListSchedules:output_type -> temporal.api.workflowservice.v1.ListSchedulesResponse + 154, // 154: temporal.api.workflowservice.v1.WorkflowService.UpdateWorkerBuildIdCompatibility:output_type -> temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityResponse + 155, // 155: temporal.api.workflowservice.v1.WorkflowService.GetWorkerBuildIdCompatibility:output_type -> temporal.api.workflowservice.v1.GetWorkerBuildIdCompatibilityResponse + 156, // 156: temporal.api.workflowservice.v1.WorkflowService.UpdateWorkerVersioningRules:output_type -> temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesResponse + 157, // 157: temporal.api.workflowservice.v1.WorkflowService.GetWorkerVersioningRules:output_type -> temporal.api.workflowservice.v1.GetWorkerVersioningRulesResponse + 158, // 158: temporal.api.workflowservice.v1.WorkflowService.GetWorkerTaskReachability:output_type -> temporal.api.workflowservice.v1.GetWorkerTaskReachabilityResponse + 159, // 159: temporal.api.workflowservice.v1.WorkflowService.DescribeDeployment:output_type -> temporal.api.workflowservice.v1.DescribeDeploymentResponse + 160, // 160: temporal.api.workflowservice.v1.WorkflowService.DescribeWorkerDeploymentVersion:output_type -> temporal.api.workflowservice.v1.DescribeWorkerDeploymentVersionResponse + 161, // 161: temporal.api.workflowservice.v1.WorkflowService.ListDeployments:output_type -> temporal.api.workflowservice.v1.ListDeploymentsResponse + 162, // 162: temporal.api.workflowservice.v1.WorkflowService.GetDeploymentReachability:output_type -> temporal.api.workflowservice.v1.GetDeploymentReachabilityResponse + 163, // 163: temporal.api.workflowservice.v1.WorkflowService.GetCurrentDeployment:output_type -> temporal.api.workflowservice.v1.GetCurrentDeploymentResponse + 164, // 164: temporal.api.workflowservice.v1.WorkflowService.SetCurrentDeployment:output_type -> temporal.api.workflowservice.v1.SetCurrentDeploymentResponse + 165, // 165: temporal.api.workflowservice.v1.WorkflowService.SetWorkerDeploymentCurrentVersion:output_type -> temporal.api.workflowservice.v1.SetWorkerDeploymentCurrentVersionResponse + 166, // 166: temporal.api.workflowservice.v1.WorkflowService.DescribeWorkerDeployment:output_type -> temporal.api.workflowservice.v1.DescribeWorkerDeploymentResponse + 167, // 167: temporal.api.workflowservice.v1.WorkflowService.DeleteWorkerDeployment:output_type -> temporal.api.workflowservice.v1.DeleteWorkerDeploymentResponse + 168, // 168: temporal.api.workflowservice.v1.WorkflowService.DeleteWorkerDeploymentVersion:output_type -> temporal.api.workflowservice.v1.DeleteWorkerDeploymentVersionResponse + 169, // 169: temporal.api.workflowservice.v1.WorkflowService.SetWorkerDeploymentRampingVersion:output_type -> temporal.api.workflowservice.v1.SetWorkerDeploymentRampingVersionResponse + 170, // 170: temporal.api.workflowservice.v1.WorkflowService.ListWorkerDeployments:output_type -> temporal.api.workflowservice.v1.ListWorkerDeploymentsResponse + 171, // 171: temporal.api.workflowservice.v1.WorkflowService.UpdateWorkerDeploymentVersionMetadata:output_type -> temporal.api.workflowservice.v1.UpdateWorkerDeploymentVersionMetadataResponse + 172, // 172: temporal.api.workflowservice.v1.WorkflowService.SetWorkerDeploymentManager:output_type -> temporal.api.workflowservice.v1.SetWorkerDeploymentManagerResponse + 173, // 173: temporal.api.workflowservice.v1.WorkflowService.UpdateWorkflowExecution:output_type -> temporal.api.workflowservice.v1.UpdateWorkflowExecutionResponse + 174, // 174: temporal.api.workflowservice.v1.WorkflowService.PollWorkflowExecutionUpdate:output_type -> temporal.api.workflowservice.v1.PollWorkflowExecutionUpdateResponse + 175, // 175: temporal.api.workflowservice.v1.WorkflowService.StartBatchOperation:output_type -> temporal.api.workflowservice.v1.StartBatchOperationResponse + 176, // 176: temporal.api.workflowservice.v1.WorkflowService.StopBatchOperation:output_type -> temporal.api.workflowservice.v1.StopBatchOperationResponse + 177, // 177: temporal.api.workflowservice.v1.WorkflowService.DescribeBatchOperation:output_type -> temporal.api.workflowservice.v1.DescribeBatchOperationResponse + 178, // 178: temporal.api.workflowservice.v1.WorkflowService.ListBatchOperations:output_type -> temporal.api.workflowservice.v1.ListBatchOperationsResponse + 179, // 179: temporal.api.workflowservice.v1.WorkflowService.PollNexusTaskQueue:output_type -> temporal.api.workflowservice.v1.PollNexusTaskQueueResponse + 180, // 180: temporal.api.workflowservice.v1.WorkflowService.RespondNexusTaskCompleted:output_type -> temporal.api.workflowservice.v1.RespondNexusTaskCompletedResponse + 181, // 181: temporal.api.workflowservice.v1.WorkflowService.RespondNexusTaskFailed:output_type -> temporal.api.workflowservice.v1.RespondNexusTaskFailedResponse + 182, // 182: temporal.api.workflowservice.v1.WorkflowService.UpdateActivityOptions:output_type -> temporal.api.workflowservice.v1.UpdateActivityOptionsResponse + 183, // 183: temporal.api.workflowservice.v1.WorkflowService.UpdateWorkflowExecutionOptions:output_type -> temporal.api.workflowservice.v1.UpdateWorkflowExecutionOptionsResponse + 184, // 184: temporal.api.workflowservice.v1.WorkflowService.PauseActivity:output_type -> temporal.api.workflowservice.v1.PauseActivityResponse + 185, // 185: temporal.api.workflowservice.v1.WorkflowService.UnpauseActivity:output_type -> temporal.api.workflowservice.v1.UnpauseActivityResponse + 186, // 186: temporal.api.workflowservice.v1.WorkflowService.ResetActivity:output_type -> temporal.api.workflowservice.v1.ResetActivityResponse + 187, // 187: temporal.api.workflowservice.v1.WorkflowService.CreateWorkflowRule:output_type -> temporal.api.workflowservice.v1.CreateWorkflowRuleResponse + 188, // 188: temporal.api.workflowservice.v1.WorkflowService.DescribeWorkflowRule:output_type -> temporal.api.workflowservice.v1.DescribeWorkflowRuleResponse + 189, // 189: temporal.api.workflowservice.v1.WorkflowService.DeleteWorkflowRule:output_type -> temporal.api.workflowservice.v1.DeleteWorkflowRuleResponse + 190, // 190: temporal.api.workflowservice.v1.WorkflowService.ListWorkflowRules:output_type -> temporal.api.workflowservice.v1.ListWorkflowRulesResponse + 191, // 191: temporal.api.workflowservice.v1.WorkflowService.TriggerWorkflowRule:output_type -> temporal.api.workflowservice.v1.TriggerWorkflowRuleResponse + 192, // 192: temporal.api.workflowservice.v1.WorkflowService.RecordWorkerHeartbeat:output_type -> temporal.api.workflowservice.v1.RecordWorkerHeartbeatResponse + 193, // 193: temporal.api.workflowservice.v1.WorkflowService.ListWorkers:output_type -> temporal.api.workflowservice.v1.ListWorkersResponse + 194, // 194: temporal.api.workflowservice.v1.WorkflowService.UpdateTaskQueueConfig:output_type -> temporal.api.workflowservice.v1.UpdateTaskQueueConfigResponse + 195, // 195: temporal.api.workflowservice.v1.WorkflowService.FetchWorkerConfig:output_type -> temporal.api.workflowservice.v1.FetchWorkerConfigResponse + 196, // 196: temporal.api.workflowservice.v1.WorkflowService.UpdateWorkerConfig:output_type -> temporal.api.workflowservice.v1.UpdateWorkerConfigResponse + 197, // 197: temporal.api.workflowservice.v1.WorkflowService.DescribeWorker:output_type -> temporal.api.workflowservice.v1.DescribeWorkerResponse + 198, // 198: temporal.api.workflowservice.v1.WorkflowService.PauseWorkflowExecution:output_type -> temporal.api.workflowservice.v1.PauseWorkflowExecutionResponse + 199, // 199: temporal.api.workflowservice.v1.WorkflowService.UnpauseWorkflowExecution:output_type -> temporal.api.workflowservice.v1.UnpauseWorkflowExecutionResponse + 200, // 200: temporal.api.workflowservice.v1.WorkflowService.StartActivityExecution:output_type -> temporal.api.workflowservice.v1.StartActivityExecutionResponse + 201, // 201: temporal.api.workflowservice.v1.WorkflowService.DescribeActivityExecution:output_type -> temporal.api.workflowservice.v1.DescribeActivityExecutionResponse + 202, // 202: temporal.api.workflowservice.v1.WorkflowService.PollActivityExecution:output_type -> temporal.api.workflowservice.v1.PollActivityExecutionResponse + 203, // 203: temporal.api.workflowservice.v1.WorkflowService.ListActivityExecutions:output_type -> temporal.api.workflowservice.v1.ListActivityExecutionsResponse + 204, // 204: temporal.api.workflowservice.v1.WorkflowService.CountActivityExecutions:output_type -> temporal.api.workflowservice.v1.CountActivityExecutionsResponse + 205, // 205: temporal.api.workflowservice.v1.WorkflowService.RequestCancelActivityExecution:output_type -> temporal.api.workflowservice.v1.RequestCancelActivityExecutionResponse + 206, // 206: temporal.api.workflowservice.v1.WorkflowService.TerminateActivityExecution:output_type -> temporal.api.workflowservice.v1.TerminateActivityExecutionResponse + 207, // 207: temporal.api.workflowservice.v1.WorkflowService.DeleteActivityExecution:output_type -> temporal.api.workflowservice.v1.DeleteActivityExecutionResponse + 104, // [104:208] is the sub-list for method output_type + 0, // [0:104] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_temporal_api_workflowservice_v1_service_proto_init() } +func file_temporal_api_workflowservice_v1_service_proto_init() { + if File_temporal_api_workflowservice_v1_service_proto != nil { + return + } + file_temporal_api_workflowservice_v1_request_response_proto_init() + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_api_workflowservice_v1_service_proto_rawDesc), len(file_temporal_api_workflowservice_v1_service_proto_rawDesc)), + NumEnums: 0, + NumMessages: 0, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_temporal_api_workflowservice_v1_service_proto_goTypes, + DependencyIndexes: file_temporal_api_workflowservice_v1_service_proto_depIdxs, + }.Build() + File_temporal_api_workflowservice_v1_service_proto = out.File + file_temporal_api_workflowservice_v1_service_proto_goTypes = nil + file_temporal_api_workflowservice_v1_service_proto_depIdxs = nil +} From acdb039c882590214f4a96d45e7e3aab465c51f7 Mon Sep 17 00:00:00 2001 From: Stephan Behnke Date: Fri, 23 Jan 2026 22:31:51 -0800 Subject: [PATCH 2/3] Migrate serviceerror and other files to use builder pattern for opaque API - Convert all serviceerror files to use Type_builder{}.Build() pattern - Fix gateway files to use setters instead of direct field assignment - Update convert.go for multi-operation error handling - Various other opaque API compatibility fixes Co-Authored-By: Claude Opus 4.5 --- common/v1/payload_json.go | 49 +- .../temporalcommonv1/payload_json_test.go | 66 +- operatorservice/v1/service.pb.gw.go | 48 +- proxy/interceptor.go | 58 +- proxy/interceptor_test.go | 270 ++-- proxy/service_util_test.go | 8 +- .../activity_execution_already_started.go | 4 +- serviceerror/client_version_not_supported.go | 4 +- serviceerror/convert.go | 10 +- serviceerror/convert_test.go | 14 +- serviceerror/multi_op.go | 11 +- serviceerror/namespace_invalid_state.go | 4 +- serviceerror/namespace_not_active.go | 4 +- serviceerror/namespace_not_found.go | 4 +- serviceerror/namespace_unavailable.go | 4 +- serviceerror/newer_build_exists.go | 4 +- serviceerror/not_found.go | 4 +- serviceerror/permission_denied.go | 4 +- serviceerror/query_failed.go | 6 +- serviceerror/resource_exhausted.go | 4 +- serviceerror/server_version_not_supported.go | 4 +- serviceerror/system_workflow.go | 10 +- .../workflow_execution_already_started.go | 4 +- workflowservice/v1/service.pb.gw.go | 1308 +++++++++++------ 24 files changed, 1176 insertions(+), 730 deletions(-) diff --git a/common/v1/payload_json.go b/common/v1/payload_json.go index 0de0b471..57f6e598 100644 --- a/common/v1/payload_json.go +++ b/common/v1/payload_json.go @@ -243,8 +243,8 @@ func (p *Payloads) MaybeMarshalProtoJSON(meta map[string]interface{}, enc *json. // We only support marshalling to shorthand if all payloads are handled or // there are no payloads, so check if all can be handled first. - vals := make([]any, len(p.Payloads)) - for i, payload := range p.Payloads { + vals := make([]any, len(p.GetPayloads())) + for i, payload := range p.GetPayloads() { handled, vals[i], err = payload.toJSONShorthand() if !handled || err != nil { return handled, err @@ -302,7 +302,7 @@ func (p *Payloads) MaybeUnmarshalProtoJSON(meta map[string]interface{}, dec *jso if err := pl.fromJSONMaybeShorthand(dec); err != nil { return true, fmt.Errorf("unable to unmarshal payload: %w", err) } - p.Payloads = append(p.Payloads, &pl) + p.SetPayloads(append(p.GetPayloads(), &pl)) } return true, nil @@ -350,37 +350,37 @@ func (p *Payload) MaybeUnmarshalProtoJSON(meta map[string]interface{}, dec *json func (p *Payload) toJSONShorthand() (handled bool, value interface{}, err error) { // Only support binary null, plain JSON and proto JSON - switch string(p.Metadata["encoding"]) { + switch string(p.GetMetadata()["encoding"]) { case "binary/null": // Leave value as nil handled = true case "json/plain": // Must only have this single metadata - if len(p.Metadata) != 1 { + if len(p.GetMetadata()) != 1 { return false, nil, nil } // We unmarshal because we may have to indent. We let this error fail the // marshaller. handled = true - err = gojson.Unmarshal(p.Data, &value) + err = gojson.Unmarshal(p.GetData(), &value) case "json/protobuf": // Must have the message type and no other metadata - msgType := string(p.Metadata["messageType"]) - if msgType == "" || len(p.Metadata) != 2 { + msgType := string(p.GetMetadata()["messageType"]) + if msgType == "" || len(p.GetMetadata()) != 2 { return false, nil, nil } // Since this is a proto object, this must unmarshal to a object. We let // this error fail the marshaller. var valueMap map[string]interface{} handled = true - err = gojson.Unmarshal(p.Data, &valueMap) + err = gojson.Unmarshal(p.GetData(), &valueMap) // Put the message type on the object if valueMap != nil { valueMap[shorthandMessageTypeKey] = msgType } value = valueMap default: - return false, nil, fmt.Errorf("unsupported encoding %s", string(p.Metadata["encoding"])) + return false, nil, fmt.Errorf("unsupported encoding %s", string(p.GetMetadata()["encoding"])) } return } @@ -499,9 +499,9 @@ func (p *Payload) unmarshalPayload(valueMap map[string]interface{}) bool { d, dataOk := valueMap[payloadDataKey] // It's ok to have no data key if the encoding is binary/null if mdOk && !dataOk && enc == binaryNullBase64 { - p.Metadata = map[string][]byte{ + p.SetMetadata(map[string][]byte{ "encoding": []byte("binary/null"), - } + }) return true } else if !mdOk && !dataOk { return false @@ -538,8 +538,8 @@ func (p *Payload) unmarshalPayload(valueMap map[string]interface{}) bool { mdbm[k] = vb } - p.Metadata = mdbm - p.Data = dataBytes + p.SetMetadata(mdbm) + p.SetData(dataBytes) return true } @@ -562,12 +562,13 @@ func (p *Payload) fromJSONMaybeShorthand(dec *json.Decoder) error { switch tv := val.(type) { default: // take it as-is - p.Metadata = map[string][]byte{"encoding": []byte("json/plain")} - p.Data, err = gojson.Marshal(val) + p.SetMetadata(map[string][]byte{"encoding": []byte("json/plain")}) + data, err := gojson.Marshal(val) + p.SetData(data) return err case nil: - p.Data = nil - p.Metadata = map[string][]byte{"encoding": []byte("binary/null")} + p.SetData(nil) + p.SetMetadata(map[string][]byte{"encoding": []byte("binary/null")}) return nil case map[string]interface{}: if handled := p.unmarshalPayload(tv); handled { @@ -590,14 +591,16 @@ func (p *Payload) fromJSONMaybeShorthand(dec *json.Decoder) error { // what user passed in sans message type (e.g. user may have indented or // did not have same field order), but that is acceptable when going // from shorthand to non-shorthand. - p.Data, _ = gojson.Marshal(tv) - p.Metadata = map[string][]byte{ + data, _ := gojson.Marshal(tv) + p.SetData(data) + p.SetMetadata(map[string][]byte{ "encoding": []byte("json/protobuf"), "messageType": []byte(msgType), - } + }) } else { - p.Metadata = map[string][]byte{"encoding": []byte("json/plain")} - p.Data, err = gojson.Marshal(val) + p.SetMetadata(map[string][]byte{"encoding": []byte("json/plain")}) + data, err := gojson.Marshal(val) + p.SetData(data) return err } return nil diff --git a/internal/temporalcommonv1/payload_json_test.go b/internal/temporalcommonv1/payload_json_test.go index 150442f0..bfcc3ff7 100644 --- a/internal/temporalcommonv1/payload_json_test.go +++ b/internal/temporalcommonv1/payload_json_test.go @@ -20,22 +20,22 @@ var tests = []struct { name: "json/plain", longformJSON: `{"metadata":{"encoding":"anNvbi9wcm90b2J1Zg==","messageType":"dGVtcG9yYWwuYXBpLmNvbW1vbi52MS5Xb3JrZmxvd1R5cGU="},"data":"eyJuYW1lIjoid29ya2Zsb3ctbmFtZSJ9"}`, shorthandJSON: `{"_protoMessageType": "temporal.api.common.v1.WorkflowType", "name": "workflow-name"}`, - pb: &common.Payload{ + pb: common.Payload_builder{ Metadata: map[string][]byte{ "encoding": []byte("json/protobuf"), "messageType": []byte("temporal.api.common.v1.WorkflowType"), }, Data: []byte(`{"name":"workflow-name"}`), - }, + }.Build(), }, { name: "binary/null", longformJSON: `{"metadata":{"encoding":"YmluYXJ5L251bGw="}}`, shorthandJSON: `{"metadata":{"encoding":"YmluYXJ5L251bGw="}}`, - pb: &common.Payload{ + pb: common.Payload_builder{ Metadata: map[string][]byte{ "encoding": []byte("binary/null"), }, - }, + }.Build(), }, { name: "memo with varying fields", longformJSON: `{"fields":{ @@ -44,53 +44,53 @@ var tests = []struct { shorthandJSON: `{"fields": { "some-string": "string", "some-array": ["foo", 123, false]}}`, - pb: &common.Memo{ + pb: common.Memo_builder{ Fields: map[string]*common.Payload{ - "some-string": { + "some-string": common.Payload_builder{ Metadata: map[string][]byte{ "encoding": []byte("json/plain"), }, Data: []byte(`"string"`), - }, - "some-array": { + }.Build(), + "some-array": common.Payload_builder{ Metadata: map[string][]byte{ "encoding": []byte("json/plain"), }, // NOTE: we don't include spurious spaces when re-encoding Data: []byte(`["foo",123,false]`), - }, + }.Build(), }, - }, + }.Build(), }, { name: "json/plain with empty object", longformJSON: `{"metadata":{"encoding":"anNvbi9wbGFpbg=="},"data":"eyJncmVldGluZyI6e319"}`, shorthandJSON: `{"greeting": {}}`, - pb: &common.Payload{ + pb: common.Payload_builder{ Metadata: map[string][]byte{ "encoding": []byte("json/plain"), }, Data: []byte(`{"greeting":{}}`), - }, + }.Build(), }, { name: "json/plain with nested object", longformJSON: `{"metadata":{"encoding":"anNvbi9wbGFpbg=="},"data":"eyJncmVldGluZyI6eyJuYW1lIjp7fX19"}`, shorthandJSON: `{"greeting": {"name": {}}}`, - pb: &common.Payload{ + pb: common.Payload_builder{ Metadata: map[string][]byte{ "encoding": []byte("json/plain"), }, Data: []byte(`{"greeting":{"name":{}}}`), - }, + }.Build(), }, { name: "json/plain with null", longformJSON: `{"metadata":{"encoding":"anNvbi9wbGFpbg=="},"data":"eyJncmVldGluZyI6bnVsbH0="}`, shorthandJSON: `{"greeting": null}`, - pb: &common.Payload{ + pb: common.Payload_builder{ Metadata: map[string][]byte{ "encoding": []byte("json/plain"), }, Data: []byte(`{"greeting":null}`), - }, + }.Build(), }, { name: "empty payloads", longformJSON: `{}`, @@ -100,21 +100,21 @@ var tests = []struct { name: "empty payloads with non-nil slice", longformJSON: `{}`, shorthandJSON: `[]`, - pb: &common.Payloads{Payloads: []*common.Payload{}}, + pb: common.Payloads_builder{Payloads: []*common.Payload{}}.Build(), }, { name: "payloads with two items", longformJSON: `{"payloads":[{"data":"InN0cmluZyB2YWx1ZSI=","metadata":{"encoding":"anNvbi9wbGFpbg=="}},{"data":"MzI0Mw==","metadata":{"encoding":"anNvbi9wbGFpbg=="}}]}`, shorthandJSON: `["string value", 3243]`, - pb: &common.Payloads{Payloads: []*common.Payload{ - &common.Payload{ + pb: common.Payloads_builder{Payloads: []*common.Payload{ + common.Payload_builder{ Metadata: map[string][]byte{"encoding": []byte("json/plain")}, Data: []byte(`"string value"`), - }, - &common.Payload{ + }.Build(), + common.Payload_builder{ Metadata: map[string][]byte{"encoding": []byte("json/plain")}, Data: []byte(`3243`), - }, - }}, + }.Build(), + }}.Build(), }} func TestMaybeMarshal_ShorthandEnabled(t *testing.T) { @@ -182,7 +182,7 @@ func TestMaybeUnmarshal_Payloads_AcceptsNull(t *testing.T) { } err := opts.Unmarshal([]byte("null"), &out) require.NoError(t, err) - require.Equal(t, 0, len(out.Payloads)) + require.Equal(t, 0, len(out.GetPayloads())) } func TestMaybeMarshal_Payloads_Unhandled(t *testing.T) { @@ -191,22 +191,22 @@ func TestMaybeMarshal_Payloads_Unhandled(t *testing.T) { common.EnablePayloadShorthandMetadataKey: true, }, } - p := common.Payloads{Payloads: []*common.Payload{ - &common.Payload{ + p := common.Payloads_builder{Payloads: []*common.Payload{ + common.Payload_builder{ Metadata: map[string][]byte{ "encoding": []byte("json/plain"), }, Data: []byte(`"string"`), - }, - &common.Payload{ // this one can't be handled by shorthand because of extra metadata + }.Build(), + common.Payload_builder{ // this one can't be handled by shorthand because of extra metadata Metadata: map[string][]byte{ "encoding": []byte("json/plain"), "some other metadata": []byte("23"), }, Data: []byte(`"string"`), - }, - }} - out, err := opts.Marshal(&p) + }.Build(), + }}.Build() + out, err := opts.Marshal(p) require.NoError(t, err) var i any require.NoError(t, json.Unmarshal(out, &i), "must unmarshal as valid json") @@ -215,12 +215,12 @@ func TestMaybeMarshal_Payloads_Unhandled(t *testing.T) { func TestTest(t *testing.T) { - pb := &common.Payload{ + pb := common.Payload_builder{ Metadata: map[string][]byte{ "encoding": []byte("json/plain"), }, Data: []byte(`{"greeting":null}`), - } + }.Build() opts := temporalproto.CustomJSONMarshalOptions{ Metadata: map[string]interface{}{ common.EnablePayloadShorthandMetadataKey: true, diff --git a/operatorservice/v1/service.pb.gw.go b/operatorservice/v1/service.pb.gw.go index 91597f5d..bc5c2188 100644 --- a/operatorservice/v1/service.pb.gw.go +++ b/operatorservice/v1/service.pb.gw.go @@ -48,10 +48,11 @@ func request_OperatorService_ListSearchAttributes_0(ctx context.Context, marshal if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := client.ListSearchAttributes(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -66,10 +67,11 @@ func local_request_OperatorService_ListSearchAttributes_0(ctx context.Context, m if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := server.ListSearchAttributes(ctx, &protoReq) return msg, metadata, err } @@ -87,10 +89,11 @@ func request_OperatorService_ListSearchAttributes_1(ctx context.Context, marshal if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := client.ListSearchAttributes(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -105,10 +108,11 @@ func local_request_OperatorService_ListSearchAttributes_1(ctx context.Context, m if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := server.ListSearchAttributes(ctx, &protoReq) return msg, metadata, err } @@ -126,10 +130,11 @@ func request_OperatorService_GetNexusEndpoint_0(ctx context.Context, marshaler r if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") } - protoReq.Id, err = runtime.String(val) + idVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) } + protoReq.SetId(idVal) msg, err := client.GetNexusEndpoint(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -144,10 +149,11 @@ func local_request_OperatorService_GetNexusEndpoint_0(ctx context.Context, marsh if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") } - protoReq.Id, err = runtime.String(val) + idVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) } + protoReq.SetId(idVal) msg, err := server.GetNexusEndpoint(ctx, &protoReq) return msg, metadata, err } @@ -165,10 +171,11 @@ func request_OperatorService_GetNexusEndpoint_1(ctx context.Context, marshaler r if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") } - protoReq.Id, err = runtime.String(val) + idVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) } + protoReq.SetId(idVal) msg, err := client.GetNexusEndpoint(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -183,10 +190,11 @@ func local_request_OperatorService_GetNexusEndpoint_1(ctx context.Context, marsh if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") } - protoReq.Id, err = runtime.String(val) + idVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) } + protoReq.SetId(idVal) msg, err := server.GetNexusEndpoint(ctx, &protoReq) return msg, metadata, err } @@ -261,10 +269,11 @@ func request_OperatorService_UpdateNexusEndpoint_0(ctx context.Context, marshale if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") } - protoReq.Id, err = runtime.String(val) + idVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) } + protoReq.SetId(idVal) msg, err := client.UpdateNexusEndpoint(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -282,10 +291,11 @@ func local_request_OperatorService_UpdateNexusEndpoint_0(ctx context.Context, ma if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") } - protoReq.Id, err = runtime.String(val) + idVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) } + protoReq.SetId(idVal) msg, err := server.UpdateNexusEndpoint(ctx, &protoReq) return msg, metadata, err } @@ -306,10 +316,11 @@ func request_OperatorService_UpdateNexusEndpoint_1(ctx context.Context, marshale if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") } - protoReq.Id, err = runtime.String(val) + idVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) } + protoReq.SetId(idVal) msg, err := client.UpdateNexusEndpoint(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -327,10 +338,11 @@ func local_request_OperatorService_UpdateNexusEndpoint_1(ctx context.Context, ma if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") } - protoReq.Id, err = runtime.String(val) + idVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) } + protoReq.SetId(idVal) msg, err := server.UpdateNexusEndpoint(ctx, &protoReq) return msg, metadata, err } @@ -350,10 +362,11 @@ func request_OperatorService_DeleteNexusEndpoint_0(ctx context.Context, marshale if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") } - protoReq.Id, err = runtime.String(val) + idVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) } + protoReq.SetId(idVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -374,10 +387,11 @@ func local_request_OperatorService_DeleteNexusEndpoint_0(ctx context.Context, ma if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") } - protoReq.Id, err = runtime.String(val) + idVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) } + protoReq.SetId(idVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -403,10 +417,11 @@ func request_OperatorService_DeleteNexusEndpoint_1(ctx context.Context, marshale if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") } - protoReq.Id, err = runtime.String(val) + idVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) } + protoReq.SetId(idVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -427,10 +442,11 @@ func local_request_OperatorService_DeleteNexusEndpoint_1(ctx context.Context, ma if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") } - protoReq.Id, err = runtime.String(val) + idVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) } + protoReq.SetId(idVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } diff --git a/proxy/interceptor.go b/proxy/interceptor.go index f677a7e9..bef05b0f 100644 --- a/proxy/interceptor.go +++ b/proxy/interceptor.go @@ -276,12 +276,12 @@ func visitPayloads( continue } ctx.Parent = parent - newPayloads, err := options.Visitor(ctx, o.Payloads) + newPayloads, err := options.Visitor(ctx, o.GetPayloads()) ctx.Parent = nil if err != nil { return err } - o.Payloads = newPayloads + o.SetPayloads(newPayloads) case map[string]*common.Payloads: for _, x := range o { if err := visitPayloads(ctx, options, parent, x); err != nil { @@ -571,12 +571,12 @@ func visitPayloads( if o == nil { continue } - if o.Input != nil { - no, err := visitPayload(ctx, options, o, o.Input) + if o.HasInput() { + no, err := visitPayload(ctx, options, o, o.GetInput()) if err != nil { return err } - o.Input = no + o.SetInput(no) } case *command.SignalExternalWorkflowExecutionCommandAttributes: @@ -868,12 +868,12 @@ func visitPayloads( if o == nil { continue } - if o.EncodedAttributes != nil { - no, err := visitPayload(ctx, options, o, o.EncodedAttributes) + if o.HasEncodedAttributes() { + no, err := visitPayload(ctx, options, o, o.GetEncodedAttributes()) if err != nil { return err } - o.EncodedAttributes = no + o.SetEncodedAttributes(no) } if err := visitPayloads( @@ -1193,12 +1193,12 @@ func visitPayloads( if o == nil { continue } - if o.Result != nil { - no, err := visitPayload(ctx, options, o, o.Result) + if o.HasResult() { + no, err := visitPayload(ctx, options, o, o.GetResult()) if err != nil { return err } - o.Result = no + o.SetResult(no) } case *history.NexusOperationFailedEventAttributes: @@ -1221,12 +1221,12 @@ func visitPayloads( if o == nil { continue } - if o.Input != nil { - no, err := visitPayload(ctx, options, o, o.Input) + if o.HasInput() { + no, err := visitPayload(ctx, options, o, o.GetInput()) if err != nil { return err } - o.Input = no + o.SetInput(no) } case *history.NexusOperationTimedOutEventAttributes: @@ -1542,12 +1542,12 @@ func visitPayloads( if o == nil { continue } - if o.Description != nil { - no, err := visitPayload(ctx, options, o, o.Description) + if o.HasDescription() { + no, err := visitPayload(ctx, options, o, o.GetDescription()) if err != nil { return err } - o.Description = no + o.SetDescription(no) } case *nexus.Request: @@ -1585,12 +1585,12 @@ func visitPayloads( if o == nil { continue } - if o.Payload != nil { - no, err := visitPayload(ctx, options, o, o.Payload) + if o.HasPayload() { + no, err := visitPayload(ctx, options, o, o.GetPayload()) if err != nil { return err } - o.Payload = no + o.SetPayload(no) } case *nexus.StartOperationResponse: @@ -1613,12 +1613,12 @@ func visitPayloads( if o == nil { continue } - if o.Payload != nil { - no, err := visitPayload(ctx, options, o, o.Payload) + if o.HasPayload() { + no, err := visitPayload(ctx, options, o, o.GetPayload()) if err != nil { return err } - o.Payload = no + o.SetPayload(no) } case *operatorservice.CreateNexusEndpointRequest: @@ -1837,19 +1837,19 @@ func visitPayloads( if o == nil { continue } - if o.Details != nil { - no, err := visitPayload(ctx, options, o, o.Details) + if o.HasDetails() { + no, err := visitPayload(ctx, options, o, o.GetDetails()) if err != nil { return err } - o.Details = no + o.SetDetails(no) } - if o.Summary != nil { - no, err := visitPayload(ctx, options, o, o.Summary) + if o.HasSummary() { + no, err := visitPayload(ctx, options, o, o.GetSummary()) if err != nil { return err } - o.Summary = no + o.SetSummary(no) } case *update.Acceptance: diff --git a/proxy/interceptor_test.go b/proxy/interceptor_test.go index f7950559..c670969e 100644 --- a/proxy/interceptor_test.go +++ b/proxy/interceptor_test.go @@ -40,20 +40,20 @@ import ( ) func inputPayloads() *common.Payloads { - return &common.Payloads{ + return common.Payloads_builder{ Payloads: []*common.Payload{ inputPayload(), }, - } + }.Build() } func inputPayload() *common.Payload { - return &common.Payload{ + return common.Payload_builder{ Metadata: map[string][]byte{ "encoding": []byte("plain/json"), }, Data: []byte("test"), - } + }.Build() } func TestVisitPayloads(t *testing.T) { @@ -61,9 +61,9 @@ func TestVisitPayloads(t *testing.T) { err := VisitPayloads( context.Background(), - &workflowservice.StartWorkflowExecutionRequest{ + workflowservice.StartWorkflowExecutionRequest_builder{ Input: inputPayloads(), - }, + }.Build(), VisitPayloadsOptions{ Visitor: func(vpc *VisitPayloadsContext, p []*common.Payload) ([]*common.Payload, error) { require.False(vpc.SinglePayloadRequired) @@ -75,11 +75,11 @@ func TestVisitPayloads(t *testing.T) { err = VisitPayloads( context.Background(), - &workflowservice.StartWorkflowExecutionRequest{ - Header: &common.Header{ + workflowservice.StartWorkflowExecutionRequest_builder{ + Header: common.Header_builder{ Fields: map[string]*common.Payload{"test": inputPayload()}, - }, - }, + }.Build(), + }.Build(), VisitPayloadsOptions{ Visitor: func(vpc *VisitPayloadsContext, p []*common.Payload) ([]*common.Payload, error) { require.True(vpc.SinglePayloadRequired) @@ -91,68 +91,64 @@ func TestVisitPayloads(t *testing.T) { err = VisitPayloads( context.Background(), - &export.WorkflowExecutions{Items: []*export.WorkflowExecution{{History: &history.History{ + export.WorkflowExecutions_builder{Items: []*export.WorkflowExecution{export.WorkflowExecution_builder{History: history.History_builder{ Events: []*history.HistoryEvent{ - { - Attributes: &history.HistoryEvent_WorkflowExecutionStartedEventAttributes{ - WorkflowExecutionStartedEventAttributes: &history.WorkflowExecutionStartedEventAttributes{ - Input: inputPayloads(), - }, - }, - }, + history.HistoryEvent_builder{ + WorkflowExecutionStartedEventAttributes: history.WorkflowExecutionStartedEventAttributes_builder{ + Input: inputPayloads(), + }.Build(), + }.Build(), }, - }}}}, + }.Build()}.Build()}}.Build(), VisitPayloadsOptions{ Visitor: func(vpc *VisitPayloadsContext, p []*common.Payload) ([]*common.Payload, error) { require.False(vpc.SinglePayloadRequired) - require.Equal([]byte("test"), p[0].Data) + require.Equal([]byte("test"), p[0].GetData()) return p, nil }, }, ) require.NoError(err) - msg := &history.HistoryEvent{ - Attributes: &history.HistoryEvent_NexusOperationScheduledEventAttributes{ - NexusOperationScheduledEventAttributes: &history.NexusOperationScheduledEventAttributes{ - Input: inputPayload(), - }, - }, - } + msg := history.HistoryEvent_builder{ + NexusOperationScheduledEventAttributes: history.NexusOperationScheduledEventAttributes_builder{ + Input: inputPayload(), + }.Build(), + }.Build() err = VisitPayloads( context.Background(), msg, VisitPayloadsOptions{ Visitor: func(vpc *VisitPayloadsContext, p []*common.Payload) ([]*common.Payload, error) { require.True(vpc.SinglePayloadRequired) - require.Equal([]byte("test"), p[0].Data) - return []*common.Payload{{Data: []byte("visited")}}, nil + require.Equal([]byte("test"), p[0].GetData()) + return []*common.Payload{common.Payload_builder{Data: []byte("visited")}.Build()}, nil }, }, ) - require.Equal([]byte("visited"), msg.GetNexusOperationScheduledEventAttributes().Input.Data) + require.Equal([]byte("visited"), msg.GetNexusOperationScheduledEventAttributes().GetInput().GetData()) require.NoError(err) } func TestVisitPayloads_NestedParent(t *testing.T) { // Due to an invalid approach in the previous visitor, this test used to fail - root := &command.StartChildWorkflowExecutionCommandAttributes{ - Header: &common.Header{ + root := command.StartChildWorkflowExecutionCommandAttributes_builder{ + Header: common.Header_builder{ Fields: map[string]*common.Payload{ - "header-key": {Data: []byte("header-value")}, + "header-key": common.Payload_builder{Data: []byte("header-value")}.Build(), }, - }, - Input: &common.Payloads{ - Payloads: []*common.Payload{{Data: []byte("input-value")}}, - }, - } + }.Build(), + Input: common.Payloads_builder{ + Payloads: []*common.Payload{common.Payload_builder{Data: []byte("input-value")}.Build()}, + }.Build(), + }.Build() var headerParent, inputParent proto.Message err := VisitPayloads(context.Background(), root, VisitPayloadsOptions{ Visitor: func(ctx *VisitPayloadsContext, p []*common.Payload) ([]*common.Payload, error) { if len(p) == 1 { - if string(p[0].Data) == "header-value" { + if string(p[0].GetData()) == "header-value" { headerParent = proto.Clone(ctx.Parent) - } else if string(p[0].Data) == "input-value" { + } else if string(p[0].GetData()) == "input-value" { inputParent = proto.Clone(ctx.Parent) } } @@ -165,128 +161,124 @@ func TestVisitPayloads_NestedParent(t *testing.T) { } func TestVisitPayloads_RepeatedPayload(t *testing.T) { - root := &workflowservice.CountWorkflowExecutionsResponse_AggregationGroup{GroupValues: []*common.Payload{{Data: []byte("orig-val")}}} + root := workflowservice.CountWorkflowExecutionsResponse_AggregationGroup_builder{GroupValues: []*common.Payload{common.Payload_builder{Data: []byte("orig-val")}.Build()}}.Build() var count int err := VisitPayloads(context.Background(), root, VisitPayloadsOptions{ Visitor: func(ctx *VisitPayloadsContext, p []*common.Payload) ([]*common.Payload, error) { count += 1 // Only mutate if the payloads has orig-val - if len(p) == 1 && string(p[0].Data) == "orig-val" { - return []*common.Payload{{Data: []byte("new-val")}}, nil + if len(p) == 1 && string(p[0].GetData()) == "orig-val" { + return []*common.Payload{common.Payload_builder{Data: []byte("new-val")}.Build()}, nil } return p, nil }, }) require.NoError(t, err) require.Equal(t, 1, count) - require.Equal(t, []*common.Payload{{Data: []byte("new-val")}}, root.GroupValues) + require.Equal(t, []*common.Payload{common.Payload_builder{Data: []byte("new-val")}.Build()}, root.GetGroupValues()) } func TestVisitPayloads_Any(t *testing.T) { // Due to us not visiting protos inside Any, this test used to fail - msg1, err := anypb.New(&update.Request{Input: &update.Input{Args: &common.Payloads{ - Payloads: []*common.Payload{{Data: []byte("orig-val")}}, - }}}) + msg1, err := anypb.New(update.Request_builder{Input: update.Input_builder{Args: common.Payloads_builder{ + Payloads: []*common.Payload{common.Payload_builder{Data: []byte("orig-val")}.Build()}, + }.Build()}.Build()}.Build()) require.NoError(t, err) - msg2, err := anypb.New(&update.Request{Input: &update.Input{Args: &common.Payloads{ - Payloads: []*common.Payload{{Data: []byte("orig-val-don't-touch")}}, - }}}) + msg2, err := anypb.New(update.Request_builder{Input: update.Input_builder{Args: common.Payloads_builder{ + Payloads: []*common.Payload{common.Payload_builder{Data: []byte("orig-val-don't-touch")}.Build()}, + }.Build()}.Build()}.Build()) require.NoError(t, err) - msg3, err := anypb.New(&update.Response{Outcome: &update.Outcome{Value: &update.Outcome_Success{ - Success: &common.Payloads{ - Payloads: []*common.Payload{{Data: []byte("orig-val")}}, - }, - }}}) + msg3, err := anypb.New(update.Response_builder{Outcome: update.Outcome_builder{Success: common.Payloads_builder{ + Payloads: []*common.Payload{common.Payload_builder{Data: []byte("orig-val")}.Build()}, + }.Build()}.Build()}.Build()) require.NoError(t, err) - root := &workflowservice.PollWorkflowTaskQueueResponse{ - Messages: []*protocol.Message{{Body: msg1}, {Body: msg2}, {Body: msg3}}, - } + root := workflowservice.PollWorkflowTaskQueueResponse_builder{ + Messages: []*protocol.Message{protocol.Message_builder{Body: msg1}.Build(), protocol.Message_builder{Body: msg2}.Build(), protocol.Message_builder{Body: msg3}.Build()}, + }.Build() // Visit with any recursion enabled and only change orig-val err = VisitPayloads(context.Background(), root, VisitPayloadsOptions{ Visitor: func(ctx *VisitPayloadsContext, p []*common.Payload) ([]*common.Payload, error) { // Only mutate if the payloads has orig-val - if len(p) == 1 && string(p[0].Data) == "orig-val" { - return []*common.Payload{{Data: []byte("new-val")}}, nil + if len(p) == 1 && string(p[0].GetData()) == "orig-val" { + return []*common.Payload{common.Payload_builder{Data: []byte("new-val")}.Build()}, nil } return p, nil }, }) require.NoError(t, err) - update1, err := root.Messages[0].Body.UnmarshalNew() + update1, err := root.GetMessages()[0].GetBody().UnmarshalNew() require.NoError(t, err) - require.Equal(t, "new-val", string(update1.(*update.Request).Input.Args.Payloads[0].Data)) - update2, err := root.Messages[1].Body.UnmarshalNew() + require.Equal(t, "new-val", string(update1.(*update.Request).GetInput().GetArgs().GetPayloads()[0].GetData())) + update2, err := root.GetMessages()[1].GetBody().UnmarshalNew() require.NoError(t, err) - require.Equal(t, "orig-val-don't-touch", string(update2.(*update.Request).Input.Args.Payloads[0].Data)) - update3, err := root.Messages[2].Body.UnmarshalNew() + require.Equal(t, "orig-val-don't-touch", string(update2.(*update.Request).GetInput().GetArgs().GetPayloads()[0].GetData())) + update3, err := root.GetMessages()[2].GetBody().UnmarshalNew() require.NoError(t, err) - require.Equal(t, "new-val", string(update3.(*update.Response).GetOutcome().GetSuccess().Payloads[0].Data)) + require.Equal(t, "new-val", string(update3.(*update.Response).GetOutcome().GetSuccess().GetPayloads()[0].GetData())) // Do the same test but with a do-nothing visitor and confirm unchanged - msg1, err = anypb.New(&update.Request{Input: &update.Input{Args: &common.Payloads{ - Payloads: []*common.Payload{{Data: []byte("orig-val")}}, - }}}) + msg1, err = anypb.New(update.Request_builder{Input: update.Input_builder{Args: common.Payloads_builder{ + Payloads: []*common.Payload{common.Payload_builder{Data: []byte("orig-val")}.Build()}, + }.Build()}.Build()}.Build()) require.NoError(t, err) - msg2, err = anypb.New(&update.Request{Input: &update.Input{Args: &common.Payloads{ - Payloads: []*common.Payload{{Data: []byte("orig-val-don't-touch")}}, - }}}) + msg2, err = anypb.New(update.Request_builder{Input: update.Input_builder{Args: common.Payloads_builder{ + Payloads: []*common.Payload{common.Payload_builder{Data: []byte("orig-val-don't-touch")}.Build()}, + }.Build()}.Build()}.Build()) require.NoError(t, err) - msg3, err = anypb.New(&update.Response{Outcome: &update.Outcome{Value: &update.Outcome_Success{ - Success: &common.Payloads{ - Payloads: []*common.Payload{{Data: []byte("orig-val")}}, - }, - }}}) + msg3, err = anypb.New(update.Response_builder{Outcome: update.Outcome_builder{Success: common.Payloads_builder{ + Payloads: []*common.Payload{common.Payload_builder{Data: []byte("orig-val")}.Build()}, + }.Build()}.Build()}.Build()) require.NoError(t, err) - root = &workflowservice.PollWorkflowTaskQueueResponse{ - Messages: []*protocol.Message{{Body: msg1}, {Body: msg2}, {Body: msg3}}, - } + root = workflowservice.PollWorkflowTaskQueueResponse_builder{ + Messages: []*protocol.Message{protocol.Message_builder{Body: msg1}.Build(), protocol.Message_builder{Body: msg2}.Build(), protocol.Message_builder{Body: msg3}.Build()}, + }.Build() err = VisitPayloads(context.Background(), root, VisitPayloadsOptions{ Visitor: func(ctx *VisitPayloadsContext, p []*common.Payload) ([]*common.Payload, error) { // Only mutate if the payloads has orig-val - if len(p) == 1 && string(p[0].Data) == "orig-val" { - return []*common.Payload{{Data: []byte("new-val")}}, nil + if len(p) == 1 && string(p[0].GetData()) == "orig-val" { + return []*common.Payload{common.Payload_builder{Data: []byte("new-val")}.Build()}, nil } return p, nil }, WellKnownAnyVisitor: func(*VisitPayloadsContext, *anypb.Any) error { return nil }, }) require.NoError(t, err) - update1, err = root.Messages[0].Body.UnmarshalNew() + update1, err = root.GetMessages()[0].GetBody().UnmarshalNew() require.NoError(t, err) - require.Equal(t, "orig-val", string(update1.(*update.Request).Input.Args.Payloads[0].Data)) - update2, err = root.Messages[1].Body.UnmarshalNew() + require.Equal(t, "orig-val", string(update1.(*update.Request).GetInput().GetArgs().GetPayloads()[0].GetData())) + update2, err = root.GetMessages()[1].GetBody().UnmarshalNew() require.NoError(t, err) - require.Equal(t, "orig-val-don't-touch", string(update2.(*update.Request).Input.Args.Payloads[0].Data)) - update3, err = root.Messages[2].Body.UnmarshalNew() + require.Equal(t, "orig-val-don't-touch", string(update2.(*update.Request).GetInput().GetArgs().GetPayloads()[0].GetData())) + update3, err = root.GetMessages()[2].GetBody().UnmarshalNew() require.NoError(t, err) - require.Equal(t, "orig-val", string(update3.(*update.Response).GetOutcome().GetSuccess().Payloads[0].Data)) + require.Equal(t, "orig-val", string(update3.(*update.Response).GetOutcome().GetSuccess().GetPayloads()[0].GetData())) } func TestVisitPayloads_RepeatedAny(t *testing.T) { - msg, err := anypb.New(&update.Request{Input: &update.Input{Args: &common.Payloads{ - Payloads: []*common.Payload{{Data: []byte("orig-val")}}, - }}}) + msg, err := anypb.New(update.Request_builder{Input: update.Input_builder{Args: common.Payloads_builder{ + Payloads: []*common.Payload{common.Payload_builder{Data: []byte("orig-val")}.Build()}, + }.Build()}.Build()}.Build()) require.NoError(t, err) - root := &errordetails.MultiOperationExecutionFailure_OperationStatus{Details: []*anypb.Any{msg}} + root := errordetails.MultiOperationExecutionFailure_OperationStatus_builder{Details: []*anypb.Any{msg}}.Build() var anyCount int err = VisitPayloads(context.Background(), root, VisitPayloadsOptions{ Visitor: func(ctx *VisitPayloadsContext, p []*common.Payload) ([]*common.Payload, error) { anyCount++ // Only mutate if the payloads has "test" - if len(p) == 1 && string(p[0].Data) == "orig-val" { - return []*common.Payload{{Data: []byte("new-val")}}, nil + if len(p) == 1 && string(p[0].GetData()) == "orig-val" { + return []*common.Payload{common.Payload_builder{Data: []byte("new-val")}.Build()}, nil } return p, nil }, }) require.NoError(t, err) require.Equal(t, 1, anyCount) - update1, err := root.Details[0].UnmarshalNew() + update1, err := root.GetDetails()[0].UnmarshalNew() require.NoError(t, err) - require.Equal(t, "new-val", string(update1.(*update.Request).Input.Args.Payloads[0].Data)) + require.Equal(t, "new-val", string(update1.(*update.Request).GetInput().GetArgs().GetPayloads()[0].GetData())) } func TestVisitFailures(t *testing.T) { @@ -296,9 +288,9 @@ func TestVisitFailures(t *testing.T) { err := VisitFailures( context.Background(), - &workflowservice.RespondActivityTaskFailedRequest{ + workflowservice.RespondActivityTaskFailedRequest_builder{ Failure: fail, - }, + }.Build(), VisitFailuresOptions{ Visitor: func(vfc *VisitFailuresContext, f *failure.Failure) error { require.Equal(fail, f) @@ -308,14 +300,14 @@ func TestVisitFailures(t *testing.T) { ) require.NoError(err) - nestedFailure := &failure.Failure{Cause: fail} + nestedFailure := failure.Failure_builder{Cause: fail}.Build() failureCount := 0 err = VisitFailures( context.Background(), - &workflowservice.RespondActivityTaskFailedRequest{ + workflowservice.RespondActivityTaskFailedRequest_builder{ Failure: nestedFailure, - }, + }.Build(), VisitFailuresOptions{ Visitor: func(vfc *VisitFailuresContext, f *failure.Failure) error { failureCount += 1 @@ -330,18 +322,16 @@ func TestVisitFailures(t *testing.T) { func TestVisitFailuresAny(t *testing.T) { require := require.New(t) - fail := &failure.Failure{ + fail := failure.Failure_builder{ Message: "test failure", - } + }.Build() - msg, err := anypb.New(&update.Response{Outcome: &update.Outcome{Value: &update.Outcome_Failure{ - Failure: fail, - }}}) + msg, err := anypb.New(update.Response_builder{Outcome: update.Outcome_builder{Failure: proto.ValueOrDefault(fail)}.Build()}.Build()) require.NoError(err) - req := &workflowservice.RespondWorkflowTaskCompletedRequest{ - Messages: []*protocol.Message{{Body: msg}}, - } + req := workflowservice.RespondWorkflowTaskCompletedRequest_builder{ + Messages: []*protocol.Message{protocol.Message_builder{Body: msg}.Build()}, + }.Build() failureCount := 0 err = VisitFailures( context.Background(), @@ -349,9 +339,9 @@ func TestVisitFailuresAny(t *testing.T) { VisitFailuresOptions{ Visitor: func(vfc *VisitFailuresContext, f *failure.Failure) error { failureCount += 1 - require.Equal("test failure", f.Message) - f.EncodedAttributes = &common.Payload{Data: []byte("test failure")} - f.Message = "encoded failure" + require.Equal("test failure", f.GetMessage()) + f.SetEncodedAttributes(common.Payload_builder{Data: []byte("test failure")}.Build()) + f.SetMessage("encoded failure") return nil }, }, @@ -361,7 +351,7 @@ func TestVisitFailuresAny(t *testing.T) { updateMsg, err := req.GetMessages()[0].GetBody().UnmarshalNew() require.NoError(err) require.Equal("encoded failure", updateMsg.(*update.Response).GetOutcome().GetFailure().GetMessage()) - require.Equal("test failure", string(updateMsg.(*update.Response).GetOutcome().GetFailure().EncodedAttributes.Data)) + require.Equal("test failure", string(updateMsg.(*update.Response).GetOutcome().GetFailure().GetEncodedAttributes().GetData())) } @@ -404,13 +394,13 @@ func TestClientInterceptor(t *testing.T) { _, err = client.StartWorkflowExecution( context.Background(), - &workflowservice.StartWorkflowExecutionRequest{ + workflowservice.StartWorkflowExecutionRequest_builder{ Input: inputPayloads(), - }, + }.Build(), ) require.NoError(err) - require.True(proto.Equal(inputs.Payloads[0], outboundPayload)) + require.True(proto.Equal(inputs.GetPayloads()[0], outboundPayload)) _, err = client.PollActivityTaskQueue( context.Background(), @@ -418,7 +408,7 @@ func TestClientInterceptor(t *testing.T) { ) require.NoError(err) - require.True(proto.Equal(inputs.Payloads[0], inboundPayload)) + require.True(proto.Equal(inputs.GetPayloads()[0], inboundPayload)) } func TestClientInterceptorGrpcFailures(t *testing.T) { @@ -437,7 +427,7 @@ func TestClientInterceptorGrpcFailures(t *testing.T) { Inbound: &VisitPayloadsOptions{ Visitor: func(vpc *VisitPayloadsContext, payloads []*common.Payload) ([]*common.Payload, error) { inboundPayload = payloads[0] - payloads[0] = &common.Payload{Data: []byte("new-val")} + payloads[0] = common.Payload_builder{Data: []byte("new-val")}.Build() return payloads, nil }, }, @@ -448,8 +438,8 @@ func TestClientInterceptorGrpcFailures(t *testing.T) { failureInterceptor, err := NewFailureVisitorInterceptor( FailureVisitorInterceptorOptions{ Inbound: &VisitFailuresOptions{Visitor: func(vpc *VisitFailuresContext, f *failure.Failure) error { - inboundFailure = f.Message - f.Message = failureMessage + inboundFailure = f.GetMessage() + f.SetMessage(failureMessage) return nil }}, }) @@ -465,9 +455,9 @@ func TestClientInterceptorGrpcFailures(t *testing.T) { _, err = client.StartWorkflowExecution( context.Background(), - &workflowservice.StartWorkflowExecutionRequest{ + workflowservice.StartWorkflowExecutionRequest_builder{ Input: inputPayloads(), - }, + }.Build(), ) require.NoError(err) @@ -475,18 +465,18 @@ func TestClientInterceptorGrpcFailures(t *testing.T) { // We expect that even though an error is returned, the Payload visitor visited the payload // included in the GRPC error details require.Error(err) - require.True(proto.Equal(inputs.Payloads[0], inboundPayload)) + require.True(proto.Equal(inputs.GetPayloads()[0], inboundPayload)) stat, ok := status.FromError(err) require.True(ok) for _, detail := range stat.Details() { multiOpFailure, ok := detail.(*errordetails.MultiOperationExecutionFailure) require.True(ok) payloads := &common.Payloads{} - err = multiOpFailure.Statuses[0].Details[0].UnmarshalTo(payloads) + err = multiOpFailure.GetStatuses()[0].GetDetails()[0].UnmarshalTo(payloads) require.NoError(err) - newPayload := &common.Payload{Data: []byte("new-val")} - require.True(proto.Equal(payloads.Payloads[0], newPayload)) + newPayload := common.Payload_builder{Data: []byte("new-val")}.Build() + require.True(proto.Equal(payloads.GetPayloads()[0], newPayload)) } _, err = client.QueryWorkflow(context.Background(), &workflowservice.QueryWorkflowRequest{}) @@ -497,7 +487,7 @@ func TestClientInterceptorGrpcFailures(t *testing.T) { for _, detail := range stat.Details() { queryFailure, ok := detail.(*errordetails.QueryFailedFailure) require.True(ok) - require.Equal(failureMessage, queryFailure.Failure.Message) + require.Equal(failureMessage, queryFailure.GetFailure().GetMessage()) } } @@ -576,9 +566,9 @@ func (t *testGRPCServer) PollActivityTaskQueue( ctx context.Context, req *workflowservice.PollActivityTaskQueueRequest, ) (*workflowservice.PollActivityTaskQueueResponse, error) { - return &workflowservice.PollActivityTaskQueueResponse{ + return workflowservice.PollActivityTaskQueueResponse_builder{ Input: inputPayloads(), - }, nil + }.Build(), nil } func (t *testGRPCServer) ExecuteMultiOperation( @@ -588,13 +578,13 @@ func (t *testGRPCServer) ExecuteMultiOperation( if err != nil { return nil, err } - operationStatus := &errordetails.MultiOperationExecutionFailure_OperationStatus{Details: []*anypb.Any{anyDetail}} - multiOpFailure := errordetails.MultiOperationExecutionFailure{ + operationStatus := errordetails.MultiOperationExecutionFailure_OperationStatus_builder{Details: []*anypb.Any{anyDetail}}.Build() + multiOpFailure := errordetails.MultiOperationExecutionFailure_builder{ Statuses: []*errordetails.MultiOperationExecutionFailure_OperationStatus{operationStatus}, - } + }.Build() st := status.New(codes.Internal, "Operation failed due to a user error") - stWithDetails, err := st.WithDetails(&multiOpFailure) + stWithDetails, err := st.WithDetails(multiOpFailure) if err != nil { return nil, st.Err() } @@ -605,14 +595,14 @@ func (t *testGRPCServer) ExecuteMultiOperation( func (t *testGRPCServer) QueryWorkflow( ctx context.Context, req *workflowservice.QueryWorkflowRequest) (*workflowservice.QueryWorkflowResponse, error) { - failureMessage := failure.Failure{ + failureMessage := failure.Failure_builder{ Message: "test failure", - } - queryFailure := errordetails.QueryFailedFailure{Failure: &failureMessage} + }.Build() + queryFailure := errordetails.QueryFailedFailure_builder{Failure: failureMessage}.Build() st := status.New(codes.Internal, "Operation failed due to a user error") - stWithDetails, err := st.WithDetails(&queryFailure) + stWithDetails, err := st.WithDetails(queryFailure) if err != nil { return nil, st.Err() } @@ -651,9 +641,9 @@ func populatePayload(root *proto.Message, msg proto.Message, require *require.As if i.TypeUrl == "" { // Set to a random proto struct we know contains a payload, to test if we // are able to recurse through Any to reach a payload - newAny, err := anypb.New(&update.Request{Input: &update.Input{Args: &common.Payloads{ - Payloads: []*common.Payload{{Data: []byte("orig-val")}}, - }}}) + newAny, err := anypb.New(update.Request_builder{Input: update.Input_builder{Args: common.Payloads_builder{ + Payloads: []*common.Payload{common.Payload_builder{Data: []byte("orig-val")}.Build()}, + }.Build()}.Build()}.Build()) require.NoError(err) proto.Merge(msg, newAny) } diff --git a/proxy/service_util_test.go b/proxy/service_util_test.go index f49914f9..29b4864d 100644 --- a/proxy/service_util_test.go +++ b/proxy/service_util_test.go @@ -49,11 +49,11 @@ func TestProxyMetadataForward(t *testing.T) { // Make call with metadata and confirm properly set ctx := metadata.AppendToOutgoingContext(context.Background(), "my-header", "my-header-value") - _, err = client.StartWorkflowExecution(ctx, &workflowservice.StartWorkflowExecutionRequest{ - WorkflowType: &common.WorkflowType{Name: "my-workflow-1"}, - }) + _, err = client.StartWorkflowExecution(ctx, workflowservice.StartWorkflowExecutionRequest_builder{ + WorkflowType: common.WorkflowType_builder{Name: "my-workflow-1"}.Build(), + }.Build()) require.NoError(t, err) - require.Equal(t, "my-workflow-1", endSrv.startWorkflowExecutionRequest.WorkflowType.Name) + require.Equal(t, "my-workflow-1", endSrv.startWorkflowExecutionRequest.GetWorkflowType().GetName()) require.Equal(t, []string{"my-header-value"}, endSrv.startWorkflowExecutionMetadata.Get("my-header")) // Also make sure that authority is proper and didn't get overridden require.Equal(t, []string{endSrv.addr}, endSrv.startWorkflowExecutionMetadata.Get(":authority")) diff --git a/serviceerror/activity_execution_already_started.go b/serviceerror/activity_execution_already_started.go index 23680f65..1efc27ae 100644 --- a/serviceerror/activity_execution_already_started.go +++ b/serviceerror/activity_execution_already_started.go @@ -49,10 +49,10 @@ func (e *ActivityExecutionAlreadyStarted) Status() *status.Status { st := status.New(codes.AlreadyExists, e.Message) st, _ = st.WithDetails( - &errordetails.ActivityExecutionAlreadyStartedFailure{ + errordetails.ActivityExecutionAlreadyStartedFailure_builder{ StartRequestId: e.StartRequestId, RunId: e.RunId, - }, + }.Build(), ) return st } diff --git a/serviceerror/client_version_not_supported.go b/serviceerror/client_version_not_supported.go index e6d800e9..a62b8c16 100644 --- a/serviceerror/client_version_not_supported.go +++ b/serviceerror/client_version_not_supported.go @@ -52,11 +52,11 @@ func (e *ClientVersionNotSupported) Status() *status.Status { st := status.New(codes.FailedPrecondition, e.Message) st, _ = st.WithDetails( - &errordetails.ClientVersionNotSupportedFailure{ + errordetails.ClientVersionNotSupportedFailure_builder{ ClientVersion: e.ClientVersion, ClientName: e.ClientName, SupportedVersions: e.SupportedVersions, - }, + }.Build(), ) return st } diff --git a/serviceerror/convert.go b/serviceerror/convert.go index 3ceb50f2..23f3aff2 100644 --- a/serviceerror/convert.go +++ b/serviceerror/convert.go @@ -55,12 +55,12 @@ func FromStatus(st *status.Status) error { // Special case: MultiOperation error can have any status code. if err, ok := errDetails.(*errordetails.MultiOperationExecutionFailure); ok { - errs := make([]error, len(err.Statuses)) - for i, opStatus := range err.Statuses { + errs := make([]error, len(err.GetStatuses())) + for i, opStatus := range err.GetStatuses() { errs[i] = FromStatus(status.FromProto(&spb.Status{ - Code: opStatus.Code, - Message: opStatus.Message, - Details: opStatus.Details, + Code: opStatus.GetCode(), + Message: opStatus.GetMessage(), + Details: opStatus.GetDetails(), })) } return newMultiOperationExecution(st, errs) diff --git a/serviceerror/convert_test.go b/serviceerror/convert_test.go index 89c53344..a71b972f 100644 --- a/serviceerror/convert_test.go +++ b/serviceerror/convert_test.go @@ -28,9 +28,9 @@ func TestFromStatus_NotFound(t *testing.T) { require.Equal(t, "Not found.", err1.(*serviceerror.NotFound).Message) st2 := status.New(codes.NotFound, "Not found.") - st2, err = st1.WithDetails(&errordetails.NamespaceNotFoundFailure{ + st2, err = st1.WithDetails(errordetails.NamespaceNotFoundFailure_builder{ Namespace: "test-ns", - }) + }.Build()) require.NoError(t, err) err2 := serviceerror.FromStatus(st2) require.IsType(t, &serviceerror.NamespaceNotFound{}, err2) @@ -93,13 +93,13 @@ func TestMultiOperationExecution(t *testing.T) { require.Len(t, st.Details(), 1) failure := st.Details()[0].(*errordetails.MultiOperationExecutionFailure) - st1 := failure.Statuses[0] + st1 := failure.GetStatuses()[0] require.Equal(t, int32(codes.Aborted), st1.GetCode()) require.Equal(t, "Operation was aborted.", st1.GetMessage()) - st2 := failure.Statuses[1] + st2 := failure.GetStatuses()[1] require.Equal(t, int32(codes.InvalidArgument), st2.GetCode()) require.Equal(t, "invalid arg", st2.GetMessage()) - st3 := failure.Statuses[2] + st3 := failure.GetStatuses()[2] require.Equal(t, int32(codes.Aborted), st3.GetCode()) require.Equal(t, "Operation was aborted.", st3.GetMessage()) @@ -130,7 +130,7 @@ func TestMultiOperationExecution(t *testing.T) { require.Equal(t, codes.Aborted, st.Code()) require.Equal(t, err.Error(), st.Message()) require.Len(t, st.Details(), 1) - require.Empty(t, st.Details()[0].(*errordetails.MultiOperationExecutionFailure).Statuses) + require.Empty(t, st.Details()[0].(*errordetails.MultiOperationExecutionFailure).GetStatuses()) }) } @@ -201,6 +201,6 @@ func TestFromWrapped(t *testing.T) { require.Equal(t, codes.PermissionDenied, s.Code()) require.Equal(t, "wrapped error: x is not allowed", s.Message()) require.True(t, proto.Equal( - &errordetails.PermissionDeniedFailure{Reason: "arbitrary reason"}, + errordetails.PermissionDeniedFailure_builder{Reason: "arbitrary reason"}.Build(), s.Details()[0].(*errordetails.PermissionDeniedFailure))) } diff --git a/serviceerror/multi_op.go b/serviceerror/multi_op.go index 752c4b02..bff113b1 100644 --- a/serviceerror/multi_op.go +++ b/serviceerror/multi_op.go @@ -37,9 +37,7 @@ func (e *MultiOperationExecution) OperationErrors() []error { func (e *MultiOperationExecution) Status() *status.Status { var code *codes.Code - failure := &errordetails.MultiOperationExecutionFailure{ - Statuses: make([]*errordetails.MultiOperationExecutionFailure_OperationStatus, len(e.errs)), - } + statuses := make([]*errordetails.MultiOperationExecutionFailure_OperationStatus, len(e.errs)) var abortedErr *MultiOperationAborted for i, err := range e.errs { @@ -51,11 +49,11 @@ func (e *MultiOperationExecution) Status() *status.Status { code = &c } - failure.Statuses[i] = &errordetails.MultiOperationExecutionFailure_OperationStatus{ + statuses[i] = errordetails.MultiOperationExecutionFailure_OperationStatus_builder{ Code: int32(st.Code()), Message: st.Message(), Details: st.Proto().Details, - } + }.Build() } // this should never happen, but it's better to set it to `Aborted` than to panic @@ -64,6 +62,9 @@ func (e *MultiOperationExecution) Status() *status.Status { code = &c } + failure := errordetails.MultiOperationExecutionFailure_builder{ + Statuses: statuses, + }.Build() st := status.New(*code, e.Error()) st, _ = st.WithDetails(failure) return st diff --git a/serviceerror/namespace_invalid_state.go b/serviceerror/namespace_invalid_state.go index a729119c..facb684c 100644 --- a/serviceerror/namespace_invalid_state.go +++ b/serviceerror/namespace_invalid_state.go @@ -52,11 +52,11 @@ func (e *NamespaceInvalidState) Status() *status.Status { st := status.New(codes.FailedPrecondition, e.Message) st, _ = st.WithDetails( - &errordetails.NamespaceInvalidStateFailure{ + errordetails.NamespaceInvalidStateFailure_builder{ Namespace: e.Namespace, State: e.State, AllowedStates: e.AllowedStates, - }, + }.Build(), ) return st } diff --git a/serviceerror/namespace_not_active.go b/serviceerror/namespace_not_active.go index e15931b7..d4c23523 100644 --- a/serviceerror/namespace_not_active.go +++ b/serviceerror/namespace_not_active.go @@ -47,11 +47,11 @@ func (e *NamespaceNotActive) Status() *status.Status { st := status.New(codes.FailedPrecondition, e.Message) st, _ = st.WithDetails( - &errordetails.NamespaceNotActiveFailure{ + errordetails.NamespaceNotActiveFailure_builder{ Namespace: e.Namespace, CurrentCluster: e.CurrentCluster, ActiveCluster: e.ActiveCluster, - }, + }.Build(), ) return st } diff --git a/serviceerror/namespace_not_found.go b/serviceerror/namespace_not_found.go index c40eaada..1908d5ed 100644 --- a/serviceerror/namespace_not_found.go +++ b/serviceerror/namespace_not_found.go @@ -41,9 +41,9 @@ func (e *NamespaceNotFound) Status() *status.Status { st := status.New(codes.NotFound, e.Message) st, _ = st.WithDetails( - &errordetails.NamespaceNotFoundFailure{ + errordetails.NamespaceNotFoundFailure_builder{ Namespace: e.Namespace, - }, + }.Build(), ) return st } diff --git a/serviceerror/namespace_unavailable.go b/serviceerror/namespace_unavailable.go index 8b7357da..59b30530 100644 --- a/serviceerror/namespace_unavailable.go +++ b/serviceerror/namespace_unavailable.go @@ -44,9 +44,9 @@ func (e *NamespaceUnavailable) Status() *status.Status { st := status.New(codes.Unavailable, e.Error()) // We seem to be okay ignoring these errors everywhere else, doing this here too. st, _ = st.WithDetails( - &errordetails.NamespaceUnavailableFailure{ + errordetails.NamespaceUnavailableFailure_builder{ Namespace: e.Namespace, - }, + }.Build(), ) return st } diff --git a/serviceerror/newer_build_exists.go b/serviceerror/newer_build_exists.go index 271a5554..cc3ff90d 100644 --- a/serviceerror/newer_build_exists.go +++ b/serviceerror/newer_build_exists.go @@ -39,9 +39,9 @@ func (e *NewerBuildExists) Status() *status.Status { st := status.New(codes.OutOfRange, e.Message) st, _ = st.WithDetails( - &errordetails.NewerBuildExistsFailure{ + errordetails.NewerBuildExistsFailure_builder{ DefaultBuildId: e.DefaultBuildID, - }, + }.Build(), ) return st } diff --git a/serviceerror/not_found.go b/serviceerror/not_found.go index f9e65c5d..08c60032 100644 --- a/serviceerror/not_found.go +++ b/serviceerror/not_found.go @@ -45,10 +45,10 @@ func (e *NotFound) Status() *status.Status { st := status.New(codes.NotFound, e.Message) st, _ = st.WithDetails( - &errordetails.NotFoundFailure{ + errordetails.NotFoundFailure_builder{ CurrentCluster: e.CurrentCluster, ActiveCluster: e.ActiveCluster, - }, + }.Build(), ) return st } diff --git a/serviceerror/permission_denied.go b/serviceerror/permission_denied.go index aa855793..ece4276a 100644 --- a/serviceerror/permission_denied.go +++ b/serviceerror/permission_denied.go @@ -45,9 +45,9 @@ func (e *PermissionDenied) Status() *status.Status { st := status.New(codes.PermissionDenied, e.Message) st, _ = st.WithDetails( - &errordetails.PermissionDeniedFailure{ + errordetails.PermissionDeniedFailure_builder{ Reason: e.Reason, - }, + }.Build(), ) return st } diff --git a/serviceerror/query_failed.go b/serviceerror/query_failed.go index 4ce10065..9cc2a67b 100644 --- a/serviceerror/query_failed.go +++ b/serviceerror/query_failed.go @@ -62,9 +62,9 @@ func (e *QueryFailed) Status() *status.Status { st := status.New(codes.InvalidArgument, e.Message) st, _ = st.WithDetails( - &errordetails.QueryFailedFailure{ + errordetails.QueryFailedFailure_builder{ Failure: e.Failure, - }, + }.Build(), ) return st } @@ -72,7 +72,7 @@ func (e *QueryFailed) Status() *status.Status { func newQueryFailed(st *status.Status, errDetails *errordetails.QueryFailedFailure) error { return &QueryFailed{ Message: st.Message(), - Failure: errDetails.Failure, + Failure: errDetails.GetFailure(), st: st, } } diff --git a/serviceerror/resource_exhausted.go b/serviceerror/resource_exhausted.go index faeb3a3e..e04b3607 100644 --- a/serviceerror/resource_exhausted.go +++ b/serviceerror/resource_exhausted.go @@ -48,10 +48,10 @@ func (e *ResourceExhausted) Status() *status.Status { st := status.New(codes.ResourceExhausted, e.Message) st, _ = st.WithDetails( - &errordetails.ResourceExhaustedFailure{ + errordetails.ResourceExhaustedFailure_builder{ Cause: e.Cause, Scope: e.Scope, - }, + }.Build(), ) return st } diff --git a/serviceerror/server_version_not_supported.go b/serviceerror/server_version_not_supported.go index 7f427eea..6b925a24 100644 --- a/serviceerror/server_version_not_supported.go +++ b/serviceerror/server_version_not_supported.go @@ -40,10 +40,10 @@ func (e *ServerVersionNotSupported) Status() *status.Status { st := status.New(codes.FailedPrecondition, e.Message) st, _ = st.WithDetails( - &errordetails.ServerVersionNotSupportedFailure{ + errordetails.ServerVersionNotSupportedFailure_builder{ ServerVersion: e.ServerVersion, ClientSupportedServerVersions: e.ClientSupportedServerVersions, - }, + }.Build(), ) return st } diff --git a/serviceerror/system_workflow.go b/serviceerror/system_workflow.go index 58d62aaf..9311632a 100644 --- a/serviceerror/system_workflow.go +++ b/serviceerror/system_workflow.go @@ -39,7 +39,7 @@ func NewSystemWorkflowf(workflowExecution *common.WorkflowExecution, format stri func (e *SystemWorkflow) Error() string { execution := e.WorkflowExecution return fmt.Sprintf("System Workflow with WorkflowId %s and RunId %s returned an error: %s", - execution.WorkflowId, execution.RunId, e.WorkflowError) + execution.GetWorkflowId(), execution.GetRunId(), e.WorkflowError) } func (e *SystemWorkflow) Status() *status.Status { @@ -49,18 +49,18 @@ func (e *SystemWorkflow) Status() *status.Status { st := status.New(codes.Internal, e.Error()) st, _ = st.WithDetails( - &errordetails.SystemWorkflowFailure{ + errordetails.SystemWorkflowFailure_builder{ WorkflowExecution: e.WorkflowExecution, WorkflowError: e.WorkflowError, - }, + }.Build(), ) return st } func newSystemWorkflow(st *status.Status, errDetails *errordetails.SystemWorkflowFailure) error { return &SystemWorkflow{ - WorkflowExecution: errDetails.WorkflowExecution, - WorkflowError: errDetails.WorkflowError, + WorkflowExecution: errDetails.GetWorkflowExecution(), + WorkflowError: errDetails.GetWorkflowError(), st: st, } } diff --git a/serviceerror/workflow_execution_already_started.go b/serviceerror/workflow_execution_already_started.go index 9bf8bba2..e4a05b94 100644 --- a/serviceerror/workflow_execution_already_started.go +++ b/serviceerror/workflow_execution_already_started.go @@ -49,10 +49,10 @@ func (e *WorkflowExecutionAlreadyStarted) Status() *status.Status { st := status.New(codes.AlreadyExists, e.Message) st, _ = st.WithDetails( - &errordetails.WorkflowExecutionAlreadyStartedFailure{ + errordetails.WorkflowExecutionAlreadyStartedFailure_builder{ StartRequestId: e.StartRequestId, RunId: e.RunId, - }, + }.Build(), ) return st } diff --git a/workflowservice/v1/service.pb.gw.go b/workflowservice/v1/service.pb.gw.go index 63ea2e54..01ffba1d 100644 --- a/workflowservice/v1/service.pb.gw.go +++ b/workflowservice/v1/service.pb.gw.go @@ -104,10 +104,11 @@ func request_WorkflowService_DescribeNamespace_0(ctx context.Context, marshaler if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -128,10 +129,11 @@ func local_request_WorkflowService_DescribeNamespace_0(ctx context.Context, mars if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -157,10 +159,11 @@ func request_WorkflowService_DescribeNamespace_1(ctx context.Context, marshaler if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -181,10 +184,11 @@ func local_request_WorkflowService_DescribeNamespace_1(ctx context.Context, mars if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -281,10 +285,11 @@ func request_WorkflowService_UpdateNamespace_0(ctx context.Context, marshaler ru if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := client.UpdateNamespace(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -302,10 +307,11 @@ func local_request_WorkflowService_UpdateNamespace_0(ctx context.Context, marsha if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := server.UpdateNamespace(ctx, &protoReq) return msg, metadata, err } @@ -326,10 +332,11 @@ func request_WorkflowService_UpdateNamespace_1(ctx context.Context, marshaler ru if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := client.UpdateNamespace(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -347,10 +354,11 @@ func local_request_WorkflowService_UpdateNamespace_1(ctx context.Context, marsha if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := server.UpdateNamespace(ctx, &protoReq) return msg, metadata, err } @@ -371,18 +379,20 @@ func request_WorkflowService_StartWorkflowExecution_0(ctx context.Context, marsh if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["workflow_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_id") } - protoReq.WorkflowId, err = runtime.String(val) + workflowIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow_id", err) } + protoReq.SetWorkflowId(workflowIdVal) msg, err := client.StartWorkflowExecution(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -400,18 +410,20 @@ func local_request_WorkflowService_StartWorkflowExecution_0(ctx context.Context, if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["workflow_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_id") } - protoReq.WorkflowId, err = runtime.String(val) + workflowIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow_id", err) } + protoReq.SetWorkflowId(workflowIdVal) msg, err := server.StartWorkflowExecution(ctx, &protoReq) return msg, metadata, err } @@ -432,18 +444,20 @@ func request_WorkflowService_StartWorkflowExecution_1(ctx context.Context, marsh if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["workflow_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_id") } - protoReq.WorkflowId, err = runtime.String(val) + workflowIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow_id", err) } + protoReq.SetWorkflowId(workflowIdVal) msg, err := client.StartWorkflowExecution(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -461,18 +475,20 @@ func local_request_WorkflowService_StartWorkflowExecution_1(ctx context.Context, if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["workflow_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_id") } - protoReq.WorkflowId, err = runtime.String(val) + workflowIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow_id", err) } + protoReq.SetWorkflowId(workflowIdVal) msg, err := server.StartWorkflowExecution(ctx, &protoReq) return msg, metadata, err } @@ -493,10 +509,11 @@ func request_WorkflowService_ExecuteMultiOperation_0(ctx context.Context, marsha if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := client.ExecuteMultiOperation(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -514,10 +531,11 @@ func local_request_WorkflowService_ExecuteMultiOperation_0(ctx context.Context, if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := server.ExecuteMultiOperation(ctx, &protoReq) return msg, metadata, err } @@ -538,10 +556,11 @@ func request_WorkflowService_ExecuteMultiOperation_1(ctx context.Context, marsha if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := client.ExecuteMultiOperation(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -559,10 +578,11 @@ func local_request_WorkflowService_ExecuteMultiOperation_1(ctx context.Context, if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := server.ExecuteMultiOperation(ctx, &protoReq) return msg, metadata, err } @@ -582,10 +602,11 @@ func request_WorkflowService_GetWorkflowExecutionHistory_0(ctx context.Context, if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["execution.workflow_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "execution.workflow_id") @@ -614,10 +635,11 @@ func local_request_WorkflowService_GetWorkflowExecutionHistory_0(ctx context.Con if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["execution.workflow_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "execution.workflow_id") @@ -651,10 +673,11 @@ func request_WorkflowService_GetWorkflowExecutionHistory_1(ctx context.Context, if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["execution.workflow_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "execution.workflow_id") @@ -683,10 +706,11 @@ func local_request_WorkflowService_GetWorkflowExecutionHistory_1(ctx context.Con if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["execution.workflow_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "execution.workflow_id") @@ -720,10 +744,11 @@ func request_WorkflowService_GetWorkflowExecutionHistoryReverse_0(ctx context.Co if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["execution.workflow_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "execution.workflow_id") @@ -752,10 +777,11 @@ func local_request_WorkflowService_GetWorkflowExecutionHistoryReverse_0(ctx cont if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["execution.workflow_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "execution.workflow_id") @@ -789,10 +815,11 @@ func request_WorkflowService_GetWorkflowExecutionHistoryReverse_1(ctx context.Co if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["execution.workflow_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "execution.workflow_id") @@ -821,10 +848,11 @@ func local_request_WorkflowService_GetWorkflowExecutionHistoryReverse_1(ctx cont if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["execution.workflow_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "execution.workflow_id") @@ -859,10 +887,11 @@ func request_WorkflowService_RecordActivityTaskHeartbeat_0(ctx context.Context, if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := client.RecordActivityTaskHeartbeat(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -880,10 +909,11 @@ func local_request_WorkflowService_RecordActivityTaskHeartbeat_0(ctx context.Con if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := server.RecordActivityTaskHeartbeat(ctx, &protoReq) return msg, metadata, err } @@ -904,10 +934,11 @@ func request_WorkflowService_RecordActivityTaskHeartbeat_1(ctx context.Context, if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := client.RecordActivityTaskHeartbeat(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -925,10 +956,11 @@ func local_request_WorkflowService_RecordActivityTaskHeartbeat_1(ctx context.Con if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := server.RecordActivityTaskHeartbeat(ctx, &protoReq) return msg, metadata, err } @@ -949,10 +981,11 @@ func request_WorkflowService_RecordActivityTaskHeartbeatById_0(ctx context.Conte if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := client.RecordActivityTaskHeartbeatById(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -970,10 +1003,11 @@ func local_request_WorkflowService_RecordActivityTaskHeartbeatById_0(ctx context if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := server.RecordActivityTaskHeartbeatById(ctx, &protoReq) return msg, metadata, err } @@ -994,10 +1028,11 @@ func request_WorkflowService_RecordActivityTaskHeartbeatById_1(ctx context.Conte if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := client.RecordActivityTaskHeartbeatById(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -1015,10 +1050,11 @@ func local_request_WorkflowService_RecordActivityTaskHeartbeatById_1(ctx context if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := server.RecordActivityTaskHeartbeatById(ctx, &protoReq) return msg, metadata, err } @@ -1039,10 +1075,11 @@ func request_WorkflowService_RespondActivityTaskCompleted_0(ctx context.Context, if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := client.RespondActivityTaskCompleted(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -1060,10 +1097,11 @@ func local_request_WorkflowService_RespondActivityTaskCompleted_0(ctx context.Co if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := server.RespondActivityTaskCompleted(ctx, &protoReq) return msg, metadata, err } @@ -1084,10 +1122,11 @@ func request_WorkflowService_RespondActivityTaskCompleted_1(ctx context.Context, if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := client.RespondActivityTaskCompleted(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -1105,10 +1144,11 @@ func local_request_WorkflowService_RespondActivityTaskCompleted_1(ctx context.Co if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := server.RespondActivityTaskCompleted(ctx, &protoReq) return msg, metadata, err } @@ -1129,10 +1169,11 @@ func request_WorkflowService_RespondActivityTaskCompletedById_0(ctx context.Cont if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := client.RespondActivityTaskCompletedById(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -1150,10 +1191,11 @@ func local_request_WorkflowService_RespondActivityTaskCompletedById_0(ctx contex if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := server.RespondActivityTaskCompletedById(ctx, &protoReq) return msg, metadata, err } @@ -1174,10 +1216,11 @@ func request_WorkflowService_RespondActivityTaskCompletedById_1(ctx context.Cont if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := client.RespondActivityTaskCompletedById(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -1195,10 +1238,11 @@ func local_request_WorkflowService_RespondActivityTaskCompletedById_1(ctx contex if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := server.RespondActivityTaskCompletedById(ctx, &protoReq) return msg, metadata, err } @@ -1219,10 +1263,11 @@ func request_WorkflowService_RespondActivityTaskFailed_0(ctx context.Context, ma if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := client.RespondActivityTaskFailed(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -1240,10 +1285,11 @@ func local_request_WorkflowService_RespondActivityTaskFailed_0(ctx context.Conte if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := server.RespondActivityTaskFailed(ctx, &protoReq) return msg, metadata, err } @@ -1264,10 +1310,11 @@ func request_WorkflowService_RespondActivityTaskFailed_1(ctx context.Context, ma if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := client.RespondActivityTaskFailed(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -1285,10 +1332,11 @@ func local_request_WorkflowService_RespondActivityTaskFailed_1(ctx context.Conte if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := server.RespondActivityTaskFailed(ctx, &protoReq) return msg, metadata, err } @@ -1309,10 +1357,11 @@ func request_WorkflowService_RespondActivityTaskFailedById_0(ctx context.Context if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := client.RespondActivityTaskFailedById(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -1330,10 +1379,11 @@ func local_request_WorkflowService_RespondActivityTaskFailedById_0(ctx context.C if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := server.RespondActivityTaskFailedById(ctx, &protoReq) return msg, metadata, err } @@ -1354,10 +1404,11 @@ func request_WorkflowService_RespondActivityTaskFailedById_1(ctx context.Context if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := client.RespondActivityTaskFailedById(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -1375,10 +1426,11 @@ func local_request_WorkflowService_RespondActivityTaskFailedById_1(ctx context.C if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := server.RespondActivityTaskFailedById(ctx, &protoReq) return msg, metadata, err } @@ -1399,10 +1451,11 @@ func request_WorkflowService_RespondActivityTaskCanceled_0(ctx context.Context, if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := client.RespondActivityTaskCanceled(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -1420,10 +1473,11 @@ func local_request_WorkflowService_RespondActivityTaskCanceled_0(ctx context.Con if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := server.RespondActivityTaskCanceled(ctx, &protoReq) return msg, metadata, err } @@ -1444,10 +1498,11 @@ func request_WorkflowService_RespondActivityTaskCanceled_1(ctx context.Context, if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := client.RespondActivityTaskCanceled(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -1465,10 +1520,11 @@ func local_request_WorkflowService_RespondActivityTaskCanceled_1(ctx context.Con if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := server.RespondActivityTaskCanceled(ctx, &protoReq) return msg, metadata, err } @@ -1489,10 +1545,11 @@ func request_WorkflowService_RespondActivityTaskCanceledById_0(ctx context.Conte if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := client.RespondActivityTaskCanceledById(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -1510,10 +1567,11 @@ func local_request_WorkflowService_RespondActivityTaskCanceledById_0(ctx context if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := server.RespondActivityTaskCanceledById(ctx, &protoReq) return msg, metadata, err } @@ -1534,10 +1592,11 @@ func request_WorkflowService_RespondActivityTaskCanceledById_1(ctx context.Conte if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := client.RespondActivityTaskCanceledById(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -1555,10 +1614,11 @@ func local_request_WorkflowService_RespondActivityTaskCanceledById_1(ctx context if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := server.RespondActivityTaskCanceledById(ctx, &protoReq) return msg, metadata, err } @@ -1579,10 +1639,11 @@ func request_WorkflowService_RequestCancelWorkflowExecution_0(ctx context.Contex if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["workflow_execution.workflow_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_execution.workflow_id") @@ -1608,10 +1669,11 @@ func local_request_WorkflowService_RequestCancelWorkflowExecution_0(ctx context. if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["workflow_execution.workflow_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_execution.workflow_id") @@ -1640,10 +1702,11 @@ func request_WorkflowService_RequestCancelWorkflowExecution_1(ctx context.Contex if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["workflow_execution.workflow_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_execution.workflow_id") @@ -1669,10 +1732,11 @@ func local_request_WorkflowService_RequestCancelWorkflowExecution_1(ctx context. if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["workflow_execution.workflow_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_execution.workflow_id") @@ -1701,10 +1765,11 @@ func request_WorkflowService_SignalWorkflowExecution_0(ctx context.Context, mars if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["workflow_execution.workflow_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_execution.workflow_id") @@ -1717,10 +1782,11 @@ func request_WorkflowService_SignalWorkflowExecution_0(ctx context.Context, mars if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "signal_name") } - protoReq.SignalName, err = runtime.String(val) + signalNameVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "signal_name", err) } + protoReq.SetSignalName(signalNameVal) msg, err := client.SignalWorkflowExecution(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -1738,10 +1804,11 @@ func local_request_WorkflowService_SignalWorkflowExecution_0(ctx context.Context if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["workflow_execution.workflow_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_execution.workflow_id") @@ -1754,10 +1821,11 @@ func local_request_WorkflowService_SignalWorkflowExecution_0(ctx context.Context if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "signal_name") } - protoReq.SignalName, err = runtime.String(val) + signalNameVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "signal_name", err) } + protoReq.SetSignalName(signalNameVal) msg, err := server.SignalWorkflowExecution(ctx, &protoReq) return msg, metadata, err } @@ -1778,10 +1846,11 @@ func request_WorkflowService_SignalWorkflowExecution_1(ctx context.Context, mars if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["workflow_execution.workflow_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_execution.workflow_id") @@ -1794,10 +1863,11 @@ func request_WorkflowService_SignalWorkflowExecution_1(ctx context.Context, mars if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "signal_name") } - protoReq.SignalName, err = runtime.String(val) + signalNameVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "signal_name", err) } + protoReq.SetSignalName(signalNameVal) msg, err := client.SignalWorkflowExecution(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -1815,10 +1885,11 @@ func local_request_WorkflowService_SignalWorkflowExecution_1(ctx context.Context if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["workflow_execution.workflow_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_execution.workflow_id") @@ -1831,10 +1902,11 @@ func local_request_WorkflowService_SignalWorkflowExecution_1(ctx context.Context if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "signal_name") } - protoReq.SignalName, err = runtime.String(val) + signalNameVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "signal_name", err) } + protoReq.SetSignalName(signalNameVal) msg, err := server.SignalWorkflowExecution(ctx, &protoReq) return msg, metadata, err } @@ -1855,26 +1927,29 @@ func request_WorkflowService_SignalWithStartWorkflowExecution_0(ctx context.Cont if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["workflow_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_id") } - protoReq.WorkflowId, err = runtime.String(val) + workflowIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow_id", err) } + protoReq.SetWorkflowId(workflowIdVal) val, ok = pathParams["signal_name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "signal_name") } - protoReq.SignalName, err = runtime.String(val) + signalNameVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "signal_name", err) } + protoReq.SetSignalName(signalNameVal) msg, err := client.SignalWithStartWorkflowExecution(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -1892,26 +1967,29 @@ func local_request_WorkflowService_SignalWithStartWorkflowExecution_0(ctx contex if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["workflow_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_id") } - protoReq.WorkflowId, err = runtime.String(val) + workflowIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow_id", err) } + protoReq.SetWorkflowId(workflowIdVal) val, ok = pathParams["signal_name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "signal_name") } - protoReq.SignalName, err = runtime.String(val) + signalNameVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "signal_name", err) } + protoReq.SetSignalName(signalNameVal) msg, err := server.SignalWithStartWorkflowExecution(ctx, &protoReq) return msg, metadata, err } @@ -1932,26 +2010,29 @@ func request_WorkflowService_SignalWithStartWorkflowExecution_1(ctx context.Cont if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["workflow_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_id") } - protoReq.WorkflowId, err = runtime.String(val) + workflowIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow_id", err) } + protoReq.SetWorkflowId(workflowIdVal) val, ok = pathParams["signal_name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "signal_name") } - protoReq.SignalName, err = runtime.String(val) + signalNameVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "signal_name", err) } + protoReq.SetSignalName(signalNameVal) msg, err := client.SignalWithStartWorkflowExecution(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -1969,26 +2050,29 @@ func local_request_WorkflowService_SignalWithStartWorkflowExecution_1(ctx contex if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["workflow_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_id") } - protoReq.WorkflowId, err = runtime.String(val) + workflowIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow_id", err) } + protoReq.SetWorkflowId(workflowIdVal) val, ok = pathParams["signal_name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "signal_name") } - protoReq.SignalName, err = runtime.String(val) + signalNameVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "signal_name", err) } + protoReq.SetSignalName(signalNameVal) msg, err := server.SignalWithStartWorkflowExecution(ctx, &protoReq) return msg, metadata, err } @@ -2009,10 +2093,11 @@ func request_WorkflowService_ResetWorkflowExecution_0(ctx context.Context, marsh if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["workflow_execution.workflow_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_execution.workflow_id") @@ -2038,10 +2123,11 @@ func local_request_WorkflowService_ResetWorkflowExecution_0(ctx context.Context, if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["workflow_execution.workflow_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_execution.workflow_id") @@ -2070,10 +2156,11 @@ func request_WorkflowService_ResetWorkflowExecution_1(ctx context.Context, marsh if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["workflow_execution.workflow_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_execution.workflow_id") @@ -2099,10 +2186,11 @@ func local_request_WorkflowService_ResetWorkflowExecution_1(ctx context.Context, if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["workflow_execution.workflow_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_execution.workflow_id") @@ -2131,10 +2219,11 @@ func request_WorkflowService_TerminateWorkflowExecution_0(ctx context.Context, m if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["workflow_execution.workflow_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_execution.workflow_id") @@ -2160,10 +2249,11 @@ func local_request_WorkflowService_TerminateWorkflowExecution_0(ctx context.Cont if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["workflow_execution.workflow_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_execution.workflow_id") @@ -2192,10 +2282,11 @@ func request_WorkflowService_TerminateWorkflowExecution_1(ctx context.Context, m if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["workflow_execution.workflow_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_execution.workflow_id") @@ -2221,10 +2312,11 @@ func local_request_WorkflowService_TerminateWorkflowExecution_1(ctx context.Cont if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["workflow_execution.workflow_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_execution.workflow_id") @@ -2252,10 +2344,11 @@ func request_WorkflowService_ListWorkflowExecutions_0(ctx context.Context, marsh if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -2276,10 +2369,11 @@ func local_request_WorkflowService_ListWorkflowExecutions_0(ctx context.Context, if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -2305,10 +2399,11 @@ func request_WorkflowService_ListWorkflowExecutions_1(ctx context.Context, marsh if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -2329,10 +2424,11 @@ func local_request_WorkflowService_ListWorkflowExecutions_1(ctx context.Context, if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -2358,10 +2454,11 @@ func request_WorkflowService_ListArchivedWorkflowExecutions_0(ctx context.Contex if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -2382,10 +2479,11 @@ func local_request_WorkflowService_ListArchivedWorkflowExecutions_0(ctx context. if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -2411,10 +2509,11 @@ func request_WorkflowService_ListArchivedWorkflowExecutions_1(ctx context.Contex if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -2435,10 +2534,11 @@ func local_request_WorkflowService_ListArchivedWorkflowExecutions_1(ctx context. if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -2464,10 +2564,11 @@ func request_WorkflowService_CountWorkflowExecutions_0(ctx context.Context, mars if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -2488,10 +2589,11 @@ func local_request_WorkflowService_CountWorkflowExecutions_0(ctx context.Context if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -2517,10 +2619,11 @@ func request_WorkflowService_CountWorkflowExecutions_1(ctx context.Context, mars if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -2541,10 +2644,11 @@ func local_request_WorkflowService_CountWorkflowExecutions_1(ctx context.Context if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -2571,10 +2675,11 @@ func request_WorkflowService_QueryWorkflow_0(ctx context.Context, marshaler runt if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["execution.workflow_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "execution.workflow_id") @@ -2608,10 +2713,11 @@ func local_request_WorkflowService_QueryWorkflow_0(ctx context.Context, marshale if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["execution.workflow_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "execution.workflow_id") @@ -2648,10 +2754,11 @@ func request_WorkflowService_QueryWorkflow_1(ctx context.Context, marshaler runt if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["execution.workflow_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "execution.workflow_id") @@ -2685,10 +2792,11 @@ func local_request_WorkflowService_QueryWorkflow_1(ctx context.Context, marshale if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["execution.workflow_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "execution.workflow_id") @@ -2724,10 +2832,11 @@ func request_WorkflowService_DescribeWorkflowExecution_0(ctx context.Context, ma if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["execution.workflow_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "execution.workflow_id") @@ -2756,10 +2865,11 @@ func local_request_WorkflowService_DescribeWorkflowExecution_0(ctx context.Conte if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["execution.workflow_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "execution.workflow_id") @@ -2793,10 +2903,11 @@ func request_WorkflowService_DescribeWorkflowExecution_1(ctx context.Context, ma if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["execution.workflow_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "execution.workflow_id") @@ -2825,10 +2936,11 @@ func local_request_WorkflowService_DescribeWorkflowExecution_1(ctx context.Conte if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["execution.workflow_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "execution.workflow_id") @@ -2862,10 +2974,11 @@ func request_WorkflowService_DescribeTaskQueue_0(ctx context.Context, marshaler if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["task_queue.name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_queue.name") @@ -2894,10 +3007,11 @@ func local_request_WorkflowService_DescribeTaskQueue_0(ctx context.Context, mars if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["task_queue.name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_queue.name") @@ -2931,10 +3045,11 @@ func request_WorkflowService_DescribeTaskQueue_1(ctx context.Context, marshaler if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["task_queue.name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_queue.name") @@ -2963,10 +3078,11 @@ func local_request_WorkflowService_DescribeTaskQueue_1(ctx context.Context, mars if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["task_queue.name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_queue.name") @@ -3085,18 +3201,20 @@ func request_WorkflowService_CreateSchedule_0(ctx context.Context, marshaler run if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["schedule_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "schedule_id") } - protoReq.ScheduleId, err = runtime.String(val) + scheduleIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "schedule_id", err) } + protoReq.SetScheduleId(scheduleIdVal) msg, err := client.CreateSchedule(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -3114,18 +3232,20 @@ func local_request_WorkflowService_CreateSchedule_0(ctx context.Context, marshal if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["schedule_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "schedule_id") } - protoReq.ScheduleId, err = runtime.String(val) + scheduleIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "schedule_id", err) } + protoReq.SetScheduleId(scheduleIdVal) msg, err := server.CreateSchedule(ctx, &protoReq) return msg, metadata, err } @@ -3146,18 +3266,20 @@ func request_WorkflowService_CreateSchedule_1(ctx context.Context, marshaler run if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["schedule_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "schedule_id") } - protoReq.ScheduleId, err = runtime.String(val) + scheduleIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "schedule_id", err) } + protoReq.SetScheduleId(scheduleIdVal) msg, err := client.CreateSchedule(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -3175,18 +3297,20 @@ func local_request_WorkflowService_CreateSchedule_1(ctx context.Context, marshal if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["schedule_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "schedule_id") } - protoReq.ScheduleId, err = runtime.String(val) + scheduleIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "schedule_id", err) } + protoReq.SetScheduleId(scheduleIdVal) msg, err := server.CreateSchedule(ctx, &protoReq) return msg, metadata, err } @@ -3204,18 +3328,20 @@ func request_WorkflowService_DescribeSchedule_0(ctx context.Context, marshaler r if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["schedule_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "schedule_id") } - protoReq.ScheduleId, err = runtime.String(val) + scheduleIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "schedule_id", err) } + protoReq.SetScheduleId(scheduleIdVal) msg, err := client.DescribeSchedule(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -3230,18 +3356,20 @@ func local_request_WorkflowService_DescribeSchedule_0(ctx context.Context, marsh if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["schedule_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "schedule_id") } - protoReq.ScheduleId, err = runtime.String(val) + scheduleIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "schedule_id", err) } + protoReq.SetScheduleId(scheduleIdVal) msg, err := server.DescribeSchedule(ctx, &protoReq) return msg, metadata, err } @@ -3259,18 +3387,20 @@ func request_WorkflowService_DescribeSchedule_1(ctx context.Context, marshaler r if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["schedule_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "schedule_id") } - protoReq.ScheduleId, err = runtime.String(val) + scheduleIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "schedule_id", err) } + protoReq.SetScheduleId(scheduleIdVal) msg, err := client.DescribeSchedule(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -3285,18 +3415,20 @@ func local_request_WorkflowService_DescribeSchedule_1(ctx context.Context, marsh if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["schedule_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "schedule_id") } - protoReq.ScheduleId, err = runtime.String(val) + scheduleIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "schedule_id", err) } + protoReq.SetScheduleId(scheduleIdVal) msg, err := server.DescribeSchedule(ctx, &protoReq) return msg, metadata, err } @@ -3317,18 +3449,20 @@ func request_WorkflowService_UpdateSchedule_0(ctx context.Context, marshaler run if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["schedule_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "schedule_id") } - protoReq.ScheduleId, err = runtime.String(val) + scheduleIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "schedule_id", err) } + protoReq.SetScheduleId(scheduleIdVal) msg, err := client.UpdateSchedule(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -3346,18 +3480,20 @@ func local_request_WorkflowService_UpdateSchedule_0(ctx context.Context, marshal if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["schedule_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "schedule_id") } - protoReq.ScheduleId, err = runtime.String(val) + scheduleIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "schedule_id", err) } + protoReq.SetScheduleId(scheduleIdVal) msg, err := server.UpdateSchedule(ctx, &protoReq) return msg, metadata, err } @@ -3378,18 +3514,20 @@ func request_WorkflowService_UpdateSchedule_1(ctx context.Context, marshaler run if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["schedule_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "schedule_id") } - protoReq.ScheduleId, err = runtime.String(val) + scheduleIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "schedule_id", err) } + protoReq.SetScheduleId(scheduleIdVal) msg, err := client.UpdateSchedule(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -3407,18 +3545,20 @@ func local_request_WorkflowService_UpdateSchedule_1(ctx context.Context, marshal if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["schedule_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "schedule_id") } - protoReq.ScheduleId, err = runtime.String(val) + scheduleIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "schedule_id", err) } + protoReq.SetScheduleId(scheduleIdVal) msg, err := server.UpdateSchedule(ctx, &protoReq) return msg, metadata, err } @@ -3439,18 +3579,20 @@ func request_WorkflowService_PatchSchedule_0(ctx context.Context, marshaler runt if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["schedule_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "schedule_id") } - protoReq.ScheduleId, err = runtime.String(val) + scheduleIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "schedule_id", err) } + protoReq.SetScheduleId(scheduleIdVal) msg, err := client.PatchSchedule(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -3468,18 +3610,20 @@ func local_request_WorkflowService_PatchSchedule_0(ctx context.Context, marshale if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["schedule_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "schedule_id") } - protoReq.ScheduleId, err = runtime.String(val) + scheduleIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "schedule_id", err) } + protoReq.SetScheduleId(scheduleIdVal) msg, err := server.PatchSchedule(ctx, &protoReq) return msg, metadata, err } @@ -3500,18 +3644,20 @@ func request_WorkflowService_PatchSchedule_1(ctx context.Context, marshaler runt if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["schedule_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "schedule_id") } - protoReq.ScheduleId, err = runtime.String(val) + scheduleIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "schedule_id", err) } + protoReq.SetScheduleId(scheduleIdVal) msg, err := client.PatchSchedule(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -3529,18 +3675,20 @@ func local_request_WorkflowService_PatchSchedule_1(ctx context.Context, marshale if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["schedule_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "schedule_id") } - protoReq.ScheduleId, err = runtime.String(val) + scheduleIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "schedule_id", err) } + protoReq.SetScheduleId(scheduleIdVal) msg, err := server.PatchSchedule(ctx, &protoReq) return msg, metadata, err } @@ -3560,18 +3708,20 @@ func request_WorkflowService_ListScheduleMatchingTimes_0(ctx context.Context, ma if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["schedule_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "schedule_id") } - protoReq.ScheduleId, err = runtime.String(val) + scheduleIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "schedule_id", err) } + protoReq.SetScheduleId(scheduleIdVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -3592,18 +3742,20 @@ func local_request_WorkflowService_ListScheduleMatchingTimes_0(ctx context.Conte if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["schedule_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "schedule_id") } - protoReq.ScheduleId, err = runtime.String(val) + scheduleIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "schedule_id", err) } + protoReq.SetScheduleId(scheduleIdVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -3629,18 +3781,20 @@ func request_WorkflowService_ListScheduleMatchingTimes_1(ctx context.Context, ma if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["schedule_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "schedule_id") } - protoReq.ScheduleId, err = runtime.String(val) + scheduleIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "schedule_id", err) } + protoReq.SetScheduleId(scheduleIdVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -3661,18 +3815,20 @@ func local_request_WorkflowService_ListScheduleMatchingTimes_1(ctx context.Conte if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["schedule_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "schedule_id") } - protoReq.ScheduleId, err = runtime.String(val) + scheduleIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "schedule_id", err) } + protoReq.SetScheduleId(scheduleIdVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -3698,18 +3854,20 @@ func request_WorkflowService_DeleteSchedule_0(ctx context.Context, marshaler run if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["schedule_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "schedule_id") } - protoReq.ScheduleId, err = runtime.String(val) + scheduleIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "schedule_id", err) } + protoReq.SetScheduleId(scheduleIdVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -3730,18 +3888,20 @@ func local_request_WorkflowService_DeleteSchedule_0(ctx context.Context, marshal if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["schedule_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "schedule_id") } - protoReq.ScheduleId, err = runtime.String(val) + scheduleIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "schedule_id", err) } + protoReq.SetScheduleId(scheduleIdVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -3767,18 +3927,20 @@ func request_WorkflowService_DeleteSchedule_1(ctx context.Context, marshaler run if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["schedule_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "schedule_id") } - protoReq.ScheduleId, err = runtime.String(val) + scheduleIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "schedule_id", err) } + protoReq.SetScheduleId(scheduleIdVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -3799,18 +3961,20 @@ func local_request_WorkflowService_DeleteSchedule_1(ctx context.Context, marshal if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["schedule_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "schedule_id") } - protoReq.ScheduleId, err = runtime.String(val) + scheduleIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "schedule_id", err) } + protoReq.SetScheduleId(scheduleIdVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -3836,10 +4000,11 @@ func request_WorkflowService_ListSchedules_0(ctx context.Context, marshaler runt if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -3860,10 +4025,11 @@ func local_request_WorkflowService_ListSchedules_0(ctx context.Context, marshale if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -3889,10 +4055,11 @@ func request_WorkflowService_ListSchedules_1(ctx context.Context, marshaler runt if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -3913,10 +4080,11 @@ func local_request_WorkflowService_ListSchedules_1(ctx context.Context, marshale if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -3942,18 +4110,20 @@ func request_WorkflowService_GetWorkerBuildIdCompatibility_0(ctx context.Context if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["task_queue"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_queue") } - protoReq.TaskQueue, err = runtime.String(val) + taskQueueVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_queue", err) } + protoReq.SetTaskQueue(taskQueueVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -3974,18 +4144,20 @@ func local_request_WorkflowService_GetWorkerBuildIdCompatibility_0(ctx context.C if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["task_queue"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_queue") } - protoReq.TaskQueue, err = runtime.String(val) + taskQueueVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_queue", err) } + protoReq.SetTaskQueue(taskQueueVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -4011,18 +4183,20 @@ func request_WorkflowService_GetWorkerBuildIdCompatibility_1(ctx context.Context if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["task_queue"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_queue") } - protoReq.TaskQueue, err = runtime.String(val) + taskQueueVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_queue", err) } + protoReq.SetTaskQueue(taskQueueVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -4043,18 +4217,20 @@ func local_request_WorkflowService_GetWorkerBuildIdCompatibility_1(ctx context.C if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["task_queue"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_queue") } - protoReq.TaskQueue, err = runtime.String(val) + taskQueueVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_queue", err) } + protoReq.SetTaskQueue(taskQueueVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -4078,18 +4254,20 @@ func request_WorkflowService_GetWorkerVersioningRules_0(ctx context.Context, mar if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["task_queue"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_queue") } - protoReq.TaskQueue, err = runtime.String(val) + taskQueueVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_queue", err) } + protoReq.SetTaskQueue(taskQueueVal) msg, err := client.GetWorkerVersioningRules(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -4104,18 +4282,20 @@ func local_request_WorkflowService_GetWorkerVersioningRules_0(ctx context.Contex if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["task_queue"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_queue") } - protoReq.TaskQueue, err = runtime.String(val) + taskQueueVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_queue", err) } + protoReq.SetTaskQueue(taskQueueVal) msg, err := server.GetWorkerVersioningRules(ctx, &protoReq) return msg, metadata, err } @@ -4133,18 +4313,20 @@ func request_WorkflowService_GetWorkerVersioningRules_1(ctx context.Context, mar if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["task_queue"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_queue") } - protoReq.TaskQueue, err = runtime.String(val) + taskQueueVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_queue", err) } + protoReq.SetTaskQueue(taskQueueVal) msg, err := client.GetWorkerVersioningRules(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -4159,18 +4341,20 @@ func local_request_WorkflowService_GetWorkerVersioningRules_1(ctx context.Contex if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["task_queue"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_queue") } - protoReq.TaskQueue, err = runtime.String(val) + taskQueueVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_queue", err) } + protoReq.SetTaskQueue(taskQueueVal) msg, err := server.GetWorkerVersioningRules(ctx, &protoReq) return msg, metadata, err } @@ -4190,10 +4374,11 @@ func request_WorkflowService_GetWorkerTaskReachability_0(ctx context.Context, ma if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -4214,10 +4399,11 @@ func local_request_WorkflowService_GetWorkerTaskReachability_0(ctx context.Conte if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -4243,10 +4429,11 @@ func request_WorkflowService_GetWorkerTaskReachability_1(ctx context.Context, ma if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -4267,10 +4454,11 @@ func local_request_WorkflowService_GetWorkerTaskReachability_1(ctx context.Conte if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -4296,10 +4484,11 @@ func request_WorkflowService_DescribeDeployment_0(ctx context.Context, marshaler if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["deployment.series_name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "deployment.series_name") @@ -4336,10 +4525,11 @@ func local_request_WorkflowService_DescribeDeployment_0(ctx context.Context, mar if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["deployment.series_name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "deployment.series_name") @@ -4381,10 +4571,11 @@ func request_WorkflowService_DescribeDeployment_1(ctx context.Context, marshaler if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["deployment.series_name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "deployment.series_name") @@ -4421,10 +4612,11 @@ func local_request_WorkflowService_DescribeDeployment_1(ctx context.Context, mar if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["deployment.series_name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "deployment.series_name") @@ -4466,10 +4658,11 @@ func request_WorkflowService_DescribeWorkerDeploymentVersion_0(ctx context.Conte if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["deployment_version.deployment_name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "deployment_version.deployment_name") @@ -4506,10 +4699,11 @@ func local_request_WorkflowService_DescribeWorkerDeploymentVersion_0(ctx context if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["deployment_version.deployment_name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "deployment_version.deployment_name") @@ -4551,10 +4745,11 @@ func request_WorkflowService_DescribeWorkerDeploymentVersion_1(ctx context.Conte if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["deployment_version.deployment_name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "deployment_version.deployment_name") @@ -4591,10 +4786,11 @@ func local_request_WorkflowService_DescribeWorkerDeploymentVersion_1(ctx context if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["deployment_version.deployment_name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "deployment_version.deployment_name") @@ -4636,10 +4832,11 @@ func request_WorkflowService_ListDeployments_0(ctx context.Context, marshaler ru if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -4660,10 +4857,11 @@ func local_request_WorkflowService_ListDeployments_0(ctx context.Context, marsha if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -4689,10 +4887,11 @@ func request_WorkflowService_ListDeployments_1(ctx context.Context, marshaler ru if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -4713,10 +4912,11 @@ func local_request_WorkflowService_ListDeployments_1(ctx context.Context, marsha if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -4742,10 +4942,11 @@ func request_WorkflowService_GetDeploymentReachability_0(ctx context.Context, ma if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["deployment.series_name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "deployment.series_name") @@ -4782,10 +4983,11 @@ func local_request_WorkflowService_GetDeploymentReachability_0(ctx context.Conte if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["deployment.series_name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "deployment.series_name") @@ -4827,10 +5029,11 @@ func request_WorkflowService_GetDeploymentReachability_1(ctx context.Context, ma if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["deployment.series_name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "deployment.series_name") @@ -4867,10 +5070,11 @@ func local_request_WorkflowService_GetDeploymentReachability_1(ctx context.Conte if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["deployment.series_name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "deployment.series_name") @@ -4910,18 +5114,20 @@ func request_WorkflowService_GetCurrentDeployment_0(ctx context.Context, marshal if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["series_name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "series_name") } - protoReq.SeriesName, err = runtime.String(val) + seriesNameVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "series_name", err) } + protoReq.SetSeriesName(seriesNameVal) msg, err := client.GetCurrentDeployment(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -4936,18 +5142,20 @@ func local_request_WorkflowService_GetCurrentDeployment_0(ctx context.Context, m if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["series_name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "series_name") } - protoReq.SeriesName, err = runtime.String(val) + seriesNameVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "series_name", err) } + protoReq.SetSeriesName(seriesNameVal) msg, err := server.GetCurrentDeployment(ctx, &protoReq) return msg, metadata, err } @@ -4965,18 +5173,20 @@ func request_WorkflowService_GetCurrentDeployment_1(ctx context.Context, marshal if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["series_name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "series_name") } - protoReq.SeriesName, err = runtime.String(val) + seriesNameVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "series_name", err) } + protoReq.SetSeriesName(seriesNameVal) msg, err := client.GetCurrentDeployment(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -4991,18 +5201,20 @@ func local_request_WorkflowService_GetCurrentDeployment_1(ctx context.Context, m if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["series_name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "series_name") } - protoReq.SeriesName, err = runtime.String(val) + seriesNameVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "series_name", err) } + protoReq.SetSeriesName(seriesNameVal) msg, err := server.GetCurrentDeployment(ctx, &protoReq) return msg, metadata, err } @@ -5023,10 +5235,11 @@ func request_WorkflowService_SetCurrentDeployment_0(ctx context.Context, marshal if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["deployment.series_name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "deployment.series_name") @@ -5052,10 +5265,11 @@ func local_request_WorkflowService_SetCurrentDeployment_0(ctx context.Context, m if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["deployment.series_name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "deployment.series_name") @@ -5084,10 +5298,11 @@ func request_WorkflowService_SetCurrentDeployment_1(ctx context.Context, marshal if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["deployment.series_name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "deployment.series_name") @@ -5113,10 +5328,11 @@ func local_request_WorkflowService_SetCurrentDeployment_1(ctx context.Context, m if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["deployment.series_name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "deployment.series_name") @@ -5145,18 +5361,20 @@ func request_WorkflowService_SetWorkerDeploymentCurrentVersion_0(ctx context.Con if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["deployment_name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "deployment_name") } - protoReq.DeploymentName, err = runtime.String(val) + deploymentNameVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "deployment_name", err) } + protoReq.SetDeploymentName(deploymentNameVal) msg, err := client.SetWorkerDeploymentCurrentVersion(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -5174,18 +5392,20 @@ func local_request_WorkflowService_SetWorkerDeploymentCurrentVersion_0(ctx conte if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["deployment_name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "deployment_name") } - protoReq.DeploymentName, err = runtime.String(val) + deploymentNameVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "deployment_name", err) } + protoReq.SetDeploymentName(deploymentNameVal) msg, err := server.SetWorkerDeploymentCurrentVersion(ctx, &protoReq) return msg, metadata, err } @@ -5206,18 +5426,20 @@ func request_WorkflowService_SetWorkerDeploymentCurrentVersion_1(ctx context.Con if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["deployment_name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "deployment_name") } - protoReq.DeploymentName, err = runtime.String(val) + deploymentNameVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "deployment_name", err) } + protoReq.SetDeploymentName(deploymentNameVal) msg, err := client.SetWorkerDeploymentCurrentVersion(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -5235,18 +5457,20 @@ func local_request_WorkflowService_SetWorkerDeploymentCurrentVersion_1(ctx conte if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["deployment_name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "deployment_name") } - protoReq.DeploymentName, err = runtime.String(val) + deploymentNameVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "deployment_name", err) } + protoReq.SetDeploymentName(deploymentNameVal) msg, err := server.SetWorkerDeploymentCurrentVersion(ctx, &protoReq) return msg, metadata, err } @@ -5264,18 +5488,20 @@ func request_WorkflowService_DescribeWorkerDeployment_0(ctx context.Context, mar if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["deployment_name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "deployment_name") } - protoReq.DeploymentName, err = runtime.String(val) + deploymentNameVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "deployment_name", err) } + protoReq.SetDeploymentName(deploymentNameVal) msg, err := client.DescribeWorkerDeployment(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -5290,18 +5516,20 @@ func local_request_WorkflowService_DescribeWorkerDeployment_0(ctx context.Contex if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["deployment_name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "deployment_name") } - protoReq.DeploymentName, err = runtime.String(val) + deploymentNameVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "deployment_name", err) } + protoReq.SetDeploymentName(deploymentNameVal) msg, err := server.DescribeWorkerDeployment(ctx, &protoReq) return msg, metadata, err } @@ -5319,18 +5547,20 @@ func request_WorkflowService_DescribeWorkerDeployment_1(ctx context.Context, mar if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["deployment_name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "deployment_name") } - protoReq.DeploymentName, err = runtime.String(val) + deploymentNameVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "deployment_name", err) } + protoReq.SetDeploymentName(deploymentNameVal) msg, err := client.DescribeWorkerDeployment(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -5345,18 +5575,20 @@ func local_request_WorkflowService_DescribeWorkerDeployment_1(ctx context.Contex if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["deployment_name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "deployment_name") } - protoReq.DeploymentName, err = runtime.String(val) + deploymentNameVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "deployment_name", err) } + protoReq.SetDeploymentName(deploymentNameVal) msg, err := server.DescribeWorkerDeployment(ctx, &protoReq) return msg, metadata, err } @@ -5376,18 +5608,20 @@ func request_WorkflowService_DeleteWorkerDeployment_0(ctx context.Context, marsh if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["deployment_name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "deployment_name") } - protoReq.DeploymentName, err = runtime.String(val) + deploymentNameVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "deployment_name", err) } + protoReq.SetDeploymentName(deploymentNameVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -5408,18 +5642,20 @@ func local_request_WorkflowService_DeleteWorkerDeployment_0(ctx context.Context, if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["deployment_name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "deployment_name") } - protoReq.DeploymentName, err = runtime.String(val) + deploymentNameVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "deployment_name", err) } + protoReq.SetDeploymentName(deploymentNameVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -5445,18 +5681,20 @@ func request_WorkflowService_DeleteWorkerDeployment_1(ctx context.Context, marsh if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["deployment_name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "deployment_name") } - protoReq.DeploymentName, err = runtime.String(val) + deploymentNameVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "deployment_name", err) } + protoReq.SetDeploymentName(deploymentNameVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -5477,18 +5715,20 @@ func local_request_WorkflowService_DeleteWorkerDeployment_1(ctx context.Context, if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["deployment_name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "deployment_name") } - protoReq.DeploymentName, err = runtime.String(val) + deploymentNameVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "deployment_name", err) } + protoReq.SetDeploymentName(deploymentNameVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -5514,10 +5754,11 @@ func request_WorkflowService_DeleteWorkerDeploymentVersion_0(ctx context.Context if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["deployment_version.deployment_name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "deployment_version.deployment_name") @@ -5554,10 +5795,11 @@ func local_request_WorkflowService_DeleteWorkerDeploymentVersion_0(ctx context.C if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["deployment_version.deployment_name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "deployment_version.deployment_name") @@ -5599,10 +5841,11 @@ func request_WorkflowService_DeleteWorkerDeploymentVersion_1(ctx context.Context if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["deployment_version.deployment_name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "deployment_version.deployment_name") @@ -5639,10 +5882,11 @@ func local_request_WorkflowService_DeleteWorkerDeploymentVersion_1(ctx context.C if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["deployment_version.deployment_name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "deployment_version.deployment_name") @@ -5685,18 +5929,20 @@ func request_WorkflowService_SetWorkerDeploymentRampingVersion_0(ctx context.Con if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["deployment_name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "deployment_name") } - protoReq.DeploymentName, err = runtime.String(val) + deploymentNameVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "deployment_name", err) } + protoReq.SetDeploymentName(deploymentNameVal) msg, err := client.SetWorkerDeploymentRampingVersion(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -5714,18 +5960,20 @@ func local_request_WorkflowService_SetWorkerDeploymentRampingVersion_0(ctx conte if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["deployment_name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "deployment_name") } - protoReq.DeploymentName, err = runtime.String(val) + deploymentNameVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "deployment_name", err) } + protoReq.SetDeploymentName(deploymentNameVal) msg, err := server.SetWorkerDeploymentRampingVersion(ctx, &protoReq) return msg, metadata, err } @@ -5746,18 +5994,20 @@ func request_WorkflowService_SetWorkerDeploymentRampingVersion_1(ctx context.Con if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["deployment_name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "deployment_name") } - protoReq.DeploymentName, err = runtime.String(val) + deploymentNameVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "deployment_name", err) } + protoReq.SetDeploymentName(deploymentNameVal) msg, err := client.SetWorkerDeploymentRampingVersion(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -5775,18 +6025,20 @@ func local_request_WorkflowService_SetWorkerDeploymentRampingVersion_1(ctx conte if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["deployment_name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "deployment_name") } - protoReq.DeploymentName, err = runtime.String(val) + deploymentNameVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "deployment_name", err) } + protoReq.SetDeploymentName(deploymentNameVal) msg, err := server.SetWorkerDeploymentRampingVersion(ctx, &protoReq) return msg, metadata, err } @@ -5806,10 +6058,11 @@ func request_WorkflowService_ListWorkerDeployments_0(ctx context.Context, marsha if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -5830,10 +6083,11 @@ func local_request_WorkflowService_ListWorkerDeployments_0(ctx context.Context, if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -5859,10 +6113,11 @@ func request_WorkflowService_ListWorkerDeployments_1(ctx context.Context, marsha if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -5883,10 +6138,11 @@ func local_request_WorkflowService_ListWorkerDeployments_1(ctx context.Context, if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -5913,10 +6169,11 @@ func request_WorkflowService_UpdateWorkerDeploymentVersionMetadata_0(ctx context if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["deployment_version.deployment_name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "deployment_version.deployment_name") @@ -5950,10 +6207,11 @@ func local_request_WorkflowService_UpdateWorkerDeploymentVersionMetadata_0(ctx c if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["deployment_version.deployment_name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "deployment_version.deployment_name") @@ -5990,10 +6248,11 @@ func request_WorkflowService_UpdateWorkerDeploymentVersionMetadata_1(ctx context if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["deployment_version.deployment_name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "deployment_version.deployment_name") @@ -6027,10 +6286,11 @@ func local_request_WorkflowService_UpdateWorkerDeploymentVersionMetadata_1(ctx c if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["deployment_version.deployment_name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "deployment_version.deployment_name") @@ -6067,18 +6327,20 @@ func request_WorkflowService_SetWorkerDeploymentManager_0(ctx context.Context, m if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["deployment_name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "deployment_name") } - protoReq.DeploymentName, err = runtime.String(val) + deploymentNameVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "deployment_name", err) } + protoReq.SetDeploymentName(deploymentNameVal) msg, err := client.SetWorkerDeploymentManager(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -6096,18 +6358,20 @@ func local_request_WorkflowService_SetWorkerDeploymentManager_0(ctx context.Cont if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["deployment_name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "deployment_name") } - protoReq.DeploymentName, err = runtime.String(val) + deploymentNameVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "deployment_name", err) } + protoReq.SetDeploymentName(deploymentNameVal) msg, err := server.SetWorkerDeploymentManager(ctx, &protoReq) return msg, metadata, err } @@ -6128,18 +6392,20 @@ func request_WorkflowService_SetWorkerDeploymentManager_1(ctx context.Context, m if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["deployment_name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "deployment_name") } - protoReq.DeploymentName, err = runtime.String(val) + deploymentNameVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "deployment_name", err) } + protoReq.SetDeploymentName(deploymentNameVal) msg, err := client.SetWorkerDeploymentManager(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -6157,18 +6423,20 @@ func local_request_WorkflowService_SetWorkerDeploymentManager_1(ctx context.Cont if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["deployment_name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "deployment_name") } - protoReq.DeploymentName, err = runtime.String(val) + deploymentNameVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "deployment_name", err) } + protoReq.SetDeploymentName(deploymentNameVal) msg, err := server.SetWorkerDeploymentManager(ctx, &protoReq) return msg, metadata, err } @@ -6189,10 +6457,11 @@ func request_WorkflowService_UpdateWorkflowExecution_0(ctx context.Context, mars if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["workflow_execution.workflow_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_execution.workflow_id") @@ -6226,10 +6495,11 @@ func local_request_WorkflowService_UpdateWorkflowExecution_0(ctx context.Context if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["workflow_execution.workflow_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_execution.workflow_id") @@ -6266,10 +6536,11 @@ func request_WorkflowService_UpdateWorkflowExecution_1(ctx context.Context, mars if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["workflow_execution.workflow_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_execution.workflow_id") @@ -6303,10 +6574,11 @@ func local_request_WorkflowService_UpdateWorkflowExecution_1(ctx context.Context if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["workflow_execution.workflow_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_execution.workflow_id") @@ -6343,18 +6615,20 @@ func request_WorkflowService_StartBatchOperation_0(ctx context.Context, marshale if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["job_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "job_id") } - protoReq.JobId, err = runtime.String(val) + jobIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "job_id", err) } + protoReq.SetJobId(jobIdVal) msg, err := client.StartBatchOperation(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -6372,18 +6646,20 @@ func local_request_WorkflowService_StartBatchOperation_0(ctx context.Context, ma if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["job_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "job_id") } - protoReq.JobId, err = runtime.String(val) + jobIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "job_id", err) } + protoReq.SetJobId(jobIdVal) msg, err := server.StartBatchOperation(ctx, &protoReq) return msg, metadata, err } @@ -6404,18 +6680,20 @@ func request_WorkflowService_StartBatchOperation_1(ctx context.Context, marshale if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["job_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "job_id") } - protoReq.JobId, err = runtime.String(val) + jobIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "job_id", err) } + protoReq.SetJobId(jobIdVal) msg, err := client.StartBatchOperation(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -6433,18 +6711,20 @@ func local_request_WorkflowService_StartBatchOperation_1(ctx context.Context, ma if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["job_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "job_id") } - protoReq.JobId, err = runtime.String(val) + jobIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "job_id", err) } + protoReq.SetJobId(jobIdVal) msg, err := server.StartBatchOperation(ctx, &protoReq) return msg, metadata, err } @@ -6465,18 +6745,20 @@ func request_WorkflowService_StopBatchOperation_0(ctx context.Context, marshaler if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["job_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "job_id") } - protoReq.JobId, err = runtime.String(val) + jobIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "job_id", err) } + protoReq.SetJobId(jobIdVal) msg, err := client.StopBatchOperation(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -6494,18 +6776,20 @@ func local_request_WorkflowService_StopBatchOperation_0(ctx context.Context, mar if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["job_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "job_id") } - protoReq.JobId, err = runtime.String(val) + jobIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "job_id", err) } + protoReq.SetJobId(jobIdVal) msg, err := server.StopBatchOperation(ctx, &protoReq) return msg, metadata, err } @@ -6526,18 +6810,20 @@ func request_WorkflowService_StopBatchOperation_1(ctx context.Context, marshaler if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["job_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "job_id") } - protoReq.JobId, err = runtime.String(val) + jobIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "job_id", err) } + protoReq.SetJobId(jobIdVal) msg, err := client.StopBatchOperation(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -6555,18 +6841,20 @@ func local_request_WorkflowService_StopBatchOperation_1(ctx context.Context, mar if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["job_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "job_id") } - protoReq.JobId, err = runtime.String(val) + jobIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "job_id", err) } + protoReq.SetJobId(jobIdVal) msg, err := server.StopBatchOperation(ctx, &protoReq) return msg, metadata, err } @@ -6584,18 +6872,20 @@ func request_WorkflowService_DescribeBatchOperation_0(ctx context.Context, marsh if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["job_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "job_id") } - protoReq.JobId, err = runtime.String(val) + jobIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "job_id", err) } + protoReq.SetJobId(jobIdVal) msg, err := client.DescribeBatchOperation(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -6610,18 +6900,20 @@ func local_request_WorkflowService_DescribeBatchOperation_0(ctx context.Context, if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["job_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "job_id") } - protoReq.JobId, err = runtime.String(val) + jobIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "job_id", err) } + protoReq.SetJobId(jobIdVal) msg, err := server.DescribeBatchOperation(ctx, &protoReq) return msg, metadata, err } @@ -6639,18 +6931,20 @@ func request_WorkflowService_DescribeBatchOperation_1(ctx context.Context, marsh if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["job_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "job_id") } - protoReq.JobId, err = runtime.String(val) + jobIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "job_id", err) } + protoReq.SetJobId(jobIdVal) msg, err := client.DescribeBatchOperation(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -6665,18 +6959,20 @@ func local_request_WorkflowService_DescribeBatchOperation_1(ctx context.Context, if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["job_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "job_id") } - protoReq.JobId, err = runtime.String(val) + jobIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "job_id", err) } + protoReq.SetJobId(jobIdVal) msg, err := server.DescribeBatchOperation(ctx, &protoReq) return msg, metadata, err } @@ -6696,10 +6992,11 @@ func request_WorkflowService_ListBatchOperations_0(ctx context.Context, marshale if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -6720,10 +7017,11 @@ func local_request_WorkflowService_ListBatchOperations_0(ctx context.Context, ma if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -6749,10 +7047,11 @@ func request_WorkflowService_ListBatchOperations_1(ctx context.Context, marshale if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -6773,10 +7072,11 @@ func local_request_WorkflowService_ListBatchOperations_1(ctx context.Context, ma if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -6803,10 +7103,11 @@ func request_WorkflowService_UpdateActivityOptions_0(ctx context.Context, marsha if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := client.UpdateActivityOptions(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -6824,10 +7125,11 @@ func local_request_WorkflowService_UpdateActivityOptions_0(ctx context.Context, if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := server.UpdateActivityOptions(ctx, &protoReq) return msg, metadata, err } @@ -6848,10 +7150,11 @@ func request_WorkflowService_UpdateActivityOptions_1(ctx context.Context, marsha if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := client.UpdateActivityOptions(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -6869,10 +7172,11 @@ func local_request_WorkflowService_UpdateActivityOptions_1(ctx context.Context, if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := server.UpdateActivityOptions(ctx, &protoReq) return msg, metadata, err } @@ -6893,10 +7197,11 @@ func request_WorkflowService_UpdateWorkflowExecutionOptions_0(ctx context.Contex if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["workflow_execution.workflow_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_execution.workflow_id") @@ -6922,10 +7227,11 @@ func local_request_WorkflowService_UpdateWorkflowExecutionOptions_0(ctx context. if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["workflow_execution.workflow_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_execution.workflow_id") @@ -6954,10 +7260,11 @@ func request_WorkflowService_UpdateWorkflowExecutionOptions_1(ctx context.Contex if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["workflow_execution.workflow_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_execution.workflow_id") @@ -6983,10 +7290,11 @@ func local_request_WorkflowService_UpdateWorkflowExecutionOptions_1(ctx context. if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["workflow_execution.workflow_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_execution.workflow_id") @@ -7015,10 +7323,11 @@ func request_WorkflowService_PauseActivity_0(ctx context.Context, marshaler runt if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := client.PauseActivity(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -7036,10 +7345,11 @@ func local_request_WorkflowService_PauseActivity_0(ctx context.Context, marshale if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := server.PauseActivity(ctx, &protoReq) return msg, metadata, err } @@ -7060,10 +7370,11 @@ func request_WorkflowService_PauseActivity_1(ctx context.Context, marshaler runt if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := client.PauseActivity(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -7081,10 +7392,11 @@ func local_request_WorkflowService_PauseActivity_1(ctx context.Context, marshale if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := server.PauseActivity(ctx, &protoReq) return msg, metadata, err } @@ -7105,10 +7417,11 @@ func request_WorkflowService_UnpauseActivity_0(ctx context.Context, marshaler ru if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := client.UnpauseActivity(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -7126,10 +7439,11 @@ func local_request_WorkflowService_UnpauseActivity_0(ctx context.Context, marsha if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := server.UnpauseActivity(ctx, &protoReq) return msg, metadata, err } @@ -7150,10 +7464,11 @@ func request_WorkflowService_UnpauseActivity_1(ctx context.Context, marshaler ru if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := client.UnpauseActivity(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -7171,10 +7486,11 @@ func local_request_WorkflowService_UnpauseActivity_1(ctx context.Context, marsha if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := server.UnpauseActivity(ctx, &protoReq) return msg, metadata, err } @@ -7195,10 +7511,11 @@ func request_WorkflowService_ResetActivity_0(ctx context.Context, marshaler runt if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := client.ResetActivity(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -7216,10 +7533,11 @@ func local_request_WorkflowService_ResetActivity_0(ctx context.Context, marshale if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := server.ResetActivity(ctx, &protoReq) return msg, metadata, err } @@ -7240,10 +7558,11 @@ func request_WorkflowService_ResetActivity_1(ctx context.Context, marshaler runt if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := client.ResetActivity(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -7261,10 +7580,11 @@ func local_request_WorkflowService_ResetActivity_1(ctx context.Context, marshale if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := server.ResetActivity(ctx, &protoReq) return msg, metadata, err } @@ -7285,10 +7605,11 @@ func request_WorkflowService_CreateWorkflowRule_0(ctx context.Context, marshaler if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := client.CreateWorkflowRule(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -7306,10 +7627,11 @@ func local_request_WorkflowService_CreateWorkflowRule_0(ctx context.Context, mar if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := server.CreateWorkflowRule(ctx, &protoReq) return msg, metadata, err } @@ -7330,10 +7652,11 @@ func request_WorkflowService_CreateWorkflowRule_1(ctx context.Context, marshaler if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := client.CreateWorkflowRule(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -7351,10 +7674,11 @@ func local_request_WorkflowService_CreateWorkflowRule_1(ctx context.Context, mar if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := server.CreateWorkflowRule(ctx, &protoReq) return msg, metadata, err } @@ -7372,18 +7696,20 @@ func request_WorkflowService_DescribeWorkflowRule_0(ctx context.Context, marshal if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["rule_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "rule_id") } - protoReq.RuleId, err = runtime.String(val) + ruleIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "rule_id", err) } + protoReq.SetRuleId(ruleIdVal) msg, err := client.DescribeWorkflowRule(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -7398,18 +7724,20 @@ func local_request_WorkflowService_DescribeWorkflowRule_0(ctx context.Context, m if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["rule_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "rule_id") } - protoReq.RuleId, err = runtime.String(val) + ruleIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "rule_id", err) } + protoReq.SetRuleId(ruleIdVal) msg, err := server.DescribeWorkflowRule(ctx, &protoReq) return msg, metadata, err } @@ -7427,18 +7755,20 @@ func request_WorkflowService_DescribeWorkflowRule_1(ctx context.Context, marshal if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["rule_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "rule_id") } - protoReq.RuleId, err = runtime.String(val) + ruleIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "rule_id", err) } + protoReq.SetRuleId(ruleIdVal) msg, err := client.DescribeWorkflowRule(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -7453,18 +7783,20 @@ func local_request_WorkflowService_DescribeWorkflowRule_1(ctx context.Context, m if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["rule_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "rule_id") } - protoReq.RuleId, err = runtime.String(val) + ruleIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "rule_id", err) } + protoReq.SetRuleId(ruleIdVal) msg, err := server.DescribeWorkflowRule(ctx, &protoReq) return msg, metadata, err } @@ -7482,18 +7814,20 @@ func request_WorkflowService_DeleteWorkflowRule_0(ctx context.Context, marshaler if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["rule_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "rule_id") } - protoReq.RuleId, err = runtime.String(val) + ruleIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "rule_id", err) } + protoReq.SetRuleId(ruleIdVal) msg, err := client.DeleteWorkflowRule(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -7508,18 +7842,20 @@ func local_request_WorkflowService_DeleteWorkflowRule_0(ctx context.Context, mar if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["rule_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "rule_id") } - protoReq.RuleId, err = runtime.String(val) + ruleIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "rule_id", err) } + protoReq.SetRuleId(ruleIdVal) msg, err := server.DeleteWorkflowRule(ctx, &protoReq) return msg, metadata, err } @@ -7537,18 +7873,20 @@ func request_WorkflowService_DeleteWorkflowRule_1(ctx context.Context, marshaler if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["rule_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "rule_id") } - protoReq.RuleId, err = runtime.String(val) + ruleIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "rule_id", err) } + protoReq.SetRuleId(ruleIdVal) msg, err := client.DeleteWorkflowRule(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -7563,18 +7901,20 @@ func local_request_WorkflowService_DeleteWorkflowRule_1(ctx context.Context, mar if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["rule_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "rule_id") } - protoReq.RuleId, err = runtime.String(val) + ruleIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "rule_id", err) } + protoReq.SetRuleId(ruleIdVal) msg, err := server.DeleteWorkflowRule(ctx, &protoReq) return msg, metadata, err } @@ -7594,10 +7934,11 @@ func request_WorkflowService_ListWorkflowRules_0(ctx context.Context, marshaler if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -7618,10 +7959,11 @@ func local_request_WorkflowService_ListWorkflowRules_0(ctx context.Context, mars if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -7647,10 +7989,11 @@ func request_WorkflowService_ListWorkflowRules_1(ctx context.Context, marshaler if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -7671,10 +8014,11 @@ func local_request_WorkflowService_ListWorkflowRules_1(ctx context.Context, mars if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -7701,10 +8045,11 @@ func request_WorkflowService_TriggerWorkflowRule_0(ctx context.Context, marshale if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["execution.workflow_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "execution.workflow_id") @@ -7730,10 +8075,11 @@ func local_request_WorkflowService_TriggerWorkflowRule_0(ctx context.Context, ma if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["execution.workflow_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "execution.workflow_id") @@ -7762,10 +8108,11 @@ func request_WorkflowService_TriggerWorkflowRule_1(ctx context.Context, marshale if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["execution.workflow_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "execution.workflow_id") @@ -7791,10 +8138,11 @@ func local_request_WorkflowService_TriggerWorkflowRule_1(ctx context.Context, ma if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["execution.workflow_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "execution.workflow_id") @@ -7823,10 +8171,11 @@ func request_WorkflowService_RecordWorkerHeartbeat_0(ctx context.Context, marsha if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := client.RecordWorkerHeartbeat(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -7844,10 +8193,11 @@ func local_request_WorkflowService_RecordWorkerHeartbeat_0(ctx context.Context, if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := server.RecordWorkerHeartbeat(ctx, &protoReq) return msg, metadata, err } @@ -7868,10 +8218,11 @@ func request_WorkflowService_RecordWorkerHeartbeat_1(ctx context.Context, marsha if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := client.RecordWorkerHeartbeat(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -7889,10 +8240,11 @@ func local_request_WorkflowService_RecordWorkerHeartbeat_1(ctx context.Context, if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := server.RecordWorkerHeartbeat(ctx, &protoReq) return msg, metadata, err } @@ -7912,10 +8264,11 @@ func request_WorkflowService_ListWorkers_0(ctx context.Context, marshaler runtim if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -7936,10 +8289,11 @@ func local_request_WorkflowService_ListWorkers_0(ctx context.Context, marshaler if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -7965,10 +8319,11 @@ func request_WorkflowService_ListWorkers_1(ctx context.Context, marshaler runtim if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -7989,10 +8344,11 @@ func local_request_WorkflowService_ListWorkers_1(ctx context.Context, marshaler if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -8019,18 +8375,20 @@ func request_WorkflowService_UpdateTaskQueueConfig_0(ctx context.Context, marsha if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["task_queue"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_queue") } - protoReq.TaskQueue, err = runtime.String(val) + taskQueueVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_queue", err) } + protoReq.SetTaskQueue(taskQueueVal) msg, err := client.UpdateTaskQueueConfig(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -8048,18 +8406,20 @@ func local_request_WorkflowService_UpdateTaskQueueConfig_0(ctx context.Context, if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["task_queue"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_queue") } - protoReq.TaskQueue, err = runtime.String(val) + taskQueueVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_queue", err) } + protoReq.SetTaskQueue(taskQueueVal) msg, err := server.UpdateTaskQueueConfig(ctx, &protoReq) return msg, metadata, err } @@ -8080,18 +8440,20 @@ func request_WorkflowService_UpdateTaskQueueConfig_1(ctx context.Context, marsha if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["task_queue"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_queue") } - protoReq.TaskQueue, err = runtime.String(val) + taskQueueVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_queue", err) } + protoReq.SetTaskQueue(taskQueueVal) msg, err := client.UpdateTaskQueueConfig(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -8109,18 +8471,20 @@ func local_request_WorkflowService_UpdateTaskQueueConfig_1(ctx context.Context, if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["task_queue"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_queue") } - protoReq.TaskQueue, err = runtime.String(val) + taskQueueVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_queue", err) } + protoReq.SetTaskQueue(taskQueueVal) msg, err := server.UpdateTaskQueueConfig(ctx, &protoReq) return msg, metadata, err } @@ -8141,10 +8505,11 @@ func request_WorkflowService_FetchWorkerConfig_0(ctx context.Context, marshaler if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := client.FetchWorkerConfig(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -8162,10 +8527,11 @@ func local_request_WorkflowService_FetchWorkerConfig_0(ctx context.Context, mars if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := server.FetchWorkerConfig(ctx, &protoReq) return msg, metadata, err } @@ -8186,10 +8552,11 @@ func request_WorkflowService_FetchWorkerConfig_1(ctx context.Context, marshaler if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := client.FetchWorkerConfig(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -8207,10 +8574,11 @@ func local_request_WorkflowService_FetchWorkerConfig_1(ctx context.Context, mars if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := server.FetchWorkerConfig(ctx, &protoReq) return msg, metadata, err } @@ -8231,10 +8599,11 @@ func request_WorkflowService_UpdateWorkerConfig_0(ctx context.Context, marshaler if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := client.UpdateWorkerConfig(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -8252,10 +8621,11 @@ func local_request_WorkflowService_UpdateWorkerConfig_0(ctx context.Context, mar if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := server.UpdateWorkerConfig(ctx, &protoReq) return msg, metadata, err } @@ -8276,10 +8646,11 @@ func request_WorkflowService_UpdateWorkerConfig_1(ctx context.Context, marshaler if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := client.UpdateWorkerConfig(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -8297,10 +8668,11 @@ func local_request_WorkflowService_UpdateWorkerConfig_1(ctx context.Context, mar if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) msg, err := server.UpdateWorkerConfig(ctx, &protoReq) return msg, metadata, err } @@ -8318,18 +8690,20 @@ func request_WorkflowService_DescribeWorker_0(ctx context.Context, marshaler run if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["worker_instance_key"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "worker_instance_key") } - protoReq.WorkerInstanceKey, err = runtime.String(val) + workerInstanceKeyVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "worker_instance_key", err) } + protoReq.SetWorkerInstanceKey(workerInstanceKeyVal) msg, err := client.DescribeWorker(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -8344,18 +8718,20 @@ func local_request_WorkflowService_DescribeWorker_0(ctx context.Context, marshal if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["worker_instance_key"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "worker_instance_key") } - protoReq.WorkerInstanceKey, err = runtime.String(val) + workerInstanceKeyVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "worker_instance_key", err) } + protoReq.SetWorkerInstanceKey(workerInstanceKeyVal) msg, err := server.DescribeWorker(ctx, &protoReq) return msg, metadata, err } @@ -8373,18 +8749,20 @@ func request_WorkflowService_DescribeWorker_1(ctx context.Context, marshaler run if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["worker_instance_key"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "worker_instance_key") } - protoReq.WorkerInstanceKey, err = runtime.String(val) + workerInstanceKeyVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "worker_instance_key", err) } + protoReq.SetWorkerInstanceKey(workerInstanceKeyVal) msg, err := client.DescribeWorker(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -8399,18 +8777,20 @@ func local_request_WorkflowService_DescribeWorker_1(ctx context.Context, marshal if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["worker_instance_key"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "worker_instance_key") } - protoReq.WorkerInstanceKey, err = runtime.String(val) + workerInstanceKeyVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "worker_instance_key", err) } + protoReq.SetWorkerInstanceKey(workerInstanceKeyVal) msg, err := server.DescribeWorker(ctx, &protoReq) return msg, metadata, err } @@ -8431,18 +8811,20 @@ func request_WorkflowService_PauseWorkflowExecution_0(ctx context.Context, marsh if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["workflow_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_id") } - protoReq.WorkflowId, err = runtime.String(val) + workflowIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow_id", err) } + protoReq.SetWorkflowId(workflowIdVal) msg, err := client.PauseWorkflowExecution(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -8460,18 +8842,20 @@ func local_request_WorkflowService_PauseWorkflowExecution_0(ctx context.Context, if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["workflow_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_id") } - protoReq.WorkflowId, err = runtime.String(val) + workflowIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow_id", err) } + protoReq.SetWorkflowId(workflowIdVal) msg, err := server.PauseWorkflowExecution(ctx, &protoReq) return msg, metadata, err } @@ -8492,18 +8876,20 @@ func request_WorkflowService_UnpauseWorkflowExecution_0(ctx context.Context, mar if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["workflow_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_id") } - protoReq.WorkflowId, err = runtime.String(val) + workflowIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow_id", err) } + protoReq.SetWorkflowId(workflowIdVal) msg, err := client.UnpauseWorkflowExecution(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -8521,18 +8907,20 @@ func local_request_WorkflowService_UnpauseWorkflowExecution_0(ctx context.Contex if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["workflow_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_id") } - protoReq.WorkflowId, err = runtime.String(val) + workflowIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow_id", err) } + protoReq.SetWorkflowId(workflowIdVal) msg, err := server.UnpauseWorkflowExecution(ctx, &protoReq) return msg, metadata, err } @@ -8553,18 +8941,20 @@ func request_WorkflowService_StartActivityExecution_0(ctx context.Context, marsh if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["activity_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "activity_id") } - protoReq.ActivityId, err = runtime.String(val) + activityIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "activity_id", err) } + protoReq.SetActivityId(activityIdVal) msg, err := client.StartActivityExecution(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -8582,18 +8972,20 @@ func local_request_WorkflowService_StartActivityExecution_0(ctx context.Context, if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["activity_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "activity_id") } - protoReq.ActivityId, err = runtime.String(val) + activityIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "activity_id", err) } + protoReq.SetActivityId(activityIdVal) msg, err := server.StartActivityExecution(ctx, &protoReq) return msg, metadata, err } @@ -8614,18 +9006,20 @@ func request_WorkflowService_StartActivityExecution_1(ctx context.Context, marsh if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["activity_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "activity_id") } - protoReq.ActivityId, err = runtime.String(val) + activityIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "activity_id", err) } + protoReq.SetActivityId(activityIdVal) msg, err := client.StartActivityExecution(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -8643,18 +9037,20 @@ func local_request_WorkflowService_StartActivityExecution_1(ctx context.Context, if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["activity_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "activity_id") } - protoReq.ActivityId, err = runtime.String(val) + activityIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "activity_id", err) } + protoReq.SetActivityId(activityIdVal) msg, err := server.StartActivityExecution(ctx, &protoReq) return msg, metadata, err } @@ -8674,18 +9070,20 @@ func request_WorkflowService_DescribeActivityExecution_0(ctx context.Context, ma if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["activity_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "activity_id") } - protoReq.ActivityId, err = runtime.String(val) + activityIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "activity_id", err) } + protoReq.SetActivityId(activityIdVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -8706,18 +9104,20 @@ func local_request_WorkflowService_DescribeActivityExecution_0(ctx context.Conte if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["activity_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "activity_id") } - protoReq.ActivityId, err = runtime.String(val) + activityIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "activity_id", err) } + protoReq.SetActivityId(activityIdVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -8743,18 +9143,20 @@ func request_WorkflowService_DescribeActivityExecution_1(ctx context.Context, ma if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["activity_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "activity_id") } - protoReq.ActivityId, err = runtime.String(val) + activityIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "activity_id", err) } + protoReq.SetActivityId(activityIdVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -8775,18 +9177,20 @@ func local_request_WorkflowService_DescribeActivityExecution_1(ctx context.Conte if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["activity_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "activity_id") } - protoReq.ActivityId, err = runtime.String(val) + activityIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "activity_id", err) } + protoReq.SetActivityId(activityIdVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -8812,18 +9216,20 @@ func request_WorkflowService_PollActivityExecution_0(ctx context.Context, marsha if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["activity_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "activity_id") } - protoReq.ActivityId, err = runtime.String(val) + activityIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "activity_id", err) } + protoReq.SetActivityId(activityIdVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -8844,18 +9250,20 @@ func local_request_WorkflowService_PollActivityExecution_0(ctx context.Context, if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["activity_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "activity_id") } - protoReq.ActivityId, err = runtime.String(val) + activityIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "activity_id", err) } + protoReq.SetActivityId(activityIdVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -8881,18 +9289,20 @@ func request_WorkflowService_PollActivityExecution_1(ctx context.Context, marsha if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["activity_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "activity_id") } - protoReq.ActivityId, err = runtime.String(val) + activityIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "activity_id", err) } + protoReq.SetActivityId(activityIdVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -8913,18 +9323,20 @@ func local_request_WorkflowService_PollActivityExecution_1(ctx context.Context, if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["activity_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "activity_id") } - protoReq.ActivityId, err = runtime.String(val) + activityIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "activity_id", err) } + protoReq.SetActivityId(activityIdVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -8950,10 +9362,11 @@ func request_WorkflowService_ListActivityExecutions_0(ctx context.Context, marsh if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -8974,10 +9387,11 @@ func local_request_WorkflowService_ListActivityExecutions_0(ctx context.Context, if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -9003,10 +9417,11 @@ func request_WorkflowService_ListActivityExecutions_1(ctx context.Context, marsh if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -9027,10 +9442,11 @@ func local_request_WorkflowService_ListActivityExecutions_1(ctx context.Context, if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -9056,10 +9472,11 @@ func request_WorkflowService_CountActivityExecutions_0(ctx context.Context, mars if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -9080,10 +9497,11 @@ func local_request_WorkflowService_CountActivityExecutions_0(ctx context.Context if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -9109,10 +9527,11 @@ func request_WorkflowService_CountActivityExecutions_1(ctx context.Context, mars if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -9133,10 +9552,11 @@ func local_request_WorkflowService_CountActivityExecutions_1(ctx context.Context if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -9163,18 +9583,20 @@ func request_WorkflowService_RequestCancelActivityExecution_0(ctx context.Contex if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["activity_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "activity_id") } - protoReq.ActivityId, err = runtime.String(val) + activityIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "activity_id", err) } + protoReq.SetActivityId(activityIdVal) msg, err := client.RequestCancelActivityExecution(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -9192,18 +9614,20 @@ func local_request_WorkflowService_RequestCancelActivityExecution_0(ctx context. if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["activity_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "activity_id") } - protoReq.ActivityId, err = runtime.String(val) + activityIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "activity_id", err) } + protoReq.SetActivityId(activityIdVal) msg, err := server.RequestCancelActivityExecution(ctx, &protoReq) return msg, metadata, err } @@ -9224,18 +9648,20 @@ func request_WorkflowService_RequestCancelActivityExecution_1(ctx context.Contex if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["activity_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "activity_id") } - protoReq.ActivityId, err = runtime.String(val) + activityIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "activity_id", err) } + protoReq.SetActivityId(activityIdVal) msg, err := client.RequestCancelActivityExecution(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -9253,18 +9679,20 @@ func local_request_WorkflowService_RequestCancelActivityExecution_1(ctx context. if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["activity_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "activity_id") } - protoReq.ActivityId, err = runtime.String(val) + activityIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "activity_id", err) } + protoReq.SetActivityId(activityIdVal) msg, err := server.RequestCancelActivityExecution(ctx, &protoReq) return msg, metadata, err } @@ -9285,18 +9713,20 @@ func request_WorkflowService_TerminateActivityExecution_0(ctx context.Context, m if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["activity_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "activity_id") } - protoReq.ActivityId, err = runtime.String(val) + activityIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "activity_id", err) } + protoReq.SetActivityId(activityIdVal) msg, err := client.TerminateActivityExecution(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -9314,18 +9744,20 @@ func local_request_WorkflowService_TerminateActivityExecution_0(ctx context.Cont if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["activity_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "activity_id") } - protoReq.ActivityId, err = runtime.String(val) + activityIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "activity_id", err) } + protoReq.SetActivityId(activityIdVal) msg, err := server.TerminateActivityExecution(ctx, &protoReq) return msg, metadata, err } @@ -9346,18 +9778,20 @@ func request_WorkflowService_TerminateActivityExecution_1(ctx context.Context, m if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["activity_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "activity_id") } - protoReq.ActivityId, err = runtime.String(val) + activityIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "activity_id", err) } + protoReq.SetActivityId(activityIdVal) msg, err := client.TerminateActivityExecution(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -9375,18 +9809,20 @@ func local_request_WorkflowService_TerminateActivityExecution_1(ctx context.Cont if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") } - protoReq.Namespace, err = runtime.String(val) + namespaceVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) } + protoReq.SetNamespace(namespaceVal) val, ok = pathParams["activity_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "activity_id") } - protoReq.ActivityId, err = runtime.String(val) + activityIdVal, err := runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "activity_id", err) } + protoReq.SetActivityId(activityIdVal) msg, err := server.TerminateActivityExecution(ctx, &protoReq) return msg, metadata, err } From ab66ac01c67868598a887ee8cd85c0b17389c27c Mon Sep 17 00:00:00 2001 From: Stephan Behnke Date: Sat, 24 Jan 2026 08:30:34 -0800 Subject: [PATCH 3/3] Update proxygenerator to use opaque API accessors Update the interceptor template to generate code compatible with protobuf opaque API: - Use GetPayloads()/SetPayloads() instead of direct field access - Use Has{{Field}}() for nil checks on payload fields - Use Get{{Field}}()/Set{{Field}}() for payload field access Regenerate proxy/interceptor.go with updated template. Co-Authored-By: Claude Opus 4.5 --- cmd/proxygenerator/interceptor.go | 10 +- proxy/interceptor.go | 228 ------------------------------ 2 files changed, 5 insertions(+), 233 deletions(-) diff --git a/cmd/proxygenerator/interceptor.go b/cmd/proxygenerator/interceptor.go index af16d5e1..e098dc4d 100644 --- a/cmd/proxygenerator/interceptor.go +++ b/cmd/proxygenerator/interceptor.go @@ -280,10 +280,10 @@ func visitPayloads( case *common.Payloads: if o == nil { continue } ctx.Parent = parent - newPayloads, err := options.Visitor(ctx, o.Payloads) + newPayloads, err := options.Visitor(ctx, o.GetPayloads()) ctx.Parent = nil if err != nil { return err } - o.Payloads = newPayloads + o.SetPayloads(newPayloads) case map[string]*common.Payloads: for _, x := range o { if err := visitPayloads(ctx, options, parent, x); err != nil { @@ -341,10 +341,10 @@ func visitPayloads( {{end}} if o == nil { continue } {{range $record.Payloads -}} - if o.{{.}} != nil { - no, err := visitPayload(ctx, options, o, o.{{.}}) + if o.Has{{.}}() { + no, err := visitPayload(ctx, options, o, o.Get{{.}}()) if err != nil { return err } - o.{{.}} = no + o.Set{{.}}(no) } {{end}} {{if $record.Methods}} diff --git a/proxy/interceptor.go b/proxy/interceptor.go index bef05b0f..acb85783 100644 --- a/proxy/interceptor.go +++ b/proxy/interceptor.go @@ -7,7 +7,6 @@ import ( "fmt" "slices" - "go.temporal.io/api/activity/v1" "go.temporal.io/api/batch/v1" "go.temporal.io/api/command/v1" "go.temporal.io/api/common/v1" @@ -317,63 +316,6 @@ func visitPayloads( } } - case *activity.ActivityExecutionInfo: - - if o == nil { - continue - } - - if err := visitPayloads( - ctx, - options, - o, - o.GetHeader(), - o.GetHeartbeatDetails(), - o.GetLastFailure(), - o.GetSearchAttributes(), - o.GetUserMetadata(), - ); err != nil { - return err - } - - case []*activity.ActivityExecutionListInfo: - for _, x := range o { - if err := visitPayloads(ctx, options, parent, x); err != nil { - return err - } - } - - case *activity.ActivityExecutionListInfo: - - if o == nil { - continue - } - - if err := visitPayloads( - ctx, - options, - o, - o.GetSearchAttributes(), - ); err != nil { - return err - } - - case *activity.ActivityExecutionOutcome: - - if o == nil { - continue - } - - if err := visitPayloads( - ctx, - options, - o, - o.GetFailure(), - o.GetResult(), - ); err != nil { - return err - } - case *batch.BatchOperationReset: if o == nil { @@ -2123,43 +2065,6 @@ func visitPayloads( return err } - case *workflowservice.CountActivityExecutionsResponse: - - if o == nil { - continue - } - - if err := visitPayloads( - ctx, - options, - o, - o.GetGroups(), - ); err != nil { - return err - } - - case []*workflowservice.CountActivityExecutionsResponse_AggregationGroup: - for _, x := range o { - if err := visitPayloads(ctx, options, parent, x); err != nil { - return err - } - } - - case *workflowservice.CountActivityExecutionsResponse_AggregationGroup: - - if o == nil { - continue - } - - if err := visitPayloads( - ctx, - options, - o, - o.GetGroupValues(), - ); err != nil { - return err - } - case *workflowservice.CountWorkflowExecutionsResponse: if o == nil { @@ -2214,23 +2119,6 @@ func visitPayloads( return err } - case *workflowservice.DescribeActivityExecutionResponse: - - if o == nil { - continue - } - - if err := visitPayloads( - ctx, - options, - o, - o.GetInfo(), - o.GetInput(), - o.GetOutcome(), - ); err != nil { - return err - } - case *workflowservice.DescribeDeploymentResponse: if o == nil { @@ -2433,21 +2321,6 @@ func visitPayloads( return err } - case *workflowservice.ListActivityExecutionsResponse: - - if o == nil { - continue - } - - if err := visitPayloads( - ctx, - options, - o, - o.GetExecutions(), - ); err != nil { - return err - } - case *workflowservice.ListArchivedWorkflowExecutionsResponse: if o == nil { @@ -2523,21 +2396,6 @@ func visitPayloads( return err } - case *workflowservice.PollActivityExecutionResponse: - - if o == nil { - continue - } - - if err := visitPayloads( - ctx, - options, - o, - o.GetOutcome(), - ); err != nil { - return err - } - case []*workflowservice.PollActivityTaskQueueResponse: for _, x := range o { if err := visitPayloads(ctx, options, parent, x); err != nil { @@ -2670,21 +2528,6 @@ func visitPayloads( return err } - case *workflowservice.ResetWorkflowExecutionRequest: - - if o == nil { - continue - } - - if err := visitPayloads( - ctx, - options, - o, - o.GetPostResetOperations(), - ); err != nil { - return err - } - case *workflowservice.RespondActivityTaskCanceledByIdRequest: if o == nil { @@ -2969,24 +2812,6 @@ func visitPayloads( return err } - case *workflowservice.StartActivityExecutionRequest: - - if o == nil { - continue - } - - if err := visitPayloads( - ctx, - options, - o, - o.GetHeader(), - o.GetInput(), - o.GetSearchAttributes(), - o.GetUserMetadata(), - ); err != nil { - return err - } - case *workflowservice.StartBatchOperationRequest: if o == nil { @@ -3171,32 +2996,6 @@ func visitFailures(ctx *VisitFailuresContext, options *VisitFailuresOptions, obj } } - case *activity.ActivityExecutionInfo: - if o == nil { - continue - } - ctx.Parent = o - if err := visitFailures( - ctx, - options, - o.GetLastFailure(), - ); err != nil { - return err - } - - case *activity.ActivityExecutionOutcome: - if o == nil { - continue - } - ctx.Parent = o - if err := visitFailures( - ctx, - options, - o.GetFailure(), - ); err != nil { - return err - } - case []*command.Command: for _, x := range o { if err := visitFailures(ctx, options, x); err != nil { @@ -3732,20 +3531,6 @@ func visitFailures(ctx *VisitFailuresContext, options *VisitFailuresOptions, obj return err } - case *workflowservice.DescribeActivityExecutionResponse: - if o == nil { - continue - } - ctx.Parent = o - if err := visitFailures( - ctx, - options, - o.GetInfo(), - o.GetOutcome(), - ); err != nil { - return err - } - case *workflowservice.DescribeWorkflowExecutionResponse: if o == nil { continue @@ -3854,19 +3639,6 @@ func visitFailures(ctx *VisitFailuresContext, options *VisitFailuresOptions, obj return err } - case *workflowservice.PollActivityExecutionResponse: - if o == nil { - continue - } - ctx.Parent = o - if err := visitFailures( - ctx, - options, - o.GetOutcome(), - ); err != nil { - return err - } - case *workflowservice.PollWorkflowExecutionUpdateResponse: if o == nil { continue