From 1f7dd1443df42d917747ca7f2a442317d62cc827 Mon Sep 17 00:00:00 2001 From: Chris Olszewski Date: Fri, 10 Apr 2026 15:30:42 -0400 Subject: [PATCH 1/4] otel regression test --- .../test/contrib/open_telemetry_test.rb | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/temporalio/test/contrib/open_telemetry_test.rb b/temporalio/test/contrib/open_telemetry_test.rb index 17f8980f..c99c94cc 100644 --- a/temporalio/test/contrib/open_telemetry_test.rb +++ b/temporalio/test/contrib/open_telemetry_test.rb @@ -612,6 +612,43 @@ def test_illegal_calls_on_context ContextCurrentPatch.do_illegal_thing = false end + def test_signal_with_start + exp_root = ExpectedSpan.new(name: 'root') + act_root = trace do |client| + outer_context = OpenTelemetry::Context.current + attach_token = nil + task_queue = "tq-#{SecureRandom.uuid}" + worker = Temporalio::Worker.new( + client:, + task_queue:, + workflows: [TestWorkflow] + ) + worker.run do + attach_token = OpenTelemetry::Context.attach(outer_context) + id = "wf-#{SecureRandom.uuid}" + start_workflow_operation = Temporalio::Client::WithStartWorkflowOperation.new( + TestWorkflow, :wait_on_signal, + id:, task_queue: + ) + handle = client.signal_with_start_workflow( + TestWorkflow.signal, :mark_finished, start_workflow_operation: + ) + + exp_cl_attrs = { 'temporalWorkflowID' => id } + exp_run_attrs = exp_cl_attrs.merge({ 'temporalRunID' => handle.result_run_id }) + exp_sig_start = exp_root.add_child(name: 'SignalWithStartWorkflow:TestWorkflow', attributes: exp_cl_attrs) + exp_sig_start.add_child(name: 'HandleSignal:signal', attributes: exp_run_attrs, links: [exp_sig_start]) + exp_run_wf = exp_sig_start.add_child(name: 'RunWorkflow:TestWorkflow', attributes: exp_run_attrs) + exp_run_wf.add_child(name: 'CompleteWorkflow:TestWorkflow', attributes: exp_run_attrs) + + assert_equal 'workflow-done', handle.result + ensure + OpenTelemetry::Context.detach(attach_token) if attach_token + end + end + assert_equal exp_root.to_s_indented, act_root.to_s_indented + end + def test_otel_context_cleared traced_wf_trace_id = nil traced_act = trace_workflow(:activity_success_return_trace_id) do |handle| From 156ec3f3dbeb1be4d1c783552c80b011f80f46d3 Mon Sep 17 00:00:00 2001 From: Chris Olszewski Date: Fri, 10 Apr 2026 10:56:24 -0400 Subject: [PATCH 2/4] fix: address hidden steep issues --- temporalio/Steepfile | 4 +- temporalio/lib/temporalio/client.rb | 2 +- .../lib/temporalio/contrib/open_telemetry.rb | 14 +++--- temporalio/sig/open_telemetry.rbs | 47 +++++++++++++++++++ .../sig/temporalio/contrib/open_telemetry.rbs | 8 ++++ .../payload_converter/binary_null.rbs | 3 +- .../payload_converter/binary_plain.rbs | 3 +- .../payload_converter/binary_protobuf.rbs | 3 +- .../payload_converter/json_plain.rbs | 10 ++-- .../payload_converter/json_protobuf.rbs | 5 +- temporalio/sig/temporalio/error.rbs | 4 +- temporalio/sig/temporalio/internal/bridge.rbs | 21 ++++++++- .../internal/worker/activity_worker.rbs | 4 +- .../internal/worker/multi_runner.rbs | 5 +- .../testing/activity_environment.rbs | 29 +++++++++++- .../sig/temporalio/worker/poller_behavior.rbs | 24 +++++----- .../sig/temporalio/workflow/definition.rbs | 11 +++++ temporalio/test/api/payload_visitor_test.rb | 3 +- 18 files changed, 162 insertions(+), 38 deletions(-) create mode 100644 temporalio/sig/open_telemetry.rbs diff --git a/temporalio/Steepfile b/temporalio/Steepfile index 9c1ab004..bb118daa 100644 --- a/temporalio/Steepfile +++ b/temporalio/Steepfile @@ -15,7 +15,7 @@ target :lib do signature 'sig' check 'lib' ignore 'lib/temporalio/api', 'lib/temporalio/internal/bridge/api' - library 'uri', 'objspace' + library 'uri', 'objspace', 'etc' configure_code_diagnostics do |hash| hash.update(common_diagnostics) end @@ -24,7 +24,7 @@ end target :test do signature 'sig', 'test/sig' check 'test' - library 'uri', 'objspace' + library 'uri', 'objspace', 'etc' configure_code_diagnostics do |hash| hash.update(common_diagnostics) # Steep cannot infer some things, so we can ignore them in tests diff --git a/temporalio/lib/temporalio/client.rb b/temporalio/lib/temporalio/client.rb index 653468b9..5c8f148e 100644 --- a/temporalio/lib/temporalio/client.rb +++ b/temporalio/lib/temporalio/client.rb @@ -216,7 +216,7 @@ def self._validate_plugins!(plugins) def initialize( connection:, namespace:, - data_converter: DataConverter.default, + data_converter: Converters::DataConverter.default, plugins: [], interceptors: [], logger: Logger.new($stdout, level: Logger::WARN), diff --git a/temporalio/lib/temporalio/contrib/open_telemetry.rb b/temporalio/lib/temporalio/contrib/open_telemetry.rb index 1de3b9a5..9f2e3f8b 100644 --- a/temporalio/lib/temporalio/contrib/open_telemetry.rb +++ b/temporalio/lib/temporalio/contrib/open_telemetry.rb @@ -158,15 +158,15 @@ def start_update_with_start_workflow(input) # @!visibility private def signal_with_start_workflow(input) @root._with_started_span( - name: "SignalWithStartWorkflow:#{input.workflow}", + name: "SignalWithStartWorkflow:#{input.start_workflow_operation.options.workflow}", kind: :client, - attributes: { 'temporalWorkflowID' => input.start_workflow_operation.options.id }, - outbound_input: input + attributes: { 'temporalWorkflowID' => input.start_workflow_operation.options.id } ) do - # Also add to start headers - if input.headers[@header_key] - input.start_workflow_operation.options.headers[@header_key] = input.headers[@header_key] - end + # SignalWithStartWorkflowInput has no top-level headers field and instead uses + # start_workflow_operation.options.headers. + # So tracing context must be injected explicitly instead of relying + # on _with_started_span. + @root._apply_context_to_headers(input.start_workflow_operation.options.headers) super end end diff --git a/temporalio/sig/open_telemetry.rbs b/temporalio/sig/open_telemetry.rbs new file mode 100644 index 00000000..44f4a8f1 --- /dev/null +++ b/temporalio/sig/open_telemetry.rbs @@ -0,0 +1,47 @@ +module OpenTelemetry + module Context + def self.current: -> untyped + def self.attach: (untyped context) -> untyped + def self.detach: (untyped token) -> void + + module Propagation + class CompositeTextMapPropagator + def self.compose_propagators: (Array[untyped] propagators) -> untyped + end + end + end + + module Baggage + module Propagation + class TextMapPropagator + def initialize: -> void + end + end + end + + module Trace + def self.with_span: [T] (untyped span) { -> T } -> T + def self.current_span: (?untyped context) -> untyped + def self.context_with_span: (untyped span) -> untyped + + class Link + def initialize: (untyped context) -> void + end + + module Status + def self.error: (String description) -> untyped + end + + module Propagation + module TraceContext + class TextMapPropagator + def initialize: -> void + end + end + end + + class Span + INVALID: untyped + end + end +end diff --git a/temporalio/sig/temporalio/contrib/open_telemetry.rbs b/temporalio/sig/temporalio/contrib/open_telemetry.rbs index 9cf512b4..f5481a59 100644 --- a/temporalio/sig/temporalio/contrib/open_telemetry.rbs +++ b/temporalio/sig/temporalio/contrib/open_telemetry.rbs @@ -27,6 +27,14 @@ module Temporalio ) { () -> T } -> T def _always_create_workflow_spans: -> bool + class ClientOutbound < Client::Interceptor::Outbound + def initialize: (TracingInterceptor root, Client::Interceptor::Outbound next_interceptor) -> void + end + + class ActivityInbound < Worker::Interceptor::Activity::Inbound + def initialize: (TracingInterceptor root, Worker::Interceptor::Activity::Inbound next_interceptor) -> void + end + class WorkflowInbound < Worker::Interceptor::Workflow::Inbound def initialize: (TracingInterceptor root, Worker::Interceptor::Workflow::Inbound next_interceptor) -> void diff --git a/temporalio/sig/temporalio/converters/payload_converter/binary_null.rbs b/temporalio/sig/temporalio/converters/payload_converter/binary_null.rbs index 86f5176f..231ae25e 100644 --- a/temporalio/sig/temporalio/converters/payload_converter/binary_null.rbs +++ b/temporalio/sig/temporalio/converters/payload_converter/binary_null.rbs @@ -2,7 +2,8 @@ module Temporalio module Converters class PayloadConverter class BinaryNull < Encoding + ENCODING: String end end end -end \ No newline at end of file +end diff --git a/temporalio/sig/temporalio/converters/payload_converter/binary_plain.rbs b/temporalio/sig/temporalio/converters/payload_converter/binary_plain.rbs index 90f69eac..78b786bc 100644 --- a/temporalio/sig/temporalio/converters/payload_converter/binary_plain.rbs +++ b/temporalio/sig/temporalio/converters/payload_converter/binary_plain.rbs @@ -2,7 +2,8 @@ module Temporalio module Converters class PayloadConverter class BinaryPlain < Encoding + ENCODING: String end end end -end \ No newline at end of file +end diff --git a/temporalio/sig/temporalio/converters/payload_converter/binary_protobuf.rbs b/temporalio/sig/temporalio/converters/payload_converter/binary_protobuf.rbs index 79f391cd..1170088a 100644 --- a/temporalio/sig/temporalio/converters/payload_converter/binary_protobuf.rbs +++ b/temporalio/sig/temporalio/converters/payload_converter/binary_protobuf.rbs @@ -2,7 +2,8 @@ module Temporalio module Converters class PayloadConverter class BinaryProtobuf < Encoding + ENCODING: String end end end -end \ No newline at end of file +end diff --git a/temporalio/sig/temporalio/converters/payload_converter/json_plain.rbs b/temporalio/sig/temporalio/converters/payload_converter/json_plain.rbs index 196f28e3..ab2d6cbc 100644 --- a/temporalio/sig/temporalio/converters/payload_converter/json_plain.rbs +++ b/temporalio/sig/temporalio/converters/payload_converter/json_plain.rbs @@ -1,12 +1,14 @@ module Temporalio module Converters class PayloadConverter - class JsonPlain < Encoding + class JSONPlain < Encoding + ENCODING: String + def initialize: ( - ?Hash[Symbol, untyped] parse_options, - ?Hash[Symbol, untyped] generate_options + ?parse_options: Hash[Symbol, untyped], + ?generate_options: Hash[Symbol, untyped] ) -> void end end end -end \ No newline at end of file +end diff --git a/temporalio/sig/temporalio/converters/payload_converter/json_protobuf.rbs b/temporalio/sig/temporalio/converters/payload_converter/json_protobuf.rbs index 99ad7354..bbfe2d71 100644 --- a/temporalio/sig/temporalio/converters/payload_converter/json_protobuf.rbs +++ b/temporalio/sig/temporalio/converters/payload_converter/json_protobuf.rbs @@ -1,8 +1,9 @@ module Temporalio module Converters class PayloadConverter - class JsonProtobuf < Encoding + class JSONProtobuf < Encoding + ENCODING: String end end end -end \ No newline at end of file +end diff --git a/temporalio/sig/temporalio/error.rbs b/temporalio/sig/temporalio/error.rbs index c067e436..6ad0cd57 100644 --- a/temporalio/sig/temporalio/error.rbs +++ b/temporalio/sig/temporalio/error.rbs @@ -60,7 +60,7 @@ module Temporalio module Code OK: 0 - CANCELLED: 1 + CANCELED: 1 UNKNOWN: 2 INVALID_ARGUMENT: 3 DEADLINE_EXCEEDED: 4 @@ -81,4 +81,4 @@ module Temporalio end end end -end \ No newline at end of file +end diff --git a/temporalio/sig/temporalio/internal/bridge.rbs b/temporalio/sig/temporalio/internal/bridge.rbs index 2d95bd07..a8a3ede2 100644 --- a/temporalio/sig/temporalio/internal/bridge.rbs +++ b/temporalio/sig/temporalio/internal/bridge.rbs @@ -4,10 +4,29 @@ module Temporalio def self.assert_fiber_compatibility!: -> void def self.fibers_supported: -> bool + module EnvConfig + def self.load_client_connect_config: ( + String? profile, + String? path, + String? data, + bool disable_file, + bool disable_env, + bool config_file_strict, + Hash[String, String]? override_env_vars + ) -> Hash[Symbol, untyped] + + def self.load_client_config: ( + String? path, + String? data, + bool config_file_strict, + Hash[String, String]? override_env_vars + ) -> Hash[String, Hash[Symbol, untyped]] + end + # Defined in Rust class Error < StandardError end end end -end \ No newline at end of file +end diff --git a/temporalio/sig/temporalio/internal/worker/activity_worker.rbs b/temporalio/sig/temporalio/internal/worker/activity_worker.rbs index 20bdcea7..71365b90 100644 --- a/temporalio/sig/temporalio/internal/worker/activity_worker.rbs +++ b/temporalio/sig/temporalio/internal/worker/activity_worker.rbs @@ -2,6 +2,8 @@ module Temporalio module Internal module Worker class ActivityWorker + LOG_TASKS: bool + attr_reader worker: Temporalio::Worker attr_reader bridge_worker: Bridge::Worker @@ -59,4 +61,4 @@ module Temporalio end end end -end \ No newline at end of file +end diff --git a/temporalio/sig/temporalio/internal/worker/multi_runner.rbs b/temporalio/sig/temporalio/internal/worker/multi_runner.rbs index ddfa2cee..78de9b16 100644 --- a/temporalio/sig/temporalio/internal/worker/multi_runner.rbs +++ b/temporalio/sig/temporalio/internal/worker/multi_runner.rbs @@ -116,6 +116,9 @@ module Temporalio def initialize: (error: Exception) -> void end + + class ShutdownSignalReceived < Event + end end class InjectEventForTesting < Temporalio::Error @@ -126,4 +129,4 @@ module Temporalio end end end -end \ No newline at end of file +end diff --git a/temporalio/sig/temporalio/testing/activity_environment.rbs b/temporalio/sig/temporalio/testing/activity_environment.rbs index bf91368b..3ea3acfb 100644 --- a/temporalio/sig/temporalio/testing/activity_environment.rbs +++ b/temporalio/sig/temporalio/testing/activity_environment.rbs @@ -20,6 +20,33 @@ module Temporalio Activity::Definition | singleton(Activity::Definition) | Activity::Definition::Info activity, *Object? args ) -> untyped + + class Context < Activity::Context + attr_reader info: Activity::Info + attr_reader instance: untyped + attr_reader cancellation: Cancellation + attr_reader worker_shutdown_cancellation: Cancellation + attr_reader payload_converter: Converters::PayloadConverter + attr_reader logger: Logger + + def initialize: ( + info: Activity::Info, + instance: untyped, + on_heartbeat: Proc?, + cancellation: Cancellation, + on_cancellation_details: Proc, + worker_shutdown_cancellation: Cancellation, + payload_converter: Converters::PayloadConverter, + logger: Logger, + metric_meter: Metric::Meter?, + client: Client? + ) -> void + + def heartbeat: (*untyped details) -> untyped + def metric_meter: -> Metric::Meter + def client: -> Client + def cancellation_details: -> Activity::CancellationDetails? + end end end -end \ No newline at end of file +end diff --git a/temporalio/sig/temporalio/worker/poller_behavior.rbs b/temporalio/sig/temporalio/worker/poller_behavior.rbs index b46ef35f..8d0761f4 100644 --- a/temporalio/sig/temporalio/worker/poller_behavior.rbs +++ b/temporalio/sig/temporalio/worker/poller_behavior.rbs @@ -2,22 +2,22 @@ module Temporalio class Worker class PollerBehavior def _to_bridge_options: -> untyped - end - class SimpleMaximum < PollerBehavior - attr_reader maximum: Integer + class SimpleMaximum < PollerBehavior + attr_reader maximum: Integer - def initialize: (Integer) -> void - def _to_bridge_options: -> Internal::Bridge::Worker::PollerBehaviorSimpleMaximum - end + def initialize: (Integer) -> void + def _to_bridge_options: -> Internal::Bridge::Worker::PollerBehaviorSimpleMaximum + end - class Autoscaling < PollerBehavior - attr_reader minimum: Integer - attr_reader maximum: Integer - attr_reader initial: Integer + class Autoscaling < PollerBehavior + attr_reader minimum: Integer + attr_reader maximum: Integer + attr_reader initial: Integer - def initialize: (?minimum: Integer, ?maximum: Integer, ?initial: Integer) -> void - def _to_bridge_options: -> Internal::Bridge::Worker::PollerBehaviorAutoscaling + def initialize: (?minimum: Integer, ?maximum: Integer, ?initial: Integer) -> void + def _to_bridge_options: -> Internal::Bridge::Worker::PollerBehaviorAutoscaling + end end end end diff --git a/temporalio/sig/temporalio/workflow/definition.rbs b/temporalio/sig/temporalio/workflow/definition.rbs index 09268c4e..47737b88 100644 --- a/temporalio/sig/temporalio/workflow/definition.rbs +++ b/temporalio/sig/temporalio/workflow/definition.rbs @@ -165,6 +165,17 @@ module Temporalio def _with_validator_to_invoke: (Symbol | Proc | nil validator_to_invoke) -> Update end + + end + + class DefinitionOptions + attr_reader failure_exception_types: Array[singleton(Exception)]? + attr_reader versioning_behavior: VersioningBehavior::enum? + + def initialize: ( + ?failure_exception_types: Array[singleton(Exception)]?, + ?versioning_behavior: VersioningBehavior::enum? + ) -> void end end end diff --git a/temporalio/test/api/payload_visitor_test.rb b/temporalio/test/api/payload_visitor_test.rb index bc5114fa..8e363d1c 100644 --- a/temporalio/test/api/payload_visitor_test.rb +++ b/temporalio/test/api/payload_visitor_test.rb @@ -69,7 +69,7 @@ def test_basics end # Basic check including search attributes - visitor = Temporalio::Api::PayloadVisitor.new(&mutator) + visitor = Temporalio::Api::PayloadVisitor.new(&mutator) # steep:ignore BlockTypeMismatch mutated_act = act.class.decode(act.class.encode(act)) mutated_succ = succ.class.decode(succ.class.encode(succ)) visitor.run(mutated_act) @@ -84,6 +84,7 @@ def test_basics assert_equal 'samap-single', upsert_sa.indexed_fields['sakey'].data # Skip search attributes + # steep:ignore BlockTypeMismatch visitor = Temporalio::Api::PayloadVisitor.new(skip_search_attributes: true, &mutator) mutated_act = act.class.decode(act.class.encode(act)) mutated_succ = succ.class.decode(succ.class.encode(succ)) From 5ca7b4bad87482b5a74836110d320eef4d573480 Mon Sep 17 00:00:00 2001 From: Chris Olszewski Date: Sat, 11 Apr 2026 11:30:22 -0400 Subject: [PATCH 3/4] test: place steep ignore on block pass --- temporalio/test/api/payload_visitor_test.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/temporalio/test/api/payload_visitor_test.rb b/temporalio/test/api/payload_visitor_test.rb index 8e363d1c..7e34da24 100644 --- a/temporalio/test/api/payload_visitor_test.rb +++ b/temporalio/test/api/payload_visitor_test.rb @@ -84,8 +84,10 @@ def test_basics assert_equal 'samap-single', upsert_sa.indexed_fields['sakey'].data # Skip search attributes - # steep:ignore BlockTypeMismatch - visitor = Temporalio::Api::PayloadVisitor.new(skip_search_attributes: true, &mutator) + visitor = Temporalio::Api::PayloadVisitor.new( + skip_search_attributes: true, + &mutator # steep:ignore BlockTypeMismatch + ) mutated_act = act.class.decode(act.class.encode(act)) mutated_succ = succ.class.decode(succ.class.encode(succ)) visitor.run(mutated_act) From 490a1a826d6f353cff3f65eb794b359c247eea83 Mon Sep 17 00:00:00 2001 From: Chris Olszewski Date: Thu, 9 Apr 2026 11:37:52 -0400 Subject: [PATCH 4/4] chore: generate protobuf rbs --- .github/workflows/ci.yml | 10 +- README.md | 4 + temporalio/Gemfile | 1 - temporalio/Rakefile | 25 +- temporalio/Steepfile | 5 +- temporalio/extra/payload_visitor_gen.rb | 55 +- temporalio/extra/proto_gen.rb | 248 +- .../lib/temporalio/api/payload_visitor.rb | 2 +- temporalio/rbs_collection.lock.yaml | 58 +- temporalio/sig/google/protobuf_compat.rbs | 17 + .../temporalio/api/activity/v1/message.rbs | 596 + .../sig/temporalio/api/batch/v1/message.rbs | 594 + .../api/cloud/account/v1/message.rbs | 209 + .../cloudservice/v1/request_response.rbs | 3670 ++++++ .../api/cloud/cloudservice/v1/service.rbs | 25 + .../api/cloud/connectivityrule/v1/message.rbs | 178 + .../api/cloud/identity/v1/message.rbs | 1000 ++ .../api/cloud/namespace/v1/message.rbs | 961 ++ .../temporalio/api/cloud/nexus/v1/message.rbs | 269 + .../api/cloud/operation/v1/message.rbs | 156 + .../api/cloud/region/v1/message.rbs | 109 + .../api/cloud/resource/v1/message.rbs | 61 + .../temporalio/api/cloud/sink/v1/message.rbs | 207 + .../temporalio/api/cloud/usage/v1/message.rbs | 230 + .../sig/temporalio/api/command/v1/message.rbs | 1197 ++ .../temporalio/api/common/v1/grpc_status.rbs | 59 + .../sig/temporalio/api/common/v1/message.rbs | 926 ++ .../temporalio/api/deployment/v1/message.rbs | 952 ++ .../sig/temporalio/api/enums/v1/activity.rbs | 134 + .../api/enums/v1/batch_operation.rbs | 80 + .../temporalio/api/enums/v1/command_type.rbs | 74 + .../sig/temporalio/api/enums/v1/common.rbs | 271 + .../temporalio/api/enums/v1/deployment.rbs | 176 + .../temporalio/api/enums/v1/event_type.rbs | 260 + .../temporalio/api/enums/v1/failed_cause.rbs | 281 + .../sig/temporalio/api/enums/v1/namespace.rbs | 87 + .../sig/temporalio/api/enums/v1/nexus.rbs | 48 + .../sig/temporalio/api/enums/v1/query.rbs | 69 + .../sig/temporalio/api/enums/v1/reset.rbs | 106 + .../sig/temporalio/api/enums/v1/schedule.rbs | 68 + .../temporalio/api/enums/v1/task_queue.rbs | 232 + .../sig/temporalio/api/enums/v1/update.rbs | 87 + .../sig/temporalio/api/enums/v1/workflow.rbs | 423 + .../api/errordetails/v1/message.rbs | 501 + .../sig/temporalio/api/export/v1/message.rbs | 63 + .../sig/temporalio/api/failure/v1/message.rbs | 557 + .../sig/temporalio/api/filter/v1/message.rbs | 121 + .../sig/temporalio/api/history/v1/message.rbs | 4731 +++++++ .../temporalio/api/namespace/v1/message.rbs | 433 + .../sig/temporalio/api/nexus/v1/message.rbs | 758 ++ .../operatorservice/v1/request_response.rbs | 679 + .../api/operatorservice/v1/service.rbs | 23 + .../sig/temporalio/api/payload_visitor.rbs | 270 + .../temporalio/api/protocol/v1/message.rbs | 90 + .../api/protometa/v1/annotations.rbs | 62 + .../sig/temporalio/api/query/v1/message.rbs | 138 + .../temporalio/api/replication/v1/message.rbs | 109 + .../sig/temporalio/api/rules/v1/message.rbs | 213 + .../temporalio/api/schedule/v1/message.rbs | 1048 ++ .../api/sdk/v1/enhanced_stack_trace.rbs | 210 + .../api/sdk/v1/task_complete_metadata.rbs | 92 + .../temporalio/api/sdk/v1/user_metadata.rbs | 58 + .../temporalio/api/sdk/v1/worker_config.rbs | 122 + .../api/sdk/v1/workflow_metadata.rbs | 138 + .../temporalio/api/taskqueue/v1/message.rbs | 986 ++ .../api/testservice/v1/request_response.rbs | 125 + .../temporalio/api/testservice/v1/service.rbs | 23 + .../sig/temporalio/api/update/v1/message.rbs | 324 + .../sig/temporalio/api/version/v1/message.rbs | 143 + .../sig/temporalio/api/worker/v1/message.rbs | 636 + .../temporalio/api/workflow/v1/message.rbs | 2205 ++++ .../workflowservice/v1/request_response.rbs | 10770 ++++++++++++++++ .../api/workflowservice/v1/service.rbs | 23 + .../client/connection/cloud_service.rbs | 232 +- .../client/connection/operator_service.rbs | 48 +- .../temporalio/client/connection/service.rbs | 12 +- .../client/connection/test_service.rbs | 24 +- .../client/connection/workflow_service.rbs | 420 +- .../api/activity_result/activity_result.rbs | 247 + .../api/activity_task/activity_task.rbs | 363 + .../api/child_workflow/child_workflow.rbs | 207 + .../internal/bridge/api/common/common.rbs | 123 + .../internal/bridge/api/core_interface.rbs | 231 + .../api/external_data/external_data.rbs | 134 + .../internal/bridge/api/nexus/nexus.rbs | 275 + .../workflow_activation.rbs | 1304 ++ .../workflow_commands/workflow_commands.rbs | 1516 +++ .../workflow_completion.rbs | 136 + 88 files changed, 44631 insertions(+), 512 deletions(-) create mode 100644 temporalio/sig/google/protobuf_compat.rbs create mode 100644 temporalio/sig/temporalio/api/activity/v1/message.rbs create mode 100644 temporalio/sig/temporalio/api/batch/v1/message.rbs create mode 100644 temporalio/sig/temporalio/api/cloud/account/v1/message.rbs create mode 100644 temporalio/sig/temporalio/api/cloud/cloudservice/v1/request_response.rbs create mode 100644 temporalio/sig/temporalio/api/cloud/cloudservice/v1/service.rbs create mode 100644 temporalio/sig/temporalio/api/cloud/connectivityrule/v1/message.rbs create mode 100644 temporalio/sig/temporalio/api/cloud/identity/v1/message.rbs create mode 100644 temporalio/sig/temporalio/api/cloud/namespace/v1/message.rbs create mode 100644 temporalio/sig/temporalio/api/cloud/nexus/v1/message.rbs create mode 100644 temporalio/sig/temporalio/api/cloud/operation/v1/message.rbs create mode 100644 temporalio/sig/temporalio/api/cloud/region/v1/message.rbs create mode 100644 temporalio/sig/temporalio/api/cloud/resource/v1/message.rbs create mode 100644 temporalio/sig/temporalio/api/cloud/sink/v1/message.rbs create mode 100644 temporalio/sig/temporalio/api/cloud/usage/v1/message.rbs create mode 100644 temporalio/sig/temporalio/api/command/v1/message.rbs create mode 100644 temporalio/sig/temporalio/api/common/v1/grpc_status.rbs create mode 100644 temporalio/sig/temporalio/api/common/v1/message.rbs create mode 100644 temporalio/sig/temporalio/api/deployment/v1/message.rbs create mode 100644 temporalio/sig/temporalio/api/enums/v1/activity.rbs create mode 100644 temporalio/sig/temporalio/api/enums/v1/batch_operation.rbs create mode 100644 temporalio/sig/temporalio/api/enums/v1/command_type.rbs create mode 100644 temporalio/sig/temporalio/api/enums/v1/common.rbs create mode 100644 temporalio/sig/temporalio/api/enums/v1/deployment.rbs create mode 100644 temporalio/sig/temporalio/api/enums/v1/event_type.rbs create mode 100644 temporalio/sig/temporalio/api/enums/v1/failed_cause.rbs create mode 100644 temporalio/sig/temporalio/api/enums/v1/namespace.rbs create mode 100644 temporalio/sig/temporalio/api/enums/v1/nexus.rbs create mode 100644 temporalio/sig/temporalio/api/enums/v1/query.rbs create mode 100644 temporalio/sig/temporalio/api/enums/v1/reset.rbs create mode 100644 temporalio/sig/temporalio/api/enums/v1/schedule.rbs create mode 100644 temporalio/sig/temporalio/api/enums/v1/task_queue.rbs create mode 100644 temporalio/sig/temporalio/api/enums/v1/update.rbs create mode 100644 temporalio/sig/temporalio/api/enums/v1/workflow.rbs create mode 100644 temporalio/sig/temporalio/api/errordetails/v1/message.rbs create mode 100644 temporalio/sig/temporalio/api/export/v1/message.rbs create mode 100644 temporalio/sig/temporalio/api/failure/v1/message.rbs create mode 100644 temporalio/sig/temporalio/api/filter/v1/message.rbs create mode 100644 temporalio/sig/temporalio/api/history/v1/message.rbs create mode 100644 temporalio/sig/temporalio/api/namespace/v1/message.rbs create mode 100644 temporalio/sig/temporalio/api/nexus/v1/message.rbs create mode 100644 temporalio/sig/temporalio/api/operatorservice/v1/request_response.rbs create mode 100644 temporalio/sig/temporalio/api/operatorservice/v1/service.rbs create mode 100644 temporalio/sig/temporalio/api/payload_visitor.rbs create mode 100644 temporalio/sig/temporalio/api/protocol/v1/message.rbs create mode 100644 temporalio/sig/temporalio/api/protometa/v1/annotations.rbs create mode 100644 temporalio/sig/temporalio/api/query/v1/message.rbs create mode 100644 temporalio/sig/temporalio/api/replication/v1/message.rbs create mode 100644 temporalio/sig/temporalio/api/rules/v1/message.rbs create mode 100644 temporalio/sig/temporalio/api/schedule/v1/message.rbs create mode 100644 temporalio/sig/temporalio/api/sdk/v1/enhanced_stack_trace.rbs create mode 100644 temporalio/sig/temporalio/api/sdk/v1/task_complete_metadata.rbs create mode 100644 temporalio/sig/temporalio/api/sdk/v1/user_metadata.rbs create mode 100644 temporalio/sig/temporalio/api/sdk/v1/worker_config.rbs create mode 100644 temporalio/sig/temporalio/api/sdk/v1/workflow_metadata.rbs create mode 100644 temporalio/sig/temporalio/api/taskqueue/v1/message.rbs create mode 100644 temporalio/sig/temporalio/api/testservice/v1/request_response.rbs create mode 100644 temporalio/sig/temporalio/api/testservice/v1/service.rbs create mode 100644 temporalio/sig/temporalio/api/update/v1/message.rbs create mode 100644 temporalio/sig/temporalio/api/version/v1/message.rbs create mode 100644 temporalio/sig/temporalio/api/worker/v1/message.rbs create mode 100644 temporalio/sig/temporalio/api/workflow/v1/message.rbs create mode 100644 temporalio/sig/temporalio/api/workflowservice/v1/request_response.rbs create mode 100644 temporalio/sig/temporalio/api/workflowservice/v1/service.rbs create mode 100644 temporalio/sig/temporalio/internal/bridge/api/activity_result/activity_result.rbs create mode 100644 temporalio/sig/temporalio/internal/bridge/api/activity_task/activity_task.rbs create mode 100644 temporalio/sig/temporalio/internal/bridge/api/child_workflow/child_workflow.rbs create mode 100644 temporalio/sig/temporalio/internal/bridge/api/common/common.rbs create mode 100644 temporalio/sig/temporalio/internal/bridge/api/core_interface.rbs create mode 100644 temporalio/sig/temporalio/internal/bridge/api/external_data/external_data.rbs create mode 100644 temporalio/sig/temporalio/internal/bridge/api/nexus/nexus.rbs create mode 100644 temporalio/sig/temporalio/internal/bridge/api/workflow_activation/workflow_activation.rbs create mode 100644 temporalio/sig/temporalio/internal/bridge/api/workflow_commands/workflow_commands.rbs create mode 100644 temporalio/sig/temporalio/internal/bridge/api/workflow_completion/workflow_completion.rbs diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 04257d37..e427c737 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -59,13 +59,10 @@ jobs: with: go-version: stable - # Needed because gRPC tools does not have a macOS protoc binary - # currently, see https://github.com/grpc/grpc/issues/25755 - - name: Install protoc for mac - if: ${{ matrix.os == 'macos-latest' }} + - name: Install protoc uses: arduino/setup-protoc@v3 with: - version: "23.x" + version: "34.x" repo-token: ${{ secrets.GITHUB_TOKEN }} - name: Install bundle @@ -76,8 +73,7 @@ jobs: if: ${{ matrix.checkTarget }} working-directory: ./temporalio run: | - bundle exec rake proto:generate - [[ -z $(git status --porcelain lib/temporalio/api) ]] || (git diff lib/temporalio/api; echo "Protos changed" 1>&2; exit 1) + bundle exec rake proto:check_generated - name: Lint, compile, test Ruby working-directory: ./temporalio diff --git a/README.md b/README.md index ea85e924..ff834d64 100644 --- a/README.md +++ b/README.md @@ -1333,6 +1333,7 @@ Prerequisites: * [Ruby](https://www.ruby-lang.org/) >= 3.2 (i.e. `ruby` and `bundle` on the `PATH`) * [Rust](https://www.rust-lang.org/) latest stable (i.e. `cargo` on the `PATH`) +* [protoc](https://protobuf.dev/installation/) >= 34.0 (i.e. `protoc` on the `PATH`) * This repository, cloned recursively * Change to the `temporalio/` directory @@ -1416,3 +1417,6 @@ Now can run `steep`: Run: bundle exec rake proto:generate + +`proto:generate` now requires `protoc >= 34.0` because we generate RBS alongside the generated Ruby +protobuf files. diff --git a/temporalio/Gemfile b/temporalio/Gemfile index aac001d8..f957ea43 100644 --- a/temporalio/Gemfile +++ b/temporalio/Gemfile @@ -10,7 +10,6 @@ group :development do gem 'async' gem 'base64' gem 'googleapis-common-protos-types' - gem 'grpc-tools', '~> 1.69' gem 'irb' gem 'minitest' # Have to explicitly depend on openssl for macos issue in GH CI described at diff --git a/temporalio/Rakefile b/temporalio/Rakefile index 81523c4b..afd5d600 100644 --- a/temporalio/Rakefile +++ b/temporalio/Rakefile @@ -27,19 +27,6 @@ Rake::TestTask.new(:test) do |t| t.test_files = FileList['test/**/*_test.rb'] end -def add_protoc_to_path - tools_spec = Gem::Specification.find_by_name('grpc-tools') - cpu = RbConfig::CONFIG['host_cpu'] - cpu = 'x86_64' if cpu == 'x64' - os = RbConfig::CONFIG['host_os'] - os = 'windows' if os.start_with?('mingw') - protoc_path = "#{tools_spec.gem_dir}/bin/#{cpu}-#{os}" - separator = os == 'windows' ? ';' : ':' - ENV['PATH'] = "#{ENV.fetch('PATH', nil)}#{separator}#{protoc_path}" -end - -add_protoc_to_path - require 'rubocop/rake_task' RuboCop::RakeTask.new @@ -75,6 +62,18 @@ namespace :proto do require_relative 'extra/proto_gen' ProtoGen.new.run end + + desc 'Fail if checked-in generated proto files are out of date' + task check_generated: :generate do + require_relative 'extra/proto_gen' + proto_generated_paths = ProtoGen.generated_paths + + changed_paths = IO.popen(['git', 'status', '--porcelain', '--', *proto_generated_paths], &:read) + next if changed_paths.empty? + + sh 'git', 'diff', '--', *proto_generated_paths + raise 'Protos changed' + end end namespace :rbs do diff --git a/temporalio/Steepfile b/temporalio/Steepfile index bb118daa..f6b2e5a7 100644 --- a/temporalio/Steepfile +++ b/temporalio/Steepfile @@ -3,9 +3,6 @@ D = Steep::Diagnostic common_diagnostics = { - # TODO(cretz): Needed because lack of proto RBS, waiting on https://github.com/protocolbuffers/protobuf/pull/15633 - D::Ruby::UnknownConstant => :information, - # Steep >= 1.9 started becoming too noisy in these cases D::Ruby::UnannotatedEmptyCollection => :information, D::Ruby::UndeclaredMethodDefinition => :information @@ -14,7 +11,6 @@ common_diagnostics = { target :lib do signature 'sig' check 'lib' - ignore 'lib/temporalio/api', 'lib/temporalio/internal/bridge/api' library 'uri', 'objspace', 'etc' configure_code_diagnostics do |hash| hash.update(common_diagnostics) @@ -27,6 +23,7 @@ target :test do library 'uri', 'objspace', 'etc' configure_code_diagnostics do |hash| hash.update(common_diagnostics) + hash[D::Ruby::UnknownConstant] = :information # Steep cannot infer some things, so we can ignore them in tests hash[D::Ruby::InsufficientKeywordArguments] = :information end diff --git a/temporalio/extra/payload_visitor_gen.rb b/temporalio/extra/payload_visitor_gen.rb index eb85bd09..b9ab9821 100644 --- a/temporalio/extra/payload_visitor_gen.rb +++ b/temporalio/extra/payload_visitor_gen.rb @@ -21,12 +21,7 @@ class PayloadVisitorGen # # @return [String] File code. def gen_file_code - # Collect all the methods of all the classes - methods = {} - DESCRIPTORS.each do |name| - desc = Google::Protobuf::DescriptorPool.generated_pool.lookup(name) or raise "Unknown name: #{name}" - walk_desc(desc:, methods:) - end + methods = payload_methods # Build the code for each method method_bodies = methods.map do |_, method_hash| @@ -108,7 +103,7 @@ def initialize( # @param value [Google::Protobuf::Message] Message to visit. def run(value) return unless value.is_a?(Google::Protobuf::MessageExts) - method_name = method_name_from_proto_name(value.class.descriptor.name) + method_name = method_name_from_proto_name(value.class.descriptor.name) # steep:ignore NoMethod send(method_name, value) if respond_to?(method_name, true) nil end @@ -158,8 +153,54 @@ def google_protobuf_any(value) TEXT end + # Generate file signature. + # + # @return [String] File signature. + def gen_rbs_code + method_defs = payload_methods.filter_map do |_, method_hash| + next if method_hash[:fields].empty? + + "def #{method_name_from_desc(method_hash[:desc])}: (untyped value) -> void" + end.sort + + <<~TEXT + module Temporalio + module Api + class PayloadVisitor + def initialize: ( + ?on_enter: untyped, + ?on_exit: untyped, + ?skip_search_attributes: bool, + ?traverse_any: bool + ) { (untyped) -> untyped } -> void + def run: (untyped value) -> nil + def _run_activation: (untyped value) -> void + def _run_activation_completion: (untyped value) -> void + + private + + def method_name_from_proto_name: (::String name) -> ::String + def api_common_v1_payload: (untyped value) -> untyped + def api_common_v1_payload_repeated: (untyped value) -> untyped + def google_protobuf_any: (untyped value) -> void + #{method_defs.join("\n ")} + end + end + end + TEXT + end + private + def payload_methods + methods = {} + DESCRIPTORS.each do |name| + desc = Google::Protobuf::DescriptorPool.generated_pool.lookup(name) or raise "Unknown name: #{name}" + walk_desc(desc:, methods:) + end + methods + end + def walk_desc(desc:, methods:) case desc when Google::Protobuf::ServiceDescriptor diff --git a/temporalio/extra/proto_gen.rb b/temporalio/extra/proto_gen.rb index b2e2936f..8598eddb 100644 --- a/temporalio/extra/proto_gen.rb +++ b/temporalio/extra/proto_gen.rb @@ -2,12 +2,75 @@ require 'fileutils' require 'google/protobuf' +require 'open3' # Generator for the proto files. class ProtoGen + MINIMUM_PROTOC_VERSION = Gem::Version.new('34.0') + SERVICE_DEFINITIONS = [ + { + require_path: './lib/temporalio/api/workflowservice/v1/service', + qualified_service_name: 'temporal.api.workflowservice.v1.WorkflowService', + file_name: 'workflow_service', + class_name: 'WorkflowService', + service_enum: 'SERVICE_WORKFLOW', + trait: 'WorkflowService', + service_method: 'workflow_service' + }, + { + require_path: './lib/temporalio/api/operatorservice/v1/service', + qualified_service_name: 'temporal.api.operatorservice.v1.OperatorService', + file_name: 'operator_service', + class_name: 'OperatorService', + service_enum: 'SERVICE_OPERATOR', + trait: 'OperatorService', + service_method: 'operator_service' + }, + { + require_path: './lib/temporalio/api/cloud/cloudservice/v1/service', + qualified_service_name: 'temporal.api.cloud.cloudservice.v1.CloudService', + file_name: 'cloud_service', + class_name: 'CloudService', + service_enum: 'SERVICE_CLOUD', + trait: 'CloudService', + service_method: 'cloud_service' + }, + { + require_path: './lib/temporalio/api/testservice/v1/service', + qualified_service_name: 'temporal.api.testservice.v1.TestService', + file_name: 'test_service', + class_name: 'TestService', + service_enum: 'SERVICE_TEST', + trait: 'TestService', + service_method: 'test_service' + } + ].freeze + GENERATED_PATHS = [ + 'lib/temporalio/api', + 'lib/temporalio/internal/bridge/api', + 'sig/temporalio/api', + 'sig/temporalio/internal/bridge/api', + *SERVICE_DEFINITIONS.flat_map do |service| + [ + "lib/temporalio/client/connection/#{service[:file_name]}.rb", + "sig/temporalio/client/connection/#{service[:file_name]}.rbs" + ] + end, + 'ext/src/client_rpc_generated.rs' + ].freeze + + # All generated paths. + def self.generated_paths + GENERATED_PATHS + end + # Run the generator def run FileUtils.rm_rf('lib/temporalio/api') + FileUtils.rm_rf('sig/temporalio/api') + FileUtils.rm_rf('sig/temporalio/internal/bridge/api') + + verify_protoc! generate_api_protos(Dir.glob('ext/sdk-core/crates/common/protos/api_upstream/**/*.proto').reject do |proto| proto.include?('google') @@ -27,22 +90,22 @@ def run def generate_api_protos(api_protos) # Generate API to temp dir and move FileUtils.rm_rf('tmp-proto') - FileUtils.mkdir_p('tmp-proto') + FileUtils.mkdir_p(['tmp-proto/ruby', 'tmp-proto/rbs']) system( - 'bundle', - 'exec', - 'grpc_tools_ruby_protoc', + protoc_command, + *google_proto_include_flags, '--proto_path=ext/sdk-core/crates/common/protos/api_upstream', '--proto_path=ext/sdk-core/crates/common/protos/api_cloud_upstream', '--proto_path=ext/sdk-core/crates/common/protos/testsrv_upstream', '--proto_path=ext/additional_protos', - '--ruby_out=tmp-proto', + '--ruby_out=tmp-proto/ruby', + '--rbs_out=tmp-proto/rbs', *api_protos, exception: true ) # Walk all generated Ruby files and cleanup content and filename - Dir.glob('tmp-proto/temporal/api/**/*.rb') do |path| + Dir.glob('tmp-proto/ruby/temporal/api/**/*.rb') do |path| # Fix up the import content = File.read(path) content.gsub!(%r{^require 'temporal/(.*)_pb'$}, "require 'temporalio/\\1'") @@ -53,7 +116,10 @@ def generate_api_protos(api_protos) end # Move from temp dir and remove temp dir - FileUtils.cp_r('tmp-proto/temporal/api', 'lib/temporalio') + Dir.glob('tmp-proto/rbs/temporal/api/**/*.rbs') { |path| normalize_generated_rbs!(path) } + FileUtils.cp_r('tmp-proto/ruby/temporal/api', 'lib/temporalio') + FileUtils.mkdir_p('sig/temporalio') + FileUtils.cp_r('tmp-proto/rbs/temporal/api', 'sig/temporalio') FileUtils.rm_rf('tmp-proto') end @@ -108,34 +174,15 @@ module Api end def generate_service_files - require './lib/temporalio/api/workflowservice/v1/service' - generate_service_file( - qualified_service_name: 'temporal.api.workflowservice.v1.WorkflowService', - file_name: 'workflow_service', - class_name: 'WorkflowService', - service_enum: 'SERVICE_WORKFLOW' - ) - require './lib/temporalio/api/operatorservice/v1/service' - generate_service_file( - qualified_service_name: 'temporal.api.operatorservice.v1.OperatorService', - file_name: 'operator_service', - class_name: 'OperatorService', - service_enum: 'SERVICE_OPERATOR' - ) - require './lib/temporalio/api/cloud/cloudservice/v1/service' - generate_service_file( - qualified_service_name: 'temporal.api.cloud.cloudservice.v1.CloudService', - file_name: 'cloud_service', - class_name: 'CloudService', - service_enum: 'SERVICE_CLOUD' - ) - require './lib/temporalio/api/testservice/v1/service' - generate_service_file( - qualified_service_name: 'temporal.api.testservice.v1.TestService', - file_name: 'test_service', - class_name: 'TestService', - service_enum: 'SERVICE_TEST' - ) + SERVICE_DEFINITIONS.each do |service| + require service[:require_path] + generate_service_file( + qualified_service_name: service[:qualified_service_name], + file_name: service[:file_name], + class_name: service[:class_name], + service_enum: service[:service_enum] + ) + end end def generate_service_file(qualified_service_name:, file_name:, class_name:, service_enum:) @@ -196,7 +243,6 @@ def #{rpc}(request, rpc_options: nil) end # Open file to generate RBS code - # TODO(cretz): Improve this when RBS proto is supported File.open("sig/temporalio/client/connection/#{file_name}.rbs", 'w') do |file| file.puts <<~TEXT # Generated code. DO NOT EDIT! @@ -213,9 +259,9 @@ def initialize: (Connection) -> void rpc = method.name.gsub(/([A-Z])/, '_\1').downcase.delete_prefix('_') file.puts <<-TEXT def #{rpc}: ( - untyped request, + #{method.input_type.msgclass} request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> #{method.output_type.msgclass} TEXT end @@ -246,34 +292,15 @@ def generate_rust_client_file pub fn invoke_rpc(&self, service: u8, callback: AsyncCallback, call: RpcCall) -> Result<(), Error> { match service { TEXT - generate_rust_match_arm( - file:, - qualified_service_name: 'temporal.api.workflowservice.v1.WorkflowService', - service_enum: 'SERVICE_WORKFLOW', - trait: 'WorkflowService', - service_method: 'workflow_service' - ) - generate_rust_match_arm( - file:, - qualified_service_name: 'temporal.api.operatorservice.v1.OperatorService', - service_enum: 'SERVICE_OPERATOR', - trait: 'OperatorService', - service_method: 'operator_service' - ) - generate_rust_match_arm( - file:, - qualified_service_name: 'temporal.api.cloud.cloudservice.v1.CloudService', - service_enum: 'SERVICE_CLOUD', - trait: 'CloudService', - service_method: 'cloud_service' - ) - generate_rust_match_arm( - file:, - qualified_service_name: 'temporal.api.testservice.v1.TestService', - service_enum: 'SERVICE_TEST', - trait: 'TestService', - service_method: 'test_service' - ) + SERVICE_DEFINITIONS.each do |service| + generate_rust_match_arm( + file:, + qualified_service_name: service[:qualified_service_name], + service_enum: service[:service_enum], + trait: service[:trait], + service_method: service[:service_method] + ) + end file.puts <<~TEXT _ => Err(error!("Unknown service")), } @@ -308,19 +335,19 @@ def generate_core_protos FileUtils.rm_rf('lib/temporalio/internal/bridge/api') # Generate API to temp dir FileUtils.rm_rf('tmp-proto') - FileUtils.mkdir_p('tmp-proto') + FileUtils.mkdir_p(['tmp-proto/ruby', 'tmp-proto/rbs']) system( - 'bundle', - 'exec', - 'grpc_tools_ruby_protoc', + protoc_command, + *google_proto_include_flags, '--proto_path=ext/sdk-core/crates/common/protos/api_upstream', '--proto_path=ext/sdk-core/crates/common/protos/local', - '--ruby_out=tmp-proto', + '--ruby_out=tmp-proto/ruby', + '--rbs_out=tmp-proto/rbs', *Dir.glob('ext/sdk-core/crates/common/protos/local/**/*.proto'), exception: true ) # Walk all generated Ruby files and cleanup content and filename - Dir.glob('tmp-proto/temporal/sdk/**/*.rb') do |path| + Dir.glob('tmp-proto/ruby/temporal/sdk/**/*.rb') do |path| # Fix up the imports content = File.read(path) content.gsub!(%r{^require 'temporal/(.*)_pb'$}, "require 'temporalio/\\1'") @@ -331,13 +358,86 @@ def generate_core_protos FileUtils.mv(path, path.sub('_pb', '')) end # Move from temp dir and remove temp dir + Dir.glob('tmp-proto/rbs/temporal/sdk/**/*.rbs') { |path| normalize_generated_rbs!(path) } FileUtils.mkdir_p('lib/temporalio/internal/bridge/api') - FileUtils.cp_r(Dir.glob('tmp-proto/temporal/sdk/core/*'), 'lib/temporalio/internal/bridge/api') + FileUtils.cp_r(Dir.glob('tmp-proto/ruby/temporal/sdk/core/*'), 'lib/temporalio/internal/bridge/api') + FileUtils.mkdir_p('sig/temporalio/internal/bridge/api') + FileUtils.cp_r(Dir.glob('tmp-proto/rbs/temporal/sdk/core/*'), 'sig/temporalio/internal/bridge/api') FileUtils.rm_rf('tmp-proto') end def generate_payload_visitor require_relative 'payload_visitor_gen' - File.write('lib/temporalio/api/payload_visitor.rb', PayloadVisitorGen.new.gen_file_code) + gen = PayloadVisitorGen.new + File.write('lib/temporalio/api/payload_visitor.rb', gen.gen_file_code) + FileUtils.mkdir_p('sig/temporalio/api') + File.write('sig/temporalio/api/payload_visitor.rbs', gen.gen_rbs_code) + end + + def protoc_command + ENV.fetch('PROTOC', 'protoc') + end + + def google_proto_include_flags + include_dir = ENV.fetch('PROTOC_INCLUDE', nil) + include_dir ? ["--proto_path=#{include_dir}"] : [] + end + + def protoc_version + @protoc_version ||= begin + version_output, status = Open3.capture2(protoc_command, '--version') + raise "Failed running #{protoc_command.inspect} --version" unless status.success? + + version_output.split.last + end + end + + def verify_protoc! + version = Gem::Version.new(protoc_version) + return if version >= MINIMUM_PROTOC_VERSION + + raise "protoc #{MINIMUM_PROTOC_VERSION} or newer is required, got #{version}" + rescue Errno::ENOENT + raise "protoc #{MINIMUM_PROTOC_VERSION} or newer is required and was not found" + end + + # Protobuf generates overly specific type signatures that result in Steep choking while creating union types. + # To avoid this, we widen them to their supertype e.g. `lookup` taking a String compared to the union type of each + # message type string literal. + def normalize_generated_rbs!(path) + content = File.read(path) + # These mixins are currently not part of the google-protobuf RBS files, so we strip them to avoid type errors. + content.gsub!(/^\s*include ::Google::Protobuf::_MessageClass\[[^\]]+\]\n/, '') + content.gsub!(/^\s*extend ::Google::Protobuf::_EnumModule\n/, '') + content.gsub!( + /\(::Google::Protobuf::Descriptor & ::Google::Protobuf::_SpecificDescriptor\[[^\]]+\]\)/, + '::Google::Protobuf::Descriptor' + ) + content.gsub!( + /\(::Google::Protobuf::EnumDescriptor & ::Google::Protobuf::_SpecificEnumDescriptor\[[^\]]+\]\)/, + '::Google::Protobuf::EnumDescriptor' + ) + content.gsub!(/::Google::Protobuf::RepeatedField\[[^\]]+\]/, '::Google::Protobuf::RepeatedField') + content.gsub!( + /::Google::Protobuf::Map\[([^,\]]+), ([^,\]]+), [^\]]+\]/, + '::Google::Protobuf::Map[\1, \2]' + ) + # The plugin emits constructor helpers as `Type::init_map`; the runtime API exposed to callers is just `Type`. + content.gsub!(/::Google::Protobuf::([A-Za-z]+)::init_map/, '::Google::Protobuf::\1') + content.gsub!( + /^(\s*)def self\.lookup:\n.*?^(?=\1def self\.resolve:)/m, + "\\1def self.lookup: (::Integer number) -> ::Symbol\n\n" + ) + content.gsub!( + /^(\s*)def self\.resolve:\n.*?^(?=\1type names =)/m, + "\\1def self.resolve: (::Symbol name) -> ::Integer\n\n" + ) + content.gsub!( + /^(\s*)class DescriptorPool\n\1 def lookup:\n.*?^(?=\1end$)/m, + "\\1class DescriptorPool\n\\1 def lookup: (::String name) -> ::Google::Protobuf::Descriptor\n" + ) + File.write(path, content) + # Keep RBS filenames aligned with the Ruby files we already rename away from the `_pb` suffix. + FileUtils.mv(path, path.sub('_pb', '')) end end diff --git a/temporalio/lib/temporalio/api/payload_visitor.rb b/temporalio/lib/temporalio/api/payload_visitor.rb index 6730221f..5c0c4f3e 100644 --- a/temporalio/lib/temporalio/api/payload_visitor.rb +++ b/temporalio/lib/temporalio/api/payload_visitor.rb @@ -45,7 +45,7 @@ def initialize( # @param value [Google::Protobuf::Message] Message to visit. def run(value) return unless value.is_a?(Google::Protobuf::MessageExts) - method_name = method_name_from_proto_name(value.class.descriptor.name) + method_name = method_name_from_proto_name(value.class.descriptor.name) # steep:ignore NoMethod send(method_name, value) if respond_to?(method_name, true) nil end diff --git a/temporalio/rbs_collection.lock.yaml b/temporalio/rbs_collection.lock.yaml index 2f3cbfa2..2836aa82 100644 --- a/temporalio/rbs_collection.lock.yaml +++ b/temporalio/rbs_collection.lock.yaml @@ -6,7 +6,7 @@ gems: source: type: git name: ruby/gem_rbs_collection - revision: 2af46cde7fec5e4130f6c84c5b691c0538af8789 + revision: 291289079f2e89ffb397d73f2da371b2e13555b6 remote: https://github.com/ruby/gem_rbs_collection.git repo_dir: gems - name: activerecord @@ -14,7 +14,7 @@ gems: source: type: git name: ruby/gem_rbs_collection - revision: 2af46cde7fec5e4130f6c84c5b691c0538af8789 + revision: 291289079f2e89ffb397d73f2da371b2e13555b6 remote: https://github.com/ruby/gem_rbs_collection.git repo_dir: gems - name: activesupport @@ -22,7 +22,7 @@ gems: source: type: git name: ruby/gem_rbs_collection - revision: 2af46cde7fec5e4130f6c84c5b691c0538af8789 + revision: 291289079f2e89ffb397d73f2da371b2e13555b6 remote: https://github.com/ruby/gem_rbs_collection.git repo_dir: gems - name: async @@ -30,31 +30,23 @@ gems: source: type: git name: ruby/gem_rbs_collection - revision: 2af46cde7fec5e4130f6c84c5b691c0538af8789 + revision: 291289079f2e89ffb397d73f2da371b2e13555b6 remote: https://github.com/ruby/gem_rbs_collection.git repo_dir: gems - name: base64 version: 0.3.0 source: type: rubygems -- name: benchmark - version: '0' - source: - type: stdlib - name: bigdecimal - version: '4.0' + version: 4.1.1 source: - type: git - name: ruby/gem_rbs_collection - revision: 2af46cde7fec5e4130f6c84c5b691c0538af8789 - remote: https://github.com/ruby/gem_rbs_collection.git - repo_dir: gems + type: rubygems - name: concurrent-ruby version: '1.1' source: type: git name: ruby/gem_rbs_collection - revision: 2af46cde7fec5e4130f6c84c5b691c0538af8789 + revision: 291289079f2e89ffb397d73f2da371b2e13555b6 remote: https://github.com/ruby/gem_rbs_collection.git repo_dir: gems - name: csv @@ -62,17 +54,13 @@ gems: source: type: git name: ruby/gem_rbs_collection - revision: 2af46cde7fec5e4130f6c84c5b691c0538af8789 + revision: 291289079f2e89ffb397d73f2da371b2e13555b6 remote: https://github.com/ruby/gem_rbs_collection.git repo_dir: gems - name: date version: '0' source: type: stdlib -- name: dbm - version: '0' - source: - type: stdlib - name: delegate version: '0' source: @@ -98,7 +86,7 @@ gems: source: type: git name: ruby/gem_rbs_collection - revision: 2af46cde7fec5e4130f6c84c5b691c0538af8789 + revision: 291289079f2e89ffb397d73f2da371b2e13555b6 remote: https://github.com/ruby/gem_rbs_collection.git repo_dir: gems - name: i18n @@ -106,7 +94,7 @@ gems: source: type: git name: ruby/gem_rbs_collection - revision: 2af46cde7fec5e4130f6c84c5b691c0538af8789 + revision: 291289079f2e89ffb397d73f2da371b2e13555b6 remote: https://github.com/ruby/gem_rbs_collection.git repo_dir: gems - name: io-console @@ -118,15 +106,19 @@ gems: source: type: stdlib - name: logger - version: '0' + version: '1.7' source: - type: stdlib + type: git + name: ruby/gem_rbs_collection + revision: 291289079f2e89ffb397d73f2da371b2e13555b6 + remote: https://github.com/ruby/gem_rbs_collection.git + repo_dir: gems - name: minitest version: '5.25' source: type: git name: ruby/gem_rbs_collection - revision: 2af46cde7fec5e4130f6c84c5b691c0538af8789 + revision: 291289079f2e89ffb397d73f2da371b2e13555b6 remote: https://github.com/ruby/gem_rbs_collection.git repo_dir: gems - name: monitor @@ -157,16 +149,8 @@ gems: version: 1.9.0 source: type: rubygems -- name: pstore - version: '0' - source: - type: stdlib -- name: psych - version: '0' - source: - type: stdlib - name: rbs - version: 3.10.0 + version: 3.10.4 source: type: rubygems - name: rdoc @@ -194,7 +178,7 @@ gems: source: type: git name: ruby/gem_rbs_collection - revision: 2af46cde7fec5e4130f6c84c5b691c0538af8789 + revision: 291289079f2e89ffb397d73f2da371b2e13555b6 remote: https://github.com/ruby/gem_rbs_collection.git repo_dir: gems - name: stringio @@ -222,7 +206,7 @@ gems: source: type: git name: ruby/gem_rbs_collection - revision: 2af46cde7fec5e4130f6c84c5b691c0538af8789 + revision: 291289079f2e89ffb397d73f2da371b2e13555b6 remote: https://github.com/ruby/gem_rbs_collection.git repo_dir: gems - name: uri @@ -234,7 +218,7 @@ gems: source: type: git name: ruby/gem_rbs_collection - revision: 2af46cde7fec5e4130f6c84c5b691c0538af8789 + revision: 291289079f2e89ffb397d73f2da371b2e13555b6 remote: https://github.com/ruby/gem_rbs_collection.git repo_dir: gems gemfile_lock_path: Gemfile.lock diff --git a/temporalio/sig/google/protobuf_compat.rbs b/temporalio/sig/google/protobuf_compat.rbs new file mode 100644 index 00000000..a39fc28b --- /dev/null +++ b/temporalio/sig/google/protobuf_compat.rbs @@ -0,0 +1,17 @@ +module Google + module Protobuf + class AbstractMessage + def self.decode: (String proto, ?Hash[untyped, untyped] options) -> instance + def self.decode_json: (String json, ?Hash[untyped, untyped] options) -> instance + def self.encode: (AbstractMessage msg, ?Hash[untyped, untyped] options) -> String + def self.encode_json: (AbstractMessage msg, ?Hash[untyped, untyped] options) -> String + end + + class Empty < AbstractMessage + end + + class DoubleValue < AbstractMessage + attr_accessor value(): Float + end + end +end diff --git a/temporalio/sig/temporalio/api/activity/v1/message.rbs b/temporalio/sig/temporalio/api/activity/v1/message.rbs new file mode 100644 index 00000000..f1a3c181 --- /dev/null +++ b/temporalio/sig/temporalio/api/activity/v1/message.rbs @@ -0,0 +1,596 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/api/activity/v1/message.proto + +module Temporalio + module Api + module Activity + module V1 + # The outcome of a completed activity execution: either a successful result or a failure. + class ActivityExecutionOutcome < ::Google::Protobuf::AbstractMessage + + # The result if the activity completed successfully. + attr_accessor result(): ::Temporalio::Api::Common::V1::Payloads? + def has_result?: () -> bool + def clear_result: () -> void + + # The failure if the activity completed unsuccessfully. + attr_accessor failure(): ::Temporalio::Api::Failure::V1::Failure? + def has_failure?: () -> bool + def clear_failure: () -> void + + attr_reader value(): (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Failure::V1::Failure)? + def has_value?: () -> bool + def clear_value: () -> void + + type init_map = { + result: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + "result" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + failure: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + "failure" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("result" name) -> ::Temporalio::Api::Common::V1::Payloads? + | ("failure" name) -> ::Temporalio::Api::Failure::V1::Failure? + + def []=: + ("result" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void + | ("failure" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void + end + + class ActivityOptions < ::Google::Protobuf::AbstractMessage + + attr_accessor task_queue(): ::Temporalio::Api::TaskQueue::V1::TaskQueue? + def has_task_queue?: () -> bool + def clear_task_queue: () -> void + + # 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. --) + attr_reader schedule_to_close_timeout(): ::Google::Protobuf::Duration? + attr_writer schedule_to_close_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_schedule_to_close_timeout?: () -> bool + def clear_schedule_to_close_timeout: () -> void + + # 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. --) + attr_reader schedule_to_start_timeout(): ::Google::Protobuf::Duration? + attr_writer schedule_to_start_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_schedule_to_start_timeout?: () -> bool + def clear_schedule_to_start_timeout: () -> void + + # 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. --) + attr_reader start_to_close_timeout(): ::Google::Protobuf::Duration? + attr_writer start_to_close_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_start_to_close_timeout?: () -> bool + def clear_start_to_close_timeout: () -> void + + # Maximum permitted time between successful worker heartbeats. + attr_reader heartbeat_timeout(): ::Google::Protobuf::Duration? + attr_writer heartbeat_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_heartbeat_timeout?: () -> bool + def clear_heartbeat_timeout: () -> void + + # The retry policy for the activity. Will never exceed `schedule_to_close_timeout`. + attr_accessor retry_policy(): ::Temporalio::Api::Common::V1::RetryPolicy? + def has_retry_policy?: () -> bool + def clear_retry_policy: () -> void + + # Priority metadata. If this message is not present, or any fields are not + # present, they inherit the values from the workflow. + attr_accessor priority(): ::Temporalio::Api::Common::V1::Priority? + def has_priority?: () -> bool + def clear_priority: () -> void + + type init_map = { + task_queue: (::Temporalio::Api::TaskQueue::V1::TaskQueue | ::Temporalio::Api::TaskQueue::V1::TaskQueue::init_map)?, + "task_queue" => (::Temporalio::Api::TaskQueue::V1::TaskQueue | ::Temporalio::Api::TaskQueue::V1::TaskQueue::init_map)?, + schedule_to_close_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "schedule_to_close_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + schedule_to_start_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "schedule_to_start_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + start_to_close_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "start_to_close_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + heartbeat_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "heartbeat_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + retry_policy: (::Temporalio::Api::Common::V1::RetryPolicy | ::Temporalio::Api::Common::V1::RetryPolicy::init_map)?, + "retry_policy" => (::Temporalio::Api::Common::V1::RetryPolicy | ::Temporalio::Api::Common::V1::RetryPolicy::init_map)?, + priority: (::Temporalio::Api::Common::V1::Priority | ::Temporalio::Api::Common::V1::Priority::init_map)?, + "priority" => (::Temporalio::Api::Common::V1::Priority | ::Temporalio::Api::Common::V1::Priority::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("task_queue" name) -> ::Temporalio::Api::TaskQueue::V1::TaskQueue? + | ("schedule_to_close_timeout" name) -> ::Google::Protobuf::Duration? + | ("schedule_to_start_timeout" name) -> ::Google::Protobuf::Duration? + | ("start_to_close_timeout" name) -> ::Google::Protobuf::Duration? + | ("heartbeat_timeout" name) -> ::Google::Protobuf::Duration? + | ("retry_policy" name) -> ::Temporalio::Api::Common::V1::RetryPolicy? + | ("priority" name) -> ::Temporalio::Api::Common::V1::Priority? + + def []=: + ("task_queue" name, ::Temporalio::Api::TaskQueue::V1::TaskQueue? value) -> void + | ("schedule_to_close_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("schedule_to_start_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("start_to_close_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("heartbeat_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("retry_policy" name, ::Temporalio::Api::Common::V1::RetryPolicy? value) -> void + | ("priority" name, ::Temporalio::Api::Common::V1::Priority? value) -> void + end + + # Information about a standalone activity. + class ActivityExecutionInfo < ::Google::Protobuf::AbstractMessage + + # Unique identifier of this activity within its namespace along with run ID (below). + attr_reader activity_id(): ::String + attr_writer activity_id(): ::String | ::Symbol + def clear_activity_id: () -> void + + attr_reader run_id(): ::String + attr_writer run_id(): ::String | ::Symbol + def clear_run_id: () -> void + + # The type of the activity, a string that maps to a registered activity on a worker. + attr_accessor activity_type(): ::Temporalio::Api::Common::V1::ActivityType? + def has_activity_type?: () -> bool + def clear_activity_type: () -> void + + # A general status for this activity, indicates whether it is currently running or in one of the terminal statuses. + attr_reader status(): ::Temporalio::Api::Enums::V1::ActivityExecutionStatus::names | ::Integer + attr_writer status(): ::Temporalio::Api::Enums::V1::ActivityExecutionStatus::names | ::Temporalio::Api::Enums::V1::ActivityExecutionStatus::strings | ::Integer | ::Float + attr_reader status_const(): ::Integer + def clear_status: () -> void + + # More detailed breakdown of ACTIVITY_EXECUTION_STATUS_RUNNING. + attr_reader run_state(): ::Temporalio::Api::Enums::V1::PendingActivityState::names | ::Integer + attr_writer run_state(): ::Temporalio::Api::Enums::V1::PendingActivityState::names | ::Temporalio::Api::Enums::V1::PendingActivityState::strings | ::Integer | ::Float + attr_reader run_state_const(): ::Integer + def clear_run_state: () -> void + + attr_reader task_queue(): ::String + attr_writer task_queue(): ::String | ::Symbol + def clear_task_queue: () -> void + + # 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. --) + attr_reader schedule_to_close_timeout(): ::Google::Protobuf::Duration? + attr_writer schedule_to_close_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_schedule_to_close_timeout?: () -> bool + def clear_schedule_to_close_timeout: () -> void + + # 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. --) + attr_reader schedule_to_start_timeout(): ::Google::Protobuf::Duration? + attr_writer schedule_to_start_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_schedule_to_start_timeout?: () -> bool + def clear_schedule_to_start_timeout: () -> void + + # 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. --) + attr_reader start_to_close_timeout(): ::Google::Protobuf::Duration? + attr_writer start_to_close_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_start_to_close_timeout?: () -> bool + def clear_start_to_close_timeout: () -> void + + # Maximum permitted time between successful worker heartbeats. + attr_reader heartbeat_timeout(): ::Google::Protobuf::Duration? + attr_writer heartbeat_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_heartbeat_timeout?: () -> bool + def clear_heartbeat_timeout: () -> void + + # The retry policy for the activity. Will never exceed `schedule_to_close_timeout`. + attr_accessor retry_policy(): ::Temporalio::Api::Common::V1::RetryPolicy? + def has_retry_policy?: () -> bool + def clear_retry_policy: () -> void + + # Details provided in the last recorded activity heartbeat. + attr_accessor heartbeat_details(): ::Temporalio::Api::Common::V1::Payloads? + def has_heartbeat_details?: () -> bool + def clear_heartbeat_details: () -> void + + # Time the last heartbeat was recorded. + attr_reader last_heartbeat_time(): ::Google::Protobuf::Timestamp? + attr_writer last_heartbeat_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_last_heartbeat_time?: () -> bool + def clear_last_heartbeat_time: () -> void + + # Time the last attempt was started. + attr_reader last_started_time(): ::Google::Protobuf::Timestamp? + attr_writer last_started_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_last_started_time?: () -> bool + def clear_last_started_time: () -> void + + # The attempt this activity is currently on. Incremented each time a new attempt is scheduled. + attr_reader attempt(): ::Integer + attr_writer attempt(): ::Integer | ::Float + def clear_attempt: () -> void + + # How long this activity has been running for, including all attempts and backoff between attempts. + attr_reader execution_duration(): ::Google::Protobuf::Duration? + attr_writer execution_duration(): (::Google::Protobuf::Duration | ::int)? + def has_execution_duration?: () -> bool + def clear_execution_duration: () -> void + + # Time the activity was originally scheduled via a StartActivityExecution request. + attr_reader schedule_time(): ::Google::Protobuf::Timestamp? + attr_writer schedule_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_schedule_time?: () -> bool + def clear_schedule_time: () -> void + + # Scheduled time + schedule to close timeout. + attr_reader expiration_time(): ::Google::Protobuf::Timestamp? + attr_writer expiration_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_expiration_time?: () -> bool + def clear_expiration_time: () -> void + + # Time when the activity transitioned to a closed state. + attr_reader close_time(): ::Google::Protobuf::Timestamp? + attr_writer close_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_close_time?: () -> bool + def clear_close_time: () -> void + + # Failure details from the last failed attempt. + attr_accessor last_failure(): ::Temporalio::Api::Failure::V1::Failure? + def has_last_failure?: () -> bool + def clear_last_failure: () -> void + + attr_reader last_worker_identity(): ::String + attr_writer last_worker_identity(): ::String | ::Symbol + def clear_last_worker_identity: () -> void + + # 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. + attr_reader current_retry_interval(): ::Google::Protobuf::Duration? + attr_writer current_retry_interval(): (::Google::Protobuf::Duration | ::int)? + def has_current_retry_interval?: () -> bool + def clear_current_retry_interval: () -> void + + # The time when the last activity attempt completed. If activity has not been completed yet, it will be null. + attr_reader last_attempt_complete_time(): ::Google::Protobuf::Timestamp? + attr_writer last_attempt_complete_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_last_attempt_complete_time?: () -> bool + def clear_last_attempt_complete_time: () -> void + + # The time when the next activity attempt will be scheduled. + # If activity is currently scheduled or started, this field will be null. + attr_reader next_attempt_schedule_time(): ::Google::Protobuf::Timestamp? + attr_writer next_attempt_schedule_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_next_attempt_schedule_time?: () -> bool + def clear_next_attempt_schedule_time: () -> void + + # 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. + attr_accessor last_deployment_version(): ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? + def has_last_deployment_version?: () -> bool + def clear_last_deployment_version: () -> void + + # Priority metadata. + attr_accessor priority(): ::Temporalio::Api::Common::V1::Priority? + def has_priority?: () -> bool + def clear_priority: () -> void + + # Incremented each time the activity's state is mutated in persistence. + attr_reader state_transition_count(): ::Integer + attr_writer state_transition_count(): ::Integer | ::Float + def clear_state_transition_count: () -> void + + # Updated once on scheduled and once on terminal status. + attr_reader state_size_bytes(): ::Integer + attr_writer state_size_bytes(): ::Integer | ::Float + def clear_state_size_bytes: () -> void + + attr_accessor search_attributes(): ::Temporalio::Api::Common::V1::SearchAttributes? + def has_search_attributes?: () -> bool + def clear_search_attributes: () -> void + + attr_accessor header(): ::Temporalio::Api::Common::V1::Header? + def has_header?: () -> bool + def clear_header: () -> void + + # Metadata for use by user interfaces to display the fixed as-of-start summary and details of the activity. + attr_accessor user_metadata(): ::Temporalio::Api::Sdk::V1::UserMetadata? + def has_user_metadata?: () -> bool + def clear_user_metadata: () -> void + + # Set if activity cancelation was requested. + attr_reader canceled_reason(): ::String + attr_writer canceled_reason(): ::String | ::Symbol + def clear_canceled_reason: () -> void + + type init_map = { + activity_id: (::String | ::Symbol)?, + "activity_id" => (::String | ::Symbol)?, + run_id: (::String | ::Symbol)?, + "run_id" => (::String | ::Symbol)?, + activity_type: (::Temporalio::Api::Common::V1::ActivityType | ::Temporalio::Api::Common::V1::ActivityType::init_map)?, + "activity_type" => (::Temporalio::Api::Common::V1::ActivityType | ::Temporalio::Api::Common::V1::ActivityType::init_map)?, + status: (::Temporalio::Api::Enums::V1::ActivityExecutionStatus::names | ::Temporalio::Api::Enums::V1::ActivityExecutionStatus::strings | ::Integer | ::Float)?, + "status" => (::Temporalio::Api::Enums::V1::ActivityExecutionStatus::names | ::Temporalio::Api::Enums::V1::ActivityExecutionStatus::strings | ::Integer | ::Float)?, + run_state: (::Temporalio::Api::Enums::V1::PendingActivityState::names | ::Temporalio::Api::Enums::V1::PendingActivityState::strings | ::Integer | ::Float)?, + "run_state" => (::Temporalio::Api::Enums::V1::PendingActivityState::names | ::Temporalio::Api::Enums::V1::PendingActivityState::strings | ::Integer | ::Float)?, + task_queue: (::String | ::Symbol)?, + "task_queue" => (::String | ::Symbol)?, + schedule_to_close_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "schedule_to_close_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + schedule_to_start_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "schedule_to_start_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + start_to_close_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "start_to_close_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + heartbeat_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "heartbeat_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + retry_policy: (::Temporalio::Api::Common::V1::RetryPolicy | ::Temporalio::Api::Common::V1::RetryPolicy::init_map)?, + "retry_policy" => (::Temporalio::Api::Common::V1::RetryPolicy | ::Temporalio::Api::Common::V1::RetryPolicy::init_map)?, + heartbeat_details: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + "heartbeat_details" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + last_heartbeat_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "last_heartbeat_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + last_started_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "last_started_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + attempt: (::Integer | ::Float)?, + "attempt" => (::Integer | ::Float)?, + execution_duration: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "execution_duration" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + schedule_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "schedule_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + expiration_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "expiration_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + close_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "close_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + last_failure: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + "last_failure" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + last_worker_identity: (::String | ::Symbol)?, + "last_worker_identity" => (::String | ::Symbol)?, + current_retry_interval: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "current_retry_interval" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + last_attempt_complete_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "last_attempt_complete_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + next_attempt_schedule_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "next_attempt_schedule_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + last_deployment_version: (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?, + "last_deployment_version" => (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?, + priority: (::Temporalio::Api::Common::V1::Priority | ::Temporalio::Api::Common::V1::Priority::init_map)?, + "priority" => (::Temporalio::Api::Common::V1::Priority | ::Temporalio::Api::Common::V1::Priority::init_map)?, + state_transition_count: (::Integer | ::Float)?, + "state_transition_count" => (::Integer | ::Float)?, + state_size_bytes: (::Integer | ::Float)?, + "state_size_bytes" => (::Integer | ::Float)?, + search_attributes: (::Temporalio::Api::Common::V1::SearchAttributes | ::Temporalio::Api::Common::V1::SearchAttributes::init_map)?, + "search_attributes" => (::Temporalio::Api::Common::V1::SearchAttributes | ::Temporalio::Api::Common::V1::SearchAttributes::init_map)?, + header: (::Temporalio::Api::Common::V1::Header | ::Temporalio::Api::Common::V1::Header::init_map)?, + "header" => (::Temporalio::Api::Common::V1::Header | ::Temporalio::Api::Common::V1::Header::init_map)?, + user_metadata: (::Temporalio::Api::Sdk::V1::UserMetadata | ::Temporalio::Api::Sdk::V1::UserMetadata::init_map)?, + "user_metadata" => (::Temporalio::Api::Sdk::V1::UserMetadata | ::Temporalio::Api::Sdk::V1::UserMetadata::init_map)?, + canceled_reason: (::String | ::Symbol)?, + "canceled_reason" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("activity_id" name) -> ::String + | ("run_id" name) -> ::String + | ("activity_type" name) -> ::Temporalio::Api::Common::V1::ActivityType? + | ("status" name) -> (::Temporalio::Api::Enums::V1::ActivityExecutionStatus::names | ::Integer) + | ("run_state" name) -> (::Temporalio::Api::Enums::V1::PendingActivityState::names | ::Integer) + | ("task_queue" name) -> ::String + | ("schedule_to_close_timeout" name) -> ::Google::Protobuf::Duration? + | ("schedule_to_start_timeout" name) -> ::Google::Protobuf::Duration? + | ("start_to_close_timeout" name) -> ::Google::Protobuf::Duration? + | ("heartbeat_timeout" name) -> ::Google::Protobuf::Duration? + | ("retry_policy" name) -> ::Temporalio::Api::Common::V1::RetryPolicy? + | ("heartbeat_details" name) -> ::Temporalio::Api::Common::V1::Payloads? + | ("last_heartbeat_time" name) -> ::Google::Protobuf::Timestamp? + | ("last_started_time" name) -> ::Google::Protobuf::Timestamp? + | ("attempt" name) -> ::Integer + | ("execution_duration" name) -> ::Google::Protobuf::Duration? + | ("schedule_time" name) -> ::Google::Protobuf::Timestamp? + | ("expiration_time" name) -> ::Google::Protobuf::Timestamp? + | ("close_time" name) -> ::Google::Protobuf::Timestamp? + | ("last_failure" name) -> ::Temporalio::Api::Failure::V1::Failure? + | ("last_worker_identity" name) -> ::String + | ("current_retry_interval" name) -> ::Google::Protobuf::Duration? + | ("last_attempt_complete_time" name) -> ::Google::Protobuf::Timestamp? + | ("next_attempt_schedule_time" name) -> ::Google::Protobuf::Timestamp? + | ("last_deployment_version" name) -> ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? + | ("priority" name) -> ::Temporalio::Api::Common::V1::Priority? + | ("state_transition_count" name) -> ::Integer + | ("state_size_bytes" name) -> ::Integer + | ("search_attributes" name) -> ::Temporalio::Api::Common::V1::SearchAttributes? + | ("header" name) -> ::Temporalio::Api::Common::V1::Header? + | ("user_metadata" name) -> ::Temporalio::Api::Sdk::V1::UserMetadata? + | ("canceled_reason" name) -> ::String + + def []=: + ("activity_id" name, (::String | ::Symbol) value) -> void + | ("run_id" name, (::String | ::Symbol) value) -> void + | ("activity_type" name, ::Temporalio::Api::Common::V1::ActivityType? value) -> void + | ("status" name, (::Temporalio::Api::Enums::V1::ActivityExecutionStatus::names | ::Temporalio::Api::Enums::V1::ActivityExecutionStatus::strings | ::Integer | ::Float) value) -> void + | ("run_state" name, (::Temporalio::Api::Enums::V1::PendingActivityState::names | ::Temporalio::Api::Enums::V1::PendingActivityState::strings | ::Integer | ::Float) value) -> void + | ("task_queue" name, (::String | ::Symbol) value) -> void + | ("schedule_to_close_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("schedule_to_start_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("start_to_close_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("heartbeat_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("retry_policy" name, ::Temporalio::Api::Common::V1::RetryPolicy? value) -> void + | ("heartbeat_details" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void + | ("last_heartbeat_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("last_started_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("attempt" name, (::Integer | ::Float) value) -> void + | ("execution_duration" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("schedule_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("expiration_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("close_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("last_failure" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void + | ("last_worker_identity" name, (::String | ::Symbol) value) -> void + | ("current_retry_interval" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("last_attempt_complete_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("next_attempt_schedule_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("last_deployment_version" name, ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? value) -> void + | ("priority" name, ::Temporalio::Api::Common::V1::Priority? value) -> void + | ("state_transition_count" name, (::Integer | ::Float) value) -> void + | ("state_size_bytes" name, (::Integer | ::Float) value) -> void + | ("search_attributes" name, ::Temporalio::Api::Common::V1::SearchAttributes? value) -> void + | ("header" name, ::Temporalio::Api::Common::V1::Header? value) -> void + | ("user_metadata" name, ::Temporalio::Api::Sdk::V1::UserMetadata? value) -> void + | ("canceled_reason" name, (::String | ::Symbol) value) -> void + end + + # 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). + class ActivityExecutionListInfo < ::Google::Protobuf::AbstractMessage + + # A unique identifier of this activity within its namespace along with run ID (below). + attr_reader activity_id(): ::String + attr_writer activity_id(): ::String | ::Symbol + def clear_activity_id: () -> void + + # The run ID of the standalone activity. + attr_reader run_id(): ::String + attr_writer run_id(): ::String | ::Symbol + def clear_run_id: () -> void + + # The type of the activity, a string that maps to a registered activity on a worker. + attr_accessor activity_type(): ::Temporalio::Api::Common::V1::ActivityType? + def has_activity_type?: () -> bool + def clear_activity_type: () -> void + + # Time the activity was originally scheduled via a StartActivityExecution request. + attr_reader schedule_time(): ::Google::Protobuf::Timestamp? + attr_writer schedule_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_schedule_time?: () -> bool + def clear_schedule_time: () -> void + + # If the activity is in a terminal status, this field represents the time the activity transitioned to that status. + attr_reader close_time(): ::Google::Protobuf::Timestamp? + attr_writer close_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_close_time?: () -> bool + def clear_close_time: () -> void + + # Only scheduled and terminal statuses appear here. More detailed information in PendingActivityInfo but not + # available in the list response. + attr_reader status(): ::Temporalio::Api::Enums::V1::ActivityExecutionStatus::names | ::Integer + attr_writer status(): ::Temporalio::Api::Enums::V1::ActivityExecutionStatus::names | ::Temporalio::Api::Enums::V1::ActivityExecutionStatus::strings | ::Integer | ::Float + attr_reader status_const(): ::Integer + def clear_status: () -> void + + # Search attributes from the start request. + attr_accessor search_attributes(): ::Temporalio::Api::Common::V1::SearchAttributes? + def has_search_attributes?: () -> bool + def clear_search_attributes: () -> void + + # The task queue this activity was scheduled on when it was originally started, updated on activity options update. + attr_reader task_queue(): ::String + attr_writer task_queue(): ::String | ::Symbol + def clear_task_queue: () -> void + + # Updated on terminal status. + attr_reader state_transition_count(): ::Integer + attr_writer state_transition_count(): ::Integer | ::Float + def clear_state_transition_count: () -> void + + # Updated once on scheduled and once on terminal status. + attr_reader state_size_bytes(): ::Integer + attr_writer state_size_bytes(): ::Integer | ::Float + def clear_state_size_bytes: () -> void + + # The difference between close time and scheduled time. + # This field is only populated if the activity is closed. + attr_reader execution_duration(): ::Google::Protobuf::Duration? + attr_writer execution_duration(): (::Google::Protobuf::Duration | ::int)? + def has_execution_duration?: () -> bool + def clear_execution_duration: () -> void + + type init_map = { + activity_id: (::String | ::Symbol)?, + "activity_id" => (::String | ::Symbol)?, + run_id: (::String | ::Symbol)?, + "run_id" => (::String | ::Symbol)?, + activity_type: (::Temporalio::Api::Common::V1::ActivityType | ::Temporalio::Api::Common::V1::ActivityType::init_map)?, + "activity_type" => (::Temporalio::Api::Common::V1::ActivityType | ::Temporalio::Api::Common::V1::ActivityType::init_map)?, + schedule_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "schedule_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + close_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "close_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + status: (::Temporalio::Api::Enums::V1::ActivityExecutionStatus::names | ::Temporalio::Api::Enums::V1::ActivityExecutionStatus::strings | ::Integer | ::Float)?, + "status" => (::Temporalio::Api::Enums::V1::ActivityExecutionStatus::names | ::Temporalio::Api::Enums::V1::ActivityExecutionStatus::strings | ::Integer | ::Float)?, + search_attributes: (::Temporalio::Api::Common::V1::SearchAttributes | ::Temporalio::Api::Common::V1::SearchAttributes::init_map)?, + "search_attributes" => (::Temporalio::Api::Common::V1::SearchAttributes | ::Temporalio::Api::Common::V1::SearchAttributes::init_map)?, + task_queue: (::String | ::Symbol)?, + "task_queue" => (::String | ::Symbol)?, + state_transition_count: (::Integer | ::Float)?, + "state_transition_count" => (::Integer | ::Float)?, + state_size_bytes: (::Integer | ::Float)?, + "state_size_bytes" => (::Integer | ::Float)?, + execution_duration: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "execution_duration" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("activity_id" name) -> ::String + | ("run_id" name) -> ::String + | ("activity_type" name) -> ::Temporalio::Api::Common::V1::ActivityType? + | ("schedule_time" name) -> ::Google::Protobuf::Timestamp? + | ("close_time" name) -> ::Google::Protobuf::Timestamp? + | ("status" name) -> (::Temporalio::Api::Enums::V1::ActivityExecutionStatus::names | ::Integer) + | ("search_attributes" name) -> ::Temporalio::Api::Common::V1::SearchAttributes? + | ("task_queue" name) -> ::String + | ("state_transition_count" name) -> ::Integer + | ("state_size_bytes" name) -> ::Integer + | ("execution_duration" name) -> ::Google::Protobuf::Duration? + + def []=: + ("activity_id" name, (::String | ::Symbol) value) -> void + | ("run_id" name, (::String | ::Symbol) value) -> void + | ("activity_type" name, ::Temporalio::Api::Common::V1::ActivityType? value) -> void + | ("schedule_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("close_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("status" name, (::Temporalio::Api::Enums::V1::ActivityExecutionStatus::names | ::Temporalio::Api::Enums::V1::ActivityExecutionStatus::strings | ::Integer | ::Float) value) -> void + | ("search_attributes" name, ::Temporalio::Api::Common::V1::SearchAttributes? value) -> void + | ("task_queue" name, (::String | ::Symbol) value) -> void + | ("state_transition_count" name, (::Integer | ::Float) value) -> void + | ("state_size_bytes" name, (::Integer | ::Float) value) -> void + | ("execution_duration" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/api/batch/v1/message.rbs b/temporalio/sig/temporalio/api/batch/v1/message.rbs new file mode 100644 index 00000000..ca54d010 --- /dev/null +++ b/temporalio/sig/temporalio/api/batch/v1/message.rbs @@ -0,0 +1,594 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/api/batch/v1/message.proto + +module Temporalio + module Api + module Batch + module V1 + class BatchOperationInfo < ::Google::Protobuf::AbstractMessage + + # Batch job ID + attr_reader job_id(): ::String + attr_writer job_id(): ::String | ::Symbol + def clear_job_id: () -> void + + # Batch operation state + attr_reader state(): ::Temporalio::Api::Enums::V1::BatchOperationState::names | ::Integer + attr_writer state(): ::Temporalio::Api::Enums::V1::BatchOperationState::names | ::Temporalio::Api::Enums::V1::BatchOperationState::strings | ::Integer | ::Float + attr_reader state_const(): ::Integer + def clear_state: () -> void + + # Batch operation start time + attr_reader start_time(): ::Google::Protobuf::Timestamp? + attr_writer start_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_start_time?: () -> bool + def clear_start_time: () -> void + + # Batch operation close time + attr_reader close_time(): ::Google::Protobuf::Timestamp? + attr_writer close_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_close_time?: () -> bool + def clear_close_time: () -> void + + type init_map = { + job_id: (::String | ::Symbol)?, + "job_id" => (::String | ::Symbol)?, + state: (::Temporalio::Api::Enums::V1::BatchOperationState::names | ::Temporalio::Api::Enums::V1::BatchOperationState::strings | ::Integer | ::Float)?, + "state" => (::Temporalio::Api::Enums::V1::BatchOperationState::names | ::Temporalio::Api::Enums::V1::BatchOperationState::strings | ::Integer | ::Float)?, + start_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "start_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + close_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "close_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("job_id" name) -> ::String + | ("state" name) -> (::Temporalio::Api::Enums::V1::BatchOperationState::names | ::Integer) + | ("start_time" name) -> ::Google::Protobuf::Timestamp? + | ("close_time" name) -> ::Google::Protobuf::Timestamp? + + def []=: + ("job_id" name, (::String | ::Symbol) value) -> void + | ("state" name, (::Temporalio::Api::Enums::V1::BatchOperationState::names | ::Temporalio::Api::Enums::V1::BatchOperationState::strings | ::Integer | ::Float) value) -> void + | ("start_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("close_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + end + + # 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. + class BatchOperationTermination < ::Google::Protobuf::AbstractMessage + + # Serialized value(s) to provide to the termination event + attr_accessor details(): ::Temporalio::Api::Common::V1::Payloads? + def has_details?: () -> bool + def clear_details: () -> void + + # The identity of the worker/client + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + type init_map = { + details: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + "details" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("details" name) -> ::Temporalio::Api::Common::V1::Payloads? + | ("identity" name) -> ::String + + def []=: + ("details" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + end + + # BatchOperationSignal sends signals to batch workflows. + # Keep the parameter in sync with temporal.api.workflowservice.v1.SignalWorkflowExecutionRequest. + class BatchOperationSignal < ::Google::Protobuf::AbstractMessage + + # The workflow author-defined name of the signal to send to the workflow + attr_reader signal(): ::String + attr_writer signal(): ::String | ::Symbol + def clear_signal: () -> void + + # Serialized value(s) to provide with the signal + attr_accessor input(): ::Temporalio::Api::Common::V1::Payloads? + def has_input?: () -> bool + def clear_input: () -> void + + # Headers that are passed with the signal to the processing workflow. + # These can include things like auth or tracing tokens. + attr_accessor header(): ::Temporalio::Api::Common::V1::Header? + def has_header?: () -> bool + def clear_header: () -> void + + # The identity of the worker/client + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + type init_map = { + signal: (::String | ::Symbol)?, + "signal" => (::String | ::Symbol)?, + input: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + "input" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + header: (::Temporalio::Api::Common::V1::Header | ::Temporalio::Api::Common::V1::Header::init_map)?, + "header" => (::Temporalio::Api::Common::V1::Header | ::Temporalio::Api::Common::V1::Header::init_map)?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("signal" name) -> ::String + | ("input" name) -> ::Temporalio::Api::Common::V1::Payloads? + | ("header" name) -> ::Temporalio::Api::Common::V1::Header? + | ("identity" name) -> ::String + + def []=: + ("signal" name, (::String | ::Symbol) value) -> void + | ("input" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void + | ("header" name, ::Temporalio::Api::Common::V1::Header? value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + end + + # 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. + class BatchOperationCancellation < ::Google::Protobuf::AbstractMessage + + # The identity of the worker/client + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + type init_map = { + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("identity" name) -> ::String + + def []=: + ("identity" name, (::String | ::Symbol) value) -> void + end + + # BatchOperationDeletion sends deletion requests to batch workflows. + # Keep the parameter in sync with temporal.api.workflowservice.v1.DeleteWorkflowExecutionRequest. + class BatchOperationDeletion < ::Google::Protobuf::AbstractMessage + + # The identity of the worker/client + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + type init_map = { + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("identity" name) -> ::String + + def []=: + ("identity" name, (::String | ::Symbol) value) -> void + end + + # BatchOperationReset sends reset requests to batch workflows. + # Keep the parameter in sync with temporal.api.workflowservice.v1.ResetWorkflowExecutionRequest. + class BatchOperationReset < ::Google::Protobuf::AbstractMessage + + # The identity of the worker/client. + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + # Describes what to reset to and how. If set, `reset_type` and `reset_reapply_type` are ignored. + attr_accessor options(): ::Temporalio::Api::Common::V1::ResetOptions? + def has_options?: () -> bool + def clear_options: () -> void + + # Deprecated. Use `options`. + # @deprecated + attr_reader reset_type(): ::Temporalio::Api::Enums::V1::ResetType::names | ::Integer + attr_writer reset_type(): ::Temporalio::Api::Enums::V1::ResetType::names | ::Temporalio::Api::Enums::V1::ResetType::strings | ::Integer | ::Float + attr_reader reset_type_const(): ::Integer + def clear_reset_type: () -> void + + # Deprecated. Use `options`. + # @deprecated + attr_reader reset_reapply_type(): ::Temporalio::Api::Enums::V1::ResetReapplyType::names | ::Integer + attr_writer reset_reapply_type(): ::Temporalio::Api::Enums::V1::ResetReapplyType::names | ::Temporalio::Api::Enums::V1::ResetReapplyType::strings | ::Integer | ::Float + attr_reader reset_reapply_type_const(): ::Integer + def clear_reset_reapply_type: () -> void + + # 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 + attr_accessor post_reset_operations(): ::Google::Protobuf::RepeatedField + def clear_post_reset_operations: () -> void + + type init_map = { + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + options: (::Temporalio::Api::Common::V1::ResetOptions | ::Temporalio::Api::Common::V1::ResetOptions::init_map)?, + "options" => (::Temporalio::Api::Common::V1::ResetOptions | ::Temporalio::Api::Common::V1::ResetOptions::init_map)?, + reset_type: (::Temporalio::Api::Enums::V1::ResetType::names | ::Temporalio::Api::Enums::V1::ResetType::strings | ::Integer | ::Float)?, + "reset_type" => (::Temporalio::Api::Enums::V1::ResetType::names | ::Temporalio::Api::Enums::V1::ResetType::strings | ::Integer | ::Float)?, + reset_reapply_type: (::Temporalio::Api::Enums::V1::ResetReapplyType::names | ::Temporalio::Api::Enums::V1::ResetReapplyType::strings | ::Integer | ::Float)?, + "reset_reapply_type" => (::Temporalio::Api::Enums::V1::ResetReapplyType::names | ::Temporalio::Api::Enums::V1::ResetReapplyType::strings | ::Integer | ::Float)?, + post_reset_operations: ::Array[::Temporalio::Api::Workflow::V1::PostResetOperation]?, + "post_reset_operations" => ::Array[::Temporalio::Api::Workflow::V1::PostResetOperation]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("identity" name) -> ::String + | ("options" name) -> ::Temporalio::Api::Common::V1::ResetOptions? + | ("reset_type" name) -> (::Temporalio::Api::Enums::V1::ResetType::names | ::Integer) + | ("reset_reapply_type" name) -> (::Temporalio::Api::Enums::V1::ResetReapplyType::names | ::Integer) + | ("post_reset_operations" name) -> ::Google::Protobuf::RepeatedField + + def []=: + ("identity" name, (::String | ::Symbol) value) -> void + | ("options" name, ::Temporalio::Api::Common::V1::ResetOptions? value) -> void + | ("reset_type" name, (::Temporalio::Api::Enums::V1::ResetType::names | ::Temporalio::Api::Enums::V1::ResetType::strings | ::Integer | ::Float) value) -> void + | ("reset_reapply_type" name, (::Temporalio::Api::Enums::V1::ResetReapplyType::names | ::Temporalio::Api::Enums::V1::ResetReapplyType::strings | ::Integer | ::Float) value) -> void + | ("post_reset_operations" name, ::Google::Protobuf::RepeatedField value) -> void + end + + # BatchOperationUpdateWorkflowExecutionOptions sends UpdateWorkflowExecutionOptions requests to batch workflows. + # Keep the parameters in sync with temporal.api.workflowservice.v1.UpdateWorkflowExecutionOptionsRequest. + class BatchOperationUpdateWorkflowExecutionOptions < ::Google::Protobuf::AbstractMessage + + # The identity of the worker/client. + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + # Update Workflow options that were originally specified via StartWorkflowExecution. Partial updates are accepted and controlled by update_mask. + attr_accessor workflow_execution_options(): ::Temporalio::Api::Workflow::V1::WorkflowExecutionOptions? + def has_workflow_execution_options?: () -> bool + def clear_workflow_execution_options: () -> void + + # 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. + attr_accessor update_mask(): ::Google::Protobuf::FieldMask? + def has_update_mask?: () -> bool + def clear_update_mask: () -> void + + type init_map = { + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + workflow_execution_options: (::Temporalio::Api::Workflow::V1::WorkflowExecutionOptions | ::Temporalio::Api::Workflow::V1::WorkflowExecutionOptions::init_map)?, + "workflow_execution_options" => (::Temporalio::Api::Workflow::V1::WorkflowExecutionOptions | ::Temporalio::Api::Workflow::V1::WorkflowExecutionOptions::init_map)?, + update_mask: (::Google::Protobuf::FieldMask | ::Google::Protobuf::FieldMask)?, + "update_mask" => (::Google::Protobuf::FieldMask | ::Google::Protobuf::FieldMask)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("identity" name) -> ::String + | ("workflow_execution_options" name) -> ::Temporalio::Api::Workflow::V1::WorkflowExecutionOptions? + | ("update_mask" name) -> ::Google::Protobuf::FieldMask? + + def []=: + ("identity" name, (::String | ::Symbol) value) -> void + | ("workflow_execution_options" name, ::Temporalio::Api::Workflow::V1::WorkflowExecutionOptions? value) -> void + | ("update_mask" name, ::Google::Protobuf::FieldMask? value) -> void + end + + # BatchOperationUnpauseActivities sends unpause requests to batch workflows. + class BatchOperationUnpauseActivities < ::Google::Protobuf::AbstractMessage + + # The identity of the worker/client. + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + attr_reader type(): ::String + attr_writer type(): (::String | ::Symbol)? + def has_type?: () -> bool + def clear_type: () -> void + + attr_reader match_all(): bool + attr_writer match_all(): bool? + def has_match_all?: () -> bool + def clear_match_all: () -> void + + # Setting this flag will also reset the number of attempts. + attr_accessor reset_attempts(): bool + def clear_reset_attempts: () -> void + + # Setting this flag will also reset the heartbeat details. + attr_accessor reset_heartbeat(): bool + def clear_reset_heartbeat: () -> void + + # If set, the activity will start at a random time within the specified jitter + # duration, introducing variability to the start time. + attr_reader jitter(): ::Google::Protobuf::Duration? + attr_writer jitter(): (::Google::Protobuf::Duration | ::int)? + def has_jitter?: () -> bool + def clear_jitter: () -> void + + # The activity to unpause. If match_all is set to true, all activities will be unpaused. + attr_reader activity(): (::String | bool)? + def has_activity?: () -> bool + def clear_activity: () -> void + + type init_map = { + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + type: (::String | ::Symbol)?, + "type" => (::String | ::Symbol)?, + match_all: bool?, + "match_all" => bool?, + reset_attempts: bool?, + "reset_attempts" => bool?, + reset_heartbeat: bool?, + "reset_heartbeat" => bool?, + jitter: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "jitter" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("identity" name) -> ::String + | ("type" name) -> ::String + | ("match_all" name) -> bool + | ("reset_attempts" name) -> bool + | ("reset_heartbeat" name) -> bool + | ("jitter" name) -> ::Google::Protobuf::Duration? + + def []=: + ("identity" name, (::String | ::Symbol) value) -> void + | ("type" name, ((::String | ::Symbol)?) value) -> void + | ("match_all" name, bool? value) -> void + | ("reset_attempts" name, bool value) -> void + | ("reset_heartbeat" name, bool value) -> void + | ("jitter" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + end + + # BatchOperationTriggerWorkflowRule sends TriggerWorkflowRule requests to batch workflows. + class BatchOperationTriggerWorkflowRule < ::Google::Protobuf::AbstractMessage + + # The identity of the worker/client. + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + # ID of existing rule. + attr_reader id(): ::String + attr_writer id(): (::String | ::Symbol)? + def has_id?: () -> bool + def clear_id: () -> void + + # Rule specification to be applied to the workflow without creating a new rule. + attr_accessor spec(): ::Temporalio::Api::Rules::V1::WorkflowRuleSpec? + def has_spec?: () -> bool + def clear_spec: () -> void + + attr_reader rule(): (::String | ::Temporalio::Api::Rules::V1::WorkflowRuleSpec)? + def has_rule?: () -> bool + def clear_rule: () -> void + + type init_map = { + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + id: (::String | ::Symbol)?, + "id" => (::String | ::Symbol)?, + spec: (::Temporalio::Api::Rules::V1::WorkflowRuleSpec | ::Temporalio::Api::Rules::V1::WorkflowRuleSpec::init_map)?, + "spec" => (::Temporalio::Api::Rules::V1::WorkflowRuleSpec | ::Temporalio::Api::Rules::V1::WorkflowRuleSpec::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("identity" name) -> ::String + | ("id" name) -> ::String + | ("spec" name) -> ::Temporalio::Api::Rules::V1::WorkflowRuleSpec? + + def []=: + ("identity" name, (::String | ::Symbol) value) -> void + | ("id" name, ((::String | ::Symbol)?) value) -> void + | ("spec" name, ::Temporalio::Api::Rules::V1::WorkflowRuleSpec? value) -> void + end + + # BatchOperationResetActivities sends activity reset requests in a batch. + # NOTE: keep in sync with temporal.api.workflowservice.v1.ResetActivityRequest + class BatchOperationResetActivities < ::Google::Protobuf::AbstractMessage + + # The identity of the worker/client. + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + attr_reader type(): ::String + attr_writer type(): (::String | ::Symbol)? + def has_type?: () -> bool + def clear_type: () -> void + + attr_reader match_all(): bool + attr_writer match_all(): bool? + def has_match_all?: () -> bool + def clear_match_all: () -> void + + # Setting this flag will also reset the number of attempts. + attr_accessor reset_attempts(): bool + def clear_reset_attempts: () -> void + + # Setting this flag will also reset the heartbeat details. + attr_accessor reset_heartbeat(): bool + def clear_reset_heartbeat: () -> void + + # If activity is paused, it will remain paused after reset + attr_accessor keep_paused(): bool + def clear_keep_paused: () -> void + + # If set, the activity will start at a random time within the specified jitter + # duration, introducing variability to the start time. + attr_reader jitter(): ::Google::Protobuf::Duration? + attr_writer jitter(): (::Google::Protobuf::Duration | ::int)? + def has_jitter?: () -> bool + def clear_jitter: () -> void + + # 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. + attr_accessor restore_original_options(): bool + def clear_restore_original_options: () -> void + + # The activities to reset. If match_all is set to true, all activities will be reset. + attr_reader activity(): (::String | bool)? + def has_activity?: () -> bool + def clear_activity: () -> void + + type init_map = { + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + type: (::String | ::Symbol)?, + "type" => (::String | ::Symbol)?, + match_all: bool?, + "match_all" => bool?, + reset_attempts: bool?, + "reset_attempts" => bool?, + reset_heartbeat: bool?, + "reset_heartbeat" => bool?, + keep_paused: bool?, + "keep_paused" => bool?, + jitter: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "jitter" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + restore_original_options: bool?, + "restore_original_options" => bool?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("identity" name) -> ::String + | ("type" name) -> ::String + | ("match_all" name) -> bool + | ("reset_attempts" name) -> bool + | ("reset_heartbeat" name) -> bool + | ("keep_paused" name) -> bool + | ("jitter" name) -> ::Google::Protobuf::Duration? + | ("restore_original_options" name) -> bool + + def []=: + ("identity" name, (::String | ::Symbol) value) -> void + | ("type" name, ((::String | ::Symbol)?) value) -> void + | ("match_all" name, bool? value) -> void + | ("reset_attempts" name, bool value) -> void + | ("reset_heartbeat" name, bool value) -> void + | ("keep_paused" name, bool value) -> void + | ("jitter" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("restore_original_options" name, bool value) -> void + end + + # BatchOperationUpdateActivityOptions sends an update-activity-options requests in a batch. + # NOTE: keep in sync with temporal.api.workflowservice.v1.UpdateActivityRequest + class BatchOperationUpdateActivityOptions < ::Google::Protobuf::AbstractMessage + + # The identity of the worker/client. + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + attr_reader type(): ::String + attr_writer type(): (::String | ::Symbol)? + def has_type?: () -> bool + def clear_type: () -> void + + attr_reader match_all(): bool + attr_writer match_all(): bool? + def has_match_all?: () -> bool + def clear_match_all: () -> void + + # Update Activity options. Partial updates are accepted and controlled by update_mask. + attr_accessor activity_options(): ::Temporalio::Api::Activity::V1::ActivityOptions? + def has_activity_options?: () -> bool + def clear_activity_options: () -> void + + # Controls which fields from `activity_options` will be applied + attr_accessor update_mask(): ::Google::Protobuf::FieldMask? + def has_update_mask?: () -> bool + def clear_update_mask: () -> void + + # 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. + attr_accessor restore_original(): bool + def clear_restore_original: () -> void + + # The activity to update. If match_all is set to true, all activities will be updated. + attr_reader activity(): (::String | bool)? + def has_activity?: () -> bool + def clear_activity: () -> void + + type init_map = { + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + type: (::String | ::Symbol)?, + "type" => (::String | ::Symbol)?, + match_all: bool?, + "match_all" => bool?, + activity_options: (::Temporalio::Api::Activity::V1::ActivityOptions | ::Temporalio::Api::Activity::V1::ActivityOptions::init_map)?, + "activity_options" => (::Temporalio::Api::Activity::V1::ActivityOptions | ::Temporalio::Api::Activity::V1::ActivityOptions::init_map)?, + update_mask: (::Google::Protobuf::FieldMask | ::Google::Protobuf::FieldMask)?, + "update_mask" => (::Google::Protobuf::FieldMask | ::Google::Protobuf::FieldMask)?, + restore_original: bool?, + "restore_original" => bool?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("identity" name) -> ::String + | ("type" name) -> ::String + | ("match_all" name) -> bool + | ("activity_options" name) -> ::Temporalio::Api::Activity::V1::ActivityOptions? + | ("update_mask" name) -> ::Google::Protobuf::FieldMask? + | ("restore_original" name) -> bool + + def []=: + ("identity" name, (::String | ::Symbol) value) -> void + | ("type" name, ((::String | ::Symbol)?) value) -> void + | ("match_all" name, bool? value) -> void + | ("activity_options" name, ::Temporalio::Api::Activity::V1::ActivityOptions? value) -> void + | ("update_mask" name, ::Google::Protobuf::FieldMask? value) -> void + | ("restore_original" name, bool value) -> void + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/api/cloud/account/v1/message.rbs b/temporalio/sig/temporalio/api/cloud/account/v1/message.rbs new file mode 100644 index 00000000..2cb93264 --- /dev/null +++ b/temporalio/sig/temporalio/api/cloud/account/v1/message.rbs @@ -0,0 +1,209 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/api/cloud/account/v1/message.proto + +module Temporalio + module Api + module Cloud + module Account + module V1 + class MetricsSpec < ::Google::Protobuf::AbstractMessage + + # The ca cert(s) in PEM format that clients connecting to the metrics endpoint can use for authentication. + # This must only be one value, but the CA can have a chain. + attr_accessor accepted_client_ca(): ::String + def clear_accepted_client_ca: () -> void + + type init_map = { + accepted_client_ca: ::String?, + "accepted_client_ca" => ::String?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("accepted_client_ca" name) -> ::String + + def []=: + ("accepted_client_ca" name, ::String value) -> void + end + + class AccountSpec < ::Google::Protobuf::AbstractMessage + + # The metrics specification for this account. + # If not specified, metrics will not be enabled. + attr_accessor metrics(): ::Temporalio::Api::Cloud::Account::V1::MetricsSpec? + def has_metrics?: () -> bool + def clear_metrics: () -> void + + type init_map = { + metrics: (::Temporalio::Api::Cloud::Account::V1::MetricsSpec | ::Temporalio::Api::Cloud::Account::V1::MetricsSpec::init_map)?, + "metrics" => (::Temporalio::Api::Cloud::Account::V1::MetricsSpec | ::Temporalio::Api::Cloud::Account::V1::MetricsSpec::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("metrics" name) -> ::Temporalio::Api::Cloud::Account::V1::MetricsSpec? + + def []=: + ("metrics" name, ::Temporalio::Api::Cloud::Account::V1::MetricsSpec? value) -> void + end + + class Metrics < ::Google::Protobuf::AbstractMessage + + # The prometheus metrics endpoint uri. + # This is only populated when the metrics is enabled in the metrics specification. + attr_reader uri(): ::String + attr_writer uri(): ::String | ::Symbol + def clear_uri: () -> void + + type init_map = { + uri: (::String | ::Symbol)?, + "uri" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("uri" name) -> ::String + + def []=: + ("uri" name, (::String | ::Symbol) value) -> void + end + + class Account < ::Google::Protobuf::AbstractMessage + + # The id of the account. + attr_reader id(): ::String + attr_writer id(): ::String | ::Symbol + def clear_id: () -> void + + # The account specification. + attr_accessor spec(): ::Temporalio::Api::Cloud::Account::V1::AccountSpec? + def has_spec?: () -> bool + def clear_spec: () -> void + + # The current version of the account specification. + # The next update operation will have to include this version. + attr_reader resource_version(): ::String + attr_writer resource_version(): ::String | ::Symbol + def clear_resource_version: () -> void + + # The current state of the account. + attr_reader state(): ::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Integer + attr_writer state(): ::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Temporalio::Api::Cloud::Resource::V1::ResourceState::strings | ::Integer | ::Float + attr_reader state_const(): ::Integer + def clear_state: () -> void + + # The id of the async operation that is updating the account, if any. + attr_reader async_operation_id(): ::String + attr_writer async_operation_id(): ::String | ::Symbol + def clear_async_operation_id: () -> void + + # Information related to metrics. + attr_accessor metrics(): ::Temporalio::Api::Cloud::Account::V1::Metrics? + def has_metrics?: () -> bool + def clear_metrics: () -> void + + type init_map = { + id: (::String | ::Symbol)?, + "id" => (::String | ::Symbol)?, + spec: (::Temporalio::Api::Cloud::Account::V1::AccountSpec | ::Temporalio::Api::Cloud::Account::V1::AccountSpec::init_map)?, + "spec" => (::Temporalio::Api::Cloud::Account::V1::AccountSpec | ::Temporalio::Api::Cloud::Account::V1::AccountSpec::init_map)?, + resource_version: (::String | ::Symbol)?, + "resource_version" => (::String | ::Symbol)?, + state: (::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Temporalio::Api::Cloud::Resource::V1::ResourceState::strings | ::Integer | ::Float)?, + "state" => (::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Temporalio::Api::Cloud::Resource::V1::ResourceState::strings | ::Integer | ::Float)?, + async_operation_id: (::String | ::Symbol)?, + "async_operation_id" => (::String | ::Symbol)?, + metrics: (::Temporalio::Api::Cloud::Account::V1::Metrics | ::Temporalio::Api::Cloud::Account::V1::Metrics::init_map)?, + "metrics" => (::Temporalio::Api::Cloud::Account::V1::Metrics | ::Temporalio::Api::Cloud::Account::V1::Metrics::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("id" name) -> ::String + | ("spec" name) -> ::Temporalio::Api::Cloud::Account::V1::AccountSpec? + | ("resource_version" name) -> ::String + | ("state" name) -> (::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Integer) + | ("async_operation_id" name) -> ::String + | ("metrics" name) -> ::Temporalio::Api::Cloud::Account::V1::Metrics? + + def []=: + ("id" name, (::String | ::Symbol) value) -> void + | ("spec" name, ::Temporalio::Api::Cloud::Account::V1::AccountSpec? value) -> void + | ("resource_version" name, (::String | ::Symbol) value) -> void + | ("state" name, (::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Temporalio::Api::Cloud::Resource::V1::ResourceState::strings | ::Integer | ::Float) value) -> void + | ("async_operation_id" name, (::String | ::Symbol) value) -> void + | ("metrics" name, ::Temporalio::Api::Cloud::Account::V1::Metrics? value) -> void + end + + # AuditLogSinkSpec is only used by Audit Log + class AuditLogSinkSpec < ::Google::Protobuf::AbstractMessage + + # Name of the sink e.g. "audit_log_01" + attr_reader name(): ::String + attr_writer name(): ::String | ::Symbol + def clear_name: () -> void + + # The KinesisSpec when destination_type is Kinesis + attr_accessor kinesis_sink(): ::Temporalio::Api::Cloud::Sink::V1::KinesisSpec? + def has_kinesis_sink?: () -> bool + def clear_kinesis_sink: () -> void + + # The PubSubSpec when destination_type is PubSub + attr_accessor pub_sub_sink(): ::Temporalio::Api::Cloud::Sink::V1::PubSubSpec? + def has_pub_sub_sink?: () -> bool + def clear_pub_sub_sink: () -> void + + # Enabled indicates whether the sink is enabled or not. + attr_accessor enabled(): bool + def clear_enabled: () -> void + + attr_reader sink_type(): (::Temporalio::Api::Cloud::Sink::V1::KinesisSpec | ::Temporalio::Api::Cloud::Sink::V1::PubSubSpec)? + def has_sink_type?: () -> bool + def clear_sink_type: () -> void + + type init_map = { + name: (::String | ::Symbol)?, + "name" => (::String | ::Symbol)?, + kinesis_sink: (::Temporalio::Api::Cloud::Sink::V1::KinesisSpec | ::Temporalio::Api::Cloud::Sink::V1::KinesisSpec::init_map)?, + "kinesis_sink" => (::Temporalio::Api::Cloud::Sink::V1::KinesisSpec | ::Temporalio::Api::Cloud::Sink::V1::KinesisSpec::init_map)?, + pub_sub_sink: (::Temporalio::Api::Cloud::Sink::V1::PubSubSpec | ::Temporalio::Api::Cloud::Sink::V1::PubSubSpec::init_map)?, + "pub_sub_sink" => (::Temporalio::Api::Cloud::Sink::V1::PubSubSpec | ::Temporalio::Api::Cloud::Sink::V1::PubSubSpec::init_map)?, + enabled: bool?, + "enabled" => bool?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("name" name) -> ::String + | ("kinesis_sink" name) -> ::Temporalio::Api::Cloud::Sink::V1::KinesisSpec? + | ("pub_sub_sink" name) -> ::Temporalio::Api::Cloud::Sink::V1::PubSubSpec? + | ("enabled" name) -> bool + + def []=: + ("name" name, (::String | ::Symbol) value) -> void + | ("kinesis_sink" name, ::Temporalio::Api::Cloud::Sink::V1::KinesisSpec? value) -> void + | ("pub_sub_sink" name, ::Temporalio::Api::Cloud::Sink::V1::PubSubSpec? value) -> void + | ("enabled" name, bool value) -> void + end + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/api/cloud/cloudservice/v1/request_response.rbs b/temporalio/sig/temporalio/api/cloud/cloudservice/v1/request_response.rbs new file mode 100644 index 00000000..caf1b3d9 --- /dev/null +++ b/temporalio/sig/temporalio/api/cloud/cloudservice/v1/request_response.rbs @@ -0,0 +1,3670 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/api/cloud/cloudservice/v1/request_response.proto + +module Temporalio + module Api + module Cloud + module CloudService + module V1 + class GetUsersRequest < ::Google::Protobuf::AbstractMessage + + # The requested size of the page to retrieve - optional. + # Cannot exceed 1000. Defaults to 100. + attr_reader page_size(): ::Integer + attr_writer page_size(): ::Integer | ::Float + def clear_page_size: () -> void + + # The page token if this is continuing from another response - optional. + attr_reader page_token(): ::String + attr_writer page_token(): ::String | ::Symbol + def clear_page_token: () -> void + + # Filter users by email address - optional. + attr_reader email(): ::String + attr_writer email(): ::String | ::Symbol + def clear_email: () -> void + + # Filter users by the namespace they have access to - optional. + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + type init_map = { + page_size: (::Integer | ::Float)?, + "page_size" => (::Integer | ::Float)?, + page_token: (::String | ::Symbol)?, + "page_token" => (::String | ::Symbol)?, + email: (::String | ::Symbol)?, + "email" => (::String | ::Symbol)?, + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("page_size" name) -> ::Integer + | ("page_token" name) -> ::String + | ("email" name) -> ::String + | ("namespace" name) -> ::String + + def []=: + ("page_size" name, (::Integer | ::Float) value) -> void + | ("page_token" name, (::String | ::Symbol) value) -> void + | ("email" name, (::String | ::Symbol) value) -> void + | ("namespace" name, (::String | ::Symbol) value) -> void + end + + class GetUsersResponse < ::Google::Protobuf::AbstractMessage + + # The list of users in ascending ids order + attr_accessor users(): ::Google::Protobuf::RepeatedField + def clear_users: () -> void + + # The next page's token + attr_reader next_page_token(): ::String + attr_writer next_page_token(): ::String | ::Symbol + def clear_next_page_token: () -> void + + type init_map = { + users: ::Array[::Temporalio::Api::Cloud::Identity::V1::User]?, + "users" => ::Array[::Temporalio::Api::Cloud::Identity::V1::User]?, + next_page_token: (::String | ::Symbol)?, + "next_page_token" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("users" name) -> ::Google::Protobuf::RepeatedField + | ("next_page_token" name) -> ::String + + def []=: + ("users" name, ::Google::Protobuf::RepeatedField value) -> void + | ("next_page_token" name, (::String | ::Symbol) value) -> void + end + + class GetUserRequest < ::Google::Protobuf::AbstractMessage + + # The id of the user to get + attr_reader user_id(): ::String + attr_writer user_id(): ::String | ::Symbol + def clear_user_id: () -> void + + type init_map = { + user_id: (::String | ::Symbol)?, + "user_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("user_id" name) -> ::String + + def []=: + ("user_id" name, (::String | ::Symbol) value) -> void + end + + class GetUserResponse < ::Google::Protobuf::AbstractMessage + + # The user + attr_accessor user(): ::Temporalio::Api::Cloud::Identity::V1::User? + def has_user?: () -> bool + def clear_user: () -> void + + type init_map = { + user: (::Temporalio::Api::Cloud::Identity::V1::User | ::Temporalio::Api::Cloud::Identity::V1::User::init_map)?, + "user" => (::Temporalio::Api::Cloud::Identity::V1::User | ::Temporalio::Api::Cloud::Identity::V1::User::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("user" name) -> ::Temporalio::Api::Cloud::Identity::V1::User? + + def []=: + ("user" name, ::Temporalio::Api::Cloud::Identity::V1::User? value) -> void + end + + class CreateUserRequest < ::Google::Protobuf::AbstractMessage + + # The spec for the user to invite + attr_accessor spec(): ::Temporalio::Api::Cloud::Identity::V1::UserSpec? + def has_spec?: () -> bool + def clear_spec: () -> void + + # The id to use for this async operation - optional + attr_reader async_operation_id(): ::String + attr_writer async_operation_id(): ::String | ::Symbol + def clear_async_operation_id: () -> void + + type init_map = { + spec: (::Temporalio::Api::Cloud::Identity::V1::UserSpec | ::Temporalio::Api::Cloud::Identity::V1::UserSpec::init_map)?, + "spec" => (::Temporalio::Api::Cloud::Identity::V1::UserSpec | ::Temporalio::Api::Cloud::Identity::V1::UserSpec::init_map)?, + async_operation_id: (::String | ::Symbol)?, + "async_operation_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("spec" name) -> ::Temporalio::Api::Cloud::Identity::V1::UserSpec? + | ("async_operation_id" name) -> ::String + + def []=: + ("spec" name, ::Temporalio::Api::Cloud::Identity::V1::UserSpec? value) -> void + | ("async_operation_id" name, (::String | ::Symbol) value) -> void + end + + class CreateUserResponse < ::Google::Protobuf::AbstractMessage + + # The id of the user that was invited + attr_reader user_id(): ::String + attr_writer user_id(): ::String | ::Symbol + def clear_user_id: () -> void + + # The async operation + attr_accessor async_operation(): ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + def has_async_operation?: () -> bool + def clear_async_operation: () -> void + + type init_map = { + user_id: (::String | ::Symbol)?, + "user_id" => (::String | ::Symbol)?, + async_operation: (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + "async_operation" => (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("user_id" name) -> ::String + | ("async_operation" name) -> ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + + def []=: + ("user_id" name, (::String | ::Symbol) value) -> void + | ("async_operation" name, ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? value) -> void + end + + class UpdateUserRequest < ::Google::Protobuf::AbstractMessage + + # The id of the user to update + attr_reader user_id(): ::String + attr_writer user_id(): ::String | ::Symbol + def clear_user_id: () -> void + + # The new user specification + attr_accessor spec(): ::Temporalio::Api::Cloud::Identity::V1::UserSpec? + def has_spec?: () -> bool + def clear_spec: () -> void + + # The version of the user for which this update is intended for + # The latest version can be found in the GetUser operation response + attr_reader resource_version(): ::String + attr_writer resource_version(): ::String | ::Symbol + def clear_resource_version: () -> void + + # The id to use for this async operation - optional + attr_reader async_operation_id(): ::String + attr_writer async_operation_id(): ::String | ::Symbol + def clear_async_operation_id: () -> void + + type init_map = { + user_id: (::String | ::Symbol)?, + "user_id" => (::String | ::Symbol)?, + spec: (::Temporalio::Api::Cloud::Identity::V1::UserSpec | ::Temporalio::Api::Cloud::Identity::V1::UserSpec::init_map)?, + "spec" => (::Temporalio::Api::Cloud::Identity::V1::UserSpec | ::Temporalio::Api::Cloud::Identity::V1::UserSpec::init_map)?, + resource_version: (::String | ::Symbol)?, + "resource_version" => (::String | ::Symbol)?, + async_operation_id: (::String | ::Symbol)?, + "async_operation_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("user_id" name) -> ::String + | ("spec" name) -> ::Temporalio::Api::Cloud::Identity::V1::UserSpec? + | ("resource_version" name) -> ::String + | ("async_operation_id" name) -> ::String + + def []=: + ("user_id" name, (::String | ::Symbol) value) -> void + | ("spec" name, ::Temporalio::Api::Cloud::Identity::V1::UserSpec? value) -> void + | ("resource_version" name, (::String | ::Symbol) value) -> void + | ("async_operation_id" name, (::String | ::Symbol) value) -> void + end + + class UpdateUserResponse < ::Google::Protobuf::AbstractMessage + + # The async operation + attr_accessor async_operation(): ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + def has_async_operation?: () -> bool + def clear_async_operation: () -> void + + type init_map = { + async_operation: (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + "async_operation" => (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("async_operation" name) -> ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + + def []=: + ("async_operation" name, ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? value) -> void + end + + class DeleteUserRequest < ::Google::Protobuf::AbstractMessage + + # The id of the user to delete + attr_reader user_id(): ::String + attr_writer user_id(): ::String | ::Symbol + def clear_user_id: () -> void + + # The version of the user for which this delete is intended for + # The latest version can be found in the GetUser operation response + attr_reader resource_version(): ::String + attr_writer resource_version(): ::String | ::Symbol + def clear_resource_version: () -> void + + # The id to use for this async operation - optional + attr_reader async_operation_id(): ::String + attr_writer async_operation_id(): ::String | ::Symbol + def clear_async_operation_id: () -> void + + type init_map = { + user_id: (::String | ::Symbol)?, + "user_id" => (::String | ::Symbol)?, + resource_version: (::String | ::Symbol)?, + "resource_version" => (::String | ::Symbol)?, + async_operation_id: (::String | ::Symbol)?, + "async_operation_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("user_id" name) -> ::String + | ("resource_version" name) -> ::String + | ("async_operation_id" name) -> ::String + + def []=: + ("user_id" name, (::String | ::Symbol) value) -> void + | ("resource_version" name, (::String | ::Symbol) value) -> void + | ("async_operation_id" name, (::String | ::Symbol) value) -> void + end + + class DeleteUserResponse < ::Google::Protobuf::AbstractMessage + + # The async operation + attr_accessor async_operation(): ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + def has_async_operation?: () -> bool + def clear_async_operation: () -> void + + type init_map = { + async_operation: (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + "async_operation" => (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("async_operation" name) -> ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + + def []=: + ("async_operation" name, ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? value) -> void + end + + class SetUserNamespaceAccessRequest < ::Google::Protobuf::AbstractMessage + + # The namespace to set permissions for + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # The id of the user to set permissions for + attr_reader user_id(): ::String + attr_writer user_id(): ::String | ::Symbol + def clear_user_id: () -> void + + # The namespace access to assign the user + attr_accessor access(): ::Temporalio::Api::Cloud::Identity::V1::NamespaceAccess? + def has_access?: () -> bool + def clear_access: () -> void + + # The version of the user for which this update is intended for + # The latest version can be found in the GetUser operation response + attr_reader resource_version(): ::String + attr_writer resource_version(): ::String | ::Symbol + def clear_resource_version: () -> void + + # The id to use for this async operation - optional + attr_reader async_operation_id(): ::String + attr_writer async_operation_id(): ::String | ::Symbol + def clear_async_operation_id: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + user_id: (::String | ::Symbol)?, + "user_id" => (::String | ::Symbol)?, + access: (::Temporalio::Api::Cloud::Identity::V1::NamespaceAccess | ::Temporalio::Api::Cloud::Identity::V1::NamespaceAccess::init_map)?, + "access" => (::Temporalio::Api::Cloud::Identity::V1::NamespaceAccess | ::Temporalio::Api::Cloud::Identity::V1::NamespaceAccess::init_map)?, + resource_version: (::String | ::Symbol)?, + "resource_version" => (::String | ::Symbol)?, + async_operation_id: (::String | ::Symbol)?, + "async_operation_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("user_id" name) -> ::String + | ("access" name) -> ::Temporalio::Api::Cloud::Identity::V1::NamespaceAccess? + | ("resource_version" name) -> ::String + | ("async_operation_id" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("user_id" name, (::String | ::Symbol) value) -> void + | ("access" name, ::Temporalio::Api::Cloud::Identity::V1::NamespaceAccess? value) -> void + | ("resource_version" name, (::String | ::Symbol) value) -> void + | ("async_operation_id" name, (::String | ::Symbol) value) -> void + end + + class SetUserNamespaceAccessResponse < ::Google::Protobuf::AbstractMessage + + # The async operation + attr_accessor async_operation(): ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + def has_async_operation?: () -> bool + def clear_async_operation: () -> void + + type init_map = { + async_operation: (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + "async_operation" => (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("async_operation" name) -> ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + + def []=: + ("async_operation" name, ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? value) -> void + end + + class GetAsyncOperationRequest < ::Google::Protobuf::AbstractMessage + + # The id of the async operation to get + attr_reader async_operation_id(): ::String + attr_writer async_operation_id(): ::String | ::Symbol + def clear_async_operation_id: () -> void + + type init_map = { + async_operation_id: (::String | ::Symbol)?, + "async_operation_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("async_operation_id" name) -> ::String + + def []=: + ("async_operation_id" name, (::String | ::Symbol) value) -> void + end + + class GetAsyncOperationResponse < ::Google::Protobuf::AbstractMessage + + # The async operation + attr_accessor async_operation(): ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + def has_async_operation?: () -> bool + def clear_async_operation: () -> void + + type init_map = { + async_operation: (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + "async_operation" => (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("async_operation" name) -> ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + + def []=: + ("async_operation" name, ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? value) -> void + end + + class CreateNamespaceRequest < ::Google::Protobuf::AbstractMessage + + # The namespace specification. + attr_accessor spec(): ::Temporalio::Api::Cloud::Namespace::V1::NamespaceSpec? + def has_spec?: () -> bool + def clear_spec: () -> void + + # The id to use for this async operation. + # Optional, if not provided a random id will be generated. + attr_reader async_operation_id(): ::String + attr_writer async_operation_id(): ::String | ::Symbol + def clear_async_operation_id: () -> void + + # The tags to add to the namespace. + # Note: This field can be set by global admins or account owners only. + attr_accessor tags(): ::Google::Protobuf::Map[::String, ::String] + def clear_tags: () -> void + + type init_map = { + spec: (::Temporalio::Api::Cloud::Namespace::V1::NamespaceSpec | ::Temporalio::Api::Cloud::Namespace::V1::NamespaceSpec::init_map)?, + "spec" => (::Temporalio::Api::Cloud::Namespace::V1::NamespaceSpec | ::Temporalio::Api::Cloud::Namespace::V1::NamespaceSpec::init_map)?, + async_operation_id: (::String | ::Symbol)?, + "async_operation_id" => (::String | ::Symbol)?, + tags: ::Hash[::String | ::Symbol, ::String | ::Symbol]?, + "tags" => ::Hash[::String | ::Symbol, ::String | ::Symbol]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("spec" name) -> ::Temporalio::Api::Cloud::Namespace::V1::NamespaceSpec? + | ("async_operation_id" name) -> ::String + | ("tags" name) -> (::Google::Protobuf::Map[::String, ::String]) + + def []=: + ("spec" name, ::Temporalio::Api::Cloud::Namespace::V1::NamespaceSpec? value) -> void + | ("async_operation_id" name, (::String | ::Symbol) value) -> void + | ("tags" name, (::Google::Protobuf::Map[::String, ::String]) value) -> void + end + + class CreateNamespaceResponse < ::Google::Protobuf::AbstractMessage + + # The namespace that was created. + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # The async operation. + attr_accessor async_operation(): ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + def has_async_operation?: () -> bool + def clear_async_operation: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + async_operation: (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + "async_operation" => (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("async_operation" name) -> ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("async_operation" name, ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? value) -> void + end + + class GetNamespacesRequest < ::Google::Protobuf::AbstractMessage + + # The requested size of the page to retrieve. + # Cannot exceed 1000. + # Optional, defaults to 100. + attr_reader page_size(): ::Integer + attr_writer page_size(): ::Integer | ::Float + def clear_page_size: () -> void + + # The page token if this is continuing from another response. + # Optional, defaults to empty. + attr_reader page_token(): ::String + attr_writer page_token(): ::String | ::Symbol + def clear_page_token: () -> void + + # Filter namespaces by their name. + # Optional, defaults to empty. + attr_reader name(): ::String + attr_writer name(): ::String | ::Symbol + def clear_name: () -> void + + type init_map = { + page_size: (::Integer | ::Float)?, + "page_size" => (::Integer | ::Float)?, + page_token: (::String | ::Symbol)?, + "page_token" => (::String | ::Symbol)?, + name: (::String | ::Symbol)?, + "name" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("page_size" name) -> ::Integer + | ("page_token" name) -> ::String + | ("name" name) -> ::String + + def []=: + ("page_size" name, (::Integer | ::Float) value) -> void + | ("page_token" name, (::String | ::Symbol) value) -> void + | ("name" name, (::String | ::Symbol) value) -> void + end + + class GetNamespacesResponse < ::Google::Protobuf::AbstractMessage + + # The list of namespaces in ascending name order. + attr_accessor namespaces(): ::Google::Protobuf::RepeatedField + def clear_namespaces: () -> void + + # The next page's token. + attr_reader next_page_token(): ::String + attr_writer next_page_token(): ::String | ::Symbol + def clear_next_page_token: () -> void + + type init_map = { + namespaces: ::Array[::Temporalio::Api::Cloud::Namespace::V1::Namespace]?, + "namespaces" => ::Array[::Temporalio::Api::Cloud::Namespace::V1::Namespace]?, + next_page_token: (::String | ::Symbol)?, + "next_page_token" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespaces" name) -> ::Google::Protobuf::RepeatedField + | ("next_page_token" name) -> ::String + + def []=: + ("namespaces" name, ::Google::Protobuf::RepeatedField value) -> void + | ("next_page_token" name, (::String | ::Symbol) value) -> void + end + + class GetNamespaceRequest < ::Google::Protobuf::AbstractMessage + + # The namespace to get. + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + end + + class GetNamespaceResponse < ::Google::Protobuf::AbstractMessage + + # The namespace. + attr_accessor namespace(): ::Temporalio::Api::Cloud::Namespace::V1::Namespace? + def has_namespace?: () -> bool + def clear_namespace: () -> void + + type init_map = { + namespace: (::Temporalio::Api::Cloud::Namespace::V1::Namespace | ::Temporalio::Api::Cloud::Namespace::V1::Namespace::init_map)?, + "namespace" => (::Temporalio::Api::Cloud::Namespace::V1::Namespace | ::Temporalio::Api::Cloud::Namespace::V1::Namespace::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::Temporalio::Api::Cloud::Namespace::V1::Namespace? + + def []=: + ("namespace" name, ::Temporalio::Api::Cloud::Namespace::V1::Namespace? value) -> void + end + + class UpdateNamespaceRequest < ::Google::Protobuf::AbstractMessage + + # The namespace to update. + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # The new namespace specification. + attr_accessor spec(): ::Temporalio::Api::Cloud::Namespace::V1::NamespaceSpec? + def has_spec?: () -> bool + def clear_spec: () -> void + + # The version of the namespace for which this update is intended for. + # The latest version can be found in the namespace status. + attr_reader resource_version(): ::String + attr_writer resource_version(): ::String | ::Symbol + def clear_resource_version: () -> void + + # The id to use for this async operation. + # Optional, if not provided a random id will be generated. + attr_reader async_operation_id(): ::String + attr_writer async_operation_id(): ::String | ::Symbol + def clear_async_operation_id: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + spec: (::Temporalio::Api::Cloud::Namespace::V1::NamespaceSpec | ::Temporalio::Api::Cloud::Namespace::V1::NamespaceSpec::init_map)?, + "spec" => (::Temporalio::Api::Cloud::Namespace::V1::NamespaceSpec | ::Temporalio::Api::Cloud::Namespace::V1::NamespaceSpec::init_map)?, + resource_version: (::String | ::Symbol)?, + "resource_version" => (::String | ::Symbol)?, + async_operation_id: (::String | ::Symbol)?, + "async_operation_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("spec" name) -> ::Temporalio::Api::Cloud::Namespace::V1::NamespaceSpec? + | ("resource_version" name) -> ::String + | ("async_operation_id" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("spec" name, ::Temporalio::Api::Cloud::Namespace::V1::NamespaceSpec? value) -> void + | ("resource_version" name, (::String | ::Symbol) value) -> void + | ("async_operation_id" name, (::String | ::Symbol) value) -> void + end + + class UpdateNamespaceResponse < ::Google::Protobuf::AbstractMessage + + # The async operation. + attr_accessor async_operation(): ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + def has_async_operation?: () -> bool + def clear_async_operation: () -> void + + type init_map = { + async_operation: (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + "async_operation" => (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("async_operation" name) -> ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + + def []=: + ("async_operation" name, ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? value) -> void + end + + class RenameCustomSearchAttributeRequest < ::Google::Protobuf::AbstractMessage + + # The namespace to rename the custom search attribute for. + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # The existing name of the custom search attribute to be renamed. + attr_reader existing_custom_search_attribute_name(): ::String + attr_writer existing_custom_search_attribute_name(): ::String | ::Symbol + def clear_existing_custom_search_attribute_name: () -> void + + # The new name of the custom search attribute. + attr_reader new_custom_search_attribute_name(): ::String + attr_writer new_custom_search_attribute_name(): ::String | ::Symbol + def clear_new_custom_search_attribute_name: () -> void + + # The version of the namespace for which this update is intended for. + # The latest version can be found in the namespace status. + attr_reader resource_version(): ::String + attr_writer resource_version(): ::String | ::Symbol + def clear_resource_version: () -> void + + # The id to use for this async operation. + # Optional, if not provided a random id will be generated. + attr_reader async_operation_id(): ::String + attr_writer async_operation_id(): ::String | ::Symbol + def clear_async_operation_id: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + existing_custom_search_attribute_name: (::String | ::Symbol)?, + "existing_custom_search_attribute_name" => (::String | ::Symbol)?, + new_custom_search_attribute_name: (::String | ::Symbol)?, + "new_custom_search_attribute_name" => (::String | ::Symbol)?, + resource_version: (::String | ::Symbol)?, + "resource_version" => (::String | ::Symbol)?, + async_operation_id: (::String | ::Symbol)?, + "async_operation_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("existing_custom_search_attribute_name" name) -> ::String + | ("new_custom_search_attribute_name" name) -> ::String + | ("resource_version" name) -> ::String + | ("async_operation_id" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("existing_custom_search_attribute_name" name, (::String | ::Symbol) value) -> void + | ("new_custom_search_attribute_name" name, (::String | ::Symbol) value) -> void + | ("resource_version" name, (::String | ::Symbol) value) -> void + | ("async_operation_id" name, (::String | ::Symbol) value) -> void + end + + class RenameCustomSearchAttributeResponse < ::Google::Protobuf::AbstractMessage + + # The async operation. + attr_accessor async_operation(): ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + def has_async_operation?: () -> bool + def clear_async_operation: () -> void + + type init_map = { + async_operation: (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + "async_operation" => (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("async_operation" name) -> ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + + def []=: + ("async_operation" name, ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? value) -> void + end + + class DeleteNamespaceRequest < ::Google::Protobuf::AbstractMessage + + # The namespace to delete. + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # The version of the namespace for which this delete is intended for. + # The latest version can be found in the namespace status. + attr_reader resource_version(): ::String + attr_writer resource_version(): ::String | ::Symbol + def clear_resource_version: () -> void + + # The id to use for this async operation. + # Optional, if not provided a random id will be generated. + attr_reader async_operation_id(): ::String + attr_writer async_operation_id(): ::String | ::Symbol + def clear_async_operation_id: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + resource_version: (::String | ::Symbol)?, + "resource_version" => (::String | ::Symbol)?, + async_operation_id: (::String | ::Symbol)?, + "async_operation_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("resource_version" name) -> ::String + | ("async_operation_id" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("resource_version" name, (::String | ::Symbol) value) -> void + | ("async_operation_id" name, (::String | ::Symbol) value) -> void + end + + class DeleteNamespaceResponse < ::Google::Protobuf::AbstractMessage + + # The async operation. + attr_accessor async_operation(): ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + def has_async_operation?: () -> bool + def clear_async_operation: () -> void + + type init_map = { + async_operation: (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + "async_operation" => (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("async_operation" name) -> ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + + def []=: + ("async_operation" name, ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? value) -> void + end + + class FailoverNamespaceRegionRequest < ::Google::Protobuf::AbstractMessage + + # The namespace to failover. + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # The id of the region to failover to. + # Must be a region that the namespace is currently available in. + attr_reader region(): ::String + attr_writer region(): ::String | ::Symbol + def clear_region: () -> void + + # The id to use for this async operation - optional. + attr_reader async_operation_id(): ::String + attr_writer async_operation_id(): ::String | ::Symbol + def clear_async_operation_id: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + region: (::String | ::Symbol)?, + "region" => (::String | ::Symbol)?, + async_operation_id: (::String | ::Symbol)?, + "async_operation_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("region" name) -> ::String + | ("async_operation_id" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("region" name, (::String | ::Symbol) value) -> void + | ("async_operation_id" name, (::String | ::Symbol) value) -> void + end + + class FailoverNamespaceRegionResponse < ::Google::Protobuf::AbstractMessage + + # The async operation. + attr_accessor async_operation(): ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + def has_async_operation?: () -> bool + def clear_async_operation: () -> void + + type init_map = { + async_operation: (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + "async_operation" => (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("async_operation" name) -> ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + + def []=: + ("async_operation" name, ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? value) -> void + end + + class AddNamespaceRegionRequest < ::Google::Protobuf::AbstractMessage + + # The namespace to add the region to. + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # The id of the standby region to add to the namespace. + # The GetRegions API can be used to get the list of valid region ids. + # Example: "aws-us-west-2". + attr_reader region(): ::String + attr_writer region(): ::String | ::Symbol + def clear_region: () -> void + + # The version of the namespace for which this add region operation is intended for. + # The latest version can be found in the GetNamespace operation response. + attr_reader resource_version(): ::String + attr_writer resource_version(): ::String | ::Symbol + def clear_resource_version: () -> void + + # The id to use for this async operation - optional. + attr_reader async_operation_id(): ::String + attr_writer async_operation_id(): ::String | ::Symbol + def clear_async_operation_id: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + region: (::String | ::Symbol)?, + "region" => (::String | ::Symbol)?, + resource_version: (::String | ::Symbol)?, + "resource_version" => (::String | ::Symbol)?, + async_operation_id: (::String | ::Symbol)?, + "async_operation_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("region" name) -> ::String + | ("resource_version" name) -> ::String + | ("async_operation_id" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("region" name, (::String | ::Symbol) value) -> void + | ("resource_version" name, (::String | ::Symbol) value) -> void + | ("async_operation_id" name, (::String | ::Symbol) value) -> void + end + + class AddNamespaceRegionResponse < ::Google::Protobuf::AbstractMessage + + # The async operation. + attr_accessor async_operation(): ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + def has_async_operation?: () -> bool + def clear_async_operation: () -> void + + type init_map = { + async_operation: (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + "async_operation" => (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("async_operation" name) -> ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + + def []=: + ("async_operation" name, ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? value) -> void + end + + class DeleteNamespaceRegionRequest < ::Google::Protobuf::AbstractMessage + + # The namespace to delete a region. + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # The id of the standby region to be deleted. + # The GetRegions API can be used to get the list of valid region ids. + # Example: "aws-us-west-2". + attr_reader region(): ::String + attr_writer region(): ::String | ::Symbol + def clear_region: () -> void + + # The version of the namespace for which this delete region operation is intended for. + # The latest version can be found in the GetNamespace operation response. + attr_reader resource_version(): ::String + attr_writer resource_version(): ::String | ::Symbol + def clear_resource_version: () -> void + + # The id to use for this async operation - optional. + attr_reader async_operation_id(): ::String + attr_writer async_operation_id(): ::String | ::Symbol + def clear_async_operation_id: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + region: (::String | ::Symbol)?, + "region" => (::String | ::Symbol)?, + resource_version: (::String | ::Symbol)?, + "resource_version" => (::String | ::Symbol)?, + async_operation_id: (::String | ::Symbol)?, + "async_operation_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("region" name) -> ::String + | ("resource_version" name) -> ::String + | ("async_operation_id" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("region" name, (::String | ::Symbol) value) -> void + | ("resource_version" name, (::String | ::Symbol) value) -> void + | ("async_operation_id" name, (::String | ::Symbol) value) -> void + end + + class DeleteNamespaceRegionResponse < ::Google::Protobuf::AbstractMessage + + # The async operation. + attr_accessor async_operation(): ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + def has_async_operation?: () -> bool + def clear_async_operation: () -> void + + type init_map = { + async_operation: (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + "async_operation" => (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("async_operation" name) -> ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + + def []=: + ("async_operation" name, ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? value) -> void + end + + class GetRegionsRequest < ::Google::Protobuf::AbstractMessage + + type init_map = { + } + + def initialize: (?init_map initial_value) -> void + end + + class GetRegionsResponse < ::Google::Protobuf::AbstractMessage + + # The temporal cloud regions. + attr_accessor regions(): ::Google::Protobuf::RepeatedField + def clear_regions: () -> void + + type init_map = { + regions: ::Array[::Temporalio::Api::Cloud::Region::V1::Region]?, + "regions" => ::Array[::Temporalio::Api::Cloud::Region::V1::Region]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("regions" name) -> ::Google::Protobuf::RepeatedField + + def []=: + ("regions" name, ::Google::Protobuf::RepeatedField value) -> void + end + + class GetRegionRequest < ::Google::Protobuf::AbstractMessage + + # The id of the region to get. + attr_reader region(): ::String + attr_writer region(): ::String | ::Symbol + def clear_region: () -> void + + type init_map = { + region: (::String | ::Symbol)?, + "region" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("region" name) -> ::String + + def []=: + ("region" name, (::String | ::Symbol) value) -> void + end + + class GetRegionResponse < ::Google::Protobuf::AbstractMessage + + # The temporal cloud region. + attr_accessor region(): ::Temporalio::Api::Cloud::Region::V1::Region? + def has_region?: () -> bool + def clear_region: () -> void + + type init_map = { + region: (::Temporalio::Api::Cloud::Region::V1::Region | ::Temporalio::Api::Cloud::Region::V1::Region::init_map)?, + "region" => (::Temporalio::Api::Cloud::Region::V1::Region | ::Temporalio::Api::Cloud::Region::V1::Region::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("region" name) -> ::Temporalio::Api::Cloud::Region::V1::Region? + + def []=: + ("region" name, ::Temporalio::Api::Cloud::Region::V1::Region? value) -> void + end + + class GetApiKeysRequest < ::Google::Protobuf::AbstractMessage + + # The requested size of the page to retrieve - optional. + # Cannot exceed 1000. Defaults to 100. + attr_reader page_size(): ::Integer + attr_writer page_size(): ::Integer | ::Float + def clear_page_size: () -> void + + # The page token if this is continuing from another response - optional. + attr_reader page_token(): ::String + attr_writer page_token(): ::String | ::Symbol + def clear_page_token: () -> void + + # Filter api keys by owner id - optional. + attr_reader owner_id(): ::String + attr_writer owner_id(): ::String | ::Symbol + def clear_owner_id: () -> void + + # Filter api keys by owner type - optional. + # Possible values: user, service-account + # @deprecated + attr_reader owner_type_deprecated(): ::String + attr_writer owner_type_deprecated(): ::String | ::Symbol + def clear_owner_type_deprecated: () -> void + + # Filter api keys by owner type - optional. + # temporal:enums:replaces=owner_type_deprecated + attr_reader owner_type(): ::Temporalio::Api::Cloud::Identity::V1::OwnerType::names | ::Integer + attr_writer owner_type(): ::Temporalio::Api::Cloud::Identity::V1::OwnerType::names | ::Temporalio::Api::Cloud::Identity::V1::OwnerType::strings | ::Integer | ::Float + attr_reader owner_type_const(): ::Integer + def clear_owner_type: () -> void + + type init_map = { + page_size: (::Integer | ::Float)?, + "page_size" => (::Integer | ::Float)?, + page_token: (::String | ::Symbol)?, + "page_token" => (::String | ::Symbol)?, + owner_id: (::String | ::Symbol)?, + "owner_id" => (::String | ::Symbol)?, + owner_type_deprecated: (::String | ::Symbol)?, + "owner_type_deprecated" => (::String | ::Symbol)?, + owner_type: (::Temporalio::Api::Cloud::Identity::V1::OwnerType::names | ::Temporalio::Api::Cloud::Identity::V1::OwnerType::strings | ::Integer | ::Float)?, + "owner_type" => (::Temporalio::Api::Cloud::Identity::V1::OwnerType::names | ::Temporalio::Api::Cloud::Identity::V1::OwnerType::strings | ::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("page_size" name) -> ::Integer + | ("page_token" name) -> ::String + | ("owner_id" name) -> ::String + | ("owner_type_deprecated" name) -> ::String + | ("owner_type" name) -> (::Temporalio::Api::Cloud::Identity::V1::OwnerType::names | ::Integer) + + def []=: + ("page_size" name, (::Integer | ::Float) value) -> void + | ("page_token" name, (::String | ::Symbol) value) -> void + | ("owner_id" name, (::String | ::Symbol) value) -> void + | ("owner_type_deprecated" name, (::String | ::Symbol) value) -> void + | ("owner_type" name, (::Temporalio::Api::Cloud::Identity::V1::OwnerType::names | ::Temporalio::Api::Cloud::Identity::V1::OwnerType::strings | ::Integer | ::Float) value) -> void + end + + class GetApiKeysResponse < ::Google::Protobuf::AbstractMessage + + # The list of api keys in ascending id order. + attr_accessor api_keys(): ::Google::Protobuf::RepeatedField + def clear_api_keys: () -> void + + # The next page's token. + attr_reader next_page_token(): ::String + attr_writer next_page_token(): ::String | ::Symbol + def clear_next_page_token: () -> void + + type init_map = { + api_keys: ::Array[::Temporalio::Api::Cloud::Identity::V1::ApiKey]?, + "api_keys" => ::Array[::Temporalio::Api::Cloud::Identity::V1::ApiKey]?, + next_page_token: (::String | ::Symbol)?, + "next_page_token" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("api_keys" name) -> ::Google::Protobuf::RepeatedField + | ("next_page_token" name) -> ::String + + def []=: + ("api_keys" name, ::Google::Protobuf::RepeatedField value) -> void + | ("next_page_token" name, (::String | ::Symbol) value) -> void + end + + class GetApiKeyRequest < ::Google::Protobuf::AbstractMessage + + # The id of the api key to get. + attr_reader key_id(): ::String + attr_writer key_id(): ::String | ::Symbol + def clear_key_id: () -> void + + type init_map = { + key_id: (::String | ::Symbol)?, + "key_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("key_id" name) -> ::String + + def []=: + ("key_id" name, (::String | ::Symbol) value) -> void + end + + class GetApiKeyResponse < ::Google::Protobuf::AbstractMessage + + # The api key. + attr_accessor api_key(): ::Temporalio::Api::Cloud::Identity::V1::ApiKey? + def has_api_key?: () -> bool + def clear_api_key: () -> void + + type init_map = { + api_key: (::Temporalio::Api::Cloud::Identity::V1::ApiKey | ::Temporalio::Api::Cloud::Identity::V1::ApiKey::init_map)?, + "api_key" => (::Temporalio::Api::Cloud::Identity::V1::ApiKey | ::Temporalio::Api::Cloud::Identity::V1::ApiKey::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("api_key" name) -> ::Temporalio::Api::Cloud::Identity::V1::ApiKey? + + def []=: + ("api_key" name, ::Temporalio::Api::Cloud::Identity::V1::ApiKey? value) -> void + end + + class CreateApiKeyRequest < ::Google::Protobuf::AbstractMessage + + # The spec for the api key to create. + # Create api key only supports service-account owner type for now. + attr_accessor spec(): ::Temporalio::Api::Cloud::Identity::V1::ApiKeySpec? + def has_spec?: () -> bool + def clear_spec: () -> void + + # The id to use for this async operation - optional. + attr_reader async_operation_id(): ::String + attr_writer async_operation_id(): ::String | ::Symbol + def clear_async_operation_id: () -> void + + type init_map = { + spec: (::Temporalio::Api::Cloud::Identity::V1::ApiKeySpec | ::Temporalio::Api::Cloud::Identity::V1::ApiKeySpec::init_map)?, + "spec" => (::Temporalio::Api::Cloud::Identity::V1::ApiKeySpec | ::Temporalio::Api::Cloud::Identity::V1::ApiKeySpec::init_map)?, + async_operation_id: (::String | ::Symbol)?, + "async_operation_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("spec" name) -> ::Temporalio::Api::Cloud::Identity::V1::ApiKeySpec? + | ("async_operation_id" name) -> ::String + + def []=: + ("spec" name, ::Temporalio::Api::Cloud::Identity::V1::ApiKeySpec? value) -> void + | ("async_operation_id" name, (::String | ::Symbol) value) -> void + end + + class CreateApiKeyResponse < ::Google::Protobuf::AbstractMessage + + # The id of the api key created. + attr_reader key_id(): ::String + attr_writer key_id(): ::String | ::Symbol + def clear_key_id: () -> void + + # The token of the api key created. + # This is a secret and should be stored securely. + # It will not be retrievable after this response. + attr_reader token(): ::String + attr_writer token(): ::String | ::Symbol + def clear_token: () -> void + + # The async operation. + attr_accessor async_operation(): ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + def has_async_operation?: () -> bool + def clear_async_operation: () -> void + + type init_map = { + key_id: (::String | ::Symbol)?, + "key_id" => (::String | ::Symbol)?, + token: (::String | ::Symbol)?, + "token" => (::String | ::Symbol)?, + async_operation: (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + "async_operation" => (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("key_id" name) -> ::String + | ("token" name) -> ::String + | ("async_operation" name) -> ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + + def []=: + ("key_id" name, (::String | ::Symbol) value) -> void + | ("token" name, (::String | ::Symbol) value) -> void + | ("async_operation" name, ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? value) -> void + end + + class UpdateApiKeyRequest < ::Google::Protobuf::AbstractMessage + + # The id of the api key to update. + attr_reader key_id(): ::String + attr_writer key_id(): ::String | ::Symbol + def clear_key_id: () -> void + + # The new api key specification. + attr_accessor spec(): ::Temporalio::Api::Cloud::Identity::V1::ApiKeySpec? + def has_spec?: () -> bool + def clear_spec: () -> void + + # The version of the api key for which this update is intended for. + # The latest version can be found in the GetApiKey operation response. + attr_reader resource_version(): ::String + attr_writer resource_version(): ::String | ::Symbol + def clear_resource_version: () -> void + + # The id to use for this async operation - optional. + attr_reader async_operation_id(): ::String + attr_writer async_operation_id(): ::String | ::Symbol + def clear_async_operation_id: () -> void + + type init_map = { + key_id: (::String | ::Symbol)?, + "key_id" => (::String | ::Symbol)?, + spec: (::Temporalio::Api::Cloud::Identity::V1::ApiKeySpec | ::Temporalio::Api::Cloud::Identity::V1::ApiKeySpec::init_map)?, + "spec" => (::Temporalio::Api::Cloud::Identity::V1::ApiKeySpec | ::Temporalio::Api::Cloud::Identity::V1::ApiKeySpec::init_map)?, + resource_version: (::String | ::Symbol)?, + "resource_version" => (::String | ::Symbol)?, + async_operation_id: (::String | ::Symbol)?, + "async_operation_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("key_id" name) -> ::String + | ("spec" name) -> ::Temporalio::Api::Cloud::Identity::V1::ApiKeySpec? + | ("resource_version" name) -> ::String + | ("async_operation_id" name) -> ::String + + def []=: + ("key_id" name, (::String | ::Symbol) value) -> void + | ("spec" name, ::Temporalio::Api::Cloud::Identity::V1::ApiKeySpec? value) -> void + | ("resource_version" name, (::String | ::Symbol) value) -> void + | ("async_operation_id" name, (::String | ::Symbol) value) -> void + end + + class UpdateApiKeyResponse < ::Google::Protobuf::AbstractMessage + + # The async operation. + attr_accessor async_operation(): ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + def has_async_operation?: () -> bool + def clear_async_operation: () -> void + + type init_map = { + async_operation: (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + "async_operation" => (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("async_operation" name) -> ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + + def []=: + ("async_operation" name, ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? value) -> void + end + + class DeleteApiKeyRequest < ::Google::Protobuf::AbstractMessage + + # The id of the api key to delete. + attr_reader key_id(): ::String + attr_writer key_id(): ::String | ::Symbol + def clear_key_id: () -> void + + # The version of the api key for which this delete is intended for. + # The latest version can be found in the GetApiKey operation response. + attr_reader resource_version(): ::String + attr_writer resource_version(): ::String | ::Symbol + def clear_resource_version: () -> void + + # The id to use for this async operation - optional. + attr_reader async_operation_id(): ::String + attr_writer async_operation_id(): ::String | ::Symbol + def clear_async_operation_id: () -> void + + type init_map = { + key_id: (::String | ::Symbol)?, + "key_id" => (::String | ::Symbol)?, + resource_version: (::String | ::Symbol)?, + "resource_version" => (::String | ::Symbol)?, + async_operation_id: (::String | ::Symbol)?, + "async_operation_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("key_id" name) -> ::String + | ("resource_version" name) -> ::String + | ("async_operation_id" name) -> ::String + + def []=: + ("key_id" name, (::String | ::Symbol) value) -> void + | ("resource_version" name, (::String | ::Symbol) value) -> void + | ("async_operation_id" name, (::String | ::Symbol) value) -> void + end + + class DeleteApiKeyResponse < ::Google::Protobuf::AbstractMessage + + # The async operation. + attr_accessor async_operation(): ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + def has_async_operation?: () -> bool + def clear_async_operation: () -> void + + type init_map = { + async_operation: (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + "async_operation" => (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("async_operation" name) -> ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + + def []=: + ("async_operation" name, ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? value) -> void + end + + class GetNexusEndpointsRequest < ::Google::Protobuf::AbstractMessage + + # The requested size of the page to retrieve - optional. + # Cannot exceed 1000. Defaults to 100. + attr_reader page_size(): ::Integer + attr_writer page_size(): ::Integer | ::Float + def clear_page_size: () -> void + + # The page token if this is continuing from another response - optional. + attr_reader page_token(): ::String + attr_writer page_token(): ::String | ::Symbol + def clear_page_token: () -> void + + # optional, treated as an AND if specified + attr_reader target_namespace_id(): ::String + attr_writer target_namespace_id(): ::String | ::Symbol + def clear_target_namespace_id: () -> void + + # optional, treated as an AND if specified + attr_reader target_task_queue(): ::String + attr_writer target_task_queue(): ::String | ::Symbol + def clear_target_task_queue: () -> void + + # Filter endpoints by their name - optional, treated as an AND if specified. Specifying this will result in zero or one results. + attr_reader name(): ::String + attr_writer name(): ::String | ::Symbol + def clear_name: () -> void + + type init_map = { + page_size: (::Integer | ::Float)?, + "page_size" => (::Integer | ::Float)?, + page_token: (::String | ::Symbol)?, + "page_token" => (::String | ::Symbol)?, + target_namespace_id: (::String | ::Symbol)?, + "target_namespace_id" => (::String | ::Symbol)?, + target_task_queue: (::String | ::Symbol)?, + "target_task_queue" => (::String | ::Symbol)?, + name: (::String | ::Symbol)?, + "name" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("page_size" name) -> ::Integer + | ("page_token" name) -> ::String + | ("target_namespace_id" name) -> ::String + | ("target_task_queue" name) -> ::String + | ("name" name) -> ::String + + def []=: + ("page_size" name, (::Integer | ::Float) value) -> void + | ("page_token" name, (::String | ::Symbol) value) -> void + | ("target_namespace_id" name, (::String | ::Symbol) value) -> void + | ("target_task_queue" name, (::String | ::Symbol) value) -> void + | ("name" name, (::String | ::Symbol) value) -> void + end + + class GetNexusEndpointsResponse < ::Google::Protobuf::AbstractMessage + + # The list of endpoints in ascending id order. + attr_accessor endpoints(): ::Google::Protobuf::RepeatedField + def clear_endpoints: () -> void + + # The next page's token. + attr_reader next_page_token(): ::String + attr_writer next_page_token(): ::String | ::Symbol + def clear_next_page_token: () -> void + + type init_map = { + endpoints: ::Array[::Temporalio::Api::Cloud::Nexus::V1::Endpoint]?, + "endpoints" => ::Array[::Temporalio::Api::Cloud::Nexus::V1::Endpoint]?, + next_page_token: (::String | ::Symbol)?, + "next_page_token" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("endpoints" name) -> ::Google::Protobuf::RepeatedField + | ("next_page_token" name) -> ::String + + def []=: + ("endpoints" name, ::Google::Protobuf::RepeatedField value) -> void + | ("next_page_token" name, (::String | ::Symbol) value) -> void + end + + class GetNexusEndpointRequest < ::Google::Protobuf::AbstractMessage + + # The id of the nexus endpoint to get. + attr_reader endpoint_id(): ::String + attr_writer endpoint_id(): ::String | ::Symbol + def clear_endpoint_id: () -> void + + type init_map = { + endpoint_id: (::String | ::Symbol)?, + "endpoint_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("endpoint_id" name) -> ::String + + def []=: + ("endpoint_id" name, (::String | ::Symbol) value) -> void + end + + class GetNexusEndpointResponse < ::Google::Protobuf::AbstractMessage + + # The nexus endpoint. + attr_accessor endpoint(): ::Temporalio::Api::Cloud::Nexus::V1::Endpoint? + def has_endpoint?: () -> bool + def clear_endpoint: () -> void + + type init_map = { + endpoint: (::Temporalio::Api::Cloud::Nexus::V1::Endpoint | ::Temporalio::Api::Cloud::Nexus::V1::Endpoint::init_map)?, + "endpoint" => (::Temporalio::Api::Cloud::Nexus::V1::Endpoint | ::Temporalio::Api::Cloud::Nexus::V1::Endpoint::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("endpoint" name) -> ::Temporalio::Api::Cloud::Nexus::V1::Endpoint? + + def []=: + ("endpoint" name, ::Temporalio::Api::Cloud::Nexus::V1::Endpoint? value) -> void + end + + class CreateNexusEndpointRequest < ::Google::Protobuf::AbstractMessage + + # The spec for the nexus endpoint. + attr_accessor spec(): ::Temporalio::Api::Cloud::Nexus::V1::EndpointSpec? + def has_spec?: () -> bool + def clear_spec: () -> void + + # The id to use for this async operation - optional. + attr_reader async_operation_id(): ::String + attr_writer async_operation_id(): ::String | ::Symbol + def clear_async_operation_id: () -> void + + type init_map = { + spec: (::Temporalio::Api::Cloud::Nexus::V1::EndpointSpec | ::Temporalio::Api::Cloud::Nexus::V1::EndpointSpec::init_map)?, + "spec" => (::Temporalio::Api::Cloud::Nexus::V1::EndpointSpec | ::Temporalio::Api::Cloud::Nexus::V1::EndpointSpec::init_map)?, + async_operation_id: (::String | ::Symbol)?, + "async_operation_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("spec" name) -> ::Temporalio::Api::Cloud::Nexus::V1::EndpointSpec? + | ("async_operation_id" name) -> ::String + + def []=: + ("spec" name, ::Temporalio::Api::Cloud::Nexus::V1::EndpointSpec? value) -> void + | ("async_operation_id" name, (::String | ::Symbol) value) -> void + end + + class CreateNexusEndpointResponse < ::Google::Protobuf::AbstractMessage + + # The id of the endpoint that was created. + attr_reader endpoint_id(): ::String + attr_writer endpoint_id(): ::String | ::Symbol + def clear_endpoint_id: () -> void + + # The async operation. + attr_accessor async_operation(): ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + def has_async_operation?: () -> bool + def clear_async_operation: () -> void + + type init_map = { + endpoint_id: (::String | ::Symbol)?, + "endpoint_id" => (::String | ::Symbol)?, + async_operation: (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + "async_operation" => (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("endpoint_id" name) -> ::String + | ("async_operation" name) -> ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + + def []=: + ("endpoint_id" name, (::String | ::Symbol) value) -> void + | ("async_operation" name, ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? value) -> void + end + + class UpdateNexusEndpointRequest < ::Google::Protobuf::AbstractMessage + + # The id of the nexus endpoint to update. + attr_reader endpoint_id(): ::String + attr_writer endpoint_id(): ::String | ::Symbol + def clear_endpoint_id: () -> void + + # The updated nexus endpoint specification. + attr_accessor spec(): ::Temporalio::Api::Cloud::Nexus::V1::EndpointSpec? + def has_spec?: () -> bool + def clear_spec: () -> void + + # The version of the nexus endpoint for which this update is intended for. + # The latest version can be found in the GetNexusEndpoint operation response. + attr_reader resource_version(): ::String + attr_writer resource_version(): ::String | ::Symbol + def clear_resource_version: () -> void + + # The id to use for this async operation - optional. + attr_reader async_operation_id(): ::String + attr_writer async_operation_id(): ::String | ::Symbol + def clear_async_operation_id: () -> void + + type init_map = { + endpoint_id: (::String | ::Symbol)?, + "endpoint_id" => (::String | ::Symbol)?, + spec: (::Temporalio::Api::Cloud::Nexus::V1::EndpointSpec | ::Temporalio::Api::Cloud::Nexus::V1::EndpointSpec::init_map)?, + "spec" => (::Temporalio::Api::Cloud::Nexus::V1::EndpointSpec | ::Temporalio::Api::Cloud::Nexus::V1::EndpointSpec::init_map)?, + resource_version: (::String | ::Symbol)?, + "resource_version" => (::String | ::Symbol)?, + async_operation_id: (::String | ::Symbol)?, + "async_operation_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("endpoint_id" name) -> ::String + | ("spec" name) -> ::Temporalio::Api::Cloud::Nexus::V1::EndpointSpec? + | ("resource_version" name) -> ::String + | ("async_operation_id" name) -> ::String + + def []=: + ("endpoint_id" name, (::String | ::Symbol) value) -> void + | ("spec" name, ::Temporalio::Api::Cloud::Nexus::V1::EndpointSpec? value) -> void + | ("resource_version" name, (::String | ::Symbol) value) -> void + | ("async_operation_id" name, (::String | ::Symbol) value) -> void + end + + class UpdateNexusEndpointResponse < ::Google::Protobuf::AbstractMessage + + # The async operation. + attr_accessor async_operation(): ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + def has_async_operation?: () -> bool + def clear_async_operation: () -> void + + type init_map = { + async_operation: (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + "async_operation" => (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("async_operation" name) -> ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + + def []=: + ("async_operation" name, ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? value) -> void + end + + class DeleteNexusEndpointRequest < ::Google::Protobuf::AbstractMessage + + # The id of the nexus endpoint to delete. + attr_reader endpoint_id(): ::String + attr_writer endpoint_id(): ::String | ::Symbol + def clear_endpoint_id: () -> void + + # The version of the endpoint for which this delete is intended for. + # The latest version can be found in the GetNexusEndpoint operation response. + attr_reader resource_version(): ::String + attr_writer resource_version(): ::String | ::Symbol + def clear_resource_version: () -> void + + # The id to use for this async operation - optional. + attr_reader async_operation_id(): ::String + attr_writer async_operation_id(): ::String | ::Symbol + def clear_async_operation_id: () -> void + + type init_map = { + endpoint_id: (::String | ::Symbol)?, + "endpoint_id" => (::String | ::Symbol)?, + resource_version: (::String | ::Symbol)?, + "resource_version" => (::String | ::Symbol)?, + async_operation_id: (::String | ::Symbol)?, + "async_operation_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("endpoint_id" name) -> ::String + | ("resource_version" name) -> ::String + | ("async_operation_id" name) -> ::String + + def []=: + ("endpoint_id" name, (::String | ::Symbol) value) -> void + | ("resource_version" name, (::String | ::Symbol) value) -> void + | ("async_operation_id" name, (::String | ::Symbol) value) -> void + end + + class DeleteNexusEndpointResponse < ::Google::Protobuf::AbstractMessage + + # The async operation + attr_accessor async_operation(): ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + def has_async_operation?: () -> bool + def clear_async_operation: () -> void + + type init_map = { + async_operation: (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + "async_operation" => (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("async_operation" name) -> ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + + def []=: + ("async_operation" name, ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? value) -> void + end + + class GetUserGroupsRequest < ::Google::Protobuf::AbstractMessage + class GoogleGroupFilter < ::Google::Protobuf::AbstractMessage + + # Filter groups by the google group email - optional. + attr_reader email_address(): ::String + attr_writer email_address(): ::String | ::Symbol + def clear_email_address: () -> void + + type init_map = { + email_address: (::String | ::Symbol)?, + "email_address" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("email_address" name) -> ::String + + def []=: + ("email_address" name, (::String | ::Symbol) value) -> void + end + + class SCIMGroupFilter < ::Google::Protobuf::AbstractMessage + + # Filter groups by the SCIM IDP id - optional. + attr_reader idp_id(): ::String + attr_writer idp_id(): ::String | ::Symbol + def clear_idp_id: () -> void + + type init_map = { + idp_id: (::String | ::Symbol)?, + "idp_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("idp_id" name) -> ::String + + def []=: + ("idp_id" name, (::String | ::Symbol) value) -> void + end + + # The requested size of the page to retrieve - optional. + # Cannot exceed 1000. Defaults to 100. + attr_reader page_size(): ::Integer + attr_writer page_size(): ::Integer | ::Float + def clear_page_size: () -> void + + # The page token if this is continuing from another response - optional. + attr_reader page_token(): ::String + attr_writer page_token(): ::String | ::Symbol + def clear_page_token: () -> void + + # Filter groups by the namespace they have access to - optional. + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # Filter groups by the display name - optional. + attr_reader display_name(): ::String + attr_writer display_name(): ::String | ::Symbol + def clear_display_name: () -> void + + # Filter groups by the google group specification - optional. + attr_accessor google_group(): ::Temporalio::Api::Cloud::CloudService::V1::GetUserGroupsRequest::GoogleGroupFilter? + def has_google_group?: () -> bool + def clear_google_group: () -> void + + # Filter groups by the SCIM group specification - optional. + attr_accessor scim_group(): ::Temporalio::Api::Cloud::CloudService::V1::GetUserGroupsRequest::SCIMGroupFilter? + def has_scim_group?: () -> bool + def clear_scim_group: () -> void + + type init_map = { + page_size: (::Integer | ::Float)?, + "page_size" => (::Integer | ::Float)?, + page_token: (::String | ::Symbol)?, + "page_token" => (::String | ::Symbol)?, + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + display_name: (::String | ::Symbol)?, + "display_name" => (::String | ::Symbol)?, + google_group: (::Temporalio::Api::Cloud::CloudService::V1::GetUserGroupsRequest::GoogleGroupFilter | ::Temporalio::Api::Cloud::CloudService::V1::GetUserGroupsRequest::GoogleGroupFilter::init_map)?, + "google_group" => (::Temporalio::Api::Cloud::CloudService::V1::GetUserGroupsRequest::GoogleGroupFilter | ::Temporalio::Api::Cloud::CloudService::V1::GetUserGroupsRequest::GoogleGroupFilter::init_map)?, + scim_group: (::Temporalio::Api::Cloud::CloudService::V1::GetUserGroupsRequest::SCIMGroupFilter | ::Temporalio::Api::Cloud::CloudService::V1::GetUserGroupsRequest::SCIMGroupFilter::init_map)?, + "scim_group" => (::Temporalio::Api::Cloud::CloudService::V1::GetUserGroupsRequest::SCIMGroupFilter | ::Temporalio::Api::Cloud::CloudService::V1::GetUserGroupsRequest::SCIMGroupFilter::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("page_size" name) -> ::Integer + | ("page_token" name) -> ::String + | ("namespace" name) -> ::String + | ("display_name" name) -> ::String + | ("google_group" name) -> ::Temporalio::Api::Cloud::CloudService::V1::GetUserGroupsRequest::GoogleGroupFilter? + | ("scim_group" name) -> ::Temporalio::Api::Cloud::CloudService::V1::GetUserGroupsRequest::SCIMGroupFilter? + + def []=: + ("page_size" name, (::Integer | ::Float) value) -> void + | ("page_token" name, (::String | ::Symbol) value) -> void + | ("namespace" name, (::String | ::Symbol) value) -> void + | ("display_name" name, (::String | ::Symbol) value) -> void + | ("google_group" name, ::Temporalio::Api::Cloud::CloudService::V1::GetUserGroupsRequest::GoogleGroupFilter? value) -> void + | ("scim_group" name, ::Temporalio::Api::Cloud::CloudService::V1::GetUserGroupsRequest::SCIMGroupFilter? value) -> void + end + + class GetUserGroupsResponse < ::Google::Protobuf::AbstractMessage + + # The list of groups in ascending name order. + attr_accessor groups(): ::Google::Protobuf::RepeatedField + def clear_groups: () -> void + + # The next page's token. + attr_reader next_page_token(): ::String + attr_writer next_page_token(): ::String | ::Symbol + def clear_next_page_token: () -> void + + type init_map = { + groups: ::Array[::Temporalio::Api::Cloud::Identity::V1::UserGroup]?, + "groups" => ::Array[::Temporalio::Api::Cloud::Identity::V1::UserGroup]?, + next_page_token: (::String | ::Symbol)?, + "next_page_token" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("groups" name) -> ::Google::Protobuf::RepeatedField + | ("next_page_token" name) -> ::String + + def []=: + ("groups" name, ::Google::Protobuf::RepeatedField value) -> void + | ("next_page_token" name, (::String | ::Symbol) value) -> void + end + + class GetUserGroupRequest < ::Google::Protobuf::AbstractMessage + + # The id of the group to get. + attr_reader group_id(): ::String + attr_writer group_id(): ::String | ::Symbol + def clear_group_id: () -> void + + type init_map = { + group_id: (::String | ::Symbol)?, + "group_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("group_id" name) -> ::String + + def []=: + ("group_id" name, (::String | ::Symbol) value) -> void + end + + class GetUserGroupResponse < ::Google::Protobuf::AbstractMessage + + # The group. + attr_accessor group(): ::Temporalio::Api::Cloud::Identity::V1::UserGroup? + def has_group?: () -> bool + def clear_group: () -> void + + type init_map = { + group: (::Temporalio::Api::Cloud::Identity::V1::UserGroup | ::Temporalio::Api::Cloud::Identity::V1::UserGroup::init_map)?, + "group" => (::Temporalio::Api::Cloud::Identity::V1::UserGroup | ::Temporalio::Api::Cloud::Identity::V1::UserGroup::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("group" name) -> ::Temporalio::Api::Cloud::Identity::V1::UserGroup? + + def []=: + ("group" name, ::Temporalio::Api::Cloud::Identity::V1::UserGroup? value) -> void + end + + class CreateUserGroupRequest < ::Google::Protobuf::AbstractMessage + + # The spec for the group to create. + attr_accessor spec(): ::Temporalio::Api::Cloud::Identity::V1::UserGroupSpec? + def has_spec?: () -> bool + def clear_spec: () -> void + + # The id to use for this async operation. + # Optional, if not provided a random id will be generated. + attr_reader async_operation_id(): ::String + attr_writer async_operation_id(): ::String | ::Symbol + def clear_async_operation_id: () -> void + + type init_map = { + spec: (::Temporalio::Api::Cloud::Identity::V1::UserGroupSpec | ::Temporalio::Api::Cloud::Identity::V1::UserGroupSpec::init_map)?, + "spec" => (::Temporalio::Api::Cloud::Identity::V1::UserGroupSpec | ::Temporalio::Api::Cloud::Identity::V1::UserGroupSpec::init_map)?, + async_operation_id: (::String | ::Symbol)?, + "async_operation_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("spec" name) -> ::Temporalio::Api::Cloud::Identity::V1::UserGroupSpec? + | ("async_operation_id" name) -> ::String + + def []=: + ("spec" name, ::Temporalio::Api::Cloud::Identity::V1::UserGroupSpec? value) -> void + | ("async_operation_id" name, (::String | ::Symbol) value) -> void + end + + class CreateUserGroupResponse < ::Google::Protobuf::AbstractMessage + + # The id of the group that was created. + attr_reader group_id(): ::String + attr_writer group_id(): ::String | ::Symbol + def clear_group_id: () -> void + + # The async operation. + attr_accessor async_operation(): ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + def has_async_operation?: () -> bool + def clear_async_operation: () -> void + + type init_map = { + group_id: (::String | ::Symbol)?, + "group_id" => (::String | ::Symbol)?, + async_operation: (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + "async_operation" => (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("group_id" name) -> ::String + | ("async_operation" name) -> ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + + def []=: + ("group_id" name, (::String | ::Symbol) value) -> void + | ("async_operation" name, ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? value) -> void + end + + class UpdateUserGroupRequest < ::Google::Protobuf::AbstractMessage + + # The id of the group to update. + attr_reader group_id(): ::String + attr_writer group_id(): ::String | ::Symbol + def clear_group_id: () -> void + + # The new group specification. + attr_accessor spec(): ::Temporalio::Api::Cloud::Identity::V1::UserGroupSpec? + def has_spec?: () -> bool + def clear_spec: () -> void + + # The version of the group for which this update is intended for. + # The latest version can be found in the GetGroup operation response. + attr_reader resource_version(): ::String + attr_writer resource_version(): ::String | ::Symbol + def clear_resource_version: () -> void + + # The id to use for this async operation. + # Optional, if not provided a random id will be generated. + attr_reader async_operation_id(): ::String + attr_writer async_operation_id(): ::String | ::Symbol + def clear_async_operation_id: () -> void + + type init_map = { + group_id: (::String | ::Symbol)?, + "group_id" => (::String | ::Symbol)?, + spec: (::Temporalio::Api::Cloud::Identity::V1::UserGroupSpec | ::Temporalio::Api::Cloud::Identity::V1::UserGroupSpec::init_map)?, + "spec" => (::Temporalio::Api::Cloud::Identity::V1::UserGroupSpec | ::Temporalio::Api::Cloud::Identity::V1::UserGroupSpec::init_map)?, + resource_version: (::String | ::Symbol)?, + "resource_version" => (::String | ::Symbol)?, + async_operation_id: (::String | ::Symbol)?, + "async_operation_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("group_id" name) -> ::String + | ("spec" name) -> ::Temporalio::Api::Cloud::Identity::V1::UserGroupSpec? + | ("resource_version" name) -> ::String + | ("async_operation_id" name) -> ::String + + def []=: + ("group_id" name, (::String | ::Symbol) value) -> void + | ("spec" name, ::Temporalio::Api::Cloud::Identity::V1::UserGroupSpec? value) -> void + | ("resource_version" name, (::String | ::Symbol) value) -> void + | ("async_operation_id" name, (::String | ::Symbol) value) -> void + end + + class UpdateUserGroupResponse < ::Google::Protobuf::AbstractMessage + + # The async operation. + attr_accessor async_operation(): ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + def has_async_operation?: () -> bool + def clear_async_operation: () -> void + + type init_map = { + async_operation: (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + "async_operation" => (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("async_operation" name) -> ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + + def []=: + ("async_operation" name, ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? value) -> void + end + + class DeleteUserGroupRequest < ::Google::Protobuf::AbstractMessage + + # The id of the group to delete. + attr_reader group_id(): ::String + attr_writer group_id(): ::String | ::Symbol + def clear_group_id: () -> void + + # The version of the group for which this delete is intended for. + # The latest version can be found in the GetGroup operation response. + attr_reader resource_version(): ::String + attr_writer resource_version(): ::String | ::Symbol + def clear_resource_version: () -> void + + # The id to use for this async operation. + # Optional, if not provided a random id will be generated. + attr_reader async_operation_id(): ::String + attr_writer async_operation_id(): ::String | ::Symbol + def clear_async_operation_id: () -> void + + type init_map = { + group_id: (::String | ::Symbol)?, + "group_id" => (::String | ::Symbol)?, + resource_version: (::String | ::Symbol)?, + "resource_version" => (::String | ::Symbol)?, + async_operation_id: (::String | ::Symbol)?, + "async_operation_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("group_id" name) -> ::String + | ("resource_version" name) -> ::String + | ("async_operation_id" name) -> ::String + + def []=: + ("group_id" name, (::String | ::Symbol) value) -> void + | ("resource_version" name, (::String | ::Symbol) value) -> void + | ("async_operation_id" name, (::String | ::Symbol) value) -> void + end + + class DeleteUserGroupResponse < ::Google::Protobuf::AbstractMessage + + # The async operation. + attr_accessor async_operation(): ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + def has_async_operation?: () -> bool + def clear_async_operation: () -> void + + type init_map = { + async_operation: (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + "async_operation" => (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("async_operation" name) -> ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + + def []=: + ("async_operation" name, ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? value) -> void + end + + class SetUserGroupNamespaceAccessRequest < ::Google::Protobuf::AbstractMessage + + # The namespace to set permissions for. + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # The id of the group to set permissions for. + attr_reader group_id(): ::String + attr_writer group_id(): ::String | ::Symbol + def clear_group_id: () -> void + + # The namespace access to assign the group. If left empty, the group will be removed from the namespace access. + attr_accessor access(): ::Temporalio::Api::Cloud::Identity::V1::NamespaceAccess? + def has_access?: () -> bool + def clear_access: () -> void + + # The version of the group for which this update is intended for. + # The latest version can be found in the GetGroup operation response. + attr_reader resource_version(): ::String + attr_writer resource_version(): ::String | ::Symbol + def clear_resource_version: () -> void + + # The id to use for this async operation - optional. + attr_reader async_operation_id(): ::String + attr_writer async_operation_id(): ::String | ::Symbol + def clear_async_operation_id: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + group_id: (::String | ::Symbol)?, + "group_id" => (::String | ::Symbol)?, + access: (::Temporalio::Api::Cloud::Identity::V1::NamespaceAccess | ::Temporalio::Api::Cloud::Identity::V1::NamespaceAccess::init_map)?, + "access" => (::Temporalio::Api::Cloud::Identity::V1::NamespaceAccess | ::Temporalio::Api::Cloud::Identity::V1::NamespaceAccess::init_map)?, + resource_version: (::String | ::Symbol)?, + "resource_version" => (::String | ::Symbol)?, + async_operation_id: (::String | ::Symbol)?, + "async_operation_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("group_id" name) -> ::String + | ("access" name) -> ::Temporalio::Api::Cloud::Identity::V1::NamespaceAccess? + | ("resource_version" name) -> ::String + | ("async_operation_id" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("group_id" name, (::String | ::Symbol) value) -> void + | ("access" name, ::Temporalio::Api::Cloud::Identity::V1::NamespaceAccess? value) -> void + | ("resource_version" name, (::String | ::Symbol) value) -> void + | ("async_operation_id" name, (::String | ::Symbol) value) -> void + end + + class SetUserGroupNamespaceAccessResponse < ::Google::Protobuf::AbstractMessage + + # The async operation. + attr_accessor async_operation(): ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + def has_async_operation?: () -> bool + def clear_async_operation: () -> void + + type init_map = { + async_operation: (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + "async_operation" => (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("async_operation" name) -> ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + + def []=: + ("async_operation" name, ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? value) -> void + end + + class AddUserGroupMemberRequest < ::Google::Protobuf::AbstractMessage + + # The id of the group to add the member for. + attr_reader group_id(): ::String + attr_writer group_id(): ::String | ::Symbol + def clear_group_id: () -> void + + # The member id to add to the group. + attr_accessor member_id(): ::Temporalio::Api::Cloud::Identity::V1::UserGroupMemberId? + def has_member_id?: () -> bool + def clear_member_id: () -> void + + # The id to use for this async operation. + # Optional, if not provided a random id will be generated. + attr_reader async_operation_id(): ::String + attr_writer async_operation_id(): ::String | ::Symbol + def clear_async_operation_id: () -> void + + type init_map = { + group_id: (::String | ::Symbol)?, + "group_id" => (::String | ::Symbol)?, + member_id: (::Temporalio::Api::Cloud::Identity::V1::UserGroupMemberId | ::Temporalio::Api::Cloud::Identity::V1::UserGroupMemberId::init_map)?, + "member_id" => (::Temporalio::Api::Cloud::Identity::V1::UserGroupMemberId | ::Temporalio::Api::Cloud::Identity::V1::UserGroupMemberId::init_map)?, + async_operation_id: (::String | ::Symbol)?, + "async_operation_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("group_id" name) -> ::String + | ("member_id" name) -> ::Temporalio::Api::Cloud::Identity::V1::UserGroupMemberId? + | ("async_operation_id" name) -> ::String + + def []=: + ("group_id" name, (::String | ::Symbol) value) -> void + | ("member_id" name, ::Temporalio::Api::Cloud::Identity::V1::UserGroupMemberId? value) -> void + | ("async_operation_id" name, (::String | ::Symbol) value) -> void + end + + class AddUserGroupMemberResponse < ::Google::Protobuf::AbstractMessage + + # The async operation. + attr_accessor async_operation(): ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + def has_async_operation?: () -> bool + def clear_async_operation: () -> void + + type init_map = { + async_operation: (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + "async_operation" => (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("async_operation" name) -> ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + + def []=: + ("async_operation" name, ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? value) -> void + end + + class RemoveUserGroupMemberRequest < ::Google::Protobuf::AbstractMessage + + # The id of the group to add the member for. + attr_reader group_id(): ::String + attr_writer group_id(): ::String | ::Symbol + def clear_group_id: () -> void + + # The member id to add to the group. + attr_accessor member_id(): ::Temporalio::Api::Cloud::Identity::V1::UserGroupMemberId? + def has_member_id?: () -> bool + def clear_member_id: () -> void + + # The id to use for this async operation. + # Optional, if not provided a random id will be generated. + attr_reader async_operation_id(): ::String + attr_writer async_operation_id(): ::String | ::Symbol + def clear_async_operation_id: () -> void + + type init_map = { + group_id: (::String | ::Symbol)?, + "group_id" => (::String | ::Symbol)?, + member_id: (::Temporalio::Api::Cloud::Identity::V1::UserGroupMemberId | ::Temporalio::Api::Cloud::Identity::V1::UserGroupMemberId::init_map)?, + "member_id" => (::Temporalio::Api::Cloud::Identity::V1::UserGroupMemberId | ::Temporalio::Api::Cloud::Identity::V1::UserGroupMemberId::init_map)?, + async_operation_id: (::String | ::Symbol)?, + "async_operation_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("group_id" name) -> ::String + | ("member_id" name) -> ::Temporalio::Api::Cloud::Identity::V1::UserGroupMemberId? + | ("async_operation_id" name) -> ::String + + def []=: + ("group_id" name, (::String | ::Symbol) value) -> void + | ("member_id" name, ::Temporalio::Api::Cloud::Identity::V1::UserGroupMemberId? value) -> void + | ("async_operation_id" name, (::String | ::Symbol) value) -> void + end + + class RemoveUserGroupMemberResponse < ::Google::Protobuf::AbstractMessage + + # The async operation. + attr_accessor async_operation(): ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + def has_async_operation?: () -> bool + def clear_async_operation: () -> void + + type init_map = { + async_operation: (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + "async_operation" => (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("async_operation" name) -> ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + + def []=: + ("async_operation" name, ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? value) -> void + end + + class GetUserGroupMembersRequest < ::Google::Protobuf::AbstractMessage + + # The requested size of the page to retrieve - optional. + # Cannot exceed 1000. Defaults to 100. + attr_reader page_size(): ::Integer + attr_writer page_size(): ::Integer | ::Float + def clear_page_size: () -> void + + # The page token if this is continuing from another response - optional. + attr_reader page_token(): ::String + attr_writer page_token(): ::String | ::Symbol + def clear_page_token: () -> void + + # The group id to list members of. + attr_reader group_id(): ::String + attr_writer group_id(): ::String | ::Symbol + def clear_group_id: () -> void + + type init_map = { + page_size: (::Integer | ::Float)?, + "page_size" => (::Integer | ::Float)?, + page_token: (::String | ::Symbol)?, + "page_token" => (::String | ::Symbol)?, + group_id: (::String | ::Symbol)?, + "group_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("page_size" name) -> ::Integer + | ("page_token" name) -> ::String + | ("group_id" name) -> ::String + + def []=: + ("page_size" name, (::Integer | ::Float) value) -> void + | ("page_token" name, (::String | ::Symbol) value) -> void + | ("group_id" name, (::String | ::Symbol) value) -> void + end + + class GetUserGroupMembersResponse < ::Google::Protobuf::AbstractMessage + + # The list of group members + attr_accessor members(): ::Google::Protobuf::RepeatedField + def clear_members: () -> void + + # The next page's token. + attr_reader next_page_token(): ::String + attr_writer next_page_token(): ::String | ::Symbol + def clear_next_page_token: () -> void + + type init_map = { + members: ::Array[::Temporalio::Api::Cloud::Identity::V1::UserGroupMember]?, + "members" => ::Array[::Temporalio::Api::Cloud::Identity::V1::UserGroupMember]?, + next_page_token: (::String | ::Symbol)?, + "next_page_token" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("members" name) -> ::Google::Protobuf::RepeatedField + | ("next_page_token" name) -> ::String + + def []=: + ("members" name, ::Google::Protobuf::RepeatedField value) -> void + | ("next_page_token" name, (::String | ::Symbol) value) -> void + end + + class CreateServiceAccountRequest < ::Google::Protobuf::AbstractMessage + + # The spec of the service account to create. + attr_accessor spec(): ::Temporalio::Api::Cloud::Identity::V1::ServiceAccountSpec? + def has_spec?: () -> bool + def clear_spec: () -> void + + # The ID to use for this async operation - optional. + attr_reader async_operation_id(): ::String + attr_writer async_operation_id(): ::String | ::Symbol + def clear_async_operation_id: () -> void + + type init_map = { + spec: (::Temporalio::Api::Cloud::Identity::V1::ServiceAccountSpec | ::Temporalio::Api::Cloud::Identity::V1::ServiceAccountSpec::init_map)?, + "spec" => (::Temporalio::Api::Cloud::Identity::V1::ServiceAccountSpec | ::Temporalio::Api::Cloud::Identity::V1::ServiceAccountSpec::init_map)?, + async_operation_id: (::String | ::Symbol)?, + "async_operation_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("spec" name) -> ::Temporalio::Api::Cloud::Identity::V1::ServiceAccountSpec? + | ("async_operation_id" name) -> ::String + + def []=: + ("spec" name, ::Temporalio::Api::Cloud::Identity::V1::ServiceAccountSpec? value) -> void + | ("async_operation_id" name, (::String | ::Symbol) value) -> void + end + + class CreateServiceAccountResponse < ::Google::Protobuf::AbstractMessage + + # The ID of the created service account. + attr_reader service_account_id(): ::String + attr_writer service_account_id(): ::String | ::Symbol + def clear_service_account_id: () -> void + + # The async operation. + attr_accessor async_operation(): ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + def has_async_operation?: () -> bool + def clear_async_operation: () -> void + + type init_map = { + service_account_id: (::String | ::Symbol)?, + "service_account_id" => (::String | ::Symbol)?, + async_operation: (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + "async_operation" => (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("service_account_id" name) -> ::String + | ("async_operation" name) -> ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + + def []=: + ("service_account_id" name, (::String | ::Symbol) value) -> void + | ("async_operation" name, ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? value) -> void + end + + class GetServiceAccountRequest < ::Google::Protobuf::AbstractMessage + + # ID of the service account to retrieve. + attr_reader service_account_id(): ::String + attr_writer service_account_id(): ::String | ::Symbol + def clear_service_account_id: () -> void + + type init_map = { + service_account_id: (::String | ::Symbol)?, + "service_account_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("service_account_id" name) -> ::String + + def []=: + ("service_account_id" name, (::String | ::Symbol) value) -> void + end + + class GetServiceAccountResponse < ::Google::Protobuf::AbstractMessage + + # The service account retrieved. + attr_accessor service_account(): ::Temporalio::Api::Cloud::Identity::V1::ServiceAccount? + def has_service_account?: () -> bool + def clear_service_account: () -> void + + type init_map = { + service_account: (::Temporalio::Api::Cloud::Identity::V1::ServiceAccount | ::Temporalio::Api::Cloud::Identity::V1::ServiceAccount::init_map)?, + "service_account" => (::Temporalio::Api::Cloud::Identity::V1::ServiceAccount | ::Temporalio::Api::Cloud::Identity::V1::ServiceAccount::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("service_account" name) -> ::Temporalio::Api::Cloud::Identity::V1::ServiceAccount? + + def []=: + ("service_account" name, ::Temporalio::Api::Cloud::Identity::V1::ServiceAccount? value) -> void + end + + class GetServiceAccountsRequest < ::Google::Protobuf::AbstractMessage + + # The requested size of the page to retrieve - optional. + # Cannot exceed 1000. Defaults to 100. + attr_reader page_size(): ::Integer + attr_writer page_size(): ::Integer | ::Float + def clear_page_size: () -> void + + # The page token if this is continuing from another response - optional. + attr_reader page_token(): ::String + attr_writer page_token(): ::String | ::Symbol + def clear_page_token: () -> void + + type init_map = { + page_size: (::Integer | ::Float)?, + "page_size" => (::Integer | ::Float)?, + page_token: (::String | ::Symbol)?, + "page_token" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("page_size" name) -> ::Integer + | ("page_token" name) -> ::String + + def []=: + ("page_size" name, (::Integer | ::Float) value) -> void + | ("page_token" name, (::String | ::Symbol) value) -> void + end + + class GetServiceAccountsResponse < ::Google::Protobuf::AbstractMessage + + # The list of service accounts in ascending ID order. + attr_accessor service_account(): ::Google::Protobuf::RepeatedField + def clear_service_account: () -> void + + # The next page token, set if there is another page. + attr_reader next_page_token(): ::String + attr_writer next_page_token(): ::String | ::Symbol + def clear_next_page_token: () -> void + + type init_map = { + service_account: ::Array[::Temporalio::Api::Cloud::Identity::V1::ServiceAccount]?, + "service_account" => ::Array[::Temporalio::Api::Cloud::Identity::V1::ServiceAccount]?, + next_page_token: (::String | ::Symbol)?, + "next_page_token" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("service_account" name) -> ::Google::Protobuf::RepeatedField + | ("next_page_token" name) -> ::String + + def []=: + ("service_account" name, ::Google::Protobuf::RepeatedField value) -> void + | ("next_page_token" name, (::String | ::Symbol) value) -> void + end + + class UpdateServiceAccountRequest < ::Google::Protobuf::AbstractMessage + + # The ID of the service account to update. + attr_reader service_account_id(): ::String + attr_writer service_account_id(): ::String | ::Symbol + def clear_service_account_id: () -> void + + # The new service account specification. + attr_accessor spec(): ::Temporalio::Api::Cloud::Identity::V1::ServiceAccountSpec? + def has_spec?: () -> bool + def clear_spec: () -> void + + # The version of the service account for which this update is intended for. + # The latest version can be found in the GetServiceAccount response. + attr_reader resource_version(): ::String + attr_writer resource_version(): ::String | ::Symbol + def clear_resource_version: () -> void + + # The ID to use for this async operation - optional. + attr_reader async_operation_id(): ::String + attr_writer async_operation_id(): ::String | ::Symbol + def clear_async_operation_id: () -> void + + type init_map = { + service_account_id: (::String | ::Symbol)?, + "service_account_id" => (::String | ::Symbol)?, + spec: (::Temporalio::Api::Cloud::Identity::V1::ServiceAccountSpec | ::Temporalio::Api::Cloud::Identity::V1::ServiceAccountSpec::init_map)?, + "spec" => (::Temporalio::Api::Cloud::Identity::V1::ServiceAccountSpec | ::Temporalio::Api::Cloud::Identity::V1::ServiceAccountSpec::init_map)?, + resource_version: (::String | ::Symbol)?, + "resource_version" => (::String | ::Symbol)?, + async_operation_id: (::String | ::Symbol)?, + "async_operation_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("service_account_id" name) -> ::String + | ("spec" name) -> ::Temporalio::Api::Cloud::Identity::V1::ServiceAccountSpec? + | ("resource_version" name) -> ::String + | ("async_operation_id" name) -> ::String + + def []=: + ("service_account_id" name, (::String | ::Symbol) value) -> void + | ("spec" name, ::Temporalio::Api::Cloud::Identity::V1::ServiceAccountSpec? value) -> void + | ("resource_version" name, (::String | ::Symbol) value) -> void + | ("async_operation_id" name, (::String | ::Symbol) value) -> void + end + + class UpdateServiceAccountResponse < ::Google::Protobuf::AbstractMessage + + # The async operation. + attr_accessor async_operation(): ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + def has_async_operation?: () -> bool + def clear_async_operation: () -> void + + type init_map = { + async_operation: (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + "async_operation" => (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("async_operation" name) -> ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + + def []=: + ("async_operation" name, ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? value) -> void + end + + class SetServiceAccountNamespaceAccessRequest < ::Google::Protobuf::AbstractMessage + + # The ID of the service account to update. + attr_reader service_account_id(): ::String + attr_writer service_account_id(): ::String | ::Symbol + def clear_service_account_id: () -> void + + # The namespace to set permissions for. + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # The namespace access to assign the service account. + attr_accessor access(): ::Temporalio::Api::Cloud::Identity::V1::NamespaceAccess? + def has_access?: () -> bool + def clear_access: () -> void + + # The version of the service account for which this update is intended for. + # The latest version can be found in the GetServiceAccount response. + attr_reader resource_version(): ::String + attr_writer resource_version(): ::String | ::Symbol + def clear_resource_version: () -> void + + # The ID to use for this async operation - optional. + attr_reader async_operation_id(): ::String + attr_writer async_operation_id(): ::String | ::Symbol + def clear_async_operation_id: () -> void + + type init_map = { + service_account_id: (::String | ::Symbol)?, + "service_account_id" => (::String | ::Symbol)?, + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + access: (::Temporalio::Api::Cloud::Identity::V1::NamespaceAccess | ::Temporalio::Api::Cloud::Identity::V1::NamespaceAccess::init_map)?, + "access" => (::Temporalio::Api::Cloud::Identity::V1::NamespaceAccess | ::Temporalio::Api::Cloud::Identity::V1::NamespaceAccess::init_map)?, + resource_version: (::String | ::Symbol)?, + "resource_version" => (::String | ::Symbol)?, + async_operation_id: (::String | ::Symbol)?, + "async_operation_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("service_account_id" name) -> ::String + | ("namespace" name) -> ::String + | ("access" name) -> ::Temporalio::Api::Cloud::Identity::V1::NamespaceAccess? + | ("resource_version" name) -> ::String + | ("async_operation_id" name) -> ::String + + def []=: + ("service_account_id" name, (::String | ::Symbol) value) -> void + | ("namespace" name, (::String | ::Symbol) value) -> void + | ("access" name, ::Temporalio::Api::Cloud::Identity::V1::NamespaceAccess? value) -> void + | ("resource_version" name, (::String | ::Symbol) value) -> void + | ("async_operation_id" name, (::String | ::Symbol) value) -> void + end + + class SetServiceAccountNamespaceAccessResponse < ::Google::Protobuf::AbstractMessage + + # The async operation. + attr_accessor async_operation(): ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + def has_async_operation?: () -> bool + def clear_async_operation: () -> void + + type init_map = { + async_operation: (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + "async_operation" => (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("async_operation" name) -> ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + + def []=: + ("async_operation" name, ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? value) -> void + end + + class DeleteServiceAccountRequest < ::Google::Protobuf::AbstractMessage + + # The ID of the service account to delete; + attr_reader service_account_id(): ::String + attr_writer service_account_id(): ::String | ::Symbol + def clear_service_account_id: () -> void + + # The version of the service account for which this update is intended for. + # The latest version can be found in the GetServiceAccount response. + attr_reader resource_version(): ::String + attr_writer resource_version(): ::String | ::Symbol + def clear_resource_version: () -> void + + # The ID to use for this async operation - optional. + attr_reader async_operation_id(): ::String + attr_writer async_operation_id(): ::String | ::Symbol + def clear_async_operation_id: () -> void + + type init_map = { + service_account_id: (::String | ::Symbol)?, + "service_account_id" => (::String | ::Symbol)?, + resource_version: (::String | ::Symbol)?, + "resource_version" => (::String | ::Symbol)?, + async_operation_id: (::String | ::Symbol)?, + "async_operation_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("service_account_id" name) -> ::String + | ("resource_version" name) -> ::String + | ("async_operation_id" name) -> ::String + + def []=: + ("service_account_id" name, (::String | ::Symbol) value) -> void + | ("resource_version" name, (::String | ::Symbol) value) -> void + | ("async_operation_id" name, (::String | ::Symbol) value) -> void + end + + class DeleteServiceAccountResponse < ::Google::Protobuf::AbstractMessage + + # The async operation. + attr_accessor async_operation(): ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + def has_async_operation?: () -> bool + def clear_async_operation: () -> void + + type init_map = { + async_operation: (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + "async_operation" => (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("async_operation" name) -> ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + + def []=: + ("async_operation" name, ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? value) -> void + end + + class GetUsageRequest < ::Google::Protobuf::AbstractMessage + + # Filter for UTC time >= - optional. + # Defaults to: start of the current month. + # Must be: within the last 90 days from the current date. + # Must be: midnight UTC time. + attr_reader start_time_inclusive(): ::Google::Protobuf::Timestamp? + attr_writer start_time_inclusive(): (::Google::Protobuf::Timestamp | ::Time)? + def has_start_time_inclusive?: () -> bool + def clear_start_time_inclusive: () -> void + + # Filter for UTC time < - optional. + # Defaults to: start of the next UTC day. + # Must be: within the last 90 days from the current date. + # Must be: midnight UTC time. + attr_reader end_time_exclusive(): ::Google::Protobuf::Timestamp? + attr_writer end_time_exclusive(): (::Google::Protobuf::Timestamp | ::Time)? + def has_end_time_exclusive?: () -> bool + def clear_end_time_exclusive: () -> void + + # The requested size of the page to retrieve - optional. + # Each count corresponds to a single object - per day per namespace + # Cannot exceed 1000. Defaults to 100. + attr_reader page_size(): ::Integer + attr_writer page_size(): ::Integer | ::Float + def clear_page_size: () -> void + + # The page token if this is continuing from another response - optional. + attr_reader page_token(): ::String + attr_writer page_token(): ::String | ::Symbol + def clear_page_token: () -> void + + type init_map = { + start_time_inclusive: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "start_time_inclusive" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + end_time_exclusive: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "end_time_exclusive" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + page_size: (::Integer | ::Float)?, + "page_size" => (::Integer | ::Float)?, + page_token: (::String | ::Symbol)?, + "page_token" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("start_time_inclusive" name) -> ::Google::Protobuf::Timestamp? + | ("end_time_exclusive" name) -> ::Google::Protobuf::Timestamp? + | ("page_size" name) -> ::Integer + | ("page_token" name) -> ::String + + def []=: + ("start_time_inclusive" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("end_time_exclusive" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("page_size" name, (::Integer | ::Float) value) -> void + | ("page_token" name, (::String | ::Symbol) value) -> void + end + + class GetUsageResponse < ::Google::Protobuf::AbstractMessage + + # The list of data based on granularity (per Day for now) + # Ordered by: time range in ascending order + attr_accessor summaries(): ::Google::Protobuf::RepeatedField + def clear_summaries: () -> void + + # The next page's token. + attr_reader next_page_token(): ::String + attr_writer next_page_token(): ::String | ::Symbol + def clear_next_page_token: () -> void + + type init_map = { + summaries: ::Array[::Temporalio::Api::Cloud::Usage::V1::Summary]?, + "summaries" => ::Array[::Temporalio::Api::Cloud::Usage::V1::Summary]?, + next_page_token: (::String | ::Symbol)?, + "next_page_token" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("summaries" name) -> ::Google::Protobuf::RepeatedField + | ("next_page_token" name) -> ::String + + def []=: + ("summaries" name, ::Google::Protobuf::RepeatedField value) -> void + | ("next_page_token" name, (::String | ::Symbol) value) -> void + end + + class GetAccountRequest < ::Google::Protobuf::AbstractMessage + + type init_map = { + } + + def initialize: (?init_map initial_value) -> void + end + + class GetAccountResponse < ::Google::Protobuf::AbstractMessage + + # The account. + attr_accessor account(): ::Temporalio::Api::Cloud::Account::V1::Account? + def has_account?: () -> bool + def clear_account: () -> void + + type init_map = { + account: (::Temporalio::Api::Cloud::Account::V1::Account | ::Temporalio::Api::Cloud::Account::V1::Account::init_map)?, + "account" => (::Temporalio::Api::Cloud::Account::V1::Account | ::Temporalio::Api::Cloud::Account::V1::Account::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("account" name) -> ::Temporalio::Api::Cloud::Account::V1::Account? + + def []=: + ("account" name, ::Temporalio::Api::Cloud::Account::V1::Account? value) -> void + end + + class UpdateAccountRequest < ::Google::Protobuf::AbstractMessage + + # The updated account specification to apply. + attr_accessor spec(): ::Temporalio::Api::Cloud::Account::V1::AccountSpec? + def has_spec?: () -> bool + def clear_spec: () -> void + + # The version of the account for which this update is intended for. + # The latest version can be found in the GetAccount operation response. + attr_reader resource_version(): ::String + attr_writer resource_version(): ::String | ::Symbol + def clear_resource_version: () -> void + + # The id to use for this async operation. + # Optional, if not provided a random id will be generated. + attr_reader async_operation_id(): ::String + attr_writer async_operation_id(): ::String | ::Symbol + def clear_async_operation_id: () -> void + + type init_map = { + spec: (::Temporalio::Api::Cloud::Account::V1::AccountSpec | ::Temporalio::Api::Cloud::Account::V1::AccountSpec::init_map)?, + "spec" => (::Temporalio::Api::Cloud::Account::V1::AccountSpec | ::Temporalio::Api::Cloud::Account::V1::AccountSpec::init_map)?, + resource_version: (::String | ::Symbol)?, + "resource_version" => (::String | ::Symbol)?, + async_operation_id: (::String | ::Symbol)?, + "async_operation_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("spec" name) -> ::Temporalio::Api::Cloud::Account::V1::AccountSpec? + | ("resource_version" name) -> ::String + | ("async_operation_id" name) -> ::String + + def []=: + ("spec" name, ::Temporalio::Api::Cloud::Account::V1::AccountSpec? value) -> void + | ("resource_version" name, (::String | ::Symbol) value) -> void + | ("async_operation_id" name, (::String | ::Symbol) value) -> void + end + + class UpdateAccountResponse < ::Google::Protobuf::AbstractMessage + + # The async operation. + attr_accessor async_operation(): ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + def has_async_operation?: () -> bool + def clear_async_operation: () -> void + + type init_map = { + async_operation: (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + "async_operation" => (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("async_operation" name) -> ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + + def []=: + ("async_operation" name, ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? value) -> void + end + + class CreateNamespaceExportSinkRequest < ::Google::Protobuf::AbstractMessage + + # The namespace under which the sink is configured. + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # The specification for the export sink. + attr_accessor spec(): ::Temporalio::Api::Cloud::Namespace::V1::ExportSinkSpec? + def has_spec?: () -> bool + def clear_spec: () -> void + + # Optional. The ID to use for this async operation. + attr_reader async_operation_id(): ::String + attr_writer async_operation_id(): ::String | ::Symbol + def clear_async_operation_id: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + spec: (::Temporalio::Api::Cloud::Namespace::V1::ExportSinkSpec | ::Temporalio::Api::Cloud::Namespace::V1::ExportSinkSpec::init_map)?, + "spec" => (::Temporalio::Api::Cloud::Namespace::V1::ExportSinkSpec | ::Temporalio::Api::Cloud::Namespace::V1::ExportSinkSpec::init_map)?, + async_operation_id: (::String | ::Symbol)?, + "async_operation_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("spec" name) -> ::Temporalio::Api::Cloud::Namespace::V1::ExportSinkSpec? + | ("async_operation_id" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("spec" name, ::Temporalio::Api::Cloud::Namespace::V1::ExportSinkSpec? value) -> void + | ("async_operation_id" name, (::String | ::Symbol) value) -> void + end + + class CreateNamespaceExportSinkResponse < ::Google::Protobuf::AbstractMessage + + # The async operation. + attr_accessor async_operation(): ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + def has_async_operation?: () -> bool + def clear_async_operation: () -> void + + type init_map = { + async_operation: (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + "async_operation" => (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("async_operation" name) -> ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + + def []=: + ("async_operation" name, ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? value) -> void + end + + class GetNamespaceExportSinkRequest < ::Google::Protobuf::AbstractMessage + + # The namespace to which the sink belongs. + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # The name of the sink to retrieve. + attr_reader name(): ::String + attr_writer name(): ::String | ::Symbol + def clear_name: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + name: (::String | ::Symbol)?, + "name" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("name" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("name" name, (::String | ::Symbol) value) -> void + end + + class GetNamespaceExportSinkResponse < ::Google::Protobuf::AbstractMessage + + # The export sink retrieved. + attr_accessor sink(): ::Temporalio::Api::Cloud::Namespace::V1::ExportSink? + def has_sink?: () -> bool + def clear_sink: () -> void + + type init_map = { + sink: (::Temporalio::Api::Cloud::Namespace::V1::ExportSink | ::Temporalio::Api::Cloud::Namespace::V1::ExportSink::init_map)?, + "sink" => (::Temporalio::Api::Cloud::Namespace::V1::ExportSink | ::Temporalio::Api::Cloud::Namespace::V1::ExportSink::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("sink" name) -> ::Temporalio::Api::Cloud::Namespace::V1::ExportSink? + + def []=: + ("sink" name, ::Temporalio::Api::Cloud::Namespace::V1::ExportSink? value) -> void + end + + class GetNamespaceExportSinksRequest < ::Google::Protobuf::AbstractMessage + + # The namespace to which the sinks belong. + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # The requested size of the page to retrieve. Cannot exceed 1000. + # Defaults to 100 if not specified. + attr_reader page_size(): ::Integer + attr_writer page_size(): ::Integer | ::Float + def clear_page_size: () -> void + + # The page token if this is continuing from another response - optional. + attr_reader page_token(): ::String + attr_writer page_token(): ::String | ::Symbol + def clear_page_token: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + page_size: (::Integer | ::Float)?, + "page_size" => (::Integer | ::Float)?, + page_token: (::String | ::Symbol)?, + "page_token" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("page_size" name) -> ::Integer + | ("page_token" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("page_size" name, (::Integer | ::Float) value) -> void + | ("page_token" name, (::String | ::Symbol) value) -> void + end + + class GetNamespaceExportSinksResponse < ::Google::Protobuf::AbstractMessage + + # The list of export sinks retrieved. + attr_accessor sinks(): ::Google::Protobuf::RepeatedField + def clear_sinks: () -> void + + # The next page token, set if there is another page. + attr_reader next_page_token(): ::String + attr_writer next_page_token(): ::String | ::Symbol + def clear_next_page_token: () -> void + + type init_map = { + sinks: ::Array[::Temporalio::Api::Cloud::Namespace::V1::ExportSink]?, + "sinks" => ::Array[::Temporalio::Api::Cloud::Namespace::V1::ExportSink]?, + next_page_token: (::String | ::Symbol)?, + "next_page_token" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("sinks" name) -> ::Google::Protobuf::RepeatedField + | ("next_page_token" name) -> ::String + + def []=: + ("sinks" name, ::Google::Protobuf::RepeatedField value) -> void + | ("next_page_token" name, (::String | ::Symbol) value) -> void + end + + class UpdateNamespaceExportSinkRequest < ::Google::Protobuf::AbstractMessage + + # The namespace to which the sink belongs. + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # The updated export sink specification. + attr_accessor spec(): ::Temporalio::Api::Cloud::Namespace::V1::ExportSinkSpec? + def has_spec?: () -> bool + def clear_spec: () -> void + + # The version of the sink to update. The latest version can be + # retrieved using the GetNamespaceExportSink call. + attr_reader resource_version(): ::String + attr_writer resource_version(): ::String | ::Symbol + def clear_resource_version: () -> void + + # The ID to use for this async operation - optional. + attr_reader async_operation_id(): ::String + attr_writer async_operation_id(): ::String | ::Symbol + def clear_async_operation_id: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + spec: (::Temporalio::Api::Cloud::Namespace::V1::ExportSinkSpec | ::Temporalio::Api::Cloud::Namespace::V1::ExportSinkSpec::init_map)?, + "spec" => (::Temporalio::Api::Cloud::Namespace::V1::ExportSinkSpec | ::Temporalio::Api::Cloud::Namespace::V1::ExportSinkSpec::init_map)?, + resource_version: (::String | ::Symbol)?, + "resource_version" => (::String | ::Symbol)?, + async_operation_id: (::String | ::Symbol)?, + "async_operation_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("spec" name) -> ::Temporalio::Api::Cloud::Namespace::V1::ExportSinkSpec? + | ("resource_version" name) -> ::String + | ("async_operation_id" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("spec" name, ::Temporalio::Api::Cloud::Namespace::V1::ExportSinkSpec? value) -> void + | ("resource_version" name, (::String | ::Symbol) value) -> void + | ("async_operation_id" name, (::String | ::Symbol) value) -> void + end + + class UpdateNamespaceExportSinkResponse < ::Google::Protobuf::AbstractMessage + + # The async operation. + attr_accessor async_operation(): ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + def has_async_operation?: () -> bool + def clear_async_operation: () -> void + + type init_map = { + async_operation: (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + "async_operation" => (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("async_operation" name) -> ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + + def []=: + ("async_operation" name, ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? value) -> void + end + + class DeleteNamespaceExportSinkRequest < ::Google::Protobuf::AbstractMessage + + # The namespace to which the sink belongs. + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # The name of the sink to delete. + attr_reader name(): ::String + attr_writer name(): ::String | ::Symbol + def clear_name: () -> void + + # The version of the sink to delete. The latest version can be + # retrieved using the GetNamespaceExportSink call. + attr_reader resource_version(): ::String + attr_writer resource_version(): ::String | ::Symbol + def clear_resource_version: () -> void + + # The ID to use for this async operation - optional. + attr_reader async_operation_id(): ::String + attr_writer async_operation_id(): ::String | ::Symbol + def clear_async_operation_id: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + name: (::String | ::Symbol)?, + "name" => (::String | ::Symbol)?, + resource_version: (::String | ::Symbol)?, + "resource_version" => (::String | ::Symbol)?, + async_operation_id: (::String | ::Symbol)?, + "async_operation_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("name" name) -> ::String + | ("resource_version" name) -> ::String + | ("async_operation_id" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("name" name, (::String | ::Symbol) value) -> void + | ("resource_version" name, (::String | ::Symbol) value) -> void + | ("async_operation_id" name, (::String | ::Symbol) value) -> void + end + + class DeleteNamespaceExportSinkResponse < ::Google::Protobuf::AbstractMessage + + # The async operation. + attr_accessor async_operation(): ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + def has_async_operation?: () -> bool + def clear_async_operation: () -> void + + type init_map = { + async_operation: (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + "async_operation" => (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("async_operation" name) -> ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + + def []=: + ("async_operation" name, ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? value) -> void + end + + class ValidateNamespaceExportSinkRequest < ::Google::Protobuf::AbstractMessage + + # The namespace to which the sink belongs. + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # The export sink specification to validate. + attr_accessor spec(): ::Temporalio::Api::Cloud::Namespace::V1::ExportSinkSpec? + def has_spec?: () -> bool + def clear_spec: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + spec: (::Temporalio::Api::Cloud::Namespace::V1::ExportSinkSpec | ::Temporalio::Api::Cloud::Namespace::V1::ExportSinkSpec::init_map)?, + "spec" => (::Temporalio::Api::Cloud::Namespace::V1::ExportSinkSpec | ::Temporalio::Api::Cloud::Namespace::V1::ExportSinkSpec::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("spec" name) -> ::Temporalio::Api::Cloud::Namespace::V1::ExportSinkSpec? + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("spec" name, ::Temporalio::Api::Cloud::Namespace::V1::ExportSinkSpec? value) -> void + end + + class ValidateNamespaceExportSinkResponse < ::Google::Protobuf::AbstractMessage + + type init_map = { + } + + def initialize: (?init_map initial_value) -> void + end + + class UpdateNamespaceTagsRequest < ::Google::Protobuf::AbstractMessage + + # The namespace to set tags for. + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # A list of tags to add or update. + # If a key of an existing tag is added, the tag's value is updated. + # At least one of tags_to_upsert or tags_to_remove must be specified. + attr_accessor tags_to_upsert(): ::Google::Protobuf::Map[::String, ::String] + def clear_tags_to_upsert: () -> void + + # A list of tag keys to remove. + # If a tag key doesn't exist, it is silently ignored. + # At least one of tags_to_upsert or tags_to_remove must be specified. + attr_accessor tags_to_remove(): ::Google::Protobuf::RepeatedField + def clear_tags_to_remove: () -> void + + # The id to use for this async operation - optional. + attr_reader async_operation_id(): ::String + attr_writer async_operation_id(): ::String | ::Symbol + def clear_async_operation_id: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + tags_to_upsert: ::Hash[::String | ::Symbol, ::String | ::Symbol]?, + "tags_to_upsert" => ::Hash[::String | ::Symbol, ::String | ::Symbol]?, + tags_to_remove: ::Array[::String | ::Symbol]?, + "tags_to_remove" => ::Array[::String | ::Symbol]?, + async_operation_id: (::String | ::Symbol)?, + "async_operation_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("tags_to_upsert" name) -> (::Google::Protobuf::Map[::String, ::String]) + | ("tags_to_remove" name) -> (::Google::Protobuf::RepeatedField) + | ("async_operation_id" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("tags_to_upsert" name, (::Google::Protobuf::Map[::String, ::String]) value) -> void + | ("tags_to_remove" name, (::Google::Protobuf::RepeatedField) value) -> void + | ("async_operation_id" name, (::String | ::Symbol) value) -> void + end + + class UpdateNamespaceTagsResponse < ::Google::Protobuf::AbstractMessage + + # The async operation. + attr_accessor async_operation(): ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + def has_async_operation?: () -> bool + def clear_async_operation: () -> void + + type init_map = { + async_operation: (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + "async_operation" => (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("async_operation" name) -> ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + + def []=: + ("async_operation" name, ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? value) -> void + end + + class CreateConnectivityRuleRequest < ::Google::Protobuf::AbstractMessage + + # The connectivity rule specification. + attr_accessor spec(): ::Temporalio::Api::Cloud::ConnectivityRule::V1::ConnectivityRuleSpec? + def has_spec?: () -> bool + def clear_spec: () -> void + + # The id to use for this async operation. + # Optional, if not provided a random id will be generated. + attr_reader async_operation_id(): ::String + attr_writer async_operation_id(): ::String | ::Symbol + def clear_async_operation_id: () -> void + + type init_map = { + spec: (::Temporalio::Api::Cloud::ConnectivityRule::V1::ConnectivityRuleSpec | ::Temporalio::Api::Cloud::ConnectivityRule::V1::ConnectivityRuleSpec::init_map)?, + "spec" => (::Temporalio::Api::Cloud::ConnectivityRule::V1::ConnectivityRuleSpec | ::Temporalio::Api::Cloud::ConnectivityRule::V1::ConnectivityRuleSpec::init_map)?, + async_operation_id: (::String | ::Symbol)?, + "async_operation_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("spec" name) -> ::Temporalio::Api::Cloud::ConnectivityRule::V1::ConnectivityRuleSpec? + | ("async_operation_id" name) -> ::String + + def []=: + ("spec" name, ::Temporalio::Api::Cloud::ConnectivityRule::V1::ConnectivityRuleSpec? value) -> void + | ("async_operation_id" name, (::String | ::Symbol) value) -> void + end + + class CreateConnectivityRuleResponse < ::Google::Protobuf::AbstractMessage + + # The id of the connectivity rule that was created. + attr_reader connectivity_rule_id(): ::String + attr_writer connectivity_rule_id(): ::String | ::Symbol + def clear_connectivity_rule_id: () -> void + + # The async operation + attr_accessor async_operation(): ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + def has_async_operation?: () -> bool + def clear_async_operation: () -> void + + type init_map = { + connectivity_rule_id: (::String | ::Symbol)?, + "connectivity_rule_id" => (::String | ::Symbol)?, + async_operation: (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + "async_operation" => (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("connectivity_rule_id" name) -> ::String + | ("async_operation" name) -> ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + + def []=: + ("connectivity_rule_id" name, (::String | ::Symbol) value) -> void + | ("async_operation" name, ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? value) -> void + end + + class GetConnectivityRuleRequest < ::Google::Protobuf::AbstractMessage + + # The id of the connectivity rule to get. + attr_reader connectivity_rule_id(): ::String + attr_writer connectivity_rule_id(): ::String | ::Symbol + def clear_connectivity_rule_id: () -> void + + type init_map = { + connectivity_rule_id: (::String | ::Symbol)?, + "connectivity_rule_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("connectivity_rule_id" name) -> ::String + + def []=: + ("connectivity_rule_id" name, (::String | ::Symbol) value) -> void + end + + class GetConnectivityRuleResponse < ::Google::Protobuf::AbstractMessage + + attr_accessor connectivity_rule(): ::Temporalio::Api::Cloud::ConnectivityRule::V1::ConnectivityRule? + def has_connectivity_rule?: () -> bool + def clear_connectivity_rule: () -> void + + type init_map = { + connectivity_rule: (::Temporalio::Api::Cloud::ConnectivityRule::V1::ConnectivityRule | ::Temporalio::Api::Cloud::ConnectivityRule::V1::ConnectivityRule::init_map)?, + "connectivity_rule" => (::Temporalio::Api::Cloud::ConnectivityRule::V1::ConnectivityRule | ::Temporalio::Api::Cloud::ConnectivityRule::V1::ConnectivityRule::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("connectivity_rule" name) -> ::Temporalio::Api::Cloud::ConnectivityRule::V1::ConnectivityRule? + + def []=: + ("connectivity_rule" name, ::Temporalio::Api::Cloud::ConnectivityRule::V1::ConnectivityRule? value) -> void + end + + class GetConnectivityRulesRequest < ::Google::Protobuf::AbstractMessage + + # The requested size of the page to retrieve. + # Optional, defaults to 100. + attr_reader page_size(): ::Integer + attr_writer page_size(): ::Integer | ::Float + def clear_page_size: () -> void + + # The page token if this is continuing from another response. + # Optional, defaults to empty. + attr_reader page_token(): ::String + attr_writer page_token(): ::String | ::Symbol + def clear_page_token: () -> void + + # Filter connectivity rule by the namespace id. + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + type init_map = { + page_size: (::Integer | ::Float)?, + "page_size" => (::Integer | ::Float)?, + page_token: (::String | ::Symbol)?, + "page_token" => (::String | ::Symbol)?, + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("page_size" name) -> ::Integer + | ("page_token" name) -> ::String + | ("namespace" name) -> ::String + + def []=: + ("page_size" name, (::Integer | ::Float) value) -> void + | ("page_token" name, (::String | ::Symbol) value) -> void + | ("namespace" name, (::String | ::Symbol) value) -> void + end + + class GetConnectivityRulesResponse < ::Google::Protobuf::AbstractMessage + + # connectivity_rules returned + attr_accessor connectivity_rules(): ::Google::Protobuf::RepeatedField + def clear_connectivity_rules: () -> void + + # The next page token + attr_reader next_page_token(): ::String + attr_writer next_page_token(): ::String | ::Symbol + def clear_next_page_token: () -> void + + type init_map = { + connectivity_rules: ::Array[::Temporalio::Api::Cloud::ConnectivityRule::V1::ConnectivityRule]?, + "connectivity_rules" => ::Array[::Temporalio::Api::Cloud::ConnectivityRule::V1::ConnectivityRule]?, + next_page_token: (::String | ::Symbol)?, + "next_page_token" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("connectivity_rules" name) -> ::Google::Protobuf::RepeatedField + | ("next_page_token" name) -> ::String + + def []=: + ("connectivity_rules" name, ::Google::Protobuf::RepeatedField value) -> void + | ("next_page_token" name, (::String | ::Symbol) value) -> void + end + + class DeleteConnectivityRuleRequest < ::Google::Protobuf::AbstractMessage + + # The ID of the connectivity rule that need be deleted, required. + attr_reader connectivity_rule_id(): ::String + attr_writer connectivity_rule_id(): ::String | ::Symbol + def clear_connectivity_rule_id: () -> void + + # The resource version which should be the same from the the db, required + # The latest version can be found in the GetConnectivityRule operation response + attr_reader resource_version(): ::String + attr_writer resource_version(): ::String | ::Symbol + def clear_resource_version: () -> void + + # The id to use for this async operation. + # Optional, if not provided a random id will be generated. + attr_reader async_operation_id(): ::String + attr_writer async_operation_id(): ::String | ::Symbol + def clear_async_operation_id: () -> void + + type init_map = { + connectivity_rule_id: (::String | ::Symbol)?, + "connectivity_rule_id" => (::String | ::Symbol)?, + resource_version: (::String | ::Symbol)?, + "resource_version" => (::String | ::Symbol)?, + async_operation_id: (::String | ::Symbol)?, + "async_operation_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("connectivity_rule_id" name) -> ::String + | ("resource_version" name) -> ::String + | ("async_operation_id" name) -> ::String + + def []=: + ("connectivity_rule_id" name, (::String | ::Symbol) value) -> void + | ("resource_version" name, (::String | ::Symbol) value) -> void + | ("async_operation_id" name, (::String | ::Symbol) value) -> void + end + + class DeleteConnectivityRuleResponse < ::Google::Protobuf::AbstractMessage + + # The async operation + attr_accessor async_operation(): ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + def has_async_operation?: () -> bool + def clear_async_operation: () -> void + + type init_map = { + async_operation: (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + "async_operation" => (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("async_operation" name) -> ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? + + def []=: + ("async_operation" name, ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation? value) -> void + end + + class ValidateAccountAuditLogSinkRequest < ::Google::Protobuf::AbstractMessage + + # The audit log sink spec that will be validated + attr_accessor spec(): ::Temporalio::Api::Cloud::Account::V1::AuditLogSinkSpec? + def has_spec?: () -> bool + def clear_spec: () -> void + + type init_map = { + spec: (::Temporalio::Api::Cloud::Account::V1::AuditLogSinkSpec | ::Temporalio::Api::Cloud::Account::V1::AuditLogSinkSpec::init_map)?, + "spec" => (::Temporalio::Api::Cloud::Account::V1::AuditLogSinkSpec | ::Temporalio::Api::Cloud::Account::V1::AuditLogSinkSpec::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("spec" name) -> ::Temporalio::Api::Cloud::Account::V1::AuditLogSinkSpec? + + def []=: + ("spec" name, ::Temporalio::Api::Cloud::Account::V1::AuditLogSinkSpec? value) -> void + end + + class ValidateAccountAuditLogSinkResponse < ::Google::Protobuf::AbstractMessage + + type init_map = { + } + + def initialize: (?init_map initial_value) -> void + end + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/api/cloud/cloudservice/v1/service.rbs b/temporalio/sig/temporalio/api/cloud/cloudservice/v1/service.rbs new file mode 100644 index 00000000..c91f12e6 --- /dev/null +++ b/temporalio/sig/temporalio/api/cloud/cloudservice/v1/service.rbs @@ -0,0 +1,25 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/api/cloud/cloudservice/v1/service.proto + +module Temporalio + module Api + module Cloud + module CloudService + module V1 + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/api/cloud/connectivityrule/v1/message.rbs b/temporalio/sig/temporalio/api/cloud/connectivityrule/v1/message.rbs new file mode 100644 index 00000000..8fddb9ae --- /dev/null +++ b/temporalio/sig/temporalio/api/cloud/connectivityrule/v1/message.rbs @@ -0,0 +1,178 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/api/cloud/connectivityrule/v1/message.proto + +module Temporalio + module Api + module Cloud + module ConnectivityRule + module V1 + class ConnectivityRule < ::Google::Protobuf::AbstractMessage + + # The id of the private connectivity rule. + attr_reader id(): ::String + attr_writer id(): ::String | ::Symbol + def clear_id: () -> void + + # The connectivity rule specification. + attr_accessor spec(): ::Temporalio::Api::Cloud::ConnectivityRule::V1::ConnectivityRuleSpec? + def has_spec?: () -> bool + def clear_spec: () -> void + + # The current version of the connectivity rule specification. + # The next update operation will have to include this version. + attr_reader resource_version(): ::String + attr_writer resource_version(): ::String | ::Symbol + def clear_resource_version: () -> void + + attr_reader state(): ::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Integer + attr_writer state(): ::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Temporalio::Api::Cloud::Resource::V1::ResourceState::strings | ::Integer | ::Float + attr_reader state_const(): ::Integer + def clear_state: () -> void + + # The id of the async operation that is creating/updating/deleting the connectivity rule, if any. + attr_reader async_operation_id(): ::String + attr_writer async_operation_id(): ::String | ::Symbol + def clear_async_operation_id: () -> void + + # The date and time when the connectivity rule was created. + attr_reader created_time(): ::Google::Protobuf::Timestamp? + attr_writer created_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_created_time?: () -> bool + def clear_created_time: () -> void + + type init_map = { + id: (::String | ::Symbol)?, + "id" => (::String | ::Symbol)?, + spec: (::Temporalio::Api::Cloud::ConnectivityRule::V1::ConnectivityRuleSpec | ::Temporalio::Api::Cloud::ConnectivityRule::V1::ConnectivityRuleSpec::init_map)?, + "spec" => (::Temporalio::Api::Cloud::ConnectivityRule::V1::ConnectivityRuleSpec | ::Temporalio::Api::Cloud::ConnectivityRule::V1::ConnectivityRuleSpec::init_map)?, + resource_version: (::String | ::Symbol)?, + "resource_version" => (::String | ::Symbol)?, + state: (::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Temporalio::Api::Cloud::Resource::V1::ResourceState::strings | ::Integer | ::Float)?, + "state" => (::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Temporalio::Api::Cloud::Resource::V1::ResourceState::strings | ::Integer | ::Float)?, + async_operation_id: (::String | ::Symbol)?, + "async_operation_id" => (::String | ::Symbol)?, + created_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "created_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("id" name) -> ::String + | ("spec" name) -> ::Temporalio::Api::Cloud::ConnectivityRule::V1::ConnectivityRuleSpec? + | ("resource_version" name) -> ::String + | ("state" name) -> (::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Integer) + | ("async_operation_id" name) -> ::String + | ("created_time" name) -> ::Google::Protobuf::Timestamp? + + def []=: + ("id" name, (::String | ::Symbol) value) -> void + | ("spec" name, ::Temporalio::Api::Cloud::ConnectivityRule::V1::ConnectivityRuleSpec? value) -> void + | ("resource_version" name, (::String | ::Symbol) value) -> void + | ("state" name, (::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Temporalio::Api::Cloud::Resource::V1::ResourceState::strings | ::Integer | ::Float) value) -> void + | ("async_operation_id" name, (::String | ::Symbol) value) -> void + | ("created_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + end + + # The connectivity rule specification passed in on create/update operations. + class ConnectivityRuleSpec < ::Google::Protobuf::AbstractMessage + + # This allows access via public internet. + attr_accessor public_rule(): ::Temporalio::Api::Cloud::ConnectivityRule::V1::PublicConnectivityRule? + def has_public_rule?: () -> bool + def clear_public_rule: () -> void + + # This allows access via specific private vpc. + attr_accessor private_rule(): ::Temporalio::Api::Cloud::ConnectivityRule::V1::PrivateConnectivityRule? + def has_private_rule?: () -> bool + def clear_private_rule: () -> void + + attr_reader connection_type(): (::Temporalio::Api::Cloud::ConnectivityRule::V1::PublicConnectivityRule | ::Temporalio::Api::Cloud::ConnectivityRule::V1::PrivateConnectivityRule)? + def has_connection_type?: () -> bool + def clear_connection_type: () -> void + + type init_map = { + public_rule: (::Temporalio::Api::Cloud::ConnectivityRule::V1::PublicConnectivityRule | ::Temporalio::Api::Cloud::ConnectivityRule::V1::PublicConnectivityRule::init_map)?, + "public_rule" => (::Temporalio::Api::Cloud::ConnectivityRule::V1::PublicConnectivityRule | ::Temporalio::Api::Cloud::ConnectivityRule::V1::PublicConnectivityRule::init_map)?, + private_rule: (::Temporalio::Api::Cloud::ConnectivityRule::V1::PrivateConnectivityRule | ::Temporalio::Api::Cloud::ConnectivityRule::V1::PrivateConnectivityRule::init_map)?, + "private_rule" => (::Temporalio::Api::Cloud::ConnectivityRule::V1::PrivateConnectivityRule | ::Temporalio::Api::Cloud::ConnectivityRule::V1::PrivateConnectivityRule::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("public_rule" name) -> ::Temporalio::Api::Cloud::ConnectivityRule::V1::PublicConnectivityRule? + | ("private_rule" name) -> ::Temporalio::Api::Cloud::ConnectivityRule::V1::PrivateConnectivityRule? + + def []=: + ("public_rule" name, ::Temporalio::Api::Cloud::ConnectivityRule::V1::PublicConnectivityRule? value) -> void + | ("private_rule" name, ::Temporalio::Api::Cloud::ConnectivityRule::V1::PrivateConnectivityRule? value) -> void + end + + # A public connectivity rule allows access to the namespace via the public internet. + class PublicConnectivityRule < ::Google::Protobuf::AbstractMessage + + type init_map = { + } + + def initialize: (?init_map initial_value) -> void + end + + # A private connectivity rule allows connections from a specific private vpc only. + class PrivateConnectivityRule < ::Google::Protobuf::AbstractMessage + + # Connection id provided to enforce the private connectivity. This is required both by AWS and GCP. + attr_reader connection_id(): ::String + attr_writer connection_id(): ::String | ::Symbol + def clear_connection_id: () -> void + + # For GCP private connectivity service, GCP needs both GCP project id and the Private Service Connect Connection IDs + # AWS only needs the connection_id + attr_reader gcp_project_id(): ::String + attr_writer gcp_project_id(): ::String | ::Symbol + def clear_gcp_project_id: () -> void + + # The region of the connectivity rule. This should align with the namespace. + # Example: "aws-us-west-2" + attr_reader region(): ::String + attr_writer region(): ::String | ::Symbol + def clear_region: () -> void + + type init_map = { + connection_id: (::String | ::Symbol)?, + "connection_id" => (::String | ::Symbol)?, + gcp_project_id: (::String | ::Symbol)?, + "gcp_project_id" => (::String | ::Symbol)?, + region: (::String | ::Symbol)?, + "region" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("connection_id" name) -> ::String + | ("gcp_project_id" name) -> ::String + | ("region" name) -> ::String + + def []=: + ("connection_id" name, (::String | ::Symbol) value) -> void + | ("gcp_project_id" name, (::String | ::Symbol) value) -> void + | ("region" name, (::String | ::Symbol) value) -> void + end + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/api/cloud/identity/v1/message.rbs b/temporalio/sig/temporalio/api/cloud/identity/v1/message.rbs new file mode 100644 index 00000000..58837eb5 --- /dev/null +++ b/temporalio/sig/temporalio/api/cloud/identity/v1/message.rbs @@ -0,0 +1,1000 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/api/cloud/identity/v1/message.proto + +module Temporalio + module Api + module Cloud + module Identity + module V1 + class AccountAccess < ::Google::Protobuf::AbstractMessage + module Role + + ROLE_UNSPECIFIED: 0 + + ROLE_OWNER: 1 + + ROLE_ADMIN: 2 + + ROLE_DEVELOPER: 3 + + ROLE_FINANCE_ADMIN: 4 + + ROLE_READ: 5 + + ROLE_METRICS_READ: 6 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :ROLE_UNSPECIFIED | :ROLE_OWNER | :ROLE_ADMIN | :ROLE_DEVELOPER | :ROLE_FINANCE_ADMIN | :ROLE_READ | :ROLE_METRICS_READ + + type strings = "ROLE_UNSPECIFIED" | "ROLE_OWNER" | "ROLE_ADMIN" | "ROLE_DEVELOPER" | "ROLE_FINANCE_ADMIN" | "ROLE_READ" | "ROLE_METRICS_READ" + + type numbers = 0 | 1 | 2 | 3 | 4 | 5 | 6 + end + + # The role on the account, should be one of [owner, admin, developer, financeadmin, read, metricsread] + # owner - gives full access to the account, including users, namespaces, and billing + # admin - gives full access the account, including users and namespaces + # developer - gives access to create namespaces on the account + # financeadmin - gives read only access and write access for billing + # read - gives read only access to the account + # metricsread - gives read only access to all namespace metrics + # Deprecated: Not supported after v0.3.0 api version. Use role instead. + # temporal:versioning:max_version=v0.3.0 + # @deprecated + attr_reader role_deprecated(): ::String + attr_writer role_deprecated(): ::String | ::Symbol + def clear_role_deprecated: () -> void + + # The role on the account. + # temporal:versioning:min_version=v0.3.0 + # temporal:enums:replaces=role_deprecated + attr_reader role(): ::Temporalio::Api::Cloud::Identity::V1::AccountAccess::Role::names | ::Integer + attr_writer role(): ::Temporalio::Api::Cloud::Identity::V1::AccountAccess::Role::names | ::Temporalio::Api::Cloud::Identity::V1::AccountAccess::Role::strings | ::Integer | ::Float + attr_reader role_const(): ::Integer + def clear_role: () -> void + + type init_map = { + role_deprecated: (::String | ::Symbol)?, + "role_deprecated" => (::String | ::Symbol)?, + role: (::Temporalio::Api::Cloud::Identity::V1::AccountAccess::Role::names | ::Temporalio::Api::Cloud::Identity::V1::AccountAccess::Role::strings | ::Integer | ::Float)?, + "role" => (::Temporalio::Api::Cloud::Identity::V1::AccountAccess::Role::names | ::Temporalio::Api::Cloud::Identity::V1::AccountAccess::Role::strings | ::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("role_deprecated" name) -> ::String + | ("role" name) -> (::Temporalio::Api::Cloud::Identity::V1::AccountAccess::Role::names | ::Integer) + + def []=: + ("role_deprecated" name, (::String | ::Symbol) value) -> void + | ("role" name, (::Temporalio::Api::Cloud::Identity::V1::AccountAccess::Role::names | ::Temporalio::Api::Cloud::Identity::V1::AccountAccess::Role::strings | ::Integer | ::Float) value) -> void + end + + class NamespaceAccess < ::Google::Protobuf::AbstractMessage + module Permission + + PERMISSION_UNSPECIFIED: 0 + + PERMISSION_ADMIN: 1 + + PERMISSION_WRITE: 2 + + PERMISSION_READ: 3 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :PERMISSION_UNSPECIFIED | :PERMISSION_ADMIN | :PERMISSION_WRITE | :PERMISSION_READ + + type strings = "PERMISSION_UNSPECIFIED" | "PERMISSION_ADMIN" | "PERMISSION_WRITE" | "PERMISSION_READ" + + type numbers = 0 | 1 | 2 | 3 + end + + # The permission to the namespace, should be one of [admin, write, read] + # admin - gives full access to the namespace, including assigning namespace access to other users + # write - gives write access to the namespace configuration and workflows within the namespace + # read - gives read only access to the namespace configuration and workflows within the namespace + # Deprecated: Not supported after v0.3.0 api version. Use permission instead. + # temporal:versioning:max_version=v0.3.0 + # @deprecated + attr_reader permission_deprecated(): ::String + attr_writer permission_deprecated(): ::String | ::Symbol + def clear_permission_deprecated: () -> void + + # The permission to the namespace. + # temporal:versioning:min_version=v0.3.0 + # temporal:enums:replaces=permission_deprecated + attr_reader permission(): ::Temporalio::Api::Cloud::Identity::V1::NamespaceAccess::Permission::names | ::Integer + attr_writer permission(): ::Temporalio::Api::Cloud::Identity::V1::NamespaceAccess::Permission::names | ::Temporalio::Api::Cloud::Identity::V1::NamespaceAccess::Permission::strings | ::Integer | ::Float + attr_reader permission_const(): ::Integer + def clear_permission: () -> void + + type init_map = { + permission_deprecated: (::String | ::Symbol)?, + "permission_deprecated" => (::String | ::Symbol)?, + permission: (::Temporalio::Api::Cloud::Identity::V1::NamespaceAccess::Permission::names | ::Temporalio::Api::Cloud::Identity::V1::NamespaceAccess::Permission::strings | ::Integer | ::Float)?, + "permission" => (::Temporalio::Api::Cloud::Identity::V1::NamespaceAccess::Permission::names | ::Temporalio::Api::Cloud::Identity::V1::NamespaceAccess::Permission::strings | ::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("permission_deprecated" name) -> ::String + | ("permission" name) -> (::Temporalio::Api::Cloud::Identity::V1::NamespaceAccess::Permission::names | ::Integer) + + def []=: + ("permission_deprecated" name, (::String | ::Symbol) value) -> void + | ("permission" name, (::Temporalio::Api::Cloud::Identity::V1::NamespaceAccess::Permission::names | ::Temporalio::Api::Cloud::Identity::V1::NamespaceAccess::Permission::strings | ::Integer | ::Float) value) -> void + end + + class Access < ::Google::Protobuf::AbstractMessage + + # The account access + attr_accessor account_access(): ::Temporalio::Api::Cloud::Identity::V1::AccountAccess? + def has_account_access?: () -> bool + def clear_account_access: () -> void + + # The map of namespace accesses + # The key is the namespace name and the value is the access to the namespace + attr_accessor namespace_accesses(): ::Google::Protobuf::Map[::String, ::Temporalio::Api::Cloud::Identity::V1::NamespaceAccess] + def clear_namespace_accesses: () -> void + + type init_map = { + account_access: (::Temporalio::Api::Cloud::Identity::V1::AccountAccess | ::Temporalio::Api::Cloud::Identity::V1::AccountAccess::init_map)?, + "account_access" => (::Temporalio::Api::Cloud::Identity::V1::AccountAccess | ::Temporalio::Api::Cloud::Identity::V1::AccountAccess::init_map)?, + namespace_accesses: ::Hash[::String | ::Symbol, ::Temporalio::Api::Cloud::Identity::V1::NamespaceAccess]?, + "namespace_accesses" => ::Hash[::String | ::Symbol, ::Temporalio::Api::Cloud::Identity::V1::NamespaceAccess]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("account_access" name) -> ::Temporalio::Api::Cloud::Identity::V1::AccountAccess? + | ("namespace_accesses" name) -> (::Google::Protobuf::Map[::String, ::Temporalio::Api::Cloud::Identity::V1::NamespaceAccess]) + + def []=: + ("account_access" name, ::Temporalio::Api::Cloud::Identity::V1::AccountAccess? value) -> void + | ("namespace_accesses" name, (::Google::Protobuf::Map[::String, ::Temporalio::Api::Cloud::Identity::V1::NamespaceAccess]) value) -> void + end + + class NamespaceScopedAccess < ::Google::Protobuf::AbstractMessage + + # The namespace the service account is assigned to - immutable. + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # The namespace access assigned to the service account - mutable. + attr_accessor access(): ::Temporalio::Api::Cloud::Identity::V1::NamespaceAccess? + def has_access?: () -> bool + def clear_access: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + access: (::Temporalio::Api::Cloud::Identity::V1::NamespaceAccess | ::Temporalio::Api::Cloud::Identity::V1::NamespaceAccess::init_map)?, + "access" => (::Temporalio::Api::Cloud::Identity::V1::NamespaceAccess | ::Temporalio::Api::Cloud::Identity::V1::NamespaceAccess::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("access" name) -> ::Temporalio::Api::Cloud::Identity::V1::NamespaceAccess? + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("access" name, ::Temporalio::Api::Cloud::Identity::V1::NamespaceAccess? value) -> void + end + + class UserSpec < ::Google::Protobuf::AbstractMessage + + # The email address associated to the user + attr_reader email(): ::String + attr_writer email(): ::String | ::Symbol + def clear_email: () -> void + + # The access to assigned to the user + attr_accessor access(): ::Temporalio::Api::Cloud::Identity::V1::Access? + def has_access?: () -> bool + def clear_access: () -> void + + type init_map = { + email: (::String | ::Symbol)?, + "email" => (::String | ::Symbol)?, + access: (::Temporalio::Api::Cloud::Identity::V1::Access | ::Temporalio::Api::Cloud::Identity::V1::Access::init_map)?, + "access" => (::Temporalio::Api::Cloud::Identity::V1::Access | ::Temporalio::Api::Cloud::Identity::V1::Access::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("email" name) -> ::String + | ("access" name) -> ::Temporalio::Api::Cloud::Identity::V1::Access? + + def []=: + ("email" name, (::String | ::Symbol) value) -> void + | ("access" name, ::Temporalio::Api::Cloud::Identity::V1::Access? value) -> void + end + + class Invitation < ::Google::Protobuf::AbstractMessage + + # The date and time when the user was created + attr_reader created_time(): ::Google::Protobuf::Timestamp? + attr_writer created_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_created_time?: () -> bool + def clear_created_time: () -> void + + # The date and time when the invitation expires or has expired + attr_reader expired_time(): ::Google::Protobuf::Timestamp? + attr_writer expired_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_expired_time?: () -> bool + def clear_expired_time: () -> void + + type init_map = { + created_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "created_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + expired_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "expired_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("created_time" name) -> ::Google::Protobuf::Timestamp? + | ("expired_time" name) -> ::Google::Protobuf::Timestamp? + + def []=: + ("created_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("expired_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + end + + class User < ::Google::Protobuf::AbstractMessage + + # The id of the user + attr_reader id(): ::String + attr_writer id(): ::String | ::Symbol + def clear_id: () -> void + + # The current version of the user specification + # The next update operation will have to include this version + attr_reader resource_version(): ::String + attr_writer resource_version(): ::String | ::Symbol + def clear_resource_version: () -> void + + # The user specification + attr_accessor spec(): ::Temporalio::Api::Cloud::Identity::V1::UserSpec? + def has_spec?: () -> bool + def clear_spec: () -> void + + # The current state of the user + # Deprecated: Not supported after v0.3.0 api version. Use state instead. + # temporal:versioning:max_version=v0.3.0 + # @deprecated + attr_reader state_deprecated(): ::String + attr_writer state_deprecated(): ::String | ::Symbol + def clear_state_deprecated: () -> void + + # The current state of the user. + # For any failed state, reach out to Temporal Cloud support for remediation. + # temporal:versioning:min_version=v0.3.0 + # temporal:enums:replaces=state_deprecated + attr_reader state(): ::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Integer + attr_writer state(): ::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Temporalio::Api::Cloud::Resource::V1::ResourceState::strings | ::Integer | ::Float + attr_reader state_const(): ::Integer + def clear_state: () -> void + + # The id of the async operation that is creating/updating/deleting the user, if any + attr_reader async_operation_id(): ::String + attr_writer async_operation_id(): ::String | ::Symbol + def clear_async_operation_id: () -> void + + # The details of the open invitation sent to the user, if any + attr_accessor invitation(): ::Temporalio::Api::Cloud::Identity::V1::Invitation? + def has_invitation?: () -> bool + def clear_invitation: () -> void + + # The date and time when the user was created + attr_reader created_time(): ::Google::Protobuf::Timestamp? + attr_writer created_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_created_time?: () -> bool + def clear_created_time: () -> void + + # The date and time when the user was last modified + # Will not be set if the user has never been modified + attr_reader last_modified_time(): ::Google::Protobuf::Timestamp? + attr_writer last_modified_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_last_modified_time?: () -> bool + def clear_last_modified_time: () -> void + + type init_map = { + id: (::String | ::Symbol)?, + "id" => (::String | ::Symbol)?, + resource_version: (::String | ::Symbol)?, + "resource_version" => (::String | ::Symbol)?, + spec: (::Temporalio::Api::Cloud::Identity::V1::UserSpec | ::Temporalio::Api::Cloud::Identity::V1::UserSpec::init_map)?, + "spec" => (::Temporalio::Api::Cloud::Identity::V1::UserSpec | ::Temporalio::Api::Cloud::Identity::V1::UserSpec::init_map)?, + state_deprecated: (::String | ::Symbol)?, + "state_deprecated" => (::String | ::Symbol)?, + state: (::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Temporalio::Api::Cloud::Resource::V1::ResourceState::strings | ::Integer | ::Float)?, + "state" => (::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Temporalio::Api::Cloud::Resource::V1::ResourceState::strings | ::Integer | ::Float)?, + async_operation_id: (::String | ::Symbol)?, + "async_operation_id" => (::String | ::Symbol)?, + invitation: (::Temporalio::Api::Cloud::Identity::V1::Invitation | ::Temporalio::Api::Cloud::Identity::V1::Invitation::init_map)?, + "invitation" => (::Temporalio::Api::Cloud::Identity::V1::Invitation | ::Temporalio::Api::Cloud::Identity::V1::Invitation::init_map)?, + created_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "created_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + last_modified_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "last_modified_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("id" name) -> ::String + | ("resource_version" name) -> ::String + | ("spec" name) -> ::Temporalio::Api::Cloud::Identity::V1::UserSpec? + | ("state_deprecated" name) -> ::String + | ("state" name) -> (::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Integer) + | ("async_operation_id" name) -> ::String + | ("invitation" name) -> ::Temporalio::Api::Cloud::Identity::V1::Invitation? + | ("created_time" name) -> ::Google::Protobuf::Timestamp? + | ("last_modified_time" name) -> ::Google::Protobuf::Timestamp? + + def []=: + ("id" name, (::String | ::Symbol) value) -> void + | ("resource_version" name, (::String | ::Symbol) value) -> void + | ("spec" name, ::Temporalio::Api::Cloud::Identity::V1::UserSpec? value) -> void + | ("state_deprecated" name, (::String | ::Symbol) value) -> void + | ("state" name, (::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Temporalio::Api::Cloud::Resource::V1::ResourceState::strings | ::Integer | ::Float) value) -> void + | ("async_operation_id" name, (::String | ::Symbol) value) -> void + | ("invitation" name, ::Temporalio::Api::Cloud::Identity::V1::Invitation? value) -> void + | ("created_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("last_modified_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + end + + class GoogleGroupSpec < ::Google::Protobuf::AbstractMessage + + # The email address of the Google group. + # The email address is immutable. Once set during creation, it cannot be changed. + attr_reader email_address(): ::String + attr_writer email_address(): ::String | ::Symbol + def clear_email_address: () -> void + + type init_map = { + email_address: (::String | ::Symbol)?, + "email_address" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("email_address" name) -> ::String + + def []=: + ("email_address" name, (::String | ::Symbol) value) -> void + end + + class SCIMGroupSpec < ::Google::Protobuf::AbstractMessage + + # The id used in the upstream identity provider. + attr_reader idp_id(): ::String + attr_writer idp_id(): ::String | ::Symbol + def clear_idp_id: () -> void + + type init_map = { + idp_id: (::String | ::Symbol)?, + "idp_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("idp_id" name) -> ::String + + def []=: + ("idp_id" name, (::String | ::Symbol) value) -> void + end + + class CloudGroupSpec < ::Google::Protobuf::AbstractMessage + + type init_map = { + } + + def initialize: (?init_map initial_value) -> void + end + + class UserGroupSpec < ::Google::Protobuf::AbstractMessage + + # The display name of the group. + attr_reader display_name(): ::String + attr_writer display_name(): ::String | ::Symbol + def clear_display_name: () -> void + + # The access assigned to the group. + attr_accessor access(): ::Temporalio::Api::Cloud::Identity::V1::Access? + def has_access?: () -> bool + def clear_access: () -> void + + # The specification of the google group that this group is associated with. + attr_accessor google_group(): ::Temporalio::Api::Cloud::Identity::V1::GoogleGroupSpec? + def has_google_group?: () -> bool + def clear_google_group: () -> void + + # The specification of the SCIM group that this group is associated with. + # SCIM groups cannot be created or deleted directly, but their access can be managed. + attr_accessor scim_group(): ::Temporalio::Api::Cloud::Identity::V1::SCIMGroupSpec? + def has_scim_group?: () -> bool + def clear_scim_group: () -> void + + # The specification for a Cloud group. Cloud groups can manage members using + # the add and remove member APIs. + attr_accessor cloud_group(): ::Temporalio::Api::Cloud::Identity::V1::CloudGroupSpec? + def has_cloud_group?: () -> bool + def clear_cloud_group: () -> void + + attr_reader group_type(): (::Temporalio::Api::Cloud::Identity::V1::GoogleGroupSpec | ::Temporalio::Api::Cloud::Identity::V1::SCIMGroupSpec | ::Temporalio::Api::Cloud::Identity::V1::CloudGroupSpec)? + def has_group_type?: () -> bool + def clear_group_type: () -> void + + type init_map = { + display_name: (::String | ::Symbol)?, + "display_name" => (::String | ::Symbol)?, + access: (::Temporalio::Api::Cloud::Identity::V1::Access | ::Temporalio::Api::Cloud::Identity::V1::Access::init_map)?, + "access" => (::Temporalio::Api::Cloud::Identity::V1::Access | ::Temporalio::Api::Cloud::Identity::V1::Access::init_map)?, + google_group: (::Temporalio::Api::Cloud::Identity::V1::GoogleGroupSpec | ::Temporalio::Api::Cloud::Identity::V1::GoogleGroupSpec::init_map)?, + "google_group" => (::Temporalio::Api::Cloud::Identity::V1::GoogleGroupSpec | ::Temporalio::Api::Cloud::Identity::V1::GoogleGroupSpec::init_map)?, + scim_group: (::Temporalio::Api::Cloud::Identity::V1::SCIMGroupSpec | ::Temporalio::Api::Cloud::Identity::V1::SCIMGroupSpec::init_map)?, + "scim_group" => (::Temporalio::Api::Cloud::Identity::V1::SCIMGroupSpec | ::Temporalio::Api::Cloud::Identity::V1::SCIMGroupSpec::init_map)?, + cloud_group: (::Temporalio::Api::Cloud::Identity::V1::CloudGroupSpec | ::Temporalio::Api::Cloud::Identity::V1::CloudGroupSpec::init_map)?, + "cloud_group" => (::Temporalio::Api::Cloud::Identity::V1::CloudGroupSpec | ::Temporalio::Api::Cloud::Identity::V1::CloudGroupSpec::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("display_name" name) -> ::String + | ("access" name) -> ::Temporalio::Api::Cloud::Identity::V1::Access? + | ("google_group" name) -> ::Temporalio::Api::Cloud::Identity::V1::GoogleGroupSpec? + | ("scim_group" name) -> ::Temporalio::Api::Cloud::Identity::V1::SCIMGroupSpec? + | ("cloud_group" name) -> ::Temporalio::Api::Cloud::Identity::V1::CloudGroupSpec? + + def []=: + ("display_name" name, (::String | ::Symbol) value) -> void + | ("access" name, ::Temporalio::Api::Cloud::Identity::V1::Access? value) -> void + | ("google_group" name, ::Temporalio::Api::Cloud::Identity::V1::GoogleGroupSpec? value) -> void + | ("scim_group" name, ::Temporalio::Api::Cloud::Identity::V1::SCIMGroupSpec? value) -> void + | ("cloud_group" name, ::Temporalio::Api::Cloud::Identity::V1::CloudGroupSpec? value) -> void + end + + class UserGroup < ::Google::Protobuf::AbstractMessage + + # The id of the group + attr_reader id(): ::String + attr_writer id(): ::String | ::Symbol + def clear_id: () -> void + + # The current version of the group specification + # The next update operation will have to include this version + attr_reader resource_version(): ::String + attr_writer resource_version(): ::String | ::Symbol + def clear_resource_version: () -> void + + # The group specification + attr_accessor spec(): ::Temporalio::Api::Cloud::Identity::V1::UserGroupSpec? + def has_spec?: () -> bool + def clear_spec: () -> void + + # The current state of the group. + # Deprecated: Not supported after v0.3.0 api version. Use state instead. + # temporal:versioning:max_version=v0.3.0 + # @deprecated + attr_reader state_deprecated(): ::String + attr_writer state_deprecated(): ::String | ::Symbol + def clear_state_deprecated: () -> void + + # The current state of the group. + # For any failed state, reach out to Temporal Cloud support for remediation. + # temporal:versioning:min_version=v0.3.0 + # temporal:enums:replaces=state_deprecated + attr_reader state(): ::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Integer + attr_writer state(): ::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Temporalio::Api::Cloud::Resource::V1::ResourceState::strings | ::Integer | ::Float + attr_reader state_const(): ::Integer + def clear_state: () -> void + + # The id of the async operation that is creating/updating/deleting the group, if any + attr_reader async_operation_id(): ::String + attr_writer async_operation_id(): ::String | ::Symbol + def clear_async_operation_id: () -> void + + # The date and time when the group was created + attr_reader created_time(): ::Google::Protobuf::Timestamp? + attr_writer created_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_created_time?: () -> bool + def clear_created_time: () -> void + + # The date and time when the group was last modified + # Will not be set if the group has never been modified + attr_reader last_modified_time(): ::Google::Protobuf::Timestamp? + attr_writer last_modified_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_last_modified_time?: () -> bool + def clear_last_modified_time: () -> void + + type init_map = { + id: (::String | ::Symbol)?, + "id" => (::String | ::Symbol)?, + resource_version: (::String | ::Symbol)?, + "resource_version" => (::String | ::Symbol)?, + spec: (::Temporalio::Api::Cloud::Identity::V1::UserGroupSpec | ::Temporalio::Api::Cloud::Identity::V1::UserGroupSpec::init_map)?, + "spec" => (::Temporalio::Api::Cloud::Identity::V1::UserGroupSpec | ::Temporalio::Api::Cloud::Identity::V1::UserGroupSpec::init_map)?, + state_deprecated: (::String | ::Symbol)?, + "state_deprecated" => (::String | ::Symbol)?, + state: (::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Temporalio::Api::Cloud::Resource::V1::ResourceState::strings | ::Integer | ::Float)?, + "state" => (::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Temporalio::Api::Cloud::Resource::V1::ResourceState::strings | ::Integer | ::Float)?, + async_operation_id: (::String | ::Symbol)?, + "async_operation_id" => (::String | ::Symbol)?, + created_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "created_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + last_modified_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "last_modified_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("id" name) -> ::String + | ("resource_version" name) -> ::String + | ("spec" name) -> ::Temporalio::Api::Cloud::Identity::V1::UserGroupSpec? + | ("state_deprecated" name) -> ::String + | ("state" name) -> (::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Integer) + | ("async_operation_id" name) -> ::String + | ("created_time" name) -> ::Google::Protobuf::Timestamp? + | ("last_modified_time" name) -> ::Google::Protobuf::Timestamp? + + def []=: + ("id" name, (::String | ::Symbol) value) -> void + | ("resource_version" name, (::String | ::Symbol) value) -> void + | ("spec" name, ::Temporalio::Api::Cloud::Identity::V1::UserGroupSpec? value) -> void + | ("state_deprecated" name, (::String | ::Symbol) value) -> void + | ("state" name, (::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Temporalio::Api::Cloud::Resource::V1::ResourceState::strings | ::Integer | ::Float) value) -> void + | ("async_operation_id" name, (::String | ::Symbol) value) -> void + | ("created_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("last_modified_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + end + + class UserGroupMemberId < ::Google::Protobuf::AbstractMessage + + attr_reader user_id(): ::String + attr_writer user_id(): (::String | ::Symbol)? + def has_user_id?: () -> bool + def clear_user_id: () -> void + + attr_reader member_type(): ::String? + def has_member_type?: () -> bool + def clear_member_type: () -> void + + type init_map = { + user_id: (::String | ::Symbol)?, + "user_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("user_id" name) -> ::String + + def []=: + ("user_id" name, ((::String | ::Symbol)?) value) -> void + end + + class UserGroupMember < ::Google::Protobuf::AbstractMessage + + attr_accessor member_id(): ::Temporalio::Api::Cloud::Identity::V1::UserGroupMemberId? + def has_member_id?: () -> bool + def clear_member_id: () -> void + + attr_reader created_time(): ::Google::Protobuf::Timestamp? + attr_writer created_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_created_time?: () -> bool + def clear_created_time: () -> void + + type init_map = { + member_id: (::Temporalio::Api::Cloud::Identity::V1::UserGroupMemberId | ::Temporalio::Api::Cloud::Identity::V1::UserGroupMemberId::init_map)?, + "member_id" => (::Temporalio::Api::Cloud::Identity::V1::UserGroupMemberId | ::Temporalio::Api::Cloud::Identity::V1::UserGroupMemberId::init_map)?, + created_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "created_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("member_id" name) -> ::Temporalio::Api::Cloud::Identity::V1::UserGroupMemberId? + | ("created_time" name) -> ::Google::Protobuf::Timestamp? + + def []=: + ("member_id" name, ::Temporalio::Api::Cloud::Identity::V1::UserGroupMemberId? value) -> void + | ("created_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + end + + class ServiceAccount < ::Google::Protobuf::AbstractMessage + + # The id of the service account. + attr_reader id(): ::String + attr_writer id(): ::String | ::Symbol + def clear_id: () -> void + + # The current version of the service account specification. + # The next update operation will have to include this version. + attr_reader resource_version(): ::String + attr_writer resource_version(): ::String | ::Symbol + def clear_resource_version: () -> void + + # The service account specification. + attr_accessor spec(): ::Temporalio::Api::Cloud::Identity::V1::ServiceAccountSpec? + def has_spec?: () -> bool + def clear_spec: () -> void + + # The current state of the service account. + # Possible values: activating, activationfailed, active, updating, updatefailed, deleting, deletefailed, deleted, suspending, suspendfailed, suspended. + # For any failed state, reach out to Temporal Cloud support for remediation. + # Deprecated: Not supported after v0.3.0 api version. Use state instead. + # temporal:versioning:max_version=v0.3.0 + # @deprecated + attr_reader state_deprecated(): ::String + attr_writer state_deprecated(): ::String | ::Symbol + def clear_state_deprecated: () -> void + + # The current state of the service account. + # For any failed state, reach out to Temporal Cloud support for remediation. + # temporal:versioning:min_version=v0.3.0 + # temporal:enums:replaces=state_deprecated + attr_reader state(): ::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Integer + attr_writer state(): ::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Temporalio::Api::Cloud::Resource::V1::ResourceState::strings | ::Integer | ::Float + attr_reader state_const(): ::Integer + def clear_state: () -> void + + # The id of the async operation that is creating/updating/deleting the service account, if any. + attr_reader async_operation_id(): ::String + attr_writer async_operation_id(): ::String | ::Symbol + def clear_async_operation_id: () -> void + + # The date and time when the service account was created. + attr_reader created_time(): ::Google::Protobuf::Timestamp? + attr_writer created_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_created_time?: () -> bool + def clear_created_time: () -> void + + # The date and time when the service account was last modified + # Will not be set if the service account has never been modified. + attr_reader last_modified_time(): ::Google::Protobuf::Timestamp? + attr_writer last_modified_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_last_modified_time?: () -> bool + def clear_last_modified_time: () -> void + + type init_map = { + id: (::String | ::Symbol)?, + "id" => (::String | ::Symbol)?, + resource_version: (::String | ::Symbol)?, + "resource_version" => (::String | ::Symbol)?, + spec: (::Temporalio::Api::Cloud::Identity::V1::ServiceAccountSpec | ::Temporalio::Api::Cloud::Identity::V1::ServiceAccountSpec::init_map)?, + "spec" => (::Temporalio::Api::Cloud::Identity::V1::ServiceAccountSpec | ::Temporalio::Api::Cloud::Identity::V1::ServiceAccountSpec::init_map)?, + state_deprecated: (::String | ::Symbol)?, + "state_deprecated" => (::String | ::Symbol)?, + state: (::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Temporalio::Api::Cloud::Resource::V1::ResourceState::strings | ::Integer | ::Float)?, + "state" => (::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Temporalio::Api::Cloud::Resource::V1::ResourceState::strings | ::Integer | ::Float)?, + async_operation_id: (::String | ::Symbol)?, + "async_operation_id" => (::String | ::Symbol)?, + created_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "created_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + last_modified_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "last_modified_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("id" name) -> ::String + | ("resource_version" name) -> ::String + | ("spec" name) -> ::Temporalio::Api::Cloud::Identity::V1::ServiceAccountSpec? + | ("state_deprecated" name) -> ::String + | ("state" name) -> (::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Integer) + | ("async_operation_id" name) -> ::String + | ("created_time" name) -> ::Google::Protobuf::Timestamp? + | ("last_modified_time" name) -> ::Google::Protobuf::Timestamp? + + def []=: + ("id" name, (::String | ::Symbol) value) -> void + | ("resource_version" name, (::String | ::Symbol) value) -> void + | ("spec" name, ::Temporalio::Api::Cloud::Identity::V1::ServiceAccountSpec? value) -> void + | ("state_deprecated" name, (::String | ::Symbol) value) -> void + | ("state" name, (::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Temporalio::Api::Cloud::Resource::V1::ResourceState::strings | ::Integer | ::Float) value) -> void + | ("async_operation_id" name, (::String | ::Symbol) value) -> void + | ("created_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("last_modified_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + end + + class ServiceAccountSpec < ::Google::Protobuf::AbstractMessage + + # The name associated with the service account. + # The name is mutable, but must be unique across all your active service accounts. + attr_reader name(): ::String + attr_writer name(): ::String | ::Symbol + def clear_name: () -> void + + # Note: one of `Access` or `NamespaceScopedAccess` must be provided, but not both. + # The access assigned to the service account. + # If set, creates an account scoped service account. + # The access is mutable. + attr_accessor access(): ::Temporalio::Api::Cloud::Identity::V1::Access? + def has_access?: () -> bool + def clear_access: () -> void + + # The namespace scoped access assigned to the service account. + # If set, creates a namespace scoped service account (limited to a single namespace). + # The namespace scoped access is partially mutable. + # Refer to `NamespaceScopedAccess` for details. + attr_accessor namespace_scoped_access(): ::Temporalio::Api::Cloud::Identity::V1::NamespaceScopedAccess? + def has_namespace_scoped_access?: () -> bool + def clear_namespace_scoped_access: () -> void + + # The description associated with the service account - optional. + # The description is mutable. + attr_reader description(): ::String + attr_writer description(): ::String | ::Symbol + def clear_description: () -> void + + type init_map = { + name: (::String | ::Symbol)?, + "name" => (::String | ::Symbol)?, + access: (::Temporalio::Api::Cloud::Identity::V1::Access | ::Temporalio::Api::Cloud::Identity::V1::Access::init_map)?, + "access" => (::Temporalio::Api::Cloud::Identity::V1::Access | ::Temporalio::Api::Cloud::Identity::V1::Access::init_map)?, + namespace_scoped_access: (::Temporalio::Api::Cloud::Identity::V1::NamespaceScopedAccess | ::Temporalio::Api::Cloud::Identity::V1::NamespaceScopedAccess::init_map)?, + "namespace_scoped_access" => (::Temporalio::Api::Cloud::Identity::V1::NamespaceScopedAccess | ::Temporalio::Api::Cloud::Identity::V1::NamespaceScopedAccess::init_map)?, + description: (::String | ::Symbol)?, + "description" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("name" name) -> ::String + | ("access" name) -> ::Temporalio::Api::Cloud::Identity::V1::Access? + | ("namespace_scoped_access" name) -> ::Temporalio::Api::Cloud::Identity::V1::NamespaceScopedAccess? + | ("description" name) -> ::String + + def []=: + ("name" name, (::String | ::Symbol) value) -> void + | ("access" name, ::Temporalio::Api::Cloud::Identity::V1::Access? value) -> void + | ("namespace_scoped_access" name, ::Temporalio::Api::Cloud::Identity::V1::NamespaceScopedAccess? value) -> void + | ("description" name, (::String | ::Symbol) value) -> void + end + + class ApiKey < ::Google::Protobuf::AbstractMessage + + # The id of the API Key. + attr_reader id(): ::String + attr_writer id(): ::String | ::Symbol + def clear_id: () -> void + + # The current version of the API key specification. + # The next update operation will have to include this version. + attr_reader resource_version(): ::String + attr_writer resource_version(): ::String | ::Symbol + def clear_resource_version: () -> void + + # The API key specification. + attr_accessor spec(): ::Temporalio::Api::Cloud::Identity::V1::ApiKeySpec? + def has_spec?: () -> bool + def clear_spec: () -> void + + # The current state of the API key. + # Possible values: activating, activationfailed, active, updating, updatefailed, deleting, deletefailed, deleted, suspending, suspendfailed, suspended. + # For any failed state, reach out to Temporal Cloud support for remediation. + # Deprecated: Not supported after v0.3.0 api version. Use state instead. + # temporal:versioning:max_version=v0.3.0 + # @deprecated + attr_reader state_deprecated(): ::String + attr_writer state_deprecated(): ::String | ::Symbol + def clear_state_deprecated: () -> void + + # The current state of the API key. + # temporal:versioning:min_version=v0.3.0 + # temporal:enums:replaces=state_deprecated + attr_reader state(): ::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Integer + attr_writer state(): ::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Temporalio::Api::Cloud::Resource::V1::ResourceState::strings | ::Integer | ::Float + attr_reader state_const(): ::Integer + def clear_state: () -> void + + # The id of the async operation that is creating/updating/deleting the API key, if any. + attr_reader async_operation_id(): ::String + attr_writer async_operation_id(): ::String | ::Symbol + def clear_async_operation_id: () -> void + + # The date and time when the API key was created. + attr_reader created_time(): ::Google::Protobuf::Timestamp? + attr_writer created_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_created_time?: () -> bool + def clear_created_time: () -> void + + # The date and time when the API key was last modified. + # Will not be set if the API key has never been modified. + attr_reader last_modified_time(): ::Google::Protobuf::Timestamp? + attr_writer last_modified_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_last_modified_time?: () -> bool + def clear_last_modified_time: () -> void + + type init_map = { + id: (::String | ::Symbol)?, + "id" => (::String | ::Symbol)?, + resource_version: (::String | ::Symbol)?, + "resource_version" => (::String | ::Symbol)?, + spec: (::Temporalio::Api::Cloud::Identity::V1::ApiKeySpec | ::Temporalio::Api::Cloud::Identity::V1::ApiKeySpec::init_map)?, + "spec" => (::Temporalio::Api::Cloud::Identity::V1::ApiKeySpec | ::Temporalio::Api::Cloud::Identity::V1::ApiKeySpec::init_map)?, + state_deprecated: (::String | ::Symbol)?, + "state_deprecated" => (::String | ::Symbol)?, + state: (::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Temporalio::Api::Cloud::Resource::V1::ResourceState::strings | ::Integer | ::Float)?, + "state" => (::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Temporalio::Api::Cloud::Resource::V1::ResourceState::strings | ::Integer | ::Float)?, + async_operation_id: (::String | ::Symbol)?, + "async_operation_id" => (::String | ::Symbol)?, + created_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "created_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + last_modified_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "last_modified_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("id" name) -> ::String + | ("resource_version" name) -> ::String + | ("spec" name) -> ::Temporalio::Api::Cloud::Identity::V1::ApiKeySpec? + | ("state_deprecated" name) -> ::String + | ("state" name) -> (::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Integer) + | ("async_operation_id" name) -> ::String + | ("created_time" name) -> ::Google::Protobuf::Timestamp? + | ("last_modified_time" name) -> ::Google::Protobuf::Timestamp? + + def []=: + ("id" name, (::String | ::Symbol) value) -> void + | ("resource_version" name, (::String | ::Symbol) value) -> void + | ("spec" name, ::Temporalio::Api::Cloud::Identity::V1::ApiKeySpec? value) -> void + | ("state_deprecated" name, (::String | ::Symbol) value) -> void + | ("state" name, (::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Temporalio::Api::Cloud::Resource::V1::ResourceState::strings | ::Integer | ::Float) value) -> void + | ("async_operation_id" name, (::String | ::Symbol) value) -> void + | ("created_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("last_modified_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + end + + class ApiKeySpec < ::Google::Protobuf::AbstractMessage + + # The id of the owner to create the API key for. + # The owner id is immutable. Once set during creation, it cannot be changed. + # The owner id is the id of the user when the owner type is user. + # The owner id is the id of the service account when the owner type is service account. + attr_reader owner_id(): ::String + attr_writer owner_id(): ::String | ::Symbol + def clear_owner_id: () -> void + + # The type of the owner to create the API key for. + # The owner type is immutable. Once set during creation, it cannot be changed. + # Possible values: user, service-account. + # Deprecated: Not supported after v0.3.0 api version. Use owner_type instead. + # temporal:versioning:max_version=v0.3.0 + # @deprecated + attr_reader owner_type_deprecated(): ::String + attr_writer owner_type_deprecated(): ::String | ::Symbol + def clear_owner_type_deprecated: () -> void + + # The type of the owner to create the API key for. + # temporal:versioning:min_version=v0.3.0 + # temporal:enums:replaces=owner_type_deprecated + attr_reader owner_type(): ::Temporalio::Api::Cloud::Identity::V1::OwnerType::names | ::Integer + attr_writer owner_type(): ::Temporalio::Api::Cloud::Identity::V1::OwnerType::names | ::Temporalio::Api::Cloud::Identity::V1::OwnerType::strings | ::Integer | ::Float + attr_reader owner_type_const(): ::Integer + def clear_owner_type: () -> void + + # The display name of the API key. + attr_reader display_name(): ::String + attr_writer display_name(): ::String | ::Symbol + def clear_display_name: () -> void + + # The description of the API key. + attr_reader description(): ::String + attr_writer description(): ::String | ::Symbol + def clear_description: () -> void + + # The expiry time of the API key. + attr_reader expiry_time(): ::Google::Protobuf::Timestamp? + attr_writer expiry_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_expiry_time?: () -> bool + def clear_expiry_time: () -> void + + # True if the API key is disabled. + attr_accessor disabled(): bool + def clear_disabled: () -> void + + type init_map = { + owner_id: (::String | ::Symbol)?, + "owner_id" => (::String | ::Symbol)?, + owner_type_deprecated: (::String | ::Symbol)?, + "owner_type_deprecated" => (::String | ::Symbol)?, + owner_type: (::Temporalio::Api::Cloud::Identity::V1::OwnerType::names | ::Temporalio::Api::Cloud::Identity::V1::OwnerType::strings | ::Integer | ::Float)?, + "owner_type" => (::Temporalio::Api::Cloud::Identity::V1::OwnerType::names | ::Temporalio::Api::Cloud::Identity::V1::OwnerType::strings | ::Integer | ::Float)?, + display_name: (::String | ::Symbol)?, + "display_name" => (::String | ::Symbol)?, + description: (::String | ::Symbol)?, + "description" => (::String | ::Symbol)?, + expiry_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "expiry_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + disabled: bool?, + "disabled" => bool?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("owner_id" name) -> ::String + | ("owner_type_deprecated" name) -> ::String + | ("owner_type" name) -> (::Temporalio::Api::Cloud::Identity::V1::OwnerType::names | ::Integer) + | ("display_name" name) -> ::String + | ("description" name) -> ::String + | ("expiry_time" name) -> ::Google::Protobuf::Timestamp? + | ("disabled" name) -> bool + + def []=: + ("owner_id" name, (::String | ::Symbol) value) -> void + | ("owner_type_deprecated" name, (::String | ::Symbol) value) -> void + | ("owner_type" name, (::Temporalio::Api::Cloud::Identity::V1::OwnerType::names | ::Temporalio::Api::Cloud::Identity::V1::OwnerType::strings | ::Integer | ::Float) value) -> void + | ("display_name" name, (::String | ::Symbol) value) -> void + | ("description" name, (::String | ::Symbol) value) -> void + | ("expiry_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("disabled" name, bool value) -> void + end + + module OwnerType + + OWNER_TYPE_UNSPECIFIED: 0 + + OWNER_TYPE_USER: 1 + + OWNER_TYPE_SERVICE_ACCOUNT: 2 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :OWNER_TYPE_UNSPECIFIED | :OWNER_TYPE_USER | :OWNER_TYPE_SERVICE_ACCOUNT + + type strings = "OWNER_TYPE_UNSPECIFIED" | "OWNER_TYPE_USER" | "OWNER_TYPE_SERVICE_ACCOUNT" + + type numbers = 0 | 1 | 2 + end + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/api/cloud/namespace/v1/message.rbs b/temporalio/sig/temporalio/api/cloud/namespace/v1/message.rbs new file mode 100644 index 00000000..739dc8ce --- /dev/null +++ b/temporalio/sig/temporalio/api/cloud/namespace/v1/message.rbs @@ -0,0 +1,961 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/api/cloud/namespace/v1/message.proto + +module Temporalio + module Api + module Cloud + module Namespace + module V1 + class CertificateFilterSpec < ::Google::Protobuf::AbstractMessage + + # The common_name in the certificate. + # Optional, default is empty. + attr_reader common_name(): ::String + attr_writer common_name(): ::String | ::Symbol + def clear_common_name: () -> void + + # The organization in the certificate. + # Optional, default is empty. + attr_reader organization(): ::String + attr_writer organization(): ::String | ::Symbol + def clear_organization: () -> void + + # The organizational_unit in the certificate. + # Optional, default is empty. + attr_reader organizational_unit(): ::String + attr_writer organizational_unit(): ::String | ::Symbol + def clear_organizational_unit: () -> void + + # The subject_alternative_name in the certificate. + # Optional, default is empty. + attr_reader subject_alternative_name(): ::String + attr_writer subject_alternative_name(): ::String | ::Symbol + def clear_subject_alternative_name: () -> void + + type init_map = { + common_name: (::String | ::Symbol)?, + "common_name" => (::String | ::Symbol)?, + organization: (::String | ::Symbol)?, + "organization" => (::String | ::Symbol)?, + organizational_unit: (::String | ::Symbol)?, + "organizational_unit" => (::String | ::Symbol)?, + subject_alternative_name: (::String | ::Symbol)?, + "subject_alternative_name" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("common_name" name) -> ::String + | ("organization" name) -> ::String + | ("organizational_unit" name) -> ::String + | ("subject_alternative_name" name) -> ::String + + def []=: + ("common_name" name, (::String | ::Symbol) value) -> void + | ("organization" name, (::String | ::Symbol) value) -> void + | ("organizational_unit" name, (::String | ::Symbol) value) -> void + | ("subject_alternative_name" name, (::String | ::Symbol) value) -> void + end + + class MtlsAuthSpec < ::Google::Protobuf::AbstractMessage + + # The base64 encoded ca cert(s) in PEM format that the clients can use for authentication and authorization. + # This must only be one value, but the CA can have a chain. + # (-- api-linter: core::0140::base64=disabled --) + # Deprecated: Not supported after v0.2.0 api version. Use accepted_client_ca instead. + # temporal:versioning:max_version=v0.2.0 + attr_reader accepted_client_ca_deprecated(): ::String + attr_writer accepted_client_ca_deprecated(): ::String | ::Symbol + def clear_accepted_client_ca_deprecated: () -> void + + # The ca cert(s) in PEM format that the clients can use for authentication and authorization. + # This must only be one value, but the CA can have a chain. + # temporal:versioning:min_version=v0.2.0 + attr_accessor accepted_client_ca(): ::String + def clear_accepted_client_ca: () -> void + + # Certificate filters which, if specified, only allow connections from client certificates whose distinguished name properties match at least one of the filters. + # This allows limiting access to specific end-entity certificates. + # Optional, default is empty. + attr_accessor certificate_filters(): ::Google::Protobuf::RepeatedField + def clear_certificate_filters: () -> void + + # Flag to enable mTLS auth (default: disabled). + # Note: disabling mTLS auth will cause existing mTLS connections to fail. + # temporal:versioning:min_version=v0.2.0 + attr_accessor enabled(): bool + def clear_enabled: () -> void + + type init_map = { + accepted_client_ca_deprecated: (::String | ::Symbol)?, + "accepted_client_ca_deprecated" => (::String | ::Symbol)?, + accepted_client_ca: ::String?, + "accepted_client_ca" => ::String?, + certificate_filters: ::Array[::Temporalio::Api::Cloud::Namespace::V1::CertificateFilterSpec]?, + "certificate_filters" => ::Array[::Temporalio::Api::Cloud::Namespace::V1::CertificateFilterSpec]?, + enabled: bool?, + "enabled" => bool?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("accepted_client_ca_deprecated" name) -> ::String + | ("accepted_client_ca" name) -> ::String + | ("certificate_filters" name) -> ::Google::Protobuf::RepeatedField + | ("enabled" name) -> bool + + def []=: + ("accepted_client_ca_deprecated" name, (::String | ::Symbol) value) -> void + | ("accepted_client_ca" name, ::String value) -> void + | ("certificate_filters" name, ::Google::Protobuf::RepeatedField value) -> void + | ("enabled" name, bool value) -> void + end + + class ApiKeyAuthSpec < ::Google::Protobuf::AbstractMessage + + # Flag to enable API key auth (default: disabled). + # Note: disabling API key auth will cause existing API key connections to fail. + attr_accessor enabled(): bool + def clear_enabled: () -> void + + type init_map = { + enabled: bool?, + "enabled" => bool?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("enabled" name) -> bool + + def []=: + ("enabled" name, bool value) -> void + end + + class CodecServerSpec < ::Google::Protobuf::AbstractMessage + class CustomErrorMessage < ::Google::Protobuf::AbstractMessage + class ErrorMessage < ::Google::Protobuf::AbstractMessage + + # A message to display. + attr_reader message(): ::String + attr_writer message(): ::String | ::Symbol + def clear_message: () -> void + + # A link that is displayed along side the configured message. + attr_reader link(): ::String + attr_writer link(): ::String | ::Symbol + def clear_link: () -> void + + type init_map = { + message: (::String | ::Symbol)?, + "message" => (::String | ::Symbol)?, + link: (::String | ::Symbol)?, + "link" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("message" name) -> ::String + | ("link" name) -> ::String + + def []=: + ("message" name, (::String | ::Symbol) value) -> void + | ("link" name, (::String | ::Symbol) value) -> void + end + + # The error message to display by default for any remote codec server errors. + attr_accessor default(): ::Temporalio::Api::Cloud::Namespace::V1::CodecServerSpec::CustomErrorMessage::ErrorMessage? + def has_default?: () -> bool + def clear_default: () -> void + + type init_map = { + default: (::Temporalio::Api::Cloud::Namespace::V1::CodecServerSpec::CustomErrorMessage::ErrorMessage | ::Temporalio::Api::Cloud::Namespace::V1::CodecServerSpec::CustomErrorMessage::ErrorMessage::init_map)?, + "default" => (::Temporalio::Api::Cloud::Namespace::V1::CodecServerSpec::CustomErrorMessage::ErrorMessage | ::Temporalio::Api::Cloud::Namespace::V1::CodecServerSpec::CustomErrorMessage::ErrorMessage::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("default" name) -> ::Temporalio::Api::Cloud::Namespace::V1::CodecServerSpec::CustomErrorMessage::ErrorMessage? + + def []=: + ("default" name, ::Temporalio::Api::Cloud::Namespace::V1::CodecServerSpec::CustomErrorMessage::ErrorMessage? value) -> void + end + + # The codec server endpoint. + attr_reader endpoint(): ::String + attr_writer endpoint(): ::String | ::Symbol + def clear_endpoint: () -> void + + # Whether to pass the user access token with your endpoint. + attr_accessor pass_access_token(): bool + def clear_pass_access_token: () -> void + + # Whether to include cross-origin credentials. + attr_accessor include_cross_origin_credentials(): bool + def clear_include_cross_origin_credentials: () -> void + + # A custom error message to display for remote codec server errors. + # temporal:versioning:min_version=v0.5.1 + attr_accessor custom_error_message(): ::Temporalio::Api::Cloud::Namespace::V1::CodecServerSpec::CustomErrorMessage? + def has_custom_error_message?: () -> bool + def clear_custom_error_message: () -> void + + type init_map = { + endpoint: (::String | ::Symbol)?, + "endpoint" => (::String | ::Symbol)?, + pass_access_token: bool?, + "pass_access_token" => bool?, + include_cross_origin_credentials: bool?, + "include_cross_origin_credentials" => bool?, + custom_error_message: (::Temporalio::Api::Cloud::Namespace::V1::CodecServerSpec::CustomErrorMessage | ::Temporalio::Api::Cloud::Namespace::V1::CodecServerSpec::CustomErrorMessage::init_map)?, + "custom_error_message" => (::Temporalio::Api::Cloud::Namespace::V1::CodecServerSpec::CustomErrorMessage | ::Temporalio::Api::Cloud::Namespace::V1::CodecServerSpec::CustomErrorMessage::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("endpoint" name) -> ::String + | ("pass_access_token" name) -> bool + | ("include_cross_origin_credentials" name) -> bool + | ("custom_error_message" name) -> ::Temporalio::Api::Cloud::Namespace::V1::CodecServerSpec::CustomErrorMessage? + + def []=: + ("endpoint" name, (::String | ::Symbol) value) -> void + | ("pass_access_token" name, bool value) -> void + | ("include_cross_origin_credentials" name, bool value) -> void + | ("custom_error_message" name, ::Temporalio::Api::Cloud::Namespace::V1::CodecServerSpec::CustomErrorMessage? value) -> void + end + + class LifecycleSpec < ::Google::Protobuf::AbstractMessage + + # Flag to enable delete protection for the namespace. + attr_accessor enable_delete_protection(): bool + def clear_enable_delete_protection: () -> void + + type init_map = { + enable_delete_protection: bool?, + "enable_delete_protection" => bool?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("enable_delete_protection" name) -> bool + + def []=: + ("enable_delete_protection" name, bool value) -> void + end + + class HighAvailabilitySpec < ::Google::Protobuf::AbstractMessage + + # Flag to disable managed failover for the namespace. + attr_accessor disable_managed_failover(): bool + def clear_disable_managed_failover: () -> void + + type init_map = { + disable_managed_failover: bool?, + "disable_managed_failover" => bool?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("disable_managed_failover" name) -> bool + + def []=: + ("disable_managed_failover" name, bool value) -> void + end + + class NamespaceSpec < ::Google::Protobuf::AbstractMessage + module SearchAttributeType + + SEARCH_ATTRIBUTE_TYPE_UNSPECIFIED: 0 + + SEARCH_ATTRIBUTE_TYPE_TEXT: 1 + + SEARCH_ATTRIBUTE_TYPE_KEYWORD: 2 + + SEARCH_ATTRIBUTE_TYPE_INT: 3 + + SEARCH_ATTRIBUTE_TYPE_DOUBLE: 4 + + SEARCH_ATTRIBUTE_TYPE_BOOL: 5 + + SEARCH_ATTRIBUTE_TYPE_DATETIME: 6 + + SEARCH_ATTRIBUTE_TYPE_KEYWORD_LIST: 7 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :SEARCH_ATTRIBUTE_TYPE_UNSPECIFIED | :SEARCH_ATTRIBUTE_TYPE_TEXT | :SEARCH_ATTRIBUTE_TYPE_KEYWORD | :SEARCH_ATTRIBUTE_TYPE_INT | :SEARCH_ATTRIBUTE_TYPE_DOUBLE | :SEARCH_ATTRIBUTE_TYPE_BOOL | :SEARCH_ATTRIBUTE_TYPE_DATETIME | :SEARCH_ATTRIBUTE_TYPE_KEYWORD_LIST + + type strings = "SEARCH_ATTRIBUTE_TYPE_UNSPECIFIED" | "SEARCH_ATTRIBUTE_TYPE_TEXT" | "SEARCH_ATTRIBUTE_TYPE_KEYWORD" | "SEARCH_ATTRIBUTE_TYPE_INT" | "SEARCH_ATTRIBUTE_TYPE_DOUBLE" | "SEARCH_ATTRIBUTE_TYPE_BOOL" | "SEARCH_ATTRIBUTE_TYPE_DATETIME" | "SEARCH_ATTRIBUTE_TYPE_KEYWORD_LIST" + + type numbers = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 + end + + # The name to use for the namespace. + # This will create a namespace that's available at '..tmprl.cloud:7233'. + # The name is immutable. Once set, it cannot be changed. + attr_reader name(): ::String + attr_writer name(): ::String | ::Symbol + def clear_name: () -> void + + # The ids of the regions where the namespace should be available. + # The GetRegions API can be used to get the list of valid region ids. + # Specifying more than one region makes the namespace "global", which is currently a preview only feature with restricted access. + # Please reach out to Temporal support for more information on global namespaces. + # When provisioned the global namespace will be active on the first region in the list and passive on the rest. + # Number of supported regions is 2. + # The regions is immutable. Once set, it cannot be changed. + # Example: ["aws-us-west-2"]. + attr_accessor regions(): ::Google::Protobuf::RepeatedField + def clear_regions: () -> void + + # The number of days the workflows data will be retained for. + # Changes to the retention period may impact your storage costs. + # Any changes to the retention period will be applied to all new running workflows. + attr_reader retention_days(): ::Integer + attr_writer retention_days(): ::Integer | ::Float + def clear_retention_days: () -> void + + # The mTLS auth configuration for the namespace. + # If unspecified, mTLS will be disabled. + attr_accessor mtls_auth(): ::Temporalio::Api::Cloud::Namespace::V1::MtlsAuthSpec? + def has_mtls_auth?: () -> bool + def clear_mtls_auth: () -> void + + # The API key auth configuration for the namespace. + # If unspecified, API keys will be disabled. + # temporal:versioning:min_version=v0.2.0 + attr_accessor api_key_auth(): ::Temporalio::Api::Cloud::Namespace::V1::ApiKeyAuthSpec? + def has_api_key_auth?: () -> bool + def clear_api_key_auth: () -> void + + # The custom search attributes to use for the namespace. + # The name of the attribute is the key and the type is the value. + # Supported attribute types: text, keyword, int, double, bool, datetime, keyword_list. + # NOTE: currently deleting a search attribute is not supported. + # Optional, default is empty. + # Deprecated: Not supported after v0.3.0 api version. Use search_attributes instead. + # temporal:versioning:max_version=v0.3.0 + # @deprecated + attr_accessor custom_search_attributes(): ::Google::Protobuf::Map[::String, ::String] + def clear_custom_search_attributes: () -> void + + # The custom search attributes to use for the namespace. + # The name of the attribute is the key and the type is the value. + # Note: currently deleting a search attribute is not supported. + # Optional, default is empty. + # temporal:versioning:min_version=v0.3.0 + # temporal:enums:replaces=custom_search_attributes + attr_accessor search_attributes(): ::Google::Protobuf::Map[::String, ::Temporalio::Api::Cloud::Namespace::V1::NamespaceSpec::SearchAttributeType::names | ::Integer] + def clear_search_attributes: () -> void + + # Codec server spec used by UI to decode payloads for all users interacting with this namespace. + # Optional, default is unset. + attr_accessor codec_server(): ::Temporalio::Api::Cloud::Namespace::V1::CodecServerSpec? + def has_codec_server?: () -> bool + def clear_codec_server: () -> void + + # The lifecycle configuration for the namespace. + # temporal:versioning:min_version=v0.4.0 + attr_accessor lifecycle(): ::Temporalio::Api::Cloud::Namespace::V1::LifecycleSpec? + def has_lifecycle?: () -> bool + def clear_lifecycle: () -> void + + # The high availability configuration for the namespace. + # temporal:versioning:min_version=v0.4.0 + attr_accessor high_availability(): ::Temporalio::Api::Cloud::Namespace::V1::HighAvailabilitySpec? + def has_high_availability?: () -> bool + def clear_high_availability: () -> void + + # The private connectivity configuration for the namespace. + # This will apply the connectivity rules specified to the namespace. + # temporal:versioning:min_version=v0.6.0 + attr_accessor connectivity_rule_ids(): ::Google::Protobuf::RepeatedField + def clear_connectivity_rule_ids: () -> void + + type init_map = { + name: (::String | ::Symbol)?, + "name" => (::String | ::Symbol)?, + regions: ::Array[::String | ::Symbol]?, + "regions" => ::Array[::String | ::Symbol]?, + retention_days: (::Integer | ::Float)?, + "retention_days" => (::Integer | ::Float)?, + mtls_auth: (::Temporalio::Api::Cloud::Namespace::V1::MtlsAuthSpec | ::Temporalio::Api::Cloud::Namespace::V1::MtlsAuthSpec::init_map)?, + "mtls_auth" => (::Temporalio::Api::Cloud::Namespace::V1::MtlsAuthSpec | ::Temporalio::Api::Cloud::Namespace::V1::MtlsAuthSpec::init_map)?, + api_key_auth: (::Temporalio::Api::Cloud::Namespace::V1::ApiKeyAuthSpec | ::Temporalio::Api::Cloud::Namespace::V1::ApiKeyAuthSpec::init_map)?, + "api_key_auth" => (::Temporalio::Api::Cloud::Namespace::V1::ApiKeyAuthSpec | ::Temporalio::Api::Cloud::Namespace::V1::ApiKeyAuthSpec::init_map)?, + custom_search_attributes: ::Hash[::String | ::Symbol, ::String | ::Symbol]?, + "custom_search_attributes" => ::Hash[::String | ::Symbol, ::String | ::Symbol]?, + search_attributes: ::Hash[::String | ::Symbol, ::Temporalio::Api::Cloud::Namespace::V1::NamespaceSpec::SearchAttributeType::names | ::Temporalio::Api::Cloud::Namespace::V1::NamespaceSpec::SearchAttributeType::strings | ::Integer | ::Float]?, + "search_attributes" => ::Hash[::String | ::Symbol, ::Temporalio::Api::Cloud::Namespace::V1::NamespaceSpec::SearchAttributeType::names | ::Temporalio::Api::Cloud::Namespace::V1::NamespaceSpec::SearchAttributeType::strings | ::Integer | ::Float]?, + codec_server: (::Temporalio::Api::Cloud::Namespace::V1::CodecServerSpec | ::Temporalio::Api::Cloud::Namespace::V1::CodecServerSpec::init_map)?, + "codec_server" => (::Temporalio::Api::Cloud::Namespace::V1::CodecServerSpec | ::Temporalio::Api::Cloud::Namespace::V1::CodecServerSpec::init_map)?, + lifecycle: (::Temporalio::Api::Cloud::Namespace::V1::LifecycleSpec | ::Temporalio::Api::Cloud::Namespace::V1::LifecycleSpec::init_map)?, + "lifecycle" => (::Temporalio::Api::Cloud::Namespace::V1::LifecycleSpec | ::Temporalio::Api::Cloud::Namespace::V1::LifecycleSpec::init_map)?, + high_availability: (::Temporalio::Api::Cloud::Namespace::V1::HighAvailabilitySpec | ::Temporalio::Api::Cloud::Namespace::V1::HighAvailabilitySpec::init_map)?, + "high_availability" => (::Temporalio::Api::Cloud::Namespace::V1::HighAvailabilitySpec | ::Temporalio::Api::Cloud::Namespace::V1::HighAvailabilitySpec::init_map)?, + connectivity_rule_ids: ::Array[::String | ::Symbol]?, + "connectivity_rule_ids" => ::Array[::String | ::Symbol]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("name" name) -> ::String + | ("regions" name) -> (::Google::Protobuf::RepeatedField) + | ("retention_days" name) -> ::Integer + | ("mtls_auth" name) -> ::Temporalio::Api::Cloud::Namespace::V1::MtlsAuthSpec? + | ("api_key_auth" name) -> ::Temporalio::Api::Cloud::Namespace::V1::ApiKeyAuthSpec? + | ("custom_search_attributes" name) -> (::Google::Protobuf::Map[::String, ::String]) + | ("search_attributes" name) -> (::Google::Protobuf::Map[::String, ::Temporalio::Api::Cloud::Namespace::V1::NamespaceSpec::SearchAttributeType::names | ::Integer]) + | ("codec_server" name) -> ::Temporalio::Api::Cloud::Namespace::V1::CodecServerSpec? + | ("lifecycle" name) -> ::Temporalio::Api::Cloud::Namespace::V1::LifecycleSpec? + | ("high_availability" name) -> ::Temporalio::Api::Cloud::Namespace::V1::HighAvailabilitySpec? + | ("connectivity_rule_ids" name) -> (::Google::Protobuf::RepeatedField) + + def []=: + ("name" name, (::String | ::Symbol) value) -> void + | ("regions" name, (::Google::Protobuf::RepeatedField) value) -> void + | ("retention_days" name, (::Integer | ::Float) value) -> void + | ("mtls_auth" name, ::Temporalio::Api::Cloud::Namespace::V1::MtlsAuthSpec? value) -> void + | ("api_key_auth" name, ::Temporalio::Api::Cloud::Namespace::V1::ApiKeyAuthSpec? value) -> void + | ("custom_search_attributes" name, (::Google::Protobuf::Map[::String, ::String]) value) -> void + | ("search_attributes" name, (::Google::Protobuf::Map[::String, ::Temporalio::Api::Cloud::Namespace::V1::NamespaceSpec::SearchAttributeType::names | ::Integer]) value) -> void + | ("codec_server" name, ::Temporalio::Api::Cloud::Namespace::V1::CodecServerSpec? value) -> void + | ("lifecycle" name, ::Temporalio::Api::Cloud::Namespace::V1::LifecycleSpec? value) -> void + | ("high_availability" name, ::Temporalio::Api::Cloud::Namespace::V1::HighAvailabilitySpec? value) -> void + | ("connectivity_rule_ids" name, (::Google::Protobuf::RepeatedField) value) -> void + end + + class Endpoints < ::Google::Protobuf::AbstractMessage + + # The web UI address. + attr_reader web_address(): ::String + attr_writer web_address(): ::String | ::Symbol + def clear_web_address: () -> void + + # The gRPC address for mTLS client connections (may be empty if mTLS is disabled). + attr_reader mtls_grpc_address(): ::String + attr_writer mtls_grpc_address(): ::String | ::Symbol + def clear_mtls_grpc_address: () -> void + + # The gRPC address for API key client connections (may be empty if API keys are disabled). + attr_reader grpc_address(): ::String + attr_writer grpc_address(): ::String | ::Symbol + def clear_grpc_address: () -> void + + type init_map = { + web_address: (::String | ::Symbol)?, + "web_address" => (::String | ::Symbol)?, + mtls_grpc_address: (::String | ::Symbol)?, + "mtls_grpc_address" => (::String | ::Symbol)?, + grpc_address: (::String | ::Symbol)?, + "grpc_address" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("web_address" name) -> ::String + | ("mtls_grpc_address" name) -> ::String + | ("grpc_address" name) -> ::String + + def []=: + ("web_address" name, (::String | ::Symbol) value) -> void + | ("mtls_grpc_address" name, (::String | ::Symbol) value) -> void + | ("grpc_address" name, (::String | ::Symbol) value) -> void + end + + class Limits < ::Google::Protobuf::AbstractMessage + + # The number of actions per second (APS) that is currently allowed for the namespace. + # The namespace may be throttled if its APS exceeds the limit. + attr_reader actions_per_second_limit(): ::Integer + attr_writer actions_per_second_limit(): ::Integer | ::Float + def clear_actions_per_second_limit: () -> void + + type init_map = { + actions_per_second_limit: (::Integer | ::Float)?, + "actions_per_second_limit" => (::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("actions_per_second_limit" name) -> ::Integer + + def []=: + ("actions_per_second_limit" name, (::Integer | ::Float) value) -> void + end + + class AWSPrivateLinkInfo < ::Google::Protobuf::AbstractMessage + + # The list of principal arns that are allowed to access the namespace on the private link. + attr_accessor allowed_principal_arns(): ::Google::Protobuf::RepeatedField + def clear_allowed_principal_arns: () -> void + + # The list of vpc endpoint service names that are associated with the namespace. + attr_accessor vpc_endpoint_service_names(): ::Google::Protobuf::RepeatedField + def clear_vpc_endpoint_service_names: () -> void + + type init_map = { + allowed_principal_arns: ::Array[::String | ::Symbol]?, + "allowed_principal_arns" => ::Array[::String | ::Symbol]?, + vpc_endpoint_service_names: ::Array[::String | ::Symbol]?, + "vpc_endpoint_service_names" => ::Array[::String | ::Symbol]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("allowed_principal_arns" name) -> (::Google::Protobuf::RepeatedField) + | ("vpc_endpoint_service_names" name) -> (::Google::Protobuf::RepeatedField) + + def []=: + ("allowed_principal_arns" name, (::Google::Protobuf::RepeatedField) value) -> void + | ("vpc_endpoint_service_names" name, (::Google::Protobuf::RepeatedField) value) -> void + end + + class PrivateConnectivity < ::Google::Protobuf::AbstractMessage + + # The id of the region where the private connectivity applies. + attr_reader region(): ::String + attr_writer region(): ::String | ::Symbol + def clear_region: () -> void + + # The AWS PrivateLink info. + # This will only be set for an aws region. + attr_accessor aws_private_link(): ::Temporalio::Api::Cloud::Namespace::V1::AWSPrivateLinkInfo? + def has_aws_private_link?: () -> bool + def clear_aws_private_link: () -> void + + type init_map = { + region: (::String | ::Symbol)?, + "region" => (::String | ::Symbol)?, + aws_private_link: (::Temporalio::Api::Cloud::Namespace::V1::AWSPrivateLinkInfo | ::Temporalio::Api::Cloud::Namespace::V1::AWSPrivateLinkInfo::init_map)?, + "aws_private_link" => (::Temporalio::Api::Cloud::Namespace::V1::AWSPrivateLinkInfo | ::Temporalio::Api::Cloud::Namespace::V1::AWSPrivateLinkInfo::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("region" name) -> ::String + | ("aws_private_link" name) -> ::Temporalio::Api::Cloud::Namespace::V1::AWSPrivateLinkInfo? + + def []=: + ("region" name, (::String | ::Symbol) value) -> void + | ("aws_private_link" name, ::Temporalio::Api::Cloud::Namespace::V1::AWSPrivateLinkInfo? value) -> void + end + + class Namespace < ::Google::Protobuf::AbstractMessage + + # The namespace identifier. + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # The current version of the namespace specification. + # The next update operation will have to include this version. + attr_reader resource_version(): ::String + attr_writer resource_version(): ::String | ::Symbol + def clear_resource_version: () -> void + + # The namespace specification. + attr_accessor spec(): ::Temporalio::Api::Cloud::Namespace::V1::NamespaceSpec? + def has_spec?: () -> bool + def clear_spec: () -> void + + # The current state of the namespace. + # Deprecated: Not supported after v0.3.0 api version. Use state instead. + # temporal:versioning:max_version=v0.3.0 + # @deprecated + attr_reader state_deprecated(): ::String + attr_writer state_deprecated(): ::String | ::Symbol + def clear_state_deprecated: () -> void + + # The current state of the namespace. + # For any failed state, reach out to Temporal Cloud support for remediation. + # temporal:versioning:min_version=v0.3.0 + # temporal:enums:replaces=state_deprecated + attr_reader state(): ::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Integer + attr_writer state(): ::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Temporalio::Api::Cloud::Resource::V1::ResourceState::strings | ::Integer | ::Float + attr_reader state_const(): ::Integer + def clear_state: () -> void + + # The id of the async operation that is creating/updating/deleting the namespace, if any. + attr_reader async_operation_id(): ::String + attr_writer async_operation_id(): ::String | ::Symbol + def clear_async_operation_id: () -> void + + # The endpoints for the namespace. + attr_accessor endpoints(): ::Temporalio::Api::Cloud::Namespace::V1::Endpoints? + def has_endpoints?: () -> bool + def clear_endpoints: () -> void + + # The currently active region for the namespace. + attr_reader active_region(): ::String + attr_writer active_region(): ::String | ::Symbol + def clear_active_region: () -> void + + # The limits set on the namespace currently. + attr_accessor limits(): ::Temporalio::Api::Cloud::Namespace::V1::Limits? + def has_limits?: () -> bool + def clear_limits: () -> void + + # The private connectivities for the namespace, if any. + attr_accessor private_connectivities(): ::Google::Protobuf::RepeatedField + def clear_private_connectivities: () -> void + + # The date and time when the namespace was created. + attr_reader created_time(): ::Google::Protobuf::Timestamp? + attr_writer created_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_created_time?: () -> bool + def clear_created_time: () -> void + + # The date and time when the namespace was last modified. + # Will not be set if the namespace has never been modified. + attr_reader last_modified_time(): ::Google::Protobuf::Timestamp? + attr_writer last_modified_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_last_modified_time?: () -> bool + def clear_last_modified_time: () -> void + + # The status of each region where the namespace is available. + # The id of the region is the key and the status is the value of the map. + attr_accessor region_status(): ::Google::Protobuf::Map[::String, ::Temporalio::Api::Cloud::Namespace::V1::NamespaceRegionStatus] + def clear_region_status: () -> void + + # The connectivity rules that are set on this namespace. + attr_accessor connectivity_rules(): ::Google::Protobuf::RepeatedField + def clear_connectivity_rules: () -> void + + # The tags for the namespace. + attr_accessor tags(): ::Google::Protobuf::Map[::String, ::String] + def clear_tags: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + resource_version: (::String | ::Symbol)?, + "resource_version" => (::String | ::Symbol)?, + spec: (::Temporalio::Api::Cloud::Namespace::V1::NamespaceSpec | ::Temporalio::Api::Cloud::Namespace::V1::NamespaceSpec::init_map)?, + "spec" => (::Temporalio::Api::Cloud::Namespace::V1::NamespaceSpec | ::Temporalio::Api::Cloud::Namespace::V1::NamespaceSpec::init_map)?, + state_deprecated: (::String | ::Symbol)?, + "state_deprecated" => (::String | ::Symbol)?, + state: (::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Temporalio::Api::Cloud::Resource::V1::ResourceState::strings | ::Integer | ::Float)?, + "state" => (::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Temporalio::Api::Cloud::Resource::V1::ResourceState::strings | ::Integer | ::Float)?, + async_operation_id: (::String | ::Symbol)?, + "async_operation_id" => (::String | ::Symbol)?, + endpoints: (::Temporalio::Api::Cloud::Namespace::V1::Endpoints | ::Temporalio::Api::Cloud::Namespace::V1::Endpoints::init_map)?, + "endpoints" => (::Temporalio::Api::Cloud::Namespace::V1::Endpoints | ::Temporalio::Api::Cloud::Namespace::V1::Endpoints::init_map)?, + active_region: (::String | ::Symbol)?, + "active_region" => (::String | ::Symbol)?, + limits: (::Temporalio::Api::Cloud::Namespace::V1::Limits | ::Temporalio::Api::Cloud::Namespace::V1::Limits::init_map)?, + "limits" => (::Temporalio::Api::Cloud::Namespace::V1::Limits | ::Temporalio::Api::Cloud::Namespace::V1::Limits::init_map)?, + private_connectivities: ::Array[::Temporalio::Api::Cloud::Namespace::V1::PrivateConnectivity]?, + "private_connectivities" => ::Array[::Temporalio::Api::Cloud::Namespace::V1::PrivateConnectivity]?, + created_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "created_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + last_modified_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "last_modified_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + region_status: ::Hash[::String | ::Symbol, ::Temporalio::Api::Cloud::Namespace::V1::NamespaceRegionStatus]?, + "region_status" => ::Hash[::String | ::Symbol, ::Temporalio::Api::Cloud::Namespace::V1::NamespaceRegionStatus]?, + connectivity_rules: ::Array[::Temporalio::Api::Cloud::ConnectivityRule::V1::ConnectivityRule]?, + "connectivity_rules" => ::Array[::Temporalio::Api::Cloud::ConnectivityRule::V1::ConnectivityRule]?, + tags: ::Hash[::String | ::Symbol, ::String | ::Symbol]?, + "tags" => ::Hash[::String | ::Symbol, ::String | ::Symbol]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("resource_version" name) -> ::String + | ("spec" name) -> ::Temporalio::Api::Cloud::Namespace::V1::NamespaceSpec? + | ("state_deprecated" name) -> ::String + | ("state" name) -> (::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Integer) + | ("async_operation_id" name) -> ::String + | ("endpoints" name) -> ::Temporalio::Api::Cloud::Namespace::V1::Endpoints? + | ("active_region" name) -> ::String + | ("limits" name) -> ::Temporalio::Api::Cloud::Namespace::V1::Limits? + | ("private_connectivities" name) -> ::Google::Protobuf::RepeatedField + | ("created_time" name) -> ::Google::Protobuf::Timestamp? + | ("last_modified_time" name) -> ::Google::Protobuf::Timestamp? + | ("region_status" name) -> (::Google::Protobuf::Map[::String, ::Temporalio::Api::Cloud::Namespace::V1::NamespaceRegionStatus]) + | ("connectivity_rules" name) -> ::Google::Protobuf::RepeatedField + | ("tags" name) -> (::Google::Protobuf::Map[::String, ::String]) + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("resource_version" name, (::String | ::Symbol) value) -> void + | ("spec" name, ::Temporalio::Api::Cloud::Namespace::V1::NamespaceSpec? value) -> void + | ("state_deprecated" name, (::String | ::Symbol) value) -> void + | ("state" name, (::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Temporalio::Api::Cloud::Resource::V1::ResourceState::strings | ::Integer | ::Float) value) -> void + | ("async_operation_id" name, (::String | ::Symbol) value) -> void + | ("endpoints" name, ::Temporalio::Api::Cloud::Namespace::V1::Endpoints? value) -> void + | ("active_region" name, (::String | ::Symbol) value) -> void + | ("limits" name, ::Temporalio::Api::Cloud::Namespace::V1::Limits? value) -> void + | ("private_connectivities" name, ::Google::Protobuf::RepeatedField value) -> void + | ("created_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("last_modified_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("region_status" name, (::Google::Protobuf::Map[::String, ::Temporalio::Api::Cloud::Namespace::V1::NamespaceRegionStatus]) value) -> void + | ("connectivity_rules" name, ::Google::Protobuf::RepeatedField value) -> void + | ("tags" name, (::Google::Protobuf::Map[::String, ::String]) value) -> void + end + + class NamespaceRegionStatus < ::Google::Protobuf::AbstractMessage + module State + + STATE_UNSPECIFIED: 0 + + STATE_ADDING: 1 + + STATE_ACTIVE: 2 + + STATE_PASSIVE: 3 + + STATE_REMOVING: 4 + + STATE_FAILED: 5 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :STATE_UNSPECIFIED | :STATE_ADDING | :STATE_ACTIVE | :STATE_PASSIVE | :STATE_REMOVING | :STATE_FAILED + + type strings = "STATE_UNSPECIFIED" | "STATE_ADDING" | "STATE_ACTIVE" | "STATE_PASSIVE" | "STATE_REMOVING" | "STATE_FAILED" + + type numbers = 0 | 1 | 2 | 3 | 4 | 5 + end + + # The current state of the namespace region. + # Possible values: adding, active, passive, removing, failed. + # For any failed state, reach out to Temporal Cloud support for remediation. + # Deprecated: Not supported after v0.3.0 api version. Use state instead. + # temporal:versioning:max_version=v0.3.0 + # @deprecated + attr_reader state_deprecated(): ::String + attr_writer state_deprecated(): ::String | ::Symbol + def clear_state_deprecated: () -> void + + # The current state of the namespace region. + # temporal:versioning:min_version=v0.3.0 + # temporal:enums:replaces=state_deprecated + attr_reader state(): ::Temporalio::Api::Cloud::Namespace::V1::NamespaceRegionStatus::State::names | ::Integer + attr_writer state(): ::Temporalio::Api::Cloud::Namespace::V1::NamespaceRegionStatus::State::names | ::Temporalio::Api::Cloud::Namespace::V1::NamespaceRegionStatus::State::strings | ::Integer | ::Float + attr_reader state_const(): ::Integer + def clear_state: () -> void + + # The id of the async operation that is making changes to where the namespace is available, if any. + attr_reader async_operation_id(): ::String + attr_writer async_operation_id(): ::String | ::Symbol + def clear_async_operation_id: () -> void + + type init_map = { + state_deprecated: (::String | ::Symbol)?, + "state_deprecated" => (::String | ::Symbol)?, + state: (::Temporalio::Api::Cloud::Namespace::V1::NamespaceRegionStatus::State::names | ::Temporalio::Api::Cloud::Namespace::V1::NamespaceRegionStatus::State::strings | ::Integer | ::Float)?, + "state" => (::Temporalio::Api::Cloud::Namespace::V1::NamespaceRegionStatus::State::names | ::Temporalio::Api::Cloud::Namespace::V1::NamespaceRegionStatus::State::strings | ::Integer | ::Float)?, + async_operation_id: (::String | ::Symbol)?, + "async_operation_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("state_deprecated" name) -> ::String + | ("state" name) -> (::Temporalio::Api::Cloud::Namespace::V1::NamespaceRegionStatus::State::names | ::Integer) + | ("async_operation_id" name) -> ::String + + def []=: + ("state_deprecated" name, (::String | ::Symbol) value) -> void + | ("state" name, (::Temporalio::Api::Cloud::Namespace::V1::NamespaceRegionStatus::State::names | ::Temporalio::Api::Cloud::Namespace::V1::NamespaceRegionStatus::State::strings | ::Integer | ::Float) value) -> void + | ("async_operation_id" name, (::String | ::Symbol) value) -> void + end + + class ExportSinkSpec < ::Google::Protobuf::AbstractMessage + + # The unique name of the export sink, it can't be changed once set. + attr_reader name(): ::String + attr_writer name(): ::String | ::Symbol + def clear_name: () -> void + + # A flag indicating whether the export sink is enabled or not. + attr_accessor enabled(): bool + def clear_enabled: () -> void + + # The S3 configuration details when destination_type is S3. + attr_accessor s3(): ::Temporalio::Api::Cloud::Sink::V1::S3Spec? + def has_s3?: () -> bool + def clear_s3: () -> void + + # The GCS configuration details when destination_type is GCS. + attr_accessor gcs(): ::Temporalio::Api::Cloud::Sink::V1::GCSSpec? + def has_gcs?: () -> bool + def clear_gcs: () -> void + + type init_map = { + name: (::String | ::Symbol)?, + "name" => (::String | ::Symbol)?, + enabled: bool?, + "enabled" => bool?, + s3: (::Temporalio::Api::Cloud::Sink::V1::S3Spec | ::Temporalio::Api::Cloud::Sink::V1::S3Spec::init_map)?, + "s3" => (::Temporalio::Api::Cloud::Sink::V1::S3Spec | ::Temporalio::Api::Cloud::Sink::V1::S3Spec::init_map)?, + gcs: (::Temporalio::Api::Cloud::Sink::V1::GCSSpec | ::Temporalio::Api::Cloud::Sink::V1::GCSSpec::init_map)?, + "gcs" => (::Temporalio::Api::Cloud::Sink::V1::GCSSpec | ::Temporalio::Api::Cloud::Sink::V1::GCSSpec::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("name" name) -> ::String + | ("enabled" name) -> bool + | ("s3" name) -> ::Temporalio::Api::Cloud::Sink::V1::S3Spec? + | ("gcs" name) -> ::Temporalio::Api::Cloud::Sink::V1::GCSSpec? + + def []=: + ("name" name, (::String | ::Symbol) value) -> void + | ("enabled" name, bool value) -> void + | ("s3" name, ::Temporalio::Api::Cloud::Sink::V1::S3Spec? value) -> void + | ("gcs" name, ::Temporalio::Api::Cloud::Sink::V1::GCSSpec? value) -> void + end + + class ExportSink < ::Google::Protobuf::AbstractMessage + module Health + + HEALTH_UNSPECIFIED: 0 + + HEALTH_OK: 1 + + HEALTH_ERROR_INTERNAL: 2 + + HEALTH_ERROR_USER_CONFIGURATION: 3 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :HEALTH_UNSPECIFIED | :HEALTH_OK | :HEALTH_ERROR_INTERNAL | :HEALTH_ERROR_USER_CONFIGURATION + + type strings = "HEALTH_UNSPECIFIED" | "HEALTH_OK" | "HEALTH_ERROR_INTERNAL" | "HEALTH_ERROR_USER_CONFIGURATION" + + type numbers = 0 | 1 | 2 | 3 + end + + # The unique name of the export sink. + attr_reader name(): ::String + attr_writer name(): ::String | ::Symbol + def clear_name: () -> void + + # The version of the export sink resource. + attr_reader resource_version(): ::String + attr_writer resource_version(): ::String | ::Symbol + def clear_resource_version: () -> void + + # The current state of the export sink. + attr_reader state(): ::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Integer + attr_writer state(): ::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Temporalio::Api::Cloud::Resource::V1::ResourceState::strings | ::Integer | ::Float + attr_reader state_const(): ::Integer + def clear_state: () -> void + + # The specification details of the export sink. + attr_accessor spec(): ::Temporalio::Api::Cloud::Namespace::V1::ExportSinkSpec? + def has_spec?: () -> bool + def clear_spec: () -> void + + # The health status of the export sink. + attr_reader health(): ::Temporalio::Api::Cloud::Namespace::V1::ExportSink::Health::names | ::Integer + attr_writer health(): ::Temporalio::Api::Cloud::Namespace::V1::ExportSink::Health::names | ::Temporalio::Api::Cloud::Namespace::V1::ExportSink::Health::strings | ::Integer | ::Float + attr_reader health_const(): ::Integer + def clear_health: () -> void + + # An error message describing any issues with the export sink, if applicable. + attr_reader error_message(): ::String + attr_writer error_message(): ::String | ::Symbol + def clear_error_message: () -> void + + # The timestamp of the latest successful data export. + attr_reader latest_data_export_time(): ::Google::Protobuf::Timestamp? + attr_writer latest_data_export_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_latest_data_export_time?: () -> bool + def clear_latest_data_export_time: () -> void + + # The timestamp of the last health check performed on the export sink. + attr_reader last_health_check_time(): ::Google::Protobuf::Timestamp? + attr_writer last_health_check_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_last_health_check_time?: () -> bool + def clear_last_health_check_time: () -> void + + type init_map = { + name: (::String | ::Symbol)?, + "name" => (::String | ::Symbol)?, + resource_version: (::String | ::Symbol)?, + "resource_version" => (::String | ::Symbol)?, + state: (::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Temporalio::Api::Cloud::Resource::V1::ResourceState::strings | ::Integer | ::Float)?, + "state" => (::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Temporalio::Api::Cloud::Resource::V1::ResourceState::strings | ::Integer | ::Float)?, + spec: (::Temporalio::Api::Cloud::Namespace::V1::ExportSinkSpec | ::Temporalio::Api::Cloud::Namespace::V1::ExportSinkSpec::init_map)?, + "spec" => (::Temporalio::Api::Cloud::Namespace::V1::ExportSinkSpec | ::Temporalio::Api::Cloud::Namespace::V1::ExportSinkSpec::init_map)?, + health: (::Temporalio::Api::Cloud::Namespace::V1::ExportSink::Health::names | ::Temporalio::Api::Cloud::Namespace::V1::ExportSink::Health::strings | ::Integer | ::Float)?, + "health" => (::Temporalio::Api::Cloud::Namespace::V1::ExportSink::Health::names | ::Temporalio::Api::Cloud::Namespace::V1::ExportSink::Health::strings | ::Integer | ::Float)?, + error_message: (::String | ::Symbol)?, + "error_message" => (::String | ::Symbol)?, + latest_data_export_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "latest_data_export_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + last_health_check_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "last_health_check_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("name" name) -> ::String + | ("resource_version" name) -> ::String + | ("state" name) -> (::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Integer) + | ("spec" name) -> ::Temporalio::Api::Cloud::Namespace::V1::ExportSinkSpec? + | ("health" name) -> (::Temporalio::Api::Cloud::Namespace::V1::ExportSink::Health::names | ::Integer) + | ("error_message" name) -> ::String + | ("latest_data_export_time" name) -> ::Google::Protobuf::Timestamp? + | ("last_health_check_time" name) -> ::Google::Protobuf::Timestamp? + + def []=: + ("name" name, (::String | ::Symbol) value) -> void + | ("resource_version" name, (::String | ::Symbol) value) -> void + | ("state" name, (::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Temporalio::Api::Cloud::Resource::V1::ResourceState::strings | ::Integer | ::Float) value) -> void + | ("spec" name, ::Temporalio::Api::Cloud::Namespace::V1::ExportSinkSpec? value) -> void + | ("health" name, (::Temporalio::Api::Cloud::Namespace::V1::ExportSink::Health::names | ::Temporalio::Api::Cloud::Namespace::V1::ExportSink::Health::strings | ::Integer | ::Float) value) -> void + | ("error_message" name, (::String | ::Symbol) value) -> void + | ("latest_data_export_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("last_health_check_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + end + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/api/cloud/nexus/v1/message.rbs b/temporalio/sig/temporalio/api/cloud/nexus/v1/message.rbs new file mode 100644 index 00000000..8d93b9d8 --- /dev/null +++ b/temporalio/sig/temporalio/api/cloud/nexus/v1/message.rbs @@ -0,0 +1,269 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/api/cloud/nexus/v1/message.proto + +module Temporalio + module Api + module Cloud + module Nexus + module V1 + class EndpointSpec < ::Google::Protobuf::AbstractMessage + + # The name of the endpoint. Must be unique within an account. + # The name must match `^[a-zA-Z][a-zA-Z0-9\-]*[a-zA-Z0-9]$`. + # This field is mutable. + attr_reader name(): ::String + attr_writer name(): ::String | ::Symbol + def clear_name: () -> void + + # Indicates where the endpoint should forward received nexus requests to. + attr_accessor target_spec(): ::Temporalio::Api::Cloud::Nexus::V1::EndpointTargetSpec? + def has_target_spec?: () -> bool + def clear_target_spec: () -> void + + # The set of policies (e.g. authorization) for the endpoint. Each request's caller + # must match with at least one of the specs to be accepted by the endpoint. + # This field is mutable. + attr_accessor policy_specs(): ::Google::Protobuf::RepeatedField + def clear_policy_specs: () -> void + + # Deprecated: Not supported after v0.4.0 api version. Use description instead. + # temporal:versioning:max_version=v0.4.0 + # @deprecated + attr_reader description_deprecated(): ::String + attr_writer description_deprecated(): ::String | ::Symbol + def clear_description_deprecated: () -> void + + # The markdown description of the endpoint - optional. + # temporal:versioning:min_version=v0.4.0 + attr_accessor description(): ::Temporalio::Api::Common::V1::Payload? + def has_description?: () -> bool + def clear_description: () -> void + + type init_map = { + name: (::String | ::Symbol)?, + "name" => (::String | ::Symbol)?, + target_spec: (::Temporalio::Api::Cloud::Nexus::V1::EndpointTargetSpec | ::Temporalio::Api::Cloud::Nexus::V1::EndpointTargetSpec::init_map)?, + "target_spec" => (::Temporalio::Api::Cloud::Nexus::V1::EndpointTargetSpec | ::Temporalio::Api::Cloud::Nexus::V1::EndpointTargetSpec::init_map)?, + policy_specs: ::Array[::Temporalio::Api::Cloud::Nexus::V1::EndpointPolicySpec]?, + "policy_specs" => ::Array[::Temporalio::Api::Cloud::Nexus::V1::EndpointPolicySpec]?, + description_deprecated: (::String | ::Symbol)?, + "description_deprecated" => (::String | ::Symbol)?, + description: (::Temporalio::Api::Common::V1::Payload | ::Temporalio::Api::Common::V1::Payload::init_map)?, + "description" => (::Temporalio::Api::Common::V1::Payload | ::Temporalio::Api::Common::V1::Payload::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("name" name) -> ::String + | ("target_spec" name) -> ::Temporalio::Api::Cloud::Nexus::V1::EndpointTargetSpec? + | ("policy_specs" name) -> ::Google::Protobuf::RepeatedField + | ("description_deprecated" name) -> ::String + | ("description" name) -> ::Temporalio::Api::Common::V1::Payload? + + def []=: + ("name" name, (::String | ::Symbol) value) -> void + | ("target_spec" name, ::Temporalio::Api::Cloud::Nexus::V1::EndpointTargetSpec? value) -> void + | ("policy_specs" name, ::Google::Protobuf::RepeatedField value) -> void + | ("description_deprecated" name, (::String | ::Symbol) value) -> void + | ("description" name, ::Temporalio::Api::Common::V1::Payload? value) -> void + end + + class EndpointTargetSpec < ::Google::Protobuf::AbstractMessage + + # A target spec for routing nexus requests to a specific cloud namespace worker. + attr_accessor worker_target_spec(): ::Temporalio::Api::Cloud::Nexus::V1::WorkerTargetSpec? + def has_worker_target_spec?: () -> bool + def clear_worker_target_spec: () -> void + + attr_reader variant(): ::Temporalio::Api::Cloud::Nexus::V1::WorkerTargetSpec? + def has_variant?: () -> bool + def clear_variant: () -> void + + type init_map = { + worker_target_spec: (::Temporalio::Api::Cloud::Nexus::V1::WorkerTargetSpec | ::Temporalio::Api::Cloud::Nexus::V1::WorkerTargetSpec::init_map)?, + "worker_target_spec" => (::Temporalio::Api::Cloud::Nexus::V1::WorkerTargetSpec | ::Temporalio::Api::Cloud::Nexus::V1::WorkerTargetSpec::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("worker_target_spec" name) -> ::Temporalio::Api::Cloud::Nexus::V1::WorkerTargetSpec? + + def []=: + ("worker_target_spec" name, ::Temporalio::Api::Cloud::Nexus::V1::WorkerTargetSpec? value) -> void + end + + class WorkerTargetSpec < ::Google::Protobuf::AbstractMessage + + # The target cloud namespace to route requests to. Namespace must be in same account as the endpoint. This field is mutable. + attr_reader namespace_id(): ::String + attr_writer namespace_id(): ::String | ::Symbol + def clear_namespace_id: () -> void + + # The task queue on the cloud namespace to route requests to. This field is mutable. + attr_reader task_queue(): ::String + attr_writer task_queue(): ::String | ::Symbol + def clear_task_queue: () -> void + + type init_map = { + namespace_id: (::String | ::Symbol)?, + "namespace_id" => (::String | ::Symbol)?, + task_queue: (::String | ::Symbol)?, + "task_queue" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace_id" name) -> ::String + | ("task_queue" name) -> ::String + + def []=: + ("namespace_id" name, (::String | ::Symbol) value) -> void + | ("task_queue" name, (::String | ::Symbol) value) -> void + end + + class EndpointPolicySpec < ::Google::Protobuf::AbstractMessage + + # A policy spec that allows one caller namespace to access the endpoint. + attr_accessor allowed_cloud_namespace_policy_spec(): ::Temporalio::Api::Cloud::Nexus::V1::AllowedCloudNamespacePolicySpec? + def has_allowed_cloud_namespace_policy_spec?: () -> bool + def clear_allowed_cloud_namespace_policy_spec: () -> void + + attr_reader variant(): ::Temporalio::Api::Cloud::Nexus::V1::AllowedCloudNamespacePolicySpec? + def has_variant?: () -> bool + def clear_variant: () -> void + + type init_map = { + allowed_cloud_namespace_policy_spec: (::Temporalio::Api::Cloud::Nexus::V1::AllowedCloudNamespacePolicySpec | ::Temporalio::Api::Cloud::Nexus::V1::AllowedCloudNamespacePolicySpec::init_map)?, + "allowed_cloud_namespace_policy_spec" => (::Temporalio::Api::Cloud::Nexus::V1::AllowedCloudNamespacePolicySpec | ::Temporalio::Api::Cloud::Nexus::V1::AllowedCloudNamespacePolicySpec::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("allowed_cloud_namespace_policy_spec" name) -> ::Temporalio::Api::Cloud::Nexus::V1::AllowedCloudNamespacePolicySpec? + + def []=: + ("allowed_cloud_namespace_policy_spec" name, ::Temporalio::Api::Cloud::Nexus::V1::AllowedCloudNamespacePolicySpec? value) -> void + end + + class AllowedCloudNamespacePolicySpec < ::Google::Protobuf::AbstractMessage + + # The namespace that is allowed to call into this endpoint. Calling namespace must be in same account as the endpoint. + attr_reader namespace_id(): ::String + attr_writer namespace_id(): ::String | ::Symbol + def clear_namespace_id: () -> void + + type init_map = { + namespace_id: (::String | ::Symbol)?, + "namespace_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace_id" name) -> ::String + + def []=: + ("namespace_id" name, (::String | ::Symbol) value) -> void + end + + # An endpoint that receives and then routes Nexus requests + class Endpoint < ::Google::Protobuf::AbstractMessage + + # The id of the endpoint. This is generated by the server and is immutable. + attr_reader id(): ::String + attr_writer id(): ::String | ::Symbol + def clear_id: () -> void + + # The current version of the endpoint specification. + # The next update operation must include this version. + attr_reader resource_version(): ::String + attr_writer resource_version(): ::String | ::Symbol + def clear_resource_version: () -> void + + # The endpoint specification. + attr_accessor spec(): ::Temporalio::Api::Cloud::Nexus::V1::EndpointSpec? + def has_spec?: () -> bool + def clear_spec: () -> void + + # The current state of the endpoint. + # For any failed state, reach out to Temporal Cloud support for remediation. + attr_reader state(): ::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Integer + attr_writer state(): ::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Temporalio::Api::Cloud::Resource::V1::ResourceState::strings | ::Integer | ::Float + attr_reader state_const(): ::Integer + def clear_state: () -> void + + # The id of any ongoing async operation that is creating, updating, or deleting the endpoint, if any. + attr_reader async_operation_id(): ::String + attr_writer async_operation_id(): ::String | ::Symbol + def clear_async_operation_id: () -> void + + # The date and time when the endpoint was created. + attr_reader created_time(): ::Google::Protobuf::Timestamp? + attr_writer created_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_created_time?: () -> bool + def clear_created_time: () -> void + + # The date and time when the endpoint was last modified. + attr_reader last_modified_time(): ::Google::Protobuf::Timestamp? + attr_writer last_modified_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_last_modified_time?: () -> bool + def clear_last_modified_time: () -> void + + type init_map = { + id: (::String | ::Symbol)?, + "id" => (::String | ::Symbol)?, + resource_version: (::String | ::Symbol)?, + "resource_version" => (::String | ::Symbol)?, + spec: (::Temporalio::Api::Cloud::Nexus::V1::EndpointSpec | ::Temporalio::Api::Cloud::Nexus::V1::EndpointSpec::init_map)?, + "spec" => (::Temporalio::Api::Cloud::Nexus::V1::EndpointSpec | ::Temporalio::Api::Cloud::Nexus::V1::EndpointSpec::init_map)?, + state: (::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Temporalio::Api::Cloud::Resource::V1::ResourceState::strings | ::Integer | ::Float)?, + "state" => (::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Temporalio::Api::Cloud::Resource::V1::ResourceState::strings | ::Integer | ::Float)?, + async_operation_id: (::String | ::Symbol)?, + "async_operation_id" => (::String | ::Symbol)?, + created_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "created_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + last_modified_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "last_modified_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("id" name) -> ::String + | ("resource_version" name) -> ::String + | ("spec" name) -> ::Temporalio::Api::Cloud::Nexus::V1::EndpointSpec? + | ("state" name) -> (::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Integer) + | ("async_operation_id" name) -> ::String + | ("created_time" name) -> ::Google::Protobuf::Timestamp? + | ("last_modified_time" name) -> ::Google::Protobuf::Timestamp? + + def []=: + ("id" name, (::String | ::Symbol) value) -> void + | ("resource_version" name, (::String | ::Symbol) value) -> void + | ("spec" name, ::Temporalio::Api::Cloud::Nexus::V1::EndpointSpec? value) -> void + | ("state" name, (::Temporalio::Api::Cloud::Resource::V1::ResourceState::names | ::Temporalio::Api::Cloud::Resource::V1::ResourceState::strings | ::Integer | ::Float) value) -> void + | ("async_operation_id" name, (::String | ::Symbol) value) -> void + | ("created_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("last_modified_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + end + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/api/cloud/operation/v1/message.rbs b/temporalio/sig/temporalio/api/cloud/operation/v1/message.rbs new file mode 100644 index 00000000..91ee1007 --- /dev/null +++ b/temporalio/sig/temporalio/api/cloud/operation/v1/message.rbs @@ -0,0 +1,156 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/api/cloud/operation/v1/message.proto + +module Temporalio + module Api + module Cloud + module Operation + module V1 + class AsyncOperation < ::Google::Protobuf::AbstractMessage + module State + + STATE_UNSPECIFIED: 0 + + STATE_PENDING: 1 + + STATE_IN_PROGRESS: 2 + + STATE_FAILED: 3 + + STATE_CANCELLED: 4 + + STATE_FULFILLED: 5 + + STATE_REJECTED: 6 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :STATE_UNSPECIFIED | :STATE_PENDING | :STATE_IN_PROGRESS | :STATE_FAILED | :STATE_CANCELLED | :STATE_FULFILLED | :STATE_REJECTED + + type strings = "STATE_UNSPECIFIED" | "STATE_PENDING" | "STATE_IN_PROGRESS" | "STATE_FAILED" | "STATE_CANCELLED" | "STATE_FULFILLED" | "STATE_REJECTED" + + type numbers = 0 | 1 | 2 | 3 | 4 | 5 | 6 + end + + # The operation id. + attr_reader id(): ::String + attr_writer id(): ::String | ::Symbol + def clear_id: () -> void + + # The current state of this operation. + # Possible values are: pending, in_progress, failed, cancelled, fulfilled. + # Deprecated: Not supported after v0.3.0 api version. Use state instead. + # temporal:versioning:max_version=v0.3.0 + # @deprecated + attr_reader state_deprecated(): ::String + attr_writer state_deprecated(): ::String | ::Symbol + def clear_state_deprecated: () -> void + + # The current state of this operation. + # temporal:versioning:min_version=v0.3.0 + # temporal:enums:replaces=state_deprecated + attr_reader state(): ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::State::names | ::Integer + attr_writer state(): ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::State::names | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::State::strings | ::Integer | ::Float + attr_reader state_const(): ::Integer + def clear_state: () -> void + + # The recommended duration to check back for an update in the operation's state. + attr_reader check_duration(): ::Google::Protobuf::Duration? + attr_writer check_duration(): (::Google::Protobuf::Duration | ::int)? + def has_check_duration?: () -> bool + def clear_check_duration: () -> void + + # The type of operation being performed. + attr_reader operation_type(): ::String + attr_writer operation_type(): ::String | ::Symbol + def clear_operation_type: () -> void + + # The input to the operation being performed. + # (-- api-linter: core::0146::any=disabled --) + attr_accessor operation_input(): ::Google::Protobuf::Any? + def has_operation_input?: () -> bool + def clear_operation_input: () -> void + + # If the operation failed, the reason for the failure. + attr_reader failure_reason(): ::String + attr_writer failure_reason(): ::String | ::Symbol + def clear_failure_reason: () -> void + + # The date and time when the operation initiated. + attr_reader started_time(): ::Google::Protobuf::Timestamp? + attr_writer started_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_started_time?: () -> bool + def clear_started_time: () -> void + + # The date and time when the operation completed. + attr_reader finished_time(): ::Google::Protobuf::Timestamp? + attr_writer finished_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_finished_time?: () -> bool + def clear_finished_time: () -> void + + type init_map = { + id: (::String | ::Symbol)?, + "id" => (::String | ::Symbol)?, + state_deprecated: (::String | ::Symbol)?, + "state_deprecated" => (::String | ::Symbol)?, + state: (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::State::names | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::State::strings | ::Integer | ::Float)?, + "state" => (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::State::names | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::State::strings | ::Integer | ::Float)?, + check_duration: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "check_duration" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + operation_type: (::String | ::Symbol)?, + "operation_type" => (::String | ::Symbol)?, + operation_input: (::Google::Protobuf::Any | ::Google::Protobuf::Any)?, + "operation_input" => (::Google::Protobuf::Any | ::Google::Protobuf::Any)?, + failure_reason: (::String | ::Symbol)?, + "failure_reason" => (::String | ::Symbol)?, + started_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "started_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + finished_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "finished_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("id" name) -> ::String + | ("state_deprecated" name) -> ::String + | ("state" name) -> (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::State::names | ::Integer) + | ("check_duration" name) -> ::Google::Protobuf::Duration? + | ("operation_type" name) -> ::String + | ("operation_input" name) -> ::Google::Protobuf::Any? + | ("failure_reason" name) -> ::String + | ("started_time" name) -> ::Google::Protobuf::Timestamp? + | ("finished_time" name) -> ::Google::Protobuf::Timestamp? + + def []=: + ("id" name, (::String | ::Symbol) value) -> void + | ("state_deprecated" name, (::String | ::Symbol) value) -> void + | ("state" name, (::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::State::names | ::Temporalio::Api::Cloud::Operation::V1::AsyncOperation::State::strings | ::Integer | ::Float) value) -> void + | ("check_duration" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("operation_type" name, (::String | ::Symbol) value) -> void + | ("operation_input" name, ::Google::Protobuf::Any? value) -> void + | ("failure_reason" name, (::String | ::Symbol) value) -> void + | ("started_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("finished_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + end + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/api/cloud/region/v1/message.rbs b/temporalio/sig/temporalio/api/cloud/region/v1/message.rbs new file mode 100644 index 00000000..3747f524 --- /dev/null +++ b/temporalio/sig/temporalio/api/cloud/region/v1/message.rbs @@ -0,0 +1,109 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/api/cloud/region/v1/message.proto + +module Temporalio + module Api + module Cloud + module Region + module V1 + class Region < ::Google::Protobuf::AbstractMessage + # The cloud provider that's hosting the region. + module CloudProvider + + CLOUD_PROVIDER_UNSPECIFIED: 0 + + CLOUD_PROVIDER_AWS: 1 + + CLOUD_PROVIDER_GCP: 2 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :CLOUD_PROVIDER_UNSPECIFIED | :CLOUD_PROVIDER_AWS | :CLOUD_PROVIDER_GCP + + type strings = "CLOUD_PROVIDER_UNSPECIFIED" | "CLOUD_PROVIDER_AWS" | "CLOUD_PROVIDER_GCP" + + type numbers = 0 | 1 | 2 + end + + # The id of the temporal cloud region. + attr_reader id(): ::String + attr_writer id(): ::String | ::Symbol + def clear_id: () -> void + + # The name of the cloud provider that's hosting the region. + # Currently only "aws" is supported. + # Deprecated: Not supported after v0.3.0 api version. Use cloud_provider instead. + # temporal:versioning:max_version=v0.3.0 + # @deprecated + attr_reader cloud_provider_deprecated(): ::String + attr_writer cloud_provider_deprecated(): ::String | ::Symbol + def clear_cloud_provider_deprecated: () -> void + + # The cloud provider that's hosting the region. + # temporal:versioning:min_version=v0.3.0 + # temporal:enums:replaces=cloud_provider_deprecated + attr_reader cloud_provider(): ::Temporalio::Api::Cloud::Region::V1::Region::CloudProvider::names | ::Integer + attr_writer cloud_provider(): ::Temporalio::Api::Cloud::Region::V1::Region::CloudProvider::names | ::Temporalio::Api::Cloud::Region::V1::Region::CloudProvider::strings | ::Integer | ::Float + attr_reader cloud_provider_const(): ::Integer + def clear_cloud_provider: () -> void + + # The region identifier as defined by the cloud provider. + attr_reader cloud_provider_region(): ::String + attr_writer cloud_provider_region(): ::String | ::Symbol + def clear_cloud_provider_region: () -> void + + # The human readable location of the region. + attr_reader location(): ::String + attr_writer location(): ::String | ::Symbol + def clear_location: () -> void + + type init_map = { + id: (::String | ::Symbol)?, + "id" => (::String | ::Symbol)?, + cloud_provider_deprecated: (::String | ::Symbol)?, + "cloud_provider_deprecated" => (::String | ::Symbol)?, + cloud_provider: (::Temporalio::Api::Cloud::Region::V1::Region::CloudProvider::names | ::Temporalio::Api::Cloud::Region::V1::Region::CloudProvider::strings | ::Integer | ::Float)?, + "cloud_provider" => (::Temporalio::Api::Cloud::Region::V1::Region::CloudProvider::names | ::Temporalio::Api::Cloud::Region::V1::Region::CloudProvider::strings | ::Integer | ::Float)?, + cloud_provider_region: (::String | ::Symbol)?, + "cloud_provider_region" => (::String | ::Symbol)?, + location: (::String | ::Symbol)?, + "location" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("id" name) -> ::String + | ("cloud_provider_deprecated" name) -> ::String + | ("cloud_provider" name) -> (::Temporalio::Api::Cloud::Region::V1::Region::CloudProvider::names | ::Integer) + | ("cloud_provider_region" name) -> ::String + | ("location" name) -> ::String + + def []=: + ("id" name, (::String | ::Symbol) value) -> void + | ("cloud_provider_deprecated" name, (::String | ::Symbol) value) -> void + | ("cloud_provider" name, (::Temporalio::Api::Cloud::Region::V1::Region::CloudProvider::names | ::Temporalio::Api::Cloud::Region::V1::Region::CloudProvider::strings | ::Integer | ::Float) value) -> void + | ("cloud_provider_region" name, (::String | ::Symbol) value) -> void + | ("location" name, (::String | ::Symbol) value) -> void + end + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/api/cloud/resource/v1/message.rbs b/temporalio/sig/temporalio/api/cloud/resource/v1/message.rbs new file mode 100644 index 00000000..dfc7cff9 --- /dev/null +++ b/temporalio/sig/temporalio/api/cloud/resource/v1/message.rbs @@ -0,0 +1,61 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/api/cloud/resource/v1/message.proto + +module Temporalio + module Api + module Cloud + module Resource + module V1 + module ResourceState + + RESOURCE_STATE_UNSPECIFIED: 0 + + RESOURCE_STATE_ACTIVATING: 1 + + RESOURCE_STATE_ACTIVATION_FAILED: 2 + + RESOURCE_STATE_ACTIVE: 3 + + RESOURCE_STATE_UPDATING: 4 + + RESOURCE_STATE_UPDATE_FAILED: 5 + + RESOURCE_STATE_DELETING: 6 + + RESOURCE_STATE_DELETE_FAILED: 7 + + RESOURCE_STATE_DELETED: 8 + + RESOURCE_STATE_SUSPENDED: 9 + + RESOURCE_STATE_EXPIRED: 10 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :RESOURCE_STATE_UNSPECIFIED | :RESOURCE_STATE_ACTIVATING | :RESOURCE_STATE_ACTIVATION_FAILED | :RESOURCE_STATE_ACTIVE | :RESOURCE_STATE_UPDATING | :RESOURCE_STATE_UPDATE_FAILED | :RESOURCE_STATE_DELETING | :RESOURCE_STATE_DELETE_FAILED | :RESOURCE_STATE_DELETED | :RESOURCE_STATE_SUSPENDED | :RESOURCE_STATE_EXPIRED + + type strings = "RESOURCE_STATE_UNSPECIFIED" | "RESOURCE_STATE_ACTIVATING" | "RESOURCE_STATE_ACTIVATION_FAILED" | "RESOURCE_STATE_ACTIVE" | "RESOURCE_STATE_UPDATING" | "RESOURCE_STATE_UPDATE_FAILED" | "RESOURCE_STATE_DELETING" | "RESOURCE_STATE_DELETE_FAILED" | "RESOURCE_STATE_DELETED" | "RESOURCE_STATE_SUSPENDED" | "RESOURCE_STATE_EXPIRED" + + type numbers = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 + end + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/api/cloud/sink/v1/message.rbs b/temporalio/sig/temporalio/api/cloud/sink/v1/message.rbs new file mode 100644 index 00000000..ec218582 --- /dev/null +++ b/temporalio/sig/temporalio/api/cloud/sink/v1/message.rbs @@ -0,0 +1,207 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/api/cloud/sink/v1/message.proto + +module Temporalio + module Api + module Cloud + module Sink + module V1 + class S3Spec < ::Google::Protobuf::AbstractMessage + + # The IAM role that Temporal Cloud assumes for writing records to the customer's S3 bucket. + attr_reader role_name(): ::String + attr_writer role_name(): ::String | ::Symbol + def clear_role_name: () -> void + + # The name of the destination S3 bucket where Temporal will send data. + attr_reader bucket_name(): ::String + attr_writer bucket_name(): ::String | ::Symbol + def clear_bucket_name: () -> void + + # The region where the S3 bucket is located. + attr_reader region(): ::String + attr_writer region(): ::String | ::Symbol + def clear_region: () -> void + + # The AWS Key Management Service (KMS) ARN used for encryption. + attr_reader kms_arn(): ::String + attr_writer kms_arn(): ::String | ::Symbol + def clear_kms_arn: () -> void + + # The AWS account ID associated with the S3 bucket and the assumed role. + attr_reader aws_account_id(): ::String + attr_writer aws_account_id(): ::String | ::Symbol + def clear_aws_account_id: () -> void + + type init_map = { + role_name: (::String | ::Symbol)?, + "role_name" => (::String | ::Symbol)?, + bucket_name: (::String | ::Symbol)?, + "bucket_name" => (::String | ::Symbol)?, + region: (::String | ::Symbol)?, + "region" => (::String | ::Symbol)?, + kms_arn: (::String | ::Symbol)?, + "kms_arn" => (::String | ::Symbol)?, + aws_account_id: (::String | ::Symbol)?, + "aws_account_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("role_name" name) -> ::String + | ("bucket_name" name) -> ::String + | ("region" name) -> ::String + | ("kms_arn" name) -> ::String + | ("aws_account_id" name) -> ::String + + def []=: + ("role_name" name, (::String | ::Symbol) value) -> void + | ("bucket_name" name, (::String | ::Symbol) value) -> void + | ("region" name, (::String | ::Symbol) value) -> void + | ("kms_arn" name, (::String | ::Symbol) value) -> void + | ("aws_account_id" name, (::String | ::Symbol) value) -> void + end + + class GCSSpec < ::Google::Protobuf::AbstractMessage + + # The customer service account ID that Temporal Cloud impersonates for writing records to the customer's GCS bucket. + attr_reader sa_id(): ::String + attr_writer sa_id(): ::String | ::Symbol + def clear_sa_id: () -> void + + # The name of the destination GCS bucket where Temporal will send data. + attr_reader bucket_name(): ::String + attr_writer bucket_name(): ::String | ::Symbol + def clear_bucket_name: () -> void + + # The GCP project ID associated with the GCS bucket and service account. + attr_reader gcp_project_id(): ::String + attr_writer gcp_project_id(): ::String | ::Symbol + def clear_gcp_project_id: () -> void + + # The region of the gcs bucket + attr_reader region(): ::String + attr_writer region(): ::String | ::Symbol + def clear_region: () -> void + + type init_map = { + sa_id: (::String | ::Symbol)?, + "sa_id" => (::String | ::Symbol)?, + bucket_name: (::String | ::Symbol)?, + "bucket_name" => (::String | ::Symbol)?, + gcp_project_id: (::String | ::Symbol)?, + "gcp_project_id" => (::String | ::Symbol)?, + region: (::String | ::Symbol)?, + "region" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("sa_id" name) -> ::String + | ("bucket_name" name) -> ::String + | ("gcp_project_id" name) -> ::String + | ("region" name) -> ::String + + def []=: + ("sa_id" name, (::String | ::Symbol) value) -> void + | ("bucket_name" name, (::String | ::Symbol) value) -> void + | ("gcp_project_id" name, (::String | ::Symbol) value) -> void + | ("region" name, (::String | ::Symbol) value) -> void + end + + class KinesisSpec < ::Google::Protobuf::AbstractMessage + + # The role Temporal Cloud assumes when writing records to Kinesis + attr_reader role_name(): ::String + attr_writer role_name(): ::String | ::Symbol + def clear_role_name: () -> void + + # Destination Kinesis endpoint arn for temporal to send data to. + attr_reader destination_uri(): ::String + attr_writer destination_uri(): ::String | ::Symbol + def clear_destination_uri: () -> void + + # The sink's region. + attr_reader region(): ::String + attr_writer region(): ::String | ::Symbol + def clear_region: () -> void + + type init_map = { + role_name: (::String | ::Symbol)?, + "role_name" => (::String | ::Symbol)?, + destination_uri: (::String | ::Symbol)?, + "destination_uri" => (::String | ::Symbol)?, + region: (::String | ::Symbol)?, + "region" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("role_name" name) -> ::String + | ("destination_uri" name) -> ::String + | ("region" name) -> ::String + + def []=: + ("role_name" name, (::String | ::Symbol) value) -> void + | ("destination_uri" name, (::String | ::Symbol) value) -> void + | ("region" name, (::String | ::Symbol) value) -> void + end + + class PubSubSpec < ::Google::Protobuf::AbstractMessage + + # The customer service account id that Temporal Cloud impersonates for writing records to customer's pubsub topic + attr_reader service_account_id(): ::String + attr_writer service_account_id(): ::String | ::Symbol + def clear_service_account_id: () -> void + + # Destination pubsub topic name for us + attr_reader topic_name(): ::String + attr_writer topic_name(): ::String | ::Symbol + def clear_topic_name: () -> void + + # The gcp project id of pubsub topic and service account + attr_reader gcp_project_id(): ::String + attr_writer gcp_project_id(): ::String | ::Symbol + def clear_gcp_project_id: () -> void + + type init_map = { + service_account_id: (::String | ::Symbol)?, + "service_account_id" => (::String | ::Symbol)?, + topic_name: (::String | ::Symbol)?, + "topic_name" => (::String | ::Symbol)?, + gcp_project_id: (::String | ::Symbol)?, + "gcp_project_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("service_account_id" name) -> ::String + | ("topic_name" name) -> ::String + | ("gcp_project_id" name) -> ::String + + def []=: + ("service_account_id" name, (::String | ::Symbol) value) -> void + | ("topic_name" name, (::String | ::Symbol) value) -> void + | ("gcp_project_id" name, (::String | ::Symbol) value) -> void + end + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/api/cloud/usage/v1/message.rbs b/temporalio/sig/temporalio/api/cloud/usage/v1/message.rbs new file mode 100644 index 00000000..dda207cf --- /dev/null +++ b/temporalio/sig/temporalio/api/cloud/usage/v1/message.rbs @@ -0,0 +1,230 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/api/cloud/usage/v1/message.proto + +module Temporalio + module Api + module Cloud + module Usage + module V1 + class Summary < ::Google::Protobuf::AbstractMessage + + # Start of UTC day for now (inclusive) + attr_reader start_time(): ::Google::Protobuf::Timestamp? + attr_writer start_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_start_time?: () -> bool + def clear_start_time: () -> void + + # End of UTC day for now (exclusive) + attr_reader end_time(): ::Google::Protobuf::Timestamp? + attr_writer end_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_end_time?: () -> bool + def clear_end_time: () -> void + + # Records grouped by namespace + attr_accessor record_groups(): ::Google::Protobuf::RepeatedField + def clear_record_groups: () -> void + + # True if data for given time window is not fully available yet (e.g. delays) + # When true, records for the given time range could still be added/updated in the future (until false) + attr_accessor incomplete(): bool + def clear_incomplete: () -> void + + type init_map = { + start_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "start_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + end_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "end_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + record_groups: ::Array[::Temporalio::Api::Cloud::Usage::V1::RecordGroup]?, + "record_groups" => ::Array[::Temporalio::Api::Cloud::Usage::V1::RecordGroup]?, + incomplete: bool?, + "incomplete" => bool?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("start_time" name) -> ::Google::Protobuf::Timestamp? + | ("end_time" name) -> ::Google::Protobuf::Timestamp? + | ("record_groups" name) -> ::Google::Protobuf::RepeatedField + | ("incomplete" name) -> bool + + def []=: + ("start_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("end_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("record_groups" name, ::Google::Protobuf::RepeatedField value) -> void + | ("incomplete" name, bool value) -> void + end + + class RecordGroup < ::Google::Protobuf::AbstractMessage + + # GroupBy keys and their values for this record group. Multiple fields are combined with logical AND. + attr_accessor group_bys(): ::Google::Protobuf::RepeatedField + def clear_group_bys: () -> void + + attr_accessor records(): ::Google::Protobuf::RepeatedField + def clear_records: () -> void + + type init_map = { + group_bys: ::Array[::Temporalio::Api::Cloud::Usage::V1::GroupBy]?, + "group_bys" => ::Array[::Temporalio::Api::Cloud::Usage::V1::GroupBy]?, + records: ::Array[::Temporalio::Api::Cloud::Usage::V1::Record]?, + "records" => ::Array[::Temporalio::Api::Cloud::Usage::V1::Record]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("group_bys" name) -> ::Google::Protobuf::RepeatedField + | ("records" name) -> ::Google::Protobuf::RepeatedField + + def []=: + ("group_bys" name, ::Google::Protobuf::RepeatedField value) -> void + | ("records" name, ::Google::Protobuf::RepeatedField value) -> void + end + + class GroupBy < ::Google::Protobuf::AbstractMessage + + attr_reader key(): ::Temporalio::Api::Cloud::Usage::V1::GroupByKey::names | ::Integer + attr_writer key(): ::Temporalio::Api::Cloud::Usage::V1::GroupByKey::names | ::Temporalio::Api::Cloud::Usage::V1::GroupByKey::strings | ::Integer | ::Float + attr_reader key_const(): ::Integer + def clear_key: () -> void + + attr_reader value(): ::String + attr_writer value(): ::String | ::Symbol + def clear_value: () -> void + + type init_map = { + key: (::Temporalio::Api::Cloud::Usage::V1::GroupByKey::names | ::Temporalio::Api::Cloud::Usage::V1::GroupByKey::strings | ::Integer | ::Float)?, + "key" => (::Temporalio::Api::Cloud::Usage::V1::GroupByKey::names | ::Temporalio::Api::Cloud::Usage::V1::GroupByKey::strings | ::Integer | ::Float)?, + value: (::String | ::Symbol)?, + "value" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("key" name) -> (::Temporalio::Api::Cloud::Usage::V1::GroupByKey::names | ::Integer) + | ("value" name) -> ::String + + def []=: + ("key" name, (::Temporalio::Api::Cloud::Usage::V1::GroupByKey::names | ::Temporalio::Api::Cloud::Usage::V1::GroupByKey::strings | ::Integer | ::Float) value) -> void + | ("value" name, (::String | ::Symbol) value) -> void + end + + class Record < ::Google::Protobuf::AbstractMessage + + attr_reader type(): ::Temporalio::Api::Cloud::Usage::V1::RecordType::names | ::Integer + attr_writer type(): ::Temporalio::Api::Cloud::Usage::V1::RecordType::names | ::Temporalio::Api::Cloud::Usage::V1::RecordType::strings | ::Integer | ::Float + attr_reader type_const(): ::Integer + def clear_type: () -> void + + attr_reader unit(): ::Temporalio::Api::Cloud::Usage::V1::RecordUnit::names | ::Integer + attr_writer unit(): ::Temporalio::Api::Cloud::Usage::V1::RecordUnit::names | ::Temporalio::Api::Cloud::Usage::V1::RecordUnit::strings | ::Integer | ::Float + attr_reader unit_const(): ::Integer + def clear_unit: () -> void + + attr_reader value(): ::Float + attr_writer value(): ::Float | ::Integer + def clear_value: () -> void + + type init_map = { + type: (::Temporalio::Api::Cloud::Usage::V1::RecordType::names | ::Temporalio::Api::Cloud::Usage::V1::RecordType::strings | ::Integer | ::Float)?, + "type" => (::Temporalio::Api::Cloud::Usage::V1::RecordType::names | ::Temporalio::Api::Cloud::Usage::V1::RecordType::strings | ::Integer | ::Float)?, + unit: (::Temporalio::Api::Cloud::Usage::V1::RecordUnit::names | ::Temporalio::Api::Cloud::Usage::V1::RecordUnit::strings | ::Integer | ::Float)?, + "unit" => (::Temporalio::Api::Cloud::Usage::V1::RecordUnit::names | ::Temporalio::Api::Cloud::Usage::V1::RecordUnit::strings | ::Integer | ::Float)?, + value: (::Float | ::Integer)?, + "value" => (::Float | ::Integer)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("type" name) -> (::Temporalio::Api::Cloud::Usage::V1::RecordType::names | ::Integer) + | ("unit" name) -> (::Temporalio::Api::Cloud::Usage::V1::RecordUnit::names | ::Integer) + | ("value" name) -> ::Float + + def []=: + ("type" name, (::Temporalio::Api::Cloud::Usage::V1::RecordType::names | ::Temporalio::Api::Cloud::Usage::V1::RecordType::strings | ::Integer | ::Float) value) -> void + | ("unit" name, (::Temporalio::Api::Cloud::Usage::V1::RecordUnit::names | ::Temporalio::Api::Cloud::Usage::V1::RecordUnit::strings | ::Integer | ::Float) value) -> void + | ("value" name, (::Float | ::Integer) value) -> void + end + + module RecordType + + RECORD_TYPE_UNSPECIFIED: 0 + + RECORD_TYPE_ACTIONS: 1 + + RECORD_TYPE_ACTIVE_STORAGE: 2 + + RECORD_TYPE_RETAINED_STORAGE: 3 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :RECORD_TYPE_UNSPECIFIED | :RECORD_TYPE_ACTIONS | :RECORD_TYPE_ACTIVE_STORAGE | :RECORD_TYPE_RETAINED_STORAGE + + type strings = "RECORD_TYPE_UNSPECIFIED" | "RECORD_TYPE_ACTIONS" | "RECORD_TYPE_ACTIVE_STORAGE" | "RECORD_TYPE_RETAINED_STORAGE" + + type numbers = 0 | 1 | 2 | 3 + end + + module RecordUnit + + RECORD_UNIT_UNSPECIFIED: 0 + + RECORD_UNIT_NUMBER: 1 + + RECORD_UNIT_BYTE_SECONDS: 2 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :RECORD_UNIT_UNSPECIFIED | :RECORD_UNIT_NUMBER | :RECORD_UNIT_BYTE_SECONDS + + type strings = "RECORD_UNIT_UNSPECIFIED" | "RECORD_UNIT_NUMBER" | "RECORD_UNIT_BYTE_SECONDS" + + type numbers = 0 | 1 | 2 + end + + module GroupByKey + + GROUP_BY_KEY_UNSPECIFIED: 0 + + GROUP_BY_KEY_NAMESPACE: 1 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :GROUP_BY_KEY_UNSPECIFIED | :GROUP_BY_KEY_NAMESPACE + + type strings = "GROUP_BY_KEY_UNSPECIFIED" | "GROUP_BY_KEY_NAMESPACE" + + type numbers = 0 | 1 + end + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/api/command/v1/message.rbs b/temporalio/sig/temporalio/api/command/v1/message.rbs new file mode 100644 index 00000000..ab42d9af --- /dev/null +++ b/temporalio/sig/temporalio/api/command/v1/message.rbs @@ -0,0 +1,1197 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/api/command/v1/message.proto + +module Temporalio + module Api + module Command + module V1 + class ScheduleActivityTaskCommandAttributes < ::Google::Protobuf::AbstractMessage + + attr_reader activity_id(): ::String + attr_writer activity_id(): ::String | ::Symbol + def clear_activity_id: () -> void + + attr_accessor activity_type(): ::Temporalio::Api::Common::V1::ActivityType? + def has_activity_type?: () -> bool + def clear_activity_type: () -> void + + attr_accessor task_queue(): ::Temporalio::Api::TaskQueue::V1::TaskQueue? + def has_task_queue?: () -> bool + def clear_task_queue: () -> void + + attr_accessor header(): ::Temporalio::Api::Common::V1::Header? + def has_header?: () -> bool + def clear_header: () -> void + + attr_accessor input(): ::Temporalio::Api::Common::V1::Payloads? + def has_input?: () -> bool + def clear_input: () -> void + + # 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. --) + attr_reader schedule_to_close_timeout(): ::Google::Protobuf::Duration? + attr_writer schedule_to_close_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_schedule_to_close_timeout?: () -> bool + def clear_schedule_to_close_timeout: () -> void + + # 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. --) + attr_reader schedule_to_start_timeout(): ::Google::Protobuf::Duration? + attr_writer schedule_to_start_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_schedule_to_start_timeout?: () -> bool + def clear_schedule_to_start_timeout: () -> void + + # 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. --) + attr_reader start_to_close_timeout(): ::Google::Protobuf::Duration? + attr_writer start_to_close_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_start_to_close_timeout?: () -> bool + def clear_start_to_close_timeout: () -> void + + # Maximum permitted time between successful worker heartbeats. + attr_reader heartbeat_timeout(): ::Google::Protobuf::Duration? + attr_writer heartbeat_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_heartbeat_timeout?: () -> bool + def clear_heartbeat_timeout: () -> void + + # 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. + attr_accessor retry_policy(): ::Temporalio::Api::Common::V1::RetryPolicy? + def has_retry_policy?: () -> bool + def clear_retry_policy: () -> void + + # 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. + attr_accessor request_eager_execution(): bool + def clear_request_eager_execution: () -> void + + # 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. + attr_accessor use_workflow_build_id(): bool + def clear_use_workflow_build_id: () -> void + + # Priority metadata. If this message is not present, or any fields are not + # present, they inherit the values from the workflow. + attr_accessor priority(): ::Temporalio::Api::Common::V1::Priority? + def has_priority?: () -> bool + def clear_priority: () -> void + + type init_map = { + activity_id: (::String | ::Symbol)?, + "activity_id" => (::String | ::Symbol)?, + activity_type: (::Temporalio::Api::Common::V1::ActivityType | ::Temporalio::Api::Common::V1::ActivityType::init_map)?, + "activity_type" => (::Temporalio::Api::Common::V1::ActivityType | ::Temporalio::Api::Common::V1::ActivityType::init_map)?, + task_queue: (::Temporalio::Api::TaskQueue::V1::TaskQueue | ::Temporalio::Api::TaskQueue::V1::TaskQueue::init_map)?, + "task_queue" => (::Temporalio::Api::TaskQueue::V1::TaskQueue | ::Temporalio::Api::TaskQueue::V1::TaskQueue::init_map)?, + header: (::Temporalio::Api::Common::V1::Header | ::Temporalio::Api::Common::V1::Header::init_map)?, + "header" => (::Temporalio::Api::Common::V1::Header | ::Temporalio::Api::Common::V1::Header::init_map)?, + input: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + "input" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + schedule_to_close_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "schedule_to_close_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + schedule_to_start_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "schedule_to_start_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + start_to_close_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "start_to_close_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + heartbeat_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "heartbeat_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + retry_policy: (::Temporalio::Api::Common::V1::RetryPolicy | ::Temporalio::Api::Common::V1::RetryPolicy::init_map)?, + "retry_policy" => (::Temporalio::Api::Common::V1::RetryPolicy | ::Temporalio::Api::Common::V1::RetryPolicy::init_map)?, + request_eager_execution: bool?, + "request_eager_execution" => bool?, + use_workflow_build_id: bool?, + "use_workflow_build_id" => bool?, + priority: (::Temporalio::Api::Common::V1::Priority | ::Temporalio::Api::Common::V1::Priority::init_map)?, + "priority" => (::Temporalio::Api::Common::V1::Priority | ::Temporalio::Api::Common::V1::Priority::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("activity_id" name) -> ::String + | ("activity_type" name) -> ::Temporalio::Api::Common::V1::ActivityType? + | ("task_queue" name) -> ::Temporalio::Api::TaskQueue::V1::TaskQueue? + | ("header" name) -> ::Temporalio::Api::Common::V1::Header? + | ("input" name) -> ::Temporalio::Api::Common::V1::Payloads? + | ("schedule_to_close_timeout" name) -> ::Google::Protobuf::Duration? + | ("schedule_to_start_timeout" name) -> ::Google::Protobuf::Duration? + | ("start_to_close_timeout" name) -> ::Google::Protobuf::Duration? + | ("heartbeat_timeout" name) -> ::Google::Protobuf::Duration? + | ("retry_policy" name) -> ::Temporalio::Api::Common::V1::RetryPolicy? + | ("request_eager_execution" name) -> bool + | ("use_workflow_build_id" name) -> bool + | ("priority" name) -> ::Temporalio::Api::Common::V1::Priority? + + def []=: + ("activity_id" name, (::String | ::Symbol) value) -> void + | ("activity_type" name, ::Temporalio::Api::Common::V1::ActivityType? value) -> void + | ("task_queue" name, ::Temporalio::Api::TaskQueue::V1::TaskQueue? value) -> void + | ("header" name, ::Temporalio::Api::Common::V1::Header? value) -> void + | ("input" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void + | ("schedule_to_close_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("schedule_to_start_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("start_to_close_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("heartbeat_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("retry_policy" name, ::Temporalio::Api::Common::V1::RetryPolicy? value) -> void + | ("request_eager_execution" name, bool value) -> void + | ("use_workflow_build_id" name, bool value) -> void + | ("priority" name, ::Temporalio::Api::Common::V1::Priority? value) -> void + end + + class RequestCancelActivityTaskCommandAttributes < ::Google::Protobuf::AbstractMessage + + # The `ACTIVITY_TASK_SCHEDULED` event id for the activity being cancelled. + attr_reader scheduled_event_id(): ::Integer + attr_writer scheduled_event_id(): ::Integer | ::Float + def clear_scheduled_event_id: () -> void + + type init_map = { + scheduled_event_id: (::Integer | ::Float)?, + "scheduled_event_id" => (::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("scheduled_event_id" name) -> ::Integer + + def []=: + ("scheduled_event_id" name, (::Integer | ::Float) value) -> void + end + + class StartTimerCommandAttributes < ::Google::Protobuf::AbstractMessage + + # An id for the timer, currently live timers must have different ids. Typically autogenerated + # by the SDK. + attr_reader timer_id(): ::String + attr_writer timer_id(): ::String | ::Symbol + def clear_timer_id: () -> void + + # 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. --) + attr_reader start_to_fire_timeout(): ::Google::Protobuf::Duration? + attr_writer start_to_fire_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_start_to_fire_timeout?: () -> bool + def clear_start_to_fire_timeout: () -> void + + type init_map = { + timer_id: (::String | ::Symbol)?, + "timer_id" => (::String | ::Symbol)?, + start_to_fire_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "start_to_fire_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("timer_id" name) -> ::String + | ("start_to_fire_timeout" name) -> ::Google::Protobuf::Duration? + + def []=: + ("timer_id" name, (::String | ::Symbol) value) -> void + | ("start_to_fire_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + end + + class CompleteWorkflowExecutionCommandAttributes < ::Google::Protobuf::AbstractMessage + + attr_accessor result(): ::Temporalio::Api::Common::V1::Payloads? + def has_result?: () -> bool + def clear_result: () -> void + + type init_map = { + result: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + "result" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("result" name) -> ::Temporalio::Api::Common::V1::Payloads? + + def []=: + ("result" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void + end + + class FailWorkflowExecutionCommandAttributes < ::Google::Protobuf::AbstractMessage + + attr_accessor failure(): ::Temporalio::Api::Failure::V1::Failure? + def has_failure?: () -> bool + def clear_failure: () -> void + + type init_map = { + failure: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + "failure" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("failure" name) -> ::Temporalio::Api::Failure::V1::Failure? + + def []=: + ("failure" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void + end + + class CancelTimerCommandAttributes < ::Google::Protobuf::AbstractMessage + + # The same timer id from the start timer command + attr_reader timer_id(): ::String + attr_writer timer_id(): ::String | ::Symbol + def clear_timer_id: () -> void + + type init_map = { + timer_id: (::String | ::Symbol)?, + "timer_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("timer_id" name) -> ::String + + def []=: + ("timer_id" name, (::String | ::Symbol) value) -> void + end + + class CancelWorkflowExecutionCommandAttributes < ::Google::Protobuf::AbstractMessage + + attr_accessor details(): ::Temporalio::Api::Common::V1::Payloads? + def has_details?: () -> bool + def clear_details: () -> void + + type init_map = { + details: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + "details" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("details" name) -> ::Temporalio::Api::Common::V1::Payloads? + + def []=: + ("details" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void + end + + class RequestCancelExternalWorkflowExecutionCommandAttributes < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_reader workflow_id(): ::String + attr_writer workflow_id(): ::String | ::Symbol + def clear_workflow_id: () -> void + + attr_reader run_id(): ::String + attr_writer run_id(): ::String | ::Symbol + def clear_run_id: () -> void + + # Deprecated. + # @deprecated + attr_reader control(): ::String + attr_writer control(): ::String | ::Symbol + def clear_control: () -> void + + # 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. + attr_accessor child_workflow_only(): bool + def clear_child_workflow_only: () -> void + + # Reason for requesting the cancellation + attr_reader reason(): ::String + attr_writer reason(): ::String | ::Symbol + def clear_reason: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + workflow_id: (::String | ::Symbol)?, + "workflow_id" => (::String | ::Symbol)?, + run_id: (::String | ::Symbol)?, + "run_id" => (::String | ::Symbol)?, + control: (::String | ::Symbol)?, + "control" => (::String | ::Symbol)?, + child_workflow_only: bool?, + "child_workflow_only" => bool?, + reason: (::String | ::Symbol)?, + "reason" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("workflow_id" name) -> ::String + | ("run_id" name) -> ::String + | ("control" name) -> ::String + | ("child_workflow_only" name) -> bool + | ("reason" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("workflow_id" name, (::String | ::Symbol) value) -> void + | ("run_id" name, (::String | ::Symbol) value) -> void + | ("control" name, (::String | ::Symbol) value) -> void + | ("child_workflow_only" name, bool value) -> void + | ("reason" name, (::String | ::Symbol) value) -> void + end + + class SignalExternalWorkflowExecutionCommandAttributes < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_accessor execution(): ::Temporalio::Api::Common::V1::WorkflowExecution? + def has_execution?: () -> bool + def clear_execution: () -> void + + # The workflow author-defined name of the signal to send to the workflow. + attr_reader signal_name(): ::String + attr_writer signal_name(): ::String | ::Symbol + def clear_signal_name: () -> void + + # Serialized value(s) to provide with the signal. + attr_accessor input(): ::Temporalio::Api::Common::V1::Payloads? + def has_input?: () -> bool + def clear_input: () -> void + + # Deprecated + # @deprecated + attr_reader control(): ::String + attr_writer control(): ::String | ::Symbol + def clear_control: () -> void + + # 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. + attr_accessor child_workflow_only(): bool + def clear_child_workflow_only: () -> void + + # Headers that are passed by the workflow that is sending a signal to the external + # workflow that is receiving this signal. + attr_accessor header(): ::Temporalio::Api::Common::V1::Header? + def has_header?: () -> bool + def clear_header: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + execution: (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + "execution" => (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + signal_name: (::String | ::Symbol)?, + "signal_name" => (::String | ::Symbol)?, + input: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + "input" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + control: (::String | ::Symbol)?, + "control" => (::String | ::Symbol)?, + child_workflow_only: bool?, + "child_workflow_only" => bool?, + header: (::Temporalio::Api::Common::V1::Header | ::Temporalio::Api::Common::V1::Header::init_map)?, + "header" => (::Temporalio::Api::Common::V1::Header | ::Temporalio::Api::Common::V1::Header::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("execution" name) -> ::Temporalio::Api::Common::V1::WorkflowExecution? + | ("signal_name" name) -> ::String + | ("input" name) -> ::Temporalio::Api::Common::V1::Payloads? + | ("control" name) -> ::String + | ("child_workflow_only" name) -> bool + | ("header" name) -> ::Temporalio::Api::Common::V1::Header? + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("execution" name, ::Temporalio::Api::Common::V1::WorkflowExecution? value) -> void + | ("signal_name" name, (::String | ::Symbol) value) -> void + | ("input" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void + | ("control" name, (::String | ::Symbol) value) -> void + | ("child_workflow_only" name, bool value) -> void + | ("header" name, ::Temporalio::Api::Common::V1::Header? value) -> void + end + + class UpsertWorkflowSearchAttributesCommandAttributes < ::Google::Protobuf::AbstractMessage + + attr_accessor search_attributes(): ::Temporalio::Api::Common::V1::SearchAttributes? + def has_search_attributes?: () -> bool + def clear_search_attributes: () -> void + + type init_map = { + search_attributes: (::Temporalio::Api::Common::V1::SearchAttributes | ::Temporalio::Api::Common::V1::SearchAttributes::init_map)?, + "search_attributes" => (::Temporalio::Api::Common::V1::SearchAttributes | ::Temporalio::Api::Common::V1::SearchAttributes::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("search_attributes" name) -> ::Temporalio::Api::Common::V1::SearchAttributes? + + def []=: + ("search_attributes" name, ::Temporalio::Api::Common::V1::SearchAttributes? value) -> void + end + + class ModifyWorkflowPropertiesCommandAttributes < ::Google::Protobuf::AbstractMessage + + # 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. + attr_accessor upserted_memo(): ::Temporalio::Api::Common::V1::Memo? + def has_upserted_memo?: () -> bool + def clear_upserted_memo: () -> void + + type init_map = { + upserted_memo: (::Temporalio::Api::Common::V1::Memo | ::Temporalio::Api::Common::V1::Memo::init_map)?, + "upserted_memo" => (::Temporalio::Api::Common::V1::Memo | ::Temporalio::Api::Common::V1::Memo::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("upserted_memo" name) -> ::Temporalio::Api::Common::V1::Memo? + + def []=: + ("upserted_memo" name, ::Temporalio::Api::Common::V1::Memo? value) -> void + end + + class RecordMarkerCommandAttributes < ::Google::Protobuf::AbstractMessage + + attr_reader marker_name(): ::String + attr_writer marker_name(): ::String | ::Symbol + def clear_marker_name: () -> void + + attr_accessor details(): ::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payloads] + def clear_details: () -> void + + attr_accessor header(): ::Temporalio::Api::Common::V1::Header? + def has_header?: () -> bool + def clear_header: () -> void + + attr_accessor failure(): ::Temporalio::Api::Failure::V1::Failure? + def has_failure?: () -> bool + def clear_failure: () -> void + + type init_map = { + marker_name: (::String | ::Symbol)?, + "marker_name" => (::String | ::Symbol)?, + details: ::Hash[::String | ::Symbol, ::Temporalio::Api::Common::V1::Payloads]?, + "details" => ::Hash[::String | ::Symbol, ::Temporalio::Api::Common::V1::Payloads]?, + header: (::Temporalio::Api::Common::V1::Header | ::Temporalio::Api::Common::V1::Header::init_map)?, + "header" => (::Temporalio::Api::Common::V1::Header | ::Temporalio::Api::Common::V1::Header::init_map)?, + failure: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + "failure" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("marker_name" name) -> ::String + | ("details" name) -> (::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payloads]) + | ("header" name) -> ::Temporalio::Api::Common::V1::Header? + | ("failure" name) -> ::Temporalio::Api::Failure::V1::Failure? + + def []=: + ("marker_name" name, (::String | ::Symbol) value) -> void + | ("details" name, (::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payloads]) value) -> void + | ("header" name, ::Temporalio::Api::Common::V1::Header? value) -> void + | ("failure" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void + end + + class ContinueAsNewWorkflowExecutionCommandAttributes < ::Google::Protobuf::AbstractMessage + + attr_accessor workflow_type(): ::Temporalio::Api::Common::V1::WorkflowType? + def has_workflow_type?: () -> bool + def clear_workflow_type: () -> void + + attr_accessor task_queue(): ::Temporalio::Api::TaskQueue::V1::TaskQueue? + def has_task_queue?: () -> bool + def clear_task_queue: () -> void + + attr_accessor input(): ::Temporalio::Api::Common::V1::Payloads? + def has_input?: () -> bool + def clear_input: () -> void + + # Timeout of a single workflow run. + attr_reader workflow_run_timeout(): ::Google::Protobuf::Duration? + attr_writer workflow_run_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_workflow_run_timeout?: () -> bool + def clear_workflow_run_timeout: () -> void + + # Timeout of a single workflow task. + attr_reader workflow_task_timeout(): ::Google::Protobuf::Duration? + attr_writer workflow_task_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_workflow_task_timeout?: () -> bool + def clear_workflow_task_timeout: () -> void + + # How long the workflow start will be delayed - not really a "backoff" in the traditional sense. + attr_reader backoff_start_interval(): ::Google::Protobuf::Duration? + attr_writer backoff_start_interval(): (::Google::Protobuf::Duration | ::int)? + def has_backoff_start_interval?: () -> bool + def clear_backoff_start_interval: () -> void + + attr_accessor retry_policy(): ::Temporalio::Api::Common::V1::RetryPolicy? + def has_retry_policy?: () -> bool + def clear_retry_policy: () -> void + + # Should be removed + attr_reader initiator(): ::Temporalio::Api::Enums::V1::ContinueAsNewInitiator::names | ::Integer + attr_writer initiator(): ::Temporalio::Api::Enums::V1::ContinueAsNewInitiator::names | ::Temporalio::Api::Enums::V1::ContinueAsNewInitiator::strings | ::Integer | ::Float + attr_reader initiator_const(): ::Integer + def clear_initiator: () -> void + + # Should be removed + attr_accessor failure(): ::Temporalio::Api::Failure::V1::Failure? + def has_failure?: () -> bool + def clear_failure: () -> void + + # Should be removed + attr_accessor last_completion_result(): ::Temporalio::Api::Common::V1::Payloads? + def has_last_completion_result?: () -> bool + def clear_last_completion_result: () -> void + + # Should be removed. Not necessarily unused but unclear and not exposed by SDKs. + attr_reader cron_schedule(): ::String + attr_writer cron_schedule(): ::String | ::Symbol + def clear_cron_schedule: () -> void + + attr_accessor header(): ::Temporalio::Api::Common::V1::Header? + def has_header?: () -> bool + def clear_header: () -> void + + attr_accessor memo(): ::Temporalio::Api::Common::V1::Memo? + def has_memo?: () -> bool + def clear_memo: () -> void + + attr_accessor search_attributes(): ::Temporalio::Api::Common::V1::SearchAttributes? + def has_search_attributes?: () -> bool + def clear_search_attributes: () -> void + + # 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 + attr_accessor inherit_build_id(): bool + def clear_inherit_build_id: () -> void + + # 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. + attr_reader initial_versioning_behavior(): ::Temporalio::Api::Enums::V1::ContinueAsNewVersioningBehavior::names | ::Integer + attr_writer initial_versioning_behavior(): ::Temporalio::Api::Enums::V1::ContinueAsNewVersioningBehavior::names | ::Temporalio::Api::Enums::V1::ContinueAsNewVersioningBehavior::strings | ::Integer | ::Float + attr_reader initial_versioning_behavior_const(): ::Integer + def clear_initial_versioning_behavior: () -> void + + type init_map = { + workflow_type: (::Temporalio::Api::Common::V1::WorkflowType | ::Temporalio::Api::Common::V1::WorkflowType::init_map)?, + "workflow_type" => (::Temporalio::Api::Common::V1::WorkflowType | ::Temporalio::Api::Common::V1::WorkflowType::init_map)?, + task_queue: (::Temporalio::Api::TaskQueue::V1::TaskQueue | ::Temporalio::Api::TaskQueue::V1::TaskQueue::init_map)?, + "task_queue" => (::Temporalio::Api::TaskQueue::V1::TaskQueue | ::Temporalio::Api::TaskQueue::V1::TaskQueue::init_map)?, + input: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + "input" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + workflow_run_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "workflow_run_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + workflow_task_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "workflow_task_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + backoff_start_interval: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "backoff_start_interval" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + retry_policy: (::Temporalio::Api::Common::V1::RetryPolicy | ::Temporalio::Api::Common::V1::RetryPolicy::init_map)?, + "retry_policy" => (::Temporalio::Api::Common::V1::RetryPolicy | ::Temporalio::Api::Common::V1::RetryPolicy::init_map)?, + initiator: (::Temporalio::Api::Enums::V1::ContinueAsNewInitiator::names | ::Temporalio::Api::Enums::V1::ContinueAsNewInitiator::strings | ::Integer | ::Float)?, + "initiator" => (::Temporalio::Api::Enums::V1::ContinueAsNewInitiator::names | ::Temporalio::Api::Enums::V1::ContinueAsNewInitiator::strings | ::Integer | ::Float)?, + failure: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + "failure" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + last_completion_result: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + "last_completion_result" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + cron_schedule: (::String | ::Symbol)?, + "cron_schedule" => (::String | ::Symbol)?, + header: (::Temporalio::Api::Common::V1::Header | ::Temporalio::Api::Common::V1::Header::init_map)?, + "header" => (::Temporalio::Api::Common::V1::Header | ::Temporalio::Api::Common::V1::Header::init_map)?, + memo: (::Temporalio::Api::Common::V1::Memo | ::Temporalio::Api::Common::V1::Memo::init_map)?, + "memo" => (::Temporalio::Api::Common::V1::Memo | ::Temporalio::Api::Common::V1::Memo::init_map)?, + search_attributes: (::Temporalio::Api::Common::V1::SearchAttributes | ::Temporalio::Api::Common::V1::SearchAttributes::init_map)?, + "search_attributes" => (::Temporalio::Api::Common::V1::SearchAttributes | ::Temporalio::Api::Common::V1::SearchAttributes::init_map)?, + inherit_build_id: bool?, + "inherit_build_id" => bool?, + initial_versioning_behavior: (::Temporalio::Api::Enums::V1::ContinueAsNewVersioningBehavior::names | ::Temporalio::Api::Enums::V1::ContinueAsNewVersioningBehavior::strings | ::Integer | ::Float)?, + "initial_versioning_behavior" => (::Temporalio::Api::Enums::V1::ContinueAsNewVersioningBehavior::names | ::Temporalio::Api::Enums::V1::ContinueAsNewVersioningBehavior::strings | ::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("workflow_type" name) -> ::Temporalio::Api::Common::V1::WorkflowType? + | ("task_queue" name) -> ::Temporalio::Api::TaskQueue::V1::TaskQueue? + | ("input" name) -> ::Temporalio::Api::Common::V1::Payloads? + | ("workflow_run_timeout" name) -> ::Google::Protobuf::Duration? + | ("workflow_task_timeout" name) -> ::Google::Protobuf::Duration? + | ("backoff_start_interval" name) -> ::Google::Protobuf::Duration? + | ("retry_policy" name) -> ::Temporalio::Api::Common::V1::RetryPolicy? + | ("initiator" name) -> (::Temporalio::Api::Enums::V1::ContinueAsNewInitiator::names | ::Integer) + | ("failure" name) -> ::Temporalio::Api::Failure::V1::Failure? + | ("last_completion_result" name) -> ::Temporalio::Api::Common::V1::Payloads? + | ("cron_schedule" name) -> ::String + | ("header" name) -> ::Temporalio::Api::Common::V1::Header? + | ("memo" name) -> ::Temporalio::Api::Common::V1::Memo? + | ("search_attributes" name) -> ::Temporalio::Api::Common::V1::SearchAttributes? + | ("inherit_build_id" name) -> bool + | ("initial_versioning_behavior" name) -> (::Temporalio::Api::Enums::V1::ContinueAsNewVersioningBehavior::names | ::Integer) + + def []=: + ("workflow_type" name, ::Temporalio::Api::Common::V1::WorkflowType? value) -> void + | ("task_queue" name, ::Temporalio::Api::TaskQueue::V1::TaskQueue? value) -> void + | ("input" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void + | ("workflow_run_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("workflow_task_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("backoff_start_interval" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("retry_policy" name, ::Temporalio::Api::Common::V1::RetryPolicy? value) -> void + | ("initiator" name, (::Temporalio::Api::Enums::V1::ContinueAsNewInitiator::names | ::Temporalio::Api::Enums::V1::ContinueAsNewInitiator::strings | ::Integer | ::Float) value) -> void + | ("failure" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void + | ("last_completion_result" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void + | ("cron_schedule" name, (::String | ::Symbol) value) -> void + | ("header" name, ::Temporalio::Api::Common::V1::Header? value) -> void + | ("memo" name, ::Temporalio::Api::Common::V1::Memo? value) -> void + | ("search_attributes" name, ::Temporalio::Api::Common::V1::SearchAttributes? value) -> void + | ("inherit_build_id" name, bool value) -> void + | ("initial_versioning_behavior" name, (::Temporalio::Api::Enums::V1::ContinueAsNewVersioningBehavior::names | ::Temporalio::Api::Enums::V1::ContinueAsNewVersioningBehavior::strings | ::Integer | ::Float) value) -> void + end + + class StartChildWorkflowExecutionCommandAttributes < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_reader workflow_id(): ::String + attr_writer workflow_id(): ::String | ::Symbol + def clear_workflow_id: () -> void + + attr_accessor workflow_type(): ::Temporalio::Api::Common::V1::WorkflowType? + def has_workflow_type?: () -> bool + def clear_workflow_type: () -> void + + attr_accessor task_queue(): ::Temporalio::Api::TaskQueue::V1::TaskQueue? + def has_task_queue?: () -> bool + def clear_task_queue: () -> void + + attr_accessor input(): ::Temporalio::Api::Common::V1::Payloads? + def has_input?: () -> bool + def clear_input: () -> void + + # Total workflow execution timeout including retries and continue as new. + attr_reader workflow_execution_timeout(): ::Google::Protobuf::Duration? + attr_writer workflow_execution_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_workflow_execution_timeout?: () -> bool + def clear_workflow_execution_timeout: () -> void + + # Timeout of a single workflow run. + attr_reader workflow_run_timeout(): ::Google::Protobuf::Duration? + attr_writer workflow_run_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_workflow_run_timeout?: () -> bool + def clear_workflow_run_timeout: () -> void + + # Timeout of a single workflow task. + attr_reader workflow_task_timeout(): ::Google::Protobuf::Duration? + attr_writer workflow_task_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_workflow_task_timeout?: () -> bool + def clear_workflow_task_timeout: () -> void + + # Default: PARENT_CLOSE_POLICY_TERMINATE. + attr_reader parent_close_policy(): ::Temporalio::Api::Enums::V1::ParentClosePolicy::names | ::Integer + attr_writer parent_close_policy(): ::Temporalio::Api::Enums::V1::ParentClosePolicy::names | ::Temporalio::Api::Enums::V1::ParentClosePolicy::strings | ::Integer | ::Float + attr_reader parent_close_policy_const(): ::Integer + def clear_parent_close_policy: () -> void + + attr_reader control(): ::String + attr_writer control(): ::String | ::Symbol + def clear_control: () -> void + + # Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE. + attr_reader workflow_id_reuse_policy(): ::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::names | ::Integer + attr_writer workflow_id_reuse_policy(): ::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::names | ::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::strings | ::Integer | ::Float + attr_reader workflow_id_reuse_policy_const(): ::Integer + def clear_workflow_id_reuse_policy: () -> void + + attr_accessor retry_policy(): ::Temporalio::Api::Common::V1::RetryPolicy? + def has_retry_policy?: () -> bool + def clear_retry_policy: () -> void + + # Establish a cron schedule for the child workflow. + attr_reader cron_schedule(): ::String + attr_writer cron_schedule(): ::String | ::Symbol + def clear_cron_schedule: () -> void + + attr_accessor header(): ::Temporalio::Api::Common::V1::Header? + def has_header?: () -> bool + def clear_header: () -> void + + attr_accessor memo(): ::Temporalio::Api::Common::V1::Memo? + def has_memo?: () -> bool + def clear_memo: () -> void + + attr_accessor search_attributes(): ::Temporalio::Api::Common::V1::SearchAttributes? + def has_search_attributes?: () -> bool + def clear_search_attributes: () -> void + + # 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 + attr_accessor inherit_build_id(): bool + def clear_inherit_build_id: () -> void + + # Priority metadata. If this message is not present, or any fields are not + # present, they inherit the values from the workflow. + attr_accessor priority(): ::Temporalio::Api::Common::V1::Priority? + def has_priority?: () -> bool + def clear_priority: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + workflow_id: (::String | ::Symbol)?, + "workflow_id" => (::String | ::Symbol)?, + workflow_type: (::Temporalio::Api::Common::V1::WorkflowType | ::Temporalio::Api::Common::V1::WorkflowType::init_map)?, + "workflow_type" => (::Temporalio::Api::Common::V1::WorkflowType | ::Temporalio::Api::Common::V1::WorkflowType::init_map)?, + task_queue: (::Temporalio::Api::TaskQueue::V1::TaskQueue | ::Temporalio::Api::TaskQueue::V1::TaskQueue::init_map)?, + "task_queue" => (::Temporalio::Api::TaskQueue::V1::TaskQueue | ::Temporalio::Api::TaskQueue::V1::TaskQueue::init_map)?, + input: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + "input" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + workflow_execution_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "workflow_execution_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + workflow_run_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "workflow_run_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + workflow_task_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "workflow_task_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + parent_close_policy: (::Temporalio::Api::Enums::V1::ParentClosePolicy::names | ::Temporalio::Api::Enums::V1::ParentClosePolicy::strings | ::Integer | ::Float)?, + "parent_close_policy" => (::Temporalio::Api::Enums::V1::ParentClosePolicy::names | ::Temporalio::Api::Enums::V1::ParentClosePolicy::strings | ::Integer | ::Float)?, + control: (::String | ::Symbol)?, + "control" => (::String | ::Symbol)?, + workflow_id_reuse_policy: (::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::names | ::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::strings | ::Integer | ::Float)?, + "workflow_id_reuse_policy" => (::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::names | ::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::strings | ::Integer | ::Float)?, + retry_policy: (::Temporalio::Api::Common::V1::RetryPolicy | ::Temporalio::Api::Common::V1::RetryPolicy::init_map)?, + "retry_policy" => (::Temporalio::Api::Common::V1::RetryPolicy | ::Temporalio::Api::Common::V1::RetryPolicy::init_map)?, + cron_schedule: (::String | ::Symbol)?, + "cron_schedule" => (::String | ::Symbol)?, + header: (::Temporalio::Api::Common::V1::Header | ::Temporalio::Api::Common::V1::Header::init_map)?, + "header" => (::Temporalio::Api::Common::V1::Header | ::Temporalio::Api::Common::V1::Header::init_map)?, + memo: (::Temporalio::Api::Common::V1::Memo | ::Temporalio::Api::Common::V1::Memo::init_map)?, + "memo" => (::Temporalio::Api::Common::V1::Memo | ::Temporalio::Api::Common::V1::Memo::init_map)?, + search_attributes: (::Temporalio::Api::Common::V1::SearchAttributes | ::Temporalio::Api::Common::V1::SearchAttributes::init_map)?, + "search_attributes" => (::Temporalio::Api::Common::V1::SearchAttributes | ::Temporalio::Api::Common::V1::SearchAttributes::init_map)?, + inherit_build_id: bool?, + "inherit_build_id" => bool?, + priority: (::Temporalio::Api::Common::V1::Priority | ::Temporalio::Api::Common::V1::Priority::init_map)?, + "priority" => (::Temporalio::Api::Common::V1::Priority | ::Temporalio::Api::Common::V1::Priority::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("workflow_id" name) -> ::String + | ("workflow_type" name) -> ::Temporalio::Api::Common::V1::WorkflowType? + | ("task_queue" name) -> ::Temporalio::Api::TaskQueue::V1::TaskQueue? + | ("input" name) -> ::Temporalio::Api::Common::V1::Payloads? + | ("workflow_execution_timeout" name) -> ::Google::Protobuf::Duration? + | ("workflow_run_timeout" name) -> ::Google::Protobuf::Duration? + | ("workflow_task_timeout" name) -> ::Google::Protobuf::Duration? + | ("parent_close_policy" name) -> (::Temporalio::Api::Enums::V1::ParentClosePolicy::names | ::Integer) + | ("control" name) -> ::String + | ("workflow_id_reuse_policy" name) -> (::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::names | ::Integer) + | ("retry_policy" name) -> ::Temporalio::Api::Common::V1::RetryPolicy? + | ("cron_schedule" name) -> ::String + | ("header" name) -> ::Temporalio::Api::Common::V1::Header? + | ("memo" name) -> ::Temporalio::Api::Common::V1::Memo? + | ("search_attributes" name) -> ::Temporalio::Api::Common::V1::SearchAttributes? + | ("inherit_build_id" name) -> bool + | ("priority" name) -> ::Temporalio::Api::Common::V1::Priority? + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("workflow_id" name, (::String | ::Symbol) value) -> void + | ("workflow_type" name, ::Temporalio::Api::Common::V1::WorkflowType? value) -> void + | ("task_queue" name, ::Temporalio::Api::TaskQueue::V1::TaskQueue? value) -> void + | ("input" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void + | ("workflow_execution_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("workflow_run_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("workflow_task_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("parent_close_policy" name, (::Temporalio::Api::Enums::V1::ParentClosePolicy::names | ::Temporalio::Api::Enums::V1::ParentClosePolicy::strings | ::Integer | ::Float) value) -> void + | ("control" name, (::String | ::Symbol) value) -> void + | ("workflow_id_reuse_policy" name, (::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::names | ::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::strings | ::Integer | ::Float) value) -> void + | ("retry_policy" name, ::Temporalio::Api::Common::V1::RetryPolicy? value) -> void + | ("cron_schedule" name, (::String | ::Symbol) value) -> void + | ("header" name, ::Temporalio::Api::Common::V1::Header? value) -> void + | ("memo" name, ::Temporalio::Api::Common::V1::Memo? value) -> void + | ("search_attributes" name, ::Temporalio::Api::Common::V1::SearchAttributes? value) -> void + | ("inherit_build_id" name, bool value) -> void + | ("priority" name, ::Temporalio::Api::Common::V1::Priority? value) -> void + end + + class ProtocolMessageCommandAttributes < ::Google::Protobuf::AbstractMessage + + # The message ID of the message to which this command is a pointer. + attr_reader message_id(): ::String + attr_writer message_id(): ::String | ::Symbol + def clear_message_id: () -> void + + type init_map = { + message_id: (::String | ::Symbol)?, + "message_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("message_id" name) -> ::String + + def []=: + ("message_id" name, (::String | ::Symbol) value) -> void + end + + class ScheduleNexusOperationCommandAttributes < ::Google::Protobuf::AbstractMessage + + # Endpoint name, must exist in the endpoint registry or this command will fail. + attr_reader endpoint(): ::String + attr_writer endpoint(): ::String | ::Symbol + def clear_endpoint: () -> void + + # Service name. + attr_reader service(): ::String + attr_writer service(): ::String | ::Symbol + def clear_service: () -> void + + # Operation name. + attr_reader operation(): ::String + attr_writer operation(): ::String | ::Symbol + def clear_operation: () -> void + + # 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. + attr_accessor input(): ::Temporalio::Api::Common::V1::Payload? + def has_input?: () -> bool + def clear_input: () -> void + + # 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. --) + attr_reader schedule_to_close_timeout(): ::Google::Protobuf::Duration? + attr_writer schedule_to_close_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_schedule_to_close_timeout?: () -> bool + def clear_schedule_to_close_timeout: () -> void + + # 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. + attr_accessor nexus_header(): ::Google::Protobuf::Map[::String, ::String] + def clear_nexus_header: () -> void + + # 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. + attr_reader schedule_to_start_timeout(): ::Google::Protobuf::Duration? + attr_writer schedule_to_start_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_schedule_to_start_timeout?: () -> bool + def clear_schedule_to_start_timeout: () -> void + + # 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. + attr_reader start_to_close_timeout(): ::Google::Protobuf::Duration? + attr_writer start_to_close_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_start_to_close_timeout?: () -> bool + def clear_start_to_close_timeout: () -> void + + type init_map = { + endpoint: (::String | ::Symbol)?, + "endpoint" => (::String | ::Symbol)?, + service: (::String | ::Symbol)?, + "service" => (::String | ::Symbol)?, + operation: (::String | ::Symbol)?, + "operation" => (::String | ::Symbol)?, + input: (::Temporalio::Api::Common::V1::Payload | ::Temporalio::Api::Common::V1::Payload::init_map)?, + "input" => (::Temporalio::Api::Common::V1::Payload | ::Temporalio::Api::Common::V1::Payload::init_map)?, + schedule_to_close_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "schedule_to_close_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + nexus_header: ::Hash[::String | ::Symbol, ::String | ::Symbol]?, + "nexus_header" => ::Hash[::String | ::Symbol, ::String | ::Symbol]?, + schedule_to_start_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "schedule_to_start_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + start_to_close_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "start_to_close_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("endpoint" name) -> ::String + | ("service" name) -> ::String + | ("operation" name) -> ::String + | ("input" name) -> ::Temporalio::Api::Common::V1::Payload? + | ("schedule_to_close_timeout" name) -> ::Google::Protobuf::Duration? + | ("nexus_header" name) -> (::Google::Protobuf::Map[::String, ::String]) + | ("schedule_to_start_timeout" name) -> ::Google::Protobuf::Duration? + | ("start_to_close_timeout" name) -> ::Google::Protobuf::Duration? + + def []=: + ("endpoint" name, (::String | ::Symbol) value) -> void + | ("service" name, (::String | ::Symbol) value) -> void + | ("operation" name, (::String | ::Symbol) value) -> void + | ("input" name, ::Temporalio::Api::Common::V1::Payload? value) -> void + | ("schedule_to_close_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("nexus_header" name, (::Google::Protobuf::Map[::String, ::String]) value) -> void + | ("schedule_to_start_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("start_to_close_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + end + + class RequestCancelNexusOperationCommandAttributes < ::Google::Protobuf::AbstractMessage + + # 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. + attr_reader scheduled_event_id(): ::Integer + attr_writer scheduled_event_id(): ::Integer | ::Float + def clear_scheduled_event_id: () -> void + + type init_map = { + scheduled_event_id: (::Integer | ::Float)?, + "scheduled_event_id" => (::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("scheduled_event_id" name) -> ::Integer + + def []=: + ("scheduled_event_id" name, (::Integer | ::Float) value) -> void + end + + class Command < ::Google::Protobuf::AbstractMessage + + attr_reader command_type(): ::Temporalio::Api::Enums::V1::CommandType::names | ::Integer + attr_writer command_type(): ::Temporalio::Api::Enums::V1::CommandType::names | ::Temporalio::Api::Enums::V1::CommandType::strings | ::Integer | ::Float + attr_reader command_type_const(): ::Integer + def clear_command_type: () -> void + + # 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. + attr_accessor user_metadata(): ::Temporalio::Api::Sdk::V1::UserMetadata? + def has_user_metadata?: () -> bool + def clear_user_metadata: () -> void + + attr_accessor schedule_activity_task_command_attributes(): ::Temporalio::Api::Command::V1::ScheduleActivityTaskCommandAttributes? + def has_schedule_activity_task_command_attributes?: () -> bool + def clear_schedule_activity_task_command_attributes: () -> void + + attr_accessor start_timer_command_attributes(): ::Temporalio::Api::Command::V1::StartTimerCommandAttributes? + def has_start_timer_command_attributes?: () -> bool + def clear_start_timer_command_attributes: () -> void + + attr_accessor complete_workflow_execution_command_attributes(): ::Temporalio::Api::Command::V1::CompleteWorkflowExecutionCommandAttributes? + def has_complete_workflow_execution_command_attributes?: () -> bool + def clear_complete_workflow_execution_command_attributes: () -> void + + attr_accessor fail_workflow_execution_command_attributes(): ::Temporalio::Api::Command::V1::FailWorkflowExecutionCommandAttributes? + def has_fail_workflow_execution_command_attributes?: () -> bool + def clear_fail_workflow_execution_command_attributes: () -> void + + attr_accessor request_cancel_activity_task_command_attributes(): ::Temporalio::Api::Command::V1::RequestCancelActivityTaskCommandAttributes? + def has_request_cancel_activity_task_command_attributes?: () -> bool + def clear_request_cancel_activity_task_command_attributes: () -> void + + attr_accessor cancel_timer_command_attributes(): ::Temporalio::Api::Command::V1::CancelTimerCommandAttributes? + def has_cancel_timer_command_attributes?: () -> bool + def clear_cancel_timer_command_attributes: () -> void + + attr_accessor cancel_workflow_execution_command_attributes(): ::Temporalio::Api::Command::V1::CancelWorkflowExecutionCommandAttributes? + def has_cancel_workflow_execution_command_attributes?: () -> bool + def clear_cancel_workflow_execution_command_attributes: () -> void + + attr_accessor request_cancel_external_workflow_execution_command_attributes(): ::Temporalio::Api::Command::V1::RequestCancelExternalWorkflowExecutionCommandAttributes? + def has_request_cancel_external_workflow_execution_command_attributes?: () -> bool + def clear_request_cancel_external_workflow_execution_command_attributes: () -> void + + attr_accessor record_marker_command_attributes(): ::Temporalio::Api::Command::V1::RecordMarkerCommandAttributes? + def has_record_marker_command_attributes?: () -> bool + def clear_record_marker_command_attributes: () -> void + + attr_accessor continue_as_new_workflow_execution_command_attributes(): ::Temporalio::Api::Command::V1::ContinueAsNewWorkflowExecutionCommandAttributes? + def has_continue_as_new_workflow_execution_command_attributes?: () -> bool + def clear_continue_as_new_workflow_execution_command_attributes: () -> void + + attr_accessor start_child_workflow_execution_command_attributes(): ::Temporalio::Api::Command::V1::StartChildWorkflowExecutionCommandAttributes? + def has_start_child_workflow_execution_command_attributes?: () -> bool + def clear_start_child_workflow_execution_command_attributes: () -> void + + attr_accessor signal_external_workflow_execution_command_attributes(): ::Temporalio::Api::Command::V1::SignalExternalWorkflowExecutionCommandAttributes? + def has_signal_external_workflow_execution_command_attributes?: () -> bool + def clear_signal_external_workflow_execution_command_attributes: () -> void + + attr_accessor upsert_workflow_search_attributes_command_attributes(): ::Temporalio::Api::Command::V1::UpsertWorkflowSearchAttributesCommandAttributes? + def has_upsert_workflow_search_attributes_command_attributes?: () -> bool + def clear_upsert_workflow_search_attributes_command_attributes: () -> void + + attr_accessor protocol_message_command_attributes(): ::Temporalio::Api::Command::V1::ProtocolMessageCommandAttributes? + def has_protocol_message_command_attributes?: () -> bool + def clear_protocol_message_command_attributes: () -> void + + # 16 is available for use - it was used as part of a prototype that never made it into a release + attr_accessor modify_workflow_properties_command_attributes(): ::Temporalio::Api::Command::V1::ModifyWorkflowPropertiesCommandAttributes? + def has_modify_workflow_properties_command_attributes?: () -> bool + def clear_modify_workflow_properties_command_attributes: () -> void + + attr_accessor schedule_nexus_operation_command_attributes(): ::Temporalio::Api::Command::V1::ScheduleNexusOperationCommandAttributes? + def has_schedule_nexus_operation_command_attributes?: () -> bool + def clear_schedule_nexus_operation_command_attributes: () -> void + + attr_accessor request_cancel_nexus_operation_command_attributes(): ::Temporalio::Api::Command::V1::RequestCancelNexusOperationCommandAttributes? + def has_request_cancel_nexus_operation_command_attributes?: () -> bool + def clear_request_cancel_nexus_operation_command_attributes: () -> void + + # The command details. The type must match that in `command_type`. + attr_reader attributes(): (::Temporalio::Api::Command::V1::ScheduleActivityTaskCommandAttributes | ::Temporalio::Api::Command::V1::StartTimerCommandAttributes | ::Temporalio::Api::Command::V1::CompleteWorkflowExecutionCommandAttributes | ::Temporalio::Api::Command::V1::FailWorkflowExecutionCommandAttributes | ::Temporalio::Api::Command::V1::RequestCancelActivityTaskCommandAttributes | ::Temporalio::Api::Command::V1::CancelTimerCommandAttributes | ::Temporalio::Api::Command::V1::CancelWorkflowExecutionCommandAttributes | ::Temporalio::Api::Command::V1::RequestCancelExternalWorkflowExecutionCommandAttributes | ::Temporalio::Api::Command::V1::RecordMarkerCommandAttributes | ::Temporalio::Api::Command::V1::ContinueAsNewWorkflowExecutionCommandAttributes | ::Temporalio::Api::Command::V1::StartChildWorkflowExecutionCommandAttributes | ::Temporalio::Api::Command::V1::SignalExternalWorkflowExecutionCommandAttributes | ::Temporalio::Api::Command::V1::UpsertWorkflowSearchAttributesCommandAttributes | ::Temporalio::Api::Command::V1::ProtocolMessageCommandAttributes | ::Temporalio::Api::Command::V1::ModifyWorkflowPropertiesCommandAttributes | ::Temporalio::Api::Command::V1::ScheduleNexusOperationCommandAttributes | ::Temporalio::Api::Command::V1::RequestCancelNexusOperationCommandAttributes)? + def has_attributes?: () -> bool + def clear_attributes: () -> void + + type init_map = { + command_type: (::Temporalio::Api::Enums::V1::CommandType::names | ::Temporalio::Api::Enums::V1::CommandType::strings | ::Integer | ::Float)?, + "command_type" => (::Temporalio::Api::Enums::V1::CommandType::names | ::Temporalio::Api::Enums::V1::CommandType::strings | ::Integer | ::Float)?, + user_metadata: (::Temporalio::Api::Sdk::V1::UserMetadata | ::Temporalio::Api::Sdk::V1::UserMetadata::init_map)?, + "user_metadata" => (::Temporalio::Api::Sdk::V1::UserMetadata | ::Temporalio::Api::Sdk::V1::UserMetadata::init_map)?, + schedule_activity_task_command_attributes: (::Temporalio::Api::Command::V1::ScheduleActivityTaskCommandAttributes | ::Temporalio::Api::Command::V1::ScheduleActivityTaskCommandAttributes::init_map)?, + "schedule_activity_task_command_attributes" => (::Temporalio::Api::Command::V1::ScheduleActivityTaskCommandAttributes | ::Temporalio::Api::Command::V1::ScheduleActivityTaskCommandAttributes::init_map)?, + start_timer_command_attributes: (::Temporalio::Api::Command::V1::StartTimerCommandAttributes | ::Temporalio::Api::Command::V1::StartTimerCommandAttributes::init_map)?, + "start_timer_command_attributes" => (::Temporalio::Api::Command::V1::StartTimerCommandAttributes | ::Temporalio::Api::Command::V1::StartTimerCommandAttributes::init_map)?, + complete_workflow_execution_command_attributes: (::Temporalio::Api::Command::V1::CompleteWorkflowExecutionCommandAttributes | ::Temporalio::Api::Command::V1::CompleteWorkflowExecutionCommandAttributes::init_map)?, + "complete_workflow_execution_command_attributes" => (::Temporalio::Api::Command::V1::CompleteWorkflowExecutionCommandAttributes | ::Temporalio::Api::Command::V1::CompleteWorkflowExecutionCommandAttributes::init_map)?, + fail_workflow_execution_command_attributes: (::Temporalio::Api::Command::V1::FailWorkflowExecutionCommandAttributes | ::Temporalio::Api::Command::V1::FailWorkflowExecutionCommandAttributes::init_map)?, + "fail_workflow_execution_command_attributes" => (::Temporalio::Api::Command::V1::FailWorkflowExecutionCommandAttributes | ::Temporalio::Api::Command::V1::FailWorkflowExecutionCommandAttributes::init_map)?, + request_cancel_activity_task_command_attributes: (::Temporalio::Api::Command::V1::RequestCancelActivityTaskCommandAttributes | ::Temporalio::Api::Command::V1::RequestCancelActivityTaskCommandAttributes::init_map)?, + "request_cancel_activity_task_command_attributes" => (::Temporalio::Api::Command::V1::RequestCancelActivityTaskCommandAttributes | ::Temporalio::Api::Command::V1::RequestCancelActivityTaskCommandAttributes::init_map)?, + cancel_timer_command_attributes: (::Temporalio::Api::Command::V1::CancelTimerCommandAttributes | ::Temporalio::Api::Command::V1::CancelTimerCommandAttributes::init_map)?, + "cancel_timer_command_attributes" => (::Temporalio::Api::Command::V1::CancelTimerCommandAttributes | ::Temporalio::Api::Command::V1::CancelTimerCommandAttributes::init_map)?, + cancel_workflow_execution_command_attributes: (::Temporalio::Api::Command::V1::CancelWorkflowExecutionCommandAttributes | ::Temporalio::Api::Command::V1::CancelWorkflowExecutionCommandAttributes::init_map)?, + "cancel_workflow_execution_command_attributes" => (::Temporalio::Api::Command::V1::CancelWorkflowExecutionCommandAttributes | ::Temporalio::Api::Command::V1::CancelWorkflowExecutionCommandAttributes::init_map)?, + request_cancel_external_workflow_execution_command_attributes: (::Temporalio::Api::Command::V1::RequestCancelExternalWorkflowExecutionCommandAttributes | ::Temporalio::Api::Command::V1::RequestCancelExternalWorkflowExecutionCommandAttributes::init_map)?, + "request_cancel_external_workflow_execution_command_attributes" => (::Temporalio::Api::Command::V1::RequestCancelExternalWorkflowExecutionCommandAttributes | ::Temporalio::Api::Command::V1::RequestCancelExternalWorkflowExecutionCommandAttributes::init_map)?, + record_marker_command_attributes: (::Temporalio::Api::Command::V1::RecordMarkerCommandAttributes | ::Temporalio::Api::Command::V1::RecordMarkerCommandAttributes::init_map)?, + "record_marker_command_attributes" => (::Temporalio::Api::Command::V1::RecordMarkerCommandAttributes | ::Temporalio::Api::Command::V1::RecordMarkerCommandAttributes::init_map)?, + continue_as_new_workflow_execution_command_attributes: (::Temporalio::Api::Command::V1::ContinueAsNewWorkflowExecutionCommandAttributes | ::Temporalio::Api::Command::V1::ContinueAsNewWorkflowExecutionCommandAttributes::init_map)?, + "continue_as_new_workflow_execution_command_attributes" => (::Temporalio::Api::Command::V1::ContinueAsNewWorkflowExecutionCommandAttributes | ::Temporalio::Api::Command::V1::ContinueAsNewWorkflowExecutionCommandAttributes::init_map)?, + start_child_workflow_execution_command_attributes: (::Temporalio::Api::Command::V1::StartChildWorkflowExecutionCommandAttributes | ::Temporalio::Api::Command::V1::StartChildWorkflowExecutionCommandAttributes::init_map)?, + "start_child_workflow_execution_command_attributes" => (::Temporalio::Api::Command::V1::StartChildWorkflowExecutionCommandAttributes | ::Temporalio::Api::Command::V1::StartChildWorkflowExecutionCommandAttributes::init_map)?, + signal_external_workflow_execution_command_attributes: (::Temporalio::Api::Command::V1::SignalExternalWorkflowExecutionCommandAttributes | ::Temporalio::Api::Command::V1::SignalExternalWorkflowExecutionCommandAttributes::init_map)?, + "signal_external_workflow_execution_command_attributes" => (::Temporalio::Api::Command::V1::SignalExternalWorkflowExecutionCommandAttributes | ::Temporalio::Api::Command::V1::SignalExternalWorkflowExecutionCommandAttributes::init_map)?, + upsert_workflow_search_attributes_command_attributes: (::Temporalio::Api::Command::V1::UpsertWorkflowSearchAttributesCommandAttributes | ::Temporalio::Api::Command::V1::UpsertWorkflowSearchAttributesCommandAttributes::init_map)?, + "upsert_workflow_search_attributes_command_attributes" => (::Temporalio::Api::Command::V1::UpsertWorkflowSearchAttributesCommandAttributes | ::Temporalio::Api::Command::V1::UpsertWorkflowSearchAttributesCommandAttributes::init_map)?, + protocol_message_command_attributes: (::Temporalio::Api::Command::V1::ProtocolMessageCommandAttributes | ::Temporalio::Api::Command::V1::ProtocolMessageCommandAttributes::init_map)?, + "protocol_message_command_attributes" => (::Temporalio::Api::Command::V1::ProtocolMessageCommandAttributes | ::Temporalio::Api::Command::V1::ProtocolMessageCommandAttributes::init_map)?, + modify_workflow_properties_command_attributes: (::Temporalio::Api::Command::V1::ModifyWorkflowPropertiesCommandAttributes | ::Temporalio::Api::Command::V1::ModifyWorkflowPropertiesCommandAttributes::init_map)?, + "modify_workflow_properties_command_attributes" => (::Temporalio::Api::Command::V1::ModifyWorkflowPropertiesCommandAttributes | ::Temporalio::Api::Command::V1::ModifyWorkflowPropertiesCommandAttributes::init_map)?, + schedule_nexus_operation_command_attributes: (::Temporalio::Api::Command::V1::ScheduleNexusOperationCommandAttributes | ::Temporalio::Api::Command::V1::ScheduleNexusOperationCommandAttributes::init_map)?, + "schedule_nexus_operation_command_attributes" => (::Temporalio::Api::Command::V1::ScheduleNexusOperationCommandAttributes | ::Temporalio::Api::Command::V1::ScheduleNexusOperationCommandAttributes::init_map)?, + request_cancel_nexus_operation_command_attributes: (::Temporalio::Api::Command::V1::RequestCancelNexusOperationCommandAttributes | ::Temporalio::Api::Command::V1::RequestCancelNexusOperationCommandAttributes::init_map)?, + "request_cancel_nexus_operation_command_attributes" => (::Temporalio::Api::Command::V1::RequestCancelNexusOperationCommandAttributes | ::Temporalio::Api::Command::V1::RequestCancelNexusOperationCommandAttributes::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("command_type" name) -> (::Temporalio::Api::Enums::V1::CommandType::names | ::Integer) + | ("user_metadata" name) -> ::Temporalio::Api::Sdk::V1::UserMetadata? + | ("schedule_activity_task_command_attributes" name) -> ::Temporalio::Api::Command::V1::ScheduleActivityTaskCommandAttributes? + | ("start_timer_command_attributes" name) -> ::Temporalio::Api::Command::V1::StartTimerCommandAttributes? + | ("complete_workflow_execution_command_attributes" name) -> ::Temporalio::Api::Command::V1::CompleteWorkflowExecutionCommandAttributes? + | ("fail_workflow_execution_command_attributes" name) -> ::Temporalio::Api::Command::V1::FailWorkflowExecutionCommandAttributes? + | ("request_cancel_activity_task_command_attributes" name) -> ::Temporalio::Api::Command::V1::RequestCancelActivityTaskCommandAttributes? + | ("cancel_timer_command_attributes" name) -> ::Temporalio::Api::Command::V1::CancelTimerCommandAttributes? + | ("cancel_workflow_execution_command_attributes" name) -> ::Temporalio::Api::Command::V1::CancelWorkflowExecutionCommandAttributes? + | ("request_cancel_external_workflow_execution_command_attributes" name) -> ::Temporalio::Api::Command::V1::RequestCancelExternalWorkflowExecutionCommandAttributes? + | ("record_marker_command_attributes" name) -> ::Temporalio::Api::Command::V1::RecordMarkerCommandAttributes? + | ("continue_as_new_workflow_execution_command_attributes" name) -> ::Temporalio::Api::Command::V1::ContinueAsNewWorkflowExecutionCommandAttributes? + | ("start_child_workflow_execution_command_attributes" name) -> ::Temporalio::Api::Command::V1::StartChildWorkflowExecutionCommandAttributes? + | ("signal_external_workflow_execution_command_attributes" name) -> ::Temporalio::Api::Command::V1::SignalExternalWorkflowExecutionCommandAttributes? + | ("upsert_workflow_search_attributes_command_attributes" name) -> ::Temporalio::Api::Command::V1::UpsertWorkflowSearchAttributesCommandAttributes? + | ("protocol_message_command_attributes" name) -> ::Temporalio::Api::Command::V1::ProtocolMessageCommandAttributes? + | ("modify_workflow_properties_command_attributes" name) -> ::Temporalio::Api::Command::V1::ModifyWorkflowPropertiesCommandAttributes? + | ("schedule_nexus_operation_command_attributes" name) -> ::Temporalio::Api::Command::V1::ScheduleNexusOperationCommandAttributes? + | ("request_cancel_nexus_operation_command_attributes" name) -> ::Temporalio::Api::Command::V1::RequestCancelNexusOperationCommandAttributes? + + def []=: + ("command_type" name, (::Temporalio::Api::Enums::V1::CommandType::names | ::Temporalio::Api::Enums::V1::CommandType::strings | ::Integer | ::Float) value) -> void + | ("user_metadata" name, ::Temporalio::Api::Sdk::V1::UserMetadata? value) -> void + | ("schedule_activity_task_command_attributes" name, ::Temporalio::Api::Command::V1::ScheduleActivityTaskCommandAttributes? value) -> void + | ("start_timer_command_attributes" name, ::Temporalio::Api::Command::V1::StartTimerCommandAttributes? value) -> void + | ("complete_workflow_execution_command_attributes" name, ::Temporalio::Api::Command::V1::CompleteWorkflowExecutionCommandAttributes? value) -> void + | ("fail_workflow_execution_command_attributes" name, ::Temporalio::Api::Command::V1::FailWorkflowExecutionCommandAttributes? value) -> void + | ("request_cancel_activity_task_command_attributes" name, ::Temporalio::Api::Command::V1::RequestCancelActivityTaskCommandAttributes? value) -> void + | ("cancel_timer_command_attributes" name, ::Temporalio::Api::Command::V1::CancelTimerCommandAttributes? value) -> void + | ("cancel_workflow_execution_command_attributes" name, ::Temporalio::Api::Command::V1::CancelWorkflowExecutionCommandAttributes? value) -> void + | ("request_cancel_external_workflow_execution_command_attributes" name, ::Temporalio::Api::Command::V1::RequestCancelExternalWorkflowExecutionCommandAttributes? value) -> void + | ("record_marker_command_attributes" name, ::Temporalio::Api::Command::V1::RecordMarkerCommandAttributes? value) -> void + | ("continue_as_new_workflow_execution_command_attributes" name, ::Temporalio::Api::Command::V1::ContinueAsNewWorkflowExecutionCommandAttributes? value) -> void + | ("start_child_workflow_execution_command_attributes" name, ::Temporalio::Api::Command::V1::StartChildWorkflowExecutionCommandAttributes? value) -> void + | ("signal_external_workflow_execution_command_attributes" name, ::Temporalio::Api::Command::V1::SignalExternalWorkflowExecutionCommandAttributes? value) -> void + | ("upsert_workflow_search_attributes_command_attributes" name, ::Temporalio::Api::Command::V1::UpsertWorkflowSearchAttributesCommandAttributes? value) -> void + | ("protocol_message_command_attributes" name, ::Temporalio::Api::Command::V1::ProtocolMessageCommandAttributes? value) -> void + | ("modify_workflow_properties_command_attributes" name, ::Temporalio::Api::Command::V1::ModifyWorkflowPropertiesCommandAttributes? value) -> void + | ("schedule_nexus_operation_command_attributes" name, ::Temporalio::Api::Command::V1::ScheduleNexusOperationCommandAttributes? value) -> void + | ("request_cancel_nexus_operation_command_attributes" name, ::Temporalio::Api::Command::V1::RequestCancelNexusOperationCommandAttributes? value) -> void + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/api/common/v1/grpc_status.rbs b/temporalio/sig/temporalio/api/common/v1/grpc_status.rbs new file mode 100644 index 00000000..9b8bc881 --- /dev/null +++ b/temporalio/sig/temporalio/api/common/v1/grpc_status.rbs @@ -0,0 +1,59 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/api/common/v1/grpc_status.proto + +module Temporalio + module Api + module Common + module V1 + # From https://github.com/grpc/grpc/blob/master/src/proto/grpc/status/status.proto + # since we don't import grpc but still need the status info + class GrpcStatus < ::Google::Protobuf::AbstractMessage + + attr_reader code(): ::Integer + attr_writer code(): ::Integer | ::Float + def clear_code: () -> void + + attr_reader message(): ::String + attr_writer message(): ::String | ::Symbol + def clear_message: () -> void + + attr_accessor details(): ::Google::Protobuf::RepeatedField + def clear_details: () -> void + + type init_map = { + code: (::Integer | ::Float)?, + "code" => (::Integer | ::Float)?, + message: (::String | ::Symbol)?, + "message" => (::String | ::Symbol)?, + details: ::Array[::Google::Protobuf::Any]?, + "details" => ::Array[::Google::Protobuf::Any]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("code" name) -> ::Integer + | ("message" name) -> ::String + | ("details" name) -> ::Google::Protobuf::RepeatedField + + def []=: + ("code" name, (::Integer | ::Float) value) -> void + | ("message" name, (::String | ::Symbol) value) -> void + | ("details" name, ::Google::Protobuf::RepeatedField value) -> void + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/api/common/v1/message.rbs b/temporalio/sig/temporalio/api/common/v1/message.rbs new file mode 100644 index 00000000..eb241e2f --- /dev/null +++ b/temporalio/sig/temporalio/api/common/v1/message.rbs @@ -0,0 +1,926 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/api/common/v1/message.proto + +module Temporalio + module Api + module Common + module V1 + class DataBlob < ::Google::Protobuf::AbstractMessage + + attr_reader encoding_type(): ::Temporalio::Api::Enums::V1::EncodingType::names | ::Integer + attr_writer encoding_type(): ::Temporalio::Api::Enums::V1::EncodingType::names | ::Temporalio::Api::Enums::V1::EncodingType::strings | ::Integer | ::Float + attr_reader encoding_type_const(): ::Integer + def clear_encoding_type: () -> void + + attr_accessor data(): ::String + def clear_data: () -> void + + type init_map = { + encoding_type: (::Temporalio::Api::Enums::V1::EncodingType::names | ::Temporalio::Api::Enums::V1::EncodingType::strings | ::Integer | ::Float)?, + "encoding_type" => (::Temporalio::Api::Enums::V1::EncodingType::names | ::Temporalio::Api::Enums::V1::EncodingType::strings | ::Integer | ::Float)?, + data: ::String?, + "data" => ::String?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("encoding_type" name) -> (::Temporalio::Api::Enums::V1::EncodingType::names | ::Integer) + | ("data" name) -> ::String + + def []=: + ("encoding_type" name, (::Temporalio::Api::Enums::V1::EncodingType::names | ::Temporalio::Api::Enums::V1::EncodingType::strings | ::Integer | ::Float) value) -> void + | ("data" name, ::String value) -> void + end + + # See `Payload` + class Payloads < ::Google::Protobuf::AbstractMessage + + attr_accessor payloads(): ::Google::Protobuf::RepeatedField + def clear_payloads: () -> void + + type init_map = { + payloads: ::Array[::Temporalio::Api::Common::V1::Payload]?, + "payloads" => ::Array[::Temporalio::Api::Common::V1::Payload]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("payloads" name) -> ::Google::Protobuf::RepeatedField + + def []=: + ("payloads" name, ::Google::Protobuf::RepeatedField value) -> void + end + + # 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. + class Payload < ::Google::Protobuf::AbstractMessage + # Describes an externally stored object referenced by this payload. + class ExternalPayloadDetails < ::Google::Protobuf::AbstractMessage + + # Size in bytes of the externally stored payload + attr_reader size_bytes(): ::Integer + attr_writer size_bytes(): ::Integer | ::Float + def clear_size_bytes: () -> void + + type init_map = { + size_bytes: (::Integer | ::Float)?, + "size_bytes" => (::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("size_bytes" name) -> ::Integer + + def []=: + ("size_bytes" name, (::Integer | ::Float) value) -> void + end + + attr_accessor metadata(): ::Google::Protobuf::Map[::String, ::String] + def clear_metadata: () -> void + + attr_accessor data(): ::String + def clear_data: () -> void + + # Details about externally stored payloads associated with this payload. + attr_accessor external_payloads(): ::Google::Protobuf::RepeatedField + def clear_external_payloads: () -> void + + type init_map = { + metadata: ::Hash[::String | ::Symbol, ::String]?, + "metadata" => ::Hash[::String | ::Symbol, ::String]?, + data: ::String?, + "data" => ::String?, + external_payloads: ::Array[::Temporalio::Api::Common::V1::Payload::ExternalPayloadDetails]?, + "external_payloads" => ::Array[::Temporalio::Api::Common::V1::Payload::ExternalPayloadDetails]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("metadata" name) -> (::Google::Protobuf::Map[::String, ::String]) + | ("data" name) -> ::String + | ("external_payloads" name) -> ::Google::Protobuf::RepeatedField + + def []=: + ("metadata" name, (::Google::Protobuf::Map[::String, ::String]) value) -> void + | ("data" name, ::String value) -> void + | ("external_payloads" name, ::Google::Protobuf::RepeatedField value) -> void + end + + # 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. + class SearchAttributes < ::Google::Protobuf::AbstractMessage + + attr_accessor indexed_fields(): ::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload] + def clear_indexed_fields: () -> void + + type init_map = { + indexed_fields: ::Hash[::String | ::Symbol, ::Temporalio::Api::Common::V1::Payload]?, + "indexed_fields" => ::Hash[::String | ::Symbol, ::Temporalio::Api::Common::V1::Payload]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("indexed_fields" name) -> (::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload]) + + def []=: + ("indexed_fields" name, (::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload]) value) -> void + end + + # A user-defined set of *unindexed* fields that are exposed when listing/searching workflows + class Memo < ::Google::Protobuf::AbstractMessage + + attr_accessor fields(): ::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload] + def clear_fields: () -> void + + type init_map = { + fields: ::Hash[::String | ::Symbol, ::Temporalio::Api::Common::V1::Payload]?, + "fields" => ::Hash[::String | ::Symbol, ::Temporalio::Api::Common::V1::Payload]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("fields" name) -> (::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload]) + + def []=: + ("fields" name, (::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload]) value) -> void + end + + # 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. + class Header < ::Google::Protobuf::AbstractMessage + + attr_accessor fields(): ::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload] + def clear_fields: () -> void + + type init_map = { + fields: ::Hash[::String | ::Symbol, ::Temporalio::Api::Common::V1::Payload]?, + "fields" => ::Hash[::String | ::Symbol, ::Temporalio::Api::Common::V1::Payload]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("fields" name) -> (::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload]) + + def []=: + ("fields" name, (::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload]) value) -> void + end + + # 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". + class WorkflowExecution < ::Google::Protobuf::AbstractMessage + + attr_reader workflow_id(): ::String + attr_writer workflow_id(): ::String | ::Symbol + def clear_workflow_id: () -> void + + attr_reader run_id(): ::String + attr_writer run_id(): ::String | ::Symbol + def clear_run_id: () -> void + + type init_map = { + workflow_id: (::String | ::Symbol)?, + "workflow_id" => (::String | ::Symbol)?, + run_id: (::String | ::Symbol)?, + "run_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("workflow_id" name) -> ::String + | ("run_id" name) -> ::String + + def []=: + ("workflow_id" name, (::String | ::Symbol) value) -> void + | ("run_id" name, (::String | ::Symbol) value) -> void + end + + # 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" + class WorkflowType < ::Google::Protobuf::AbstractMessage + + attr_reader name(): ::String + attr_writer name(): ::String | ::Symbol + def clear_name: () -> void + + type init_map = { + name: (::String | ::Symbol)?, + "name" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("name" name) -> ::String + + def []=: + ("name" name, (::String | ::Symbol) value) -> void + end + + # 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" + class ActivityType < ::Google::Protobuf::AbstractMessage + + attr_reader name(): ::String + attr_writer name(): ::String | ::Symbol + def clear_name: () -> void + + type init_map = { + name: (::String | ::Symbol)?, + "name" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("name" name) -> ::String + + def []=: + ("name" name, (::String | ::Symbol) value) -> void + end + + # How retries ought to be handled, usable by both workflows and activities + class RetryPolicy < ::Google::Protobuf::AbstractMessage + + # Interval of the first retry. If retryBackoffCoefficient is 1.0 then it is used for all retries. + attr_reader initial_interval(): ::Google::Protobuf::Duration? + attr_writer initial_interval(): (::Google::Protobuf::Duration | ::int)? + def has_initial_interval?: () -> bool + def clear_initial_interval: () -> void + + # Coefficient used to calculate the next retry interval. + # The next retry interval is previous interval multiplied by the coefficient. + # Must be 1 or larger. + attr_reader backoff_coefficient(): ::Float + attr_writer backoff_coefficient(): ::Float | ::Integer + def clear_backoff_coefficient: () -> void + + # 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. + attr_reader maximum_interval(): ::Google::Protobuf::Duration? + attr_writer maximum_interval(): (::Google::Protobuf::Duration | ::int)? + def has_maximum_interval?: () -> bool + def clear_maximum_interval: () -> void + + # Maximum number of attempts. When exceeded the retries stop even if not expired yet. + # 1 disables retries. 0 means unlimited (up to the timeouts) + attr_reader maximum_attempts(): ::Integer + attr_writer maximum_attempts(): ::Integer | ::Float + def clear_maximum_attempts: () -> void + + # 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. + attr_accessor non_retryable_error_types(): ::Google::Protobuf::RepeatedField + def clear_non_retryable_error_types: () -> void + + type init_map = { + initial_interval: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "initial_interval" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + backoff_coefficient: (::Float | ::Integer)?, + "backoff_coefficient" => (::Float | ::Integer)?, + maximum_interval: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "maximum_interval" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + maximum_attempts: (::Integer | ::Float)?, + "maximum_attempts" => (::Integer | ::Float)?, + non_retryable_error_types: ::Array[::String | ::Symbol]?, + "non_retryable_error_types" => ::Array[::String | ::Symbol]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("initial_interval" name) -> ::Google::Protobuf::Duration? + | ("backoff_coefficient" name) -> ::Float + | ("maximum_interval" name) -> ::Google::Protobuf::Duration? + | ("maximum_attempts" name) -> ::Integer + | ("non_retryable_error_types" name) -> (::Google::Protobuf::RepeatedField) + + def []=: + ("initial_interval" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("backoff_coefficient" name, (::Float | ::Integer) value) -> void + | ("maximum_interval" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("maximum_attempts" name, (::Integer | ::Float) value) -> void + | ("non_retryable_error_types" name, (::Google::Protobuf::RepeatedField) value) -> void + end + + # Metadata relevant for metering purposes + class MeteringMetadata < ::Google::Protobuf::AbstractMessage + + # 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. --) + attr_reader nonfirst_local_activity_execution_attempts(): ::Integer + attr_writer nonfirst_local_activity_execution_attempts(): ::Integer | ::Float + def clear_nonfirst_local_activity_execution_attempts: () -> void + + type init_map = { + nonfirst_local_activity_execution_attempts: (::Integer | ::Float)?, + "nonfirst_local_activity_execution_attempts" => (::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("nonfirst_local_activity_execution_attempts" name) -> ::Integer + + def []=: + ("nonfirst_local_activity_execution_attempts" name, (::Integer | ::Float) value) -> void + end + + # Deprecated. This message is replaced with `Deployment` and `VersioningBehavior`. + # Identifies the version(s) of a worker that processed a task + class WorkerVersionStamp < ::Google::Protobuf::AbstractMessage + + # An opaque whole-worker identifier. Replaces the deprecated `binary_checksum` field when this + # message is included in requests which previously used that. + attr_reader build_id(): ::String + attr_writer build_id(): ::String | ::Symbol + def clear_build_id: () -> void + + # 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. + attr_accessor use_versioning(): bool + def clear_use_versioning: () -> void + + type init_map = { + build_id: (::String | ::Symbol)?, + "build_id" => (::String | ::Symbol)?, + use_versioning: bool?, + "use_versioning" => bool?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("build_id" name) -> ::String + | ("use_versioning" name) -> bool + + def []=: + ("build_id" name, (::String | ::Symbol) value) -> void + | ("use_versioning" name, bool value) -> void + end + + # 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. + class WorkerVersionCapabilities < ::Google::Protobuf::AbstractMessage + + # An opaque whole-worker identifier + attr_reader build_id(): ::String + attr_writer build_id(): ::String | ::Symbol + def clear_build_id: () -> void + + # If set, the worker is opting in to worker versioning, and wishes to only receive appropriate + # tasks. + attr_accessor use_versioning(): bool + def clear_use_versioning: () -> void + + # Must be sent if user has set a deployment series name (versioning-3). + attr_reader deployment_series_name(): ::String + attr_writer deployment_series_name(): ::String | ::Symbol + def clear_deployment_series_name: () -> void + + type init_map = { + build_id: (::String | ::Symbol)?, + "build_id" => (::String | ::Symbol)?, + use_versioning: bool?, + "use_versioning" => bool?, + deployment_series_name: (::String | ::Symbol)?, + "deployment_series_name" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("build_id" name) -> ::String + | ("use_versioning" name) -> bool + | ("deployment_series_name" name) -> ::String + + def []=: + ("build_id" name, (::String | ::Symbol) value) -> void + | ("use_versioning" name, bool value) -> void + | ("deployment_series_name" name, (::String | ::Symbol) value) -> void + end + + # Describes where and how to reset a workflow, used for batch reset currently + # and may be used for single-workflow reset later. + class ResetOptions < ::Google::Protobuf::AbstractMessage + + # Resets to the first workflow task completed or started event. + attr_accessor first_workflow_task(): ::Google::Protobuf::Empty? + def has_first_workflow_task?: () -> bool + def clear_first_workflow_task: () -> void + + # Resets to the last workflow task completed or started event. + attr_accessor last_workflow_task(): ::Google::Protobuf::Empty? + def has_last_workflow_task?: () -> bool + def clear_last_workflow_task: () -> void + + # 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. + attr_reader workflow_task_id(): ::Integer + attr_writer workflow_task_id(): (::Integer | ::Float)? + def has_workflow_task_id?: () -> bool + def clear_workflow_task_id: () -> void + + # 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. + attr_reader build_id(): ::String + attr_writer build_id(): (::String | ::Symbol)? + def has_build_id?: () -> bool + def clear_build_id: () -> void + + # Deprecated. Use `options`. + # Default: RESET_REAPPLY_TYPE_SIGNAL + # @deprecated + attr_reader reset_reapply_type(): ::Temporalio::Api::Enums::V1::ResetReapplyType::names | ::Integer + attr_writer reset_reapply_type(): ::Temporalio::Api::Enums::V1::ResetReapplyType::names | ::Temporalio::Api::Enums::V1::ResetReapplyType::strings | ::Integer | ::Float + attr_reader reset_reapply_type_const(): ::Integer + def clear_reset_reapply_type: () -> void + + # If true, limit the reset to only within the current run. (Applies to build_id targets and + # possibly others in the future.) + attr_accessor current_run_only(): bool + def clear_current_run_only: () -> void + + # Event types not to be reapplied + attr_accessor reset_reapply_exclude_types(): ::Google::Protobuf::RepeatedField + attr_reader reset_reapply_exclude_types_const(): ::Array[::Integer] + def clear_reset_reapply_exclude_types: () -> void + + # Which workflow task to reset to. + attr_reader target(): (::Google::Protobuf::Empty | ::Integer | ::String)? + def has_target?: () -> bool + def clear_target: () -> void + + type init_map = { + first_workflow_task: (::Google::Protobuf::Empty | ::Google::Protobuf::Empty)?, + "first_workflow_task" => (::Google::Protobuf::Empty | ::Google::Protobuf::Empty)?, + last_workflow_task: (::Google::Protobuf::Empty | ::Google::Protobuf::Empty)?, + "last_workflow_task" => (::Google::Protobuf::Empty | ::Google::Protobuf::Empty)?, + workflow_task_id: (::Integer | ::Float)?, + "workflow_task_id" => (::Integer | ::Float)?, + build_id: (::String | ::Symbol)?, + "build_id" => (::String | ::Symbol)?, + reset_reapply_type: (::Temporalio::Api::Enums::V1::ResetReapplyType::names | ::Temporalio::Api::Enums::V1::ResetReapplyType::strings | ::Integer | ::Float)?, + "reset_reapply_type" => (::Temporalio::Api::Enums::V1::ResetReapplyType::names | ::Temporalio::Api::Enums::V1::ResetReapplyType::strings | ::Integer | ::Float)?, + current_run_only: bool?, + "current_run_only" => bool?, + reset_reapply_exclude_types: ::Array[::Temporalio::Api::Enums::V1::ResetReapplyExcludeType::names | ::Temporalio::Api::Enums::V1::ResetReapplyExcludeType::strings | ::Integer | ::Float]?, + "reset_reapply_exclude_types" => ::Array[::Temporalio::Api::Enums::V1::ResetReapplyExcludeType::names | ::Temporalio::Api::Enums::V1::ResetReapplyExcludeType::strings | ::Integer | ::Float]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("first_workflow_task" name) -> ::Google::Protobuf::Empty? + | ("last_workflow_task" name) -> ::Google::Protobuf::Empty? + | ("workflow_task_id" name) -> ::Integer + | ("build_id" name) -> ::String + | ("reset_reapply_type" name) -> (::Temporalio::Api::Enums::V1::ResetReapplyType::names | ::Integer) + | ("current_run_only" name) -> bool + | ("reset_reapply_exclude_types" name) -> (::Google::Protobuf::RepeatedField) + + def []=: + ("first_workflow_task" name, ::Google::Protobuf::Empty? value) -> void + | ("last_workflow_task" name, ::Google::Protobuf::Empty? value) -> void + | ("workflow_task_id" name, ((::Integer | ::Float)?) value) -> void + | ("build_id" name, ((::String | ::Symbol)?) value) -> void + | ("reset_reapply_type" name, (::Temporalio::Api::Enums::V1::ResetReapplyType::names | ::Temporalio::Api::Enums::V1::ResetReapplyType::strings | ::Integer | ::Float) value) -> void + | ("current_run_only" name, bool value) -> void + | ("reset_reapply_exclude_types" name, (::Google::Protobuf::RepeatedField) value) -> void + end + + # Callback to attach to various events in the system, e.g. workflow run completion. + class Callback < ::Google::Protobuf::AbstractMessage + class Nexus < ::Google::Protobuf::AbstractMessage + + # Callback URL. + attr_reader url(): ::String + attr_writer url(): ::String | ::Symbol + def clear_url: () -> void + + # Header to attach to callback request. + attr_accessor header(): ::Google::Protobuf::Map[::String, ::String] + def clear_header: () -> void + + type init_map = { + url: (::String | ::Symbol)?, + "url" => (::String | ::Symbol)?, + header: ::Hash[::String | ::Symbol, ::String | ::Symbol]?, + "header" => ::Hash[::String | ::Symbol, ::String | ::Symbol]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("url" name) -> ::String + | ("header" name) -> (::Google::Protobuf::Map[::String, ::String]) + + def []=: + ("url" name, (::String | ::Symbol) value) -> void + | ("header" name, (::Google::Protobuf::Map[::String, ::String]) value) -> void + end + + # 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. + class Internal < ::Google::Protobuf::AbstractMessage + + # Opaque internal data. + attr_accessor data(): ::String + def clear_data: () -> void + + type init_map = { + data: ::String?, + "data" => ::String?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("data" name) -> ::String + + def []=: + ("data" name, ::String value) -> void + end + + attr_accessor nexus(): ::Temporalio::Api::Common::V1::Callback::Nexus? + def has_nexus?: () -> bool + def clear_nexus: () -> void + + attr_accessor internal(): ::Temporalio::Api::Common::V1::Callback::Internal? + def has_internal?: () -> bool + def clear_internal: () -> void + + # Links associated with the callback. It can be used to link to underlying resources of the + # callback. + attr_accessor links(): ::Google::Protobuf::RepeatedField + def clear_links: () -> void + + attr_reader variant(): (::Temporalio::Api::Common::V1::Callback::Nexus | ::Temporalio::Api::Common::V1::Callback::Internal)? + def has_variant?: () -> bool + def clear_variant: () -> void + + type init_map = { + nexus: (::Temporalio::Api::Common::V1::Callback::Nexus | ::Temporalio::Api::Common::V1::Callback::Nexus::init_map)?, + "nexus" => (::Temporalio::Api::Common::V1::Callback::Nexus | ::Temporalio::Api::Common::V1::Callback::Nexus::init_map)?, + internal: (::Temporalio::Api::Common::V1::Callback::Internal | ::Temporalio::Api::Common::V1::Callback::Internal::init_map)?, + "internal" => (::Temporalio::Api::Common::V1::Callback::Internal | ::Temporalio::Api::Common::V1::Callback::Internal::init_map)?, + links: ::Array[::Temporalio::Api::Common::V1::Link]?, + "links" => ::Array[::Temporalio::Api::Common::V1::Link]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("nexus" name) -> ::Temporalio::Api::Common::V1::Callback::Nexus? + | ("internal" name) -> ::Temporalio::Api::Common::V1::Callback::Internal? + | ("links" name) -> ::Google::Protobuf::RepeatedField + + def []=: + ("nexus" name, ::Temporalio::Api::Common::V1::Callback::Nexus? value) -> void + | ("internal" name, ::Temporalio::Api::Common::V1::Callback::Internal? value) -> void + | ("links" name, ::Google::Protobuf::RepeatedField value) -> void + end + + # 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. + class Link < ::Google::Protobuf::AbstractMessage + class WorkflowEvent < ::Google::Protobuf::AbstractMessage + # EventReference is a direct reference to a history event through the event ID. + class EventReference < ::Google::Protobuf::AbstractMessage + + attr_reader event_id(): ::Integer + attr_writer event_id(): ::Integer | ::Float + def clear_event_id: () -> void + + attr_reader event_type(): ::Temporalio::Api::Enums::V1::EventType::names | ::Integer + attr_writer event_type(): ::Temporalio::Api::Enums::V1::EventType::names | ::Temporalio::Api::Enums::V1::EventType::strings | ::Integer | ::Float + attr_reader event_type_const(): ::Integer + def clear_event_type: () -> void + + type init_map = { + event_id: (::Integer | ::Float)?, + "event_id" => (::Integer | ::Float)?, + event_type: (::Temporalio::Api::Enums::V1::EventType::names | ::Temporalio::Api::Enums::V1::EventType::strings | ::Integer | ::Float)?, + "event_type" => (::Temporalio::Api::Enums::V1::EventType::names | ::Temporalio::Api::Enums::V1::EventType::strings | ::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("event_id" name) -> ::Integer + | ("event_type" name) -> (::Temporalio::Api::Enums::V1::EventType::names | ::Integer) + + def []=: + ("event_id" name, (::Integer | ::Float) value) -> void + | ("event_type" name, (::Temporalio::Api::Enums::V1::EventType::names | ::Temporalio::Api::Enums::V1::EventType::strings | ::Integer | ::Float) value) -> void + end + + # RequestIdReference is a indirect reference to a history event through the request ID. + class RequestIdReference < ::Google::Protobuf::AbstractMessage + + attr_reader request_id(): ::String + attr_writer request_id(): ::String | ::Symbol + def clear_request_id: () -> void + + attr_reader event_type(): ::Temporalio::Api::Enums::V1::EventType::names | ::Integer + attr_writer event_type(): ::Temporalio::Api::Enums::V1::EventType::names | ::Temporalio::Api::Enums::V1::EventType::strings | ::Integer | ::Float + attr_reader event_type_const(): ::Integer + def clear_event_type: () -> void + + type init_map = { + request_id: (::String | ::Symbol)?, + "request_id" => (::String | ::Symbol)?, + event_type: (::Temporalio::Api::Enums::V1::EventType::names | ::Temporalio::Api::Enums::V1::EventType::strings | ::Integer | ::Float)?, + "event_type" => (::Temporalio::Api::Enums::V1::EventType::names | ::Temporalio::Api::Enums::V1::EventType::strings | ::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("request_id" name) -> ::String + | ("event_type" name) -> (::Temporalio::Api::Enums::V1::EventType::names | ::Integer) + + def []=: + ("request_id" name, (::String | ::Symbol) value) -> void + | ("event_type" name, (::Temporalio::Api::Enums::V1::EventType::names | ::Temporalio::Api::Enums::V1::EventType::strings | ::Integer | ::Float) value) -> void + end + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_reader workflow_id(): ::String + attr_writer workflow_id(): ::String | ::Symbol + def clear_workflow_id: () -> void + + attr_reader run_id(): ::String + attr_writer run_id(): ::String | ::Symbol + def clear_run_id: () -> void + + attr_accessor event_ref(): ::Temporalio::Api::Common::V1::Link::WorkflowEvent::EventReference? + def has_event_ref?: () -> bool + def clear_event_ref: () -> void + + attr_accessor request_id_ref(): ::Temporalio::Api::Common::V1::Link::WorkflowEvent::RequestIdReference? + def has_request_id_ref?: () -> bool + def clear_request_id_ref: () -> void + + # Additional information about the workflow event. + # Eg: the caller workflow can send the history event details that made the Nexus call. + attr_reader reference(): (::Temporalio::Api::Common::V1::Link::WorkflowEvent::EventReference | ::Temporalio::Api::Common::V1::Link::WorkflowEvent::RequestIdReference)? + def has_reference?: () -> bool + def clear_reference: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + workflow_id: (::String | ::Symbol)?, + "workflow_id" => (::String | ::Symbol)?, + run_id: (::String | ::Symbol)?, + "run_id" => (::String | ::Symbol)?, + event_ref: (::Temporalio::Api::Common::V1::Link::WorkflowEvent::EventReference | ::Temporalio::Api::Common::V1::Link::WorkflowEvent::EventReference::init_map)?, + "event_ref" => (::Temporalio::Api::Common::V1::Link::WorkflowEvent::EventReference | ::Temporalio::Api::Common::V1::Link::WorkflowEvent::EventReference::init_map)?, + request_id_ref: (::Temporalio::Api::Common::V1::Link::WorkflowEvent::RequestIdReference | ::Temporalio::Api::Common::V1::Link::WorkflowEvent::RequestIdReference::init_map)?, + "request_id_ref" => (::Temporalio::Api::Common::V1::Link::WorkflowEvent::RequestIdReference | ::Temporalio::Api::Common::V1::Link::WorkflowEvent::RequestIdReference::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("workflow_id" name) -> ::String + | ("run_id" name) -> ::String + | ("event_ref" name) -> ::Temporalio::Api::Common::V1::Link::WorkflowEvent::EventReference? + | ("request_id_ref" name) -> ::Temporalio::Api::Common::V1::Link::WorkflowEvent::RequestIdReference? + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("workflow_id" name, (::String | ::Symbol) value) -> void + | ("run_id" name, (::String | ::Symbol) value) -> void + | ("event_ref" name, ::Temporalio::Api::Common::V1::Link::WorkflowEvent::EventReference? value) -> void + | ("request_id_ref" name, ::Temporalio::Api::Common::V1::Link::WorkflowEvent::RequestIdReference? value) -> void + end + + # 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. + class BatchJob < ::Google::Protobuf::AbstractMessage + + attr_reader job_id(): ::String + attr_writer job_id(): ::String | ::Symbol + def clear_job_id: () -> void + + type init_map = { + job_id: (::String | ::Symbol)?, + "job_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("job_id" name) -> ::String + + def []=: + ("job_id" name, (::String | ::Symbol) value) -> void + end + + attr_accessor workflow_event(): ::Temporalio::Api::Common::V1::Link::WorkflowEvent? + def has_workflow_event?: () -> bool + def clear_workflow_event: () -> void + + attr_accessor batch_job(): ::Temporalio::Api::Common::V1::Link::BatchJob? + def has_batch_job?: () -> bool + def clear_batch_job: () -> void + + attr_reader variant(): (::Temporalio::Api::Common::V1::Link::WorkflowEvent | ::Temporalio::Api::Common::V1::Link::BatchJob)? + def has_variant?: () -> bool + def clear_variant: () -> void + + type init_map = { + workflow_event: (::Temporalio::Api::Common::V1::Link::WorkflowEvent | ::Temporalio::Api::Common::V1::Link::WorkflowEvent::init_map)?, + "workflow_event" => (::Temporalio::Api::Common::V1::Link::WorkflowEvent | ::Temporalio::Api::Common::V1::Link::WorkflowEvent::init_map)?, + batch_job: (::Temporalio::Api::Common::V1::Link::BatchJob | ::Temporalio::Api::Common::V1::Link::BatchJob::init_map)?, + "batch_job" => (::Temporalio::Api::Common::V1::Link::BatchJob | ::Temporalio::Api::Common::V1::Link::BatchJob::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("workflow_event" name) -> ::Temporalio::Api::Common::V1::Link::WorkflowEvent? + | ("batch_job" name) -> ::Temporalio::Api::Common::V1::Link::BatchJob? + + def []=: + ("workflow_event" name, ::Temporalio::Api::Common::V1::Link::WorkflowEvent? value) -> void + | ("batch_job" name, ::Temporalio::Api::Common::V1::Link::BatchJob? value) -> void + end + + # 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.) + class Priority < ::Google::Protobuf::AbstractMessage + + # 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. + attr_reader priority_key(): ::Integer + attr_writer priority_key(): ::Integer | ::Float + def clear_priority_key: () -> void + + # 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. + attr_reader fairness_key(): ::String + attr_writer fairness_key(): ::String | ::Symbol + def clear_fairness_key: () -> void + + # 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]. + attr_reader fairness_weight(): ::Float + attr_writer fairness_weight(): ::Float | ::Integer + def clear_fairness_weight: () -> void + + type init_map = { + priority_key: (::Integer | ::Float)?, + "priority_key" => (::Integer | ::Float)?, + fairness_key: (::String | ::Symbol)?, + "fairness_key" => (::String | ::Symbol)?, + fairness_weight: (::Float | ::Integer)?, + "fairness_weight" => (::Float | ::Integer)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("priority_key" name) -> ::Integer + | ("fairness_key" name) -> ::String + | ("fairness_weight" name) -> ::Float + + def []=: + ("priority_key" name, (::Integer | ::Float) value) -> void + | ("fairness_key" name, (::String | ::Symbol) value) -> void + | ("fairness_weight" name, (::Float | ::Integer) value) -> void + end + + # 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. + class WorkerSelector < ::Google::Protobuf::AbstractMessage + + # Worker instance key to which the command should be sent. + attr_reader worker_instance_key(): ::String + attr_writer worker_instance_key(): (::String | ::Symbol)? + def has_worker_instance_key?: () -> bool + def clear_worker_instance_key: () -> void + + # 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; + # ... + attr_reader selector(): ::String? + def has_selector?: () -> bool + def clear_selector: () -> void + + type init_map = { + worker_instance_key: (::String | ::Symbol)?, + "worker_instance_key" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("worker_instance_key" name) -> ::String + + def []=: + ("worker_instance_key" name, ((::String | ::Symbol)?) value) -> void + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/api/deployment/v1/message.rbs b/temporalio/sig/temporalio/api/deployment/v1/message.rbs new file mode 100644 index 00000000..23884687 --- /dev/null +++ b/temporalio/sig/temporalio/api/deployment/v1/message.rbs @@ -0,0 +1,952 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/api/deployment/v1/message.proto + +module Temporalio + module Api + module Deployment + module V1 + # 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. + class WorkerDeploymentOptions < ::Google::Protobuf::AbstractMessage + + # Required when `worker_versioning_mode==VERSIONED`. + attr_reader deployment_name(): ::String + attr_writer deployment_name(): ::String | ::Symbol + def clear_deployment_name: () -> void + + # The Build ID of the worker. Required when `worker_versioning_mode==VERSIONED`, in which case, + # the worker will be part of a Deployment Version. + attr_reader build_id(): ::String + attr_writer build_id(): ::String | ::Symbol + def clear_build_id: () -> void + + # 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. + attr_reader worker_versioning_mode(): ::Temporalio::Api::Enums::V1::WorkerVersioningMode::names | ::Integer + attr_writer worker_versioning_mode(): ::Temporalio::Api::Enums::V1::WorkerVersioningMode::names | ::Temporalio::Api::Enums::V1::WorkerVersioningMode::strings | ::Integer | ::Float + attr_reader worker_versioning_mode_const(): ::Integer + def clear_worker_versioning_mode: () -> void + + type init_map = { + deployment_name: (::String | ::Symbol)?, + "deployment_name" => (::String | ::Symbol)?, + build_id: (::String | ::Symbol)?, + "build_id" => (::String | ::Symbol)?, + worker_versioning_mode: (::Temporalio::Api::Enums::V1::WorkerVersioningMode::names | ::Temporalio::Api::Enums::V1::WorkerVersioningMode::strings | ::Integer | ::Float)?, + "worker_versioning_mode" => (::Temporalio::Api::Enums::V1::WorkerVersioningMode::names | ::Temporalio::Api::Enums::V1::WorkerVersioningMode::strings | ::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("deployment_name" name) -> ::String + | ("build_id" name) -> ::String + | ("worker_versioning_mode" name) -> (::Temporalio::Api::Enums::V1::WorkerVersioningMode::names | ::Integer) + + def []=: + ("deployment_name" name, (::String | ::Symbol) value) -> void + | ("build_id" name, (::String | ::Symbol) value) -> void + | ("worker_versioning_mode" name, (::Temporalio::Api::Enums::V1::WorkerVersioningMode::names | ::Temporalio::Api::Enums::V1::WorkerVersioningMode::strings | ::Integer | ::Float) value) -> void + end + + # `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. + class Deployment < ::Google::Protobuf::AbstractMessage + + # 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. + attr_reader series_name(): ::String + attr_writer series_name(): ::String | ::Symbol + def clear_series_name: () -> void + + # Build ID changes with each version of the worker when the worker program code and/or config + # changes. + attr_reader build_id(): ::String + attr_writer build_id(): ::String | ::Symbol + def clear_build_id: () -> void + + type init_map = { + series_name: (::String | ::Symbol)?, + "series_name" => (::String | ::Symbol)?, + build_id: (::String | ::Symbol)?, + "build_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("series_name" name) -> ::String + | ("build_id" name) -> ::String + + def []=: + ("series_name" name, (::String | ::Symbol) value) -> void + | ("build_id" name, (::String | ::Symbol) value) -> void + end + + # `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. + class DeploymentInfo < ::Google::Protobuf::AbstractMessage + class TaskQueueInfo < ::Google::Protobuf::AbstractMessage + + attr_reader name(): ::String + attr_writer name(): ::String | ::Symbol + def clear_name: () -> void + + attr_reader type(): ::Temporalio::Api::Enums::V1::TaskQueueType::names | ::Integer + attr_writer type(): ::Temporalio::Api::Enums::V1::TaskQueueType::names | ::Temporalio::Api::Enums::V1::TaskQueueType::strings | ::Integer | ::Float + attr_reader type_const(): ::Integer + def clear_type: () -> void + + # When server saw the first poller for this task queue in this deployment. + attr_reader first_poller_time(): ::Google::Protobuf::Timestamp? + attr_writer first_poller_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_first_poller_time?: () -> bool + def clear_first_poller_time: () -> void + + type init_map = { + name: (::String | ::Symbol)?, + "name" => (::String | ::Symbol)?, + type: (::Temporalio::Api::Enums::V1::TaskQueueType::names | ::Temporalio::Api::Enums::V1::TaskQueueType::strings | ::Integer | ::Float)?, + "type" => (::Temporalio::Api::Enums::V1::TaskQueueType::names | ::Temporalio::Api::Enums::V1::TaskQueueType::strings | ::Integer | ::Float)?, + first_poller_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "first_poller_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("name" name) -> ::String + | ("type" name) -> (::Temporalio::Api::Enums::V1::TaskQueueType::names | ::Integer) + | ("first_poller_time" name) -> ::Google::Protobuf::Timestamp? + + def []=: + ("name" name, (::String | ::Symbol) value) -> void + | ("type" name, (::Temporalio::Api::Enums::V1::TaskQueueType::names | ::Temporalio::Api::Enums::V1::TaskQueueType::strings | ::Integer | ::Float) value) -> void + | ("first_poller_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + end + + attr_accessor deployment(): ::Temporalio::Api::Deployment::V1::Deployment? + def has_deployment?: () -> bool + def clear_deployment: () -> void + + attr_reader create_time(): ::Google::Protobuf::Timestamp? + attr_writer create_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_create_time?: () -> bool + def clear_create_time: () -> void + + attr_accessor task_queue_infos(): ::Google::Protobuf::RepeatedField + def clear_task_queue_infos: () -> void + + # A user-defined set of key-values. Can be updated as part of write operations to the + # deployment, such as `SetCurrentDeployment`. + attr_accessor metadata(): ::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload] + def clear_metadata: () -> void + + # If this deployment is the current deployment of its deployment series. + attr_accessor is_current(): bool + def clear_is_current: () -> void + + type init_map = { + deployment: (::Temporalio::Api::Deployment::V1::Deployment | ::Temporalio::Api::Deployment::V1::Deployment::init_map)?, + "deployment" => (::Temporalio::Api::Deployment::V1::Deployment | ::Temporalio::Api::Deployment::V1::Deployment::init_map)?, + create_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "create_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + task_queue_infos: ::Array[::Temporalio::Api::Deployment::V1::DeploymentInfo::TaskQueueInfo]?, + "task_queue_infos" => ::Array[::Temporalio::Api::Deployment::V1::DeploymentInfo::TaskQueueInfo]?, + metadata: ::Hash[::String | ::Symbol, ::Temporalio::Api::Common::V1::Payload]?, + "metadata" => ::Hash[::String | ::Symbol, ::Temporalio::Api::Common::V1::Payload]?, + is_current: bool?, + "is_current" => bool?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("deployment" name) -> ::Temporalio::Api::Deployment::V1::Deployment? + | ("create_time" name) -> ::Google::Protobuf::Timestamp? + | ("task_queue_infos" name) -> ::Google::Protobuf::RepeatedField + | ("metadata" name) -> (::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload]) + | ("is_current" name) -> bool + + def []=: + ("deployment" name, ::Temporalio::Api::Deployment::V1::Deployment? value) -> void + | ("create_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("task_queue_infos" name, ::Google::Protobuf::RepeatedField value) -> void + | ("metadata" name, (::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload]) value) -> void + | ("is_current" name, bool value) -> void + end + + # Used as part of Deployment write APIs to update metadata attached to a deployment. + # Deprecated. + class UpdateDeploymentMetadata < ::Google::Protobuf::AbstractMessage + + attr_accessor upsert_entries(): ::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload] + def clear_upsert_entries: () -> void + + # List of keys to remove from the metadata. + attr_accessor remove_entries(): ::Google::Protobuf::RepeatedField + def clear_remove_entries: () -> void + + type init_map = { + upsert_entries: ::Hash[::String | ::Symbol, ::Temporalio::Api::Common::V1::Payload]?, + "upsert_entries" => ::Hash[::String | ::Symbol, ::Temporalio::Api::Common::V1::Payload]?, + remove_entries: ::Array[::String | ::Symbol]?, + "remove_entries" => ::Array[::String | ::Symbol]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("upsert_entries" name) -> (::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload]) + | ("remove_entries" name) -> (::Google::Protobuf::RepeatedField) + + def []=: + ("upsert_entries" name, (::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload]) value) -> void + | ("remove_entries" name, (::Google::Protobuf::RepeatedField) value) -> void + end + + # DeploymentListInfo is an abbreviated set of fields from DeploymentInfo that's returned in + # ListDeployments. + # Deprecated. + class DeploymentListInfo < ::Google::Protobuf::AbstractMessage + + attr_accessor deployment(): ::Temporalio::Api::Deployment::V1::Deployment? + def has_deployment?: () -> bool + def clear_deployment: () -> void + + attr_reader create_time(): ::Google::Protobuf::Timestamp? + attr_writer create_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_create_time?: () -> bool + def clear_create_time: () -> void + + # If this deployment is the current deployment of its deployment series. + attr_accessor is_current(): bool + def clear_is_current: () -> void + + type init_map = { + deployment: (::Temporalio::Api::Deployment::V1::Deployment | ::Temporalio::Api::Deployment::V1::Deployment::init_map)?, + "deployment" => (::Temporalio::Api::Deployment::V1::Deployment | ::Temporalio::Api::Deployment::V1::Deployment::init_map)?, + create_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "create_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + is_current: bool?, + "is_current" => bool?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("deployment" name) -> ::Temporalio::Api::Deployment::V1::Deployment? + | ("create_time" name) -> ::Google::Protobuf::Timestamp? + | ("is_current" name) -> bool + + def []=: + ("deployment" name, ::Temporalio::Api::Deployment::V1::Deployment? value) -> void + | ("create_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("is_current" name, bool value) -> void + end + + # 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. + class WorkerDeploymentVersionInfo < ::Google::Protobuf::AbstractMessage + class VersionTaskQueueInfo < ::Google::Protobuf::AbstractMessage + + attr_reader name(): ::String + attr_writer name(): ::String | ::Symbol + def clear_name: () -> void + + attr_reader type(): ::Temporalio::Api::Enums::V1::TaskQueueType::names | ::Integer + attr_writer type(): ::Temporalio::Api::Enums::V1::TaskQueueType::names | ::Temporalio::Api::Enums::V1::TaskQueueType::strings | ::Integer | ::Float + attr_reader type_const(): ::Integer + def clear_type: () -> void + + type init_map = { + name: (::String | ::Symbol)?, + "name" => (::String | ::Symbol)?, + type: (::Temporalio::Api::Enums::V1::TaskQueueType::names | ::Temporalio::Api::Enums::V1::TaskQueueType::strings | ::Integer | ::Float)?, + "type" => (::Temporalio::Api::Enums::V1::TaskQueueType::names | ::Temporalio::Api::Enums::V1::TaskQueueType::strings | ::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("name" name) -> ::String + | ("type" name) -> (::Temporalio::Api::Enums::V1::TaskQueueType::names | ::Integer) + + def []=: + ("name" name, (::String | ::Symbol) value) -> void + | ("type" name, (::Temporalio::Api::Enums::V1::TaskQueueType::names | ::Temporalio::Api::Enums::V1::TaskQueueType::strings | ::Integer | ::Float) value) -> void + end + + # Deprecated. Use `deployment_version`. + # @deprecated + attr_reader version(): ::String + attr_writer version(): ::String | ::Symbol + def clear_version: () -> void + + # The status of the Worker Deployment Version. + attr_reader status(): ::Temporalio::Api::Enums::V1::WorkerDeploymentVersionStatus::names | ::Integer + attr_writer status(): ::Temporalio::Api::Enums::V1::WorkerDeploymentVersionStatus::names | ::Temporalio::Api::Enums::V1::WorkerDeploymentVersionStatus::strings | ::Integer | ::Float + attr_reader status_const(): ::Integer + def clear_status: () -> void + + # Required. + attr_accessor deployment_version(): ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? + def has_deployment_version?: () -> bool + def clear_deployment_version: () -> void + + attr_reader deployment_name(): ::String + attr_writer deployment_name(): ::String | ::Symbol + def clear_deployment_name: () -> void + + attr_reader create_time(): ::Google::Protobuf::Timestamp? + attr_writer create_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_create_time?: () -> bool + def clear_create_time: () -> void + + # Last time `current_since_time`, `ramping_since_time, or `ramp_percentage` of this version changed. + attr_reader routing_changed_time(): ::Google::Protobuf::Timestamp? + attr_writer routing_changed_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_routing_changed_time?: () -> bool + def clear_routing_changed_time: () -> void + + # (-- api-linter: core::0140::prepositions=disabled + # aip.dev/not-precedent: 'Since' captures the field semantics despite being a preposition. --) + # Unset if not current. + attr_reader current_since_time(): ::Google::Protobuf::Timestamp? + attr_writer current_since_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_current_since_time?: () -> bool + def clear_current_since_time: () -> void + + # (-- 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. + attr_reader ramping_since_time(): ::Google::Protobuf::Timestamp? + attr_writer ramping_since_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_ramping_since_time?: () -> bool + def clear_ramping_since_time: () -> void + + # Timestamp when this version first became current or ramping. + attr_reader first_activation_time(): ::Google::Protobuf::Timestamp? + attr_writer first_activation_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_first_activation_time?: () -> bool + def clear_first_activation_time: () -> void + + # Timestamp when this version last became current. + # Can be used to determine whether a version has ever been Current. + attr_reader last_current_time(): ::Google::Protobuf::Timestamp? + attr_writer last_current_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_last_current_time?: () -> bool + def clear_last_current_time: () -> void + + # Timestamp when this version last stopped being current or ramping. + # Cleared if the version becomes current or ramping again. + attr_reader last_deactivation_time(): ::Google::Protobuf::Timestamp? + attr_writer last_deactivation_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_last_deactivation_time?: () -> bool + def clear_last_deactivation_time: () -> void + + # 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. + attr_reader ramp_percentage(): ::Float + attr_writer ramp_percentage(): ::Float | ::Integer + def clear_ramp_percentage: () -> void + + # All the Task Queues that have ever polled from this Deployment version. + # Deprecated. Use `version_task_queues` in DescribeWorkerDeploymentVersionResponse instead. + attr_accessor task_queue_infos(): ::Google::Protobuf::RepeatedField + def clear_task_queue_infos: () -> void + + # 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". + attr_accessor drainage_info(): ::Temporalio::Api::Deployment::V1::VersionDrainageInfo? + def has_drainage_info?: () -> bool + def clear_drainage_info: () -> void + + # Arbitrary user-provided metadata attached to this version. + attr_accessor metadata(): ::Temporalio::Api::Deployment::V1::VersionMetadata? + def has_metadata?: () -> bool + def clear_metadata: () -> void + + type init_map = { + version: (::String | ::Symbol)?, + "version" => (::String | ::Symbol)?, + status: (::Temporalio::Api::Enums::V1::WorkerDeploymentVersionStatus::names | ::Temporalio::Api::Enums::V1::WorkerDeploymentVersionStatus::strings | ::Integer | ::Float)?, + "status" => (::Temporalio::Api::Enums::V1::WorkerDeploymentVersionStatus::names | ::Temporalio::Api::Enums::V1::WorkerDeploymentVersionStatus::strings | ::Integer | ::Float)?, + deployment_version: (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?, + "deployment_version" => (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?, + deployment_name: (::String | ::Symbol)?, + "deployment_name" => (::String | ::Symbol)?, + create_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "create_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + routing_changed_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "routing_changed_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + current_since_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "current_since_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + ramping_since_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "ramping_since_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + first_activation_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "first_activation_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + last_current_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "last_current_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + last_deactivation_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "last_deactivation_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + ramp_percentage: (::Float | ::Integer)?, + "ramp_percentage" => (::Float | ::Integer)?, + task_queue_infos: ::Array[::Temporalio::Api::Deployment::V1::WorkerDeploymentVersionInfo::VersionTaskQueueInfo]?, + "task_queue_infos" => ::Array[::Temporalio::Api::Deployment::V1::WorkerDeploymentVersionInfo::VersionTaskQueueInfo]?, + drainage_info: (::Temporalio::Api::Deployment::V1::VersionDrainageInfo | ::Temporalio::Api::Deployment::V1::VersionDrainageInfo::init_map)?, + "drainage_info" => (::Temporalio::Api::Deployment::V1::VersionDrainageInfo | ::Temporalio::Api::Deployment::V1::VersionDrainageInfo::init_map)?, + metadata: (::Temporalio::Api::Deployment::V1::VersionMetadata | ::Temporalio::Api::Deployment::V1::VersionMetadata::init_map)?, + "metadata" => (::Temporalio::Api::Deployment::V1::VersionMetadata | ::Temporalio::Api::Deployment::V1::VersionMetadata::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("version" name) -> ::String + | ("status" name) -> (::Temporalio::Api::Enums::V1::WorkerDeploymentVersionStatus::names | ::Integer) + | ("deployment_version" name) -> ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? + | ("deployment_name" name) -> ::String + | ("create_time" name) -> ::Google::Protobuf::Timestamp? + | ("routing_changed_time" name) -> ::Google::Protobuf::Timestamp? + | ("current_since_time" name) -> ::Google::Protobuf::Timestamp? + | ("ramping_since_time" name) -> ::Google::Protobuf::Timestamp? + | ("first_activation_time" name) -> ::Google::Protobuf::Timestamp? + | ("last_current_time" name) -> ::Google::Protobuf::Timestamp? + | ("last_deactivation_time" name) -> ::Google::Protobuf::Timestamp? + | ("ramp_percentage" name) -> ::Float + | ("task_queue_infos" name) -> ::Google::Protobuf::RepeatedField + | ("drainage_info" name) -> ::Temporalio::Api::Deployment::V1::VersionDrainageInfo? + | ("metadata" name) -> ::Temporalio::Api::Deployment::V1::VersionMetadata? + + def []=: + ("version" name, (::String | ::Symbol) value) -> void + | ("status" name, (::Temporalio::Api::Enums::V1::WorkerDeploymentVersionStatus::names | ::Temporalio::Api::Enums::V1::WorkerDeploymentVersionStatus::strings | ::Integer | ::Float) value) -> void + | ("deployment_version" name, ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? value) -> void + | ("deployment_name" name, (::String | ::Symbol) value) -> void + | ("create_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("routing_changed_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("current_since_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("ramping_since_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("first_activation_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("last_current_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("last_deactivation_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("ramp_percentage" name, (::Float | ::Integer) value) -> void + | ("task_queue_infos" name, ::Google::Protobuf::RepeatedField value) -> void + | ("drainage_info" name, ::Temporalio::Api::Deployment::V1::VersionDrainageInfo? value) -> void + | ("metadata" name, ::Temporalio::Api::Deployment::V1::VersionMetadata? value) -> void + end + + # 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. + class VersionDrainageInfo < ::Google::Protobuf::AbstractMessage + + # 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. + attr_reader status(): ::Temporalio::Api::Enums::V1::VersionDrainageStatus::names | ::Integer + attr_writer status(): ::Temporalio::Api::Enums::V1::VersionDrainageStatus::names | ::Temporalio::Api::Enums::V1::VersionDrainageStatus::strings | ::Integer | ::Float + attr_reader status_const(): ::Integer + def clear_status: () -> void + + # Last time the drainage status changed. + attr_reader last_changed_time(): ::Google::Protobuf::Timestamp? + attr_writer last_changed_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_last_changed_time?: () -> bool + def clear_last_changed_time: () -> void + + # Last time the system checked for drainage of this version. + attr_reader last_checked_time(): ::Google::Protobuf::Timestamp? + attr_writer last_checked_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_last_checked_time?: () -> bool + def clear_last_checked_time: () -> void + + type init_map = { + status: (::Temporalio::Api::Enums::V1::VersionDrainageStatus::names | ::Temporalio::Api::Enums::V1::VersionDrainageStatus::strings | ::Integer | ::Float)?, + "status" => (::Temporalio::Api::Enums::V1::VersionDrainageStatus::names | ::Temporalio::Api::Enums::V1::VersionDrainageStatus::strings | ::Integer | ::Float)?, + last_changed_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "last_changed_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + last_checked_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "last_checked_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("status" name) -> (::Temporalio::Api::Enums::V1::VersionDrainageStatus::names | ::Integer) + | ("last_changed_time" name) -> ::Google::Protobuf::Timestamp? + | ("last_checked_time" name) -> ::Google::Protobuf::Timestamp? + + def []=: + ("status" name, (::Temporalio::Api::Enums::V1::VersionDrainageStatus::names | ::Temporalio::Api::Enums::V1::VersionDrainageStatus::strings | ::Integer | ::Float) value) -> void + | ("last_changed_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("last_checked_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + end + + # 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. + class WorkerDeploymentInfo < ::Google::Protobuf::AbstractMessage + class WorkerDeploymentVersionSummary < ::Google::Protobuf::AbstractMessage + + # Deprecated. Use `deployment_version`. + # @deprecated + attr_reader version(): ::String + attr_writer version(): ::String | ::Symbol + def clear_version: () -> void + + # The status of the Worker Deployment Version. + attr_reader status(): ::Temporalio::Api::Enums::V1::WorkerDeploymentVersionStatus::names | ::Integer + attr_writer status(): ::Temporalio::Api::Enums::V1::WorkerDeploymentVersionStatus::names | ::Temporalio::Api::Enums::V1::WorkerDeploymentVersionStatus::strings | ::Integer | ::Float + attr_reader status_const(): ::Integer + def clear_status: () -> void + + # Required. + attr_accessor deployment_version(): ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? + def has_deployment_version?: () -> bool + def clear_deployment_version: () -> void + + attr_reader create_time(): ::Google::Protobuf::Timestamp? + attr_writer create_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_create_time?: () -> bool + def clear_create_time: () -> void + + # Deprecated. Use `drainage_info` instead. + attr_reader drainage_status(): ::Temporalio::Api::Enums::V1::VersionDrainageStatus::names | ::Integer + attr_writer drainage_status(): ::Temporalio::Api::Enums::V1::VersionDrainageStatus::names | ::Temporalio::Api::Enums::V1::VersionDrainageStatus::strings | ::Integer | ::Float + attr_reader drainage_status_const(): ::Integer + def clear_drainage_status: () -> void + + # 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 + attr_accessor drainage_info(): ::Temporalio::Api::Deployment::V1::VersionDrainageInfo? + def has_drainage_info?: () -> bool + def clear_drainage_info: () -> void + + # Unset if not current. + # (-- api-linter: core::0140::prepositions=disabled + # aip.dev/not-precedent: 'Since' captures the field semantics despite being a preposition. --) + attr_reader current_since_time(): ::Google::Protobuf::Timestamp? + attr_writer current_since_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_current_since_time?: () -> bool + def clear_current_since_time: () -> void + + # 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. --) + attr_reader ramping_since_time(): ::Google::Protobuf::Timestamp? + attr_writer ramping_since_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_ramping_since_time?: () -> bool + def clear_ramping_since_time: () -> void + + # Last time `current_since_time`, `ramping_since_time, or `ramp_percentage` of this version changed. + attr_reader routing_update_time(): ::Google::Protobuf::Timestamp? + attr_writer routing_update_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_routing_update_time?: () -> bool + def clear_routing_update_time: () -> void + + # Timestamp when this version first became current or ramping. + attr_reader first_activation_time(): ::Google::Protobuf::Timestamp? + attr_writer first_activation_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_first_activation_time?: () -> bool + def clear_first_activation_time: () -> void + + # Timestamp when this version last became current. + # Can be used to determine whether a version has ever been Current. + attr_reader last_current_time(): ::Google::Protobuf::Timestamp? + attr_writer last_current_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_last_current_time?: () -> bool + def clear_last_current_time: () -> void + + # Timestamp when this version last stopped being current or ramping. + # Cleared if the version becomes current or ramping again. + attr_reader last_deactivation_time(): ::Google::Protobuf::Timestamp? + attr_writer last_deactivation_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_last_deactivation_time?: () -> bool + def clear_last_deactivation_time: () -> void + + type init_map = { + version: (::String | ::Symbol)?, + "version" => (::String | ::Symbol)?, + status: (::Temporalio::Api::Enums::V1::WorkerDeploymentVersionStatus::names | ::Temporalio::Api::Enums::V1::WorkerDeploymentVersionStatus::strings | ::Integer | ::Float)?, + "status" => (::Temporalio::Api::Enums::V1::WorkerDeploymentVersionStatus::names | ::Temporalio::Api::Enums::V1::WorkerDeploymentVersionStatus::strings | ::Integer | ::Float)?, + deployment_version: (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?, + "deployment_version" => (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?, + create_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "create_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + drainage_status: (::Temporalio::Api::Enums::V1::VersionDrainageStatus::names | ::Temporalio::Api::Enums::V1::VersionDrainageStatus::strings | ::Integer | ::Float)?, + "drainage_status" => (::Temporalio::Api::Enums::V1::VersionDrainageStatus::names | ::Temporalio::Api::Enums::V1::VersionDrainageStatus::strings | ::Integer | ::Float)?, + drainage_info: (::Temporalio::Api::Deployment::V1::VersionDrainageInfo | ::Temporalio::Api::Deployment::V1::VersionDrainageInfo::init_map)?, + "drainage_info" => (::Temporalio::Api::Deployment::V1::VersionDrainageInfo | ::Temporalio::Api::Deployment::V1::VersionDrainageInfo::init_map)?, + current_since_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "current_since_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + ramping_since_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "ramping_since_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + routing_update_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "routing_update_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + first_activation_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "first_activation_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + last_current_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "last_current_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + last_deactivation_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "last_deactivation_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("version" name) -> ::String + | ("status" name) -> (::Temporalio::Api::Enums::V1::WorkerDeploymentVersionStatus::names | ::Integer) + | ("deployment_version" name) -> ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? + | ("create_time" name) -> ::Google::Protobuf::Timestamp? + | ("drainage_status" name) -> (::Temporalio::Api::Enums::V1::VersionDrainageStatus::names | ::Integer) + | ("drainage_info" name) -> ::Temporalio::Api::Deployment::V1::VersionDrainageInfo? + | ("current_since_time" name) -> ::Google::Protobuf::Timestamp? + | ("ramping_since_time" name) -> ::Google::Protobuf::Timestamp? + | ("routing_update_time" name) -> ::Google::Protobuf::Timestamp? + | ("first_activation_time" name) -> ::Google::Protobuf::Timestamp? + | ("last_current_time" name) -> ::Google::Protobuf::Timestamp? + | ("last_deactivation_time" name) -> ::Google::Protobuf::Timestamp? + + def []=: + ("version" name, (::String | ::Symbol) value) -> void + | ("status" name, (::Temporalio::Api::Enums::V1::WorkerDeploymentVersionStatus::names | ::Temporalio::Api::Enums::V1::WorkerDeploymentVersionStatus::strings | ::Integer | ::Float) value) -> void + | ("deployment_version" name, ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? value) -> void + | ("create_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("drainage_status" name, (::Temporalio::Api::Enums::V1::VersionDrainageStatus::names | ::Temporalio::Api::Enums::V1::VersionDrainageStatus::strings | ::Integer | ::Float) value) -> void + | ("drainage_info" name, ::Temporalio::Api::Deployment::V1::VersionDrainageInfo? value) -> void + | ("current_since_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("ramping_since_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("routing_update_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("first_activation_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("last_current_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("last_deactivation_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + end + + # Identifies a Worker Deployment. Must be unique within the namespace. + attr_reader name(): ::String + attr_writer name(): ::String | ::Symbol + def clear_name: () -> void + + # 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) + attr_accessor version_summaries(): ::Google::Protobuf::RepeatedField + def clear_version_summaries: () -> void + + attr_reader create_time(): ::Google::Protobuf::Timestamp? + attr_writer create_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_create_time?: () -> bool + def clear_create_time: () -> void + + attr_accessor routing_config(): ::Temporalio::Api::Deployment::V1::RoutingConfig? + def has_routing_config?: () -> bool + def clear_routing_config: () -> void + + # 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`. + attr_reader last_modifier_identity(): ::String + attr_writer last_modifier_identity(): ::String | ::Symbol + def clear_last_modifier_identity: () -> void + + # 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. + attr_reader manager_identity(): ::String + attr_writer manager_identity(): ::String | ::Symbol + def clear_manager_identity: () -> void + + # Indicates whether the routing_config has been fully propagated to all + # relevant task queues and their partitions. + attr_reader routing_config_update_state(): ::Temporalio::Api::Enums::V1::RoutingConfigUpdateState::names | ::Integer + attr_writer routing_config_update_state(): ::Temporalio::Api::Enums::V1::RoutingConfigUpdateState::names | ::Temporalio::Api::Enums::V1::RoutingConfigUpdateState::strings | ::Integer | ::Float + attr_reader routing_config_update_state_const(): ::Integer + def clear_routing_config_update_state: () -> void + + type init_map = { + name: (::String | ::Symbol)?, + "name" => (::String | ::Symbol)?, + version_summaries: ::Array[::Temporalio::Api::Deployment::V1::WorkerDeploymentInfo::WorkerDeploymentVersionSummary]?, + "version_summaries" => ::Array[::Temporalio::Api::Deployment::V1::WorkerDeploymentInfo::WorkerDeploymentVersionSummary]?, + create_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "create_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + routing_config: (::Temporalio::Api::Deployment::V1::RoutingConfig | ::Temporalio::Api::Deployment::V1::RoutingConfig::init_map)?, + "routing_config" => (::Temporalio::Api::Deployment::V1::RoutingConfig | ::Temporalio::Api::Deployment::V1::RoutingConfig::init_map)?, + last_modifier_identity: (::String | ::Symbol)?, + "last_modifier_identity" => (::String | ::Symbol)?, + manager_identity: (::String | ::Symbol)?, + "manager_identity" => (::String | ::Symbol)?, + routing_config_update_state: (::Temporalio::Api::Enums::V1::RoutingConfigUpdateState::names | ::Temporalio::Api::Enums::V1::RoutingConfigUpdateState::strings | ::Integer | ::Float)?, + "routing_config_update_state" => (::Temporalio::Api::Enums::V1::RoutingConfigUpdateState::names | ::Temporalio::Api::Enums::V1::RoutingConfigUpdateState::strings | ::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("name" name) -> ::String + | ("version_summaries" name) -> ::Google::Protobuf::RepeatedField + | ("create_time" name) -> ::Google::Protobuf::Timestamp? + | ("routing_config" name) -> ::Temporalio::Api::Deployment::V1::RoutingConfig? + | ("last_modifier_identity" name) -> ::String + | ("manager_identity" name) -> ::String + | ("routing_config_update_state" name) -> (::Temporalio::Api::Enums::V1::RoutingConfigUpdateState::names | ::Integer) + + def []=: + ("name" name, (::String | ::Symbol) value) -> void + | ("version_summaries" name, ::Google::Protobuf::RepeatedField value) -> void + | ("create_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("routing_config" name, ::Temporalio::Api::Deployment::V1::RoutingConfig? value) -> void + | ("last_modifier_identity" name, (::String | ::Symbol) value) -> void + | ("manager_identity" name, (::String | ::Symbol) value) -> void + | ("routing_config_update_state" name, (::Temporalio::Api::Enums::V1::RoutingConfigUpdateState::names | ::Temporalio::Api::Enums::V1::RoutingConfigUpdateState::strings | ::Integer | ::Float) value) -> void + end + + # 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. + class WorkerDeploymentVersion < ::Google::Protobuf::AbstractMessage + + # 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. + attr_reader build_id(): ::String + attr_writer build_id(): ::String | ::Symbol + def clear_build_id: () -> void + + # Identifies the Worker Deployment this Version is part of. + attr_reader deployment_name(): ::String + attr_writer deployment_name(): ::String | ::Symbol + def clear_deployment_name: () -> void + + type init_map = { + build_id: (::String | ::Symbol)?, + "build_id" => (::String | ::Symbol)?, + deployment_name: (::String | ::Symbol)?, + "deployment_name" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("build_id" name) -> ::String + | ("deployment_name" name) -> ::String + + def []=: + ("build_id" name, (::String | ::Symbol) value) -> void + | ("deployment_name" name, (::String | ::Symbol) value) -> void + end + + class VersionMetadata < ::Google::Protobuf::AbstractMessage + + # Arbitrary key-values. + attr_accessor entries(): ::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload] + def clear_entries: () -> void + + type init_map = { + entries: ::Hash[::String | ::Symbol, ::Temporalio::Api::Common::V1::Payload]?, + "entries" => ::Hash[::String | ::Symbol, ::Temporalio::Api::Common::V1::Payload]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("entries" name) -> (::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload]) + + def []=: + ("entries" name, (::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload]) value) -> void + end + + class RoutingConfig < ::Google::Protobuf::AbstractMessage + + # 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`). + attr_accessor current_deployment_version(): ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? + def has_current_deployment_version?: () -> bool + def clear_current_deployment_version: () -> void + + # Deprecated. Use `current_deployment_version`. + # @deprecated + attr_reader current_version(): ::String + attr_writer current_version(): ::String | ::Symbol + def clear_current_version: () -> void + + # 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. + attr_accessor ramping_deployment_version(): ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? + def has_ramping_deployment_version?: () -> bool + def clear_ramping_deployment_version: () -> void + + # Deprecated. Use `ramping_deployment_version`. + # @deprecated + attr_reader ramping_version(): ::String + attr_writer ramping_version(): ::String | ::Symbol + def clear_ramping_version: () -> void + + # 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. + attr_reader ramping_version_percentage(): ::Float + attr_writer ramping_version_percentage(): ::Float | ::Integer + def clear_ramping_version_percentage: () -> void + + # Last time current version was changed. + attr_reader current_version_changed_time(): ::Google::Protobuf::Timestamp? + attr_writer current_version_changed_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_current_version_changed_time?: () -> bool + def clear_current_version_changed_time: () -> void + + # Last time ramping version was changed. Not updated if only the ramp percentage changes. + attr_reader ramping_version_changed_time(): ::Google::Protobuf::Timestamp? + attr_writer ramping_version_changed_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_ramping_version_changed_time?: () -> bool + def clear_ramping_version_changed_time: () -> void + + # Last time ramping version percentage was changed. + # If ramping version is changed, this is also updated, even if the percentage stays the same. + attr_reader ramping_version_percentage_changed_time(): ::Google::Protobuf::Timestamp? + attr_writer ramping_version_percentage_changed_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_ramping_version_percentage_changed_time?: () -> bool + def clear_ramping_version_percentage_changed_time: () -> void + + # 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. + attr_reader revision_number(): ::Integer + attr_writer revision_number(): ::Integer | ::Float + def clear_revision_number: () -> void + + type init_map = { + current_deployment_version: (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?, + "current_deployment_version" => (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?, + current_version: (::String | ::Symbol)?, + "current_version" => (::String | ::Symbol)?, + ramping_deployment_version: (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?, + "ramping_deployment_version" => (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?, + ramping_version: (::String | ::Symbol)?, + "ramping_version" => (::String | ::Symbol)?, + ramping_version_percentage: (::Float | ::Integer)?, + "ramping_version_percentage" => (::Float | ::Integer)?, + current_version_changed_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "current_version_changed_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + ramping_version_changed_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "ramping_version_changed_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + ramping_version_percentage_changed_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "ramping_version_percentage_changed_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + revision_number: (::Integer | ::Float)?, + "revision_number" => (::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("current_deployment_version" name) -> ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? + | ("current_version" name) -> ::String + | ("ramping_deployment_version" name) -> ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? + | ("ramping_version" name) -> ::String + | ("ramping_version_percentage" name) -> ::Float + | ("current_version_changed_time" name) -> ::Google::Protobuf::Timestamp? + | ("ramping_version_changed_time" name) -> ::Google::Protobuf::Timestamp? + | ("ramping_version_percentage_changed_time" name) -> ::Google::Protobuf::Timestamp? + | ("revision_number" name) -> ::Integer + + def []=: + ("current_deployment_version" name, ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? value) -> void + | ("current_version" name, (::String | ::Symbol) value) -> void + | ("ramping_deployment_version" name, ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? value) -> void + | ("ramping_version" name, (::String | ::Symbol) value) -> void + | ("ramping_version_percentage" name, (::Float | ::Integer) value) -> void + | ("current_version_changed_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("ramping_version_changed_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("ramping_version_percentage_changed_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("revision_number" name, (::Integer | ::Float) value) -> void + end + + # 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. + class InheritedAutoUpgradeInfo < ::Google::Protobuf::AbstractMessage + + # The source deployment version of the parent/previous workflow. + attr_accessor source_deployment_version(): ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? + def has_source_deployment_version?: () -> bool + def clear_source_deployment_version: () -> void + + # The revision number of the source deployment version of the parent/previous workflow. + attr_reader source_deployment_revision_number(): ::Integer + attr_writer source_deployment_revision_number(): ::Integer | ::Float + def clear_source_deployment_revision_number: () -> void + + type init_map = { + source_deployment_version: (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?, + "source_deployment_version" => (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?, + source_deployment_revision_number: (::Integer | ::Float)?, + "source_deployment_revision_number" => (::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("source_deployment_version" name) -> ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? + | ("source_deployment_revision_number" name) -> ::Integer + + def []=: + ("source_deployment_version" name, ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? value) -> void + | ("source_deployment_revision_number" name, (::Integer | ::Float) value) -> void + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/api/enums/v1/activity.rbs b/temporalio/sig/temporalio/api/enums/v1/activity.rbs new file mode 100644 index 00000000..635da875 --- /dev/null +++ b/temporalio/sig/temporalio/api/enums/v1/activity.rbs @@ -0,0 +1,134 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/api/enums/v1/activity.proto + +module Temporalio + module Api + module Enums + module V1 + # 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. --) + module ActivityExecutionStatus + + ACTIVITY_EXECUTION_STATUS_UNSPECIFIED: 0 + + # The activity has not reached a terminal status. See PendingActivityState for the run state + # (SCHEDULED, STARTED, or CANCEL_REQUESTED). + ACTIVITY_EXECUTION_STATUS_RUNNING: 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: 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: 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: 4 + + # The activity was terminated. Immediate; does not wait for worker acknowledgment. + ACTIVITY_EXECUTION_STATUS_TERMINATED: 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: 6 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :ACTIVITY_EXECUTION_STATUS_UNSPECIFIED | :ACTIVITY_EXECUTION_STATUS_RUNNING | :ACTIVITY_EXECUTION_STATUS_COMPLETED | :ACTIVITY_EXECUTION_STATUS_FAILED | :ACTIVITY_EXECUTION_STATUS_CANCELED | :ACTIVITY_EXECUTION_STATUS_TERMINATED | :ACTIVITY_EXECUTION_STATUS_TIMED_OUT + + type strings = "ACTIVITY_EXECUTION_STATUS_UNSPECIFIED" | "ACTIVITY_EXECUTION_STATUS_RUNNING" | "ACTIVITY_EXECUTION_STATUS_COMPLETED" | "ACTIVITY_EXECUTION_STATUS_FAILED" | "ACTIVITY_EXECUTION_STATUS_CANCELED" | "ACTIVITY_EXECUTION_STATUS_TERMINATED" | "ACTIVITY_EXECUTION_STATUS_TIMED_OUT" + + type numbers = 0 | 1 | 2 | 3 | 4 | 5 | 6 + end + + # 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. + module ActivityIdReusePolicy + + ACTIVITY_ID_REUSE_POLICY_UNSPECIFIED: 0 + + # Always allow starting an activity using the same activity ID. + ACTIVITY_ID_REUSE_POLICY_ALLOW_DUPLICATE: 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: 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: 3 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :ACTIVITY_ID_REUSE_POLICY_UNSPECIFIED | :ACTIVITY_ID_REUSE_POLICY_ALLOW_DUPLICATE | :ACTIVITY_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY | :ACTIVITY_ID_REUSE_POLICY_REJECT_DUPLICATE + + type strings = "ACTIVITY_ID_REUSE_POLICY_UNSPECIFIED" | "ACTIVITY_ID_REUSE_POLICY_ALLOW_DUPLICATE" | "ACTIVITY_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY" | "ACTIVITY_ID_REUSE_POLICY_REJECT_DUPLICATE" + + type numbers = 0 | 1 | 2 | 3 + end + + # 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. + module ActivityIdConflictPolicy + + ACTIVITY_ID_CONFLICT_POLICY_UNSPECIFIED: 0 + + # Don't start a new activity; instead return `ActivityExecutionAlreadyStarted` error. + ACTIVITY_ID_CONFLICT_POLICY_FAIL: 1 + + # Don't start a new activity; instead return a handle for the running activity. + ACTIVITY_ID_CONFLICT_POLICY_USE_EXISTING: 2 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :ACTIVITY_ID_CONFLICT_POLICY_UNSPECIFIED | :ACTIVITY_ID_CONFLICT_POLICY_FAIL | :ACTIVITY_ID_CONFLICT_POLICY_USE_EXISTING + + type strings = "ACTIVITY_ID_CONFLICT_POLICY_UNSPECIFIED" | "ACTIVITY_ID_CONFLICT_POLICY_FAIL" | "ACTIVITY_ID_CONFLICT_POLICY_USE_EXISTING" + + type numbers = 0 | 1 | 2 + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/api/enums/v1/batch_operation.rbs b/temporalio/sig/temporalio/api/enums/v1/batch_operation.rbs new file mode 100644 index 00000000..a3e5203a --- /dev/null +++ b/temporalio/sig/temporalio/api/enums/v1/batch_operation.rbs @@ -0,0 +1,80 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/api/enums/v1/batch_operation.proto + +module Temporalio + module Api + module Enums + module V1 + module BatchOperationType + + 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 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :BATCH_OPERATION_TYPE_UNSPECIFIED | :BATCH_OPERATION_TYPE_TERMINATE | :BATCH_OPERATION_TYPE_CANCEL | :BATCH_OPERATION_TYPE_SIGNAL | :BATCH_OPERATION_TYPE_DELETE | :BATCH_OPERATION_TYPE_RESET | :BATCH_OPERATION_TYPE_UPDATE_EXECUTION_OPTIONS | :BATCH_OPERATION_TYPE_UNPAUSE_ACTIVITY | :BATCH_OPERATION_TYPE_UPDATE_ACTIVITY_OPTIONS | :BATCH_OPERATION_TYPE_RESET_ACTIVITY + + type strings = "BATCH_OPERATION_TYPE_UNSPECIFIED" | "BATCH_OPERATION_TYPE_TERMINATE" | "BATCH_OPERATION_TYPE_CANCEL" | "BATCH_OPERATION_TYPE_SIGNAL" | "BATCH_OPERATION_TYPE_DELETE" | "BATCH_OPERATION_TYPE_RESET" | "BATCH_OPERATION_TYPE_UPDATE_EXECUTION_OPTIONS" | "BATCH_OPERATION_TYPE_UNPAUSE_ACTIVITY" | "BATCH_OPERATION_TYPE_UPDATE_ACTIVITY_OPTIONS" | "BATCH_OPERATION_TYPE_RESET_ACTIVITY" + + type numbers = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 + end + + module BatchOperationState + + BATCH_OPERATION_STATE_UNSPECIFIED: 0 + + BATCH_OPERATION_STATE_RUNNING: 1 + + BATCH_OPERATION_STATE_COMPLETED: 2 + + BATCH_OPERATION_STATE_FAILED: 3 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :BATCH_OPERATION_STATE_UNSPECIFIED | :BATCH_OPERATION_STATE_RUNNING | :BATCH_OPERATION_STATE_COMPLETED | :BATCH_OPERATION_STATE_FAILED + + type strings = "BATCH_OPERATION_STATE_UNSPECIFIED" | "BATCH_OPERATION_STATE_RUNNING" | "BATCH_OPERATION_STATE_COMPLETED" | "BATCH_OPERATION_STATE_FAILED" + + type numbers = 0 | 1 | 2 | 3 + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/api/enums/v1/command_type.rbs b/temporalio/sig/temporalio/api/enums/v1/command_type.rbs new file mode 100644 index 00000000..3728edb2 --- /dev/null +++ b/temporalio/sig/temporalio/api/enums/v1/command_type.rbs @@ -0,0 +1,74 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/api/enums/v1/command_type.proto + +module Temporalio + module Api + module Enums + module V1 + # 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. + module CommandType + + 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 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :COMMAND_TYPE_UNSPECIFIED | :COMMAND_TYPE_SCHEDULE_ACTIVITY_TASK | :COMMAND_TYPE_REQUEST_CANCEL_ACTIVITY_TASK | :COMMAND_TYPE_START_TIMER | :COMMAND_TYPE_COMPLETE_WORKFLOW_EXECUTION | :COMMAND_TYPE_FAIL_WORKFLOW_EXECUTION | :COMMAND_TYPE_CANCEL_TIMER | :COMMAND_TYPE_CANCEL_WORKFLOW_EXECUTION | :COMMAND_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION | :COMMAND_TYPE_RECORD_MARKER | :COMMAND_TYPE_CONTINUE_AS_NEW_WORKFLOW_EXECUTION | :COMMAND_TYPE_START_CHILD_WORKFLOW_EXECUTION | :COMMAND_TYPE_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION | :COMMAND_TYPE_UPSERT_WORKFLOW_SEARCH_ATTRIBUTES | :COMMAND_TYPE_PROTOCOL_MESSAGE | :COMMAND_TYPE_MODIFY_WORKFLOW_PROPERTIES | :COMMAND_TYPE_SCHEDULE_NEXUS_OPERATION | :COMMAND_TYPE_REQUEST_CANCEL_NEXUS_OPERATION + + type strings = "COMMAND_TYPE_UNSPECIFIED" | "COMMAND_TYPE_SCHEDULE_ACTIVITY_TASK" | "COMMAND_TYPE_REQUEST_CANCEL_ACTIVITY_TASK" | "COMMAND_TYPE_START_TIMER" | "COMMAND_TYPE_COMPLETE_WORKFLOW_EXECUTION" | "COMMAND_TYPE_FAIL_WORKFLOW_EXECUTION" | "COMMAND_TYPE_CANCEL_TIMER" | "COMMAND_TYPE_CANCEL_WORKFLOW_EXECUTION" | "COMMAND_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION" | "COMMAND_TYPE_RECORD_MARKER" | "COMMAND_TYPE_CONTINUE_AS_NEW_WORKFLOW_EXECUTION" | "COMMAND_TYPE_START_CHILD_WORKFLOW_EXECUTION" | "COMMAND_TYPE_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION" | "COMMAND_TYPE_UPSERT_WORKFLOW_SEARCH_ATTRIBUTES" | "COMMAND_TYPE_PROTOCOL_MESSAGE" | "COMMAND_TYPE_MODIFY_WORKFLOW_PROPERTIES" | "COMMAND_TYPE_SCHEDULE_NEXUS_OPERATION" | "COMMAND_TYPE_REQUEST_CANCEL_NEXUS_OPERATION" + + type numbers = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 16 | 17 | 18 + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/api/enums/v1/common.rbs b/temporalio/sig/temporalio/api/enums/v1/common.rbs new file mode 100644 index 00000000..14bdc359 --- /dev/null +++ b/temporalio/sig/temporalio/api/enums/v1/common.rbs @@ -0,0 +1,271 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/api/enums/v1/common.proto + +module Temporalio + module Api + module Enums + module V1 + module EncodingType + + ENCODING_TYPE_UNSPECIFIED: 0 + + ENCODING_TYPE_PROTO3: 1 + + ENCODING_TYPE_JSON: 2 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :ENCODING_TYPE_UNSPECIFIED | :ENCODING_TYPE_PROTO3 | :ENCODING_TYPE_JSON + + type strings = "ENCODING_TYPE_UNSPECIFIED" | "ENCODING_TYPE_PROTO3" | "ENCODING_TYPE_JSON" + + type numbers = 0 | 1 | 2 + end + + module IndexedValueType + + 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 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :INDEXED_VALUE_TYPE_UNSPECIFIED | :INDEXED_VALUE_TYPE_TEXT | :INDEXED_VALUE_TYPE_KEYWORD | :INDEXED_VALUE_TYPE_INT | :INDEXED_VALUE_TYPE_DOUBLE | :INDEXED_VALUE_TYPE_BOOL | :INDEXED_VALUE_TYPE_DATETIME | :INDEXED_VALUE_TYPE_KEYWORD_LIST + + type strings = "INDEXED_VALUE_TYPE_UNSPECIFIED" | "INDEXED_VALUE_TYPE_TEXT" | "INDEXED_VALUE_TYPE_KEYWORD" | "INDEXED_VALUE_TYPE_INT" | "INDEXED_VALUE_TYPE_DOUBLE" | "INDEXED_VALUE_TYPE_BOOL" | "INDEXED_VALUE_TYPE_DATETIME" | "INDEXED_VALUE_TYPE_KEYWORD_LIST" + + type numbers = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 + end + + module Severity + + SEVERITY_UNSPECIFIED: 0 + + SEVERITY_HIGH: 1 + + SEVERITY_MEDIUM: 2 + + SEVERITY_LOW: 3 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :SEVERITY_UNSPECIFIED | :SEVERITY_HIGH | :SEVERITY_MEDIUM | :SEVERITY_LOW + + type strings = "SEVERITY_UNSPECIFIED" | "SEVERITY_HIGH" | "SEVERITY_MEDIUM" | "SEVERITY_LOW" + + type numbers = 0 | 1 | 2 | 3 + end + + # State of a callback. + module CallbackState + + # Default value, unspecified state. + CALLBACK_STATE_UNSPECIFIED: 0 + + # Callback is standing by, waiting to be triggered. + CALLBACK_STATE_STANDBY: 1 + + # Callback is in the queue waiting to be executed or is currently executing. + CALLBACK_STATE_SCHEDULED: 2 + + # Callback has failed with a retryable error and is backing off before the next attempt. + CALLBACK_STATE_BACKING_OFF: 3 + + # Callback has failed. + CALLBACK_STATE_FAILED: 4 + + # Callback has succeeded. + CALLBACK_STATE_SUCCEEDED: 5 + + # Callback is blocked (eg: by circuit breaker). + CALLBACK_STATE_BLOCKED: 6 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :CALLBACK_STATE_UNSPECIFIED | :CALLBACK_STATE_STANDBY | :CALLBACK_STATE_SCHEDULED | :CALLBACK_STATE_BACKING_OFF | :CALLBACK_STATE_FAILED | :CALLBACK_STATE_SUCCEEDED | :CALLBACK_STATE_BLOCKED + + type strings = "CALLBACK_STATE_UNSPECIFIED" | "CALLBACK_STATE_STANDBY" | "CALLBACK_STATE_SCHEDULED" | "CALLBACK_STATE_BACKING_OFF" | "CALLBACK_STATE_FAILED" | "CALLBACK_STATE_SUCCEEDED" | "CALLBACK_STATE_BLOCKED" + + type numbers = 0 | 1 | 2 | 3 | 4 | 5 | 6 + end + + # State of a pending Nexus operation. + module PendingNexusOperationState + + # Default value, unspecified state. + PENDING_NEXUS_OPERATION_STATE_UNSPECIFIED: 0 + + # Operation is in the queue waiting to be executed or is currently executing. + PENDING_NEXUS_OPERATION_STATE_SCHEDULED: 1 + + # Operation has failed with a retryable error and is backing off before the next attempt. + PENDING_NEXUS_OPERATION_STATE_BACKING_OFF: 2 + + # Operation was started and will complete asynchronously. + PENDING_NEXUS_OPERATION_STATE_STARTED: 3 + + # Operation is blocked (eg: by circuit breaker). + PENDING_NEXUS_OPERATION_STATE_BLOCKED: 4 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :PENDING_NEXUS_OPERATION_STATE_UNSPECIFIED | :PENDING_NEXUS_OPERATION_STATE_SCHEDULED | :PENDING_NEXUS_OPERATION_STATE_BACKING_OFF | :PENDING_NEXUS_OPERATION_STATE_STARTED | :PENDING_NEXUS_OPERATION_STATE_BLOCKED + + type strings = "PENDING_NEXUS_OPERATION_STATE_UNSPECIFIED" | "PENDING_NEXUS_OPERATION_STATE_SCHEDULED" | "PENDING_NEXUS_OPERATION_STATE_BACKING_OFF" | "PENDING_NEXUS_OPERATION_STATE_STARTED" | "PENDING_NEXUS_OPERATION_STATE_BLOCKED" + + type numbers = 0 | 1 | 2 | 3 | 4 + end + + # State of a Nexus operation cancellation. + module NexusOperationCancellationState + + # Default value, unspecified state. + NEXUS_OPERATION_CANCELLATION_STATE_UNSPECIFIED: 0 + + # Cancellation request is in the queue waiting to be executed or is currently executing. + NEXUS_OPERATION_CANCELLATION_STATE_SCHEDULED: 1 + + # Cancellation request has failed with a retryable error and is backing off before the next attempt. + NEXUS_OPERATION_CANCELLATION_STATE_BACKING_OFF: 2 + + # Cancellation request succeeded. + NEXUS_OPERATION_CANCELLATION_STATE_SUCCEEDED: 3 + + # Cancellation request failed with a non-retryable error. + NEXUS_OPERATION_CANCELLATION_STATE_FAILED: 4 + + # The associated operation timed out - exceeded the user supplied schedule-to-close timeout. + NEXUS_OPERATION_CANCELLATION_STATE_TIMED_OUT: 5 + + # Cancellation request is blocked (eg: by circuit breaker). + NEXUS_OPERATION_CANCELLATION_STATE_BLOCKED: 6 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :NEXUS_OPERATION_CANCELLATION_STATE_UNSPECIFIED | :NEXUS_OPERATION_CANCELLATION_STATE_SCHEDULED | :NEXUS_OPERATION_CANCELLATION_STATE_BACKING_OFF | :NEXUS_OPERATION_CANCELLATION_STATE_SUCCEEDED | :NEXUS_OPERATION_CANCELLATION_STATE_FAILED | :NEXUS_OPERATION_CANCELLATION_STATE_TIMED_OUT | :NEXUS_OPERATION_CANCELLATION_STATE_BLOCKED + + type strings = "NEXUS_OPERATION_CANCELLATION_STATE_UNSPECIFIED" | "NEXUS_OPERATION_CANCELLATION_STATE_SCHEDULED" | "NEXUS_OPERATION_CANCELLATION_STATE_BACKING_OFF" | "NEXUS_OPERATION_CANCELLATION_STATE_SUCCEEDED" | "NEXUS_OPERATION_CANCELLATION_STATE_FAILED" | "NEXUS_OPERATION_CANCELLATION_STATE_TIMED_OUT" | "NEXUS_OPERATION_CANCELLATION_STATE_BLOCKED" + + type numbers = 0 | 1 | 2 | 3 | 4 | 5 | 6 + end + + module WorkflowRuleActionScope + + # Default value, unspecified scope. + WORKFLOW_RULE_ACTION_SCOPE_UNSPECIFIED: 0 + + # The action will be applied to the entire workflow. + WORKFLOW_RULE_ACTION_SCOPE_WORKFLOW: 1 + + # The action will be applied to a specific activity. + WORKFLOW_RULE_ACTION_SCOPE_ACTIVITY: 2 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :WORKFLOW_RULE_ACTION_SCOPE_UNSPECIFIED | :WORKFLOW_RULE_ACTION_SCOPE_WORKFLOW | :WORKFLOW_RULE_ACTION_SCOPE_ACTIVITY + + type strings = "WORKFLOW_RULE_ACTION_SCOPE_UNSPECIFIED" | "WORKFLOW_RULE_ACTION_SCOPE_WORKFLOW" | "WORKFLOW_RULE_ACTION_SCOPE_ACTIVITY" + + type numbers = 0 | 1 | 2 + end + + module ApplicationErrorCategory + + APPLICATION_ERROR_CATEGORY_UNSPECIFIED: 0 + + # Expected application error with little/no severity. + APPLICATION_ERROR_CATEGORY_BENIGN: 1 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :APPLICATION_ERROR_CATEGORY_UNSPECIFIED | :APPLICATION_ERROR_CATEGORY_BENIGN + + type strings = "APPLICATION_ERROR_CATEGORY_UNSPECIFIED" | "APPLICATION_ERROR_CATEGORY_BENIGN" + + type numbers = 0 | 1 + end + + # (-- 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. --) + module WorkerStatus + + WORKER_STATUS_UNSPECIFIED: 0 + + WORKER_STATUS_RUNNING: 1 + + WORKER_STATUS_SHUTTING_DOWN: 2 + + WORKER_STATUS_SHUTDOWN: 3 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :WORKER_STATUS_UNSPECIFIED | :WORKER_STATUS_RUNNING | :WORKER_STATUS_SHUTTING_DOWN | :WORKER_STATUS_SHUTDOWN + + type strings = "WORKER_STATUS_UNSPECIFIED" | "WORKER_STATUS_RUNNING" | "WORKER_STATUS_SHUTTING_DOWN" | "WORKER_STATUS_SHUTDOWN" + + type numbers = 0 | 1 | 2 | 3 + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/api/enums/v1/deployment.rbs b/temporalio/sig/temporalio/api/enums/v1/deployment.rbs new file mode 100644 index 00000000..e4b13010 --- /dev/null +++ b/temporalio/sig/temporalio/api/enums/v1/deployment.rbs @@ -0,0 +1,176 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/api/enums/v1/deployment.proto + +module Temporalio + module Api + module Enums + module V1 + # Specify the reachability level for a deployment so users can decide if it is time to + # decommission the deployment. + module DeploymentReachability + + # Reachability level is not specified. + DEPLOYMENT_REACHABILITY_UNSPECIFIED: 0 + + # The deployment is reachable by new and/or open workflows. The deployment cannot be + # decommissioned safely. + DEPLOYMENT_REACHABILITY_REACHABLE: 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: 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: 3 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :DEPLOYMENT_REACHABILITY_UNSPECIFIED | :DEPLOYMENT_REACHABILITY_REACHABLE | :DEPLOYMENT_REACHABILITY_CLOSED_WORKFLOWS_ONLY | :DEPLOYMENT_REACHABILITY_UNREACHABLE + + type strings = "DEPLOYMENT_REACHABILITY_UNSPECIFIED" | "DEPLOYMENT_REACHABILITY_REACHABLE" | "DEPLOYMENT_REACHABILITY_CLOSED_WORKFLOWS_ONLY" | "DEPLOYMENT_REACHABILITY_UNREACHABLE" + + type numbers = 0 | 1 | 2 | 3 + end + + # (-- 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. + module VersionDrainageStatus + + # Drainage Status is not specified. + VERSION_DRAINAGE_STATUS_UNSPECIFIED: 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: 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: 2 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :VERSION_DRAINAGE_STATUS_UNSPECIFIED | :VERSION_DRAINAGE_STATUS_DRAINING | :VERSION_DRAINAGE_STATUS_DRAINED + + type strings = "VERSION_DRAINAGE_STATUS_UNSPECIFIED" | "VERSION_DRAINAGE_STATUS_DRAINING" | "VERSION_DRAINAGE_STATUS_DRAINED" + + type numbers = 0 | 1 | 2 + end + + # 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. + module WorkerVersioningMode + + WORKER_VERSIONING_MODE_UNSPECIFIED: 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: 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: 2 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :WORKER_VERSIONING_MODE_UNSPECIFIED | :WORKER_VERSIONING_MODE_UNVERSIONED | :WORKER_VERSIONING_MODE_VERSIONED + + type strings = "WORKER_VERSIONING_MODE_UNSPECIFIED" | "WORKER_VERSIONING_MODE_UNVERSIONED" | "WORKER_VERSIONING_MODE_VERSIONED" + + type numbers = 0 | 1 | 2 + end + + # (-- 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. + module WorkerDeploymentVersionStatus + + WORKER_DEPLOYMENT_VERSION_STATUS_UNSPECIFIED: 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: 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: 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: 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: 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: 5 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :WORKER_DEPLOYMENT_VERSION_STATUS_UNSPECIFIED | :WORKER_DEPLOYMENT_VERSION_STATUS_INACTIVE | :WORKER_DEPLOYMENT_VERSION_STATUS_CURRENT | :WORKER_DEPLOYMENT_VERSION_STATUS_RAMPING | :WORKER_DEPLOYMENT_VERSION_STATUS_DRAINING | :WORKER_DEPLOYMENT_VERSION_STATUS_DRAINED + + type strings = "WORKER_DEPLOYMENT_VERSION_STATUS_UNSPECIFIED" | "WORKER_DEPLOYMENT_VERSION_STATUS_INACTIVE" | "WORKER_DEPLOYMENT_VERSION_STATUS_CURRENT" | "WORKER_DEPLOYMENT_VERSION_STATUS_RAMPING" | "WORKER_DEPLOYMENT_VERSION_STATUS_DRAINING" | "WORKER_DEPLOYMENT_VERSION_STATUS_DRAINED" + + type numbers = 0 | 1 | 2 | 3 | 4 | 5 + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/api/enums/v1/event_type.rbs b/temporalio/sig/temporalio/api/enums/v1/event_type.rbs new file mode 100644 index 00000000..190e5bac --- /dev/null +++ b/temporalio/sig/temporalio/api/enums/v1/event_type.rbs @@ -0,0 +1,260 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/api/enums/v1/event_type.proto + +module Temporalio + module Api + module Enums + module V1 + # Whenever this list of events is changed do change the function shouldBufferEvent in mutableStateBuilder.go to make sure to do the correct event ordering + module EventType + + # Place holder and should never appear in a Workflow execution history + EVENT_TYPE_UNSPECIFIED: 0 + + # Workflow execution has been triggered/started + # It contains Workflow execution inputs, as well as Workflow timeout configurations + EVENT_TYPE_WORKFLOW_EXECUTION_STARTED: 1 + + # Workflow execution has successfully completed and contains Workflow execution results + EVENT_TYPE_WORKFLOW_EXECUTION_COMPLETED: 2 + + # Workflow execution has unsuccessfully completed and contains the Workflow execution error + EVENT_TYPE_WORKFLOW_EXECUTION_FAILED: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 13 + + # Activity has timed out according to the Temporal Server + # Activity did not complete within the timeout settings + EVENT_TYPE_ACTIVITY_TASK_TIMED_OUT: 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: 15 + + # Activity has been cancelled + EVENT_TYPE_ACTIVITY_TASK_CANCELED: 16 + + # A timer has started + EVENT_TYPE_TIMER_STARTED: 17 + + # A timer has fired + EVENT_TYPE_TIMER_FIRED: 18 + + # A time has been cancelled + EVENT_TYPE_TIMER_CANCELED: 19 + + # A request has been made to cancel the Workflow execution + EVENT_TYPE_WORKFLOW_EXECUTION_CANCEL_REQUESTED: 20 + + # SDK client has confirmed the cancellation request and the Workflow execution has been cancelled + EVENT_TYPE_WORKFLOW_EXECUTION_CANCELED: 21 + + # Workflow has requested that the Temporal Server try to cancel another Workflow + EVENT_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED: 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: 23 + + # Temporal Server has successfully requested the cancellation of the target Workflow + EVENT_TYPE_EXTERNAL_WORKFLOW_EXECUTION_CANCEL_REQUESTED: 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: 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: 26 + + # Workflow execution has been forcefully terminated + # This is usually because the terminate Workflow API was called + EVENT_TYPE_WORKFLOW_EXECUTION_TERMINATED: 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: 28 + + # Temporal Server will try to start a child Workflow + EVENT_TYPE_START_CHILD_WORKFLOW_EXECUTION_INITIATED: 29 + + # Child Workflow execution cannot be started/triggered + # Usually due to a child Workflow ID collision + EVENT_TYPE_START_CHILD_WORKFLOW_EXECUTION_FAILED: 30 + + # Child Workflow execution has successfully started/triggered + EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_STARTED: 31 + + # Child Workflow execution has successfully completed + EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_COMPLETED: 32 + + # Child Workflow execution has unsuccessfully completed + EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_FAILED: 33 + + # Child Workflow execution has been cancelled + EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_CANCELED: 34 + + # Child Workflow execution has timed out by the Temporal Server + EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_TIMED_OUT: 35 + + # Child Workflow execution has been terminated + EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_TERMINATED: 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: 37 + + # Temporal Server cannot Signal the targeted Workflow + # Usually because the Workflow could not be found + EVENT_TYPE_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED: 38 + + # Temporal Server has successfully Signaled the targeted Workflow + EVENT_TYPE_EXTERNAL_WORKFLOW_EXECUTION_SIGNALED: 39 + + # Workflow search attributes should be updated and synchronized with the visibility store + EVENT_TYPE_UPSERT_WORKFLOW_SEARCH_ATTRIBUTES: 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: 47 + + # An update was accepted (i.e. passed validation, perhaps because no validator was defined) + EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_ACCEPTED: 41 + + # This event is never written to history. + EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_REJECTED: 42 + + # An update completed + EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_COMPLETED: 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: 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: 45 + + # Workflow properties modified by user workflow code + EVENT_TYPE_WORKFLOW_PROPERTIES_MODIFIED: 46 + + # A Nexus operation was scheduled using a ScheduleNexusOperation command. + EVENT_TYPE_NEXUS_OPERATION_SCHEDULED: 48 + + # An asynchronous Nexus operation was started by a Nexus handler. + EVENT_TYPE_NEXUS_OPERATION_STARTED: 49 + + # A Nexus operation completed successfully. + EVENT_TYPE_NEXUS_OPERATION_COMPLETED: 50 + + # A Nexus operation failed. + EVENT_TYPE_NEXUS_OPERATION_FAILED: 51 + + # A Nexus operation completed as canceled. + EVENT_TYPE_NEXUS_OPERATION_CANCELED: 52 + + # A Nexus operation timed out. + EVENT_TYPE_NEXUS_OPERATION_TIMED_OUT: 53 + + # A Nexus operation was requested to be canceled using a RequestCancelNexusOperation command. + EVENT_TYPE_NEXUS_OPERATION_CANCEL_REQUESTED: 54 + + # Workflow execution options updated by user. + EVENT_TYPE_WORKFLOW_EXECUTION_OPTIONS_UPDATED: 55 + + # A cancellation request for a Nexus operation was successfully delivered to the Nexus handler. + EVENT_TYPE_NEXUS_OPERATION_CANCEL_REQUEST_COMPLETED: 56 + + # A cancellation request for a Nexus operation resulted in an error. + EVENT_TYPE_NEXUS_OPERATION_CANCEL_REQUEST_FAILED: 57 + + # An event that indicates that the workflow execution has been paused. + EVENT_TYPE_WORKFLOW_EXECUTION_PAUSED: 58 + + # An event that indicates that the previously paused workflow execution has been unpaused. + EVENT_TYPE_WORKFLOW_EXECUTION_UNPAUSED: 59 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :EVENT_TYPE_UNSPECIFIED | :EVENT_TYPE_WORKFLOW_EXECUTION_STARTED | :EVENT_TYPE_WORKFLOW_EXECUTION_COMPLETED | :EVENT_TYPE_WORKFLOW_EXECUTION_FAILED | :EVENT_TYPE_WORKFLOW_EXECUTION_TIMED_OUT | :EVENT_TYPE_WORKFLOW_TASK_SCHEDULED | :EVENT_TYPE_WORKFLOW_TASK_STARTED | :EVENT_TYPE_WORKFLOW_TASK_COMPLETED | :EVENT_TYPE_WORKFLOW_TASK_TIMED_OUT | :EVENT_TYPE_WORKFLOW_TASK_FAILED | :EVENT_TYPE_ACTIVITY_TASK_SCHEDULED | :EVENT_TYPE_ACTIVITY_TASK_STARTED | :EVENT_TYPE_ACTIVITY_TASK_COMPLETED | :EVENT_TYPE_ACTIVITY_TASK_FAILED | :EVENT_TYPE_ACTIVITY_TASK_TIMED_OUT | :EVENT_TYPE_ACTIVITY_TASK_CANCEL_REQUESTED | :EVENT_TYPE_ACTIVITY_TASK_CANCELED | :EVENT_TYPE_TIMER_STARTED | :EVENT_TYPE_TIMER_FIRED | :EVENT_TYPE_TIMER_CANCELED | :EVENT_TYPE_WORKFLOW_EXECUTION_CANCEL_REQUESTED | :EVENT_TYPE_WORKFLOW_EXECUTION_CANCELED | :EVENT_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED | :EVENT_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED | :EVENT_TYPE_EXTERNAL_WORKFLOW_EXECUTION_CANCEL_REQUESTED | :EVENT_TYPE_MARKER_RECORDED | :EVENT_TYPE_WORKFLOW_EXECUTION_SIGNALED | :EVENT_TYPE_WORKFLOW_EXECUTION_TERMINATED | :EVENT_TYPE_WORKFLOW_EXECUTION_CONTINUED_AS_NEW | :EVENT_TYPE_START_CHILD_WORKFLOW_EXECUTION_INITIATED | :EVENT_TYPE_START_CHILD_WORKFLOW_EXECUTION_FAILED | :EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_STARTED | :EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_COMPLETED | :EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_FAILED | :EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_CANCELED | :EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_TIMED_OUT | :EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_TERMINATED | :EVENT_TYPE_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED | :EVENT_TYPE_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED | :EVENT_TYPE_EXTERNAL_WORKFLOW_EXECUTION_SIGNALED | :EVENT_TYPE_UPSERT_WORKFLOW_SEARCH_ATTRIBUTES | :EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_ADMITTED | :EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_ACCEPTED | :EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_REJECTED | :EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_COMPLETED | :EVENT_TYPE_WORKFLOW_PROPERTIES_MODIFIED_EXTERNALLY | :EVENT_TYPE_ACTIVITY_PROPERTIES_MODIFIED_EXTERNALLY | :EVENT_TYPE_WORKFLOW_PROPERTIES_MODIFIED | :EVENT_TYPE_NEXUS_OPERATION_SCHEDULED | :EVENT_TYPE_NEXUS_OPERATION_STARTED | :EVENT_TYPE_NEXUS_OPERATION_COMPLETED | :EVENT_TYPE_NEXUS_OPERATION_FAILED | :EVENT_TYPE_NEXUS_OPERATION_CANCELED | :EVENT_TYPE_NEXUS_OPERATION_TIMED_OUT | :EVENT_TYPE_NEXUS_OPERATION_CANCEL_REQUESTED | :EVENT_TYPE_WORKFLOW_EXECUTION_OPTIONS_UPDATED | :EVENT_TYPE_NEXUS_OPERATION_CANCEL_REQUEST_COMPLETED | :EVENT_TYPE_NEXUS_OPERATION_CANCEL_REQUEST_FAILED | :EVENT_TYPE_WORKFLOW_EXECUTION_PAUSED | :EVENT_TYPE_WORKFLOW_EXECUTION_UNPAUSED + + type strings = "EVENT_TYPE_UNSPECIFIED" | "EVENT_TYPE_WORKFLOW_EXECUTION_STARTED" | "EVENT_TYPE_WORKFLOW_EXECUTION_COMPLETED" | "EVENT_TYPE_WORKFLOW_EXECUTION_FAILED" | "EVENT_TYPE_WORKFLOW_EXECUTION_TIMED_OUT" | "EVENT_TYPE_WORKFLOW_TASK_SCHEDULED" | "EVENT_TYPE_WORKFLOW_TASK_STARTED" | "EVENT_TYPE_WORKFLOW_TASK_COMPLETED" | "EVENT_TYPE_WORKFLOW_TASK_TIMED_OUT" | "EVENT_TYPE_WORKFLOW_TASK_FAILED" | "EVENT_TYPE_ACTIVITY_TASK_SCHEDULED" | "EVENT_TYPE_ACTIVITY_TASK_STARTED" | "EVENT_TYPE_ACTIVITY_TASK_COMPLETED" | "EVENT_TYPE_ACTIVITY_TASK_FAILED" | "EVENT_TYPE_ACTIVITY_TASK_TIMED_OUT" | "EVENT_TYPE_ACTIVITY_TASK_CANCEL_REQUESTED" | "EVENT_TYPE_ACTIVITY_TASK_CANCELED" | "EVENT_TYPE_TIMER_STARTED" | "EVENT_TYPE_TIMER_FIRED" | "EVENT_TYPE_TIMER_CANCELED" | "EVENT_TYPE_WORKFLOW_EXECUTION_CANCEL_REQUESTED" | "EVENT_TYPE_WORKFLOW_EXECUTION_CANCELED" | "EVENT_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED" | "EVENT_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED" | "EVENT_TYPE_EXTERNAL_WORKFLOW_EXECUTION_CANCEL_REQUESTED" | "EVENT_TYPE_MARKER_RECORDED" | "EVENT_TYPE_WORKFLOW_EXECUTION_SIGNALED" | "EVENT_TYPE_WORKFLOW_EXECUTION_TERMINATED" | "EVENT_TYPE_WORKFLOW_EXECUTION_CONTINUED_AS_NEW" | "EVENT_TYPE_START_CHILD_WORKFLOW_EXECUTION_INITIATED" | "EVENT_TYPE_START_CHILD_WORKFLOW_EXECUTION_FAILED" | "EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_STARTED" | "EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_COMPLETED" | "EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_FAILED" | "EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_CANCELED" | "EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_TIMED_OUT" | "EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_TERMINATED" | "EVENT_TYPE_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED" | "EVENT_TYPE_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED" | "EVENT_TYPE_EXTERNAL_WORKFLOW_EXECUTION_SIGNALED" | "EVENT_TYPE_UPSERT_WORKFLOW_SEARCH_ATTRIBUTES" | "EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_ADMITTED" | "EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_ACCEPTED" | "EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_REJECTED" | "EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_COMPLETED" | "EVENT_TYPE_WORKFLOW_PROPERTIES_MODIFIED_EXTERNALLY" | "EVENT_TYPE_ACTIVITY_PROPERTIES_MODIFIED_EXTERNALLY" | "EVENT_TYPE_WORKFLOW_PROPERTIES_MODIFIED" | "EVENT_TYPE_NEXUS_OPERATION_SCHEDULED" | "EVENT_TYPE_NEXUS_OPERATION_STARTED" | "EVENT_TYPE_NEXUS_OPERATION_COMPLETED" | "EVENT_TYPE_NEXUS_OPERATION_FAILED" | "EVENT_TYPE_NEXUS_OPERATION_CANCELED" | "EVENT_TYPE_NEXUS_OPERATION_TIMED_OUT" | "EVENT_TYPE_NEXUS_OPERATION_CANCEL_REQUESTED" | "EVENT_TYPE_WORKFLOW_EXECUTION_OPTIONS_UPDATED" | "EVENT_TYPE_NEXUS_OPERATION_CANCEL_REQUEST_COMPLETED" | "EVENT_TYPE_NEXUS_OPERATION_CANCEL_REQUEST_FAILED" | "EVENT_TYPE_WORKFLOW_EXECUTION_PAUSED" | "EVENT_TYPE_WORKFLOW_EXECUTION_UNPAUSED" + + type numbers = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 47 | 41 | 42 | 43 | 44 | 45 | 46 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/api/enums/v1/failed_cause.rbs b/temporalio/sig/temporalio/api/enums/v1/failed_cause.rbs new file mode 100644 index 00000000..022705f3 --- /dev/null +++ b/temporalio/sig/temporalio/api/enums/v1/failed_cause.rbs @@ -0,0 +1,281 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/api/enums/v1/failed_cause.proto + +module Temporalio + module Api + module Enums + module V1 + # Workflow tasks can fail for various reasons. Note that some of these reasons can only originate + # from the server, and some of them can only originate from the SDK/worker. + module WorkflowTaskFailedCause + + WORKFLOW_TASK_FAILED_CAUSE_UNSPECIFIED: 0 + + # Between starting and completing the workflow task (with a workflow completion command), some + # new command (like a signal) was processed into workflow history. The outstanding task will be + # failed with this reason, and a worker must pick up a new task. + WORKFLOW_TASK_FAILED_CAUSE_UNHANDLED_COMMAND: 1 + + WORKFLOW_TASK_FAILED_CAUSE_BAD_SCHEDULE_ACTIVITY_ATTRIBUTES: 2 + + WORKFLOW_TASK_FAILED_CAUSE_BAD_REQUEST_CANCEL_ACTIVITY_ATTRIBUTES: 3 + + WORKFLOW_TASK_FAILED_CAUSE_BAD_START_TIMER_ATTRIBUTES: 4 + + WORKFLOW_TASK_FAILED_CAUSE_BAD_CANCEL_TIMER_ATTRIBUTES: 5 + + WORKFLOW_TASK_FAILED_CAUSE_BAD_RECORD_MARKER_ATTRIBUTES: 6 + + WORKFLOW_TASK_FAILED_CAUSE_BAD_COMPLETE_WORKFLOW_EXECUTION_ATTRIBUTES: 7 + + WORKFLOW_TASK_FAILED_CAUSE_BAD_FAIL_WORKFLOW_EXECUTION_ATTRIBUTES: 8 + + WORKFLOW_TASK_FAILED_CAUSE_BAD_CANCEL_WORKFLOW_EXECUTION_ATTRIBUTES: 9 + + WORKFLOW_TASK_FAILED_CAUSE_BAD_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_ATTRIBUTES: 10 + + WORKFLOW_TASK_FAILED_CAUSE_BAD_CONTINUE_AS_NEW_ATTRIBUTES: 11 + + WORKFLOW_TASK_FAILED_CAUSE_START_TIMER_DUPLICATE_ID: 12 + + # The worker wishes to fail the task and have the next one be generated on a normal, not sticky + # queue. Generally workers should prefer to use the explicit `ResetStickyTaskQueue` RPC call. + WORKFLOW_TASK_FAILED_CAUSE_RESET_STICKY_TASK_QUEUE: 13 + + WORKFLOW_TASK_FAILED_CAUSE_WORKFLOW_WORKER_UNHANDLED_FAILURE: 14 + + WORKFLOW_TASK_FAILED_CAUSE_BAD_SIGNAL_WORKFLOW_EXECUTION_ATTRIBUTES: 15 + + WORKFLOW_TASK_FAILED_CAUSE_BAD_START_CHILD_EXECUTION_ATTRIBUTES: 16 + + WORKFLOW_TASK_FAILED_CAUSE_FORCE_CLOSE_COMMAND: 17 + + WORKFLOW_TASK_FAILED_CAUSE_FAILOVER_CLOSE_COMMAND: 18 + + WORKFLOW_TASK_FAILED_CAUSE_BAD_SIGNAL_INPUT_SIZE: 19 + + WORKFLOW_TASK_FAILED_CAUSE_RESET_WORKFLOW: 20 + + WORKFLOW_TASK_FAILED_CAUSE_BAD_BINARY: 21 + + WORKFLOW_TASK_FAILED_CAUSE_SCHEDULE_ACTIVITY_DUPLICATE_ID: 22 + + WORKFLOW_TASK_FAILED_CAUSE_BAD_SEARCH_ATTRIBUTES: 23 + + # The worker encountered a mismatch while replaying history between what was expected, and + # what the workflow code actually did. + WORKFLOW_TASK_FAILED_CAUSE_NON_DETERMINISTIC_ERROR: 24 + + WORKFLOW_TASK_FAILED_CAUSE_BAD_MODIFY_WORKFLOW_PROPERTIES_ATTRIBUTES: 25 + + # We send the below error codes to users when their requests would violate a size constraint + # of their workflow. We do this to ensure that the state of their workflow does not become too + # large because that can cause severe performance degradation. You can modify the thresholds for + # each of these errors within your dynamic config. + # Spawning a new child workflow would cause this workflow to exceed its limit of pending child + # workflows. + WORKFLOW_TASK_FAILED_CAUSE_PENDING_CHILD_WORKFLOWS_LIMIT_EXCEEDED: 26 + + # Starting a new activity would cause this workflow to exceed its limit of pending activities + # that we track. + WORKFLOW_TASK_FAILED_CAUSE_PENDING_ACTIVITIES_LIMIT_EXCEEDED: 27 + + # A workflow has a buffer of signals that have not yet reached their destination. We return this + # error when sending a new signal would exceed the capacity of this buffer. + WORKFLOW_TASK_FAILED_CAUSE_PENDING_SIGNALS_LIMIT_EXCEEDED: 28 + + # Similarly, we have a buffer of pending requests to cancel other workflows. We return this error + # when our capacity for pending cancel requests is already reached. + WORKFLOW_TASK_FAILED_CAUSE_PENDING_REQUEST_CANCEL_LIMIT_EXCEEDED: 29 + + # Workflow execution update message (update.Acceptance, update.Rejection, or update.Response) + # has wrong format, or missing required fields. + WORKFLOW_TASK_FAILED_CAUSE_BAD_UPDATE_WORKFLOW_EXECUTION_MESSAGE: 30 + + # Similar to WORKFLOW_TASK_FAILED_CAUSE_UNHANDLED_COMMAND, but for updates. + WORKFLOW_TASK_FAILED_CAUSE_UNHANDLED_UPDATE: 31 + + # A workflow task completed with an invalid ScheduleNexusOperation command. + WORKFLOW_TASK_FAILED_CAUSE_BAD_SCHEDULE_NEXUS_OPERATION_ATTRIBUTES: 32 + + # A workflow task completed requesting to schedule a Nexus Operation exceeding the server configured limit. + WORKFLOW_TASK_FAILED_CAUSE_PENDING_NEXUS_OPERATIONS_LIMIT_EXCEEDED: 33 + + # A workflow task completed with an invalid RequestCancelNexusOperation command. + WORKFLOW_TASK_FAILED_CAUSE_BAD_REQUEST_CANCEL_NEXUS_OPERATION_ATTRIBUTES: 34 + + # A workflow task completed requesting a feature that's disabled on the server (either system wide or - typically - + # for the workflow's namespace). + # Check the workflow task failure message for more information. + WORKFLOW_TASK_FAILED_CAUSE_FEATURE_DISABLED: 35 + + # A workflow task failed because a grpc message was too large. + WORKFLOW_TASK_FAILED_CAUSE_GRPC_MESSAGE_TOO_LARGE: 36 + + # A workflow task failed because payloads were too large. + WORKFLOW_TASK_FAILED_CAUSE_PAYLOADS_TOO_LARGE: 37 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :WORKFLOW_TASK_FAILED_CAUSE_UNSPECIFIED | :WORKFLOW_TASK_FAILED_CAUSE_UNHANDLED_COMMAND | :WORKFLOW_TASK_FAILED_CAUSE_BAD_SCHEDULE_ACTIVITY_ATTRIBUTES | :WORKFLOW_TASK_FAILED_CAUSE_BAD_REQUEST_CANCEL_ACTIVITY_ATTRIBUTES | :WORKFLOW_TASK_FAILED_CAUSE_BAD_START_TIMER_ATTRIBUTES | :WORKFLOW_TASK_FAILED_CAUSE_BAD_CANCEL_TIMER_ATTRIBUTES | :WORKFLOW_TASK_FAILED_CAUSE_BAD_RECORD_MARKER_ATTRIBUTES | :WORKFLOW_TASK_FAILED_CAUSE_BAD_COMPLETE_WORKFLOW_EXECUTION_ATTRIBUTES | :WORKFLOW_TASK_FAILED_CAUSE_BAD_FAIL_WORKFLOW_EXECUTION_ATTRIBUTES | :WORKFLOW_TASK_FAILED_CAUSE_BAD_CANCEL_WORKFLOW_EXECUTION_ATTRIBUTES | :WORKFLOW_TASK_FAILED_CAUSE_BAD_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_ATTRIBUTES | :WORKFLOW_TASK_FAILED_CAUSE_BAD_CONTINUE_AS_NEW_ATTRIBUTES | :WORKFLOW_TASK_FAILED_CAUSE_START_TIMER_DUPLICATE_ID | :WORKFLOW_TASK_FAILED_CAUSE_RESET_STICKY_TASK_QUEUE | :WORKFLOW_TASK_FAILED_CAUSE_WORKFLOW_WORKER_UNHANDLED_FAILURE | :WORKFLOW_TASK_FAILED_CAUSE_BAD_SIGNAL_WORKFLOW_EXECUTION_ATTRIBUTES | :WORKFLOW_TASK_FAILED_CAUSE_BAD_START_CHILD_EXECUTION_ATTRIBUTES | :WORKFLOW_TASK_FAILED_CAUSE_FORCE_CLOSE_COMMAND | :WORKFLOW_TASK_FAILED_CAUSE_FAILOVER_CLOSE_COMMAND | :WORKFLOW_TASK_FAILED_CAUSE_BAD_SIGNAL_INPUT_SIZE | :WORKFLOW_TASK_FAILED_CAUSE_RESET_WORKFLOW | :WORKFLOW_TASK_FAILED_CAUSE_BAD_BINARY | :WORKFLOW_TASK_FAILED_CAUSE_SCHEDULE_ACTIVITY_DUPLICATE_ID | :WORKFLOW_TASK_FAILED_CAUSE_BAD_SEARCH_ATTRIBUTES | :WORKFLOW_TASK_FAILED_CAUSE_NON_DETERMINISTIC_ERROR | :WORKFLOW_TASK_FAILED_CAUSE_BAD_MODIFY_WORKFLOW_PROPERTIES_ATTRIBUTES | :WORKFLOW_TASK_FAILED_CAUSE_PENDING_CHILD_WORKFLOWS_LIMIT_EXCEEDED | :WORKFLOW_TASK_FAILED_CAUSE_PENDING_ACTIVITIES_LIMIT_EXCEEDED | :WORKFLOW_TASK_FAILED_CAUSE_PENDING_SIGNALS_LIMIT_EXCEEDED | :WORKFLOW_TASK_FAILED_CAUSE_PENDING_REQUEST_CANCEL_LIMIT_EXCEEDED | :WORKFLOW_TASK_FAILED_CAUSE_BAD_UPDATE_WORKFLOW_EXECUTION_MESSAGE | :WORKFLOW_TASK_FAILED_CAUSE_UNHANDLED_UPDATE | :WORKFLOW_TASK_FAILED_CAUSE_BAD_SCHEDULE_NEXUS_OPERATION_ATTRIBUTES | :WORKFLOW_TASK_FAILED_CAUSE_PENDING_NEXUS_OPERATIONS_LIMIT_EXCEEDED | :WORKFLOW_TASK_FAILED_CAUSE_BAD_REQUEST_CANCEL_NEXUS_OPERATION_ATTRIBUTES | :WORKFLOW_TASK_FAILED_CAUSE_FEATURE_DISABLED | :WORKFLOW_TASK_FAILED_CAUSE_GRPC_MESSAGE_TOO_LARGE | :WORKFLOW_TASK_FAILED_CAUSE_PAYLOADS_TOO_LARGE + + type strings = "WORKFLOW_TASK_FAILED_CAUSE_UNSPECIFIED" | "WORKFLOW_TASK_FAILED_CAUSE_UNHANDLED_COMMAND" | "WORKFLOW_TASK_FAILED_CAUSE_BAD_SCHEDULE_ACTIVITY_ATTRIBUTES" | "WORKFLOW_TASK_FAILED_CAUSE_BAD_REQUEST_CANCEL_ACTIVITY_ATTRIBUTES" | "WORKFLOW_TASK_FAILED_CAUSE_BAD_START_TIMER_ATTRIBUTES" | "WORKFLOW_TASK_FAILED_CAUSE_BAD_CANCEL_TIMER_ATTRIBUTES" | "WORKFLOW_TASK_FAILED_CAUSE_BAD_RECORD_MARKER_ATTRIBUTES" | "WORKFLOW_TASK_FAILED_CAUSE_BAD_COMPLETE_WORKFLOW_EXECUTION_ATTRIBUTES" | "WORKFLOW_TASK_FAILED_CAUSE_BAD_FAIL_WORKFLOW_EXECUTION_ATTRIBUTES" | "WORKFLOW_TASK_FAILED_CAUSE_BAD_CANCEL_WORKFLOW_EXECUTION_ATTRIBUTES" | "WORKFLOW_TASK_FAILED_CAUSE_BAD_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_ATTRIBUTES" | "WORKFLOW_TASK_FAILED_CAUSE_BAD_CONTINUE_AS_NEW_ATTRIBUTES" | "WORKFLOW_TASK_FAILED_CAUSE_START_TIMER_DUPLICATE_ID" | "WORKFLOW_TASK_FAILED_CAUSE_RESET_STICKY_TASK_QUEUE" | "WORKFLOW_TASK_FAILED_CAUSE_WORKFLOW_WORKER_UNHANDLED_FAILURE" | "WORKFLOW_TASK_FAILED_CAUSE_BAD_SIGNAL_WORKFLOW_EXECUTION_ATTRIBUTES" | "WORKFLOW_TASK_FAILED_CAUSE_BAD_START_CHILD_EXECUTION_ATTRIBUTES" | "WORKFLOW_TASK_FAILED_CAUSE_FORCE_CLOSE_COMMAND" | "WORKFLOW_TASK_FAILED_CAUSE_FAILOVER_CLOSE_COMMAND" | "WORKFLOW_TASK_FAILED_CAUSE_BAD_SIGNAL_INPUT_SIZE" | "WORKFLOW_TASK_FAILED_CAUSE_RESET_WORKFLOW" | "WORKFLOW_TASK_FAILED_CAUSE_BAD_BINARY" | "WORKFLOW_TASK_FAILED_CAUSE_SCHEDULE_ACTIVITY_DUPLICATE_ID" | "WORKFLOW_TASK_FAILED_CAUSE_BAD_SEARCH_ATTRIBUTES" | "WORKFLOW_TASK_FAILED_CAUSE_NON_DETERMINISTIC_ERROR" | "WORKFLOW_TASK_FAILED_CAUSE_BAD_MODIFY_WORKFLOW_PROPERTIES_ATTRIBUTES" | "WORKFLOW_TASK_FAILED_CAUSE_PENDING_CHILD_WORKFLOWS_LIMIT_EXCEEDED" | "WORKFLOW_TASK_FAILED_CAUSE_PENDING_ACTIVITIES_LIMIT_EXCEEDED" | "WORKFLOW_TASK_FAILED_CAUSE_PENDING_SIGNALS_LIMIT_EXCEEDED" | "WORKFLOW_TASK_FAILED_CAUSE_PENDING_REQUEST_CANCEL_LIMIT_EXCEEDED" | "WORKFLOW_TASK_FAILED_CAUSE_BAD_UPDATE_WORKFLOW_EXECUTION_MESSAGE" | "WORKFLOW_TASK_FAILED_CAUSE_UNHANDLED_UPDATE" | "WORKFLOW_TASK_FAILED_CAUSE_BAD_SCHEDULE_NEXUS_OPERATION_ATTRIBUTES" | "WORKFLOW_TASK_FAILED_CAUSE_PENDING_NEXUS_OPERATIONS_LIMIT_EXCEEDED" | "WORKFLOW_TASK_FAILED_CAUSE_BAD_REQUEST_CANCEL_NEXUS_OPERATION_ATTRIBUTES" | "WORKFLOW_TASK_FAILED_CAUSE_FEATURE_DISABLED" | "WORKFLOW_TASK_FAILED_CAUSE_GRPC_MESSAGE_TOO_LARGE" | "WORKFLOW_TASK_FAILED_CAUSE_PAYLOADS_TOO_LARGE" + + type numbers = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 + end + + module StartChildWorkflowExecutionFailedCause + + START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_UNSPECIFIED: 0 + + START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_WORKFLOW_ALREADY_EXISTS: 1 + + START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_NAMESPACE_NOT_FOUND: 2 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_UNSPECIFIED | :START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_WORKFLOW_ALREADY_EXISTS | :START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_NAMESPACE_NOT_FOUND + + type strings = "START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_UNSPECIFIED" | "START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_WORKFLOW_ALREADY_EXISTS" | "START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_NAMESPACE_NOT_FOUND" + + type numbers = 0 | 1 | 2 + end + + module CancelExternalWorkflowExecutionFailedCause + + CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_UNSPECIFIED: 0 + + CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_EXTERNAL_WORKFLOW_EXECUTION_NOT_FOUND: 1 + + CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_NAMESPACE_NOT_FOUND: 2 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_UNSPECIFIED | :CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_EXTERNAL_WORKFLOW_EXECUTION_NOT_FOUND | :CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_NAMESPACE_NOT_FOUND + + type strings = "CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_UNSPECIFIED" | "CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_EXTERNAL_WORKFLOW_EXECUTION_NOT_FOUND" | "CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_NAMESPACE_NOT_FOUND" + + type numbers = 0 | 1 | 2 + end + + module SignalExternalWorkflowExecutionFailedCause + + SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_UNSPECIFIED: 0 + + SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_EXTERNAL_WORKFLOW_EXECUTION_NOT_FOUND: 1 + + SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_NAMESPACE_NOT_FOUND: 2 + + # Signal count limit is per workflow and controlled by server dynamic config "history.maximumSignalsPerExecution" + SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_SIGNAL_COUNT_LIMIT_EXCEEDED: 3 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_UNSPECIFIED | :SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_EXTERNAL_WORKFLOW_EXECUTION_NOT_FOUND | :SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_NAMESPACE_NOT_FOUND | :SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_SIGNAL_COUNT_LIMIT_EXCEEDED + + type strings = "SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_UNSPECIFIED" | "SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_EXTERNAL_WORKFLOW_EXECUTION_NOT_FOUND" | "SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_NAMESPACE_NOT_FOUND" | "SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_SIGNAL_COUNT_LIMIT_EXCEEDED" + + type numbers = 0 | 1 | 2 | 3 + end + + module ResourceExhaustedCause + + RESOURCE_EXHAUSTED_CAUSE_UNSPECIFIED: 0 + + # Caller exceeds request per second limit. + RESOURCE_EXHAUSTED_CAUSE_RPS_LIMIT: 1 + + # Caller exceeds max concurrent request limit. + RESOURCE_EXHAUSTED_CAUSE_CONCURRENT_LIMIT: 2 + + # System overloaded. + RESOURCE_EXHAUSTED_CAUSE_SYSTEM_OVERLOADED: 3 + + # Namespace exceeds persistence rate limit. + RESOURCE_EXHAUSTED_CAUSE_PERSISTENCE_LIMIT: 4 + + # Workflow is busy + RESOURCE_EXHAUSTED_CAUSE_BUSY_WORKFLOW: 5 + + # Caller exceeds action per second limit. + RESOURCE_EXHAUSTED_CAUSE_APS_LIMIT: 6 + + # Persistence storage limit exceeded. + RESOURCE_EXHAUSTED_CAUSE_PERSISTENCE_STORAGE_LIMIT: 7 + + # Circuit breaker is open/half-open. + RESOURCE_EXHAUSTED_CAUSE_CIRCUIT_BREAKER_OPEN: 8 + + # Namespace exceeds operations rate limit. + RESOURCE_EXHAUSTED_CAUSE_OPS_LIMIT: 9 + + # Limits related to Worker Deployments are reached. + RESOURCE_EXHAUSTED_CAUSE_WORKER_DEPLOYMENT_LIMITS: 10 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :RESOURCE_EXHAUSTED_CAUSE_UNSPECIFIED | :RESOURCE_EXHAUSTED_CAUSE_RPS_LIMIT | :RESOURCE_EXHAUSTED_CAUSE_CONCURRENT_LIMIT | :RESOURCE_EXHAUSTED_CAUSE_SYSTEM_OVERLOADED | :RESOURCE_EXHAUSTED_CAUSE_PERSISTENCE_LIMIT | :RESOURCE_EXHAUSTED_CAUSE_BUSY_WORKFLOW | :RESOURCE_EXHAUSTED_CAUSE_APS_LIMIT | :RESOURCE_EXHAUSTED_CAUSE_PERSISTENCE_STORAGE_LIMIT | :RESOURCE_EXHAUSTED_CAUSE_CIRCUIT_BREAKER_OPEN | :RESOURCE_EXHAUSTED_CAUSE_OPS_LIMIT | :RESOURCE_EXHAUSTED_CAUSE_WORKER_DEPLOYMENT_LIMITS + + type strings = "RESOURCE_EXHAUSTED_CAUSE_UNSPECIFIED" | "RESOURCE_EXHAUSTED_CAUSE_RPS_LIMIT" | "RESOURCE_EXHAUSTED_CAUSE_CONCURRENT_LIMIT" | "RESOURCE_EXHAUSTED_CAUSE_SYSTEM_OVERLOADED" | "RESOURCE_EXHAUSTED_CAUSE_PERSISTENCE_LIMIT" | "RESOURCE_EXHAUSTED_CAUSE_BUSY_WORKFLOW" | "RESOURCE_EXHAUSTED_CAUSE_APS_LIMIT" | "RESOURCE_EXHAUSTED_CAUSE_PERSISTENCE_STORAGE_LIMIT" | "RESOURCE_EXHAUSTED_CAUSE_CIRCUIT_BREAKER_OPEN" | "RESOURCE_EXHAUSTED_CAUSE_OPS_LIMIT" | "RESOURCE_EXHAUSTED_CAUSE_WORKER_DEPLOYMENT_LIMITS" + + type numbers = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 + end + + module ResourceExhaustedScope + + RESOURCE_EXHAUSTED_SCOPE_UNSPECIFIED: 0 + + # Exhausted resource is a system-level resource. + RESOURCE_EXHAUSTED_SCOPE_NAMESPACE: 1 + + # Exhausted resource is a namespace-level resource. + RESOURCE_EXHAUSTED_SCOPE_SYSTEM: 2 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :RESOURCE_EXHAUSTED_SCOPE_UNSPECIFIED | :RESOURCE_EXHAUSTED_SCOPE_NAMESPACE | :RESOURCE_EXHAUSTED_SCOPE_SYSTEM + + type strings = "RESOURCE_EXHAUSTED_SCOPE_UNSPECIFIED" | "RESOURCE_EXHAUSTED_SCOPE_NAMESPACE" | "RESOURCE_EXHAUSTED_SCOPE_SYSTEM" + + type numbers = 0 | 1 | 2 + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/api/enums/v1/namespace.rbs b/temporalio/sig/temporalio/api/enums/v1/namespace.rbs new file mode 100644 index 00000000..6dce4f42 --- /dev/null +++ b/temporalio/sig/temporalio/api/enums/v1/namespace.rbs @@ -0,0 +1,87 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/api/enums/v1/namespace.proto + +module Temporalio + module Api + module Enums + module V1 + module NamespaceState + + NAMESPACE_STATE_UNSPECIFIED: 0 + + NAMESPACE_STATE_REGISTERED: 1 + + NAMESPACE_STATE_DEPRECATED: 2 + + NAMESPACE_STATE_DELETED: 3 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :NAMESPACE_STATE_UNSPECIFIED | :NAMESPACE_STATE_REGISTERED | :NAMESPACE_STATE_DEPRECATED | :NAMESPACE_STATE_DELETED + + type strings = "NAMESPACE_STATE_UNSPECIFIED" | "NAMESPACE_STATE_REGISTERED" | "NAMESPACE_STATE_DEPRECATED" | "NAMESPACE_STATE_DELETED" + + type numbers = 0 | 1 | 2 | 3 + end + + module ArchivalState + + ARCHIVAL_STATE_UNSPECIFIED: 0 + + ARCHIVAL_STATE_DISABLED: 1 + + ARCHIVAL_STATE_ENABLED: 2 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :ARCHIVAL_STATE_UNSPECIFIED | :ARCHIVAL_STATE_DISABLED | :ARCHIVAL_STATE_ENABLED + + type strings = "ARCHIVAL_STATE_UNSPECIFIED" | "ARCHIVAL_STATE_DISABLED" | "ARCHIVAL_STATE_ENABLED" + + type numbers = 0 | 1 | 2 + end + + module ReplicationState + + REPLICATION_STATE_UNSPECIFIED: 0 + + REPLICATION_STATE_NORMAL: 1 + + REPLICATION_STATE_HANDOVER: 2 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :REPLICATION_STATE_UNSPECIFIED | :REPLICATION_STATE_NORMAL | :REPLICATION_STATE_HANDOVER + + type strings = "REPLICATION_STATE_UNSPECIFIED" | "REPLICATION_STATE_NORMAL" | "REPLICATION_STATE_HANDOVER" + + type numbers = 0 | 1 | 2 + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/api/enums/v1/nexus.rbs b/temporalio/sig/temporalio/api/enums/v1/nexus.rbs new file mode 100644 index 00000000..5ac70e2a --- /dev/null +++ b/temporalio/sig/temporalio/api/enums/v1/nexus.rbs @@ -0,0 +1,48 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/api/enums/v1/nexus.proto + +module Temporalio + module Api + module Enums + module V1 + # NexusHandlerErrorRetryBehavior allows nexus handlers to explicity set the retry behavior of a HandlerError. If not + # specified, retry behavior is determined from the error type. For example internal errors are not retryable by default + # unless specified otherwise. + module NexusHandlerErrorRetryBehavior + + NEXUS_HANDLER_ERROR_RETRY_BEHAVIOR_UNSPECIFIED: 0 + + # A handler error is explicitly marked as retryable. + NEXUS_HANDLER_ERROR_RETRY_BEHAVIOR_RETRYABLE: 1 + + # A handler error is explicitly marked as non-retryable. + NEXUS_HANDLER_ERROR_RETRY_BEHAVIOR_NON_RETRYABLE: 2 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :NEXUS_HANDLER_ERROR_RETRY_BEHAVIOR_UNSPECIFIED | :NEXUS_HANDLER_ERROR_RETRY_BEHAVIOR_RETRYABLE | :NEXUS_HANDLER_ERROR_RETRY_BEHAVIOR_NON_RETRYABLE + + type strings = "NEXUS_HANDLER_ERROR_RETRY_BEHAVIOR_UNSPECIFIED" | "NEXUS_HANDLER_ERROR_RETRY_BEHAVIOR_RETRYABLE" | "NEXUS_HANDLER_ERROR_RETRY_BEHAVIOR_NON_RETRYABLE" + + type numbers = 0 | 1 | 2 + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/api/enums/v1/query.rbs b/temporalio/sig/temporalio/api/enums/v1/query.rbs new file mode 100644 index 00000000..bc3a6a05 --- /dev/null +++ b/temporalio/sig/temporalio/api/enums/v1/query.rbs @@ -0,0 +1,69 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/api/enums/v1/query.proto + +module Temporalio + module Api + module Enums + module V1 + module QueryResultType + + QUERY_RESULT_TYPE_UNSPECIFIED: 0 + + QUERY_RESULT_TYPE_ANSWERED: 1 + + QUERY_RESULT_TYPE_FAILED: 2 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :QUERY_RESULT_TYPE_UNSPECIFIED | :QUERY_RESULT_TYPE_ANSWERED | :QUERY_RESULT_TYPE_FAILED + + type strings = "QUERY_RESULT_TYPE_UNSPECIFIED" | "QUERY_RESULT_TYPE_ANSWERED" | "QUERY_RESULT_TYPE_FAILED" + + type numbers = 0 | 1 | 2 + end + + module QueryRejectCondition + + QUERY_REJECT_CONDITION_UNSPECIFIED: 0 + + # None indicates that query should not be rejected. + QUERY_REJECT_CONDITION_NONE: 1 + + # NotOpen indicates that query should be rejected if workflow is not open. + QUERY_REJECT_CONDITION_NOT_OPEN: 2 + + # NotCompletedCleanly indicates that query should be rejected if workflow did not complete cleanly. + QUERY_REJECT_CONDITION_NOT_COMPLETED_CLEANLY: 3 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :QUERY_REJECT_CONDITION_UNSPECIFIED | :QUERY_REJECT_CONDITION_NONE | :QUERY_REJECT_CONDITION_NOT_OPEN | :QUERY_REJECT_CONDITION_NOT_COMPLETED_CLEANLY + + type strings = "QUERY_REJECT_CONDITION_UNSPECIFIED" | "QUERY_REJECT_CONDITION_NONE" | "QUERY_REJECT_CONDITION_NOT_OPEN" | "QUERY_REJECT_CONDITION_NOT_COMPLETED_CLEANLY" + + type numbers = 0 | 1 | 2 | 3 + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/api/enums/v1/reset.rbs b/temporalio/sig/temporalio/api/enums/v1/reset.rbs new file mode 100644 index 00000000..53dc4b98 --- /dev/null +++ b/temporalio/sig/temporalio/api/enums/v1/reset.rbs @@ -0,0 +1,106 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/api/enums/v1/reset.proto + +module Temporalio + module Api + module Enums + module V1 + # Event types to exclude when reapplying events beyond the reset point. + module ResetReapplyExcludeType + + RESET_REAPPLY_EXCLUDE_TYPE_UNSPECIFIED: 0 + + # Exclude signals when reapplying events beyond the reset point. + RESET_REAPPLY_EXCLUDE_TYPE_SIGNAL: 1 + + # Exclude updates when reapplying events beyond the reset point. + RESET_REAPPLY_EXCLUDE_TYPE_UPDATE: 2 + + # Exclude nexus events when reapplying events beyond the reset point. + RESET_REAPPLY_EXCLUDE_TYPE_NEXUS: 3 + + # Deprecated, unimplemented option. + # @deprecated + RESET_REAPPLY_EXCLUDE_TYPE_CANCEL_REQUEST: 4 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :RESET_REAPPLY_EXCLUDE_TYPE_UNSPECIFIED | :RESET_REAPPLY_EXCLUDE_TYPE_SIGNAL | :RESET_REAPPLY_EXCLUDE_TYPE_UPDATE | :RESET_REAPPLY_EXCLUDE_TYPE_NEXUS | :RESET_REAPPLY_EXCLUDE_TYPE_CANCEL_REQUEST + + type strings = "RESET_REAPPLY_EXCLUDE_TYPE_UNSPECIFIED" | "RESET_REAPPLY_EXCLUDE_TYPE_SIGNAL" | "RESET_REAPPLY_EXCLUDE_TYPE_UPDATE" | "RESET_REAPPLY_EXCLUDE_TYPE_NEXUS" | "RESET_REAPPLY_EXCLUDE_TYPE_CANCEL_REQUEST" + + type numbers = 0 | 1 | 2 | 3 | 4 + end + + # Deprecated: applications should use ResetReapplyExcludeType to specify + # exclusions from this set, and new event types should be added to ResetReapplyExcludeType + # instead of here. + module ResetReapplyType + + RESET_REAPPLY_TYPE_UNSPECIFIED: 0 + + # Signals are reapplied when workflow is reset. + RESET_REAPPLY_TYPE_SIGNAL: 1 + + # No events are reapplied when workflow is reset. + RESET_REAPPLY_TYPE_NONE: 2 + + # All eligible events are reapplied when workflow is reset. + RESET_REAPPLY_TYPE_ALL_ELIGIBLE: 3 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :RESET_REAPPLY_TYPE_UNSPECIFIED | :RESET_REAPPLY_TYPE_SIGNAL | :RESET_REAPPLY_TYPE_NONE | :RESET_REAPPLY_TYPE_ALL_ELIGIBLE + + type strings = "RESET_REAPPLY_TYPE_UNSPECIFIED" | "RESET_REAPPLY_TYPE_SIGNAL" | "RESET_REAPPLY_TYPE_NONE" | "RESET_REAPPLY_TYPE_ALL_ELIGIBLE" + + type numbers = 0 | 1 | 2 | 3 + end + + # Deprecated, see temporal.api.common.v1.ResetOptions. + module ResetType + + RESET_TYPE_UNSPECIFIED: 0 + + # Resets to event of the first workflow task completed, or if it does not exist, the event after task scheduled. + RESET_TYPE_FIRST_WORKFLOW_TASK: 1 + + # Resets to event of the last workflow task completed, or if it does not exist, the event after task scheduled. + RESET_TYPE_LAST_WORKFLOW_TASK: 2 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :RESET_TYPE_UNSPECIFIED | :RESET_TYPE_FIRST_WORKFLOW_TASK | :RESET_TYPE_LAST_WORKFLOW_TASK + + type strings = "RESET_TYPE_UNSPECIFIED" | "RESET_TYPE_FIRST_WORKFLOW_TASK" | "RESET_TYPE_LAST_WORKFLOW_TASK" + + type numbers = 0 | 1 | 2 + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/api/enums/v1/schedule.rbs b/temporalio/sig/temporalio/api/enums/v1/schedule.rbs new file mode 100644 index 00000000..816bd4f6 --- /dev/null +++ b/temporalio/sig/temporalio/api/enums/v1/schedule.rbs @@ -0,0 +1,68 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/api/enums/v1/schedule.proto + +module Temporalio + module Api + module Enums + module V1 + # ScheduleOverlapPolicy controls what happens when a workflow would be started + # by a schedule, and is already running. + module ScheduleOverlapPolicy + + SCHEDULE_OVERLAP_POLICY_UNSPECIFIED: 0 + + # SCHEDULE_OVERLAP_POLICY_SKIP (default) means don't start anything. When the + # workflow completes, the next scheduled event after that time will be considered. + SCHEDULE_OVERLAP_POLICY_SKIP: 1 + + # SCHEDULE_OVERLAP_POLICY_BUFFER_ONE means start the workflow again soon as the + # current one completes, but only buffer one start in this way. If another start is + # supposed to happen when the workflow is running, and one is already buffered, then + # only the first one will be started after the running workflow finishes. + SCHEDULE_OVERLAP_POLICY_BUFFER_ONE: 2 + + # SCHEDULE_OVERLAP_POLICY_BUFFER_ALL means buffer up any number of starts to all + # happen sequentially, immediately after the running workflow completes. + SCHEDULE_OVERLAP_POLICY_BUFFER_ALL: 3 + + # SCHEDULE_OVERLAP_POLICY_CANCEL_OTHER means that if there is another workflow + # running, cancel it, and start the new one after the old one completes cancellation. + SCHEDULE_OVERLAP_POLICY_CANCEL_OTHER: 4 + + # SCHEDULE_OVERLAP_POLICY_TERMINATE_OTHER means that if there is another workflow + # running, terminate it and start the new one immediately. + SCHEDULE_OVERLAP_POLICY_TERMINATE_OTHER: 5 + + # SCHEDULE_OVERLAP_POLICY_ALLOW_ALL means start any number of concurrent workflows. + # Note that with this policy, last completion result and last failure will not be + # available since workflows are not sequential. + SCHEDULE_OVERLAP_POLICY_ALLOW_ALL: 6 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :SCHEDULE_OVERLAP_POLICY_UNSPECIFIED | :SCHEDULE_OVERLAP_POLICY_SKIP | :SCHEDULE_OVERLAP_POLICY_BUFFER_ONE | :SCHEDULE_OVERLAP_POLICY_BUFFER_ALL | :SCHEDULE_OVERLAP_POLICY_CANCEL_OTHER | :SCHEDULE_OVERLAP_POLICY_TERMINATE_OTHER | :SCHEDULE_OVERLAP_POLICY_ALLOW_ALL + + type strings = "SCHEDULE_OVERLAP_POLICY_UNSPECIFIED" | "SCHEDULE_OVERLAP_POLICY_SKIP" | "SCHEDULE_OVERLAP_POLICY_BUFFER_ONE" | "SCHEDULE_OVERLAP_POLICY_BUFFER_ALL" | "SCHEDULE_OVERLAP_POLICY_CANCEL_OTHER" | "SCHEDULE_OVERLAP_POLICY_TERMINATE_OTHER" | "SCHEDULE_OVERLAP_POLICY_ALLOW_ALL" + + type numbers = 0 | 1 | 2 | 3 | 4 | 5 | 6 + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/api/enums/v1/task_queue.rbs b/temporalio/sig/temporalio/api/enums/v1/task_queue.rbs new file mode 100644 index 00000000..5949fbda --- /dev/null +++ b/temporalio/sig/temporalio/api/enums/v1/task_queue.rbs @@ -0,0 +1,232 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/api/enums/v1/task_queue.proto + +module Temporalio + module Api + module Enums + module V1 + module TaskQueueKind + + # Tasks from any non workflow task may be unspecified. + # Task queue kind is used to differentiate whether a workflow task queue is sticky or + # normal. If a task is not a workflow task, Task queue kind will sometimes be + # unspecified. + TASK_QUEUE_KIND_UNSPECIFIED: 0 + + # Tasks from a normal workflow task queue always include complete workflow history + # The task queue specified by the user is always a normal task queue. There can be as many + # workers as desired for a single normal task queue. All those workers may pick up tasks from + # that queue. + TASK_QUEUE_KIND_NORMAL: 1 + + # A sticky queue only includes new history since the last workflow task, and they are + # per-worker. + # Sticky queues are created dynamically by each worker during their start up. They only exist + # for the lifetime of the worker process. Tasks in a sticky task queue are only available to + # the worker that created the sticky queue. + # Sticky queues are only for workflow tasks. There are no sticky task queues for activities. + TASK_QUEUE_KIND_STICKY: 2 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :TASK_QUEUE_KIND_UNSPECIFIED | :TASK_QUEUE_KIND_NORMAL | :TASK_QUEUE_KIND_STICKY + + type strings = "TASK_QUEUE_KIND_UNSPECIFIED" | "TASK_QUEUE_KIND_NORMAL" | "TASK_QUEUE_KIND_STICKY" + + type numbers = 0 | 1 | 2 + end + + module TaskQueueType + + TASK_QUEUE_TYPE_UNSPECIFIED: 0 + + # Workflow type of task queue. + TASK_QUEUE_TYPE_WORKFLOW: 1 + + # Activity type of task queue. + TASK_QUEUE_TYPE_ACTIVITY: 2 + + # Task queue type for dispatching Nexus requests. + TASK_QUEUE_TYPE_NEXUS: 3 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :TASK_QUEUE_TYPE_UNSPECIFIED | :TASK_QUEUE_TYPE_WORKFLOW | :TASK_QUEUE_TYPE_ACTIVITY | :TASK_QUEUE_TYPE_NEXUS + + type strings = "TASK_QUEUE_TYPE_UNSPECIFIED" | "TASK_QUEUE_TYPE_WORKFLOW" | "TASK_QUEUE_TYPE_ACTIVITY" | "TASK_QUEUE_TYPE_NEXUS" + + type numbers = 0 | 1 | 2 | 3 + end + + # Specifies which category of tasks may reach a worker on a versioned task queue. + # Used both in a reachability query and its response. + # Deprecated. + module TaskReachability + + TASK_REACHABILITY_UNSPECIFIED: 0 + + # There's a possiblity for a worker to receive new workflow tasks. Workers should *not* be retired. + TASK_REACHABILITY_NEW_WORKFLOWS: 1 + + # There's a possiblity for a worker to receive existing workflow and activity tasks from existing workflows. Workers + # should *not* be retired. + # This enum value does not distinguish between open and closed workflows. + TASK_REACHABILITY_EXISTING_WORKFLOWS: 2 + + # There's a possiblity for a worker to receive existing workflow and activity tasks from open workflows. Workers + # should *not* be retired. + TASK_REACHABILITY_OPEN_WORKFLOWS: 3 + + # There's a possiblity for a worker to receive existing workflow tasks from closed workflows. Workers may be + # retired dependending on application requirements. For example, if there's no need to query closed workflows. + TASK_REACHABILITY_CLOSED_WORKFLOWS: 4 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :TASK_REACHABILITY_UNSPECIFIED | :TASK_REACHABILITY_NEW_WORKFLOWS | :TASK_REACHABILITY_EXISTING_WORKFLOWS | :TASK_REACHABILITY_OPEN_WORKFLOWS | :TASK_REACHABILITY_CLOSED_WORKFLOWS + + type strings = "TASK_REACHABILITY_UNSPECIFIED" | "TASK_REACHABILITY_NEW_WORKFLOWS" | "TASK_REACHABILITY_EXISTING_WORKFLOWS" | "TASK_REACHABILITY_OPEN_WORKFLOWS" | "TASK_REACHABILITY_CLOSED_WORKFLOWS" + + type numbers = 0 | 1 | 2 | 3 | 4 + end + + # Specifies which category of tasks may reach a versioned worker of a certain Build ID. + # Task Reachability is eventually consistent; there may be a delay (up to few minutes) 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. + module BuildIdTaskReachability + + # Task reachability is not reported + BUILD_ID_TASK_REACHABILITY_UNSPECIFIED: 0 + + # Build ID may be used by new workflows or activities (base on versioning rules), or there MAY + # be open workflows or backlogged activities assigned to it. + BUILD_ID_TASK_REACHABILITY_REACHABLE: 1 + + # Build ID does not have open workflows and is not reachable by new workflows, + # but MAY have closed workflows within the namespace retention period. + # Not applicable to activity-only task queues. + BUILD_ID_TASK_REACHABILITY_CLOSED_WORKFLOWS_ONLY: 2 + + # Build ID is not used for new executions, nor it has been used by any existing execution + # within the retention period. + BUILD_ID_TASK_REACHABILITY_UNREACHABLE: 3 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :BUILD_ID_TASK_REACHABILITY_UNSPECIFIED | :BUILD_ID_TASK_REACHABILITY_REACHABLE | :BUILD_ID_TASK_REACHABILITY_CLOSED_WORKFLOWS_ONLY | :BUILD_ID_TASK_REACHABILITY_UNREACHABLE + + type strings = "BUILD_ID_TASK_REACHABILITY_UNSPECIFIED" | "BUILD_ID_TASK_REACHABILITY_REACHABLE" | "BUILD_ID_TASK_REACHABILITY_CLOSED_WORKFLOWS_ONLY" | "BUILD_ID_TASK_REACHABILITY_UNREACHABLE" + + type numbers = 0 | 1 | 2 | 3 + end + + module DescribeTaskQueueMode + + # Unspecified means legacy behavior. + DESCRIBE_TASK_QUEUE_MODE_UNSPECIFIED: 0 + + # Enhanced mode reports aggregated results for all partitions, supports Build IDs, and reports richer info. + DESCRIBE_TASK_QUEUE_MODE_ENHANCED: 1 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :DESCRIBE_TASK_QUEUE_MODE_UNSPECIFIED | :DESCRIBE_TASK_QUEUE_MODE_ENHANCED + + type strings = "DESCRIBE_TASK_QUEUE_MODE_UNSPECIFIED" | "DESCRIBE_TASK_QUEUE_MODE_ENHANCED" + + type numbers = 0 | 1 + end + + # Source for the effective rate limit. + module RateLimitSource + + RATE_LIMIT_SOURCE_UNSPECIFIED: 0 + + # The value was set by the API. + RATE_LIMIT_SOURCE_API: 1 + + # The value was set by a worker. + RATE_LIMIT_SOURCE_WORKER: 2 + + # The value was set as the system default. + RATE_LIMIT_SOURCE_SYSTEM: 3 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :RATE_LIMIT_SOURCE_UNSPECIFIED | :RATE_LIMIT_SOURCE_API | :RATE_LIMIT_SOURCE_WORKER | :RATE_LIMIT_SOURCE_SYSTEM + + type strings = "RATE_LIMIT_SOURCE_UNSPECIFIED" | "RATE_LIMIT_SOURCE_API" | "RATE_LIMIT_SOURCE_WORKER" | "RATE_LIMIT_SOURCE_SYSTEM" + + type numbers = 0 | 1 | 2 | 3 + end + + # Indicates whether a change to the Routing Config has been + # propagated to all relevant Task Queues and their partitions. + module RoutingConfigUpdateState + + ROUTING_CONFIG_UPDATE_STATE_UNSPECIFIED: 0 + + # Update to the RoutingConfig is currently in progress. + ROUTING_CONFIG_UPDATE_STATE_IN_PROGRESS: 1 + + # Update to the RoutingConfig has completed successfully. + ROUTING_CONFIG_UPDATE_STATE_COMPLETED: 2 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :ROUTING_CONFIG_UPDATE_STATE_UNSPECIFIED | :ROUTING_CONFIG_UPDATE_STATE_IN_PROGRESS | :ROUTING_CONFIG_UPDATE_STATE_COMPLETED + + type strings = "ROUTING_CONFIG_UPDATE_STATE_UNSPECIFIED" | "ROUTING_CONFIG_UPDATE_STATE_IN_PROGRESS" | "ROUTING_CONFIG_UPDATE_STATE_COMPLETED" + + type numbers = 0 | 1 | 2 + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/api/enums/v1/update.rbs b/temporalio/sig/temporalio/api/enums/v1/update.rbs new file mode 100644 index 00000000..805edc1d --- /dev/null +++ b/temporalio/sig/temporalio/api/enums/v1/update.rbs @@ -0,0 +1,87 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/api/enums/v1/update.proto + +module Temporalio + module Api + module Enums + module V1 + # UpdateWorkflowExecutionLifecycleStage is specified by clients invoking + # Workflow Updates and used to indicate to the server how long the + # client wishes to wait for a return value from the API. If any value other + # than UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_COMPLETED is sent by the + # client then the API will complete before the Update is finished and will + # return a handle to the running Update so that it can later be polled for + # completion. + # If specified stage wasn't reached before server timeout, server returns + # actual stage reached. + module UpdateWorkflowExecutionLifecycleStage + + # An unspecified value for this enum. + UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_UNSPECIFIED: 0 + + # The API call will not return until the Update request has been admitted + # by the server - it may be the case that due to a considerations like load + # or resource limits that an Update is made to wait before the server will + # indicate that it has been received and will be processed. This value + # does not wait for any sort of acknowledgement from a worker. + UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ADMITTED: 1 + + # The API call will not return until the Update has passed validation on a worker. + UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ACCEPTED: 2 + + # The API call will not return until the Update has executed to completion + # on a worker and has either been rejected or returned a value or an error. + UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_COMPLETED: 3 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_UNSPECIFIED | :UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ADMITTED | :UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ACCEPTED | :UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_COMPLETED + + type strings = "UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_UNSPECIFIED" | "UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ADMITTED" | "UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ACCEPTED" | "UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_COMPLETED" + + type numbers = 0 | 1 | 2 | 3 + end + + # Records why a WorkflowExecutionUpdateAdmittedEvent was written to history. + # Note that not all admitted Updates result in this event. + module UpdateAdmittedEventOrigin + + UPDATE_ADMITTED_EVENT_ORIGIN_UNSPECIFIED: 0 + + # The UpdateAdmitted event was created when reapplying events during reset + # or replication. I.e. an accepted Update on one branch of Workflow history + # was converted into an admitted Update on a different branch. + UPDATE_ADMITTED_EVENT_ORIGIN_REAPPLY: 1 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :UPDATE_ADMITTED_EVENT_ORIGIN_UNSPECIFIED | :UPDATE_ADMITTED_EVENT_ORIGIN_REAPPLY + + type strings = "UPDATE_ADMITTED_EVENT_ORIGIN_UNSPECIFIED" | "UPDATE_ADMITTED_EVENT_ORIGIN_REAPPLY" + + type numbers = 0 | 1 + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/api/enums/v1/workflow.rbs b/temporalio/sig/temporalio/api/enums/v1/workflow.rbs new file mode 100644 index 00000000..93df754f --- /dev/null +++ b/temporalio/sig/temporalio/api/enums/v1/workflow.rbs @@ -0,0 +1,423 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/api/enums/v1/workflow.proto + +module Temporalio + module Api + module Enums + module V1 + # Defines whether to allow re-using a workflow id from a previously *closed* workflow. + # If the request is denied, the server returns a `WorkflowExecutionAlreadyStartedFailure` error. + # See `WorkflowIdConflictPolicy` for handling workflow id duplication with a *running* workflow. + module WorkflowIdReusePolicy + + WORKFLOW_ID_REUSE_POLICY_UNSPECIFIED: 0 + + # Allow starting a workflow execution using the same workflow id. + WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE: 1 + + # Allow starting a workflow execution using the same workflow id, only when the last + # execution's final state is one of [terminated, cancelled, timed out, failed]. + WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY: 2 + + # Do not permit re-use of the workflow id for this workflow. Future start workflow requests + # could potentially change the policy, allowing re-use of the workflow id. + WORKFLOW_ID_REUSE_POLICY_REJECT_DUPLICATE: 3 + + # Terminate the current Workflow if one is already running; otherwise allow reusing the + # Workflow ID. When using this option, `WorkflowIdConflictPolicy` must be left unspecified. + # Deprecated. Instead, set `WorkflowIdReusePolicy` to `ALLOW_DUPLICATE` and + # `WorkflowIdConflictPolicy` to `TERMINATE_EXISTING`. Note that `WorkflowIdConflictPolicy` + # requires Temporal Server v1.24.0 or later. + # @deprecated + WORKFLOW_ID_REUSE_POLICY_TERMINATE_IF_RUNNING: 4 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :WORKFLOW_ID_REUSE_POLICY_UNSPECIFIED | :WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE | :WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY | :WORKFLOW_ID_REUSE_POLICY_REJECT_DUPLICATE | :WORKFLOW_ID_REUSE_POLICY_TERMINATE_IF_RUNNING + + type strings = "WORKFLOW_ID_REUSE_POLICY_UNSPECIFIED" | "WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE" | "WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY" | "WORKFLOW_ID_REUSE_POLICY_REJECT_DUPLICATE" | "WORKFLOW_ID_REUSE_POLICY_TERMINATE_IF_RUNNING" + + type numbers = 0 | 1 | 2 | 3 | 4 + end + + # Defines what to do when trying to start a workflow with the same workflow id as a *running* workflow. + # Note that it is *never* valid to have two actively running instances of the same workflow id. + # See `WorkflowIdReusePolicy` for handling workflow id duplication with a *closed* workflow. + module WorkflowIdConflictPolicy + + WORKFLOW_ID_CONFLICT_POLICY_UNSPECIFIED: 0 + + # Don't start a new workflow; instead return `WorkflowExecutionAlreadyStartedFailure`. + WORKFLOW_ID_CONFLICT_POLICY_FAIL: 1 + + # Don't start a new workflow; instead return a workflow handle for the running workflow. + WORKFLOW_ID_CONFLICT_POLICY_USE_EXISTING: 2 + + # Terminate the running workflow before starting a new one. + WORKFLOW_ID_CONFLICT_POLICY_TERMINATE_EXISTING: 3 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :WORKFLOW_ID_CONFLICT_POLICY_UNSPECIFIED | :WORKFLOW_ID_CONFLICT_POLICY_FAIL | :WORKFLOW_ID_CONFLICT_POLICY_USE_EXISTING | :WORKFLOW_ID_CONFLICT_POLICY_TERMINATE_EXISTING + + type strings = "WORKFLOW_ID_CONFLICT_POLICY_UNSPECIFIED" | "WORKFLOW_ID_CONFLICT_POLICY_FAIL" | "WORKFLOW_ID_CONFLICT_POLICY_USE_EXISTING" | "WORKFLOW_ID_CONFLICT_POLICY_TERMINATE_EXISTING" + + type numbers = 0 | 1 | 2 | 3 + end + + # Defines how child workflows will react to their parent completing + module ParentClosePolicy + + PARENT_CLOSE_POLICY_UNSPECIFIED: 0 + + # The child workflow will also terminate + PARENT_CLOSE_POLICY_TERMINATE: 1 + + # The child workflow will do nothing + PARENT_CLOSE_POLICY_ABANDON: 2 + + # Cancellation will be requested of the child workflow + PARENT_CLOSE_POLICY_REQUEST_CANCEL: 3 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :PARENT_CLOSE_POLICY_UNSPECIFIED | :PARENT_CLOSE_POLICY_TERMINATE | :PARENT_CLOSE_POLICY_ABANDON | :PARENT_CLOSE_POLICY_REQUEST_CANCEL + + type strings = "PARENT_CLOSE_POLICY_UNSPECIFIED" | "PARENT_CLOSE_POLICY_TERMINATE" | "PARENT_CLOSE_POLICY_ABANDON" | "PARENT_CLOSE_POLICY_REQUEST_CANCEL" + + type numbers = 0 | 1 | 2 | 3 + end + + module ContinueAsNewInitiator + + CONTINUE_AS_NEW_INITIATOR_UNSPECIFIED: 0 + + # The workflow itself requested to continue as new + CONTINUE_AS_NEW_INITIATOR_WORKFLOW: 1 + + # The workflow continued as new because it is retrying + CONTINUE_AS_NEW_INITIATOR_RETRY: 2 + + # The workflow continued as new because cron has triggered a new execution + CONTINUE_AS_NEW_INITIATOR_CRON_SCHEDULE: 3 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :CONTINUE_AS_NEW_INITIATOR_UNSPECIFIED | :CONTINUE_AS_NEW_INITIATOR_WORKFLOW | :CONTINUE_AS_NEW_INITIATOR_RETRY | :CONTINUE_AS_NEW_INITIATOR_CRON_SCHEDULE + + type strings = "CONTINUE_AS_NEW_INITIATOR_UNSPECIFIED" | "CONTINUE_AS_NEW_INITIATOR_WORKFLOW" | "CONTINUE_AS_NEW_INITIATOR_RETRY" | "CONTINUE_AS_NEW_INITIATOR_CRON_SCHEDULE" + + type numbers = 0 | 1 | 2 | 3 + end + + # (-- api-linter: core::0216::synonyms=disabled + # aip.dev/not-precedent: There is WorkflowExecutionState already in another package. --) + module WorkflowExecutionStatus + + WORKFLOW_EXECUTION_STATUS_UNSPECIFIED: 0 + + # Value 1 is hardcoded in SQL persistence. + WORKFLOW_EXECUTION_STATUS_RUNNING: 1 + + WORKFLOW_EXECUTION_STATUS_COMPLETED: 2 + + WORKFLOW_EXECUTION_STATUS_FAILED: 3 + + WORKFLOW_EXECUTION_STATUS_CANCELED: 4 + + WORKFLOW_EXECUTION_STATUS_TERMINATED: 5 + + WORKFLOW_EXECUTION_STATUS_CONTINUED_AS_NEW: 6 + + WORKFLOW_EXECUTION_STATUS_TIMED_OUT: 7 + + WORKFLOW_EXECUTION_STATUS_PAUSED: 8 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :WORKFLOW_EXECUTION_STATUS_UNSPECIFIED | :WORKFLOW_EXECUTION_STATUS_RUNNING | :WORKFLOW_EXECUTION_STATUS_COMPLETED | :WORKFLOW_EXECUTION_STATUS_FAILED | :WORKFLOW_EXECUTION_STATUS_CANCELED | :WORKFLOW_EXECUTION_STATUS_TERMINATED | :WORKFLOW_EXECUTION_STATUS_CONTINUED_AS_NEW | :WORKFLOW_EXECUTION_STATUS_TIMED_OUT | :WORKFLOW_EXECUTION_STATUS_PAUSED + + type strings = "WORKFLOW_EXECUTION_STATUS_UNSPECIFIED" | "WORKFLOW_EXECUTION_STATUS_RUNNING" | "WORKFLOW_EXECUTION_STATUS_COMPLETED" | "WORKFLOW_EXECUTION_STATUS_FAILED" | "WORKFLOW_EXECUTION_STATUS_CANCELED" | "WORKFLOW_EXECUTION_STATUS_TERMINATED" | "WORKFLOW_EXECUTION_STATUS_CONTINUED_AS_NEW" | "WORKFLOW_EXECUTION_STATUS_TIMED_OUT" | "WORKFLOW_EXECUTION_STATUS_PAUSED" + + type numbers = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 + end + + module PendingActivityState + + PENDING_ACTIVITY_STATE_UNSPECIFIED: 0 + + PENDING_ACTIVITY_STATE_SCHEDULED: 1 + + PENDING_ACTIVITY_STATE_STARTED: 2 + + PENDING_ACTIVITY_STATE_CANCEL_REQUESTED: 3 + + # PAUSED means activity is paused on the server, and is not running in the worker + PENDING_ACTIVITY_STATE_PAUSED: 4 + + # PAUSE_REQUESTED means activity is currently running on the worker, but paused on the server + PENDING_ACTIVITY_STATE_PAUSE_REQUESTED: 5 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :PENDING_ACTIVITY_STATE_UNSPECIFIED | :PENDING_ACTIVITY_STATE_SCHEDULED | :PENDING_ACTIVITY_STATE_STARTED | :PENDING_ACTIVITY_STATE_CANCEL_REQUESTED | :PENDING_ACTIVITY_STATE_PAUSED | :PENDING_ACTIVITY_STATE_PAUSE_REQUESTED + + type strings = "PENDING_ACTIVITY_STATE_UNSPECIFIED" | "PENDING_ACTIVITY_STATE_SCHEDULED" | "PENDING_ACTIVITY_STATE_STARTED" | "PENDING_ACTIVITY_STATE_CANCEL_REQUESTED" | "PENDING_ACTIVITY_STATE_PAUSED" | "PENDING_ACTIVITY_STATE_PAUSE_REQUESTED" + + type numbers = 0 | 1 | 2 | 3 | 4 | 5 + end + + module PendingWorkflowTaskState + + PENDING_WORKFLOW_TASK_STATE_UNSPECIFIED: 0 + + PENDING_WORKFLOW_TASK_STATE_SCHEDULED: 1 + + PENDING_WORKFLOW_TASK_STATE_STARTED: 2 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :PENDING_WORKFLOW_TASK_STATE_UNSPECIFIED | :PENDING_WORKFLOW_TASK_STATE_SCHEDULED | :PENDING_WORKFLOW_TASK_STATE_STARTED + + type strings = "PENDING_WORKFLOW_TASK_STATE_UNSPECIFIED" | "PENDING_WORKFLOW_TASK_STATE_SCHEDULED" | "PENDING_WORKFLOW_TASK_STATE_STARTED" + + type numbers = 0 | 1 | 2 + end + + module HistoryEventFilterType + + HISTORY_EVENT_FILTER_TYPE_UNSPECIFIED: 0 + + HISTORY_EVENT_FILTER_TYPE_ALL_EVENT: 1 + + HISTORY_EVENT_FILTER_TYPE_CLOSE_EVENT: 2 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :HISTORY_EVENT_FILTER_TYPE_UNSPECIFIED | :HISTORY_EVENT_FILTER_TYPE_ALL_EVENT | :HISTORY_EVENT_FILTER_TYPE_CLOSE_EVENT + + type strings = "HISTORY_EVENT_FILTER_TYPE_UNSPECIFIED" | "HISTORY_EVENT_FILTER_TYPE_ALL_EVENT" | "HISTORY_EVENT_FILTER_TYPE_CLOSE_EVENT" + + type numbers = 0 | 1 | 2 + end + + module RetryState + + RETRY_STATE_UNSPECIFIED: 0 + + RETRY_STATE_IN_PROGRESS: 1 + + RETRY_STATE_NON_RETRYABLE_FAILURE: 2 + + RETRY_STATE_TIMEOUT: 3 + + RETRY_STATE_MAXIMUM_ATTEMPTS_REACHED: 4 + + RETRY_STATE_RETRY_POLICY_NOT_SET: 5 + + RETRY_STATE_INTERNAL_SERVER_ERROR: 6 + + RETRY_STATE_CANCEL_REQUESTED: 7 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :RETRY_STATE_UNSPECIFIED | :RETRY_STATE_IN_PROGRESS | :RETRY_STATE_NON_RETRYABLE_FAILURE | :RETRY_STATE_TIMEOUT | :RETRY_STATE_MAXIMUM_ATTEMPTS_REACHED | :RETRY_STATE_RETRY_POLICY_NOT_SET | :RETRY_STATE_INTERNAL_SERVER_ERROR | :RETRY_STATE_CANCEL_REQUESTED + + type strings = "RETRY_STATE_UNSPECIFIED" | "RETRY_STATE_IN_PROGRESS" | "RETRY_STATE_NON_RETRYABLE_FAILURE" | "RETRY_STATE_TIMEOUT" | "RETRY_STATE_MAXIMUM_ATTEMPTS_REACHED" | "RETRY_STATE_RETRY_POLICY_NOT_SET" | "RETRY_STATE_INTERNAL_SERVER_ERROR" | "RETRY_STATE_CANCEL_REQUESTED" + + type numbers = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 + end + + module TimeoutType + + TIMEOUT_TYPE_UNSPECIFIED: 0 + + TIMEOUT_TYPE_START_TO_CLOSE: 1 + + TIMEOUT_TYPE_SCHEDULE_TO_START: 2 + + TIMEOUT_TYPE_SCHEDULE_TO_CLOSE: 3 + + TIMEOUT_TYPE_HEARTBEAT: 4 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :TIMEOUT_TYPE_UNSPECIFIED | :TIMEOUT_TYPE_START_TO_CLOSE | :TIMEOUT_TYPE_SCHEDULE_TO_START | :TIMEOUT_TYPE_SCHEDULE_TO_CLOSE | :TIMEOUT_TYPE_HEARTBEAT + + type strings = "TIMEOUT_TYPE_UNSPECIFIED" | "TIMEOUT_TYPE_START_TO_CLOSE" | "TIMEOUT_TYPE_SCHEDULE_TO_START" | "TIMEOUT_TYPE_SCHEDULE_TO_CLOSE" | "TIMEOUT_TYPE_HEARTBEAT" + + type numbers = 0 | 1 | 2 | 3 | 4 + end + + # Versioning Behavior specifies if and how a workflow execution moves between Worker Deployment + # Versions. The Versioning Behavior of a workflow execution is typically specified by the worker + # who completes the first task of the execution, but is also overridable manually for new and + # existing workflows (see VersioningOverride). + # Experimental. Worker Deployments are experimental and might significantly change in the future. + module VersioningBehavior + + # Workflow execution does not have a Versioning Behavior and is called Unversioned. This is the + # legacy behavior. An Unversioned workflow's task can go to any Unversioned worker (see + # `WorkerVersioningMode`.) + # User needs to use Patching to keep the new code compatible with prior versions when dealing + # with Unversioned workflows. + VERSIONING_BEHAVIOR_UNSPECIFIED: 0 + + # Workflow will start on its Target Version and then will be pinned to that same Deployment + # Version until completion (the Version that this Workflow is pinned to is specified in + # `versioning_info.version` and is the Pinned Version of the Workflow). + # The workflow's Target Version is the Current Version of its Task Queue, or, if the + # Task Queue has a Ramping Version with non-zero Ramp Percentage `P`, the workflow's Target + # Version has a P% chance of being the Ramping Version. Whether a workflow falls into the + # Ramping group depends on its Workflow ID and and the Ramp Percentage. + # This behavior eliminates most of compatibility concerns users face when changing their code. + # Patching is not needed when pinned workflows code change. + # Can be overridden explicitly via `UpdateWorkflowExecutionOptions` API to move the + # execution to another Deployment Version. + # Activities of `PINNED` workflows are sent to the same Deployment Version. Exception to this + # would be when the activity Task Queue workers are not present in the workflow's Deployment + # Version, in which case the activity will be sent to the Current Deployment Version of its own + # task queue. + VERSIONING_BEHAVIOR_PINNED: 1 + + # Workflow will automatically move to its Target Version when the next workflow task is dispatched. + # The workflow's Target Version is the Current Version of its Task Queue, or, if the + # Task Queue has a Ramping Version with non-zero Ramp Percentage `P`, the workflow's Target + # Version has a P% chance of being the Ramping Version. Whether a workflow falls into the + # Ramping group depends on its Workflow ID and and the Ramp Percentage. + # AutoUpgrade behavior is suitable for long-running workflows as it allows them to move to the + # latest Deployment Version, but the user still needs to use Patching to keep the new code + # compatible with prior versions for changed workflow types. + # Activities of `AUTO_UPGRADE` workflows are sent to the Deployment Version of the workflow + # execution (as specified in versioning_info.version based on the last completed + # workflow task). Exception to this would be when the activity Task Queue workers are not + # present in the workflow's Deployment Version, in which case, the activity will be sent to a + # different Deployment Version according to the Current or Ramping Deployment Version of its own + # Task Queue. + # Workflows stuck on a backlogged activity will still auto-upgrade if their Target Version + # changes, without having to wait for the backlogged activity to complete on the old Version. + VERSIONING_BEHAVIOR_AUTO_UPGRADE: 2 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :VERSIONING_BEHAVIOR_UNSPECIFIED | :VERSIONING_BEHAVIOR_PINNED | :VERSIONING_BEHAVIOR_AUTO_UPGRADE + + type strings = "VERSIONING_BEHAVIOR_UNSPECIFIED" | "VERSIONING_BEHAVIOR_PINNED" | "VERSIONING_BEHAVIOR_AUTO_UPGRADE" + + type numbers = 0 | 1 | 2 + end + + # Experimental. Defines the versioning behavior to be used by the first task of a new workflow run in a continue-as-new chain. + module ContinueAsNewVersioningBehavior + + CONTINUE_AS_NEW_VERSIONING_BEHAVIOR_UNSPECIFIED: 0 + + # Start the new run with AutoUpgrade behavior. Use the Target Version of the workflow's task queue at + # start-time, as AutoUpgrade workflows do. After the first workflow task completes, use whatever + # Versioning Behavior the workflow is annotated with in the workflow code. + # Note that if the previous workflow had a Pinned override, that override will be inherited by the + # new workflow run regardless of the ContinueAsNewVersioningBehavior specified in the continue-as-new + # command. If a Pinned override is inherited by the new run, and the new run starts with AutoUpgrade + # behavior, the base version of the new run will be the Target Version as described above, but the + # effective version will be whatever is specified by the Versioning Override until the override is removed. + CONTINUE_AS_NEW_VERSIONING_BEHAVIOR_AUTO_UPGRADE: 1 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :CONTINUE_AS_NEW_VERSIONING_BEHAVIOR_UNSPECIFIED | :CONTINUE_AS_NEW_VERSIONING_BEHAVIOR_AUTO_UPGRADE + + type strings = "CONTINUE_AS_NEW_VERSIONING_BEHAVIOR_UNSPECIFIED" | "CONTINUE_AS_NEW_VERSIONING_BEHAVIOR_AUTO_UPGRADE" + + type numbers = 0 | 1 + end + + # SuggestContinueAsNewReason specifies why SuggestContinueAsNew is true. + module SuggestContinueAsNewReason + + SUGGEST_CONTINUE_AS_NEW_REASON_UNSPECIFIED: 0 + + # Workflow History size is getting too large. + SUGGEST_CONTINUE_AS_NEW_REASON_HISTORY_SIZE_TOO_LARGE: 1 + + # Workflow History event count is getting too large. + SUGGEST_CONTINUE_AS_NEW_REASON_TOO_MANY_HISTORY_EVENTS: 2 + + # Workflow's count of completed plus in-flight updates is too large. + SUGGEST_CONTINUE_AS_NEW_REASON_TOO_MANY_UPDATES: 3 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :SUGGEST_CONTINUE_AS_NEW_REASON_UNSPECIFIED | :SUGGEST_CONTINUE_AS_NEW_REASON_HISTORY_SIZE_TOO_LARGE | :SUGGEST_CONTINUE_AS_NEW_REASON_TOO_MANY_HISTORY_EVENTS | :SUGGEST_CONTINUE_AS_NEW_REASON_TOO_MANY_UPDATES + + type strings = "SUGGEST_CONTINUE_AS_NEW_REASON_UNSPECIFIED" | "SUGGEST_CONTINUE_AS_NEW_REASON_HISTORY_SIZE_TOO_LARGE" | "SUGGEST_CONTINUE_AS_NEW_REASON_TOO_MANY_HISTORY_EVENTS" | "SUGGEST_CONTINUE_AS_NEW_REASON_TOO_MANY_UPDATES" + + type numbers = 0 | 1 | 2 | 3 + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/api/errordetails/v1/message.rbs b/temporalio/sig/temporalio/api/errordetails/v1/message.rbs new file mode 100644 index 00000000..15514b98 --- /dev/null +++ b/temporalio/sig/temporalio/api/errordetails/v1/message.rbs @@ -0,0 +1,501 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/api/errordetails/v1/message.proto + +module Temporalio + module Api + module ErrorDetails + module V1 + class NotFoundFailure < ::Google::Protobuf::AbstractMessage + + attr_reader current_cluster(): ::String + attr_writer current_cluster(): ::String | ::Symbol + def clear_current_cluster: () -> void + + attr_reader active_cluster(): ::String + attr_writer active_cluster(): ::String | ::Symbol + def clear_active_cluster: () -> void + + type init_map = { + current_cluster: (::String | ::Symbol)?, + "current_cluster" => (::String | ::Symbol)?, + active_cluster: (::String | ::Symbol)?, + "active_cluster" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("current_cluster" name) -> ::String + | ("active_cluster" name) -> ::String + + def []=: + ("current_cluster" name, (::String | ::Symbol) value) -> void + | ("active_cluster" name, (::String | ::Symbol) value) -> void + end + + class WorkflowExecutionAlreadyStartedFailure < ::Google::Protobuf::AbstractMessage + + attr_reader start_request_id(): ::String + attr_writer start_request_id(): ::String | ::Symbol + def clear_start_request_id: () -> void + + attr_reader run_id(): ::String + attr_writer run_id(): ::String | ::Symbol + def clear_run_id: () -> void + + type init_map = { + start_request_id: (::String | ::Symbol)?, + "start_request_id" => (::String | ::Symbol)?, + run_id: (::String | ::Symbol)?, + "run_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("start_request_id" name) -> ::String + | ("run_id" name) -> ::String + + def []=: + ("start_request_id" name, (::String | ::Symbol) value) -> void + | ("run_id" name, (::String | ::Symbol) value) -> void + end + + class NamespaceNotActiveFailure < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_reader current_cluster(): ::String + attr_writer current_cluster(): ::String | ::Symbol + def clear_current_cluster: () -> void + + attr_reader active_cluster(): ::String + attr_writer active_cluster(): ::String | ::Symbol + def clear_active_cluster: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + current_cluster: (::String | ::Symbol)?, + "current_cluster" => (::String | ::Symbol)?, + active_cluster: (::String | ::Symbol)?, + "active_cluster" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("current_cluster" name) -> ::String + | ("active_cluster" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("current_cluster" name, (::String | ::Symbol) value) -> void + | ("active_cluster" name, (::String | ::Symbol) value) -> void + end + + # NamespaceUnavailableFailure is returned by the service when a request addresses a namespace that is unavailable. For + # example, when a namespace is in the process of failing over between clusters. + # This is a transient error that should be automatically retried by clients. + class NamespaceUnavailableFailure < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + end + + class NamespaceInvalidStateFailure < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # Current state of the requested namespace. + attr_reader state(): ::Temporalio::Api::Enums::V1::NamespaceState::names | ::Integer + attr_writer state(): ::Temporalio::Api::Enums::V1::NamespaceState::names | ::Temporalio::Api::Enums::V1::NamespaceState::strings | ::Integer | ::Float + attr_reader state_const(): ::Integer + def clear_state: () -> void + + # Allowed namespace states for requested operation. + # For example NAMESPACE_STATE_DELETED is forbidden for most operations but allowed for DescribeNamespace. + attr_accessor allowed_states(): ::Google::Protobuf::RepeatedField + attr_reader allowed_states_const(): ::Array[::Integer] + def clear_allowed_states: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + state: (::Temporalio::Api::Enums::V1::NamespaceState::names | ::Temporalio::Api::Enums::V1::NamespaceState::strings | ::Integer | ::Float)?, + "state" => (::Temporalio::Api::Enums::V1::NamespaceState::names | ::Temporalio::Api::Enums::V1::NamespaceState::strings | ::Integer | ::Float)?, + allowed_states: ::Array[::Temporalio::Api::Enums::V1::NamespaceState::names | ::Temporalio::Api::Enums::V1::NamespaceState::strings | ::Integer | ::Float]?, + "allowed_states" => ::Array[::Temporalio::Api::Enums::V1::NamespaceState::names | ::Temporalio::Api::Enums::V1::NamespaceState::strings | ::Integer | ::Float]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("state" name) -> (::Temporalio::Api::Enums::V1::NamespaceState::names | ::Integer) + | ("allowed_states" name) -> (::Google::Protobuf::RepeatedField) + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("state" name, (::Temporalio::Api::Enums::V1::NamespaceState::names | ::Temporalio::Api::Enums::V1::NamespaceState::strings | ::Integer | ::Float) value) -> void + | ("allowed_states" name, (::Google::Protobuf::RepeatedField) value) -> void + end + + class NamespaceNotFoundFailure < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + end + + class NamespaceAlreadyExistsFailure < ::Google::Protobuf::AbstractMessage + + type init_map = { + } + + def initialize: (?init_map initial_value) -> void + end + + class ClientVersionNotSupportedFailure < ::Google::Protobuf::AbstractMessage + + attr_reader client_version(): ::String + attr_writer client_version(): ::String | ::Symbol + def clear_client_version: () -> void + + attr_reader client_name(): ::String + attr_writer client_name(): ::String | ::Symbol + def clear_client_name: () -> void + + attr_reader supported_versions(): ::String + attr_writer supported_versions(): ::String | ::Symbol + def clear_supported_versions: () -> void + + type init_map = { + client_version: (::String | ::Symbol)?, + "client_version" => (::String | ::Symbol)?, + client_name: (::String | ::Symbol)?, + "client_name" => (::String | ::Symbol)?, + supported_versions: (::String | ::Symbol)?, + "supported_versions" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("client_version" name) -> ::String + | ("client_name" name) -> ::String + | ("supported_versions" name) -> ::String + + def []=: + ("client_version" name, (::String | ::Symbol) value) -> void + | ("client_name" name, (::String | ::Symbol) value) -> void + | ("supported_versions" name, (::String | ::Symbol) value) -> void + end + + class ServerVersionNotSupportedFailure < ::Google::Protobuf::AbstractMessage + + attr_reader server_version(): ::String + attr_writer server_version(): ::String | ::Symbol + def clear_server_version: () -> void + + attr_reader client_supported_server_versions(): ::String + attr_writer client_supported_server_versions(): ::String | ::Symbol + def clear_client_supported_server_versions: () -> void + + type init_map = { + server_version: (::String | ::Symbol)?, + "server_version" => (::String | ::Symbol)?, + client_supported_server_versions: (::String | ::Symbol)?, + "client_supported_server_versions" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("server_version" name) -> ::String + | ("client_supported_server_versions" name) -> ::String + + def []=: + ("server_version" name, (::String | ::Symbol) value) -> void + | ("client_supported_server_versions" name, (::String | ::Symbol) value) -> void + end + + class CancellationAlreadyRequestedFailure < ::Google::Protobuf::AbstractMessage + + type init_map = { + } + + def initialize: (?init_map initial_value) -> void + end + + class QueryFailedFailure < ::Google::Protobuf::AbstractMessage + + # The full reason for this query failure. May not be available if the response is generated by an old + # SDK. This field can be encoded by the SDK's failure converter to support E2E encryption of messages and stack + # traces. + attr_accessor failure(): ::Temporalio::Api::Failure::V1::Failure? + def has_failure?: () -> bool + def clear_failure: () -> void + + type init_map = { + failure: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + "failure" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("failure" name) -> ::Temporalio::Api::Failure::V1::Failure? + + def []=: + ("failure" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void + end + + class PermissionDeniedFailure < ::Google::Protobuf::AbstractMessage + + attr_reader reason(): ::String + attr_writer reason(): ::String | ::Symbol + def clear_reason: () -> void + + type init_map = { + reason: (::String | ::Symbol)?, + "reason" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("reason" name) -> ::String + + def []=: + ("reason" name, (::String | ::Symbol) value) -> void + end + + class ResourceExhaustedFailure < ::Google::Protobuf::AbstractMessage + + attr_reader cause(): ::Temporalio::Api::Enums::V1::ResourceExhaustedCause::names | ::Integer + attr_writer cause(): ::Temporalio::Api::Enums::V1::ResourceExhaustedCause::names | ::Temporalio::Api::Enums::V1::ResourceExhaustedCause::strings | ::Integer | ::Float + attr_reader cause_const(): ::Integer + def clear_cause: () -> void + + attr_reader scope(): ::Temporalio::Api::Enums::V1::ResourceExhaustedScope::names | ::Integer + attr_writer scope(): ::Temporalio::Api::Enums::V1::ResourceExhaustedScope::names | ::Temporalio::Api::Enums::V1::ResourceExhaustedScope::strings | ::Integer | ::Float + attr_reader scope_const(): ::Integer + def clear_scope: () -> void + + type init_map = { + cause: (::Temporalio::Api::Enums::V1::ResourceExhaustedCause::names | ::Temporalio::Api::Enums::V1::ResourceExhaustedCause::strings | ::Integer | ::Float)?, + "cause" => (::Temporalio::Api::Enums::V1::ResourceExhaustedCause::names | ::Temporalio::Api::Enums::V1::ResourceExhaustedCause::strings | ::Integer | ::Float)?, + scope: (::Temporalio::Api::Enums::V1::ResourceExhaustedScope::names | ::Temporalio::Api::Enums::V1::ResourceExhaustedScope::strings | ::Integer | ::Float)?, + "scope" => (::Temporalio::Api::Enums::V1::ResourceExhaustedScope::names | ::Temporalio::Api::Enums::V1::ResourceExhaustedScope::strings | ::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("cause" name) -> (::Temporalio::Api::Enums::V1::ResourceExhaustedCause::names | ::Integer) + | ("scope" name) -> (::Temporalio::Api::Enums::V1::ResourceExhaustedScope::names | ::Integer) + + def []=: + ("cause" name, (::Temporalio::Api::Enums::V1::ResourceExhaustedCause::names | ::Temporalio::Api::Enums::V1::ResourceExhaustedCause::strings | ::Integer | ::Float) value) -> void + | ("scope" name, (::Temporalio::Api::Enums::V1::ResourceExhaustedScope::names | ::Temporalio::Api::Enums::V1::ResourceExhaustedScope::strings | ::Integer | ::Float) value) -> void + end + + class SystemWorkflowFailure < ::Google::Protobuf::AbstractMessage + + # WorkflowId and RunId of the Temporal system workflow performing the underlying operation. + # Looking up the info of the system workflow run may help identify the issue causing the failure. + attr_accessor workflow_execution(): ::Temporalio::Api::Common::V1::WorkflowExecution? + def has_workflow_execution?: () -> bool + def clear_workflow_execution: () -> void + + # Serialized error returned by the system workflow performing the underlying operation. + attr_reader workflow_error(): ::String + attr_writer workflow_error(): ::String | ::Symbol + def clear_workflow_error: () -> void + + type init_map = { + workflow_execution: (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + "workflow_execution" => (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + workflow_error: (::String | ::Symbol)?, + "workflow_error" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("workflow_execution" name) -> ::Temporalio::Api::Common::V1::WorkflowExecution? + | ("workflow_error" name) -> ::String + + def []=: + ("workflow_execution" name, ::Temporalio::Api::Common::V1::WorkflowExecution? value) -> void + | ("workflow_error" name, (::String | ::Symbol) value) -> void + end + + class WorkflowNotReadyFailure < ::Google::Protobuf::AbstractMessage + + type init_map = { + } + + def initialize: (?init_map initial_value) -> void + end + + class NewerBuildExistsFailure < ::Google::Protobuf::AbstractMessage + + # The current default compatible build ID which will receive tasks + attr_reader default_build_id(): ::String + attr_writer default_build_id(): ::String | ::Symbol + def clear_default_build_id: () -> void + + type init_map = { + default_build_id: (::String | ::Symbol)?, + "default_build_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("default_build_id" name) -> ::String + + def []=: + ("default_build_id" name, (::String | ::Symbol) value) -> void + end + + class MultiOperationExecutionFailure < ::Google::Protobuf::AbstractMessage + # NOTE: `OperationStatus` is modelled after + # [`google.rpc.Status`](https://github.com/googleapis/googleapis/blob/master/google/rpc/status.proto). + # (-- api-linter: core::0146::any=disabled + # aip.dev/not-precedent: details are meant to hold arbitrary payloads. --) + class OperationStatus < ::Google::Protobuf::AbstractMessage + + attr_reader code(): ::Integer + attr_writer code(): ::Integer | ::Float + def clear_code: () -> void + + attr_reader message(): ::String + attr_writer message(): ::String | ::Symbol + def clear_message: () -> void + + attr_accessor details(): ::Google::Protobuf::RepeatedField + def clear_details: () -> void + + type init_map = { + code: (::Integer | ::Float)?, + "code" => (::Integer | ::Float)?, + message: (::String | ::Symbol)?, + "message" => (::String | ::Symbol)?, + details: ::Array[::Google::Protobuf::Any]?, + "details" => ::Array[::Google::Protobuf::Any]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("code" name) -> ::Integer + | ("message" name) -> ::String + | ("details" name) -> ::Google::Protobuf::RepeatedField + + def []=: + ("code" name, (::Integer | ::Float) value) -> void + | ("message" name, (::String | ::Symbol) value) -> void + | ("details" name, ::Google::Protobuf::RepeatedField value) -> void + end + + # One status for each requested operation from the failed MultiOperation. The failed + # operation(s) have the same error details as if it was executed separately. All other operations have the + # status code `Aborted` and `MultiOperationExecutionAborted` is added to the details field. + attr_accessor statuses(): ::Google::Protobuf::RepeatedField + def clear_statuses: () -> void + + type init_map = { + statuses: ::Array[::Temporalio::Api::ErrorDetails::V1::MultiOperationExecutionFailure::OperationStatus]?, + "statuses" => ::Array[::Temporalio::Api::ErrorDetails::V1::MultiOperationExecutionFailure::OperationStatus]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("statuses" name) -> ::Google::Protobuf::RepeatedField + + def []=: + ("statuses" name, ::Google::Protobuf::RepeatedField value) -> void + end + + # An error indicating that an activity execution failed to start. Returned when there is an existing activity with the + # given activity ID, and the given ID reuse and conflict policies do not permit starting a new one or attaching to an + # existing one. + class ActivityExecutionAlreadyStartedFailure < ::Google::Protobuf::AbstractMessage + + attr_reader start_request_id(): ::String + attr_writer start_request_id(): ::String | ::Symbol + def clear_start_request_id: () -> void + + attr_reader run_id(): ::String + attr_writer run_id(): ::String | ::Symbol + def clear_run_id: () -> void + + type init_map = { + start_request_id: (::String | ::Symbol)?, + "start_request_id" => (::String | ::Symbol)?, + run_id: (::String | ::Symbol)?, + "run_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("start_request_id" name) -> ::String + | ("run_id" name) -> ::String + + def []=: + ("start_request_id" name, (::String | ::Symbol) value) -> void + | ("run_id" name, (::String | ::Symbol) value) -> void + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/api/export/v1/message.rbs b/temporalio/sig/temporalio/api/export/v1/message.rbs new file mode 100644 index 00000000..78d19d0d --- /dev/null +++ b/temporalio/sig/temporalio/api/export/v1/message.rbs @@ -0,0 +1,63 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/api/export/v1/message.proto + +module Temporalio + module Api + module Export + module V1 + class WorkflowExecution < ::Google::Protobuf::AbstractMessage + + attr_accessor history(): ::Temporalio::Api::History::V1::History? + def has_history?: () -> bool + def clear_history: () -> void + + type init_map = { + history: (::Temporalio::Api::History::V1::History | ::Temporalio::Api::History::V1::History::init_map)?, + "history" => (::Temporalio::Api::History::V1::History | ::Temporalio::Api::History::V1::History::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("history" name) -> ::Temporalio::Api::History::V1::History? + + def []=: + ("history" name, ::Temporalio::Api::History::V1::History? value) -> void + end + + # WorkflowExecutions is used by the Cloud Export feature to deserialize + # the exported file. It encapsulates a collection of workflow execution information. + class WorkflowExecutions < ::Google::Protobuf::AbstractMessage + + attr_accessor items(): ::Google::Protobuf::RepeatedField + def clear_items: () -> void + + type init_map = { + items: ::Array[::Temporalio::Api::Export::V1::WorkflowExecution]?, + "items" => ::Array[::Temporalio::Api::Export::V1::WorkflowExecution]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("items" name) -> ::Google::Protobuf::RepeatedField + + def []=: + ("items" name, ::Google::Protobuf::RepeatedField value) -> void + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/api/failure/v1/message.rbs b/temporalio/sig/temporalio/api/failure/v1/message.rbs new file mode 100644 index 00000000..d3968a0b --- /dev/null +++ b/temporalio/sig/temporalio/api/failure/v1/message.rbs @@ -0,0 +1,557 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/api/failure/v1/message.proto + +module Temporalio + module Api + module Failure + module V1 + class ApplicationFailureInfo < ::Google::Protobuf::AbstractMessage + + attr_reader type(): ::String + attr_writer type(): ::String | ::Symbol + def clear_type: () -> void + + attr_accessor non_retryable(): bool + def clear_non_retryable: () -> void + + attr_accessor details(): ::Temporalio::Api::Common::V1::Payloads? + def has_details?: () -> bool + def clear_details: () -> void + + # 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. + attr_reader next_retry_delay(): ::Google::Protobuf::Duration? + attr_writer next_retry_delay(): (::Google::Protobuf::Duration | ::int)? + def has_next_retry_delay?: () -> bool + def clear_next_retry_delay: () -> void + + attr_reader category(): ::Temporalio::Api::Enums::V1::ApplicationErrorCategory::names | ::Integer + attr_writer category(): ::Temporalio::Api::Enums::V1::ApplicationErrorCategory::names | ::Temporalio::Api::Enums::V1::ApplicationErrorCategory::strings | ::Integer | ::Float + attr_reader category_const(): ::Integer + def clear_category: () -> void + + type init_map = { + type: (::String | ::Symbol)?, + "type" => (::String | ::Symbol)?, + non_retryable: bool?, + "non_retryable" => bool?, + details: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + "details" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + next_retry_delay: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "next_retry_delay" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + category: (::Temporalio::Api::Enums::V1::ApplicationErrorCategory::names | ::Temporalio::Api::Enums::V1::ApplicationErrorCategory::strings | ::Integer | ::Float)?, + "category" => (::Temporalio::Api::Enums::V1::ApplicationErrorCategory::names | ::Temporalio::Api::Enums::V1::ApplicationErrorCategory::strings | ::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("type" name) -> ::String + | ("non_retryable" name) -> bool + | ("details" name) -> ::Temporalio::Api::Common::V1::Payloads? + | ("next_retry_delay" name) -> ::Google::Protobuf::Duration? + | ("category" name) -> (::Temporalio::Api::Enums::V1::ApplicationErrorCategory::names | ::Integer) + + def []=: + ("type" name, (::String | ::Symbol) value) -> void + | ("non_retryable" name, bool value) -> void + | ("details" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void + | ("next_retry_delay" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("category" name, (::Temporalio::Api::Enums::V1::ApplicationErrorCategory::names | ::Temporalio::Api::Enums::V1::ApplicationErrorCategory::strings | ::Integer | ::Float) value) -> void + end + + class TimeoutFailureInfo < ::Google::Protobuf::AbstractMessage + + attr_reader timeout_type(): ::Temporalio::Api::Enums::V1::TimeoutType::names | ::Integer + attr_writer timeout_type(): ::Temporalio::Api::Enums::V1::TimeoutType::names | ::Temporalio::Api::Enums::V1::TimeoutType::strings | ::Integer | ::Float + attr_reader timeout_type_const(): ::Integer + def clear_timeout_type: () -> void + + attr_accessor last_heartbeat_details(): ::Temporalio::Api::Common::V1::Payloads? + def has_last_heartbeat_details?: () -> bool + def clear_last_heartbeat_details: () -> void + + type init_map = { + timeout_type: (::Temporalio::Api::Enums::V1::TimeoutType::names | ::Temporalio::Api::Enums::V1::TimeoutType::strings | ::Integer | ::Float)?, + "timeout_type" => (::Temporalio::Api::Enums::V1::TimeoutType::names | ::Temporalio::Api::Enums::V1::TimeoutType::strings | ::Integer | ::Float)?, + last_heartbeat_details: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + "last_heartbeat_details" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("timeout_type" name) -> (::Temporalio::Api::Enums::V1::TimeoutType::names | ::Integer) + | ("last_heartbeat_details" name) -> ::Temporalio::Api::Common::V1::Payloads? + + def []=: + ("timeout_type" name, (::Temporalio::Api::Enums::V1::TimeoutType::names | ::Temporalio::Api::Enums::V1::TimeoutType::strings | ::Integer | ::Float) value) -> void + | ("last_heartbeat_details" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void + end + + class CanceledFailureInfo < ::Google::Protobuf::AbstractMessage + + attr_accessor details(): ::Temporalio::Api::Common::V1::Payloads? + def has_details?: () -> bool + def clear_details: () -> void + + type init_map = { + details: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + "details" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("details" name) -> ::Temporalio::Api::Common::V1::Payloads? + + def []=: + ("details" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void + end + + class TerminatedFailureInfo < ::Google::Protobuf::AbstractMessage + + type init_map = { + } + + def initialize: (?init_map initial_value) -> void + end + + class ServerFailureInfo < ::Google::Protobuf::AbstractMessage + + attr_accessor non_retryable(): bool + def clear_non_retryable: () -> void + + type init_map = { + non_retryable: bool?, + "non_retryable" => bool?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("non_retryable" name) -> bool + + def []=: + ("non_retryable" name, bool value) -> void + end + + class ResetWorkflowFailureInfo < ::Google::Protobuf::AbstractMessage + + attr_accessor last_heartbeat_details(): ::Temporalio::Api::Common::V1::Payloads? + def has_last_heartbeat_details?: () -> bool + def clear_last_heartbeat_details: () -> void + + type init_map = { + last_heartbeat_details: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + "last_heartbeat_details" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("last_heartbeat_details" name) -> ::Temporalio::Api::Common::V1::Payloads? + + def []=: + ("last_heartbeat_details" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void + end + + class ActivityFailureInfo < ::Google::Protobuf::AbstractMessage + + attr_reader scheduled_event_id(): ::Integer + attr_writer scheduled_event_id(): ::Integer | ::Float + def clear_scheduled_event_id: () -> void + + attr_reader started_event_id(): ::Integer + attr_writer started_event_id(): ::Integer | ::Float + def clear_started_event_id: () -> void + + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + attr_accessor activity_type(): ::Temporalio::Api::Common::V1::ActivityType? + def has_activity_type?: () -> bool + def clear_activity_type: () -> void + + attr_reader activity_id(): ::String + attr_writer activity_id(): ::String | ::Symbol + def clear_activity_id: () -> void + + attr_reader retry_state(): ::Temporalio::Api::Enums::V1::RetryState::names | ::Integer + attr_writer retry_state(): ::Temporalio::Api::Enums::V1::RetryState::names | ::Temporalio::Api::Enums::V1::RetryState::strings | ::Integer | ::Float + attr_reader retry_state_const(): ::Integer + def clear_retry_state: () -> void + + type init_map = { + scheduled_event_id: (::Integer | ::Float)?, + "scheduled_event_id" => (::Integer | ::Float)?, + started_event_id: (::Integer | ::Float)?, + "started_event_id" => (::Integer | ::Float)?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + activity_type: (::Temporalio::Api::Common::V1::ActivityType | ::Temporalio::Api::Common::V1::ActivityType::init_map)?, + "activity_type" => (::Temporalio::Api::Common::V1::ActivityType | ::Temporalio::Api::Common::V1::ActivityType::init_map)?, + activity_id: (::String | ::Symbol)?, + "activity_id" => (::String | ::Symbol)?, + retry_state: (::Temporalio::Api::Enums::V1::RetryState::names | ::Temporalio::Api::Enums::V1::RetryState::strings | ::Integer | ::Float)?, + "retry_state" => (::Temporalio::Api::Enums::V1::RetryState::names | ::Temporalio::Api::Enums::V1::RetryState::strings | ::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("scheduled_event_id" name) -> ::Integer + | ("started_event_id" name) -> ::Integer + | ("identity" name) -> ::String + | ("activity_type" name) -> ::Temporalio::Api::Common::V1::ActivityType? + | ("activity_id" name) -> ::String + | ("retry_state" name) -> (::Temporalio::Api::Enums::V1::RetryState::names | ::Integer) + + def []=: + ("scheduled_event_id" name, (::Integer | ::Float) value) -> void + | ("started_event_id" name, (::Integer | ::Float) value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + | ("activity_type" name, ::Temporalio::Api::Common::V1::ActivityType? value) -> void + | ("activity_id" name, (::String | ::Symbol) value) -> void + | ("retry_state" name, (::Temporalio::Api::Enums::V1::RetryState::names | ::Temporalio::Api::Enums::V1::RetryState::strings | ::Integer | ::Float) value) -> void + end + + class ChildWorkflowExecutionFailureInfo < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_accessor workflow_execution(): ::Temporalio::Api::Common::V1::WorkflowExecution? + def has_workflow_execution?: () -> bool + def clear_workflow_execution: () -> void + + attr_accessor workflow_type(): ::Temporalio::Api::Common::V1::WorkflowType? + def has_workflow_type?: () -> bool + def clear_workflow_type: () -> void + + attr_reader initiated_event_id(): ::Integer + attr_writer initiated_event_id(): ::Integer | ::Float + def clear_initiated_event_id: () -> void + + attr_reader started_event_id(): ::Integer + attr_writer started_event_id(): ::Integer | ::Float + def clear_started_event_id: () -> void + + attr_reader retry_state(): ::Temporalio::Api::Enums::V1::RetryState::names | ::Integer + attr_writer retry_state(): ::Temporalio::Api::Enums::V1::RetryState::names | ::Temporalio::Api::Enums::V1::RetryState::strings | ::Integer | ::Float + attr_reader retry_state_const(): ::Integer + def clear_retry_state: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + workflow_execution: (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + "workflow_execution" => (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + workflow_type: (::Temporalio::Api::Common::V1::WorkflowType | ::Temporalio::Api::Common::V1::WorkflowType::init_map)?, + "workflow_type" => (::Temporalio::Api::Common::V1::WorkflowType | ::Temporalio::Api::Common::V1::WorkflowType::init_map)?, + initiated_event_id: (::Integer | ::Float)?, + "initiated_event_id" => (::Integer | ::Float)?, + started_event_id: (::Integer | ::Float)?, + "started_event_id" => (::Integer | ::Float)?, + retry_state: (::Temporalio::Api::Enums::V1::RetryState::names | ::Temporalio::Api::Enums::V1::RetryState::strings | ::Integer | ::Float)?, + "retry_state" => (::Temporalio::Api::Enums::V1::RetryState::names | ::Temporalio::Api::Enums::V1::RetryState::strings | ::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("workflow_execution" name) -> ::Temporalio::Api::Common::V1::WorkflowExecution? + | ("workflow_type" name) -> ::Temporalio::Api::Common::V1::WorkflowType? + | ("initiated_event_id" name) -> ::Integer + | ("started_event_id" name) -> ::Integer + | ("retry_state" name) -> (::Temporalio::Api::Enums::V1::RetryState::names | ::Integer) + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("workflow_execution" name, ::Temporalio::Api::Common::V1::WorkflowExecution? value) -> void + | ("workflow_type" name, ::Temporalio::Api::Common::V1::WorkflowType? value) -> void + | ("initiated_event_id" name, (::Integer | ::Float) value) -> void + | ("started_event_id" name, (::Integer | ::Float) value) -> void + | ("retry_state" name, (::Temporalio::Api::Enums::V1::RetryState::names | ::Temporalio::Api::Enums::V1::RetryState::strings | ::Integer | ::Float) value) -> void + end + + # Representation of the Temporal SDK NexusOperationError object that is returned to workflow callers. + class NexusOperationFailureInfo < ::Google::Protobuf::AbstractMessage + + # The NexusOperationScheduled event ID. + attr_reader scheduled_event_id(): ::Integer + attr_writer scheduled_event_id(): ::Integer | ::Float + def clear_scheduled_event_id: () -> void + + # Endpoint name. + attr_reader endpoint(): ::String + attr_writer endpoint(): ::String | ::Symbol + def clear_endpoint: () -> void + + # Service name. + attr_reader service(): ::String + attr_writer service(): ::String | ::Symbol + def clear_service: () -> void + + # Operation name. + attr_reader operation(): ::String + attr_writer operation(): ::String | ::Symbol + def clear_operation: () -> void + + # Operation ID - may be empty if the operation completed synchronously. + # Deprecated. Renamed to operation_token. + # @deprecated + attr_reader operation_id(): ::String + attr_writer operation_id(): ::String | ::Symbol + def clear_operation_id: () -> void + + # Operation token - may be empty if the operation completed synchronously. + attr_reader operation_token(): ::String + attr_writer operation_token(): ::String | ::Symbol + def clear_operation_token: () -> void + + type init_map = { + scheduled_event_id: (::Integer | ::Float)?, + "scheduled_event_id" => (::Integer | ::Float)?, + endpoint: (::String | ::Symbol)?, + "endpoint" => (::String | ::Symbol)?, + service: (::String | ::Symbol)?, + "service" => (::String | ::Symbol)?, + operation: (::String | ::Symbol)?, + "operation" => (::String | ::Symbol)?, + operation_id: (::String | ::Symbol)?, + "operation_id" => (::String | ::Symbol)?, + operation_token: (::String | ::Symbol)?, + "operation_token" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("scheduled_event_id" name) -> ::Integer + | ("endpoint" name) -> ::String + | ("service" name) -> ::String + | ("operation" name) -> ::String + | ("operation_id" name) -> ::String + | ("operation_token" name) -> ::String + + def []=: + ("scheduled_event_id" name, (::Integer | ::Float) value) -> void + | ("endpoint" name, (::String | ::Symbol) value) -> void + | ("service" name, (::String | ::Symbol) value) -> void + | ("operation" name, (::String | ::Symbol) value) -> void + | ("operation_id" name, (::String | ::Symbol) value) -> void + | ("operation_token" name, (::String | ::Symbol) value) -> void + end + + class NexusHandlerFailureInfo < ::Google::Protobuf::AbstractMessage + + # The Nexus error type as defined in the spec: + # https://github.com/nexus-rpc/api/blob/main/SPEC.md#predefined-handler-errors. + attr_reader type(): ::String + attr_writer type(): ::String | ::Symbol + def clear_type: () -> void + + # Retry behavior, defaults to the retry behavior of the error type as defined in the spec. + attr_reader retry_behavior(): ::Temporalio::Api::Enums::V1::NexusHandlerErrorRetryBehavior::names | ::Integer + attr_writer retry_behavior(): ::Temporalio::Api::Enums::V1::NexusHandlerErrorRetryBehavior::names | ::Temporalio::Api::Enums::V1::NexusHandlerErrorRetryBehavior::strings | ::Integer | ::Float + attr_reader retry_behavior_const(): ::Integer + def clear_retry_behavior: () -> void + + type init_map = { + type: (::String | ::Symbol)?, + "type" => (::String | ::Symbol)?, + retry_behavior: (::Temporalio::Api::Enums::V1::NexusHandlerErrorRetryBehavior::names | ::Temporalio::Api::Enums::V1::NexusHandlerErrorRetryBehavior::strings | ::Integer | ::Float)?, + "retry_behavior" => (::Temporalio::Api::Enums::V1::NexusHandlerErrorRetryBehavior::names | ::Temporalio::Api::Enums::V1::NexusHandlerErrorRetryBehavior::strings | ::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("type" name) -> ::String + | ("retry_behavior" name) -> (::Temporalio::Api::Enums::V1::NexusHandlerErrorRetryBehavior::names | ::Integer) + + def []=: + ("type" name, (::String | ::Symbol) value) -> void + | ("retry_behavior" name, (::Temporalio::Api::Enums::V1::NexusHandlerErrorRetryBehavior::names | ::Temporalio::Api::Enums::V1::NexusHandlerErrorRetryBehavior::strings | ::Integer | ::Float) value) -> void + end + + class Failure < ::Google::Protobuf::AbstractMessage + + attr_reader message(): ::String + attr_writer message(): ::String | ::Symbol + def clear_message: () -> void + + # 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. + attr_reader source(): ::String + attr_writer source(): ::String | ::Symbol + def clear_source: () -> void + + attr_reader stack_trace(): ::String + attr_writer stack_trace(): ::String | ::Symbol + def clear_stack_trace: () -> void + + # 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 --) + attr_accessor encoded_attributes(): ::Temporalio::Api::Common::V1::Payload? + def has_encoded_attributes?: () -> bool + def clear_encoded_attributes: () -> void + + attr_accessor cause(): ::Temporalio::Api::Failure::V1::Failure? + def has_cause?: () -> bool + def clear_cause: () -> void + + attr_accessor application_failure_info(): ::Temporalio::Api::Failure::V1::ApplicationFailureInfo? + def has_application_failure_info?: () -> bool + def clear_application_failure_info: () -> void + + attr_accessor timeout_failure_info(): ::Temporalio::Api::Failure::V1::TimeoutFailureInfo? + def has_timeout_failure_info?: () -> bool + def clear_timeout_failure_info: () -> void + + attr_accessor canceled_failure_info(): ::Temporalio::Api::Failure::V1::CanceledFailureInfo? + def has_canceled_failure_info?: () -> bool + def clear_canceled_failure_info: () -> void + + attr_accessor terminated_failure_info(): ::Temporalio::Api::Failure::V1::TerminatedFailureInfo? + def has_terminated_failure_info?: () -> bool + def clear_terminated_failure_info: () -> void + + attr_accessor server_failure_info(): ::Temporalio::Api::Failure::V1::ServerFailureInfo? + def has_server_failure_info?: () -> bool + def clear_server_failure_info: () -> void + + attr_accessor reset_workflow_failure_info(): ::Temporalio::Api::Failure::V1::ResetWorkflowFailureInfo? + def has_reset_workflow_failure_info?: () -> bool + def clear_reset_workflow_failure_info: () -> void + + attr_accessor activity_failure_info(): ::Temporalio::Api::Failure::V1::ActivityFailureInfo? + def has_activity_failure_info?: () -> bool + def clear_activity_failure_info: () -> void + + attr_accessor child_workflow_execution_failure_info(): ::Temporalio::Api::Failure::V1::ChildWorkflowExecutionFailureInfo? + def has_child_workflow_execution_failure_info?: () -> bool + def clear_child_workflow_execution_failure_info: () -> void + + attr_accessor nexus_operation_execution_failure_info(): ::Temporalio::Api::Failure::V1::NexusOperationFailureInfo? + def has_nexus_operation_execution_failure_info?: () -> bool + def clear_nexus_operation_execution_failure_info: () -> void + + attr_accessor nexus_handler_failure_info(): ::Temporalio::Api::Failure::V1::NexusHandlerFailureInfo? + def has_nexus_handler_failure_info?: () -> bool + def clear_nexus_handler_failure_info: () -> void + + attr_reader failure_info(): (::Temporalio::Api::Failure::V1::ApplicationFailureInfo | ::Temporalio::Api::Failure::V1::TimeoutFailureInfo | ::Temporalio::Api::Failure::V1::CanceledFailureInfo | ::Temporalio::Api::Failure::V1::TerminatedFailureInfo | ::Temporalio::Api::Failure::V1::ServerFailureInfo | ::Temporalio::Api::Failure::V1::ResetWorkflowFailureInfo | ::Temporalio::Api::Failure::V1::ActivityFailureInfo | ::Temporalio::Api::Failure::V1::ChildWorkflowExecutionFailureInfo | ::Temporalio::Api::Failure::V1::NexusOperationFailureInfo | ::Temporalio::Api::Failure::V1::NexusHandlerFailureInfo)? + def has_failure_info?: () -> bool + def clear_failure_info: () -> void + + type init_map = { + message: (::String | ::Symbol)?, + "message" => (::String | ::Symbol)?, + source: (::String | ::Symbol)?, + "source" => (::String | ::Symbol)?, + stack_trace: (::String | ::Symbol)?, + "stack_trace" => (::String | ::Symbol)?, + encoded_attributes: (::Temporalio::Api::Common::V1::Payload | ::Temporalio::Api::Common::V1::Payload::init_map)?, + "encoded_attributes" => (::Temporalio::Api::Common::V1::Payload | ::Temporalio::Api::Common::V1::Payload::init_map)?, + cause: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + "cause" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + application_failure_info: (::Temporalio::Api::Failure::V1::ApplicationFailureInfo | ::Temporalio::Api::Failure::V1::ApplicationFailureInfo::init_map)?, + "application_failure_info" => (::Temporalio::Api::Failure::V1::ApplicationFailureInfo | ::Temporalio::Api::Failure::V1::ApplicationFailureInfo::init_map)?, + timeout_failure_info: (::Temporalio::Api::Failure::V1::TimeoutFailureInfo | ::Temporalio::Api::Failure::V1::TimeoutFailureInfo::init_map)?, + "timeout_failure_info" => (::Temporalio::Api::Failure::V1::TimeoutFailureInfo | ::Temporalio::Api::Failure::V1::TimeoutFailureInfo::init_map)?, + canceled_failure_info: (::Temporalio::Api::Failure::V1::CanceledFailureInfo | ::Temporalio::Api::Failure::V1::CanceledFailureInfo::init_map)?, + "canceled_failure_info" => (::Temporalio::Api::Failure::V1::CanceledFailureInfo | ::Temporalio::Api::Failure::V1::CanceledFailureInfo::init_map)?, + terminated_failure_info: (::Temporalio::Api::Failure::V1::TerminatedFailureInfo | ::Temporalio::Api::Failure::V1::TerminatedFailureInfo::init_map)?, + "terminated_failure_info" => (::Temporalio::Api::Failure::V1::TerminatedFailureInfo | ::Temporalio::Api::Failure::V1::TerminatedFailureInfo::init_map)?, + server_failure_info: (::Temporalio::Api::Failure::V1::ServerFailureInfo | ::Temporalio::Api::Failure::V1::ServerFailureInfo::init_map)?, + "server_failure_info" => (::Temporalio::Api::Failure::V1::ServerFailureInfo | ::Temporalio::Api::Failure::V1::ServerFailureInfo::init_map)?, + reset_workflow_failure_info: (::Temporalio::Api::Failure::V1::ResetWorkflowFailureInfo | ::Temporalio::Api::Failure::V1::ResetWorkflowFailureInfo::init_map)?, + "reset_workflow_failure_info" => (::Temporalio::Api::Failure::V1::ResetWorkflowFailureInfo | ::Temporalio::Api::Failure::V1::ResetWorkflowFailureInfo::init_map)?, + activity_failure_info: (::Temporalio::Api::Failure::V1::ActivityFailureInfo | ::Temporalio::Api::Failure::V1::ActivityFailureInfo::init_map)?, + "activity_failure_info" => (::Temporalio::Api::Failure::V1::ActivityFailureInfo | ::Temporalio::Api::Failure::V1::ActivityFailureInfo::init_map)?, + child_workflow_execution_failure_info: (::Temporalio::Api::Failure::V1::ChildWorkflowExecutionFailureInfo | ::Temporalio::Api::Failure::V1::ChildWorkflowExecutionFailureInfo::init_map)?, + "child_workflow_execution_failure_info" => (::Temporalio::Api::Failure::V1::ChildWorkflowExecutionFailureInfo | ::Temporalio::Api::Failure::V1::ChildWorkflowExecutionFailureInfo::init_map)?, + nexus_operation_execution_failure_info: (::Temporalio::Api::Failure::V1::NexusOperationFailureInfo | ::Temporalio::Api::Failure::V1::NexusOperationFailureInfo::init_map)?, + "nexus_operation_execution_failure_info" => (::Temporalio::Api::Failure::V1::NexusOperationFailureInfo | ::Temporalio::Api::Failure::V1::NexusOperationFailureInfo::init_map)?, + nexus_handler_failure_info: (::Temporalio::Api::Failure::V1::NexusHandlerFailureInfo | ::Temporalio::Api::Failure::V1::NexusHandlerFailureInfo::init_map)?, + "nexus_handler_failure_info" => (::Temporalio::Api::Failure::V1::NexusHandlerFailureInfo | ::Temporalio::Api::Failure::V1::NexusHandlerFailureInfo::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("message" name) -> ::String + | ("source" name) -> ::String + | ("stack_trace" name) -> ::String + | ("encoded_attributes" name) -> ::Temporalio::Api::Common::V1::Payload? + | ("cause" name) -> ::Temporalio::Api::Failure::V1::Failure? + | ("application_failure_info" name) -> ::Temporalio::Api::Failure::V1::ApplicationFailureInfo? + | ("timeout_failure_info" name) -> ::Temporalio::Api::Failure::V1::TimeoutFailureInfo? + | ("canceled_failure_info" name) -> ::Temporalio::Api::Failure::V1::CanceledFailureInfo? + | ("terminated_failure_info" name) -> ::Temporalio::Api::Failure::V1::TerminatedFailureInfo? + | ("server_failure_info" name) -> ::Temporalio::Api::Failure::V1::ServerFailureInfo? + | ("reset_workflow_failure_info" name) -> ::Temporalio::Api::Failure::V1::ResetWorkflowFailureInfo? + | ("activity_failure_info" name) -> ::Temporalio::Api::Failure::V1::ActivityFailureInfo? + | ("child_workflow_execution_failure_info" name) -> ::Temporalio::Api::Failure::V1::ChildWorkflowExecutionFailureInfo? + | ("nexus_operation_execution_failure_info" name) -> ::Temporalio::Api::Failure::V1::NexusOperationFailureInfo? + | ("nexus_handler_failure_info" name) -> ::Temporalio::Api::Failure::V1::NexusHandlerFailureInfo? + + def []=: + ("message" name, (::String | ::Symbol) value) -> void + | ("source" name, (::String | ::Symbol) value) -> void + | ("stack_trace" name, (::String | ::Symbol) value) -> void + | ("encoded_attributes" name, ::Temporalio::Api::Common::V1::Payload? value) -> void + | ("cause" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void + | ("application_failure_info" name, ::Temporalio::Api::Failure::V1::ApplicationFailureInfo? value) -> void + | ("timeout_failure_info" name, ::Temporalio::Api::Failure::V1::TimeoutFailureInfo? value) -> void + | ("canceled_failure_info" name, ::Temporalio::Api::Failure::V1::CanceledFailureInfo? value) -> void + | ("terminated_failure_info" name, ::Temporalio::Api::Failure::V1::TerminatedFailureInfo? value) -> void + | ("server_failure_info" name, ::Temporalio::Api::Failure::V1::ServerFailureInfo? value) -> void + | ("reset_workflow_failure_info" name, ::Temporalio::Api::Failure::V1::ResetWorkflowFailureInfo? value) -> void + | ("activity_failure_info" name, ::Temporalio::Api::Failure::V1::ActivityFailureInfo? value) -> void + | ("child_workflow_execution_failure_info" name, ::Temporalio::Api::Failure::V1::ChildWorkflowExecutionFailureInfo? value) -> void + | ("nexus_operation_execution_failure_info" name, ::Temporalio::Api::Failure::V1::NexusOperationFailureInfo? value) -> void + | ("nexus_handler_failure_info" name, ::Temporalio::Api::Failure::V1::NexusHandlerFailureInfo? value) -> void + end + + class MultiOperationExecutionAborted < ::Google::Protobuf::AbstractMessage + + type init_map = { + } + + def initialize: (?init_map initial_value) -> void + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/api/filter/v1/message.rbs b/temporalio/sig/temporalio/api/filter/v1/message.rbs new file mode 100644 index 00000000..f67743b9 --- /dev/null +++ b/temporalio/sig/temporalio/api/filter/v1/message.rbs @@ -0,0 +1,121 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/api/filter/v1/message.proto + +module Temporalio + module Api + module Filter + module V1 + class WorkflowExecutionFilter < ::Google::Protobuf::AbstractMessage + + attr_reader workflow_id(): ::String + attr_writer workflow_id(): ::String | ::Symbol + def clear_workflow_id: () -> void + + attr_reader run_id(): ::String + attr_writer run_id(): ::String | ::Symbol + def clear_run_id: () -> void + + type init_map = { + workflow_id: (::String | ::Symbol)?, + "workflow_id" => (::String | ::Symbol)?, + run_id: (::String | ::Symbol)?, + "run_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("workflow_id" name) -> ::String + | ("run_id" name) -> ::String + + def []=: + ("workflow_id" name, (::String | ::Symbol) value) -> void + | ("run_id" name, (::String | ::Symbol) value) -> void + end + + class WorkflowTypeFilter < ::Google::Protobuf::AbstractMessage + + attr_reader name(): ::String + attr_writer name(): ::String | ::Symbol + def clear_name: () -> void + + type init_map = { + name: (::String | ::Symbol)?, + "name" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("name" name) -> ::String + + def []=: + ("name" name, (::String | ::Symbol) value) -> void + end + + class StartTimeFilter < ::Google::Protobuf::AbstractMessage + + attr_reader earliest_time(): ::Google::Protobuf::Timestamp? + attr_writer earliest_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_earliest_time?: () -> bool + def clear_earliest_time: () -> void + + attr_reader latest_time(): ::Google::Protobuf::Timestamp? + attr_writer latest_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_latest_time?: () -> bool + def clear_latest_time: () -> void + + type init_map = { + earliest_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "earliest_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + latest_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "latest_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("earliest_time" name) -> ::Google::Protobuf::Timestamp? + | ("latest_time" name) -> ::Google::Protobuf::Timestamp? + + def []=: + ("earliest_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("latest_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + end + + class StatusFilter < ::Google::Protobuf::AbstractMessage + + attr_reader status(): ::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::names | ::Integer + attr_writer status(): ::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::names | ::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::strings | ::Integer | ::Float + attr_reader status_const(): ::Integer + def clear_status: () -> void + + type init_map = { + status: (::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::names | ::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::strings | ::Integer | ::Float)?, + "status" => (::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::names | ::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::strings | ::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("status" name) -> (::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::names | ::Integer) + + def []=: + ("status" name, (::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::names | ::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::strings | ::Integer | ::Float) value) -> void + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/api/history/v1/message.rbs b/temporalio/sig/temporalio/api/history/v1/message.rbs new file mode 100644 index 00000000..f7096f6b --- /dev/null +++ b/temporalio/sig/temporalio/api/history/v1/message.rbs @@ -0,0 +1,4731 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/api/history/v1/message.proto + +module Temporalio + module Api + module History + module V1 + # Always the first event in workflow history + class WorkflowExecutionStartedEventAttributes < ::Google::Protobuf::AbstractMessage + + attr_accessor workflow_type(): ::Temporalio::Api::Common::V1::WorkflowType? + def has_workflow_type?: () -> bool + def clear_workflow_type: () -> void + + # 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. + attr_reader parent_workflow_namespace(): ::String + attr_writer parent_workflow_namespace(): ::String | ::Symbol + def clear_parent_workflow_namespace: () -> void + + attr_reader parent_workflow_namespace_id(): ::String + attr_writer parent_workflow_namespace_id(): ::String | ::Symbol + def clear_parent_workflow_namespace_id: () -> void + + # 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. + attr_accessor parent_workflow_execution(): ::Temporalio::Api::Common::V1::WorkflowExecution? + def has_parent_workflow_execution?: () -> bool + def clear_parent_workflow_execution: () -> void + + # EventID of the child execution initiated event in parent workflow + attr_reader parent_initiated_event_id(): ::Integer + attr_writer parent_initiated_event_id(): ::Integer | ::Float + def clear_parent_initiated_event_id: () -> void + + attr_accessor task_queue(): ::Temporalio::Api::TaskQueue::V1::TaskQueue? + def has_task_queue?: () -> bool + def clear_task_queue: () -> void + + # SDK will deserialize this and provide it as arguments to the workflow function + attr_accessor input(): ::Temporalio::Api::Common::V1::Payloads? + def has_input?: () -> bool + def clear_input: () -> void + + # Total workflow execution timeout including retries and continue as new. + attr_reader workflow_execution_timeout(): ::Google::Protobuf::Duration? + attr_writer workflow_execution_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_workflow_execution_timeout?: () -> bool + def clear_workflow_execution_timeout: () -> void + + # Timeout of a single workflow run. + attr_reader workflow_run_timeout(): ::Google::Protobuf::Duration? + attr_writer workflow_run_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_workflow_run_timeout?: () -> bool + def clear_workflow_run_timeout: () -> void + + # Timeout of a single workflow task. + attr_reader workflow_task_timeout(): ::Google::Protobuf::Duration? + attr_writer workflow_task_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_workflow_task_timeout?: () -> bool + def clear_workflow_task_timeout: () -> void + + # Run id of the previous workflow which continued-as-new or retried or cron executed into this + # workflow. + attr_reader continued_execution_run_id(): ::String + attr_writer continued_execution_run_id(): ::String | ::Symbol + def clear_continued_execution_run_id: () -> void + + attr_reader initiator(): ::Temporalio::Api::Enums::V1::ContinueAsNewInitiator::names | ::Integer + attr_writer initiator(): ::Temporalio::Api::Enums::V1::ContinueAsNewInitiator::names | ::Temporalio::Api::Enums::V1::ContinueAsNewInitiator::strings | ::Integer | ::Float + attr_reader initiator_const(): ::Integer + def clear_initiator: () -> void + + attr_accessor continued_failure(): ::Temporalio::Api::Failure::V1::Failure? + def has_continued_failure?: () -> bool + def clear_continued_failure: () -> void + + attr_accessor last_completion_result(): ::Temporalio::Api::Common::V1::Payloads? + def has_last_completion_result?: () -> bool + def clear_last_completion_result: () -> void + + # This is the run id when the WorkflowExecutionStarted event was written. + # A workflow reset changes the execution run_id, but preserves this field. + attr_reader original_execution_run_id(): ::String + attr_writer original_execution_run_id(): ::String | ::Symbol + def clear_original_execution_run_id: () -> void + + # Identity of the client who requested this execution + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + # This is the very first runId along the chain of ContinueAsNew, Retry, Cron and Reset. + # Used to identify a chain. + attr_reader first_execution_run_id(): ::String + attr_writer first_execution_run_id(): ::String | ::Symbol + def clear_first_execution_run_id: () -> void + + attr_accessor retry_policy(): ::Temporalio::Api::Common::V1::RetryPolicy? + def has_retry_policy?: () -> bool + def clear_retry_policy: () -> void + + # Starting at 1, the number of times we have tried to execute this workflow + attr_reader attempt(): ::Integer + attr_writer attempt(): ::Integer | ::Float + def clear_attempt: () -> void + + # The absolute time at which the workflow will be timed out. + # This is passed without change to the next run/retry of a workflow. + attr_reader workflow_execution_expiration_time(): ::Google::Protobuf::Timestamp? + attr_writer workflow_execution_expiration_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_workflow_execution_expiration_time?: () -> bool + def clear_workflow_execution_expiration_time: () -> void + + # If this workflow runs on a cron schedule, it will appear here + attr_reader cron_schedule(): ::String + attr_writer cron_schedule(): ::String | ::Symbol + def clear_cron_schedule: () -> void + + # 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. + attr_reader first_workflow_task_backoff(): ::Google::Protobuf::Duration? + attr_writer first_workflow_task_backoff(): (::Google::Protobuf::Duration | ::int)? + def has_first_workflow_task_backoff?: () -> bool + def clear_first_workflow_task_backoff: () -> void + + attr_accessor memo(): ::Temporalio::Api::Common::V1::Memo? + def has_memo?: () -> bool + def clear_memo: () -> void + + attr_accessor search_attributes(): ::Temporalio::Api::Common::V1::SearchAttributes? + def has_search_attributes?: () -> bool + def clear_search_attributes: () -> void + + attr_accessor prev_auto_reset_points(): ::Temporalio::Api::Workflow::V1::ResetPoints? + def has_prev_auto_reset_points?: () -> bool + def clear_prev_auto_reset_points: () -> void + + attr_accessor header(): ::Temporalio::Api::Common::V1::Header? + def has_header?: () -> bool + def clear_header: () -> void + + # 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 + attr_reader parent_initiated_event_version(): ::Integer + attr_writer parent_initiated_event_version(): ::Integer | ::Float + def clear_parent_initiated_event_version: () -> void + + # This field is new in 1.21. + attr_reader workflow_id(): ::String + attr_writer workflow_id(): ::String | ::Symbol + def clear_workflow_id: () -> void + + # 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 + attr_accessor source_version_stamp(): ::Temporalio::Api::Common::V1::WorkerVersionStamp? + def has_source_version_stamp?: () -> bool + def clear_source_version_stamp: () -> void + + # Completion callbacks attached when this workflow was started. + attr_accessor completion_callbacks(): ::Google::Protobuf::RepeatedField + def clear_completion_callbacks: () -> void + + # 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. + attr_accessor root_workflow_execution(): ::Temporalio::Api::Common::V1::WorkflowExecution? + def has_root_workflow_execution?: () -> bool + def clear_root_workflow_execution: () -> void + + # 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 + attr_reader inherited_build_id(): ::String + attr_writer inherited_build_id(): ::String | ::Symbol + def clear_inherited_build_id: () -> void + + # 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. + attr_accessor versioning_override(): ::Temporalio::Api::Workflow::V1::VersioningOverride? + def has_versioning_override?: () -> bool + def clear_versioning_override: () -> void + + # 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 + attr_reader parent_pinned_worker_deployment_version(): ::String + attr_writer parent_pinned_worker_deployment_version(): ::String | ::Symbol + def clear_parent_pinned_worker_deployment_version: () -> void + + # Priority metadata + attr_accessor priority(): ::Temporalio::Api::Common::V1::Priority? + def has_priority?: () -> bool + def clear_priority: () -> void + + # 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. + attr_accessor inherited_pinned_version(): ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? + def has_inherited_pinned_version?: () -> bool + def clear_inherited_pinned_version: () -> void + + # 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. + attr_accessor inherited_auto_upgrade_info(): ::Temporalio::Api::Deployment::V1::InheritedAutoUpgradeInfo? + def has_inherited_auto_upgrade_info?: () -> bool + def clear_inherited_auto_upgrade_info: () -> void + + # 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. + attr_accessor eager_execution_accepted(): bool + def clear_eager_execution_accepted: () -> void + + # During a previous run of this workflow, the server may have notified the SDK + # that the Target Worker Deployment Version changed, but the SDK declined to + # upgrade (e.g., by continuing-as-new with PINNED behavior). This field records + # the target version that was declined. + # This is a wrapper message to distinguish "never declined" (nil wrapper) from + # "declined an unversioned target" (non-nil wrapper with nil deployment_version). + # Used internally by the server during continue-as-new and retry. + # Should not be read or interpreted by SDKs. + attr_accessor declined_target_version_upgrade(): ::Temporalio::Api::History::V1::DeclinedTargetVersionUpgrade? + def has_declined_target_version_upgrade?: () -> bool + def clear_declined_target_version_upgrade: () -> void + + type init_map = { + workflow_type: (::Temporalio::Api::Common::V1::WorkflowType | ::Temporalio::Api::Common::V1::WorkflowType::init_map)?, + "workflow_type" => (::Temporalio::Api::Common::V1::WorkflowType | ::Temporalio::Api::Common::V1::WorkflowType::init_map)?, + parent_workflow_namespace: (::String | ::Symbol)?, + "parent_workflow_namespace" => (::String | ::Symbol)?, + parent_workflow_namespace_id: (::String | ::Symbol)?, + "parent_workflow_namespace_id" => (::String | ::Symbol)?, + parent_workflow_execution: (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + "parent_workflow_execution" => (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + parent_initiated_event_id: (::Integer | ::Float)?, + "parent_initiated_event_id" => (::Integer | ::Float)?, + task_queue: (::Temporalio::Api::TaskQueue::V1::TaskQueue | ::Temporalio::Api::TaskQueue::V1::TaskQueue::init_map)?, + "task_queue" => (::Temporalio::Api::TaskQueue::V1::TaskQueue | ::Temporalio::Api::TaskQueue::V1::TaskQueue::init_map)?, + input: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + "input" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + workflow_execution_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "workflow_execution_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + workflow_run_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "workflow_run_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + workflow_task_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "workflow_task_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + continued_execution_run_id: (::String | ::Symbol)?, + "continued_execution_run_id" => (::String | ::Symbol)?, + initiator: (::Temporalio::Api::Enums::V1::ContinueAsNewInitiator::names | ::Temporalio::Api::Enums::V1::ContinueAsNewInitiator::strings | ::Integer | ::Float)?, + "initiator" => (::Temporalio::Api::Enums::V1::ContinueAsNewInitiator::names | ::Temporalio::Api::Enums::V1::ContinueAsNewInitiator::strings | ::Integer | ::Float)?, + continued_failure: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + "continued_failure" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + last_completion_result: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + "last_completion_result" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + original_execution_run_id: (::String | ::Symbol)?, + "original_execution_run_id" => (::String | ::Symbol)?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + first_execution_run_id: (::String | ::Symbol)?, + "first_execution_run_id" => (::String | ::Symbol)?, + retry_policy: (::Temporalio::Api::Common::V1::RetryPolicy | ::Temporalio::Api::Common::V1::RetryPolicy::init_map)?, + "retry_policy" => (::Temporalio::Api::Common::V1::RetryPolicy | ::Temporalio::Api::Common::V1::RetryPolicy::init_map)?, + attempt: (::Integer | ::Float)?, + "attempt" => (::Integer | ::Float)?, + workflow_execution_expiration_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "workflow_execution_expiration_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + cron_schedule: (::String | ::Symbol)?, + "cron_schedule" => (::String | ::Symbol)?, + first_workflow_task_backoff: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "first_workflow_task_backoff" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + memo: (::Temporalio::Api::Common::V1::Memo | ::Temporalio::Api::Common::V1::Memo::init_map)?, + "memo" => (::Temporalio::Api::Common::V1::Memo | ::Temporalio::Api::Common::V1::Memo::init_map)?, + search_attributes: (::Temporalio::Api::Common::V1::SearchAttributes | ::Temporalio::Api::Common::V1::SearchAttributes::init_map)?, + "search_attributes" => (::Temporalio::Api::Common::V1::SearchAttributes | ::Temporalio::Api::Common::V1::SearchAttributes::init_map)?, + prev_auto_reset_points: (::Temporalio::Api::Workflow::V1::ResetPoints | ::Temporalio::Api::Workflow::V1::ResetPoints::init_map)?, + "prev_auto_reset_points" => (::Temporalio::Api::Workflow::V1::ResetPoints | ::Temporalio::Api::Workflow::V1::ResetPoints::init_map)?, + header: (::Temporalio::Api::Common::V1::Header | ::Temporalio::Api::Common::V1::Header::init_map)?, + "header" => (::Temporalio::Api::Common::V1::Header | ::Temporalio::Api::Common::V1::Header::init_map)?, + parent_initiated_event_version: (::Integer | ::Float)?, + "parent_initiated_event_version" => (::Integer | ::Float)?, + workflow_id: (::String | ::Symbol)?, + "workflow_id" => (::String | ::Symbol)?, + source_version_stamp: (::Temporalio::Api::Common::V1::WorkerVersionStamp | ::Temporalio::Api::Common::V1::WorkerVersionStamp::init_map)?, + "source_version_stamp" => (::Temporalio::Api::Common::V1::WorkerVersionStamp | ::Temporalio::Api::Common::V1::WorkerVersionStamp::init_map)?, + completion_callbacks: ::Array[::Temporalio::Api::Common::V1::Callback]?, + "completion_callbacks" => ::Array[::Temporalio::Api::Common::V1::Callback]?, + root_workflow_execution: (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + "root_workflow_execution" => (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + inherited_build_id: (::String | ::Symbol)?, + "inherited_build_id" => (::String | ::Symbol)?, + versioning_override: (::Temporalio::Api::Workflow::V1::VersioningOverride | ::Temporalio::Api::Workflow::V1::VersioningOverride::init_map)?, + "versioning_override" => (::Temporalio::Api::Workflow::V1::VersioningOverride | ::Temporalio::Api::Workflow::V1::VersioningOverride::init_map)?, + parent_pinned_worker_deployment_version: (::String | ::Symbol)?, + "parent_pinned_worker_deployment_version" => (::String | ::Symbol)?, + priority: (::Temporalio::Api::Common::V1::Priority | ::Temporalio::Api::Common::V1::Priority::init_map)?, + "priority" => (::Temporalio::Api::Common::V1::Priority | ::Temporalio::Api::Common::V1::Priority::init_map)?, + inherited_pinned_version: (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?, + "inherited_pinned_version" => (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?, + inherited_auto_upgrade_info: (::Temporalio::Api::Deployment::V1::InheritedAutoUpgradeInfo | ::Temporalio::Api::Deployment::V1::InheritedAutoUpgradeInfo::init_map)?, + "inherited_auto_upgrade_info" => (::Temporalio::Api::Deployment::V1::InheritedAutoUpgradeInfo | ::Temporalio::Api::Deployment::V1::InheritedAutoUpgradeInfo::init_map)?, + eager_execution_accepted: bool?, + "eager_execution_accepted" => bool?, + declined_target_version_upgrade: (::Temporalio::Api::History::V1::DeclinedTargetVersionUpgrade | ::Temporalio::Api::History::V1::DeclinedTargetVersionUpgrade::init_map)?, + "declined_target_version_upgrade" => (::Temporalio::Api::History::V1::DeclinedTargetVersionUpgrade | ::Temporalio::Api::History::V1::DeclinedTargetVersionUpgrade::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("workflow_type" name) -> ::Temporalio::Api::Common::V1::WorkflowType? + | ("parent_workflow_namespace" name) -> ::String + | ("parent_workflow_namespace_id" name) -> ::String + | ("parent_workflow_execution" name) -> ::Temporalio::Api::Common::V1::WorkflowExecution? + | ("parent_initiated_event_id" name) -> ::Integer + | ("task_queue" name) -> ::Temporalio::Api::TaskQueue::V1::TaskQueue? + | ("input" name) -> ::Temporalio::Api::Common::V1::Payloads? + | ("workflow_execution_timeout" name) -> ::Google::Protobuf::Duration? + | ("workflow_run_timeout" name) -> ::Google::Protobuf::Duration? + | ("workflow_task_timeout" name) -> ::Google::Protobuf::Duration? + | ("continued_execution_run_id" name) -> ::String + | ("initiator" name) -> (::Temporalio::Api::Enums::V1::ContinueAsNewInitiator::names | ::Integer) + | ("continued_failure" name) -> ::Temporalio::Api::Failure::V1::Failure? + | ("last_completion_result" name) -> ::Temporalio::Api::Common::V1::Payloads? + | ("original_execution_run_id" name) -> ::String + | ("identity" name) -> ::String + | ("first_execution_run_id" name) -> ::String + | ("retry_policy" name) -> ::Temporalio::Api::Common::V1::RetryPolicy? + | ("attempt" name) -> ::Integer + | ("workflow_execution_expiration_time" name) -> ::Google::Protobuf::Timestamp? + | ("cron_schedule" name) -> ::String + | ("first_workflow_task_backoff" name) -> ::Google::Protobuf::Duration? + | ("memo" name) -> ::Temporalio::Api::Common::V1::Memo? + | ("search_attributes" name) -> ::Temporalio::Api::Common::V1::SearchAttributes? + | ("prev_auto_reset_points" name) -> ::Temporalio::Api::Workflow::V1::ResetPoints? + | ("header" name) -> ::Temporalio::Api::Common::V1::Header? + | ("parent_initiated_event_version" name) -> ::Integer + | ("workflow_id" name) -> ::String + | ("source_version_stamp" name) -> ::Temporalio::Api::Common::V1::WorkerVersionStamp? + | ("completion_callbacks" name) -> ::Google::Protobuf::RepeatedField + | ("root_workflow_execution" name) -> ::Temporalio::Api::Common::V1::WorkflowExecution? + | ("inherited_build_id" name) -> ::String + | ("versioning_override" name) -> ::Temporalio::Api::Workflow::V1::VersioningOverride? + | ("parent_pinned_worker_deployment_version" name) -> ::String + | ("priority" name) -> ::Temporalio::Api::Common::V1::Priority? + | ("inherited_pinned_version" name) -> ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? + | ("inherited_auto_upgrade_info" name) -> ::Temporalio::Api::Deployment::V1::InheritedAutoUpgradeInfo? + | ("eager_execution_accepted" name) -> bool + | ("declined_target_version_upgrade" name) -> ::Temporalio::Api::History::V1::DeclinedTargetVersionUpgrade? + + def []=: + ("workflow_type" name, ::Temporalio::Api::Common::V1::WorkflowType? value) -> void + | ("parent_workflow_namespace" name, (::String | ::Symbol) value) -> void + | ("parent_workflow_namespace_id" name, (::String | ::Symbol) value) -> void + | ("parent_workflow_execution" name, ::Temporalio::Api::Common::V1::WorkflowExecution? value) -> void + | ("parent_initiated_event_id" name, (::Integer | ::Float) value) -> void + | ("task_queue" name, ::Temporalio::Api::TaskQueue::V1::TaskQueue? value) -> void + | ("input" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void + | ("workflow_execution_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("workflow_run_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("workflow_task_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("continued_execution_run_id" name, (::String | ::Symbol) value) -> void + | ("initiator" name, (::Temporalio::Api::Enums::V1::ContinueAsNewInitiator::names | ::Temporalio::Api::Enums::V1::ContinueAsNewInitiator::strings | ::Integer | ::Float) value) -> void + | ("continued_failure" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void + | ("last_completion_result" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void + | ("original_execution_run_id" name, (::String | ::Symbol) value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + | ("first_execution_run_id" name, (::String | ::Symbol) value) -> void + | ("retry_policy" name, ::Temporalio::Api::Common::V1::RetryPolicy? value) -> void + | ("attempt" name, (::Integer | ::Float) value) -> void + | ("workflow_execution_expiration_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("cron_schedule" name, (::String | ::Symbol) value) -> void + | ("first_workflow_task_backoff" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("memo" name, ::Temporalio::Api::Common::V1::Memo? value) -> void + | ("search_attributes" name, ::Temporalio::Api::Common::V1::SearchAttributes? value) -> void + | ("prev_auto_reset_points" name, ::Temporalio::Api::Workflow::V1::ResetPoints? value) -> void + | ("header" name, ::Temporalio::Api::Common::V1::Header? value) -> void + | ("parent_initiated_event_version" name, (::Integer | ::Float) value) -> void + | ("workflow_id" name, (::String | ::Symbol) value) -> void + | ("source_version_stamp" name, ::Temporalio::Api::Common::V1::WorkerVersionStamp? value) -> void + | ("completion_callbacks" name, ::Google::Protobuf::RepeatedField value) -> void + | ("root_workflow_execution" name, ::Temporalio::Api::Common::V1::WorkflowExecution? value) -> void + | ("inherited_build_id" name, (::String | ::Symbol) value) -> void + | ("versioning_override" name, ::Temporalio::Api::Workflow::V1::VersioningOverride? value) -> void + | ("parent_pinned_worker_deployment_version" name, (::String | ::Symbol) value) -> void + | ("priority" name, ::Temporalio::Api::Common::V1::Priority? value) -> void + | ("inherited_pinned_version" name, ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? value) -> void + | ("inherited_auto_upgrade_info" name, ::Temporalio::Api::Deployment::V1::InheritedAutoUpgradeInfo? value) -> void + | ("eager_execution_accepted" name, bool value) -> void + | ("declined_target_version_upgrade" name, ::Temporalio::Api::History::V1::DeclinedTargetVersionUpgrade? value) -> void + end + + # Wrapper for a target deployment version that the SDK declined to upgrade to. + # See declined_target_version_upgrade on WorkflowExecutionStartedEventAttributes. + class DeclinedTargetVersionUpgrade < ::Google::Protobuf::AbstractMessage + + attr_accessor deployment_version(): ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? + def has_deployment_version?: () -> bool + def clear_deployment_version: () -> void + + type init_map = { + deployment_version: (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?, + "deployment_version" => (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("deployment_version" name) -> ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? + + def []=: + ("deployment_version" name, ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? value) -> void + end + + class WorkflowExecutionCompletedEventAttributes < ::Google::Protobuf::AbstractMessage + + # Serialized result of workflow completion (ie: The return value of the workflow function) + attr_accessor result(): ::Temporalio::Api::Common::V1::Payloads? + def has_result?: () -> bool + def clear_result: () -> void + + # The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + attr_reader workflow_task_completed_event_id(): ::Integer + attr_writer workflow_task_completed_event_id(): ::Integer | ::Float + def clear_workflow_task_completed_event_id: () -> void + + # If another run is started by cron, this contains the new run id. + attr_reader new_execution_run_id(): ::String + attr_writer new_execution_run_id(): ::String | ::Symbol + def clear_new_execution_run_id: () -> void + + type init_map = { + result: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + "result" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + workflow_task_completed_event_id: (::Integer | ::Float)?, + "workflow_task_completed_event_id" => (::Integer | ::Float)?, + new_execution_run_id: (::String | ::Symbol)?, + "new_execution_run_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("result" name) -> ::Temporalio::Api::Common::V1::Payloads? + | ("workflow_task_completed_event_id" name) -> ::Integer + | ("new_execution_run_id" name) -> ::String + + def []=: + ("result" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void + | ("workflow_task_completed_event_id" name, (::Integer | ::Float) value) -> void + | ("new_execution_run_id" name, (::String | ::Symbol) value) -> void + end + + class WorkflowExecutionFailedEventAttributes < ::Google::Protobuf::AbstractMessage + + # Serialized result of workflow failure (ex: An exception thrown, or error returned) + attr_accessor failure(): ::Temporalio::Api::Failure::V1::Failure? + def has_failure?: () -> bool + def clear_failure: () -> void + + attr_reader retry_state(): ::Temporalio::Api::Enums::V1::RetryState::names | ::Integer + attr_writer retry_state(): ::Temporalio::Api::Enums::V1::RetryState::names | ::Temporalio::Api::Enums::V1::RetryState::strings | ::Integer | ::Float + attr_reader retry_state_const(): ::Integer + def clear_retry_state: () -> void + + # The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + attr_reader workflow_task_completed_event_id(): ::Integer + attr_writer workflow_task_completed_event_id(): ::Integer | ::Float + def clear_workflow_task_completed_event_id: () -> void + + # If another run is started by cron or retry, this contains the new run id. + attr_reader new_execution_run_id(): ::String + attr_writer new_execution_run_id(): ::String | ::Symbol + def clear_new_execution_run_id: () -> void + + type init_map = { + failure: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + "failure" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + retry_state: (::Temporalio::Api::Enums::V1::RetryState::names | ::Temporalio::Api::Enums::V1::RetryState::strings | ::Integer | ::Float)?, + "retry_state" => (::Temporalio::Api::Enums::V1::RetryState::names | ::Temporalio::Api::Enums::V1::RetryState::strings | ::Integer | ::Float)?, + workflow_task_completed_event_id: (::Integer | ::Float)?, + "workflow_task_completed_event_id" => (::Integer | ::Float)?, + new_execution_run_id: (::String | ::Symbol)?, + "new_execution_run_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("failure" name) -> ::Temporalio::Api::Failure::V1::Failure? + | ("retry_state" name) -> (::Temporalio::Api::Enums::V1::RetryState::names | ::Integer) + | ("workflow_task_completed_event_id" name) -> ::Integer + | ("new_execution_run_id" name) -> ::String + + def []=: + ("failure" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void + | ("retry_state" name, (::Temporalio::Api::Enums::V1::RetryState::names | ::Temporalio::Api::Enums::V1::RetryState::strings | ::Integer | ::Float) value) -> void + | ("workflow_task_completed_event_id" name, (::Integer | ::Float) value) -> void + | ("new_execution_run_id" name, (::String | ::Symbol) value) -> void + end + + class WorkflowExecutionTimedOutEventAttributes < ::Google::Protobuf::AbstractMessage + + attr_reader retry_state(): ::Temporalio::Api::Enums::V1::RetryState::names | ::Integer + attr_writer retry_state(): ::Temporalio::Api::Enums::V1::RetryState::names | ::Temporalio::Api::Enums::V1::RetryState::strings | ::Integer | ::Float + attr_reader retry_state_const(): ::Integer + def clear_retry_state: () -> void + + # If another run is started by cron or retry, this contains the new run id. + attr_reader new_execution_run_id(): ::String + attr_writer new_execution_run_id(): ::String | ::Symbol + def clear_new_execution_run_id: () -> void + + type init_map = { + retry_state: (::Temporalio::Api::Enums::V1::RetryState::names | ::Temporalio::Api::Enums::V1::RetryState::strings | ::Integer | ::Float)?, + "retry_state" => (::Temporalio::Api::Enums::V1::RetryState::names | ::Temporalio::Api::Enums::V1::RetryState::strings | ::Integer | ::Float)?, + new_execution_run_id: (::String | ::Symbol)?, + "new_execution_run_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("retry_state" name) -> (::Temporalio::Api::Enums::V1::RetryState::names | ::Integer) + | ("new_execution_run_id" name) -> ::String + + def []=: + ("retry_state" name, (::Temporalio::Api::Enums::V1::RetryState::names | ::Temporalio::Api::Enums::V1::RetryState::strings | ::Integer | ::Float) value) -> void + | ("new_execution_run_id" name, (::String | ::Symbol) value) -> void + end + + class WorkflowExecutionContinuedAsNewEventAttributes < ::Google::Protobuf::AbstractMessage + + # The run ID of the new workflow started by this continue-as-new + attr_reader new_execution_run_id(): ::String + attr_writer new_execution_run_id(): ::String | ::Symbol + def clear_new_execution_run_id: () -> void + + attr_accessor workflow_type(): ::Temporalio::Api::Common::V1::WorkflowType? + def has_workflow_type?: () -> bool + def clear_workflow_type: () -> void + + attr_accessor task_queue(): ::Temporalio::Api::TaskQueue::V1::TaskQueue? + def has_task_queue?: () -> bool + def clear_task_queue: () -> void + + attr_accessor input(): ::Temporalio::Api::Common::V1::Payloads? + def has_input?: () -> bool + def clear_input: () -> void + + # Timeout of a single workflow run. + attr_reader workflow_run_timeout(): ::Google::Protobuf::Duration? + attr_writer workflow_run_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_workflow_run_timeout?: () -> bool + def clear_workflow_run_timeout: () -> void + + # Timeout of a single workflow task. + attr_reader workflow_task_timeout(): ::Google::Protobuf::Duration? + attr_writer workflow_task_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_workflow_task_timeout?: () -> bool + def clear_workflow_task_timeout: () -> void + + # The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + attr_reader workflow_task_completed_event_id(): ::Integer + attr_writer workflow_task_completed_event_id(): ::Integer | ::Float + def clear_workflow_task_completed_event_id: () -> void + + # 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. + attr_reader backoff_start_interval(): ::Google::Protobuf::Duration? + attr_writer backoff_start_interval(): (::Google::Protobuf::Duration | ::int)? + def has_backoff_start_interval?: () -> bool + def clear_backoff_start_interval: () -> void + + attr_reader initiator(): ::Temporalio::Api::Enums::V1::ContinueAsNewInitiator::names | ::Integer + attr_writer initiator(): ::Temporalio::Api::Enums::V1::ContinueAsNewInitiator::names | ::Temporalio::Api::Enums::V1::ContinueAsNewInitiator::strings | ::Integer | ::Float + attr_reader initiator_const(): ::Integer + def clear_initiator: () -> void + + # 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 + attr_accessor failure(): ::Temporalio::Api::Failure::V1::Failure? + def has_failure?: () -> bool + def clear_failure: () -> void + + # The result from the most recent completed run of this workflow. The SDK surfaces this to the + # new run via APIs such as `GetLastCompletionResult`. + attr_accessor last_completion_result(): ::Temporalio::Api::Common::V1::Payloads? + def has_last_completion_result?: () -> bool + def clear_last_completion_result: () -> void + + attr_accessor header(): ::Temporalio::Api::Common::V1::Header? + def has_header?: () -> bool + def clear_header: () -> void + + attr_accessor memo(): ::Temporalio::Api::Common::V1::Memo? + def has_memo?: () -> bool + def clear_memo: () -> void + + attr_accessor search_attributes(): ::Temporalio::Api::Common::V1::SearchAttributes? + def has_search_attributes?: () -> bool + def clear_search_attributes: () -> void + + # 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 + attr_accessor inherit_build_id(): bool + def clear_inherit_build_id: () -> void + + # 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. + attr_reader initial_versioning_behavior(): ::Temporalio::Api::Enums::V1::ContinueAsNewVersioningBehavior::names | ::Integer + attr_writer initial_versioning_behavior(): ::Temporalio::Api::Enums::V1::ContinueAsNewVersioningBehavior::names | ::Temporalio::Api::Enums::V1::ContinueAsNewVersioningBehavior::strings | ::Integer | ::Float + attr_reader initial_versioning_behavior_const(): ::Integer + def clear_initial_versioning_behavior: () -> void + + type init_map = { + new_execution_run_id: (::String | ::Symbol)?, + "new_execution_run_id" => (::String | ::Symbol)?, + workflow_type: (::Temporalio::Api::Common::V1::WorkflowType | ::Temporalio::Api::Common::V1::WorkflowType::init_map)?, + "workflow_type" => (::Temporalio::Api::Common::V1::WorkflowType | ::Temporalio::Api::Common::V1::WorkflowType::init_map)?, + task_queue: (::Temporalio::Api::TaskQueue::V1::TaskQueue | ::Temporalio::Api::TaskQueue::V1::TaskQueue::init_map)?, + "task_queue" => (::Temporalio::Api::TaskQueue::V1::TaskQueue | ::Temporalio::Api::TaskQueue::V1::TaskQueue::init_map)?, + input: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + "input" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + workflow_run_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "workflow_run_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + workflow_task_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "workflow_task_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + workflow_task_completed_event_id: (::Integer | ::Float)?, + "workflow_task_completed_event_id" => (::Integer | ::Float)?, + backoff_start_interval: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "backoff_start_interval" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + initiator: (::Temporalio::Api::Enums::V1::ContinueAsNewInitiator::names | ::Temporalio::Api::Enums::V1::ContinueAsNewInitiator::strings | ::Integer | ::Float)?, + "initiator" => (::Temporalio::Api::Enums::V1::ContinueAsNewInitiator::names | ::Temporalio::Api::Enums::V1::ContinueAsNewInitiator::strings | ::Integer | ::Float)?, + failure: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + "failure" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + last_completion_result: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + "last_completion_result" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + header: (::Temporalio::Api::Common::V1::Header | ::Temporalio::Api::Common::V1::Header::init_map)?, + "header" => (::Temporalio::Api::Common::V1::Header | ::Temporalio::Api::Common::V1::Header::init_map)?, + memo: (::Temporalio::Api::Common::V1::Memo | ::Temporalio::Api::Common::V1::Memo::init_map)?, + "memo" => (::Temporalio::Api::Common::V1::Memo | ::Temporalio::Api::Common::V1::Memo::init_map)?, + search_attributes: (::Temporalio::Api::Common::V1::SearchAttributes | ::Temporalio::Api::Common::V1::SearchAttributes::init_map)?, + "search_attributes" => (::Temporalio::Api::Common::V1::SearchAttributes | ::Temporalio::Api::Common::V1::SearchAttributes::init_map)?, + inherit_build_id: bool?, + "inherit_build_id" => bool?, + initial_versioning_behavior: (::Temporalio::Api::Enums::V1::ContinueAsNewVersioningBehavior::names | ::Temporalio::Api::Enums::V1::ContinueAsNewVersioningBehavior::strings | ::Integer | ::Float)?, + "initial_versioning_behavior" => (::Temporalio::Api::Enums::V1::ContinueAsNewVersioningBehavior::names | ::Temporalio::Api::Enums::V1::ContinueAsNewVersioningBehavior::strings | ::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("new_execution_run_id" name) -> ::String + | ("workflow_type" name) -> ::Temporalio::Api::Common::V1::WorkflowType? + | ("task_queue" name) -> ::Temporalio::Api::TaskQueue::V1::TaskQueue? + | ("input" name) -> ::Temporalio::Api::Common::V1::Payloads? + | ("workflow_run_timeout" name) -> ::Google::Protobuf::Duration? + | ("workflow_task_timeout" name) -> ::Google::Protobuf::Duration? + | ("workflow_task_completed_event_id" name) -> ::Integer + | ("backoff_start_interval" name) -> ::Google::Protobuf::Duration? + | ("initiator" name) -> (::Temporalio::Api::Enums::V1::ContinueAsNewInitiator::names | ::Integer) + | ("failure" name) -> ::Temporalio::Api::Failure::V1::Failure? + | ("last_completion_result" name) -> ::Temporalio::Api::Common::V1::Payloads? + | ("header" name) -> ::Temporalio::Api::Common::V1::Header? + | ("memo" name) -> ::Temporalio::Api::Common::V1::Memo? + | ("search_attributes" name) -> ::Temporalio::Api::Common::V1::SearchAttributes? + | ("inherit_build_id" name) -> bool + | ("initial_versioning_behavior" name) -> (::Temporalio::Api::Enums::V1::ContinueAsNewVersioningBehavior::names | ::Integer) + + def []=: + ("new_execution_run_id" name, (::String | ::Symbol) value) -> void + | ("workflow_type" name, ::Temporalio::Api::Common::V1::WorkflowType? value) -> void + | ("task_queue" name, ::Temporalio::Api::TaskQueue::V1::TaskQueue? value) -> void + | ("input" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void + | ("workflow_run_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("workflow_task_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("workflow_task_completed_event_id" name, (::Integer | ::Float) value) -> void + | ("backoff_start_interval" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("initiator" name, (::Temporalio::Api::Enums::V1::ContinueAsNewInitiator::names | ::Temporalio::Api::Enums::V1::ContinueAsNewInitiator::strings | ::Integer | ::Float) value) -> void + | ("failure" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void + | ("last_completion_result" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void + | ("header" name, ::Temporalio::Api::Common::V1::Header? value) -> void + | ("memo" name, ::Temporalio::Api::Common::V1::Memo? value) -> void + | ("search_attributes" name, ::Temporalio::Api::Common::V1::SearchAttributes? value) -> void + | ("inherit_build_id" name, bool value) -> void + | ("initial_versioning_behavior" name, (::Temporalio::Api::Enums::V1::ContinueAsNewVersioningBehavior::names | ::Temporalio::Api::Enums::V1::ContinueAsNewVersioningBehavior::strings | ::Integer | ::Float) value) -> void + end + + class WorkflowTaskScheduledEventAttributes < ::Google::Protobuf::AbstractMessage + + # The task queue this workflow task was enqueued in, which could be a normal or sticky queue + attr_accessor task_queue(): ::Temporalio::Api::TaskQueue::V1::TaskQueue? + def has_task_queue?: () -> bool + def clear_task_queue: () -> void + + # 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. --) + attr_reader start_to_close_timeout(): ::Google::Protobuf::Duration? + attr_writer start_to_close_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_start_to_close_timeout?: () -> bool + def clear_start_to_close_timeout: () -> void + + # Starting at 1, how many attempts there have been to complete this task + attr_reader attempt(): ::Integer + attr_writer attempt(): ::Integer | ::Float + def clear_attempt: () -> void + + type init_map = { + task_queue: (::Temporalio::Api::TaskQueue::V1::TaskQueue | ::Temporalio::Api::TaskQueue::V1::TaskQueue::init_map)?, + "task_queue" => (::Temporalio::Api::TaskQueue::V1::TaskQueue | ::Temporalio::Api::TaskQueue::V1::TaskQueue::init_map)?, + start_to_close_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "start_to_close_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + attempt: (::Integer | ::Float)?, + "attempt" => (::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("task_queue" name) -> ::Temporalio::Api::TaskQueue::V1::TaskQueue? + | ("start_to_close_timeout" name) -> ::Google::Protobuf::Duration? + | ("attempt" name) -> ::Integer + + def []=: + ("task_queue" name, ::Temporalio::Api::TaskQueue::V1::TaskQueue? value) -> void + | ("start_to_close_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("attempt" name, (::Integer | ::Float) value) -> void + end + + class WorkflowTaskStartedEventAttributes < ::Google::Protobuf::AbstractMessage + + # The id of the `WORKFLOW_TASK_SCHEDULED` event this task corresponds to + attr_reader scheduled_event_id(): ::Integer + attr_writer scheduled_event_id(): ::Integer | ::Float + def clear_scheduled_event_id: () -> void + + # Identity of the worker who picked up this task + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + # 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. + attr_reader request_id(): ::String + attr_writer request_id(): ::String | ::Symbol + def clear_request_id: () -> void + + # True if this workflow should continue-as-new soon. See `suggest_continue_as_new_reasons` for why. + attr_accessor suggest_continue_as_new(): bool + def clear_suggest_continue_as_new: () -> void + + # The reason(s) that suggest_continue_as_new is true, if it is. + # Unset if suggest_continue_as_new is false. + attr_accessor suggest_continue_as_new_reasons(): ::Google::Protobuf::RepeatedField + attr_reader suggest_continue_as_new_reasons_const(): ::Array[::Integer] + def clear_suggest_continue_as_new_reasons: () -> void + + # True if Workflow's Target Worker Deployment Version is different from its Pinned Version and + # the workflow is Pinned. + # Experimental. + attr_accessor target_worker_deployment_version_changed(): bool + def clear_target_worker_deployment_version_changed: () -> void + + # 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. + attr_reader history_size_bytes(): ::Integer + attr_writer history_size_bytes(): ::Integer | ::Float + def clear_history_size_bytes: () -> void + + # 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 + attr_accessor worker_version(): ::Temporalio::Api::Common::V1::WorkerVersionStamp? + def has_worker_version?: () -> bool + def clear_worker_version: () -> void + + # 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 + attr_reader build_id_redirect_counter(): ::Integer + attr_writer build_id_redirect_counter(): ::Integer | ::Float + def clear_build_id_redirect_counter: () -> void + + type init_map = { + scheduled_event_id: (::Integer | ::Float)?, + "scheduled_event_id" => (::Integer | ::Float)?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + request_id: (::String | ::Symbol)?, + "request_id" => (::String | ::Symbol)?, + suggest_continue_as_new: bool?, + "suggest_continue_as_new" => bool?, + suggest_continue_as_new_reasons: ::Array[::Temporalio::Api::Enums::V1::SuggestContinueAsNewReason::names | ::Temporalio::Api::Enums::V1::SuggestContinueAsNewReason::strings | ::Integer | ::Float]?, + "suggest_continue_as_new_reasons" => ::Array[::Temporalio::Api::Enums::V1::SuggestContinueAsNewReason::names | ::Temporalio::Api::Enums::V1::SuggestContinueAsNewReason::strings | ::Integer | ::Float]?, + target_worker_deployment_version_changed: bool?, + "target_worker_deployment_version_changed" => bool?, + history_size_bytes: (::Integer | ::Float)?, + "history_size_bytes" => (::Integer | ::Float)?, + worker_version: (::Temporalio::Api::Common::V1::WorkerVersionStamp | ::Temporalio::Api::Common::V1::WorkerVersionStamp::init_map)?, + "worker_version" => (::Temporalio::Api::Common::V1::WorkerVersionStamp | ::Temporalio::Api::Common::V1::WorkerVersionStamp::init_map)?, + build_id_redirect_counter: (::Integer | ::Float)?, + "build_id_redirect_counter" => (::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("scheduled_event_id" name) -> ::Integer + | ("identity" name) -> ::String + | ("request_id" name) -> ::String + | ("suggest_continue_as_new" name) -> bool + | ("suggest_continue_as_new_reasons" name) -> (::Google::Protobuf::RepeatedField) + | ("target_worker_deployment_version_changed" name) -> bool + | ("history_size_bytes" name) -> ::Integer + | ("worker_version" name) -> ::Temporalio::Api::Common::V1::WorkerVersionStamp? + | ("build_id_redirect_counter" name) -> ::Integer + + def []=: + ("scheduled_event_id" name, (::Integer | ::Float) value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + | ("request_id" name, (::String | ::Symbol) value) -> void + | ("suggest_continue_as_new" name, bool value) -> void + | ("suggest_continue_as_new_reasons" name, (::Google::Protobuf::RepeatedField) value) -> void + | ("target_worker_deployment_version_changed" name, bool value) -> void + | ("history_size_bytes" name, (::Integer | ::Float) value) -> void + | ("worker_version" name, ::Temporalio::Api::Common::V1::WorkerVersionStamp? value) -> void + | ("build_id_redirect_counter" name, (::Integer | ::Float) value) -> void + end + + class WorkflowTaskCompletedEventAttributes < ::Google::Protobuf::AbstractMessage + + # The id of the `WORKFLOW_TASK_SCHEDULED` event this task corresponds to + attr_reader scheduled_event_id(): ::Integer + attr_writer scheduled_event_id(): ::Integer | ::Float + def clear_scheduled_event_id: () -> void + + # The id of the `WORKFLOW_TASK_STARTED` event this task corresponds to + attr_reader started_event_id(): ::Integer + attr_writer started_event_id(): ::Integer | ::Float + def clear_started_event_id: () -> void + + # Identity of the worker who completed this task + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + # Binary ID of the worker who completed this task + # Deprecated. Replaced with `deployment_version`. + # @deprecated + attr_reader binary_checksum(): ::String + attr_writer binary_checksum(): ::String | ::Symbol + def clear_binary_checksum: () -> void + + # 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 + attr_accessor worker_version(): ::Temporalio::Api::Common::V1::WorkerVersionStamp? + def has_worker_version?: () -> bool + def clear_worker_version: () -> void + + # Data the SDK wishes to record for itself, but server need not interpret, and does not + # directly impact workflow state. + attr_accessor sdk_metadata(): ::Temporalio::Api::Sdk::V1::WorkflowTaskCompletedMetadata? + def has_sdk_metadata?: () -> bool + def clear_sdk_metadata: () -> void + + # Local usage data sent during workflow task completion and recorded here for posterity + attr_accessor metering_metadata(): ::Temporalio::Api::Common::V1::MeteringMetadata? + def has_metering_metadata?: () -> bool + def clear_metering_metadata: () -> void + + # 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 + attr_accessor deployment(): ::Temporalio::Api::Deployment::V1::Deployment? + def has_deployment?: () -> bool + def clear_deployment: () -> void + + # 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`. + attr_reader versioning_behavior(): ::Temporalio::Api::Enums::V1::VersioningBehavior::names | ::Integer + attr_writer versioning_behavior(): ::Temporalio::Api::Enums::V1::VersioningBehavior::names | ::Temporalio::Api::Enums::V1::VersioningBehavior::strings | ::Integer | ::Float + attr_reader versioning_behavior_const(): ::Integer + def clear_versioning_behavior: () -> void + + # 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 + attr_reader worker_deployment_version(): ::String + attr_writer worker_deployment_version(): ::String | ::Symbol + def clear_worker_deployment_version: () -> void + + # 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. + attr_reader worker_deployment_name(): ::String + attr_writer worker_deployment_name(): ::String | ::Symbol + def clear_worker_deployment_name: () -> void + + # 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. + attr_accessor deployment_version(): ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? + def has_deployment_version?: () -> bool + def clear_deployment_version: () -> void + + type init_map = { + scheduled_event_id: (::Integer | ::Float)?, + "scheduled_event_id" => (::Integer | ::Float)?, + started_event_id: (::Integer | ::Float)?, + "started_event_id" => (::Integer | ::Float)?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + binary_checksum: (::String | ::Symbol)?, + "binary_checksum" => (::String | ::Symbol)?, + worker_version: (::Temporalio::Api::Common::V1::WorkerVersionStamp | ::Temporalio::Api::Common::V1::WorkerVersionStamp::init_map)?, + "worker_version" => (::Temporalio::Api::Common::V1::WorkerVersionStamp | ::Temporalio::Api::Common::V1::WorkerVersionStamp::init_map)?, + sdk_metadata: (::Temporalio::Api::Sdk::V1::WorkflowTaskCompletedMetadata | ::Temporalio::Api::Sdk::V1::WorkflowTaskCompletedMetadata::init_map)?, + "sdk_metadata" => (::Temporalio::Api::Sdk::V1::WorkflowTaskCompletedMetadata | ::Temporalio::Api::Sdk::V1::WorkflowTaskCompletedMetadata::init_map)?, + metering_metadata: (::Temporalio::Api::Common::V1::MeteringMetadata | ::Temporalio::Api::Common::V1::MeteringMetadata::init_map)?, + "metering_metadata" => (::Temporalio::Api::Common::V1::MeteringMetadata | ::Temporalio::Api::Common::V1::MeteringMetadata::init_map)?, + deployment: (::Temporalio::Api::Deployment::V1::Deployment | ::Temporalio::Api::Deployment::V1::Deployment::init_map)?, + "deployment" => (::Temporalio::Api::Deployment::V1::Deployment | ::Temporalio::Api::Deployment::V1::Deployment::init_map)?, + versioning_behavior: (::Temporalio::Api::Enums::V1::VersioningBehavior::names | ::Temporalio::Api::Enums::V1::VersioningBehavior::strings | ::Integer | ::Float)?, + "versioning_behavior" => (::Temporalio::Api::Enums::V1::VersioningBehavior::names | ::Temporalio::Api::Enums::V1::VersioningBehavior::strings | ::Integer | ::Float)?, + worker_deployment_version: (::String | ::Symbol)?, + "worker_deployment_version" => (::String | ::Symbol)?, + worker_deployment_name: (::String | ::Symbol)?, + "worker_deployment_name" => (::String | ::Symbol)?, + deployment_version: (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?, + "deployment_version" => (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("scheduled_event_id" name) -> ::Integer + | ("started_event_id" name) -> ::Integer + | ("identity" name) -> ::String + | ("binary_checksum" name) -> ::String + | ("worker_version" name) -> ::Temporalio::Api::Common::V1::WorkerVersionStamp? + | ("sdk_metadata" name) -> ::Temporalio::Api::Sdk::V1::WorkflowTaskCompletedMetadata? + | ("metering_metadata" name) -> ::Temporalio::Api::Common::V1::MeteringMetadata? + | ("deployment" name) -> ::Temporalio::Api::Deployment::V1::Deployment? + | ("versioning_behavior" name) -> (::Temporalio::Api::Enums::V1::VersioningBehavior::names | ::Integer) + | ("worker_deployment_version" name) -> ::String + | ("worker_deployment_name" name) -> ::String + | ("deployment_version" name) -> ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? + + def []=: + ("scheduled_event_id" name, (::Integer | ::Float) value) -> void + | ("started_event_id" name, (::Integer | ::Float) value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + | ("binary_checksum" name, (::String | ::Symbol) value) -> void + | ("worker_version" name, ::Temporalio::Api::Common::V1::WorkerVersionStamp? value) -> void + | ("sdk_metadata" name, ::Temporalio::Api::Sdk::V1::WorkflowTaskCompletedMetadata? value) -> void + | ("metering_metadata" name, ::Temporalio::Api::Common::V1::MeteringMetadata? value) -> void + | ("deployment" name, ::Temporalio::Api::Deployment::V1::Deployment? value) -> void + | ("versioning_behavior" name, (::Temporalio::Api::Enums::V1::VersioningBehavior::names | ::Temporalio::Api::Enums::V1::VersioningBehavior::strings | ::Integer | ::Float) value) -> void + | ("worker_deployment_version" name, (::String | ::Symbol) value) -> void + | ("worker_deployment_name" name, (::String | ::Symbol) value) -> void + | ("deployment_version" name, ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? value) -> void + end + + class WorkflowTaskTimedOutEventAttributes < ::Google::Protobuf::AbstractMessage + + # The id of the `WORKFLOW_TASK_SCHEDULED` event this task corresponds to + attr_reader scheduled_event_id(): ::Integer + attr_writer scheduled_event_id(): ::Integer | ::Float + def clear_scheduled_event_id: () -> void + + # The id of the `WORKFLOW_TASK_STARTED` event this task corresponds to + attr_reader started_event_id(): ::Integer + attr_writer started_event_id(): ::Integer | ::Float + def clear_started_event_id: () -> void + + attr_reader timeout_type(): ::Temporalio::Api::Enums::V1::TimeoutType::names | ::Integer + attr_writer timeout_type(): ::Temporalio::Api::Enums::V1::TimeoutType::names | ::Temporalio::Api::Enums::V1::TimeoutType::strings | ::Integer | ::Float + attr_reader timeout_type_const(): ::Integer + def clear_timeout_type: () -> void + + type init_map = { + scheduled_event_id: (::Integer | ::Float)?, + "scheduled_event_id" => (::Integer | ::Float)?, + started_event_id: (::Integer | ::Float)?, + "started_event_id" => (::Integer | ::Float)?, + timeout_type: (::Temporalio::Api::Enums::V1::TimeoutType::names | ::Temporalio::Api::Enums::V1::TimeoutType::strings | ::Integer | ::Float)?, + "timeout_type" => (::Temporalio::Api::Enums::V1::TimeoutType::names | ::Temporalio::Api::Enums::V1::TimeoutType::strings | ::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("scheduled_event_id" name) -> ::Integer + | ("started_event_id" name) -> ::Integer + | ("timeout_type" name) -> (::Temporalio::Api::Enums::V1::TimeoutType::names | ::Integer) + + def []=: + ("scheduled_event_id" name, (::Integer | ::Float) value) -> void + | ("started_event_id" name, (::Integer | ::Float) value) -> void + | ("timeout_type" name, (::Temporalio::Api::Enums::V1::TimeoutType::names | ::Temporalio::Api::Enums::V1::TimeoutType::strings | ::Integer | ::Float) value) -> void + end + + class WorkflowTaskFailedEventAttributes < ::Google::Protobuf::AbstractMessage + + # The id of the `WORKFLOW_TASK_SCHEDULED` event this task corresponds to + attr_reader scheduled_event_id(): ::Integer + attr_writer scheduled_event_id(): ::Integer | ::Float + def clear_scheduled_event_id: () -> void + + # The id of the `WORKFLOW_TASK_STARTED` event this task corresponds to + attr_reader started_event_id(): ::Integer + attr_writer started_event_id(): ::Integer | ::Float + def clear_started_event_id: () -> void + + attr_reader cause(): ::Temporalio::Api::Enums::V1::WorkflowTaskFailedCause::names | ::Integer + attr_writer cause(): ::Temporalio::Api::Enums::V1::WorkflowTaskFailedCause::names | ::Temporalio::Api::Enums::V1::WorkflowTaskFailedCause::strings | ::Integer | ::Float + attr_reader cause_const(): ::Integer + def clear_cause: () -> void + + # The failure details + attr_accessor failure(): ::Temporalio::Api::Failure::V1::Failure? + def has_failure?: () -> bool + def clear_failure: () -> void + + # 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'. + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + # The original run id of the workflow. For reset workflow. + attr_reader base_run_id(): ::String + attr_writer base_run_id(): ::String | ::Symbol + def clear_base_run_id: () -> void + + # If the workflow is being reset, the new run id. + attr_reader new_run_id(): ::String + attr_writer new_run_id(): ::String | ::Symbol + def clear_new_run_id: () -> void + + # Version of the event where the history branch was forked. Used by multi-cluster replication + # during resets to identify the correct history branch. + attr_reader fork_event_version(): ::Integer + attr_writer fork_event_version(): ::Integer | ::Float + def clear_fork_event_version: () -> void + + # 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 + attr_reader binary_checksum(): ::String + attr_writer binary_checksum(): ::String | ::Symbol + def clear_binary_checksum: () -> void + + # 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 + attr_accessor worker_version(): ::Temporalio::Api::Common::V1::WorkerVersionStamp? + def has_worker_version?: () -> bool + def clear_worker_version: () -> void + + type init_map = { + scheduled_event_id: (::Integer | ::Float)?, + "scheduled_event_id" => (::Integer | ::Float)?, + started_event_id: (::Integer | ::Float)?, + "started_event_id" => (::Integer | ::Float)?, + cause: (::Temporalio::Api::Enums::V1::WorkflowTaskFailedCause::names | ::Temporalio::Api::Enums::V1::WorkflowTaskFailedCause::strings | ::Integer | ::Float)?, + "cause" => (::Temporalio::Api::Enums::V1::WorkflowTaskFailedCause::names | ::Temporalio::Api::Enums::V1::WorkflowTaskFailedCause::strings | ::Integer | ::Float)?, + failure: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + "failure" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + base_run_id: (::String | ::Symbol)?, + "base_run_id" => (::String | ::Symbol)?, + new_run_id: (::String | ::Symbol)?, + "new_run_id" => (::String | ::Symbol)?, + fork_event_version: (::Integer | ::Float)?, + "fork_event_version" => (::Integer | ::Float)?, + binary_checksum: (::String | ::Symbol)?, + "binary_checksum" => (::String | ::Symbol)?, + worker_version: (::Temporalio::Api::Common::V1::WorkerVersionStamp | ::Temporalio::Api::Common::V1::WorkerVersionStamp::init_map)?, + "worker_version" => (::Temporalio::Api::Common::V1::WorkerVersionStamp | ::Temporalio::Api::Common::V1::WorkerVersionStamp::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("scheduled_event_id" name) -> ::Integer + | ("started_event_id" name) -> ::Integer + | ("cause" name) -> (::Temporalio::Api::Enums::V1::WorkflowTaskFailedCause::names | ::Integer) + | ("failure" name) -> ::Temporalio::Api::Failure::V1::Failure? + | ("identity" name) -> ::String + | ("base_run_id" name) -> ::String + | ("new_run_id" name) -> ::String + | ("fork_event_version" name) -> ::Integer + | ("binary_checksum" name) -> ::String + | ("worker_version" name) -> ::Temporalio::Api::Common::V1::WorkerVersionStamp? + + def []=: + ("scheduled_event_id" name, (::Integer | ::Float) value) -> void + | ("started_event_id" name, (::Integer | ::Float) value) -> void + | ("cause" name, (::Temporalio::Api::Enums::V1::WorkflowTaskFailedCause::names | ::Temporalio::Api::Enums::V1::WorkflowTaskFailedCause::strings | ::Integer | ::Float) value) -> void + | ("failure" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + | ("base_run_id" name, (::String | ::Symbol) value) -> void + | ("new_run_id" name, (::String | ::Symbol) value) -> void + | ("fork_event_version" name, (::Integer | ::Float) value) -> void + | ("binary_checksum" name, (::String | ::Symbol) value) -> void + | ("worker_version" name, ::Temporalio::Api::Common::V1::WorkerVersionStamp? value) -> void + end + + class ActivityTaskScheduledEventAttributes < ::Google::Protobuf::AbstractMessage + + # The worker/user assigned identifier for the activity + attr_reader activity_id(): ::String + attr_writer activity_id(): ::String | ::Symbol + def clear_activity_id: () -> void + + attr_accessor activity_type(): ::Temporalio::Api::Common::V1::ActivityType? + def has_activity_type?: () -> bool + def clear_activity_type: () -> void + + attr_accessor task_queue(): ::Temporalio::Api::TaskQueue::V1::TaskQueue? + def has_task_queue?: () -> bool + def clear_task_queue: () -> void + + attr_accessor header(): ::Temporalio::Api::Common::V1::Header? + def has_header?: () -> bool + def clear_header: () -> void + + attr_accessor input(): ::Temporalio::Api::Common::V1::Payloads? + def has_input?: () -> bool + def clear_input: () -> void + + # 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. --) + attr_reader schedule_to_close_timeout(): ::Google::Protobuf::Duration? + attr_writer schedule_to_close_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_schedule_to_close_timeout?: () -> bool + def clear_schedule_to_close_timeout: () -> void + + # 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. --) + attr_reader schedule_to_start_timeout(): ::Google::Protobuf::Duration? + attr_writer schedule_to_start_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_schedule_to_start_timeout?: () -> bool + def clear_schedule_to_start_timeout: () -> void + + # 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. --) + attr_reader start_to_close_timeout(): ::Google::Protobuf::Duration? + attr_writer start_to_close_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_start_to_close_timeout?: () -> bool + def clear_start_to_close_timeout: () -> void + + # Maximum permitted time between successful worker heartbeats. + attr_reader heartbeat_timeout(): ::Google::Protobuf::Duration? + attr_writer heartbeat_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_heartbeat_timeout?: () -> bool + def clear_heartbeat_timeout: () -> void + + # The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + attr_reader workflow_task_completed_event_id(): ::Integer + attr_writer workflow_task_completed_event_id(): ::Integer | ::Float + def clear_workflow_task_completed_event_id: () -> void + + # 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. + attr_accessor retry_policy(): ::Temporalio::Api::Common::V1::RetryPolicy? + def has_retry_policy?: () -> bool + def clear_retry_policy: () -> void + + # 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 + attr_accessor use_workflow_build_id(): bool + def clear_use_workflow_build_id: () -> void + + # Priority metadata. If this message is not present, or any fields are not + # present, they inherit the values from the workflow. + attr_accessor priority(): ::Temporalio::Api::Common::V1::Priority? + def has_priority?: () -> bool + def clear_priority: () -> void + + type init_map = { + activity_id: (::String | ::Symbol)?, + "activity_id" => (::String | ::Symbol)?, + activity_type: (::Temporalio::Api::Common::V1::ActivityType | ::Temporalio::Api::Common::V1::ActivityType::init_map)?, + "activity_type" => (::Temporalio::Api::Common::V1::ActivityType | ::Temporalio::Api::Common::V1::ActivityType::init_map)?, + task_queue: (::Temporalio::Api::TaskQueue::V1::TaskQueue | ::Temporalio::Api::TaskQueue::V1::TaskQueue::init_map)?, + "task_queue" => (::Temporalio::Api::TaskQueue::V1::TaskQueue | ::Temporalio::Api::TaskQueue::V1::TaskQueue::init_map)?, + header: (::Temporalio::Api::Common::V1::Header | ::Temporalio::Api::Common::V1::Header::init_map)?, + "header" => (::Temporalio::Api::Common::V1::Header | ::Temporalio::Api::Common::V1::Header::init_map)?, + input: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + "input" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + schedule_to_close_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "schedule_to_close_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + schedule_to_start_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "schedule_to_start_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + start_to_close_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "start_to_close_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + heartbeat_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "heartbeat_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + workflow_task_completed_event_id: (::Integer | ::Float)?, + "workflow_task_completed_event_id" => (::Integer | ::Float)?, + retry_policy: (::Temporalio::Api::Common::V1::RetryPolicy | ::Temporalio::Api::Common::V1::RetryPolicy::init_map)?, + "retry_policy" => (::Temporalio::Api::Common::V1::RetryPolicy | ::Temporalio::Api::Common::V1::RetryPolicy::init_map)?, + use_workflow_build_id: bool?, + "use_workflow_build_id" => bool?, + priority: (::Temporalio::Api::Common::V1::Priority | ::Temporalio::Api::Common::V1::Priority::init_map)?, + "priority" => (::Temporalio::Api::Common::V1::Priority | ::Temporalio::Api::Common::V1::Priority::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("activity_id" name) -> ::String + | ("activity_type" name) -> ::Temporalio::Api::Common::V1::ActivityType? + | ("task_queue" name) -> ::Temporalio::Api::TaskQueue::V1::TaskQueue? + | ("header" name) -> ::Temporalio::Api::Common::V1::Header? + | ("input" name) -> ::Temporalio::Api::Common::V1::Payloads? + | ("schedule_to_close_timeout" name) -> ::Google::Protobuf::Duration? + | ("schedule_to_start_timeout" name) -> ::Google::Protobuf::Duration? + | ("start_to_close_timeout" name) -> ::Google::Protobuf::Duration? + | ("heartbeat_timeout" name) -> ::Google::Protobuf::Duration? + | ("workflow_task_completed_event_id" name) -> ::Integer + | ("retry_policy" name) -> ::Temporalio::Api::Common::V1::RetryPolicy? + | ("use_workflow_build_id" name) -> bool + | ("priority" name) -> ::Temporalio::Api::Common::V1::Priority? + + def []=: + ("activity_id" name, (::String | ::Symbol) value) -> void + | ("activity_type" name, ::Temporalio::Api::Common::V1::ActivityType? value) -> void + | ("task_queue" name, ::Temporalio::Api::TaskQueue::V1::TaskQueue? value) -> void + | ("header" name, ::Temporalio::Api::Common::V1::Header? value) -> void + | ("input" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void + | ("schedule_to_close_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("schedule_to_start_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("start_to_close_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("heartbeat_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("workflow_task_completed_event_id" name, (::Integer | ::Float) value) -> void + | ("retry_policy" name, ::Temporalio::Api::Common::V1::RetryPolicy? value) -> void + | ("use_workflow_build_id" name, bool value) -> void + | ("priority" name, ::Temporalio::Api::Common::V1::Priority? value) -> void + end + + class ActivityTaskStartedEventAttributes < ::Google::Protobuf::AbstractMessage + + # The id of the `ACTIVITY_TASK_SCHEDULED` event this task corresponds to + attr_reader scheduled_event_id(): ::Integer + attr_writer scheduled_event_id(): ::Integer | ::Float + def clear_scheduled_event_id: () -> void + + # id of the worker that picked up this task + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + # 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. + attr_reader request_id(): ::String + attr_writer request_id(): ::String | ::Symbol + def clear_request_id: () -> void + + # Starting at 1, the number of times this task has been attempted + attr_reader attempt(): ::Integer + attr_writer attempt(): ::Integer | ::Float + def clear_attempt: () -> void + + # Will be set to the most recent failure details, if this task has previously failed and then + # been retried. + attr_accessor last_failure(): ::Temporalio::Api::Failure::V1::Failure? + def has_last_failure?: () -> bool + def clear_last_failure: () -> void + + # 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 + attr_accessor worker_version(): ::Temporalio::Api::Common::V1::WorkerVersionStamp? + def has_worker_version?: () -> bool + def clear_worker_version: () -> void + + # 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 + attr_reader build_id_redirect_counter(): ::Integer + attr_writer build_id_redirect_counter(): ::Integer | ::Float + def clear_build_id_redirect_counter: () -> void + + type init_map = { + scheduled_event_id: (::Integer | ::Float)?, + "scheduled_event_id" => (::Integer | ::Float)?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + request_id: (::String | ::Symbol)?, + "request_id" => (::String | ::Symbol)?, + attempt: (::Integer | ::Float)?, + "attempt" => (::Integer | ::Float)?, + last_failure: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + "last_failure" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + worker_version: (::Temporalio::Api::Common::V1::WorkerVersionStamp | ::Temporalio::Api::Common::V1::WorkerVersionStamp::init_map)?, + "worker_version" => (::Temporalio::Api::Common::V1::WorkerVersionStamp | ::Temporalio::Api::Common::V1::WorkerVersionStamp::init_map)?, + build_id_redirect_counter: (::Integer | ::Float)?, + "build_id_redirect_counter" => (::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("scheduled_event_id" name) -> ::Integer + | ("identity" name) -> ::String + | ("request_id" name) -> ::String + | ("attempt" name) -> ::Integer + | ("last_failure" name) -> ::Temporalio::Api::Failure::V1::Failure? + | ("worker_version" name) -> ::Temporalio::Api::Common::V1::WorkerVersionStamp? + | ("build_id_redirect_counter" name) -> ::Integer + + def []=: + ("scheduled_event_id" name, (::Integer | ::Float) value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + | ("request_id" name, (::String | ::Symbol) value) -> void + | ("attempt" name, (::Integer | ::Float) value) -> void + | ("last_failure" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void + | ("worker_version" name, ::Temporalio::Api::Common::V1::WorkerVersionStamp? value) -> void + | ("build_id_redirect_counter" name, (::Integer | ::Float) value) -> void + end + + class ActivityTaskCompletedEventAttributes < ::Google::Protobuf::AbstractMessage + + # Serialized results of the activity. IE: The return value of the activity function + attr_accessor result(): ::Temporalio::Api::Common::V1::Payloads? + def has_result?: () -> bool + def clear_result: () -> void + + # The id of the `ACTIVITY_TASK_SCHEDULED` event this completion corresponds to + attr_reader scheduled_event_id(): ::Integer + attr_writer scheduled_event_id(): ::Integer | ::Float + def clear_scheduled_event_id: () -> void + + # The id of the `ACTIVITY_TASK_STARTED` event this completion corresponds to + attr_reader started_event_id(): ::Integer + attr_writer started_event_id(): ::Integer | ::Float + def clear_started_event_id: () -> void + + # id of the worker that completed this task + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + # 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 + attr_accessor worker_version(): ::Temporalio::Api::Common::V1::WorkerVersionStamp? + def has_worker_version?: () -> bool + def clear_worker_version: () -> void + + type init_map = { + result: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + "result" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + scheduled_event_id: (::Integer | ::Float)?, + "scheduled_event_id" => (::Integer | ::Float)?, + started_event_id: (::Integer | ::Float)?, + "started_event_id" => (::Integer | ::Float)?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + worker_version: (::Temporalio::Api::Common::V1::WorkerVersionStamp | ::Temporalio::Api::Common::V1::WorkerVersionStamp::init_map)?, + "worker_version" => (::Temporalio::Api::Common::V1::WorkerVersionStamp | ::Temporalio::Api::Common::V1::WorkerVersionStamp::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("result" name) -> ::Temporalio::Api::Common::V1::Payloads? + | ("scheduled_event_id" name) -> ::Integer + | ("started_event_id" name) -> ::Integer + | ("identity" name) -> ::String + | ("worker_version" name) -> ::Temporalio::Api::Common::V1::WorkerVersionStamp? + + def []=: + ("result" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void + | ("scheduled_event_id" name, (::Integer | ::Float) value) -> void + | ("started_event_id" name, (::Integer | ::Float) value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + | ("worker_version" name, ::Temporalio::Api::Common::V1::WorkerVersionStamp? value) -> void + end + + class ActivityTaskFailedEventAttributes < ::Google::Protobuf::AbstractMessage + + # Failure details + attr_accessor failure(): ::Temporalio::Api::Failure::V1::Failure? + def has_failure?: () -> bool + def clear_failure: () -> void + + # The id of the `ACTIVITY_TASK_SCHEDULED` event this failure corresponds to + attr_reader scheduled_event_id(): ::Integer + attr_writer scheduled_event_id(): ::Integer | ::Float + def clear_scheduled_event_id: () -> void + + # The id of the `ACTIVITY_TASK_STARTED` event this failure corresponds to + attr_reader started_event_id(): ::Integer + attr_writer started_event_id(): ::Integer | ::Float + def clear_started_event_id: () -> void + + # id of the worker that failed this task + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + attr_reader retry_state(): ::Temporalio::Api::Enums::V1::RetryState::names | ::Integer + attr_writer retry_state(): ::Temporalio::Api::Enums::V1::RetryState::names | ::Temporalio::Api::Enums::V1::RetryState::strings | ::Integer | ::Float + attr_reader retry_state_const(): ::Integer + def clear_retry_state: () -> void + + # 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 + attr_accessor worker_version(): ::Temporalio::Api::Common::V1::WorkerVersionStamp? + def has_worker_version?: () -> bool + def clear_worker_version: () -> void + + type init_map = { + failure: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + "failure" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + scheduled_event_id: (::Integer | ::Float)?, + "scheduled_event_id" => (::Integer | ::Float)?, + started_event_id: (::Integer | ::Float)?, + "started_event_id" => (::Integer | ::Float)?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + retry_state: (::Temporalio::Api::Enums::V1::RetryState::names | ::Temporalio::Api::Enums::V1::RetryState::strings | ::Integer | ::Float)?, + "retry_state" => (::Temporalio::Api::Enums::V1::RetryState::names | ::Temporalio::Api::Enums::V1::RetryState::strings | ::Integer | ::Float)?, + worker_version: (::Temporalio::Api::Common::V1::WorkerVersionStamp | ::Temporalio::Api::Common::V1::WorkerVersionStamp::init_map)?, + "worker_version" => (::Temporalio::Api::Common::V1::WorkerVersionStamp | ::Temporalio::Api::Common::V1::WorkerVersionStamp::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("failure" name) -> ::Temporalio::Api::Failure::V1::Failure? + | ("scheduled_event_id" name) -> ::Integer + | ("started_event_id" name) -> ::Integer + | ("identity" name) -> ::String + | ("retry_state" name) -> (::Temporalio::Api::Enums::V1::RetryState::names | ::Integer) + | ("worker_version" name) -> ::Temporalio::Api::Common::V1::WorkerVersionStamp? + + def []=: + ("failure" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void + | ("scheduled_event_id" name, (::Integer | ::Float) value) -> void + | ("started_event_id" name, (::Integer | ::Float) value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + | ("retry_state" name, (::Temporalio::Api::Enums::V1::RetryState::names | ::Temporalio::Api::Enums::V1::RetryState::strings | ::Integer | ::Float) value) -> void + | ("worker_version" name, ::Temporalio::Api::Common::V1::WorkerVersionStamp? value) -> void + end + + class ActivityTaskTimedOutEventAttributes < ::Google::Protobuf::AbstractMessage + + # If this activity had failed, was retried, and then timed out, that failure is stored as the + # `cause` in here. + attr_accessor failure(): ::Temporalio::Api::Failure::V1::Failure? + def has_failure?: () -> bool + def clear_failure: () -> void + + # The id of the `ACTIVITY_TASK_SCHEDULED` event this timeout corresponds to + attr_reader scheduled_event_id(): ::Integer + attr_writer scheduled_event_id(): ::Integer | ::Float + def clear_scheduled_event_id: () -> void + + # The id of the `ACTIVITY_TASK_STARTED` event this timeout corresponds to + attr_reader started_event_id(): ::Integer + attr_writer started_event_id(): ::Integer | ::Float + def clear_started_event_id: () -> void + + attr_reader retry_state(): ::Temporalio::Api::Enums::V1::RetryState::names | ::Integer + attr_writer retry_state(): ::Temporalio::Api::Enums::V1::RetryState::names | ::Temporalio::Api::Enums::V1::RetryState::strings | ::Integer | ::Float + attr_reader retry_state_const(): ::Integer + def clear_retry_state: () -> void + + type init_map = { + failure: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + "failure" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + scheduled_event_id: (::Integer | ::Float)?, + "scheduled_event_id" => (::Integer | ::Float)?, + started_event_id: (::Integer | ::Float)?, + "started_event_id" => (::Integer | ::Float)?, + retry_state: (::Temporalio::Api::Enums::V1::RetryState::names | ::Temporalio::Api::Enums::V1::RetryState::strings | ::Integer | ::Float)?, + "retry_state" => (::Temporalio::Api::Enums::V1::RetryState::names | ::Temporalio::Api::Enums::V1::RetryState::strings | ::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("failure" name) -> ::Temporalio::Api::Failure::V1::Failure? + | ("scheduled_event_id" name) -> ::Integer + | ("started_event_id" name) -> ::Integer + | ("retry_state" name) -> (::Temporalio::Api::Enums::V1::RetryState::names | ::Integer) + + def []=: + ("failure" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void + | ("scheduled_event_id" name, (::Integer | ::Float) value) -> void + | ("started_event_id" name, (::Integer | ::Float) value) -> void + | ("retry_state" name, (::Temporalio::Api::Enums::V1::RetryState::names | ::Temporalio::Api::Enums::V1::RetryState::strings | ::Integer | ::Float) value) -> void + end + + class ActivityTaskCancelRequestedEventAttributes < ::Google::Protobuf::AbstractMessage + + # The id of the `ACTIVITY_TASK_SCHEDULED` event this cancel request corresponds to + attr_reader scheduled_event_id(): ::Integer + attr_writer scheduled_event_id(): ::Integer | ::Float + def clear_scheduled_event_id: () -> void + + # The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + attr_reader workflow_task_completed_event_id(): ::Integer + attr_writer workflow_task_completed_event_id(): ::Integer | ::Float + def clear_workflow_task_completed_event_id: () -> void + + type init_map = { + scheduled_event_id: (::Integer | ::Float)?, + "scheduled_event_id" => (::Integer | ::Float)?, + workflow_task_completed_event_id: (::Integer | ::Float)?, + "workflow_task_completed_event_id" => (::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("scheduled_event_id" name) -> ::Integer + | ("workflow_task_completed_event_id" name) -> ::Integer + + def []=: + ("scheduled_event_id" name, (::Integer | ::Float) value) -> void + | ("workflow_task_completed_event_id" name, (::Integer | ::Float) value) -> void + end + + class ActivityTaskCanceledEventAttributes < ::Google::Protobuf::AbstractMessage + + # Additional information that the activity reported upon confirming cancellation + attr_accessor details(): ::Temporalio::Api::Common::V1::Payloads? + def has_details?: () -> bool + def clear_details: () -> void + + # id of the most recent `ACTIVITY_TASK_CANCEL_REQUESTED` event which refers to the same + # activity + attr_reader latest_cancel_requested_event_id(): ::Integer + attr_writer latest_cancel_requested_event_id(): ::Integer | ::Float + def clear_latest_cancel_requested_event_id: () -> void + + # The id of the `ACTIVITY_TASK_SCHEDULED` event this cancel confirmation corresponds to + attr_reader scheduled_event_id(): ::Integer + attr_writer scheduled_event_id(): ::Integer | ::Float + def clear_scheduled_event_id: () -> void + + # The id of the `ACTIVITY_TASK_STARTED` event this cancel confirmation corresponds to + attr_reader started_event_id(): ::Integer + attr_writer started_event_id(): ::Integer | ::Float + def clear_started_event_id: () -> void + + # id of the worker who canceled this activity + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + # 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 + attr_accessor worker_version(): ::Temporalio::Api::Common::V1::WorkerVersionStamp? + def has_worker_version?: () -> bool + def clear_worker_version: () -> void + + type init_map = { + details: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + "details" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + latest_cancel_requested_event_id: (::Integer | ::Float)?, + "latest_cancel_requested_event_id" => (::Integer | ::Float)?, + scheduled_event_id: (::Integer | ::Float)?, + "scheduled_event_id" => (::Integer | ::Float)?, + started_event_id: (::Integer | ::Float)?, + "started_event_id" => (::Integer | ::Float)?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + worker_version: (::Temporalio::Api::Common::V1::WorkerVersionStamp | ::Temporalio::Api::Common::V1::WorkerVersionStamp::init_map)?, + "worker_version" => (::Temporalio::Api::Common::V1::WorkerVersionStamp | ::Temporalio::Api::Common::V1::WorkerVersionStamp::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("details" name) -> ::Temporalio::Api::Common::V1::Payloads? + | ("latest_cancel_requested_event_id" name) -> ::Integer + | ("scheduled_event_id" name) -> ::Integer + | ("started_event_id" name) -> ::Integer + | ("identity" name) -> ::String + | ("worker_version" name) -> ::Temporalio::Api::Common::V1::WorkerVersionStamp? + + def []=: + ("details" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void + | ("latest_cancel_requested_event_id" name, (::Integer | ::Float) value) -> void + | ("scheduled_event_id" name, (::Integer | ::Float) value) -> void + | ("started_event_id" name, (::Integer | ::Float) value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + | ("worker_version" name, ::Temporalio::Api::Common::V1::WorkerVersionStamp? value) -> void + end + + class TimerStartedEventAttributes < ::Google::Protobuf::AbstractMessage + + # The worker/user assigned id for this timer + attr_reader timer_id(): ::String + attr_writer timer_id(): ::String | ::Symbol + def clear_timer_id: () -> void + + # How long until this timer fires + # (-- api-linter: core::0140::prepositions=disabled + # aip.dev/not-precedent: "to" is used to indicate interval. --) + attr_reader start_to_fire_timeout(): ::Google::Protobuf::Duration? + attr_writer start_to_fire_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_start_to_fire_timeout?: () -> bool + def clear_start_to_fire_timeout: () -> void + + # The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + attr_reader workflow_task_completed_event_id(): ::Integer + attr_writer workflow_task_completed_event_id(): ::Integer | ::Float + def clear_workflow_task_completed_event_id: () -> void + + type init_map = { + timer_id: (::String | ::Symbol)?, + "timer_id" => (::String | ::Symbol)?, + start_to_fire_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "start_to_fire_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + workflow_task_completed_event_id: (::Integer | ::Float)?, + "workflow_task_completed_event_id" => (::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("timer_id" name) -> ::String + | ("start_to_fire_timeout" name) -> ::Google::Protobuf::Duration? + | ("workflow_task_completed_event_id" name) -> ::Integer + + def []=: + ("timer_id" name, (::String | ::Symbol) value) -> void + | ("start_to_fire_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("workflow_task_completed_event_id" name, (::Integer | ::Float) value) -> void + end + + class TimerFiredEventAttributes < ::Google::Protobuf::AbstractMessage + + # Will match the `timer_id` from `TIMER_STARTED` event for this timer + attr_reader timer_id(): ::String + attr_writer timer_id(): ::String | ::Symbol + def clear_timer_id: () -> void + + # The id of the `TIMER_STARTED` event itself + attr_reader started_event_id(): ::Integer + attr_writer started_event_id(): ::Integer | ::Float + def clear_started_event_id: () -> void + + type init_map = { + timer_id: (::String | ::Symbol)?, + "timer_id" => (::String | ::Symbol)?, + started_event_id: (::Integer | ::Float)?, + "started_event_id" => (::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("timer_id" name) -> ::String + | ("started_event_id" name) -> ::Integer + + def []=: + ("timer_id" name, (::String | ::Symbol) value) -> void + | ("started_event_id" name, (::Integer | ::Float) value) -> void + end + + class TimerCanceledEventAttributes < ::Google::Protobuf::AbstractMessage + + # Will match the `timer_id` from `TIMER_STARTED` event for this timer + attr_reader timer_id(): ::String + attr_writer timer_id(): ::String | ::Symbol + def clear_timer_id: () -> void + + # The id of the `TIMER_STARTED` event itself + attr_reader started_event_id(): ::Integer + attr_writer started_event_id(): ::Integer | ::Float + def clear_started_event_id: () -> void + + # The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + attr_reader workflow_task_completed_event_id(): ::Integer + attr_writer workflow_task_completed_event_id(): ::Integer | ::Float + def clear_workflow_task_completed_event_id: () -> void + + # The id of the worker who requested this cancel + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + type init_map = { + timer_id: (::String | ::Symbol)?, + "timer_id" => (::String | ::Symbol)?, + started_event_id: (::Integer | ::Float)?, + "started_event_id" => (::Integer | ::Float)?, + workflow_task_completed_event_id: (::Integer | ::Float)?, + "workflow_task_completed_event_id" => (::Integer | ::Float)?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("timer_id" name) -> ::String + | ("started_event_id" name) -> ::Integer + | ("workflow_task_completed_event_id" name) -> ::Integer + | ("identity" name) -> ::String + + def []=: + ("timer_id" name, (::String | ::Symbol) value) -> void + | ("started_event_id" name, (::Integer | ::Float) value) -> void + | ("workflow_task_completed_event_id" name, (::Integer | ::Float) value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + end + + class WorkflowExecutionCancelRequestedEventAttributes < ::Google::Protobuf::AbstractMessage + + # User provided reason for requesting cancellation + attr_reader cause(): ::String + attr_writer cause(): ::String | ::Symbol + def clear_cause: () -> void + + # The ID of the `REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED` event in the external + # workflow history when the cancellation was requested by another workflow. + attr_reader external_initiated_event_id(): ::Integer + attr_writer external_initiated_event_id(): ::Integer | ::Float + def clear_external_initiated_event_id: () -> void + + attr_accessor external_workflow_execution(): ::Temporalio::Api::Common::V1::WorkflowExecution? + def has_external_workflow_execution?: () -> bool + def clear_external_workflow_execution: () -> void + + # id of the worker or client who requested this cancel + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + type init_map = { + cause: (::String | ::Symbol)?, + "cause" => (::String | ::Symbol)?, + external_initiated_event_id: (::Integer | ::Float)?, + "external_initiated_event_id" => (::Integer | ::Float)?, + external_workflow_execution: (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + "external_workflow_execution" => (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("cause" name) -> ::String + | ("external_initiated_event_id" name) -> ::Integer + | ("external_workflow_execution" name) -> ::Temporalio::Api::Common::V1::WorkflowExecution? + | ("identity" name) -> ::String + + def []=: + ("cause" name, (::String | ::Symbol) value) -> void + | ("external_initiated_event_id" name, (::Integer | ::Float) value) -> void + | ("external_workflow_execution" name, ::Temporalio::Api::Common::V1::WorkflowExecution? value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + end + + class WorkflowExecutionCanceledEventAttributes < ::Google::Protobuf::AbstractMessage + + # The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + attr_reader workflow_task_completed_event_id(): ::Integer + attr_writer workflow_task_completed_event_id(): ::Integer | ::Float + def clear_workflow_task_completed_event_id: () -> void + + attr_accessor details(): ::Temporalio::Api::Common::V1::Payloads? + def has_details?: () -> bool + def clear_details: () -> void + + type init_map = { + workflow_task_completed_event_id: (::Integer | ::Float)?, + "workflow_task_completed_event_id" => (::Integer | ::Float)?, + details: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + "details" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("workflow_task_completed_event_id" name) -> ::Integer + | ("details" name) -> ::Temporalio::Api::Common::V1::Payloads? + + def []=: + ("workflow_task_completed_event_id" name, (::Integer | ::Float) value) -> void + | ("details" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void + end + + class MarkerRecordedEventAttributes < ::Google::Protobuf::AbstractMessage + + # Workers use this to identify the "types" of various markers. Ex: Local activity, side effect. + attr_reader marker_name(): ::String + attr_writer marker_name(): ::String | ::Symbol + def clear_marker_name: () -> void + + # Serialized information recorded in the marker + attr_accessor details(): ::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payloads] + def clear_details: () -> void + + # The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + attr_reader workflow_task_completed_event_id(): ::Integer + attr_writer workflow_task_completed_event_id(): ::Integer | ::Float + def clear_workflow_task_completed_event_id: () -> void + + attr_accessor header(): ::Temporalio::Api::Common::V1::Header? + def has_header?: () -> bool + def clear_header: () -> void + + # Some uses of markers, like a local activity, could "fail". If they did that is recorded here. + attr_accessor failure(): ::Temporalio::Api::Failure::V1::Failure? + def has_failure?: () -> bool + def clear_failure: () -> void + + type init_map = { + marker_name: (::String | ::Symbol)?, + "marker_name" => (::String | ::Symbol)?, + details: ::Hash[::String | ::Symbol, ::Temporalio::Api::Common::V1::Payloads]?, + "details" => ::Hash[::String | ::Symbol, ::Temporalio::Api::Common::V1::Payloads]?, + workflow_task_completed_event_id: (::Integer | ::Float)?, + "workflow_task_completed_event_id" => (::Integer | ::Float)?, + header: (::Temporalio::Api::Common::V1::Header | ::Temporalio::Api::Common::V1::Header::init_map)?, + "header" => (::Temporalio::Api::Common::V1::Header | ::Temporalio::Api::Common::V1::Header::init_map)?, + failure: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + "failure" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("marker_name" name) -> ::String + | ("details" name) -> (::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payloads]) + | ("workflow_task_completed_event_id" name) -> ::Integer + | ("header" name) -> ::Temporalio::Api::Common::V1::Header? + | ("failure" name) -> ::Temporalio::Api::Failure::V1::Failure? + + def []=: + ("marker_name" name, (::String | ::Symbol) value) -> void + | ("details" name, (::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payloads]) value) -> void + | ("workflow_task_completed_event_id" name, (::Integer | ::Float) value) -> void + | ("header" name, ::Temporalio::Api::Common::V1::Header? value) -> void + | ("failure" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void + end + + class WorkflowExecutionSignaledEventAttributes < ::Google::Protobuf::AbstractMessage + + # The name/type of the signal to fire + attr_reader signal_name(): ::String + attr_writer signal_name(): ::String | ::Symbol + def clear_signal_name: () -> void + + # Will be deserialized and provided as argument(s) to the signal handler + attr_accessor input(): ::Temporalio::Api::Common::V1::Payloads? + def has_input?: () -> bool + def clear_input: () -> void + + # id of the worker/client who sent this signal + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + # Headers that were passed by the sender of the signal and copied by temporal + # server into the workflow task. + attr_accessor header(): ::Temporalio::Api::Common::V1::Header? + def has_header?: () -> bool + def clear_header: () -> void + + # Deprecated. This field is never respected and should always be set to false. + # @deprecated + attr_accessor skip_generate_workflow_task(): bool + def clear_skip_generate_workflow_task: () -> void + + # When signal origin is a workflow execution, this field is set. + attr_accessor external_workflow_execution(): ::Temporalio::Api::Common::V1::WorkflowExecution? + def has_external_workflow_execution?: () -> bool + def clear_external_workflow_execution: () -> void + + type init_map = { + signal_name: (::String | ::Symbol)?, + "signal_name" => (::String | ::Symbol)?, + input: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + "input" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + header: (::Temporalio::Api::Common::V1::Header | ::Temporalio::Api::Common::V1::Header::init_map)?, + "header" => (::Temporalio::Api::Common::V1::Header | ::Temporalio::Api::Common::V1::Header::init_map)?, + skip_generate_workflow_task: bool?, + "skip_generate_workflow_task" => bool?, + external_workflow_execution: (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + "external_workflow_execution" => (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("signal_name" name) -> ::String + | ("input" name) -> ::Temporalio::Api::Common::V1::Payloads? + | ("identity" name) -> ::String + | ("header" name) -> ::Temporalio::Api::Common::V1::Header? + | ("skip_generate_workflow_task" name) -> bool + | ("external_workflow_execution" name) -> ::Temporalio::Api::Common::V1::WorkflowExecution? + + def []=: + ("signal_name" name, (::String | ::Symbol) value) -> void + | ("input" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + | ("header" name, ::Temporalio::Api::Common::V1::Header? value) -> void + | ("skip_generate_workflow_task" name, bool value) -> void + | ("external_workflow_execution" name, ::Temporalio::Api::Common::V1::WorkflowExecution? value) -> void + end + + class WorkflowExecutionTerminatedEventAttributes < ::Google::Protobuf::AbstractMessage + + # User/client provided reason for termination + attr_reader reason(): ::String + attr_writer reason(): ::String | ::Symbol + def clear_reason: () -> void + + attr_accessor details(): ::Temporalio::Api::Common::V1::Payloads? + def has_details?: () -> bool + def clear_details: () -> void + + # id of the client who requested termination + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + type init_map = { + reason: (::String | ::Symbol)?, + "reason" => (::String | ::Symbol)?, + details: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + "details" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("reason" name) -> ::String + | ("details" name) -> ::Temporalio::Api::Common::V1::Payloads? + | ("identity" name) -> ::String + + def []=: + ("reason" name, (::String | ::Symbol) value) -> void + | ("details" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + end + + class RequestCancelExternalWorkflowExecutionInitiatedEventAttributes < ::Google::Protobuf::AbstractMessage + + # The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + attr_reader workflow_task_completed_event_id(): ::Integer + attr_writer workflow_task_completed_event_id(): ::Integer | ::Float + def clear_workflow_task_completed_event_id: () -> void + + # The namespace the workflow to be cancelled lives in. + # SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_reader namespace_id(): ::String + attr_writer namespace_id(): ::String | ::Symbol + def clear_namespace_id: () -> void + + attr_accessor workflow_execution(): ::Temporalio::Api::Common::V1::WorkflowExecution? + def has_workflow_execution?: () -> bool + def clear_workflow_execution: () -> void + + # Deprecated. + # @deprecated + attr_reader control(): ::String + attr_writer control(): ::String | ::Symbol + def clear_control: () -> void + + # 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 + attr_accessor child_workflow_only(): bool + def clear_child_workflow_only: () -> void + + # Reason for requesting the cancellation + attr_reader reason(): ::String + attr_writer reason(): ::String | ::Symbol + def clear_reason: () -> void + + type init_map = { + workflow_task_completed_event_id: (::Integer | ::Float)?, + "workflow_task_completed_event_id" => (::Integer | ::Float)?, + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + namespace_id: (::String | ::Symbol)?, + "namespace_id" => (::String | ::Symbol)?, + workflow_execution: (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + "workflow_execution" => (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + control: (::String | ::Symbol)?, + "control" => (::String | ::Symbol)?, + child_workflow_only: bool?, + "child_workflow_only" => bool?, + reason: (::String | ::Symbol)?, + "reason" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("workflow_task_completed_event_id" name) -> ::Integer + | ("namespace" name) -> ::String + | ("namespace_id" name) -> ::String + | ("workflow_execution" name) -> ::Temporalio::Api::Common::V1::WorkflowExecution? + | ("control" name) -> ::String + | ("child_workflow_only" name) -> bool + | ("reason" name) -> ::String + + def []=: + ("workflow_task_completed_event_id" name, (::Integer | ::Float) value) -> void + | ("namespace" name, (::String | ::Symbol) value) -> void + | ("namespace_id" name, (::String | ::Symbol) value) -> void + | ("workflow_execution" name, ::Temporalio::Api::Common::V1::WorkflowExecution? value) -> void + | ("control" name, (::String | ::Symbol) value) -> void + | ("child_workflow_only" name, bool value) -> void + | ("reason" name, (::String | ::Symbol) value) -> void + end + + class RequestCancelExternalWorkflowExecutionFailedEventAttributes < ::Google::Protobuf::AbstractMessage + + attr_reader cause(): ::Temporalio::Api::Enums::V1::CancelExternalWorkflowExecutionFailedCause::names | ::Integer + attr_writer cause(): ::Temporalio::Api::Enums::V1::CancelExternalWorkflowExecutionFailedCause::names | ::Temporalio::Api::Enums::V1::CancelExternalWorkflowExecutionFailedCause::strings | ::Integer | ::Float + attr_reader cause_const(): ::Integer + def clear_cause: () -> void + + # The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + attr_reader workflow_task_completed_event_id(): ::Integer + attr_writer workflow_task_completed_event_id(): ::Integer | ::Float + def clear_workflow_task_completed_event_id: () -> void + + # Namespace of the workflow which failed to cancel. + # SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_reader namespace_id(): ::String + attr_writer namespace_id(): ::String | ::Symbol + def clear_namespace_id: () -> void + + attr_accessor workflow_execution(): ::Temporalio::Api::Common::V1::WorkflowExecution? + def has_workflow_execution?: () -> bool + def clear_workflow_execution: () -> void + + # id of the `REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED` event this failure + # corresponds to + attr_reader initiated_event_id(): ::Integer + attr_writer initiated_event_id(): ::Integer | ::Float + def clear_initiated_event_id: () -> void + + # Deprecated. + # @deprecated + attr_reader control(): ::String + attr_writer control(): ::String | ::Symbol + def clear_control: () -> void + + type init_map = { + cause: (::Temporalio::Api::Enums::V1::CancelExternalWorkflowExecutionFailedCause::names | ::Temporalio::Api::Enums::V1::CancelExternalWorkflowExecutionFailedCause::strings | ::Integer | ::Float)?, + "cause" => (::Temporalio::Api::Enums::V1::CancelExternalWorkflowExecutionFailedCause::names | ::Temporalio::Api::Enums::V1::CancelExternalWorkflowExecutionFailedCause::strings | ::Integer | ::Float)?, + workflow_task_completed_event_id: (::Integer | ::Float)?, + "workflow_task_completed_event_id" => (::Integer | ::Float)?, + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + namespace_id: (::String | ::Symbol)?, + "namespace_id" => (::String | ::Symbol)?, + workflow_execution: (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + "workflow_execution" => (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + initiated_event_id: (::Integer | ::Float)?, + "initiated_event_id" => (::Integer | ::Float)?, + control: (::String | ::Symbol)?, + "control" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("cause" name) -> (::Temporalio::Api::Enums::V1::CancelExternalWorkflowExecutionFailedCause::names | ::Integer) + | ("workflow_task_completed_event_id" name) -> ::Integer + | ("namespace" name) -> ::String + | ("namespace_id" name) -> ::String + | ("workflow_execution" name) -> ::Temporalio::Api::Common::V1::WorkflowExecution? + | ("initiated_event_id" name) -> ::Integer + | ("control" name) -> ::String + + def []=: + ("cause" name, (::Temporalio::Api::Enums::V1::CancelExternalWorkflowExecutionFailedCause::names | ::Temporalio::Api::Enums::V1::CancelExternalWorkflowExecutionFailedCause::strings | ::Integer | ::Float) value) -> void + | ("workflow_task_completed_event_id" name, (::Integer | ::Float) value) -> void + | ("namespace" name, (::String | ::Symbol) value) -> void + | ("namespace_id" name, (::String | ::Symbol) value) -> void + | ("workflow_execution" name, ::Temporalio::Api::Common::V1::WorkflowExecution? value) -> void + | ("initiated_event_id" name, (::Integer | ::Float) value) -> void + | ("control" name, (::String | ::Symbol) value) -> void + end + + class ExternalWorkflowExecutionCancelRequestedEventAttributes < ::Google::Protobuf::AbstractMessage + + # id of the `REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED` event this event corresponds + # to + attr_reader initiated_event_id(): ::Integer + attr_writer initiated_event_id(): ::Integer | ::Float + def clear_initiated_event_id: () -> void + + # Namespace of the to-be-cancelled workflow. + # SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_reader namespace_id(): ::String + attr_writer namespace_id(): ::String | ::Symbol + def clear_namespace_id: () -> void + + attr_accessor workflow_execution(): ::Temporalio::Api::Common::V1::WorkflowExecution? + def has_workflow_execution?: () -> bool + def clear_workflow_execution: () -> void + + type init_map = { + initiated_event_id: (::Integer | ::Float)?, + "initiated_event_id" => (::Integer | ::Float)?, + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + namespace_id: (::String | ::Symbol)?, + "namespace_id" => (::String | ::Symbol)?, + workflow_execution: (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + "workflow_execution" => (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("initiated_event_id" name) -> ::Integer + | ("namespace" name) -> ::String + | ("namespace_id" name) -> ::String + | ("workflow_execution" name) -> ::Temporalio::Api::Common::V1::WorkflowExecution? + + def []=: + ("initiated_event_id" name, (::Integer | ::Float) value) -> void + | ("namespace" name, (::String | ::Symbol) value) -> void + | ("namespace_id" name, (::String | ::Symbol) value) -> void + | ("workflow_execution" name, ::Temporalio::Api::Common::V1::WorkflowExecution? value) -> void + end + + class SignalExternalWorkflowExecutionInitiatedEventAttributes < ::Google::Protobuf::AbstractMessage + + # The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + attr_reader workflow_task_completed_event_id(): ::Integer + attr_writer workflow_task_completed_event_id(): ::Integer | ::Float + def clear_workflow_task_completed_event_id: () -> void + + # Namespace of the to-be-signalled workflow. + # SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_reader namespace_id(): ::String + attr_writer namespace_id(): ::String | ::Symbol + def clear_namespace_id: () -> void + + attr_accessor workflow_execution(): ::Temporalio::Api::Common::V1::WorkflowExecution? + def has_workflow_execution?: () -> bool + def clear_workflow_execution: () -> void + + # name/type of the signal to fire in the external workflow + attr_reader signal_name(): ::String + attr_writer signal_name(): ::String | ::Symbol + def clear_signal_name: () -> void + + # Serialized arguments to provide to the signal handler + attr_accessor input(): ::Temporalio::Api::Common::V1::Payloads? + def has_input?: () -> bool + def clear_input: () -> void + + # Deprecated. + # @deprecated + attr_reader control(): ::String + attr_writer control(): ::String | ::Symbol + def clear_control: () -> void + + # 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 + attr_accessor child_workflow_only(): bool + def clear_child_workflow_only: () -> void + + attr_accessor header(): ::Temporalio::Api::Common::V1::Header? + def has_header?: () -> bool + def clear_header: () -> void + + type init_map = { + workflow_task_completed_event_id: (::Integer | ::Float)?, + "workflow_task_completed_event_id" => (::Integer | ::Float)?, + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + namespace_id: (::String | ::Symbol)?, + "namespace_id" => (::String | ::Symbol)?, + workflow_execution: (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + "workflow_execution" => (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + signal_name: (::String | ::Symbol)?, + "signal_name" => (::String | ::Symbol)?, + input: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + "input" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + control: (::String | ::Symbol)?, + "control" => (::String | ::Symbol)?, + child_workflow_only: bool?, + "child_workflow_only" => bool?, + header: (::Temporalio::Api::Common::V1::Header | ::Temporalio::Api::Common::V1::Header::init_map)?, + "header" => (::Temporalio::Api::Common::V1::Header | ::Temporalio::Api::Common::V1::Header::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("workflow_task_completed_event_id" name) -> ::Integer + | ("namespace" name) -> ::String + | ("namespace_id" name) -> ::String + | ("workflow_execution" name) -> ::Temporalio::Api::Common::V1::WorkflowExecution? + | ("signal_name" name) -> ::String + | ("input" name) -> ::Temporalio::Api::Common::V1::Payloads? + | ("control" name) -> ::String + | ("child_workflow_only" name) -> bool + | ("header" name) -> ::Temporalio::Api::Common::V1::Header? + + def []=: + ("workflow_task_completed_event_id" name, (::Integer | ::Float) value) -> void + | ("namespace" name, (::String | ::Symbol) value) -> void + | ("namespace_id" name, (::String | ::Symbol) value) -> void + | ("workflow_execution" name, ::Temporalio::Api::Common::V1::WorkflowExecution? value) -> void + | ("signal_name" name, (::String | ::Symbol) value) -> void + | ("input" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void + | ("control" name, (::String | ::Symbol) value) -> void + | ("child_workflow_only" name, bool value) -> void + | ("header" name, ::Temporalio::Api::Common::V1::Header? value) -> void + end + + class SignalExternalWorkflowExecutionFailedEventAttributes < ::Google::Protobuf::AbstractMessage + + attr_reader cause(): ::Temporalio::Api::Enums::V1::SignalExternalWorkflowExecutionFailedCause::names | ::Integer + attr_writer cause(): ::Temporalio::Api::Enums::V1::SignalExternalWorkflowExecutionFailedCause::names | ::Temporalio::Api::Enums::V1::SignalExternalWorkflowExecutionFailedCause::strings | ::Integer | ::Float + attr_reader cause_const(): ::Integer + def clear_cause: () -> void + + # The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + attr_reader workflow_task_completed_event_id(): ::Integer + attr_writer workflow_task_completed_event_id(): ::Integer | ::Float + def clear_workflow_task_completed_event_id: () -> void + + # Namespace of the workflow which failed the signal. + # SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_reader namespace_id(): ::String + attr_writer namespace_id(): ::String | ::Symbol + def clear_namespace_id: () -> void + + attr_accessor workflow_execution(): ::Temporalio::Api::Common::V1::WorkflowExecution? + def has_workflow_execution?: () -> bool + def clear_workflow_execution: () -> void + + attr_reader initiated_event_id(): ::Integer + attr_writer initiated_event_id(): ::Integer | ::Float + def clear_initiated_event_id: () -> void + + # Deprecated. + # @deprecated + attr_reader control(): ::String + attr_writer control(): ::String | ::Symbol + def clear_control: () -> void + + type init_map = { + cause: (::Temporalio::Api::Enums::V1::SignalExternalWorkflowExecutionFailedCause::names | ::Temporalio::Api::Enums::V1::SignalExternalWorkflowExecutionFailedCause::strings | ::Integer | ::Float)?, + "cause" => (::Temporalio::Api::Enums::V1::SignalExternalWorkflowExecutionFailedCause::names | ::Temporalio::Api::Enums::V1::SignalExternalWorkflowExecutionFailedCause::strings | ::Integer | ::Float)?, + workflow_task_completed_event_id: (::Integer | ::Float)?, + "workflow_task_completed_event_id" => (::Integer | ::Float)?, + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + namespace_id: (::String | ::Symbol)?, + "namespace_id" => (::String | ::Symbol)?, + workflow_execution: (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + "workflow_execution" => (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + initiated_event_id: (::Integer | ::Float)?, + "initiated_event_id" => (::Integer | ::Float)?, + control: (::String | ::Symbol)?, + "control" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("cause" name) -> (::Temporalio::Api::Enums::V1::SignalExternalWorkflowExecutionFailedCause::names | ::Integer) + | ("workflow_task_completed_event_id" name) -> ::Integer + | ("namespace" name) -> ::String + | ("namespace_id" name) -> ::String + | ("workflow_execution" name) -> ::Temporalio::Api::Common::V1::WorkflowExecution? + | ("initiated_event_id" name) -> ::Integer + | ("control" name) -> ::String + + def []=: + ("cause" name, (::Temporalio::Api::Enums::V1::SignalExternalWorkflowExecutionFailedCause::names | ::Temporalio::Api::Enums::V1::SignalExternalWorkflowExecutionFailedCause::strings | ::Integer | ::Float) value) -> void + | ("workflow_task_completed_event_id" name, (::Integer | ::Float) value) -> void + | ("namespace" name, (::String | ::Symbol) value) -> void + | ("namespace_id" name, (::String | ::Symbol) value) -> void + | ("workflow_execution" name, ::Temporalio::Api::Common::V1::WorkflowExecution? value) -> void + | ("initiated_event_id" name, (::Integer | ::Float) value) -> void + | ("control" name, (::String | ::Symbol) value) -> void + end + + class ExternalWorkflowExecutionSignaledEventAttributes < ::Google::Protobuf::AbstractMessage + + # id of the `SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED` event this event corresponds to + attr_reader initiated_event_id(): ::Integer + attr_writer initiated_event_id(): ::Integer | ::Float + def clear_initiated_event_id: () -> void + + # Namespace of the workflow which was signaled. + # SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_reader namespace_id(): ::String + attr_writer namespace_id(): ::String | ::Symbol + def clear_namespace_id: () -> void + + attr_accessor workflow_execution(): ::Temporalio::Api::Common::V1::WorkflowExecution? + def has_workflow_execution?: () -> bool + def clear_workflow_execution: () -> void + + # Deprecated. + # @deprecated + attr_reader control(): ::String + attr_writer control(): ::String | ::Symbol + def clear_control: () -> void + + type init_map = { + initiated_event_id: (::Integer | ::Float)?, + "initiated_event_id" => (::Integer | ::Float)?, + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + namespace_id: (::String | ::Symbol)?, + "namespace_id" => (::String | ::Symbol)?, + workflow_execution: (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + "workflow_execution" => (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + control: (::String | ::Symbol)?, + "control" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("initiated_event_id" name) -> ::Integer + | ("namespace" name) -> ::String + | ("namespace_id" name) -> ::String + | ("workflow_execution" name) -> ::Temporalio::Api::Common::V1::WorkflowExecution? + | ("control" name) -> ::String + + def []=: + ("initiated_event_id" name, (::Integer | ::Float) value) -> void + | ("namespace" name, (::String | ::Symbol) value) -> void + | ("namespace_id" name, (::String | ::Symbol) value) -> void + | ("workflow_execution" name, ::Temporalio::Api::Common::V1::WorkflowExecution? value) -> void + | ("control" name, (::String | ::Symbol) value) -> void + end + + class UpsertWorkflowSearchAttributesEventAttributes < ::Google::Protobuf::AbstractMessage + + # The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + attr_reader workflow_task_completed_event_id(): ::Integer + attr_writer workflow_task_completed_event_id(): ::Integer | ::Float + def clear_workflow_task_completed_event_id: () -> void + + attr_accessor search_attributes(): ::Temporalio::Api::Common::V1::SearchAttributes? + def has_search_attributes?: () -> bool + def clear_search_attributes: () -> void + + type init_map = { + workflow_task_completed_event_id: (::Integer | ::Float)?, + "workflow_task_completed_event_id" => (::Integer | ::Float)?, + search_attributes: (::Temporalio::Api::Common::V1::SearchAttributes | ::Temporalio::Api::Common::V1::SearchAttributes::init_map)?, + "search_attributes" => (::Temporalio::Api::Common::V1::SearchAttributes | ::Temporalio::Api::Common::V1::SearchAttributes::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("workflow_task_completed_event_id" name) -> ::Integer + | ("search_attributes" name) -> ::Temporalio::Api::Common::V1::SearchAttributes? + + def []=: + ("workflow_task_completed_event_id" name, (::Integer | ::Float) value) -> void + | ("search_attributes" name, ::Temporalio::Api::Common::V1::SearchAttributes? value) -> void + end + + class WorkflowPropertiesModifiedEventAttributes < ::Google::Protobuf::AbstractMessage + + # The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + attr_reader workflow_task_completed_event_id(): ::Integer + attr_writer workflow_task_completed_event_id(): ::Integer | ::Float + def clear_workflow_task_completed_event_id: () -> void + + # 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. + attr_accessor upserted_memo(): ::Temporalio::Api::Common::V1::Memo? + def has_upserted_memo?: () -> bool + def clear_upserted_memo: () -> void + + type init_map = { + workflow_task_completed_event_id: (::Integer | ::Float)?, + "workflow_task_completed_event_id" => (::Integer | ::Float)?, + upserted_memo: (::Temporalio::Api::Common::V1::Memo | ::Temporalio::Api::Common::V1::Memo::init_map)?, + "upserted_memo" => (::Temporalio::Api::Common::V1::Memo | ::Temporalio::Api::Common::V1::Memo::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("workflow_task_completed_event_id" name) -> ::Integer + | ("upserted_memo" name) -> ::Temporalio::Api::Common::V1::Memo? + + def []=: + ("workflow_task_completed_event_id" name, (::Integer | ::Float) value) -> void + | ("upserted_memo" name, ::Temporalio::Api::Common::V1::Memo? value) -> void + end + + class StartChildWorkflowExecutionInitiatedEventAttributes < ::Google::Protobuf::AbstractMessage + + # Namespace of the child workflow. + # SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_reader namespace_id(): ::String + attr_writer namespace_id(): ::String | ::Symbol + def clear_namespace_id: () -> void + + attr_reader workflow_id(): ::String + attr_writer workflow_id(): ::String | ::Symbol + def clear_workflow_id: () -> void + + attr_accessor workflow_type(): ::Temporalio::Api::Common::V1::WorkflowType? + def has_workflow_type?: () -> bool + def clear_workflow_type: () -> void + + attr_accessor task_queue(): ::Temporalio::Api::TaskQueue::V1::TaskQueue? + def has_task_queue?: () -> bool + def clear_task_queue: () -> void + + attr_accessor input(): ::Temporalio::Api::Common::V1::Payloads? + def has_input?: () -> bool + def clear_input: () -> void + + # Total workflow execution timeout including retries and continue as new. + attr_reader workflow_execution_timeout(): ::Google::Protobuf::Duration? + attr_writer workflow_execution_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_workflow_execution_timeout?: () -> bool + def clear_workflow_execution_timeout: () -> void + + # Timeout of a single workflow run. + attr_reader workflow_run_timeout(): ::Google::Protobuf::Duration? + attr_writer workflow_run_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_workflow_run_timeout?: () -> bool + def clear_workflow_run_timeout: () -> void + + # Timeout of a single workflow task. + attr_reader workflow_task_timeout(): ::Google::Protobuf::Duration? + attr_writer workflow_task_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_workflow_task_timeout?: () -> bool + def clear_workflow_task_timeout: () -> void + + # Default: PARENT_CLOSE_POLICY_TERMINATE. + attr_reader parent_close_policy(): ::Temporalio::Api::Enums::V1::ParentClosePolicy::names | ::Integer + attr_writer parent_close_policy(): ::Temporalio::Api::Enums::V1::ParentClosePolicy::names | ::Temporalio::Api::Enums::V1::ParentClosePolicy::strings | ::Integer | ::Float + attr_reader parent_close_policy_const(): ::Integer + def clear_parent_close_policy: () -> void + + # Deprecated. + # @deprecated + attr_reader control(): ::String + attr_writer control(): ::String | ::Symbol + def clear_control: () -> void + + # The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + attr_reader workflow_task_completed_event_id(): ::Integer + attr_writer workflow_task_completed_event_id(): ::Integer | ::Float + def clear_workflow_task_completed_event_id: () -> void + + # Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE. + attr_reader workflow_id_reuse_policy(): ::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::names | ::Integer + attr_writer workflow_id_reuse_policy(): ::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::names | ::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::strings | ::Integer | ::Float + attr_reader workflow_id_reuse_policy_const(): ::Integer + def clear_workflow_id_reuse_policy: () -> void + + attr_accessor retry_policy(): ::Temporalio::Api::Common::V1::RetryPolicy? + def has_retry_policy?: () -> bool + def clear_retry_policy: () -> void + + # If this child runs on a cron schedule, it will appear here + attr_reader cron_schedule(): ::String + attr_writer cron_schedule(): ::String | ::Symbol + def clear_cron_schedule: () -> void + + attr_accessor header(): ::Temporalio::Api::Common::V1::Header? + def has_header?: () -> bool + def clear_header: () -> void + + attr_accessor memo(): ::Temporalio::Api::Common::V1::Memo? + def has_memo?: () -> bool + def clear_memo: () -> void + + attr_accessor search_attributes(): ::Temporalio::Api::Common::V1::SearchAttributes? + def has_search_attributes?: () -> bool + def clear_search_attributes: () -> void + + # 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 + attr_accessor inherit_build_id(): bool + def clear_inherit_build_id: () -> void + + # Priority metadata + attr_accessor priority(): ::Temporalio::Api::Common::V1::Priority? + def has_priority?: () -> bool + def clear_priority: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + namespace_id: (::String | ::Symbol)?, + "namespace_id" => (::String | ::Symbol)?, + workflow_id: (::String | ::Symbol)?, + "workflow_id" => (::String | ::Symbol)?, + workflow_type: (::Temporalio::Api::Common::V1::WorkflowType | ::Temporalio::Api::Common::V1::WorkflowType::init_map)?, + "workflow_type" => (::Temporalio::Api::Common::V1::WorkflowType | ::Temporalio::Api::Common::V1::WorkflowType::init_map)?, + task_queue: (::Temporalio::Api::TaskQueue::V1::TaskQueue | ::Temporalio::Api::TaskQueue::V1::TaskQueue::init_map)?, + "task_queue" => (::Temporalio::Api::TaskQueue::V1::TaskQueue | ::Temporalio::Api::TaskQueue::V1::TaskQueue::init_map)?, + input: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + "input" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + workflow_execution_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "workflow_execution_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + workflow_run_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "workflow_run_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + workflow_task_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "workflow_task_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + parent_close_policy: (::Temporalio::Api::Enums::V1::ParentClosePolicy::names | ::Temporalio::Api::Enums::V1::ParentClosePolicy::strings | ::Integer | ::Float)?, + "parent_close_policy" => (::Temporalio::Api::Enums::V1::ParentClosePolicy::names | ::Temporalio::Api::Enums::V1::ParentClosePolicy::strings | ::Integer | ::Float)?, + control: (::String | ::Symbol)?, + "control" => (::String | ::Symbol)?, + workflow_task_completed_event_id: (::Integer | ::Float)?, + "workflow_task_completed_event_id" => (::Integer | ::Float)?, + workflow_id_reuse_policy: (::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::names | ::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::strings | ::Integer | ::Float)?, + "workflow_id_reuse_policy" => (::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::names | ::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::strings | ::Integer | ::Float)?, + retry_policy: (::Temporalio::Api::Common::V1::RetryPolicy | ::Temporalio::Api::Common::V1::RetryPolicy::init_map)?, + "retry_policy" => (::Temporalio::Api::Common::V1::RetryPolicy | ::Temporalio::Api::Common::V1::RetryPolicy::init_map)?, + cron_schedule: (::String | ::Symbol)?, + "cron_schedule" => (::String | ::Symbol)?, + header: (::Temporalio::Api::Common::V1::Header | ::Temporalio::Api::Common::V1::Header::init_map)?, + "header" => (::Temporalio::Api::Common::V1::Header | ::Temporalio::Api::Common::V1::Header::init_map)?, + memo: (::Temporalio::Api::Common::V1::Memo | ::Temporalio::Api::Common::V1::Memo::init_map)?, + "memo" => (::Temporalio::Api::Common::V1::Memo | ::Temporalio::Api::Common::V1::Memo::init_map)?, + search_attributes: (::Temporalio::Api::Common::V1::SearchAttributes | ::Temporalio::Api::Common::V1::SearchAttributes::init_map)?, + "search_attributes" => (::Temporalio::Api::Common::V1::SearchAttributes | ::Temporalio::Api::Common::V1::SearchAttributes::init_map)?, + inherit_build_id: bool?, + "inherit_build_id" => bool?, + priority: (::Temporalio::Api::Common::V1::Priority | ::Temporalio::Api::Common::V1::Priority::init_map)?, + "priority" => (::Temporalio::Api::Common::V1::Priority | ::Temporalio::Api::Common::V1::Priority::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("namespace_id" name) -> ::String + | ("workflow_id" name) -> ::String + | ("workflow_type" name) -> ::Temporalio::Api::Common::V1::WorkflowType? + | ("task_queue" name) -> ::Temporalio::Api::TaskQueue::V1::TaskQueue? + | ("input" name) -> ::Temporalio::Api::Common::V1::Payloads? + | ("workflow_execution_timeout" name) -> ::Google::Protobuf::Duration? + | ("workflow_run_timeout" name) -> ::Google::Protobuf::Duration? + | ("workflow_task_timeout" name) -> ::Google::Protobuf::Duration? + | ("parent_close_policy" name) -> (::Temporalio::Api::Enums::V1::ParentClosePolicy::names | ::Integer) + | ("control" name) -> ::String + | ("workflow_task_completed_event_id" name) -> ::Integer + | ("workflow_id_reuse_policy" name) -> (::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::names | ::Integer) + | ("retry_policy" name) -> ::Temporalio::Api::Common::V1::RetryPolicy? + | ("cron_schedule" name) -> ::String + | ("header" name) -> ::Temporalio::Api::Common::V1::Header? + | ("memo" name) -> ::Temporalio::Api::Common::V1::Memo? + | ("search_attributes" name) -> ::Temporalio::Api::Common::V1::SearchAttributes? + | ("inherit_build_id" name) -> bool + | ("priority" name) -> ::Temporalio::Api::Common::V1::Priority? + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("namespace_id" name, (::String | ::Symbol) value) -> void + | ("workflow_id" name, (::String | ::Symbol) value) -> void + | ("workflow_type" name, ::Temporalio::Api::Common::V1::WorkflowType? value) -> void + | ("task_queue" name, ::Temporalio::Api::TaskQueue::V1::TaskQueue? value) -> void + | ("input" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void + | ("workflow_execution_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("workflow_run_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("workflow_task_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("parent_close_policy" name, (::Temporalio::Api::Enums::V1::ParentClosePolicy::names | ::Temporalio::Api::Enums::V1::ParentClosePolicy::strings | ::Integer | ::Float) value) -> void + | ("control" name, (::String | ::Symbol) value) -> void + | ("workflow_task_completed_event_id" name, (::Integer | ::Float) value) -> void + | ("workflow_id_reuse_policy" name, (::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::names | ::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::strings | ::Integer | ::Float) value) -> void + | ("retry_policy" name, ::Temporalio::Api::Common::V1::RetryPolicy? value) -> void + | ("cron_schedule" name, (::String | ::Symbol) value) -> void + | ("header" name, ::Temporalio::Api::Common::V1::Header? value) -> void + | ("memo" name, ::Temporalio::Api::Common::V1::Memo? value) -> void + | ("search_attributes" name, ::Temporalio::Api::Common::V1::SearchAttributes? value) -> void + | ("inherit_build_id" name, bool value) -> void + | ("priority" name, ::Temporalio::Api::Common::V1::Priority? value) -> void + end + + class StartChildWorkflowExecutionFailedEventAttributes < ::Google::Protobuf::AbstractMessage + + # Namespace of the child workflow. + # SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_reader namespace_id(): ::String + attr_writer namespace_id(): ::String | ::Symbol + def clear_namespace_id: () -> void + + attr_reader workflow_id(): ::String + attr_writer workflow_id(): ::String | ::Symbol + def clear_workflow_id: () -> void + + attr_accessor workflow_type(): ::Temporalio::Api::Common::V1::WorkflowType? + def has_workflow_type?: () -> bool + def clear_workflow_type: () -> void + + attr_reader cause(): ::Temporalio::Api::Enums::V1::StartChildWorkflowExecutionFailedCause::names | ::Integer + attr_writer cause(): ::Temporalio::Api::Enums::V1::StartChildWorkflowExecutionFailedCause::names | ::Temporalio::Api::Enums::V1::StartChildWorkflowExecutionFailedCause::strings | ::Integer | ::Float + attr_reader cause_const(): ::Integer + def clear_cause: () -> void + + # Deprecated. + # @deprecated + attr_reader control(): ::String + attr_writer control(): ::String | ::Symbol + def clear_control: () -> void + + # Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to + attr_reader initiated_event_id(): ::Integer + attr_writer initiated_event_id(): ::Integer | ::Float + def clear_initiated_event_id: () -> void + + # The `WORKFLOW_TASK_COMPLETED` event which this command was reported with + attr_reader workflow_task_completed_event_id(): ::Integer + attr_writer workflow_task_completed_event_id(): ::Integer | ::Float + def clear_workflow_task_completed_event_id: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + namespace_id: (::String | ::Symbol)?, + "namespace_id" => (::String | ::Symbol)?, + workflow_id: (::String | ::Symbol)?, + "workflow_id" => (::String | ::Symbol)?, + workflow_type: (::Temporalio::Api::Common::V1::WorkflowType | ::Temporalio::Api::Common::V1::WorkflowType::init_map)?, + "workflow_type" => (::Temporalio::Api::Common::V1::WorkflowType | ::Temporalio::Api::Common::V1::WorkflowType::init_map)?, + cause: (::Temporalio::Api::Enums::V1::StartChildWorkflowExecutionFailedCause::names | ::Temporalio::Api::Enums::V1::StartChildWorkflowExecutionFailedCause::strings | ::Integer | ::Float)?, + "cause" => (::Temporalio::Api::Enums::V1::StartChildWorkflowExecutionFailedCause::names | ::Temporalio::Api::Enums::V1::StartChildWorkflowExecutionFailedCause::strings | ::Integer | ::Float)?, + control: (::String | ::Symbol)?, + "control" => (::String | ::Symbol)?, + initiated_event_id: (::Integer | ::Float)?, + "initiated_event_id" => (::Integer | ::Float)?, + workflow_task_completed_event_id: (::Integer | ::Float)?, + "workflow_task_completed_event_id" => (::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("namespace_id" name) -> ::String + | ("workflow_id" name) -> ::String + | ("workflow_type" name) -> ::Temporalio::Api::Common::V1::WorkflowType? + | ("cause" name) -> (::Temporalio::Api::Enums::V1::StartChildWorkflowExecutionFailedCause::names | ::Integer) + | ("control" name) -> ::String + | ("initiated_event_id" name) -> ::Integer + | ("workflow_task_completed_event_id" name) -> ::Integer + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("namespace_id" name, (::String | ::Symbol) value) -> void + | ("workflow_id" name, (::String | ::Symbol) value) -> void + | ("workflow_type" name, ::Temporalio::Api::Common::V1::WorkflowType? value) -> void + | ("cause" name, (::Temporalio::Api::Enums::V1::StartChildWorkflowExecutionFailedCause::names | ::Temporalio::Api::Enums::V1::StartChildWorkflowExecutionFailedCause::strings | ::Integer | ::Float) value) -> void + | ("control" name, (::String | ::Symbol) value) -> void + | ("initiated_event_id" name, (::Integer | ::Float) value) -> void + | ("workflow_task_completed_event_id" name, (::Integer | ::Float) value) -> void + end + + class ChildWorkflowExecutionStartedEventAttributes < ::Google::Protobuf::AbstractMessage + + # Namespace of the child workflow. + # SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_reader namespace_id(): ::String + attr_writer namespace_id(): ::String | ::Symbol + def clear_namespace_id: () -> void + + # Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to + attr_reader initiated_event_id(): ::Integer + attr_writer initiated_event_id(): ::Integer | ::Float + def clear_initiated_event_id: () -> void + + attr_accessor workflow_execution(): ::Temporalio::Api::Common::V1::WorkflowExecution? + def has_workflow_execution?: () -> bool + def clear_workflow_execution: () -> void + + attr_accessor workflow_type(): ::Temporalio::Api::Common::V1::WorkflowType? + def has_workflow_type?: () -> bool + def clear_workflow_type: () -> void + + attr_accessor header(): ::Temporalio::Api::Common::V1::Header? + def has_header?: () -> bool + def clear_header: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + namespace_id: (::String | ::Symbol)?, + "namespace_id" => (::String | ::Symbol)?, + initiated_event_id: (::Integer | ::Float)?, + "initiated_event_id" => (::Integer | ::Float)?, + workflow_execution: (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + "workflow_execution" => (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + workflow_type: (::Temporalio::Api::Common::V1::WorkflowType | ::Temporalio::Api::Common::V1::WorkflowType::init_map)?, + "workflow_type" => (::Temporalio::Api::Common::V1::WorkflowType | ::Temporalio::Api::Common::V1::WorkflowType::init_map)?, + header: (::Temporalio::Api::Common::V1::Header | ::Temporalio::Api::Common::V1::Header::init_map)?, + "header" => (::Temporalio::Api::Common::V1::Header | ::Temporalio::Api::Common::V1::Header::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("namespace_id" name) -> ::String + | ("initiated_event_id" name) -> ::Integer + | ("workflow_execution" name) -> ::Temporalio::Api::Common::V1::WorkflowExecution? + | ("workflow_type" name) -> ::Temporalio::Api::Common::V1::WorkflowType? + | ("header" name) -> ::Temporalio::Api::Common::V1::Header? + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("namespace_id" name, (::String | ::Symbol) value) -> void + | ("initiated_event_id" name, (::Integer | ::Float) value) -> void + | ("workflow_execution" name, ::Temporalio::Api::Common::V1::WorkflowExecution? value) -> void + | ("workflow_type" name, ::Temporalio::Api::Common::V1::WorkflowType? value) -> void + | ("header" name, ::Temporalio::Api::Common::V1::Header? value) -> void + end + + class ChildWorkflowExecutionCompletedEventAttributes < ::Google::Protobuf::AbstractMessage + + attr_accessor result(): ::Temporalio::Api::Common::V1::Payloads? + def has_result?: () -> bool + def clear_result: () -> void + + # Namespace of the child workflow. + # SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_reader namespace_id(): ::String + attr_writer namespace_id(): ::String | ::Symbol + def clear_namespace_id: () -> void + + attr_accessor workflow_execution(): ::Temporalio::Api::Common::V1::WorkflowExecution? + def has_workflow_execution?: () -> bool + def clear_workflow_execution: () -> void + + attr_accessor workflow_type(): ::Temporalio::Api::Common::V1::WorkflowType? + def has_workflow_type?: () -> bool + def clear_workflow_type: () -> void + + # Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to + attr_reader initiated_event_id(): ::Integer + attr_writer initiated_event_id(): ::Integer | ::Float + def clear_initiated_event_id: () -> void + + # Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to + attr_reader started_event_id(): ::Integer + attr_writer started_event_id(): ::Integer | ::Float + def clear_started_event_id: () -> void + + type init_map = { + result: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + "result" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + namespace_id: (::String | ::Symbol)?, + "namespace_id" => (::String | ::Symbol)?, + workflow_execution: (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + "workflow_execution" => (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + workflow_type: (::Temporalio::Api::Common::V1::WorkflowType | ::Temporalio::Api::Common::V1::WorkflowType::init_map)?, + "workflow_type" => (::Temporalio::Api::Common::V1::WorkflowType | ::Temporalio::Api::Common::V1::WorkflowType::init_map)?, + initiated_event_id: (::Integer | ::Float)?, + "initiated_event_id" => (::Integer | ::Float)?, + started_event_id: (::Integer | ::Float)?, + "started_event_id" => (::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("result" name) -> ::Temporalio::Api::Common::V1::Payloads? + | ("namespace" name) -> ::String + | ("namespace_id" name) -> ::String + | ("workflow_execution" name) -> ::Temporalio::Api::Common::V1::WorkflowExecution? + | ("workflow_type" name) -> ::Temporalio::Api::Common::V1::WorkflowType? + | ("initiated_event_id" name) -> ::Integer + | ("started_event_id" name) -> ::Integer + + def []=: + ("result" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void + | ("namespace" name, (::String | ::Symbol) value) -> void + | ("namespace_id" name, (::String | ::Symbol) value) -> void + | ("workflow_execution" name, ::Temporalio::Api::Common::V1::WorkflowExecution? value) -> void + | ("workflow_type" name, ::Temporalio::Api::Common::V1::WorkflowType? value) -> void + | ("initiated_event_id" name, (::Integer | ::Float) value) -> void + | ("started_event_id" name, (::Integer | ::Float) value) -> void + end + + class ChildWorkflowExecutionFailedEventAttributes < ::Google::Protobuf::AbstractMessage + + attr_accessor failure(): ::Temporalio::Api::Failure::V1::Failure? + def has_failure?: () -> bool + def clear_failure: () -> void + + # Namespace of the child workflow. + # SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_reader namespace_id(): ::String + attr_writer namespace_id(): ::String | ::Symbol + def clear_namespace_id: () -> void + + attr_accessor workflow_execution(): ::Temporalio::Api::Common::V1::WorkflowExecution? + def has_workflow_execution?: () -> bool + def clear_workflow_execution: () -> void + + attr_accessor workflow_type(): ::Temporalio::Api::Common::V1::WorkflowType? + def has_workflow_type?: () -> bool + def clear_workflow_type: () -> void + + # Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to + attr_reader initiated_event_id(): ::Integer + attr_writer initiated_event_id(): ::Integer | ::Float + def clear_initiated_event_id: () -> void + + # Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to + attr_reader started_event_id(): ::Integer + attr_writer started_event_id(): ::Integer | ::Float + def clear_started_event_id: () -> void + + attr_reader retry_state(): ::Temporalio::Api::Enums::V1::RetryState::names | ::Integer + attr_writer retry_state(): ::Temporalio::Api::Enums::V1::RetryState::names | ::Temporalio::Api::Enums::V1::RetryState::strings | ::Integer | ::Float + attr_reader retry_state_const(): ::Integer + def clear_retry_state: () -> void + + type init_map = { + failure: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + "failure" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + namespace_id: (::String | ::Symbol)?, + "namespace_id" => (::String | ::Symbol)?, + workflow_execution: (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + "workflow_execution" => (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + workflow_type: (::Temporalio::Api::Common::V1::WorkflowType | ::Temporalio::Api::Common::V1::WorkflowType::init_map)?, + "workflow_type" => (::Temporalio::Api::Common::V1::WorkflowType | ::Temporalio::Api::Common::V1::WorkflowType::init_map)?, + initiated_event_id: (::Integer | ::Float)?, + "initiated_event_id" => (::Integer | ::Float)?, + started_event_id: (::Integer | ::Float)?, + "started_event_id" => (::Integer | ::Float)?, + retry_state: (::Temporalio::Api::Enums::V1::RetryState::names | ::Temporalio::Api::Enums::V1::RetryState::strings | ::Integer | ::Float)?, + "retry_state" => (::Temporalio::Api::Enums::V1::RetryState::names | ::Temporalio::Api::Enums::V1::RetryState::strings | ::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("failure" name) -> ::Temporalio::Api::Failure::V1::Failure? + | ("namespace" name) -> ::String + | ("namespace_id" name) -> ::String + | ("workflow_execution" name) -> ::Temporalio::Api::Common::V1::WorkflowExecution? + | ("workflow_type" name) -> ::Temporalio::Api::Common::V1::WorkflowType? + | ("initiated_event_id" name) -> ::Integer + | ("started_event_id" name) -> ::Integer + | ("retry_state" name) -> (::Temporalio::Api::Enums::V1::RetryState::names | ::Integer) + + def []=: + ("failure" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void + | ("namespace" name, (::String | ::Symbol) value) -> void + | ("namespace_id" name, (::String | ::Symbol) value) -> void + | ("workflow_execution" name, ::Temporalio::Api::Common::V1::WorkflowExecution? value) -> void + | ("workflow_type" name, ::Temporalio::Api::Common::V1::WorkflowType? value) -> void + | ("initiated_event_id" name, (::Integer | ::Float) value) -> void + | ("started_event_id" name, (::Integer | ::Float) value) -> void + | ("retry_state" name, (::Temporalio::Api::Enums::V1::RetryState::names | ::Temporalio::Api::Enums::V1::RetryState::strings | ::Integer | ::Float) value) -> void + end + + class ChildWorkflowExecutionCanceledEventAttributes < ::Google::Protobuf::AbstractMessage + + attr_accessor details(): ::Temporalio::Api::Common::V1::Payloads? + def has_details?: () -> bool + def clear_details: () -> void + + # Namespace of the child workflow. + # SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_reader namespace_id(): ::String + attr_writer namespace_id(): ::String | ::Symbol + def clear_namespace_id: () -> void + + attr_accessor workflow_execution(): ::Temporalio::Api::Common::V1::WorkflowExecution? + def has_workflow_execution?: () -> bool + def clear_workflow_execution: () -> void + + attr_accessor workflow_type(): ::Temporalio::Api::Common::V1::WorkflowType? + def has_workflow_type?: () -> bool + def clear_workflow_type: () -> void + + # Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to + attr_reader initiated_event_id(): ::Integer + attr_writer initiated_event_id(): ::Integer | ::Float + def clear_initiated_event_id: () -> void + + # Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to + attr_reader started_event_id(): ::Integer + attr_writer started_event_id(): ::Integer | ::Float + def clear_started_event_id: () -> void + + type init_map = { + details: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + "details" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + namespace_id: (::String | ::Symbol)?, + "namespace_id" => (::String | ::Symbol)?, + workflow_execution: (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + "workflow_execution" => (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + workflow_type: (::Temporalio::Api::Common::V1::WorkflowType | ::Temporalio::Api::Common::V1::WorkflowType::init_map)?, + "workflow_type" => (::Temporalio::Api::Common::V1::WorkflowType | ::Temporalio::Api::Common::V1::WorkflowType::init_map)?, + initiated_event_id: (::Integer | ::Float)?, + "initiated_event_id" => (::Integer | ::Float)?, + started_event_id: (::Integer | ::Float)?, + "started_event_id" => (::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("details" name) -> ::Temporalio::Api::Common::V1::Payloads? + | ("namespace" name) -> ::String + | ("namespace_id" name) -> ::String + | ("workflow_execution" name) -> ::Temporalio::Api::Common::V1::WorkflowExecution? + | ("workflow_type" name) -> ::Temporalio::Api::Common::V1::WorkflowType? + | ("initiated_event_id" name) -> ::Integer + | ("started_event_id" name) -> ::Integer + + def []=: + ("details" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void + | ("namespace" name, (::String | ::Symbol) value) -> void + | ("namespace_id" name, (::String | ::Symbol) value) -> void + | ("workflow_execution" name, ::Temporalio::Api::Common::V1::WorkflowExecution? value) -> void + | ("workflow_type" name, ::Temporalio::Api::Common::V1::WorkflowType? value) -> void + | ("initiated_event_id" name, (::Integer | ::Float) value) -> void + | ("started_event_id" name, (::Integer | ::Float) value) -> void + end + + class ChildWorkflowExecutionTimedOutEventAttributes < ::Google::Protobuf::AbstractMessage + + # Namespace of the child workflow. + # SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_reader namespace_id(): ::String + attr_writer namespace_id(): ::String | ::Symbol + def clear_namespace_id: () -> void + + attr_accessor workflow_execution(): ::Temporalio::Api::Common::V1::WorkflowExecution? + def has_workflow_execution?: () -> bool + def clear_workflow_execution: () -> void + + attr_accessor workflow_type(): ::Temporalio::Api::Common::V1::WorkflowType? + def has_workflow_type?: () -> bool + def clear_workflow_type: () -> void + + # Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to + attr_reader initiated_event_id(): ::Integer + attr_writer initiated_event_id(): ::Integer | ::Float + def clear_initiated_event_id: () -> void + + # Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to + attr_reader started_event_id(): ::Integer + attr_writer started_event_id(): ::Integer | ::Float + def clear_started_event_id: () -> void + + attr_reader retry_state(): ::Temporalio::Api::Enums::V1::RetryState::names | ::Integer + attr_writer retry_state(): ::Temporalio::Api::Enums::V1::RetryState::names | ::Temporalio::Api::Enums::V1::RetryState::strings | ::Integer | ::Float + attr_reader retry_state_const(): ::Integer + def clear_retry_state: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + namespace_id: (::String | ::Symbol)?, + "namespace_id" => (::String | ::Symbol)?, + workflow_execution: (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + "workflow_execution" => (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + workflow_type: (::Temporalio::Api::Common::V1::WorkflowType | ::Temporalio::Api::Common::V1::WorkflowType::init_map)?, + "workflow_type" => (::Temporalio::Api::Common::V1::WorkflowType | ::Temporalio::Api::Common::V1::WorkflowType::init_map)?, + initiated_event_id: (::Integer | ::Float)?, + "initiated_event_id" => (::Integer | ::Float)?, + started_event_id: (::Integer | ::Float)?, + "started_event_id" => (::Integer | ::Float)?, + retry_state: (::Temporalio::Api::Enums::V1::RetryState::names | ::Temporalio::Api::Enums::V1::RetryState::strings | ::Integer | ::Float)?, + "retry_state" => (::Temporalio::Api::Enums::V1::RetryState::names | ::Temporalio::Api::Enums::V1::RetryState::strings | ::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("namespace_id" name) -> ::String + | ("workflow_execution" name) -> ::Temporalio::Api::Common::V1::WorkflowExecution? + | ("workflow_type" name) -> ::Temporalio::Api::Common::V1::WorkflowType? + | ("initiated_event_id" name) -> ::Integer + | ("started_event_id" name) -> ::Integer + | ("retry_state" name) -> (::Temporalio::Api::Enums::V1::RetryState::names | ::Integer) + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("namespace_id" name, (::String | ::Symbol) value) -> void + | ("workflow_execution" name, ::Temporalio::Api::Common::V1::WorkflowExecution? value) -> void + | ("workflow_type" name, ::Temporalio::Api::Common::V1::WorkflowType? value) -> void + | ("initiated_event_id" name, (::Integer | ::Float) value) -> void + | ("started_event_id" name, (::Integer | ::Float) value) -> void + | ("retry_state" name, (::Temporalio::Api::Enums::V1::RetryState::names | ::Temporalio::Api::Enums::V1::RetryState::strings | ::Integer | ::Float) value) -> void + end + + class ChildWorkflowExecutionTerminatedEventAttributes < ::Google::Protobuf::AbstractMessage + + # Namespace of the child workflow. + # SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_reader namespace_id(): ::String + attr_writer namespace_id(): ::String | ::Symbol + def clear_namespace_id: () -> void + + attr_accessor workflow_execution(): ::Temporalio::Api::Common::V1::WorkflowExecution? + def has_workflow_execution?: () -> bool + def clear_workflow_execution: () -> void + + attr_accessor workflow_type(): ::Temporalio::Api::Common::V1::WorkflowType? + def has_workflow_type?: () -> bool + def clear_workflow_type: () -> void + + # Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to + attr_reader initiated_event_id(): ::Integer + attr_writer initiated_event_id(): ::Integer | ::Float + def clear_initiated_event_id: () -> void + + # Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to + attr_reader started_event_id(): ::Integer + attr_writer started_event_id(): ::Integer | ::Float + def clear_started_event_id: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + namespace_id: (::String | ::Symbol)?, + "namespace_id" => (::String | ::Symbol)?, + workflow_execution: (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + "workflow_execution" => (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + workflow_type: (::Temporalio::Api::Common::V1::WorkflowType | ::Temporalio::Api::Common::V1::WorkflowType::init_map)?, + "workflow_type" => (::Temporalio::Api::Common::V1::WorkflowType | ::Temporalio::Api::Common::V1::WorkflowType::init_map)?, + initiated_event_id: (::Integer | ::Float)?, + "initiated_event_id" => (::Integer | ::Float)?, + started_event_id: (::Integer | ::Float)?, + "started_event_id" => (::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("namespace_id" name) -> ::String + | ("workflow_execution" name) -> ::Temporalio::Api::Common::V1::WorkflowExecution? + | ("workflow_type" name) -> ::Temporalio::Api::Common::V1::WorkflowType? + | ("initiated_event_id" name) -> ::Integer + | ("started_event_id" name) -> ::Integer + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("namespace_id" name, (::String | ::Symbol) value) -> void + | ("workflow_execution" name, ::Temporalio::Api::Common::V1::WorkflowExecution? value) -> void + | ("workflow_type" name, ::Temporalio::Api::Common::V1::WorkflowType? value) -> void + | ("initiated_event_id" name, (::Integer | ::Float) value) -> void + | ("started_event_id" name, (::Integer | ::Float) value) -> void + end + + class WorkflowExecutionOptionsUpdatedEventAttributes < ::Google::Protobuf::AbstractMessage + + # Versioning override upserted in this event. + # Ignored if nil or if unset_versioning_override is true. + attr_accessor versioning_override(): ::Temporalio::Api::Workflow::V1::VersioningOverride? + def has_versioning_override?: () -> bool + def clear_versioning_override: () -> void + + # Versioning override removed in this event. + attr_accessor unset_versioning_override(): bool + def clear_unset_versioning_override: () -> void + + # Request ID attached to the running workflow execution so that subsequent requests with same + # request ID will be deduped. + attr_reader attached_request_id(): ::String + attr_writer attached_request_id(): ::String | ::Symbol + def clear_attached_request_id: () -> void + + # Completion callbacks attached to the running workflow execution. + attr_accessor attached_completion_callbacks(): ::Google::Protobuf::RepeatedField + def clear_attached_completion_callbacks: () -> void + + # Optional. The identity of the client who initiated the request that created this event. + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + # Priority override upserted in this event. Represents the full priority; not just partial fields. + # Ignored if nil. + attr_accessor priority(): ::Temporalio::Api::Common::V1::Priority? + def has_priority?: () -> bool + def clear_priority: () -> void + + type init_map = { + versioning_override: (::Temporalio::Api::Workflow::V1::VersioningOverride | ::Temporalio::Api::Workflow::V1::VersioningOverride::init_map)?, + "versioning_override" => (::Temporalio::Api::Workflow::V1::VersioningOverride | ::Temporalio::Api::Workflow::V1::VersioningOverride::init_map)?, + unset_versioning_override: bool?, + "unset_versioning_override" => bool?, + attached_request_id: (::String | ::Symbol)?, + "attached_request_id" => (::String | ::Symbol)?, + attached_completion_callbacks: ::Array[::Temporalio::Api::Common::V1::Callback]?, + "attached_completion_callbacks" => ::Array[::Temporalio::Api::Common::V1::Callback]?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + priority: (::Temporalio::Api::Common::V1::Priority | ::Temporalio::Api::Common::V1::Priority::init_map)?, + "priority" => (::Temporalio::Api::Common::V1::Priority | ::Temporalio::Api::Common::V1::Priority::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("versioning_override" name) -> ::Temporalio::Api::Workflow::V1::VersioningOverride? + | ("unset_versioning_override" name) -> bool + | ("attached_request_id" name) -> ::String + | ("attached_completion_callbacks" name) -> ::Google::Protobuf::RepeatedField + | ("identity" name) -> ::String + | ("priority" name) -> ::Temporalio::Api::Common::V1::Priority? + + def []=: + ("versioning_override" name, ::Temporalio::Api::Workflow::V1::VersioningOverride? value) -> void + | ("unset_versioning_override" name, bool value) -> void + | ("attached_request_id" name, (::String | ::Symbol) value) -> void + | ("attached_completion_callbacks" name, ::Google::Protobuf::RepeatedField value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + | ("priority" name, ::Temporalio::Api::Common::V1::Priority? value) -> void + end + + # Not used anywhere. Use case is replaced by WorkflowExecutionOptionsUpdatedEventAttributes + class WorkflowPropertiesModifiedExternallyEventAttributes < ::Google::Protobuf::AbstractMessage + + # Not used. + attr_reader new_task_queue(): ::String + attr_writer new_task_queue(): ::String | ::Symbol + def clear_new_task_queue: () -> void + + # Not used. + attr_reader new_workflow_task_timeout(): ::Google::Protobuf::Duration? + attr_writer new_workflow_task_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_new_workflow_task_timeout?: () -> bool + def clear_new_workflow_task_timeout: () -> void + + # Not used. + attr_reader new_workflow_run_timeout(): ::Google::Protobuf::Duration? + attr_writer new_workflow_run_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_new_workflow_run_timeout?: () -> bool + def clear_new_workflow_run_timeout: () -> void + + # Not used. + attr_reader new_workflow_execution_timeout(): ::Google::Protobuf::Duration? + attr_writer new_workflow_execution_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_new_workflow_execution_timeout?: () -> bool + def clear_new_workflow_execution_timeout: () -> void + + # Not used. + attr_accessor upserted_memo(): ::Temporalio::Api::Common::V1::Memo? + def has_upserted_memo?: () -> bool + def clear_upserted_memo: () -> void + + type init_map = { + new_task_queue: (::String | ::Symbol)?, + "new_task_queue" => (::String | ::Symbol)?, + new_workflow_task_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "new_workflow_task_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + new_workflow_run_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "new_workflow_run_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + new_workflow_execution_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "new_workflow_execution_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + upserted_memo: (::Temporalio::Api::Common::V1::Memo | ::Temporalio::Api::Common::V1::Memo::init_map)?, + "upserted_memo" => (::Temporalio::Api::Common::V1::Memo | ::Temporalio::Api::Common::V1::Memo::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("new_task_queue" name) -> ::String + | ("new_workflow_task_timeout" name) -> ::Google::Protobuf::Duration? + | ("new_workflow_run_timeout" name) -> ::Google::Protobuf::Duration? + | ("new_workflow_execution_timeout" name) -> ::Google::Protobuf::Duration? + | ("upserted_memo" name) -> ::Temporalio::Api::Common::V1::Memo? + + def []=: + ("new_task_queue" name, (::String | ::Symbol) value) -> void + | ("new_workflow_task_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("new_workflow_run_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("new_workflow_execution_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("upserted_memo" name, ::Temporalio::Api::Common::V1::Memo? value) -> void + end + + class ActivityPropertiesModifiedExternallyEventAttributes < ::Google::Protobuf::AbstractMessage + + # The id of the `ACTIVITY_TASK_SCHEDULED` event this modification corresponds to. + attr_reader scheduled_event_id(): ::Integer + attr_writer scheduled_event_id(): ::Integer | ::Float + def clear_scheduled_event_id: () -> void + + # If set, update the retry policy of the activity, replacing it with the specified one. + # The number of attempts at the activity is preserved. + attr_accessor new_retry_policy(): ::Temporalio::Api::Common::V1::RetryPolicy? + def has_new_retry_policy?: () -> bool + def clear_new_retry_policy: () -> void + + type init_map = { + scheduled_event_id: (::Integer | ::Float)?, + "scheduled_event_id" => (::Integer | ::Float)?, + new_retry_policy: (::Temporalio::Api::Common::V1::RetryPolicy | ::Temporalio::Api::Common::V1::RetryPolicy::init_map)?, + "new_retry_policy" => (::Temporalio::Api::Common::V1::RetryPolicy | ::Temporalio::Api::Common::V1::RetryPolicy::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("scheduled_event_id" name) -> ::Integer + | ("new_retry_policy" name) -> ::Temporalio::Api::Common::V1::RetryPolicy? + + def []=: + ("scheduled_event_id" name, (::Integer | ::Float) value) -> void + | ("new_retry_policy" name, ::Temporalio::Api::Common::V1::RetryPolicy? value) -> void + end + + class WorkflowExecutionUpdateAcceptedEventAttributes < ::Google::Protobuf::AbstractMessage + + # The instance ID of the update protocol that generated this event. + attr_reader protocol_instance_id(): ::String + attr_writer protocol_instance_id(): ::String | ::Symbol + def clear_protocol_instance_id: () -> void + + # 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. + attr_reader accepted_request_message_id(): ::String + attr_writer accepted_request_message_id(): ::String | ::Symbol + def clear_accepted_request_message_id: () -> void + + # The event ID used to sequence the original request message. + attr_reader accepted_request_sequencing_event_id(): ::Integer + attr_writer accepted_request_sequencing_event_id(): ::Integer | ::Float + def clear_accepted_request_sequencing_event_id: () -> void + + # The message payload of the original request message that initiated this + # update. + attr_accessor accepted_request(): ::Temporalio::Api::Update::V1::Request? + def has_accepted_request?: () -> bool + def clear_accepted_request: () -> void + + type init_map = { + protocol_instance_id: (::String | ::Symbol)?, + "protocol_instance_id" => (::String | ::Symbol)?, + accepted_request_message_id: (::String | ::Symbol)?, + "accepted_request_message_id" => (::String | ::Symbol)?, + accepted_request_sequencing_event_id: (::Integer | ::Float)?, + "accepted_request_sequencing_event_id" => (::Integer | ::Float)?, + accepted_request: (::Temporalio::Api::Update::V1::Request | ::Temporalio::Api::Update::V1::Request::init_map)?, + "accepted_request" => (::Temporalio::Api::Update::V1::Request | ::Temporalio::Api::Update::V1::Request::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("protocol_instance_id" name) -> ::String + | ("accepted_request_message_id" name) -> ::String + | ("accepted_request_sequencing_event_id" name) -> ::Integer + | ("accepted_request" name) -> ::Temporalio::Api::Update::V1::Request? + + def []=: + ("protocol_instance_id" name, (::String | ::Symbol) value) -> void + | ("accepted_request_message_id" name, (::String | ::Symbol) value) -> void + | ("accepted_request_sequencing_event_id" name, (::Integer | ::Float) value) -> void + | ("accepted_request" name, ::Temporalio::Api::Update::V1::Request? value) -> void + end + + class WorkflowExecutionUpdateCompletedEventAttributes < ::Google::Protobuf::AbstractMessage + + # The metadata about this update. + attr_accessor meta(): ::Temporalio::Api::Update::V1::Meta? + def has_meta?: () -> bool + def clear_meta: () -> void + + # The event ID indicating the acceptance of this update. + attr_reader accepted_event_id(): ::Integer + attr_writer accepted_event_id(): ::Integer | ::Float + def clear_accepted_event_id: () -> void + + # The outcome of executing the workflow update function. + attr_accessor outcome(): ::Temporalio::Api::Update::V1::Outcome? + def has_outcome?: () -> bool + def clear_outcome: () -> void + + type init_map = { + meta: (::Temporalio::Api::Update::V1::Meta | ::Temporalio::Api::Update::V1::Meta::init_map)?, + "meta" => (::Temporalio::Api::Update::V1::Meta | ::Temporalio::Api::Update::V1::Meta::init_map)?, + accepted_event_id: (::Integer | ::Float)?, + "accepted_event_id" => (::Integer | ::Float)?, + outcome: (::Temporalio::Api::Update::V1::Outcome | ::Temporalio::Api::Update::V1::Outcome::init_map)?, + "outcome" => (::Temporalio::Api::Update::V1::Outcome | ::Temporalio::Api::Update::V1::Outcome::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("meta" name) -> ::Temporalio::Api::Update::V1::Meta? + | ("accepted_event_id" name) -> ::Integer + | ("outcome" name) -> ::Temporalio::Api::Update::V1::Outcome? + + def []=: + ("meta" name, ::Temporalio::Api::Update::V1::Meta? value) -> void + | ("accepted_event_id" name, (::Integer | ::Float) value) -> void + | ("outcome" name, ::Temporalio::Api::Update::V1::Outcome? value) -> void + end + + class WorkflowExecutionUpdateRejectedEventAttributes < ::Google::Protobuf::AbstractMessage + + # The instance ID of the update protocol that generated this event. + attr_reader protocol_instance_id(): ::String + attr_writer protocol_instance_id(): ::String | ::Symbol + def clear_protocol_instance_id: () -> void + + # 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. + attr_reader rejected_request_message_id(): ::String + attr_writer rejected_request_message_id(): ::String | ::Symbol + def clear_rejected_request_message_id: () -> void + + # The event ID used to sequence the original request message. + attr_reader rejected_request_sequencing_event_id(): ::Integer + attr_writer rejected_request_sequencing_event_id(): ::Integer | ::Float + def clear_rejected_request_sequencing_event_id: () -> void + + # The message payload of the original request message that initiated this + # update. + attr_accessor rejected_request(): ::Temporalio::Api::Update::V1::Request? + def has_rejected_request?: () -> bool + def clear_rejected_request: () -> void + + # The cause of rejection. + attr_accessor failure(): ::Temporalio::Api::Failure::V1::Failure? + def has_failure?: () -> bool + def clear_failure: () -> void + + type init_map = { + protocol_instance_id: (::String | ::Symbol)?, + "protocol_instance_id" => (::String | ::Symbol)?, + rejected_request_message_id: (::String | ::Symbol)?, + "rejected_request_message_id" => (::String | ::Symbol)?, + rejected_request_sequencing_event_id: (::Integer | ::Float)?, + "rejected_request_sequencing_event_id" => (::Integer | ::Float)?, + rejected_request: (::Temporalio::Api::Update::V1::Request | ::Temporalio::Api::Update::V1::Request::init_map)?, + "rejected_request" => (::Temporalio::Api::Update::V1::Request | ::Temporalio::Api::Update::V1::Request::init_map)?, + failure: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + "failure" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("protocol_instance_id" name) -> ::String + | ("rejected_request_message_id" name) -> ::String + | ("rejected_request_sequencing_event_id" name) -> ::Integer + | ("rejected_request" name) -> ::Temporalio::Api::Update::V1::Request? + | ("failure" name) -> ::Temporalio::Api::Failure::V1::Failure? + + def []=: + ("protocol_instance_id" name, (::String | ::Symbol) value) -> void + | ("rejected_request_message_id" name, (::String | ::Symbol) value) -> void + | ("rejected_request_sequencing_event_id" name, (::Integer | ::Float) value) -> void + | ("rejected_request" name, ::Temporalio::Api::Update::V1::Request? value) -> void + | ("failure" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void + end + + class WorkflowExecutionUpdateAdmittedEventAttributes < ::Google::Protobuf::AbstractMessage + + # The update request associated with this event. + attr_accessor request(): ::Temporalio::Api::Update::V1::Request? + def has_request?: () -> bool + def clear_request: () -> void + + # An explanation of why this event was written to history. + attr_reader origin(): ::Temporalio::Api::Enums::V1::UpdateAdmittedEventOrigin::names | ::Integer + attr_writer origin(): ::Temporalio::Api::Enums::V1::UpdateAdmittedEventOrigin::names | ::Temporalio::Api::Enums::V1::UpdateAdmittedEventOrigin::strings | ::Integer | ::Float + attr_reader origin_const(): ::Integer + def clear_origin: () -> void + + type init_map = { + request: (::Temporalio::Api::Update::V1::Request | ::Temporalio::Api::Update::V1::Request::init_map)?, + "request" => (::Temporalio::Api::Update::V1::Request | ::Temporalio::Api::Update::V1::Request::init_map)?, + origin: (::Temporalio::Api::Enums::V1::UpdateAdmittedEventOrigin::names | ::Temporalio::Api::Enums::V1::UpdateAdmittedEventOrigin::strings | ::Integer | ::Float)?, + "origin" => (::Temporalio::Api::Enums::V1::UpdateAdmittedEventOrigin::names | ::Temporalio::Api::Enums::V1::UpdateAdmittedEventOrigin::strings | ::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("request" name) -> ::Temporalio::Api::Update::V1::Request? + | ("origin" name) -> (::Temporalio::Api::Enums::V1::UpdateAdmittedEventOrigin::names | ::Integer) + + def []=: + ("request" name, ::Temporalio::Api::Update::V1::Request? value) -> void + | ("origin" name, (::Temporalio::Api::Enums::V1::UpdateAdmittedEventOrigin::names | ::Temporalio::Api::Enums::V1::UpdateAdmittedEventOrigin::strings | ::Integer | ::Float) value) -> void + end + + # Attributes for an event marking that a workflow execution was paused. + class WorkflowExecutionPausedEventAttributes < ::Google::Protobuf::AbstractMessage + + # The identity of the client who paused the workflow execution. + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + # The reason for pausing the workflow execution. + attr_reader reason(): ::String + attr_writer reason(): ::String | ::Symbol + def clear_reason: () -> void + + # The request ID of the request that paused the workflow execution. + attr_reader request_id(): ::String + attr_writer request_id(): ::String | ::Symbol + def clear_request_id: () -> void + + type init_map = { + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + reason: (::String | ::Symbol)?, + "reason" => (::String | ::Symbol)?, + request_id: (::String | ::Symbol)?, + "request_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("identity" name) -> ::String + | ("reason" name) -> ::String + | ("request_id" name) -> ::String + + def []=: + ("identity" name, (::String | ::Symbol) value) -> void + | ("reason" name, (::String | ::Symbol) value) -> void + | ("request_id" name, (::String | ::Symbol) value) -> void + end + + # Attributes for an event marking that a workflow execution was unpaused. + class WorkflowExecutionUnpausedEventAttributes < ::Google::Protobuf::AbstractMessage + + # The identity of the client who unpaused the workflow execution. + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + # The reason for unpausing the workflow execution. + attr_reader reason(): ::String + attr_writer reason(): ::String | ::Symbol + def clear_reason: () -> void + + # The request ID of the request that unpaused the workflow execution. + attr_reader request_id(): ::String + attr_writer request_id(): ::String | ::Symbol + def clear_request_id: () -> void + + type init_map = { + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + reason: (::String | ::Symbol)?, + "reason" => (::String | ::Symbol)?, + request_id: (::String | ::Symbol)?, + "request_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("identity" name) -> ::String + | ("reason" name) -> ::String + | ("request_id" name) -> ::String + + def []=: + ("identity" name, (::String | ::Symbol) value) -> void + | ("reason" name, (::String | ::Symbol) value) -> void + | ("request_id" name, (::String | ::Symbol) value) -> void + end + + # Event marking that an operation was scheduled by a workflow via the ScheduleNexusOperation command. + class NexusOperationScheduledEventAttributes < ::Google::Protobuf::AbstractMessage + + # Endpoint name, must exist in the endpoint registry. + attr_reader endpoint(): ::String + attr_writer endpoint(): ::String | ::Symbol + def clear_endpoint: () -> void + + # Service name. + attr_reader service(): ::String + attr_writer service(): ::String | ::Symbol + def clear_service: () -> void + + # Operation name. + attr_reader operation(): ::String + attr_writer operation(): ::String | ::Symbol + def clear_operation: () -> void + + # 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. + attr_accessor input(): ::Temporalio::Api::Common::V1::Payload? + def has_input?: () -> bool + def clear_input: () -> void + + # 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. --) + attr_reader schedule_to_close_timeout(): ::Google::Protobuf::Duration? + attr_writer schedule_to_close_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_schedule_to_close_timeout?: () -> bool + def clear_schedule_to_close_timeout: () -> void + + # 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. + attr_accessor nexus_header(): ::Google::Protobuf::Map[::String, ::String] + def clear_nexus_header: () -> void + + # The `WORKFLOW_TASK_COMPLETED` event that the corresponding ScheduleNexusOperation command was reported with. + attr_reader workflow_task_completed_event_id(): ::Integer + attr_writer workflow_task_completed_event_id(): ::Integer | ::Float + def clear_workflow_task_completed_event_id: () -> void + + # 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. + attr_reader request_id(): ::String + attr_writer request_id(): ::String | ::Symbol + def clear_request_id: () -> void + + # 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. + attr_reader endpoint_id(): ::String + attr_writer endpoint_id(): ::String | ::Symbol + def clear_endpoint_id: () -> void + + # 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. --) + attr_reader schedule_to_start_timeout(): ::Google::Protobuf::Duration? + attr_writer schedule_to_start_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_schedule_to_start_timeout?: () -> bool + def clear_schedule_to_start_timeout: () -> void + + # 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. --) + attr_reader start_to_close_timeout(): ::Google::Protobuf::Duration? + attr_writer start_to_close_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_start_to_close_timeout?: () -> bool + def clear_start_to_close_timeout: () -> void + + type init_map = { + endpoint: (::String | ::Symbol)?, + "endpoint" => (::String | ::Symbol)?, + service: (::String | ::Symbol)?, + "service" => (::String | ::Symbol)?, + operation: (::String | ::Symbol)?, + "operation" => (::String | ::Symbol)?, + input: (::Temporalio::Api::Common::V1::Payload | ::Temporalio::Api::Common::V1::Payload::init_map)?, + "input" => (::Temporalio::Api::Common::V1::Payload | ::Temporalio::Api::Common::V1::Payload::init_map)?, + schedule_to_close_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "schedule_to_close_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + nexus_header: ::Hash[::String | ::Symbol, ::String | ::Symbol]?, + "nexus_header" => ::Hash[::String | ::Symbol, ::String | ::Symbol]?, + workflow_task_completed_event_id: (::Integer | ::Float)?, + "workflow_task_completed_event_id" => (::Integer | ::Float)?, + request_id: (::String | ::Symbol)?, + "request_id" => (::String | ::Symbol)?, + endpoint_id: (::String | ::Symbol)?, + "endpoint_id" => (::String | ::Symbol)?, + schedule_to_start_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "schedule_to_start_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + start_to_close_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "start_to_close_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("endpoint" name) -> ::String + | ("service" name) -> ::String + | ("operation" name) -> ::String + | ("input" name) -> ::Temporalio::Api::Common::V1::Payload? + | ("schedule_to_close_timeout" name) -> ::Google::Protobuf::Duration? + | ("nexus_header" name) -> (::Google::Protobuf::Map[::String, ::String]) + | ("workflow_task_completed_event_id" name) -> ::Integer + | ("request_id" name) -> ::String + | ("endpoint_id" name) -> ::String + | ("schedule_to_start_timeout" name) -> ::Google::Protobuf::Duration? + | ("start_to_close_timeout" name) -> ::Google::Protobuf::Duration? + + def []=: + ("endpoint" name, (::String | ::Symbol) value) -> void + | ("service" name, (::String | ::Symbol) value) -> void + | ("operation" name, (::String | ::Symbol) value) -> void + | ("input" name, ::Temporalio::Api::Common::V1::Payload? value) -> void + | ("schedule_to_close_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("nexus_header" name, (::Google::Protobuf::Map[::String, ::String]) value) -> void + | ("workflow_task_completed_event_id" name, (::Integer | ::Float) value) -> void + | ("request_id" name, (::String | ::Symbol) value) -> void + | ("endpoint_id" name, (::String | ::Symbol) value) -> void + | ("schedule_to_start_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("start_to_close_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + end + + # 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. + class NexusOperationStartedEventAttributes < ::Google::Protobuf::AbstractMessage + + # The ID of the `NEXUS_OPERATION_SCHEDULED` event this task corresponds to. + attr_reader scheduled_event_id(): ::Integer + attr_writer scheduled_event_id(): ::Integer | ::Float + def clear_scheduled_event_id: () -> void + + # 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 + attr_reader operation_id(): ::String + attr_writer operation_id(): ::String | ::Symbol + def clear_operation_id: () -> void + + # The request ID allocated at schedule time. + attr_reader request_id(): ::String + attr_writer request_id(): ::String | ::Symbol + def clear_request_id: () -> void + + # The operation token returned by the Nexus handler in the response to the StartOperation request. + # This token is used when canceling the operation. + attr_reader operation_token(): ::String + attr_writer operation_token(): ::String | ::Symbol + def clear_operation_token: () -> void + + type init_map = { + scheduled_event_id: (::Integer | ::Float)?, + "scheduled_event_id" => (::Integer | ::Float)?, + operation_id: (::String | ::Symbol)?, + "operation_id" => (::String | ::Symbol)?, + request_id: (::String | ::Symbol)?, + "request_id" => (::String | ::Symbol)?, + operation_token: (::String | ::Symbol)?, + "operation_token" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("scheduled_event_id" name) -> ::Integer + | ("operation_id" name) -> ::String + | ("request_id" name) -> ::String + | ("operation_token" name) -> ::String + + def []=: + ("scheduled_event_id" name, (::Integer | ::Float) value) -> void + | ("operation_id" name, (::String | ::Symbol) value) -> void + | ("request_id" name, (::String | ::Symbol) value) -> void + | ("operation_token" name, (::String | ::Symbol) value) -> void + end + + # Nexus operation completed successfully. + class NexusOperationCompletedEventAttributes < ::Google::Protobuf::AbstractMessage + + # The ID of the `NEXUS_OPERATION_SCHEDULED` event. Uniquely identifies this operation. + attr_reader scheduled_event_id(): ::Integer + attr_writer scheduled_event_id(): ::Integer | ::Float + def clear_scheduled_event_id: () -> void + + # 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. + attr_accessor result(): ::Temporalio::Api::Common::V1::Payload? + def has_result?: () -> bool + def clear_result: () -> void + + # The request ID allocated at schedule time. + attr_reader request_id(): ::String + attr_writer request_id(): ::String | ::Symbol + def clear_request_id: () -> void + + type init_map = { + scheduled_event_id: (::Integer | ::Float)?, + "scheduled_event_id" => (::Integer | ::Float)?, + result: (::Temporalio::Api::Common::V1::Payload | ::Temporalio::Api::Common::V1::Payload::init_map)?, + "result" => (::Temporalio::Api::Common::V1::Payload | ::Temporalio::Api::Common::V1::Payload::init_map)?, + request_id: (::String | ::Symbol)?, + "request_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("scheduled_event_id" name) -> ::Integer + | ("result" name) -> ::Temporalio::Api::Common::V1::Payload? + | ("request_id" name) -> ::String + + def []=: + ("scheduled_event_id" name, (::Integer | ::Float) value) -> void + | ("result" name, ::Temporalio::Api::Common::V1::Payload? value) -> void + | ("request_id" name, (::String | ::Symbol) value) -> void + end + + # Nexus operation failed. + class NexusOperationFailedEventAttributes < ::Google::Protobuf::AbstractMessage + + # The ID of the `NEXUS_OPERATION_SCHEDULED` event. Uniquely identifies this operation. + attr_reader scheduled_event_id(): ::Integer + attr_writer scheduled_event_id(): ::Integer | ::Float + def clear_scheduled_event_id: () -> void + + # Failure details. A NexusOperationFailureInfo wrapping an ApplicationFailureInfo. + attr_accessor failure(): ::Temporalio::Api::Failure::V1::Failure? + def has_failure?: () -> bool + def clear_failure: () -> void + + # The request ID allocated at schedule time. + attr_reader request_id(): ::String + attr_writer request_id(): ::String | ::Symbol + def clear_request_id: () -> void + + type init_map = { + scheduled_event_id: (::Integer | ::Float)?, + "scheduled_event_id" => (::Integer | ::Float)?, + failure: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + "failure" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + request_id: (::String | ::Symbol)?, + "request_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("scheduled_event_id" name) -> ::Integer + | ("failure" name) -> ::Temporalio::Api::Failure::V1::Failure? + | ("request_id" name) -> ::String + + def []=: + ("scheduled_event_id" name, (::Integer | ::Float) value) -> void + | ("failure" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void + | ("request_id" name, (::String | ::Symbol) value) -> void + end + + # Nexus operation timed out. + class NexusOperationTimedOutEventAttributes < ::Google::Protobuf::AbstractMessage + + # The ID of the `NEXUS_OPERATION_SCHEDULED` event. Uniquely identifies this operation. + attr_reader scheduled_event_id(): ::Integer + attr_writer scheduled_event_id(): ::Integer | ::Float + def clear_scheduled_event_id: () -> void + + # Failure details. A NexusOperationFailureInfo wrapping a CanceledFailureInfo. + attr_accessor failure(): ::Temporalio::Api::Failure::V1::Failure? + def has_failure?: () -> bool + def clear_failure: () -> void + + # The request ID allocated at schedule time. + attr_reader request_id(): ::String + attr_writer request_id(): ::String | ::Symbol + def clear_request_id: () -> void + + type init_map = { + scheduled_event_id: (::Integer | ::Float)?, + "scheduled_event_id" => (::Integer | ::Float)?, + failure: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + "failure" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + request_id: (::String | ::Symbol)?, + "request_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("scheduled_event_id" name) -> ::Integer + | ("failure" name) -> ::Temporalio::Api::Failure::V1::Failure? + | ("request_id" name) -> ::String + + def []=: + ("scheduled_event_id" name, (::Integer | ::Float) value) -> void + | ("failure" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void + | ("request_id" name, (::String | ::Symbol) value) -> void + end + + # Nexus operation completed as canceled. May or may not have been due to a cancellation request by the workflow. + class NexusOperationCanceledEventAttributes < ::Google::Protobuf::AbstractMessage + + # The ID of the `NEXUS_OPERATION_SCHEDULED` event. Uniquely identifies this operation. + attr_reader scheduled_event_id(): ::Integer + attr_writer scheduled_event_id(): ::Integer | ::Float + def clear_scheduled_event_id: () -> void + + # Cancellation details. + attr_accessor failure(): ::Temporalio::Api::Failure::V1::Failure? + def has_failure?: () -> bool + def clear_failure: () -> void + + # The request ID allocated at schedule time. + attr_reader request_id(): ::String + attr_writer request_id(): ::String | ::Symbol + def clear_request_id: () -> void + + type init_map = { + scheduled_event_id: (::Integer | ::Float)?, + "scheduled_event_id" => (::Integer | ::Float)?, + failure: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + "failure" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + request_id: (::String | ::Symbol)?, + "request_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("scheduled_event_id" name) -> ::Integer + | ("failure" name) -> ::Temporalio::Api::Failure::V1::Failure? + | ("request_id" name) -> ::String + + def []=: + ("scheduled_event_id" name, (::Integer | ::Float) value) -> void + | ("failure" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void + | ("request_id" name, (::String | ::Symbol) value) -> void + end + + class NexusOperationCancelRequestedEventAttributes < ::Google::Protobuf::AbstractMessage + + # The id of the `NEXUS_OPERATION_SCHEDULED` event this cancel request corresponds to. + attr_reader scheduled_event_id(): ::Integer + attr_writer scheduled_event_id(): ::Integer | ::Float + def clear_scheduled_event_id: () -> void + + # The `WORKFLOW_TASK_COMPLETED` event that the corresponding RequestCancelNexusOperation command was reported + # with. + attr_reader workflow_task_completed_event_id(): ::Integer + attr_writer workflow_task_completed_event_id(): ::Integer | ::Float + def clear_workflow_task_completed_event_id: () -> void + + type init_map = { + scheduled_event_id: (::Integer | ::Float)?, + "scheduled_event_id" => (::Integer | ::Float)?, + workflow_task_completed_event_id: (::Integer | ::Float)?, + "workflow_task_completed_event_id" => (::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("scheduled_event_id" name) -> ::Integer + | ("workflow_task_completed_event_id" name) -> ::Integer + + def []=: + ("scheduled_event_id" name, (::Integer | ::Float) value) -> void + | ("workflow_task_completed_event_id" name, (::Integer | ::Float) value) -> void + end + + class NexusOperationCancelRequestCompletedEventAttributes < ::Google::Protobuf::AbstractMessage + + # The ID of the `NEXUS_OPERATION_CANCEL_REQUESTED` event. + attr_reader requested_event_id(): ::Integer + attr_writer requested_event_id(): ::Integer | ::Float + def clear_requested_event_id: () -> void + + # The `WORKFLOW_TASK_COMPLETED` event that the corresponding RequestCancelNexusOperation command was reported + # with. + attr_reader workflow_task_completed_event_id(): ::Integer + attr_writer workflow_task_completed_event_id(): ::Integer | ::Float + def clear_workflow_task_completed_event_id: () -> void + + # The id of the `NEXUS_OPERATION_SCHEDULED` event this cancel request corresponds to. + attr_reader scheduled_event_id(): ::Integer + attr_writer scheduled_event_id(): ::Integer | ::Float + def clear_scheduled_event_id: () -> void + + type init_map = { + requested_event_id: (::Integer | ::Float)?, + "requested_event_id" => (::Integer | ::Float)?, + workflow_task_completed_event_id: (::Integer | ::Float)?, + "workflow_task_completed_event_id" => (::Integer | ::Float)?, + scheduled_event_id: (::Integer | ::Float)?, + "scheduled_event_id" => (::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("requested_event_id" name) -> ::Integer + | ("workflow_task_completed_event_id" name) -> ::Integer + | ("scheduled_event_id" name) -> ::Integer + + def []=: + ("requested_event_id" name, (::Integer | ::Float) value) -> void + | ("workflow_task_completed_event_id" name, (::Integer | ::Float) value) -> void + | ("scheduled_event_id" name, (::Integer | ::Float) value) -> void + end + + class NexusOperationCancelRequestFailedEventAttributes < ::Google::Protobuf::AbstractMessage + + # The ID of the `NEXUS_OPERATION_CANCEL_REQUESTED` event. + attr_reader requested_event_id(): ::Integer + attr_writer requested_event_id(): ::Integer | ::Float + def clear_requested_event_id: () -> void + + # The `WORKFLOW_TASK_COMPLETED` event that the corresponding RequestCancelNexusOperation command was reported + # with. + attr_reader workflow_task_completed_event_id(): ::Integer + attr_writer workflow_task_completed_event_id(): ::Integer | ::Float + def clear_workflow_task_completed_event_id: () -> void + + # Failure details. A NexusOperationFailureInfo wrapping a CanceledFailureInfo. + attr_accessor failure(): ::Temporalio::Api::Failure::V1::Failure? + def has_failure?: () -> bool + def clear_failure: () -> void + + # The id of the `NEXUS_OPERATION_SCHEDULED` event this cancel request corresponds to. + attr_reader scheduled_event_id(): ::Integer + attr_writer scheduled_event_id(): ::Integer | ::Float + def clear_scheduled_event_id: () -> void + + type init_map = { + requested_event_id: (::Integer | ::Float)?, + "requested_event_id" => (::Integer | ::Float)?, + workflow_task_completed_event_id: (::Integer | ::Float)?, + "workflow_task_completed_event_id" => (::Integer | ::Float)?, + failure: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + "failure" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + scheduled_event_id: (::Integer | ::Float)?, + "scheduled_event_id" => (::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("requested_event_id" name) -> ::Integer + | ("workflow_task_completed_event_id" name) -> ::Integer + | ("failure" name) -> ::Temporalio::Api::Failure::V1::Failure? + | ("scheduled_event_id" name) -> ::Integer + + def []=: + ("requested_event_id" name, (::Integer | ::Float) value) -> void + | ("workflow_task_completed_event_id" name, (::Integer | ::Float) value) -> void + | ("failure" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void + | ("scheduled_event_id" name, (::Integer | ::Float) value) -> void + end + + # 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. + class HistoryEvent < ::Google::Protobuf::AbstractMessage + + # Monotonically increasing event number, starts at 1. + attr_reader event_id(): ::Integer + attr_writer event_id(): ::Integer | ::Float + def clear_event_id: () -> void + + attr_reader event_time(): ::Google::Protobuf::Timestamp? + attr_writer event_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_event_time?: () -> bool + def clear_event_time: () -> void + + attr_reader event_type(): ::Temporalio::Api::Enums::V1::EventType::names | ::Integer + attr_writer event_type(): ::Temporalio::Api::Enums::V1::EventType::names | ::Temporalio::Api::Enums::V1::EventType::strings | ::Integer | ::Float + attr_reader event_type_const(): ::Integer + def clear_event_type: () -> void + + # Failover version of the event, used by the server for multi-cluster replication and history + # versioning. SDKs generally ignore this field. + attr_reader version(): ::Integer + attr_writer version(): ::Integer | ::Float + def clear_version: () -> void + + # Identifier used by the service to order replication and transfer tasks associated with this + # event. SDKs generally ignore this field. + attr_reader task_id(): ::Integer + attr_writer task_id(): ::Integer | ::Float + def clear_task_id: () -> void + + # 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. + attr_accessor worker_may_ignore(): bool + def clear_worker_may_ignore: () -> void + + # 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. + attr_accessor user_metadata(): ::Temporalio::Api::Sdk::V1::UserMetadata? + def has_user_metadata?: () -> bool + def clear_user_metadata: () -> void + + # Links associated with the event. + attr_accessor links(): ::Google::Protobuf::RepeatedField + def clear_links: () -> void + + attr_accessor workflow_execution_started_event_attributes(): ::Temporalio::Api::History::V1::WorkflowExecutionStartedEventAttributes? + def has_workflow_execution_started_event_attributes?: () -> bool + def clear_workflow_execution_started_event_attributes: () -> void + + attr_accessor workflow_execution_completed_event_attributes(): ::Temporalio::Api::History::V1::WorkflowExecutionCompletedEventAttributes? + def has_workflow_execution_completed_event_attributes?: () -> bool + def clear_workflow_execution_completed_event_attributes: () -> void + + attr_accessor workflow_execution_failed_event_attributes(): ::Temporalio::Api::History::V1::WorkflowExecutionFailedEventAttributes? + def has_workflow_execution_failed_event_attributes?: () -> bool + def clear_workflow_execution_failed_event_attributes: () -> void + + attr_accessor workflow_execution_timed_out_event_attributes(): ::Temporalio::Api::History::V1::WorkflowExecutionTimedOutEventAttributes? + def has_workflow_execution_timed_out_event_attributes?: () -> bool + def clear_workflow_execution_timed_out_event_attributes: () -> void + + attr_accessor workflow_task_scheduled_event_attributes(): ::Temporalio::Api::History::V1::WorkflowTaskScheduledEventAttributes? + def has_workflow_task_scheduled_event_attributes?: () -> bool + def clear_workflow_task_scheduled_event_attributes: () -> void + + attr_accessor workflow_task_started_event_attributes(): ::Temporalio::Api::History::V1::WorkflowTaskStartedEventAttributes? + def has_workflow_task_started_event_attributes?: () -> bool + def clear_workflow_task_started_event_attributes: () -> void + + attr_accessor workflow_task_completed_event_attributes(): ::Temporalio::Api::History::V1::WorkflowTaskCompletedEventAttributes? + def has_workflow_task_completed_event_attributes?: () -> bool + def clear_workflow_task_completed_event_attributes: () -> void + + attr_accessor workflow_task_timed_out_event_attributes(): ::Temporalio::Api::History::V1::WorkflowTaskTimedOutEventAttributes? + def has_workflow_task_timed_out_event_attributes?: () -> bool + def clear_workflow_task_timed_out_event_attributes: () -> void + + attr_accessor workflow_task_failed_event_attributes(): ::Temporalio::Api::History::V1::WorkflowTaskFailedEventAttributes? + def has_workflow_task_failed_event_attributes?: () -> bool + def clear_workflow_task_failed_event_attributes: () -> void + + attr_accessor activity_task_scheduled_event_attributes(): ::Temporalio::Api::History::V1::ActivityTaskScheduledEventAttributes? + def has_activity_task_scheduled_event_attributes?: () -> bool + def clear_activity_task_scheduled_event_attributes: () -> void + + attr_accessor activity_task_started_event_attributes(): ::Temporalio::Api::History::V1::ActivityTaskStartedEventAttributes? + def has_activity_task_started_event_attributes?: () -> bool + def clear_activity_task_started_event_attributes: () -> void + + attr_accessor activity_task_completed_event_attributes(): ::Temporalio::Api::History::V1::ActivityTaskCompletedEventAttributes? + def has_activity_task_completed_event_attributes?: () -> bool + def clear_activity_task_completed_event_attributes: () -> void + + attr_accessor activity_task_failed_event_attributes(): ::Temporalio::Api::History::V1::ActivityTaskFailedEventAttributes? + def has_activity_task_failed_event_attributes?: () -> bool + def clear_activity_task_failed_event_attributes: () -> void + + attr_accessor activity_task_timed_out_event_attributes(): ::Temporalio::Api::History::V1::ActivityTaskTimedOutEventAttributes? + def has_activity_task_timed_out_event_attributes?: () -> bool + def clear_activity_task_timed_out_event_attributes: () -> void + + attr_accessor timer_started_event_attributes(): ::Temporalio::Api::History::V1::TimerStartedEventAttributes? + def has_timer_started_event_attributes?: () -> bool + def clear_timer_started_event_attributes: () -> void + + attr_accessor timer_fired_event_attributes(): ::Temporalio::Api::History::V1::TimerFiredEventAttributes? + def has_timer_fired_event_attributes?: () -> bool + def clear_timer_fired_event_attributes: () -> void + + attr_accessor activity_task_cancel_requested_event_attributes(): ::Temporalio::Api::History::V1::ActivityTaskCancelRequestedEventAttributes? + def has_activity_task_cancel_requested_event_attributes?: () -> bool + def clear_activity_task_cancel_requested_event_attributes: () -> void + + attr_accessor activity_task_canceled_event_attributes(): ::Temporalio::Api::History::V1::ActivityTaskCanceledEventAttributes? + def has_activity_task_canceled_event_attributes?: () -> bool + def clear_activity_task_canceled_event_attributes: () -> void + + attr_accessor timer_canceled_event_attributes(): ::Temporalio::Api::History::V1::TimerCanceledEventAttributes? + def has_timer_canceled_event_attributes?: () -> bool + def clear_timer_canceled_event_attributes: () -> void + + attr_accessor marker_recorded_event_attributes(): ::Temporalio::Api::History::V1::MarkerRecordedEventAttributes? + def has_marker_recorded_event_attributes?: () -> bool + def clear_marker_recorded_event_attributes: () -> void + + attr_accessor workflow_execution_signaled_event_attributes(): ::Temporalio::Api::History::V1::WorkflowExecutionSignaledEventAttributes? + def has_workflow_execution_signaled_event_attributes?: () -> bool + def clear_workflow_execution_signaled_event_attributes: () -> void + + attr_accessor workflow_execution_terminated_event_attributes(): ::Temporalio::Api::History::V1::WorkflowExecutionTerminatedEventAttributes? + def has_workflow_execution_terminated_event_attributes?: () -> bool + def clear_workflow_execution_terminated_event_attributes: () -> void + + attr_accessor workflow_execution_cancel_requested_event_attributes(): ::Temporalio::Api::History::V1::WorkflowExecutionCancelRequestedEventAttributes? + def has_workflow_execution_cancel_requested_event_attributes?: () -> bool + def clear_workflow_execution_cancel_requested_event_attributes: () -> void + + attr_accessor workflow_execution_canceled_event_attributes(): ::Temporalio::Api::History::V1::WorkflowExecutionCanceledEventAttributes? + def has_workflow_execution_canceled_event_attributes?: () -> bool + def clear_workflow_execution_canceled_event_attributes: () -> void + + attr_accessor request_cancel_external_workflow_execution_initiated_event_attributes(): ::Temporalio::Api::History::V1::RequestCancelExternalWorkflowExecutionInitiatedEventAttributes? + def has_request_cancel_external_workflow_execution_initiated_event_attributes?: () -> bool + def clear_request_cancel_external_workflow_execution_initiated_event_attributes: () -> void + + attr_accessor request_cancel_external_workflow_execution_failed_event_attributes(): ::Temporalio::Api::History::V1::RequestCancelExternalWorkflowExecutionFailedEventAttributes? + def has_request_cancel_external_workflow_execution_failed_event_attributes?: () -> bool + def clear_request_cancel_external_workflow_execution_failed_event_attributes: () -> void + + attr_accessor external_workflow_execution_cancel_requested_event_attributes(): ::Temporalio::Api::History::V1::ExternalWorkflowExecutionCancelRequestedEventAttributes? + def has_external_workflow_execution_cancel_requested_event_attributes?: () -> bool + def clear_external_workflow_execution_cancel_requested_event_attributes: () -> void + + attr_accessor workflow_execution_continued_as_new_event_attributes(): ::Temporalio::Api::History::V1::WorkflowExecutionContinuedAsNewEventAttributes? + def has_workflow_execution_continued_as_new_event_attributes?: () -> bool + def clear_workflow_execution_continued_as_new_event_attributes: () -> void + + attr_accessor start_child_workflow_execution_initiated_event_attributes(): ::Temporalio::Api::History::V1::StartChildWorkflowExecutionInitiatedEventAttributes? + def has_start_child_workflow_execution_initiated_event_attributes?: () -> bool + def clear_start_child_workflow_execution_initiated_event_attributes: () -> void + + attr_accessor start_child_workflow_execution_failed_event_attributes(): ::Temporalio::Api::History::V1::StartChildWorkflowExecutionFailedEventAttributes? + def has_start_child_workflow_execution_failed_event_attributes?: () -> bool + def clear_start_child_workflow_execution_failed_event_attributes: () -> void + + attr_accessor child_workflow_execution_started_event_attributes(): ::Temporalio::Api::History::V1::ChildWorkflowExecutionStartedEventAttributes? + def has_child_workflow_execution_started_event_attributes?: () -> bool + def clear_child_workflow_execution_started_event_attributes: () -> void + + attr_accessor child_workflow_execution_completed_event_attributes(): ::Temporalio::Api::History::V1::ChildWorkflowExecutionCompletedEventAttributes? + def has_child_workflow_execution_completed_event_attributes?: () -> bool + def clear_child_workflow_execution_completed_event_attributes: () -> void + + attr_accessor child_workflow_execution_failed_event_attributes(): ::Temporalio::Api::History::V1::ChildWorkflowExecutionFailedEventAttributes? + def has_child_workflow_execution_failed_event_attributes?: () -> bool + def clear_child_workflow_execution_failed_event_attributes: () -> void + + attr_accessor child_workflow_execution_canceled_event_attributes(): ::Temporalio::Api::History::V1::ChildWorkflowExecutionCanceledEventAttributes? + def has_child_workflow_execution_canceled_event_attributes?: () -> bool + def clear_child_workflow_execution_canceled_event_attributes: () -> void + + attr_accessor child_workflow_execution_timed_out_event_attributes(): ::Temporalio::Api::History::V1::ChildWorkflowExecutionTimedOutEventAttributes? + def has_child_workflow_execution_timed_out_event_attributes?: () -> bool + def clear_child_workflow_execution_timed_out_event_attributes: () -> void + + attr_accessor child_workflow_execution_terminated_event_attributes(): ::Temporalio::Api::History::V1::ChildWorkflowExecutionTerminatedEventAttributes? + def has_child_workflow_execution_terminated_event_attributes?: () -> bool + def clear_child_workflow_execution_terminated_event_attributes: () -> void + + attr_accessor signal_external_workflow_execution_initiated_event_attributes(): ::Temporalio::Api::History::V1::SignalExternalWorkflowExecutionInitiatedEventAttributes? + def has_signal_external_workflow_execution_initiated_event_attributes?: () -> bool + def clear_signal_external_workflow_execution_initiated_event_attributes: () -> void + + attr_accessor signal_external_workflow_execution_failed_event_attributes(): ::Temporalio::Api::History::V1::SignalExternalWorkflowExecutionFailedEventAttributes? + def has_signal_external_workflow_execution_failed_event_attributes?: () -> bool + def clear_signal_external_workflow_execution_failed_event_attributes: () -> void + + attr_accessor external_workflow_execution_signaled_event_attributes(): ::Temporalio::Api::History::V1::ExternalWorkflowExecutionSignaledEventAttributes? + def has_external_workflow_execution_signaled_event_attributes?: () -> bool + def clear_external_workflow_execution_signaled_event_attributes: () -> void + + attr_accessor upsert_workflow_search_attributes_event_attributes(): ::Temporalio::Api::History::V1::UpsertWorkflowSearchAttributesEventAttributes? + def has_upsert_workflow_search_attributes_event_attributes?: () -> bool + def clear_upsert_workflow_search_attributes_event_attributes: () -> void + + attr_accessor workflow_execution_update_accepted_event_attributes(): ::Temporalio::Api::History::V1::WorkflowExecutionUpdateAcceptedEventAttributes? + def has_workflow_execution_update_accepted_event_attributes?: () -> bool + def clear_workflow_execution_update_accepted_event_attributes: () -> void + + attr_accessor workflow_execution_update_rejected_event_attributes(): ::Temporalio::Api::History::V1::WorkflowExecutionUpdateRejectedEventAttributes? + def has_workflow_execution_update_rejected_event_attributes?: () -> bool + def clear_workflow_execution_update_rejected_event_attributes: () -> void + + attr_accessor workflow_execution_update_completed_event_attributes(): ::Temporalio::Api::History::V1::WorkflowExecutionUpdateCompletedEventAttributes? + def has_workflow_execution_update_completed_event_attributes?: () -> bool + def clear_workflow_execution_update_completed_event_attributes: () -> void + + attr_accessor workflow_properties_modified_externally_event_attributes(): ::Temporalio::Api::History::V1::WorkflowPropertiesModifiedExternallyEventAttributes? + def has_workflow_properties_modified_externally_event_attributes?: () -> bool + def clear_workflow_properties_modified_externally_event_attributes: () -> void + + attr_accessor activity_properties_modified_externally_event_attributes(): ::Temporalio::Api::History::V1::ActivityPropertiesModifiedExternallyEventAttributes? + def has_activity_properties_modified_externally_event_attributes?: () -> bool + def clear_activity_properties_modified_externally_event_attributes: () -> void + + attr_accessor workflow_properties_modified_event_attributes(): ::Temporalio::Api::History::V1::WorkflowPropertiesModifiedEventAttributes? + def has_workflow_properties_modified_event_attributes?: () -> bool + def clear_workflow_properties_modified_event_attributes: () -> void + + attr_accessor workflow_execution_update_admitted_event_attributes(): ::Temporalio::Api::History::V1::WorkflowExecutionUpdateAdmittedEventAttributes? + def has_workflow_execution_update_admitted_event_attributes?: () -> bool + def clear_workflow_execution_update_admitted_event_attributes: () -> void + + attr_accessor nexus_operation_scheduled_event_attributes(): ::Temporalio::Api::History::V1::NexusOperationScheduledEventAttributes? + def has_nexus_operation_scheduled_event_attributes?: () -> bool + def clear_nexus_operation_scheduled_event_attributes: () -> void + + attr_accessor nexus_operation_started_event_attributes(): ::Temporalio::Api::History::V1::NexusOperationStartedEventAttributes? + def has_nexus_operation_started_event_attributes?: () -> bool + def clear_nexus_operation_started_event_attributes: () -> void + + attr_accessor nexus_operation_completed_event_attributes(): ::Temporalio::Api::History::V1::NexusOperationCompletedEventAttributes? + def has_nexus_operation_completed_event_attributes?: () -> bool + def clear_nexus_operation_completed_event_attributes: () -> void + + attr_accessor nexus_operation_failed_event_attributes(): ::Temporalio::Api::History::V1::NexusOperationFailedEventAttributes? + def has_nexus_operation_failed_event_attributes?: () -> bool + def clear_nexus_operation_failed_event_attributes: () -> void + + attr_accessor nexus_operation_canceled_event_attributes(): ::Temporalio::Api::History::V1::NexusOperationCanceledEventAttributes? + def has_nexus_operation_canceled_event_attributes?: () -> bool + def clear_nexus_operation_canceled_event_attributes: () -> void + + attr_accessor nexus_operation_timed_out_event_attributes(): ::Temporalio::Api::History::V1::NexusOperationTimedOutEventAttributes? + def has_nexus_operation_timed_out_event_attributes?: () -> bool + def clear_nexus_operation_timed_out_event_attributes: () -> void + + attr_accessor nexus_operation_cancel_requested_event_attributes(): ::Temporalio::Api::History::V1::NexusOperationCancelRequestedEventAttributes? + def has_nexus_operation_cancel_requested_event_attributes?: () -> bool + def clear_nexus_operation_cancel_requested_event_attributes: () -> void + + attr_accessor workflow_execution_options_updated_event_attributes(): ::Temporalio::Api::History::V1::WorkflowExecutionOptionsUpdatedEventAttributes? + def has_workflow_execution_options_updated_event_attributes?: () -> bool + def clear_workflow_execution_options_updated_event_attributes: () -> void + + attr_accessor nexus_operation_cancel_request_completed_event_attributes(): ::Temporalio::Api::History::V1::NexusOperationCancelRequestCompletedEventAttributes? + def has_nexus_operation_cancel_request_completed_event_attributes?: () -> bool + def clear_nexus_operation_cancel_request_completed_event_attributes: () -> void + + attr_accessor nexus_operation_cancel_request_failed_event_attributes(): ::Temporalio::Api::History::V1::NexusOperationCancelRequestFailedEventAttributes? + def has_nexus_operation_cancel_request_failed_event_attributes?: () -> bool + def clear_nexus_operation_cancel_request_failed_event_attributes: () -> void + + attr_accessor workflow_execution_paused_event_attributes(): ::Temporalio::Api::History::V1::WorkflowExecutionPausedEventAttributes? + def has_workflow_execution_paused_event_attributes?: () -> bool + def clear_workflow_execution_paused_event_attributes: () -> void + + attr_accessor workflow_execution_unpaused_event_attributes(): ::Temporalio::Api::History::V1::WorkflowExecutionUnpausedEventAttributes? + def has_workflow_execution_unpaused_event_attributes?: () -> bool + def clear_workflow_execution_unpaused_event_attributes: () -> void + + # The event details. The type must match that in `event_type`. + attr_reader attributes(): (::Temporalio::Api::History::V1::WorkflowExecutionStartedEventAttributes | ::Temporalio::Api::History::V1::WorkflowExecutionCompletedEventAttributes | ::Temporalio::Api::History::V1::WorkflowExecutionFailedEventAttributes | ::Temporalio::Api::History::V1::WorkflowExecutionTimedOutEventAttributes | ::Temporalio::Api::History::V1::WorkflowTaskScheduledEventAttributes | ::Temporalio::Api::History::V1::WorkflowTaskStartedEventAttributes | ::Temporalio::Api::History::V1::WorkflowTaskCompletedEventAttributes | ::Temporalio::Api::History::V1::WorkflowTaskTimedOutEventAttributes | ::Temporalio::Api::History::V1::WorkflowTaskFailedEventAttributes | ::Temporalio::Api::History::V1::ActivityTaskScheduledEventAttributes | ::Temporalio::Api::History::V1::ActivityTaskStartedEventAttributes | ::Temporalio::Api::History::V1::ActivityTaskCompletedEventAttributes | ::Temporalio::Api::History::V1::ActivityTaskFailedEventAttributes | ::Temporalio::Api::History::V1::ActivityTaskTimedOutEventAttributes | ::Temporalio::Api::History::V1::TimerStartedEventAttributes | ::Temporalio::Api::History::V1::TimerFiredEventAttributes | ::Temporalio::Api::History::V1::ActivityTaskCancelRequestedEventAttributes | ::Temporalio::Api::History::V1::ActivityTaskCanceledEventAttributes | ::Temporalio::Api::History::V1::TimerCanceledEventAttributes | ::Temporalio::Api::History::V1::MarkerRecordedEventAttributes | ::Temporalio::Api::History::V1::WorkflowExecutionSignaledEventAttributes | ::Temporalio::Api::History::V1::WorkflowExecutionTerminatedEventAttributes | ::Temporalio::Api::History::V1::WorkflowExecutionCancelRequestedEventAttributes | ::Temporalio::Api::History::V1::WorkflowExecutionCanceledEventAttributes | ::Temporalio::Api::History::V1::RequestCancelExternalWorkflowExecutionInitiatedEventAttributes | ::Temporalio::Api::History::V1::RequestCancelExternalWorkflowExecutionFailedEventAttributes | ::Temporalio::Api::History::V1::ExternalWorkflowExecutionCancelRequestedEventAttributes | ::Temporalio::Api::History::V1::WorkflowExecutionContinuedAsNewEventAttributes | ::Temporalio::Api::History::V1::StartChildWorkflowExecutionInitiatedEventAttributes | ::Temporalio::Api::History::V1::StartChildWorkflowExecutionFailedEventAttributes | ::Temporalio::Api::History::V1::ChildWorkflowExecutionStartedEventAttributes | ::Temporalio::Api::History::V1::ChildWorkflowExecutionCompletedEventAttributes | ::Temporalio::Api::History::V1::ChildWorkflowExecutionFailedEventAttributes | ::Temporalio::Api::History::V1::ChildWorkflowExecutionCanceledEventAttributes | ::Temporalio::Api::History::V1::ChildWorkflowExecutionTimedOutEventAttributes | ::Temporalio::Api::History::V1::ChildWorkflowExecutionTerminatedEventAttributes | ::Temporalio::Api::History::V1::SignalExternalWorkflowExecutionInitiatedEventAttributes | ::Temporalio::Api::History::V1::SignalExternalWorkflowExecutionFailedEventAttributes | ::Temporalio::Api::History::V1::ExternalWorkflowExecutionSignaledEventAttributes | ::Temporalio::Api::History::V1::UpsertWorkflowSearchAttributesEventAttributes | ::Temporalio::Api::History::V1::WorkflowExecutionUpdateAcceptedEventAttributes | ::Temporalio::Api::History::V1::WorkflowExecutionUpdateRejectedEventAttributes | ::Temporalio::Api::History::V1::WorkflowExecutionUpdateCompletedEventAttributes | ::Temporalio::Api::History::V1::WorkflowPropertiesModifiedExternallyEventAttributes | ::Temporalio::Api::History::V1::ActivityPropertiesModifiedExternallyEventAttributes | ::Temporalio::Api::History::V1::WorkflowPropertiesModifiedEventAttributes | ::Temporalio::Api::History::V1::WorkflowExecutionUpdateAdmittedEventAttributes | ::Temporalio::Api::History::V1::NexusOperationScheduledEventAttributes | ::Temporalio::Api::History::V1::NexusOperationStartedEventAttributes | ::Temporalio::Api::History::V1::NexusOperationCompletedEventAttributes | ::Temporalio::Api::History::V1::NexusOperationFailedEventAttributes | ::Temporalio::Api::History::V1::NexusOperationCanceledEventAttributes | ::Temporalio::Api::History::V1::NexusOperationTimedOutEventAttributes | ::Temporalio::Api::History::V1::NexusOperationCancelRequestedEventAttributes | ::Temporalio::Api::History::V1::WorkflowExecutionOptionsUpdatedEventAttributes | ::Temporalio::Api::History::V1::NexusOperationCancelRequestCompletedEventAttributes | ::Temporalio::Api::History::V1::NexusOperationCancelRequestFailedEventAttributes | ::Temporalio::Api::History::V1::WorkflowExecutionPausedEventAttributes | ::Temporalio::Api::History::V1::WorkflowExecutionUnpausedEventAttributes)? + def has_attributes?: () -> bool + def clear_attributes: () -> void + + type init_map = { + event_id: (::Integer | ::Float)?, + "event_id" => (::Integer | ::Float)?, + event_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "event_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + event_type: (::Temporalio::Api::Enums::V1::EventType::names | ::Temporalio::Api::Enums::V1::EventType::strings | ::Integer | ::Float)?, + "event_type" => (::Temporalio::Api::Enums::V1::EventType::names | ::Temporalio::Api::Enums::V1::EventType::strings | ::Integer | ::Float)?, + version: (::Integer | ::Float)?, + "version" => (::Integer | ::Float)?, + task_id: (::Integer | ::Float)?, + "task_id" => (::Integer | ::Float)?, + worker_may_ignore: bool?, + "worker_may_ignore" => bool?, + user_metadata: (::Temporalio::Api::Sdk::V1::UserMetadata | ::Temporalio::Api::Sdk::V1::UserMetadata::init_map)?, + "user_metadata" => (::Temporalio::Api::Sdk::V1::UserMetadata | ::Temporalio::Api::Sdk::V1::UserMetadata::init_map)?, + links: ::Array[::Temporalio::Api::Common::V1::Link]?, + "links" => ::Array[::Temporalio::Api::Common::V1::Link]?, + workflow_execution_started_event_attributes: (::Temporalio::Api::History::V1::WorkflowExecutionStartedEventAttributes | ::Temporalio::Api::History::V1::WorkflowExecutionStartedEventAttributes::init_map)?, + "workflow_execution_started_event_attributes" => (::Temporalio::Api::History::V1::WorkflowExecutionStartedEventAttributes | ::Temporalio::Api::History::V1::WorkflowExecutionStartedEventAttributes::init_map)?, + workflow_execution_completed_event_attributes: (::Temporalio::Api::History::V1::WorkflowExecutionCompletedEventAttributes | ::Temporalio::Api::History::V1::WorkflowExecutionCompletedEventAttributes::init_map)?, + "workflow_execution_completed_event_attributes" => (::Temporalio::Api::History::V1::WorkflowExecutionCompletedEventAttributes | ::Temporalio::Api::History::V1::WorkflowExecutionCompletedEventAttributes::init_map)?, + workflow_execution_failed_event_attributes: (::Temporalio::Api::History::V1::WorkflowExecutionFailedEventAttributes | ::Temporalio::Api::History::V1::WorkflowExecutionFailedEventAttributes::init_map)?, + "workflow_execution_failed_event_attributes" => (::Temporalio::Api::History::V1::WorkflowExecutionFailedEventAttributes | ::Temporalio::Api::History::V1::WorkflowExecutionFailedEventAttributes::init_map)?, + workflow_execution_timed_out_event_attributes: (::Temporalio::Api::History::V1::WorkflowExecutionTimedOutEventAttributes | ::Temporalio::Api::History::V1::WorkflowExecutionTimedOutEventAttributes::init_map)?, + "workflow_execution_timed_out_event_attributes" => (::Temporalio::Api::History::V1::WorkflowExecutionTimedOutEventAttributes | ::Temporalio::Api::History::V1::WorkflowExecutionTimedOutEventAttributes::init_map)?, + workflow_task_scheduled_event_attributes: (::Temporalio::Api::History::V1::WorkflowTaskScheduledEventAttributes | ::Temporalio::Api::History::V1::WorkflowTaskScheduledEventAttributes::init_map)?, + "workflow_task_scheduled_event_attributes" => (::Temporalio::Api::History::V1::WorkflowTaskScheduledEventAttributes | ::Temporalio::Api::History::V1::WorkflowTaskScheduledEventAttributes::init_map)?, + workflow_task_started_event_attributes: (::Temporalio::Api::History::V1::WorkflowTaskStartedEventAttributes | ::Temporalio::Api::History::V1::WorkflowTaskStartedEventAttributes::init_map)?, + "workflow_task_started_event_attributes" => (::Temporalio::Api::History::V1::WorkflowTaskStartedEventAttributes | ::Temporalio::Api::History::V1::WorkflowTaskStartedEventAttributes::init_map)?, + workflow_task_completed_event_attributes: (::Temporalio::Api::History::V1::WorkflowTaskCompletedEventAttributes | ::Temporalio::Api::History::V1::WorkflowTaskCompletedEventAttributes::init_map)?, + "workflow_task_completed_event_attributes" => (::Temporalio::Api::History::V1::WorkflowTaskCompletedEventAttributes | ::Temporalio::Api::History::V1::WorkflowTaskCompletedEventAttributes::init_map)?, + workflow_task_timed_out_event_attributes: (::Temporalio::Api::History::V1::WorkflowTaskTimedOutEventAttributes | ::Temporalio::Api::History::V1::WorkflowTaskTimedOutEventAttributes::init_map)?, + "workflow_task_timed_out_event_attributes" => (::Temporalio::Api::History::V1::WorkflowTaskTimedOutEventAttributes | ::Temporalio::Api::History::V1::WorkflowTaskTimedOutEventAttributes::init_map)?, + workflow_task_failed_event_attributes: (::Temporalio::Api::History::V1::WorkflowTaskFailedEventAttributes | ::Temporalio::Api::History::V1::WorkflowTaskFailedEventAttributes::init_map)?, + "workflow_task_failed_event_attributes" => (::Temporalio::Api::History::V1::WorkflowTaskFailedEventAttributes | ::Temporalio::Api::History::V1::WorkflowTaskFailedEventAttributes::init_map)?, + activity_task_scheduled_event_attributes: (::Temporalio::Api::History::V1::ActivityTaskScheduledEventAttributes | ::Temporalio::Api::History::V1::ActivityTaskScheduledEventAttributes::init_map)?, + "activity_task_scheduled_event_attributes" => (::Temporalio::Api::History::V1::ActivityTaskScheduledEventAttributes | ::Temporalio::Api::History::V1::ActivityTaskScheduledEventAttributes::init_map)?, + activity_task_started_event_attributes: (::Temporalio::Api::History::V1::ActivityTaskStartedEventAttributes | ::Temporalio::Api::History::V1::ActivityTaskStartedEventAttributes::init_map)?, + "activity_task_started_event_attributes" => (::Temporalio::Api::History::V1::ActivityTaskStartedEventAttributes | ::Temporalio::Api::History::V1::ActivityTaskStartedEventAttributes::init_map)?, + activity_task_completed_event_attributes: (::Temporalio::Api::History::V1::ActivityTaskCompletedEventAttributes | ::Temporalio::Api::History::V1::ActivityTaskCompletedEventAttributes::init_map)?, + "activity_task_completed_event_attributes" => (::Temporalio::Api::History::V1::ActivityTaskCompletedEventAttributes | ::Temporalio::Api::History::V1::ActivityTaskCompletedEventAttributes::init_map)?, + activity_task_failed_event_attributes: (::Temporalio::Api::History::V1::ActivityTaskFailedEventAttributes | ::Temporalio::Api::History::V1::ActivityTaskFailedEventAttributes::init_map)?, + "activity_task_failed_event_attributes" => (::Temporalio::Api::History::V1::ActivityTaskFailedEventAttributes | ::Temporalio::Api::History::V1::ActivityTaskFailedEventAttributes::init_map)?, + activity_task_timed_out_event_attributes: (::Temporalio::Api::History::V1::ActivityTaskTimedOutEventAttributes | ::Temporalio::Api::History::V1::ActivityTaskTimedOutEventAttributes::init_map)?, + "activity_task_timed_out_event_attributes" => (::Temporalio::Api::History::V1::ActivityTaskTimedOutEventAttributes | ::Temporalio::Api::History::V1::ActivityTaskTimedOutEventAttributes::init_map)?, + timer_started_event_attributes: (::Temporalio::Api::History::V1::TimerStartedEventAttributes | ::Temporalio::Api::History::V1::TimerStartedEventAttributes::init_map)?, + "timer_started_event_attributes" => (::Temporalio::Api::History::V1::TimerStartedEventAttributes | ::Temporalio::Api::History::V1::TimerStartedEventAttributes::init_map)?, + timer_fired_event_attributes: (::Temporalio::Api::History::V1::TimerFiredEventAttributes | ::Temporalio::Api::History::V1::TimerFiredEventAttributes::init_map)?, + "timer_fired_event_attributes" => (::Temporalio::Api::History::V1::TimerFiredEventAttributes | ::Temporalio::Api::History::V1::TimerFiredEventAttributes::init_map)?, + activity_task_cancel_requested_event_attributes: (::Temporalio::Api::History::V1::ActivityTaskCancelRequestedEventAttributes | ::Temporalio::Api::History::V1::ActivityTaskCancelRequestedEventAttributes::init_map)?, + "activity_task_cancel_requested_event_attributes" => (::Temporalio::Api::History::V1::ActivityTaskCancelRequestedEventAttributes | ::Temporalio::Api::History::V1::ActivityTaskCancelRequestedEventAttributes::init_map)?, + activity_task_canceled_event_attributes: (::Temporalio::Api::History::V1::ActivityTaskCanceledEventAttributes | ::Temporalio::Api::History::V1::ActivityTaskCanceledEventAttributes::init_map)?, + "activity_task_canceled_event_attributes" => (::Temporalio::Api::History::V1::ActivityTaskCanceledEventAttributes | ::Temporalio::Api::History::V1::ActivityTaskCanceledEventAttributes::init_map)?, + timer_canceled_event_attributes: (::Temporalio::Api::History::V1::TimerCanceledEventAttributes | ::Temporalio::Api::History::V1::TimerCanceledEventAttributes::init_map)?, + "timer_canceled_event_attributes" => (::Temporalio::Api::History::V1::TimerCanceledEventAttributes | ::Temporalio::Api::History::V1::TimerCanceledEventAttributes::init_map)?, + marker_recorded_event_attributes: (::Temporalio::Api::History::V1::MarkerRecordedEventAttributes | ::Temporalio::Api::History::V1::MarkerRecordedEventAttributes::init_map)?, + "marker_recorded_event_attributes" => (::Temporalio::Api::History::V1::MarkerRecordedEventAttributes | ::Temporalio::Api::History::V1::MarkerRecordedEventAttributes::init_map)?, + workflow_execution_signaled_event_attributes: (::Temporalio::Api::History::V1::WorkflowExecutionSignaledEventAttributes | ::Temporalio::Api::History::V1::WorkflowExecutionSignaledEventAttributes::init_map)?, + "workflow_execution_signaled_event_attributes" => (::Temporalio::Api::History::V1::WorkflowExecutionSignaledEventAttributes | ::Temporalio::Api::History::V1::WorkflowExecutionSignaledEventAttributes::init_map)?, + workflow_execution_terminated_event_attributes: (::Temporalio::Api::History::V1::WorkflowExecutionTerminatedEventAttributes | ::Temporalio::Api::History::V1::WorkflowExecutionTerminatedEventAttributes::init_map)?, + "workflow_execution_terminated_event_attributes" => (::Temporalio::Api::History::V1::WorkflowExecutionTerminatedEventAttributes | ::Temporalio::Api::History::V1::WorkflowExecutionTerminatedEventAttributes::init_map)?, + workflow_execution_cancel_requested_event_attributes: (::Temporalio::Api::History::V1::WorkflowExecutionCancelRequestedEventAttributes | ::Temporalio::Api::History::V1::WorkflowExecutionCancelRequestedEventAttributes::init_map)?, + "workflow_execution_cancel_requested_event_attributes" => (::Temporalio::Api::History::V1::WorkflowExecutionCancelRequestedEventAttributes | ::Temporalio::Api::History::V1::WorkflowExecutionCancelRequestedEventAttributes::init_map)?, + workflow_execution_canceled_event_attributes: (::Temporalio::Api::History::V1::WorkflowExecutionCanceledEventAttributes | ::Temporalio::Api::History::V1::WorkflowExecutionCanceledEventAttributes::init_map)?, + "workflow_execution_canceled_event_attributes" => (::Temporalio::Api::History::V1::WorkflowExecutionCanceledEventAttributes | ::Temporalio::Api::History::V1::WorkflowExecutionCanceledEventAttributes::init_map)?, + request_cancel_external_workflow_execution_initiated_event_attributes: (::Temporalio::Api::History::V1::RequestCancelExternalWorkflowExecutionInitiatedEventAttributes | ::Temporalio::Api::History::V1::RequestCancelExternalWorkflowExecutionInitiatedEventAttributes::init_map)?, + "request_cancel_external_workflow_execution_initiated_event_attributes" => (::Temporalio::Api::History::V1::RequestCancelExternalWorkflowExecutionInitiatedEventAttributes | ::Temporalio::Api::History::V1::RequestCancelExternalWorkflowExecutionInitiatedEventAttributes::init_map)?, + request_cancel_external_workflow_execution_failed_event_attributes: (::Temporalio::Api::History::V1::RequestCancelExternalWorkflowExecutionFailedEventAttributes | ::Temporalio::Api::History::V1::RequestCancelExternalWorkflowExecutionFailedEventAttributes::init_map)?, + "request_cancel_external_workflow_execution_failed_event_attributes" => (::Temporalio::Api::History::V1::RequestCancelExternalWorkflowExecutionFailedEventAttributes | ::Temporalio::Api::History::V1::RequestCancelExternalWorkflowExecutionFailedEventAttributes::init_map)?, + external_workflow_execution_cancel_requested_event_attributes: (::Temporalio::Api::History::V1::ExternalWorkflowExecutionCancelRequestedEventAttributes | ::Temporalio::Api::History::V1::ExternalWorkflowExecutionCancelRequestedEventAttributes::init_map)?, + "external_workflow_execution_cancel_requested_event_attributes" => (::Temporalio::Api::History::V1::ExternalWorkflowExecutionCancelRequestedEventAttributes | ::Temporalio::Api::History::V1::ExternalWorkflowExecutionCancelRequestedEventAttributes::init_map)?, + workflow_execution_continued_as_new_event_attributes: (::Temporalio::Api::History::V1::WorkflowExecutionContinuedAsNewEventAttributes | ::Temporalio::Api::History::V1::WorkflowExecutionContinuedAsNewEventAttributes::init_map)?, + "workflow_execution_continued_as_new_event_attributes" => (::Temporalio::Api::History::V1::WorkflowExecutionContinuedAsNewEventAttributes | ::Temporalio::Api::History::V1::WorkflowExecutionContinuedAsNewEventAttributes::init_map)?, + start_child_workflow_execution_initiated_event_attributes: (::Temporalio::Api::History::V1::StartChildWorkflowExecutionInitiatedEventAttributes | ::Temporalio::Api::History::V1::StartChildWorkflowExecutionInitiatedEventAttributes::init_map)?, + "start_child_workflow_execution_initiated_event_attributes" => (::Temporalio::Api::History::V1::StartChildWorkflowExecutionInitiatedEventAttributes | ::Temporalio::Api::History::V1::StartChildWorkflowExecutionInitiatedEventAttributes::init_map)?, + start_child_workflow_execution_failed_event_attributes: (::Temporalio::Api::History::V1::StartChildWorkflowExecutionFailedEventAttributes | ::Temporalio::Api::History::V1::StartChildWorkflowExecutionFailedEventAttributes::init_map)?, + "start_child_workflow_execution_failed_event_attributes" => (::Temporalio::Api::History::V1::StartChildWorkflowExecutionFailedEventAttributes | ::Temporalio::Api::History::V1::StartChildWorkflowExecutionFailedEventAttributes::init_map)?, + child_workflow_execution_started_event_attributes: (::Temporalio::Api::History::V1::ChildWorkflowExecutionStartedEventAttributes | ::Temporalio::Api::History::V1::ChildWorkflowExecutionStartedEventAttributes::init_map)?, + "child_workflow_execution_started_event_attributes" => (::Temporalio::Api::History::V1::ChildWorkflowExecutionStartedEventAttributes | ::Temporalio::Api::History::V1::ChildWorkflowExecutionStartedEventAttributes::init_map)?, + child_workflow_execution_completed_event_attributes: (::Temporalio::Api::History::V1::ChildWorkflowExecutionCompletedEventAttributes | ::Temporalio::Api::History::V1::ChildWorkflowExecutionCompletedEventAttributes::init_map)?, + "child_workflow_execution_completed_event_attributes" => (::Temporalio::Api::History::V1::ChildWorkflowExecutionCompletedEventAttributes | ::Temporalio::Api::History::V1::ChildWorkflowExecutionCompletedEventAttributes::init_map)?, + child_workflow_execution_failed_event_attributes: (::Temporalio::Api::History::V1::ChildWorkflowExecutionFailedEventAttributes | ::Temporalio::Api::History::V1::ChildWorkflowExecutionFailedEventAttributes::init_map)?, + "child_workflow_execution_failed_event_attributes" => (::Temporalio::Api::History::V1::ChildWorkflowExecutionFailedEventAttributes | ::Temporalio::Api::History::V1::ChildWorkflowExecutionFailedEventAttributes::init_map)?, + child_workflow_execution_canceled_event_attributes: (::Temporalio::Api::History::V1::ChildWorkflowExecutionCanceledEventAttributes | ::Temporalio::Api::History::V1::ChildWorkflowExecutionCanceledEventAttributes::init_map)?, + "child_workflow_execution_canceled_event_attributes" => (::Temporalio::Api::History::V1::ChildWorkflowExecutionCanceledEventAttributes | ::Temporalio::Api::History::V1::ChildWorkflowExecutionCanceledEventAttributes::init_map)?, + child_workflow_execution_timed_out_event_attributes: (::Temporalio::Api::History::V1::ChildWorkflowExecutionTimedOutEventAttributes | ::Temporalio::Api::History::V1::ChildWorkflowExecutionTimedOutEventAttributes::init_map)?, + "child_workflow_execution_timed_out_event_attributes" => (::Temporalio::Api::History::V1::ChildWorkflowExecutionTimedOutEventAttributes | ::Temporalio::Api::History::V1::ChildWorkflowExecutionTimedOutEventAttributes::init_map)?, + child_workflow_execution_terminated_event_attributes: (::Temporalio::Api::History::V1::ChildWorkflowExecutionTerminatedEventAttributes | ::Temporalio::Api::History::V1::ChildWorkflowExecutionTerminatedEventAttributes::init_map)?, + "child_workflow_execution_terminated_event_attributes" => (::Temporalio::Api::History::V1::ChildWorkflowExecutionTerminatedEventAttributes | ::Temporalio::Api::History::V1::ChildWorkflowExecutionTerminatedEventAttributes::init_map)?, + signal_external_workflow_execution_initiated_event_attributes: (::Temporalio::Api::History::V1::SignalExternalWorkflowExecutionInitiatedEventAttributes | ::Temporalio::Api::History::V1::SignalExternalWorkflowExecutionInitiatedEventAttributes::init_map)?, + "signal_external_workflow_execution_initiated_event_attributes" => (::Temporalio::Api::History::V1::SignalExternalWorkflowExecutionInitiatedEventAttributes | ::Temporalio::Api::History::V1::SignalExternalWorkflowExecutionInitiatedEventAttributes::init_map)?, + signal_external_workflow_execution_failed_event_attributes: (::Temporalio::Api::History::V1::SignalExternalWorkflowExecutionFailedEventAttributes | ::Temporalio::Api::History::V1::SignalExternalWorkflowExecutionFailedEventAttributes::init_map)?, + "signal_external_workflow_execution_failed_event_attributes" => (::Temporalio::Api::History::V1::SignalExternalWorkflowExecutionFailedEventAttributes | ::Temporalio::Api::History::V1::SignalExternalWorkflowExecutionFailedEventAttributes::init_map)?, + external_workflow_execution_signaled_event_attributes: (::Temporalio::Api::History::V1::ExternalWorkflowExecutionSignaledEventAttributes | ::Temporalio::Api::History::V1::ExternalWorkflowExecutionSignaledEventAttributes::init_map)?, + "external_workflow_execution_signaled_event_attributes" => (::Temporalio::Api::History::V1::ExternalWorkflowExecutionSignaledEventAttributes | ::Temporalio::Api::History::V1::ExternalWorkflowExecutionSignaledEventAttributes::init_map)?, + upsert_workflow_search_attributes_event_attributes: (::Temporalio::Api::History::V1::UpsertWorkflowSearchAttributesEventAttributes | ::Temporalio::Api::History::V1::UpsertWorkflowSearchAttributesEventAttributes::init_map)?, + "upsert_workflow_search_attributes_event_attributes" => (::Temporalio::Api::History::V1::UpsertWorkflowSearchAttributesEventAttributes | ::Temporalio::Api::History::V1::UpsertWorkflowSearchAttributesEventAttributes::init_map)?, + workflow_execution_update_accepted_event_attributes: (::Temporalio::Api::History::V1::WorkflowExecutionUpdateAcceptedEventAttributes | ::Temporalio::Api::History::V1::WorkflowExecutionUpdateAcceptedEventAttributes::init_map)?, + "workflow_execution_update_accepted_event_attributes" => (::Temporalio::Api::History::V1::WorkflowExecutionUpdateAcceptedEventAttributes | ::Temporalio::Api::History::V1::WorkflowExecutionUpdateAcceptedEventAttributes::init_map)?, + workflow_execution_update_rejected_event_attributes: (::Temporalio::Api::History::V1::WorkflowExecutionUpdateRejectedEventAttributes | ::Temporalio::Api::History::V1::WorkflowExecutionUpdateRejectedEventAttributes::init_map)?, + "workflow_execution_update_rejected_event_attributes" => (::Temporalio::Api::History::V1::WorkflowExecutionUpdateRejectedEventAttributes | ::Temporalio::Api::History::V1::WorkflowExecutionUpdateRejectedEventAttributes::init_map)?, + workflow_execution_update_completed_event_attributes: (::Temporalio::Api::History::V1::WorkflowExecutionUpdateCompletedEventAttributes | ::Temporalio::Api::History::V1::WorkflowExecutionUpdateCompletedEventAttributes::init_map)?, + "workflow_execution_update_completed_event_attributes" => (::Temporalio::Api::History::V1::WorkflowExecutionUpdateCompletedEventAttributes | ::Temporalio::Api::History::V1::WorkflowExecutionUpdateCompletedEventAttributes::init_map)?, + workflow_properties_modified_externally_event_attributes: (::Temporalio::Api::History::V1::WorkflowPropertiesModifiedExternallyEventAttributes | ::Temporalio::Api::History::V1::WorkflowPropertiesModifiedExternallyEventAttributes::init_map)?, + "workflow_properties_modified_externally_event_attributes" => (::Temporalio::Api::History::V1::WorkflowPropertiesModifiedExternallyEventAttributes | ::Temporalio::Api::History::V1::WorkflowPropertiesModifiedExternallyEventAttributes::init_map)?, + activity_properties_modified_externally_event_attributes: (::Temporalio::Api::History::V1::ActivityPropertiesModifiedExternallyEventAttributes | ::Temporalio::Api::History::V1::ActivityPropertiesModifiedExternallyEventAttributes::init_map)?, + "activity_properties_modified_externally_event_attributes" => (::Temporalio::Api::History::V1::ActivityPropertiesModifiedExternallyEventAttributes | ::Temporalio::Api::History::V1::ActivityPropertiesModifiedExternallyEventAttributes::init_map)?, + workflow_properties_modified_event_attributes: (::Temporalio::Api::History::V1::WorkflowPropertiesModifiedEventAttributes | ::Temporalio::Api::History::V1::WorkflowPropertiesModifiedEventAttributes::init_map)?, + "workflow_properties_modified_event_attributes" => (::Temporalio::Api::History::V1::WorkflowPropertiesModifiedEventAttributes | ::Temporalio::Api::History::V1::WorkflowPropertiesModifiedEventAttributes::init_map)?, + workflow_execution_update_admitted_event_attributes: (::Temporalio::Api::History::V1::WorkflowExecutionUpdateAdmittedEventAttributes | ::Temporalio::Api::History::V1::WorkflowExecutionUpdateAdmittedEventAttributes::init_map)?, + "workflow_execution_update_admitted_event_attributes" => (::Temporalio::Api::History::V1::WorkflowExecutionUpdateAdmittedEventAttributes | ::Temporalio::Api::History::V1::WorkflowExecutionUpdateAdmittedEventAttributes::init_map)?, + nexus_operation_scheduled_event_attributes: (::Temporalio::Api::History::V1::NexusOperationScheduledEventAttributes | ::Temporalio::Api::History::V1::NexusOperationScheduledEventAttributes::init_map)?, + "nexus_operation_scheduled_event_attributes" => (::Temporalio::Api::History::V1::NexusOperationScheduledEventAttributes | ::Temporalio::Api::History::V1::NexusOperationScheduledEventAttributes::init_map)?, + nexus_operation_started_event_attributes: (::Temporalio::Api::History::V1::NexusOperationStartedEventAttributes | ::Temporalio::Api::History::V1::NexusOperationStartedEventAttributes::init_map)?, + "nexus_operation_started_event_attributes" => (::Temporalio::Api::History::V1::NexusOperationStartedEventAttributes | ::Temporalio::Api::History::V1::NexusOperationStartedEventAttributes::init_map)?, + nexus_operation_completed_event_attributes: (::Temporalio::Api::History::V1::NexusOperationCompletedEventAttributes | ::Temporalio::Api::History::V1::NexusOperationCompletedEventAttributes::init_map)?, + "nexus_operation_completed_event_attributes" => (::Temporalio::Api::History::V1::NexusOperationCompletedEventAttributes | ::Temporalio::Api::History::V1::NexusOperationCompletedEventAttributes::init_map)?, + nexus_operation_failed_event_attributes: (::Temporalio::Api::History::V1::NexusOperationFailedEventAttributes | ::Temporalio::Api::History::V1::NexusOperationFailedEventAttributes::init_map)?, + "nexus_operation_failed_event_attributes" => (::Temporalio::Api::History::V1::NexusOperationFailedEventAttributes | ::Temporalio::Api::History::V1::NexusOperationFailedEventAttributes::init_map)?, + nexus_operation_canceled_event_attributes: (::Temporalio::Api::History::V1::NexusOperationCanceledEventAttributes | ::Temporalio::Api::History::V1::NexusOperationCanceledEventAttributes::init_map)?, + "nexus_operation_canceled_event_attributes" => (::Temporalio::Api::History::V1::NexusOperationCanceledEventAttributes | ::Temporalio::Api::History::V1::NexusOperationCanceledEventAttributes::init_map)?, + nexus_operation_timed_out_event_attributes: (::Temporalio::Api::History::V1::NexusOperationTimedOutEventAttributes | ::Temporalio::Api::History::V1::NexusOperationTimedOutEventAttributes::init_map)?, + "nexus_operation_timed_out_event_attributes" => (::Temporalio::Api::History::V1::NexusOperationTimedOutEventAttributes | ::Temporalio::Api::History::V1::NexusOperationTimedOutEventAttributes::init_map)?, + nexus_operation_cancel_requested_event_attributes: (::Temporalio::Api::History::V1::NexusOperationCancelRequestedEventAttributes | ::Temporalio::Api::History::V1::NexusOperationCancelRequestedEventAttributes::init_map)?, + "nexus_operation_cancel_requested_event_attributes" => (::Temporalio::Api::History::V1::NexusOperationCancelRequestedEventAttributes | ::Temporalio::Api::History::V1::NexusOperationCancelRequestedEventAttributes::init_map)?, + workflow_execution_options_updated_event_attributes: (::Temporalio::Api::History::V1::WorkflowExecutionOptionsUpdatedEventAttributes | ::Temporalio::Api::History::V1::WorkflowExecutionOptionsUpdatedEventAttributes::init_map)?, + "workflow_execution_options_updated_event_attributes" => (::Temporalio::Api::History::V1::WorkflowExecutionOptionsUpdatedEventAttributes | ::Temporalio::Api::History::V1::WorkflowExecutionOptionsUpdatedEventAttributes::init_map)?, + nexus_operation_cancel_request_completed_event_attributes: (::Temporalio::Api::History::V1::NexusOperationCancelRequestCompletedEventAttributes | ::Temporalio::Api::History::V1::NexusOperationCancelRequestCompletedEventAttributes::init_map)?, + "nexus_operation_cancel_request_completed_event_attributes" => (::Temporalio::Api::History::V1::NexusOperationCancelRequestCompletedEventAttributes | ::Temporalio::Api::History::V1::NexusOperationCancelRequestCompletedEventAttributes::init_map)?, + nexus_operation_cancel_request_failed_event_attributes: (::Temporalio::Api::History::V1::NexusOperationCancelRequestFailedEventAttributes | ::Temporalio::Api::History::V1::NexusOperationCancelRequestFailedEventAttributes::init_map)?, + "nexus_operation_cancel_request_failed_event_attributes" => (::Temporalio::Api::History::V1::NexusOperationCancelRequestFailedEventAttributes | ::Temporalio::Api::History::V1::NexusOperationCancelRequestFailedEventAttributes::init_map)?, + workflow_execution_paused_event_attributes: (::Temporalio::Api::History::V1::WorkflowExecutionPausedEventAttributes | ::Temporalio::Api::History::V1::WorkflowExecutionPausedEventAttributes::init_map)?, + "workflow_execution_paused_event_attributes" => (::Temporalio::Api::History::V1::WorkflowExecutionPausedEventAttributes | ::Temporalio::Api::History::V1::WorkflowExecutionPausedEventAttributes::init_map)?, + workflow_execution_unpaused_event_attributes: (::Temporalio::Api::History::V1::WorkflowExecutionUnpausedEventAttributes | ::Temporalio::Api::History::V1::WorkflowExecutionUnpausedEventAttributes::init_map)?, + "workflow_execution_unpaused_event_attributes" => (::Temporalio::Api::History::V1::WorkflowExecutionUnpausedEventAttributes | ::Temporalio::Api::History::V1::WorkflowExecutionUnpausedEventAttributes::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("event_id" name) -> ::Integer + | ("event_time" name) -> ::Google::Protobuf::Timestamp? + | ("event_type" name) -> (::Temporalio::Api::Enums::V1::EventType::names | ::Integer) + | ("version" name) -> ::Integer + | ("task_id" name) -> ::Integer + | ("worker_may_ignore" name) -> bool + | ("user_metadata" name) -> ::Temporalio::Api::Sdk::V1::UserMetadata? + | ("links" name) -> ::Google::Protobuf::RepeatedField + | ("workflow_execution_started_event_attributes" name) -> ::Temporalio::Api::History::V1::WorkflowExecutionStartedEventAttributes? + | ("workflow_execution_completed_event_attributes" name) -> ::Temporalio::Api::History::V1::WorkflowExecutionCompletedEventAttributes? + | ("workflow_execution_failed_event_attributes" name) -> ::Temporalio::Api::History::V1::WorkflowExecutionFailedEventAttributes? + | ("workflow_execution_timed_out_event_attributes" name) -> ::Temporalio::Api::History::V1::WorkflowExecutionTimedOutEventAttributes? + | ("workflow_task_scheduled_event_attributes" name) -> ::Temporalio::Api::History::V1::WorkflowTaskScheduledEventAttributes? + | ("workflow_task_started_event_attributes" name) -> ::Temporalio::Api::History::V1::WorkflowTaskStartedEventAttributes? + | ("workflow_task_completed_event_attributes" name) -> ::Temporalio::Api::History::V1::WorkflowTaskCompletedEventAttributes? + | ("workflow_task_timed_out_event_attributes" name) -> ::Temporalio::Api::History::V1::WorkflowTaskTimedOutEventAttributes? + | ("workflow_task_failed_event_attributes" name) -> ::Temporalio::Api::History::V1::WorkflowTaskFailedEventAttributes? + | ("activity_task_scheduled_event_attributes" name) -> ::Temporalio::Api::History::V1::ActivityTaskScheduledEventAttributes? + | ("activity_task_started_event_attributes" name) -> ::Temporalio::Api::History::V1::ActivityTaskStartedEventAttributes? + | ("activity_task_completed_event_attributes" name) -> ::Temporalio::Api::History::V1::ActivityTaskCompletedEventAttributes? + | ("activity_task_failed_event_attributes" name) -> ::Temporalio::Api::History::V1::ActivityTaskFailedEventAttributes? + | ("activity_task_timed_out_event_attributes" name) -> ::Temporalio::Api::History::V1::ActivityTaskTimedOutEventAttributes? + | ("timer_started_event_attributes" name) -> ::Temporalio::Api::History::V1::TimerStartedEventAttributes? + | ("timer_fired_event_attributes" name) -> ::Temporalio::Api::History::V1::TimerFiredEventAttributes? + | ("activity_task_cancel_requested_event_attributes" name) -> ::Temporalio::Api::History::V1::ActivityTaskCancelRequestedEventAttributes? + | ("activity_task_canceled_event_attributes" name) -> ::Temporalio::Api::History::V1::ActivityTaskCanceledEventAttributes? + | ("timer_canceled_event_attributes" name) -> ::Temporalio::Api::History::V1::TimerCanceledEventAttributes? + | ("marker_recorded_event_attributes" name) -> ::Temporalio::Api::History::V1::MarkerRecordedEventAttributes? + | ("workflow_execution_signaled_event_attributes" name) -> ::Temporalio::Api::History::V1::WorkflowExecutionSignaledEventAttributes? + | ("workflow_execution_terminated_event_attributes" name) -> ::Temporalio::Api::History::V1::WorkflowExecutionTerminatedEventAttributes? + | ("workflow_execution_cancel_requested_event_attributes" name) -> ::Temporalio::Api::History::V1::WorkflowExecutionCancelRequestedEventAttributes? + | ("workflow_execution_canceled_event_attributes" name) -> ::Temporalio::Api::History::V1::WorkflowExecutionCanceledEventAttributes? + | ("request_cancel_external_workflow_execution_initiated_event_attributes" name) -> ::Temporalio::Api::History::V1::RequestCancelExternalWorkflowExecutionInitiatedEventAttributes? + | ("request_cancel_external_workflow_execution_failed_event_attributes" name) -> ::Temporalio::Api::History::V1::RequestCancelExternalWorkflowExecutionFailedEventAttributes? + | ("external_workflow_execution_cancel_requested_event_attributes" name) -> ::Temporalio::Api::History::V1::ExternalWorkflowExecutionCancelRequestedEventAttributes? + | ("workflow_execution_continued_as_new_event_attributes" name) -> ::Temporalio::Api::History::V1::WorkflowExecutionContinuedAsNewEventAttributes? + | ("start_child_workflow_execution_initiated_event_attributes" name) -> ::Temporalio::Api::History::V1::StartChildWorkflowExecutionInitiatedEventAttributes? + | ("start_child_workflow_execution_failed_event_attributes" name) -> ::Temporalio::Api::History::V1::StartChildWorkflowExecutionFailedEventAttributes? + | ("child_workflow_execution_started_event_attributes" name) -> ::Temporalio::Api::History::V1::ChildWorkflowExecutionStartedEventAttributes? + | ("child_workflow_execution_completed_event_attributes" name) -> ::Temporalio::Api::History::V1::ChildWorkflowExecutionCompletedEventAttributes? + | ("child_workflow_execution_failed_event_attributes" name) -> ::Temporalio::Api::History::V1::ChildWorkflowExecutionFailedEventAttributes? + | ("child_workflow_execution_canceled_event_attributes" name) -> ::Temporalio::Api::History::V1::ChildWorkflowExecutionCanceledEventAttributes? + | ("child_workflow_execution_timed_out_event_attributes" name) -> ::Temporalio::Api::History::V1::ChildWorkflowExecutionTimedOutEventAttributes? + | ("child_workflow_execution_terminated_event_attributes" name) -> ::Temporalio::Api::History::V1::ChildWorkflowExecutionTerminatedEventAttributes? + | ("signal_external_workflow_execution_initiated_event_attributes" name) -> ::Temporalio::Api::History::V1::SignalExternalWorkflowExecutionInitiatedEventAttributes? + | ("signal_external_workflow_execution_failed_event_attributes" name) -> ::Temporalio::Api::History::V1::SignalExternalWorkflowExecutionFailedEventAttributes? + | ("external_workflow_execution_signaled_event_attributes" name) -> ::Temporalio::Api::History::V1::ExternalWorkflowExecutionSignaledEventAttributes? + | ("upsert_workflow_search_attributes_event_attributes" name) -> ::Temporalio::Api::History::V1::UpsertWorkflowSearchAttributesEventAttributes? + | ("workflow_execution_update_accepted_event_attributes" name) -> ::Temporalio::Api::History::V1::WorkflowExecutionUpdateAcceptedEventAttributes? + | ("workflow_execution_update_rejected_event_attributes" name) -> ::Temporalio::Api::History::V1::WorkflowExecutionUpdateRejectedEventAttributes? + | ("workflow_execution_update_completed_event_attributes" name) -> ::Temporalio::Api::History::V1::WorkflowExecutionUpdateCompletedEventAttributes? + | ("workflow_properties_modified_externally_event_attributes" name) -> ::Temporalio::Api::History::V1::WorkflowPropertiesModifiedExternallyEventAttributes? + | ("activity_properties_modified_externally_event_attributes" name) -> ::Temporalio::Api::History::V1::ActivityPropertiesModifiedExternallyEventAttributes? + | ("workflow_properties_modified_event_attributes" name) -> ::Temporalio::Api::History::V1::WorkflowPropertiesModifiedEventAttributes? + | ("workflow_execution_update_admitted_event_attributes" name) -> ::Temporalio::Api::History::V1::WorkflowExecutionUpdateAdmittedEventAttributes? + | ("nexus_operation_scheduled_event_attributes" name) -> ::Temporalio::Api::History::V1::NexusOperationScheduledEventAttributes? + | ("nexus_operation_started_event_attributes" name) -> ::Temporalio::Api::History::V1::NexusOperationStartedEventAttributes? + | ("nexus_operation_completed_event_attributes" name) -> ::Temporalio::Api::History::V1::NexusOperationCompletedEventAttributes? + | ("nexus_operation_failed_event_attributes" name) -> ::Temporalio::Api::History::V1::NexusOperationFailedEventAttributes? + | ("nexus_operation_canceled_event_attributes" name) -> ::Temporalio::Api::History::V1::NexusOperationCanceledEventAttributes? + | ("nexus_operation_timed_out_event_attributes" name) -> ::Temporalio::Api::History::V1::NexusOperationTimedOutEventAttributes? + | ("nexus_operation_cancel_requested_event_attributes" name) -> ::Temporalio::Api::History::V1::NexusOperationCancelRequestedEventAttributes? + | ("workflow_execution_options_updated_event_attributes" name) -> ::Temporalio::Api::History::V1::WorkflowExecutionOptionsUpdatedEventAttributes? + | ("nexus_operation_cancel_request_completed_event_attributes" name) -> ::Temporalio::Api::History::V1::NexusOperationCancelRequestCompletedEventAttributes? + | ("nexus_operation_cancel_request_failed_event_attributes" name) -> ::Temporalio::Api::History::V1::NexusOperationCancelRequestFailedEventAttributes? + | ("workflow_execution_paused_event_attributes" name) -> ::Temporalio::Api::History::V1::WorkflowExecutionPausedEventAttributes? + | ("workflow_execution_unpaused_event_attributes" name) -> ::Temporalio::Api::History::V1::WorkflowExecutionUnpausedEventAttributes? + + def []=: + ("event_id" name, (::Integer | ::Float) value) -> void + | ("event_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("event_type" name, (::Temporalio::Api::Enums::V1::EventType::names | ::Temporalio::Api::Enums::V1::EventType::strings | ::Integer | ::Float) value) -> void + | ("version" name, (::Integer | ::Float) value) -> void + | ("task_id" name, (::Integer | ::Float) value) -> void + | ("worker_may_ignore" name, bool value) -> void + | ("user_metadata" name, ::Temporalio::Api::Sdk::V1::UserMetadata? value) -> void + | ("links" name, ::Google::Protobuf::RepeatedField value) -> void + | ("workflow_execution_started_event_attributes" name, ::Temporalio::Api::History::V1::WorkflowExecutionStartedEventAttributes? value) -> void + | ("workflow_execution_completed_event_attributes" name, ::Temporalio::Api::History::V1::WorkflowExecutionCompletedEventAttributes? value) -> void + | ("workflow_execution_failed_event_attributes" name, ::Temporalio::Api::History::V1::WorkflowExecutionFailedEventAttributes? value) -> void + | ("workflow_execution_timed_out_event_attributes" name, ::Temporalio::Api::History::V1::WorkflowExecutionTimedOutEventAttributes? value) -> void + | ("workflow_task_scheduled_event_attributes" name, ::Temporalio::Api::History::V1::WorkflowTaskScheduledEventAttributes? value) -> void + | ("workflow_task_started_event_attributes" name, ::Temporalio::Api::History::V1::WorkflowTaskStartedEventAttributes? value) -> void + | ("workflow_task_completed_event_attributes" name, ::Temporalio::Api::History::V1::WorkflowTaskCompletedEventAttributes? value) -> void + | ("workflow_task_timed_out_event_attributes" name, ::Temporalio::Api::History::V1::WorkflowTaskTimedOutEventAttributes? value) -> void + | ("workflow_task_failed_event_attributes" name, ::Temporalio::Api::History::V1::WorkflowTaskFailedEventAttributes? value) -> void + | ("activity_task_scheduled_event_attributes" name, ::Temporalio::Api::History::V1::ActivityTaskScheduledEventAttributes? value) -> void + | ("activity_task_started_event_attributes" name, ::Temporalio::Api::History::V1::ActivityTaskStartedEventAttributes? value) -> void + | ("activity_task_completed_event_attributes" name, ::Temporalio::Api::History::V1::ActivityTaskCompletedEventAttributes? value) -> void + | ("activity_task_failed_event_attributes" name, ::Temporalio::Api::History::V1::ActivityTaskFailedEventAttributes? value) -> void + | ("activity_task_timed_out_event_attributes" name, ::Temporalio::Api::History::V1::ActivityTaskTimedOutEventAttributes? value) -> void + | ("timer_started_event_attributes" name, ::Temporalio::Api::History::V1::TimerStartedEventAttributes? value) -> void + | ("timer_fired_event_attributes" name, ::Temporalio::Api::History::V1::TimerFiredEventAttributes? value) -> void + | ("activity_task_cancel_requested_event_attributes" name, ::Temporalio::Api::History::V1::ActivityTaskCancelRequestedEventAttributes? value) -> void + | ("activity_task_canceled_event_attributes" name, ::Temporalio::Api::History::V1::ActivityTaskCanceledEventAttributes? value) -> void + | ("timer_canceled_event_attributes" name, ::Temporalio::Api::History::V1::TimerCanceledEventAttributes? value) -> void + | ("marker_recorded_event_attributes" name, ::Temporalio::Api::History::V1::MarkerRecordedEventAttributes? value) -> void + | ("workflow_execution_signaled_event_attributes" name, ::Temporalio::Api::History::V1::WorkflowExecutionSignaledEventAttributes? value) -> void + | ("workflow_execution_terminated_event_attributes" name, ::Temporalio::Api::History::V1::WorkflowExecutionTerminatedEventAttributes? value) -> void + | ("workflow_execution_cancel_requested_event_attributes" name, ::Temporalio::Api::History::V1::WorkflowExecutionCancelRequestedEventAttributes? value) -> void + | ("workflow_execution_canceled_event_attributes" name, ::Temporalio::Api::History::V1::WorkflowExecutionCanceledEventAttributes? value) -> void + | ("request_cancel_external_workflow_execution_initiated_event_attributes" name, ::Temporalio::Api::History::V1::RequestCancelExternalWorkflowExecutionInitiatedEventAttributes? value) -> void + | ("request_cancel_external_workflow_execution_failed_event_attributes" name, ::Temporalio::Api::History::V1::RequestCancelExternalWorkflowExecutionFailedEventAttributes? value) -> void + | ("external_workflow_execution_cancel_requested_event_attributes" name, ::Temporalio::Api::History::V1::ExternalWorkflowExecutionCancelRequestedEventAttributes? value) -> void + | ("workflow_execution_continued_as_new_event_attributes" name, ::Temporalio::Api::History::V1::WorkflowExecutionContinuedAsNewEventAttributes? value) -> void + | ("start_child_workflow_execution_initiated_event_attributes" name, ::Temporalio::Api::History::V1::StartChildWorkflowExecutionInitiatedEventAttributes? value) -> void + | ("start_child_workflow_execution_failed_event_attributes" name, ::Temporalio::Api::History::V1::StartChildWorkflowExecutionFailedEventAttributes? value) -> void + | ("child_workflow_execution_started_event_attributes" name, ::Temporalio::Api::History::V1::ChildWorkflowExecutionStartedEventAttributes? value) -> void + | ("child_workflow_execution_completed_event_attributes" name, ::Temporalio::Api::History::V1::ChildWorkflowExecutionCompletedEventAttributes? value) -> void + | ("child_workflow_execution_failed_event_attributes" name, ::Temporalio::Api::History::V1::ChildWorkflowExecutionFailedEventAttributes? value) -> void + | ("child_workflow_execution_canceled_event_attributes" name, ::Temporalio::Api::History::V1::ChildWorkflowExecutionCanceledEventAttributes? value) -> void + | ("child_workflow_execution_timed_out_event_attributes" name, ::Temporalio::Api::History::V1::ChildWorkflowExecutionTimedOutEventAttributes? value) -> void + | ("child_workflow_execution_terminated_event_attributes" name, ::Temporalio::Api::History::V1::ChildWorkflowExecutionTerminatedEventAttributes? value) -> void + | ("signal_external_workflow_execution_initiated_event_attributes" name, ::Temporalio::Api::History::V1::SignalExternalWorkflowExecutionInitiatedEventAttributes? value) -> void + | ("signal_external_workflow_execution_failed_event_attributes" name, ::Temporalio::Api::History::V1::SignalExternalWorkflowExecutionFailedEventAttributes? value) -> void + | ("external_workflow_execution_signaled_event_attributes" name, ::Temporalio::Api::History::V1::ExternalWorkflowExecutionSignaledEventAttributes? value) -> void + | ("upsert_workflow_search_attributes_event_attributes" name, ::Temporalio::Api::History::V1::UpsertWorkflowSearchAttributesEventAttributes? value) -> void + | ("workflow_execution_update_accepted_event_attributes" name, ::Temporalio::Api::History::V1::WorkflowExecutionUpdateAcceptedEventAttributes? value) -> void + | ("workflow_execution_update_rejected_event_attributes" name, ::Temporalio::Api::History::V1::WorkflowExecutionUpdateRejectedEventAttributes? value) -> void + | ("workflow_execution_update_completed_event_attributes" name, ::Temporalio::Api::History::V1::WorkflowExecutionUpdateCompletedEventAttributes? value) -> void + | ("workflow_properties_modified_externally_event_attributes" name, ::Temporalio::Api::History::V1::WorkflowPropertiesModifiedExternallyEventAttributes? value) -> void + | ("activity_properties_modified_externally_event_attributes" name, ::Temporalio::Api::History::V1::ActivityPropertiesModifiedExternallyEventAttributes? value) -> void + | ("workflow_properties_modified_event_attributes" name, ::Temporalio::Api::History::V1::WorkflowPropertiesModifiedEventAttributes? value) -> void + | ("workflow_execution_update_admitted_event_attributes" name, ::Temporalio::Api::History::V1::WorkflowExecutionUpdateAdmittedEventAttributes? value) -> void + | ("nexus_operation_scheduled_event_attributes" name, ::Temporalio::Api::History::V1::NexusOperationScheduledEventAttributes? value) -> void + | ("nexus_operation_started_event_attributes" name, ::Temporalio::Api::History::V1::NexusOperationStartedEventAttributes? value) -> void + | ("nexus_operation_completed_event_attributes" name, ::Temporalio::Api::History::V1::NexusOperationCompletedEventAttributes? value) -> void + | ("nexus_operation_failed_event_attributes" name, ::Temporalio::Api::History::V1::NexusOperationFailedEventAttributes? value) -> void + | ("nexus_operation_canceled_event_attributes" name, ::Temporalio::Api::History::V1::NexusOperationCanceledEventAttributes? value) -> void + | ("nexus_operation_timed_out_event_attributes" name, ::Temporalio::Api::History::V1::NexusOperationTimedOutEventAttributes? value) -> void + | ("nexus_operation_cancel_requested_event_attributes" name, ::Temporalio::Api::History::V1::NexusOperationCancelRequestedEventAttributes? value) -> void + | ("workflow_execution_options_updated_event_attributes" name, ::Temporalio::Api::History::V1::WorkflowExecutionOptionsUpdatedEventAttributes? value) -> void + | ("nexus_operation_cancel_request_completed_event_attributes" name, ::Temporalio::Api::History::V1::NexusOperationCancelRequestCompletedEventAttributes? value) -> void + | ("nexus_operation_cancel_request_failed_event_attributes" name, ::Temporalio::Api::History::V1::NexusOperationCancelRequestFailedEventAttributes? value) -> void + | ("workflow_execution_paused_event_attributes" name, ::Temporalio::Api::History::V1::WorkflowExecutionPausedEventAttributes? value) -> void + | ("workflow_execution_unpaused_event_attributes" name, ::Temporalio::Api::History::V1::WorkflowExecutionUnpausedEventAttributes? value) -> void + end + + class History < ::Google::Protobuf::AbstractMessage + + attr_accessor events(): ::Google::Protobuf::RepeatedField + def clear_events: () -> void + + type init_map = { + events: ::Array[::Temporalio::Api::History::V1::HistoryEvent]?, + "events" => ::Array[::Temporalio::Api::History::V1::HistoryEvent]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("events" name) -> ::Google::Protobuf::RepeatedField + + def []=: + ("events" name, ::Google::Protobuf::RepeatedField value) -> void + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/api/namespace/v1/message.rbs b/temporalio/sig/temporalio/api/namespace/v1/message.rbs new file mode 100644 index 00000000..e103861f --- /dev/null +++ b/temporalio/sig/temporalio/api/namespace/v1/message.rbs @@ -0,0 +1,433 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/api/namespace/v1/message.proto + +module Temporalio + module Api + module Namespace + module V1 + class NamespaceInfo < ::Google::Protobuf::AbstractMessage + # Namespace capability details. Should contain what features are enabled in a namespace. + class Capabilities < ::Google::Protobuf::AbstractMessage + + # True if the namespace supports eager workflow start. + attr_accessor eager_workflow_start(): bool + def clear_eager_workflow_start: () -> void + + # True if the namespace supports sync update + attr_accessor sync_update(): bool + def clear_sync_update: () -> void + + # True if the namespace supports async update + attr_accessor async_update(): bool + def clear_async_update: () -> void + + # True if the namespace supports worker heartbeats + attr_accessor worker_heartbeats(): bool + def clear_worker_heartbeats: () -> void + + # True if the namespace supports reported problems search attribute + attr_accessor reported_problems_search_attribute(): bool + def clear_reported_problems_search_attribute: () -> void + + # True if the namespace supports pausing workflows + attr_accessor workflow_pause(): bool + def clear_workflow_pause: () -> void + + # True if the namespace supports standalone activities + attr_accessor standalone_activities(): bool + def clear_standalone_activities: () -> void + + # True if the namespace supports server-side completion of outstanding worker polls on shutdown. + # When enabled, the server will complete polls for workers that send WorkerInstanceKey in their + # poll requests and call ShutdownWorker with the same WorkerInstanceKey. The poll will return + # an empty response. When this flag is true, workers should allow polls to return gracefully + # rather than terminating any open polls on shutdown. + attr_accessor worker_poll_complete_on_shutdown(): bool + def clear_worker_poll_complete_on_shutdown: () -> void + + # True if the namespace supports poller autoscaling + attr_accessor poller_autoscaling(): bool + def clear_poller_autoscaling: () -> void + + type init_map = { + eager_workflow_start: bool?, + "eager_workflow_start" => bool?, + sync_update: bool?, + "sync_update" => bool?, + async_update: bool?, + "async_update" => bool?, + worker_heartbeats: bool?, + "worker_heartbeats" => bool?, + reported_problems_search_attribute: bool?, + "reported_problems_search_attribute" => bool?, + workflow_pause: bool?, + "workflow_pause" => bool?, + standalone_activities: bool?, + "standalone_activities" => bool?, + worker_poll_complete_on_shutdown: bool?, + "worker_poll_complete_on_shutdown" => bool?, + poller_autoscaling: bool?, + "poller_autoscaling" => bool?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("eager_workflow_start" name) -> bool + | ("sync_update" name) -> bool + | ("async_update" name) -> bool + | ("worker_heartbeats" name) -> bool + | ("reported_problems_search_attribute" name) -> bool + | ("workflow_pause" name) -> bool + | ("standalone_activities" name) -> bool + | ("worker_poll_complete_on_shutdown" name) -> bool + | ("poller_autoscaling" name) -> bool + + def []=: + ("eager_workflow_start" name, bool value) -> void + | ("sync_update" name, bool value) -> void + | ("async_update" name, bool value) -> void + | ("worker_heartbeats" name, bool value) -> void + | ("reported_problems_search_attribute" name, bool value) -> void + | ("workflow_pause" name, bool value) -> void + | ("standalone_activities" name, bool value) -> void + | ("worker_poll_complete_on_shutdown" name, bool value) -> void + | ("poller_autoscaling" name, bool value) -> void + end + + class Limits < ::Google::Protobuf::AbstractMessage + + # 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. + attr_reader blob_size_limit_error(): ::Integer + attr_writer blob_size_limit_error(): ::Integer | ::Float + def clear_blob_size_limit_error: () -> void + + # Maximum total memo size in bytes per workflow execution. + attr_reader memo_size_limit_error(): ::Integer + attr_writer memo_size_limit_error(): ::Integer | ::Float + def clear_memo_size_limit_error: () -> void + + type init_map = { + blob_size_limit_error: (::Integer | ::Float)?, + "blob_size_limit_error" => (::Integer | ::Float)?, + memo_size_limit_error: (::Integer | ::Float)?, + "memo_size_limit_error" => (::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("blob_size_limit_error" name) -> ::Integer + | ("memo_size_limit_error" name) -> ::Integer + + def []=: + ("blob_size_limit_error" name, (::Integer | ::Float) value) -> void + | ("memo_size_limit_error" name, (::Integer | ::Float) value) -> void + end + + attr_reader name(): ::String + attr_writer name(): ::String | ::Symbol + def clear_name: () -> void + + attr_reader state(): ::Temporalio::Api::Enums::V1::NamespaceState::names | ::Integer + attr_writer state(): ::Temporalio::Api::Enums::V1::NamespaceState::names | ::Temporalio::Api::Enums::V1::NamespaceState::strings | ::Integer | ::Float + attr_reader state_const(): ::Integer + def clear_state: () -> void + + attr_reader description(): ::String + attr_writer description(): ::String | ::Symbol + def clear_description: () -> void + + attr_reader owner_email(): ::String + attr_writer owner_email(): ::String | ::Symbol + def clear_owner_email: () -> void + + # A key-value map for any customized purpose. + attr_accessor data(): ::Google::Protobuf::Map[::String, ::String] + def clear_data: () -> void + + attr_reader id(): ::String + attr_writer id(): ::String | ::Symbol + def clear_id: () -> void + + # All capabilities the namespace supports. + attr_accessor capabilities(): ::Temporalio::Api::Namespace::V1::NamespaceInfo::Capabilities? + def has_capabilities?: () -> bool + def clear_capabilities: () -> void + + # Namespace configured limits + attr_accessor limits(): ::Temporalio::Api::Namespace::V1::NamespaceInfo::Limits? + def has_limits?: () -> bool + def clear_limits: () -> void + + # 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. + attr_accessor supports_schedules(): bool + def clear_supports_schedules: () -> void + + type init_map = { + name: (::String | ::Symbol)?, + "name" => (::String | ::Symbol)?, + state: (::Temporalio::Api::Enums::V1::NamespaceState::names | ::Temporalio::Api::Enums::V1::NamespaceState::strings | ::Integer | ::Float)?, + "state" => (::Temporalio::Api::Enums::V1::NamespaceState::names | ::Temporalio::Api::Enums::V1::NamespaceState::strings | ::Integer | ::Float)?, + description: (::String | ::Symbol)?, + "description" => (::String | ::Symbol)?, + owner_email: (::String | ::Symbol)?, + "owner_email" => (::String | ::Symbol)?, + data: ::Hash[::String | ::Symbol, ::String | ::Symbol]?, + "data" => ::Hash[::String | ::Symbol, ::String | ::Symbol]?, + id: (::String | ::Symbol)?, + "id" => (::String | ::Symbol)?, + capabilities: (::Temporalio::Api::Namespace::V1::NamespaceInfo::Capabilities | ::Temporalio::Api::Namespace::V1::NamespaceInfo::Capabilities::init_map)?, + "capabilities" => (::Temporalio::Api::Namespace::V1::NamespaceInfo::Capabilities | ::Temporalio::Api::Namespace::V1::NamespaceInfo::Capabilities::init_map)?, + limits: (::Temporalio::Api::Namespace::V1::NamespaceInfo::Limits | ::Temporalio::Api::Namespace::V1::NamespaceInfo::Limits::init_map)?, + "limits" => (::Temporalio::Api::Namespace::V1::NamespaceInfo::Limits | ::Temporalio::Api::Namespace::V1::NamespaceInfo::Limits::init_map)?, + supports_schedules: bool?, + "supports_schedules" => bool?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("name" name) -> ::String + | ("state" name) -> (::Temporalio::Api::Enums::V1::NamespaceState::names | ::Integer) + | ("description" name) -> ::String + | ("owner_email" name) -> ::String + | ("data" name) -> (::Google::Protobuf::Map[::String, ::String]) + | ("id" name) -> ::String + | ("capabilities" name) -> ::Temporalio::Api::Namespace::V1::NamespaceInfo::Capabilities? + | ("limits" name) -> ::Temporalio::Api::Namespace::V1::NamespaceInfo::Limits? + | ("supports_schedules" name) -> bool + + def []=: + ("name" name, (::String | ::Symbol) value) -> void + | ("state" name, (::Temporalio::Api::Enums::V1::NamespaceState::names | ::Temporalio::Api::Enums::V1::NamespaceState::strings | ::Integer | ::Float) value) -> void + | ("description" name, (::String | ::Symbol) value) -> void + | ("owner_email" name, (::String | ::Symbol) value) -> void + | ("data" name, (::Google::Protobuf::Map[::String, ::String]) value) -> void + | ("id" name, (::String | ::Symbol) value) -> void + | ("capabilities" name, ::Temporalio::Api::Namespace::V1::NamespaceInfo::Capabilities? value) -> void + | ("limits" name, ::Temporalio::Api::Namespace::V1::NamespaceInfo::Limits? value) -> void + | ("supports_schedules" name, bool value) -> void + end + + class NamespaceConfig < ::Google::Protobuf::AbstractMessage + + attr_reader workflow_execution_retention_ttl(): ::Google::Protobuf::Duration? + attr_writer workflow_execution_retention_ttl(): (::Google::Protobuf::Duration | ::int)? + def has_workflow_execution_retention_ttl?: () -> bool + def clear_workflow_execution_retention_ttl: () -> void + + attr_accessor bad_binaries(): ::Temporalio::Api::Namespace::V1::BadBinaries? + def has_bad_binaries?: () -> bool + def clear_bad_binaries: () -> void + + # If unspecified (ARCHIVAL_STATE_UNSPECIFIED) then default server configuration is used. + attr_reader history_archival_state(): ::Temporalio::Api::Enums::V1::ArchivalState::names | ::Integer + attr_writer history_archival_state(): ::Temporalio::Api::Enums::V1::ArchivalState::names | ::Temporalio::Api::Enums::V1::ArchivalState::strings | ::Integer | ::Float + attr_reader history_archival_state_const(): ::Integer + def clear_history_archival_state: () -> void + + attr_reader history_archival_uri(): ::String + attr_writer history_archival_uri(): ::String | ::Symbol + def clear_history_archival_uri: () -> void + + # If unspecified (ARCHIVAL_STATE_UNSPECIFIED) then default server configuration is used. + attr_reader visibility_archival_state(): ::Temporalio::Api::Enums::V1::ArchivalState::names | ::Integer + attr_writer visibility_archival_state(): ::Temporalio::Api::Enums::V1::ArchivalState::names | ::Temporalio::Api::Enums::V1::ArchivalState::strings | ::Integer | ::Float + attr_reader visibility_archival_state_const(): ::Integer + def clear_visibility_archival_state: () -> void + + attr_reader visibility_archival_uri(): ::String + attr_writer visibility_archival_uri(): ::String | ::Symbol + def clear_visibility_archival_uri: () -> void + + # Map from field name to alias. + attr_accessor custom_search_attribute_aliases(): ::Google::Protobuf::Map[::String, ::String] + def clear_custom_search_attribute_aliases: () -> void + + type init_map = { + workflow_execution_retention_ttl: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "workflow_execution_retention_ttl" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + bad_binaries: (::Temporalio::Api::Namespace::V1::BadBinaries | ::Temporalio::Api::Namespace::V1::BadBinaries::init_map)?, + "bad_binaries" => (::Temporalio::Api::Namespace::V1::BadBinaries | ::Temporalio::Api::Namespace::V1::BadBinaries::init_map)?, + history_archival_state: (::Temporalio::Api::Enums::V1::ArchivalState::names | ::Temporalio::Api::Enums::V1::ArchivalState::strings | ::Integer | ::Float)?, + "history_archival_state" => (::Temporalio::Api::Enums::V1::ArchivalState::names | ::Temporalio::Api::Enums::V1::ArchivalState::strings | ::Integer | ::Float)?, + history_archival_uri: (::String | ::Symbol)?, + "history_archival_uri" => (::String | ::Symbol)?, + visibility_archival_state: (::Temporalio::Api::Enums::V1::ArchivalState::names | ::Temporalio::Api::Enums::V1::ArchivalState::strings | ::Integer | ::Float)?, + "visibility_archival_state" => (::Temporalio::Api::Enums::V1::ArchivalState::names | ::Temporalio::Api::Enums::V1::ArchivalState::strings | ::Integer | ::Float)?, + visibility_archival_uri: (::String | ::Symbol)?, + "visibility_archival_uri" => (::String | ::Symbol)?, + custom_search_attribute_aliases: ::Hash[::String | ::Symbol, ::String | ::Symbol]?, + "custom_search_attribute_aliases" => ::Hash[::String | ::Symbol, ::String | ::Symbol]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("workflow_execution_retention_ttl" name) -> ::Google::Protobuf::Duration? + | ("bad_binaries" name) -> ::Temporalio::Api::Namespace::V1::BadBinaries? + | ("history_archival_state" name) -> (::Temporalio::Api::Enums::V1::ArchivalState::names | ::Integer) + | ("history_archival_uri" name) -> ::String + | ("visibility_archival_state" name) -> (::Temporalio::Api::Enums::V1::ArchivalState::names | ::Integer) + | ("visibility_archival_uri" name) -> ::String + | ("custom_search_attribute_aliases" name) -> (::Google::Protobuf::Map[::String, ::String]) + + def []=: + ("workflow_execution_retention_ttl" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("bad_binaries" name, ::Temporalio::Api::Namespace::V1::BadBinaries? value) -> void + | ("history_archival_state" name, (::Temporalio::Api::Enums::V1::ArchivalState::names | ::Temporalio::Api::Enums::V1::ArchivalState::strings | ::Integer | ::Float) value) -> void + | ("history_archival_uri" name, (::String | ::Symbol) value) -> void + | ("visibility_archival_state" name, (::Temporalio::Api::Enums::V1::ArchivalState::names | ::Temporalio::Api::Enums::V1::ArchivalState::strings | ::Integer | ::Float) value) -> void + | ("visibility_archival_uri" name, (::String | ::Symbol) value) -> void + | ("custom_search_attribute_aliases" name, (::Google::Protobuf::Map[::String, ::String]) value) -> void + end + + class BadBinaries < ::Google::Protobuf::AbstractMessage + + attr_accessor binaries(): ::Google::Protobuf::Map[::String, ::Temporalio::Api::Namespace::V1::BadBinaryInfo] + def clear_binaries: () -> void + + type init_map = { + binaries: ::Hash[::String | ::Symbol, ::Temporalio::Api::Namespace::V1::BadBinaryInfo]?, + "binaries" => ::Hash[::String | ::Symbol, ::Temporalio::Api::Namespace::V1::BadBinaryInfo]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("binaries" name) -> (::Google::Protobuf::Map[::String, ::Temporalio::Api::Namespace::V1::BadBinaryInfo]) + + def []=: + ("binaries" name, (::Google::Protobuf::Map[::String, ::Temporalio::Api::Namespace::V1::BadBinaryInfo]) value) -> void + end + + class BadBinaryInfo < ::Google::Protobuf::AbstractMessage + + attr_reader reason(): ::String + attr_writer reason(): ::String | ::Symbol + def clear_reason: () -> void + + attr_reader operator(): ::String + attr_writer operator(): ::String | ::Symbol + def clear_operator: () -> void + + attr_reader create_time(): ::Google::Protobuf::Timestamp? + attr_writer create_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_create_time?: () -> bool + def clear_create_time: () -> void + + type init_map = { + reason: (::String | ::Symbol)?, + "reason" => (::String | ::Symbol)?, + operator: (::String | ::Symbol)?, + "operator" => (::String | ::Symbol)?, + create_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "create_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("reason" name) -> ::String + | ("operator" name) -> ::String + | ("create_time" name) -> ::Google::Protobuf::Timestamp? + + def []=: + ("reason" name, (::String | ::Symbol) value) -> void + | ("operator" name, (::String | ::Symbol) value) -> void + | ("create_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + end + + class UpdateNamespaceInfo < ::Google::Protobuf::AbstractMessage + + attr_reader description(): ::String + attr_writer description(): ::String | ::Symbol + def clear_description: () -> void + + attr_reader owner_email(): ::String + attr_writer owner_email(): ::String | ::Symbol + def clear_owner_email: () -> void + + # A key-value map for any customized purpose. + # If data already exists on the namespace, + # this will merge with the existing key values. + attr_accessor data(): ::Google::Protobuf::Map[::String, ::String] + def clear_data: () -> void + + # 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. + attr_reader state(): ::Temporalio::Api::Enums::V1::NamespaceState::names | ::Integer + attr_writer state(): ::Temporalio::Api::Enums::V1::NamespaceState::names | ::Temporalio::Api::Enums::V1::NamespaceState::strings | ::Integer | ::Float + attr_reader state_const(): ::Integer + def clear_state: () -> void + + type init_map = { + description: (::String | ::Symbol)?, + "description" => (::String | ::Symbol)?, + owner_email: (::String | ::Symbol)?, + "owner_email" => (::String | ::Symbol)?, + data: ::Hash[::String | ::Symbol, ::String | ::Symbol]?, + "data" => ::Hash[::String | ::Symbol, ::String | ::Symbol]?, + state: (::Temporalio::Api::Enums::V1::NamespaceState::names | ::Temporalio::Api::Enums::V1::NamespaceState::strings | ::Integer | ::Float)?, + "state" => (::Temporalio::Api::Enums::V1::NamespaceState::names | ::Temporalio::Api::Enums::V1::NamespaceState::strings | ::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("description" name) -> ::String + | ("owner_email" name) -> ::String + | ("data" name) -> (::Google::Protobuf::Map[::String, ::String]) + | ("state" name) -> (::Temporalio::Api::Enums::V1::NamespaceState::names | ::Integer) + + def []=: + ("description" name, (::String | ::Symbol) value) -> void + | ("owner_email" name, (::String | ::Symbol) value) -> void + | ("data" name, (::Google::Protobuf::Map[::String, ::String]) value) -> void + | ("state" name, (::Temporalio::Api::Enums::V1::NamespaceState::names | ::Temporalio::Api::Enums::V1::NamespaceState::strings | ::Integer | ::Float) value) -> void + end + + class NamespaceFilter < ::Google::Protobuf::AbstractMessage + + # 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. + attr_accessor include_deleted(): bool + def clear_include_deleted: () -> void + + type init_map = { + include_deleted: bool?, + "include_deleted" => bool?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("include_deleted" name) -> bool + + def []=: + ("include_deleted" name, bool value) -> void + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/api/nexus/v1/message.rbs b/temporalio/sig/temporalio/api/nexus/v1/message.rbs new file mode 100644 index 00000000..698c745e --- /dev/null +++ b/temporalio/sig/temporalio/api/nexus/v1/message.rbs @@ -0,0 +1,758 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/api/nexus/v1/message.proto + +module Temporalio + module Api + module Nexus + module V1 + # A general purpose failure message. + # See: https://github.com/nexus-rpc/api/blob/main/SPEC.md#failure + class Failure < ::Google::Protobuf::AbstractMessage + + attr_reader message(): ::String + attr_writer message(): ::String | ::Symbol + def clear_message: () -> void + + attr_reader stack_trace(): ::String + attr_writer stack_trace(): ::String | ::Symbol + def clear_stack_trace: () -> void + + attr_accessor metadata(): ::Google::Protobuf::Map[::String, ::String] + def clear_metadata: () -> void + + # UTF-8 encoded JSON serializable details. + attr_accessor details(): ::String + def clear_details: () -> void + + attr_accessor cause(): ::Temporalio::Api::Nexus::V1::Failure? + def has_cause?: () -> bool + def clear_cause: () -> void + + type init_map = { + message: (::String | ::Symbol)?, + "message" => (::String | ::Symbol)?, + stack_trace: (::String | ::Symbol)?, + "stack_trace" => (::String | ::Symbol)?, + metadata: ::Hash[::String | ::Symbol, ::String | ::Symbol]?, + "metadata" => ::Hash[::String | ::Symbol, ::String | ::Symbol]?, + details: ::String?, + "details" => ::String?, + cause: (::Temporalio::Api::Nexus::V1::Failure | ::Temporalio::Api::Nexus::V1::Failure::init_map)?, + "cause" => (::Temporalio::Api::Nexus::V1::Failure | ::Temporalio::Api::Nexus::V1::Failure::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("message" name) -> ::String + | ("stack_trace" name) -> ::String + | ("metadata" name) -> (::Google::Protobuf::Map[::String, ::String]) + | ("details" name) -> ::String + | ("cause" name) -> ::Temporalio::Api::Nexus::V1::Failure? + + def []=: + ("message" name, (::String | ::Symbol) value) -> void + | ("stack_trace" name, (::String | ::Symbol) value) -> void + | ("metadata" name, (::Google::Protobuf::Map[::String, ::String]) value) -> void + | ("details" name, ::String value) -> void + | ("cause" name, ::Temporalio::Api::Nexus::V1::Failure? value) -> void + end + + class HandlerError < ::Google::Protobuf::AbstractMessage + + # See https://github.com/nexus-rpc/api/blob/main/SPEC.md#predefined-handler-errors. + attr_reader error_type(): ::String + attr_writer error_type(): ::String | ::Symbol + def clear_error_type: () -> void + + attr_accessor failure(): ::Temporalio::Api::Nexus::V1::Failure? + def has_failure?: () -> bool + def clear_failure: () -> void + + # Retry behavior, defaults to the retry behavior of the error type as defined in the spec. + attr_reader retry_behavior(): ::Temporalio::Api::Enums::V1::NexusHandlerErrorRetryBehavior::names | ::Integer + attr_writer retry_behavior(): ::Temporalio::Api::Enums::V1::NexusHandlerErrorRetryBehavior::names | ::Temporalio::Api::Enums::V1::NexusHandlerErrorRetryBehavior::strings | ::Integer | ::Float + attr_reader retry_behavior_const(): ::Integer + def clear_retry_behavior: () -> void + + type init_map = { + error_type: (::String | ::Symbol)?, + "error_type" => (::String | ::Symbol)?, + failure: (::Temporalio::Api::Nexus::V1::Failure | ::Temporalio::Api::Nexus::V1::Failure::init_map)?, + "failure" => (::Temporalio::Api::Nexus::V1::Failure | ::Temporalio::Api::Nexus::V1::Failure::init_map)?, + retry_behavior: (::Temporalio::Api::Enums::V1::NexusHandlerErrorRetryBehavior::names | ::Temporalio::Api::Enums::V1::NexusHandlerErrorRetryBehavior::strings | ::Integer | ::Float)?, + "retry_behavior" => (::Temporalio::Api::Enums::V1::NexusHandlerErrorRetryBehavior::names | ::Temporalio::Api::Enums::V1::NexusHandlerErrorRetryBehavior::strings | ::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("error_type" name) -> ::String + | ("failure" name) -> ::Temporalio::Api::Nexus::V1::Failure? + | ("retry_behavior" name) -> (::Temporalio::Api::Enums::V1::NexusHandlerErrorRetryBehavior::names | ::Integer) + + def []=: + ("error_type" name, (::String | ::Symbol) value) -> void + | ("failure" name, ::Temporalio::Api::Nexus::V1::Failure? value) -> void + | ("retry_behavior" name, (::Temporalio::Api::Enums::V1::NexusHandlerErrorRetryBehavior::names | ::Temporalio::Api::Enums::V1::NexusHandlerErrorRetryBehavior::strings | ::Integer | ::Float) value) -> void + end + + class UnsuccessfulOperationError < ::Google::Protobuf::AbstractMessage + + # See https://github.com/nexus-rpc/api/blob/main/SPEC.md#operationinfo. + attr_reader operation_state(): ::String + attr_writer operation_state(): ::String | ::Symbol + def clear_operation_state: () -> void + + attr_accessor failure(): ::Temporalio::Api::Nexus::V1::Failure? + def has_failure?: () -> bool + def clear_failure: () -> void + + type init_map = { + operation_state: (::String | ::Symbol)?, + "operation_state" => (::String | ::Symbol)?, + failure: (::Temporalio::Api::Nexus::V1::Failure | ::Temporalio::Api::Nexus::V1::Failure::init_map)?, + "failure" => (::Temporalio::Api::Nexus::V1::Failure | ::Temporalio::Api::Nexus::V1::Failure::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("operation_state" name) -> ::String + | ("failure" name) -> ::Temporalio::Api::Nexus::V1::Failure? + + def []=: + ("operation_state" name, (::String | ::Symbol) value) -> void + | ("failure" name, ::Temporalio::Api::Nexus::V1::Failure? value) -> void + end + + class Link < ::Google::Protobuf::AbstractMessage + + # See https://github.com/nexus-rpc/api/blob/main/SPEC.md#links. + attr_reader url(): ::String + attr_writer url(): ::String | ::Symbol + def clear_url: () -> void + + attr_reader type(): ::String + attr_writer type(): ::String | ::Symbol + def clear_type: () -> void + + type init_map = { + url: (::String | ::Symbol)?, + "url" => (::String | ::Symbol)?, + type: (::String | ::Symbol)?, + "type" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("url" name) -> ::String + | ("type" name) -> ::String + + def []=: + ("url" name, (::String | ::Symbol) value) -> void + | ("type" name, (::String | ::Symbol) value) -> void + end + + # A request to start an operation. + class StartOperationRequest < ::Google::Protobuf::AbstractMessage + + # Name of service to start the operation in. + attr_reader service(): ::String + attr_writer service(): ::String | ::Symbol + def clear_service: () -> void + + # Type of operation to start. + attr_reader operation(): ::String + attr_writer operation(): ::String | ::Symbol + def clear_operation: () -> void + + # A request ID that can be used as an idempotentency key. + attr_reader request_id(): ::String + attr_writer request_id(): ::String | ::Symbol + def clear_request_id: () -> void + + # Callback URL to call upon completion if the started operation is async. + attr_reader callback(): ::String + attr_writer callback(): ::String | ::Symbol + def clear_callback: () -> void + + # Full request body from the incoming HTTP request. + attr_accessor payload(): ::Temporalio::Api::Common::V1::Payload? + def has_payload?: () -> bool + def clear_payload: () -> void + + # Header that is expected to be attached to the callback request when the operation completes. + attr_accessor callback_header(): ::Google::Protobuf::Map[::String, ::String] + def clear_callback_header: () -> void + + # Links contain caller information and can be attached to the operations started by the handler. + attr_accessor links(): ::Google::Protobuf::RepeatedField + def clear_links: () -> void + + type init_map = { + service: (::String | ::Symbol)?, + "service" => (::String | ::Symbol)?, + operation: (::String | ::Symbol)?, + "operation" => (::String | ::Symbol)?, + request_id: (::String | ::Symbol)?, + "request_id" => (::String | ::Symbol)?, + callback: (::String | ::Symbol)?, + "callback" => (::String | ::Symbol)?, + payload: (::Temporalio::Api::Common::V1::Payload | ::Temporalio::Api::Common::V1::Payload::init_map)?, + "payload" => (::Temporalio::Api::Common::V1::Payload | ::Temporalio::Api::Common::V1::Payload::init_map)?, + callback_header: ::Hash[::String | ::Symbol, ::String | ::Symbol]?, + "callback_header" => ::Hash[::String | ::Symbol, ::String | ::Symbol]?, + links: ::Array[::Temporalio::Api::Nexus::V1::Link]?, + "links" => ::Array[::Temporalio::Api::Nexus::V1::Link]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("service" name) -> ::String + | ("operation" name) -> ::String + | ("request_id" name) -> ::String + | ("callback" name) -> ::String + | ("payload" name) -> ::Temporalio::Api::Common::V1::Payload? + | ("callback_header" name) -> (::Google::Protobuf::Map[::String, ::String]) + | ("links" name) -> ::Google::Protobuf::RepeatedField + + def []=: + ("service" name, (::String | ::Symbol) value) -> void + | ("operation" name, (::String | ::Symbol) value) -> void + | ("request_id" name, (::String | ::Symbol) value) -> void + | ("callback" name, (::String | ::Symbol) value) -> void + | ("payload" name, ::Temporalio::Api::Common::V1::Payload? value) -> void + | ("callback_header" name, (::Google::Protobuf::Map[::String, ::String]) value) -> void + | ("links" name, ::Google::Protobuf::RepeatedField value) -> void + end + + # A request to cancel an operation. + class CancelOperationRequest < ::Google::Protobuf::AbstractMessage + + # Service name. + attr_reader service(): ::String + attr_writer service(): ::String | ::Symbol + def clear_service: () -> void + + # Type of operation to cancel. + attr_reader operation(): ::String + attr_writer operation(): ::String | ::Symbol + def clear_operation: () -> void + + # Operation ID as originally generated by a Handler. + # Deprecated. Renamed to operation_token. + # @deprecated + attr_reader operation_id(): ::String + attr_writer operation_id(): ::String | ::Symbol + def clear_operation_id: () -> void + + # Operation token as originally generated by a Handler. + attr_reader operation_token(): ::String + attr_writer operation_token(): ::String | ::Symbol + def clear_operation_token: () -> void + + type init_map = { + service: (::String | ::Symbol)?, + "service" => (::String | ::Symbol)?, + operation: (::String | ::Symbol)?, + "operation" => (::String | ::Symbol)?, + operation_id: (::String | ::Symbol)?, + "operation_id" => (::String | ::Symbol)?, + operation_token: (::String | ::Symbol)?, + "operation_token" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("service" name) -> ::String + | ("operation" name) -> ::String + | ("operation_id" name) -> ::String + | ("operation_token" name) -> ::String + + def []=: + ("service" name, (::String | ::Symbol) value) -> void + | ("operation" name, (::String | ::Symbol) value) -> void + | ("operation_id" name, (::String | ::Symbol) value) -> void + | ("operation_token" name, (::String | ::Symbol) value) -> void + end + + # A Nexus request. + class Request < ::Google::Protobuf::AbstractMessage + class Capabilities < ::Google::Protobuf::AbstractMessage + + # If set, handlers may use temporal.api.failure.v1.Failure instances to return failures to the server. + # This also allows handler and operation errors to have their own messages and stack traces. + attr_accessor temporal_failure_responses(): bool + def clear_temporal_failure_responses: () -> void + + type init_map = { + temporal_failure_responses: bool?, + "temporal_failure_responses" => bool?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("temporal_failure_responses" name) -> bool + + def []=: + ("temporal_failure_responses" name, bool value) -> void + end + + # 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. + attr_accessor header(): ::Google::Protobuf::Map[::String, ::String] + def clear_header: () -> void + + # 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. --) + attr_reader scheduled_time(): ::Google::Protobuf::Timestamp? + attr_writer scheduled_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_scheduled_time?: () -> bool + def clear_scheduled_time: () -> void + + attr_accessor capabilities(): ::Temporalio::Api::Nexus::V1::Request::Capabilities? + def has_capabilities?: () -> bool + def clear_capabilities: () -> void + + attr_accessor start_operation(): ::Temporalio::Api::Nexus::V1::StartOperationRequest? + def has_start_operation?: () -> bool + def clear_start_operation: () -> void + + attr_accessor cancel_operation(): ::Temporalio::Api::Nexus::V1::CancelOperationRequest? + def has_cancel_operation?: () -> bool + def clear_cancel_operation: () -> void + + # The endpoint this request was addressed to before forwarding to the worker. + # Supported from server version 1.30.0. + attr_reader endpoint(): ::String + attr_writer endpoint(): ::String | ::Symbol + def clear_endpoint: () -> void + + attr_reader variant(): (::Temporalio::Api::Nexus::V1::StartOperationRequest | ::Temporalio::Api::Nexus::V1::CancelOperationRequest)? + def has_variant?: () -> bool + def clear_variant: () -> void + + type init_map = { + header: ::Hash[::String | ::Symbol, ::String | ::Symbol]?, + "header" => ::Hash[::String | ::Symbol, ::String | ::Symbol]?, + scheduled_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "scheduled_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + capabilities: (::Temporalio::Api::Nexus::V1::Request::Capabilities | ::Temporalio::Api::Nexus::V1::Request::Capabilities::init_map)?, + "capabilities" => (::Temporalio::Api::Nexus::V1::Request::Capabilities | ::Temporalio::Api::Nexus::V1::Request::Capabilities::init_map)?, + start_operation: (::Temporalio::Api::Nexus::V1::StartOperationRequest | ::Temporalio::Api::Nexus::V1::StartOperationRequest::init_map)?, + "start_operation" => (::Temporalio::Api::Nexus::V1::StartOperationRequest | ::Temporalio::Api::Nexus::V1::StartOperationRequest::init_map)?, + cancel_operation: (::Temporalio::Api::Nexus::V1::CancelOperationRequest | ::Temporalio::Api::Nexus::V1::CancelOperationRequest::init_map)?, + "cancel_operation" => (::Temporalio::Api::Nexus::V1::CancelOperationRequest | ::Temporalio::Api::Nexus::V1::CancelOperationRequest::init_map)?, + endpoint: (::String | ::Symbol)?, + "endpoint" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("header" name) -> (::Google::Protobuf::Map[::String, ::String]) + | ("scheduled_time" name) -> ::Google::Protobuf::Timestamp? + | ("capabilities" name) -> ::Temporalio::Api::Nexus::V1::Request::Capabilities? + | ("start_operation" name) -> ::Temporalio::Api::Nexus::V1::StartOperationRequest? + | ("cancel_operation" name) -> ::Temporalio::Api::Nexus::V1::CancelOperationRequest? + | ("endpoint" name) -> ::String + + def []=: + ("header" name, (::Google::Protobuf::Map[::String, ::String]) value) -> void + | ("scheduled_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("capabilities" name, ::Temporalio::Api::Nexus::V1::Request::Capabilities? value) -> void + | ("start_operation" name, ::Temporalio::Api::Nexus::V1::StartOperationRequest? value) -> void + | ("cancel_operation" name, ::Temporalio::Api::Nexus::V1::CancelOperationRequest? value) -> void + | ("endpoint" name, (::String | ::Symbol) value) -> void + end + + # Response variant for StartOperationRequest. + class StartOperationResponse < ::Google::Protobuf::AbstractMessage + # An operation completed successfully. + class Sync < ::Google::Protobuf::AbstractMessage + + attr_accessor payload(): ::Temporalio::Api::Common::V1::Payload? + def has_payload?: () -> bool + def clear_payload: () -> void + + attr_accessor links(): ::Google::Protobuf::RepeatedField + def clear_links: () -> void + + type init_map = { + payload: (::Temporalio::Api::Common::V1::Payload | ::Temporalio::Api::Common::V1::Payload::init_map)?, + "payload" => (::Temporalio::Api::Common::V1::Payload | ::Temporalio::Api::Common::V1::Payload::init_map)?, + links: ::Array[::Temporalio::Api::Nexus::V1::Link]?, + "links" => ::Array[::Temporalio::Api::Nexus::V1::Link]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("payload" name) -> ::Temporalio::Api::Common::V1::Payload? + | ("links" name) -> ::Google::Protobuf::RepeatedField + + def []=: + ("payload" name, ::Temporalio::Api::Common::V1::Payload? value) -> void + | ("links" name, ::Google::Protobuf::RepeatedField value) -> void + end + + # The operation will complete asynchronously. + # The returned ID can be used to reference this operation. + class Async < ::Google::Protobuf::AbstractMessage + + # Deprecated. Renamed to operation_token. + # @deprecated + attr_reader operation_id(): ::String + attr_writer operation_id(): ::String | ::Symbol + def clear_operation_id: () -> void + + attr_accessor links(): ::Google::Protobuf::RepeatedField + def clear_links: () -> void + + attr_reader operation_token(): ::String + attr_writer operation_token(): ::String | ::Symbol + def clear_operation_token: () -> void + + type init_map = { + operation_id: (::String | ::Symbol)?, + "operation_id" => (::String | ::Symbol)?, + links: ::Array[::Temporalio::Api::Nexus::V1::Link]?, + "links" => ::Array[::Temporalio::Api::Nexus::V1::Link]?, + operation_token: (::String | ::Symbol)?, + "operation_token" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("operation_id" name) -> ::String + | ("links" name) -> ::Google::Protobuf::RepeatedField + | ("operation_token" name) -> ::String + + def []=: + ("operation_id" name, (::String | ::Symbol) value) -> void + | ("links" name, ::Google::Protobuf::RepeatedField value) -> void + | ("operation_token" name, (::String | ::Symbol) value) -> void + end + + attr_accessor sync_success(): ::Temporalio::Api::Nexus::V1::StartOperationResponse::Sync? + def has_sync_success?: () -> bool + def clear_sync_success: () -> void + + attr_accessor async_success(): ::Temporalio::Api::Nexus::V1::StartOperationResponse::Async? + def has_async_success?: () -> bool + def clear_async_success: () -> void + + # The operation completed unsuccessfully (failed or canceled). + # Deprecated. Use the failure variant instead. + # @deprecated + attr_accessor operation_error(): ::Temporalio::Api::Nexus::V1::UnsuccessfulOperationError? + def has_operation_error?: () -> bool + def clear_operation_error: () -> void + + # The operation completed unsuccessfully (failed or canceled). + # Failure object must contain an ApplicationFailureInfo or CanceledFailureInfo object. + attr_accessor failure(): ::Temporalio::Api::Failure::V1::Failure? + def has_failure?: () -> bool + def clear_failure: () -> void + + attr_reader variant(): (::Temporalio::Api::Nexus::V1::StartOperationResponse::Sync | ::Temporalio::Api::Nexus::V1::StartOperationResponse::Async | ::Temporalio::Api::Nexus::V1::UnsuccessfulOperationError | ::Temporalio::Api::Failure::V1::Failure)? + def has_variant?: () -> bool + def clear_variant: () -> void + + type init_map = { + sync_success: (::Temporalio::Api::Nexus::V1::StartOperationResponse::Sync | ::Temporalio::Api::Nexus::V1::StartOperationResponse::Sync::init_map)?, + "sync_success" => (::Temporalio::Api::Nexus::V1::StartOperationResponse::Sync | ::Temporalio::Api::Nexus::V1::StartOperationResponse::Sync::init_map)?, + async_success: (::Temporalio::Api::Nexus::V1::StartOperationResponse::Async | ::Temporalio::Api::Nexus::V1::StartOperationResponse::Async::init_map)?, + "async_success" => (::Temporalio::Api::Nexus::V1::StartOperationResponse::Async | ::Temporalio::Api::Nexus::V1::StartOperationResponse::Async::init_map)?, + operation_error: (::Temporalio::Api::Nexus::V1::UnsuccessfulOperationError | ::Temporalio::Api::Nexus::V1::UnsuccessfulOperationError::init_map)?, + "operation_error" => (::Temporalio::Api::Nexus::V1::UnsuccessfulOperationError | ::Temporalio::Api::Nexus::V1::UnsuccessfulOperationError::init_map)?, + failure: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + "failure" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("sync_success" name) -> ::Temporalio::Api::Nexus::V1::StartOperationResponse::Sync? + | ("async_success" name) -> ::Temporalio::Api::Nexus::V1::StartOperationResponse::Async? + | ("operation_error" name) -> ::Temporalio::Api::Nexus::V1::UnsuccessfulOperationError? + | ("failure" name) -> ::Temporalio::Api::Failure::V1::Failure? + + def []=: + ("sync_success" name, ::Temporalio::Api::Nexus::V1::StartOperationResponse::Sync? value) -> void + | ("async_success" name, ::Temporalio::Api::Nexus::V1::StartOperationResponse::Async? value) -> void + | ("operation_error" name, ::Temporalio::Api::Nexus::V1::UnsuccessfulOperationError? value) -> void + | ("failure" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void + end + + # Response variant for CancelOperationRequest. + class CancelOperationResponse < ::Google::Protobuf::AbstractMessage + + type init_map = { + } + + def initialize: (?init_map initial_value) -> void + end + + # A response indicating that the handler has successfully processed a request. + class Response < ::Google::Protobuf::AbstractMessage + + attr_accessor start_operation(): ::Temporalio::Api::Nexus::V1::StartOperationResponse? + def has_start_operation?: () -> bool + def clear_start_operation: () -> void + + attr_accessor cancel_operation(): ::Temporalio::Api::Nexus::V1::CancelOperationResponse? + def has_cancel_operation?: () -> bool + def clear_cancel_operation: () -> void + + # Variant must correlate to the corresponding Request's variant. + attr_reader variant(): (::Temporalio::Api::Nexus::V1::StartOperationResponse | ::Temporalio::Api::Nexus::V1::CancelOperationResponse)? + def has_variant?: () -> bool + def clear_variant: () -> void + + type init_map = { + start_operation: (::Temporalio::Api::Nexus::V1::StartOperationResponse | ::Temporalio::Api::Nexus::V1::StartOperationResponse::init_map)?, + "start_operation" => (::Temporalio::Api::Nexus::V1::StartOperationResponse | ::Temporalio::Api::Nexus::V1::StartOperationResponse::init_map)?, + cancel_operation: (::Temporalio::Api::Nexus::V1::CancelOperationResponse | ::Temporalio::Api::Nexus::V1::CancelOperationResponse::init_map)?, + "cancel_operation" => (::Temporalio::Api::Nexus::V1::CancelOperationResponse | ::Temporalio::Api::Nexus::V1::CancelOperationResponse::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("start_operation" name) -> ::Temporalio::Api::Nexus::V1::StartOperationResponse? + | ("cancel_operation" name) -> ::Temporalio::Api::Nexus::V1::CancelOperationResponse? + + def []=: + ("start_operation" name, ::Temporalio::Api::Nexus::V1::StartOperationResponse? value) -> void + | ("cancel_operation" name, ::Temporalio::Api::Nexus::V1::CancelOperationResponse? value) -> void + end + + # A cluster-global binding from an endpoint ID to a target for dispatching incoming Nexus requests. + class Endpoint < ::Google::Protobuf::AbstractMessage + + # Data version for this endpoint, incremented for every update issued via the UpdateNexusEndpoint API. + attr_reader version(): ::Integer + attr_writer version(): ::Integer | ::Float + def clear_version: () -> void + + # Unique server-generated endpoint ID. + attr_reader id(): ::String + attr_writer id(): ::String | ::Symbol + def clear_id: () -> void + + # Spec for the endpoint. + attr_accessor spec(): ::Temporalio::Api::Nexus::V1::EndpointSpec? + def has_spec?: () -> bool + def clear_spec: () -> void + + # 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. --) + attr_reader created_time(): ::Google::Protobuf::Timestamp? + attr_writer created_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_created_time?: () -> bool + def clear_created_time: () -> void + + # 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. --) + attr_reader last_modified_time(): ::Google::Protobuf::Timestamp? + attr_writer last_modified_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_last_modified_time?: () -> bool + def clear_last_modified_time: () -> void + + # 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. + attr_reader url_prefix(): ::String + attr_writer url_prefix(): ::String | ::Symbol + def clear_url_prefix: () -> void + + type init_map = { + version: (::Integer | ::Float)?, + "version" => (::Integer | ::Float)?, + id: (::String | ::Symbol)?, + "id" => (::String | ::Symbol)?, + spec: (::Temporalio::Api::Nexus::V1::EndpointSpec | ::Temporalio::Api::Nexus::V1::EndpointSpec::init_map)?, + "spec" => (::Temporalio::Api::Nexus::V1::EndpointSpec | ::Temporalio::Api::Nexus::V1::EndpointSpec::init_map)?, + created_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "created_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + last_modified_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "last_modified_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + url_prefix: (::String | ::Symbol)?, + "url_prefix" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("version" name) -> ::Integer + | ("id" name) -> ::String + | ("spec" name) -> ::Temporalio::Api::Nexus::V1::EndpointSpec? + | ("created_time" name) -> ::Google::Protobuf::Timestamp? + | ("last_modified_time" name) -> ::Google::Protobuf::Timestamp? + | ("url_prefix" name) -> ::String + + def []=: + ("version" name, (::Integer | ::Float) value) -> void + | ("id" name, (::String | ::Symbol) value) -> void + | ("spec" name, ::Temporalio::Api::Nexus::V1::EndpointSpec? value) -> void + | ("created_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("last_modified_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("url_prefix" name, (::String | ::Symbol) value) -> void + end + + # Contains mutable fields for an Endpoint. + class EndpointSpec < ::Google::Protobuf::AbstractMessage + + # 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. + attr_reader name(): ::String + attr_writer name(): ::String | ::Symbol + def clear_name: () -> void + + # 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. + attr_accessor description(): ::Temporalio::Api::Common::V1::Payload? + def has_description?: () -> bool + def clear_description: () -> void + + # Target to route requests to. + attr_accessor target(): ::Temporalio::Api::Nexus::V1::EndpointTarget? + def has_target?: () -> bool + def clear_target: () -> void + + type init_map = { + name: (::String | ::Symbol)?, + "name" => (::String | ::Symbol)?, + description: (::Temporalio::Api::Common::V1::Payload | ::Temporalio::Api::Common::V1::Payload::init_map)?, + "description" => (::Temporalio::Api::Common::V1::Payload | ::Temporalio::Api::Common::V1::Payload::init_map)?, + target: (::Temporalio::Api::Nexus::V1::EndpointTarget | ::Temporalio::Api::Nexus::V1::EndpointTarget::init_map)?, + "target" => (::Temporalio::Api::Nexus::V1::EndpointTarget | ::Temporalio::Api::Nexus::V1::EndpointTarget::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("name" name) -> ::String + | ("description" name) -> ::Temporalio::Api::Common::V1::Payload? + | ("target" name) -> ::Temporalio::Api::Nexus::V1::EndpointTarget? + + def []=: + ("name" name, (::String | ::Symbol) value) -> void + | ("description" name, ::Temporalio::Api::Common::V1::Payload? value) -> void + | ("target" name, ::Temporalio::Api::Nexus::V1::EndpointTarget? value) -> void + end + + # Target to route requests to. + class EndpointTarget < ::Google::Protobuf::AbstractMessage + # Target a worker polling on a Nexus task queue in a specific namespace. + class Worker < ::Google::Protobuf::AbstractMessage + + # Namespace to route requests to. + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # Nexus task queue to route requests to. + attr_reader task_queue(): ::String + attr_writer task_queue(): ::String | ::Symbol + def clear_task_queue: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + task_queue: (::String | ::Symbol)?, + "task_queue" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("task_queue" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("task_queue" name, (::String | ::Symbol) value) -> void + end + + # 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. + class External < ::Google::Protobuf::AbstractMessage + + # URL to call. + attr_reader url(): ::String + attr_writer url(): ::String | ::Symbol + def clear_url: () -> void + + type init_map = { + url: (::String | ::Symbol)?, + "url" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("url" name) -> ::String + + def []=: + ("url" name, (::String | ::Symbol) value) -> void + end + + attr_accessor worker(): ::Temporalio::Api::Nexus::V1::EndpointTarget::Worker? + def has_worker?: () -> bool + def clear_worker: () -> void + + attr_accessor external(): ::Temporalio::Api::Nexus::V1::EndpointTarget::External? + def has_external?: () -> bool + def clear_external: () -> void + + attr_reader variant(): (::Temporalio::Api::Nexus::V1::EndpointTarget::Worker | ::Temporalio::Api::Nexus::V1::EndpointTarget::External)? + def has_variant?: () -> bool + def clear_variant: () -> void + + type init_map = { + worker: (::Temporalio::Api::Nexus::V1::EndpointTarget::Worker | ::Temporalio::Api::Nexus::V1::EndpointTarget::Worker::init_map)?, + "worker" => (::Temporalio::Api::Nexus::V1::EndpointTarget::Worker | ::Temporalio::Api::Nexus::V1::EndpointTarget::Worker::init_map)?, + external: (::Temporalio::Api::Nexus::V1::EndpointTarget::External | ::Temporalio::Api::Nexus::V1::EndpointTarget::External::init_map)?, + "external" => (::Temporalio::Api::Nexus::V1::EndpointTarget::External | ::Temporalio::Api::Nexus::V1::EndpointTarget::External::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("worker" name) -> ::Temporalio::Api::Nexus::V1::EndpointTarget::Worker? + | ("external" name) -> ::Temporalio::Api::Nexus::V1::EndpointTarget::External? + + def []=: + ("worker" name, ::Temporalio::Api::Nexus::V1::EndpointTarget::Worker? value) -> void + | ("external" name, ::Temporalio::Api::Nexus::V1::EndpointTarget::External? value) -> void + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/api/operatorservice/v1/request_response.rbs b/temporalio/sig/temporalio/api/operatorservice/v1/request_response.rbs new file mode 100644 index 00000000..d45ad2bd --- /dev/null +++ b/temporalio/sig/temporalio/api/operatorservice/v1/request_response.rbs @@ -0,0 +1,679 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/api/operatorservice/v1/request_response.proto + +module Temporalio + module Api + module OperatorService + module V1 + class AddSearchAttributesRequest < ::Google::Protobuf::AbstractMessage + + # Mapping between search attribute name and its IndexedValueType. + attr_accessor search_attributes(): ::Google::Protobuf::Map[::String, ::Temporalio::Api::Enums::V1::IndexedValueType::names | ::Integer] + def clear_search_attributes: () -> void + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + type init_map = { + search_attributes: ::Hash[::String | ::Symbol, ::Temporalio::Api::Enums::V1::IndexedValueType::names | ::Temporalio::Api::Enums::V1::IndexedValueType::strings | ::Integer | ::Float]?, + "search_attributes" => ::Hash[::String | ::Symbol, ::Temporalio::Api::Enums::V1::IndexedValueType::names | ::Temporalio::Api::Enums::V1::IndexedValueType::strings | ::Integer | ::Float]?, + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("search_attributes" name) -> (::Google::Protobuf::Map[::String, ::Temporalio::Api::Enums::V1::IndexedValueType::names | ::Integer]) + | ("namespace" name) -> ::String + + def []=: + ("search_attributes" name, (::Google::Protobuf::Map[::String, ::Temporalio::Api::Enums::V1::IndexedValueType::names | ::Integer]) value) -> void + | ("namespace" name, (::String | ::Symbol) value) -> void + end + + class AddSearchAttributesResponse < ::Google::Protobuf::AbstractMessage + + type init_map = { + } + + def initialize: (?init_map initial_value) -> void + end + + class RemoveSearchAttributesRequest < ::Google::Protobuf::AbstractMessage + + # Search attribute names to delete. + attr_accessor search_attributes(): ::Google::Protobuf::RepeatedField + def clear_search_attributes: () -> void + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + type init_map = { + search_attributes: ::Array[::String | ::Symbol]?, + "search_attributes" => ::Array[::String | ::Symbol]?, + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("search_attributes" name) -> (::Google::Protobuf::RepeatedField) + | ("namespace" name) -> ::String + + def []=: + ("search_attributes" name, (::Google::Protobuf::RepeatedField) value) -> void + | ("namespace" name, (::String | ::Symbol) value) -> void + end + + class RemoveSearchAttributesResponse < ::Google::Protobuf::AbstractMessage + + type init_map = { + } + + def initialize: (?init_map initial_value) -> void + end + + class ListSearchAttributesRequest < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + end + + class ListSearchAttributesResponse < ::Google::Protobuf::AbstractMessage + + # Mapping between custom (user-registered) search attribute name to its IndexedValueType. + attr_accessor custom_attributes(): ::Google::Protobuf::Map[::String, ::Temporalio::Api::Enums::V1::IndexedValueType::names | ::Integer] + def clear_custom_attributes: () -> void + + # Mapping between system (predefined) search attribute name to its IndexedValueType. + attr_accessor system_attributes(): ::Google::Protobuf::Map[::String, ::Temporalio::Api::Enums::V1::IndexedValueType::names | ::Integer] + def clear_system_attributes: () -> void + + # Mapping from the attribute name to the visibility storage native type. + attr_accessor storage_schema(): ::Google::Protobuf::Map[::String, ::String] + def clear_storage_schema: () -> void + + type init_map = { + custom_attributes: ::Hash[::String | ::Symbol, ::Temporalio::Api::Enums::V1::IndexedValueType::names | ::Temporalio::Api::Enums::V1::IndexedValueType::strings | ::Integer | ::Float]?, + "custom_attributes" => ::Hash[::String | ::Symbol, ::Temporalio::Api::Enums::V1::IndexedValueType::names | ::Temporalio::Api::Enums::V1::IndexedValueType::strings | ::Integer | ::Float]?, + system_attributes: ::Hash[::String | ::Symbol, ::Temporalio::Api::Enums::V1::IndexedValueType::names | ::Temporalio::Api::Enums::V1::IndexedValueType::strings | ::Integer | ::Float]?, + "system_attributes" => ::Hash[::String | ::Symbol, ::Temporalio::Api::Enums::V1::IndexedValueType::names | ::Temporalio::Api::Enums::V1::IndexedValueType::strings | ::Integer | ::Float]?, + storage_schema: ::Hash[::String | ::Symbol, ::String | ::Symbol]?, + "storage_schema" => ::Hash[::String | ::Symbol, ::String | ::Symbol]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("custom_attributes" name) -> (::Google::Protobuf::Map[::String, ::Temporalio::Api::Enums::V1::IndexedValueType::names | ::Integer]) + | ("system_attributes" name) -> (::Google::Protobuf::Map[::String, ::Temporalio::Api::Enums::V1::IndexedValueType::names | ::Integer]) + | ("storage_schema" name) -> (::Google::Protobuf::Map[::String, ::String]) + + def []=: + ("custom_attributes" name, (::Google::Protobuf::Map[::String, ::Temporalio::Api::Enums::V1::IndexedValueType::names | ::Integer]) value) -> void + | ("system_attributes" name, (::Google::Protobuf::Map[::String, ::Temporalio::Api::Enums::V1::IndexedValueType::names | ::Integer]) value) -> void + | ("storage_schema" name, (::Google::Protobuf::Map[::String, ::String]) value) -> void + end + + class DeleteNamespaceRequest < ::Google::Protobuf::AbstractMessage + + # Only one of namespace or namespace_id must be specified to identify namespace. + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_reader namespace_id(): ::String + attr_writer namespace_id(): ::String | ::Symbol + def clear_namespace_id: () -> void + + # 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. + attr_reader namespace_delete_delay(): ::Google::Protobuf::Duration? + attr_writer namespace_delete_delay(): (::Google::Protobuf::Duration | ::int)? + def has_namespace_delete_delay?: () -> bool + def clear_namespace_delete_delay: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + namespace_id: (::String | ::Symbol)?, + "namespace_id" => (::String | ::Symbol)?, + namespace_delete_delay: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "namespace_delete_delay" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("namespace_id" name) -> ::String + | ("namespace_delete_delay" name) -> ::Google::Protobuf::Duration? + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("namespace_id" name, (::String | ::Symbol) value) -> void + | ("namespace_delete_delay" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + end + + class DeleteNamespaceResponse < ::Google::Protobuf::AbstractMessage + + # Temporary namespace name that is used during reclaim resources step. + attr_reader deleted_namespace(): ::String + attr_writer deleted_namespace(): ::String | ::Symbol + def clear_deleted_namespace: () -> void + + type init_map = { + deleted_namespace: (::String | ::Symbol)?, + "deleted_namespace" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("deleted_namespace" name) -> ::String + + def []=: + ("deleted_namespace" name, (::String | ::Symbol) value) -> void + end + + class AddOrUpdateRemoteClusterRequest < ::Google::Protobuf::AbstractMessage + + # Frontend Address is a cross cluster accessible address for gRPC traffic. This field is required. + attr_reader frontend_address(): ::String + attr_writer frontend_address(): ::String | ::Symbol + def clear_frontend_address: () -> void + + # Flag to enable / disable the cross cluster connection. + attr_accessor enable_remote_cluster_connection(): bool + def clear_enable_remote_cluster_connection: () -> void + + # 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. + attr_reader frontend_http_address(): ::String + attr_writer frontend_http_address(): ::String | ::Symbol + def clear_frontend_http_address: () -> void + + # Controls whether replication streams are active. + attr_accessor enable_replication(): bool + def clear_enable_replication: () -> void + + type init_map = { + frontend_address: (::String | ::Symbol)?, + "frontend_address" => (::String | ::Symbol)?, + enable_remote_cluster_connection: bool?, + "enable_remote_cluster_connection" => bool?, + frontend_http_address: (::String | ::Symbol)?, + "frontend_http_address" => (::String | ::Symbol)?, + enable_replication: bool?, + "enable_replication" => bool?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("frontend_address" name) -> ::String + | ("enable_remote_cluster_connection" name) -> bool + | ("frontend_http_address" name) -> ::String + | ("enable_replication" name) -> bool + + def []=: + ("frontend_address" name, (::String | ::Symbol) value) -> void + | ("enable_remote_cluster_connection" name, bool value) -> void + | ("frontend_http_address" name, (::String | ::Symbol) value) -> void + | ("enable_replication" name, bool value) -> void + end + + class AddOrUpdateRemoteClusterResponse < ::Google::Protobuf::AbstractMessage + + type init_map = { + } + + def initialize: (?init_map initial_value) -> void + end + + class RemoveRemoteClusterRequest < ::Google::Protobuf::AbstractMessage + + # Remote cluster name to be removed. + attr_reader cluster_name(): ::String + attr_writer cluster_name(): ::String | ::Symbol + def clear_cluster_name: () -> void + + type init_map = { + cluster_name: (::String | ::Symbol)?, + "cluster_name" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("cluster_name" name) -> ::String + + def []=: + ("cluster_name" name, (::String | ::Symbol) value) -> void + end + + class RemoveRemoteClusterResponse < ::Google::Protobuf::AbstractMessage + + type init_map = { + } + + def initialize: (?init_map initial_value) -> void + end + + class ListClustersRequest < ::Google::Protobuf::AbstractMessage + + attr_reader page_size(): ::Integer + attr_writer page_size(): ::Integer | ::Float + def clear_page_size: () -> void + + attr_accessor next_page_token(): ::String + def clear_next_page_token: () -> void + + type init_map = { + page_size: (::Integer | ::Float)?, + "page_size" => (::Integer | ::Float)?, + next_page_token: ::String?, + "next_page_token" => ::String?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("page_size" name) -> ::Integer + | ("next_page_token" name) -> ::String + + def []=: + ("page_size" name, (::Integer | ::Float) value) -> void + | ("next_page_token" name, ::String value) -> void + end + + class ListClustersResponse < ::Google::Protobuf::AbstractMessage + + # List of all cluster information + attr_accessor clusters(): ::Google::Protobuf::RepeatedField + def clear_clusters: () -> void + + attr_accessor next_page_token(): ::String + def clear_next_page_token: () -> void + + type init_map = { + clusters: ::Array[::Temporalio::Api::OperatorService::V1::ClusterMetadata]?, + "clusters" => ::Array[::Temporalio::Api::OperatorService::V1::ClusterMetadata]?, + next_page_token: ::String?, + "next_page_token" => ::String?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("clusters" name) -> ::Google::Protobuf::RepeatedField + | ("next_page_token" name) -> ::String + + def []=: + ("clusters" name, ::Google::Protobuf::RepeatedField value) -> void + | ("next_page_token" name, ::String value) -> void + end + + class ClusterMetadata < ::Google::Protobuf::AbstractMessage + + # Name of the cluster name. + attr_reader cluster_name(): ::String + attr_writer cluster_name(): ::String | ::Symbol + def clear_cluster_name: () -> void + + # Id of the cluster. + attr_reader cluster_id(): ::String + attr_writer cluster_id(): ::String | ::Symbol + def clear_cluster_id: () -> void + + # gRPC address. + attr_reader address(): ::String + attr_writer address(): ::String | ::Symbol + def clear_address: () -> void + + # HTTP address, if one exists. + attr_reader http_address(): ::String + attr_writer http_address(): ::String | ::Symbol + def clear_http_address: () -> void + + # A unique failover version across all connected clusters. + attr_reader initial_failover_version(): ::Integer + attr_writer initial_failover_version(): ::Integer | ::Float + def clear_initial_failover_version: () -> void + + # History service shard number. + attr_reader history_shard_count(): ::Integer + attr_writer history_shard_count(): ::Integer | ::Float + def clear_history_shard_count: () -> void + + # A flag to indicate if a connection is active. + attr_accessor is_connection_enabled(): bool + def clear_is_connection_enabled: () -> void + + # A flag to indicate if replication is enabled. + attr_accessor is_replication_enabled(): bool + def clear_is_replication_enabled: () -> void + + type init_map = { + cluster_name: (::String | ::Symbol)?, + "cluster_name" => (::String | ::Symbol)?, + cluster_id: (::String | ::Symbol)?, + "cluster_id" => (::String | ::Symbol)?, + address: (::String | ::Symbol)?, + "address" => (::String | ::Symbol)?, + http_address: (::String | ::Symbol)?, + "http_address" => (::String | ::Symbol)?, + initial_failover_version: (::Integer | ::Float)?, + "initial_failover_version" => (::Integer | ::Float)?, + history_shard_count: (::Integer | ::Float)?, + "history_shard_count" => (::Integer | ::Float)?, + is_connection_enabled: bool?, + "is_connection_enabled" => bool?, + is_replication_enabled: bool?, + "is_replication_enabled" => bool?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("cluster_name" name) -> ::String + | ("cluster_id" name) -> ::String + | ("address" name) -> ::String + | ("http_address" name) -> ::String + | ("initial_failover_version" name) -> ::Integer + | ("history_shard_count" name) -> ::Integer + | ("is_connection_enabled" name) -> bool + | ("is_replication_enabled" name) -> bool + + def []=: + ("cluster_name" name, (::String | ::Symbol) value) -> void + | ("cluster_id" name, (::String | ::Symbol) value) -> void + | ("address" name, (::String | ::Symbol) value) -> void + | ("http_address" name, (::String | ::Symbol) value) -> void + | ("initial_failover_version" name, (::Integer | ::Float) value) -> void + | ("history_shard_count" name, (::Integer | ::Float) value) -> void + | ("is_connection_enabled" name, bool value) -> void + | ("is_replication_enabled" name, bool value) -> void + end + + class GetNexusEndpointRequest < ::Google::Protobuf::AbstractMessage + + # Server-generated unique endpoint ID. + attr_reader id(): ::String + attr_writer id(): ::String | ::Symbol + def clear_id: () -> void + + type init_map = { + id: (::String | ::Symbol)?, + "id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("id" name) -> ::String + + def []=: + ("id" name, (::String | ::Symbol) value) -> void + end + + class GetNexusEndpointResponse < ::Google::Protobuf::AbstractMessage + + attr_accessor endpoint(): ::Temporalio::Api::Nexus::V1::Endpoint? + def has_endpoint?: () -> bool + def clear_endpoint: () -> void + + type init_map = { + endpoint: (::Temporalio::Api::Nexus::V1::Endpoint | ::Temporalio::Api::Nexus::V1::Endpoint::init_map)?, + "endpoint" => (::Temporalio::Api::Nexus::V1::Endpoint | ::Temporalio::Api::Nexus::V1::Endpoint::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("endpoint" name) -> ::Temporalio::Api::Nexus::V1::Endpoint? + + def []=: + ("endpoint" name, ::Temporalio::Api::Nexus::V1::Endpoint? value) -> void + end + + class CreateNexusEndpointRequest < ::Google::Protobuf::AbstractMessage + + # Endpoint definition to create. + attr_accessor spec(): ::Temporalio::Api::Nexus::V1::EndpointSpec? + def has_spec?: () -> bool + def clear_spec: () -> void + + type init_map = { + spec: (::Temporalio::Api::Nexus::V1::EndpointSpec | ::Temporalio::Api::Nexus::V1::EndpointSpec::init_map)?, + "spec" => (::Temporalio::Api::Nexus::V1::EndpointSpec | ::Temporalio::Api::Nexus::V1::EndpointSpec::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("spec" name) -> ::Temporalio::Api::Nexus::V1::EndpointSpec? + + def []=: + ("spec" name, ::Temporalio::Api::Nexus::V1::EndpointSpec? value) -> void + end + + class CreateNexusEndpointResponse < ::Google::Protobuf::AbstractMessage + + # Data post acceptance. Can be used to issue additional updates to this record. + attr_accessor endpoint(): ::Temporalio::Api::Nexus::V1::Endpoint? + def has_endpoint?: () -> bool + def clear_endpoint: () -> void + + type init_map = { + endpoint: (::Temporalio::Api::Nexus::V1::Endpoint | ::Temporalio::Api::Nexus::V1::Endpoint::init_map)?, + "endpoint" => (::Temporalio::Api::Nexus::V1::Endpoint | ::Temporalio::Api::Nexus::V1::Endpoint::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("endpoint" name) -> ::Temporalio::Api::Nexus::V1::Endpoint? + + def []=: + ("endpoint" name, ::Temporalio::Api::Nexus::V1::Endpoint? value) -> void + end + + class UpdateNexusEndpointRequest < ::Google::Protobuf::AbstractMessage + + # Server-generated unique endpoint ID. + attr_reader id(): ::String + attr_writer id(): ::String | ::Symbol + def clear_id: () -> void + + # Data version for this endpoint. Must match current version. + attr_reader version(): ::Integer + attr_writer version(): ::Integer | ::Float + def clear_version: () -> void + + attr_accessor spec(): ::Temporalio::Api::Nexus::V1::EndpointSpec? + def has_spec?: () -> bool + def clear_spec: () -> void + + type init_map = { + id: (::String | ::Symbol)?, + "id" => (::String | ::Symbol)?, + version: (::Integer | ::Float)?, + "version" => (::Integer | ::Float)?, + spec: (::Temporalio::Api::Nexus::V1::EndpointSpec | ::Temporalio::Api::Nexus::V1::EndpointSpec::init_map)?, + "spec" => (::Temporalio::Api::Nexus::V1::EndpointSpec | ::Temporalio::Api::Nexus::V1::EndpointSpec::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("id" name) -> ::String + | ("version" name) -> ::Integer + | ("spec" name) -> ::Temporalio::Api::Nexus::V1::EndpointSpec? + + def []=: + ("id" name, (::String | ::Symbol) value) -> void + | ("version" name, (::Integer | ::Float) value) -> void + | ("spec" name, ::Temporalio::Api::Nexus::V1::EndpointSpec? value) -> void + end + + class UpdateNexusEndpointResponse < ::Google::Protobuf::AbstractMessage + + # Data post acceptance. Can be used to issue additional updates to this record. + attr_accessor endpoint(): ::Temporalio::Api::Nexus::V1::Endpoint? + def has_endpoint?: () -> bool + def clear_endpoint: () -> void + + type init_map = { + endpoint: (::Temporalio::Api::Nexus::V1::Endpoint | ::Temporalio::Api::Nexus::V1::Endpoint::init_map)?, + "endpoint" => (::Temporalio::Api::Nexus::V1::Endpoint | ::Temporalio::Api::Nexus::V1::Endpoint::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("endpoint" name) -> ::Temporalio::Api::Nexus::V1::Endpoint? + + def []=: + ("endpoint" name, ::Temporalio::Api::Nexus::V1::Endpoint? value) -> void + end + + class DeleteNexusEndpointRequest < ::Google::Protobuf::AbstractMessage + + # Server-generated unique endpoint ID. + attr_reader id(): ::String + attr_writer id(): ::String | ::Symbol + def clear_id: () -> void + + # Data version for this endpoint. Must match current version. + attr_reader version(): ::Integer + attr_writer version(): ::Integer | ::Float + def clear_version: () -> void + + type init_map = { + id: (::String | ::Symbol)?, + "id" => (::String | ::Symbol)?, + version: (::Integer | ::Float)?, + "version" => (::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("id" name) -> ::String + | ("version" name) -> ::Integer + + def []=: + ("id" name, (::String | ::Symbol) value) -> void + | ("version" name, (::Integer | ::Float) value) -> void + end + + class DeleteNexusEndpointResponse < ::Google::Protobuf::AbstractMessage + + type init_map = { + } + + def initialize: (?init_map initial_value) -> void + end + + class ListNexusEndpointsRequest < ::Google::Protobuf::AbstractMessage + + attr_reader page_size(): ::Integer + attr_writer page_size(): ::Integer | ::Float + def clear_page_size: () -> void + + # 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. + attr_accessor next_page_token(): ::String + def clear_next_page_token: () -> void + + # 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. --) + attr_reader name(): ::String + attr_writer name(): ::String | ::Symbol + def clear_name: () -> void + + type init_map = { + page_size: (::Integer | ::Float)?, + "page_size" => (::Integer | ::Float)?, + next_page_token: ::String?, + "next_page_token" => ::String?, + name: (::String | ::Symbol)?, + "name" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("page_size" name) -> ::Integer + | ("next_page_token" name) -> ::String + | ("name" name) -> ::String + + def []=: + ("page_size" name, (::Integer | ::Float) value) -> void + | ("next_page_token" name, ::String value) -> void + | ("name" name, (::String | ::Symbol) value) -> void + end + + class ListNexusEndpointsResponse < ::Google::Protobuf::AbstractMessage + + # Token for getting the next page. + attr_accessor next_page_token(): ::String + def clear_next_page_token: () -> void + + attr_accessor endpoints(): ::Google::Protobuf::RepeatedField + def clear_endpoints: () -> void + + type init_map = { + next_page_token: ::String?, + "next_page_token" => ::String?, + endpoints: ::Array[::Temporalio::Api::Nexus::V1::Endpoint]?, + "endpoints" => ::Array[::Temporalio::Api::Nexus::V1::Endpoint]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("next_page_token" name) -> ::String + | ("endpoints" name) -> ::Google::Protobuf::RepeatedField + + def []=: + ("next_page_token" name, ::String value) -> void + | ("endpoints" name, ::Google::Protobuf::RepeatedField value) -> void + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/api/operatorservice/v1/service.rbs b/temporalio/sig/temporalio/api/operatorservice/v1/service.rbs new file mode 100644 index 00000000..3a24ff96 --- /dev/null +++ b/temporalio/sig/temporalio/api/operatorservice/v1/service.rbs @@ -0,0 +1,23 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/api/operatorservice/v1/service.proto + +module Temporalio + module Api + module OperatorService + module V1 + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/api/payload_visitor.rbs b/temporalio/sig/temporalio/api/payload_visitor.rbs new file mode 100644 index 00000000..00398b87 --- /dev/null +++ b/temporalio/sig/temporalio/api/payload_visitor.rbs @@ -0,0 +1,270 @@ +module Temporalio + module Api + class PayloadVisitor + def initialize: ( + ?on_enter: untyped, + ?on_exit: untyped, + ?skip_search_attributes: bool, + ?traverse_any: bool + ) { (untyped) -> untyped } -> void + def run: (untyped value) -> nil + def _run_activation: (untyped value) -> void + def _run_activation_completion: (untyped value) -> void + + private + + def method_name_from_proto_name: (::String name) -> ::String + def api_common_v1_payload: (untyped value) -> untyped + def api_common_v1_payload_repeated: (untyped value) -> untyped + def google_protobuf_any: (untyped value) -> void +def api_activity_v1_activity_execution_info: (untyped value) -> void + def api_activity_v1_activity_execution_list_info: (untyped value) -> void + def api_activity_v1_activity_execution_outcome: (untyped value) -> void + def api_batch_v1_batch_operation_reset: (untyped value) -> void + def api_batch_v1_batch_operation_signal: (untyped value) -> void + def api_batch_v1_batch_operation_termination: (untyped value) -> void + def api_cloud_cloudservice_v1_add_namespace_region_response: (untyped value) -> void + def api_cloud_cloudservice_v1_add_user_group_member_response: (untyped value) -> void + def api_cloud_cloudservice_v1_create_api_key_response: (untyped value) -> void + def api_cloud_cloudservice_v1_create_connectivity_rule_response: (untyped value) -> void + def api_cloud_cloudservice_v1_create_namespace_export_sink_response: (untyped value) -> void + def api_cloud_cloudservice_v1_create_namespace_response: (untyped value) -> void + def api_cloud_cloudservice_v1_create_nexus_endpoint_request: (untyped value) -> void + def api_cloud_cloudservice_v1_create_nexus_endpoint_response: (untyped value) -> void + def api_cloud_cloudservice_v1_create_service_account_response: (untyped value) -> void + def api_cloud_cloudservice_v1_create_user_group_response: (untyped value) -> void + def api_cloud_cloudservice_v1_create_user_response: (untyped value) -> void + def api_cloud_cloudservice_v1_delete_api_key_response: (untyped value) -> void + def api_cloud_cloudservice_v1_delete_connectivity_rule_response: (untyped value) -> void + def api_cloud_cloudservice_v1_delete_namespace_export_sink_response: (untyped value) -> void + def api_cloud_cloudservice_v1_delete_namespace_region_response: (untyped value) -> void + def api_cloud_cloudservice_v1_delete_namespace_response: (untyped value) -> void + def api_cloud_cloudservice_v1_delete_nexus_endpoint_response: (untyped value) -> void + def api_cloud_cloudservice_v1_delete_service_account_response: (untyped value) -> void + def api_cloud_cloudservice_v1_delete_user_group_response: (untyped value) -> void + def api_cloud_cloudservice_v1_delete_user_response: (untyped value) -> void + def api_cloud_cloudservice_v1_failover_namespace_region_response: (untyped value) -> void + def api_cloud_cloudservice_v1_get_async_operation_response: (untyped value) -> void + def api_cloud_cloudservice_v1_get_nexus_endpoint_response: (untyped value) -> void + def api_cloud_cloudservice_v1_get_nexus_endpoints_response: (untyped value) -> void + def api_cloud_cloudservice_v1_remove_user_group_member_response: (untyped value) -> void + def api_cloud_cloudservice_v1_rename_custom_search_attribute_response: (untyped value) -> void + def api_cloud_cloudservice_v1_set_service_account_namespace_access_response: (untyped value) -> void + def api_cloud_cloudservice_v1_set_user_group_namespace_access_response: (untyped value) -> void + def api_cloud_cloudservice_v1_set_user_namespace_access_response: (untyped value) -> void + def api_cloud_cloudservice_v1_update_account_response: (untyped value) -> void + def api_cloud_cloudservice_v1_update_api_key_response: (untyped value) -> void + def api_cloud_cloudservice_v1_update_namespace_export_sink_response: (untyped value) -> void + def api_cloud_cloudservice_v1_update_namespace_response: (untyped value) -> void + def api_cloud_cloudservice_v1_update_namespace_tags_response: (untyped value) -> void + def api_cloud_cloudservice_v1_update_nexus_endpoint_request: (untyped value) -> void + def api_cloud_cloudservice_v1_update_nexus_endpoint_response: (untyped value) -> void + def api_cloud_cloudservice_v1_update_service_account_response: (untyped value) -> void + def api_cloud_cloudservice_v1_update_user_group_response: (untyped value) -> void + def api_cloud_cloudservice_v1_update_user_response: (untyped value) -> void + def api_cloud_nexus_v1_endpoint: (untyped value) -> void + def api_cloud_nexus_v1_endpoint_spec: (untyped value) -> void + def api_cloud_operation_v1_async_operation: (untyped value) -> void + def api_command_v1_cancel_workflow_execution_command_attributes: (untyped value) -> void + def api_command_v1_command: (untyped value) -> void + def api_command_v1_complete_workflow_execution_command_attributes: (untyped value) -> void + def api_command_v1_continue_as_new_workflow_execution_command_attributes: (untyped value) -> void + def api_command_v1_fail_workflow_execution_command_attributes: (untyped value) -> void + def api_command_v1_modify_workflow_properties_command_attributes: (untyped value) -> void + def api_command_v1_record_marker_command_attributes: (untyped value) -> void + def api_command_v1_schedule_activity_task_command_attributes: (untyped value) -> void + def api_command_v1_schedule_nexus_operation_command_attributes: (untyped value) -> void + def api_command_v1_signal_external_workflow_execution_command_attributes: (untyped value) -> void + def api_command_v1_start_child_workflow_execution_command_attributes: (untyped value) -> void + def api_command_v1_upsert_workflow_search_attributes_command_attributes: (untyped value) -> void + def api_common_v1_header: (untyped value) -> void + def api_common_v1_memo: (untyped value) -> void + def api_common_v1_payloads: (untyped value) -> void + def api_common_v1_search_attributes: (untyped value) -> void + def api_deployment_v1_deployment_info: (untyped value) -> void + def api_deployment_v1_update_deployment_metadata: (untyped value) -> void + def api_deployment_v1_version_metadata: (untyped value) -> void + def api_deployment_v1_worker_deployment_version_info: (untyped value) -> void + def api_export_v1_workflow_execution: (untyped value) -> void + def api_export_v1_workflow_executions: (untyped value) -> void + def api_failure_v1_application_failure_info: (untyped value) -> void + def api_failure_v1_canceled_failure_info: (untyped value) -> void + def api_failure_v1_failure: (untyped value) -> void + def api_failure_v1_reset_workflow_failure_info: (untyped value) -> void + def api_failure_v1_timeout_failure_info: (untyped value) -> void + def api_history_v1_activity_task_canceled_event_attributes: (untyped value) -> void + def api_history_v1_activity_task_completed_event_attributes: (untyped value) -> void + def api_history_v1_activity_task_failed_event_attributes: (untyped value) -> void + def api_history_v1_activity_task_scheduled_event_attributes: (untyped value) -> void + def api_history_v1_activity_task_started_event_attributes: (untyped value) -> void + def api_history_v1_activity_task_timed_out_event_attributes: (untyped value) -> void + def api_history_v1_child_workflow_execution_canceled_event_attributes: (untyped value) -> void + def api_history_v1_child_workflow_execution_completed_event_attributes: (untyped value) -> void + def api_history_v1_child_workflow_execution_failed_event_attributes: (untyped value) -> void + def api_history_v1_child_workflow_execution_started_event_attributes: (untyped value) -> void + def api_history_v1_history: (untyped value) -> void + def api_history_v1_history_event: (untyped value) -> void + def api_history_v1_marker_recorded_event_attributes: (untyped value) -> void + def api_history_v1_nexus_operation_cancel_request_failed_event_attributes: (untyped value) -> void + def api_history_v1_nexus_operation_canceled_event_attributes: (untyped value) -> void + def api_history_v1_nexus_operation_completed_event_attributes: (untyped value) -> void + def api_history_v1_nexus_operation_failed_event_attributes: (untyped value) -> void + def api_history_v1_nexus_operation_scheduled_event_attributes: (untyped value) -> void + def api_history_v1_nexus_operation_timed_out_event_attributes: (untyped value) -> void + def api_history_v1_signal_external_workflow_execution_initiated_event_attributes: (untyped value) -> void + def api_history_v1_start_child_workflow_execution_initiated_event_attributes: (untyped value) -> void + def api_history_v1_upsert_workflow_search_attributes_event_attributes: (untyped value) -> void + def api_history_v1_workflow_execution_canceled_event_attributes: (untyped value) -> void + def api_history_v1_workflow_execution_completed_event_attributes: (untyped value) -> void + def api_history_v1_workflow_execution_continued_as_new_event_attributes: (untyped value) -> void + def api_history_v1_workflow_execution_failed_event_attributes: (untyped value) -> void + def api_history_v1_workflow_execution_signaled_event_attributes: (untyped value) -> void + def api_history_v1_workflow_execution_started_event_attributes: (untyped value) -> void + def api_history_v1_workflow_execution_terminated_event_attributes: (untyped value) -> void + def api_history_v1_workflow_execution_update_accepted_event_attributes: (untyped value) -> void + def api_history_v1_workflow_execution_update_admitted_event_attributes: (untyped value) -> void + def api_history_v1_workflow_execution_update_completed_event_attributes: (untyped value) -> void + def api_history_v1_workflow_execution_update_rejected_event_attributes: (untyped value) -> void + def api_history_v1_workflow_properties_modified_event_attributes: (untyped value) -> void + def api_history_v1_workflow_properties_modified_externally_event_attributes: (untyped value) -> void + def api_history_v1_workflow_task_failed_event_attributes: (untyped value) -> void + def api_nexus_v1_endpoint: (untyped value) -> void + def api_nexus_v1_endpoint_spec: (untyped value) -> void + def api_nexus_v1_request: (untyped value) -> void + def api_nexus_v1_response: (untyped value) -> void + def api_nexus_v1_start_operation_request: (untyped value) -> void + def api_nexus_v1_start_operation_response: (untyped value) -> void + def api_nexus_v1_start_operation_response_sync: (untyped value) -> void + def api_operatorservice_v1_create_nexus_endpoint_request: (untyped value) -> void + def api_operatorservice_v1_create_nexus_endpoint_response: (untyped value) -> void + def api_operatorservice_v1_get_nexus_endpoint_response: (untyped value) -> void + def api_operatorservice_v1_list_nexus_endpoints_response: (untyped value) -> void + def api_operatorservice_v1_update_nexus_endpoint_request: (untyped value) -> void + def api_operatorservice_v1_update_nexus_endpoint_response: (untyped value) -> void + def api_protocol_v1_message: (untyped value) -> void + def api_query_v1_workflow_query: (untyped value) -> void + def api_query_v1_workflow_query_result: (untyped value) -> void + def api_schedule_v1_schedule: (untyped value) -> void + def api_schedule_v1_schedule_action: (untyped value) -> void + def api_schedule_v1_schedule_list_entry: (untyped value) -> void + def api_sdk_v1_user_metadata: (untyped value) -> void + def api_update_v1_input: (untyped value) -> void + def api_update_v1_outcome: (untyped value) -> void + def api_update_v1_request: (untyped value) -> void + def api_workflow_v1_callback_info: (untyped value) -> void + def api_workflow_v1_new_workflow_execution_info: (untyped value) -> void + def api_workflow_v1_nexus_operation_cancellation_info: (untyped value) -> void + def api_workflow_v1_pending_activity_info: (untyped value) -> void + def api_workflow_v1_pending_nexus_operation_info: (untyped value) -> void + def api_workflow_v1_post_reset_operation: (untyped value) -> void + def api_workflow_v1_post_reset_operation_signal_workflow: (untyped value) -> void + def api_workflow_v1_workflow_execution_config: (untyped value) -> void + def api_workflow_v1_workflow_execution_info: (untyped value) -> void + def api_workflowservice_v1_count_activity_executions_response: (untyped value) -> void + def api_workflowservice_v1_count_activity_executions_response_aggregation_group: (untyped value) -> void + def api_workflowservice_v1_count_schedules_response: (untyped value) -> void + def api_workflowservice_v1_count_schedules_response_aggregation_group: (untyped value) -> void + def api_workflowservice_v1_count_workflow_executions_response: (untyped value) -> void + def api_workflowservice_v1_count_workflow_executions_response_aggregation_group: (untyped value) -> void + def api_workflowservice_v1_create_schedule_request: (untyped value) -> void + def api_workflowservice_v1_describe_activity_execution_response: (untyped value) -> void + def api_workflowservice_v1_describe_deployment_response: (untyped value) -> void + def api_workflowservice_v1_describe_schedule_response: (untyped value) -> void + def api_workflowservice_v1_describe_worker_deployment_version_response: (untyped value) -> void + def api_workflowservice_v1_describe_workflow_execution_response: (untyped value) -> void + def api_workflowservice_v1_execute_multi_operation_request: (untyped value) -> void + def api_workflowservice_v1_execute_multi_operation_request_operation: (untyped value) -> void + def api_workflowservice_v1_execute_multi_operation_response: (untyped value) -> void + def api_workflowservice_v1_execute_multi_operation_response_response: (untyped value) -> void + def api_workflowservice_v1_get_current_deployment_response: (untyped value) -> void + def api_workflowservice_v1_get_deployment_reachability_response: (untyped value) -> void + def api_workflowservice_v1_get_workflow_execution_history_response: (untyped value) -> void + def api_workflowservice_v1_get_workflow_execution_history_reverse_response: (untyped value) -> void + def api_workflowservice_v1_list_activity_executions_response: (untyped value) -> void + def api_workflowservice_v1_list_archived_workflow_executions_response: (untyped value) -> void + def api_workflowservice_v1_list_closed_workflow_executions_response: (untyped value) -> void + def api_workflowservice_v1_list_open_workflow_executions_response: (untyped value) -> void + def api_workflowservice_v1_list_schedules_response: (untyped value) -> void + def api_workflowservice_v1_list_workflow_executions_response: (untyped value) -> void + def api_workflowservice_v1_poll_activity_execution_response: (untyped value) -> void + def api_workflowservice_v1_poll_activity_task_queue_response: (untyped value) -> void + def api_workflowservice_v1_poll_nexus_task_queue_response: (untyped value) -> void + def api_workflowservice_v1_poll_workflow_execution_update_response: (untyped value) -> void + def api_workflowservice_v1_poll_workflow_task_queue_response: (untyped value) -> void + def api_workflowservice_v1_query_workflow_request: (untyped value) -> void + def api_workflowservice_v1_query_workflow_response: (untyped value) -> void + def api_workflowservice_v1_record_activity_task_heartbeat_by_id_request: (untyped value) -> void + def api_workflowservice_v1_record_activity_task_heartbeat_request: (untyped value) -> void + def api_workflowservice_v1_reset_workflow_execution_request: (untyped value) -> void + def api_workflowservice_v1_respond_activity_task_canceled_by_id_request: (untyped value) -> void + def api_workflowservice_v1_respond_activity_task_canceled_request: (untyped value) -> void + def api_workflowservice_v1_respond_activity_task_completed_by_id_request: (untyped value) -> void + def api_workflowservice_v1_respond_activity_task_completed_request: (untyped value) -> void + def api_workflowservice_v1_respond_activity_task_failed_by_id_request: (untyped value) -> void + def api_workflowservice_v1_respond_activity_task_failed_by_id_response: (untyped value) -> void + def api_workflowservice_v1_respond_activity_task_failed_request: (untyped value) -> void + def api_workflowservice_v1_respond_activity_task_failed_response: (untyped value) -> void + def api_workflowservice_v1_respond_nexus_task_completed_request: (untyped value) -> void + def api_workflowservice_v1_respond_nexus_task_failed_request: (untyped value) -> void + def api_workflowservice_v1_respond_query_task_completed_request: (untyped value) -> void + def api_workflowservice_v1_respond_workflow_task_completed_request: (untyped value) -> void + def api_workflowservice_v1_respond_workflow_task_completed_response: (untyped value) -> void + def api_workflowservice_v1_respond_workflow_task_failed_request: (untyped value) -> void + def api_workflowservice_v1_scan_workflow_executions_response: (untyped value) -> void + def api_workflowservice_v1_set_current_deployment_request: (untyped value) -> void + def api_workflowservice_v1_set_current_deployment_response: (untyped value) -> void + def api_workflowservice_v1_signal_with_start_workflow_execution_request: (untyped value) -> void + def api_workflowservice_v1_signal_workflow_execution_request: (untyped value) -> void + def api_workflowservice_v1_start_activity_execution_request: (untyped value) -> void + def api_workflowservice_v1_start_batch_operation_request: (untyped value) -> void + def api_workflowservice_v1_start_workflow_execution_request: (untyped value) -> void + def api_workflowservice_v1_start_workflow_execution_response: (untyped value) -> void + def api_workflowservice_v1_terminate_workflow_execution_request: (untyped value) -> void + def api_workflowservice_v1_update_schedule_request: (untyped value) -> void + def api_workflowservice_v1_update_worker_deployment_version_metadata_request: (untyped value) -> void + def api_workflowservice_v1_update_worker_deployment_version_metadata_response: (untyped value) -> void + def api_workflowservice_v1_update_workflow_execution_request: (untyped value) -> void + def api_workflowservice_v1_update_workflow_execution_response: (untyped value) -> void + def coresdk_activity_result_activity_resolution: (untyped value) -> void + def coresdk_activity_result_cancellation: (untyped value) -> void + def coresdk_activity_result_failure: (untyped value) -> void + def coresdk_activity_result_success: (untyped value) -> void + def coresdk_child_workflow_cancellation: (untyped value) -> void + def coresdk_child_workflow_child_workflow_result: (untyped value) -> void + def coresdk_child_workflow_failure: (untyped value) -> void + def coresdk_child_workflow_success: (untyped value) -> void + def coresdk_nexus_nexus_operation_result: (untyped value) -> void + def coresdk_workflow_activation_do_update: (untyped value) -> void + def coresdk_workflow_activation_initialize_workflow: (untyped value) -> void + def coresdk_workflow_activation_query_workflow: (untyped value) -> void + def coresdk_workflow_activation_resolve_activity: (untyped value) -> void + def coresdk_workflow_activation_resolve_child_workflow_execution: (untyped value) -> void + def coresdk_workflow_activation_resolve_child_workflow_execution_start: (untyped value) -> void + def coresdk_workflow_activation_resolve_child_workflow_execution_start_cancelled: (untyped value) -> void + def coresdk_workflow_activation_resolve_nexus_operation: (untyped value) -> void + def coresdk_workflow_activation_resolve_nexus_operation_start: (untyped value) -> void + def coresdk_workflow_activation_resolve_request_cancel_external_workflow: (untyped value) -> void + def coresdk_workflow_activation_resolve_signal_external_workflow: (untyped value) -> void + def coresdk_workflow_activation_signal_workflow: (untyped value) -> void + def coresdk_workflow_activation_workflow_activation: (untyped value) -> void + def coresdk_workflow_activation_workflow_activation_job: (untyped value) -> void + def coresdk_workflow_commands_complete_workflow_execution: (untyped value) -> void + def coresdk_workflow_commands_continue_as_new_workflow_execution: (untyped value) -> void + def coresdk_workflow_commands_fail_workflow_execution: (untyped value) -> void + def coresdk_workflow_commands_modify_workflow_properties: (untyped value) -> void + def coresdk_workflow_commands_query_result: (untyped value) -> void + def coresdk_workflow_commands_query_success: (untyped value) -> void + def coresdk_workflow_commands_schedule_activity: (untyped value) -> void + def coresdk_workflow_commands_schedule_local_activity: (untyped value) -> void + def coresdk_workflow_commands_schedule_nexus_operation: (untyped value) -> void + def coresdk_workflow_commands_signal_external_workflow_execution: (untyped value) -> void + def coresdk_workflow_commands_start_child_workflow_execution: (untyped value) -> void + def coresdk_workflow_commands_update_response: (untyped value) -> void + def coresdk_workflow_commands_upsert_workflow_search_attributes: (untyped value) -> void + def coresdk_workflow_commands_workflow_command: (untyped value) -> void + def coresdk_workflow_completion_failure: (untyped value) -> void + def coresdk_workflow_completion_success: (untyped value) -> void + def coresdk_workflow_completion_workflow_activation_completion: (untyped value) -> void + end + end +end diff --git a/temporalio/sig/temporalio/api/protocol/v1/message.rbs b/temporalio/sig/temporalio/api/protocol/v1/message.rbs new file mode 100644 index 00000000..daf82a39 --- /dev/null +++ b/temporalio/sig/temporalio/api/protocol/v1/message.rbs @@ -0,0 +1,90 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/api/protocol/v1/message.proto + +module Temporalio + module Api + module Protocol + module V1 + # (-- api-linter: core::0146::any=disabled + # aip.dev/not-precedent: We want runtime extensibility for the body field --) + class Message < ::Google::Protobuf::AbstractMessage + + # An ID for this specific message. + attr_reader id(): ::String + attr_writer id(): ::String | ::Symbol + def clear_id: () -> void + + # Identifies the specific instance of a protocol to which this message + # belongs. + attr_reader protocol_instance_id(): ::String + attr_writer protocol_instance_id(): ::String | ::Symbol + def clear_protocol_instance_id: () -> void + + attr_reader event_id(): ::Integer + attr_writer event_id(): (::Integer | ::Float)? + def has_event_id?: () -> bool + def clear_event_id: () -> void + + attr_reader command_index(): ::Integer + attr_writer command_index(): (::Integer | ::Float)? + def has_command_index?: () -> bool + def clear_command_index: () -> void + + # The opaque data carried by this message. The protocol type can be + # extracted from the package name of the message carried inside the Any. + attr_accessor body(): ::Google::Protobuf::Any? + def has_body?: () -> bool + def clear_body: () -> void + + # 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. + attr_reader sequencing_id(): ::Integer? + def has_sequencing_id?: () -> bool + def clear_sequencing_id: () -> void + + type init_map = { + id: (::String | ::Symbol)?, + "id" => (::String | ::Symbol)?, + protocol_instance_id: (::String | ::Symbol)?, + "protocol_instance_id" => (::String | ::Symbol)?, + event_id: (::Integer | ::Float)?, + "event_id" => (::Integer | ::Float)?, + command_index: (::Integer | ::Float)?, + "command_index" => (::Integer | ::Float)?, + body: (::Google::Protobuf::Any | ::Google::Protobuf::Any)?, + "body" => (::Google::Protobuf::Any | ::Google::Protobuf::Any)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("id" name) -> ::String + | ("protocol_instance_id" name) -> ::String + | ("event_id" name) -> ::Integer + | ("command_index" name) -> ::Integer + | ("body" name) -> ::Google::Protobuf::Any? + + def []=: + ("id" name, (::String | ::Symbol) value) -> void + | ("protocol_instance_id" name, (::String | ::Symbol) value) -> void + | ("event_id" name, ((::Integer | ::Float)?) value) -> void + | ("command_index" name, ((::Integer | ::Float)?) value) -> void + | ("body" name, ::Google::Protobuf::Any? value) -> void + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/api/protometa/v1/annotations.rbs b/temporalio/sig/temporalio/api/protometa/v1/annotations.rbs new file mode 100644 index 00000000..4f1181be --- /dev/null +++ b/temporalio/sig/temporalio/api/protometa/v1/annotations.rbs @@ -0,0 +1,62 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/api/protometa/v1/annotations.proto + +module Temporalio + module Api + module Protometa + module V1 + # RequestHeaderAnnotation allows specifying that field values from a request + # should be propagated as outbound headers. + # The value field supports template interpolation where field paths enclosed + # in braces will be replaced with the actual field values from the request. + # For example: + # value: "{workflow_execution.workflow_id}" + # value: "workflow-{workflow_execution.workflow_id}" + # value: "{namespace}/{workflow_execution.workflow_id}" + class RequestHeaderAnnotation < ::Google::Protobuf::AbstractMessage + + # The name of the header to set (e.g., "temporal-resource-id") + attr_reader header(): ::String + attr_writer header(): ::String | ::Symbol + def clear_header: () -> void + + # A template string that may contain field paths in braces. + # Field paths use dot notation to traverse nested messages. + # Example: "{workflow_execution.workflow_id}" + attr_reader value(): ::String + attr_writer value(): ::String | ::Symbol + def clear_value: () -> void + + type init_map = { + header: (::String | ::Symbol)?, + "header" => (::String | ::Symbol)?, + value: (::String | ::Symbol)?, + "value" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("header" name) -> ::String + | ("value" name) -> ::String + + def []=: + ("header" name, (::String | ::Symbol) value) -> void + | ("value" name, (::String | ::Symbol) value) -> void + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/api/query/v1/message.rbs b/temporalio/sig/temporalio/api/query/v1/message.rbs new file mode 100644 index 00000000..85cc7a28 --- /dev/null +++ b/temporalio/sig/temporalio/api/query/v1/message.rbs @@ -0,0 +1,138 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/api/query/v1/message.proto + +module Temporalio + module Api + module Query + module V1 + # See https://docs.temporal.io/docs/concepts/queries/ + class WorkflowQuery < ::Google::Protobuf::AbstractMessage + + # The workflow-author-defined identifier of the query. Typically a function name. + attr_reader query_type(): ::String + attr_writer query_type(): ::String | ::Symbol + def clear_query_type: () -> void + + # Serialized arguments that will be provided to the query handler. + attr_accessor query_args(): ::Temporalio::Api::Common::V1::Payloads? + def has_query_args?: () -> bool + def clear_query_args: () -> void + + # Headers that were passed by the caller of the query and copied by temporal + # server into the workflow task. + attr_accessor header(): ::Temporalio::Api::Common::V1::Header? + def has_header?: () -> bool + def clear_header: () -> void + + type init_map = { + query_type: (::String | ::Symbol)?, + "query_type" => (::String | ::Symbol)?, + query_args: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + "query_args" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + header: (::Temporalio::Api::Common::V1::Header | ::Temporalio::Api::Common::V1::Header::init_map)?, + "header" => (::Temporalio::Api::Common::V1::Header | ::Temporalio::Api::Common::V1::Header::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("query_type" name) -> ::String + | ("query_args" name) -> ::Temporalio::Api::Common::V1::Payloads? + | ("header" name) -> ::Temporalio::Api::Common::V1::Header? + + def []=: + ("query_type" name, (::String | ::Symbol) value) -> void + | ("query_args" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void + | ("header" name, ::Temporalio::Api::Common::V1::Header? value) -> void + end + + # Answer to a `WorkflowQuery` + class WorkflowQueryResult < ::Google::Protobuf::AbstractMessage + + # Did the query succeed or fail? + attr_reader result_type(): ::Temporalio::Api::Enums::V1::QueryResultType::names | ::Integer + attr_writer result_type(): ::Temporalio::Api::Enums::V1::QueryResultType::names | ::Temporalio::Api::Enums::V1::QueryResultType::strings | ::Integer | ::Float + attr_reader result_type_const(): ::Integer + def clear_result_type: () -> void + + # Set when the query succeeds with the results. + # Mutually exclusive with `error_message` and `failure`. + attr_accessor answer(): ::Temporalio::Api::Common::V1::Payloads? + def has_answer?: () -> bool + def clear_answer: () -> void + + # Mutually exclusive with `answer`. Set when the query fails. + # See also the newer `failure` field. + attr_reader error_message(): ::String + attr_writer error_message(): ::String | ::Symbol + def clear_error_message: () -> void + + # 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. + attr_accessor failure(): ::Temporalio::Api::Failure::V1::Failure? + def has_failure?: () -> bool + def clear_failure: () -> void + + type init_map = { + result_type: (::Temporalio::Api::Enums::V1::QueryResultType::names | ::Temporalio::Api::Enums::V1::QueryResultType::strings | ::Integer | ::Float)?, + "result_type" => (::Temporalio::Api::Enums::V1::QueryResultType::names | ::Temporalio::Api::Enums::V1::QueryResultType::strings | ::Integer | ::Float)?, + answer: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + "answer" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + error_message: (::String | ::Symbol)?, + "error_message" => (::String | ::Symbol)?, + failure: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + "failure" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("result_type" name) -> (::Temporalio::Api::Enums::V1::QueryResultType::names | ::Integer) + | ("answer" name) -> ::Temporalio::Api::Common::V1::Payloads? + | ("error_message" name) -> ::String + | ("failure" name) -> ::Temporalio::Api::Failure::V1::Failure? + + def []=: + ("result_type" name, (::Temporalio::Api::Enums::V1::QueryResultType::names | ::Temporalio::Api::Enums::V1::QueryResultType::strings | ::Integer | ::Float) value) -> void + | ("answer" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void + | ("error_message" name, (::String | ::Symbol) value) -> void + | ("failure" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void + end + + class QueryRejected < ::Google::Protobuf::AbstractMessage + + attr_reader status(): ::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::names | ::Integer + attr_writer status(): ::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::names | ::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::strings | ::Integer | ::Float + attr_reader status_const(): ::Integer + def clear_status: () -> void + + type init_map = { + status: (::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::names | ::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::strings | ::Integer | ::Float)?, + "status" => (::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::names | ::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::strings | ::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("status" name) -> (::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::names | ::Integer) + + def []=: + ("status" name, (::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::names | ::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::strings | ::Integer | ::Float) value) -> void + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/api/replication/v1/message.rbs b/temporalio/sig/temporalio/api/replication/v1/message.rbs new file mode 100644 index 00000000..e3b0a8d4 --- /dev/null +++ b/temporalio/sig/temporalio/api/replication/v1/message.rbs @@ -0,0 +1,109 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/api/replication/v1/message.proto + +module Temporalio + module Api + module Replication + module V1 + class ClusterReplicationConfig < ::Google::Protobuf::AbstractMessage + + attr_reader cluster_name(): ::String + attr_writer cluster_name(): ::String | ::Symbol + def clear_cluster_name: () -> void + + type init_map = { + cluster_name: (::String | ::Symbol)?, + "cluster_name" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("cluster_name" name) -> ::String + + def []=: + ("cluster_name" name, (::String | ::Symbol) value) -> void + end + + class NamespaceReplicationConfig < ::Google::Protobuf::AbstractMessage + + attr_reader active_cluster_name(): ::String + attr_writer active_cluster_name(): ::String | ::Symbol + def clear_active_cluster_name: () -> void + + attr_accessor clusters(): ::Google::Protobuf::RepeatedField + def clear_clusters: () -> void + + attr_reader state(): ::Temporalio::Api::Enums::V1::ReplicationState::names | ::Integer + attr_writer state(): ::Temporalio::Api::Enums::V1::ReplicationState::names | ::Temporalio::Api::Enums::V1::ReplicationState::strings | ::Integer | ::Float + attr_reader state_const(): ::Integer + def clear_state: () -> void + + type init_map = { + active_cluster_name: (::String | ::Symbol)?, + "active_cluster_name" => (::String | ::Symbol)?, + clusters: ::Array[::Temporalio::Api::Replication::V1::ClusterReplicationConfig]?, + "clusters" => ::Array[::Temporalio::Api::Replication::V1::ClusterReplicationConfig]?, + state: (::Temporalio::Api::Enums::V1::ReplicationState::names | ::Temporalio::Api::Enums::V1::ReplicationState::strings | ::Integer | ::Float)?, + "state" => (::Temporalio::Api::Enums::V1::ReplicationState::names | ::Temporalio::Api::Enums::V1::ReplicationState::strings | ::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("active_cluster_name" name) -> ::String + | ("clusters" name) -> ::Google::Protobuf::RepeatedField + | ("state" name) -> (::Temporalio::Api::Enums::V1::ReplicationState::names | ::Integer) + + def []=: + ("active_cluster_name" name, (::String | ::Symbol) value) -> void + | ("clusters" name, ::Google::Protobuf::RepeatedField value) -> void + | ("state" name, (::Temporalio::Api::Enums::V1::ReplicationState::names | ::Temporalio::Api::Enums::V1::ReplicationState::strings | ::Integer | ::Float) value) -> void + end + + # Represents a historical replication status of a Namespace + class FailoverStatus < ::Google::Protobuf::AbstractMessage + + # Timestamp when the Cluster switched to the following failover_version + attr_reader failover_time(): ::Google::Protobuf::Timestamp? + attr_writer failover_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_failover_time?: () -> bool + def clear_failover_time: () -> void + + attr_reader failover_version(): ::Integer + attr_writer failover_version(): ::Integer | ::Float + def clear_failover_version: () -> void + + type init_map = { + failover_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "failover_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + failover_version: (::Integer | ::Float)?, + "failover_version" => (::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("failover_time" name) -> ::Google::Protobuf::Timestamp? + | ("failover_version" name) -> ::Integer + + def []=: + ("failover_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("failover_version" name, (::Integer | ::Float) value) -> void + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/api/rules/v1/message.rbs b/temporalio/sig/temporalio/api/rules/v1/message.rbs new file mode 100644 index 00000000..7baf80c5 --- /dev/null +++ b/temporalio/sig/temporalio/api/rules/v1/message.rbs @@ -0,0 +1,213 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/api/rules/v1/message.proto + +module Temporalio + module Api + module Rules + module V1 + class WorkflowRuleAction < ::Google::Protobuf::AbstractMessage + class ActionActivityPause < ::Google::Protobuf::AbstractMessage + + type init_map = { + } + + def initialize: (?init_map initial_value) -> void + end + + attr_accessor activity_pause(): ::Temporalio::Api::Rules::V1::WorkflowRuleAction::ActionActivityPause? + def has_activity_pause?: () -> bool + def clear_activity_pause: () -> void + + # Supported actions. + attr_reader variant(): ::Temporalio::Api::Rules::V1::WorkflowRuleAction::ActionActivityPause? + def has_variant?: () -> bool + def clear_variant: () -> void + + type init_map = { + activity_pause: (::Temporalio::Api::Rules::V1::WorkflowRuleAction::ActionActivityPause | ::Temporalio::Api::Rules::V1::WorkflowRuleAction::ActionActivityPause::init_map)?, + "activity_pause" => (::Temporalio::Api::Rules::V1::WorkflowRuleAction::ActionActivityPause | ::Temporalio::Api::Rules::V1::WorkflowRuleAction::ActionActivityPause::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("activity_pause" name) -> ::Temporalio::Api::Rules::V1::WorkflowRuleAction::ActionActivityPause? + + def []=: + ("activity_pause" name, ::Temporalio::Api::Rules::V1::WorkflowRuleAction::ActionActivityPause? value) -> void + end + + class WorkflowRuleSpec < ::Google::Protobuf::AbstractMessage + # Activity trigger will be triggered when an activity is about to start. + class ActivityStartingTrigger < ::Google::Protobuf::AbstractMessage + + # 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 + attr_reader predicate(): ::String + attr_writer predicate(): ::String | ::Symbol + def clear_predicate: () -> void + + type init_map = { + predicate: (::String | ::Symbol)?, + "predicate" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("predicate" name) -> ::String + + def []=: + ("predicate" name, (::String | ::Symbol) value) -> void + end + + # The id of the new workflow rule. Must be unique within the namespace. + # Can be set by the user, and can have business meaning. + attr_reader id(): ::String + attr_writer id(): ::String | ::Symbol + def clear_id: () -> void + + attr_accessor activity_start(): ::Temporalio::Api::Rules::V1::WorkflowRuleSpec::ActivityStartingTrigger? + def has_activity_start?: () -> bool + def clear_activity_start: () -> void + + # 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 + attr_reader visibility_query(): ::String + attr_writer visibility_query(): ::String | ::Symbol + def clear_visibility_query: () -> void + + # WorkflowRuleAction to be taken when the rule is triggered and predicate is matched. + attr_accessor actions(): ::Google::Protobuf::RepeatedField + def clear_actions: () -> void + + # Expiration time of the rule. After this time, the rule will be deleted. + # Can be empty if the rule should never expire. + attr_reader expiration_time(): ::Google::Protobuf::Timestamp? + attr_writer expiration_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_expiration_time?: () -> bool + def clear_expiration_time: () -> void + + # Specifies how the rule should be triggered and evaluated. + # Currently, only "activity start" type is supported. + attr_reader trigger(): ::Temporalio::Api::Rules::V1::WorkflowRuleSpec::ActivityStartingTrigger? + def has_trigger?: () -> bool + def clear_trigger: () -> void + + type init_map = { + id: (::String | ::Symbol)?, + "id" => (::String | ::Symbol)?, + activity_start: (::Temporalio::Api::Rules::V1::WorkflowRuleSpec::ActivityStartingTrigger | ::Temporalio::Api::Rules::V1::WorkflowRuleSpec::ActivityStartingTrigger::init_map)?, + "activity_start" => (::Temporalio::Api::Rules::V1::WorkflowRuleSpec::ActivityStartingTrigger | ::Temporalio::Api::Rules::V1::WorkflowRuleSpec::ActivityStartingTrigger::init_map)?, + visibility_query: (::String | ::Symbol)?, + "visibility_query" => (::String | ::Symbol)?, + actions: ::Array[::Temporalio::Api::Rules::V1::WorkflowRuleAction]?, + "actions" => ::Array[::Temporalio::Api::Rules::V1::WorkflowRuleAction]?, + expiration_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "expiration_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("id" name) -> ::String + | ("activity_start" name) -> ::Temporalio::Api::Rules::V1::WorkflowRuleSpec::ActivityStartingTrigger? + | ("visibility_query" name) -> ::String + | ("actions" name) -> ::Google::Protobuf::RepeatedField + | ("expiration_time" name) -> ::Google::Protobuf::Timestamp? + + def []=: + ("id" name, (::String | ::Symbol) value) -> void + | ("activity_start" name, ::Temporalio::Api::Rules::V1::WorkflowRuleSpec::ActivityStartingTrigger? value) -> void + | ("visibility_query" name, (::String | ::Symbol) value) -> void + | ("actions" name, ::Google::Protobuf::RepeatedField value) -> void + | ("expiration_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + end + + # WorkflowRule describes a rule that can be applied to any workflow in this namespace. + class WorkflowRule < ::Google::Protobuf::AbstractMessage + + # Rule creation time. + attr_reader create_time(): ::Google::Protobuf::Timestamp? + attr_writer create_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_create_time?: () -> bool + def clear_create_time: () -> void + + # Rule specification + attr_accessor spec(): ::Temporalio::Api::Rules::V1::WorkflowRuleSpec? + def has_spec?: () -> bool + def clear_spec: () -> void + + # 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 --) + attr_reader created_by_identity(): ::String + attr_writer created_by_identity(): ::String | ::Symbol + def clear_created_by_identity: () -> void + + # Rule description. + attr_reader description(): ::String + attr_writer description(): ::String | ::Symbol + def clear_description: () -> void + + type init_map = { + create_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "create_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + spec: (::Temporalio::Api::Rules::V1::WorkflowRuleSpec | ::Temporalio::Api::Rules::V1::WorkflowRuleSpec::init_map)?, + "spec" => (::Temporalio::Api::Rules::V1::WorkflowRuleSpec | ::Temporalio::Api::Rules::V1::WorkflowRuleSpec::init_map)?, + created_by_identity: (::String | ::Symbol)?, + "created_by_identity" => (::String | ::Symbol)?, + description: (::String | ::Symbol)?, + "description" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("create_time" name) -> ::Google::Protobuf::Timestamp? + | ("spec" name) -> ::Temporalio::Api::Rules::V1::WorkflowRuleSpec? + | ("created_by_identity" name) -> ::String + | ("description" name) -> ::String + + def []=: + ("create_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("spec" name, ::Temporalio::Api::Rules::V1::WorkflowRuleSpec? value) -> void + | ("created_by_identity" name, (::String | ::Symbol) value) -> void + | ("description" name, (::String | ::Symbol) value) -> void + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/api/schedule/v1/message.rbs b/temporalio/sig/temporalio/api/schedule/v1/message.rbs new file mode 100644 index 00000000..00c6fe3d --- /dev/null +++ b/temporalio/sig/temporalio/api/schedule/v1/message.rbs @@ -0,0 +1,1048 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/api/schedule/v1/message.proto + +module Temporalio + module Api + module Schedule + module V1 + # 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. + class CalendarSpec < ::Google::Protobuf::AbstractMessage + + # Expression to match seconds. Default: 0 + attr_reader second(): ::String + attr_writer second(): ::String | ::Symbol + def clear_second: () -> void + + # Expression to match minutes. Default: 0 + attr_reader minute(): ::String + attr_writer minute(): ::String | ::Symbol + def clear_minute: () -> void + + # Expression to match hours. Default: 0 + attr_reader hour(): ::String + attr_writer hour(): ::String | ::Symbol + def clear_hour: () -> void + + # Expression to match days of the month. Default: * + # (-- api-linter: core::0140::prepositions=disabled + # aip.dev/not-precedent: standard name of field --) + attr_reader day_of_month(): ::String + attr_writer day_of_month(): ::String | ::Symbol + def clear_day_of_month: () -> void + + # Expression to match months. Default: * + attr_reader month(): ::String + attr_writer month(): ::String | ::Symbol + def clear_month: () -> void + + # Expression to match years. Default: * + attr_reader year(): ::String + attr_writer year(): ::String | ::Symbol + def clear_year: () -> void + + # Expression to match days of the week. Default: * + attr_reader day_of_week(): ::String + attr_writer day_of_week(): ::String | ::Symbol + def clear_day_of_week: () -> void + + # Free-form comment describing the intention of this spec. + attr_reader comment(): ::String + attr_writer comment(): ::String | ::Symbol + def clear_comment: () -> void + + type init_map = { + second: (::String | ::Symbol)?, + "second" => (::String | ::Symbol)?, + minute: (::String | ::Symbol)?, + "minute" => (::String | ::Symbol)?, + hour: (::String | ::Symbol)?, + "hour" => (::String | ::Symbol)?, + day_of_month: (::String | ::Symbol)?, + "day_of_month" => (::String | ::Symbol)?, + month: (::String | ::Symbol)?, + "month" => (::String | ::Symbol)?, + year: (::String | ::Symbol)?, + "year" => (::String | ::Symbol)?, + day_of_week: (::String | ::Symbol)?, + "day_of_week" => (::String | ::Symbol)?, + comment: (::String | ::Symbol)?, + "comment" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("second" name) -> ::String + | ("minute" name) -> ::String + | ("hour" name) -> ::String + | ("day_of_month" name) -> ::String + | ("month" name) -> ::String + | ("year" name) -> ::String + | ("day_of_week" name) -> ::String + | ("comment" name) -> ::String + + def []=: + ("second" name, (::String | ::Symbol) value) -> void + | ("minute" name, (::String | ::Symbol) value) -> void + | ("hour" name, (::String | ::Symbol) value) -> void + | ("day_of_month" name, (::String | ::Symbol) value) -> void + | ("month" name, (::String | ::Symbol) value) -> void + | ("year" name, (::String | ::Symbol) value) -> void + | ("day_of_week" name, (::String | ::Symbol) value) -> void + | ("comment" name, (::String | ::Symbol) value) -> void + end + + # 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. + class Range < ::Google::Protobuf::AbstractMessage + + # Start of range (inclusive). + attr_reader start(): ::Integer + attr_writer start(): ::Integer | ::Float + def clear_start: () -> void + + # End of range (inclusive). + attr_reader end(): ::Integer + attr_writer end(): ::Integer | ::Float + def clear_end: () -> void + + # Step (optional, default 1). + attr_reader step(): ::Integer + attr_writer step(): ::Integer | ::Float + def clear_step: () -> void + + type init_map = { + start: (::Integer | ::Float)?, + "start" => (::Integer | ::Float)?, + end: (::Integer | ::Float)?, + "end" => (::Integer | ::Float)?, + step: (::Integer | ::Float)?, + "step" => (::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("start" name) -> ::Integer + | ("end" name) -> ::Integer + | ("step" name) -> ::Integer + + def []=: + ("start" name, (::Integer | ::Float) value) -> void + | ("end" name, (::Integer | ::Float) value) -> void + | ("step" name, (::Integer | ::Float) value) -> void + end + + # 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. + class StructuredCalendarSpec < ::Google::Protobuf::AbstractMessage + + # Match seconds (0-59) + attr_accessor second(): ::Google::Protobuf::RepeatedField + def clear_second: () -> void + + # Match minutes (0-59) + attr_accessor minute(): ::Google::Protobuf::RepeatedField + def clear_minute: () -> void + + # Match hours (0-23) + attr_accessor hour(): ::Google::Protobuf::RepeatedField + def clear_hour: () -> void + + # Match days of the month (1-31) + # (-- api-linter: core::0140::prepositions=disabled + # aip.dev/not-precedent: standard name of field --) + attr_accessor day_of_month(): ::Google::Protobuf::RepeatedField + def clear_day_of_month: () -> void + + # Match months (1-12) + attr_accessor month(): ::Google::Protobuf::RepeatedField + def clear_month: () -> void + + # Match years. + attr_accessor year(): ::Google::Protobuf::RepeatedField + def clear_year: () -> void + + # Match days of the week (0-6; 0 is Sunday). + attr_accessor day_of_week(): ::Google::Protobuf::RepeatedField + def clear_day_of_week: () -> void + + # Free-form comment describing the intention of this spec. + attr_reader comment(): ::String + attr_writer comment(): ::String | ::Symbol + def clear_comment: () -> void + + type init_map = { + second: ::Array[::Temporalio::Api::Schedule::V1::Range]?, + "second" => ::Array[::Temporalio::Api::Schedule::V1::Range]?, + minute: ::Array[::Temporalio::Api::Schedule::V1::Range]?, + "minute" => ::Array[::Temporalio::Api::Schedule::V1::Range]?, + hour: ::Array[::Temporalio::Api::Schedule::V1::Range]?, + "hour" => ::Array[::Temporalio::Api::Schedule::V1::Range]?, + day_of_month: ::Array[::Temporalio::Api::Schedule::V1::Range]?, + "day_of_month" => ::Array[::Temporalio::Api::Schedule::V1::Range]?, + month: ::Array[::Temporalio::Api::Schedule::V1::Range]?, + "month" => ::Array[::Temporalio::Api::Schedule::V1::Range]?, + year: ::Array[::Temporalio::Api::Schedule::V1::Range]?, + "year" => ::Array[::Temporalio::Api::Schedule::V1::Range]?, + day_of_week: ::Array[::Temporalio::Api::Schedule::V1::Range]?, + "day_of_week" => ::Array[::Temporalio::Api::Schedule::V1::Range]?, + comment: (::String | ::Symbol)?, + "comment" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("second" name) -> ::Google::Protobuf::RepeatedField + | ("minute" name) -> ::Google::Protobuf::RepeatedField + | ("hour" name) -> ::Google::Protobuf::RepeatedField + | ("day_of_month" name) -> ::Google::Protobuf::RepeatedField + | ("month" name) -> ::Google::Protobuf::RepeatedField + | ("year" name) -> ::Google::Protobuf::RepeatedField + | ("day_of_week" name) -> ::Google::Protobuf::RepeatedField + | ("comment" name) -> ::String + + def []=: + ("second" name, ::Google::Protobuf::RepeatedField value) -> void + | ("minute" name, ::Google::Protobuf::RepeatedField value) -> void + | ("hour" name, ::Google::Protobuf::RepeatedField value) -> void + | ("day_of_month" name, ::Google::Protobuf::RepeatedField value) -> void + | ("month" name, ::Google::Protobuf::RepeatedField value) -> void + | ("year" name, ::Google::Protobuf::RepeatedField value) -> void + | ("day_of_week" name, ::Google::Protobuf::RepeatedField value) -> void + | ("comment" name, (::String | ::Symbol) value) -> void + end + + # 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. + class IntervalSpec < ::Google::Protobuf::AbstractMessage + + attr_reader interval(): ::Google::Protobuf::Duration? + attr_writer interval(): (::Google::Protobuf::Duration | ::int)? + def has_interval?: () -> bool + def clear_interval: () -> void + + attr_reader phase(): ::Google::Protobuf::Duration? + attr_writer phase(): (::Google::Protobuf::Duration | ::int)? + def has_phase?: () -> bool + def clear_phase: () -> void + + type init_map = { + interval: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "interval" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + phase: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "phase" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("interval" name) -> ::Google::Protobuf::Duration? + | ("phase" name) -> ::Google::Protobuf::Duration? + + def []=: + ("interval" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("phase" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + end + + # 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). + class ScheduleSpec < ::Google::Protobuf::AbstractMessage + + # Calendar-based specifications of times. + attr_accessor structured_calendar(): ::Google::Protobuf::RepeatedField + def clear_structured_calendar: () -> void + + # 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. + attr_accessor cron_string(): ::Google::Protobuf::RepeatedField + def clear_cron_string: () -> void + + # Calendar-based specifications of times. + attr_accessor calendar(): ::Google::Protobuf::RepeatedField + def clear_calendar: () -> void + + # Interval-based specifications of times. + attr_accessor interval(): ::Google::Protobuf::RepeatedField + def clear_interval: () -> void + + # Any timestamps matching any of exclude_* will be skipped. + # Deprecated. Use exclude_structured_calendar. + # @deprecated + attr_accessor exclude_calendar(): ::Google::Protobuf::RepeatedField + def clear_exclude_calendar: () -> void + + attr_accessor exclude_structured_calendar(): ::Google::Protobuf::RepeatedField + def clear_exclude_structured_calendar: () -> void + + # If start_time is set, any timestamps before start_time will be skipped. + # (Together, start_time and end_time make an inclusive interval.) + attr_reader start_time(): ::Google::Protobuf::Timestamp? + attr_writer start_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_start_time?: () -> bool + def clear_start_time: () -> void + + # If end_time is set, any timestamps after end_time will be skipped. + attr_reader end_time(): ::Google::Protobuf::Timestamp? + attr_writer end_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_end_time?: () -> bool + def clear_end_time: () -> void + + # All timestamps will be incremented by a random value from 0 to this + # amount of jitter. Default: 0 + attr_reader jitter(): ::Google::Protobuf::Duration? + attr_writer jitter(): (::Google::Protobuf::Duration | ::int)? + def has_jitter?: () -> bool + def clear_jitter: () -> void + + # 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). + attr_reader timezone_name(): ::String + attr_writer timezone_name(): ::String | ::Symbol + def clear_timezone_name: () -> void + + attr_accessor timezone_data(): ::String + def clear_timezone_data: () -> void + + type init_map = { + structured_calendar: ::Array[::Temporalio::Api::Schedule::V1::StructuredCalendarSpec]?, + "structured_calendar" => ::Array[::Temporalio::Api::Schedule::V1::StructuredCalendarSpec]?, + cron_string: ::Array[::String | ::Symbol]?, + "cron_string" => ::Array[::String | ::Symbol]?, + calendar: ::Array[::Temporalio::Api::Schedule::V1::CalendarSpec]?, + "calendar" => ::Array[::Temporalio::Api::Schedule::V1::CalendarSpec]?, + interval: ::Array[::Temporalio::Api::Schedule::V1::IntervalSpec]?, + "interval" => ::Array[::Temporalio::Api::Schedule::V1::IntervalSpec]?, + exclude_calendar: ::Array[::Temporalio::Api::Schedule::V1::CalendarSpec]?, + "exclude_calendar" => ::Array[::Temporalio::Api::Schedule::V1::CalendarSpec]?, + exclude_structured_calendar: ::Array[::Temporalio::Api::Schedule::V1::StructuredCalendarSpec]?, + "exclude_structured_calendar" => ::Array[::Temporalio::Api::Schedule::V1::StructuredCalendarSpec]?, + start_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "start_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + end_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "end_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + jitter: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "jitter" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + timezone_name: (::String | ::Symbol)?, + "timezone_name" => (::String | ::Symbol)?, + timezone_data: ::String?, + "timezone_data" => ::String?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("structured_calendar" name) -> ::Google::Protobuf::RepeatedField + | ("cron_string" name) -> (::Google::Protobuf::RepeatedField) + | ("calendar" name) -> ::Google::Protobuf::RepeatedField + | ("interval" name) -> ::Google::Protobuf::RepeatedField + | ("exclude_calendar" name) -> ::Google::Protobuf::RepeatedField + | ("exclude_structured_calendar" name) -> ::Google::Protobuf::RepeatedField + | ("start_time" name) -> ::Google::Protobuf::Timestamp? + | ("end_time" name) -> ::Google::Protobuf::Timestamp? + | ("jitter" name) -> ::Google::Protobuf::Duration? + | ("timezone_name" name) -> ::String + | ("timezone_data" name) -> ::String + + def []=: + ("structured_calendar" name, ::Google::Protobuf::RepeatedField value) -> void + | ("cron_string" name, (::Google::Protobuf::RepeatedField) value) -> void + | ("calendar" name, ::Google::Protobuf::RepeatedField value) -> void + | ("interval" name, ::Google::Protobuf::RepeatedField value) -> void + | ("exclude_calendar" name, ::Google::Protobuf::RepeatedField value) -> void + | ("exclude_structured_calendar" name, ::Google::Protobuf::RepeatedField value) -> void + | ("start_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("end_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("jitter" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("timezone_name" name, (::String | ::Symbol) value) -> void + | ("timezone_data" name, ::String value) -> void + end + + class SchedulePolicies < ::Google::Protobuf::AbstractMessage + + # 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. + attr_reader overlap_policy(): ::Temporalio::Api::Enums::V1::ScheduleOverlapPolicy::names | ::Integer + attr_writer overlap_policy(): ::Temporalio::Api::Enums::V1::ScheduleOverlapPolicy::names | ::Temporalio::Api::Enums::V1::ScheduleOverlapPolicy::strings | ::Integer | ::Float + attr_reader overlap_policy_const(): ::Integer + def clear_overlap_policy: () -> void + + # 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. + attr_reader catchup_window(): ::Google::Protobuf::Duration? + attr_writer catchup_window(): (::Google::Protobuf::Duration | ::int)? + def has_catchup_window?: () -> bool + def clear_catchup_window: () -> void + + # 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. + attr_accessor pause_on_failure(): bool + def clear_pause_on_failure: () -> void + + # If true, and the action would start a workflow, a timestamp will not be + # appended to the scheduled workflow id. + attr_accessor keep_original_workflow_id(): bool + def clear_keep_original_workflow_id: () -> void + + type init_map = { + overlap_policy: (::Temporalio::Api::Enums::V1::ScheduleOverlapPolicy::names | ::Temporalio::Api::Enums::V1::ScheduleOverlapPolicy::strings | ::Integer | ::Float)?, + "overlap_policy" => (::Temporalio::Api::Enums::V1::ScheduleOverlapPolicy::names | ::Temporalio::Api::Enums::V1::ScheduleOverlapPolicy::strings | ::Integer | ::Float)?, + catchup_window: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "catchup_window" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + pause_on_failure: bool?, + "pause_on_failure" => bool?, + keep_original_workflow_id: bool?, + "keep_original_workflow_id" => bool?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("overlap_policy" name) -> (::Temporalio::Api::Enums::V1::ScheduleOverlapPolicy::names | ::Integer) + | ("catchup_window" name) -> ::Google::Protobuf::Duration? + | ("pause_on_failure" name) -> bool + | ("keep_original_workflow_id" name) -> bool + + def []=: + ("overlap_policy" name, (::Temporalio::Api::Enums::V1::ScheduleOverlapPolicy::names | ::Temporalio::Api::Enums::V1::ScheduleOverlapPolicy::strings | ::Integer | ::Float) value) -> void + | ("catchup_window" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("pause_on_failure" name, bool value) -> void + | ("keep_original_workflow_id" name, bool value) -> void + end + + class ScheduleAction < ::Google::Protobuf::AbstractMessage + + # 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. + attr_accessor start_workflow(): ::Temporalio::Api::Workflow::V1::NewWorkflowExecutionInfo? + def has_start_workflow?: () -> bool + def clear_start_workflow: () -> void + + attr_reader action(): ::Temporalio::Api::Workflow::V1::NewWorkflowExecutionInfo? + def has_action?: () -> bool + def clear_action: () -> void + + type init_map = { + start_workflow: (::Temporalio::Api::Workflow::V1::NewWorkflowExecutionInfo | ::Temporalio::Api::Workflow::V1::NewWorkflowExecutionInfo::init_map)?, + "start_workflow" => (::Temporalio::Api::Workflow::V1::NewWorkflowExecutionInfo | ::Temporalio::Api::Workflow::V1::NewWorkflowExecutionInfo::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("start_workflow" name) -> ::Temporalio::Api::Workflow::V1::NewWorkflowExecutionInfo? + + def []=: + ("start_workflow" name, ::Temporalio::Api::Workflow::V1::NewWorkflowExecutionInfo? value) -> void + end + + class ScheduleActionResult < ::Google::Protobuf::AbstractMessage + + # Time that the action was taken (according to the schedule, including jitter). + attr_reader schedule_time(): ::Google::Protobuf::Timestamp? + attr_writer schedule_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_schedule_time?: () -> bool + def clear_schedule_time: () -> void + + # Time that the action was taken (real time). + attr_reader actual_time(): ::Google::Protobuf::Timestamp? + attr_writer actual_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_actual_time?: () -> bool + def clear_actual_time: () -> void + + # If action was start_workflow: + attr_accessor start_workflow_result(): ::Temporalio::Api::Common::V1::WorkflowExecution? + def has_start_workflow_result?: () -> bool + def clear_start_workflow_result: () -> void + + # If the action was start_workflow, this field will reflect an + # eventually-consistent view of the started workflow's status. + attr_reader start_workflow_status(): ::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::names | ::Integer + attr_writer start_workflow_status(): ::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::names | ::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::strings | ::Integer | ::Float + attr_reader start_workflow_status_const(): ::Integer + def clear_start_workflow_status: () -> void + + type init_map = { + schedule_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "schedule_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + actual_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "actual_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + start_workflow_result: (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + "start_workflow_result" => (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + start_workflow_status: (::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::names | ::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::strings | ::Integer | ::Float)?, + "start_workflow_status" => (::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::names | ::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::strings | ::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("schedule_time" name) -> ::Google::Protobuf::Timestamp? + | ("actual_time" name) -> ::Google::Protobuf::Timestamp? + | ("start_workflow_result" name) -> ::Temporalio::Api::Common::V1::WorkflowExecution? + | ("start_workflow_status" name) -> (::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::names | ::Integer) + + def []=: + ("schedule_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("actual_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("start_workflow_result" name, ::Temporalio::Api::Common::V1::WorkflowExecution? value) -> void + | ("start_workflow_status" name, (::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::names | ::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::strings | ::Integer | ::Float) value) -> void + end + + class ScheduleState < ::Google::Protobuf::AbstractMessage + + # 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. + attr_reader notes(): ::String + attr_writer notes(): ::String | ::Symbol + def clear_notes: () -> void + + # If true, do not take any actions based on the schedule spec. + attr_accessor paused(): bool + def clear_paused: () -> void + + # 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). + attr_accessor limited_actions(): bool + def clear_limited_actions: () -> void + + attr_reader remaining_actions(): ::Integer + attr_writer remaining_actions(): ::Integer | ::Float + def clear_remaining_actions: () -> void + + type init_map = { + notes: (::String | ::Symbol)?, + "notes" => (::String | ::Symbol)?, + paused: bool?, + "paused" => bool?, + limited_actions: bool?, + "limited_actions" => bool?, + remaining_actions: (::Integer | ::Float)?, + "remaining_actions" => (::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("notes" name) -> ::String + | ("paused" name) -> bool + | ("limited_actions" name) -> bool + | ("remaining_actions" name) -> ::Integer + + def []=: + ("notes" name, (::String | ::Symbol) value) -> void + | ("paused" name, bool value) -> void + | ("limited_actions" name, bool value) -> void + | ("remaining_actions" name, (::Integer | ::Float) value) -> void + end + + class TriggerImmediatelyRequest < ::Google::Protobuf::AbstractMessage + + # If set, override overlap policy for this one request. + attr_reader overlap_policy(): ::Temporalio::Api::Enums::V1::ScheduleOverlapPolicy::names | ::Integer + attr_writer overlap_policy(): ::Temporalio::Api::Enums::V1::ScheduleOverlapPolicy::names | ::Temporalio::Api::Enums::V1::ScheduleOverlapPolicy::strings | ::Integer | ::Float + attr_reader overlap_policy_const(): ::Integer + def clear_overlap_policy: () -> void + + # Timestamp used for the identity of the target workflow. + # If not set the default value is the current time. + attr_reader scheduled_time(): ::Google::Protobuf::Timestamp? + attr_writer scheduled_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_scheduled_time?: () -> bool + def clear_scheduled_time: () -> void + + type init_map = { + overlap_policy: (::Temporalio::Api::Enums::V1::ScheduleOverlapPolicy::names | ::Temporalio::Api::Enums::V1::ScheduleOverlapPolicy::strings | ::Integer | ::Float)?, + "overlap_policy" => (::Temporalio::Api::Enums::V1::ScheduleOverlapPolicy::names | ::Temporalio::Api::Enums::V1::ScheduleOverlapPolicy::strings | ::Integer | ::Float)?, + scheduled_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "scheduled_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("overlap_policy" name) -> (::Temporalio::Api::Enums::V1::ScheduleOverlapPolicy::names | ::Integer) + | ("scheduled_time" name) -> ::Google::Protobuf::Timestamp? + + def []=: + ("overlap_policy" name, (::Temporalio::Api::Enums::V1::ScheduleOverlapPolicy::names | ::Temporalio::Api::Enums::V1::ScheduleOverlapPolicy::strings | ::Integer | ::Float) value) -> void + | ("scheduled_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + end + + class BackfillRequest < ::Google::Protobuf::AbstractMessage + + # 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. + attr_reader start_time(): ::Google::Protobuf::Timestamp? + attr_writer start_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_start_time?: () -> bool + def clear_start_time: () -> void + + attr_reader end_time(): ::Google::Protobuf::Timestamp? + attr_writer end_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_end_time?: () -> bool + def clear_end_time: () -> void + + # If set, override overlap policy for this request. + attr_reader overlap_policy(): ::Temporalio::Api::Enums::V1::ScheduleOverlapPolicy::names | ::Integer + attr_writer overlap_policy(): ::Temporalio::Api::Enums::V1::ScheduleOverlapPolicy::names | ::Temporalio::Api::Enums::V1::ScheduleOverlapPolicy::strings | ::Integer | ::Float + attr_reader overlap_policy_const(): ::Integer + def clear_overlap_policy: () -> void + + type init_map = { + start_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "start_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + end_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "end_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + overlap_policy: (::Temporalio::Api::Enums::V1::ScheduleOverlapPolicy::names | ::Temporalio::Api::Enums::V1::ScheduleOverlapPolicy::strings | ::Integer | ::Float)?, + "overlap_policy" => (::Temporalio::Api::Enums::V1::ScheduleOverlapPolicy::names | ::Temporalio::Api::Enums::V1::ScheduleOverlapPolicy::strings | ::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("start_time" name) -> ::Google::Protobuf::Timestamp? + | ("end_time" name) -> ::Google::Protobuf::Timestamp? + | ("overlap_policy" name) -> (::Temporalio::Api::Enums::V1::ScheduleOverlapPolicy::names | ::Integer) + + def []=: + ("start_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("end_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("overlap_policy" name, (::Temporalio::Api::Enums::V1::ScheduleOverlapPolicy::names | ::Temporalio::Api::Enums::V1::ScheduleOverlapPolicy::strings | ::Integer | ::Float) value) -> void + end + + class SchedulePatch < ::Google::Protobuf::AbstractMessage + + # If set, trigger one action immediately. + attr_accessor trigger_immediately(): ::Temporalio::Api::Schedule::V1::TriggerImmediatelyRequest? + def has_trigger_immediately?: () -> bool + def clear_trigger_immediately: () -> void + + # 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. + attr_accessor backfill_request(): ::Google::Protobuf::RepeatedField + def clear_backfill_request: () -> void + + # If set, change the state to paused or unpaused (respectively) and set the + # notes field to the value of the string. + attr_reader pause(): ::String + attr_writer pause(): ::String | ::Symbol + def clear_pause: () -> void + + attr_reader unpause(): ::String + attr_writer unpause(): ::String | ::Symbol + def clear_unpause: () -> void + + type init_map = { + trigger_immediately: (::Temporalio::Api::Schedule::V1::TriggerImmediatelyRequest | ::Temporalio::Api::Schedule::V1::TriggerImmediatelyRequest::init_map)?, + "trigger_immediately" => (::Temporalio::Api::Schedule::V1::TriggerImmediatelyRequest | ::Temporalio::Api::Schedule::V1::TriggerImmediatelyRequest::init_map)?, + backfill_request: ::Array[::Temporalio::Api::Schedule::V1::BackfillRequest]?, + "backfill_request" => ::Array[::Temporalio::Api::Schedule::V1::BackfillRequest]?, + pause: (::String | ::Symbol)?, + "pause" => (::String | ::Symbol)?, + unpause: (::String | ::Symbol)?, + "unpause" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("trigger_immediately" name) -> ::Temporalio::Api::Schedule::V1::TriggerImmediatelyRequest? + | ("backfill_request" name) -> ::Google::Protobuf::RepeatedField + | ("pause" name) -> ::String + | ("unpause" name) -> ::String + + def []=: + ("trigger_immediately" name, ::Temporalio::Api::Schedule::V1::TriggerImmediatelyRequest? value) -> void + | ("backfill_request" name, ::Google::Protobuf::RepeatedField value) -> void + | ("pause" name, (::String | ::Symbol) value) -> void + | ("unpause" name, (::String | ::Symbol) value) -> void + end + + class ScheduleInfo < ::Google::Protobuf::AbstractMessage + + # Number of actions taken so far. + attr_reader action_count(): ::Integer + attr_writer action_count(): ::Integer | ::Float + def clear_action_count: () -> void + + # Number of times a scheduled action was skipped due to missing the catchup window. + attr_reader missed_catchup_window(): ::Integer + attr_writer missed_catchup_window(): ::Integer | ::Float + def clear_missed_catchup_window: () -> void + + # Number of skipped actions due to overlap. + attr_reader overlap_skipped(): ::Integer + attr_writer overlap_skipped(): ::Integer | ::Float + def clear_overlap_skipped: () -> void + + # Number of dropped actions due to buffer limit. + attr_reader buffer_dropped(): ::Integer + attr_writer buffer_dropped(): ::Integer | ::Float + def clear_buffer_dropped: () -> void + + # 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. + attr_reader buffer_size(): ::Integer + attr_writer buffer_size(): ::Integer | ::Float + def clear_buffer_size: () -> void + + # 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. + attr_accessor running_workflows(): ::Google::Protobuf::RepeatedField + def clear_running_workflows: () -> void + + # Most recent ten actual action times (including manual triggers). + attr_accessor recent_actions(): ::Google::Protobuf::RepeatedField + def clear_recent_actions: () -> void + + # Next ten scheduled action times. + attr_accessor future_action_times(): ::Google::Protobuf::RepeatedField + def clear_future_action_times: () -> void + + # Timestamps of schedule creation and last update. + attr_reader create_time(): ::Google::Protobuf::Timestamp? + attr_writer create_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_create_time?: () -> bool + def clear_create_time: () -> void + + attr_reader update_time(): ::Google::Protobuf::Timestamp? + attr_writer update_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_update_time?: () -> bool + def clear_update_time: () -> void + + # Deprecated. + # @deprecated + attr_reader invalid_schedule_error(): ::String + attr_writer invalid_schedule_error(): ::String | ::Symbol + def clear_invalid_schedule_error: () -> void + + type init_map = { + action_count: (::Integer | ::Float)?, + "action_count" => (::Integer | ::Float)?, + missed_catchup_window: (::Integer | ::Float)?, + "missed_catchup_window" => (::Integer | ::Float)?, + overlap_skipped: (::Integer | ::Float)?, + "overlap_skipped" => (::Integer | ::Float)?, + buffer_dropped: (::Integer | ::Float)?, + "buffer_dropped" => (::Integer | ::Float)?, + buffer_size: (::Integer | ::Float)?, + "buffer_size" => (::Integer | ::Float)?, + running_workflows: ::Array[::Temporalio::Api::Common::V1::WorkflowExecution]?, + "running_workflows" => ::Array[::Temporalio::Api::Common::V1::WorkflowExecution]?, + recent_actions: ::Array[::Temporalio::Api::Schedule::V1::ScheduleActionResult]?, + "recent_actions" => ::Array[::Temporalio::Api::Schedule::V1::ScheduleActionResult]?, + future_action_times: ::Array[::Google::Protobuf::Timestamp | ::Time]?, + "future_action_times" => ::Array[::Google::Protobuf::Timestamp | ::Time]?, + create_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "create_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + update_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "update_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + invalid_schedule_error: (::String | ::Symbol)?, + "invalid_schedule_error" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("action_count" name) -> ::Integer + | ("missed_catchup_window" name) -> ::Integer + | ("overlap_skipped" name) -> ::Integer + | ("buffer_dropped" name) -> ::Integer + | ("buffer_size" name) -> ::Integer + | ("running_workflows" name) -> ::Google::Protobuf::RepeatedField + | ("recent_actions" name) -> ::Google::Protobuf::RepeatedField + | ("future_action_times" name) -> (::Google::Protobuf::RepeatedField) + | ("create_time" name) -> ::Google::Protobuf::Timestamp? + | ("update_time" name) -> ::Google::Protobuf::Timestamp? + | ("invalid_schedule_error" name) -> ::String + + def []=: + ("action_count" name, (::Integer | ::Float) value) -> void + | ("missed_catchup_window" name, (::Integer | ::Float) value) -> void + | ("overlap_skipped" name, (::Integer | ::Float) value) -> void + | ("buffer_dropped" name, (::Integer | ::Float) value) -> void + | ("buffer_size" name, (::Integer | ::Float) value) -> void + | ("running_workflows" name, ::Google::Protobuf::RepeatedField value) -> void + | ("recent_actions" name, ::Google::Protobuf::RepeatedField value) -> void + | ("future_action_times" name, (::Google::Protobuf::RepeatedField) value) -> void + | ("create_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("update_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("invalid_schedule_error" name, (::String | ::Symbol) value) -> void + end + + class Schedule < ::Google::Protobuf::AbstractMessage + + attr_accessor spec(): ::Temporalio::Api::Schedule::V1::ScheduleSpec? + def has_spec?: () -> bool + def clear_spec: () -> void + + attr_accessor action(): ::Temporalio::Api::Schedule::V1::ScheduleAction? + def has_action?: () -> bool + def clear_action: () -> void + + attr_accessor policies(): ::Temporalio::Api::Schedule::V1::SchedulePolicies? + def has_policies?: () -> bool + def clear_policies: () -> void + + attr_accessor state(): ::Temporalio::Api::Schedule::V1::ScheduleState? + def has_state?: () -> bool + def clear_state: () -> void + + type init_map = { + spec: (::Temporalio::Api::Schedule::V1::ScheduleSpec | ::Temporalio::Api::Schedule::V1::ScheduleSpec::init_map)?, + "spec" => (::Temporalio::Api::Schedule::V1::ScheduleSpec | ::Temporalio::Api::Schedule::V1::ScheduleSpec::init_map)?, + action: (::Temporalio::Api::Schedule::V1::ScheduleAction | ::Temporalio::Api::Schedule::V1::ScheduleAction::init_map)?, + "action" => (::Temporalio::Api::Schedule::V1::ScheduleAction | ::Temporalio::Api::Schedule::V1::ScheduleAction::init_map)?, + policies: (::Temporalio::Api::Schedule::V1::SchedulePolicies | ::Temporalio::Api::Schedule::V1::SchedulePolicies::init_map)?, + "policies" => (::Temporalio::Api::Schedule::V1::SchedulePolicies | ::Temporalio::Api::Schedule::V1::SchedulePolicies::init_map)?, + state: (::Temporalio::Api::Schedule::V1::ScheduleState | ::Temporalio::Api::Schedule::V1::ScheduleState::init_map)?, + "state" => (::Temporalio::Api::Schedule::V1::ScheduleState | ::Temporalio::Api::Schedule::V1::ScheduleState::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("spec" name) -> ::Temporalio::Api::Schedule::V1::ScheduleSpec? + | ("action" name) -> ::Temporalio::Api::Schedule::V1::ScheduleAction? + | ("policies" name) -> ::Temporalio::Api::Schedule::V1::SchedulePolicies? + | ("state" name) -> ::Temporalio::Api::Schedule::V1::ScheduleState? + + def []=: + ("spec" name, ::Temporalio::Api::Schedule::V1::ScheduleSpec? value) -> void + | ("action" name, ::Temporalio::Api::Schedule::V1::ScheduleAction? value) -> void + | ("policies" name, ::Temporalio::Api::Schedule::V1::SchedulePolicies? value) -> void + | ("state" name, ::Temporalio::Api::Schedule::V1::ScheduleState? value) -> void + end + + # ScheduleListInfo is an abbreviated set of values from Schedule and ScheduleInfo + # that's returned in ListSchedules. + class ScheduleListInfo < ::Google::Protobuf::AbstractMessage + + # From spec: + # Some fields are dropped from this copy of spec: timezone_data + attr_accessor spec(): ::Temporalio::Api::Schedule::V1::ScheduleSpec? + def has_spec?: () -> bool + def clear_spec: () -> void + + # 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: + attr_accessor workflow_type(): ::Temporalio::Api::Common::V1::WorkflowType? + def has_workflow_type?: () -> bool + def clear_workflow_type: () -> void + + # From state: + attr_reader notes(): ::String + attr_writer notes(): ::String | ::Symbol + def clear_notes: () -> void + + attr_accessor paused(): bool + def clear_paused: () -> void + + # From info (maybe fewer entries): + attr_accessor recent_actions(): ::Google::Protobuf::RepeatedField + def clear_recent_actions: () -> void + + attr_accessor future_action_times(): ::Google::Protobuf::RepeatedField + def clear_future_action_times: () -> void + + type init_map = { + spec: (::Temporalio::Api::Schedule::V1::ScheduleSpec | ::Temporalio::Api::Schedule::V1::ScheduleSpec::init_map)?, + "spec" => (::Temporalio::Api::Schedule::V1::ScheduleSpec | ::Temporalio::Api::Schedule::V1::ScheduleSpec::init_map)?, + workflow_type: (::Temporalio::Api::Common::V1::WorkflowType | ::Temporalio::Api::Common::V1::WorkflowType::init_map)?, + "workflow_type" => (::Temporalio::Api::Common::V1::WorkflowType | ::Temporalio::Api::Common::V1::WorkflowType::init_map)?, + notes: (::String | ::Symbol)?, + "notes" => (::String | ::Symbol)?, + paused: bool?, + "paused" => bool?, + recent_actions: ::Array[::Temporalio::Api::Schedule::V1::ScheduleActionResult]?, + "recent_actions" => ::Array[::Temporalio::Api::Schedule::V1::ScheduleActionResult]?, + future_action_times: ::Array[::Google::Protobuf::Timestamp | ::Time]?, + "future_action_times" => ::Array[::Google::Protobuf::Timestamp | ::Time]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("spec" name) -> ::Temporalio::Api::Schedule::V1::ScheduleSpec? + | ("workflow_type" name) -> ::Temporalio::Api::Common::V1::WorkflowType? + | ("notes" name) -> ::String + | ("paused" name) -> bool + | ("recent_actions" name) -> ::Google::Protobuf::RepeatedField + | ("future_action_times" name) -> (::Google::Protobuf::RepeatedField) + + def []=: + ("spec" name, ::Temporalio::Api::Schedule::V1::ScheduleSpec? value) -> void + | ("workflow_type" name, ::Temporalio::Api::Common::V1::WorkflowType? value) -> void + | ("notes" name, (::String | ::Symbol) value) -> void + | ("paused" name, bool value) -> void + | ("recent_actions" name, ::Google::Protobuf::RepeatedField value) -> void + | ("future_action_times" name, (::Google::Protobuf::RepeatedField) value) -> void + end + + # ScheduleListEntry is returned by ListSchedules. + class ScheduleListEntry < ::Google::Protobuf::AbstractMessage + + attr_reader schedule_id(): ::String + attr_writer schedule_id(): ::String | ::Symbol + def clear_schedule_id: () -> void + + attr_accessor memo(): ::Temporalio::Api::Common::V1::Memo? + def has_memo?: () -> bool + def clear_memo: () -> void + + attr_accessor search_attributes(): ::Temporalio::Api::Common::V1::SearchAttributes? + def has_search_attributes?: () -> bool + def clear_search_attributes: () -> void + + attr_accessor info(): ::Temporalio::Api::Schedule::V1::ScheduleListInfo? + def has_info?: () -> bool + def clear_info: () -> void + + type init_map = { + schedule_id: (::String | ::Symbol)?, + "schedule_id" => (::String | ::Symbol)?, + memo: (::Temporalio::Api::Common::V1::Memo | ::Temporalio::Api::Common::V1::Memo::init_map)?, + "memo" => (::Temporalio::Api::Common::V1::Memo | ::Temporalio::Api::Common::V1::Memo::init_map)?, + search_attributes: (::Temporalio::Api::Common::V1::SearchAttributes | ::Temporalio::Api::Common::V1::SearchAttributes::init_map)?, + "search_attributes" => (::Temporalio::Api::Common::V1::SearchAttributes | ::Temporalio::Api::Common::V1::SearchAttributes::init_map)?, + info: (::Temporalio::Api::Schedule::V1::ScheduleListInfo | ::Temporalio::Api::Schedule::V1::ScheduleListInfo::init_map)?, + "info" => (::Temporalio::Api::Schedule::V1::ScheduleListInfo | ::Temporalio::Api::Schedule::V1::ScheduleListInfo::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("schedule_id" name) -> ::String + | ("memo" name) -> ::Temporalio::Api::Common::V1::Memo? + | ("search_attributes" name) -> ::Temporalio::Api::Common::V1::SearchAttributes? + | ("info" name) -> ::Temporalio::Api::Schedule::V1::ScheduleListInfo? + + def []=: + ("schedule_id" name, (::String | ::Symbol) value) -> void + | ("memo" name, ::Temporalio::Api::Common::V1::Memo? value) -> void + | ("search_attributes" name, ::Temporalio::Api::Common::V1::SearchAttributes? value) -> void + | ("info" name, ::Temporalio::Api::Schedule::V1::ScheduleListInfo? value) -> void + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/api/sdk/v1/enhanced_stack_trace.rbs b/temporalio/sig/temporalio/api/sdk/v1/enhanced_stack_trace.rbs new file mode 100644 index 00000000..62e78d7d --- /dev/null +++ b/temporalio/sig/temporalio/api/sdk/v1/enhanced_stack_trace.rbs @@ -0,0 +1,210 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/api/sdk/v1/enhanced_stack_trace.proto + +module Temporalio + module Api + module Sdk + module V1 + # Internal structure used to create worker stack traces with references to code. + class EnhancedStackTrace < ::Google::Protobuf::AbstractMessage + + # Information pertaining to the SDK that the trace has been captured from. + attr_accessor sdk(): ::Temporalio::Api::Sdk::V1::StackTraceSDKInfo? + def has_sdk?: () -> bool + def clear_sdk: () -> void + + # Mapping of file path to file contents. + attr_accessor sources(): ::Google::Protobuf::Map[::String, ::Temporalio::Api::Sdk::V1::StackTraceFileSlice] + def clear_sources: () -> void + + # Collection of stacks captured. + attr_accessor stacks(): ::Google::Protobuf::RepeatedField + def clear_stacks: () -> void + + type init_map = { + sdk: (::Temporalio::Api::Sdk::V1::StackTraceSDKInfo | ::Temporalio::Api::Sdk::V1::StackTraceSDKInfo::init_map)?, + "sdk" => (::Temporalio::Api::Sdk::V1::StackTraceSDKInfo | ::Temporalio::Api::Sdk::V1::StackTraceSDKInfo::init_map)?, + sources: ::Hash[::String | ::Symbol, ::Temporalio::Api::Sdk::V1::StackTraceFileSlice]?, + "sources" => ::Hash[::String | ::Symbol, ::Temporalio::Api::Sdk::V1::StackTraceFileSlice]?, + stacks: ::Array[::Temporalio::Api::Sdk::V1::StackTrace]?, + "stacks" => ::Array[::Temporalio::Api::Sdk::V1::StackTrace]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("sdk" name) -> ::Temporalio::Api::Sdk::V1::StackTraceSDKInfo? + | ("sources" name) -> (::Google::Protobuf::Map[::String, ::Temporalio::Api::Sdk::V1::StackTraceFileSlice]) + | ("stacks" name) -> ::Google::Protobuf::RepeatedField + + def []=: + ("sdk" name, ::Temporalio::Api::Sdk::V1::StackTraceSDKInfo? value) -> void + | ("sources" name, (::Google::Protobuf::Map[::String, ::Temporalio::Api::Sdk::V1::StackTraceFileSlice]) value) -> void + | ("stacks" name, ::Google::Protobuf::RepeatedField value) -> void + end + + # 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. --) + class StackTraceSDKInfo < ::Google::Protobuf::AbstractMessage + + # Name of the SDK + attr_reader name(): ::String + attr_writer name(): ::String | ::Symbol + def clear_name: () -> void + + # Version string of the SDK + attr_reader version(): ::String + attr_writer version(): ::String | ::Symbol + def clear_version: () -> void + + type init_map = { + name: (::String | ::Symbol)?, + "name" => (::String | ::Symbol)?, + version: (::String | ::Symbol)?, + "version" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("name" name) -> ::String + | ("version" name) -> ::String + + def []=: + ("name" name, (::String | ::Symbol) value) -> void + | ("version" name, (::String | ::Symbol) value) -> void + end + + # "Slice" of a file starting at line_offset -- a line offset and code fragment corresponding to the worker's stack. + class StackTraceFileSlice < ::Google::Protobuf::AbstractMessage + + # 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. --) + attr_reader line_offset(): ::Integer + attr_writer line_offset(): ::Integer | ::Float + def clear_line_offset: () -> void + + # Slice of a file with the respective OS-specific line terminator. + attr_reader content(): ::String + attr_writer content(): ::String | ::Symbol + def clear_content: () -> void + + type init_map = { + line_offset: (::Integer | ::Float)?, + "line_offset" => (::Integer | ::Float)?, + content: (::String | ::Symbol)?, + "content" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("line_offset" name) -> ::Integer + | ("content" name) -> ::String + + def []=: + ("line_offset" name, (::Integer | ::Float) value) -> void + | ("content" name, (::String | ::Symbol) value) -> void + end + + # 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 + class StackTraceFileLocation < ::Google::Protobuf::AbstractMessage + + # Path to source file (absolute or relative). + # If the paths are relative, ensure that they are all relative to the same root. + attr_reader file_path(): ::String + attr_writer file_path(): ::String | ::Symbol + def clear_file_path: () -> void + + # Optional; If possible, SDK should send this -- this is required for displaying the code location. + # If not provided, set to -1. + attr_reader line(): ::Integer + attr_writer line(): ::Integer | ::Float + def clear_line: () -> void + + # Optional; if possible, SDK should send this. + # If not provided, set to -1. + attr_reader column(): ::Integer + attr_writer column(): ::Integer | ::Float + def clear_column: () -> void + + # Function name this line belongs to, if applicable. + # Used for falling back to stack trace view. + attr_reader function_name(): ::String + attr_writer function_name(): ::String | ::Symbol + def clear_function_name: () -> void + + # Flag to communicate whether a location should be hidden by default in the stack view. + attr_accessor internal_code(): bool + def clear_internal_code: () -> void + + type init_map = { + file_path: (::String | ::Symbol)?, + "file_path" => (::String | ::Symbol)?, + line: (::Integer | ::Float)?, + "line" => (::Integer | ::Float)?, + column: (::Integer | ::Float)?, + "column" => (::Integer | ::Float)?, + function_name: (::String | ::Symbol)?, + "function_name" => (::String | ::Symbol)?, + internal_code: bool?, + "internal_code" => bool?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("file_path" name) -> ::String + | ("line" name) -> ::Integer + | ("column" name) -> ::Integer + | ("function_name" name) -> ::String + | ("internal_code" name) -> bool + + def []=: + ("file_path" name, (::String | ::Symbol) value) -> void + | ("line" name, (::Integer | ::Float) value) -> void + | ("column" name, (::Integer | ::Float) value) -> void + | ("function_name" name, (::String | ::Symbol) value) -> void + | ("internal_code" name, bool value) -> void + end + + # Collection of FileLocation messages from a single stack. + class StackTrace < ::Google::Protobuf::AbstractMessage + + # Collection of `FileLocation`s, each for a stack frame that comprise a stack trace. + attr_accessor locations(): ::Google::Protobuf::RepeatedField + def clear_locations: () -> void + + type init_map = { + locations: ::Array[::Temporalio::Api::Sdk::V1::StackTraceFileLocation]?, + "locations" => ::Array[::Temporalio::Api::Sdk::V1::StackTraceFileLocation]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("locations" name) -> ::Google::Protobuf::RepeatedField + + def []=: + ("locations" name, ::Google::Protobuf::RepeatedField value) -> void + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/api/sdk/v1/task_complete_metadata.rbs b/temporalio/sig/temporalio/api/sdk/v1/task_complete_metadata.rbs new file mode 100644 index 00000000..6bdcf92f --- /dev/null +++ b/temporalio/sig/temporalio/api/sdk/v1/task_complete_metadata.rbs @@ -0,0 +1,92 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/api/sdk/v1/task_complete_metadata.proto + +module Temporalio + module Api + module Sdk + module V1 + class WorkflowTaskCompletedMetadata < ::Google::Protobuf::AbstractMessage + + # 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. --) + attr_accessor core_used_flags(): ::Google::Protobuf::RepeatedField + def clear_core_used_flags: () -> void + + # 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. --) + attr_accessor lang_used_flags(): ::Google::Protobuf::RepeatedField + def clear_lang_used_flags: () -> void + + # 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. --) + attr_reader sdk_name(): ::String + attr_writer sdk_name(): ::String | ::Symbol + def clear_sdk_name: () -> void + + # 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). + attr_reader sdk_version(): ::String + attr_writer sdk_version(): ::String | ::Symbol + def clear_sdk_version: () -> void + + type init_map = { + core_used_flags: ::Array[::Integer | ::Float]?, + "core_used_flags" => ::Array[::Integer | ::Float]?, + lang_used_flags: ::Array[::Integer | ::Float]?, + "lang_used_flags" => ::Array[::Integer | ::Float]?, + sdk_name: (::String | ::Symbol)?, + "sdk_name" => (::String | ::Symbol)?, + sdk_version: (::String | ::Symbol)?, + "sdk_version" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("core_used_flags" name) -> (::Google::Protobuf::RepeatedField) + | ("lang_used_flags" name) -> (::Google::Protobuf::RepeatedField) + | ("sdk_name" name) -> ::String + | ("sdk_version" name) -> ::String + + def []=: + ("core_used_flags" name, (::Google::Protobuf::RepeatedField) value) -> void + | ("lang_used_flags" name, (::Google::Protobuf::RepeatedField) value) -> void + | ("sdk_name" name, (::String | ::Symbol) value) -> void + | ("sdk_version" name, (::String | ::Symbol) value) -> void + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/api/sdk/v1/user_metadata.rbs b/temporalio/sig/temporalio/api/sdk/v1/user_metadata.rbs new file mode 100644 index 00000000..c0f00569 --- /dev/null +++ b/temporalio/sig/temporalio/api/sdk/v1/user_metadata.rbs @@ -0,0 +1,58 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/api/sdk/v1/user_metadata.proto + +module Temporalio + module Api + module Sdk + module V1 + # Information a user can set, often for use by user interfaces. + class UserMetadata < ::Google::Protobuf::AbstractMessage + + # 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. + attr_accessor summary(): ::Temporalio::Api::Common::V1::Payload? + def has_summary?: () -> bool + def clear_summary: () -> void + + # 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. + attr_accessor details(): ::Temporalio::Api::Common::V1::Payload? + def has_details?: () -> bool + def clear_details: () -> void + + type init_map = { + summary: (::Temporalio::Api::Common::V1::Payload | ::Temporalio::Api::Common::V1::Payload::init_map)?, + "summary" => (::Temporalio::Api::Common::V1::Payload | ::Temporalio::Api::Common::V1::Payload::init_map)?, + details: (::Temporalio::Api::Common::V1::Payload | ::Temporalio::Api::Common::V1::Payload::init_map)?, + "details" => (::Temporalio::Api::Common::V1::Payload | ::Temporalio::Api::Common::V1::Payload::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("summary" name) -> ::Temporalio::Api::Common::V1::Payload? + | ("details" name) -> ::Temporalio::Api::Common::V1::Payload? + + def []=: + ("summary" name, ::Temporalio::Api::Common::V1::Payload? value) -> void + | ("details" name, ::Temporalio::Api::Common::V1::Payload? value) -> void + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/api/sdk/v1/worker_config.rbs b/temporalio/sig/temporalio/api/sdk/v1/worker_config.rbs new file mode 100644 index 00000000..a9833098 --- /dev/null +++ b/temporalio/sig/temporalio/api/sdk/v1/worker_config.rbs @@ -0,0 +1,122 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/api/sdk/v1/worker_config.proto + +module Temporalio + module Api + module Sdk + module V1 + class WorkerConfig < ::Google::Protobuf::AbstractMessage + class SimplePollerBehavior < ::Google::Protobuf::AbstractMessage + + attr_reader max_pollers(): ::Integer + attr_writer max_pollers(): ::Integer | ::Float + def clear_max_pollers: () -> void + + type init_map = { + max_pollers: (::Integer | ::Float)?, + "max_pollers" => (::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("max_pollers" name) -> ::Integer + + def []=: + ("max_pollers" name, (::Integer | ::Float) value) -> void + end + + class AutoscalingPollerBehavior < ::Google::Protobuf::AbstractMessage + + # At least this many poll calls will always be attempted (assuming slots are available). + # Cannot be zero. + attr_reader min_pollers(): ::Integer + attr_writer min_pollers(): ::Integer | ::Float + def clear_min_pollers: () -> void + + # At most this many poll calls will ever be open at once. Must be >= `minimum`. + attr_reader max_pollers(): ::Integer + attr_writer max_pollers(): ::Integer | ::Float + def clear_max_pollers: () -> void + + # This many polls will be attempted initially before scaling kicks in. Must be between + # `minimum` and `maximum`. + attr_reader initial_pollers(): ::Integer + attr_writer initial_pollers(): ::Integer | ::Float + def clear_initial_pollers: () -> void + + type init_map = { + min_pollers: (::Integer | ::Float)?, + "min_pollers" => (::Integer | ::Float)?, + max_pollers: (::Integer | ::Float)?, + "max_pollers" => (::Integer | ::Float)?, + initial_pollers: (::Integer | ::Float)?, + "initial_pollers" => (::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("min_pollers" name) -> ::Integer + | ("max_pollers" name) -> ::Integer + | ("initial_pollers" name) -> ::Integer + + def []=: + ("min_pollers" name, (::Integer | ::Float) value) -> void + | ("max_pollers" name, (::Integer | ::Float) value) -> void + | ("initial_pollers" name, (::Integer | ::Float) value) -> void + end + + attr_reader workflow_cache_size(): ::Integer + attr_writer workflow_cache_size(): ::Integer | ::Float + def clear_workflow_cache_size: () -> void + + attr_accessor simple_poller_behavior(): ::Temporalio::Api::Sdk::V1::WorkerConfig::SimplePollerBehavior? + def has_simple_poller_behavior?: () -> bool + def clear_simple_poller_behavior: () -> void + + attr_accessor autoscaling_poller_behavior(): ::Temporalio::Api::Sdk::V1::WorkerConfig::AutoscalingPollerBehavior? + def has_autoscaling_poller_behavior?: () -> bool + def clear_autoscaling_poller_behavior: () -> void + + attr_reader poller_behavior(): (::Temporalio::Api::Sdk::V1::WorkerConfig::SimplePollerBehavior | ::Temporalio::Api::Sdk::V1::WorkerConfig::AutoscalingPollerBehavior)? + def has_poller_behavior?: () -> bool + def clear_poller_behavior: () -> void + + type init_map = { + workflow_cache_size: (::Integer | ::Float)?, + "workflow_cache_size" => (::Integer | ::Float)?, + simple_poller_behavior: (::Temporalio::Api::Sdk::V1::WorkerConfig::SimplePollerBehavior | ::Temporalio::Api::Sdk::V1::WorkerConfig::SimplePollerBehavior::init_map)?, + "simple_poller_behavior" => (::Temporalio::Api::Sdk::V1::WorkerConfig::SimplePollerBehavior | ::Temporalio::Api::Sdk::V1::WorkerConfig::SimplePollerBehavior::init_map)?, + autoscaling_poller_behavior: (::Temporalio::Api::Sdk::V1::WorkerConfig::AutoscalingPollerBehavior | ::Temporalio::Api::Sdk::V1::WorkerConfig::AutoscalingPollerBehavior::init_map)?, + "autoscaling_poller_behavior" => (::Temporalio::Api::Sdk::V1::WorkerConfig::AutoscalingPollerBehavior | ::Temporalio::Api::Sdk::V1::WorkerConfig::AutoscalingPollerBehavior::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("workflow_cache_size" name) -> ::Integer + | ("simple_poller_behavior" name) -> ::Temporalio::Api::Sdk::V1::WorkerConfig::SimplePollerBehavior? + | ("autoscaling_poller_behavior" name) -> ::Temporalio::Api::Sdk::V1::WorkerConfig::AutoscalingPollerBehavior? + + def []=: + ("workflow_cache_size" name, (::Integer | ::Float) value) -> void + | ("simple_poller_behavior" name, ::Temporalio::Api::Sdk::V1::WorkerConfig::SimplePollerBehavior? value) -> void + | ("autoscaling_poller_behavior" name, ::Temporalio::Api::Sdk::V1::WorkerConfig::AutoscalingPollerBehavior? value) -> void + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/api/sdk/v1/workflow_metadata.rbs b/temporalio/sig/temporalio/api/sdk/v1/workflow_metadata.rbs new file mode 100644 index 00000000..303e529d --- /dev/null +++ b/temporalio/sig/temporalio/api/sdk/v1/workflow_metadata.rbs @@ -0,0 +1,138 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/api/sdk/v1/workflow_metadata.proto + +module Temporalio + module Api + module Sdk + module V1 + # The name of the query to retrieve this information is `__temporal_workflow_metadata`. + class WorkflowMetadata < ::Google::Protobuf::AbstractMessage + + # Metadata provided at declaration or creation time. + attr_accessor definition(): ::Temporalio::Api::Sdk::V1::WorkflowDefinition? + def has_definition?: () -> bool + def clear_definition: () -> void + + # 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. + attr_reader current_details(): ::String + attr_writer current_details(): ::String | ::Symbol + def clear_current_details: () -> void + + type init_map = { + definition: (::Temporalio::Api::Sdk::V1::WorkflowDefinition | ::Temporalio::Api::Sdk::V1::WorkflowDefinition::init_map)?, + "definition" => (::Temporalio::Api::Sdk::V1::WorkflowDefinition | ::Temporalio::Api::Sdk::V1::WorkflowDefinition::init_map)?, + current_details: (::String | ::Symbol)?, + "current_details" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("definition" name) -> ::Temporalio::Api::Sdk::V1::WorkflowDefinition? + | ("current_details" name) -> ::String + + def []=: + ("definition" name, ::Temporalio::Api::Sdk::V1::WorkflowDefinition? value) -> void + | ("current_details" name, (::String | ::Symbol) value) -> void + end + + # (-- api-linter: core::0203::optional=disabled --) + class WorkflowDefinition < ::Google::Protobuf::AbstractMessage + + # A name scoped by the task queue that maps to this workflow definition. + # If missing, this workflow is a dynamic workflow. + attr_reader type(): ::String + attr_writer type(): ::String | ::Symbol + def clear_type: () -> void + + # Query definitions, sorted by name. + attr_accessor query_definitions(): ::Google::Protobuf::RepeatedField + def clear_query_definitions: () -> void + + # Signal definitions, sorted by name. + attr_accessor signal_definitions(): ::Google::Protobuf::RepeatedField + def clear_signal_definitions: () -> void + + # Update definitions, sorted by name. + attr_accessor update_definitions(): ::Google::Protobuf::RepeatedField + def clear_update_definitions: () -> void + + type init_map = { + type: (::String | ::Symbol)?, + "type" => (::String | ::Symbol)?, + query_definitions: ::Array[::Temporalio::Api::Sdk::V1::WorkflowInteractionDefinition]?, + "query_definitions" => ::Array[::Temporalio::Api::Sdk::V1::WorkflowInteractionDefinition]?, + signal_definitions: ::Array[::Temporalio::Api::Sdk::V1::WorkflowInteractionDefinition]?, + "signal_definitions" => ::Array[::Temporalio::Api::Sdk::V1::WorkflowInteractionDefinition]?, + update_definitions: ::Array[::Temporalio::Api::Sdk::V1::WorkflowInteractionDefinition]?, + "update_definitions" => ::Array[::Temporalio::Api::Sdk::V1::WorkflowInteractionDefinition]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("type" name) -> ::String + | ("query_definitions" name) -> ::Google::Protobuf::RepeatedField + | ("signal_definitions" name) -> ::Google::Protobuf::RepeatedField + | ("update_definitions" name) -> ::Google::Protobuf::RepeatedField + + def []=: + ("type" name, (::String | ::Symbol) value) -> void + | ("query_definitions" name, ::Google::Protobuf::RepeatedField value) -> void + | ("signal_definitions" name, ::Google::Protobuf::RepeatedField value) -> void + | ("update_definitions" name, ::Google::Protobuf::RepeatedField value) -> void + end + + # (-- api-linter: core::0123::resource-annotation=disabled + # aip.dev/not-precedent: The `name` field is optional. --) + # (-- api-linter: core::0203::optional=disabled --) + class WorkflowInteractionDefinition < ::Google::Protobuf::AbstractMessage + + # 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. + attr_reader name(): ::String + attr_writer name(): ::String | ::Symbol + def clear_name: () -> void + + # 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. + attr_reader description(): ::String + attr_writer description(): ::String | ::Symbol + def clear_description: () -> void + + type init_map = { + name: (::String | ::Symbol)?, + "name" => (::String | ::Symbol)?, + description: (::String | ::Symbol)?, + "description" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("name" name) -> ::String + | ("description" name) -> ::String + + def []=: + ("name" name, (::String | ::Symbol) value) -> void + | ("description" name, (::String | ::Symbol) value) -> void + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/api/taskqueue/v1/message.rbs b/temporalio/sig/temporalio/api/taskqueue/v1/message.rbs new file mode 100644 index 00000000..8331acc7 --- /dev/null +++ b/temporalio/sig/temporalio/api/taskqueue/v1/message.rbs @@ -0,0 +1,986 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/api/taskqueue/v1/message.proto + +module Temporalio + module Api + module TaskQueue + module V1 + # See https://docs.temporal.io/docs/concepts/task-queues/ + class TaskQueue < ::Google::Protobuf::AbstractMessage + + attr_reader name(): ::String + attr_writer name(): ::String | ::Symbol + def clear_name: () -> void + + # Default: TASK_QUEUE_KIND_NORMAL. + attr_reader kind(): ::Temporalio::Api::Enums::V1::TaskQueueKind::names | ::Integer + attr_writer kind(): ::Temporalio::Api::Enums::V1::TaskQueueKind::names | ::Temporalio::Api::Enums::V1::TaskQueueKind::strings | ::Integer | ::Float + attr_reader kind_const(): ::Integer + def clear_kind: () -> void + + # Iff kind == TASK_QUEUE_KIND_STICKY, then this field contains the name of + # the normal task queue that the sticky worker is running on. + attr_reader normal_name(): ::String + attr_writer normal_name(): ::String | ::Symbol + def clear_normal_name: () -> void + + type init_map = { + name: (::String | ::Symbol)?, + "name" => (::String | ::Symbol)?, + kind: (::Temporalio::Api::Enums::V1::TaskQueueKind::names | ::Temporalio::Api::Enums::V1::TaskQueueKind::strings | ::Integer | ::Float)?, + "kind" => (::Temporalio::Api::Enums::V1::TaskQueueKind::names | ::Temporalio::Api::Enums::V1::TaskQueueKind::strings | ::Integer | ::Float)?, + normal_name: (::String | ::Symbol)?, + "normal_name" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("name" name) -> ::String + | ("kind" name) -> (::Temporalio::Api::Enums::V1::TaskQueueKind::names | ::Integer) + | ("normal_name" name) -> ::String + + def []=: + ("name" name, (::String | ::Symbol) value) -> void + | ("kind" name, (::Temporalio::Api::Enums::V1::TaskQueueKind::names | ::Temporalio::Api::Enums::V1::TaskQueueKind::strings | ::Integer | ::Float) value) -> void + | ("normal_name" name, (::String | ::Symbol) value) -> void + end + + # Only applies to activity task queues + class TaskQueueMetadata < ::Google::Protobuf::AbstractMessage + + # Allows throttling dispatch of tasks from this queue + attr_accessor max_tasks_per_second(): ::Google::Protobuf::DoubleValue? + attr_reader max_tasks_per_second_as_value(): ::Float? + attr_writer max_tasks_per_second_as_value(): (::Float | ::Integer)? + def has_max_tasks_per_second?: () -> bool + def clear_max_tasks_per_second: () -> void + + type init_map = { + max_tasks_per_second: (::Google::Protobuf::DoubleValue | ::Google::Protobuf::DoubleValue)?, + "max_tasks_per_second" => (::Google::Protobuf::DoubleValue | ::Google::Protobuf::DoubleValue)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("max_tasks_per_second" name) -> ::Google::Protobuf::DoubleValue? + + def []=: + ("max_tasks_per_second" name, ::Google::Protobuf::DoubleValue? value) -> void + end + + # Experimental. Worker Deployments are experimental and might significantly change in the future. + class TaskQueueVersioningInfo < ::Google::Protobuf::AbstractMessage + + # 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`). + attr_accessor current_deployment_version(): ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? + def has_current_deployment_version?: () -> bool + def clear_current_deployment_version: () -> void + + # Deprecated. Use `current_deployment_version`. + # @deprecated + attr_reader current_version(): ::String + attr_writer current_version(): ::String | ::Symbol + def clear_current_version: () -> void + + # 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. + attr_accessor ramping_deployment_version(): ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? + def has_ramping_deployment_version?: () -> bool + def clear_ramping_deployment_version: () -> void + + # Deprecated. Use `ramping_deployment_version`. + # @deprecated + attr_reader ramping_version(): ::String + attr_writer ramping_version(): ::String | ::Symbol + def clear_ramping_version: () -> void + + # 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. + attr_reader ramping_version_percentage(): ::Float + attr_writer ramping_version_percentage(): ::Float | ::Integer + def clear_ramping_version_percentage: () -> void + + # Last time versioning information of this Task Queue changed. + attr_reader update_time(): ::Google::Protobuf::Timestamp? + attr_writer update_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_update_time?: () -> bool + def clear_update_time: () -> void + + type init_map = { + current_deployment_version: (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?, + "current_deployment_version" => (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?, + current_version: (::String | ::Symbol)?, + "current_version" => (::String | ::Symbol)?, + ramping_deployment_version: (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?, + "ramping_deployment_version" => (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?, + ramping_version: (::String | ::Symbol)?, + "ramping_version" => (::String | ::Symbol)?, + ramping_version_percentage: (::Float | ::Integer)?, + "ramping_version_percentage" => (::Float | ::Integer)?, + update_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "update_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("current_deployment_version" name) -> ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? + | ("current_version" name) -> ::String + | ("ramping_deployment_version" name) -> ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? + | ("ramping_version" name) -> ::String + | ("ramping_version_percentage" name) -> ::Float + | ("update_time" name) -> ::Google::Protobuf::Timestamp? + + def []=: + ("current_deployment_version" name, ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? value) -> void + | ("current_version" name, (::String | ::Symbol) value) -> void + | ("ramping_deployment_version" name, ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? value) -> void + | ("ramping_version" name, (::String | ::Symbol) value) -> void + | ("ramping_version_percentage" name, (::Float | ::Integer) value) -> void + | ("update_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + end + + # Used for specifying versions the caller is interested in. + class TaskQueueVersionSelection < ::Google::Protobuf::AbstractMessage + + # Include specific Build IDs. + attr_accessor build_ids(): ::Google::Protobuf::RepeatedField + def clear_build_ids: () -> void + + # Include the unversioned queue. + attr_accessor unversioned(): bool + def clear_unversioned: () -> void + + # 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. + attr_accessor all_active(): bool + def clear_all_active: () -> void + + type init_map = { + build_ids: ::Array[::String | ::Symbol]?, + "build_ids" => ::Array[::String | ::Symbol]?, + unversioned: bool?, + "unversioned" => bool?, + all_active: bool?, + "all_active" => bool?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("build_ids" name) -> (::Google::Protobuf::RepeatedField) + | ("unversioned" name) -> bool + | ("all_active" name) -> bool + + def []=: + ("build_ids" name, (::Google::Protobuf::RepeatedField) value) -> void + | ("unversioned" name, bool value) -> void + | ("all_active" name, bool value) -> void + end + + class TaskQueueVersionInfo < ::Google::Protobuf::AbstractMessage + + # Task Queue info per Task Type. Key is the numerical value of the temporal.api.enums.v1.TaskQueueType enum. + attr_accessor types_info(): ::Google::Protobuf::Map[::Integer, ::Temporalio::Api::TaskQueue::V1::TaskQueueTypeInfo] + def clear_types_info: () -> void + + # 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. + attr_reader task_reachability(): ::Temporalio::Api::Enums::V1::BuildIdTaskReachability::names | ::Integer + attr_writer task_reachability(): ::Temporalio::Api::Enums::V1::BuildIdTaskReachability::names | ::Temporalio::Api::Enums::V1::BuildIdTaskReachability::strings | ::Integer | ::Float + attr_reader task_reachability_const(): ::Integer + def clear_task_reachability: () -> void + + type init_map = { + types_info: ::Hash[::Integer | ::Float, ::Temporalio::Api::TaskQueue::V1::TaskQueueTypeInfo]?, + "types_info" => ::Hash[::Integer | ::Float, ::Temporalio::Api::TaskQueue::V1::TaskQueueTypeInfo]?, + task_reachability: (::Temporalio::Api::Enums::V1::BuildIdTaskReachability::names | ::Temporalio::Api::Enums::V1::BuildIdTaskReachability::strings | ::Integer | ::Float)?, + "task_reachability" => (::Temporalio::Api::Enums::V1::BuildIdTaskReachability::names | ::Temporalio::Api::Enums::V1::BuildIdTaskReachability::strings | ::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("types_info" name) -> (::Google::Protobuf::Map[::Integer, ::Temporalio::Api::TaskQueue::V1::TaskQueueTypeInfo]) + | ("task_reachability" name) -> (::Temporalio::Api::Enums::V1::BuildIdTaskReachability::names | ::Integer) + + def []=: + ("types_info" name, (::Google::Protobuf::Map[::Integer, ::Temporalio::Api::TaskQueue::V1::TaskQueueTypeInfo]) value) -> void + | ("task_reachability" name, (::Temporalio::Api::Enums::V1::BuildIdTaskReachability::names | ::Temporalio::Api::Enums::V1::BuildIdTaskReachability::strings | ::Integer | ::Float) value) -> void + end + + class TaskQueueTypeInfo < ::Google::Protobuf::AbstractMessage + + # Unversioned workers (with `useVersioning=false`) are reported in unversioned result even if they set a Build ID. + attr_accessor pollers(): ::Google::Protobuf::RepeatedField + def clear_pollers: () -> void + + attr_accessor stats(): ::Temporalio::Api::TaskQueue::V1::TaskQueueStats? + def has_stats?: () -> bool + def clear_stats: () -> void + + type init_map = { + pollers: ::Array[::Temporalio::Api::TaskQueue::V1::PollerInfo]?, + "pollers" => ::Array[::Temporalio::Api::TaskQueue::V1::PollerInfo]?, + stats: (::Temporalio::Api::TaskQueue::V1::TaskQueueStats | ::Temporalio::Api::TaskQueue::V1::TaskQueueStats::init_map)?, + "stats" => (::Temporalio::Api::TaskQueue::V1::TaskQueueStats | ::Temporalio::Api::TaskQueue::V1::TaskQueueStats::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("pollers" name) -> ::Google::Protobuf::RepeatedField + | ("stats" name) -> ::Temporalio::Api::TaskQueue::V1::TaskQueueStats? + + def []=: + ("pollers" name, ::Google::Protobuf::RepeatedField value) -> void + | ("stats" name, ::Temporalio::Api::TaskQueue::V1::TaskQueueStats? value) -> void + end + + # 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. + class TaskQueueStats < ::Google::Protobuf::AbstractMessage + + # 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. + attr_reader approximate_backlog_count(): ::Integer + attr_writer approximate_backlog_count(): ::Integer | ::Float + def clear_approximate_backlog_count: () -> void + + # 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. + attr_reader approximate_backlog_age(): ::Google::Protobuf::Duration? + attr_writer approximate_backlog_age(): (::Google::Protobuf::Duration | ::int)? + def has_approximate_backlog_age?: () -> bool + def clear_approximate_backlog_age: () -> void + + # 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. + attr_reader tasks_add_rate(): ::Float + attr_writer tasks_add_rate(): ::Float | ::Integer + def clear_tasks_add_rate: () -> void + + # 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. + attr_reader tasks_dispatch_rate(): ::Float + attr_writer tasks_dispatch_rate(): ::Float | ::Integer + def clear_tasks_dispatch_rate: () -> void + + type init_map = { + approximate_backlog_count: (::Integer | ::Float)?, + "approximate_backlog_count" => (::Integer | ::Float)?, + approximate_backlog_age: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "approximate_backlog_age" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + tasks_add_rate: (::Float | ::Integer)?, + "tasks_add_rate" => (::Float | ::Integer)?, + tasks_dispatch_rate: (::Float | ::Integer)?, + "tasks_dispatch_rate" => (::Float | ::Integer)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("approximate_backlog_count" name) -> ::Integer + | ("approximate_backlog_age" name) -> ::Google::Protobuf::Duration? + | ("tasks_add_rate" name) -> ::Float + | ("tasks_dispatch_rate" name) -> ::Float + + def []=: + ("approximate_backlog_count" name, (::Integer | ::Float) value) -> void + | ("approximate_backlog_age" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("tasks_add_rate" name, (::Float | ::Integer) value) -> void + | ("tasks_dispatch_rate" name, (::Float | ::Integer) value) -> void + end + + # Deprecated. Use `InternalTaskQueueStatus`. This is kept until `DescribeTaskQueue` supports legacy behavior. + class TaskQueueStatus < ::Google::Protobuf::AbstractMessage + + attr_reader backlog_count_hint(): ::Integer + attr_writer backlog_count_hint(): ::Integer | ::Float + def clear_backlog_count_hint: () -> void + + attr_reader read_level(): ::Integer + attr_writer read_level(): ::Integer | ::Float + def clear_read_level: () -> void + + attr_reader ack_level(): ::Integer + attr_writer ack_level(): ::Integer | ::Float + def clear_ack_level: () -> void + + attr_reader rate_per_second(): ::Float + attr_writer rate_per_second(): ::Float | ::Integer + def clear_rate_per_second: () -> void + + attr_accessor task_id_block(): ::Temporalio::Api::TaskQueue::V1::TaskIdBlock? + def has_task_id_block?: () -> bool + def clear_task_id_block: () -> void + + type init_map = { + backlog_count_hint: (::Integer | ::Float)?, + "backlog_count_hint" => (::Integer | ::Float)?, + read_level: (::Integer | ::Float)?, + "read_level" => (::Integer | ::Float)?, + ack_level: (::Integer | ::Float)?, + "ack_level" => (::Integer | ::Float)?, + rate_per_second: (::Float | ::Integer)?, + "rate_per_second" => (::Float | ::Integer)?, + task_id_block: (::Temporalio::Api::TaskQueue::V1::TaskIdBlock | ::Temporalio::Api::TaskQueue::V1::TaskIdBlock::init_map)?, + "task_id_block" => (::Temporalio::Api::TaskQueue::V1::TaskIdBlock | ::Temporalio::Api::TaskQueue::V1::TaskIdBlock::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("backlog_count_hint" name) -> ::Integer + | ("read_level" name) -> ::Integer + | ("ack_level" name) -> ::Integer + | ("rate_per_second" name) -> ::Float + | ("task_id_block" name) -> ::Temporalio::Api::TaskQueue::V1::TaskIdBlock? + + def []=: + ("backlog_count_hint" name, (::Integer | ::Float) value) -> void + | ("read_level" name, (::Integer | ::Float) value) -> void + | ("ack_level" name, (::Integer | ::Float) value) -> void + | ("rate_per_second" name, (::Float | ::Integer) value) -> void + | ("task_id_block" name, ::Temporalio::Api::TaskQueue::V1::TaskIdBlock? value) -> void + end + + class TaskIdBlock < ::Google::Protobuf::AbstractMessage + + attr_reader start_id(): ::Integer + attr_writer start_id(): ::Integer | ::Float + def clear_start_id: () -> void + + attr_reader end_id(): ::Integer + attr_writer end_id(): ::Integer | ::Float + def clear_end_id: () -> void + + type init_map = { + start_id: (::Integer | ::Float)?, + "start_id" => (::Integer | ::Float)?, + end_id: (::Integer | ::Float)?, + "end_id" => (::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("start_id" name) -> ::Integer + | ("end_id" name) -> ::Integer + + def []=: + ("start_id" name, (::Integer | ::Float) value) -> void + | ("end_id" name, (::Integer | ::Float) value) -> void + end + + class TaskQueuePartitionMetadata < ::Google::Protobuf::AbstractMessage + + attr_reader key(): ::String + attr_writer key(): ::String | ::Symbol + def clear_key: () -> void + + attr_reader owner_host_name(): ::String + attr_writer owner_host_name(): ::String | ::Symbol + def clear_owner_host_name: () -> void + + type init_map = { + key: (::String | ::Symbol)?, + "key" => (::String | ::Symbol)?, + owner_host_name: (::String | ::Symbol)?, + "owner_host_name" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("key" name) -> ::String + | ("owner_host_name" name) -> ::String + + def []=: + ("key" name, (::String | ::Symbol) value) -> void + | ("owner_host_name" name, (::String | ::Symbol) value) -> void + end + + class PollerInfo < ::Google::Protobuf::AbstractMessage + + attr_reader last_access_time(): ::Google::Protobuf::Timestamp? + attr_writer last_access_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_last_access_time?: () -> bool + def clear_last_access_time: () -> void + + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + attr_reader rate_per_second(): ::Float + attr_writer rate_per_second(): ::Float | ::Integer + def clear_rate_per_second: () -> void + + # If a worker has opted into the worker versioning feature while polling, its capabilities will + # appear here. + # Deprecated. Replaced by deployment_options. + # @deprecated + attr_accessor worker_version_capabilities(): ::Temporalio::Api::Common::V1::WorkerVersionCapabilities? + def has_worker_version_capabilities?: () -> bool + def clear_worker_version_capabilities: () -> void + + # Worker deployment options that SDK sent to server. + attr_accessor deployment_options(): ::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions? + def has_deployment_options?: () -> bool + def clear_deployment_options: () -> void + + type init_map = { + last_access_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "last_access_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + rate_per_second: (::Float | ::Integer)?, + "rate_per_second" => (::Float | ::Integer)?, + worker_version_capabilities: (::Temporalio::Api::Common::V1::WorkerVersionCapabilities | ::Temporalio::Api::Common::V1::WorkerVersionCapabilities::init_map)?, + "worker_version_capabilities" => (::Temporalio::Api::Common::V1::WorkerVersionCapabilities | ::Temporalio::Api::Common::V1::WorkerVersionCapabilities::init_map)?, + deployment_options: (::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions | ::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions::init_map)?, + "deployment_options" => (::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions | ::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("last_access_time" name) -> ::Google::Protobuf::Timestamp? + | ("identity" name) -> ::String + | ("rate_per_second" name) -> ::Float + | ("worker_version_capabilities" name) -> ::Temporalio::Api::Common::V1::WorkerVersionCapabilities? + | ("deployment_options" name) -> ::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions? + + def []=: + ("last_access_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + | ("rate_per_second" name, (::Float | ::Integer) value) -> void + | ("worker_version_capabilities" name, ::Temporalio::Api::Common::V1::WorkerVersionCapabilities? value) -> void + | ("deployment_options" name, ::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions? value) -> void + end + + class StickyExecutionAttributes < ::Google::Protobuf::AbstractMessage + + attr_accessor worker_task_queue(): ::Temporalio::Api::TaskQueue::V1::TaskQueue? + def has_worker_task_queue?: () -> bool + def clear_worker_task_queue: () -> void + + # (-- api-linter: core::0140::prepositions=disabled + # aip.dev/not-precedent: "to" is used to indicate interval. --) + attr_reader schedule_to_start_timeout(): ::Google::Protobuf::Duration? + attr_writer schedule_to_start_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_schedule_to_start_timeout?: () -> bool + def clear_schedule_to_start_timeout: () -> void + + type init_map = { + worker_task_queue: (::Temporalio::Api::TaskQueue::V1::TaskQueue | ::Temporalio::Api::TaskQueue::V1::TaskQueue::init_map)?, + "worker_task_queue" => (::Temporalio::Api::TaskQueue::V1::TaskQueue | ::Temporalio::Api::TaskQueue::V1::TaskQueue::init_map)?, + schedule_to_start_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "schedule_to_start_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("worker_task_queue" name) -> ::Temporalio::Api::TaskQueue::V1::TaskQueue? + | ("schedule_to_start_timeout" name) -> ::Google::Protobuf::Duration? + + def []=: + ("worker_task_queue" name, ::Temporalio::Api::TaskQueue::V1::TaskQueue? value) -> void + | ("schedule_to_start_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + end + + # 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. + class CompatibleVersionSet < ::Google::Protobuf::AbstractMessage + + # All the compatible versions, unordered, except for the last element, which is considered the set "default". + attr_accessor build_ids(): ::Google::Protobuf::RepeatedField + def clear_build_ids: () -> void + + type init_map = { + build_ids: ::Array[::String | ::Symbol]?, + "build_ids" => ::Array[::String | ::Symbol]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("build_ids" name) -> (::Google::Protobuf::RepeatedField) + + def []=: + ("build_ids" name, (::Google::Protobuf::RepeatedField) value) -> void + end + + # Reachability of tasks for a worker on a single task queue. + class TaskQueueReachability < ::Google::Protobuf::AbstractMessage + + attr_reader task_queue(): ::String + attr_writer task_queue(): ::String | ::Symbol + def clear_task_queue: () -> void + + # 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. + attr_accessor reachability(): ::Google::Protobuf::RepeatedField + attr_reader reachability_const(): ::Array[::Integer] + def clear_reachability: () -> void + + type init_map = { + task_queue: (::String | ::Symbol)?, + "task_queue" => (::String | ::Symbol)?, + reachability: ::Array[::Temporalio::Api::Enums::V1::TaskReachability::names | ::Temporalio::Api::Enums::V1::TaskReachability::strings | ::Integer | ::Float]?, + "reachability" => ::Array[::Temporalio::Api::Enums::V1::TaskReachability::names | ::Temporalio::Api::Enums::V1::TaskReachability::strings | ::Integer | ::Float]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("task_queue" name) -> ::String + | ("reachability" name) -> (::Google::Protobuf::RepeatedField) + + def []=: + ("task_queue" name, (::String | ::Symbol) value) -> void + | ("reachability" name, (::Google::Protobuf::RepeatedField) value) -> void + end + + # Reachability of tasks for a worker by build id, in one or more task queues. + class BuildIdReachability < ::Google::Protobuf::AbstractMessage + + # A build id or empty if unversioned. + attr_reader build_id(): ::String + attr_writer build_id(): ::String | ::Symbol + def clear_build_id: () -> void + + # Reachability per task queue. + attr_accessor task_queue_reachability(): ::Google::Protobuf::RepeatedField + def clear_task_queue_reachability: () -> void + + type init_map = { + build_id: (::String | ::Symbol)?, + "build_id" => (::String | ::Symbol)?, + task_queue_reachability: ::Array[::Temporalio::Api::TaskQueue::V1::TaskQueueReachability]?, + "task_queue_reachability" => ::Array[::Temporalio::Api::TaskQueue::V1::TaskQueueReachability]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("build_id" name) -> ::String + | ("task_queue_reachability" name) -> ::Google::Protobuf::RepeatedField + + def []=: + ("build_id" name, (::String | ::Symbol) value) -> void + | ("task_queue_reachability" name, ::Google::Protobuf::RepeatedField value) -> void + end + + class RampByPercentage < ::Google::Protobuf::AbstractMessage + + # Acceptable range is [0,100). + attr_reader ramp_percentage(): ::Float + attr_writer ramp_percentage(): ::Float | ::Integer + def clear_ramp_percentage: () -> void + + type init_map = { + ramp_percentage: (::Float | ::Integer)?, + "ramp_percentage" => (::Float | ::Integer)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("ramp_percentage" name) -> ::Float + + def []=: + ("ramp_percentage" name, (::Float | ::Integer) value) -> void + end + + # 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. + class BuildIdAssignmentRule < ::Google::Protobuf::AbstractMessage + + attr_reader target_build_id(): ::String + attr_writer target_build_id(): ::String | ::Symbol + def clear_target_build_id: () -> void + + # 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. + attr_accessor percentage_ramp(): ::Temporalio::Api::TaskQueue::V1::RampByPercentage? + def has_percentage_ramp?: () -> bool + def clear_percentage_ramp: () -> void + + # 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). + attr_reader ramp(): ::Temporalio::Api::TaskQueue::V1::RampByPercentage? + def has_ramp?: () -> bool + def clear_ramp: () -> void + + type init_map = { + target_build_id: (::String | ::Symbol)?, + "target_build_id" => (::String | ::Symbol)?, + percentage_ramp: (::Temporalio::Api::TaskQueue::V1::RampByPercentage | ::Temporalio::Api::TaskQueue::V1::RampByPercentage::init_map)?, + "percentage_ramp" => (::Temporalio::Api::TaskQueue::V1::RampByPercentage | ::Temporalio::Api::TaskQueue::V1::RampByPercentage::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("target_build_id" name) -> ::String + | ("percentage_ramp" name) -> ::Temporalio::Api::TaskQueue::V1::RampByPercentage? + + def []=: + ("target_build_id" name, (::String | ::Symbol) value) -> void + | ("percentage_ramp" name, ::Temporalio::Api::TaskQueue::V1::RampByPercentage? value) -> void + end + + # 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. + class CompatibleBuildIdRedirectRule < ::Google::Protobuf::AbstractMessage + + attr_reader source_build_id(): ::String + attr_writer source_build_id(): ::String | ::Symbol + def clear_source_build_id: () -> void + + # 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. + attr_reader target_build_id(): ::String + attr_writer target_build_id(): ::String | ::Symbol + def clear_target_build_id: () -> void + + type init_map = { + source_build_id: (::String | ::Symbol)?, + "source_build_id" => (::String | ::Symbol)?, + target_build_id: (::String | ::Symbol)?, + "target_build_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("source_build_id" name) -> ::String + | ("target_build_id" name) -> ::String + + def []=: + ("source_build_id" name, (::String | ::Symbol) value) -> void + | ("target_build_id" name, (::String | ::Symbol) value) -> void + end + + class TimestampedBuildIdAssignmentRule < ::Google::Protobuf::AbstractMessage + + attr_accessor rule(): ::Temporalio::Api::TaskQueue::V1::BuildIdAssignmentRule? + def has_rule?: () -> bool + def clear_rule: () -> void + + attr_reader create_time(): ::Google::Protobuf::Timestamp? + attr_writer create_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_create_time?: () -> bool + def clear_create_time: () -> void + + type init_map = { + rule: (::Temporalio::Api::TaskQueue::V1::BuildIdAssignmentRule | ::Temporalio::Api::TaskQueue::V1::BuildIdAssignmentRule::init_map)?, + "rule" => (::Temporalio::Api::TaskQueue::V1::BuildIdAssignmentRule | ::Temporalio::Api::TaskQueue::V1::BuildIdAssignmentRule::init_map)?, + create_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "create_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("rule" name) -> ::Temporalio::Api::TaskQueue::V1::BuildIdAssignmentRule? + | ("create_time" name) -> ::Google::Protobuf::Timestamp? + + def []=: + ("rule" name, ::Temporalio::Api::TaskQueue::V1::BuildIdAssignmentRule? value) -> void + | ("create_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + end + + class TimestampedCompatibleBuildIdRedirectRule < ::Google::Protobuf::AbstractMessage + + attr_accessor rule(): ::Temporalio::Api::TaskQueue::V1::CompatibleBuildIdRedirectRule? + def has_rule?: () -> bool + def clear_rule: () -> void + + attr_reader create_time(): ::Google::Protobuf::Timestamp? + attr_writer create_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_create_time?: () -> bool + def clear_create_time: () -> void + + type init_map = { + rule: (::Temporalio::Api::TaskQueue::V1::CompatibleBuildIdRedirectRule | ::Temporalio::Api::TaskQueue::V1::CompatibleBuildIdRedirectRule::init_map)?, + "rule" => (::Temporalio::Api::TaskQueue::V1::CompatibleBuildIdRedirectRule | ::Temporalio::Api::TaskQueue::V1::CompatibleBuildIdRedirectRule::init_map)?, + create_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "create_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("rule" name) -> ::Temporalio::Api::TaskQueue::V1::CompatibleBuildIdRedirectRule? + | ("create_time" name) -> ::Google::Protobuf::Timestamp? + + def []=: + ("rule" name, ::Temporalio::Api::TaskQueue::V1::CompatibleBuildIdRedirectRule? value) -> void + | ("create_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + end + + # Attached to task responses to give hints to the SDK about how it may adjust its number of + # pollers. + class PollerScalingDecision < ::Google::Protobuf::AbstractMessage + + # 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. + attr_reader poll_request_delta_suggestion(): ::Integer + attr_writer poll_request_delta_suggestion(): ::Integer | ::Float + def clear_poll_request_delta_suggestion: () -> void + + type init_map = { + poll_request_delta_suggestion: (::Integer | ::Float)?, + "poll_request_delta_suggestion" => (::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("poll_request_delta_suggestion" name) -> ::Integer + + def []=: + ("poll_request_delta_suggestion" name, (::Integer | ::Float) value) -> void + end + + class RateLimit < ::Google::Protobuf::AbstractMessage + + # Zero is a valid rate limit. + attr_reader requests_per_second(): ::Float + attr_writer requests_per_second(): ::Float | ::Integer + def clear_requests_per_second: () -> void + + type init_map = { + requests_per_second: (::Float | ::Integer)?, + "requests_per_second" => (::Float | ::Integer)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("requests_per_second" name) -> ::Float + + def []=: + ("requests_per_second" name, (::Float | ::Integer) value) -> void + end + + class ConfigMetadata < ::Google::Protobuf::AbstractMessage + + # Reason for why the config was set. + attr_reader reason(): ::String + attr_writer reason(): ::String | ::Symbol + def clear_reason: () -> void + + # Identity of the last updater. + # Set by the request's identity field. + attr_reader update_identity(): ::String + attr_writer update_identity(): ::String | ::Symbol + def clear_update_identity: () -> void + + # Time of the last update. + attr_reader update_time(): ::Google::Protobuf::Timestamp? + attr_writer update_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_update_time?: () -> bool + def clear_update_time: () -> void + + type init_map = { + reason: (::String | ::Symbol)?, + "reason" => (::String | ::Symbol)?, + update_identity: (::String | ::Symbol)?, + "update_identity" => (::String | ::Symbol)?, + update_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "update_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("reason" name) -> ::String + | ("update_identity" name) -> ::String + | ("update_time" name) -> ::Google::Protobuf::Timestamp? + + def []=: + ("reason" name, (::String | ::Symbol) value) -> void + | ("update_identity" name, (::String | ::Symbol) value) -> void + | ("update_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + end + + class RateLimitConfig < ::Google::Protobuf::AbstractMessage + + attr_accessor rate_limit(): ::Temporalio::Api::TaskQueue::V1::RateLimit? + def has_rate_limit?: () -> bool + def clear_rate_limit: () -> void + + attr_accessor metadata(): ::Temporalio::Api::TaskQueue::V1::ConfigMetadata? + def has_metadata?: () -> bool + def clear_metadata: () -> void + + type init_map = { + rate_limit: (::Temporalio::Api::TaskQueue::V1::RateLimit | ::Temporalio::Api::TaskQueue::V1::RateLimit::init_map)?, + "rate_limit" => (::Temporalio::Api::TaskQueue::V1::RateLimit | ::Temporalio::Api::TaskQueue::V1::RateLimit::init_map)?, + metadata: (::Temporalio::Api::TaskQueue::V1::ConfigMetadata | ::Temporalio::Api::TaskQueue::V1::ConfigMetadata::init_map)?, + "metadata" => (::Temporalio::Api::TaskQueue::V1::ConfigMetadata | ::Temporalio::Api::TaskQueue::V1::ConfigMetadata::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("rate_limit" name) -> ::Temporalio::Api::TaskQueue::V1::RateLimit? + | ("metadata" name) -> ::Temporalio::Api::TaskQueue::V1::ConfigMetadata? + + def []=: + ("rate_limit" name, ::Temporalio::Api::TaskQueue::V1::RateLimit? value) -> void + | ("metadata" name, ::Temporalio::Api::TaskQueue::V1::ConfigMetadata? value) -> void + end + + class TaskQueueConfig < ::Google::Protobuf::AbstractMessage + + # Unless modified, this is the system-defined rate limit. + attr_accessor queue_rate_limit(): ::Temporalio::Api::TaskQueue::V1::RateLimitConfig? + def has_queue_rate_limit?: () -> bool + def clear_queue_rate_limit: () -> void + + # If set, each individual fairness key will be limited to this rate, scaled by the weight of the fairness key. + attr_accessor fairness_keys_rate_limit_default(): ::Temporalio::Api::TaskQueue::V1::RateLimitConfig? + def has_fairness_keys_rate_limit_default?: () -> bool + def clear_fairness_keys_rate_limit_default: () -> void + + # If set, overrides the fairness weights for the corresponding fairness keys. + attr_accessor fairness_weight_overrides(): ::Google::Protobuf::Map[::String, ::Float] + def clear_fairness_weight_overrides: () -> void + + type init_map = { + queue_rate_limit: (::Temporalio::Api::TaskQueue::V1::RateLimitConfig | ::Temporalio::Api::TaskQueue::V1::RateLimitConfig::init_map)?, + "queue_rate_limit" => (::Temporalio::Api::TaskQueue::V1::RateLimitConfig | ::Temporalio::Api::TaskQueue::V1::RateLimitConfig::init_map)?, + fairness_keys_rate_limit_default: (::Temporalio::Api::TaskQueue::V1::RateLimitConfig | ::Temporalio::Api::TaskQueue::V1::RateLimitConfig::init_map)?, + "fairness_keys_rate_limit_default" => (::Temporalio::Api::TaskQueue::V1::RateLimitConfig | ::Temporalio::Api::TaskQueue::V1::RateLimitConfig::init_map)?, + fairness_weight_overrides: ::Hash[::String | ::Symbol, ::Float | ::Integer]?, + "fairness_weight_overrides" => ::Hash[::String | ::Symbol, ::Float | ::Integer]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("queue_rate_limit" name) -> ::Temporalio::Api::TaskQueue::V1::RateLimitConfig? + | ("fairness_keys_rate_limit_default" name) -> ::Temporalio::Api::TaskQueue::V1::RateLimitConfig? + | ("fairness_weight_overrides" name) -> (::Google::Protobuf::Map[::String, ::Float]) + + def []=: + ("queue_rate_limit" name, ::Temporalio::Api::TaskQueue::V1::RateLimitConfig? value) -> void + | ("fairness_keys_rate_limit_default" name, ::Temporalio::Api::TaskQueue::V1::RateLimitConfig? value) -> void + | ("fairness_weight_overrides" name, (::Google::Protobuf::Map[::String, ::Float]) value) -> void + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/api/testservice/v1/request_response.rbs b/temporalio/sig/temporalio/api/testservice/v1/request_response.rbs new file mode 100644 index 00000000..88b41c74 --- /dev/null +++ b/temporalio/sig/temporalio/api/testservice/v1/request_response.rbs @@ -0,0 +1,125 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/api/testservice/v1/request_response.proto + +module Temporalio + module Api + module TestService + module V1 + class LockTimeSkippingRequest < ::Google::Protobuf::AbstractMessage + + type init_map = { + } + + def initialize: (?init_map initial_value) -> void + end + + class LockTimeSkippingResponse < ::Google::Protobuf::AbstractMessage + + type init_map = { + } + + def initialize: (?init_map initial_value) -> void + end + + class UnlockTimeSkippingRequest < ::Google::Protobuf::AbstractMessage + + type init_map = { + } + + def initialize: (?init_map initial_value) -> void + end + + class UnlockTimeSkippingResponse < ::Google::Protobuf::AbstractMessage + + type init_map = { + } + + def initialize: (?init_map initial_value) -> void + end + + class SleepUntilRequest < ::Google::Protobuf::AbstractMessage + + attr_reader timestamp(): ::Google::Protobuf::Timestamp? + attr_writer timestamp(): (::Google::Protobuf::Timestamp | ::Time)? + def has_timestamp?: () -> bool + def clear_timestamp: () -> void + + type init_map = { + timestamp: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "timestamp" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("timestamp" name) -> ::Google::Protobuf::Timestamp? + + def []=: + ("timestamp" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + end + + class SleepRequest < ::Google::Protobuf::AbstractMessage + + attr_reader duration(): ::Google::Protobuf::Duration? + attr_writer duration(): (::Google::Protobuf::Duration | ::int)? + def has_duration?: () -> bool + def clear_duration: () -> void + + type init_map = { + duration: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "duration" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("duration" name) -> ::Google::Protobuf::Duration? + + def []=: + ("duration" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + end + + class SleepResponse < ::Google::Protobuf::AbstractMessage + + type init_map = { + } + + def initialize: (?init_map initial_value) -> void + end + + class GetCurrentTimeResponse < ::Google::Protobuf::AbstractMessage + + attr_reader time(): ::Google::Protobuf::Timestamp? + attr_writer time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_time?: () -> bool + def clear_time: () -> void + + type init_map = { + time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("time" name) -> ::Google::Protobuf::Timestamp? + + def []=: + ("time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/api/testservice/v1/service.rbs b/temporalio/sig/temporalio/api/testservice/v1/service.rbs new file mode 100644 index 00000000..4edf5c3b --- /dev/null +++ b/temporalio/sig/temporalio/api/testservice/v1/service.rbs @@ -0,0 +1,23 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/api/testservice/v1/service.proto + +module Temporalio + module Api + module TestService + module V1 + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/api/update/v1/message.rbs b/temporalio/sig/temporalio/api/update/v1/message.rbs new file mode 100644 index 00000000..6838981f --- /dev/null +++ b/temporalio/sig/temporalio/api/update/v1/message.rbs @@ -0,0 +1,324 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/api/update/v1/message.proto + +module Temporalio + module Api + module Update + module V1 + # Specifies client's intent to wait for Update results. + class WaitPolicy < ::Google::Protobuf::AbstractMessage + + # 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. + attr_reader lifecycle_stage(): ::Temporalio::Api::Enums::V1::UpdateWorkflowExecutionLifecycleStage::names | ::Integer + attr_writer lifecycle_stage(): ::Temporalio::Api::Enums::V1::UpdateWorkflowExecutionLifecycleStage::names | ::Temporalio::Api::Enums::V1::UpdateWorkflowExecutionLifecycleStage::strings | ::Integer | ::Float + attr_reader lifecycle_stage_const(): ::Integer + def clear_lifecycle_stage: () -> void + + type init_map = { + lifecycle_stage: (::Temporalio::Api::Enums::V1::UpdateWorkflowExecutionLifecycleStage::names | ::Temporalio::Api::Enums::V1::UpdateWorkflowExecutionLifecycleStage::strings | ::Integer | ::Float)?, + "lifecycle_stage" => (::Temporalio::Api::Enums::V1::UpdateWorkflowExecutionLifecycleStage::names | ::Temporalio::Api::Enums::V1::UpdateWorkflowExecutionLifecycleStage::strings | ::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("lifecycle_stage" name) -> (::Temporalio::Api::Enums::V1::UpdateWorkflowExecutionLifecycleStage::names | ::Integer) + + def []=: + ("lifecycle_stage" name, (::Temporalio::Api::Enums::V1::UpdateWorkflowExecutionLifecycleStage::names | ::Temporalio::Api::Enums::V1::UpdateWorkflowExecutionLifecycleStage::strings | ::Integer | ::Float) value) -> void + end + + # The data needed by a client to refer to a previously invoked Workflow Update. + class UpdateRef < ::Google::Protobuf::AbstractMessage + + attr_accessor workflow_execution(): ::Temporalio::Api::Common::V1::WorkflowExecution? + def has_workflow_execution?: () -> bool + def clear_workflow_execution: () -> void + + attr_reader update_id(): ::String + attr_writer update_id(): ::String | ::Symbol + def clear_update_id: () -> void + + type init_map = { + workflow_execution: (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + "workflow_execution" => (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + update_id: (::String | ::Symbol)?, + "update_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("workflow_execution" name) -> ::Temporalio::Api::Common::V1::WorkflowExecution? + | ("update_id" name) -> ::String + + def []=: + ("workflow_execution" name, ::Temporalio::Api::Common::V1::WorkflowExecution? value) -> void + | ("update_id" name, (::String | ::Symbol) value) -> void + end + + # The outcome of a Workflow Update: success or failure. + class Outcome < ::Google::Protobuf::AbstractMessage + + attr_accessor success(): ::Temporalio::Api::Common::V1::Payloads? + def has_success?: () -> bool + def clear_success: () -> void + + attr_accessor failure(): ::Temporalio::Api::Failure::V1::Failure? + def has_failure?: () -> bool + def clear_failure: () -> void + + attr_reader value(): (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Failure::V1::Failure)? + def has_value?: () -> bool + def clear_value: () -> void + + type init_map = { + success: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + "success" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + failure: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + "failure" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("success" name) -> ::Temporalio::Api::Common::V1::Payloads? + | ("failure" name) -> ::Temporalio::Api::Failure::V1::Failure? + + def []=: + ("success" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void + | ("failure" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void + end + + # Metadata about a Workflow Update. + class Meta < ::Google::Protobuf::AbstractMessage + + # An ID with workflow-scoped uniqueness for this Update. + attr_reader update_id(): ::String + attr_writer update_id(): ::String | ::Symbol + def clear_update_id: () -> void + + # A string identifying the agent that requested this Update. + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + type init_map = { + update_id: (::String | ::Symbol)?, + "update_id" => (::String | ::Symbol)?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("update_id" name) -> ::String + | ("identity" name) -> ::String + + def []=: + ("update_id" name, (::String | ::Symbol) value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + end + + class Input < ::Google::Protobuf::AbstractMessage + + # Headers that are passed with the Update from the requesting entity. + # These can include things like auth or tracing tokens. + attr_accessor header(): ::Temporalio::Api::Common::V1::Header? + def has_header?: () -> bool + def clear_header: () -> void + + # The name of the Update handler to invoke on the target Workflow. + attr_reader name(): ::String + attr_writer name(): ::String | ::Symbol + def clear_name: () -> void + + # The arguments to pass to the named Update handler. + attr_accessor args(): ::Temporalio::Api::Common::V1::Payloads? + def has_args?: () -> bool + def clear_args: () -> void + + type init_map = { + header: (::Temporalio::Api::Common::V1::Header | ::Temporalio::Api::Common::V1::Header::init_map)?, + "header" => (::Temporalio::Api::Common::V1::Header | ::Temporalio::Api::Common::V1::Header::init_map)?, + name: (::String | ::Symbol)?, + "name" => (::String | ::Symbol)?, + args: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + "args" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("header" name) -> ::Temporalio::Api::Common::V1::Header? + | ("name" name) -> ::String + | ("args" name) -> ::Temporalio::Api::Common::V1::Payloads? + + def []=: + ("header" name, ::Temporalio::Api::Common::V1::Header? value) -> void + | ("name" name, (::String | ::Symbol) value) -> void + | ("args" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void + end + + # The client request that triggers a Workflow Update. + class Request < ::Google::Protobuf::AbstractMessage + + attr_accessor meta(): ::Temporalio::Api::Update::V1::Meta? + def has_meta?: () -> bool + def clear_meta: () -> void + + attr_accessor input(): ::Temporalio::Api::Update::V1::Input? + def has_input?: () -> bool + def clear_input: () -> void + + type init_map = { + meta: (::Temporalio::Api::Update::V1::Meta | ::Temporalio::Api::Update::V1::Meta::init_map)?, + "meta" => (::Temporalio::Api::Update::V1::Meta | ::Temporalio::Api::Update::V1::Meta::init_map)?, + input: (::Temporalio::Api::Update::V1::Input | ::Temporalio::Api::Update::V1::Input::init_map)?, + "input" => (::Temporalio::Api::Update::V1::Input | ::Temporalio::Api::Update::V1::Input::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("meta" name) -> ::Temporalio::Api::Update::V1::Meta? + | ("input" name) -> ::Temporalio::Api::Update::V1::Input? + + def []=: + ("meta" name, ::Temporalio::Api::Update::V1::Meta? value) -> void + | ("input" name, ::Temporalio::Api::Update::V1::Input? value) -> void + end + + # An Update protocol message indicating that a Workflow Update has been rejected. + class Rejection < ::Google::Protobuf::AbstractMessage + + attr_reader rejected_request_message_id(): ::String + attr_writer rejected_request_message_id(): ::String | ::Symbol + def clear_rejected_request_message_id: () -> void + + attr_reader rejected_request_sequencing_event_id(): ::Integer + attr_writer rejected_request_sequencing_event_id(): ::Integer | ::Float + def clear_rejected_request_sequencing_event_id: () -> void + + attr_accessor rejected_request(): ::Temporalio::Api::Update::V1::Request? + def has_rejected_request?: () -> bool + def clear_rejected_request: () -> void + + attr_accessor failure(): ::Temporalio::Api::Failure::V1::Failure? + def has_failure?: () -> bool + def clear_failure: () -> void + + type init_map = { + rejected_request_message_id: (::String | ::Symbol)?, + "rejected_request_message_id" => (::String | ::Symbol)?, + rejected_request_sequencing_event_id: (::Integer | ::Float)?, + "rejected_request_sequencing_event_id" => (::Integer | ::Float)?, + rejected_request: (::Temporalio::Api::Update::V1::Request | ::Temporalio::Api::Update::V1::Request::init_map)?, + "rejected_request" => (::Temporalio::Api::Update::V1::Request | ::Temporalio::Api::Update::V1::Request::init_map)?, + failure: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + "failure" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("rejected_request_message_id" name) -> ::String + | ("rejected_request_sequencing_event_id" name) -> ::Integer + | ("rejected_request" name) -> ::Temporalio::Api::Update::V1::Request? + | ("failure" name) -> ::Temporalio::Api::Failure::V1::Failure? + + def []=: + ("rejected_request_message_id" name, (::String | ::Symbol) value) -> void + | ("rejected_request_sequencing_event_id" name, (::Integer | ::Float) value) -> void + | ("rejected_request" name, ::Temporalio::Api::Update::V1::Request? value) -> void + | ("failure" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void + end + + # An Update protocol message indicating that a Workflow Update has + # been accepted (i.e. passed the worker-side validation phase). + class Acceptance < ::Google::Protobuf::AbstractMessage + + attr_reader accepted_request_message_id(): ::String + attr_writer accepted_request_message_id(): ::String | ::Symbol + def clear_accepted_request_message_id: () -> void + + attr_reader accepted_request_sequencing_event_id(): ::Integer + attr_writer accepted_request_sequencing_event_id(): ::Integer | ::Float + def clear_accepted_request_sequencing_event_id: () -> void + + attr_accessor accepted_request(): ::Temporalio::Api::Update::V1::Request? + def has_accepted_request?: () -> bool + def clear_accepted_request: () -> void + + type init_map = { + accepted_request_message_id: (::String | ::Symbol)?, + "accepted_request_message_id" => (::String | ::Symbol)?, + accepted_request_sequencing_event_id: (::Integer | ::Float)?, + "accepted_request_sequencing_event_id" => (::Integer | ::Float)?, + accepted_request: (::Temporalio::Api::Update::V1::Request | ::Temporalio::Api::Update::V1::Request::init_map)?, + "accepted_request" => (::Temporalio::Api::Update::V1::Request | ::Temporalio::Api::Update::V1::Request::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("accepted_request_message_id" name) -> ::String + | ("accepted_request_sequencing_event_id" name) -> ::Integer + | ("accepted_request" name) -> ::Temporalio::Api::Update::V1::Request? + + def []=: + ("accepted_request_message_id" name, (::String | ::Symbol) value) -> void + | ("accepted_request_sequencing_event_id" name, (::Integer | ::Float) value) -> void + | ("accepted_request" name, ::Temporalio::Api::Update::V1::Request? value) -> void + end + + # An Update protocol message indicating that a Workflow Update has + # completed with the contained outcome. + class Response < ::Google::Protobuf::AbstractMessage + + attr_accessor meta(): ::Temporalio::Api::Update::V1::Meta? + def has_meta?: () -> bool + def clear_meta: () -> void + + attr_accessor outcome(): ::Temporalio::Api::Update::V1::Outcome? + def has_outcome?: () -> bool + def clear_outcome: () -> void + + type init_map = { + meta: (::Temporalio::Api::Update::V1::Meta | ::Temporalio::Api::Update::V1::Meta::init_map)?, + "meta" => (::Temporalio::Api::Update::V1::Meta | ::Temporalio::Api::Update::V1::Meta::init_map)?, + outcome: (::Temporalio::Api::Update::V1::Outcome | ::Temporalio::Api::Update::V1::Outcome::init_map)?, + "outcome" => (::Temporalio::Api::Update::V1::Outcome | ::Temporalio::Api::Update::V1::Outcome::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("meta" name) -> ::Temporalio::Api::Update::V1::Meta? + | ("outcome" name) -> ::Temporalio::Api::Update::V1::Outcome? + + def []=: + ("meta" name, ::Temporalio::Api::Update::V1::Meta? value) -> void + | ("outcome" name, ::Temporalio::Api::Update::V1::Outcome? value) -> void + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/api/version/v1/message.rbs b/temporalio/sig/temporalio/api/version/v1/message.rbs new file mode 100644 index 00000000..1bbfe803 --- /dev/null +++ b/temporalio/sig/temporalio/api/version/v1/message.rbs @@ -0,0 +1,143 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/api/version/v1/message.proto + +module Temporalio + module Api + module Version + module V1 + # ReleaseInfo contains information about specific version of temporal. + class ReleaseInfo < ::Google::Protobuf::AbstractMessage + + attr_reader version(): ::String + attr_writer version(): ::String | ::Symbol + def clear_version: () -> void + + attr_reader release_time(): ::Google::Protobuf::Timestamp? + attr_writer release_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_release_time?: () -> bool + def clear_release_time: () -> void + + attr_reader notes(): ::String + attr_writer notes(): ::String | ::Symbol + def clear_notes: () -> void + + type init_map = { + version: (::String | ::Symbol)?, + "version" => (::String | ::Symbol)?, + release_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "release_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + notes: (::String | ::Symbol)?, + "notes" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("version" name) -> ::String + | ("release_time" name) -> ::Google::Protobuf::Timestamp? + | ("notes" name) -> ::String + + def []=: + ("version" name, (::String | ::Symbol) value) -> void + | ("release_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("notes" name, (::String | ::Symbol) value) -> void + end + + # Alert contains notification and severity. + class Alert < ::Google::Protobuf::AbstractMessage + + attr_reader message(): ::String + attr_writer message(): ::String | ::Symbol + def clear_message: () -> void + + attr_reader severity(): ::Temporalio::Api::Enums::V1::Severity::names | ::Integer + attr_writer severity(): ::Temporalio::Api::Enums::V1::Severity::names | ::Temporalio::Api::Enums::V1::Severity::strings | ::Integer | ::Float + attr_reader severity_const(): ::Integer + def clear_severity: () -> void + + type init_map = { + message: (::String | ::Symbol)?, + "message" => (::String | ::Symbol)?, + severity: (::Temporalio::Api::Enums::V1::Severity::names | ::Temporalio::Api::Enums::V1::Severity::strings | ::Integer | ::Float)?, + "severity" => (::Temporalio::Api::Enums::V1::Severity::names | ::Temporalio::Api::Enums::V1::Severity::strings | ::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("message" name) -> ::String + | ("severity" name) -> (::Temporalio::Api::Enums::V1::Severity::names | ::Integer) + + def []=: + ("message" name, (::String | ::Symbol) value) -> void + | ("severity" name, (::Temporalio::Api::Enums::V1::Severity::names | ::Temporalio::Api::Enums::V1::Severity::strings | ::Integer | ::Float) value) -> void + end + + # VersionInfo contains details about current and recommended release versions as well as alerts and upgrade instructions. + class VersionInfo < ::Google::Protobuf::AbstractMessage + + attr_accessor current(): ::Temporalio::Api::Version::V1::ReleaseInfo? + def has_current?: () -> bool + def clear_current: () -> void + + attr_accessor recommended(): ::Temporalio::Api::Version::V1::ReleaseInfo? + def has_recommended?: () -> bool + def clear_recommended: () -> void + + attr_reader instructions(): ::String + attr_writer instructions(): ::String | ::Symbol + def clear_instructions: () -> void + + attr_accessor alerts(): ::Google::Protobuf::RepeatedField + def clear_alerts: () -> void + + attr_reader last_update_time(): ::Google::Protobuf::Timestamp? + attr_writer last_update_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_last_update_time?: () -> bool + def clear_last_update_time: () -> void + + type init_map = { + current: (::Temporalio::Api::Version::V1::ReleaseInfo | ::Temporalio::Api::Version::V1::ReleaseInfo::init_map)?, + "current" => (::Temporalio::Api::Version::V1::ReleaseInfo | ::Temporalio::Api::Version::V1::ReleaseInfo::init_map)?, + recommended: (::Temporalio::Api::Version::V1::ReleaseInfo | ::Temporalio::Api::Version::V1::ReleaseInfo::init_map)?, + "recommended" => (::Temporalio::Api::Version::V1::ReleaseInfo | ::Temporalio::Api::Version::V1::ReleaseInfo::init_map)?, + instructions: (::String | ::Symbol)?, + "instructions" => (::String | ::Symbol)?, + alerts: ::Array[::Temporalio::Api::Version::V1::Alert]?, + "alerts" => ::Array[::Temporalio::Api::Version::V1::Alert]?, + last_update_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "last_update_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("current" name) -> ::Temporalio::Api::Version::V1::ReleaseInfo? + | ("recommended" name) -> ::Temporalio::Api::Version::V1::ReleaseInfo? + | ("instructions" name) -> ::String + | ("alerts" name) -> ::Google::Protobuf::RepeatedField + | ("last_update_time" name) -> ::Google::Protobuf::Timestamp? + + def []=: + ("current" name, ::Temporalio::Api::Version::V1::ReleaseInfo? value) -> void + | ("recommended" name, ::Temporalio::Api::Version::V1::ReleaseInfo? value) -> void + | ("instructions" name, (::String | ::Symbol) value) -> void + | ("alerts" name, ::Google::Protobuf::RepeatedField value) -> void + | ("last_update_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/api/worker/v1/message.rbs b/temporalio/sig/temporalio/api/worker/v1/message.rbs new file mode 100644 index 00000000..323bd82f --- /dev/null +++ b/temporalio/sig/temporalio/api/worker/v1/message.rbs @@ -0,0 +1,636 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/api/worker/v1/message.proto + +module Temporalio + module Api + module Worker + module V1 + class WorkerPollerInfo < ::Google::Protobuf::AbstractMessage + + # Number of polling RPCs that are currently in flight. + attr_reader current_pollers(): ::Integer + attr_writer current_pollers(): ::Integer | ::Float + def clear_current_pollers: () -> void + + attr_reader last_successful_poll_time(): ::Google::Protobuf::Timestamp? + attr_writer last_successful_poll_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_last_successful_poll_time?: () -> bool + def clear_last_successful_poll_time: () -> void + + # Set true if the number of concurrent pollers is auto-scaled + attr_accessor is_autoscaling(): bool + def clear_is_autoscaling: () -> void + + type init_map = { + current_pollers: (::Integer | ::Float)?, + "current_pollers" => (::Integer | ::Float)?, + last_successful_poll_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "last_successful_poll_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + is_autoscaling: bool?, + "is_autoscaling" => bool?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("current_pollers" name) -> ::Integer + | ("last_successful_poll_time" name) -> ::Google::Protobuf::Timestamp? + | ("is_autoscaling" name) -> bool + + def []=: + ("current_pollers" name, (::Integer | ::Float) value) -> void + | ("last_successful_poll_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("is_autoscaling" name, bool value) -> void + end + + class WorkerSlotsInfo < ::Google::Protobuf::AbstractMessage + + # Number of slots available for the worker to specific tasks. + # May be -1 if the upper bound is not known. + attr_reader current_available_slots(): ::Integer + attr_writer current_available_slots(): ::Integer | ::Float + def clear_current_available_slots: () -> void + + # Number of slots used by the worker for specific tasks. + attr_reader current_used_slots(): ::Integer + attr_writer current_used_slots(): ::Integer | ::Float + def clear_current_used_slots: () -> void + + # Kind of the slot supplier, which is used to determine how the slots are allocated. + # Possible values: "Fixed | ResourceBased | Custom String" + attr_reader slot_supplier_kind(): ::String + attr_writer slot_supplier_kind(): ::String | ::Symbol + def clear_slot_supplier_kind: () -> void + + # 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. + attr_reader total_processed_tasks(): ::Integer + attr_writer total_processed_tasks(): ::Integer | ::Float + def clear_total_processed_tasks: () -> void + + # Total number of failed tasks processed by the worker so far. + attr_reader total_failed_tasks(): ::Integer + attr_writer total_failed_tasks(): ::Integer | ::Float + def clear_total_failed_tasks: () -> void + + # 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. + attr_reader last_interval_processed_tasks(): ::Integer + attr_writer last_interval_processed_tasks(): ::Integer | ::Float + def clear_last_interval_processed_tasks: () -> void + + # Number of failed tasks processed since the last heartbeat from the worker. + attr_reader last_interval_failure_tasks(): ::Integer + attr_writer last_interval_failure_tasks(): ::Integer | ::Float + def clear_last_interval_failure_tasks: () -> void + + type init_map = { + current_available_slots: (::Integer | ::Float)?, + "current_available_slots" => (::Integer | ::Float)?, + current_used_slots: (::Integer | ::Float)?, + "current_used_slots" => (::Integer | ::Float)?, + slot_supplier_kind: (::String | ::Symbol)?, + "slot_supplier_kind" => (::String | ::Symbol)?, + total_processed_tasks: (::Integer | ::Float)?, + "total_processed_tasks" => (::Integer | ::Float)?, + total_failed_tasks: (::Integer | ::Float)?, + "total_failed_tasks" => (::Integer | ::Float)?, + last_interval_processed_tasks: (::Integer | ::Float)?, + "last_interval_processed_tasks" => (::Integer | ::Float)?, + last_interval_failure_tasks: (::Integer | ::Float)?, + "last_interval_failure_tasks" => (::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("current_available_slots" name) -> ::Integer + | ("current_used_slots" name) -> ::Integer + | ("slot_supplier_kind" name) -> ::String + | ("total_processed_tasks" name) -> ::Integer + | ("total_failed_tasks" name) -> ::Integer + | ("last_interval_processed_tasks" name) -> ::Integer + | ("last_interval_failure_tasks" name) -> ::Integer + + def []=: + ("current_available_slots" name, (::Integer | ::Float) value) -> void + | ("current_used_slots" name, (::Integer | ::Float) value) -> void + | ("slot_supplier_kind" name, (::String | ::Symbol) value) -> void + | ("total_processed_tasks" name, (::Integer | ::Float) value) -> void + | ("total_failed_tasks" name, (::Integer | ::Float) value) -> void + | ("last_interval_processed_tasks" name, (::Integer | ::Float) value) -> void + | ("last_interval_failure_tasks" name, (::Integer | ::Float) value) -> void + end + + # Holds everything needed to identify the worker host/process context + class WorkerHostInfo < ::Google::Protobuf::AbstractMessage + + # Worker host identifier. + attr_reader host_name(): ::String + attr_writer host_name(): ::String | ::Symbol + def clear_host_name: () -> void + + # 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}" + attr_reader worker_grouping_key(): ::String + attr_writer worker_grouping_key(): ::String | ::Symbol + def clear_worker_grouping_key: () -> void + + # Worker process identifier. This id only needs to be unique + # within one host (so using e.g. a unix pid would be appropriate). + attr_reader process_id(): ::String + attr_writer process_id(): ::String | ::Symbol + def clear_process_id: () -> void + + # 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. + attr_reader current_host_cpu_usage(): ::Float + attr_writer current_host_cpu_usage(): ::Float | ::Integer + def clear_current_host_cpu_usage: () -> void + + # 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. + attr_reader current_host_mem_usage(): ::Float + attr_writer current_host_mem_usage(): ::Float | ::Integer + def clear_current_host_mem_usage: () -> void + + type init_map = { + host_name: (::String | ::Symbol)?, + "host_name" => (::String | ::Symbol)?, + worker_grouping_key: (::String | ::Symbol)?, + "worker_grouping_key" => (::String | ::Symbol)?, + process_id: (::String | ::Symbol)?, + "process_id" => (::String | ::Symbol)?, + current_host_cpu_usage: (::Float | ::Integer)?, + "current_host_cpu_usage" => (::Float | ::Integer)?, + current_host_mem_usage: (::Float | ::Integer)?, + "current_host_mem_usage" => (::Float | ::Integer)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("host_name" name) -> ::String + | ("worker_grouping_key" name) -> ::String + | ("process_id" name) -> ::String + | ("current_host_cpu_usage" name) -> ::Float + | ("current_host_mem_usage" name) -> ::Float + + def []=: + ("host_name" name, (::String | ::Symbol) value) -> void + | ("worker_grouping_key" name, (::String | ::Symbol) value) -> void + | ("process_id" name, (::String | ::Symbol) value) -> void + | ("current_host_cpu_usage" name, (::Float | ::Integer) value) -> void + | ("current_host_mem_usage" name, (::Float | ::Integer) value) -> void + end + + # 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. --) + class WorkerHeartbeat < ::Google::Protobuf::AbstractMessage + + # Worker identifier, should be unique for the namespace. + # It is distinct from worker identity, which is not necessarily namespace-unique. + attr_reader worker_instance_key(): ::String + attr_writer worker_instance_key(): ::String | ::Symbol + def clear_worker_instance_key: () -> void + + # 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. + attr_reader worker_identity(): ::String + attr_writer worker_identity(): ::String | ::Symbol + def clear_worker_identity: () -> void + + # Worker host information. + attr_accessor host_info(): ::Temporalio::Api::Worker::V1::WorkerHostInfo? + def has_host_info?: () -> bool + def clear_host_info: () -> void + + # Task queue this worker is polling for tasks. + attr_reader task_queue(): ::String + attr_writer task_queue(): ::String | ::Symbol + def clear_task_queue: () -> void + + attr_accessor deployment_version(): ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? + def has_deployment_version?: () -> bool + def clear_deployment_version: () -> void + + attr_reader sdk_name(): ::String + attr_writer sdk_name(): ::String | ::Symbol + def clear_sdk_name: () -> void + + attr_reader sdk_version(): ::String + attr_writer sdk_version(): ::String | ::Symbol + def clear_sdk_version: () -> void + + # Worker status. Defined by SDK. + attr_reader status(): ::Temporalio::Api::Enums::V1::WorkerStatus::names | ::Integer + attr_writer status(): ::Temporalio::Api::Enums::V1::WorkerStatus::names | ::Temporalio::Api::Enums::V1::WorkerStatus::strings | ::Integer | ::Float + attr_reader status_const(): ::Integer + def clear_status: () -> void + + # Worker start time. + # It can be used to determine worker uptime. (current time - start time) + attr_reader start_time(): ::Google::Protobuf::Timestamp? + attr_writer start_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_start_time?: () -> bool + def clear_start_time: () -> void + + # 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. + attr_reader heartbeat_time(): ::Google::Protobuf::Timestamp? + attr_writer heartbeat_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_heartbeat_time?: () -> bool + def clear_heartbeat_time: () -> void + + # Elapsed time since the last heartbeat from the worker. + attr_reader elapsed_since_last_heartbeat(): ::Google::Protobuf::Duration? + attr_writer elapsed_since_last_heartbeat(): (::Google::Protobuf::Duration | ::int)? + def has_elapsed_since_last_heartbeat?: () -> bool + def clear_elapsed_since_last_heartbeat: () -> void + + attr_accessor workflow_task_slots_info(): ::Temporalio::Api::Worker::V1::WorkerSlotsInfo? + def has_workflow_task_slots_info?: () -> bool + def clear_workflow_task_slots_info: () -> void + + attr_accessor activity_task_slots_info(): ::Temporalio::Api::Worker::V1::WorkerSlotsInfo? + def has_activity_task_slots_info?: () -> bool + def clear_activity_task_slots_info: () -> void + + attr_accessor nexus_task_slots_info(): ::Temporalio::Api::Worker::V1::WorkerSlotsInfo? + def has_nexus_task_slots_info?: () -> bool + def clear_nexus_task_slots_info: () -> void + + attr_accessor local_activity_slots_info(): ::Temporalio::Api::Worker::V1::WorkerSlotsInfo? + def has_local_activity_slots_info?: () -> bool + def clear_local_activity_slots_info: () -> void + + attr_accessor workflow_poller_info(): ::Temporalio::Api::Worker::V1::WorkerPollerInfo? + def has_workflow_poller_info?: () -> bool + def clear_workflow_poller_info: () -> void + + attr_accessor workflow_sticky_poller_info(): ::Temporalio::Api::Worker::V1::WorkerPollerInfo? + def has_workflow_sticky_poller_info?: () -> bool + def clear_workflow_sticky_poller_info: () -> void + + attr_accessor activity_poller_info(): ::Temporalio::Api::Worker::V1::WorkerPollerInfo? + def has_activity_poller_info?: () -> bool + def clear_activity_poller_info: () -> void + + attr_accessor nexus_poller_info(): ::Temporalio::Api::Worker::V1::WorkerPollerInfo? + def has_nexus_poller_info?: () -> bool + def clear_nexus_poller_info: () -> void + + # A Workflow Task found a cached Workflow Execution to run against. + attr_reader total_sticky_cache_hit(): ::Integer + attr_writer total_sticky_cache_hit(): ::Integer | ::Float + def clear_total_sticky_cache_hit: () -> void + + # A Workflow Task did not find a cached Workflow execution to run against. + attr_reader total_sticky_cache_miss(): ::Integer + attr_writer total_sticky_cache_miss(): ::Integer | ::Float + def clear_total_sticky_cache_miss: () -> void + + # Current cache size, expressed in number of Workflow Executions. + attr_reader current_sticky_cache_size(): ::Integer + attr_writer current_sticky_cache_size(): ::Integer | ::Float + def clear_current_sticky_cache_size: () -> void + + # Plugins currently in use by this SDK. + attr_accessor plugins(): ::Google::Protobuf::RepeatedField + def clear_plugins: () -> void + + # Storage drivers in use by this SDK. + attr_accessor drivers(): ::Google::Protobuf::RepeatedField + def clear_drivers: () -> void + + type init_map = { + worker_instance_key: (::String | ::Symbol)?, + "worker_instance_key" => (::String | ::Symbol)?, + worker_identity: (::String | ::Symbol)?, + "worker_identity" => (::String | ::Symbol)?, + host_info: (::Temporalio::Api::Worker::V1::WorkerHostInfo | ::Temporalio::Api::Worker::V1::WorkerHostInfo::init_map)?, + "host_info" => (::Temporalio::Api::Worker::V1::WorkerHostInfo | ::Temporalio::Api::Worker::V1::WorkerHostInfo::init_map)?, + task_queue: (::String | ::Symbol)?, + "task_queue" => (::String | ::Symbol)?, + deployment_version: (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?, + "deployment_version" => (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?, + sdk_name: (::String | ::Symbol)?, + "sdk_name" => (::String | ::Symbol)?, + sdk_version: (::String | ::Symbol)?, + "sdk_version" => (::String | ::Symbol)?, + status: (::Temporalio::Api::Enums::V1::WorkerStatus::names | ::Temporalio::Api::Enums::V1::WorkerStatus::strings | ::Integer | ::Float)?, + "status" => (::Temporalio::Api::Enums::V1::WorkerStatus::names | ::Temporalio::Api::Enums::V1::WorkerStatus::strings | ::Integer | ::Float)?, + start_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "start_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + heartbeat_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "heartbeat_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + elapsed_since_last_heartbeat: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "elapsed_since_last_heartbeat" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + workflow_task_slots_info: (::Temporalio::Api::Worker::V1::WorkerSlotsInfo | ::Temporalio::Api::Worker::V1::WorkerSlotsInfo::init_map)?, + "workflow_task_slots_info" => (::Temporalio::Api::Worker::V1::WorkerSlotsInfo | ::Temporalio::Api::Worker::V1::WorkerSlotsInfo::init_map)?, + activity_task_slots_info: (::Temporalio::Api::Worker::V1::WorkerSlotsInfo | ::Temporalio::Api::Worker::V1::WorkerSlotsInfo::init_map)?, + "activity_task_slots_info" => (::Temporalio::Api::Worker::V1::WorkerSlotsInfo | ::Temporalio::Api::Worker::V1::WorkerSlotsInfo::init_map)?, + nexus_task_slots_info: (::Temporalio::Api::Worker::V1::WorkerSlotsInfo | ::Temporalio::Api::Worker::V1::WorkerSlotsInfo::init_map)?, + "nexus_task_slots_info" => (::Temporalio::Api::Worker::V1::WorkerSlotsInfo | ::Temporalio::Api::Worker::V1::WorkerSlotsInfo::init_map)?, + local_activity_slots_info: (::Temporalio::Api::Worker::V1::WorkerSlotsInfo | ::Temporalio::Api::Worker::V1::WorkerSlotsInfo::init_map)?, + "local_activity_slots_info" => (::Temporalio::Api::Worker::V1::WorkerSlotsInfo | ::Temporalio::Api::Worker::V1::WorkerSlotsInfo::init_map)?, + workflow_poller_info: (::Temporalio::Api::Worker::V1::WorkerPollerInfo | ::Temporalio::Api::Worker::V1::WorkerPollerInfo::init_map)?, + "workflow_poller_info" => (::Temporalio::Api::Worker::V1::WorkerPollerInfo | ::Temporalio::Api::Worker::V1::WorkerPollerInfo::init_map)?, + workflow_sticky_poller_info: (::Temporalio::Api::Worker::V1::WorkerPollerInfo | ::Temporalio::Api::Worker::V1::WorkerPollerInfo::init_map)?, + "workflow_sticky_poller_info" => (::Temporalio::Api::Worker::V1::WorkerPollerInfo | ::Temporalio::Api::Worker::V1::WorkerPollerInfo::init_map)?, + activity_poller_info: (::Temporalio::Api::Worker::V1::WorkerPollerInfo | ::Temporalio::Api::Worker::V1::WorkerPollerInfo::init_map)?, + "activity_poller_info" => (::Temporalio::Api::Worker::V1::WorkerPollerInfo | ::Temporalio::Api::Worker::V1::WorkerPollerInfo::init_map)?, + nexus_poller_info: (::Temporalio::Api::Worker::V1::WorkerPollerInfo | ::Temporalio::Api::Worker::V1::WorkerPollerInfo::init_map)?, + "nexus_poller_info" => (::Temporalio::Api::Worker::V1::WorkerPollerInfo | ::Temporalio::Api::Worker::V1::WorkerPollerInfo::init_map)?, + total_sticky_cache_hit: (::Integer | ::Float)?, + "total_sticky_cache_hit" => (::Integer | ::Float)?, + total_sticky_cache_miss: (::Integer | ::Float)?, + "total_sticky_cache_miss" => (::Integer | ::Float)?, + current_sticky_cache_size: (::Integer | ::Float)?, + "current_sticky_cache_size" => (::Integer | ::Float)?, + plugins: ::Array[::Temporalio::Api::Worker::V1::PluginInfo]?, + "plugins" => ::Array[::Temporalio::Api::Worker::V1::PluginInfo]?, + drivers: ::Array[::Temporalio::Api::Worker::V1::StorageDriverInfo]?, + "drivers" => ::Array[::Temporalio::Api::Worker::V1::StorageDriverInfo]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("worker_instance_key" name) -> ::String + | ("worker_identity" name) -> ::String + | ("host_info" name) -> ::Temporalio::Api::Worker::V1::WorkerHostInfo? + | ("task_queue" name) -> ::String + | ("deployment_version" name) -> ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? + | ("sdk_name" name) -> ::String + | ("sdk_version" name) -> ::String + | ("status" name) -> (::Temporalio::Api::Enums::V1::WorkerStatus::names | ::Integer) + | ("start_time" name) -> ::Google::Protobuf::Timestamp? + | ("heartbeat_time" name) -> ::Google::Protobuf::Timestamp? + | ("elapsed_since_last_heartbeat" name) -> ::Google::Protobuf::Duration? + | ("workflow_task_slots_info" name) -> ::Temporalio::Api::Worker::V1::WorkerSlotsInfo? + | ("activity_task_slots_info" name) -> ::Temporalio::Api::Worker::V1::WorkerSlotsInfo? + | ("nexus_task_slots_info" name) -> ::Temporalio::Api::Worker::V1::WorkerSlotsInfo? + | ("local_activity_slots_info" name) -> ::Temporalio::Api::Worker::V1::WorkerSlotsInfo? + | ("workflow_poller_info" name) -> ::Temporalio::Api::Worker::V1::WorkerPollerInfo? + | ("workflow_sticky_poller_info" name) -> ::Temporalio::Api::Worker::V1::WorkerPollerInfo? + | ("activity_poller_info" name) -> ::Temporalio::Api::Worker::V1::WorkerPollerInfo? + | ("nexus_poller_info" name) -> ::Temporalio::Api::Worker::V1::WorkerPollerInfo? + | ("total_sticky_cache_hit" name) -> ::Integer + | ("total_sticky_cache_miss" name) -> ::Integer + | ("current_sticky_cache_size" name) -> ::Integer + | ("plugins" name) -> ::Google::Protobuf::RepeatedField + | ("drivers" name) -> ::Google::Protobuf::RepeatedField + + def []=: + ("worker_instance_key" name, (::String | ::Symbol) value) -> void + | ("worker_identity" name, (::String | ::Symbol) value) -> void + | ("host_info" name, ::Temporalio::Api::Worker::V1::WorkerHostInfo? value) -> void + | ("task_queue" name, (::String | ::Symbol) value) -> void + | ("deployment_version" name, ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? value) -> void + | ("sdk_name" name, (::String | ::Symbol) value) -> void + | ("sdk_version" name, (::String | ::Symbol) value) -> void + | ("status" name, (::Temporalio::Api::Enums::V1::WorkerStatus::names | ::Temporalio::Api::Enums::V1::WorkerStatus::strings | ::Integer | ::Float) value) -> void + | ("start_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("heartbeat_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("elapsed_since_last_heartbeat" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("workflow_task_slots_info" name, ::Temporalio::Api::Worker::V1::WorkerSlotsInfo? value) -> void + | ("activity_task_slots_info" name, ::Temporalio::Api::Worker::V1::WorkerSlotsInfo? value) -> void + | ("nexus_task_slots_info" name, ::Temporalio::Api::Worker::V1::WorkerSlotsInfo? value) -> void + | ("local_activity_slots_info" name, ::Temporalio::Api::Worker::V1::WorkerSlotsInfo? value) -> void + | ("workflow_poller_info" name, ::Temporalio::Api::Worker::V1::WorkerPollerInfo? value) -> void + | ("workflow_sticky_poller_info" name, ::Temporalio::Api::Worker::V1::WorkerPollerInfo? value) -> void + | ("activity_poller_info" name, ::Temporalio::Api::Worker::V1::WorkerPollerInfo? value) -> void + | ("nexus_poller_info" name, ::Temporalio::Api::Worker::V1::WorkerPollerInfo? value) -> void + | ("total_sticky_cache_hit" name, (::Integer | ::Float) value) -> void + | ("total_sticky_cache_miss" name, (::Integer | ::Float) value) -> void + | ("current_sticky_cache_size" name, (::Integer | ::Float) value) -> void + | ("plugins" name, ::Google::Protobuf::RepeatedField value) -> void + | ("drivers" name, ::Google::Protobuf::RepeatedField value) -> void + end + + # Detailed worker information. + class WorkerInfo < ::Google::Protobuf::AbstractMessage + + attr_accessor worker_heartbeat(): ::Temporalio::Api::Worker::V1::WorkerHeartbeat? + def has_worker_heartbeat?: () -> bool + def clear_worker_heartbeat: () -> void + + type init_map = { + worker_heartbeat: (::Temporalio::Api::Worker::V1::WorkerHeartbeat | ::Temporalio::Api::Worker::V1::WorkerHeartbeat::init_map)?, + "worker_heartbeat" => (::Temporalio::Api::Worker::V1::WorkerHeartbeat | ::Temporalio::Api::Worker::V1::WorkerHeartbeat::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("worker_heartbeat" name) -> ::Temporalio::Api::Worker::V1::WorkerHeartbeat? + + def []=: + ("worker_heartbeat" name, ::Temporalio::Api::Worker::V1::WorkerHeartbeat? value) -> void + end + + # Limited worker information returned in the list response. + # When adding fields here, ensure that it is also added to WorkerInfo (as it carries the full worker information). + class WorkerListInfo < ::Google::Protobuf::AbstractMessage + + # Worker identifier, should be unique for the namespace. + # It is distinct from worker identity, which is not necessarily namespace-unique. + attr_reader worker_instance_key(): ::String + attr_writer worker_instance_key(): ::String | ::Symbol + def clear_worker_instance_key: () -> void + + # 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. + attr_reader worker_identity(): ::String + attr_writer worker_identity(): ::String | ::Symbol + def clear_worker_identity: () -> void + + # Task queue this worker is polling for tasks. + attr_reader task_queue(): ::String + attr_writer task_queue(): ::String | ::Symbol + def clear_task_queue: () -> void + + attr_accessor deployment_version(): ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? + def has_deployment_version?: () -> bool + def clear_deployment_version: () -> void + + attr_reader sdk_name(): ::String + attr_writer sdk_name(): ::String | ::Symbol + def clear_sdk_name: () -> void + + attr_reader sdk_version(): ::String + attr_writer sdk_version(): ::String | ::Symbol + def clear_sdk_version: () -> void + + # Worker status. Defined by SDK. + attr_reader status(): ::Temporalio::Api::Enums::V1::WorkerStatus::names | ::Integer + attr_writer status(): ::Temporalio::Api::Enums::V1::WorkerStatus::names | ::Temporalio::Api::Enums::V1::WorkerStatus::strings | ::Integer | ::Float + attr_reader status_const(): ::Integer + def clear_status: () -> void + + # Worker start time. + # It can be used to determine worker uptime. (current time - start time) + attr_reader start_time(): ::Google::Protobuf::Timestamp? + attr_writer start_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_start_time?: () -> bool + def clear_start_time: () -> void + + # Worker host identifier. + attr_reader host_name(): ::String + attr_writer host_name(): ::String | ::Symbol + def clear_host_name: () -> void + + # 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}" + attr_reader worker_grouping_key(): ::String + attr_writer worker_grouping_key(): ::String | ::Symbol + def clear_worker_grouping_key: () -> void + + # Worker process identifier. This id only needs to be unique + # within one host (so using e.g. a unix pid would be appropriate). + attr_reader process_id(): ::String + attr_writer process_id(): ::String | ::Symbol + def clear_process_id: () -> void + + # Plugins currently in use by this SDK. + attr_accessor plugins(): ::Google::Protobuf::RepeatedField + def clear_plugins: () -> void + + # Storage drivers in use by this SDK. + attr_accessor drivers(): ::Google::Protobuf::RepeatedField + def clear_drivers: () -> void + + type init_map = { + worker_instance_key: (::String | ::Symbol)?, + "worker_instance_key" => (::String | ::Symbol)?, + worker_identity: (::String | ::Symbol)?, + "worker_identity" => (::String | ::Symbol)?, + task_queue: (::String | ::Symbol)?, + "task_queue" => (::String | ::Symbol)?, + deployment_version: (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?, + "deployment_version" => (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?, + sdk_name: (::String | ::Symbol)?, + "sdk_name" => (::String | ::Symbol)?, + sdk_version: (::String | ::Symbol)?, + "sdk_version" => (::String | ::Symbol)?, + status: (::Temporalio::Api::Enums::V1::WorkerStatus::names | ::Temporalio::Api::Enums::V1::WorkerStatus::strings | ::Integer | ::Float)?, + "status" => (::Temporalio::Api::Enums::V1::WorkerStatus::names | ::Temporalio::Api::Enums::V1::WorkerStatus::strings | ::Integer | ::Float)?, + start_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "start_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + host_name: (::String | ::Symbol)?, + "host_name" => (::String | ::Symbol)?, + worker_grouping_key: (::String | ::Symbol)?, + "worker_grouping_key" => (::String | ::Symbol)?, + process_id: (::String | ::Symbol)?, + "process_id" => (::String | ::Symbol)?, + plugins: ::Array[::Temporalio::Api::Worker::V1::PluginInfo]?, + "plugins" => ::Array[::Temporalio::Api::Worker::V1::PluginInfo]?, + drivers: ::Array[::Temporalio::Api::Worker::V1::StorageDriverInfo]?, + "drivers" => ::Array[::Temporalio::Api::Worker::V1::StorageDriverInfo]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("worker_instance_key" name) -> ::String + | ("worker_identity" name) -> ::String + | ("task_queue" name) -> ::String + | ("deployment_version" name) -> ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? + | ("sdk_name" name) -> ::String + | ("sdk_version" name) -> ::String + | ("status" name) -> (::Temporalio::Api::Enums::V1::WorkerStatus::names | ::Integer) + | ("start_time" name) -> ::Google::Protobuf::Timestamp? + | ("host_name" name) -> ::String + | ("worker_grouping_key" name) -> ::String + | ("process_id" name) -> ::String + | ("plugins" name) -> ::Google::Protobuf::RepeatedField + | ("drivers" name) -> ::Google::Protobuf::RepeatedField + + def []=: + ("worker_instance_key" name, (::String | ::Symbol) value) -> void + | ("worker_identity" name, (::String | ::Symbol) value) -> void + | ("task_queue" name, (::String | ::Symbol) value) -> void + | ("deployment_version" name, ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? value) -> void + | ("sdk_name" name, (::String | ::Symbol) value) -> void + | ("sdk_version" name, (::String | ::Symbol) value) -> void + | ("status" name, (::Temporalio::Api::Enums::V1::WorkerStatus::names | ::Temporalio::Api::Enums::V1::WorkerStatus::strings | ::Integer | ::Float) value) -> void + | ("start_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("host_name" name, (::String | ::Symbol) value) -> void + | ("worker_grouping_key" name, (::String | ::Symbol) value) -> void + | ("process_id" name, (::String | ::Symbol) value) -> void + | ("plugins" name, ::Google::Protobuf::RepeatedField value) -> void + | ("drivers" name, ::Google::Protobuf::RepeatedField value) -> void + end + + class PluginInfo < ::Google::Protobuf::AbstractMessage + + # The name of the plugin, required. + attr_reader name(): ::String + attr_writer name(): ::String | ::Symbol + def clear_name: () -> void + + # The version of the plugin, may be empty. + attr_reader version(): ::String + attr_writer version(): ::String | ::Symbol + def clear_version: () -> void + + type init_map = { + name: (::String | ::Symbol)?, + "name" => (::String | ::Symbol)?, + version: (::String | ::Symbol)?, + "version" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("name" name) -> ::String + | ("version" name) -> ::String + + def []=: + ("name" name, (::String | ::Symbol) value) -> void + | ("version" name, (::String | ::Symbol) value) -> void + end + + class StorageDriverInfo < ::Google::Protobuf::AbstractMessage + + # The type of the driver, required. + attr_reader type(): ::String + attr_writer type(): ::String | ::Symbol + def clear_type: () -> void + + type init_map = { + type: (::String | ::Symbol)?, + "type" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("type" name) -> ::String + + def []=: + ("type" name, (::String | ::Symbol) value) -> void + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/api/workflow/v1/message.rbs b/temporalio/sig/temporalio/api/workflow/v1/message.rbs new file mode 100644 index 00000000..3d150e5e --- /dev/null +++ b/temporalio/sig/temporalio/api/workflow/v1/message.rbs @@ -0,0 +1,2205 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/api/workflow/v1/message.proto + +module Temporalio + module Api + module Workflow + module V1 + # Hold basic information about a workflow execution. + # This structure is a part of visibility, and thus contain a limited subset of information. + class WorkflowExecutionInfo < ::Google::Protobuf::AbstractMessage + + attr_accessor execution(): ::Temporalio::Api::Common::V1::WorkflowExecution? + def has_execution?: () -> bool + def clear_execution: () -> void + + attr_accessor type(): ::Temporalio::Api::Common::V1::WorkflowType? + def has_type?: () -> bool + def clear_type: () -> void + + attr_reader start_time(): ::Google::Protobuf::Timestamp? + attr_writer start_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_start_time?: () -> bool + def clear_start_time: () -> void + + attr_reader close_time(): ::Google::Protobuf::Timestamp? + attr_writer close_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_close_time?: () -> bool + def clear_close_time: () -> void + + attr_reader status(): ::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::names | ::Integer + attr_writer status(): ::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::names | ::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::strings | ::Integer | ::Float + attr_reader status_const(): ::Integer + def clear_status: () -> void + + attr_reader history_length(): ::Integer + attr_writer history_length(): ::Integer | ::Float + def clear_history_length: () -> void + + attr_reader parent_namespace_id(): ::String + attr_writer parent_namespace_id(): ::String | ::Symbol + def clear_parent_namespace_id: () -> void + + attr_accessor parent_execution(): ::Temporalio::Api::Common::V1::WorkflowExecution? + def has_parent_execution?: () -> bool + def clear_parent_execution: () -> void + + attr_reader execution_time(): ::Google::Protobuf::Timestamp? + attr_writer execution_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_execution_time?: () -> bool + def clear_execution_time: () -> void + + attr_accessor memo(): ::Temporalio::Api::Common::V1::Memo? + def has_memo?: () -> bool + def clear_memo: () -> void + + attr_accessor search_attributes(): ::Temporalio::Api::Common::V1::SearchAttributes? + def has_search_attributes?: () -> bool + def clear_search_attributes: () -> void + + attr_accessor auto_reset_points(): ::Temporalio::Api::Workflow::V1::ResetPoints? + def has_auto_reset_points?: () -> bool + def clear_auto_reset_points: () -> void + + attr_reader task_queue(): ::String + attr_writer task_queue(): ::String | ::Symbol + def clear_task_queue: () -> void + + attr_reader state_transition_count(): ::Integer + attr_writer state_transition_count(): ::Integer | ::Float + def clear_state_transition_count: () -> void + + attr_reader history_size_bytes(): ::Integer + attr_writer history_size_bytes(): ::Integer | ::Float + def clear_history_size_bytes: () -> void + + # 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 + attr_accessor most_recent_worker_version_stamp(): ::Temporalio::Api::Common::V1::WorkerVersionStamp? + def has_most_recent_worker_version_stamp?: () -> bool + def clear_most_recent_worker_version_stamp: () -> void + + # Workflow execution duration is defined as difference between close time and execution time. + # This field is only populated if the workflow is closed. + attr_reader execution_duration(): ::Google::Protobuf::Duration? + attr_writer execution_duration(): (::Google::Protobuf::Duration | ::int)? + def has_execution_duration?: () -> bool + def clear_execution_duration: () -> void + + # 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. + attr_accessor root_execution(): ::Temporalio::Api::Common::V1::WorkflowExecution? + def has_root_execution?: () -> bool + def clear_root_execution: () -> void + + # 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 + attr_reader assigned_build_id(): ::String + attr_writer assigned_build_id(): ::String | ::Symbol + def clear_assigned_build_id: () -> void + + # 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 + attr_reader inherited_build_id(): ::String + attr_writer inherited_build_id(): ::String | ::Symbol + def clear_inherited_build_id: () -> void + + # 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 + attr_reader first_run_id(): ::String + attr_writer first_run_id(): ::String | ::Symbol + def clear_first_run_id: () -> void + + # 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. + attr_accessor versioning_info(): ::Temporalio::Api::Workflow::V1::WorkflowExecutionVersioningInfo? + def has_versioning_info?: () -> bool + def clear_versioning_info: () -> void + + # The name of Worker Deployment that completed the most recent workflow task. + # Experimental. Worker Deployments are experimental and might change in the future. + attr_reader worker_deployment_name(): ::String + attr_writer worker_deployment_name(): ::String | ::Symbol + def clear_worker_deployment_name: () -> void + + # Priority metadata + attr_accessor priority(): ::Temporalio::Api::Common::V1::Priority? + def has_priority?: () -> bool + def clear_priority: () -> void + + # Total size in bytes of all external payloads referenced in workflow history. + attr_reader external_payload_size_bytes(): ::Integer + attr_writer external_payload_size_bytes(): ::Integer | ::Float + def clear_external_payload_size_bytes: () -> void + + # Count of external payloads referenced in workflow history. + attr_reader external_payload_count(): ::Integer + attr_writer external_payload_count(): ::Integer | ::Float + def clear_external_payload_count: () -> void + + type init_map = { + execution: (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + "execution" => (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + type: (::Temporalio::Api::Common::V1::WorkflowType | ::Temporalio::Api::Common::V1::WorkflowType::init_map)?, + "type" => (::Temporalio::Api::Common::V1::WorkflowType | ::Temporalio::Api::Common::V1::WorkflowType::init_map)?, + start_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "start_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + close_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "close_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + status: (::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::names | ::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::strings | ::Integer | ::Float)?, + "status" => (::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::names | ::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::strings | ::Integer | ::Float)?, + history_length: (::Integer | ::Float)?, + "history_length" => (::Integer | ::Float)?, + parent_namespace_id: (::String | ::Symbol)?, + "parent_namespace_id" => (::String | ::Symbol)?, + parent_execution: (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + "parent_execution" => (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + execution_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "execution_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + memo: (::Temporalio::Api::Common::V1::Memo | ::Temporalio::Api::Common::V1::Memo::init_map)?, + "memo" => (::Temporalio::Api::Common::V1::Memo | ::Temporalio::Api::Common::V1::Memo::init_map)?, + search_attributes: (::Temporalio::Api::Common::V1::SearchAttributes | ::Temporalio::Api::Common::V1::SearchAttributes::init_map)?, + "search_attributes" => (::Temporalio::Api::Common::V1::SearchAttributes | ::Temporalio::Api::Common::V1::SearchAttributes::init_map)?, + auto_reset_points: (::Temporalio::Api::Workflow::V1::ResetPoints | ::Temporalio::Api::Workflow::V1::ResetPoints::init_map)?, + "auto_reset_points" => (::Temporalio::Api::Workflow::V1::ResetPoints | ::Temporalio::Api::Workflow::V1::ResetPoints::init_map)?, + task_queue: (::String | ::Symbol)?, + "task_queue" => (::String | ::Symbol)?, + state_transition_count: (::Integer | ::Float)?, + "state_transition_count" => (::Integer | ::Float)?, + history_size_bytes: (::Integer | ::Float)?, + "history_size_bytes" => (::Integer | ::Float)?, + most_recent_worker_version_stamp: (::Temporalio::Api::Common::V1::WorkerVersionStamp | ::Temporalio::Api::Common::V1::WorkerVersionStamp::init_map)?, + "most_recent_worker_version_stamp" => (::Temporalio::Api::Common::V1::WorkerVersionStamp | ::Temporalio::Api::Common::V1::WorkerVersionStamp::init_map)?, + execution_duration: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "execution_duration" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + root_execution: (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + "root_execution" => (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + assigned_build_id: (::String | ::Symbol)?, + "assigned_build_id" => (::String | ::Symbol)?, + inherited_build_id: (::String | ::Symbol)?, + "inherited_build_id" => (::String | ::Symbol)?, + first_run_id: (::String | ::Symbol)?, + "first_run_id" => (::String | ::Symbol)?, + versioning_info: (::Temporalio::Api::Workflow::V1::WorkflowExecutionVersioningInfo | ::Temporalio::Api::Workflow::V1::WorkflowExecutionVersioningInfo::init_map)?, + "versioning_info" => (::Temporalio::Api::Workflow::V1::WorkflowExecutionVersioningInfo | ::Temporalio::Api::Workflow::V1::WorkflowExecutionVersioningInfo::init_map)?, + worker_deployment_name: (::String | ::Symbol)?, + "worker_deployment_name" => (::String | ::Symbol)?, + priority: (::Temporalio::Api::Common::V1::Priority | ::Temporalio::Api::Common::V1::Priority::init_map)?, + "priority" => (::Temporalio::Api::Common::V1::Priority | ::Temporalio::Api::Common::V1::Priority::init_map)?, + external_payload_size_bytes: (::Integer | ::Float)?, + "external_payload_size_bytes" => (::Integer | ::Float)?, + external_payload_count: (::Integer | ::Float)?, + "external_payload_count" => (::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("execution" name) -> ::Temporalio::Api::Common::V1::WorkflowExecution? + | ("type" name) -> ::Temporalio::Api::Common::V1::WorkflowType? + | ("start_time" name) -> ::Google::Protobuf::Timestamp? + | ("close_time" name) -> ::Google::Protobuf::Timestamp? + | ("status" name) -> (::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::names | ::Integer) + | ("history_length" name) -> ::Integer + | ("parent_namespace_id" name) -> ::String + | ("parent_execution" name) -> ::Temporalio::Api::Common::V1::WorkflowExecution? + | ("execution_time" name) -> ::Google::Protobuf::Timestamp? + | ("memo" name) -> ::Temporalio::Api::Common::V1::Memo? + | ("search_attributes" name) -> ::Temporalio::Api::Common::V1::SearchAttributes? + | ("auto_reset_points" name) -> ::Temporalio::Api::Workflow::V1::ResetPoints? + | ("task_queue" name) -> ::String + | ("state_transition_count" name) -> ::Integer + | ("history_size_bytes" name) -> ::Integer + | ("most_recent_worker_version_stamp" name) -> ::Temporalio::Api::Common::V1::WorkerVersionStamp? + | ("execution_duration" name) -> ::Google::Protobuf::Duration? + | ("root_execution" name) -> ::Temporalio::Api::Common::V1::WorkflowExecution? + | ("assigned_build_id" name) -> ::String + | ("inherited_build_id" name) -> ::String + | ("first_run_id" name) -> ::String + | ("versioning_info" name) -> ::Temporalio::Api::Workflow::V1::WorkflowExecutionVersioningInfo? + | ("worker_deployment_name" name) -> ::String + | ("priority" name) -> ::Temporalio::Api::Common::V1::Priority? + | ("external_payload_size_bytes" name) -> ::Integer + | ("external_payload_count" name) -> ::Integer + + def []=: + ("execution" name, ::Temporalio::Api::Common::V1::WorkflowExecution? value) -> void + | ("type" name, ::Temporalio::Api::Common::V1::WorkflowType? value) -> void + | ("start_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("close_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("status" name, (::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::names | ::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::strings | ::Integer | ::Float) value) -> void + | ("history_length" name, (::Integer | ::Float) value) -> void + | ("parent_namespace_id" name, (::String | ::Symbol) value) -> void + | ("parent_execution" name, ::Temporalio::Api::Common::V1::WorkflowExecution? value) -> void + | ("execution_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("memo" name, ::Temporalio::Api::Common::V1::Memo? value) -> void + | ("search_attributes" name, ::Temporalio::Api::Common::V1::SearchAttributes? value) -> void + | ("auto_reset_points" name, ::Temporalio::Api::Workflow::V1::ResetPoints? value) -> void + | ("task_queue" name, (::String | ::Symbol) value) -> void + | ("state_transition_count" name, (::Integer | ::Float) value) -> void + | ("history_size_bytes" name, (::Integer | ::Float) value) -> void + | ("most_recent_worker_version_stamp" name, ::Temporalio::Api::Common::V1::WorkerVersionStamp? value) -> void + | ("execution_duration" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("root_execution" name, ::Temporalio::Api::Common::V1::WorkflowExecution? value) -> void + | ("assigned_build_id" name, (::String | ::Symbol) value) -> void + | ("inherited_build_id" name, (::String | ::Symbol) value) -> void + | ("first_run_id" name, (::String | ::Symbol) value) -> void + | ("versioning_info" name, ::Temporalio::Api::Workflow::V1::WorkflowExecutionVersioningInfo? value) -> void + | ("worker_deployment_name" name, (::String | ::Symbol) value) -> void + | ("priority" name, ::Temporalio::Api::Common::V1::Priority? value) -> void + | ("external_payload_size_bytes" name, (::Integer | ::Float) value) -> void + | ("external_payload_count" name, (::Integer | ::Float) value) -> void + end + + # Holds all the extra information about workflow execution that is not part of Visibility. + class WorkflowExecutionExtendedInfo < ::Google::Protobuf::AbstractMessage + + # Workflow execution expiration time is defined as workflow start time plus expiration timeout. + # Workflow start time may change after workflow reset. + attr_reader execution_expiration_time(): ::Google::Protobuf::Timestamp? + attr_writer execution_expiration_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_execution_expiration_time?: () -> bool + def clear_execution_expiration_time: () -> void + + # Workflow run expiration time is defined as current workflow run start time plus workflow run timeout. + attr_reader run_expiration_time(): ::Google::Protobuf::Timestamp? + attr_writer run_expiration_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_run_expiration_time?: () -> bool + def clear_run_expiration_time: () -> void + + # indicates if the workflow received a cancel request + attr_accessor cancel_requested(): bool + def clear_cancel_requested: () -> void + + # Last workflow reset time. Nil if the workflow was never reset. + attr_reader last_reset_time(): ::Google::Protobuf::Timestamp? + attr_writer last_reset_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_last_reset_time?: () -> bool + def clear_last_reset_time: () -> void + + # Original workflow start time. + attr_reader original_start_time(): ::Google::Protobuf::Timestamp? + attr_writer original_start_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_original_start_time?: () -> bool + def clear_original_start_time: () -> void + + # 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. + attr_reader reset_run_id(): ::String + attr_writer reset_run_id(): ::String | ::Symbol + def clear_reset_run_id: () -> void + + # 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). + attr_accessor request_id_infos(): ::Google::Protobuf::Map[::String, ::Temporalio::Api::Workflow::V1::RequestIdInfo] + def clear_request_id_infos: () -> void + + # Information about the workflow execution pause operation. + attr_accessor pause_info(): ::Temporalio::Api::Workflow::V1::WorkflowExecutionPauseInfo? + def has_pause_info?: () -> bool + def clear_pause_info: () -> void + + type init_map = { + execution_expiration_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "execution_expiration_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + run_expiration_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "run_expiration_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + cancel_requested: bool?, + "cancel_requested" => bool?, + last_reset_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "last_reset_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + original_start_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "original_start_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + reset_run_id: (::String | ::Symbol)?, + "reset_run_id" => (::String | ::Symbol)?, + request_id_infos: ::Hash[::String | ::Symbol, ::Temporalio::Api::Workflow::V1::RequestIdInfo]?, + "request_id_infos" => ::Hash[::String | ::Symbol, ::Temporalio::Api::Workflow::V1::RequestIdInfo]?, + pause_info: (::Temporalio::Api::Workflow::V1::WorkflowExecutionPauseInfo | ::Temporalio::Api::Workflow::V1::WorkflowExecutionPauseInfo::init_map)?, + "pause_info" => (::Temporalio::Api::Workflow::V1::WorkflowExecutionPauseInfo | ::Temporalio::Api::Workflow::V1::WorkflowExecutionPauseInfo::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("execution_expiration_time" name) -> ::Google::Protobuf::Timestamp? + | ("run_expiration_time" name) -> ::Google::Protobuf::Timestamp? + | ("cancel_requested" name) -> bool + | ("last_reset_time" name) -> ::Google::Protobuf::Timestamp? + | ("original_start_time" name) -> ::Google::Protobuf::Timestamp? + | ("reset_run_id" name) -> ::String + | ("request_id_infos" name) -> (::Google::Protobuf::Map[::String, ::Temporalio::Api::Workflow::V1::RequestIdInfo]) + | ("pause_info" name) -> ::Temporalio::Api::Workflow::V1::WorkflowExecutionPauseInfo? + + def []=: + ("execution_expiration_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("run_expiration_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("cancel_requested" name, bool value) -> void + | ("last_reset_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("original_start_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("reset_run_id" name, (::String | ::Symbol) value) -> void + | ("request_id_infos" name, (::Google::Protobuf::Map[::String, ::Temporalio::Api::Workflow::V1::RequestIdInfo]) value) -> void + | ("pause_info" name, ::Temporalio::Api::Workflow::V1::WorkflowExecutionPauseInfo? value) -> void + end + + # Holds all the information about worker versioning for a particular workflow execution. + # Experimental. Versioning info is experimental and might change in the future. + class WorkflowExecutionVersioningInfo < ::Google::Protobuf::AbstractMessage + + # 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. + attr_reader behavior(): ::Temporalio::Api::Enums::V1::VersioningBehavior::names | ::Integer + attr_writer behavior(): ::Temporalio::Api::Enums::V1::VersioningBehavior::names | ::Temporalio::Api::Enums::V1::VersioningBehavior::strings | ::Integer | ::Float + attr_reader behavior_const(): ::Integer + def clear_behavior: () -> void + + # 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 + attr_accessor deployment(): ::Temporalio::Api::Deployment::V1::Deployment? + def has_deployment?: () -> bool + def clear_deployment: () -> void + + # Deprecated. Use `deployment_version`. + # @deprecated + attr_reader version(): ::String + attr_writer version(): ::String | ::Symbol + def clear_version: () -> void + + # 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. + attr_accessor deployment_version(): ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? + def has_deployment_version?: () -> bool + def clear_deployment_version: () -> void + + # 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. + attr_accessor versioning_override(): ::Temporalio::Api::Workflow::V1::VersioningOverride? + def has_versioning_override?: () -> bool + def clear_versioning_override: () -> void + + # 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 + attr_accessor deployment_transition(): ::Temporalio::Api::Workflow::V1::DeploymentTransition? + def has_deployment_transition?: () -> bool + def clear_deployment_transition: () -> void + + # 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. + attr_accessor version_transition(): ::Temporalio::Api::Workflow::V1::DeploymentVersionTransition? + def has_version_transition?: () -> bool + def clear_version_transition: () -> void + + # 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. + attr_reader revision_number(): ::Integer + attr_writer revision_number(): ::Integer | ::Float + def clear_revision_number: () -> void + + type init_map = { + behavior: (::Temporalio::Api::Enums::V1::VersioningBehavior::names | ::Temporalio::Api::Enums::V1::VersioningBehavior::strings | ::Integer | ::Float)?, + "behavior" => (::Temporalio::Api::Enums::V1::VersioningBehavior::names | ::Temporalio::Api::Enums::V1::VersioningBehavior::strings | ::Integer | ::Float)?, + deployment: (::Temporalio::Api::Deployment::V1::Deployment | ::Temporalio::Api::Deployment::V1::Deployment::init_map)?, + "deployment" => (::Temporalio::Api::Deployment::V1::Deployment | ::Temporalio::Api::Deployment::V1::Deployment::init_map)?, + version: (::String | ::Symbol)?, + "version" => (::String | ::Symbol)?, + deployment_version: (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?, + "deployment_version" => (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?, + versioning_override: (::Temporalio::Api::Workflow::V1::VersioningOverride | ::Temporalio::Api::Workflow::V1::VersioningOverride::init_map)?, + "versioning_override" => (::Temporalio::Api::Workflow::V1::VersioningOverride | ::Temporalio::Api::Workflow::V1::VersioningOverride::init_map)?, + deployment_transition: (::Temporalio::Api::Workflow::V1::DeploymentTransition | ::Temporalio::Api::Workflow::V1::DeploymentTransition::init_map)?, + "deployment_transition" => (::Temporalio::Api::Workflow::V1::DeploymentTransition | ::Temporalio::Api::Workflow::V1::DeploymentTransition::init_map)?, + version_transition: (::Temporalio::Api::Workflow::V1::DeploymentVersionTransition | ::Temporalio::Api::Workflow::V1::DeploymentVersionTransition::init_map)?, + "version_transition" => (::Temporalio::Api::Workflow::V1::DeploymentVersionTransition | ::Temporalio::Api::Workflow::V1::DeploymentVersionTransition::init_map)?, + revision_number: (::Integer | ::Float)?, + "revision_number" => (::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("behavior" name) -> (::Temporalio::Api::Enums::V1::VersioningBehavior::names | ::Integer) + | ("deployment" name) -> ::Temporalio::Api::Deployment::V1::Deployment? + | ("version" name) -> ::String + | ("deployment_version" name) -> ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? + | ("versioning_override" name) -> ::Temporalio::Api::Workflow::V1::VersioningOverride? + | ("deployment_transition" name) -> ::Temporalio::Api::Workflow::V1::DeploymentTransition? + | ("version_transition" name) -> ::Temporalio::Api::Workflow::V1::DeploymentVersionTransition? + | ("revision_number" name) -> ::Integer + + def []=: + ("behavior" name, (::Temporalio::Api::Enums::V1::VersioningBehavior::names | ::Temporalio::Api::Enums::V1::VersioningBehavior::strings | ::Integer | ::Float) value) -> void + | ("deployment" name, ::Temporalio::Api::Deployment::V1::Deployment? value) -> void + | ("version" name, (::String | ::Symbol) value) -> void + | ("deployment_version" name, ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? value) -> void + | ("versioning_override" name, ::Temporalio::Api::Workflow::V1::VersioningOverride? value) -> void + | ("deployment_transition" name, ::Temporalio::Api::Workflow::V1::DeploymentTransition? value) -> void + | ("version_transition" name, ::Temporalio::Api::Workflow::V1::DeploymentVersionTransition? value) -> void + | ("revision_number" name, (::Integer | ::Float) value) -> void + end + + # Holds information about ongoing transition of a workflow execution from one deployment to another. + # Deprecated. Use DeploymentVersionTransition. + class DeploymentTransition < ::Google::Protobuf::AbstractMessage + + # The target deployment of the transition. Null means a so-far-versioned workflow is + # transitioning to unversioned workers. + attr_accessor deployment(): ::Temporalio::Api::Deployment::V1::Deployment? + def has_deployment?: () -> bool + def clear_deployment: () -> void + + type init_map = { + deployment: (::Temporalio::Api::Deployment::V1::Deployment | ::Temporalio::Api::Deployment::V1::Deployment::init_map)?, + "deployment" => (::Temporalio::Api::Deployment::V1::Deployment | ::Temporalio::Api::Deployment::V1::Deployment::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("deployment" name) -> ::Temporalio::Api::Deployment::V1::Deployment? + + def []=: + ("deployment" name, ::Temporalio::Api::Deployment::V1::Deployment? value) -> void + end + + # Holds information about ongoing transition of a workflow execution from one worker + # deployment version to another. + # Experimental. Might change in the future. + class DeploymentVersionTransition < ::Google::Protobuf::AbstractMessage + + # Deprecated. Use `deployment_version`. + # @deprecated + attr_reader version(): ::String + attr_writer version(): ::String | ::Symbol + def clear_version: () -> void + + # The target Version of the transition. + # If nil, a so-far-versioned workflow is transitioning to unversioned workers. + attr_accessor deployment_version(): ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? + def has_deployment_version?: () -> bool + def clear_deployment_version: () -> void + + type init_map = { + version: (::String | ::Symbol)?, + "version" => (::String | ::Symbol)?, + deployment_version: (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?, + "deployment_version" => (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("version" name) -> ::String + | ("deployment_version" name) -> ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? + + def []=: + ("version" name, (::String | ::Symbol) value) -> void + | ("deployment_version" name, ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? value) -> void + end + + class WorkflowExecutionConfig < ::Google::Protobuf::AbstractMessage + + attr_accessor task_queue(): ::Temporalio::Api::TaskQueue::V1::TaskQueue? + def has_task_queue?: () -> bool + def clear_task_queue: () -> void + + attr_reader workflow_execution_timeout(): ::Google::Protobuf::Duration? + attr_writer workflow_execution_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_workflow_execution_timeout?: () -> bool + def clear_workflow_execution_timeout: () -> void + + attr_reader workflow_run_timeout(): ::Google::Protobuf::Duration? + attr_writer workflow_run_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_workflow_run_timeout?: () -> bool + def clear_workflow_run_timeout: () -> void + + attr_reader default_workflow_task_timeout(): ::Google::Protobuf::Duration? + attr_writer default_workflow_task_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_default_workflow_task_timeout?: () -> bool + def clear_default_workflow_task_timeout: () -> void + + # User metadata provided on start workflow. + attr_accessor user_metadata(): ::Temporalio::Api::Sdk::V1::UserMetadata? + def has_user_metadata?: () -> bool + def clear_user_metadata: () -> void + + type init_map = { + task_queue: (::Temporalio::Api::TaskQueue::V1::TaskQueue | ::Temporalio::Api::TaskQueue::V1::TaskQueue::init_map)?, + "task_queue" => (::Temporalio::Api::TaskQueue::V1::TaskQueue | ::Temporalio::Api::TaskQueue::V1::TaskQueue::init_map)?, + workflow_execution_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "workflow_execution_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + workflow_run_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "workflow_run_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + default_workflow_task_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "default_workflow_task_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + user_metadata: (::Temporalio::Api::Sdk::V1::UserMetadata | ::Temporalio::Api::Sdk::V1::UserMetadata::init_map)?, + "user_metadata" => (::Temporalio::Api::Sdk::V1::UserMetadata | ::Temporalio::Api::Sdk::V1::UserMetadata::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("task_queue" name) -> ::Temporalio::Api::TaskQueue::V1::TaskQueue? + | ("workflow_execution_timeout" name) -> ::Google::Protobuf::Duration? + | ("workflow_run_timeout" name) -> ::Google::Protobuf::Duration? + | ("default_workflow_task_timeout" name) -> ::Google::Protobuf::Duration? + | ("user_metadata" name) -> ::Temporalio::Api::Sdk::V1::UserMetadata? + + def []=: + ("task_queue" name, ::Temporalio::Api::TaskQueue::V1::TaskQueue? value) -> void + | ("workflow_execution_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("workflow_run_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("default_workflow_task_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("user_metadata" name, ::Temporalio::Api::Sdk::V1::UserMetadata? value) -> void + end + + class PendingActivityInfo < ::Google::Protobuf::AbstractMessage + class PauseInfo < ::Google::Protobuf::AbstractMessage + class Manual < ::Google::Protobuf::AbstractMessage + + # The identity of the actor that paused the activity. + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + # Reason for pausing the activity. + attr_reader reason(): ::String + attr_writer reason(): ::String | ::Symbol + def clear_reason: () -> void + + type init_map = { + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + reason: (::String | ::Symbol)?, + "reason" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("identity" name) -> ::String + | ("reason" name) -> ::String + + def []=: + ("identity" name, (::String | ::Symbol) value) -> void + | ("reason" name, (::String | ::Symbol) value) -> void + end + + class Rule < ::Google::Protobuf::AbstractMessage + + # The rule that paused the activity. + attr_reader rule_id(): ::String + attr_writer rule_id(): ::String | ::Symbol + def clear_rule_id: () -> void + + # The identity of the actor that created the rule. + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + # Reason why rule was created. Populated from rule description. + attr_reader reason(): ::String + attr_writer reason(): ::String | ::Symbol + def clear_reason: () -> void + + type init_map = { + rule_id: (::String | ::Symbol)?, + "rule_id" => (::String | ::Symbol)?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + reason: (::String | ::Symbol)?, + "reason" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("rule_id" name) -> ::String + | ("identity" name) -> ::String + | ("reason" name) -> ::String + + def []=: + ("rule_id" name, (::String | ::Symbol) value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + | ("reason" name, (::String | ::Symbol) value) -> void + end + + # The time when the activity was paused. + attr_reader pause_time(): ::Google::Protobuf::Timestamp? + attr_writer pause_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_pause_time?: () -> bool + def clear_pause_time: () -> void + + # activity was paused by the manual intervention + attr_accessor manual(): ::Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo::Manual? + def has_manual?: () -> bool + def clear_manual: () -> void + + # activity was paused by the rule + attr_accessor rule(): ::Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo::Rule? + def has_rule?: () -> bool + def clear_rule: () -> void + + attr_reader paused_by(): (::Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo::Manual | ::Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo::Rule)? + def has_paused_by?: () -> bool + def clear_paused_by: () -> void + + type init_map = { + pause_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "pause_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + manual: (::Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo::Manual | ::Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo::Manual::init_map)?, + "manual" => (::Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo::Manual | ::Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo::Manual::init_map)?, + rule: (::Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo::Rule | ::Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo::Rule::init_map)?, + "rule" => (::Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo::Rule | ::Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo::Rule::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("pause_time" name) -> ::Google::Protobuf::Timestamp? + | ("manual" name) -> ::Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo::Manual? + | ("rule" name) -> ::Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo::Rule? + + def []=: + ("pause_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("manual" name, ::Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo::Manual? value) -> void + | ("rule" name, ::Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo::Rule? value) -> void + end + + attr_reader activity_id(): ::String + attr_writer activity_id(): ::String | ::Symbol + def clear_activity_id: () -> void + + attr_accessor activity_type(): ::Temporalio::Api::Common::V1::ActivityType? + def has_activity_type?: () -> bool + def clear_activity_type: () -> void + + attr_reader state(): ::Temporalio::Api::Enums::V1::PendingActivityState::names | ::Integer + attr_writer state(): ::Temporalio::Api::Enums::V1::PendingActivityState::names | ::Temporalio::Api::Enums::V1::PendingActivityState::strings | ::Integer | ::Float + attr_reader state_const(): ::Integer + def clear_state: () -> void + + attr_accessor heartbeat_details(): ::Temporalio::Api::Common::V1::Payloads? + def has_heartbeat_details?: () -> bool + def clear_heartbeat_details: () -> void + + attr_reader last_heartbeat_time(): ::Google::Protobuf::Timestamp? + attr_writer last_heartbeat_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_last_heartbeat_time?: () -> bool + def clear_last_heartbeat_time: () -> void + + attr_reader last_started_time(): ::Google::Protobuf::Timestamp? + attr_writer last_started_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_last_started_time?: () -> bool + def clear_last_started_time: () -> void + + attr_reader attempt(): ::Integer + attr_writer attempt(): ::Integer | ::Float + def clear_attempt: () -> void + + attr_reader maximum_attempts(): ::Integer + attr_writer maximum_attempts(): ::Integer | ::Float + def clear_maximum_attempts: () -> void + + attr_reader scheduled_time(): ::Google::Protobuf::Timestamp? + attr_writer scheduled_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_scheduled_time?: () -> bool + def clear_scheduled_time: () -> void + + attr_reader expiration_time(): ::Google::Protobuf::Timestamp? + attr_writer expiration_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_expiration_time?: () -> bool + def clear_expiration_time: () -> void + + attr_accessor last_failure(): ::Temporalio::Api::Failure::V1::Failure? + def has_last_failure?: () -> bool + def clear_last_failure: () -> void + + attr_reader last_worker_identity(): ::String + attr_writer last_worker_identity(): ::String | ::Symbol + def clear_last_worker_identity: () -> void + + # Deprecated. When present, it means this activity is assigned to the build ID of its workflow. + # @deprecated + attr_accessor use_workflow_build_id(): ::Google::Protobuf::Empty? + def has_use_workflow_build_id?: () -> bool + def clear_use_workflow_build_id: () -> void + + # 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 + attr_reader last_independently_assigned_build_id(): ::String + attr_writer last_independently_assigned_build_id(): (::String | ::Symbol)? + def has_last_independently_assigned_build_id?: () -> bool + def clear_last_independently_assigned_build_id: () -> void + + # 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 + attr_accessor last_worker_version_stamp(): ::Temporalio::Api::Common::V1::WorkerVersionStamp? + def has_last_worker_version_stamp?: () -> bool + def clear_last_worker_version_stamp: () -> void + + # 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. + attr_reader current_retry_interval(): ::Google::Protobuf::Duration? + attr_writer current_retry_interval(): (::Google::Protobuf::Duration | ::int)? + def has_current_retry_interval?: () -> bool + def clear_current_retry_interval: () -> void + + # The time when the last activity attempt was completed. If activity has not been completed yet then it will be null. + attr_reader last_attempt_complete_time(): ::Google::Protobuf::Timestamp? + attr_writer last_attempt_complete_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_last_attempt_complete_time?: () -> bool + def clear_last_attempt_complete_time: () -> void + + # Next time when activity will be scheduled. + # If activity is currently scheduled or started it will be null. + attr_reader next_attempt_schedule_time(): ::Google::Protobuf::Timestamp? + attr_writer next_attempt_schedule_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_next_attempt_schedule_time?: () -> bool + def clear_next_attempt_schedule_time: () -> void + + # Indicates if activity is paused. + attr_accessor paused(): bool + def clear_paused: () -> void + + # 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 + attr_accessor last_deployment(): ::Temporalio::Api::Deployment::V1::Deployment? + def has_last_deployment?: () -> bool + def clear_last_deployment: () -> void + + # The Worker Deployment Version this activity was dispatched to most recently. + # Deprecated. Use `last_deployment_version`. + # @deprecated + attr_reader last_worker_deployment_version(): ::String + attr_writer last_worker_deployment_version(): ::String | ::Symbol + def clear_last_worker_deployment_version: () -> void + + # 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. + attr_accessor last_deployment_version(): ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? + def has_last_deployment_version?: () -> bool + def clear_last_deployment_version: () -> void + + # Priority metadata. If this message is not present, or any fields are not + # present, they inherit the values from the workflow. + attr_accessor priority(): ::Temporalio::Api::Common::V1::Priority? + def has_priority?: () -> bool + def clear_priority: () -> void + + attr_accessor pause_info(): ::Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo? + def has_pause_info?: () -> bool + def clear_pause_info: () -> void + + # Current activity options. May be different from the one used to start the activity. + attr_accessor activity_options(): ::Temporalio::Api::Activity::V1::ActivityOptions? + def has_activity_options?: () -> bool + def clear_activity_options: () -> void + + # 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] + attr_reader assigned_build_id(): (::Google::Protobuf::Empty | ::String)? + def has_assigned_build_id?: () -> bool + def clear_assigned_build_id: () -> void + + type init_map = { + activity_id: (::String | ::Symbol)?, + "activity_id" => (::String | ::Symbol)?, + activity_type: (::Temporalio::Api::Common::V1::ActivityType | ::Temporalio::Api::Common::V1::ActivityType::init_map)?, + "activity_type" => (::Temporalio::Api::Common::V1::ActivityType | ::Temporalio::Api::Common::V1::ActivityType::init_map)?, + state: (::Temporalio::Api::Enums::V1::PendingActivityState::names | ::Temporalio::Api::Enums::V1::PendingActivityState::strings | ::Integer | ::Float)?, + "state" => (::Temporalio::Api::Enums::V1::PendingActivityState::names | ::Temporalio::Api::Enums::V1::PendingActivityState::strings | ::Integer | ::Float)?, + heartbeat_details: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + "heartbeat_details" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + last_heartbeat_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "last_heartbeat_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + last_started_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "last_started_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + attempt: (::Integer | ::Float)?, + "attempt" => (::Integer | ::Float)?, + maximum_attempts: (::Integer | ::Float)?, + "maximum_attempts" => (::Integer | ::Float)?, + scheduled_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "scheduled_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + expiration_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "expiration_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + last_failure: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + "last_failure" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + last_worker_identity: (::String | ::Symbol)?, + "last_worker_identity" => (::String | ::Symbol)?, + use_workflow_build_id: (::Google::Protobuf::Empty | ::Google::Protobuf::Empty)?, + "use_workflow_build_id" => (::Google::Protobuf::Empty | ::Google::Protobuf::Empty)?, + last_independently_assigned_build_id: (::String | ::Symbol)?, + "last_independently_assigned_build_id" => (::String | ::Symbol)?, + last_worker_version_stamp: (::Temporalio::Api::Common::V1::WorkerVersionStamp | ::Temporalio::Api::Common::V1::WorkerVersionStamp::init_map)?, + "last_worker_version_stamp" => (::Temporalio::Api::Common::V1::WorkerVersionStamp | ::Temporalio::Api::Common::V1::WorkerVersionStamp::init_map)?, + current_retry_interval: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "current_retry_interval" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + last_attempt_complete_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "last_attempt_complete_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + next_attempt_schedule_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "next_attempt_schedule_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + paused: bool?, + "paused" => bool?, + last_deployment: (::Temporalio::Api::Deployment::V1::Deployment | ::Temporalio::Api::Deployment::V1::Deployment::init_map)?, + "last_deployment" => (::Temporalio::Api::Deployment::V1::Deployment | ::Temporalio::Api::Deployment::V1::Deployment::init_map)?, + last_worker_deployment_version: (::String | ::Symbol)?, + "last_worker_deployment_version" => (::String | ::Symbol)?, + last_deployment_version: (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?, + "last_deployment_version" => (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?, + priority: (::Temporalio::Api::Common::V1::Priority | ::Temporalio::Api::Common::V1::Priority::init_map)?, + "priority" => (::Temporalio::Api::Common::V1::Priority | ::Temporalio::Api::Common::V1::Priority::init_map)?, + pause_info: (::Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo | ::Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo::init_map)?, + "pause_info" => (::Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo | ::Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo::init_map)?, + activity_options: (::Temporalio::Api::Activity::V1::ActivityOptions | ::Temporalio::Api::Activity::V1::ActivityOptions::init_map)?, + "activity_options" => (::Temporalio::Api::Activity::V1::ActivityOptions | ::Temporalio::Api::Activity::V1::ActivityOptions::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("activity_id" name) -> ::String + | ("activity_type" name) -> ::Temporalio::Api::Common::V1::ActivityType? + | ("state" name) -> (::Temporalio::Api::Enums::V1::PendingActivityState::names | ::Integer) + | ("heartbeat_details" name) -> ::Temporalio::Api::Common::V1::Payloads? + | ("last_heartbeat_time" name) -> ::Google::Protobuf::Timestamp? + | ("last_started_time" name) -> ::Google::Protobuf::Timestamp? + | ("attempt" name) -> ::Integer + | ("maximum_attempts" name) -> ::Integer + | ("scheduled_time" name) -> ::Google::Protobuf::Timestamp? + | ("expiration_time" name) -> ::Google::Protobuf::Timestamp? + | ("last_failure" name) -> ::Temporalio::Api::Failure::V1::Failure? + | ("last_worker_identity" name) -> ::String + | ("use_workflow_build_id" name) -> ::Google::Protobuf::Empty? + | ("last_independently_assigned_build_id" name) -> ::String + | ("last_worker_version_stamp" name) -> ::Temporalio::Api::Common::V1::WorkerVersionStamp? + | ("current_retry_interval" name) -> ::Google::Protobuf::Duration? + | ("last_attempt_complete_time" name) -> ::Google::Protobuf::Timestamp? + | ("next_attempt_schedule_time" name) -> ::Google::Protobuf::Timestamp? + | ("paused" name) -> bool + | ("last_deployment" name) -> ::Temporalio::Api::Deployment::V1::Deployment? + | ("last_worker_deployment_version" name) -> ::String + | ("last_deployment_version" name) -> ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? + | ("priority" name) -> ::Temporalio::Api::Common::V1::Priority? + | ("pause_info" name) -> ::Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo? + | ("activity_options" name) -> ::Temporalio::Api::Activity::V1::ActivityOptions? + + def []=: + ("activity_id" name, (::String | ::Symbol) value) -> void + | ("activity_type" name, ::Temporalio::Api::Common::V1::ActivityType? value) -> void + | ("state" name, (::Temporalio::Api::Enums::V1::PendingActivityState::names | ::Temporalio::Api::Enums::V1::PendingActivityState::strings | ::Integer | ::Float) value) -> void + | ("heartbeat_details" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void + | ("last_heartbeat_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("last_started_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("attempt" name, (::Integer | ::Float) value) -> void + | ("maximum_attempts" name, (::Integer | ::Float) value) -> void + | ("scheduled_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("expiration_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("last_failure" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void + | ("last_worker_identity" name, (::String | ::Symbol) value) -> void + | ("use_workflow_build_id" name, ::Google::Protobuf::Empty? value) -> void + | ("last_independently_assigned_build_id" name, ((::String | ::Symbol)?) value) -> void + | ("last_worker_version_stamp" name, ::Temporalio::Api::Common::V1::WorkerVersionStamp? value) -> void + | ("current_retry_interval" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("last_attempt_complete_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("next_attempt_schedule_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("paused" name, bool value) -> void + | ("last_deployment" name, ::Temporalio::Api::Deployment::V1::Deployment? value) -> void + | ("last_worker_deployment_version" name, (::String | ::Symbol) value) -> void + | ("last_deployment_version" name, ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? value) -> void + | ("priority" name, ::Temporalio::Api::Common::V1::Priority? value) -> void + | ("pause_info" name, ::Temporalio::Api::Workflow::V1::PendingActivityInfo::PauseInfo? value) -> void + | ("activity_options" name, ::Temporalio::Api::Activity::V1::ActivityOptions? value) -> void + end + + class PendingChildExecutionInfo < ::Google::Protobuf::AbstractMessage + + attr_reader workflow_id(): ::String + attr_writer workflow_id(): ::String | ::Symbol + def clear_workflow_id: () -> void + + attr_reader run_id(): ::String + attr_writer run_id(): ::String | ::Symbol + def clear_run_id: () -> void + + attr_reader workflow_type_name(): ::String + attr_writer workflow_type_name(): ::String | ::Symbol + def clear_workflow_type_name: () -> void + + attr_reader initiated_id(): ::Integer + attr_writer initiated_id(): ::Integer | ::Float + def clear_initiated_id: () -> void + + # Default: PARENT_CLOSE_POLICY_TERMINATE. + attr_reader parent_close_policy(): ::Temporalio::Api::Enums::V1::ParentClosePolicy::names | ::Integer + attr_writer parent_close_policy(): ::Temporalio::Api::Enums::V1::ParentClosePolicy::names | ::Temporalio::Api::Enums::V1::ParentClosePolicy::strings | ::Integer | ::Float + attr_reader parent_close_policy_const(): ::Integer + def clear_parent_close_policy: () -> void + + type init_map = { + workflow_id: (::String | ::Symbol)?, + "workflow_id" => (::String | ::Symbol)?, + run_id: (::String | ::Symbol)?, + "run_id" => (::String | ::Symbol)?, + workflow_type_name: (::String | ::Symbol)?, + "workflow_type_name" => (::String | ::Symbol)?, + initiated_id: (::Integer | ::Float)?, + "initiated_id" => (::Integer | ::Float)?, + parent_close_policy: (::Temporalio::Api::Enums::V1::ParentClosePolicy::names | ::Temporalio::Api::Enums::V1::ParentClosePolicy::strings | ::Integer | ::Float)?, + "parent_close_policy" => (::Temporalio::Api::Enums::V1::ParentClosePolicy::names | ::Temporalio::Api::Enums::V1::ParentClosePolicy::strings | ::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("workflow_id" name) -> ::String + | ("run_id" name) -> ::String + | ("workflow_type_name" name) -> ::String + | ("initiated_id" name) -> ::Integer + | ("parent_close_policy" name) -> (::Temporalio::Api::Enums::V1::ParentClosePolicy::names | ::Integer) + + def []=: + ("workflow_id" name, (::String | ::Symbol) value) -> void + | ("run_id" name, (::String | ::Symbol) value) -> void + | ("workflow_type_name" name, (::String | ::Symbol) value) -> void + | ("initiated_id" name, (::Integer | ::Float) value) -> void + | ("parent_close_policy" name, (::Temporalio::Api::Enums::V1::ParentClosePolicy::names | ::Temporalio::Api::Enums::V1::ParentClosePolicy::strings | ::Integer | ::Float) value) -> void + end + + class PendingWorkflowTaskInfo < ::Google::Protobuf::AbstractMessage + + attr_reader state(): ::Temporalio::Api::Enums::V1::PendingWorkflowTaskState::names | ::Integer + attr_writer state(): ::Temporalio::Api::Enums::V1::PendingWorkflowTaskState::names | ::Temporalio::Api::Enums::V1::PendingWorkflowTaskState::strings | ::Integer | ::Float + attr_reader state_const(): ::Integer + def clear_state: () -> void + + attr_reader scheduled_time(): ::Google::Protobuf::Timestamp? + attr_writer scheduled_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_scheduled_time?: () -> bool + def clear_scheduled_time: () -> void + + # 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. + attr_reader original_scheduled_time(): ::Google::Protobuf::Timestamp? + attr_writer original_scheduled_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_original_scheduled_time?: () -> bool + def clear_original_scheduled_time: () -> void + + attr_reader started_time(): ::Google::Protobuf::Timestamp? + attr_writer started_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_started_time?: () -> bool + def clear_started_time: () -> void + + attr_reader attempt(): ::Integer + attr_writer attempt(): ::Integer | ::Float + def clear_attempt: () -> void + + type init_map = { + state: (::Temporalio::Api::Enums::V1::PendingWorkflowTaskState::names | ::Temporalio::Api::Enums::V1::PendingWorkflowTaskState::strings | ::Integer | ::Float)?, + "state" => (::Temporalio::Api::Enums::V1::PendingWorkflowTaskState::names | ::Temporalio::Api::Enums::V1::PendingWorkflowTaskState::strings | ::Integer | ::Float)?, + scheduled_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "scheduled_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + original_scheduled_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "original_scheduled_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + started_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "started_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + attempt: (::Integer | ::Float)?, + "attempt" => (::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("state" name) -> (::Temporalio::Api::Enums::V1::PendingWorkflowTaskState::names | ::Integer) + | ("scheduled_time" name) -> ::Google::Protobuf::Timestamp? + | ("original_scheduled_time" name) -> ::Google::Protobuf::Timestamp? + | ("started_time" name) -> ::Google::Protobuf::Timestamp? + | ("attempt" name) -> ::Integer + + def []=: + ("state" name, (::Temporalio::Api::Enums::V1::PendingWorkflowTaskState::names | ::Temporalio::Api::Enums::V1::PendingWorkflowTaskState::strings | ::Integer | ::Float) value) -> void + | ("scheduled_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("original_scheduled_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("started_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("attempt" name, (::Integer | ::Float) value) -> void + end + + class ResetPoints < ::Google::Protobuf::AbstractMessage + + attr_accessor points(): ::Google::Protobuf::RepeatedField + def clear_points: () -> void + + type init_map = { + points: ::Array[::Temporalio::Api::Workflow::V1::ResetPointInfo]?, + "points" => ::Array[::Temporalio::Api::Workflow::V1::ResetPointInfo]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("points" name) -> ::Google::Protobuf::RepeatedField + + def []=: + ("points" name, ::Google::Protobuf::RepeatedField value) -> void + end + + # 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). + class ResetPointInfo < ::Google::Protobuf::AbstractMessage + + # Worker build id. + attr_reader build_id(): ::String + attr_writer build_id(): ::String | ::Symbol + def clear_build_id: () -> void + + # Deprecated. A worker binary version identifier. + # @deprecated + attr_reader binary_checksum(): ::String + attr_writer binary_checksum(): ::String | ::Symbol + def clear_binary_checksum: () -> void + + # The first run ID in the execution chain that was touched by this worker build. + attr_reader run_id(): ::String + attr_writer run_id(): ::String | ::Symbol + def clear_run_id: () -> void + + # Event ID of the first WorkflowTaskCompleted event processed by this worker build. + attr_reader first_workflow_task_completed_id(): ::Integer + attr_writer first_workflow_task_completed_id(): ::Integer | ::Float + def clear_first_workflow_task_completed_id: () -> void + + attr_reader create_time(): ::Google::Protobuf::Timestamp? + attr_writer create_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_create_time?: () -> bool + def clear_create_time: () -> void + + # (-- 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. + attr_reader expire_time(): ::Google::Protobuf::Timestamp? + attr_writer expire_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_expire_time?: () -> bool + def clear_expire_time: () -> void + + # false if the reset point has pending childWFs/reqCancels/signalExternals. + attr_accessor resettable(): bool + def clear_resettable: () -> void + + type init_map = { + build_id: (::String | ::Symbol)?, + "build_id" => (::String | ::Symbol)?, + binary_checksum: (::String | ::Symbol)?, + "binary_checksum" => (::String | ::Symbol)?, + run_id: (::String | ::Symbol)?, + "run_id" => (::String | ::Symbol)?, + first_workflow_task_completed_id: (::Integer | ::Float)?, + "first_workflow_task_completed_id" => (::Integer | ::Float)?, + create_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "create_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + expire_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "expire_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + resettable: bool?, + "resettable" => bool?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("build_id" name) -> ::String + | ("binary_checksum" name) -> ::String + | ("run_id" name) -> ::String + | ("first_workflow_task_completed_id" name) -> ::Integer + | ("create_time" name) -> ::Google::Protobuf::Timestamp? + | ("expire_time" name) -> ::Google::Protobuf::Timestamp? + | ("resettable" name) -> bool + + def []=: + ("build_id" name, (::String | ::Symbol) value) -> void + | ("binary_checksum" name, (::String | ::Symbol) value) -> void + | ("run_id" name, (::String | ::Symbol) value) -> void + | ("first_workflow_task_completed_id" name, (::Integer | ::Float) value) -> void + | ("create_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("expire_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("resettable" name, bool value) -> void + end + + # NewWorkflowExecutionInfo is a shared message that encapsulates all the + # required arguments to starting a workflow in different contexts. + class NewWorkflowExecutionInfo < ::Google::Protobuf::AbstractMessage + + attr_reader workflow_id(): ::String + attr_writer workflow_id(): ::String | ::Symbol + def clear_workflow_id: () -> void + + attr_accessor workflow_type(): ::Temporalio::Api::Common::V1::WorkflowType? + def has_workflow_type?: () -> bool + def clear_workflow_type: () -> void + + attr_accessor task_queue(): ::Temporalio::Api::TaskQueue::V1::TaskQueue? + def has_task_queue?: () -> bool + def clear_task_queue: () -> void + + # Serialized arguments to the workflow. + attr_accessor input(): ::Temporalio::Api::Common::V1::Payloads? + def has_input?: () -> bool + def clear_input: () -> void + + # Total workflow execution timeout including retries and continue as new. + attr_reader workflow_execution_timeout(): ::Google::Protobuf::Duration? + attr_writer workflow_execution_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_workflow_execution_timeout?: () -> bool + def clear_workflow_execution_timeout: () -> void + + # Timeout of a single workflow run. + attr_reader workflow_run_timeout(): ::Google::Protobuf::Duration? + attr_writer workflow_run_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_workflow_run_timeout?: () -> bool + def clear_workflow_run_timeout: () -> void + + # Timeout of a single workflow task. + attr_reader workflow_task_timeout(): ::Google::Protobuf::Duration? + attr_writer workflow_task_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_workflow_task_timeout?: () -> bool + def clear_workflow_task_timeout: () -> void + + # Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE. + attr_reader workflow_id_reuse_policy(): ::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::names | ::Integer + attr_writer workflow_id_reuse_policy(): ::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::names | ::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::strings | ::Integer | ::Float + attr_reader workflow_id_reuse_policy_const(): ::Integer + def clear_workflow_id_reuse_policy: () -> void + + # The retry policy for the workflow. Will never exceed `workflow_execution_timeout`. + attr_accessor retry_policy(): ::Temporalio::Api::Common::V1::RetryPolicy? + def has_retry_policy?: () -> bool + def clear_retry_policy: () -> void + + # See https://docs.temporal.io/docs/content/what-is-a-temporal-cron-job/ + attr_reader cron_schedule(): ::String + attr_writer cron_schedule(): ::String | ::Symbol + def clear_cron_schedule: () -> void + + attr_accessor memo(): ::Temporalio::Api::Common::V1::Memo? + def has_memo?: () -> bool + def clear_memo: () -> void + + attr_accessor search_attributes(): ::Temporalio::Api::Common::V1::SearchAttributes? + def has_search_attributes?: () -> bool + def clear_search_attributes: () -> void + + attr_accessor header(): ::Temporalio::Api::Common::V1::Header? + def has_header?: () -> bool + def clear_header: () -> void + + # 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. + attr_accessor user_metadata(): ::Temporalio::Api::Sdk::V1::UserMetadata? + def has_user_metadata?: () -> bool + def clear_user_metadata: () -> void + + # 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. + attr_accessor versioning_override(): ::Temporalio::Api::Workflow::V1::VersioningOverride? + def has_versioning_override?: () -> bool + def clear_versioning_override: () -> void + + # Priority metadata + attr_accessor priority(): ::Temporalio::Api::Common::V1::Priority? + def has_priority?: () -> bool + def clear_priority: () -> void + + type init_map = { + workflow_id: (::String | ::Symbol)?, + "workflow_id" => (::String | ::Symbol)?, + workflow_type: (::Temporalio::Api::Common::V1::WorkflowType | ::Temporalio::Api::Common::V1::WorkflowType::init_map)?, + "workflow_type" => (::Temporalio::Api::Common::V1::WorkflowType | ::Temporalio::Api::Common::V1::WorkflowType::init_map)?, + task_queue: (::Temporalio::Api::TaskQueue::V1::TaskQueue | ::Temporalio::Api::TaskQueue::V1::TaskQueue::init_map)?, + "task_queue" => (::Temporalio::Api::TaskQueue::V1::TaskQueue | ::Temporalio::Api::TaskQueue::V1::TaskQueue::init_map)?, + input: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + "input" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + workflow_execution_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "workflow_execution_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + workflow_run_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "workflow_run_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + workflow_task_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "workflow_task_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + workflow_id_reuse_policy: (::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::names | ::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::strings | ::Integer | ::Float)?, + "workflow_id_reuse_policy" => (::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::names | ::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::strings | ::Integer | ::Float)?, + retry_policy: (::Temporalio::Api::Common::V1::RetryPolicy | ::Temporalio::Api::Common::V1::RetryPolicy::init_map)?, + "retry_policy" => (::Temporalio::Api::Common::V1::RetryPolicy | ::Temporalio::Api::Common::V1::RetryPolicy::init_map)?, + cron_schedule: (::String | ::Symbol)?, + "cron_schedule" => (::String | ::Symbol)?, + memo: (::Temporalio::Api::Common::V1::Memo | ::Temporalio::Api::Common::V1::Memo::init_map)?, + "memo" => (::Temporalio::Api::Common::V1::Memo | ::Temporalio::Api::Common::V1::Memo::init_map)?, + search_attributes: (::Temporalio::Api::Common::V1::SearchAttributes | ::Temporalio::Api::Common::V1::SearchAttributes::init_map)?, + "search_attributes" => (::Temporalio::Api::Common::V1::SearchAttributes | ::Temporalio::Api::Common::V1::SearchAttributes::init_map)?, + header: (::Temporalio::Api::Common::V1::Header | ::Temporalio::Api::Common::V1::Header::init_map)?, + "header" => (::Temporalio::Api::Common::V1::Header | ::Temporalio::Api::Common::V1::Header::init_map)?, + user_metadata: (::Temporalio::Api::Sdk::V1::UserMetadata | ::Temporalio::Api::Sdk::V1::UserMetadata::init_map)?, + "user_metadata" => (::Temporalio::Api::Sdk::V1::UserMetadata | ::Temporalio::Api::Sdk::V1::UserMetadata::init_map)?, + versioning_override: (::Temporalio::Api::Workflow::V1::VersioningOverride | ::Temporalio::Api::Workflow::V1::VersioningOverride::init_map)?, + "versioning_override" => (::Temporalio::Api::Workflow::V1::VersioningOverride | ::Temporalio::Api::Workflow::V1::VersioningOverride::init_map)?, + priority: (::Temporalio::Api::Common::V1::Priority | ::Temporalio::Api::Common::V1::Priority::init_map)?, + "priority" => (::Temporalio::Api::Common::V1::Priority | ::Temporalio::Api::Common::V1::Priority::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("workflow_id" name) -> ::String + | ("workflow_type" name) -> ::Temporalio::Api::Common::V1::WorkflowType? + | ("task_queue" name) -> ::Temporalio::Api::TaskQueue::V1::TaskQueue? + | ("input" name) -> ::Temporalio::Api::Common::V1::Payloads? + | ("workflow_execution_timeout" name) -> ::Google::Protobuf::Duration? + | ("workflow_run_timeout" name) -> ::Google::Protobuf::Duration? + | ("workflow_task_timeout" name) -> ::Google::Protobuf::Duration? + | ("workflow_id_reuse_policy" name) -> (::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::names | ::Integer) + | ("retry_policy" name) -> ::Temporalio::Api::Common::V1::RetryPolicy? + | ("cron_schedule" name) -> ::String + | ("memo" name) -> ::Temporalio::Api::Common::V1::Memo? + | ("search_attributes" name) -> ::Temporalio::Api::Common::V1::SearchAttributes? + | ("header" name) -> ::Temporalio::Api::Common::V1::Header? + | ("user_metadata" name) -> ::Temporalio::Api::Sdk::V1::UserMetadata? + | ("versioning_override" name) -> ::Temporalio::Api::Workflow::V1::VersioningOverride? + | ("priority" name) -> ::Temporalio::Api::Common::V1::Priority? + + def []=: + ("workflow_id" name, (::String | ::Symbol) value) -> void + | ("workflow_type" name, ::Temporalio::Api::Common::V1::WorkflowType? value) -> void + | ("task_queue" name, ::Temporalio::Api::TaskQueue::V1::TaskQueue? value) -> void + | ("input" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void + | ("workflow_execution_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("workflow_run_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("workflow_task_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("workflow_id_reuse_policy" name, (::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::names | ::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::strings | ::Integer | ::Float) value) -> void + | ("retry_policy" name, ::Temporalio::Api::Common::V1::RetryPolicy? value) -> void + | ("cron_schedule" name, (::String | ::Symbol) value) -> void + | ("memo" name, ::Temporalio::Api::Common::V1::Memo? value) -> void + | ("search_attributes" name, ::Temporalio::Api::Common::V1::SearchAttributes? value) -> void + | ("header" name, ::Temporalio::Api::Common::V1::Header? value) -> void + | ("user_metadata" name, ::Temporalio::Api::Sdk::V1::UserMetadata? value) -> void + | ("versioning_override" name, ::Temporalio::Api::Workflow::V1::VersioningOverride? value) -> void + | ("priority" name, ::Temporalio::Api::Common::V1::Priority? value) -> void + end + + # CallbackInfo contains the state of an attached workflow callback. + class CallbackInfo < ::Google::Protobuf::AbstractMessage + # Trigger for when the workflow is closed. + class WorkflowClosed < ::Google::Protobuf::AbstractMessage + + type init_map = { + } + + def initialize: (?init_map initial_value) -> void + end + + class Trigger < ::Google::Protobuf::AbstractMessage + + attr_accessor workflow_closed(): ::Temporalio::Api::Workflow::V1::CallbackInfo::WorkflowClosed? + def has_workflow_closed?: () -> bool + def clear_workflow_closed: () -> void + + attr_reader variant(): ::Temporalio::Api::Workflow::V1::CallbackInfo::WorkflowClosed? + def has_variant?: () -> bool + def clear_variant: () -> void + + type init_map = { + workflow_closed: (::Temporalio::Api::Workflow::V1::CallbackInfo::WorkflowClosed | ::Temporalio::Api::Workflow::V1::CallbackInfo::WorkflowClosed::init_map)?, + "workflow_closed" => (::Temporalio::Api::Workflow::V1::CallbackInfo::WorkflowClosed | ::Temporalio::Api::Workflow::V1::CallbackInfo::WorkflowClosed::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("workflow_closed" name) -> ::Temporalio::Api::Workflow::V1::CallbackInfo::WorkflowClosed? + + def []=: + ("workflow_closed" name, ::Temporalio::Api::Workflow::V1::CallbackInfo::WorkflowClosed? value) -> void + end + + # Information on how this callback should be invoked (e.g. its URL and type). + attr_accessor callback(): ::Temporalio::Api::Common::V1::Callback? + def has_callback?: () -> bool + def clear_callback: () -> void + + # Trigger for this callback. + attr_accessor trigger(): ::Temporalio::Api::Workflow::V1::CallbackInfo::Trigger? + def has_trigger?: () -> bool + def clear_trigger: () -> void + + # The time when the callback was registered. + attr_reader registration_time(): ::Google::Protobuf::Timestamp? + attr_writer registration_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_registration_time?: () -> bool + def clear_registration_time: () -> void + + attr_reader state(): ::Temporalio::Api::Enums::V1::CallbackState::names | ::Integer + attr_writer state(): ::Temporalio::Api::Enums::V1::CallbackState::names | ::Temporalio::Api::Enums::V1::CallbackState::strings | ::Integer | ::Float + attr_reader state_const(): ::Integer + def clear_state: () -> void + + # 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. + attr_reader attempt(): ::Integer + attr_writer attempt(): ::Integer | ::Float + def clear_attempt: () -> void + + # The time when the last attempt completed. + attr_reader last_attempt_complete_time(): ::Google::Protobuf::Timestamp? + attr_writer last_attempt_complete_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_last_attempt_complete_time?: () -> bool + def clear_last_attempt_complete_time: () -> void + + # The last attempt's failure, if any. + attr_accessor last_attempt_failure(): ::Temporalio::Api::Failure::V1::Failure? + def has_last_attempt_failure?: () -> bool + def clear_last_attempt_failure: () -> void + + # The time when the next attempt is scheduled. + attr_reader next_attempt_schedule_time(): ::Google::Protobuf::Timestamp? + attr_writer next_attempt_schedule_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_next_attempt_schedule_time?: () -> bool + def clear_next_attempt_schedule_time: () -> void + + # If the state is BLOCKED, blocked reason provides additional information. + attr_reader blocked_reason(): ::String + attr_writer blocked_reason(): ::String | ::Symbol + def clear_blocked_reason: () -> void + + type init_map = { + callback: (::Temporalio::Api::Common::V1::Callback | ::Temporalio::Api::Common::V1::Callback::init_map)?, + "callback" => (::Temporalio::Api::Common::V1::Callback | ::Temporalio::Api::Common::V1::Callback::init_map)?, + trigger: (::Temporalio::Api::Workflow::V1::CallbackInfo::Trigger | ::Temporalio::Api::Workflow::V1::CallbackInfo::Trigger::init_map)?, + "trigger" => (::Temporalio::Api::Workflow::V1::CallbackInfo::Trigger | ::Temporalio::Api::Workflow::V1::CallbackInfo::Trigger::init_map)?, + registration_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "registration_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + state: (::Temporalio::Api::Enums::V1::CallbackState::names | ::Temporalio::Api::Enums::V1::CallbackState::strings | ::Integer | ::Float)?, + "state" => (::Temporalio::Api::Enums::V1::CallbackState::names | ::Temporalio::Api::Enums::V1::CallbackState::strings | ::Integer | ::Float)?, + attempt: (::Integer | ::Float)?, + "attempt" => (::Integer | ::Float)?, + last_attempt_complete_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "last_attempt_complete_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + last_attempt_failure: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + "last_attempt_failure" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + next_attempt_schedule_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "next_attempt_schedule_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + blocked_reason: (::String | ::Symbol)?, + "blocked_reason" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("callback" name) -> ::Temporalio::Api::Common::V1::Callback? + | ("trigger" name) -> ::Temporalio::Api::Workflow::V1::CallbackInfo::Trigger? + | ("registration_time" name) -> ::Google::Protobuf::Timestamp? + | ("state" name) -> (::Temporalio::Api::Enums::V1::CallbackState::names | ::Integer) + | ("attempt" name) -> ::Integer + | ("last_attempt_complete_time" name) -> ::Google::Protobuf::Timestamp? + | ("last_attempt_failure" name) -> ::Temporalio::Api::Failure::V1::Failure? + | ("next_attempt_schedule_time" name) -> ::Google::Protobuf::Timestamp? + | ("blocked_reason" name) -> ::String + + def []=: + ("callback" name, ::Temporalio::Api::Common::V1::Callback? value) -> void + | ("trigger" name, ::Temporalio::Api::Workflow::V1::CallbackInfo::Trigger? value) -> void + | ("registration_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("state" name, (::Temporalio::Api::Enums::V1::CallbackState::names | ::Temporalio::Api::Enums::V1::CallbackState::strings | ::Integer | ::Float) value) -> void + | ("attempt" name, (::Integer | ::Float) value) -> void + | ("last_attempt_complete_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("last_attempt_failure" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void + | ("next_attempt_schedule_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("blocked_reason" name, (::String | ::Symbol) value) -> void + end + + # PendingNexusOperationInfo contains the state of a pending Nexus operation. + class PendingNexusOperationInfo < ::Google::Protobuf::AbstractMessage + + # Endpoint name. + # Resolved to a URL via the cluster's endpoint registry. + attr_reader endpoint(): ::String + attr_writer endpoint(): ::String | ::Symbol + def clear_endpoint: () -> void + + # Service name. + attr_reader service(): ::String + attr_writer service(): ::String | ::Symbol + def clear_service: () -> void + + # Operation name. + attr_reader operation(): ::String + attr_writer operation(): ::String | ::Symbol + def clear_operation: () -> void + + # Operation ID. Only set for asynchronous operations after a successful StartOperation call. + # Deprecated. Renamed to operation_token. + # @deprecated + attr_reader operation_id(): ::String + attr_writer operation_id(): ::String | ::Symbol + def clear_operation_id: () -> void + + # 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. --) + attr_reader schedule_to_close_timeout(): ::Google::Protobuf::Duration? + attr_writer schedule_to_close_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_schedule_to_close_timeout?: () -> bool + def clear_schedule_to_close_timeout: () -> void + + # The time when the operation was scheduled. + attr_reader scheduled_time(): ::Google::Protobuf::Timestamp? + attr_writer scheduled_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_scheduled_time?: () -> bool + def clear_scheduled_time: () -> void + + attr_reader state(): ::Temporalio::Api::Enums::V1::PendingNexusOperationState::names | ::Integer + attr_writer state(): ::Temporalio::Api::Enums::V1::PendingNexusOperationState::names | ::Temporalio::Api::Enums::V1::PendingNexusOperationState::strings | ::Integer | ::Float + attr_reader state_const(): ::Integer + def clear_state: () -> void + + # 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. + attr_reader attempt(): ::Integer + attr_writer attempt(): ::Integer | ::Float + def clear_attempt: () -> void + + # The time when the last attempt completed. + attr_reader last_attempt_complete_time(): ::Google::Protobuf::Timestamp? + attr_writer last_attempt_complete_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_last_attempt_complete_time?: () -> bool + def clear_last_attempt_complete_time: () -> void + + # The last attempt's failure, if any. + attr_accessor last_attempt_failure(): ::Temporalio::Api::Failure::V1::Failure? + def has_last_attempt_failure?: () -> bool + def clear_last_attempt_failure: () -> void + + # The time when the next attempt is scheduled. + attr_reader next_attempt_schedule_time(): ::Google::Protobuf::Timestamp? + attr_writer next_attempt_schedule_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_next_attempt_schedule_time?: () -> bool + def clear_next_attempt_schedule_time: () -> void + + attr_accessor cancellation_info(): ::Temporalio::Api::Workflow::V1::NexusOperationCancellationInfo? + def has_cancellation_info?: () -> bool + def clear_cancellation_info: () -> void + + # The event ID of the NexusOperationScheduled event. Can be used to correlate an operation in the + # DescribeWorkflowExecution response with workflow history. + attr_reader scheduled_event_id(): ::Integer + attr_writer scheduled_event_id(): ::Integer | ::Float + def clear_scheduled_event_id: () -> void + + # If the state is BLOCKED, blocked reason provides additional information. + attr_reader blocked_reason(): ::String + attr_writer blocked_reason(): ::String | ::Symbol + def clear_blocked_reason: () -> void + + # Operation token. Only set for asynchronous operations after a successful StartOperation call. + attr_reader operation_token(): ::String + attr_writer operation_token(): ::String | ::Symbol + def clear_operation_token: () -> void + + # Schedule-to-start timeout for this operation. + # (-- api-linter: core::0140::prepositions=disabled + # aip.dev/not-precedent: "to" is used to indicate interval. --) + attr_reader schedule_to_start_timeout(): ::Google::Protobuf::Duration? + attr_writer schedule_to_start_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_schedule_to_start_timeout?: () -> bool + def clear_schedule_to_start_timeout: () -> void + + # Start-to-close timeout for this operation. + # (-- api-linter: core::0140::prepositions=disabled + # aip.dev/not-precedent: "to" is used to indicate interval. --) + attr_reader start_to_close_timeout(): ::Google::Protobuf::Duration? + attr_writer start_to_close_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_start_to_close_timeout?: () -> bool + def clear_start_to_close_timeout: () -> void + + type init_map = { + endpoint: (::String | ::Symbol)?, + "endpoint" => (::String | ::Symbol)?, + service: (::String | ::Symbol)?, + "service" => (::String | ::Symbol)?, + operation: (::String | ::Symbol)?, + "operation" => (::String | ::Symbol)?, + operation_id: (::String | ::Symbol)?, + "operation_id" => (::String | ::Symbol)?, + schedule_to_close_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "schedule_to_close_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + scheduled_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "scheduled_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + state: (::Temporalio::Api::Enums::V1::PendingNexusOperationState::names | ::Temporalio::Api::Enums::V1::PendingNexusOperationState::strings | ::Integer | ::Float)?, + "state" => (::Temporalio::Api::Enums::V1::PendingNexusOperationState::names | ::Temporalio::Api::Enums::V1::PendingNexusOperationState::strings | ::Integer | ::Float)?, + attempt: (::Integer | ::Float)?, + "attempt" => (::Integer | ::Float)?, + last_attempt_complete_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "last_attempt_complete_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + last_attempt_failure: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + "last_attempt_failure" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + next_attempt_schedule_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "next_attempt_schedule_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + cancellation_info: (::Temporalio::Api::Workflow::V1::NexusOperationCancellationInfo | ::Temporalio::Api::Workflow::V1::NexusOperationCancellationInfo::init_map)?, + "cancellation_info" => (::Temporalio::Api::Workflow::V1::NexusOperationCancellationInfo | ::Temporalio::Api::Workflow::V1::NexusOperationCancellationInfo::init_map)?, + scheduled_event_id: (::Integer | ::Float)?, + "scheduled_event_id" => (::Integer | ::Float)?, + blocked_reason: (::String | ::Symbol)?, + "blocked_reason" => (::String | ::Symbol)?, + operation_token: (::String | ::Symbol)?, + "operation_token" => (::String | ::Symbol)?, + schedule_to_start_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "schedule_to_start_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + start_to_close_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "start_to_close_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("endpoint" name) -> ::String + | ("service" name) -> ::String + | ("operation" name) -> ::String + | ("operation_id" name) -> ::String + | ("schedule_to_close_timeout" name) -> ::Google::Protobuf::Duration? + | ("scheduled_time" name) -> ::Google::Protobuf::Timestamp? + | ("state" name) -> (::Temporalio::Api::Enums::V1::PendingNexusOperationState::names | ::Integer) + | ("attempt" name) -> ::Integer + | ("last_attempt_complete_time" name) -> ::Google::Protobuf::Timestamp? + | ("last_attempt_failure" name) -> ::Temporalio::Api::Failure::V1::Failure? + | ("next_attempt_schedule_time" name) -> ::Google::Protobuf::Timestamp? + | ("cancellation_info" name) -> ::Temporalio::Api::Workflow::V1::NexusOperationCancellationInfo? + | ("scheduled_event_id" name) -> ::Integer + | ("blocked_reason" name) -> ::String + | ("operation_token" name) -> ::String + | ("schedule_to_start_timeout" name) -> ::Google::Protobuf::Duration? + | ("start_to_close_timeout" name) -> ::Google::Protobuf::Duration? + + def []=: + ("endpoint" name, (::String | ::Symbol) value) -> void + | ("service" name, (::String | ::Symbol) value) -> void + | ("operation" name, (::String | ::Symbol) value) -> void + | ("operation_id" name, (::String | ::Symbol) value) -> void + | ("schedule_to_close_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("scheduled_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("state" name, (::Temporalio::Api::Enums::V1::PendingNexusOperationState::names | ::Temporalio::Api::Enums::V1::PendingNexusOperationState::strings | ::Integer | ::Float) value) -> void + | ("attempt" name, (::Integer | ::Float) value) -> void + | ("last_attempt_complete_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("last_attempt_failure" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void + | ("next_attempt_schedule_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("cancellation_info" name, ::Temporalio::Api::Workflow::V1::NexusOperationCancellationInfo? value) -> void + | ("scheduled_event_id" name, (::Integer | ::Float) value) -> void + | ("blocked_reason" name, (::String | ::Symbol) value) -> void + | ("operation_token" name, (::String | ::Symbol) value) -> void + | ("schedule_to_start_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("start_to_close_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + end + + # NexusOperationCancellationInfo contains the state of a nexus operation cancellation. + class NexusOperationCancellationInfo < ::Google::Protobuf::AbstractMessage + + # The time when cancellation was requested. + attr_reader requested_time(): ::Google::Protobuf::Timestamp? + attr_writer requested_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_requested_time?: () -> bool + def clear_requested_time: () -> void + + attr_reader state(): ::Temporalio::Api::Enums::V1::NexusOperationCancellationState::names | ::Integer + attr_writer state(): ::Temporalio::Api::Enums::V1::NexusOperationCancellationState::names | ::Temporalio::Api::Enums::V1::NexusOperationCancellationState::strings | ::Integer | ::Float + attr_reader state_const(): ::Integer + def clear_state: () -> void + + # 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. + attr_reader attempt(): ::Integer + attr_writer attempt(): ::Integer | ::Float + def clear_attempt: () -> void + + # The time when the last attempt completed. + attr_reader last_attempt_complete_time(): ::Google::Protobuf::Timestamp? + attr_writer last_attempt_complete_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_last_attempt_complete_time?: () -> bool + def clear_last_attempt_complete_time: () -> void + + # The last attempt's failure, if any. + attr_accessor last_attempt_failure(): ::Temporalio::Api::Failure::V1::Failure? + def has_last_attempt_failure?: () -> bool + def clear_last_attempt_failure: () -> void + + # The time when the next attempt is scheduled. + attr_reader next_attempt_schedule_time(): ::Google::Protobuf::Timestamp? + attr_writer next_attempt_schedule_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_next_attempt_schedule_time?: () -> bool + def clear_next_attempt_schedule_time: () -> void + + # If the state is BLOCKED, blocked reason provides additional information. + attr_reader blocked_reason(): ::String + attr_writer blocked_reason(): ::String | ::Symbol + def clear_blocked_reason: () -> void + + type init_map = { + requested_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "requested_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + state: (::Temporalio::Api::Enums::V1::NexusOperationCancellationState::names | ::Temporalio::Api::Enums::V1::NexusOperationCancellationState::strings | ::Integer | ::Float)?, + "state" => (::Temporalio::Api::Enums::V1::NexusOperationCancellationState::names | ::Temporalio::Api::Enums::V1::NexusOperationCancellationState::strings | ::Integer | ::Float)?, + attempt: (::Integer | ::Float)?, + "attempt" => (::Integer | ::Float)?, + last_attempt_complete_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "last_attempt_complete_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + last_attempt_failure: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + "last_attempt_failure" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + next_attempt_schedule_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "next_attempt_schedule_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + blocked_reason: (::String | ::Symbol)?, + "blocked_reason" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("requested_time" name) -> ::Google::Protobuf::Timestamp? + | ("state" name) -> (::Temporalio::Api::Enums::V1::NexusOperationCancellationState::names | ::Integer) + | ("attempt" name) -> ::Integer + | ("last_attempt_complete_time" name) -> ::Google::Protobuf::Timestamp? + | ("last_attempt_failure" name) -> ::Temporalio::Api::Failure::V1::Failure? + | ("next_attempt_schedule_time" name) -> ::Google::Protobuf::Timestamp? + | ("blocked_reason" name) -> ::String + + def []=: + ("requested_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("state" name, (::Temporalio::Api::Enums::V1::NexusOperationCancellationState::names | ::Temporalio::Api::Enums::V1::NexusOperationCancellationState::strings | ::Integer | ::Float) value) -> void + | ("attempt" name, (::Integer | ::Float) value) -> void + | ("last_attempt_complete_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("last_attempt_failure" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void + | ("next_attempt_schedule_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("blocked_reason" name, (::String | ::Symbol) value) -> void + end + + class WorkflowExecutionOptions < ::Google::Protobuf::AbstractMessage + + # If set, takes precedence over the Versioning Behavior sent by the SDK on Workflow Task completion. + attr_accessor versioning_override(): ::Temporalio::Api::Workflow::V1::VersioningOverride? + def has_versioning_override?: () -> bool + def clear_versioning_override: () -> void + + # If set, overrides the workflow's priority sent by the SDK. + attr_accessor priority(): ::Temporalio::Api::Common::V1::Priority? + def has_priority?: () -> bool + def clear_priority: () -> void + + type init_map = { + versioning_override: (::Temporalio::Api::Workflow::V1::VersioningOverride | ::Temporalio::Api::Workflow::V1::VersioningOverride::init_map)?, + "versioning_override" => (::Temporalio::Api::Workflow::V1::VersioningOverride | ::Temporalio::Api::Workflow::V1::VersioningOverride::init_map)?, + priority: (::Temporalio::Api::Common::V1::Priority | ::Temporalio::Api::Common::V1::Priority::init_map)?, + "priority" => (::Temporalio::Api::Common::V1::Priority | ::Temporalio::Api::Common::V1::Priority::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("versioning_override" name) -> ::Temporalio::Api::Workflow::V1::VersioningOverride? + | ("priority" name) -> ::Temporalio::Api::Common::V1::Priority? + + def []=: + ("versioning_override" name, ::Temporalio::Api::Workflow::V1::VersioningOverride? value) -> void + | ("priority" name, ::Temporalio::Api::Common::V1::Priority? value) -> void + end + + # 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. + class VersioningOverride < ::Google::Protobuf::AbstractMessage + class PinnedOverride < ::Google::Protobuf::AbstractMessage + + # Defaults to PINNED_OVERRIDE_BEHAVIOR_UNSPECIFIED. + # See `PinnedOverrideBehavior` for details. + attr_reader behavior(): ::Temporalio::Api::Workflow::V1::VersioningOverride::PinnedOverrideBehavior::names | ::Integer + attr_writer behavior(): ::Temporalio::Api::Workflow::V1::VersioningOverride::PinnedOverrideBehavior::names | ::Temporalio::Api::Workflow::V1::VersioningOverride::PinnedOverrideBehavior::strings | ::Integer | ::Float + attr_reader behavior_const(): ::Integer + def clear_behavior: () -> void + + # 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. + attr_accessor version(): ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? + def has_version?: () -> bool + def clear_version: () -> void + + type init_map = { + behavior: (::Temporalio::Api::Workflow::V1::VersioningOverride::PinnedOverrideBehavior::names | ::Temporalio::Api::Workflow::V1::VersioningOverride::PinnedOverrideBehavior::strings | ::Integer | ::Float)?, + "behavior" => (::Temporalio::Api::Workflow::V1::VersioningOverride::PinnedOverrideBehavior::names | ::Temporalio::Api::Workflow::V1::VersioningOverride::PinnedOverrideBehavior::strings | ::Integer | ::Float)?, + version: (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?, + "version" => (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("behavior" name) -> (::Temporalio::Api::Workflow::V1::VersioningOverride::PinnedOverrideBehavior::names | ::Integer) + | ("version" name) -> ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? + + def []=: + ("behavior" name, (::Temporalio::Api::Workflow::V1::VersioningOverride::PinnedOverrideBehavior::names | ::Temporalio::Api::Workflow::V1::VersioningOverride::PinnedOverrideBehavior::strings | ::Integer | ::Float) value) -> void + | ("version" name, ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? value) -> void + end + + module PinnedOverrideBehavior + + # Unspecified. + PINNED_OVERRIDE_BEHAVIOR_UNSPECIFIED: 0 + + # Override workflow behavior to be Pinned. + PINNED_OVERRIDE_BEHAVIOR_PINNED: 1 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :PINNED_OVERRIDE_BEHAVIOR_UNSPECIFIED | :PINNED_OVERRIDE_BEHAVIOR_PINNED + + type strings = "PINNED_OVERRIDE_BEHAVIOR_UNSPECIFIED" | "PINNED_OVERRIDE_BEHAVIOR_PINNED" + + type numbers = 0 | 1 + end + + # Override the workflow to have Pinned behavior. + attr_accessor pinned(): ::Temporalio::Api::Workflow::V1::VersioningOverride::PinnedOverride? + def has_pinned?: () -> bool + def clear_pinned: () -> void + + # Override the workflow to have AutoUpgrade behavior. + attr_reader auto_upgrade(): bool + attr_writer auto_upgrade(): bool? + def has_auto_upgrade?: () -> bool + def clear_auto_upgrade: () -> void + + # Required. + # Deprecated. Use `override`. + # @deprecated + attr_reader behavior(): ::Temporalio::Api::Enums::V1::VersioningBehavior::names | ::Integer + attr_writer behavior(): ::Temporalio::Api::Enums::V1::VersioningBehavior::names | ::Temporalio::Api::Enums::V1::VersioningBehavior::strings | ::Integer | ::Float + attr_reader behavior_const(): ::Integer + def clear_behavior: () -> void + + # 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 + attr_accessor deployment(): ::Temporalio::Api::Deployment::V1::Deployment? + def has_deployment?: () -> bool + def clear_deployment: () -> void + + # 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 + attr_reader pinned_version(): ::String + attr_writer pinned_version(): ::String | ::Symbol + def clear_pinned_version: () -> void + + # Indicates whether to override the workflow to be AutoUpgrade or Pinned. + attr_reader override(): (::Temporalio::Api::Workflow::V1::VersioningOverride::PinnedOverride | bool)? + def has_override?: () -> bool + def clear_override: () -> void + + type init_map = { + pinned: (::Temporalio::Api::Workflow::V1::VersioningOverride::PinnedOverride | ::Temporalio::Api::Workflow::V1::VersioningOverride::PinnedOverride::init_map)?, + "pinned" => (::Temporalio::Api::Workflow::V1::VersioningOverride::PinnedOverride | ::Temporalio::Api::Workflow::V1::VersioningOverride::PinnedOverride::init_map)?, + auto_upgrade: bool?, + "auto_upgrade" => bool?, + behavior: (::Temporalio::Api::Enums::V1::VersioningBehavior::names | ::Temporalio::Api::Enums::V1::VersioningBehavior::strings | ::Integer | ::Float)?, + "behavior" => (::Temporalio::Api::Enums::V1::VersioningBehavior::names | ::Temporalio::Api::Enums::V1::VersioningBehavior::strings | ::Integer | ::Float)?, + deployment: (::Temporalio::Api::Deployment::V1::Deployment | ::Temporalio::Api::Deployment::V1::Deployment::init_map)?, + "deployment" => (::Temporalio::Api::Deployment::V1::Deployment | ::Temporalio::Api::Deployment::V1::Deployment::init_map)?, + pinned_version: (::String | ::Symbol)?, + "pinned_version" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("pinned" name) -> ::Temporalio::Api::Workflow::V1::VersioningOverride::PinnedOverride? + | ("auto_upgrade" name) -> bool + | ("behavior" name) -> (::Temporalio::Api::Enums::V1::VersioningBehavior::names | ::Integer) + | ("deployment" name) -> ::Temporalio::Api::Deployment::V1::Deployment? + | ("pinned_version" name) -> ::String + + def []=: + ("pinned" name, ::Temporalio::Api::Workflow::V1::VersioningOverride::PinnedOverride? value) -> void + | ("auto_upgrade" name, bool? value) -> void + | ("behavior" name, (::Temporalio::Api::Enums::V1::VersioningBehavior::names | ::Temporalio::Api::Enums::V1::VersioningBehavior::strings | ::Integer | ::Float) value) -> void + | ("deployment" name, ::Temporalio::Api::Deployment::V1::Deployment? value) -> void + | ("pinned_version" name, (::String | ::Symbol) value) -> void + end + + # 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. + class OnConflictOptions < ::Google::Protobuf::AbstractMessage + + # Attaches the request ID to the running workflow. + attr_accessor attach_request_id(): bool + def clear_attach_request_id: () -> void + + # Attaches the completion callbacks to the running workflow. + attr_accessor attach_completion_callbacks(): bool + def clear_attach_completion_callbacks: () -> void + + # Attaches the links to the WorkflowExecutionOptionsUpdatedEvent history event. + attr_accessor attach_links(): bool + def clear_attach_links: () -> void + + type init_map = { + attach_request_id: bool?, + "attach_request_id" => bool?, + attach_completion_callbacks: bool?, + "attach_completion_callbacks" => bool?, + attach_links: bool?, + "attach_links" => bool?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("attach_request_id" name) -> bool + | ("attach_completion_callbacks" name) -> bool + | ("attach_links" name) -> bool + + def []=: + ("attach_request_id" name, bool value) -> void + | ("attach_completion_callbacks" name, bool value) -> void + | ("attach_links" name, bool value) -> void + end + + # RequestIdInfo contains details of a request ID. + class RequestIdInfo < ::Google::Protobuf::AbstractMessage + + # The event type of the history event generated by the request. + attr_reader event_type(): ::Temporalio::Api::Enums::V1::EventType::names | ::Integer + attr_writer event_type(): ::Temporalio::Api::Enums::V1::EventType::names | ::Temporalio::Api::Enums::V1::EventType::strings | ::Integer | ::Float + attr_reader event_type_const(): ::Integer + def clear_event_type: () -> void + + # 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. + attr_reader event_id(): ::Integer + attr_writer event_id(): ::Integer | ::Float + def clear_event_id: () -> void + + # Indicate if the request is still buffered. If so, the event ID is not known and its value + # will be an invalid event ID. + attr_accessor buffered(): bool + def clear_buffered: () -> void + + type init_map = { + event_type: (::Temporalio::Api::Enums::V1::EventType::names | ::Temporalio::Api::Enums::V1::EventType::strings | ::Integer | ::Float)?, + "event_type" => (::Temporalio::Api::Enums::V1::EventType::names | ::Temporalio::Api::Enums::V1::EventType::strings | ::Integer | ::Float)?, + event_id: (::Integer | ::Float)?, + "event_id" => (::Integer | ::Float)?, + buffered: bool?, + "buffered" => bool?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("event_type" name) -> (::Temporalio::Api::Enums::V1::EventType::names | ::Integer) + | ("event_id" name) -> ::Integer + | ("buffered" name) -> bool + + def []=: + ("event_type" name, (::Temporalio::Api::Enums::V1::EventType::names | ::Temporalio::Api::Enums::V1::EventType::strings | ::Integer | ::Float) value) -> void + | ("event_id" name, (::Integer | ::Float) value) -> void + | ("buffered" name, bool value) -> void + end + + # PostResetOperation represents an operation to be performed on the new workflow execution after a workflow reset. + class PostResetOperation < ::Google::Protobuf::AbstractMessage + # SignalWorkflow represents sending a signal after a workflow reset. + # Keep the parameter in sync with temporal.api.workflowservice.v1.SignalWorkflowExecutionRequest. + class SignalWorkflow < ::Google::Protobuf::AbstractMessage + + # The workflow author-defined name of the signal to send to the workflow. + attr_reader signal_name(): ::String + attr_writer signal_name(): ::String | ::Symbol + def clear_signal_name: () -> void + + # Serialized value(s) to provide with the signal. + attr_accessor input(): ::Temporalio::Api::Common::V1::Payloads? + def has_input?: () -> bool + def clear_input: () -> void + + # Headers that are passed with the signal to the processing workflow. + attr_accessor header(): ::Temporalio::Api::Common::V1::Header? + def has_header?: () -> bool + def clear_header: () -> void + + # Links to be associated with the WorkflowExecutionSignaled event. + attr_accessor links(): ::Google::Protobuf::RepeatedField + def clear_links: () -> void + + type init_map = { + signal_name: (::String | ::Symbol)?, + "signal_name" => (::String | ::Symbol)?, + input: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + "input" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + header: (::Temporalio::Api::Common::V1::Header | ::Temporalio::Api::Common::V1::Header::init_map)?, + "header" => (::Temporalio::Api::Common::V1::Header | ::Temporalio::Api::Common::V1::Header::init_map)?, + links: ::Array[::Temporalio::Api::Common::V1::Link]?, + "links" => ::Array[::Temporalio::Api::Common::V1::Link]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("signal_name" name) -> ::String + | ("input" name) -> ::Temporalio::Api::Common::V1::Payloads? + | ("header" name) -> ::Temporalio::Api::Common::V1::Header? + | ("links" name) -> ::Google::Protobuf::RepeatedField + + def []=: + ("signal_name" name, (::String | ::Symbol) value) -> void + | ("input" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void + | ("header" name, ::Temporalio::Api::Common::V1::Header? value) -> void + | ("links" name, ::Google::Protobuf::RepeatedField value) -> void + end + + # UpdateWorkflowOptions represents updating workflow execution options after a workflow reset. + # Keep the parameters in sync with temporal.api.workflowservice.v1.UpdateWorkflowExecutionOptionsRequest. + class UpdateWorkflowOptions < ::Google::Protobuf::AbstractMessage + + # Update Workflow options that were originally specified via StartWorkflowExecution. Partial updates are accepted and controlled by update_mask. + attr_accessor workflow_execution_options(): ::Temporalio::Api::Workflow::V1::WorkflowExecutionOptions? + def has_workflow_execution_options?: () -> bool + def clear_workflow_execution_options: () -> void + + # 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. + attr_accessor update_mask(): ::Google::Protobuf::FieldMask? + def has_update_mask?: () -> bool + def clear_update_mask: () -> void + + type init_map = { + workflow_execution_options: (::Temporalio::Api::Workflow::V1::WorkflowExecutionOptions | ::Temporalio::Api::Workflow::V1::WorkflowExecutionOptions::init_map)?, + "workflow_execution_options" => (::Temporalio::Api::Workflow::V1::WorkflowExecutionOptions | ::Temporalio::Api::Workflow::V1::WorkflowExecutionOptions::init_map)?, + update_mask: (::Google::Protobuf::FieldMask | ::Google::Protobuf::FieldMask)?, + "update_mask" => (::Google::Protobuf::FieldMask | ::Google::Protobuf::FieldMask)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("workflow_execution_options" name) -> ::Temporalio::Api::Workflow::V1::WorkflowExecutionOptions? + | ("update_mask" name) -> ::Google::Protobuf::FieldMask? + + def []=: + ("workflow_execution_options" name, ::Temporalio::Api::Workflow::V1::WorkflowExecutionOptions? value) -> void + | ("update_mask" name, ::Google::Protobuf::FieldMask? value) -> void + end + + attr_accessor signal_workflow(): ::Temporalio::Api::Workflow::V1::PostResetOperation::SignalWorkflow? + def has_signal_workflow?: () -> bool + def clear_signal_workflow: () -> void + + attr_accessor update_workflow_options(): ::Temporalio::Api::Workflow::V1::PostResetOperation::UpdateWorkflowOptions? + def has_update_workflow_options?: () -> bool + def clear_update_workflow_options: () -> void + + attr_reader variant(): (::Temporalio::Api::Workflow::V1::PostResetOperation::SignalWorkflow | ::Temporalio::Api::Workflow::V1::PostResetOperation::UpdateWorkflowOptions)? + def has_variant?: () -> bool + def clear_variant: () -> void + + type init_map = { + signal_workflow: (::Temporalio::Api::Workflow::V1::PostResetOperation::SignalWorkflow | ::Temporalio::Api::Workflow::V1::PostResetOperation::SignalWorkflow::init_map)?, + "signal_workflow" => (::Temporalio::Api::Workflow::V1::PostResetOperation::SignalWorkflow | ::Temporalio::Api::Workflow::V1::PostResetOperation::SignalWorkflow::init_map)?, + update_workflow_options: (::Temporalio::Api::Workflow::V1::PostResetOperation::UpdateWorkflowOptions | ::Temporalio::Api::Workflow::V1::PostResetOperation::UpdateWorkflowOptions::init_map)?, + "update_workflow_options" => (::Temporalio::Api::Workflow::V1::PostResetOperation::UpdateWorkflowOptions | ::Temporalio::Api::Workflow::V1::PostResetOperation::UpdateWorkflowOptions::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("signal_workflow" name) -> ::Temporalio::Api::Workflow::V1::PostResetOperation::SignalWorkflow? + | ("update_workflow_options" name) -> ::Temporalio::Api::Workflow::V1::PostResetOperation::UpdateWorkflowOptions? + + def []=: + ("signal_workflow" name, ::Temporalio::Api::Workflow::V1::PostResetOperation::SignalWorkflow? value) -> void + | ("update_workflow_options" name, ::Temporalio::Api::Workflow::V1::PostResetOperation::UpdateWorkflowOptions? value) -> void + end + + # WorkflowExecutionPauseInfo contains the information about a workflow execution pause. + class WorkflowExecutionPauseInfo < ::Google::Protobuf::AbstractMessage + + # The identity of the client who paused the workflow execution. + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + # The time when the workflow execution was paused. + attr_reader paused_time(): ::Google::Protobuf::Timestamp? + attr_writer paused_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_paused_time?: () -> bool + def clear_paused_time: () -> void + + # The reason for pausing the workflow execution. + attr_reader reason(): ::String + attr_writer reason(): ::String | ::Symbol + def clear_reason: () -> void + + type init_map = { + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + paused_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "paused_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + reason: (::String | ::Symbol)?, + "reason" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("identity" name) -> ::String + | ("paused_time" name) -> ::Google::Protobuf::Timestamp? + | ("reason" name) -> ::String + + def []=: + ("identity" name, (::String | ::Symbol) value) -> void + | ("paused_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("reason" name, (::String | ::Symbol) value) -> void + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/api/workflowservice/v1/request_response.rbs b/temporalio/sig/temporalio/api/workflowservice/v1/request_response.rbs new file mode 100644 index 00000000..70fde0be --- /dev/null +++ b/temporalio/sig/temporalio/api/workflowservice/v1/request_response.rbs @@ -0,0 +1,10770 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/api/workflowservice/v1/request_response.proto + +module Temporalio + module Api + module WorkflowService + module V1 + class RegisterNamespaceRequest < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_reader description(): ::String + attr_writer description(): ::String | ::Symbol + def clear_description: () -> void + + attr_reader owner_email(): ::String + attr_writer owner_email(): ::String | ::Symbol + def clear_owner_email: () -> void + + attr_reader workflow_execution_retention_period(): ::Google::Protobuf::Duration? + attr_writer workflow_execution_retention_period(): (::Google::Protobuf::Duration | ::int)? + def has_workflow_execution_retention_period?: () -> bool + def clear_workflow_execution_retention_period: () -> void + + attr_accessor clusters(): ::Google::Protobuf::RepeatedField + def clear_clusters: () -> void + + attr_reader active_cluster_name(): ::String + attr_writer active_cluster_name(): ::String | ::Symbol + def clear_active_cluster_name: () -> void + + # A key-value map for any customized purpose. + attr_accessor data(): ::Google::Protobuf::Map[::String, ::String] + def clear_data: () -> void + + attr_reader security_token(): ::String + attr_writer security_token(): ::String | ::Symbol + def clear_security_token: () -> void + + attr_accessor is_global_namespace(): bool + def clear_is_global_namespace: () -> void + + # If unspecified (ARCHIVAL_STATE_UNSPECIFIED) then default server configuration is used. + attr_reader history_archival_state(): ::Temporalio::Api::Enums::V1::ArchivalState::names | ::Integer + attr_writer history_archival_state(): ::Temporalio::Api::Enums::V1::ArchivalState::names | ::Temporalio::Api::Enums::V1::ArchivalState::strings | ::Integer | ::Float + attr_reader history_archival_state_const(): ::Integer + def clear_history_archival_state: () -> void + + attr_reader history_archival_uri(): ::String + attr_writer history_archival_uri(): ::String | ::Symbol + def clear_history_archival_uri: () -> void + + # If unspecified (ARCHIVAL_STATE_UNSPECIFIED) then default server configuration is used. + attr_reader visibility_archival_state(): ::Temporalio::Api::Enums::V1::ArchivalState::names | ::Integer + attr_writer visibility_archival_state(): ::Temporalio::Api::Enums::V1::ArchivalState::names | ::Temporalio::Api::Enums::V1::ArchivalState::strings | ::Integer | ::Float + attr_reader visibility_archival_state_const(): ::Integer + def clear_visibility_archival_state: () -> void + + attr_reader visibility_archival_uri(): ::String + attr_writer visibility_archival_uri(): ::String | ::Symbol + def clear_visibility_archival_uri: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + description: (::String | ::Symbol)?, + "description" => (::String | ::Symbol)?, + owner_email: (::String | ::Symbol)?, + "owner_email" => (::String | ::Symbol)?, + workflow_execution_retention_period: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "workflow_execution_retention_period" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + clusters: ::Array[::Temporalio::Api::Replication::V1::ClusterReplicationConfig]?, + "clusters" => ::Array[::Temporalio::Api::Replication::V1::ClusterReplicationConfig]?, + active_cluster_name: (::String | ::Symbol)?, + "active_cluster_name" => (::String | ::Symbol)?, + data: ::Hash[::String | ::Symbol, ::String | ::Symbol]?, + "data" => ::Hash[::String | ::Symbol, ::String | ::Symbol]?, + security_token: (::String | ::Symbol)?, + "security_token" => (::String | ::Symbol)?, + is_global_namespace: bool?, + "is_global_namespace" => bool?, + history_archival_state: (::Temporalio::Api::Enums::V1::ArchivalState::names | ::Temporalio::Api::Enums::V1::ArchivalState::strings | ::Integer | ::Float)?, + "history_archival_state" => (::Temporalio::Api::Enums::V1::ArchivalState::names | ::Temporalio::Api::Enums::V1::ArchivalState::strings | ::Integer | ::Float)?, + history_archival_uri: (::String | ::Symbol)?, + "history_archival_uri" => (::String | ::Symbol)?, + visibility_archival_state: (::Temporalio::Api::Enums::V1::ArchivalState::names | ::Temporalio::Api::Enums::V1::ArchivalState::strings | ::Integer | ::Float)?, + "visibility_archival_state" => (::Temporalio::Api::Enums::V1::ArchivalState::names | ::Temporalio::Api::Enums::V1::ArchivalState::strings | ::Integer | ::Float)?, + visibility_archival_uri: (::String | ::Symbol)?, + "visibility_archival_uri" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("description" name) -> ::String + | ("owner_email" name) -> ::String + | ("workflow_execution_retention_period" name) -> ::Google::Protobuf::Duration? + | ("clusters" name) -> ::Google::Protobuf::RepeatedField + | ("active_cluster_name" name) -> ::String + | ("data" name) -> (::Google::Protobuf::Map[::String, ::String]) + | ("security_token" name) -> ::String + | ("is_global_namespace" name) -> bool + | ("history_archival_state" name) -> (::Temporalio::Api::Enums::V1::ArchivalState::names | ::Integer) + | ("history_archival_uri" name) -> ::String + | ("visibility_archival_state" name) -> (::Temporalio::Api::Enums::V1::ArchivalState::names | ::Integer) + | ("visibility_archival_uri" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("description" name, (::String | ::Symbol) value) -> void + | ("owner_email" name, (::String | ::Symbol) value) -> void + | ("workflow_execution_retention_period" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("clusters" name, ::Google::Protobuf::RepeatedField value) -> void + | ("active_cluster_name" name, (::String | ::Symbol) value) -> void + | ("data" name, (::Google::Protobuf::Map[::String, ::String]) value) -> void + | ("security_token" name, (::String | ::Symbol) value) -> void + | ("is_global_namespace" name, bool value) -> void + | ("history_archival_state" name, (::Temporalio::Api::Enums::V1::ArchivalState::names | ::Temporalio::Api::Enums::V1::ArchivalState::strings | ::Integer | ::Float) value) -> void + | ("history_archival_uri" name, (::String | ::Symbol) value) -> void + | ("visibility_archival_state" name, (::Temporalio::Api::Enums::V1::ArchivalState::names | ::Temporalio::Api::Enums::V1::ArchivalState::strings | ::Integer | ::Float) value) -> void + | ("visibility_archival_uri" name, (::String | ::Symbol) value) -> void + end + + class RegisterNamespaceResponse < ::Google::Protobuf::AbstractMessage + + type init_map = { + } + + def initialize: (?init_map initial_value) -> void + end + + class ListNamespacesRequest < ::Google::Protobuf::AbstractMessage + + attr_reader page_size(): ::Integer + attr_writer page_size(): ::Integer | ::Float + def clear_page_size: () -> void + + attr_accessor next_page_token(): ::String + def clear_next_page_token: () -> void + + attr_accessor namespace_filter(): ::Temporalio::Api::Namespace::V1::NamespaceFilter? + def has_namespace_filter?: () -> bool + def clear_namespace_filter: () -> void + + type init_map = { + page_size: (::Integer | ::Float)?, + "page_size" => (::Integer | ::Float)?, + next_page_token: ::String?, + "next_page_token" => ::String?, + namespace_filter: (::Temporalio::Api::Namespace::V1::NamespaceFilter | ::Temporalio::Api::Namespace::V1::NamespaceFilter::init_map)?, + "namespace_filter" => (::Temporalio::Api::Namespace::V1::NamespaceFilter | ::Temporalio::Api::Namespace::V1::NamespaceFilter::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("page_size" name) -> ::Integer + | ("next_page_token" name) -> ::String + | ("namespace_filter" name) -> ::Temporalio::Api::Namespace::V1::NamespaceFilter? + + def []=: + ("page_size" name, (::Integer | ::Float) value) -> void + | ("next_page_token" name, ::String value) -> void + | ("namespace_filter" name, ::Temporalio::Api::Namespace::V1::NamespaceFilter? value) -> void + end + + class ListNamespacesResponse < ::Google::Protobuf::AbstractMessage + + attr_accessor namespaces(): ::Google::Protobuf::RepeatedField + def clear_namespaces: () -> void + + attr_accessor next_page_token(): ::String + def clear_next_page_token: () -> void + + type init_map = { + namespaces: ::Array[::Temporalio::Api::WorkflowService::V1::DescribeNamespaceResponse]?, + "namespaces" => ::Array[::Temporalio::Api::WorkflowService::V1::DescribeNamespaceResponse]?, + next_page_token: ::String?, + "next_page_token" => ::String?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespaces" name) -> ::Google::Protobuf::RepeatedField + | ("next_page_token" name) -> ::String + + def []=: + ("namespaces" name, ::Google::Protobuf::RepeatedField value) -> void + | ("next_page_token" name, ::String value) -> void + end + + class DescribeNamespaceRequest < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_reader id(): ::String + attr_writer id(): ::String | ::Symbol + def clear_id: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + id: (::String | ::Symbol)?, + "id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("id" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("id" name, (::String | ::Symbol) value) -> void + end + + class DescribeNamespaceResponse < ::Google::Protobuf::AbstractMessage + + attr_accessor namespace_info(): ::Temporalio::Api::Namespace::V1::NamespaceInfo? + def has_namespace_info?: () -> bool + def clear_namespace_info: () -> void + + attr_accessor config(): ::Temporalio::Api::Namespace::V1::NamespaceConfig? + def has_config?: () -> bool + def clear_config: () -> void + + attr_accessor replication_config(): ::Temporalio::Api::Replication::V1::NamespaceReplicationConfig? + def has_replication_config?: () -> bool + def clear_replication_config: () -> void + + attr_reader failover_version(): ::Integer + attr_writer failover_version(): ::Integer | ::Float + def clear_failover_version: () -> void + + attr_accessor is_global_namespace(): bool + def clear_is_global_namespace: () -> void + + # 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. + attr_accessor failover_history(): ::Google::Protobuf::RepeatedField + def clear_failover_history: () -> void + + type init_map = { + namespace_info: (::Temporalio::Api::Namespace::V1::NamespaceInfo | ::Temporalio::Api::Namespace::V1::NamespaceInfo::init_map)?, + "namespace_info" => (::Temporalio::Api::Namespace::V1::NamespaceInfo | ::Temporalio::Api::Namespace::V1::NamespaceInfo::init_map)?, + config: (::Temporalio::Api::Namespace::V1::NamespaceConfig | ::Temporalio::Api::Namespace::V1::NamespaceConfig::init_map)?, + "config" => (::Temporalio::Api::Namespace::V1::NamespaceConfig | ::Temporalio::Api::Namespace::V1::NamespaceConfig::init_map)?, + replication_config: (::Temporalio::Api::Replication::V1::NamespaceReplicationConfig | ::Temporalio::Api::Replication::V1::NamespaceReplicationConfig::init_map)?, + "replication_config" => (::Temporalio::Api::Replication::V1::NamespaceReplicationConfig | ::Temporalio::Api::Replication::V1::NamespaceReplicationConfig::init_map)?, + failover_version: (::Integer | ::Float)?, + "failover_version" => (::Integer | ::Float)?, + is_global_namespace: bool?, + "is_global_namespace" => bool?, + failover_history: ::Array[::Temporalio::Api::Replication::V1::FailoverStatus]?, + "failover_history" => ::Array[::Temporalio::Api::Replication::V1::FailoverStatus]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace_info" name) -> ::Temporalio::Api::Namespace::V1::NamespaceInfo? + | ("config" name) -> ::Temporalio::Api::Namespace::V1::NamespaceConfig? + | ("replication_config" name) -> ::Temporalio::Api::Replication::V1::NamespaceReplicationConfig? + | ("failover_version" name) -> ::Integer + | ("is_global_namespace" name) -> bool + | ("failover_history" name) -> ::Google::Protobuf::RepeatedField + + def []=: + ("namespace_info" name, ::Temporalio::Api::Namespace::V1::NamespaceInfo? value) -> void + | ("config" name, ::Temporalio::Api::Namespace::V1::NamespaceConfig? value) -> void + | ("replication_config" name, ::Temporalio::Api::Replication::V1::NamespaceReplicationConfig? value) -> void + | ("failover_version" name, (::Integer | ::Float) value) -> void + | ("is_global_namespace" name, bool value) -> void + | ("failover_history" name, ::Google::Protobuf::RepeatedField value) -> void + end + + class UpdateNamespaceRequest < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_accessor update_info(): ::Temporalio::Api::Namespace::V1::UpdateNamespaceInfo? + def has_update_info?: () -> bool + def clear_update_info: () -> void + + attr_accessor config(): ::Temporalio::Api::Namespace::V1::NamespaceConfig? + def has_config?: () -> bool + def clear_config: () -> void + + attr_accessor replication_config(): ::Temporalio::Api::Replication::V1::NamespaceReplicationConfig? + def has_replication_config?: () -> bool + def clear_replication_config: () -> void + + attr_reader security_token(): ::String + attr_writer security_token(): ::String | ::Symbol + def clear_security_token: () -> void + + attr_reader delete_bad_binary(): ::String + attr_writer delete_bad_binary(): ::String | ::Symbol + def clear_delete_bad_binary: () -> void + + # promote local namespace to global namespace. Ignored if namespace is already global namespace. + attr_accessor promote_namespace(): bool + def clear_promote_namespace: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + update_info: (::Temporalio::Api::Namespace::V1::UpdateNamespaceInfo | ::Temporalio::Api::Namespace::V1::UpdateNamespaceInfo::init_map)?, + "update_info" => (::Temporalio::Api::Namespace::V1::UpdateNamespaceInfo | ::Temporalio::Api::Namespace::V1::UpdateNamespaceInfo::init_map)?, + config: (::Temporalio::Api::Namespace::V1::NamespaceConfig | ::Temporalio::Api::Namespace::V1::NamespaceConfig::init_map)?, + "config" => (::Temporalio::Api::Namespace::V1::NamespaceConfig | ::Temporalio::Api::Namespace::V1::NamespaceConfig::init_map)?, + replication_config: (::Temporalio::Api::Replication::V1::NamespaceReplicationConfig | ::Temporalio::Api::Replication::V1::NamespaceReplicationConfig::init_map)?, + "replication_config" => (::Temporalio::Api::Replication::V1::NamespaceReplicationConfig | ::Temporalio::Api::Replication::V1::NamespaceReplicationConfig::init_map)?, + security_token: (::String | ::Symbol)?, + "security_token" => (::String | ::Symbol)?, + delete_bad_binary: (::String | ::Symbol)?, + "delete_bad_binary" => (::String | ::Symbol)?, + promote_namespace: bool?, + "promote_namespace" => bool?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("update_info" name) -> ::Temporalio::Api::Namespace::V1::UpdateNamespaceInfo? + | ("config" name) -> ::Temporalio::Api::Namespace::V1::NamespaceConfig? + | ("replication_config" name) -> ::Temporalio::Api::Replication::V1::NamespaceReplicationConfig? + | ("security_token" name) -> ::String + | ("delete_bad_binary" name) -> ::String + | ("promote_namespace" name) -> bool + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("update_info" name, ::Temporalio::Api::Namespace::V1::UpdateNamespaceInfo? value) -> void + | ("config" name, ::Temporalio::Api::Namespace::V1::NamespaceConfig? value) -> void + | ("replication_config" name, ::Temporalio::Api::Replication::V1::NamespaceReplicationConfig? value) -> void + | ("security_token" name, (::String | ::Symbol) value) -> void + | ("delete_bad_binary" name, (::String | ::Symbol) value) -> void + | ("promote_namespace" name, bool value) -> void + end + + class UpdateNamespaceResponse < ::Google::Protobuf::AbstractMessage + + attr_accessor namespace_info(): ::Temporalio::Api::Namespace::V1::NamespaceInfo? + def has_namespace_info?: () -> bool + def clear_namespace_info: () -> void + + attr_accessor config(): ::Temporalio::Api::Namespace::V1::NamespaceConfig? + def has_config?: () -> bool + def clear_config: () -> void + + attr_accessor replication_config(): ::Temporalio::Api::Replication::V1::NamespaceReplicationConfig? + def has_replication_config?: () -> bool + def clear_replication_config: () -> void + + attr_reader failover_version(): ::Integer + attr_writer failover_version(): ::Integer | ::Float + def clear_failover_version: () -> void + + attr_accessor is_global_namespace(): bool + def clear_is_global_namespace: () -> void + + type init_map = { + namespace_info: (::Temporalio::Api::Namespace::V1::NamespaceInfo | ::Temporalio::Api::Namespace::V1::NamespaceInfo::init_map)?, + "namespace_info" => (::Temporalio::Api::Namespace::V1::NamespaceInfo | ::Temporalio::Api::Namespace::V1::NamespaceInfo::init_map)?, + config: (::Temporalio::Api::Namespace::V1::NamespaceConfig | ::Temporalio::Api::Namespace::V1::NamespaceConfig::init_map)?, + "config" => (::Temporalio::Api::Namespace::V1::NamespaceConfig | ::Temporalio::Api::Namespace::V1::NamespaceConfig::init_map)?, + replication_config: (::Temporalio::Api::Replication::V1::NamespaceReplicationConfig | ::Temporalio::Api::Replication::V1::NamespaceReplicationConfig::init_map)?, + "replication_config" => (::Temporalio::Api::Replication::V1::NamespaceReplicationConfig | ::Temporalio::Api::Replication::V1::NamespaceReplicationConfig::init_map)?, + failover_version: (::Integer | ::Float)?, + "failover_version" => (::Integer | ::Float)?, + is_global_namespace: bool?, + "is_global_namespace" => bool?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace_info" name) -> ::Temporalio::Api::Namespace::V1::NamespaceInfo? + | ("config" name) -> ::Temporalio::Api::Namespace::V1::NamespaceConfig? + | ("replication_config" name) -> ::Temporalio::Api::Replication::V1::NamespaceReplicationConfig? + | ("failover_version" name) -> ::Integer + | ("is_global_namespace" name) -> bool + + def []=: + ("namespace_info" name, ::Temporalio::Api::Namespace::V1::NamespaceInfo? value) -> void + | ("config" name, ::Temporalio::Api::Namespace::V1::NamespaceConfig? value) -> void + | ("replication_config" name, ::Temporalio::Api::Replication::V1::NamespaceReplicationConfig? value) -> void + | ("failover_version" name, (::Integer | ::Float) value) -> void + | ("is_global_namespace" name, bool value) -> void + end + + # Deprecated. + class DeprecateNamespaceRequest < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_reader security_token(): ::String + attr_writer security_token(): ::String | ::Symbol + def clear_security_token: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + security_token: (::String | ::Symbol)?, + "security_token" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("security_token" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("security_token" name, (::String | ::Symbol) value) -> void + end + + # Deprecated. + class DeprecateNamespaceResponse < ::Google::Protobuf::AbstractMessage + + type init_map = { + } + + def initialize: (?init_map initial_value) -> void + end + + class StartWorkflowExecutionRequest < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_reader workflow_id(): ::String + attr_writer workflow_id(): ::String | ::Symbol + def clear_workflow_id: () -> void + + attr_accessor workflow_type(): ::Temporalio::Api::Common::V1::WorkflowType? + def has_workflow_type?: () -> bool + def clear_workflow_type: () -> void + + attr_accessor task_queue(): ::Temporalio::Api::TaskQueue::V1::TaskQueue? + def has_task_queue?: () -> bool + def clear_task_queue: () -> void + + # Serialized arguments to the workflow. These are passed as arguments to the workflow function. + attr_accessor input(): ::Temporalio::Api::Common::V1::Payloads? + def has_input?: () -> bool + def clear_input: () -> void + + # Total workflow execution timeout including retries and continue as new. + attr_reader workflow_execution_timeout(): ::Google::Protobuf::Duration? + attr_writer workflow_execution_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_workflow_execution_timeout?: () -> bool + def clear_workflow_execution_timeout: () -> void + + # Timeout of a single workflow run. + attr_reader workflow_run_timeout(): ::Google::Protobuf::Duration? + attr_writer workflow_run_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_workflow_run_timeout?: () -> bool + def clear_workflow_run_timeout: () -> void + + # Timeout of a single workflow task. + attr_reader workflow_task_timeout(): ::Google::Protobuf::Duration? + attr_writer workflow_task_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_workflow_task_timeout?: () -> bool + def clear_workflow_task_timeout: () -> void + + # The identity of the client who initiated this request + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + # A unique identifier for this start request. Typically UUIDv4. + attr_reader request_id(): ::String + attr_writer request_id(): ::String | ::Symbol + def clear_request_id: () -> void + + # 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. + attr_reader workflow_id_reuse_policy(): ::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::names | ::Integer + attr_writer workflow_id_reuse_policy(): ::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::names | ::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::strings | ::Integer | ::Float + attr_reader workflow_id_reuse_policy_const(): ::Integer + def clear_workflow_id_reuse_policy: () -> void + + # 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. + attr_reader workflow_id_conflict_policy(): ::Temporalio::Api::Enums::V1::WorkflowIdConflictPolicy::names | ::Integer + attr_writer workflow_id_conflict_policy(): ::Temporalio::Api::Enums::V1::WorkflowIdConflictPolicy::names | ::Temporalio::Api::Enums::V1::WorkflowIdConflictPolicy::strings | ::Integer | ::Float + attr_reader workflow_id_conflict_policy_const(): ::Integer + def clear_workflow_id_conflict_policy: () -> void + + # The retry policy for the workflow. Will never exceed `workflow_execution_timeout`. + attr_accessor retry_policy(): ::Temporalio::Api::Common::V1::RetryPolicy? + def has_retry_policy?: () -> bool + def clear_retry_policy: () -> void + + # See https://docs.temporal.io/docs/content/what-is-a-temporal-cron-job/ + attr_reader cron_schedule(): ::String + attr_writer cron_schedule(): ::String | ::Symbol + def clear_cron_schedule: () -> void + + attr_accessor memo(): ::Temporalio::Api::Common::V1::Memo? + def has_memo?: () -> bool + def clear_memo: () -> void + + attr_accessor search_attributes(): ::Temporalio::Api::Common::V1::SearchAttributes? + def has_search_attributes?: () -> bool + def clear_search_attributes: () -> void + + attr_accessor header(): ::Temporalio::Api::Common::V1::Header? + def has_header?: () -> bool + def clear_header: () -> void + + # 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`. + attr_accessor request_eager_execution(): bool + def clear_request_eager_execution: () -> void + + # 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. + attr_accessor continued_failure(): ::Temporalio::Api::Failure::V1::Failure? + def has_continued_failure?: () -> bool + def clear_continued_failure: () -> void + + attr_accessor last_completion_result(): ::Temporalio::Api::Common::V1::Payloads? + def has_last_completion_result?: () -> bool + def clear_last_completion_result: () -> void + + # 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. + attr_reader workflow_start_delay(): ::Google::Protobuf::Duration? + attr_writer workflow_start_delay(): (::Google::Protobuf::Duration | ::int)? + def has_workflow_start_delay?: () -> bool + def clear_workflow_start_delay: () -> void + + # 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. + attr_accessor completion_callbacks(): ::Google::Protobuf::RepeatedField + def clear_completion_callbacks: () -> void + + # 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. + attr_accessor user_metadata(): ::Temporalio::Api::Sdk::V1::UserMetadata? + def has_user_metadata?: () -> bool + def clear_user_metadata: () -> void + + # Links to be associated with the workflow. + attr_accessor links(): ::Google::Protobuf::RepeatedField + def clear_links: () -> void + + # 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. + attr_accessor versioning_override(): ::Temporalio::Api::Workflow::V1::VersioningOverride? + def has_versioning_override?: () -> bool + def clear_versioning_override: () -> void + + # 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. + attr_accessor on_conflict_options(): ::Temporalio::Api::Workflow::V1::OnConflictOptions? + def has_on_conflict_options?: () -> bool + def clear_on_conflict_options: () -> void + + # Priority metadata + attr_accessor priority(): ::Temporalio::Api::Common::V1::Priority? + def has_priority?: () -> bool + def clear_priority: () -> void + + # Deployment Options of the worker who will process the eager task. Passed when `request_eager_execution=true`. + attr_accessor eager_worker_deployment_options(): ::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions? + def has_eager_worker_deployment_options?: () -> bool + def clear_eager_worker_deployment_options: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + workflow_id: (::String | ::Symbol)?, + "workflow_id" => (::String | ::Symbol)?, + workflow_type: (::Temporalio::Api::Common::V1::WorkflowType | ::Temporalio::Api::Common::V1::WorkflowType::init_map)?, + "workflow_type" => (::Temporalio::Api::Common::V1::WorkflowType | ::Temporalio::Api::Common::V1::WorkflowType::init_map)?, + task_queue: (::Temporalio::Api::TaskQueue::V1::TaskQueue | ::Temporalio::Api::TaskQueue::V1::TaskQueue::init_map)?, + "task_queue" => (::Temporalio::Api::TaskQueue::V1::TaskQueue | ::Temporalio::Api::TaskQueue::V1::TaskQueue::init_map)?, + input: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + "input" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + workflow_execution_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "workflow_execution_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + workflow_run_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "workflow_run_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + workflow_task_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "workflow_task_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + request_id: (::String | ::Symbol)?, + "request_id" => (::String | ::Symbol)?, + workflow_id_reuse_policy: (::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::names | ::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::strings | ::Integer | ::Float)?, + "workflow_id_reuse_policy" => (::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::names | ::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::strings | ::Integer | ::Float)?, + workflow_id_conflict_policy: (::Temporalio::Api::Enums::V1::WorkflowIdConflictPolicy::names | ::Temporalio::Api::Enums::V1::WorkflowIdConflictPolicy::strings | ::Integer | ::Float)?, + "workflow_id_conflict_policy" => (::Temporalio::Api::Enums::V1::WorkflowIdConflictPolicy::names | ::Temporalio::Api::Enums::V1::WorkflowIdConflictPolicy::strings | ::Integer | ::Float)?, + retry_policy: (::Temporalio::Api::Common::V1::RetryPolicy | ::Temporalio::Api::Common::V1::RetryPolicy::init_map)?, + "retry_policy" => (::Temporalio::Api::Common::V1::RetryPolicy | ::Temporalio::Api::Common::V1::RetryPolicy::init_map)?, + cron_schedule: (::String | ::Symbol)?, + "cron_schedule" => (::String | ::Symbol)?, + memo: (::Temporalio::Api::Common::V1::Memo | ::Temporalio::Api::Common::V1::Memo::init_map)?, + "memo" => (::Temporalio::Api::Common::V1::Memo | ::Temporalio::Api::Common::V1::Memo::init_map)?, + search_attributes: (::Temporalio::Api::Common::V1::SearchAttributes | ::Temporalio::Api::Common::V1::SearchAttributes::init_map)?, + "search_attributes" => (::Temporalio::Api::Common::V1::SearchAttributes | ::Temporalio::Api::Common::V1::SearchAttributes::init_map)?, + header: (::Temporalio::Api::Common::V1::Header | ::Temporalio::Api::Common::V1::Header::init_map)?, + "header" => (::Temporalio::Api::Common::V1::Header | ::Temporalio::Api::Common::V1::Header::init_map)?, + request_eager_execution: bool?, + "request_eager_execution" => bool?, + continued_failure: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + "continued_failure" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + last_completion_result: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + "last_completion_result" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + workflow_start_delay: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "workflow_start_delay" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + completion_callbacks: ::Array[::Temporalio::Api::Common::V1::Callback]?, + "completion_callbacks" => ::Array[::Temporalio::Api::Common::V1::Callback]?, + user_metadata: (::Temporalio::Api::Sdk::V1::UserMetadata | ::Temporalio::Api::Sdk::V1::UserMetadata::init_map)?, + "user_metadata" => (::Temporalio::Api::Sdk::V1::UserMetadata | ::Temporalio::Api::Sdk::V1::UserMetadata::init_map)?, + links: ::Array[::Temporalio::Api::Common::V1::Link]?, + "links" => ::Array[::Temporalio::Api::Common::V1::Link]?, + versioning_override: (::Temporalio::Api::Workflow::V1::VersioningOverride | ::Temporalio::Api::Workflow::V1::VersioningOverride::init_map)?, + "versioning_override" => (::Temporalio::Api::Workflow::V1::VersioningOverride | ::Temporalio::Api::Workflow::V1::VersioningOverride::init_map)?, + on_conflict_options: (::Temporalio::Api::Workflow::V1::OnConflictOptions | ::Temporalio::Api::Workflow::V1::OnConflictOptions::init_map)?, + "on_conflict_options" => (::Temporalio::Api::Workflow::V1::OnConflictOptions | ::Temporalio::Api::Workflow::V1::OnConflictOptions::init_map)?, + priority: (::Temporalio::Api::Common::V1::Priority | ::Temporalio::Api::Common::V1::Priority::init_map)?, + "priority" => (::Temporalio::Api::Common::V1::Priority | ::Temporalio::Api::Common::V1::Priority::init_map)?, + eager_worker_deployment_options: (::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions | ::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions::init_map)?, + "eager_worker_deployment_options" => (::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions | ::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("workflow_id" name) -> ::String + | ("workflow_type" name) -> ::Temporalio::Api::Common::V1::WorkflowType? + | ("task_queue" name) -> ::Temporalio::Api::TaskQueue::V1::TaskQueue? + | ("input" name) -> ::Temporalio::Api::Common::V1::Payloads? + | ("workflow_execution_timeout" name) -> ::Google::Protobuf::Duration? + | ("workflow_run_timeout" name) -> ::Google::Protobuf::Duration? + | ("workflow_task_timeout" name) -> ::Google::Protobuf::Duration? + | ("identity" name) -> ::String + | ("request_id" name) -> ::String + | ("workflow_id_reuse_policy" name) -> (::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::names | ::Integer) + | ("workflow_id_conflict_policy" name) -> (::Temporalio::Api::Enums::V1::WorkflowIdConflictPolicy::names | ::Integer) + | ("retry_policy" name) -> ::Temporalio::Api::Common::V1::RetryPolicy? + | ("cron_schedule" name) -> ::String + | ("memo" name) -> ::Temporalio::Api::Common::V1::Memo? + | ("search_attributes" name) -> ::Temporalio::Api::Common::V1::SearchAttributes? + | ("header" name) -> ::Temporalio::Api::Common::V1::Header? + | ("request_eager_execution" name) -> bool + | ("continued_failure" name) -> ::Temporalio::Api::Failure::V1::Failure? + | ("last_completion_result" name) -> ::Temporalio::Api::Common::V1::Payloads? + | ("workflow_start_delay" name) -> ::Google::Protobuf::Duration? + | ("completion_callbacks" name) -> ::Google::Protobuf::RepeatedField + | ("user_metadata" name) -> ::Temporalio::Api::Sdk::V1::UserMetadata? + | ("links" name) -> ::Google::Protobuf::RepeatedField + | ("versioning_override" name) -> ::Temporalio::Api::Workflow::V1::VersioningOverride? + | ("on_conflict_options" name) -> ::Temporalio::Api::Workflow::V1::OnConflictOptions? + | ("priority" name) -> ::Temporalio::Api::Common::V1::Priority? + | ("eager_worker_deployment_options" name) -> ::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions? + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("workflow_id" name, (::String | ::Symbol) value) -> void + | ("workflow_type" name, ::Temporalio::Api::Common::V1::WorkflowType? value) -> void + | ("task_queue" name, ::Temporalio::Api::TaskQueue::V1::TaskQueue? value) -> void + | ("input" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void + | ("workflow_execution_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("workflow_run_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("workflow_task_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + | ("request_id" name, (::String | ::Symbol) value) -> void + | ("workflow_id_reuse_policy" name, (::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::names | ::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::strings | ::Integer | ::Float) value) -> void + | ("workflow_id_conflict_policy" name, (::Temporalio::Api::Enums::V1::WorkflowIdConflictPolicy::names | ::Temporalio::Api::Enums::V1::WorkflowIdConflictPolicy::strings | ::Integer | ::Float) value) -> void + | ("retry_policy" name, ::Temporalio::Api::Common::V1::RetryPolicy? value) -> void + | ("cron_schedule" name, (::String | ::Symbol) value) -> void + | ("memo" name, ::Temporalio::Api::Common::V1::Memo? value) -> void + | ("search_attributes" name, ::Temporalio::Api::Common::V1::SearchAttributes? value) -> void + | ("header" name, ::Temporalio::Api::Common::V1::Header? value) -> void + | ("request_eager_execution" name, bool value) -> void + | ("continued_failure" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void + | ("last_completion_result" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void + | ("workflow_start_delay" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("completion_callbacks" name, ::Google::Protobuf::RepeatedField value) -> void + | ("user_metadata" name, ::Temporalio::Api::Sdk::V1::UserMetadata? value) -> void + | ("links" name, ::Google::Protobuf::RepeatedField value) -> void + | ("versioning_override" name, ::Temporalio::Api::Workflow::V1::VersioningOverride? value) -> void + | ("on_conflict_options" name, ::Temporalio::Api::Workflow::V1::OnConflictOptions? value) -> void + | ("priority" name, ::Temporalio::Api::Common::V1::Priority? value) -> void + | ("eager_worker_deployment_options" name, ::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions? value) -> void + end + + class StartWorkflowExecutionResponse < ::Google::Protobuf::AbstractMessage + + # The run id of the workflow that was started - or used (via WorkflowIdConflictPolicy USE_EXISTING). + attr_reader run_id(): ::String + attr_writer run_id(): ::String | ::Symbol + def clear_run_id: () -> void + + # If true, a new workflow was started. + attr_accessor started(): bool + def clear_started: () -> void + + # 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). + attr_reader status(): ::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::names | ::Integer + attr_writer status(): ::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::names | ::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::strings | ::Integer | ::Float + attr_reader status_const(): ::Integer + def clear_status: () -> void + + # 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. + attr_accessor eager_workflow_task(): ::Temporalio::Api::WorkflowService::V1::PollWorkflowTaskQueueResponse? + def has_eager_workflow_task?: () -> bool + def clear_eager_workflow_task: () -> void + + # Link to the workflow event. + attr_accessor link(): ::Temporalio::Api::Common::V1::Link? + def has_link?: () -> bool + def clear_link: () -> void + + type init_map = { + run_id: (::String | ::Symbol)?, + "run_id" => (::String | ::Symbol)?, + started: bool?, + "started" => bool?, + status: (::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::names | ::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::strings | ::Integer | ::Float)?, + "status" => (::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::names | ::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::strings | ::Integer | ::Float)?, + eager_workflow_task: (::Temporalio::Api::WorkflowService::V1::PollWorkflowTaskQueueResponse | ::Temporalio::Api::WorkflowService::V1::PollWorkflowTaskQueueResponse::init_map)?, + "eager_workflow_task" => (::Temporalio::Api::WorkflowService::V1::PollWorkflowTaskQueueResponse | ::Temporalio::Api::WorkflowService::V1::PollWorkflowTaskQueueResponse::init_map)?, + link: (::Temporalio::Api::Common::V1::Link | ::Temporalio::Api::Common::V1::Link::init_map)?, + "link" => (::Temporalio::Api::Common::V1::Link | ::Temporalio::Api::Common::V1::Link::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("run_id" name) -> ::String + | ("started" name) -> bool + | ("status" name) -> (::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::names | ::Integer) + | ("eager_workflow_task" name) -> ::Temporalio::Api::WorkflowService::V1::PollWorkflowTaskQueueResponse? + | ("link" name) -> ::Temporalio::Api::Common::V1::Link? + + def []=: + ("run_id" name, (::String | ::Symbol) value) -> void + | ("started" name, bool value) -> void + | ("status" name, (::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::names | ::Temporalio::Api::Enums::V1::WorkflowExecutionStatus::strings | ::Integer | ::Float) value) -> void + | ("eager_workflow_task" name, ::Temporalio::Api::WorkflowService::V1::PollWorkflowTaskQueueResponse? value) -> void + | ("link" name, ::Temporalio::Api::Common::V1::Link? value) -> void + end + + class GetWorkflowExecutionHistoryRequest < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_accessor execution(): ::Temporalio::Api::Common::V1::WorkflowExecution? + def has_execution?: () -> bool + def clear_execution: () -> void + + attr_reader maximum_page_size(): ::Integer + attr_writer maximum_page_size(): ::Integer | ::Float + def clear_maximum_page_size: () -> void + + # If a `GetWorkflowExecutionHistoryResponse` or a `PollWorkflowTaskQueueResponse` had one of + # these, it should be passed here to fetch the next page. + attr_accessor next_page_token(): ::String + def clear_next_page_token: () -> void + + # 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. + attr_accessor wait_new_event(): bool + def clear_wait_new_event: () -> void + + # Filter returned events such that they match the specified filter type. + # Default: HISTORY_EVENT_FILTER_TYPE_ALL_EVENT. + attr_reader history_event_filter_type(): ::Temporalio::Api::Enums::V1::HistoryEventFilterType::names | ::Integer + attr_writer history_event_filter_type(): ::Temporalio::Api::Enums::V1::HistoryEventFilterType::names | ::Temporalio::Api::Enums::V1::HistoryEventFilterType::strings | ::Integer | ::Float + attr_reader history_event_filter_type_const(): ::Integer + def clear_history_event_filter_type: () -> void + + attr_accessor skip_archival(): bool + def clear_skip_archival: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + execution: (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + "execution" => (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + maximum_page_size: (::Integer | ::Float)?, + "maximum_page_size" => (::Integer | ::Float)?, + next_page_token: ::String?, + "next_page_token" => ::String?, + wait_new_event: bool?, + "wait_new_event" => bool?, + history_event_filter_type: (::Temporalio::Api::Enums::V1::HistoryEventFilterType::names | ::Temporalio::Api::Enums::V1::HistoryEventFilterType::strings | ::Integer | ::Float)?, + "history_event_filter_type" => (::Temporalio::Api::Enums::V1::HistoryEventFilterType::names | ::Temporalio::Api::Enums::V1::HistoryEventFilterType::strings | ::Integer | ::Float)?, + skip_archival: bool?, + "skip_archival" => bool?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("execution" name) -> ::Temporalio::Api::Common::V1::WorkflowExecution? + | ("maximum_page_size" name) -> ::Integer + | ("next_page_token" name) -> ::String + | ("wait_new_event" name) -> bool + | ("history_event_filter_type" name) -> (::Temporalio::Api::Enums::V1::HistoryEventFilterType::names | ::Integer) + | ("skip_archival" name) -> bool + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("execution" name, ::Temporalio::Api::Common::V1::WorkflowExecution? value) -> void + | ("maximum_page_size" name, (::Integer | ::Float) value) -> void + | ("next_page_token" name, ::String value) -> void + | ("wait_new_event" name, bool value) -> void + | ("history_event_filter_type" name, (::Temporalio::Api::Enums::V1::HistoryEventFilterType::names | ::Temporalio::Api::Enums::V1::HistoryEventFilterType::strings | ::Integer | ::Float) value) -> void + | ("skip_archival" name, bool value) -> void + end + + class GetWorkflowExecutionHistoryResponse < ::Google::Protobuf::AbstractMessage + + attr_accessor history(): ::Temporalio::Api::History::V1::History? + def has_history?: () -> bool + def clear_history: () -> void + + # 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. + attr_accessor raw_history(): ::Google::Protobuf::RepeatedField + def clear_raw_history: () -> void + + # Will be set if there are more history events than were included in this response + attr_accessor next_page_token(): ::String + def clear_next_page_token: () -> void + + attr_accessor archived(): bool + def clear_archived: () -> void + + type init_map = { + history: (::Temporalio::Api::History::V1::History | ::Temporalio::Api::History::V1::History::init_map)?, + "history" => (::Temporalio::Api::History::V1::History | ::Temporalio::Api::History::V1::History::init_map)?, + raw_history: ::Array[::Temporalio::Api::Common::V1::DataBlob]?, + "raw_history" => ::Array[::Temporalio::Api::Common::V1::DataBlob]?, + next_page_token: ::String?, + "next_page_token" => ::String?, + archived: bool?, + "archived" => bool?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("history" name) -> ::Temporalio::Api::History::V1::History? + | ("raw_history" name) -> ::Google::Protobuf::RepeatedField + | ("next_page_token" name) -> ::String + | ("archived" name) -> bool + + def []=: + ("history" name, ::Temporalio::Api::History::V1::History? value) -> void + | ("raw_history" name, ::Google::Protobuf::RepeatedField value) -> void + | ("next_page_token" name, ::String value) -> void + | ("archived" name, bool value) -> void + end + + class GetWorkflowExecutionHistoryReverseRequest < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_accessor execution(): ::Temporalio::Api::Common::V1::WorkflowExecution? + def has_execution?: () -> bool + def clear_execution: () -> void + + attr_reader maximum_page_size(): ::Integer + attr_writer maximum_page_size(): ::Integer | ::Float + def clear_maximum_page_size: () -> void + + attr_accessor next_page_token(): ::String + def clear_next_page_token: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + execution: (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + "execution" => (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + maximum_page_size: (::Integer | ::Float)?, + "maximum_page_size" => (::Integer | ::Float)?, + next_page_token: ::String?, + "next_page_token" => ::String?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("execution" name) -> ::Temporalio::Api::Common::V1::WorkflowExecution? + | ("maximum_page_size" name) -> ::Integer + | ("next_page_token" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("execution" name, ::Temporalio::Api::Common::V1::WorkflowExecution? value) -> void + | ("maximum_page_size" name, (::Integer | ::Float) value) -> void + | ("next_page_token" name, ::String value) -> void + end + + class GetWorkflowExecutionHistoryReverseResponse < ::Google::Protobuf::AbstractMessage + + attr_accessor history(): ::Temporalio::Api::History::V1::History? + def has_history?: () -> bool + def clear_history: () -> void + + # Will be set if there are more history events than were included in this response + attr_accessor next_page_token(): ::String + def clear_next_page_token: () -> void + + type init_map = { + history: (::Temporalio::Api::History::V1::History | ::Temporalio::Api::History::V1::History::init_map)?, + "history" => (::Temporalio::Api::History::V1::History | ::Temporalio::Api::History::V1::History::init_map)?, + next_page_token: ::String?, + "next_page_token" => ::String?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("history" name) -> ::Temporalio::Api::History::V1::History? + | ("next_page_token" name) -> ::String + + def []=: + ("history" name, ::Temporalio::Api::History::V1::History? value) -> void + | ("next_page_token" name, ::String value) -> void + end + + class PollWorkflowTaskQueueRequest < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_accessor task_queue(): ::Temporalio::Api::TaskQueue::V1::TaskQueue? + def has_task_queue?: () -> bool + def clear_task_queue: () -> void + + # The identity of the worker/client who is polling this task queue + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + # 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. + attr_reader worker_instance_key(): ::String + attr_writer worker_instance_key(): ::String | ::Symbol + def clear_worker_instance_key: () -> void + + # 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 + attr_reader binary_checksum(): ::String + attr_writer binary_checksum(): ::String | ::Symbol + def clear_binary_checksum: () -> void + + # 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 + attr_accessor worker_version_capabilities(): ::Temporalio::Api::Common::V1::WorkerVersionCapabilities? + def has_worker_version_capabilities?: () -> bool + def clear_worker_version_capabilities: () -> void + + # Worker deployment options that user has set in the worker. + # Experimental. Worker Deployments are experimental and might significantly change in the future. + attr_accessor deployment_options(): ::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions? + def has_deployment_options?: () -> bool + def clear_deployment_options: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + task_queue: (::Temporalio::Api::TaskQueue::V1::TaskQueue | ::Temporalio::Api::TaskQueue::V1::TaskQueue::init_map)?, + "task_queue" => (::Temporalio::Api::TaskQueue::V1::TaskQueue | ::Temporalio::Api::TaskQueue::V1::TaskQueue::init_map)?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + worker_instance_key: (::String | ::Symbol)?, + "worker_instance_key" => (::String | ::Symbol)?, + binary_checksum: (::String | ::Symbol)?, + "binary_checksum" => (::String | ::Symbol)?, + worker_version_capabilities: (::Temporalio::Api::Common::V1::WorkerVersionCapabilities | ::Temporalio::Api::Common::V1::WorkerVersionCapabilities::init_map)?, + "worker_version_capabilities" => (::Temporalio::Api::Common::V1::WorkerVersionCapabilities | ::Temporalio::Api::Common::V1::WorkerVersionCapabilities::init_map)?, + deployment_options: (::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions | ::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions::init_map)?, + "deployment_options" => (::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions | ::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("task_queue" name) -> ::Temporalio::Api::TaskQueue::V1::TaskQueue? + | ("identity" name) -> ::String + | ("worker_instance_key" name) -> ::String + | ("binary_checksum" name) -> ::String + | ("worker_version_capabilities" name) -> ::Temporalio::Api::Common::V1::WorkerVersionCapabilities? + | ("deployment_options" name) -> ::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions? + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("task_queue" name, ::Temporalio::Api::TaskQueue::V1::TaskQueue? value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + | ("worker_instance_key" name, (::String | ::Symbol) value) -> void + | ("binary_checksum" name, (::String | ::Symbol) value) -> void + | ("worker_version_capabilities" name, ::Temporalio::Api::Common::V1::WorkerVersionCapabilities? value) -> void + | ("deployment_options" name, ::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions? value) -> void + end + + class PollWorkflowTaskQueueResponse < ::Google::Protobuf::AbstractMessage + + # A unique identifier for this task + attr_accessor task_token(): ::String + def clear_task_token: () -> void + + attr_accessor workflow_execution(): ::Temporalio::Api::Common::V1::WorkflowExecution? + def has_workflow_execution?: () -> bool + def clear_workflow_execution: () -> void + + attr_accessor workflow_type(): ::Temporalio::Api::Common::V1::WorkflowType? + def has_workflow_type?: () -> bool + def clear_workflow_type: () -> void + + # The last workflow task started event which was processed by some worker for this execution. + # Will be zero if no task has ever started. + attr_reader previous_started_event_id(): ::Integer + attr_writer previous_started_event_id(): ::Integer | ::Float + def clear_previous_started_event_id: () -> void + + # 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. + attr_reader started_event_id(): ::Integer + attr_writer started_event_id(): ::Integer | ::Float + def clear_started_event_id: () -> void + + # Starting at 1, the number of attempts to complete this task by any worker. + attr_reader attempt(): ::Integer + attr_writer attempt(): ::Integer | ::Float + def clear_attempt: () -> void + + # 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. + attr_reader backlog_count_hint(): ::Integer + attr_writer backlog_count_hint(): ::Integer | ::Float + def clear_backlog_count_hint: () -> void + + # 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. + attr_accessor history(): ::Temporalio::Api::History::V1::History? + def has_history?: () -> bool + def clear_history: () -> void + + # Will be set if there are more history events than were included in this response. Such events + # should be fetched via `GetWorkflowExecutionHistory`. + attr_accessor next_page_token(): ::String + def clear_next_page_token: () -> void + + # 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. + attr_accessor query(): ::Temporalio::Api::Query::V1::WorkflowQuery? + def has_query?: () -> bool + def clear_query: () -> void + + # 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. + attr_accessor workflow_execution_task_queue(): ::Temporalio::Api::TaskQueue::V1::TaskQueue? + def has_workflow_execution_task_queue?: () -> bool + def clear_workflow_execution_task_queue: () -> void + + # When this task was scheduled by the server + attr_reader scheduled_time(): ::Google::Protobuf::Timestamp? + attr_writer scheduled_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_scheduled_time?: () -> bool + def clear_scheduled_time: () -> void + + # When the current workflow task started event was generated, meaning the current attempt. + attr_reader started_time(): ::Google::Protobuf::Timestamp? + attr_writer started_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_started_time?: () -> bool + def clear_started_time: () -> void + + # Queries that should be executed after applying the history in this task. Responses should be + # attached to `RespondWorkflowTaskCompletedRequest::query_results` + attr_accessor queries(): ::Google::Protobuf::Map[::String, ::Temporalio::Api::Query::V1::WorkflowQuery] + def clear_queries: () -> void + + # Protocol messages piggybacking on a WFT as a transport + attr_accessor messages(): ::Google::Protobuf::RepeatedField + def clear_messages: () -> void + + # Server-advised information the SDK may use to adjust its poller count. + attr_accessor poller_scaling_decision(): ::Temporalio::Api::TaskQueue::V1::PollerScalingDecision? + def has_poller_scaling_decision?: () -> bool + def clear_poller_scaling_decision: () -> void + + type init_map = { + task_token: ::String?, + "task_token" => ::String?, + workflow_execution: (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + "workflow_execution" => (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + workflow_type: (::Temporalio::Api::Common::V1::WorkflowType | ::Temporalio::Api::Common::V1::WorkflowType::init_map)?, + "workflow_type" => (::Temporalio::Api::Common::V1::WorkflowType | ::Temporalio::Api::Common::V1::WorkflowType::init_map)?, + previous_started_event_id: (::Integer | ::Float)?, + "previous_started_event_id" => (::Integer | ::Float)?, + started_event_id: (::Integer | ::Float)?, + "started_event_id" => (::Integer | ::Float)?, + attempt: (::Integer | ::Float)?, + "attempt" => (::Integer | ::Float)?, + backlog_count_hint: (::Integer | ::Float)?, + "backlog_count_hint" => (::Integer | ::Float)?, + history: (::Temporalio::Api::History::V1::History | ::Temporalio::Api::History::V1::History::init_map)?, + "history" => (::Temporalio::Api::History::V1::History | ::Temporalio::Api::History::V1::History::init_map)?, + next_page_token: ::String?, + "next_page_token" => ::String?, + query: (::Temporalio::Api::Query::V1::WorkflowQuery | ::Temporalio::Api::Query::V1::WorkflowQuery::init_map)?, + "query" => (::Temporalio::Api::Query::V1::WorkflowQuery | ::Temporalio::Api::Query::V1::WorkflowQuery::init_map)?, + workflow_execution_task_queue: (::Temporalio::Api::TaskQueue::V1::TaskQueue | ::Temporalio::Api::TaskQueue::V1::TaskQueue::init_map)?, + "workflow_execution_task_queue" => (::Temporalio::Api::TaskQueue::V1::TaskQueue | ::Temporalio::Api::TaskQueue::V1::TaskQueue::init_map)?, + scheduled_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "scheduled_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + started_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "started_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + queries: ::Hash[::String | ::Symbol, ::Temporalio::Api::Query::V1::WorkflowQuery]?, + "queries" => ::Hash[::String | ::Symbol, ::Temporalio::Api::Query::V1::WorkflowQuery]?, + messages: ::Array[::Temporalio::Api::Protocol::V1::Message]?, + "messages" => ::Array[::Temporalio::Api::Protocol::V1::Message]?, + poller_scaling_decision: (::Temporalio::Api::TaskQueue::V1::PollerScalingDecision | ::Temporalio::Api::TaskQueue::V1::PollerScalingDecision::init_map)?, + "poller_scaling_decision" => (::Temporalio::Api::TaskQueue::V1::PollerScalingDecision | ::Temporalio::Api::TaskQueue::V1::PollerScalingDecision::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("task_token" name) -> ::String + | ("workflow_execution" name) -> ::Temporalio::Api::Common::V1::WorkflowExecution? + | ("workflow_type" name) -> ::Temporalio::Api::Common::V1::WorkflowType? + | ("previous_started_event_id" name) -> ::Integer + | ("started_event_id" name) -> ::Integer + | ("attempt" name) -> ::Integer + | ("backlog_count_hint" name) -> ::Integer + | ("history" name) -> ::Temporalio::Api::History::V1::History? + | ("next_page_token" name) -> ::String + | ("query" name) -> ::Temporalio::Api::Query::V1::WorkflowQuery? + | ("workflow_execution_task_queue" name) -> ::Temporalio::Api::TaskQueue::V1::TaskQueue? + | ("scheduled_time" name) -> ::Google::Protobuf::Timestamp? + | ("started_time" name) -> ::Google::Protobuf::Timestamp? + | ("queries" name) -> (::Google::Protobuf::Map[::String, ::Temporalio::Api::Query::V1::WorkflowQuery]) + | ("messages" name) -> ::Google::Protobuf::RepeatedField + | ("poller_scaling_decision" name) -> ::Temporalio::Api::TaskQueue::V1::PollerScalingDecision? + + def []=: + ("task_token" name, ::String value) -> void + | ("workflow_execution" name, ::Temporalio::Api::Common::V1::WorkflowExecution? value) -> void + | ("workflow_type" name, ::Temporalio::Api::Common::V1::WorkflowType? value) -> void + | ("previous_started_event_id" name, (::Integer | ::Float) value) -> void + | ("started_event_id" name, (::Integer | ::Float) value) -> void + | ("attempt" name, (::Integer | ::Float) value) -> void + | ("backlog_count_hint" name, (::Integer | ::Float) value) -> void + | ("history" name, ::Temporalio::Api::History::V1::History? value) -> void + | ("next_page_token" name, ::String value) -> void + | ("query" name, ::Temporalio::Api::Query::V1::WorkflowQuery? value) -> void + | ("workflow_execution_task_queue" name, ::Temporalio::Api::TaskQueue::V1::TaskQueue? value) -> void + | ("scheduled_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("started_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("queries" name, (::Google::Protobuf::Map[::String, ::Temporalio::Api::Query::V1::WorkflowQuery]) value) -> void + | ("messages" name, ::Google::Protobuf::RepeatedField value) -> void + | ("poller_scaling_decision" name, ::Temporalio::Api::TaskQueue::V1::PollerScalingDecision? value) -> void + end + + class RespondWorkflowTaskCompletedRequest < ::Google::Protobuf::AbstractMessage + # SDK capability details. + class Capabilities < ::Google::Protobuf::AbstractMessage + + # 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. --) + attr_accessor discard_speculative_workflow_task_with_events(): bool + def clear_discard_speculative_workflow_task_with_events: () -> void + + type init_map = { + discard_speculative_workflow_task_with_events: bool?, + "discard_speculative_workflow_task_with_events" => bool?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("discard_speculative_workflow_task_with_events" name) -> bool + + def []=: + ("discard_speculative_workflow_task_with_events" name, bool value) -> void + end + + # The task token as received in `PollWorkflowTaskQueueResponse` + attr_accessor task_token(): ::String + def clear_task_token: () -> void + + # A list of commands generated when driving the workflow code in response to the new task + attr_accessor commands(): ::Google::Protobuf::RepeatedField + def clear_commands: () -> void + + # The identity of the worker/client + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + # May be set by workers to indicate that the worker desires future tasks to be provided with + # incremental history on a sticky queue. + attr_accessor sticky_attributes(): ::Temporalio::Api::TaskQueue::V1::StickyExecutionAttributes? + def has_sticky_attributes?: () -> bool + def clear_sticky_attributes: () -> void + + # 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. + attr_accessor return_new_workflow_task(): bool + def clear_return_new_workflow_task: () -> void + + # 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. + attr_accessor force_create_new_workflow_task(): bool + def clear_force_create_new_workflow_task: () -> void + + # Deprecated. Use `deployment_options` instead. + # Worker process' unique binary id + # @deprecated + attr_reader binary_checksum(): ::String + attr_writer binary_checksum(): ::String | ::Symbol + def clear_binary_checksum: () -> void + + # Responses to the `queries` field in the task being responded to + attr_accessor query_results(): ::Google::Protobuf::Map[::String, ::Temporalio::Api::Query::V1::WorkflowQueryResult] + def clear_query_results: () -> void + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # Resource ID for routing. Contains the workflow ID from the original task. + attr_reader resource_id(): ::String + attr_writer resource_id(): ::String | ::Symbol + def clear_resource_id: () -> void + + # 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 + attr_accessor worker_version_stamp(): ::Temporalio::Api::Common::V1::WorkerVersionStamp? + def has_worker_version_stamp?: () -> bool + def clear_worker_version_stamp: () -> void + + # Protocol messages piggybacking on a WFT as a transport + attr_accessor messages(): ::Google::Protobuf::RepeatedField + def clear_messages: () -> void + + # Data the SDK wishes to record for itself, but server need not interpret, and does not + # directly impact workflow state. + attr_accessor sdk_metadata(): ::Temporalio::Api::Sdk::V1::WorkflowTaskCompletedMetadata? + def has_sdk_metadata?: () -> bool + def clear_sdk_metadata: () -> void + + # Local usage data collected for metering + attr_accessor metering_metadata(): ::Temporalio::Api::Common::V1::MeteringMetadata? + def has_metering_metadata?: () -> bool + def clear_metering_metadata: () -> void + + # All capabilities the SDK supports. + attr_accessor capabilities(): ::Temporalio::Api::WorkflowService::V1::RespondWorkflowTaskCompletedRequest::Capabilities? + def has_capabilities?: () -> bool + def clear_capabilities: () -> void + + # 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 + attr_accessor deployment(): ::Temporalio::Api::Deployment::V1::Deployment? + def has_deployment?: () -> bool + def clear_deployment: () -> void + + # Versioning behavior of this workflow execution as set on the worker that completed this task. + # UNSPECIFIED means versioning is not enabled in the worker. + attr_reader versioning_behavior(): ::Temporalio::Api::Enums::V1::VersioningBehavior::names | ::Integer + attr_writer versioning_behavior(): ::Temporalio::Api::Enums::V1::VersioningBehavior::names | ::Temporalio::Api::Enums::V1::VersioningBehavior::strings | ::Integer | ::Float + attr_reader versioning_behavior_const(): ::Integer + def clear_versioning_behavior: () -> void + + # Worker deployment options that user has set in the worker. + attr_accessor deployment_options(): ::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions? + def has_deployment_options?: () -> bool + def clear_deployment_options: () -> void + + type init_map = { + task_token: ::String?, + "task_token" => ::String?, + commands: ::Array[::Temporalio::Api::Command::V1::Command]?, + "commands" => ::Array[::Temporalio::Api::Command::V1::Command]?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + sticky_attributes: (::Temporalio::Api::TaskQueue::V1::StickyExecutionAttributes | ::Temporalio::Api::TaskQueue::V1::StickyExecutionAttributes::init_map)?, + "sticky_attributes" => (::Temporalio::Api::TaskQueue::V1::StickyExecutionAttributes | ::Temporalio::Api::TaskQueue::V1::StickyExecutionAttributes::init_map)?, + return_new_workflow_task: bool?, + "return_new_workflow_task" => bool?, + force_create_new_workflow_task: bool?, + "force_create_new_workflow_task" => bool?, + binary_checksum: (::String | ::Symbol)?, + "binary_checksum" => (::String | ::Symbol)?, + query_results: ::Hash[::String | ::Symbol, ::Temporalio::Api::Query::V1::WorkflowQueryResult]?, + "query_results" => ::Hash[::String | ::Symbol, ::Temporalio::Api::Query::V1::WorkflowQueryResult]?, + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + resource_id: (::String | ::Symbol)?, + "resource_id" => (::String | ::Symbol)?, + worker_version_stamp: (::Temporalio::Api::Common::V1::WorkerVersionStamp | ::Temporalio::Api::Common::V1::WorkerVersionStamp::init_map)?, + "worker_version_stamp" => (::Temporalio::Api::Common::V1::WorkerVersionStamp | ::Temporalio::Api::Common::V1::WorkerVersionStamp::init_map)?, + messages: ::Array[::Temporalio::Api::Protocol::V1::Message]?, + "messages" => ::Array[::Temporalio::Api::Protocol::V1::Message]?, + sdk_metadata: (::Temporalio::Api::Sdk::V1::WorkflowTaskCompletedMetadata | ::Temporalio::Api::Sdk::V1::WorkflowTaskCompletedMetadata::init_map)?, + "sdk_metadata" => (::Temporalio::Api::Sdk::V1::WorkflowTaskCompletedMetadata | ::Temporalio::Api::Sdk::V1::WorkflowTaskCompletedMetadata::init_map)?, + metering_metadata: (::Temporalio::Api::Common::V1::MeteringMetadata | ::Temporalio::Api::Common::V1::MeteringMetadata::init_map)?, + "metering_metadata" => (::Temporalio::Api::Common::V1::MeteringMetadata | ::Temporalio::Api::Common::V1::MeteringMetadata::init_map)?, + capabilities: (::Temporalio::Api::WorkflowService::V1::RespondWorkflowTaskCompletedRequest::Capabilities | ::Temporalio::Api::WorkflowService::V1::RespondWorkflowTaskCompletedRequest::Capabilities::init_map)?, + "capabilities" => (::Temporalio::Api::WorkflowService::V1::RespondWorkflowTaskCompletedRequest::Capabilities | ::Temporalio::Api::WorkflowService::V1::RespondWorkflowTaskCompletedRequest::Capabilities::init_map)?, + deployment: (::Temporalio::Api::Deployment::V1::Deployment | ::Temporalio::Api::Deployment::V1::Deployment::init_map)?, + "deployment" => (::Temporalio::Api::Deployment::V1::Deployment | ::Temporalio::Api::Deployment::V1::Deployment::init_map)?, + versioning_behavior: (::Temporalio::Api::Enums::V1::VersioningBehavior::names | ::Temporalio::Api::Enums::V1::VersioningBehavior::strings | ::Integer | ::Float)?, + "versioning_behavior" => (::Temporalio::Api::Enums::V1::VersioningBehavior::names | ::Temporalio::Api::Enums::V1::VersioningBehavior::strings | ::Integer | ::Float)?, + deployment_options: (::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions | ::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions::init_map)?, + "deployment_options" => (::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions | ::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("task_token" name) -> ::String + | ("commands" name) -> ::Google::Protobuf::RepeatedField + | ("identity" name) -> ::String + | ("sticky_attributes" name) -> ::Temporalio::Api::TaskQueue::V1::StickyExecutionAttributes? + | ("return_new_workflow_task" name) -> bool + | ("force_create_new_workflow_task" name) -> bool + | ("binary_checksum" name) -> ::String + | ("query_results" name) -> (::Google::Protobuf::Map[::String, ::Temporalio::Api::Query::V1::WorkflowQueryResult]) + | ("namespace" name) -> ::String + | ("resource_id" name) -> ::String + | ("worker_version_stamp" name) -> ::Temporalio::Api::Common::V1::WorkerVersionStamp? + | ("messages" name) -> ::Google::Protobuf::RepeatedField + | ("sdk_metadata" name) -> ::Temporalio::Api::Sdk::V1::WorkflowTaskCompletedMetadata? + | ("metering_metadata" name) -> ::Temporalio::Api::Common::V1::MeteringMetadata? + | ("capabilities" name) -> ::Temporalio::Api::WorkflowService::V1::RespondWorkflowTaskCompletedRequest::Capabilities? + | ("deployment" name) -> ::Temporalio::Api::Deployment::V1::Deployment? + | ("versioning_behavior" name) -> (::Temporalio::Api::Enums::V1::VersioningBehavior::names | ::Integer) + | ("deployment_options" name) -> ::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions? + + def []=: + ("task_token" name, ::String value) -> void + | ("commands" name, ::Google::Protobuf::RepeatedField value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + | ("sticky_attributes" name, ::Temporalio::Api::TaskQueue::V1::StickyExecutionAttributes? value) -> void + | ("return_new_workflow_task" name, bool value) -> void + | ("force_create_new_workflow_task" name, bool value) -> void + | ("binary_checksum" name, (::String | ::Symbol) value) -> void + | ("query_results" name, (::Google::Protobuf::Map[::String, ::Temporalio::Api::Query::V1::WorkflowQueryResult]) value) -> void + | ("namespace" name, (::String | ::Symbol) value) -> void + | ("resource_id" name, (::String | ::Symbol) value) -> void + | ("worker_version_stamp" name, ::Temporalio::Api::Common::V1::WorkerVersionStamp? value) -> void + | ("messages" name, ::Google::Protobuf::RepeatedField value) -> void + | ("sdk_metadata" name, ::Temporalio::Api::Sdk::V1::WorkflowTaskCompletedMetadata? value) -> void + | ("metering_metadata" name, ::Temporalio::Api::Common::V1::MeteringMetadata? value) -> void + | ("capabilities" name, ::Temporalio::Api::WorkflowService::V1::RespondWorkflowTaskCompletedRequest::Capabilities? value) -> void + | ("deployment" name, ::Temporalio::Api::Deployment::V1::Deployment? value) -> void + | ("versioning_behavior" name, (::Temporalio::Api::Enums::V1::VersioningBehavior::names | ::Temporalio::Api::Enums::V1::VersioningBehavior::strings | ::Integer | ::Float) value) -> void + | ("deployment_options" name, ::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions? value) -> void + end + + class RespondWorkflowTaskCompletedResponse < ::Google::Protobuf::AbstractMessage + + # See `RespondWorkflowTaskCompletedResponse::return_new_workflow_task` + attr_accessor workflow_task(): ::Temporalio::Api::WorkflowService::V1::PollWorkflowTaskQueueResponse? + def has_workflow_task?: () -> bool + def clear_workflow_task: () -> void + + # See `ScheduleActivityTaskCommandAttributes::request_eager_execution` + attr_accessor activity_tasks(): ::Google::Protobuf::RepeatedField + def clear_activity_tasks: () -> void + + # 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. + attr_reader reset_history_event_id(): ::Integer + attr_writer reset_history_event_id(): ::Integer | ::Float + def clear_reset_history_event_id: () -> void + + type init_map = { + workflow_task: (::Temporalio::Api::WorkflowService::V1::PollWorkflowTaskQueueResponse | ::Temporalio::Api::WorkflowService::V1::PollWorkflowTaskQueueResponse::init_map)?, + "workflow_task" => (::Temporalio::Api::WorkflowService::V1::PollWorkflowTaskQueueResponse | ::Temporalio::Api::WorkflowService::V1::PollWorkflowTaskQueueResponse::init_map)?, + activity_tasks: ::Array[::Temporalio::Api::WorkflowService::V1::PollActivityTaskQueueResponse]?, + "activity_tasks" => ::Array[::Temporalio::Api::WorkflowService::V1::PollActivityTaskQueueResponse]?, + reset_history_event_id: (::Integer | ::Float)?, + "reset_history_event_id" => (::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("workflow_task" name) -> ::Temporalio::Api::WorkflowService::V1::PollWorkflowTaskQueueResponse? + | ("activity_tasks" name) -> ::Google::Protobuf::RepeatedField + | ("reset_history_event_id" name) -> ::Integer + + def []=: + ("workflow_task" name, ::Temporalio::Api::WorkflowService::V1::PollWorkflowTaskQueueResponse? value) -> void + | ("activity_tasks" name, ::Google::Protobuf::RepeatedField value) -> void + | ("reset_history_event_id" name, (::Integer | ::Float) value) -> void + end + + class RespondWorkflowTaskFailedRequest < ::Google::Protobuf::AbstractMessage + + # The task token as received in `PollWorkflowTaskQueueResponse` + attr_accessor task_token(): ::String + def clear_task_token: () -> void + + # 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. + attr_reader cause(): ::Temporalio::Api::Enums::V1::WorkflowTaskFailedCause::names | ::Integer + attr_writer cause(): ::Temporalio::Api::Enums::V1::WorkflowTaskFailedCause::names | ::Temporalio::Api::Enums::V1::WorkflowTaskFailedCause::strings | ::Integer | ::Float + attr_reader cause_const(): ::Integer + def clear_cause: () -> void + + # Failure details + attr_accessor failure(): ::Temporalio::Api::Failure::V1::Failure? + def has_failure?: () -> bool + def clear_failure: () -> void + + # The identity of the worker/client + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + # Deprecated. Use `deployment_options` instead. + # Worker process' unique binary id + # @deprecated + attr_reader binary_checksum(): ::String + attr_writer binary_checksum(): ::String | ::Symbol + def clear_binary_checksum: () -> void + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # Resource ID for routing. Contains the workflow ID from the original task. + attr_reader resource_id(): ::String + attr_writer resource_id(): ::String | ::Symbol + def clear_resource_id: () -> void + + # Protocol messages piggybacking on a WFT as a transport + attr_accessor messages(): ::Google::Protobuf::RepeatedField + def clear_messages: () -> void + + # 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 + attr_accessor worker_version(): ::Temporalio::Api::Common::V1::WorkerVersionStamp? + def has_worker_version?: () -> bool + def clear_worker_version: () -> void + + # 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 + attr_accessor deployment(): ::Temporalio::Api::Deployment::V1::Deployment? + def has_deployment?: () -> bool + def clear_deployment: () -> void + + # Worker deployment options that user has set in the worker. + attr_accessor deployment_options(): ::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions? + def has_deployment_options?: () -> bool + def clear_deployment_options: () -> void + + type init_map = { + task_token: ::String?, + "task_token" => ::String?, + cause: (::Temporalio::Api::Enums::V1::WorkflowTaskFailedCause::names | ::Temporalio::Api::Enums::V1::WorkflowTaskFailedCause::strings | ::Integer | ::Float)?, + "cause" => (::Temporalio::Api::Enums::V1::WorkflowTaskFailedCause::names | ::Temporalio::Api::Enums::V1::WorkflowTaskFailedCause::strings | ::Integer | ::Float)?, + failure: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + "failure" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + binary_checksum: (::String | ::Symbol)?, + "binary_checksum" => (::String | ::Symbol)?, + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + resource_id: (::String | ::Symbol)?, + "resource_id" => (::String | ::Symbol)?, + messages: ::Array[::Temporalio::Api::Protocol::V1::Message]?, + "messages" => ::Array[::Temporalio::Api::Protocol::V1::Message]?, + worker_version: (::Temporalio::Api::Common::V1::WorkerVersionStamp | ::Temporalio::Api::Common::V1::WorkerVersionStamp::init_map)?, + "worker_version" => (::Temporalio::Api::Common::V1::WorkerVersionStamp | ::Temporalio::Api::Common::V1::WorkerVersionStamp::init_map)?, + deployment: (::Temporalio::Api::Deployment::V1::Deployment | ::Temporalio::Api::Deployment::V1::Deployment::init_map)?, + "deployment" => (::Temporalio::Api::Deployment::V1::Deployment | ::Temporalio::Api::Deployment::V1::Deployment::init_map)?, + deployment_options: (::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions | ::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions::init_map)?, + "deployment_options" => (::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions | ::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("task_token" name) -> ::String + | ("cause" name) -> (::Temporalio::Api::Enums::V1::WorkflowTaskFailedCause::names | ::Integer) + | ("failure" name) -> ::Temporalio::Api::Failure::V1::Failure? + | ("identity" name) -> ::String + | ("binary_checksum" name) -> ::String + | ("namespace" name) -> ::String + | ("resource_id" name) -> ::String + | ("messages" name) -> ::Google::Protobuf::RepeatedField + | ("worker_version" name) -> ::Temporalio::Api::Common::V1::WorkerVersionStamp? + | ("deployment" name) -> ::Temporalio::Api::Deployment::V1::Deployment? + | ("deployment_options" name) -> ::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions? + + def []=: + ("task_token" name, ::String value) -> void + | ("cause" name, (::Temporalio::Api::Enums::V1::WorkflowTaskFailedCause::names | ::Temporalio::Api::Enums::V1::WorkflowTaskFailedCause::strings | ::Integer | ::Float) value) -> void + | ("failure" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + | ("binary_checksum" name, (::String | ::Symbol) value) -> void + | ("namespace" name, (::String | ::Symbol) value) -> void + | ("resource_id" name, (::String | ::Symbol) value) -> void + | ("messages" name, ::Google::Protobuf::RepeatedField value) -> void + | ("worker_version" name, ::Temporalio::Api::Common::V1::WorkerVersionStamp? value) -> void + | ("deployment" name, ::Temporalio::Api::Deployment::V1::Deployment? value) -> void + | ("deployment_options" name, ::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions? value) -> void + end + + class RespondWorkflowTaskFailedResponse < ::Google::Protobuf::AbstractMessage + + type init_map = { + } + + def initialize: (?init_map initial_value) -> void + end + + class PollActivityTaskQueueRequest < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_accessor task_queue(): ::Temporalio::Api::TaskQueue::V1::TaskQueue? + def has_task_queue?: () -> bool + def clear_task_queue: () -> void + + # The identity of the worker/client + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + # 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. + attr_reader worker_instance_key(): ::String + attr_writer worker_instance_key(): ::String | ::Symbol + def clear_worker_instance_key: () -> void + + attr_accessor task_queue_metadata(): ::Temporalio::Api::TaskQueue::V1::TaskQueueMetadata? + def has_task_queue_metadata?: () -> bool + def clear_task_queue_metadata: () -> void + + # 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 + attr_accessor worker_version_capabilities(): ::Temporalio::Api::Common::V1::WorkerVersionCapabilities? + def has_worker_version_capabilities?: () -> bool + def clear_worker_version_capabilities: () -> void + + # Worker deployment options that user has set in the worker. + attr_accessor deployment_options(): ::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions? + def has_deployment_options?: () -> bool + def clear_deployment_options: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + task_queue: (::Temporalio::Api::TaskQueue::V1::TaskQueue | ::Temporalio::Api::TaskQueue::V1::TaskQueue::init_map)?, + "task_queue" => (::Temporalio::Api::TaskQueue::V1::TaskQueue | ::Temporalio::Api::TaskQueue::V1::TaskQueue::init_map)?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + worker_instance_key: (::String | ::Symbol)?, + "worker_instance_key" => (::String | ::Symbol)?, + task_queue_metadata: (::Temporalio::Api::TaskQueue::V1::TaskQueueMetadata | ::Temporalio::Api::TaskQueue::V1::TaskQueueMetadata::init_map)?, + "task_queue_metadata" => (::Temporalio::Api::TaskQueue::V1::TaskQueueMetadata | ::Temporalio::Api::TaskQueue::V1::TaskQueueMetadata::init_map)?, + worker_version_capabilities: (::Temporalio::Api::Common::V1::WorkerVersionCapabilities | ::Temporalio::Api::Common::V1::WorkerVersionCapabilities::init_map)?, + "worker_version_capabilities" => (::Temporalio::Api::Common::V1::WorkerVersionCapabilities | ::Temporalio::Api::Common::V1::WorkerVersionCapabilities::init_map)?, + deployment_options: (::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions | ::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions::init_map)?, + "deployment_options" => (::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions | ::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("task_queue" name) -> ::Temporalio::Api::TaskQueue::V1::TaskQueue? + | ("identity" name) -> ::String + | ("worker_instance_key" name) -> ::String + | ("task_queue_metadata" name) -> ::Temporalio::Api::TaskQueue::V1::TaskQueueMetadata? + | ("worker_version_capabilities" name) -> ::Temporalio::Api::Common::V1::WorkerVersionCapabilities? + | ("deployment_options" name) -> ::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions? + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("task_queue" name, ::Temporalio::Api::TaskQueue::V1::TaskQueue? value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + | ("worker_instance_key" name, (::String | ::Symbol) value) -> void + | ("task_queue_metadata" name, ::Temporalio::Api::TaskQueue::V1::TaskQueueMetadata? value) -> void + | ("worker_version_capabilities" name, ::Temporalio::Api::Common::V1::WorkerVersionCapabilities? value) -> void + | ("deployment_options" name, ::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions? value) -> void + end + + class PollActivityTaskQueueResponse < ::Google::Protobuf::AbstractMessage + + # A unique identifier for this task + attr_accessor task_token(): ::String + def clear_task_token: () -> void + + # The namespace of the activity. If this is a workflow activity then this is the namespace of + # the workflow also. If this is a standalone activity then the name of this field is + # misleading, but retained for compatibility with workflow activities. + attr_reader workflow_namespace(): ::String + attr_writer workflow_namespace(): ::String | ::Symbol + def clear_workflow_namespace: () -> void + + # Type of the requesting workflow (if this is a workflow activity). + attr_accessor workflow_type(): ::Temporalio::Api::Common::V1::WorkflowType? + def has_workflow_type?: () -> bool + def clear_workflow_type: () -> void + + # Execution info of the requesting workflow (if this is a workflow activity) + attr_accessor workflow_execution(): ::Temporalio::Api::Common::V1::WorkflowExecution? + def has_workflow_execution?: () -> bool + def clear_workflow_execution: () -> void + + attr_accessor activity_type(): ::Temporalio::Api::Common::V1::ActivityType? + def has_activity_type?: () -> bool + def clear_activity_type: () -> void + + # 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. + attr_reader activity_id(): ::String + attr_writer activity_id(): ::String | ::Symbol + def clear_activity_id: () -> void + + # Headers specified by the scheduling workflow. Commonly used to propagate contextual info + # from the workflow to its activities. For example, tracing contexts. + attr_accessor header(): ::Temporalio::Api::Common::V1::Header? + def has_header?: () -> bool + def clear_header: () -> void + + # Arguments to the activity invocation + attr_accessor input(): ::Temporalio::Api::Common::V1::Payloads? + def has_input?: () -> bool + def clear_input: () -> void + + # Details of the last heartbeat that was recorded for this activity as of the time this task + # was delivered. + attr_accessor heartbeat_details(): ::Temporalio::Api::Common::V1::Payloads? + def has_heartbeat_details?: () -> bool + def clear_heartbeat_details: () -> void + + # When was this task first scheduled + attr_reader scheduled_time(): ::Google::Protobuf::Timestamp? + attr_writer scheduled_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_scheduled_time?: () -> bool + def clear_scheduled_time: () -> void + + # When was this task attempt scheduled + attr_reader current_attempt_scheduled_time(): ::Google::Protobuf::Timestamp? + attr_writer current_attempt_scheduled_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_current_attempt_scheduled_time?: () -> bool + def clear_current_attempt_scheduled_time: () -> void + + # When was this task started (this attempt) + attr_reader started_time(): ::Google::Protobuf::Timestamp? + attr_writer started_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_started_time?: () -> bool + def clear_started_time: () -> void + + # Starting at 1, the number of attempts to perform this activity + attr_reader attempt(): ::Integer + attr_writer attempt(): ::Integer | ::Float + def clear_attempt: () -> void + + # First scheduled -> final result reported timeout + # (-- api-linter: core::0140::prepositions=disabled + # aip.dev/not-precedent: "to" is used to indicate interval. --) + attr_reader schedule_to_close_timeout(): ::Google::Protobuf::Duration? + attr_writer schedule_to_close_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_schedule_to_close_timeout?: () -> bool + def clear_schedule_to_close_timeout: () -> void + + # Current attempt start -> final result reported timeout + # (-- api-linter: core::0140::prepositions=disabled + # aip.dev/not-precedent: "to" is used to indicate interval. --) + attr_reader start_to_close_timeout(): ::Google::Protobuf::Duration? + attr_writer start_to_close_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_start_to_close_timeout?: () -> bool + def clear_start_to_close_timeout: () -> void + + # Window within which the activity must report a heartbeat, or be timed out. + attr_reader heartbeat_timeout(): ::Google::Protobuf::Duration? + attr_writer heartbeat_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_heartbeat_timeout?: () -> bool + def clear_heartbeat_timeout: () -> void + + # 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. + attr_accessor retry_policy(): ::Temporalio::Api::Common::V1::RetryPolicy? + def has_retry_policy?: () -> bool + def clear_retry_policy: () -> void + + # Server-advised information the SDK may use to adjust its poller count. + attr_accessor poller_scaling_decision(): ::Temporalio::Api::TaskQueue::V1::PollerScalingDecision? + def has_poller_scaling_decision?: () -> bool + def clear_poller_scaling_decision: () -> void + + # Priority metadata + attr_accessor priority(): ::Temporalio::Api::Common::V1::Priority? + def has_priority?: () -> bool + def clear_priority: () -> void + + # The run ID of the activity execution, only set for standalone activities. + attr_reader activity_run_id(): ::String + attr_writer activity_run_id(): ::String | ::Symbol + def clear_activity_run_id: () -> void + + type init_map = { + task_token: ::String?, + "task_token" => ::String?, + workflow_namespace: (::String | ::Symbol)?, + "workflow_namespace" => (::String | ::Symbol)?, + workflow_type: (::Temporalio::Api::Common::V1::WorkflowType | ::Temporalio::Api::Common::V1::WorkflowType::init_map)?, + "workflow_type" => (::Temporalio::Api::Common::V1::WorkflowType | ::Temporalio::Api::Common::V1::WorkflowType::init_map)?, + workflow_execution: (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + "workflow_execution" => (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + activity_type: (::Temporalio::Api::Common::V1::ActivityType | ::Temporalio::Api::Common::V1::ActivityType::init_map)?, + "activity_type" => (::Temporalio::Api::Common::V1::ActivityType | ::Temporalio::Api::Common::V1::ActivityType::init_map)?, + activity_id: (::String | ::Symbol)?, + "activity_id" => (::String | ::Symbol)?, + header: (::Temporalio::Api::Common::V1::Header | ::Temporalio::Api::Common::V1::Header::init_map)?, + "header" => (::Temporalio::Api::Common::V1::Header | ::Temporalio::Api::Common::V1::Header::init_map)?, + input: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + "input" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + heartbeat_details: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + "heartbeat_details" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + scheduled_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "scheduled_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + current_attempt_scheduled_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "current_attempt_scheduled_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + started_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "started_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + attempt: (::Integer | ::Float)?, + "attempt" => (::Integer | ::Float)?, + schedule_to_close_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "schedule_to_close_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + start_to_close_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "start_to_close_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + heartbeat_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "heartbeat_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + retry_policy: (::Temporalio::Api::Common::V1::RetryPolicy | ::Temporalio::Api::Common::V1::RetryPolicy::init_map)?, + "retry_policy" => (::Temporalio::Api::Common::V1::RetryPolicy | ::Temporalio::Api::Common::V1::RetryPolicy::init_map)?, + poller_scaling_decision: (::Temporalio::Api::TaskQueue::V1::PollerScalingDecision | ::Temporalio::Api::TaskQueue::V1::PollerScalingDecision::init_map)?, + "poller_scaling_decision" => (::Temporalio::Api::TaskQueue::V1::PollerScalingDecision | ::Temporalio::Api::TaskQueue::V1::PollerScalingDecision::init_map)?, + priority: (::Temporalio::Api::Common::V1::Priority | ::Temporalio::Api::Common::V1::Priority::init_map)?, + "priority" => (::Temporalio::Api::Common::V1::Priority | ::Temporalio::Api::Common::V1::Priority::init_map)?, + activity_run_id: (::String | ::Symbol)?, + "activity_run_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("task_token" name) -> ::String + | ("workflow_namespace" name) -> ::String + | ("workflow_type" name) -> ::Temporalio::Api::Common::V1::WorkflowType? + | ("workflow_execution" name) -> ::Temporalio::Api::Common::V1::WorkflowExecution? + | ("activity_type" name) -> ::Temporalio::Api::Common::V1::ActivityType? + | ("activity_id" name) -> ::String + | ("header" name) -> ::Temporalio::Api::Common::V1::Header? + | ("input" name) -> ::Temporalio::Api::Common::V1::Payloads? + | ("heartbeat_details" name) -> ::Temporalio::Api::Common::V1::Payloads? + | ("scheduled_time" name) -> ::Google::Protobuf::Timestamp? + | ("current_attempt_scheduled_time" name) -> ::Google::Protobuf::Timestamp? + | ("started_time" name) -> ::Google::Protobuf::Timestamp? + | ("attempt" name) -> ::Integer + | ("schedule_to_close_timeout" name) -> ::Google::Protobuf::Duration? + | ("start_to_close_timeout" name) -> ::Google::Protobuf::Duration? + | ("heartbeat_timeout" name) -> ::Google::Protobuf::Duration? + | ("retry_policy" name) -> ::Temporalio::Api::Common::V1::RetryPolicy? + | ("poller_scaling_decision" name) -> ::Temporalio::Api::TaskQueue::V1::PollerScalingDecision? + | ("priority" name) -> ::Temporalio::Api::Common::V1::Priority? + | ("activity_run_id" name) -> ::String + + def []=: + ("task_token" name, ::String value) -> void + | ("workflow_namespace" name, (::String | ::Symbol) value) -> void + | ("workflow_type" name, ::Temporalio::Api::Common::V1::WorkflowType? value) -> void + | ("workflow_execution" name, ::Temporalio::Api::Common::V1::WorkflowExecution? value) -> void + | ("activity_type" name, ::Temporalio::Api::Common::V1::ActivityType? value) -> void + | ("activity_id" name, (::String | ::Symbol) value) -> void + | ("header" name, ::Temporalio::Api::Common::V1::Header? value) -> void + | ("input" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void + | ("heartbeat_details" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void + | ("scheduled_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("current_attempt_scheduled_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("started_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("attempt" name, (::Integer | ::Float) value) -> void + | ("schedule_to_close_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("start_to_close_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("heartbeat_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("retry_policy" name, ::Temporalio::Api::Common::V1::RetryPolicy? value) -> void + | ("poller_scaling_decision" name, ::Temporalio::Api::TaskQueue::V1::PollerScalingDecision? value) -> void + | ("priority" name, ::Temporalio::Api::Common::V1::Priority? value) -> void + | ("activity_run_id" name, (::String | ::Symbol) value) -> void + end + + class RecordActivityTaskHeartbeatRequest < ::Google::Protobuf::AbstractMessage + + # The task token as received in `PollActivityTaskQueueResponse` + attr_accessor task_token(): ::String + def clear_task_token: () -> void + + # Arbitrary data, of which the most recent call is kept, to store for this activity + attr_accessor details(): ::Temporalio::Api::Common::V1::Payloads? + def has_details?: () -> bool + def clear_details: () -> void + + # The identity of the worker/client + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # Resource ID for routing. Contains the workflow ID or activity ID for standalone activities. + attr_reader resource_id(): ::String + attr_writer resource_id(): ::String | ::Symbol + def clear_resource_id: () -> void + + type init_map = { + task_token: ::String?, + "task_token" => ::String?, + details: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + "details" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + resource_id: (::String | ::Symbol)?, + "resource_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("task_token" name) -> ::String + | ("details" name) -> ::Temporalio::Api::Common::V1::Payloads? + | ("identity" name) -> ::String + | ("namespace" name) -> ::String + | ("resource_id" name) -> ::String + + def []=: + ("task_token" name, ::String value) -> void + | ("details" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + | ("namespace" name, (::String | ::Symbol) value) -> void + | ("resource_id" name, (::String | ::Symbol) value) -> void + end + + class RecordActivityTaskHeartbeatResponse < ::Google::Protobuf::AbstractMessage + + # 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. + attr_accessor cancel_requested(): bool + def clear_cancel_requested: () -> void + + # Will be set to true if the activity is paused. + attr_accessor activity_paused(): bool + def clear_activity_paused: () -> void + + # Will be set to true if the activity was reset. + # Applies only to the current run. + attr_accessor activity_reset(): bool + def clear_activity_reset: () -> void + + type init_map = { + cancel_requested: bool?, + "cancel_requested" => bool?, + activity_paused: bool?, + "activity_paused" => bool?, + activity_reset: bool?, + "activity_reset" => bool?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("cancel_requested" name) -> bool + | ("activity_paused" name) -> bool + | ("activity_reset" name) -> bool + + def []=: + ("cancel_requested" name, bool value) -> void + | ("activity_paused" name, bool value) -> void + | ("activity_reset" name, bool value) -> void + end + + class RecordActivityTaskHeartbeatByIdRequest < ::Google::Protobuf::AbstractMessage + + # Namespace of the workflow which scheduled this activity + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # Id of the workflow which scheduled this activity, leave empty to target a standalone activity + attr_reader workflow_id(): ::String + attr_writer workflow_id(): ::String | ::Symbol + def clear_workflow_id: () -> void + + # For a workflow activity - the run ID of the workflow which scheduled this activity. + # For a standalone activity - the run ID of the activity. + attr_reader run_id(): ::String + attr_writer run_id(): ::String | ::Symbol + def clear_run_id: () -> void + + # Id of the activity we're heartbeating + attr_reader activity_id(): ::String + attr_writer activity_id(): ::String | ::Symbol + def clear_activity_id: () -> void + + # Arbitrary data, of which the most recent call is kept, to store for this activity + attr_accessor details(): ::Temporalio::Api::Common::V1::Payloads? + def has_details?: () -> bool + def clear_details: () -> void + + # The identity of the worker/client + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + # Resource ID for routing. Contains "workflow:workflow_id" or "activity:activity_id" for standalone activities. + attr_reader resource_id(): ::String + attr_writer resource_id(): ::String | ::Symbol + def clear_resource_id: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + workflow_id: (::String | ::Symbol)?, + "workflow_id" => (::String | ::Symbol)?, + run_id: (::String | ::Symbol)?, + "run_id" => (::String | ::Symbol)?, + activity_id: (::String | ::Symbol)?, + "activity_id" => (::String | ::Symbol)?, + details: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + "details" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + resource_id: (::String | ::Symbol)?, + "resource_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("workflow_id" name) -> ::String + | ("run_id" name) -> ::String + | ("activity_id" name) -> ::String + | ("details" name) -> ::Temporalio::Api::Common::V1::Payloads? + | ("identity" name) -> ::String + | ("resource_id" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("workflow_id" name, (::String | ::Symbol) value) -> void + | ("run_id" name, (::String | ::Symbol) value) -> void + | ("activity_id" name, (::String | ::Symbol) value) -> void + | ("details" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + | ("resource_id" name, (::String | ::Symbol) value) -> void + end + + class RecordActivityTaskHeartbeatByIdResponse < ::Google::Protobuf::AbstractMessage + + # 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. + attr_accessor cancel_requested(): bool + def clear_cancel_requested: () -> void + + # Will be set to true if the activity is paused. + attr_accessor activity_paused(): bool + def clear_activity_paused: () -> void + + # Will be set to true if the activity was reset. + # Applies only to the current run. + attr_accessor activity_reset(): bool + def clear_activity_reset: () -> void + + type init_map = { + cancel_requested: bool?, + "cancel_requested" => bool?, + activity_paused: bool?, + "activity_paused" => bool?, + activity_reset: bool?, + "activity_reset" => bool?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("cancel_requested" name) -> bool + | ("activity_paused" name) -> bool + | ("activity_reset" name) -> bool + + def []=: + ("cancel_requested" name, bool value) -> void + | ("activity_paused" name, bool value) -> void + | ("activity_reset" name, bool value) -> void + end + + class RespondActivityTaskCompletedRequest < ::Google::Protobuf::AbstractMessage + + # The task token as received in `PollActivityTaskQueueResponse` + attr_accessor task_token(): ::String + def clear_task_token: () -> void + + # The result of successfully executing the activity + attr_accessor result(): ::Temporalio::Api::Common::V1::Payloads? + def has_result?: () -> bool + def clear_result: () -> void + + # The identity of the worker/client + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # Resource ID for routing. Contains the workflow ID or activity ID for standalone activities. + attr_reader resource_id(): ::String + attr_writer resource_id(): ::String | ::Symbol + def clear_resource_id: () -> void + + # 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 + attr_accessor worker_version(): ::Temporalio::Api::Common::V1::WorkerVersionStamp? + def has_worker_version?: () -> bool + def clear_worker_version: () -> void + + # 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 + attr_accessor deployment(): ::Temporalio::Api::Deployment::V1::Deployment? + def has_deployment?: () -> bool + def clear_deployment: () -> void + + # Worker deployment options that user has set in the worker. + attr_accessor deployment_options(): ::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions? + def has_deployment_options?: () -> bool + def clear_deployment_options: () -> void + + type init_map = { + task_token: ::String?, + "task_token" => ::String?, + result: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + "result" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + resource_id: (::String | ::Symbol)?, + "resource_id" => (::String | ::Symbol)?, + worker_version: (::Temporalio::Api::Common::V1::WorkerVersionStamp | ::Temporalio::Api::Common::V1::WorkerVersionStamp::init_map)?, + "worker_version" => (::Temporalio::Api::Common::V1::WorkerVersionStamp | ::Temporalio::Api::Common::V1::WorkerVersionStamp::init_map)?, + deployment: (::Temporalio::Api::Deployment::V1::Deployment | ::Temporalio::Api::Deployment::V1::Deployment::init_map)?, + "deployment" => (::Temporalio::Api::Deployment::V1::Deployment | ::Temporalio::Api::Deployment::V1::Deployment::init_map)?, + deployment_options: (::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions | ::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions::init_map)?, + "deployment_options" => (::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions | ::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("task_token" name) -> ::String + | ("result" name) -> ::Temporalio::Api::Common::V1::Payloads? + | ("identity" name) -> ::String + | ("namespace" name) -> ::String + | ("resource_id" name) -> ::String + | ("worker_version" name) -> ::Temporalio::Api::Common::V1::WorkerVersionStamp? + | ("deployment" name) -> ::Temporalio::Api::Deployment::V1::Deployment? + | ("deployment_options" name) -> ::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions? + + def []=: + ("task_token" name, ::String value) -> void + | ("result" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + | ("namespace" name, (::String | ::Symbol) value) -> void + | ("resource_id" name, (::String | ::Symbol) value) -> void + | ("worker_version" name, ::Temporalio::Api::Common::V1::WorkerVersionStamp? value) -> void + | ("deployment" name, ::Temporalio::Api::Deployment::V1::Deployment? value) -> void + | ("deployment_options" name, ::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions? value) -> void + end + + class RespondActivityTaskCompletedResponse < ::Google::Protobuf::AbstractMessage + + type init_map = { + } + + def initialize: (?init_map initial_value) -> void + end + + class RespondActivityTaskCompletedByIdRequest < ::Google::Protobuf::AbstractMessage + + # Namespace of the workflow which scheduled this activity + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # Id of the workflow which scheduled this activity, leave empty to target a standalone activity + attr_reader workflow_id(): ::String + attr_writer workflow_id(): ::String | ::Symbol + def clear_workflow_id: () -> void + + # For a workflow activity - the run ID of the workflow which scheduled this activity. + # For a standalone activity - the run ID of the activity. + attr_reader run_id(): ::String + attr_writer run_id(): ::String | ::Symbol + def clear_run_id: () -> void + + # Id of the activity to complete + attr_reader activity_id(): ::String + attr_writer activity_id(): ::String | ::Symbol + def clear_activity_id: () -> void + + # The serialized result of activity execution + attr_accessor result(): ::Temporalio::Api::Common::V1::Payloads? + def has_result?: () -> bool + def clear_result: () -> void + + # The identity of the worker/client + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + # Resource ID for routing. Contains "workflow:workflow_id" or "activity:activity_id" for standalone activities. + attr_reader resource_id(): ::String + attr_writer resource_id(): ::String | ::Symbol + def clear_resource_id: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + workflow_id: (::String | ::Symbol)?, + "workflow_id" => (::String | ::Symbol)?, + run_id: (::String | ::Symbol)?, + "run_id" => (::String | ::Symbol)?, + activity_id: (::String | ::Symbol)?, + "activity_id" => (::String | ::Symbol)?, + result: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + "result" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + resource_id: (::String | ::Symbol)?, + "resource_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("workflow_id" name) -> ::String + | ("run_id" name) -> ::String + | ("activity_id" name) -> ::String + | ("result" name) -> ::Temporalio::Api::Common::V1::Payloads? + | ("identity" name) -> ::String + | ("resource_id" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("workflow_id" name, (::String | ::Symbol) value) -> void + | ("run_id" name, (::String | ::Symbol) value) -> void + | ("activity_id" name, (::String | ::Symbol) value) -> void + | ("result" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + | ("resource_id" name, (::String | ::Symbol) value) -> void + end + + class RespondActivityTaskCompletedByIdResponse < ::Google::Protobuf::AbstractMessage + + type init_map = { + } + + def initialize: (?init_map initial_value) -> void + end + + class RespondActivityTaskFailedRequest < ::Google::Protobuf::AbstractMessage + + # The task token as received in `PollActivityTaskQueueResponse` + attr_accessor task_token(): ::String + def clear_task_token: () -> void + + # Detailed failure information + attr_accessor failure(): ::Temporalio::Api::Failure::V1::Failure? + def has_failure?: () -> bool + def clear_failure: () -> void + + # The identity of the worker/client + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # Resource ID for routing. Contains the workflow ID or activity ID for standalone activities. + attr_reader resource_id(): ::String + attr_writer resource_id(): ::String | ::Symbol + def clear_resource_id: () -> void + + # Additional details to be stored as last activity heartbeat + attr_accessor last_heartbeat_details(): ::Temporalio::Api::Common::V1::Payloads? + def has_last_heartbeat_details?: () -> bool + def clear_last_heartbeat_details: () -> void + + # 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 + attr_accessor worker_version(): ::Temporalio::Api::Common::V1::WorkerVersionStamp? + def has_worker_version?: () -> bool + def clear_worker_version: () -> void + + # 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 + attr_accessor deployment(): ::Temporalio::Api::Deployment::V1::Deployment? + def has_deployment?: () -> bool + def clear_deployment: () -> void + + # Worker deployment options that user has set in the worker. + attr_accessor deployment_options(): ::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions? + def has_deployment_options?: () -> bool + def clear_deployment_options: () -> void + + type init_map = { + task_token: ::String?, + "task_token" => ::String?, + failure: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + "failure" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + resource_id: (::String | ::Symbol)?, + "resource_id" => (::String | ::Symbol)?, + last_heartbeat_details: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + "last_heartbeat_details" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + worker_version: (::Temporalio::Api::Common::V1::WorkerVersionStamp | ::Temporalio::Api::Common::V1::WorkerVersionStamp::init_map)?, + "worker_version" => (::Temporalio::Api::Common::V1::WorkerVersionStamp | ::Temporalio::Api::Common::V1::WorkerVersionStamp::init_map)?, + deployment: (::Temporalio::Api::Deployment::V1::Deployment | ::Temporalio::Api::Deployment::V1::Deployment::init_map)?, + "deployment" => (::Temporalio::Api::Deployment::V1::Deployment | ::Temporalio::Api::Deployment::V1::Deployment::init_map)?, + deployment_options: (::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions | ::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions::init_map)?, + "deployment_options" => (::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions | ::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("task_token" name) -> ::String + | ("failure" name) -> ::Temporalio::Api::Failure::V1::Failure? + | ("identity" name) -> ::String + | ("namespace" name) -> ::String + | ("resource_id" name) -> ::String + | ("last_heartbeat_details" name) -> ::Temporalio::Api::Common::V1::Payloads? + | ("worker_version" name) -> ::Temporalio::Api::Common::V1::WorkerVersionStamp? + | ("deployment" name) -> ::Temporalio::Api::Deployment::V1::Deployment? + | ("deployment_options" name) -> ::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions? + + def []=: + ("task_token" name, ::String value) -> void + | ("failure" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + | ("namespace" name, (::String | ::Symbol) value) -> void + | ("resource_id" name, (::String | ::Symbol) value) -> void + | ("last_heartbeat_details" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void + | ("worker_version" name, ::Temporalio::Api::Common::V1::WorkerVersionStamp? value) -> void + | ("deployment" name, ::Temporalio::Api::Deployment::V1::Deployment? value) -> void + | ("deployment_options" name, ::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions? value) -> void + end + + class RespondActivityTaskFailedResponse < ::Google::Protobuf::AbstractMessage + + # Server validation failures could include + # last_heartbeat_details payload is too large, request failure is too large + attr_accessor failures(): ::Google::Protobuf::RepeatedField + def clear_failures: () -> void + + type init_map = { + failures: ::Array[::Temporalio::Api::Failure::V1::Failure]?, + "failures" => ::Array[::Temporalio::Api::Failure::V1::Failure]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("failures" name) -> ::Google::Protobuf::RepeatedField + + def []=: + ("failures" name, ::Google::Protobuf::RepeatedField value) -> void + end + + class RespondActivityTaskFailedByIdRequest < ::Google::Protobuf::AbstractMessage + + # Namespace of the workflow which scheduled this activity + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # Id of the workflow which scheduled this activity, leave empty to target a standalone activity + attr_reader workflow_id(): ::String + attr_writer workflow_id(): ::String | ::Symbol + def clear_workflow_id: () -> void + + # For a workflow activity - the run ID of the workflow which scheduled this activity. + # For a standalone activity - the run ID of the activity. + attr_reader run_id(): ::String + attr_writer run_id(): ::String | ::Symbol + def clear_run_id: () -> void + + # Id of the activity to fail + attr_reader activity_id(): ::String + attr_writer activity_id(): ::String | ::Symbol + def clear_activity_id: () -> void + + # Detailed failure information + attr_accessor failure(): ::Temporalio::Api::Failure::V1::Failure? + def has_failure?: () -> bool + def clear_failure: () -> void + + # The identity of the worker/client + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + # Additional details to be stored as last activity heartbeat + attr_accessor last_heartbeat_details(): ::Temporalio::Api::Common::V1::Payloads? + def has_last_heartbeat_details?: () -> bool + def clear_last_heartbeat_details: () -> void + + # Resource ID for routing. Contains "workflow:workflow_id" or "activity:activity_id" for standalone activities. + attr_reader resource_id(): ::String + attr_writer resource_id(): ::String | ::Symbol + def clear_resource_id: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + workflow_id: (::String | ::Symbol)?, + "workflow_id" => (::String | ::Symbol)?, + run_id: (::String | ::Symbol)?, + "run_id" => (::String | ::Symbol)?, + activity_id: (::String | ::Symbol)?, + "activity_id" => (::String | ::Symbol)?, + failure: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + "failure" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + last_heartbeat_details: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + "last_heartbeat_details" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + resource_id: (::String | ::Symbol)?, + "resource_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("workflow_id" name) -> ::String + | ("run_id" name) -> ::String + | ("activity_id" name) -> ::String + | ("failure" name) -> ::Temporalio::Api::Failure::V1::Failure? + | ("identity" name) -> ::String + | ("last_heartbeat_details" name) -> ::Temporalio::Api::Common::V1::Payloads? + | ("resource_id" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("workflow_id" name, (::String | ::Symbol) value) -> void + | ("run_id" name, (::String | ::Symbol) value) -> void + | ("activity_id" name, (::String | ::Symbol) value) -> void + | ("failure" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + | ("last_heartbeat_details" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void + | ("resource_id" name, (::String | ::Symbol) value) -> void + end + + class RespondActivityTaskFailedByIdResponse < ::Google::Protobuf::AbstractMessage + + # Server validation failures could include + # last_heartbeat_details payload is too large, request failure is too large + attr_accessor failures(): ::Google::Protobuf::RepeatedField + def clear_failures: () -> void + + type init_map = { + failures: ::Array[::Temporalio::Api::Failure::V1::Failure]?, + "failures" => ::Array[::Temporalio::Api::Failure::V1::Failure]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("failures" name) -> ::Google::Protobuf::RepeatedField + + def []=: + ("failures" name, ::Google::Protobuf::RepeatedField value) -> void + end + + class RespondActivityTaskCanceledRequest < ::Google::Protobuf::AbstractMessage + + # The task token as received in `PollActivityTaskQueueResponse` + attr_accessor task_token(): ::String + def clear_task_token: () -> void + + # Serialized additional information to attach to the cancellation + attr_accessor details(): ::Temporalio::Api::Common::V1::Payloads? + def has_details?: () -> bool + def clear_details: () -> void + + # The identity of the worker/client + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # Resource ID for routing. Contains the workflow ID or activity ID for standalone activities. + attr_reader resource_id(): ::String + attr_writer resource_id(): ::String | ::Symbol + def clear_resource_id: () -> void + + # 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 + attr_accessor worker_version(): ::Temporalio::Api::Common::V1::WorkerVersionStamp? + def has_worker_version?: () -> bool + def clear_worker_version: () -> void + + # 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 + attr_accessor deployment(): ::Temporalio::Api::Deployment::V1::Deployment? + def has_deployment?: () -> bool + def clear_deployment: () -> void + + # Worker deployment options that user has set in the worker. + attr_accessor deployment_options(): ::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions? + def has_deployment_options?: () -> bool + def clear_deployment_options: () -> void + + type init_map = { + task_token: ::String?, + "task_token" => ::String?, + details: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + "details" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + resource_id: (::String | ::Symbol)?, + "resource_id" => (::String | ::Symbol)?, + worker_version: (::Temporalio::Api::Common::V1::WorkerVersionStamp | ::Temporalio::Api::Common::V1::WorkerVersionStamp::init_map)?, + "worker_version" => (::Temporalio::Api::Common::V1::WorkerVersionStamp | ::Temporalio::Api::Common::V1::WorkerVersionStamp::init_map)?, + deployment: (::Temporalio::Api::Deployment::V1::Deployment | ::Temporalio::Api::Deployment::V1::Deployment::init_map)?, + "deployment" => (::Temporalio::Api::Deployment::V1::Deployment | ::Temporalio::Api::Deployment::V1::Deployment::init_map)?, + deployment_options: (::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions | ::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions::init_map)?, + "deployment_options" => (::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions | ::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("task_token" name) -> ::String + | ("details" name) -> ::Temporalio::Api::Common::V1::Payloads? + | ("identity" name) -> ::String + | ("namespace" name) -> ::String + | ("resource_id" name) -> ::String + | ("worker_version" name) -> ::Temporalio::Api::Common::V1::WorkerVersionStamp? + | ("deployment" name) -> ::Temporalio::Api::Deployment::V1::Deployment? + | ("deployment_options" name) -> ::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions? + + def []=: + ("task_token" name, ::String value) -> void + | ("details" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + | ("namespace" name, (::String | ::Symbol) value) -> void + | ("resource_id" name, (::String | ::Symbol) value) -> void + | ("worker_version" name, ::Temporalio::Api::Common::V1::WorkerVersionStamp? value) -> void + | ("deployment" name, ::Temporalio::Api::Deployment::V1::Deployment? value) -> void + | ("deployment_options" name, ::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions? value) -> void + end + + class RespondActivityTaskCanceledResponse < ::Google::Protobuf::AbstractMessage + + type init_map = { + } + + def initialize: (?init_map initial_value) -> void + end + + class RespondActivityTaskCanceledByIdRequest < ::Google::Protobuf::AbstractMessage + + # Namespace of the workflow which scheduled this activity + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # Id of the workflow which scheduled this activity, leave empty to target a standalone activity + attr_reader workflow_id(): ::String + attr_writer workflow_id(): ::String | ::Symbol + def clear_workflow_id: () -> void + + # For a workflow activity - the run ID of the workflow which scheduled this activity. + # For a standalone activity - the run ID of the activity. + attr_reader run_id(): ::String + attr_writer run_id(): ::String | ::Symbol + def clear_run_id: () -> void + + # Id of the activity to confirm is cancelled + attr_reader activity_id(): ::String + attr_writer activity_id(): ::String | ::Symbol + def clear_activity_id: () -> void + + # Serialized additional information to attach to the cancellation + attr_accessor details(): ::Temporalio::Api::Common::V1::Payloads? + def has_details?: () -> bool + def clear_details: () -> void + + # The identity of the worker/client + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + # Worker deployment options that user has set in the worker. + attr_accessor deployment_options(): ::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions? + def has_deployment_options?: () -> bool + def clear_deployment_options: () -> void + + # Resource ID for routing. Contains "workflow:workflow_id" or "activity:activity_id" for standalone activities. + attr_reader resource_id(): ::String + attr_writer resource_id(): ::String | ::Symbol + def clear_resource_id: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + workflow_id: (::String | ::Symbol)?, + "workflow_id" => (::String | ::Symbol)?, + run_id: (::String | ::Symbol)?, + "run_id" => (::String | ::Symbol)?, + activity_id: (::String | ::Symbol)?, + "activity_id" => (::String | ::Symbol)?, + details: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + "details" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + deployment_options: (::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions | ::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions::init_map)?, + "deployment_options" => (::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions | ::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions::init_map)?, + resource_id: (::String | ::Symbol)?, + "resource_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("workflow_id" name) -> ::String + | ("run_id" name) -> ::String + | ("activity_id" name) -> ::String + | ("details" name) -> ::Temporalio::Api::Common::V1::Payloads? + | ("identity" name) -> ::String + | ("deployment_options" name) -> ::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions? + | ("resource_id" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("workflow_id" name, (::String | ::Symbol) value) -> void + | ("run_id" name, (::String | ::Symbol) value) -> void + | ("activity_id" name, (::String | ::Symbol) value) -> void + | ("details" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + | ("deployment_options" name, ::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions? value) -> void + | ("resource_id" name, (::String | ::Symbol) value) -> void + end + + class RespondActivityTaskCanceledByIdResponse < ::Google::Protobuf::AbstractMessage + + type init_map = { + } + + def initialize: (?init_map initial_value) -> void + end + + class RequestCancelWorkflowExecutionRequest < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_accessor workflow_execution(): ::Temporalio::Api::Common::V1::WorkflowExecution? + def has_workflow_execution?: () -> bool + def clear_workflow_execution: () -> void + + # The identity of the worker/client + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + # Used to de-dupe cancellation requests + attr_reader request_id(): ::String + attr_writer request_id(): ::String | ::Symbol + def clear_request_id: () -> void + + # 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. + attr_reader first_execution_run_id(): ::String + attr_writer first_execution_run_id(): ::String | ::Symbol + def clear_first_execution_run_id: () -> void + + # Reason for requesting the cancellation + attr_reader reason(): ::String + attr_writer reason(): ::String | ::Symbol + def clear_reason: () -> void + + # Links to be associated with the WorkflowExecutionCanceled event. + attr_accessor links(): ::Google::Protobuf::RepeatedField + def clear_links: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + workflow_execution: (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + "workflow_execution" => (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + request_id: (::String | ::Symbol)?, + "request_id" => (::String | ::Symbol)?, + first_execution_run_id: (::String | ::Symbol)?, + "first_execution_run_id" => (::String | ::Symbol)?, + reason: (::String | ::Symbol)?, + "reason" => (::String | ::Symbol)?, + links: ::Array[::Temporalio::Api::Common::V1::Link]?, + "links" => ::Array[::Temporalio::Api::Common::V1::Link]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("workflow_execution" name) -> ::Temporalio::Api::Common::V1::WorkflowExecution? + | ("identity" name) -> ::String + | ("request_id" name) -> ::String + | ("first_execution_run_id" name) -> ::String + | ("reason" name) -> ::String + | ("links" name) -> ::Google::Protobuf::RepeatedField + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("workflow_execution" name, ::Temporalio::Api::Common::V1::WorkflowExecution? value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + | ("request_id" name, (::String | ::Symbol) value) -> void + | ("first_execution_run_id" name, (::String | ::Symbol) value) -> void + | ("reason" name, (::String | ::Symbol) value) -> void + | ("links" name, ::Google::Protobuf::RepeatedField value) -> void + end + + class RequestCancelWorkflowExecutionResponse < ::Google::Protobuf::AbstractMessage + + type init_map = { + } + + def initialize: (?init_map initial_value) -> void + end + + # Keep the parameters in sync with: + # - temporal.api.batch.v1.BatchOperationSignal. + # - temporal.api.workflow.v1.PostResetOperation.SignalWorkflow. + class SignalWorkflowExecutionRequest < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_accessor workflow_execution(): ::Temporalio::Api::Common::V1::WorkflowExecution? + def has_workflow_execution?: () -> bool + def clear_workflow_execution: () -> void + + # The workflow author-defined name of the signal to send to the workflow + attr_reader signal_name(): ::String + attr_writer signal_name(): ::String | ::Symbol + def clear_signal_name: () -> void + + # Serialized value(s) to provide with the signal + attr_accessor input(): ::Temporalio::Api::Common::V1::Payloads? + def has_input?: () -> bool + def clear_input: () -> void + + # The identity of the worker/client + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + # Used to de-dupe sent signals + attr_reader request_id(): ::String + attr_writer request_id(): ::String | ::Symbol + def clear_request_id: () -> void + + # Deprecated. + # @deprecated + attr_reader control(): ::String + attr_writer control(): ::String | ::Symbol + def clear_control: () -> void + + # Headers that are passed with the signal to the processing workflow. + # These can include things like auth or tracing tokens. + attr_accessor header(): ::Temporalio::Api::Common::V1::Header? + def has_header?: () -> bool + def clear_header: () -> void + + # Links to be associated with the WorkflowExecutionSignaled event. + attr_accessor links(): ::Google::Protobuf::RepeatedField + def clear_links: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + workflow_execution: (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + "workflow_execution" => (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + signal_name: (::String | ::Symbol)?, + "signal_name" => (::String | ::Symbol)?, + input: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + "input" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + request_id: (::String | ::Symbol)?, + "request_id" => (::String | ::Symbol)?, + control: (::String | ::Symbol)?, + "control" => (::String | ::Symbol)?, + header: (::Temporalio::Api::Common::V1::Header | ::Temporalio::Api::Common::V1::Header::init_map)?, + "header" => (::Temporalio::Api::Common::V1::Header | ::Temporalio::Api::Common::V1::Header::init_map)?, + links: ::Array[::Temporalio::Api::Common::V1::Link]?, + "links" => ::Array[::Temporalio::Api::Common::V1::Link]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("workflow_execution" name) -> ::Temporalio::Api::Common::V1::WorkflowExecution? + | ("signal_name" name) -> ::String + | ("input" name) -> ::Temporalio::Api::Common::V1::Payloads? + | ("identity" name) -> ::String + | ("request_id" name) -> ::String + | ("control" name) -> ::String + | ("header" name) -> ::Temporalio::Api::Common::V1::Header? + | ("links" name) -> ::Google::Protobuf::RepeatedField + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("workflow_execution" name, ::Temporalio::Api::Common::V1::WorkflowExecution? value) -> void + | ("signal_name" name, (::String | ::Symbol) value) -> void + | ("input" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + | ("request_id" name, (::String | ::Symbol) value) -> void + | ("control" name, (::String | ::Symbol) value) -> void + | ("header" name, ::Temporalio::Api::Common::V1::Header? value) -> void + | ("links" name, ::Google::Protobuf::RepeatedField value) -> void + end + + class SignalWorkflowExecutionResponse < ::Google::Protobuf::AbstractMessage + + type init_map = { + } + + def initialize: (?init_map initial_value) -> void + end + + class SignalWithStartWorkflowExecutionRequest < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_reader workflow_id(): ::String + attr_writer workflow_id(): ::String | ::Symbol + def clear_workflow_id: () -> void + + attr_accessor workflow_type(): ::Temporalio::Api::Common::V1::WorkflowType? + def has_workflow_type?: () -> bool + def clear_workflow_type: () -> void + + # The task queue to start this workflow on, if it will be started + attr_accessor task_queue(): ::Temporalio::Api::TaskQueue::V1::TaskQueue? + def has_task_queue?: () -> bool + def clear_task_queue: () -> void + + # Serialized arguments to the workflow. These are passed as arguments to the workflow function. + attr_accessor input(): ::Temporalio::Api::Common::V1::Payloads? + def has_input?: () -> bool + def clear_input: () -> void + + # Total workflow execution timeout including retries and continue as new + attr_reader workflow_execution_timeout(): ::Google::Protobuf::Duration? + attr_writer workflow_execution_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_workflow_execution_timeout?: () -> bool + def clear_workflow_execution_timeout: () -> void + + # Timeout of a single workflow run + attr_reader workflow_run_timeout(): ::Google::Protobuf::Duration? + attr_writer workflow_run_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_workflow_run_timeout?: () -> bool + def clear_workflow_run_timeout: () -> void + + # Timeout of a single workflow task + attr_reader workflow_task_timeout(): ::Google::Protobuf::Duration? + attr_writer workflow_task_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_workflow_task_timeout?: () -> bool + def clear_workflow_task_timeout: () -> void + + # The identity of the worker/client + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + # Used to de-dupe signal w/ start requests + attr_reader request_id(): ::String + attr_writer request_id(): ::String | ::Symbol + def clear_request_id: () -> void + + # 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. + attr_reader workflow_id_reuse_policy(): ::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::names | ::Integer + attr_writer workflow_id_reuse_policy(): ::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::names | ::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::strings | ::Integer | ::Float + attr_reader workflow_id_reuse_policy_const(): ::Integer + def clear_workflow_id_reuse_policy: () -> void + + # 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. + attr_reader workflow_id_conflict_policy(): ::Temporalio::Api::Enums::V1::WorkflowIdConflictPolicy::names | ::Integer + attr_writer workflow_id_conflict_policy(): ::Temporalio::Api::Enums::V1::WorkflowIdConflictPolicy::names | ::Temporalio::Api::Enums::V1::WorkflowIdConflictPolicy::strings | ::Integer | ::Float + attr_reader workflow_id_conflict_policy_const(): ::Integer + def clear_workflow_id_conflict_policy: () -> void + + # The workflow author-defined name of the signal to send to the workflow + attr_reader signal_name(): ::String + attr_writer signal_name(): ::String | ::Symbol + def clear_signal_name: () -> void + + # Serialized value(s) to provide with the signal + attr_accessor signal_input(): ::Temporalio::Api::Common::V1::Payloads? + def has_signal_input?: () -> bool + def clear_signal_input: () -> void + + # Deprecated. + # @deprecated + attr_reader control(): ::String + attr_writer control(): ::String | ::Symbol + def clear_control: () -> void + + # Retry policy for the workflow + attr_accessor retry_policy(): ::Temporalio::Api::Common::V1::RetryPolicy? + def has_retry_policy?: () -> bool + def clear_retry_policy: () -> void + + # See https://docs.temporal.io/docs/content/what-is-a-temporal-cron-job/ + attr_reader cron_schedule(): ::String + attr_writer cron_schedule(): ::String | ::Symbol + def clear_cron_schedule: () -> void + + attr_accessor memo(): ::Temporalio::Api::Common::V1::Memo? + def has_memo?: () -> bool + def clear_memo: () -> void + + attr_accessor search_attributes(): ::Temporalio::Api::Common::V1::SearchAttributes? + def has_search_attributes?: () -> bool + def clear_search_attributes: () -> void + + attr_accessor header(): ::Temporalio::Api::Common::V1::Header? + def has_header?: () -> bool + def clear_header: () -> void + + # 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. + attr_reader workflow_start_delay(): ::Google::Protobuf::Duration? + attr_writer workflow_start_delay(): (::Google::Protobuf::Duration | ::int)? + def has_workflow_start_delay?: () -> bool + def clear_workflow_start_delay: () -> void + + # 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. + attr_accessor user_metadata(): ::Temporalio::Api::Sdk::V1::UserMetadata? + def has_user_metadata?: () -> bool + def clear_user_metadata: () -> void + + # Links to be associated with the WorkflowExecutionStarted and WorkflowExecutionSignaled events. + attr_accessor links(): ::Google::Protobuf::RepeatedField + def clear_links: () -> void + + # 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. + attr_accessor versioning_override(): ::Temporalio::Api::Workflow::V1::VersioningOverride? + def has_versioning_override?: () -> bool + def clear_versioning_override: () -> void + + # Priority metadata + attr_accessor priority(): ::Temporalio::Api::Common::V1::Priority? + def has_priority?: () -> bool + def clear_priority: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + workflow_id: (::String | ::Symbol)?, + "workflow_id" => (::String | ::Symbol)?, + workflow_type: (::Temporalio::Api::Common::V1::WorkflowType | ::Temporalio::Api::Common::V1::WorkflowType::init_map)?, + "workflow_type" => (::Temporalio::Api::Common::V1::WorkflowType | ::Temporalio::Api::Common::V1::WorkflowType::init_map)?, + task_queue: (::Temporalio::Api::TaskQueue::V1::TaskQueue | ::Temporalio::Api::TaskQueue::V1::TaskQueue::init_map)?, + "task_queue" => (::Temporalio::Api::TaskQueue::V1::TaskQueue | ::Temporalio::Api::TaskQueue::V1::TaskQueue::init_map)?, + input: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + "input" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + workflow_execution_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "workflow_execution_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + workflow_run_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "workflow_run_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + workflow_task_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "workflow_task_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + request_id: (::String | ::Symbol)?, + "request_id" => (::String | ::Symbol)?, + workflow_id_reuse_policy: (::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::names | ::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::strings | ::Integer | ::Float)?, + "workflow_id_reuse_policy" => (::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::names | ::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::strings | ::Integer | ::Float)?, + workflow_id_conflict_policy: (::Temporalio::Api::Enums::V1::WorkflowIdConflictPolicy::names | ::Temporalio::Api::Enums::V1::WorkflowIdConflictPolicy::strings | ::Integer | ::Float)?, + "workflow_id_conflict_policy" => (::Temporalio::Api::Enums::V1::WorkflowIdConflictPolicy::names | ::Temporalio::Api::Enums::V1::WorkflowIdConflictPolicy::strings | ::Integer | ::Float)?, + signal_name: (::String | ::Symbol)?, + "signal_name" => (::String | ::Symbol)?, + signal_input: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + "signal_input" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + control: (::String | ::Symbol)?, + "control" => (::String | ::Symbol)?, + retry_policy: (::Temporalio::Api::Common::V1::RetryPolicy | ::Temporalio::Api::Common::V1::RetryPolicy::init_map)?, + "retry_policy" => (::Temporalio::Api::Common::V1::RetryPolicy | ::Temporalio::Api::Common::V1::RetryPolicy::init_map)?, + cron_schedule: (::String | ::Symbol)?, + "cron_schedule" => (::String | ::Symbol)?, + memo: (::Temporalio::Api::Common::V1::Memo | ::Temporalio::Api::Common::V1::Memo::init_map)?, + "memo" => (::Temporalio::Api::Common::V1::Memo | ::Temporalio::Api::Common::V1::Memo::init_map)?, + search_attributes: (::Temporalio::Api::Common::V1::SearchAttributes | ::Temporalio::Api::Common::V1::SearchAttributes::init_map)?, + "search_attributes" => (::Temporalio::Api::Common::V1::SearchAttributes | ::Temporalio::Api::Common::V1::SearchAttributes::init_map)?, + header: (::Temporalio::Api::Common::V1::Header | ::Temporalio::Api::Common::V1::Header::init_map)?, + "header" => (::Temporalio::Api::Common::V1::Header | ::Temporalio::Api::Common::V1::Header::init_map)?, + workflow_start_delay: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "workflow_start_delay" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + user_metadata: (::Temporalio::Api::Sdk::V1::UserMetadata | ::Temporalio::Api::Sdk::V1::UserMetadata::init_map)?, + "user_metadata" => (::Temporalio::Api::Sdk::V1::UserMetadata | ::Temporalio::Api::Sdk::V1::UserMetadata::init_map)?, + links: ::Array[::Temporalio::Api::Common::V1::Link]?, + "links" => ::Array[::Temporalio::Api::Common::V1::Link]?, + versioning_override: (::Temporalio::Api::Workflow::V1::VersioningOverride | ::Temporalio::Api::Workflow::V1::VersioningOverride::init_map)?, + "versioning_override" => (::Temporalio::Api::Workflow::V1::VersioningOverride | ::Temporalio::Api::Workflow::V1::VersioningOverride::init_map)?, + priority: (::Temporalio::Api::Common::V1::Priority | ::Temporalio::Api::Common::V1::Priority::init_map)?, + "priority" => (::Temporalio::Api::Common::V1::Priority | ::Temporalio::Api::Common::V1::Priority::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("workflow_id" name) -> ::String + | ("workflow_type" name) -> ::Temporalio::Api::Common::V1::WorkflowType? + | ("task_queue" name) -> ::Temporalio::Api::TaskQueue::V1::TaskQueue? + | ("input" name) -> ::Temporalio::Api::Common::V1::Payloads? + | ("workflow_execution_timeout" name) -> ::Google::Protobuf::Duration? + | ("workflow_run_timeout" name) -> ::Google::Protobuf::Duration? + | ("workflow_task_timeout" name) -> ::Google::Protobuf::Duration? + | ("identity" name) -> ::String + | ("request_id" name) -> ::String + | ("workflow_id_reuse_policy" name) -> (::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::names | ::Integer) + | ("workflow_id_conflict_policy" name) -> (::Temporalio::Api::Enums::V1::WorkflowIdConflictPolicy::names | ::Integer) + | ("signal_name" name) -> ::String + | ("signal_input" name) -> ::Temporalio::Api::Common::V1::Payloads? + | ("control" name) -> ::String + | ("retry_policy" name) -> ::Temporalio::Api::Common::V1::RetryPolicy? + | ("cron_schedule" name) -> ::String + | ("memo" name) -> ::Temporalio::Api::Common::V1::Memo? + | ("search_attributes" name) -> ::Temporalio::Api::Common::V1::SearchAttributes? + | ("header" name) -> ::Temporalio::Api::Common::V1::Header? + | ("workflow_start_delay" name) -> ::Google::Protobuf::Duration? + | ("user_metadata" name) -> ::Temporalio::Api::Sdk::V1::UserMetadata? + | ("links" name) -> ::Google::Protobuf::RepeatedField + | ("versioning_override" name) -> ::Temporalio::Api::Workflow::V1::VersioningOverride? + | ("priority" name) -> ::Temporalio::Api::Common::V1::Priority? + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("workflow_id" name, (::String | ::Symbol) value) -> void + | ("workflow_type" name, ::Temporalio::Api::Common::V1::WorkflowType? value) -> void + | ("task_queue" name, ::Temporalio::Api::TaskQueue::V1::TaskQueue? value) -> void + | ("input" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void + | ("workflow_execution_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("workflow_run_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("workflow_task_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + | ("request_id" name, (::String | ::Symbol) value) -> void + | ("workflow_id_reuse_policy" name, (::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::names | ::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::strings | ::Integer | ::Float) value) -> void + | ("workflow_id_conflict_policy" name, (::Temporalio::Api::Enums::V1::WorkflowIdConflictPolicy::names | ::Temporalio::Api::Enums::V1::WorkflowIdConflictPolicy::strings | ::Integer | ::Float) value) -> void + | ("signal_name" name, (::String | ::Symbol) value) -> void + | ("signal_input" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void + | ("control" name, (::String | ::Symbol) value) -> void + | ("retry_policy" name, ::Temporalio::Api::Common::V1::RetryPolicy? value) -> void + | ("cron_schedule" name, (::String | ::Symbol) value) -> void + | ("memo" name, ::Temporalio::Api::Common::V1::Memo? value) -> void + | ("search_attributes" name, ::Temporalio::Api::Common::V1::SearchAttributes? value) -> void + | ("header" name, ::Temporalio::Api::Common::V1::Header? value) -> void + | ("workflow_start_delay" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("user_metadata" name, ::Temporalio::Api::Sdk::V1::UserMetadata? value) -> void + | ("links" name, ::Google::Protobuf::RepeatedField value) -> void + | ("versioning_override" name, ::Temporalio::Api::Workflow::V1::VersioningOverride? value) -> void + | ("priority" name, ::Temporalio::Api::Common::V1::Priority? value) -> void + end + + class SignalWithStartWorkflowExecutionResponse < ::Google::Protobuf::AbstractMessage + + # The run id of the workflow that was started - or just signaled, if it was already running. + attr_reader run_id(): ::String + attr_writer run_id(): ::String | ::Symbol + def clear_run_id: () -> void + + # If true, a new workflow was started. + attr_accessor started(): bool + def clear_started: () -> void + + type init_map = { + run_id: (::String | ::Symbol)?, + "run_id" => (::String | ::Symbol)?, + started: bool?, + "started" => bool?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("run_id" name) -> ::String + | ("started" name) -> bool + + def []=: + ("run_id" name, (::String | ::Symbol) value) -> void + | ("started" name, bool value) -> void + end + + class ResetWorkflowExecutionRequest < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # 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. + attr_accessor workflow_execution(): ::Temporalio::Api::Common::V1::WorkflowExecution? + def has_workflow_execution?: () -> bool + def clear_workflow_execution: () -> void + + attr_reader reason(): ::String + attr_writer reason(): ::String | ::Symbol + def clear_reason: () -> void + + # The id of a `WORKFLOW_TASK_COMPLETED`,`WORKFLOW_TASK_TIMED_OUT`, `WORKFLOW_TASK_FAILED`, or + # `WORKFLOW_TASK_STARTED` event to reset to. + attr_reader workflow_task_finish_event_id(): ::Integer + attr_writer workflow_task_finish_event_id(): ::Integer | ::Float + def clear_workflow_task_finish_event_id: () -> void + + # Used to de-dupe reset requests + attr_reader request_id(): ::String + attr_writer request_id(): ::String | ::Symbol + def clear_request_id: () -> void + + # Deprecated. Use `options`. + # Default: RESET_REAPPLY_TYPE_SIGNAL + # @deprecated + attr_reader reset_reapply_type(): ::Temporalio::Api::Enums::V1::ResetReapplyType::names | ::Integer + attr_writer reset_reapply_type(): ::Temporalio::Api::Enums::V1::ResetReapplyType::names | ::Temporalio::Api::Enums::V1::ResetReapplyType::strings | ::Integer | ::Float + attr_reader reset_reapply_type_const(): ::Integer + def clear_reset_reapply_type: () -> void + + # Event types not to be reapplied + attr_accessor reset_reapply_exclude_types(): ::Google::Protobuf::RepeatedField + attr_reader reset_reapply_exclude_types_const(): ::Array[::Integer] + def clear_reset_reapply_exclude_types: () -> void + + # 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 + attr_accessor post_reset_operations(): ::Google::Protobuf::RepeatedField + def clear_post_reset_operations: () -> void + + # The identity of the worker/client + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + workflow_execution: (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + "workflow_execution" => (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + reason: (::String | ::Symbol)?, + "reason" => (::String | ::Symbol)?, + workflow_task_finish_event_id: (::Integer | ::Float)?, + "workflow_task_finish_event_id" => (::Integer | ::Float)?, + request_id: (::String | ::Symbol)?, + "request_id" => (::String | ::Symbol)?, + reset_reapply_type: (::Temporalio::Api::Enums::V1::ResetReapplyType::names | ::Temporalio::Api::Enums::V1::ResetReapplyType::strings | ::Integer | ::Float)?, + "reset_reapply_type" => (::Temporalio::Api::Enums::V1::ResetReapplyType::names | ::Temporalio::Api::Enums::V1::ResetReapplyType::strings | ::Integer | ::Float)?, + reset_reapply_exclude_types: ::Array[::Temporalio::Api::Enums::V1::ResetReapplyExcludeType::names | ::Temporalio::Api::Enums::V1::ResetReapplyExcludeType::strings | ::Integer | ::Float]?, + "reset_reapply_exclude_types" => ::Array[::Temporalio::Api::Enums::V1::ResetReapplyExcludeType::names | ::Temporalio::Api::Enums::V1::ResetReapplyExcludeType::strings | ::Integer | ::Float]?, + post_reset_operations: ::Array[::Temporalio::Api::Workflow::V1::PostResetOperation]?, + "post_reset_operations" => ::Array[::Temporalio::Api::Workflow::V1::PostResetOperation]?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("workflow_execution" name) -> ::Temporalio::Api::Common::V1::WorkflowExecution? + | ("reason" name) -> ::String + | ("workflow_task_finish_event_id" name) -> ::Integer + | ("request_id" name) -> ::String + | ("reset_reapply_type" name) -> (::Temporalio::Api::Enums::V1::ResetReapplyType::names | ::Integer) + | ("reset_reapply_exclude_types" name) -> (::Google::Protobuf::RepeatedField) + | ("post_reset_operations" name) -> ::Google::Protobuf::RepeatedField + | ("identity" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("workflow_execution" name, ::Temporalio::Api::Common::V1::WorkflowExecution? value) -> void + | ("reason" name, (::String | ::Symbol) value) -> void + | ("workflow_task_finish_event_id" name, (::Integer | ::Float) value) -> void + | ("request_id" name, (::String | ::Symbol) value) -> void + | ("reset_reapply_type" name, (::Temporalio::Api::Enums::V1::ResetReapplyType::names | ::Temporalio::Api::Enums::V1::ResetReapplyType::strings | ::Integer | ::Float) value) -> void + | ("reset_reapply_exclude_types" name, (::Google::Protobuf::RepeatedField) value) -> void + | ("post_reset_operations" name, ::Google::Protobuf::RepeatedField value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + end + + class ResetWorkflowExecutionResponse < ::Google::Protobuf::AbstractMessage + + attr_reader run_id(): ::String + attr_writer run_id(): ::String | ::Symbol + def clear_run_id: () -> void + + type init_map = { + run_id: (::String | ::Symbol)?, + "run_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("run_id" name) -> ::String + + def []=: + ("run_id" name, (::String | ::Symbol) value) -> void + end + + class TerminateWorkflowExecutionRequest < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_accessor workflow_execution(): ::Temporalio::Api::Common::V1::WorkflowExecution? + def has_workflow_execution?: () -> bool + def clear_workflow_execution: () -> void + + attr_reader reason(): ::String + attr_writer reason(): ::String | ::Symbol + def clear_reason: () -> void + + # Serialized additional information to attach to the termination event + attr_accessor details(): ::Temporalio::Api::Common::V1::Payloads? + def has_details?: () -> bool + def clear_details: () -> void + + # The identity of the worker/client + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + # 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. + attr_reader first_execution_run_id(): ::String + attr_writer first_execution_run_id(): ::String | ::Symbol + def clear_first_execution_run_id: () -> void + + # Links to be associated with the WorkflowExecutionTerminated event. + attr_accessor links(): ::Google::Protobuf::RepeatedField + def clear_links: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + workflow_execution: (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + "workflow_execution" => (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + reason: (::String | ::Symbol)?, + "reason" => (::String | ::Symbol)?, + details: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + "details" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + first_execution_run_id: (::String | ::Symbol)?, + "first_execution_run_id" => (::String | ::Symbol)?, + links: ::Array[::Temporalio::Api::Common::V1::Link]?, + "links" => ::Array[::Temporalio::Api::Common::V1::Link]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("workflow_execution" name) -> ::Temporalio::Api::Common::V1::WorkflowExecution? + | ("reason" name) -> ::String + | ("details" name) -> ::Temporalio::Api::Common::V1::Payloads? + | ("identity" name) -> ::String + | ("first_execution_run_id" name) -> ::String + | ("links" name) -> ::Google::Protobuf::RepeatedField + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("workflow_execution" name, ::Temporalio::Api::Common::V1::WorkflowExecution? value) -> void + | ("reason" name, (::String | ::Symbol) value) -> void + | ("details" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + | ("first_execution_run_id" name, (::String | ::Symbol) value) -> void + | ("links" name, ::Google::Protobuf::RepeatedField value) -> void + end + + class TerminateWorkflowExecutionResponse < ::Google::Protobuf::AbstractMessage + + type init_map = { + } + + def initialize: (?init_map initial_value) -> void + end + + class DeleteWorkflowExecutionRequest < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # Workflow Execution to delete. If run_id is not specified, the latest one is used. + attr_accessor workflow_execution(): ::Temporalio::Api::Common::V1::WorkflowExecution? + def has_workflow_execution?: () -> bool + def clear_workflow_execution: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + workflow_execution: (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + "workflow_execution" => (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("workflow_execution" name) -> ::Temporalio::Api::Common::V1::WorkflowExecution? + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("workflow_execution" name, ::Temporalio::Api::Common::V1::WorkflowExecution? value) -> void + end + + class DeleteWorkflowExecutionResponse < ::Google::Protobuf::AbstractMessage + + type init_map = { + } + + def initialize: (?init_map initial_value) -> void + end + + class ListOpenWorkflowExecutionsRequest < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_reader maximum_page_size(): ::Integer + attr_writer maximum_page_size(): ::Integer | ::Float + def clear_maximum_page_size: () -> void + + attr_accessor next_page_token(): ::String + def clear_next_page_token: () -> void + + attr_accessor start_time_filter(): ::Temporalio::Api::Filter::V1::StartTimeFilter? + def has_start_time_filter?: () -> bool + def clear_start_time_filter: () -> void + + attr_accessor execution_filter(): ::Temporalio::Api::Filter::V1::WorkflowExecutionFilter? + def has_execution_filter?: () -> bool + def clear_execution_filter: () -> void + + attr_accessor type_filter(): ::Temporalio::Api::Filter::V1::WorkflowTypeFilter? + def has_type_filter?: () -> bool + def clear_type_filter: () -> void + + attr_reader filters(): (::Temporalio::Api::Filter::V1::WorkflowExecutionFilter | ::Temporalio::Api::Filter::V1::WorkflowTypeFilter)? + def has_filters?: () -> bool + def clear_filters: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + maximum_page_size: (::Integer | ::Float)?, + "maximum_page_size" => (::Integer | ::Float)?, + next_page_token: ::String?, + "next_page_token" => ::String?, + start_time_filter: (::Temporalio::Api::Filter::V1::StartTimeFilter | ::Temporalio::Api::Filter::V1::StartTimeFilter::init_map)?, + "start_time_filter" => (::Temporalio::Api::Filter::V1::StartTimeFilter | ::Temporalio::Api::Filter::V1::StartTimeFilter::init_map)?, + execution_filter: (::Temporalio::Api::Filter::V1::WorkflowExecutionFilter | ::Temporalio::Api::Filter::V1::WorkflowExecutionFilter::init_map)?, + "execution_filter" => (::Temporalio::Api::Filter::V1::WorkflowExecutionFilter | ::Temporalio::Api::Filter::V1::WorkflowExecutionFilter::init_map)?, + type_filter: (::Temporalio::Api::Filter::V1::WorkflowTypeFilter | ::Temporalio::Api::Filter::V1::WorkflowTypeFilter::init_map)?, + "type_filter" => (::Temporalio::Api::Filter::V1::WorkflowTypeFilter | ::Temporalio::Api::Filter::V1::WorkflowTypeFilter::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("maximum_page_size" name) -> ::Integer + | ("next_page_token" name) -> ::String + | ("start_time_filter" name) -> ::Temporalio::Api::Filter::V1::StartTimeFilter? + | ("execution_filter" name) -> ::Temporalio::Api::Filter::V1::WorkflowExecutionFilter? + | ("type_filter" name) -> ::Temporalio::Api::Filter::V1::WorkflowTypeFilter? + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("maximum_page_size" name, (::Integer | ::Float) value) -> void + | ("next_page_token" name, ::String value) -> void + | ("start_time_filter" name, ::Temporalio::Api::Filter::V1::StartTimeFilter? value) -> void + | ("execution_filter" name, ::Temporalio::Api::Filter::V1::WorkflowExecutionFilter? value) -> void + | ("type_filter" name, ::Temporalio::Api::Filter::V1::WorkflowTypeFilter? value) -> void + end + + class ListOpenWorkflowExecutionsResponse < ::Google::Protobuf::AbstractMessage + + attr_accessor executions(): ::Google::Protobuf::RepeatedField + def clear_executions: () -> void + + attr_accessor next_page_token(): ::String + def clear_next_page_token: () -> void + + type init_map = { + executions: ::Array[::Temporalio::Api::Workflow::V1::WorkflowExecutionInfo]?, + "executions" => ::Array[::Temporalio::Api::Workflow::V1::WorkflowExecutionInfo]?, + next_page_token: ::String?, + "next_page_token" => ::String?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("executions" name) -> ::Google::Protobuf::RepeatedField + | ("next_page_token" name) -> ::String + + def []=: + ("executions" name, ::Google::Protobuf::RepeatedField value) -> void + | ("next_page_token" name, ::String value) -> void + end + + class ListClosedWorkflowExecutionsRequest < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_reader maximum_page_size(): ::Integer + attr_writer maximum_page_size(): ::Integer | ::Float + def clear_maximum_page_size: () -> void + + attr_accessor next_page_token(): ::String + def clear_next_page_token: () -> void + + attr_accessor start_time_filter(): ::Temporalio::Api::Filter::V1::StartTimeFilter? + def has_start_time_filter?: () -> bool + def clear_start_time_filter: () -> void + + attr_accessor execution_filter(): ::Temporalio::Api::Filter::V1::WorkflowExecutionFilter? + def has_execution_filter?: () -> bool + def clear_execution_filter: () -> void + + attr_accessor type_filter(): ::Temporalio::Api::Filter::V1::WorkflowTypeFilter? + def has_type_filter?: () -> bool + def clear_type_filter: () -> void + + attr_accessor status_filter(): ::Temporalio::Api::Filter::V1::StatusFilter? + def has_status_filter?: () -> bool + def clear_status_filter: () -> void + + attr_reader filters(): (::Temporalio::Api::Filter::V1::WorkflowExecutionFilter | ::Temporalio::Api::Filter::V1::WorkflowTypeFilter | ::Temporalio::Api::Filter::V1::StatusFilter)? + def has_filters?: () -> bool + def clear_filters: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + maximum_page_size: (::Integer | ::Float)?, + "maximum_page_size" => (::Integer | ::Float)?, + next_page_token: ::String?, + "next_page_token" => ::String?, + start_time_filter: (::Temporalio::Api::Filter::V1::StartTimeFilter | ::Temporalio::Api::Filter::V1::StartTimeFilter::init_map)?, + "start_time_filter" => (::Temporalio::Api::Filter::V1::StartTimeFilter | ::Temporalio::Api::Filter::V1::StartTimeFilter::init_map)?, + execution_filter: (::Temporalio::Api::Filter::V1::WorkflowExecutionFilter | ::Temporalio::Api::Filter::V1::WorkflowExecutionFilter::init_map)?, + "execution_filter" => (::Temporalio::Api::Filter::V1::WorkflowExecutionFilter | ::Temporalio::Api::Filter::V1::WorkflowExecutionFilter::init_map)?, + type_filter: (::Temporalio::Api::Filter::V1::WorkflowTypeFilter | ::Temporalio::Api::Filter::V1::WorkflowTypeFilter::init_map)?, + "type_filter" => (::Temporalio::Api::Filter::V1::WorkflowTypeFilter | ::Temporalio::Api::Filter::V1::WorkflowTypeFilter::init_map)?, + status_filter: (::Temporalio::Api::Filter::V1::StatusFilter | ::Temporalio::Api::Filter::V1::StatusFilter::init_map)?, + "status_filter" => (::Temporalio::Api::Filter::V1::StatusFilter | ::Temporalio::Api::Filter::V1::StatusFilter::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("maximum_page_size" name) -> ::Integer + | ("next_page_token" name) -> ::String + | ("start_time_filter" name) -> ::Temporalio::Api::Filter::V1::StartTimeFilter? + | ("execution_filter" name) -> ::Temporalio::Api::Filter::V1::WorkflowExecutionFilter? + | ("type_filter" name) -> ::Temporalio::Api::Filter::V1::WorkflowTypeFilter? + | ("status_filter" name) -> ::Temporalio::Api::Filter::V1::StatusFilter? + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("maximum_page_size" name, (::Integer | ::Float) value) -> void + | ("next_page_token" name, ::String value) -> void + | ("start_time_filter" name, ::Temporalio::Api::Filter::V1::StartTimeFilter? value) -> void + | ("execution_filter" name, ::Temporalio::Api::Filter::V1::WorkflowExecutionFilter? value) -> void + | ("type_filter" name, ::Temporalio::Api::Filter::V1::WorkflowTypeFilter? value) -> void + | ("status_filter" name, ::Temporalio::Api::Filter::V1::StatusFilter? value) -> void + end + + class ListClosedWorkflowExecutionsResponse < ::Google::Protobuf::AbstractMessage + + attr_accessor executions(): ::Google::Protobuf::RepeatedField + def clear_executions: () -> void + + attr_accessor next_page_token(): ::String + def clear_next_page_token: () -> void + + type init_map = { + executions: ::Array[::Temporalio::Api::Workflow::V1::WorkflowExecutionInfo]?, + "executions" => ::Array[::Temporalio::Api::Workflow::V1::WorkflowExecutionInfo]?, + next_page_token: ::String?, + "next_page_token" => ::String?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("executions" name) -> ::Google::Protobuf::RepeatedField + | ("next_page_token" name) -> ::String + + def []=: + ("executions" name, ::Google::Protobuf::RepeatedField value) -> void + | ("next_page_token" name, ::String value) -> void + end + + class ListWorkflowExecutionsRequest < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_reader page_size(): ::Integer + attr_writer page_size(): ::Integer | ::Float + def clear_page_size: () -> void + + attr_accessor next_page_token(): ::String + def clear_next_page_token: () -> void + + attr_reader query(): ::String + attr_writer query(): ::String | ::Symbol + def clear_query: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + page_size: (::Integer | ::Float)?, + "page_size" => (::Integer | ::Float)?, + next_page_token: ::String?, + "next_page_token" => ::String?, + query: (::String | ::Symbol)?, + "query" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("page_size" name) -> ::Integer + | ("next_page_token" name) -> ::String + | ("query" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("page_size" name, (::Integer | ::Float) value) -> void + | ("next_page_token" name, ::String value) -> void + | ("query" name, (::String | ::Symbol) value) -> void + end + + class ListWorkflowExecutionsResponse < ::Google::Protobuf::AbstractMessage + + attr_accessor executions(): ::Google::Protobuf::RepeatedField + def clear_executions: () -> void + + attr_accessor next_page_token(): ::String + def clear_next_page_token: () -> void + + type init_map = { + executions: ::Array[::Temporalio::Api::Workflow::V1::WorkflowExecutionInfo]?, + "executions" => ::Array[::Temporalio::Api::Workflow::V1::WorkflowExecutionInfo]?, + next_page_token: ::String?, + "next_page_token" => ::String?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("executions" name) -> ::Google::Protobuf::RepeatedField + | ("next_page_token" name) -> ::String + + def []=: + ("executions" name, ::Google::Protobuf::RepeatedField value) -> void + | ("next_page_token" name, ::String value) -> void + end + + class ListArchivedWorkflowExecutionsRequest < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_reader page_size(): ::Integer + attr_writer page_size(): ::Integer | ::Float + def clear_page_size: () -> void + + attr_accessor next_page_token(): ::String + def clear_next_page_token: () -> void + + attr_reader query(): ::String + attr_writer query(): ::String | ::Symbol + def clear_query: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + page_size: (::Integer | ::Float)?, + "page_size" => (::Integer | ::Float)?, + next_page_token: ::String?, + "next_page_token" => ::String?, + query: (::String | ::Symbol)?, + "query" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("page_size" name) -> ::Integer + | ("next_page_token" name) -> ::String + | ("query" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("page_size" name, (::Integer | ::Float) value) -> void + | ("next_page_token" name, ::String value) -> void + | ("query" name, (::String | ::Symbol) value) -> void + end + + class ListArchivedWorkflowExecutionsResponse < ::Google::Protobuf::AbstractMessage + + attr_accessor executions(): ::Google::Protobuf::RepeatedField + def clear_executions: () -> void + + attr_accessor next_page_token(): ::String + def clear_next_page_token: () -> void + + type init_map = { + executions: ::Array[::Temporalio::Api::Workflow::V1::WorkflowExecutionInfo]?, + "executions" => ::Array[::Temporalio::Api::Workflow::V1::WorkflowExecutionInfo]?, + next_page_token: ::String?, + "next_page_token" => ::String?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("executions" name) -> ::Google::Protobuf::RepeatedField + | ("next_page_token" name) -> ::String + + def []=: + ("executions" name, ::Google::Protobuf::RepeatedField value) -> void + | ("next_page_token" name, ::String value) -> void + end + + # Deprecated: Use with `ListWorkflowExecutions`. + class ScanWorkflowExecutionsRequest < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_reader page_size(): ::Integer + attr_writer page_size(): ::Integer | ::Float + def clear_page_size: () -> void + + attr_accessor next_page_token(): ::String + def clear_next_page_token: () -> void + + attr_reader query(): ::String + attr_writer query(): ::String | ::Symbol + def clear_query: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + page_size: (::Integer | ::Float)?, + "page_size" => (::Integer | ::Float)?, + next_page_token: ::String?, + "next_page_token" => ::String?, + query: (::String | ::Symbol)?, + "query" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("page_size" name) -> ::Integer + | ("next_page_token" name) -> ::String + | ("query" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("page_size" name, (::Integer | ::Float) value) -> void + | ("next_page_token" name, ::String value) -> void + | ("query" name, (::String | ::Symbol) value) -> void + end + + # Deprecated: Use with `ListWorkflowExecutions`. + class ScanWorkflowExecutionsResponse < ::Google::Protobuf::AbstractMessage + + attr_accessor executions(): ::Google::Protobuf::RepeatedField + def clear_executions: () -> void + + attr_accessor next_page_token(): ::String + def clear_next_page_token: () -> void + + type init_map = { + executions: ::Array[::Temporalio::Api::Workflow::V1::WorkflowExecutionInfo]?, + "executions" => ::Array[::Temporalio::Api::Workflow::V1::WorkflowExecutionInfo]?, + next_page_token: ::String?, + "next_page_token" => ::String?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("executions" name) -> ::Google::Protobuf::RepeatedField + | ("next_page_token" name) -> ::String + + def []=: + ("executions" name, ::Google::Protobuf::RepeatedField value) -> void + | ("next_page_token" name, ::String value) -> void + end + + class CountWorkflowExecutionsRequest < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_reader query(): ::String + attr_writer query(): ::String | ::Symbol + def clear_query: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + query: (::String | ::Symbol)?, + "query" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("query" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("query" name, (::String | ::Symbol) value) -> void + end + + class CountWorkflowExecutionsResponse < ::Google::Protobuf::AbstractMessage + class AggregationGroup < ::Google::Protobuf::AbstractMessage + + attr_accessor group_values(): ::Google::Protobuf::RepeatedField + def clear_group_values: () -> void + + attr_reader count(): ::Integer + attr_writer count(): ::Integer | ::Float + def clear_count: () -> void + + type init_map = { + group_values: ::Array[::Temporalio::Api::Common::V1::Payload]?, + "group_values" => ::Array[::Temporalio::Api::Common::V1::Payload]?, + count: (::Integer | ::Float)?, + "count" => (::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("group_values" name) -> ::Google::Protobuf::RepeatedField + | ("count" name) -> ::Integer + + def []=: + ("group_values" name, ::Google::Protobuf::RepeatedField value) -> void + | ("count" name, (::Integer | ::Float) value) -> void + end + + # 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. + attr_reader count(): ::Integer + attr_writer count(): ::Integer | ::Float + def clear_count: () -> void + + # `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. + attr_accessor groups(): ::Google::Protobuf::RepeatedField + def clear_groups: () -> void + + type init_map = { + count: (::Integer | ::Float)?, + "count" => (::Integer | ::Float)?, + groups: ::Array[::Temporalio::Api::WorkflowService::V1::CountWorkflowExecutionsResponse::AggregationGroup]?, + "groups" => ::Array[::Temporalio::Api::WorkflowService::V1::CountWorkflowExecutionsResponse::AggregationGroup]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("count" name) -> ::Integer + | ("groups" name) -> ::Google::Protobuf::RepeatedField + + def []=: + ("count" name, (::Integer | ::Float) value) -> void + | ("groups" name, ::Google::Protobuf::RepeatedField value) -> void + end + + class GetSearchAttributesRequest < ::Google::Protobuf::AbstractMessage + + type init_map = { + } + + def initialize: (?init_map initial_value) -> void + end + + class GetSearchAttributesResponse < ::Google::Protobuf::AbstractMessage + + attr_accessor keys(): ::Google::Protobuf::Map[::String, ::Temporalio::Api::Enums::V1::IndexedValueType::names | ::Integer] + def clear_keys: () -> void + + type init_map = { + keys: ::Hash[::String | ::Symbol, ::Temporalio::Api::Enums::V1::IndexedValueType::names | ::Temporalio::Api::Enums::V1::IndexedValueType::strings | ::Integer | ::Float]?, + "keys" => ::Hash[::String | ::Symbol, ::Temporalio::Api::Enums::V1::IndexedValueType::names | ::Temporalio::Api::Enums::V1::IndexedValueType::strings | ::Integer | ::Float]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("keys" name) -> (::Google::Protobuf::Map[::String, ::Temporalio::Api::Enums::V1::IndexedValueType::names | ::Integer]) + + def []=: + ("keys" name, (::Google::Protobuf::Map[::String, ::Temporalio::Api::Enums::V1::IndexedValueType::names | ::Integer]) value) -> void + end + + class RespondQueryTaskCompletedRequest < ::Google::Protobuf::AbstractMessage + + attr_accessor task_token(): ::String + def clear_task_token: () -> void + + attr_reader completed_type(): ::Temporalio::Api::Enums::V1::QueryResultType::names | ::Integer + attr_writer completed_type(): ::Temporalio::Api::Enums::V1::QueryResultType::names | ::Temporalio::Api::Enums::V1::QueryResultType::strings | ::Integer | ::Float + attr_reader completed_type_const(): ::Integer + def clear_completed_type: () -> void + + # The result of the query. + # Mutually exclusive with `error_message` and `failure`. Set when the query succeeds. + attr_accessor query_result(): ::Temporalio::Api::Common::V1::Payloads? + def has_query_result?: () -> bool + def clear_query_result: () -> void + + # 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. + attr_reader error_message(): ::String + attr_writer error_message(): ::String | ::Symbol + def clear_error_message: () -> void + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # 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. + attr_accessor failure(): ::Temporalio::Api::Failure::V1::Failure? + def has_failure?: () -> bool + def clear_failure: () -> void + + # 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. + attr_reader cause(): ::Temporalio::Api::Enums::V1::WorkflowTaskFailedCause::names | ::Integer + attr_writer cause(): ::Temporalio::Api::Enums::V1::WorkflowTaskFailedCause::names | ::Temporalio::Api::Enums::V1::WorkflowTaskFailedCause::strings | ::Integer | ::Float + attr_reader cause_const(): ::Integer + def clear_cause: () -> void + + type init_map = { + task_token: ::String?, + "task_token" => ::String?, + completed_type: (::Temporalio::Api::Enums::V1::QueryResultType::names | ::Temporalio::Api::Enums::V1::QueryResultType::strings | ::Integer | ::Float)?, + "completed_type" => (::Temporalio::Api::Enums::V1::QueryResultType::names | ::Temporalio::Api::Enums::V1::QueryResultType::strings | ::Integer | ::Float)?, + query_result: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + "query_result" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + error_message: (::String | ::Symbol)?, + "error_message" => (::String | ::Symbol)?, + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + failure: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + "failure" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + cause: (::Temporalio::Api::Enums::V1::WorkflowTaskFailedCause::names | ::Temporalio::Api::Enums::V1::WorkflowTaskFailedCause::strings | ::Integer | ::Float)?, + "cause" => (::Temporalio::Api::Enums::V1::WorkflowTaskFailedCause::names | ::Temporalio::Api::Enums::V1::WorkflowTaskFailedCause::strings | ::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("task_token" name) -> ::String + | ("completed_type" name) -> (::Temporalio::Api::Enums::V1::QueryResultType::names | ::Integer) + | ("query_result" name) -> ::Temporalio::Api::Common::V1::Payloads? + | ("error_message" name) -> ::String + | ("namespace" name) -> ::String + | ("failure" name) -> ::Temporalio::Api::Failure::V1::Failure? + | ("cause" name) -> (::Temporalio::Api::Enums::V1::WorkflowTaskFailedCause::names | ::Integer) + + def []=: + ("task_token" name, ::String value) -> void + | ("completed_type" name, (::Temporalio::Api::Enums::V1::QueryResultType::names | ::Temporalio::Api::Enums::V1::QueryResultType::strings | ::Integer | ::Float) value) -> void + | ("query_result" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void + | ("error_message" name, (::String | ::Symbol) value) -> void + | ("namespace" name, (::String | ::Symbol) value) -> void + | ("failure" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void + | ("cause" name, (::Temporalio::Api::Enums::V1::WorkflowTaskFailedCause::names | ::Temporalio::Api::Enums::V1::WorkflowTaskFailedCause::strings | ::Integer | ::Float) value) -> void + end + + class RespondQueryTaskCompletedResponse < ::Google::Protobuf::AbstractMessage + + type init_map = { + } + + def initialize: (?init_map initial_value) -> void + end + + class ResetStickyTaskQueueRequest < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_accessor execution(): ::Temporalio::Api::Common::V1::WorkflowExecution? + def has_execution?: () -> bool + def clear_execution: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + execution: (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + "execution" => (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("execution" name) -> ::Temporalio::Api::Common::V1::WorkflowExecution? + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("execution" name, ::Temporalio::Api::Common::V1::WorkflowExecution? value) -> void + end + + class ResetStickyTaskQueueResponse < ::Google::Protobuf::AbstractMessage + + type init_map = { + } + + def initialize: (?init_map initial_value) -> void + end + + class ShutdownWorkerRequest < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # 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. + attr_reader sticky_task_queue(): ::String + attr_writer sticky_task_queue(): ::String | ::Symbol + def clear_sticky_task_queue: () -> void + + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + attr_reader reason(): ::String + attr_writer reason(): ::String | ::Symbol + def clear_reason: () -> void + + attr_accessor worker_heartbeat(): ::Temporalio::Api::Worker::V1::WorkerHeartbeat? + def has_worker_heartbeat?: () -> bool + def clear_worker_heartbeat: () -> void + + # 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. + attr_reader worker_instance_key(): ::String + attr_writer worker_instance_key(): ::String | ::Symbol + def clear_worker_instance_key: () -> void + + # 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. + attr_reader task_queue(): ::String + attr_writer task_queue(): ::String | ::Symbol + def clear_task_queue: () -> void + + # 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. + attr_accessor task_queue_types(): ::Google::Protobuf::RepeatedField + attr_reader task_queue_types_const(): ::Array[::Integer] + def clear_task_queue_types: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + sticky_task_queue: (::String | ::Symbol)?, + "sticky_task_queue" => (::String | ::Symbol)?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + reason: (::String | ::Symbol)?, + "reason" => (::String | ::Symbol)?, + worker_heartbeat: (::Temporalio::Api::Worker::V1::WorkerHeartbeat | ::Temporalio::Api::Worker::V1::WorkerHeartbeat::init_map)?, + "worker_heartbeat" => (::Temporalio::Api::Worker::V1::WorkerHeartbeat | ::Temporalio::Api::Worker::V1::WorkerHeartbeat::init_map)?, + worker_instance_key: (::String | ::Symbol)?, + "worker_instance_key" => (::String | ::Symbol)?, + task_queue: (::String | ::Symbol)?, + "task_queue" => (::String | ::Symbol)?, + task_queue_types: ::Array[::Temporalio::Api::Enums::V1::TaskQueueType::names | ::Temporalio::Api::Enums::V1::TaskQueueType::strings | ::Integer | ::Float]?, + "task_queue_types" => ::Array[::Temporalio::Api::Enums::V1::TaskQueueType::names | ::Temporalio::Api::Enums::V1::TaskQueueType::strings | ::Integer | ::Float]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("sticky_task_queue" name) -> ::String + | ("identity" name) -> ::String + | ("reason" name) -> ::String + | ("worker_heartbeat" name) -> ::Temporalio::Api::Worker::V1::WorkerHeartbeat? + | ("worker_instance_key" name) -> ::String + | ("task_queue" name) -> ::String + | ("task_queue_types" name) -> (::Google::Protobuf::RepeatedField) + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("sticky_task_queue" name, (::String | ::Symbol) value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + | ("reason" name, (::String | ::Symbol) value) -> void + | ("worker_heartbeat" name, ::Temporalio::Api::Worker::V1::WorkerHeartbeat? value) -> void + | ("worker_instance_key" name, (::String | ::Symbol) value) -> void + | ("task_queue" name, (::String | ::Symbol) value) -> void + | ("task_queue_types" name, (::Google::Protobuf::RepeatedField) value) -> void + end + + class ShutdownWorkerResponse < ::Google::Protobuf::AbstractMessage + + type init_map = { + } + + def initialize: (?init_map initial_value) -> void + end + + class QueryWorkflowRequest < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_accessor execution(): ::Temporalio::Api::Common::V1::WorkflowExecution? + def has_execution?: () -> bool + def clear_execution: () -> void + + attr_accessor query(): ::Temporalio::Api::Query::V1::WorkflowQuery? + def has_query?: () -> bool + def clear_query: () -> void + + # QueryRejectCondition can used to reject the query if workflow state does not satisfy condition. + # Default: QUERY_REJECT_CONDITION_NONE. + attr_reader query_reject_condition(): ::Temporalio::Api::Enums::V1::QueryRejectCondition::names | ::Integer + attr_writer query_reject_condition(): ::Temporalio::Api::Enums::V1::QueryRejectCondition::names | ::Temporalio::Api::Enums::V1::QueryRejectCondition::strings | ::Integer | ::Float + attr_reader query_reject_condition_const(): ::Integer + def clear_query_reject_condition: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + execution: (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + "execution" => (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + query: (::Temporalio::Api::Query::V1::WorkflowQuery | ::Temporalio::Api::Query::V1::WorkflowQuery::init_map)?, + "query" => (::Temporalio::Api::Query::V1::WorkflowQuery | ::Temporalio::Api::Query::V1::WorkflowQuery::init_map)?, + query_reject_condition: (::Temporalio::Api::Enums::V1::QueryRejectCondition::names | ::Temporalio::Api::Enums::V1::QueryRejectCondition::strings | ::Integer | ::Float)?, + "query_reject_condition" => (::Temporalio::Api::Enums::V1::QueryRejectCondition::names | ::Temporalio::Api::Enums::V1::QueryRejectCondition::strings | ::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("execution" name) -> ::Temporalio::Api::Common::V1::WorkflowExecution? + | ("query" name) -> ::Temporalio::Api::Query::V1::WorkflowQuery? + | ("query_reject_condition" name) -> (::Temporalio::Api::Enums::V1::QueryRejectCondition::names | ::Integer) + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("execution" name, ::Temporalio::Api::Common::V1::WorkflowExecution? value) -> void + | ("query" name, ::Temporalio::Api::Query::V1::WorkflowQuery? value) -> void + | ("query_reject_condition" name, (::Temporalio::Api::Enums::V1::QueryRejectCondition::names | ::Temporalio::Api::Enums::V1::QueryRejectCondition::strings | ::Integer | ::Float) value) -> void + end + + class QueryWorkflowResponse < ::Google::Protobuf::AbstractMessage + + attr_accessor query_result(): ::Temporalio::Api::Common::V1::Payloads? + def has_query_result?: () -> bool + def clear_query_result: () -> void + + attr_accessor query_rejected(): ::Temporalio::Api::Query::V1::QueryRejected? + def has_query_rejected?: () -> bool + def clear_query_rejected: () -> void + + type init_map = { + query_result: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + "query_result" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + query_rejected: (::Temporalio::Api::Query::V1::QueryRejected | ::Temporalio::Api::Query::V1::QueryRejected::init_map)?, + "query_rejected" => (::Temporalio::Api::Query::V1::QueryRejected | ::Temporalio::Api::Query::V1::QueryRejected::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("query_result" name) -> ::Temporalio::Api::Common::V1::Payloads? + | ("query_rejected" name) -> ::Temporalio::Api::Query::V1::QueryRejected? + + def []=: + ("query_result" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void + | ("query_rejected" name, ::Temporalio::Api::Query::V1::QueryRejected? value) -> void + end + + class DescribeWorkflowExecutionRequest < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_accessor execution(): ::Temporalio::Api::Common::V1::WorkflowExecution? + def has_execution?: () -> bool + def clear_execution: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + execution: (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + "execution" => (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("execution" name) -> ::Temporalio::Api::Common::V1::WorkflowExecution? + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("execution" name, ::Temporalio::Api::Common::V1::WorkflowExecution? value) -> void + end + + class DescribeWorkflowExecutionResponse < ::Google::Protobuf::AbstractMessage + + attr_accessor execution_config(): ::Temporalio::Api::Workflow::V1::WorkflowExecutionConfig? + def has_execution_config?: () -> bool + def clear_execution_config: () -> void + + attr_accessor workflow_execution_info(): ::Temporalio::Api::Workflow::V1::WorkflowExecutionInfo? + def has_workflow_execution_info?: () -> bool + def clear_workflow_execution_info: () -> void + + attr_accessor pending_activities(): ::Google::Protobuf::RepeatedField + def clear_pending_activities: () -> void + + attr_accessor pending_children(): ::Google::Protobuf::RepeatedField + def clear_pending_children: () -> void + + attr_accessor pending_workflow_task(): ::Temporalio::Api::Workflow::V1::PendingWorkflowTaskInfo? + def has_pending_workflow_task?: () -> bool + def clear_pending_workflow_task: () -> void + + attr_accessor callbacks(): ::Google::Protobuf::RepeatedField + def clear_callbacks: () -> void + + attr_accessor pending_nexus_operations(): ::Google::Protobuf::RepeatedField + def clear_pending_nexus_operations: () -> void + + attr_accessor workflow_extended_info(): ::Temporalio::Api::Workflow::V1::WorkflowExecutionExtendedInfo? + def has_workflow_extended_info?: () -> bool + def clear_workflow_extended_info: () -> void + + type init_map = { + execution_config: (::Temporalio::Api::Workflow::V1::WorkflowExecutionConfig | ::Temporalio::Api::Workflow::V1::WorkflowExecutionConfig::init_map)?, + "execution_config" => (::Temporalio::Api::Workflow::V1::WorkflowExecutionConfig | ::Temporalio::Api::Workflow::V1::WorkflowExecutionConfig::init_map)?, + workflow_execution_info: (::Temporalio::Api::Workflow::V1::WorkflowExecutionInfo | ::Temporalio::Api::Workflow::V1::WorkflowExecutionInfo::init_map)?, + "workflow_execution_info" => (::Temporalio::Api::Workflow::V1::WorkflowExecutionInfo | ::Temporalio::Api::Workflow::V1::WorkflowExecutionInfo::init_map)?, + pending_activities: ::Array[::Temporalio::Api::Workflow::V1::PendingActivityInfo]?, + "pending_activities" => ::Array[::Temporalio::Api::Workflow::V1::PendingActivityInfo]?, + pending_children: ::Array[::Temporalio::Api::Workflow::V1::PendingChildExecutionInfo]?, + "pending_children" => ::Array[::Temporalio::Api::Workflow::V1::PendingChildExecutionInfo]?, + pending_workflow_task: (::Temporalio::Api::Workflow::V1::PendingWorkflowTaskInfo | ::Temporalio::Api::Workflow::V1::PendingWorkflowTaskInfo::init_map)?, + "pending_workflow_task" => (::Temporalio::Api::Workflow::V1::PendingWorkflowTaskInfo | ::Temporalio::Api::Workflow::V1::PendingWorkflowTaskInfo::init_map)?, + callbacks: ::Array[::Temporalio::Api::Workflow::V1::CallbackInfo]?, + "callbacks" => ::Array[::Temporalio::Api::Workflow::V1::CallbackInfo]?, + pending_nexus_operations: ::Array[::Temporalio::Api::Workflow::V1::PendingNexusOperationInfo]?, + "pending_nexus_operations" => ::Array[::Temporalio::Api::Workflow::V1::PendingNexusOperationInfo]?, + workflow_extended_info: (::Temporalio::Api::Workflow::V1::WorkflowExecutionExtendedInfo | ::Temporalio::Api::Workflow::V1::WorkflowExecutionExtendedInfo::init_map)?, + "workflow_extended_info" => (::Temporalio::Api::Workflow::V1::WorkflowExecutionExtendedInfo | ::Temporalio::Api::Workflow::V1::WorkflowExecutionExtendedInfo::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("execution_config" name) -> ::Temporalio::Api::Workflow::V1::WorkflowExecutionConfig? + | ("workflow_execution_info" name) -> ::Temporalio::Api::Workflow::V1::WorkflowExecutionInfo? + | ("pending_activities" name) -> ::Google::Protobuf::RepeatedField + | ("pending_children" name) -> ::Google::Protobuf::RepeatedField + | ("pending_workflow_task" name) -> ::Temporalio::Api::Workflow::V1::PendingWorkflowTaskInfo? + | ("callbacks" name) -> ::Google::Protobuf::RepeatedField + | ("pending_nexus_operations" name) -> ::Google::Protobuf::RepeatedField + | ("workflow_extended_info" name) -> ::Temporalio::Api::Workflow::V1::WorkflowExecutionExtendedInfo? + + def []=: + ("execution_config" name, ::Temporalio::Api::Workflow::V1::WorkflowExecutionConfig? value) -> void + | ("workflow_execution_info" name, ::Temporalio::Api::Workflow::V1::WorkflowExecutionInfo? value) -> void + | ("pending_activities" name, ::Google::Protobuf::RepeatedField value) -> void + | ("pending_children" name, ::Google::Protobuf::RepeatedField value) -> void + | ("pending_workflow_task" name, ::Temporalio::Api::Workflow::V1::PendingWorkflowTaskInfo? value) -> void + | ("callbacks" name, ::Google::Protobuf::RepeatedField value) -> void + | ("pending_nexus_operations" name, ::Google::Protobuf::RepeatedField value) -> void + | ("workflow_extended_info" name, ::Temporalio::Api::Workflow::V1::WorkflowExecutionExtendedInfo? value) -> void + end + + # (-- api-linter: core::0203::optional=disabled + # aip.dev/not-precedent: field_behavior annotation not available in our gogo fork --) + class DescribeTaskQueueRequest < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # Sticky queues are not supported in deprecated ENHANCED mode. + attr_accessor task_queue(): ::Temporalio::Api::TaskQueue::V1::TaskQueue? + def has_task_queue?: () -> bool + def clear_task_queue: () -> void + + # 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). + attr_reader task_queue_type(): ::Temporalio::Api::Enums::V1::TaskQueueType::names | ::Integer + attr_writer task_queue_type(): ::Temporalio::Api::Enums::V1::TaskQueueType::names | ::Temporalio::Api::Enums::V1::TaskQueueType::strings | ::Integer | ::Float + attr_reader task_queue_type_const(): ::Integer + def clear_task_queue_type: () -> void + + # Report stats for the requested task queue type(s). + attr_accessor report_stats(): bool + def clear_report_stats: () -> void + + # Report Task Queue Config + attr_accessor report_config(): bool + def clear_report_config: () -> void + + # Deprecated, use `report_stats` instead. + # If true, the task queue status will be included in the response. + # @deprecated + attr_accessor include_task_queue_status(): bool + def clear_include_task_queue_status: () -> void + + # 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 + attr_reader api_mode(): ::Temporalio::Api::Enums::V1::DescribeTaskQueueMode::names | ::Integer + attr_writer api_mode(): ::Temporalio::Api::Enums::V1::DescribeTaskQueueMode::names | ::Temporalio::Api::Enums::V1::DescribeTaskQueueMode::strings | ::Integer | ::Float + attr_reader api_mode_const(): ::Integer + def clear_api_mode: () -> void + + # 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 + attr_accessor versions(): ::Temporalio::Api::TaskQueue::V1::TaskQueueVersionSelection? + def has_versions?: () -> bool + def clear_versions: () -> void + + # Deprecated (as part of the ENHANCED mode deprecation). + # Task queue types to report info about. If not specified, all types are considered. + # @deprecated + attr_accessor task_queue_types(): ::Google::Protobuf::RepeatedField + attr_reader task_queue_types_const(): ::Array[::Integer] + def clear_task_queue_types: () -> void + + # Deprecated (as part of the ENHANCED mode deprecation). + # Report list of pollers for requested task queue types and versions. + # @deprecated + attr_accessor report_pollers(): bool + def clear_report_pollers: () -> void + + # 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 + attr_accessor report_task_reachability(): bool + def clear_report_task_reachability: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + task_queue: (::Temporalio::Api::TaskQueue::V1::TaskQueue | ::Temporalio::Api::TaskQueue::V1::TaskQueue::init_map)?, + "task_queue" => (::Temporalio::Api::TaskQueue::V1::TaskQueue | ::Temporalio::Api::TaskQueue::V1::TaskQueue::init_map)?, + task_queue_type: (::Temporalio::Api::Enums::V1::TaskQueueType::names | ::Temporalio::Api::Enums::V1::TaskQueueType::strings | ::Integer | ::Float)?, + "task_queue_type" => (::Temporalio::Api::Enums::V1::TaskQueueType::names | ::Temporalio::Api::Enums::V1::TaskQueueType::strings | ::Integer | ::Float)?, + report_stats: bool?, + "report_stats" => bool?, + report_config: bool?, + "report_config" => bool?, + include_task_queue_status: bool?, + "include_task_queue_status" => bool?, + api_mode: (::Temporalio::Api::Enums::V1::DescribeTaskQueueMode::names | ::Temporalio::Api::Enums::V1::DescribeTaskQueueMode::strings | ::Integer | ::Float)?, + "api_mode" => (::Temporalio::Api::Enums::V1::DescribeTaskQueueMode::names | ::Temporalio::Api::Enums::V1::DescribeTaskQueueMode::strings | ::Integer | ::Float)?, + versions: (::Temporalio::Api::TaskQueue::V1::TaskQueueVersionSelection | ::Temporalio::Api::TaskQueue::V1::TaskQueueVersionSelection::init_map)?, + "versions" => (::Temporalio::Api::TaskQueue::V1::TaskQueueVersionSelection | ::Temporalio::Api::TaskQueue::V1::TaskQueueVersionSelection::init_map)?, + task_queue_types: ::Array[::Temporalio::Api::Enums::V1::TaskQueueType::names | ::Temporalio::Api::Enums::V1::TaskQueueType::strings | ::Integer | ::Float]?, + "task_queue_types" => ::Array[::Temporalio::Api::Enums::V1::TaskQueueType::names | ::Temporalio::Api::Enums::V1::TaskQueueType::strings | ::Integer | ::Float]?, + report_pollers: bool?, + "report_pollers" => bool?, + report_task_reachability: bool?, + "report_task_reachability" => bool?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("task_queue" name) -> ::Temporalio::Api::TaskQueue::V1::TaskQueue? + | ("task_queue_type" name) -> (::Temporalio::Api::Enums::V1::TaskQueueType::names | ::Integer) + | ("report_stats" name) -> bool + | ("report_config" name) -> bool + | ("include_task_queue_status" name) -> bool + | ("api_mode" name) -> (::Temporalio::Api::Enums::V1::DescribeTaskQueueMode::names | ::Integer) + | ("versions" name) -> ::Temporalio::Api::TaskQueue::V1::TaskQueueVersionSelection? + | ("task_queue_types" name) -> (::Google::Protobuf::RepeatedField) + | ("report_pollers" name) -> bool + | ("report_task_reachability" name) -> bool + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("task_queue" name, ::Temporalio::Api::TaskQueue::V1::TaskQueue? value) -> void + | ("task_queue_type" name, (::Temporalio::Api::Enums::V1::TaskQueueType::names | ::Temporalio::Api::Enums::V1::TaskQueueType::strings | ::Integer | ::Float) value) -> void + | ("report_stats" name, bool value) -> void + | ("report_config" name, bool value) -> void + | ("include_task_queue_status" name, bool value) -> void + | ("api_mode" name, (::Temporalio::Api::Enums::V1::DescribeTaskQueueMode::names | ::Temporalio::Api::Enums::V1::DescribeTaskQueueMode::strings | ::Integer | ::Float) value) -> void + | ("versions" name, ::Temporalio::Api::TaskQueue::V1::TaskQueueVersionSelection? value) -> void + | ("task_queue_types" name, (::Google::Protobuf::RepeatedField) value) -> void + | ("report_pollers" name, bool value) -> void + | ("report_task_reachability" name, bool value) -> void + end + + class DescribeTaskQueueResponse < ::Google::Protobuf::AbstractMessage + class EffectiveRateLimit < ::Google::Protobuf::AbstractMessage + + # The effective rate limit for the task queue. + attr_reader requests_per_second(): ::Float + attr_writer requests_per_second(): ::Float | ::Integer + def clear_requests_per_second: () -> void + + # 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 + attr_reader rate_limit_source(): ::Temporalio::Api::Enums::V1::RateLimitSource::names | ::Integer + attr_writer rate_limit_source(): ::Temporalio::Api::Enums::V1::RateLimitSource::names | ::Temporalio::Api::Enums::V1::RateLimitSource::strings | ::Integer | ::Float + attr_reader rate_limit_source_const(): ::Integer + def clear_rate_limit_source: () -> void + + type init_map = { + requests_per_second: (::Float | ::Integer)?, + "requests_per_second" => (::Float | ::Integer)?, + rate_limit_source: (::Temporalio::Api::Enums::V1::RateLimitSource::names | ::Temporalio::Api::Enums::V1::RateLimitSource::strings | ::Integer | ::Float)?, + "rate_limit_source" => (::Temporalio::Api::Enums::V1::RateLimitSource::names | ::Temporalio::Api::Enums::V1::RateLimitSource::strings | ::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("requests_per_second" name) -> ::Float + | ("rate_limit_source" name) -> (::Temporalio::Api::Enums::V1::RateLimitSource::names | ::Integer) + + def []=: + ("requests_per_second" name, (::Float | ::Integer) value) -> void + | ("rate_limit_source" name, (::Temporalio::Api::Enums::V1::RateLimitSource::names | ::Temporalio::Api::Enums::V1::RateLimitSource::strings | ::Integer | ::Float) value) -> void + end + + attr_accessor pollers(): ::Google::Protobuf::RepeatedField + def clear_pollers: () -> void + + # Statistics for the task queue. + # Only set if `report_stats` is set on the request. + attr_accessor stats(): ::Temporalio::Api::TaskQueue::V1::TaskQueueStats? + def has_stats?: () -> bool + def clear_stats: () -> void + + # 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. --) + attr_accessor stats_by_priority_key(): ::Google::Protobuf::Map[::Integer, ::Temporalio::Api::TaskQueue::V1::TaskQueueStats] + def clear_stats_by_priority_key: () -> void + + # 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). + attr_accessor versioning_info(): ::Temporalio::Api::TaskQueue::V1::TaskQueueVersioningInfo? + def has_versioning_info?: () -> bool + def clear_versioning_info: () -> void + + # Only populated if report_task_queue_config is set to true. + attr_accessor config(): ::Temporalio::Api::TaskQueue::V1::TaskQueueConfig? + def has_config?: () -> bool + def clear_config: () -> void + + attr_accessor effective_rate_limit(): ::Temporalio::Api::WorkflowService::V1::DescribeTaskQueueResponse::EffectiveRateLimit? + def has_effective_rate_limit?: () -> bool + def clear_effective_rate_limit: () -> void + + # Deprecated. + # Status of the task queue. Only populated when `include_task_queue_status` is set to true in the request. + # @deprecated + attr_accessor task_queue_status(): ::Temporalio::Api::TaskQueue::V1::TaskQueueStatus? + def has_task_queue_status?: () -> bool + def clear_task_queue_status: () -> void + + # Deprecated. + # Only returned in ENHANCED mode. + # This map contains Task Queue information for each Build ID. Empty string as key value means unversioned. + # @deprecated + attr_accessor versions_info(): ::Google::Protobuf::Map[::String, ::Temporalio::Api::TaskQueue::V1::TaskQueueVersionInfo] + def clear_versions_info: () -> void + + type init_map = { + pollers: ::Array[::Temporalio::Api::TaskQueue::V1::PollerInfo]?, + "pollers" => ::Array[::Temporalio::Api::TaskQueue::V1::PollerInfo]?, + stats: (::Temporalio::Api::TaskQueue::V1::TaskQueueStats | ::Temporalio::Api::TaskQueue::V1::TaskQueueStats::init_map)?, + "stats" => (::Temporalio::Api::TaskQueue::V1::TaskQueueStats | ::Temporalio::Api::TaskQueue::V1::TaskQueueStats::init_map)?, + stats_by_priority_key: ::Hash[::Integer | ::Float, ::Temporalio::Api::TaskQueue::V1::TaskQueueStats]?, + "stats_by_priority_key" => ::Hash[::Integer | ::Float, ::Temporalio::Api::TaskQueue::V1::TaskQueueStats]?, + versioning_info: (::Temporalio::Api::TaskQueue::V1::TaskQueueVersioningInfo | ::Temporalio::Api::TaskQueue::V1::TaskQueueVersioningInfo::init_map)?, + "versioning_info" => (::Temporalio::Api::TaskQueue::V1::TaskQueueVersioningInfo | ::Temporalio::Api::TaskQueue::V1::TaskQueueVersioningInfo::init_map)?, + config: (::Temporalio::Api::TaskQueue::V1::TaskQueueConfig | ::Temporalio::Api::TaskQueue::V1::TaskQueueConfig::init_map)?, + "config" => (::Temporalio::Api::TaskQueue::V1::TaskQueueConfig | ::Temporalio::Api::TaskQueue::V1::TaskQueueConfig::init_map)?, + effective_rate_limit: (::Temporalio::Api::WorkflowService::V1::DescribeTaskQueueResponse::EffectiveRateLimit | ::Temporalio::Api::WorkflowService::V1::DescribeTaskQueueResponse::EffectiveRateLimit::init_map)?, + "effective_rate_limit" => (::Temporalio::Api::WorkflowService::V1::DescribeTaskQueueResponse::EffectiveRateLimit | ::Temporalio::Api::WorkflowService::V1::DescribeTaskQueueResponse::EffectiveRateLimit::init_map)?, + task_queue_status: (::Temporalio::Api::TaskQueue::V1::TaskQueueStatus | ::Temporalio::Api::TaskQueue::V1::TaskQueueStatus::init_map)?, + "task_queue_status" => (::Temporalio::Api::TaskQueue::V1::TaskQueueStatus | ::Temporalio::Api::TaskQueue::V1::TaskQueueStatus::init_map)?, + versions_info: ::Hash[::String | ::Symbol, ::Temporalio::Api::TaskQueue::V1::TaskQueueVersionInfo]?, + "versions_info" => ::Hash[::String | ::Symbol, ::Temporalio::Api::TaskQueue::V1::TaskQueueVersionInfo]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("pollers" name) -> ::Google::Protobuf::RepeatedField + | ("stats" name) -> ::Temporalio::Api::TaskQueue::V1::TaskQueueStats? + | ("stats_by_priority_key" name) -> (::Google::Protobuf::Map[::Integer, ::Temporalio::Api::TaskQueue::V1::TaskQueueStats]) + | ("versioning_info" name) -> ::Temporalio::Api::TaskQueue::V1::TaskQueueVersioningInfo? + | ("config" name) -> ::Temporalio::Api::TaskQueue::V1::TaskQueueConfig? + | ("effective_rate_limit" name) -> ::Temporalio::Api::WorkflowService::V1::DescribeTaskQueueResponse::EffectiveRateLimit? + | ("task_queue_status" name) -> ::Temporalio::Api::TaskQueue::V1::TaskQueueStatus? + | ("versions_info" name) -> (::Google::Protobuf::Map[::String, ::Temporalio::Api::TaskQueue::V1::TaskQueueVersionInfo]) + + def []=: + ("pollers" name, ::Google::Protobuf::RepeatedField value) -> void + | ("stats" name, ::Temporalio::Api::TaskQueue::V1::TaskQueueStats? value) -> void + | ("stats_by_priority_key" name, (::Google::Protobuf::Map[::Integer, ::Temporalio::Api::TaskQueue::V1::TaskQueueStats]) value) -> void + | ("versioning_info" name, ::Temporalio::Api::TaskQueue::V1::TaskQueueVersioningInfo? value) -> void + | ("config" name, ::Temporalio::Api::TaskQueue::V1::TaskQueueConfig? value) -> void + | ("effective_rate_limit" name, ::Temporalio::Api::WorkflowService::V1::DescribeTaskQueueResponse::EffectiveRateLimit? value) -> void + | ("task_queue_status" name, ::Temporalio::Api::TaskQueue::V1::TaskQueueStatus? value) -> void + | ("versions_info" name, (::Google::Protobuf::Map[::String, ::Temporalio::Api::TaskQueue::V1::TaskQueueVersionInfo]) value) -> void + end + + class GetClusterInfoRequest < ::Google::Protobuf::AbstractMessage + + type init_map = { + } + + def initialize: (?init_map initial_value) -> void + end + + # GetClusterInfoResponse contains information about Temporal cluster. + class GetClusterInfoResponse < ::Google::Protobuf::AbstractMessage + + # 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". + attr_accessor supported_clients(): ::Google::Protobuf::Map[::String, ::String] + def clear_supported_clients: () -> void + + attr_reader server_version(): ::String + attr_writer server_version(): ::String | ::Symbol + def clear_server_version: () -> void + + attr_reader cluster_id(): ::String + attr_writer cluster_id(): ::String | ::Symbol + def clear_cluster_id: () -> void + + attr_accessor version_info(): ::Temporalio::Api::Version::V1::VersionInfo? + def has_version_info?: () -> bool + def clear_version_info: () -> void + + attr_reader cluster_name(): ::String + attr_writer cluster_name(): ::String | ::Symbol + def clear_cluster_name: () -> void + + attr_reader history_shard_count(): ::Integer + attr_writer history_shard_count(): ::Integer | ::Float + def clear_history_shard_count: () -> void + + attr_reader persistence_store(): ::String + attr_writer persistence_store(): ::String | ::Symbol + def clear_persistence_store: () -> void + + attr_reader visibility_store(): ::String + attr_writer visibility_store(): ::String | ::Symbol + def clear_visibility_store: () -> void + + attr_reader initial_failover_version(): ::Integer + attr_writer initial_failover_version(): ::Integer | ::Float + def clear_initial_failover_version: () -> void + + attr_reader failover_version_increment(): ::Integer + attr_writer failover_version_increment(): ::Integer | ::Float + def clear_failover_version_increment: () -> void + + type init_map = { + supported_clients: ::Hash[::String | ::Symbol, ::String | ::Symbol]?, + "supported_clients" => ::Hash[::String | ::Symbol, ::String | ::Symbol]?, + server_version: (::String | ::Symbol)?, + "server_version" => (::String | ::Symbol)?, + cluster_id: (::String | ::Symbol)?, + "cluster_id" => (::String | ::Symbol)?, + version_info: (::Temporalio::Api::Version::V1::VersionInfo | ::Temporalio::Api::Version::V1::VersionInfo::init_map)?, + "version_info" => (::Temporalio::Api::Version::V1::VersionInfo | ::Temporalio::Api::Version::V1::VersionInfo::init_map)?, + cluster_name: (::String | ::Symbol)?, + "cluster_name" => (::String | ::Symbol)?, + history_shard_count: (::Integer | ::Float)?, + "history_shard_count" => (::Integer | ::Float)?, + persistence_store: (::String | ::Symbol)?, + "persistence_store" => (::String | ::Symbol)?, + visibility_store: (::String | ::Symbol)?, + "visibility_store" => (::String | ::Symbol)?, + initial_failover_version: (::Integer | ::Float)?, + "initial_failover_version" => (::Integer | ::Float)?, + failover_version_increment: (::Integer | ::Float)?, + "failover_version_increment" => (::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("supported_clients" name) -> (::Google::Protobuf::Map[::String, ::String]) + | ("server_version" name) -> ::String + | ("cluster_id" name) -> ::String + | ("version_info" name) -> ::Temporalio::Api::Version::V1::VersionInfo? + | ("cluster_name" name) -> ::String + | ("history_shard_count" name) -> ::Integer + | ("persistence_store" name) -> ::String + | ("visibility_store" name) -> ::String + | ("initial_failover_version" name) -> ::Integer + | ("failover_version_increment" name) -> ::Integer + + def []=: + ("supported_clients" name, (::Google::Protobuf::Map[::String, ::String]) value) -> void + | ("server_version" name, (::String | ::Symbol) value) -> void + | ("cluster_id" name, (::String | ::Symbol) value) -> void + | ("version_info" name, ::Temporalio::Api::Version::V1::VersionInfo? value) -> void + | ("cluster_name" name, (::String | ::Symbol) value) -> void + | ("history_shard_count" name, (::Integer | ::Float) value) -> void + | ("persistence_store" name, (::String | ::Symbol) value) -> void + | ("visibility_store" name, (::String | ::Symbol) value) -> void + | ("initial_failover_version" name, (::Integer | ::Float) value) -> void + | ("failover_version_increment" name, (::Integer | ::Float) value) -> void + end + + class GetSystemInfoRequest < ::Google::Protobuf::AbstractMessage + + type init_map = { + } + + def initialize: (?init_map initial_value) -> void + end + + class GetSystemInfoResponse < ::Google::Protobuf::AbstractMessage + # System capability details. + class Capabilities < ::Google::Protobuf::AbstractMessage + + # True if signal and query headers are supported. + attr_accessor signal_and_query_header(): bool + def clear_signal_and_query_header: () -> void + + # 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. + attr_accessor internal_error_differentiation(): bool + def clear_internal_error_differentiation: () -> void + + # True if RespondActivityTaskFailed API supports including heartbeat details + attr_accessor activity_failure_include_heartbeat(): bool + def clear_activity_failure_include_heartbeat: () -> void + + # Supports scheduled workflow features. + attr_accessor supports_schedules(): bool + def clear_supports_schedules: () -> void + + # True if server uses protos that include temporal.api.failure.v1.Failure.encoded_attributes + attr_accessor encoded_failure_attributes(): bool + def clear_encoded_failure_attributes: () -> void + + # 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) + attr_accessor build_id_based_versioning(): bool + def clear_build_id_based_versioning: () -> void + + # True if server supports upserting workflow memo + attr_accessor upsert_memo(): bool + def clear_upsert_memo: () -> void + + # True if server supports eager workflow task dispatching for the StartWorkflowExecution API + attr_accessor eager_workflow_start(): bool + def clear_eager_workflow_start: () -> void + + # True if the server knows about the sdk metadata field on WFT completions and will record + # it in history + attr_accessor sdk_metadata(): bool + def clear_sdk_metadata: () -> void + + # True if the server supports count group by execution status + # (-- api-linter: core::0140::prepositions=disabled --) + attr_accessor count_group_by_execution_status(): bool + def clear_count_group_by_execution_status: () -> void + + # True if the server supports Nexus operations. + # This flag is dependent both on server version and for Nexus to be enabled via server configuration. + attr_accessor nexus(): bool + def clear_nexus: () -> void + + type init_map = { + signal_and_query_header: bool?, + "signal_and_query_header" => bool?, + internal_error_differentiation: bool?, + "internal_error_differentiation" => bool?, + activity_failure_include_heartbeat: bool?, + "activity_failure_include_heartbeat" => bool?, + supports_schedules: bool?, + "supports_schedules" => bool?, + encoded_failure_attributes: bool?, + "encoded_failure_attributes" => bool?, + build_id_based_versioning: bool?, + "build_id_based_versioning" => bool?, + upsert_memo: bool?, + "upsert_memo" => bool?, + eager_workflow_start: bool?, + "eager_workflow_start" => bool?, + sdk_metadata: bool?, + "sdk_metadata" => bool?, + count_group_by_execution_status: bool?, + "count_group_by_execution_status" => bool?, + nexus: bool?, + "nexus" => bool?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("signal_and_query_header" name) -> bool + | ("internal_error_differentiation" name) -> bool + | ("activity_failure_include_heartbeat" name) -> bool + | ("supports_schedules" name) -> bool + | ("encoded_failure_attributes" name) -> bool + | ("build_id_based_versioning" name) -> bool + | ("upsert_memo" name) -> bool + | ("eager_workflow_start" name) -> bool + | ("sdk_metadata" name) -> bool + | ("count_group_by_execution_status" name) -> bool + | ("nexus" name) -> bool + + def []=: + ("signal_and_query_header" name, bool value) -> void + | ("internal_error_differentiation" name, bool value) -> void + | ("activity_failure_include_heartbeat" name, bool value) -> void + | ("supports_schedules" name, bool value) -> void + | ("encoded_failure_attributes" name, bool value) -> void + | ("build_id_based_versioning" name, bool value) -> void + | ("upsert_memo" name, bool value) -> void + | ("eager_workflow_start" name, bool value) -> void + | ("sdk_metadata" name, bool value) -> void + | ("count_group_by_execution_status" name, bool value) -> void + | ("nexus" name, bool value) -> void + end + + # Version of the server. + attr_reader server_version(): ::String + attr_writer server_version(): ::String | ::Symbol + def clear_server_version: () -> void + + # All capabilities the system supports. + attr_accessor capabilities(): ::Temporalio::Api::WorkflowService::V1::GetSystemInfoResponse::Capabilities? + def has_capabilities?: () -> bool + def clear_capabilities: () -> void + + type init_map = { + server_version: (::String | ::Symbol)?, + "server_version" => (::String | ::Symbol)?, + capabilities: (::Temporalio::Api::WorkflowService::V1::GetSystemInfoResponse::Capabilities | ::Temporalio::Api::WorkflowService::V1::GetSystemInfoResponse::Capabilities::init_map)?, + "capabilities" => (::Temporalio::Api::WorkflowService::V1::GetSystemInfoResponse::Capabilities | ::Temporalio::Api::WorkflowService::V1::GetSystemInfoResponse::Capabilities::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("server_version" name) -> ::String + | ("capabilities" name) -> ::Temporalio::Api::WorkflowService::V1::GetSystemInfoResponse::Capabilities? + + def []=: + ("server_version" name, (::String | ::Symbol) value) -> void + | ("capabilities" name, ::Temporalio::Api::WorkflowService::V1::GetSystemInfoResponse::Capabilities? value) -> void + end + + class ListTaskQueuePartitionsRequest < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_accessor task_queue(): ::Temporalio::Api::TaskQueue::V1::TaskQueue? + def has_task_queue?: () -> bool + def clear_task_queue: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + task_queue: (::Temporalio::Api::TaskQueue::V1::TaskQueue | ::Temporalio::Api::TaskQueue::V1::TaskQueue::init_map)?, + "task_queue" => (::Temporalio::Api::TaskQueue::V1::TaskQueue | ::Temporalio::Api::TaskQueue::V1::TaskQueue::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("task_queue" name) -> ::Temporalio::Api::TaskQueue::V1::TaskQueue? + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("task_queue" name, ::Temporalio::Api::TaskQueue::V1::TaskQueue? value) -> void + end + + class ListTaskQueuePartitionsResponse < ::Google::Protobuf::AbstractMessage + + attr_accessor activity_task_queue_partitions(): ::Google::Protobuf::RepeatedField + def clear_activity_task_queue_partitions: () -> void + + attr_accessor workflow_task_queue_partitions(): ::Google::Protobuf::RepeatedField + def clear_workflow_task_queue_partitions: () -> void + + type init_map = { + activity_task_queue_partitions: ::Array[::Temporalio::Api::TaskQueue::V1::TaskQueuePartitionMetadata]?, + "activity_task_queue_partitions" => ::Array[::Temporalio::Api::TaskQueue::V1::TaskQueuePartitionMetadata]?, + workflow_task_queue_partitions: ::Array[::Temporalio::Api::TaskQueue::V1::TaskQueuePartitionMetadata]?, + "workflow_task_queue_partitions" => ::Array[::Temporalio::Api::TaskQueue::V1::TaskQueuePartitionMetadata]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("activity_task_queue_partitions" name) -> ::Google::Protobuf::RepeatedField + | ("workflow_task_queue_partitions" name) -> ::Google::Protobuf::RepeatedField + + def []=: + ("activity_task_queue_partitions" name, ::Google::Protobuf::RepeatedField value) -> void + | ("workflow_task_queue_partitions" name, ::Google::Protobuf::RepeatedField value) -> void + end + + # (-- api-linter: core::0203::optional=disabled + # aip.dev/not-precedent: field_behavior annotation not available in our gogo fork --) + class CreateScheduleRequest < ::Google::Protobuf::AbstractMessage + + # The namespace the schedule should be created in. + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # The id of the new schedule. + attr_reader schedule_id(): ::String + attr_writer schedule_id(): ::String | ::Symbol + def clear_schedule_id: () -> void + + # The schedule spec, policies, action, and initial state. + attr_accessor schedule(): ::Temporalio::Api::Schedule::V1::Schedule? + def has_schedule?: () -> bool + def clear_schedule: () -> void + + # Optional initial patch (e.g. to run the action once immediately). + attr_accessor initial_patch(): ::Temporalio::Api::Schedule::V1::SchedulePatch? + def has_initial_patch?: () -> bool + def clear_initial_patch: () -> void + + # The identity of the client who initiated this request. + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + # A unique identifier for this create request for idempotence. Typically UUIDv4. + attr_reader request_id(): ::String + attr_writer request_id(): ::String | ::Symbol + def clear_request_id: () -> void + + # Memo and search attributes to attach to the schedule itself. + attr_accessor memo(): ::Temporalio::Api::Common::V1::Memo? + def has_memo?: () -> bool + def clear_memo: () -> void + + attr_accessor search_attributes(): ::Temporalio::Api::Common::V1::SearchAttributes? + def has_search_attributes?: () -> bool + def clear_search_attributes: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + schedule_id: (::String | ::Symbol)?, + "schedule_id" => (::String | ::Symbol)?, + schedule: (::Temporalio::Api::Schedule::V1::Schedule | ::Temporalio::Api::Schedule::V1::Schedule::init_map)?, + "schedule" => (::Temporalio::Api::Schedule::V1::Schedule | ::Temporalio::Api::Schedule::V1::Schedule::init_map)?, + initial_patch: (::Temporalio::Api::Schedule::V1::SchedulePatch | ::Temporalio::Api::Schedule::V1::SchedulePatch::init_map)?, + "initial_patch" => (::Temporalio::Api::Schedule::V1::SchedulePatch | ::Temporalio::Api::Schedule::V1::SchedulePatch::init_map)?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + request_id: (::String | ::Symbol)?, + "request_id" => (::String | ::Symbol)?, + memo: (::Temporalio::Api::Common::V1::Memo | ::Temporalio::Api::Common::V1::Memo::init_map)?, + "memo" => (::Temporalio::Api::Common::V1::Memo | ::Temporalio::Api::Common::V1::Memo::init_map)?, + search_attributes: (::Temporalio::Api::Common::V1::SearchAttributes | ::Temporalio::Api::Common::V1::SearchAttributes::init_map)?, + "search_attributes" => (::Temporalio::Api::Common::V1::SearchAttributes | ::Temporalio::Api::Common::V1::SearchAttributes::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("schedule_id" name) -> ::String + | ("schedule" name) -> ::Temporalio::Api::Schedule::V1::Schedule? + | ("initial_patch" name) -> ::Temporalio::Api::Schedule::V1::SchedulePatch? + | ("identity" name) -> ::String + | ("request_id" name) -> ::String + | ("memo" name) -> ::Temporalio::Api::Common::V1::Memo? + | ("search_attributes" name) -> ::Temporalio::Api::Common::V1::SearchAttributes? + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("schedule_id" name, (::String | ::Symbol) value) -> void + | ("schedule" name, ::Temporalio::Api::Schedule::V1::Schedule? value) -> void + | ("initial_patch" name, ::Temporalio::Api::Schedule::V1::SchedulePatch? value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + | ("request_id" name, (::String | ::Symbol) value) -> void + | ("memo" name, ::Temporalio::Api::Common::V1::Memo? value) -> void + | ("search_attributes" name, ::Temporalio::Api::Common::V1::SearchAttributes? value) -> void + end + + class CreateScheduleResponse < ::Google::Protobuf::AbstractMessage + + attr_accessor conflict_token(): ::String + def clear_conflict_token: () -> void + + type init_map = { + conflict_token: ::String?, + "conflict_token" => ::String?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("conflict_token" name) -> ::String + + def []=: + ("conflict_token" name, ::String value) -> void + end + + class DescribeScheduleRequest < ::Google::Protobuf::AbstractMessage + + # The namespace of the schedule to describe. + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # The id of the schedule to describe. + attr_reader schedule_id(): ::String + attr_writer schedule_id(): ::String | ::Symbol + def clear_schedule_id: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + schedule_id: (::String | ::Symbol)?, + "schedule_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("schedule_id" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("schedule_id" name, (::String | ::Symbol) value) -> void + end + + class DescribeScheduleResponse < ::Google::Protobuf::AbstractMessage + + # 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 + attr_accessor schedule(): ::Temporalio::Api::Schedule::V1::Schedule? + def has_schedule?: () -> bool + def clear_schedule: () -> void + + # Extra schedule state info. + attr_accessor info(): ::Temporalio::Api::Schedule::V1::ScheduleInfo? + def has_info?: () -> bool + def clear_info: () -> void + + # The memo and search attributes that the schedule was created with. + attr_accessor memo(): ::Temporalio::Api::Common::V1::Memo? + def has_memo?: () -> bool + def clear_memo: () -> void + + attr_accessor search_attributes(): ::Temporalio::Api::Common::V1::SearchAttributes? + def has_search_attributes?: () -> bool + def clear_search_attributes: () -> void + + # 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. + attr_accessor conflict_token(): ::String + def clear_conflict_token: () -> void + + type init_map = { + schedule: (::Temporalio::Api::Schedule::V1::Schedule | ::Temporalio::Api::Schedule::V1::Schedule::init_map)?, + "schedule" => (::Temporalio::Api::Schedule::V1::Schedule | ::Temporalio::Api::Schedule::V1::Schedule::init_map)?, + info: (::Temporalio::Api::Schedule::V1::ScheduleInfo | ::Temporalio::Api::Schedule::V1::ScheduleInfo::init_map)?, + "info" => (::Temporalio::Api::Schedule::V1::ScheduleInfo | ::Temporalio::Api::Schedule::V1::ScheduleInfo::init_map)?, + memo: (::Temporalio::Api::Common::V1::Memo | ::Temporalio::Api::Common::V1::Memo::init_map)?, + "memo" => (::Temporalio::Api::Common::V1::Memo | ::Temporalio::Api::Common::V1::Memo::init_map)?, + search_attributes: (::Temporalio::Api::Common::V1::SearchAttributes | ::Temporalio::Api::Common::V1::SearchAttributes::init_map)?, + "search_attributes" => (::Temporalio::Api::Common::V1::SearchAttributes | ::Temporalio::Api::Common::V1::SearchAttributes::init_map)?, + conflict_token: ::String?, + "conflict_token" => ::String?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("schedule" name) -> ::Temporalio::Api::Schedule::V1::Schedule? + | ("info" name) -> ::Temporalio::Api::Schedule::V1::ScheduleInfo? + | ("memo" name) -> ::Temporalio::Api::Common::V1::Memo? + | ("search_attributes" name) -> ::Temporalio::Api::Common::V1::SearchAttributes? + | ("conflict_token" name) -> ::String + + def []=: + ("schedule" name, ::Temporalio::Api::Schedule::V1::Schedule? value) -> void + | ("info" name, ::Temporalio::Api::Schedule::V1::ScheduleInfo? value) -> void + | ("memo" name, ::Temporalio::Api::Common::V1::Memo? value) -> void + | ("search_attributes" name, ::Temporalio::Api::Common::V1::SearchAttributes? value) -> void + | ("conflict_token" name, ::String value) -> void + end + + class UpdateScheduleRequest < ::Google::Protobuf::AbstractMessage + + # The namespace of the schedule to update. + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # The id of the schedule to update. + attr_reader schedule_id(): ::String + attr_writer schedule_id(): ::String | ::Symbol + def clear_schedule_id: () -> void + + # The new schedule. The four main fields of the schedule (spec, action, + # policies, state) are replaced completely by the values in this message. + attr_accessor schedule(): ::Temporalio::Api::Schedule::V1::Schedule? + def has_schedule?: () -> bool + def clear_schedule: () -> void + + # 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. + attr_accessor conflict_token(): ::String + def clear_conflict_token: () -> void + + # The identity of the client who initiated this request. + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + # A unique identifier for this update request for idempotence. Typically UUIDv4. + attr_reader request_id(): ::String + attr_writer request_id(): ::String | ::Symbol + def clear_request_id: () -> void + + # 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. + attr_accessor search_attributes(): ::Temporalio::Api::Common::V1::SearchAttributes? + def has_search_attributes?: () -> bool + def clear_search_attributes: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + schedule_id: (::String | ::Symbol)?, + "schedule_id" => (::String | ::Symbol)?, + schedule: (::Temporalio::Api::Schedule::V1::Schedule | ::Temporalio::Api::Schedule::V1::Schedule::init_map)?, + "schedule" => (::Temporalio::Api::Schedule::V1::Schedule | ::Temporalio::Api::Schedule::V1::Schedule::init_map)?, + conflict_token: ::String?, + "conflict_token" => ::String?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + request_id: (::String | ::Symbol)?, + "request_id" => (::String | ::Symbol)?, + search_attributes: (::Temporalio::Api::Common::V1::SearchAttributes | ::Temporalio::Api::Common::V1::SearchAttributes::init_map)?, + "search_attributes" => (::Temporalio::Api::Common::V1::SearchAttributes | ::Temporalio::Api::Common::V1::SearchAttributes::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("schedule_id" name) -> ::String + | ("schedule" name) -> ::Temporalio::Api::Schedule::V1::Schedule? + | ("conflict_token" name) -> ::String + | ("identity" name) -> ::String + | ("request_id" name) -> ::String + | ("search_attributes" name) -> ::Temporalio::Api::Common::V1::SearchAttributes? + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("schedule_id" name, (::String | ::Symbol) value) -> void + | ("schedule" name, ::Temporalio::Api::Schedule::V1::Schedule? value) -> void + | ("conflict_token" name, ::String value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + | ("request_id" name, (::String | ::Symbol) value) -> void + | ("search_attributes" name, ::Temporalio::Api::Common::V1::SearchAttributes? value) -> void + end + + class UpdateScheduleResponse < ::Google::Protobuf::AbstractMessage + + type init_map = { + } + + def initialize: (?init_map initial_value) -> void + end + + class PatchScheduleRequest < ::Google::Protobuf::AbstractMessage + + # The namespace of the schedule to patch. + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # The id of the schedule to patch. + attr_reader schedule_id(): ::String + attr_writer schedule_id(): ::String | ::Symbol + def clear_schedule_id: () -> void + + attr_accessor patch(): ::Temporalio::Api::Schedule::V1::SchedulePatch? + def has_patch?: () -> bool + def clear_patch: () -> void + + # The identity of the client who initiated this request. + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + # A unique identifier for this update request for idempotence. Typically UUIDv4. + attr_reader request_id(): ::String + attr_writer request_id(): ::String | ::Symbol + def clear_request_id: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + schedule_id: (::String | ::Symbol)?, + "schedule_id" => (::String | ::Symbol)?, + patch: (::Temporalio::Api::Schedule::V1::SchedulePatch | ::Temporalio::Api::Schedule::V1::SchedulePatch::init_map)?, + "patch" => (::Temporalio::Api::Schedule::V1::SchedulePatch | ::Temporalio::Api::Schedule::V1::SchedulePatch::init_map)?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + request_id: (::String | ::Symbol)?, + "request_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("schedule_id" name) -> ::String + | ("patch" name) -> ::Temporalio::Api::Schedule::V1::SchedulePatch? + | ("identity" name) -> ::String + | ("request_id" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("schedule_id" name, (::String | ::Symbol) value) -> void + | ("patch" name, ::Temporalio::Api::Schedule::V1::SchedulePatch? value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + | ("request_id" name, (::String | ::Symbol) value) -> void + end + + class PatchScheduleResponse < ::Google::Protobuf::AbstractMessage + + type init_map = { + } + + def initialize: (?init_map initial_value) -> void + end + + class ListScheduleMatchingTimesRequest < ::Google::Protobuf::AbstractMessage + + # The namespace of the schedule to query. + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # The id of the schedule to query. + attr_reader schedule_id(): ::String + attr_writer schedule_id(): ::String | ::Symbol + def clear_schedule_id: () -> void + + # Time range to query. + attr_reader start_time(): ::Google::Protobuf::Timestamp? + attr_writer start_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_start_time?: () -> bool + def clear_start_time: () -> void + + attr_reader end_time(): ::Google::Protobuf::Timestamp? + attr_writer end_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_end_time?: () -> bool + def clear_end_time: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + schedule_id: (::String | ::Symbol)?, + "schedule_id" => (::String | ::Symbol)?, + start_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "start_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + end_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "end_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("schedule_id" name) -> ::String + | ("start_time" name) -> ::Google::Protobuf::Timestamp? + | ("end_time" name) -> ::Google::Protobuf::Timestamp? + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("schedule_id" name, (::String | ::Symbol) value) -> void + | ("start_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("end_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + end + + class ListScheduleMatchingTimesResponse < ::Google::Protobuf::AbstractMessage + + attr_accessor start_time(): ::Google::Protobuf::RepeatedField + def clear_start_time: () -> void + + type init_map = { + start_time: ::Array[::Google::Protobuf::Timestamp | ::Time]?, + "start_time" => ::Array[::Google::Protobuf::Timestamp | ::Time]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("start_time" name) -> (::Google::Protobuf::RepeatedField) + + def []=: + ("start_time" name, (::Google::Protobuf::RepeatedField) value) -> void + end + + class DeleteScheduleRequest < ::Google::Protobuf::AbstractMessage + + # The namespace of the schedule to delete. + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # The id of the schedule to delete. + attr_reader schedule_id(): ::String + attr_writer schedule_id(): ::String | ::Symbol + def clear_schedule_id: () -> void + + # The identity of the client who initiated this request. + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + schedule_id: (::String | ::Symbol)?, + "schedule_id" => (::String | ::Symbol)?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("schedule_id" name) -> ::String + | ("identity" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("schedule_id" name, (::String | ::Symbol) value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + end + + class DeleteScheduleResponse < ::Google::Protobuf::AbstractMessage + + type init_map = { + } + + def initialize: (?init_map initial_value) -> void + end + + class ListSchedulesRequest < ::Google::Protobuf::AbstractMessage + + # The namespace to list schedules in. + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # How many to return at once. + attr_reader maximum_page_size(): ::Integer + attr_writer maximum_page_size(): ::Integer | ::Float + def clear_maximum_page_size: () -> void + + # Token to get the next page of results. + attr_accessor next_page_token(): ::String + def clear_next_page_token: () -> void + + # Query to filter schedules. + attr_reader query(): ::String + attr_writer query(): ::String | ::Symbol + def clear_query: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + maximum_page_size: (::Integer | ::Float)?, + "maximum_page_size" => (::Integer | ::Float)?, + next_page_token: ::String?, + "next_page_token" => ::String?, + query: (::String | ::Symbol)?, + "query" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("maximum_page_size" name) -> ::Integer + | ("next_page_token" name) -> ::String + | ("query" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("maximum_page_size" name, (::Integer | ::Float) value) -> void + | ("next_page_token" name, ::String value) -> void + | ("query" name, (::String | ::Symbol) value) -> void + end + + class ListSchedulesResponse < ::Google::Protobuf::AbstractMessage + + attr_accessor schedules(): ::Google::Protobuf::RepeatedField + def clear_schedules: () -> void + + attr_accessor next_page_token(): ::String + def clear_next_page_token: () -> void + + type init_map = { + schedules: ::Array[::Temporalio::Api::Schedule::V1::ScheduleListEntry]?, + "schedules" => ::Array[::Temporalio::Api::Schedule::V1::ScheduleListEntry]?, + next_page_token: ::String?, + "next_page_token" => ::String?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("schedules" name) -> ::Google::Protobuf::RepeatedField + | ("next_page_token" name) -> ::String + + def []=: + ("schedules" name, ::Google::Protobuf::RepeatedField value) -> void + | ("next_page_token" name, ::String value) -> void + end + + class CountSchedulesRequest < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # Visibility query, see https://docs.temporal.io/list-filter for the syntax. + attr_reader query(): ::String + attr_writer query(): ::String | ::Symbol + def clear_query: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + query: (::String | ::Symbol)?, + "query" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("query" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("query" name, (::String | ::Symbol) value) -> void + end + + class CountSchedulesResponse < ::Google::Protobuf::AbstractMessage + class AggregationGroup < ::Google::Protobuf::AbstractMessage + + attr_accessor group_values(): ::Google::Protobuf::RepeatedField + def clear_group_values: () -> void + + attr_reader count(): ::Integer + attr_writer count(): ::Integer | ::Float + def clear_count: () -> void + + type init_map = { + group_values: ::Array[::Temporalio::Api::Common::V1::Payload]?, + "group_values" => ::Array[::Temporalio::Api::Common::V1::Payload]?, + count: (::Integer | ::Float)?, + "count" => (::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("group_values" name) -> ::Google::Protobuf::RepeatedField + | ("count" name) -> ::Integer + + def []=: + ("group_values" name, ::Google::Protobuf::RepeatedField value) -> void + | ("count" name, (::Integer | ::Float) value) -> void + end + + # If `query` is not grouping by any field, the count is an approximate number + # of schedules 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 schedules matching the query. + attr_reader count(): ::Integer + attr_writer count(): ::Integer | ::Float + def clear_count: () -> void + + # 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. + attr_accessor groups(): ::Google::Protobuf::RepeatedField + def clear_groups: () -> void + + type init_map = { + count: (::Integer | ::Float)?, + "count" => (::Integer | ::Float)?, + groups: ::Array[::Temporalio::Api::WorkflowService::V1::CountSchedulesResponse::AggregationGroup]?, + "groups" => ::Array[::Temporalio::Api::WorkflowService::V1::CountSchedulesResponse::AggregationGroup]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("count" name) -> ::Integer + | ("groups" name) -> ::Google::Protobuf::RepeatedField + + def []=: + ("count" name, (::Integer | ::Float) value) -> void + | ("groups" name, ::Google::Protobuf::RepeatedField value) -> void + end + + # [cleanup-wv-pre-release] + class UpdateWorkerBuildIdCompatibilityRequest < ::Google::Protobuf::AbstractMessage + class AddNewCompatibleVersion < ::Google::Protobuf::AbstractMessage + + # A new id to be added to an existing compatible set. + attr_reader new_build_id(): ::String + attr_writer new_build_id(): ::String | ::Symbol + def clear_new_build_id: () -> void + + # 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. + attr_reader existing_compatible_build_id(): ::String + attr_writer existing_compatible_build_id(): ::String | ::Symbol + def clear_existing_compatible_build_id: () -> void + + # 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. + attr_accessor make_set_default(): bool + def clear_make_set_default: () -> void + + type init_map = { + new_build_id: (::String | ::Symbol)?, + "new_build_id" => (::String | ::Symbol)?, + existing_compatible_build_id: (::String | ::Symbol)?, + "existing_compatible_build_id" => (::String | ::Symbol)?, + make_set_default: bool?, + "make_set_default" => bool?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("new_build_id" name) -> ::String + | ("existing_compatible_build_id" name) -> ::String + | ("make_set_default" name) -> bool + + def []=: + ("new_build_id" name, (::String | ::Symbol) value) -> void + | ("existing_compatible_build_id" name, (::String | ::Symbol) value) -> void + | ("make_set_default" name, bool value) -> void + end + + class MergeSets < ::Google::Protobuf::AbstractMessage + + # A build ID in the set whose default will become the merged set default + attr_reader primary_set_build_id(): ::String + attr_writer primary_set_build_id(): ::String | ::Symbol + def clear_primary_set_build_id: () -> void + + # A build ID in the set which will be merged into the primary set + attr_reader secondary_set_build_id(): ::String + attr_writer secondary_set_build_id(): ::String | ::Symbol + def clear_secondary_set_build_id: () -> void + + type init_map = { + primary_set_build_id: (::String | ::Symbol)?, + "primary_set_build_id" => (::String | ::Symbol)?, + secondary_set_build_id: (::String | ::Symbol)?, + "secondary_set_build_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("primary_set_build_id" name) -> ::String + | ("secondary_set_build_id" name) -> ::String + + def []=: + ("primary_set_build_id" name, (::String | ::Symbol) value) -> void + | ("secondary_set_build_id" name, (::String | ::Symbol) value) -> void + end + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # 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. + attr_reader task_queue(): ::String + attr_writer task_queue(): ::String | ::Symbol + def clear_task_queue: () -> void + + # 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. --) + attr_reader add_new_build_id_in_new_default_set(): ::String + attr_writer add_new_build_id_in_new_default_set(): (::String | ::Symbol)? + def has_add_new_build_id_in_new_default_set?: () -> bool + def clear_add_new_build_id_in_new_default_set: () -> void + + # Adds a new id to an existing compatible set, see sub-message definition for more. + attr_accessor add_new_compatible_build_id(): ::Temporalio::Api::WorkflowService::V1::UpdateWorkerBuildIdCompatibilityRequest::AddNewCompatibleVersion? + def has_add_new_compatible_build_id?: () -> bool + def clear_add_new_compatible_build_id: () -> void + + # 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. --) + attr_reader promote_set_by_build_id(): ::String + attr_writer promote_set_by_build_id(): (::String | ::Symbol)? + def has_promote_set_by_build_id?: () -> bool + def clear_promote_set_by_build_id: () -> void + + # 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. --) + attr_reader promote_build_id_within_set(): ::String + attr_writer promote_build_id_within_set(): (::String | ::Symbol)? + def has_promote_build_id_within_set?: () -> bool + def clear_promote_build_id_within_set: () -> void + + # 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. + attr_accessor merge_sets(): ::Temporalio::Api::WorkflowService::V1::UpdateWorkerBuildIdCompatibilityRequest::MergeSets? + def has_merge_sets?: () -> bool + def clear_merge_sets: () -> void + + attr_reader operation(): (::String | ::Temporalio::Api::WorkflowService::V1::UpdateWorkerBuildIdCompatibilityRequest::AddNewCompatibleVersion | ::Temporalio::Api::WorkflowService::V1::UpdateWorkerBuildIdCompatibilityRequest::MergeSets)? + def has_operation?: () -> bool + def clear_operation: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + task_queue: (::String | ::Symbol)?, + "task_queue" => (::String | ::Symbol)?, + add_new_build_id_in_new_default_set: (::String | ::Symbol)?, + "add_new_build_id_in_new_default_set" => (::String | ::Symbol)?, + add_new_compatible_build_id: (::Temporalio::Api::WorkflowService::V1::UpdateWorkerBuildIdCompatibilityRequest::AddNewCompatibleVersion | ::Temporalio::Api::WorkflowService::V1::UpdateWorkerBuildIdCompatibilityRequest::AddNewCompatibleVersion::init_map)?, + "add_new_compatible_build_id" => (::Temporalio::Api::WorkflowService::V1::UpdateWorkerBuildIdCompatibilityRequest::AddNewCompatibleVersion | ::Temporalio::Api::WorkflowService::V1::UpdateWorkerBuildIdCompatibilityRequest::AddNewCompatibleVersion::init_map)?, + promote_set_by_build_id: (::String | ::Symbol)?, + "promote_set_by_build_id" => (::String | ::Symbol)?, + promote_build_id_within_set: (::String | ::Symbol)?, + "promote_build_id_within_set" => (::String | ::Symbol)?, + merge_sets: (::Temporalio::Api::WorkflowService::V1::UpdateWorkerBuildIdCompatibilityRequest::MergeSets | ::Temporalio::Api::WorkflowService::V1::UpdateWorkerBuildIdCompatibilityRequest::MergeSets::init_map)?, + "merge_sets" => (::Temporalio::Api::WorkflowService::V1::UpdateWorkerBuildIdCompatibilityRequest::MergeSets | ::Temporalio::Api::WorkflowService::V1::UpdateWorkerBuildIdCompatibilityRequest::MergeSets::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("task_queue" name) -> ::String + | ("add_new_build_id_in_new_default_set" name) -> ::String + | ("add_new_compatible_build_id" name) -> ::Temporalio::Api::WorkflowService::V1::UpdateWorkerBuildIdCompatibilityRequest::AddNewCompatibleVersion? + | ("promote_set_by_build_id" name) -> ::String + | ("promote_build_id_within_set" name) -> ::String + | ("merge_sets" name) -> ::Temporalio::Api::WorkflowService::V1::UpdateWorkerBuildIdCompatibilityRequest::MergeSets? + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("task_queue" name, (::String | ::Symbol) value) -> void + | ("add_new_build_id_in_new_default_set" name, ((::String | ::Symbol)?) value) -> void + | ("add_new_compatible_build_id" name, ::Temporalio::Api::WorkflowService::V1::UpdateWorkerBuildIdCompatibilityRequest::AddNewCompatibleVersion? value) -> void + | ("promote_set_by_build_id" name, ((::String | ::Symbol)?) value) -> void + | ("promote_build_id_within_set" name, ((::String | ::Symbol)?) value) -> void + | ("merge_sets" name, ::Temporalio::Api::WorkflowService::V1::UpdateWorkerBuildIdCompatibilityRequest::MergeSets? value) -> void + end + + # [cleanup-wv-pre-release] + class UpdateWorkerBuildIdCompatibilityResponse < ::Google::Protobuf::AbstractMessage + + type init_map = { + } + + def initialize: (?init_map initial_value) -> void + end + + # [cleanup-wv-pre-release] + class GetWorkerBuildIdCompatibilityRequest < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # Must be set, the task queue to interrogate about worker id compatibility. + attr_reader task_queue(): ::String + attr_writer task_queue(): ::String | ::Symbol + def clear_task_queue: () -> void + + # Limits how many compatible sets will be returned. Specify 1 to only return the current + # default major version set. 0 returns all sets. + attr_reader max_sets(): ::Integer + attr_writer max_sets(): ::Integer | ::Float + def clear_max_sets: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + task_queue: (::String | ::Symbol)?, + "task_queue" => (::String | ::Symbol)?, + max_sets: (::Integer | ::Float)?, + "max_sets" => (::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("task_queue" name) -> ::String + | ("max_sets" name) -> ::Integer + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("task_queue" name, (::String | ::Symbol) value) -> void + | ("max_sets" name, (::Integer | ::Float) value) -> void + end + + # [cleanup-wv-pre-release] + class GetWorkerBuildIdCompatibilityResponse < ::Google::Protobuf::AbstractMessage + + # 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. + attr_accessor major_version_sets(): ::Google::Protobuf::RepeatedField + def clear_major_version_sets: () -> void + + type init_map = { + major_version_sets: ::Array[::Temporalio::Api::TaskQueue::V1::CompatibleVersionSet]?, + "major_version_sets" => ::Array[::Temporalio::Api::TaskQueue::V1::CompatibleVersionSet]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("major_version_sets" name) -> ::Google::Protobuf::RepeatedField + + def []=: + ("major_version_sets" name, ::Google::Protobuf::RepeatedField value) -> void + end + + # (-- 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] + class UpdateWorkerVersioningRulesRequest < ::Google::Protobuf::AbstractMessage + # 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. + class InsertBuildIdAssignmentRule < ::Google::Protobuf::AbstractMessage + + # 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. + attr_reader rule_index(): ::Integer + attr_writer rule_index(): ::Integer | ::Float + def clear_rule_index: () -> void + + attr_accessor rule(): ::Temporalio::Api::TaskQueue::V1::BuildIdAssignmentRule? + def has_rule?: () -> bool + def clear_rule: () -> void + + type init_map = { + rule_index: (::Integer | ::Float)?, + "rule_index" => (::Integer | ::Float)?, + rule: (::Temporalio::Api::TaskQueue::V1::BuildIdAssignmentRule | ::Temporalio::Api::TaskQueue::V1::BuildIdAssignmentRule::init_map)?, + "rule" => (::Temporalio::Api::TaskQueue::V1::BuildIdAssignmentRule | ::Temporalio::Api::TaskQueue::V1::BuildIdAssignmentRule::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("rule_index" name) -> ::Integer + | ("rule" name) -> ::Temporalio::Api::TaskQueue::V1::BuildIdAssignmentRule? + + def []=: + ("rule_index" name, (::Integer | ::Float) value) -> void + | ("rule" name, ::Temporalio::Api::TaskQueue::V1::BuildIdAssignmentRule? value) -> void + end + + # Replaces the assignment rule at a given index. + class ReplaceBuildIdAssignmentRule < ::Google::Protobuf::AbstractMessage + + attr_reader rule_index(): ::Integer + attr_writer rule_index(): ::Integer | ::Float + def clear_rule_index: () -> void + + attr_accessor rule(): ::Temporalio::Api::TaskQueue::V1::BuildIdAssignmentRule? + def has_rule?: () -> bool + def clear_rule: () -> void + + # 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 + attr_accessor force(): bool + def clear_force: () -> void + + type init_map = { + rule_index: (::Integer | ::Float)?, + "rule_index" => (::Integer | ::Float)?, + rule: (::Temporalio::Api::TaskQueue::V1::BuildIdAssignmentRule | ::Temporalio::Api::TaskQueue::V1::BuildIdAssignmentRule::init_map)?, + "rule" => (::Temporalio::Api::TaskQueue::V1::BuildIdAssignmentRule | ::Temporalio::Api::TaskQueue::V1::BuildIdAssignmentRule::init_map)?, + force: bool?, + "force" => bool?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("rule_index" name) -> ::Integer + | ("rule" name) -> ::Temporalio::Api::TaskQueue::V1::BuildIdAssignmentRule? + | ("force" name) -> bool + + def []=: + ("rule_index" name, (::Integer | ::Float) value) -> void + | ("rule" name, ::Temporalio::Api::TaskQueue::V1::BuildIdAssignmentRule? value) -> void + | ("force" name, bool value) -> void + end + + class DeleteBuildIdAssignmentRule < ::Google::Protobuf::AbstractMessage + + attr_reader rule_index(): ::Integer + attr_writer rule_index(): ::Integer | ::Float + def clear_rule_index: () -> void + + # 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 + attr_accessor force(): bool + def clear_force: () -> void + + type init_map = { + rule_index: (::Integer | ::Float)?, + "rule_index" => (::Integer | ::Float)?, + force: bool?, + "force" => bool?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("rule_index" name) -> ::Integer + | ("force" name) -> bool + + def []=: + ("rule_index" name, (::Integer | ::Float) value) -> void + | ("force" name, bool value) -> void + end + + # 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. + class AddCompatibleBuildIdRedirectRule < ::Google::Protobuf::AbstractMessage + + attr_accessor rule(): ::Temporalio::Api::TaskQueue::V1::CompatibleBuildIdRedirectRule? + def has_rule?: () -> bool + def clear_rule: () -> void + + type init_map = { + rule: (::Temporalio::Api::TaskQueue::V1::CompatibleBuildIdRedirectRule | ::Temporalio::Api::TaskQueue::V1::CompatibleBuildIdRedirectRule::init_map)?, + "rule" => (::Temporalio::Api::TaskQueue::V1::CompatibleBuildIdRedirectRule | ::Temporalio::Api::TaskQueue::V1::CompatibleBuildIdRedirectRule::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("rule" name) -> ::Temporalio::Api::TaskQueue::V1::CompatibleBuildIdRedirectRule? + + def []=: + ("rule" name, ::Temporalio::Api::TaskQueue::V1::CompatibleBuildIdRedirectRule? value) -> void + end + + # Replaces the routing rule with the given source Build ID. + class ReplaceCompatibleBuildIdRedirectRule < ::Google::Protobuf::AbstractMessage + + attr_accessor rule(): ::Temporalio::Api::TaskQueue::V1::CompatibleBuildIdRedirectRule? + def has_rule?: () -> bool + def clear_rule: () -> void + + type init_map = { + rule: (::Temporalio::Api::TaskQueue::V1::CompatibleBuildIdRedirectRule | ::Temporalio::Api::TaskQueue::V1::CompatibleBuildIdRedirectRule::init_map)?, + "rule" => (::Temporalio::Api::TaskQueue::V1::CompatibleBuildIdRedirectRule | ::Temporalio::Api::TaskQueue::V1::CompatibleBuildIdRedirectRule::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("rule" name) -> ::Temporalio::Api::TaskQueue::V1::CompatibleBuildIdRedirectRule? + + def []=: + ("rule" name, ::Temporalio::Api::TaskQueue::V1::CompatibleBuildIdRedirectRule? value) -> void + end + + class DeleteCompatibleBuildIdRedirectRule < ::Google::Protobuf::AbstractMessage + + attr_reader source_build_id(): ::String + attr_writer source_build_id(): ::String | ::Symbol + def clear_source_build_id: () -> void + + type init_map = { + source_build_id: (::String | ::Symbol)?, + "source_build_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("source_build_id" name) -> ::String + + def []=: + ("source_build_id" name, (::String | ::Symbol) value) -> void + end + + # 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. + class CommitBuildId < ::Google::Protobuf::AbstractMessage + + attr_reader target_build_id(): ::String + attr_writer target_build_id(): ::String | ::Symbol + def clear_target_build_id: () -> void + + # 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. + attr_accessor force(): bool + def clear_force: () -> void + + type init_map = { + target_build_id: (::String | ::Symbol)?, + "target_build_id" => (::String | ::Symbol)?, + force: bool?, + "force" => bool?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("target_build_id" name) -> ::String + | ("force" name) -> bool + + def []=: + ("target_build_id" name, (::String | ::Symbol) value) -> void + | ("force" name, bool value) -> void + end + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_reader task_queue(): ::String + attr_writer task_queue(): ::String | ::Symbol + def clear_task_queue: () -> void + + # 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. + attr_accessor conflict_token(): ::String + def clear_conflict_token: () -> void + + attr_accessor insert_assignment_rule(): ::Temporalio::Api::WorkflowService::V1::UpdateWorkerVersioningRulesRequest::InsertBuildIdAssignmentRule? + def has_insert_assignment_rule?: () -> bool + def clear_insert_assignment_rule: () -> void + + attr_accessor replace_assignment_rule(): ::Temporalio::Api::WorkflowService::V1::UpdateWorkerVersioningRulesRequest::ReplaceBuildIdAssignmentRule? + def has_replace_assignment_rule?: () -> bool + def clear_replace_assignment_rule: () -> void + + attr_accessor delete_assignment_rule(): ::Temporalio::Api::WorkflowService::V1::UpdateWorkerVersioningRulesRequest::DeleteBuildIdAssignmentRule? + def has_delete_assignment_rule?: () -> bool + def clear_delete_assignment_rule: () -> void + + attr_accessor add_compatible_redirect_rule(): ::Temporalio::Api::WorkflowService::V1::UpdateWorkerVersioningRulesRequest::AddCompatibleBuildIdRedirectRule? + def has_add_compatible_redirect_rule?: () -> bool + def clear_add_compatible_redirect_rule: () -> void + + attr_accessor replace_compatible_redirect_rule(): ::Temporalio::Api::WorkflowService::V1::UpdateWorkerVersioningRulesRequest::ReplaceCompatibleBuildIdRedirectRule? + def has_replace_compatible_redirect_rule?: () -> bool + def clear_replace_compatible_redirect_rule: () -> void + + attr_accessor delete_compatible_redirect_rule(): ::Temporalio::Api::WorkflowService::V1::UpdateWorkerVersioningRulesRequest::DeleteCompatibleBuildIdRedirectRule? + def has_delete_compatible_redirect_rule?: () -> bool + def clear_delete_compatible_redirect_rule: () -> void + + attr_accessor commit_build_id(): ::Temporalio::Api::WorkflowService::V1::UpdateWorkerVersioningRulesRequest::CommitBuildId? + def has_commit_build_id?: () -> bool + def clear_commit_build_id: () -> void + + attr_reader operation(): (::Temporalio::Api::WorkflowService::V1::UpdateWorkerVersioningRulesRequest::InsertBuildIdAssignmentRule | ::Temporalio::Api::WorkflowService::V1::UpdateWorkerVersioningRulesRequest::ReplaceBuildIdAssignmentRule | ::Temporalio::Api::WorkflowService::V1::UpdateWorkerVersioningRulesRequest::DeleteBuildIdAssignmentRule | ::Temporalio::Api::WorkflowService::V1::UpdateWorkerVersioningRulesRequest::AddCompatibleBuildIdRedirectRule | ::Temporalio::Api::WorkflowService::V1::UpdateWorkerVersioningRulesRequest::ReplaceCompatibleBuildIdRedirectRule | ::Temporalio::Api::WorkflowService::V1::UpdateWorkerVersioningRulesRequest::DeleteCompatibleBuildIdRedirectRule | ::Temporalio::Api::WorkflowService::V1::UpdateWorkerVersioningRulesRequest::CommitBuildId)? + def has_operation?: () -> bool + def clear_operation: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + task_queue: (::String | ::Symbol)?, + "task_queue" => (::String | ::Symbol)?, + conflict_token: ::String?, + "conflict_token" => ::String?, + insert_assignment_rule: (::Temporalio::Api::WorkflowService::V1::UpdateWorkerVersioningRulesRequest::InsertBuildIdAssignmentRule | ::Temporalio::Api::WorkflowService::V1::UpdateWorkerVersioningRulesRequest::InsertBuildIdAssignmentRule::init_map)?, + "insert_assignment_rule" => (::Temporalio::Api::WorkflowService::V1::UpdateWorkerVersioningRulesRequest::InsertBuildIdAssignmentRule | ::Temporalio::Api::WorkflowService::V1::UpdateWorkerVersioningRulesRequest::InsertBuildIdAssignmentRule::init_map)?, + replace_assignment_rule: (::Temporalio::Api::WorkflowService::V1::UpdateWorkerVersioningRulesRequest::ReplaceBuildIdAssignmentRule | ::Temporalio::Api::WorkflowService::V1::UpdateWorkerVersioningRulesRequest::ReplaceBuildIdAssignmentRule::init_map)?, + "replace_assignment_rule" => (::Temporalio::Api::WorkflowService::V1::UpdateWorkerVersioningRulesRequest::ReplaceBuildIdAssignmentRule | ::Temporalio::Api::WorkflowService::V1::UpdateWorkerVersioningRulesRequest::ReplaceBuildIdAssignmentRule::init_map)?, + delete_assignment_rule: (::Temporalio::Api::WorkflowService::V1::UpdateWorkerVersioningRulesRequest::DeleteBuildIdAssignmentRule | ::Temporalio::Api::WorkflowService::V1::UpdateWorkerVersioningRulesRequest::DeleteBuildIdAssignmentRule::init_map)?, + "delete_assignment_rule" => (::Temporalio::Api::WorkflowService::V1::UpdateWorkerVersioningRulesRequest::DeleteBuildIdAssignmentRule | ::Temporalio::Api::WorkflowService::V1::UpdateWorkerVersioningRulesRequest::DeleteBuildIdAssignmentRule::init_map)?, + add_compatible_redirect_rule: (::Temporalio::Api::WorkflowService::V1::UpdateWorkerVersioningRulesRequest::AddCompatibleBuildIdRedirectRule | ::Temporalio::Api::WorkflowService::V1::UpdateWorkerVersioningRulesRequest::AddCompatibleBuildIdRedirectRule::init_map)?, + "add_compatible_redirect_rule" => (::Temporalio::Api::WorkflowService::V1::UpdateWorkerVersioningRulesRequest::AddCompatibleBuildIdRedirectRule | ::Temporalio::Api::WorkflowService::V1::UpdateWorkerVersioningRulesRequest::AddCompatibleBuildIdRedirectRule::init_map)?, + replace_compatible_redirect_rule: (::Temporalio::Api::WorkflowService::V1::UpdateWorkerVersioningRulesRequest::ReplaceCompatibleBuildIdRedirectRule | ::Temporalio::Api::WorkflowService::V1::UpdateWorkerVersioningRulesRequest::ReplaceCompatibleBuildIdRedirectRule::init_map)?, + "replace_compatible_redirect_rule" => (::Temporalio::Api::WorkflowService::V1::UpdateWorkerVersioningRulesRequest::ReplaceCompatibleBuildIdRedirectRule | ::Temporalio::Api::WorkflowService::V1::UpdateWorkerVersioningRulesRequest::ReplaceCompatibleBuildIdRedirectRule::init_map)?, + delete_compatible_redirect_rule: (::Temporalio::Api::WorkflowService::V1::UpdateWorkerVersioningRulesRequest::DeleteCompatibleBuildIdRedirectRule | ::Temporalio::Api::WorkflowService::V1::UpdateWorkerVersioningRulesRequest::DeleteCompatibleBuildIdRedirectRule::init_map)?, + "delete_compatible_redirect_rule" => (::Temporalio::Api::WorkflowService::V1::UpdateWorkerVersioningRulesRequest::DeleteCompatibleBuildIdRedirectRule | ::Temporalio::Api::WorkflowService::V1::UpdateWorkerVersioningRulesRequest::DeleteCompatibleBuildIdRedirectRule::init_map)?, + commit_build_id: (::Temporalio::Api::WorkflowService::V1::UpdateWorkerVersioningRulesRequest::CommitBuildId | ::Temporalio::Api::WorkflowService::V1::UpdateWorkerVersioningRulesRequest::CommitBuildId::init_map)?, + "commit_build_id" => (::Temporalio::Api::WorkflowService::V1::UpdateWorkerVersioningRulesRequest::CommitBuildId | ::Temporalio::Api::WorkflowService::V1::UpdateWorkerVersioningRulesRequest::CommitBuildId::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("task_queue" name) -> ::String + | ("conflict_token" name) -> ::String + | ("insert_assignment_rule" name) -> ::Temporalio::Api::WorkflowService::V1::UpdateWorkerVersioningRulesRequest::InsertBuildIdAssignmentRule? + | ("replace_assignment_rule" name) -> ::Temporalio::Api::WorkflowService::V1::UpdateWorkerVersioningRulesRequest::ReplaceBuildIdAssignmentRule? + | ("delete_assignment_rule" name) -> ::Temporalio::Api::WorkflowService::V1::UpdateWorkerVersioningRulesRequest::DeleteBuildIdAssignmentRule? + | ("add_compatible_redirect_rule" name) -> ::Temporalio::Api::WorkflowService::V1::UpdateWorkerVersioningRulesRequest::AddCompatibleBuildIdRedirectRule? + | ("replace_compatible_redirect_rule" name) -> ::Temporalio::Api::WorkflowService::V1::UpdateWorkerVersioningRulesRequest::ReplaceCompatibleBuildIdRedirectRule? + | ("delete_compatible_redirect_rule" name) -> ::Temporalio::Api::WorkflowService::V1::UpdateWorkerVersioningRulesRequest::DeleteCompatibleBuildIdRedirectRule? + | ("commit_build_id" name) -> ::Temporalio::Api::WorkflowService::V1::UpdateWorkerVersioningRulesRequest::CommitBuildId? + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("task_queue" name, (::String | ::Symbol) value) -> void + | ("conflict_token" name, ::String value) -> void + | ("insert_assignment_rule" name, ::Temporalio::Api::WorkflowService::V1::UpdateWorkerVersioningRulesRequest::InsertBuildIdAssignmentRule? value) -> void + | ("replace_assignment_rule" name, ::Temporalio::Api::WorkflowService::V1::UpdateWorkerVersioningRulesRequest::ReplaceBuildIdAssignmentRule? value) -> void + | ("delete_assignment_rule" name, ::Temporalio::Api::WorkflowService::V1::UpdateWorkerVersioningRulesRequest::DeleteBuildIdAssignmentRule? value) -> void + | ("add_compatible_redirect_rule" name, ::Temporalio::Api::WorkflowService::V1::UpdateWorkerVersioningRulesRequest::AddCompatibleBuildIdRedirectRule? value) -> void + | ("replace_compatible_redirect_rule" name, ::Temporalio::Api::WorkflowService::V1::UpdateWorkerVersioningRulesRequest::ReplaceCompatibleBuildIdRedirectRule? value) -> void + | ("delete_compatible_redirect_rule" name, ::Temporalio::Api::WorkflowService::V1::UpdateWorkerVersioningRulesRequest::DeleteCompatibleBuildIdRedirectRule? value) -> void + | ("commit_build_id" name, ::Temporalio::Api::WorkflowService::V1::UpdateWorkerVersioningRulesRequest::CommitBuildId? value) -> void + end + + # [cleanup-wv-pre-release] + class UpdateWorkerVersioningRulesResponse < ::Google::Protobuf::AbstractMessage + + attr_accessor assignment_rules(): ::Google::Protobuf::RepeatedField + def clear_assignment_rules: () -> void + + attr_accessor compatible_redirect_rules(): ::Google::Protobuf::RepeatedField + def clear_compatible_redirect_rules: () -> void + + # 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. + attr_accessor conflict_token(): ::String + def clear_conflict_token: () -> void + + type init_map = { + assignment_rules: ::Array[::Temporalio::Api::TaskQueue::V1::TimestampedBuildIdAssignmentRule]?, + "assignment_rules" => ::Array[::Temporalio::Api::TaskQueue::V1::TimestampedBuildIdAssignmentRule]?, + compatible_redirect_rules: ::Array[::Temporalio::Api::TaskQueue::V1::TimestampedCompatibleBuildIdRedirectRule]?, + "compatible_redirect_rules" => ::Array[::Temporalio::Api::TaskQueue::V1::TimestampedCompatibleBuildIdRedirectRule]?, + conflict_token: ::String?, + "conflict_token" => ::String?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("assignment_rules" name) -> ::Google::Protobuf::RepeatedField + | ("compatible_redirect_rules" name) -> ::Google::Protobuf::RepeatedField + | ("conflict_token" name) -> ::String + + def []=: + ("assignment_rules" name, ::Google::Protobuf::RepeatedField value) -> void + | ("compatible_redirect_rules" name, ::Google::Protobuf::RepeatedField value) -> void + | ("conflict_token" name, ::String value) -> void + end + + # [cleanup-wv-pre-release] + class GetWorkerVersioningRulesRequest < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_reader task_queue(): ::String + attr_writer task_queue(): ::String | ::Symbol + def clear_task_queue: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + task_queue: (::String | ::Symbol)?, + "task_queue" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("task_queue" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("task_queue" name, (::String | ::Symbol) value) -> void + end + + # [cleanup-wv-pre-release] + class GetWorkerVersioningRulesResponse < ::Google::Protobuf::AbstractMessage + + attr_accessor assignment_rules(): ::Google::Protobuf::RepeatedField + def clear_assignment_rules: () -> void + + attr_accessor compatible_redirect_rules(): ::Google::Protobuf::RepeatedField + def clear_compatible_redirect_rules: () -> void + + # 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. + attr_accessor conflict_token(): ::String + def clear_conflict_token: () -> void + + type init_map = { + assignment_rules: ::Array[::Temporalio::Api::TaskQueue::V1::TimestampedBuildIdAssignmentRule]?, + "assignment_rules" => ::Array[::Temporalio::Api::TaskQueue::V1::TimestampedBuildIdAssignmentRule]?, + compatible_redirect_rules: ::Array[::Temporalio::Api::TaskQueue::V1::TimestampedCompatibleBuildIdRedirectRule]?, + "compatible_redirect_rules" => ::Array[::Temporalio::Api::TaskQueue::V1::TimestampedCompatibleBuildIdRedirectRule]?, + conflict_token: ::String?, + "conflict_token" => ::String?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("assignment_rules" name) -> ::Google::Protobuf::RepeatedField + | ("compatible_redirect_rules" name) -> ::Google::Protobuf::RepeatedField + | ("conflict_token" name) -> ::String + + def []=: + ("assignment_rules" name, ::Google::Protobuf::RepeatedField value) -> void + | ("compatible_redirect_rules" name, ::Google::Protobuf::RepeatedField value) -> void + | ("conflict_token" name, ::String value) -> void + end + + # [cleanup-wv-pre-release] + # Deprecated. Use `DescribeTaskQueue`. + class GetWorkerTaskReachabilityRequest < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # 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. + attr_accessor build_ids(): ::Google::Protobuf::RepeatedField + def clear_build_ids: () -> void + + # 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. + attr_accessor task_queues(): ::Google::Protobuf::RepeatedField + def clear_task_queues: () -> void + + # 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. + attr_reader reachability(): ::Temporalio::Api::Enums::V1::TaskReachability::names | ::Integer + attr_writer reachability(): ::Temporalio::Api::Enums::V1::TaskReachability::names | ::Temporalio::Api::Enums::V1::TaskReachability::strings | ::Integer | ::Float + attr_reader reachability_const(): ::Integer + def clear_reachability: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + build_ids: ::Array[::String | ::Symbol]?, + "build_ids" => ::Array[::String | ::Symbol]?, + task_queues: ::Array[::String | ::Symbol]?, + "task_queues" => ::Array[::String | ::Symbol]?, + reachability: (::Temporalio::Api::Enums::V1::TaskReachability::names | ::Temporalio::Api::Enums::V1::TaskReachability::strings | ::Integer | ::Float)?, + "reachability" => (::Temporalio::Api::Enums::V1::TaskReachability::names | ::Temporalio::Api::Enums::V1::TaskReachability::strings | ::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("build_ids" name) -> (::Google::Protobuf::RepeatedField) + | ("task_queues" name) -> (::Google::Protobuf::RepeatedField) + | ("reachability" name) -> (::Temporalio::Api::Enums::V1::TaskReachability::names | ::Integer) + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("build_ids" name, (::Google::Protobuf::RepeatedField) value) -> void + | ("task_queues" name, (::Google::Protobuf::RepeatedField) value) -> void + | ("reachability" name, (::Temporalio::Api::Enums::V1::TaskReachability::names | ::Temporalio::Api::Enums::V1::TaskReachability::strings | ::Integer | ::Float) value) -> void + end + + # [cleanup-wv-pre-release] + # Deprecated. Use `DescribeTaskQueue`. + class GetWorkerTaskReachabilityResponse < ::Google::Protobuf::AbstractMessage + + # 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. + attr_accessor build_id_reachability(): ::Google::Protobuf::RepeatedField + def clear_build_id_reachability: () -> void + + type init_map = { + build_id_reachability: ::Array[::Temporalio::Api::TaskQueue::V1::BuildIdReachability]?, + "build_id_reachability" => ::Array[::Temporalio::Api::TaskQueue::V1::BuildIdReachability]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("build_id_reachability" name) -> ::Google::Protobuf::RepeatedField + + def []=: + ("build_id_reachability" name, ::Google::Protobuf::RepeatedField value) -> void + end + + # (-- api-linter: core::0134=disabled + # aip.dev/not-precedent: Update RPCs don't follow Google API format. --) + class UpdateWorkflowExecutionRequest < ::Google::Protobuf::AbstractMessage + + # The namespace name of the target Workflow. + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # 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" --) + attr_accessor workflow_execution(): ::Temporalio::Api::Common::V1::WorkflowExecution? + def has_workflow_execution?: () -> bool + def clear_workflow_execution: () -> void + + # 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. + attr_reader first_execution_run_id(): ::String + attr_writer first_execution_run_id(): ::String | ::Symbol + def clear_first_execution_run_id: () -> void + + # 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. + attr_accessor wait_policy(): ::Temporalio::Api::Update::V1::WaitPolicy? + def has_wait_policy?: () -> bool + def clear_wait_policy: () -> void + + # The request information that will be delivered all the way down to the + # Workflow Execution. + attr_accessor request(): ::Temporalio::Api::Update::V1::Request? + def has_request?: () -> bool + def clear_request: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + workflow_execution: (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + "workflow_execution" => (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + first_execution_run_id: (::String | ::Symbol)?, + "first_execution_run_id" => (::String | ::Symbol)?, + wait_policy: (::Temporalio::Api::Update::V1::WaitPolicy | ::Temporalio::Api::Update::V1::WaitPolicy::init_map)?, + "wait_policy" => (::Temporalio::Api::Update::V1::WaitPolicy | ::Temporalio::Api::Update::V1::WaitPolicy::init_map)?, + request: (::Temporalio::Api::Update::V1::Request | ::Temporalio::Api::Update::V1::Request::init_map)?, + "request" => (::Temporalio::Api::Update::V1::Request | ::Temporalio::Api::Update::V1::Request::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("workflow_execution" name) -> ::Temporalio::Api::Common::V1::WorkflowExecution? + | ("first_execution_run_id" name) -> ::String + | ("wait_policy" name) -> ::Temporalio::Api::Update::V1::WaitPolicy? + | ("request" name) -> ::Temporalio::Api::Update::V1::Request? + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("workflow_execution" name, ::Temporalio::Api::Common::V1::WorkflowExecution? value) -> void + | ("first_execution_run_id" name, (::String | ::Symbol) value) -> void + | ("wait_policy" name, ::Temporalio::Api::Update::V1::WaitPolicy? value) -> void + | ("request" name, ::Temporalio::Api::Update::V1::Request? value) -> void + end + + class UpdateWorkflowExecutionResponse < ::Google::Protobuf::AbstractMessage + + # Enough information for subsequent poll calls if needed. Never null. + attr_accessor update_ref(): ::Temporalio::Api::Update::V1::UpdateRef? + def has_update_ref?: () -> bool + def clear_update_ref: () -> void + + # 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. + attr_accessor outcome(): ::Temporalio::Api::Update::V1::Outcome? + def has_outcome?: () -> bool + def clear_outcome: () -> void + + # 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. + attr_reader stage(): ::Temporalio::Api::Enums::V1::UpdateWorkflowExecutionLifecycleStage::names | ::Integer + attr_writer stage(): ::Temporalio::Api::Enums::V1::UpdateWorkflowExecutionLifecycleStage::names | ::Temporalio::Api::Enums::V1::UpdateWorkflowExecutionLifecycleStage::strings | ::Integer | ::Float + attr_reader stage_const(): ::Integer + def clear_stage: () -> void + + type init_map = { + update_ref: (::Temporalio::Api::Update::V1::UpdateRef | ::Temporalio::Api::Update::V1::UpdateRef::init_map)?, + "update_ref" => (::Temporalio::Api::Update::V1::UpdateRef | ::Temporalio::Api::Update::V1::UpdateRef::init_map)?, + outcome: (::Temporalio::Api::Update::V1::Outcome | ::Temporalio::Api::Update::V1::Outcome::init_map)?, + "outcome" => (::Temporalio::Api::Update::V1::Outcome | ::Temporalio::Api::Update::V1::Outcome::init_map)?, + stage: (::Temporalio::Api::Enums::V1::UpdateWorkflowExecutionLifecycleStage::names | ::Temporalio::Api::Enums::V1::UpdateWorkflowExecutionLifecycleStage::strings | ::Integer | ::Float)?, + "stage" => (::Temporalio::Api::Enums::V1::UpdateWorkflowExecutionLifecycleStage::names | ::Temporalio::Api::Enums::V1::UpdateWorkflowExecutionLifecycleStage::strings | ::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("update_ref" name) -> ::Temporalio::Api::Update::V1::UpdateRef? + | ("outcome" name) -> ::Temporalio::Api::Update::V1::Outcome? + | ("stage" name) -> (::Temporalio::Api::Enums::V1::UpdateWorkflowExecutionLifecycleStage::names | ::Integer) + + def []=: + ("update_ref" name, ::Temporalio::Api::Update::V1::UpdateRef? value) -> void + | ("outcome" name, ::Temporalio::Api::Update::V1::Outcome? value) -> void + | ("stage" name, (::Temporalio::Api::Enums::V1::UpdateWorkflowExecutionLifecycleStage::names | ::Temporalio::Api::Enums::V1::UpdateWorkflowExecutionLifecycleStage::strings | ::Integer | ::Float) value) -> void + end + + class StartBatchOperationRequest < ::Google::Protobuf::AbstractMessage + + # Namespace that contains the batch operation + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # Visibility query defines the the group of workflow to apply the batch operation + # This field and `executions` are mutually exclusive + attr_reader visibility_query(): ::String + attr_writer visibility_query(): ::String | ::Symbol + def clear_visibility_query: () -> void + + # Job ID defines the unique ID for the batch job + attr_reader job_id(): ::String + attr_writer job_id(): ::String | ::Symbol + def clear_job_id: () -> void + + # Reason to perform the batch operation + attr_reader reason(): ::String + attr_writer reason(): ::String | ::Symbol + def clear_reason: () -> void + + # Executions to apply the batch operation + # This field and `visibility_query` are mutually exclusive + attr_accessor executions(): ::Google::Protobuf::RepeatedField + def clear_executions: () -> void + + # 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. + attr_reader max_operations_per_second(): ::Float + attr_writer max_operations_per_second(): ::Float | ::Integer + def clear_max_operations_per_second: () -> void + + attr_accessor termination_operation(): ::Temporalio::Api::Batch::V1::BatchOperationTermination? + def has_termination_operation?: () -> bool + def clear_termination_operation: () -> void + + attr_accessor signal_operation(): ::Temporalio::Api::Batch::V1::BatchOperationSignal? + def has_signal_operation?: () -> bool + def clear_signal_operation: () -> void + + attr_accessor cancellation_operation(): ::Temporalio::Api::Batch::V1::BatchOperationCancellation? + def has_cancellation_operation?: () -> bool + def clear_cancellation_operation: () -> void + + attr_accessor deletion_operation(): ::Temporalio::Api::Batch::V1::BatchOperationDeletion? + def has_deletion_operation?: () -> bool + def clear_deletion_operation: () -> void + + attr_accessor reset_operation(): ::Temporalio::Api::Batch::V1::BatchOperationReset? + def has_reset_operation?: () -> bool + def clear_reset_operation: () -> void + + attr_accessor update_workflow_options_operation(): ::Temporalio::Api::Batch::V1::BatchOperationUpdateWorkflowExecutionOptions? + def has_update_workflow_options_operation?: () -> bool + def clear_update_workflow_options_operation: () -> void + + attr_accessor unpause_activities_operation(): ::Temporalio::Api::Batch::V1::BatchOperationUnpauseActivities? + def has_unpause_activities_operation?: () -> bool + def clear_unpause_activities_operation: () -> void + + attr_accessor reset_activities_operation(): ::Temporalio::Api::Batch::V1::BatchOperationResetActivities? + def has_reset_activities_operation?: () -> bool + def clear_reset_activities_operation: () -> void + + attr_accessor update_activity_options_operation(): ::Temporalio::Api::Batch::V1::BatchOperationUpdateActivityOptions? + def has_update_activity_options_operation?: () -> bool + def clear_update_activity_options_operation: () -> void + + # Operation input + attr_reader operation(): (::Temporalio::Api::Batch::V1::BatchOperationTermination | ::Temporalio::Api::Batch::V1::BatchOperationSignal | ::Temporalio::Api::Batch::V1::BatchOperationCancellation | ::Temporalio::Api::Batch::V1::BatchOperationDeletion | ::Temporalio::Api::Batch::V1::BatchOperationReset | ::Temporalio::Api::Batch::V1::BatchOperationUpdateWorkflowExecutionOptions | ::Temporalio::Api::Batch::V1::BatchOperationUnpauseActivities | ::Temporalio::Api::Batch::V1::BatchOperationResetActivities | ::Temporalio::Api::Batch::V1::BatchOperationUpdateActivityOptions)? + def has_operation?: () -> bool + def clear_operation: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + visibility_query: (::String | ::Symbol)?, + "visibility_query" => (::String | ::Symbol)?, + job_id: (::String | ::Symbol)?, + "job_id" => (::String | ::Symbol)?, + reason: (::String | ::Symbol)?, + "reason" => (::String | ::Symbol)?, + executions: ::Array[::Temporalio::Api::Common::V1::WorkflowExecution]?, + "executions" => ::Array[::Temporalio::Api::Common::V1::WorkflowExecution]?, + max_operations_per_second: (::Float | ::Integer)?, + "max_operations_per_second" => (::Float | ::Integer)?, + termination_operation: (::Temporalio::Api::Batch::V1::BatchOperationTermination | ::Temporalio::Api::Batch::V1::BatchOperationTermination::init_map)?, + "termination_operation" => (::Temporalio::Api::Batch::V1::BatchOperationTermination | ::Temporalio::Api::Batch::V1::BatchOperationTermination::init_map)?, + signal_operation: (::Temporalio::Api::Batch::V1::BatchOperationSignal | ::Temporalio::Api::Batch::V1::BatchOperationSignal::init_map)?, + "signal_operation" => (::Temporalio::Api::Batch::V1::BatchOperationSignal | ::Temporalio::Api::Batch::V1::BatchOperationSignal::init_map)?, + cancellation_operation: (::Temporalio::Api::Batch::V1::BatchOperationCancellation | ::Temporalio::Api::Batch::V1::BatchOperationCancellation::init_map)?, + "cancellation_operation" => (::Temporalio::Api::Batch::V1::BatchOperationCancellation | ::Temporalio::Api::Batch::V1::BatchOperationCancellation::init_map)?, + deletion_operation: (::Temporalio::Api::Batch::V1::BatchOperationDeletion | ::Temporalio::Api::Batch::V1::BatchOperationDeletion::init_map)?, + "deletion_operation" => (::Temporalio::Api::Batch::V1::BatchOperationDeletion | ::Temporalio::Api::Batch::V1::BatchOperationDeletion::init_map)?, + reset_operation: (::Temporalio::Api::Batch::V1::BatchOperationReset | ::Temporalio::Api::Batch::V1::BatchOperationReset::init_map)?, + "reset_operation" => (::Temporalio::Api::Batch::V1::BatchOperationReset | ::Temporalio::Api::Batch::V1::BatchOperationReset::init_map)?, + update_workflow_options_operation: (::Temporalio::Api::Batch::V1::BatchOperationUpdateWorkflowExecutionOptions | ::Temporalio::Api::Batch::V1::BatchOperationUpdateWorkflowExecutionOptions::init_map)?, + "update_workflow_options_operation" => (::Temporalio::Api::Batch::V1::BatchOperationUpdateWorkflowExecutionOptions | ::Temporalio::Api::Batch::V1::BatchOperationUpdateWorkflowExecutionOptions::init_map)?, + unpause_activities_operation: (::Temporalio::Api::Batch::V1::BatchOperationUnpauseActivities | ::Temporalio::Api::Batch::V1::BatchOperationUnpauseActivities::init_map)?, + "unpause_activities_operation" => (::Temporalio::Api::Batch::V1::BatchOperationUnpauseActivities | ::Temporalio::Api::Batch::V1::BatchOperationUnpauseActivities::init_map)?, + reset_activities_operation: (::Temporalio::Api::Batch::V1::BatchOperationResetActivities | ::Temporalio::Api::Batch::V1::BatchOperationResetActivities::init_map)?, + "reset_activities_operation" => (::Temporalio::Api::Batch::V1::BatchOperationResetActivities | ::Temporalio::Api::Batch::V1::BatchOperationResetActivities::init_map)?, + update_activity_options_operation: (::Temporalio::Api::Batch::V1::BatchOperationUpdateActivityOptions | ::Temporalio::Api::Batch::V1::BatchOperationUpdateActivityOptions::init_map)?, + "update_activity_options_operation" => (::Temporalio::Api::Batch::V1::BatchOperationUpdateActivityOptions | ::Temporalio::Api::Batch::V1::BatchOperationUpdateActivityOptions::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("visibility_query" name) -> ::String + | ("job_id" name) -> ::String + | ("reason" name) -> ::String + | ("executions" name) -> ::Google::Protobuf::RepeatedField + | ("max_operations_per_second" name) -> ::Float + | ("termination_operation" name) -> ::Temporalio::Api::Batch::V1::BatchOperationTermination? + | ("signal_operation" name) -> ::Temporalio::Api::Batch::V1::BatchOperationSignal? + | ("cancellation_operation" name) -> ::Temporalio::Api::Batch::V1::BatchOperationCancellation? + | ("deletion_operation" name) -> ::Temporalio::Api::Batch::V1::BatchOperationDeletion? + | ("reset_operation" name) -> ::Temporalio::Api::Batch::V1::BatchOperationReset? + | ("update_workflow_options_operation" name) -> ::Temporalio::Api::Batch::V1::BatchOperationUpdateWorkflowExecutionOptions? + | ("unpause_activities_operation" name) -> ::Temporalio::Api::Batch::V1::BatchOperationUnpauseActivities? + | ("reset_activities_operation" name) -> ::Temporalio::Api::Batch::V1::BatchOperationResetActivities? + | ("update_activity_options_operation" name) -> ::Temporalio::Api::Batch::V1::BatchOperationUpdateActivityOptions? + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("visibility_query" name, (::String | ::Symbol) value) -> void + | ("job_id" name, (::String | ::Symbol) value) -> void + | ("reason" name, (::String | ::Symbol) value) -> void + | ("executions" name, ::Google::Protobuf::RepeatedField value) -> void + | ("max_operations_per_second" name, (::Float | ::Integer) value) -> void + | ("termination_operation" name, ::Temporalio::Api::Batch::V1::BatchOperationTermination? value) -> void + | ("signal_operation" name, ::Temporalio::Api::Batch::V1::BatchOperationSignal? value) -> void + | ("cancellation_operation" name, ::Temporalio::Api::Batch::V1::BatchOperationCancellation? value) -> void + | ("deletion_operation" name, ::Temporalio::Api::Batch::V1::BatchOperationDeletion? value) -> void + | ("reset_operation" name, ::Temporalio::Api::Batch::V1::BatchOperationReset? value) -> void + | ("update_workflow_options_operation" name, ::Temporalio::Api::Batch::V1::BatchOperationUpdateWorkflowExecutionOptions? value) -> void + | ("unpause_activities_operation" name, ::Temporalio::Api::Batch::V1::BatchOperationUnpauseActivities? value) -> void + | ("reset_activities_operation" name, ::Temporalio::Api::Batch::V1::BatchOperationResetActivities? value) -> void + | ("update_activity_options_operation" name, ::Temporalio::Api::Batch::V1::BatchOperationUpdateActivityOptions? value) -> void + end + + class StartBatchOperationResponse < ::Google::Protobuf::AbstractMessage + + type init_map = { + } + + def initialize: (?init_map initial_value) -> void + end + + class StopBatchOperationRequest < ::Google::Protobuf::AbstractMessage + + # Namespace that contains the batch operation + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # Batch job id + attr_reader job_id(): ::String + attr_writer job_id(): ::String | ::Symbol + def clear_job_id: () -> void + + # Reason to stop a batch operation + attr_reader reason(): ::String + attr_writer reason(): ::String | ::Symbol + def clear_reason: () -> void + + # Identity of the operator + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + job_id: (::String | ::Symbol)?, + "job_id" => (::String | ::Symbol)?, + reason: (::String | ::Symbol)?, + "reason" => (::String | ::Symbol)?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("job_id" name) -> ::String + | ("reason" name) -> ::String + | ("identity" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("job_id" name, (::String | ::Symbol) value) -> void + | ("reason" name, (::String | ::Symbol) value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + end + + class StopBatchOperationResponse < ::Google::Protobuf::AbstractMessage + + type init_map = { + } + + def initialize: (?init_map initial_value) -> void + end + + class DescribeBatchOperationRequest < ::Google::Protobuf::AbstractMessage + + # Namespace that contains the batch operation + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # Batch job id + attr_reader job_id(): ::String + attr_writer job_id(): ::String | ::Symbol + def clear_job_id: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + job_id: (::String | ::Symbol)?, + "job_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("job_id" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("job_id" name, (::String | ::Symbol) value) -> void + end + + class DescribeBatchOperationResponse < ::Google::Protobuf::AbstractMessage + + # Batch operation type + attr_reader operation_type(): ::Temporalio::Api::Enums::V1::BatchOperationType::names | ::Integer + attr_writer operation_type(): ::Temporalio::Api::Enums::V1::BatchOperationType::names | ::Temporalio::Api::Enums::V1::BatchOperationType::strings | ::Integer | ::Float + attr_reader operation_type_const(): ::Integer + def clear_operation_type: () -> void + + # Batch job ID + attr_reader job_id(): ::String + attr_writer job_id(): ::String | ::Symbol + def clear_job_id: () -> void + + # Batch operation state + attr_reader state(): ::Temporalio::Api::Enums::V1::BatchOperationState::names | ::Integer + attr_writer state(): ::Temporalio::Api::Enums::V1::BatchOperationState::names | ::Temporalio::Api::Enums::V1::BatchOperationState::strings | ::Integer | ::Float + attr_reader state_const(): ::Integer + def clear_state: () -> void + + # Batch operation start time + attr_reader start_time(): ::Google::Protobuf::Timestamp? + attr_writer start_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_start_time?: () -> bool + def clear_start_time: () -> void + + # Batch operation close time + attr_reader close_time(): ::Google::Protobuf::Timestamp? + attr_writer close_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_close_time?: () -> bool + def clear_close_time: () -> void + + # Total operation count + attr_reader total_operation_count(): ::Integer + attr_writer total_operation_count(): ::Integer | ::Float + def clear_total_operation_count: () -> void + + # Complete operation count + attr_reader complete_operation_count(): ::Integer + attr_writer complete_operation_count(): ::Integer | ::Float + def clear_complete_operation_count: () -> void + + # Failure operation count + attr_reader failure_operation_count(): ::Integer + attr_writer failure_operation_count(): ::Integer | ::Float + def clear_failure_operation_count: () -> void + + # Identity indicates the operator identity + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + # Reason indicates the reason to stop a operation + attr_reader reason(): ::String + attr_writer reason(): ::String | ::Symbol + def clear_reason: () -> void + + type init_map = { + operation_type: (::Temporalio::Api::Enums::V1::BatchOperationType::names | ::Temporalio::Api::Enums::V1::BatchOperationType::strings | ::Integer | ::Float)?, + "operation_type" => (::Temporalio::Api::Enums::V1::BatchOperationType::names | ::Temporalio::Api::Enums::V1::BatchOperationType::strings | ::Integer | ::Float)?, + job_id: (::String | ::Symbol)?, + "job_id" => (::String | ::Symbol)?, + state: (::Temporalio::Api::Enums::V1::BatchOperationState::names | ::Temporalio::Api::Enums::V1::BatchOperationState::strings | ::Integer | ::Float)?, + "state" => (::Temporalio::Api::Enums::V1::BatchOperationState::names | ::Temporalio::Api::Enums::V1::BatchOperationState::strings | ::Integer | ::Float)?, + start_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "start_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + close_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "close_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + total_operation_count: (::Integer | ::Float)?, + "total_operation_count" => (::Integer | ::Float)?, + complete_operation_count: (::Integer | ::Float)?, + "complete_operation_count" => (::Integer | ::Float)?, + failure_operation_count: (::Integer | ::Float)?, + "failure_operation_count" => (::Integer | ::Float)?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + reason: (::String | ::Symbol)?, + "reason" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("operation_type" name) -> (::Temporalio::Api::Enums::V1::BatchOperationType::names | ::Integer) + | ("job_id" name) -> ::String + | ("state" name) -> (::Temporalio::Api::Enums::V1::BatchOperationState::names | ::Integer) + | ("start_time" name) -> ::Google::Protobuf::Timestamp? + | ("close_time" name) -> ::Google::Protobuf::Timestamp? + | ("total_operation_count" name) -> ::Integer + | ("complete_operation_count" name) -> ::Integer + | ("failure_operation_count" name) -> ::Integer + | ("identity" name) -> ::String + | ("reason" name) -> ::String + + def []=: + ("operation_type" name, (::Temporalio::Api::Enums::V1::BatchOperationType::names | ::Temporalio::Api::Enums::V1::BatchOperationType::strings | ::Integer | ::Float) value) -> void + | ("job_id" name, (::String | ::Symbol) value) -> void + | ("state" name, (::Temporalio::Api::Enums::V1::BatchOperationState::names | ::Temporalio::Api::Enums::V1::BatchOperationState::strings | ::Integer | ::Float) value) -> void + | ("start_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("close_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("total_operation_count" name, (::Integer | ::Float) value) -> void + | ("complete_operation_count" name, (::Integer | ::Float) value) -> void + | ("failure_operation_count" name, (::Integer | ::Float) value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + | ("reason" name, (::String | ::Symbol) value) -> void + end + + class ListBatchOperationsRequest < ::Google::Protobuf::AbstractMessage + + # Namespace that contains the batch operation + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # List page size + attr_reader page_size(): ::Integer + attr_writer page_size(): ::Integer | ::Float + def clear_page_size: () -> void + + # Next page token + attr_accessor next_page_token(): ::String + def clear_next_page_token: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + page_size: (::Integer | ::Float)?, + "page_size" => (::Integer | ::Float)?, + next_page_token: ::String?, + "next_page_token" => ::String?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("page_size" name) -> ::Integer + | ("next_page_token" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("page_size" name, (::Integer | ::Float) value) -> void + | ("next_page_token" name, ::String value) -> void + end + + class ListBatchOperationsResponse < ::Google::Protobuf::AbstractMessage + + # BatchOperationInfo contains the basic info about batch operation + attr_accessor operation_info(): ::Google::Protobuf::RepeatedField + def clear_operation_info: () -> void + + attr_accessor next_page_token(): ::String + def clear_next_page_token: () -> void + + type init_map = { + operation_info: ::Array[::Temporalio::Api::Batch::V1::BatchOperationInfo]?, + "operation_info" => ::Array[::Temporalio::Api::Batch::V1::BatchOperationInfo]?, + next_page_token: ::String?, + "next_page_token" => ::String?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("operation_info" name) -> ::Google::Protobuf::RepeatedField + | ("next_page_token" name) -> ::String + + def []=: + ("operation_info" name, ::Google::Protobuf::RepeatedField value) -> void + | ("next_page_token" name, ::String value) -> void + end + + class PollWorkflowExecutionUpdateRequest < ::Google::Protobuf::AbstractMessage + + # The namespace of the Workflow Execution to which the Update was + # originally issued. + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # The Update reference returned in the initial UpdateWorkflowExecutionResponse. + attr_accessor update_ref(): ::Temporalio::Api::Update::V1::UpdateRef? + def has_update_ref?: () -> bool + def clear_update_ref: () -> void + + # The identity of the worker/client who is polling this Update outcome. + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + # Specifies client's intent to wait for Update results. + # Omit to request a non-blocking poll. + attr_accessor wait_policy(): ::Temporalio::Api::Update::V1::WaitPolicy? + def has_wait_policy?: () -> bool + def clear_wait_policy: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + update_ref: (::Temporalio::Api::Update::V1::UpdateRef | ::Temporalio::Api::Update::V1::UpdateRef::init_map)?, + "update_ref" => (::Temporalio::Api::Update::V1::UpdateRef | ::Temporalio::Api::Update::V1::UpdateRef::init_map)?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + wait_policy: (::Temporalio::Api::Update::V1::WaitPolicy | ::Temporalio::Api::Update::V1::WaitPolicy::init_map)?, + "wait_policy" => (::Temporalio::Api::Update::V1::WaitPolicy | ::Temporalio::Api::Update::V1::WaitPolicy::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("update_ref" name) -> ::Temporalio::Api::Update::V1::UpdateRef? + | ("identity" name) -> ::String + | ("wait_policy" name) -> ::Temporalio::Api::Update::V1::WaitPolicy? + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("update_ref" name, ::Temporalio::Api::Update::V1::UpdateRef? value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + | ("wait_policy" name, ::Temporalio::Api::Update::V1::WaitPolicy? value) -> void + end + + class PollWorkflowExecutionUpdateResponse < ::Google::Protobuf::AbstractMessage + + # 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. + attr_accessor outcome(): ::Temporalio::Api::Update::V1::Outcome? + def has_outcome?: () -> bool + def clear_outcome: () -> void + + # 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. + attr_reader stage(): ::Temporalio::Api::Enums::V1::UpdateWorkflowExecutionLifecycleStage::names | ::Integer + attr_writer stage(): ::Temporalio::Api::Enums::V1::UpdateWorkflowExecutionLifecycleStage::names | ::Temporalio::Api::Enums::V1::UpdateWorkflowExecutionLifecycleStage::strings | ::Integer | ::Float + attr_reader stage_const(): ::Integer + def clear_stage: () -> void + + # Sufficient information to address this Update. + attr_accessor update_ref(): ::Temporalio::Api::Update::V1::UpdateRef? + def has_update_ref?: () -> bool + def clear_update_ref: () -> void + + type init_map = { + outcome: (::Temporalio::Api::Update::V1::Outcome | ::Temporalio::Api::Update::V1::Outcome::init_map)?, + "outcome" => (::Temporalio::Api::Update::V1::Outcome | ::Temporalio::Api::Update::V1::Outcome::init_map)?, + stage: (::Temporalio::Api::Enums::V1::UpdateWorkflowExecutionLifecycleStage::names | ::Temporalio::Api::Enums::V1::UpdateWorkflowExecutionLifecycleStage::strings | ::Integer | ::Float)?, + "stage" => (::Temporalio::Api::Enums::V1::UpdateWorkflowExecutionLifecycleStage::names | ::Temporalio::Api::Enums::V1::UpdateWorkflowExecutionLifecycleStage::strings | ::Integer | ::Float)?, + update_ref: (::Temporalio::Api::Update::V1::UpdateRef | ::Temporalio::Api::Update::V1::UpdateRef::init_map)?, + "update_ref" => (::Temporalio::Api::Update::V1::UpdateRef | ::Temporalio::Api::Update::V1::UpdateRef::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("outcome" name) -> ::Temporalio::Api::Update::V1::Outcome? + | ("stage" name) -> (::Temporalio::Api::Enums::V1::UpdateWorkflowExecutionLifecycleStage::names | ::Integer) + | ("update_ref" name) -> ::Temporalio::Api::Update::V1::UpdateRef? + + def []=: + ("outcome" name, ::Temporalio::Api::Update::V1::Outcome? value) -> void + | ("stage" name, (::Temporalio::Api::Enums::V1::UpdateWorkflowExecutionLifecycleStage::names | ::Temporalio::Api::Enums::V1::UpdateWorkflowExecutionLifecycleStage::strings | ::Integer | ::Float) value) -> void + | ("update_ref" name, ::Temporalio::Api::Update::V1::UpdateRef? value) -> void + end + + class PollNexusTaskQueueRequest < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # The identity of the client who initiated this request. + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + # 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. + attr_reader worker_instance_key(): ::String + attr_writer worker_instance_key(): ::String | ::Symbol + def clear_worker_instance_key: () -> void + + attr_accessor task_queue(): ::Temporalio::Api::TaskQueue::V1::TaskQueue? + def has_task_queue?: () -> bool + def clear_task_queue: () -> void + + # 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 + attr_accessor worker_version_capabilities(): ::Temporalio::Api::Common::V1::WorkerVersionCapabilities? + def has_worker_version_capabilities?: () -> bool + def clear_worker_version_capabilities: () -> void + + # Worker deployment options that user has set in the worker. + attr_accessor deployment_options(): ::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions? + def has_deployment_options?: () -> bool + def clear_deployment_options: () -> void + + # Worker info to be sent to the server. + attr_accessor worker_heartbeat(): ::Google::Protobuf::RepeatedField + def clear_worker_heartbeat: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + worker_instance_key: (::String | ::Symbol)?, + "worker_instance_key" => (::String | ::Symbol)?, + task_queue: (::Temporalio::Api::TaskQueue::V1::TaskQueue | ::Temporalio::Api::TaskQueue::V1::TaskQueue::init_map)?, + "task_queue" => (::Temporalio::Api::TaskQueue::V1::TaskQueue | ::Temporalio::Api::TaskQueue::V1::TaskQueue::init_map)?, + worker_version_capabilities: (::Temporalio::Api::Common::V1::WorkerVersionCapabilities | ::Temporalio::Api::Common::V1::WorkerVersionCapabilities::init_map)?, + "worker_version_capabilities" => (::Temporalio::Api::Common::V1::WorkerVersionCapabilities | ::Temporalio::Api::Common::V1::WorkerVersionCapabilities::init_map)?, + deployment_options: (::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions | ::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions::init_map)?, + "deployment_options" => (::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions | ::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions::init_map)?, + worker_heartbeat: ::Array[::Temporalio::Api::Worker::V1::WorkerHeartbeat]?, + "worker_heartbeat" => ::Array[::Temporalio::Api::Worker::V1::WorkerHeartbeat]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("identity" name) -> ::String + | ("worker_instance_key" name) -> ::String + | ("task_queue" name) -> ::Temporalio::Api::TaskQueue::V1::TaskQueue? + | ("worker_version_capabilities" name) -> ::Temporalio::Api::Common::V1::WorkerVersionCapabilities? + | ("deployment_options" name) -> ::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions? + | ("worker_heartbeat" name) -> ::Google::Protobuf::RepeatedField + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + | ("worker_instance_key" name, (::String | ::Symbol) value) -> void + | ("task_queue" name, ::Temporalio::Api::TaskQueue::V1::TaskQueue? value) -> void + | ("worker_version_capabilities" name, ::Temporalio::Api::Common::V1::WorkerVersionCapabilities? value) -> void + | ("deployment_options" name, ::Temporalio::Api::Deployment::V1::WorkerDeploymentOptions? value) -> void + | ("worker_heartbeat" name, ::Google::Protobuf::RepeatedField value) -> void + end + + class PollNexusTaskQueueResponse < ::Google::Protobuf::AbstractMessage + + # An opaque unique identifier for this task for correlating a completion request the embedded request. + attr_accessor task_token(): ::String + def clear_task_token: () -> void + + # Embedded request as translated from the incoming frontend request. + attr_accessor request(): ::Temporalio::Api::Nexus::V1::Request? + def has_request?: () -> bool + def clear_request: () -> void + + # Server-advised information the SDK may use to adjust its poller count. + attr_accessor poller_scaling_decision(): ::Temporalio::Api::TaskQueue::V1::PollerScalingDecision? + def has_poller_scaling_decision?: () -> bool + def clear_poller_scaling_decision: () -> void + + type init_map = { + task_token: ::String?, + "task_token" => ::String?, + request: (::Temporalio::Api::Nexus::V1::Request | ::Temporalio::Api::Nexus::V1::Request::init_map)?, + "request" => (::Temporalio::Api::Nexus::V1::Request | ::Temporalio::Api::Nexus::V1::Request::init_map)?, + poller_scaling_decision: (::Temporalio::Api::TaskQueue::V1::PollerScalingDecision | ::Temporalio::Api::TaskQueue::V1::PollerScalingDecision::init_map)?, + "poller_scaling_decision" => (::Temporalio::Api::TaskQueue::V1::PollerScalingDecision | ::Temporalio::Api::TaskQueue::V1::PollerScalingDecision::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("task_token" name) -> ::String + | ("request" name) -> ::Temporalio::Api::Nexus::V1::Request? + | ("poller_scaling_decision" name) -> ::Temporalio::Api::TaskQueue::V1::PollerScalingDecision? + + def []=: + ("task_token" name, ::String value) -> void + | ("request" name, ::Temporalio::Api::Nexus::V1::Request? value) -> void + | ("poller_scaling_decision" name, ::Temporalio::Api::TaskQueue::V1::PollerScalingDecision? value) -> void + end + + class RespondNexusTaskCompletedRequest < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # The identity of the client who initiated this request. + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + # A unique identifier for this task as received via a poll response. + attr_accessor task_token(): ::String + def clear_task_token: () -> void + + # Embedded response to be translated into a frontend response. + attr_accessor response(): ::Temporalio::Api::Nexus::V1::Response? + def has_response?: () -> bool + def clear_response: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + task_token: ::String?, + "task_token" => ::String?, + response: (::Temporalio::Api::Nexus::V1::Response | ::Temporalio::Api::Nexus::V1::Response::init_map)?, + "response" => (::Temporalio::Api::Nexus::V1::Response | ::Temporalio::Api::Nexus::V1::Response::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("identity" name) -> ::String + | ("task_token" name) -> ::String + | ("response" name) -> ::Temporalio::Api::Nexus::V1::Response? + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + | ("task_token" name, ::String value) -> void + | ("response" name, ::Temporalio::Api::Nexus::V1::Response? value) -> void + end + + class RespondNexusTaskCompletedResponse < ::Google::Protobuf::AbstractMessage + + type init_map = { + } + + def initialize: (?init_map initial_value) -> void + end + + class RespondNexusTaskFailedRequest < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # The identity of the client who initiated this request. + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + # A unique identifier for this task. + attr_accessor task_token(): ::String + def clear_task_token: () -> void + + # Deprecated. Use the failure field instead. + # @deprecated + attr_accessor error(): ::Temporalio::Api::Nexus::V1::HandlerError? + def has_error?: () -> bool + def clear_error: () -> void + + # The error the handler failed with. Must contain a NexusHandlerFailureInfo object. + attr_accessor failure(): ::Temporalio::Api::Failure::V1::Failure? + def has_failure?: () -> bool + def clear_failure: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + task_token: ::String?, + "task_token" => ::String?, + error: (::Temporalio::Api::Nexus::V1::HandlerError | ::Temporalio::Api::Nexus::V1::HandlerError::init_map)?, + "error" => (::Temporalio::Api::Nexus::V1::HandlerError | ::Temporalio::Api::Nexus::V1::HandlerError::init_map)?, + failure: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + "failure" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("identity" name) -> ::String + | ("task_token" name) -> ::String + | ("error" name) -> ::Temporalio::Api::Nexus::V1::HandlerError? + | ("failure" name) -> ::Temporalio::Api::Failure::V1::Failure? + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + | ("task_token" name, ::String value) -> void + | ("error" name, ::Temporalio::Api::Nexus::V1::HandlerError? value) -> void + | ("failure" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void + end + + class RespondNexusTaskFailedResponse < ::Google::Protobuf::AbstractMessage + + type init_map = { + } + + def initialize: (?init_map initial_value) -> void + end + + class ExecuteMultiOperationRequest < ::Google::Protobuf::AbstractMessage + class Operation < ::Google::Protobuf::AbstractMessage + + # Additional restrictions: + # - setting `cron_schedule` is invalid + # - setting `request_eager_execution` is invalid + # - setting `workflow_start_delay` is invalid + attr_accessor start_workflow(): ::Temporalio::Api::WorkflowService::V1::StartWorkflowExecutionRequest? + def has_start_workflow?: () -> bool + def clear_start_workflow: () -> void + + # Additional restrictions: + # - setting `first_execution_run_id` is invalid + # - setting `workflow_execution.run_id` is invalid + attr_accessor update_workflow(): ::Temporalio::Api::WorkflowService::V1::UpdateWorkflowExecutionRequest? + def has_update_workflow?: () -> bool + def clear_update_workflow: () -> void + + attr_reader operation(): (::Temporalio::Api::WorkflowService::V1::StartWorkflowExecutionRequest | ::Temporalio::Api::WorkflowService::V1::UpdateWorkflowExecutionRequest)? + def has_operation?: () -> bool + def clear_operation: () -> void + + type init_map = { + start_workflow: (::Temporalio::Api::WorkflowService::V1::StartWorkflowExecutionRequest | ::Temporalio::Api::WorkflowService::V1::StartWorkflowExecutionRequest::init_map)?, + "start_workflow" => (::Temporalio::Api::WorkflowService::V1::StartWorkflowExecutionRequest | ::Temporalio::Api::WorkflowService::V1::StartWorkflowExecutionRequest::init_map)?, + update_workflow: (::Temporalio::Api::WorkflowService::V1::UpdateWorkflowExecutionRequest | ::Temporalio::Api::WorkflowService::V1::UpdateWorkflowExecutionRequest::init_map)?, + "update_workflow" => (::Temporalio::Api::WorkflowService::V1::UpdateWorkflowExecutionRequest | ::Temporalio::Api::WorkflowService::V1::UpdateWorkflowExecutionRequest::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("start_workflow" name) -> ::Temporalio::Api::WorkflowService::V1::StartWorkflowExecutionRequest? + | ("update_workflow" name) -> ::Temporalio::Api::WorkflowService::V1::UpdateWorkflowExecutionRequest? + + def []=: + ("start_workflow" name, ::Temporalio::Api::WorkflowService::V1::StartWorkflowExecutionRequest? value) -> void + | ("update_workflow" name, ::Temporalio::Api::WorkflowService::V1::UpdateWorkflowExecutionRequest? value) -> void + end + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # 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. + attr_accessor operations(): ::Google::Protobuf::RepeatedField + def clear_operations: () -> void + + # Resource ID for routing. Should match operations[0].start_workflow.workflow_id + attr_reader resource_id(): ::String + attr_writer resource_id(): ::String | ::Symbol + def clear_resource_id: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + operations: ::Array[::Temporalio::Api::WorkflowService::V1::ExecuteMultiOperationRequest::Operation]?, + "operations" => ::Array[::Temporalio::Api::WorkflowService::V1::ExecuteMultiOperationRequest::Operation]?, + resource_id: (::String | ::Symbol)?, + "resource_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("operations" name) -> ::Google::Protobuf::RepeatedField + | ("resource_id" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("operations" name, ::Google::Protobuf::RepeatedField value) -> void + | ("resource_id" name, (::String | ::Symbol) value) -> void + end + + # 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. + class ExecuteMultiOperationResponse < ::Google::Protobuf::AbstractMessage + class Response < ::Google::Protobuf::AbstractMessage + + attr_accessor start_workflow(): ::Temporalio::Api::WorkflowService::V1::StartWorkflowExecutionResponse? + def has_start_workflow?: () -> bool + def clear_start_workflow: () -> void + + attr_accessor update_workflow(): ::Temporalio::Api::WorkflowService::V1::UpdateWorkflowExecutionResponse? + def has_update_workflow?: () -> bool + def clear_update_workflow: () -> void + + attr_reader response(): (::Temporalio::Api::WorkflowService::V1::StartWorkflowExecutionResponse | ::Temporalio::Api::WorkflowService::V1::UpdateWorkflowExecutionResponse)? + def has_response?: () -> bool + def clear_response: () -> void + + type init_map = { + start_workflow: (::Temporalio::Api::WorkflowService::V1::StartWorkflowExecutionResponse | ::Temporalio::Api::WorkflowService::V1::StartWorkflowExecutionResponse::init_map)?, + "start_workflow" => (::Temporalio::Api::WorkflowService::V1::StartWorkflowExecutionResponse | ::Temporalio::Api::WorkflowService::V1::StartWorkflowExecutionResponse::init_map)?, + update_workflow: (::Temporalio::Api::WorkflowService::V1::UpdateWorkflowExecutionResponse | ::Temporalio::Api::WorkflowService::V1::UpdateWorkflowExecutionResponse::init_map)?, + "update_workflow" => (::Temporalio::Api::WorkflowService::V1::UpdateWorkflowExecutionResponse | ::Temporalio::Api::WorkflowService::V1::UpdateWorkflowExecutionResponse::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("start_workflow" name) -> ::Temporalio::Api::WorkflowService::V1::StartWorkflowExecutionResponse? + | ("update_workflow" name) -> ::Temporalio::Api::WorkflowService::V1::UpdateWorkflowExecutionResponse? + + def []=: + ("start_workflow" name, ::Temporalio::Api::WorkflowService::V1::StartWorkflowExecutionResponse? value) -> void + | ("update_workflow" name, ::Temporalio::Api::WorkflowService::V1::UpdateWorkflowExecutionResponse? value) -> void + end + + attr_accessor responses(): ::Google::Protobuf::RepeatedField + def clear_responses: () -> void + + type init_map = { + responses: ::Array[::Temporalio::Api::WorkflowService::V1::ExecuteMultiOperationResponse::Response]?, + "responses" => ::Array[::Temporalio::Api::WorkflowService::V1::ExecuteMultiOperationResponse::Response]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("responses" name) -> ::Google::Protobuf::RepeatedField + + def []=: + ("responses" name, ::Google::Protobuf::RepeatedField value) -> void + end + + # NOTE: keep in sync with temporal.api.batch.v1.BatchOperationUpdateActivityOptions + class UpdateActivityOptionsRequest < ::Google::Protobuf::AbstractMessage + + # Namespace of the workflow which scheduled this activity + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # Execution info of the workflow which scheduled this activity + attr_accessor execution(): ::Temporalio::Api::Common::V1::WorkflowExecution? + def has_execution?: () -> bool + def clear_execution: () -> void + + # The identity of the client who initiated this request + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + # Activity options. Partial updates are accepted and controlled by update_mask + attr_accessor activity_options(): ::Temporalio::Api::Activity::V1::ActivityOptions? + def has_activity_options?: () -> bool + def clear_activity_options: () -> void + + # Controls which fields from `activity_options` will be applied + attr_accessor update_mask(): ::Google::Protobuf::FieldMask? + def has_update_mask?: () -> bool + def clear_update_mask: () -> void + + # Only activity with this ID will be updated. + attr_reader id(): ::String + attr_writer id(): (::String | ::Symbol)? + def has_id?: () -> bool + def clear_id: () -> void + + # Update all running activities of this type. + attr_reader type(): ::String + attr_writer type(): (::String | ::Symbol)? + def has_type?: () -> bool + def clear_type: () -> void + + # Update all running activities. + attr_reader match_all(): bool + attr_writer match_all(): bool? + def has_match_all?: () -> bool + def clear_match_all: () -> void + + # 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. + attr_accessor restore_original(): bool + def clear_restore_original: () -> void + + # either activity id, activity type or update_all must be provided + attr_reader activity(): (::String | bool)? + def has_activity?: () -> bool + def clear_activity: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + execution: (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + "execution" => (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + activity_options: (::Temporalio::Api::Activity::V1::ActivityOptions | ::Temporalio::Api::Activity::V1::ActivityOptions::init_map)?, + "activity_options" => (::Temporalio::Api::Activity::V1::ActivityOptions | ::Temporalio::Api::Activity::V1::ActivityOptions::init_map)?, + update_mask: (::Google::Protobuf::FieldMask | ::Google::Protobuf::FieldMask)?, + "update_mask" => (::Google::Protobuf::FieldMask | ::Google::Protobuf::FieldMask)?, + id: (::String | ::Symbol)?, + "id" => (::String | ::Symbol)?, + type: (::String | ::Symbol)?, + "type" => (::String | ::Symbol)?, + match_all: bool?, + "match_all" => bool?, + restore_original: bool?, + "restore_original" => bool?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("execution" name) -> ::Temporalio::Api::Common::V1::WorkflowExecution? + | ("identity" name) -> ::String + | ("activity_options" name) -> ::Temporalio::Api::Activity::V1::ActivityOptions? + | ("update_mask" name) -> ::Google::Protobuf::FieldMask? + | ("id" name) -> ::String + | ("type" name) -> ::String + | ("match_all" name) -> bool + | ("restore_original" name) -> bool + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("execution" name, ::Temporalio::Api::Common::V1::WorkflowExecution? value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + | ("activity_options" name, ::Temporalio::Api::Activity::V1::ActivityOptions? value) -> void + | ("update_mask" name, ::Google::Protobuf::FieldMask? value) -> void + | ("id" name, ((::String | ::Symbol)?) value) -> void + | ("type" name, ((::String | ::Symbol)?) value) -> void + | ("match_all" name, bool? value) -> void + | ("restore_original" name, bool value) -> void + end + + class UpdateActivityOptionsResponse < ::Google::Protobuf::AbstractMessage + + # Activity options after an update + attr_accessor activity_options(): ::Temporalio::Api::Activity::V1::ActivityOptions? + def has_activity_options?: () -> bool + def clear_activity_options: () -> void + + type init_map = { + activity_options: (::Temporalio::Api::Activity::V1::ActivityOptions | ::Temporalio::Api::Activity::V1::ActivityOptions::init_map)?, + "activity_options" => (::Temporalio::Api::Activity::V1::ActivityOptions | ::Temporalio::Api::Activity::V1::ActivityOptions::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("activity_options" name) -> ::Temporalio::Api::Activity::V1::ActivityOptions? + + def []=: + ("activity_options" name, ::Temporalio::Api::Activity::V1::ActivityOptions? value) -> void + end + + class PauseActivityRequest < ::Google::Protobuf::AbstractMessage + + # Namespace of the workflow which scheduled this activity. + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # Execution info of the workflow which scheduled this activity + attr_accessor execution(): ::Temporalio::Api::Common::V1::WorkflowExecution? + def has_execution?: () -> bool + def clear_execution: () -> void + + # The identity of the client who initiated this request. + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + # Only the activity with this ID will be paused. + attr_reader id(): ::String + attr_writer id(): (::String | ::Symbol)? + def has_id?: () -> bool + def clear_id: () -> void + + # Pause all running activities of this type. + # Note: Experimental - the behavior of pause by activity type might change in a future release. + attr_reader type(): ::String + attr_writer type(): (::String | ::Symbol)? + def has_type?: () -> bool + def clear_type: () -> void + + # Reason to pause the activity. + attr_reader reason(): ::String + attr_writer reason(): ::String | ::Symbol + def clear_reason: () -> void + + # either activity id or activity type must be provided + attr_reader activity(): ::String? + def has_activity?: () -> bool + def clear_activity: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + execution: (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + "execution" => (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + id: (::String | ::Symbol)?, + "id" => (::String | ::Symbol)?, + type: (::String | ::Symbol)?, + "type" => (::String | ::Symbol)?, + reason: (::String | ::Symbol)?, + "reason" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("execution" name) -> ::Temporalio::Api::Common::V1::WorkflowExecution? + | ("identity" name) -> ::String + | ("id" name) -> ::String + | ("type" name) -> ::String + | ("reason" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("execution" name, ::Temporalio::Api::Common::V1::WorkflowExecution? value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + | ("id" name, ((::String | ::Symbol)?) value) -> void + | ("type" name, ((::String | ::Symbol)?) value) -> void + | ("reason" name, (::String | ::Symbol) value) -> void + end + + class PauseActivityResponse < ::Google::Protobuf::AbstractMessage + + type init_map = { + } + + def initialize: (?init_map initial_value) -> void + end + + class UnpauseActivityRequest < ::Google::Protobuf::AbstractMessage + + # Namespace of the workflow which scheduled this activity. + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # Execution info of the workflow which scheduled this activity + attr_accessor execution(): ::Temporalio::Api::Common::V1::WorkflowExecution? + def has_execution?: () -> bool + def clear_execution: () -> void + + # The identity of the client who initiated this request. + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + # Only the activity with this ID will be unpaused. + attr_reader id(): ::String + attr_writer id(): (::String | ::Symbol)? + def has_id?: () -> bool + def clear_id: () -> void + + # Unpause all running activities with of this type. + attr_reader type(): ::String + attr_writer type(): (::String | ::Symbol)? + def has_type?: () -> bool + def clear_type: () -> void + + # Unpause all running activities. + attr_reader unpause_all(): bool + attr_writer unpause_all(): bool? + def has_unpause_all?: () -> bool + def clear_unpause_all: () -> void + + # Providing this flag will also reset the number of attempts. + attr_accessor reset_attempts(): bool + def clear_reset_attempts: () -> void + + # Providing this flag will also reset the heartbeat details. + attr_accessor reset_heartbeat(): bool + def clear_reset_heartbeat: () -> void + + # If set, the activity will start at a random time within the specified jitter duration. + attr_reader jitter(): ::Google::Protobuf::Duration? + attr_writer jitter(): (::Google::Protobuf::Duration | ::int)? + def has_jitter?: () -> bool + def clear_jitter: () -> void + + # either activity id or activity type must be provided + attr_reader activity(): (::String | bool)? + def has_activity?: () -> bool + def clear_activity: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + execution: (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + "execution" => (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + id: (::String | ::Symbol)?, + "id" => (::String | ::Symbol)?, + type: (::String | ::Symbol)?, + "type" => (::String | ::Symbol)?, + unpause_all: bool?, + "unpause_all" => bool?, + reset_attempts: bool?, + "reset_attempts" => bool?, + reset_heartbeat: bool?, + "reset_heartbeat" => bool?, + jitter: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "jitter" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("execution" name) -> ::Temporalio::Api::Common::V1::WorkflowExecution? + | ("identity" name) -> ::String + | ("id" name) -> ::String + | ("type" name) -> ::String + | ("unpause_all" name) -> bool + | ("reset_attempts" name) -> bool + | ("reset_heartbeat" name) -> bool + | ("jitter" name) -> ::Google::Protobuf::Duration? + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("execution" name, ::Temporalio::Api::Common::V1::WorkflowExecution? value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + | ("id" name, ((::String | ::Symbol)?) value) -> void + | ("type" name, ((::String | ::Symbol)?) value) -> void + | ("unpause_all" name, bool? value) -> void + | ("reset_attempts" name, bool value) -> void + | ("reset_heartbeat" name, bool value) -> void + | ("jitter" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + end + + class UnpauseActivityResponse < ::Google::Protobuf::AbstractMessage + + type init_map = { + } + + def initialize: (?init_map initial_value) -> void + end + + # NOTE: keep in sync with temporal.api.batch.v1.BatchOperationResetActivities + class ResetActivityRequest < ::Google::Protobuf::AbstractMessage + + # Namespace of the workflow which scheduled this activity. + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # Execution info of the workflow which scheduled this activity + attr_accessor execution(): ::Temporalio::Api::Common::V1::WorkflowExecution? + def has_execution?: () -> bool + def clear_execution: () -> void + + # The identity of the client who initiated this request. + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + # Only activity with this ID will be reset. + attr_reader id(): ::String + attr_writer id(): (::String | ::Symbol)? + def has_id?: () -> bool + def clear_id: () -> void + + # Reset all running activities with of this type. + attr_reader type(): ::String + attr_writer type(): (::String | ::Symbol)? + def has_type?: () -> bool + def clear_type: () -> void + + # Reset all running activities. + attr_reader match_all(): bool + attr_writer match_all(): bool? + def has_match_all?: () -> bool + def clear_match_all: () -> void + + # Indicates that activity should reset heartbeat details. + # This flag will be applied only to the new instance of the activity. + attr_accessor reset_heartbeat(): bool + def clear_reset_heartbeat: () -> void + + # If activity is paused, it will remain paused after reset + attr_accessor keep_paused(): bool + def clear_keep_paused: () -> void + + # 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) + attr_reader jitter(): ::Google::Protobuf::Duration? + attr_writer jitter(): (::Google::Protobuf::Duration | ::int)? + def has_jitter?: () -> bool + def clear_jitter: () -> void + + # 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. + attr_accessor restore_original_options(): bool + def clear_restore_original_options: () -> void + + # either activity id, activity type or update_all must be provided + attr_reader activity(): (::String | bool)? + def has_activity?: () -> bool + def clear_activity: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + execution: (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + "execution" => (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + id: (::String | ::Symbol)?, + "id" => (::String | ::Symbol)?, + type: (::String | ::Symbol)?, + "type" => (::String | ::Symbol)?, + match_all: bool?, + "match_all" => bool?, + reset_heartbeat: bool?, + "reset_heartbeat" => bool?, + keep_paused: bool?, + "keep_paused" => bool?, + jitter: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "jitter" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + restore_original_options: bool?, + "restore_original_options" => bool?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("execution" name) -> ::Temporalio::Api::Common::V1::WorkflowExecution? + | ("identity" name) -> ::String + | ("id" name) -> ::String + | ("type" name) -> ::String + | ("match_all" name) -> bool + | ("reset_heartbeat" name) -> bool + | ("keep_paused" name) -> bool + | ("jitter" name) -> ::Google::Protobuf::Duration? + | ("restore_original_options" name) -> bool + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("execution" name, ::Temporalio::Api::Common::V1::WorkflowExecution? value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + | ("id" name, ((::String | ::Symbol)?) value) -> void + | ("type" name, ((::String | ::Symbol)?) value) -> void + | ("match_all" name, bool? value) -> void + | ("reset_heartbeat" name, bool value) -> void + | ("keep_paused" name, bool value) -> void + | ("jitter" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("restore_original_options" name, bool value) -> void + end + + class ResetActivityResponse < ::Google::Protobuf::AbstractMessage + + type init_map = { + } + + def initialize: (?init_map initial_value) -> void + end + + # Keep the parameters in sync with: + # - temporal.api.batch.v1.BatchOperationUpdateWorkflowExecutionOptions. + # - temporal.api.workflow.v1.PostResetOperation.UpdateWorkflowOptions. + class UpdateWorkflowExecutionOptionsRequest < ::Google::Protobuf::AbstractMessage + + # The namespace name of the target Workflow. + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # 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" --) + attr_accessor workflow_execution(): ::Temporalio::Api::Common::V1::WorkflowExecution? + def has_workflow_execution?: () -> bool + def clear_workflow_execution: () -> void + + # Workflow Execution options. Partial updates are accepted and controlled by update_mask. + attr_accessor workflow_execution_options(): ::Temporalio::Api::Workflow::V1::WorkflowExecutionOptions? + def has_workflow_execution_options?: () -> bool + def clear_workflow_execution_options: () -> void + + # 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. + attr_accessor update_mask(): ::Google::Protobuf::FieldMask? + def has_update_mask?: () -> bool + def clear_update_mask: () -> void + + # Optional. The identity of the client who initiated this request. + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + workflow_execution: (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + "workflow_execution" => (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + workflow_execution_options: (::Temporalio::Api::Workflow::V1::WorkflowExecutionOptions | ::Temporalio::Api::Workflow::V1::WorkflowExecutionOptions::init_map)?, + "workflow_execution_options" => (::Temporalio::Api::Workflow::V1::WorkflowExecutionOptions | ::Temporalio::Api::Workflow::V1::WorkflowExecutionOptions::init_map)?, + update_mask: (::Google::Protobuf::FieldMask | ::Google::Protobuf::FieldMask)?, + "update_mask" => (::Google::Protobuf::FieldMask | ::Google::Protobuf::FieldMask)?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("workflow_execution" name) -> ::Temporalio::Api::Common::V1::WorkflowExecution? + | ("workflow_execution_options" name) -> ::Temporalio::Api::Workflow::V1::WorkflowExecutionOptions? + | ("update_mask" name) -> ::Google::Protobuf::FieldMask? + | ("identity" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("workflow_execution" name, ::Temporalio::Api::Common::V1::WorkflowExecution? value) -> void + | ("workflow_execution_options" name, ::Temporalio::Api::Workflow::V1::WorkflowExecutionOptions? value) -> void + | ("update_mask" name, ::Google::Protobuf::FieldMask? value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + end + + class UpdateWorkflowExecutionOptionsResponse < ::Google::Protobuf::AbstractMessage + + # Workflow Execution options after update. + attr_accessor workflow_execution_options(): ::Temporalio::Api::Workflow::V1::WorkflowExecutionOptions? + def has_workflow_execution_options?: () -> bool + def clear_workflow_execution_options: () -> void + + type init_map = { + workflow_execution_options: (::Temporalio::Api::Workflow::V1::WorkflowExecutionOptions | ::Temporalio::Api::Workflow::V1::WorkflowExecutionOptions::init_map)?, + "workflow_execution_options" => (::Temporalio::Api::Workflow::V1::WorkflowExecutionOptions | ::Temporalio::Api::Workflow::V1::WorkflowExecutionOptions::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("workflow_execution_options" name) -> ::Temporalio::Api::Workflow::V1::WorkflowExecutionOptions? + + def []=: + ("workflow_execution_options" name, ::Temporalio::Api::Workflow::V1::WorkflowExecutionOptions? value) -> void + end + + # [cleanup-wv-pre-release] Pre-release deployment APIs, clean up later + class DescribeDeploymentRequest < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_accessor deployment(): ::Temporalio::Api::Deployment::V1::Deployment? + def has_deployment?: () -> bool + def clear_deployment: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + deployment: (::Temporalio::Api::Deployment::V1::Deployment | ::Temporalio::Api::Deployment::V1::Deployment::init_map)?, + "deployment" => (::Temporalio::Api::Deployment::V1::Deployment | ::Temporalio::Api::Deployment::V1::Deployment::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("deployment" name) -> ::Temporalio::Api::Deployment::V1::Deployment? + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("deployment" name, ::Temporalio::Api::Deployment::V1::Deployment? value) -> void + end + + # [cleanup-wv-pre-release] Pre-release deployment APIs, clean up later + class DescribeDeploymentResponse < ::Google::Protobuf::AbstractMessage + + attr_accessor deployment_info(): ::Temporalio::Api::Deployment::V1::DeploymentInfo? + def has_deployment_info?: () -> bool + def clear_deployment_info: () -> void + + type init_map = { + deployment_info: (::Temporalio::Api::Deployment::V1::DeploymentInfo | ::Temporalio::Api::Deployment::V1::DeploymentInfo::init_map)?, + "deployment_info" => (::Temporalio::Api::Deployment::V1::DeploymentInfo | ::Temporalio::Api::Deployment::V1::DeploymentInfo::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("deployment_info" name) -> ::Temporalio::Api::Deployment::V1::DeploymentInfo? + + def []=: + ("deployment_info" name, ::Temporalio::Api::Deployment::V1::DeploymentInfo? value) -> void + end + + class DescribeWorkerDeploymentVersionRequest < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # Deprecated. Use `deployment_version`. + # @deprecated + attr_reader version(): ::String + attr_writer version(): ::String | ::Symbol + def clear_version: () -> void + + # Required. + attr_accessor deployment_version(): ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? + def has_deployment_version?: () -> bool + def clear_deployment_version: () -> void + + # Report stats for task queues which have been polled by this version. + attr_accessor report_task_queue_stats(): bool + def clear_report_task_queue_stats: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + version: (::String | ::Symbol)?, + "version" => (::String | ::Symbol)?, + deployment_version: (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?, + "deployment_version" => (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?, + report_task_queue_stats: bool?, + "report_task_queue_stats" => bool?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("version" name) -> ::String + | ("deployment_version" name) -> ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? + | ("report_task_queue_stats" name) -> bool + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("version" name, (::String | ::Symbol) value) -> void + | ("deployment_version" name, ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? value) -> void + | ("report_task_queue_stats" name, bool value) -> void + end + + class DescribeWorkerDeploymentVersionResponse < ::Google::Protobuf::AbstractMessage + # (-- api-linter: core::0123::resource-annotation=disabled --) + class VersionTaskQueue < ::Google::Protobuf::AbstractMessage + + attr_reader name(): ::String + attr_writer name(): ::String | ::Symbol + def clear_name: () -> void + + attr_reader type(): ::Temporalio::Api::Enums::V1::TaskQueueType::names | ::Integer + attr_writer type(): ::Temporalio::Api::Enums::V1::TaskQueueType::names | ::Temporalio::Api::Enums::V1::TaskQueueType::strings | ::Integer | ::Float + attr_reader type_const(): ::Integer + def clear_type: () -> void + + # Only set if `report_task_queue_stats` is set on the request. + attr_accessor stats(): ::Temporalio::Api::TaskQueue::V1::TaskQueueStats? + def has_stats?: () -> bool + def clear_stats: () -> void + + # 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. --) + attr_accessor stats_by_priority_key(): ::Google::Protobuf::Map[::Integer, ::Temporalio::Api::TaskQueue::V1::TaskQueueStats] + def clear_stats_by_priority_key: () -> void + + type init_map = { + name: (::String | ::Symbol)?, + "name" => (::String | ::Symbol)?, + type: (::Temporalio::Api::Enums::V1::TaskQueueType::names | ::Temporalio::Api::Enums::V1::TaskQueueType::strings | ::Integer | ::Float)?, + "type" => (::Temporalio::Api::Enums::V1::TaskQueueType::names | ::Temporalio::Api::Enums::V1::TaskQueueType::strings | ::Integer | ::Float)?, + stats: (::Temporalio::Api::TaskQueue::V1::TaskQueueStats | ::Temporalio::Api::TaskQueue::V1::TaskQueueStats::init_map)?, + "stats" => (::Temporalio::Api::TaskQueue::V1::TaskQueueStats | ::Temporalio::Api::TaskQueue::V1::TaskQueueStats::init_map)?, + stats_by_priority_key: ::Hash[::Integer | ::Float, ::Temporalio::Api::TaskQueue::V1::TaskQueueStats]?, + "stats_by_priority_key" => ::Hash[::Integer | ::Float, ::Temporalio::Api::TaskQueue::V1::TaskQueueStats]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("name" name) -> ::String + | ("type" name) -> (::Temporalio::Api::Enums::V1::TaskQueueType::names | ::Integer) + | ("stats" name) -> ::Temporalio::Api::TaskQueue::V1::TaskQueueStats? + | ("stats_by_priority_key" name) -> (::Google::Protobuf::Map[::Integer, ::Temporalio::Api::TaskQueue::V1::TaskQueueStats]) + + def []=: + ("name" name, (::String | ::Symbol) value) -> void + | ("type" name, (::Temporalio::Api::Enums::V1::TaskQueueType::names | ::Temporalio::Api::Enums::V1::TaskQueueType::strings | ::Integer | ::Float) value) -> void + | ("stats" name, ::Temporalio::Api::TaskQueue::V1::TaskQueueStats? value) -> void + | ("stats_by_priority_key" name, (::Google::Protobuf::Map[::Integer, ::Temporalio::Api::TaskQueue::V1::TaskQueueStats]) value) -> void + end + + attr_accessor worker_deployment_version_info(): ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersionInfo? + def has_worker_deployment_version_info?: () -> bool + def clear_worker_deployment_version_info: () -> void + + # All the Task Queues that have ever polled from this Deployment version. + attr_accessor version_task_queues(): ::Google::Protobuf::RepeatedField + def clear_version_task_queues: () -> void + + type init_map = { + worker_deployment_version_info: (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersionInfo | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersionInfo::init_map)?, + "worker_deployment_version_info" => (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersionInfo | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersionInfo::init_map)?, + version_task_queues: ::Array[::Temporalio::Api::WorkflowService::V1::DescribeWorkerDeploymentVersionResponse::VersionTaskQueue]?, + "version_task_queues" => ::Array[::Temporalio::Api::WorkflowService::V1::DescribeWorkerDeploymentVersionResponse::VersionTaskQueue]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("worker_deployment_version_info" name) -> ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersionInfo? + | ("version_task_queues" name) -> ::Google::Protobuf::RepeatedField + + def []=: + ("worker_deployment_version_info" name, ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersionInfo? value) -> void + | ("version_task_queues" name, ::Google::Protobuf::RepeatedField value) -> void + end + + class DescribeWorkerDeploymentRequest < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_reader deployment_name(): ::String + attr_writer deployment_name(): ::String | ::Symbol + def clear_deployment_name: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + deployment_name: (::String | ::Symbol)?, + "deployment_name" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("deployment_name" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("deployment_name" name, (::String | ::Symbol) value) -> void + end + + class DescribeWorkerDeploymentResponse < ::Google::Protobuf::AbstractMessage + + # 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. + attr_accessor conflict_token(): ::String + def clear_conflict_token: () -> void + + attr_accessor worker_deployment_info(): ::Temporalio::Api::Deployment::V1::WorkerDeploymentInfo? + def has_worker_deployment_info?: () -> bool + def clear_worker_deployment_info: () -> void + + type init_map = { + conflict_token: ::String?, + "conflict_token" => ::String?, + worker_deployment_info: (::Temporalio::Api::Deployment::V1::WorkerDeploymentInfo | ::Temporalio::Api::Deployment::V1::WorkerDeploymentInfo::init_map)?, + "worker_deployment_info" => (::Temporalio::Api::Deployment::V1::WorkerDeploymentInfo | ::Temporalio::Api::Deployment::V1::WorkerDeploymentInfo::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("conflict_token" name) -> ::String + | ("worker_deployment_info" name) -> ::Temporalio::Api::Deployment::V1::WorkerDeploymentInfo? + + def []=: + ("conflict_token" name, ::String value) -> void + | ("worker_deployment_info" name, ::Temporalio::Api::Deployment::V1::WorkerDeploymentInfo? value) -> void + end + + # [cleanup-wv-pre-release] Pre-release deployment APIs, clean up later + class ListDeploymentsRequest < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_reader page_size(): ::Integer + attr_writer page_size(): ::Integer | ::Float + def clear_page_size: () -> void + + attr_accessor next_page_token(): ::String + def clear_next_page_token: () -> void + + # Optional. Use to filter based on exact series name match. + attr_reader series_name(): ::String + attr_writer series_name(): ::String | ::Symbol + def clear_series_name: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + page_size: (::Integer | ::Float)?, + "page_size" => (::Integer | ::Float)?, + next_page_token: ::String?, + "next_page_token" => ::String?, + series_name: (::String | ::Symbol)?, + "series_name" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("page_size" name) -> ::Integer + | ("next_page_token" name) -> ::String + | ("series_name" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("page_size" name, (::Integer | ::Float) value) -> void + | ("next_page_token" name, ::String value) -> void + | ("series_name" name, (::String | ::Symbol) value) -> void + end + + # [cleanup-wv-pre-release] Pre-release deployment APIs, clean up later + class ListDeploymentsResponse < ::Google::Protobuf::AbstractMessage + + attr_accessor next_page_token(): ::String + def clear_next_page_token: () -> void + + attr_accessor deployments(): ::Google::Protobuf::RepeatedField + def clear_deployments: () -> void + + type init_map = { + next_page_token: ::String?, + "next_page_token" => ::String?, + deployments: ::Array[::Temporalio::Api::Deployment::V1::DeploymentListInfo]?, + "deployments" => ::Array[::Temporalio::Api::Deployment::V1::DeploymentListInfo]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("next_page_token" name) -> ::String + | ("deployments" name) -> ::Google::Protobuf::RepeatedField + + def []=: + ("next_page_token" name, ::String value) -> void + | ("deployments" name, ::Google::Protobuf::RepeatedField value) -> void + end + + # [cleanup-wv-pre-release] Pre-release deployment APIs, clean up later + class SetCurrentDeploymentRequest < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_accessor deployment(): ::Temporalio::Api::Deployment::V1::Deployment? + def has_deployment?: () -> bool + def clear_deployment: () -> void + + # Optional. The identity of the client who initiated this request. + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + # 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. + attr_accessor update_metadata(): ::Temporalio::Api::Deployment::V1::UpdateDeploymentMetadata? + def has_update_metadata?: () -> bool + def clear_update_metadata: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + deployment: (::Temporalio::Api::Deployment::V1::Deployment | ::Temporalio::Api::Deployment::V1::Deployment::init_map)?, + "deployment" => (::Temporalio::Api::Deployment::V1::Deployment | ::Temporalio::Api::Deployment::V1::Deployment::init_map)?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + update_metadata: (::Temporalio::Api::Deployment::V1::UpdateDeploymentMetadata | ::Temporalio::Api::Deployment::V1::UpdateDeploymentMetadata::init_map)?, + "update_metadata" => (::Temporalio::Api::Deployment::V1::UpdateDeploymentMetadata | ::Temporalio::Api::Deployment::V1::UpdateDeploymentMetadata::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("deployment" name) -> ::Temporalio::Api::Deployment::V1::Deployment? + | ("identity" name) -> ::String + | ("update_metadata" name) -> ::Temporalio::Api::Deployment::V1::UpdateDeploymentMetadata? + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("deployment" name, ::Temporalio::Api::Deployment::V1::Deployment? value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + | ("update_metadata" name, ::Temporalio::Api::Deployment::V1::UpdateDeploymentMetadata? value) -> void + end + + # [cleanup-wv-pre-release] Pre-release deployment APIs, clean up later + class SetCurrentDeploymentResponse < ::Google::Protobuf::AbstractMessage + + attr_accessor current_deployment_info(): ::Temporalio::Api::Deployment::V1::DeploymentInfo? + def has_current_deployment_info?: () -> bool + def clear_current_deployment_info: () -> void + + # Info of the deployment that was current before executing this operation. + attr_accessor previous_deployment_info(): ::Temporalio::Api::Deployment::V1::DeploymentInfo? + def has_previous_deployment_info?: () -> bool + def clear_previous_deployment_info: () -> void + + type init_map = { + current_deployment_info: (::Temporalio::Api::Deployment::V1::DeploymentInfo | ::Temporalio::Api::Deployment::V1::DeploymentInfo::init_map)?, + "current_deployment_info" => (::Temporalio::Api::Deployment::V1::DeploymentInfo | ::Temporalio::Api::Deployment::V1::DeploymentInfo::init_map)?, + previous_deployment_info: (::Temporalio::Api::Deployment::V1::DeploymentInfo | ::Temporalio::Api::Deployment::V1::DeploymentInfo::init_map)?, + "previous_deployment_info" => (::Temporalio::Api::Deployment::V1::DeploymentInfo | ::Temporalio::Api::Deployment::V1::DeploymentInfo::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("current_deployment_info" name) -> ::Temporalio::Api::Deployment::V1::DeploymentInfo? + | ("previous_deployment_info" name) -> ::Temporalio::Api::Deployment::V1::DeploymentInfo? + + def []=: + ("current_deployment_info" name, ::Temporalio::Api::Deployment::V1::DeploymentInfo? value) -> void + | ("previous_deployment_info" name, ::Temporalio::Api::Deployment::V1::DeploymentInfo? value) -> void + end + + # Set/unset the Current Version of a Worker Deployment. + class SetWorkerDeploymentCurrentVersionRequest < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_reader deployment_name(): ::String + attr_writer deployment_name(): ::String | ::Symbol + def clear_deployment_name: () -> void + + # Deprecated. Use `build_id`. + # @deprecated + attr_reader version(): ::String + attr_writer version(): ::String | ::Symbol + def clear_version: () -> void + + # 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`.) + attr_reader build_id(): ::String + attr_writer build_id(): ::String | ::Symbol + def clear_build_id: () -> void + + # 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. + attr_accessor conflict_token(): ::String + def clear_conflict_token: () -> void + + # Optional. The identity of the client who initiated this request. + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + # 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. + attr_accessor ignore_missing_task_queues(): bool + def clear_ignore_missing_task_queues: () -> void + + # 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. + attr_accessor allow_no_pollers(): bool + def clear_allow_no_pollers: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + deployment_name: (::String | ::Symbol)?, + "deployment_name" => (::String | ::Symbol)?, + version: (::String | ::Symbol)?, + "version" => (::String | ::Symbol)?, + build_id: (::String | ::Symbol)?, + "build_id" => (::String | ::Symbol)?, + conflict_token: ::String?, + "conflict_token" => ::String?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + ignore_missing_task_queues: bool?, + "ignore_missing_task_queues" => bool?, + allow_no_pollers: bool?, + "allow_no_pollers" => bool?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("deployment_name" name) -> ::String + | ("version" name) -> ::String + | ("build_id" name) -> ::String + | ("conflict_token" name) -> ::String + | ("identity" name) -> ::String + | ("ignore_missing_task_queues" name) -> bool + | ("allow_no_pollers" name) -> bool + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("deployment_name" name, (::String | ::Symbol) value) -> void + | ("version" name, (::String | ::Symbol) value) -> void + | ("build_id" name, (::String | ::Symbol) value) -> void + | ("conflict_token" name, ::String value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + | ("ignore_missing_task_queues" name, bool value) -> void + | ("allow_no_pollers" name, bool value) -> void + end + + class SetWorkerDeploymentCurrentVersionResponse < ::Google::Protobuf::AbstractMessage + + # 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. + attr_accessor conflict_token(): ::String + def clear_conflict_token: () -> void + + # Deprecated. Use `previous_deployment_version`. + # @deprecated + attr_reader previous_version(): ::String + attr_writer previous_version(): ::String | ::Symbol + def clear_previous_version: () -> void + + # 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 + attr_accessor previous_deployment_version(): ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? + def has_previous_deployment_version?: () -> bool + def clear_previous_deployment_version: () -> void + + type init_map = { + conflict_token: ::String?, + "conflict_token" => ::String?, + previous_version: (::String | ::Symbol)?, + "previous_version" => (::String | ::Symbol)?, + previous_deployment_version: (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?, + "previous_deployment_version" => (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("conflict_token" name) -> ::String + | ("previous_version" name) -> ::String + | ("previous_deployment_version" name) -> ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? + + def []=: + ("conflict_token" name, ::String value) -> void + | ("previous_version" name, (::String | ::Symbol) value) -> void + | ("previous_deployment_version" name, ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? value) -> void + end + + # Set/unset the Ramping Version of a Worker Deployment and its ramp percentage. + class SetWorkerDeploymentRampingVersionRequest < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_reader deployment_name(): ::String + attr_writer deployment_name(): ::String | ::Symbol + def clear_deployment_name: () -> void + + # Deprecated. Use `build_id`. + # @deprecated + attr_reader version(): ::String + attr_writer version(): ::String | ::Symbol + def clear_version: () -> void + + # 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`.) + attr_reader build_id(): ::String + attr_writer build_id(): ::String | ::Symbol + def clear_build_id: () -> void + + # Ramp percentage to set. Valid range: [0,100]. + attr_reader percentage(): ::Float + attr_writer percentage(): ::Float | ::Integer + def clear_percentage: () -> void + + # 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. + attr_accessor conflict_token(): ::String + def clear_conflict_token: () -> void + + # Optional. The identity of the client who initiated this request. + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + # 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. + attr_accessor ignore_missing_task_queues(): bool + def clear_ignore_missing_task_queues: () -> void + + # 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. + attr_accessor allow_no_pollers(): bool + def clear_allow_no_pollers: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + deployment_name: (::String | ::Symbol)?, + "deployment_name" => (::String | ::Symbol)?, + version: (::String | ::Symbol)?, + "version" => (::String | ::Symbol)?, + build_id: (::String | ::Symbol)?, + "build_id" => (::String | ::Symbol)?, + percentage: (::Float | ::Integer)?, + "percentage" => (::Float | ::Integer)?, + conflict_token: ::String?, + "conflict_token" => ::String?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + ignore_missing_task_queues: bool?, + "ignore_missing_task_queues" => bool?, + allow_no_pollers: bool?, + "allow_no_pollers" => bool?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("deployment_name" name) -> ::String + | ("version" name) -> ::String + | ("build_id" name) -> ::String + | ("percentage" name) -> ::Float + | ("conflict_token" name) -> ::String + | ("identity" name) -> ::String + | ("ignore_missing_task_queues" name) -> bool + | ("allow_no_pollers" name) -> bool + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("deployment_name" name, (::String | ::Symbol) value) -> void + | ("version" name, (::String | ::Symbol) value) -> void + | ("build_id" name, (::String | ::Symbol) value) -> void + | ("percentage" name, (::Float | ::Integer) value) -> void + | ("conflict_token" name, ::String value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + | ("ignore_missing_task_queues" name, bool value) -> void + | ("allow_no_pollers" name, bool value) -> void + end + + class SetWorkerDeploymentRampingVersionResponse < ::Google::Protobuf::AbstractMessage + + # 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. + attr_accessor conflict_token(): ::String + def clear_conflict_token: () -> void + + # Deprecated. Use `previous_deployment_version`. + # @deprecated + attr_reader previous_version(): ::String + attr_writer previous_version(): ::String | ::Symbol + def clear_previous_version: () -> void + + # 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 + attr_accessor previous_deployment_version(): ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? + def has_previous_deployment_version?: () -> bool + def clear_previous_deployment_version: () -> void + + # 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 + attr_reader previous_percentage(): ::Float + attr_writer previous_percentage(): ::Float | ::Integer + def clear_previous_percentage: () -> void + + type init_map = { + conflict_token: ::String?, + "conflict_token" => ::String?, + previous_version: (::String | ::Symbol)?, + "previous_version" => (::String | ::Symbol)?, + previous_deployment_version: (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?, + "previous_deployment_version" => (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?, + previous_percentage: (::Float | ::Integer)?, + "previous_percentage" => (::Float | ::Integer)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("conflict_token" name) -> ::String + | ("previous_version" name) -> ::String + | ("previous_deployment_version" name) -> ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? + | ("previous_percentage" name) -> ::Float + + def []=: + ("conflict_token" name, ::String value) -> void + | ("previous_version" name, (::String | ::Symbol) value) -> void + | ("previous_deployment_version" name, ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? value) -> void + | ("previous_percentage" name, (::Float | ::Integer) value) -> void + end + + class ListWorkerDeploymentsRequest < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_reader page_size(): ::Integer + attr_writer page_size(): ::Integer | ::Float + def clear_page_size: () -> void + + attr_accessor next_page_token(): ::String + def clear_next_page_token: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + page_size: (::Integer | ::Float)?, + "page_size" => (::Integer | ::Float)?, + next_page_token: ::String?, + "next_page_token" => ::String?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("page_size" name) -> ::Integer + | ("next_page_token" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("page_size" name, (::Integer | ::Float) value) -> void + | ("next_page_token" name, ::String value) -> void + end + + class ListWorkerDeploymentsResponse < ::Google::Protobuf::AbstractMessage + # (-- api-linter: core::0123::resource-annotation=disabled --) + # A subset of WorkerDeploymentInfo + class WorkerDeploymentSummary < ::Google::Protobuf::AbstractMessage + + attr_reader name(): ::String + attr_writer name(): ::String | ::Symbol + def clear_name: () -> void + + attr_reader create_time(): ::Google::Protobuf::Timestamp? + attr_writer create_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_create_time?: () -> bool + def clear_create_time: () -> void + + attr_accessor routing_config(): ::Temporalio::Api::Deployment::V1::RoutingConfig? + def has_routing_config?: () -> bool + def clear_routing_config: () -> void + + # Summary of the version that was added most recently in the Worker Deployment. + attr_accessor latest_version_summary(): ::Temporalio::Api::Deployment::V1::WorkerDeploymentInfo::WorkerDeploymentVersionSummary? + def has_latest_version_summary?: () -> bool + def clear_latest_version_summary: () -> void + + # Summary of the current version of the Worker Deployment. + attr_accessor current_version_summary(): ::Temporalio::Api::Deployment::V1::WorkerDeploymentInfo::WorkerDeploymentVersionSummary? + def has_current_version_summary?: () -> bool + def clear_current_version_summary: () -> void + + # Summary of the ramping version of the Worker Deployment. + attr_accessor ramping_version_summary(): ::Temporalio::Api::Deployment::V1::WorkerDeploymentInfo::WorkerDeploymentVersionSummary? + def has_ramping_version_summary?: () -> bool + def clear_ramping_version_summary: () -> void + + type init_map = { + name: (::String | ::Symbol)?, + "name" => (::String | ::Symbol)?, + create_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "create_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + routing_config: (::Temporalio::Api::Deployment::V1::RoutingConfig | ::Temporalio::Api::Deployment::V1::RoutingConfig::init_map)?, + "routing_config" => (::Temporalio::Api::Deployment::V1::RoutingConfig | ::Temporalio::Api::Deployment::V1::RoutingConfig::init_map)?, + latest_version_summary: (::Temporalio::Api::Deployment::V1::WorkerDeploymentInfo::WorkerDeploymentVersionSummary | ::Temporalio::Api::Deployment::V1::WorkerDeploymentInfo::WorkerDeploymentVersionSummary::init_map)?, + "latest_version_summary" => (::Temporalio::Api::Deployment::V1::WorkerDeploymentInfo::WorkerDeploymentVersionSummary | ::Temporalio::Api::Deployment::V1::WorkerDeploymentInfo::WorkerDeploymentVersionSummary::init_map)?, + current_version_summary: (::Temporalio::Api::Deployment::V1::WorkerDeploymentInfo::WorkerDeploymentVersionSummary | ::Temporalio::Api::Deployment::V1::WorkerDeploymentInfo::WorkerDeploymentVersionSummary::init_map)?, + "current_version_summary" => (::Temporalio::Api::Deployment::V1::WorkerDeploymentInfo::WorkerDeploymentVersionSummary | ::Temporalio::Api::Deployment::V1::WorkerDeploymentInfo::WorkerDeploymentVersionSummary::init_map)?, + ramping_version_summary: (::Temporalio::Api::Deployment::V1::WorkerDeploymentInfo::WorkerDeploymentVersionSummary | ::Temporalio::Api::Deployment::V1::WorkerDeploymentInfo::WorkerDeploymentVersionSummary::init_map)?, + "ramping_version_summary" => (::Temporalio::Api::Deployment::V1::WorkerDeploymentInfo::WorkerDeploymentVersionSummary | ::Temporalio::Api::Deployment::V1::WorkerDeploymentInfo::WorkerDeploymentVersionSummary::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("name" name) -> ::String + | ("create_time" name) -> ::Google::Protobuf::Timestamp? + | ("routing_config" name) -> ::Temporalio::Api::Deployment::V1::RoutingConfig? + | ("latest_version_summary" name) -> ::Temporalio::Api::Deployment::V1::WorkerDeploymentInfo::WorkerDeploymentVersionSummary? + | ("current_version_summary" name) -> ::Temporalio::Api::Deployment::V1::WorkerDeploymentInfo::WorkerDeploymentVersionSummary? + | ("ramping_version_summary" name) -> ::Temporalio::Api::Deployment::V1::WorkerDeploymentInfo::WorkerDeploymentVersionSummary? + + def []=: + ("name" name, (::String | ::Symbol) value) -> void + | ("create_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("routing_config" name, ::Temporalio::Api::Deployment::V1::RoutingConfig? value) -> void + | ("latest_version_summary" name, ::Temporalio::Api::Deployment::V1::WorkerDeploymentInfo::WorkerDeploymentVersionSummary? value) -> void + | ("current_version_summary" name, ::Temporalio::Api::Deployment::V1::WorkerDeploymentInfo::WorkerDeploymentVersionSummary? value) -> void + | ("ramping_version_summary" name, ::Temporalio::Api::Deployment::V1::WorkerDeploymentInfo::WorkerDeploymentVersionSummary? value) -> void + end + + attr_accessor next_page_token(): ::String + def clear_next_page_token: () -> void + + # The list of worker deployments. + attr_accessor worker_deployments(): ::Google::Protobuf::RepeatedField + def clear_worker_deployments: () -> void + + type init_map = { + next_page_token: ::String?, + "next_page_token" => ::String?, + worker_deployments: ::Array[::Temporalio::Api::WorkflowService::V1::ListWorkerDeploymentsResponse::WorkerDeploymentSummary]?, + "worker_deployments" => ::Array[::Temporalio::Api::WorkflowService::V1::ListWorkerDeploymentsResponse::WorkerDeploymentSummary]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("next_page_token" name) -> ::String + | ("worker_deployments" name) -> ::Google::Protobuf::RepeatedField + + def []=: + ("next_page_token" name, ::String value) -> void + | ("worker_deployments" name, ::Google::Protobuf::RepeatedField value) -> void + end + + # 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`. + class DeleteWorkerDeploymentVersionRequest < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # Deprecated. Use `deployment_version`. + # @deprecated + attr_reader version(): ::String + attr_writer version(): ::String | ::Symbol + def clear_version: () -> void + + # Required. + attr_accessor deployment_version(): ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? + def has_deployment_version?: () -> bool + def clear_deployment_version: () -> void + + # 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. + attr_accessor skip_drainage(): bool + def clear_skip_drainage: () -> void + + # Optional. The identity of the client who initiated this request. + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + version: (::String | ::Symbol)?, + "version" => (::String | ::Symbol)?, + deployment_version: (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?, + "deployment_version" => (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?, + skip_drainage: bool?, + "skip_drainage" => bool?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("version" name) -> ::String + | ("deployment_version" name) -> ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? + | ("skip_drainage" name) -> bool + | ("identity" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("version" name, (::String | ::Symbol) value) -> void + | ("deployment_version" name, ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? value) -> void + | ("skip_drainage" name, bool value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + end + + class DeleteWorkerDeploymentVersionResponse < ::Google::Protobuf::AbstractMessage + + type init_map = { + } + + def initialize: (?init_map initial_value) -> void + end + + # Deletes records of (an old) Deployment. A deployment can only be deleted if + # it has no Version in it. + class DeleteWorkerDeploymentRequest < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_reader deployment_name(): ::String + attr_writer deployment_name(): ::String | ::Symbol + def clear_deployment_name: () -> void + + # Optional. The identity of the client who initiated this request. + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + deployment_name: (::String | ::Symbol)?, + "deployment_name" => (::String | ::Symbol)?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("deployment_name" name) -> ::String + | ("identity" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("deployment_name" name, (::String | ::Symbol) value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + end + + class DeleteWorkerDeploymentResponse < ::Google::Protobuf::AbstractMessage + + type init_map = { + } + + def initialize: (?init_map initial_value) -> void + end + + # Used to update the user-defined metadata of a Worker Deployment Version. + class UpdateWorkerDeploymentVersionMetadataRequest < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # Deprecated. Use `deployment_version`. + # @deprecated + attr_reader version(): ::String + attr_writer version(): ::String | ::Symbol + def clear_version: () -> void + + # Required. + attr_accessor deployment_version(): ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? + def has_deployment_version?: () -> bool + def clear_deployment_version: () -> void + + attr_accessor upsert_entries(): ::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload] + def clear_upsert_entries: () -> void + + # List of keys to remove from the metadata. + attr_accessor remove_entries(): ::Google::Protobuf::RepeatedField + def clear_remove_entries: () -> void + + # Optional. The identity of the client who initiated this request. + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + version: (::String | ::Symbol)?, + "version" => (::String | ::Symbol)?, + deployment_version: (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?, + "deployment_version" => (::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion | ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion::init_map)?, + upsert_entries: ::Hash[::String | ::Symbol, ::Temporalio::Api::Common::V1::Payload]?, + "upsert_entries" => ::Hash[::String | ::Symbol, ::Temporalio::Api::Common::V1::Payload]?, + remove_entries: ::Array[::String | ::Symbol]?, + "remove_entries" => ::Array[::String | ::Symbol]?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("version" name) -> ::String + | ("deployment_version" name) -> ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? + | ("upsert_entries" name) -> (::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload]) + | ("remove_entries" name) -> (::Google::Protobuf::RepeatedField) + | ("identity" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("version" name, (::String | ::Symbol) value) -> void + | ("deployment_version" name, ::Temporalio::Api::Deployment::V1::WorkerDeploymentVersion? value) -> void + | ("upsert_entries" name, (::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload]) value) -> void + | ("remove_entries" name, (::Google::Protobuf::RepeatedField) value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + end + + class UpdateWorkerDeploymentVersionMetadataResponse < ::Google::Protobuf::AbstractMessage + + # Full metadata after performing the update. + attr_accessor metadata(): ::Temporalio::Api::Deployment::V1::VersionMetadata? + def has_metadata?: () -> bool + def clear_metadata: () -> void + + type init_map = { + metadata: (::Temporalio::Api::Deployment::V1::VersionMetadata | ::Temporalio::Api::Deployment::V1::VersionMetadata::init_map)?, + "metadata" => (::Temporalio::Api::Deployment::V1::VersionMetadata | ::Temporalio::Api::Deployment::V1::VersionMetadata::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("metadata" name) -> ::Temporalio::Api::Deployment::V1::VersionMetadata? + + def []=: + ("metadata" name, ::Temporalio::Api::Deployment::V1::VersionMetadata? value) -> void + end + + # Update the ManagerIdentity of a Worker Deployment. + class SetWorkerDeploymentManagerRequest < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_reader deployment_name(): ::String + attr_writer deployment_name(): ::String | ::Symbol + def clear_deployment_name: () -> void + + # Arbitrary value for `manager_identity`. + # Empty will unset the field. + attr_reader manager_identity(): ::String + attr_writer manager_identity(): (::String | ::Symbol)? + def has_manager_identity?: () -> bool + def clear_manager_identity: () -> void + + # True will set `manager_identity` to `identity`. + attr_reader self(): bool + attr_writer self(): bool? + def has_self?: () -> bool + def clear_self: () -> void + + # 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. + attr_accessor conflict_token(): ::String + def clear_conflict_token: () -> void + + # Required. The identity of the client who initiated this request. + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + attr_reader new_manager_identity(): (::String | bool)? + def has_new_manager_identity?: () -> bool + def clear_new_manager_identity: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + deployment_name: (::String | ::Symbol)?, + "deployment_name" => (::String | ::Symbol)?, + manager_identity: (::String | ::Symbol)?, + "manager_identity" => (::String | ::Symbol)?, + self: bool?, + "self" => bool?, + conflict_token: ::String?, + "conflict_token" => ::String?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("deployment_name" name) -> ::String + | ("manager_identity" name) -> ::String + | ("self" name) -> bool + | ("conflict_token" name) -> ::String + | ("identity" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("deployment_name" name, (::String | ::Symbol) value) -> void + | ("manager_identity" name, ((::String | ::Symbol)?) value) -> void + | ("self" name, bool? value) -> void + | ("conflict_token" name, ::String value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + end + + class SetWorkerDeploymentManagerResponse < ::Google::Protobuf::AbstractMessage + + # 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. + attr_accessor conflict_token(): ::String + def clear_conflict_token: () -> void + + # 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 + attr_reader previous_manager_identity(): ::String + attr_writer previous_manager_identity(): ::String | ::Symbol + def clear_previous_manager_identity: () -> void + + type init_map = { + conflict_token: ::String?, + "conflict_token" => ::String?, + previous_manager_identity: (::String | ::Symbol)?, + "previous_manager_identity" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("conflict_token" name) -> ::String + | ("previous_manager_identity" name) -> ::String + + def []=: + ("conflict_token" name, ::String value) -> void + | ("previous_manager_identity" name, (::String | ::Symbol) value) -> void + end + + # Returns the Current Deployment of a deployment series. + # [cleanup-wv-pre-release] Pre-release deployment APIs, clean up later + class GetCurrentDeploymentRequest < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_reader series_name(): ::String + attr_writer series_name(): ::String | ::Symbol + def clear_series_name: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + series_name: (::String | ::Symbol)?, + "series_name" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("series_name" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("series_name" name, (::String | ::Symbol) value) -> void + end + + # [cleanup-wv-pre-release] Pre-release deployment APIs, clean up later + class GetCurrentDeploymentResponse < ::Google::Protobuf::AbstractMessage + + attr_accessor current_deployment_info(): ::Temporalio::Api::Deployment::V1::DeploymentInfo? + def has_current_deployment_info?: () -> bool + def clear_current_deployment_info: () -> void + + type init_map = { + current_deployment_info: (::Temporalio::Api::Deployment::V1::DeploymentInfo | ::Temporalio::Api::Deployment::V1::DeploymentInfo::init_map)?, + "current_deployment_info" => (::Temporalio::Api::Deployment::V1::DeploymentInfo | ::Temporalio::Api::Deployment::V1::DeploymentInfo::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("current_deployment_info" name) -> ::Temporalio::Api::Deployment::V1::DeploymentInfo? + + def []=: + ("current_deployment_info" name, ::Temporalio::Api::Deployment::V1::DeploymentInfo? value) -> void + end + + # [cleanup-wv-pre-release] Pre-release deployment APIs, clean up later + class GetDeploymentReachabilityRequest < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_accessor deployment(): ::Temporalio::Api::Deployment::V1::Deployment? + def has_deployment?: () -> bool + def clear_deployment: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + deployment: (::Temporalio::Api::Deployment::V1::Deployment | ::Temporalio::Api::Deployment::V1::Deployment::init_map)?, + "deployment" => (::Temporalio::Api::Deployment::V1::Deployment | ::Temporalio::Api::Deployment::V1::Deployment::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("deployment" name) -> ::Temporalio::Api::Deployment::V1::Deployment? + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("deployment" name, ::Temporalio::Api::Deployment::V1::Deployment? value) -> void + end + + # [cleanup-wv-pre-release] Pre-release deployment APIs, clean up later + class GetDeploymentReachabilityResponse < ::Google::Protobuf::AbstractMessage + + attr_accessor deployment_info(): ::Temporalio::Api::Deployment::V1::DeploymentInfo? + def has_deployment_info?: () -> bool + def clear_deployment_info: () -> void + + attr_reader reachability(): ::Temporalio::Api::Enums::V1::DeploymentReachability::names | ::Integer + attr_writer reachability(): ::Temporalio::Api::Enums::V1::DeploymentReachability::names | ::Temporalio::Api::Enums::V1::DeploymentReachability::strings | ::Integer | ::Float + attr_reader reachability_const(): ::Integer + def clear_reachability: () -> void + + # Reachability level might come from server cache. This timestamp specifies when the value + # was actually calculated. + attr_reader last_update_time(): ::Google::Protobuf::Timestamp? + attr_writer last_update_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_last_update_time?: () -> bool + def clear_last_update_time: () -> void + + type init_map = { + deployment_info: (::Temporalio::Api::Deployment::V1::DeploymentInfo | ::Temporalio::Api::Deployment::V1::DeploymentInfo::init_map)?, + "deployment_info" => (::Temporalio::Api::Deployment::V1::DeploymentInfo | ::Temporalio::Api::Deployment::V1::DeploymentInfo::init_map)?, + reachability: (::Temporalio::Api::Enums::V1::DeploymentReachability::names | ::Temporalio::Api::Enums::V1::DeploymentReachability::strings | ::Integer | ::Float)?, + "reachability" => (::Temporalio::Api::Enums::V1::DeploymentReachability::names | ::Temporalio::Api::Enums::V1::DeploymentReachability::strings | ::Integer | ::Float)?, + last_update_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "last_update_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("deployment_info" name) -> ::Temporalio::Api::Deployment::V1::DeploymentInfo? + | ("reachability" name) -> (::Temporalio::Api::Enums::V1::DeploymentReachability::names | ::Integer) + | ("last_update_time" name) -> ::Google::Protobuf::Timestamp? + + def []=: + ("deployment_info" name, ::Temporalio::Api::Deployment::V1::DeploymentInfo? value) -> void + | ("reachability" name, (::Temporalio::Api::Enums::V1::DeploymentReachability::names | ::Temporalio::Api::Enums::V1::DeploymentReachability::strings | ::Integer | ::Float) value) -> void + | ("last_update_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + end + + class CreateWorkflowRuleRequest < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # The rule specification . + attr_accessor spec(): ::Temporalio::Api::Rules::V1::WorkflowRuleSpec? + def has_spec?: () -> bool + def clear_spec: () -> void + + # 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. + attr_accessor force_scan(): bool + def clear_force_scan: () -> void + + # Used to de-dupe requests. Typically should be UUID. + attr_reader request_id(): ::String + attr_writer request_id(): ::String | ::Symbol + def clear_request_id: () -> void + + # Identity of the actor who created the rule. Will be stored with the rule. + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + # Rule description.Will be stored with the rule. + attr_reader description(): ::String + attr_writer description(): ::String | ::Symbol + def clear_description: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + spec: (::Temporalio::Api::Rules::V1::WorkflowRuleSpec | ::Temporalio::Api::Rules::V1::WorkflowRuleSpec::init_map)?, + "spec" => (::Temporalio::Api::Rules::V1::WorkflowRuleSpec | ::Temporalio::Api::Rules::V1::WorkflowRuleSpec::init_map)?, + force_scan: bool?, + "force_scan" => bool?, + request_id: (::String | ::Symbol)?, + "request_id" => (::String | ::Symbol)?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + description: (::String | ::Symbol)?, + "description" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("spec" name) -> ::Temporalio::Api::Rules::V1::WorkflowRuleSpec? + | ("force_scan" name) -> bool + | ("request_id" name) -> ::String + | ("identity" name) -> ::String + | ("description" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("spec" name, ::Temporalio::Api::Rules::V1::WorkflowRuleSpec? value) -> void + | ("force_scan" name, bool value) -> void + | ("request_id" name, (::String | ::Symbol) value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + | ("description" name, (::String | ::Symbol) value) -> void + end + + class CreateWorkflowRuleResponse < ::Google::Protobuf::AbstractMessage + + # Created rule. + attr_accessor rule(): ::Temporalio::Api::Rules::V1::WorkflowRule? + def has_rule?: () -> bool + def clear_rule: () -> void + + # Batch Job ID if force-scan flag was provided. Otherwise empty. + attr_reader job_id(): ::String + attr_writer job_id(): ::String | ::Symbol + def clear_job_id: () -> void + + type init_map = { + rule: (::Temporalio::Api::Rules::V1::WorkflowRule | ::Temporalio::Api::Rules::V1::WorkflowRule::init_map)?, + "rule" => (::Temporalio::Api::Rules::V1::WorkflowRule | ::Temporalio::Api::Rules::V1::WorkflowRule::init_map)?, + job_id: (::String | ::Symbol)?, + "job_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("rule" name) -> ::Temporalio::Api::Rules::V1::WorkflowRule? + | ("job_id" name) -> ::String + + def []=: + ("rule" name, ::Temporalio::Api::Rules::V1::WorkflowRule? value) -> void + | ("job_id" name, (::String | ::Symbol) value) -> void + end + + class DescribeWorkflowRuleRequest < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # User-specified ID of the rule to read. Unique within the namespace. + attr_reader rule_id(): ::String + attr_writer rule_id(): ::String | ::Symbol + def clear_rule_id: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + rule_id: (::String | ::Symbol)?, + "rule_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("rule_id" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("rule_id" name, (::String | ::Symbol) value) -> void + end + + class DescribeWorkflowRuleResponse < ::Google::Protobuf::AbstractMessage + + # The rule that was read. + attr_accessor rule(): ::Temporalio::Api::Rules::V1::WorkflowRule? + def has_rule?: () -> bool + def clear_rule: () -> void + + type init_map = { + rule: (::Temporalio::Api::Rules::V1::WorkflowRule | ::Temporalio::Api::Rules::V1::WorkflowRule::init_map)?, + "rule" => (::Temporalio::Api::Rules::V1::WorkflowRule | ::Temporalio::Api::Rules::V1::WorkflowRule::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("rule" name) -> ::Temporalio::Api::Rules::V1::WorkflowRule? + + def []=: + ("rule" name, ::Temporalio::Api::Rules::V1::WorkflowRule? value) -> void + end + + class DeleteWorkflowRuleRequest < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # ID of the rule to delete. Unique within the namespace. + attr_reader rule_id(): ::String + attr_writer rule_id(): ::String | ::Symbol + def clear_rule_id: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + rule_id: (::String | ::Symbol)?, + "rule_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("rule_id" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("rule_id" name, (::String | ::Symbol) value) -> void + end + + class DeleteWorkflowRuleResponse < ::Google::Protobuf::AbstractMessage + + type init_map = { + } + + def initialize: (?init_map initial_value) -> void + end + + class ListWorkflowRulesRequest < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_accessor next_page_token(): ::String + def clear_next_page_token: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + next_page_token: ::String?, + "next_page_token" => ::String?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("next_page_token" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("next_page_token" name, ::String value) -> void + end + + class ListWorkflowRulesResponse < ::Google::Protobuf::AbstractMessage + + attr_accessor rules(): ::Google::Protobuf::RepeatedField + def clear_rules: () -> void + + attr_accessor next_page_token(): ::String + def clear_next_page_token: () -> void + + type init_map = { + rules: ::Array[::Temporalio::Api::Rules::V1::WorkflowRule]?, + "rules" => ::Array[::Temporalio::Api::Rules::V1::WorkflowRule]?, + next_page_token: ::String?, + "next_page_token" => ::String?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("rules" name) -> ::Google::Protobuf::RepeatedField + | ("next_page_token" name) -> ::String + + def []=: + ("rules" name, ::Google::Protobuf::RepeatedField value) -> void + | ("next_page_token" name, ::String value) -> void + end + + class TriggerWorkflowRuleRequest < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # Execution info of the workflow which scheduled this activity + attr_accessor execution(): ::Temporalio::Api::Common::V1::WorkflowExecution? + def has_execution?: () -> bool + def clear_execution: () -> void + + attr_reader id(): ::String + attr_writer id(): (::String | ::Symbol)? + def has_id?: () -> bool + def clear_id: () -> void + + # Note: Rule ID and expiration date are not used in the trigger request. + attr_accessor spec(): ::Temporalio::Api::Rules::V1::WorkflowRuleSpec? + def has_spec?: () -> bool + def clear_spec: () -> void + + # The identity of the client who initiated this request + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + # Either provide id of existing rule, or rule specification + attr_reader rule(): (::String | ::Temporalio::Api::Rules::V1::WorkflowRuleSpec)? + def has_rule?: () -> bool + def clear_rule: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + execution: (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + "execution" => (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + id: (::String | ::Symbol)?, + "id" => (::String | ::Symbol)?, + spec: (::Temporalio::Api::Rules::V1::WorkflowRuleSpec | ::Temporalio::Api::Rules::V1::WorkflowRuleSpec::init_map)?, + "spec" => (::Temporalio::Api::Rules::V1::WorkflowRuleSpec | ::Temporalio::Api::Rules::V1::WorkflowRuleSpec::init_map)?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("execution" name) -> ::Temporalio::Api::Common::V1::WorkflowExecution? + | ("id" name) -> ::String + | ("spec" name) -> ::Temporalio::Api::Rules::V1::WorkflowRuleSpec? + | ("identity" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("execution" name, ::Temporalio::Api::Common::V1::WorkflowExecution? value) -> void + | ("id" name, ((::String | ::Symbol)?) value) -> void + | ("spec" name, ::Temporalio::Api::Rules::V1::WorkflowRuleSpec? value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + end + + class TriggerWorkflowRuleResponse < ::Google::Protobuf::AbstractMessage + + # True is the rule was applied, based on the rule conditions (predicate/visibility_query). + attr_accessor applied(): bool + def clear_applied: () -> void + + type init_map = { + applied: bool?, + "applied" => bool?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("applied" name) -> bool + + def []=: + ("applied" name, bool value) -> void + end + + class RecordWorkerHeartbeatRequest < ::Google::Protobuf::AbstractMessage + + # Namespace this worker belongs to. + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # The identity of the client who initiated this request. + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + attr_accessor worker_heartbeat(): ::Google::Protobuf::RepeatedField + def clear_worker_heartbeat: () -> void + + # Resource ID for routing. Contains the worker grouping key. + attr_reader resource_id(): ::String + attr_writer resource_id(): ::String | ::Symbol + def clear_resource_id: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + worker_heartbeat: ::Array[::Temporalio::Api::Worker::V1::WorkerHeartbeat]?, + "worker_heartbeat" => ::Array[::Temporalio::Api::Worker::V1::WorkerHeartbeat]?, + resource_id: (::String | ::Symbol)?, + "resource_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("identity" name) -> ::String + | ("worker_heartbeat" name) -> ::Google::Protobuf::RepeatedField + | ("resource_id" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + | ("worker_heartbeat" name, ::Google::Protobuf::RepeatedField value) -> void + | ("resource_id" name, (::String | ::Symbol) value) -> void + end + + class RecordWorkerHeartbeatResponse < ::Google::Protobuf::AbstractMessage + + type init_map = { + } + + def initialize: (?init_map initial_value) -> void + end + + class ListWorkersRequest < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_reader page_size(): ::Integer + attr_writer page_size(): ::Integer | ::Float + def clear_page_size: () -> void + + attr_accessor next_page_token(): ::String + def clear_next_page_token: () -> void + + # `query` in ListWorkers is used to filter workers based on worker attributes. + # Supported attributes: + #* WorkerInstanceKey + #* WorkerIdentity + #* HostName + #* TaskQueue + #* DeploymentName + #* BuildId + #* SdkName + #* SdkVersion + #* StartTime + #* Status + attr_reader query(): ::String + attr_writer query(): ::String | ::Symbol + def clear_query: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + page_size: (::Integer | ::Float)?, + "page_size" => (::Integer | ::Float)?, + next_page_token: ::String?, + "next_page_token" => ::String?, + query: (::String | ::Symbol)?, + "query" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("page_size" name) -> ::Integer + | ("next_page_token" name) -> ::String + | ("query" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("page_size" name, (::Integer | ::Float) value) -> void + | ("next_page_token" name, ::String value) -> void + | ("query" name, (::String | ::Symbol) value) -> void + end + + class ListWorkersResponse < ::Google::Protobuf::AbstractMessage + + # Deprecated: Use workers instead. This field returns full WorkerInfo which + # includes expensive runtime metrics. We will stop populating this field in the future. + # @deprecated + attr_accessor workers_info(): ::Google::Protobuf::RepeatedField + def clear_workers_info: () -> void + + # Limited worker information. + attr_accessor workers(): ::Google::Protobuf::RepeatedField + def clear_workers: () -> void + + # Next page token + attr_accessor next_page_token(): ::String + def clear_next_page_token: () -> void + + type init_map = { + workers_info: ::Array[::Temporalio::Api::Worker::V1::WorkerInfo]?, + "workers_info" => ::Array[::Temporalio::Api::Worker::V1::WorkerInfo]?, + workers: ::Array[::Temporalio::Api::Worker::V1::WorkerListInfo]?, + "workers" => ::Array[::Temporalio::Api::Worker::V1::WorkerListInfo]?, + next_page_token: ::String?, + "next_page_token" => ::String?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("workers_info" name) -> ::Google::Protobuf::RepeatedField + | ("workers" name) -> ::Google::Protobuf::RepeatedField + | ("next_page_token" name) -> ::String + + def []=: + ("workers_info" name, ::Google::Protobuf::RepeatedField value) -> void + | ("workers" name, ::Google::Protobuf::RepeatedField value) -> void + | ("next_page_token" name, ::String value) -> void + end + + class UpdateTaskQueueConfigRequest < ::Google::Protobuf::AbstractMessage + class RateLimitUpdate < ::Google::Protobuf::AbstractMessage + + # Rate Limit to be updated + attr_accessor rate_limit(): ::Temporalio::Api::TaskQueue::V1::RateLimit? + def has_rate_limit?: () -> bool + def clear_rate_limit: () -> void + + # Reason for why the rate limit was set. + attr_reader reason(): ::String + attr_writer reason(): ::String | ::Symbol + def clear_reason: () -> void + + type init_map = { + rate_limit: (::Temporalio::Api::TaskQueue::V1::RateLimit | ::Temporalio::Api::TaskQueue::V1::RateLimit::init_map)?, + "rate_limit" => (::Temporalio::Api::TaskQueue::V1::RateLimit | ::Temporalio::Api::TaskQueue::V1::RateLimit::init_map)?, + reason: (::String | ::Symbol)?, + "reason" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("rate_limit" name) -> ::Temporalio::Api::TaskQueue::V1::RateLimit? + | ("reason" name) -> ::String + + def []=: + ("rate_limit" name, ::Temporalio::Api::TaskQueue::V1::RateLimit? value) -> void + | ("reason" name, (::String | ::Symbol) value) -> void + end + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + # Selects the task queue to update. + attr_reader task_queue(): ::String + attr_writer task_queue(): ::String | ::Symbol + def clear_task_queue: () -> void + + attr_reader task_queue_type(): ::Temporalio::Api::Enums::V1::TaskQueueType::names | ::Integer + attr_writer task_queue_type(): ::Temporalio::Api::Enums::V1::TaskQueueType::names | ::Temporalio::Api::Enums::V1::TaskQueueType::strings | ::Integer | ::Float + attr_reader task_queue_type_const(): ::Integer + def clear_task_queue_type: () -> void + + # 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. + attr_accessor update_queue_rate_limit(): ::Temporalio::Api::WorkflowService::V1::UpdateTaskQueueConfigRequest::RateLimitUpdate? + def has_update_queue_rate_limit?: () -> bool + def clear_update_queue_rate_limit: () -> void + + # 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. + attr_accessor update_fairness_key_rate_limit_default(): ::Temporalio::Api::WorkflowService::V1::UpdateTaskQueueConfigRequest::RateLimitUpdate? + def has_update_fairness_key_rate_limit_default?: () -> bool + def clear_update_fairness_key_rate_limit_default: () -> void + + # 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). + attr_accessor set_fairness_weight_overrides(): ::Google::Protobuf::Map[::String, ::Float] + def clear_set_fairness_weight_overrides: () -> void + + # 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. + attr_accessor unset_fairness_weight_overrides(): ::Google::Protobuf::RepeatedField + def clear_unset_fairness_weight_overrides: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + task_queue: (::String | ::Symbol)?, + "task_queue" => (::String | ::Symbol)?, + task_queue_type: (::Temporalio::Api::Enums::V1::TaskQueueType::names | ::Temporalio::Api::Enums::V1::TaskQueueType::strings | ::Integer | ::Float)?, + "task_queue_type" => (::Temporalio::Api::Enums::V1::TaskQueueType::names | ::Temporalio::Api::Enums::V1::TaskQueueType::strings | ::Integer | ::Float)?, + update_queue_rate_limit: (::Temporalio::Api::WorkflowService::V1::UpdateTaskQueueConfigRequest::RateLimitUpdate | ::Temporalio::Api::WorkflowService::V1::UpdateTaskQueueConfigRequest::RateLimitUpdate::init_map)?, + "update_queue_rate_limit" => (::Temporalio::Api::WorkflowService::V1::UpdateTaskQueueConfigRequest::RateLimitUpdate | ::Temporalio::Api::WorkflowService::V1::UpdateTaskQueueConfigRequest::RateLimitUpdate::init_map)?, + update_fairness_key_rate_limit_default: (::Temporalio::Api::WorkflowService::V1::UpdateTaskQueueConfigRequest::RateLimitUpdate | ::Temporalio::Api::WorkflowService::V1::UpdateTaskQueueConfigRequest::RateLimitUpdate::init_map)?, + "update_fairness_key_rate_limit_default" => (::Temporalio::Api::WorkflowService::V1::UpdateTaskQueueConfigRequest::RateLimitUpdate | ::Temporalio::Api::WorkflowService::V1::UpdateTaskQueueConfigRequest::RateLimitUpdate::init_map)?, + set_fairness_weight_overrides: ::Hash[::String | ::Symbol, ::Float | ::Integer]?, + "set_fairness_weight_overrides" => ::Hash[::String | ::Symbol, ::Float | ::Integer]?, + unset_fairness_weight_overrides: ::Array[::String | ::Symbol]?, + "unset_fairness_weight_overrides" => ::Array[::String | ::Symbol]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("identity" name) -> ::String + | ("task_queue" name) -> ::String + | ("task_queue_type" name) -> (::Temporalio::Api::Enums::V1::TaskQueueType::names | ::Integer) + | ("update_queue_rate_limit" name) -> ::Temporalio::Api::WorkflowService::V1::UpdateTaskQueueConfigRequest::RateLimitUpdate? + | ("update_fairness_key_rate_limit_default" name) -> ::Temporalio::Api::WorkflowService::V1::UpdateTaskQueueConfigRequest::RateLimitUpdate? + | ("set_fairness_weight_overrides" name) -> (::Google::Protobuf::Map[::String, ::Float]) + | ("unset_fairness_weight_overrides" name) -> (::Google::Protobuf::RepeatedField) + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + | ("task_queue" name, (::String | ::Symbol) value) -> void + | ("task_queue_type" name, (::Temporalio::Api::Enums::V1::TaskQueueType::names | ::Temporalio::Api::Enums::V1::TaskQueueType::strings | ::Integer | ::Float) value) -> void + | ("update_queue_rate_limit" name, ::Temporalio::Api::WorkflowService::V1::UpdateTaskQueueConfigRequest::RateLimitUpdate? value) -> void + | ("update_fairness_key_rate_limit_default" name, ::Temporalio::Api::WorkflowService::V1::UpdateTaskQueueConfigRequest::RateLimitUpdate? value) -> void + | ("set_fairness_weight_overrides" name, (::Google::Protobuf::Map[::String, ::Float]) value) -> void + | ("unset_fairness_weight_overrides" name, (::Google::Protobuf::RepeatedField) value) -> void + end + + class UpdateTaskQueueConfigResponse < ::Google::Protobuf::AbstractMessage + + attr_accessor config(): ::Temporalio::Api::TaskQueue::V1::TaskQueueConfig? + def has_config?: () -> bool + def clear_config: () -> void + + type init_map = { + config: (::Temporalio::Api::TaskQueue::V1::TaskQueueConfig | ::Temporalio::Api::TaskQueue::V1::TaskQueueConfig::init_map)?, + "config" => (::Temporalio::Api::TaskQueue::V1::TaskQueueConfig | ::Temporalio::Api::TaskQueue::V1::TaskQueueConfig::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("config" name) -> ::Temporalio::Api::TaskQueue::V1::TaskQueueConfig? + + def []=: + ("config" name, ::Temporalio::Api::TaskQueue::V1::TaskQueueConfig? value) -> void + end + + class FetchWorkerConfigRequest < ::Google::Protobuf::AbstractMessage + + # Namespace this worker belongs to. + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # The identity of the client who initiated this request. + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + # Reason for sending worker command, can be used for audit purpose. + attr_reader reason(): ::String + attr_writer reason(): ::String | ::Symbol + def clear_reason: () -> void + + # Defines which workers should receive this command. + # only single worker is supported at this time. + attr_accessor selector(): ::Temporalio::Api::Common::V1::WorkerSelector? + def has_selector?: () -> bool + def clear_selector: () -> void + + # Resource ID for routing. Contains the worker grouping key. + attr_reader resource_id(): ::String + attr_writer resource_id(): ::String | ::Symbol + def clear_resource_id: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + reason: (::String | ::Symbol)?, + "reason" => (::String | ::Symbol)?, + selector: (::Temporalio::Api::Common::V1::WorkerSelector | ::Temporalio::Api::Common::V1::WorkerSelector::init_map)?, + "selector" => (::Temporalio::Api::Common::V1::WorkerSelector | ::Temporalio::Api::Common::V1::WorkerSelector::init_map)?, + resource_id: (::String | ::Symbol)?, + "resource_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("identity" name) -> ::String + | ("reason" name) -> ::String + | ("selector" name) -> ::Temporalio::Api::Common::V1::WorkerSelector? + | ("resource_id" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + | ("reason" name, (::String | ::Symbol) value) -> void + | ("selector" name, ::Temporalio::Api::Common::V1::WorkerSelector? value) -> void + | ("resource_id" name, (::String | ::Symbol) value) -> void + end + + class FetchWorkerConfigResponse < ::Google::Protobuf::AbstractMessage + + # The worker configuration. + attr_accessor worker_config(): ::Temporalio::Api::Sdk::V1::WorkerConfig? + def has_worker_config?: () -> bool + def clear_worker_config: () -> void + + type init_map = { + worker_config: (::Temporalio::Api::Sdk::V1::WorkerConfig | ::Temporalio::Api::Sdk::V1::WorkerConfig::init_map)?, + "worker_config" => (::Temporalio::Api::Sdk::V1::WorkerConfig | ::Temporalio::Api::Sdk::V1::WorkerConfig::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("worker_config" name) -> ::Temporalio::Api::Sdk::V1::WorkerConfig? + + def []=: + ("worker_config" name, ::Temporalio::Api::Sdk::V1::WorkerConfig? value) -> void + end + + class UpdateWorkerConfigRequest < ::Google::Protobuf::AbstractMessage + + # Namespace this worker belongs to. + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # The identity of the client who initiated this request. + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + # Reason for sending worker command, can be used for audit purpose. + attr_reader reason(): ::String + attr_writer reason(): ::String | ::Symbol + def clear_reason: () -> void + + # Partial updates are accepted and controlled by update_mask. + # The worker configuration to set. + attr_accessor worker_config(): ::Temporalio::Api::Sdk::V1::WorkerConfig? + def has_worker_config?: () -> bool + def clear_worker_config: () -> void + + # Controls which fields from `worker_config` will be applied + attr_accessor update_mask(): ::Google::Protobuf::FieldMask? + def has_update_mask?: () -> bool + def clear_update_mask: () -> void + + # Defines which workers should receive this command. + attr_accessor selector(): ::Temporalio::Api::Common::V1::WorkerSelector? + def has_selector?: () -> bool + def clear_selector: () -> void + + # Resource ID for routing. Contains the worker grouping key. + attr_reader resource_id(): ::String + attr_writer resource_id(): ::String | ::Symbol + def clear_resource_id: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + reason: (::String | ::Symbol)?, + "reason" => (::String | ::Symbol)?, + worker_config: (::Temporalio::Api::Sdk::V1::WorkerConfig | ::Temporalio::Api::Sdk::V1::WorkerConfig::init_map)?, + "worker_config" => (::Temporalio::Api::Sdk::V1::WorkerConfig | ::Temporalio::Api::Sdk::V1::WorkerConfig::init_map)?, + update_mask: (::Google::Protobuf::FieldMask | ::Google::Protobuf::FieldMask)?, + "update_mask" => (::Google::Protobuf::FieldMask | ::Google::Protobuf::FieldMask)?, + selector: (::Temporalio::Api::Common::V1::WorkerSelector | ::Temporalio::Api::Common::V1::WorkerSelector::init_map)?, + "selector" => (::Temporalio::Api::Common::V1::WorkerSelector | ::Temporalio::Api::Common::V1::WorkerSelector::init_map)?, + resource_id: (::String | ::Symbol)?, + "resource_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("identity" name) -> ::String + | ("reason" name) -> ::String + | ("worker_config" name) -> ::Temporalio::Api::Sdk::V1::WorkerConfig? + | ("update_mask" name) -> ::Google::Protobuf::FieldMask? + | ("selector" name) -> ::Temporalio::Api::Common::V1::WorkerSelector? + | ("resource_id" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + | ("reason" name, (::String | ::Symbol) value) -> void + | ("worker_config" name, ::Temporalio::Api::Sdk::V1::WorkerConfig? value) -> void + | ("update_mask" name, ::Google::Protobuf::FieldMask? value) -> void + | ("selector" name, ::Temporalio::Api::Common::V1::WorkerSelector? value) -> void + | ("resource_id" name, (::String | ::Symbol) value) -> void + end + + class UpdateWorkerConfigResponse < ::Google::Protobuf::AbstractMessage + + # The worker configuration. Will be returned if the command was sent to a single worker. + attr_accessor worker_config(): ::Temporalio::Api::Sdk::V1::WorkerConfig? + def has_worker_config?: () -> bool + def clear_worker_config: () -> void + + attr_reader response(): ::Temporalio::Api::Sdk::V1::WorkerConfig? + def has_response?: () -> bool + def clear_response: () -> void + + type init_map = { + worker_config: (::Temporalio::Api::Sdk::V1::WorkerConfig | ::Temporalio::Api::Sdk::V1::WorkerConfig::init_map)?, + "worker_config" => (::Temporalio::Api::Sdk::V1::WorkerConfig | ::Temporalio::Api::Sdk::V1::WorkerConfig::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("worker_config" name) -> ::Temporalio::Api::Sdk::V1::WorkerConfig? + + def []=: + ("worker_config" name, ::Temporalio::Api::Sdk::V1::WorkerConfig? value) -> void + end + + class DescribeWorkerRequest < ::Google::Protobuf::AbstractMessage + + # Namespace this worker belongs to. + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # Worker instance key to describe. + attr_reader worker_instance_key(): ::String + attr_writer worker_instance_key(): ::String | ::Symbol + def clear_worker_instance_key: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + worker_instance_key: (::String | ::Symbol)?, + "worker_instance_key" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("worker_instance_key" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("worker_instance_key" name, (::String | ::Symbol) value) -> void + end + + class DescribeWorkerResponse < ::Google::Protobuf::AbstractMessage + + attr_accessor worker_info(): ::Temporalio::Api::Worker::V1::WorkerInfo? + def has_worker_info?: () -> bool + def clear_worker_info: () -> void + + type init_map = { + worker_info: (::Temporalio::Api::Worker::V1::WorkerInfo | ::Temporalio::Api::Worker::V1::WorkerInfo::init_map)?, + "worker_info" => (::Temporalio::Api::Worker::V1::WorkerInfo | ::Temporalio::Api::Worker::V1::WorkerInfo::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("worker_info" name) -> ::Temporalio::Api::Worker::V1::WorkerInfo? + + def []=: + ("worker_info" name, ::Temporalio::Api::Worker::V1::WorkerInfo? value) -> void + end + + # Request to pause a workflow execution. + class PauseWorkflowExecutionRequest < ::Google::Protobuf::AbstractMessage + + # Namespace of the workflow to pause. + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # ID of the workflow execution to be paused. Required. + attr_reader workflow_id(): ::String + attr_writer workflow_id(): ::String | ::Symbol + def clear_workflow_id: () -> void + + # Run ID of the workflow execution to be paused. Optional. If not provided, the current run of the workflow will be paused. + attr_reader run_id(): ::String + attr_writer run_id(): ::String | ::Symbol + def clear_run_id: () -> void + + # The identity of the client who initiated this request. + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + # Reason to pause the workflow execution. + attr_reader reason(): ::String + attr_writer reason(): ::String | ::Symbol + def clear_reason: () -> void + + # A unique identifier for this pause request for idempotence. Typically UUIDv4. + attr_reader request_id(): ::String + attr_writer request_id(): ::String | ::Symbol + def clear_request_id: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + workflow_id: (::String | ::Symbol)?, + "workflow_id" => (::String | ::Symbol)?, + run_id: (::String | ::Symbol)?, + "run_id" => (::String | ::Symbol)?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + reason: (::String | ::Symbol)?, + "reason" => (::String | ::Symbol)?, + request_id: (::String | ::Symbol)?, + "request_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("workflow_id" name) -> ::String + | ("run_id" name) -> ::String + | ("identity" name) -> ::String + | ("reason" name) -> ::String + | ("request_id" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("workflow_id" name, (::String | ::Symbol) value) -> void + | ("run_id" name, (::String | ::Symbol) value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + | ("reason" name, (::String | ::Symbol) value) -> void + | ("request_id" name, (::String | ::Symbol) value) -> void + end + + # Response to a successful PauseWorkflowExecution request. + class PauseWorkflowExecutionResponse < ::Google::Protobuf::AbstractMessage + + type init_map = { + } + + def initialize: (?init_map initial_value) -> void + end + + class UnpauseWorkflowExecutionRequest < ::Google::Protobuf::AbstractMessage + + # Namespace of the workflow to unpause. + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # ID of the workflow execution to be paused. Required. + attr_reader workflow_id(): ::String + attr_writer workflow_id(): ::String | ::Symbol + def clear_workflow_id: () -> void + + # Run ID of the workflow execution to be paused. Optional. If not provided, the current run of the workflow will be paused. + attr_reader run_id(): ::String + attr_writer run_id(): ::String | ::Symbol + def clear_run_id: () -> void + + # The identity of the client who initiated this request. + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + # Reason to unpause the workflow execution. + attr_reader reason(): ::String + attr_writer reason(): ::String | ::Symbol + def clear_reason: () -> void + + # A unique identifier for this unpause request for idempotence. Typically UUIDv4. + attr_reader request_id(): ::String + attr_writer request_id(): ::String | ::Symbol + def clear_request_id: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + workflow_id: (::String | ::Symbol)?, + "workflow_id" => (::String | ::Symbol)?, + run_id: (::String | ::Symbol)?, + "run_id" => (::String | ::Symbol)?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + reason: (::String | ::Symbol)?, + "reason" => (::String | ::Symbol)?, + request_id: (::String | ::Symbol)?, + "request_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("workflow_id" name) -> ::String + | ("run_id" name) -> ::String + | ("identity" name) -> ::String + | ("reason" name) -> ::String + | ("request_id" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("workflow_id" name, (::String | ::Symbol) value) -> void + | ("run_id" name, (::String | ::Symbol) value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + | ("reason" name, (::String | ::Symbol) value) -> void + | ("request_id" name, (::String | ::Symbol) value) -> void + end + + # Response to a successful UnpauseWorkflowExecution request. + class UnpauseWorkflowExecutionResponse < ::Google::Protobuf::AbstractMessage + + type init_map = { + } + + def initialize: (?init_map initial_value) -> void + end + + class StartActivityExecutionRequest < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # The identity of the client who initiated this request + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + # A unique identifier for this start request. Typically UUIDv4. + attr_reader request_id(): ::String + attr_writer request_id(): ::String | ::Symbol + def clear_request_id: () -> void + + # 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. + attr_reader activity_id(): ::String + attr_writer activity_id(): ::String | ::Symbol + def clear_activity_id: () -> void + + # The type of the activity, a string that corresponds to a registered activity on a worker. + attr_accessor activity_type(): ::Temporalio::Api::Common::V1::ActivityType? + def has_activity_type?: () -> bool + def clear_activity_type: () -> void + + # Task queue to schedule this activity on. + attr_accessor task_queue(): ::Temporalio::Api::TaskQueue::V1::TaskQueue? + def has_task_queue?: () -> bool + def clear_task_queue: () -> void + + # 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. --) + attr_reader schedule_to_close_timeout(): ::Google::Protobuf::Duration? + attr_writer schedule_to_close_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_schedule_to_close_timeout?: () -> bool + def clear_schedule_to_close_timeout: () -> void + + # 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. --) + attr_reader schedule_to_start_timeout(): ::Google::Protobuf::Duration? + attr_writer schedule_to_start_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_schedule_to_start_timeout?: () -> bool + def clear_schedule_to_start_timeout: () -> void + + # 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. --) + attr_reader start_to_close_timeout(): ::Google::Protobuf::Duration? + attr_writer start_to_close_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_start_to_close_timeout?: () -> bool + def clear_start_to_close_timeout: () -> void + + # Maximum permitted time between successful worker heartbeats. + attr_reader heartbeat_timeout(): ::Google::Protobuf::Duration? + attr_writer heartbeat_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_heartbeat_timeout?: () -> bool + def clear_heartbeat_timeout: () -> void + + # The retry policy for the activity. Will never exceed `schedule_to_close_timeout`. + attr_accessor retry_policy(): ::Temporalio::Api::Common::V1::RetryPolicy? + def has_retry_policy?: () -> bool + def clear_retry_policy: () -> void + + # Serialized arguments to the activity. These are passed as arguments to the activity function. + attr_accessor input(): ::Temporalio::Api::Common::V1::Payloads? + def has_input?: () -> bool + def clear_input: () -> void + + # Defines whether to allow re-using the activity id from a previously *closed* activity. + # The default policy is ACTIVITY_ID_REUSE_POLICY_ALLOW_DUPLICATE. + attr_reader id_reuse_policy(): ::Temporalio::Api::Enums::V1::ActivityIdReusePolicy::names | ::Integer + attr_writer id_reuse_policy(): ::Temporalio::Api::Enums::V1::ActivityIdReusePolicy::names | ::Temporalio::Api::Enums::V1::ActivityIdReusePolicy::strings | ::Integer | ::Float + attr_reader id_reuse_policy_const(): ::Integer + def clear_id_reuse_policy: () -> void + + # Defines how to resolve an activity id conflict with a *running* activity. + # The default policy is ACTIVITY_ID_CONFLICT_POLICY_FAIL. + attr_reader id_conflict_policy(): ::Temporalio::Api::Enums::V1::ActivityIdConflictPolicy::names | ::Integer + attr_writer id_conflict_policy(): ::Temporalio::Api::Enums::V1::ActivityIdConflictPolicy::names | ::Temporalio::Api::Enums::V1::ActivityIdConflictPolicy::strings | ::Integer | ::Float + attr_reader id_conflict_policy_const(): ::Integer + def clear_id_conflict_policy: () -> void + + # Search attributes for indexing. + attr_accessor search_attributes(): ::Temporalio::Api::Common::V1::SearchAttributes? + def has_search_attributes?: () -> bool + def clear_search_attributes: () -> void + + # Header for context propagation and tracing purposes. + attr_accessor header(): ::Temporalio::Api::Common::V1::Header? + def has_header?: () -> bool + def clear_header: () -> void + + # Metadata for use by user interfaces to display the fixed as-of-start summary and details of the activity. + attr_accessor user_metadata(): ::Temporalio::Api::Sdk::V1::UserMetadata? + def has_user_metadata?: () -> bool + def clear_user_metadata: () -> void + + # Priority metadata. + attr_accessor priority(): ::Temporalio::Api::Common::V1::Priority? + def has_priority?: () -> bool + def clear_priority: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + request_id: (::String | ::Symbol)?, + "request_id" => (::String | ::Symbol)?, + activity_id: (::String | ::Symbol)?, + "activity_id" => (::String | ::Symbol)?, + activity_type: (::Temporalio::Api::Common::V1::ActivityType | ::Temporalio::Api::Common::V1::ActivityType::init_map)?, + "activity_type" => (::Temporalio::Api::Common::V1::ActivityType | ::Temporalio::Api::Common::V1::ActivityType::init_map)?, + task_queue: (::Temporalio::Api::TaskQueue::V1::TaskQueue | ::Temporalio::Api::TaskQueue::V1::TaskQueue::init_map)?, + "task_queue" => (::Temporalio::Api::TaskQueue::V1::TaskQueue | ::Temporalio::Api::TaskQueue::V1::TaskQueue::init_map)?, + schedule_to_close_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "schedule_to_close_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + schedule_to_start_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "schedule_to_start_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + start_to_close_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "start_to_close_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + heartbeat_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "heartbeat_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + retry_policy: (::Temporalio::Api::Common::V1::RetryPolicy | ::Temporalio::Api::Common::V1::RetryPolicy::init_map)?, + "retry_policy" => (::Temporalio::Api::Common::V1::RetryPolicy | ::Temporalio::Api::Common::V1::RetryPolicy::init_map)?, + input: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + "input" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + id_reuse_policy: (::Temporalio::Api::Enums::V1::ActivityIdReusePolicy::names | ::Temporalio::Api::Enums::V1::ActivityIdReusePolicy::strings | ::Integer | ::Float)?, + "id_reuse_policy" => (::Temporalio::Api::Enums::V1::ActivityIdReusePolicy::names | ::Temporalio::Api::Enums::V1::ActivityIdReusePolicy::strings | ::Integer | ::Float)?, + id_conflict_policy: (::Temporalio::Api::Enums::V1::ActivityIdConflictPolicy::names | ::Temporalio::Api::Enums::V1::ActivityIdConflictPolicy::strings | ::Integer | ::Float)?, + "id_conflict_policy" => (::Temporalio::Api::Enums::V1::ActivityIdConflictPolicy::names | ::Temporalio::Api::Enums::V1::ActivityIdConflictPolicy::strings | ::Integer | ::Float)?, + search_attributes: (::Temporalio::Api::Common::V1::SearchAttributes | ::Temporalio::Api::Common::V1::SearchAttributes::init_map)?, + "search_attributes" => (::Temporalio::Api::Common::V1::SearchAttributes | ::Temporalio::Api::Common::V1::SearchAttributes::init_map)?, + header: (::Temporalio::Api::Common::V1::Header | ::Temporalio::Api::Common::V1::Header::init_map)?, + "header" => (::Temporalio::Api::Common::V1::Header | ::Temporalio::Api::Common::V1::Header::init_map)?, + user_metadata: (::Temporalio::Api::Sdk::V1::UserMetadata | ::Temporalio::Api::Sdk::V1::UserMetadata::init_map)?, + "user_metadata" => (::Temporalio::Api::Sdk::V1::UserMetadata | ::Temporalio::Api::Sdk::V1::UserMetadata::init_map)?, + priority: (::Temporalio::Api::Common::V1::Priority | ::Temporalio::Api::Common::V1::Priority::init_map)?, + "priority" => (::Temporalio::Api::Common::V1::Priority | ::Temporalio::Api::Common::V1::Priority::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("identity" name) -> ::String + | ("request_id" name) -> ::String + | ("activity_id" name) -> ::String + | ("activity_type" name) -> ::Temporalio::Api::Common::V1::ActivityType? + | ("task_queue" name) -> ::Temporalio::Api::TaskQueue::V1::TaskQueue? + | ("schedule_to_close_timeout" name) -> ::Google::Protobuf::Duration? + | ("schedule_to_start_timeout" name) -> ::Google::Protobuf::Duration? + | ("start_to_close_timeout" name) -> ::Google::Protobuf::Duration? + | ("heartbeat_timeout" name) -> ::Google::Protobuf::Duration? + | ("retry_policy" name) -> ::Temporalio::Api::Common::V1::RetryPolicy? + | ("input" name) -> ::Temporalio::Api::Common::V1::Payloads? + | ("id_reuse_policy" name) -> (::Temporalio::Api::Enums::V1::ActivityIdReusePolicy::names | ::Integer) + | ("id_conflict_policy" name) -> (::Temporalio::Api::Enums::V1::ActivityIdConflictPolicy::names | ::Integer) + | ("search_attributes" name) -> ::Temporalio::Api::Common::V1::SearchAttributes? + | ("header" name) -> ::Temporalio::Api::Common::V1::Header? + | ("user_metadata" name) -> ::Temporalio::Api::Sdk::V1::UserMetadata? + | ("priority" name) -> ::Temporalio::Api::Common::V1::Priority? + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + | ("request_id" name, (::String | ::Symbol) value) -> void + | ("activity_id" name, (::String | ::Symbol) value) -> void + | ("activity_type" name, ::Temporalio::Api::Common::V1::ActivityType? value) -> void + | ("task_queue" name, ::Temporalio::Api::TaskQueue::V1::TaskQueue? value) -> void + | ("schedule_to_close_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("schedule_to_start_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("start_to_close_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("heartbeat_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("retry_policy" name, ::Temporalio::Api::Common::V1::RetryPolicy? value) -> void + | ("input" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void + | ("id_reuse_policy" name, (::Temporalio::Api::Enums::V1::ActivityIdReusePolicy::names | ::Temporalio::Api::Enums::V1::ActivityIdReusePolicy::strings | ::Integer | ::Float) value) -> void + | ("id_conflict_policy" name, (::Temporalio::Api::Enums::V1::ActivityIdConflictPolicy::names | ::Temporalio::Api::Enums::V1::ActivityIdConflictPolicy::strings | ::Integer | ::Float) value) -> void + | ("search_attributes" name, ::Temporalio::Api::Common::V1::SearchAttributes? value) -> void + | ("header" name, ::Temporalio::Api::Common::V1::Header? value) -> void + | ("user_metadata" name, ::Temporalio::Api::Sdk::V1::UserMetadata? value) -> void + | ("priority" name, ::Temporalio::Api::Common::V1::Priority? value) -> void + end + + class StartActivityExecutionResponse < ::Google::Protobuf::AbstractMessage + + # The run ID of the activity that was started - or used (via ACTIVITY_ID_CONFLICT_POLICY_USE_EXISTING). + attr_reader run_id(): ::String + attr_writer run_id(): ::String | ::Symbol + def clear_run_id: () -> void + + # If true, a new activity was started. + attr_accessor started(): bool + def clear_started: () -> void + + type init_map = { + run_id: (::String | ::Symbol)?, + "run_id" => (::String | ::Symbol)?, + started: bool?, + "started" => bool?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("run_id" name) -> ::String + | ("started" name) -> bool + + def []=: + ("run_id" name, (::String | ::Symbol) value) -> void + | ("started" name, bool value) -> void + end + + class DescribeActivityExecutionRequest < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_reader activity_id(): ::String + attr_writer activity_id(): ::String | ::Symbol + def clear_activity_id: () -> void + + # Activity run ID. If empty the request targets the latest run. + attr_reader run_id(): ::String + attr_writer run_id(): ::String | ::Symbol + def clear_run_id: () -> void + + # Include the input field in the response. + attr_accessor include_input(): bool + def clear_include_input: () -> void + + # Include the outcome (result/failure) in the response if the activity has completed. + attr_accessor include_outcome(): bool + def clear_include_outcome: () -> void + + # 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. + attr_accessor long_poll_token(): ::String + def clear_long_poll_token: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + activity_id: (::String | ::Symbol)?, + "activity_id" => (::String | ::Symbol)?, + run_id: (::String | ::Symbol)?, + "run_id" => (::String | ::Symbol)?, + include_input: bool?, + "include_input" => bool?, + include_outcome: bool?, + "include_outcome" => bool?, + long_poll_token: ::String?, + "long_poll_token" => ::String?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("activity_id" name) -> ::String + | ("run_id" name) -> ::String + | ("include_input" name) -> bool + | ("include_outcome" name) -> bool + | ("long_poll_token" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("activity_id" name, (::String | ::Symbol) value) -> void + | ("run_id" name, (::String | ::Symbol) value) -> void + | ("include_input" name, bool value) -> void + | ("include_outcome" name, bool value) -> void + | ("long_poll_token" name, ::String value) -> void + end + + class DescribeActivityExecutionResponse < ::Google::Protobuf::AbstractMessage + + # The run ID of the activity, useful when run_id was not specified in the request. + attr_reader run_id(): ::String + attr_writer run_id(): ::String | ::Symbol + def clear_run_id: () -> void + + # Information about the activity execution. + attr_accessor info(): ::Temporalio::Api::Activity::V1::ActivityExecutionInfo? + def has_info?: () -> bool + def clear_info: () -> void + + # Serialized activity input, passed as arguments to the activity function. + # Only set if include_input was true in the request. + attr_accessor input(): ::Temporalio::Api::Common::V1::Payloads? + def has_input?: () -> bool + def clear_input: () -> void + + # Only set if the activity is completed and include_outcome was true in the request. + attr_accessor outcome(): ::Temporalio::Api::Activity::V1::ActivityExecutionOutcome? + def has_outcome?: () -> bool + def clear_outcome: () -> void + + # Token for follow-on long-poll requests. Absent only if the activity is complete. + attr_accessor long_poll_token(): ::String + def clear_long_poll_token: () -> void + + type init_map = { + run_id: (::String | ::Symbol)?, + "run_id" => (::String | ::Symbol)?, + info: (::Temporalio::Api::Activity::V1::ActivityExecutionInfo | ::Temporalio::Api::Activity::V1::ActivityExecutionInfo::init_map)?, + "info" => (::Temporalio::Api::Activity::V1::ActivityExecutionInfo | ::Temporalio::Api::Activity::V1::ActivityExecutionInfo::init_map)?, + input: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + "input" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + outcome: (::Temporalio::Api::Activity::V1::ActivityExecutionOutcome | ::Temporalio::Api::Activity::V1::ActivityExecutionOutcome::init_map)?, + "outcome" => (::Temporalio::Api::Activity::V1::ActivityExecutionOutcome | ::Temporalio::Api::Activity::V1::ActivityExecutionOutcome::init_map)?, + long_poll_token: ::String?, + "long_poll_token" => ::String?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("run_id" name) -> ::String + | ("info" name) -> ::Temporalio::Api::Activity::V1::ActivityExecutionInfo? + | ("input" name) -> ::Temporalio::Api::Common::V1::Payloads? + | ("outcome" name) -> ::Temporalio::Api::Activity::V1::ActivityExecutionOutcome? + | ("long_poll_token" name) -> ::String + + def []=: + ("run_id" name, (::String | ::Symbol) value) -> void + | ("info" name, ::Temporalio::Api::Activity::V1::ActivityExecutionInfo? value) -> void + | ("input" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void + | ("outcome" name, ::Temporalio::Api::Activity::V1::ActivityExecutionOutcome? value) -> void + | ("long_poll_token" name, ::String value) -> void + end + + class PollActivityExecutionRequest < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_reader activity_id(): ::String + attr_writer activity_id(): ::String | ::Symbol + def clear_activity_id: () -> void + + # Activity run ID. If empty the request targets the latest run. + attr_reader run_id(): ::String + attr_writer run_id(): ::String | ::Symbol + def clear_run_id: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + activity_id: (::String | ::Symbol)?, + "activity_id" => (::String | ::Symbol)?, + run_id: (::String | ::Symbol)?, + "run_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("activity_id" name) -> ::String + | ("run_id" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("activity_id" name, (::String | ::Symbol) value) -> void + | ("run_id" name, (::String | ::Symbol) value) -> void + end + + class PollActivityExecutionResponse < ::Google::Protobuf::AbstractMessage + + # The run ID of the activity, useful when run_id was not specified in the request. + attr_reader run_id(): ::String + attr_writer run_id(): ::String | ::Symbol + def clear_run_id: () -> void + + attr_accessor outcome(): ::Temporalio::Api::Activity::V1::ActivityExecutionOutcome? + def has_outcome?: () -> bool + def clear_outcome: () -> void + + type init_map = { + run_id: (::String | ::Symbol)?, + "run_id" => (::String | ::Symbol)?, + outcome: (::Temporalio::Api::Activity::V1::ActivityExecutionOutcome | ::Temporalio::Api::Activity::V1::ActivityExecutionOutcome::init_map)?, + "outcome" => (::Temporalio::Api::Activity::V1::ActivityExecutionOutcome | ::Temporalio::Api::Activity::V1::ActivityExecutionOutcome::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("run_id" name) -> ::String + | ("outcome" name) -> ::Temporalio::Api::Activity::V1::ActivityExecutionOutcome? + + def []=: + ("run_id" name, (::String | ::Symbol) value) -> void + | ("outcome" name, ::Temporalio::Api::Activity::V1::ActivityExecutionOutcome? value) -> void + end + + class ListActivityExecutionsRequest < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # Max number of executions to return per page. + attr_reader page_size(): ::Integer + attr_writer page_size(): ::Integer | ::Float + def clear_page_size: () -> void + + # Token returned in ListActivityExecutionsResponse. + attr_accessor next_page_token(): ::String + def clear_next_page_token: () -> void + + # Visibility query, see https://docs.temporal.io/list-filter for the syntax. + attr_reader query(): ::String + attr_writer query(): ::String | ::Symbol + def clear_query: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + page_size: (::Integer | ::Float)?, + "page_size" => (::Integer | ::Float)?, + next_page_token: ::String?, + "next_page_token" => ::String?, + query: (::String | ::Symbol)?, + "query" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("page_size" name) -> ::Integer + | ("next_page_token" name) -> ::String + | ("query" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("page_size" name, (::Integer | ::Float) value) -> void + | ("next_page_token" name, ::String value) -> void + | ("query" name, (::String | ::Symbol) value) -> void + end + + class ListActivityExecutionsResponse < ::Google::Protobuf::AbstractMessage + + attr_accessor executions(): ::Google::Protobuf::RepeatedField + def clear_executions: () -> void + + # Token to use to fetch the next page. If empty, there is no next page. + attr_accessor next_page_token(): ::String + def clear_next_page_token: () -> void + + type init_map = { + executions: ::Array[::Temporalio::Api::Activity::V1::ActivityExecutionListInfo]?, + "executions" => ::Array[::Temporalio::Api::Activity::V1::ActivityExecutionListInfo]?, + next_page_token: ::String?, + "next_page_token" => ::String?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("executions" name) -> ::Google::Protobuf::RepeatedField + | ("next_page_token" name) -> ::String + + def []=: + ("executions" name, ::Google::Protobuf::RepeatedField value) -> void + | ("next_page_token" name, ::String value) -> void + end + + class CountActivityExecutionsRequest < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # Visibility query, see https://docs.temporal.io/list-filter for the syntax. + attr_reader query(): ::String + attr_writer query(): ::String | ::Symbol + def clear_query: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + query: (::String | ::Symbol)?, + "query" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("query" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("query" name, (::String | ::Symbol) value) -> void + end + + class CountActivityExecutionsResponse < ::Google::Protobuf::AbstractMessage + class AggregationGroup < ::Google::Protobuf::AbstractMessage + + attr_accessor group_values(): ::Google::Protobuf::RepeatedField + def clear_group_values: () -> void + + attr_reader count(): ::Integer + attr_writer count(): ::Integer | ::Float + def clear_count: () -> void + + type init_map = { + group_values: ::Array[::Temporalio::Api::Common::V1::Payload]?, + "group_values" => ::Array[::Temporalio::Api::Common::V1::Payload]?, + count: (::Integer | ::Float)?, + "count" => (::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("group_values" name) -> ::Google::Protobuf::RepeatedField + | ("count" name) -> ::Integer + + def []=: + ("group_values" name, ::Google::Protobuf::RepeatedField value) -> void + | ("count" name, (::Integer | ::Float) value) -> void + end + + # 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. + attr_reader count(): ::Integer + attr_writer count(): ::Integer | ::Float + def clear_count: () -> void + + # 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. + attr_accessor groups(): ::Google::Protobuf::RepeatedField + def clear_groups: () -> void + + type init_map = { + count: (::Integer | ::Float)?, + "count" => (::Integer | ::Float)?, + groups: ::Array[::Temporalio::Api::WorkflowService::V1::CountActivityExecutionsResponse::AggregationGroup]?, + "groups" => ::Array[::Temporalio::Api::WorkflowService::V1::CountActivityExecutionsResponse::AggregationGroup]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("count" name) -> ::Integer + | ("groups" name) -> ::Google::Protobuf::RepeatedField + + def []=: + ("count" name, (::Integer | ::Float) value) -> void + | ("groups" name, ::Google::Protobuf::RepeatedField value) -> void + end + + class RequestCancelActivityExecutionRequest < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_reader activity_id(): ::String + attr_writer activity_id(): ::String | ::Symbol + def clear_activity_id: () -> void + + # Activity run ID, targets the latest run if run_id is empty. + attr_reader run_id(): ::String + attr_writer run_id(): ::String | ::Symbol + def clear_run_id: () -> void + + # The identity of the worker/client. + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + # Used to de-dupe cancellation requests. + attr_reader request_id(): ::String + attr_writer request_id(): ::String | ::Symbol + def clear_request_id: () -> void + + # Reason for requesting the cancellation, recorded and available via the PollActivityExecution API. + # Not propagated to a worker if an activity attempt is currently running. + attr_reader reason(): ::String + attr_writer reason(): ::String | ::Symbol + def clear_reason: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + activity_id: (::String | ::Symbol)?, + "activity_id" => (::String | ::Symbol)?, + run_id: (::String | ::Symbol)?, + "run_id" => (::String | ::Symbol)?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + request_id: (::String | ::Symbol)?, + "request_id" => (::String | ::Symbol)?, + reason: (::String | ::Symbol)?, + "reason" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("activity_id" name) -> ::String + | ("run_id" name) -> ::String + | ("identity" name) -> ::String + | ("request_id" name) -> ::String + | ("reason" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("activity_id" name, (::String | ::Symbol) value) -> void + | ("run_id" name, (::String | ::Symbol) value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + | ("request_id" name, (::String | ::Symbol) value) -> void + | ("reason" name, (::String | ::Symbol) value) -> void + end + + class RequestCancelActivityExecutionResponse < ::Google::Protobuf::AbstractMessage + + type init_map = { + } + + def initialize: (?init_map initial_value) -> void + end + + class TerminateActivityExecutionRequest < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_reader activity_id(): ::String + attr_writer activity_id(): ::String | ::Symbol + def clear_activity_id: () -> void + + # Activity run ID, targets the latest run if run_id is empty. + attr_reader run_id(): ::String + attr_writer run_id(): ::String | ::Symbol + def clear_run_id: () -> void + + # The identity of the worker/client. + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + # Used to de-dupe termination requests. + attr_reader request_id(): ::String + attr_writer request_id(): ::String | ::Symbol + def clear_request_id: () -> void + + # Reason for requesting the termination, recorded in in the activity's result failure outcome. + attr_reader reason(): ::String + attr_writer reason(): ::String | ::Symbol + def clear_reason: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + activity_id: (::String | ::Symbol)?, + "activity_id" => (::String | ::Symbol)?, + run_id: (::String | ::Symbol)?, + "run_id" => (::String | ::Symbol)?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + request_id: (::String | ::Symbol)?, + "request_id" => (::String | ::Symbol)?, + reason: (::String | ::Symbol)?, + "reason" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("activity_id" name) -> ::String + | ("run_id" name) -> ::String + | ("identity" name) -> ::String + | ("request_id" name) -> ::String + | ("reason" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("activity_id" name, (::String | ::Symbol) value) -> void + | ("run_id" name, (::String | ::Symbol) value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + | ("request_id" name, (::String | ::Symbol) value) -> void + | ("reason" name, (::String | ::Symbol) value) -> void + end + + class TerminateActivityExecutionResponse < ::Google::Protobuf::AbstractMessage + + type init_map = { + } + + def initialize: (?init_map initial_value) -> void + end + + class DeleteActivityExecutionRequest < ::Google::Protobuf::AbstractMessage + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_reader activity_id(): ::String + attr_writer activity_id(): ::String | ::Symbol + def clear_activity_id: () -> void + + # Activity run ID, targets the latest run if run_id is empty. + attr_reader run_id(): ::String + attr_writer run_id(): ::String | ::Symbol + def clear_run_id: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + activity_id: (::String | ::Symbol)?, + "activity_id" => (::String | ::Symbol)?, + run_id: (::String | ::Symbol)?, + "run_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("activity_id" name) -> ::String + | ("run_id" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("activity_id" name, (::String | ::Symbol) value) -> void + | ("run_id" name, (::String | ::Symbol) value) -> void + end + + class DeleteActivityExecutionResponse < ::Google::Protobuf::AbstractMessage + + type init_map = { + } + + def initialize: (?init_map initial_value) -> void + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/api/workflowservice/v1/service.rbs b/temporalio/sig/temporalio/api/workflowservice/v1/service.rbs new file mode 100644 index 00000000..a8266721 --- /dev/null +++ b/temporalio/sig/temporalio/api/workflowservice/v1/service.rbs @@ -0,0 +1,23 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/api/workflowservice/v1/service.proto + +module Temporalio + module Api + module WorkflowService + module V1 + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/client/connection/cloud_service.rbs b/temporalio/sig/temporalio/client/connection/cloud_service.rbs index 59ea6a1b..1e99048c 100644 --- a/temporalio/sig/temporalio/client/connection/cloud_service.rbs +++ b/temporalio/sig/temporalio/client/connection/cloud_service.rbs @@ -6,237 +6,237 @@ module Temporalio class CloudService < Service def initialize: (Connection) -> void def get_users: ( - untyped request, + Temporalio::Api::Cloud::CloudService::V1::GetUsersRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::Cloud::CloudService::V1::GetUsersResponse def get_user: ( - untyped request, + Temporalio::Api::Cloud::CloudService::V1::GetUserRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::Cloud::CloudService::V1::GetUserResponse def create_user: ( - untyped request, + Temporalio::Api::Cloud::CloudService::V1::CreateUserRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::Cloud::CloudService::V1::CreateUserResponse def update_user: ( - untyped request, + Temporalio::Api::Cloud::CloudService::V1::UpdateUserRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::Cloud::CloudService::V1::UpdateUserResponse def delete_user: ( - untyped request, + Temporalio::Api::Cloud::CloudService::V1::DeleteUserRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::Cloud::CloudService::V1::DeleteUserResponse def set_user_namespace_access: ( - untyped request, + Temporalio::Api::Cloud::CloudService::V1::SetUserNamespaceAccessRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::Cloud::CloudService::V1::SetUserNamespaceAccessResponse def get_async_operation: ( - untyped request, + Temporalio::Api::Cloud::CloudService::V1::GetAsyncOperationRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::Cloud::CloudService::V1::GetAsyncOperationResponse def create_namespace: ( - untyped request, + Temporalio::Api::Cloud::CloudService::V1::CreateNamespaceRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::Cloud::CloudService::V1::CreateNamespaceResponse def get_namespaces: ( - untyped request, + Temporalio::Api::Cloud::CloudService::V1::GetNamespacesRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::Cloud::CloudService::V1::GetNamespacesResponse def get_namespace: ( - untyped request, + Temporalio::Api::Cloud::CloudService::V1::GetNamespaceRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::Cloud::CloudService::V1::GetNamespaceResponse def update_namespace: ( - untyped request, + Temporalio::Api::Cloud::CloudService::V1::UpdateNamespaceRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::Cloud::CloudService::V1::UpdateNamespaceResponse def rename_custom_search_attribute: ( - untyped request, + Temporalio::Api::Cloud::CloudService::V1::RenameCustomSearchAttributeRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::Cloud::CloudService::V1::RenameCustomSearchAttributeResponse def delete_namespace: ( - untyped request, + Temporalio::Api::Cloud::CloudService::V1::DeleteNamespaceRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::Cloud::CloudService::V1::DeleteNamespaceResponse def failover_namespace_region: ( - untyped request, + Temporalio::Api::Cloud::CloudService::V1::FailoverNamespaceRegionRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::Cloud::CloudService::V1::FailoverNamespaceRegionResponse def add_namespace_region: ( - untyped request, + Temporalio::Api::Cloud::CloudService::V1::AddNamespaceRegionRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::Cloud::CloudService::V1::AddNamespaceRegionResponse def delete_namespace_region: ( - untyped request, + Temporalio::Api::Cloud::CloudService::V1::DeleteNamespaceRegionRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::Cloud::CloudService::V1::DeleteNamespaceRegionResponse def get_regions: ( - untyped request, + Temporalio::Api::Cloud::CloudService::V1::GetRegionsRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::Cloud::CloudService::V1::GetRegionsResponse def get_region: ( - untyped request, + Temporalio::Api::Cloud::CloudService::V1::GetRegionRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::Cloud::CloudService::V1::GetRegionResponse def get_api_keys: ( - untyped request, + Temporalio::Api::Cloud::CloudService::V1::GetApiKeysRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::Cloud::CloudService::V1::GetApiKeysResponse def get_api_key: ( - untyped request, + Temporalio::Api::Cloud::CloudService::V1::GetApiKeyRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::Cloud::CloudService::V1::GetApiKeyResponse def create_api_key: ( - untyped request, + Temporalio::Api::Cloud::CloudService::V1::CreateApiKeyRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::Cloud::CloudService::V1::CreateApiKeyResponse def update_api_key: ( - untyped request, + Temporalio::Api::Cloud::CloudService::V1::UpdateApiKeyRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::Cloud::CloudService::V1::UpdateApiKeyResponse def delete_api_key: ( - untyped request, + Temporalio::Api::Cloud::CloudService::V1::DeleteApiKeyRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::Cloud::CloudService::V1::DeleteApiKeyResponse def get_nexus_endpoints: ( - untyped request, + Temporalio::Api::Cloud::CloudService::V1::GetNexusEndpointsRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::Cloud::CloudService::V1::GetNexusEndpointsResponse def get_nexus_endpoint: ( - untyped request, + Temporalio::Api::Cloud::CloudService::V1::GetNexusEndpointRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::Cloud::CloudService::V1::GetNexusEndpointResponse def create_nexus_endpoint: ( - untyped request, + Temporalio::Api::Cloud::CloudService::V1::CreateNexusEndpointRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::Cloud::CloudService::V1::CreateNexusEndpointResponse def update_nexus_endpoint: ( - untyped request, + Temporalio::Api::Cloud::CloudService::V1::UpdateNexusEndpointRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::Cloud::CloudService::V1::UpdateNexusEndpointResponse def delete_nexus_endpoint: ( - untyped request, + Temporalio::Api::Cloud::CloudService::V1::DeleteNexusEndpointRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::Cloud::CloudService::V1::DeleteNexusEndpointResponse def get_user_groups: ( - untyped request, + Temporalio::Api::Cloud::CloudService::V1::GetUserGroupsRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::Cloud::CloudService::V1::GetUserGroupsResponse def get_user_group: ( - untyped request, + Temporalio::Api::Cloud::CloudService::V1::GetUserGroupRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::Cloud::CloudService::V1::GetUserGroupResponse def create_user_group: ( - untyped request, + Temporalio::Api::Cloud::CloudService::V1::CreateUserGroupRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::Cloud::CloudService::V1::CreateUserGroupResponse def update_user_group: ( - untyped request, + Temporalio::Api::Cloud::CloudService::V1::UpdateUserGroupRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::Cloud::CloudService::V1::UpdateUserGroupResponse def delete_user_group: ( - untyped request, + Temporalio::Api::Cloud::CloudService::V1::DeleteUserGroupRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::Cloud::CloudService::V1::DeleteUserGroupResponse def set_user_group_namespace_access: ( - untyped request, + Temporalio::Api::Cloud::CloudService::V1::SetUserGroupNamespaceAccessRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::Cloud::CloudService::V1::SetUserGroupNamespaceAccessResponse def add_user_group_member: ( - untyped request, + Temporalio::Api::Cloud::CloudService::V1::AddUserGroupMemberRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::Cloud::CloudService::V1::AddUserGroupMemberResponse def remove_user_group_member: ( - untyped request, + Temporalio::Api::Cloud::CloudService::V1::RemoveUserGroupMemberRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::Cloud::CloudService::V1::RemoveUserGroupMemberResponse def get_user_group_members: ( - untyped request, + Temporalio::Api::Cloud::CloudService::V1::GetUserGroupMembersRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::Cloud::CloudService::V1::GetUserGroupMembersResponse def create_service_account: ( - untyped request, + Temporalio::Api::Cloud::CloudService::V1::CreateServiceAccountRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::Cloud::CloudService::V1::CreateServiceAccountResponse def get_service_account: ( - untyped request, + Temporalio::Api::Cloud::CloudService::V1::GetServiceAccountRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::Cloud::CloudService::V1::GetServiceAccountResponse def get_service_accounts: ( - untyped request, + Temporalio::Api::Cloud::CloudService::V1::GetServiceAccountsRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::Cloud::CloudService::V1::GetServiceAccountsResponse def update_service_account: ( - untyped request, + Temporalio::Api::Cloud::CloudService::V1::UpdateServiceAccountRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::Cloud::CloudService::V1::UpdateServiceAccountResponse def set_service_account_namespace_access: ( - untyped request, + Temporalio::Api::Cloud::CloudService::V1::SetServiceAccountNamespaceAccessRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::Cloud::CloudService::V1::SetServiceAccountNamespaceAccessResponse def delete_service_account: ( - untyped request, + Temporalio::Api::Cloud::CloudService::V1::DeleteServiceAccountRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::Cloud::CloudService::V1::DeleteServiceAccountResponse def get_usage: ( - untyped request, + Temporalio::Api::Cloud::CloudService::V1::GetUsageRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::Cloud::CloudService::V1::GetUsageResponse def get_account: ( - untyped request, + Temporalio::Api::Cloud::CloudService::V1::GetAccountRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::Cloud::CloudService::V1::GetAccountResponse def update_account: ( - untyped request, + Temporalio::Api::Cloud::CloudService::V1::UpdateAccountRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::Cloud::CloudService::V1::UpdateAccountResponse def create_namespace_export_sink: ( - untyped request, + Temporalio::Api::Cloud::CloudService::V1::CreateNamespaceExportSinkRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::Cloud::CloudService::V1::CreateNamespaceExportSinkResponse def get_namespace_export_sink: ( - untyped request, + Temporalio::Api::Cloud::CloudService::V1::GetNamespaceExportSinkRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::Cloud::CloudService::V1::GetNamespaceExportSinkResponse def get_namespace_export_sinks: ( - untyped request, + Temporalio::Api::Cloud::CloudService::V1::GetNamespaceExportSinksRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::Cloud::CloudService::V1::GetNamespaceExportSinksResponse def update_namespace_export_sink: ( - untyped request, + Temporalio::Api::Cloud::CloudService::V1::UpdateNamespaceExportSinkRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::Cloud::CloudService::V1::UpdateNamespaceExportSinkResponse def delete_namespace_export_sink: ( - untyped request, + Temporalio::Api::Cloud::CloudService::V1::DeleteNamespaceExportSinkRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::Cloud::CloudService::V1::DeleteNamespaceExportSinkResponse def validate_namespace_export_sink: ( - untyped request, + Temporalio::Api::Cloud::CloudService::V1::ValidateNamespaceExportSinkRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::Cloud::CloudService::V1::ValidateNamespaceExportSinkResponse def update_namespace_tags: ( - untyped request, + Temporalio::Api::Cloud::CloudService::V1::UpdateNamespaceTagsRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::Cloud::CloudService::V1::UpdateNamespaceTagsResponse def create_connectivity_rule: ( - untyped request, + Temporalio::Api::Cloud::CloudService::V1::CreateConnectivityRuleRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::Cloud::CloudService::V1::CreateConnectivityRuleResponse def get_connectivity_rule: ( - untyped request, + Temporalio::Api::Cloud::CloudService::V1::GetConnectivityRuleRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::Cloud::CloudService::V1::GetConnectivityRuleResponse def get_connectivity_rules: ( - untyped request, + Temporalio::Api::Cloud::CloudService::V1::GetConnectivityRulesRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::Cloud::CloudService::V1::GetConnectivityRulesResponse def delete_connectivity_rule: ( - untyped request, + Temporalio::Api::Cloud::CloudService::V1::DeleteConnectivityRuleRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::Cloud::CloudService::V1::DeleteConnectivityRuleResponse def validate_account_audit_log_sink: ( - untyped request, + Temporalio::Api::Cloud::CloudService::V1::ValidateAccountAuditLogSinkRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::Cloud::CloudService::V1::ValidateAccountAuditLogSinkResponse end end end diff --git a/temporalio/sig/temporalio/client/connection/operator_service.rbs b/temporalio/sig/temporalio/client/connection/operator_service.rbs index 6c69c26d..70b6686b 100644 --- a/temporalio/sig/temporalio/client/connection/operator_service.rbs +++ b/temporalio/sig/temporalio/client/connection/operator_service.rbs @@ -6,53 +6,53 @@ module Temporalio class OperatorService < Service def initialize: (Connection) -> void def add_search_attributes: ( - untyped request, + Temporalio::Api::OperatorService::V1::AddSearchAttributesRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::OperatorService::V1::AddSearchAttributesResponse def remove_search_attributes: ( - untyped request, + Temporalio::Api::OperatorService::V1::RemoveSearchAttributesRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::OperatorService::V1::RemoveSearchAttributesResponse def list_search_attributes: ( - untyped request, + Temporalio::Api::OperatorService::V1::ListSearchAttributesRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::OperatorService::V1::ListSearchAttributesResponse def delete_namespace: ( - untyped request, + Temporalio::Api::OperatorService::V1::DeleteNamespaceRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::OperatorService::V1::DeleteNamespaceResponse def add_or_update_remote_cluster: ( - untyped request, + Temporalio::Api::OperatorService::V1::AddOrUpdateRemoteClusterRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::OperatorService::V1::AddOrUpdateRemoteClusterResponse def remove_remote_cluster: ( - untyped request, + Temporalio::Api::OperatorService::V1::RemoveRemoteClusterRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::OperatorService::V1::RemoveRemoteClusterResponse def list_clusters: ( - untyped request, + Temporalio::Api::OperatorService::V1::ListClustersRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::OperatorService::V1::ListClustersResponse def get_nexus_endpoint: ( - untyped request, + Temporalio::Api::OperatorService::V1::GetNexusEndpointRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::OperatorService::V1::GetNexusEndpointResponse def create_nexus_endpoint: ( - untyped request, + Temporalio::Api::OperatorService::V1::CreateNexusEndpointRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::OperatorService::V1::CreateNexusEndpointResponse def update_nexus_endpoint: ( - untyped request, + Temporalio::Api::OperatorService::V1::UpdateNexusEndpointRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::OperatorService::V1::UpdateNexusEndpointResponse def delete_nexus_endpoint: ( - untyped request, + Temporalio::Api::OperatorService::V1::DeleteNexusEndpointRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::OperatorService::V1::DeleteNexusEndpointResponse def list_nexus_endpoints: ( - untyped request, + Temporalio::Api::OperatorService::V1::ListNexusEndpointsRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::OperatorService::V1::ListNexusEndpointsResponse end end end diff --git a/temporalio/sig/temporalio/client/connection/service.rbs b/temporalio/sig/temporalio/client/connection/service.rbs index 8f3b2d75..fe2755a8 100644 --- a/temporalio/sig/temporalio/client/connection/service.rbs +++ b/temporalio/sig/temporalio/client/connection/service.rbs @@ -4,14 +4,14 @@ module Temporalio class Service def initialize: (Connection, untyped) -> void - def invoke_rpc: [REQ < Object, RESP < Object] ( + def invoke_rpc: ( rpc: String, - request_class: class REQ, - response_class: class RESP, - request: REQ, + request_class: untyped, + response_class: untyped, + request: ::Google::Protobuf::AbstractMessage, rpc_options: RPCOptions? - ) -> RESP + ) -> untyped end end end -end \ No newline at end of file +end diff --git a/temporalio/sig/temporalio/client/connection/test_service.rbs b/temporalio/sig/temporalio/client/connection/test_service.rbs index cef27296..6f996194 100644 --- a/temporalio/sig/temporalio/client/connection/test_service.rbs +++ b/temporalio/sig/temporalio/client/connection/test_service.rbs @@ -6,29 +6,29 @@ module Temporalio class TestService < Service def initialize: (Connection) -> void def lock_time_skipping: ( - untyped request, + Temporalio::Api::TestService::V1::LockTimeSkippingRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::TestService::V1::LockTimeSkippingResponse def unlock_time_skipping: ( - untyped request, + Temporalio::Api::TestService::V1::UnlockTimeSkippingRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::TestService::V1::UnlockTimeSkippingResponse def sleep: ( - untyped request, + Temporalio::Api::TestService::V1::SleepRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::TestService::V1::SleepResponse def sleep_until: ( - untyped request, + Temporalio::Api::TestService::V1::SleepUntilRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::TestService::V1::SleepResponse def unlock_time_skipping_with_sleep: ( - untyped request, + Temporalio::Api::TestService::V1::SleepRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::TestService::V1::SleepResponse def get_current_time: ( - untyped request, + Google::Protobuf::Empty request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::TestService::V1::GetCurrentTimeResponse end end end diff --git a/temporalio/sig/temporalio/client/connection/workflow_service.rbs b/temporalio/sig/temporalio/client/connection/workflow_service.rbs index a89066f1..d2250e30 100644 --- a/temporalio/sig/temporalio/client/connection/workflow_service.rbs +++ b/temporalio/sig/temporalio/client/connection/workflow_service.rbs @@ -6,425 +6,425 @@ module Temporalio class WorkflowService < Service def initialize: (Connection) -> void def register_namespace: ( - untyped request, + Temporalio::Api::WorkflowService::V1::RegisterNamespaceRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::RegisterNamespaceResponse def describe_namespace: ( - untyped request, + Temporalio::Api::WorkflowService::V1::DescribeNamespaceRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::DescribeNamespaceResponse def list_namespaces: ( - untyped request, + Temporalio::Api::WorkflowService::V1::ListNamespacesRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::ListNamespacesResponse def update_namespace: ( - untyped request, + Temporalio::Api::WorkflowService::V1::UpdateNamespaceRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::UpdateNamespaceResponse def deprecate_namespace: ( - untyped request, + Temporalio::Api::WorkflowService::V1::DeprecateNamespaceRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::DeprecateNamespaceResponse def start_workflow_execution: ( - untyped request, + Temporalio::Api::WorkflowService::V1::StartWorkflowExecutionRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::StartWorkflowExecutionResponse def execute_multi_operation: ( - untyped request, + Temporalio::Api::WorkflowService::V1::ExecuteMultiOperationRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::ExecuteMultiOperationResponse def get_workflow_execution_history: ( - untyped request, + Temporalio::Api::WorkflowService::V1::GetWorkflowExecutionHistoryRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::GetWorkflowExecutionHistoryResponse def get_workflow_execution_history_reverse: ( - untyped request, + Temporalio::Api::WorkflowService::V1::GetWorkflowExecutionHistoryReverseRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::GetWorkflowExecutionHistoryReverseResponse def poll_workflow_task_queue: ( - untyped request, + Temporalio::Api::WorkflowService::V1::PollWorkflowTaskQueueRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::PollWorkflowTaskQueueResponse def respond_workflow_task_completed: ( - untyped request, + Temporalio::Api::WorkflowService::V1::RespondWorkflowTaskCompletedRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::RespondWorkflowTaskCompletedResponse def respond_workflow_task_failed: ( - untyped request, + Temporalio::Api::WorkflowService::V1::RespondWorkflowTaskFailedRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::RespondWorkflowTaskFailedResponse def poll_activity_task_queue: ( - untyped request, + Temporalio::Api::WorkflowService::V1::PollActivityTaskQueueRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::PollActivityTaskQueueResponse def record_activity_task_heartbeat: ( - untyped request, + Temporalio::Api::WorkflowService::V1::RecordActivityTaskHeartbeatRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::RecordActivityTaskHeartbeatResponse def record_activity_task_heartbeat_by_id: ( - untyped request, + Temporalio::Api::WorkflowService::V1::RecordActivityTaskHeartbeatByIdRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::RecordActivityTaskHeartbeatByIdResponse def respond_activity_task_completed: ( - untyped request, + Temporalio::Api::WorkflowService::V1::RespondActivityTaskCompletedRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::RespondActivityTaskCompletedResponse def respond_activity_task_completed_by_id: ( - untyped request, + Temporalio::Api::WorkflowService::V1::RespondActivityTaskCompletedByIdRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::RespondActivityTaskCompletedByIdResponse def respond_activity_task_failed: ( - untyped request, + Temporalio::Api::WorkflowService::V1::RespondActivityTaskFailedRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::RespondActivityTaskFailedResponse def respond_activity_task_failed_by_id: ( - untyped request, + Temporalio::Api::WorkflowService::V1::RespondActivityTaskFailedByIdRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::RespondActivityTaskFailedByIdResponse def respond_activity_task_canceled: ( - untyped request, + Temporalio::Api::WorkflowService::V1::RespondActivityTaskCanceledRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::RespondActivityTaskCanceledResponse def respond_activity_task_canceled_by_id: ( - untyped request, + Temporalio::Api::WorkflowService::V1::RespondActivityTaskCanceledByIdRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::RespondActivityTaskCanceledByIdResponse def request_cancel_workflow_execution: ( - untyped request, + Temporalio::Api::WorkflowService::V1::RequestCancelWorkflowExecutionRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::RequestCancelWorkflowExecutionResponse def signal_workflow_execution: ( - untyped request, + Temporalio::Api::WorkflowService::V1::SignalWorkflowExecutionRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::SignalWorkflowExecutionResponse def signal_with_start_workflow_execution: ( - untyped request, + Temporalio::Api::WorkflowService::V1::SignalWithStartWorkflowExecutionRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::SignalWithStartWorkflowExecutionResponse def reset_workflow_execution: ( - untyped request, + Temporalio::Api::WorkflowService::V1::ResetWorkflowExecutionRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::ResetWorkflowExecutionResponse def terminate_workflow_execution: ( - untyped request, + Temporalio::Api::WorkflowService::V1::TerminateWorkflowExecutionRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::TerminateWorkflowExecutionResponse def delete_workflow_execution: ( - untyped request, + Temporalio::Api::WorkflowService::V1::DeleteWorkflowExecutionRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::DeleteWorkflowExecutionResponse def list_open_workflow_executions: ( - untyped request, + Temporalio::Api::WorkflowService::V1::ListOpenWorkflowExecutionsRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::ListOpenWorkflowExecutionsResponse def list_closed_workflow_executions: ( - untyped request, + Temporalio::Api::WorkflowService::V1::ListClosedWorkflowExecutionsRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::ListClosedWorkflowExecutionsResponse def list_workflow_executions: ( - untyped request, + Temporalio::Api::WorkflowService::V1::ListWorkflowExecutionsRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::ListWorkflowExecutionsResponse def list_archived_workflow_executions: ( - untyped request, + Temporalio::Api::WorkflowService::V1::ListArchivedWorkflowExecutionsRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::ListArchivedWorkflowExecutionsResponse def scan_workflow_executions: ( - untyped request, + Temporalio::Api::WorkflowService::V1::ScanWorkflowExecutionsRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::ScanWorkflowExecutionsResponse def count_workflow_executions: ( - untyped request, + Temporalio::Api::WorkflowService::V1::CountWorkflowExecutionsRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::CountWorkflowExecutionsResponse def get_search_attributes: ( - untyped request, + Temporalio::Api::WorkflowService::V1::GetSearchAttributesRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::GetSearchAttributesResponse def respond_query_task_completed: ( - untyped request, + Temporalio::Api::WorkflowService::V1::RespondQueryTaskCompletedRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::RespondQueryTaskCompletedResponse def reset_sticky_task_queue: ( - untyped request, + Temporalio::Api::WorkflowService::V1::ResetStickyTaskQueueRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::ResetStickyTaskQueueResponse def shutdown_worker: ( - untyped request, + Temporalio::Api::WorkflowService::V1::ShutdownWorkerRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::ShutdownWorkerResponse def query_workflow: ( - untyped request, + Temporalio::Api::WorkflowService::V1::QueryWorkflowRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::QueryWorkflowResponse def describe_workflow_execution: ( - untyped request, + Temporalio::Api::WorkflowService::V1::DescribeWorkflowExecutionRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::DescribeWorkflowExecutionResponse def describe_task_queue: ( - untyped request, + Temporalio::Api::WorkflowService::V1::DescribeTaskQueueRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::DescribeTaskQueueResponse def get_cluster_info: ( - untyped request, + Temporalio::Api::WorkflowService::V1::GetClusterInfoRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::GetClusterInfoResponse def get_system_info: ( - untyped request, + Temporalio::Api::WorkflowService::V1::GetSystemInfoRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::GetSystemInfoResponse def list_task_queue_partitions: ( - untyped request, + Temporalio::Api::WorkflowService::V1::ListTaskQueuePartitionsRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::ListTaskQueuePartitionsResponse def create_schedule: ( - untyped request, + Temporalio::Api::WorkflowService::V1::CreateScheduleRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::CreateScheduleResponse def describe_schedule: ( - untyped request, + Temporalio::Api::WorkflowService::V1::DescribeScheduleRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::DescribeScheduleResponse def update_schedule: ( - untyped request, + Temporalio::Api::WorkflowService::V1::UpdateScheduleRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::UpdateScheduleResponse def patch_schedule: ( - untyped request, + Temporalio::Api::WorkflowService::V1::PatchScheduleRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::PatchScheduleResponse def list_schedule_matching_times: ( - untyped request, + Temporalio::Api::WorkflowService::V1::ListScheduleMatchingTimesRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::ListScheduleMatchingTimesResponse def delete_schedule: ( - untyped request, + Temporalio::Api::WorkflowService::V1::DeleteScheduleRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::DeleteScheduleResponse def list_schedules: ( - untyped request, + Temporalio::Api::WorkflowService::V1::ListSchedulesRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::ListSchedulesResponse def count_schedules: ( - untyped request, + Temporalio::Api::WorkflowService::V1::CountSchedulesRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::CountSchedulesResponse def update_worker_build_id_compatibility: ( - untyped request, + Temporalio::Api::WorkflowService::V1::UpdateWorkerBuildIdCompatibilityRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::UpdateWorkerBuildIdCompatibilityResponse def get_worker_build_id_compatibility: ( - untyped request, + Temporalio::Api::WorkflowService::V1::GetWorkerBuildIdCompatibilityRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::GetWorkerBuildIdCompatibilityResponse def update_worker_versioning_rules: ( - untyped request, + Temporalio::Api::WorkflowService::V1::UpdateWorkerVersioningRulesRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::UpdateWorkerVersioningRulesResponse def get_worker_versioning_rules: ( - untyped request, + Temporalio::Api::WorkflowService::V1::GetWorkerVersioningRulesRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::GetWorkerVersioningRulesResponse def get_worker_task_reachability: ( - untyped request, + Temporalio::Api::WorkflowService::V1::GetWorkerTaskReachabilityRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::GetWorkerTaskReachabilityResponse def describe_deployment: ( - untyped request, + Temporalio::Api::WorkflowService::V1::DescribeDeploymentRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::DescribeDeploymentResponse def describe_worker_deployment_version: ( - untyped request, + Temporalio::Api::WorkflowService::V1::DescribeWorkerDeploymentVersionRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::DescribeWorkerDeploymentVersionResponse def list_deployments: ( - untyped request, + Temporalio::Api::WorkflowService::V1::ListDeploymentsRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::ListDeploymentsResponse def get_deployment_reachability: ( - untyped request, + Temporalio::Api::WorkflowService::V1::GetDeploymentReachabilityRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::GetDeploymentReachabilityResponse def get_current_deployment: ( - untyped request, + Temporalio::Api::WorkflowService::V1::GetCurrentDeploymentRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::GetCurrentDeploymentResponse def set_current_deployment: ( - untyped request, + Temporalio::Api::WorkflowService::V1::SetCurrentDeploymentRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::SetCurrentDeploymentResponse def set_worker_deployment_current_version: ( - untyped request, + Temporalio::Api::WorkflowService::V1::SetWorkerDeploymentCurrentVersionRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::SetWorkerDeploymentCurrentVersionResponse def describe_worker_deployment: ( - untyped request, + Temporalio::Api::WorkflowService::V1::DescribeWorkerDeploymentRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::DescribeWorkerDeploymentResponse def delete_worker_deployment: ( - untyped request, + Temporalio::Api::WorkflowService::V1::DeleteWorkerDeploymentRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::DeleteWorkerDeploymentResponse def delete_worker_deployment_version: ( - untyped request, + Temporalio::Api::WorkflowService::V1::DeleteWorkerDeploymentVersionRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::DeleteWorkerDeploymentVersionResponse def set_worker_deployment_ramping_version: ( - untyped request, + Temporalio::Api::WorkflowService::V1::SetWorkerDeploymentRampingVersionRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::SetWorkerDeploymentRampingVersionResponse def list_worker_deployments: ( - untyped request, + Temporalio::Api::WorkflowService::V1::ListWorkerDeploymentsRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::ListWorkerDeploymentsResponse def update_worker_deployment_version_metadata: ( - untyped request, + Temporalio::Api::WorkflowService::V1::UpdateWorkerDeploymentVersionMetadataRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::UpdateWorkerDeploymentVersionMetadataResponse def set_worker_deployment_manager: ( - untyped request, + Temporalio::Api::WorkflowService::V1::SetWorkerDeploymentManagerRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::SetWorkerDeploymentManagerResponse def update_workflow_execution: ( - untyped request, + Temporalio::Api::WorkflowService::V1::UpdateWorkflowExecutionRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::UpdateWorkflowExecutionResponse def poll_workflow_execution_update: ( - untyped request, + Temporalio::Api::WorkflowService::V1::PollWorkflowExecutionUpdateRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::PollWorkflowExecutionUpdateResponse def start_batch_operation: ( - untyped request, + Temporalio::Api::WorkflowService::V1::StartBatchOperationRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::StartBatchOperationResponse def stop_batch_operation: ( - untyped request, + Temporalio::Api::WorkflowService::V1::StopBatchOperationRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::StopBatchOperationResponse def describe_batch_operation: ( - untyped request, + Temporalio::Api::WorkflowService::V1::DescribeBatchOperationRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::DescribeBatchOperationResponse def list_batch_operations: ( - untyped request, + Temporalio::Api::WorkflowService::V1::ListBatchOperationsRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::ListBatchOperationsResponse def poll_nexus_task_queue: ( - untyped request, + Temporalio::Api::WorkflowService::V1::PollNexusTaskQueueRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::PollNexusTaskQueueResponse def respond_nexus_task_completed: ( - untyped request, + Temporalio::Api::WorkflowService::V1::RespondNexusTaskCompletedRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::RespondNexusTaskCompletedResponse def respond_nexus_task_failed: ( - untyped request, + Temporalio::Api::WorkflowService::V1::RespondNexusTaskFailedRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::RespondNexusTaskFailedResponse def update_activity_options: ( - untyped request, + Temporalio::Api::WorkflowService::V1::UpdateActivityOptionsRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::UpdateActivityOptionsResponse def update_workflow_execution_options: ( - untyped request, + Temporalio::Api::WorkflowService::V1::UpdateWorkflowExecutionOptionsRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::UpdateWorkflowExecutionOptionsResponse def pause_activity: ( - untyped request, + Temporalio::Api::WorkflowService::V1::PauseActivityRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::PauseActivityResponse def unpause_activity: ( - untyped request, + Temporalio::Api::WorkflowService::V1::UnpauseActivityRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::UnpauseActivityResponse def reset_activity: ( - untyped request, + Temporalio::Api::WorkflowService::V1::ResetActivityRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::ResetActivityResponse def create_workflow_rule: ( - untyped request, + Temporalio::Api::WorkflowService::V1::CreateWorkflowRuleRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::CreateWorkflowRuleResponse def describe_workflow_rule: ( - untyped request, + Temporalio::Api::WorkflowService::V1::DescribeWorkflowRuleRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::DescribeWorkflowRuleResponse def delete_workflow_rule: ( - untyped request, + Temporalio::Api::WorkflowService::V1::DeleteWorkflowRuleRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::DeleteWorkflowRuleResponse def list_workflow_rules: ( - untyped request, + Temporalio::Api::WorkflowService::V1::ListWorkflowRulesRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::ListWorkflowRulesResponse def trigger_workflow_rule: ( - untyped request, + Temporalio::Api::WorkflowService::V1::TriggerWorkflowRuleRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::TriggerWorkflowRuleResponse def record_worker_heartbeat: ( - untyped request, + Temporalio::Api::WorkflowService::V1::RecordWorkerHeartbeatRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::RecordWorkerHeartbeatResponse def list_workers: ( - untyped request, + Temporalio::Api::WorkflowService::V1::ListWorkersRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::ListWorkersResponse def update_task_queue_config: ( - untyped request, + Temporalio::Api::WorkflowService::V1::UpdateTaskQueueConfigRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::UpdateTaskQueueConfigResponse def fetch_worker_config: ( - untyped request, + Temporalio::Api::WorkflowService::V1::FetchWorkerConfigRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::FetchWorkerConfigResponse def update_worker_config: ( - untyped request, + Temporalio::Api::WorkflowService::V1::UpdateWorkerConfigRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::UpdateWorkerConfigResponse def describe_worker: ( - untyped request, + Temporalio::Api::WorkflowService::V1::DescribeWorkerRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::DescribeWorkerResponse def pause_workflow_execution: ( - untyped request, + Temporalio::Api::WorkflowService::V1::PauseWorkflowExecutionRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::PauseWorkflowExecutionResponse def unpause_workflow_execution: ( - untyped request, + Temporalio::Api::WorkflowService::V1::UnpauseWorkflowExecutionRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::UnpauseWorkflowExecutionResponse def start_activity_execution: ( - untyped request, + Temporalio::Api::WorkflowService::V1::StartActivityExecutionRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::StartActivityExecutionResponse def describe_activity_execution: ( - untyped request, + Temporalio::Api::WorkflowService::V1::DescribeActivityExecutionRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::DescribeActivityExecutionResponse def poll_activity_execution: ( - untyped request, + Temporalio::Api::WorkflowService::V1::PollActivityExecutionRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::PollActivityExecutionResponse def list_activity_executions: ( - untyped request, + Temporalio::Api::WorkflowService::V1::ListActivityExecutionsRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::ListActivityExecutionsResponse def count_activity_executions: ( - untyped request, + Temporalio::Api::WorkflowService::V1::CountActivityExecutionsRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::CountActivityExecutionsResponse def request_cancel_activity_execution: ( - untyped request, + Temporalio::Api::WorkflowService::V1::RequestCancelActivityExecutionRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::RequestCancelActivityExecutionResponse def terminate_activity_execution: ( - untyped request, + Temporalio::Api::WorkflowService::V1::TerminateActivityExecutionRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::TerminateActivityExecutionResponse def delete_activity_execution: ( - untyped request, + Temporalio::Api::WorkflowService::V1::DeleteActivityExecutionRequest request, ?rpc_options: RPCOptions? - ) -> untyped + ) -> Temporalio::Api::WorkflowService::V1::DeleteActivityExecutionResponse end end end diff --git a/temporalio/sig/temporalio/internal/bridge/api/activity_result/activity_result.rbs b/temporalio/sig/temporalio/internal/bridge/api/activity_result/activity_result.rbs new file mode 100644 index 00000000..e0582cbd --- /dev/null +++ b/temporalio/sig/temporalio/internal/bridge/api/activity_result/activity_result.rbs @@ -0,0 +1,247 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/sdk/core/activity_result/activity_result.proto + +module Temporalio + module Internal + module Bridge + module Api + module ActivityResult + # Used to report activity completions to core + class ActivityExecutionResult < ::Google::Protobuf::AbstractMessage + + attr_accessor completed(): ::Temporalio::Internal::Bridge::Api::ActivityResult::Success? + def has_completed?: () -> bool + def clear_completed: () -> void + + attr_accessor failed(): ::Temporalio::Internal::Bridge::Api::ActivityResult::Failure? + def has_failed?: () -> bool + def clear_failed: () -> void + + attr_accessor cancelled(): ::Temporalio::Internal::Bridge::Api::ActivityResult::Cancellation? + def has_cancelled?: () -> bool + def clear_cancelled: () -> void + + attr_accessor will_complete_async(): ::Temporalio::Internal::Bridge::Api::ActivityResult::WillCompleteAsync? + def has_will_complete_async?: () -> bool + def clear_will_complete_async: () -> void + + attr_reader status(): (::Temporalio::Internal::Bridge::Api::ActivityResult::Success | ::Temporalio::Internal::Bridge::Api::ActivityResult::Failure | ::Temporalio::Internal::Bridge::Api::ActivityResult::Cancellation | ::Temporalio::Internal::Bridge::Api::ActivityResult::WillCompleteAsync)? + def has_status?: () -> bool + def clear_status: () -> void + + type init_map = { + completed: (::Temporalio::Internal::Bridge::Api::ActivityResult::Success | ::Temporalio::Internal::Bridge::Api::ActivityResult::Success::init_map)?, + "completed" => (::Temporalio::Internal::Bridge::Api::ActivityResult::Success | ::Temporalio::Internal::Bridge::Api::ActivityResult::Success::init_map)?, + failed: (::Temporalio::Internal::Bridge::Api::ActivityResult::Failure | ::Temporalio::Internal::Bridge::Api::ActivityResult::Failure::init_map)?, + "failed" => (::Temporalio::Internal::Bridge::Api::ActivityResult::Failure | ::Temporalio::Internal::Bridge::Api::ActivityResult::Failure::init_map)?, + cancelled: (::Temporalio::Internal::Bridge::Api::ActivityResult::Cancellation | ::Temporalio::Internal::Bridge::Api::ActivityResult::Cancellation::init_map)?, + "cancelled" => (::Temporalio::Internal::Bridge::Api::ActivityResult::Cancellation | ::Temporalio::Internal::Bridge::Api::ActivityResult::Cancellation::init_map)?, + will_complete_async: (::Temporalio::Internal::Bridge::Api::ActivityResult::WillCompleteAsync | ::Temporalio::Internal::Bridge::Api::ActivityResult::WillCompleteAsync::init_map)?, + "will_complete_async" => (::Temporalio::Internal::Bridge::Api::ActivityResult::WillCompleteAsync | ::Temporalio::Internal::Bridge::Api::ActivityResult::WillCompleteAsync::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("completed" name) -> ::Temporalio::Internal::Bridge::Api::ActivityResult::Success? + | ("failed" name) -> ::Temporalio::Internal::Bridge::Api::ActivityResult::Failure? + | ("cancelled" name) -> ::Temporalio::Internal::Bridge::Api::ActivityResult::Cancellation? + | ("will_complete_async" name) -> ::Temporalio::Internal::Bridge::Api::ActivityResult::WillCompleteAsync? + + def []=: + ("completed" name, ::Temporalio::Internal::Bridge::Api::ActivityResult::Success? value) -> void + | ("failed" name, ::Temporalio::Internal::Bridge::Api::ActivityResult::Failure? value) -> void + | ("cancelled" name, ::Temporalio::Internal::Bridge::Api::ActivityResult::Cancellation? value) -> void + | ("will_complete_async" name, ::Temporalio::Internal::Bridge::Api::ActivityResult::WillCompleteAsync? value) -> void + end + + # Used to report activity resolutions to lang. IE: This is what the activities are resolved with + # in the workflow. + class ActivityResolution < ::Google::Protobuf::AbstractMessage + + attr_accessor completed(): ::Temporalio::Internal::Bridge::Api::ActivityResult::Success? + def has_completed?: () -> bool + def clear_completed: () -> void + + attr_accessor failed(): ::Temporalio::Internal::Bridge::Api::ActivityResult::Failure? + def has_failed?: () -> bool + def clear_failed: () -> void + + attr_accessor cancelled(): ::Temporalio::Internal::Bridge::Api::ActivityResult::Cancellation? + def has_cancelled?: () -> bool + def clear_cancelled: () -> void + + attr_accessor backoff(): ::Temporalio::Internal::Bridge::Api::ActivityResult::DoBackoff? + def has_backoff?: () -> bool + def clear_backoff: () -> void + + attr_reader status(): (::Temporalio::Internal::Bridge::Api::ActivityResult::Success | ::Temporalio::Internal::Bridge::Api::ActivityResult::Failure | ::Temporalio::Internal::Bridge::Api::ActivityResult::Cancellation | ::Temporalio::Internal::Bridge::Api::ActivityResult::DoBackoff)? + def has_status?: () -> bool + def clear_status: () -> void + + type init_map = { + completed: (::Temporalio::Internal::Bridge::Api::ActivityResult::Success | ::Temporalio::Internal::Bridge::Api::ActivityResult::Success::init_map)?, + "completed" => (::Temporalio::Internal::Bridge::Api::ActivityResult::Success | ::Temporalio::Internal::Bridge::Api::ActivityResult::Success::init_map)?, + failed: (::Temporalio::Internal::Bridge::Api::ActivityResult::Failure | ::Temporalio::Internal::Bridge::Api::ActivityResult::Failure::init_map)?, + "failed" => (::Temporalio::Internal::Bridge::Api::ActivityResult::Failure | ::Temporalio::Internal::Bridge::Api::ActivityResult::Failure::init_map)?, + cancelled: (::Temporalio::Internal::Bridge::Api::ActivityResult::Cancellation | ::Temporalio::Internal::Bridge::Api::ActivityResult::Cancellation::init_map)?, + "cancelled" => (::Temporalio::Internal::Bridge::Api::ActivityResult::Cancellation | ::Temporalio::Internal::Bridge::Api::ActivityResult::Cancellation::init_map)?, + backoff: (::Temporalio::Internal::Bridge::Api::ActivityResult::DoBackoff | ::Temporalio::Internal::Bridge::Api::ActivityResult::DoBackoff::init_map)?, + "backoff" => (::Temporalio::Internal::Bridge::Api::ActivityResult::DoBackoff | ::Temporalio::Internal::Bridge::Api::ActivityResult::DoBackoff::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("completed" name) -> ::Temporalio::Internal::Bridge::Api::ActivityResult::Success? + | ("failed" name) -> ::Temporalio::Internal::Bridge::Api::ActivityResult::Failure? + | ("cancelled" name) -> ::Temporalio::Internal::Bridge::Api::ActivityResult::Cancellation? + | ("backoff" name) -> ::Temporalio::Internal::Bridge::Api::ActivityResult::DoBackoff? + + def []=: + ("completed" name, ::Temporalio::Internal::Bridge::Api::ActivityResult::Success? value) -> void + | ("failed" name, ::Temporalio::Internal::Bridge::Api::ActivityResult::Failure? value) -> void + | ("cancelled" name, ::Temporalio::Internal::Bridge::Api::ActivityResult::Cancellation? value) -> void + | ("backoff" name, ::Temporalio::Internal::Bridge::Api::ActivityResult::DoBackoff? value) -> void + end + + # Used to report successful completion either when executing or resolving + class Success < ::Google::Protobuf::AbstractMessage + + attr_accessor result(): ::Temporalio::Api::Common::V1::Payload? + def has_result?: () -> bool + def clear_result: () -> void + + type init_map = { + result: (::Temporalio::Api::Common::V1::Payload | ::Temporalio::Api::Common::V1::Payload::init_map)?, + "result" => (::Temporalio::Api::Common::V1::Payload | ::Temporalio::Api::Common::V1::Payload::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("result" name) -> ::Temporalio::Api::Common::V1::Payload? + + def []=: + ("result" name, ::Temporalio::Api::Common::V1::Payload? value) -> void + end + + # Used to report activity failure either when executing or resolving + class Failure < ::Google::Protobuf::AbstractMessage + + attr_accessor failure(): ::Temporalio::Api::Failure::V1::Failure? + def has_failure?: () -> bool + def clear_failure: () -> void + + type init_map = { + failure: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + "failure" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("failure" name) -> ::Temporalio::Api::Failure::V1::Failure? + + def []=: + ("failure" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void + end + + # Used to report cancellation from both Core and Lang. + # When Lang reports a cancelled activity, it must put a CancelledFailure in the failure field. + # When Core reports a cancelled activity, it must put an ActivityFailure with CancelledFailure + # as the cause in the failure field. + class Cancellation < ::Google::Protobuf::AbstractMessage + + attr_accessor failure(): ::Temporalio::Api::Failure::V1::Failure? + def has_failure?: () -> bool + def clear_failure: () -> void + + type init_map = { + failure: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + "failure" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("failure" name) -> ::Temporalio::Api::Failure::V1::Failure? + + def []=: + ("failure" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void + end + + # Used in ActivityExecutionResult to notify Core that this Activity will complete asynchronously. + # Core will forget about this Activity and free up resources used to track this Activity. + class WillCompleteAsync < ::Google::Protobuf::AbstractMessage + + type init_map = { + } + + def initialize: (?init_map initial_value) -> void + end + + # Issued when a local activity needs to retry but also wants to back off more than would be + # reasonable to WFT heartbeat for. Lang is expected to schedule a timer for the duration + # and then start a local activity of the same type & same inputs with the provided attempt number + # after the timer has elapsed. + # This exists because Core does not have a concept of starting commands by itself, they originate + # from lang. So expecting lang to start the timer / next pass of the activity fits more smoothly. + class DoBackoff < ::Google::Protobuf::AbstractMessage + + # The attempt number that lang should provide when scheduling the retry. If the LA failed + # on attempt 4 and we told lang to back off with a timer, this number will be 5. + attr_reader attempt(): ::Integer + attr_writer attempt(): ::Integer | ::Float + def clear_attempt: () -> void + + attr_reader backoff_duration(): ::Google::Protobuf::Duration? + attr_writer backoff_duration(): (::Google::Protobuf::Duration | ::int)? + def has_backoff_duration?: () -> bool + def clear_backoff_duration: () -> void + + # The time the first attempt of this local activity was scheduled. Must be passed with attempt + # to the retry LA. + attr_reader original_schedule_time(): ::Google::Protobuf::Timestamp? + attr_writer original_schedule_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_original_schedule_time?: () -> bool + def clear_original_schedule_time: () -> void + + type init_map = { + attempt: (::Integer | ::Float)?, + "attempt" => (::Integer | ::Float)?, + backoff_duration: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "backoff_duration" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + original_schedule_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "original_schedule_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("attempt" name) -> ::Integer + | ("backoff_duration" name) -> ::Google::Protobuf::Duration? + | ("original_schedule_time" name) -> ::Google::Protobuf::Timestamp? + + def []=: + ("attempt" name, (::Integer | ::Float) value) -> void + | ("backoff_duration" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("original_schedule_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + end + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/internal/bridge/api/activity_task/activity_task.rbs b/temporalio/sig/temporalio/internal/bridge/api/activity_task/activity_task.rbs new file mode 100644 index 00000000..363af9cf --- /dev/null +++ b/temporalio/sig/temporalio/internal/bridge/api/activity_task/activity_task.rbs @@ -0,0 +1,363 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/sdk/core/activity_task/activity_task.proto + +module Temporalio + module Internal + module Bridge + module Api + module ActivityTask + class ActivityTask < ::Google::Protobuf::AbstractMessage + + # A unique identifier for this task + attr_accessor task_token(): ::String + def clear_task_token: () -> void + + # Start activity execution. + attr_accessor start(): ::Temporalio::Internal::Bridge::Api::ActivityTask::Start? + def has_start?: () -> bool + def clear_start: () -> void + + # Attempt to cancel activity execution. + attr_accessor cancel(): ::Temporalio::Internal::Bridge::Api::ActivityTask::Cancel? + def has_cancel?: () -> bool + def clear_cancel: () -> void + + attr_reader variant(): (::Temporalio::Internal::Bridge::Api::ActivityTask::Start | ::Temporalio::Internal::Bridge::Api::ActivityTask::Cancel)? + def has_variant?: () -> bool + def clear_variant: () -> void + + type init_map = { + task_token: ::String?, + "task_token" => ::String?, + start: (::Temporalio::Internal::Bridge::Api::ActivityTask::Start | ::Temporalio::Internal::Bridge::Api::ActivityTask::Start::init_map)?, + "start" => (::Temporalio::Internal::Bridge::Api::ActivityTask::Start | ::Temporalio::Internal::Bridge::Api::ActivityTask::Start::init_map)?, + cancel: (::Temporalio::Internal::Bridge::Api::ActivityTask::Cancel | ::Temporalio::Internal::Bridge::Api::ActivityTask::Cancel::init_map)?, + "cancel" => (::Temporalio::Internal::Bridge::Api::ActivityTask::Cancel | ::Temporalio::Internal::Bridge::Api::ActivityTask::Cancel::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("task_token" name) -> ::String + | ("start" name) -> ::Temporalio::Internal::Bridge::Api::ActivityTask::Start? + | ("cancel" name) -> ::Temporalio::Internal::Bridge::Api::ActivityTask::Cancel? + + def []=: + ("task_token" name, ::String value) -> void + | ("start" name, ::Temporalio::Internal::Bridge::Api::ActivityTask::Start? value) -> void + | ("cancel" name, ::Temporalio::Internal::Bridge::Api::ActivityTask::Cancel? value) -> void + end + + # Begin executing an activity + class Start < ::Google::Protobuf::AbstractMessage + + # The namespace the workflow lives in + attr_reader workflow_namespace(): ::String + attr_writer workflow_namespace(): ::String | ::Symbol + def clear_workflow_namespace: () -> void + + # The workflow's type name or function identifier + attr_reader workflow_type(): ::String + attr_writer workflow_type(): ::String | ::Symbol + def clear_workflow_type: () -> void + + # The workflow execution which requested this activity + attr_accessor workflow_execution(): ::Temporalio::Api::Common::V1::WorkflowExecution? + def has_workflow_execution?: () -> bool + def clear_workflow_execution: () -> void + + # The activity's ID + attr_reader activity_id(): ::String + attr_writer activity_id(): ::String | ::Symbol + def clear_activity_id: () -> void + + # The activity's type name or function identifier + attr_reader activity_type(): ::String + attr_writer activity_type(): ::String | ::Symbol + def clear_activity_type: () -> void + + attr_accessor header_fields(): ::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload] + def clear_header_fields: () -> void + + # Arguments to the activity + attr_accessor input(): ::Google::Protobuf::RepeatedField + def clear_input: () -> void + + # The last details that were recorded by a heartbeat when this task was generated + attr_accessor heartbeat_details(): ::Google::Protobuf::RepeatedField + def clear_heartbeat_details: () -> void + + # When the task was *first* scheduled + attr_reader scheduled_time(): ::Google::Protobuf::Timestamp? + attr_writer scheduled_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_scheduled_time?: () -> bool + def clear_scheduled_time: () -> void + + # When this current attempt at the task was scheduled + attr_reader current_attempt_scheduled_time(): ::Google::Protobuf::Timestamp? + attr_writer current_attempt_scheduled_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_current_attempt_scheduled_time?: () -> bool + def clear_current_attempt_scheduled_time: () -> void + + # When this attempt was started, which is to say when core received it by polling. + attr_reader started_time(): ::Google::Protobuf::Timestamp? + attr_writer started_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_started_time?: () -> bool + def clear_started_time: () -> void + + attr_reader attempt(): ::Integer + attr_writer attempt(): ::Integer | ::Float + def clear_attempt: () -> void + + # Timeout from the first schedule time to completion + attr_reader schedule_to_close_timeout(): ::Google::Protobuf::Duration? + attr_writer schedule_to_close_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_schedule_to_close_timeout?: () -> bool + def clear_schedule_to_close_timeout: () -> void + + # Timeout from starting an attempt to reporting its result + attr_reader start_to_close_timeout(): ::Google::Protobuf::Duration? + attr_writer start_to_close_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_start_to_close_timeout?: () -> bool + def clear_start_to_close_timeout: () -> void + + # If set a heartbeat must be reported within this interval + attr_reader heartbeat_timeout(): ::Google::Protobuf::Duration? + attr_writer heartbeat_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_heartbeat_timeout?: () -> bool + def clear_heartbeat_timeout: () -> void + + # This is an actual retry policy the service uses. It can be different from the one provided + # (or not) during activity scheduling as the service can override the provided one in case its + # values are not specified or exceed configured system limits. + attr_accessor retry_policy(): ::Temporalio::Api::Common::V1::RetryPolicy? + def has_retry_policy?: () -> bool + def clear_retry_policy: () -> void + + # Priority of this activity. Local activities will always have this field set to the default. + attr_accessor priority(): ::Temporalio::Api::Common::V1::Priority? + def has_priority?: () -> bool + def clear_priority: () -> void + + # Set to true if this is a local activity. Note that heartbeating does not apply to local + # activities. + attr_accessor is_local(): bool + def clear_is_local: () -> void + + type init_map = { + workflow_namespace: (::String | ::Symbol)?, + "workflow_namespace" => (::String | ::Symbol)?, + workflow_type: (::String | ::Symbol)?, + "workflow_type" => (::String | ::Symbol)?, + workflow_execution: (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + "workflow_execution" => (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + activity_id: (::String | ::Symbol)?, + "activity_id" => (::String | ::Symbol)?, + activity_type: (::String | ::Symbol)?, + "activity_type" => (::String | ::Symbol)?, + header_fields: ::Hash[::String | ::Symbol, ::Temporalio::Api::Common::V1::Payload]?, + "header_fields" => ::Hash[::String | ::Symbol, ::Temporalio::Api::Common::V1::Payload]?, + input: ::Array[::Temporalio::Api::Common::V1::Payload]?, + "input" => ::Array[::Temporalio::Api::Common::V1::Payload]?, + heartbeat_details: ::Array[::Temporalio::Api::Common::V1::Payload]?, + "heartbeat_details" => ::Array[::Temporalio::Api::Common::V1::Payload]?, + scheduled_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "scheduled_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + current_attempt_scheduled_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "current_attempt_scheduled_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + started_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "started_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + attempt: (::Integer | ::Float)?, + "attempt" => (::Integer | ::Float)?, + schedule_to_close_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "schedule_to_close_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + start_to_close_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "start_to_close_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + heartbeat_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "heartbeat_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + retry_policy: (::Temporalio::Api::Common::V1::RetryPolicy | ::Temporalio::Api::Common::V1::RetryPolicy::init_map)?, + "retry_policy" => (::Temporalio::Api::Common::V1::RetryPolicy | ::Temporalio::Api::Common::V1::RetryPolicy::init_map)?, + priority: (::Temporalio::Api::Common::V1::Priority | ::Temporalio::Api::Common::V1::Priority::init_map)?, + "priority" => (::Temporalio::Api::Common::V1::Priority | ::Temporalio::Api::Common::V1::Priority::init_map)?, + is_local: bool?, + "is_local" => bool?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("workflow_namespace" name) -> ::String + | ("workflow_type" name) -> ::String + | ("workflow_execution" name) -> ::Temporalio::Api::Common::V1::WorkflowExecution? + | ("activity_id" name) -> ::String + | ("activity_type" name) -> ::String + | ("header_fields" name) -> (::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload]) + | ("input" name) -> ::Google::Protobuf::RepeatedField + | ("heartbeat_details" name) -> ::Google::Protobuf::RepeatedField + | ("scheduled_time" name) -> ::Google::Protobuf::Timestamp? + | ("current_attempt_scheduled_time" name) -> ::Google::Protobuf::Timestamp? + | ("started_time" name) -> ::Google::Protobuf::Timestamp? + | ("attempt" name) -> ::Integer + | ("schedule_to_close_timeout" name) -> ::Google::Protobuf::Duration? + | ("start_to_close_timeout" name) -> ::Google::Protobuf::Duration? + | ("heartbeat_timeout" name) -> ::Google::Protobuf::Duration? + | ("retry_policy" name) -> ::Temporalio::Api::Common::V1::RetryPolicy? + | ("priority" name) -> ::Temporalio::Api::Common::V1::Priority? + | ("is_local" name) -> bool + + def []=: + ("workflow_namespace" name, (::String | ::Symbol) value) -> void + | ("workflow_type" name, (::String | ::Symbol) value) -> void + | ("workflow_execution" name, ::Temporalio::Api::Common::V1::WorkflowExecution? value) -> void + | ("activity_id" name, (::String | ::Symbol) value) -> void + | ("activity_type" name, (::String | ::Symbol) value) -> void + | ("header_fields" name, (::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload]) value) -> void + | ("input" name, ::Google::Protobuf::RepeatedField value) -> void + | ("heartbeat_details" name, ::Google::Protobuf::RepeatedField value) -> void + | ("scheduled_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("current_attempt_scheduled_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("started_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("attempt" name, (::Integer | ::Float) value) -> void + | ("schedule_to_close_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("start_to_close_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("heartbeat_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("retry_policy" name, ::Temporalio::Api::Common::V1::RetryPolicy? value) -> void + | ("priority" name, ::Temporalio::Api::Common::V1::Priority? value) -> void + | ("is_local" name, bool value) -> void + end + + # Attempt to cancel a running activity + class Cancel < ::Google::Protobuf::AbstractMessage + + # Primary cancellation reason + attr_reader reason(): ::Temporalio::Internal::Bridge::Api::ActivityTask::ActivityCancelReason::names | ::Integer + attr_writer reason(): ::Temporalio::Internal::Bridge::Api::ActivityTask::ActivityCancelReason::names | ::Temporalio::Internal::Bridge::Api::ActivityTask::ActivityCancelReason::strings | ::Integer | ::Float + attr_reader reason_const(): ::Integer + def clear_reason: () -> void + + # Activity cancellation details, surfaces all cancellation reasons. + attr_accessor details(): ::Temporalio::Internal::Bridge::Api::ActivityTask::ActivityCancellationDetails? + def has_details?: () -> bool + def clear_details: () -> void + + type init_map = { + reason: (::Temporalio::Internal::Bridge::Api::ActivityTask::ActivityCancelReason::names | ::Temporalio::Internal::Bridge::Api::ActivityTask::ActivityCancelReason::strings | ::Integer | ::Float)?, + "reason" => (::Temporalio::Internal::Bridge::Api::ActivityTask::ActivityCancelReason::names | ::Temporalio::Internal::Bridge::Api::ActivityTask::ActivityCancelReason::strings | ::Integer | ::Float)?, + details: (::Temporalio::Internal::Bridge::Api::ActivityTask::ActivityCancellationDetails | ::Temporalio::Internal::Bridge::Api::ActivityTask::ActivityCancellationDetails::init_map)?, + "details" => (::Temporalio::Internal::Bridge::Api::ActivityTask::ActivityCancellationDetails | ::Temporalio::Internal::Bridge::Api::ActivityTask::ActivityCancellationDetails::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("reason" name) -> (::Temporalio::Internal::Bridge::Api::ActivityTask::ActivityCancelReason::names | ::Integer) + | ("details" name) -> ::Temporalio::Internal::Bridge::Api::ActivityTask::ActivityCancellationDetails? + + def []=: + ("reason" name, (::Temporalio::Internal::Bridge::Api::ActivityTask::ActivityCancelReason::names | ::Temporalio::Internal::Bridge::Api::ActivityTask::ActivityCancelReason::strings | ::Integer | ::Float) value) -> void + | ("details" name, ::Temporalio::Internal::Bridge::Api::ActivityTask::ActivityCancellationDetails? value) -> void + end + + class ActivityCancellationDetails < ::Google::Protobuf::AbstractMessage + + attr_accessor is_not_found(): bool + def clear_is_not_found: () -> void + + attr_accessor is_cancelled(): bool + def clear_is_cancelled: () -> void + + attr_accessor is_paused(): bool + def clear_is_paused: () -> void + + attr_accessor is_timed_out(): bool + def clear_is_timed_out: () -> void + + attr_accessor is_worker_shutdown(): bool + def clear_is_worker_shutdown: () -> void + + attr_accessor is_reset(): bool + def clear_is_reset: () -> void + + type init_map = { + is_not_found: bool?, + "is_not_found" => bool?, + is_cancelled: bool?, + "is_cancelled" => bool?, + is_paused: bool?, + "is_paused" => bool?, + is_timed_out: bool?, + "is_timed_out" => bool?, + is_worker_shutdown: bool?, + "is_worker_shutdown" => bool?, + is_reset: bool?, + "is_reset" => bool?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("is_not_found" name) -> bool + | ("is_cancelled" name) -> bool + | ("is_paused" name) -> bool + | ("is_timed_out" name) -> bool + | ("is_worker_shutdown" name) -> bool + | ("is_reset" name) -> bool + + def []=: + ("is_not_found" name, bool value) -> void + | ("is_cancelled" name, bool value) -> void + | ("is_paused" name, bool value) -> void + | ("is_timed_out" name, bool value) -> void + | ("is_worker_shutdown" name, bool value) -> void + | ("is_reset" name, bool value) -> void + end + + module ActivityCancelReason + + # The activity no longer exists according to server (may be already completed) + NOT_FOUND: 0 + + # Activity was explicitly cancelled + CANCELLED: 1 + + # Activity timed out + TIMED_OUT: 2 + + # Core is shutting down and the graceful timeout has elapsed + WORKER_SHUTDOWN: 3 + + # Activity was paused + PAUSED: 4 + + # Activity was reset + RESET: 5 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :NOT_FOUND | :CANCELLED | :TIMED_OUT | :WORKER_SHUTDOWN | :PAUSED | :RESET + + type strings = "NOT_FOUND" | "CANCELLED" | "TIMED_OUT" | "WORKER_SHUTDOWN" | "PAUSED" | "RESET" + + type numbers = 0 | 1 | 2 | 3 | 4 | 5 + end + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/internal/bridge/api/child_workflow/child_workflow.rbs b/temporalio/sig/temporalio/internal/bridge/api/child_workflow/child_workflow.rbs new file mode 100644 index 00000000..d3a529f3 --- /dev/null +++ b/temporalio/sig/temporalio/internal/bridge/api/child_workflow/child_workflow.rbs @@ -0,0 +1,207 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/sdk/core/child_workflow/child_workflow.proto + +module Temporalio + module Internal + module Bridge + module Api + module ChildWorkflow + # Used by core to resolve child workflow executions. + class ChildWorkflowResult < ::Google::Protobuf::AbstractMessage + + attr_accessor completed(): ::Temporalio::Internal::Bridge::Api::ChildWorkflow::Success? + def has_completed?: () -> bool + def clear_completed: () -> void + + attr_accessor failed(): ::Temporalio::Internal::Bridge::Api::ChildWorkflow::Failure? + def has_failed?: () -> bool + def clear_failed: () -> void + + attr_accessor cancelled(): ::Temporalio::Internal::Bridge::Api::ChildWorkflow::Cancellation? + def has_cancelled?: () -> bool + def clear_cancelled: () -> void + + attr_reader status(): (::Temporalio::Internal::Bridge::Api::ChildWorkflow::Success | ::Temporalio::Internal::Bridge::Api::ChildWorkflow::Failure | ::Temporalio::Internal::Bridge::Api::ChildWorkflow::Cancellation)? + def has_status?: () -> bool + def clear_status: () -> void + + type init_map = { + completed: (::Temporalio::Internal::Bridge::Api::ChildWorkflow::Success | ::Temporalio::Internal::Bridge::Api::ChildWorkflow::Success::init_map)?, + "completed" => (::Temporalio::Internal::Bridge::Api::ChildWorkflow::Success | ::Temporalio::Internal::Bridge::Api::ChildWorkflow::Success::init_map)?, + failed: (::Temporalio::Internal::Bridge::Api::ChildWorkflow::Failure | ::Temporalio::Internal::Bridge::Api::ChildWorkflow::Failure::init_map)?, + "failed" => (::Temporalio::Internal::Bridge::Api::ChildWorkflow::Failure | ::Temporalio::Internal::Bridge::Api::ChildWorkflow::Failure::init_map)?, + cancelled: (::Temporalio::Internal::Bridge::Api::ChildWorkflow::Cancellation | ::Temporalio::Internal::Bridge::Api::ChildWorkflow::Cancellation::init_map)?, + "cancelled" => (::Temporalio::Internal::Bridge::Api::ChildWorkflow::Cancellation | ::Temporalio::Internal::Bridge::Api::ChildWorkflow::Cancellation::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("completed" name) -> ::Temporalio::Internal::Bridge::Api::ChildWorkflow::Success? + | ("failed" name) -> ::Temporalio::Internal::Bridge::Api::ChildWorkflow::Failure? + | ("cancelled" name) -> ::Temporalio::Internal::Bridge::Api::ChildWorkflow::Cancellation? + + def []=: + ("completed" name, ::Temporalio::Internal::Bridge::Api::ChildWorkflow::Success? value) -> void + | ("failed" name, ::Temporalio::Internal::Bridge::Api::ChildWorkflow::Failure? value) -> void + | ("cancelled" name, ::Temporalio::Internal::Bridge::Api::ChildWorkflow::Cancellation? value) -> void + end + + # Used in ChildWorkflowResult to report successful completion. + class Success < ::Google::Protobuf::AbstractMessage + + attr_accessor result(): ::Temporalio::Api::Common::V1::Payload? + def has_result?: () -> bool + def clear_result: () -> void + + type init_map = { + result: (::Temporalio::Api::Common::V1::Payload | ::Temporalio::Api::Common::V1::Payload::init_map)?, + "result" => (::Temporalio::Api::Common::V1::Payload | ::Temporalio::Api::Common::V1::Payload::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("result" name) -> ::Temporalio::Api::Common::V1::Payload? + + def []=: + ("result" name, ::Temporalio::Api::Common::V1::Payload? value) -> void + end + + # Used in ChildWorkflowResult to report non successful outcomes such as + # application failures, timeouts, terminations, and cancellations. + class Failure < ::Google::Protobuf::AbstractMessage + + attr_accessor failure(): ::Temporalio::Api::Failure::V1::Failure? + def has_failure?: () -> bool + def clear_failure: () -> void + + type init_map = { + failure: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + "failure" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("failure" name) -> ::Temporalio::Api::Failure::V1::Failure? + + def []=: + ("failure" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void + end + + # Used in ChildWorkflowResult to report cancellation. + # Failure should be ChildWorkflowFailure with a CanceledFailure cause. + class Cancellation < ::Google::Protobuf::AbstractMessage + + attr_accessor failure(): ::Temporalio::Api::Failure::V1::Failure? + def has_failure?: () -> bool + def clear_failure: () -> void + + type init_map = { + failure: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + "failure" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("failure" name) -> ::Temporalio::Api::Failure::V1::Failure? + + def []=: + ("failure" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void + end + + # Used by the service to determine the fate of a child workflow + # in case its parent is closed. + module ParentClosePolicy + + # Let's the server set the default. + PARENT_CLOSE_POLICY_UNSPECIFIED: 0 + + # Terminate means terminating the child workflow. + PARENT_CLOSE_POLICY_TERMINATE: 1 + + # Abandon means not doing anything on the child workflow. + PARENT_CLOSE_POLICY_ABANDON: 2 + + # Cancel means requesting cancellation on the child workflow. + PARENT_CLOSE_POLICY_REQUEST_CANCEL: 3 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :PARENT_CLOSE_POLICY_UNSPECIFIED | :PARENT_CLOSE_POLICY_TERMINATE | :PARENT_CLOSE_POLICY_ABANDON | :PARENT_CLOSE_POLICY_REQUEST_CANCEL + + type strings = "PARENT_CLOSE_POLICY_UNSPECIFIED" | "PARENT_CLOSE_POLICY_TERMINATE" | "PARENT_CLOSE_POLICY_ABANDON" | "PARENT_CLOSE_POLICY_REQUEST_CANCEL" + + type numbers = 0 | 1 | 2 | 3 + end + + # Possible causes of failure to start a child workflow + module StartChildWorkflowExecutionFailedCause + + START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_UNSPECIFIED: 0 + + START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_WORKFLOW_ALREADY_EXISTS: 1 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_UNSPECIFIED | :START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_WORKFLOW_ALREADY_EXISTS + + type strings = "START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_UNSPECIFIED" | "START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_WORKFLOW_ALREADY_EXISTS" + + type numbers = 0 | 1 + end + + # Controls at which point to report back to lang when a child workflow is cancelled + module ChildWorkflowCancellationType + + # Do not request cancellation of the child workflow if already scheduled + ABANDON: 0 + + # Initiate a cancellation request and immediately report cancellation to the parent. + TRY_CANCEL: 1 + + # Wait for child cancellation completion. + WAIT_CANCELLATION_COMPLETED: 2 + + # Request cancellation of the child and wait for confirmation that the request was received. + WAIT_CANCELLATION_REQUESTED: 3 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :ABANDON | :TRY_CANCEL | :WAIT_CANCELLATION_COMPLETED | :WAIT_CANCELLATION_REQUESTED + + type strings = "ABANDON" | "TRY_CANCEL" | "WAIT_CANCELLATION_COMPLETED" | "WAIT_CANCELLATION_REQUESTED" + + type numbers = 0 | 1 | 2 | 3 + end + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/internal/bridge/api/common/common.rbs b/temporalio/sig/temporalio/internal/bridge/api/common/common.rbs new file mode 100644 index 00000000..5af1b3cf --- /dev/null +++ b/temporalio/sig/temporalio/internal/bridge/api/common/common.rbs @@ -0,0 +1,123 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/sdk/core/common/common.proto + +module Temporalio + module Internal + module Bridge + module Api + module Common + # Identifying information about a particular workflow execution, including namespace + class NamespacedWorkflowExecution < ::Google::Protobuf::AbstractMessage + + # Namespace the workflow run is located in + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + # Can never be empty + attr_reader workflow_id(): ::String + attr_writer workflow_id(): ::String | ::Symbol + def clear_workflow_id: () -> void + + # May be empty if the most recent run of the workflow with the given ID is being targeted + attr_reader run_id(): ::String + attr_writer run_id(): ::String | ::Symbol + def clear_run_id: () -> void + + type init_map = { + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + workflow_id: (::String | ::Symbol)?, + "workflow_id" => (::String | ::Symbol)?, + run_id: (::String | ::Symbol)?, + "run_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("namespace" name) -> ::String + | ("workflow_id" name) -> ::String + | ("run_id" name) -> ::String + + def []=: + ("namespace" name, (::String | ::Symbol) value) -> void + | ("workflow_id" name, (::String | ::Symbol) value) -> void + | ("run_id" name, (::String | ::Symbol) value) -> void + end + + class WorkerDeploymentVersion < ::Google::Protobuf::AbstractMessage + + attr_reader deployment_name(): ::String + attr_writer deployment_name(): ::String | ::Symbol + def clear_deployment_name: () -> void + + attr_reader build_id(): ::String + attr_writer build_id(): ::String | ::Symbol + def clear_build_id: () -> void + + type init_map = { + deployment_name: (::String | ::Symbol)?, + "deployment_name" => (::String | ::Symbol)?, + build_id: (::String | ::Symbol)?, + "build_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("deployment_name" name) -> ::String + | ("build_id" name) -> ::String + + def []=: + ("deployment_name" name, (::String | ::Symbol) value) -> void + | ("build_id" name, (::String | ::Symbol) value) -> void + end + + # An indication of user's intent concerning what Build ID versioning approach should be used for + # a specific command + module VersioningIntent + + # Indicates that core should choose the most sensible default behavior for the type of + # command, accounting for whether the command will be run on the same task queue as the current + # worker. + UNSPECIFIED: 0 + + # Indicates that the command should run on a worker with compatible version if possible. It may + # not be possible if the target task queue does not also have knowledge of the current worker's + # build ID. + COMPATIBLE: 1 + + # Indicates that the command should run on the target task queue's current overall-default + # build ID. + DEFAULT: 2 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :UNSPECIFIED | :COMPATIBLE | :DEFAULT + + type strings = "UNSPECIFIED" | "COMPATIBLE" | "DEFAULT" + + type numbers = 0 | 1 | 2 + end + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/internal/bridge/api/core_interface.rbs b/temporalio/sig/temporalio/internal/bridge/api/core_interface.rbs new file mode 100644 index 00000000..497a63c4 --- /dev/null +++ b/temporalio/sig/temporalio/internal/bridge/api/core_interface.rbs @@ -0,0 +1,231 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/sdk/core/core_interface.proto + +module Temporalio + module Internal + module Bridge + module Api + module CoreInterface + # A request as given to `record_activity_heartbeat` + class ActivityHeartbeat < ::Google::Protobuf::AbstractMessage + + attr_accessor task_token(): ::String + def clear_task_token: () -> void + + attr_accessor details(): ::Google::Protobuf::RepeatedField + def clear_details: () -> void + + type init_map = { + task_token: ::String?, + "task_token" => ::String?, + details: ::Array[::Temporalio::Api::Common::V1::Payload]?, + "details" => ::Array[::Temporalio::Api::Common::V1::Payload]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("task_token" name) -> ::String + | ("details" name) -> ::Google::Protobuf::RepeatedField + + def []=: + ("task_token" name, ::String value) -> void + | ("details" name, ::Google::Protobuf::RepeatedField value) -> void + end + + # A request as given to `complete_activity_task` + class ActivityTaskCompletion < ::Google::Protobuf::AbstractMessage + + attr_accessor task_token(): ::String + def clear_task_token: () -> void + + attr_accessor result(): ::Temporalio::Internal::Bridge::Api::ActivityResult::ActivityExecutionResult? + def has_result?: () -> bool + def clear_result: () -> void + + type init_map = { + task_token: ::String?, + "task_token" => ::String?, + result: (::Temporalio::Internal::Bridge::Api::ActivityResult::ActivityExecutionResult | ::Temporalio::Internal::Bridge::Api::ActivityResult::ActivityExecutionResult::init_map)?, + "result" => (::Temporalio::Internal::Bridge::Api::ActivityResult::ActivityExecutionResult | ::Temporalio::Internal::Bridge::Api::ActivityResult::ActivityExecutionResult::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("task_token" name) -> ::String + | ("result" name) -> ::Temporalio::Internal::Bridge::Api::ActivityResult::ActivityExecutionResult? + + def []=: + ("task_token" name, ::String value) -> void + | ("result" name, ::Temporalio::Internal::Bridge::Api::ActivityResult::ActivityExecutionResult? value) -> void + end + + # Info about workflow task slot usage + class WorkflowSlotInfo < ::Google::Protobuf::AbstractMessage + + attr_reader workflow_type(): ::String + attr_writer workflow_type(): ::String | ::Symbol + def clear_workflow_type: () -> void + + attr_accessor is_sticky(): bool + def clear_is_sticky: () -> void + + type init_map = { + workflow_type: (::String | ::Symbol)?, + "workflow_type" => (::String | ::Symbol)?, + is_sticky: bool?, + "is_sticky" => bool?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("workflow_type" name) -> ::String + | ("is_sticky" name) -> bool + + def []=: + ("workflow_type" name, (::String | ::Symbol) value) -> void + | ("is_sticky" name, bool value) -> void + end + + # Info about activity task slot usage + class ActivitySlotInfo < ::Google::Protobuf::AbstractMessage + + attr_reader activity_type(): ::String + attr_writer activity_type(): ::String | ::Symbol + def clear_activity_type: () -> void + + type init_map = { + activity_type: (::String | ::Symbol)?, + "activity_type" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("activity_type" name) -> ::String + + def []=: + ("activity_type" name, (::String | ::Symbol) value) -> void + end + + # Info about local activity slot usage + class LocalActivitySlotInfo < ::Google::Protobuf::AbstractMessage + + attr_reader activity_type(): ::String + attr_writer activity_type(): ::String | ::Symbol + def clear_activity_type: () -> void + + type init_map = { + activity_type: (::String | ::Symbol)?, + "activity_type" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("activity_type" name) -> ::String + + def []=: + ("activity_type" name, (::String | ::Symbol) value) -> void + end + + # Info about nexus task slot usage + class NexusSlotInfo < ::Google::Protobuf::AbstractMessage + + attr_reader service(): ::String + attr_writer service(): ::String | ::Symbol + def clear_service: () -> void + + attr_reader operation(): ::String + attr_writer operation(): ::String | ::Symbol + def clear_operation: () -> void + + type init_map = { + service: (::String | ::Symbol)?, + "service" => (::String | ::Symbol)?, + operation: (::String | ::Symbol)?, + "operation" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("service" name) -> ::String + | ("operation" name) -> ::String + + def []=: + ("service" name, (::String | ::Symbol) value) -> void + | ("operation" name, (::String | ::Symbol) value) -> void + end + + # Info about a namespace + class NamespaceInfo < ::Google::Protobuf::AbstractMessage + class Limits < ::Google::Protobuf::AbstractMessage + + # 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. + attr_reader blob_size_limit_error(): ::Integer + attr_writer blob_size_limit_error(): ::Integer | ::Float + def clear_blob_size_limit_error: () -> void + + # Maximum total memo size in bytes per workflow execution. + attr_reader memo_size_limit_error(): ::Integer + attr_writer memo_size_limit_error(): ::Integer | ::Float + def clear_memo_size_limit_error: () -> void + + type init_map = { + blob_size_limit_error: (::Integer | ::Float)?, + "blob_size_limit_error" => (::Integer | ::Float)?, + memo_size_limit_error: (::Integer | ::Float)?, + "memo_size_limit_error" => (::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("blob_size_limit_error" name) -> ::Integer + | ("memo_size_limit_error" name) -> ::Integer + + def []=: + ("blob_size_limit_error" name, (::Integer | ::Float) value) -> void + | ("memo_size_limit_error" name, (::Integer | ::Float) value) -> void + end + + # Namespace configured limits + attr_accessor limits(): ::Temporalio::Internal::Bridge::Api::CoreInterface::NamespaceInfo::Limits? + def has_limits?: () -> bool + def clear_limits: () -> void + + type init_map = { + limits: (::Temporalio::Internal::Bridge::Api::CoreInterface::NamespaceInfo::Limits | ::Temporalio::Internal::Bridge::Api::CoreInterface::NamespaceInfo::Limits::init_map)?, + "limits" => (::Temporalio::Internal::Bridge::Api::CoreInterface::NamespaceInfo::Limits | ::Temporalio::Internal::Bridge::Api::CoreInterface::NamespaceInfo::Limits::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("limits" name) -> ::Temporalio::Internal::Bridge::Api::CoreInterface::NamespaceInfo::Limits? + + def []=: + ("limits" name, ::Temporalio::Internal::Bridge::Api::CoreInterface::NamespaceInfo::Limits? value) -> void + end + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/internal/bridge/api/external_data/external_data.rbs b/temporalio/sig/temporalio/internal/bridge/api/external_data/external_data.rbs new file mode 100644 index 00000000..0343d5e9 --- /dev/null +++ b/temporalio/sig/temporalio/internal/bridge/api/external_data/external_data.rbs @@ -0,0 +1,134 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/sdk/core/external_data/external_data.proto + +module Temporalio + module Internal + module Bridge + module Api + module ExternalData + class LocalActivityMarkerData < ::Google::Protobuf::AbstractMessage + + attr_reader seq(): ::Integer + attr_writer seq(): ::Integer | ::Float + def clear_seq: () -> void + + # The number of attempts at execution before we recorded this result. Typically starts at 1, + # but it is possible to start at a higher number when backing off using a timer. + attr_reader attempt(): ::Integer + attr_writer attempt(): ::Integer | ::Float + def clear_attempt: () -> void + + attr_reader activity_id(): ::String + attr_writer activity_id(): ::String | ::Symbol + def clear_activity_id: () -> void + + attr_reader activity_type(): ::String + attr_writer activity_type(): ::String | ::Symbol + def clear_activity_type: () -> void + + # You can think of this as "perceived completion time". It is the time the local activity thought + # it was when it completed. Which could be different from wall-clock time because of workflow + # replay. It's the WFT start time + the LA's runtime + attr_reader complete_time(): ::Google::Protobuf::Timestamp? + attr_writer complete_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_complete_time?: () -> bool + def clear_complete_time: () -> void + + # If set, this local activity conceptually is retrying after the specified backoff. + # Implementation wise, they are really two different LA machines, but with the same type & input. + # The retry starts with an attempt number > 1. + attr_reader backoff(): ::Google::Protobuf::Duration? + attr_writer backoff(): (::Google::Protobuf::Duration | ::int)? + def has_backoff?: () -> bool + def clear_backoff: () -> void + + # The time the LA was originally scheduled (wall clock time). This is used to track + # schedule-to-close timeouts when timer-based backoffs are used + attr_reader original_schedule_time(): ::Google::Protobuf::Timestamp? + attr_writer original_schedule_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_original_schedule_time?: () -> bool + def clear_original_schedule_time: () -> void + + type init_map = { + seq: (::Integer | ::Float)?, + "seq" => (::Integer | ::Float)?, + attempt: (::Integer | ::Float)?, + "attempt" => (::Integer | ::Float)?, + activity_id: (::String | ::Symbol)?, + "activity_id" => (::String | ::Symbol)?, + activity_type: (::String | ::Symbol)?, + "activity_type" => (::String | ::Symbol)?, + complete_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "complete_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + backoff: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "backoff" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + original_schedule_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "original_schedule_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("seq" name) -> ::Integer + | ("attempt" name) -> ::Integer + | ("activity_id" name) -> ::String + | ("activity_type" name) -> ::String + | ("complete_time" name) -> ::Google::Protobuf::Timestamp? + | ("backoff" name) -> ::Google::Protobuf::Duration? + | ("original_schedule_time" name) -> ::Google::Protobuf::Timestamp? + + def []=: + ("seq" name, (::Integer | ::Float) value) -> void + | ("attempt" name, (::Integer | ::Float) value) -> void + | ("activity_id" name, (::String | ::Symbol) value) -> void + | ("activity_type" name, (::String | ::Symbol) value) -> void + | ("complete_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("backoff" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("original_schedule_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + end + + class PatchedMarkerData < ::Google::Protobuf::AbstractMessage + + # The patch id + attr_reader id(): ::String + attr_writer id(): ::String | ::Symbol + def clear_id: () -> void + + # Whether or not the patch is marked deprecated. + attr_accessor deprecated(): bool + def clear_deprecated: () -> void + + type init_map = { + id: (::String | ::Symbol)?, + "id" => (::String | ::Symbol)?, + deprecated: bool?, + "deprecated" => bool?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("id" name) -> ::String + | ("deprecated" name) -> bool + + def []=: + ("id" name, (::String | ::Symbol) value) -> void + | ("deprecated" name, bool value) -> void + end + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/internal/bridge/api/nexus/nexus.rbs b/temporalio/sig/temporalio/internal/bridge/api/nexus/nexus.rbs new file mode 100644 index 00000000..f8cf7787 --- /dev/null +++ b/temporalio/sig/temporalio/internal/bridge/api/nexus/nexus.rbs @@ -0,0 +1,275 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/sdk/core/nexus/nexus.proto + +module Temporalio + module Internal + module Bridge + module Api + module Nexus + # Used by core to resolve nexus operations. + class NexusOperationResult < ::Google::Protobuf::AbstractMessage + + attr_accessor completed(): ::Temporalio::Api::Common::V1::Payload? + def has_completed?: () -> bool + def clear_completed: () -> void + + attr_accessor failed(): ::Temporalio::Api::Failure::V1::Failure? + def has_failed?: () -> bool + def clear_failed: () -> void + + attr_accessor cancelled(): ::Temporalio::Api::Failure::V1::Failure? + def has_cancelled?: () -> bool + def clear_cancelled: () -> void + + attr_accessor timed_out(): ::Temporalio::Api::Failure::V1::Failure? + def has_timed_out?: () -> bool + def clear_timed_out: () -> void + + attr_reader status(): (::Temporalio::Api::Common::V1::Payload | ::Temporalio::Api::Failure::V1::Failure)? + def has_status?: () -> bool + def clear_status: () -> void + + type init_map = { + completed: (::Temporalio::Api::Common::V1::Payload | ::Temporalio::Api::Common::V1::Payload::init_map)?, + "completed" => (::Temporalio::Api::Common::V1::Payload | ::Temporalio::Api::Common::V1::Payload::init_map)?, + failed: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + "failed" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + cancelled: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + "cancelled" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + timed_out: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + "timed_out" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("completed" name) -> ::Temporalio::Api::Common::V1::Payload? + | ("failed" name) -> ::Temporalio::Api::Failure::V1::Failure? + | ("cancelled" name) -> ::Temporalio::Api::Failure::V1::Failure? + | ("timed_out" name) -> ::Temporalio::Api::Failure::V1::Failure? + + def []=: + ("completed" name, ::Temporalio::Api::Common::V1::Payload? value) -> void + | ("failed" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void + | ("cancelled" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void + | ("timed_out" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void + end + + # A response to a Nexus task + class NexusTaskCompletion < ::Google::Protobuf::AbstractMessage + + # The unique identifier for this task provided in the poll response + attr_accessor task_token(): ::String + def clear_task_token: () -> void + + # The handler completed (successfully or not). Note that the response kind must match the + # request kind (start or cancel). + attr_accessor completed(): ::Temporalio::Api::Nexus::V1::Response? + def has_completed?: () -> bool + def clear_completed: () -> void + + # The handler could not complete the request for some reason. Deprecated, use failure. + # @deprecated + attr_accessor error(): ::Temporalio::Api::Nexus::V1::HandlerError? + def has_error?: () -> bool + def clear_error: () -> void + + # The lang SDK acknowledges that it is responding to a `CancelNexusTask` and thus the + # response is irrelevant. This is not the only way to respond to a cancel, the other + # variants can still be used, but this variant should be used when the handler was aborted + # by cancellation. + attr_reader ack_cancel(): bool + attr_writer ack_cancel(): bool? + def has_ack_cancel?: () -> bool + def clear_ack_cancel: () -> void + + # The handler could not complete the request for some reason. + attr_accessor failure(): ::Temporalio::Api::Failure::V1::Failure? + def has_failure?: () -> bool + def clear_failure: () -> void + + attr_reader status(): (::Temporalio::Api::Nexus::V1::Response | ::Temporalio::Api::Nexus::V1::HandlerError | bool | ::Temporalio::Api::Failure::V1::Failure)? + def has_status?: () -> bool + def clear_status: () -> void + + type init_map = { + task_token: ::String?, + "task_token" => ::String?, + completed: (::Temporalio::Api::Nexus::V1::Response | ::Temporalio::Api::Nexus::V1::Response::init_map)?, + "completed" => (::Temporalio::Api::Nexus::V1::Response | ::Temporalio::Api::Nexus::V1::Response::init_map)?, + error: (::Temporalio::Api::Nexus::V1::HandlerError | ::Temporalio::Api::Nexus::V1::HandlerError::init_map)?, + "error" => (::Temporalio::Api::Nexus::V1::HandlerError | ::Temporalio::Api::Nexus::V1::HandlerError::init_map)?, + ack_cancel: bool?, + "ack_cancel" => bool?, + failure: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + "failure" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("task_token" name) -> ::String + | ("completed" name) -> ::Temporalio::Api::Nexus::V1::Response? + | ("error" name) -> ::Temporalio::Api::Nexus::V1::HandlerError? + | ("ack_cancel" name) -> bool + | ("failure" name) -> ::Temporalio::Api::Failure::V1::Failure? + + def []=: + ("task_token" name, ::String value) -> void + | ("completed" name, ::Temporalio::Api::Nexus::V1::Response? value) -> void + | ("error" name, ::Temporalio::Api::Nexus::V1::HandlerError? value) -> void + | ("ack_cancel" name, bool? value) -> void + | ("failure" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void + end + + class NexusTask < ::Google::Protobuf::AbstractMessage + + # A nexus task from server + attr_accessor task(): ::Temporalio::Api::WorkflowService::V1::PollNexusTaskQueueResponse? + def has_task?: () -> bool + def clear_task: () -> void + + # A request by Core to notify an in-progress operation handler that it should cancel. This + # is distinct from a `CancelOperationRequest` from the server, which results from the user + # requesting the cancellation of an operation. Handling this variant should result in + # something like cancelling a cancellation token given to the user's operation handler. + # These do not count as a separate task for the purposes of completing all issued tasks, + # but rather count as a sort of modification to the already-issued task which is being + # cancelled. + # EX: Core knows the nexus operation has timed out, and it does not make sense for the + # user's operation handler to continue doing work. + attr_accessor cancel_task(): ::Temporalio::Internal::Bridge::Api::Nexus::CancelNexusTask? + def has_cancel_task?: () -> bool + def clear_cancel_task: () -> void + + # The deadline for this request, parsed from the "Request-Timeout" header. + # Only set when variant is `task` and the header was present with a valid value. + # Represented as an absolute timestamp. + attr_reader request_deadline(): ::Google::Protobuf::Timestamp? + attr_writer request_deadline(): (::Google::Protobuf::Timestamp | ::Time)? + def has_request_deadline?: () -> bool + def clear_request_deadline: () -> void + + attr_reader variant(): (::Temporalio::Api::WorkflowService::V1::PollNexusTaskQueueResponse | ::Temporalio::Internal::Bridge::Api::Nexus::CancelNexusTask)? + def has_variant?: () -> bool + def clear_variant: () -> void + + type init_map = { + task: (::Temporalio::Api::WorkflowService::V1::PollNexusTaskQueueResponse | ::Temporalio::Api::WorkflowService::V1::PollNexusTaskQueueResponse::init_map)?, + "task" => (::Temporalio::Api::WorkflowService::V1::PollNexusTaskQueueResponse | ::Temporalio::Api::WorkflowService::V1::PollNexusTaskQueueResponse::init_map)?, + cancel_task: (::Temporalio::Internal::Bridge::Api::Nexus::CancelNexusTask | ::Temporalio::Internal::Bridge::Api::Nexus::CancelNexusTask::init_map)?, + "cancel_task" => (::Temporalio::Internal::Bridge::Api::Nexus::CancelNexusTask | ::Temporalio::Internal::Bridge::Api::Nexus::CancelNexusTask::init_map)?, + request_deadline: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "request_deadline" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("task" name) -> ::Temporalio::Api::WorkflowService::V1::PollNexusTaskQueueResponse? + | ("cancel_task" name) -> ::Temporalio::Internal::Bridge::Api::Nexus::CancelNexusTask? + | ("request_deadline" name) -> ::Google::Protobuf::Timestamp? + + def []=: + ("task" name, ::Temporalio::Api::WorkflowService::V1::PollNexusTaskQueueResponse? value) -> void + | ("cancel_task" name, ::Temporalio::Internal::Bridge::Api::Nexus::CancelNexusTask? value) -> void + | ("request_deadline" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + end + + class CancelNexusTask < ::Google::Protobuf::AbstractMessage + + # The task token from the PollNexusTaskQueueResponse + attr_accessor task_token(): ::String + def clear_task_token: () -> void + + # Why Core is asking for this operation to be cancelled + attr_reader reason(): ::Temporalio::Internal::Bridge::Api::Nexus::NexusTaskCancelReason::names | ::Integer + attr_writer reason(): ::Temporalio::Internal::Bridge::Api::Nexus::NexusTaskCancelReason::names | ::Temporalio::Internal::Bridge::Api::Nexus::NexusTaskCancelReason::strings | ::Integer | ::Float + attr_reader reason_const(): ::Integer + def clear_reason: () -> void + + type init_map = { + task_token: ::String?, + "task_token" => ::String?, + reason: (::Temporalio::Internal::Bridge::Api::Nexus::NexusTaskCancelReason::names | ::Temporalio::Internal::Bridge::Api::Nexus::NexusTaskCancelReason::strings | ::Integer | ::Float)?, + "reason" => (::Temporalio::Internal::Bridge::Api::Nexus::NexusTaskCancelReason::names | ::Temporalio::Internal::Bridge::Api::Nexus::NexusTaskCancelReason::strings | ::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("task_token" name) -> ::String + | ("reason" name) -> (::Temporalio::Internal::Bridge::Api::Nexus::NexusTaskCancelReason::names | ::Integer) + + def []=: + ("task_token" name, ::String value) -> void + | ("reason" name, (::Temporalio::Internal::Bridge::Api::Nexus::NexusTaskCancelReason::names | ::Temporalio::Internal::Bridge::Api::Nexus::NexusTaskCancelReason::strings | ::Integer | ::Float) value) -> void + end + + module NexusTaskCancelReason + + # The nexus task is known to have timed out + TIMED_OUT: 0 + + # The worker is shutting down + WORKER_SHUTDOWN: 1 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :TIMED_OUT | :WORKER_SHUTDOWN + + type strings = "TIMED_OUT" | "WORKER_SHUTDOWN" + + type numbers = 0 | 1 + end + + # Controls at which point to report back to lang when a nexus operation is cancelled + module NexusOperationCancellationType + + # Wait for operation cancellation completion. Default. + WAIT_CANCELLATION_COMPLETED: 0 + + # Do not request cancellation of the nexus operation if already scheduled + ABANDON: 1 + + # Initiate a cancellation request for the Nexus operation and immediately report cancellation + # to the caller. Note that it doesn't guarantee that cancellation is delivered to the operation if calling workflow exits before the delivery is done. + # If you want to ensure that cancellation is delivered to the operation, use WAIT_CANCELLATION_REQUESTED. + TRY_CANCEL: 2 + + # Request cancellation of the operation and wait for confirmation that the request was received. + WAIT_CANCELLATION_REQUESTED: 3 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :WAIT_CANCELLATION_COMPLETED | :ABANDON | :TRY_CANCEL | :WAIT_CANCELLATION_REQUESTED + + type strings = "WAIT_CANCELLATION_COMPLETED" | "ABANDON" | "TRY_CANCEL" | "WAIT_CANCELLATION_REQUESTED" + + type numbers = 0 | 1 | 2 | 3 + end + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/internal/bridge/api/workflow_activation/workflow_activation.rbs b/temporalio/sig/temporalio/internal/bridge/api/workflow_activation/workflow_activation.rbs new file mode 100644 index 00000000..240e6569 --- /dev/null +++ b/temporalio/sig/temporalio/internal/bridge/api/workflow_activation/workflow_activation.rbs @@ -0,0 +1,1304 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/sdk/core/workflow_activation/workflow_activation.proto + +module Temporalio + module Internal + module Bridge + module Api + module WorkflowActivation + # An instruction to the lang sdk to run some workflow code, whether for the first time or from + # a cached state. + # ## Job ordering guarantees and semantics + # Core will, by default, order jobs within the activation as follows: + # 1. init workflow + # 2. patches + # 3. random-seed-updates + # 4. signals/updates + # 5. all others + # 6. local activity resolutions + # 7. queries + # 8. evictions + # This is because: + # * Patches are expected to apply to the entire activation + # * Signal and update handlers should be invoked before workflow routines are iterated. That is to + # say before the users' main workflow function and anything spawned by it is allowed to continue. + # * Local activities resolutions go after other normal jobs because while *not* replaying, they + # will always take longer than anything else that produces an immediate job (which is + # effectively instant). When *replaying* we need to scan ahead for LA markers so that we can + # resolve them in the same activation that they completed in when not replaying. However, doing + # so would, by default, put those resolutions *before* any other immediate jobs that happened + # in that same activation (prime example: cancelling not-wait-for-cancel activities). So, we do + # this to ensure the LA resolution happens after that cancel (or whatever else it may be) as it + # normally would have when executing. + # * Queries always go last (and, in fact, always come in their own activation) + # * Evictions also always come in their own activation + # Core does this reordering to ensure that langs observe jobs in the same order during replay as + # they would have during execution. However, in principle, this ordering is not necessary + # (excepting queries/evictions, which definitely must come last) if lang layers apply all jobs to + # state *first* (by resolving promises/futures, marking handlers to be invoked, etc as they iterate + # over the jobs) and then only *after* that is done, drive coroutines/threads/whatever. If + # execution works this way, then determinism is only impacted by the order routines are driven in + # (which must be stable based on lang implementation or convention), rather than the order jobs are + # processed. + # ## Evictions + # Evictions appear as an activations that contains only a `remove_from_cache` job. Such activations + # should not cause the workflow code to be invoked and may be responded to with an empty command + # list. + class WorkflowActivation < ::Google::Protobuf::AbstractMessage + + # The id of the currently active run of the workflow. Also used as a cache key. There may + # only ever be one active workflow task (and hence activation) of a run at one time. + attr_reader run_id(): ::String + attr_writer run_id(): ::String | ::Symbol + def clear_run_id: () -> void + + # The current time as understood by the workflow, which is set by workflow task started events + attr_reader timestamp(): ::Google::Protobuf::Timestamp? + attr_writer timestamp(): (::Google::Protobuf::Timestamp | ::Time)? + def has_timestamp?: () -> bool + def clear_timestamp: () -> void + + # Whether or not the activation is replaying past events + attr_accessor is_replaying(): bool + def clear_is_replaying: () -> void + + # Current history length as determined by the event id of the most recently processed event. + # This ensures that the number is always deterministic + attr_reader history_length(): ::Integer + attr_writer history_length(): ::Integer | ::Float + def clear_history_length: () -> void + + # The things to do upon activating the workflow + attr_accessor jobs(): ::Google::Protobuf::RepeatedField + def clear_jobs: () -> void + + # Internal flags which are available for use by lang. If `is_replaying` is false, all + # internal flags may be used. This is not a delta - all previously used flags always + # appear since this representation is cheap. + attr_accessor available_internal_flags(): ::Google::Protobuf::RepeatedField + def clear_available_internal_flags: () -> void + + # The history size in bytes as of the last WFT started event + attr_reader history_size_bytes(): ::Integer + attr_writer history_size_bytes(): ::Integer | ::Float + def clear_history_size_bytes: () -> void + + # Set true if the most recent WFT started event had this suggestion + attr_accessor continue_as_new_suggested(): bool + def clear_continue_as_new_suggested: () -> void + + # Set to the deployment version of the worker that processed this task, + # which may be empty. During replay this version may not equal the version + # of the replaying worker. If not replaying and this worker has a defined + # Deployment Version, it will equal that. It will also be empty for + # evict-only activations. The deployment name may be empty, but not the + # build id, if this worker was using the deprecated Build ID-only + # feature(s). + attr_accessor deployment_version_for_current_task(): ::Temporalio::Internal::Bridge::Api::Common::WorkerDeploymentVersion? + def has_deployment_version_for_current_task?: () -> bool + def clear_deployment_version_for_current_task: () -> void + + # The last seen SDK version from the most recent WFT completed event + attr_reader last_sdk_version(): ::String + attr_writer last_sdk_version(): ::String | ::Symbol + def clear_last_sdk_version: () -> void + + # 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. + attr_accessor suggest_continue_as_new_reasons(): ::Google::Protobuf::RepeatedField + attr_reader suggest_continue_as_new_reasons_const(): ::Array[::Integer] + def clear_suggest_continue_as_new_reasons: () -> void + + # True if Workflow's Target Worker Deployment Version is different from its Pinned Version and + # the workflow is Pinned. + # Experimental. + attr_accessor target_worker_deployment_version_changed(): bool + def clear_target_worker_deployment_version_changed: () -> void + + type init_map = { + run_id: (::String | ::Symbol)?, + "run_id" => (::String | ::Symbol)?, + timestamp: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "timestamp" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + is_replaying: bool?, + "is_replaying" => bool?, + history_length: (::Integer | ::Float)?, + "history_length" => (::Integer | ::Float)?, + jobs: ::Array[::Temporalio::Internal::Bridge::Api::WorkflowActivation::WorkflowActivationJob]?, + "jobs" => ::Array[::Temporalio::Internal::Bridge::Api::WorkflowActivation::WorkflowActivationJob]?, + available_internal_flags: ::Array[::Integer | ::Float]?, + "available_internal_flags" => ::Array[::Integer | ::Float]?, + history_size_bytes: (::Integer | ::Float)?, + "history_size_bytes" => (::Integer | ::Float)?, + continue_as_new_suggested: bool?, + "continue_as_new_suggested" => bool?, + deployment_version_for_current_task: (::Temporalio::Internal::Bridge::Api::Common::WorkerDeploymentVersion | ::Temporalio::Internal::Bridge::Api::Common::WorkerDeploymentVersion::init_map)?, + "deployment_version_for_current_task" => (::Temporalio::Internal::Bridge::Api::Common::WorkerDeploymentVersion | ::Temporalio::Internal::Bridge::Api::Common::WorkerDeploymentVersion::init_map)?, + last_sdk_version: (::String | ::Symbol)?, + "last_sdk_version" => (::String | ::Symbol)?, + suggest_continue_as_new_reasons: ::Array[::Temporalio::Api::Enums::V1::SuggestContinueAsNewReason::names | ::Temporalio::Api::Enums::V1::SuggestContinueAsNewReason::strings | ::Integer | ::Float]?, + "suggest_continue_as_new_reasons" => ::Array[::Temporalio::Api::Enums::V1::SuggestContinueAsNewReason::names | ::Temporalio::Api::Enums::V1::SuggestContinueAsNewReason::strings | ::Integer | ::Float]?, + target_worker_deployment_version_changed: bool?, + "target_worker_deployment_version_changed" => bool?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("run_id" name) -> ::String + | ("timestamp" name) -> ::Google::Protobuf::Timestamp? + | ("is_replaying" name) -> bool + | ("history_length" name) -> ::Integer + | ("jobs" name) -> ::Google::Protobuf::RepeatedField + | ("available_internal_flags" name) -> (::Google::Protobuf::RepeatedField) + | ("history_size_bytes" name) -> ::Integer + | ("continue_as_new_suggested" name) -> bool + | ("deployment_version_for_current_task" name) -> ::Temporalio::Internal::Bridge::Api::Common::WorkerDeploymentVersion? + | ("last_sdk_version" name) -> ::String + | ("suggest_continue_as_new_reasons" name) -> (::Google::Protobuf::RepeatedField) + | ("target_worker_deployment_version_changed" name) -> bool + + def []=: + ("run_id" name, (::String | ::Symbol) value) -> void + | ("timestamp" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("is_replaying" name, bool value) -> void + | ("history_length" name, (::Integer | ::Float) value) -> void + | ("jobs" name, ::Google::Protobuf::RepeatedField value) -> void + | ("available_internal_flags" name, (::Google::Protobuf::RepeatedField) value) -> void + | ("history_size_bytes" name, (::Integer | ::Float) value) -> void + | ("continue_as_new_suggested" name, bool value) -> void + | ("deployment_version_for_current_task" name, ::Temporalio::Internal::Bridge::Api::Common::WorkerDeploymentVersion? value) -> void + | ("last_sdk_version" name, (::String | ::Symbol) value) -> void + | ("suggest_continue_as_new_reasons" name, (::Google::Protobuf::RepeatedField) value) -> void + | ("target_worker_deployment_version_changed" name, bool value) -> void + end + + class WorkflowActivationJob < ::Google::Protobuf::AbstractMessage + + # A workflow is starting, record all of the information from its start event + attr_accessor initialize_workflow(): ::Temporalio::Internal::Bridge::Api::WorkflowActivation::InitializeWorkflow? + def has_initialize_workflow?: () -> bool + def clear_initialize_workflow: () -> void + + # A timer has fired, allowing whatever was waiting on it (if anything) to proceed + attr_accessor fire_timer(): ::Temporalio::Internal::Bridge::Api::WorkflowActivation::FireTimer? + def has_fire_timer?: () -> bool + def clear_fire_timer: () -> void + + # Workflow was reset. The randomness seed must be updated. + attr_accessor update_random_seed(): ::Temporalio::Internal::Bridge::Api::WorkflowActivation::UpdateRandomSeed? + def has_update_random_seed?: () -> bool + def clear_update_random_seed: () -> void + + # A request to query the workflow was received. It is guaranteed that queries (one or more) + # always come in their own activation after other mutating jobs. + attr_accessor query_workflow(): ::Temporalio::Internal::Bridge::Api::WorkflowActivation::QueryWorkflow? + def has_query_workflow?: () -> bool + def clear_query_workflow: () -> void + + # A request to cancel the workflow was received. + attr_accessor cancel_workflow(): ::Temporalio::Internal::Bridge::Api::WorkflowActivation::CancelWorkflow? + def has_cancel_workflow?: () -> bool + def clear_cancel_workflow: () -> void + + # A request to signal the workflow was received. + attr_accessor signal_workflow(): ::Temporalio::Internal::Bridge::Api::WorkflowActivation::SignalWorkflow? + def has_signal_workflow?: () -> bool + def clear_signal_workflow: () -> void + + # An activity was resolved, result could be completed, failed or cancelled + attr_accessor resolve_activity(): ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveActivity? + def has_resolve_activity?: () -> bool + def clear_resolve_activity: () -> void + + # A patch marker has been detected and lang is being told that change exists. This + # job is strange in that it is sent pre-emptively to lang without any corresponding + # command being sent first. + attr_accessor notify_has_patch(): ::Temporalio::Internal::Bridge::Api::WorkflowActivation::NotifyHasPatch? + def has_notify_has_patch?: () -> bool + def clear_notify_has_patch: () -> void + + # A child workflow execution has started or failed to start + attr_accessor resolve_child_workflow_execution_start(): ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStart? + def has_resolve_child_workflow_execution_start?: () -> bool + def clear_resolve_child_workflow_execution_start: () -> void + + # A child workflow was resolved, result could be completed or failed + attr_accessor resolve_child_workflow_execution(): ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecution? + def has_resolve_child_workflow_execution?: () -> bool + def clear_resolve_child_workflow_execution: () -> void + + # An attempt to signal an external workflow resolved + attr_accessor resolve_signal_external_workflow(): ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveSignalExternalWorkflow? + def has_resolve_signal_external_workflow?: () -> bool + def clear_resolve_signal_external_workflow: () -> void + + # An attempt to cancel an external workflow resolved + attr_accessor resolve_request_cancel_external_workflow(): ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveRequestCancelExternalWorkflow? + def has_resolve_request_cancel_external_workflow?: () -> bool + def clear_resolve_request_cancel_external_workflow: () -> void + + # A request to handle a workflow update. + attr_accessor do_update(): ::Temporalio::Internal::Bridge::Api::WorkflowActivation::DoUpdate? + def has_do_update?: () -> bool + def clear_do_update: () -> void + + # A nexus operation started. + attr_accessor resolve_nexus_operation_start(): ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveNexusOperationStart? + def has_resolve_nexus_operation_start?: () -> bool + def clear_resolve_nexus_operation_start: () -> void + + # A nexus operation resolved. + attr_accessor resolve_nexus_operation(): ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveNexusOperation? + def has_resolve_nexus_operation?: () -> bool + def clear_resolve_nexus_operation: () -> void + + # Remove the workflow identified by the [WorkflowActivation] containing this job from the + # cache after performing the activation. It is guaranteed that this will be the only job + # in the activation if present. + attr_accessor remove_from_cache(): ::Temporalio::Internal::Bridge::Api::WorkflowActivation::RemoveFromCache? + def has_remove_from_cache?: () -> bool + def clear_remove_from_cache: () -> void + + attr_reader variant(): (::Temporalio::Internal::Bridge::Api::WorkflowActivation::InitializeWorkflow | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::FireTimer | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::UpdateRandomSeed | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::QueryWorkflow | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::CancelWorkflow | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::SignalWorkflow | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveActivity | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::NotifyHasPatch | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStart | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecution | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveSignalExternalWorkflow | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveRequestCancelExternalWorkflow | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::DoUpdate | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveNexusOperationStart | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveNexusOperation | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::RemoveFromCache)? + def has_variant?: () -> bool + def clear_variant: () -> void + + type init_map = { + initialize_workflow: (::Temporalio::Internal::Bridge::Api::WorkflowActivation::InitializeWorkflow | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::InitializeWorkflow::init_map)?, + "initialize_workflow" => (::Temporalio::Internal::Bridge::Api::WorkflowActivation::InitializeWorkflow | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::InitializeWorkflow::init_map)?, + fire_timer: (::Temporalio::Internal::Bridge::Api::WorkflowActivation::FireTimer | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::FireTimer::init_map)?, + "fire_timer" => (::Temporalio::Internal::Bridge::Api::WorkflowActivation::FireTimer | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::FireTimer::init_map)?, + update_random_seed: (::Temporalio::Internal::Bridge::Api::WorkflowActivation::UpdateRandomSeed | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::UpdateRandomSeed::init_map)?, + "update_random_seed" => (::Temporalio::Internal::Bridge::Api::WorkflowActivation::UpdateRandomSeed | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::UpdateRandomSeed::init_map)?, + query_workflow: (::Temporalio::Internal::Bridge::Api::WorkflowActivation::QueryWorkflow | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::QueryWorkflow::init_map)?, + "query_workflow" => (::Temporalio::Internal::Bridge::Api::WorkflowActivation::QueryWorkflow | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::QueryWorkflow::init_map)?, + cancel_workflow: (::Temporalio::Internal::Bridge::Api::WorkflowActivation::CancelWorkflow | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::CancelWorkflow::init_map)?, + "cancel_workflow" => (::Temporalio::Internal::Bridge::Api::WorkflowActivation::CancelWorkflow | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::CancelWorkflow::init_map)?, + signal_workflow: (::Temporalio::Internal::Bridge::Api::WorkflowActivation::SignalWorkflow | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::SignalWorkflow::init_map)?, + "signal_workflow" => (::Temporalio::Internal::Bridge::Api::WorkflowActivation::SignalWorkflow | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::SignalWorkflow::init_map)?, + resolve_activity: (::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveActivity | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveActivity::init_map)?, + "resolve_activity" => (::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveActivity | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveActivity::init_map)?, + notify_has_patch: (::Temporalio::Internal::Bridge::Api::WorkflowActivation::NotifyHasPatch | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::NotifyHasPatch::init_map)?, + "notify_has_patch" => (::Temporalio::Internal::Bridge::Api::WorkflowActivation::NotifyHasPatch | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::NotifyHasPatch::init_map)?, + resolve_child_workflow_execution_start: (::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStart | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStart::init_map)?, + "resolve_child_workflow_execution_start" => (::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStart | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStart::init_map)?, + resolve_child_workflow_execution: (::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecution | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecution::init_map)?, + "resolve_child_workflow_execution" => (::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecution | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecution::init_map)?, + resolve_signal_external_workflow: (::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveSignalExternalWorkflow | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveSignalExternalWorkflow::init_map)?, + "resolve_signal_external_workflow" => (::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveSignalExternalWorkflow | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveSignalExternalWorkflow::init_map)?, + resolve_request_cancel_external_workflow: (::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveRequestCancelExternalWorkflow | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveRequestCancelExternalWorkflow::init_map)?, + "resolve_request_cancel_external_workflow" => (::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveRequestCancelExternalWorkflow | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveRequestCancelExternalWorkflow::init_map)?, + do_update: (::Temporalio::Internal::Bridge::Api::WorkflowActivation::DoUpdate | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::DoUpdate::init_map)?, + "do_update" => (::Temporalio::Internal::Bridge::Api::WorkflowActivation::DoUpdate | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::DoUpdate::init_map)?, + resolve_nexus_operation_start: (::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveNexusOperationStart | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveNexusOperationStart::init_map)?, + "resolve_nexus_operation_start" => (::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveNexusOperationStart | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveNexusOperationStart::init_map)?, + resolve_nexus_operation: (::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveNexusOperation | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveNexusOperation::init_map)?, + "resolve_nexus_operation" => (::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveNexusOperation | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveNexusOperation::init_map)?, + remove_from_cache: (::Temporalio::Internal::Bridge::Api::WorkflowActivation::RemoveFromCache | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::RemoveFromCache::init_map)?, + "remove_from_cache" => (::Temporalio::Internal::Bridge::Api::WorkflowActivation::RemoveFromCache | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::RemoveFromCache::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("initialize_workflow" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowActivation::InitializeWorkflow? + | ("fire_timer" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowActivation::FireTimer? + | ("update_random_seed" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowActivation::UpdateRandomSeed? + | ("query_workflow" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowActivation::QueryWorkflow? + | ("cancel_workflow" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowActivation::CancelWorkflow? + | ("signal_workflow" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowActivation::SignalWorkflow? + | ("resolve_activity" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveActivity? + | ("notify_has_patch" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowActivation::NotifyHasPatch? + | ("resolve_child_workflow_execution_start" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStart? + | ("resolve_child_workflow_execution" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecution? + | ("resolve_signal_external_workflow" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveSignalExternalWorkflow? + | ("resolve_request_cancel_external_workflow" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveRequestCancelExternalWorkflow? + | ("do_update" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowActivation::DoUpdate? + | ("resolve_nexus_operation_start" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveNexusOperationStart? + | ("resolve_nexus_operation" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveNexusOperation? + | ("remove_from_cache" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowActivation::RemoveFromCache? + + def []=: + ("initialize_workflow" name, ::Temporalio::Internal::Bridge::Api::WorkflowActivation::InitializeWorkflow? value) -> void + | ("fire_timer" name, ::Temporalio::Internal::Bridge::Api::WorkflowActivation::FireTimer? value) -> void + | ("update_random_seed" name, ::Temporalio::Internal::Bridge::Api::WorkflowActivation::UpdateRandomSeed? value) -> void + | ("query_workflow" name, ::Temporalio::Internal::Bridge::Api::WorkflowActivation::QueryWorkflow? value) -> void + | ("cancel_workflow" name, ::Temporalio::Internal::Bridge::Api::WorkflowActivation::CancelWorkflow? value) -> void + | ("signal_workflow" name, ::Temporalio::Internal::Bridge::Api::WorkflowActivation::SignalWorkflow? value) -> void + | ("resolve_activity" name, ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveActivity? value) -> void + | ("notify_has_patch" name, ::Temporalio::Internal::Bridge::Api::WorkflowActivation::NotifyHasPatch? value) -> void + | ("resolve_child_workflow_execution_start" name, ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStart? value) -> void + | ("resolve_child_workflow_execution" name, ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecution? value) -> void + | ("resolve_signal_external_workflow" name, ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveSignalExternalWorkflow? value) -> void + | ("resolve_request_cancel_external_workflow" name, ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveRequestCancelExternalWorkflow? value) -> void + | ("do_update" name, ::Temporalio::Internal::Bridge::Api::WorkflowActivation::DoUpdate? value) -> void + | ("resolve_nexus_operation_start" name, ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveNexusOperationStart? value) -> void + | ("resolve_nexus_operation" name, ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveNexusOperation? value) -> void + | ("remove_from_cache" name, ::Temporalio::Internal::Bridge::Api::WorkflowActivation::RemoveFromCache? value) -> void + end + + # Initialize a new workflow + class InitializeWorkflow < ::Google::Protobuf::AbstractMessage + + # The identifier the lang-specific sdk uses to execute workflow code + attr_reader workflow_type(): ::String + attr_writer workflow_type(): ::String | ::Symbol + def clear_workflow_type: () -> void + + # The workflow id used on the temporal server + attr_reader workflow_id(): ::String + attr_writer workflow_id(): ::String | ::Symbol + def clear_workflow_id: () -> void + + # Inputs to the workflow code + attr_accessor arguments(): ::Google::Protobuf::RepeatedField + def clear_arguments: () -> void + + # The seed must be used to initialize the random generator used by SDK. + # RandomSeedUpdatedAttributes are used to deliver seed updates. + attr_reader randomness_seed(): ::Integer + attr_writer randomness_seed(): ::Integer | ::Float + def clear_randomness_seed: () -> void + + # Used to add metadata e.g. for tracing and auth, meant to be read and written to by interceptors. + attr_accessor headers(): ::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload] + def clear_headers: () -> void + + # Identity of the client who requested this execution + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + # If this workflow is a child, information about the parent + attr_accessor parent_workflow_info(): ::Temporalio::Internal::Bridge::Api::Common::NamespacedWorkflowExecution? + def has_parent_workflow_info?: () -> bool + def clear_parent_workflow_info: () -> void + + # Total workflow execution timeout including retries and continue as new. + attr_reader workflow_execution_timeout(): ::Google::Protobuf::Duration? + attr_writer workflow_execution_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_workflow_execution_timeout?: () -> bool + def clear_workflow_execution_timeout: () -> void + + # Timeout of a single workflow run. + attr_reader workflow_run_timeout(): ::Google::Protobuf::Duration? + attr_writer workflow_run_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_workflow_run_timeout?: () -> bool + def clear_workflow_run_timeout: () -> void + + # Timeout of a single workflow task. + attr_reader workflow_task_timeout(): ::Google::Protobuf::Duration? + attr_writer workflow_task_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_workflow_task_timeout?: () -> bool + def clear_workflow_task_timeout: () -> void + + # Run id of the previous workflow which continued-as-new or retired or cron executed into this + # workflow, if any. + attr_reader continued_from_execution_run_id(): ::String + attr_writer continued_from_execution_run_id(): ::String | ::Symbol + def clear_continued_from_execution_run_id: () -> void + + # If this workflow was a continuation, indicates the type of continuation. + attr_reader continued_initiator(): ::Temporalio::Api::Enums::V1::ContinueAsNewInitiator::names | ::Integer + attr_writer continued_initiator(): ::Temporalio::Api::Enums::V1::ContinueAsNewInitiator::names | ::Temporalio::Api::Enums::V1::ContinueAsNewInitiator::strings | ::Integer | ::Float + attr_reader continued_initiator_const(): ::Integer + def clear_continued_initiator: () -> void + + # If this workflow was a continuation and that continuation failed, the details of that. + attr_accessor continued_failure(): ::Temporalio::Api::Failure::V1::Failure? + def has_continued_failure?: () -> bool + def clear_continued_failure: () -> void + + # If this workflow was a continuation and that continuation completed, the details of that. + attr_accessor last_completion_result(): ::Temporalio::Api::Common::V1::Payloads? + def has_last_completion_result?: () -> bool + def clear_last_completion_result: () -> void + + # This is the very first run id the workflow ever had, following continuation chains. + attr_reader first_execution_run_id(): ::String + attr_writer first_execution_run_id(): ::String | ::Symbol + def clear_first_execution_run_id: () -> void + + # This workflow's retry policy + attr_accessor retry_policy(): ::Temporalio::Api::Common::V1::RetryPolicy? + def has_retry_policy?: () -> bool + def clear_retry_policy: () -> void + + # Starting at 1, the number of times we have tried to execute this workflow + attr_reader attempt(): ::Integer + attr_writer attempt(): ::Integer | ::Float + def clear_attempt: () -> void + + # If this workflow runs on a cron schedule, it will appear here + attr_reader cron_schedule(): ::String + attr_writer cron_schedule(): ::String | ::Symbol + def clear_cron_schedule: () -> void + + # The absolute time at which the workflow will be timed out. + # This is passed without change to the next run/retry of a workflow. + attr_reader workflow_execution_expiration_time(): ::Google::Protobuf::Timestamp? + attr_writer workflow_execution_expiration_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_workflow_execution_expiration_time?: () -> bool + def clear_workflow_execution_expiration_time: () -> void + + # 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. + attr_reader cron_schedule_to_schedule_interval(): ::Google::Protobuf::Duration? + attr_writer cron_schedule_to_schedule_interval(): (::Google::Protobuf::Duration | ::int)? + def has_cron_schedule_to_schedule_interval?: () -> bool + def clear_cron_schedule_to_schedule_interval: () -> void + + # User-defined memo + attr_accessor memo(): ::Temporalio::Api::Common::V1::Memo? + def has_memo?: () -> bool + def clear_memo: () -> void + + # Search attributes created/updated when this workflow was started + attr_accessor search_attributes(): ::Temporalio::Api::Common::V1::SearchAttributes? + def has_search_attributes?: () -> bool + def clear_search_attributes: () -> void + + # When the workflow execution started event was first written + attr_reader start_time(): ::Google::Protobuf::Timestamp? + attr_writer start_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_start_time?: () -> bool + def clear_start_time: () -> void + + # Contains information about the root workflow execution. It is possible for the namespace to + # be different than this workflow if using OSS and cross-namespace children, but this + # information is not retained. Users should take care to track it by other means in such + # situations. + # 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. + # See field in WorkflowExecutionStarted for more detail. + attr_accessor root_workflow(): ::Temporalio::Api::Common::V1::WorkflowExecution? + def has_root_workflow?: () -> bool + def clear_root_workflow: () -> void + + # Priority of this workflow execution + attr_accessor priority(): ::Temporalio::Api::Common::V1::Priority? + def has_priority?: () -> bool + def clear_priority: () -> void + + type init_map = { + workflow_type: (::String | ::Symbol)?, + "workflow_type" => (::String | ::Symbol)?, + workflow_id: (::String | ::Symbol)?, + "workflow_id" => (::String | ::Symbol)?, + arguments: ::Array[::Temporalio::Api::Common::V1::Payload]?, + "arguments" => ::Array[::Temporalio::Api::Common::V1::Payload]?, + randomness_seed: (::Integer | ::Float)?, + "randomness_seed" => (::Integer | ::Float)?, + headers: ::Hash[::String | ::Symbol, ::Temporalio::Api::Common::V1::Payload]?, + "headers" => ::Hash[::String | ::Symbol, ::Temporalio::Api::Common::V1::Payload]?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + parent_workflow_info: (::Temporalio::Internal::Bridge::Api::Common::NamespacedWorkflowExecution | ::Temporalio::Internal::Bridge::Api::Common::NamespacedWorkflowExecution::init_map)?, + "parent_workflow_info" => (::Temporalio::Internal::Bridge::Api::Common::NamespacedWorkflowExecution | ::Temporalio::Internal::Bridge::Api::Common::NamespacedWorkflowExecution::init_map)?, + workflow_execution_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "workflow_execution_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + workflow_run_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "workflow_run_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + workflow_task_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "workflow_task_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + continued_from_execution_run_id: (::String | ::Symbol)?, + "continued_from_execution_run_id" => (::String | ::Symbol)?, + continued_initiator: (::Temporalio::Api::Enums::V1::ContinueAsNewInitiator::names | ::Temporalio::Api::Enums::V1::ContinueAsNewInitiator::strings | ::Integer | ::Float)?, + "continued_initiator" => (::Temporalio::Api::Enums::V1::ContinueAsNewInitiator::names | ::Temporalio::Api::Enums::V1::ContinueAsNewInitiator::strings | ::Integer | ::Float)?, + continued_failure: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + "continued_failure" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + last_completion_result: (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + "last_completion_result" => (::Temporalio::Api::Common::V1::Payloads | ::Temporalio::Api::Common::V1::Payloads::init_map)?, + first_execution_run_id: (::String | ::Symbol)?, + "first_execution_run_id" => (::String | ::Symbol)?, + retry_policy: (::Temporalio::Api::Common::V1::RetryPolicy | ::Temporalio::Api::Common::V1::RetryPolicy::init_map)?, + "retry_policy" => (::Temporalio::Api::Common::V1::RetryPolicy | ::Temporalio::Api::Common::V1::RetryPolicy::init_map)?, + attempt: (::Integer | ::Float)?, + "attempt" => (::Integer | ::Float)?, + cron_schedule: (::String | ::Symbol)?, + "cron_schedule" => (::String | ::Symbol)?, + workflow_execution_expiration_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "workflow_execution_expiration_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + cron_schedule_to_schedule_interval: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "cron_schedule_to_schedule_interval" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + memo: (::Temporalio::Api::Common::V1::Memo | ::Temporalio::Api::Common::V1::Memo::init_map)?, + "memo" => (::Temporalio::Api::Common::V1::Memo | ::Temporalio::Api::Common::V1::Memo::init_map)?, + search_attributes: (::Temporalio::Api::Common::V1::SearchAttributes | ::Temporalio::Api::Common::V1::SearchAttributes::init_map)?, + "search_attributes" => (::Temporalio::Api::Common::V1::SearchAttributes | ::Temporalio::Api::Common::V1::SearchAttributes::init_map)?, + start_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "start_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + root_workflow: (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + "root_workflow" => (::Temporalio::Api::Common::V1::WorkflowExecution | ::Temporalio::Api::Common::V1::WorkflowExecution::init_map)?, + priority: (::Temporalio::Api::Common::V1::Priority | ::Temporalio::Api::Common::V1::Priority::init_map)?, + "priority" => (::Temporalio::Api::Common::V1::Priority | ::Temporalio::Api::Common::V1::Priority::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("workflow_type" name) -> ::String + | ("workflow_id" name) -> ::String + | ("arguments" name) -> ::Google::Protobuf::RepeatedField + | ("randomness_seed" name) -> ::Integer + | ("headers" name) -> (::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload]) + | ("identity" name) -> ::String + | ("parent_workflow_info" name) -> ::Temporalio::Internal::Bridge::Api::Common::NamespacedWorkflowExecution? + | ("workflow_execution_timeout" name) -> ::Google::Protobuf::Duration? + | ("workflow_run_timeout" name) -> ::Google::Protobuf::Duration? + | ("workflow_task_timeout" name) -> ::Google::Protobuf::Duration? + | ("continued_from_execution_run_id" name) -> ::String + | ("continued_initiator" name) -> (::Temporalio::Api::Enums::V1::ContinueAsNewInitiator::names | ::Integer) + | ("continued_failure" name) -> ::Temporalio::Api::Failure::V1::Failure? + | ("last_completion_result" name) -> ::Temporalio::Api::Common::V1::Payloads? + | ("first_execution_run_id" name) -> ::String + | ("retry_policy" name) -> ::Temporalio::Api::Common::V1::RetryPolicy? + | ("attempt" name) -> ::Integer + | ("cron_schedule" name) -> ::String + | ("workflow_execution_expiration_time" name) -> ::Google::Protobuf::Timestamp? + | ("cron_schedule_to_schedule_interval" name) -> ::Google::Protobuf::Duration? + | ("memo" name) -> ::Temporalio::Api::Common::V1::Memo? + | ("search_attributes" name) -> ::Temporalio::Api::Common::V1::SearchAttributes? + | ("start_time" name) -> ::Google::Protobuf::Timestamp? + | ("root_workflow" name) -> ::Temporalio::Api::Common::V1::WorkflowExecution? + | ("priority" name) -> ::Temporalio::Api::Common::V1::Priority? + + def []=: + ("workflow_type" name, (::String | ::Symbol) value) -> void + | ("workflow_id" name, (::String | ::Symbol) value) -> void + | ("arguments" name, ::Google::Protobuf::RepeatedField value) -> void + | ("randomness_seed" name, (::Integer | ::Float) value) -> void + | ("headers" name, (::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload]) value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + | ("parent_workflow_info" name, ::Temporalio::Internal::Bridge::Api::Common::NamespacedWorkflowExecution? value) -> void + | ("workflow_execution_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("workflow_run_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("workflow_task_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("continued_from_execution_run_id" name, (::String | ::Symbol) value) -> void + | ("continued_initiator" name, (::Temporalio::Api::Enums::V1::ContinueAsNewInitiator::names | ::Temporalio::Api::Enums::V1::ContinueAsNewInitiator::strings | ::Integer | ::Float) value) -> void + | ("continued_failure" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void + | ("last_completion_result" name, ::Temporalio::Api::Common::V1::Payloads? value) -> void + | ("first_execution_run_id" name, (::String | ::Symbol) value) -> void + | ("retry_policy" name, ::Temporalio::Api::Common::V1::RetryPolicy? value) -> void + | ("attempt" name, (::Integer | ::Float) value) -> void + | ("cron_schedule" name, (::String | ::Symbol) value) -> void + | ("workflow_execution_expiration_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("cron_schedule_to_schedule_interval" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("memo" name, ::Temporalio::Api::Common::V1::Memo? value) -> void + | ("search_attributes" name, ::Temporalio::Api::Common::V1::SearchAttributes? value) -> void + | ("start_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("root_workflow" name, ::Temporalio::Api::Common::V1::WorkflowExecution? value) -> void + | ("priority" name, ::Temporalio::Api::Common::V1::Priority? value) -> void + end + + # Notify a workflow that a timer has fired + class FireTimer < ::Google::Protobuf::AbstractMessage + + # Sequence number as provided by lang in the corresponding StartTimer command + attr_reader seq(): ::Integer + attr_writer seq(): ::Integer | ::Float + def clear_seq: () -> void + + type init_map = { + seq: (::Integer | ::Float)?, + "seq" => (::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("seq" name) -> ::Integer + + def []=: + ("seq" name, (::Integer | ::Float) value) -> void + end + + # Notify a workflow that an activity has been resolved + class ResolveActivity < ::Google::Protobuf::AbstractMessage + + # Sequence number as provided by lang in the corresponding ScheduleActivity command + attr_reader seq(): ::Integer + attr_writer seq(): ::Integer | ::Float + def clear_seq: () -> void + + attr_accessor result(): ::Temporalio::Internal::Bridge::Api::ActivityResult::ActivityResolution? + def has_result?: () -> bool + def clear_result: () -> void + + # Set to true if the resolution is for a local activity. This is used internally by Core and + # lang does not need to care about it. + attr_accessor is_local(): bool + def clear_is_local: () -> void + + type init_map = { + seq: (::Integer | ::Float)?, + "seq" => (::Integer | ::Float)?, + result: (::Temporalio::Internal::Bridge::Api::ActivityResult::ActivityResolution | ::Temporalio::Internal::Bridge::Api::ActivityResult::ActivityResolution::init_map)?, + "result" => (::Temporalio::Internal::Bridge::Api::ActivityResult::ActivityResolution | ::Temporalio::Internal::Bridge::Api::ActivityResult::ActivityResolution::init_map)?, + is_local: bool?, + "is_local" => bool?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("seq" name) -> ::Integer + | ("result" name) -> ::Temporalio::Internal::Bridge::Api::ActivityResult::ActivityResolution? + | ("is_local" name) -> bool + + def []=: + ("seq" name, (::Integer | ::Float) value) -> void + | ("result" name, ::Temporalio::Internal::Bridge::Api::ActivityResult::ActivityResolution? value) -> void + | ("is_local" name, bool value) -> void + end + + # Notify a workflow that a start child workflow execution request has succeeded, failed or was + # cancelled. + class ResolveChildWorkflowExecutionStart < ::Google::Protobuf::AbstractMessage + + # Sequence number as provided by lang in the corresponding StartChildWorkflowExecution command + attr_reader seq(): ::Integer + attr_writer seq(): ::Integer | ::Float + def clear_seq: () -> void + + attr_accessor succeeded(): ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartSuccess? + def has_succeeded?: () -> bool + def clear_succeeded: () -> void + + attr_accessor failed(): ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartFailure? + def has_failed?: () -> bool + def clear_failed: () -> void + + attr_accessor cancelled(): ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartCancelled? + def has_cancelled?: () -> bool + def clear_cancelled: () -> void + + attr_reader status(): (::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartSuccess | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartFailure | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartCancelled)? + def has_status?: () -> bool + def clear_status: () -> void + + type init_map = { + seq: (::Integer | ::Float)?, + "seq" => (::Integer | ::Float)?, + succeeded: (::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartSuccess | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartSuccess::init_map)?, + "succeeded" => (::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartSuccess | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartSuccess::init_map)?, + failed: (::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartFailure | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartFailure::init_map)?, + "failed" => (::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartFailure | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartFailure::init_map)?, + cancelled: (::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartCancelled | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartCancelled::init_map)?, + "cancelled" => (::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartCancelled | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartCancelled::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("seq" name) -> ::Integer + | ("succeeded" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartSuccess? + | ("failed" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartFailure? + | ("cancelled" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartCancelled? + + def []=: + ("seq" name, (::Integer | ::Float) value) -> void + | ("succeeded" name, ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartSuccess? value) -> void + | ("failed" name, ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartFailure? value) -> void + | ("cancelled" name, ::Temporalio::Internal::Bridge::Api::WorkflowActivation::ResolveChildWorkflowExecutionStartCancelled? value) -> void + end + + # Simply pass the run_id to lang + class ResolveChildWorkflowExecutionStartSuccess < ::Google::Protobuf::AbstractMessage + + attr_reader run_id(): ::String + attr_writer run_id(): ::String | ::Symbol + def clear_run_id: () -> void + + type init_map = { + run_id: (::String | ::Symbol)?, + "run_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("run_id" name) -> ::String + + def []=: + ("run_id" name, (::String | ::Symbol) value) -> void + end + + # Provide lang the cause of failure + class ResolveChildWorkflowExecutionStartFailure < ::Google::Protobuf::AbstractMessage + + # Lang should have this information but it's more convenient to pass it back + # for error construction on the lang side. + attr_reader workflow_id(): ::String + attr_writer workflow_id(): ::String | ::Symbol + def clear_workflow_id: () -> void + + attr_reader workflow_type(): ::String + attr_writer workflow_type(): ::String | ::Symbol + def clear_workflow_type: () -> void + + attr_reader cause(): ::Temporalio::Internal::Bridge::Api::ChildWorkflow::StartChildWorkflowExecutionFailedCause::names | ::Integer + attr_writer cause(): ::Temporalio::Internal::Bridge::Api::ChildWorkflow::StartChildWorkflowExecutionFailedCause::names | ::Temporalio::Internal::Bridge::Api::ChildWorkflow::StartChildWorkflowExecutionFailedCause::strings | ::Integer | ::Float + attr_reader cause_const(): ::Integer + def clear_cause: () -> void + + type init_map = { + workflow_id: (::String | ::Symbol)?, + "workflow_id" => (::String | ::Symbol)?, + workflow_type: (::String | ::Symbol)?, + "workflow_type" => (::String | ::Symbol)?, + cause: (::Temporalio::Internal::Bridge::Api::ChildWorkflow::StartChildWorkflowExecutionFailedCause::names | ::Temporalio::Internal::Bridge::Api::ChildWorkflow::StartChildWorkflowExecutionFailedCause::strings | ::Integer | ::Float)?, + "cause" => (::Temporalio::Internal::Bridge::Api::ChildWorkflow::StartChildWorkflowExecutionFailedCause::names | ::Temporalio::Internal::Bridge::Api::ChildWorkflow::StartChildWorkflowExecutionFailedCause::strings | ::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("workflow_id" name) -> ::String + | ("workflow_type" name) -> ::String + | ("cause" name) -> (::Temporalio::Internal::Bridge::Api::ChildWorkflow::StartChildWorkflowExecutionFailedCause::names | ::Integer) + + def []=: + ("workflow_id" name, (::String | ::Symbol) value) -> void + | ("workflow_type" name, (::String | ::Symbol) value) -> void + | ("cause" name, (::Temporalio::Internal::Bridge::Api::ChildWorkflow::StartChildWorkflowExecutionFailedCause::names | ::Temporalio::Internal::Bridge::Api::ChildWorkflow::StartChildWorkflowExecutionFailedCause::strings | ::Integer | ::Float) value) -> void + end + + # `failure` should be ChildWorkflowFailure with cause set to CancelledFailure. + # The failure is constructed in core for lang's convenience. + class ResolveChildWorkflowExecutionStartCancelled < ::Google::Protobuf::AbstractMessage + + attr_accessor failure(): ::Temporalio::Api::Failure::V1::Failure? + def has_failure?: () -> bool + def clear_failure: () -> void + + type init_map = { + failure: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + "failure" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("failure" name) -> ::Temporalio::Api::Failure::V1::Failure? + + def []=: + ("failure" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void + end + + # Notify a workflow that a child workflow execution has been resolved + class ResolveChildWorkflowExecution < ::Google::Protobuf::AbstractMessage + + # Sequence number as provided by lang in the corresponding StartChildWorkflowExecution command + attr_reader seq(): ::Integer + attr_writer seq(): ::Integer | ::Float + def clear_seq: () -> void + + attr_accessor result(): ::Temporalio::Internal::Bridge::Api::ChildWorkflow::ChildWorkflowResult? + def has_result?: () -> bool + def clear_result: () -> void + + type init_map = { + seq: (::Integer | ::Float)?, + "seq" => (::Integer | ::Float)?, + result: (::Temporalio::Internal::Bridge::Api::ChildWorkflow::ChildWorkflowResult | ::Temporalio::Internal::Bridge::Api::ChildWorkflow::ChildWorkflowResult::init_map)?, + "result" => (::Temporalio::Internal::Bridge::Api::ChildWorkflow::ChildWorkflowResult | ::Temporalio::Internal::Bridge::Api::ChildWorkflow::ChildWorkflowResult::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("seq" name) -> ::Integer + | ("result" name) -> ::Temporalio::Internal::Bridge::Api::ChildWorkflow::ChildWorkflowResult? + + def []=: + ("seq" name, (::Integer | ::Float) value) -> void + | ("result" name, ::Temporalio::Internal::Bridge::Api::ChildWorkflow::ChildWorkflowResult? value) -> void + end + + # Update the workflow's random seed + class UpdateRandomSeed < ::Google::Protobuf::AbstractMessage + + attr_reader randomness_seed(): ::Integer + attr_writer randomness_seed(): ::Integer | ::Float + def clear_randomness_seed: () -> void + + type init_map = { + randomness_seed: (::Integer | ::Float)?, + "randomness_seed" => (::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("randomness_seed" name) -> ::Integer + + def []=: + ("randomness_seed" name, (::Integer | ::Float) value) -> void + end + + # Query a workflow + class QueryWorkflow < ::Google::Protobuf::AbstractMessage + + # For PollWFTResp `query` field, this will be set to the special value `legacy`. For the + # `queries` field, the server provides a unique identifier. If it is a `legacy` query, + # lang cannot issue any commands in response other than to answer the query. + attr_reader query_id(): ::String + attr_writer query_id(): ::String | ::Symbol + def clear_query_id: () -> void + + # The query's function/method/etc name + attr_reader query_type(): ::String + attr_writer query_type(): ::String | ::Symbol + def clear_query_type: () -> void + + attr_accessor arguments(): ::Google::Protobuf::RepeatedField + def clear_arguments: () -> void + + # Headers attached to the query + attr_accessor headers(): ::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload] + def clear_headers: () -> void + + type init_map = { + query_id: (::String | ::Symbol)?, + "query_id" => (::String | ::Symbol)?, + query_type: (::String | ::Symbol)?, + "query_type" => (::String | ::Symbol)?, + arguments: ::Array[::Temporalio::Api::Common::V1::Payload]?, + "arguments" => ::Array[::Temporalio::Api::Common::V1::Payload]?, + headers: ::Hash[::String | ::Symbol, ::Temporalio::Api::Common::V1::Payload]?, + "headers" => ::Hash[::String | ::Symbol, ::Temporalio::Api::Common::V1::Payload]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("query_id" name) -> ::String + | ("query_type" name) -> ::String + | ("arguments" name) -> ::Google::Protobuf::RepeatedField + | ("headers" name) -> (::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload]) + + def []=: + ("query_id" name, (::String | ::Symbol) value) -> void + | ("query_type" name, (::String | ::Symbol) value) -> void + | ("arguments" name, ::Google::Protobuf::RepeatedField value) -> void + | ("headers" name, (::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload]) value) -> void + end + + # Cancel a running workflow + class CancelWorkflow < ::Google::Protobuf::AbstractMessage + + # User-specified reason the cancel request was issued + attr_reader reason(): ::String + attr_writer reason(): ::String | ::Symbol + def clear_reason: () -> void + + type init_map = { + reason: (::String | ::Symbol)?, + "reason" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("reason" name) -> ::String + + def []=: + ("reason" name, (::String | ::Symbol) value) -> void + end + + # Send a signal to a workflow + class SignalWorkflow < ::Google::Protobuf::AbstractMessage + + attr_reader signal_name(): ::String + attr_writer signal_name(): ::String | ::Symbol + def clear_signal_name: () -> void + + attr_accessor input(): ::Google::Protobuf::RepeatedField + def clear_input: () -> void + + # Identity of the sender of the signal + attr_reader identity(): ::String + attr_writer identity(): ::String | ::Symbol + def clear_identity: () -> void + + # Headers attached to the signal + attr_accessor headers(): ::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload] + def clear_headers: () -> void + + type init_map = { + signal_name: (::String | ::Symbol)?, + "signal_name" => (::String | ::Symbol)?, + input: ::Array[::Temporalio::Api::Common::V1::Payload]?, + "input" => ::Array[::Temporalio::Api::Common::V1::Payload]?, + identity: (::String | ::Symbol)?, + "identity" => (::String | ::Symbol)?, + headers: ::Hash[::String | ::Symbol, ::Temporalio::Api::Common::V1::Payload]?, + "headers" => ::Hash[::String | ::Symbol, ::Temporalio::Api::Common::V1::Payload]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("signal_name" name) -> ::String + | ("input" name) -> ::Google::Protobuf::RepeatedField + | ("identity" name) -> ::String + | ("headers" name) -> (::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload]) + + def []=: + ("signal_name" name, (::String | ::Symbol) value) -> void + | ("input" name, ::Google::Protobuf::RepeatedField value) -> void + | ("identity" name, (::String | ::Symbol) value) -> void + | ("headers" name, (::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload]) value) -> void + end + + # Inform lang what the result of a call to `patched` or similar API should be -- this is always + # sent pre-emptively, so any time it is sent the change is present + class NotifyHasPatch < ::Google::Protobuf::AbstractMessage + + attr_reader patch_id(): ::String + attr_writer patch_id(): ::String | ::Symbol + def clear_patch_id: () -> void + + type init_map = { + patch_id: (::String | ::Symbol)?, + "patch_id" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("patch_id" name) -> ::String + + def []=: + ("patch_id" name, (::String | ::Symbol) value) -> void + end + + class ResolveSignalExternalWorkflow < ::Google::Protobuf::AbstractMessage + + # Sequence number as provided by lang in the corresponding SignalExternalWorkflowExecution + # command + attr_reader seq(): ::Integer + attr_writer seq(): ::Integer | ::Float + def clear_seq: () -> void + + # If populated, this signal either failed to be sent or was cancelled depending on failure + # type / info. + attr_accessor failure(): ::Temporalio::Api::Failure::V1::Failure? + def has_failure?: () -> bool + def clear_failure: () -> void + + type init_map = { + seq: (::Integer | ::Float)?, + "seq" => (::Integer | ::Float)?, + failure: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + "failure" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("seq" name) -> ::Integer + | ("failure" name) -> ::Temporalio::Api::Failure::V1::Failure? + + def []=: + ("seq" name, (::Integer | ::Float) value) -> void + | ("failure" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void + end + + class ResolveRequestCancelExternalWorkflow < ::Google::Protobuf::AbstractMessage + + # Sequence number as provided by lang in the corresponding + # RequestCancelExternalWorkflowExecution command + attr_reader seq(): ::Integer + attr_writer seq(): ::Integer | ::Float + def clear_seq: () -> void + + # If populated, this signal either failed to be sent or was cancelled depending on failure + # type / info. + attr_accessor failure(): ::Temporalio::Api::Failure::V1::Failure? + def has_failure?: () -> bool + def clear_failure: () -> void + + type init_map = { + seq: (::Integer | ::Float)?, + "seq" => (::Integer | ::Float)?, + failure: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + "failure" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("seq" name) -> ::Integer + | ("failure" name) -> ::Temporalio::Api::Failure::V1::Failure? + + def []=: + ("seq" name, (::Integer | ::Float) value) -> void + | ("failure" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void + end + + # Lang is requested to invoke an update handler on the workflow. Lang should invoke the update + # validator first (if requested). If it accepts the update, immediately invoke the update handler. + # Lang must reply to the activation containing this job with an `UpdateResponse`. + class DoUpdate < ::Google::Protobuf::AbstractMessage + + # A workflow-unique identifier for this update + attr_reader id(): ::String + attr_writer id(): ::String | ::Symbol + def clear_id: () -> void + + # The protocol message instance ID - this is used to uniquely track the ID server side and + # internally. + attr_reader protocol_instance_id(): ::String + attr_writer protocol_instance_id(): ::String | ::Symbol + def clear_protocol_instance_id: () -> void + + # The name of the update handler + attr_reader name(): ::String + attr_writer name(): ::String | ::Symbol + def clear_name: () -> void + + # The input to the update + attr_accessor input(): ::Google::Protobuf::RepeatedField + def clear_input: () -> void + + # Headers attached to the update + attr_accessor headers(): ::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload] + def clear_headers: () -> void + + # Remaining metadata associated with the update. The `update_id` field is stripped from here + # and moved to `id`, since it is guaranteed to be present. + attr_accessor meta(): ::Temporalio::Api::Update::V1::Meta? + def has_meta?: () -> bool + def clear_meta: () -> void + + # If set true, lang must run the update's validator before running the handler. This will be + # set false during replay, since validation is not re-run during replay. + attr_accessor run_validator(): bool + def clear_run_validator: () -> void + + type init_map = { + id: (::String | ::Symbol)?, + "id" => (::String | ::Symbol)?, + protocol_instance_id: (::String | ::Symbol)?, + "protocol_instance_id" => (::String | ::Symbol)?, + name: (::String | ::Symbol)?, + "name" => (::String | ::Symbol)?, + input: ::Array[::Temporalio::Api::Common::V1::Payload]?, + "input" => ::Array[::Temporalio::Api::Common::V1::Payload]?, + headers: ::Hash[::String | ::Symbol, ::Temporalio::Api::Common::V1::Payload]?, + "headers" => ::Hash[::String | ::Symbol, ::Temporalio::Api::Common::V1::Payload]?, + meta: (::Temporalio::Api::Update::V1::Meta | ::Temporalio::Api::Update::V1::Meta::init_map)?, + "meta" => (::Temporalio::Api::Update::V1::Meta | ::Temporalio::Api::Update::V1::Meta::init_map)?, + run_validator: bool?, + "run_validator" => bool?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("id" name) -> ::String + | ("protocol_instance_id" name) -> ::String + | ("name" name) -> ::String + | ("input" name) -> ::Google::Protobuf::RepeatedField + | ("headers" name) -> (::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload]) + | ("meta" name) -> ::Temporalio::Api::Update::V1::Meta? + | ("run_validator" name) -> bool + + def []=: + ("id" name, (::String | ::Symbol) value) -> void + | ("protocol_instance_id" name, (::String | ::Symbol) value) -> void + | ("name" name, (::String | ::Symbol) value) -> void + | ("input" name, ::Google::Protobuf::RepeatedField value) -> void + | ("headers" name, (::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload]) value) -> void + | ("meta" name, ::Temporalio::Api::Update::V1::Meta? value) -> void + | ("run_validator" name, bool value) -> void + end + + class ResolveNexusOperationStart < ::Google::Protobuf::AbstractMessage + + # Sequence number as provided by lang in the corresponding ScheduleNexusOperation command + attr_reader seq(): ::Integer + attr_writer seq(): ::Integer | ::Float + def clear_seq: () -> void + + # The operation started asynchronously. Contains a token that can be used to perform + # operations on the started operation by, ex, clients. A `ResolveNexusOperation` job will + # follow at some point. + attr_reader operation_token(): ::String + attr_writer operation_token(): (::String | ::Symbol)? + def has_operation_token?: () -> bool + def clear_operation_token: () -> void + + # If true the operation "started" but only because it's also already resolved. A + # `ResolveNexusOperation` job will be in the same activation. + attr_reader started_sync(): bool + attr_writer started_sync(): bool? + def has_started_sync?: () -> bool + def clear_started_sync: () -> void + + # The operation either failed to start, was cancelled before it started, timed out, or + # failed synchronously. Details are included inside the message. In this case, the + # subsequent ResolveNexusOperation will never be sent. + attr_accessor failed(): ::Temporalio::Api::Failure::V1::Failure? + def has_failed?: () -> bool + def clear_failed: () -> void + + attr_reader status(): (::String | bool | ::Temporalio::Api::Failure::V1::Failure)? + def has_status?: () -> bool + def clear_status: () -> void + + type init_map = { + seq: (::Integer | ::Float)?, + "seq" => (::Integer | ::Float)?, + operation_token: (::String | ::Symbol)?, + "operation_token" => (::String | ::Symbol)?, + started_sync: bool?, + "started_sync" => bool?, + failed: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + "failed" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("seq" name) -> ::Integer + | ("operation_token" name) -> ::String + | ("started_sync" name) -> bool + | ("failed" name) -> ::Temporalio::Api::Failure::V1::Failure? + + def []=: + ("seq" name, (::Integer | ::Float) value) -> void + | ("operation_token" name, ((::String | ::Symbol)?) value) -> void + | ("started_sync" name, bool? value) -> void + | ("failed" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void + end + + class ResolveNexusOperation < ::Google::Protobuf::AbstractMessage + + # Sequence number as provided by lang in the corresponding ScheduleNexusOperation command + attr_reader seq(): ::Integer + attr_writer seq(): ::Integer | ::Float + def clear_seq: () -> void + + attr_accessor result(): ::Temporalio::Internal::Bridge::Api::Nexus::NexusOperationResult? + def has_result?: () -> bool + def clear_result: () -> void + + type init_map = { + seq: (::Integer | ::Float)?, + "seq" => (::Integer | ::Float)?, + result: (::Temporalio::Internal::Bridge::Api::Nexus::NexusOperationResult | ::Temporalio::Internal::Bridge::Api::Nexus::NexusOperationResult::init_map)?, + "result" => (::Temporalio::Internal::Bridge::Api::Nexus::NexusOperationResult | ::Temporalio::Internal::Bridge::Api::Nexus::NexusOperationResult::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("seq" name) -> ::Integer + | ("result" name) -> ::Temporalio::Internal::Bridge::Api::Nexus::NexusOperationResult? + + def []=: + ("seq" name, (::Integer | ::Float) value) -> void + | ("result" name, ::Temporalio::Internal::Bridge::Api::Nexus::NexusOperationResult? value) -> void + end + + class RemoveFromCache < ::Google::Protobuf::AbstractMessage + module EvictionReason + + UNSPECIFIED: 0 + + # Workflow cache is full + CACHE_FULL: 1 + + # Workflow received a partial task but was not in the cache. Typically it won't be in the + # lang cache either at this point, but we send an eviction to be sure. + CACHE_MISS: 2 + + # The workflow produced results inconsistent with history. + NONDETERMINISM: 3 + + # The lang side completed the workflow activation with a failure. + LANG_FAIL: 4 + + # The lang side explicitly requested this workflow be evicted. + LANG_REQUESTED: 5 + + # The workflow task we tried to respond to didn't exist. The workflow might have already + # finished, or the WFT timed out but we didn't learn about that yet. + TASK_NOT_FOUND: 6 + + # There was new work that must be handled while we attempted to complete the WFT. Ex: + # a new signal came in while trying to complete the workflow. + UNHANDLED_COMMAND: 7 + + # There was some fatal error processing the workflow, typically an internal error, but + # can also happen if then network drops out while paginating. Check message string. + FATAL: 8 + + # Something went wrong attempting to fetch more history events. + PAGINATION_OR_HISTORY_FETCH: 9 + + # The workflow is being completed with a terminal command and we sent the WFT completion + # to server successfully. + WORKFLOW_EXECUTION_ENDING: 10 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :UNSPECIFIED | :CACHE_FULL | :CACHE_MISS | :NONDETERMINISM | :LANG_FAIL | :LANG_REQUESTED | :TASK_NOT_FOUND | :UNHANDLED_COMMAND | :FATAL | :PAGINATION_OR_HISTORY_FETCH | :WORKFLOW_EXECUTION_ENDING + + type strings = "UNSPECIFIED" | "CACHE_FULL" | "CACHE_MISS" | "NONDETERMINISM" | "LANG_FAIL" | "LANG_REQUESTED" | "TASK_NOT_FOUND" | "UNHANDLED_COMMAND" | "FATAL" | "PAGINATION_OR_HISTORY_FETCH" | "WORKFLOW_EXECUTION_ENDING" + + type numbers = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 + end + + attr_reader message(): ::String + attr_writer message(): ::String | ::Symbol + def clear_message: () -> void + + attr_reader reason(): ::Temporalio::Internal::Bridge::Api::WorkflowActivation::RemoveFromCache::EvictionReason::names | ::Integer + attr_writer reason(): ::Temporalio::Internal::Bridge::Api::WorkflowActivation::RemoveFromCache::EvictionReason::names | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::RemoveFromCache::EvictionReason::strings | ::Integer | ::Float + attr_reader reason_const(): ::Integer + def clear_reason: () -> void + + type init_map = { + message: (::String | ::Symbol)?, + "message" => (::String | ::Symbol)?, + reason: (::Temporalio::Internal::Bridge::Api::WorkflowActivation::RemoveFromCache::EvictionReason::names | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::RemoveFromCache::EvictionReason::strings | ::Integer | ::Float)?, + "reason" => (::Temporalio::Internal::Bridge::Api::WorkflowActivation::RemoveFromCache::EvictionReason::names | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::RemoveFromCache::EvictionReason::strings | ::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("message" name) -> ::String + | ("reason" name) -> (::Temporalio::Internal::Bridge::Api::WorkflowActivation::RemoveFromCache::EvictionReason::names | ::Integer) + + def []=: + ("message" name, (::String | ::Symbol) value) -> void + | ("reason" name, (::Temporalio::Internal::Bridge::Api::WorkflowActivation::RemoveFromCache::EvictionReason::names | ::Temporalio::Internal::Bridge::Api::WorkflowActivation::RemoveFromCache::EvictionReason::strings | ::Integer | ::Float) value) -> void + end + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/internal/bridge/api/workflow_commands/workflow_commands.rbs b/temporalio/sig/temporalio/internal/bridge/api/workflow_commands/workflow_commands.rbs new file mode 100644 index 00000000..caa12c74 --- /dev/null +++ b/temporalio/sig/temporalio/internal/bridge/api/workflow_commands/workflow_commands.rbs @@ -0,0 +1,1516 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/sdk/core/workflow_commands/workflow_commands.proto + +module Temporalio + module Internal + module Bridge + module Api + module WorkflowCommands + class WorkflowCommand < ::Google::Protobuf::AbstractMessage + + # User metadata that may or may not be persisted into history depending on the command type. + # Lang layers are expected to expose the setting of the internals of this metadata on a + # per-command basis where applicable. + attr_accessor user_metadata(): ::Temporalio::Api::Sdk::V1::UserMetadata? + def has_user_metadata?: () -> bool + def clear_user_metadata: () -> void + + attr_accessor start_timer(): ::Temporalio::Internal::Bridge::Api::WorkflowCommands::StartTimer? + def has_start_timer?: () -> bool + def clear_start_timer: () -> void + + attr_accessor schedule_activity(): ::Temporalio::Internal::Bridge::Api::WorkflowCommands::ScheduleActivity? + def has_schedule_activity?: () -> bool + def clear_schedule_activity: () -> void + + attr_accessor respond_to_query(): ::Temporalio::Internal::Bridge::Api::WorkflowCommands::QueryResult? + def has_respond_to_query?: () -> bool + def clear_respond_to_query: () -> void + + attr_accessor request_cancel_activity(): ::Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelActivity? + def has_request_cancel_activity?: () -> bool + def clear_request_cancel_activity: () -> void + + attr_accessor cancel_timer(): ::Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelTimer? + def has_cancel_timer?: () -> bool + def clear_cancel_timer: () -> void + + attr_accessor complete_workflow_execution(): ::Temporalio::Internal::Bridge::Api::WorkflowCommands::CompleteWorkflowExecution? + def has_complete_workflow_execution?: () -> bool + def clear_complete_workflow_execution: () -> void + + attr_accessor fail_workflow_execution(): ::Temporalio::Internal::Bridge::Api::WorkflowCommands::FailWorkflowExecution? + def has_fail_workflow_execution?: () -> bool + def clear_fail_workflow_execution: () -> void + + attr_accessor continue_as_new_workflow_execution(): ::Temporalio::Internal::Bridge::Api::WorkflowCommands::ContinueAsNewWorkflowExecution? + def has_continue_as_new_workflow_execution?: () -> bool + def clear_continue_as_new_workflow_execution: () -> void + + attr_accessor cancel_workflow_execution(): ::Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelWorkflowExecution? + def has_cancel_workflow_execution?: () -> bool + def clear_cancel_workflow_execution: () -> void + + attr_accessor set_patch_marker(): ::Temporalio::Internal::Bridge::Api::WorkflowCommands::SetPatchMarker? + def has_set_patch_marker?: () -> bool + def clear_set_patch_marker: () -> void + + attr_accessor start_child_workflow_execution(): ::Temporalio::Internal::Bridge::Api::WorkflowCommands::StartChildWorkflowExecution? + def has_start_child_workflow_execution?: () -> bool + def clear_start_child_workflow_execution: () -> void + + attr_accessor cancel_child_workflow_execution(): ::Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelChildWorkflowExecution? + def has_cancel_child_workflow_execution?: () -> bool + def clear_cancel_child_workflow_execution: () -> void + + attr_accessor request_cancel_external_workflow_execution(): ::Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelExternalWorkflowExecution? + def has_request_cancel_external_workflow_execution?: () -> bool + def clear_request_cancel_external_workflow_execution: () -> void + + attr_accessor signal_external_workflow_execution(): ::Temporalio::Internal::Bridge::Api::WorkflowCommands::SignalExternalWorkflowExecution? + def has_signal_external_workflow_execution?: () -> bool + def clear_signal_external_workflow_execution: () -> void + + attr_accessor cancel_signal_workflow(): ::Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelSignalWorkflow? + def has_cancel_signal_workflow?: () -> bool + def clear_cancel_signal_workflow: () -> void + + attr_accessor schedule_local_activity(): ::Temporalio::Internal::Bridge::Api::WorkflowCommands::ScheduleLocalActivity? + def has_schedule_local_activity?: () -> bool + def clear_schedule_local_activity: () -> void + + attr_accessor request_cancel_local_activity(): ::Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelLocalActivity? + def has_request_cancel_local_activity?: () -> bool + def clear_request_cancel_local_activity: () -> void + + attr_accessor upsert_workflow_search_attributes(): ::Temporalio::Internal::Bridge::Api::WorkflowCommands::UpsertWorkflowSearchAttributes? + def has_upsert_workflow_search_attributes?: () -> bool + def clear_upsert_workflow_search_attributes: () -> void + + attr_accessor modify_workflow_properties(): ::Temporalio::Internal::Bridge::Api::WorkflowCommands::ModifyWorkflowProperties? + def has_modify_workflow_properties?: () -> bool + def clear_modify_workflow_properties: () -> void + + attr_accessor update_response(): ::Temporalio::Internal::Bridge::Api::WorkflowCommands::UpdateResponse? + def has_update_response?: () -> bool + def clear_update_response: () -> void + + attr_accessor schedule_nexus_operation(): ::Temporalio::Internal::Bridge::Api::WorkflowCommands::ScheduleNexusOperation? + def has_schedule_nexus_operation?: () -> bool + def clear_schedule_nexus_operation: () -> void + + attr_accessor request_cancel_nexus_operation(): ::Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelNexusOperation? + def has_request_cancel_nexus_operation?: () -> bool + def clear_request_cancel_nexus_operation: () -> void + + attr_reader variant(): (::Temporalio::Internal::Bridge::Api::WorkflowCommands::StartTimer | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::ScheduleActivity | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::QueryResult | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelActivity | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelTimer | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::CompleteWorkflowExecution | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::FailWorkflowExecution | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::ContinueAsNewWorkflowExecution | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelWorkflowExecution | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::SetPatchMarker | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::StartChildWorkflowExecution | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelChildWorkflowExecution | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelExternalWorkflowExecution | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::SignalExternalWorkflowExecution | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelSignalWorkflow | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::ScheduleLocalActivity | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelLocalActivity | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::UpsertWorkflowSearchAttributes | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::ModifyWorkflowProperties | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::UpdateResponse | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::ScheduleNexusOperation | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelNexusOperation)? + def has_variant?: () -> bool + def clear_variant: () -> void + + type init_map = { + user_metadata: (::Temporalio::Api::Sdk::V1::UserMetadata | ::Temporalio::Api::Sdk::V1::UserMetadata::init_map)?, + "user_metadata" => (::Temporalio::Api::Sdk::V1::UserMetadata | ::Temporalio::Api::Sdk::V1::UserMetadata::init_map)?, + start_timer: (::Temporalio::Internal::Bridge::Api::WorkflowCommands::StartTimer | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::StartTimer::init_map)?, + "start_timer" => (::Temporalio::Internal::Bridge::Api::WorkflowCommands::StartTimer | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::StartTimer::init_map)?, + schedule_activity: (::Temporalio::Internal::Bridge::Api::WorkflowCommands::ScheduleActivity | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::ScheduleActivity::init_map)?, + "schedule_activity" => (::Temporalio::Internal::Bridge::Api::WorkflowCommands::ScheduleActivity | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::ScheduleActivity::init_map)?, + respond_to_query: (::Temporalio::Internal::Bridge::Api::WorkflowCommands::QueryResult | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::QueryResult::init_map)?, + "respond_to_query" => (::Temporalio::Internal::Bridge::Api::WorkflowCommands::QueryResult | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::QueryResult::init_map)?, + request_cancel_activity: (::Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelActivity | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelActivity::init_map)?, + "request_cancel_activity" => (::Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelActivity | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelActivity::init_map)?, + cancel_timer: (::Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelTimer | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelTimer::init_map)?, + "cancel_timer" => (::Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelTimer | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelTimer::init_map)?, + complete_workflow_execution: (::Temporalio::Internal::Bridge::Api::WorkflowCommands::CompleteWorkflowExecution | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::CompleteWorkflowExecution::init_map)?, + "complete_workflow_execution" => (::Temporalio::Internal::Bridge::Api::WorkflowCommands::CompleteWorkflowExecution | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::CompleteWorkflowExecution::init_map)?, + fail_workflow_execution: (::Temporalio::Internal::Bridge::Api::WorkflowCommands::FailWorkflowExecution | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::FailWorkflowExecution::init_map)?, + "fail_workflow_execution" => (::Temporalio::Internal::Bridge::Api::WorkflowCommands::FailWorkflowExecution | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::FailWorkflowExecution::init_map)?, + continue_as_new_workflow_execution: (::Temporalio::Internal::Bridge::Api::WorkflowCommands::ContinueAsNewWorkflowExecution | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::ContinueAsNewWorkflowExecution::init_map)?, + "continue_as_new_workflow_execution" => (::Temporalio::Internal::Bridge::Api::WorkflowCommands::ContinueAsNewWorkflowExecution | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::ContinueAsNewWorkflowExecution::init_map)?, + cancel_workflow_execution: (::Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelWorkflowExecution | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelWorkflowExecution::init_map)?, + "cancel_workflow_execution" => (::Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelWorkflowExecution | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelWorkflowExecution::init_map)?, + set_patch_marker: (::Temporalio::Internal::Bridge::Api::WorkflowCommands::SetPatchMarker | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::SetPatchMarker::init_map)?, + "set_patch_marker" => (::Temporalio::Internal::Bridge::Api::WorkflowCommands::SetPatchMarker | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::SetPatchMarker::init_map)?, + start_child_workflow_execution: (::Temporalio::Internal::Bridge::Api::WorkflowCommands::StartChildWorkflowExecution | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::StartChildWorkflowExecution::init_map)?, + "start_child_workflow_execution" => (::Temporalio::Internal::Bridge::Api::WorkflowCommands::StartChildWorkflowExecution | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::StartChildWorkflowExecution::init_map)?, + cancel_child_workflow_execution: (::Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelChildWorkflowExecution | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelChildWorkflowExecution::init_map)?, + "cancel_child_workflow_execution" => (::Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelChildWorkflowExecution | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelChildWorkflowExecution::init_map)?, + request_cancel_external_workflow_execution: (::Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelExternalWorkflowExecution | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelExternalWorkflowExecution::init_map)?, + "request_cancel_external_workflow_execution" => (::Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelExternalWorkflowExecution | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelExternalWorkflowExecution::init_map)?, + signal_external_workflow_execution: (::Temporalio::Internal::Bridge::Api::WorkflowCommands::SignalExternalWorkflowExecution | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::SignalExternalWorkflowExecution::init_map)?, + "signal_external_workflow_execution" => (::Temporalio::Internal::Bridge::Api::WorkflowCommands::SignalExternalWorkflowExecution | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::SignalExternalWorkflowExecution::init_map)?, + cancel_signal_workflow: (::Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelSignalWorkflow | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelSignalWorkflow::init_map)?, + "cancel_signal_workflow" => (::Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelSignalWorkflow | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelSignalWorkflow::init_map)?, + schedule_local_activity: (::Temporalio::Internal::Bridge::Api::WorkflowCommands::ScheduleLocalActivity | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::ScheduleLocalActivity::init_map)?, + "schedule_local_activity" => (::Temporalio::Internal::Bridge::Api::WorkflowCommands::ScheduleLocalActivity | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::ScheduleLocalActivity::init_map)?, + request_cancel_local_activity: (::Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelLocalActivity | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelLocalActivity::init_map)?, + "request_cancel_local_activity" => (::Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelLocalActivity | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelLocalActivity::init_map)?, + upsert_workflow_search_attributes: (::Temporalio::Internal::Bridge::Api::WorkflowCommands::UpsertWorkflowSearchAttributes | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::UpsertWorkflowSearchAttributes::init_map)?, + "upsert_workflow_search_attributes" => (::Temporalio::Internal::Bridge::Api::WorkflowCommands::UpsertWorkflowSearchAttributes | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::UpsertWorkflowSearchAttributes::init_map)?, + modify_workflow_properties: (::Temporalio::Internal::Bridge::Api::WorkflowCommands::ModifyWorkflowProperties | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::ModifyWorkflowProperties::init_map)?, + "modify_workflow_properties" => (::Temporalio::Internal::Bridge::Api::WorkflowCommands::ModifyWorkflowProperties | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::ModifyWorkflowProperties::init_map)?, + update_response: (::Temporalio::Internal::Bridge::Api::WorkflowCommands::UpdateResponse | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::UpdateResponse::init_map)?, + "update_response" => (::Temporalio::Internal::Bridge::Api::WorkflowCommands::UpdateResponse | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::UpdateResponse::init_map)?, + schedule_nexus_operation: (::Temporalio::Internal::Bridge::Api::WorkflowCommands::ScheduleNexusOperation | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::ScheduleNexusOperation::init_map)?, + "schedule_nexus_operation" => (::Temporalio::Internal::Bridge::Api::WorkflowCommands::ScheduleNexusOperation | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::ScheduleNexusOperation::init_map)?, + request_cancel_nexus_operation: (::Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelNexusOperation | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelNexusOperation::init_map)?, + "request_cancel_nexus_operation" => (::Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelNexusOperation | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelNexusOperation::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("user_metadata" name) -> ::Temporalio::Api::Sdk::V1::UserMetadata? + | ("start_timer" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowCommands::StartTimer? + | ("schedule_activity" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowCommands::ScheduleActivity? + | ("respond_to_query" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowCommands::QueryResult? + | ("request_cancel_activity" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelActivity? + | ("cancel_timer" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelTimer? + | ("complete_workflow_execution" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowCommands::CompleteWorkflowExecution? + | ("fail_workflow_execution" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowCommands::FailWorkflowExecution? + | ("continue_as_new_workflow_execution" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowCommands::ContinueAsNewWorkflowExecution? + | ("cancel_workflow_execution" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelWorkflowExecution? + | ("set_patch_marker" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowCommands::SetPatchMarker? + | ("start_child_workflow_execution" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowCommands::StartChildWorkflowExecution? + | ("cancel_child_workflow_execution" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelChildWorkflowExecution? + | ("request_cancel_external_workflow_execution" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelExternalWorkflowExecution? + | ("signal_external_workflow_execution" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowCommands::SignalExternalWorkflowExecution? + | ("cancel_signal_workflow" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelSignalWorkflow? + | ("schedule_local_activity" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowCommands::ScheduleLocalActivity? + | ("request_cancel_local_activity" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelLocalActivity? + | ("upsert_workflow_search_attributes" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowCommands::UpsertWorkflowSearchAttributes? + | ("modify_workflow_properties" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowCommands::ModifyWorkflowProperties? + | ("update_response" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowCommands::UpdateResponse? + | ("schedule_nexus_operation" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowCommands::ScheduleNexusOperation? + | ("request_cancel_nexus_operation" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelNexusOperation? + + def []=: + ("user_metadata" name, ::Temporalio::Api::Sdk::V1::UserMetadata? value) -> void + | ("start_timer" name, ::Temporalio::Internal::Bridge::Api::WorkflowCommands::StartTimer? value) -> void + | ("schedule_activity" name, ::Temporalio::Internal::Bridge::Api::WorkflowCommands::ScheduleActivity? value) -> void + | ("respond_to_query" name, ::Temporalio::Internal::Bridge::Api::WorkflowCommands::QueryResult? value) -> void + | ("request_cancel_activity" name, ::Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelActivity? value) -> void + | ("cancel_timer" name, ::Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelTimer? value) -> void + | ("complete_workflow_execution" name, ::Temporalio::Internal::Bridge::Api::WorkflowCommands::CompleteWorkflowExecution? value) -> void + | ("fail_workflow_execution" name, ::Temporalio::Internal::Bridge::Api::WorkflowCommands::FailWorkflowExecution? value) -> void + | ("continue_as_new_workflow_execution" name, ::Temporalio::Internal::Bridge::Api::WorkflowCommands::ContinueAsNewWorkflowExecution? value) -> void + | ("cancel_workflow_execution" name, ::Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelWorkflowExecution? value) -> void + | ("set_patch_marker" name, ::Temporalio::Internal::Bridge::Api::WorkflowCommands::SetPatchMarker? value) -> void + | ("start_child_workflow_execution" name, ::Temporalio::Internal::Bridge::Api::WorkflowCommands::StartChildWorkflowExecution? value) -> void + | ("cancel_child_workflow_execution" name, ::Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelChildWorkflowExecution? value) -> void + | ("request_cancel_external_workflow_execution" name, ::Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelExternalWorkflowExecution? value) -> void + | ("signal_external_workflow_execution" name, ::Temporalio::Internal::Bridge::Api::WorkflowCommands::SignalExternalWorkflowExecution? value) -> void + | ("cancel_signal_workflow" name, ::Temporalio::Internal::Bridge::Api::WorkflowCommands::CancelSignalWorkflow? value) -> void + | ("schedule_local_activity" name, ::Temporalio::Internal::Bridge::Api::WorkflowCommands::ScheduleLocalActivity? value) -> void + | ("request_cancel_local_activity" name, ::Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelLocalActivity? value) -> void + | ("upsert_workflow_search_attributes" name, ::Temporalio::Internal::Bridge::Api::WorkflowCommands::UpsertWorkflowSearchAttributes? value) -> void + | ("modify_workflow_properties" name, ::Temporalio::Internal::Bridge::Api::WorkflowCommands::ModifyWorkflowProperties? value) -> void + | ("update_response" name, ::Temporalio::Internal::Bridge::Api::WorkflowCommands::UpdateResponse? value) -> void + | ("schedule_nexus_operation" name, ::Temporalio::Internal::Bridge::Api::WorkflowCommands::ScheduleNexusOperation? value) -> void + | ("request_cancel_nexus_operation" name, ::Temporalio::Internal::Bridge::Api::WorkflowCommands::RequestCancelNexusOperation? value) -> void + end + + class StartTimer < ::Google::Protobuf::AbstractMessage + + # Lang's incremental sequence number, used as the operation identifier + attr_reader seq(): ::Integer + attr_writer seq(): ::Integer | ::Float + def clear_seq: () -> void + + attr_reader start_to_fire_timeout(): ::Google::Protobuf::Duration? + attr_writer start_to_fire_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_start_to_fire_timeout?: () -> bool + def clear_start_to_fire_timeout: () -> void + + type init_map = { + seq: (::Integer | ::Float)?, + "seq" => (::Integer | ::Float)?, + start_to_fire_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "start_to_fire_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("seq" name) -> ::Integer + | ("start_to_fire_timeout" name) -> ::Google::Protobuf::Duration? + + def []=: + ("seq" name, (::Integer | ::Float) value) -> void + | ("start_to_fire_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + end + + class CancelTimer < ::Google::Protobuf::AbstractMessage + + # Lang's incremental sequence number as passed to `StartTimer` + attr_reader seq(): ::Integer + attr_writer seq(): ::Integer | ::Float + def clear_seq: () -> void + + type init_map = { + seq: (::Integer | ::Float)?, + "seq" => (::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("seq" name) -> ::Integer + + def []=: + ("seq" name, (::Integer | ::Float) value) -> void + end + + class ScheduleActivity < ::Google::Protobuf::AbstractMessage + + # Lang's incremental sequence number, used as the operation identifier + attr_reader seq(): ::Integer + attr_writer seq(): ::Integer | ::Float + def clear_seq: () -> void + + attr_reader activity_id(): ::String + attr_writer activity_id(): ::String | ::Symbol + def clear_activity_id: () -> void + + attr_reader activity_type(): ::String + attr_writer activity_type(): ::String | ::Symbol + def clear_activity_type: () -> void + + # The name of the task queue to place this activity request in + attr_reader task_queue(): ::String + attr_writer task_queue(): ::String | ::Symbol + def clear_task_queue: () -> void + + attr_accessor headers(): ::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload] + def clear_headers: () -> void + + # Arguments/input to the activity. Called "input" upstream. + attr_accessor arguments(): ::Google::Protobuf::RepeatedField + def clear_arguments: () -> void + + # 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_seconds must be specified. + # When not specified defaults to the workflow execution timeout. + attr_reader schedule_to_close_timeout(): ::Google::Protobuf::Duration? + attr_writer schedule_to_close_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_schedule_to_close_timeout?: () -> bool + def clear_schedule_to_close_timeout: () -> void + + # 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. + attr_reader schedule_to_start_timeout(): ::Google::Protobuf::Duration? + attr_writer schedule_to_start_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_schedule_to_start_timeout?: () -> bool + def clear_schedule_to_start_timeout: () -> void + + # Maximum time an activity is allowed to execute after a pick up by a worker. This timeout is + # always retryable. Either this or schedule_to_close_timeout must be specified. + attr_reader start_to_close_timeout(): ::Google::Protobuf::Duration? + attr_writer start_to_close_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_start_to_close_timeout?: () -> bool + def clear_start_to_close_timeout: () -> void + + # Maximum time allowed between successful worker heartbeats. + attr_reader heartbeat_timeout(): ::Google::Protobuf::Duration? + attr_writer heartbeat_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_heartbeat_timeout?: () -> bool + def clear_heartbeat_timeout: () -> void + + # Activities are provided by a default retry policy controlled through the service dynamic + # configuration. Retries are happening up to schedule_to_close_timeout. To disable retries set + # retry_policy.maximum_attempts to 1. + attr_accessor retry_policy(): ::Temporalio::Api::Common::V1::RetryPolicy? + def has_retry_policy?: () -> bool + def clear_retry_policy: () -> void + + # Defines how the workflow will wait (or not) for cancellation of the activity to be confirmed + attr_reader cancellation_type(): ::Temporalio::Internal::Bridge::Api::WorkflowCommands::ActivityCancellationType::names | ::Integer + attr_writer cancellation_type(): ::Temporalio::Internal::Bridge::Api::WorkflowCommands::ActivityCancellationType::names | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::ActivityCancellationType::strings | ::Integer | ::Float + attr_reader cancellation_type_const(): ::Integer + def clear_cancellation_type: () -> void + + # If set, the worker will not tell the service that it can immediately start executing this + # activity. When unset/default, workers will always attempt to do so if activity execution + # slots are available. + attr_accessor do_not_eagerly_execute(): bool + def clear_do_not_eagerly_execute: () -> void + + # Whether this activity should run on a worker with a compatible build id or not. + attr_reader versioning_intent(): ::Temporalio::Internal::Bridge::Api::Common::VersioningIntent::names | ::Integer + attr_writer versioning_intent(): ::Temporalio::Internal::Bridge::Api::Common::VersioningIntent::names | ::Temporalio::Internal::Bridge::Api::Common::VersioningIntent::strings | ::Integer | ::Float + attr_reader versioning_intent_const(): ::Integer + def clear_versioning_intent: () -> void + + # The Priority to use for this activity + attr_accessor priority(): ::Temporalio::Api::Common::V1::Priority? + def has_priority?: () -> bool + def clear_priority: () -> void + + type init_map = { + seq: (::Integer | ::Float)?, + "seq" => (::Integer | ::Float)?, + activity_id: (::String | ::Symbol)?, + "activity_id" => (::String | ::Symbol)?, + activity_type: (::String | ::Symbol)?, + "activity_type" => (::String | ::Symbol)?, + task_queue: (::String | ::Symbol)?, + "task_queue" => (::String | ::Symbol)?, + headers: ::Hash[::String | ::Symbol, ::Temporalio::Api::Common::V1::Payload]?, + "headers" => ::Hash[::String | ::Symbol, ::Temporalio::Api::Common::V1::Payload]?, + arguments: ::Array[::Temporalio::Api::Common::V1::Payload]?, + "arguments" => ::Array[::Temporalio::Api::Common::V1::Payload]?, + schedule_to_close_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "schedule_to_close_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + schedule_to_start_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "schedule_to_start_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + start_to_close_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "start_to_close_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + heartbeat_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "heartbeat_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + retry_policy: (::Temporalio::Api::Common::V1::RetryPolicy | ::Temporalio::Api::Common::V1::RetryPolicy::init_map)?, + "retry_policy" => (::Temporalio::Api::Common::V1::RetryPolicy | ::Temporalio::Api::Common::V1::RetryPolicy::init_map)?, + cancellation_type: (::Temporalio::Internal::Bridge::Api::WorkflowCommands::ActivityCancellationType::names | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::ActivityCancellationType::strings | ::Integer | ::Float)?, + "cancellation_type" => (::Temporalio::Internal::Bridge::Api::WorkflowCommands::ActivityCancellationType::names | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::ActivityCancellationType::strings | ::Integer | ::Float)?, + do_not_eagerly_execute: bool?, + "do_not_eagerly_execute" => bool?, + versioning_intent: (::Temporalio::Internal::Bridge::Api::Common::VersioningIntent::names | ::Temporalio::Internal::Bridge::Api::Common::VersioningIntent::strings | ::Integer | ::Float)?, + "versioning_intent" => (::Temporalio::Internal::Bridge::Api::Common::VersioningIntent::names | ::Temporalio::Internal::Bridge::Api::Common::VersioningIntent::strings | ::Integer | ::Float)?, + priority: (::Temporalio::Api::Common::V1::Priority | ::Temporalio::Api::Common::V1::Priority::init_map)?, + "priority" => (::Temporalio::Api::Common::V1::Priority | ::Temporalio::Api::Common::V1::Priority::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("seq" name) -> ::Integer + | ("activity_id" name) -> ::String + | ("activity_type" name) -> ::String + | ("task_queue" name) -> ::String + | ("headers" name) -> (::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload]) + | ("arguments" name) -> ::Google::Protobuf::RepeatedField + | ("schedule_to_close_timeout" name) -> ::Google::Protobuf::Duration? + | ("schedule_to_start_timeout" name) -> ::Google::Protobuf::Duration? + | ("start_to_close_timeout" name) -> ::Google::Protobuf::Duration? + | ("heartbeat_timeout" name) -> ::Google::Protobuf::Duration? + | ("retry_policy" name) -> ::Temporalio::Api::Common::V1::RetryPolicy? + | ("cancellation_type" name) -> (::Temporalio::Internal::Bridge::Api::WorkflowCommands::ActivityCancellationType::names | ::Integer) + | ("do_not_eagerly_execute" name) -> bool + | ("versioning_intent" name) -> (::Temporalio::Internal::Bridge::Api::Common::VersioningIntent::names | ::Integer) + | ("priority" name) -> ::Temporalio::Api::Common::V1::Priority? + + def []=: + ("seq" name, (::Integer | ::Float) value) -> void + | ("activity_id" name, (::String | ::Symbol) value) -> void + | ("activity_type" name, (::String | ::Symbol) value) -> void + | ("task_queue" name, (::String | ::Symbol) value) -> void + | ("headers" name, (::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload]) value) -> void + | ("arguments" name, ::Google::Protobuf::RepeatedField value) -> void + | ("schedule_to_close_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("schedule_to_start_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("start_to_close_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("heartbeat_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("retry_policy" name, ::Temporalio::Api::Common::V1::RetryPolicy? value) -> void + | ("cancellation_type" name, (::Temporalio::Internal::Bridge::Api::WorkflowCommands::ActivityCancellationType::names | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::ActivityCancellationType::strings | ::Integer | ::Float) value) -> void + | ("do_not_eagerly_execute" name, bool value) -> void + | ("versioning_intent" name, (::Temporalio::Internal::Bridge::Api::Common::VersioningIntent::names | ::Temporalio::Internal::Bridge::Api::Common::VersioningIntent::strings | ::Integer | ::Float) value) -> void + | ("priority" name, ::Temporalio::Api::Common::V1::Priority? value) -> void + end + + class ScheduleLocalActivity < ::Google::Protobuf::AbstractMessage + + # Lang's incremental sequence number, used as the operation identifier + attr_reader seq(): ::Integer + attr_writer seq(): ::Integer | ::Float + def clear_seq: () -> void + + attr_reader activity_id(): ::String + attr_writer activity_id(): ::String | ::Symbol + def clear_activity_id: () -> void + + attr_reader activity_type(): ::String + attr_writer activity_type(): ::String | ::Symbol + def clear_activity_type: () -> void + + # Local activities can start with a non-1 attempt, if lang has been told to backoff using + # a timer before retrying. It should pass the attempt number from a `DoBackoff` activity + # resolution. + attr_reader attempt(): ::Integer + attr_writer attempt(): ::Integer | ::Float + def clear_attempt: () -> void + + # If this local activity is a retry (as per the attempt field) this needs to be the original + # scheduling time (as provided in `DoBackoff`) + attr_reader original_schedule_time(): ::Google::Protobuf::Timestamp? + attr_writer original_schedule_time(): (::Google::Protobuf::Timestamp | ::Time)? + def has_original_schedule_time?: () -> bool + def clear_original_schedule_time: () -> void + + attr_accessor headers(): ::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload] + def clear_headers: () -> void + + # Arguments/input to the activity. + attr_accessor arguments(): ::Google::Protobuf::RepeatedField + def clear_arguments: () -> void + + # Indicates how long the caller is willing to wait for local activity completion. Limits how + # long retries will be attempted. When not specified defaults to the workflow execution + # timeout (which may be unset). + attr_reader schedule_to_close_timeout(): ::Google::Protobuf::Duration? + attr_writer schedule_to_close_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_schedule_to_close_timeout?: () -> bool + def clear_schedule_to_close_timeout: () -> void + + # Limits time the local activity can idle internally before being executed. That can happen if + # the worker is currently at max concurrent local activity executions. 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 and that is set. Must be <= + # `schedule_to_close_timeout` when set, otherwise, it will be clamped down. + attr_reader schedule_to_start_timeout(): ::Google::Protobuf::Duration? + attr_writer schedule_to_start_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_schedule_to_start_timeout?: () -> bool + def clear_schedule_to_start_timeout: () -> void + + # Maximum time the local activity is allowed to execute after the task is dispatched. This + # timeout is always retryable. Either or both of `schedule_to_close_timeout` and this must be + # specified. If set, this must be <= `schedule_to_close_timeout`, otherwise, it will be + # clamped down. + attr_reader start_to_close_timeout(): ::Google::Protobuf::Duration? + attr_writer start_to_close_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_start_to_close_timeout?: () -> bool + def clear_start_to_close_timeout: () -> void + + # Specify a retry policy for the local activity. By default local activities will be retried + # indefinitely. + attr_accessor retry_policy(): ::Temporalio::Api::Common::V1::RetryPolicy? + def has_retry_policy?: () -> bool + def clear_retry_policy: () -> void + + # If the activity is retrying and backoff would exceed this value, lang will be told to + # schedule a timer and retry the activity after. Otherwise, backoff will happen internally in + # core. Defaults to 1 minute. + attr_reader local_retry_threshold(): ::Google::Protobuf::Duration? + attr_writer local_retry_threshold(): (::Google::Protobuf::Duration | ::int)? + def has_local_retry_threshold?: () -> bool + def clear_local_retry_threshold: () -> void + + # Defines how the workflow will wait (or not) for cancellation of the activity to be + # confirmed. Lang should default this to `WAIT_CANCELLATION_COMPLETED`, even though proto + # will default to `TRY_CANCEL` automatically. + attr_reader cancellation_type(): ::Temporalio::Internal::Bridge::Api::WorkflowCommands::ActivityCancellationType::names | ::Integer + attr_writer cancellation_type(): ::Temporalio::Internal::Bridge::Api::WorkflowCommands::ActivityCancellationType::names | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::ActivityCancellationType::strings | ::Integer | ::Float + attr_reader cancellation_type_const(): ::Integer + def clear_cancellation_type: () -> void + + type init_map = { + seq: (::Integer | ::Float)?, + "seq" => (::Integer | ::Float)?, + activity_id: (::String | ::Symbol)?, + "activity_id" => (::String | ::Symbol)?, + activity_type: (::String | ::Symbol)?, + "activity_type" => (::String | ::Symbol)?, + attempt: (::Integer | ::Float)?, + "attempt" => (::Integer | ::Float)?, + original_schedule_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + "original_schedule_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?, + headers: ::Hash[::String | ::Symbol, ::Temporalio::Api::Common::V1::Payload]?, + "headers" => ::Hash[::String | ::Symbol, ::Temporalio::Api::Common::V1::Payload]?, + arguments: ::Array[::Temporalio::Api::Common::V1::Payload]?, + "arguments" => ::Array[::Temporalio::Api::Common::V1::Payload]?, + schedule_to_close_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "schedule_to_close_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + schedule_to_start_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "schedule_to_start_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + start_to_close_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "start_to_close_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + retry_policy: (::Temporalio::Api::Common::V1::RetryPolicy | ::Temporalio::Api::Common::V1::RetryPolicy::init_map)?, + "retry_policy" => (::Temporalio::Api::Common::V1::RetryPolicy | ::Temporalio::Api::Common::V1::RetryPolicy::init_map)?, + local_retry_threshold: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "local_retry_threshold" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + cancellation_type: (::Temporalio::Internal::Bridge::Api::WorkflowCommands::ActivityCancellationType::names | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::ActivityCancellationType::strings | ::Integer | ::Float)?, + "cancellation_type" => (::Temporalio::Internal::Bridge::Api::WorkflowCommands::ActivityCancellationType::names | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::ActivityCancellationType::strings | ::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("seq" name) -> ::Integer + | ("activity_id" name) -> ::String + | ("activity_type" name) -> ::String + | ("attempt" name) -> ::Integer + | ("original_schedule_time" name) -> ::Google::Protobuf::Timestamp? + | ("headers" name) -> (::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload]) + | ("arguments" name) -> ::Google::Protobuf::RepeatedField + | ("schedule_to_close_timeout" name) -> ::Google::Protobuf::Duration? + | ("schedule_to_start_timeout" name) -> ::Google::Protobuf::Duration? + | ("start_to_close_timeout" name) -> ::Google::Protobuf::Duration? + | ("retry_policy" name) -> ::Temporalio::Api::Common::V1::RetryPolicy? + | ("local_retry_threshold" name) -> ::Google::Protobuf::Duration? + | ("cancellation_type" name) -> (::Temporalio::Internal::Bridge::Api::WorkflowCommands::ActivityCancellationType::names | ::Integer) + + def []=: + ("seq" name, (::Integer | ::Float) value) -> void + | ("activity_id" name, (::String | ::Symbol) value) -> void + | ("activity_type" name, (::String | ::Symbol) value) -> void + | ("attempt" name, (::Integer | ::Float) value) -> void + | ("original_schedule_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void + | ("headers" name, (::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload]) value) -> void + | ("arguments" name, ::Google::Protobuf::RepeatedField value) -> void + | ("schedule_to_close_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("schedule_to_start_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("start_to_close_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("retry_policy" name, ::Temporalio::Api::Common::V1::RetryPolicy? value) -> void + | ("local_retry_threshold" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("cancellation_type" name, (::Temporalio::Internal::Bridge::Api::WorkflowCommands::ActivityCancellationType::names | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::ActivityCancellationType::strings | ::Integer | ::Float) value) -> void + end + + class RequestCancelActivity < ::Google::Protobuf::AbstractMessage + + # Lang's incremental sequence number as passed to `ScheduleActivity` + attr_reader seq(): ::Integer + attr_writer seq(): ::Integer | ::Float + def clear_seq: () -> void + + type init_map = { + seq: (::Integer | ::Float)?, + "seq" => (::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("seq" name) -> ::Integer + + def []=: + ("seq" name, (::Integer | ::Float) value) -> void + end + + class RequestCancelLocalActivity < ::Google::Protobuf::AbstractMessage + + # Lang's incremental sequence number as passed to `ScheduleLocalActivity` + attr_reader seq(): ::Integer + attr_writer seq(): ::Integer | ::Float + def clear_seq: () -> void + + type init_map = { + seq: (::Integer | ::Float)?, + "seq" => (::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("seq" name) -> ::Integer + + def []=: + ("seq" name, (::Integer | ::Float) value) -> void + end + + class QueryResult < ::Google::Protobuf::AbstractMessage + + # Corresponds to the id provided in the activation job + attr_reader query_id(): ::String + attr_writer query_id(): ::String | ::Symbol + def clear_query_id: () -> void + + attr_accessor succeeded(): ::Temporalio::Internal::Bridge::Api::WorkflowCommands::QuerySuccess? + def has_succeeded?: () -> bool + def clear_succeeded: () -> void + + attr_accessor failed(): ::Temporalio::Api::Failure::V1::Failure? + def has_failed?: () -> bool + def clear_failed: () -> void + + attr_reader variant(): (::Temporalio::Internal::Bridge::Api::WorkflowCommands::QuerySuccess | ::Temporalio::Api::Failure::V1::Failure)? + def has_variant?: () -> bool + def clear_variant: () -> void + + type init_map = { + query_id: (::String | ::Symbol)?, + "query_id" => (::String | ::Symbol)?, + succeeded: (::Temporalio::Internal::Bridge::Api::WorkflowCommands::QuerySuccess | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::QuerySuccess::init_map)?, + "succeeded" => (::Temporalio::Internal::Bridge::Api::WorkflowCommands::QuerySuccess | ::Temporalio::Internal::Bridge::Api::WorkflowCommands::QuerySuccess::init_map)?, + failed: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + "failed" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("query_id" name) -> ::String + | ("succeeded" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowCommands::QuerySuccess? + | ("failed" name) -> ::Temporalio::Api::Failure::V1::Failure? + + def []=: + ("query_id" name, (::String | ::Symbol) value) -> void + | ("succeeded" name, ::Temporalio::Internal::Bridge::Api::WorkflowCommands::QuerySuccess? value) -> void + | ("failed" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void + end + + class QuerySuccess < ::Google::Protobuf::AbstractMessage + + attr_accessor response(): ::Temporalio::Api::Common::V1::Payload? + def has_response?: () -> bool + def clear_response: () -> void + + type init_map = { + response: (::Temporalio::Api::Common::V1::Payload | ::Temporalio::Api::Common::V1::Payload::init_map)?, + "response" => (::Temporalio::Api::Common::V1::Payload | ::Temporalio::Api::Common::V1::Payload::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("response" name) -> ::Temporalio::Api::Common::V1::Payload? + + def []=: + ("response" name, ::Temporalio::Api::Common::V1::Payload? value) -> void + end + + # Issued when the workflow completes successfully + class CompleteWorkflowExecution < ::Google::Protobuf::AbstractMessage + + attr_accessor result(): ::Temporalio::Api::Common::V1::Payload? + def has_result?: () -> bool + def clear_result: () -> void + + type init_map = { + result: (::Temporalio::Api::Common::V1::Payload | ::Temporalio::Api::Common::V1::Payload::init_map)?, + "result" => (::Temporalio::Api::Common::V1::Payload | ::Temporalio::Api::Common::V1::Payload::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("result" name) -> ::Temporalio::Api::Common::V1::Payload? + + def []=: + ("result" name, ::Temporalio::Api::Common::V1::Payload? value) -> void + end + + # Issued when the workflow errors out + class FailWorkflowExecution < ::Google::Protobuf::AbstractMessage + + attr_accessor failure(): ::Temporalio::Api::Failure::V1::Failure? + def has_failure?: () -> bool + def clear_failure: () -> void + + type init_map = { + failure: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + "failure" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("failure" name) -> ::Temporalio::Api::Failure::V1::Failure? + + def []=: + ("failure" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void + end + + # Continue the workflow as a new execution + class ContinueAsNewWorkflowExecution < ::Google::Protobuf::AbstractMessage + + # The identifier the lang-specific sdk uses to execute workflow code + attr_reader workflow_type(): ::String + attr_writer workflow_type(): ::String | ::Symbol + def clear_workflow_type: () -> void + + # Task queue for the new workflow execution + attr_reader task_queue(): ::String + attr_writer task_queue(): ::String | ::Symbol + def clear_task_queue: () -> void + + # Inputs to the workflow code. Should be specified. Will not re-use old arguments, as that + # typically wouldn't make any sense. + attr_accessor arguments(): ::Google::Protobuf::RepeatedField + def clear_arguments: () -> void + + # Timeout for a single run of the new workflow. Will not re-use current workflow's value. + attr_reader workflow_run_timeout(): ::Google::Protobuf::Duration? + attr_writer workflow_run_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_workflow_run_timeout?: () -> bool + def clear_workflow_run_timeout: () -> void + + # Timeout of a single workflow task. Will not re-use current workflow's value. + attr_reader workflow_task_timeout(): ::Google::Protobuf::Duration? + attr_writer workflow_task_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_workflow_task_timeout?: () -> bool + def clear_workflow_task_timeout: () -> void + + # If set, the new workflow will have this memo. If unset, re-uses the current workflow's memo + attr_accessor memo(): ::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload] + def clear_memo: () -> void + + # If set, the new workflow will have these headers. Will *not* re-use current workflow's + # headers otherwise. + attr_accessor headers(): ::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload] + def clear_headers: () -> void + + # If set, the new workflow will have these search attributes. If unset, re-uses the current + # workflow's search attributes. + attr_accessor search_attributes(): ::Temporalio::Api::Common::V1::SearchAttributes? + def has_search_attributes?: () -> bool + def clear_search_attributes: () -> void + + # If set, the new workflow will have this retry policy. If unset, re-uses the current + # workflow's retry policy. + attr_accessor retry_policy(): ::Temporalio::Api::Common::V1::RetryPolicy? + def has_retry_policy?: () -> bool + def clear_retry_policy: () -> void + + # Whether the continued workflow should run on a worker with a compatible build id or not. + attr_reader versioning_intent(): ::Temporalio::Internal::Bridge::Api::Common::VersioningIntent::names | ::Integer + attr_writer versioning_intent(): ::Temporalio::Internal::Bridge::Api::Common::VersioningIntent::names | ::Temporalio::Internal::Bridge::Api::Common::VersioningIntent::strings | ::Integer | ::Float + attr_reader versioning_intent_const(): ::Integer + def clear_versioning_intent: () -> void + + # 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. + attr_reader initial_versioning_behavior(): ::Temporalio::Api::Enums::V1::ContinueAsNewVersioningBehavior::names | ::Integer + attr_writer initial_versioning_behavior(): ::Temporalio::Api::Enums::V1::ContinueAsNewVersioningBehavior::names | ::Temporalio::Api::Enums::V1::ContinueAsNewVersioningBehavior::strings | ::Integer | ::Float + attr_reader initial_versioning_behavior_const(): ::Integer + def clear_initial_versioning_behavior: () -> void + + type init_map = { + workflow_type: (::String | ::Symbol)?, + "workflow_type" => (::String | ::Symbol)?, + task_queue: (::String | ::Symbol)?, + "task_queue" => (::String | ::Symbol)?, + arguments: ::Array[::Temporalio::Api::Common::V1::Payload]?, + "arguments" => ::Array[::Temporalio::Api::Common::V1::Payload]?, + workflow_run_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "workflow_run_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + workflow_task_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "workflow_task_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + memo: ::Hash[::String | ::Symbol, ::Temporalio::Api::Common::V1::Payload]?, + "memo" => ::Hash[::String | ::Symbol, ::Temporalio::Api::Common::V1::Payload]?, + headers: ::Hash[::String | ::Symbol, ::Temporalio::Api::Common::V1::Payload]?, + "headers" => ::Hash[::String | ::Symbol, ::Temporalio::Api::Common::V1::Payload]?, + search_attributes: (::Temporalio::Api::Common::V1::SearchAttributes | ::Temporalio::Api::Common::V1::SearchAttributes::init_map)?, + "search_attributes" => (::Temporalio::Api::Common::V1::SearchAttributes | ::Temporalio::Api::Common::V1::SearchAttributes::init_map)?, + retry_policy: (::Temporalio::Api::Common::V1::RetryPolicy | ::Temporalio::Api::Common::V1::RetryPolicy::init_map)?, + "retry_policy" => (::Temporalio::Api::Common::V1::RetryPolicy | ::Temporalio::Api::Common::V1::RetryPolicy::init_map)?, + versioning_intent: (::Temporalio::Internal::Bridge::Api::Common::VersioningIntent::names | ::Temporalio::Internal::Bridge::Api::Common::VersioningIntent::strings | ::Integer | ::Float)?, + "versioning_intent" => (::Temporalio::Internal::Bridge::Api::Common::VersioningIntent::names | ::Temporalio::Internal::Bridge::Api::Common::VersioningIntent::strings | ::Integer | ::Float)?, + initial_versioning_behavior: (::Temporalio::Api::Enums::V1::ContinueAsNewVersioningBehavior::names | ::Temporalio::Api::Enums::V1::ContinueAsNewVersioningBehavior::strings | ::Integer | ::Float)?, + "initial_versioning_behavior" => (::Temporalio::Api::Enums::V1::ContinueAsNewVersioningBehavior::names | ::Temporalio::Api::Enums::V1::ContinueAsNewVersioningBehavior::strings | ::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("workflow_type" name) -> ::String + | ("task_queue" name) -> ::String + | ("arguments" name) -> ::Google::Protobuf::RepeatedField + | ("workflow_run_timeout" name) -> ::Google::Protobuf::Duration? + | ("workflow_task_timeout" name) -> ::Google::Protobuf::Duration? + | ("memo" name) -> (::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload]) + | ("headers" name) -> (::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload]) + | ("search_attributes" name) -> ::Temporalio::Api::Common::V1::SearchAttributes? + | ("retry_policy" name) -> ::Temporalio::Api::Common::V1::RetryPolicy? + | ("versioning_intent" name) -> (::Temporalio::Internal::Bridge::Api::Common::VersioningIntent::names | ::Integer) + | ("initial_versioning_behavior" name) -> (::Temporalio::Api::Enums::V1::ContinueAsNewVersioningBehavior::names | ::Integer) + + def []=: + ("workflow_type" name, (::String | ::Symbol) value) -> void + | ("task_queue" name, (::String | ::Symbol) value) -> void + | ("arguments" name, ::Google::Protobuf::RepeatedField value) -> void + | ("workflow_run_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("workflow_task_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("memo" name, (::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload]) value) -> void + | ("headers" name, (::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload]) value) -> void + | ("search_attributes" name, ::Temporalio::Api::Common::V1::SearchAttributes? value) -> void + | ("retry_policy" name, ::Temporalio::Api::Common::V1::RetryPolicy? value) -> void + | ("versioning_intent" name, (::Temporalio::Internal::Bridge::Api::Common::VersioningIntent::names | ::Temporalio::Internal::Bridge::Api::Common::VersioningIntent::strings | ::Integer | ::Float) value) -> void + | ("initial_versioning_behavior" name, (::Temporalio::Api::Enums::V1::ContinueAsNewVersioningBehavior::names | ::Temporalio::Api::Enums::V1::ContinueAsNewVersioningBehavior::strings | ::Integer | ::Float) value) -> void + end + + # Indicate a workflow has completed as cancelled. Generally sent as a response to an activation + # containing a cancellation job. + class CancelWorkflowExecution < ::Google::Protobuf::AbstractMessage + + type init_map = { + } + + def initialize: (?init_map initial_value) -> void + end + + # A request to set/check if a certain patch is present or not + class SetPatchMarker < ::Google::Protobuf::AbstractMessage + + # A user-chosen identifier for this patch. If the same identifier is used in multiple places in + # the code, those places are considered to be versioned as one unit. IE: The check call will + # return the same result for all of them + attr_reader patch_id(): ::String + attr_writer patch_id(): ::String | ::Symbol + def clear_patch_id: () -> void + + # Can be set to true to indicate that branches using this change are being removed, and all + # future worker deployments will only have the "with change" code in them. + attr_accessor deprecated(): bool + def clear_deprecated: () -> void + + type init_map = { + patch_id: (::String | ::Symbol)?, + "patch_id" => (::String | ::Symbol)?, + deprecated: bool?, + "deprecated" => bool?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("patch_id" name) -> ::String + | ("deprecated" name) -> bool + + def []=: + ("patch_id" name, (::String | ::Symbol) value) -> void + | ("deprecated" name, bool value) -> void + end + + # Start a child workflow execution + class StartChildWorkflowExecution < ::Google::Protobuf::AbstractMessage + + # Lang's incremental sequence number, used as the operation identifier + attr_reader seq(): ::Integer + attr_writer seq(): ::Integer | ::Float + def clear_seq: () -> void + + attr_reader namespace(): ::String + attr_writer namespace(): ::String | ::Symbol + def clear_namespace: () -> void + + attr_reader workflow_id(): ::String + attr_writer workflow_id(): ::String | ::Symbol + def clear_workflow_id: () -> void + + attr_reader workflow_type(): ::String + attr_writer workflow_type(): ::String | ::Symbol + def clear_workflow_type: () -> void + + attr_reader task_queue(): ::String + attr_writer task_queue(): ::String | ::Symbol + def clear_task_queue: () -> void + + attr_accessor input(): ::Google::Protobuf::RepeatedField + def clear_input: () -> void + + # Total workflow execution timeout including retries and continue as new. + attr_reader workflow_execution_timeout(): ::Google::Protobuf::Duration? + attr_writer workflow_execution_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_workflow_execution_timeout?: () -> bool + def clear_workflow_execution_timeout: () -> void + + # Timeout of a single workflow run. + attr_reader workflow_run_timeout(): ::Google::Protobuf::Duration? + attr_writer workflow_run_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_workflow_run_timeout?: () -> bool + def clear_workflow_run_timeout: () -> void + + # Timeout of a single workflow task. + attr_reader workflow_task_timeout(): ::Google::Protobuf::Duration? + attr_writer workflow_task_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_workflow_task_timeout?: () -> bool + def clear_workflow_task_timeout: () -> void + + # Default: PARENT_CLOSE_POLICY_TERMINATE. + attr_reader parent_close_policy(): ::Temporalio::Internal::Bridge::Api::ChildWorkflow::ParentClosePolicy::names | ::Integer + attr_writer parent_close_policy(): ::Temporalio::Internal::Bridge::Api::ChildWorkflow::ParentClosePolicy::names | ::Temporalio::Internal::Bridge::Api::ChildWorkflow::ParentClosePolicy::strings | ::Integer | ::Float + attr_reader parent_close_policy_const(): ::Integer + def clear_parent_close_policy: () -> void + + # string control = 11; (unused from StartChildWorkflowExecutionCommandAttributes) + # Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE. + attr_reader workflow_id_reuse_policy(): ::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::names | ::Integer + attr_writer workflow_id_reuse_policy(): ::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::names | ::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::strings | ::Integer | ::Float + attr_reader workflow_id_reuse_policy_const(): ::Integer + def clear_workflow_id_reuse_policy: () -> void + + attr_accessor retry_policy(): ::Temporalio::Api::Common::V1::RetryPolicy? + def has_retry_policy?: () -> bool + def clear_retry_policy: () -> void + + attr_reader cron_schedule(): ::String + attr_writer cron_schedule(): ::String | ::Symbol + def clear_cron_schedule: () -> void + + # Header fields + attr_accessor headers(): ::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload] + def clear_headers: () -> void + + # Memo fields + attr_accessor memo(): ::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload] + def clear_memo: () -> void + + # Search attributes + attr_accessor search_attributes(): ::Temporalio::Api::Common::V1::SearchAttributes? + def has_search_attributes?: () -> bool + def clear_search_attributes: () -> void + + # Defines behaviour of the underlying workflow when child workflow cancellation has been requested. + attr_reader cancellation_type(): ::Temporalio::Internal::Bridge::Api::ChildWorkflow::ChildWorkflowCancellationType::names | ::Integer + attr_writer cancellation_type(): ::Temporalio::Internal::Bridge::Api::ChildWorkflow::ChildWorkflowCancellationType::names | ::Temporalio::Internal::Bridge::Api::ChildWorkflow::ChildWorkflowCancellationType::strings | ::Integer | ::Float + attr_reader cancellation_type_const(): ::Integer + def clear_cancellation_type: () -> void + + # Whether this child should run on a worker with a compatible build id or not. + attr_reader versioning_intent(): ::Temporalio::Internal::Bridge::Api::Common::VersioningIntent::names | ::Integer + attr_writer versioning_intent(): ::Temporalio::Internal::Bridge::Api::Common::VersioningIntent::names | ::Temporalio::Internal::Bridge::Api::Common::VersioningIntent::strings | ::Integer | ::Float + attr_reader versioning_intent_const(): ::Integer + def clear_versioning_intent: () -> void + + # The Priority to use for this activity + attr_accessor priority(): ::Temporalio::Api::Common::V1::Priority? + def has_priority?: () -> bool + def clear_priority: () -> void + + type init_map = { + seq: (::Integer | ::Float)?, + "seq" => (::Integer | ::Float)?, + namespace: (::String | ::Symbol)?, + "namespace" => (::String | ::Symbol)?, + workflow_id: (::String | ::Symbol)?, + "workflow_id" => (::String | ::Symbol)?, + workflow_type: (::String | ::Symbol)?, + "workflow_type" => (::String | ::Symbol)?, + task_queue: (::String | ::Symbol)?, + "task_queue" => (::String | ::Symbol)?, + input: ::Array[::Temporalio::Api::Common::V1::Payload]?, + "input" => ::Array[::Temporalio::Api::Common::V1::Payload]?, + workflow_execution_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "workflow_execution_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + workflow_run_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "workflow_run_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + workflow_task_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "workflow_task_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + parent_close_policy: (::Temporalio::Internal::Bridge::Api::ChildWorkflow::ParentClosePolicy::names | ::Temporalio::Internal::Bridge::Api::ChildWorkflow::ParentClosePolicy::strings | ::Integer | ::Float)?, + "parent_close_policy" => (::Temporalio::Internal::Bridge::Api::ChildWorkflow::ParentClosePolicy::names | ::Temporalio::Internal::Bridge::Api::ChildWorkflow::ParentClosePolicy::strings | ::Integer | ::Float)?, + workflow_id_reuse_policy: (::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::names | ::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::strings | ::Integer | ::Float)?, + "workflow_id_reuse_policy" => (::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::names | ::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::strings | ::Integer | ::Float)?, + retry_policy: (::Temporalio::Api::Common::V1::RetryPolicy | ::Temporalio::Api::Common::V1::RetryPolicy::init_map)?, + "retry_policy" => (::Temporalio::Api::Common::V1::RetryPolicy | ::Temporalio::Api::Common::V1::RetryPolicy::init_map)?, + cron_schedule: (::String | ::Symbol)?, + "cron_schedule" => (::String | ::Symbol)?, + headers: ::Hash[::String | ::Symbol, ::Temporalio::Api::Common::V1::Payload]?, + "headers" => ::Hash[::String | ::Symbol, ::Temporalio::Api::Common::V1::Payload]?, + memo: ::Hash[::String | ::Symbol, ::Temporalio::Api::Common::V1::Payload]?, + "memo" => ::Hash[::String | ::Symbol, ::Temporalio::Api::Common::V1::Payload]?, + search_attributes: (::Temporalio::Api::Common::V1::SearchAttributes | ::Temporalio::Api::Common::V1::SearchAttributes::init_map)?, + "search_attributes" => (::Temporalio::Api::Common::V1::SearchAttributes | ::Temporalio::Api::Common::V1::SearchAttributes::init_map)?, + cancellation_type: (::Temporalio::Internal::Bridge::Api::ChildWorkflow::ChildWorkflowCancellationType::names | ::Temporalio::Internal::Bridge::Api::ChildWorkflow::ChildWorkflowCancellationType::strings | ::Integer | ::Float)?, + "cancellation_type" => (::Temporalio::Internal::Bridge::Api::ChildWorkflow::ChildWorkflowCancellationType::names | ::Temporalio::Internal::Bridge::Api::ChildWorkflow::ChildWorkflowCancellationType::strings | ::Integer | ::Float)?, + versioning_intent: (::Temporalio::Internal::Bridge::Api::Common::VersioningIntent::names | ::Temporalio::Internal::Bridge::Api::Common::VersioningIntent::strings | ::Integer | ::Float)?, + "versioning_intent" => (::Temporalio::Internal::Bridge::Api::Common::VersioningIntent::names | ::Temporalio::Internal::Bridge::Api::Common::VersioningIntent::strings | ::Integer | ::Float)?, + priority: (::Temporalio::Api::Common::V1::Priority | ::Temporalio::Api::Common::V1::Priority::init_map)?, + "priority" => (::Temporalio::Api::Common::V1::Priority | ::Temporalio::Api::Common::V1::Priority::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("seq" name) -> ::Integer + | ("namespace" name) -> ::String + | ("workflow_id" name) -> ::String + | ("workflow_type" name) -> ::String + | ("task_queue" name) -> ::String + | ("input" name) -> ::Google::Protobuf::RepeatedField + | ("workflow_execution_timeout" name) -> ::Google::Protobuf::Duration? + | ("workflow_run_timeout" name) -> ::Google::Protobuf::Duration? + | ("workflow_task_timeout" name) -> ::Google::Protobuf::Duration? + | ("parent_close_policy" name) -> (::Temporalio::Internal::Bridge::Api::ChildWorkflow::ParentClosePolicy::names | ::Integer) + | ("workflow_id_reuse_policy" name) -> (::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::names | ::Integer) + | ("retry_policy" name) -> ::Temporalio::Api::Common::V1::RetryPolicy? + | ("cron_schedule" name) -> ::String + | ("headers" name) -> (::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload]) + | ("memo" name) -> (::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload]) + | ("search_attributes" name) -> ::Temporalio::Api::Common::V1::SearchAttributes? + | ("cancellation_type" name) -> (::Temporalio::Internal::Bridge::Api::ChildWorkflow::ChildWorkflowCancellationType::names | ::Integer) + | ("versioning_intent" name) -> (::Temporalio::Internal::Bridge::Api::Common::VersioningIntent::names | ::Integer) + | ("priority" name) -> ::Temporalio::Api::Common::V1::Priority? + + def []=: + ("seq" name, (::Integer | ::Float) value) -> void + | ("namespace" name, (::String | ::Symbol) value) -> void + | ("workflow_id" name, (::String | ::Symbol) value) -> void + | ("workflow_type" name, (::String | ::Symbol) value) -> void + | ("task_queue" name, (::String | ::Symbol) value) -> void + | ("input" name, ::Google::Protobuf::RepeatedField value) -> void + | ("workflow_execution_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("workflow_run_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("workflow_task_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("parent_close_policy" name, (::Temporalio::Internal::Bridge::Api::ChildWorkflow::ParentClosePolicy::names | ::Temporalio::Internal::Bridge::Api::ChildWorkflow::ParentClosePolicy::strings | ::Integer | ::Float) value) -> void + | ("workflow_id_reuse_policy" name, (::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::names | ::Temporalio::Api::Enums::V1::WorkflowIdReusePolicy::strings | ::Integer | ::Float) value) -> void + | ("retry_policy" name, ::Temporalio::Api::Common::V1::RetryPolicy? value) -> void + | ("cron_schedule" name, (::String | ::Symbol) value) -> void + | ("headers" name, (::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload]) value) -> void + | ("memo" name, (::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload]) value) -> void + | ("search_attributes" name, ::Temporalio::Api::Common::V1::SearchAttributes? value) -> void + | ("cancellation_type" name, (::Temporalio::Internal::Bridge::Api::ChildWorkflow::ChildWorkflowCancellationType::names | ::Temporalio::Internal::Bridge::Api::ChildWorkflow::ChildWorkflowCancellationType::strings | ::Integer | ::Float) value) -> void + | ("versioning_intent" name, (::Temporalio::Internal::Bridge::Api::Common::VersioningIntent::names | ::Temporalio::Internal::Bridge::Api::Common::VersioningIntent::strings | ::Integer | ::Float) value) -> void + | ("priority" name, ::Temporalio::Api::Common::V1::Priority? value) -> void + end + + # Cancel a child workflow + class CancelChildWorkflowExecution < ::Google::Protobuf::AbstractMessage + + # Sequence number as given to the `StartChildWorkflowExecution` command + attr_reader child_workflow_seq(): ::Integer + attr_writer child_workflow_seq(): ::Integer | ::Float + def clear_child_workflow_seq: () -> void + + # A reason for the cancellation + attr_reader reason(): ::String + attr_writer reason(): ::String | ::Symbol + def clear_reason: () -> void + + type init_map = { + child_workflow_seq: (::Integer | ::Float)?, + "child_workflow_seq" => (::Integer | ::Float)?, + reason: (::String | ::Symbol)?, + "reason" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("child_workflow_seq" name) -> ::Integer + | ("reason" name) -> ::String + + def []=: + ("child_workflow_seq" name, (::Integer | ::Float) value) -> void + | ("reason" name, (::String | ::Symbol) value) -> void + end + + # Request cancellation of an external workflow execution. For cancellation of a child workflow, + # prefer `CancelChildWorkflowExecution` instead, as it guards against cancel-before-start issues. + class RequestCancelExternalWorkflowExecution < ::Google::Protobuf::AbstractMessage + + # Lang's incremental sequence number, used as the operation identifier + attr_reader seq(): ::Integer + attr_writer seq(): ::Integer | ::Float + def clear_seq: () -> void + + # The workflow instance being targeted + attr_accessor workflow_execution(): ::Temporalio::Internal::Bridge::Api::Common::NamespacedWorkflowExecution? + def has_workflow_execution?: () -> bool + def clear_workflow_execution: () -> void + + # A reason for the cancellation + attr_reader reason(): ::String + attr_writer reason(): ::String | ::Symbol + def clear_reason: () -> void + + type init_map = { + seq: (::Integer | ::Float)?, + "seq" => (::Integer | ::Float)?, + workflow_execution: (::Temporalio::Internal::Bridge::Api::Common::NamespacedWorkflowExecution | ::Temporalio::Internal::Bridge::Api::Common::NamespacedWorkflowExecution::init_map)?, + "workflow_execution" => (::Temporalio::Internal::Bridge::Api::Common::NamespacedWorkflowExecution | ::Temporalio::Internal::Bridge::Api::Common::NamespacedWorkflowExecution::init_map)?, + reason: (::String | ::Symbol)?, + "reason" => (::String | ::Symbol)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("seq" name) -> ::Integer + | ("workflow_execution" name) -> ::Temporalio::Internal::Bridge::Api::Common::NamespacedWorkflowExecution? + | ("reason" name) -> ::String + + def []=: + ("seq" name, (::Integer | ::Float) value) -> void + | ("workflow_execution" name, ::Temporalio::Internal::Bridge::Api::Common::NamespacedWorkflowExecution? value) -> void + | ("reason" name, (::String | ::Symbol) value) -> void + end + + # Send a signal to an external or child workflow + class SignalExternalWorkflowExecution < ::Google::Protobuf::AbstractMessage + + # Lang's incremental sequence number, used as the operation identifier + attr_reader seq(): ::Integer + attr_writer seq(): ::Integer | ::Float + def clear_seq: () -> void + + # A specific workflow instance + attr_accessor workflow_execution(): ::Temporalio::Internal::Bridge::Api::Common::NamespacedWorkflowExecution? + def has_workflow_execution?: () -> bool + def clear_workflow_execution: () -> void + + # The desired target must be a child of the issuing workflow, and this is its workflow id + attr_reader child_workflow_id(): ::String + attr_writer child_workflow_id(): (::String | ::Symbol)? + def has_child_workflow_id?: () -> bool + def clear_child_workflow_id: () -> void + + # Name of the signal handler + attr_reader signal_name(): ::String + attr_writer signal_name(): ::String | ::Symbol + def clear_signal_name: () -> void + + # Arguments for the handler + attr_accessor args(): ::Google::Protobuf::RepeatedField + def clear_args: () -> void + + # Headers to attach to the signal + attr_accessor headers(): ::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload] + def clear_headers: () -> void + + # What workflow is being targeted + attr_reader target(): (::Temporalio::Internal::Bridge::Api::Common::NamespacedWorkflowExecution | ::String)? + def has_target?: () -> bool + def clear_target: () -> void + + type init_map = { + seq: (::Integer | ::Float)?, + "seq" => (::Integer | ::Float)?, + workflow_execution: (::Temporalio::Internal::Bridge::Api::Common::NamespacedWorkflowExecution | ::Temporalio::Internal::Bridge::Api::Common::NamespacedWorkflowExecution::init_map)?, + "workflow_execution" => (::Temporalio::Internal::Bridge::Api::Common::NamespacedWorkflowExecution | ::Temporalio::Internal::Bridge::Api::Common::NamespacedWorkflowExecution::init_map)?, + child_workflow_id: (::String | ::Symbol)?, + "child_workflow_id" => (::String | ::Symbol)?, + signal_name: (::String | ::Symbol)?, + "signal_name" => (::String | ::Symbol)?, + args: ::Array[::Temporalio::Api::Common::V1::Payload]?, + "args" => ::Array[::Temporalio::Api::Common::V1::Payload]?, + headers: ::Hash[::String | ::Symbol, ::Temporalio::Api::Common::V1::Payload]?, + "headers" => ::Hash[::String | ::Symbol, ::Temporalio::Api::Common::V1::Payload]?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("seq" name) -> ::Integer + | ("workflow_execution" name) -> ::Temporalio::Internal::Bridge::Api::Common::NamespacedWorkflowExecution? + | ("child_workflow_id" name) -> ::String + | ("signal_name" name) -> ::String + | ("args" name) -> ::Google::Protobuf::RepeatedField + | ("headers" name) -> (::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload]) + + def []=: + ("seq" name, (::Integer | ::Float) value) -> void + | ("workflow_execution" name, ::Temporalio::Internal::Bridge::Api::Common::NamespacedWorkflowExecution? value) -> void + | ("child_workflow_id" name, ((::String | ::Symbol)?) value) -> void + | ("signal_name" name, (::String | ::Symbol) value) -> void + | ("args" name, ::Google::Protobuf::RepeatedField value) -> void + | ("headers" name, (::Google::Protobuf::Map[::String, ::Temporalio::Api::Common::V1::Payload]) value) -> void + end + + # Can be used to cancel not-already-sent `SignalExternalWorkflowExecution` commands + class CancelSignalWorkflow < ::Google::Protobuf::AbstractMessage + + # Lang's incremental sequence number as passed to `SignalExternalWorkflowExecution` + attr_reader seq(): ::Integer + attr_writer seq(): ::Integer | ::Float + def clear_seq: () -> void + + type init_map = { + seq: (::Integer | ::Float)?, + "seq" => (::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("seq" name) -> ::Integer + + def []=: + ("seq" name, (::Integer | ::Float) value) -> void + end + + class UpsertWorkflowSearchAttributes < ::Google::Protobuf::AbstractMessage + + # SearchAttributes to upsert. The indexed_fields map will be merged with existing search + # attributes, with these values taking precedence. + attr_accessor search_attributes(): ::Temporalio::Api::Common::V1::SearchAttributes? + def has_search_attributes?: () -> bool + def clear_search_attributes: () -> void + + type init_map = { + search_attributes: (::Temporalio::Api::Common::V1::SearchAttributes | ::Temporalio::Api::Common::V1::SearchAttributes::init_map)?, + "search_attributes" => (::Temporalio::Api::Common::V1::SearchAttributes | ::Temporalio::Api::Common::V1::SearchAttributes::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("search_attributes" name) -> ::Temporalio::Api::Common::V1::SearchAttributes? + + def []=: + ("search_attributes" name, ::Temporalio::Api::Common::V1::SearchAttributes? value) -> void + end + + class ModifyWorkflowProperties < ::Google::Protobuf::AbstractMessage + + # 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. + attr_accessor upserted_memo(): ::Temporalio::Api::Common::V1::Memo? + def has_upserted_memo?: () -> bool + def clear_upserted_memo: () -> void + + type init_map = { + upserted_memo: (::Temporalio::Api::Common::V1::Memo | ::Temporalio::Api::Common::V1::Memo::init_map)?, + "upserted_memo" => (::Temporalio::Api::Common::V1::Memo | ::Temporalio::Api::Common::V1::Memo::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("upserted_memo" name) -> ::Temporalio::Api::Common::V1::Memo? + + def []=: + ("upserted_memo" name, ::Temporalio::Api::Common::V1::Memo? value) -> void + end + + # A reply to a `DoUpdate` job - lang must run the update's validator if told to, and then + # immediately run the handler, if the update was accepted. + # There must always be an accepted or rejected response immediately, in the same activation as + # this job, to indicate the result of the validator. Accepted for ran and accepted or skipped, or + # rejected for rejected. + # Then, in the same or any subsequent activation, after the update handler has completed, respond + # with completed or rejected as appropriate for the result of the handler. + class UpdateResponse < ::Google::Protobuf::AbstractMessage + + # The protocol message instance ID + attr_reader protocol_instance_id(): ::String + attr_writer protocol_instance_id(): ::String | ::Symbol + def clear_protocol_instance_id: () -> void + + # Must be sent if the update's validator has passed (or lang was not asked to run it, and + # thus should be considered already-accepted, allowing lang to always send the same + # sequence on replay). + attr_accessor accepted(): ::Google::Protobuf::Empty? + def has_accepted?: () -> bool + def clear_accepted: () -> void + + # Must be sent if the update's validator does not pass, or after acceptance if the update + # handler fails. + attr_accessor rejected(): ::Temporalio::Api::Failure::V1::Failure? + def has_rejected?: () -> bool + def clear_rejected: () -> void + + # Must be sent once the update handler completes successfully. + attr_accessor completed(): ::Temporalio::Api::Common::V1::Payload? + def has_completed?: () -> bool + def clear_completed: () -> void + + attr_reader response(): (::Google::Protobuf::Empty | ::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Common::V1::Payload)? + def has_response?: () -> bool + def clear_response: () -> void + + type init_map = { + protocol_instance_id: (::String | ::Symbol)?, + "protocol_instance_id" => (::String | ::Symbol)?, + accepted: (::Google::Protobuf::Empty | ::Google::Protobuf::Empty)?, + "accepted" => (::Google::Protobuf::Empty | ::Google::Protobuf::Empty)?, + rejected: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + "rejected" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + completed: (::Temporalio::Api::Common::V1::Payload | ::Temporalio::Api::Common::V1::Payload::init_map)?, + "completed" => (::Temporalio::Api::Common::V1::Payload | ::Temporalio::Api::Common::V1::Payload::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("protocol_instance_id" name) -> ::String + | ("accepted" name) -> ::Google::Protobuf::Empty? + | ("rejected" name) -> ::Temporalio::Api::Failure::V1::Failure? + | ("completed" name) -> ::Temporalio::Api::Common::V1::Payload? + + def []=: + ("protocol_instance_id" name, (::String | ::Symbol) value) -> void + | ("accepted" name, ::Google::Protobuf::Empty? value) -> void + | ("rejected" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void + | ("completed" name, ::Temporalio::Api::Common::V1::Payload? value) -> void + end + + # A request to begin a Nexus operation + class ScheduleNexusOperation < ::Google::Protobuf::AbstractMessage + + # Lang's incremental sequence number, used as the operation identifier + attr_reader seq(): ::Integer + attr_writer seq(): ::Integer | ::Float + def clear_seq: () -> void + + # Endpoint name, must exist in the endpoint registry or this command will fail. + attr_reader endpoint(): ::String + attr_writer endpoint(): ::String | ::Symbol + def clear_endpoint: () -> void + + # Service name. + attr_reader service(): ::String + attr_writer service(): ::String | ::Symbol + def clear_service: () -> void + + # Operation name. + attr_reader operation(): ::String + attr_writer operation(): ::String | ::Symbol + def clear_operation: () -> void + + # 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. + attr_accessor input(): ::Temporalio::Api::Common::V1::Payload? + def has_input?: () -> bool + def clear_input: () -> void + + # 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. + attr_reader schedule_to_close_timeout(): ::Google::Protobuf::Duration? + attr_writer schedule_to_close_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_schedule_to_close_timeout?: () -> bool + def clear_schedule_to_close_timeout: () -> void + + # 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. + attr_accessor nexus_header(): ::Google::Protobuf::Map[::String, ::String] + def clear_nexus_header: () -> void + + # Defines behaviour of the underlying nexus operation when operation cancellation has been requested. + attr_reader cancellation_type(): ::Temporalio::Internal::Bridge::Api::Nexus::NexusOperationCancellationType::names | ::Integer + attr_writer cancellation_type(): ::Temporalio::Internal::Bridge::Api::Nexus::NexusOperationCancellationType::names | ::Temporalio::Internal::Bridge::Api::Nexus::NexusOperationCancellationType::strings | ::Integer | ::Float + attr_reader cancellation_type_const(): ::Integer + def clear_cancellation_type: () -> void + + # 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. + attr_reader schedule_to_start_timeout(): ::Google::Protobuf::Duration? + attr_writer schedule_to_start_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_schedule_to_start_timeout?: () -> bool + def clear_schedule_to_start_timeout: () -> void + + # 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. + attr_reader start_to_close_timeout(): ::Google::Protobuf::Duration? + attr_writer start_to_close_timeout(): (::Google::Protobuf::Duration | ::int)? + def has_start_to_close_timeout?: () -> bool + def clear_start_to_close_timeout: () -> void + + type init_map = { + seq: (::Integer | ::Float)?, + "seq" => (::Integer | ::Float)?, + endpoint: (::String | ::Symbol)?, + "endpoint" => (::String | ::Symbol)?, + service: (::String | ::Symbol)?, + "service" => (::String | ::Symbol)?, + operation: (::String | ::Symbol)?, + "operation" => (::String | ::Symbol)?, + input: (::Temporalio::Api::Common::V1::Payload | ::Temporalio::Api::Common::V1::Payload::init_map)?, + "input" => (::Temporalio::Api::Common::V1::Payload | ::Temporalio::Api::Common::V1::Payload::init_map)?, + schedule_to_close_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "schedule_to_close_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + nexus_header: ::Hash[::String | ::Symbol, ::String | ::Symbol]?, + "nexus_header" => ::Hash[::String | ::Symbol, ::String | ::Symbol]?, + cancellation_type: (::Temporalio::Internal::Bridge::Api::Nexus::NexusOperationCancellationType::names | ::Temporalio::Internal::Bridge::Api::Nexus::NexusOperationCancellationType::strings | ::Integer | ::Float)?, + "cancellation_type" => (::Temporalio::Internal::Bridge::Api::Nexus::NexusOperationCancellationType::names | ::Temporalio::Internal::Bridge::Api::Nexus::NexusOperationCancellationType::strings | ::Integer | ::Float)?, + schedule_to_start_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "schedule_to_start_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + start_to_close_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + "start_to_close_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("seq" name) -> ::Integer + | ("endpoint" name) -> ::String + | ("service" name) -> ::String + | ("operation" name) -> ::String + | ("input" name) -> ::Temporalio::Api::Common::V1::Payload? + | ("schedule_to_close_timeout" name) -> ::Google::Protobuf::Duration? + | ("nexus_header" name) -> (::Google::Protobuf::Map[::String, ::String]) + | ("cancellation_type" name) -> (::Temporalio::Internal::Bridge::Api::Nexus::NexusOperationCancellationType::names | ::Integer) + | ("schedule_to_start_timeout" name) -> ::Google::Protobuf::Duration? + | ("start_to_close_timeout" name) -> ::Google::Protobuf::Duration? + + def []=: + ("seq" name, (::Integer | ::Float) value) -> void + | ("endpoint" name, (::String | ::Symbol) value) -> void + | ("service" name, (::String | ::Symbol) value) -> void + | ("operation" name, (::String | ::Symbol) value) -> void + | ("input" name, ::Temporalio::Api::Common::V1::Payload? value) -> void + | ("schedule_to_close_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("nexus_header" name, (::Google::Protobuf::Map[::String, ::String]) value) -> void + | ("cancellation_type" name, (::Temporalio::Internal::Bridge::Api::Nexus::NexusOperationCancellationType::names | ::Temporalio::Internal::Bridge::Api::Nexus::NexusOperationCancellationType::strings | ::Integer | ::Float) value) -> void + | ("schedule_to_start_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + | ("start_to_close_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void + end + + # Request cancellation of a nexus operation started via `ScheduleNexusOperation` + class RequestCancelNexusOperation < ::Google::Protobuf::AbstractMessage + + # Lang's incremental sequence number as passed to `ScheduleNexusOperation` + attr_reader seq(): ::Integer + attr_writer seq(): ::Integer | ::Float + def clear_seq: () -> void + + type init_map = { + seq: (::Integer | ::Float)?, + "seq" => (::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("seq" name) -> ::Integer + + def []=: + ("seq" name, (::Integer | ::Float) value) -> void + end + + module ActivityCancellationType + + # Initiate a cancellation request and immediately report cancellation to the workflow. + TRY_CANCEL: 0 + + # Wait for activity cancellation completion. Note that activity must heartbeat to receive a + # cancellation notification. This can block the cancellation for a long time if activity + # doesn't heartbeat or chooses to ignore the cancellation request. + WAIT_CANCELLATION_COMPLETED: 1 + + # Do not request cancellation of the activity and immediately report cancellation to the + # workflow + ABANDON: 2 + + def self.lookup: (::Integer number) -> ::Symbol + + + def self.resolve: (::Symbol name) -> ::Integer + + + type names = :TRY_CANCEL | :WAIT_CANCELLATION_COMPLETED | :ABANDON + + type strings = "TRY_CANCEL" | "WAIT_CANCELLATION_COMPLETED" | "ABANDON" + + type numbers = 0 | 1 | 2 + end + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end diff --git a/temporalio/sig/temporalio/internal/bridge/api/workflow_completion/workflow_completion.rbs b/temporalio/sig/temporalio/internal/bridge/api/workflow_completion/workflow_completion.rbs new file mode 100644 index 00000000..341f30fd --- /dev/null +++ b/temporalio/sig/temporalio/internal/bridge/api/workflow_completion/workflow_completion.rbs @@ -0,0 +1,136 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# This RBS interface is provided for convenience, on a best-effort basis. +# The library is the definitive source for the API contract; if the RBS file +# and the library's behavior differ, the library behavior is authoritative. +# We welcome fixes to change the RBS file to match. +# source: temporal/sdk/core/workflow_completion/workflow_completion.proto + +module Temporalio + module Internal + module Bridge + module Api + module WorkflowCompletion + # Result of a single workflow activation, reported from lang to core + class WorkflowActivationCompletion < ::Google::Protobuf::AbstractMessage + + # The run id from the workflow activation you are completing + attr_reader run_id(): ::String + attr_writer run_id(): ::String | ::Symbol + def clear_run_id: () -> void + + attr_accessor successful(): ::Temporalio::Internal::Bridge::Api::WorkflowCompletion::Success? + def has_successful?: () -> bool + def clear_successful: () -> void + + attr_accessor failed(): ::Temporalio::Internal::Bridge::Api::WorkflowCompletion::Failure? + def has_failed?: () -> bool + def clear_failed: () -> void + + attr_reader status(): (::Temporalio::Internal::Bridge::Api::WorkflowCompletion::Success | ::Temporalio::Internal::Bridge::Api::WorkflowCompletion::Failure)? + def has_status?: () -> bool + def clear_status: () -> void + + type init_map = { + run_id: (::String | ::Symbol)?, + "run_id" => (::String | ::Symbol)?, + successful: (::Temporalio::Internal::Bridge::Api::WorkflowCompletion::Success | ::Temporalio::Internal::Bridge::Api::WorkflowCompletion::Success::init_map)?, + "successful" => (::Temporalio::Internal::Bridge::Api::WorkflowCompletion::Success | ::Temporalio::Internal::Bridge::Api::WorkflowCompletion::Success::init_map)?, + failed: (::Temporalio::Internal::Bridge::Api::WorkflowCompletion::Failure | ::Temporalio::Internal::Bridge::Api::WorkflowCompletion::Failure::init_map)?, + "failed" => (::Temporalio::Internal::Bridge::Api::WorkflowCompletion::Failure | ::Temporalio::Internal::Bridge::Api::WorkflowCompletion::Failure::init_map)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("run_id" name) -> ::String + | ("successful" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowCompletion::Success? + | ("failed" name) -> ::Temporalio::Internal::Bridge::Api::WorkflowCompletion::Failure? + + def []=: + ("run_id" name, (::String | ::Symbol) value) -> void + | ("successful" name, ::Temporalio::Internal::Bridge::Api::WorkflowCompletion::Success? value) -> void + | ("failed" name, ::Temporalio::Internal::Bridge::Api::WorkflowCompletion::Failure? value) -> void + end + + # Successful workflow activation with a list of commands generated by the workflow execution + class Success < ::Google::Protobuf::AbstractMessage + + # A list of commands to send back to the temporal server + attr_accessor commands(): ::Google::Protobuf::RepeatedField + def clear_commands: () -> void + + # Any internal flags which the lang SDK used in the processing of this activation + attr_accessor used_internal_flags(): ::Google::Protobuf::RepeatedField + def clear_used_internal_flags: () -> void + + # The versioning behavior this workflow is currently using + attr_reader versioning_behavior(): ::Temporalio::Api::Enums::V1::VersioningBehavior::names | ::Integer + attr_writer versioning_behavior(): ::Temporalio::Api::Enums::V1::VersioningBehavior::names | ::Temporalio::Api::Enums::V1::VersioningBehavior::strings | ::Integer | ::Float + attr_reader versioning_behavior_const(): ::Integer + def clear_versioning_behavior: () -> void + + type init_map = { + commands: ::Array[::Temporalio::Internal::Bridge::Api::WorkflowCommands::WorkflowCommand]?, + "commands" => ::Array[::Temporalio::Internal::Bridge::Api::WorkflowCommands::WorkflowCommand]?, + used_internal_flags: ::Array[::Integer | ::Float]?, + "used_internal_flags" => ::Array[::Integer | ::Float]?, + versioning_behavior: (::Temporalio::Api::Enums::V1::VersioningBehavior::names | ::Temporalio::Api::Enums::V1::VersioningBehavior::strings | ::Integer | ::Float)?, + "versioning_behavior" => (::Temporalio::Api::Enums::V1::VersioningBehavior::names | ::Temporalio::Api::Enums::V1::VersioningBehavior::strings | ::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("commands" name) -> ::Google::Protobuf::RepeatedField + | ("used_internal_flags" name) -> (::Google::Protobuf::RepeatedField) + | ("versioning_behavior" name) -> (::Temporalio::Api::Enums::V1::VersioningBehavior::names | ::Integer) + + def []=: + ("commands" name, ::Google::Protobuf::RepeatedField value) -> void + | ("used_internal_flags" name, (::Google::Protobuf::RepeatedField) value) -> void + | ("versioning_behavior" name, (::Temporalio::Api::Enums::V1::VersioningBehavior::names | ::Temporalio::Api::Enums::V1::VersioningBehavior::strings | ::Integer | ::Float) value) -> void + end + + # Failure to activate or execute a workflow + class Failure < ::Google::Protobuf::AbstractMessage + + attr_accessor failure(): ::Temporalio::Api::Failure::V1::Failure? + def has_failure?: () -> bool + def clear_failure: () -> void + + # Forces overriding the WFT failure cause + attr_reader force_cause(): ::Temporalio::Api::Enums::V1::WorkflowTaskFailedCause::names | ::Integer + attr_writer force_cause(): ::Temporalio::Api::Enums::V1::WorkflowTaskFailedCause::names | ::Temporalio::Api::Enums::V1::WorkflowTaskFailedCause::strings | ::Integer | ::Float + attr_reader force_cause_const(): ::Integer + def clear_force_cause: () -> void + + type init_map = { + failure: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + "failure" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?, + force_cause: (::Temporalio::Api::Enums::V1::WorkflowTaskFailedCause::names | ::Temporalio::Api::Enums::V1::WorkflowTaskFailedCause::strings | ::Integer | ::Float)?, + "force_cause" => (::Temporalio::Api::Enums::V1::WorkflowTaskFailedCause::names | ::Temporalio::Api::Enums::V1::WorkflowTaskFailedCause::strings | ::Integer | ::Float)?, + } + + def initialize: (?init_map initial_value) -> void + + def []: + ("failure" name) -> ::Temporalio::Api::Failure::V1::Failure? + | ("force_cause" name) -> (::Temporalio::Api::Enums::V1::WorkflowTaskFailedCause::names | ::Integer) + + def []=: + ("failure" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void + | ("force_cause" name, (::Temporalio::Api::Enums::V1::WorkflowTaskFailedCause::names | ::Temporalio::Api::Enums::V1::WorkflowTaskFailedCause::strings | ::Integer | ::Float) value) -> void + end + end + end + end + end +end + +module Google + module Protobuf + class DescriptorPool + def lookup: (::String name) -> ::Google::Protobuf::Descriptor + end + end +end