diff --git a/src/Temporalio.Extensions.OpenTelemetry/TracingInterceptor.cs b/src/Temporalio.Extensions.OpenTelemetry/TracingInterceptor.cs index 02ba4bcf..2f1583fe 100644 --- a/src/Temporalio.Extensions.OpenTelemetry/TracingInterceptor.cs +++ b/src/Temporalio.Extensions.OpenTelemetry/TracingInterceptor.cs @@ -701,7 +701,7 @@ public override Task> StartChildWorkflow } public override Task> StartNexusOperationAsync( - StartNexusOperationInput input) + Temporalio.Worker.Interceptors.StartNexusOperationInput input) { var headers = StartWorkflowActivityOnHeaders( input.Headers, $"StartNexusOperation:{input.Service}/{input.OperationName}"); diff --git a/src/Temporalio/Api/Command/V1/Message.cs b/src/Temporalio/Api/Command/V1/Message.cs index 22365bce..e6beb86b 100644 --- a/src/Temporalio/Api/Command/V1/Message.cs +++ b/src/Temporalio/Api/Command/V1/Message.cs @@ -58,138 +58,138 @@ static MessageReflection() { "RmFpbHVyZSIwChxDYW5jZWxUaW1lckNvbW1hbmRBdHRyaWJ1dGVzEhAKCHRp", "bWVyX2lkGAEgASgJIl0KKENhbmNlbFdvcmtmbG93RXhlY3V0aW9uQ29tbWFu", "ZEF0dHJpYnV0ZXMSMQoHZGV0YWlscxgBIAEoCzIgLnRlbXBvcmFsLmFwaS5j", - "b21tb24udjEuUGF5bG9hZHMiswEKN1JlcXVlc3RDYW5jZWxFeHRlcm5hbFdv", - "cmtmbG93RXhlY3V0aW9uQ29tbWFuZEF0dHJpYnV0ZXMSEQoJbmFtZXNwYWNl", - "GAEgASgJEhMKC3dvcmtmbG93X2lkGAIgASgJEg4KBnJ1bl9pZBgDIAEoCRIT", - "Cgdjb250cm9sGAQgASgJQgIYARIbChNjaGlsZF93b3JrZmxvd19vbmx5GAUg", - "ASgIEg4KBnJlYXNvbhgGIAEoCSKrAgowU2lnbmFsRXh0ZXJuYWxXb3JrZmxv", - "d0V4ZWN1dGlvbkNvbW1hbmRBdHRyaWJ1dGVzEhEKCW5hbWVzcGFjZRgBIAEo", - "CRI8CglleGV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XRlcxgOIAEoCzIoLnRlbXBvcmFsLmFwaS5jb21tb24udjEu", - "U2VhcmNoQXR0cmlidXRlcxIcChBpbmhlcml0X2J1aWxkX2lkGA8gASgIQgIY", - "ARJbChtpbml0aWFsX3ZlcnNpb25pbmdfYmVoYXZpb3IYECABKA4yNi50ZW1w", - "b3JhbC5hcGkuZW51bXMudjEuQ29udGludWVBc05ld1ZlcnNpb25pbmdCZWhh", - "dmlvciKdBwosU3RhcnRDaGlsZFdvcmtmbG93RXhlY3V0aW9uQ29tbWFuZEF0", - "dHJpYnV0ZXMSEQoJbmFtZXNwYWNlGAEgASgJEhMKC3dvcmtmbG93X2lkGAIg", - "ASgJEjsKDXdvcmtmbG93X3R5cGUYAyABKAsyJC50ZW1wb3JhbC5hcGkuY29t", - "bW9uLnYxLldvcmtmbG93VHlwZRI4Cgp0YXNrX3F1ZXVlGAQgASgLMiQudGVt", - "cG9yYWwuYXBpLnRhc2txdWV1ZS52MS5UYXNrUXVldWUSLwoFaW5wdXQYBSAB", - "KAsyIC50ZW1wb3JhbC5hcGkuY29tbW9uLnYxLlBheWxvYWRzEj0KGndvcmtm", - "bG93X2V4ZWN1dGlvbl90aW1lb3V0GAYgASgLMhkuZ29vZ2xlLnByb3RvYnVm", - "LkR1cmF0aW9uEjcKFHdvcmtmbG93X3J1bl90aW1lb3V0GAcgASgLMhkuZ29v", + "b21tb24udjEuUGF5bG9hZHMitwEKN1JlcXVlc3RDYW5jZWxFeHRlcm5hbFdv", + "cmtmbG93RXhlY3V0aW9uQ29tbWFuZEF0dHJpYnV0ZXMSFQoJbmFtZXNwYWNl", + "GAEgASgJQgIYARITCgt3b3JrZmxvd19pZBgCIAEoCRIOCgZydW5faWQYAyAB", + "KAkSEwoHY29udHJvbBgEIAEoCUICGAESGwoTY2hpbGRfd29ya2Zsb3dfb25s", + "eRgFIAEoCBIOCgZyZWFzb24YBiABKAkirwIKMFNpZ25hbEV4dGVybmFsV29y", + "a2Zsb3dFeGVjdXRpb25Db21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VjdXRpb25D", + "b21tYW5kQXR0cmlidXRlcxIVCgluYW1lc3BhY2UYASABKAlCAhgBEhMKC3dv", + "cmtmbG93X2lkGAIgASgJEjsKDXdvcmtmbG93X3R5cGUYAyABKAsyJC50ZW1w", + "b3JhbC5hcGkuY29tbW9uLnYxLldvcmtmbG93VHlwZRI4Cgp0YXNrX3F1ZXVl", + "GAQgASgLMiQudGVtcG9yYWwuYXBpLnRhc2txdWV1ZS52MS5UYXNrUXVldWUS", + "LwoFaW5wdXQYBSABKAsyIC50ZW1wb3JhbC5hcGkuY29tbW9uLnYxLlBheWxv", + "YWRzEj0KGndvcmtmbG93X2V4ZWN1dGlvbl90aW1lb3V0GAYgASgLMhkuZ29v", + "Z2xlLnByb3RvYnVmLkR1cmF0aW9uEjcKFHdvcmtmbG93X3J1bl90aW1lb3V0", + "GAcgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uEjgKFXdvcmtmbG93", + "X3Rhc2tfdGltZW91dBgIIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlv", + "bhJFChNwYXJlbnRfY2xvc2VfcG9saWN5GAkgASgOMigudGVtcG9yYWwuYXBp", + "LmVudW1zLnYxLlBhcmVudENsb3NlUG9saWN5Eg8KB2NvbnRyb2wYCiABKAkS", + "TgoYd29ya2Zsb3dfaWRfcmV1c2VfcG9saWN5GAsgASgOMiwudGVtcG9yYWwu", + "YXBpLmVudW1zLnYxLldvcmtmbG93SWRSZXVzZVBvbGljeRI5CgxyZXRyeV9w", + "b2xpY3kYDCABKAsyIy50ZW1wb3JhbC5hcGkuY29tbW9uLnYxLlJldHJ5UG9s", + "aWN5EhUKDWNyb25fc2NoZWR1bGUYDSABKAkSLgoGaGVhZGVyGA4gASgLMh4u", + "dGVtcG9yYWwuYXBpLmNvbW1vbi52MS5IZWFkZXISKgoEbWVtbxgPIAEoCzIc", + "LnRlbXBvcmFsLmFwaS5jb21tb24udjEuTWVtbxJDChFzZWFyY2hfYXR0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cG9yYWwuYXBpLmNvbW1h", + "bmQudjEuQ2FuY2VsVGltZXJDb21tYW5kQXR0cmlidXRlc0gAEnkKLGNhbmNl", + "bF93b3JrZmxvd19leGVjdXRpb25fY29tbWFuZF9hdHRyaWJ1dGVzGAggASgL", + "MkEudGVtcG9yYWwuYXBpLmNvbW1hbmQudjEuQ2FuY2VsV29ya2Zsb3dFeGVj", + "dXRpb25Db21tYW5kQXR0cmlidXRlc0gAEpkBCj1yZXF1ZXN0X2NhbmNlbF9l", + "eHRlcm5hbF93b3JrZmxvd19leGVjdXRpb25fY29tbWFuZF9hdHRyaWJ1dGVz", + "GAkgASgLMlAudGVtcG9yYWwuYXBpLmNvbW1hbmQudjEuUmVxdWVzdENhbmNl", + "bEV4dGVybmFsV29ya2Zsb3dFeGVjdXRpb25Db21tYW5kQXR0cmlidXRlc0gA", + "EmIKIHJlY29yZF9tYXJrZXJfY29tbWFuZF9hdHRyaWJ1dGVzGAogASgLMjYu", + "dGVtcG9yYWwuYXBpLmNvbW1hbmQudjEuUmVjb3JkTWFya2VyQ29tbWFuZEF0", + "dHJpYnV0ZXNIABKJAQo1Y29udGludWVfYXNfbmV3X3dvcmtmbG93X2V4ZWN1", + "dGlvbl9jb21tYW5kX2F0dHJpYnV0ZXMYCyABKAsySC50ZW1wb3JhbC5hcGku", + "Y29tbWFuZC52MS5Db250aW51ZUFzTmV3V29ya2Zsb3dFeGVjdXRpb25Db21t", + "YW5kQXR0cmlidXRlc0gAEoIBCjFzdGFydF9jaGlsZF93b3JrZmxvd19leGVj", + "dXRpb25fY29tbWFuZF9hdHRyaWJ1dGVzGAwgASgLMkUudGVtcG9yYWwuYXBp", + "LmNvbW1hbmQudjEuU3RhcnRDaGlsZFdvcmtmbG93RXhlY3V0aW9uQ29tbWFu", + "ZEF0dHJpYnV0ZXNIABKKAQo1c2lnbmFsX2V4dGVybmFsX3dvcmtmbG93X2V4", + "ZWN1dGlvbl9jb21tYW5kX2F0dHJpYnV0ZXMYDSABKAsyS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RvUAFaJWdvLnRlbXBvcmFsLmlv", + "L2FwaS9jb21tYW5kL3YxO2NvbW1hbmSqAhlUZW1wb3JhbGlvLkFwaS5Db21t", + "YW5kLlYx6gIcVGVtcG9yYWxpbzo6QXBpOjpDb21tYW5kOjpWMWIGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.DurationReflection.Descriptor, global::Temporalio.Api.Enums.V1.WorkflowReflection.Descriptor, global::Temporalio.Api.Enums.V1.CommandTypeReflection.Descriptor, global::Temporalio.Api.Common.V1.MessageReflection.Descriptor, global::Temporalio.Api.Failure.V1.MessageReflection.Descriptor, global::Temporalio.Api.TaskQueue.V1.MessageReflection.Descriptor, global::Temporalio.Api.Sdk.V1.UserMetadataReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { @@ -2263,6 +2263,10 @@ public RequestCancelExternalWorkflowExecutionCommandAttributes Clone() { /// Field number for the "namespace" field. public const int NamespaceFieldNumber = 1; private string namespace_ = ""; + /// + /// Deprecated. Cross-namespace operations are disabled by default as of server 1.30.1. + /// + [global::System.ObsoleteAttribute] [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Namespace { @@ -2650,6 +2654,10 @@ public SignalExternalWorkflowExecutionCommandAttributes Clone() { /// Field number for the "namespace" field. public const int NamespaceFieldNumber = 1; private string namespace_ = ""; + /// + /// Deprecated. Cross-namespace operations are disabled by default as of server 1.30.1. + /// + [global::System.ObsoleteAttribute] [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Namespace { @@ -4710,6 +4718,10 @@ public StartChildWorkflowExecutionCommandAttributes Clone() { /// Field number for the "namespace" field. public const int NamespaceFieldNumber = 1; private string namespace_ = ""; + /// + /// Deprecated. Cross-namespace operations are disabled by default as of server 1.30.1. + /// + [global::System.ObsoleteAttribute] [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Namespace { diff --git a/src/Temporalio/Api/Common/V1/Message.cs b/src/Temporalio/Api/Common/V1/Message.cs index ed9f8f9f..96490b39 100644 --- a/src/Temporalio/Api/Common/V1/Message.cs +++ b/src/Temporalio/Api/Common/V1/Message.cs @@ -78,27 +78,31 @@ static MessageReflection() { "KAsyMi50ZW1wb3JhbC5hcGkuY29tbW9uLnYxLkNhbGxiYWNrLk5leHVzLkhl", "YWRlckVudHJ5Gi0KC0hlYWRlckVudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1", "ZRgCIAEoCToCOAEaGAoISW50ZXJuYWwSDAoEZGF0YRgBIAEoDEIJCgd2YXJp", - "YW50SgQIARACIukECgRMaW5rEkQKDndvcmtmbG93X2V2ZW50GAEgASgLMiou", + "YW50SgQIARACIvwFCgRMaW5rEkQKDndvcmtmbG93X2V2ZW50GAEgASgLMiou", "dGVtcG9yYWwuYXBpLmNvbW1vbi52MS5MaW5rLldvcmtmbG93RXZlbnRIABI6", "CgliYXRjaF9qb2IYAiABKAsyJS50ZW1wb3JhbC5hcGkuY29tbW9uLnYxLkxp", - "bmsuQmF0Y2hKb2JIABq3AwoNV29ya2Zsb3dFdmVudBIRCgluYW1lc3BhY2UY", - "ASABKAkSEwoLd29ya2Zsb3dfaWQYAiABKAkSDgoGcnVuX2lkGAMgASgJEk4K", - "CWV2ZW50X3JlZhhkIAEoCzI5LnRlbXBvcmFsLmFwaS5jb21tb24udjEuTGlu", - "ay5Xb3JrZmxvd0V2ZW50LkV2ZW50UmVmZXJlbmNlSAASVwoOcmVxdWVzdF9p", - "ZF9yZWYYZSABKAsyPS50ZW1wb3JhbC5hcGkuY29tbW9uLnYxLkxpbmsuV29y", - "a2Zsb3dFdmVudC5SZXF1ZXN0SWRSZWZlcmVuY2VIABpYCg5FdmVudFJlZmVy", - "ZW5jZRIQCghldmVudF9pZBgBIAEoAxI0CgpldmVudF90eXBlGAIgASgOMiAu", - "dGVtcG9yYWwuYXBpLmVudW1zLnYxLkV2ZW50VHlwZRpeChJSZXF1ZXN0SWRS", - "ZWZlcmVuY2USEgoKcmVxdWVzdF9pZBgBIAEoCRI0CgpldmVudF90eXBlGAIg", - "ASgOMiAudGVtcG9yYWwuYXBpLmVudW1zLnYxLkV2ZW50VHlwZUILCglyZWZl", - "cmVuY2UaGgoIQmF0Y2hKb2ISDgoGam9iX2lkGAEgASgJQgkKB3ZhcmlhbnQi", - "TwoIUHJpb3JpdHkSFAoMcHJpb3JpdHlfa2V5GAEgASgFEhQKDGZhaXJuZXNz", - "X2tleRgCIAEoCRIXCg9mYWlybmVzc193ZWlnaHQYAyABKAIiOwoOV29ya2Vy", - "U2VsZWN0b3ISHQoTd29ya2VyX2luc3RhbmNlX2tleRgBIAEoCUgAQgoKCHNl", - "bGVjdG9yQokBChlpby50ZW1wb3JhbC5hcGkuY29tbW9uLnYxQgxNZXNzYWdl", - "UHJvdG9QAVojZ28udGVtcG9yYWwuaW8vYXBpL2NvbW1vbi92MTtjb21tb26q", - "AhhUZW1wb3JhbGlvLkFwaS5Db21tb24uVjHqAhtUZW1wb3JhbGlvOjpBcGk6", - "OkNvbW1vbjo6VjFiBnByb3RvMw==")); + "bmsuQmF0Y2hKb2JIABJGCg9uZXh1c19vcGVyYXRpb24YAyABKAsyKy50ZW1w", + "b3JhbC5hcGkuY29tbW9uLnYxLkxpbmsuTmV4dXNPcGVyYXRpb25IABq3AwoN", + "V29ya2Zsb3dFdmVudBIRCgluYW1lc3BhY2UYASABKAkSEwoLd29ya2Zsb3df", + "aWQYAiABKAkSDgoGcnVuX2lkGAMgASgJEk4KCWV2ZW50X3JlZhhkIAEoCzI5", + "LnRlbXBvcmFsLmFwaS5jb21tb24udjEuTGluay5Xb3JrZmxvd0V2ZW50LkV2", + "ZW50UmVmZXJlbmNlSAASVwoOcmVxdWVzdF9pZF9yZWYYZSABKAsyPS50ZW1w", + "b3JhbC5hcGkuY29tbW9uLnYxLkxpbmsuV29ya2Zsb3dFdmVudC5SZXF1ZXN0", + "SWRSZWZlcmVuY2VIABpYCg5FdmVudFJlZmVyZW5jZRIQCghldmVudF9pZBgB", + "IAEoAxI0CgpldmVudF90eXBlGAIgASgOMiAudGVtcG9yYWwuYXBpLmVudW1z", + "LnYxLkV2ZW50VHlwZRpeChJSZXF1ZXN0SWRSZWZlcmVuY2USEgoKcmVxdWVz", + "dF9pZBgBIAEoCRI0CgpldmVudF90eXBlGAIgASgOMiAudGVtcG9yYWwuYXBp", + "LmVudW1zLnYxLkV2ZW50VHlwZUILCglyZWZlcmVuY2UaGgoIQmF0Y2hKb2IS", + "DgoGam9iX2lkGAEgASgJGkkKDk5leHVzT3BlcmF0aW9uEhEKCW5hbWVzcGFj", + "ZRgBIAEoCRIUCgxvcGVyYXRpb25faWQYAiABKAkSDgoGcnVuX2lkGAMgASgJ", + "QgkKB3ZhcmlhbnQiJwoJUHJpbmNpcGFsEgwKBHR5cGUYASABKAkSDAoEbmFt", + "ZRgCIAEoCSJPCghQcmlvcml0eRIUCgxwcmlvcml0eV9rZXkYASABKAUSFAoM", + "ZmFpcm5lc3Nfa2V5GAIgASgJEhcKD2ZhaXJuZXNzX3dlaWdodBgDIAEoAiI7", + "Cg5Xb3JrZXJTZWxlY3RvchIdChN3b3JrZXJfaW5zdGFuY2Vfa2V5GAEgASgJ", + "SABCCgoIc2VsZWN0b3JCiQEKGWlvLnRlbXBvcmFsLmFwaS5jb21tb24udjFC", + "DE1lc3NhZ2VQcm90b1ABWiNnby50ZW1wb3JhbC5pby9hcGkvY29tbW9uL3Yx", + "O2NvbW1vbqoCGFRlbXBvcmFsaW8uQXBpLkNvbW1vbi5WMeoCG1RlbXBvcmFs", + "aW86OkFwaTo6Q29tbW9uOjpWMWIGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.DurationReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, global::Temporalio.Api.Enums.V1.CommonReflection.Descriptor, global::Temporalio.Api.Enums.V1.EventTypeReflection.Descriptor, global::Temporalio.Api.Enums.V1.ResetReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { @@ -118,9 +122,11 @@ static MessageReflection() { new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Common.V1.ResetOptions), global::Temporalio.Api.Common.V1.ResetOptions.Parser, new[]{ "FirstWorkflowTask", "LastWorkflowTask", "WorkflowTaskId", "BuildId", "ResetReapplyType", "CurrentRunOnly", "ResetReapplyExcludeTypes" }, new[]{ "Target" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Common.V1.Callback), global::Temporalio.Api.Common.V1.Callback.Parser, new[]{ "Nexus", "Internal", "Links" }, new[]{ "Variant" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Common.V1.Callback.Types.Nexus), global::Temporalio.Api.Common.V1.Callback.Types.Nexus.Parser, new[]{ "Url", "Header" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Common.V1.Callback.Types.Internal), global::Temporalio.Api.Common.V1.Callback.Types.Internal.Parser, new[]{ "Data" }, null, null, null, null)}), - new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Common.V1.Link), global::Temporalio.Api.Common.V1.Link.Parser, new[]{ "WorkflowEvent", "BatchJob" }, new[]{ "Variant" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Common.V1.Link.Types.WorkflowEvent), global::Temporalio.Api.Common.V1.Link.Types.WorkflowEvent.Parser, new[]{ "Namespace", "WorkflowId", "RunId", "EventRef", "RequestIdRef" }, new[]{ "Reference" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Common.V1.Link.Types.WorkflowEvent.Types.EventReference), global::Temporalio.Api.Common.V1.Link.Types.WorkflowEvent.Types.EventReference.Parser, new[]{ "EventId", "EventType" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Common.V1.Link), global::Temporalio.Api.Common.V1.Link.Parser, new[]{ "WorkflowEvent", "BatchJob", "NexusOperation" }, new[]{ "Variant" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Common.V1.Link.Types.WorkflowEvent), global::Temporalio.Api.Common.V1.Link.Types.WorkflowEvent.Parser, new[]{ "Namespace", "WorkflowId", "RunId", "EventRef", "RequestIdRef" }, new[]{ "Reference" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Common.V1.Link.Types.WorkflowEvent.Types.EventReference), global::Temporalio.Api.Common.V1.Link.Types.WorkflowEvent.Types.EventReference.Parser, new[]{ "EventId", "EventType" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Common.V1.Link.Types.WorkflowEvent.Types.RequestIdReference), global::Temporalio.Api.Common.V1.Link.Types.WorkflowEvent.Types.RequestIdReference.Parser, new[]{ "RequestId", "EventType" }, null, null, null, null)}), - new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Common.V1.Link.Types.BatchJob), global::Temporalio.Api.Common.V1.Link.Types.BatchJob.Parser, new[]{ "JobId" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Common.V1.Link.Types.BatchJob), global::Temporalio.Api.Common.V1.Link.Types.BatchJob.Parser, new[]{ "JobId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Common.V1.Link.Types.NexusOperation), global::Temporalio.Api.Common.V1.Link.Types.NexusOperation.Parser, new[]{ "Namespace", "OperationId", "RunId" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Common.V1.Principal), global::Temporalio.Api.Common.V1.Principal.Parser, new[]{ "Type", "Name" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Common.V1.Priority), global::Temporalio.Api.Common.V1.Priority.Parser, new[]{ "PriorityKey", "FairnessKey", "FairnessWeight" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Common.V1.WorkerSelector), global::Temporalio.Api.Common.V1.WorkerSelector.Parser, new[]{ "WorkerInstanceKey" }, new[]{ "Selector" }, null, null, null) })); @@ -4555,6 +4561,9 @@ public Link(Link other) : this() { case VariantOneofCase.BatchJob: BatchJob = other.BatchJob.Clone(); break; + case VariantOneofCase.NexusOperation: + NexusOperation = other.NexusOperation.Clone(); + break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -4590,12 +4599,25 @@ public Link Clone() { } } + /// Field number for the "nexus_operation" field. + public const int NexusOperationFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Common.V1.Link.Types.NexusOperation NexusOperation { + get { return variantCase_ == VariantOneofCase.NexusOperation ? (global::Temporalio.Api.Common.V1.Link.Types.NexusOperation) variant_ : null; } + set { + variant_ = value; + variantCase_ = value == null ? VariantOneofCase.None : VariantOneofCase.NexusOperation; + } + } + private object variant_; /// Enum of possible cases for the "variant" oneof. public enum VariantOneofCase { None = 0, WorkflowEvent = 1, BatchJob = 2, + NexusOperation = 3, } private VariantOneofCase variantCase_ = VariantOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -4628,6 +4650,7 @@ public bool Equals(Link other) { } if (!object.Equals(WorkflowEvent, other.WorkflowEvent)) return false; if (!object.Equals(BatchJob, other.BatchJob)) return false; + if (!object.Equals(NexusOperation, other.NexusOperation)) return false; if (VariantCase != other.VariantCase) return false; return Equals(_unknownFields, other._unknownFields); } @@ -4638,6 +4661,7 @@ public override int GetHashCode() { int hash = 1; if (variantCase_ == VariantOneofCase.WorkflowEvent) hash ^= WorkflowEvent.GetHashCode(); if (variantCase_ == VariantOneofCase.BatchJob) hash ^= BatchJob.GetHashCode(); + if (variantCase_ == VariantOneofCase.NexusOperation) hash ^= NexusOperation.GetHashCode(); hash ^= (int) variantCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); @@ -4665,6 +4689,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(18); output.WriteMessage(BatchJob); } + if (variantCase_ == VariantOneofCase.NexusOperation) { + output.WriteRawTag(26); + output.WriteMessage(NexusOperation); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -4683,6 +4711,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(18); output.WriteMessage(BatchJob); } + if (variantCase_ == VariantOneofCase.NexusOperation) { + output.WriteRawTag(26); + output.WriteMessage(NexusOperation); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -4699,6 +4731,9 @@ public int CalculateSize() { if (variantCase_ == VariantOneofCase.BatchJob) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(BatchJob); } + if (variantCase_ == VariantOneofCase.NexusOperation) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(NexusOperation); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -4724,6 +4759,12 @@ public void MergeFrom(Link other) { } BatchJob.MergeFrom(other.BatchJob); break; + case VariantOneofCase.NexusOperation: + if (NexusOperation == null) { + NexusOperation = new global::Temporalio.Api.Common.V1.Link.Types.NexusOperation(); + } + NexusOperation.MergeFrom(other.NexusOperation); + break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -4759,6 +4800,15 @@ public void MergeFrom(pb::CodedInputStream input) { BatchJob = subBuilder; break; } + case 26: { + global::Temporalio.Api.Common.V1.Link.Types.NexusOperation subBuilder = new global::Temporalio.Api.Common.V1.Link.Types.NexusOperation(); + if (variantCase_ == VariantOneofCase.NexusOperation) { + subBuilder.MergeFrom(NexusOperation); + } + input.ReadMessage(subBuilder); + NexusOperation = subBuilder; + break; + } } } #endif @@ -4792,6 +4842,15 @@ public void MergeFrom(pb::CodedInputStream input) { BatchJob = subBuilder; break; } + case 26: { + global::Temporalio.Api.Common.V1.Link.Types.NexusOperation subBuilder = new global::Temporalio.Api.Common.V1.Link.Types.NexusOperation(); + if (variantCase_ == VariantOneofCase.NexusOperation) { + subBuilder.MergeFrom(NexusOperation); + } + input.ReadMessage(subBuilder); + NexusOperation = subBuilder; + break; + } } } } @@ -5858,11 +5917,513 @@ public void MergeFrom(pb::CodedInputStream input) { } + /// + /// A link to a standalone Nexus operation. + /// + public sealed partial class NexusOperation : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NexusOperation()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Temporalio.Api.Common.V1.Link.Descriptor.NestedTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NexusOperation() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NexusOperation(NexusOperation other) : this() { + namespace_ = other.namespace_; + operationId_ = other.operationId_; + runId_ = other.runId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NexusOperation Clone() { + return new NexusOperation(this); + } + + /// Field number for the "namespace" field. + public const int NamespaceFieldNumber = 1; + private string namespace_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Namespace { + get { return namespace_; } + set { + namespace_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "operation_id" field. + public const int OperationIdFieldNumber = 2; + private string operationId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string OperationId { + get { return operationId_; } + set { + operationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "run_id" field. + public const int RunIdFieldNumber = 3; + private string runId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RunId { + get { return runId_; } + set { + runId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as NexusOperation); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(NexusOperation other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Namespace != other.Namespace) return false; + if (OperationId != other.OperationId) return false; + if (RunId != other.RunId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Namespace.Length != 0) hash ^= Namespace.GetHashCode(); + if (OperationId.Length != 0) hash ^= OperationId.GetHashCode(); + if (RunId.Length != 0) hash ^= RunId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Namespace.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Namespace); + } + if (OperationId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(OperationId); + } + if (RunId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(RunId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Namespace.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Namespace); + } + if (OperationId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(OperationId); + } + if (RunId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(RunId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Namespace.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Namespace); + } + if (OperationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(OperationId); + } + if (RunId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RunId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(NexusOperation other) { + if (other == null) { + return; + } + if (other.Namespace.Length != 0) { + Namespace = other.Namespace; + } + if (other.OperationId.Length != 0) { + OperationId = other.OperationId; + } + if (other.RunId.Length != 0) { + RunId = other.RunId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Namespace = input.ReadString(); + break; + } + case 18: { + OperationId = input.ReadString(); + break; + } + case 26: { + RunId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Namespace = input.ReadString(); + break; + } + case 18: { + OperationId = input.ReadString(); + break; + } + case 26: { + RunId = input.ReadString(); + break; + } + } + } + } + #endif + + } + } #endregion } + /// + /// Principal is an authenticated caller identity computed by the server from trusted + /// authentication context. + /// + public sealed partial class Principal : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Principal()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Temporalio.Api.Common.V1.MessageReflection.Descriptor.MessageTypes[16]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Principal() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Principal(Principal other) : this() { + type_ = other.type_; + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Principal Clone() { + return new Principal(this); + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 1; + private string type_ = ""; + /// + /// Low-cardinality category of the principal (e.g., "jwt", "users"). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Type { + get { return type_; } + set { + type_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + /// + /// Identifier within that category (e.g., sub JWT claim, email address). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Principal); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Principal other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Type != other.Type) return false; + if (Name != other.Name) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Type.Length != 0) hash ^= Type.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Type.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Type); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Type.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Type); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Type.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Type); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Principal other) { + if (other == null) { + return; + } + if (other.Type.Length != 0) { + Type = other.Type; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Type = input.ReadString(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Type = input.ReadString(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + } + } + } + #endif + + } + /// /// Priority contains metadata that controls relative ordering of task processing /// when tasks are backed up in a queue. Initially, Priority will be used in @@ -5911,7 +6472,7 @@ public sealed partial class Priority : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.Common.V1.MessageReflection.Descriptor.MessageTypes[16]; } + get { return global::Temporalio.Api.Common.V1.MessageReflection.Descriptor.MessageTypes[17]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -6228,7 +6789,7 @@ public sealed partial class WorkerSelector : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.Common.V1.MessageReflection.Descriptor.MessageTypes[17]; } + get { return global::Temporalio.Api.Common.V1.MessageReflection.Descriptor.MessageTypes[18]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] diff --git a/src/Temporalio/Api/Compute/V1/Config.cs b/src/Temporalio/Api/Compute/V1/Config.cs new file mode 100644 index 00000000..6c9d6f8f --- /dev/null +++ b/src/Temporalio/Api/Compute/V1/Config.cs @@ -0,0 +1,794 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: temporal/api/compute/v1/config.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Temporalio.Api.Compute.V1 { + + /// Holder for reflection information generated from temporal/api/compute/v1/config.proto + public static partial class ConfigReflection { + + #region Descriptor + /// File descriptor for temporal/api/compute/v1/config.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ConfigReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiR0ZW1wb3JhbC9hcGkvY29tcHV0ZS92MS9jb25maWcucHJvdG8SF3RlbXBv", + "cmFsLmFwaS5jb21wdXRlLnYxGiZ0ZW1wb3JhbC9hcGkvY29tcHV0ZS92MS9w", + "cm92aWRlci5wcm90bxokdGVtcG9yYWwvYXBpL2NvbXB1dGUvdjEvc2NhbGVy", + "LnByb3RvGiZ0ZW1wb3JhbC9hcGkvZW51bXMvdjEvdGFza19xdWV1ZS5wcm90", + "bxogZ29vZ2xlL3Byb3RvYnVmL2ZpZWxkX21hc2sucHJvdG8izwEKGUNvbXB1", + "dGVDb25maWdTY2FsaW5nR3JvdXASPgoQdGFza19xdWV1ZV90eXBlcxgBIAMo", + "DjIkLnRlbXBvcmFsLmFwaS5lbnVtcy52MS5UYXNrUXVldWVUeXBlEjoKCHBy", + "b3ZpZGVyGAMgASgLMigudGVtcG9yYWwuYXBpLmNvbXB1dGUudjEuQ29tcHV0", + "ZVByb3ZpZGVyEjYKBnNjYWxlchgEIAEoCzImLnRlbXBvcmFsLmFwaS5jb21w", + "dXRlLnYxLkNvbXB1dGVTY2FsZXIizAEKDUNvbXB1dGVDb25maWcSUQoOc2Nh", + "bGluZ19ncm91cHMYASADKAsyOS50ZW1wb3JhbC5hcGkuY29tcHV0ZS52MS5D", + "b21wdXRlQ29uZmlnLlNjYWxpbmdHcm91cHNFbnRyeRpoChJTY2FsaW5nR3Jv", + "dXBzRW50cnkSCwoDa2V5GAEgASgJEkEKBXZhbHVlGAIgASgLMjIudGVtcG9y", + "YWwuYXBpLmNvbXB1dGUudjEuQ29tcHV0ZUNvbmZpZ1NjYWxpbmdHcm91cDoC", + "OAEinQEKH0NvbXB1dGVDb25maWdTY2FsaW5nR3JvdXBVcGRhdGUSSQoNc2Nh", + "bGluZ19ncm91cBgBIAEoCzIyLnRlbXBvcmFsLmFwaS5jb21wdXRlLnYxLkNv", + "bXB1dGVDb25maWdTY2FsaW5nR3JvdXASLwoLdXBkYXRlX21hc2sYAiABKAsy", + "Gi5nb29nbGUucHJvdG9idWYuRmllbGRNYXNrQo0BChppby50ZW1wb3JhbC5h", + "cGkuY29tcHV0ZS52MUILQ29uZmlnUHJvdG9QAVolZ28udGVtcG9yYWwuaW8v", + "YXBpL2NvbXB1dGUvdjE7Y29tcHV0ZaoCGVRlbXBvcmFsaW8uQXBpLkNvbXB1", + "dGUuVjHqAhxUZW1wb3JhbGlvOjpBcGk6OkNvbXB1dGU6OlYxYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Temporalio.Api.Compute.V1.ProviderReflection.Descriptor, global::Temporalio.Api.Compute.V1.ScalerReflection.Descriptor, global::Temporalio.Api.Enums.V1.TaskQueueReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Compute.V1.ComputeConfigScalingGroup), global::Temporalio.Api.Compute.V1.ComputeConfigScalingGroup.Parser, new[]{ "TaskQueueTypes", "Provider", "Scaler" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Compute.V1.ComputeConfig), global::Temporalio.Api.Compute.V1.ComputeConfig.Parser, new[]{ "ScalingGroups" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Compute.V1.ComputeConfigScalingGroupUpdate), global::Temporalio.Api.Compute.V1.ComputeConfigScalingGroupUpdate.Parser, new[]{ "ScalingGroup", "UpdateMask" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class ComputeConfigScalingGroup : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ComputeConfigScalingGroup()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Temporalio.Api.Compute.V1.ConfigReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ComputeConfigScalingGroup() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ComputeConfigScalingGroup(ComputeConfigScalingGroup other) : this() { + taskQueueTypes_ = other.taskQueueTypes_.Clone(); + provider_ = other.provider_ != null ? other.provider_.Clone() : null; + scaler_ = other.scaler_ != null ? other.scaler_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ComputeConfigScalingGroup Clone() { + return new ComputeConfigScalingGroup(this); + } + + /// Field number for the "task_queue_types" field. + public const int TaskQueueTypesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_taskQueueTypes_codec + = pb::FieldCodec.ForEnum(10, x => (int) x, x => (global::Temporalio.Api.Enums.V1.TaskQueueType) x); + private readonly pbc::RepeatedField taskQueueTypes_ = new pbc::RepeatedField(); + /// + /// Optional. The set of task queue types this scaling group serves. + /// If not provided, this scaling group serves all not otherwise defined + /// task types. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField TaskQueueTypes { + get { return taskQueueTypes_; } + } + + /// Field number for the "provider" field. + public const int ProviderFieldNumber = 3; + private global::Temporalio.Api.Compute.V1.ComputeProvider provider_; + /// + /// Stores instructions for a worker control plane controller how to respond + /// to worker lifeycle events. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Compute.V1.ComputeProvider Provider { + get { return provider_; } + set { + provider_ = value; + } + } + + /// Field number for the "scaler" field. + public const int ScalerFieldNumber = 4; + private global::Temporalio.Api.Compute.V1.ComputeScaler scaler_; + /// + /// Informs a worker lifecycle controller *when* and *how often* to perform + /// certain worker lifecycle actions like starting a serverless worker. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Compute.V1.ComputeScaler Scaler { + get { return scaler_; } + set { + scaler_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ComputeConfigScalingGroup); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ComputeConfigScalingGroup other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!taskQueueTypes_.Equals(other.taskQueueTypes_)) return false; + if (!object.Equals(Provider, other.Provider)) return false; + if (!object.Equals(Scaler, other.Scaler)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= taskQueueTypes_.GetHashCode(); + if (provider_ != null) hash ^= Provider.GetHashCode(); + if (scaler_ != null) hash ^= Scaler.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + taskQueueTypes_.WriteTo(output, _repeated_taskQueueTypes_codec); + if (provider_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Provider); + } + if (scaler_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Scaler); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + taskQueueTypes_.WriteTo(ref output, _repeated_taskQueueTypes_codec); + if (provider_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Provider); + } + if (scaler_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Scaler); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += taskQueueTypes_.CalculateSize(_repeated_taskQueueTypes_codec); + if (provider_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Provider); + } + if (scaler_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Scaler); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ComputeConfigScalingGroup other) { + if (other == null) { + return; + } + taskQueueTypes_.Add(other.taskQueueTypes_); + if (other.provider_ != null) { + if (provider_ == null) { + Provider = new global::Temporalio.Api.Compute.V1.ComputeProvider(); + } + Provider.MergeFrom(other.Provider); + } + if (other.scaler_ != null) { + if (scaler_ == null) { + Scaler = new global::Temporalio.Api.Compute.V1.ComputeScaler(); + } + Scaler.MergeFrom(other.Scaler); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: + case 8: { + taskQueueTypes_.AddEntriesFrom(input, _repeated_taskQueueTypes_codec); + break; + } + case 26: { + if (provider_ == null) { + Provider = new global::Temporalio.Api.Compute.V1.ComputeProvider(); + } + input.ReadMessage(Provider); + break; + } + case 34: { + if (scaler_ == null) { + Scaler = new global::Temporalio.Api.Compute.V1.ComputeScaler(); + } + input.ReadMessage(Scaler); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: + case 8: { + taskQueueTypes_.AddEntriesFrom(ref input, _repeated_taskQueueTypes_codec); + break; + } + case 26: { + if (provider_ == null) { + Provider = new global::Temporalio.Api.Compute.V1.ComputeProvider(); + } + input.ReadMessage(Provider); + break; + } + case 34: { + if (scaler_ == null) { + Scaler = new global::Temporalio.Api.Compute.V1.ComputeScaler(); + } + input.ReadMessage(Scaler); + break; + } + } + } + } + #endif + + } + + /// + /// ComputeConfig stores configuration that helps a worker control plane + /// controller understand *when* and *how* to respond to worker lifecycle + /// events. + /// + public sealed partial class ComputeConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ComputeConfig()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Temporalio.Api.Compute.V1.ConfigReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ComputeConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ComputeConfig(ComputeConfig other) : this() { + scalingGroups_ = other.scalingGroups_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ComputeConfig Clone() { + return new ComputeConfig(this); + } + + /// Field number for the "scaling_groups" field. + public const int ScalingGroupsFieldNumber = 1; + private static readonly pbc::MapField.Codec _map_scalingGroups_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Temporalio.Api.Compute.V1.ComputeConfigScalingGroup.Parser), 10); + private readonly pbc::MapField scalingGroups_ = new pbc::MapField(); + /// + /// Each scaling group describes a compute config for a specific subset of the worker + /// deployment version: covering a specific set of task types and/or regions. + /// Having different configurations for different task types, allows independent + /// tuning of activity and workflow task processing (for example). + /// + /// The key of the map is the ID of the scaling group used to reference it in subsequent + /// update calls. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField ScalingGroups { + get { return scalingGroups_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ComputeConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ComputeConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!ScalingGroups.Equals(other.ScalingGroups)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= ScalingGroups.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + scalingGroups_.WriteTo(output, _map_scalingGroups_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + scalingGroups_.WriteTo(ref output, _map_scalingGroups_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += scalingGroups_.CalculateSize(_map_scalingGroups_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ComputeConfig other) { + if (other == null) { + return; + } + scalingGroups_.MergeFrom(other.scalingGroups_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + scalingGroups_.AddEntriesFrom(input, _map_scalingGroups_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + scalingGroups_.AddEntriesFrom(ref input, _map_scalingGroups_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class ComputeConfigScalingGroupUpdate : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ComputeConfigScalingGroupUpdate()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Temporalio.Api.Compute.V1.ConfigReflection.Descriptor.MessageTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ComputeConfigScalingGroupUpdate() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ComputeConfigScalingGroupUpdate(ComputeConfigScalingGroupUpdate other) : this() { + scalingGroup_ = other.scalingGroup_ != null ? other.scalingGroup_.Clone() : null; + updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ComputeConfigScalingGroupUpdate Clone() { + return new ComputeConfigScalingGroupUpdate(this); + } + + /// Field number for the "scaling_group" field. + public const int ScalingGroupFieldNumber = 1; + private global::Temporalio.Api.Compute.V1.ComputeConfigScalingGroup scalingGroup_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Compute.V1.ComputeConfigScalingGroup ScalingGroup { + get { return scalingGroup_; } + set { + scalingGroup_ = value; + } + } + + /// Field number for the "update_mask" field. + public const int UpdateMaskFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; + /// + /// Controls which fields from `scaling_group` will be applied. Semantics: + /// - Mask is ignored for new scaling groups (only applicable when scaling group already exists). + /// - Empty mask for an existing scaling group is no-op: no change. + /// - Non-empty mask for an existing scaling group will update/unset only to the fields + /// mentioned in the mask. + /// - Accepted paths: "task_queue_types", "provider", "provider.type", "provider.details", + /// "provider.nexus_endpoint", "scaler", "scaler.type", "scaler.details" + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { + get { return updateMask_; } + set { + updateMask_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ComputeConfigScalingGroupUpdate); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ComputeConfigScalingGroupUpdate other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ScalingGroup, other.ScalingGroup)) return false; + if (!object.Equals(UpdateMask, other.UpdateMask)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (scalingGroup_ != null) hash ^= ScalingGroup.GetHashCode(); + if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (scalingGroup_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ScalingGroup); + } + if (updateMask_ != null) { + output.WriteRawTag(18); + output.WriteMessage(UpdateMask); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (scalingGroup_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ScalingGroup); + } + if (updateMask_ != null) { + output.WriteRawTag(18); + output.WriteMessage(UpdateMask); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (scalingGroup_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ScalingGroup); + } + if (updateMask_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ComputeConfigScalingGroupUpdate other) { + if (other == null) { + return; + } + if (other.scalingGroup_ != null) { + if (scalingGroup_ == null) { + ScalingGroup = new global::Temporalio.Api.Compute.V1.ComputeConfigScalingGroup(); + } + ScalingGroup.MergeFrom(other.ScalingGroup); + } + if (other.updateMask_ != null) { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + UpdateMask.MergeFrom(other.UpdateMask); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (scalingGroup_ == null) { + ScalingGroup = new global::Temporalio.Api.Compute.V1.ComputeConfigScalingGroup(); + } + input.ReadMessage(ScalingGroup); + break; + } + case 18: { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + input.ReadMessage(UpdateMask); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (scalingGroup_ == null) { + ScalingGroup = new global::Temporalio.Api.Compute.V1.ComputeConfigScalingGroup(); + } + input.ReadMessage(ScalingGroup); + break; + } + case 18: { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + input.ReadMessage(UpdateMask); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/src/Temporalio/Api/Compute/V1/Provider.cs b/src/Temporalio/Api/Compute/V1/Provider.cs new file mode 100644 index 00000000..d5ef5c28 --- /dev/null +++ b/src/Temporalio/Api/Compute/V1/Provider.cs @@ -0,0 +1,345 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: temporal/api/compute/v1/provider.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Temporalio.Api.Compute.V1 { + + /// Holder for reflection information generated from temporal/api/compute/v1/provider.proto + public static partial class ProviderReflection { + + #region Descriptor + /// File descriptor for temporal/api/compute/v1/provider.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ProviderReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiZ0ZW1wb3JhbC9hcGkvY29tcHV0ZS92MS9wcm92aWRlci5wcm90bxIXdGVt", + "cG9yYWwuYXBpLmNvbXB1dGUudjEaJHRlbXBvcmFsL2FwaS9jb21tb24vdjEv", + "bWVzc2FnZS5wcm90byJpCg9Db21wdXRlUHJvdmlkZXISDAoEdHlwZRgBIAEo", + "CRIwCgdkZXRhaWxzGAIgASgLMh8udGVtcG9yYWwuYXBpLmNvbW1vbi52MS5Q", + "YXlsb2FkEhYKDm5leHVzX2VuZHBvaW50GAogASgJQo8BChppby50ZW1wb3Jh", + "bC5hcGkuY29tcHV0ZS52MUINUHJvdmlkZXJQcm90b1ABWiVnby50ZW1wb3Jh", + "bC5pby9hcGkvY29tcHV0ZS92MTtjb21wdXRlqgIZVGVtcG9yYWxpby5BcGku", + "Q29tcHV0ZS5WMeoCHFRlbXBvcmFsaW86OkFwaTo6Q29tcHV0ZTo6VjFiBnBy", + "b3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Temporalio.Api.Common.V1.MessageReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Compute.V1.ComputeProvider), global::Temporalio.Api.Compute.V1.ComputeProvider.Parser, new[]{ "Type", "Details", "NexusEndpoint" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// ComputeProvider stores information used by a worker control plane controller + /// to respond to worker lifecycle events. For example, when a Task is received + /// on a TaskQueue that has no active pollers, a serverless worker lifecycle + /// controller might need to invoke an AWS Lambda Function that itself ends up + /// calling the SDK's worker.New() function. + /// + public sealed partial class ComputeProvider : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ComputeProvider()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Temporalio.Api.Compute.V1.ProviderReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ComputeProvider() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ComputeProvider(ComputeProvider other) : this() { + type_ = other.type_; + details_ = other.details_ != null ? other.details_.Clone() : null; + nexusEndpoint_ = other.nexusEndpoint_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ComputeProvider Clone() { + return new ComputeProvider(this); + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 1; + private string type_ = ""; + /// + /// Type of the compute provider. This string is implementation-specific and + /// can be used by implementations to understand how to interpret the + /// contents of the provider_details field. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Type { + get { return type_; } + set { + type_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "details" field. + public const int DetailsFieldNumber = 2; + private global::Temporalio.Api.Common.V1.Payload details_; + /// + /// Contains provider-specific instructions and configuration. + /// For server-implemented providers, use the SDK's default content + /// converter to ensure the server can understand it. + /// For remote-implemented providers, you might use your own content + /// converters according to what the remote endpoints understand. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Common.V1.Payload Details { + get { return details_; } + set { + details_ = value; + } + } + + /// Field number for the "nexus_endpoint" field. + public const int NexusEndpointFieldNumber = 10; + private string nexusEndpoint_ = ""; + /// + /// Optional. If the compute provider is a Nexus service, this should point + /// there. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NexusEndpoint { + get { return nexusEndpoint_; } + set { + nexusEndpoint_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ComputeProvider); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ComputeProvider other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Type != other.Type) return false; + if (!object.Equals(Details, other.Details)) return false; + if (NexusEndpoint != other.NexusEndpoint) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Type.Length != 0) hash ^= Type.GetHashCode(); + if (details_ != null) hash ^= Details.GetHashCode(); + if (NexusEndpoint.Length != 0) hash ^= NexusEndpoint.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Type.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Type); + } + if (details_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Details); + } + if (NexusEndpoint.Length != 0) { + output.WriteRawTag(82); + output.WriteString(NexusEndpoint); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Type.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Type); + } + if (details_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Details); + } + if (NexusEndpoint.Length != 0) { + output.WriteRawTag(82); + output.WriteString(NexusEndpoint); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Type.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Type); + } + if (details_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Details); + } + if (NexusEndpoint.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NexusEndpoint); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ComputeProvider other) { + if (other == null) { + return; + } + if (other.Type.Length != 0) { + Type = other.Type; + } + if (other.details_ != null) { + if (details_ == null) { + Details = new global::Temporalio.Api.Common.V1.Payload(); + } + Details.MergeFrom(other.Details); + } + if (other.NexusEndpoint.Length != 0) { + NexusEndpoint = other.NexusEndpoint; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Type = input.ReadString(); + break; + } + case 18: { + if (details_ == null) { + Details = new global::Temporalio.Api.Common.V1.Payload(); + } + input.ReadMessage(Details); + break; + } + case 82: { + NexusEndpoint = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Type = input.ReadString(); + break; + } + case 18: { + if (details_ == null) { + Details = new global::Temporalio.Api.Common.V1.Payload(); + } + input.ReadMessage(Details); + break; + } + case 82: { + NexusEndpoint = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/src/Temporalio/Api/Compute/V1/Scaler.cs b/src/Temporalio/Api/Compute/V1/Scaler.cs new file mode 100644 index 00000000..9cb506fe --- /dev/null +++ b/src/Temporalio/Api/Compute/V1/Scaler.cs @@ -0,0 +1,300 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: temporal/api/compute/v1/scaler.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Temporalio.Api.Compute.V1 { + + /// Holder for reflection information generated from temporal/api/compute/v1/scaler.proto + public static partial class ScalerReflection { + + #region Descriptor + /// File descriptor for temporal/api/compute/v1/scaler.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ScalerReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiR0ZW1wb3JhbC9hcGkvY29tcHV0ZS92MS9zY2FsZXIucHJvdG8SF3RlbXBv", + "cmFsLmFwaS5jb21wdXRlLnYxGiR0ZW1wb3JhbC9hcGkvY29tbW9uL3YxL21l", + "c3NhZ2UucHJvdG8iTwoNQ29tcHV0ZVNjYWxlchIMCgR0eXBlGAEgASgJEjAK", + "B2RldGFpbHMYAiABKAsyHy50ZW1wb3JhbC5hcGkuY29tbW9uLnYxLlBheWxv", + "YWRCjQEKGmlvLnRlbXBvcmFsLmFwaS5jb21wdXRlLnYxQgtTY2FsZXJQcm90", + "b1ABWiVnby50ZW1wb3JhbC5pby9hcGkvY29tcHV0ZS92MTtjb21wdXRlqgIZ", + "VGVtcG9yYWxpby5BcGkuQ29tcHV0ZS5WMeoCHFRlbXBvcmFsaW86OkFwaTo6", + "Q29tcHV0ZTo6VjFiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Temporalio.Api.Common.V1.MessageReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Compute.V1.ComputeScaler), global::Temporalio.Api.Compute.V1.ComputeScaler.Parser, new[]{ "Type", "Details" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// ComputeScaler instructs the Temporal Service when to scale up or down the number of + /// Workers that comprise a WorkerDeployment. + /// + public sealed partial class ComputeScaler : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ComputeScaler()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Temporalio.Api.Compute.V1.ScalerReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ComputeScaler() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ComputeScaler(ComputeScaler other) : this() { + type_ = other.type_; + details_ = other.details_ != null ? other.details_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ComputeScaler Clone() { + return new ComputeScaler(this); + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 1; + private string type_ = ""; + /// + /// Type of the compute scaler. this string is implementation-specific and + /// can be used by implementations to understand how to interpret the + /// contents of the scaler_details field. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Type { + get { return type_; } + set { + type_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "details" field. + public const int DetailsFieldNumber = 2; + private global::Temporalio.Api.Common.V1.Payload details_; + /// + /// Contains scaler-specific instructions and configuration. + /// For server-implemented scalers, use the SDK's default data + /// converter to ensure the server can understand it. + /// For remote-implemented scalers, you might use your own data + /// converters according to what the remote endpoints understand. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Common.V1.Payload Details { + get { return details_; } + set { + details_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ComputeScaler); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ComputeScaler other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Type != other.Type) return false; + if (!object.Equals(Details, other.Details)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Type.Length != 0) hash ^= Type.GetHashCode(); + if (details_ != null) hash ^= Details.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Type.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Type); + } + if (details_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Details); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Type.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Type); + } + if (details_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Details); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Type.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Type); + } + if (details_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Details); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ComputeScaler other) { + if (other == null) { + return; + } + if (other.Type.Length != 0) { + Type = other.Type; + } + if (other.details_ != null) { + if (details_ == null) { + Details = new global::Temporalio.Api.Common.V1.Payload(); + } + Details.MergeFrom(other.Details); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Type = input.ReadString(); + break; + } + case 18: { + if (details_ == null) { + Details = new global::Temporalio.Api.Common.V1.Payload(); + } + input.ReadMessage(Details); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Type = input.ReadString(); + break; + } + case 18: { + if (details_ == null) { + Details = new global::Temporalio.Api.Common.V1.Payload(); + } + input.ReadMessage(Details); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/src/Temporalio/Api/Deployment/V1/Message.cs b/src/Temporalio/Api/Deployment/V1/Message.cs index b198bf84..1f825722 100644 --- a/src/Temporalio/Api/Deployment/V1/Message.cs +++ b/src/Temporalio/Api/Deployment/V1/Message.cs @@ -28,117 +28,120 @@ static MessageReflection() { "ZW1wb3JhbC5hcGkuZGVwbG95bWVudC52MRofZ29vZ2xlL3Byb3RvYnVmL3Rp", "bWVzdGFtcC5wcm90bxomdGVtcG9yYWwvYXBpL2VudW1zL3YxL2RlcGxveW1l", "bnQucHJvdG8aJnRlbXBvcmFsL2FwaS9lbnVtcy92MS90YXNrX3F1ZXVlLnBy", - "b3RvGiR0ZW1wb3JhbC9hcGkvY29tbW9uL3YxL21lc3NhZ2UucHJvdG8ikQEK", - "F1dvcmtlckRlcGxveW1lbnRPcHRpb25zEhcKD2RlcGxveW1lbnRfbmFtZRgB", - "IAEoCRIQCghidWlsZF9pZBgCIAEoCRJLChZ3b3JrZXJfdmVyc2lvbmluZ19t", - "b2RlGAMgASgOMisudGVtcG9yYWwuYXBpLmVudW1zLnYxLldvcmtlclZlcnNp", - "b25pbmdNb2RlIjMKCkRlcGxveW1lbnQSEwoLc2VyaWVzX25hbWUYASABKAkS", - "EAoIYnVpbGRfaWQYAiABKAkijgQKDkRlcGxveW1lbnRJbmZvEjoKCmRlcGxv", - "eW1lbnQYASABKAsyJi50ZW1wb3JhbC5hcGkuZGVwbG95bWVudC52MS5EZXB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50LnYx", - "LkRlcGxveW1lbnQSLwoLY3JlYXRlX3RpbWUYAiABKAsyGi5nb29nbGUucHJv", - "dG9idWYuVGltZXN0YW1wEhIKCmlzX2N1cnJlbnQYAyABKAgizQcKG1dvcmtl", - "ckRlcGxveW1lbnRWZXJzaW9uSW5mbxITCgd2ZXJzaW9uGAEgASgJQgIYARJE", - "CgZzdGF0dXMYDiABKA4yNC50ZW1wb3JhbC5hcGkuZW51bXMudjEuV29ya2Vy", - "RGVwbG95bWVudFZlcnNpb25TdGF0dXMSTwoSZGVwbG95bWVudF92ZXJzaW9u", - "GAsgASgLMjMudGVtcG9yYWwuYXBpLmRlcGxveW1lbnQudjEuV29ya2VyRGVw", - "bG95bWVudFZlcnNpb24SFwoPZGVwbG95bWVudF9uYW1lGAIgASgJEi8KC2Ny", - "ZWF0ZV90aW1lGAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBI4", - "ChRyb3V0aW5nX2NoYW5nZWRfdGltZRgEIAEoCzIaLmdvb2dsZS5wcm90b2J1", - "Zi5UaW1lc3RhbXASNgoSY3VycmVudF9zaW5jZV90aW1lGAUgASgLMhouZ29v", - "Z2xlLnByb3RvYnVmLlRpbWVzdGFtcBI2ChJyYW1waW5nX3NpbmNlX3RpbWUY", - "BiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEjkKFWZpcnN0X2Fj", - "dGl2YXRpb25fdGltZRgMIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3Rh", - "bXASNQoRbGFzdF9jdXJyZW50X3RpbWUYDyABKAsyGi5nb29nbGUucHJvdG9i", - "dWYuVGltZXN0YW1wEjoKFmxhc3RfZGVhY3RpdmF0aW9uX3RpbWUYDSABKAsy", - "Gi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEhcKD3JhbXBfcGVyY2VudGFn", - "ZRgHIAEoAhJmChB0YXNrX3F1ZXVlX2luZm9zGAggAygLMkwudGVtcG9yYWwu", - "YX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ltZXN0YW1wEksKJ3JhbXBpbmdfdmVyc2lvbl9wZXJjZW50YWdlX2NoYW5n", - "ZWRfdGltZRgGIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASFwoP", - "cmV2aXNpb25fbnVtYmVyGAogASgDIp0BChhJbmhlcml0ZWRBdXRvVXBncmFk", - "ZUluZm8SVgoZc291cmNlX2RlcGxveW1lbnRfdmVyc2lvbhgBIAEoCzIzLnRl", - "bXBvcmFsLmFwaS5kZXBsb3ltZW50LnYxLldvcmtlckRlcGxveW1lbnRWZXJz", - "aW9uEikKIXNvdXJjZV9kZXBsb3ltZW50X3JldmlzaW9uX251bWJlchgCIAEo", - "A0KdAQodaW8udGVtcG9yYWwuYXBpLmRlcGxveW1lbnQudjFCDE1lc3NhZ2VQ", - "cm90b1ABWitnby50ZW1wb3JhbC5pby9hcGkvZGVwbG95bWVudC92MTtkZXBs", - "b3ltZW50qgIcVGVtcG9yYWxpby5BcGkuRGVwbG95bWVudC5WMeoCH1RlbXBv", - "cmFsaW86OkFwaTo6RGVwbG95bWVudDo6VjFiBnByb3RvMw==")); + "b3RvGiR0ZW1wb3JhbC9hcGkvY29tbW9uL3YxL21lc3NhZ2UucHJvdG8aJHRl", + "bXBvcmFsL2FwaS9jb21wdXRlL3YxL2NvbmZpZy5wcm90byKRAQoXV29ya2Vy", + "RGVwbG95bWVudE9wdGlvbnMSFwoPZGVwbG95bWVudF9uYW1lGAEgASgJEhAK", + "CGJ1aWxkX2lkGAIgASgJEksKFndvcmtlcl92ZXJzaW9uaW5nX21vZGUYAyAB", + "KA4yKy50ZW1wb3JhbC5hcGkuZW51bXMudjEuV29ya2VyVmVyc2lvbmluZ01v", + "ZGUiMwoKRGVwbG95bWVudBITCgtzZXJpZXNfbmFtZRgBIAEoCRIQCghidWls", + "ZF9pZBgCIAEoCSKOBAoORGVwbG95bWVudEluZm8SOgoKZGVwbG95bWVudBgB", + "IAEoCzImLnRlbXBvcmFsLmFwaS5kZXBsb3ltZW50LnYxLkRlcGxveW1lbnQS", + "LwoLY3JlYXRlX3RpbWUYAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0", + "YW1wElIKEHRhc2tfcXVldWVfaW5mb3MYAyADKAsyOC50ZW1wb3JhbC5hcGku", + "ZGVwbG95bWVudC52MS5EZXBsb3ltZW50SW5mby5UYXNrUXVldWVJbmZvEkoK", + "CG1ldGFkYXRhGAQgAygLMjgudGVtcG9yYWwuYXBpLmRlcGxveW1lbnQudjEu", + "RGVwbG95bWVudEluZm8uTWV0YWRhdGFFbnRyeRISCgppc19jdXJyZW50GAUg", + "ASgIGlAKDU1ldGFkYXRhRW50cnkSCwoDa2V5GAEgASgJEi4KBXZhbHVlGAIg", + "ASgLMh8udGVtcG9yYWwuYXBpLmNvbW1vbi52MS5QYXlsb2FkOgI4ARqIAQoN", + "VGFza1F1ZXVlSW5mbxIMCgRuYW1lGAEgASgJEjIKBHR5cGUYAiABKA4yJC50", + "ZW1wb3JhbC5hcGkuZW51bXMudjEuVGFza1F1ZXVlVHlwZRI1ChFmaXJzdF9w", + "b2xsZXJfdGltZRgDIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAi", + "6gEKGFVwZGF0ZURlcGxveW1lbnRNZXRhZGF0YRJfCg51cHNlcnRfZW50cmll", + "cxgBIAMoCzJHLnRlbXBvcmFsLmFwaS5kZXBsb3ltZW50LnYxLlVwZGF0ZURl", + "cGxveW1lbnRNZXRhZGF0YS5VcHNlcnRFbnRyaWVzRW50cnkSFgoOcmVtb3Zl", + "X2VudHJpZXMYAiADKAkaVQoSVXBzZXJ0RW50cmllc0VudHJ5EgsKA2tleRgB", + "IAEoCRIuCgV2YWx1ZRgCIAEoCzIfLnRlbXBvcmFsLmFwaS5jb21tb24udjEu", + "UGF5bG9hZDoCOAEilQEKEkRlcGxveW1lbnRMaXN0SW5mbxI6CgpkZXBsb3lt", + "ZW50GAEgASgLMiYudGVtcG9yYWwuYXBpLmRlcGxveW1lbnQudjEuRGVwbG95", + "bWVudBIvCgtjcmVhdGVfdGltZRgCIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5U", + "aW1lc3RhbXASEgoKaXNfY3VycmVudBgDIAEoCCKtCAobV29ya2VyRGVwbG95", + "bWVudFZlcnNpb25JbmZvEhMKB3ZlcnNpb24YASABKAlCAhgBEkQKBnN0YXR1", + "cxgOIAEoDjI0LnRlbXBvcmFsLmFwaS5lbnVtcy52MS5Xb3JrZXJEZXBsb3lt", + "ZW50VmVyc2lvblN0YXR1cxJPChJkZXBsb3ltZW50X3ZlcnNpb24YCyABKAsy", + "My50ZW1wb3JhbC5hcGkuZGVwbG95bWVudC52MS5Xb3JrZXJEZXBsb3ltZW50", + "VmVyc2lvbhIXCg9kZXBsb3ltZW50X25hbWUYAiABKAkSLwoLY3JlYXRlX3Rp", + "bWUYAyABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEjgKFHJvdXRp", + "bmdfY2hhbmdlZF90aW1lGAQgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVz", + "dGFtcBI2ChJjdXJyZW50X3NpbmNlX3RpbWUYBSABKAsyGi5nb29nbGUucHJv", + "dG9idWYuVGltZXN0YW1wEjYKEnJhbXBpbmdfc2luY2VfdGltZRgGIAEoCzIa", + "Lmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASOQoVZmlyc3RfYWN0aXZhdGlv", + "bl90aW1lGAwgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBI1ChFs", + "YXN0X2N1cnJlbnRfdGltZRgPIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1l", + "c3RhbXASOgoWbGFzdF9kZWFjdGl2YXRpb25fdGltZRgNIAEoCzIaLmdvb2ds", + "ZS5wcm90b2J1Zi5UaW1lc3RhbXASFwoPcmFtcF9wZXJjZW50YWdlGAcgASgC", + "EmYKEHRhc2tfcXVldWVfaW5mb3MYCCADKAsyTC50ZW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WUYCCABKAsyGi5nb29n", + "bGUucHJvdG9idWYuVGltZXN0YW1wEjkKFWZpcnN0X2FjdGl2YXRpb25fdGlt", + "ZRgJIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASNQoRbGFzdF9j", + "dXJyZW50X3RpbWUYDCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1w", + "EjoKFmxhc3RfZGVhY3RpdmF0aW9uX3RpbWUYCiABKAsyGi5nb29nbGUucHJv", + "dG9idWYuVGltZXN0YW1wIkQKF1dvcmtlckRlcGxveW1lbnRWZXJzaW9uEhAK", + "CGJ1aWxkX2lkGAEgASgJEhcKD2RlcGxveW1lbnRfbmFtZRgCIAEoCSKtAQoP", + "VmVyc2lvbk1ldGFkYXRhEkkKB2VudHJpZXMYASADKAsyOC50ZW1wb3JhbC5h", + "cGkuZGVwbG95bWVudC52MS5WZXJzaW9uTWV0YWRhdGEuRW50cmllc0VudHJ5", + "Gk8KDEVudHJpZXNFbnRyeRILCgNrZXkYASABKAkSLgoFdmFsdWUYAiABKAsy", + "Hy50ZW1wb3JhbC5hcGkuY29tbW9uLnYxLlBheWxvYWQ6AjgBIokECg1Sb3V0", + "aW5nQ29uZmlnElcKGmN1cnJlbnRfZGVwbG95bWVudF92ZXJzaW9uGAcgASgL", + "MjMudGVtcG9yYWwuYXBpLmRlcGxveW1lbnQudjEuV29ya2VyRGVwbG95bWVu", + "dFZlcnNpb24SGwoPY3VycmVudF92ZXJzaW9uGAEgASgJQgIYARJXChpyYW1w", + "aW5nX2RlcGxveW1lbnRfdmVyc2lvbhgJIAEoCzIzLnRlbXBvcmFsLmFwaS5k", + "ZXBsb3ltZW50LnYxLldvcmtlckRlcGxveW1lbnRWZXJzaW9uEhsKD3JhbXBp", + "bmdfdmVyc2lvbhgCIAEoCUICGAESIgoacmFtcGluZ192ZXJzaW9uX3BlcmNl", + "bnRhZ2UYAyABKAISQAocY3VycmVudF92ZXJzaW9uX2NoYW5nZWRfdGltZRgE", + "IAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASQAoccmFtcGluZ192", + "ZXJzaW9uX2NoYW5nZWRfdGltZRgFIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5U", + "aW1lc3RhbXASSwoncmFtcGluZ192ZXJzaW9uX3BlcmNlbnRhZ2VfY2hhbmdl", + "ZF90aW1lGAYgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIXCg9y", + "ZXZpc2lvbl9udW1iZXIYCiABKAMinQEKGEluaGVyaXRlZEF1dG9VcGdyYWRl", + "SW5mbxJWChlzb3VyY2VfZGVwbG95bWVudF92ZXJzaW9uGAEgASgLMjMudGVt", + "cG9yYWwuYXBpLmRlcGxveW1lbnQudjEuV29ya2VyRGVwbG95bWVudFZlcnNp", + "b24SKQohc291cmNlX2RlcGxveW1lbnRfcmV2aXNpb25fbnVtYmVyGAIgASgD", + "Qp0BCh1pby50ZW1wb3JhbC5hcGkuZGVwbG95bWVudC52MUIMTWVzc2FnZVBy", + "b3RvUAFaK2dvLnRlbXBvcmFsLmlvL2FwaS9kZXBsb3ltZW50L3YxO2RlcGxv", + "eW1lbnSqAhxUZW1wb3JhbGlvLkFwaS5EZXBsb3ltZW50LlYx6gIfVGVtcG9y", + "YWxpbzo6QXBpOjpEZXBsb3ltZW50OjpWMWIGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Temporalio.Api.Enums.V1.DeploymentReflection.Descriptor, global::Temporalio.Api.Enums.V1.TaskQueueReflection.Descriptor, global::Temporalio.Api.Common.V1.MessageReflection.Descriptor, }, + new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Temporalio.Api.Enums.V1.DeploymentReflection.Descriptor, global::Temporalio.Api.Enums.V1.TaskQueueReflection.Descriptor, global::Temporalio.Api.Common.V1.MessageReflection.Descriptor, global::Temporalio.Api.Compute.V1.ConfigReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Deployment.V1.WorkerDeploymentOptions), global::Temporalio.Api.Deployment.V1.WorkerDeploymentOptions.Parser, new[]{ "DeploymentName", "BuildId", "WorkerVersioningMode" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Deployment.V1.Deployment), global::Temporalio.Api.Deployment.V1.Deployment.Parser, new[]{ "SeriesName", "BuildId" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Deployment.V1.DeploymentInfo), global::Temporalio.Api.Deployment.V1.DeploymentInfo.Parser, new[]{ "Deployment", "CreateTime", "TaskQueueInfos", "Metadata", "IsCurrent" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Deployment.V1.DeploymentInfo.Types.TaskQueueInfo), global::Temporalio.Api.Deployment.V1.DeploymentInfo.Types.TaskQueueInfo.Parser, new[]{ "Name", "Type", "FirstPollerTime" }, null, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Deployment.V1.UpdateDeploymentMetadata), global::Temporalio.Api.Deployment.V1.UpdateDeploymentMetadata.Parser, new[]{ "UpsertEntries", "RemoveEntries" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Deployment.V1.DeploymentListInfo), global::Temporalio.Api.Deployment.V1.DeploymentListInfo.Parser, new[]{ "Deployment", "CreateTime", "IsCurrent" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Deployment.V1.WorkerDeploymentVersionInfo), global::Temporalio.Api.Deployment.V1.WorkerDeploymentVersionInfo.Parser, new[]{ "Version", "Status", "DeploymentVersion", "DeploymentName", "CreateTime", "RoutingChangedTime", "CurrentSinceTime", "RampingSinceTime", "FirstActivationTime", "LastCurrentTime", "LastDeactivationTime", "RampPercentage", "TaskQueueInfos", "DrainageInfo", "Metadata" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Deployment.V1.WorkerDeploymentVersionInfo.Types.VersionTaskQueueInfo), global::Temporalio.Api.Deployment.V1.WorkerDeploymentVersionInfo.Types.VersionTaskQueueInfo.Parser, new[]{ "Name", "Type" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Deployment.V1.WorkerDeploymentVersionInfo), global::Temporalio.Api.Deployment.V1.WorkerDeploymentVersionInfo.Parser, new[]{ "Version", "Status", "DeploymentVersion", "DeploymentName", "CreateTime", "RoutingChangedTime", "CurrentSinceTime", "RampingSinceTime", "FirstActivationTime", "LastCurrentTime", "LastDeactivationTime", "RampPercentage", "TaskQueueInfos", "DrainageInfo", "Metadata", "ComputeConfig", "LastModifierIdentity" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Deployment.V1.WorkerDeploymentVersionInfo.Types.VersionTaskQueueInfo), global::Temporalio.Api.Deployment.V1.WorkerDeploymentVersionInfo.Types.VersionTaskQueueInfo.Parser, new[]{ "Name", "Type" }, null, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Deployment.V1.VersionDrainageInfo), global::Temporalio.Api.Deployment.V1.VersionDrainageInfo.Parser, new[]{ "Status", "LastChangedTime", "LastCheckedTime" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Deployment.V1.WorkerDeploymentInfo), global::Temporalio.Api.Deployment.V1.WorkerDeploymentInfo.Parser, new[]{ "Name", "VersionSummaries", "CreateTime", "RoutingConfig", "LastModifierIdentity", "ManagerIdentity", "RoutingConfigUpdateState" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Deployment.V1.WorkerDeploymentInfo.Types.WorkerDeploymentVersionSummary), global::Temporalio.Api.Deployment.V1.WorkerDeploymentInfo.Types.WorkerDeploymentVersionSummary.Parser, new[]{ "Version", "Status", "DeploymentVersion", "CreateTime", "DrainageStatus", "DrainageInfo", "CurrentSinceTime", "RampingSinceTime", "RoutingUpdateTime", "FirstActivationTime", "LastCurrentTime", "LastDeactivationTime" }, null, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Deployment.V1.WorkerDeploymentVersion), global::Temporalio.Api.Deployment.V1.WorkerDeploymentVersion.Parser, new[]{ "BuildId", "DeploymentName" }, null, null, null, null), @@ -1860,6 +1863,8 @@ public WorkerDeploymentVersionInfo(WorkerDeploymentVersionInfo other) : this() { taskQueueInfos_ = other.taskQueueInfos_.Clone(); drainageInfo_ = other.drainageInfo_ != null ? other.drainageInfo_.Clone() : null; metadata_ = other.metadata_ != null ? other.metadata_.Clone() : null; + computeConfig_ = other.computeConfig_ != null ? other.computeConfig_.Clone() : null; + lastModifierIdentity_ = other.lastModifierIdentity_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -1918,6 +1923,9 @@ public string Version { /// Field number for the "deployment_name" field. public const int DeploymentNameFieldNumber = 2; private string deploymentName_ = ""; + /// + /// Deprecated. User deployment_version.deployment_name. + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string DeploymentName { @@ -2108,6 +2116,41 @@ public float RampPercentage { } } + /// Field number for the "compute_config" field. + public const int ComputeConfigFieldNumber = 16; + private global::Temporalio.Api.Compute.V1.ComputeConfig computeConfig_; + /// + /// Optional. Contains the new worker compute configuration for the Worker + /// Deployment. Used for worker scale management. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Compute.V1.ComputeConfig ComputeConfig { + get { return computeConfig_; } + set { + computeConfig_ = value; + } + } + + /// Field number for the "last_modifier_identity" field. + public const int LastModifierIdentityFieldNumber = 17; + private string lastModifierIdentity_ = ""; + /// + /// Identity of the last client who modified the configuration of this Version. + /// As of now, this field only covers changes through the following APIs: + /// - `CreateWorkerDeploymentVersion` + /// - `UpdateWorkerDeploymentVersionComputeConfig` + /// - `UpdateWorkerDeploymentVersionMetadata` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string LastModifierIdentity { + get { return lastModifierIdentity_; } + set { + lastModifierIdentity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -2138,6 +2181,8 @@ public bool Equals(WorkerDeploymentVersionInfo other) { if(!taskQueueInfos_.Equals(other.taskQueueInfos_)) return false; if (!object.Equals(DrainageInfo, other.DrainageInfo)) return false; if (!object.Equals(Metadata, other.Metadata)) return false; + if (!object.Equals(ComputeConfig, other.ComputeConfig)) return false; + if (LastModifierIdentity != other.LastModifierIdentity) return false; return Equals(_unknownFields, other._unknownFields); } @@ -2160,6 +2205,8 @@ public override int GetHashCode() { hash ^= taskQueueInfos_.GetHashCode(); if (drainageInfo_ != null) hash ^= DrainageInfo.GetHashCode(); if (metadata_ != null) hash ^= Metadata.GetHashCode(); + if (computeConfig_ != null) hash ^= ComputeConfig.GetHashCode(); + if (LastModifierIdentity.Length != 0) hash ^= LastModifierIdentity.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -2235,6 +2282,14 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(122); output.WriteMessage(LastCurrentTime); } + if (computeConfig_ != null) { + output.WriteRawTag(130, 1); + output.WriteMessage(ComputeConfig); + } + if (LastModifierIdentity.Length != 0) { + output.WriteRawTag(138, 1); + output.WriteString(LastModifierIdentity); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -2302,6 +2357,14 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(122); output.WriteMessage(LastCurrentTime); } + if (computeConfig_ != null) { + output.WriteRawTag(130, 1); + output.WriteMessage(ComputeConfig); + } + if (LastModifierIdentity.Length != 0) { + output.WriteRawTag(138, 1); + output.WriteString(LastModifierIdentity); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -2355,6 +2418,12 @@ public int CalculateSize() { if (metadata_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Metadata); } + if (computeConfig_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ComputeConfig); + } + if (LastModifierIdentity.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(LastModifierIdentity); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -2440,6 +2509,15 @@ public void MergeFrom(WorkerDeploymentVersionInfo other) { } Metadata.MergeFrom(other.Metadata); } + if (other.computeConfig_ != null) { + if (computeConfig_ == null) { + ComputeConfig = new global::Temporalio.Api.Compute.V1.ComputeConfig(); + } + ComputeConfig.MergeFrom(other.ComputeConfig); + } + if (other.LastModifierIdentity.Length != 0) { + LastModifierIdentity = other.LastModifierIdentity; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -2545,6 +2623,17 @@ public void MergeFrom(pb::CodedInputStream input) { input.ReadMessage(LastCurrentTime); break; } + case 130: { + if (computeConfig_ == null) { + ComputeConfig = new global::Temporalio.Api.Compute.V1.ComputeConfig(); + } + input.ReadMessage(ComputeConfig); + break; + } + case 138: { + LastModifierIdentity = input.ReadString(); + break; + } } } #endif @@ -2650,6 +2739,17 @@ public void MergeFrom(pb::CodedInputStream input) { input.ReadMessage(LastCurrentTime); break; } + case 130: { + if (computeConfig_ == null) { + ComputeConfig = new global::Temporalio.Api.Compute.V1.ComputeConfig(); + } + input.ReadMessage(ComputeConfig); + break; + } + case 138: { + LastModifierIdentity = input.ReadString(); + break; + } } } } @@ -3271,8 +3371,8 @@ public string Name { /// 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) + /// - It has no active pollers (see WorkerDeploymentVersionInfo.pollers_status) + /// - It is drained (see WorkerDeploymentVersionInfo.drainage_status) /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -4847,7 +4947,7 @@ public RoutingConfig Clone() { /// /// 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`.). + /// 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`). /// @@ -4979,7 +5079,7 @@ public float RampingVersionPercentage { public const int RevisionNumberFieldNumber = 10; private long revisionNumber_; /// - /// Monotonically increasing value which is incremented on every mutation + /// 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. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] diff --git a/src/Temporalio/Api/Enums/V1/Deployment.cs b/src/Temporalio/Api/Enums/V1/Deployment.cs index 9f901a57..15f5e6f3 100644 --- a/src/Temporalio/Api/Enums/V1/Deployment.cs +++ b/src/Temporalio/Api/Enums/V1/Deployment.cs @@ -36,17 +36,18 @@ static DeploymentReflection() { "jAEKFFdvcmtlclZlcnNpb25pbmdNb2RlEiYKIldPUktFUl9WRVJTSU9OSU5H", "X01PREVfVU5TUEVDSUZJRUQQABImCiJXT1JLRVJfVkVSU0lPTklOR19NT0RF", "X1VOVkVSU0lPTkVEEAESJAogV09SS0VSX1ZFUlNJT05JTkdfTU9ERV9WRVJT", - "SU9ORUQQAiq5AgodV29ya2VyRGVwbG95bWVudFZlcnNpb25TdGF0dXMSMAos", + "SU9ORUQQAirnAgodV29ya2VyRGVwbG95bWVudFZlcnNpb25TdGF0dXMSMAos", "V09SS0VSX0RFUExPWU1FTlRfVkVSU0lPTl9TVEFUVVNfVU5TUEVDSUZJRUQQ", "ABItCilXT1JLRVJfREVQTE9ZTUVOVF9WRVJTSU9OX1NUQVRVU19JTkFDVElW", "RRABEiwKKFdPUktFUl9ERVBMT1lNRU5UX1ZFUlNJT05fU1RBVFVTX0NVUlJF", "TlQQAhIsCihXT1JLRVJfREVQTE9ZTUVOVF9WRVJTSU9OX1NUQVRVU19SQU1Q", "SU5HEAMSLQopV09SS0VSX0RFUExPWU1FTlRfVkVSU0lPTl9TVEFUVVNfRFJB", "SU5JTkcQBBIsCihXT1JLRVJfREVQTE9ZTUVOVF9WRVJTSU9OX1NUQVRVU19E", - "UkFJTkVEEAVChwEKGGlvLnRlbXBvcmFsLmFwaS5lbnVtcy52MUIPRGVwbG95", - "bWVudFByb3RvUAFaIWdvLnRlbXBvcmFsLmlvL2FwaS9lbnVtcy92MTtlbnVt", - "c6oCF1RlbXBvcmFsaW8uQXBpLkVudW1zLlYx6gIaVGVtcG9yYWxpbzo6QXBp", - "OjpFbnVtczo6VjFiBnByb3RvMw==")); + "UkFJTkVEEAUSLAooV09SS0VSX0RFUExPWU1FTlRfVkVSU0lPTl9TVEFUVVNf", + "Q1JFQVRFRBAGQocBChhpby50ZW1wb3JhbC5hcGkuZW51bXMudjFCD0RlcGxv", + "eW1lbnRQcm90b1ABWiFnby50ZW1wb3JhbC5pby9hcGkvZW51bXMvdjE7ZW51", + "bXOqAhdUZW1wb3JhbGlvLkFwaS5FbnVtcy5WMeoCGlRlbXBvcmFsaW86OkFw", + "aTo6RW51bXM6OlYxYgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Temporalio.Api.Enums.V1.DeploymentReachability), typeof(global::Temporalio.Api.Enums.V1.VersionDrainageStatus), typeof(global::Temporalio.Api.Enums.V1.WorkerVersioningMode), typeof(global::Temporalio.Api.Enums.V1.WorkerDeploymentVersionStatus), }, null, null)); @@ -179,6 +180,11 @@ public enum WorkerDeploymentVersionStatus { /// workflows are closed, they should decommission the version after it has been drained for that duration. /// [pbr::OriginalName("WORKER_DEPLOYMENT_VERSION_STATUS_DRAINED")] Drained = 5, + /// + /// The Worker Deployment Version is created by user (via `CreateWorkerDeploymentVersion` API) + /// but server has not seen any poller for it yet. + /// + [pbr::OriginalName("WORKER_DEPLOYMENT_VERSION_STATUS_CREATED")] Created = 6, } #endregion diff --git a/src/Temporalio/Api/Enums/V1/EventType.cs b/src/Temporalio/Api/Enums/V1/EventType.cs index ffefa2b3..5fa841a2 100644 --- a/src/Temporalio/Api/Enums/V1/EventType.cs +++ b/src/Temporalio/Api/Enums/V1/EventType.cs @@ -25,7 +25,7 @@ static EventTypeReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CiZ0ZW1wb3JhbC9hcGkvZW51bXMvdjEvZXZlbnRfdHlwZS5wcm90bxIVdGVt", - "cG9yYWwuYXBpLmVudW1zLnYxKuAVCglFdmVudFR5cGUSGgoWRVZFTlRfVFlQ", + "cG9yYWwuYXBpLmVudW1zLnYxKp4WCglFdmVudFR5cGUSGgoWRVZFTlRfVFlQ", "RV9VTlNQRUNJRklFRBAAEikKJUVWRU5UX1RZUEVfV09SS0ZMT1dfRVhFQ1VU", "SU9OX1NUQVJURUQQARIrCidFVkVOVF9UWVBFX1dPUktGTE9XX0VYRUNVVElP", "Tl9DT01QTEVURUQQAhIoCiRFVkVOVF9UWVBFX1dPUktGTE9XX0VYRUNVVElP", @@ -87,10 +87,11 @@ static EventTypeReflection() { "T01QTEVURUQQOBI0CjBFVkVOVF9UWVBFX05FWFVTX09QRVJBVElPTl9DQU5D", "RUxfUkVRVUVTVF9GQUlMRUQQORIoCiRFVkVOVF9UWVBFX1dPUktGTE9XX0VY", "RUNVVElPTl9QQVVTRUQQOhIqCiZFVkVOVF9UWVBFX1dPUktGTE9XX0VYRUNV", - "VElPTl9VTlBBVVNFRBA7QoYBChhpby50ZW1wb3JhbC5hcGkuZW51bXMudjFC", - "DkV2ZW50VHlwZVByb3RvUAFaIWdvLnRlbXBvcmFsLmlvL2FwaS9lbnVtcy92", - "MTtlbnVtc6oCF1RlbXBvcmFsaW8uQXBpLkVudW1zLlYx6gIaVGVtcG9yYWxp", - "bzo6QXBpOjpFbnVtczo6VjFiBnByb3RvMw==")); + "VElPTl9VTlBBVVNFRBA7EjwKOEVWRU5UX1RZUEVfV09SS0ZMT1dfRVhFQ1VU", + "SU9OX1RJTUVfU0tJUFBJTkdfVFJBTlNJVElPTkVEEDxChgEKGGlvLnRlbXBv", + "cmFsLmFwaS5lbnVtcy52MUIORXZlbnRUeXBlUHJvdG9QAVohZ28udGVtcG9y", + "YWwuaW8vYXBpL2VudW1zL3YxO2VudW1zqgIXVGVtcG9yYWxpby5BcGkuRW51", + "bXMuVjHqAhpUZW1wb3JhbGlvOjpBcGk6OkVudW1zOjpWMWIGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Temporalio.Api.Enums.V1.EventType), }, null, null)); @@ -385,6 +386,10 @@ public enum EventType { /// An event that indicates that the previously paused workflow execution has been unpaused. /// [pbr::OriginalName("EVENT_TYPE_WORKFLOW_EXECUTION_UNPAUSED")] WorkflowExecutionUnpaused = 59, + /// + /// An event that indicates time skipping advanced time or was disabled automatically after a bound was reached. + /// + [pbr::OriginalName("EVENT_TYPE_WORKFLOW_EXECUTION_TIME_SKIPPING_TRANSITIONED")] WorkflowExecutionTimeSkippingTransitioned = 60, } #endregion diff --git a/src/Temporalio/Api/Enums/V1/Nexus.cs b/src/Temporalio/Api/Enums/V1/Nexus.cs index 8d59b893..54f5ffaa 100644 --- a/src/Temporalio/Api/Enums/V1/Nexus.cs +++ b/src/Temporalio/Api/Enums/V1/Nexus.cs @@ -29,13 +29,34 @@ static NexusReflection() { "aW9yEjIKLk5FWFVTX0hBTkRMRVJfRVJST1JfUkVUUllfQkVIQVZJT1JfVU5T", "UEVDSUZJRUQQABIwCixORVhVU19IQU5ETEVSX0VSUk9SX1JFVFJZX0JFSEFW", "SU9SX1JFVFJZQUJMRRABEjQKME5FWFVTX0hBTkRMRVJfRVJST1JfUkVUUllf", - "QkVIQVZJT1JfTk9OX1JFVFJZQUJMRRACQoIBChhpby50ZW1wb3JhbC5hcGku", - "ZW51bXMudjFCCk5leHVzUHJvdG9QAVohZ28udGVtcG9yYWwuaW8vYXBpL2Vu", - "dW1zL3YxO2VudW1zqgIXVGVtcG9yYWxpby5BcGkuRW51bXMuVjHqAhpUZW1w", - "b3JhbGlvOjpBcGk6OkVudW1zOjpWMWIGcHJvdG8z")); + "QkVIQVZJT1JfTk9OX1JFVFJZQUJMRRACKuwCCh1OZXh1c09wZXJhdGlvbkV4", + "ZWN1dGlvblN0YXR1cxIwCixORVhVU19PUEVSQVRJT05fRVhFQ1VUSU9OX1NU", + "QVRVU19VTlNQRUNJRklFRBAAEiwKKE5FWFVTX09QRVJBVElPTl9FWEVDVVRJ", + "T05fU1RBVFVTX1JVTk5JTkcQARIuCipORVhVU19PUEVSQVRJT05fRVhFQ1VU", + "SU9OX1NUQVRVU19DT01QTEVURUQQAhIrCidORVhVU19PUEVSQVRJT05fRVhF", + "Q1VUSU9OX1NUQVRVU19GQUlMRUQQAxItCilORVhVU19PUEVSQVRJT05fRVhF", + "Q1VUSU9OX1NUQVRVU19DQU5DRUxFRBAEEi8KK05FWFVTX09QRVJBVElPTl9F", + "WEVDVVRJT05fU1RBVFVTX1RFUk1JTkFURUQQBRIuCipORVhVU19PUEVSQVRJ", + "T05fRVhFQ1VUSU9OX1NUQVRVU19USU1FRF9PVVQQBiqUAQoXTmV4dXNPcGVy", + "YXRpb25XYWl0U3RhZ2USKgomTkVYVVNfT1BFUkFUSU9OX1dBSVRfU1RBR0Vf", + "VU5TUEVDSUZJRUQQABImCiJORVhVU19PUEVSQVRJT05fV0FJVF9TVEFHRV9T", + "VEFSVEVEEAESJQohTkVYVVNfT1BFUkFUSU9OX1dBSVRfU1RBR0VfQ0xPU0VE", + "EAIq+gEKG05leHVzT3BlcmF0aW9uSWRSZXVzZVBvbGljeRIvCitORVhVU19P", + "UEVSQVRJT05fSURfUkVVU0VfUE9MSUNZX1VOU1BFQ0lGSUVEEAASMwovTkVY", + "VVNfT1BFUkFUSU9OX0lEX1JFVVNFX1BPTElDWV9BTExPV19EVVBMSUNBVEUQ", + "ARI/CjtORVhVU19PUEVSQVRJT05fSURfUkVVU0VfUE9MSUNZX0FMTE9XX0RV", + "UExJQ0FURV9GQUlMRURfT05MWRACEjQKME5FWFVTX09QRVJBVElPTl9JRF9S", + "RVVTRV9QT0xJQ1lfUkVKRUNUX0RVUExJQ0FURRADKrYBCh5OZXh1c09wZXJh", + "dGlvbklkQ29uZmxpY3RQb2xpY3kSMgouTkVYVVNfT1BFUkFUSU9OX0lEX0NP", + "TkZMSUNUX1BPTElDWV9VTlNQRUNJRklFRBAAEisKJ05FWFVTX09QRVJBVElP", + "Tl9JRF9DT05GTElDVF9QT0xJQ1lfRkFJTBABEjMKL05FWFVTX09QRVJBVElP", + "Tl9JRF9DT05GTElDVF9QT0xJQ1lfVVNFX0VYSVNUSU5HEAJCggEKGGlvLnRl", + "bXBvcmFsLmFwaS5lbnVtcy52MUIKTmV4dXNQcm90b1ABWiFnby50ZW1wb3Jh", + "bC5pby9hcGkvZW51bXMvdjE7ZW51bXOqAhdUZW1wb3JhbGlvLkFwaS5FbnVt", + "cy5WMeoCGlRlbXBvcmFsaW86OkFwaTo6RW51bXM6OlYxYgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Temporalio.Api.Enums.V1.NexusHandlerErrorRetryBehavior), }, null, null)); + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Temporalio.Api.Enums.V1.NexusHandlerErrorRetryBehavior), typeof(global::Temporalio.Api.Enums.V1.NexusOperationExecutionStatus), typeof(global::Temporalio.Api.Enums.V1.NexusOperationWaitStage), typeof(global::Temporalio.Api.Enums.V1.NexusOperationIdReusePolicy), typeof(global::Temporalio.Api.Enums.V1.NexusOperationIdConflictPolicy), }, null, null)); } #endregion @@ -58,6 +79,101 @@ public enum NexusHandlerErrorRetryBehavior { [pbr::OriginalName("NEXUS_HANDLER_ERROR_RETRY_BEHAVIOR_NON_RETRYABLE")] NonRetryable = 2, } + /// + /// Status of a standalone Nexus operation execution. + /// The status is updated once, when the operation is originally scheduled, and again when the + /// operation reaches a terminal status. + /// (-- api-linter: core::0216::synonyms=disabled + /// aip.dev/not-precedent: Named consistently with WorkflowExecutionStatus. --) + /// + public enum NexusOperationExecutionStatus { + [pbr::OriginalName("NEXUS_OPERATION_EXECUTION_STATUS_UNSPECIFIED")] Unspecified = 0, + /// + /// The operation is not in a terminal status. The operation may be attempting to start, + /// backing off between attempts, or already started. + /// + [pbr::OriginalName("NEXUS_OPERATION_EXECUTION_STATUS_RUNNING")] Running = 1, + /// + /// The operation completed successfully. + /// + [pbr::OriginalName("NEXUS_OPERATION_EXECUTION_STATUS_COMPLETED")] Completed = 2, + /// + /// The operation completed with failure. + /// + [pbr::OriginalName("NEXUS_OPERATION_EXECUTION_STATUS_FAILED")] Failed = 3, + /// + /// The operation completed as canceled. + /// Requesting to cancel an operation does not automatically transition the operation to canceled status, depending + /// on the current operation status and the cancelation type used. + /// + [pbr::OriginalName("NEXUS_OPERATION_EXECUTION_STATUS_CANCELED")] Canceled = 4, + /// + /// The operation was terminated. Termination happens immediately without notifying the handler. + /// + [pbr::OriginalName("NEXUS_OPERATION_EXECUTION_STATUS_TERMINATED")] Terminated = 5, + /// + /// The operation has timed out by reaching one of the specified timeouts. + /// + [pbr::OriginalName("NEXUS_OPERATION_EXECUTION_STATUS_TIMED_OUT")] TimedOut = 6, + } + + /// + /// Stage that can be specified when waiting on a nexus operation. + /// + public enum NexusOperationWaitStage { + [pbr::OriginalName("NEXUS_OPERATION_WAIT_STAGE_UNSPECIFIED")] Unspecified = 0, + /// + /// Wait for the operation to be started. + /// + [pbr::OriginalName("NEXUS_OPERATION_WAIT_STAGE_STARTED")] Started = 1, + /// + /// Wait for the operation to be in a terminal state, either successful or unsuccessful. + /// + [pbr::OriginalName("NEXUS_OPERATION_WAIT_STAGE_CLOSED")] Closed = 2, + } + + /// + /// Defines whether to allow re-using an operation ID from a previously *closed* Nexus operation. + /// If the request is denied, the server returns a `NexusOperationAlreadyStarted` error. + /// + /// See `NexusOperationIdConflictPolicy` for handling ID duplication with a *running* operation. + /// + public enum NexusOperationIdReusePolicy { + [pbr::OriginalName("NEXUS_OPERATION_ID_REUSE_POLICY_UNSPECIFIED")] Unspecified = 0, + /// + /// Always allow starting an operation using the same operation ID. + /// + [pbr::OriginalName("NEXUS_OPERATION_ID_REUSE_POLICY_ALLOW_DUPLICATE")] AllowDuplicate = 1, + /// + /// Allow starting an operation using the same ID only when the last operation's final state is one + /// of {failed, canceled, terminated, timed out}. + /// + [pbr::OriginalName("NEXUS_OPERATION_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY")] AllowDuplicateFailedOnly = 2, + /// + /// Do not permit re-use of the ID for this operation. Future start requests could potentially change the policy, + /// allowing re-use of the ID. + /// + [pbr::OriginalName("NEXUS_OPERATION_ID_REUSE_POLICY_REJECT_DUPLICATE")] RejectDuplicate = 3, + } + + /// + /// Defines what to do when trying to start a Nexus operation with the same ID as a *running* operation. + /// Note that it is *never* valid to have two running instances of the same operation ID. + /// + /// See `NexusOperationIdReusePolicy` for handling operation ID duplication with a *closed* operation. + /// + public enum NexusOperationIdConflictPolicy { + [pbr::OriginalName("NEXUS_OPERATION_ID_CONFLICT_POLICY_UNSPECIFIED")] Unspecified = 0, + /// + /// Don't start a new operation; instead return `NexusOperationAlreadyStarted` error. + /// + [pbr::OriginalName("NEXUS_OPERATION_ID_CONFLICT_POLICY_FAIL")] Fail = 1, + /// + /// Don't start a new operation; instead return a handle for the running operation. + /// + [pbr::OriginalName("NEXUS_OPERATION_ID_CONFLICT_POLICY_USE_EXISTING")] UseExisting = 2, + } + #endregion } diff --git a/src/Temporalio/Api/ErrorDetails/V1/Message.cs b/src/Temporalio/Api/ErrorDetails/V1/Message.cs index 85ec22ab..d209c5db 100644 --- a/src/Temporalio/Api/ErrorDetails/V1/Message.cs +++ b/src/Temporalio/Api/ErrorDetails/V1/Message.cs @@ -64,6 +64,8 @@ static MessageReflection() { "YXRpb25TdGF0dXMSDAoEY29kZRgBIAEoBRIPCgdtZXNzYWdlGAIgASgJEiUK", "B2RldGFpbHMYAyADKAsyFC5nb29nbGUucHJvdG9idWYuQW55IlIKJkFjdGl2", "aXR5RXhlY3V0aW9uQWxyZWFkeVN0YXJ0ZWRGYWlsdXJlEhgKEHN0YXJ0X3Jl", + "cXVlc3RfaWQYASABKAkSDgoGcnVuX2lkGAIgASgJIlgKLE5leHVzT3BlcmF0", + "aW9uRXhlY3V0aW9uQWxyZWFkeVN0YXJ0ZWRGYWlsdXJlEhgKEHN0YXJ0X3Jl", "cXVlc3RfaWQYASABKAkSDgoGcnVuX2lkGAIgASgJQqcBCh9pby50ZW1wb3Jh", "bC5hcGkuZXJyb3JkZXRhaWxzLnYxQgxNZXNzYWdlUHJvdG9QAVovZ28udGVt", "cG9yYWwuaW8vYXBpL2Vycm9yZGV0YWlscy92MTtlcnJvcmRldGFpbHOqAh5U", @@ -89,7 +91,8 @@ static MessageReflection() { new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.ErrorDetails.V1.WorkflowNotReadyFailure), global::Temporalio.Api.ErrorDetails.V1.WorkflowNotReadyFailure.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.ErrorDetails.V1.NewerBuildExistsFailure), global::Temporalio.Api.ErrorDetails.V1.NewerBuildExistsFailure.Parser, new[]{ "DefaultBuildId" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.ErrorDetails.V1.MultiOperationExecutionFailure), global::Temporalio.Api.ErrorDetails.V1.MultiOperationExecutionFailure.Parser, new[]{ "Statuses" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.ErrorDetails.V1.MultiOperationExecutionFailure.Types.OperationStatus), global::Temporalio.Api.ErrorDetails.V1.MultiOperationExecutionFailure.Types.OperationStatus.Parser, new[]{ "Code", "Message", "Details" }, null, null, null, null)}), - new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.ErrorDetails.V1.ActivityExecutionAlreadyStartedFailure), global::Temporalio.Api.ErrorDetails.V1.ActivityExecutionAlreadyStartedFailure.Parser, new[]{ "StartRequestId", "RunId" }, null, null, null, null) + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.ErrorDetails.V1.ActivityExecutionAlreadyStartedFailure), global::Temporalio.Api.ErrorDetails.V1.ActivityExecutionAlreadyStartedFailure.Parser, new[]{ "StartRequestId", "RunId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.ErrorDetails.V1.NexusOperationExecutionAlreadyStartedFailure), global::Temporalio.Api.ErrorDetails.V1.NexusOperationExecutionAlreadyStartedFailure.Parser, new[]{ "StartRequestId", "RunId" }, null, null, null, null) })); } #endregion @@ -4133,6 +4136,237 @@ public void MergeFrom(pb::CodedInputStream input) { } + /// + /// An error indicating that a Nexus operation failed to start. Returned when there is an existing operation with the + /// given operation ID, and the given ID reuse and conflict policies do not permit starting a new one or attaching to an + /// existing one. + /// + public sealed partial class NexusOperationExecutionAlreadyStartedFailure : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NexusOperationExecutionAlreadyStartedFailure()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Temporalio.Api.ErrorDetails.V1.MessageReflection.Descriptor.MessageTypes[18]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NexusOperationExecutionAlreadyStartedFailure() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NexusOperationExecutionAlreadyStartedFailure(NexusOperationExecutionAlreadyStartedFailure other) : this() { + startRequestId_ = other.startRequestId_; + runId_ = other.runId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NexusOperationExecutionAlreadyStartedFailure Clone() { + return new NexusOperationExecutionAlreadyStartedFailure(this); + } + + /// Field number for the "start_request_id" field. + public const int StartRequestIdFieldNumber = 1; + private string startRequestId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string StartRequestId { + get { return startRequestId_; } + set { + startRequestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "run_id" field. + public const int RunIdFieldNumber = 2; + private string runId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RunId { + get { return runId_; } + set { + runId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as NexusOperationExecutionAlreadyStartedFailure); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(NexusOperationExecutionAlreadyStartedFailure other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (StartRequestId != other.StartRequestId) return false; + if (RunId != other.RunId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (StartRequestId.Length != 0) hash ^= StartRequestId.GetHashCode(); + if (RunId.Length != 0) hash ^= RunId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (StartRequestId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(StartRequestId); + } + if (RunId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(RunId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (StartRequestId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(StartRequestId); + } + if (RunId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(RunId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (StartRequestId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(StartRequestId); + } + if (RunId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RunId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(NexusOperationExecutionAlreadyStartedFailure other) { + if (other == null) { + return; + } + if (other.StartRequestId.Length != 0) { + StartRequestId = other.StartRequestId; + } + if (other.RunId.Length != 0) { + RunId = other.RunId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + StartRequestId = input.ReadString(); + break; + } + case 18: { + RunId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + StartRequestId = input.ReadString(); + break; + } + case 18: { + RunId = input.ReadString(); + break; + } + } + } + } + #endif + + } + #endregion } diff --git a/src/Temporalio/Api/Failure/V1/Message.cs b/src/Temporalio/Api/Failure/V1/Message.cs index 857840eb..25371c99 100644 --- a/src/Temporalio/Api/Failure/V1/Message.cs +++ b/src/Temporalio/Api/Failure/V1/Message.cs @@ -37,65 +37,66 @@ static MessageReflection() { "LnYxLkFwcGxpY2F0aW9uRXJyb3JDYXRlZ29yeSKQAQoSVGltZW91dEZhaWx1", "cmVJbmZvEjgKDHRpbWVvdXRfdHlwZRgBIAEoDjIiLnRlbXBvcmFsLmFwaS5l", "bnVtcy52MS5UaW1lb3V0VHlwZRJAChZsYXN0X2hlYXJ0YmVhdF9kZXRhaWxz", - "GAIgASgLMiAudGVtcG9yYWwuYXBpLmNvbW1vbi52MS5QYXlsb2FkcyJIChND", + "GAIgASgLMiAudGVtcG9yYWwuYXBpLmNvbW1vbi52MS5QYXlsb2FkcyJaChND", "YW5jZWxlZEZhaWx1cmVJbmZvEjEKB2RldGFpbHMYASABKAsyIC50ZW1wb3Jh", - "bC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VjHqAhxU", + "ZW1wb3JhbGlvOjpBcGk6OkZhaWx1cmU6OlYxYgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Temporalio.Api.Common.V1.MessageReflection.Descriptor, global::Temporalio.Api.Enums.V1.WorkflowReflection.Descriptor, global::Temporalio.Api.Enums.V1.NexusReflection.Descriptor, global::Temporalio.Api.Enums.V1.CommonReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.DurationReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Failure.V1.ApplicationFailureInfo), global::Temporalio.Api.Failure.V1.ApplicationFailureInfo.Parser, new[]{ "Type", "NonRetryable", "Details", "NextRetryDelay", "Category" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Failure.V1.TimeoutFailureInfo), global::Temporalio.Api.Failure.V1.TimeoutFailureInfo.Parser, new[]{ "TimeoutType", "LastHeartbeatDetails" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Failure.V1.CanceledFailureInfo), global::Temporalio.Api.Failure.V1.CanceledFailureInfo.Parser, new[]{ "Details" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Failure.V1.TerminatedFailureInfo), global::Temporalio.Api.Failure.V1.TerminatedFailureInfo.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Failure.V1.CanceledFailureInfo), global::Temporalio.Api.Failure.V1.CanceledFailureInfo.Parser, new[]{ "Details", "Identity" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Failure.V1.TerminatedFailureInfo), global::Temporalio.Api.Failure.V1.TerminatedFailureInfo.Parser, new[]{ "Identity" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Failure.V1.ServerFailureInfo), global::Temporalio.Api.Failure.V1.ServerFailureInfo.Parser, new[]{ "NonRetryable" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Failure.V1.ResetWorkflowFailureInfo), global::Temporalio.Api.Failure.V1.ResetWorkflowFailureInfo.Parser, new[]{ "LastHeartbeatDetails" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Failure.V1.ActivityFailureInfo), global::Temporalio.Api.Failure.V1.ActivityFailureInfo.Parser, new[]{ "ScheduledEventId", "StartedEventId", "Identity", "ActivityType", "ActivityId", "RetryState" }, null, null, null, null), @@ -741,6 +742,7 @@ public CanceledFailureInfo() { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CanceledFailureInfo(CanceledFailureInfo other) : this() { details_ = other.details_ != null ? other.details_.Clone() : null; + identity_ = other.identity_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -762,6 +764,21 @@ public CanceledFailureInfo Clone() { } } + /// Field number for the "identity" field. + public const int IdentityFieldNumber = 2; + private string identity_ = ""; + /// + /// The identity of the worker or client that requested the cancellation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Identity { + get { return identity_; } + set { + identity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -778,6 +795,7 @@ public bool Equals(CanceledFailureInfo other) { return true; } if (!object.Equals(Details, other.Details)) return false; + if (Identity != other.Identity) return false; return Equals(_unknownFields, other._unknownFields); } @@ -786,6 +804,7 @@ public bool Equals(CanceledFailureInfo other) { public override int GetHashCode() { int hash = 1; if (details_ != null) hash ^= Details.GetHashCode(); + if (Identity.Length != 0) hash ^= Identity.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -808,6 +827,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteMessage(Details); } + if (Identity.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Identity); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -822,6 +845,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteMessage(Details); } + if (Identity.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Identity); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -835,6 +862,9 @@ public int CalculateSize() { if (details_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Details); } + if (Identity.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Identity); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -853,6 +883,9 @@ public void MergeFrom(CanceledFailureInfo other) { } Details.MergeFrom(other.Details); } + if (other.Identity.Length != 0) { + Identity = other.Identity; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -875,6 +908,10 @@ public void MergeFrom(pb::CodedInputStream input) { input.ReadMessage(Details); break; } + case 18: { + Identity = input.ReadString(); + break; + } } } #endif @@ -897,6 +934,10 @@ public void MergeFrom(pb::CodedInputStream input) { input.ReadMessage(Details); break; } + case 18: { + Identity = input.ReadString(); + break; + } } } } @@ -938,6 +979,7 @@ public TerminatedFailureInfo() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TerminatedFailureInfo(TerminatedFailureInfo other) : this() { + identity_ = other.identity_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -947,6 +989,21 @@ public TerminatedFailureInfo Clone() { return new TerminatedFailureInfo(this); } + /// Field number for the "identity" field. + public const int IdentityFieldNumber = 1; + private string identity_ = ""; + /// + /// The identity of the worker or client that requested the termination. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Identity { + get { return identity_; } + set { + identity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -962,6 +1019,7 @@ public bool Equals(TerminatedFailureInfo other) { if (ReferenceEquals(other, this)) { return true; } + if (Identity != other.Identity) return false; return Equals(_unknownFields, other._unknownFields); } @@ -969,6 +1027,7 @@ public bool Equals(TerminatedFailureInfo other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; + if (Identity.Length != 0) hash ^= Identity.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -987,6 +1046,10 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else + if (Identity.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Identity); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -997,6 +1060,10 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Identity.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Identity); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -1007,6 +1074,9 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; + if (Identity.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Identity); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -1019,6 +1089,9 @@ public void MergeFrom(TerminatedFailureInfo other) { if (other == null) { return; } + if (other.Identity.Length != 0) { + Identity = other.Identity; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -1034,6 +1107,10 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; + case 10: { + Identity = input.ReadString(); + break; + } } } #endif @@ -1049,6 +1126,10 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; + case 10: { + Identity = input.ReadString(); + break; + } } } } diff --git a/src/Temporalio/Api/History/V1/Message.cs b/src/Temporalio/Api/History/V1/Message.cs index 4a631edf..951ee83b 100644 --- a/src/Temporalio/Api/History/V1/Message.cs +++ b/src/Temporalio/Api/History/V1/Message.cs @@ -360,7 +360,7 @@ static MessageReflection() { "b24YAiABKAsyKS50ZW1wb3JhbC5hcGkuY29tbW9uLnYxLldvcmtmbG93RXhl", "Y3V0aW9uEjsKDXdvcmtmbG93X3R5cGUYAyABKAsyJC50ZW1wb3JhbC5hcGku", "Y29tbW9uLnYxLldvcmtmbG93VHlwZRIaChJpbml0aWF0ZWRfZXZlbnRfaWQY", - "BCABKAMSGAoQc3RhcnRlZF9ldmVudF9pZBgFIAEoAyLKAgouV29ya2Zsb3dF", + "BCABKAMSGAoQc3RhcnRlZF9ldmVudF9pZBgFIAEoAyKWAwouV29ya2Zsb3dF", "eGVjdXRpb25PcHRpb25zVXBkYXRlZEV2ZW50QXR0cmlidXRlcxJJChN2ZXJz", "aW9uaW5nX292ZXJyaWRlGAEgASgLMiwudGVtcG9yYWwuYXBpLndvcmtmbG93", "LnYxLlZlcnNpb25pbmdPdmVycmlkZRIhChl1bnNldF92ZXJzaW9uaW5nX292", @@ -368,258 +368,269 @@ static MessageReflection() { "YXR0YWNoZWRfY29tcGxldGlvbl9jYWxsYmFja3MYBCADKAsyIC50ZW1wb3Jh", "bC5hcGkuY29tbW9uLnYxLkNhbGxiYWNrEhAKCGlkZW50aXR5GAUgASgJEjIK", "CHByaW9yaXR5GAYg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RXZl", + "bnRBdHRyaWJ1dGVzSAASdQoqd29ya2Zsb3dfZXhlY3V0aW9uX3BhdXNlZF9l", + "dmVudF9hdHRyaWJ1dGVzGD8gASgLMj8udGVtcG9yYWwuYXBpLmhpc3Rvcnku", + "djEuV29ya2Zsb3dFeGVjdXRpb25QYXVzZWRFdmVudEF0dHJpYnV0ZXNIABJ5", + "Cix3b3JrZmxvd19leGVjdXRpb25fdW5wYXVzZWRfZXZlbnRfYXR0cmlidXRl", + "cxhAIAEoCzJBLnRlbXBvcmFsLmFwaS5oaXN0b3J5LnYxLldvcmtmbG93RXhl", + "Y3V0aW9uVW5wYXVzZWRFdmVudEF0dHJpYnV0ZXNIABKbAQo+d29ya2Zsb3df", + "ZXhlY3V0aW9uX3RpbWVfc2tpcHBpbmdfdHJhbnNpdGlvbmVkX2V2ZW50X2F0", + "dHJpYnV0ZXMYQSABKAsyUS50ZW1wb3JhbC5hcGkuaGlzdG9yeS52MS5Xb3Jr", + "Zmxvd0V4ZWN1dGlvblRpbWVTa2lwcGluZ1RyYW5zaXRpb25lZEV2ZW50QXR0", + "cmlidXRlc0gAQgwKCmF0dHJpYnV0ZXMiQAoHSGlzdG9yeRI1CgZldmVudHMY", + "ASADKAsyJS50ZW1wb3JhbC5hcGkuaGlzdG9yeS52MS5IaXN0b3J5RXZlbnRC", + "jgEKGmlvLnRlbXBvcmFsLmFwaS5oaXN0b3J5LnYxQgxNZXNzYWdlUHJvdG9Q", + "AVolZ28udGVtcG9yYWwuaW8vYXBpL2hpc3RvcnkvdjE7aGlzdG9yeaoCGVRl", + "bXBvcmFsaW8uQXBpLkhpc3RvcnkuVjHqAhxUZW1wb3JhbGlvOjpBcGk6Okhp", + "c3Rvcnk6OlYxYgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.DurationReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Temporalio.Api.Enums.V1.EventTypeReflection.Descriptor, global::Temporalio.Api.Enums.V1.FailedCauseReflection.Descriptor, global::Temporalio.Api.Enums.V1.UpdateReflection.Descriptor, global::Temporalio.Api.Enums.V1.WorkflowReflection.Descriptor, global::Temporalio.Api.Common.V1.MessageReflection.Descriptor, global::Temporalio.Api.Deployment.V1.MessageReflection.Descriptor, global::Temporalio.Api.Failure.V1.MessageReflection.Descriptor, global::Temporalio.Api.TaskQueue.V1.MessageReflection.Descriptor, global::Temporalio.Api.Update.V1.MessageReflection.Descriptor, global::Temporalio.Api.Workflow.V1.MessageReflection.Descriptor, global::Temporalio.Api.Sdk.V1.TaskCompleteMetadataReflection.Descriptor, global::Temporalio.Api.Sdk.V1.UserMetadataReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { @@ -665,7 +676,7 @@ static MessageReflection() { new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.History.V1.ChildWorkflowExecutionCanceledEventAttributes), global::Temporalio.Api.History.V1.ChildWorkflowExecutionCanceledEventAttributes.Parser, new[]{ "Details", "Namespace", "NamespaceId", "WorkflowExecution", "WorkflowType", "InitiatedEventId", "StartedEventId" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.History.V1.ChildWorkflowExecutionTimedOutEventAttributes), global::Temporalio.Api.History.V1.ChildWorkflowExecutionTimedOutEventAttributes.Parser, new[]{ "Namespace", "NamespaceId", "WorkflowExecution", "WorkflowType", "InitiatedEventId", "StartedEventId", "RetryState" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.History.V1.ChildWorkflowExecutionTerminatedEventAttributes), global::Temporalio.Api.History.V1.ChildWorkflowExecutionTerminatedEventAttributes.Parser, new[]{ "Namespace", "NamespaceId", "WorkflowExecution", "WorkflowType", "InitiatedEventId", "StartedEventId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.History.V1.WorkflowExecutionOptionsUpdatedEventAttributes), global::Temporalio.Api.History.V1.WorkflowExecutionOptionsUpdatedEventAttributes.Parser, new[]{ "VersioningOverride", "UnsetVersioningOverride", "AttachedRequestId", "AttachedCompletionCallbacks", "Identity", "Priority" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.History.V1.WorkflowExecutionOptionsUpdatedEventAttributes), global::Temporalio.Api.History.V1.WorkflowExecutionOptionsUpdatedEventAttributes.Parser, new[]{ "VersioningOverride", "UnsetVersioningOverride", "AttachedRequestId", "AttachedCompletionCallbacks", "Identity", "Priority", "TimeSkippingConfig" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.History.V1.WorkflowPropertiesModifiedExternallyEventAttributes), global::Temporalio.Api.History.V1.WorkflowPropertiesModifiedExternallyEventAttributes.Parser, new[]{ "NewTaskQueue", "NewWorkflowTaskTimeout", "NewWorkflowRunTimeout", "NewWorkflowExecutionTimeout", "UpsertedMemo" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.History.V1.ActivityPropertiesModifiedExternallyEventAttributes), global::Temporalio.Api.History.V1.ActivityPropertiesModifiedExternallyEventAttributes.Parser, new[]{ "ScheduledEventId", "NewRetryPolicy" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.History.V1.WorkflowExecutionUpdateAcceptedEventAttributes), global::Temporalio.Api.History.V1.WorkflowExecutionUpdateAcceptedEventAttributes.Parser, new[]{ "ProtocolInstanceId", "AcceptedRequestMessageId", "AcceptedRequestSequencingEventId", "AcceptedRequest" }, null, null, null, null), @@ -674,6 +685,7 @@ static MessageReflection() { new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.History.V1.WorkflowExecutionUpdateAdmittedEventAttributes), global::Temporalio.Api.History.V1.WorkflowExecutionUpdateAdmittedEventAttributes.Parser, new[]{ "Request", "Origin" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.History.V1.WorkflowExecutionPausedEventAttributes), global::Temporalio.Api.History.V1.WorkflowExecutionPausedEventAttributes.Parser, new[]{ "Identity", "Reason", "RequestId" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.History.V1.WorkflowExecutionUnpausedEventAttributes), global::Temporalio.Api.History.V1.WorkflowExecutionUnpausedEventAttributes.Parser, new[]{ "Identity", "Reason", "RequestId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.History.V1.WorkflowExecutionTimeSkippingTransitionedEventAttributes), global::Temporalio.Api.History.V1.WorkflowExecutionTimeSkippingTransitionedEventAttributes.Parser, new[]{ "TargetTime", "DisabledAfterBound", "WallClockTime" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.History.V1.NexusOperationScheduledEventAttributes), global::Temporalio.Api.History.V1.NexusOperationScheduledEventAttributes.Parser, new[]{ "Endpoint", "Service", "Operation", "Input", "ScheduleToCloseTimeout", "NexusHeader", "WorkflowTaskCompletedEventId", "RequestId", "EndpointId", "ScheduleToStartTimeout", "StartToCloseTimeout" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.History.V1.NexusOperationStartedEventAttributes), global::Temporalio.Api.History.V1.NexusOperationStartedEventAttributes.Parser, new[]{ "ScheduledEventId", "OperationId", "RequestId", "OperationToken" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.History.V1.NexusOperationCompletedEventAttributes), global::Temporalio.Api.History.V1.NexusOperationCompletedEventAttributes.Parser, new[]{ "ScheduledEventId", "Result", "RequestId" }, null, null, null, null), @@ -683,7 +695,7 @@ static MessageReflection() { new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.History.V1.NexusOperationCancelRequestedEventAttributes), global::Temporalio.Api.History.V1.NexusOperationCancelRequestedEventAttributes.Parser, new[]{ "ScheduledEventId", "WorkflowTaskCompletedEventId" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.History.V1.NexusOperationCancelRequestCompletedEventAttributes), global::Temporalio.Api.History.V1.NexusOperationCancelRequestCompletedEventAttributes.Parser, new[]{ "RequestedEventId", "WorkflowTaskCompletedEventId", "ScheduledEventId" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.History.V1.NexusOperationCancelRequestFailedEventAttributes), global::Temporalio.Api.History.V1.NexusOperationCancelRequestFailedEventAttributes.Parser, new[]{ "RequestedEventId", "WorkflowTaskCompletedEventId", "Failure", "ScheduledEventId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.History.V1.HistoryEvent), global::Temporalio.Api.History.V1.HistoryEvent.Parser, new[]{ "EventId", "EventTime", "EventType", "Version", "TaskId", "WorkerMayIgnore", "UserMetadata", "Links", "WorkflowExecutionStartedEventAttributes", "WorkflowExecutionCompletedEventAttributes", "WorkflowExecutionFailedEventAttributes", "WorkflowExecutionTimedOutEventAttributes", "WorkflowTaskScheduledEventAttributes", "WorkflowTaskStartedEventAttributes", "WorkflowTaskCompletedEventAttributes", "WorkflowTaskTimedOutEventAttributes", "WorkflowTaskFailedEventAttributes", "ActivityTaskScheduledEventAttributes", "ActivityTaskStartedEventAttributes", "ActivityTaskCompletedEventAttributes", "ActivityTaskFailedEventAttributes", "ActivityTaskTimedOutEventAttributes", "TimerStartedEventAttributes", "TimerFiredEventAttributes", "ActivityTaskCancelRequestedEventAttributes", "ActivityTaskCanceledEventAttributes", "TimerCanceledEventAttributes", "MarkerRecordedEventAttributes", "WorkflowExecutionSignaledEventAttributes", "WorkflowExecutionTerminatedEventAttributes", "WorkflowExecutionCancelRequestedEventAttributes", "WorkflowExecutionCanceledEventAttributes", "RequestCancelExternalWorkflowExecutionInitiatedEventAttributes", "RequestCancelExternalWorkflowExecutionFailedEventAttributes", "ExternalWorkflowExecutionCancelRequestedEventAttributes", "WorkflowExecutionContinuedAsNewEventAttributes", "StartChildWorkflowExecutionInitiatedEventAttributes", "StartChildWorkflowExecutionFailedEventAttributes", "ChildWorkflowExecutionStartedEventAttributes", "ChildWorkflowExecutionCompletedEventAttributes", "ChildWorkflowExecutionFailedEventAttributes", "ChildWorkflowExecutionCanceledEventAttributes", "ChildWorkflowExecutionTimedOutEventAttributes", "ChildWorkflowExecutionTerminatedEventAttributes", "SignalExternalWorkflowExecutionInitiatedEventAttributes", "SignalExternalWorkflowExecutionFailedEventAttributes", "ExternalWorkflowExecutionSignaledEventAttributes", "UpsertWorkflowSearchAttributesEventAttributes", "WorkflowExecutionUpdateAcceptedEventAttributes", "WorkflowExecutionUpdateRejectedEventAttributes", "WorkflowExecutionUpdateCompletedEventAttributes", "WorkflowPropertiesModifiedExternallyEventAttributes", "ActivityPropertiesModifiedExternallyEventAttributes", "WorkflowPropertiesModifiedEventAttributes", "WorkflowExecutionUpdateAdmittedEventAttributes", "NexusOperationScheduledEventAttributes", "NexusOperationStartedEventAttributes", "NexusOperationCompletedEventAttributes", "NexusOperationFailedEventAttributes", "NexusOperationCanceledEventAttributes", "NexusOperationTimedOutEventAttributes", "NexusOperationCancelRequestedEventAttributes", "WorkflowExecutionOptionsUpdatedEventAttributes", "NexusOperationCancelRequestCompletedEventAttributes", "NexusOperationCancelRequestFailedEventAttributes", "WorkflowExecutionPausedEventAttributes", "WorkflowExecutionUnpausedEventAttributes" }, new[]{ "Attributes" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.History.V1.HistoryEvent), global::Temporalio.Api.History.V1.HistoryEvent.Parser, new[]{ "EventId", "EventTime", "EventType", "Version", "TaskId", "WorkerMayIgnore", "UserMetadata", "Links", "Principal", "WorkflowExecutionStartedEventAttributes", "WorkflowExecutionCompletedEventAttributes", "WorkflowExecutionFailedEventAttributes", "WorkflowExecutionTimedOutEventAttributes", "WorkflowTaskScheduledEventAttributes", "WorkflowTaskStartedEventAttributes", "WorkflowTaskCompletedEventAttributes", "WorkflowTaskTimedOutEventAttributes", "WorkflowTaskFailedEventAttributes", "ActivityTaskScheduledEventAttributes", "ActivityTaskStartedEventAttributes", "ActivityTaskCompletedEventAttributes", "ActivityTaskFailedEventAttributes", "ActivityTaskTimedOutEventAttributes", "TimerStartedEventAttributes", "TimerFiredEventAttributes", "ActivityTaskCancelRequestedEventAttributes", "ActivityTaskCanceledEventAttributes", "TimerCanceledEventAttributes", "MarkerRecordedEventAttributes", "WorkflowExecutionSignaledEventAttributes", "WorkflowExecutionTerminatedEventAttributes", "WorkflowExecutionCancelRequestedEventAttributes", "WorkflowExecutionCanceledEventAttributes", "RequestCancelExternalWorkflowExecutionInitiatedEventAttributes", "RequestCancelExternalWorkflowExecutionFailedEventAttributes", "ExternalWorkflowExecutionCancelRequestedEventAttributes", "WorkflowExecutionContinuedAsNewEventAttributes", "StartChildWorkflowExecutionInitiatedEventAttributes", "StartChildWorkflowExecutionFailedEventAttributes", "ChildWorkflowExecutionStartedEventAttributes", "ChildWorkflowExecutionCompletedEventAttributes", "ChildWorkflowExecutionFailedEventAttributes", "ChildWorkflowExecutionCanceledEventAttributes", "ChildWorkflowExecutionTimedOutEventAttributes", "ChildWorkflowExecutionTerminatedEventAttributes", "SignalExternalWorkflowExecutionInitiatedEventAttributes", "SignalExternalWorkflowExecutionFailedEventAttributes", "ExternalWorkflowExecutionSignaledEventAttributes", "UpsertWorkflowSearchAttributesEventAttributes", "WorkflowExecutionUpdateAcceptedEventAttributes", "WorkflowExecutionUpdateRejectedEventAttributes", "WorkflowExecutionUpdateCompletedEventAttributes", "WorkflowPropertiesModifiedExternallyEventAttributes", "ActivityPropertiesModifiedExternallyEventAttributes", "WorkflowPropertiesModifiedEventAttributes", "WorkflowExecutionUpdateAdmittedEventAttributes", "NexusOperationScheduledEventAttributes", "NexusOperationStartedEventAttributes", "NexusOperationCompletedEventAttributes", "NexusOperationFailedEventAttributes", "NexusOperationCanceledEventAttributes", "NexusOperationTimedOutEventAttributes", "NexusOperationCancelRequestedEventAttributes", "WorkflowExecutionOptionsUpdatedEventAttributes", "NexusOperationCancelRequestCompletedEventAttributes", "NexusOperationCancelRequestFailedEventAttributes", "WorkflowExecutionPausedEventAttributes", "WorkflowExecutionUnpausedEventAttributes", "WorkflowExecutionTimeSkippingTransitionedEventAttributes" }, new[]{ "Attributes" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.History.V1.History), global::Temporalio.Api.History.V1.History.Parser, new[]{ "Events" }, null, null, null, null) })); } @@ -19515,6 +19527,7 @@ public WorkflowExecutionOptionsUpdatedEventAttributes(WorkflowExecutionOptionsUp attachedCompletionCallbacks_ = other.attachedCompletionCallbacks_.Clone(); identity_ = other.identity_; priority_ = other.priority_ != null ? other.priority_.Clone() : null; + timeSkippingConfig_ = other.timeSkippingConfig_ != null ? other.timeSkippingConfig_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -19616,6 +19629,21 @@ public string Identity { } } + /// Field number for the "time_skipping_config" field. + public const int TimeSkippingConfigFieldNumber = 7; + private global::Temporalio.Api.Workflow.V1.TimeSkippingConfig timeSkippingConfig_; + /// + /// If set, the time-skipping configuration was changed. Contains the full updated configuration. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Workflow.V1.TimeSkippingConfig TimeSkippingConfig { + get { return timeSkippingConfig_; } + set { + timeSkippingConfig_ = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -19637,6 +19665,7 @@ public bool Equals(WorkflowExecutionOptionsUpdatedEventAttributes other) { if(!attachedCompletionCallbacks_.Equals(other.attachedCompletionCallbacks_)) return false; if (Identity != other.Identity) return false; if (!object.Equals(Priority, other.Priority)) return false; + if (!object.Equals(TimeSkippingConfig, other.TimeSkippingConfig)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -19650,6 +19679,7 @@ public override int GetHashCode() { hash ^= attachedCompletionCallbacks_.GetHashCode(); if (Identity.Length != 0) hash ^= Identity.GetHashCode(); if (priority_ != null) hash ^= Priority.GetHashCode(); + if (timeSkippingConfig_ != null) hash ^= TimeSkippingConfig.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -19689,6 +19719,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(50); output.WriteMessage(Priority); } + if (timeSkippingConfig_ != null) { + output.WriteRawTag(58); + output.WriteMessage(TimeSkippingConfig); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -19720,6 +19754,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(50); output.WriteMessage(Priority); } + if (timeSkippingConfig_ != null) { + output.WriteRawTag(58); + output.WriteMessage(TimeSkippingConfig); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -19746,6 +19784,9 @@ public int CalculateSize() { if (priority_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Priority); } + if (timeSkippingConfig_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TimeSkippingConfig); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -19780,6 +19821,12 @@ public void MergeFrom(WorkflowExecutionOptionsUpdatedEventAttributes other) { } Priority.MergeFrom(other.Priority); } + if (other.timeSkippingConfig_ != null) { + if (timeSkippingConfig_ == null) { + TimeSkippingConfig = new global::Temporalio.Api.Workflow.V1.TimeSkippingConfig(); + } + TimeSkippingConfig.MergeFrom(other.TimeSkippingConfig); + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -19825,6 +19872,13 @@ public void MergeFrom(pb::CodedInputStream input) { input.ReadMessage(Priority); break; } + case 58: { + if (timeSkippingConfig_ == null) { + TimeSkippingConfig = new global::Temporalio.Api.Workflow.V1.TimeSkippingConfig(); + } + input.ReadMessage(TimeSkippingConfig); + break; + } } } #endif @@ -19870,6 +19924,13 @@ public void MergeFrom(pb::CodedInputStream input) { input.ReadMessage(Priority); break; } + case 58: { + if (timeSkippingConfig_ == null) { + TimeSkippingConfig = new global::Temporalio.Api.Workflow.V1.TimeSkippingConfig(); + } + input.ReadMessage(TimeSkippingConfig); + break; + } } } } @@ -22288,6 +22349,303 @@ public void MergeFrom(pb::CodedInputStream input) { } + /// + /// Attributes for an event indicating that time skipping state changed for a workflow execution, + /// either time was advanced or time skipping was disabled automatically due to a bound being reached. + /// The worker_may_ignore field in HistoryEvent should always be set true for this event. + /// + public sealed partial class WorkflowExecutionTimeSkippingTransitionedEventAttributes : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new WorkflowExecutionTimeSkippingTransitionedEventAttributes()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Temporalio.Api.History.V1.MessageReflection.Descriptor.MessageTypes[51]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public WorkflowExecutionTimeSkippingTransitionedEventAttributes() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public WorkflowExecutionTimeSkippingTransitionedEventAttributes(WorkflowExecutionTimeSkippingTransitionedEventAttributes other) : this() { + targetTime_ = other.targetTime_ != null ? other.targetTime_.Clone() : null; + disabledAfterBound_ = other.disabledAfterBound_; + wallClockTime_ = other.wallClockTime_ != null ? other.wallClockTime_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public WorkflowExecutionTimeSkippingTransitionedEventAttributes Clone() { + return new WorkflowExecutionTimeSkippingTransitionedEventAttributes(this); + } + + /// Field number for the "target_time" field. + public const int TargetTimeFieldNumber = 1; + private global::Google.Protobuf.WellKnownTypes.Timestamp targetTime_; + /// + /// The virtual time after time skipping was applied. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp TargetTime { + get { return targetTime_; } + set { + targetTime_ = value; + } + } + + /// Field number for the "disabled_after_bound" field. + public const int DisabledAfterBoundFieldNumber = 2; + private bool disabledAfterBound_; + /// + /// when true, time skipping was disabled automatically due to a bound being reached. + /// (-- api-linter: core::0140::prepositions=disabled + /// aip.dev/not-precedent: "after" is used to indicate temporal ordering. --) + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool DisabledAfterBound { + get { return disabledAfterBound_; } + set { + disabledAfterBound_ = value; + } + } + + /// Field number for the "wall_clock_time" field. + public const int WallClockTimeFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp wallClockTime_; + /// + /// The wall-clock time when the time-skipping state changed event was generated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp WallClockTime { + get { return wallClockTime_; } + set { + wallClockTime_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as WorkflowExecutionTimeSkippingTransitionedEventAttributes); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(WorkflowExecutionTimeSkippingTransitionedEventAttributes other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(TargetTime, other.TargetTime)) return false; + if (DisabledAfterBound != other.DisabledAfterBound) return false; + if (!object.Equals(WallClockTime, other.WallClockTime)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (targetTime_ != null) hash ^= TargetTime.GetHashCode(); + if (DisabledAfterBound != false) hash ^= DisabledAfterBound.GetHashCode(); + if (wallClockTime_ != null) hash ^= WallClockTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (targetTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(TargetTime); + } + if (DisabledAfterBound != false) { + output.WriteRawTag(16); + output.WriteBool(DisabledAfterBound); + } + if (wallClockTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(WallClockTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (targetTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(TargetTime); + } + if (DisabledAfterBound != false) { + output.WriteRawTag(16); + output.WriteBool(DisabledAfterBound); + } + if (wallClockTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(WallClockTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (targetTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TargetTime); + } + if (DisabledAfterBound != false) { + size += 1 + 1; + } + if (wallClockTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(WallClockTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(WorkflowExecutionTimeSkippingTransitionedEventAttributes other) { + if (other == null) { + return; + } + if (other.targetTime_ != null) { + if (targetTime_ == null) { + TargetTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + TargetTime.MergeFrom(other.TargetTime); + } + if (other.DisabledAfterBound != false) { + DisabledAfterBound = other.DisabledAfterBound; + } + if (other.wallClockTime_ != null) { + if (wallClockTime_ == null) { + WallClockTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + WallClockTime.MergeFrom(other.WallClockTime); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (targetTime_ == null) { + TargetTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(TargetTime); + break; + } + case 16: { + DisabledAfterBound = input.ReadBool(); + break; + } + case 26: { + if (wallClockTime_ == null) { + WallClockTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(WallClockTime); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (targetTime_ == null) { + TargetTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(TargetTime); + break; + } + case 16: { + DisabledAfterBound = input.ReadBool(); + break; + } + case 26: { + if (wallClockTime_ == null) { + WallClockTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(WallClockTime); + break; + } + } + } + } + #endif + + } + /// /// Event marking that an operation was scheduled by a workflow via the ScheduleNexusOperation command. /// @@ -22305,7 +22663,7 @@ public sealed partial class NexusOperationScheduledEventAttributes : pb::IMessag [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.History.V1.MessageReflection.Descriptor.MessageTypes[51]; } + get { return global::Temporalio.Api.History.V1.MessageReflection.Descriptor.MessageTypes[52]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -22416,6 +22774,8 @@ public string Operation { /// Calls are retried internally by the server. /// (-- api-linter: core::0140::prepositions=disabled /// aip.dev/not-precedent: "to" is used to indicate interval. --) + /// (-- api-linter: core::0142::time-field-names=disabled + /// aip.dev/not-precedent: "timeout" is an acceptable suffix for duration fields in this API. --) /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -22945,7 +23305,7 @@ public sealed partial class NexusOperationStartedEventAttributes : pb::IMessage< [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.History.V1.MessageReflection.Descriptor.MessageTypes[52]; } + get { return global::Temporalio.Api.History.V1.MessageReflection.Descriptor.MessageTypes[53]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -23265,7 +23625,7 @@ public sealed partial class NexusOperationCompletedEventAttributes : pb::IMessag [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.History.V1.MessageReflection.Descriptor.MessageTypes[53]; } + get { return global::Temporalio.Api.History.V1.MessageReflection.Descriptor.MessageTypes[54]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -23550,7 +23910,7 @@ public sealed partial class NexusOperationFailedEventAttributes : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.History.V1.MessageReflection.Descriptor.MessageTypes[60]; } + get { return global::Temporalio.Api.History.V1.MessageReflection.Descriptor.MessageTypes[61]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -25259,6 +25619,7 @@ public HistoryEvent(HistoryEvent other) : this() { workerMayIgnore_ = other.workerMayIgnore_; userMetadata_ = other.userMetadata_ != null ? other.userMetadata_.Clone() : null; links_ = other.links_.Clone(); + principal_ = other.principal_ != null ? other.principal_.Clone() : null; switch (other.AttributesCase) { case AttributesOneofCase.WorkflowExecutionStartedEventAttributes: WorkflowExecutionStartedEventAttributes = other.WorkflowExecutionStartedEventAttributes.Clone(); @@ -25437,6 +25798,9 @@ public HistoryEvent(HistoryEvent other) : this() { case AttributesOneofCase.WorkflowExecutionUnpausedEventAttributes: WorkflowExecutionUnpausedEventAttributes = other.WorkflowExecutionUnpausedEventAttributes.Clone(); break; + case AttributesOneofCase.WorkflowExecutionTimeSkippingTransitionedEventAttributes: + WorkflowExecutionTimeSkippingTransitionedEventAttributes = other.WorkflowExecutionTimeSkippingTransitionedEventAttributes.Clone(); + break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -25573,6 +25937,21 @@ public bool WorkerMayIgnore { get { return links_; } } + /// Field number for the "principal" field. + public const int PrincipalFieldNumber = 303; + private global::Temporalio.Api.Common.V1.Principal principal_; + /// + /// Server-computed authenticated caller identity associated with this event. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Common.V1.Principal Principal { + get { return principal_; } + set { + principal_ = value; + } + } + /// Field number for the "workflow_execution_started_event_attributes" field. public const int WorkflowExecutionStartedEventAttributesFieldNumber = 6; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -26281,6 +26660,18 @@ public bool WorkerMayIgnore { } } + /// Field number for the "workflow_execution_time_skipping_transitioned_event_attributes" field. + public const int WorkflowExecutionTimeSkippingTransitionedEventAttributesFieldNumber = 65; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.History.V1.WorkflowExecutionTimeSkippingTransitionedEventAttributes WorkflowExecutionTimeSkippingTransitionedEventAttributes { + get { return attributesCase_ == AttributesOneofCase.WorkflowExecutionTimeSkippingTransitionedEventAttributes ? (global::Temporalio.Api.History.V1.WorkflowExecutionTimeSkippingTransitionedEventAttributes) attributes_ : null; } + set { + attributes_ = value; + attributesCase_ = value == null ? AttributesOneofCase.None : AttributesOneofCase.WorkflowExecutionTimeSkippingTransitionedEventAttributes; + } + } + private object attributes_; /// Enum of possible cases for the "attributes" oneof. public enum AttributesOneofCase { @@ -26344,6 +26735,7 @@ public enum AttributesOneofCase { NexusOperationCancelRequestFailedEventAttributes = 62, WorkflowExecutionPausedEventAttributes = 63, WorkflowExecutionUnpausedEventAttributes = 64, + WorkflowExecutionTimeSkippingTransitionedEventAttributes = 65, } private AttributesOneofCase attributesCase_ = AttributesOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -26382,6 +26774,7 @@ public bool Equals(HistoryEvent other) { if (WorkerMayIgnore != other.WorkerMayIgnore) return false; if (!object.Equals(UserMetadata, other.UserMetadata)) return false; if(!links_.Equals(other.links_)) return false; + if (!object.Equals(Principal, other.Principal)) return false; if (!object.Equals(WorkflowExecutionStartedEventAttributes, other.WorkflowExecutionStartedEventAttributes)) return false; if (!object.Equals(WorkflowExecutionCompletedEventAttributes, other.WorkflowExecutionCompletedEventAttributes)) return false; if (!object.Equals(WorkflowExecutionFailedEventAttributes, other.WorkflowExecutionFailedEventAttributes)) return false; @@ -26441,6 +26834,7 @@ public bool Equals(HistoryEvent other) { if (!object.Equals(NexusOperationCancelRequestFailedEventAttributes, other.NexusOperationCancelRequestFailedEventAttributes)) return false; if (!object.Equals(WorkflowExecutionPausedEventAttributes, other.WorkflowExecutionPausedEventAttributes)) return false; if (!object.Equals(WorkflowExecutionUnpausedEventAttributes, other.WorkflowExecutionUnpausedEventAttributes)) return false; + if (!object.Equals(WorkflowExecutionTimeSkippingTransitionedEventAttributes, other.WorkflowExecutionTimeSkippingTransitionedEventAttributes)) return false; if (AttributesCase != other.AttributesCase) return false; return Equals(_unknownFields, other._unknownFields); } @@ -26457,6 +26851,7 @@ public override int GetHashCode() { if (WorkerMayIgnore != false) hash ^= WorkerMayIgnore.GetHashCode(); if (userMetadata_ != null) hash ^= UserMetadata.GetHashCode(); hash ^= links_.GetHashCode(); + if (principal_ != null) hash ^= Principal.GetHashCode(); if (attributesCase_ == AttributesOneofCase.WorkflowExecutionStartedEventAttributes) hash ^= WorkflowExecutionStartedEventAttributes.GetHashCode(); if (attributesCase_ == AttributesOneofCase.WorkflowExecutionCompletedEventAttributes) hash ^= WorkflowExecutionCompletedEventAttributes.GetHashCode(); if (attributesCase_ == AttributesOneofCase.WorkflowExecutionFailedEventAttributes) hash ^= WorkflowExecutionFailedEventAttributes.GetHashCode(); @@ -26516,6 +26911,7 @@ public override int GetHashCode() { if (attributesCase_ == AttributesOneofCase.NexusOperationCancelRequestFailedEventAttributes) hash ^= NexusOperationCancelRequestFailedEventAttributes.GetHashCode(); if (attributesCase_ == AttributesOneofCase.WorkflowExecutionPausedEventAttributes) hash ^= WorkflowExecutionPausedEventAttributes.GetHashCode(); if (attributesCase_ == AttributesOneofCase.WorkflowExecutionUnpausedEventAttributes) hash ^= WorkflowExecutionUnpausedEventAttributes.GetHashCode(); + if (attributesCase_ == AttributesOneofCase.WorkflowExecutionTimeSkippingTransitionedEventAttributes) hash ^= WorkflowExecutionTimeSkippingTransitionedEventAttributes.GetHashCode(); hash ^= (int) attributesCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); @@ -26791,6 +27187,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(130, 4); output.WriteMessage(WorkflowExecutionUnpausedEventAttributes); } + if (attributesCase_ == AttributesOneofCase.WorkflowExecutionTimeSkippingTransitionedEventAttributes) { + output.WriteRawTag(138, 4); + output.WriteMessage(WorkflowExecutionTimeSkippingTransitionedEventAttributes); + } if (WorkerMayIgnore != false) { output.WriteRawTag(224, 18); output.WriteBool(WorkerMayIgnore); @@ -26800,6 +27200,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteMessage(UserMetadata); } links_.WriteTo(output, _repeated_links_codec); + if (principal_ != null) { + output.WriteRawTag(250, 18); + output.WriteMessage(Principal); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -27066,6 +27470,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(130, 4); output.WriteMessage(WorkflowExecutionUnpausedEventAttributes); } + if (attributesCase_ == AttributesOneofCase.WorkflowExecutionTimeSkippingTransitionedEventAttributes) { + output.WriteRawTag(138, 4); + output.WriteMessage(WorkflowExecutionTimeSkippingTransitionedEventAttributes); + } if (WorkerMayIgnore != false) { output.WriteRawTag(224, 18); output.WriteBool(WorkerMayIgnore); @@ -27075,6 +27483,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteMessage(UserMetadata); } links_.WriteTo(ref output, _repeated_links_codec); + if (principal_ != null) { + output.WriteRawTag(250, 18); + output.WriteMessage(Principal); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -27107,6 +27519,9 @@ public int CalculateSize() { size += 2 + pb::CodedOutputStream.ComputeMessageSize(UserMetadata); } size += links_.CalculateSize(_repeated_links_codec); + if (principal_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(Principal); + } if (attributesCase_ == AttributesOneofCase.WorkflowExecutionStartedEventAttributes) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(WorkflowExecutionStartedEventAttributes); } @@ -27284,6 +27699,9 @@ public int CalculateSize() { if (attributesCase_ == AttributesOneofCase.WorkflowExecutionUnpausedEventAttributes) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(WorkflowExecutionUnpausedEventAttributes); } + if (attributesCase_ == AttributesOneofCase.WorkflowExecutionTimeSkippingTransitionedEventAttributes) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(WorkflowExecutionTimeSkippingTransitionedEventAttributes); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -27324,6 +27742,12 @@ public void MergeFrom(HistoryEvent other) { UserMetadata.MergeFrom(other.UserMetadata); } links_.Add(other.links_); + if (other.principal_ != null) { + if (principal_ == null) { + Principal = new global::Temporalio.Api.Common.V1.Principal(); + } + Principal.MergeFrom(other.Principal); + } switch (other.AttributesCase) { case AttributesOneofCase.WorkflowExecutionStartedEventAttributes: if (WorkflowExecutionStartedEventAttributes == null) { @@ -27679,6 +28103,12 @@ public void MergeFrom(HistoryEvent other) { } WorkflowExecutionUnpausedEventAttributes.MergeFrom(other.WorkflowExecutionUnpausedEventAttributes); break; + case AttributesOneofCase.WorkflowExecutionTimeSkippingTransitionedEventAttributes: + if (WorkflowExecutionTimeSkippingTransitionedEventAttributes == null) { + WorkflowExecutionTimeSkippingTransitionedEventAttributes = new global::Temporalio.Api.History.V1.WorkflowExecutionTimeSkippingTransitionedEventAttributes(); + } + WorkflowExecutionTimeSkippingTransitionedEventAttributes.MergeFrom(other.WorkflowExecutionTimeSkippingTransitionedEventAttributes); + break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -28250,6 +28680,15 @@ public void MergeFrom(pb::CodedInputStream input) { WorkflowExecutionUnpausedEventAttributes = subBuilder; break; } + case 522: { + global::Temporalio.Api.History.V1.WorkflowExecutionTimeSkippingTransitionedEventAttributes subBuilder = new global::Temporalio.Api.History.V1.WorkflowExecutionTimeSkippingTransitionedEventAttributes(); + if (attributesCase_ == AttributesOneofCase.WorkflowExecutionTimeSkippingTransitionedEventAttributes) { + subBuilder.MergeFrom(WorkflowExecutionTimeSkippingTransitionedEventAttributes); + } + input.ReadMessage(subBuilder); + WorkflowExecutionTimeSkippingTransitionedEventAttributes = subBuilder; + break; + } case 2400: { WorkerMayIgnore = input.ReadBool(); break; @@ -28265,6 +28704,13 @@ public void MergeFrom(pb::CodedInputStream input) { links_.AddEntriesFrom(input, _repeated_links_codec); break; } + case 2426: { + if (principal_ == null) { + Principal = new global::Temporalio.Api.Common.V1.Principal(); + } + input.ReadMessage(Principal); + break; + } } } #endif @@ -28834,6 +29280,15 @@ public void MergeFrom(pb::CodedInputStream input) { WorkflowExecutionUnpausedEventAttributes = subBuilder; break; } + case 522: { + global::Temporalio.Api.History.V1.WorkflowExecutionTimeSkippingTransitionedEventAttributes subBuilder = new global::Temporalio.Api.History.V1.WorkflowExecutionTimeSkippingTransitionedEventAttributes(); + if (attributesCase_ == AttributesOneofCase.WorkflowExecutionTimeSkippingTransitionedEventAttributes) { + subBuilder.MergeFrom(WorkflowExecutionTimeSkippingTransitionedEventAttributes); + } + input.ReadMessage(subBuilder); + WorkflowExecutionTimeSkippingTransitionedEventAttributes = subBuilder; + break; + } case 2400: { WorkerMayIgnore = input.ReadBool(); break; @@ -28849,6 +29304,13 @@ public void MergeFrom(pb::CodedInputStream input) { links_.AddEntriesFrom(ref input, _repeated_links_codec); break; } + case 2426: { + if (principal_ == null) { + Principal = new global::Temporalio.Api.Common.V1.Principal(); + } + input.ReadMessage(Principal); + break; + } } } } @@ -28870,7 +29332,7 @@ public sealed partial class History : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.History.V1.MessageReflection.Descriptor.MessageTypes[61]; } + get { return global::Temporalio.Api.History.V1.MessageReflection.Descriptor.MessageTypes[62]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] diff --git a/src/Temporalio/Api/Nexus/V1/Message.cs b/src/Temporalio/Api/Nexus/V1/Message.cs index 7c7c8e40..aee360f9 100644 --- a/src/Temporalio/Api/Nexus/V1/Message.cs +++ b/src/Temporalio/Api/Nexus/V1/Message.cs @@ -25,77 +25,129 @@ static MessageReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CiN0ZW1wb3JhbC9hcGkvbmV4dXMvdjEvbWVzc2FnZS5wcm90bxIVdGVtcG9y", - "YWwuYXBpLm5leHVzLnYx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IAEoCzIo", + "LnRlbXBvcmFsLmFwaS5jb21tb24udjEuU2VhcmNoQXR0cmlidXRlcxJZCgxu", + "ZXh1c19oZWFkZXIYGSADKAsyQy50ZW1wb3JhbC5hcGkubmV4dXMudjEuTmV4", + "dXNPcGVyYXRpb25FeGVjdXRpb25JbmZvLk5leHVzSGVhZGVyRW50cnkSOAoN", + "dXNlcl9tZXRhZGF0YRgaIAEoCzIhLnRlbXBvcmFsLmFwaS5zZGsudjEuVXNl", + "ck1ldGFkYXRhEisKBWxpbmtzGBsgAygLMhwudGVtcG9yYWwuYXBpLmNvbW1v", + "bi52MS5MaW5rEhAKCGlkZW50aXR5GBwgASgJGjIKEE5leHVzSGVhZGVyRW50", + "cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4ASLCAwofTmV4dXNP", + "cGVyYXRpb25FeGVjdXRpb25MaXN0SW5mbxIUCgxvcGVyYXRpb25faWQYASAB", + "KAkSDgoGcnVuX2lkGAIgASgJEhAKCGVuZHBvaW50GAMgASgJEg8KB3NlcnZp", + "Y2UYBCABKAkSEQoJb3BlcmF0aW9uGAUgASgJEjEKDXNjaGVkdWxlX3RpbWUY", + "BiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEi4KCmNsb3NlX3Rp", + "bWUYByABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEkQKBnN0YXR1", + "cxgIIAEoDjI0LnRlbXBvcmFsLmFwaS5lbnVtcy52MS5OZXh1c09wZXJhdGlv", + "bkV4ZWN1dGlvblN0YXR1cxJDChFzZWFyY2hfYXR0cmlidXRlcxgJIAEoCzIo", + "LnRlbXBvcmFsLmFwaS5jb21tb24udjEuU2VhcmNoQXR0cmlidXRlcxIeChZz", + "dGF0ZV90cmFuc2l0aW9uX2NvdW50GAogASgDEjUKEmV4ZWN1dGlvbl9kdXJh", + "dGlvbhgLIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlvbkKEAQoYaW8u", + "dGVtcG9yYWwuYXBpLm5leHVzLnYxQgxNZXNzYWdlUHJvdG9QAVohZ28udGVt", + "cG9yYWwuaW8vYXBpL25leHVzL3YxO25leHVzqgIXVGVtcG9yYWxpby5BcGku", + "TmV4dXMuVjHqAhpUZW1wb3JhbGlvOjpBcGk6Ok5leHVzOjpWMWIGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Temporalio.Api.Common.V1.MessageReflection.Descriptor, global::Temporalio.Api.Enums.V1.NexusReflection.Descriptor, global::Temporalio.Api.Failure.V1.MessageReflection.Descriptor, }, + new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.DurationReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Temporalio.Api.Common.V1.MessageReflection.Descriptor, global::Temporalio.Api.Enums.V1.CommonReflection.Descriptor, global::Temporalio.Api.Enums.V1.NexusReflection.Descriptor, global::Temporalio.Api.Failure.V1.MessageReflection.Descriptor, global::Temporalio.Api.Sdk.V1.UserMetadataReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Nexus.V1.Failure), global::Temporalio.Api.Nexus.V1.Failure.Parser, new[]{ "Message", "StackTrace", "Metadata", "Details", "Cause" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Nexus.V1.HandlerError), global::Temporalio.Api.Nexus.V1.HandlerError.Parser, new[]{ "ErrorType", "Failure", "RetryBehavior" }, null, null, null, null), @@ -112,7 +164,10 @@ static MessageReflection() { new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Nexus.V1.Endpoint), global::Temporalio.Api.Nexus.V1.Endpoint.Parser, new[]{ "Version", "Id", "Spec", "CreatedTime", "LastModifiedTime", "UrlPrefix" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Nexus.V1.EndpointSpec), global::Temporalio.Api.Nexus.V1.EndpointSpec.Parser, new[]{ "Name", "Description", "Target" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Nexus.V1.EndpointTarget), global::Temporalio.Api.Nexus.V1.EndpointTarget.Parser, new[]{ "Worker", "External" }, new[]{ "Variant" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Nexus.V1.EndpointTarget.Types.Worker), global::Temporalio.Api.Nexus.V1.EndpointTarget.Types.Worker.Parser, new[]{ "Namespace", "TaskQueue" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Nexus.V1.EndpointTarget.Types.External), global::Temporalio.Api.Nexus.V1.EndpointTarget.Types.External.Parser, new[]{ "Url" }, null, null, null, null)}) + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Nexus.V1.EndpointTarget.Types.External), global::Temporalio.Api.Nexus.V1.EndpointTarget.Types.External.Parser, new[]{ "Url" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Nexus.V1.NexusOperationExecutionCancellationInfo), global::Temporalio.Api.Nexus.V1.NexusOperationExecutionCancellationInfo.Parser, new[]{ "RequestedTime", "State", "Attempt", "LastAttemptCompleteTime", "LastAttemptFailure", "NextAttemptScheduleTime", "BlockedReason", "Reason" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Nexus.V1.NexusOperationExecutionInfo), global::Temporalio.Api.Nexus.V1.NexusOperationExecutionInfo.Parser, new[]{ "OperationId", "RunId", "Endpoint", "Service", "Operation", "Status", "State", "ScheduleToCloseTimeout", "ScheduleToStartTimeout", "StartToCloseTimeout", "Attempt", "ScheduleTime", "ExpirationTime", "CloseTime", "LastAttemptCompleteTime", "LastAttemptFailure", "NextAttemptScheduleTime", "ExecutionDuration", "CancellationInfo", "BlockedReason", "RequestId", "OperationToken", "StateTransitionCount", "SearchAttributes", "NexusHeader", "UserMetadata", "Links", "Identity" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Nexus.V1.NexusOperationExecutionListInfo), global::Temporalio.Api.Nexus.V1.NexusOperationExecutionListInfo.Parser, new[]{ "OperationId", "RunId", "Endpoint", "Service", "Operation", "ScheduleTime", "CloseTime", "Status", "SearchAttributes", "StateTransitionCount", "ExecutionDuration" }, null, null, null, null) })); } #endregion @@ -5397,6 +5452,2521 @@ public void MergeFrom(pb::CodedInputStream input) { } + /// + /// NexusOperationExecutionCancellationInfo contains the state of a Nexus operation cancellation. + /// + public sealed partial class NexusOperationExecutionCancellationInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NexusOperationExecutionCancellationInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Temporalio.Api.Nexus.V1.MessageReflection.Descriptor.MessageTypes[13]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NexusOperationExecutionCancellationInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NexusOperationExecutionCancellationInfo(NexusOperationExecutionCancellationInfo other) : this() { + requestedTime_ = other.requestedTime_ != null ? other.requestedTime_.Clone() : null; + state_ = other.state_; + attempt_ = other.attempt_; + lastAttemptCompleteTime_ = other.lastAttemptCompleteTime_ != null ? other.lastAttemptCompleteTime_.Clone() : null; + lastAttemptFailure_ = other.lastAttemptFailure_ != null ? other.lastAttemptFailure_.Clone() : null; + nextAttemptScheduleTime_ = other.nextAttemptScheduleTime_ != null ? other.nextAttemptScheduleTime_.Clone() : null; + blockedReason_ = other.blockedReason_; + reason_ = other.reason_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NexusOperationExecutionCancellationInfo Clone() { + return new NexusOperationExecutionCancellationInfo(this); + } + + /// Field number for the "requested_time" field. + public const int RequestedTimeFieldNumber = 1; + private global::Google.Protobuf.WellKnownTypes.Timestamp requestedTime_; + /// + /// The time when cancellation was requested. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp RequestedTime { + get { return requestedTime_; } + set { + requestedTime_ = value; + } + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 2; + private global::Temporalio.Api.Enums.V1.NexusOperationCancellationState state_ = global::Temporalio.Api.Enums.V1.NexusOperationCancellationState.Unspecified; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Enums.V1.NexusOperationCancellationState State { + get { return state_; } + set { + state_ = value; + } + } + + /// Field number for the "attempt" field. + public const int AttemptFieldNumber = 3; + private int attempt_; + /// + /// 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. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Attempt { + get { return attempt_; } + set { + attempt_ = value; + } + } + + /// Field number for the "last_attempt_complete_time" field. + public const int LastAttemptCompleteTimeFieldNumber = 4; + private global::Google.Protobuf.WellKnownTypes.Timestamp lastAttemptCompleteTime_; + /// + /// The time when the last attempt completed. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp LastAttemptCompleteTime { + get { return lastAttemptCompleteTime_; } + set { + lastAttemptCompleteTime_ = value; + } + } + + /// Field number for the "last_attempt_failure" field. + public const int LastAttemptFailureFieldNumber = 5; + private global::Temporalio.Api.Failure.V1.Failure lastAttemptFailure_; + /// + /// The last attempt's failure, if any. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Failure.V1.Failure LastAttemptFailure { + get { return lastAttemptFailure_; } + set { + lastAttemptFailure_ = value; + } + } + + /// Field number for the "next_attempt_schedule_time" field. + public const int NextAttemptScheduleTimeFieldNumber = 6; + private global::Google.Protobuf.WellKnownTypes.Timestamp nextAttemptScheduleTime_; + /// + /// The time when the next attempt is scheduled. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp NextAttemptScheduleTime { + get { return nextAttemptScheduleTime_; } + set { + nextAttemptScheduleTime_ = value; + } + } + + /// Field number for the "blocked_reason" field. + public const int BlockedReasonFieldNumber = 7; + private string blockedReason_ = ""; + /// + /// If the state is BLOCKED, blocked reason provides additional information. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BlockedReason { + get { return blockedReason_; } + set { + blockedReason_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "reason" field. + public const int ReasonFieldNumber = 8; + private string reason_ = ""; + /// + /// A reason that may be specified in the CancelNexusOperationRequest. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Reason { + get { return reason_; } + set { + reason_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as NexusOperationExecutionCancellationInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(NexusOperationExecutionCancellationInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(RequestedTime, other.RequestedTime)) return false; + if (State != other.State) return false; + if (Attempt != other.Attempt) return false; + if (!object.Equals(LastAttemptCompleteTime, other.LastAttemptCompleteTime)) return false; + if (!object.Equals(LastAttemptFailure, other.LastAttemptFailure)) return false; + if (!object.Equals(NextAttemptScheduleTime, other.NextAttemptScheduleTime)) return false; + if (BlockedReason != other.BlockedReason) return false; + if (Reason != other.Reason) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (requestedTime_ != null) hash ^= RequestedTime.GetHashCode(); + if (State != global::Temporalio.Api.Enums.V1.NexusOperationCancellationState.Unspecified) hash ^= State.GetHashCode(); + if (Attempt != 0) hash ^= Attempt.GetHashCode(); + if (lastAttemptCompleteTime_ != null) hash ^= LastAttemptCompleteTime.GetHashCode(); + if (lastAttemptFailure_ != null) hash ^= LastAttemptFailure.GetHashCode(); + if (nextAttemptScheduleTime_ != null) hash ^= NextAttemptScheduleTime.GetHashCode(); + if (BlockedReason.Length != 0) hash ^= BlockedReason.GetHashCode(); + if (Reason.Length != 0) hash ^= Reason.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (requestedTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(RequestedTime); + } + if (State != global::Temporalio.Api.Enums.V1.NexusOperationCancellationState.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) State); + } + if (Attempt != 0) { + output.WriteRawTag(24); + output.WriteInt32(Attempt); + } + if (lastAttemptCompleteTime_ != null) { + output.WriteRawTag(34); + output.WriteMessage(LastAttemptCompleteTime); + } + if (lastAttemptFailure_ != null) { + output.WriteRawTag(42); + output.WriteMessage(LastAttemptFailure); + } + if (nextAttemptScheduleTime_ != null) { + output.WriteRawTag(50); + output.WriteMessage(NextAttemptScheduleTime); + } + if (BlockedReason.Length != 0) { + output.WriteRawTag(58); + output.WriteString(BlockedReason); + } + if (Reason.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Reason); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (requestedTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(RequestedTime); + } + if (State != global::Temporalio.Api.Enums.V1.NexusOperationCancellationState.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) State); + } + if (Attempt != 0) { + output.WriteRawTag(24); + output.WriteInt32(Attempt); + } + if (lastAttemptCompleteTime_ != null) { + output.WriteRawTag(34); + output.WriteMessage(LastAttemptCompleteTime); + } + if (lastAttemptFailure_ != null) { + output.WriteRawTag(42); + output.WriteMessage(LastAttemptFailure); + } + if (nextAttemptScheduleTime_ != null) { + output.WriteRawTag(50); + output.WriteMessage(NextAttemptScheduleTime); + } + if (BlockedReason.Length != 0) { + output.WriteRawTag(58); + output.WriteString(BlockedReason); + } + if (Reason.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Reason); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (requestedTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RequestedTime); + } + if (State != global::Temporalio.Api.Enums.V1.NexusOperationCancellationState.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); + } + if (Attempt != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Attempt); + } + if (lastAttemptCompleteTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(LastAttemptCompleteTime); + } + if (lastAttemptFailure_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(LastAttemptFailure); + } + if (nextAttemptScheduleTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(NextAttemptScheduleTime); + } + if (BlockedReason.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BlockedReason); + } + if (Reason.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Reason); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(NexusOperationExecutionCancellationInfo other) { + if (other == null) { + return; + } + if (other.requestedTime_ != null) { + if (requestedTime_ == null) { + RequestedTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + RequestedTime.MergeFrom(other.RequestedTime); + } + if (other.State != global::Temporalio.Api.Enums.V1.NexusOperationCancellationState.Unspecified) { + State = other.State; + } + if (other.Attempt != 0) { + Attempt = other.Attempt; + } + if (other.lastAttemptCompleteTime_ != null) { + if (lastAttemptCompleteTime_ == null) { + LastAttemptCompleteTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + LastAttemptCompleteTime.MergeFrom(other.LastAttemptCompleteTime); + } + if (other.lastAttemptFailure_ != null) { + if (lastAttemptFailure_ == null) { + LastAttemptFailure = new global::Temporalio.Api.Failure.V1.Failure(); + } + LastAttemptFailure.MergeFrom(other.LastAttemptFailure); + } + if (other.nextAttemptScheduleTime_ != null) { + if (nextAttemptScheduleTime_ == null) { + NextAttemptScheduleTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + NextAttemptScheduleTime.MergeFrom(other.NextAttemptScheduleTime); + } + if (other.BlockedReason.Length != 0) { + BlockedReason = other.BlockedReason; + } + if (other.Reason.Length != 0) { + Reason = other.Reason; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (requestedTime_ == null) { + RequestedTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(RequestedTime); + break; + } + case 16: { + State = (global::Temporalio.Api.Enums.V1.NexusOperationCancellationState) input.ReadEnum(); + break; + } + case 24: { + Attempt = input.ReadInt32(); + break; + } + case 34: { + if (lastAttemptCompleteTime_ == null) { + LastAttemptCompleteTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(LastAttemptCompleteTime); + break; + } + case 42: { + if (lastAttemptFailure_ == null) { + LastAttemptFailure = new global::Temporalio.Api.Failure.V1.Failure(); + } + input.ReadMessage(LastAttemptFailure); + break; + } + case 50: { + if (nextAttemptScheduleTime_ == null) { + NextAttemptScheduleTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(NextAttemptScheduleTime); + break; + } + case 58: { + BlockedReason = input.ReadString(); + break; + } + case 66: { + Reason = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (requestedTime_ == null) { + RequestedTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(RequestedTime); + break; + } + case 16: { + State = (global::Temporalio.Api.Enums.V1.NexusOperationCancellationState) input.ReadEnum(); + break; + } + case 24: { + Attempt = input.ReadInt32(); + break; + } + case 34: { + if (lastAttemptCompleteTime_ == null) { + LastAttemptCompleteTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(LastAttemptCompleteTime); + break; + } + case 42: { + if (lastAttemptFailure_ == null) { + LastAttemptFailure = new global::Temporalio.Api.Failure.V1.Failure(); + } + input.ReadMessage(LastAttemptFailure); + break; + } + case 50: { + if (nextAttemptScheduleTime_ == null) { + NextAttemptScheduleTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(NextAttemptScheduleTime); + break; + } + case 58: { + BlockedReason = input.ReadString(); + break; + } + case 66: { + Reason = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Full current state of a standalone Nexus operation, as of the time of the request. + /// + public sealed partial class NexusOperationExecutionInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NexusOperationExecutionInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Temporalio.Api.Nexus.V1.MessageReflection.Descriptor.MessageTypes[14]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NexusOperationExecutionInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NexusOperationExecutionInfo(NexusOperationExecutionInfo other) : this() { + operationId_ = other.operationId_; + runId_ = other.runId_; + endpoint_ = other.endpoint_; + service_ = other.service_; + operation_ = other.operation_; + status_ = other.status_; + state_ = other.state_; + scheduleToCloseTimeout_ = other.scheduleToCloseTimeout_ != null ? other.scheduleToCloseTimeout_.Clone() : null; + scheduleToStartTimeout_ = other.scheduleToStartTimeout_ != null ? other.scheduleToStartTimeout_.Clone() : null; + startToCloseTimeout_ = other.startToCloseTimeout_ != null ? other.startToCloseTimeout_.Clone() : null; + attempt_ = other.attempt_; + scheduleTime_ = other.scheduleTime_ != null ? other.scheduleTime_.Clone() : null; + expirationTime_ = other.expirationTime_ != null ? other.expirationTime_.Clone() : null; + closeTime_ = other.closeTime_ != null ? other.closeTime_.Clone() : null; + lastAttemptCompleteTime_ = other.lastAttemptCompleteTime_ != null ? other.lastAttemptCompleteTime_.Clone() : null; + lastAttemptFailure_ = other.lastAttemptFailure_ != null ? other.lastAttemptFailure_.Clone() : null; + nextAttemptScheduleTime_ = other.nextAttemptScheduleTime_ != null ? other.nextAttemptScheduleTime_.Clone() : null; + executionDuration_ = other.executionDuration_ != null ? other.executionDuration_.Clone() : null; + cancellationInfo_ = other.cancellationInfo_ != null ? other.cancellationInfo_.Clone() : null; + blockedReason_ = other.blockedReason_; + requestId_ = other.requestId_; + operationToken_ = other.operationToken_; + stateTransitionCount_ = other.stateTransitionCount_; + searchAttributes_ = other.searchAttributes_ != null ? other.searchAttributes_.Clone() : null; + nexusHeader_ = other.nexusHeader_.Clone(); + userMetadata_ = other.userMetadata_ != null ? other.userMetadata_.Clone() : null; + links_ = other.links_.Clone(); + identity_ = other.identity_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NexusOperationExecutionInfo Clone() { + return new NexusOperationExecutionInfo(this); + } + + /// Field number for the "operation_id" field. + public const int OperationIdFieldNumber = 1; + private string operationId_ = ""; + /// + /// Unique identifier of this Nexus operation within its namespace along with run ID (below). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string OperationId { + get { return operationId_; } + set { + operationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "run_id" field. + public const int RunIdFieldNumber = 2; + private string runId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RunId { + get { return runId_; } + set { + runId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "endpoint" field. + public const int EndpointFieldNumber = 3; + private string endpoint_ = ""; + /// + /// Endpoint name, resolved to a URL via the cluster's endpoint registry. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Endpoint { + get { return endpoint_; } + set { + endpoint_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "service" field. + public const int ServiceFieldNumber = 4; + private string service_ = ""; + /// + /// Service name. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Service { + get { return service_; } + set { + service_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "operation" field. + public const int OperationFieldNumber = 5; + private string operation_ = ""; + /// + /// Operation name. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Operation { + get { return operation_; } + set { + operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "status" field. + public const int StatusFieldNumber = 6; + private global::Temporalio.Api.Enums.V1.NexusOperationExecutionStatus status_ = global::Temporalio.Api.Enums.V1.NexusOperationExecutionStatus.Unspecified; + /// + /// A general status for this operation, indicates whether it is currently running or in one of the terminal statuses. + /// Updated once when the operation is originally scheduled, and again when it reaches a terminal status. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Enums.V1.NexusOperationExecutionStatus Status { + get { return status_; } + set { + status_ = value; + } + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 7; + private global::Temporalio.Api.Enums.V1.PendingNexusOperationState state_ = global::Temporalio.Api.Enums.V1.PendingNexusOperationState.Unspecified; + /// + /// More detailed breakdown of NEXUS_OPERATION_EXECUTION_STATUS_RUNNING. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Enums.V1.PendingNexusOperationState State { + get { return state_; } + set { + state_ = value; + } + } + + /// Field number for the "schedule_to_close_timeout" field. + public const int ScheduleToCloseTimeoutFieldNumber = 8; + private global::Google.Protobuf.WellKnownTypes.Duration scheduleToCloseTimeout_; + /// + /// Schedule-to-close timeout for this operation. + /// (-- api-linter: core::0140::prepositions=disabled + /// aip.dev/not-precedent: "to" is used to indicate interval. --) + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration ScheduleToCloseTimeout { + get { return scheduleToCloseTimeout_; } + set { + scheduleToCloseTimeout_ = value; + } + } + + /// Field number for the "schedule_to_start_timeout" field. + public const int ScheduleToStartTimeoutFieldNumber = 9; + private global::Google.Protobuf.WellKnownTypes.Duration scheduleToStartTimeout_; + /// + /// Schedule-to-start timeout for this operation. + /// (-- api-linter: core::0140::prepositions=disabled + /// aip.dev/not-precedent: "to" is used to indicate interval. --) + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration ScheduleToStartTimeout { + get { return scheduleToStartTimeout_; } + set { + scheduleToStartTimeout_ = value; + } + } + + /// Field number for the "start_to_close_timeout" field. + public const int StartToCloseTimeoutFieldNumber = 10; + private global::Google.Protobuf.WellKnownTypes.Duration startToCloseTimeout_; + /// + /// Start-to-close timeout for this operation. + /// (-- api-linter: core::0140::prepositions=disabled + /// aip.dev/not-precedent: "to" is used to indicate interval. --) + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration StartToCloseTimeout { + get { return startToCloseTimeout_; } + set { + startToCloseTimeout_ = value; + } + } + + /// Field number for the "attempt" field. + public const int AttemptFieldNumber = 11; + private int attempt_; + /// + /// The number of attempts made to start/deliver the operation request. + /// This number represents a minimum bound since the attempt is incremented after the request completes. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Attempt { + get { return attempt_; } + set { + attempt_ = value; + } + } + + /// Field number for the "schedule_time" field. + public const int ScheduleTimeFieldNumber = 12; + private global::Google.Protobuf.WellKnownTypes.Timestamp scheduleTime_; + /// + /// Time the operation was originally scheduled via a StartNexusOperation request. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp ScheduleTime { + get { return scheduleTime_; } + set { + scheduleTime_ = value; + } + } + + /// Field number for the "expiration_time" field. + public const int ExpirationTimeFieldNumber = 13; + private global::Google.Protobuf.WellKnownTypes.Timestamp expirationTime_; + /// + /// Scheduled time + schedule to close timeout. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp ExpirationTime { + get { return expirationTime_; } + set { + expirationTime_ = value; + } + } + + /// Field number for the "close_time" field. + public const int CloseTimeFieldNumber = 14; + private global::Google.Protobuf.WellKnownTypes.Timestamp closeTime_; + /// + /// Time when the operation transitioned to a closed state. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CloseTime { + get { return closeTime_; } + set { + closeTime_ = value; + } + } + + /// Field number for the "last_attempt_complete_time" field. + public const int LastAttemptCompleteTimeFieldNumber = 15; + private global::Google.Protobuf.WellKnownTypes.Timestamp lastAttemptCompleteTime_; + /// + /// The time when the last attempt completed. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp LastAttemptCompleteTime { + get { return lastAttemptCompleteTime_; } + set { + lastAttemptCompleteTime_ = value; + } + } + + /// Field number for the "last_attempt_failure" field. + public const int LastAttemptFailureFieldNumber = 16; + private global::Temporalio.Api.Failure.V1.Failure lastAttemptFailure_; + /// + /// The last attempt's failure, if any. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Failure.V1.Failure LastAttemptFailure { + get { return lastAttemptFailure_; } + set { + lastAttemptFailure_ = value; + } + } + + /// Field number for the "next_attempt_schedule_time" field. + public const int NextAttemptScheduleTimeFieldNumber = 17; + private global::Google.Protobuf.WellKnownTypes.Timestamp nextAttemptScheduleTime_; + /// + /// The time when the next attempt is scheduled. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp NextAttemptScheduleTime { + get { return nextAttemptScheduleTime_; } + set { + nextAttemptScheduleTime_ = value; + } + } + + /// Field number for the "execution_duration" field. + public const int ExecutionDurationFieldNumber = 18; + private global::Google.Protobuf.WellKnownTypes.Duration executionDuration_; + /// + /// Elapsed time from schedule_time to now for running operations or to close_time for closed + /// operations, including all attempts and backoff between attempts. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration ExecutionDuration { + get { return executionDuration_; } + set { + executionDuration_ = value; + } + } + + /// Field number for the "cancellation_info" field. + public const int CancellationInfoFieldNumber = 19; + private global::Temporalio.Api.Nexus.V1.NexusOperationExecutionCancellationInfo cancellationInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Nexus.V1.NexusOperationExecutionCancellationInfo CancellationInfo { + get { return cancellationInfo_; } + set { + cancellationInfo_ = value; + } + } + + /// Field number for the "blocked_reason" field. + public const int BlockedReasonFieldNumber = 20; + private string blockedReason_ = ""; + /// + /// If the state is BLOCKED, blocked reason provides additional information. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BlockedReason { + get { return blockedReason_; } + set { + blockedReason_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "request_id" field. + public const int RequestIdFieldNumber = 21; + private string requestId_ = ""; + /// + /// Server-generated request ID used as an idempotency token when submitting start requests to + /// the handler. Distinct from the request_id in StartNexusOperationRequest, which is the + /// caller-side idempotency key for the StartNexusOperation RPC itself. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RequestId { + get { return requestId_; } + set { + requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "operation_token" field. + public const int OperationTokenFieldNumber = 22; + private string operationToken_ = ""; + /// + /// Operation token. Only set for asynchronous operations after a successful StartOperation call. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string OperationToken { + get { return operationToken_; } + set { + operationToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "state_transition_count" field. + public const int StateTransitionCountFieldNumber = 23; + private long stateTransitionCount_; + /// + /// Incremented each time the operation's state is mutated in persistence. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long StateTransitionCount { + get { return stateTransitionCount_; } + set { + stateTransitionCount_ = value; + } + } + + /// Field number for the "search_attributes" field. + public const int SearchAttributesFieldNumber = 24; + private global::Temporalio.Api.Common.V1.SearchAttributes searchAttributes_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Common.V1.SearchAttributes SearchAttributes { + get { return searchAttributes_; } + set { + searchAttributes_ = value; + } + } + + /// Field number for the "nexus_header" field. + public const int NexusHeaderFieldNumber = 25; + private static readonly pbc::MapField.Codec _map_nexusHeader_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 202); + private readonly pbc::MapField nexusHeader_ = new pbc::MapField(); + /// + /// Header for context propagation and tracing purposes. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField NexusHeader { + get { return nexusHeader_; } + } + + /// Field number for the "user_metadata" field. + public const int UserMetadataFieldNumber = 26; + private global::Temporalio.Api.Sdk.V1.UserMetadata userMetadata_; + /// + /// Metadata for use by user interfaces to display the fixed as-of-start summary and details of the operation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Sdk.V1.UserMetadata UserMetadata { + get { return userMetadata_; } + set { + userMetadata_ = value; + } + } + + /// Field number for the "links" field. + public const int LinksFieldNumber = 27; + private static readonly pb::FieldCodec _repeated_links_codec + = pb::FieldCodec.ForMessage(218, global::Temporalio.Api.Common.V1.Link.Parser); + private readonly pbc::RepeatedField links_ = new pbc::RepeatedField(); + /// + /// Links attached by the handler of this operation on start or completion. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Links { + get { return links_; } + } + + /// Field number for the "identity" field. + public const int IdentityFieldNumber = 28; + private string identity_ = ""; + /// + /// The identity of the client who started this operation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Identity { + get { return identity_; } + set { + identity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as NexusOperationExecutionInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(NexusOperationExecutionInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (OperationId != other.OperationId) return false; + if (RunId != other.RunId) return false; + if (Endpoint != other.Endpoint) return false; + if (Service != other.Service) return false; + if (Operation != other.Operation) return false; + if (Status != other.Status) return false; + if (State != other.State) return false; + if (!object.Equals(ScheduleToCloseTimeout, other.ScheduleToCloseTimeout)) return false; + if (!object.Equals(ScheduleToStartTimeout, other.ScheduleToStartTimeout)) return false; + if (!object.Equals(StartToCloseTimeout, other.StartToCloseTimeout)) return false; + if (Attempt != other.Attempt) return false; + if (!object.Equals(ScheduleTime, other.ScheduleTime)) return false; + if (!object.Equals(ExpirationTime, other.ExpirationTime)) return false; + if (!object.Equals(CloseTime, other.CloseTime)) return false; + if (!object.Equals(LastAttemptCompleteTime, other.LastAttemptCompleteTime)) return false; + if (!object.Equals(LastAttemptFailure, other.LastAttemptFailure)) return false; + if (!object.Equals(NextAttemptScheduleTime, other.NextAttemptScheduleTime)) return false; + if (!object.Equals(ExecutionDuration, other.ExecutionDuration)) return false; + if (!object.Equals(CancellationInfo, other.CancellationInfo)) return false; + if (BlockedReason != other.BlockedReason) return false; + if (RequestId != other.RequestId) return false; + if (OperationToken != other.OperationToken) return false; + if (StateTransitionCount != other.StateTransitionCount) return false; + if (!object.Equals(SearchAttributes, other.SearchAttributes)) return false; + if (!NexusHeader.Equals(other.NexusHeader)) return false; + if (!object.Equals(UserMetadata, other.UserMetadata)) return false; + if(!links_.Equals(other.links_)) return false; + if (Identity != other.Identity) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (OperationId.Length != 0) hash ^= OperationId.GetHashCode(); + if (RunId.Length != 0) hash ^= RunId.GetHashCode(); + if (Endpoint.Length != 0) hash ^= Endpoint.GetHashCode(); + if (Service.Length != 0) hash ^= Service.GetHashCode(); + if (Operation.Length != 0) hash ^= Operation.GetHashCode(); + if (Status != global::Temporalio.Api.Enums.V1.NexusOperationExecutionStatus.Unspecified) hash ^= Status.GetHashCode(); + if (State != global::Temporalio.Api.Enums.V1.PendingNexusOperationState.Unspecified) hash ^= State.GetHashCode(); + if (scheduleToCloseTimeout_ != null) hash ^= ScheduleToCloseTimeout.GetHashCode(); + if (scheduleToStartTimeout_ != null) hash ^= ScheduleToStartTimeout.GetHashCode(); + if (startToCloseTimeout_ != null) hash ^= StartToCloseTimeout.GetHashCode(); + if (Attempt != 0) hash ^= Attempt.GetHashCode(); + if (scheduleTime_ != null) hash ^= ScheduleTime.GetHashCode(); + if (expirationTime_ != null) hash ^= ExpirationTime.GetHashCode(); + if (closeTime_ != null) hash ^= CloseTime.GetHashCode(); + if (lastAttemptCompleteTime_ != null) hash ^= LastAttemptCompleteTime.GetHashCode(); + if (lastAttemptFailure_ != null) hash ^= LastAttemptFailure.GetHashCode(); + if (nextAttemptScheduleTime_ != null) hash ^= NextAttemptScheduleTime.GetHashCode(); + if (executionDuration_ != null) hash ^= ExecutionDuration.GetHashCode(); + if (cancellationInfo_ != null) hash ^= CancellationInfo.GetHashCode(); + if (BlockedReason.Length != 0) hash ^= BlockedReason.GetHashCode(); + if (RequestId.Length != 0) hash ^= RequestId.GetHashCode(); + if (OperationToken.Length != 0) hash ^= OperationToken.GetHashCode(); + if (StateTransitionCount != 0L) hash ^= StateTransitionCount.GetHashCode(); + if (searchAttributes_ != null) hash ^= SearchAttributes.GetHashCode(); + hash ^= NexusHeader.GetHashCode(); + if (userMetadata_ != null) hash ^= UserMetadata.GetHashCode(); + hash ^= links_.GetHashCode(); + if (Identity.Length != 0) hash ^= Identity.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (OperationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(OperationId); + } + if (RunId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(RunId); + } + if (Endpoint.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Endpoint); + } + if (Service.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Service); + } + if (Operation.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Operation); + } + if (Status != global::Temporalio.Api.Enums.V1.NexusOperationExecutionStatus.Unspecified) { + output.WriteRawTag(48); + output.WriteEnum((int) Status); + } + if (State != global::Temporalio.Api.Enums.V1.PendingNexusOperationState.Unspecified) { + output.WriteRawTag(56); + output.WriteEnum((int) State); + } + if (scheduleToCloseTimeout_ != null) { + output.WriteRawTag(66); + output.WriteMessage(ScheduleToCloseTimeout); + } + if (scheduleToStartTimeout_ != null) { + output.WriteRawTag(74); + output.WriteMessage(ScheduleToStartTimeout); + } + if (startToCloseTimeout_ != null) { + output.WriteRawTag(82); + output.WriteMessage(StartToCloseTimeout); + } + if (Attempt != 0) { + output.WriteRawTag(88); + output.WriteInt32(Attempt); + } + if (scheduleTime_ != null) { + output.WriteRawTag(98); + output.WriteMessage(ScheduleTime); + } + if (expirationTime_ != null) { + output.WriteRawTag(106); + output.WriteMessage(ExpirationTime); + } + if (closeTime_ != null) { + output.WriteRawTag(114); + output.WriteMessage(CloseTime); + } + if (lastAttemptCompleteTime_ != null) { + output.WriteRawTag(122); + output.WriteMessage(LastAttemptCompleteTime); + } + if (lastAttemptFailure_ != null) { + output.WriteRawTag(130, 1); + output.WriteMessage(LastAttemptFailure); + } + if (nextAttemptScheduleTime_ != null) { + output.WriteRawTag(138, 1); + output.WriteMessage(NextAttemptScheduleTime); + } + if (executionDuration_ != null) { + output.WriteRawTag(146, 1); + output.WriteMessage(ExecutionDuration); + } + if (cancellationInfo_ != null) { + output.WriteRawTag(154, 1); + output.WriteMessage(CancellationInfo); + } + if (BlockedReason.Length != 0) { + output.WriteRawTag(162, 1); + output.WriteString(BlockedReason); + } + if (RequestId.Length != 0) { + output.WriteRawTag(170, 1); + output.WriteString(RequestId); + } + if (OperationToken.Length != 0) { + output.WriteRawTag(178, 1); + output.WriteString(OperationToken); + } + if (StateTransitionCount != 0L) { + output.WriteRawTag(184, 1); + output.WriteInt64(StateTransitionCount); + } + if (searchAttributes_ != null) { + output.WriteRawTag(194, 1); + output.WriteMessage(SearchAttributes); + } + nexusHeader_.WriteTo(output, _map_nexusHeader_codec); + if (userMetadata_ != null) { + output.WriteRawTag(210, 1); + output.WriteMessage(UserMetadata); + } + links_.WriteTo(output, _repeated_links_codec); + if (Identity.Length != 0) { + output.WriteRawTag(226, 1); + output.WriteString(Identity); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (OperationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(OperationId); + } + if (RunId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(RunId); + } + if (Endpoint.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Endpoint); + } + if (Service.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Service); + } + if (Operation.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Operation); + } + if (Status != global::Temporalio.Api.Enums.V1.NexusOperationExecutionStatus.Unspecified) { + output.WriteRawTag(48); + output.WriteEnum((int) Status); + } + if (State != global::Temporalio.Api.Enums.V1.PendingNexusOperationState.Unspecified) { + output.WriteRawTag(56); + output.WriteEnum((int) State); + } + if (scheduleToCloseTimeout_ != null) { + output.WriteRawTag(66); + output.WriteMessage(ScheduleToCloseTimeout); + } + if (scheduleToStartTimeout_ != null) { + output.WriteRawTag(74); + output.WriteMessage(ScheduleToStartTimeout); + } + if (startToCloseTimeout_ != null) { + output.WriteRawTag(82); + output.WriteMessage(StartToCloseTimeout); + } + if (Attempt != 0) { + output.WriteRawTag(88); + output.WriteInt32(Attempt); + } + if (scheduleTime_ != null) { + output.WriteRawTag(98); + output.WriteMessage(ScheduleTime); + } + if (expirationTime_ != null) { + output.WriteRawTag(106); + output.WriteMessage(ExpirationTime); + } + if (closeTime_ != null) { + output.WriteRawTag(114); + output.WriteMessage(CloseTime); + } + if (lastAttemptCompleteTime_ != null) { + output.WriteRawTag(122); + output.WriteMessage(LastAttemptCompleteTime); + } + if (lastAttemptFailure_ != null) { + output.WriteRawTag(130, 1); + output.WriteMessage(LastAttemptFailure); + } + if (nextAttemptScheduleTime_ != null) { + output.WriteRawTag(138, 1); + output.WriteMessage(NextAttemptScheduleTime); + } + if (executionDuration_ != null) { + output.WriteRawTag(146, 1); + output.WriteMessage(ExecutionDuration); + } + if (cancellationInfo_ != null) { + output.WriteRawTag(154, 1); + output.WriteMessage(CancellationInfo); + } + if (BlockedReason.Length != 0) { + output.WriteRawTag(162, 1); + output.WriteString(BlockedReason); + } + if (RequestId.Length != 0) { + output.WriteRawTag(170, 1); + output.WriteString(RequestId); + } + if (OperationToken.Length != 0) { + output.WriteRawTag(178, 1); + output.WriteString(OperationToken); + } + if (StateTransitionCount != 0L) { + output.WriteRawTag(184, 1); + output.WriteInt64(StateTransitionCount); + } + if (searchAttributes_ != null) { + output.WriteRawTag(194, 1); + output.WriteMessage(SearchAttributes); + } + nexusHeader_.WriteTo(ref output, _map_nexusHeader_codec); + if (userMetadata_ != null) { + output.WriteRawTag(210, 1); + output.WriteMessage(UserMetadata); + } + links_.WriteTo(ref output, _repeated_links_codec); + if (Identity.Length != 0) { + output.WriteRawTag(226, 1); + output.WriteString(Identity); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (OperationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(OperationId); + } + if (RunId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RunId); + } + if (Endpoint.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Endpoint); + } + if (Service.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Service); + } + if (Operation.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Operation); + } + if (Status != global::Temporalio.Api.Enums.V1.NexusOperationExecutionStatus.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); + } + if (State != global::Temporalio.Api.Enums.V1.PendingNexusOperationState.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); + } + if (scheduleToCloseTimeout_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ScheduleToCloseTimeout); + } + if (scheduleToStartTimeout_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ScheduleToStartTimeout); + } + if (startToCloseTimeout_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StartToCloseTimeout); + } + if (Attempt != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Attempt); + } + if (scheduleTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ScheduleTime); + } + if (expirationTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExpirationTime); + } + if (closeTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CloseTime); + } + if (lastAttemptCompleteTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(LastAttemptCompleteTime); + } + if (lastAttemptFailure_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(LastAttemptFailure); + } + if (nextAttemptScheduleTime_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(NextAttemptScheduleTime); + } + if (executionDuration_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ExecutionDuration); + } + if (cancellationInfo_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(CancellationInfo); + } + if (BlockedReason.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(BlockedReason); + } + if (RequestId.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(RequestId); + } + if (OperationToken.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(OperationToken); + } + if (StateTransitionCount != 0L) { + size += 2 + pb::CodedOutputStream.ComputeInt64Size(StateTransitionCount); + } + if (searchAttributes_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(SearchAttributes); + } + size += nexusHeader_.CalculateSize(_map_nexusHeader_codec); + if (userMetadata_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(UserMetadata); + } + size += links_.CalculateSize(_repeated_links_codec); + if (Identity.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Identity); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(NexusOperationExecutionInfo other) { + if (other == null) { + return; + } + if (other.OperationId.Length != 0) { + OperationId = other.OperationId; + } + if (other.RunId.Length != 0) { + RunId = other.RunId; + } + if (other.Endpoint.Length != 0) { + Endpoint = other.Endpoint; + } + if (other.Service.Length != 0) { + Service = other.Service; + } + if (other.Operation.Length != 0) { + Operation = other.Operation; + } + if (other.Status != global::Temporalio.Api.Enums.V1.NexusOperationExecutionStatus.Unspecified) { + Status = other.Status; + } + if (other.State != global::Temporalio.Api.Enums.V1.PendingNexusOperationState.Unspecified) { + State = other.State; + } + if (other.scheduleToCloseTimeout_ != null) { + if (scheduleToCloseTimeout_ == null) { + ScheduleToCloseTimeout = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + ScheduleToCloseTimeout.MergeFrom(other.ScheduleToCloseTimeout); + } + if (other.scheduleToStartTimeout_ != null) { + if (scheduleToStartTimeout_ == null) { + ScheduleToStartTimeout = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + ScheduleToStartTimeout.MergeFrom(other.ScheduleToStartTimeout); + } + if (other.startToCloseTimeout_ != null) { + if (startToCloseTimeout_ == null) { + StartToCloseTimeout = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + StartToCloseTimeout.MergeFrom(other.StartToCloseTimeout); + } + if (other.Attempt != 0) { + Attempt = other.Attempt; + } + if (other.scheduleTime_ != null) { + if (scheduleTime_ == null) { + ScheduleTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + ScheduleTime.MergeFrom(other.ScheduleTime); + } + if (other.expirationTime_ != null) { + if (expirationTime_ == null) { + ExpirationTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + ExpirationTime.MergeFrom(other.ExpirationTime); + } + if (other.closeTime_ != null) { + if (closeTime_ == null) { + CloseTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CloseTime.MergeFrom(other.CloseTime); + } + if (other.lastAttemptCompleteTime_ != null) { + if (lastAttemptCompleteTime_ == null) { + LastAttemptCompleteTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + LastAttemptCompleteTime.MergeFrom(other.LastAttemptCompleteTime); + } + if (other.lastAttemptFailure_ != null) { + if (lastAttemptFailure_ == null) { + LastAttemptFailure = new global::Temporalio.Api.Failure.V1.Failure(); + } + LastAttemptFailure.MergeFrom(other.LastAttemptFailure); + } + if (other.nextAttemptScheduleTime_ != null) { + if (nextAttemptScheduleTime_ == null) { + NextAttemptScheduleTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + NextAttemptScheduleTime.MergeFrom(other.NextAttemptScheduleTime); + } + if (other.executionDuration_ != null) { + if (executionDuration_ == null) { + ExecutionDuration = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + ExecutionDuration.MergeFrom(other.ExecutionDuration); + } + if (other.cancellationInfo_ != null) { + if (cancellationInfo_ == null) { + CancellationInfo = new global::Temporalio.Api.Nexus.V1.NexusOperationExecutionCancellationInfo(); + } + CancellationInfo.MergeFrom(other.CancellationInfo); + } + if (other.BlockedReason.Length != 0) { + BlockedReason = other.BlockedReason; + } + if (other.RequestId.Length != 0) { + RequestId = other.RequestId; + } + if (other.OperationToken.Length != 0) { + OperationToken = other.OperationToken; + } + if (other.StateTransitionCount != 0L) { + StateTransitionCount = other.StateTransitionCount; + } + if (other.searchAttributes_ != null) { + if (searchAttributes_ == null) { + SearchAttributes = new global::Temporalio.Api.Common.V1.SearchAttributes(); + } + SearchAttributes.MergeFrom(other.SearchAttributes); + } + nexusHeader_.MergeFrom(other.nexusHeader_); + if (other.userMetadata_ != null) { + if (userMetadata_ == null) { + UserMetadata = new global::Temporalio.Api.Sdk.V1.UserMetadata(); + } + UserMetadata.MergeFrom(other.UserMetadata); + } + links_.Add(other.links_); + if (other.Identity.Length != 0) { + Identity = other.Identity; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + OperationId = input.ReadString(); + break; + } + case 18: { + RunId = input.ReadString(); + break; + } + case 26: { + Endpoint = input.ReadString(); + break; + } + case 34: { + Service = input.ReadString(); + break; + } + case 42: { + Operation = input.ReadString(); + break; + } + case 48: { + Status = (global::Temporalio.Api.Enums.V1.NexusOperationExecutionStatus) input.ReadEnum(); + break; + } + case 56: { + State = (global::Temporalio.Api.Enums.V1.PendingNexusOperationState) input.ReadEnum(); + break; + } + case 66: { + if (scheduleToCloseTimeout_ == null) { + ScheduleToCloseTimeout = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(ScheduleToCloseTimeout); + break; + } + case 74: { + if (scheduleToStartTimeout_ == null) { + ScheduleToStartTimeout = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(ScheduleToStartTimeout); + break; + } + case 82: { + if (startToCloseTimeout_ == null) { + StartToCloseTimeout = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(StartToCloseTimeout); + break; + } + case 88: { + Attempt = input.ReadInt32(); + break; + } + case 98: { + if (scheduleTime_ == null) { + ScheduleTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(ScheduleTime); + break; + } + case 106: { + if (expirationTime_ == null) { + ExpirationTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(ExpirationTime); + break; + } + case 114: { + if (closeTime_ == null) { + CloseTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CloseTime); + break; + } + case 122: { + if (lastAttemptCompleteTime_ == null) { + LastAttemptCompleteTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(LastAttemptCompleteTime); + break; + } + case 130: { + if (lastAttemptFailure_ == null) { + LastAttemptFailure = new global::Temporalio.Api.Failure.V1.Failure(); + } + input.ReadMessage(LastAttemptFailure); + break; + } + case 138: { + if (nextAttemptScheduleTime_ == null) { + NextAttemptScheduleTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(NextAttemptScheduleTime); + break; + } + case 146: { + if (executionDuration_ == null) { + ExecutionDuration = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(ExecutionDuration); + break; + } + case 154: { + if (cancellationInfo_ == null) { + CancellationInfo = new global::Temporalio.Api.Nexus.V1.NexusOperationExecutionCancellationInfo(); + } + input.ReadMessage(CancellationInfo); + break; + } + case 162: { + BlockedReason = input.ReadString(); + break; + } + case 170: { + RequestId = input.ReadString(); + break; + } + case 178: { + OperationToken = input.ReadString(); + break; + } + case 184: { + StateTransitionCount = input.ReadInt64(); + break; + } + case 194: { + if (searchAttributes_ == null) { + SearchAttributes = new global::Temporalio.Api.Common.V1.SearchAttributes(); + } + input.ReadMessage(SearchAttributes); + break; + } + case 202: { + nexusHeader_.AddEntriesFrom(input, _map_nexusHeader_codec); + break; + } + case 210: { + if (userMetadata_ == null) { + UserMetadata = new global::Temporalio.Api.Sdk.V1.UserMetadata(); + } + input.ReadMessage(UserMetadata); + break; + } + case 218: { + links_.AddEntriesFrom(input, _repeated_links_codec); + break; + } + case 226: { + Identity = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + OperationId = input.ReadString(); + break; + } + case 18: { + RunId = input.ReadString(); + break; + } + case 26: { + Endpoint = input.ReadString(); + break; + } + case 34: { + Service = input.ReadString(); + break; + } + case 42: { + Operation = input.ReadString(); + break; + } + case 48: { + Status = (global::Temporalio.Api.Enums.V1.NexusOperationExecutionStatus) input.ReadEnum(); + break; + } + case 56: { + State = (global::Temporalio.Api.Enums.V1.PendingNexusOperationState) input.ReadEnum(); + break; + } + case 66: { + if (scheduleToCloseTimeout_ == null) { + ScheduleToCloseTimeout = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(ScheduleToCloseTimeout); + break; + } + case 74: { + if (scheduleToStartTimeout_ == null) { + ScheduleToStartTimeout = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(ScheduleToStartTimeout); + break; + } + case 82: { + if (startToCloseTimeout_ == null) { + StartToCloseTimeout = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(StartToCloseTimeout); + break; + } + case 88: { + Attempt = input.ReadInt32(); + break; + } + case 98: { + if (scheduleTime_ == null) { + ScheduleTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(ScheduleTime); + break; + } + case 106: { + if (expirationTime_ == null) { + ExpirationTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(ExpirationTime); + break; + } + case 114: { + if (closeTime_ == null) { + CloseTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CloseTime); + break; + } + case 122: { + if (lastAttemptCompleteTime_ == null) { + LastAttemptCompleteTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(LastAttemptCompleteTime); + break; + } + case 130: { + if (lastAttemptFailure_ == null) { + LastAttemptFailure = new global::Temporalio.Api.Failure.V1.Failure(); + } + input.ReadMessage(LastAttemptFailure); + break; + } + case 138: { + if (nextAttemptScheduleTime_ == null) { + NextAttemptScheduleTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(NextAttemptScheduleTime); + break; + } + case 146: { + if (executionDuration_ == null) { + ExecutionDuration = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(ExecutionDuration); + break; + } + case 154: { + if (cancellationInfo_ == null) { + CancellationInfo = new global::Temporalio.Api.Nexus.V1.NexusOperationExecutionCancellationInfo(); + } + input.ReadMessage(CancellationInfo); + break; + } + case 162: { + BlockedReason = input.ReadString(); + break; + } + case 170: { + RequestId = input.ReadString(); + break; + } + case 178: { + OperationToken = input.ReadString(); + break; + } + case 184: { + StateTransitionCount = input.ReadInt64(); + break; + } + case 194: { + if (searchAttributes_ == null) { + SearchAttributes = new global::Temporalio.Api.Common.V1.SearchAttributes(); + } + input.ReadMessage(SearchAttributes); + break; + } + case 202: { + nexusHeader_.AddEntriesFrom(ref input, _map_nexusHeader_codec); + break; + } + case 210: { + if (userMetadata_ == null) { + UserMetadata = new global::Temporalio.Api.Sdk.V1.UserMetadata(); + } + input.ReadMessage(UserMetadata); + break; + } + case 218: { + links_.AddEntriesFrom(ref input, _repeated_links_codec); + break; + } + case 226: { + Identity = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Limited Nexus operation information returned in the list response. + /// When adding fields here, ensure that it is also present in NexusOperationExecutionInfo (note that it may already be present in + /// NexusOperationExecutionInfo but not at the top-level). + /// + public sealed partial class NexusOperationExecutionListInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NexusOperationExecutionListInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Temporalio.Api.Nexus.V1.MessageReflection.Descriptor.MessageTypes[15]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NexusOperationExecutionListInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NexusOperationExecutionListInfo(NexusOperationExecutionListInfo other) : this() { + operationId_ = other.operationId_; + runId_ = other.runId_; + endpoint_ = other.endpoint_; + service_ = other.service_; + operation_ = other.operation_; + scheduleTime_ = other.scheduleTime_ != null ? other.scheduleTime_.Clone() : null; + closeTime_ = other.closeTime_ != null ? other.closeTime_.Clone() : null; + status_ = other.status_; + searchAttributes_ = other.searchAttributes_ != null ? other.searchAttributes_.Clone() : null; + stateTransitionCount_ = other.stateTransitionCount_; + executionDuration_ = other.executionDuration_ != null ? other.executionDuration_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NexusOperationExecutionListInfo Clone() { + return new NexusOperationExecutionListInfo(this); + } + + /// Field number for the "operation_id" field. + public const int OperationIdFieldNumber = 1; + private string operationId_ = ""; + /// + /// A unique identifier of this operation within its namespace along with run ID (below). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string OperationId { + get { return operationId_; } + set { + operationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "run_id" field. + public const int RunIdFieldNumber = 2; + private string runId_ = ""; + /// + /// The run ID of the standalone Nexus operation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RunId { + get { return runId_; } + set { + runId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "endpoint" field. + public const int EndpointFieldNumber = 3; + private string endpoint_ = ""; + /// + /// Endpoint name. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Endpoint { + get { return endpoint_; } + set { + endpoint_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "service" field. + public const int ServiceFieldNumber = 4; + private string service_ = ""; + /// + /// Service name. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Service { + get { return service_; } + set { + service_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "operation" field. + public const int OperationFieldNumber = 5; + private string operation_ = ""; + /// + /// Operation name. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Operation { + get { return operation_; } + set { + operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "schedule_time" field. + public const int ScheduleTimeFieldNumber = 6; + private global::Google.Protobuf.WellKnownTypes.Timestamp scheduleTime_; + /// + /// Time the operation was originally scheduled via a StartNexusOperation request. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp ScheduleTime { + get { return scheduleTime_; } + set { + scheduleTime_ = value; + } + } + + /// Field number for the "close_time" field. + public const int CloseTimeFieldNumber = 7; + private global::Google.Protobuf.WellKnownTypes.Timestamp closeTime_; + /// + /// If the operation is in a terminal status, this field represents the time the operation transitioned to that status. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CloseTime { + get { return closeTime_; } + set { + closeTime_ = value; + } + } + + /// Field number for the "status" field. + public const int StatusFieldNumber = 8; + private global::Temporalio.Api.Enums.V1.NexusOperationExecutionStatus status_ = global::Temporalio.Api.Enums.V1.NexusOperationExecutionStatus.Unspecified; + /// + /// The status is updated once, when the operation is originally scheduled, and again when the operation reaches a terminal status. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Enums.V1.NexusOperationExecutionStatus Status { + get { return status_; } + set { + status_ = value; + } + } + + /// Field number for the "search_attributes" field. + public const int SearchAttributesFieldNumber = 9; + private global::Temporalio.Api.Common.V1.SearchAttributes searchAttributes_; + /// + /// Search attributes from the start request. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Common.V1.SearchAttributes SearchAttributes { + get { return searchAttributes_; } + set { + searchAttributes_ = value; + } + } + + /// Field number for the "state_transition_count" field. + public const int StateTransitionCountFieldNumber = 10; + private long stateTransitionCount_; + /// + /// Updated on terminal status. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long StateTransitionCount { + get { return stateTransitionCount_; } + set { + stateTransitionCount_ = value; + } + } + + /// Field number for the "execution_duration" field. + public const int ExecutionDurationFieldNumber = 11; + private global::Google.Protobuf.WellKnownTypes.Duration executionDuration_; + /// + /// The difference between close time and scheduled time. + /// This field is only populated if the operation is closed. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration ExecutionDuration { + get { return executionDuration_; } + set { + executionDuration_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as NexusOperationExecutionListInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(NexusOperationExecutionListInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (OperationId != other.OperationId) return false; + if (RunId != other.RunId) return false; + if (Endpoint != other.Endpoint) return false; + if (Service != other.Service) return false; + if (Operation != other.Operation) return false; + if (!object.Equals(ScheduleTime, other.ScheduleTime)) return false; + if (!object.Equals(CloseTime, other.CloseTime)) return false; + if (Status != other.Status) return false; + if (!object.Equals(SearchAttributes, other.SearchAttributes)) return false; + if (StateTransitionCount != other.StateTransitionCount) return false; + if (!object.Equals(ExecutionDuration, other.ExecutionDuration)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (OperationId.Length != 0) hash ^= OperationId.GetHashCode(); + if (RunId.Length != 0) hash ^= RunId.GetHashCode(); + if (Endpoint.Length != 0) hash ^= Endpoint.GetHashCode(); + if (Service.Length != 0) hash ^= Service.GetHashCode(); + if (Operation.Length != 0) hash ^= Operation.GetHashCode(); + if (scheduleTime_ != null) hash ^= ScheduleTime.GetHashCode(); + if (closeTime_ != null) hash ^= CloseTime.GetHashCode(); + if (Status != global::Temporalio.Api.Enums.V1.NexusOperationExecutionStatus.Unspecified) hash ^= Status.GetHashCode(); + if (searchAttributes_ != null) hash ^= SearchAttributes.GetHashCode(); + if (StateTransitionCount != 0L) hash ^= StateTransitionCount.GetHashCode(); + if (executionDuration_ != null) hash ^= ExecutionDuration.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (OperationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(OperationId); + } + if (RunId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(RunId); + } + if (Endpoint.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Endpoint); + } + if (Service.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Service); + } + if (Operation.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Operation); + } + if (scheduleTime_ != null) { + output.WriteRawTag(50); + output.WriteMessage(ScheduleTime); + } + if (closeTime_ != null) { + output.WriteRawTag(58); + output.WriteMessage(CloseTime); + } + if (Status != global::Temporalio.Api.Enums.V1.NexusOperationExecutionStatus.Unspecified) { + output.WriteRawTag(64); + output.WriteEnum((int) Status); + } + if (searchAttributes_ != null) { + output.WriteRawTag(74); + output.WriteMessage(SearchAttributes); + } + if (StateTransitionCount != 0L) { + output.WriteRawTag(80); + output.WriteInt64(StateTransitionCount); + } + if (executionDuration_ != null) { + output.WriteRawTag(90); + output.WriteMessage(ExecutionDuration); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (OperationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(OperationId); + } + if (RunId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(RunId); + } + if (Endpoint.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Endpoint); + } + if (Service.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Service); + } + if (Operation.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Operation); + } + if (scheduleTime_ != null) { + output.WriteRawTag(50); + output.WriteMessage(ScheduleTime); + } + if (closeTime_ != null) { + output.WriteRawTag(58); + output.WriteMessage(CloseTime); + } + if (Status != global::Temporalio.Api.Enums.V1.NexusOperationExecutionStatus.Unspecified) { + output.WriteRawTag(64); + output.WriteEnum((int) Status); + } + if (searchAttributes_ != null) { + output.WriteRawTag(74); + output.WriteMessage(SearchAttributes); + } + if (StateTransitionCount != 0L) { + output.WriteRawTag(80); + output.WriteInt64(StateTransitionCount); + } + if (executionDuration_ != null) { + output.WriteRawTag(90); + output.WriteMessage(ExecutionDuration); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (OperationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(OperationId); + } + if (RunId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RunId); + } + if (Endpoint.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Endpoint); + } + if (Service.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Service); + } + if (Operation.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Operation); + } + if (scheduleTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ScheduleTime); + } + if (closeTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CloseTime); + } + if (Status != global::Temporalio.Api.Enums.V1.NexusOperationExecutionStatus.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); + } + if (searchAttributes_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SearchAttributes); + } + if (StateTransitionCount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(StateTransitionCount); + } + if (executionDuration_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExecutionDuration); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(NexusOperationExecutionListInfo other) { + if (other == null) { + return; + } + if (other.OperationId.Length != 0) { + OperationId = other.OperationId; + } + if (other.RunId.Length != 0) { + RunId = other.RunId; + } + if (other.Endpoint.Length != 0) { + Endpoint = other.Endpoint; + } + if (other.Service.Length != 0) { + Service = other.Service; + } + if (other.Operation.Length != 0) { + Operation = other.Operation; + } + if (other.scheduleTime_ != null) { + if (scheduleTime_ == null) { + ScheduleTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + ScheduleTime.MergeFrom(other.ScheduleTime); + } + if (other.closeTime_ != null) { + if (closeTime_ == null) { + CloseTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CloseTime.MergeFrom(other.CloseTime); + } + if (other.Status != global::Temporalio.Api.Enums.V1.NexusOperationExecutionStatus.Unspecified) { + Status = other.Status; + } + if (other.searchAttributes_ != null) { + if (searchAttributes_ == null) { + SearchAttributes = new global::Temporalio.Api.Common.V1.SearchAttributes(); + } + SearchAttributes.MergeFrom(other.SearchAttributes); + } + if (other.StateTransitionCount != 0L) { + StateTransitionCount = other.StateTransitionCount; + } + if (other.executionDuration_ != null) { + if (executionDuration_ == null) { + ExecutionDuration = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + ExecutionDuration.MergeFrom(other.ExecutionDuration); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + OperationId = input.ReadString(); + break; + } + case 18: { + RunId = input.ReadString(); + break; + } + case 26: { + Endpoint = input.ReadString(); + break; + } + case 34: { + Service = input.ReadString(); + break; + } + case 42: { + Operation = input.ReadString(); + break; + } + case 50: { + if (scheduleTime_ == null) { + ScheduleTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(ScheduleTime); + break; + } + case 58: { + if (closeTime_ == null) { + CloseTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CloseTime); + break; + } + case 64: { + Status = (global::Temporalio.Api.Enums.V1.NexusOperationExecutionStatus) input.ReadEnum(); + break; + } + case 74: { + if (searchAttributes_ == null) { + SearchAttributes = new global::Temporalio.Api.Common.V1.SearchAttributes(); + } + input.ReadMessage(SearchAttributes); + break; + } + case 80: { + StateTransitionCount = input.ReadInt64(); + break; + } + case 90: { + if (executionDuration_ == null) { + ExecutionDuration = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(ExecutionDuration); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + OperationId = input.ReadString(); + break; + } + case 18: { + RunId = input.ReadString(); + break; + } + case 26: { + Endpoint = input.ReadString(); + break; + } + case 34: { + Service = input.ReadString(); + break; + } + case 42: { + Operation = input.ReadString(); + break; + } + case 50: { + if (scheduleTime_ == null) { + ScheduleTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(ScheduleTime); + break; + } + case 58: { + if (closeTime_ == null) { + CloseTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CloseTime); + break; + } + case 64: { + Status = (global::Temporalio.Api.Enums.V1.NexusOperationExecutionStatus) input.ReadEnum(); + break; + } + case 74: { + if (searchAttributes_ == null) { + SearchAttributes = new global::Temporalio.Api.Common.V1.SearchAttributes(); + } + input.ReadMessage(SearchAttributes); + break; + } + case 80: { + StateTransitionCount = input.ReadInt64(); + break; + } + case 90: { + if (executionDuration_ == null) { + ExecutionDuration = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(ExecutionDuration); + break; + } + } + } + } + #endif + + } + #endregion } diff --git a/src/Temporalio/Api/Workflow/V1/Message.cs b/src/Temporalio/Api/Workflow/V1/Message.cs index 94618cf5..27c71f48 100644 --- a/src/Temporalio/Api/Workflow/V1/Message.cs +++ b/src/Temporalio/Api/Workflow/V1/Message.cs @@ -216,47 +216,54 @@ static MessageReflection() { "ChRsYXN0X2F0dGVtcHRfZmFpbHVyZRgFIAEoCzIgLnRlbXBvcmFsLmFwaS5m", "YWlsdXJlLnYxLkZhaWx1cmUSPgoabmV4dF9hdHRlbXB0X3NjaGVkdWxlX3Rp", "bWUYBiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEhYKDmJsb2Nr", - "ZWRfcmVhc29uGAcgASgJIpkBChhXb3JrZmxvd0V4ZWN1dGlvbk9wdGlvbnMS", + "ZWRfcmVhc29uGAcgASgJIuUBChhXb3JrZmxvd0V4ZWN1dGlvbk9wdGlvbnMS", "SQoTdmVyc2lvbmluZ19vdmVycmlkZRgBIAEoCzIsLnRlbXBvcmFsLmFwaS53", "b3JrZmxvdy52MS5WZXJzaW9uaW5nT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dPcHRpb25zSAAaswEKDlNpZ25hbFdvcmtmbG93EhMKC3NpZ25h", + "bF9uYW1lGAEgASgJEi8KBWlucHV0GAIgASgLMiAudGVtcG9yYWwuYXBpLmNv", + "bW1vbi52MS5QYXlsb2FkcxIuCgZoZWFkZXIYAyABKAsyHi50ZW1wb3JhbC5h", + "cGkuY29tbW9uLnYxLkhlYWRlchIrCgVsaW5rcxgEIAMoCzIcLnRlbXBvcmFs", + "LmFwaS5jb21tb24udjEuTGluaxqgAQoVVXBkYXRlV29ya2Zsb3dPcHRpb25z", + "ElYKGndvcmtmbG93X2V4ZWN1dGlvbl9vcHRpb25zGAEgASgLMjIudGVtcG9y", + "YWwuYXBpLndvcmtmbG93LnYxLldvcmtmbG93RXhlY3V0aW9uT3B0aW9ucxIv", + "Cgt1cGRhdGVfbWFzaxgCIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE1h", + "c2tCCQoHdmFyaWFudCJvChpXb3JrZmxvd0V4ZWN1dGlvblBhdXNlSW5mbxIQ", + "CghpZGVudGl0eRgBIAEoCRIvCgtwYXVzZWRfdGltZRgCIAEoCzIaLmdvb2ds", + "ZS5wcm90b2J1Zi5UaW1lc3RhbXASDgoGcmVhc29uGAMgASgJQpMBChtpby50", + "ZW1wb3JhbC5hcGkud29ya2Zsb3cudjFCDE1lc3NhZ2VQcm90b1ABWidnby50", + "ZW1wb3JhbC5pby9hcGkvd29ya2Zsb3cvdjE7d29ya2Zsb3eqAhpUZW1wb3Jh", + "bGlvLkFwaS5Xb3JrZmxvdy5WMeoCHVRlbXBvcmFsaW86OkFwaTo6V29ya2Zs", + "b3c6OlYxYgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.DurationReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Temporalio.Api.Activity.V1.MessageReflection.Descriptor, global::Temporalio.Api.Enums.V1.CommonReflection.Descriptor, global::Temporalio.Api.Enums.V1.EventTypeReflection.Descriptor, global::Temporalio.Api.Enums.V1.WorkflowReflection.Descriptor, global::Temporalio.Api.Common.V1.MessageReflection.Descriptor, global::Temporalio.Api.Deployment.V1.MessageReflection.Descriptor, global::Temporalio.Api.Failure.V1.MessageReflection.Descriptor, global::Temporalio.Api.TaskQueue.V1.MessageReflection.Descriptor, global::Temporalio.Api.Sdk.V1.UserMetadataReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { @@ -277,7 +284,8 @@ static MessageReflection() { new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Workflow.V1.CallbackInfo.Types.Trigger), global::Temporalio.Api.Workflow.V1.CallbackInfo.Types.Trigger.Parser, new[]{ "WorkflowClosed" }, new[]{ "Variant" }, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Workflow.V1.PendingNexusOperationInfo), global::Temporalio.Api.Workflow.V1.PendingNexusOperationInfo.Parser, new[]{ "Endpoint", "Service", "Operation", "OperationId", "ScheduleToCloseTimeout", "ScheduledTime", "State", "Attempt", "LastAttemptCompleteTime", "LastAttemptFailure", "NextAttemptScheduleTime", "CancellationInfo", "ScheduledEventId", "BlockedReason", "OperationToken", "ScheduleToStartTimeout", "StartToCloseTimeout" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Workflow.V1.NexusOperationCancellationInfo), global::Temporalio.Api.Workflow.V1.NexusOperationCancellationInfo.Parser, new[]{ "RequestedTime", "State", "Attempt", "LastAttemptCompleteTime", "LastAttemptFailure", "NextAttemptScheduleTime", "BlockedReason" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Workflow.V1.WorkflowExecutionOptions), global::Temporalio.Api.Workflow.V1.WorkflowExecutionOptions.Parser, new[]{ "VersioningOverride", "Priority" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Workflow.V1.WorkflowExecutionOptions), global::Temporalio.Api.Workflow.V1.WorkflowExecutionOptions.Parser, new[]{ "VersioningOverride", "Priority", "TimeSkippingConfig" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Workflow.V1.TimeSkippingConfig), global::Temporalio.Api.Workflow.V1.TimeSkippingConfig.Parser, new[]{ "Enabled", "DisablePropagation", "MaxSkippedDuration", "MaxElapsedDuration", "MaxTargetTime" }, new[]{ "Bound" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Workflow.V1.VersioningOverride), global::Temporalio.Api.Workflow.V1.VersioningOverride.Parser, new[]{ "Pinned", "AutoUpgrade", "Behavior", "Deployment", "PinnedVersion" }, new[]{ "Override" }, new[]{ typeof(global::Temporalio.Api.Workflow.V1.VersioningOverride.Types.PinnedOverrideBehavior) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Workflow.V1.VersioningOverride.Types.PinnedOverride), global::Temporalio.Api.Workflow.V1.VersioningOverride.Types.PinnedOverride.Parser, new[]{ "Behavior", "Version" }, null, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Workflow.V1.OnConflictOptions), global::Temporalio.Api.Workflow.V1.OnConflictOptions.Parser, new[]{ "AttachRequestId", "AttachCompletionCallbacks", "AttachLinks" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Workflow.V1.RequestIdInfo), global::Temporalio.Api.Workflow.V1.RequestIdInfo.Parser, new[]{ "EventType", "EventId", "Buffered" }, null, null, null, null), @@ -10375,6 +10383,7 @@ public WorkflowExecutionOptions() { public WorkflowExecutionOptions(WorkflowExecutionOptions other) : this() { versioningOverride_ = other.versioningOverride_ != null ? other.versioningOverride_.Clone() : null; priority_ = other.priority_ != null ? other.priority_.Clone() : null; + timeSkippingConfig_ = other.timeSkippingConfig_ != null ? other.timeSkippingConfig_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -10414,6 +10423,23 @@ public WorkflowExecutionOptions Clone() { } } + /// Field number for the "time_skipping_config" field. + public const int TimeSkippingConfigFieldNumber = 3; + private global::Temporalio.Api.Workflow.V1.TimeSkippingConfig timeSkippingConfig_; + /// + /// Time-skipping configuration for this workflow execution. + /// If not set, the time-skipping conf will not get updated upon request, + /// i.e. the existing time-skipping conf will be preserved. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Workflow.V1.TimeSkippingConfig TimeSkippingConfig { + get { return timeSkippingConfig_; } + set { + timeSkippingConfig_ = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -10431,6 +10457,7 @@ public bool Equals(WorkflowExecutionOptions other) { } if (!object.Equals(VersioningOverride, other.VersioningOverride)) return false; if (!object.Equals(Priority, other.Priority)) return false; + if (!object.Equals(TimeSkippingConfig, other.TimeSkippingConfig)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -10440,6 +10467,7 @@ public override int GetHashCode() { int hash = 1; if (versioningOverride_ != null) hash ^= VersioningOverride.GetHashCode(); if (priority_ != null) hash ^= Priority.GetHashCode(); + if (timeSkippingConfig_ != null) hash ^= TimeSkippingConfig.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -10466,6 +10494,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(18); output.WriteMessage(Priority); } + if (timeSkippingConfig_ != null) { + output.WriteRawTag(26); + output.WriteMessage(TimeSkippingConfig); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -10484,6 +10516,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(18); output.WriteMessage(Priority); } + if (timeSkippingConfig_ != null) { + output.WriteRawTag(26); + output.WriteMessage(TimeSkippingConfig); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -10500,6 +10536,9 @@ public int CalculateSize() { if (priority_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Priority); } + if (timeSkippingConfig_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TimeSkippingConfig); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -10524,6 +10563,12 @@ public void MergeFrom(WorkflowExecutionOptions other) { } Priority.MergeFrom(other.Priority); } + if (other.timeSkippingConfig_ != null) { + if (timeSkippingConfig_ == null) { + TimeSkippingConfig = new global::Temporalio.Api.Workflow.V1.TimeSkippingConfig(); + } + TimeSkippingConfig.MergeFrom(other.TimeSkippingConfig); + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -10553,6 +10598,13 @@ public void MergeFrom(pb::CodedInputStream input) { input.ReadMessage(Priority); break; } + case 26: { + if (timeSkippingConfig_ == null) { + TimeSkippingConfig = new global::Temporalio.Api.Workflow.V1.TimeSkippingConfig(); + } + input.ReadMessage(TimeSkippingConfig); + break; + } } } #endif @@ -10582,6 +10634,454 @@ public void MergeFrom(pb::CodedInputStream input) { input.ReadMessage(Priority); break; } + case 26: { + if (timeSkippingConfig_ == null) { + TimeSkippingConfig = new global::Temporalio.Api.Workflow.V1.TimeSkippingConfig(); + } + input.ReadMessage(TimeSkippingConfig); + break; + } + } + } + } + #endif + + } + + /// + /// Configuration for time skipping during a workflow execution. + /// When enabled, virtual time advances automatically whenever there is no in-flight work. + /// In-flight work includes activities, child workflows, Nexus operations, signal/cancel external workflow operations, + /// and possibly other features added in the future. + /// User timers are not classified as in-flight work and will be skipped over. + /// When time advances, it skips to the earlier of the next user timer or the configured bound, if either exists. + /// + public sealed partial class TimeSkippingConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TimeSkippingConfig()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Temporalio.Api.Workflow.V1.MessageReflection.Descriptor.MessageTypes[16]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TimeSkippingConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TimeSkippingConfig(TimeSkippingConfig other) : this() { + enabled_ = other.enabled_; + disablePropagation_ = other.disablePropagation_; + switch (other.BoundCase) { + case BoundOneofCase.MaxSkippedDuration: + MaxSkippedDuration = other.MaxSkippedDuration.Clone(); + break; + case BoundOneofCase.MaxElapsedDuration: + MaxElapsedDuration = other.MaxElapsedDuration.Clone(); + break; + case BoundOneofCase.MaxTargetTime: + MaxTargetTime = other.MaxTargetTime.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TimeSkippingConfig Clone() { + return new TimeSkippingConfig(this); + } + + /// Field number for the "enabled" field. + public const int EnabledFieldNumber = 1; + private bool enabled_; + /// + /// Enables or disables time skipping for this workflow execution. + /// By default, this field is propagated to transitively related workflows (child workflows/start-as-new/reset) + /// at the time they are started. + /// Changes made after a transitively related workflow has started are not propagated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Enabled { + get { return enabled_; } + set { + enabled_ = value; + } + } + + /// Field number for the "disable_propagation" field. + public const int DisablePropagationFieldNumber = 2; + private bool disablePropagation_; + /// + /// If set, the enabled field is not propagated to transitively related workflows. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool DisablePropagation { + get { return disablePropagation_; } + set { + disablePropagation_ = value; + } + } + + /// Field number for the "max_skipped_duration" field. + public const int MaxSkippedDurationFieldNumber = 4; + /// + /// Maximum total virtual time that can be skipped. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration MaxSkippedDuration { + get { return boundCase_ == BoundOneofCase.MaxSkippedDuration ? (global::Google.Protobuf.WellKnownTypes.Duration) bound_ : null; } + set { + bound_ = value; + boundCase_ = value == null ? BoundOneofCase.None : BoundOneofCase.MaxSkippedDuration; + } + } + + /// Field number for the "max_elapsed_duration" field. + public const int MaxElapsedDurationFieldNumber = 5; + /// + /// Maximum elapsed time since time skipping was enabled. + /// This includes both skipped time and real time elapsing. + /// (-- api-linter: core::0142::time-field-names=disabled --) + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration MaxElapsedDuration { + get { return boundCase_ == BoundOneofCase.MaxElapsedDuration ? (global::Google.Protobuf.WellKnownTypes.Duration) bound_ : null; } + set { + bound_ = value; + boundCase_ = value == null ? BoundOneofCase.None : BoundOneofCase.MaxElapsedDuration; + } + } + + /// Field number for the "max_target_time" field. + public const int MaxTargetTimeFieldNumber = 6; + /// + /// Absolute virtual timestamp at which time skipping is disabled. + /// Time skipping will not advance beyond this point. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp MaxTargetTime { + get { return boundCase_ == BoundOneofCase.MaxTargetTime ? (global::Google.Protobuf.WellKnownTypes.Timestamp) bound_ : null; } + set { + bound_ = value; + boundCase_ = value == null ? BoundOneofCase.None : BoundOneofCase.MaxTargetTime; + } + } + + private object bound_; + /// Enum of possible cases for the "bound" oneof. + public enum BoundOneofCase { + None = 0, + MaxSkippedDuration = 4, + MaxElapsedDuration = 5, + MaxTargetTime = 6, + } + private BoundOneofCase boundCase_ = BoundOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BoundOneofCase BoundCase { + get { return boundCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBound() { + boundCase_ = BoundOneofCase.None; + bound_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TimeSkippingConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TimeSkippingConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Enabled != other.Enabled) return false; + if (DisablePropagation != other.DisablePropagation) return false; + if (!object.Equals(MaxSkippedDuration, other.MaxSkippedDuration)) return false; + if (!object.Equals(MaxElapsedDuration, other.MaxElapsedDuration)) return false; + if (!object.Equals(MaxTargetTime, other.MaxTargetTime)) return false; + if (BoundCase != other.BoundCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Enabled != false) hash ^= Enabled.GetHashCode(); + if (DisablePropagation != false) hash ^= DisablePropagation.GetHashCode(); + if (boundCase_ == BoundOneofCase.MaxSkippedDuration) hash ^= MaxSkippedDuration.GetHashCode(); + if (boundCase_ == BoundOneofCase.MaxElapsedDuration) hash ^= MaxElapsedDuration.GetHashCode(); + if (boundCase_ == BoundOneofCase.MaxTargetTime) hash ^= MaxTargetTime.GetHashCode(); + hash ^= (int) boundCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Enabled != false) { + output.WriteRawTag(8); + output.WriteBool(Enabled); + } + if (DisablePropagation != false) { + output.WriteRawTag(16); + output.WriteBool(DisablePropagation); + } + if (boundCase_ == BoundOneofCase.MaxSkippedDuration) { + output.WriteRawTag(34); + output.WriteMessage(MaxSkippedDuration); + } + if (boundCase_ == BoundOneofCase.MaxElapsedDuration) { + output.WriteRawTag(42); + output.WriteMessage(MaxElapsedDuration); + } + if (boundCase_ == BoundOneofCase.MaxTargetTime) { + output.WriteRawTag(50); + output.WriteMessage(MaxTargetTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Enabled != false) { + output.WriteRawTag(8); + output.WriteBool(Enabled); + } + if (DisablePropagation != false) { + output.WriteRawTag(16); + output.WriteBool(DisablePropagation); + } + if (boundCase_ == BoundOneofCase.MaxSkippedDuration) { + output.WriteRawTag(34); + output.WriteMessage(MaxSkippedDuration); + } + if (boundCase_ == BoundOneofCase.MaxElapsedDuration) { + output.WriteRawTag(42); + output.WriteMessage(MaxElapsedDuration); + } + if (boundCase_ == BoundOneofCase.MaxTargetTime) { + output.WriteRawTag(50); + output.WriteMessage(MaxTargetTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Enabled != false) { + size += 1 + 1; + } + if (DisablePropagation != false) { + size += 1 + 1; + } + if (boundCase_ == BoundOneofCase.MaxSkippedDuration) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MaxSkippedDuration); + } + if (boundCase_ == BoundOneofCase.MaxElapsedDuration) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MaxElapsedDuration); + } + if (boundCase_ == BoundOneofCase.MaxTargetTime) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MaxTargetTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TimeSkippingConfig other) { + if (other == null) { + return; + } + if (other.Enabled != false) { + Enabled = other.Enabled; + } + if (other.DisablePropagation != false) { + DisablePropagation = other.DisablePropagation; + } + switch (other.BoundCase) { + case BoundOneofCase.MaxSkippedDuration: + if (MaxSkippedDuration == null) { + MaxSkippedDuration = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + MaxSkippedDuration.MergeFrom(other.MaxSkippedDuration); + break; + case BoundOneofCase.MaxElapsedDuration: + if (MaxElapsedDuration == null) { + MaxElapsedDuration = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + MaxElapsedDuration.MergeFrom(other.MaxElapsedDuration); + break; + case BoundOneofCase.MaxTargetTime: + if (MaxTargetTime == null) { + MaxTargetTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + MaxTargetTime.MergeFrom(other.MaxTargetTime); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Enabled = input.ReadBool(); + break; + } + case 16: { + DisablePropagation = input.ReadBool(); + break; + } + case 34: { + global::Google.Protobuf.WellKnownTypes.Duration subBuilder = new global::Google.Protobuf.WellKnownTypes.Duration(); + if (boundCase_ == BoundOneofCase.MaxSkippedDuration) { + subBuilder.MergeFrom(MaxSkippedDuration); + } + input.ReadMessage(subBuilder); + MaxSkippedDuration = subBuilder; + break; + } + case 42: { + global::Google.Protobuf.WellKnownTypes.Duration subBuilder = new global::Google.Protobuf.WellKnownTypes.Duration(); + if (boundCase_ == BoundOneofCase.MaxElapsedDuration) { + subBuilder.MergeFrom(MaxElapsedDuration); + } + input.ReadMessage(subBuilder); + MaxElapsedDuration = subBuilder; + break; + } + case 50: { + global::Google.Protobuf.WellKnownTypes.Timestamp subBuilder = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + if (boundCase_ == BoundOneofCase.MaxTargetTime) { + subBuilder.MergeFrom(MaxTargetTime); + } + input.ReadMessage(subBuilder); + MaxTargetTime = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Enabled = input.ReadBool(); + break; + } + case 16: { + DisablePropagation = input.ReadBool(); + break; + } + case 34: { + global::Google.Protobuf.WellKnownTypes.Duration subBuilder = new global::Google.Protobuf.WellKnownTypes.Duration(); + if (boundCase_ == BoundOneofCase.MaxSkippedDuration) { + subBuilder.MergeFrom(MaxSkippedDuration); + } + input.ReadMessage(subBuilder); + MaxSkippedDuration = subBuilder; + break; + } + case 42: { + global::Google.Protobuf.WellKnownTypes.Duration subBuilder = new global::Google.Protobuf.WellKnownTypes.Duration(); + if (boundCase_ == BoundOneofCase.MaxElapsedDuration) { + subBuilder.MergeFrom(MaxElapsedDuration); + } + input.ReadMessage(subBuilder); + MaxElapsedDuration = subBuilder; + break; + } + case 50: { + global::Google.Protobuf.WellKnownTypes.Timestamp subBuilder = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + if (boundCase_ == BoundOneofCase.MaxTargetTime) { + subBuilder.MergeFrom(MaxTargetTime); + } + input.ReadMessage(subBuilder); + MaxTargetTime = subBuilder; + break; + } } } } @@ -10614,7 +11114,7 @@ public sealed partial class VersioningOverride : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.Workflow.V1.MessageReflection.Descriptor.MessageTypes[17]; } + get { return global::Temporalio.Api.Workflow.V1.MessageReflection.Descriptor.MessageTypes[18]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -11593,7 +12093,7 @@ public sealed partial class RequestIdInfo : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.Workflow.V1.MessageReflection.Descriptor.MessageTypes[18]; } + get { return global::Temporalio.Api.Workflow.V1.MessageReflection.Descriptor.MessageTypes[19]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -11871,7 +12371,7 @@ public sealed partial class PostResetOperation : pb::IMessageField number for the "time_skipping_config" field. + public const int TimeSkippingConfigFieldNumber = 29; + private global::Temporalio.Api.Workflow.V1.TimeSkippingConfig timeSkippingConfig_; + /// + /// Time-skipping configuration. If not set, time skipping is disabled. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Workflow.V1.TimeSkippingConfig TimeSkippingConfig { + get { return timeSkippingConfig_; } + set { + timeSkippingConfig_ = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -4915,6 +5061,7 @@ public bool Equals(StartWorkflowExecutionRequest other) { if (!object.Equals(OnConflictOptions, other.OnConflictOptions)) return false; if (!object.Equals(Priority, other.Priority)) return false; if (!object.Equals(EagerWorkerDeploymentOptions, other.EagerWorkerDeploymentOptions)) return false; + if (!object.Equals(TimeSkippingConfig, other.TimeSkippingConfig)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -4950,6 +5097,7 @@ public override int GetHashCode() { if (onConflictOptions_ != null) hash ^= OnConflictOptions.GetHashCode(); if (priority_ != null) hash ^= Priority.GetHashCode(); if (eagerWorkerDeploymentOptions_ != null) hash ^= EagerWorkerDeploymentOptions.GetHashCode(); + if (timeSkippingConfig_ != null) hash ^= TimeSkippingConfig.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -5074,6 +5222,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(226, 1); output.WriteMessage(EagerWorkerDeploymentOptions); } + if (timeSkippingConfig_ != null) { + output.WriteRawTag(234, 1); + output.WriteMessage(TimeSkippingConfig); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -5190,6 +5342,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(226, 1); output.WriteMessage(EagerWorkerDeploymentOptions); } + if (timeSkippingConfig_ != null) { + output.WriteRawTag(234, 1); + output.WriteMessage(TimeSkippingConfig); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -5280,6 +5436,9 @@ public int CalculateSize() { if (eagerWorkerDeploymentOptions_ != null) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(EagerWorkerDeploymentOptions); } + if (timeSkippingConfig_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(TimeSkippingConfig); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -5426,6 +5585,12 @@ public void MergeFrom(StartWorkflowExecutionRequest other) { } EagerWorkerDeploymentOptions.MergeFrom(other.EagerWorkerDeploymentOptions); } + if (other.timeSkippingConfig_ != null) { + if (timeSkippingConfig_ == null) { + TimeSkippingConfig = new global::Temporalio.Api.Workflow.V1.TimeSkippingConfig(); + } + TimeSkippingConfig.MergeFrom(other.TimeSkippingConfig); + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -5607,6 +5772,13 @@ public void MergeFrom(pb::CodedInputStream input) { input.ReadMessage(EagerWorkerDeploymentOptions); break; } + case 234: { + if (timeSkippingConfig_ == null) { + TimeSkippingConfig = new global::Temporalio.Api.Workflow.V1.TimeSkippingConfig(); + } + input.ReadMessage(TimeSkippingConfig); + break; + } } } #endif @@ -5788,6 +5960,13 @@ public void MergeFrom(pb::CodedInputStream input) { input.ReadMessage(EagerWorkerDeploymentOptions); break; } + case 234: { + if (timeSkippingConfig_ == null) { + TimeSkippingConfig = new global::Temporalio.Api.Workflow.V1.TimeSkippingConfig(); + } + input.ReadMessage(TimeSkippingConfig); + break; + } } } } @@ -19150,6 +19329,7 @@ public SignalWithStartWorkflowExecutionRequest(SignalWithStartWorkflowExecutionR links_ = other.links_.Clone(); versioningOverride_ = other.versioningOverride_ != null ? other.versioningOverride_.Clone() : null; priority_ = other.priority_ != null ? other.priority_.Clone() : null; + timeSkippingConfig_ = other.timeSkippingConfig_ != null ? other.timeSkippingConfig_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -19530,6 +19710,21 @@ public string CronSchedule { } } + /// Field number for the "time_skipping_config" field. + public const int TimeSkippingConfigFieldNumber = 27; + private global::Temporalio.Api.Workflow.V1.TimeSkippingConfig timeSkippingConfig_; + /// + /// Time-skipping configuration. If not set, time skipping is disabled. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Workflow.V1.TimeSkippingConfig TimeSkippingConfig { + get { return timeSkippingConfig_; } + set { + timeSkippingConfig_ = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -19570,6 +19765,7 @@ public bool Equals(SignalWithStartWorkflowExecutionRequest other) { if(!links_.Equals(other.links_)) return false; if (!object.Equals(VersioningOverride, other.VersioningOverride)) return false; if (!object.Equals(Priority, other.Priority)) return false; + if (!object.Equals(TimeSkippingConfig, other.TimeSkippingConfig)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -19602,6 +19798,7 @@ public override int GetHashCode() { hash ^= links_.GetHashCode(); if (versioningOverride_ != null) hash ^= VersioningOverride.GetHashCode(); if (priority_ != null) hash ^= Priority.GetHashCode(); + if (timeSkippingConfig_ != null) hash ^= TimeSkippingConfig.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -19717,6 +19914,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(210, 1); output.WriteMessage(Priority); } + if (timeSkippingConfig_ != null) { + output.WriteRawTag(218, 1); + output.WriteMessage(TimeSkippingConfig); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -19824,6 +20025,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(210, 1); output.WriteMessage(Priority); } + if (timeSkippingConfig_ != null) { + output.WriteRawTag(218, 1); + output.WriteMessage(TimeSkippingConfig); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -19907,6 +20112,9 @@ public int CalculateSize() { if (priority_ != null) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(Priority); } + if (timeSkippingConfig_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(TimeSkippingConfig); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -20037,6 +20245,12 @@ public void MergeFrom(SignalWithStartWorkflowExecutionRequest other) { } Priority.MergeFrom(other.Priority); } + if (other.timeSkippingConfig_ != null) { + if (timeSkippingConfig_ == null) { + TimeSkippingConfig = new global::Temporalio.Api.Workflow.V1.TimeSkippingConfig(); + } + TimeSkippingConfig.MergeFrom(other.TimeSkippingConfig); + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -20197,6 +20411,13 @@ public void MergeFrom(pb::CodedInputStream input) { input.ReadMessage(Priority); break; } + case 218: { + if (timeSkippingConfig_ == null) { + TimeSkippingConfig = new global::Temporalio.Api.Workflow.V1.TimeSkippingConfig(); + } + input.ReadMessage(TimeSkippingConfig); + break; + } } } #endif @@ -20357,6 +20578,13 @@ public void MergeFrom(pb::CodedInputStream input) { input.ReadMessage(Priority); break; } + case 218: { + if (timeSkippingConfig_ == null) { + TimeSkippingConfig = new global::Temporalio.Api.Workflow.V1.TimeSkippingConfig(); + } + input.ReadMessage(TimeSkippingConfig); + break; + } } } } @@ -31516,6 +31744,7 @@ public Capabilities(Capabilities other) : this() { sdkMetadata_ = other.sdkMetadata_; countGroupByExecutionStatus_ = other.countGroupByExecutionStatus_; nexus_ = other.nexus_; + serverScaledDeployments_ = other.serverScaledDeployments_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -31699,6 +31928,23 @@ public bool Nexus { } } + /// Field number for the "server_scaled_deployments" field. + public const int ServerScaledDeploymentsFieldNumber = 12; + private bool serverScaledDeployments_; + /// + /// True if the server supports server-scaled deployments. + /// This flag is dependent both on server version and for server-scaled deployments + /// to be enabled via server configuration. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool ServerScaledDeployments { + get { return serverScaledDeployments_; } + set { + serverScaledDeployments_ = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -31725,6 +31971,7 @@ public bool Equals(Capabilities other) { if (SdkMetadata != other.SdkMetadata) return false; if (CountGroupByExecutionStatus != other.CountGroupByExecutionStatus) return false; if (Nexus != other.Nexus) return false; + if (ServerScaledDeployments != other.ServerScaledDeployments) return false; return Equals(_unknownFields, other._unknownFields); } @@ -31743,6 +31990,7 @@ public override int GetHashCode() { if (SdkMetadata != false) hash ^= SdkMetadata.GetHashCode(); if (CountGroupByExecutionStatus != false) hash ^= CountGroupByExecutionStatus.GetHashCode(); if (Nexus != false) hash ^= Nexus.GetHashCode(); + if (ServerScaledDeployments != false) hash ^= ServerScaledDeployments.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -31805,6 +32053,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(88); output.WriteBool(Nexus); } + if (ServerScaledDeployments != false) { + output.WriteRawTag(96); + output.WriteBool(ServerScaledDeployments); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -31859,6 +32111,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(88); output.WriteBool(Nexus); } + if (ServerScaledDeployments != false) { + output.WriteRawTag(96); + output.WriteBool(ServerScaledDeployments); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -31902,6 +32158,9 @@ public int CalculateSize() { if (Nexus != false) { size += 1 + 1; } + if (ServerScaledDeployments != false) { + size += 1 + 1; + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -31947,6 +32206,9 @@ public void MergeFrom(Capabilities other) { if (other.Nexus != false) { Nexus = other.Nexus; } + if (other.ServerScaledDeployments != false) { + ServerScaledDeployments = other.ServerScaledDeployments; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -32006,6 +32268,10 @@ public void MergeFrom(pb::CodedInputStream input) { Nexus = input.ReadBool(); break; } + case 96: { + ServerScaledDeployments = input.ReadBool(); + break; + } } } #endif @@ -32065,6 +32331,10 @@ public void MergeFrom(pb::CodedInputStream input) { Nexus = input.ReadBool(); break; } + case 96: { + ServerScaledDeployments = input.ReadBool(); + break; + } } } } @@ -33880,6 +34150,7 @@ public UpdateScheduleRequest(UpdateScheduleRequest other) : this() { identity_ = other.identity_; requestId_ = other.requestId_; searchAttributes_ = other.searchAttributes_ != null ? other.searchAttributes_.Clone() : null; + memo_ = other.memo_ != null ? other.memo_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -34002,6 +34273,23 @@ public string RequestId { } } + /// Field number for the "memo" field. + public const int MemoFieldNumber = 8; + private global::Temporalio.Api.Common.V1.Memo memo_; + /// + /// Schedule memo to replace. If set, replaces the entire memo. + /// Do not set this field if you do not want to update the memo. + /// A non-null empty object will clear the memo. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Common.V1.Memo Memo { + get { return memo_; } + set { + memo_ = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -34024,6 +34312,7 @@ public bool Equals(UpdateScheduleRequest other) { if (Identity != other.Identity) return false; if (RequestId != other.RequestId) return false; if (!object.Equals(SearchAttributes, other.SearchAttributes)) return false; + if (!object.Equals(Memo, other.Memo)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -34038,6 +34327,7 @@ public override int GetHashCode() { if (Identity.Length != 0) hash ^= Identity.GetHashCode(); if (RequestId.Length != 0) hash ^= RequestId.GetHashCode(); if (searchAttributes_ != null) hash ^= SearchAttributes.GetHashCode(); + if (memo_ != null) hash ^= Memo.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -34084,6 +34374,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(58); output.WriteMessage(SearchAttributes); } + if (memo_ != null) { + output.WriteRawTag(66); + output.WriteMessage(Memo); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -34122,6 +34416,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(58); output.WriteMessage(SearchAttributes); } + if (memo_ != null) { + output.WriteRawTag(66); + output.WriteMessage(Memo); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -34153,6 +34451,9 @@ public int CalculateSize() { if (searchAttributes_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(SearchAttributes); } + if (memo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Memo); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -34192,6 +34493,12 @@ public void MergeFrom(UpdateScheduleRequest other) { } SearchAttributes.MergeFrom(other.SearchAttributes); } + if (other.memo_ != null) { + if (memo_ == null) { + Memo = new global::Temporalio.Api.Common.V1.Memo(); + } + Memo.MergeFrom(other.Memo); + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -34241,6 +34548,13 @@ public void MergeFrom(pb::CodedInputStream input) { input.ReadMessage(SearchAttributes); break; } + case 66: { + if (memo_ == null) { + Memo = new global::Temporalio.Api.Common.V1.Memo(); + } + input.ReadMessage(Memo); + break; + } } } #endif @@ -34290,6 +34604,13 @@ public void MergeFrom(pb::CodedInputStream input) { input.ReadMessage(SearchAttributes); break; } + case 66: { + if (memo_ == null) { + Memo = new global::Temporalio.Api.Common.V1.Memo(); + } + input.ReadMessage(Memo); + break; + } } } } @@ -57299,16 +57620,19 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class ListWorkerDeploymentsRequest : pb::IMessage + /// + /// Creates a new WorkerDeployment. + /// + public sealed partial class CreateWorkerDeploymentRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListWorkerDeploymentsRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateWorkerDeploymentRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -57324,7 +57648,7 @@ public sealed partial class ListWorkerDeploymentsRequest : pb::IMessageField number for the "namespace" field. @@ -57357,39 +57682,61 @@ public string Namespace { } } - /// Field number for the "page_size" field. - public const int PageSizeFieldNumber = 2; - private int pageSize_; + /// Field number for the "deployment_name" field. + public const int DeploymentNameFieldNumber = 2; + private string deploymentName_ = ""; + /// + /// The name of the Worker Deployment to create. If a Worker Deployment with + /// this name already exists, an error will be returned. + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int PageSize { - get { return pageSize_; } + public string DeploymentName { + get { return deploymentName_; } set { - pageSize_ = value; + deploymentName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - /// Field number for the "next_page_token" field. - public const int NextPageTokenFieldNumber = 3; - private pb::ByteString nextPageToken_ = pb::ByteString.Empty; + /// Field number for the "identity" field. + public const int IdentityFieldNumber = 4; + private string identity_ = ""; + /// + /// Optional. The identity of the client who initiated this request. + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString NextPageToken { - get { return nextPageToken_; } + public string Identity { + get { return identity_; } set { - nextPageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + identity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "request_id" field. + public const int RequestIdFieldNumber = 5; + private string requestId_ = ""; + /// + /// A unique identifier for this create request for idempotence. Typically UUIDv4. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RequestId { + get { return requestId_; } + set { + requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as ListWorkerDeploymentsRequest); + return Equals(other as CreateWorkerDeploymentRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ListWorkerDeploymentsRequest other) { + public bool Equals(CreateWorkerDeploymentRequest other) { if (ReferenceEquals(other, null)) { return false; } @@ -57397,8 +57744,9 @@ public bool Equals(ListWorkerDeploymentsRequest other) { return true; } if (Namespace != other.Namespace) return false; - if (PageSize != other.PageSize) return false; - if (NextPageToken != other.NextPageToken) return false; + if (DeploymentName != other.DeploymentName) return false; + if (Identity != other.Identity) return false; + if (RequestId != other.RequestId) return false; return Equals(_unknownFields, other._unknownFields); } @@ -57407,8 +57755,9 @@ public bool Equals(ListWorkerDeploymentsRequest other) { public override int GetHashCode() { int hash = 1; if (Namespace.Length != 0) hash ^= Namespace.GetHashCode(); - if (PageSize != 0) hash ^= PageSize.GetHashCode(); - if (NextPageToken.Length != 0) hash ^= NextPageToken.GetHashCode(); + if (DeploymentName.Length != 0) hash ^= DeploymentName.GetHashCode(); + if (Identity.Length != 0) hash ^= Identity.GetHashCode(); + if (RequestId.Length != 0) hash ^= RequestId.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -57431,13 +57780,17 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(Namespace); } - if (PageSize != 0) { - output.WriteRawTag(16); - output.WriteInt32(PageSize); + if (DeploymentName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(DeploymentName); } - if (NextPageToken.Length != 0) { - output.WriteRawTag(26); - output.WriteBytes(NextPageToken); + if (Identity.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Identity); + } + if (RequestId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(RequestId); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -57453,13 +57806,17 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(Namespace); } - if (PageSize != 0) { - output.WriteRawTag(16); - output.WriteInt32(PageSize); + if (DeploymentName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(DeploymentName); } - if (NextPageToken.Length != 0) { - output.WriteRawTag(26); - output.WriteBytes(NextPageToken); + if (Identity.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Identity); + } + if (RequestId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(RequestId); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -57474,11 +57831,14 @@ public int CalculateSize() { if (Namespace.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Namespace); } - if (PageSize != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(PageSize); + if (DeploymentName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DeploymentName); } - if (NextPageToken.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(NextPageToken); + if (Identity.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Identity); + } + if (RequestId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -57488,18 +57848,21 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ListWorkerDeploymentsRequest other) { + public void MergeFrom(CreateWorkerDeploymentRequest other) { if (other == null) { return; } if (other.Namespace.Length != 0) { Namespace = other.Namespace; } - if (other.PageSize != 0) { - PageSize = other.PageSize; + if (other.DeploymentName.Length != 0) { + DeploymentName = other.DeploymentName; } - if (other.NextPageToken.Length != 0) { - NextPageToken = other.NextPageToken; + if (other.Identity.Length != 0) { + Identity = other.Identity; + } + if (other.RequestId.Length != 0) { + RequestId = other.RequestId; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -57520,12 +57883,16 @@ public void MergeFrom(pb::CodedInputStream input) { Namespace = input.ReadString(); break; } - case 16: { - PageSize = input.ReadInt32(); + case 18: { + DeploymentName = input.ReadString(); break; } - case 26: { - NextPageToken = input.ReadBytes(); + case 34: { + Identity = input.ReadString(); + break; + } + case 42: { + RequestId = input.ReadString(); break; } } @@ -57547,12 +57914,16 @@ public void MergeFrom(pb::CodedInputStream input) { Namespace = input.ReadString(); break; } - case 16: { - PageSize = input.ReadInt32(); + case 18: { + DeploymentName = input.ReadString(); break; } - case 26: { - NextPageToken = input.ReadBytes(); + case 34: { + Identity = input.ReadString(); + break; + } + case 42: { + RequestId = input.ReadString(); break; } } @@ -57562,16 +57933,16 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class ListWorkerDeploymentsResponse : pb::IMessage + public sealed partial class CreateWorkerDeploymentResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListWorkerDeploymentsResponse()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateWorkerDeploymentResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -57587,7 +57958,7 @@ public sealed partial class ListWorkerDeploymentsResponse : pb::IMessageField number for the "next_page_token" field. - public const int NextPageTokenFieldNumber = 1; - private pb::ByteString nextPageToken_ = pb::ByteString.Empty; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString NextPageToken { - get { return nextPageToken_; } - set { - nextPageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } + public CreateWorkerDeploymentResponse Clone() { + return new CreateWorkerDeploymentResponse(this); } - /// Field number for the "worker_deployments" field. - public const int WorkerDeploymentsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_workerDeployments_codec - = pb::FieldCodec.ForMessage(18, global::Temporalio.Api.WorkflowService.V1.ListWorkerDeploymentsResponse.Types.WorkerDeploymentSummary.Parser); - private readonly pbc::RepeatedField workerDeployments_ = new pbc::RepeatedField(); + /// Field number for the "conflict_token" field. + public const int ConflictTokenFieldNumber = 1; + private pb::ByteString conflictToken_ = pb::ByteString.Empty; /// - /// The list of worker deployments. + /// This value is returned so that it can be optionally passed to APIs that + /// write to the WorkerDeployment state to ensure that the state did not + /// change between this API call and a future write. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField WorkerDeployments { - get { return workerDeployments_; } + public pb::ByteString ConflictToken { + get { return conflictToken_; } + set { + conflictToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as ListWorkerDeploymentsResponse); + return Equals(other as CreateWorkerDeploymentResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ListWorkerDeploymentsResponse other) { + public bool Equals(CreateWorkerDeploymentResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (NextPageToken != other.NextPageToken) return false; - if(!workerDeployments_.Equals(other.workerDeployments_)) return false; + if (ConflictToken != other.ConflictToken) return false; return Equals(_unknownFields, other._unknownFields); } @@ -57657,8 +58017,7 @@ public bool Equals(ListWorkerDeploymentsResponse other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (NextPageToken.Length != 0) hash ^= NextPageToken.GetHashCode(); - hash ^= workerDeployments_.GetHashCode(); + if (ConflictToken.Length != 0) hash ^= ConflictToken.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -57677,11 +58036,10 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (NextPageToken.Length != 0) { + if (ConflictToken.Length != 0) { output.WriteRawTag(10); - output.WriteBytes(NextPageToken); + output.WriteBytes(ConflictToken); } - workerDeployments_.WriteTo(output, _repeated_workerDeployments_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -57692,11 +58050,10 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (NextPageToken.Length != 0) { + if (ConflictToken.Length != 0) { output.WriteRawTag(10); - output.WriteBytes(NextPageToken); + output.WriteBytes(ConflictToken); } - workerDeployments_.WriteTo(ref output, _repeated_workerDeployments_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -57707,10 +58064,9 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (NextPageToken.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(NextPageToken); + if (ConflictToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(ConflictToken); } - size += workerDeployments_.CalculateSize(_repeated_workerDeployments_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -57719,14 +58075,13 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ListWorkerDeploymentsResponse other) { + public void MergeFrom(CreateWorkerDeploymentResponse other) { if (other == null) { return; } - if (other.NextPageToken.Length != 0) { - NextPageToken = other.NextPageToken; + if (other.ConflictToken.Length != 0) { + ConflictToken = other.ConflictToken; } - workerDeployments_.Add(other.workerDeployments_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -57743,11 +58098,7 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - NextPageToken = input.ReadBytes(); - break; - } - case 18: { - workerDeployments_.AddEntriesFrom(input, _repeated_workerDeployments_codec); + ConflictToken = input.ReadBytes(); break; } } @@ -57766,11 +58117,7 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - NextPageToken = input.ReadBytes(); - break; - } - case 18: { - workerDeployments_.AddEntriesFrom(ref input, _repeated_workerDeployments_codec); + ConflictToken = input.ReadBytes(); break; } } @@ -57778,118 +58125,599 @@ public void MergeFrom(pb::CodedInputStream input) { } #endif - #region Nested types - /// Container for nested types declared in the ListWorkerDeploymentsResponse message type. + } + + public sealed partial class ListWorkerDeploymentsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListWorkerDeploymentsRequest()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// (-- api-linter: core::0123::resource-annotation=disabled --) - /// A subset of WorkerDeploymentInfo - /// - public sealed partial class WorkerDeploymentSummary : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new WorkerDeploymentSummary()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.WorkflowService.V1.ListWorkerDeploymentsResponse.Descriptor.NestedTypes[0]; } - } + public static pb::MessageParser Parser { get { return _parser; } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[156]; } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public WorkerDeploymentSummary() { - OnConstruction(); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } - partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListWorkerDeploymentsRequest() { + OnConstruction(); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public WorkerDeploymentSummary(WorkerDeploymentSummary other) : this() { - name_ = other.name_; - createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; - routingConfig_ = other.routingConfig_ != null ? other.routingConfig_.Clone() : null; - latestVersionSummary_ = other.latestVersionSummary_ != null ? other.latestVersionSummary_.Clone() : null; - currentVersionSummary_ = other.currentVersionSummary_ != null ? other.currentVersionSummary_.Clone() : null; - rampingVersionSummary_ = other.rampingVersionSummary_ != null ? other.rampingVersionSummary_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } + partial void OnConstruction(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public WorkerDeploymentSummary Clone() { - return new WorkerDeploymentSummary(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListWorkerDeploymentsRequest(ListWorkerDeploymentsRequest other) : this() { + namespace_ = other.namespace_; + pageSize_ = other.pageSize_; + nextPageToken_ = other.nextPageToken_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } - /// Field number for the "name" field. - public const int NameFieldNumber = 1; - private string name_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListWorkerDeploymentsRequest Clone() { + return new ListWorkerDeploymentsRequest(this); + } - /// Field number for the "create_time" field. - public const int CreateTimeFieldNumber = 2; - private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp CreateTime { - get { return createTime_; } - set { - createTime_ = value; - } - } + /// Field number for the "namespace" field. + public const int NamespaceFieldNumber = 1; + private string namespace_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Namespace { + get { return namespace_; } + set { + namespace_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } - /// Field number for the "routing_config" field. - public const int RoutingConfigFieldNumber = 3; - private global::Temporalio.Api.Deployment.V1.RoutingConfig routingConfig_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Temporalio.Api.Deployment.V1.RoutingConfig RoutingConfig { - get { return routingConfig_; } - set { - routingConfig_ = value; - } - } + /// Field number for the "page_size" field. + public const int PageSizeFieldNumber = 2; + private int pageSize_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PageSize { + get { return pageSize_; } + set { + pageSize_ = value; + } + } - /// Field number for the "latest_version_summary" field. - public const int LatestVersionSummaryFieldNumber = 4; - private global::Temporalio.Api.Deployment.V1.WorkerDeploymentInfo.Types.WorkerDeploymentVersionSummary latestVersionSummary_; - /// - /// Summary of the version that was added most recently in the Worker Deployment. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Temporalio.Api.Deployment.V1.WorkerDeploymentInfo.Types.WorkerDeploymentVersionSummary LatestVersionSummary { - get { return latestVersionSummary_; } - set { - latestVersionSummary_ = value; - } - } + /// Field number for the "next_page_token" field. + public const int NextPageTokenFieldNumber = 3; + private pb::ByteString nextPageToken_ = pb::ByteString.Empty; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString NextPageToken { + get { return nextPageToken_; } + set { + nextPageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } - /// Field number for the "current_version_summary" field. - public const int CurrentVersionSummaryFieldNumber = 5; - private global::Temporalio.Api.Deployment.V1.WorkerDeploymentInfo.Types.WorkerDeploymentVersionSummary currentVersionSummary_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListWorkerDeploymentsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListWorkerDeploymentsRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Namespace != other.Namespace) return false; + if (PageSize != other.PageSize) return false; + if (NextPageToken != other.NextPageToken) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Namespace.Length != 0) hash ^= Namespace.GetHashCode(); + if (PageSize != 0) hash ^= PageSize.GetHashCode(); + if (NextPageToken.Length != 0) hash ^= NextPageToken.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Namespace.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Namespace); + } + if (PageSize != 0) { + output.WriteRawTag(16); + output.WriteInt32(PageSize); + } + if (NextPageToken.Length != 0) { + output.WriteRawTag(26); + output.WriteBytes(NextPageToken); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Namespace.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Namespace); + } + if (PageSize != 0) { + output.WriteRawTag(16); + output.WriteInt32(PageSize); + } + if (NextPageToken.Length != 0) { + output.WriteRawTag(26); + output.WriteBytes(NextPageToken); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Namespace.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Namespace); + } + if (PageSize != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PageSize); + } + if (NextPageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(NextPageToken); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListWorkerDeploymentsRequest other) { + if (other == null) { + return; + } + if (other.Namespace.Length != 0) { + Namespace = other.Namespace; + } + if (other.PageSize != 0) { + PageSize = other.PageSize; + } + if (other.NextPageToken.Length != 0) { + NextPageToken = other.NextPageToken; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Namespace = input.ReadString(); + break; + } + case 16: { + PageSize = input.ReadInt32(); + break; + } + case 26: { + NextPageToken = input.ReadBytes(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Namespace = input.ReadString(); + break; + } + case 16: { + PageSize = input.ReadInt32(); + break; + } + case 26: { + NextPageToken = input.ReadBytes(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ListWorkerDeploymentsResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListWorkerDeploymentsResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[157]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListWorkerDeploymentsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListWorkerDeploymentsResponse(ListWorkerDeploymentsResponse other) : this() { + nextPageToken_ = other.nextPageToken_; + workerDeployments_ = other.workerDeployments_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListWorkerDeploymentsResponse Clone() { + return new ListWorkerDeploymentsResponse(this); + } + + /// Field number for the "next_page_token" field. + public const int NextPageTokenFieldNumber = 1; + private pb::ByteString nextPageToken_ = pb::ByteString.Empty; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString NextPageToken { + get { return nextPageToken_; } + set { + nextPageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "worker_deployments" field. + public const int WorkerDeploymentsFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_workerDeployments_codec + = pb::FieldCodec.ForMessage(18, global::Temporalio.Api.WorkflowService.V1.ListWorkerDeploymentsResponse.Types.WorkerDeploymentSummary.Parser); + private readonly pbc::RepeatedField workerDeployments_ = new pbc::RepeatedField(); + /// + /// The list of worker deployments. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField WorkerDeployments { + get { return workerDeployments_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListWorkerDeploymentsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListWorkerDeploymentsResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (NextPageToken != other.NextPageToken) return false; + if(!workerDeployments_.Equals(other.workerDeployments_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (NextPageToken.Length != 0) hash ^= NextPageToken.GetHashCode(); + hash ^= workerDeployments_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (NextPageToken.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(NextPageToken); + } + workerDeployments_.WriteTo(output, _repeated_workerDeployments_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (NextPageToken.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(NextPageToken); + } + workerDeployments_.WriteTo(ref output, _repeated_workerDeployments_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (NextPageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(NextPageToken); + } + size += workerDeployments_.CalculateSize(_repeated_workerDeployments_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListWorkerDeploymentsResponse other) { + if (other == null) { + return; + } + if (other.NextPageToken.Length != 0) { + NextPageToken = other.NextPageToken; + } + workerDeployments_.Add(other.workerDeployments_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + NextPageToken = input.ReadBytes(); + break; + } + case 18: { + workerDeployments_.AddEntriesFrom(input, _repeated_workerDeployments_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + NextPageToken = input.ReadBytes(); + break; + } + case 18: { + workerDeployments_.AddEntriesFrom(ref input, _repeated_workerDeployments_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the ListWorkerDeploymentsResponse message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// (-- api-linter: core::0123::resource-annotation=disabled --) + /// A subset of WorkerDeploymentInfo + /// + public sealed partial class WorkerDeploymentSummary : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new WorkerDeploymentSummary()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Temporalio.Api.WorkflowService.V1.ListWorkerDeploymentsResponse.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public WorkerDeploymentSummary() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public WorkerDeploymentSummary(WorkerDeploymentSummary other) : this() { + name_ = other.name_; + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + routingConfig_ = other.routingConfig_ != null ? other.routingConfig_.Clone() : null; + latestVersionSummary_ = other.latestVersionSummary_ != null ? other.latestVersionSummary_.Clone() : null; + currentVersionSummary_ = other.currentVersionSummary_ != null ? other.currentVersionSummary_.Clone() : null; + rampingVersionSummary_ = other.rampingVersionSummary_ != null ? other.rampingVersionSummary_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public WorkerDeploymentSummary Clone() { + return new WorkerDeploymentSummary(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "create_time" field. + public const int CreateTimeFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreateTime { + get { return createTime_; } + set { + createTime_ = value; + } + } + + /// Field number for the "routing_config" field. + public const int RoutingConfigFieldNumber = 3; + private global::Temporalio.Api.Deployment.V1.RoutingConfig routingConfig_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Deployment.V1.RoutingConfig RoutingConfig { + get { return routingConfig_; } + set { + routingConfig_ = value; + } + } + + /// Field number for the "latest_version_summary" field. + public const int LatestVersionSummaryFieldNumber = 4; + private global::Temporalio.Api.Deployment.V1.WorkerDeploymentInfo.Types.WorkerDeploymentVersionSummary latestVersionSummary_; + /// + /// Summary of the version that was added most recently in the Worker Deployment. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Deployment.V1.WorkerDeploymentInfo.Types.WorkerDeploymentVersionSummary LatestVersionSummary { + get { return latestVersionSummary_; } + set { + latestVersionSummary_ = value; + } + } + + /// Field number for the "current_version_summary" field. + public const int CurrentVersionSummaryFieldNumber = 5; + private global::Temporalio.Api.Deployment.V1.WorkerDeploymentInfo.Types.WorkerDeploymentVersionSummary currentVersionSummary_; /// /// Summary of the current version of the Worker Deployment. /// @@ -58221,28 +59049,23 @@ public void MergeFrom(pb::CodedInputStream input) { } /// - /// 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`. + /// Creates a new WorkerDeploymentVersion. /// - public sealed partial class DeleteWorkerDeploymentVersionRequest : pb::IMessage + public sealed partial class CreateWorkerDeploymentVersionRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteWorkerDeploymentVersionRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateWorkerDeploymentVersionRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[156]; } + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[158]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -58253,7 +59076,7 @@ public sealed partial class DeleteWorkerDeploymentVersionRequest : pb::IMessage< [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteWorkerDeploymentVersionRequest() { + public CreateWorkerDeploymentVersionRequest() { OnConstruction(); } @@ -58261,19 +59084,19 @@ public DeleteWorkerDeploymentVersionRequest() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteWorkerDeploymentVersionRequest(DeleteWorkerDeploymentVersionRequest other) : this() { + public CreateWorkerDeploymentVersionRequest(CreateWorkerDeploymentVersionRequest other) : this() { namespace_ = other.namespace_; - version_ = other.version_; deploymentVersion_ = other.deploymentVersion_ != null ? other.deploymentVersion_.Clone() : null; - skipDrainage_ = other.skipDrainage_; + computeConfig_ = other.computeConfig_ != null ? other.computeConfig_.Clone() : null; identity_ = other.identity_; + requestId_ = other.requestId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteWorkerDeploymentVersionRequest Clone() { - return new DeleteWorkerDeploymentVersionRequest(this); + public CreateWorkerDeploymentVersionRequest Clone() { + return new CreateWorkerDeploymentVersionRequest(this); } /// Field number for the "namespace" field. @@ -58288,24 +59111,8 @@ public string Namespace { } } - /// Field number for the "version" field. - public const int VersionFieldNumber = 2; - private string version_ = ""; - /// - /// Deprecated. Use `deployment_version`. - /// - [global::System.ObsoleteAttribute] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Version { - get { return version_; } - set { - version_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Field number for the "deployment_version" field. - public const int DeploymentVersionFieldNumber = 5; + public const int DeploymentVersionFieldNumber = 2; private global::Temporalio.Api.Deployment.V1.WorkerDeploymentVersion deploymentVersion_; /// /// Required. @@ -58319,24 +59126,24 @@ public string Version { } } - /// Field number for the "skip_drainage" field. - public const int SkipDrainageFieldNumber = 3; - private bool skipDrainage_; + /// Field number for the "compute_config" field. + public const int ComputeConfigFieldNumber = 4; + private global::Temporalio.Api.Compute.V1.ComputeConfig computeConfig_; /// - /// 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. + /// Optional. Contains the new worker compute configuration for the Worker + /// Deployment. Used for worker scale management. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool SkipDrainage { - get { return skipDrainage_; } + public global::Temporalio.Api.Compute.V1.ComputeConfig ComputeConfig { + get { return computeConfig_; } set { - skipDrainage_ = value; + computeConfig_ = value; } } /// Field number for the "identity" field. - public const int IdentityFieldNumber = 4; + public const int IdentityFieldNumber = 3; private string identity_ = ""; /// /// Optional. The identity of the client who initiated this request. @@ -58350,15 +59157,32 @@ public string Identity { } } + /// Field number for the "request_id" field. + public const int RequestIdFieldNumber = 5; + private string requestId_ = ""; + /// + /// A unique identifier for this create request for idempotence. Typically UUIDv4. + /// If a second request with the same ID is recieved, it is considered a successful no-op. + /// Retrying with a different request ID for the same deployment name + build ID is an error. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RequestId { + get { return requestId_; } + set { + requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as DeleteWorkerDeploymentVersionRequest); + return Equals(other as CreateWorkerDeploymentVersionRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DeleteWorkerDeploymentVersionRequest other) { + public bool Equals(CreateWorkerDeploymentVersionRequest other) { if (ReferenceEquals(other, null)) { return false; } @@ -58366,10 +59190,10 @@ public bool Equals(DeleteWorkerDeploymentVersionRequest other) { return true; } if (Namespace != other.Namespace) return false; - if (Version != other.Version) return false; if (!object.Equals(DeploymentVersion, other.DeploymentVersion)) return false; - if (SkipDrainage != other.SkipDrainage) return false; + if (!object.Equals(ComputeConfig, other.ComputeConfig)) return false; if (Identity != other.Identity) return false; + if (RequestId != other.RequestId) return false; return Equals(_unknownFields, other._unknownFields); } @@ -58378,10 +59202,10 @@ public bool Equals(DeleteWorkerDeploymentVersionRequest other) { public override int GetHashCode() { int hash = 1; if (Namespace.Length != 0) hash ^= Namespace.GetHashCode(); - if (Version.Length != 0) hash ^= Version.GetHashCode(); if (deploymentVersion_ != null) hash ^= DeploymentVersion.GetHashCode(); - if (SkipDrainage != false) hash ^= SkipDrainage.GetHashCode(); + if (computeConfig_ != null) hash ^= ComputeConfig.GetHashCode(); if (Identity.Length != 0) hash ^= Identity.GetHashCode(); + if (RequestId.Length != 0) hash ^= RequestId.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -58404,21 +59228,21 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(Namespace); } - if (Version.Length != 0) { + if (deploymentVersion_ != null) { output.WriteRawTag(18); - output.WriteString(Version); - } - if (SkipDrainage != false) { - output.WriteRawTag(24); - output.WriteBool(SkipDrainage); + output.WriteMessage(DeploymentVersion); } if (Identity.Length != 0) { - output.WriteRawTag(34); + output.WriteRawTag(26); output.WriteString(Identity); } - if (deploymentVersion_ != null) { + if (computeConfig_ != null) { + output.WriteRawTag(34); + output.WriteMessage(ComputeConfig); + } + if (RequestId.Length != 0) { output.WriteRawTag(42); - output.WriteMessage(DeploymentVersion); + output.WriteString(RequestId); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -58434,21 +59258,21 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(Namespace); } - if (Version.Length != 0) { + if (deploymentVersion_ != null) { output.WriteRawTag(18); - output.WriteString(Version); - } - if (SkipDrainage != false) { - output.WriteRawTag(24); - output.WriteBool(SkipDrainage); + output.WriteMessage(DeploymentVersion); } if (Identity.Length != 0) { - output.WriteRawTag(34); + output.WriteRawTag(26); output.WriteString(Identity); } - if (deploymentVersion_ != null) { + if (computeConfig_ != null) { + output.WriteRawTag(34); + output.WriteMessage(ComputeConfig); + } + if (RequestId.Length != 0) { output.WriteRawTag(42); - output.WriteMessage(DeploymentVersion); + output.WriteString(RequestId); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -58463,18 +59287,18 @@ public int CalculateSize() { if (Namespace.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Namespace); } - if (Version.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Version); - } if (deploymentVersion_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeploymentVersion); } - if (SkipDrainage != false) { - size += 1 + 1; + if (computeConfig_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ComputeConfig); } if (Identity.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Identity); } + if (RequestId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -58483,28 +59307,31 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DeleteWorkerDeploymentVersionRequest other) { + public void MergeFrom(CreateWorkerDeploymentVersionRequest other) { if (other == null) { return; } if (other.Namespace.Length != 0) { Namespace = other.Namespace; } - if (other.Version.Length != 0) { - Version = other.Version; - } if (other.deploymentVersion_ != null) { if (deploymentVersion_ == null) { DeploymentVersion = new global::Temporalio.Api.Deployment.V1.WorkerDeploymentVersion(); } DeploymentVersion.MergeFrom(other.DeploymentVersion); } - if (other.SkipDrainage != false) { - SkipDrainage = other.SkipDrainage; + if (other.computeConfig_ != null) { + if (computeConfig_ == null) { + ComputeConfig = new global::Temporalio.Api.Compute.V1.ComputeConfig(); + } + ComputeConfig.MergeFrom(other.ComputeConfig); } if (other.Identity.Length != 0) { Identity = other.Identity; } + if (other.RequestId.Length != 0) { + RequestId = other.RequestId; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -58525,22 +59352,25 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - Version = input.ReadString(); + if (deploymentVersion_ == null) { + DeploymentVersion = new global::Temporalio.Api.Deployment.V1.WorkerDeploymentVersion(); + } + input.ReadMessage(DeploymentVersion); break; } - case 24: { - SkipDrainage = input.ReadBool(); + case 26: { + Identity = input.ReadString(); break; } case 34: { - Identity = input.ReadString(); + if (computeConfig_ == null) { + ComputeConfig = new global::Temporalio.Api.Compute.V1.ComputeConfig(); + } + input.ReadMessage(ComputeConfig); break; } case 42: { - if (deploymentVersion_ == null) { - DeploymentVersion = new global::Temporalio.Api.Deployment.V1.WorkerDeploymentVersion(); - } - input.ReadMessage(DeploymentVersion); + RequestId = input.ReadString(); break; } } @@ -58563,22 +59393,25 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - Version = input.ReadString(); + if (deploymentVersion_ == null) { + DeploymentVersion = new global::Temporalio.Api.Deployment.V1.WorkerDeploymentVersion(); + } + input.ReadMessage(DeploymentVersion); break; } - case 24: { - SkipDrainage = input.ReadBool(); + case 26: { + Identity = input.ReadString(); break; } case 34: { - Identity = input.ReadString(); + if (computeConfig_ == null) { + ComputeConfig = new global::Temporalio.Api.Compute.V1.ComputeConfig(); + } + input.ReadMessage(ComputeConfig); break; } case 42: { - if (deploymentVersion_ == null) { - DeploymentVersion = new global::Temporalio.Api.Deployment.V1.WorkerDeploymentVersion(); - } - input.ReadMessage(DeploymentVersion); + RequestId = input.ReadString(); break; } } @@ -58588,21 +59421,21 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class DeleteWorkerDeploymentVersionResponse : pb::IMessage + public sealed partial class CreateWorkerDeploymentVersionResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteWorkerDeploymentVersionResponse()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateWorkerDeploymentVersionResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[157]; } + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[159]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -58613,7 +59446,7 @@ public sealed partial class DeleteWorkerDeploymentVersionResponse : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteWorkerDeploymentVersionResponse() { + public CreateWorkerDeploymentVersionResponse() { OnConstruction(); } @@ -58621,25 +59454,25 @@ public DeleteWorkerDeploymentVersionResponse() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteWorkerDeploymentVersionResponse(DeleteWorkerDeploymentVersionResponse other) : this() { + public CreateWorkerDeploymentVersionResponse(CreateWorkerDeploymentVersionResponse other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteWorkerDeploymentVersionResponse Clone() { - return new DeleteWorkerDeploymentVersionResponse(this); + public CreateWorkerDeploymentVersionResponse Clone() { + return new CreateWorkerDeploymentVersionResponse(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as DeleteWorkerDeploymentVersionResponse); + return Equals(other as CreateWorkerDeploymentVersionResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DeleteWorkerDeploymentVersionResponse other) { + public bool Equals(CreateWorkerDeploymentVersionResponse other) { if (ReferenceEquals(other, null)) { return false; } @@ -58699,7 +59532,7 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DeleteWorkerDeploymentVersionResponse other) { + public void MergeFrom(CreateWorkerDeploymentVersionResponse other) { if (other == null) { return; } @@ -58741,24 +59574,28 @@ public void MergeFrom(pb::CodedInputStream input) { } /// - /// Deletes records of (an old) Deployment. A deployment can only be deleted if - /// it has no Version in it. + /// 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`. /// - public sealed partial class DeleteWorkerDeploymentRequest : pb::IMessage + public sealed partial class DeleteWorkerDeploymentVersionRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteWorkerDeploymentRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteWorkerDeploymentVersionRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[158]; } + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[160]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -58769,7 +59606,7 @@ public sealed partial class DeleteWorkerDeploymentRequest : pb::IMessageField number for the "namespace" field. @@ -58802,20 +59641,55 @@ public string Namespace { } } - /// Field number for the "deployment_name" field. - public const int DeploymentNameFieldNumber = 2; - private string deploymentName_ = ""; + /// Field number for the "version" field. + public const int VersionFieldNumber = 2; + private string version_ = ""; + /// + /// Deprecated. Use `deployment_version`. + /// + [global::System.ObsoleteAttribute] [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DeploymentName { - get { return deploymentName_; } + public string Version { + get { return version_; } set { - deploymentName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + version_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "deployment_version" field. + public const int DeploymentVersionFieldNumber = 5; + private global::Temporalio.Api.Deployment.V1.WorkerDeploymentVersion deploymentVersion_; + /// + /// Required. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Deployment.V1.WorkerDeploymentVersion DeploymentVersion { + get { return deploymentVersion_; } + set { + deploymentVersion_ = value; + } + } + + /// Field number for the "skip_drainage" field. + public const int SkipDrainageFieldNumber = 3; + private bool skipDrainage_; + /// + /// 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. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool SkipDrainage { + get { return skipDrainage_; } + set { + skipDrainage_ = value; } } /// Field number for the "identity" field. - public const int IdentityFieldNumber = 3; + public const int IdentityFieldNumber = 4; private string identity_ = ""; /// /// Optional. The identity of the client who initiated this request. @@ -58832,12 +59706,12 @@ public string Identity { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as DeleteWorkerDeploymentRequest); + return Equals(other as DeleteWorkerDeploymentVersionRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DeleteWorkerDeploymentRequest other) { + public bool Equals(DeleteWorkerDeploymentVersionRequest other) { if (ReferenceEquals(other, null)) { return false; } @@ -58845,7 +59719,9 @@ public bool Equals(DeleteWorkerDeploymentRequest other) { return true; } if (Namespace != other.Namespace) return false; - if (DeploymentName != other.DeploymentName) return false; + if (Version != other.Version) return false; + if (!object.Equals(DeploymentVersion, other.DeploymentVersion)) return false; + if (SkipDrainage != other.SkipDrainage) return false; if (Identity != other.Identity) return false; return Equals(_unknownFields, other._unknownFields); } @@ -58855,7 +59731,9 @@ public bool Equals(DeleteWorkerDeploymentRequest other) { public override int GetHashCode() { int hash = 1; if (Namespace.Length != 0) hash ^= Namespace.GetHashCode(); - if (DeploymentName.Length != 0) hash ^= DeploymentName.GetHashCode(); + if (Version.Length != 0) hash ^= Version.GetHashCode(); + if (deploymentVersion_ != null) hash ^= DeploymentVersion.GetHashCode(); + if (SkipDrainage != false) hash ^= SkipDrainage.GetHashCode(); if (Identity.Length != 0) hash ^= Identity.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); @@ -58879,14 +59757,22 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(Namespace); } - if (DeploymentName.Length != 0) { + if (Version.Length != 0) { output.WriteRawTag(18); - output.WriteString(DeploymentName); + output.WriteString(Version); + } + if (SkipDrainage != false) { + output.WriteRawTag(24); + output.WriteBool(SkipDrainage); } if (Identity.Length != 0) { - output.WriteRawTag(26); + output.WriteRawTag(34); output.WriteString(Identity); } + if (deploymentVersion_ != null) { + output.WriteRawTag(42); + output.WriteMessage(DeploymentVersion); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -58901,14 +59787,22 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(Namespace); } - if (DeploymentName.Length != 0) { + if (Version.Length != 0) { output.WriteRawTag(18); - output.WriteString(DeploymentName); + output.WriteString(Version); + } + if (SkipDrainage != false) { + output.WriteRawTag(24); + output.WriteBool(SkipDrainage); } if (Identity.Length != 0) { - output.WriteRawTag(26); + output.WriteRawTag(34); output.WriteString(Identity); } + if (deploymentVersion_ != null) { + output.WriteRawTag(42); + output.WriteMessage(DeploymentVersion); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -58922,8 +59816,14 @@ public int CalculateSize() { if (Namespace.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Namespace); } - if (DeploymentName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DeploymentName); + if (Version.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Version); + } + if (deploymentVersion_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeploymentVersion); + } + if (SkipDrainage != false) { + size += 1 + 1; } if (Identity.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Identity); @@ -58936,15 +59836,24 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DeleteWorkerDeploymentRequest other) { + public void MergeFrom(DeleteWorkerDeploymentVersionRequest other) { if (other == null) { return; } if (other.Namespace.Length != 0) { Namespace = other.Namespace; } - if (other.DeploymentName.Length != 0) { - DeploymentName = other.DeploymentName; + if (other.Version.Length != 0) { + Version = other.Version; + } + if (other.deploymentVersion_ != null) { + if (deploymentVersion_ == null) { + DeploymentVersion = new global::Temporalio.Api.Deployment.V1.WorkerDeploymentVersion(); + } + DeploymentVersion.MergeFrom(other.DeploymentVersion); + } + if (other.SkipDrainage != false) { + SkipDrainage = other.SkipDrainage; } if (other.Identity.Length != 0) { Identity = other.Identity; @@ -58969,13 +59878,24 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - DeploymentName = input.ReadString(); + Version = input.ReadString(); break; } - case 26: { + case 24: { + SkipDrainage = input.ReadBool(); + break; + } + case 34: { Identity = input.ReadString(); break; } + case 42: { + if (deploymentVersion_ == null) { + DeploymentVersion = new global::Temporalio.Api.Deployment.V1.WorkerDeploymentVersion(); + } + input.ReadMessage(DeploymentVersion); + break; + } } } #endif @@ -58996,13 +59916,24 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - DeploymentName = input.ReadString(); + Version = input.ReadString(); break; } - case 26: { + case 24: { + SkipDrainage = input.ReadBool(); + break; + } + case 34: { Identity = input.ReadString(); break; } + case 42: { + if (deploymentVersion_ == null) { + DeploymentVersion = new global::Temporalio.Api.Deployment.V1.WorkerDeploymentVersion(); + } + input.ReadMessage(DeploymentVersion); + break; + } } } } @@ -59010,21 +59941,21 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class DeleteWorkerDeploymentResponse : pb::IMessage + public sealed partial class DeleteWorkerDeploymentVersionResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteWorkerDeploymentResponse()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteWorkerDeploymentVersionResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[159]; } + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[161]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -59035,7 +59966,7 @@ public sealed partial class DeleteWorkerDeploymentResponse : pb::IMessage - /// Used to update the user-defined metadata of a Worker Deployment Version. + /// Deletes records of (an old) Deployment. A deployment can only be deleted if + /// it has no Version in it. /// - public sealed partial class UpdateWorkerDeploymentVersionMetadataRequest : pb::IMessage + public sealed partial class DeleteWorkerDeploymentRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateWorkerDeploymentVersionMetadataRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteWorkerDeploymentRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[160]; } + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[162]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -59190,7 +60122,7 @@ public sealed partial class UpdateWorkerDeploymentVersionMetadataRequest : pb::I [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateWorkerDeploymentVersionMetadataRequest() { + public DeleteWorkerDeploymentRequest() { OnConstruction(); } @@ -59198,20 +60130,17 @@ public UpdateWorkerDeploymentVersionMetadataRequest() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateWorkerDeploymentVersionMetadataRequest(UpdateWorkerDeploymentVersionMetadataRequest other) : this() { + public DeleteWorkerDeploymentRequest(DeleteWorkerDeploymentRequest other) : this() { namespace_ = other.namespace_; - version_ = other.version_; - deploymentVersion_ = other.deploymentVersion_ != null ? other.deploymentVersion_.Clone() : null; - upsertEntries_ = other.upsertEntries_.Clone(); - removeEntries_ = other.removeEntries_.Clone(); + deploymentName_ = other.deploymentName_; identity_ = other.identity_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateWorkerDeploymentVersionMetadataRequest Clone() { - return new UpdateWorkerDeploymentVersionMetadataRequest(this); + public DeleteWorkerDeploymentRequest Clone() { + return new DeleteWorkerDeploymentRequest(this); } /// Field number for the "namespace" field. @@ -59226,64 +60155,20 @@ public string Namespace { } } - /// Field number for the "version" field. - public const int VersionFieldNumber = 2; - private string version_ = ""; - /// - /// Deprecated. Use `deployment_version`. - /// - [global::System.ObsoleteAttribute] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Version { - get { return version_; } - set { - version_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "deployment_version" field. - public const int DeploymentVersionFieldNumber = 5; - private global::Temporalio.Api.Deployment.V1.WorkerDeploymentVersion deploymentVersion_; - /// - /// Required. - /// + /// Field number for the "deployment_name" field. + public const int DeploymentNameFieldNumber = 2; + private string deploymentName_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Temporalio.Api.Deployment.V1.WorkerDeploymentVersion DeploymentVersion { - get { return deploymentVersion_; } + public string DeploymentName { + get { return deploymentName_; } set { - deploymentVersion_ = value; + deploymentName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - /// Field number for the "upsert_entries" field. - public const int UpsertEntriesFieldNumber = 3; - private static readonly pbc::MapField.Codec _map_upsertEntries_codec - = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Temporalio.Api.Common.V1.Payload.Parser), 26); - private readonly pbc::MapField upsertEntries_ = new pbc::MapField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::MapField UpsertEntries { - get { return upsertEntries_; } - } - - /// Field number for the "remove_entries" field. - public const int RemoveEntriesFieldNumber = 4; - private static readonly pb::FieldCodec _repeated_removeEntries_codec - = pb::FieldCodec.ForString(34); - private readonly pbc::RepeatedField removeEntries_ = new pbc::RepeatedField(); - /// - /// List of keys to remove from the metadata. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField RemoveEntries { - get { return removeEntries_; } - } - /// Field number for the "identity" field. - public const int IdentityFieldNumber = 6; + public const int IdentityFieldNumber = 3; private string identity_ = ""; /// /// Optional. The identity of the client who initiated this request. @@ -59300,12 +60185,12 @@ public string Identity { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as UpdateWorkerDeploymentVersionMetadataRequest); + return Equals(other as DeleteWorkerDeploymentRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UpdateWorkerDeploymentVersionMetadataRequest other) { + public bool Equals(DeleteWorkerDeploymentRequest other) { if (ReferenceEquals(other, null)) { return false; } @@ -59313,10 +60198,7 @@ public bool Equals(UpdateWorkerDeploymentVersionMetadataRequest other) { return true; } if (Namespace != other.Namespace) return false; - if (Version != other.Version) return false; - if (!object.Equals(DeploymentVersion, other.DeploymentVersion)) return false; - if (!UpsertEntries.Equals(other.UpsertEntries)) return false; - if(!removeEntries_.Equals(other.removeEntries_)) return false; + if (DeploymentName != other.DeploymentName) return false; if (Identity != other.Identity) return false; return Equals(_unknownFields, other._unknownFields); } @@ -59326,10 +60208,7 @@ public bool Equals(UpdateWorkerDeploymentVersionMetadataRequest other) { public override int GetHashCode() { int hash = 1; if (Namespace.Length != 0) hash ^= Namespace.GetHashCode(); - if (Version.Length != 0) hash ^= Version.GetHashCode(); - if (deploymentVersion_ != null) hash ^= DeploymentVersion.GetHashCode(); - hash ^= UpsertEntries.GetHashCode(); - hash ^= removeEntries_.GetHashCode(); + if (DeploymentName.Length != 0) hash ^= DeploymentName.GetHashCode(); if (Identity.Length != 0) hash ^= Identity.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); @@ -59353,18 +60232,12 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(Namespace); } - if (Version.Length != 0) { + if (DeploymentName.Length != 0) { output.WriteRawTag(18); - output.WriteString(Version); - } - upsertEntries_.WriteTo(output, _map_upsertEntries_codec); - removeEntries_.WriteTo(output, _repeated_removeEntries_codec); - if (deploymentVersion_ != null) { - output.WriteRawTag(42); - output.WriteMessage(DeploymentVersion); + output.WriteString(DeploymentName); } if (Identity.Length != 0) { - output.WriteRawTag(50); + output.WriteRawTag(26); output.WriteString(Identity); } if (_unknownFields != null) { @@ -59381,18 +60254,12 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(Namespace); } - if (Version.Length != 0) { + if (DeploymentName.Length != 0) { output.WriteRawTag(18); - output.WriteString(Version); - } - upsertEntries_.WriteTo(ref output, _map_upsertEntries_codec); - removeEntries_.WriteTo(ref output, _repeated_removeEntries_codec); - if (deploymentVersion_ != null) { - output.WriteRawTag(42); - output.WriteMessage(DeploymentVersion); + output.WriteString(DeploymentName); } if (Identity.Length != 0) { - output.WriteRawTag(50); + output.WriteRawTag(26); output.WriteString(Identity); } if (_unknownFields != null) { @@ -59408,14 +60275,9 @@ public int CalculateSize() { if (Namespace.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Namespace); } - if (Version.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Version); - } - if (deploymentVersion_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeploymentVersion); + if (DeploymentName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DeploymentName); } - size += upsertEntries_.CalculateSize(_map_upsertEntries_codec); - size += removeEntries_.CalculateSize(_repeated_removeEntries_codec); if (Identity.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Identity); } @@ -59427,24 +60289,16 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UpdateWorkerDeploymentVersionMetadataRequest other) { + public void MergeFrom(DeleteWorkerDeploymentRequest other) { if (other == null) { return; } if (other.Namespace.Length != 0) { Namespace = other.Namespace; } - if (other.Version.Length != 0) { - Version = other.Version; - } - if (other.deploymentVersion_ != null) { - if (deploymentVersion_ == null) { - DeploymentVersion = new global::Temporalio.Api.Deployment.V1.WorkerDeploymentVersion(); - } - DeploymentVersion.MergeFrom(other.DeploymentVersion); + if (other.DeploymentName.Length != 0) { + DeploymentName = other.DeploymentName; } - upsertEntries_.MergeFrom(other.upsertEntries_); - removeEntries_.Add(other.removeEntries_); if (other.Identity.Length != 0) { Identity = other.Identity; } @@ -59468,25 +60322,10 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - Version = input.ReadString(); + DeploymentName = input.ReadString(); break; } case 26: { - upsertEntries_.AddEntriesFrom(input, _map_upsertEntries_codec); - break; - } - case 34: { - removeEntries_.AddEntriesFrom(input, _repeated_removeEntries_codec); - break; - } - case 42: { - if (deploymentVersion_ == null) { - DeploymentVersion = new global::Temporalio.Api.Deployment.V1.WorkerDeploymentVersion(); - } - input.ReadMessage(DeploymentVersion); - break; - } - case 50: { Identity = input.ReadString(); break; } @@ -59510,25 +60349,10 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - Version = input.ReadString(); + DeploymentName = input.ReadString(); break; } case 26: { - upsertEntries_.AddEntriesFrom(ref input, _map_upsertEntries_codec); - break; - } - case 34: { - removeEntries_.AddEntriesFrom(ref input, _repeated_removeEntries_codec); - break; - } - case 42: { - if (deploymentVersion_ == null) { - DeploymentVersion = new global::Temporalio.Api.Deployment.V1.WorkerDeploymentVersion(); - } - input.ReadMessage(DeploymentVersion); - break; - } - case 50: { Identity = input.ReadString(); break; } @@ -59539,21 +60363,21 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class UpdateWorkerDeploymentVersionMetadataResponse : pb::IMessage + public sealed partial class DeleteWorkerDeploymentResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateWorkerDeploymentVersionMetadataResponse()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteWorkerDeploymentResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[161]; } + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[163]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -59564,7 +60388,7 @@ public sealed partial class UpdateWorkerDeploymentVersionMetadataResponse : pb:: [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateWorkerDeploymentVersionMetadataResponse() { + public DeleteWorkerDeploymentResponse() { OnConstruction(); } @@ -59572,48 +60396,31 @@ public UpdateWorkerDeploymentVersionMetadataResponse() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateWorkerDeploymentVersionMetadataResponse(UpdateWorkerDeploymentVersionMetadataResponse other) : this() { - metadata_ = other.metadata_ != null ? other.metadata_.Clone() : null; + public DeleteWorkerDeploymentResponse(DeleteWorkerDeploymentResponse other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateWorkerDeploymentVersionMetadataResponse Clone() { - return new UpdateWorkerDeploymentVersionMetadataResponse(this); - } - - /// Field number for the "metadata" field. - public const int MetadataFieldNumber = 1; - private global::Temporalio.Api.Deployment.V1.VersionMetadata metadata_; - /// - /// Full metadata after performing the update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Temporalio.Api.Deployment.V1.VersionMetadata Metadata { - get { return metadata_; } - set { - metadata_ = value; - } + public DeleteWorkerDeploymentResponse Clone() { + return new DeleteWorkerDeploymentResponse(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as UpdateWorkerDeploymentVersionMetadataResponse); + return Equals(other as DeleteWorkerDeploymentResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UpdateWorkerDeploymentVersionMetadataResponse other) { + public bool Equals(DeleteWorkerDeploymentResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(Metadata, other.Metadata)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -59621,7 +60428,6 @@ public bool Equals(UpdateWorkerDeploymentVersionMetadataResponse other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (metadata_ != null) hash ^= Metadata.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -59640,10 +60446,6 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (metadata_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Metadata); - } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -59654,10 +60456,6 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (metadata_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Metadata); - } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -59668,9 +60466,6 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (metadata_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Metadata); - } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -59679,16 +60474,10 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UpdateWorkerDeploymentVersionMetadataResponse other) { + public void MergeFrom(DeleteWorkerDeploymentResponse other) { if (other == null) { return; } - if (other.metadata_ != null) { - if (metadata_ == null) { - Metadata = new global::Temporalio.Api.Deployment.V1.VersionMetadata(); - } - Metadata.MergeFrom(other.Metadata); - } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -59704,13 +60493,6 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { - if (metadata_ == null) { - Metadata = new global::Temporalio.Api.Deployment.V1.VersionMetadata(); - } - input.ReadMessage(Metadata); - break; - } } } #endif @@ -59726,13 +60508,6 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - if (metadata_ == null) { - Metadata = new global::Temporalio.Api.Deployment.V1.VersionMetadata(); - } - input.ReadMessage(Metadata); - break; - } } } } @@ -59741,23 +60516,23 @@ public void MergeFrom(pb::CodedInputStream input) { } /// - /// Update the ManagerIdentity of a Worker Deployment. + /// Used to update the compute config of a Worker Deployment Version. /// - public sealed partial class SetWorkerDeploymentManagerRequest : pb::IMessage + public sealed partial class UpdateWorkerDeploymentVersionComputeConfigRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetWorkerDeploymentManagerRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateWorkerDeploymentVersionComputeConfigRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[162]; } + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[164]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -59768,7 +60543,7 @@ public sealed partial class SetWorkerDeploymentManagerRequest : pb::IMessageField number for the "namespace" field. @@ -59811,100 +60579,55 @@ public string Namespace { } } - /// Field number for the "deployment_name" field. - public const int DeploymentNameFieldNumber = 2; - private string deploymentName_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DeploymentName { - get { return deploymentName_; } - set { - deploymentName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "manager_identity" field. - public const int ManagerIdentityFieldNumber = 3; + /// Field number for the "deployment_version" field. + public const int DeploymentVersionFieldNumber = 2; + private global::Temporalio.Api.Deployment.V1.WorkerDeploymentVersion deploymentVersion_; /// - /// Arbitrary value for `manager_identity`. - /// Empty will unset the field. + /// Required. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ManagerIdentity { - get { return HasManagerIdentity ? (string) newManagerIdentity_ : ""; } + public global::Temporalio.Api.Deployment.V1.WorkerDeploymentVersion DeploymentVersion { + get { return deploymentVersion_; } set { - newManagerIdentity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - newManagerIdentityCase_ = NewManagerIdentityOneofCase.ManagerIdentity; - } - } - /// Gets whether the "manager_identity" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasManagerIdentity { - get { return newManagerIdentityCase_ == NewManagerIdentityOneofCase.ManagerIdentity; } - } - /// Clears the value of the oneof if it's currently set to "manager_identity" - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearManagerIdentity() { - if (HasManagerIdentity) { - ClearNewManagerIdentity(); + deploymentVersion_ = value; } } - /// Field number for the "self" field. - public const int SelfFieldNumber = 4; + /// Field number for the "compute_config_scaling_groups" field. + public const int ComputeConfigScalingGroupsFieldNumber = 6; + private static readonly pbc::MapField.Codec _map_computeConfigScalingGroups_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Temporalio.Api.Compute.V1.ComputeConfigScalingGroupUpdate.Parser), 50); + private readonly pbc::MapField computeConfigScalingGroups_ = new pbc::MapField(); /// - /// True will set `manager_identity` to `identity`. + /// Optional. Contains the compute config scaling groups to add or update for the Worker + /// Deployment. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Self { - get { return HasSelf ? (bool) newManagerIdentity_ : false; } - set { - newManagerIdentity_ = value; - newManagerIdentityCase_ = NewManagerIdentityOneofCase.Self; - } - } - /// Gets whether the "self" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasSelf { - get { return newManagerIdentityCase_ == NewManagerIdentityOneofCase.Self; } - } - /// Clears the value of the oneof if it's currently set to "self" - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearSelf() { - if (HasSelf) { - ClearNewManagerIdentity(); - } + public pbc::MapField ComputeConfigScalingGroups { + get { return computeConfigScalingGroups_; } } - /// Field number for the "conflict_token" field. - public const int ConflictTokenFieldNumber = 5; - private pb::ByteString conflictToken_ = pb::ByteString.Empty; + /// Field number for the "remove_compute_config_scaling_groups" field. + public const int RemoveComputeConfigScalingGroupsFieldNumber = 7; + private static readonly pb::FieldCodec _repeated_removeComputeConfigScalingGroups_codec + = pb::FieldCodec.ForString(58); + private readonly pbc::RepeatedField removeComputeConfigScalingGroups_ = new pbc::RepeatedField(); /// - /// 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. + /// Optional. Contains the compute config scaling groups to remove from the Worker Deployment. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString ConflictToken { - get { return conflictToken_; } - set { - conflictToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } + public pbc::RepeatedField RemoveComputeConfigScalingGroups { + get { return removeComputeConfigScalingGroups_; } } /// Field number for the "identity" field. - public const int IdentityFieldNumber = 6; + public const int IdentityFieldNumber = 3; private string identity_ = ""; /// - /// Required. The identity of the client who initiated this request. + /// Optional. The identity of the client who initiated this request. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -59915,36 +60638,32 @@ public string Identity { } } - private object newManagerIdentity_; - /// Enum of possible cases for the "new_manager_identity" oneof. - public enum NewManagerIdentityOneofCase { - None = 0, - ManagerIdentity = 3, - Self = 4, - } - private NewManagerIdentityOneofCase newManagerIdentityCase_ = NewManagerIdentityOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public NewManagerIdentityOneofCase NewManagerIdentityCase { - get { return newManagerIdentityCase_; } - } - + /// Field number for the "request_id" field. + public const int RequestIdFieldNumber = 4; + private string requestId_ = ""; + /// + /// A unique identifier for this create request for idempotence. Typically UUIDv4. + /// If a second request with the same ID is recieved, it is considered a successful no-op. + /// Retrying with a different request ID for the same deployment name + build ID is an error. + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearNewManagerIdentity() { - newManagerIdentityCase_ = NewManagerIdentityOneofCase.None; - newManagerIdentity_ = null; + public string RequestId { + get { return requestId_; } + set { + requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as SetWorkerDeploymentManagerRequest); + return Equals(other as UpdateWorkerDeploymentVersionComputeConfigRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SetWorkerDeploymentManagerRequest other) { + public bool Equals(UpdateWorkerDeploymentVersionComputeConfigRequest other) { if (ReferenceEquals(other, null)) { return false; } @@ -59952,12 +60671,11 @@ public bool Equals(SetWorkerDeploymentManagerRequest other) { return true; } if (Namespace != other.Namespace) return false; - if (DeploymentName != other.DeploymentName) return false; - if (ManagerIdentity != other.ManagerIdentity) return false; - if (Self != other.Self) return false; - if (ConflictToken != other.ConflictToken) return false; + if (!object.Equals(DeploymentVersion, other.DeploymentVersion)) return false; + if (!ComputeConfigScalingGroups.Equals(other.ComputeConfigScalingGroups)) return false; + if(!removeComputeConfigScalingGroups_.Equals(other.removeComputeConfigScalingGroups_)) return false; if (Identity != other.Identity) return false; - if (NewManagerIdentityCase != other.NewManagerIdentityCase) return false; + if (RequestId != other.RequestId) return false; return Equals(_unknownFields, other._unknownFields); } @@ -59966,12 +60684,11 @@ public bool Equals(SetWorkerDeploymentManagerRequest other) { public override int GetHashCode() { int hash = 1; if (Namespace.Length != 0) hash ^= Namespace.GetHashCode(); - if (DeploymentName.Length != 0) hash ^= DeploymentName.GetHashCode(); - if (HasManagerIdentity) hash ^= ManagerIdentity.GetHashCode(); - if (HasSelf) hash ^= Self.GetHashCode(); - if (ConflictToken.Length != 0) hash ^= ConflictToken.GetHashCode(); + if (deploymentVersion_ != null) hash ^= DeploymentVersion.GetHashCode(); + hash ^= ComputeConfigScalingGroups.GetHashCode(); + hash ^= removeComputeConfigScalingGroups_.GetHashCode(); if (Identity.Length != 0) hash ^= Identity.GetHashCode(); - hash ^= (int) newManagerIdentityCase_; + if (RequestId.Length != 0) hash ^= RequestId.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -59994,26 +60711,20 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(Namespace); } - if (DeploymentName.Length != 0) { + if (deploymentVersion_ != null) { output.WriteRawTag(18); - output.WriteString(DeploymentName); - } - if (HasManagerIdentity) { - output.WriteRawTag(26); - output.WriteString(ManagerIdentity); - } - if (HasSelf) { - output.WriteRawTag(32); - output.WriteBool(Self); - } - if (ConflictToken.Length != 0) { - output.WriteRawTag(42); - output.WriteBytes(ConflictToken); + output.WriteMessage(DeploymentVersion); } if (Identity.Length != 0) { - output.WriteRawTag(50); + output.WriteRawTag(26); output.WriteString(Identity); } + if (RequestId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(RequestId); + } + computeConfigScalingGroups_.WriteTo(output, _map_computeConfigScalingGroups_codec); + removeComputeConfigScalingGroups_.WriteTo(output, _repeated_removeComputeConfigScalingGroups_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -60028,26 +60739,20 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(Namespace); } - if (DeploymentName.Length != 0) { + if (deploymentVersion_ != null) { output.WriteRawTag(18); - output.WriteString(DeploymentName); - } - if (HasManagerIdentity) { - output.WriteRawTag(26); - output.WriteString(ManagerIdentity); - } - if (HasSelf) { - output.WriteRawTag(32); - output.WriteBool(Self); - } - if (ConflictToken.Length != 0) { - output.WriteRawTag(42); - output.WriteBytes(ConflictToken); + output.WriteMessage(DeploymentVersion); } if (Identity.Length != 0) { - output.WriteRawTag(50); + output.WriteRawTag(26); output.WriteString(Identity); } + if (RequestId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(RequestId); + } + computeConfigScalingGroups_.WriteTo(ref output, _map_computeConfigScalingGroups_codec); + removeComputeConfigScalingGroups_.WriteTo(ref output, _repeated_removeComputeConfigScalingGroups_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -60061,21 +60766,17 @@ public int CalculateSize() { if (Namespace.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Namespace); } - if (DeploymentName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DeploymentName); - } - if (HasManagerIdentity) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ManagerIdentity); - } - if (HasSelf) { - size += 1 + 1; - } - if (ConflictToken.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(ConflictToken); + if (deploymentVersion_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeploymentVersion); } + size += computeConfigScalingGroups_.CalculateSize(_map_computeConfigScalingGroups_codec); + size += removeComputeConfigScalingGroups_.CalculateSize(_repeated_removeComputeConfigScalingGroups_codec); if (Identity.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Identity); } + if (RequestId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -60084,31 +60785,27 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SetWorkerDeploymentManagerRequest other) { + public void MergeFrom(UpdateWorkerDeploymentVersionComputeConfigRequest other) { if (other == null) { return; } if (other.Namespace.Length != 0) { Namespace = other.Namespace; } - if (other.DeploymentName.Length != 0) { - DeploymentName = other.DeploymentName; - } - if (other.ConflictToken.Length != 0) { - ConflictToken = other.ConflictToken; + if (other.deploymentVersion_ != null) { + if (deploymentVersion_ == null) { + DeploymentVersion = new global::Temporalio.Api.Deployment.V1.WorkerDeploymentVersion(); + } + DeploymentVersion.MergeFrom(other.DeploymentVersion); } + computeConfigScalingGroups_.MergeFrom(other.computeConfigScalingGroups_); + removeComputeConfigScalingGroups_.Add(other.removeComputeConfigScalingGroups_); if (other.Identity.Length != 0) { Identity = other.Identity; } - switch (other.NewManagerIdentityCase) { - case NewManagerIdentityOneofCase.ManagerIdentity: - ManagerIdentity = other.ManagerIdentity; - break; - case NewManagerIdentityOneofCase.Self: - Self = other.Self; - break; + if (other.RequestId.Length != 0) { + RequestId = other.RequestId; } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -60129,23 +60826,26 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - DeploymentName = input.ReadString(); + if (deploymentVersion_ == null) { + DeploymentVersion = new global::Temporalio.Api.Deployment.V1.WorkerDeploymentVersion(); + } + input.ReadMessage(DeploymentVersion); break; } case 26: { - ManagerIdentity = input.ReadString(); + Identity = input.ReadString(); break; } - case 32: { - Self = input.ReadBool(); + case 34: { + RequestId = input.ReadString(); break; } - case 42: { - ConflictToken = input.ReadBytes(); + case 50: { + computeConfigScalingGroups_.AddEntriesFrom(input, _map_computeConfigScalingGroups_codec); break; } - case 50: { - Identity = input.ReadString(); + case 58: { + removeComputeConfigScalingGroups_.AddEntriesFrom(input, _repeated_removeComputeConfigScalingGroups_codec); break; } } @@ -60168,23 +60868,26 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - DeploymentName = input.ReadString(); + if (deploymentVersion_ == null) { + DeploymentVersion = new global::Temporalio.Api.Deployment.V1.WorkerDeploymentVersion(); + } + input.ReadMessage(DeploymentVersion); break; } case 26: { - ManagerIdentity = input.ReadString(); + Identity = input.ReadString(); break; } - case 32: { - Self = input.ReadBool(); + case 34: { + RequestId = input.ReadString(); break; } - case 42: { - ConflictToken = input.ReadBytes(); + case 50: { + computeConfigScalingGroups_.AddEntriesFrom(ref input, _map_computeConfigScalingGroups_codec); break; } - case 50: { - Identity = input.ReadString(); + case 58: { + removeComputeConfigScalingGroups_.AddEntriesFrom(ref input, _repeated_removeComputeConfigScalingGroups_codec); break; } } @@ -60194,21 +60897,21 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class SetWorkerDeploymentManagerResponse : pb::IMessage + public sealed partial class UpdateWorkerDeploymentVersionComputeConfigResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetWorkerDeploymentManagerResponse()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateWorkerDeploymentVersionComputeConfigResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[163]; } + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[165]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -60219,7 +60922,7 @@ public sealed partial class SetWorkerDeploymentManagerResponse : pb::IMessageField number for the "conflict_token" field. - public const int ConflictTokenFieldNumber = 1; - private pb::ByteString conflictToken_ = pb::ByteString.Empty; - /// - /// 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. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString ConflictToken { - get { return conflictToken_; } - set { - conflictToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "previous_manager_identity" field. - public const int PreviousManagerIdentityFieldNumber = 2; - private string previousManagerIdentity_ = ""; - /// - /// 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. - /// - [global::System.ObsoleteAttribute] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PreviousManagerIdentity { - get { return previousManagerIdentity_; } - set { - previousManagerIdentity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } + public UpdateWorkerDeploymentVersionComputeConfigResponse Clone() { + return new UpdateWorkerDeploymentVersionComputeConfigResponse(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as SetWorkerDeploymentManagerResponse); + return Equals(other as UpdateWorkerDeploymentVersionComputeConfigResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SetWorkerDeploymentManagerResponse other) { + public bool Equals(UpdateWorkerDeploymentVersionComputeConfigResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (ConflictToken != other.ConflictToken) return false; - if (PreviousManagerIdentity != other.PreviousManagerIdentity) return false; return Equals(_unknownFields, other._unknownFields); } @@ -60300,8 +60962,6 @@ public bool Equals(SetWorkerDeploymentManagerResponse other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (ConflictToken.Length != 0) hash ^= ConflictToken.GetHashCode(); - if (PreviousManagerIdentity.Length != 0) hash ^= PreviousManagerIdentity.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -60320,14 +60980,6 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (ConflictToken.Length != 0) { - output.WriteRawTag(10); - output.WriteBytes(ConflictToken); - } - if (PreviousManagerIdentity.Length != 0) { - output.WriteRawTag(18); - output.WriteString(PreviousManagerIdentity); - } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -60338,14 +60990,6 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ConflictToken.Length != 0) { - output.WriteRawTag(10); - output.WriteBytes(ConflictToken); - } - if (PreviousManagerIdentity.Length != 0) { - output.WriteRawTag(18); - output.WriteString(PreviousManagerIdentity); - } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -60356,12 +61000,6 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (ConflictToken.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(ConflictToken); - } - if (PreviousManagerIdentity.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(PreviousManagerIdentity); - } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -60370,16 +61008,10 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SetWorkerDeploymentManagerResponse other) { + public void MergeFrom(UpdateWorkerDeploymentVersionComputeConfigResponse other) { if (other == null) { return; } - if (other.ConflictToken.Length != 0) { - ConflictToken = other.ConflictToken; - } - if (other.PreviousManagerIdentity.Length != 0) { - PreviousManagerIdentity = other.PreviousManagerIdentity; - } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -60395,14 +61027,6 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { - ConflictToken = input.ReadBytes(); - break; - } - case 18: { - PreviousManagerIdentity = input.ReadString(); - break; - } } } #endif @@ -60418,14 +61042,6 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - ConflictToken = input.ReadBytes(); - break; - } - case 18: { - PreviousManagerIdentity = input.ReadString(); - break; - } } } } @@ -60434,24 +61050,23 @@ public void MergeFrom(pb::CodedInputStream input) { } /// - /// Returns the Current Deployment of a deployment series. - /// [cleanup-wv-pre-release] Pre-release deployment APIs, clean up later + /// Used to validate the compute config without attaching it to a Worker Deployment Version. /// - public sealed partial class GetCurrentDeploymentRequest : pb::IMessage + public sealed partial class ValidateWorkerDeploymentVersionComputeConfigRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetCurrentDeploymentRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ValidateWorkerDeploymentVersionComputeConfigRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[164]; } + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[166]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -60462,7 +61077,7 @@ public sealed partial class GetCurrentDeploymentRequest : pb::IMessageField number for the "namespace" field. @@ -60494,27 +61112,74 @@ public string Namespace { } } - /// Field number for the "series_name" field. - public const int SeriesNameFieldNumber = 2; - private string seriesName_ = ""; + /// Field number for the "deployment_version" field. + public const int DeploymentVersionFieldNumber = 2; + private global::Temporalio.Api.Deployment.V1.WorkerDeploymentVersion deploymentVersion_; + /// + /// Required. + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string SeriesName { - get { return seriesName_; } + public global::Temporalio.Api.Deployment.V1.WorkerDeploymentVersion DeploymentVersion { + get { return deploymentVersion_; } set { - seriesName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + deploymentVersion_ = value; + } + } + + /// Field number for the "compute_config_scaling_groups" field. + public const int ComputeConfigScalingGroupsFieldNumber = 6; + private static readonly pbc::MapField.Codec _map_computeConfigScalingGroups_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Temporalio.Api.Compute.V1.ComputeConfigScalingGroupUpdate.Parser), 50); + private readonly pbc::MapField computeConfigScalingGroups_ = new pbc::MapField(); + /// + /// Optional. Contains the compute config scaling groups to add or update for the Worker + /// Deployment. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField ComputeConfigScalingGroups { + get { return computeConfigScalingGroups_; } + } + + /// Field number for the "remove_compute_config_scaling_groups" field. + public const int RemoveComputeConfigScalingGroupsFieldNumber = 7; + private static readonly pb::FieldCodec _repeated_removeComputeConfigScalingGroups_codec + = pb::FieldCodec.ForString(58); + private readonly pbc::RepeatedField removeComputeConfigScalingGroups_ = new pbc::RepeatedField(); + /// + /// Optional. Contains the compute config scaling groups to remove from the Worker Deployment. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField RemoveComputeConfigScalingGroups { + get { return removeComputeConfigScalingGroups_; } + } + + /// Field number for the "identity" field. + public const int IdentityFieldNumber = 3; + private string identity_ = ""; + /// + /// Optional. The identity of the client who initiated this request. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Identity { + get { return identity_; } + set { + identity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as GetCurrentDeploymentRequest); + return Equals(other as ValidateWorkerDeploymentVersionComputeConfigRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetCurrentDeploymentRequest other) { + public bool Equals(ValidateWorkerDeploymentVersionComputeConfigRequest other) { if (ReferenceEquals(other, null)) { return false; } @@ -60522,7 +61187,10 @@ public bool Equals(GetCurrentDeploymentRequest other) { return true; } if (Namespace != other.Namespace) return false; - if (SeriesName != other.SeriesName) return false; + if (!object.Equals(DeploymentVersion, other.DeploymentVersion)) return false; + if (!ComputeConfigScalingGroups.Equals(other.ComputeConfigScalingGroups)) return false; + if(!removeComputeConfigScalingGroups_.Equals(other.removeComputeConfigScalingGroups_)) return false; + if (Identity != other.Identity) return false; return Equals(_unknownFields, other._unknownFields); } @@ -60531,7 +61199,10 @@ public bool Equals(GetCurrentDeploymentRequest other) { public override int GetHashCode() { int hash = 1; if (Namespace.Length != 0) hash ^= Namespace.GetHashCode(); - if (SeriesName.Length != 0) hash ^= SeriesName.GetHashCode(); + if (deploymentVersion_ != null) hash ^= DeploymentVersion.GetHashCode(); + hash ^= ComputeConfigScalingGroups.GetHashCode(); + hash ^= removeComputeConfigScalingGroups_.GetHashCode(); + if (Identity.Length != 0) hash ^= Identity.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -60554,10 +61225,16 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(Namespace); } - if (SeriesName.Length != 0) { + if (deploymentVersion_ != null) { output.WriteRawTag(18); - output.WriteString(SeriesName); + output.WriteMessage(DeploymentVersion); + } + if (Identity.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Identity); } + computeConfigScalingGroups_.WriteTo(output, _map_computeConfigScalingGroups_codec); + removeComputeConfigScalingGroups_.WriteTo(output, _repeated_removeComputeConfigScalingGroups_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -60572,10 +61249,16 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(Namespace); } - if (SeriesName.Length != 0) { + if (deploymentVersion_ != null) { output.WriteRawTag(18); - output.WriteString(SeriesName); + output.WriteMessage(DeploymentVersion); + } + if (Identity.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Identity); } + computeConfigScalingGroups_.WriteTo(ref output, _map_computeConfigScalingGroups_codec); + removeComputeConfigScalingGroups_.WriteTo(ref output, _repeated_removeComputeConfigScalingGroups_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -60589,8 +61272,13 @@ public int CalculateSize() { if (Namespace.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Namespace); } - if (SeriesName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(SeriesName); + if (deploymentVersion_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeploymentVersion); + } + size += computeConfigScalingGroups_.CalculateSize(_map_computeConfigScalingGroups_codec); + size += removeComputeConfigScalingGroups_.CalculateSize(_repeated_removeComputeConfigScalingGroups_codec); + if (Identity.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Identity); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -60600,15 +61288,23 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetCurrentDeploymentRequest other) { + public void MergeFrom(ValidateWorkerDeploymentVersionComputeConfigRequest other) { if (other == null) { return; } if (other.Namespace.Length != 0) { Namespace = other.Namespace; } - if (other.SeriesName.Length != 0) { - SeriesName = other.SeriesName; + if (other.deploymentVersion_ != null) { + if (deploymentVersion_ == null) { + DeploymentVersion = new global::Temporalio.Api.Deployment.V1.WorkerDeploymentVersion(); + } + DeploymentVersion.MergeFrom(other.DeploymentVersion); + } + computeConfigScalingGroups_.MergeFrom(other.computeConfigScalingGroups_); + removeComputeConfigScalingGroups_.Add(other.removeComputeConfigScalingGroups_); + if (other.Identity.Length != 0) { + Identity = other.Identity; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -60630,7 +61326,22 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - SeriesName = input.ReadString(); + if (deploymentVersion_ == null) { + DeploymentVersion = new global::Temporalio.Api.Deployment.V1.WorkerDeploymentVersion(); + } + input.ReadMessage(DeploymentVersion); + break; + } + case 26: { + Identity = input.ReadString(); + break; + } + case 50: { + computeConfigScalingGroups_.AddEntriesFrom(input, _map_computeConfigScalingGroups_codec); + break; + } + case 58: { + removeComputeConfigScalingGroups_.AddEntriesFrom(input, _repeated_removeComputeConfigScalingGroups_codec); break; } } @@ -60653,7 +61364,22 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - SeriesName = input.ReadString(); + if (deploymentVersion_ == null) { + DeploymentVersion = new global::Temporalio.Api.Deployment.V1.WorkerDeploymentVersion(); + } + input.ReadMessage(DeploymentVersion); + break; + } + case 26: { + Identity = input.ReadString(); + break; + } + case 50: { + computeConfigScalingGroups_.AddEntriesFrom(ref input, _map_computeConfigScalingGroups_codec); + break; + } + case 58: { + removeComputeConfigScalingGroups_.AddEntriesFrom(ref input, _repeated_removeComputeConfigScalingGroups_codec); break; } } @@ -60663,24 +61389,21 @@ public void MergeFrom(pb::CodedInputStream input) { } - /// - /// [cleanup-wv-pre-release] Pre-release deployment APIs, clean up later - /// - public sealed partial class GetCurrentDeploymentResponse : pb::IMessage + public sealed partial class ValidateWorkerDeploymentVersionComputeConfigResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetCurrentDeploymentResponse()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ValidateWorkerDeploymentVersionComputeConfigResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[165]; } + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[167]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -60691,7 +61414,7 @@ public sealed partial class GetCurrentDeploymentResponse : pb::IMessageField number for the "current_deployment_info" field. - public const int CurrentDeploymentInfoFieldNumber = 1; - private global::Temporalio.Api.Deployment.V1.DeploymentInfo currentDeploymentInfo_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Temporalio.Api.Deployment.V1.DeploymentInfo CurrentDeploymentInfo { - get { return currentDeploymentInfo_; } - set { - currentDeploymentInfo_ = value; - } + public ValidateWorkerDeploymentVersionComputeConfigResponse Clone() { + return new ValidateWorkerDeploymentVersionComputeConfigResponse(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as GetCurrentDeploymentResponse); + return Equals(other as ValidateWorkerDeploymentVersionComputeConfigResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetCurrentDeploymentResponse other) { + public bool Equals(ValidateWorkerDeploymentVersionComputeConfigResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(CurrentDeploymentInfo, other.CurrentDeploymentInfo)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -60745,7 +61454,6 @@ public bool Equals(GetCurrentDeploymentResponse other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (currentDeploymentInfo_ != null) hash ^= CurrentDeploymentInfo.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -60764,10 +61472,6 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (currentDeploymentInfo_ != null) { - output.WriteRawTag(10); - output.WriteMessage(CurrentDeploymentInfo); - } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -60778,10 +61482,6 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (currentDeploymentInfo_ != null) { - output.WriteRawTag(10); - output.WriteMessage(CurrentDeploymentInfo); - } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -60792,9 +61492,6 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (currentDeploymentInfo_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CurrentDeploymentInfo); - } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -60803,16 +61500,10 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetCurrentDeploymentResponse other) { + public void MergeFrom(ValidateWorkerDeploymentVersionComputeConfigResponse other) { if (other == null) { return; } - if (other.currentDeploymentInfo_ != null) { - if (currentDeploymentInfo_ == null) { - CurrentDeploymentInfo = new global::Temporalio.Api.Deployment.V1.DeploymentInfo(); - } - CurrentDeploymentInfo.MergeFrom(other.CurrentDeploymentInfo); - } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -60828,13 +61519,6 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { - if (currentDeploymentInfo_ == null) { - CurrentDeploymentInfo = new global::Temporalio.Api.Deployment.V1.DeploymentInfo(); - } - input.ReadMessage(CurrentDeploymentInfo); - break; - } } } #endif @@ -60850,13 +61534,6 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - if (currentDeploymentInfo_ == null) { - CurrentDeploymentInfo = new global::Temporalio.Api.Deployment.V1.DeploymentInfo(); - } - input.ReadMessage(CurrentDeploymentInfo); - break; - } } } } @@ -60865,23 +61542,23 @@ public void MergeFrom(pb::CodedInputStream input) { } /// - /// [cleanup-wv-pre-release] Pre-release deployment APIs, clean up later + /// Used to update the user-defined metadata of a Worker Deployment Version. /// - public sealed partial class GetDeploymentReachabilityRequest : pb::IMessage + public sealed partial class UpdateWorkerDeploymentVersionMetadataRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeploymentReachabilityRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateWorkerDeploymentVersionMetadataRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[166]; } + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[168]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -60892,7 +61569,7 @@ public sealed partial class GetDeploymentReachabilityRequest : pb::IMessageField number for the "namespace" field. @@ -60924,27 +61605,86 @@ public string Namespace { } } - /// Field number for the "deployment" field. - public const int DeploymentFieldNumber = 2; - private global::Temporalio.Api.Deployment.V1.Deployment deployment_; + /// Field number for the "version" field. + public const int VersionFieldNumber = 2; + private string version_ = ""; + /// + /// Deprecated. Use `deployment_version`. + /// + [global::System.ObsoleteAttribute] [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Temporalio.Api.Deployment.V1.Deployment Deployment { - get { return deployment_; } + public string Version { + get { return version_; } set { - deployment_ = value; + version_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "deployment_version" field. + public const int DeploymentVersionFieldNumber = 5; + private global::Temporalio.Api.Deployment.V1.WorkerDeploymentVersion deploymentVersion_; + /// + /// Required. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Deployment.V1.WorkerDeploymentVersion DeploymentVersion { + get { return deploymentVersion_; } + set { + deploymentVersion_ = value; + } + } + + /// Field number for the "upsert_entries" field. + public const int UpsertEntriesFieldNumber = 3; + private static readonly pbc::MapField.Codec _map_upsertEntries_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Temporalio.Api.Common.V1.Payload.Parser), 26); + private readonly pbc::MapField upsertEntries_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField UpsertEntries { + get { return upsertEntries_; } + } + + /// Field number for the "remove_entries" field. + public const int RemoveEntriesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_removeEntries_codec + = pb::FieldCodec.ForString(34); + private readonly pbc::RepeatedField removeEntries_ = new pbc::RepeatedField(); + /// + /// List of keys to remove from the metadata. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField RemoveEntries { + get { return removeEntries_; } + } + + /// Field number for the "identity" field. + public const int IdentityFieldNumber = 6; + private string identity_ = ""; + /// + /// Optional. The identity of the client who initiated this request. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Identity { + get { return identity_; } + set { + identity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as GetDeploymentReachabilityRequest); + return Equals(other as UpdateWorkerDeploymentVersionMetadataRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetDeploymentReachabilityRequest other) { + public bool Equals(UpdateWorkerDeploymentVersionMetadataRequest other) { if (ReferenceEquals(other, null)) { return false; } @@ -60952,7 +61692,11 @@ public bool Equals(GetDeploymentReachabilityRequest other) { return true; } if (Namespace != other.Namespace) return false; - if (!object.Equals(Deployment, other.Deployment)) return false; + if (Version != other.Version) return false; + if (!object.Equals(DeploymentVersion, other.DeploymentVersion)) return false; + if (!UpsertEntries.Equals(other.UpsertEntries)) return false; + if(!removeEntries_.Equals(other.removeEntries_)) return false; + if (Identity != other.Identity) return false; return Equals(_unknownFields, other._unknownFields); } @@ -60961,7 +61705,11 @@ public bool Equals(GetDeploymentReachabilityRequest other) { public override int GetHashCode() { int hash = 1; if (Namespace.Length != 0) hash ^= Namespace.GetHashCode(); - if (deployment_ != null) hash ^= Deployment.GetHashCode(); + if (Version.Length != 0) hash ^= Version.GetHashCode(); + if (deploymentVersion_ != null) hash ^= DeploymentVersion.GetHashCode(); + hash ^= UpsertEntries.GetHashCode(); + hash ^= removeEntries_.GetHashCode(); + if (Identity.Length != 0) hash ^= Identity.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -60984,9 +61732,19 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(Namespace); } - if (deployment_ != null) { + if (Version.Length != 0) { output.WriteRawTag(18); - output.WriteMessage(Deployment); + output.WriteString(Version); + } + upsertEntries_.WriteTo(output, _map_upsertEntries_codec); + removeEntries_.WriteTo(output, _repeated_removeEntries_codec); + if (deploymentVersion_ != null) { + output.WriteRawTag(42); + output.WriteMessage(DeploymentVersion); + } + if (Identity.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Identity); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -61002,9 +61760,19 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(Namespace); } - if (deployment_ != null) { + if (Version.Length != 0) { output.WriteRawTag(18); - output.WriteMessage(Deployment); + output.WriteString(Version); + } + upsertEntries_.WriteTo(ref output, _map_upsertEntries_codec); + removeEntries_.WriteTo(ref output, _repeated_removeEntries_codec); + if (deploymentVersion_ != null) { + output.WriteRawTag(42); + output.WriteMessage(DeploymentVersion); + } + if (Identity.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Identity); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -61019,8 +61787,16 @@ public int CalculateSize() { if (Namespace.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Namespace); } - if (deployment_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Deployment); + if (Version.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Version); + } + if (deploymentVersion_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeploymentVersion); + } + size += upsertEntries_.CalculateSize(_map_upsertEntries_codec); + size += removeEntries_.CalculateSize(_repeated_removeEntries_codec); + if (Identity.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Identity); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -61030,18 +61806,26 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetDeploymentReachabilityRequest other) { + public void MergeFrom(UpdateWorkerDeploymentVersionMetadataRequest other) { if (other == null) { return; } if (other.Namespace.Length != 0) { Namespace = other.Namespace; } - if (other.deployment_ != null) { - if (deployment_ == null) { - Deployment = new global::Temporalio.Api.Deployment.V1.Deployment(); + if (other.Version.Length != 0) { + Version = other.Version; + } + if (other.deploymentVersion_ != null) { + if (deploymentVersion_ == null) { + DeploymentVersion = new global::Temporalio.Api.Deployment.V1.WorkerDeploymentVersion(); } - Deployment.MergeFrom(other.Deployment); + DeploymentVersion.MergeFrom(other.DeploymentVersion); + } + upsertEntries_.MergeFrom(other.upsertEntries_); + removeEntries_.Add(other.removeEntries_); + if (other.Identity.Length != 0) { + Identity = other.Identity; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -61063,14 +61847,30 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - if (deployment_ == null) { - Deployment = new global::Temporalio.Api.Deployment.V1.Deployment(); - } - input.ReadMessage(Deployment); + Version = input.ReadString(); break; } - } - } + case 26: { + upsertEntries_.AddEntriesFrom(input, _map_upsertEntries_codec); + break; + } + case 34: { + removeEntries_.AddEntriesFrom(input, _repeated_removeEntries_codec); + break; + } + case 42: { + if (deploymentVersion_ == null) { + DeploymentVersion = new global::Temporalio.Api.Deployment.V1.WorkerDeploymentVersion(); + } + input.ReadMessage(DeploymentVersion); + break; + } + case 50: { + Identity = input.ReadString(); + break; + } + } + } #endif } @@ -61089,10 +61889,26 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - if (deployment_ == null) { - Deployment = new global::Temporalio.Api.Deployment.V1.Deployment(); + Version = input.ReadString(); + break; + } + case 26: { + upsertEntries_.AddEntriesFrom(ref input, _map_upsertEntries_codec); + break; + } + case 34: { + removeEntries_.AddEntriesFrom(ref input, _repeated_removeEntries_codec); + break; + } + case 42: { + if (deploymentVersion_ == null) { + DeploymentVersion = new global::Temporalio.Api.Deployment.V1.WorkerDeploymentVersion(); } - input.ReadMessage(Deployment); + input.ReadMessage(DeploymentVersion); + break; + } + case 50: { + Identity = input.ReadString(); break; } } @@ -61102,24 +61918,21 @@ public void MergeFrom(pb::CodedInputStream input) { } - /// - /// [cleanup-wv-pre-release] Pre-release deployment APIs, clean up later - /// - public sealed partial class GetDeploymentReachabilityResponse : pb::IMessage + public sealed partial class UpdateWorkerDeploymentVersionMetadataResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeploymentReachabilityResponse()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateWorkerDeploymentVersionMetadataResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[167]; } + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[169]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -61130,7 +61943,7 @@ public sealed partial class GetDeploymentReachabilityResponse : pb::IMessageField number for the "deployment_info" field. - public const int DeploymentInfoFieldNumber = 1; - private global::Temporalio.Api.Deployment.V1.DeploymentInfo deploymentInfo_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Temporalio.Api.Deployment.V1.DeploymentInfo DeploymentInfo { - get { return deploymentInfo_; } - set { - deploymentInfo_ = value; - } - } - - /// Field number for the "reachability" field. - public const int ReachabilityFieldNumber = 2; - private global::Temporalio.Api.Enums.V1.DeploymentReachability reachability_ = global::Temporalio.Api.Enums.V1.DeploymentReachability.Unspecified; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Temporalio.Api.Enums.V1.DeploymentReachability Reachability { - get { return reachability_; } - set { - reachability_ = value; - } + public UpdateWorkerDeploymentVersionMetadataResponse Clone() { + return new UpdateWorkerDeploymentVersionMetadataResponse(this); } - /// Field number for the "last_update_time" field. - public const int LastUpdateTimeFieldNumber = 3; - private global::Google.Protobuf.WellKnownTypes.Timestamp lastUpdateTime_; + /// Field number for the "metadata" field. + public const int MetadataFieldNumber = 1; + private global::Temporalio.Api.Deployment.V1.VersionMetadata metadata_; /// - /// Reachability level might come from server cache. This timestamp specifies when the value - /// was actually calculated. + /// Full metadata after performing the update. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp LastUpdateTime { - get { return lastUpdateTime_; } + public global::Temporalio.Api.Deployment.V1.VersionMetadata Metadata { + get { return metadata_; } set { - lastUpdateTime_ = value; + metadata_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as GetDeploymentReachabilityResponse); + return Equals(other as UpdateWorkerDeploymentVersionMetadataResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetDeploymentReachabilityResponse other) { + public bool Equals(UpdateWorkerDeploymentVersionMetadataResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(DeploymentInfo, other.DeploymentInfo)) return false; - if (Reachability != other.Reachability) return false; - if (!object.Equals(LastUpdateTime, other.LastUpdateTime)) return false; + if (!object.Equals(Metadata, other.Metadata)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -61216,9 +62000,7 @@ public bool Equals(GetDeploymentReachabilityResponse other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (deploymentInfo_ != null) hash ^= DeploymentInfo.GetHashCode(); - if (Reachability != global::Temporalio.Api.Enums.V1.DeploymentReachability.Unspecified) hash ^= Reachability.GetHashCode(); - if (lastUpdateTime_ != null) hash ^= LastUpdateTime.GetHashCode(); + if (metadata_ != null) hash ^= Metadata.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -61237,17 +62019,9 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (deploymentInfo_ != null) { + if (metadata_ != null) { output.WriteRawTag(10); - output.WriteMessage(DeploymentInfo); - } - if (Reachability != global::Temporalio.Api.Enums.V1.DeploymentReachability.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) Reachability); - } - if (lastUpdateTime_ != null) { - output.WriteRawTag(26); - output.WriteMessage(LastUpdateTime); + output.WriteMessage(Metadata); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -61259,17 +62033,9 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (deploymentInfo_ != null) { + if (metadata_ != null) { output.WriteRawTag(10); - output.WriteMessage(DeploymentInfo); - } - if (Reachability != global::Temporalio.Api.Enums.V1.DeploymentReachability.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) Reachability); - } - if (lastUpdateTime_ != null) { - output.WriteRawTag(26); - output.WriteMessage(LastUpdateTime); + output.WriteMessage(Metadata); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -61281,14 +62047,8 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (deploymentInfo_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeploymentInfo); - } - if (Reachability != global::Temporalio.Api.Enums.V1.DeploymentReachability.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Reachability); - } - if (lastUpdateTime_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(LastUpdateTime); + if (metadata_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Metadata); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -61298,24 +62058,15 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetDeploymentReachabilityResponse other) { + public void MergeFrom(UpdateWorkerDeploymentVersionMetadataResponse other) { if (other == null) { return; } - if (other.deploymentInfo_ != null) { - if (deploymentInfo_ == null) { - DeploymentInfo = new global::Temporalio.Api.Deployment.V1.DeploymentInfo(); - } - DeploymentInfo.MergeFrom(other.DeploymentInfo); - } - if (other.Reachability != global::Temporalio.Api.Enums.V1.DeploymentReachability.Unspecified) { - Reachability = other.Reachability; - } - if (other.lastUpdateTime_ != null) { - if (lastUpdateTime_ == null) { - LastUpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + if (other.metadata_ != null) { + if (metadata_ == null) { + Metadata = new global::Temporalio.Api.Deployment.V1.VersionMetadata(); } - LastUpdateTime.MergeFrom(other.LastUpdateTime); + Metadata.MergeFrom(other.Metadata); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -61333,21 +62084,10 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (deploymentInfo_ == null) { - DeploymentInfo = new global::Temporalio.Api.Deployment.V1.DeploymentInfo(); - } - input.ReadMessage(DeploymentInfo); - break; - } - case 16: { - Reachability = (global::Temporalio.Api.Enums.V1.DeploymentReachability) input.ReadEnum(); - break; - } - case 26: { - if (lastUpdateTime_ == null) { - LastUpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + if (metadata_ == null) { + Metadata = new global::Temporalio.Api.Deployment.V1.VersionMetadata(); } - input.ReadMessage(LastUpdateTime); + input.ReadMessage(Metadata); break; } } @@ -61366,21 +62106,10 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - if (deploymentInfo_ == null) { - DeploymentInfo = new global::Temporalio.Api.Deployment.V1.DeploymentInfo(); - } - input.ReadMessage(DeploymentInfo); - break; - } - case 16: { - Reachability = (global::Temporalio.Api.Enums.V1.DeploymentReachability) input.ReadEnum(); - break; - } - case 26: { - if (lastUpdateTime_ == null) { - LastUpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + if (metadata_ == null) { + Metadata = new global::Temporalio.Api.Deployment.V1.VersionMetadata(); } - input.ReadMessage(LastUpdateTime); + input.ReadMessage(Metadata); break; } } @@ -61390,21 +62119,24 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class CreateWorkflowRuleRequest : pb::IMessage + /// + /// Update the ManagerIdentity of a Worker Deployment. + /// + public sealed partial class SetWorkerDeploymentManagerRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateWorkflowRuleRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetWorkerDeploymentManagerRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[168]; } + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[170]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -61415,7 +62147,7 @@ public sealed partial class CreateWorkflowRuleRequest : pb::IMessageField number for the "namespace" field. @@ -61451,58 +62190,100 @@ public string Namespace { } } - /// Field number for the "spec" field. - public const int SpecFieldNumber = 2; - private global::Temporalio.Api.Rules.V1.WorkflowRuleSpec spec_; + /// Field number for the "deployment_name" field. + public const int DeploymentNameFieldNumber = 2; + private string deploymentName_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DeploymentName { + get { return deploymentName_; } + set { + deploymentName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "manager_identity" field. + public const int ManagerIdentityFieldNumber = 3; /// - /// The rule specification . + /// Arbitrary value for `manager_identity`. + /// Empty will unset the field. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Temporalio.Api.Rules.V1.WorkflowRuleSpec Spec { - get { return spec_; } + public string ManagerIdentity { + get { return HasManagerIdentity ? (string) newManagerIdentity_ : ""; } set { - spec_ = value; + newManagerIdentity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + newManagerIdentityCase_ = NewManagerIdentityOneofCase.ManagerIdentity; + } + } + /// Gets whether the "manager_identity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasManagerIdentity { + get { return newManagerIdentityCase_ == NewManagerIdentityOneofCase.ManagerIdentity; } + } + /// Clears the value of the oneof if it's currently set to "manager_identity" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearManagerIdentity() { + if (HasManagerIdentity) { + ClearNewManagerIdentity(); } } - /// Field number for the "force_scan" field. - public const int ForceScanFieldNumber = 3; - private bool forceScan_; + /// Field number for the "self" field. + public const int SelfFieldNumber = 4; /// - /// 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. + /// True will set `manager_identity` to `identity`. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ForceScan { - get { return forceScan_; } + public bool Self { + get { return HasSelf ? (bool) newManagerIdentity_ : false; } set { - forceScan_ = value; + newManagerIdentity_ = value; + newManagerIdentityCase_ = NewManagerIdentityOneofCase.Self; + } + } + /// Gets whether the "self" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSelf { + get { return newManagerIdentityCase_ == NewManagerIdentityOneofCase.Self; } + } + /// Clears the value of the oneof if it's currently set to "self" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSelf() { + if (HasSelf) { + ClearNewManagerIdentity(); } } - /// Field number for the "request_id" field. - public const int RequestIdFieldNumber = 4; - private string requestId_ = ""; + /// Field number for the "conflict_token" field. + public const int ConflictTokenFieldNumber = 5; + private pb::ByteString conflictToken_ = pb::ByteString.Empty; /// - /// Used to de-dupe requests. Typically should be UUID. + /// 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. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string RequestId { - get { return requestId_; } + public pb::ByteString ConflictToken { + get { return conflictToken_; } set { - requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + conflictToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "identity" field. - public const int IdentityFieldNumber = 5; + public const int IdentityFieldNumber = 6; private string identity_ = ""; /// - /// Identity of the actor who created the rule. Will be stored with the rule. + /// Required. The identity of the client who initiated this request. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -61513,30 +62294,36 @@ public string Identity { } } - /// Field number for the "description" field. - public const int DescriptionFieldNumber = 6; - private string description_ = ""; - /// - /// Rule description.Will be stored with the rule. - /// + private object newManagerIdentity_; + /// Enum of possible cases for the "new_manager_identity" oneof. + public enum NewManagerIdentityOneofCase { + None = 0, + ManagerIdentity = 3, + Self = 4, + } + private NewManagerIdentityOneofCase newManagerIdentityCase_ = NewManagerIdentityOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Description { - get { return description_; } - set { - description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } + public NewManagerIdentityOneofCase NewManagerIdentityCase { + get { return newManagerIdentityCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNewManagerIdentity() { + newManagerIdentityCase_ = NewManagerIdentityOneofCase.None; + newManagerIdentity_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as CreateWorkflowRuleRequest); + return Equals(other as SetWorkerDeploymentManagerRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CreateWorkflowRuleRequest other) { + public bool Equals(SetWorkerDeploymentManagerRequest other) { if (ReferenceEquals(other, null)) { return false; } @@ -61544,11 +62331,12 @@ public bool Equals(CreateWorkflowRuleRequest other) { return true; } if (Namespace != other.Namespace) return false; - if (!object.Equals(Spec, other.Spec)) return false; - if (ForceScan != other.ForceScan) return false; - if (RequestId != other.RequestId) return false; + if (DeploymentName != other.DeploymentName) return false; + if (ManagerIdentity != other.ManagerIdentity) return false; + if (Self != other.Self) return false; + if (ConflictToken != other.ConflictToken) return false; if (Identity != other.Identity) return false; - if (Description != other.Description) return false; + if (NewManagerIdentityCase != other.NewManagerIdentityCase) return false; return Equals(_unknownFields, other._unknownFields); } @@ -61557,11 +62345,12 @@ public bool Equals(CreateWorkflowRuleRequest other) { public override int GetHashCode() { int hash = 1; if (Namespace.Length != 0) hash ^= Namespace.GetHashCode(); - if (spec_ != null) hash ^= Spec.GetHashCode(); - if (ForceScan != false) hash ^= ForceScan.GetHashCode(); - if (RequestId.Length != 0) hash ^= RequestId.GetHashCode(); + if (DeploymentName.Length != 0) hash ^= DeploymentName.GetHashCode(); + if (HasManagerIdentity) hash ^= ManagerIdentity.GetHashCode(); + if (HasSelf) hash ^= Self.GetHashCode(); + if (ConflictToken.Length != 0) hash ^= ConflictToken.GetHashCode(); if (Identity.Length != 0) hash ^= Identity.GetHashCode(); - if (Description.Length != 0) hash ^= Description.GetHashCode(); + hash ^= (int) newManagerIdentityCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -61584,25 +62373,25 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(Namespace); } - if (spec_ != null) { + if (DeploymentName.Length != 0) { output.WriteRawTag(18); - output.WriteMessage(Spec); + output.WriteString(DeploymentName); } - if (ForceScan != false) { - output.WriteRawTag(24); - output.WriteBool(ForceScan); + if (HasManagerIdentity) { + output.WriteRawTag(26); + output.WriteString(ManagerIdentity); } - if (RequestId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(RequestId); + if (HasSelf) { + output.WriteRawTag(32); + output.WriteBool(Self); } - if (Identity.Length != 0) { + if (ConflictToken.Length != 0) { output.WriteRawTag(42); - output.WriteString(Identity); + output.WriteBytes(ConflictToken); } - if (Description.Length != 0) { + if (Identity.Length != 0) { output.WriteRawTag(50); - output.WriteString(Description); + output.WriteString(Identity); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -61618,25 +62407,25 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(Namespace); } - if (spec_ != null) { + if (DeploymentName.Length != 0) { output.WriteRawTag(18); - output.WriteMessage(Spec); + output.WriteString(DeploymentName); } - if (ForceScan != false) { - output.WriteRawTag(24); - output.WriteBool(ForceScan); + if (HasManagerIdentity) { + output.WriteRawTag(26); + output.WriteString(ManagerIdentity); } - if (RequestId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(RequestId); + if (HasSelf) { + output.WriteRawTag(32); + output.WriteBool(Self); } - if (Identity.Length != 0) { + if (ConflictToken.Length != 0) { output.WriteRawTag(42); - output.WriteString(Identity); + output.WriteBytes(ConflictToken); } - if (Description.Length != 0) { + if (Identity.Length != 0) { output.WriteRawTag(50); - output.WriteString(Description); + output.WriteString(Identity); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -61651,21 +62440,21 @@ public int CalculateSize() { if (Namespace.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Namespace); } - if (spec_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Spec); + if (DeploymentName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DeploymentName); } - if (ForceScan != false) { + if (HasManagerIdentity) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ManagerIdentity); + } + if (HasSelf) { size += 1 + 1; } - if (RequestId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); + if (ConflictToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(ConflictToken); } if (Identity.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Identity); } - if (Description.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); - } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -61674,31 +62463,31 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CreateWorkflowRuleRequest other) { + public void MergeFrom(SetWorkerDeploymentManagerRequest other) { if (other == null) { return; } if (other.Namespace.Length != 0) { Namespace = other.Namespace; } - if (other.spec_ != null) { - if (spec_ == null) { - Spec = new global::Temporalio.Api.Rules.V1.WorkflowRuleSpec(); - } - Spec.MergeFrom(other.Spec); - } - if (other.ForceScan != false) { - ForceScan = other.ForceScan; + if (other.DeploymentName.Length != 0) { + DeploymentName = other.DeploymentName; } - if (other.RequestId.Length != 0) { - RequestId = other.RequestId; + if (other.ConflictToken.Length != 0) { + ConflictToken = other.ConflictToken; } if (other.Identity.Length != 0) { Identity = other.Identity; } - if (other.Description.Length != 0) { - Description = other.Description; + switch (other.NewManagerIdentityCase) { + case NewManagerIdentityOneofCase.ManagerIdentity: + ManagerIdentity = other.ManagerIdentity; + break; + case NewManagerIdentityOneofCase.Self: + Self = other.Self; + break; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -61719,26 +62508,23 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - if (spec_ == null) { - Spec = new global::Temporalio.Api.Rules.V1.WorkflowRuleSpec(); - } - input.ReadMessage(Spec); + DeploymentName = input.ReadString(); break; } - case 24: { - ForceScan = input.ReadBool(); + case 26: { + ManagerIdentity = input.ReadString(); break; } - case 34: { - RequestId = input.ReadString(); + case 32: { + Self = input.ReadBool(); break; } case 42: { - Identity = input.ReadString(); + ConflictToken = input.ReadBytes(); break; } case 50: { - Description = input.ReadString(); + Identity = input.ReadString(); break; } } @@ -61761,26 +62547,23 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - if (spec_ == null) { - Spec = new global::Temporalio.Api.Rules.V1.WorkflowRuleSpec(); - } - input.ReadMessage(Spec); + DeploymentName = input.ReadString(); break; } - case 24: { - ForceScan = input.ReadBool(); + case 26: { + ManagerIdentity = input.ReadString(); break; } - case 34: { - RequestId = input.ReadString(); + case 32: { + Self = input.ReadBool(); break; } case 42: { - Identity = input.ReadString(); + ConflictToken = input.ReadBytes(); break; } case 50: { - Description = input.ReadString(); + Identity = input.ReadString(); break; } } @@ -61790,21 +62573,21 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class CreateWorkflowRuleResponse : pb::IMessage + public sealed partial class SetWorkerDeploymentManagerResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateWorkflowRuleResponse()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetWorkerDeploymentManagerResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[169]; } + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[171]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -61815,7 +62598,7 @@ public sealed partial class CreateWorkflowRuleResponse : pb::IMessageField number for the "rule" field. - public const int RuleFieldNumber = 1; - private global::Temporalio.Api.Rules.V1.WorkflowRule rule_; + /// Field number for the "conflict_token" field. + public const int ConflictTokenFieldNumber = 1; + private pb::ByteString conflictToken_ = pb::ByteString.Empty; /// - /// Created rule. + /// 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. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Temporalio.Api.Rules.V1.WorkflowRule Rule { - get { return rule_; } + public pb::ByteString ConflictToken { + get { return conflictToken_; } set { - rule_ = value; + conflictToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - /// Field number for the "job_id" field. - public const int JobIdFieldNumber = 2; - private string jobId_ = ""; + /// Field number for the "previous_manager_identity" field. + public const int PreviousManagerIdentityFieldNumber = 2; + private string previousManagerIdentity_ = ""; /// - /// Batch Job ID if force-scan flag was provided. Otherwise empty. + /// 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. /// + [global::System.ObsoleteAttribute] [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string JobId { - get { return jobId_; } + public string PreviousManagerIdentity { + get { return previousManagerIdentity_; } set { - jobId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + previousManagerIdentity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as CreateWorkflowRuleResponse); + return Equals(other as SetWorkerDeploymentManagerResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CreateWorkflowRuleResponse other) { + public bool Equals(SetWorkerDeploymentManagerResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(Rule, other.Rule)) return false; - if (JobId != other.JobId) return false; + if (ConflictToken != other.ConflictToken) return false; + if (PreviousManagerIdentity != other.PreviousManagerIdentity) return false; return Equals(_unknownFields, other._unknownFields); } @@ -61889,8 +62679,8 @@ public bool Equals(CreateWorkflowRuleResponse other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (rule_ != null) hash ^= Rule.GetHashCode(); - if (JobId.Length != 0) hash ^= JobId.GetHashCode(); + if (ConflictToken.Length != 0) hash ^= ConflictToken.GetHashCode(); + if (PreviousManagerIdentity.Length != 0) hash ^= PreviousManagerIdentity.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -61909,13 +62699,13 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (rule_ != null) { + if (ConflictToken.Length != 0) { output.WriteRawTag(10); - output.WriteMessage(Rule); + output.WriteBytes(ConflictToken); } - if (JobId.Length != 0) { + if (PreviousManagerIdentity.Length != 0) { output.WriteRawTag(18); - output.WriteString(JobId); + output.WriteString(PreviousManagerIdentity); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -61927,13 +62717,13 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (rule_ != null) { + if (ConflictToken.Length != 0) { output.WriteRawTag(10); - output.WriteMessage(Rule); + output.WriteBytes(ConflictToken); } - if (JobId.Length != 0) { + if (PreviousManagerIdentity.Length != 0) { output.WriteRawTag(18); - output.WriteString(JobId); + output.WriteString(PreviousManagerIdentity); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -61945,11 +62735,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (rule_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Rule); + if (ConflictToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(ConflictToken); } - if (JobId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(JobId); + if (PreviousManagerIdentity.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PreviousManagerIdentity); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -61959,18 +62749,15 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CreateWorkflowRuleResponse other) { + public void MergeFrom(SetWorkerDeploymentManagerResponse other) { if (other == null) { return; } - if (other.rule_ != null) { - if (rule_ == null) { - Rule = new global::Temporalio.Api.Rules.V1.WorkflowRule(); - } - Rule.MergeFrom(other.Rule); + if (other.ConflictToken.Length != 0) { + ConflictToken = other.ConflictToken; } - if (other.JobId.Length != 0) { - JobId = other.JobId; + if (other.PreviousManagerIdentity.Length != 0) { + PreviousManagerIdentity = other.PreviousManagerIdentity; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -61988,14 +62775,11 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (rule_ == null) { - Rule = new global::Temporalio.Api.Rules.V1.WorkflowRule(); - } - input.ReadMessage(Rule); + ConflictToken = input.ReadBytes(); break; } case 18: { - JobId = input.ReadString(); + PreviousManagerIdentity = input.ReadString(); break; } } @@ -62014,14 +62798,11 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - if (rule_ == null) { - Rule = new global::Temporalio.Api.Rules.V1.WorkflowRule(); - } - input.ReadMessage(Rule); + ConflictToken = input.ReadBytes(); break; } case 18: { - JobId = input.ReadString(); + PreviousManagerIdentity = input.ReadString(); break; } } @@ -62031,21 +62812,25 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class DescribeWorkflowRuleRequest : pb::IMessage + /// + /// Returns the Current Deployment of a deployment series. + /// [cleanup-wv-pre-release] Pre-release deployment APIs, clean up later + /// + public sealed partial class GetCurrentDeploymentRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DescribeWorkflowRuleRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetCurrentDeploymentRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[170]; } + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[172]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -62056,7 +62841,7 @@ public sealed partial class DescribeWorkflowRuleRequest : pb::IMessageField number for the "namespace" field. @@ -62088,30 +62873,27 @@ public string Namespace { } } - /// Field number for the "rule_id" field. - public const int RuleIdFieldNumber = 2; - private string ruleId_ = ""; - /// - /// User-specified ID of the rule to read. Unique within the namespace. - /// + /// Field number for the "series_name" field. + public const int SeriesNameFieldNumber = 2; + private string seriesName_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string RuleId { - get { return ruleId_; } + public string SeriesName { + get { return seriesName_; } set { - ruleId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + seriesName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as DescribeWorkflowRuleRequest); + return Equals(other as GetCurrentDeploymentRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DescribeWorkflowRuleRequest other) { + public bool Equals(GetCurrentDeploymentRequest other) { if (ReferenceEquals(other, null)) { return false; } @@ -62119,7 +62901,7 @@ public bool Equals(DescribeWorkflowRuleRequest other) { return true; } if (Namespace != other.Namespace) return false; - if (RuleId != other.RuleId) return false; + if (SeriesName != other.SeriesName) return false; return Equals(_unknownFields, other._unknownFields); } @@ -62128,7 +62910,7 @@ public bool Equals(DescribeWorkflowRuleRequest other) { public override int GetHashCode() { int hash = 1; if (Namespace.Length != 0) hash ^= Namespace.GetHashCode(); - if (RuleId.Length != 0) hash ^= RuleId.GetHashCode(); + if (SeriesName.Length != 0) hash ^= SeriesName.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -62151,9 +62933,9 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(Namespace); } - if (RuleId.Length != 0) { + if (SeriesName.Length != 0) { output.WriteRawTag(18); - output.WriteString(RuleId); + output.WriteString(SeriesName); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -62169,9 +62951,9 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(Namespace); } - if (RuleId.Length != 0) { + if (SeriesName.Length != 0) { output.WriteRawTag(18); - output.WriteString(RuleId); + output.WriteString(SeriesName); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -62186,8 +62968,8 @@ public int CalculateSize() { if (Namespace.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Namespace); } - if (RuleId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(RuleId); + if (SeriesName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SeriesName); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -62197,15 +62979,15 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DescribeWorkflowRuleRequest other) { + public void MergeFrom(GetCurrentDeploymentRequest other) { if (other == null) { return; } if (other.Namespace.Length != 0) { Namespace = other.Namespace; } - if (other.RuleId.Length != 0) { - RuleId = other.RuleId; + if (other.SeriesName.Length != 0) { + SeriesName = other.SeriesName; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -62227,7 +63009,7 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - RuleId = input.ReadString(); + SeriesName = input.ReadString(); break; } } @@ -62250,7 +63032,7 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - RuleId = input.ReadString(); + SeriesName = input.ReadString(); break; } } @@ -62260,21 +63042,24 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class DescribeWorkflowRuleResponse : pb::IMessage + /// + /// [cleanup-wv-pre-release] Pre-release deployment APIs, clean up later + /// + public sealed partial class GetCurrentDeploymentResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DescribeWorkflowRuleResponse()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetCurrentDeploymentResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[171]; } + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[173]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -62285,7 +63070,7 @@ public sealed partial class DescribeWorkflowRuleResponse : pb::IMessageField number for the "rule" field. - public const int RuleFieldNumber = 1; - private global::Temporalio.Api.Rules.V1.WorkflowRule rule_; - /// - /// The rule that was read. - /// + /// Field number for the "current_deployment_info" field. + public const int CurrentDeploymentInfoFieldNumber = 1; + private global::Temporalio.Api.Deployment.V1.DeploymentInfo currentDeploymentInfo_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Temporalio.Api.Rules.V1.WorkflowRule Rule { - get { return rule_; } + public global::Temporalio.Api.Deployment.V1.DeploymentInfo CurrentDeploymentInfo { + get { return currentDeploymentInfo_; } set { - rule_ = value; + currentDeploymentInfo_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as DescribeWorkflowRuleResponse); + return Equals(other as GetCurrentDeploymentResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DescribeWorkflowRuleResponse other) { + public bool Equals(GetCurrentDeploymentResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(Rule, other.Rule)) return false; + if (!object.Equals(CurrentDeploymentInfo, other.CurrentDeploymentInfo)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -62342,7 +63124,7 @@ public bool Equals(DescribeWorkflowRuleResponse other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (rule_ != null) hash ^= Rule.GetHashCode(); + if (currentDeploymentInfo_ != null) hash ^= CurrentDeploymentInfo.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -62361,9 +63143,9 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (rule_ != null) { + if (currentDeploymentInfo_ != null) { output.WriteRawTag(10); - output.WriteMessage(Rule); + output.WriteMessage(CurrentDeploymentInfo); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -62375,9 +63157,9 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (rule_ != null) { + if (currentDeploymentInfo_ != null) { output.WriteRawTag(10); - output.WriteMessage(Rule); + output.WriteMessage(CurrentDeploymentInfo); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -62389,8 +63171,8 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (rule_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Rule); + if (currentDeploymentInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CurrentDeploymentInfo); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -62400,15 +63182,15 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DescribeWorkflowRuleResponse other) { + public void MergeFrom(GetCurrentDeploymentResponse other) { if (other == null) { return; } - if (other.rule_ != null) { - if (rule_ == null) { - Rule = new global::Temporalio.Api.Rules.V1.WorkflowRule(); + if (other.currentDeploymentInfo_ != null) { + if (currentDeploymentInfo_ == null) { + CurrentDeploymentInfo = new global::Temporalio.Api.Deployment.V1.DeploymentInfo(); } - Rule.MergeFrom(other.Rule); + CurrentDeploymentInfo.MergeFrom(other.CurrentDeploymentInfo); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -62426,10 +63208,10 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (rule_ == null) { - Rule = new global::Temporalio.Api.Rules.V1.WorkflowRule(); + if (currentDeploymentInfo_ == null) { + CurrentDeploymentInfo = new global::Temporalio.Api.Deployment.V1.DeploymentInfo(); } - input.ReadMessage(Rule); + input.ReadMessage(CurrentDeploymentInfo); break; } } @@ -62448,10 +63230,10 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - if (rule_ == null) { - Rule = new global::Temporalio.Api.Rules.V1.WorkflowRule(); + if (currentDeploymentInfo_ == null) { + CurrentDeploymentInfo = new global::Temporalio.Api.Deployment.V1.DeploymentInfo(); } - input.ReadMessage(Rule); + input.ReadMessage(CurrentDeploymentInfo); break; } } @@ -62461,21 +63243,24 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class DeleteWorkflowRuleRequest : pb::IMessage + /// + /// [cleanup-wv-pre-release] Pre-release deployment APIs, clean up later + /// + public sealed partial class GetDeploymentReachabilityRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteWorkflowRuleRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeploymentReachabilityRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[172]; } + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[174]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -62486,7 +63271,7 @@ public sealed partial class DeleteWorkflowRuleRequest : pb::IMessageField number for the "namespace" field. @@ -62518,30 +63303,27 @@ public string Namespace { } } - /// Field number for the "rule_id" field. - public const int RuleIdFieldNumber = 2; - private string ruleId_ = ""; - /// - /// ID of the rule to delete. Unique within the namespace. - /// + /// Field number for the "deployment" field. + public const int DeploymentFieldNumber = 2; + private global::Temporalio.Api.Deployment.V1.Deployment deployment_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string RuleId { - get { return ruleId_; } + public global::Temporalio.Api.Deployment.V1.Deployment Deployment { + get { return deployment_; } set { - ruleId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + deployment_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as DeleteWorkflowRuleRequest); + return Equals(other as GetDeploymentReachabilityRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DeleteWorkflowRuleRequest other) { + public bool Equals(GetDeploymentReachabilityRequest other) { if (ReferenceEquals(other, null)) { return false; } @@ -62549,7 +63331,7 @@ public bool Equals(DeleteWorkflowRuleRequest other) { return true; } if (Namespace != other.Namespace) return false; - if (RuleId != other.RuleId) return false; + if (!object.Equals(Deployment, other.Deployment)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -62558,7 +63340,7 @@ public bool Equals(DeleteWorkflowRuleRequest other) { public override int GetHashCode() { int hash = 1; if (Namespace.Length != 0) hash ^= Namespace.GetHashCode(); - if (RuleId.Length != 0) hash ^= RuleId.GetHashCode(); + if (deployment_ != null) hash ^= Deployment.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -62581,9 +63363,9 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(Namespace); } - if (RuleId.Length != 0) { + if (deployment_ != null) { output.WriteRawTag(18); - output.WriteString(RuleId); + output.WriteMessage(Deployment); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -62599,9 +63381,9 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(Namespace); } - if (RuleId.Length != 0) { + if (deployment_ != null) { output.WriteRawTag(18); - output.WriteString(RuleId); + output.WriteMessage(Deployment); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -62616,8 +63398,8 @@ public int CalculateSize() { if (Namespace.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Namespace); } - if (RuleId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(RuleId); + if (deployment_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Deployment); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -62627,15 +63409,18 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DeleteWorkflowRuleRequest other) { + public void MergeFrom(GetDeploymentReachabilityRequest other) { if (other == null) { return; } if (other.Namespace.Length != 0) { Namespace = other.Namespace; } - if (other.RuleId.Length != 0) { - RuleId = other.RuleId; + if (other.deployment_ != null) { + if (deployment_ == null) { + Deployment = new global::Temporalio.Api.Deployment.V1.Deployment(); + } + Deployment.MergeFrom(other.Deployment); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -62657,7 +63442,10 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - RuleId = input.ReadString(); + if (deployment_ == null) { + Deployment = new global::Temporalio.Api.Deployment.V1.Deployment(); + } + input.ReadMessage(Deployment); break; } } @@ -62680,7 +63468,10 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - RuleId = input.ReadString(); + if (deployment_ == null) { + Deployment = new global::Temporalio.Api.Deployment.V1.Deployment(); + } + input.ReadMessage(Deployment); break; } } @@ -62690,21 +63481,24 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class DeleteWorkflowRuleResponse : pb::IMessage + /// + /// [cleanup-wv-pre-release] Pre-release deployment APIs, clean up later + /// + public sealed partial class GetDeploymentReachabilityResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteWorkflowRuleResponse()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeploymentReachabilityResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[173]; } + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[175]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -62715,7 +63509,7 @@ public sealed partial class DeleteWorkflowRuleResponse : pb::IMessageField number for the "deployment_info" field. + public const int DeploymentInfoFieldNumber = 1; + private global::Temporalio.Api.Deployment.V1.DeploymentInfo deploymentInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Deployment.V1.DeploymentInfo DeploymentInfo { + get { return deploymentInfo_; } + set { + deploymentInfo_ = value; + } + } + + /// Field number for the "reachability" field. + public const int ReachabilityFieldNumber = 2; + private global::Temporalio.Api.Enums.V1.DeploymentReachability reachability_ = global::Temporalio.Api.Enums.V1.DeploymentReachability.Unspecified; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Enums.V1.DeploymentReachability Reachability { + get { return reachability_; } + set { + reachability_ = value; + } + } + + /// Field number for the "last_update_time" field. + public const int LastUpdateTimeFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp lastUpdateTime_; + /// + /// Reachability level might come from server cache. This timestamp specifies when the value + /// was actually calculated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp LastUpdateTime { + get { return lastUpdateTime_; } + set { + lastUpdateTime_ = value; + } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as DeleteWorkflowRuleResponse); + return Equals(other as GetDeploymentReachabilityResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DeleteWorkflowRuleResponse other) { + public bool Equals(GetDeploymentReachabilityResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } + if (!object.Equals(DeploymentInfo, other.DeploymentInfo)) return false; + if (Reachability != other.Reachability) return false; + if (!object.Equals(LastUpdateTime, other.LastUpdateTime)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -62755,6 +63595,9 @@ public bool Equals(DeleteWorkflowRuleResponse other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; + if (deploymentInfo_ != null) hash ^= DeploymentInfo.GetHashCode(); + if (Reachability != global::Temporalio.Api.Enums.V1.DeploymentReachability.Unspecified) hash ^= Reachability.GetHashCode(); + if (lastUpdateTime_ != null) hash ^= LastUpdateTime.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -62773,6 +63616,18 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else + if (deploymentInfo_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DeploymentInfo); + } + if (Reachability != global::Temporalio.Api.Enums.V1.DeploymentReachability.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) Reachability); + } + if (lastUpdateTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(LastUpdateTime); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -62783,6 +63638,18 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (deploymentInfo_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DeploymentInfo); + } + if (Reachability != global::Temporalio.Api.Enums.V1.DeploymentReachability.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) Reachability); + } + if (lastUpdateTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(LastUpdateTime); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -62793,6 +63660,15 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; + if (deploymentInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeploymentInfo); + } + if (Reachability != global::Temporalio.Api.Enums.V1.DeploymentReachability.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Reachability); + } + if (lastUpdateTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(LastUpdateTime); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -62801,10 +63677,25 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DeleteWorkflowRuleResponse other) { + public void MergeFrom(GetDeploymentReachabilityResponse other) { if (other == null) { return; } + if (other.deploymentInfo_ != null) { + if (deploymentInfo_ == null) { + DeploymentInfo = new global::Temporalio.Api.Deployment.V1.DeploymentInfo(); + } + DeploymentInfo.MergeFrom(other.DeploymentInfo); + } + if (other.Reachability != global::Temporalio.Api.Enums.V1.DeploymentReachability.Unspecified) { + Reachability = other.Reachability; + } + if (other.lastUpdateTime_ != null) { + if (lastUpdateTime_ == null) { + LastUpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + LastUpdateTime.MergeFrom(other.LastUpdateTime); + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -62820,6 +63711,24 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; + case 10: { + if (deploymentInfo_ == null) { + DeploymentInfo = new global::Temporalio.Api.Deployment.V1.DeploymentInfo(); + } + input.ReadMessage(DeploymentInfo); + break; + } + case 16: { + Reachability = (global::Temporalio.Api.Enums.V1.DeploymentReachability) input.ReadEnum(); + break; + } + case 26: { + if (lastUpdateTime_ == null) { + LastUpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(LastUpdateTime); + break; + } } } #endif @@ -62835,6 +63744,24 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; + case 10: { + if (deploymentInfo_ == null) { + DeploymentInfo = new global::Temporalio.Api.Deployment.V1.DeploymentInfo(); + } + input.ReadMessage(DeploymentInfo); + break; + } + case 16: { + Reachability = (global::Temporalio.Api.Enums.V1.DeploymentReachability) input.ReadEnum(); + break; + } + case 26: { + if (lastUpdateTime_ == null) { + LastUpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(LastUpdateTime); + break; + } } } } @@ -62842,21 +63769,21 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class ListWorkflowRulesRequest : pb::IMessage + public sealed partial class CreateWorkflowRuleRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListWorkflowRulesRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateWorkflowRuleRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[174]; } + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[176]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -62867,7 +63794,7 @@ public sealed partial class ListWorkflowRulesRequest : pb::IMessageField number for the "namespace" field. @@ -62899,27 +63830,92 @@ public string Namespace { } } - /// Field number for the "next_page_token" field. - public const int NextPageTokenFieldNumber = 2; - private pb::ByteString nextPageToken_ = pb::ByteString.Empty; + /// Field number for the "spec" field. + public const int SpecFieldNumber = 2; + private global::Temporalio.Api.Rules.V1.WorkflowRuleSpec spec_; + /// + /// The rule specification . + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString NextPageToken { - get { return nextPageToken_; } + public global::Temporalio.Api.Rules.V1.WorkflowRuleSpec Spec { + get { return spec_; } set { - nextPageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + spec_ = value; + } + } + + /// Field number for the "force_scan" field. + public const int ForceScanFieldNumber = 3; + private bool forceScan_; + /// + /// 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. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool ForceScan { + get { return forceScan_; } + set { + forceScan_ = value; + } + } + + /// Field number for the "request_id" field. + public const int RequestIdFieldNumber = 4; + private string requestId_ = ""; + /// + /// Used to de-dupe requests. Typically should be UUID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RequestId { + get { return requestId_; } + set { + requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "identity" field. + public const int IdentityFieldNumber = 5; + private string identity_ = ""; + /// + /// Identity of the actor who created the rule. Will be stored with the rule. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Identity { + get { return identity_; } + set { + identity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 6; + private string description_ = ""; + /// + /// Rule description.Will be stored with the rule. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Description { + get { return description_; } + set { + description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as ListWorkflowRulesRequest); + return Equals(other as CreateWorkflowRuleRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ListWorkflowRulesRequest other) { + public bool Equals(CreateWorkflowRuleRequest other) { if (ReferenceEquals(other, null)) { return false; } @@ -62927,7 +63923,11 @@ public bool Equals(ListWorkflowRulesRequest other) { return true; } if (Namespace != other.Namespace) return false; - if (NextPageToken != other.NextPageToken) return false; + if (!object.Equals(Spec, other.Spec)) return false; + if (ForceScan != other.ForceScan) return false; + if (RequestId != other.RequestId) return false; + if (Identity != other.Identity) return false; + if (Description != other.Description) return false; return Equals(_unknownFields, other._unknownFields); } @@ -62936,7 +63936,11 @@ public bool Equals(ListWorkflowRulesRequest other) { public override int GetHashCode() { int hash = 1; if (Namespace.Length != 0) hash ^= Namespace.GetHashCode(); - if (NextPageToken.Length != 0) hash ^= NextPageToken.GetHashCode(); + if (spec_ != null) hash ^= Spec.GetHashCode(); + if (ForceScan != false) hash ^= ForceScan.GetHashCode(); + if (RequestId.Length != 0) hash ^= RequestId.GetHashCode(); + if (Identity.Length != 0) hash ^= Identity.GetHashCode(); + if (Description.Length != 0) hash ^= Description.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -62959,9 +63963,25 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(Namespace); } - if (NextPageToken.Length != 0) { + if (spec_ != null) { output.WriteRawTag(18); - output.WriteBytes(NextPageToken); + output.WriteMessage(Spec); + } + if (ForceScan != false) { + output.WriteRawTag(24); + output.WriteBool(ForceScan); + } + if (RequestId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(RequestId); + } + if (Identity.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Identity); + } + if (Description.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Description); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -62977,9 +63997,25 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(Namespace); } - if (NextPageToken.Length != 0) { + if (spec_ != null) { output.WriteRawTag(18); - output.WriteBytes(NextPageToken); + output.WriteMessage(Spec); + } + if (ForceScan != false) { + output.WriteRawTag(24); + output.WriteBool(ForceScan); + } + if (RequestId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(RequestId); + } + if (Identity.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Identity); + } + if (Description.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Description); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -62994,8 +64030,20 @@ public int CalculateSize() { if (Namespace.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Namespace); } - if (NextPageToken.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(NextPageToken); + if (spec_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Spec); + } + if (ForceScan != false) { + size += 1 + 1; + } + if (RequestId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); + } + if (Identity.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Identity); + } + if (Description.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -63005,15 +64053,30 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ListWorkflowRulesRequest other) { + public void MergeFrom(CreateWorkflowRuleRequest other) { if (other == null) { return; } if (other.Namespace.Length != 0) { Namespace = other.Namespace; } - if (other.NextPageToken.Length != 0) { - NextPageToken = other.NextPageToken; + if (other.spec_ != null) { + if (spec_ == null) { + Spec = new global::Temporalio.Api.Rules.V1.WorkflowRuleSpec(); + } + Spec.MergeFrom(other.Spec); + } + if (other.ForceScan != false) { + ForceScan = other.ForceScan; + } + if (other.RequestId.Length != 0) { + RequestId = other.RequestId; + } + if (other.Identity.Length != 0) { + Identity = other.Identity; + } + if (other.Description.Length != 0) { + Description = other.Description; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -63035,7 +64098,26 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - NextPageToken = input.ReadBytes(); + if (spec_ == null) { + Spec = new global::Temporalio.Api.Rules.V1.WorkflowRuleSpec(); + } + input.ReadMessage(Spec); + break; + } + case 24: { + ForceScan = input.ReadBool(); + break; + } + case 34: { + RequestId = input.ReadString(); + break; + } + case 42: { + Identity = input.ReadString(); + break; + } + case 50: { + Description = input.ReadString(); break; } } @@ -63058,7 +64140,26 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - NextPageToken = input.ReadBytes(); + if (spec_ == null) { + Spec = new global::Temporalio.Api.Rules.V1.WorkflowRuleSpec(); + } + input.ReadMessage(Spec); + break; + } + case 24: { + ForceScan = input.ReadBool(); + break; + } + case 34: { + RequestId = input.ReadString(); + break; + } + case 42: { + Identity = input.ReadString(); + break; + } + case 50: { + Description = input.ReadString(); break; } } @@ -63068,21 +64169,21 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class ListWorkflowRulesResponse : pb::IMessage + public sealed partial class CreateWorkflowRuleResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListWorkflowRulesResponse()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateWorkflowRuleResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[175]; } + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[177]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -63093,7 +64194,7 @@ public sealed partial class ListWorkflowRulesResponse : pb::IMessageField number for the "rules" field. - public const int RulesFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_rules_codec - = pb::FieldCodec.ForMessage(10, global::Temporalio.Api.Rules.V1.WorkflowRule.Parser); - private readonly pbc::RepeatedField rules_ = new pbc::RepeatedField(); + /// Field number for the "rule" field. + public const int RuleFieldNumber = 1; + private global::Temporalio.Api.Rules.V1.WorkflowRule rule_; + /// + /// Created rule. + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Rules { - get { return rules_; } + public global::Temporalio.Api.Rules.V1.WorkflowRule Rule { + get { return rule_; } + set { + rule_ = value; + } } - /// Field number for the "next_page_token" field. - public const int NextPageTokenFieldNumber = 2; - private pb::ByteString nextPageToken_ = pb::ByteString.Empty; + /// Field number for the "job_id" field. + public const int JobIdFieldNumber = 2; + private string jobId_ = ""; + /// + /// Batch Job ID if force-scan flag was provided. Otherwise empty. + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString NextPageToken { - get { return nextPageToken_; } + public string JobId { + get { return jobId_; } set { - nextPageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + jobId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as ListWorkflowRulesResponse); + return Equals(other as CreateWorkflowRuleResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ListWorkflowRulesResponse other) { + public bool Equals(CreateWorkflowRuleResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if(!rules_.Equals(other.rules_)) return false; - if (NextPageToken != other.NextPageToken) return false; + if (!object.Equals(Rule, other.Rule)) return false; + if (JobId != other.JobId) return false; return Equals(_unknownFields, other._unknownFields); } @@ -63160,8 +64268,8 @@ public bool Equals(ListWorkflowRulesResponse other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - hash ^= rules_.GetHashCode(); - if (NextPageToken.Length != 0) hash ^= NextPageToken.GetHashCode(); + if (rule_ != null) hash ^= Rule.GetHashCode(); + if (JobId.Length != 0) hash ^= JobId.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -63180,10 +64288,13 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - rules_.WriteTo(output, _repeated_rules_codec); - if (NextPageToken.Length != 0) { + if (rule_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Rule); + } + if (JobId.Length != 0) { output.WriteRawTag(18); - output.WriteBytes(NextPageToken); + output.WriteString(JobId); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -63195,10 +64306,13 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - rules_.WriteTo(ref output, _repeated_rules_codec); - if (NextPageToken.Length != 0) { + if (rule_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Rule); + } + if (JobId.Length != 0) { output.WriteRawTag(18); - output.WriteBytes(NextPageToken); + output.WriteString(JobId); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -63210,11 +64324,13 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - size += rules_.CalculateSize(_repeated_rules_codec); - if (NextPageToken.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(NextPageToken); + if (rule_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Rule); } - if (_unknownFields != null) { + if (JobId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(JobId); + } + if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; @@ -63222,13 +64338,18 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ListWorkflowRulesResponse other) { + public void MergeFrom(CreateWorkflowRuleResponse other) { if (other == null) { return; } - rules_.Add(other.rules_); - if (other.NextPageToken.Length != 0) { - NextPageToken = other.NextPageToken; + if (other.rule_ != null) { + if (rule_ == null) { + Rule = new global::Temporalio.Api.Rules.V1.WorkflowRule(); + } + Rule.MergeFrom(other.Rule); + } + if (other.JobId.Length != 0) { + JobId = other.JobId; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -63246,11 +64367,14 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - rules_.AddEntriesFrom(input, _repeated_rules_codec); + if (rule_ == null) { + Rule = new global::Temporalio.Api.Rules.V1.WorkflowRule(); + } + input.ReadMessage(Rule); break; } case 18: { - NextPageToken = input.ReadBytes(); + JobId = input.ReadString(); break; } } @@ -63269,11 +64393,14 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - rules_.AddEntriesFrom(ref input, _repeated_rules_codec); + if (rule_ == null) { + Rule = new global::Temporalio.Api.Rules.V1.WorkflowRule(); + } + input.ReadMessage(Rule); break; } case 18: { - NextPageToken = input.ReadBytes(); + JobId = input.ReadString(); break; } } @@ -63283,21 +64410,21 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class TriggerWorkflowRuleRequest : pb::IMessage + public sealed partial class DescribeWorkflowRuleRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TriggerWorkflowRuleRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DescribeWorkflowRuleRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[176]; } + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[178]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -63308,7 +64435,7 @@ public sealed partial class TriggerWorkflowRuleRequest : pb::IMessageField number for the "namespace" field. @@ -63350,107 +64467,30 @@ public string Namespace { } } - /// Field number for the "execution" field. - public const int ExecutionFieldNumber = 2; - private global::Temporalio.Api.Common.V1.WorkflowExecution execution_; - /// - /// Execution info of the workflow which scheduled this activity - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Temporalio.Api.Common.V1.WorkflowExecution Execution { - get { return execution_; } - set { - execution_ = value; - } - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 4; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Id { - get { return HasId ? (string) rule_ : ""; } - set { - rule_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - ruleCase_ = RuleOneofCase.Id; - } - } - /// Gets whether the "id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasId { - get { return ruleCase_ == RuleOneofCase.Id; } - } - /// Clears the value of the oneof if it's currently set to "id" - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearId() { - if (HasId) { - ClearRule(); - } - } - - /// Field number for the "spec" field. - public const int SpecFieldNumber = 5; - /// - /// Note: Rule ID and expiration date are not used in the trigger request. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Temporalio.Api.Rules.V1.WorkflowRuleSpec Spec { - get { return ruleCase_ == RuleOneofCase.Spec ? (global::Temporalio.Api.Rules.V1.WorkflowRuleSpec) rule_ : null; } - set { - rule_ = value; - ruleCase_ = value == null ? RuleOneofCase.None : RuleOneofCase.Spec; - } - } - - /// Field number for the "identity" field. - public const int IdentityFieldNumber = 3; - private string identity_ = ""; + /// Field number for the "rule_id" field. + public const int RuleIdFieldNumber = 2; + private string ruleId_ = ""; /// - /// The identity of the client who initiated this request + /// User-specified ID of the rule to read. Unique within the namespace. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Identity { - get { return identity_; } + public string RuleId { + get { return ruleId_; } set { - identity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + ruleId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - private object rule_; - /// Enum of possible cases for the "rule" oneof. - public enum RuleOneofCase { - None = 0, - Id = 4, - Spec = 5, - } - private RuleOneofCase ruleCase_ = RuleOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RuleOneofCase RuleCase { - get { return ruleCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearRule() { - ruleCase_ = RuleOneofCase.None; - rule_ = null; - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as TriggerWorkflowRuleRequest); + return Equals(other as DescribeWorkflowRuleRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(TriggerWorkflowRuleRequest other) { + public bool Equals(DescribeWorkflowRuleRequest other) { if (ReferenceEquals(other, null)) { return false; } @@ -63458,11 +64498,7 @@ public bool Equals(TriggerWorkflowRuleRequest other) { return true; } if (Namespace != other.Namespace) return false; - if (!object.Equals(Execution, other.Execution)) return false; - if (Id != other.Id) return false; - if (!object.Equals(Spec, other.Spec)) return false; - if (Identity != other.Identity) return false; - if (RuleCase != other.RuleCase) return false; + if (RuleId != other.RuleId) return false; return Equals(_unknownFields, other._unknownFields); } @@ -63471,11 +64507,7 @@ public bool Equals(TriggerWorkflowRuleRequest other) { public override int GetHashCode() { int hash = 1; if (Namespace.Length != 0) hash ^= Namespace.GetHashCode(); - if (execution_ != null) hash ^= Execution.GetHashCode(); - if (HasId) hash ^= Id.GetHashCode(); - if (ruleCase_ == RuleOneofCase.Spec) hash ^= Spec.GetHashCode(); - if (Identity.Length != 0) hash ^= Identity.GetHashCode(); - hash ^= (int) ruleCase_; + if (RuleId.Length != 0) hash ^= RuleId.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -63498,21 +64530,9 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(Namespace); } - if (execution_ != null) { + if (RuleId.Length != 0) { output.WriteRawTag(18); - output.WriteMessage(Execution); - } - if (Identity.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Identity); - } - if (HasId) { - output.WriteRawTag(34); - output.WriteString(Id); - } - if (ruleCase_ == RuleOneofCase.Spec) { - output.WriteRawTag(42); - output.WriteMessage(Spec); + output.WriteString(RuleId); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -63528,21 +64548,9 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(Namespace); } - if (execution_ != null) { + if (RuleId.Length != 0) { output.WriteRawTag(18); - output.WriteMessage(Execution); - } - if (Identity.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Identity); - } - if (HasId) { - output.WriteRawTag(34); - output.WriteString(Id); - } - if (ruleCase_ == RuleOneofCase.Spec) { - output.WriteRawTag(42); - output.WriteMessage(Spec); + output.WriteString(RuleId); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -63557,17 +64565,8 @@ public int CalculateSize() { if (Namespace.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Namespace); } - if (execution_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Execution); - } - if (HasId) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); - } - if (ruleCase_ == RuleOneofCase.Spec) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Spec); - } - if (Identity.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Identity); + if (RuleId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RuleId); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -63577,34 +64576,16 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(TriggerWorkflowRuleRequest other) { + public void MergeFrom(DescribeWorkflowRuleRequest other) { if (other == null) { return; } if (other.Namespace.Length != 0) { Namespace = other.Namespace; } - if (other.execution_ != null) { - if (execution_ == null) { - Execution = new global::Temporalio.Api.Common.V1.WorkflowExecution(); - } - Execution.MergeFrom(other.Execution); - } - if (other.Identity.Length != 0) { - Identity = other.Identity; - } - switch (other.RuleCase) { - case RuleOneofCase.Id: - Id = other.Id; - break; - case RuleOneofCase.Spec: - if (Spec == null) { - Spec = new global::Temporalio.Api.Rules.V1.WorkflowRuleSpec(); - } - Spec.MergeFrom(other.Spec); - break; + if (other.RuleId.Length != 0) { + RuleId = other.RuleId; } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -63625,27 +64606,7 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - if (execution_ == null) { - Execution = new global::Temporalio.Api.Common.V1.WorkflowExecution(); - } - input.ReadMessage(Execution); - break; - } - case 26: { - Identity = input.ReadString(); - break; - } - case 34: { - Id = input.ReadString(); - break; - } - case 42: { - global::Temporalio.Api.Rules.V1.WorkflowRuleSpec subBuilder = new global::Temporalio.Api.Rules.V1.WorkflowRuleSpec(); - if (ruleCase_ == RuleOneofCase.Spec) { - subBuilder.MergeFrom(Spec); - } - input.ReadMessage(subBuilder); - Spec = subBuilder; + RuleId = input.ReadString(); break; } } @@ -63668,27 +64629,7 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - if (execution_ == null) { - Execution = new global::Temporalio.Api.Common.V1.WorkflowExecution(); - } - input.ReadMessage(Execution); - break; - } - case 26: { - Identity = input.ReadString(); - break; - } - case 34: { - Id = input.ReadString(); - break; - } - case 42: { - global::Temporalio.Api.Rules.V1.WorkflowRuleSpec subBuilder = new global::Temporalio.Api.Rules.V1.WorkflowRuleSpec(); - if (ruleCase_ == RuleOneofCase.Spec) { - subBuilder.MergeFrom(Spec); - } - input.ReadMessage(subBuilder); - Spec = subBuilder; + RuleId = input.ReadString(); break; } } @@ -63698,21 +64639,21 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class TriggerWorkflowRuleResponse : pb::IMessage + public sealed partial class DescribeWorkflowRuleResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TriggerWorkflowRuleResponse()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DescribeWorkflowRuleResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[177]; } + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[179]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -63723,7 +64664,7 @@ public sealed partial class TriggerWorkflowRuleResponse : pb::IMessageField number for the "applied" field. - public const int AppliedFieldNumber = 1; - private bool applied_; + /// Field number for the "rule" field. + public const int RuleFieldNumber = 1; + private global::Temporalio.Api.Rules.V1.WorkflowRule rule_; /// - /// True is the rule was applied, based on the rule conditions (predicate/visibility_query). + /// The rule that was read. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Applied { - get { return applied_; } + public global::Temporalio.Api.Rules.V1.WorkflowRule Rule { + get { return rule_; } set { - applied_ = value; + rule_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as TriggerWorkflowRuleResponse); + return Equals(other as DescribeWorkflowRuleResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(TriggerWorkflowRuleResponse other) { + public bool Equals(DescribeWorkflowRuleResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (Applied != other.Applied) return false; + if (!object.Equals(Rule, other.Rule)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -63780,7 +64721,7 @@ public bool Equals(TriggerWorkflowRuleResponse other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Applied != false) hash ^= Applied.GetHashCode(); + if (rule_ != null) hash ^= Rule.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -63799,9 +64740,9 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Applied != false) { - output.WriteRawTag(8); - output.WriteBool(Applied); + if (rule_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Rule); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -63813,9 +64754,9 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Applied != false) { - output.WriteRawTag(8); - output.WriteBool(Applied); + if (rule_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Rule); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -63827,8 +64768,8 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Applied != false) { - size += 1 + 1; + if (rule_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Rule); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -63838,12 +64779,15 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(TriggerWorkflowRuleResponse other) { + public void MergeFrom(DescribeWorkflowRuleResponse other) { if (other == null) { return; } - if (other.Applied != false) { - Applied = other.Applied; + if (other.rule_ != null) { + if (rule_ == null) { + Rule = new global::Temporalio.Api.Rules.V1.WorkflowRule(); + } + Rule.MergeFrom(other.Rule); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -63860,8 +64804,11 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 8: { - Applied = input.ReadBool(); + case 10: { + if (rule_ == null) { + Rule = new global::Temporalio.Api.Rules.V1.WorkflowRule(); + } + input.ReadMessage(Rule); break; } } @@ -63879,8 +64826,11 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 8: { - Applied = input.ReadBool(); + case 10: { + if (rule_ == null) { + Rule = new global::Temporalio.Api.Rules.V1.WorkflowRule(); + } + input.ReadMessage(Rule); break; } } @@ -63890,21 +64840,21 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class RecordWorkerHeartbeatRequest : pb::IMessage + public sealed partial class DeleteWorkflowRuleRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RecordWorkerHeartbeatRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteWorkflowRuleRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[178]; } + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[180]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -63915,7 +64865,7 @@ public sealed partial class RecordWorkerHeartbeatRequest : pb::IMessageField number for the "namespace" field. public const int NamespaceFieldNumber = 1; private string namespace_ = ""; - /// - /// Namespace this worker belongs to. - /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Namespace { @@ -63952,56 +64897,30 @@ public string Namespace { } } - /// Field number for the "identity" field. - public const int IdentityFieldNumber = 2; - private string identity_ = ""; - /// - /// The identity of the client who initiated this request. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Identity { - get { return identity_; } - set { - identity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "worker_heartbeat" field. - public const int WorkerHeartbeatFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_workerHeartbeat_codec - = pb::FieldCodec.ForMessage(26, global::Temporalio.Api.Worker.V1.WorkerHeartbeat.Parser); - private readonly pbc::RepeatedField workerHeartbeat_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField WorkerHeartbeat { - get { return workerHeartbeat_; } - } - - /// Field number for the "resource_id" field. - public const int ResourceIdFieldNumber = 4; - private string resourceId_ = ""; + /// Field number for the "rule_id" field. + public const int RuleIdFieldNumber = 2; + private string ruleId_ = ""; /// - /// Resource ID for routing. Contains the worker grouping key. + /// ID of the rule to delete. Unique within the namespace. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceId { - get { return resourceId_; } + public string RuleId { + get { return ruleId_; } set { - resourceId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + ruleId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as RecordWorkerHeartbeatRequest); + return Equals(other as DeleteWorkflowRuleRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(RecordWorkerHeartbeatRequest other) { + public bool Equals(DeleteWorkflowRuleRequest other) { if (ReferenceEquals(other, null)) { return false; } @@ -64009,9 +64928,7 @@ public bool Equals(RecordWorkerHeartbeatRequest other) { return true; } if (Namespace != other.Namespace) return false; - if (Identity != other.Identity) return false; - if(!workerHeartbeat_.Equals(other.workerHeartbeat_)) return false; - if (ResourceId != other.ResourceId) return false; + if (RuleId != other.RuleId) return false; return Equals(_unknownFields, other._unknownFields); } @@ -64020,9 +64937,7 @@ public bool Equals(RecordWorkerHeartbeatRequest other) { public override int GetHashCode() { int hash = 1; if (Namespace.Length != 0) hash ^= Namespace.GetHashCode(); - if (Identity.Length != 0) hash ^= Identity.GetHashCode(); - hash ^= workerHeartbeat_.GetHashCode(); - if (ResourceId.Length != 0) hash ^= ResourceId.GetHashCode(); + if (RuleId.Length != 0) hash ^= RuleId.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -64045,14 +64960,9 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(Namespace); } - if (Identity.Length != 0) { + if (RuleId.Length != 0) { output.WriteRawTag(18); - output.WriteString(Identity); - } - workerHeartbeat_.WriteTo(output, _repeated_workerHeartbeat_codec); - if (ResourceId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(ResourceId); + output.WriteString(RuleId); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -64068,14 +64978,9 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(Namespace); } - if (Identity.Length != 0) { + if (RuleId.Length != 0) { output.WriteRawTag(18); - output.WriteString(Identity); - } - workerHeartbeat_.WriteTo(ref output, _repeated_workerHeartbeat_codec); - if (ResourceId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(ResourceId); + output.WriteString(RuleId); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -64090,12 +64995,8 @@ public int CalculateSize() { if (Namespace.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Namespace); } - if (Identity.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Identity); - } - size += workerHeartbeat_.CalculateSize(_repeated_workerHeartbeat_codec); - if (ResourceId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceId); + if (RuleId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RuleId); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -64105,19 +65006,15 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(RecordWorkerHeartbeatRequest other) { + public void MergeFrom(DeleteWorkflowRuleRequest other) { if (other == null) { return; } if (other.Namespace.Length != 0) { Namespace = other.Namespace; } - if (other.Identity.Length != 0) { - Identity = other.Identity; - } - workerHeartbeat_.Add(other.workerHeartbeat_); - if (other.ResourceId.Length != 0) { - ResourceId = other.ResourceId; + if (other.RuleId.Length != 0) { + RuleId = other.RuleId; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -64139,15 +65036,7 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - Identity = input.ReadString(); - break; - } - case 26: { - workerHeartbeat_.AddEntriesFrom(input, _repeated_workerHeartbeat_codec); - break; - } - case 34: { - ResourceId = input.ReadString(); + RuleId = input.ReadString(); break; } } @@ -64170,15 +65059,7 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - Identity = input.ReadString(); - break; - } - case 26: { - workerHeartbeat_.AddEntriesFrom(ref input, _repeated_workerHeartbeat_codec); - break; - } - case 34: { - ResourceId = input.ReadString(); + RuleId = input.ReadString(); break; } } @@ -64188,21 +65069,21 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class RecordWorkerHeartbeatResponse : pb::IMessage + public sealed partial class DeleteWorkflowRuleResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RecordWorkerHeartbeatResponse()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteWorkflowRuleResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[179]; } + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[181]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -64213,7 +65094,7 @@ public sealed partial class RecordWorkerHeartbeatResponse : pb::IMessage + public sealed partial class ListWorkflowRulesRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListWorkersRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListWorkflowRulesRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[180]; } + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[182]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -64365,7 +65246,7 @@ public sealed partial class ListWorkersRequest : pb::IMessageField number for the "namespace" field. @@ -64399,20 +65278,8 @@ public string Namespace { } } - /// Field number for the "page_size" field. - public const int PageSizeFieldNumber = 2; - private int pageSize_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int PageSize { - get { return pageSize_; } - set { - pageSize_ = value; - } - } - /// Field number for the "next_page_token" field. - public const int NextPageTokenFieldNumber = 3; + public const int NextPageTokenFieldNumber = 2; private pb::ByteString nextPageToken_ = pb::ByteString.Empty; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -64423,41 +65290,15 @@ public int PageSize { } } - /// Field number for the "query" field. - public const int QueryFieldNumber = 4; - private string query_ = ""; - /// - /// `query` in ListWorkers is used to filter workers based on worker attributes. - /// Supported attributes: - ///* WorkerInstanceKey - ///* WorkerIdentity - ///* HostName - ///* TaskQueue - ///* DeploymentName - ///* BuildId - ///* SdkName - ///* SdkVersion - ///* StartTime - ///* Status - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Query { - get { return query_; } - set { - query_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as ListWorkersRequest); + return Equals(other as ListWorkflowRulesRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ListWorkersRequest other) { + public bool Equals(ListWorkflowRulesRequest other) { if (ReferenceEquals(other, null)) { return false; } @@ -64465,9 +65306,7 @@ public bool Equals(ListWorkersRequest other) { return true; } if (Namespace != other.Namespace) return false; - if (PageSize != other.PageSize) return false; if (NextPageToken != other.NextPageToken) return false; - if (Query != other.Query) return false; return Equals(_unknownFields, other._unknownFields); } @@ -64476,9 +65315,7 @@ public bool Equals(ListWorkersRequest other) { public override int GetHashCode() { int hash = 1; if (Namespace.Length != 0) hash ^= Namespace.GetHashCode(); - if (PageSize != 0) hash ^= PageSize.GetHashCode(); if (NextPageToken.Length != 0) hash ^= NextPageToken.GetHashCode(); - if (Query.Length != 0) hash ^= Query.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -64501,18 +65338,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(Namespace); } - if (PageSize != 0) { - output.WriteRawTag(16); - output.WriteInt32(PageSize); - } if (NextPageToken.Length != 0) { - output.WriteRawTag(26); + output.WriteRawTag(18); output.WriteBytes(NextPageToken); } - if (Query.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Query); - } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -64527,18 +65356,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(Namespace); } - if (PageSize != 0) { - output.WriteRawTag(16); - output.WriteInt32(PageSize); - } if (NextPageToken.Length != 0) { - output.WriteRawTag(26); + output.WriteRawTag(18); output.WriteBytes(NextPageToken); } - if (Query.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Query); - } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -64552,15 +65373,9 @@ public int CalculateSize() { if (Namespace.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Namespace); } - if (PageSize != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(PageSize); - } if (NextPageToken.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeBytesSize(NextPageToken); } - if (Query.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Query); - } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -64569,22 +65384,16 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ListWorkersRequest other) { + public void MergeFrom(ListWorkflowRulesRequest other) { if (other == null) { return; } if (other.Namespace.Length != 0) { Namespace = other.Namespace; } - if (other.PageSize != 0) { - PageSize = other.PageSize; - } if (other.NextPageToken.Length != 0) { NextPageToken = other.NextPageToken; } - if (other.Query.Length != 0) { - Query = other.Query; - } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -64604,18 +65413,10 @@ public void MergeFrom(pb::CodedInputStream input) { Namespace = input.ReadString(); break; } - case 16: { - PageSize = input.ReadInt32(); - break; - } - case 26: { + case 18: { NextPageToken = input.ReadBytes(); break; } - case 34: { - Query = input.ReadString(); - break; - } } } #endif @@ -64635,18 +65436,10 @@ public void MergeFrom(pb::CodedInputStream input) { Namespace = input.ReadString(); break; } - case 16: { - PageSize = input.ReadInt32(); - break; - } - case 26: { + case 18: { NextPageToken = input.ReadBytes(); break; } - case 34: { - Query = input.ReadString(); - break; - } } } } @@ -64654,21 +65447,21 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class ListWorkersResponse : pb::IMessage + public sealed partial class ListWorkflowRulesResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListWorkersResponse()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListWorkflowRulesResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[181]; } + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[183]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -64679,7 +65472,7 @@ public sealed partial class ListWorkersResponse : pb::IMessageField number for the "workers_info" field. - public const int WorkersInfoFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_workersInfo_codec - = pb::FieldCodec.ForMessage(10, global::Temporalio.Api.Worker.V1.WorkerInfo.Parser); - private readonly pbc::RepeatedField workersInfo_ = new pbc::RepeatedField(); - /// - /// Deprecated: Use workers instead. This field returns full WorkerInfo which - /// includes expensive runtime metrics. We will stop populating this field in the future. - /// - [global::System.ObsoleteAttribute] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField WorkersInfo { - get { return workersInfo_; } + public ListWorkflowRulesResponse Clone() { + return new ListWorkflowRulesResponse(this); } - /// Field number for the "workers" field. - public const int WorkersFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_workers_codec - = pb::FieldCodec.ForMessage(26, global::Temporalio.Api.Worker.V1.WorkerListInfo.Parser); - private readonly pbc::RepeatedField workers_ = new pbc::RepeatedField(); - /// - /// Limited worker information. - /// + /// Field number for the "rules" field. + public const int RulesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_rules_codec + = pb::FieldCodec.ForMessage(10, global::Temporalio.Api.Rules.V1.WorkflowRule.Parser); + private readonly pbc::RepeatedField rules_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Workers { - get { return workers_; } + public pbc::RepeatedField Rules { + get { return rules_; } } /// Field number for the "next_page_token" field. public const int NextPageTokenFieldNumber = 2; private pb::ByteString nextPageToken_ = pb::ByteString.Empty; - /// - /// Next page token - /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pb::ByteString NextPageToken { @@ -64748,20 +65518,19 @@ public ListWorkersResponse Clone() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as ListWorkersResponse); + return Equals(other as ListWorkflowRulesResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ListWorkersResponse other) { + public bool Equals(ListWorkflowRulesResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if(!workersInfo_.Equals(other.workersInfo_)) return false; - if(!workers_.Equals(other.workers_)) return false; + if(!rules_.Equals(other.rules_)) return false; if (NextPageToken != other.NextPageToken) return false; return Equals(_unknownFields, other._unknownFields); } @@ -64770,8 +65539,7 @@ public bool Equals(ListWorkersResponse other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - hash ^= workersInfo_.GetHashCode(); - hash ^= workers_.GetHashCode(); + hash ^= rules_.GetHashCode(); if (NextPageToken.Length != 0) hash ^= NextPageToken.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); @@ -64791,12 +65559,11 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - workersInfo_.WriteTo(output, _repeated_workersInfo_codec); + rules_.WriteTo(output, _repeated_rules_codec); if (NextPageToken.Length != 0) { output.WriteRawTag(18); output.WriteBytes(NextPageToken); } - workers_.WriteTo(output, _repeated_workers_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -64807,12 +65574,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - workersInfo_.WriteTo(ref output, _repeated_workersInfo_codec); + rules_.WriteTo(ref output, _repeated_rules_codec); if (NextPageToken.Length != 0) { output.WriteRawTag(18); output.WriteBytes(NextPageToken); } - workers_.WriteTo(ref output, _repeated_workers_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -64823,8 +65589,7 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - size += workersInfo_.CalculateSize(_repeated_workersInfo_codec); - size += workers_.CalculateSize(_repeated_workers_codec); + size += rules_.CalculateSize(_repeated_rules_codec); if (NextPageToken.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeBytesSize(NextPageToken); } @@ -64836,12 +65601,11 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ListWorkersResponse other) { + public void MergeFrom(ListWorkflowRulesResponse other) { if (other == null) { return; } - workersInfo_.Add(other.workersInfo_); - workers_.Add(other.workers_); + rules_.Add(other.rules_); if (other.NextPageToken.Length != 0) { NextPageToken = other.NextPageToken; } @@ -64861,17 +65625,13 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - workersInfo_.AddEntriesFrom(input, _repeated_workersInfo_codec); + rules_.AddEntriesFrom(input, _repeated_rules_codec); break; } case 18: { NextPageToken = input.ReadBytes(); break; } - case 26: { - workers_.AddEntriesFrom(input, _repeated_workers_codec); - break; - } } } #endif @@ -64888,17 +65648,13 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - workersInfo_.AddEntriesFrom(ref input, _repeated_workersInfo_codec); + rules_.AddEntriesFrom(ref input, _repeated_rules_codec); break; } case 18: { NextPageToken = input.ReadBytes(); break; } - case 26: { - workers_.AddEntriesFrom(ref input, _repeated_workers_codec); - break; - } } } } @@ -64906,21 +65662,21 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class UpdateTaskQueueConfigRequest : pb::IMessage + public sealed partial class TriggerWorkflowRuleRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateTaskQueueConfigRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TriggerWorkflowRuleRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[182]; } + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[184]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -64931,7 +65687,7 @@ public sealed partial class UpdateTaskQueueConfigRequest : pb::IMessageField number for the "namespace" field. @@ -64969,120 +65729,107 @@ public string Namespace { } } - /// Field number for the "identity" field. - public const int IdentityFieldNumber = 2; - private string identity_ = ""; + /// Field number for the "execution" field. + public const int ExecutionFieldNumber = 2; + private global::Temporalio.Api.Common.V1.WorkflowExecution execution_; + /// + /// Execution info of the workflow which scheduled this activity + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Identity { - get { return identity_; } + public global::Temporalio.Api.Common.V1.WorkflowExecution Execution { + get { return execution_; } set { - identity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + execution_ = value; } } - /// Field number for the "task_queue" field. - public const int TaskQueueFieldNumber = 3; - private string taskQueue_ = ""; - /// - /// Selects the task queue to update. - /// + /// Field number for the "id" field. + public const int IdFieldNumber = 4; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TaskQueue { - get { return taskQueue_; } + public string Id { + get { return HasId ? (string) rule_ : ""; } set { - taskQueue_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + rule_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + ruleCase_ = RuleOneofCase.Id; } } - - /// Field number for the "task_queue_type" field. - public const int TaskQueueTypeFieldNumber = 4; - private global::Temporalio.Api.Enums.V1.TaskQueueType taskQueueType_ = global::Temporalio.Api.Enums.V1.TaskQueueType.Unspecified; + /// Gets whether the "id" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Temporalio.Api.Enums.V1.TaskQueueType TaskQueueType { - get { return taskQueueType_; } - set { - taskQueueType_ = value; + public bool HasId { + get { return ruleCase_ == RuleOneofCase.Id; } + } + /// Clears the value of the oneof if it's currently set to "id" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + if (HasId) { + ClearRule(); } } - /// Field number for the "update_queue_rate_limit" field. - public const int UpdateQueueRateLimitFieldNumber = 5; - private global::Temporalio.Api.WorkflowService.V1.UpdateTaskQueueConfigRequest.Types.RateLimitUpdate updateQueueRateLimit_; + /// Field number for the "spec" field. + public const int SpecFieldNumber = 5; /// - /// 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. + /// Note: Rule ID and expiration date are not used in the trigger request. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Temporalio.Api.WorkflowService.V1.UpdateTaskQueueConfigRequest.Types.RateLimitUpdate UpdateQueueRateLimit { - get { return updateQueueRateLimit_; } + public global::Temporalio.Api.Rules.V1.WorkflowRuleSpec Spec { + get { return ruleCase_ == RuleOneofCase.Spec ? (global::Temporalio.Api.Rules.V1.WorkflowRuleSpec) rule_ : null; } set { - updateQueueRateLimit_ = value; + rule_ = value; + ruleCase_ = value == null ? RuleOneofCase.None : RuleOneofCase.Spec; } } - /// Field number for the "update_fairness_key_rate_limit_default" field. - public const int UpdateFairnessKeyRateLimitDefaultFieldNumber = 6; - private global::Temporalio.Api.WorkflowService.V1.UpdateTaskQueueConfigRequest.Types.RateLimitUpdate updateFairnessKeyRateLimitDefault_; + /// Field number for the "identity" field. + public const int IdentityFieldNumber = 3; + private string identity_ = ""; /// - /// 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. + /// The identity of the client who initiated this request /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Temporalio.Api.WorkflowService.V1.UpdateTaskQueueConfigRequest.Types.RateLimitUpdate UpdateFairnessKeyRateLimitDefault { - get { return updateFairnessKeyRateLimitDefault_; } + public string Identity { + get { return identity_; } set { - updateFairnessKeyRateLimitDefault_ = value; + identity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - /// Field number for the "set_fairness_weight_overrides" field. - public const int SetFairnessWeightOverridesFieldNumber = 7; - private static readonly pbc::MapField.Codec _map_setFairnessWeightOverrides_codec - = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForFloat(21, 0F), 58); - private readonly pbc::MapField setFairnessWeightOverrides_ = new pbc::MapField(); - /// - /// 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). - /// + private object rule_; + /// Enum of possible cases for the "rule" oneof. + public enum RuleOneofCase { + None = 0, + Id = 4, + Spec = 5, + } + private RuleOneofCase ruleCase_ = RuleOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::MapField SetFairnessWeightOverrides { - get { return setFairnessWeightOverrides_; } + public RuleOneofCase RuleCase { + get { return ruleCase_; } } - /// Field number for the "unset_fairness_weight_overrides" field. - public const int UnsetFairnessWeightOverridesFieldNumber = 8; - private static readonly pb::FieldCodec _repeated_unsetFairnessWeightOverrides_codec - = pb::FieldCodec.ForString(66); - private readonly pbc::RepeatedField unsetFairnessWeightOverrides_ = new pbc::RepeatedField(); - /// - /// 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. - /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField UnsetFairnessWeightOverrides { - get { return unsetFairnessWeightOverrides_; } + public void ClearRule() { + ruleCase_ = RuleOneofCase.None; + rule_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as UpdateTaskQueueConfigRequest); + return Equals(other as TriggerWorkflowRuleRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UpdateTaskQueueConfigRequest other) { + public bool Equals(TriggerWorkflowRuleRequest other) { if (ReferenceEquals(other, null)) { return false; } @@ -65090,13 +65837,11 @@ public bool Equals(UpdateTaskQueueConfigRequest other) { return true; } if (Namespace != other.Namespace) return false; + if (!object.Equals(Execution, other.Execution)) return false; + if (Id != other.Id) return false; + if (!object.Equals(Spec, other.Spec)) return false; if (Identity != other.Identity) return false; - if (TaskQueue != other.TaskQueue) return false; - if (TaskQueueType != other.TaskQueueType) return false; - if (!object.Equals(UpdateQueueRateLimit, other.UpdateQueueRateLimit)) return false; - if (!object.Equals(UpdateFairnessKeyRateLimitDefault, other.UpdateFairnessKeyRateLimitDefault)) return false; - if (!SetFairnessWeightOverrides.Equals(other.SetFairnessWeightOverrides)) return false; - if(!unsetFairnessWeightOverrides_.Equals(other.unsetFairnessWeightOverrides_)) return false; + if (RuleCase != other.RuleCase) return false; return Equals(_unknownFields, other._unknownFields); } @@ -65105,13 +65850,11 @@ public bool Equals(UpdateTaskQueueConfigRequest other) { public override int GetHashCode() { int hash = 1; if (Namespace.Length != 0) hash ^= Namespace.GetHashCode(); + if (execution_ != null) hash ^= Execution.GetHashCode(); + if (HasId) hash ^= Id.GetHashCode(); + if (ruleCase_ == RuleOneofCase.Spec) hash ^= Spec.GetHashCode(); if (Identity.Length != 0) hash ^= Identity.GetHashCode(); - if (TaskQueue.Length != 0) hash ^= TaskQueue.GetHashCode(); - if (TaskQueueType != global::Temporalio.Api.Enums.V1.TaskQueueType.Unspecified) hash ^= TaskQueueType.GetHashCode(); - if (updateQueueRateLimit_ != null) hash ^= UpdateQueueRateLimit.GetHashCode(); - if (updateFairnessKeyRateLimitDefault_ != null) hash ^= UpdateFairnessKeyRateLimitDefault.GetHashCode(); - hash ^= SetFairnessWeightOverrides.GetHashCode(); - hash ^= unsetFairnessWeightOverrides_.GetHashCode(); + hash ^= (int) ruleCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -65134,28 +65877,22 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(Namespace); } - if (Identity.Length != 0) { + if (execution_ != null) { output.WriteRawTag(18); - output.WriteString(Identity); + output.WriteMessage(Execution); } - if (TaskQueue.Length != 0) { + if (Identity.Length != 0) { output.WriteRawTag(26); - output.WriteString(TaskQueue); + output.WriteString(Identity); } - if (TaskQueueType != global::Temporalio.Api.Enums.V1.TaskQueueType.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) TaskQueueType); + if (HasId) { + output.WriteRawTag(34); + output.WriteString(Id); } - if (updateQueueRateLimit_ != null) { + if (ruleCase_ == RuleOneofCase.Spec) { output.WriteRawTag(42); - output.WriteMessage(UpdateQueueRateLimit); - } - if (updateFairnessKeyRateLimitDefault_ != null) { - output.WriteRawTag(50); - output.WriteMessage(UpdateFairnessKeyRateLimitDefault); + output.WriteMessage(Spec); } - setFairnessWeightOverrides_.WriteTo(output, _map_setFairnessWeightOverrides_codec); - unsetFairnessWeightOverrides_.WriteTo(output, _repeated_unsetFairnessWeightOverrides_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -65170,28 +65907,22 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(Namespace); } - if (Identity.Length != 0) { + if (execution_ != null) { output.WriteRawTag(18); - output.WriteString(Identity); + output.WriteMessage(Execution); } - if (TaskQueue.Length != 0) { + if (Identity.Length != 0) { output.WriteRawTag(26); - output.WriteString(TaskQueue); + output.WriteString(Identity); } - if (TaskQueueType != global::Temporalio.Api.Enums.V1.TaskQueueType.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) TaskQueueType); + if (HasId) { + output.WriteRawTag(34); + output.WriteString(Id); } - if (updateQueueRateLimit_ != null) { + if (ruleCase_ == RuleOneofCase.Spec) { output.WriteRawTag(42); - output.WriteMessage(UpdateQueueRateLimit); - } - if (updateFairnessKeyRateLimitDefault_ != null) { - output.WriteRawTag(50); - output.WriteMessage(UpdateFairnessKeyRateLimitDefault); + output.WriteMessage(Spec); } - setFairnessWeightOverrides_.WriteTo(ref output, _map_setFairnessWeightOverrides_codec); - unsetFairnessWeightOverrides_.WriteTo(ref output, _repeated_unsetFairnessWeightOverrides_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -65205,23 +65936,18 @@ public int CalculateSize() { if (Namespace.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Namespace); } - if (Identity.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Identity); - } - if (TaskQueue.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TaskQueue); + if (execution_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Execution); } - if (TaskQueueType != global::Temporalio.Api.Enums.V1.TaskQueueType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) TaskQueueType); + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); } - if (updateQueueRateLimit_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateQueueRateLimit); + if (ruleCase_ == RuleOneofCase.Spec) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Spec); } - if (updateFairnessKeyRateLimitDefault_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateFairnessKeyRateLimitDefault); + if (Identity.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Identity); } - size += setFairnessWeightOverrides_.CalculateSize(_map_setFairnessWeightOverrides_codec); - size += unsetFairnessWeightOverrides_.CalculateSize(_repeated_unsetFairnessWeightOverrides_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -65230,36 +65956,34 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UpdateTaskQueueConfigRequest other) { + public void MergeFrom(TriggerWorkflowRuleRequest other) { if (other == null) { return; } if (other.Namespace.Length != 0) { Namespace = other.Namespace; } + if (other.execution_ != null) { + if (execution_ == null) { + Execution = new global::Temporalio.Api.Common.V1.WorkflowExecution(); + } + Execution.MergeFrom(other.Execution); + } if (other.Identity.Length != 0) { Identity = other.Identity; } - if (other.TaskQueue.Length != 0) { - TaskQueue = other.TaskQueue; - } - if (other.TaskQueueType != global::Temporalio.Api.Enums.V1.TaskQueueType.Unspecified) { - TaskQueueType = other.TaskQueueType; - } - if (other.updateQueueRateLimit_ != null) { - if (updateQueueRateLimit_ == null) { - UpdateQueueRateLimit = new global::Temporalio.Api.WorkflowService.V1.UpdateTaskQueueConfigRequest.Types.RateLimitUpdate(); - } - UpdateQueueRateLimit.MergeFrom(other.UpdateQueueRateLimit); - } - if (other.updateFairnessKeyRateLimitDefault_ != null) { - if (updateFairnessKeyRateLimitDefault_ == null) { - UpdateFairnessKeyRateLimitDefault = new global::Temporalio.Api.WorkflowService.V1.UpdateTaskQueueConfigRequest.Types.RateLimitUpdate(); - } - UpdateFairnessKeyRateLimitDefault.MergeFrom(other.UpdateFairnessKeyRateLimitDefault); + switch (other.RuleCase) { + case RuleOneofCase.Id: + Id = other.Id; + break; + case RuleOneofCase.Spec: + if (Spec == null) { + Spec = new global::Temporalio.Api.Rules.V1.WorkflowRuleSpec(); + } + Spec.MergeFrom(other.Spec); + break; } - setFairnessWeightOverrides_.MergeFrom(other.setFairnessWeightOverrides_); - unsetFairnessWeightOverrides_.Add(other.unsetFairnessWeightOverrides_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -65280,37 +66004,27 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - Identity = input.ReadString(); + if (execution_ == null) { + Execution = new global::Temporalio.Api.Common.V1.WorkflowExecution(); + } + input.ReadMessage(Execution); break; } case 26: { - TaskQueue = input.ReadString(); + Identity = input.ReadString(); break; } - case 32: { - TaskQueueType = (global::Temporalio.Api.Enums.V1.TaskQueueType) input.ReadEnum(); + case 34: { + Id = input.ReadString(); break; } case 42: { - if (updateQueueRateLimit_ == null) { - UpdateQueueRateLimit = new global::Temporalio.Api.WorkflowService.V1.UpdateTaskQueueConfigRequest.Types.RateLimitUpdate(); + global::Temporalio.Api.Rules.V1.WorkflowRuleSpec subBuilder = new global::Temporalio.Api.Rules.V1.WorkflowRuleSpec(); + if (ruleCase_ == RuleOneofCase.Spec) { + subBuilder.MergeFrom(Spec); } - input.ReadMessage(UpdateQueueRateLimit); - break; - } - case 50: { - if (updateFairnessKeyRateLimitDefault_ == null) { - UpdateFairnessKeyRateLimitDefault = new global::Temporalio.Api.WorkflowService.V1.UpdateTaskQueueConfigRequest.Types.RateLimitUpdate(); - } - input.ReadMessage(UpdateFairnessKeyRateLimitDefault); - break; - } - case 58: { - setFairnessWeightOverrides_.AddEntriesFrom(input, _map_setFairnessWeightOverrides_codec); - break; - } - case 66: { - unsetFairnessWeightOverrides_.AddEntriesFrom(input, _repeated_unsetFairnessWeightOverrides_codec); + input.ReadMessage(subBuilder); + Spec = subBuilder; break; } } @@ -65333,37 +66047,27 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - Identity = input.ReadString(); + if (execution_ == null) { + Execution = new global::Temporalio.Api.Common.V1.WorkflowExecution(); + } + input.ReadMessage(Execution); break; } case 26: { - TaskQueue = input.ReadString(); + Identity = input.ReadString(); break; } - case 32: { - TaskQueueType = (global::Temporalio.Api.Enums.V1.TaskQueueType) input.ReadEnum(); + case 34: { + Id = input.ReadString(); break; } case 42: { - if (updateQueueRateLimit_ == null) { - UpdateQueueRateLimit = new global::Temporalio.Api.WorkflowService.V1.UpdateTaskQueueConfigRequest.Types.RateLimitUpdate(); - } - input.ReadMessage(UpdateQueueRateLimit); - break; - } - case 50: { - if (updateFairnessKeyRateLimitDefault_ == null) { - UpdateFairnessKeyRateLimitDefault = new global::Temporalio.Api.WorkflowService.V1.UpdateTaskQueueConfigRequest.Types.RateLimitUpdate(); + global::Temporalio.Api.Rules.V1.WorkflowRuleSpec subBuilder = new global::Temporalio.Api.Rules.V1.WorkflowRuleSpec(); + if (ruleCase_ == RuleOneofCase.Spec) { + subBuilder.MergeFrom(Spec); } - input.ReadMessage(UpdateFairnessKeyRateLimitDefault); - break; - } - case 58: { - setFairnessWeightOverrides_.AddEntriesFrom(ref input, _map_setFairnessWeightOverrides_codec); - break; - } - case 66: { - unsetFairnessWeightOverrides_.AddEntriesFrom(ref input, _repeated_unsetFairnessWeightOverrides_codec); + input.ReadMessage(subBuilder); + Spec = subBuilder; break; } } @@ -65371,272 +66075,23 @@ public void MergeFrom(pb::CodedInputStream input) { } #endif - #region Nested types - /// Container for nested types declared in the UpdateTaskQueueConfigRequest message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - public sealed partial class RateLimitUpdate : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RateLimitUpdate()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.WorkflowService.V1.UpdateTaskQueueConfigRequest.Descriptor.NestedTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RateLimitUpdate() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RateLimitUpdate(RateLimitUpdate other) : this() { - rateLimit_ = other.rateLimit_ != null ? other.rateLimit_.Clone() : null; - reason_ = other.reason_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RateLimitUpdate Clone() { - return new RateLimitUpdate(this); - } - - /// Field number for the "rate_limit" field. - public const int RateLimitFieldNumber = 1; - private global::Temporalio.Api.TaskQueue.V1.RateLimit rateLimit_; - /// - /// Rate Limit to be updated - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Temporalio.Api.TaskQueue.V1.RateLimit RateLimit { - get { return rateLimit_; } - set { - rateLimit_ = value; - } - } - - /// Field number for the "reason" field. - public const int ReasonFieldNumber = 2; - private string reason_ = ""; - /// - /// Reason for why the rate limit was set. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Reason { - get { return reason_; } - set { - reason_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as RateLimitUpdate); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(RateLimitUpdate other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(RateLimit, other.RateLimit)) return false; - if (Reason != other.Reason) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (rateLimit_ != null) hash ^= RateLimit.GetHashCode(); - if (Reason.Length != 0) hash ^= Reason.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (rateLimit_ != null) { - output.WriteRawTag(10); - output.WriteMessage(RateLimit); - } - if (Reason.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Reason); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (rateLimit_ != null) { - output.WriteRawTag(10); - output.WriteMessage(RateLimit); - } - if (Reason.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Reason); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (rateLimit_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(RateLimit); - } - if (Reason.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Reason); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(RateLimitUpdate other) { - if (other == null) { - return; - } - if (other.rateLimit_ != null) { - if (rateLimit_ == null) { - RateLimit = new global::Temporalio.Api.TaskQueue.V1.RateLimit(); - } - RateLimit.MergeFrom(other.RateLimit); - } - if (other.Reason.Length != 0) { - Reason = other.Reason; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (rateLimit_ == null) { - RateLimit = new global::Temporalio.Api.TaskQueue.V1.RateLimit(); - } - input.ReadMessage(RateLimit); - break; - } - case 18: { - Reason = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (rateLimit_ == null) { - RateLimit = new global::Temporalio.Api.TaskQueue.V1.RateLimit(); - } - input.ReadMessage(RateLimit); - break; - } - case 18: { - Reason = input.ReadString(); - break; - } - } - } - } - #endif - - } - - } - #endregion - } - public sealed partial class UpdateTaskQueueConfigResponse : pb::IMessage + public sealed partial class TriggerWorkflowRuleResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateTaskQueueConfigResponse()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TriggerWorkflowRuleResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[183]; } + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[185]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -65647,7 +66102,7 @@ public sealed partial class UpdateTaskQueueConfigResponse : pb::IMessageField number for the "config" field. - public const int ConfigFieldNumber = 1; - private global::Temporalio.Api.TaskQueue.V1.TaskQueueConfig config_; + /// Field number for the "applied" field. + public const int AppliedFieldNumber = 1; + private bool applied_; + /// + /// True is the rule was applied, based on the rule conditions (predicate/visibility_query). + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Temporalio.Api.TaskQueue.V1.TaskQueueConfig Config { - get { return config_; } + public bool Applied { + get { return applied_; } set { - config_ = value; + applied_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as UpdateTaskQueueConfigResponse); + return Equals(other as TriggerWorkflowRuleResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UpdateTaskQueueConfigResponse other) { + public bool Equals(TriggerWorkflowRuleResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(Config, other.Config)) return false; + if (Applied != other.Applied) return false; return Equals(_unknownFields, other._unknownFields); } @@ -65701,7 +66159,7 @@ public bool Equals(UpdateTaskQueueConfigResponse other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (config_ != null) hash ^= Config.GetHashCode(); + if (Applied != false) hash ^= Applied.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -65720,9 +66178,9 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (config_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Config); + if (Applied != false) { + output.WriteRawTag(8); + output.WriteBool(Applied); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -65734,9 +66192,9 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (config_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Config); + if (Applied != false) { + output.WriteRawTag(8); + output.WriteBool(Applied); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -65748,8 +66206,8 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (config_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Config); + if (Applied != false) { + size += 1 + 1; } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -65759,15 +66217,12 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UpdateTaskQueueConfigResponse other) { + public void MergeFrom(TriggerWorkflowRuleResponse other) { if (other == null) { return; } - if (other.config_ != null) { - if (config_ == null) { - Config = new global::Temporalio.Api.TaskQueue.V1.TaskQueueConfig(); - } - Config.MergeFrom(other.Config); + if (other.Applied != false) { + Applied = other.Applied; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -65784,11 +66239,8 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { - if (config_ == null) { - Config = new global::Temporalio.Api.TaskQueue.V1.TaskQueueConfig(); - } - input.ReadMessage(Config); + case 8: { + Applied = input.ReadBool(); break; } } @@ -65806,11 +66258,8 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - if (config_ == null) { - Config = new global::Temporalio.Api.TaskQueue.V1.TaskQueueConfig(); - } - input.ReadMessage(Config); + case 8: { + Applied = input.ReadBool(); break; } } @@ -65820,21 +66269,21 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class FetchWorkerConfigRequest : pb::IMessage + public sealed partial class RecordWorkerHeartbeatRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FetchWorkerConfigRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RecordWorkerHeartbeatRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[184]; } + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[186]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -65845,7 +66294,7 @@ public sealed partial class FetchWorkerConfigRequest : pb::IMessageField number for the "namespace" field. @@ -65898,39 +66346,19 @@ public string Identity { } } - /// Field number for the "reason" field. - public const int ReasonFieldNumber = 3; - private string reason_ = ""; - /// - /// Reason for sending worker command, can be used for audit purpose. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Reason { - get { return reason_; } - set { - reason_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "selector" field. - public const int SelectorFieldNumber = 6; - private global::Temporalio.Api.Common.V1.WorkerSelector selector_; - /// - /// Defines which workers should receive this command. - /// only single worker is supported at this time. - /// + /// Field number for the "worker_heartbeat" field. + public const int WorkerHeartbeatFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_workerHeartbeat_codec + = pb::FieldCodec.ForMessage(26, global::Temporalio.Api.Worker.V1.WorkerHeartbeat.Parser); + private readonly pbc::RepeatedField workerHeartbeat_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Temporalio.Api.Common.V1.WorkerSelector Selector { - get { return selector_; } - set { - selector_ = value; - } + public pbc::RepeatedField WorkerHeartbeat { + get { return workerHeartbeat_; } } /// Field number for the "resource_id" field. - public const int ResourceIdFieldNumber = 7; + public const int ResourceIdFieldNumber = 4; private string resourceId_ = ""; /// /// Resource ID for routing. Contains the worker grouping key. @@ -65947,12 +66375,12 @@ public string ResourceId { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as FetchWorkerConfigRequest); + return Equals(other as RecordWorkerHeartbeatRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FetchWorkerConfigRequest other) { + public bool Equals(RecordWorkerHeartbeatRequest other) { if (ReferenceEquals(other, null)) { return false; } @@ -65961,8 +66389,7 @@ public bool Equals(FetchWorkerConfigRequest other) { } if (Namespace != other.Namespace) return false; if (Identity != other.Identity) return false; - if (Reason != other.Reason) return false; - if (!object.Equals(Selector, other.Selector)) return false; + if(!workerHeartbeat_.Equals(other.workerHeartbeat_)) return false; if (ResourceId != other.ResourceId) return false; return Equals(_unknownFields, other._unknownFields); } @@ -65973,8 +66400,7 @@ public override int GetHashCode() { int hash = 1; if (Namespace.Length != 0) hash ^= Namespace.GetHashCode(); if (Identity.Length != 0) hash ^= Identity.GetHashCode(); - if (Reason.Length != 0) hash ^= Reason.GetHashCode(); - if (selector_ != null) hash ^= Selector.GetHashCode(); + hash ^= workerHeartbeat_.GetHashCode(); if (ResourceId.Length != 0) hash ^= ResourceId.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); @@ -66002,16 +66428,9 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(18); output.WriteString(Identity); } - if (Reason.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Reason); - } - if (selector_ != null) { - output.WriteRawTag(50); - output.WriteMessage(Selector); - } + workerHeartbeat_.WriteTo(output, _repeated_workerHeartbeat_codec); if (ResourceId.Length != 0) { - output.WriteRawTag(58); + output.WriteRawTag(34); output.WriteString(ResourceId); } if (_unknownFields != null) { @@ -66032,16 +66451,9 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(18); output.WriteString(Identity); } - if (Reason.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Reason); - } - if (selector_ != null) { - output.WriteRawTag(50); - output.WriteMessage(Selector); - } + workerHeartbeat_.WriteTo(ref output, _repeated_workerHeartbeat_codec); if (ResourceId.Length != 0) { - output.WriteRawTag(58); + output.WriteRawTag(34); output.WriteString(ResourceId); } if (_unknownFields != null) { @@ -66060,12 +66472,7 @@ public int CalculateSize() { if (Identity.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Identity); } - if (Reason.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Reason); - } - if (selector_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Selector); - } + size += workerHeartbeat_.CalculateSize(_repeated_workerHeartbeat_codec); if (ResourceId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceId); } @@ -66077,7 +66484,7 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FetchWorkerConfigRequest other) { + public void MergeFrom(RecordWorkerHeartbeatRequest other) { if (other == null) { return; } @@ -66087,15 +66494,7 @@ public void MergeFrom(FetchWorkerConfigRequest other) { if (other.Identity.Length != 0) { Identity = other.Identity; } - if (other.Reason.Length != 0) { - Reason = other.Reason; - } - if (other.selector_ != null) { - if (selector_ == null) { - Selector = new global::Temporalio.Api.Common.V1.WorkerSelector(); - } - Selector.MergeFrom(other.Selector); - } + workerHeartbeat_.Add(other.workerHeartbeat_); if (other.ResourceId.Length != 0) { ResourceId = other.ResourceId; } @@ -66123,17 +66522,10 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 26: { - Reason = input.ReadString(); - break; - } - case 50: { - if (selector_ == null) { - Selector = new global::Temporalio.Api.Common.V1.WorkerSelector(); - } - input.ReadMessage(Selector); + workerHeartbeat_.AddEntriesFrom(input, _repeated_workerHeartbeat_codec); break; } - case 58: { + case 34: { ResourceId = input.ReadString(); break; } @@ -66161,17 +66553,10 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 26: { - Reason = input.ReadString(); - break; - } - case 50: { - if (selector_ == null) { - Selector = new global::Temporalio.Api.Common.V1.WorkerSelector(); - } - input.ReadMessage(Selector); + workerHeartbeat_.AddEntriesFrom(ref input, _repeated_workerHeartbeat_codec); break; } - case 58: { + case 34: { ResourceId = input.ReadString(); break; } @@ -66182,21 +66567,21 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class FetchWorkerConfigResponse : pb::IMessage + public sealed partial class RecordWorkerHeartbeatResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FetchWorkerConfigResponse()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RecordWorkerHeartbeatResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[185]; } + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[187]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -66207,7 +66592,7 @@ public sealed partial class FetchWorkerConfigResponse : pb::IMessageField number for the "worker_config" field. - public const int WorkerConfigFieldNumber = 1; - private global::Temporalio.Api.Sdk.V1.WorkerConfig workerConfig_; - /// - /// The worker configuration. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Temporalio.Api.Sdk.V1.WorkerConfig WorkerConfig { - get { return workerConfig_; } - set { - workerConfig_ = value; - } + public RecordWorkerHeartbeatResponse Clone() { + return new RecordWorkerHeartbeatResponse(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as FetchWorkerConfigResponse); + return Equals(other as RecordWorkerHeartbeatResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FetchWorkerConfigResponse other) { + public bool Equals(RecordWorkerHeartbeatResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(WorkerConfig, other.WorkerConfig)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -66264,7 +66632,6 @@ public bool Equals(FetchWorkerConfigResponse other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (workerConfig_ != null) hash ^= WorkerConfig.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -66283,10 +66650,6 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (workerConfig_ != null) { - output.WriteRawTag(10); - output.WriteMessage(WorkerConfig); - } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -66297,10 +66660,6 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (workerConfig_ != null) { - output.WriteRawTag(10); - output.WriteMessage(WorkerConfig); - } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -66311,9 +66670,6 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (workerConfig_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(WorkerConfig); - } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -66322,16 +66678,10 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FetchWorkerConfigResponse other) { + public void MergeFrom(RecordWorkerHeartbeatResponse other) { if (other == null) { return; } - if (other.workerConfig_ != null) { - if (workerConfig_ == null) { - WorkerConfig = new global::Temporalio.Api.Sdk.V1.WorkerConfig(); - } - WorkerConfig.MergeFrom(other.WorkerConfig); - } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -66347,13 +66697,6 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { - if (workerConfig_ == null) { - WorkerConfig = new global::Temporalio.Api.Sdk.V1.WorkerConfig(); - } - input.ReadMessage(WorkerConfig); - break; - } } } #endif @@ -66369,13 +66712,6 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - if (workerConfig_ == null) { - WorkerConfig = new global::Temporalio.Api.Sdk.V1.WorkerConfig(); - } - input.ReadMessage(WorkerConfig); - break; - } } } } @@ -66383,21 +66719,21 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class UpdateWorkerConfigRequest : pb::IMessage + public sealed partial class ListWorkersRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateWorkerConfigRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListWorkersRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[186]; } + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[188]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -66408,7 +66744,7 @@ public sealed partial class UpdateWorkerConfigRequest : pb::IMessageField number for the "namespace" field. public const int NamespaceFieldNumber = 1; private string namespace_ = ""; - /// - /// Namespace this worker belongs to. - /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Namespace { @@ -66448,106 +66778,65 @@ public string Namespace { } } - /// Field number for the "identity" field. - public const int IdentityFieldNumber = 2; - private string identity_ = ""; - /// - /// The identity of the client who initiated this request. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Identity { - get { return identity_; } - set { - identity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "reason" field. - public const int ReasonFieldNumber = 3; - private string reason_ = ""; - /// - /// Reason for sending worker command, can be used for audit purpose. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Reason { - get { return reason_; } - set { - reason_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "worker_config" field. - public const int WorkerConfigFieldNumber = 4; - private global::Temporalio.Api.Sdk.V1.WorkerConfig workerConfig_; - /// - /// Partial updates are accepted and controlled by update_mask. - /// The worker configuration to set. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Temporalio.Api.Sdk.V1.WorkerConfig WorkerConfig { - get { return workerConfig_; } - set { - workerConfig_ = value; - } - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 5; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// Controls which fields from `worker_config` will be applied - /// + /// Field number for the "page_size" field. + public const int PageSizeFieldNumber = 2; + private int pageSize_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } + public int PageSize { + get { return pageSize_; } set { - updateMask_ = value; + pageSize_ = value; } } - /// Field number for the "selector" field. - public const int SelectorFieldNumber = 6; - private global::Temporalio.Api.Common.V1.WorkerSelector selector_; - /// - /// Defines which workers should receive this command. - /// + /// Field number for the "next_page_token" field. + public const int NextPageTokenFieldNumber = 3; + private pb::ByteString nextPageToken_ = pb::ByteString.Empty; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Temporalio.Api.Common.V1.WorkerSelector Selector { - get { return selector_; } + public pb::ByteString NextPageToken { + get { return nextPageToken_; } set { - selector_ = value; + nextPageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - /// Field number for the "resource_id" field. - public const int ResourceIdFieldNumber = 7; - private string resourceId_ = ""; + /// Field number for the "query" field. + public const int QueryFieldNumber = 4; + private string query_ = ""; /// - /// Resource ID for routing. Contains the worker grouping key. + /// `query` in ListWorkers is used to filter workers based on worker attributes. + /// Supported attributes: + ///* WorkerInstanceKey + ///* WorkerIdentity + ///* HostName + ///* TaskQueue + ///* DeploymentName + ///* BuildId + ///* SdkName + ///* SdkVersion + ///* StartTime + ///* Status /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceId { - get { return resourceId_; } + public string Query { + get { return query_; } set { - resourceId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + query_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as UpdateWorkerConfigRequest); + return Equals(other as ListWorkersRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UpdateWorkerConfigRequest other) { + public bool Equals(ListWorkersRequest other) { if (ReferenceEquals(other, null)) { return false; } @@ -66555,12 +66844,9 @@ public bool Equals(UpdateWorkerConfigRequest other) { return true; } if (Namespace != other.Namespace) return false; - if (Identity != other.Identity) return false; - if (Reason != other.Reason) return false; - if (!object.Equals(WorkerConfig, other.WorkerConfig)) return false; - if (!object.Equals(UpdateMask, other.UpdateMask)) return false; - if (!object.Equals(Selector, other.Selector)) return false; - if (ResourceId != other.ResourceId) return false; + if (PageSize != other.PageSize) return false; + if (NextPageToken != other.NextPageToken) return false; + if (Query != other.Query) return false; return Equals(_unknownFields, other._unknownFields); } @@ -66569,12 +66855,9 @@ public bool Equals(UpdateWorkerConfigRequest other) { public override int GetHashCode() { int hash = 1; if (Namespace.Length != 0) hash ^= Namespace.GetHashCode(); - if (Identity.Length != 0) hash ^= Identity.GetHashCode(); - if (Reason.Length != 0) hash ^= Reason.GetHashCode(); - if (workerConfig_ != null) hash ^= WorkerConfig.GetHashCode(); - if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); - if (selector_ != null) hash ^= Selector.GetHashCode(); - if (ResourceId.Length != 0) hash ^= ResourceId.GetHashCode(); + if (PageSize != 0) hash ^= PageSize.GetHashCode(); + if (NextPageToken.Length != 0) hash ^= NextPageToken.GetHashCode(); + if (Query.Length != 0) hash ^= Query.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -66597,29 +66880,17 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(Namespace); } - if (Identity.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Identity); + if (PageSize != 0) { + output.WriteRawTag(16); + output.WriteInt32(PageSize); } - if (Reason.Length != 0) { + if (NextPageToken.Length != 0) { output.WriteRawTag(26); - output.WriteString(Reason); + output.WriteBytes(NextPageToken); } - if (workerConfig_ != null) { + if (Query.Length != 0) { output.WriteRawTag(34); - output.WriteMessage(WorkerConfig); - } - if (updateMask_ != null) { - output.WriteRawTag(42); - output.WriteMessage(UpdateMask); - } - if (selector_ != null) { - output.WriteRawTag(50); - output.WriteMessage(Selector); - } - if (ResourceId.Length != 0) { - output.WriteRawTag(58); - output.WriteString(ResourceId); + output.WriteString(Query); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -66635,29 +66906,17 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(Namespace); } - if (Identity.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Identity); + if (PageSize != 0) { + output.WriteRawTag(16); + output.WriteInt32(PageSize); } - if (Reason.Length != 0) { + if (NextPageToken.Length != 0) { output.WriteRawTag(26); - output.WriteString(Reason); + output.WriteBytes(NextPageToken); } - if (workerConfig_ != null) { + if (Query.Length != 0) { output.WriteRawTag(34); - output.WriteMessage(WorkerConfig); - } - if (updateMask_ != null) { - output.WriteRawTag(42); - output.WriteMessage(UpdateMask); - } - if (selector_ != null) { - output.WriteRawTag(50); - output.WriteMessage(Selector); - } - if (ResourceId.Length != 0) { - output.WriteRawTag(58); - output.WriteString(ResourceId); + output.WriteString(Query); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -66672,23 +66931,14 @@ public int CalculateSize() { if (Namespace.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Namespace); } - if (Identity.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Identity); - } - if (Reason.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Reason); - } - if (workerConfig_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(WorkerConfig); - } - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); + if (PageSize != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PageSize); } - if (selector_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Selector); + if (NextPageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(NextPageToken); } - if (ResourceId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceId); + if (Query.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Query); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -66698,39 +66948,21 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UpdateWorkerConfigRequest other) { + public void MergeFrom(ListWorkersRequest other) { if (other == null) { return; } if (other.Namespace.Length != 0) { Namespace = other.Namespace; } - if (other.Identity.Length != 0) { - Identity = other.Identity; - } - if (other.Reason.Length != 0) { - Reason = other.Reason; - } - if (other.workerConfig_ != null) { - if (workerConfig_ == null) { - WorkerConfig = new global::Temporalio.Api.Sdk.V1.WorkerConfig(); - } - WorkerConfig.MergeFrom(other.WorkerConfig); - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); + if (other.PageSize != 0) { + PageSize = other.PageSize; } - if (other.selector_ != null) { - if (selector_ == null) { - Selector = new global::Temporalio.Api.Common.V1.WorkerSelector(); - } - Selector.MergeFrom(other.Selector); + if (other.NextPageToken.Length != 0) { + NextPageToken = other.NextPageToken; } - if (other.ResourceId.Length != 0) { - ResourceId = other.ResourceId; + if (other.Query.Length != 0) { + Query = other.Query; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -66751,37 +66983,16 @@ public void MergeFrom(pb::CodedInputStream input) { Namespace = input.ReadString(); break; } - case 18: { - Identity = input.ReadString(); + case 16: { + PageSize = input.ReadInt32(); break; } case 26: { - Reason = input.ReadString(); + NextPageToken = input.ReadBytes(); break; } case 34: { - if (workerConfig_ == null) { - WorkerConfig = new global::Temporalio.Api.Sdk.V1.WorkerConfig(); - } - input.ReadMessage(WorkerConfig); - break; - } - case 42: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - case 50: { - if (selector_ == null) { - Selector = new global::Temporalio.Api.Common.V1.WorkerSelector(); - } - input.ReadMessage(Selector); - break; - } - case 58: { - ResourceId = input.ReadString(); + Query = input.ReadString(); break; } } @@ -66803,37 +67014,16 @@ public void MergeFrom(pb::CodedInputStream input) { Namespace = input.ReadString(); break; } - case 18: { - Identity = input.ReadString(); + case 16: { + PageSize = input.ReadInt32(); break; } case 26: { - Reason = input.ReadString(); + NextPageToken = input.ReadBytes(); break; } case 34: { - if (workerConfig_ == null) { - WorkerConfig = new global::Temporalio.Api.Sdk.V1.WorkerConfig(); - } - input.ReadMessage(WorkerConfig); - break; - } - case 42: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - case 50: { - if (selector_ == null) { - Selector = new global::Temporalio.Api.Common.V1.WorkerSelector(); - } - input.ReadMessage(Selector); - break; - } - case 58: { - ResourceId = input.ReadString(); + Query = input.ReadString(); break; } } @@ -66843,21 +67033,21 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class UpdateWorkerConfigResponse : pb::IMessage + public sealed partial class ListWorkersResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateWorkerConfigResponse()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListWorkersResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[187]; } + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[189]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -66868,7 +67058,7 @@ public sealed partial class UpdateWorkerConfigResponse : pb::IMessageField number for the "worker_config" field. - public const int WorkerConfigFieldNumber = 1; + /// Field number for the "workers_info" field. + public const int WorkersInfoFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_workersInfo_codec + = pb::FieldCodec.ForMessage(10, global::Temporalio.Api.Worker.V1.WorkerInfo.Parser); + private readonly pbc::RepeatedField workersInfo_ = new pbc::RepeatedField(); /// - /// The worker configuration. Will be returned if the command was sent to a single worker. + /// Deprecated: Use workers instead. This field returns full WorkerInfo which + /// includes expensive runtime metrics. We will stop populating this field in the future. /// + [global::System.ObsoleteAttribute] [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Temporalio.Api.Sdk.V1.WorkerConfig WorkerConfig { - get { return responseCase_ == ResponseOneofCase.WorkerConfig ? (global::Temporalio.Api.Sdk.V1.WorkerConfig) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.WorkerConfig; - } + public pbc::RepeatedField WorkersInfo { + get { return workersInfo_; } } - private object response_; - /// Enum of possible cases for the "response" oneof. - public enum ResponseOneofCase { - None = 0, - WorkerConfig = 1, - } - private ResponseOneofCase responseCase_ = ResponseOneofCase.None; + /// Field number for the "workers" field. + public const int WorkersFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_workers_codec + = pb::FieldCodec.ForMessage(26, global::Temporalio.Api.Worker.V1.WorkerListInfo.Parser); + private readonly pbc::RepeatedField workers_ = new pbc::RepeatedField(); + /// + /// Limited worker information. + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ResponseOneofCase ResponseCase { - get { return responseCase_; } + public pbc::RepeatedField Workers { + get { return workers_; } } + /// Field number for the "next_page_token" field. + public const int NextPageTokenFieldNumber = 2; + private pb::ByteString nextPageToken_ = pb::ByteString.Empty; + /// + /// Next page token + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearResponse() { - responseCase_ = ResponseOneofCase.None; - response_ = null; + public pb::ByteString NextPageToken { + get { return nextPageToken_; } + set { + nextPageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as UpdateWorkerConfigResponse); + return Equals(other as ListWorkersResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UpdateWorkerConfigResponse other) { + public bool Equals(ListWorkersResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(WorkerConfig, other.WorkerConfig)) return false; - if (ResponseCase != other.ResponseCase) return false; + if(!workersInfo_.Equals(other.workersInfo_)) return false; + if(!workers_.Equals(other.workers_)) return false; + if (NextPageToken != other.NextPageToken) return false; return Equals(_unknownFields, other._unknownFields); } @@ -66951,8 +67149,9 @@ public bool Equals(UpdateWorkerConfigResponse other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (responseCase_ == ResponseOneofCase.WorkerConfig) hash ^= WorkerConfig.GetHashCode(); - hash ^= (int) responseCase_; + hash ^= workersInfo_.GetHashCode(); + hash ^= workers_.GetHashCode(); + if (NextPageToken.Length != 0) hash ^= NextPageToken.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -66971,10 +67170,12 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (responseCase_ == ResponseOneofCase.WorkerConfig) { - output.WriteRawTag(10); - output.WriteMessage(WorkerConfig); + workersInfo_.WriteTo(output, _repeated_workersInfo_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(NextPageToken); } + workers_.WriteTo(output, _repeated_workers_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -66985,10 +67186,12 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (responseCase_ == ResponseOneofCase.WorkerConfig) { - output.WriteRawTag(10); - output.WriteMessage(WorkerConfig); + workersInfo_.WriteTo(ref output, _repeated_workersInfo_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(NextPageToken); } + workers_.WriteTo(ref output, _repeated_workers_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -66999,8 +67202,10 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (responseCase_ == ResponseOneofCase.WorkerConfig) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(WorkerConfig); + size += workersInfo_.CalculateSize(_repeated_workersInfo_codec); + size += workers_.CalculateSize(_repeated_workers_codec); + if (NextPageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(NextPageToken); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -67010,19 +67215,15 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UpdateWorkerConfigResponse other) { + public void MergeFrom(ListWorkersResponse other) { if (other == null) { return; } - switch (other.ResponseCase) { - case ResponseOneofCase.WorkerConfig: - if (WorkerConfig == null) { - WorkerConfig = new global::Temporalio.Api.Sdk.V1.WorkerConfig(); - } - WorkerConfig.MergeFrom(other.WorkerConfig); - break; + workersInfo_.Add(other.workersInfo_); + workers_.Add(other.workers_); + if (other.NextPageToken.Length != 0) { + NextPageToken = other.NextPageToken; } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -67039,16 +67240,19 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - global::Temporalio.Api.Sdk.V1.WorkerConfig subBuilder = new global::Temporalio.Api.Sdk.V1.WorkerConfig(); - if (responseCase_ == ResponseOneofCase.WorkerConfig) { - subBuilder.MergeFrom(WorkerConfig); - } - input.ReadMessage(subBuilder); - WorkerConfig = subBuilder; + workersInfo_.AddEntriesFrom(input, _repeated_workersInfo_codec); break; } - } - } + case 18: { + NextPageToken = input.ReadBytes(); + break; + } + case 26: { + workers_.AddEntriesFrom(input, _repeated_workers_codec); + break; + } + } + } #endif } @@ -67063,12 +67267,15 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - global::Temporalio.Api.Sdk.V1.WorkerConfig subBuilder = new global::Temporalio.Api.Sdk.V1.WorkerConfig(); - if (responseCase_ == ResponseOneofCase.WorkerConfig) { - subBuilder.MergeFrom(WorkerConfig); - } - input.ReadMessage(subBuilder); - WorkerConfig = subBuilder; + workersInfo_.AddEntriesFrom(ref input, _repeated_workersInfo_codec); + break; + } + case 18: { + NextPageToken = input.ReadBytes(); + break; + } + case 26: { + workers_.AddEntriesFrom(ref input, _repeated_workers_codec); break; } } @@ -67078,21 +67285,21 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class DescribeWorkerRequest : pb::IMessage + public sealed partial class UpdateTaskQueueConfigRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DescribeWorkerRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateTaskQueueConfigRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[188]; } + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[190]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -67103,7 +67310,7 @@ public sealed partial class DescribeWorkerRequest : pb::IMessageField number for the "namespace" field. public const int NamespaceFieldNumber = 1; private string namespace_ = ""; - /// - /// Namespace this worker belongs to. - /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Namespace { @@ -67138,30 +67348,120 @@ public string Namespace { } } - /// Field number for the "worker_instance_key" field. - public const int WorkerInstanceKeyFieldNumber = 2; - private string workerInstanceKey_ = ""; + /// Field number for the "identity" field. + public const int IdentityFieldNumber = 2; + private string identity_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Identity { + get { return identity_; } + set { + identity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "task_queue" field. + public const int TaskQueueFieldNumber = 3; + private string taskQueue_ = ""; /// - /// Worker instance key to describe. + /// Selects the task queue to update. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string WorkerInstanceKey { - get { return workerInstanceKey_; } + public string TaskQueue { + get { return taskQueue_; } set { - workerInstanceKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + taskQueue_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "task_queue_type" field. + public const int TaskQueueTypeFieldNumber = 4; + private global::Temporalio.Api.Enums.V1.TaskQueueType taskQueueType_ = global::Temporalio.Api.Enums.V1.TaskQueueType.Unspecified; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Enums.V1.TaskQueueType TaskQueueType { + get { return taskQueueType_; } + set { + taskQueueType_ = value; + } + } + + /// Field number for the "update_queue_rate_limit" field. + public const int UpdateQueueRateLimitFieldNumber = 5; + private global::Temporalio.Api.WorkflowService.V1.UpdateTaskQueueConfigRequest.Types.RateLimitUpdate updateQueueRateLimit_; + /// + /// 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. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.WorkflowService.V1.UpdateTaskQueueConfigRequest.Types.RateLimitUpdate UpdateQueueRateLimit { + get { return updateQueueRateLimit_; } + set { + updateQueueRateLimit_ = value; + } + } + + /// Field number for the "update_fairness_key_rate_limit_default" field. + public const int UpdateFairnessKeyRateLimitDefaultFieldNumber = 6; + private global::Temporalio.Api.WorkflowService.V1.UpdateTaskQueueConfigRequest.Types.RateLimitUpdate updateFairnessKeyRateLimitDefault_; + /// + /// 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. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.WorkflowService.V1.UpdateTaskQueueConfigRequest.Types.RateLimitUpdate UpdateFairnessKeyRateLimitDefault { + get { return updateFairnessKeyRateLimitDefault_; } + set { + updateFairnessKeyRateLimitDefault_ = value; } } + /// Field number for the "set_fairness_weight_overrides" field. + public const int SetFairnessWeightOverridesFieldNumber = 7; + private static readonly pbc::MapField.Codec _map_setFairnessWeightOverrides_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForFloat(21, 0F), 58); + private readonly pbc::MapField setFairnessWeightOverrides_ = new pbc::MapField(); + /// + /// 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). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField SetFairnessWeightOverrides { + get { return setFairnessWeightOverrides_; } + } + + /// Field number for the "unset_fairness_weight_overrides" field. + public const int UnsetFairnessWeightOverridesFieldNumber = 8; + private static readonly pb::FieldCodec _repeated_unsetFairnessWeightOverrides_codec + = pb::FieldCodec.ForString(66); + private readonly pbc::RepeatedField unsetFairnessWeightOverrides_ = new pbc::RepeatedField(); + /// + /// 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. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField UnsetFairnessWeightOverrides { + get { return unsetFairnessWeightOverrides_; } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as DescribeWorkerRequest); + return Equals(other as UpdateTaskQueueConfigRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DescribeWorkerRequest other) { + public bool Equals(UpdateTaskQueueConfigRequest other) { if (ReferenceEquals(other, null)) { return false; } @@ -67169,7 +67469,13 @@ public bool Equals(DescribeWorkerRequest other) { return true; } if (Namespace != other.Namespace) return false; - if (WorkerInstanceKey != other.WorkerInstanceKey) return false; + if (Identity != other.Identity) return false; + if (TaskQueue != other.TaskQueue) return false; + if (TaskQueueType != other.TaskQueueType) return false; + if (!object.Equals(UpdateQueueRateLimit, other.UpdateQueueRateLimit)) return false; + if (!object.Equals(UpdateFairnessKeyRateLimitDefault, other.UpdateFairnessKeyRateLimitDefault)) return false; + if (!SetFairnessWeightOverrides.Equals(other.SetFairnessWeightOverrides)) return false; + if(!unsetFairnessWeightOverrides_.Equals(other.unsetFairnessWeightOverrides_)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -67178,7 +67484,13 @@ public bool Equals(DescribeWorkerRequest other) { public override int GetHashCode() { int hash = 1; if (Namespace.Length != 0) hash ^= Namespace.GetHashCode(); - if (WorkerInstanceKey.Length != 0) hash ^= WorkerInstanceKey.GetHashCode(); + if (Identity.Length != 0) hash ^= Identity.GetHashCode(); + if (TaskQueue.Length != 0) hash ^= TaskQueue.GetHashCode(); + if (TaskQueueType != global::Temporalio.Api.Enums.V1.TaskQueueType.Unspecified) hash ^= TaskQueueType.GetHashCode(); + if (updateQueueRateLimit_ != null) hash ^= UpdateQueueRateLimit.GetHashCode(); + if (updateFairnessKeyRateLimitDefault_ != null) hash ^= UpdateFairnessKeyRateLimitDefault.GetHashCode(); + hash ^= SetFairnessWeightOverrides.GetHashCode(); + hash ^= unsetFairnessWeightOverrides_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -67201,10 +67513,28 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(Namespace); } - if (WorkerInstanceKey.Length != 0) { + if (Identity.Length != 0) { output.WriteRawTag(18); - output.WriteString(WorkerInstanceKey); + output.WriteString(Identity); + } + if (TaskQueue.Length != 0) { + output.WriteRawTag(26); + output.WriteString(TaskQueue); + } + if (TaskQueueType != global::Temporalio.Api.Enums.V1.TaskQueueType.Unspecified) { + output.WriteRawTag(32); + output.WriteEnum((int) TaskQueueType); + } + if (updateQueueRateLimit_ != null) { + output.WriteRawTag(42); + output.WriteMessage(UpdateQueueRateLimit); } + if (updateFairnessKeyRateLimitDefault_ != null) { + output.WriteRawTag(50); + output.WriteMessage(UpdateFairnessKeyRateLimitDefault); + } + setFairnessWeightOverrides_.WriteTo(output, _map_setFairnessWeightOverrides_codec); + unsetFairnessWeightOverrides_.WriteTo(output, _repeated_unsetFairnessWeightOverrides_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -67219,10 +67549,28 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(Namespace); } - if (WorkerInstanceKey.Length != 0) { + if (Identity.Length != 0) { output.WriteRawTag(18); - output.WriteString(WorkerInstanceKey); + output.WriteString(Identity); + } + if (TaskQueue.Length != 0) { + output.WriteRawTag(26); + output.WriteString(TaskQueue); + } + if (TaskQueueType != global::Temporalio.Api.Enums.V1.TaskQueueType.Unspecified) { + output.WriteRawTag(32); + output.WriteEnum((int) TaskQueueType); + } + if (updateQueueRateLimit_ != null) { + output.WriteRawTag(42); + output.WriteMessage(UpdateQueueRateLimit); + } + if (updateFairnessKeyRateLimitDefault_ != null) { + output.WriteRawTag(50); + output.WriteMessage(UpdateFairnessKeyRateLimitDefault); } + setFairnessWeightOverrides_.WriteTo(ref output, _map_setFairnessWeightOverrides_codec); + unsetFairnessWeightOverrides_.WriteTo(ref output, _repeated_unsetFairnessWeightOverrides_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -67236,9 +67584,23 @@ public int CalculateSize() { if (Namespace.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Namespace); } - if (WorkerInstanceKey.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(WorkerInstanceKey); + if (Identity.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Identity); } + if (TaskQueue.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TaskQueue); + } + if (TaskQueueType != global::Temporalio.Api.Enums.V1.TaskQueueType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) TaskQueueType); + } + if (updateQueueRateLimit_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateQueueRateLimit); + } + if (updateFairnessKeyRateLimitDefault_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateFairnessKeyRateLimitDefault); + } + size += setFairnessWeightOverrides_.CalculateSize(_map_setFairnessWeightOverrides_codec); + size += unsetFairnessWeightOverrides_.CalculateSize(_repeated_unsetFairnessWeightOverrides_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -67247,16 +67609,36 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DescribeWorkerRequest other) { + public void MergeFrom(UpdateTaskQueueConfigRequest other) { if (other == null) { return; } if (other.Namespace.Length != 0) { Namespace = other.Namespace; } - if (other.WorkerInstanceKey.Length != 0) { - WorkerInstanceKey = other.WorkerInstanceKey; + if (other.Identity.Length != 0) { + Identity = other.Identity; + } + if (other.TaskQueue.Length != 0) { + TaskQueue = other.TaskQueue; + } + if (other.TaskQueueType != global::Temporalio.Api.Enums.V1.TaskQueueType.Unspecified) { + TaskQueueType = other.TaskQueueType; + } + if (other.updateQueueRateLimit_ != null) { + if (updateQueueRateLimit_ == null) { + UpdateQueueRateLimit = new global::Temporalio.Api.WorkflowService.V1.UpdateTaskQueueConfigRequest.Types.RateLimitUpdate(); + } + UpdateQueueRateLimit.MergeFrom(other.UpdateQueueRateLimit); } + if (other.updateFairnessKeyRateLimitDefault_ != null) { + if (updateFairnessKeyRateLimitDefault_ == null) { + UpdateFairnessKeyRateLimitDefault = new global::Temporalio.Api.WorkflowService.V1.UpdateTaskQueueConfigRequest.Types.RateLimitUpdate(); + } + UpdateFairnessKeyRateLimitDefault.MergeFrom(other.UpdateFairnessKeyRateLimitDefault); + } + setFairnessWeightOverrides_.MergeFrom(other.setFairnessWeightOverrides_); + unsetFairnessWeightOverrides_.Add(other.unsetFairnessWeightOverrides_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -67277,7 +67659,37 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - WorkerInstanceKey = input.ReadString(); + Identity = input.ReadString(); + break; + } + case 26: { + TaskQueue = input.ReadString(); + break; + } + case 32: { + TaskQueueType = (global::Temporalio.Api.Enums.V1.TaskQueueType) input.ReadEnum(); + break; + } + case 42: { + if (updateQueueRateLimit_ == null) { + UpdateQueueRateLimit = new global::Temporalio.Api.WorkflowService.V1.UpdateTaskQueueConfigRequest.Types.RateLimitUpdate(); + } + input.ReadMessage(UpdateQueueRateLimit); + break; + } + case 50: { + if (updateFairnessKeyRateLimitDefault_ == null) { + UpdateFairnessKeyRateLimitDefault = new global::Temporalio.Api.WorkflowService.V1.UpdateTaskQueueConfigRequest.Types.RateLimitUpdate(); + } + input.ReadMessage(UpdateFairnessKeyRateLimitDefault); + break; + } + case 58: { + setFairnessWeightOverrides_.AddEntriesFrom(input, _map_setFairnessWeightOverrides_codec); + break; + } + case 66: { + unsetFairnessWeightOverrides_.AddEntriesFrom(input, _repeated_unsetFairnessWeightOverrides_codec); break; } } @@ -67300,7 +67712,37 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - WorkerInstanceKey = input.ReadString(); + Identity = input.ReadString(); + break; + } + case 26: { + TaskQueue = input.ReadString(); + break; + } + case 32: { + TaskQueueType = (global::Temporalio.Api.Enums.V1.TaskQueueType) input.ReadEnum(); + break; + } + case 42: { + if (updateQueueRateLimit_ == null) { + UpdateQueueRateLimit = new global::Temporalio.Api.WorkflowService.V1.UpdateTaskQueueConfigRequest.Types.RateLimitUpdate(); + } + input.ReadMessage(UpdateQueueRateLimit); + break; + } + case 50: { + if (updateFairnessKeyRateLimitDefault_ == null) { + UpdateFairnessKeyRateLimitDefault = new global::Temporalio.Api.WorkflowService.V1.UpdateTaskQueueConfigRequest.Types.RateLimitUpdate(); + } + input.ReadMessage(UpdateFairnessKeyRateLimitDefault); + break; + } + case 58: { + setFairnessWeightOverrides_.AddEntriesFrom(ref input, _map_setFairnessWeightOverrides_codec); + break; + } + case 66: { + unsetFairnessWeightOverrides_.AddEntriesFrom(ref input, _repeated_unsetFairnessWeightOverrides_codec); break; } } @@ -67308,109 +67750,358 @@ public void MergeFrom(pb::CodedInputStream input) { } #endif - } - - public sealed partial class DescribeWorkerResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DescribeWorkerResponse()); - private pb::UnknownFieldSet _unknownFields; + #region Nested types + /// Container for nested types declared in the UpdateTaskQueueConfigRequest message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static partial class Types { + public sealed partial class RateLimitUpdate : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RateLimitUpdate()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[189]; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Temporalio.Api.WorkflowService.V1.UpdateTaskQueueConfigRequest.Descriptor.NestedTypes[0]; } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DescribeWorkerResponse() { - OnConstruction(); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RateLimitUpdate() { + OnConstruction(); + } - partial void OnConstruction(); + partial void OnConstruction(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DescribeWorkerResponse(DescribeWorkerResponse other) : this() { - workerInfo_ = other.workerInfo_ != null ? other.workerInfo_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RateLimitUpdate(RateLimitUpdate other) : this() { + rateLimit_ = other.rateLimit_ != null ? other.rateLimit_.Clone() : null; + reason_ = other.reason_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DescribeWorkerResponse Clone() { - return new DescribeWorkerResponse(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RateLimitUpdate Clone() { + return new RateLimitUpdate(this); + } - /// Field number for the "worker_info" field. - public const int WorkerInfoFieldNumber = 1; - private global::Temporalio.Api.Worker.V1.WorkerInfo workerInfo_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Temporalio.Api.Worker.V1.WorkerInfo WorkerInfo { - get { return workerInfo_; } - set { - workerInfo_ = value; - } - } + /// Field number for the "rate_limit" field. + public const int RateLimitFieldNumber = 1; + private global::Temporalio.Api.TaskQueue.V1.RateLimit rateLimit_; + /// + /// Rate Limit to be updated + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.TaskQueue.V1.RateLimit RateLimit { + get { return rateLimit_; } + set { + rateLimit_ = value; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DescribeWorkerResponse); - } + /// Field number for the "reason" field. + public const int ReasonFieldNumber = 2; + private string reason_ = ""; + /// + /// Reason for why the rate limit was set. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Reason { + get { return reason_; } + set { + reason_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DescribeWorkerResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(WorkerInfo, other.WorkerInfo)) return false; - return Equals(_unknownFields, other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RateLimitUpdate); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (workerInfo_ != null) hash ^= WorkerInfo.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RateLimitUpdate other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(RateLimit, other.RateLimit)) return false; + if (Reason != other.Reason) return false; + return Equals(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (rateLimit_ != null) hash ^= RateLimit.GetHashCode(); + if (Reason.Length != 0) hash ^= Reason.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (workerInfo_ != null) { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (rateLimit_ != null) { + output.WriteRawTag(10); + output.WriteMessage(RateLimit); + } + if (Reason.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Reason); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (rateLimit_ != null) { + output.WriteRawTag(10); + output.WriteMessage(RateLimit); + } + if (Reason.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Reason); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (rateLimit_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RateLimit); + } + if (Reason.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Reason); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RateLimitUpdate other) { + if (other == null) { + return; + } + if (other.rateLimit_ != null) { + if (rateLimit_ == null) { + RateLimit = new global::Temporalio.Api.TaskQueue.V1.RateLimit(); + } + RateLimit.MergeFrom(other.RateLimit); + } + if (other.Reason.Length != 0) { + Reason = other.Reason; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (rateLimit_ == null) { + RateLimit = new global::Temporalio.Api.TaskQueue.V1.RateLimit(); + } + input.ReadMessage(RateLimit); + break; + } + case 18: { + Reason = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (rateLimit_ == null) { + RateLimit = new global::Temporalio.Api.TaskQueue.V1.RateLimit(); + } + input.ReadMessage(RateLimit); + break; + } + case 18: { + Reason = input.ReadString(); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + public sealed partial class UpdateTaskQueueConfigResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateTaskQueueConfigResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[191]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateTaskQueueConfigResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateTaskQueueConfigResponse(UpdateTaskQueueConfigResponse other) : this() { + config_ = other.config_ != null ? other.config_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateTaskQueueConfigResponse Clone() { + return new UpdateTaskQueueConfigResponse(this); + } + + /// Field number for the "config" field. + public const int ConfigFieldNumber = 1; + private global::Temporalio.Api.TaskQueue.V1.TaskQueueConfig config_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.TaskQueue.V1.TaskQueueConfig Config { + get { return config_; } + set { + config_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdateTaskQueueConfigResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateTaskQueueConfigResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Config, other.Config)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (config_ != null) hash ^= Config.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (config_ != null) { output.WriteRawTag(10); - output.WriteMessage(WorkerInfo); + output.WriteMessage(Config); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -67422,9 +68113,9 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (workerInfo_ != null) { + if (config_ != null) { output.WriteRawTag(10); - output.WriteMessage(WorkerInfo); + output.WriteMessage(Config); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -67436,8 +68127,8 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (workerInfo_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(WorkerInfo); + if (config_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Config); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -67447,15 +68138,15 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DescribeWorkerResponse other) { + public void MergeFrom(UpdateTaskQueueConfigResponse other) { if (other == null) { return; } - if (other.workerInfo_ != null) { - if (workerInfo_ == null) { - WorkerInfo = new global::Temporalio.Api.Worker.V1.WorkerInfo(); + if (other.config_ != null) { + if (config_ == null) { + Config = new global::Temporalio.Api.TaskQueue.V1.TaskQueueConfig(); } - WorkerInfo.MergeFrom(other.WorkerInfo); + Config.MergeFrom(other.Config); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -67473,10 +68164,10 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (workerInfo_ == null) { - WorkerInfo = new global::Temporalio.Api.Worker.V1.WorkerInfo(); + if (config_ == null) { + Config = new global::Temporalio.Api.TaskQueue.V1.TaskQueueConfig(); } - input.ReadMessage(WorkerInfo); + input.ReadMessage(Config); break; } } @@ -67495,10 +68186,10 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - if (workerInfo_ == null) { - WorkerInfo = new global::Temporalio.Api.Worker.V1.WorkerInfo(); + if (config_ == null) { + Config = new global::Temporalio.Api.TaskQueue.V1.TaskQueueConfig(); } - input.ReadMessage(WorkerInfo); + input.ReadMessage(Config); break; } } @@ -67508,24 +68199,21 @@ public void MergeFrom(pb::CodedInputStream input) { } - /// - /// Request to pause a workflow execution. - /// - public sealed partial class PauseWorkflowExecutionRequest : pb::IMessage + public sealed partial class FetchWorkerConfigRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PauseWorkflowExecutionRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FetchWorkerConfigRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[190]; } + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[192]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -67536,7 +68224,7 @@ public sealed partial class PauseWorkflowExecutionRequest : pb::IMessageField number for the "namespace" field. public const int NamespaceFieldNumber = 1; private string namespace_ = ""; /// - /// Namespace of the workflow to pause. + /// Namespace this worker belongs to. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -67575,38 +68262,8 @@ public string Namespace { } } - /// Field number for the "workflow_id" field. - public const int WorkflowIdFieldNumber = 2; - private string workflowId_ = ""; - /// - /// ID of the workflow execution to be paused. Required. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string WorkflowId { - get { return workflowId_; } - set { - workflowId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "run_id" field. - public const int RunIdFieldNumber = 3; - private string runId_ = ""; - /// - /// Run ID of the workflow execution to be paused. Optional. If not provided, the current run of the workflow will be paused. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string RunId { - get { return runId_; } - set { - runId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Field number for the "identity" field. - public const int IdentityFieldNumber = 4; + public const int IdentityFieldNumber = 2; private string identity_ = ""; /// /// The identity of the client who initiated this request. @@ -67621,10 +68278,10 @@ public string Identity { } /// Field number for the "reason" field. - public const int ReasonFieldNumber = 5; + public const int ReasonFieldNumber = 3; private string reason_ = ""; /// - /// Reason to pause the workflow execution. + /// Reason for sending worker command, can be used for audit purpose. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -67635,30 +68292,46 @@ public string Reason { } } - /// Field number for the "request_id" field. - public const int RequestIdFieldNumber = 6; - private string requestId_ = ""; + /// Field number for the "selector" field. + public const int SelectorFieldNumber = 6; + private global::Temporalio.Api.Common.V1.WorkerSelector selector_; /// - /// A unique identifier for this pause request for idempotence. Typically UUIDv4. + /// Defines which workers should receive this command. + /// only single worker is supported at this time. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string RequestId { - get { return requestId_; } + public global::Temporalio.Api.Common.V1.WorkerSelector Selector { + get { return selector_; } set { - requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + selector_ = value; + } + } + + /// Field number for the "resource_id" field. + public const int ResourceIdFieldNumber = 7; + private string resourceId_ = ""; + /// + /// Resource ID for routing. Contains the worker grouping key. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ResourceId { + get { return resourceId_; } + set { + resourceId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as PauseWorkflowExecutionRequest); + return Equals(other as FetchWorkerConfigRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(PauseWorkflowExecutionRequest other) { + public bool Equals(FetchWorkerConfigRequest other) { if (ReferenceEquals(other, null)) { return false; } @@ -67666,11 +68339,10 @@ public bool Equals(PauseWorkflowExecutionRequest other) { return true; } if (Namespace != other.Namespace) return false; - if (WorkflowId != other.WorkflowId) return false; - if (RunId != other.RunId) return false; if (Identity != other.Identity) return false; if (Reason != other.Reason) return false; - if (RequestId != other.RequestId) return false; + if (!object.Equals(Selector, other.Selector)) return false; + if (ResourceId != other.ResourceId) return false; return Equals(_unknownFields, other._unknownFields); } @@ -67679,11 +68351,10 @@ public bool Equals(PauseWorkflowExecutionRequest other) { public override int GetHashCode() { int hash = 1; if (Namespace.Length != 0) hash ^= Namespace.GetHashCode(); - if (WorkflowId.Length != 0) hash ^= WorkflowId.GetHashCode(); - if (RunId.Length != 0) hash ^= RunId.GetHashCode(); if (Identity.Length != 0) hash ^= Identity.GetHashCode(); if (Reason.Length != 0) hash ^= Reason.GetHashCode(); - if (RequestId.Length != 0) hash ^= RequestId.GetHashCode(); + if (selector_ != null) hash ^= Selector.GetHashCode(); + if (ResourceId.Length != 0) hash ^= ResourceId.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -67706,25 +68377,21 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(Namespace); } - if (WorkflowId.Length != 0) { - output.WriteRawTag(18); - output.WriteString(WorkflowId); - } - if (RunId.Length != 0) { - output.WriteRawTag(26); - output.WriteString(RunId); - } if (Identity.Length != 0) { - output.WriteRawTag(34); + output.WriteRawTag(18); output.WriteString(Identity); } if (Reason.Length != 0) { - output.WriteRawTag(42); + output.WriteRawTag(26); output.WriteString(Reason); } - if (RequestId.Length != 0) { + if (selector_ != null) { output.WriteRawTag(50); - output.WriteString(RequestId); + output.WriteMessage(Selector); + } + if (ResourceId.Length != 0) { + output.WriteRawTag(58); + output.WriteString(ResourceId); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -67740,25 +68407,21 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(Namespace); } - if (WorkflowId.Length != 0) { - output.WriteRawTag(18); - output.WriteString(WorkflowId); - } - if (RunId.Length != 0) { - output.WriteRawTag(26); - output.WriteString(RunId); - } if (Identity.Length != 0) { - output.WriteRawTag(34); + output.WriteRawTag(18); output.WriteString(Identity); } if (Reason.Length != 0) { - output.WriteRawTag(42); + output.WriteRawTag(26); output.WriteString(Reason); } - if (RequestId.Length != 0) { + if (selector_ != null) { output.WriteRawTag(50); - output.WriteString(RequestId); + output.WriteMessage(Selector); + } + if (ResourceId.Length != 0) { + output.WriteRawTag(58); + output.WriteString(ResourceId); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -67773,20 +68436,17 @@ public int CalculateSize() { if (Namespace.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Namespace); } - if (WorkflowId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(WorkflowId); - } - if (RunId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(RunId); - } if (Identity.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Identity); } if (Reason.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Reason); } - if (RequestId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); + if (selector_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Selector); + } + if (ResourceId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceId); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -67796,27 +68456,27 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(PauseWorkflowExecutionRequest other) { + public void MergeFrom(FetchWorkerConfigRequest other) { if (other == null) { return; } if (other.Namespace.Length != 0) { Namespace = other.Namespace; } - if (other.WorkflowId.Length != 0) { - WorkflowId = other.WorkflowId; - } - if (other.RunId.Length != 0) { - RunId = other.RunId; - } if (other.Identity.Length != 0) { Identity = other.Identity; } if (other.Reason.Length != 0) { Reason = other.Reason; } - if (other.RequestId.Length != 0) { - RequestId = other.RequestId; + if (other.selector_ != null) { + if (selector_ == null) { + Selector = new global::Temporalio.Api.Common.V1.WorkerSelector(); + } + Selector.MergeFrom(other.Selector); + } + if (other.ResourceId.Length != 0) { + ResourceId = other.ResourceId; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -67838,23 +68498,22 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - WorkflowId = input.ReadString(); - break; - } - case 26: { - RunId = input.ReadString(); - break; - } - case 34: { Identity = input.ReadString(); break; } - case 42: { + case 26: { Reason = input.ReadString(); break; } case 50: { - RequestId = input.ReadString(); + if (selector_ == null) { + Selector = new global::Temporalio.Api.Common.V1.WorkerSelector(); + } + input.ReadMessage(Selector); + break; + } + case 58: { + ResourceId = input.ReadString(); break; } } @@ -67877,23 +68536,22 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - WorkflowId = input.ReadString(); - break; - } - case 26: { - RunId = input.ReadString(); - break; - } - case 34: { Identity = input.ReadString(); break; } - case 42: { + case 26: { Reason = input.ReadString(); break; } case 50: { - RequestId = input.ReadString(); + if (selector_ == null) { + Selector = new global::Temporalio.Api.Common.V1.WorkerSelector(); + } + input.ReadMessage(Selector); + break; + } + case 58: { + ResourceId = input.ReadString(); break; } } @@ -67903,24 +68561,21 @@ public void MergeFrom(pb::CodedInputStream input) { } - /// - /// Response to a successful PauseWorkflowExecution request. - /// - public sealed partial class PauseWorkflowExecutionResponse : pb::IMessage + public sealed partial class FetchWorkerConfigResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PauseWorkflowExecutionResponse()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FetchWorkerConfigResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[191]; } + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[193]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -67931,7 +68586,7 @@ public sealed partial class PauseWorkflowExecutionResponse : pb::IMessageField number for the "worker_config" field. + public const int WorkerConfigFieldNumber = 1; + private global::Temporalio.Api.Sdk.V1.WorkerConfig workerConfig_; + /// + /// The worker configuration. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Sdk.V1.WorkerConfig WorkerConfig { + get { return workerConfig_; } + set { + workerConfig_ = value; + } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as PauseWorkflowExecutionResponse); + return Equals(other as FetchWorkerConfigResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(PauseWorkflowExecutionResponse other) { + public bool Equals(FetchWorkerConfigResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } + if (!object.Equals(WorkerConfig, other.WorkerConfig)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -67971,6 +68643,7 @@ public bool Equals(PauseWorkflowExecutionResponse other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; + if (workerConfig_ != null) hash ^= WorkerConfig.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -67989,6 +68662,10 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else + if (workerConfig_ != null) { + output.WriteRawTag(10); + output.WriteMessage(WorkerConfig); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -67999,6 +68676,10 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (workerConfig_ != null) { + output.WriteRawTag(10); + output.WriteMessage(WorkerConfig); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -68009,6 +68690,9 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; + if (workerConfig_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(WorkerConfig); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -68017,10 +68701,16 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(PauseWorkflowExecutionResponse other) { + public void MergeFrom(FetchWorkerConfigResponse other) { if (other == null) { return; } + if (other.workerConfig_ != null) { + if (workerConfig_ == null) { + WorkerConfig = new global::Temporalio.Api.Sdk.V1.WorkerConfig(); + } + WorkerConfig.MergeFrom(other.WorkerConfig); + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -68036,6 +68726,13 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; + case 10: { + if (workerConfig_ == null) { + WorkerConfig = new global::Temporalio.Api.Sdk.V1.WorkerConfig(); + } + input.ReadMessage(WorkerConfig); + break; + } } } #endif @@ -68051,6 +68748,13 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; + case 10: { + if (workerConfig_ == null) { + WorkerConfig = new global::Temporalio.Api.Sdk.V1.WorkerConfig(); + } + input.ReadMessage(WorkerConfig); + break; + } } } } @@ -68058,21 +68762,21 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class UnpauseWorkflowExecutionRequest : pb::IMessage + public sealed partial class UpdateWorkerConfigRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UnpauseWorkflowExecutionRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateWorkerConfigRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[192]; } + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[194]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -68083,7 +68787,7 @@ public sealed partial class UnpauseWorkflowExecutionRequest : pb::IMessageField number for the "namespace" field. public const int NamespaceFieldNumber = 1; private string namespace_ = ""; /// - /// Namespace of the workflow to unpause. + /// Namespace this worker belongs to. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -68122,90 +68827,106 @@ public string Namespace { } } - /// Field number for the "workflow_id" field. - public const int WorkflowIdFieldNumber = 2; - private string workflowId_ = ""; + /// Field number for the "identity" field. + public const int IdentityFieldNumber = 2; + private string identity_ = ""; /// - /// ID of the workflow execution to be paused. Required. + /// The identity of the client who initiated this request. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string WorkflowId { - get { return workflowId_; } + public string Identity { + get { return identity_; } set { - workflowId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + identity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - /// Field number for the "run_id" field. - public const int RunIdFieldNumber = 3; - private string runId_ = ""; + /// Field number for the "reason" field. + public const int ReasonFieldNumber = 3; + private string reason_ = ""; /// - /// Run ID of the workflow execution to be paused. Optional. If not provided, the current run of the workflow will be paused. + /// Reason for sending worker command, can be used for audit purpose. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string RunId { - get { return runId_; } + public string Reason { + get { return reason_; } set { - runId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + reason_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - /// Field number for the "identity" field. - public const int IdentityFieldNumber = 4; - private string identity_ = ""; + /// Field number for the "worker_config" field. + public const int WorkerConfigFieldNumber = 4; + private global::Temporalio.Api.Sdk.V1.WorkerConfig workerConfig_; /// - /// The identity of the client who initiated this request. + /// Partial updates are accepted and controlled by update_mask. + /// The worker configuration to set. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Identity { - get { return identity_; } + public global::Temporalio.Api.Sdk.V1.WorkerConfig WorkerConfig { + get { return workerConfig_; } set { - identity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + workerConfig_ = value; } } - /// Field number for the "reason" field. - public const int ReasonFieldNumber = 5; - private string reason_ = ""; + /// Field number for the "update_mask" field. + public const int UpdateMaskFieldNumber = 5; + private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; /// - /// Reason to unpause the workflow execution. + /// Controls which fields from `worker_config` will be applied /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Reason { - get { return reason_; } + public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { + get { return updateMask_; } set { - reason_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + updateMask_ = value; } } - /// Field number for the "request_id" field. - public const int RequestIdFieldNumber = 6; - private string requestId_ = ""; + /// Field number for the "selector" field. + public const int SelectorFieldNumber = 6; + private global::Temporalio.Api.Common.V1.WorkerSelector selector_; /// - /// A unique identifier for this unpause request for idempotence. Typically UUIDv4. + /// Defines which workers should receive this command. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string RequestId { - get { return requestId_; } + public global::Temporalio.Api.Common.V1.WorkerSelector Selector { + get { return selector_; } set { - requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + selector_ = value; + } + } + + /// Field number for the "resource_id" field. + public const int ResourceIdFieldNumber = 7; + private string resourceId_ = ""; + /// + /// Resource ID for routing. Contains the worker grouping key. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ResourceId { + get { return resourceId_; } + set { + resourceId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as UnpauseWorkflowExecutionRequest); + return Equals(other as UpdateWorkerConfigRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UnpauseWorkflowExecutionRequest other) { + public bool Equals(UpdateWorkerConfigRequest other) { if (ReferenceEquals(other, null)) { return false; } @@ -68213,11 +68934,12 @@ public bool Equals(UnpauseWorkflowExecutionRequest other) { return true; } if (Namespace != other.Namespace) return false; - if (WorkflowId != other.WorkflowId) return false; - if (RunId != other.RunId) return false; if (Identity != other.Identity) return false; if (Reason != other.Reason) return false; - if (RequestId != other.RequestId) return false; + if (!object.Equals(WorkerConfig, other.WorkerConfig)) return false; + if (!object.Equals(UpdateMask, other.UpdateMask)) return false; + if (!object.Equals(Selector, other.Selector)) return false; + if (ResourceId != other.ResourceId) return false; return Equals(_unknownFields, other._unknownFields); } @@ -68226,11 +68948,12 @@ public bool Equals(UnpauseWorkflowExecutionRequest other) { public override int GetHashCode() { int hash = 1; if (Namespace.Length != 0) hash ^= Namespace.GetHashCode(); - if (WorkflowId.Length != 0) hash ^= WorkflowId.GetHashCode(); - if (RunId.Length != 0) hash ^= RunId.GetHashCode(); if (Identity.Length != 0) hash ^= Identity.GetHashCode(); if (Reason.Length != 0) hash ^= Reason.GetHashCode(); - if (RequestId.Length != 0) hash ^= RequestId.GetHashCode(); + if (workerConfig_ != null) hash ^= WorkerConfig.GetHashCode(); + if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); + if (selector_ != null) hash ^= Selector.GetHashCode(); + if (ResourceId.Length != 0) hash ^= ResourceId.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -68253,25 +68976,29 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(Namespace); } - if (WorkflowId.Length != 0) { + if (Identity.Length != 0) { output.WriteRawTag(18); - output.WriteString(WorkflowId); + output.WriteString(Identity); } - if (RunId.Length != 0) { + if (Reason.Length != 0) { output.WriteRawTag(26); - output.WriteString(RunId); + output.WriteString(Reason); } - if (Identity.Length != 0) { + if (workerConfig_ != null) { output.WriteRawTag(34); - output.WriteString(Identity); + output.WriteMessage(WorkerConfig); } - if (Reason.Length != 0) { + if (updateMask_ != null) { output.WriteRawTag(42); - output.WriteString(Reason); + output.WriteMessage(UpdateMask); } - if (RequestId.Length != 0) { + if (selector_ != null) { output.WriteRawTag(50); - output.WriteString(RequestId); + output.WriteMessage(Selector); + } + if (ResourceId.Length != 0) { + output.WriteRawTag(58); + output.WriteString(ResourceId); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -68287,25 +69014,29 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(Namespace); } - if (WorkflowId.Length != 0) { + if (Identity.Length != 0) { output.WriteRawTag(18); - output.WriteString(WorkflowId); + output.WriteString(Identity); } - if (RunId.Length != 0) { + if (Reason.Length != 0) { output.WriteRawTag(26); - output.WriteString(RunId); + output.WriteString(Reason); } - if (Identity.Length != 0) { + if (workerConfig_ != null) { output.WriteRawTag(34); - output.WriteString(Identity); + output.WriteMessage(WorkerConfig); } - if (Reason.Length != 0) { + if (updateMask_ != null) { output.WriteRawTag(42); - output.WriteString(Reason); + output.WriteMessage(UpdateMask); } - if (RequestId.Length != 0) { + if (selector_ != null) { output.WriteRawTag(50); - output.WriteString(RequestId); + output.WriteMessage(Selector); + } + if (ResourceId.Length != 0) { + output.WriteRawTag(58); + output.WriteString(ResourceId); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -68320,20 +69051,23 @@ public int CalculateSize() { if (Namespace.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Namespace); } - if (WorkflowId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(WorkflowId); - } - if (RunId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(RunId); - } if (Identity.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Identity); } if (Reason.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Reason); } - if (RequestId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); + if (workerConfig_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(WorkerConfig); + } + if (updateMask_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); + } + if (selector_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Selector); + } + if (ResourceId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceId); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -68343,27 +69077,39 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UnpauseWorkflowExecutionRequest other) { + public void MergeFrom(UpdateWorkerConfigRequest other) { if (other == null) { return; } if (other.Namespace.Length != 0) { Namespace = other.Namespace; } - if (other.WorkflowId.Length != 0) { - WorkflowId = other.WorkflowId; - } - if (other.RunId.Length != 0) { - RunId = other.RunId; - } if (other.Identity.Length != 0) { Identity = other.Identity; } if (other.Reason.Length != 0) { Reason = other.Reason; } - if (other.RequestId.Length != 0) { - RequestId = other.RequestId; + if (other.workerConfig_ != null) { + if (workerConfig_ == null) { + WorkerConfig = new global::Temporalio.Api.Sdk.V1.WorkerConfig(); + } + WorkerConfig.MergeFrom(other.WorkerConfig); + } + if (other.updateMask_ != null) { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + UpdateMask.MergeFrom(other.UpdateMask); + } + if (other.selector_ != null) { + if (selector_ == null) { + Selector = new global::Temporalio.Api.Common.V1.WorkerSelector(); + } + Selector.MergeFrom(other.Selector); + } + if (other.ResourceId.Length != 0) { + ResourceId = other.ResourceId; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -68385,23 +69131,36 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - WorkflowId = input.ReadString(); + Identity = input.ReadString(); break; } case 26: { - RunId = input.ReadString(); + Reason = input.ReadString(); break; } case 34: { - Identity = input.ReadString(); + if (workerConfig_ == null) { + WorkerConfig = new global::Temporalio.Api.Sdk.V1.WorkerConfig(); + } + input.ReadMessage(WorkerConfig); break; } case 42: { - Reason = input.ReadString(); + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + input.ReadMessage(UpdateMask); break; } case 50: { - RequestId = input.ReadString(); + if (selector_ == null) { + Selector = new global::Temporalio.Api.Common.V1.WorkerSelector(); + } + input.ReadMessage(Selector); + break; + } + case 58: { + ResourceId = input.ReadString(); break; } } @@ -68424,23 +69183,36 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - WorkflowId = input.ReadString(); + Identity = input.ReadString(); break; } case 26: { - RunId = input.ReadString(); + Reason = input.ReadString(); break; } case 34: { - Identity = input.ReadString(); + if (workerConfig_ == null) { + WorkerConfig = new global::Temporalio.Api.Sdk.V1.WorkerConfig(); + } + input.ReadMessage(WorkerConfig); break; } case 42: { - Reason = input.ReadString(); + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + input.ReadMessage(UpdateMask); break; } case 50: { - RequestId = input.ReadString(); + if (selector_ == null) { + Selector = new global::Temporalio.Api.Common.V1.WorkerSelector(); + } + input.ReadMessage(Selector); + break; + } + case 58: { + ResourceId = input.ReadString(); break; } } @@ -68450,24 +69222,21 @@ public void MergeFrom(pb::CodedInputStream input) { } - /// - /// Response to a successful UnpauseWorkflowExecution request. - /// - public sealed partial class UnpauseWorkflowExecutionResponse : pb::IMessage + public sealed partial class UpdateWorkerConfigResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UnpauseWorkflowExecutionResponse()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateWorkerConfigResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[193]; } + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[195]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -68478,7 +69247,7 @@ public sealed partial class UnpauseWorkflowExecutionResponse : pb::IMessageField number for the "worker_config" field. + public const int WorkerConfigFieldNumber = 1; + /// + /// The worker configuration. Will be returned if the command was sent to a single worker. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Sdk.V1.WorkerConfig WorkerConfig { + get { return responseCase_ == ResponseOneofCase.WorkerConfig ? (global::Temporalio.Api.Sdk.V1.WorkerConfig) response_ : null; } + set { + response_ = value; + responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.WorkerConfig; + } + } + + private object response_; + /// Enum of possible cases for the "response" oneof. + public enum ResponseOneofCase { + None = 0, + WorkerConfig = 1, + } + private ResponseOneofCase responseCase_ = ResponseOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ResponseOneofCase ResponseCase { + get { return responseCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearResponse() { + responseCase_ = ResponseOneofCase.None; + response_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as UnpauseWorkflowExecutionResponse); + return Equals(other as UpdateWorkerConfigResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UnpauseWorkflowExecutionResponse other) { + public bool Equals(UpdateWorkerConfigResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } + if (!object.Equals(WorkerConfig, other.WorkerConfig)) return false; + if (ResponseCase != other.ResponseCase) return false; return Equals(_unknownFields, other._unknownFields); } @@ -68518,6 +69330,8 @@ public bool Equals(UnpauseWorkflowExecutionResponse other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; + if (responseCase_ == ResponseOneofCase.WorkerConfig) hash ^= WorkerConfig.GetHashCode(); + hash ^= (int) responseCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -68536,6 +69350,10 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else + if (responseCase_ == ResponseOneofCase.WorkerConfig) { + output.WriteRawTag(10); + output.WriteMessage(WorkerConfig); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -68546,6 +69364,10 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (responseCase_ == ResponseOneofCase.WorkerConfig) { + output.WriteRawTag(10); + output.WriteMessage(WorkerConfig); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -68556,6 +69378,9 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; + if (responseCase_ == ResponseOneofCase.WorkerConfig) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(WorkerConfig); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -68564,10 +69389,19 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UnpauseWorkflowExecutionResponse other) { + public void MergeFrom(UpdateWorkerConfigResponse other) { if (other == null) { return; } + switch (other.ResponseCase) { + case ResponseOneofCase.WorkerConfig: + if (WorkerConfig == null) { + WorkerConfig = new global::Temporalio.Api.Sdk.V1.WorkerConfig(); + } + WorkerConfig.MergeFrom(other.WorkerConfig); + break; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -68583,6 +69417,15 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; + case 10: { + global::Temporalio.Api.Sdk.V1.WorkerConfig subBuilder = new global::Temporalio.Api.Sdk.V1.WorkerConfig(); + if (responseCase_ == ResponseOneofCase.WorkerConfig) { + subBuilder.MergeFrom(WorkerConfig); + } + input.ReadMessage(subBuilder); + WorkerConfig = subBuilder; + break; + } } } #endif @@ -68598,6 +69441,15 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; + case 10: { + global::Temporalio.Api.Sdk.V1.WorkerConfig subBuilder = new global::Temporalio.Api.Sdk.V1.WorkerConfig(); + if (responseCase_ == ResponseOneofCase.WorkerConfig) { + subBuilder.MergeFrom(WorkerConfig); + } + input.ReadMessage(subBuilder); + WorkerConfig = subBuilder; + break; + } } } } @@ -68605,21 +69457,21 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class StartActivityExecutionRequest : pb::IMessage + public sealed partial class DescribeWorkerRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StartActivityExecutionRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DescribeWorkerRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[194]; } + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[196]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -68630,7 +69482,7 @@ public sealed partial class StartActivityExecutionRequest : pb::IMessageField number for the "namespace" field. public const int NamespaceFieldNumber = 1; private string namespace_ = ""; + /// + /// Namespace this worker belongs to. + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Namespace { @@ -68678,312 +69517,250 @@ public string Namespace { } } - /// Field number for the "identity" field. - public const int IdentityFieldNumber = 2; - private string identity_ = ""; + /// Field number for the "worker_instance_key" field. + public const int WorkerInstanceKeyFieldNumber = 2; + private string workerInstanceKey_ = ""; /// - /// The identity of the client who initiated this request + /// Worker instance key to describe. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Identity { - get { return identity_; } + public string WorkerInstanceKey { + get { return workerInstanceKey_; } set { - identity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + workerInstanceKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - /// Field number for the "request_id" field. - public const int RequestIdFieldNumber = 3; - private string requestId_ = ""; - /// - /// A unique identifier for this start request. Typically UUIDv4. - /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string RequestId { - get { return requestId_; } - set { - requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } + public override bool Equals(object other) { + return Equals(other as DescribeWorkerRequest); } - /// Field number for the "activity_id" field. - public const int ActivityIdFieldNumber = 4; - private string activityId_ = ""; - /// - /// 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. - /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ActivityId { - get { return activityId_; } - set { - activityId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + public bool Equals(DescribeWorkerRequest other) { + if (ReferenceEquals(other, null)) { + return false; } - } - - /// Field number for the "activity_type" field. - public const int ActivityTypeFieldNumber = 5; - private global::Temporalio.Api.Common.V1.ActivityType activityType_; - /// - /// The type of the activity, a string that corresponds to a registered activity on a worker. - /// + if (ReferenceEquals(other, this)) { + return true; + } + if (Namespace != other.Namespace) return false; + if (WorkerInstanceKey != other.WorkerInstanceKey) return false; + return Equals(_unknownFields, other._unknownFields); + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Temporalio.Api.Common.V1.ActivityType ActivityType { - get { return activityType_; } - set { - activityType_ = value; + public override int GetHashCode() { + int hash = 1; + if (Namespace.Length != 0) hash ^= Namespace.GetHashCode(); + if (WorkerInstanceKey.Length != 0) hash ^= WorkerInstanceKey.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); } + return hash; } - /// Field number for the "task_queue" field. - public const int TaskQueueFieldNumber = 6; - private global::Temporalio.Api.TaskQueue.V1.TaskQueue taskQueue_; - /// - /// Task queue to schedule this activity on. - /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Temporalio.Api.TaskQueue.V1.TaskQueue TaskQueue { - get { return taskQueue_; } - set { - taskQueue_ = value; - } + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); } - /// Field number for the "schedule_to_close_timeout" field. - public const int ScheduleToCloseTimeoutFieldNumber = 7; - private global::Google.Protobuf.WellKnownTypes.Duration scheduleToCloseTimeout_; - /// - /// 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. --) - /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Duration ScheduleToCloseTimeout { - get { return scheduleToCloseTimeout_; } - set { - scheduleToCloseTimeout_ = value; + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Namespace.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Namespace); } + if (WorkerInstanceKey.Length != 0) { + output.WriteRawTag(18); + output.WriteString(WorkerInstanceKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif } - /// Field number for the "schedule_to_start_timeout" field. - public const int ScheduleToStartTimeoutFieldNumber = 8; - private global::Google.Protobuf.WellKnownTypes.Duration scheduleToStartTimeout_; - /// - /// 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. --) - /// + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Duration ScheduleToStartTimeout { - get { return scheduleToStartTimeout_; } - set { - scheduleToStartTimeout_ = value; + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Namespace.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Namespace); + } + if (WorkerInstanceKey.Length != 0) { + output.WriteRawTag(18); + output.WriteString(WorkerInstanceKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); } } + #endif - /// Field number for the "start_to_close_timeout" field. - public const int StartToCloseTimeoutFieldNumber = 9; - private global::Google.Protobuf.WellKnownTypes.Duration startToCloseTimeout_; - /// - /// 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. --) - /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Duration StartToCloseTimeout { - get { return startToCloseTimeout_; } - set { - startToCloseTimeout_ = value; + public int CalculateSize() { + int size = 0; + if (Namespace.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Namespace); + } + if (WorkerInstanceKey.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(WorkerInstanceKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); } + return size; } - /// Field number for the "heartbeat_timeout" field. - public const int HeartbeatTimeoutFieldNumber = 10; - private global::Google.Protobuf.WellKnownTypes.Duration heartbeatTimeout_; - /// - /// Maximum permitted time between successful worker heartbeats. - /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Duration HeartbeatTimeout { - get { return heartbeatTimeout_; } - set { - heartbeatTimeout_ = value; + public void MergeFrom(DescribeWorkerRequest other) { + if (other == null) { + return; + } + if (other.Namespace.Length != 0) { + Namespace = other.Namespace; + } + if (other.WorkerInstanceKey.Length != 0) { + WorkerInstanceKey = other.WorkerInstanceKey; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } - /// Field number for the "retry_policy" field. - public const int RetryPolicyFieldNumber = 11; - private global::Temporalio.Api.Common.V1.RetryPolicy retryPolicy_; - /// - /// The retry policy for the activity. Will never exceed `schedule_to_close_timeout`. - /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Temporalio.Api.Common.V1.RetryPolicy RetryPolicy { - get { return retryPolicy_; } - set { - retryPolicy_ = value; + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Namespace = input.ReadString(); + break; + } + case 18: { + WorkerInstanceKey = input.ReadString(); + break; + } + } } + #endif } - /// Field number for the "input" field. - public const int InputFieldNumber = 12; - private global::Temporalio.Api.Common.V1.Payloads input_; - /// - /// Serialized arguments to the activity. These are passed as arguments to the activity function. - /// + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Temporalio.Api.Common.V1.Payloads Input { - get { return input_; } - set { - input_ = value; + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Namespace = input.ReadString(); + break; + } + case 18: { + WorkerInstanceKey = input.ReadString(); + break; + } + } } } + #endif - /// Field number for the "id_reuse_policy" field. - public const int IdReusePolicyFieldNumber = 13; - private global::Temporalio.Api.Enums.V1.ActivityIdReusePolicy idReusePolicy_ = global::Temporalio.Api.Enums.V1.ActivityIdReusePolicy.Unspecified; - /// - /// Defines whether to allow re-using the activity id from a previously *closed* activity. - /// The default policy is ACTIVITY_ID_REUSE_POLICY_ALLOW_DUPLICATE. - /// + } + + public sealed partial class DescribeWorkerResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DescribeWorkerResponse()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Temporalio.Api.Enums.V1.ActivityIdReusePolicy IdReusePolicy { - get { return idReusePolicy_; } - set { - idReusePolicy_ = value; - } + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[197]; } } - /// Field number for the "id_conflict_policy" field. - public const int IdConflictPolicyFieldNumber = 14; - private global::Temporalio.Api.Enums.V1.ActivityIdConflictPolicy idConflictPolicy_ = global::Temporalio.Api.Enums.V1.ActivityIdConflictPolicy.Unspecified; - /// - /// Defines how to resolve an activity id conflict with a *running* activity. - /// The default policy is ACTIVITY_ID_CONFLICT_POLICY_FAIL. - /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Temporalio.Api.Enums.V1.ActivityIdConflictPolicy IdConflictPolicy { - get { return idConflictPolicy_; } - set { - idConflictPolicy_ = value; - } + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } } - /// Field number for the "search_attributes" field. - public const int SearchAttributesFieldNumber = 15; - private global::Temporalio.Api.Common.V1.SearchAttributes searchAttributes_; - /// - /// Search attributes for indexing. - /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Temporalio.Api.Common.V1.SearchAttributes SearchAttributes { - get { return searchAttributes_; } - set { - searchAttributes_ = value; - } + public DescribeWorkerResponse() { + OnConstruction(); } - /// Field number for the "header" field. - public const int HeaderFieldNumber = 16; - private global::Temporalio.Api.Common.V1.Header header_; - /// - /// Header for context propagation and tracing purposes. - /// + partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Temporalio.Api.Common.V1.Header Header { - get { return header_; } - set { - header_ = value; - } + public DescribeWorkerResponse(DescribeWorkerResponse other) : this() { + workerInfo_ = other.workerInfo_ != null ? other.workerInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } - /// Field number for the "user_metadata" field. - public const int UserMetadataFieldNumber = 17; - private global::Temporalio.Api.Sdk.V1.UserMetadata userMetadata_; - /// - /// Metadata for use by user interfaces to display the fixed as-of-start summary and details of the activity. - /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Temporalio.Api.Sdk.V1.UserMetadata UserMetadata { - get { return userMetadata_; } - set { - userMetadata_ = value; - } + public DescribeWorkerResponse Clone() { + return new DescribeWorkerResponse(this); } - /// Field number for the "priority" field. - public const int PriorityFieldNumber = 18; - private global::Temporalio.Api.Common.V1.Priority priority_; - /// - /// Priority metadata. - /// + /// Field number for the "worker_info" field. + public const int WorkerInfoFieldNumber = 1; + private global::Temporalio.Api.Worker.V1.WorkerInfo workerInfo_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Temporalio.Api.Common.V1.Priority Priority { - get { return priority_; } + public global::Temporalio.Api.Worker.V1.WorkerInfo WorkerInfo { + get { return workerInfo_; } set { - priority_ = value; + workerInfo_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as StartActivityExecutionRequest); + return Equals(other as DescribeWorkerResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(StartActivityExecutionRequest other) { + public bool Equals(DescribeWorkerResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (Namespace != other.Namespace) return false; - if (Identity != other.Identity) return false; - if (RequestId != other.RequestId) return false; - if (ActivityId != other.ActivityId) return false; - if (!object.Equals(ActivityType, other.ActivityType)) return false; - if (!object.Equals(TaskQueue, other.TaskQueue)) return false; - if (!object.Equals(ScheduleToCloseTimeout, other.ScheduleToCloseTimeout)) return false; - if (!object.Equals(ScheduleToStartTimeout, other.ScheduleToStartTimeout)) return false; - if (!object.Equals(StartToCloseTimeout, other.StartToCloseTimeout)) return false; - if (!object.Equals(HeartbeatTimeout, other.HeartbeatTimeout)) return false; - if (!object.Equals(RetryPolicy, other.RetryPolicy)) return false; - if (!object.Equals(Input, other.Input)) return false; - if (IdReusePolicy != other.IdReusePolicy) return false; - if (IdConflictPolicy != other.IdConflictPolicy) return false; - if (!object.Equals(SearchAttributes, other.SearchAttributes)) return false; - if (!object.Equals(Header, other.Header)) return false; - if (!object.Equals(UserMetadata, other.UserMetadata)) return false; - if (!object.Equals(Priority, other.Priority)) return false; + if (!object.Equals(WorkerInfo, other.WorkerInfo)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -68991,24 +69768,7 @@ public bool Equals(StartActivityExecutionRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Namespace.Length != 0) hash ^= Namespace.GetHashCode(); - if (Identity.Length != 0) hash ^= Identity.GetHashCode(); - if (RequestId.Length != 0) hash ^= RequestId.GetHashCode(); - if (ActivityId.Length != 0) hash ^= ActivityId.GetHashCode(); - if (activityType_ != null) hash ^= ActivityType.GetHashCode(); - if (taskQueue_ != null) hash ^= TaskQueue.GetHashCode(); - if (scheduleToCloseTimeout_ != null) hash ^= ScheduleToCloseTimeout.GetHashCode(); - if (scheduleToStartTimeout_ != null) hash ^= ScheduleToStartTimeout.GetHashCode(); - if (startToCloseTimeout_ != null) hash ^= StartToCloseTimeout.GetHashCode(); - if (heartbeatTimeout_ != null) hash ^= HeartbeatTimeout.GetHashCode(); - if (retryPolicy_ != null) hash ^= RetryPolicy.GetHashCode(); - if (input_ != null) hash ^= Input.GetHashCode(); - if (IdReusePolicy != global::Temporalio.Api.Enums.V1.ActivityIdReusePolicy.Unspecified) hash ^= IdReusePolicy.GetHashCode(); - if (IdConflictPolicy != global::Temporalio.Api.Enums.V1.ActivityIdConflictPolicy.Unspecified) hash ^= IdConflictPolicy.GetHashCode(); - if (searchAttributes_ != null) hash ^= SearchAttributes.GetHashCode(); - if (header_ != null) hash ^= Header.GetHashCode(); - if (userMetadata_ != null) hash ^= UserMetadata.GetHashCode(); - if (priority_ != null) hash ^= Priority.GetHashCode(); + if (workerInfo_ != null) hash ^= WorkerInfo.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -69027,77 +69787,9 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Namespace.Length != 0) { + if (workerInfo_ != null) { output.WriteRawTag(10); - output.WriteString(Namespace); - } - if (Identity.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Identity); - } - if (RequestId.Length != 0) { - output.WriteRawTag(26); - output.WriteString(RequestId); - } - if (ActivityId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(ActivityId); - } - if (activityType_ != null) { - output.WriteRawTag(42); - output.WriteMessage(ActivityType); - } - if (taskQueue_ != null) { - output.WriteRawTag(50); - output.WriteMessage(TaskQueue); - } - if (scheduleToCloseTimeout_ != null) { - output.WriteRawTag(58); - output.WriteMessage(ScheduleToCloseTimeout); - } - if (scheduleToStartTimeout_ != null) { - output.WriteRawTag(66); - output.WriteMessage(ScheduleToStartTimeout); - } - if (startToCloseTimeout_ != null) { - output.WriteRawTag(74); - output.WriteMessage(StartToCloseTimeout); - } - if (heartbeatTimeout_ != null) { - output.WriteRawTag(82); - output.WriteMessage(HeartbeatTimeout); - } - if (retryPolicy_ != null) { - output.WriteRawTag(90); - output.WriteMessage(RetryPolicy); - } - if (input_ != null) { - output.WriteRawTag(98); - output.WriteMessage(Input); - } - if (IdReusePolicy != global::Temporalio.Api.Enums.V1.ActivityIdReusePolicy.Unspecified) { - output.WriteRawTag(104); - output.WriteEnum((int) IdReusePolicy); - } - if (IdConflictPolicy != global::Temporalio.Api.Enums.V1.ActivityIdConflictPolicy.Unspecified) { - output.WriteRawTag(112); - output.WriteEnum((int) IdConflictPolicy); - } - if (searchAttributes_ != null) { - output.WriteRawTag(122); - output.WriteMessage(SearchAttributes); - } - if (header_ != null) { - output.WriteRawTag(130, 1); - output.WriteMessage(Header); - } - if (userMetadata_ != null) { - output.WriteRawTag(138, 1); - output.WriteMessage(UserMetadata); - } - if (priority_ != null) { - output.WriteRawTag(146, 1); - output.WriteMessage(Priority); + output.WriteMessage(WorkerInfo); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -69109,77 +69801,9 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Namespace.Length != 0) { + if (workerInfo_ != null) { output.WriteRawTag(10); - output.WriteString(Namespace); - } - if (Identity.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Identity); - } - if (RequestId.Length != 0) { - output.WriteRawTag(26); - output.WriteString(RequestId); - } - if (ActivityId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(ActivityId); - } - if (activityType_ != null) { - output.WriteRawTag(42); - output.WriteMessage(ActivityType); - } - if (taskQueue_ != null) { - output.WriteRawTag(50); - output.WriteMessage(TaskQueue); - } - if (scheduleToCloseTimeout_ != null) { - output.WriteRawTag(58); - output.WriteMessage(ScheduleToCloseTimeout); - } - if (scheduleToStartTimeout_ != null) { - output.WriteRawTag(66); - output.WriteMessage(ScheduleToStartTimeout); - } - if (startToCloseTimeout_ != null) { - output.WriteRawTag(74); - output.WriteMessage(StartToCloseTimeout); - } - if (heartbeatTimeout_ != null) { - output.WriteRawTag(82); - output.WriteMessage(HeartbeatTimeout); - } - if (retryPolicy_ != null) { - output.WriteRawTag(90); - output.WriteMessage(RetryPolicy); - } - if (input_ != null) { - output.WriteRawTag(98); - output.WriteMessage(Input); - } - if (IdReusePolicy != global::Temporalio.Api.Enums.V1.ActivityIdReusePolicy.Unspecified) { - output.WriteRawTag(104); - output.WriteEnum((int) IdReusePolicy); - } - if (IdConflictPolicy != global::Temporalio.Api.Enums.V1.ActivityIdConflictPolicy.Unspecified) { - output.WriteRawTag(112); - output.WriteEnum((int) IdConflictPolicy); - } - if (searchAttributes_ != null) { - output.WriteRawTag(122); - output.WriteMessage(SearchAttributes); - } - if (header_ != null) { - output.WriteRawTag(130, 1); - output.WriteMessage(Header); - } - if (userMetadata_ != null) { - output.WriteRawTag(138, 1); - output.WriteMessage(UserMetadata); - } - if (priority_ != null) { - output.WriteRawTag(146, 1); - output.WriteMessage(Priority); + output.WriteMessage(WorkerInfo); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -69191,161 +69815,387 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Namespace.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Namespace); - } - if (Identity.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Identity); - } - if (RequestId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); + if (workerInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(WorkerInfo); } - if (ActivityId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ActivityId); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); } - if (activityType_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ActivityType); + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DescribeWorkerResponse other) { + if (other == null) { + return; } - if (taskQueue_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TaskQueue); + if (other.workerInfo_ != null) { + if (workerInfo_ == null) { + WorkerInfo = new global::Temporalio.Api.Worker.V1.WorkerInfo(); + } + WorkerInfo.MergeFrom(other.WorkerInfo); } - if (scheduleToCloseTimeout_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ScheduleToCloseTimeout); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (workerInfo_ == null) { + WorkerInfo = new global::Temporalio.Api.Worker.V1.WorkerInfo(); + } + input.ReadMessage(WorkerInfo); + break; + } + } } - if (scheduleToStartTimeout_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ScheduleToStartTimeout); + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (workerInfo_ == null) { + WorkerInfo = new global::Temporalio.Api.Worker.V1.WorkerInfo(); + } + input.ReadMessage(WorkerInfo); + break; + } + } } - if (startToCloseTimeout_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(StartToCloseTimeout); + } + #endif + + } + + /// + /// Request to pause a workflow execution. + /// + public sealed partial class PauseWorkflowExecutionRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PauseWorkflowExecutionRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[198]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PauseWorkflowExecutionRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PauseWorkflowExecutionRequest(PauseWorkflowExecutionRequest other) : this() { + namespace_ = other.namespace_; + workflowId_ = other.workflowId_; + runId_ = other.runId_; + identity_ = other.identity_; + reason_ = other.reason_; + requestId_ = other.requestId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PauseWorkflowExecutionRequest Clone() { + return new PauseWorkflowExecutionRequest(this); + } + + /// Field number for the "namespace" field. + public const int NamespaceFieldNumber = 1; + private string namespace_ = ""; + /// + /// Namespace of the workflow to pause. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Namespace { + get { return namespace_; } + set { + namespace_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } - if (heartbeatTimeout_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(HeartbeatTimeout); + } + + /// Field number for the "workflow_id" field. + public const int WorkflowIdFieldNumber = 2; + private string workflowId_ = ""; + /// + /// ID of the workflow execution to be paused. Required. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string WorkflowId { + get { return workflowId_; } + set { + workflowId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } - if (retryPolicy_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(RetryPolicy); + } + + /// Field number for the "run_id" field. + public const int RunIdFieldNumber = 3; + private string runId_ = ""; + /// + /// Run ID of the workflow execution to be paused. Optional. If not provided, the current run of the workflow will be paused. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RunId { + get { return runId_; } + set { + runId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } - if (input_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Input); + } + + /// Field number for the "identity" field. + public const int IdentityFieldNumber = 4; + private string identity_ = ""; + /// + /// The identity of the client who initiated this request. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Identity { + get { return identity_; } + set { + identity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } - if (IdReusePolicy != global::Temporalio.Api.Enums.V1.ActivityIdReusePolicy.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) IdReusePolicy); + } + + /// Field number for the "reason" field. + public const int ReasonFieldNumber = 5; + private string reason_ = ""; + /// + /// Reason to pause the workflow execution. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Reason { + get { return reason_; } + set { + reason_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } - if (IdConflictPolicy != global::Temporalio.Api.Enums.V1.ActivityIdConflictPolicy.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) IdConflictPolicy); + } + + /// Field number for the "request_id" field. + public const int RequestIdFieldNumber = 6; + private string requestId_ = ""; + /// + /// A unique identifier for this pause request for idempotence. Typically UUIDv4. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RequestId { + get { return requestId_; } + set { + requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } - if (searchAttributes_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(SearchAttributes); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PauseWorkflowExecutionRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PauseWorkflowExecutionRequest other) { + if (ReferenceEquals(other, null)) { + return false; } - if (header_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(Header); + if (ReferenceEquals(other, this)) { + return true; } - if (userMetadata_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(UserMetadata); + if (Namespace != other.Namespace) return false; + if (WorkflowId != other.WorkflowId) return false; + if (RunId != other.RunId) return false; + if (Identity != other.Identity) return false; + if (Reason != other.Reason) return false; + if (RequestId != other.RequestId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Namespace.Length != 0) hash ^= Namespace.GetHashCode(); + if (WorkflowId.Length != 0) hash ^= WorkflowId.GetHashCode(); + if (RunId.Length != 0) hash ^= RunId.GetHashCode(); + if (Identity.Length != 0) hash ^= Identity.GetHashCode(); + if (Reason.Length != 0) hash ^= Reason.GetHashCode(); + if (RequestId.Length != 0) hash ^= RequestId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); } - if (priority_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(Priority); + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Namespace.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Namespace); + } + if (WorkflowId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(WorkflowId); + } + if (RunId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(RunId); + } + if (Identity.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Identity); + } + if (Reason.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Reason); + } + if (RequestId.Length != 0) { + output.WriteRawTag(50); + output.WriteString(RequestId); } if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); + _unknownFields.WriteTo(output); } - return size; + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(StartActivityExecutionRequest other) { - if (other == null) { - return; + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Namespace.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Namespace); } - if (other.Namespace.Length != 0) { - Namespace = other.Namespace; + if (WorkflowId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(WorkflowId); } - if (other.Identity.Length != 0) { - Identity = other.Identity; + if (RunId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(RunId); } - if (other.RequestId.Length != 0) { - RequestId = other.RequestId; + if (Identity.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Identity); } - if (other.ActivityId.Length != 0) { - ActivityId = other.ActivityId; + if (Reason.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Reason); } - if (other.activityType_ != null) { - if (activityType_ == null) { - ActivityType = new global::Temporalio.Api.Common.V1.ActivityType(); - } - ActivityType.MergeFrom(other.ActivityType); + if (RequestId.Length != 0) { + output.WriteRawTag(50); + output.WriteString(RequestId); } - if (other.taskQueue_ != null) { - if (taskQueue_ == null) { - TaskQueue = new global::Temporalio.Api.TaskQueue.V1.TaskQueue(); - } - TaskQueue.MergeFrom(other.TaskQueue); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); } - if (other.scheduleToCloseTimeout_ != null) { - if (scheduleToCloseTimeout_ == null) { - ScheduleToCloseTimeout = new global::Google.Protobuf.WellKnownTypes.Duration(); - } - ScheduleToCloseTimeout.MergeFrom(other.ScheduleToCloseTimeout); + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Namespace.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Namespace); } - if (other.scheduleToStartTimeout_ != null) { - if (scheduleToStartTimeout_ == null) { - ScheduleToStartTimeout = new global::Google.Protobuf.WellKnownTypes.Duration(); - } - ScheduleToStartTimeout.MergeFrom(other.ScheduleToStartTimeout); + if (WorkflowId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(WorkflowId); } - if (other.startToCloseTimeout_ != null) { - if (startToCloseTimeout_ == null) { - StartToCloseTimeout = new global::Google.Protobuf.WellKnownTypes.Duration(); - } - StartToCloseTimeout.MergeFrom(other.StartToCloseTimeout); + if (RunId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RunId); } - if (other.heartbeatTimeout_ != null) { - if (heartbeatTimeout_ == null) { - HeartbeatTimeout = new global::Google.Protobuf.WellKnownTypes.Duration(); - } - HeartbeatTimeout.MergeFrom(other.HeartbeatTimeout); + if (Identity.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Identity); } - if (other.retryPolicy_ != null) { - if (retryPolicy_ == null) { - RetryPolicy = new global::Temporalio.Api.Common.V1.RetryPolicy(); - } - RetryPolicy.MergeFrom(other.RetryPolicy); + if (Reason.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Reason); } - if (other.input_ != null) { - if (input_ == null) { - Input = new global::Temporalio.Api.Common.V1.Payloads(); - } - Input.MergeFrom(other.Input); + if (RequestId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); } - if (other.IdReusePolicy != global::Temporalio.Api.Enums.V1.ActivityIdReusePolicy.Unspecified) { - IdReusePolicy = other.IdReusePolicy; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); } - if (other.IdConflictPolicy != global::Temporalio.Api.Enums.V1.ActivityIdConflictPolicy.Unspecified) { - IdConflictPolicy = other.IdConflictPolicy; + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PauseWorkflowExecutionRequest other) { + if (other == null) { + return; } - if (other.searchAttributes_ != null) { - if (searchAttributes_ == null) { - SearchAttributes = new global::Temporalio.Api.Common.V1.SearchAttributes(); - } - SearchAttributes.MergeFrom(other.SearchAttributes); + if (other.Namespace.Length != 0) { + Namespace = other.Namespace; } - if (other.header_ != null) { - if (header_ == null) { - Header = new global::Temporalio.Api.Common.V1.Header(); - } - Header.MergeFrom(other.Header); + if (other.WorkflowId.Length != 0) { + WorkflowId = other.WorkflowId; } - if (other.userMetadata_ != null) { - if (userMetadata_ == null) { - UserMetadata = new global::Temporalio.Api.Sdk.V1.UserMetadata(); - } - UserMetadata.MergeFrom(other.UserMetadata); + if (other.RunId.Length != 0) { + RunId = other.RunId; } - if (other.priority_ != null) { - if (priority_ == null) { - Priority = new global::Temporalio.Api.Common.V1.Priority(); - } - Priority.MergeFrom(other.Priority); + if (other.Identity.Length != 0) { + Identity = other.Identity; + } + if (other.Reason.Length != 0) { + Reason = other.Reason; + } + if (other.RequestId.Length != 0) { + RequestId = other.RequestId; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -69367,107 +70217,6641 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - Identity = input.ReadString(); + WorkflowId = input.ReadString(); break; } case 26: { - RequestId = input.ReadString(); + RunId = input.ReadString(); break; } case 34: { - ActivityId = input.ReadString(); + Identity = input.ReadString(); break; } case 42: { - if (activityType_ == null) { - ActivityType = new global::Temporalio.Api.Common.V1.ActivityType(); - } - input.ReadMessage(ActivityType); + Reason = input.ReadString(); break; } case 50: { - if (taskQueue_ == null) { - TaskQueue = new global::Temporalio.Api.TaskQueue.V1.TaskQueue(); - } - input.ReadMessage(TaskQueue); - break; - } - case 58: { - if (scheduleToCloseTimeout_ == null) { - ScheduleToCloseTimeout = new global::Google.Protobuf.WellKnownTypes.Duration(); - } - input.ReadMessage(ScheduleToCloseTimeout); - break; - } - case 66: { - if (scheduleToStartTimeout_ == null) { - ScheduleToStartTimeout = new global::Google.Protobuf.WellKnownTypes.Duration(); - } - input.ReadMessage(ScheduleToStartTimeout); + RequestId = input.ReadString(); break; } - case 74: { - if (startToCloseTimeout_ == null) { - StartToCloseTimeout = new global::Google.Protobuf.WellKnownTypes.Duration(); - } - input.ReadMessage(StartToCloseTimeout); + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - } - case 82: { - if (heartbeatTimeout_ == null) { - HeartbeatTimeout = new global::Google.Protobuf.WellKnownTypes.Duration(); - } - input.ReadMessage(HeartbeatTimeout); + case 10: { + Namespace = input.ReadString(); break; } - case 90: { - if (retryPolicy_ == null) { - RetryPolicy = new global::Temporalio.Api.Common.V1.RetryPolicy(); - } - input.ReadMessage(RetryPolicy); + case 18: { + WorkflowId = input.ReadString(); break; } - case 98: { - if (input_ == null) { - Input = new global::Temporalio.Api.Common.V1.Payloads(); - } - input.ReadMessage(Input); + case 26: { + RunId = input.ReadString(); break; } - case 104: { - IdReusePolicy = (global::Temporalio.Api.Enums.V1.ActivityIdReusePolicy) input.ReadEnum(); + case 34: { + Identity = input.ReadString(); break; } - case 112: { - IdConflictPolicy = (global::Temporalio.Api.Enums.V1.ActivityIdConflictPolicy) input.ReadEnum(); + case 42: { + Reason = input.ReadString(); break; } - case 122: { - if (searchAttributes_ == null) { - SearchAttributes = new global::Temporalio.Api.Common.V1.SearchAttributes(); - } - input.ReadMessage(SearchAttributes); + case 50: { + RequestId = input.ReadString(); break; } - case 130: { - if (header_ == null) { + } + } + } + #endif + + } + + /// + /// Response to a successful PauseWorkflowExecution request. + /// + public sealed partial class PauseWorkflowExecutionResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PauseWorkflowExecutionResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[199]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PauseWorkflowExecutionResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PauseWorkflowExecutionResponse(PauseWorkflowExecutionResponse other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PauseWorkflowExecutionResponse Clone() { + return new PauseWorkflowExecutionResponse(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PauseWorkflowExecutionResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PauseWorkflowExecutionResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PauseWorkflowExecutionResponse other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + public sealed partial class UnpauseWorkflowExecutionRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UnpauseWorkflowExecutionRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[200]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UnpauseWorkflowExecutionRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UnpauseWorkflowExecutionRequest(UnpauseWorkflowExecutionRequest other) : this() { + namespace_ = other.namespace_; + workflowId_ = other.workflowId_; + runId_ = other.runId_; + identity_ = other.identity_; + reason_ = other.reason_; + requestId_ = other.requestId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UnpauseWorkflowExecutionRequest Clone() { + return new UnpauseWorkflowExecutionRequest(this); + } + + /// Field number for the "namespace" field. + public const int NamespaceFieldNumber = 1; + private string namespace_ = ""; + /// + /// Namespace of the workflow to unpause. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Namespace { + get { return namespace_; } + set { + namespace_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "workflow_id" field. + public const int WorkflowIdFieldNumber = 2; + private string workflowId_ = ""; + /// + /// ID of the workflow execution to be paused. Required. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string WorkflowId { + get { return workflowId_; } + set { + workflowId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "run_id" field. + public const int RunIdFieldNumber = 3; + private string runId_ = ""; + /// + /// Run ID of the workflow execution to be paused. Optional. If not provided, the current run of the workflow will be paused. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RunId { + get { return runId_; } + set { + runId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "identity" field. + public const int IdentityFieldNumber = 4; + private string identity_ = ""; + /// + /// The identity of the client who initiated this request. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Identity { + get { return identity_; } + set { + identity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "reason" field. + public const int ReasonFieldNumber = 5; + private string reason_ = ""; + /// + /// Reason to unpause the workflow execution. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Reason { + get { return reason_; } + set { + reason_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "request_id" field. + public const int RequestIdFieldNumber = 6; + private string requestId_ = ""; + /// + /// A unique identifier for this unpause request for idempotence. Typically UUIDv4. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RequestId { + get { return requestId_; } + set { + requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UnpauseWorkflowExecutionRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UnpauseWorkflowExecutionRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Namespace != other.Namespace) return false; + if (WorkflowId != other.WorkflowId) return false; + if (RunId != other.RunId) return false; + if (Identity != other.Identity) return false; + if (Reason != other.Reason) return false; + if (RequestId != other.RequestId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Namespace.Length != 0) hash ^= Namespace.GetHashCode(); + if (WorkflowId.Length != 0) hash ^= WorkflowId.GetHashCode(); + if (RunId.Length != 0) hash ^= RunId.GetHashCode(); + if (Identity.Length != 0) hash ^= Identity.GetHashCode(); + if (Reason.Length != 0) hash ^= Reason.GetHashCode(); + if (RequestId.Length != 0) hash ^= RequestId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Namespace.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Namespace); + } + if (WorkflowId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(WorkflowId); + } + if (RunId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(RunId); + } + if (Identity.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Identity); + } + if (Reason.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Reason); + } + if (RequestId.Length != 0) { + output.WriteRawTag(50); + output.WriteString(RequestId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Namespace.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Namespace); + } + if (WorkflowId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(WorkflowId); + } + if (RunId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(RunId); + } + if (Identity.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Identity); + } + if (Reason.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Reason); + } + if (RequestId.Length != 0) { + output.WriteRawTag(50); + output.WriteString(RequestId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Namespace.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Namespace); + } + if (WorkflowId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(WorkflowId); + } + if (RunId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RunId); + } + if (Identity.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Identity); + } + if (Reason.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Reason); + } + if (RequestId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UnpauseWorkflowExecutionRequest other) { + if (other == null) { + return; + } + if (other.Namespace.Length != 0) { + Namespace = other.Namespace; + } + if (other.WorkflowId.Length != 0) { + WorkflowId = other.WorkflowId; + } + if (other.RunId.Length != 0) { + RunId = other.RunId; + } + if (other.Identity.Length != 0) { + Identity = other.Identity; + } + if (other.Reason.Length != 0) { + Reason = other.Reason; + } + if (other.RequestId.Length != 0) { + RequestId = other.RequestId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Namespace = input.ReadString(); + break; + } + case 18: { + WorkflowId = input.ReadString(); + break; + } + case 26: { + RunId = input.ReadString(); + break; + } + case 34: { + Identity = input.ReadString(); + break; + } + case 42: { + Reason = input.ReadString(); + break; + } + case 50: { + RequestId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Namespace = input.ReadString(); + break; + } + case 18: { + WorkflowId = input.ReadString(); + break; + } + case 26: { + RunId = input.ReadString(); + break; + } + case 34: { + Identity = input.ReadString(); + break; + } + case 42: { + Reason = input.ReadString(); + break; + } + case 50: { + RequestId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Response to a successful UnpauseWorkflowExecution request. + /// + public sealed partial class UnpauseWorkflowExecutionResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UnpauseWorkflowExecutionResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[201]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UnpauseWorkflowExecutionResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UnpauseWorkflowExecutionResponse(UnpauseWorkflowExecutionResponse other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UnpauseWorkflowExecutionResponse Clone() { + return new UnpauseWorkflowExecutionResponse(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UnpauseWorkflowExecutionResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UnpauseWorkflowExecutionResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UnpauseWorkflowExecutionResponse other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + public sealed partial class StartActivityExecutionRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StartActivityExecutionRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[202]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StartActivityExecutionRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StartActivityExecutionRequest(StartActivityExecutionRequest other) : this() { + namespace_ = other.namespace_; + identity_ = other.identity_; + requestId_ = other.requestId_; + activityId_ = other.activityId_; + activityType_ = other.activityType_ != null ? other.activityType_.Clone() : null; + taskQueue_ = other.taskQueue_ != null ? other.taskQueue_.Clone() : null; + scheduleToCloseTimeout_ = other.scheduleToCloseTimeout_ != null ? other.scheduleToCloseTimeout_.Clone() : null; + scheduleToStartTimeout_ = other.scheduleToStartTimeout_ != null ? other.scheduleToStartTimeout_.Clone() : null; + startToCloseTimeout_ = other.startToCloseTimeout_ != null ? other.startToCloseTimeout_.Clone() : null; + heartbeatTimeout_ = other.heartbeatTimeout_ != null ? other.heartbeatTimeout_.Clone() : null; + retryPolicy_ = other.retryPolicy_ != null ? other.retryPolicy_.Clone() : null; + input_ = other.input_ != null ? other.input_.Clone() : null; + idReusePolicy_ = other.idReusePolicy_; + idConflictPolicy_ = other.idConflictPolicy_; + searchAttributes_ = other.searchAttributes_ != null ? other.searchAttributes_.Clone() : null; + header_ = other.header_ != null ? other.header_.Clone() : null; + userMetadata_ = other.userMetadata_ != null ? other.userMetadata_.Clone() : null; + priority_ = other.priority_ != null ? other.priority_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StartActivityExecutionRequest Clone() { + return new StartActivityExecutionRequest(this); + } + + /// Field number for the "namespace" field. + public const int NamespaceFieldNumber = 1; + private string namespace_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Namespace { + get { return namespace_; } + set { + namespace_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "identity" field. + public const int IdentityFieldNumber = 2; + private string identity_ = ""; + /// + /// The identity of the client who initiated this request + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Identity { + get { return identity_; } + set { + identity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "request_id" field. + public const int RequestIdFieldNumber = 3; + private string requestId_ = ""; + /// + /// A unique identifier for this start request. Typically UUIDv4. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RequestId { + get { return requestId_; } + set { + requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "activity_id" field. + public const int ActivityIdFieldNumber = 4; + private string activityId_ = ""; + /// + /// 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. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ActivityId { + get { return activityId_; } + set { + activityId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "activity_type" field. + public const int ActivityTypeFieldNumber = 5; + private global::Temporalio.Api.Common.V1.ActivityType activityType_; + /// + /// The type of the activity, a string that corresponds to a registered activity on a worker. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Common.V1.ActivityType ActivityType { + get { return activityType_; } + set { + activityType_ = value; + } + } + + /// Field number for the "task_queue" field. + public const int TaskQueueFieldNumber = 6; + private global::Temporalio.Api.TaskQueue.V1.TaskQueue taskQueue_; + /// + /// Task queue to schedule this activity on. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.TaskQueue.V1.TaskQueue TaskQueue { + get { return taskQueue_; } + set { + taskQueue_ = value; + } + } + + /// Field number for the "schedule_to_close_timeout" field. + public const int ScheduleToCloseTimeoutFieldNumber = 7; + private global::Google.Protobuf.WellKnownTypes.Duration scheduleToCloseTimeout_; + /// + /// 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. --) + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration ScheduleToCloseTimeout { + get { return scheduleToCloseTimeout_; } + set { + scheduleToCloseTimeout_ = value; + } + } + + /// Field number for the "schedule_to_start_timeout" field. + public const int ScheduleToStartTimeoutFieldNumber = 8; + private global::Google.Protobuf.WellKnownTypes.Duration scheduleToStartTimeout_; + /// + /// 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. --) + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration ScheduleToStartTimeout { + get { return scheduleToStartTimeout_; } + set { + scheduleToStartTimeout_ = value; + } + } + + /// Field number for the "start_to_close_timeout" field. + public const int StartToCloseTimeoutFieldNumber = 9; + private global::Google.Protobuf.WellKnownTypes.Duration startToCloseTimeout_; + /// + /// 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. --) + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration StartToCloseTimeout { + get { return startToCloseTimeout_; } + set { + startToCloseTimeout_ = value; + } + } + + /// Field number for the "heartbeat_timeout" field. + public const int HeartbeatTimeoutFieldNumber = 10; + private global::Google.Protobuf.WellKnownTypes.Duration heartbeatTimeout_; + /// + /// Maximum permitted time between successful worker heartbeats. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration HeartbeatTimeout { + get { return heartbeatTimeout_; } + set { + heartbeatTimeout_ = value; + } + } + + /// Field number for the "retry_policy" field. + public const int RetryPolicyFieldNumber = 11; + private global::Temporalio.Api.Common.V1.RetryPolicy retryPolicy_; + /// + /// The retry policy for the activity. Will never exceed `schedule_to_close_timeout`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Common.V1.RetryPolicy RetryPolicy { + get { return retryPolicy_; } + set { + retryPolicy_ = value; + } + } + + /// Field number for the "input" field. + public const int InputFieldNumber = 12; + private global::Temporalio.Api.Common.V1.Payloads input_; + /// + /// Serialized arguments to the activity. These are passed as arguments to the activity function. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Common.V1.Payloads Input { + get { return input_; } + set { + input_ = value; + } + } + + /// Field number for the "id_reuse_policy" field. + public const int IdReusePolicyFieldNumber = 13; + private global::Temporalio.Api.Enums.V1.ActivityIdReusePolicy idReusePolicy_ = global::Temporalio.Api.Enums.V1.ActivityIdReusePolicy.Unspecified; + /// + /// Defines whether to allow re-using the activity id from a previously *closed* activity. + /// The default policy is ACTIVITY_ID_REUSE_POLICY_ALLOW_DUPLICATE. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Enums.V1.ActivityIdReusePolicy IdReusePolicy { + get { return idReusePolicy_; } + set { + idReusePolicy_ = value; + } + } + + /// Field number for the "id_conflict_policy" field. + public const int IdConflictPolicyFieldNumber = 14; + private global::Temporalio.Api.Enums.V1.ActivityIdConflictPolicy idConflictPolicy_ = global::Temporalio.Api.Enums.V1.ActivityIdConflictPolicy.Unspecified; + /// + /// Defines how to resolve an activity id conflict with a *running* activity. + /// The default policy is ACTIVITY_ID_CONFLICT_POLICY_FAIL. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Enums.V1.ActivityIdConflictPolicy IdConflictPolicy { + get { return idConflictPolicy_; } + set { + idConflictPolicy_ = value; + } + } + + /// Field number for the "search_attributes" field. + public const int SearchAttributesFieldNumber = 15; + private global::Temporalio.Api.Common.V1.SearchAttributes searchAttributes_; + /// + /// Search attributes for indexing. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Common.V1.SearchAttributes SearchAttributes { + get { return searchAttributes_; } + set { + searchAttributes_ = value; + } + } + + /// Field number for the "header" field. + public const int HeaderFieldNumber = 16; + private global::Temporalio.Api.Common.V1.Header header_; + /// + /// Header for context propagation and tracing purposes. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Common.V1.Header Header { + get { return header_; } + set { + header_ = value; + } + } + + /// Field number for the "user_metadata" field. + public const int UserMetadataFieldNumber = 17; + private global::Temporalio.Api.Sdk.V1.UserMetadata userMetadata_; + /// + /// Metadata for use by user interfaces to display the fixed as-of-start summary and details of the activity. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Sdk.V1.UserMetadata UserMetadata { + get { return userMetadata_; } + set { + userMetadata_ = value; + } + } + + /// Field number for the "priority" field. + public const int PriorityFieldNumber = 18; + private global::Temporalio.Api.Common.V1.Priority priority_; + /// + /// Priority metadata. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Common.V1.Priority Priority { + get { return priority_; } + set { + priority_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StartActivityExecutionRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StartActivityExecutionRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Namespace != other.Namespace) return false; + if (Identity != other.Identity) return false; + if (RequestId != other.RequestId) return false; + if (ActivityId != other.ActivityId) return false; + if (!object.Equals(ActivityType, other.ActivityType)) return false; + if (!object.Equals(TaskQueue, other.TaskQueue)) return false; + if (!object.Equals(ScheduleToCloseTimeout, other.ScheduleToCloseTimeout)) return false; + if (!object.Equals(ScheduleToStartTimeout, other.ScheduleToStartTimeout)) return false; + if (!object.Equals(StartToCloseTimeout, other.StartToCloseTimeout)) return false; + if (!object.Equals(HeartbeatTimeout, other.HeartbeatTimeout)) return false; + if (!object.Equals(RetryPolicy, other.RetryPolicy)) return false; + if (!object.Equals(Input, other.Input)) return false; + if (IdReusePolicy != other.IdReusePolicy) return false; + if (IdConflictPolicy != other.IdConflictPolicy) return false; + if (!object.Equals(SearchAttributes, other.SearchAttributes)) return false; + if (!object.Equals(Header, other.Header)) return false; + if (!object.Equals(UserMetadata, other.UserMetadata)) return false; + if (!object.Equals(Priority, other.Priority)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Namespace.Length != 0) hash ^= Namespace.GetHashCode(); + if (Identity.Length != 0) hash ^= Identity.GetHashCode(); + if (RequestId.Length != 0) hash ^= RequestId.GetHashCode(); + if (ActivityId.Length != 0) hash ^= ActivityId.GetHashCode(); + if (activityType_ != null) hash ^= ActivityType.GetHashCode(); + if (taskQueue_ != null) hash ^= TaskQueue.GetHashCode(); + if (scheduleToCloseTimeout_ != null) hash ^= ScheduleToCloseTimeout.GetHashCode(); + if (scheduleToStartTimeout_ != null) hash ^= ScheduleToStartTimeout.GetHashCode(); + if (startToCloseTimeout_ != null) hash ^= StartToCloseTimeout.GetHashCode(); + if (heartbeatTimeout_ != null) hash ^= HeartbeatTimeout.GetHashCode(); + if (retryPolicy_ != null) hash ^= RetryPolicy.GetHashCode(); + if (input_ != null) hash ^= Input.GetHashCode(); + if (IdReusePolicy != global::Temporalio.Api.Enums.V1.ActivityIdReusePolicy.Unspecified) hash ^= IdReusePolicy.GetHashCode(); + if (IdConflictPolicy != global::Temporalio.Api.Enums.V1.ActivityIdConflictPolicy.Unspecified) hash ^= IdConflictPolicy.GetHashCode(); + if (searchAttributes_ != null) hash ^= SearchAttributes.GetHashCode(); + if (header_ != null) hash ^= Header.GetHashCode(); + if (userMetadata_ != null) hash ^= UserMetadata.GetHashCode(); + if (priority_ != null) hash ^= Priority.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Namespace.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Namespace); + } + if (Identity.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Identity); + } + if (RequestId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(RequestId); + } + if (ActivityId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(ActivityId); + } + if (activityType_ != null) { + output.WriteRawTag(42); + output.WriteMessage(ActivityType); + } + if (taskQueue_ != null) { + output.WriteRawTag(50); + output.WriteMessage(TaskQueue); + } + if (scheduleToCloseTimeout_ != null) { + output.WriteRawTag(58); + output.WriteMessage(ScheduleToCloseTimeout); + } + if (scheduleToStartTimeout_ != null) { + output.WriteRawTag(66); + output.WriteMessage(ScheduleToStartTimeout); + } + if (startToCloseTimeout_ != null) { + output.WriteRawTag(74); + output.WriteMessage(StartToCloseTimeout); + } + if (heartbeatTimeout_ != null) { + output.WriteRawTag(82); + output.WriteMessage(HeartbeatTimeout); + } + if (retryPolicy_ != null) { + output.WriteRawTag(90); + output.WriteMessage(RetryPolicy); + } + if (input_ != null) { + output.WriteRawTag(98); + output.WriteMessage(Input); + } + if (IdReusePolicy != global::Temporalio.Api.Enums.V1.ActivityIdReusePolicy.Unspecified) { + output.WriteRawTag(104); + output.WriteEnum((int) IdReusePolicy); + } + if (IdConflictPolicy != global::Temporalio.Api.Enums.V1.ActivityIdConflictPolicy.Unspecified) { + output.WriteRawTag(112); + output.WriteEnum((int) IdConflictPolicy); + } + if (searchAttributes_ != null) { + output.WriteRawTag(122); + output.WriteMessage(SearchAttributes); + } + if (header_ != null) { + output.WriteRawTag(130, 1); + output.WriteMessage(Header); + } + if (userMetadata_ != null) { + output.WriteRawTag(138, 1); + output.WriteMessage(UserMetadata); + } + if (priority_ != null) { + output.WriteRawTag(146, 1); + output.WriteMessage(Priority); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Namespace.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Namespace); + } + if (Identity.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Identity); + } + if (RequestId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(RequestId); + } + if (ActivityId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(ActivityId); + } + if (activityType_ != null) { + output.WriteRawTag(42); + output.WriteMessage(ActivityType); + } + if (taskQueue_ != null) { + output.WriteRawTag(50); + output.WriteMessage(TaskQueue); + } + if (scheduleToCloseTimeout_ != null) { + output.WriteRawTag(58); + output.WriteMessage(ScheduleToCloseTimeout); + } + if (scheduleToStartTimeout_ != null) { + output.WriteRawTag(66); + output.WriteMessage(ScheduleToStartTimeout); + } + if (startToCloseTimeout_ != null) { + output.WriteRawTag(74); + output.WriteMessage(StartToCloseTimeout); + } + if (heartbeatTimeout_ != null) { + output.WriteRawTag(82); + output.WriteMessage(HeartbeatTimeout); + } + if (retryPolicy_ != null) { + output.WriteRawTag(90); + output.WriteMessage(RetryPolicy); + } + if (input_ != null) { + output.WriteRawTag(98); + output.WriteMessage(Input); + } + if (IdReusePolicy != global::Temporalio.Api.Enums.V1.ActivityIdReusePolicy.Unspecified) { + output.WriteRawTag(104); + output.WriteEnum((int) IdReusePolicy); + } + if (IdConflictPolicy != global::Temporalio.Api.Enums.V1.ActivityIdConflictPolicy.Unspecified) { + output.WriteRawTag(112); + output.WriteEnum((int) IdConflictPolicy); + } + if (searchAttributes_ != null) { + output.WriteRawTag(122); + output.WriteMessage(SearchAttributes); + } + if (header_ != null) { + output.WriteRawTag(130, 1); + output.WriteMessage(Header); + } + if (userMetadata_ != null) { + output.WriteRawTag(138, 1); + output.WriteMessage(UserMetadata); + } + if (priority_ != null) { + output.WriteRawTag(146, 1); + output.WriteMessage(Priority); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Namespace.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Namespace); + } + if (Identity.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Identity); + } + if (RequestId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); + } + if (ActivityId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ActivityId); + } + if (activityType_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ActivityType); + } + if (taskQueue_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TaskQueue); + } + if (scheduleToCloseTimeout_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ScheduleToCloseTimeout); + } + if (scheduleToStartTimeout_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ScheduleToStartTimeout); + } + if (startToCloseTimeout_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StartToCloseTimeout); + } + if (heartbeatTimeout_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(HeartbeatTimeout); + } + if (retryPolicy_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RetryPolicy); + } + if (input_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Input); + } + if (IdReusePolicy != global::Temporalio.Api.Enums.V1.ActivityIdReusePolicy.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) IdReusePolicy); + } + if (IdConflictPolicy != global::Temporalio.Api.Enums.V1.ActivityIdConflictPolicy.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) IdConflictPolicy); + } + if (searchAttributes_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SearchAttributes); + } + if (header_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(Header); + } + if (userMetadata_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(UserMetadata); + } + if (priority_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(Priority); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StartActivityExecutionRequest other) { + if (other == null) { + return; + } + if (other.Namespace.Length != 0) { + Namespace = other.Namespace; + } + if (other.Identity.Length != 0) { + Identity = other.Identity; + } + if (other.RequestId.Length != 0) { + RequestId = other.RequestId; + } + if (other.ActivityId.Length != 0) { + ActivityId = other.ActivityId; + } + if (other.activityType_ != null) { + if (activityType_ == null) { + ActivityType = new global::Temporalio.Api.Common.V1.ActivityType(); + } + ActivityType.MergeFrom(other.ActivityType); + } + if (other.taskQueue_ != null) { + if (taskQueue_ == null) { + TaskQueue = new global::Temporalio.Api.TaskQueue.V1.TaskQueue(); + } + TaskQueue.MergeFrom(other.TaskQueue); + } + if (other.scheduleToCloseTimeout_ != null) { + if (scheduleToCloseTimeout_ == null) { + ScheduleToCloseTimeout = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + ScheduleToCloseTimeout.MergeFrom(other.ScheduleToCloseTimeout); + } + if (other.scheduleToStartTimeout_ != null) { + if (scheduleToStartTimeout_ == null) { + ScheduleToStartTimeout = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + ScheduleToStartTimeout.MergeFrom(other.ScheduleToStartTimeout); + } + if (other.startToCloseTimeout_ != null) { + if (startToCloseTimeout_ == null) { + StartToCloseTimeout = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + StartToCloseTimeout.MergeFrom(other.StartToCloseTimeout); + } + if (other.heartbeatTimeout_ != null) { + if (heartbeatTimeout_ == null) { + HeartbeatTimeout = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + HeartbeatTimeout.MergeFrom(other.HeartbeatTimeout); + } + if (other.retryPolicy_ != null) { + if (retryPolicy_ == null) { + RetryPolicy = new global::Temporalio.Api.Common.V1.RetryPolicy(); + } + RetryPolicy.MergeFrom(other.RetryPolicy); + } + if (other.input_ != null) { + if (input_ == null) { + Input = new global::Temporalio.Api.Common.V1.Payloads(); + } + Input.MergeFrom(other.Input); + } + if (other.IdReusePolicy != global::Temporalio.Api.Enums.V1.ActivityIdReusePolicy.Unspecified) { + IdReusePolicy = other.IdReusePolicy; + } + if (other.IdConflictPolicy != global::Temporalio.Api.Enums.V1.ActivityIdConflictPolicy.Unspecified) { + IdConflictPolicy = other.IdConflictPolicy; + } + if (other.searchAttributes_ != null) { + if (searchAttributes_ == null) { + SearchAttributes = new global::Temporalio.Api.Common.V1.SearchAttributes(); + } + SearchAttributes.MergeFrom(other.SearchAttributes); + } + if (other.header_ != null) { + if (header_ == null) { + Header = new global::Temporalio.Api.Common.V1.Header(); + } + Header.MergeFrom(other.Header); + } + if (other.userMetadata_ != null) { + if (userMetadata_ == null) { + UserMetadata = new global::Temporalio.Api.Sdk.V1.UserMetadata(); + } + UserMetadata.MergeFrom(other.UserMetadata); + } + if (other.priority_ != null) { + if (priority_ == null) { + Priority = new global::Temporalio.Api.Common.V1.Priority(); + } + Priority.MergeFrom(other.Priority); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Namespace = input.ReadString(); + break; + } + case 18: { + Identity = input.ReadString(); + break; + } + case 26: { + RequestId = input.ReadString(); + break; + } + case 34: { + ActivityId = input.ReadString(); + break; + } + case 42: { + if (activityType_ == null) { + ActivityType = new global::Temporalio.Api.Common.V1.ActivityType(); + } + input.ReadMessage(ActivityType); + break; + } + case 50: { + if (taskQueue_ == null) { + TaskQueue = new global::Temporalio.Api.TaskQueue.V1.TaskQueue(); + } + input.ReadMessage(TaskQueue); + break; + } + case 58: { + if (scheduleToCloseTimeout_ == null) { + ScheduleToCloseTimeout = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(ScheduleToCloseTimeout); + break; + } + case 66: { + if (scheduleToStartTimeout_ == null) { + ScheduleToStartTimeout = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(ScheduleToStartTimeout); + break; + } + case 74: { + if (startToCloseTimeout_ == null) { + StartToCloseTimeout = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(StartToCloseTimeout); + break; + } + case 82: { + if (heartbeatTimeout_ == null) { + HeartbeatTimeout = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(HeartbeatTimeout); + break; + } + case 90: { + if (retryPolicy_ == null) { + RetryPolicy = new global::Temporalio.Api.Common.V1.RetryPolicy(); + } + input.ReadMessage(RetryPolicy); + break; + } + case 98: { + if (input_ == null) { + Input = new global::Temporalio.Api.Common.V1.Payloads(); + } + input.ReadMessage(Input); + break; + } + case 104: { + IdReusePolicy = (global::Temporalio.Api.Enums.V1.ActivityIdReusePolicy) input.ReadEnum(); + break; + } + case 112: { + IdConflictPolicy = (global::Temporalio.Api.Enums.V1.ActivityIdConflictPolicy) input.ReadEnum(); + break; + } + case 122: { + if (searchAttributes_ == null) { + SearchAttributes = new global::Temporalio.Api.Common.V1.SearchAttributes(); + } + input.ReadMessage(SearchAttributes); + break; + } + case 130: { + if (header_ == null) { + Header = new global::Temporalio.Api.Common.V1.Header(); + } + input.ReadMessage(Header); + break; + } + case 138: { + if (userMetadata_ == null) { + UserMetadata = new global::Temporalio.Api.Sdk.V1.UserMetadata(); + } + input.ReadMessage(UserMetadata); + break; + } + case 146: { + if (priority_ == null) { + Priority = new global::Temporalio.Api.Common.V1.Priority(); + } + input.ReadMessage(Priority); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Namespace = input.ReadString(); + break; + } + case 18: { + Identity = input.ReadString(); + break; + } + case 26: { + RequestId = input.ReadString(); + break; + } + case 34: { + ActivityId = input.ReadString(); + break; + } + case 42: { + if (activityType_ == null) { + ActivityType = new global::Temporalio.Api.Common.V1.ActivityType(); + } + input.ReadMessage(ActivityType); + break; + } + case 50: { + if (taskQueue_ == null) { + TaskQueue = new global::Temporalio.Api.TaskQueue.V1.TaskQueue(); + } + input.ReadMessage(TaskQueue); + break; + } + case 58: { + if (scheduleToCloseTimeout_ == null) { + ScheduleToCloseTimeout = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(ScheduleToCloseTimeout); + break; + } + case 66: { + if (scheduleToStartTimeout_ == null) { + ScheduleToStartTimeout = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(ScheduleToStartTimeout); + break; + } + case 74: { + if (startToCloseTimeout_ == null) { + StartToCloseTimeout = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(StartToCloseTimeout); + break; + } + case 82: { + if (heartbeatTimeout_ == null) { + HeartbeatTimeout = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(HeartbeatTimeout); + break; + } + case 90: { + if (retryPolicy_ == null) { + RetryPolicy = new global::Temporalio.Api.Common.V1.RetryPolicy(); + } + input.ReadMessage(RetryPolicy); + break; + } + case 98: { + if (input_ == null) { + Input = new global::Temporalio.Api.Common.V1.Payloads(); + } + input.ReadMessage(Input); + break; + } + case 104: { + IdReusePolicy = (global::Temporalio.Api.Enums.V1.ActivityIdReusePolicy) input.ReadEnum(); + break; + } + case 112: { + IdConflictPolicy = (global::Temporalio.Api.Enums.V1.ActivityIdConflictPolicy) input.ReadEnum(); + break; + } + case 122: { + if (searchAttributes_ == null) { + SearchAttributes = new global::Temporalio.Api.Common.V1.SearchAttributes(); + } + input.ReadMessage(SearchAttributes); + break; + } + case 130: { + if (header_ == null) { Header = new global::Temporalio.Api.Common.V1.Header(); } - input.ReadMessage(Header); + input.ReadMessage(Header); + break; + } + case 138: { + if (userMetadata_ == null) { + UserMetadata = new global::Temporalio.Api.Sdk.V1.UserMetadata(); + } + input.ReadMessage(UserMetadata); + break; + } + case 146: { + if (priority_ == null) { + Priority = new global::Temporalio.Api.Common.V1.Priority(); + } + input.ReadMessage(Priority); + break; + } + } + } + } + #endif + + } + + public sealed partial class StartActivityExecutionResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StartActivityExecutionResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[203]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StartActivityExecutionResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StartActivityExecutionResponse(StartActivityExecutionResponse other) : this() { + runId_ = other.runId_; + started_ = other.started_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StartActivityExecutionResponse Clone() { + return new StartActivityExecutionResponse(this); + } + + /// Field number for the "run_id" field. + public const int RunIdFieldNumber = 1; + private string runId_ = ""; + /// + /// The run ID of the activity that was started - or used (via ACTIVITY_ID_CONFLICT_POLICY_USE_EXISTING). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RunId { + get { return runId_; } + set { + runId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "started" field. + public const int StartedFieldNumber = 2; + private bool started_; + /// + /// If true, a new activity was started. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Started { + get { return started_; } + set { + started_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StartActivityExecutionResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StartActivityExecutionResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (RunId != other.RunId) return false; + if (Started != other.Started) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (RunId.Length != 0) hash ^= RunId.GetHashCode(); + if (Started != false) hash ^= Started.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (RunId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(RunId); + } + if (Started != false) { + output.WriteRawTag(16); + output.WriteBool(Started); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (RunId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(RunId); + } + if (Started != false) { + output.WriteRawTag(16); + output.WriteBool(Started); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (RunId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RunId); + } + if (Started != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StartActivityExecutionResponse other) { + if (other == null) { + return; + } + if (other.RunId.Length != 0) { + RunId = other.RunId; + } + if (other.Started != false) { + Started = other.Started; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + RunId = input.ReadString(); + break; + } + case 16: { + Started = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + RunId = input.ReadString(); + break; + } + case 16: { + Started = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + public sealed partial class DescribeActivityExecutionRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DescribeActivityExecutionRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[204]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DescribeActivityExecutionRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DescribeActivityExecutionRequest(DescribeActivityExecutionRequest other) : this() { + namespace_ = other.namespace_; + activityId_ = other.activityId_; + runId_ = other.runId_; + includeInput_ = other.includeInput_; + includeOutcome_ = other.includeOutcome_; + longPollToken_ = other.longPollToken_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DescribeActivityExecutionRequest Clone() { + return new DescribeActivityExecutionRequest(this); + } + + /// Field number for the "namespace" field. + public const int NamespaceFieldNumber = 1; + private string namespace_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Namespace { + get { return namespace_; } + set { + namespace_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "activity_id" field. + public const int ActivityIdFieldNumber = 2; + private string activityId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ActivityId { + get { return activityId_; } + set { + activityId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "run_id" field. + public const int RunIdFieldNumber = 3; + private string runId_ = ""; + /// + /// Activity run ID. If empty the request targets the latest run. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RunId { + get { return runId_; } + set { + runId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "include_input" field. + public const int IncludeInputFieldNumber = 4; + private bool includeInput_; + /// + /// Include the input field in the response. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IncludeInput { + get { return includeInput_; } + set { + includeInput_ = value; + } + } + + /// Field number for the "include_outcome" field. + public const int IncludeOutcomeFieldNumber = 5; + private bool includeOutcome_; + /// + /// Include the outcome (result/failure) in the response if the activity has completed. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IncludeOutcome { + get { return includeOutcome_; } + set { + includeOutcome_ = value; + } + } + + /// Field number for the "long_poll_token" field. + public const int LongPollTokenFieldNumber = 6; + private pb::ByteString longPollToken_ = pb::ByteString.Empty; + /// + /// 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. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString LongPollToken { + get { return longPollToken_; } + set { + longPollToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DescribeActivityExecutionRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DescribeActivityExecutionRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Namespace != other.Namespace) return false; + if (ActivityId != other.ActivityId) return false; + if (RunId != other.RunId) return false; + if (IncludeInput != other.IncludeInput) return false; + if (IncludeOutcome != other.IncludeOutcome) return false; + if (LongPollToken != other.LongPollToken) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Namespace.Length != 0) hash ^= Namespace.GetHashCode(); + if (ActivityId.Length != 0) hash ^= ActivityId.GetHashCode(); + if (RunId.Length != 0) hash ^= RunId.GetHashCode(); + if (IncludeInput != false) hash ^= IncludeInput.GetHashCode(); + if (IncludeOutcome != false) hash ^= IncludeOutcome.GetHashCode(); + if (LongPollToken.Length != 0) hash ^= LongPollToken.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Namespace.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Namespace); + } + if (ActivityId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ActivityId); + } + if (RunId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(RunId); + } + if (IncludeInput != false) { + output.WriteRawTag(32); + output.WriteBool(IncludeInput); + } + if (IncludeOutcome != false) { + output.WriteRawTag(40); + output.WriteBool(IncludeOutcome); + } + if (LongPollToken.Length != 0) { + output.WriteRawTag(50); + output.WriteBytes(LongPollToken); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Namespace.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Namespace); + } + if (ActivityId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ActivityId); + } + if (RunId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(RunId); + } + if (IncludeInput != false) { + output.WriteRawTag(32); + output.WriteBool(IncludeInput); + } + if (IncludeOutcome != false) { + output.WriteRawTag(40); + output.WriteBool(IncludeOutcome); + } + if (LongPollToken.Length != 0) { + output.WriteRawTag(50); + output.WriteBytes(LongPollToken); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Namespace.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Namespace); + } + if (ActivityId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ActivityId); + } + if (RunId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RunId); + } + if (IncludeInput != false) { + size += 1 + 1; + } + if (IncludeOutcome != false) { + size += 1 + 1; + } + if (LongPollToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(LongPollToken); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DescribeActivityExecutionRequest other) { + if (other == null) { + return; + } + if (other.Namespace.Length != 0) { + Namespace = other.Namespace; + } + if (other.ActivityId.Length != 0) { + ActivityId = other.ActivityId; + } + if (other.RunId.Length != 0) { + RunId = other.RunId; + } + if (other.IncludeInput != false) { + IncludeInput = other.IncludeInput; + } + if (other.IncludeOutcome != false) { + IncludeOutcome = other.IncludeOutcome; + } + if (other.LongPollToken.Length != 0) { + LongPollToken = other.LongPollToken; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Namespace = input.ReadString(); + break; + } + case 18: { + ActivityId = input.ReadString(); + break; + } + case 26: { + RunId = input.ReadString(); + break; + } + case 32: { + IncludeInput = input.ReadBool(); + break; + } + case 40: { + IncludeOutcome = input.ReadBool(); + break; + } + case 50: { + LongPollToken = input.ReadBytes(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Namespace = input.ReadString(); + break; + } + case 18: { + ActivityId = input.ReadString(); + break; + } + case 26: { + RunId = input.ReadString(); + break; + } + case 32: { + IncludeInput = input.ReadBool(); + break; + } + case 40: { + IncludeOutcome = input.ReadBool(); + break; + } + case 50: { + LongPollToken = input.ReadBytes(); + break; + } + } + } + } + #endif + + } + + public sealed partial class DescribeActivityExecutionResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DescribeActivityExecutionResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[205]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DescribeActivityExecutionResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DescribeActivityExecutionResponse(DescribeActivityExecutionResponse other) : this() { + runId_ = other.runId_; + info_ = other.info_ != null ? other.info_.Clone() : null; + input_ = other.input_ != null ? other.input_.Clone() : null; + outcome_ = other.outcome_ != null ? other.outcome_.Clone() : null; + longPollToken_ = other.longPollToken_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DescribeActivityExecutionResponse Clone() { + return new DescribeActivityExecutionResponse(this); + } + + /// Field number for the "run_id" field. + public const int RunIdFieldNumber = 1; + private string runId_ = ""; + /// + /// The run ID of the activity, useful when run_id was not specified in the request. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RunId { + get { return runId_; } + set { + runId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "info" field. + public const int InfoFieldNumber = 2; + private global::Temporalio.Api.Activity.V1.ActivityExecutionInfo info_; + /// + /// Information about the activity execution. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Activity.V1.ActivityExecutionInfo Info { + get { return info_; } + set { + info_ = value; + } + } + + /// Field number for the "input" field. + public const int InputFieldNumber = 3; + private global::Temporalio.Api.Common.V1.Payloads input_; + /// + /// Serialized activity input, passed as arguments to the activity function. + /// Only set if include_input was true in the request. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Common.V1.Payloads Input { + get { return input_; } + set { + input_ = value; + } + } + + /// Field number for the "outcome" field. + public const int OutcomeFieldNumber = 4; + private global::Temporalio.Api.Activity.V1.ActivityExecutionOutcome outcome_; + /// + /// Only set if the activity is completed and include_outcome was true in the request. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Activity.V1.ActivityExecutionOutcome Outcome { + get { return outcome_; } + set { + outcome_ = value; + } + } + + /// Field number for the "long_poll_token" field. + public const int LongPollTokenFieldNumber = 5; + private pb::ByteString longPollToken_ = pb::ByteString.Empty; + /// + /// Token for follow-on long-poll requests. Absent only if the activity is complete. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString LongPollToken { + get { return longPollToken_; } + set { + longPollToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DescribeActivityExecutionResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DescribeActivityExecutionResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (RunId != other.RunId) return false; + if (!object.Equals(Info, other.Info)) return false; + if (!object.Equals(Input, other.Input)) return false; + if (!object.Equals(Outcome, other.Outcome)) return false; + if (LongPollToken != other.LongPollToken) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (RunId.Length != 0) hash ^= RunId.GetHashCode(); + if (info_ != null) hash ^= Info.GetHashCode(); + if (input_ != null) hash ^= Input.GetHashCode(); + if (outcome_ != null) hash ^= Outcome.GetHashCode(); + if (LongPollToken.Length != 0) hash ^= LongPollToken.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (RunId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(RunId); + } + if (info_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Info); + } + if (input_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Input); + } + if (outcome_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Outcome); + } + if (LongPollToken.Length != 0) { + output.WriteRawTag(42); + output.WriteBytes(LongPollToken); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (RunId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(RunId); + } + if (info_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Info); + } + if (input_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Input); + } + if (outcome_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Outcome); + } + if (LongPollToken.Length != 0) { + output.WriteRawTag(42); + output.WriteBytes(LongPollToken); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (RunId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RunId); + } + if (info_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Info); + } + if (input_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Input); + } + if (outcome_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Outcome); + } + if (LongPollToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(LongPollToken); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DescribeActivityExecutionResponse other) { + if (other == null) { + return; + } + if (other.RunId.Length != 0) { + RunId = other.RunId; + } + if (other.info_ != null) { + if (info_ == null) { + Info = new global::Temporalio.Api.Activity.V1.ActivityExecutionInfo(); + } + Info.MergeFrom(other.Info); + } + if (other.input_ != null) { + if (input_ == null) { + Input = new global::Temporalio.Api.Common.V1.Payloads(); + } + Input.MergeFrom(other.Input); + } + if (other.outcome_ != null) { + if (outcome_ == null) { + Outcome = new global::Temporalio.Api.Activity.V1.ActivityExecutionOutcome(); + } + Outcome.MergeFrom(other.Outcome); + } + if (other.LongPollToken.Length != 0) { + LongPollToken = other.LongPollToken; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + RunId = input.ReadString(); + break; + } + case 18: { + if (info_ == null) { + Info = new global::Temporalio.Api.Activity.V1.ActivityExecutionInfo(); + } + input.ReadMessage(Info); + break; + } + case 26: { + if (input_ == null) { + Input = new global::Temporalio.Api.Common.V1.Payloads(); + } + input.ReadMessage(Input); + break; + } + case 34: { + if (outcome_ == null) { + Outcome = new global::Temporalio.Api.Activity.V1.ActivityExecutionOutcome(); + } + input.ReadMessage(Outcome); + break; + } + case 42: { + LongPollToken = input.ReadBytes(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + RunId = input.ReadString(); + break; + } + case 18: { + if (info_ == null) { + Info = new global::Temporalio.Api.Activity.V1.ActivityExecutionInfo(); + } + input.ReadMessage(Info); + break; + } + case 26: { + if (input_ == null) { + Input = new global::Temporalio.Api.Common.V1.Payloads(); + } + input.ReadMessage(Input); + break; + } + case 34: { + if (outcome_ == null) { + Outcome = new global::Temporalio.Api.Activity.V1.ActivityExecutionOutcome(); + } + input.ReadMessage(Outcome); + break; + } + case 42: { + LongPollToken = input.ReadBytes(); + break; + } + } + } + } + #endif + + } + + public sealed partial class PollActivityExecutionRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PollActivityExecutionRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[206]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PollActivityExecutionRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PollActivityExecutionRequest(PollActivityExecutionRequest other) : this() { + namespace_ = other.namespace_; + activityId_ = other.activityId_; + runId_ = other.runId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PollActivityExecutionRequest Clone() { + return new PollActivityExecutionRequest(this); + } + + /// Field number for the "namespace" field. + public const int NamespaceFieldNumber = 1; + private string namespace_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Namespace { + get { return namespace_; } + set { + namespace_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "activity_id" field. + public const int ActivityIdFieldNumber = 2; + private string activityId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ActivityId { + get { return activityId_; } + set { + activityId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "run_id" field. + public const int RunIdFieldNumber = 3; + private string runId_ = ""; + /// + /// Activity run ID. If empty the request targets the latest run. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RunId { + get { return runId_; } + set { + runId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PollActivityExecutionRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PollActivityExecutionRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Namespace != other.Namespace) return false; + if (ActivityId != other.ActivityId) return false; + if (RunId != other.RunId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Namespace.Length != 0) hash ^= Namespace.GetHashCode(); + if (ActivityId.Length != 0) hash ^= ActivityId.GetHashCode(); + if (RunId.Length != 0) hash ^= RunId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Namespace.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Namespace); + } + if (ActivityId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ActivityId); + } + if (RunId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(RunId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Namespace.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Namespace); + } + if (ActivityId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ActivityId); + } + if (RunId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(RunId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Namespace.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Namespace); + } + if (ActivityId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ActivityId); + } + if (RunId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RunId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PollActivityExecutionRequest other) { + if (other == null) { + return; + } + if (other.Namespace.Length != 0) { + Namespace = other.Namespace; + } + if (other.ActivityId.Length != 0) { + ActivityId = other.ActivityId; + } + if (other.RunId.Length != 0) { + RunId = other.RunId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Namespace = input.ReadString(); + break; + } + case 18: { + ActivityId = input.ReadString(); + break; + } + case 26: { + RunId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Namespace = input.ReadString(); + break; + } + case 18: { + ActivityId = input.ReadString(); + break; + } + case 26: { + RunId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class PollActivityExecutionResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PollActivityExecutionResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[207]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PollActivityExecutionResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PollActivityExecutionResponse(PollActivityExecutionResponse other) : this() { + runId_ = other.runId_; + outcome_ = other.outcome_ != null ? other.outcome_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PollActivityExecutionResponse Clone() { + return new PollActivityExecutionResponse(this); + } + + /// Field number for the "run_id" field. + public const int RunIdFieldNumber = 1; + private string runId_ = ""; + /// + /// The run ID of the activity, useful when run_id was not specified in the request. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RunId { + get { return runId_; } + set { + runId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "outcome" field. + public const int OutcomeFieldNumber = 2; + private global::Temporalio.Api.Activity.V1.ActivityExecutionOutcome outcome_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Activity.V1.ActivityExecutionOutcome Outcome { + get { return outcome_; } + set { + outcome_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PollActivityExecutionResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PollActivityExecutionResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (RunId != other.RunId) return false; + if (!object.Equals(Outcome, other.Outcome)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (RunId.Length != 0) hash ^= RunId.GetHashCode(); + if (outcome_ != null) hash ^= Outcome.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (RunId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(RunId); + } + if (outcome_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Outcome); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (RunId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(RunId); + } + if (outcome_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Outcome); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (RunId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RunId); + } + if (outcome_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Outcome); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PollActivityExecutionResponse other) { + if (other == null) { + return; + } + if (other.RunId.Length != 0) { + RunId = other.RunId; + } + if (other.outcome_ != null) { + if (outcome_ == null) { + Outcome = new global::Temporalio.Api.Activity.V1.ActivityExecutionOutcome(); + } + Outcome.MergeFrom(other.Outcome); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + RunId = input.ReadString(); + break; + } + case 18: { + if (outcome_ == null) { + Outcome = new global::Temporalio.Api.Activity.V1.ActivityExecutionOutcome(); + } + input.ReadMessage(Outcome); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + RunId = input.ReadString(); + break; + } + case 18: { + if (outcome_ == null) { + Outcome = new global::Temporalio.Api.Activity.V1.ActivityExecutionOutcome(); + } + input.ReadMessage(Outcome); + break; + } + } + } + } + #endif + + } + + public sealed partial class ListActivityExecutionsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListActivityExecutionsRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[208]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListActivityExecutionsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListActivityExecutionsRequest(ListActivityExecutionsRequest other) : this() { + namespace_ = other.namespace_; + pageSize_ = other.pageSize_; + nextPageToken_ = other.nextPageToken_; + query_ = other.query_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListActivityExecutionsRequest Clone() { + return new ListActivityExecutionsRequest(this); + } + + /// Field number for the "namespace" field. + public const int NamespaceFieldNumber = 1; + private string namespace_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Namespace { + get { return namespace_; } + set { + namespace_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "page_size" field. + public const int PageSizeFieldNumber = 2; + private int pageSize_; + /// + /// Max number of executions to return per page. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PageSize { + get { return pageSize_; } + set { + pageSize_ = value; + } + } + + /// Field number for the "next_page_token" field. + public const int NextPageTokenFieldNumber = 3; + private pb::ByteString nextPageToken_ = pb::ByteString.Empty; + /// + /// Token returned in ListActivityExecutionsResponse. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString NextPageToken { + get { return nextPageToken_; } + set { + nextPageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "query" field. + public const int QueryFieldNumber = 4; + private string query_ = ""; + /// + /// Visibility query, see https://docs.temporal.io/list-filter for the syntax. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Query { + get { return query_; } + set { + query_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListActivityExecutionsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListActivityExecutionsRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Namespace != other.Namespace) return false; + if (PageSize != other.PageSize) return false; + if (NextPageToken != other.NextPageToken) return false; + if (Query != other.Query) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Namespace.Length != 0) hash ^= Namespace.GetHashCode(); + if (PageSize != 0) hash ^= PageSize.GetHashCode(); + if (NextPageToken.Length != 0) hash ^= NextPageToken.GetHashCode(); + if (Query.Length != 0) hash ^= Query.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Namespace.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Namespace); + } + if (PageSize != 0) { + output.WriteRawTag(16); + output.WriteInt32(PageSize); + } + if (NextPageToken.Length != 0) { + output.WriteRawTag(26); + output.WriteBytes(NextPageToken); + } + if (Query.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Query); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Namespace.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Namespace); + } + if (PageSize != 0) { + output.WriteRawTag(16); + output.WriteInt32(PageSize); + } + if (NextPageToken.Length != 0) { + output.WriteRawTag(26); + output.WriteBytes(NextPageToken); + } + if (Query.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Query); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Namespace.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Namespace); + } + if (PageSize != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PageSize); + } + if (NextPageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(NextPageToken); + } + if (Query.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Query); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListActivityExecutionsRequest other) { + if (other == null) { + return; + } + if (other.Namespace.Length != 0) { + Namespace = other.Namespace; + } + if (other.PageSize != 0) { + PageSize = other.PageSize; + } + if (other.NextPageToken.Length != 0) { + NextPageToken = other.NextPageToken; + } + if (other.Query.Length != 0) { + Query = other.Query; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Namespace = input.ReadString(); + break; + } + case 16: { + PageSize = input.ReadInt32(); + break; + } + case 26: { + NextPageToken = input.ReadBytes(); + break; + } + case 34: { + Query = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Namespace = input.ReadString(); + break; + } + case 16: { + PageSize = input.ReadInt32(); + break; + } + case 26: { + NextPageToken = input.ReadBytes(); + break; + } + case 34: { + Query = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ListActivityExecutionsResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListActivityExecutionsResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[209]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListActivityExecutionsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListActivityExecutionsResponse(ListActivityExecutionsResponse other) : this() { + executions_ = other.executions_.Clone(); + nextPageToken_ = other.nextPageToken_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListActivityExecutionsResponse Clone() { + return new ListActivityExecutionsResponse(this); + } + + /// Field number for the "executions" field. + public const int ExecutionsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_executions_codec + = pb::FieldCodec.ForMessage(10, global::Temporalio.Api.Activity.V1.ActivityExecutionListInfo.Parser); + private readonly pbc::RepeatedField executions_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Executions { + get { return executions_; } + } + + /// Field number for the "next_page_token" field. + public const int NextPageTokenFieldNumber = 2; + private pb::ByteString nextPageToken_ = pb::ByteString.Empty; + /// + /// Token to use to fetch the next page. If empty, there is no next page. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString NextPageToken { + get { return nextPageToken_; } + set { + nextPageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListActivityExecutionsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListActivityExecutionsResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!executions_.Equals(other.executions_)) return false; + if (NextPageToken != other.NextPageToken) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= executions_.GetHashCode(); + if (NextPageToken.Length != 0) hash ^= NextPageToken.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + executions_.WriteTo(output, _repeated_executions_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(NextPageToken); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + executions_.WriteTo(ref output, _repeated_executions_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(NextPageToken); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += executions_.CalculateSize(_repeated_executions_codec); + if (NextPageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(NextPageToken); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListActivityExecutionsResponse other) { + if (other == null) { + return; + } + executions_.Add(other.executions_); + if (other.NextPageToken.Length != 0) { + NextPageToken = other.NextPageToken; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + executions_.AddEntriesFrom(input, _repeated_executions_codec); + break; + } + case 18: { + NextPageToken = input.ReadBytes(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + executions_.AddEntriesFrom(ref input, _repeated_executions_codec); + break; + } + case 18: { + NextPageToken = input.ReadBytes(); + break; + } + } + } + } + #endif + + } + + public sealed partial class StartNexusOperationExecutionRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StartNexusOperationExecutionRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[210]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StartNexusOperationExecutionRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StartNexusOperationExecutionRequest(StartNexusOperationExecutionRequest other) : this() { + namespace_ = other.namespace_; + identity_ = other.identity_; + requestId_ = other.requestId_; + operationId_ = other.operationId_; + endpoint_ = other.endpoint_; + service_ = other.service_; + operation_ = other.operation_; + scheduleToCloseTimeout_ = other.scheduleToCloseTimeout_ != null ? other.scheduleToCloseTimeout_.Clone() : null; + input_ = other.input_ != null ? other.input_.Clone() : null; + idReusePolicy_ = other.idReusePolicy_; + idConflictPolicy_ = other.idConflictPolicy_; + searchAttributes_ = other.searchAttributes_ != null ? other.searchAttributes_.Clone() : null; + nexusHeader_ = other.nexusHeader_.Clone(); + userMetadata_ = other.userMetadata_ != null ? other.userMetadata_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StartNexusOperationExecutionRequest Clone() { + return new StartNexusOperationExecutionRequest(this); + } + + /// Field number for the "namespace" field. + public const int NamespaceFieldNumber = 1; + private string namespace_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Namespace { + get { return namespace_; } + set { + namespace_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "identity" field. + public const int IdentityFieldNumber = 2; + private string identity_ = ""; + /// + /// The identity of the client who initiated this request. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Identity { + get { return identity_; } + set { + identity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "request_id" field. + public const int RequestIdFieldNumber = 3; + private string requestId_ = ""; + /// + /// A unique identifier for this caller-side start request. Typically UUIDv4. + /// StartOperation requests sent to the handler will use a server-generated request ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RequestId { + get { return requestId_; } + set { + requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "operation_id" field. + public const int OperationIdFieldNumber = 4; + private string operationId_ = ""; + /// + /// Identifier for this operation. This is a caller-side ID, distinct from any internal + /// operation identifiers generated by the handler. Must be unique among operations in the + /// same namespace, subject to the rules imposed by id_reuse_policy and id_conflict_policy. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string OperationId { + get { return operationId_; } + set { + operationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "endpoint" field. + public const int EndpointFieldNumber = 5; + private string endpoint_ = ""; + /// + /// Endpoint name, resolved to a URL via the cluster's endpoint registry. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Endpoint { + get { return endpoint_; } + set { + endpoint_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "service" field. + public const int ServiceFieldNumber = 6; + private string service_ = ""; + /// + /// Service name. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Service { + get { return service_; } + set { + service_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "operation" field. + public const int OperationFieldNumber = 7; + private string operation_ = ""; + /// + /// Operation name. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Operation { + get { return operation_; } + set { + operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "schedule_to_close_timeout" field. + public const int ScheduleToCloseTimeoutFieldNumber = 8; + private global::Google.Protobuf.WellKnownTypes.Duration scheduleToCloseTimeout_; + /// + /// Schedule-to-close timeout for this operation. + /// This is the only timeout settable for a Nexus operation. + /// (-- api-linter: core::0140::prepositions=disabled + /// aip.dev/not-precedent: "to" is used to indicate interval. --) + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration ScheduleToCloseTimeout { + get { return scheduleToCloseTimeout_; } + set { + scheduleToCloseTimeout_ = value; + } + } + + /// Field number for the "input" field. + public const int InputFieldNumber = 9; + private global::Temporalio.Api.Common.V1.Payload input_; + /// + /// Serialized input to the operation. Passed as the request payload. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Common.V1.Payload Input { + get { return input_; } + set { + input_ = value; + } + } + + /// Field number for the "id_reuse_policy" field. + public const int IdReusePolicyFieldNumber = 10; + private global::Temporalio.Api.Enums.V1.NexusOperationIdReusePolicy idReusePolicy_ = global::Temporalio.Api.Enums.V1.NexusOperationIdReusePolicy.Unspecified; + /// + /// Defines whether to allow re-using the operation id from a previously *closed* operation. + /// The default policy is NEXUS_OPERATION_ID_REUSE_POLICY_ALLOW_DUPLICATE. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Enums.V1.NexusOperationIdReusePolicy IdReusePolicy { + get { return idReusePolicy_; } + set { + idReusePolicy_ = value; + } + } + + /// Field number for the "id_conflict_policy" field. + public const int IdConflictPolicyFieldNumber = 11; + private global::Temporalio.Api.Enums.V1.NexusOperationIdConflictPolicy idConflictPolicy_ = global::Temporalio.Api.Enums.V1.NexusOperationIdConflictPolicy.Unspecified; + /// + /// Defines how to resolve an operation id conflict with a *running* operation. + /// The default policy is NEXUS_OPERATION_ID_CONFLICT_POLICY_FAIL. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Enums.V1.NexusOperationIdConflictPolicy IdConflictPolicy { + get { return idConflictPolicy_; } + set { + idConflictPolicy_ = value; + } + } + + /// Field number for the "search_attributes" field. + public const int SearchAttributesFieldNumber = 12; + private global::Temporalio.Api.Common.V1.SearchAttributes searchAttributes_; + /// + /// Search attributes for indexing. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Common.V1.SearchAttributes SearchAttributes { + get { return searchAttributes_; } + set { + searchAttributes_ = value; + } + } + + /// Field number for the "nexus_header" field. + public const int NexusHeaderFieldNumber = 13; + private static readonly pbc::MapField.Codec _map_nexusHeader_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 106); + private readonly pbc::MapField nexusHeader_ = new pbc::MapField(); + /// + /// 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. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField NexusHeader { + get { return nexusHeader_; } + } + + /// Field number for the "user_metadata" field. + public const int UserMetadataFieldNumber = 14; + private global::Temporalio.Api.Sdk.V1.UserMetadata userMetadata_; + /// + /// Metadata for use by user interfaces to display the fixed as-of-start summary and details of the operation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Sdk.V1.UserMetadata UserMetadata { + get { return userMetadata_; } + set { + userMetadata_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StartNexusOperationExecutionRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StartNexusOperationExecutionRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Namespace != other.Namespace) return false; + if (Identity != other.Identity) return false; + if (RequestId != other.RequestId) return false; + if (OperationId != other.OperationId) return false; + if (Endpoint != other.Endpoint) return false; + if (Service != other.Service) return false; + if (Operation != other.Operation) return false; + if (!object.Equals(ScheduleToCloseTimeout, other.ScheduleToCloseTimeout)) return false; + if (!object.Equals(Input, other.Input)) return false; + if (IdReusePolicy != other.IdReusePolicy) return false; + if (IdConflictPolicy != other.IdConflictPolicy) return false; + if (!object.Equals(SearchAttributes, other.SearchAttributes)) return false; + if (!NexusHeader.Equals(other.NexusHeader)) return false; + if (!object.Equals(UserMetadata, other.UserMetadata)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Namespace.Length != 0) hash ^= Namespace.GetHashCode(); + if (Identity.Length != 0) hash ^= Identity.GetHashCode(); + if (RequestId.Length != 0) hash ^= RequestId.GetHashCode(); + if (OperationId.Length != 0) hash ^= OperationId.GetHashCode(); + if (Endpoint.Length != 0) hash ^= Endpoint.GetHashCode(); + if (Service.Length != 0) hash ^= Service.GetHashCode(); + if (Operation.Length != 0) hash ^= Operation.GetHashCode(); + if (scheduleToCloseTimeout_ != null) hash ^= ScheduleToCloseTimeout.GetHashCode(); + if (input_ != null) hash ^= Input.GetHashCode(); + if (IdReusePolicy != global::Temporalio.Api.Enums.V1.NexusOperationIdReusePolicy.Unspecified) hash ^= IdReusePolicy.GetHashCode(); + if (IdConflictPolicy != global::Temporalio.Api.Enums.V1.NexusOperationIdConflictPolicy.Unspecified) hash ^= IdConflictPolicy.GetHashCode(); + if (searchAttributes_ != null) hash ^= SearchAttributes.GetHashCode(); + hash ^= NexusHeader.GetHashCode(); + if (userMetadata_ != null) hash ^= UserMetadata.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Namespace.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Namespace); + } + if (Identity.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Identity); + } + if (RequestId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(RequestId); + } + if (OperationId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(OperationId); + } + if (Endpoint.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Endpoint); + } + if (Service.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Service); + } + if (Operation.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Operation); + } + if (scheduleToCloseTimeout_ != null) { + output.WriteRawTag(66); + output.WriteMessage(ScheduleToCloseTimeout); + } + if (input_ != null) { + output.WriteRawTag(74); + output.WriteMessage(Input); + } + if (IdReusePolicy != global::Temporalio.Api.Enums.V1.NexusOperationIdReusePolicy.Unspecified) { + output.WriteRawTag(80); + output.WriteEnum((int) IdReusePolicy); + } + if (IdConflictPolicy != global::Temporalio.Api.Enums.V1.NexusOperationIdConflictPolicy.Unspecified) { + output.WriteRawTag(88); + output.WriteEnum((int) IdConflictPolicy); + } + if (searchAttributes_ != null) { + output.WriteRawTag(98); + output.WriteMessage(SearchAttributes); + } + nexusHeader_.WriteTo(output, _map_nexusHeader_codec); + if (userMetadata_ != null) { + output.WriteRawTag(114); + output.WriteMessage(UserMetadata); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Namespace.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Namespace); + } + if (Identity.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Identity); + } + if (RequestId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(RequestId); + } + if (OperationId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(OperationId); + } + if (Endpoint.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Endpoint); + } + if (Service.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Service); + } + if (Operation.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Operation); + } + if (scheduleToCloseTimeout_ != null) { + output.WriteRawTag(66); + output.WriteMessage(ScheduleToCloseTimeout); + } + if (input_ != null) { + output.WriteRawTag(74); + output.WriteMessage(Input); + } + if (IdReusePolicy != global::Temporalio.Api.Enums.V1.NexusOperationIdReusePolicy.Unspecified) { + output.WriteRawTag(80); + output.WriteEnum((int) IdReusePolicy); + } + if (IdConflictPolicy != global::Temporalio.Api.Enums.V1.NexusOperationIdConflictPolicy.Unspecified) { + output.WriteRawTag(88); + output.WriteEnum((int) IdConflictPolicy); + } + if (searchAttributes_ != null) { + output.WriteRawTag(98); + output.WriteMessage(SearchAttributes); + } + nexusHeader_.WriteTo(ref output, _map_nexusHeader_codec); + if (userMetadata_ != null) { + output.WriteRawTag(114); + output.WriteMessage(UserMetadata); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Namespace.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Namespace); + } + if (Identity.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Identity); + } + if (RequestId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); + } + if (OperationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(OperationId); + } + if (Endpoint.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Endpoint); + } + if (Service.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Service); + } + if (Operation.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Operation); + } + if (scheduleToCloseTimeout_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ScheduleToCloseTimeout); + } + if (input_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Input); + } + if (IdReusePolicy != global::Temporalio.Api.Enums.V1.NexusOperationIdReusePolicy.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) IdReusePolicy); + } + if (IdConflictPolicy != global::Temporalio.Api.Enums.V1.NexusOperationIdConflictPolicy.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) IdConflictPolicy); + } + if (searchAttributes_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SearchAttributes); + } + size += nexusHeader_.CalculateSize(_map_nexusHeader_codec); + if (userMetadata_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UserMetadata); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StartNexusOperationExecutionRequest other) { + if (other == null) { + return; + } + if (other.Namespace.Length != 0) { + Namespace = other.Namespace; + } + if (other.Identity.Length != 0) { + Identity = other.Identity; + } + if (other.RequestId.Length != 0) { + RequestId = other.RequestId; + } + if (other.OperationId.Length != 0) { + OperationId = other.OperationId; + } + if (other.Endpoint.Length != 0) { + Endpoint = other.Endpoint; + } + if (other.Service.Length != 0) { + Service = other.Service; + } + if (other.Operation.Length != 0) { + Operation = other.Operation; + } + if (other.scheduleToCloseTimeout_ != null) { + if (scheduleToCloseTimeout_ == null) { + ScheduleToCloseTimeout = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + ScheduleToCloseTimeout.MergeFrom(other.ScheduleToCloseTimeout); + } + if (other.input_ != null) { + if (input_ == null) { + Input = new global::Temporalio.Api.Common.V1.Payload(); + } + Input.MergeFrom(other.Input); + } + if (other.IdReusePolicy != global::Temporalio.Api.Enums.V1.NexusOperationIdReusePolicy.Unspecified) { + IdReusePolicy = other.IdReusePolicy; + } + if (other.IdConflictPolicy != global::Temporalio.Api.Enums.V1.NexusOperationIdConflictPolicy.Unspecified) { + IdConflictPolicy = other.IdConflictPolicy; + } + if (other.searchAttributes_ != null) { + if (searchAttributes_ == null) { + SearchAttributes = new global::Temporalio.Api.Common.V1.SearchAttributes(); + } + SearchAttributes.MergeFrom(other.SearchAttributes); + } + nexusHeader_.MergeFrom(other.nexusHeader_); + if (other.userMetadata_ != null) { + if (userMetadata_ == null) { + UserMetadata = new global::Temporalio.Api.Sdk.V1.UserMetadata(); + } + UserMetadata.MergeFrom(other.UserMetadata); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Namespace = input.ReadString(); + break; + } + case 18: { + Identity = input.ReadString(); + break; + } + case 26: { + RequestId = input.ReadString(); + break; + } + case 34: { + OperationId = input.ReadString(); + break; + } + case 42: { + Endpoint = input.ReadString(); + break; + } + case 50: { + Service = input.ReadString(); + break; + } + case 58: { + Operation = input.ReadString(); + break; + } + case 66: { + if (scheduleToCloseTimeout_ == null) { + ScheduleToCloseTimeout = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(ScheduleToCloseTimeout); + break; + } + case 74: { + if (input_ == null) { + Input = new global::Temporalio.Api.Common.V1.Payload(); + } + input.ReadMessage(Input); + break; + } + case 80: { + IdReusePolicy = (global::Temporalio.Api.Enums.V1.NexusOperationIdReusePolicy) input.ReadEnum(); + break; + } + case 88: { + IdConflictPolicy = (global::Temporalio.Api.Enums.V1.NexusOperationIdConflictPolicy) input.ReadEnum(); + break; + } + case 98: { + if (searchAttributes_ == null) { + SearchAttributes = new global::Temporalio.Api.Common.V1.SearchAttributes(); + } + input.ReadMessage(SearchAttributes); + break; + } + case 106: { + nexusHeader_.AddEntriesFrom(input, _map_nexusHeader_codec); + break; + } + case 114: { + if (userMetadata_ == null) { + UserMetadata = new global::Temporalio.Api.Sdk.V1.UserMetadata(); + } + input.ReadMessage(UserMetadata); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Namespace = input.ReadString(); + break; + } + case 18: { + Identity = input.ReadString(); + break; + } + case 26: { + RequestId = input.ReadString(); + break; + } + case 34: { + OperationId = input.ReadString(); + break; + } + case 42: { + Endpoint = input.ReadString(); + break; + } + case 50: { + Service = input.ReadString(); + break; + } + case 58: { + Operation = input.ReadString(); + break; + } + case 66: { + if (scheduleToCloseTimeout_ == null) { + ScheduleToCloseTimeout = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(ScheduleToCloseTimeout); + break; + } + case 74: { + if (input_ == null) { + Input = new global::Temporalio.Api.Common.V1.Payload(); + } + input.ReadMessage(Input); + break; + } + case 80: { + IdReusePolicy = (global::Temporalio.Api.Enums.V1.NexusOperationIdReusePolicy) input.ReadEnum(); + break; + } + case 88: { + IdConflictPolicy = (global::Temporalio.Api.Enums.V1.NexusOperationIdConflictPolicy) input.ReadEnum(); + break; + } + case 98: { + if (searchAttributes_ == null) { + SearchAttributes = new global::Temporalio.Api.Common.V1.SearchAttributes(); + } + input.ReadMessage(SearchAttributes); + break; + } + case 106: { + nexusHeader_.AddEntriesFrom(ref input, _map_nexusHeader_codec); + break; + } + case 114: { + if (userMetadata_ == null) { + UserMetadata = new global::Temporalio.Api.Sdk.V1.UserMetadata(); + } + input.ReadMessage(UserMetadata); + break; + } + } + } + } + #endif + + } + + public sealed partial class StartNexusOperationExecutionResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StartNexusOperationExecutionResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[211]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StartNexusOperationExecutionResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StartNexusOperationExecutionResponse(StartNexusOperationExecutionResponse other) : this() { + runId_ = other.runId_; + started_ = other.started_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StartNexusOperationExecutionResponse Clone() { + return new StartNexusOperationExecutionResponse(this); + } + + /// Field number for the "run_id" field. + public const int RunIdFieldNumber = 1; + private string runId_ = ""; + /// + /// The run ID of the operation that was started - or used (via NEXUS_OPERATION_ID_CONFLICT_POLICY_USE_EXISTING). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RunId { + get { return runId_; } + set { + runId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "started" field. + public const int StartedFieldNumber = 2; + private bool started_; + /// + /// If true, a new operation was started. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Started { + get { return started_; } + set { + started_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StartNexusOperationExecutionResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StartNexusOperationExecutionResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (RunId != other.RunId) return false; + if (Started != other.Started) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (RunId.Length != 0) hash ^= RunId.GetHashCode(); + if (Started != false) hash ^= Started.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (RunId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(RunId); + } + if (Started != false) { + output.WriteRawTag(16); + output.WriteBool(Started); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (RunId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(RunId); + } + if (Started != false) { + output.WriteRawTag(16); + output.WriteBool(Started); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (RunId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RunId); + } + if (Started != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StartNexusOperationExecutionResponse other) { + if (other == null) { + return; + } + if (other.RunId.Length != 0) { + RunId = other.RunId; + } + if (other.Started != false) { + Started = other.Started; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + RunId = input.ReadString(); + break; + } + case 16: { + Started = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + RunId = input.ReadString(); + break; + } + case 16: { + Started = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + public sealed partial class DescribeNexusOperationExecutionRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DescribeNexusOperationExecutionRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[212]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DescribeNexusOperationExecutionRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DescribeNexusOperationExecutionRequest(DescribeNexusOperationExecutionRequest other) : this() { + namespace_ = other.namespace_; + operationId_ = other.operationId_; + runId_ = other.runId_; + includeInput_ = other.includeInput_; + includeOutcome_ = other.includeOutcome_; + longPollToken_ = other.longPollToken_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DescribeNexusOperationExecutionRequest Clone() { + return new DescribeNexusOperationExecutionRequest(this); + } + + /// Field number for the "namespace" field. + public const int NamespaceFieldNumber = 1; + private string namespace_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Namespace { + get { return namespace_; } + set { + namespace_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "operation_id" field. + public const int OperationIdFieldNumber = 2; + private string operationId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string OperationId { + get { return operationId_; } + set { + operationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "run_id" field. + public const int RunIdFieldNumber = 3; + private string runId_ = ""; + /// + /// Operation run ID. If empty the request targets the latest run. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RunId { + get { return runId_; } + set { + runId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "include_input" field. + public const int IncludeInputFieldNumber = 4; + private bool includeInput_; + /// + /// Include the input field in the response. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IncludeInput { + get { return includeInput_; } + set { + includeInput_ = value; + } + } + + /// Field number for the "include_outcome" field. + public const int IncludeOutcomeFieldNumber = 5; + private bool includeOutcome_; + /// + /// Include the outcome (result/failure) in the response if the operation has completed. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IncludeOutcome { + get { return includeOutcome_; } + set { + includeOutcome_ = value; + } + } + + /// Field number for the "long_poll_token" field. + public const int LongPollTokenFieldNumber = 6; + private pb::ByteString longPollToken_ = pb::ByteString.Empty; + /// + /// Token from a previous DescribeNexusOperationExecutionResponse. If present, long-poll until operation + /// 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 operation 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. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString LongPollToken { + get { return longPollToken_; } + set { + longPollToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DescribeNexusOperationExecutionRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DescribeNexusOperationExecutionRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Namespace != other.Namespace) return false; + if (OperationId != other.OperationId) return false; + if (RunId != other.RunId) return false; + if (IncludeInput != other.IncludeInput) return false; + if (IncludeOutcome != other.IncludeOutcome) return false; + if (LongPollToken != other.LongPollToken) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Namespace.Length != 0) hash ^= Namespace.GetHashCode(); + if (OperationId.Length != 0) hash ^= OperationId.GetHashCode(); + if (RunId.Length != 0) hash ^= RunId.GetHashCode(); + if (IncludeInput != false) hash ^= IncludeInput.GetHashCode(); + if (IncludeOutcome != false) hash ^= IncludeOutcome.GetHashCode(); + if (LongPollToken.Length != 0) hash ^= LongPollToken.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Namespace.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Namespace); + } + if (OperationId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(OperationId); + } + if (RunId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(RunId); + } + if (IncludeInput != false) { + output.WriteRawTag(32); + output.WriteBool(IncludeInput); + } + if (IncludeOutcome != false) { + output.WriteRawTag(40); + output.WriteBool(IncludeOutcome); + } + if (LongPollToken.Length != 0) { + output.WriteRawTag(50); + output.WriteBytes(LongPollToken); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Namespace.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Namespace); + } + if (OperationId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(OperationId); + } + if (RunId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(RunId); + } + if (IncludeInput != false) { + output.WriteRawTag(32); + output.WriteBool(IncludeInput); + } + if (IncludeOutcome != false) { + output.WriteRawTag(40); + output.WriteBool(IncludeOutcome); + } + if (LongPollToken.Length != 0) { + output.WriteRawTag(50); + output.WriteBytes(LongPollToken); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Namespace.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Namespace); + } + if (OperationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(OperationId); + } + if (RunId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RunId); + } + if (IncludeInput != false) { + size += 1 + 1; + } + if (IncludeOutcome != false) { + size += 1 + 1; + } + if (LongPollToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(LongPollToken); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DescribeNexusOperationExecutionRequest other) { + if (other == null) { + return; + } + if (other.Namespace.Length != 0) { + Namespace = other.Namespace; + } + if (other.OperationId.Length != 0) { + OperationId = other.OperationId; + } + if (other.RunId.Length != 0) { + RunId = other.RunId; + } + if (other.IncludeInput != false) { + IncludeInput = other.IncludeInput; + } + if (other.IncludeOutcome != false) { + IncludeOutcome = other.IncludeOutcome; + } + if (other.LongPollToken.Length != 0) { + LongPollToken = other.LongPollToken; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Namespace = input.ReadString(); + break; + } + case 18: { + OperationId = input.ReadString(); + break; + } + case 26: { + RunId = input.ReadString(); + break; + } + case 32: { + IncludeInput = input.ReadBool(); + break; + } + case 40: { + IncludeOutcome = input.ReadBool(); + break; + } + case 50: { + LongPollToken = input.ReadBytes(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Namespace = input.ReadString(); + break; + } + case 18: { + OperationId = input.ReadString(); + break; + } + case 26: { + RunId = input.ReadString(); + break; + } + case 32: { + IncludeInput = input.ReadBool(); + break; + } + case 40: { + IncludeOutcome = input.ReadBool(); + break; + } + case 50: { + LongPollToken = input.ReadBytes(); + break; + } + } + } + } + #endif + + } + + public sealed partial class DescribeNexusOperationExecutionResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DescribeNexusOperationExecutionResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[213]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DescribeNexusOperationExecutionResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DescribeNexusOperationExecutionResponse(DescribeNexusOperationExecutionResponse other) : this() { + runId_ = other.runId_; + info_ = other.info_ != null ? other.info_.Clone() : null; + input_ = other.input_ != null ? other.input_.Clone() : null; + longPollToken_ = other.longPollToken_; + switch (other.OutcomeCase) { + case OutcomeOneofCase.Result: + Result = other.Result.Clone(); + break; + case OutcomeOneofCase.Failure: + Failure = other.Failure.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DescribeNexusOperationExecutionResponse Clone() { + return new DescribeNexusOperationExecutionResponse(this); + } + + /// Field number for the "run_id" field. + public const int RunIdFieldNumber = 1; + private string runId_ = ""; + /// + /// The run ID of the operation, useful when run_id was not specified in the request. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RunId { + get { return runId_; } + set { + runId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "info" field. + public const int InfoFieldNumber = 2; + private global::Temporalio.Api.Nexus.V1.NexusOperationExecutionInfo info_; + /// + /// Information about the operation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Nexus.V1.NexusOperationExecutionInfo Info { + get { return info_; } + set { + info_ = value; + } + } + + /// Field number for the "input" field. + public const int InputFieldNumber = 3; + private global::Temporalio.Api.Common.V1.Payload input_; + /// + /// Serialized operation input, passed as the request payload. + /// Only set if include_input was true in the request. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Common.V1.Payload Input { + get { return input_; } + set { + input_ = value; + } + } + + /// Field number for the "result" field. + public const int ResultFieldNumber = 4; + /// + /// The result if the operation completed successfully. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Common.V1.Payload Result { + get { return outcomeCase_ == OutcomeOneofCase.Result ? (global::Temporalio.Api.Common.V1.Payload) outcome_ : null; } + set { + outcome_ = value; + outcomeCase_ = value == null ? OutcomeOneofCase.None : OutcomeOneofCase.Result; + } + } + + /// Field number for the "failure" field. + public const int FailureFieldNumber = 5; + /// + /// The failure if the operation completed unsuccessfully. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Failure.V1.Failure Failure { + get { return outcomeCase_ == OutcomeOneofCase.Failure ? (global::Temporalio.Api.Failure.V1.Failure) outcome_ : null; } + set { + outcome_ = value; + outcomeCase_ = value == null ? OutcomeOneofCase.None : OutcomeOneofCase.Failure; + } + } + + /// Field number for the "long_poll_token" field. + public const int LongPollTokenFieldNumber = 6; + private pb::ByteString longPollToken_ = pb::ByteString.Empty; + /// + /// Token for follow-on long-poll requests. Absent only if the operation is complete. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString LongPollToken { + get { return longPollToken_; } + set { + longPollToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + private object outcome_; + /// Enum of possible cases for the "outcome" oneof. + public enum OutcomeOneofCase { + None = 0, + Result = 4, + Failure = 5, + } + private OutcomeOneofCase outcomeCase_ = OutcomeOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OutcomeOneofCase OutcomeCase { + get { return outcomeCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearOutcome() { + outcomeCase_ = OutcomeOneofCase.None; + outcome_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DescribeNexusOperationExecutionResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DescribeNexusOperationExecutionResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (RunId != other.RunId) return false; + if (!object.Equals(Info, other.Info)) return false; + if (!object.Equals(Input, other.Input)) return false; + if (!object.Equals(Result, other.Result)) return false; + if (!object.Equals(Failure, other.Failure)) return false; + if (LongPollToken != other.LongPollToken) return false; + if (OutcomeCase != other.OutcomeCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (RunId.Length != 0) hash ^= RunId.GetHashCode(); + if (info_ != null) hash ^= Info.GetHashCode(); + if (input_ != null) hash ^= Input.GetHashCode(); + if (outcomeCase_ == OutcomeOneofCase.Result) hash ^= Result.GetHashCode(); + if (outcomeCase_ == OutcomeOneofCase.Failure) hash ^= Failure.GetHashCode(); + if (LongPollToken.Length != 0) hash ^= LongPollToken.GetHashCode(); + hash ^= (int) outcomeCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (RunId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(RunId); + } + if (info_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Info); + } + if (input_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Input); + } + if (outcomeCase_ == OutcomeOneofCase.Result) { + output.WriteRawTag(34); + output.WriteMessage(Result); + } + if (outcomeCase_ == OutcomeOneofCase.Failure) { + output.WriteRawTag(42); + output.WriteMessage(Failure); + } + if (LongPollToken.Length != 0) { + output.WriteRawTag(50); + output.WriteBytes(LongPollToken); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (RunId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(RunId); + } + if (info_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Info); + } + if (input_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Input); + } + if (outcomeCase_ == OutcomeOneofCase.Result) { + output.WriteRawTag(34); + output.WriteMessage(Result); + } + if (outcomeCase_ == OutcomeOneofCase.Failure) { + output.WriteRawTag(42); + output.WriteMessage(Failure); + } + if (LongPollToken.Length != 0) { + output.WriteRawTag(50); + output.WriteBytes(LongPollToken); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (RunId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RunId); + } + if (info_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Info); + } + if (input_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Input); + } + if (outcomeCase_ == OutcomeOneofCase.Result) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Result); + } + if (outcomeCase_ == OutcomeOneofCase.Failure) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Failure); + } + if (LongPollToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(LongPollToken); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DescribeNexusOperationExecutionResponse other) { + if (other == null) { + return; + } + if (other.RunId.Length != 0) { + RunId = other.RunId; + } + if (other.info_ != null) { + if (info_ == null) { + Info = new global::Temporalio.Api.Nexus.V1.NexusOperationExecutionInfo(); + } + Info.MergeFrom(other.Info); + } + if (other.input_ != null) { + if (input_ == null) { + Input = new global::Temporalio.Api.Common.V1.Payload(); + } + Input.MergeFrom(other.Input); + } + if (other.LongPollToken.Length != 0) { + LongPollToken = other.LongPollToken; + } + switch (other.OutcomeCase) { + case OutcomeOneofCase.Result: + if (Result == null) { + Result = new global::Temporalio.Api.Common.V1.Payload(); + } + Result.MergeFrom(other.Result); + break; + case OutcomeOneofCase.Failure: + if (Failure == null) { + Failure = new global::Temporalio.Api.Failure.V1.Failure(); + } + Failure.MergeFrom(other.Failure); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + RunId = input.ReadString(); + break; + } + case 18: { + if (info_ == null) { + Info = new global::Temporalio.Api.Nexus.V1.NexusOperationExecutionInfo(); + } + input.ReadMessage(Info); + break; + } + case 26: { + if (input_ == null) { + Input = new global::Temporalio.Api.Common.V1.Payload(); + } + input.ReadMessage(Input); + break; + } + case 34: { + global::Temporalio.Api.Common.V1.Payload subBuilder = new global::Temporalio.Api.Common.V1.Payload(); + if (outcomeCase_ == OutcomeOneofCase.Result) { + subBuilder.MergeFrom(Result); + } + input.ReadMessage(subBuilder); + Result = subBuilder; + break; + } + case 42: { + global::Temporalio.Api.Failure.V1.Failure subBuilder = new global::Temporalio.Api.Failure.V1.Failure(); + if (outcomeCase_ == OutcomeOneofCase.Failure) { + subBuilder.MergeFrom(Failure); + } + input.ReadMessage(subBuilder); + Failure = subBuilder; + break; + } + case 50: { + LongPollToken = input.ReadBytes(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + RunId = input.ReadString(); + break; + } + case 18: { + if (info_ == null) { + Info = new global::Temporalio.Api.Nexus.V1.NexusOperationExecutionInfo(); + } + input.ReadMessage(Info); + break; + } + case 26: { + if (input_ == null) { + Input = new global::Temporalio.Api.Common.V1.Payload(); + } + input.ReadMessage(Input); + break; + } + case 34: { + global::Temporalio.Api.Common.V1.Payload subBuilder = new global::Temporalio.Api.Common.V1.Payload(); + if (outcomeCase_ == OutcomeOneofCase.Result) { + subBuilder.MergeFrom(Result); + } + input.ReadMessage(subBuilder); + Result = subBuilder; + break; + } + case 42: { + global::Temporalio.Api.Failure.V1.Failure subBuilder = new global::Temporalio.Api.Failure.V1.Failure(); + if (outcomeCase_ == OutcomeOneofCase.Failure) { + subBuilder.MergeFrom(Failure); + } + input.ReadMessage(subBuilder); + Failure = subBuilder; + break; + } + case 50: { + LongPollToken = input.ReadBytes(); + break; + } + } + } + } + #endif + + } + + public sealed partial class PollNexusOperationExecutionRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PollNexusOperationExecutionRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[214]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PollNexusOperationExecutionRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PollNexusOperationExecutionRequest(PollNexusOperationExecutionRequest other) : this() { + namespace_ = other.namespace_; + operationId_ = other.operationId_; + runId_ = other.runId_; + waitStage_ = other.waitStage_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PollNexusOperationExecutionRequest Clone() { + return new PollNexusOperationExecutionRequest(this); + } + + /// Field number for the "namespace" field. + public const int NamespaceFieldNumber = 1; + private string namespace_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Namespace { + get { return namespace_; } + set { + namespace_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "operation_id" field. + public const int OperationIdFieldNumber = 2; + private string operationId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string OperationId { + get { return operationId_; } + set { + operationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "run_id" field. + public const int RunIdFieldNumber = 3; + private string runId_ = ""; + /// + /// Operation run ID. If empty the request targets the latest run. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RunId { + get { return runId_; } + set { + runId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "wait_stage" field. + public const int WaitStageFieldNumber = 4; + private global::Temporalio.Api.Enums.V1.NexusOperationWaitStage waitStage_ = global::Temporalio.Api.Enums.V1.NexusOperationWaitStage.Unspecified; + /// + /// Stage to wait for. The operation may be in a more advanced stage when the poll is unblocked. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Enums.V1.NexusOperationWaitStage WaitStage { + get { return waitStage_; } + set { + waitStage_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PollNexusOperationExecutionRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PollNexusOperationExecutionRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Namespace != other.Namespace) return false; + if (OperationId != other.OperationId) return false; + if (RunId != other.RunId) return false; + if (WaitStage != other.WaitStage) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Namespace.Length != 0) hash ^= Namespace.GetHashCode(); + if (OperationId.Length != 0) hash ^= OperationId.GetHashCode(); + if (RunId.Length != 0) hash ^= RunId.GetHashCode(); + if (WaitStage != global::Temporalio.Api.Enums.V1.NexusOperationWaitStage.Unspecified) hash ^= WaitStage.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Namespace.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Namespace); + } + if (OperationId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(OperationId); + } + if (RunId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(RunId); + } + if (WaitStage != global::Temporalio.Api.Enums.V1.NexusOperationWaitStage.Unspecified) { + output.WriteRawTag(32); + output.WriteEnum((int) WaitStage); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Namespace.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Namespace); + } + if (OperationId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(OperationId); + } + if (RunId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(RunId); + } + if (WaitStage != global::Temporalio.Api.Enums.V1.NexusOperationWaitStage.Unspecified) { + output.WriteRawTag(32); + output.WriteEnum((int) WaitStage); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Namespace.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Namespace); + } + if (OperationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(OperationId); + } + if (RunId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RunId); + } + if (WaitStage != global::Temporalio.Api.Enums.V1.NexusOperationWaitStage.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) WaitStage); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PollNexusOperationExecutionRequest other) { + if (other == null) { + return; + } + if (other.Namespace.Length != 0) { + Namespace = other.Namespace; + } + if (other.OperationId.Length != 0) { + OperationId = other.OperationId; + } + if (other.RunId.Length != 0) { + RunId = other.RunId; + } + if (other.WaitStage != global::Temporalio.Api.Enums.V1.NexusOperationWaitStage.Unspecified) { + WaitStage = other.WaitStage; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Namespace = input.ReadString(); + break; + } + case 18: { + OperationId = input.ReadString(); + break; + } + case 26: { + RunId = input.ReadString(); + break; + } + case 32: { + WaitStage = (global::Temporalio.Api.Enums.V1.NexusOperationWaitStage) input.ReadEnum(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Namespace = input.ReadString(); + break; + } + case 18: { + OperationId = input.ReadString(); + break; + } + case 26: { + RunId = input.ReadString(); + break; + } + case 32: { + WaitStage = (global::Temporalio.Api.Enums.V1.NexusOperationWaitStage) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + public sealed partial class PollNexusOperationExecutionResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PollNexusOperationExecutionResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[215]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PollNexusOperationExecutionResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PollNexusOperationExecutionResponse(PollNexusOperationExecutionResponse other) : this() { + runId_ = other.runId_; + waitStage_ = other.waitStage_; + operationToken_ = other.operationToken_; + switch (other.OutcomeCase) { + case OutcomeOneofCase.Result: + Result = other.Result.Clone(); + break; + case OutcomeOneofCase.Failure: + Failure = other.Failure.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PollNexusOperationExecutionResponse Clone() { + return new PollNexusOperationExecutionResponse(this); + } + + /// Field number for the "run_id" field. + public const int RunIdFieldNumber = 1; + private string runId_ = ""; + /// + /// The run ID of the operation, useful when run_id was not specified in the request. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RunId { + get { return runId_; } + set { + runId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "wait_stage" field. + public const int WaitStageFieldNumber = 2; + private global::Temporalio.Api.Enums.V1.NexusOperationWaitStage waitStage_ = global::Temporalio.Api.Enums.V1.NexusOperationWaitStage.Unspecified; + /// + /// The current stage of the operation. May be more advanced than the stage requested in the poll. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Enums.V1.NexusOperationWaitStage WaitStage { + get { return waitStage_; } + set { + waitStage_ = value; + } + } + + /// Field number for the "operation_token" field. + public const int OperationTokenFieldNumber = 3; + private string operationToken_ = ""; + /// + /// Operation token. Only populated for asynchronous operations after a successful StartOperation call. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string OperationToken { + get { return operationToken_; } + set { + operationToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "result" field. + public const int ResultFieldNumber = 4; + /// + /// The result if the operation completed successfully. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Common.V1.Payload Result { + get { return outcomeCase_ == OutcomeOneofCase.Result ? (global::Temporalio.Api.Common.V1.Payload) outcome_ : null; } + set { + outcome_ = value; + outcomeCase_ = value == null ? OutcomeOneofCase.None : OutcomeOneofCase.Result; + } + } + + /// Field number for the "failure" field. + public const int FailureFieldNumber = 5; + /// + /// The failure if the operation completed unsuccessfully. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Failure.V1.Failure Failure { + get { return outcomeCase_ == OutcomeOneofCase.Failure ? (global::Temporalio.Api.Failure.V1.Failure) outcome_ : null; } + set { + outcome_ = value; + outcomeCase_ = value == null ? OutcomeOneofCase.None : OutcomeOneofCase.Failure; + } + } + + private object outcome_; + /// Enum of possible cases for the "outcome" oneof. + public enum OutcomeOneofCase { + None = 0, + Result = 4, + Failure = 5, + } + private OutcomeOneofCase outcomeCase_ = OutcomeOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OutcomeOneofCase OutcomeCase { + get { return outcomeCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearOutcome() { + outcomeCase_ = OutcomeOneofCase.None; + outcome_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PollNexusOperationExecutionResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PollNexusOperationExecutionResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (RunId != other.RunId) return false; + if (WaitStage != other.WaitStage) return false; + if (OperationToken != other.OperationToken) return false; + if (!object.Equals(Result, other.Result)) return false; + if (!object.Equals(Failure, other.Failure)) return false; + if (OutcomeCase != other.OutcomeCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (RunId.Length != 0) hash ^= RunId.GetHashCode(); + if (WaitStage != global::Temporalio.Api.Enums.V1.NexusOperationWaitStage.Unspecified) hash ^= WaitStage.GetHashCode(); + if (OperationToken.Length != 0) hash ^= OperationToken.GetHashCode(); + if (outcomeCase_ == OutcomeOneofCase.Result) hash ^= Result.GetHashCode(); + if (outcomeCase_ == OutcomeOneofCase.Failure) hash ^= Failure.GetHashCode(); + hash ^= (int) outcomeCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (RunId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(RunId); + } + if (WaitStage != global::Temporalio.Api.Enums.V1.NexusOperationWaitStage.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) WaitStage); + } + if (OperationToken.Length != 0) { + output.WriteRawTag(26); + output.WriteString(OperationToken); + } + if (outcomeCase_ == OutcomeOneofCase.Result) { + output.WriteRawTag(34); + output.WriteMessage(Result); + } + if (outcomeCase_ == OutcomeOneofCase.Failure) { + output.WriteRawTag(42); + output.WriteMessage(Failure); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (RunId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(RunId); + } + if (WaitStage != global::Temporalio.Api.Enums.V1.NexusOperationWaitStage.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) WaitStage); + } + if (OperationToken.Length != 0) { + output.WriteRawTag(26); + output.WriteString(OperationToken); + } + if (outcomeCase_ == OutcomeOneofCase.Result) { + output.WriteRawTag(34); + output.WriteMessage(Result); + } + if (outcomeCase_ == OutcomeOneofCase.Failure) { + output.WriteRawTag(42); + output.WriteMessage(Failure); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (RunId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RunId); + } + if (WaitStage != global::Temporalio.Api.Enums.V1.NexusOperationWaitStage.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) WaitStage); + } + if (OperationToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(OperationToken); + } + if (outcomeCase_ == OutcomeOneofCase.Result) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Result); + } + if (outcomeCase_ == OutcomeOneofCase.Failure) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Failure); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PollNexusOperationExecutionResponse other) { + if (other == null) { + return; + } + if (other.RunId.Length != 0) { + RunId = other.RunId; + } + if (other.WaitStage != global::Temporalio.Api.Enums.V1.NexusOperationWaitStage.Unspecified) { + WaitStage = other.WaitStage; + } + if (other.OperationToken.Length != 0) { + OperationToken = other.OperationToken; + } + switch (other.OutcomeCase) { + case OutcomeOneofCase.Result: + if (Result == null) { + Result = new global::Temporalio.Api.Common.V1.Payload(); + } + Result.MergeFrom(other.Result); + break; + case OutcomeOneofCase.Failure: + if (Failure == null) { + Failure = new global::Temporalio.Api.Failure.V1.Failure(); + } + Failure.MergeFrom(other.Failure); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + RunId = input.ReadString(); + break; + } + case 16: { + WaitStage = (global::Temporalio.Api.Enums.V1.NexusOperationWaitStage) input.ReadEnum(); + break; + } + case 26: { + OperationToken = input.ReadString(); + break; + } + case 34: { + global::Temporalio.Api.Common.V1.Payload subBuilder = new global::Temporalio.Api.Common.V1.Payload(); + if (outcomeCase_ == OutcomeOneofCase.Result) { + subBuilder.MergeFrom(Result); + } + input.ReadMessage(subBuilder); + Result = subBuilder; + break; + } + case 42: { + global::Temporalio.Api.Failure.V1.Failure subBuilder = new global::Temporalio.Api.Failure.V1.Failure(); + if (outcomeCase_ == OutcomeOneofCase.Failure) { + subBuilder.MergeFrom(Failure); + } + input.ReadMessage(subBuilder); + Failure = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + RunId = input.ReadString(); + break; + } + case 16: { + WaitStage = (global::Temporalio.Api.Enums.V1.NexusOperationWaitStage) input.ReadEnum(); + break; + } + case 26: { + OperationToken = input.ReadString(); + break; + } + case 34: { + global::Temporalio.Api.Common.V1.Payload subBuilder = new global::Temporalio.Api.Common.V1.Payload(); + if (outcomeCase_ == OutcomeOneofCase.Result) { + subBuilder.MergeFrom(Result); + } + input.ReadMessage(subBuilder); + Result = subBuilder; + break; + } + case 42: { + global::Temporalio.Api.Failure.V1.Failure subBuilder = new global::Temporalio.Api.Failure.V1.Failure(); + if (outcomeCase_ == OutcomeOneofCase.Failure) { + subBuilder.MergeFrom(Failure); + } + input.ReadMessage(subBuilder); + Failure = subBuilder; + break; + } + } + } + } + #endif + + } + + public sealed partial class ListNexusOperationExecutionsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListNexusOperationExecutionsRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[216]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListNexusOperationExecutionsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListNexusOperationExecutionsRequest(ListNexusOperationExecutionsRequest other) : this() { + namespace_ = other.namespace_; + pageSize_ = other.pageSize_; + nextPageToken_ = other.nextPageToken_; + query_ = other.query_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListNexusOperationExecutionsRequest Clone() { + return new ListNexusOperationExecutionsRequest(this); + } + + /// Field number for the "namespace" field. + public const int NamespaceFieldNumber = 1; + private string namespace_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Namespace { + get { return namespace_; } + set { + namespace_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "page_size" field. + public const int PageSizeFieldNumber = 2; + private int pageSize_; + /// + /// Max number of operations to return per page. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PageSize { + get { return pageSize_; } + set { + pageSize_ = value; + } + } + + /// Field number for the "next_page_token" field. + public const int NextPageTokenFieldNumber = 3; + private pb::ByteString nextPageToken_ = pb::ByteString.Empty; + /// + /// Token returned in ListNexusOperationExecutionsResponse. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString NextPageToken { + get { return nextPageToken_; } + set { + nextPageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "query" field. + public const int QueryFieldNumber = 4; + private string query_ = ""; + /// + /// Visibility query, see https://docs.temporal.io/list-filter for the syntax. + /// Search attributes that are avaialble for Nexus operations include: + /// - OperationId + /// - RunId + /// - Endpoint + /// - Service + /// - Operation + /// - RequestId + /// - StartTime + /// - ExecutionTime + /// - CloseTime + /// - ExecutionStatus + /// - ExecutionDuration + /// - StateTransitionCount + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Query { + get { return query_; } + set { + query_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListNexusOperationExecutionsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListNexusOperationExecutionsRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Namespace != other.Namespace) return false; + if (PageSize != other.PageSize) return false; + if (NextPageToken != other.NextPageToken) return false; + if (Query != other.Query) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Namespace.Length != 0) hash ^= Namespace.GetHashCode(); + if (PageSize != 0) hash ^= PageSize.GetHashCode(); + if (NextPageToken.Length != 0) hash ^= NextPageToken.GetHashCode(); + if (Query.Length != 0) hash ^= Query.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Namespace.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Namespace); + } + if (PageSize != 0) { + output.WriteRawTag(16); + output.WriteInt32(PageSize); + } + if (NextPageToken.Length != 0) { + output.WriteRawTag(26); + output.WriteBytes(NextPageToken); + } + if (Query.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Query); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Namespace.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Namespace); + } + if (PageSize != 0) { + output.WriteRawTag(16); + output.WriteInt32(PageSize); + } + if (NextPageToken.Length != 0) { + output.WriteRawTag(26); + output.WriteBytes(NextPageToken); + } + if (Query.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Query); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Namespace.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Namespace); + } + if (PageSize != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PageSize); + } + if (NextPageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(NextPageToken); + } + if (Query.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Query); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListNexusOperationExecutionsRequest other) { + if (other == null) { + return; + } + if (other.Namespace.Length != 0) { + Namespace = other.Namespace; + } + if (other.PageSize != 0) { + PageSize = other.PageSize; + } + if (other.NextPageToken.Length != 0) { + NextPageToken = other.NextPageToken; + } + if (other.Query.Length != 0) { + Query = other.Query; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Namespace = input.ReadString(); break; } - case 138: { - if (userMetadata_ == null) { - UserMetadata = new global::Temporalio.Api.Sdk.V1.UserMetadata(); - } - input.ReadMessage(UserMetadata); + case 16: { + PageSize = input.ReadInt32(); break; } - case 146: { - if (priority_ == null) { - Priority = new global::Temporalio.Api.Common.V1.Priority(); - } - input.ReadMessage(Priority); + case 26: { + NextPageToken = input.ReadBytes(); + break; + } + case 34: { + Query = input.ReadString(); break; } } @@ -69489,108 +76873,463 @@ public void MergeFrom(pb::CodedInputStream input) { Namespace = input.ReadString(); break; } - case 18: { - Identity = input.ReadString(); + case 16: { + PageSize = input.ReadInt32(); break; } case 26: { - RequestId = input.ReadString(); + NextPageToken = input.ReadBytes(); break; } case 34: { - ActivityId = input.ReadString(); - break; - } - case 42: { - if (activityType_ == null) { - ActivityType = new global::Temporalio.Api.Common.V1.ActivityType(); - } - input.ReadMessage(ActivityType); - break; - } - case 50: { - if (taskQueue_ == null) { - TaskQueue = new global::Temporalio.Api.TaskQueue.V1.TaskQueue(); - } - input.ReadMessage(TaskQueue); + Query = input.ReadString(); break; } - case 58: { - if (scheduleToCloseTimeout_ == null) { - ScheduleToCloseTimeout = new global::Google.Protobuf.WellKnownTypes.Duration(); - } - input.ReadMessage(ScheduleToCloseTimeout); + } + } + } + #endif + + } + + public sealed partial class ListNexusOperationExecutionsResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListNexusOperationExecutionsResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[217]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListNexusOperationExecutionsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListNexusOperationExecutionsResponse(ListNexusOperationExecutionsResponse other) : this() { + operations_ = other.operations_.Clone(); + nextPageToken_ = other.nextPageToken_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListNexusOperationExecutionsResponse Clone() { + return new ListNexusOperationExecutionsResponse(this); + } + + /// Field number for the "operations" field. + public const int OperationsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_operations_codec + = pb::FieldCodec.ForMessage(10, global::Temporalio.Api.Nexus.V1.NexusOperationExecutionListInfo.Parser); + private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Operations { + get { return operations_; } + } + + /// Field number for the "next_page_token" field. + public const int NextPageTokenFieldNumber = 2; + private pb::ByteString nextPageToken_ = pb::ByteString.Empty; + /// + /// Token to use to fetch the next page. If empty, there is no next page. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString NextPageToken { + get { return nextPageToken_; } + set { + nextPageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListNexusOperationExecutionsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListNexusOperationExecutionsResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!operations_.Equals(other.operations_)) return false; + if (NextPageToken != other.NextPageToken) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= operations_.GetHashCode(); + if (NextPageToken.Length != 0) hash ^= NextPageToken.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + operations_.WriteTo(output, _repeated_operations_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(NextPageToken); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + operations_.WriteTo(ref output, _repeated_operations_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(NextPageToken); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += operations_.CalculateSize(_repeated_operations_codec); + if (NextPageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(NextPageToken); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListNexusOperationExecutionsResponse other) { + if (other == null) { + return; + } + operations_.Add(other.operations_); + if (other.NextPageToken.Length != 0) { + NextPageToken = other.NextPageToken; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - } - case 66: { - if (scheduleToStartTimeout_ == null) { - ScheduleToStartTimeout = new global::Google.Protobuf.WellKnownTypes.Duration(); - } - input.ReadMessage(ScheduleToStartTimeout); + case 10: { + operations_.AddEntriesFrom(input, _repeated_operations_codec); break; } - case 74: { - if (startToCloseTimeout_ == null) { - StartToCloseTimeout = new global::Google.Protobuf.WellKnownTypes.Duration(); - } - input.ReadMessage(StartToCloseTimeout); + case 18: { + NextPageToken = input.ReadBytes(); break; } - case 82: { - if (heartbeatTimeout_ == null) { - HeartbeatTimeout = new global::Google.Protobuf.WellKnownTypes.Duration(); - } - input.ReadMessage(HeartbeatTimeout); + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - } - case 90: { - if (retryPolicy_ == null) { - RetryPolicy = new global::Temporalio.Api.Common.V1.RetryPolicy(); - } - input.ReadMessage(RetryPolicy); + case 10: { + operations_.AddEntriesFrom(ref input, _repeated_operations_codec); break; } - case 98: { - if (input_ == null) { - Input = new global::Temporalio.Api.Common.V1.Payloads(); - } - input.ReadMessage(Input); + case 18: { + NextPageToken = input.ReadBytes(); break; } - case 104: { - IdReusePolicy = (global::Temporalio.Api.Enums.V1.ActivityIdReusePolicy) input.ReadEnum(); + } + } + } + #endif + + } + + public sealed partial class CountActivityExecutionsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CountActivityExecutionsRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[218]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CountActivityExecutionsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CountActivityExecutionsRequest(CountActivityExecutionsRequest other) : this() { + namespace_ = other.namespace_; + query_ = other.query_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CountActivityExecutionsRequest Clone() { + return new CountActivityExecutionsRequest(this); + } + + /// Field number for the "namespace" field. + public const int NamespaceFieldNumber = 1; + private string namespace_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Namespace { + get { return namespace_; } + set { + namespace_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "query" field. + public const int QueryFieldNumber = 2; + private string query_ = ""; + /// + /// Visibility query, see https://docs.temporal.io/list-filter for the syntax. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Query { + get { return query_; } + set { + query_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CountActivityExecutionsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CountActivityExecutionsRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Namespace != other.Namespace) return false; + if (Query != other.Query) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Namespace.Length != 0) hash ^= Namespace.GetHashCode(); + if (Query.Length != 0) hash ^= Query.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Namespace.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Namespace); + } + if (Query.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Query); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Namespace.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Namespace); + } + if (Query.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Query); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Namespace.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Namespace); + } + if (Query.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Query); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CountActivityExecutionsRequest other) { + if (other == null) { + return; + } + if (other.Namespace.Length != 0) { + Namespace = other.Namespace; + } + if (other.Query.Length != 0) { + Query = other.Query; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - } - case 112: { - IdConflictPolicy = (global::Temporalio.Api.Enums.V1.ActivityIdConflictPolicy) input.ReadEnum(); + case 10: { + Namespace = input.ReadString(); break; } - case 122: { - if (searchAttributes_ == null) { - SearchAttributes = new global::Temporalio.Api.Common.V1.SearchAttributes(); - } - input.ReadMessage(SearchAttributes); + case 18: { + Query = input.ReadString(); break; } - case 130: { - if (header_ == null) { - Header = new global::Temporalio.Api.Common.V1.Header(); - } - input.ReadMessage(Header); + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - } - case 138: { - if (userMetadata_ == null) { - UserMetadata = new global::Temporalio.Api.Sdk.V1.UserMetadata(); - } - input.ReadMessage(UserMetadata); + case 10: { + Namespace = input.ReadString(); break; } - case 146: { - if (priority_ == null) { - Priority = new global::Temporalio.Api.Common.V1.Priority(); - } - input.ReadMessage(Priority); + case 18: { + Query = input.ReadString(); break; } } @@ -69600,21 +77339,21 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class StartActivityExecutionResponse : pb::IMessage + public sealed partial class CountActivityExecutionsResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StartActivityExecutionResponse()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CountActivityExecutionsResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[195]; } + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[219]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -69625,7 +77364,7 @@ public sealed partial class StartActivityExecutionResponse : pb::IMessageField number for the "run_id" field. - public const int RunIdFieldNumber = 1; - private string runId_ = ""; + /// Field number for the "count" field. + public const int CountFieldNumber = 1; + private long count_; /// - /// The run ID of the activity that was started - or used (via ACTIVITY_ID_CONFLICT_POLICY_USE_EXISTING). + /// 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. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string RunId { - get { return runId_; } + public long Count { + get { return count_; } set { - runId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + count_ = value; } } - /// Field number for the "started" field. - public const int StartedFieldNumber = 2; - private bool started_; + /// Field number for the "groups" field. + public const int GroupsFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_groups_codec + = pb::FieldCodec.ForMessage(18, global::Temporalio.Api.WorkflowService.V1.CountActivityExecutionsResponse.Types.AggregationGroup.Parser); + private readonly pbc::RepeatedField groups_ = new pbc::RepeatedField(); /// - /// If true, a new activity was started. + /// 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. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Started { - get { return started_; } - set { - started_ = value; - } + public pbc::RepeatedField Groups { + get { return groups_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as StartActivityExecutionResponse); + return Equals(other as CountActivityExecutionsResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(StartActivityExecutionResponse other) { + public bool Equals(CountActivityExecutionsResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (RunId != other.RunId) return false; - if (Started != other.Started) return false; + if (Count != other.Count) return false; + if(!groups_.Equals(other.groups_)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -69699,8 +77442,8 @@ public bool Equals(StartActivityExecutionResponse other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (RunId.Length != 0) hash ^= RunId.GetHashCode(); - if (Started != false) hash ^= Started.GetHashCode(); + if (Count != 0L) hash ^= Count.GetHashCode(); + hash ^= groups_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -69719,14 +77462,11 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (RunId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(RunId); - } - if (Started != false) { - output.WriteRawTag(16); - output.WriteBool(Started); + if (Count != 0L) { + output.WriteRawTag(8); + output.WriteInt64(Count); } + groups_.WriteTo(output, _repeated_groups_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -69737,14 +77477,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (RunId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(RunId); - } - if (Started != false) { - output.WriteRawTag(16); - output.WriteBool(Started); + if (Count != 0L) { + output.WriteRawTag(8); + output.WriteInt64(Count); } + groups_.WriteTo(ref output, _repeated_groups_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -69755,12 +77492,10 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (RunId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(RunId); - } - if (Started != false) { - size += 1 + 1; + if (Count != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Count); } + size += groups_.CalculateSize(_repeated_groups_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -69769,16 +77504,14 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(StartActivityExecutionResponse other) { + public void MergeFrom(CountActivityExecutionsResponse other) { if (other == null) { return; } - if (other.RunId.Length != 0) { - RunId = other.RunId; - } - if (other.Started != false) { - Started = other.Started; + if (other.Count != 0L) { + Count = other.Count; } + groups_.Add(other.groups_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -69794,12 +77527,12 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { - RunId = input.ReadString(); + case 8: { + Count = input.ReadInt64(); break; } - case 16: { - Started = input.ReadBool(); + case 18: { + groups_.AddEntriesFrom(input, _repeated_groups_codec); break; } } @@ -69817,12 +77550,12 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - RunId = input.ReadString(); + case 8: { + Count = input.ReadInt64(); break; } - case 16: { - Started = input.ReadBool(); + case 18: { + groups_.AddEntriesFrom(ref input, _repeated_groups_codec); break; } } @@ -69830,23 +77563,246 @@ public void MergeFrom(pb::CodedInputStream input) { } #endif + #region Nested types + /// Container for nested types declared in the CountActivityExecutionsResponse message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + public sealed partial class AggregationGroup : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AggregationGroup()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Temporalio.Api.WorkflowService.V1.CountActivityExecutionsResponse.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AggregationGroup() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AggregationGroup(AggregationGroup other) : this() { + groupValues_ = other.groupValues_.Clone(); + count_ = other.count_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AggregationGroup Clone() { + return new AggregationGroup(this); + } + + /// Field number for the "group_values" field. + public const int GroupValuesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_groupValues_codec + = pb::FieldCodec.ForMessage(10, global::Temporalio.Api.Common.V1.Payload.Parser); + private readonly pbc::RepeatedField groupValues_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField GroupValues { + get { return groupValues_; } + } + + /// Field number for the "count" field. + public const int CountFieldNumber = 2; + private long count_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Count { + get { return count_; } + set { + count_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AggregationGroup); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AggregationGroup other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!groupValues_.Equals(other.groupValues_)) return false; + if (Count != other.Count) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= groupValues_.GetHashCode(); + if (Count != 0L) hash ^= Count.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + groupValues_.WriteTo(output, _repeated_groupValues_codec); + if (Count != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Count); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + groupValues_.WriteTo(ref output, _repeated_groupValues_codec); + if (Count != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Count); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += groupValues_.CalculateSize(_repeated_groupValues_codec); + if (Count != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Count); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AggregationGroup other) { + if (other == null) { + return; + } + groupValues_.Add(other.groupValues_); + if (other.Count != 0L) { + Count = other.Count; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + groupValues_.AddEntriesFrom(input, _repeated_groupValues_codec); + break; + } + case 16: { + Count = input.ReadInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + groupValues_.AddEntriesFrom(ref input, _repeated_groupValues_codec); + break; + } + case 16: { + Count = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + } + #endregion + } - public sealed partial class DescribeActivityExecutionRequest : pb::IMessage + public sealed partial class CountNexusOperationExecutionsRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DescribeActivityExecutionRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CountNexusOperationExecutionsRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[196]; } + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[220]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -69857,7 +77813,7 @@ public sealed partial class DescribeActivityExecutionRequest : pb::IMessageField number for the "namespace" field. - public const int NamespaceFieldNumber = 1; - private string namespace_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Namespace { - get { return namespace_; } - set { - namespace_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "activity_id" field. - public const int ActivityIdFieldNumber = 2; - private string activityId_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ActivityId { - get { return activityId_; } - set { - activityId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "run_id" field. - public const int RunIdFieldNumber = 3; - private string runId_ = ""; - /// - /// Activity run ID. If empty the request targets the latest run. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string RunId { - get { return runId_; } - set { - runId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "include_input" field. - public const int IncludeInputFieldNumber = 4; - private bool includeInput_; - /// - /// Include the input field in the response. - /// + query_ = other.query_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IncludeInput { - get { return includeInput_; } - set { - includeInput_ = value; - } + public CountNexusOperationExecutionsRequest Clone() { + return new CountNexusOperationExecutionsRequest(this); } - /// Field number for the "include_outcome" field. - public const int IncludeOutcomeFieldNumber = 5; - private bool includeOutcome_; - /// - /// Include the outcome (result/failure) in the response if the activity has completed. - /// + /// Field number for the "namespace" field. + public const int NamespaceFieldNumber = 1; + private string namespace_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IncludeOutcome { - get { return includeOutcome_; } + public string Namespace { + get { return namespace_; } set { - includeOutcome_ = value; + namespace_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - /// Field number for the "long_poll_token" field. - public const int LongPollTokenFieldNumber = 6; - private pb::ByteString longPollToken_ = pb::ByteString.Empty; + /// Field number for the "query" field. + public const int QueryFieldNumber = 2; + private string query_ = ""; /// - /// 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. + /// Visibility query, see https://docs.temporal.io/list-filter for the syntax. + /// See also ListNexusOperationExecutionsRequest for search attributes available for Nexus operations. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString LongPollToken { - get { return longPollToken_; } + public string Query { + get { return query_; } set { - longPollToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + query_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as DescribeActivityExecutionRequest); + return Equals(other as CountNexusOperationExecutionsRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DescribeActivityExecutionRequest other) { + public bool Equals(CountNexusOperationExecutionsRequest other) { if (ReferenceEquals(other, null)) { return false; } @@ -69986,11 +77877,7 @@ public bool Equals(DescribeActivityExecutionRequest other) { return true; } if (Namespace != other.Namespace) return false; - if (ActivityId != other.ActivityId) return false; - if (RunId != other.RunId) return false; - if (IncludeInput != other.IncludeInput) return false; - if (IncludeOutcome != other.IncludeOutcome) return false; - if (LongPollToken != other.LongPollToken) return false; + if (Query != other.Query) return false; return Equals(_unknownFields, other._unknownFields); } @@ -69999,11 +77886,7 @@ public bool Equals(DescribeActivityExecutionRequest other) { public override int GetHashCode() { int hash = 1; if (Namespace.Length != 0) hash ^= Namespace.GetHashCode(); - if (ActivityId.Length != 0) hash ^= ActivityId.GetHashCode(); - if (RunId.Length != 0) hash ^= RunId.GetHashCode(); - if (IncludeInput != false) hash ^= IncludeInput.GetHashCode(); - if (IncludeOutcome != false) hash ^= IncludeOutcome.GetHashCode(); - if (LongPollToken.Length != 0) hash ^= LongPollToken.GetHashCode(); + if (Query.Length != 0) hash ^= Query.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -70026,25 +77909,9 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(Namespace); } - if (ActivityId.Length != 0) { + if (Query.Length != 0) { output.WriteRawTag(18); - output.WriteString(ActivityId); - } - if (RunId.Length != 0) { - output.WriteRawTag(26); - output.WriteString(RunId); - } - if (IncludeInput != false) { - output.WriteRawTag(32); - output.WriteBool(IncludeInput); - } - if (IncludeOutcome != false) { - output.WriteRawTag(40); - output.WriteBool(IncludeOutcome); - } - if (LongPollToken.Length != 0) { - output.WriteRawTag(50); - output.WriteBytes(LongPollToken); + output.WriteString(Query); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -70060,25 +77927,9 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(Namespace); } - if (ActivityId.Length != 0) { + if (Query.Length != 0) { output.WriteRawTag(18); - output.WriteString(ActivityId); - } - if (RunId.Length != 0) { - output.WriteRawTag(26); - output.WriteString(RunId); - } - if (IncludeInput != false) { - output.WriteRawTag(32); - output.WriteBool(IncludeInput); - } - if (IncludeOutcome != false) { - output.WriteRawTag(40); - output.WriteBool(IncludeOutcome); - } - if (LongPollToken.Length != 0) { - output.WriteRawTag(50); - output.WriteBytes(LongPollToken); + output.WriteString(Query); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -70093,20 +77944,8 @@ public int CalculateSize() { if (Namespace.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Namespace); } - if (ActivityId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ActivityId); - } - if (RunId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(RunId); - } - if (IncludeInput != false) { - size += 1 + 1; - } - if (IncludeOutcome != false) { - size += 1 + 1; - } - if (LongPollToken.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(LongPollToken); + if (Query.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Query); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -70116,27 +77955,15 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DescribeActivityExecutionRequest other) { + public void MergeFrom(CountNexusOperationExecutionsRequest other) { if (other == null) { return; } if (other.Namespace.Length != 0) { Namespace = other.Namespace; } - if (other.ActivityId.Length != 0) { - ActivityId = other.ActivityId; - } - if (other.RunId.Length != 0) { - RunId = other.RunId; - } - if (other.IncludeInput != false) { - IncludeInput = other.IncludeInput; - } - if (other.IncludeOutcome != false) { - IncludeOutcome = other.IncludeOutcome; - } - if (other.LongPollToken.Length != 0) { - LongPollToken = other.LongPollToken; + if (other.Query.Length != 0) { + Query = other.Query; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -70158,23 +77985,7 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - ActivityId = input.ReadString(); - break; - } - case 26: { - RunId = input.ReadString(); - break; - } - case 32: { - IncludeInput = input.ReadBool(); - break; - } - case 40: { - IncludeOutcome = input.ReadBool(); - break; - } - case 50: { - LongPollToken = input.ReadBytes(); + Query = input.ReadString(); break; } } @@ -70197,23 +78008,7 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - ActivityId = input.ReadString(); - break; - } - case 26: { - RunId = input.ReadString(); - break; - } - case 32: { - IncludeInput = input.ReadBool(); - break; - } - case 40: { - IncludeOutcome = input.ReadBool(); - break; - } - case 50: { - LongPollToken = input.ReadBytes(); + Query = input.ReadString(); break; } } @@ -70223,21 +78018,21 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class DescribeActivityExecutionResponse : pb::IMessage + public sealed partial class CountNexusOperationExecutionsResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DescribeActivityExecutionResponse()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CountNexusOperationExecutionsResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[197]; } + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[221]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -70248,7 +78043,7 @@ public sealed partial class DescribeActivityExecutionResponse : pb::IMessageField number for the "run_id" field. - public const int RunIdFieldNumber = 1; - private string runId_ = ""; - /// - /// The run ID of the activity, useful when run_id was not specified in the request. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string RunId { - get { return runId_; } - set { - runId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "info" field. - public const int InfoFieldNumber = 2; - private global::Temporalio.Api.Activity.V1.ActivityExecutionInfo info_; - /// - /// Information about the activity execution. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Temporalio.Api.Activity.V1.ActivityExecutionInfo Info { - get { return info_; } - set { - info_ = value; - } - } - - /// Field number for the "input" field. - public const int InputFieldNumber = 3; - private global::Temporalio.Api.Common.V1.Payloads input_; - /// - /// Serialized activity input, passed as arguments to the activity function. - /// Only set if include_input was true in the request. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Temporalio.Api.Common.V1.Payloads Input { - get { return input_; } - set { - input_ = value; - } + public CountNexusOperationExecutionsResponse Clone() { + return new CountNexusOperationExecutionsResponse(this); } - /// Field number for the "outcome" field. - public const int OutcomeFieldNumber = 4; - private global::Temporalio.Api.Activity.V1.ActivityExecutionOutcome outcome_; + /// Field number for the "count" field. + public const int CountFieldNumber = 1; + private long count_; /// - /// Only set if the activity is completed and include_outcome was true in the request. + /// If `query` is not grouping by any field, the count is an approximate number + /// of operations 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 operations matching the query. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Temporalio.Api.Activity.V1.ActivityExecutionOutcome Outcome { - get { return outcome_; } + public long Count { + get { return count_; } set { - outcome_ = value; + count_ = value; } } - /// Field number for the "long_poll_token" field. - public const int LongPollTokenFieldNumber = 5; - private pb::ByteString longPollToken_ = pb::ByteString.Empty; + /// Field number for the "groups" field. + public const int GroupsFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_groups_codec + = pb::FieldCodec.ForMessage(18, global::Temporalio.Api.WorkflowService.V1.CountNexusOperationExecutionsResponse.Types.AggregationGroup.Parser); + private readonly pbc::RepeatedField groups_ = new pbc::RepeatedField(); /// - /// Token for follow-on long-poll requests. Absent only if the activity is complete. + /// 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. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString LongPollToken { - get { return longPollToken_; } - set { - longPollToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } + public pbc::RepeatedField Groups { + get { return groups_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as DescribeActivityExecutionResponse); + return Equals(other as CountNexusOperationExecutionsResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DescribeActivityExecutionResponse other) { + public bool Equals(CountNexusOperationExecutionsResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (RunId != other.RunId) return false; - if (!object.Equals(Info, other.Info)) return false; - if (!object.Equals(Input, other.Input)) return false; - if (!object.Equals(Outcome, other.Outcome)) return false; - if (LongPollToken != other.LongPollToken) return false; + if (Count != other.Count) return false; + if(!groups_.Equals(other.groups_)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -70374,11 +78121,8 @@ public bool Equals(DescribeActivityExecutionResponse other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (RunId.Length != 0) hash ^= RunId.GetHashCode(); - if (info_ != null) hash ^= Info.GetHashCode(); - if (input_ != null) hash ^= Input.GetHashCode(); - if (outcome_ != null) hash ^= Outcome.GetHashCode(); - if (LongPollToken.Length != 0) hash ^= LongPollToken.GetHashCode(); + if (Count != 0L) hash ^= Count.GetHashCode(); + hash ^= groups_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -70397,26 +78141,11 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (RunId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(RunId); - } - if (info_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Info); - } - if (input_ != null) { - output.WriteRawTag(26); - output.WriteMessage(Input); - } - if (outcome_ != null) { - output.WriteRawTag(34); - output.WriteMessage(Outcome); - } - if (LongPollToken.Length != 0) { - output.WriteRawTag(42); - output.WriteBytes(LongPollToken); + if (Count != 0L) { + output.WriteRawTag(8); + output.WriteInt64(Count); } + groups_.WriteTo(output, _repeated_groups_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -70427,26 +78156,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (RunId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(RunId); - } - if (info_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Info); - } - if (input_ != null) { - output.WriteRawTag(26); - output.WriteMessage(Input); - } - if (outcome_ != null) { - output.WriteRawTag(34); - output.WriteMessage(Outcome); - } - if (LongPollToken.Length != 0) { - output.WriteRawTag(42); - output.WriteBytes(LongPollToken); + if (Count != 0L) { + output.WriteRawTag(8); + output.WriteInt64(Count); } + groups_.WriteTo(ref output, _repeated_groups_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -70457,21 +78171,10 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (RunId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(RunId); - } - if (info_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Info); - } - if (input_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Input); - } - if (outcome_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Outcome); - } - if (LongPollToken.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(LongPollToken); + if (Count != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Count); } + size += groups_.CalculateSize(_repeated_groups_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -70480,34 +78183,14 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DescribeActivityExecutionResponse other) { + public void MergeFrom(CountNexusOperationExecutionsResponse other) { if (other == null) { return; } - if (other.RunId.Length != 0) { - RunId = other.RunId; - } - if (other.info_ != null) { - if (info_ == null) { - Info = new global::Temporalio.Api.Activity.V1.ActivityExecutionInfo(); - } - Info.MergeFrom(other.Info); - } - if (other.input_ != null) { - if (input_ == null) { - Input = new global::Temporalio.Api.Common.V1.Payloads(); - } - Input.MergeFrom(other.Input); - } - if (other.outcome_ != null) { - if (outcome_ == null) { - Outcome = new global::Temporalio.Api.Activity.V1.ActivityExecutionOutcome(); - } - Outcome.MergeFrom(other.Outcome); - } - if (other.LongPollToken.Length != 0) { - LongPollToken = other.LongPollToken; + if (other.Count != 0L) { + Count = other.Count; } + groups_.Add(other.groups_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -70523,101 +78206,282 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { - RunId = input.ReadString(); + case 8: { + Count = input.ReadInt64(); + break; + } + case 18: { + groups_.AddEntriesFrom(input, _repeated_groups_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Count = input.ReadInt64(); + break; + } + case 18: { + groups_.AddEntriesFrom(ref input, _repeated_groups_codec); break; } - case 18: { - if (info_ == null) { - Info = new global::Temporalio.Api.Activity.V1.ActivityExecutionInfo(); - } - input.ReadMessage(Info); - break; + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the CountNexusOperationExecutionsResponse message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + public sealed partial class AggregationGroup : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AggregationGroup()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Temporalio.Api.WorkflowService.V1.CountNexusOperationExecutionsResponse.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AggregationGroup() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AggregationGroup(AggregationGroup other) : this() { + groupValues_ = other.groupValues_.Clone(); + count_ = other.count_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AggregationGroup Clone() { + return new AggregationGroup(this); + } + + /// Field number for the "group_values" field. + public const int GroupValuesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_groupValues_codec + = pb::FieldCodec.ForMessage(10, global::Temporalio.Api.Common.V1.Payload.Parser); + private readonly pbc::RepeatedField groupValues_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField GroupValues { + get { return groupValues_; } + } + + /// Field number for the "count" field. + public const int CountFieldNumber = 2; + private long count_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Count { + get { return count_; } + set { + count_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AggregationGroup); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AggregationGroup other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!groupValues_.Equals(other.groupValues_)) return false; + if (Count != other.Count) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= groupValues_.GetHashCode(); + if (Count != 0L) hash ^= Count.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + groupValues_.WriteTo(output, _repeated_groupValues_codec); + if (Count != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Count); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); } - case 26: { - if (input_ == null) { - Input = new global::Temporalio.Api.Common.V1.Payloads(); - } - input.ReadMessage(Input); - break; + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + groupValues_.WriteTo(ref output, _repeated_groupValues_codec); + if (Count != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Count); } - case 34: { - if (outcome_ == null) { - Outcome = new global::Temporalio.Api.Activity.V1.ActivityExecutionOutcome(); - } - input.ReadMessage(Outcome); - break; + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); } - case 42: { - LongPollToken = input.ReadBytes(); - break; + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += groupValues_.CalculateSize(_repeated_groupValues_codec); + if (Count != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Count); } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; } - } - #endif - } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - RunId = input.ReadString(); - break; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AggregationGroup other) { + if (other == null) { + return; } - case 18: { - if (info_ == null) { - Info = new global::Temporalio.Api.Activity.V1.ActivityExecutionInfo(); - } - input.ReadMessage(Info); - break; + groupValues_.Add(other.groupValues_); + if (other.Count != 0L) { + Count = other.Count; } - case 26: { - if (input_ == null) { - Input = new global::Temporalio.Api.Common.V1.Payloads(); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + groupValues_.AddEntriesFrom(input, _repeated_groupValues_codec); + break; + } + case 16: { + Count = input.ReadInt64(); + break; + } } - input.ReadMessage(Input); - break; } - case 34: { - if (outcome_ == null) { - Outcome = new global::Temporalio.Api.Activity.V1.ActivityExecutionOutcome(); + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + groupValues_.AddEntriesFrom(ref input, _repeated_groupValues_codec); + break; + } + case 16: { + Count = input.ReadInt64(); + break; + } } - input.ReadMessage(Outcome); - break; - } - case 42: { - LongPollToken = input.ReadBytes(); - break; } } + #endif + } + } - #endif + #endregion } - public sealed partial class PollActivityExecutionRequest : pb::IMessage + public sealed partial class RequestCancelActivityExecutionRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PollActivityExecutionRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RequestCancelActivityExecutionRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[198]; } + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[222]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -70628,7 +78492,7 @@ public sealed partial class PollActivityExecutionRequest : pb::IMessageField number for the "namespace" field. @@ -70677,7 +78544,7 @@ public string ActivityId { public const int RunIdFieldNumber = 3; private string runId_ = ""; /// - /// Activity run ID. If empty the request targets the latest run. + /// Activity run ID, targets the latest run if run_id is empty. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -70688,15 +78555,61 @@ public string RunId { } } + /// Field number for the "identity" field. + public const int IdentityFieldNumber = 4; + private string identity_ = ""; + /// + /// The identity of the worker/client. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Identity { + get { return identity_; } + set { + identity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "request_id" field. + public const int RequestIdFieldNumber = 5; + private string requestId_ = ""; + /// + /// Used to de-dupe cancellation requests. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RequestId { + get { return requestId_; } + set { + requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "reason" field. + public const int ReasonFieldNumber = 6; + private string reason_ = ""; + /// + /// Reason for requesting the cancellation, recorded and available via the PollActivityExecution API. + /// Not propagated to a worker if an activity attempt is currently running. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Reason { + get { return reason_; } + set { + reason_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as PollActivityExecutionRequest); + return Equals(other as RequestCancelActivityExecutionRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(PollActivityExecutionRequest other) { + public bool Equals(RequestCancelActivityExecutionRequest other) { if (ReferenceEquals(other, null)) { return false; } @@ -70706,6 +78619,9 @@ public bool Equals(PollActivityExecutionRequest other) { if (Namespace != other.Namespace) return false; if (ActivityId != other.ActivityId) return false; if (RunId != other.RunId) return false; + if (Identity != other.Identity) return false; + if (RequestId != other.RequestId) return false; + if (Reason != other.Reason) return false; return Equals(_unknownFields, other._unknownFields); } @@ -70716,6 +78632,9 @@ public override int GetHashCode() { if (Namespace.Length != 0) hash ^= Namespace.GetHashCode(); if (ActivityId.Length != 0) hash ^= ActivityId.GetHashCode(); if (RunId.Length != 0) hash ^= RunId.GetHashCode(); + if (Identity.Length != 0) hash ^= Identity.GetHashCode(); + if (RequestId.Length != 0) hash ^= RequestId.GetHashCode(); + if (Reason.Length != 0) hash ^= Reason.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -70746,6 +78665,18 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(26); output.WriteString(RunId); } + if (Identity.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Identity); + } + if (RequestId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(RequestId); + } + if (Reason.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Reason); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -70768,6 +78699,18 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(26); output.WriteString(RunId); } + if (Identity.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Identity); + } + if (RequestId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(RequestId); + } + if (Reason.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Reason); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -70787,6 +78730,15 @@ public int CalculateSize() { if (RunId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(RunId); } + if (Identity.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Identity); + } + if (RequestId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); + } + if (Reason.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Reason); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -70795,7 +78747,7 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(PollActivityExecutionRequest other) { + public void MergeFrom(RequestCancelActivityExecutionRequest other) { if (other == null) { return; } @@ -70808,6 +78760,15 @@ public void MergeFrom(PollActivityExecutionRequest other) { if (other.RunId.Length != 0) { RunId = other.RunId; } + if (other.Identity.Length != 0) { + Identity = other.Identity; + } + if (other.RequestId.Length != 0) { + RequestId = other.RequestId; + } + if (other.Reason.Length != 0) { + Reason = other.Reason; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -70835,6 +78796,18 @@ public void MergeFrom(pb::CodedInputStream input) { RunId = input.ReadString(); break; } + case 34: { + Identity = input.ReadString(); + break; + } + case 42: { + RequestId = input.ReadString(); + break; + } + case 50: { + Reason = input.ReadString(); + break; + } } } #endif @@ -70862,6 +78835,18 @@ public void MergeFrom(pb::CodedInputStream input) { RunId = input.ReadString(); break; } + case 34: { + Identity = input.ReadString(); + break; + } + case 42: { + RequestId = input.ReadString(); + break; + } + case 50: { + Reason = input.ReadString(); + break; + } } } } @@ -70869,21 +78854,21 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class PollActivityExecutionResponse : pb::IMessage + public sealed partial class RequestCancelActivityExecutionResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PollActivityExecutionResponse()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RequestCancelActivityExecutionResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[199]; } + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[223]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -70894,7 +78879,7 @@ public sealed partial class PollActivityExecutionResponse : pb::IMessageField number for the "run_id" field. - public const int RunIdFieldNumber = 1; - private string runId_ = ""; - /// - /// The run ID of the activity, useful when run_id was not specified in the request. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string RunId { - get { return runId_; } - set { - runId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "outcome" field. - public const int OutcomeFieldNumber = 2; - private global::Temporalio.Api.Activity.V1.ActivityExecutionOutcome outcome_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Temporalio.Api.Activity.V1.ActivityExecutionOutcome Outcome { - get { return outcome_; } - set { - outcome_ = value; - } + public RequestCancelActivityExecutionResponse Clone() { + return new RequestCancelActivityExecutionResponse(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as PollActivityExecutionResponse); + return Equals(other as RequestCancelActivityExecutionResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(PollActivityExecutionResponse other) { + public bool Equals(RequestCancelActivityExecutionResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (RunId != other.RunId) return false; - if (!object.Equals(Outcome, other.Outcome)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -70965,8 +78919,6 @@ public bool Equals(PollActivityExecutionResponse other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (RunId.Length != 0) hash ^= RunId.GetHashCode(); - if (outcome_ != null) hash ^= Outcome.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -70985,14 +78937,6 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (RunId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(RunId); - } - if (outcome_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Outcome); - } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -71003,14 +78947,6 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (RunId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(RunId); - } - if (outcome_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Outcome); - } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -71021,12 +78957,6 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (RunId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(RunId); - } - if (outcome_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Outcome); - } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -71035,19 +78965,10 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(PollActivityExecutionResponse other) { + public void MergeFrom(RequestCancelActivityExecutionResponse other) { if (other == null) { return; } - if (other.RunId.Length != 0) { - RunId = other.RunId; - } - if (other.outcome_ != null) { - if (outcome_ == null) { - Outcome = new global::Temporalio.Api.Activity.V1.ActivityExecutionOutcome(); - } - Outcome.MergeFrom(other.Outcome); - } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -71063,17 +78984,6 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { - RunId = input.ReadString(); - break; - } - case 18: { - if (outcome_ == null) { - Outcome = new global::Temporalio.Api.Activity.V1.ActivityExecutionOutcome(); - } - input.ReadMessage(Outcome); - break; - } } } #endif @@ -71089,17 +78999,6 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - RunId = input.ReadString(); - break; - } - case 18: { - if (outcome_ == null) { - Outcome = new global::Temporalio.Api.Activity.V1.ActivityExecutionOutcome(); - } - input.ReadMessage(Outcome); - break; - } } } } @@ -71107,21 +79006,21 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class ListActivityExecutionsRequest : pb::IMessage + public sealed partial class TerminateActivityExecutionRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListActivityExecutionsRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TerminateActivityExecutionRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[200]; } + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[224]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -71132,7 +79031,7 @@ public sealed partial class ListActivityExecutionsRequest : pb::IMessageField number for the "namespace" field. @@ -71166,60 +79067,87 @@ public string Namespace { } } - /// Field number for the "page_size" field. - public const int PageSizeFieldNumber = 2; - private int pageSize_; + /// Field number for the "activity_id" field. + public const int ActivityIdFieldNumber = 2; + private string activityId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ActivityId { + get { return activityId_; } + set { + activityId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "run_id" field. + public const int RunIdFieldNumber = 3; + private string runId_ = ""; /// - /// Max number of executions to return per page. + /// Activity run ID, targets the latest run if run_id is empty. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int PageSize { - get { return pageSize_; } + public string RunId { + get { return runId_; } set { - pageSize_ = value; + runId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - /// Field number for the "next_page_token" field. - public const int NextPageTokenFieldNumber = 3; - private pb::ByteString nextPageToken_ = pb::ByteString.Empty; + /// Field number for the "identity" field. + public const int IdentityFieldNumber = 4; + private string identity_ = ""; /// - /// Token returned in ListActivityExecutionsResponse. + /// The identity of the worker/client. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString NextPageToken { - get { return nextPageToken_; } + public string Identity { + get { return identity_; } set { - nextPageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + identity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - /// Field number for the "query" field. - public const int QueryFieldNumber = 4; - private string query_ = ""; + /// Field number for the "request_id" field. + public const int RequestIdFieldNumber = 5; + private string requestId_ = ""; /// - /// Visibility query, see https://docs.temporal.io/list-filter for the syntax. + /// Used to de-dupe termination requests. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Query { - get { return query_; } + public string RequestId { + get { return requestId_; } set { - query_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "reason" field. + public const int ReasonFieldNumber = 6; + private string reason_ = ""; + /// + /// Reason for requesting the termination, recorded in in the activity's result failure outcome. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Reason { + get { return reason_; } + set { + reason_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as ListActivityExecutionsRequest); + return Equals(other as TerminateActivityExecutionRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ListActivityExecutionsRequest other) { + public bool Equals(TerminateActivityExecutionRequest other) { if (ReferenceEquals(other, null)) { return false; } @@ -71227,9 +79155,11 @@ public bool Equals(ListActivityExecutionsRequest other) { return true; } if (Namespace != other.Namespace) return false; - if (PageSize != other.PageSize) return false; - if (NextPageToken != other.NextPageToken) return false; - if (Query != other.Query) return false; + if (ActivityId != other.ActivityId) return false; + if (RunId != other.RunId) return false; + if (Identity != other.Identity) return false; + if (RequestId != other.RequestId) return false; + if (Reason != other.Reason) return false; return Equals(_unknownFields, other._unknownFields); } @@ -71238,9 +79168,11 @@ public bool Equals(ListActivityExecutionsRequest other) { public override int GetHashCode() { int hash = 1; if (Namespace.Length != 0) hash ^= Namespace.GetHashCode(); - if (PageSize != 0) hash ^= PageSize.GetHashCode(); - if (NextPageToken.Length != 0) hash ^= NextPageToken.GetHashCode(); - if (Query.Length != 0) hash ^= Query.GetHashCode(); + if (ActivityId.Length != 0) hash ^= ActivityId.GetHashCode(); + if (RunId.Length != 0) hash ^= RunId.GetHashCode(); + if (Identity.Length != 0) hash ^= Identity.GetHashCode(); + if (RequestId.Length != 0) hash ^= RequestId.GetHashCode(); + if (Reason.Length != 0) hash ^= Reason.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -71263,17 +79195,25 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(Namespace); } - if (PageSize != 0) { - output.WriteRawTag(16); - output.WriteInt32(PageSize); + if (ActivityId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ActivityId); } - if (NextPageToken.Length != 0) { + if (RunId.Length != 0) { output.WriteRawTag(26); - output.WriteBytes(NextPageToken); + output.WriteString(RunId); } - if (Query.Length != 0) { + if (Identity.Length != 0) { output.WriteRawTag(34); - output.WriteString(Query); + output.WriteString(Identity); + } + if (RequestId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(RequestId); + } + if (Reason.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Reason); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -71289,17 +79229,25 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(Namespace); } - if (PageSize != 0) { - output.WriteRawTag(16); - output.WriteInt32(PageSize); + if (ActivityId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ActivityId); } - if (NextPageToken.Length != 0) { + if (RunId.Length != 0) { output.WriteRawTag(26); - output.WriteBytes(NextPageToken); + output.WriteString(RunId); } - if (Query.Length != 0) { + if (Identity.Length != 0) { output.WriteRawTag(34); - output.WriteString(Query); + output.WriteString(Identity); + } + if (RequestId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(RequestId); + } + if (Reason.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Reason); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -71314,14 +79262,20 @@ public int CalculateSize() { if (Namespace.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Namespace); } - if (PageSize != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(PageSize); + if (ActivityId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ActivityId); } - if (NextPageToken.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(NextPageToken); + if (RunId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RunId); } - if (Query.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Query); + if (Identity.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Identity); + } + if (RequestId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); + } + if (Reason.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Reason); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -71331,21 +79285,27 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ListActivityExecutionsRequest other) { + public void MergeFrom(TerminateActivityExecutionRequest other) { if (other == null) { return; } if (other.Namespace.Length != 0) { Namespace = other.Namespace; } - if (other.PageSize != 0) { - PageSize = other.PageSize; + if (other.ActivityId.Length != 0) { + ActivityId = other.ActivityId; } - if (other.NextPageToken.Length != 0) { - NextPageToken = other.NextPageToken; + if (other.RunId.Length != 0) { + RunId = other.RunId; } - if (other.Query.Length != 0) { - Query = other.Query; + if (other.Identity.Length != 0) { + Identity = other.Identity; + } + if (other.RequestId.Length != 0) { + RequestId = other.RequestId; + } + if (other.Reason.Length != 0) { + Reason = other.Reason; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -71366,16 +79326,24 @@ public void MergeFrom(pb::CodedInputStream input) { Namespace = input.ReadString(); break; } - case 16: { - PageSize = input.ReadInt32(); + case 18: { + ActivityId = input.ReadString(); break; } case 26: { - NextPageToken = input.ReadBytes(); + RunId = input.ReadString(); break; } case 34: { - Query = input.ReadString(); + Identity = input.ReadString(); + break; + } + case 42: { + RequestId = input.ReadString(); + break; + } + case 50: { + Reason = input.ReadString(); break; } } @@ -71397,16 +79365,24 @@ public void MergeFrom(pb::CodedInputStream input) { Namespace = input.ReadString(); break; } - case 16: { - PageSize = input.ReadInt32(); + case 18: { + ActivityId = input.ReadString(); break; } case 26: { - NextPageToken = input.ReadBytes(); + RunId = input.ReadString(); break; } case 34: { - Query = input.ReadString(); + Identity = input.ReadString(); + break; + } + case 42: { + RequestId = input.ReadString(); + break; + } + case 50: { + Reason = input.ReadString(); break; } } @@ -71416,21 +79392,21 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class ListActivityExecutionsResponse : pb::IMessage + public sealed partial class TerminateActivityExecutionResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListActivityExecutionsResponse()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TerminateActivityExecutionResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[201]; } + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[225]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -71441,7 +79417,7 @@ public sealed partial class ListActivityExecutionsResponse : pb::IMessageField number for the "executions" field. - public const int ExecutionsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_executions_codec - = pb::FieldCodec.ForMessage(10, global::Temporalio.Api.Activity.V1.ActivityExecutionListInfo.Parser); - private readonly pbc::RepeatedField executions_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Executions { - get { return executions_; } - } - - /// Field number for the "next_page_token" field. - public const int NextPageTokenFieldNumber = 2; - private pb::ByteString nextPageToken_ = pb::ByteString.Empty; - /// - /// Token to use to fetch the next page. If empty, there is no next page. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString NextPageToken { - get { return nextPageToken_; } - set { - nextPageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } + public TerminateActivityExecutionResponse Clone() { + return new TerminateActivityExecutionResponse(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as ListActivityExecutionsResponse); + return Equals(other as TerminateActivityExecutionResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ListActivityExecutionsResponse other) { + public bool Equals(TerminateActivityExecutionResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if(!executions_.Equals(other.executions_)) return false; - if (NextPageToken != other.NextPageToken) return false; return Equals(_unknownFields, other._unknownFields); } @@ -71511,8 +79457,6 @@ public bool Equals(ListActivityExecutionsResponse other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - hash ^= executions_.GetHashCode(); - if (NextPageToken.Length != 0) hash ^= NextPageToken.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -71531,11 +79475,6 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - executions_.WriteTo(output, _repeated_executions_codec); - if (NextPageToken.Length != 0) { - output.WriteRawTag(18); - output.WriteBytes(NextPageToken); - } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -71546,11 +79485,6 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - executions_.WriteTo(ref output, _repeated_executions_codec); - if (NextPageToken.Length != 0) { - output.WriteRawTag(18); - output.WriteBytes(NextPageToken); - } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -71561,10 +79495,6 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - size += executions_.CalculateSize(_repeated_executions_codec); - if (NextPageToken.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(NextPageToken); - } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -71573,14 +79503,10 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ListActivityExecutionsResponse other) { + public void MergeFrom(TerminateActivityExecutionResponse other) { if (other == null) { return; } - executions_.Add(other.executions_); - if (other.NextPageToken.Length != 0) { - NextPageToken = other.NextPageToken; - } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -71596,14 +79522,6 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { - executions_.AddEntriesFrom(input, _repeated_executions_codec); - break; - } - case 18: { - NextPageToken = input.ReadBytes(); - break; - } } } #endif @@ -71619,14 +79537,6 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - executions_.AddEntriesFrom(ref input, _repeated_executions_codec); - break; - } - case 18: { - NextPageToken = input.ReadBytes(); - break; - } } } } @@ -71634,21 +79544,21 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class CountActivityExecutionsRequest : pb::IMessage + public sealed partial class DeleteActivityExecutionRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CountActivityExecutionsRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteActivityExecutionRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[202]; } + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[226]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -71659,7 +79569,7 @@ public sealed partial class CountActivityExecutionsRequest : pb::IMessageField number for the "namespace" field. @@ -71691,30 +79602,42 @@ public string Namespace { } } - /// Field number for the "query" field. - public const int QueryFieldNumber = 2; - private string query_ = ""; + /// Field number for the "activity_id" field. + public const int ActivityIdFieldNumber = 2; + private string activityId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ActivityId { + get { return activityId_; } + set { + activityId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "run_id" field. + public const int RunIdFieldNumber = 3; + private string runId_ = ""; /// - /// Visibility query, see https://docs.temporal.io/list-filter for the syntax. + /// Activity run ID, targets the latest run if run_id is empty. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Query { - get { return query_; } + public string RunId { + get { return runId_; } set { - query_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + runId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as CountActivityExecutionsRequest); + return Equals(other as DeleteActivityExecutionRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CountActivityExecutionsRequest other) { + public bool Equals(DeleteActivityExecutionRequest other) { if (ReferenceEquals(other, null)) { return false; } @@ -71722,7 +79645,8 @@ public bool Equals(CountActivityExecutionsRequest other) { return true; } if (Namespace != other.Namespace) return false; - if (Query != other.Query) return false; + if (ActivityId != other.ActivityId) return false; + if (RunId != other.RunId) return false; return Equals(_unknownFields, other._unknownFields); } @@ -71731,7 +79655,8 @@ public bool Equals(CountActivityExecutionsRequest other) { public override int GetHashCode() { int hash = 1; if (Namespace.Length != 0) hash ^= Namespace.GetHashCode(); - if (Query.Length != 0) hash ^= Query.GetHashCode(); + if (ActivityId.Length != 0) hash ^= ActivityId.GetHashCode(); + if (RunId.Length != 0) hash ^= RunId.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -71754,9 +79679,13 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(Namespace); } - if (Query.Length != 0) { + if (ActivityId.Length != 0) { output.WriteRawTag(18); - output.WriteString(Query); + output.WriteString(ActivityId); + } + if (RunId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(RunId); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -71772,9 +79701,13 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(Namespace); } - if (Query.Length != 0) { + if (ActivityId.Length != 0) { output.WriteRawTag(18); - output.WriteString(Query); + output.WriteString(ActivityId); + } + if (RunId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(RunId); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -71789,8 +79722,11 @@ public int CalculateSize() { if (Namespace.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Namespace); } - if (Query.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Query); + if (ActivityId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ActivityId); + } + if (RunId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RunId); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -71800,15 +79736,18 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CountActivityExecutionsRequest other) { + public void MergeFrom(DeleteActivityExecutionRequest other) { if (other == null) { return; } if (other.Namespace.Length != 0) { Namespace = other.Namespace; } - if (other.Query.Length != 0) { - Query = other.Query; + if (other.ActivityId.Length != 0) { + ActivityId = other.ActivityId; + } + if (other.RunId.Length != 0) { + RunId = other.RunId; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -71830,7 +79769,11 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - Query = input.ReadString(); + ActivityId = input.ReadString(); + break; + } + case 26: { + RunId = input.ReadString(); break; } } @@ -71853,7 +79796,11 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - Query = input.ReadString(); + ActivityId = input.ReadString(); + break; + } + case 26: { + RunId = input.ReadString(); break; } } @@ -71863,21 +79810,21 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class CountActivityExecutionsResponse : pb::IMessage + public sealed partial class DeleteActivityExecutionResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CountActivityExecutionsResponse()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteActivityExecutionResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[203]; } + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[227]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -71888,7 +79835,7 @@ public sealed partial class CountActivityExecutionsResponse : pb::IMessageField number for the "count" field. - public const int CountFieldNumber = 1; - private long count_; - /// - /// 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. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Count { - get { return count_; } - set { - count_ = value; - } - } - - /// Field number for the "groups" field. - public const int GroupsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_groups_codec - = pb::FieldCodec.ForMessage(18, global::Temporalio.Api.WorkflowService.V1.CountActivityExecutionsResponse.Types.AggregationGroup.Parser); - private readonly pbc::RepeatedField groups_ = new pbc::RepeatedField(); - /// - /// 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. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Groups { - get { return groups_; } + public DeleteActivityExecutionResponse Clone() { + return new DeleteActivityExecutionResponse(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as CountActivityExecutionsResponse); + return Equals(other as DeleteActivityExecutionResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CountActivityExecutionsResponse other) { + public bool Equals(DeleteActivityExecutionResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (Count != other.Count) return false; - if(!groups_.Equals(other.groups_)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -71966,8 +79875,6 @@ public bool Equals(CountActivityExecutionsResponse other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Count != 0L) hash ^= Count.GetHashCode(); - hash ^= groups_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -71986,11 +79893,6 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Count != 0L) { - output.WriteRawTag(8); - output.WriteInt64(Count); - } - groups_.WriteTo(output, _repeated_groups_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -72001,11 +79903,6 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Count != 0L) { - output.WriteRawTag(8); - output.WriteInt64(Count); - } - groups_.WriteTo(ref output, _repeated_groups_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -72016,10 +79913,6 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Count != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Count); - } - size += groups_.CalculateSize(_repeated_groups_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -72028,14 +79921,10 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CountActivityExecutionsResponse other) { + public void MergeFrom(DeleteActivityExecutionResponse other) { if (other == null) { return; } - if (other.Count != 0L) { - Count = other.Count; - } - groups_.Add(other.groups_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -72051,14 +79940,6 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 8: { - Count = input.ReadInt64(); - break; - } - case 18: { - groups_.AddEntriesFrom(input, _repeated_groups_codec); - break; - } } } #endif @@ -72074,259 +79955,28 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 8: { - Count = input.ReadInt64(); - break; - } - case 18: { - groups_.AddEntriesFrom(ref input, _repeated_groups_codec); - break; - } } } } #endif - #region Nested types - /// Container for nested types declared in the CountActivityExecutionsResponse message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - public sealed partial class AggregationGroup : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AggregationGroup()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.WorkflowService.V1.CountActivityExecutionsResponse.Descriptor.NestedTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AggregationGroup() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AggregationGroup(AggregationGroup other) : this() { - groupValues_ = other.groupValues_.Clone(); - count_ = other.count_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AggregationGroup Clone() { - return new AggregationGroup(this); - } - - /// Field number for the "group_values" field. - public const int GroupValuesFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_groupValues_codec - = pb::FieldCodec.ForMessage(10, global::Temporalio.Api.Common.V1.Payload.Parser); - private readonly pbc::RepeatedField groupValues_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField GroupValues { - get { return groupValues_; } - } - - /// Field number for the "count" field. - public const int CountFieldNumber = 2; - private long count_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Count { - get { return count_; } - set { - count_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AggregationGroup); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AggregationGroup other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!groupValues_.Equals(other.groupValues_)) return false; - if (Count != other.Count) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= groupValues_.GetHashCode(); - if (Count != 0L) hash ^= Count.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - groupValues_.WriteTo(output, _repeated_groupValues_codec); - if (Count != 0L) { - output.WriteRawTag(16); - output.WriteInt64(Count); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - groupValues_.WriteTo(ref output, _repeated_groupValues_codec); - if (Count != 0L) { - output.WriteRawTag(16); - output.WriteInt64(Count); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += groupValues_.CalculateSize(_repeated_groupValues_codec); - if (Count != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Count); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AggregationGroup other) { - if (other == null) { - return; - } - groupValues_.Add(other.groupValues_); - if (other.Count != 0L) { - Count = other.Count; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - groupValues_.AddEntriesFrom(input, _repeated_groupValues_codec); - break; - } - case 16: { - Count = input.ReadInt64(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - groupValues_.AddEntriesFrom(ref input, _repeated_groupValues_codec); - break; - } - case 16: { - Count = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - } - #endregion - } - public sealed partial class RequestCancelActivityExecutionRequest : pb::IMessage + public sealed partial class RequestCancelNexusOperationExecutionRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RequestCancelActivityExecutionRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RequestCancelNexusOperationExecutionRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[204]; } + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[228]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -72337,7 +79987,7 @@ public sealed partial class RequestCancelActivityExecutionRequest : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RequestCancelActivityExecutionRequest() { + public RequestCancelNexusOperationExecutionRequest() { OnConstruction(); } @@ -72345,9 +79995,9 @@ public RequestCancelActivityExecutionRequest() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RequestCancelActivityExecutionRequest(RequestCancelActivityExecutionRequest other) : this() { + public RequestCancelNexusOperationExecutionRequest(RequestCancelNexusOperationExecutionRequest other) : this() { namespace_ = other.namespace_; - activityId_ = other.activityId_; + operationId_ = other.operationId_; runId_ = other.runId_; identity_ = other.identity_; requestId_ = other.requestId_; @@ -72357,8 +80007,8 @@ public RequestCancelActivityExecutionRequest(RequestCancelActivityExecutionReque [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RequestCancelActivityExecutionRequest Clone() { - return new RequestCancelActivityExecutionRequest(this); + public RequestCancelNexusOperationExecutionRequest Clone() { + return new RequestCancelNexusOperationExecutionRequest(this); } /// Field number for the "namespace" field. @@ -72373,15 +80023,15 @@ public string Namespace { } } - /// Field number for the "activity_id" field. - public const int ActivityIdFieldNumber = 2; - private string activityId_ = ""; + /// Field number for the "operation_id" field. + public const int OperationIdFieldNumber = 2; + private string operationId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ActivityId { - get { return activityId_; } + public string OperationId { + get { return operationId_; } set { - activityId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + operationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } @@ -72389,7 +80039,7 @@ public string ActivityId { public const int RunIdFieldNumber = 3; private string runId_ = ""; /// - /// Activity run ID, targets the latest run if run_id is empty. + /// Operation run ID, targets the latest run if empty. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -72404,7 +80054,7 @@ public string RunId { public const int IdentityFieldNumber = 4; private string identity_ = ""; /// - /// The identity of the worker/client. + /// The identity of the client who initiated this request. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -72434,8 +80084,7 @@ public string RequestId { public const int ReasonFieldNumber = 6; private string reason_ = ""; /// - /// Reason for requesting the cancellation, recorded and available via the PollActivityExecution API. - /// Not propagated to a worker if an activity attempt is currently running. + /// Reason for requesting the cancellation, recorded and available via the DescribeNexusOperationExecution API. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -72449,12 +80098,12 @@ public string Reason { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as RequestCancelActivityExecutionRequest); + return Equals(other as RequestCancelNexusOperationExecutionRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(RequestCancelActivityExecutionRequest other) { + public bool Equals(RequestCancelNexusOperationExecutionRequest other) { if (ReferenceEquals(other, null)) { return false; } @@ -72462,7 +80111,7 @@ public bool Equals(RequestCancelActivityExecutionRequest other) { return true; } if (Namespace != other.Namespace) return false; - if (ActivityId != other.ActivityId) return false; + if (OperationId != other.OperationId) return false; if (RunId != other.RunId) return false; if (Identity != other.Identity) return false; if (RequestId != other.RequestId) return false; @@ -72475,7 +80124,7 @@ public bool Equals(RequestCancelActivityExecutionRequest other) { public override int GetHashCode() { int hash = 1; if (Namespace.Length != 0) hash ^= Namespace.GetHashCode(); - if (ActivityId.Length != 0) hash ^= ActivityId.GetHashCode(); + if (OperationId.Length != 0) hash ^= OperationId.GetHashCode(); if (RunId.Length != 0) hash ^= RunId.GetHashCode(); if (Identity.Length != 0) hash ^= Identity.GetHashCode(); if (RequestId.Length != 0) hash ^= RequestId.GetHashCode(); @@ -72502,9 +80151,9 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(Namespace); } - if (ActivityId.Length != 0) { + if (OperationId.Length != 0) { output.WriteRawTag(18); - output.WriteString(ActivityId); + output.WriteString(OperationId); } if (RunId.Length != 0) { output.WriteRawTag(26); @@ -72536,9 +80185,9 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(Namespace); } - if (ActivityId.Length != 0) { + if (OperationId.Length != 0) { output.WriteRawTag(18); - output.WriteString(ActivityId); + output.WriteString(OperationId); } if (RunId.Length != 0) { output.WriteRawTag(26); @@ -72569,8 +80218,8 @@ public int CalculateSize() { if (Namespace.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Namespace); } - if (ActivityId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ActivityId); + if (OperationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(OperationId); } if (RunId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(RunId); @@ -72592,15 +80241,15 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(RequestCancelActivityExecutionRequest other) { + public void MergeFrom(RequestCancelNexusOperationExecutionRequest other) { if (other == null) { return; } if (other.Namespace.Length != 0) { Namespace = other.Namespace; } - if (other.ActivityId.Length != 0) { - ActivityId = other.ActivityId; + if (other.OperationId.Length != 0) { + OperationId = other.OperationId; } if (other.RunId.Length != 0) { RunId = other.RunId; @@ -72634,7 +80283,7 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - ActivityId = input.ReadString(); + OperationId = input.ReadString(); break; } case 26: { @@ -72673,7 +80322,7 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - ActivityId = input.ReadString(); + OperationId = input.ReadString(); break; } case 26: { @@ -72699,21 +80348,21 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class RequestCancelActivityExecutionResponse : pb::IMessage + public sealed partial class RequestCancelNexusOperationExecutionResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RequestCancelActivityExecutionResponse()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RequestCancelNexusOperationExecutionResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[205]; } + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[229]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -72724,7 +80373,7 @@ public sealed partial class RequestCancelActivityExecutionResponse : pb::IMessag [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RequestCancelActivityExecutionResponse() { + public RequestCancelNexusOperationExecutionResponse() { OnConstruction(); } @@ -72732,25 +80381,25 @@ public RequestCancelActivityExecutionResponse() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RequestCancelActivityExecutionResponse(RequestCancelActivityExecutionResponse other) : this() { + public RequestCancelNexusOperationExecutionResponse(RequestCancelNexusOperationExecutionResponse other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RequestCancelActivityExecutionResponse Clone() { - return new RequestCancelActivityExecutionResponse(this); + public RequestCancelNexusOperationExecutionResponse Clone() { + return new RequestCancelNexusOperationExecutionResponse(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as RequestCancelActivityExecutionResponse); + return Equals(other as RequestCancelNexusOperationExecutionResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(RequestCancelActivityExecutionResponse other) { + public bool Equals(RequestCancelNexusOperationExecutionResponse other) { if (ReferenceEquals(other, null)) { return false; } @@ -72810,7 +80459,7 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(RequestCancelActivityExecutionResponse other) { + public void MergeFrom(RequestCancelNexusOperationExecutionResponse other) { if (other == null) { return; } @@ -72851,21 +80500,21 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class TerminateActivityExecutionRequest : pb::IMessage + public sealed partial class TerminateNexusOperationExecutionRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TerminateActivityExecutionRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TerminateNexusOperationExecutionRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[206]; } + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[230]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -72876,7 +80525,7 @@ public sealed partial class TerminateActivityExecutionRequest : pb::IMessageField number for the "namespace" field. @@ -72912,15 +80561,15 @@ public string Namespace { } } - /// Field number for the "activity_id" field. - public const int ActivityIdFieldNumber = 2; - private string activityId_ = ""; + /// Field number for the "operation_id" field. + public const int OperationIdFieldNumber = 2; + private string operationId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ActivityId { - get { return activityId_; } + public string OperationId { + get { return operationId_; } set { - activityId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + operationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } @@ -72928,7 +80577,7 @@ public string ActivityId { public const int RunIdFieldNumber = 3; private string runId_ = ""; /// - /// Activity run ID, targets the latest run if run_id is empty. + /// Operation run ID, targets the latest run if empty. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -72943,7 +80592,7 @@ public string RunId { public const int IdentityFieldNumber = 4; private string identity_ = ""; /// - /// The identity of the worker/client. + /// The identity of the client who initiated this request. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -72973,7 +80622,7 @@ public string RequestId { public const int ReasonFieldNumber = 6; private string reason_ = ""; /// - /// Reason for requesting the termination, recorded in in the activity's result failure outcome. + /// Reason for requesting the termination, recorded in the operation's result failure outcome. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -72987,12 +80636,12 @@ public string Reason { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as TerminateActivityExecutionRequest); + return Equals(other as TerminateNexusOperationExecutionRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(TerminateActivityExecutionRequest other) { + public bool Equals(TerminateNexusOperationExecutionRequest other) { if (ReferenceEquals(other, null)) { return false; } @@ -73000,7 +80649,7 @@ public bool Equals(TerminateActivityExecutionRequest other) { return true; } if (Namespace != other.Namespace) return false; - if (ActivityId != other.ActivityId) return false; + if (OperationId != other.OperationId) return false; if (RunId != other.RunId) return false; if (Identity != other.Identity) return false; if (RequestId != other.RequestId) return false; @@ -73013,7 +80662,7 @@ public bool Equals(TerminateActivityExecutionRequest other) { public override int GetHashCode() { int hash = 1; if (Namespace.Length != 0) hash ^= Namespace.GetHashCode(); - if (ActivityId.Length != 0) hash ^= ActivityId.GetHashCode(); + if (OperationId.Length != 0) hash ^= OperationId.GetHashCode(); if (RunId.Length != 0) hash ^= RunId.GetHashCode(); if (Identity.Length != 0) hash ^= Identity.GetHashCode(); if (RequestId.Length != 0) hash ^= RequestId.GetHashCode(); @@ -73040,9 +80689,9 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(Namespace); } - if (ActivityId.Length != 0) { + if (OperationId.Length != 0) { output.WriteRawTag(18); - output.WriteString(ActivityId); + output.WriteString(OperationId); } if (RunId.Length != 0) { output.WriteRawTag(26); @@ -73074,9 +80723,9 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(Namespace); } - if (ActivityId.Length != 0) { + if (OperationId.Length != 0) { output.WriteRawTag(18); - output.WriteString(ActivityId); + output.WriteString(OperationId); } if (RunId.Length != 0) { output.WriteRawTag(26); @@ -73107,8 +80756,8 @@ public int CalculateSize() { if (Namespace.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Namespace); } - if (ActivityId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ActivityId); + if (OperationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(OperationId); } if (RunId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(RunId); @@ -73130,15 +80779,15 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(TerminateActivityExecutionRequest other) { + public void MergeFrom(TerminateNexusOperationExecutionRequest other) { if (other == null) { return; } if (other.Namespace.Length != 0) { Namespace = other.Namespace; } - if (other.ActivityId.Length != 0) { - ActivityId = other.ActivityId; + if (other.OperationId.Length != 0) { + OperationId = other.OperationId; } if (other.RunId.Length != 0) { RunId = other.RunId; @@ -73172,7 +80821,7 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - ActivityId = input.ReadString(); + OperationId = input.ReadString(); break; } case 26: { @@ -73211,7 +80860,7 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - ActivityId = input.ReadString(); + OperationId = input.ReadString(); break; } case 26: { @@ -73237,21 +80886,21 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class TerminateActivityExecutionResponse : pb::IMessage + public sealed partial class TerminateNexusOperationExecutionResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TerminateActivityExecutionResponse()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TerminateNexusOperationExecutionResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[207]; } + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[231]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -73262,7 +80911,7 @@ public sealed partial class TerminateActivityExecutionResponse : pb::IMessage + public sealed partial class DeleteNexusOperationExecutionRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteActivityExecutionRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteNexusOperationExecutionRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[208]; } + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[232]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -73414,7 +81063,7 @@ public sealed partial class DeleteActivityExecutionRequest : pb::IMessageField number for the "namespace" field. @@ -73447,15 +81096,15 @@ public string Namespace { } } - /// Field number for the "activity_id" field. - public const int ActivityIdFieldNumber = 2; - private string activityId_ = ""; + /// Field number for the "operation_id" field. + public const int OperationIdFieldNumber = 2; + private string operationId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ActivityId { - get { return activityId_; } + public string OperationId { + get { return operationId_; } set { - activityId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + operationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } @@ -73463,7 +81112,7 @@ public string ActivityId { public const int RunIdFieldNumber = 3; private string runId_ = ""; /// - /// Activity run ID, targets the latest run if run_id is empty. + /// Operation run ID, targets the latest run if empty. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -73477,12 +81126,12 @@ public string RunId { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as DeleteActivityExecutionRequest); + return Equals(other as DeleteNexusOperationExecutionRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DeleteActivityExecutionRequest other) { + public bool Equals(DeleteNexusOperationExecutionRequest other) { if (ReferenceEquals(other, null)) { return false; } @@ -73490,7 +81139,7 @@ public bool Equals(DeleteActivityExecutionRequest other) { return true; } if (Namespace != other.Namespace) return false; - if (ActivityId != other.ActivityId) return false; + if (OperationId != other.OperationId) return false; if (RunId != other.RunId) return false; return Equals(_unknownFields, other._unknownFields); } @@ -73500,7 +81149,7 @@ public bool Equals(DeleteActivityExecutionRequest other) { public override int GetHashCode() { int hash = 1; if (Namespace.Length != 0) hash ^= Namespace.GetHashCode(); - if (ActivityId.Length != 0) hash ^= ActivityId.GetHashCode(); + if (OperationId.Length != 0) hash ^= OperationId.GetHashCode(); if (RunId.Length != 0) hash ^= RunId.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); @@ -73524,9 +81173,9 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(Namespace); } - if (ActivityId.Length != 0) { + if (OperationId.Length != 0) { output.WriteRawTag(18); - output.WriteString(ActivityId); + output.WriteString(OperationId); } if (RunId.Length != 0) { output.WriteRawTag(26); @@ -73546,9 +81195,9 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(Namespace); } - if (ActivityId.Length != 0) { + if (OperationId.Length != 0) { output.WriteRawTag(18); - output.WriteString(ActivityId); + output.WriteString(OperationId); } if (RunId.Length != 0) { output.WriteRawTag(26); @@ -73567,8 +81216,8 @@ public int CalculateSize() { if (Namespace.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Namespace); } - if (ActivityId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ActivityId); + if (OperationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(OperationId); } if (RunId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(RunId); @@ -73581,15 +81230,15 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DeleteActivityExecutionRequest other) { + public void MergeFrom(DeleteNexusOperationExecutionRequest other) { if (other == null) { return; } if (other.Namespace.Length != 0) { Namespace = other.Namespace; } - if (other.ActivityId.Length != 0) { - ActivityId = other.ActivityId; + if (other.OperationId.Length != 0) { + OperationId = other.OperationId; } if (other.RunId.Length != 0) { RunId = other.RunId; @@ -73614,7 +81263,7 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - ActivityId = input.ReadString(); + OperationId = input.ReadString(); break; } case 26: { @@ -73641,7 +81290,7 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - ActivityId = input.ReadString(); + OperationId = input.ReadString(); break; } case 26: { @@ -73655,21 +81304,21 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class DeleteActivityExecutionResponse : pb::IMessage + public sealed partial class DeleteNexusOperationExecutionResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteActivityExecutionResponse()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteNexusOperationExecutionResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[209]; } + get { return global::Temporalio.Api.WorkflowService.V1.RequestResponseReflection.Descriptor.MessageTypes[233]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -73680,7 +81329,7 @@ public sealed partial class DeleteActivityExecutionResponse : pb::IMessage AddUserGroupMemberAsync(AddUserGroupMemb return InvokeRpcAsync("AddUserGroupMember", req, AddUserGroupMemberResponse.Parser, options); } + /// + /// Invoke CreateAccountAuditLogSink. + /// + /// Request for the call. + /// Optional RPC options. + /// RPC response + public Task CreateAccountAuditLogSinkAsync(CreateAccountAuditLogSinkRequest req, RpcOptions? options = null) + { + return InvokeRpcAsync("CreateAccountAuditLogSink", req, CreateAccountAuditLogSinkResponse.Parser, options); + } + /// /// Invoke CreateApiKey. /// @@ -42,6 +53,17 @@ public Task CreateApiKeyAsync(CreateApiKeyRequest req, Rpc return InvokeRpcAsync("CreateApiKey", req, CreateApiKeyResponse.Parser, options); } + /// + /// Invoke CreateBillingReport. + /// + /// Request for the call. + /// Optional RPC options. + /// RPC response + public Task CreateBillingReportAsync(CreateBillingReportRequest req, RpcOptions? options = null) + { + return InvokeRpcAsync("CreateBillingReport", req, CreateBillingReportResponse.Parser, options); + } + /// /// Invoke CreateConnectivityRule. /// @@ -119,6 +141,17 @@ public Task CreateUserGroupAsync(CreateUserGroupRequest return InvokeRpcAsync("CreateUserGroup", req, CreateUserGroupResponse.Parser, options); } + /// + /// Invoke DeleteAccountAuditLogSink. + /// + /// Request for the call. + /// Optional RPC options. + /// RPC response + public Task DeleteAccountAuditLogSinkAsync(DeleteAccountAuditLogSinkRequest req, RpcOptions? options = null) + { + return InvokeRpcAsync("DeleteAccountAuditLogSink", req, DeleteAccountAuditLogSinkResponse.Parser, options); + } + /// /// Invoke DeleteApiKey. /// @@ -240,6 +273,28 @@ public Task GetAccountAsync(GetAccountRequest req, RpcOption return InvokeRpcAsync("GetAccount", req, GetAccountResponse.Parser, options); } + /// + /// Invoke GetAccountAuditLogSink. + /// + /// Request for the call. + /// Optional RPC options. + /// RPC response + public Task GetAccountAuditLogSinkAsync(GetAccountAuditLogSinkRequest req, RpcOptions? options = null) + { + return InvokeRpcAsync("GetAccountAuditLogSink", req, GetAccountAuditLogSinkResponse.Parser, options); + } + + /// + /// Invoke GetAccountAuditLogSinks. + /// + /// Request for the call. + /// Optional RPC options. + /// RPC response + public Task GetAccountAuditLogSinksAsync(GetAccountAuditLogSinksRequest req, RpcOptions? options = null) + { + return InvokeRpcAsync("GetAccountAuditLogSinks", req, GetAccountAuditLogSinksResponse.Parser, options); + } + /// /// Invoke GetApiKey. /// @@ -273,6 +328,28 @@ public Task GetAsyncOperationAsync(GetAsyncOperationR return InvokeRpcAsync("GetAsyncOperation", req, GetAsyncOperationResponse.Parser, options); } + /// + /// Invoke GetAuditLogs. + /// + /// Request for the call. + /// Optional RPC options. + /// RPC response + public Task GetAuditLogsAsync(GetAuditLogsRequest req, RpcOptions? options = null) + { + return InvokeRpcAsync("GetAuditLogs", req, GetAuditLogsResponse.Parser, options); + } + + /// + /// Invoke GetBillingReport. + /// + /// Request for the call. + /// Optional RPC options. + /// RPC response + public Task GetBillingReportAsync(GetBillingReportRequest req, RpcOptions? options = null) + { + return InvokeRpcAsync("GetBillingReport", req, GetBillingReportResponse.Parser, options); + } + /// /// Invoke GetConnectivityRule. /// @@ -295,6 +372,17 @@ public Task GetConnectivityRulesAsync(GetConnectiv return InvokeRpcAsync("GetConnectivityRules", req, GetConnectivityRulesResponse.Parser, options); } + /// + /// Invoke GetCurrentIdentity. + /// + /// Request for the call. + /// Optional RPC options. + /// RPC response + public Task GetCurrentIdentityAsync(GetCurrentIdentityRequest req, RpcOptions? options = null) + { + return InvokeRpcAsync("GetCurrentIdentity", req, GetCurrentIdentityResponse.Parser, options); + } + /// /// Invoke GetNamespace. /// @@ -306,6 +394,17 @@ public Task GetNamespaceAsync(GetNamespaceRequest req, Rpc return InvokeRpcAsync("GetNamespace", req, GetNamespaceResponse.Parser, options); } + /// + /// Invoke GetNamespaceCapacityInfo. + /// + /// Request for the call. + /// Optional RPC options. + /// RPC response + public Task GetNamespaceCapacityInfoAsync(GetNamespaceCapacityInfoRequest req, RpcOptions? options = null) + { + return InvokeRpcAsync("GetNamespaceCapacityInfo", req, GetNamespaceCapacityInfoResponse.Parser, options); + } + /// /// Invoke GetNamespaceExportSink. /// @@ -537,6 +636,17 @@ public Task UpdateAccountAsync(UpdateAccountRequest req, return InvokeRpcAsync("UpdateAccount", req, UpdateAccountResponse.Parser, options); } + /// + /// Invoke UpdateAccountAuditLogSink. + /// + /// Request for the call. + /// Optional RPC options. + /// RPC response + public Task UpdateAccountAuditLogSinkAsync(UpdateAccountAuditLogSinkRequest req, RpcOptions? options = null) + { + return InvokeRpcAsync("UpdateAccountAuditLogSink", req, UpdateAccountAuditLogSinkResponse.Parser, options); + } + /// /// Invoke UpdateApiKey. /// diff --git a/src/Temporalio/Client/ITemporalClient.NexusOperation.cs b/src/Temporalio/Client/ITemporalClient.NexusOperation.cs new file mode 100644 index 00000000..b17ef88c --- /dev/null +++ b/src/Temporalio/Client/ITemporalClient.NexusOperation.cs @@ -0,0 +1,97 @@ +using System.Collections.Generic; +using System.Threading.Tasks; + +namespace Temporalio.Client +{ + public partial interface ITemporalClient + { + /// + /// Create a Nexus client for the given service name and options. + /// + /// Nexus service name. + /// Client options including endpoint. + /// Nexus client for the service. + /// WARNING: Standalone Nexus operations are experimental. + NexusClient CreateNexusClient(string service, NexusClientOptions options); + + /// + /// Create a typed Nexus client for the given service type. + /// + /// Nexus service type. + /// Client options including endpoint. + /// Typed Nexus client for the service. + /// WARNING: Standalone Nexus operations are experimental. + NexusClient CreateNexusClient(NexusClientOptions options); + + /// + /// Create a typed Nexus client for the given service type and endpoint. + /// + /// Nexus service type. + /// Endpoint name. + /// Typed Nexus client for the service. + /// WARNING: Standalone Nexus operations are experimental. + NexusClient CreateNexusClient(string endpoint); + + /// + /// Get a handle for an existing standalone Nexus operation with unknown result type. + /// + /// Operation ID. + /// Operation run ID or null for latest. + /// Created operation handle. + /// WARNING: Standalone Nexus operations are experimental. + NexusOperationHandle GetNexusOperationHandle(string operationId, string? operationRunId = null); + + /// + /// Get a handle for an existing standalone Nexus operation with known result type. + /// + /// Result type of the operation. + /// Operation ID. + /// Operation run ID or null for latest. + /// Created operation handle. + /// WARNING: Standalone Nexus operations are experimental. + NexusOperationHandle GetNexusOperationHandle(string operationId, string? operationRunId = null); + +#if NETCOREAPP3_0_OR_GREATER + /// + /// List Nexus operations with the given query. + /// + /// Query to use for filtering. + /// Options for the list call. + /// Async enumerator for the operations. + /// WARNING: Standalone Nexus operations are experimental. + public IAsyncEnumerable ListNexusOperationsAsync( + string query, NexusOperationListOptions? options = null); +#endif + + /// + /// Count Nexus operations with the given query. + /// + /// Query to use for counting. + /// Options for the count call. + /// Count information for the operations. + /// WARNING: Standalone Nexus operations are experimental. + public Task CountNexusOperationsAsync( + string query, NexusOperationCountOptions? options = null); + + /// + /// List Nexus operations with the given query using manual paging. + /// + /// + /// Query to use for filtering. Subsequent pages must have the same query as the initial + /// call. + /// + /// + /// Set to null for the initial call to retrieve the first page. + /// Set to returned by a previous call to + /// retrieve the next page. + /// + /// Options for the list call. + /// + /// A single page of a list of operations. + /// Repeat the call using to get more pages. + /// + /// WARNING: Standalone Nexus operations are experimental. + Task ListNexusOperationsPaginatedAsync( + string query, byte[]? nextPageToken, NexusOperationListPaginatedOptions? options = null); + } +} diff --git a/src/Temporalio/Client/Interceptors/CancelNexusOperationInput.cs b/src/Temporalio/Client/Interceptors/CancelNexusOperationInput.cs new file mode 100644 index 00000000..feb3096d --- /dev/null +++ b/src/Temporalio/Client/Interceptors/CancelNexusOperationInput.cs @@ -0,0 +1,18 @@ +namespace Temporalio.Client.Interceptors +{ + /// + /// Input for . + /// + /// Operation ID. + /// Operation run ID if any. + /// Options passed in to cancel. + /// WARNING: Standalone Nexus operations are experimental. + /// + /// WARNING: This constructor may have required properties added. Do not rely on the exact + /// constructor, only use "with" clauses. + /// + public record CancelNexusOperationInput( + string Id, + string? RunId, + NexusOperationCancelOptions? Options); +} diff --git a/src/Temporalio/Client/Interceptors/ClientOutboundInterceptor.NexusOperation.cs b/src/Temporalio/Client/Interceptors/ClientOutboundInterceptor.NexusOperation.cs new file mode 100644 index 00000000..151cc2ab --- /dev/null +++ b/src/Temporalio/Client/Interceptors/ClientOutboundInterceptor.NexusOperation.cs @@ -0,0 +1,85 @@ +using System.Threading.Tasks; + +#if NETCOREAPP3_0_OR_GREATER +using System.Collections.Generic; +#endif + +namespace Temporalio.Client.Interceptors +{ + public partial class ClientOutboundInterceptor + { + /// + /// Intercept start Nexus operation calls. + /// + /// Result type of the operation. May be ValueTuple if + /// unknown. + /// Input details of the call. + /// Handle for the operation. + /// WARNING: Standalone Nexus operations are experimental. + public virtual Task> StartNexusOperationAsync( + StartNexusOperationInput input) => + Next.StartNexusOperationAsync(input); + + /// + /// Intercept describe Nexus operation calls. + /// + /// Input details of the call. + /// Nexus operation execution description. + /// WARNING: Standalone Nexus operations are experimental. + public virtual Task DescribeNexusOperationAsync( + DescribeNexusOperationInput input) => + Next.DescribeNexusOperationAsync(input); + + /// + /// Intercept cancel Nexus operation calls. + /// + /// Input details of the call. + /// Task for acceptance of the cancel. + /// WARNING: Standalone Nexus operations are experimental. + public virtual Task CancelNexusOperationAsync(CancelNexusOperationInput input) => + Next.CancelNexusOperationAsync(input); + + /// + /// Intercept terminate Nexus operation calls. + /// + /// Input details of the call. + /// Task for termination completion. + /// WARNING: Standalone Nexus operations are experimental. + public virtual Task TerminateNexusOperationAsync(TerminateNexusOperationInput input) => + Next.TerminateNexusOperationAsync(input); + +#if NETCOREAPP3_0_OR_GREATER + /// + /// Intercept listing Nexus operations. + /// + /// Input details of the call. + /// Async enumerator for the operations. + /// WARNING: Standalone Nexus operations are experimental. + public virtual IAsyncEnumerable ListNexusOperationsAsync( + ListNexusOperationsInput input) => + Next.ListNexusOperationsAsync(input); +#endif + + /// + /// Intercept counting Nexus operations. + /// + /// Input details of the call. + /// Count information for the operations. + /// WARNING: Standalone Nexus operations are experimental. + public virtual Task CountNexusOperationsAsync( + CountNexusOperationsInput input) => + Next.CountNexusOperationsAsync(input); + +#pragma warning disable CS1574 // ListNexusOperationsAsync does not exist in .Net Framework/Standard + /// + /// Intercept page fetch for list Nexus operations calls. + /// + /// Input details of the call. + /// A single page of query results. + /// WARNING: Standalone Nexus operations are experimental. +#pragma warning restore CS1574 + public virtual Task ListNexusOperationsPaginatedAsync( + ListNexusOperationsPaginatedInput input) => + Next.ListNexusOperationsPaginatedAsync(input); + } +} diff --git a/src/Temporalio/Client/Interceptors/CountNexusOperationsInput.cs b/src/Temporalio/Client/Interceptors/CountNexusOperationsInput.cs new file mode 100644 index 00000000..c9d75e62 --- /dev/null +++ b/src/Temporalio/Client/Interceptors/CountNexusOperationsInput.cs @@ -0,0 +1,16 @@ +namespace Temporalio.Client.Interceptors +{ + /// + /// Input for . + /// + /// Count query. + /// Options passed in to count. + /// WARNING: Standalone Nexus operations are experimental. + /// + /// WARNING: This constructor may have required properties added. Do not rely on the exact + /// constructor, only use "with" clauses. + /// + public record CountNexusOperationsInput( + string Query, + NexusOperationCountOptions? Options); +} diff --git a/src/Temporalio/Client/Interceptors/DescribeNexusOperationInput.cs b/src/Temporalio/Client/Interceptors/DescribeNexusOperationInput.cs new file mode 100644 index 00000000..40aa0d6a --- /dev/null +++ b/src/Temporalio/Client/Interceptors/DescribeNexusOperationInput.cs @@ -0,0 +1,18 @@ +namespace Temporalio.Client.Interceptors +{ + /// + /// Input for . + /// + /// Operation ID. + /// Operation run ID if any. + /// Options passed in to describe. + /// WARNING: Standalone Nexus operations are experimental. + /// + /// WARNING: This constructor may have required properties added. Do not rely on the exact + /// constructor, only use "with" clauses. + /// + public record DescribeNexusOperationInput( + string Id, + string? RunId, + NexusOperationDescribeOptions? Options); +} diff --git a/src/Temporalio/Client/Interceptors/ListNexusOperationsInput.cs b/src/Temporalio/Client/Interceptors/ListNexusOperationsInput.cs new file mode 100644 index 00000000..84a13435 --- /dev/null +++ b/src/Temporalio/Client/Interceptors/ListNexusOperationsInput.cs @@ -0,0 +1,18 @@ +#if NETCOREAPP3_0_OR_GREATER +namespace Temporalio.Client.Interceptors +{ + /// + /// Input for . + /// + /// List query. + /// Options passed in to list. + /// WARNING: Standalone Nexus operations are experimental. + /// + /// WARNING: This constructor may have required properties added. Do not rely on the exact + /// constructor, only use "with" clauses. + /// + public record ListNexusOperationsInput( + string Query, + NexusOperationListOptions? Options); +} +#endif diff --git a/src/Temporalio/Client/Interceptors/ListNexusOperationsPaginatedInput.cs b/src/Temporalio/Client/Interceptors/ListNexusOperationsPaginatedInput.cs new file mode 100644 index 00000000..46890ab5 --- /dev/null +++ b/src/Temporalio/Client/Interceptors/ListNexusOperationsPaginatedInput.cs @@ -0,0 +1,18 @@ +namespace Temporalio.Client.Interceptors +{ + /// + /// Input for . + /// + /// List query. + /// Next page token from a previous call, or null. + /// Options passed in to list. + /// WARNING: Standalone Nexus operations are experimental. + /// + /// WARNING: This constructor may have required properties added. Do not rely on the exact + /// constructor, only use "with" clauses. + /// + public record ListNexusOperationsPaginatedInput( + string Query, + byte[]? NextPageToken, + NexusOperationListPaginatedOptions? Options); +} diff --git a/src/Temporalio/Client/Interceptors/StartNexusOperationInput.cs b/src/Temporalio/Client/Interceptors/StartNexusOperationInput.cs new file mode 100644 index 00000000..4c7b5455 --- /dev/null +++ b/src/Temporalio/Client/Interceptors/StartNexusOperationInput.cs @@ -0,0 +1,27 @@ +using System.Collections.Generic; + +namespace Temporalio.Client.Interceptors +{ + /// + /// Input for . + /// + /// Nexus service name. + /// Endpoint name. + /// Operation name to start. + /// Argument for the operation. + /// Options passed in to start. + /// Headers if any. Nexus headers are string key-value pairs, not + /// Payloads. + /// WARNING: Standalone Nexus operations are experimental. + /// + /// WARNING: This constructor may have required properties added. Do not rely on the exact + /// constructor, only use "with" clauses. + /// + public record StartNexusOperationInput( + string Service, + string Endpoint, + string Operation, + object? Arg, + NexusOperationOptions Options, + IDictionary? Headers); +} diff --git a/src/Temporalio/Client/Interceptors/TerminateNexusOperationInput.cs b/src/Temporalio/Client/Interceptors/TerminateNexusOperationInput.cs new file mode 100644 index 00000000..b1bdbbaf --- /dev/null +++ b/src/Temporalio/Client/Interceptors/TerminateNexusOperationInput.cs @@ -0,0 +1,18 @@ +namespace Temporalio.Client.Interceptors +{ + /// + /// Input for . + /// + /// Operation ID. + /// Operation run ID if any. + /// Options passed in to terminate. + /// WARNING: Standalone Nexus operations are experimental. + /// + /// WARNING: This constructor may have required properties added. Do not rely on the exact + /// constructor, only use "with" clauses. + /// + public record TerminateNexusOperationInput( + string Id, + string? RunId, + NexusOperationTerminateOptions? Options); +} diff --git a/src/Temporalio/Client/NexusClient.cs b/src/Temporalio/Client/NexusClient.cs new file mode 100644 index 00000000..7975d577 --- /dev/null +++ b/src/Temporalio/Client/NexusClient.cs @@ -0,0 +1,199 @@ +#pragma warning disable SA1402 // We allow multiple types of the same name + +using System; +using System.Linq; +using System.Linq.Expressions; +using System.Threading.Tasks; +using NexusRpc; +using Temporalio.Common; + +namespace Temporalio.Client +{ + /// + /// Client for making standalone Nexus service calls. + /// + /// WARNING: Standalone Nexus operations are experimental. + public abstract class NexusClient + { + /// + /// Gets the service name. + /// + public abstract string Service { get; } + + /// + /// Gets the endpoint name. + /// + public abstract string Endpoint { get; } + + /// + /// Gets the underlying Temporal client. + /// + public abstract ITemporalClient Client { get; } + + /// + /// Shortcut for + /// + /// + + /// . + /// + /// Operation name to start. + /// Operation argument. + /// Operation options. + /// Task representing completion of the Nexus operation. + /// WARNING: Standalone Nexus operations are experimental. + public async Task ExecuteNexusOperationAsync( + string operationName, object? arg, NexusOperationOptions? options = null) + { + var handle = await StartNexusOperationAsync(operationName, arg, options).ConfigureAwait(false); + await handle.GetResultAsync( + options?.Rpc == null ? null : new NexusOperationGetResultOptions { Rpc = options.Rpc }).ConfigureAwait(false); + } + + /// + /// Shortcut for + /// + /// + + /// . + /// + /// Operation result type. + /// Operation name to start. + /// Operation argument. + /// Operation options. + /// Task with the result of the Nexus operation. + /// WARNING: Standalone Nexus operations are experimental. + public async Task ExecuteNexusOperationAsync( + string operationName, object? arg, NexusOperationOptions? options = null) + { + var handle = await StartNexusOperationAsync(operationName, arg, options).ConfigureAwait(false); + return await handle.GetResultAsync( + options?.Rpc == null ? null : new NexusOperationGetResultOptions { Rpc = options.Rpc }).ConfigureAwait(false); + } + + /// + /// Start a Nexus operation by name. + /// + /// Operation name to start. + /// Operation argument. + /// Operation options. + /// Handle to the started operation once started. + /// WARNING: Standalone Nexus operations are experimental. + public async Task StartNexusOperationAsync( + string operationName, object? arg, NexusOperationOptions? options = null) => + await StartNexusOperationAsync(operationName, arg, options).ConfigureAwait(false); + + /// + /// Start a Nexus operation by name with specific expected result type. + /// + /// Operation result type. + /// Operation name to start. + /// Operation argument. + /// Operation options. + /// Handle to the started operation once started. + /// WARNING: Standalone Nexus operations are experimental. + public abstract Task> StartNexusOperationAsync( + string operationName, object? arg, NexusOperationOptions? options = null); + } + + /// + /// Nexus service type. + public abstract class NexusClient : NexusClient + { + /// + /// Gets the service name. + /// + public override string Service => ServiceDefinition.Name; + + /// + /// Gets the service definition. + /// + public abstract ServiceDefinition ServiceDefinition { get; } + + /// + /// Shortcut for + /// + /// + + /// . + /// + /// Invocation of operation without a result. + /// Operation options. + /// Task representing completion of the Nexus operation. + /// WARNING: Standalone Nexus operations are experimental. + public async Task ExecuteNexusOperationAsync( + Expression> operationStartCall, + NexusOperationOptions? options = null) + { + var handle = await StartNexusOperationAsync(operationStartCall, options).ConfigureAwait(false); + await handle.GetResultAsync( + options?.Rpc == null ? null : new NexusOperationGetResultOptions { Rpc = options.Rpc }).ConfigureAwait(false); + } + + /// + /// Shortcut for + /// + /// + + /// . + /// + /// Operation result type. + /// Invocation of operation with a result. + /// Operation options. + /// Task with the result of the Nexus operation. + /// WARNING: Standalone Nexus operations are experimental. + public async Task ExecuteNexusOperationAsync( + Expression> operationStartCall, + NexusOperationOptions? options = null) + { + var handle = await StartNexusOperationAsync(operationStartCall, options).ConfigureAwait(false); + return await handle.GetResultAsync( + options?.Rpc == null ? null : new NexusOperationGetResultOptions { Rpc = options.Rpc }).ConfigureAwait(false); + } + + /// + /// Start a Nexus operation via a lambda invoking the operation on the service. + /// + /// Invocation of operation without a result. + /// Operation options. + /// Handle to the started operation once started. + /// WARNING: Standalone Nexus operations are experimental. + public Task StartNexusOperationAsync( + Expression> operationStartCall, + NexusOperationOptions? options = null) + { + var (method, args) = ExpressionUtil.ExtractCall(operationStartCall); + var opDefn = ServiceDefinition.Operations.Values.FirstOrDefault(v => v.MethodInfo == method); + if (opDefn == null) + { + throw new ArgumentException($"Method {method} not marked as a Nexus service operation"); + } + if (args.Count > 1) + { + throw new ArgumentException("Can only have 0 or 1 Nexus argument"); + } + return StartNexusOperationAsync(opDefn.Name, args.SingleOrDefault(), options); + } + + /// + /// Start a Nexus operation via a lambda invoking the operation on the service. + /// + /// Operation result type. + /// Invocation of operation with a result. + /// Operation options. + /// Handle to the started operation once started. + /// WARNING: Standalone Nexus operations are experimental. + public Task> StartNexusOperationAsync( + Expression> operationStartCall, + NexusOperationOptions? options = null) + { + var (method, args) = ExpressionUtil.ExtractCall(operationStartCall); + var opDefn = ServiceDefinition.Operations.Values.FirstOrDefault(v => v.MethodInfo == method); + if (opDefn == null) + { + throw new ArgumentException($"Method {method} not marked as a Nexus service operation"); + } + if (args.Count > 1) + { + throw new ArgumentException("Can only have 0 or 1 Nexus argument"); + } + return StartNexusOperationAsync(opDefn.Name, args.SingleOrDefault(), options); + } + } +} diff --git a/src/Temporalio/Client/NexusClientOptions.cs b/src/Temporalio/Client/NexusClientOptions.cs new file mode 100644 index 00000000..f7027a30 --- /dev/null +++ b/src/Temporalio/Client/NexusClientOptions.cs @@ -0,0 +1,38 @@ +using System; + +namespace Temporalio.Client +{ + /// + /// Options for creating a Nexus client. + /// + /// WARNING: Standalone Nexus operations are experimental. + public class NexusClientOptions : ICloneable + { + /// + /// Initializes a new instance of the class. + /// + public NexusClientOptions() + { + } + + /// + /// Initializes a new instance of the class. + /// + /// Endpoint name. + public NexusClientOptions(string endpoint) + { + Endpoint = endpoint; + } + + /// + /// Gets or sets the endpoint name, resolved to a URL via the cluster's endpoint registry. + /// + public string? Endpoint { get; set; } + + /// + /// Create a shallow copy of these options. + /// + /// A shallow copy of these options. + public virtual object Clone() => MemberwiseClone(); + } +} diff --git a/src/Temporalio/Client/NexusOperationCancelOptions.cs b/src/Temporalio/Client/NexusOperationCancelOptions.cs new file mode 100644 index 00000000..35e03550 --- /dev/null +++ b/src/Temporalio/Client/NexusOperationCancelOptions.cs @@ -0,0 +1,35 @@ +using System; + +namespace Temporalio.Client +{ + /// + /// Options for canceling a standalone Nexus operation. + /// + /// WARNING: Standalone Nexus operations are experimental. + public class NexusOperationCancelOptions : ICloneable + { + /// + /// Gets or sets the reason for the cancellation request. + /// + public string? Reason { get; set; } + + /// + /// Gets or sets RPC options for canceling the operation. + /// + public RpcOptions? Rpc { get; set; } + + /// + /// Create a shallow copy of these options. + /// + /// A shallow copy of these options and any transitive options fields. + public virtual object Clone() + { + var copy = (NexusOperationCancelOptions)MemberwiseClone(); + if (Rpc != null) + { + copy.Rpc = (RpcOptions)Rpc.Clone(); + } + return copy; + } + } +} diff --git a/src/Temporalio/Client/NexusOperationCountOptions.cs b/src/Temporalio/Client/NexusOperationCountOptions.cs new file mode 100644 index 00000000..86781b3f --- /dev/null +++ b/src/Temporalio/Client/NexusOperationCountOptions.cs @@ -0,0 +1,30 @@ +using System; + +namespace Temporalio.Client +{ + /// + /// Options for counting standalone Nexus operations. + /// + /// WARNING: Standalone Nexus operations are experimental. + public class NexusOperationCountOptions : ICloneable + { + /// + /// Gets or sets RPC options for counting operations. + /// + public RpcOptions? Rpc { get; set; } + + /// + /// Create a shallow copy of these options. + /// + /// A shallow copy of these options and any transitive options fields. + public virtual object Clone() + { + var copy = (NexusOperationCountOptions)MemberwiseClone(); + if (Rpc != null) + { + copy.Rpc = (RpcOptions)Rpc.Clone(); + } + return copy; + } + } +} diff --git a/src/Temporalio/Client/NexusOperationDescribeOptions.cs b/src/Temporalio/Client/NexusOperationDescribeOptions.cs new file mode 100644 index 00000000..ec072f65 --- /dev/null +++ b/src/Temporalio/Client/NexusOperationDescribeOptions.cs @@ -0,0 +1,36 @@ +using System; + +namespace Temporalio.Client +{ + /// + /// Options for describing a standalone Nexus operation. + /// + /// WARNING: Standalone Nexus operations are experimental. + public class NexusOperationDescribeOptions : ICloneable + { + /// + /// Gets or sets a long-poll token from a previous describe response. When set, the + /// describe call will long-poll for state changes. + /// + public byte[]? LongPollToken { get; set; } + + /// + /// Gets or sets RPC options for describing the operation. + /// + public RpcOptions? Rpc { get; set; } + + /// + /// Create a shallow copy of these options. + /// + /// A shallow copy of these options and any transitive options fields. + public virtual object Clone() + { + var copy = (NexusOperationDescribeOptions)MemberwiseClone(); + if (Rpc != null) + { + copy.Rpc = (RpcOptions)Rpc.Clone(); + } + return copy; + } + } +} diff --git a/src/Temporalio/Client/NexusOperationExecution.cs b/src/Temporalio/Client/NexusOperationExecution.cs new file mode 100644 index 00000000..3b1eac66 --- /dev/null +++ b/src/Temporalio/Client/NexusOperationExecution.cs @@ -0,0 +1,154 @@ +using System; +using System.Threading; +using Temporalio.Api.Enums.V1; +using Temporalio.Api.Nexus.V1; +using Temporalio.Common; + +namespace Temporalio.Client +{ + /// + /// Representation of a standalone Nexus operation execution from a list call. + /// + /// WARNING: Standalone Nexus operations are experimental. + public class NexusOperationExecution + { + private readonly Lazy searchAttributes; + + /// + /// Initializes a new instance of the class from list + /// info. + /// + /// Raw proto list info. + /// Client namespace. + /// WARNING: This constructor may be mutated in backwards incompatible ways. + protected internal NexusOperationExecution( + NexusOperationExecutionListInfo rawInfo, string clientNamespace) + : this( + clientNamespace: clientNamespace, + operationId: rawInfo.OperationId, + runId: string.IsNullOrEmpty(rawInfo.RunId) ? null : rawInfo.RunId, + endpoint: rawInfo.Endpoint, + service: rawInfo.Service, + operation: rawInfo.Operation, + closeTime: rawInfo.CloseTime?.ToDateTime(), + executionDuration: rawInfo.ExecutionDuration?.ToTimeSpan(), + scheduledTime: rawInfo.ScheduleTime?.ToDateTime() ?? default, + stateTransitionCount: rawInfo.StateTransitionCount, + status: rawInfo.Status, + searchAttributesFactory: () => rawInfo.SearchAttributes == null ? + SearchAttributeCollection.Empty : + SearchAttributeCollection.FromProto(rawInfo.SearchAttributes)) + { + RawInfo = rawInfo; + } + + /// + /// Initializes a new instance of the class. + /// + /// Client namespace. + /// Operation ID. + /// Operation run ID. + /// Endpoint name. + /// Service name. + /// Operation name. + /// Close time. + /// Execution duration. + /// Scheduled time. + /// State transition count. + /// Operation status. + /// Factory for lazy search attribute creation. + private protected NexusOperationExecution( + string clientNamespace, + string operationId, + string? runId, + string endpoint, + string service, + string operation, + DateTime? closeTime, + TimeSpan? executionDuration, + DateTime scheduledTime, + long stateTransitionCount, + NexusOperationExecutionStatus status, + Func searchAttributesFactory) + { + Namespace = clientNamespace; + OperationId = operationId; + RunId = runId; + Endpoint = endpoint; + Service = service; + Operation = operation; + CloseTime = closeTime; + ExecutionDuration = executionDuration; + ScheduledTime = scheduledTime; + StateTransitionCount = stateTransitionCount; + Status = status; + searchAttributes = new(searchAttributesFactory, LazyThreadSafetyMode.PublicationOnly); + } + + /// + /// Gets the operation ID. + /// + public string OperationId { get; private init; } + + /// + /// Gets the operation run ID. + /// + public string? RunId { get; private init; } + + /// + /// Gets the endpoint name. + /// + public string Endpoint { get; private init; } + + /// + /// Gets the service name. + /// + public string Service { get; private init; } + + /// + /// Gets the operation name. + /// + public string Operation { get; private init; } + + /// + /// Gets when the operation was closed if in a terminal state. + /// + public DateTime? CloseTime { get; private init; } + + /// + /// Gets the total execution duration if the operation is closed. + /// + public TimeSpan? ExecutionDuration { get; private init; } + + /// + /// Gets the namespace. + /// + public string Namespace { get; private init; } + + /// + /// Gets when the operation was originally scheduled. + /// + public DateTime ScheduledTime { get; private init; } + + /// + /// Gets the number of state transitions. + /// + public long StateTransitionCount { get; private init; } + + /// + /// Gets the status of the operation. + /// + public NexusOperationExecutionStatus Status { get; private init; } + + /// + /// Gets the search attributes on the operation. + /// + /// This is lazily converted on first access. + public SearchAttributeCollection TypedSearchAttributes => searchAttributes.Value; + + /// + /// Gets the raw proto list info, or null if this was created from a describe call. + /// + internal NexusOperationExecutionListInfo? RawInfo { get; private init; } + } +} diff --git a/src/Temporalio/Client/NexusOperationExecutionCount.cs b/src/Temporalio/Client/NexusOperationExecutionCount.cs new file mode 100644 index 00000000..0819b61e --- /dev/null +++ b/src/Temporalio/Client/NexusOperationExecutionCount.cs @@ -0,0 +1,70 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using Temporalio.Api.WorkflowService.V1; +using Temporalio.Common; + +namespace Temporalio.Client +{ + /// + /// Representation of a count from a count Nexus operations call. + /// + /// WARNING: Standalone Nexus operations are experimental. + public class NexusOperationExecutionCount + { + /// + /// Initializes a new instance of the class. + /// + /// Raw proto. + /// WARNING: This constructor may be mutated in backwards incompatible ways. + protected internal NexusOperationExecutionCount(CountNexusOperationExecutionsResponse raw) + { + Count = raw.Count; + Groups = raw.Groups?.Select( + g => new AggregationGroup(g)).ToArray() ?? Array.Empty(); + } + + /// + /// Gets the approximate number of operations matching the original query. If the query had a + /// group-by clause, this is simply the sum of all the counts in . + /// + public long Count { get; private init; } + + /// + /// Gets the groups if the query had a group-by clause, or empty if not. + /// + public IReadOnlyCollection Groups { get; private init; } + + /// + /// Aggregation group if the operation count query had a group-by clause. + /// + /// WARNING: Standalone Nexus operations are experimental. + public class AggregationGroup + { + /// + /// Initializes a new instance of the class. + /// + /// Raw proto. + /// WARNING: This constructor may be mutated in backwards incompatible ways. + protected internal AggregationGroup(CountNexusOperationExecutionsResponse.Types.AggregationGroup raw) + { + Count = raw.Count; + GroupValues = raw.GroupValues?. + Select(SearchAttributeCollection.PayloadToObject). + Where(v => v != null). + Select(v => v!.Value.Value). + ToArray() ?? Array.Empty(); + } + + /// + /// Gets the approximate number of operations matching the original query for this group. + /// + public long Count { get; private init; } + + /// + /// Gets the search attribute values for this group. + /// + public IReadOnlyCollection GroupValues { get; private init; } + } + } +} diff --git a/src/Temporalio/Client/NexusOperationExecutionDescription.cs b/src/Temporalio/Client/NexusOperationExecutionDescription.cs new file mode 100644 index 00000000..1485d329 --- /dev/null +++ b/src/Temporalio/Client/NexusOperationExecutionDescription.cs @@ -0,0 +1,126 @@ +using System; +using System.Threading.Tasks; +using Temporalio.Api.Enums.V1; +using Temporalio.Api.WorkflowService.V1; +using Temporalio.Common; +using Temporalio.Converters; + +namespace Temporalio.Client +{ + /// + /// Description of a standalone Nexus operation execution from a describe call. + /// + /// WARNING: Standalone Nexus operations are experimental. + public class NexusOperationExecutionDescription : NexusOperationExecution + { + private readonly Lazy> userMetadata; + + /// + /// Initializes a new instance of the + /// class. + /// + /// Raw proto description. + /// Client namespace. + /// Data converter. + /// WARNING: This constructor may be mutated in backwards incompatible ways. + protected internal NexusOperationExecutionDescription( + DescribeNexusOperationExecutionResponse rawDescription, + string clientNamespace, + DataConverter dataConverter) + : base( + clientNamespace: clientNamespace, + operationId: rawDescription.Info.OperationId, + runId: string.IsNullOrEmpty(rawDescription.Info.RunId) ? null : rawDescription.Info.RunId, + endpoint: rawDescription.Info.Endpoint, + service: rawDescription.Info.Service, + operation: rawDescription.Info.Operation, + closeTime: rawDescription.Info.CloseTime?.ToDateTime(), + executionDuration: rawDescription.Info.ExecutionDuration?.ToTimeSpan(), + scheduledTime: rawDescription.Info.ScheduleTime?.ToDateTime() ?? default, + stateTransitionCount: rawDescription.Info.StateTransitionCount, + status: rawDescription.Info.Status, + searchAttributesFactory: () => rawDescription.Info.SearchAttributes == null ? + SearchAttributeCollection.Empty : + SearchAttributeCollection.FromProto(rawDescription.Info.SearchAttributes)) + { + RawDescription = rawDescription; + var info = rawDescription.Info; + Attempt = info.Attempt; + BlockedReason = string.IsNullOrEmpty(info.BlockedReason) ? null : info.BlockedReason; + ExpirationTime = info.ExpirationTime?.ToDateTime(); + LastAttemptCompleteTime = info.LastAttemptCompleteTime?.ToDateTime(); + LongPollToken = rawDescription.LongPollToken.IsEmpty ? null : rawDescription.LongPollToken.ToByteArray(); + NextAttemptScheduleTime = info.NextAttemptScheduleTime?.ToDateTime(); + OperationToken = string.IsNullOrEmpty(info.OperationToken) ? null : info.OperationToken; + RequestId = string.IsNullOrEmpty(info.RequestId) ? null : info.RequestId; + ScheduleToCloseTimeout = info.ScheduleToCloseTimeout?.ToTimeSpan(); + State = info.State; +#pragma warning disable VSTHRD011 // This should not be able to deadlock + userMetadata = new(() => dataConverter.FromUserMetadataAsync(info.UserMetadata)); +#pragma warning restore VSTHRD011 + } + + /// + /// Gets the current attempt number, starting at 1. + /// + public int Attempt { get; private init; } + + /// + /// Gets the blocked reason if the state is blocked. + /// + public string? BlockedReason { get; private init; } + + /// + /// Gets the scheduled time plus schedule-to-close timeout. + /// + public DateTime? ExpirationTime { get; private init; } + + /// + /// Gets when the last attempt completed. + /// + public DateTime? LastAttemptCompleteTime { get; private init; } + + /// + /// Gets the token for follow-on long-poll requests, or null if the operation is complete. + /// + public byte[]? LongPollToken { get; private init; } + + /// + /// Gets when the next attempt will be scheduled. + /// + public DateTime? NextAttemptScheduleTime { get; private init; } + + /// + /// Gets the operation token for async operations after a successful StartOperation call. + /// + public string? OperationToken { get; private init; } + + /// + /// Gets the server-generated request ID used as an idempotency token. + /// + public string? RequestId { get; private init; } + + /// + /// Gets the schedule-to-close timeout. + /// + public TimeSpan? ScheduleToCloseTimeout { get; private init; } + + /// + /// Gets the more detailed state if the operation status is running. + /// + public PendingNexusOperationState State { get; private init; } + + /// + /// Gets the raw proto description. + /// + internal DescribeNexusOperationExecutionResponse RawDescription { get; private init; } + + /// + /// Gets the single-line fixed summary for this operation that may appear in UI/CLI. + /// This can be in single-line Temporal markdown format. + /// + /// Static summary. + public async Task GetStaticSummaryAsync() => + (await userMetadata.Value.ConfigureAwait(false)).Summary; + } +} diff --git a/src/Temporalio/Client/NexusOperationGetResultOptions.cs b/src/Temporalio/Client/NexusOperationGetResultOptions.cs new file mode 100644 index 00000000..b747de50 --- /dev/null +++ b/src/Temporalio/Client/NexusOperationGetResultOptions.cs @@ -0,0 +1,30 @@ +using System; + +namespace Temporalio.Client +{ + /// + /// Options for getting the result of a standalone Nexus operation. + /// + /// WARNING: Standalone Nexus operations are experimental. + public class NexusOperationGetResultOptions : ICloneable + { + /// + /// Gets or sets RPC options for polling the operation result. + /// + public RpcOptions? Rpc { get; set; } + + /// + /// Create a shallow copy of these options. + /// + /// A shallow copy of these options and any transitive options fields. + public virtual object Clone() + { + var copy = (NexusOperationGetResultOptions)MemberwiseClone(); + if (Rpc != null) + { + copy.Rpc = (RpcOptions)Rpc.Clone(); + } + return copy; + } + } +} diff --git a/src/Temporalio/Client/NexusOperationHandle.cs b/src/Temporalio/Client/NexusOperationHandle.cs new file mode 100644 index 00000000..583918f1 --- /dev/null +++ b/src/Temporalio/Client/NexusOperationHandle.cs @@ -0,0 +1,163 @@ +#pragma warning disable SA1402 // We allow multiple types of the same name + +using System; +using System.Threading.Tasks; +using Temporalio.Api.Enums.V1; +using Temporalio.Api.WorkflowService.V1; +using Temporalio.Converters; +using Temporalio.Exceptions; + +namespace Temporalio.Client +{ + /// + /// Handle for a standalone Nexus operation to perform actions on. + /// + /// Client used for operation handle calls. + /// Operation ID. + /// Operation run ID if known. + /// WARNING: Standalone Nexus operations are experimental. + public record NexusOperationHandle( + ITemporalClient Client, + string Id, + string? RunId = null) + { + /// + /// Wait for the result of the operation, discarding the return value. + /// + /// Options for the call. + /// Task that completes when the operation completes. + /// + /// Exception thrown for unsuccessful operation result. + /// + /// Server-side error. + /// WARNING: Standalone Nexus operations are experimental. + public Task GetResultAsync(NexusOperationGetResultOptions? options = null) => + GetResultAsync(options); + + /// + /// Wait for the result of the operation, deserializing into the given type. + /// + /// Return type to deserialize result into. + /// Options for the call. + /// Result of the operation. + /// + /// Exception thrown for unsuccessful operation result. + /// + /// Server-side error. + /// WARNING: Standalone Nexus operations are experimental. + public virtual async Task GetResultAsync( + NexusOperationGetResultOptions? options = null) + { + var dataConverter = Client.Options.DataConverter; + + // Continually poll until outcome is available + var req = new PollNexusOperationExecutionRequest() + { + Namespace = Client.Options.Namespace, + OperationId = Id, + RunId = RunId ?? string.Empty, + WaitStage = NexusOperationWaitStage.Closed, + }; + var rpc = TemporalClient.DefaultRetryOptions(options?.Rpc); + while (true) + { + var resp = await Client.Connection.WorkflowService.PollNexusOperationExecutionAsync( + req, rpc).ConfigureAwait(false); + + // If no outcome, keep polling + if (resp.OutcomeCase == PollNexusOperationExecutionResponse.OutcomeOneofCase.None) + { + continue; + } + + // Handle outcome + switch (resp.OutcomeCase) + { + case PollNexusOperationExecutionResponse.OutcomeOneofCase.Result: + // Use default if they are ignoring result or payload not present + if (typeof(TResult) == typeof(ValueTuple) || resp.Result == null) + { + return default!; + } + return await dataConverter.ToSingleValueAsync( + new[] { resp.Result }).ConfigureAwait(false); + case PollNexusOperationExecutionResponse.OutcomeOneofCase.Failure: + throw new NexusOperationFailedException( + await dataConverter.ToExceptionAsync( + resp.Failure).ConfigureAwait(false)); + default: + throw new InvalidOperationException( + $"Unexpected Nexus operation outcome type: {resp.OutcomeCase}"); + } + } + } + + /// + /// Describe this operation. + /// + /// Extra options. + /// Description for the operation. + /// Server-side error. + /// WARNING: Standalone Nexus operations are experimental. + public virtual Task DescribeAsync( + NexusOperationDescribeOptions? options = null) => + Client.OutboundInterceptor.DescribeNexusOperationAsync(new( + Id: Id, + RunId: RunId, + Options: options)); + + /// + /// Request cancellation of this operation. + /// + /// Cancellation options. + /// Cancel accepted task. + /// Server-side error. + /// WARNING: Standalone Nexus operations are experimental. + public virtual Task CancelAsync(NexusOperationCancelOptions? options = null) => + Client.OutboundInterceptor.CancelNexusOperationAsync(new( + Id: Id, + RunId: RunId, + Options: options)); + + /// + /// Terminate this operation. + /// + /// Termination options. + /// Terminate completed task. + /// Server-side error. + /// WARNING: Standalone Nexus operations are experimental. + public virtual Task TerminateAsync(NexusOperationTerminateOptions? options = null) => + Client.OutboundInterceptor.TerminateNexusOperationAsync(new( + Id: Id, + RunId: RunId, + Options: options)); + } + + /// + /// Handle for a standalone Nexus operation with a known result type. + /// + /// Result type of the operation. + /// Client used for operation handle calls. + /// Operation ID. + /// Operation run ID if known. + /// WARNING: Standalone Nexus operations are experimental. + public record NexusOperationHandle( + ITemporalClient Client, + string Id, + string? RunId = null) : + NexusOperationHandle(Client, Id, RunId) + { + /// + /// Wait for the result of the operation. + /// + /// Options for the call. + /// Result of the operation. + /// + /// Exception thrown for unsuccessful operation result. + /// + /// Server-side error. + /// WARNING: Standalone Nexus operations are experimental. + public new Task GetResultAsync(NexusOperationGetResultOptions? options = null) => + GetResultAsync(options); + } +} diff --git a/src/Temporalio/Client/NexusOperationListOptions.cs b/src/Temporalio/Client/NexusOperationListOptions.cs new file mode 100644 index 00000000..a1fb2bed --- /dev/null +++ b/src/Temporalio/Client/NexusOperationListOptions.cs @@ -0,0 +1,37 @@ +#if NETCOREAPP3_0_OR_GREATER +using System; + +namespace Temporalio.Client +{ + /// + /// Options for listing standalone Nexus operations. + /// + /// WARNING: Standalone Nexus operations are experimental. + public class NexusOperationListOptions : ICloneable + { + /// + /// Gets or sets the maximum number of operations to return. 0 means server default. + /// + public int Limit { get; set; } + + /// + /// Gets or sets RPC options for listing operations. + /// + public RpcOptions? Rpc { get; set; } + + /// + /// Create a shallow copy of these options. + /// + /// A shallow copy of these options and any transitive options fields. + public virtual object Clone() + { + var copy = (NexusOperationListOptions)MemberwiseClone(); + if (Rpc != null) + { + copy.Rpc = (RpcOptions)Rpc.Clone(); + } + return copy; + } + } +} +#endif diff --git a/src/Temporalio/Client/NexusOperationListPage.cs b/src/Temporalio/Client/NexusOperationListPage.cs new file mode 100644 index 00000000..a0df99a8 --- /dev/null +++ b/src/Temporalio/Client/NexusOperationListPage.cs @@ -0,0 +1,14 @@ +using System.Collections.Generic; + +namespace Temporalio.Client +{ + /// + /// Result type of paginated Nexus operation listing. + /// + /// A page from the list of operations matching the query. + /// + /// Token to pass to retrieve the next page. Null if there are no more pages. + /// + /// WARNING: Standalone Nexus operations are experimental. + public record NexusOperationListPage(IReadOnlyCollection Operations, byte[]? NextPageToken); +} diff --git a/src/Temporalio/Client/NexusOperationListPaginatedOptions.cs b/src/Temporalio/Client/NexusOperationListPaginatedOptions.cs new file mode 100644 index 00000000..5068b481 --- /dev/null +++ b/src/Temporalio/Client/NexusOperationListPaginatedOptions.cs @@ -0,0 +1,35 @@ +using System; + +namespace Temporalio.Client +{ + /// + /// Options for listing standalone Nexus operations with manual pagination. + /// + /// WARNING: Standalone Nexus operations are experimental. + public class NexusOperationListPaginatedOptions : ICloneable + { + /// + /// Gets or sets the page size. 0 or negative means server default. + /// + public int PageSize { get; set; } + + /// + /// Gets or sets RPC options for listing operations. + /// + public RpcOptions? Rpc { get; set; } + + /// + /// Create a shallow copy of these options. + /// + /// A shallow copy of these options and any transitive options fields. + public virtual object Clone() + { + var copy = (NexusOperationListPaginatedOptions)MemberwiseClone(); + if (Rpc != null) + { + copy.Rpc = (RpcOptions)Rpc.Clone(); + } + return copy; + } + } +} diff --git a/src/Temporalio/Client/NexusOperationOptions.cs b/src/Temporalio/Client/NexusOperationOptions.cs new file mode 100644 index 00000000..ec531db6 --- /dev/null +++ b/src/Temporalio/Client/NexusOperationOptions.cs @@ -0,0 +1,81 @@ +using System; +using Temporalio.Api.Enums.V1; +using Temporalio.Common; + +namespace Temporalio.Client +{ + /// + /// Options for starting a standalone Nexus operation. is required. + /// + /// WARNING: Standalone Nexus operations are experimental. + public class NexusOperationOptions : ICloneable + { + /// + /// Initializes a new instance of the class. + /// + public NexusOperationOptions() + { + } + + /// + /// Initializes a new instance of the class. + /// + /// Operation ID. + public NexusOperationOptions(string id) + { + Id = id; + } + + /// + /// Gets or sets the unique operation identifier. This is required. + /// + public string? Id { get; set; } + + /// + /// Gets or sets the schedule-to-close timeout for this operation. + /// + public TimeSpan? ScheduleToCloseTimeout { get; set; } + + /// + /// Gets or sets a single-line fixed summary for this operation that may appear in + /// UI/CLI. This can be in single-line Temporal markdown format. + /// + public string? Summary { get; set; } + + /// + /// Gets or sets the search attributes for the operation. + /// + public SearchAttributeCollection? SearchAttributes { get; set; } + + /// + /// Gets or sets whether to allow re-using an operation ID from a previously *closed* + /// operation. Default is . + /// + public NexusOperationIdReusePolicy IdReusePolicy { get; set; } = NexusOperationIdReusePolicy.AllowDuplicate; + + /// + /// Gets or sets how already-running operations of the same ID are treated. Default is + /// . + /// + public NexusOperationIdConflictPolicy IdConflictPolicy { get; set; } = NexusOperationIdConflictPolicy.Fail; + + /// + /// Gets or sets RPC options for starting the operation. + /// + public RpcOptions? Rpc { get; set; } + + /// + /// Create a shallow copy of these options. + /// + /// A shallow copy of these options and any transitive options fields. + public virtual object Clone() + { + var copy = (NexusOperationOptions)MemberwiseClone(); + if (Rpc != null) + { + copy.Rpc = (RpcOptions)Rpc.Clone(); + } + return copy; + } + } +} diff --git a/src/Temporalio/Client/NexusOperationTerminateOptions.cs b/src/Temporalio/Client/NexusOperationTerminateOptions.cs new file mode 100644 index 00000000..bd792777 --- /dev/null +++ b/src/Temporalio/Client/NexusOperationTerminateOptions.cs @@ -0,0 +1,35 @@ +using System; + +namespace Temporalio.Client +{ + /// + /// Options for terminating a standalone Nexus operation. + /// + /// WARNING: Standalone Nexus operations are experimental. + public class NexusOperationTerminateOptions : ICloneable + { + /// + /// Gets or sets the reason for termination. + /// + public string? Reason { get; set; } + + /// + /// Gets or sets RPC options for terminating the operation. + /// + public RpcOptions? Rpc { get; set; } + + /// + /// Create a shallow copy of these options. + /// + /// A shallow copy of these options and any transitive options fields. + public virtual object Clone() + { + var copy = (NexusOperationTerminateOptions)MemberwiseClone(); + if (Rpc != null) + { + copy.Rpc = (RpcOptions)Rpc.Clone(); + } + return copy; + } + } +} diff --git a/src/Temporalio/Client/TemporalClient.NexusOperation.cs b/src/Temporalio/Client/TemporalClient.NexusOperation.cs new file mode 100644 index 00000000..6ccadad5 --- /dev/null +++ b/src/Temporalio/Client/TemporalClient.NexusOperation.cs @@ -0,0 +1,322 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Google.Protobuf; +using Google.Protobuf.WellKnownTypes; +using NexusRpc; +using Temporalio.Api.WorkflowService.V1; +using Temporalio.Client.Interceptors; +using Temporalio.Converters; +using Temporalio.Exceptions; + +#if NETCOREAPP3_0_OR_GREATER +using System.Runtime.CompilerServices; +using System.Threading; +#endif + +namespace Temporalio.Client +{ + public partial class TemporalClient + { + /// + public NexusClient CreateNexusClient(string service, NexusClientOptions options) => + new NexusClientImpl( + client: this, + service: service, + endpoint: options.Endpoint ?? throw new ArgumentException("Endpoint is required")); + + /// + public NexusClient CreateNexusClient(NexusClientOptions options) => + new NexusClientImpl( + client: this, + endpoint: options.Endpoint ?? throw new ArgumentException("Endpoint is required")); + + /// + public NexusClient CreateNexusClient(string endpoint) => + new NexusClientImpl(client: this, endpoint: endpoint); + + /// + public NexusOperationHandle GetNexusOperationHandle(string operationId, string? operationRunId = null) => + new(Client: this, Id: operationId, RunId: operationRunId); + + /// + public NexusOperationHandle GetNexusOperationHandle(string operationId, string? operationRunId = null) => + new(Client: this, Id: operationId, RunId: operationRunId); + +#if NETCOREAPP3_0_OR_GREATER + /// + public IAsyncEnumerable ListNexusOperationsAsync( + string query, NexusOperationListOptions? options = null) => + OutboundInterceptor.ListNexusOperationsAsync(new(Query: query, Options: options)); +#endif + + /// + public Task CountNexusOperationsAsync( + string query, NexusOperationCountOptions? options = null) => + OutboundInterceptor.CountNexusOperationsAsync(new(Query: query, Options: options)); + + /// + public Task ListNexusOperationsPaginatedAsync( + string query, byte[]? nextPageToken, NexusOperationListPaginatedOptions? options = null) => + OutboundInterceptor.ListNexusOperationsPaginatedAsync(new(Query: query, NextPageToken: nextPageToken, Options: options)); + + internal partial class Impl + { + /// + public override async Task> StartNexusOperationAsync( + StartNexusOperationInput input) + { + try + { + var dataConverter = Client.Options.DataConverter; + + var req = new StartNexusOperationExecutionRequest() + { + Namespace = Client.Options.Namespace, + OperationId = input.Options.Id ?? throw new ArgumentException("ID required to start Nexus operation"), + Endpoint = input.Endpoint, + Service = input.Service, + Operation = input.Operation, + Identity = Client.Connection.Options.Identity, + RequestId = Guid.NewGuid().ToString(), + IdReusePolicy = input.Options.IdReusePolicy, + IdConflictPolicy = input.Options.IdConflictPolicy, + UserMetadata = await dataConverter.ToUserMetadataAsync( + input.Options.Summary, null).ConfigureAwait(false), + }; + if (input.Arg != null) + { + req.Input = await dataConverter.ToPayloadAsync(input.Arg).ConfigureAwait(false); + } + if (input.Options.ScheduleToCloseTimeout is TimeSpan s2c) + { + req.ScheduleToCloseTimeout = Duration.FromTimeSpan(s2c); + } + if (input.Options.SearchAttributes != null && input.Options.SearchAttributes.Count > 0) + { + req.SearchAttributes = input.Options.SearchAttributes.ToProto(); + } + if (input.Headers != null) + { + req.NexusHeader.Add(input.Headers); + } + + var resp = await Client.Connection.WorkflowService.StartNexusOperationExecutionAsync( + req, DefaultRetryOptions(input.Options.Rpc)).ConfigureAwait(false); + return new NexusOperationHandle( + Client: Client, + Id: input.Options.Id!, + RunId: resp.RunId); + } + catch (RpcException e) when ( + e.Code == RpcException.StatusCode.AlreadyExists) + { + var status = e.GrpcStatus.Value; + if (status != null && status.Details.Count == 1) + { + if (status.Details[0].TryUnpack(out Api.ErrorDetails.V1.NexusOperationExecutionAlreadyStartedFailure failure)) + { + throw new NexusOperationAlreadyStartedException( + e.Message, + operationId: input.Options.Id!, + runId: failure.RunId); + } + } + throw; + } + } + + /// + public override async Task DescribeNexusOperationAsync( + DescribeNexusOperationInput input) + { + var req = new DescribeNexusOperationExecutionRequest() + { + Namespace = Client.Options.Namespace, + OperationId = input.Id, + RunId = input.RunId ?? string.Empty, + }; + if (input.Options?.LongPollToken is byte[] token) + { + req.LongPollToken = ByteString.CopyFrom(token); + } + var resp = await Client.Connection.WorkflowService.DescribeNexusOperationExecutionAsync( + req, DefaultRetryOptions(input.Options?.Rpc)).ConfigureAwait(false); + return new(resp, Client.Options.Namespace, Client.Options.DataConverter); + } + + /// + public override async Task CancelNexusOperationAsync(CancelNexusOperationInput input) + { + await Client.Connection.WorkflowService.RequestCancelNexusOperationExecutionAsync( + new() + { + Namespace = Client.Options.Namespace, + OperationId = input.Id, + RunId = input.RunId ?? string.Empty, + Identity = Client.Connection.Options.Identity, + RequestId = Guid.NewGuid().ToString(), + Reason = input.Options?.Reason ?? string.Empty, + }, + DefaultRetryOptions(input.Options?.Rpc)).ConfigureAwait(false); + } + + /// + public override async Task TerminateNexusOperationAsync(TerminateNexusOperationInput input) + { + await Client.Connection.WorkflowService.TerminateNexusOperationExecutionAsync( + new() + { + Namespace = Client.Options.Namespace, + OperationId = input.Id, + RunId = input.RunId ?? string.Empty, + Identity = Client.Connection.Options.Identity, + RequestId = Guid.NewGuid().ToString(), + Reason = input.Options?.Reason ?? string.Empty, + }, + DefaultRetryOptions(input.Options?.Rpc)).ConfigureAwait(false); + } + +#if NETCOREAPP3_0_OR_GREATER + /// + public override IAsyncEnumerable ListNexusOperationsAsync( + ListNexusOperationsInput input) => + ListNexusOperationsInternalAsync(input); +#endif + + /// + public override async Task CountNexusOperationsAsync( + CountNexusOperationsInput input) + { + var resp = await Client.Connection.WorkflowService.CountNexusOperationExecutionsAsync( + new() { Namespace = Client.Options.Namespace, Query = input.Query }, + DefaultRetryOptions(input.Options?.Rpc)).ConfigureAwait(false); + return new(resp); + } + + /// + public override async Task ListNexusOperationsPaginatedAsync( + ListNexusOperationsPaginatedInput input) + { + var req = new ListNexusOperationExecutionsRequest + { + Namespace = Client.Options.Namespace, + PageSize = input.Options?.PageSize ?? 0, + Query = input.Query, + }; + if (input.NextPageToken is not null) + { + req.NextPageToken = ByteString.CopyFrom(input.NextPageToken); + } + + var resp = await Client.Connection.WorkflowService.ListNexusOperationExecutionsAsync( + req, DefaultRetryOptions(input.Options?.Rpc)).ConfigureAwait(false); + + return new( + Operations: resp.Operations + .Select(e => new NexusOperationExecution(e, Client.Options.Namespace)) + .ToList() + .AsReadOnly(), + NextPageToken: resp.NextPageToken.IsEmpty ? null : resp.NextPageToken.ToByteArray()); + } + +#if NETCOREAPP3_0_OR_GREATER + private async IAsyncEnumerable ListNexusOperationsInternalAsync( + ListNexusOperationsInput input, + [EnumeratorCancellation] CancellationToken cancellationToken = default) + { + var limit = input.Options?.Limit ?? 0; + if (limit < 0) + { + throw new ArgumentOutOfRangeException(nameof(input), "Limit cannot be negative"); + } + + var rpcOptsAndCancelSource = DefaultRetryOptions(input.Options?.Rpc). + WithAdditionalCancellationToken(cancellationToken); + try + { + var pageOpts = new NexusOperationListPaginatedOptions { Rpc = rpcOptsAndCancelSource.Item1 }; + byte[]? nextPageToken = null; + var yielded = 0; + do + { + var page = await Client.ListNexusOperationsPaginatedAsync(input.Query, nextPageToken, pageOpts).ConfigureAwait(false); + foreach (var exec in page.Operations) + { + yield return exec; + yielded++; + if (limit > 0 && yielded >= limit) + { + yield break; + } + } + nextPageToken = page.NextPageToken; + } + while (nextPageToken is not null); + } + finally + { + rpcOptsAndCancelSource.Item2?.Dispose(); + } + } +#endif + } + + private sealed class NexusClientImpl : NexusClient + { + private readonly TemporalClient client; + + internal NexusClientImpl(TemporalClient client, string service, string endpoint) + { + this.client = client; + Service = service; + Endpoint = endpoint; + } + + public override string Service { get; } + + public override string Endpoint { get; } + + public override ITemporalClient Client => client; + + public override Task> StartNexusOperationAsync( + string operationName, object? arg, NexusOperationOptions? options = null) => + client.OutboundInterceptor.StartNexusOperationAsync(new( + Service: Service, + Endpoint: Endpoint, + Operation: operationName, + Arg: arg, + Options: options ?? new NexusOperationOptions(), + Headers: null)); + } + + private sealed class NexusClientImpl : NexusClient + { + private readonly TemporalClient client; + + internal NexusClientImpl(TemporalClient client, string endpoint) + { + this.client = client; + Endpoint = endpoint; + ServiceDefinition = ServiceDefinition.FromType(); + } + + public override string Endpoint { get; } + + public override ITemporalClient Client => client; + + public override ServiceDefinition ServiceDefinition { get; } + + public override Task> StartNexusOperationAsync( + string operationName, object? arg, NexusOperationOptions? options = null) => + client.OutboundInterceptor.StartNexusOperationAsync(new( + Service: Service, + Endpoint: Endpoint, + Operation: operationName, + Arg: arg, + Options: options ?? new NexusOperationOptions(), + Headers: null)); + } + } +} diff --git a/src/Temporalio/Client/WorkflowService.Rpc.cs b/src/Temporalio/Client/WorkflowService.Rpc.cs index 25b6589b..39361b95 100644 --- a/src/Temporalio/Client/WorkflowService.Rpc.cs +++ b/src/Temporalio/Client/WorkflowService.Rpc.cs @@ -20,6 +20,28 @@ public Task CountActivityExecutionsAsync(CountA return InvokeRpcAsync("CountActivityExecutions", req, CountActivityExecutionsResponse.Parser, options); } + /// + /// Invoke CountNexusOperationExecutions. + /// + /// Request for the call. + /// Optional RPC options. + /// RPC response + public Task CountNexusOperationExecutionsAsync(CountNexusOperationExecutionsRequest req, RpcOptions? options = null) + { + return InvokeRpcAsync("CountNexusOperationExecutions", req, CountNexusOperationExecutionsResponse.Parser, options); + } + + /// + /// Invoke CountSchedules. + /// + /// Request for the call. + /// Optional RPC options. + /// RPC response + public Task CountSchedulesAsync(CountSchedulesRequest req, RpcOptions? options = null) + { + return InvokeRpcAsync("CountSchedules", req, CountSchedulesResponse.Parser, options); + } + /// /// Invoke CountWorkflowExecutions. /// @@ -42,6 +64,28 @@ public Task CreateScheduleAsync(CreateScheduleRequest re return InvokeRpcAsync("CreateSchedule", req, CreateScheduleResponse.Parser, options); } + /// + /// Invoke CreateWorkerDeployment. + /// + /// Request for the call. + /// Optional RPC options. + /// RPC response + public Task CreateWorkerDeploymentAsync(CreateWorkerDeploymentRequest req, RpcOptions? options = null) + { + return InvokeRpcAsync("CreateWorkerDeployment", req, CreateWorkerDeploymentResponse.Parser, options); + } + + /// + /// Invoke CreateWorkerDeploymentVersion. + /// + /// Request for the call. + /// Optional RPC options. + /// RPC response + public Task CreateWorkerDeploymentVersionAsync(CreateWorkerDeploymentVersionRequest req, RpcOptions? options = null) + { + return InvokeRpcAsync("CreateWorkerDeploymentVersion", req, CreateWorkerDeploymentVersionResponse.Parser, options); + } + /// /// Invoke CreateWorkflowRule. /// @@ -64,6 +108,17 @@ public Task DeleteActivityExecutionAsync(Delete return InvokeRpcAsync("DeleteActivityExecution", req, DeleteActivityExecutionResponse.Parser, options); } + /// + /// Invoke DeleteNexusOperationExecution. + /// + /// Request for the call. + /// Optional RPC options. + /// RPC response + public Task DeleteNexusOperationExecutionAsync(DeleteNexusOperationExecutionRequest req, RpcOptions? options = null) + { + return InvokeRpcAsync("DeleteNexusOperationExecution", req, DeleteNexusOperationExecutionResponse.Parser, options); + } + /// /// Invoke DeleteSchedule. /// @@ -174,6 +229,17 @@ public Task DescribeNamespaceAsync(DescribeNamespaceR return InvokeRpcAsync("DescribeNamespace", req, DescribeNamespaceResponse.Parser, options); } + /// + /// Invoke DescribeNexusOperationExecution. + /// + /// Request for the call. + /// Optional RPC options. + /// RPC response + public Task DescribeNexusOperationExecutionAsync(DescribeNexusOperationExecutionRequest req, RpcOptions? options = null) + { + return InvokeRpcAsync("DescribeNexusOperationExecution", req, DescribeNexusOperationExecutionResponse.Parser, options); + } + /// /// Invoke DescribeSchedule. /// @@ -449,6 +515,17 @@ public Task ListNamespacesAsync(ListNamespacesRequest re return InvokeRpcAsync("ListNamespaces", req, ListNamespacesResponse.Parser, options); } + /// + /// Invoke ListNexusOperationExecutions. + /// + /// Request for the call. + /// Optional RPC options. + /// RPC response + public Task ListNexusOperationExecutionsAsync(ListNexusOperationExecutionsRequest req, RpcOptions? options = null) + { + return InvokeRpcAsync("ListNexusOperationExecutions", req, ListNexusOperationExecutionsResponse.Parser, options); + } + /// /// Invoke ListOpenWorkflowExecutions. /// @@ -592,6 +669,17 @@ public Task PollActivityTaskQueueAsync(PollActivi return InvokeRpcAsync("PollActivityTaskQueue", req, PollActivityTaskQueueResponse.Parser, options); } + /// + /// Invoke PollNexusOperationExecution. + /// + /// Request for the call. + /// Optional RPC options. + /// RPC response + public Task PollNexusOperationExecutionAsync(PollNexusOperationExecutionRequest req, RpcOptions? options = null) + { + return InvokeRpcAsync("PollNexusOperationExecution", req, PollNexusOperationExecutionResponse.Parser, options); + } + /// /// Invoke PollNexusTaskQueue. /// @@ -691,6 +779,17 @@ public Task RequestCancelActivityExecuti return InvokeRpcAsync("RequestCancelActivityExecution", req, RequestCancelActivityExecutionResponse.Parser, options); } + /// + /// Invoke RequestCancelNexusOperationExecution. + /// + /// Request for the call. + /// Optional RPC options. + /// RPC response + public Task RequestCancelNexusOperationExecutionAsync(RequestCancelNexusOperationExecutionRequest req, RpcOptions? options = null) + { + return InvokeRpcAsync("RequestCancelNexusOperationExecution", req, RequestCancelNexusOperationExecutionResponse.Parser, options); + } + /// /// Invoke RequestCancelWorkflowExecution. /// @@ -966,6 +1065,17 @@ public Task StartBatchOperationAsync(StartBatchOper return InvokeRpcAsync("StartBatchOperation", req, StartBatchOperationResponse.Parser, options); } + /// + /// Invoke StartNexusOperationExecution. + /// + /// Request for the call. + /// Optional RPC options. + /// RPC response + public Task StartNexusOperationExecutionAsync(StartNexusOperationExecutionRequest req, RpcOptions? options = null) + { + return InvokeRpcAsync("StartNexusOperationExecution", req, StartNexusOperationExecutionResponse.Parser, options); + } + /// /// Invoke StartWorkflowExecution. /// @@ -999,6 +1109,17 @@ public Task TerminateActivityExecutionAsync( return InvokeRpcAsync("TerminateActivityExecution", req, TerminateActivityExecutionResponse.Parser, options); } + /// + /// Invoke TerminateNexusOperationExecution. + /// + /// Request for the call. + /// Optional RPC options. + /// RPC response + public Task TerminateNexusOperationExecutionAsync(TerminateNexusOperationExecutionRequest req, RpcOptions? options = null) + { + return InvokeRpcAsync("TerminateNexusOperationExecution", req, TerminateNexusOperationExecutionResponse.Parser, options); + } + /// /// Invoke TerminateWorkflowExecution. /// @@ -1109,6 +1230,17 @@ public Task UpdateWorkerConfigAsync(UpdateWorkerConf return InvokeRpcAsync("UpdateWorkerConfig", req, UpdateWorkerConfigResponse.Parser, options); } + /// + /// Invoke UpdateWorkerDeploymentVersionComputeConfig. + /// + /// Request for the call. + /// Optional RPC options. + /// RPC response + public Task UpdateWorkerDeploymentVersionComputeConfigAsync(UpdateWorkerDeploymentVersionComputeConfigRequest req, RpcOptions? options = null) + { + return InvokeRpcAsync("UpdateWorkerDeploymentVersionComputeConfig", req, UpdateWorkerDeploymentVersionComputeConfigResponse.Parser, options); + } + /// /// Invoke UpdateWorkerDeploymentVersionMetadata. /// @@ -1152,5 +1284,16 @@ public Task UpdateWorkflowExecutionOptio { return InvokeRpcAsync("UpdateWorkflowExecutionOptions", req, UpdateWorkflowExecutionOptionsResponse.Parser, options); } + + /// + /// Invoke ValidateWorkerDeploymentVersionComputeConfig. + /// + /// Request for the call. + /// Optional RPC options. + /// RPC response + public Task ValidateWorkerDeploymentVersionComputeConfigAsync(ValidateWorkerDeploymentVersionComputeConfigRequest req, RpcOptions? options = null) + { + return InvokeRpcAsync("ValidateWorkerDeploymentVersionComputeConfig", req, ValidateWorkerDeploymentVersionComputeConfigResponse.Parser, options); + } } } \ No newline at end of file diff --git a/src/Temporalio/Exceptions/NexusOperationAlreadyStartedException.cs b/src/Temporalio/Exceptions/NexusOperationAlreadyStartedException.cs new file mode 100644 index 00000000..bfb32749 --- /dev/null +++ b/src/Temporalio/Exceptions/NexusOperationAlreadyStartedException.cs @@ -0,0 +1,34 @@ +namespace Temporalio.Exceptions +{ + /// + /// Exception thrown by client when attempting to start a standalone Nexus operation that was + /// already started. + /// + /// WARNING: Standalone Nexus operations are experimental. + public class NexusOperationAlreadyStartedException : FailureException + { + /// + /// Initializes a new instance of the class. + /// + /// Error message. + /// See . + /// See . + public NexusOperationAlreadyStartedException( + string message, string operationId, string? runId) + : base(message) + { + OperationId = operationId; + RunId = runId; + } + + /// + /// Gets the operation ID that was already started. + /// + public string OperationId { get; private init; } + + /// + /// Gets the run ID of the already-started operation, if available. + /// + public string? RunId { get; private init; } + } +} diff --git a/src/Temporalio/Exceptions/NexusOperationFailedException.cs b/src/Temporalio/Exceptions/NexusOperationFailedException.cs new file mode 100644 index 00000000..2d4f5fde --- /dev/null +++ b/src/Temporalio/Exceptions/NexusOperationFailedException.cs @@ -0,0 +1,20 @@ +using System; + +namespace Temporalio.Exceptions +{ + /// + /// Exception thrown when a standalone Nexus operation has failed while waiting for the result. + /// + /// WARNING: Standalone Nexus operations are experimental. + public class NexusOperationFailedException : TemporalException + { + /// + /// Initializes a new instance of the class. + /// + /// Cause of the exception. + public NexusOperationFailedException(Exception? inner) + : base("Nexus operation failed", inner) + { + } + } +}