diff --git a/examples/spec/integration/start_workflow_spec.rb b/examples/spec/integration/start_workflow_spec.rb index da1369ce..0fc6cdaf 100644 --- a/examples/spec/integration/start_workflow_spec.rb +++ b/examples/spec/integration/start_workflow_spec.rb @@ -37,16 +37,19 @@ end it 'returns the running execution for :use_existing without delivering the new input', :workflow_id_conflict_policy do + outcomes = [] + options = { workflow_id: workflow_id, workflow_id_conflict_policy: :use_existing } original_run_id = Temporal.start_workflow(WaitForExternalSignalWorkflow, 'original', - options: { workflow_id: workflow_id }) + options: options) { |started| outcomes << started } expect do Temporal.start_workflow(WaitForExternalSignalWorkflow, 'replacement', options: { workflow_id: workflow_id }) end.to raise_error(Temporal::WorkflowExecutionAlreadyStartedFailure) returned_run_id = Temporal.start_workflow(WaitForExternalSignalWorkflow, 'replacement', - options: { workflow_id: workflow_id, workflow_id_conflict_policy: :use_existing }) + options: options) { |started| outcomes << started } + expect(outcomes).to eq([true, false]) expect(returned_run_id).to eq(original_run_id) started = fetch_history(workflow_id, original_run_id).history.events.find do |event| event.event_type == :EVENT_TYPE_WORKFLOW_EXECUTION_STARTED diff --git a/lib/gen/temporal/api/workflowservice/v1/request_response_pb.rb b/lib/gen/temporal/api/workflowservice/v1/request_response_pb.rb index ddecd2c1..048d2103 100644 --- a/lib/gen/temporal/api/workflowservice/v1/request_response_pb.rb +++ b/lib/gen/temporal/api/workflowservice/v1/request_response_pb.rb @@ -33,7 +33,7 @@ require 'dependencies/gogoproto/gogo_pb' -descriptor_data = "\n6temporal/api/workflowservice/v1/request_response.proto\x12\x1ftemporal.api.workflowservice.v1\x1a+temporal/api/enums/v1/batch_operation.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/common.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/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/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/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\x1a\x30temporal/api/sdk/v1/task_complete_metadata.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a!dependencies/gogoproto/gogo.proto\"\x8e\x05\n\x18RegisterNamespaceRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x13\n\x0bowner_email\x18\x03 \x01(\t\x12L\n#workflow_execution_retention_period\x18\x04 \x01(\x0b\x32\x19.google.protobuf.DurationB\x04\x98\xdf\x1f\x01\x12G\n\x08\x63lusters\x18\x05 \x03(\x0b\x32\x35.temporal.api.replication.v1.ClusterReplicationConfig\x12\x1b\n\x13\x61\x63tive_cluster_name\x18\x06 \x01(\t\x12Q\n\x04\x64\x61ta\x18\x07 \x03(\x0b\x32\x43.temporal.api.workflowservice.v1.RegisterNamespaceRequest.DataEntry\x12\x16\n\x0esecurity_token\x18\x08 \x01(\t\x12\x1b\n\x13is_global_namespace\x18\t \x01(\x08\x12\x44\n\x16history_archival_state\x18\n \x01(\x0e\x32$.temporal.api.enums.v1.ArchivalState\x12\x1c\n\x14history_archival_uri\x18\x0b \x01(\t\x12G\n\x19visibility_archival_state\x18\x0c \x01(\x0e\x32$.temporal.api.enums.v1.ArchivalState\x12\x1f\n\x17visibility_archival_uri\x18\r \x01(\t\x1a+\n\tDataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x1b\n\x19RegisterNamespaceResponse\"\x89\x01\n\x15ListNamespacesRequest\x12\x11\n\tpage_size\x18\x01 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c\x12\x44\n\x10namespace_filter\x18\x03 \x01(\x0b\x32*.temporal.api.namespace.v1.NamespaceFilter\"\x81\x01\n\x16ListNamespacesResponse\x12N\n\nnamespaces\x18\x01 \x03(\x0b\x32:.temporal.api.workflowservice.v1.DescribeNamespaceResponse\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c\"9\n\x18\x44\x65scribeNamespaceRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\n\n\x02id\x18\x02 \x01(\t\"\xec\x02\n\x19\x44\x65scribeNamespaceResponse\x12@\n\x0enamespace_info\x18\x01 \x01(\x0b\x32(.temporal.api.namespace.v1.NamespaceInfo\x12:\n\x06\x63onfig\x18\x02 \x01(\x0b\x32*.temporal.api.namespace.v1.NamespaceConfig\x12S\n\x12replication_config\x18\x03 \x01(\x0b\x32\x37.temporal.api.replication.v1.NamespaceReplicationConfig\x12\x18\n\x10\x66\x61ilover_version\x18\x04 \x01(\x03\x12\x1b\n\x13is_global_namespace\x18\x05 \x01(\x08\x12\x45\n\x10\x66\x61ilover_history\x18\x06 \x03(\x0b\x32+.temporal.api.replication.v1.FailoverStatus\"\xcf\x02\n\x16UpdateNamespaceRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x43\n\x0bupdate_info\x18\x02 \x01(\x0b\x32..temporal.api.namespace.v1.UpdateNamespaceInfo\x12:\n\x06\x63onfig\x18\x03 \x01(\x0b\x32*.temporal.api.namespace.v1.NamespaceConfig\x12S\n\x12replication_config\x18\x04 \x01(\x0b\x32\x37.temporal.api.replication.v1.NamespaceReplicationConfig\x12\x16\n\x0esecurity_token\x18\x05 \x01(\t\x12\x19\n\x11\x64\x65lete_bad_binary\x18\x06 \x01(\t\x12\x19\n\x11promote_namespace\x18\x07 \x01(\x08\"\xa3\x02\n\x17UpdateNamespaceResponse\x12@\n\x0enamespace_info\x18\x01 \x01(\x0b\x32(.temporal.api.namespace.v1.NamespaceInfo\x12:\n\x06\x63onfig\x18\x02 \x01(\x0b\x32*.temporal.api.namespace.v1.NamespaceConfig\x12S\n\x12replication_config\x18\x03 \x01(\x0b\x32\x37.temporal.api.replication.v1.NamespaceReplicationConfig\x12\x18\n\x10\x66\x61ilover_version\x18\x04 \x01(\x03\x12\x1b\n\x13is_global_namespace\x18\x05 \x01(\x08\"F\n\x19\x44\x65precateNamespaceRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x16\n\x0esecurity_token\x18\x02 \x01(\t\"\x1c\n\x1a\x44\x65precateNamespaceResponse\"\xd1\x08\n\x1dStartWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x38\n\ntask_queue\x18\x04 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12/\n\x05input\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x43\n\x1aworkflow_execution_timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationB\x04\x98\xdf\x1f\x01\x12=\n\x14workflow_run_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.DurationB\x04\x98\xdf\x1f\x01\x12>\n\x15workflow_task_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.DurationB\x04\x98\xdf\x1f\x01\x12\x10\n\x08identity\x18\t \x01(\t\x12\x12\n\nrequest_id\x18\n \x01(\t\x12N\n\x18workflow_id_reuse_policy\x18\x0b \x01(\x0e\x32,.temporal.api.enums.v1.WorkflowIdReusePolicy\x12\x39\n\x0cretry_policy\x18\x0c \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x15\n\rcron_schedule\x18\r \x01(\t\x12*\n\x04memo\x18\x0e \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x0f \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12.\n\x06header\x18\x10 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12\x1f\n\x17request_eager_execution\x18\x11 \x01(\x08\x12;\n\x11\x63ontinued_failure\x18\x12 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12@\n\x16last_completion_result\x18\x13 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12=\n\x14workflow_start_delay\x18\x14 \x01(\x0b\x32\x19.google.protobuf.DurationB\x04\x98\xdf\x1f\x01\x12T\n\x1bworkflow_id_conflict_policy\x18\x16 \x01(\x0e\x32/.temporal.api.enums.v1.WorkflowIdConflictPolicy\"\x8d\x01\n\x1eStartWorkflowExecutionResponse\x12\x0e\n\x06run_id\x18\x01 \x01(\t\x12[\n\x13\x65\x61ger_workflow_task\x18\x02 \x01(\x0b\x32>.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse\"\xaa\x02\n\"GetWorkflowExecutionHistoryRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x19\n\x11maximum_page_size\x18\x03 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x04 \x01(\x0c\x12\x16\n\x0ewait_new_event\x18\x05 \x01(\x08\x12P\n\x19history_event_filter_type\x18\x06 \x01(\x0e\x32-.temporal.api.enums.v1.HistoryEventFilterType\x12\x15\n\rskip_archival\x18\x07 \x01(\x08\"\xba\x01\n#GetWorkflowExecutionHistoryResponse\x12\x31\n\x07history\x18\x01 \x01(\x0b\x32 .temporal.api.history.v1.History\x12\x35\n\x0braw_history\x18\x02 \x03(\x0b\x32 .temporal.api.common.v1.DataBlob\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\x10\n\x08\x61rchived\x18\x04 \x01(\x08\"\xb0\x01\n)GetWorkflowExecutionHistoryReverseRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x19\n\x11maximum_page_size\x18\x03 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x04 \x01(\x0c\"x\n*GetWorkflowExecutionHistoryReverseResponse\x12\x31\n\x07history\x18\x01 \x01(\x0b\x32 .temporal.api.history.v1.History\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\"\xee\x01\n\x1cPollWorkflowTaskQueueRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x38\n\ntask_queue\x18\x02 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x17\n\x0f\x62inary_checksum\x18\x04 \x01(\t\x12V\n\x1bworker_version_capabilities\x18\x05 \x01(\x0b\x32\x31.temporal.api.common.v1.WorkerVersionCapabilities\"\xca\x06\n\x1dPollWorkflowTaskQueueResponse\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12!\n\x19previous_started_event_id\x18\x04 \x01(\x03\x12\x18\n\x10started_event_id\x18\x05 \x01(\x03\x12\x0f\n\x07\x61ttempt\x18\x06 \x01(\x05\x12\x1a\n\x12\x62\x61\x63klog_count_hint\x18\x07 \x01(\x03\x12\x31\n\x07history\x18\x08 \x01(\x0b\x32 .temporal.api.history.v1.History\x12\x17\n\x0fnext_page_token\x18\t \x01(\x0c\x12\x33\n\x05query\x18\n \x01(\x0b\x32$.temporal.api.query.v1.WorkflowQuery\x12K\n\x1dworkflow_execution_task_queue\x18\x0b \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12\x38\n\x0escheduled_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\x90\xdf\x1f\x01\x12\x36\n\x0cstarted_time\x18\r \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\x90\xdf\x1f\x01\x12\\\n\x07queries\x18\x0e \x03(\x0b\x32K.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse.QueriesEntry\x12\x33\n\x08messages\x18\x0f \x03(\x0b\x32!.temporal.api.protocol.v1.Message\x1aT\n\x0cQueriesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x33\n\x05value\x18\x02 \x01(\x0b\x32$.temporal.api.query.v1.WorkflowQuery:\x02\x38\x01\"\xa4\x06\n#RespondWorkflowTaskCompletedRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x32\n\x08\x63ommands\x18\x02 \x03(\x0b\x32 .temporal.api.command.v1.Command\x12\x10\n\x08identity\x18\x03 \x01(\t\x12O\n\x11sticky_attributes\x18\x04 \x01(\x0b\x32\x34.temporal.api.taskqueue.v1.StickyExecutionAttributes\x12 \n\x18return_new_workflow_task\x18\x05 \x01(\x08\x12&\n\x1e\x66orce_create_new_workflow_task\x18\x06 \x01(\x08\x12\x17\n\x0f\x62inary_checksum\x18\x07 \x01(\t\x12m\n\rquery_results\x18\x08 \x03(\x0b\x32V.temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedRequest.QueryResultsEntry\x12\x11\n\tnamespace\x18\t \x01(\t\x12H\n\x14worker_version_stamp\x18\n \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStamp\x12\x33\n\x08messages\x18\x0b \x03(\x0b\x32!.temporal.api.protocol.v1.Message\x12H\n\x0csdk_metadata\x18\x0c \x01(\x0b\x32\x32.temporal.api.sdk.v1.WorkflowTaskCompletedMetadata\x12\x43\n\x11metering_metadata\x18\r \x01(\x0b\x32(.temporal.api.common.v1.MeteringMetadata\x1a_\n\x11QueryResultsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x39\n\x05value\x18\x02 \x01(\x0b\x32*.temporal.api.query.v1.WorkflowQueryResult:\x02\x38\x01\"\xf5\x01\n$RespondWorkflowTaskCompletedResponse\x12U\n\rworkflow_task\x18\x01 \x01(\x0b\x32>.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse\x12V\n\x0e\x61\x63tivity_tasks\x18\x02 \x03(\x0b\x32>.temporal.api.workflowservice.v1.PollActivityTaskQueueResponse\x12\x1e\n\x16reset_history_event_id\x18\x03 \x01(\x03\"\x9b\x02\n RespondWorkflowTaskFailedRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12=\n\x05\x63\x61use\x18\x02 \x01(\x0e\x32..temporal.api.enums.v1.WorkflowTaskFailedCause\x12\x31\n\x07\x66\x61ilure\x18\x03 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x10\n\x08identity\x18\x04 \x01(\t\x12\x17\n\x0f\x62inary_checksum\x18\x05 \x01(\t\x12\x11\n\tnamespace\x18\x06 \x01(\t\x12\x33\n\x08messages\x18\x07 \x03(\x0b\x32!.temporal.api.protocol.v1.Message\"#\n!RespondWorkflowTaskFailedResponse\"\xa0\x02\n\x1cPollActivityTaskQueueRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x38\n\ntask_queue\x18\x02 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12\x10\n\x08identity\x18\x03 \x01(\t\x12I\n\x13task_queue_metadata\x18\x04 \x01(\x0b\x32,.temporal.api.taskqueue.v1.TaskQueueMetadata\x12V\n\x1bworker_version_capabilities\x18\x05 \x01(\x0b\x32\x31.temporal.api.common.v1.WorkerVersionCapabilities\"\x8c\x07\n\x1dPollActivityTaskQueueResponse\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x1a\n\x12workflow_namespace\x18\x02 \x01(\t\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x45\n\x12workflow_execution\x18\x04 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12;\n\ractivity_type\x18\x05 \x01(\x0b\x32$.temporal.api.common.v1.ActivityType\x12\x13\n\x0b\x61\x63tivity_id\x18\x06 \x01(\t\x12.\n\x06header\x18\x07 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12/\n\x05input\x18\x08 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12;\n\x11heartbeat_details\x18\t \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x38\n\x0escheduled_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\x90\xdf\x1f\x01\x12H\n\x1e\x63urrent_attempt_scheduled_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\x90\xdf\x1f\x01\x12\x36\n\x0cstarted_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\x90\xdf\x1f\x01\x12\x0f\n\x07\x61ttempt\x18\r \x01(\x05\x12\x42\n\x19schedule_to_close_timeout\x18\x0e \x01(\x0b\x32\x19.google.protobuf.DurationB\x04\x98\xdf\x1f\x01\x12?\n\x16start_to_close_timeout\x18\x0f \x01(\x0b\x32\x19.google.protobuf.DurationB\x04\x98\xdf\x1f\x01\x12:\n\x11heartbeat_timeout\x18\x10 \x01(\x0b\x32\x19.google.protobuf.DurationB\x04\x98\xdf\x1f\x01\x12\x39\n\x0cretry_policy\x18\x11 \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\"\x90\x01\n\"RecordActivityTaskHeartbeatRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x31\n\x07\x64\x65tails\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x11\n\tnamespace\x18\x04 \x01(\t\"?\n#RecordActivityTaskHeartbeatResponse\x12\x18\n\x10\x63\x61ncel_requested\x18\x01 \x01(\x08\"\xba\x01\n&RecordActivityTaskHeartbeatByIdRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x04 \x01(\t\x12\x31\n\x07\x64\x65tails\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x06 \x01(\t\"C\n\'RecordActivityTaskHeartbeatByIdResponse\x12\x18\n\x10\x63\x61ncel_requested\x18\x01 \x01(\x08\"\x90\x01\n#RespondActivityTaskCompletedRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x30\n\x06result\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x11\n\tnamespace\x18\x04 \x01(\t\"&\n$RespondActivityTaskCompletedResponse\"\xba\x01\n\'RespondActivityTaskCompletedByIdRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x04 \x01(\t\x12\x30\n\x06result\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x06 \x01(\t\"*\n(RespondActivityTaskCompletedByIdResponse\"\xd0\x01\n RespondActivityTaskFailedRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x31\n\x07\x66\x61ilure\x18\x02 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x11\n\tnamespace\x18\x04 \x01(\t\x12@\n\x16last_heartbeat_details\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\"W\n!RespondActivityTaskFailedResponse\x12\x32\n\x08\x66\x61ilures\x18\x01 \x03(\x0b\x32 .temporal.api.failure.v1.Failure\"\xfa\x01\n$RespondActivityTaskFailedByIdRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x04 \x01(\t\x12\x31\n\x07\x66\x61ilure\x18\x05 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x10\n\x08identity\x18\x06 \x01(\t\x12@\n\x16last_heartbeat_details\x18\x07 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\"[\n%RespondActivityTaskFailedByIdResponse\x12\x32\n\x08\x66\x61ilures\x18\x01 \x03(\x0b\x32 .temporal.api.failure.v1.Failure\"\x90\x01\n\"RespondActivityTaskCanceledRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x31\n\x07\x64\x65tails\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x11\n\tnamespace\x18\x04 \x01(\t\"%\n#RespondActivityTaskCanceledResponse\"\xba\x01\n&RespondActivityTaskCanceledByIdRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x04 \x01(\t\x12\x31\n\x07\x64\x65tails\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x06 \x01(\t\")\n\'RespondActivityTaskCanceledByIdResponse\"\xd7\x01\n%RequestCancelWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x12\n\nrequest_id\x18\x04 \x01(\t\x12\x1e\n\x16\x66irst_execution_run_id\x18\x05 \x01(\t\x12\x0e\n\x06reason\x18\x06 \x01(\t\"(\n&RequestCancelWorkflowExecutionResponse\"\xcc\x02\n\x1eSignalWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x13\n\x0bsignal_name\x18\x03 \x01(\t\x12/\n\x05input\x18\x04 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x12\n\nrequest_id\x18\x06 \x01(\t\x12\x0f\n\x07\x63ontrol\x18\x07 \x01(\t\x12.\n\x06header\x18\x08 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12#\n\x1bskip_generate_workflow_task\x18\t \x01(\x08\"!\n\x1fSignalWorkflowExecutionResponse\"\xe8\x07\n\'SignalWithStartWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x38\n\ntask_queue\x18\x04 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12/\n\x05input\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x43\n\x1aworkflow_execution_timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationB\x04\x98\xdf\x1f\x01\x12=\n\x14workflow_run_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.DurationB\x04\x98\xdf\x1f\x01\x12>\n\x15workflow_task_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.DurationB\x04\x98\xdf\x1f\x01\x12\x10\n\x08identity\x18\t \x01(\t\x12\x12\n\nrequest_id\x18\n \x01(\t\x12N\n\x18workflow_id_reuse_policy\x18\x0b \x01(\x0e\x32,.temporal.api.enums.v1.WorkflowIdReusePolicy\x12\x13\n\x0bsignal_name\x18\x0c \x01(\t\x12\x36\n\x0csignal_input\x18\r \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x0f\n\x07\x63ontrol\x18\x0e \x01(\t\x12\x39\n\x0cretry_policy\x18\x0f \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x15\n\rcron_schedule\x18\x10 \x01(\t\x12*\n\x04memo\x18\x11 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x12 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12.\n\x06header\x18\x13 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12=\n\x14workflow_start_delay\x18\x14 \x01(\x0b\x32\x19.google.protobuf.DurationB\x04\x98\xdf\x1f\x01\x12#\n\x1bskip_generate_workflow_task\x18\x15 \x01(\x08\":\n(SignalWithStartWorkflowExecutionResponse\x12\x0e\n\x06run_id\x18\x01 \x01(\t\"\x89\x02\n\x1dResetWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x0e\n\x06reason\x18\x03 \x01(\t\x12%\n\x1dworkflow_task_finish_event_id\x18\x04 \x01(\x03\x12\x12\n\nrequest_id\x18\x05 \x01(\t\x12\x43\n\x12reset_reapply_type\x18\x06 \x01(\x0e\x32\'.temporal.api.enums.v1.ResetReapplyType\"0\n\x1eResetWorkflowExecutionResponse\x12\x0e\n\x06run_id\x18\x01 \x01(\t\"\xf2\x01\n!TerminateWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x0e\n\x06reason\x18\x03 \x01(\t\x12\x31\n\x07\x64\x65tails\x18\x04 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x1e\n\x16\x66irst_execution_run_id\x18\x06 \x01(\t\"$\n\"TerminateWorkflowExecutionResponse\"z\n\x1e\x44\x65leteWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\"!\n\x1f\x44\x65leteWorkflowExecutionResponse\"\xc9\x02\n!ListOpenWorkflowExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x19\n\x11maximum_page_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\x42\n\x11start_time_filter\x18\x04 \x01(\x0b\x32\'.temporal.api.filter.v1.StartTimeFilter\x12K\n\x10\x65xecution_filter\x18\x05 \x01(\x0b\x32/.temporal.api.filter.v1.WorkflowExecutionFilterH\x00\x12\x41\n\x0btype_filter\x18\x06 \x01(\x0b\x32*.temporal.api.filter.v1.WorkflowTypeFilterH\x00\x42\t\n\x07\x66ilters\"\x82\x01\n\"ListOpenWorkflowExecutionsResponse\x12\x43\n\nexecutions\x18\x01 \x03(\x0b\x32/.temporal.api.workflow.v1.WorkflowExecutionInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c\"\x8a\x03\n#ListClosedWorkflowExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x19\n\x11maximum_page_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\x42\n\x11start_time_filter\x18\x04 \x01(\x0b\x32\'.temporal.api.filter.v1.StartTimeFilter\x12K\n\x10\x65xecution_filter\x18\x05 \x01(\x0b\x32/.temporal.api.filter.v1.WorkflowExecutionFilterH\x00\x12\x41\n\x0btype_filter\x18\x06 \x01(\x0b\x32*.temporal.api.filter.v1.WorkflowTypeFilterH\x00\x12=\n\rstatus_filter\x18\x07 \x01(\x0b\x32$.temporal.api.filter.v1.StatusFilterH\x00\x42\t\n\x07\x66ilters\"\x84\x01\n$ListClosedWorkflowExecutionsResponse\x12\x43\n\nexecutions\x18\x01 \x03(\x0b\x32/.temporal.api.workflow.v1.WorkflowExecutionInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c\"m\n\x1dListWorkflowExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\r\n\x05query\x18\x04 \x01(\t\"~\n\x1eListWorkflowExecutionsResponse\x12\x43\n\nexecutions\x18\x01 \x03(\x0b\x32/.temporal.api.workflow.v1.WorkflowExecutionInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c\"u\n%ListArchivedWorkflowExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\r\n\x05query\x18\x04 \x01(\t\"\x86\x01\n&ListArchivedWorkflowExecutionsResponse\x12\x43\n\nexecutions\x18\x01 \x03(\x0b\x32/.temporal.api.workflow.v1.WorkflowExecutionInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c\"m\n\x1dScanWorkflowExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\r\n\x05query\x18\x04 \x01(\t\"~\n\x1eScanWorkflowExecutionsResponse\x12\x43\n\nexecutions\x18\x01 \x03(\x0b\x32/.temporal.api.workflow.v1.WorkflowExecutionInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c\"B\n\x1e\x43ountWorkflowExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\r\n\x05query\x18\x02 \x01(\t\"0\n\x1f\x43ountWorkflowExecutionsResponse\x12\r\n\x05\x63ount\x18\x01 \x01(\x03\"\x1c\n\x1aGetSearchAttributesRequest\"\xc9\x01\n\x1bGetSearchAttributesResponse\x12T\n\x04keys\x18\x01 \x03(\x0b\x32\x46.temporal.api.workflowservice.v1.GetSearchAttributesResponse.KeysEntry\x1aT\n\tKeysEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x36\n\x05value\x18\x02 \x01(\x0e\x32\'.temporal.api.enums.v1.IndexedValueType:\x02\x38\x01\"\xde\x01\n RespondQueryTaskCompletedRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12>\n\x0e\x63ompleted_type\x18\x02 \x01(\x0e\x32&.temporal.api.enums.v1.QueryResultType\x12\x36\n\x0cquery_result\x18\x03 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x15\n\rerror_message\x18\x04 \x01(\t\x12\x11\n\tnamespace\x18\x06 \x01(\tJ\x04\x08\x05\x10\x06\"#\n!RespondQueryTaskCompletedResponse\"n\n\x1bResetStickyTaskQueueRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\"\x1e\n\x1cResetStickyTaskQueueResponse\"\xe9\x01\n\x14QueryWorkflowRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x33\n\x05query\x18\x03 \x01(\x0b\x32$.temporal.api.query.v1.WorkflowQuery\x12K\n\x16query_reject_condition\x18\x04 \x01(\x0e\x32+.temporal.api.enums.v1.QueryRejectCondition\"\x8d\x01\n\x15QueryWorkflowResponse\x12\x36\n\x0cquery_result\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12<\n\x0equery_rejected\x18\x02 \x01(\x0b\x32$.temporal.api.query.v1.QueryRejected\"s\n DescribeWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\"\xae\x03\n!DescribeWorkflowExecutionResponse\x12K\n\x10\x65xecution_config\x18\x01 \x01(\x0b\x32\x31.temporal.api.workflow.v1.WorkflowExecutionConfig\x12P\n\x17workflow_execution_info\x18\x02 \x01(\x0b\x32/.temporal.api.workflow.v1.WorkflowExecutionInfo\x12I\n\x12pending_activities\x18\x03 \x03(\x0b\x32-.temporal.api.workflow.v1.PendingActivityInfo\x12M\n\x10pending_children\x18\x04 \x03(\x0b\x32\x33.temporal.api.workflow.v1.PendingChildExecutionInfo\x12P\n\x15pending_workflow_task\x18\x05 \x01(\x0b\x32\x31.temporal.api.workflow.v1.PendingWorkflowTaskInfo\"\xc9\x01\n\x18\x44\x65scribeTaskQueueRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x38\n\ntask_queue\x18\x02 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12=\n\x0ftask_queue_type\x18\x03 \x01(\x0e\x32$.temporal.api.enums.v1.TaskQueueType\x12!\n\x19include_task_queue_status\x18\x04 \x01(\x08\"\x9a\x01\n\x19\x44\x65scribeTaskQueueResponse\x12\x36\n\x07pollers\x18\x01 \x03(\x0b\x32%.temporal.api.taskqueue.v1.PollerInfo\x12\x45\n\x11task_queue_status\x18\x02 \x01(\x0b\x32*.temporal.api.taskqueue.v1.TaskQueueStatus\"\x17\n\x15GetClusterInfoRequest\"\x8b\x03\n\x16GetClusterInfoResponse\x12h\n\x11supported_clients\x18\x01 \x03(\x0b\x32M.temporal.api.workflowservice.v1.GetClusterInfoResponse.SupportedClientsEntry\x12\x16\n\x0eserver_version\x18\x02 \x01(\t\x12\x12\n\ncluster_id\x18\x03 \x01(\t\x12:\n\x0cversion_info\x18\x04 \x01(\x0b\x32$.temporal.api.version.v1.VersionInfo\x12\x14\n\x0c\x63luster_name\x18\x05 \x01(\t\x12\x1b\n\x13history_shard_count\x18\x06 \x01(\x05\x12\x19\n\x11persistence_store\x18\x07 \x01(\t\x12\x18\n\x10visibility_store\x18\x08 \x01(\t\x1a\x37\n\x15SupportedClientsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x16\n\x14GetSystemInfoRequest\"\xbc\x03\n\x15GetSystemInfoResponse\x12\x16\n\x0eserver_version\x18\x01 \x01(\t\x12Y\n\x0c\x63\x61pabilities\x18\x02 \x01(\x0b\x32\x43.temporal.api.workflowservice.v1.GetSystemInfoResponse.Capabilities\x1a\xaf\x02\n\x0c\x43\x61pabilities\x12\x1f\n\x17signal_and_query_header\x18\x01 \x01(\x08\x12&\n\x1einternal_error_differentiation\x18\x02 \x01(\x08\x12*\n\"activity_failure_include_heartbeat\x18\x03 \x01(\x08\x12\x1a\n\x12supports_schedules\x18\x04 \x01(\x08\x12\"\n\x1a\x65ncoded_failure_attributes\x18\x05 \x01(\x08\x12!\n\x19\x62uild_id_based_versioning\x18\x06 \x01(\x08\x12\x13\n\x0bupsert_memo\x18\x07 \x01(\x08\x12\x1c\n\x14\x65\x61ger_workflow_start\x18\x08 \x01(\x08\x12\x14\n\x0csdk_metadata\x18\t \x01(\x08\"m\n\x1eListTaskQueuePartitionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x38\n\ntask_queue\x18\x02 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\"\xdf\x01\n\x1fListTaskQueuePartitionsResponse\x12]\n\x1e\x61\x63tivity_task_queue_partitions\x18\x01 \x03(\x0b\x32\x35.temporal.api.taskqueue.v1.TaskQueuePartitionMetadata\x12]\n\x1eworkflow_task_queue_partitions\x18\x02 \x03(\x0b\x32\x35.temporal.api.taskqueue.v1.TaskQueuePartitionMetadata\"\xcc\x02\n\x15\x43reateScheduleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bschedule_id\x18\x02 \x01(\t\x12\x34\n\x08schedule\x18\x03 \x01(\x0b\x32\".temporal.api.schedule.v1.Schedule\x12>\n\rinitial_patch\x18\x04 \x01(\x0b\x32\'.temporal.api.schedule.v1.SchedulePatch\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x12\n\nrequest_id\x18\x06 \x01(\t\x12*\n\x04memo\x18\x07 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x08 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\"0\n\x16\x43reateScheduleResponse\x12\x16\n\x0e\x63onflict_token\x18\x01 \x01(\x0c\"A\n\x17\x44\x65scribeScheduleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bschedule_id\x18\x02 \x01(\t\"\x8f\x02\n\x18\x44\x65scribeScheduleResponse\x12\x34\n\x08schedule\x18\x01 \x01(\x0b\x32\".temporal.api.schedule.v1.Schedule\x12\x34\n\x04info\x18\x02 \x01(\x0b\x32&.temporal.api.schedule.v1.ScheduleInfo\x12*\n\x04memo\x18\x03 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x04 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12\x16\n\x0e\x63onflict_token\x18\x05 \x01(\x0c\"\xb3\x01\n\x15UpdateScheduleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bschedule_id\x18\x02 \x01(\t\x12\x34\n\x08schedule\x18\x03 \x01(\x0b\x32\".temporal.api.schedule.v1.Schedule\x12\x16\n\x0e\x63onflict_token\x18\x04 \x01(\x0c\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x12\n\nrequest_id\x18\x06 \x01(\t\"\x18\n\x16UpdateScheduleResponse\"\x9c\x01\n\x14PatchScheduleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bschedule_id\x18\x02 \x01(\t\x12\x36\n\x05patch\x18\x03 \x01(\x0b\x32\'.temporal.api.schedule.v1.SchedulePatch\x12\x10\n\x08identity\x18\x04 \x01(\t\x12\x12\n\nrequest_id\x18\x05 \x01(\t\"\x17\n\x15PatchScheduleResponse\"\xb4\x01\n ListScheduleMatchingTimesRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bschedule_id\x18\x02 \x01(\t\x12\x34\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\x90\xdf\x1f\x01\x12\x32\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\x90\xdf\x1f\x01\"Y\n!ListScheduleMatchingTimesResponse\x12\x34\n\nstart_time\x18\x01 \x03(\x0b\x32\x1a.google.protobuf.TimestampB\x04\x90\xdf\x1f\x01\"Q\n\x15\x44\x65leteScheduleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bschedule_id\x18\x02 \x01(\t\x12\x10\n\x08identity\x18\x03 \x01(\t\"\x18\n\x16\x44\x65leteScheduleResponse\"]\n\x14ListSchedulesRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x19\n\x11maximum_page_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\"p\n\x15ListSchedulesResponse\x12>\n\tschedules\x18\x01 \x03(\x0b\x32+.temporal.api.schedule.v1.ScheduleListEntry\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c\"\xd1\x03\n\'UpdateWorkerBuildIdCompatibilityRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x12\n\ntask_queue\x18\x02 \x01(\t\x12-\n#add_new_build_id_in_new_default_set\x18\x03 \x01(\tH\x00\x12\x87\x01\n\x1b\x61\x64\x64_new_compatible_build_id\x18\x04 \x01(\x0b\x32`.temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityRequest.AddNewCompatibleVersionH\x00\x12!\n\x17promote_set_by_build_id\x18\x05 \x01(\tH\x00\x12%\n\x1bpromote_build_id_within_set\x18\x06 \x01(\tH\x00\x1ao\n\x17\x41\x64\x64NewCompatibleVersion\x12\x14\n\x0cnew_build_id\x18\x01 \x01(\t\x12$\n\x1c\x65xisting_compatible_build_id\x18\x02 \x01(\t\x12\x18\n\x10make_set_default\x18\x03 \x01(\x08\x42\x0b\n\toperation\"B\n(UpdateWorkerBuildIdCompatibilityResponse\x12\x16\n\x0eversion_set_id\x18\x01 \x01(\t\"\xac\x01\n$GetWorkerBuildIdCompatibilityRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x12\n\ntask_queue\x18\x02 \x01(\t\x12\x10\n\x08max_sets\x18\x03 \x01(\x05\x12%\n\x1dinclude_retirement_candidates\x18\x04 \x01(\x08\x12$\n\x1cinclude_poller_compatibility\x18\x05 \x01(\x08\"\xf8\x04\n%GetWorkerBuildIdCompatibilityResponse\x12K\n\x12major_version_sets\x18\x01 \x03(\x0b\x32/.temporal.api.taskqueue.v1.CompatibleVersionSet\x12y\n\x15retirement_candidates\x18\x02 \x03(\x0b\x32Z.temporal.api.workflowservice.v1.GetWorkerBuildIdCompatibilityResponse.RetirementCandidate\x12\x89\x01\n\x1b\x61\x63tive_versions_and_pollers\x18\x03 \x03(\x0b\x32\x64.temporal.api.workflowservice.v1.GetWorkerBuildIdCompatibilityResponse.VersionsWithCompatiblePollers\x1a\x83\x01\n\x13RetirementCandidate\x12\x10\n\x08\x62uild_id\x18\x01 \x01(\t\x12\"\n\x1a\x61ll_workflows_are_archived\x18\x02 \x01(\x08\x12\x36\n\x07pollers\x18\x03 \x03(\x0b\x32%.temporal.api.taskqueue.v1.PollerInfo\x1au\n\x1dVersionsWithCompatiblePollers\x12\x1c\n\x14most_recent_build_id\x18\x01 \x01(\t\x12\x36\n\x07pollers\x18\x02 \x03(\x0b\x32%.temporal.api.taskqueue.v1.PollerInfo\"\x85\x02\n\x1eUpdateWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x1e\n\x16\x66irst_execution_run_id\x18\x03 \x01(\t\x12\x37\n\x0bwait_policy\x18\x04 \x01(\x0b\x32\".temporal.api.update.v1.WaitPolicy\x12\x30\n\x07request\x18\x05 \x01(\x0b\x32\x1f.temporal.api.update.v1.Request\"\x8a\x01\n\x1fUpdateWorkflowExecutionResponse\x12\x35\n\nupdate_ref\x18\x01 \x01(\x0b\x32!.temporal.api.update.v1.UpdateRef\x12\x30\n\x07outcome\x18\x02 \x01(\x0b\x32\x1f.temporal.api.update.v1.Outcome\"\xf3\x03\n\x1aStartBatchOperationRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x18\n\x10visibility_query\x18\x02 \x01(\t\x12\x0e\n\x06job_id\x18\x03 \x01(\t\x12\x0e\n\x06reason\x18\x04 \x01(\t\x12=\n\nexecutions\x18\x05 \x03(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12Q\n\x15termination_operation\x18\n \x01(\x0b\x32\x30.temporal.api.batch.v1.BatchOperationTerminationH\x00\x12G\n\x10signal_operation\x18\x0b \x01(\x0b\x32+.temporal.api.batch.v1.BatchOperationSignalH\x00\x12S\n\x16\x63\x61ncellation_operation\x18\x0c \x01(\x0b\x32\x31.temporal.api.batch.v1.BatchOperationCancellationH\x00\x12K\n\x12\x64\x65letion_operation\x18\r \x01(\x0b\x32-.temporal.api.batch.v1.BatchOperationDeletionH\x00\x42\x0b\n\toperation\"\x1d\n\x1bStartBatchOperationResponse\"`\n\x19StopBatchOperationRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t\x12\x0e\n\x06reason\x18\x03 \x01(\t\x12\x10\n\x08identity\x18\x04 \x01(\t\"\x1c\n\x1aStopBatchOperationResponse\"B\n\x1d\x44\x65scribeBatchOperationRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t\"\x9e\x03\n\x1e\x44\x65scribeBatchOperationResponse\x12\x41\n\x0eoperation_type\x18\x01 \x01(\x0e\x32).temporal.api.enums.v1.BatchOperationType\x12\x0e\n\x06job_id\x18\x02 \x01(\t\x12\x39\n\x05state\x18\x03 \x01(\x0e\x32*.temporal.api.enums.v1.BatchOperationState\x12\x34\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\x90\xdf\x1f\x01\x12\x34\n\nclose_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\x90\xdf\x1f\x01\x12\x1d\n\x15total_operation_count\x18\x06 \x01(\x03\x12 \n\x18\x63omplete_operation_count\x18\x07 \x01(\x03\x12\x1f\n\x17\x66\x61ilure_operation_count\x18\x08 \x01(\x03\x12\x10\n\x08identity\x18\t \x01(\t\x12\x0e\n\x06reason\x18\n \x01(\t\"[\n\x1aListBatchOperationsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\"y\n\x1bListBatchOperationsResponse\x12\x41\n\x0eoperation_info\x18\x01 \x03(\x0b\x32).temporal.api.batch.v1.BatchOperationInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c\"\xb9\x01\n\"PollWorkflowExecutionUpdateRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x35\n\nupdate_ref\x18\x02 \x01(\x0b\x32!.temporal.api.update.v1.UpdateRef\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x37\n\x0bwait_policy\x18\x04 \x01(\x0b\x32\".temporal.api.update.v1.WaitPolicy\"W\n#PollWorkflowExecutionUpdateResponse\x12\x30\n\x07outcome\x18\x01 \x01(\x0b\x32\x1f.temporal.api.update.v1.OutcomeB\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" +descriptor_data = "\n6temporal/api/workflowservice/v1/request_response.proto\x12\x1Ftemporal.api.workflowservice.v1\x1A+temporal/api/enums/v1/batch_operation.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/common.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/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/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/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\x1Egoogle/protobuf/duration.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\x1A!dependencies/gogoproto/gogo.proto\"\x8E\x05\n\x18RegisterNamespaceRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\vdescription\x18\x02 \x01(\t\x12\x13\n\vowner_email\x18\x03 \x01(\t\x12L\n#workflow_execution_retention_period\x18\x04 \x01(\v2\x19.google.protobuf.DurationB\x04\x98\xDF\x1F\x01\x12G\n\bclusters\x18\x05 \x03(\v25.temporal.api.replication.v1.ClusterReplicationConfig\x12\e\n\x13active_cluster_name\x18\x06 \x01(\t\x12Q\n\x04data\x18\a \x03(\v2C.temporal.api.workflowservice.v1.RegisterNamespaceRequest.DataEntry\x12\x16\n\x0Esecurity_token\x18\b \x01(\t\x12\e\n\x13is_global_namespace\x18\t \x01(\b\x12D\n\x16history_archival_state\x18\n \x01(\x0E2$.temporal.api.enums.v1.ArchivalState\x12\x1C\n\x14history_archival_uri\x18\v \x01(\t\x12G\n\x19visibility_archival_state\x18\f \x01(\x0E2$.temporal.api.enums.v1.ArchivalState\x12\x1F\n\x17visibility_archival_uri\x18\r \x01(\t\x1A+\n\tDataEntry\x12\v\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x028\x01\"\e\n\x19RegisterNamespaceResponse\"\x89\x01\n\x15ListNamespacesRequest\x12\x11\n\tpage_size\x18\x01 \x01(\x05\x12\x17\n\x0Fnext_page_token\x18\x02 \x01(\f\x12D\n\x10namespace_filter\x18\x03 \x01(\v2*.temporal.api.namespace.v1.NamespaceFilter\"\x81\x01\n\x16ListNamespacesResponse\x12N\n\nnamespaces\x18\x01 \x03(\v2:.temporal.api.workflowservice.v1.DescribeNamespaceResponse\x12\x17\n\x0Fnext_page_token\x18\x02 \x01(\f\"9\n\x18DescribeNamespaceRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\n\n\x02id\x18\x02 \x01(\t\"\xEC\x02\n\x19DescribeNamespaceResponse\x12@\n\x0Enamespace_info\x18\x01 \x01(\v2(.temporal.api.namespace.v1.NamespaceInfo\x12:\n\x06config\x18\x02 \x01(\v2*.temporal.api.namespace.v1.NamespaceConfig\x12S\n\x12replication_config\x18\x03 \x01(\v27.temporal.api.replication.v1.NamespaceReplicationConfig\x12\x18\n\x10failover_version\x18\x04 \x01(\x03\x12\e\n\x13is_global_namespace\x18\x05 \x01(\b\x12E\n\x10failover_history\x18\x06 \x03(\v2+.temporal.api.replication.v1.FailoverStatus\"\xCF\x02\n\x16UpdateNamespaceRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12C\n\vupdate_info\x18\x02 \x01(\v2..temporal.api.namespace.v1.UpdateNamespaceInfo\x12:\n\x06config\x18\x03 \x01(\v2*.temporal.api.namespace.v1.NamespaceConfig\x12S\n\x12replication_config\x18\x04 \x01(\v27.temporal.api.replication.v1.NamespaceReplicationConfig\x12\x16\n\x0Esecurity_token\x18\x05 \x01(\t\x12\x19\n\x11delete_bad_binary\x18\x06 \x01(\t\x12\x19\n\x11promote_namespace\x18\a \x01(\b\"\xA3\x02\n\x17UpdateNamespaceResponse\x12@\n\x0Enamespace_info\x18\x01 \x01(\v2(.temporal.api.namespace.v1.NamespaceInfo\x12:\n\x06config\x18\x02 \x01(\v2*.temporal.api.namespace.v1.NamespaceConfig\x12S\n\x12replication_config\x18\x03 \x01(\v27.temporal.api.replication.v1.NamespaceReplicationConfig\x12\x18\n\x10failover_version\x18\x04 \x01(\x03\x12\e\n\x13is_global_namespace\x18\x05 \x01(\b\"F\n\x19DeprecateNamespaceRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x16\n\x0Esecurity_token\x18\x02 \x01(\t\"\x1C\n\x1ADeprecateNamespaceResponse\"\xD1\b\n\x1DStartWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\vworkflow_id\x18\x02 \x01(\t\x12;\n\rworkflow_type\x18\x03 \x01(\v2$.temporal.api.common.v1.WorkflowType\x128\n\ntask_queue\x18\x04 \x01(\v2$.temporal.api.taskqueue.v1.TaskQueue\x12/\n\x05input\x18\x05 \x01(\v2 .temporal.api.common.v1.Payloads\x12C\n\x1Aworkflow_execution_timeout\x18\x06 \x01(\v2\x19.google.protobuf.DurationB\x04\x98\xDF\x1F\x01\x12=\n\x14workflow_run_timeout\x18\a \x01(\v2\x19.google.protobuf.DurationB\x04\x98\xDF\x1F\x01\x12>\n\x15workflow_task_timeout\x18\b \x01(\v2\x19.google.protobuf.DurationB\x04\x98\xDF\x1F\x01\x12\x10\n\bidentity\x18\t \x01(\t\x12\x12\n\nrequest_id\x18\n \x01(\t\x12N\n\x18workflow_id_reuse_policy\x18\v \x01(\x0E2,.temporal.api.enums.v1.WorkflowIdReusePolicy\x129\n\fretry_policy\x18\f \x01(\v2#.temporal.api.common.v1.RetryPolicy\x12\x15\n\rcron_schedule\x18\r \x01(\t\x12*\n\x04memo\x18\x0E \x01(\v2\x1C.temporal.api.common.v1.Memo\x12C\n\x11search_attributes\x18\x0F \x01(\v2(.temporal.api.common.v1.SearchAttributes\x12.\n\x06header\x18\x10 \x01(\v2\x1E.temporal.api.common.v1.Header\x12\x1F\n\x17request_eager_execution\x18\x11 \x01(\b\x12;\n\x11continued_failure\x18\x12 \x01(\v2 .temporal.api.failure.v1.Failure\x12@\n\x16last_completion_result\x18\x13 \x01(\v2 .temporal.api.common.v1.Payloads\x12=\n\x14workflow_start_delay\x18\x14 \x01(\v2\x19.google.protobuf.DurationB\x04\x98\xDF\x1F\x01\x12T\n\eworkflow_id_conflict_policy\x18\x16 \x01(\x0E2/.temporal.api.enums.v1.WorkflowIdConflictPolicy\"\x9E\x01\n\x1EStartWorkflowExecutionResponse\x12\x0E\n\x06run_id\x18\x01 \x01(\t\x12[\n\x13eager_workflow_task\x18\x02 \x01(\v2>.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse\x12\x0F\n\astarted\x18\x03 \x01(\b\"\xAA\x02\n\"GetWorkflowExecutionHistoryRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\v2).temporal.api.common.v1.WorkflowExecution\x12\x19\n\x11maximum_page_size\x18\x03 \x01(\x05\x12\x17\n\x0Fnext_page_token\x18\x04 \x01(\f\x12\x16\n\x0Ewait_new_event\x18\x05 \x01(\b\x12P\n\x19history_event_filter_type\x18\x06 \x01(\x0E2-.temporal.api.enums.v1.HistoryEventFilterType\x12\x15\n\rskip_archival\x18\a \x01(\b\"\xBA\x01\n#GetWorkflowExecutionHistoryResponse\x121\n\ahistory\x18\x01 \x01(\v2 .temporal.api.history.v1.History\x125\n\vraw_history\x18\x02 \x03(\v2 .temporal.api.common.v1.DataBlob\x12\x17\n\x0Fnext_page_token\x18\x03 \x01(\f\x12\x10\n\barchived\x18\x04 \x01(\b\"\xB0\x01\n)GetWorkflowExecutionHistoryReverseRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\v2).temporal.api.common.v1.WorkflowExecution\x12\x19\n\x11maximum_page_size\x18\x03 \x01(\x05\x12\x17\n\x0Fnext_page_token\x18\x04 \x01(\f\"x\n*GetWorkflowExecutionHistoryReverseResponse\x121\n\ahistory\x18\x01 \x01(\v2 .temporal.api.history.v1.History\x12\x17\n\x0Fnext_page_token\x18\x03 \x01(\f\"\xEE\x01\n\x1CPollWorkflowTaskQueueRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x128\n\ntask_queue\x18\x02 \x01(\v2$.temporal.api.taskqueue.v1.TaskQueue\x12\x10\n\bidentity\x18\x03 \x01(\t\x12\x17\n\x0Fbinary_checksum\x18\x04 \x01(\t\x12V\n\eworker_version_capabilities\x18\x05 \x01(\v21.temporal.api.common.v1.WorkerVersionCapabilities\"\xCA\x06\n\x1DPollWorkflowTaskQueueResponse\x12\x12\n\ntask_token\x18\x01 \x01(\f\x12E\n\x12workflow_execution\x18\x02 \x01(\v2).temporal.api.common.v1.WorkflowExecution\x12;\n\rworkflow_type\x18\x03 \x01(\v2$.temporal.api.common.v1.WorkflowType\x12!\n\x19previous_started_event_id\x18\x04 \x01(\x03\x12\x18\n\x10started_event_id\x18\x05 \x01(\x03\x12\x0F\n\aattempt\x18\x06 \x01(\x05\x12\x1A\n\x12backlog_count_hint\x18\a \x01(\x03\x121\n\ahistory\x18\b \x01(\v2 .temporal.api.history.v1.History\x12\x17\n\x0Fnext_page_token\x18\t \x01(\f\x123\n\x05query\x18\n \x01(\v2$.temporal.api.query.v1.WorkflowQuery\x12K\n\x1Dworkflow_execution_task_queue\x18\v \x01(\v2$.temporal.api.taskqueue.v1.TaskQueue\x128\n\x0Escheduled_time\x18\f \x01(\v2\x1A.google.protobuf.TimestampB\x04\x90\xDF\x1F\x01\x126\n\fstarted_time\x18\r \x01(\v2\x1A.google.protobuf.TimestampB\x04\x90\xDF\x1F\x01\x12\\\n\aqueries\x18\x0E \x03(\v2K.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse.QueriesEntry\x123\n\bmessages\x18\x0F \x03(\v2!.temporal.api.protocol.v1.Message\x1AT\n\fQueriesEntry\x12\v\n\x03key\x18\x01 \x01(\t\x123\n\x05value\x18\x02 \x01(\v2$.temporal.api.query.v1.WorkflowQuery:\x028\x01\"\xA4\x06\n#RespondWorkflowTaskCompletedRequest\x12\x12\n\ntask_token\x18\x01 \x01(\f\x122\n\bcommands\x18\x02 \x03(\v2 .temporal.api.command.v1.Command\x12\x10\n\bidentity\x18\x03 \x01(\t\x12O\n\x11sticky_attributes\x18\x04 \x01(\v24.temporal.api.taskqueue.v1.StickyExecutionAttributes\x12 \n\x18return_new_workflow_task\x18\x05 \x01(\b\x12&\n\x1Eforce_create_new_workflow_task\x18\x06 \x01(\b\x12\x17\n\x0Fbinary_checksum\x18\a \x01(\t\x12m\n\rquery_results\x18\b \x03(\v2V.temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedRequest.QueryResultsEntry\x12\x11\n\tnamespace\x18\t \x01(\t\x12H\n\x14worker_version_stamp\x18\n \x01(\v2*.temporal.api.common.v1.WorkerVersionStamp\x123\n\bmessages\x18\v \x03(\v2!.temporal.api.protocol.v1.Message\x12H\n\fsdk_metadata\x18\f \x01(\v22.temporal.api.sdk.v1.WorkflowTaskCompletedMetadata\x12C\n\x11metering_metadata\x18\r \x01(\v2(.temporal.api.common.v1.MeteringMetadata\x1A_\n\x11QueryResultsEntry\x12\v\n\x03key\x18\x01 \x01(\t\x129\n\x05value\x18\x02 \x01(\v2*.temporal.api.query.v1.WorkflowQueryResult:\x028\x01\"\xF5\x01\n$RespondWorkflowTaskCompletedResponse\x12U\n\rworkflow_task\x18\x01 \x01(\v2>.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse\x12V\n\x0Eactivity_tasks\x18\x02 \x03(\v2>.temporal.api.workflowservice.v1.PollActivityTaskQueueResponse\x12\x1E\n\x16reset_history_event_id\x18\x03 \x01(\x03\"\x9B\x02\n RespondWorkflowTaskFailedRequest\x12\x12\n\ntask_token\x18\x01 \x01(\f\x12=\n\x05cause\x18\x02 \x01(\x0E2..temporal.api.enums.v1.WorkflowTaskFailedCause\x121\n\afailure\x18\x03 \x01(\v2 .temporal.api.failure.v1.Failure\x12\x10\n\bidentity\x18\x04 \x01(\t\x12\x17\n\x0Fbinary_checksum\x18\x05 \x01(\t\x12\x11\n\tnamespace\x18\x06 \x01(\t\x123\n\bmessages\x18\a \x03(\v2!.temporal.api.protocol.v1.Message\"#\n!RespondWorkflowTaskFailedResponse\"\xA0\x02\n\x1CPollActivityTaskQueueRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x128\n\ntask_queue\x18\x02 \x01(\v2$.temporal.api.taskqueue.v1.TaskQueue\x12\x10\n\bidentity\x18\x03 \x01(\t\x12I\n\x13task_queue_metadata\x18\x04 \x01(\v2,.temporal.api.taskqueue.v1.TaskQueueMetadata\x12V\n\eworker_version_capabilities\x18\x05 \x01(\v21.temporal.api.common.v1.WorkerVersionCapabilities\"\x8C\a\n\x1DPollActivityTaskQueueResponse\x12\x12\n\ntask_token\x18\x01 \x01(\f\x12\x1A\n\x12workflow_namespace\x18\x02 \x01(\t\x12;\n\rworkflow_type\x18\x03 \x01(\v2$.temporal.api.common.v1.WorkflowType\x12E\n\x12workflow_execution\x18\x04 \x01(\v2).temporal.api.common.v1.WorkflowExecution\x12;\n\ractivity_type\x18\x05 \x01(\v2$.temporal.api.common.v1.ActivityType\x12\x13\n\vactivity_id\x18\x06 \x01(\t\x12.\n\x06header\x18\a \x01(\v2\x1E.temporal.api.common.v1.Header\x12/\n\x05input\x18\b \x01(\v2 .temporal.api.common.v1.Payloads\x12;\n\x11heartbeat_details\x18\t \x01(\v2 .temporal.api.common.v1.Payloads\x128\n\x0Escheduled_time\x18\n \x01(\v2\x1A.google.protobuf.TimestampB\x04\x90\xDF\x1F\x01\x12H\n\x1Ecurrent_attempt_scheduled_time\x18\v \x01(\v2\x1A.google.protobuf.TimestampB\x04\x90\xDF\x1F\x01\x126\n\fstarted_time\x18\f \x01(\v2\x1A.google.protobuf.TimestampB\x04\x90\xDF\x1F\x01\x12\x0F\n\aattempt\x18\r \x01(\x05\x12B\n\x19schedule_to_close_timeout\x18\x0E \x01(\v2\x19.google.protobuf.DurationB\x04\x98\xDF\x1F\x01\x12?\n\x16start_to_close_timeout\x18\x0F \x01(\v2\x19.google.protobuf.DurationB\x04\x98\xDF\x1F\x01\x12:\n\x11heartbeat_timeout\x18\x10 \x01(\v2\x19.google.protobuf.DurationB\x04\x98\xDF\x1F\x01\x129\n\fretry_policy\x18\x11 \x01(\v2#.temporal.api.common.v1.RetryPolicy\"\x90\x01\n\"RecordActivityTaskHeartbeatRequest\x12\x12\n\ntask_token\x18\x01 \x01(\f\x121\n\adetails\x18\x02 \x01(\v2 .temporal.api.common.v1.Payloads\x12\x10\n\bidentity\x18\x03 \x01(\t\x12\x11\n\tnamespace\x18\x04 \x01(\t\"?\n#RecordActivityTaskHeartbeatResponse\x12\x18\n\x10cancel_requested\x18\x01 \x01(\b\"\xBA\x01\n&RecordActivityTaskHeartbeatByIdRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\vworkflow_id\x18\x02 \x01(\t\x12\x0E\n\x06run_id\x18\x03 \x01(\t\x12\x13\n\vactivity_id\x18\x04 \x01(\t\x121\n\adetails\x18\x05 \x01(\v2 .temporal.api.common.v1.Payloads\x12\x10\n\bidentity\x18\x06 \x01(\t\"C\n'RecordActivityTaskHeartbeatByIdResponse\x12\x18\n\x10cancel_requested\x18\x01 \x01(\b\"\x90\x01\n#RespondActivityTaskCompletedRequest\x12\x12\n\ntask_token\x18\x01 \x01(\f\x120\n\x06result\x18\x02 \x01(\v2 .temporal.api.common.v1.Payloads\x12\x10\n\bidentity\x18\x03 \x01(\t\x12\x11\n\tnamespace\x18\x04 \x01(\t\"&\n$RespondActivityTaskCompletedResponse\"\xBA\x01\n'RespondActivityTaskCompletedByIdRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\vworkflow_id\x18\x02 \x01(\t\x12\x0E\n\x06run_id\x18\x03 \x01(\t\x12\x13\n\vactivity_id\x18\x04 \x01(\t\x120\n\x06result\x18\x05 \x01(\v2 .temporal.api.common.v1.Payloads\x12\x10\n\bidentity\x18\x06 \x01(\t\"*\n(RespondActivityTaskCompletedByIdResponse\"\xD0\x01\n RespondActivityTaskFailedRequest\x12\x12\n\ntask_token\x18\x01 \x01(\f\x121\n\afailure\x18\x02 \x01(\v2 .temporal.api.failure.v1.Failure\x12\x10\n\bidentity\x18\x03 \x01(\t\x12\x11\n\tnamespace\x18\x04 \x01(\t\x12@\n\x16last_heartbeat_details\x18\x05 \x01(\v2 .temporal.api.common.v1.Payloads\"W\n!RespondActivityTaskFailedResponse\x122\n\bfailures\x18\x01 \x03(\v2 .temporal.api.failure.v1.Failure\"\xFA\x01\n$RespondActivityTaskFailedByIdRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\vworkflow_id\x18\x02 \x01(\t\x12\x0E\n\x06run_id\x18\x03 \x01(\t\x12\x13\n\vactivity_id\x18\x04 \x01(\t\x121\n\afailure\x18\x05 \x01(\v2 .temporal.api.failure.v1.Failure\x12\x10\n\bidentity\x18\x06 \x01(\t\x12@\n\x16last_heartbeat_details\x18\a \x01(\v2 .temporal.api.common.v1.Payloads\"[\n%RespondActivityTaskFailedByIdResponse\x122\n\bfailures\x18\x01 \x03(\v2 .temporal.api.failure.v1.Failure\"\x90\x01\n\"RespondActivityTaskCanceledRequest\x12\x12\n\ntask_token\x18\x01 \x01(\f\x121\n\adetails\x18\x02 \x01(\v2 .temporal.api.common.v1.Payloads\x12\x10\n\bidentity\x18\x03 \x01(\t\x12\x11\n\tnamespace\x18\x04 \x01(\t\"%\n#RespondActivityTaskCanceledResponse\"\xBA\x01\n&RespondActivityTaskCanceledByIdRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\vworkflow_id\x18\x02 \x01(\t\x12\x0E\n\x06run_id\x18\x03 \x01(\t\x12\x13\n\vactivity_id\x18\x04 \x01(\t\x121\n\adetails\x18\x05 \x01(\v2 .temporal.api.common.v1.Payloads\x12\x10\n\bidentity\x18\x06 \x01(\t\")\n'RespondActivityTaskCanceledByIdResponse\"\xD7\x01\n%RequestCancelWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12E\n\x12workflow_execution\x18\x02 \x01(\v2).temporal.api.common.v1.WorkflowExecution\x12\x10\n\bidentity\x18\x03 \x01(\t\x12\x12\n\nrequest_id\x18\x04 \x01(\t\x12\x1E\n\x16first_execution_run_id\x18\x05 \x01(\t\x12\x0E\n\x06reason\x18\x06 \x01(\t\"(\n&RequestCancelWorkflowExecutionResponse\"\xCC\x02\n\x1ESignalWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12E\n\x12workflow_execution\x18\x02 \x01(\v2).temporal.api.common.v1.WorkflowExecution\x12\x13\n\vsignal_name\x18\x03 \x01(\t\x12/\n\x05input\x18\x04 \x01(\v2 .temporal.api.common.v1.Payloads\x12\x10\n\bidentity\x18\x05 \x01(\t\x12\x12\n\nrequest_id\x18\x06 \x01(\t\x12\x0F\n\acontrol\x18\a \x01(\t\x12.\n\x06header\x18\b \x01(\v2\x1E.temporal.api.common.v1.Header\x12#\n\eskip_generate_workflow_task\x18\t \x01(\b\"!\n\x1FSignalWorkflowExecutionResponse\"\xE8\a\n'SignalWithStartWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\vworkflow_id\x18\x02 \x01(\t\x12;\n\rworkflow_type\x18\x03 \x01(\v2$.temporal.api.common.v1.WorkflowType\x128\n\ntask_queue\x18\x04 \x01(\v2$.temporal.api.taskqueue.v1.TaskQueue\x12/\n\x05input\x18\x05 \x01(\v2 .temporal.api.common.v1.Payloads\x12C\n\x1Aworkflow_execution_timeout\x18\x06 \x01(\v2\x19.google.protobuf.DurationB\x04\x98\xDF\x1F\x01\x12=\n\x14workflow_run_timeout\x18\a \x01(\v2\x19.google.protobuf.DurationB\x04\x98\xDF\x1F\x01\x12>\n\x15workflow_task_timeout\x18\b \x01(\v2\x19.google.protobuf.DurationB\x04\x98\xDF\x1F\x01\x12\x10\n\bidentity\x18\t \x01(\t\x12\x12\n\nrequest_id\x18\n \x01(\t\x12N\n\x18workflow_id_reuse_policy\x18\v \x01(\x0E2,.temporal.api.enums.v1.WorkflowIdReusePolicy\x12\x13\n\vsignal_name\x18\f \x01(\t\x126\n\fsignal_input\x18\r \x01(\v2 .temporal.api.common.v1.Payloads\x12\x0F\n\acontrol\x18\x0E \x01(\t\x129\n\fretry_policy\x18\x0F \x01(\v2#.temporal.api.common.v1.RetryPolicy\x12\x15\n\rcron_schedule\x18\x10 \x01(\t\x12*\n\x04memo\x18\x11 \x01(\v2\x1C.temporal.api.common.v1.Memo\x12C\n\x11search_attributes\x18\x12 \x01(\v2(.temporal.api.common.v1.SearchAttributes\x12.\n\x06header\x18\x13 \x01(\v2\x1E.temporal.api.common.v1.Header\x12=\n\x14workflow_start_delay\x18\x14 \x01(\v2\x19.google.protobuf.DurationB\x04\x98\xDF\x1F\x01\x12#\n\eskip_generate_workflow_task\x18\x15 \x01(\b\":\n(SignalWithStartWorkflowExecutionResponse\x12\x0E\n\x06run_id\x18\x01 \x01(\t\"\x89\x02\n\x1DResetWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12E\n\x12workflow_execution\x18\x02 \x01(\v2).temporal.api.common.v1.WorkflowExecution\x12\x0E\n\x06reason\x18\x03 \x01(\t\x12%\n\x1Dworkflow_task_finish_event_id\x18\x04 \x01(\x03\x12\x12\n\nrequest_id\x18\x05 \x01(\t\x12C\n\x12reset_reapply_type\x18\x06 \x01(\x0E2'.temporal.api.enums.v1.ResetReapplyType\"0\n\x1EResetWorkflowExecutionResponse\x12\x0E\n\x06run_id\x18\x01 \x01(\t\"\xF2\x01\n!TerminateWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12E\n\x12workflow_execution\x18\x02 \x01(\v2).temporal.api.common.v1.WorkflowExecution\x12\x0E\n\x06reason\x18\x03 \x01(\t\x121\n\adetails\x18\x04 \x01(\v2 .temporal.api.common.v1.Payloads\x12\x10\n\bidentity\x18\x05 \x01(\t\x12\x1E\n\x16first_execution_run_id\x18\x06 \x01(\t\"$\n\"TerminateWorkflowExecutionResponse\"z\n\x1EDeleteWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12E\n\x12workflow_execution\x18\x02 \x01(\v2).temporal.api.common.v1.WorkflowExecution\"!\n\x1FDeleteWorkflowExecutionResponse\"\xC9\x02\n!ListOpenWorkflowExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x19\n\x11maximum_page_size\x18\x02 \x01(\x05\x12\x17\n\x0Fnext_page_token\x18\x03 \x01(\f\x12B\n\x11start_time_filter\x18\x04 \x01(\v2'.temporal.api.filter.v1.StartTimeFilter\x12K\n\x10execution_filter\x18\x05 \x01(\v2/.temporal.api.filter.v1.WorkflowExecutionFilterH\x00\x12A\n\vtype_filter\x18\x06 \x01(\v2*.temporal.api.filter.v1.WorkflowTypeFilterH\x00B\t\n\afilters\"\x82\x01\n\"ListOpenWorkflowExecutionsResponse\x12C\n\nexecutions\x18\x01 \x03(\v2/.temporal.api.workflow.v1.WorkflowExecutionInfo\x12\x17\n\x0Fnext_page_token\x18\x02 \x01(\f\"\x8A\x03\n#ListClosedWorkflowExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x19\n\x11maximum_page_size\x18\x02 \x01(\x05\x12\x17\n\x0Fnext_page_token\x18\x03 \x01(\f\x12B\n\x11start_time_filter\x18\x04 \x01(\v2'.temporal.api.filter.v1.StartTimeFilter\x12K\n\x10execution_filter\x18\x05 \x01(\v2/.temporal.api.filter.v1.WorkflowExecutionFilterH\x00\x12A\n\vtype_filter\x18\x06 \x01(\v2*.temporal.api.filter.v1.WorkflowTypeFilterH\x00\x12=\n\rstatus_filter\x18\a \x01(\v2$.temporal.api.filter.v1.StatusFilterH\x00B\t\n\afilters\"\x84\x01\n$ListClosedWorkflowExecutionsResponse\x12C\n\nexecutions\x18\x01 \x03(\v2/.temporal.api.workflow.v1.WorkflowExecutionInfo\x12\x17\n\x0Fnext_page_token\x18\x02 \x01(\f\"m\n\x1DListWorkflowExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0Fnext_page_token\x18\x03 \x01(\f\x12\r\n\x05query\x18\x04 \x01(\t\"~\n\x1EListWorkflowExecutionsResponse\x12C\n\nexecutions\x18\x01 \x03(\v2/.temporal.api.workflow.v1.WorkflowExecutionInfo\x12\x17\n\x0Fnext_page_token\x18\x02 \x01(\f\"u\n%ListArchivedWorkflowExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0Fnext_page_token\x18\x03 \x01(\f\x12\r\n\x05query\x18\x04 \x01(\t\"\x86\x01\n&ListArchivedWorkflowExecutionsResponse\x12C\n\nexecutions\x18\x01 \x03(\v2/.temporal.api.workflow.v1.WorkflowExecutionInfo\x12\x17\n\x0Fnext_page_token\x18\x02 \x01(\f\"m\n\x1DScanWorkflowExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0Fnext_page_token\x18\x03 \x01(\f\x12\r\n\x05query\x18\x04 \x01(\t\"~\n\x1EScanWorkflowExecutionsResponse\x12C\n\nexecutions\x18\x01 \x03(\v2/.temporal.api.workflow.v1.WorkflowExecutionInfo\x12\x17\n\x0Fnext_page_token\x18\x02 \x01(\f\"B\n\x1ECountWorkflowExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\r\n\x05query\x18\x02 \x01(\t\"0\n\x1FCountWorkflowExecutionsResponse\x12\r\n\x05count\x18\x01 \x01(\x03\"\x1C\n\x1AGetSearchAttributesRequest\"\xC9\x01\n\eGetSearchAttributesResponse\x12T\n\x04keys\x18\x01 \x03(\v2F.temporal.api.workflowservice.v1.GetSearchAttributesResponse.KeysEntry\x1AT\n\tKeysEntry\x12\v\n\x03key\x18\x01 \x01(\t\x126\n\x05value\x18\x02 \x01(\x0E2'.temporal.api.enums.v1.IndexedValueType:\x028\x01\"\xDE\x01\n RespondQueryTaskCompletedRequest\x12\x12\n\ntask_token\x18\x01 \x01(\f\x12>\n\x0Ecompleted_type\x18\x02 \x01(\x0E2&.temporal.api.enums.v1.QueryResultType\x126\n\fquery_result\x18\x03 \x01(\v2 .temporal.api.common.v1.Payloads\x12\x15\n\rerror_message\x18\x04 \x01(\t\x12\x11\n\tnamespace\x18\x06 \x01(\tJ\x04\b\x05\x10\x06\"#\n!RespondQueryTaskCompletedResponse\"n\n\eResetStickyTaskQueueRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\v2).temporal.api.common.v1.WorkflowExecution\"\x1E\n\x1CResetStickyTaskQueueResponse\"\xE9\x01\n\x14QueryWorkflowRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\v2).temporal.api.common.v1.WorkflowExecution\x123\n\x05query\x18\x03 \x01(\v2$.temporal.api.query.v1.WorkflowQuery\x12K\n\x16query_reject_condition\x18\x04 \x01(\x0E2+.temporal.api.enums.v1.QueryRejectCondition\"\x8D\x01\n\x15QueryWorkflowResponse\x126\n\fquery_result\x18\x01 \x01(\v2 .temporal.api.common.v1.Payloads\x12<\n\x0Equery_rejected\x18\x02 \x01(\v2$.temporal.api.query.v1.QueryRejected\"s\n DescribeWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\v2).temporal.api.common.v1.WorkflowExecution\"\xAE\x03\n!DescribeWorkflowExecutionResponse\x12K\n\x10execution_config\x18\x01 \x01(\v21.temporal.api.workflow.v1.WorkflowExecutionConfig\x12P\n\x17workflow_execution_info\x18\x02 \x01(\v2/.temporal.api.workflow.v1.WorkflowExecutionInfo\x12I\n\x12pending_activities\x18\x03 \x03(\v2-.temporal.api.workflow.v1.PendingActivityInfo\x12M\n\x10pending_children\x18\x04 \x03(\v23.temporal.api.workflow.v1.PendingChildExecutionInfo\x12P\n\x15pending_workflow_task\x18\x05 \x01(\v21.temporal.api.workflow.v1.PendingWorkflowTaskInfo\"\xC9\x01\n\x18DescribeTaskQueueRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x128\n\ntask_queue\x18\x02 \x01(\v2$.temporal.api.taskqueue.v1.TaskQueue\x12=\n\x0Ftask_queue_type\x18\x03 \x01(\x0E2$.temporal.api.enums.v1.TaskQueueType\x12!\n\x19include_task_queue_status\x18\x04 \x01(\b\"\x9A\x01\n\x19DescribeTaskQueueResponse\x126\n\apollers\x18\x01 \x03(\v2%.temporal.api.taskqueue.v1.PollerInfo\x12E\n\x11task_queue_status\x18\x02 \x01(\v2*.temporal.api.taskqueue.v1.TaskQueueStatus\"\x17\n\x15GetClusterInfoRequest\"\x8B\x03\n\x16GetClusterInfoResponse\x12h\n\x11supported_clients\x18\x01 \x03(\v2M.temporal.api.workflowservice.v1.GetClusterInfoResponse.SupportedClientsEntry\x12\x16\n\x0Eserver_version\x18\x02 \x01(\t\x12\x12\n\ncluster_id\x18\x03 \x01(\t\x12:\n\fversion_info\x18\x04 \x01(\v2$.temporal.api.version.v1.VersionInfo\x12\x14\n\fcluster_name\x18\x05 \x01(\t\x12\e\n\x13history_shard_count\x18\x06 \x01(\x05\x12\x19\n\x11persistence_store\x18\a \x01(\t\x12\x18\n\x10visibility_store\x18\b \x01(\t\x1A7\n\x15SupportedClientsEntry\x12\v\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x028\x01\"\x16\n\x14GetSystemInfoRequest\"\xBC\x03\n\x15GetSystemInfoResponse\x12\x16\n\x0Eserver_version\x18\x01 \x01(\t\x12Y\n\fcapabilities\x18\x02 \x01(\v2C.temporal.api.workflowservice.v1.GetSystemInfoResponse.Capabilities\x1A\xAF\x02\n\fCapabilities\x12\x1F\n\x17signal_and_query_header\x18\x01 \x01(\b\x12&\n\x1Einternal_error_differentiation\x18\x02 \x01(\b\x12*\n\"activity_failure_include_heartbeat\x18\x03 \x01(\b\x12\x1A\n\x12supports_schedules\x18\x04 \x01(\b\x12\"\n\x1Aencoded_failure_attributes\x18\x05 \x01(\b\x12!\n\x19build_id_based_versioning\x18\x06 \x01(\b\x12\x13\n\vupsert_memo\x18\a \x01(\b\x12\x1C\n\x14eager_workflow_start\x18\b \x01(\b\x12\x14\n\fsdk_metadata\x18\t \x01(\b\"m\n\x1EListTaskQueuePartitionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x128\n\ntask_queue\x18\x02 \x01(\v2$.temporal.api.taskqueue.v1.TaskQueue\"\xDF\x01\n\x1FListTaskQueuePartitionsResponse\x12]\n\x1Eactivity_task_queue_partitions\x18\x01 \x03(\v25.temporal.api.taskqueue.v1.TaskQueuePartitionMetadata\x12]\n\x1Eworkflow_task_queue_partitions\x18\x02 \x03(\v25.temporal.api.taskqueue.v1.TaskQueuePartitionMetadata\"\xCC\x02\n\x15CreateScheduleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\vschedule_id\x18\x02 \x01(\t\x124\n\bschedule\x18\x03 \x01(\v2\".temporal.api.schedule.v1.Schedule\x12>\n\rinitial_patch\x18\x04 \x01(\v2'.temporal.api.schedule.v1.SchedulePatch\x12\x10\n\bidentity\x18\x05 \x01(\t\x12\x12\n\nrequest_id\x18\x06 \x01(\t\x12*\n\x04memo\x18\a \x01(\v2\x1C.temporal.api.common.v1.Memo\x12C\n\x11search_attributes\x18\b \x01(\v2(.temporal.api.common.v1.SearchAttributes\"0\n\x16CreateScheduleResponse\x12\x16\n\x0Econflict_token\x18\x01 \x01(\f\"A\n\x17DescribeScheduleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\vschedule_id\x18\x02 \x01(\t\"\x8F\x02\n\x18DescribeScheduleResponse\x124\n\bschedule\x18\x01 \x01(\v2\".temporal.api.schedule.v1.Schedule\x124\n\x04info\x18\x02 \x01(\v2&.temporal.api.schedule.v1.ScheduleInfo\x12*\n\x04memo\x18\x03 \x01(\v2\x1C.temporal.api.common.v1.Memo\x12C\n\x11search_attributes\x18\x04 \x01(\v2(.temporal.api.common.v1.SearchAttributes\x12\x16\n\x0Econflict_token\x18\x05 \x01(\f\"\xB3\x01\n\x15UpdateScheduleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\vschedule_id\x18\x02 \x01(\t\x124\n\bschedule\x18\x03 \x01(\v2\".temporal.api.schedule.v1.Schedule\x12\x16\n\x0Econflict_token\x18\x04 \x01(\f\x12\x10\n\bidentity\x18\x05 \x01(\t\x12\x12\n\nrequest_id\x18\x06 \x01(\t\"\x18\n\x16UpdateScheduleResponse\"\x9C\x01\n\x14PatchScheduleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\vschedule_id\x18\x02 \x01(\t\x126\n\x05patch\x18\x03 \x01(\v2'.temporal.api.schedule.v1.SchedulePatch\x12\x10\n\bidentity\x18\x04 \x01(\t\x12\x12\n\nrequest_id\x18\x05 \x01(\t\"\x17\n\x15PatchScheduleResponse\"\xB4\x01\n ListScheduleMatchingTimesRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\vschedule_id\x18\x02 \x01(\t\x124\n\nstart_time\x18\x03 \x01(\v2\x1A.google.protobuf.TimestampB\x04\x90\xDF\x1F\x01\x122\n\bend_time\x18\x04 \x01(\v2\x1A.google.protobuf.TimestampB\x04\x90\xDF\x1F\x01\"Y\n!ListScheduleMatchingTimesResponse\x124\n\nstart_time\x18\x01 \x03(\v2\x1A.google.protobuf.TimestampB\x04\x90\xDF\x1F\x01\"Q\n\x15DeleteScheduleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\vschedule_id\x18\x02 \x01(\t\x12\x10\n\bidentity\x18\x03 \x01(\t\"\x18\n\x16DeleteScheduleResponse\"]\n\x14ListSchedulesRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x19\n\x11maximum_page_size\x18\x02 \x01(\x05\x12\x17\n\x0Fnext_page_token\x18\x03 \x01(\f\"p\n\x15ListSchedulesResponse\x12>\n\tschedules\x18\x01 \x03(\v2+.temporal.api.schedule.v1.ScheduleListEntry\x12\x17\n\x0Fnext_page_token\x18\x02 \x01(\f\"\xD1\x03\n'UpdateWorkerBuildIdCompatibilityRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x12\n\ntask_queue\x18\x02 \x01(\t\x12-\n#add_new_build_id_in_new_default_set\x18\x03 \x01(\tH\x00\x12\x87\x01\n\eadd_new_compatible_build_id\x18\x04 \x01(\v2`.temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityRequest.AddNewCompatibleVersionH\x00\x12!\n\x17promote_set_by_build_id\x18\x05 \x01(\tH\x00\x12%\n\epromote_build_id_within_set\x18\x06 \x01(\tH\x00\x1Ao\n\x17AddNewCompatibleVersion\x12\x14\n\fnew_build_id\x18\x01 \x01(\t\x12$\n\x1Cexisting_compatible_build_id\x18\x02 \x01(\t\x12\x18\n\x10make_set_default\x18\x03 \x01(\bB\v\n\toperation\"B\n(UpdateWorkerBuildIdCompatibilityResponse\x12\x16\n\x0Eversion_set_id\x18\x01 \x01(\t\"\xAC\x01\n$GetWorkerBuildIdCompatibilityRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x12\n\ntask_queue\x18\x02 \x01(\t\x12\x10\n\bmax_sets\x18\x03 \x01(\x05\x12%\n\x1Dinclude_retirement_candidates\x18\x04 \x01(\b\x12$\n\x1Cinclude_poller_compatibility\x18\x05 \x01(\b\"\xF8\x04\n%GetWorkerBuildIdCompatibilityResponse\x12K\n\x12major_version_sets\x18\x01 \x03(\v2/.temporal.api.taskqueue.v1.CompatibleVersionSet\x12y\n\x15retirement_candidates\x18\x02 \x03(\v2Z.temporal.api.workflowservice.v1.GetWorkerBuildIdCompatibilityResponse.RetirementCandidate\x12\x89\x01\n\eactive_versions_and_pollers\x18\x03 \x03(\v2d.temporal.api.workflowservice.v1.GetWorkerBuildIdCompatibilityResponse.VersionsWithCompatiblePollers\x1A\x83\x01\n\x13RetirementCandidate\x12\x10\n\bbuild_id\x18\x01 \x01(\t\x12\"\n\x1Aall_workflows_are_archived\x18\x02 \x01(\b\x126\n\apollers\x18\x03 \x03(\v2%.temporal.api.taskqueue.v1.PollerInfo\x1Au\n\x1DVersionsWithCompatiblePollers\x12\x1C\n\x14most_recent_build_id\x18\x01 \x01(\t\x126\n\apollers\x18\x02 \x03(\v2%.temporal.api.taskqueue.v1.PollerInfo\"\x85\x02\n\x1EUpdateWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12E\n\x12workflow_execution\x18\x02 \x01(\v2).temporal.api.common.v1.WorkflowExecution\x12\x1E\n\x16first_execution_run_id\x18\x03 \x01(\t\x127\n\vwait_policy\x18\x04 \x01(\v2\".temporal.api.update.v1.WaitPolicy\x120\n\arequest\x18\x05 \x01(\v2\x1F.temporal.api.update.v1.Request\"\x8A\x01\n\x1FUpdateWorkflowExecutionResponse\x125\n\nupdate_ref\x18\x01 \x01(\v2!.temporal.api.update.v1.UpdateRef\x120\n\aoutcome\x18\x02 \x01(\v2\x1F.temporal.api.update.v1.Outcome\"\xF3\x03\n\x1AStartBatchOperationRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x18\n\x10visibility_query\x18\x02 \x01(\t\x12\x0E\n\x06job_id\x18\x03 \x01(\t\x12\x0E\n\x06reason\x18\x04 \x01(\t\x12=\n\nexecutions\x18\x05 \x03(\v2).temporal.api.common.v1.WorkflowExecution\x12Q\n\x15termination_operation\x18\n \x01(\v20.temporal.api.batch.v1.BatchOperationTerminationH\x00\x12G\n\x10signal_operation\x18\v \x01(\v2+.temporal.api.batch.v1.BatchOperationSignalH\x00\x12S\n\x16cancellation_operation\x18\f \x01(\v21.temporal.api.batch.v1.BatchOperationCancellationH\x00\x12K\n\x12deletion_operation\x18\r \x01(\v2-.temporal.api.batch.v1.BatchOperationDeletionH\x00B\v\n\toperation\"\x1D\n\eStartBatchOperationResponse\"`\n\x19StopBatchOperationRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x0E\n\x06job_id\x18\x02 \x01(\t\x12\x0E\n\x06reason\x18\x03 \x01(\t\x12\x10\n\bidentity\x18\x04 \x01(\t\"\x1C\n\x1AStopBatchOperationResponse\"B\n\x1DDescribeBatchOperationRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x0E\n\x06job_id\x18\x02 \x01(\t\"\x9E\x03\n\x1EDescribeBatchOperationResponse\x12A\n\x0Eoperation_type\x18\x01 \x01(\x0E2).temporal.api.enums.v1.BatchOperationType\x12\x0E\n\x06job_id\x18\x02 \x01(\t\x129\n\x05state\x18\x03 \x01(\x0E2*.temporal.api.enums.v1.BatchOperationState\x124\n\nstart_time\x18\x04 \x01(\v2\x1A.google.protobuf.TimestampB\x04\x90\xDF\x1F\x01\x124\n\nclose_time\x18\x05 \x01(\v2\x1A.google.protobuf.TimestampB\x04\x90\xDF\x1F\x01\x12\x1D\n\x15total_operation_count\x18\x06 \x01(\x03\x12 \n\x18complete_operation_count\x18\a \x01(\x03\x12\x1F\n\x17failure_operation_count\x18\b \x01(\x03\x12\x10\n\bidentity\x18\t \x01(\t\x12\x0E\n\x06reason\x18\n \x01(\t\"[\n\x1AListBatchOperationsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0Fnext_page_token\x18\x03 \x01(\f\"y\n\eListBatchOperationsResponse\x12A\n\x0Eoperation_info\x18\x01 \x03(\v2).temporal.api.batch.v1.BatchOperationInfo\x12\x17\n\x0Fnext_page_token\x18\x02 \x01(\f\"\xB9\x01\n\"PollWorkflowExecutionUpdateRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x125\n\nupdate_ref\x18\x02 \x01(\v2!.temporal.api.update.v1.UpdateRef\x12\x10\n\bidentity\x18\x03 \x01(\t\x127\n\vwait_policy\x18\x04 \x01(\v2\".temporal.api.update.v1.WaitPolicy\"W\n#PollWorkflowExecutionUpdateResponse\x120\n\aoutcome\x18\x01 \x01(\v2\x1F.temporal.api.update.v1.OutcomeB\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" pool = ::Google::Protobuf::DescriptorPool.generated_pool pool.add_serialized_file(descriptor_data) diff --git a/lib/temporal/client.rb b/lib/temporal/client.rb index 185202cf..fb9060e0 100644 --- a/lib/temporal/client.rb +++ b/lib/temporal/client.rb @@ -44,6 +44,8 @@ def initialize(config) # @option options [Hash] :search_attributes # @option options [Integer] :start_delay determines the amount of seconds to wait before initiating a Workflow # + # @yield [Boolean] for :use_existing, whether this request started a new run. + # Requires a server that supports the conflict policy and reports the start outcome. # @return [String] workflow's run ID def start_workflow(workflow, *input, options: {}, **args) input << args unless args.empty? @@ -99,6 +101,7 @@ def start_workflow(workflow, *input, options: {}, **args) ) end + yield response.started if block_given? && options[:workflow_id_conflict_policy] == :use_existing response.run_id end diff --git a/scripts/backport_workflow_id_conflict_policy.rb b/scripts/backport_workflow_id_conflict_policy.rb index cbf3aa06..73cde8ea 100644 --- a/scripts/backport_workflow_id_conflict_policy.rb +++ b/scripts/backport_workflow_id_conflict_policy.rb @@ -1,5 +1,5 @@ # The checked-in Temporal API bindings predate the workflow ID conflict policy. -# Apply only the two additive descriptor changes needed for ordinary starts. +# Apply only the additive descriptor changes needed for ordinary starts. proto_out = ARGV[0] || File.expand_path('../lib/gen', __dir__) enum_path = File.join(proto_out, 'temporal/api/enums/v1/workflow_pb.rb') @@ -42,3 +42,19 @@ def replace_once(path, before, after, marker) ) or raise 'Unexpected StartWorkflowExecutionRequest fields' File.write(request_path, request_source) end + +# Inspect the descriptor itself: another backport may already provide the field +# and may render the generated Ruby string literal with different escapes. +require 'google/protobuf/descriptor_pb' +source = File.read(request_path) +line = source.lines.find { |l| l.start_with?('descriptor_data = ') } or raise 'Missing descriptor' +descriptor = Google::Protobuf::FileDescriptorProto.decode(eval(line.delete_prefix('descriptor_data = '))) +response = descriptor.message_type.find { |msg| msg.name == 'StartWorkflowExecutionResponse' } +started = Google::Protobuf::FieldDescriptorProto.new(name: 'started', number: 3, type: :TYPE_BOOL, label: :LABEL_OPTIONAL) +existing = response.field.find { |f| f.number == 3 || f.name == 'started' } +raise 'Conflicting StartWorkflowExecutionResponse.started field' if existing && existing != started +unless existing + response.field << started + encoded = Google::Protobuf::FileDescriptorProto.encode(descriptor) + File.write(request_path, source.sub(line) { "descriptor_data = #{encoded.dump}\n" }) +end