temporalio 1.2.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.yardopts +1 -0
- data/Cargo.lock +985 -773
- data/Cargo.toml +16 -11
- data/Gemfile +0 -1
- data/README.md +4 -0
- data/Rakefile +12 -13
- data/ext/Cargo.toml +7 -3
- data/lib/temporalio/api/activity/v1/message.rb +5 -1
- data/lib/temporalio/api/callback/v1/message.rb +26 -0
- data/lib/temporalio/api/cloud/account/v1/message.rb +4 -1
- data/lib/temporalio/api/cloud/auditlog/v1/message.rb +27 -0
- data/lib/temporalio/api/cloud/billing/v1/message.rb +30 -0
- data/lib/temporalio/api/cloud/cloudservice/v1/request_response.rb +23 -1
- data/lib/temporalio/api/cloud/cloudservice/v1/service.rb +2 -1
- data/lib/temporalio/api/cloud/namespace/v1/message.rb +16 -2
- data/lib/temporalio/api/command/v1/message.rb +1 -1
- data/lib/temporalio/api/common/v1/message.rb +5 -1
- data/lib/temporalio/api/compute/v1/config.rb +30 -0
- data/lib/temporalio/api/compute/v1/provider.rb +23 -0
- data/lib/temporalio/api/compute/v1/scaler.rb +23 -0
- data/lib/temporalio/api/deployment/v1/message.rb +3 -1
- data/lib/temporalio/api/enums/v1/deployment.rb +1 -1
- data/lib/temporalio/api/enums/v1/event_type.rb +1 -1
- data/lib/temporalio/api/enums/v1/nexus.rb +5 -1
- data/lib/temporalio/api/enums/v1/task_queue.rb +1 -1
- data/lib/temporalio/api/enums/v1/workflow.rb +1 -1
- data/lib/temporalio/api/errordetails/v1/message.rb +2 -1
- data/lib/temporalio/api/failure/v1/message.rb +1 -1
- data/lib/temporalio/api/history/v1/message.rb +3 -1
- data/lib/temporalio/api/namespace/v1/message.rb +1 -1
- data/lib/temporalio/api/nexus/v1/message.rb +9 -1
- data/lib/temporalio/api/nexusservices/workerservice/v1/request_response.rb +26 -0
- data/lib/temporalio/api/payload_visitor.rb +174 -4
- data/lib/temporalio/api/protoc_gen_openapiv2/options/annotations.rb +23 -0
- data/lib/temporalio/api/protoc_gen_openapiv2/options/openapiv2.rb +48 -0
- data/lib/temporalio/api/protometa/v1/annotations.rb +23 -0
- data/lib/temporalio/api/sdk/v1/external_storage.rb +21 -0
- data/lib/temporalio/api/taskqueue/v1/message.rb +2 -1
- data/lib/temporalio/api/worker/v1/message.rb +7 -1
- data/lib/temporalio/api/workflow/v1/message.rb +2 -1
- data/lib/temporalio/api/workflowservice/v1/request_response.rb +31 -1
- data/lib/temporalio/api/workflowservice/v1/service.rb +2 -1
- data/lib/temporalio/client/connection/cloud_service.rb +150 -0
- data/lib/temporalio/client/connection/workflow_service.rb +195 -0
- data/lib/temporalio/client.rb +1 -3
- data/lib/temporalio/common_enums.rb +29 -2
- data/lib/temporalio/contrib/open_telemetry.rb +59 -13
- data/lib/temporalio/converters/failure_converter.rb +30 -0
- data/lib/temporalio/converters/payload_converter/composite.rb +4 -2
- data/lib/temporalio/env_config.rb +1 -3
- data/lib/temporalio/error/failure.rb +66 -0
- data/lib/temporalio/internal/bridge/api/activity_task/activity_task.rb +1 -1
- data/lib/temporalio/internal/bridge/api/nexus/nexus.rb +1 -1
- data/lib/temporalio/internal/bridge/api/workflow_activation/workflow_activation.rb +1 -1
- data/lib/temporalio/internal/bridge/api/workflow_commands/workflow_commands.rb +1 -1
- data/lib/temporalio/internal/bridge/client.rb +5 -10
- data/lib/temporalio/internal/bridge/runtime.rb +6 -12
- data/lib/temporalio/internal/bridge/testing.rb +2 -4
- data/lib/temporalio/internal/bridge/worker.rb +8 -16
- data/lib/temporalio/internal/bridge.rb +2 -2
- data/lib/temporalio/internal/client/implementation.rb +1 -1
- data/lib/temporalio/internal/proto_utils.rb +7 -5
- data/lib/temporalio/internal/worker/workflow_instance/context.rb +16 -1
- data/lib/temporalio/internal/worker/workflow_instance/nexus_client.rb +45 -0
- data/lib/temporalio/internal/worker/workflow_instance/nexus_operation_handle.rb +51 -0
- data/lib/temporalio/internal/worker/workflow_instance/outbound_implementation.rb +71 -1
- data/lib/temporalio/internal/worker/workflow_instance.rb +20 -2
- data/lib/temporalio/search_attributes.rb +12 -2
- data/lib/temporalio/testing/workflow_environment.rb +40 -0
- data/lib/temporalio/version.rb +1 -1
- data/lib/temporalio/versioning_override.rb +0 -2
- data/lib/temporalio/worker/deployment_options.rb +0 -2
- data/lib/temporalio/worker/interceptor.rb +29 -0
- data/lib/temporalio/worker/workflow_executor/thread_pool.rb +1 -1
- data/lib/temporalio/worker/workflow_replayer.rb +1 -3
- data/lib/temporalio/worker.rb +9 -8
- data/lib/temporalio/worker_deployment_version.rb +0 -2
- data/lib/temporalio/workflow/definition.rb +0 -3
- data/lib/temporalio/workflow/info.rb +3 -6
- data/lib/temporalio/workflow/nexus_client.rb +93 -0
- data/lib/temporalio/workflow/nexus_operation_cancellation_type.rb +21 -0
- data/lib/temporalio/workflow/nexus_operation_handle.rb +37 -0
- data/lib/temporalio/workflow/update_info.rb +1 -2
- data/lib/temporalio/workflow.rb +34 -2
- metadata +18 -2
|
@@ -45,7 +45,7 @@ module Temporalio
|
|
|
45
45
|
# @param value [Google::Protobuf::Message] Message to visit.
|
|
46
46
|
def run(value)
|
|
47
47
|
return unless value.is_a?(Google::Protobuf::MessageExts)
|
|
48
|
-
method_name = method_name_from_proto_name(value.class.descriptor.name)
|
|
48
|
+
method_name = method_name_from_proto_name(value.class.descriptor.name) # steep:ignore NoMethod
|
|
49
49
|
send(method_name, value) if respond_to?(method_name, true)
|
|
50
50
|
nil
|
|
51
51
|
end
|
|
@@ -111,6 +111,12 @@ module Temporalio
|
|
|
111
111
|
@on_exit&.call(value)
|
|
112
112
|
end
|
|
113
113
|
|
|
114
|
+
def api_activity_v1_callback_info(value)
|
|
115
|
+
@on_enter&.call(value)
|
|
116
|
+
api_callback_v1_callback_info(value.info) if value.has_info?
|
|
117
|
+
@on_exit&.call(value)
|
|
118
|
+
end
|
|
119
|
+
|
|
114
120
|
def api_batch_v1_batch_operation_reset(value)
|
|
115
121
|
@on_enter&.call(value)
|
|
116
122
|
value.post_reset_operations.each { |v| api_workflow_v1_post_reset_operation(v) }
|
|
@@ -130,6 +136,12 @@ module Temporalio
|
|
|
130
136
|
@on_exit&.call(value)
|
|
131
137
|
end
|
|
132
138
|
|
|
139
|
+
def api_callback_v1_callback_info(value)
|
|
140
|
+
@on_enter&.call(value)
|
|
141
|
+
api_failure_v1_failure(value.last_attempt_failure) if value.has_last_attempt_failure?
|
|
142
|
+
@on_exit&.call(value)
|
|
143
|
+
end
|
|
144
|
+
|
|
133
145
|
def api_cloud_cloudservice_v1_add_namespace_region_response(value)
|
|
134
146
|
@on_enter&.call(value)
|
|
135
147
|
api_cloud_operation_v1_async_operation(value.async_operation) if value.has_async_operation?
|
|
@@ -142,12 +154,24 @@ module Temporalio
|
|
|
142
154
|
@on_exit&.call(value)
|
|
143
155
|
end
|
|
144
156
|
|
|
157
|
+
def api_cloud_cloudservice_v1_create_account_audit_log_sink_response(value)
|
|
158
|
+
@on_enter&.call(value)
|
|
159
|
+
api_cloud_operation_v1_async_operation(value.async_operation) if value.has_async_operation?
|
|
160
|
+
@on_exit&.call(value)
|
|
161
|
+
end
|
|
162
|
+
|
|
145
163
|
def api_cloud_cloudservice_v1_create_api_key_response(value)
|
|
146
164
|
@on_enter&.call(value)
|
|
147
165
|
api_cloud_operation_v1_async_operation(value.async_operation) if value.has_async_operation?
|
|
148
166
|
@on_exit&.call(value)
|
|
149
167
|
end
|
|
150
168
|
|
|
169
|
+
def api_cloud_cloudservice_v1_create_billing_report_response(value)
|
|
170
|
+
@on_enter&.call(value)
|
|
171
|
+
api_cloud_operation_v1_async_operation(value.async_operation) if value.has_async_operation?
|
|
172
|
+
@on_exit&.call(value)
|
|
173
|
+
end
|
|
174
|
+
|
|
151
175
|
def api_cloud_cloudservice_v1_create_connectivity_rule_response(value)
|
|
152
176
|
@on_enter&.call(value)
|
|
153
177
|
api_cloud_operation_v1_async_operation(value.async_operation) if value.has_async_operation?
|
|
@@ -196,6 +220,12 @@ module Temporalio
|
|
|
196
220
|
@on_exit&.call(value)
|
|
197
221
|
end
|
|
198
222
|
|
|
223
|
+
def api_cloud_cloudservice_v1_delete_account_audit_log_sink_response(value)
|
|
224
|
+
@on_enter&.call(value)
|
|
225
|
+
api_cloud_operation_v1_async_operation(value.async_operation) if value.has_async_operation?
|
|
226
|
+
@on_exit&.call(value)
|
|
227
|
+
end
|
|
228
|
+
|
|
199
229
|
def api_cloud_cloudservice_v1_delete_api_key_response(value)
|
|
200
230
|
@on_enter&.call(value)
|
|
201
231
|
api_cloud_operation_v1_async_operation(value.async_operation) if value.has_async_operation?
|
|
@@ -304,6 +334,12 @@ module Temporalio
|
|
|
304
334
|
@on_exit&.call(value)
|
|
305
335
|
end
|
|
306
336
|
|
|
337
|
+
def api_cloud_cloudservice_v1_update_account_audit_log_sink_response(value)
|
|
338
|
+
@on_enter&.call(value)
|
|
339
|
+
api_cloud_operation_v1_async_operation(value.async_operation) if value.has_async_operation?
|
|
340
|
+
@on_exit&.call(value)
|
|
341
|
+
end
|
|
342
|
+
|
|
307
343
|
def api_cloud_cloudservice_v1_update_account_response(value)
|
|
308
344
|
@on_enter&.call(value)
|
|
309
345
|
api_cloud_operation_v1_async_operation(value.async_operation) if value.has_async_operation?
|
|
@@ -502,6 +538,37 @@ module Temporalio
|
|
|
502
538
|
@on_exit&.call(value)
|
|
503
539
|
end
|
|
504
540
|
|
|
541
|
+
def api_compute_v1_compute_config(value)
|
|
542
|
+
@on_enter&.call(value)
|
|
543
|
+
value.scaling_groups.values.each { |v| api_compute_v1_compute_config_scaling_group(v) }
|
|
544
|
+
@on_exit&.call(value)
|
|
545
|
+
end
|
|
546
|
+
|
|
547
|
+
def api_compute_v1_compute_config_scaling_group(value)
|
|
548
|
+
@on_enter&.call(value)
|
|
549
|
+
api_compute_v1_compute_provider(value.provider) if value.has_provider?
|
|
550
|
+
api_compute_v1_compute_scaler(value.scaler) if value.has_scaler?
|
|
551
|
+
@on_exit&.call(value)
|
|
552
|
+
end
|
|
553
|
+
|
|
554
|
+
def api_compute_v1_compute_config_scaling_group_update(value)
|
|
555
|
+
@on_enter&.call(value)
|
|
556
|
+
api_compute_v1_compute_config_scaling_group(value.scaling_group) if value.has_scaling_group?
|
|
557
|
+
@on_exit&.call(value)
|
|
558
|
+
end
|
|
559
|
+
|
|
560
|
+
def api_compute_v1_compute_provider(value)
|
|
561
|
+
@on_enter&.call(value)
|
|
562
|
+
api_common_v1_payload(value.details) if value.has_details?
|
|
563
|
+
@on_exit&.call(value)
|
|
564
|
+
end
|
|
565
|
+
|
|
566
|
+
def api_compute_v1_compute_scaler(value)
|
|
567
|
+
@on_enter&.call(value)
|
|
568
|
+
api_common_v1_payload(value.details) if value.has_details?
|
|
569
|
+
@on_exit&.call(value)
|
|
570
|
+
end
|
|
571
|
+
|
|
505
572
|
def api_deployment_v1_deployment_info(value)
|
|
506
573
|
@on_enter&.call(value)
|
|
507
574
|
value.metadata.values.each { |v| api_common_v1_payload(v) }
|
|
@@ -523,6 +590,7 @@ module Temporalio
|
|
|
523
590
|
def api_deployment_v1_worker_deployment_version_info(value)
|
|
524
591
|
@on_enter&.call(value)
|
|
525
592
|
api_deployment_v1_version_metadata(value.metadata) if value.has_metadata?
|
|
593
|
+
api_compute_v1_compute_config(value.compute_config) if value.has_compute_config?
|
|
526
594
|
@on_exit&.call(value)
|
|
527
595
|
end
|
|
528
596
|
|
|
@@ -854,6 +922,27 @@ module Temporalio
|
|
|
854
922
|
@on_exit&.call(value)
|
|
855
923
|
end
|
|
856
924
|
|
|
925
|
+
def api_nexus_v1_nexus_operation_execution_cancellation_info(value)
|
|
926
|
+
@on_enter&.call(value)
|
|
927
|
+
api_failure_v1_failure(value.last_attempt_failure) if value.has_last_attempt_failure?
|
|
928
|
+
@on_exit&.call(value)
|
|
929
|
+
end
|
|
930
|
+
|
|
931
|
+
def api_nexus_v1_nexus_operation_execution_info(value)
|
|
932
|
+
@on_enter&.call(value)
|
|
933
|
+
api_failure_v1_failure(value.last_attempt_failure) if value.has_last_attempt_failure?
|
|
934
|
+
api_nexus_v1_nexus_operation_execution_cancellation_info(value.cancellation_info) if value.has_cancellation_info?
|
|
935
|
+
api_common_v1_search_attributes(value.search_attributes) if value.has_search_attributes?
|
|
936
|
+
api_sdk_v1_user_metadata(value.user_metadata) if value.has_user_metadata?
|
|
937
|
+
@on_exit&.call(value)
|
|
938
|
+
end
|
|
939
|
+
|
|
940
|
+
def api_nexus_v1_nexus_operation_execution_list_info(value)
|
|
941
|
+
@on_enter&.call(value)
|
|
942
|
+
api_common_v1_search_attributes(value.search_attributes) if value.has_search_attributes?
|
|
943
|
+
@on_exit&.call(value)
|
|
944
|
+
end
|
|
945
|
+
|
|
857
946
|
def api_nexus_v1_request(value)
|
|
858
947
|
@on_enter&.call(value)
|
|
859
948
|
api_nexus_v1_start_operation_request(value.start_operation) if value.has_start_operation?
|
|
@@ -875,6 +964,7 @@ module Temporalio
|
|
|
875
964
|
def api_nexus_v1_start_operation_response(value)
|
|
876
965
|
@on_enter&.call(value)
|
|
877
966
|
api_nexus_v1_start_operation_response_sync(value.sync_success) if value.has_sync_success?
|
|
967
|
+
api_failure_v1_failure(value.failure) if value.has_failure?
|
|
878
968
|
@on_exit&.call(value)
|
|
879
969
|
end
|
|
880
970
|
|
|
@@ -1060,6 +1150,30 @@ module Temporalio
|
|
|
1060
1150
|
@on_exit&.call(value)
|
|
1061
1151
|
end
|
|
1062
1152
|
|
|
1153
|
+
def api_workflowservice_v1_count_nexus_operation_executions_response(value)
|
|
1154
|
+
@on_enter&.call(value)
|
|
1155
|
+
value.groups.each { |v| api_workflowservice_v1_count_nexus_operation_executions_response_aggregation_group(v) }
|
|
1156
|
+
@on_exit&.call(value)
|
|
1157
|
+
end
|
|
1158
|
+
|
|
1159
|
+
def api_workflowservice_v1_count_nexus_operation_executions_response_aggregation_group(value)
|
|
1160
|
+
@on_enter&.call(value)
|
|
1161
|
+
api_common_v1_payload_repeated(value.group_values) unless value.group_values.empty?
|
|
1162
|
+
@on_exit&.call(value)
|
|
1163
|
+
end
|
|
1164
|
+
|
|
1165
|
+
def api_workflowservice_v1_count_schedules_response(value)
|
|
1166
|
+
@on_enter&.call(value)
|
|
1167
|
+
value.groups.each { |v| api_workflowservice_v1_count_schedules_response_aggregation_group(v) }
|
|
1168
|
+
@on_exit&.call(value)
|
|
1169
|
+
end
|
|
1170
|
+
|
|
1171
|
+
def api_workflowservice_v1_count_schedules_response_aggregation_group(value)
|
|
1172
|
+
@on_enter&.call(value)
|
|
1173
|
+
api_common_v1_payload_repeated(value.group_values) unless value.group_values.empty?
|
|
1174
|
+
@on_exit&.call(value)
|
|
1175
|
+
end
|
|
1176
|
+
|
|
1063
1177
|
def api_workflowservice_v1_count_workflow_executions_response(value)
|
|
1064
1178
|
@on_enter&.call(value)
|
|
1065
1179
|
value.groups.each { |v| api_workflowservice_v1_count_workflow_executions_response_aggregation_group(v) }
|
|
@@ -1080,11 +1194,18 @@ module Temporalio
|
|
|
1080
1194
|
@on_exit&.call(value)
|
|
1081
1195
|
end
|
|
1082
1196
|
|
|
1197
|
+
def api_workflowservice_v1_create_worker_deployment_version_request(value)
|
|
1198
|
+
@on_enter&.call(value)
|
|
1199
|
+
api_compute_v1_compute_config(value.compute_config) if value.has_compute_config?
|
|
1200
|
+
@on_exit&.call(value)
|
|
1201
|
+
end
|
|
1202
|
+
|
|
1083
1203
|
def api_workflowservice_v1_describe_activity_execution_response(value)
|
|
1084
1204
|
@on_enter&.call(value)
|
|
1085
1205
|
api_activity_v1_activity_execution_info(value.info) if value.has_info?
|
|
1086
1206
|
api_common_v1_payloads(value.input) if value.has_input?
|
|
1087
1207
|
api_activity_v1_activity_execution_outcome(value.outcome) if value.has_outcome?
|
|
1208
|
+
value.callbacks.each { |v| api_activity_v1_callback_info(v) }
|
|
1088
1209
|
@on_exit&.call(value)
|
|
1089
1210
|
end
|
|
1090
1211
|
|
|
@@ -1094,6 +1215,15 @@ module Temporalio
|
|
|
1094
1215
|
@on_exit&.call(value)
|
|
1095
1216
|
end
|
|
1096
1217
|
|
|
1218
|
+
def api_workflowservice_v1_describe_nexus_operation_execution_response(value)
|
|
1219
|
+
@on_enter&.call(value)
|
|
1220
|
+
api_nexus_v1_nexus_operation_execution_info(value.info) if value.has_info?
|
|
1221
|
+
api_common_v1_payload(value.input) if value.has_input?
|
|
1222
|
+
api_common_v1_payload(value.result) if value.has_result?
|
|
1223
|
+
api_failure_v1_failure(value.failure) if value.has_failure?
|
|
1224
|
+
@on_exit&.call(value)
|
|
1225
|
+
end
|
|
1226
|
+
|
|
1097
1227
|
def api_workflowservice_v1_describe_schedule_response(value)
|
|
1098
1228
|
@on_enter&.call(value)
|
|
1099
1229
|
api_schedule_v1_schedule(value.schedule) if value.has_schedule?
|
|
@@ -1186,6 +1316,12 @@ module Temporalio
|
|
|
1186
1316
|
@on_exit&.call(value)
|
|
1187
1317
|
end
|
|
1188
1318
|
|
|
1319
|
+
def api_workflowservice_v1_list_nexus_operation_executions_response(value)
|
|
1320
|
+
@on_enter&.call(value)
|
|
1321
|
+
value.operations.each { |v| api_nexus_v1_nexus_operation_execution_list_info(v) }
|
|
1322
|
+
@on_exit&.call(value)
|
|
1323
|
+
end
|
|
1324
|
+
|
|
1189
1325
|
def api_workflowservice_v1_list_open_workflow_executions_response(value)
|
|
1190
1326
|
@on_enter&.call(value)
|
|
1191
1327
|
value.executions.each { |v| api_workflow_v1_workflow_execution_info(v) }
|
|
@@ -1218,6 +1354,13 @@ module Temporalio
|
|
|
1218
1354
|
@on_exit&.call(value)
|
|
1219
1355
|
end
|
|
1220
1356
|
|
|
1357
|
+
def api_workflowservice_v1_poll_nexus_operation_execution_response(value)
|
|
1358
|
+
@on_enter&.call(value)
|
|
1359
|
+
api_common_v1_payload(value.result) if value.has_result?
|
|
1360
|
+
api_failure_v1_failure(value.failure) if value.has_failure?
|
|
1361
|
+
@on_exit&.call(value)
|
|
1362
|
+
end
|
|
1363
|
+
|
|
1221
1364
|
def api_workflowservice_v1_poll_nexus_task_queue_response(value)
|
|
1222
1365
|
@on_enter&.call(value)
|
|
1223
1366
|
api_nexus_v1_request(value.request) if value.has_request?
|
|
@@ -1325,6 +1468,12 @@ module Temporalio
|
|
|
1325
1468
|
@on_exit&.call(value)
|
|
1326
1469
|
end
|
|
1327
1470
|
|
|
1471
|
+
def api_workflowservice_v1_respond_nexus_task_failed_request(value)
|
|
1472
|
+
@on_enter&.call(value)
|
|
1473
|
+
api_failure_v1_failure(value.failure) if value.has_failure?
|
|
1474
|
+
@on_exit&.call(value)
|
|
1475
|
+
end
|
|
1476
|
+
|
|
1328
1477
|
def api_workflowservice_v1_respond_query_task_completed_request(value)
|
|
1329
1478
|
@on_enter&.call(value)
|
|
1330
1479
|
api_common_v1_payloads(value.query_result) if value.has_query_result?
|
|
@@ -1408,6 +1557,14 @@ module Temporalio
|
|
|
1408
1557
|
@on_exit&.call(value)
|
|
1409
1558
|
end
|
|
1410
1559
|
|
|
1560
|
+
def api_workflowservice_v1_start_nexus_operation_execution_request(value)
|
|
1561
|
+
@on_enter&.call(value)
|
|
1562
|
+
api_common_v1_payload(value.input) if value.has_input?
|
|
1563
|
+
api_common_v1_search_attributes(value.search_attributes) if value.has_search_attributes?
|
|
1564
|
+
api_sdk_v1_user_metadata(value.user_metadata) if value.has_user_metadata?
|
|
1565
|
+
@on_exit&.call(value)
|
|
1566
|
+
end
|
|
1567
|
+
|
|
1411
1568
|
def api_workflowservice_v1_start_workflow_execution_request(value)
|
|
1412
1569
|
@on_enter&.call(value)
|
|
1413
1570
|
api_common_v1_payloads(value.input) if value.has_input?
|
|
@@ -1436,6 +1593,13 @@ module Temporalio
|
|
|
1436
1593
|
@on_enter&.call(value)
|
|
1437
1594
|
api_schedule_v1_schedule(value.schedule) if value.has_schedule?
|
|
1438
1595
|
api_common_v1_search_attributes(value.search_attributes) if value.has_search_attributes?
|
|
1596
|
+
api_common_v1_memo(value.memo) if value.has_memo?
|
|
1597
|
+
@on_exit&.call(value)
|
|
1598
|
+
end
|
|
1599
|
+
|
|
1600
|
+
def api_workflowservice_v1_update_worker_deployment_version_compute_config_request(value)
|
|
1601
|
+
@on_enter&.call(value)
|
|
1602
|
+
value.compute_config_scaling_groups.values.each { |v| api_compute_v1_compute_config_scaling_group_update(v) }
|
|
1439
1603
|
@on_exit&.call(value)
|
|
1440
1604
|
end
|
|
1441
1605
|
|
|
@@ -1463,6 +1627,12 @@ module Temporalio
|
|
|
1463
1627
|
@on_exit&.call(value)
|
|
1464
1628
|
end
|
|
1465
1629
|
|
|
1630
|
+
def api_workflowservice_v1_validate_worker_deployment_version_compute_config_request(value)
|
|
1631
|
+
@on_enter&.call(value)
|
|
1632
|
+
value.compute_config_scaling_groups.values.each { |v| api_compute_v1_compute_config_scaling_group_update(v) }
|
|
1633
|
+
@on_exit&.call(value)
|
|
1634
|
+
end
|
|
1635
|
+
|
|
1466
1636
|
def coresdk_activity_result_activity_resolution(value)
|
|
1467
1637
|
@on_enter&.call(value)
|
|
1468
1638
|
coresdk_activity_result_success(value.completed) if value.has_completed?
|
|
@@ -1637,7 +1807,7 @@ module Temporalio
|
|
|
1637
1807
|
api_common_v1_payload_repeated(value.arguments) unless value.arguments.empty?
|
|
1638
1808
|
value.memo.values.each { |v| api_common_v1_payload(v) }
|
|
1639
1809
|
value.headers.values.each { |v| api_common_v1_payload(v) }
|
|
1640
|
-
value.search_attributes
|
|
1810
|
+
api_common_v1_search_attributes(value.search_attributes) if value.has_search_attributes?
|
|
1641
1811
|
@on_exit&.call(value)
|
|
1642
1812
|
end
|
|
1643
1813
|
|
|
@@ -1698,7 +1868,7 @@ module Temporalio
|
|
|
1698
1868
|
api_common_v1_payload_repeated(value.input) unless value.input.empty?
|
|
1699
1869
|
value.headers.values.each { |v| api_common_v1_payload(v) }
|
|
1700
1870
|
value.memo.values.each { |v| api_common_v1_payload(v) }
|
|
1701
|
-
value.search_attributes
|
|
1871
|
+
api_common_v1_search_attributes(value.search_attributes) if value.has_search_attributes?
|
|
1702
1872
|
@on_exit&.call(value)
|
|
1703
1873
|
end
|
|
1704
1874
|
|
|
@@ -1711,7 +1881,7 @@ module Temporalio
|
|
|
1711
1881
|
|
|
1712
1882
|
def coresdk_workflow_commands_upsert_workflow_search_attributes(value)
|
|
1713
1883
|
@on_enter&.call(value)
|
|
1714
|
-
value.search_attributes
|
|
1884
|
+
api_common_v1_search_attributes(value.search_attributes) if value.has_search_attributes?
|
|
1715
1885
|
@on_exit&.call(value)
|
|
1716
1886
|
end
|
|
1717
1887
|
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: protoc-gen-openapiv2/options/annotations.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'google/protobuf/descriptor_pb'
|
|
8
|
+
require 'temporalio/api/protoc_gen_openapiv2/options/openapiv2'
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
descriptor_data = "\n.protoc-gen-openapiv2/options/annotations.proto\x12)grpc.gateway.protoc_gen_openapiv2.options\x1a google/protobuf/descriptor.proto\x1a,protoc-gen-openapiv2/options/openapiv2.proto:l\n\x11openapiv2_swagger\x12\x1c.google.protobuf.FileOptions\x18\x92\x08 \x01(\x0b\x32\x32.grpc.gateway.protoc_gen_openapiv2.options.Swagger:r\n\x13openapiv2_operation\x12\x1e.google.protobuf.MethodOptions\x18\x92\x08 \x01(\x0b\x32\x34.grpc.gateway.protoc_gen_openapiv2.options.Operation:m\n\x10openapiv2_schema\x12\x1f.google.protobuf.MessageOptions\x18\x92\x08 \x01(\x0b\x32\x31.grpc.gateway.protoc_gen_openapiv2.options.Schema:l\n\x0eopenapiv2_enum\x12\x1c.google.protobuf.EnumOptions\x18\x92\x08 \x01(\x0b\x32\x35.grpc.gateway.protoc_gen_openapiv2.options.EnumSchema:g\n\ropenapiv2_tag\x12\x1f.google.protobuf.ServiceOptions\x18\x92\x08 \x01(\x0b\x32..grpc.gateway.protoc_gen_openapiv2.options.Tag:n\n\x0fopenapiv2_field\x12\x1d.google.protobuf.FieldOptions\x18\x92\x08 \x01(\x0b\x32\x35.grpc.gateway.protoc_gen_openapiv2.options.JSONSchemaBHZFgithub.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/optionsb\x06proto3"
|
|
12
|
+
|
|
13
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
14
|
+
pool.add_serialized_file(descriptor_data)
|
|
15
|
+
|
|
16
|
+
module Grpc
|
|
17
|
+
module Gateway
|
|
18
|
+
module ProtocGenOpenapiv2
|
|
19
|
+
module Options
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: protoc-gen-openapiv2/options/openapiv2.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'google/protobuf/struct_pb'
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
descriptor_data = "\n,protoc-gen-openapiv2/options/openapiv2.proto\x12)grpc.gateway.protoc_gen_openapiv2.options\x1a\x1cgoogle/protobuf/struct.proto\"\x95\x07\n\x07Swagger\x12\x0f\n\x07swagger\x18\x01 \x01(\t\x12=\n\x04info\x18\x02 \x01(\x0b\x32/.grpc.gateway.protoc_gen_openapiv2.options.Info\x12\x0c\n\x04host\x18\x03 \x01(\t\x12\x11\n\tbase_path\x18\x04 \x01(\t\x12\x42\n\x07schemes\x18\x05 \x03(\x0e\x32\x31.grpc.gateway.protoc_gen_openapiv2.options.Scheme\x12\x10\n\x08\x63onsumes\x18\x06 \x03(\t\x12\x10\n\x08produces\x18\x07 \x03(\t\x12T\n\tresponses\x18\n \x03(\x0b\x32\x41.grpc.gateway.protoc_gen_openapiv2.options.Swagger.ResponsesEntry\x12\\\n\x14security_definitions\x18\x0b \x01(\x0b\x32>.grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions\x12P\n\x08security\x18\x0c \x03(\x0b\x32>.grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement\x12<\n\x04tags\x18\r \x03(\x0b\x32..grpc.gateway.protoc_gen_openapiv2.options.Tag\x12W\n\rexternal_docs\x18\x0e \x01(\x0b\x32@.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation\x12V\n\nextensions\x18\x0f \x03(\x0b\x32\x42.grpc.gateway.protoc_gen_openapiv2.options.Swagger.ExtensionsEntry\x1a\x65\n\x0eResponsesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x42\n\x05value\x18\x02 \x01(\x0b\x32\x33.grpc.gateway.protoc_gen_openapiv2.options.Response:\x02\x38\x01\x1aI\n\x0f\x45xtensionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value:\x02\x38\x01J\x04\x08\x08\x10\tJ\x04\x08\t\x10\n\"\xb1\x06\n\tOperation\x12\x0c\n\x04tags\x18\x01 \x03(\t\x12\x0f\n\x07summary\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12W\n\rexternal_docs\x18\x04 \x01(\x0b\x32@.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation\x12\x14\n\x0coperation_id\x18\x05 \x01(\t\x12\x10\n\x08\x63onsumes\x18\x06 \x03(\t\x12\x10\n\x08produces\x18\x07 \x03(\t\x12V\n\tresponses\x18\t \x03(\x0b\x32\x43.grpc.gateway.protoc_gen_openapiv2.options.Operation.ResponsesEntry\x12\x42\n\x07schemes\x18\n \x03(\x0e\x32\x31.grpc.gateway.protoc_gen_openapiv2.options.Scheme\x12\x12\n\ndeprecated\x18\x0b \x01(\x08\x12P\n\x08security\x18\x0c \x03(\x0b\x32>.grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement\x12X\n\nextensions\x18\r \x03(\x0b\x32\x44.grpc.gateway.protoc_gen_openapiv2.options.Operation.ExtensionsEntry\x12I\n\nparameters\x18\x0e \x01(\x0b\x32\x35.grpc.gateway.protoc_gen_openapiv2.options.Parameters\x1a\x65\n\x0eResponsesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x42\n\x05value\x18\x02 \x01(\x0b\x32\x33.grpc.gateway.protoc_gen_openapiv2.options.Response:\x02\x38\x01\x1aI\n\x0f\x45xtensionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value:\x02\x38\x01J\x04\x08\x08\x10\t\"Y\n\nParameters\x12K\n\x07headers\x18\x01 \x03(\x0b\x32:.grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter\"\xf8\x01\n\x0fHeaderParameter\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12M\n\x04type\x18\x03 \x01(\x0e\x32?.grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter.Type\x12\x0e\n\x06\x66ormat\x18\x04 \x01(\t\x12\x10\n\x08required\x18\x05 \x01(\x08\"E\n\x04Type\x12\x0b\n\x07UNKNOWN\x10\x00\x12\n\n\x06STRING\x10\x01\x12\n\n\x06NUMBER\x10\x02\x12\x0b\n\x07INTEGER\x10\x03\x12\x0b\n\x07\x42OOLEAN\x10\x04J\x04\x08\x06\x10\x07J\x04\x08\x07\x10\x08\"\xab\x01\n\x06Header\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\t\x12\x0c\n\x04type\x18\x02 \x01(\t\x12\x0e\n\x06\x66ormat\x18\x03 \x01(\t\x12\x0f\n\x07\x64\x65\x66\x61ult\x18\x06 \x01(\t\x12\x0f\n\x07pattern\x18\r \x01(\tJ\x04\x08\x04\x10\x05J\x04\x08\x05\x10\x06J\x04\x08\x07\x10\x08J\x04\x08\x08\x10\tJ\x04\x08\t\x10\nJ\x04\x08\n\x10\x0bJ\x04\x08\x0b\x10\x0cJ\x04\x08\x0c\x10\rJ\x04\x08\x0e\x10\x0fJ\x04\x08\x0f\x10\x10J\x04\x08\x10\x10\x11J\x04\x08\x11\x10\x12J\x04\x08\x12\x10\x13\"\xc2\x04\n\x08Response\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\t\x12\x41\n\x06schema\x18\x02 \x01(\x0b\x32\x31.grpc.gateway.protoc_gen_openapiv2.options.Schema\x12Q\n\x07headers\x18\x03 \x03(\x0b\x32@.grpc.gateway.protoc_gen_openapiv2.options.Response.HeadersEntry\x12S\n\x08\x65xamples\x18\x04 \x03(\x0b\x32\x41.grpc.gateway.protoc_gen_openapiv2.options.Response.ExamplesEntry\x12W\n\nextensions\x18\x05 \x03(\x0b\x32\x43.grpc.gateway.protoc_gen_openapiv2.options.Response.ExtensionsEntry\x1a\x61\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12@\n\x05value\x18\x02 \x01(\x0b\x32\x31.grpc.gateway.protoc_gen_openapiv2.options.Header:\x02\x38\x01\x1a/\n\rExamplesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1aI\n\x0f\x45xtensionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value:\x02\x38\x01\"\xff\x02\n\x04Info\x12\r\n\x05title\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x18\n\x10terms_of_service\x18\x03 \x01(\t\x12\x43\n\x07\x63ontact\x18\x04 \x01(\x0b\x32\x32.grpc.gateway.protoc_gen_openapiv2.options.Contact\x12\x43\n\x07license\x18\x05 \x01(\x0b\x32\x32.grpc.gateway.protoc_gen_openapiv2.options.License\x12\x0f\n\x07version\x18\x06 \x01(\t\x12S\n\nextensions\x18\x07 \x03(\x0b\x32?.grpc.gateway.protoc_gen_openapiv2.options.Info.ExtensionsEntry\x1aI\n\x0f\x45xtensionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value:\x02\x38\x01\"3\n\x07\x43ontact\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0b\n\x03url\x18\x02 \x01(\t\x12\r\n\x05\x65mail\x18\x03 \x01(\t\"$\n\x07License\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0b\n\x03url\x18\x02 \x01(\t\"9\n\x15\x45xternalDocumentation\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\t\x12\x0b\n\x03url\x18\x02 \x01(\t\"\xee\x01\n\x06Schema\x12J\n\x0bjson_schema\x18\x01 \x01(\x0b\x32\x35.grpc.gateway.protoc_gen_openapiv2.options.JSONSchema\x12\x15\n\rdiscriminator\x18\x02 \x01(\t\x12\x11\n\tread_only\x18\x03 \x01(\x08\x12W\n\rexternal_docs\x18\x05 \x01(\x0b\x32@.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation\x12\x0f\n\x07\x65xample\x18\x06 \x01(\tJ\x04\x08\x04\x10\x05\"\x83\x03\n\nEnumSchema\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\t\x12\x0f\n\x07\x64\x65\x66\x61ult\x18\x02 \x01(\t\x12\r\n\x05title\x18\x03 \x01(\t\x12\x10\n\x08required\x18\x04 \x01(\x08\x12\x11\n\tread_only\x18\x05 \x01(\x08\x12W\n\rexternal_docs\x18\x06 \x01(\x0b\x32@.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation\x12\x0f\n\x07\x65xample\x18\x07 \x01(\t\x12\x0b\n\x03ref\x18\x08 \x01(\t\x12Y\n\nextensions\x18\t \x03(\x0b\x32\x45.grpc.gateway.protoc_gen_openapiv2.options.EnumSchema.ExtensionsEntry\x1aI\n\x0f\x45xtensionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value:\x02\x38\x01\"\xa2\x08\n\nJSONSchema\x12\x0b\n\x03ref\x18\x03 \x01(\t\x12\r\n\x05title\x18\x05 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x06 \x01(\t\x12\x0f\n\x07\x64\x65\x66\x61ult\x18\x07 \x01(\t\x12\x11\n\tread_only\x18\x08 \x01(\x08\x12\x0f\n\x07\x65xample\x18\t \x01(\t\x12\x13\n\x0bmultiple_of\x18\n \x01(\x01\x12\x0f\n\x07maximum\x18\x0b \x01(\x01\x12\x19\n\x11\x65xclusive_maximum\x18\x0c \x01(\x08\x12\x0f\n\x07minimum\x18\r \x01(\x01\x12\x19\n\x11\x65xclusive_minimum\x18\x0e \x01(\x08\x12\x12\n\nmax_length\x18\x0f \x01(\x04\x12\x12\n\nmin_length\x18\x10 \x01(\x04\x12\x0f\n\x07pattern\x18\x11 \x01(\t\x12\x11\n\tmax_items\x18\x14 \x01(\x04\x12\x11\n\tmin_items\x18\x15 \x01(\x04\x12\x14\n\x0cunique_items\x18\x16 \x01(\x08\x12\x16\n\x0emax_properties\x18\x18 \x01(\x04\x12\x16\n\x0emin_properties\x18\x19 \x01(\x04\x12\x10\n\x08required\x18\x1a \x03(\t\x12\r\n\x05\x61rray\x18\" \x03(\t\x12Y\n\x04type\x18# \x03(\x0e\x32K.grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes\x12\x0e\n\x06\x66ormat\x18$ \x01(\t\x12\x0c\n\x04\x65num\x18. \x03(\t\x12\x66\n\x13\x66ield_configuration\x18\xe9\x07 \x01(\x0b\x32H.grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration\x12Y\n\nextensions\x18\x30 \x03(\x0b\x32\x45.grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.ExtensionsEntry\x1a-\n\x12\x46ieldConfiguration\x12\x17\n\x0fpath_param_name\x18/ \x01(\t\x1aI\n\x0f\x45xtensionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value:\x02\x38\x01\"w\n\x15JSONSchemaSimpleTypes\x12\x0b\n\x07UNKNOWN\x10\x00\x12\t\n\x05\x41RRAY\x10\x01\x12\x0b\n\x07\x42OOLEAN\x10\x02\x12\x0b\n\x07INTEGER\x10\x03\x12\x08\n\x04NULL\x10\x04\x12\n\n\x06NUMBER\x10\x05\x12\n\n\x06OBJECT\x10\x06\x12\n\n\x06STRING\x10\x07J\x04\x08\x01\x10\x02J\x04\x08\x02\x10\x03J\x04\x08\x04\x10\x05J\x04\x08\x12\x10\x13J\x04\x08\x13\x10\x14J\x04\x08\x17\x10\x18J\x04\x08\x1b\x10\x1cJ\x04\x08\x1c\x10\x1dJ\x04\x08\x1d\x10\x1eJ\x04\x08\x1e\x10\"J\x04\x08%\x10*J\x04\x08*\x10+J\x04\x08+\x10.\"\xa0\x02\n\x03Tag\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12W\n\rexternal_docs\x18\x03 \x01(\x0b\x32@.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation\x12R\n\nextensions\x18\x04 \x03(\x0b\x32>.grpc.gateway.protoc_gen_openapiv2.options.Tag.ExtensionsEntry\x1aI\n\x0f\x45xtensionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value:\x02\x38\x01\"\xe1\x01\n\x13SecurityDefinitions\x12^\n\x08security\x18\x01 \x03(\x0b\x32L.grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions.SecurityEntry\x1aj\n\rSecurityEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12H\n\x05value\x18\x02 \x01(\x0b\x32\x39.grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme:\x02\x38\x01\"\xa0\x06\n\x0eSecurityScheme\x12L\n\x04type\x18\x01 \x01(\x0e\x32>.grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Type\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12H\n\x02in\x18\x04 \x01(\x0e\x32<.grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.In\x12L\n\x04\x66low\x18\x05 \x01(\x0e\x32>.grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Flow\x12\x19\n\x11\x61uthorization_url\x18\x06 \x01(\t\x12\x11\n\ttoken_url\x18\x07 \x01(\t\x12\x41\n\x06scopes\x18\x08 \x01(\x0b\x32\x31.grpc.gateway.protoc_gen_openapiv2.options.Scopes\x12]\n\nextensions\x18\t \x03(\x0b\x32I.grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.ExtensionsEntry\x1aI\n\x0f\x45xtensionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value:\x02\x38\x01\"K\n\x04Type\x12\x10\n\x0cTYPE_INVALID\x10\x00\x12\x0e\n\nTYPE_BASIC\x10\x01\x12\x10\n\x0cTYPE_API_KEY\x10\x02\x12\x0f\n\x0bTYPE_OAUTH2\x10\x03\"1\n\x02In\x12\x0e\n\nIN_INVALID\x10\x00\x12\x0c\n\x08IN_QUERY\x10\x01\x12\r\n\tIN_HEADER\x10\x02\"j\n\x04\x46low\x12\x10\n\x0c\x46LOW_INVALID\x10\x00\x12\x11\n\rFLOW_IMPLICIT\x10\x01\x12\x11\n\rFLOW_PASSWORD\x10\x02\x12\x14\n\x10\x46LOW_APPLICATION\x10\x03\x12\x14\n\x10\x46LOW_ACCESS_CODE\x10\x04\"\xcd\x02\n\x13SecurityRequirement\x12u\n\x14security_requirement\x18\x01 \x03(\x0b\x32W.grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementEntry\x1a)\n\x18SecurityRequirementValue\x12\r\n\x05scope\x18\x01 \x03(\t\x1a\x93\x01\n\x18SecurityRequirementEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x66\n\x05value\x18\x02 \x01(\x0b\x32W.grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue:\x02\x38\x01\"\x83\x01\n\x06Scopes\x12K\n\x05scope\x18\x01 \x03(\x0b\x32<.grpc.gateway.protoc_gen_openapiv2.options.Scopes.ScopeEntry\x1a,\n\nScopeEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01*;\n\x06Scheme\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x08\n\x04HTTP\x10\x01\x12\t\n\x05HTTPS\x10\x02\x12\x06\n\x02WS\x10\x03\x12\x07\n\x03WSS\x10\x04\x42HZFgithub.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/optionsb\x06proto3"
|
|
11
|
+
|
|
12
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
|
14
|
+
|
|
15
|
+
module Grpc
|
|
16
|
+
module Gateway
|
|
17
|
+
module ProtocGenOpenapiv2
|
|
18
|
+
module Options
|
|
19
|
+
Swagger = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.Swagger").msgclass
|
|
20
|
+
Operation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.Operation").msgclass
|
|
21
|
+
Parameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.Parameters").msgclass
|
|
22
|
+
HeaderParameter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter").msgclass
|
|
23
|
+
HeaderParameter::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter.Type").enummodule
|
|
24
|
+
Header = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.Header").msgclass
|
|
25
|
+
Response = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.Response").msgclass
|
|
26
|
+
Info = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.Info").msgclass
|
|
27
|
+
Contact = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.Contact").msgclass
|
|
28
|
+
License = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.License").msgclass
|
|
29
|
+
ExternalDocumentation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation").msgclass
|
|
30
|
+
Schema = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.Schema").msgclass
|
|
31
|
+
EnumSchema = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.EnumSchema").msgclass
|
|
32
|
+
JSONSchema = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.JSONSchema").msgclass
|
|
33
|
+
JSONSchema::FieldConfiguration = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration").msgclass
|
|
34
|
+
JSONSchema::JSONSchemaSimpleTypes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes").enummodule
|
|
35
|
+
Tag = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.Tag").msgclass
|
|
36
|
+
SecurityDefinitions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions").msgclass
|
|
37
|
+
SecurityScheme = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme").msgclass
|
|
38
|
+
SecurityScheme::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Type").enummodule
|
|
39
|
+
SecurityScheme::In = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.In").enummodule
|
|
40
|
+
SecurityScheme::Flow = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Flow").enummodule
|
|
41
|
+
SecurityRequirement = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement").msgclass
|
|
42
|
+
SecurityRequirement::SecurityRequirementValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue").msgclass
|
|
43
|
+
Scopes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.Scopes").msgclass
|
|
44
|
+
Scheme = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.Scheme").enummodule
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: temporal/api/protometa/v1/annotations.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'google/protobuf/descriptor_pb'
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
descriptor_data = "\n+temporal/api/protometa/v1/annotations.proto\x12\x19temporal.api.protometa.v1\x1a google/protobuf/descriptor.proto\"8\n\x17RequestHeaderAnnotation\x12\x0e\n\x06header\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:m\n\x0erequest_header\x12\x1e.google.protobuf.MethodOptions\x18\xd1\xc3\xb9\x03 \x03(\x0b\x32\x32.temporal.api.protometa.v1.RequestHeaderAnnotationB\x9c\x01\n\x1cio.temporal.api.protometa.v1B\x10\x41nnotationsProtoP\x01Z)go.temporal.io/api/protometa/v1;protometa\xaa\x02\x1bTemporalio.Api.Protometa.V1\xea\x02\x1eTemporalio::Api::Protometa::V1b\x06proto3"
|
|
11
|
+
|
|
12
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
|
14
|
+
|
|
15
|
+
module Temporalio
|
|
16
|
+
module Api
|
|
17
|
+
module Protometa
|
|
18
|
+
module V1
|
|
19
|
+
RequestHeaderAnnotation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.protometa.v1.RequestHeaderAnnotation").msgclass
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: temporal/api/sdk/v1/external_storage.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
descriptor_data = "\n*temporal/api/sdk/v1/external_storage.proto\x12\x13temporal.api.sdk.v1\"\xb3\x01\n\x18\x45xternalStorageReference\x12\x13\n\x0b\x64river_name\x18\x01 \x01(\t\x12P\n\nclaim_data\x18\x02 \x03(\x0b\x32<.temporal.api.sdk.v1.ExternalStorageReference.ClaimDataEntry\x1a\x30\n\x0e\x43laimDataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x82\x01\n\x16io.temporal.api.sdk.v1B\x14\x45xternalStorageProtoP\x01Z\x1dgo.temporal.io/api/sdk/v1;sdk\xaa\x02\x15Temporalio.Api.Sdk.V1\xea\x02\x18Temporalio::Api::Sdk::V1b\x06proto3"
|
|
9
|
+
|
|
10
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
11
|
+
pool.add_serialized_file(descriptor_data)
|
|
12
|
+
|
|
13
|
+
module Temporalio
|
|
14
|
+
module Api
|
|
15
|
+
module Sdk
|
|
16
|
+
module V1
|
|
17
|
+
ExternalStorageReference = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.sdk.v1.ExternalStorageReference").msgclass
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -12,7 +12,7 @@ require 'temporalio/api/common/v1/message'
|
|
|
12
12
|
require 'temporalio/api/deployment/v1/message'
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
descriptor_data = "\n\'temporal/api/taskqueue/v1/message.proto\x12\x19temporal.api.taskqueue.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a&temporal/api/enums/v1/task_queue.proto\x1a$temporal/api/common/v1/message.proto\x1a(temporal/api/deployment/v1/message.proto\"b\n\tTaskQueue\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x32\n\x04kind\x18\x02 \x01(\x0e\x32$.temporal.api.enums.v1.TaskQueueKind\x12\x13\n\x0bnormal_name\x18\x03 \x01(\t\"O\n\x11TaskQueueMetadata\x12:\n\x14max_tasks_per_second\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\"\xda\x02\n\x17TaskQueueVersioningInfo\x12W\n\x1a\x63urrent_deployment_version\x18\x07 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion\x12\x1b\n\x0f\x63urrent_version\x18\x01 \x01(\tB\x02\x18\x01\x12W\n\x1aramping_deployment_version\x18\t \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion\x12\x1b\n\x0framping_version\x18\x02 \x01(\tB\x02\x18\x01\x12\"\n\x1aramping_version_percentage\x18\x03 \x01(\x02\x12/\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"W\n\x19TaskQueueVersionSelection\x12\x11\n\tbuild_ids\x18\x01 \x03(\t\x12\x13\n\x0bunversioned\x18\x02 \x01(\x08\x12\x12\n\nall_active\x18\x03 \x01(\x08\"\x95\x02\n\x14TaskQueueVersionInfo\x12R\n\ntypes_info\x18\x01 \x03(\x0b\x32>.temporal.api.taskqueue.v1.TaskQueueVersionInfo.TypesInfoEntry\x12I\n\x11task_reachability\x18\x02 \x01(\x0e\x32..temporal.api.enums.v1.BuildIdTaskReachability\x1a^\n\x0eTypesInfoEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12;\n\x05value\x18\x02 \x01(\x0b\x32,.temporal.api.taskqueue.v1.TaskQueueTypeInfo:\x02\x38\x01\"\x85\x01\n\x11TaskQueueTypeInfo\x12\x36\n\x07pollers\x18\x01 \x03(\x0b\x32%.temporal.api.taskqueue.v1.PollerInfo\x12\x38\n\x05stats\x18\x02 \x01(\x0b\x32).temporal.api.taskqueue.v1.TaskQueueStats\"\xa4\x01\n\x0eTaskQueueStats\x12!\n\x19\x61pproximate_backlog_count\x18\x01 \x01(\x03\x12:\n\x17\x61pproximate_backlog_age\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x16\n\x0etasks_add_rate\x18\x03 \x01(\x02\x12\x1b\n\x13tasks_dispatch_rate\x18\x04 \x01(\x02\"\xac\x01\n\x0fTaskQueueStatus\x12\x1a\n\x12\x62\x61\x63klog_count_hint\x18\x01 \x01(\x03\x12\x12\n\nread_level\x18\x02 \x01(\x03\x12\x11\n\tack_level\x18\x03 \x01(\x03\x12\x17\n\x0frate_per_second\x18\x04 \x01(\x01\x12=\n\rtask_id_block\x18\x05 \x01(\x0b\x32&.temporal.api.taskqueue.v1.TaskIdBlock\"/\n\x0bTaskIdBlock\x12\x10\n\x08start_id\x18\x01 \x01(\x03\x12\x0e\n\x06\x65nd_id\x18\x02 \x01(\x03\"B\n\x1aTaskQueuePartitionMetadata\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x17\n\x0fowner_host_name\x18\x02 \x01(\t\"\x9a\x02\n\nPollerInfo\x12\x34\n\x10last_access_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x17\n\x0frate_per_second\x18\x03 \x01(\x01\x12Z\n\x1bworker_version_capabilities\x18\x04 \x01(\x0b\x32\x31.temporal.api.common.v1.WorkerVersionCapabilitiesB\x02\x18\x01\x12O\n\x12\x64\x65ployment_options\x18\x05 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentOptions\"\x9a\x01\n\x19StickyExecutionAttributes\x12?\n\x11worker_task_queue\x18\x01 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12<\n\x19schedule_to_start_timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\")\n\x14\x43ompatibleVersionSet\x12\x11\n\tbuild_ids\x18\x01 \x03(\t\"j\n\x15TaskQueueReachability\x12\x12\n\ntask_queue\x18\x01 \x01(\t\x12=\n\x0creachability\x18\x02 \x03(\x0e\x32\'.temporal.api.enums.v1.TaskReachability\"z\n\x13\x42uildIdReachability\x12\x10\n\x08\x62uild_id\x18\x01 \x01(\t\x12Q\n\x17task_queue_reachability\x18\x02 \x03(\x0b\x32\x30.temporal.api.taskqueue.v1.TaskQueueReachability\"+\n\x10RampByPercentage\x12\x17\n\x0framp_percentage\x18\x01 \x01(\x02\"\x80\x01\n\x15\x42uildIdAssignmentRule\x12\x17\n\x0ftarget_build_id\x18\x01 \x01(\t\x12\x46\n\x0fpercentage_ramp\x18\x03 \x01(\x0b\x32+.temporal.api.taskqueue.v1.RampByPercentageH\x00\x42\x06\n\x04ramp\"Q\n\x1d\x43ompatibleBuildIdRedirectRule\x12\x17\n\x0fsource_build_id\x18\x01 \x01(\t\x12\x17\n\x0ftarget_build_id\x18\x02 \x01(\t\"\x93\x01\n TimestampedBuildIdAssignmentRule\x12>\n\x04rule\x18\x01 \x01(\x0b\x32\x30.temporal.api.taskqueue.v1.BuildIdAssignmentRule\x12/\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xa3\x01\n(TimestampedCompatibleBuildIdRedirectRule\x12\x46\n\x04rule\x18\x01 \x01(\x0b\x32\x38.temporal.api.taskqueue.v1.CompatibleBuildIdRedirectRule\x12/\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\">\n\x15PollerScalingDecision\x12%\n\x1dpoll_request_delta_suggestion\x18\x01 \x01(\x05\"(\n\tRateLimit\x12\x1b\n\x13requests_per_second\x18\x01 \x01(\x02\"j\n\x0e\x43onfigMetadata\x12\x0e\n\x06reason\x18\x01 \x01(\t\x12\x17\n\x0fupdate_identity\x18\x02 \x01(\t\x12/\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x88\x01\n\x0fRateLimitConfig\x12\x38\n\nrate_limit\x18\x01 \x01(\x0b\x32$.temporal.api.taskqueue.v1.RateLimit\x12;\n\x08metadata\x18\x02 \x01(\x0b\x32).temporal.api.taskqueue.v1.ConfigMetadata\"\xd9\x02\n\x0fTaskQueueConfig\x12\x44\n\x10queue_rate_limit\x18\x01 \x01(\x0b\x32*.temporal.api.taskqueue.v1.RateLimitConfig\x12T\n fairness_keys_rate_limit_default\x18\x02 \x01(\x0b\x32*.temporal.api.taskqueue.v1.RateLimitConfig\x12j\n\x19\x66\x61irness_weight_overrides\x18\x03 \x03(\x0b\x32G.temporal.api.taskqueue.v1.TaskQueueConfig.FairnessWeightOverridesEntry\x1a>\n\x1c\x46\x61irnessWeightOverridesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x02:\x02\x38\x01\x42\x98\x01\n\x1cio.temporal.api.taskqueue.v1B\x0cMessageProtoP\x01Z)go.temporal.io/api/taskqueue/v1;taskqueue\xaa\x02\x1bTemporalio.Api.TaskQueue.V1\xea\x02\x1eTemporalio::Api::TaskQueue::V1b\x06proto3"
|
|
15
|
+
descriptor_data = "\n\'temporal/api/taskqueue/v1/message.proto\x12\x19temporal.api.taskqueue.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a&temporal/api/enums/v1/task_queue.proto\x1a$temporal/api/common/v1/message.proto\x1a(temporal/api/deployment/v1/message.proto\"b\n\tTaskQueue\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x32\n\x04kind\x18\x02 \x01(\x0e\x32$.temporal.api.enums.v1.TaskQueueKind\x12\x13\n\x0bnormal_name\x18\x03 \x01(\t\"O\n\x11TaskQueueMetadata\x12:\n\x14max_tasks_per_second\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\"\xda\x02\n\x17TaskQueueVersioningInfo\x12W\n\x1a\x63urrent_deployment_version\x18\x07 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion\x12\x1b\n\x0f\x63urrent_version\x18\x01 \x01(\tB\x02\x18\x01\x12W\n\x1aramping_deployment_version\x18\t \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion\x12\x1b\n\x0framping_version\x18\x02 \x01(\tB\x02\x18\x01\x12\"\n\x1aramping_version_percentage\x18\x03 \x01(\x02\x12/\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"W\n\x19TaskQueueVersionSelection\x12\x11\n\tbuild_ids\x18\x01 \x03(\t\x12\x13\n\x0bunversioned\x18\x02 \x01(\x08\x12\x12\n\nall_active\x18\x03 \x01(\x08\"\x95\x02\n\x14TaskQueueVersionInfo\x12R\n\ntypes_info\x18\x01 \x03(\x0b\x32>.temporal.api.taskqueue.v1.TaskQueueVersionInfo.TypesInfoEntry\x12I\n\x11task_reachability\x18\x02 \x01(\x0e\x32..temporal.api.enums.v1.BuildIdTaskReachability\x1a^\n\x0eTypesInfoEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12;\n\x05value\x18\x02 \x01(\x0b\x32,.temporal.api.taskqueue.v1.TaskQueueTypeInfo:\x02\x38\x01\"\x85\x01\n\x11TaskQueueTypeInfo\x12\x36\n\x07pollers\x18\x01 \x03(\x0b\x32%.temporal.api.taskqueue.v1.PollerInfo\x12\x38\n\x05stats\x18\x02 \x01(\x0b\x32).temporal.api.taskqueue.v1.TaskQueueStats\"\xa4\x01\n\x0eTaskQueueStats\x12!\n\x19\x61pproximate_backlog_count\x18\x01 \x01(\x03\x12:\n\x17\x61pproximate_backlog_age\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x16\n\x0etasks_add_rate\x18\x03 \x01(\x02\x12\x1b\n\x13tasks_dispatch_rate\x18\x04 \x01(\x02\"\xac\x01\n\x0fTaskQueueStatus\x12\x1a\n\x12\x62\x61\x63klog_count_hint\x18\x01 \x01(\x03\x12\x12\n\nread_level\x18\x02 \x01(\x03\x12\x11\n\tack_level\x18\x03 \x01(\x03\x12\x17\n\x0frate_per_second\x18\x04 \x01(\x01\x12=\n\rtask_id_block\x18\x05 \x01(\x0b\x32&.temporal.api.taskqueue.v1.TaskIdBlock\"/\n\x0bTaskIdBlock\x12\x10\n\x08start_id\x18\x01 \x01(\x03\x12\x0e\n\x06\x65nd_id\x18\x02 \x01(\x03\"B\n\x1aTaskQueuePartitionMetadata\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x17\n\x0fowner_host_name\x18\x02 \x01(\t\"\x9a\x02\n\nPollerInfo\x12\x34\n\x10last_access_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x17\n\x0frate_per_second\x18\x03 \x01(\x01\x12Z\n\x1bworker_version_capabilities\x18\x04 \x01(\x0b\x32\x31.temporal.api.common.v1.WorkerVersionCapabilitiesB\x02\x18\x01\x12O\n\x12\x64\x65ployment_options\x18\x05 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentOptions\"\x9a\x01\n\x19StickyExecutionAttributes\x12?\n\x11worker_task_queue\x18\x01 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12<\n\x19schedule_to_start_timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\")\n\x14\x43ompatibleVersionSet\x12\x11\n\tbuild_ids\x18\x01 \x03(\t\"j\n\x15TaskQueueReachability\x12\x12\n\ntask_queue\x18\x01 \x01(\t\x12=\n\x0creachability\x18\x02 \x03(\x0e\x32\'.temporal.api.enums.v1.TaskReachability\"z\n\x13\x42uildIdReachability\x12\x10\n\x08\x62uild_id\x18\x01 \x01(\t\x12Q\n\x17task_queue_reachability\x18\x02 \x03(\x0b\x32\x30.temporal.api.taskqueue.v1.TaskQueueReachability\"+\n\x10RampByPercentage\x12\x17\n\x0framp_percentage\x18\x01 \x01(\x02\"\x80\x01\n\x15\x42uildIdAssignmentRule\x12\x17\n\x0ftarget_build_id\x18\x01 \x01(\t\x12\x46\n\x0fpercentage_ramp\x18\x03 \x01(\x0b\x32+.temporal.api.taskqueue.v1.RampByPercentageH\x00\x42\x06\n\x04ramp\"Q\n\x1d\x43ompatibleBuildIdRedirectRule\x12\x17\n\x0fsource_build_id\x18\x01 \x01(\t\x12\x17\n\x0ftarget_build_id\x18\x02 \x01(\t\"\x93\x01\n TimestampedBuildIdAssignmentRule\x12>\n\x04rule\x18\x01 \x01(\x0b\x32\x30.temporal.api.taskqueue.v1.BuildIdAssignmentRule\x12/\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xa3\x01\n(TimestampedCompatibleBuildIdRedirectRule\x12\x46\n\x04rule\x18\x01 \x01(\x0b\x32\x38.temporal.api.taskqueue.v1.CompatibleBuildIdRedirectRule\x12/\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"-\n\x0fPollerGroupInfo\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0e\n\x06weight\x18\x02 \x01(\x02\">\n\x15PollerScalingDecision\x12%\n\x1dpoll_request_delta_suggestion\x18\x01 \x01(\x05\"(\n\tRateLimit\x12\x1b\n\x13requests_per_second\x18\x01 \x01(\x02\"j\n\x0e\x43onfigMetadata\x12\x0e\n\x06reason\x18\x01 \x01(\t\x12\x17\n\x0fupdate_identity\x18\x02 \x01(\t\x12/\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x88\x01\n\x0fRateLimitConfig\x12\x38\n\nrate_limit\x18\x01 \x01(\x0b\x32$.temporal.api.taskqueue.v1.RateLimit\x12;\n\x08metadata\x18\x02 \x01(\x0b\x32).temporal.api.taskqueue.v1.ConfigMetadata\"\xd9\x02\n\x0fTaskQueueConfig\x12\x44\n\x10queue_rate_limit\x18\x01 \x01(\x0b\x32*.temporal.api.taskqueue.v1.RateLimitConfig\x12T\n fairness_keys_rate_limit_default\x18\x02 \x01(\x0b\x32*.temporal.api.taskqueue.v1.RateLimitConfig\x12j\n\x19\x66\x61irness_weight_overrides\x18\x03 \x03(\x0b\x32G.temporal.api.taskqueue.v1.TaskQueueConfig.FairnessWeightOverridesEntry\x1a>\n\x1c\x46\x61irnessWeightOverridesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x02:\x02\x38\x01\x42\x98\x01\n\x1cio.temporal.api.taskqueue.v1B\x0cMessageProtoP\x01Z)go.temporal.io/api/taskqueue/v1;taskqueue\xaa\x02\x1bTemporalio.Api.TaskQueue.V1\xea\x02\x1eTemporalio::Api::TaskQueue::V1b\x06proto3"
|
|
16
16
|
|
|
17
17
|
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
18
18
|
pool.add_serialized_file(descriptor_data)
|
|
@@ -41,6 +41,7 @@ module Temporalio
|
|
|
41
41
|
CompatibleBuildIdRedirectRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.taskqueue.v1.CompatibleBuildIdRedirectRule").msgclass
|
|
42
42
|
TimestampedBuildIdAssignmentRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.taskqueue.v1.TimestampedBuildIdAssignmentRule").msgclass
|
|
43
43
|
TimestampedCompatibleBuildIdRedirectRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.taskqueue.v1.TimestampedCompatibleBuildIdRedirectRule").msgclass
|
|
44
|
+
PollerGroupInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.taskqueue.v1.PollerGroupInfo").msgclass
|
|
44
45
|
PollerScalingDecision = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.taskqueue.v1.PollerScalingDecision").msgclass
|
|
45
46
|
RateLimit = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.taskqueue.v1.RateLimit").msgclass
|
|
46
47
|
ConfigMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.taskqueue.v1.ConfigMetadata").msgclass
|
|
@@ -10,7 +10,7 @@ require 'temporalio/api/deployment/v1/message'
|
|
|
10
10
|
require 'temporalio/api/enums/v1/common'
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
descriptor_data = "\n$temporal/api/worker/v1/message.proto\x12\x16temporal.api.worker.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a(temporal/api/deployment/v1/message.proto\x1a\"temporal/api/enums/v1/common.proto\"\x82\x01\n\x10WorkerPollerInfo\x12\x17\n\x0f\x63urrent_pollers\x18\x01 \x01(\x05\x12=\n\x19last_successful_poll_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x16\n\x0eis_autoscaling\x18\x03 \x01(\x08\"\xf1\x01\n\x0fWorkerSlotsInfo\x12\x1f\n\x17\x63urrent_available_slots\x18\x01 \x01(\x05\x12\x1a\n\x12\x63urrent_used_slots\x18\x02 \x01(\x05\x12\x1a\n\x12slot_supplier_kind\x18\x03 \x01(\t\x12\x1d\n\x15total_processed_tasks\x18\x04 \x01(\x05\x12\x1a\n\x12total_failed_tasks\x18\x05 \x01(\x05\x12%\n\x1dlast_interval_processed_tasks\x18\x06 \x01(\x05\x12#\n\x1blast_interval_failure_tasks\x18\x07 \x01(\x05\"\x94\x01\n\x0eWorkerHostInfo\x12\x11\n\thost_name\x18\x01 \x01(\t\x12\x1b\n\x13worker_grouping_key\x18\x05 \x01(\t\x12\x12\n\nprocess_id\x18\x02 \x01(\t\x12\x1e\n\x16\x63urrent_host_cpu_usage\x18\x03 \x01(\x02\x12\x1e\n\x16\x63urrent_host_mem_usage\x18\x04 \x01(\x02\"\
|
|
13
|
+
descriptor_data = "\n$temporal/api/worker/v1/message.proto\x12\x16temporal.api.worker.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a(temporal/api/deployment/v1/message.proto\x1a\"temporal/api/enums/v1/common.proto\"\x82\x01\n\x10WorkerPollerInfo\x12\x17\n\x0f\x63urrent_pollers\x18\x01 \x01(\x05\x12=\n\x19last_successful_poll_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x16\n\x0eis_autoscaling\x18\x03 \x01(\x08\"\xf1\x01\n\x0fWorkerSlotsInfo\x12\x1f\n\x17\x63urrent_available_slots\x18\x01 \x01(\x05\x12\x1a\n\x12\x63urrent_used_slots\x18\x02 \x01(\x05\x12\x1a\n\x12slot_supplier_kind\x18\x03 \x01(\t\x12\x1d\n\x15total_processed_tasks\x18\x04 \x01(\x05\x12\x1a\n\x12total_failed_tasks\x18\x05 \x01(\x05\x12%\n\x1dlast_interval_processed_tasks\x18\x06 \x01(\x05\x12#\n\x1blast_interval_failure_tasks\x18\x07 \x01(\x05\"\x94\x01\n\x0eWorkerHostInfo\x12\x11\n\thost_name\x18\x01 \x01(\t\x12\x1b\n\x13worker_grouping_key\x18\x05 \x01(\t\x12\x12\n\nprocess_id\x18\x02 \x01(\t\x12\x1e\n\x16\x63urrent_host_cpu_usage\x18\x03 \x01(\x02\x12\x1e\n\x16\x63urrent_host_mem_usage\x18\x04 \x01(\x02\"\x8b\n\n\x0fWorkerHeartbeat\x12\x1b\n\x13worker_instance_key\x18\x01 \x01(\t\x12\x17\n\x0fworker_identity\x18\x02 \x01(\t\x12\x39\n\thost_info\x18\x03 \x01(\x0b\x32&.temporal.api.worker.v1.WorkerHostInfo\x12\x12\n\ntask_queue\x18\x04 \x01(\t\x12O\n\x12\x64\x65ployment_version\x18\x05 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion\x12\x10\n\x08sdk_name\x18\x06 \x01(\t\x12\x13\n\x0bsdk_version\x18\x07 \x01(\t\x12\x33\n\x06status\x18\x08 \x01(\x0e\x32#.temporal.api.enums.v1.WorkerStatus\x12.\n\nstart_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x32\n\x0eheartbeat_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12?\n\x1c\x65lapsed_since_last_heartbeat\x18\x0b \x01(\x0b\x32\x19.google.protobuf.Duration\x12I\n\x18workflow_task_slots_info\x18\x0c \x01(\x0b\x32\'.temporal.api.worker.v1.WorkerSlotsInfo\x12I\n\x18\x61\x63tivity_task_slots_info\x18\r \x01(\x0b\x32\'.temporal.api.worker.v1.WorkerSlotsInfo\x12\x46\n\x15nexus_task_slots_info\x18\x0e \x01(\x0b\x32\'.temporal.api.worker.v1.WorkerSlotsInfo\x12J\n\x19local_activity_slots_info\x18\x0f \x01(\x0b\x32\'.temporal.api.worker.v1.WorkerSlotsInfo\x12\x46\n\x14workflow_poller_info\x18\x10 \x01(\x0b\x32(.temporal.api.worker.v1.WorkerPollerInfo\x12M\n\x1bworkflow_sticky_poller_info\x18\x11 \x01(\x0b\x32(.temporal.api.worker.v1.WorkerPollerInfo\x12\x46\n\x14\x61\x63tivity_poller_info\x18\x12 \x01(\x0b\x32(.temporal.api.worker.v1.WorkerPollerInfo\x12\x43\n\x11nexus_poller_info\x18\x13 \x01(\x0b\x32(.temporal.api.worker.v1.WorkerPollerInfo\x12\x1e\n\x16total_sticky_cache_hit\x18\x14 \x01(\x05\x12\x1f\n\x17total_sticky_cache_miss\x18\x15 \x01(\x05\x12!\n\x19\x63urrent_sticky_cache_size\x18\x16 \x01(\x05\x12\x33\n\x07plugins\x18\x17 \x03(\x0b\x32\".temporal.api.worker.v1.PluginInfo\x12:\n\x07\x64rivers\x18\x18 \x03(\x0b\x32).temporal.api.worker.v1.StorageDriverInfo\"O\n\nWorkerInfo\x12\x41\n\x10worker_heartbeat\x18\x01 \x01(\x0b\x32\'.temporal.api.worker.v1.WorkerHeartbeat\"\xec\x03\n\x0eWorkerListInfo\x12\x1b\n\x13worker_instance_key\x18\x01 \x01(\t\x12\x17\n\x0fworker_identity\x18\x02 \x01(\t\x12\x12\n\ntask_queue\x18\x03 \x01(\t\x12O\n\x12\x64\x65ployment_version\x18\x04 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion\x12\x10\n\x08sdk_name\x18\x05 \x01(\t\x12\x13\n\x0bsdk_version\x18\x06 \x01(\t\x12\x33\n\x06status\x18\x07 \x01(\x0e\x32#.temporal.api.enums.v1.WorkerStatus\x12.\n\nstart_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x11\n\thost_name\x18\t \x01(\t\x12\x1b\n\x13worker_grouping_key\x18\n \x01(\t\x12\x12\n\nprocess_id\x18\x0b \x01(\t\x12\x33\n\x07plugins\x18\x0c \x03(\x0b\x32\".temporal.api.worker.v1.PluginInfo\x12:\n\x07\x64rivers\x18\r \x03(\x0b\x32).temporal.api.worker.v1.StorageDriverInfo\"+\n\nPluginInfo\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t\"!\n\x11StorageDriverInfo\x12\x0c\n\x04type\x18\x01 \x01(\t\"a\n\rWorkerCommand\x12H\n\x0f\x63\x61ncel_activity\x18\x01 \x01(\x0b\x32-.temporal.api.worker.v1.CancelActivityCommandH\x00\x42\x06\n\x04type\"+\n\x15\x43\x61ncelActivityCommand\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\"f\n\x13WorkerCommandResult\x12G\n\x0f\x63\x61ncel_activity\x18\x01 \x01(\x0b\x32,.temporal.api.worker.v1.CancelActivityResultH\x00\x42\x06\n\x04type\"\x16\n\x14\x43\x61ncelActivityResultB\x89\x01\n\x19io.temporal.api.worker.v1B\x0cMessageProtoP\x01Z#go.temporal.io/api/worker/v1;worker\xaa\x02\x18Temporalio.Api.Worker.V1\xea\x02\x1bTemporalio::Api::Worker::V1b\x06proto3"
|
|
14
14
|
|
|
15
15
|
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
16
16
|
pool.add_serialized_file(descriptor_data)
|
|
@@ -24,7 +24,13 @@ module Temporalio
|
|
|
24
24
|
WorkerHostInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.worker.v1.WorkerHostInfo").msgclass
|
|
25
25
|
WorkerHeartbeat = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.worker.v1.WorkerHeartbeat").msgclass
|
|
26
26
|
WorkerInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.worker.v1.WorkerInfo").msgclass
|
|
27
|
+
WorkerListInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.worker.v1.WorkerListInfo").msgclass
|
|
27
28
|
PluginInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.worker.v1.PluginInfo").msgclass
|
|
29
|
+
StorageDriverInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.worker.v1.StorageDriverInfo").msgclass
|
|
30
|
+
WorkerCommand = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.worker.v1.WorkerCommand").msgclass
|
|
31
|
+
CancelActivityCommand = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.worker.v1.CancelActivityCommand").msgclass
|
|
32
|
+
WorkerCommandResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.worker.v1.WorkerCommandResult").msgclass
|
|
33
|
+
CancelActivityResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("temporal.api.worker.v1.CancelActivityResult").msgclass
|
|
28
34
|
end
|
|
29
35
|
end
|
|
30
36
|
end
|